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,712,258
2
null
74,711,304
0
null
Create a new L.canvas object and specify the desired options, and use the `addTo()` method to add the circle to your map. This will create a circle that is initially drawn with a radius of 10, and will have its radius redrawn with a new random value every second. The circle will continue to fluctuate in size until the `setInterval()` loop is stopped. ``` import { L } from 'leaflet'; const circle = L.canvas({ center: [51.505, -0.09], radius: 10, color: 'red', }); circle.addTo(map); setInterval(() => { const newRadius = Math.random() * 50; circle.setRadius(newRadius); }, 1000); ```
null
CC BY-SA 4.0
null
2022-12-07T05:44:53.020
2022-12-07T05:44:53.020
null
null
1,421,285
null
74,712,738
2
null
74,709,436
0
null
- ![enter image description here](https://i.imgur.com/ZScufWN.png) - `derived column` ``` req1 : split(col1,' ')[1] req2 : split(col1,' ')[2] ``` - ![enter image description here](https://i.imgur.com/digBWp4.png) - `ltrim` ``` req2 : ltrim(req2) ``` ![enter image description here](https://i.imgur.com/nPFHMj3.png) - `req2` ![enter image description here](https://i.imgur.com/diFwo1E.png) -
null
CC BY-SA 4.0
null
2022-12-07T06:48:05.880
2022-12-07T06:48:05.880
null
null
18,844,585
null
74,713,172
2
null
74,688,317
0
null
There could be several different issues 1. You added the promoted property later, and either haven't deployed it fully, or have not restarted the host instance since you deployed it. Which means the host instance might still have loaded in memory and older version of the schema without the promoted property. Fix: Make sure you have rebuilt your solution in Visual Studio, have deployed your solution and have restarted the host instances after the deployment. 2. You don't have XML disassembler component in the Receive Location Pipeline. Even if you are already getting XML, you need to have this component in your pipeline as one of the things it does is to do the Property Promotion. Fix: Have a XML disassembler component in the Receive Location Pipeline. 3. The namespace in the XML does not match that of the schema. Fix: Either have the namespace created at the source, or add a pipeline component to add/replace the namespace.
null
CC BY-SA 4.0
null
2022-12-07T07:34:48.673
2022-12-12T00:10:01.880
2022-12-12T00:10:01.880
2,571,021
2,571,021
null
74,713,891
2
null
47,224,993
0
null
Go to your `.fxml` file and there is red error element: the name of your handle function in my example. Just push create it. IntelliJ gives you possibilities to create your event: ![Popup: "Cannot resolve symbol 'onEditCades'. Create method 'onEditCades in 'Settings' Alt-Shift+Enter, More actions... Alt+Enter"](https://i.stack.imgur.com/8yWpa.png)
null
CC BY-SA 4.0
null
2022-12-07T08:45:53.047
2022-12-14T23:20:11.620
2022-12-14T23:20:11.620
6,083,675
20,711,319
null
74,714,134
2
null
2,773,324
0
null
Another potential cause for `filter_horizontal` not working is overriding `form.media` property that includes the necessary JavaScript files for the widget.
null
CC BY-SA 4.0
null
2022-12-07T09:09:22.270
2022-12-07T09:09:22.270
null
null
3,201,834
null
74,714,209
2
null
74,712,389
0
null
> When switch is not toggled, you can't see the complete switch control very good. The background color set for the switch affects the visual effect. You can try to set to another color. Please refer to the following code: ``` <Switch OnColor="Orange" BackgroundColor="WhiteSmoke" ThumbColor="Green" Toggled="Switch_Toggled" /> ```
null
CC BY-SA 4.0
null
2022-12-07T09:14:46.220
2022-12-08T08:03:35.247
2022-12-08T08:03:35.247
10,308,336
10,308,336
null
74,714,237
2
null
21,384,040
0
null
You can (re)bind keys. Add this at the bottom of your `.profile`, `.zshrc` or whatever shell config you have. ``` bindkey -e bindkey '\e\e[C' forward-word bindkey '\e\e[D' backward-word ```
null
CC BY-SA 4.0
null
2022-12-07T09:17:05.860
2022-12-07T09:17:05.860
null
null
757,201
null
74,714,433
2
null
74,711,252
0
null
Similar problem is described [here](https://github.com/robotframework/robotframework/issues/2345). In order to obtain keyword names your `__init__` is executed. Inside it you are trying to get instance of built-in library of running robotframework, but robot isn't running (check exception name). You could replace `self.selLib` with property so your code could look something like that: ``` from robot.api.deco import library, keyword from robot.libraries.BuiltIn import BuiltIn from SeleniumLibrary import SeleniumLibrary @library class Shop: @property def selLib(self): return BuiltIn().get_library_instance("SeleniumLibrary") @keyword def add_items_to_cart_and_checkout(self, productsList): i = 1 productsTitles = self.selLib.get_webelements("xpath://*[@class='card-title']") for productsTitle in productsTitles: if productsTitle.text in productsList: self.selLib.click_button("xpath:(//*[@class='card-footer'])["+str(i)+"]/button") i = i + 1 ```
null
CC BY-SA 4.0
null
2022-12-07T09:32:26.327
2022-12-07T09:32:26.327
null
null
9,999,810
null
74,714,688
2
null
365,935
0
null
Something like this might be helpful: ``` using System; using System.Drawing; public class Program { public static void Main() { Color color = Color.FromArgb(230, 250, 230); Console.WriteLine(GetDescription(color)); } public static string GetDescription(Color color) { var hue = color.GetHue(); var brightness = color.GetBrightness(); var saturation = color.GetSaturation(); Console.WriteLine($"H:{hue} B:{brightness} S:{saturation}"); if (brightness > 95) return "White"; if (brightness < 0.1 && saturation < 5) return "Black"; if (hue == 0 && brightness > 0.1 && saturation < 5) return "Grey"; if (hue > 330) return "Red"; if (hue < 30) return "Red"; if (hue > 30 && hue < 90) return "Yellow"; if (hue > 90 && hue < 150) return "Green"; if (hue > 150 && hue < 210) return "Cyan"; if (hue > 210 && hue < 270) return "Blue"; if (hue > 270 && hue < 330) return "Magenta"; return "ND"; } } ``` The idea is to associate descriptors to [hue](https://en.wikipedia.org/wiki/Hue) ranges. To cover the cases of black, white and grey it is also necessary to take into consideration the saturation and brightness (some adjustment of the limits may be necessary).
null
CC BY-SA 4.0
null
2022-12-07T09:53:04.547
2022-12-07T09:53:04.547
null
null
5,047,786
null
74,715,196
2
null
74,709,339
0
null
You can see the live demo with arrows working [http://jsfiddle.net/dreambold/q0tfp4yd/7/](http://jsfiddle.net/dreambold/q0tfp4yd/7/) Here's the working code. ``` $(function () { $(".fold-table tr.view").on("click", function () { $(this).toggleClass("open").next(".fold").toggleClass("open"); }); }); $("#expand-collapse").on("click", function () { if ($(this).html() == "Expand All") { $(".fold-table tr.view, .fold").addClass("open"); $(this).html("Collapse All"); } else { $(".fold-table tr.view, .fold").removeClass("open"); $(this).html("Expand All"); } }); ``` ``` .licensing-options-page-content h1 { font-weight: bolder; text-transform: uppercase; margin: 0% 0% 3% 0%; } .licensing-options-page-content { margin-top: 12%; } @media (min-width: 1920px) and (max-width: 2560px) { .licensing-options-page-content { margin-top: 8%; } } /* Main Tabs */ .main-tabs-lo { background-color: #f2f2f7; color: black; display: inline-block; cursor: pointer; padding: 10px; font-size: 15px; font-weight: 700; width: 26%; margin-bottom: 10px; } @media (min-width: 1920px) and (max-width: 2560px) { .main-tabs-lo { font-size: 21px; width: 20%; } } .top-tabs-lo { margin-bottom: 30px; } .top-tabs-lo .main-tabs-lo { color: #030700; text-align: center; background-color: #f2f2f7; text-transform: uppercase; margin-right: -4px; border-right: 1px solid darkgray; } .tab-radio { display: none; } /* Tabs behaviour, hidden if not checked/clicked */ .tab-content { display: none; } .tab-radio:checked + .tab-content, .tab-radio:checked + .sub-tab-content { display: block; } .top-tabs-lo .loactive, .label:hover { background-color: black; color: white; } /* Tabs Content */ .tab-content-lo { padding: 0px; } .tab-content-lo, .tab-content-container-lo h4 { color: white; } /*.tab-content-container-lo { /*width: calc(60% - (.5em + 6px)); min-height: 400px; }*/ .licensing-options-content { justify-content: center; align-content: center; margin-top: 5%; } /* Table + Accordion */ .mol:after { content: " g/mol"; } .cur:before { content: "$"; } .per:after { content: "%"; } * { box-sizing: border-box; } table { width: 100%; background: #f2f2f7; } .tab-content-container-lo table { margin: 0; } .tab-content-container-lo .tab-content { padding: 0; } .tab-content-container-lo td { border: none; } .tab-content-container-lo table th { text-align: left; border: none; background-color: #000; color: white; } table th, table td { padding: 0.4em; } /*.licensing-options-page-content table td { background-color: #F2F2F7; }*/ table.fold-table > tbody > tr.view td, table.fold-table > tbody > tr.view th { cursor: pointer; } table.fold-table > tbody > tr.view td:first-child, table.fold-table > tbody > tr.view th:first-child { position: relative; padding-left: 20px; font-family: "Montserrat", sans-serif; } table.fold-table > tbody > tr.view td:first-child:before, table.fold-table > tbody > tr.view th:first-child:before { position: absolute; top: 50%; left: 5px; width: 9px; height: 16px; margin-top: -8px; font: 16px fontawesome; color: #999; content: "\f0d7"; transition: all 0.3s ease; } table.fold-table > tbody > tr.view.open td:first-child:before, table.fold-table > tbody > tr.view.open th:first-child:before { position: absolute; top: 50%; left: 5px; width: 9px; height: 16px; margin-top: -8px; font: 16px fontawesome; color: #999; content: "\f0da"; transition: all 0.3s ease; } .fold-table h3 { color: white; margin: 0; } table.fold-table > tbody > tr.view:nth-child(4n-1) { background: #e2e2e2; } table.fold-table > tbody > tr.view. td:first-child:before, table.fold-table > tbody > tr.view.open th:first-child:before { transform: rotate(-180deg); color: #333; } table.fold-table > tbody > tr.fold { display: none; } table.fold-table > tbody > tr.fold.open { display: table-row; } .fold-content { padding: 0.5em; } .fold-content h3 { margin-top: 0; } .fold-content > table { border: 2px solid #ccc; } .fold-content > table > tbody tr:nth-child(even) { background: green !important; } .view img { margin-left: 36%; } .lic-btn { cursor: pointer; background-color: #000; color: white; padding: 10px; width: 12%; text-align: center; margin-bottom: 12px; } ``` ``` <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js" integrity="sha512-aVKKRRi/Q/YV+4mjoKBsE4x3H+BkegoM/em46NNlCqNTmUYADjBbeNefNxYV7giUp0VxICtqdrbqU7iVaeZNXA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <table class="fold-table"> <tbody> <tr class="view"> <td>Organisational Hierarchy Maintenance</td> <td>Test 1</td> <td>Test 2</td> </tr> <tr class="fold"> <td colspan="7"> <div class="fold-content"> <p>Define your strategic units and business units in a multi-level hierarchy</p> </div> </td> </tr> <tr class="view"> <td>Organisational Hierarchy Maintenance</td> <td>Test 1</td> <td>Test 2</td> </tr> <tr class="fold"> <td colspan="7"> <div class="fold-content"> <p>Define your processes and business </p> </div> </td> </tr> </tbody> </table> <button id="expand-collapse">Expand All</button> ```
null
CC BY-SA 4.0
null
2022-12-07T10:31:52.847
2022-12-07T10:42:13.893
2022-12-07T10:42:13.893
12,743,692
12,743,692
null
74,715,278
2
null
74,715,090
1
null
As I can see from your screenshot, your `.img-box` element has a position property set to `static`. Static-positioned elements are not affected by the top, bottom, left, and right properties, so my advice is to use position `relative`. Also, make sure that `.img-box` and all parent elements of `.img-box` element e.g. `.single-team-style-two`, and parent "container" element of `.single-team-style-two` has `overflow-x` property set to `visible`.
null
CC BY-SA 4.0
null
2022-12-07T10:37:47.287
2022-12-07T10:37:47.287
null
null
13,199,446
null
74,715,973
2
null
74,714,873
0
null
Well, according to your DOM screenshot, the following should work as long as the drop down has been clicked and the options are visible: ``` await page.getByRole('option', { name: 'Last Name' }).click(); ``` But I am wondering if the `unselectable='on'` against each `li` element is something to do with the issue here.
null
CC BY-SA 4.0
null
2022-12-07T11:32:24.500
2022-12-07T11:42:42.027
2022-12-07T11:42:42.027
12,347,635
12,347,635
null
74,716,217
2
null
67,530,102
0
null
Add empty icon and make it as not clickable. also make custom ripple effect. --- [](https://i.stack.imgur.com/xR5UV.png) [](https://i.stack.imgur.com/B1F6j.png)
null
CC BY-SA 4.0
null
2022-12-07T11:48:35.313
2022-12-07T11:48:35.313
null
null
7,544,080
null
74,716,585
2
null
74,711,304
0
null
``` // build CircleMarker createFloatCircle(latLng, color, fromRadius, toRadius){ var _this = this; var circle = L.circleMarker(latLng, {radius: fromRadius, color: color, renderer: L.canvas({ padding: 0.5 }), fillColor: color, fillOpacity: 0.5, stroke: false, }); circle.addTo(_this.offMap); setInterval(() => { var newRadius = circle.getRadius() + 1; if(newRadius <= toRadius){ circle.setRadius(newRadius); } else { circle.setRadius(fromRadius); } circle.setStyle({fillColor: _this.getColor(newRadius, fromRadius, toRadius)}); }, 20); }, getColor(radius, fromRadius, toRadius){ var _this = this; var color = 'red'; var percent = (radius - fromRadius) / (toRadius - fromRadius); var red = Math.round(255 * percent); var green = Math.round(255 * (1 - percent)); color = 'rgb(' + red + ',' + green + ',0)'; return color; }, ```
null
CC BY-SA 4.0
null
2022-12-07T12:18:30.293
2022-12-07T12:18:30.293
null
null
20,708,770
null
74,716,726
2
null
74,711,139
0
null
The label propagation algorithm, not like some of the other algorithms, won't converge itself. We should configure the max iteration to explicitly let it stop after it's reached. In your case(data volume), it looks like `maxValue` is way too large to have the execution done in a reasonable time.
null
CC BY-SA 4.0
null
2022-12-07T12:29:40.680
2022-12-07T12:29:40.680
null
null
1,402,404
null
74,716,919
2
null
42,579,908
0
null
If you want a quick way of finding and plotting the correlation between all the columns with respect to a single column ('Energy Supply per Capita', in this case): ``` import numpy as np import pandas as pd import matplotlib.pyplot as plt cor = [] plt.figure() for i in data.columns: try: cor += [np.corrcoef(data[i], data['Energy Supply per Capita'])[0][1]] plt.scatter(i, np.corrcoef(data[i], data['Energy Supply per Capita'])[0][1]) plt.axvline(x = i, color='k', linestyle='-',alpha=0.2) except: pass plt.ylabel('correlation') plt.xticks(rotation = 90) ```
null
CC BY-SA 4.0
null
2022-12-07T12:44:39.957
2022-12-07T12:44:39.957
null
null
10,716,408
null
74,717,127
2
null
74,717,107
0
null
``` a=int(input()) ``` if u r keeping any integer values.
null
CC BY-SA 4.0
null
2022-12-07T13:02:38.373
2022-12-07T18:43:29.237
2022-12-07T18:43:29.237
20,037,042
20,572,002
null
74,717,138
2
null
74,717,107
-1
null
That happens because you are using input. Use raw_input instead. raw_input is what you have to use with python 2.
null
CC BY-SA 4.0
null
2022-12-07T13:03:35.053
2022-12-07T13:03:35.053
null
null
20,666,211
null
74,717,332
2
null
74,395,844
1
null
You can try setting updateCurrentData to true, this shouldn't remove current data. ``` chartTotales.dataSource.updateCurrentData= true; ``` [https://www.amcharts.com/docs/v4/reference/datasource/#updateCurrentData_property](https://www.amcharts.com/docs/v4/reference/datasource/#updateCurrentData_property) Also check Network tab in browser tools to see what is in response from API. Maybe you are hitting rate limiter.
null
CC BY-SA 4.0
null
2022-12-07T13:18:18.697
2022-12-07T13:18:18.697
null
null
17,133,812
null
74,717,690
2
null
24,010,035
0
null
``` func insertImage(_ image:UIImage) { let attachment = NSTextAttachment() attachment.image = image attachment.setImageHeight(height: 200) let attString = NSAttributedString(attachment: attachment) /// at is current cursor position self.descriptionTextView.textStorage.insert(attString, at: self.descriptionTextView.selectedRange.location) descriptionTextView.font = UIFont(name: UIFont.avenirNextRegular, size: 17) descriptionTextView.textColor = .white } ``` If you want to add an image from a link than you need to do this, there can be multiple links in string, so will be achive using these methods. ``` func checkForUrls(text: String) -> [NSTextCheckingResult] { let types: NSTextCheckingResult.CheckingType = .link do { let detector = try NSDataDetector(types: types.rawValue) let matches = detector.matches(in: text, options: .reportCompletion, range: NSRange(location: 0, length: text.count)) return matches // return matches.compactMap({$0.url}) } catch let error { debugPrint(error.localizedDescription) } return [] } ``` // Recursive funtion call next after successfull downloaded ``` func convertToAttachment() { if imageURLResultsFromStr.count > 0 { imageTOAttributedText(imageURLResultsFromStr.first?.url, imageURLResultsFromStr.first?.range) } } **// MARK: Server URL to Image conversion to show** func imageTOAttributedText(_ url:URL?,_ range:NSRange?) { guard let url = url, let range = range else { return } let imgView = UIImageView() imgView.kf.setImage(with: url, completionHandler: { result in switch result { case .success(var data): let attachment = NSTextAttachment() data.image.accessibilityIdentifier = self.recentlyUploadedImage attachment.image = data.image // attachment.fileType = self.recentlyUploadedImage attachment.setImageHeight(height: 200) /// This will help to remove existing url from server which we have sent as url /// Start let mutStr = self.descriptionTextView.attributedText.mutableCopy() as! NSMutableAttributedString let range = (mutStr.string as NSString).range(of: "\n\(url.absoluteString)\n") mutStr.deleteCharacters(in: range) self.descriptionTextView.attributedText = mutStr //End /// Add image as attachment downloaded from url let attString = NSAttributedString(attachment: attachment) self.descriptionTextView.textStorage.insert(attString, at: range.location) /// Recursivly calls to check how many urls we have in string to avoid wrong location insertion /// We need to re-calculate new string from server after removing url string and add image as attachment self.imageURLResultsFromStr.remove(at: 0) self.imageURLResultsFromStr = self.checkForUrls(text: self.descriptionTextView.text) self.convertToAttachment() case .failure(let error): print(error) } }) } ``` // Now call this function and initialise it from server string, Call it from viewdidload or from api response ``` func initialise() { self.descriptionTextView.text = ..string from server self.imageURLResultsFromStr = self.checkForUrls(text:string from server) convertToAttachment() } var imageURLResultsFromStr:[NSTextCheckingResult] = [] ```
null
CC BY-SA 4.0
null
2022-12-07T13:47:27.007
2022-12-07T13:47:27.007
null
null
5,090,289
null
74,717,992
2
null
74,717,749
2
null
When you use `getAuth()` directly in your components, there is no surety that Firebase was initialized in `firebase.js`. Instead you should always ensure `initializeApp()` is called before using any Firebase services. Here, you can import the `auth` instance created in `firebase.js` as shown below: ``` // firebase.js const app = initializeApp(firebaseConfig); // add export export const auth = getAuth(); export const analytics = getAnalytics(); ``` ``` // Login.js import { auth } from '../path/to/firebase.js' // <-- replace with correct path // Remove the following // const auth = getAuth(); // use imported 'auth' createUserWithEmailAndPassword(auth, email, password); ```
null
CC BY-SA 4.0
null
2022-12-07T14:11:23.203
2022-12-07T14:11:23.203
null
null
13,130,697
null
74,718,969
2
null
74,718,580
2
null
You can create another frame called "bottom" to help organize your buttons: ``` import tkinter as tk root = tk.Tk() root.title("Window title") root.config(bg='#FFFFFF') frame = tk.Frame( master=root, bg='#FFFFFF' ) frame.pack(side=tk.TOP, fill=tk.BOTH, expand=True) bottom = tk.Frame( master=root, bg='#FFFFFF' ) bottom.pack(side=tk.BOTTOM, fill=tk.BOTH, expand=True) label = tk.Label( master=frame, text="Select an option", height=1, width=40, bg='#FFFFFF' ) label.pack(side=tk.TOP, fill=tk.BOTH, pady=4) btn1 = tk.Button( master=frame, text="Option 1", height=1, width=20, bg='#FFFFFF' ) btn1.pack(side=tk.LEFT, fill=tk.BOTH, padx=4, pady=4) btn2 = tk.Button( master=frame, text="Option 2", height=1, width=20, bg='#FFFFFF' ) btn2.pack(side=tk.RIGHT, fill=tk.BOTH, padx=4, pady=4) exit_btn = tk.Button( master=bottom, text="Exit", height=1, width=5, bg='#FFFFFF' ) exit_btn.pack(fill=tk.BOTH, padx=4, pady=4) root.mainloop() ``` [Result is here](https://i.stack.imgur.com/qUjWk.png)
null
CC BY-SA 4.0
null
2022-12-07T15:18:56.093
2022-12-07T15:18:56.093
null
null
7,671,079
null
74,719,006
2
null
46,203,601
0
null
Anyone looking at this now this feature with this exact dialog is called Sign in Hints! [https://developers.google.com/identity/smartlock-passwords/android/retrieve-hints#retrieve_sign-in_hints](https://developers.google.com/identity/smartlock-passwords/android/retrieve-hints#retrieve_sign-in_hints)
null
CC BY-SA 4.0
null
2022-12-07T15:21:35.073
2022-12-07T15:21:35.073
null
null
329,034
null
74,719,004
2
null
74,718,580
2
null
The order of packing the widgets matters. You need to pack `label` and `exit_btn` first, so they occupy the top and bottom sides. Then pack `btn1` and `btn2`. ``` import tkinter as tk root = tk.Tk() root.title("Window title") root.config(bg='#FFFFFF') frame = tk.Frame( master=root, bg='#FFFFFF' ) frame.pack(side=tk.TOP, fill=tk.BOTH, expand=True) label = tk.Label( master=frame, text="Select an option", height=1, width=40, bg='#FFFFFF' ) btn1 = tk.Button( master=frame, text="Option 1", height=1, width=20, bg='#FFFFFF' ) btn2 = tk.Button( master=frame, text="Option 2", height=1, width=20, bg='#FFFFFF' ) exit_btn = tk.Button( master=frame, text="Exit", height=1, width=5, bg='#FFFFFF' ) label.pack(side=tk.TOP, fill=tk.BOTH, pady=4) exit_btn.pack(side=tk.BOTTOM, fill=tk.BOTH, padx=4, pady=4) btn1.pack(side=tk.LEFT, fill=tk.BOTH, padx=4, pady=4) btn2.pack(side=tk.RIGHT, fill=tk.BOTH, padx=4, pady=4) root.mainloop() ``` Result [](https://i.stack.imgur.com/nVCiU.png)
null
CC BY-SA 4.0
null
2022-12-07T15:21:20.510
2022-12-07T15:21:20.510
null
null
5,317,403
null
74,719,312
2
null
74,719,205
0
null
@sikimimi. You can change your color palette by adding a scales control, `scale_fill...`, to your code. For example, in `scale_fill_gradient()` you can set a `low` and `high` color value. The [ggplot reference](https://ggplot2.tidyverse.org/reference/index.html) has a complete list of these controls.
null
CC BY-SA 4.0
null
2022-12-07T15:44:30.940
2022-12-07T15:44:30.940
null
null
19,316,600
null
74,719,317
2
null
74,717,230
0
null
As @Abraham Tugalov commented, you need to call your function. Add the following to the end of your script, at the same indentation level as your imports (which is to say, no indentation): ``` if __name__ == "__main__": available_slots() ``` Further information: [What-does-if-name-main-do?](https://stackoverflow.com/questions/419163/what-does-if-name-main-do)
null
CC BY-SA 4.0
null
2022-12-07T15:44:45.680
2022-12-07T15:44:45.680
null
null
8,344,023
null
74,719,331
2
null
74,285,946
13
null
I had a similar problem; updating PyCharm to 2022.3 fixed the issue for me.
null
CC BY-SA 4.0
null
2022-12-07T15:46:10.060
2022-12-20T04:28:51.710
2022-12-20T04:28:51.710
4,430,227
4,430,227
null
74,719,392
2
null
74,521,806
2
null
I was looking to use the a theme color with opacity utilities (like `bg-primary/25`) from the framework. Not sure if that is the question here? In case it is I came across this functions, which works for me: ``` const getColor = (colorVar, { opacityVariable, opacityValue }) => { if (opacityValue !== undefined) { return `rgb(var(${colorVar})/${opacityValue})`; } if (opacityVariable !== undefined) { return `rgb(var(${colorVar})/var(${opacityVariable}, 1))`; } return `rgb(var(${colorVar}))`; }; ``` and apply it like so in your source `tailwind.config.js` ``` theme: { colors: { primary: (params) => getColor("--color-primary", params) } } ``` Now you can define the `--color-primary` variable in your css file and it will change accordingly.
null
CC BY-SA 4.0
null
2022-12-07T15:50:13.073
2022-12-07T15:50:13.073
null
null
1,723,770
null
74,720,349
2
null
74,693,241
1
null
I Searched in web and find out what problem is . so i write a HexToBin Function to do the things : ``` public byte AsciiToByte(byte ch) { byte ret = 0; switch(ch) { case 48: ret = 0; break; case 49: ret = 1; break; case 50: ret = 2; break; case 51: ret = 3; break; case 52: ret = 4; break; case 53: ret = 5; break; case 54: ret = 6; break; case 55: ret = 7; break; case 56: ret = 8; break; case 57: ret = 9; break; case 65: ret = 10; break; case 66: ret = 11; break; case 67: ret = 12; break; case 68: ret = 13; break; case 69: ret = 14; break; case 70: ret = 15; break; } return ret; } public int HexToByteArray(ref byte[] ByteArr , string FileName,ref int CurrentRecord, ref int EndOfFile) { byte[] Byte = new byte[PageSize * PageNumber]; for(int a = 0; a < Byte.Length; a++) { Byte[a] = 0xFF; } long MaxPoint = (PageNumber * PageSize); byte[] file = File.ReadAllBytes(FileName); int Offset = 0; int BytePointer = 0; int RecordSize = 0; int CheckSum = 0; int CheckSumT = 0; int CheckSumM = 0; CurrentRecord = 1; int LastBytePoint = 0; for (int i = 0; i < file.Length; ) { if (file[i] != ':') return 1; i++; RecordSize = AsciiToByte(file[i]) * 16; i++; RecordSize += AsciiToByte(file[i]); i++; if (RecordSize > 256) return 2; CheckSum = RecordSize; Offset = AsciiToByte(file[i]) * 4096; CheckSum += AsciiToByte(file[i]) * 16; i++; Offset += AsciiToByte(file[i]) * 256; CheckSum += AsciiToByte(file[i]); i++; Offset += AsciiToByte(file[i]) * 16; CheckSum += AsciiToByte(file[i]) * 16; i++; Offset += AsciiToByte(file[i]); CheckSum += AsciiToByte(file[i]); i++; if ((Offset + RecordSize) >= MaxPoint) return 3; else BytePointer = Offset; if((Offset + RecordSize - 1) > LastBytePoint) LastBytePoint = Offset + RecordSize -1; if (file[i] != '0') return 4; i++; if (file[i] == '1') { if (RecordSize != 0) return 9; i++; if (file[i] != 'F') return 5; i++; if (file[i] != 'F') return 5; i++; if (file[i] != 13) return 7; i++; if (file[i] != 10) return 8; EndOfFile = LastBytePoint; break; } else if (file[i] != '0') return 4; i++; for(int j=0; j<RecordSize; j++) { Byte[BytePointer] = (byte)(AsciiToByte(file[i]) * 16); i++; Byte[BytePointer] += (byte)(AsciiToByte(file[i])); CheckSum += Byte[BytePointer]; BytePointer++; i++; } CheckSumM = (AsciiToByte(file[i]) * 16); i++; CheckSumM += AsciiToByte(file[i]); i++; CheckSumT = ((~CheckSum) & 0xFF) + 1; if (CheckSumM != CheckSumT) return 6; if (file[i] != 13) return 7; i++; if (file[i] != 10) return 8; i++; CurrentRecord++; } ByteArr = Byte; return 0; } ``` its that for now and works fine . thanks everyone
null
CC BY-SA 4.0
null
2022-12-07T17:02:48.377
2022-12-07T17:02:48.377
null
null
20,649,315
null
74,720,547
2
null
72,458,222
0
null
Add 'tickColor' to 'white'. It should fix it. Ex: ``` x: { grid: { display: true, tickColor: 'white' }, } ```
null
CC BY-SA 4.0
null
2022-12-07T17:19:29.123
2022-12-07T17:19:29.123
null
null
7,986,740
null
74,720,592
2
null
74,713,127
1
null
Your filter can work, but you're missing a `(` in front of `sAMAccountName`: ``` (&(objectClass=user)(sAMAccountName=GRA-*)) ``` But you may be able to do better. If those ones that end in `$` are computer objects (which always have `sAMAccountName`s that end in `$`, but also have an `objectClass` of `user`), then you can make sure you only get user objects by including `(objectCategory=person)`: ``` (&(objectClass=user)(objectCategory=person)(sAMAccountName=GRA-*)) ``` If, for whatever reason, those `$` objects are actually user accounts, then you can exclude them with `(!sAMAccountName=*$)`: ``` (&(objectClass=user)(objectCategory=person)(sAMAccountName=GRA-*)(!sAMAccountName=*$)) ```
null
CC BY-SA 4.0
null
2022-12-07T17:23:43.140
2022-12-07T17:23:43.140
null
null
1,202,807
null
74,721,013
2
null
74,720,504
2
null
The polynomial you get with `polyfit` is a approximation over the specified range. On the other hand, the polynomials in the picture seem to be approximations about 0. So, you basically need to replace > `p = polyfit(x,y,2);` by something like ``` syms s % symbolic variable n = 2; % desired order p = sym2poly(taylor(besselj(0, s), 'Order', n+1)); % Taylor polynomial ``` (or define the polynomial manually if you don't have the Symbolic Toolbox). Thus: ``` x = 0:0.01:10.5; y = besselj(0,x); figure plot(x, y, 'linewidth', 1.5) %%p = polyfit(x,y,2); for n = 2:2:20 syms s; p = sym2poly(taylor(besselj(0, s), 'Order', n+1)); % Taylor polynomial x1 = linspace(0,10.5,200); f1 = polyval(p,x1); hold on plot(x1, f1, '-', 'linewidth', .6) end axis([0 10.5 -2 2]) ``` [](https://i.stack.imgur.com/594nm.png)
null
CC BY-SA 4.0
null
2022-12-07T17:55:19.263
2022-12-07T18:04:31.843
2022-12-07T18:04:31.843
2,586,922
2,586,922
null
74,721,093
2
null
74,720,160
-1
null
Try this filter: ``` .tileLayer{ filter: invert(100%) invert(8%) sepia(91%) saturate(4456%) hue-rotate(231deg) brightness(96%) contrast(101%) } ``` [https://codepen.io/sosuke/pen/Pjoqqp](https://codepen.io/sosuke/pen/Pjoqqp) (starting color is always black -> do first `invert(100%)` ) [How to transform black into any given color using only CSS filters](https://stackoverflow.com/questions/42966641/how-to-transform-black-into-any-given-color-using-only-css-filters/43960991#43960991)
null
CC BY-SA 4.0
null
2022-12-07T18:01:15.167
2022-12-07T18:01:15.167
null
null
8,283,938
null
74,721,217
2
null
74,698,830
0
null
To remove the text "False" in the legend, you can simply set the label to be a string of only a space, `label = " "` instead of `label = False`. That way your circles will appear in the legend without any text accompanying them.
null
CC BY-SA 4.0
null
2022-12-07T18:13:12.863
2022-12-07T18:13:12.863
null
null
20,716,503
null
74,721,412
2
null
74,691,586
1
null
How about this: ``` % example data xx = [repmat(50,1,5), repmat(250,1,7), repmat(50,1,8), repmat(250,1,4), repmat(50,1,6), repmat(250,1,9), repmat(50,1,9), repmat(250,1,4)]; %plot the data figure plot(xx) % for this method you need to define a threshold which ideally deliminates % peaks from troughs trsh = 150; % Find the distances between the waveforms diff(find(abs(diff(xx > trsh)))) ``` > ans =``` 7 8 4 6 9 9 ``` [](https://i.stack.imgur.com/O005J.png)
null
CC BY-SA 4.0
null
2022-12-07T18:31:40.903
2022-12-07T18:31:40.903
null
null
8,589,078
null
74,721,709
2
null
66,820,101
0
null
Did try switching to building mode? I did a comment so my api switched to comment mode making the api read-only.[enter image description here](https://i.stack.imgur.com/qcK3g.png) [](https://i.stack.imgur.com/qcK3g.png)
null
CC BY-SA 4.0
null
2022-12-07T18:59:53.767
2022-12-07T18:59:53.767
null
null
10,929,645
null
74,721,800
2
null
58,804,416
0
null
I'm not sure if OP is intending to render the actual HTML as well (so if the user the text in react-quill, it will show up as bolded). You can do that with: ``` <div dangerouslySetInnerHTML={{ __html: htmlString }}/> ``` Note that . It does basically give the user the ability to enter broken html and break your website. So you have to be sure that you trust the user.
null
CC BY-SA 4.0
null
2022-12-07T19:06:57.153
2022-12-07T19:06:57.153
null
null
154,392
null
74,721,826
2
null
74,721,679
0
null
Something like this: ``` Public Class Sensor_class Public Property thing As Integer Public Property thing2 As Object Public Property results As Result() End Class Dim o as Sensor_class o = JsonConvert.DeserializeObject(Of Sensor_class)(Respons.Content) ```
null
CC BY-SA 4.0
null
2022-12-07T19:09:27.857
2022-12-07T19:09:27.857
null
null
3,071,051
null
74,722,347
2
null
74,722,322
3
null
You need to move the second return outside of the `foreach` - the way it's written - it will always return after the first element, and does not return anything if the collection is empty (which is the reason for the error). If you paste the code as text instead of images, I can give the exact correct code.
null
CC BY-SA 4.0
null
2022-12-07T20:06:57.927
2022-12-07T20:06:57.927
null
null
1,081,897
null
74,722,462
2
null
74,721,999
0
null
Figured it out had the code below in my activity. ``` window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); ``` removed that and it worked fine.
null
CC BY-SA 4.0
null
2022-12-07T20:19:17.660
2022-12-07T20:19:17.660
null
null
20,717,140
null
74,722,677
2
null
74,722,322
0
null
Please see the corrected code below: ``` static Location locationMenu() { Console.WriteLine("Enter name of location \n"); foreach (Location l in availableLocations) { Console.WriteLine(l.getName()); } string choice = Console.ReadLine(); foreach (Location l in availableLocations) { if (l.getName() == choice) { return l; } } return null; } static int numberComplete() { int count = 0; foreach (Location l in availableLocations) { if (l.getComplete()) { count++; } } return count; } ```
null
CC BY-SA 4.0
null
2022-12-07T20:41:57.243
2022-12-07T20:41:57.243
null
null
20,716,902
null
74,722,757
2
null
74,722,611
1
null
Did you try with [optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining): ``` parse() { return store?.plan?.length > 0 ? true : false } ``` and don't mix v-if and v-for. Try to create wrapper div with v-if around your component: ``` <ul id="planOl"> <div v-if="parse"> <Action v-for="action in store.plan" :action_id="action.act_id" :actor="action.actor" :color="action.color" :size="action.size" :lego_name="action.lego" :pick_pos="action.pick" :place_pos="action.place" :blocked="action.blocked" :status="action.status" :key="action.act_id" /> </div> </ul> ```
null
CC BY-SA 4.0
null
2022-12-07T20:56:09.220
2022-12-08T07:29:25.007
2022-12-08T07:29:25.007
11,989,189
11,989,189
null
74,723,214
2
null
74,721,498
0
null
If you want to be able to easily reach the user's document based on that user's ID, its best to store that document with the UID of the user as its document ID. You can do that by calling `setDocument` on a `DocumentReference` instead of `addDocument` on the `CollectionReference`. In code: ``` firebase.auth().createUserWithEmailAndPassword(email, password) .then((credentials) => { setDoc(doc(db,'users', credentials.user.uid), { first: {firstName}, last: {lastName}, email: {email} }) }) ```
null
CC BY-SA 4.0
null
2022-12-07T21:53:40.477
2022-12-07T21:53:40.477
null
null
209,103
null
74,723,235
2
null
74,722,743
0
null
You could add the desired functionality to your `StatsModel` ``` class StatsModel { public StatsModel(decimal collateral, decimal withdraw) { Collateral = collateral; Withdraw = withdraw; } public decimal Collateral { get; } public decimal Withdraw { get; } public decimal Total => Collateral + Withdraw; } ```
null
CC BY-SA 4.0
null
2022-12-07T21:56:54.390
2022-12-07T21:56:54.390
null
null
4,054,386
null
74,723,354
2
null
74,653,901
0
null
Minimum number of entries set to one simply mean if number of incoming entries met one then merge the flowfile together. For Example if you set to 2 (regardless of the rest of the settings) this processor merge to flowfile together. So if you have 4 incoming flowfile you will have 2 flowfile after merge.
null
CC BY-SA 4.0
null
2022-12-07T22:09:11.723
2022-12-07T22:09:11.723
null
null
11,371,992
null
74,723,396
2
null
74,723,227
0
null
If the structure of the id is consistent, you can use a regex with `cy.get()`. In this case, I'm assuming the `id` is always something like `chart_XXXX_X`. ``` // including a g tag cy.get(/g\[data-unique-id="chart_\d{4}_\d"\]/) // not including a g tag cy.get(/\[data-unique-id="chart_\d{4}_\d"\]/) ```
null
CC BY-SA 4.0
null
2022-12-07T22:13:26.233
2022-12-07T22:13:26.233
null
null
11,625,850
null
74,723,500
2
null
74,723,449
2
null
To delete an item from an array, you'll want to use `FieldValue.arrayRemove` operator as shown in the documentation on [updating elements in an array](https://firebase.google.com/docs/firestore/manage-data/add-data#update_elements_in_an_array). If I have if correctly, that'd be: ``` .update({ 'userCart' : FieldValue.arrayRemove([itemID]), }) ```
null
CC BY-SA 4.0
null
2022-12-07T22:25:17.033
2022-12-08T00:05:51.810
2022-12-08T00:05:51.810
209,103
209,103
null
74,723,529
2
null
74,719,540
0
null
Here is the solution I found. You have to `npm install react-native-paper`, import, and use it. To use react-native-paper to change the little circle tab buttons, wrap `<Tab.Navigator>...</Tab.Navigator>` with `<PaperProvider theme={theme}>` as shown below. Finally, create a `const theme` like I did, and change the secondaryContainer to whatever color you want. P.S. make sure to change your import names as shown to not conflict with the Provider for redux. ``` import { MD3LightTheme as DefaultTheme, Provider as PaperProvider, } from "react-native-paper"; const Tab = createMaterialBottomTabNavigator(); const theme = { ...DefaultTheme, colors: { ...DefaultTheme.colors, secondaryContainer: "red", }, }; const App = () => { return ( <NavigationContainer> <PaperProvider theme={theme}> <Tab.Navigator initialRouteName="Menu principal" activeColor="#f0edf6" inactiveColor="white" barStyle={{ backgroundColor: 'black' }} > // rest of your code </Tab.Navigator> </PaperProvider> </NavigationContainer> ) } ```
null
CC BY-SA 4.0
null
2022-12-07T22:28:22.433
2022-12-07T22:28:22.433
null
null
20,717,785
null
74,723,618
2
null
74,723,227
2
null
If the element is part of a chart, there is little point in searching for the `data-unique-id` attribute, there are probably lots of the same element on the page. One approach is to use [traversal commands](https://example.cypress.io/commands/traversal) to work down from the chart root element - can be tricky to work out, but will be reliable. There's some example tests here [bahmutov/chart-testing-example](https://github.com/bahmutov/chart-testing-example) Another approach is to make your data available to the test by putting it into a property of the window (called [App Actions](https://glebbahmutov.com/blog/ui-to-api-to-app-actions/#app-actions)). This saves you having to "screen-scrape" the elements.
null
CC BY-SA 4.0
null
2022-12-07T22:42:09.817
2022-12-07T22:42:09.817
null
null
16,791,505
null
74,723,665
2
null
17,194,105
0
null
A simpler solution I found was to sort the data by the color, and then select the different data ranges as their own series and Excel then colors them differently automatically.
null
CC BY-SA 4.0
null
2022-12-07T22:48:10.030
2022-12-07T22:48:10.030
null
null
9,086,842
null
74,723,933
2
null
74,723,873
1
null
You may have to set a width for the Text ``` final size = MediaQuery.of(context).size; return ListTile( title: Row(children: [ SizedBox( width: size.width/4, child: Text(data[0]), ) Spacer(), Text(data[1]), Spacer(), Text(data[2]) ]) ); ```
null
CC BY-SA 4.0
null
2022-12-07T23:26:47.037
2022-12-07T23:26:47.037
null
null
4,571,266
null
74,724,047
2
null
74,720,659
0
null
The `DataError` exception shown in the image is a django [database exception](https://docs.djangoproject.com/en/4.1/ref/exceptions/#database-exceptions). The cause of the error in this case was not due to any problems in the code shown, rather a change in the model before the database migrations were run. The `body` field of the class `Mesange` was changed from a date to a `CharField`, but the migrations were not run, leading to the error. The database was simply looking for a date and/or time, but was receiving a `CharField`. The solution was simply to run ``` python manage.py makemigrations python manage.py migrate ```
null
CC BY-SA 4.0
null
2022-12-07T23:46:58.300
2022-12-07T23:46:58.300
null
null
10,951,070
null
74,724,217
2
null
74,724,180
4
null
You can create functions that will tell you the values with `approxfun`. ``` NewPoints = c(2.5,4,6,10) f1= approxfun(x1,y1) f2= approxfun(x2,y2) ``` Now the values that you want are: `f1(NewPoints)` and `f2(NewPoints)`. You can see this by plotting: ``` points(NewPoints, f1(NewPoints), pch=16, col="red") points(NewPoints, f2(NewPoints), pch=16, col="blue") ``` [](https://i.stack.imgur.com/IxZ0F.png)
null
CC BY-SA 4.0
null
2022-12-08T00:18:28.477
2022-12-08T01:18:47.060
2022-12-08T01:18:47.060
4,752,675
4,752,675
null
74,724,582
2
null
74,724,218
0
null
``` if r.status_code ==200: try: imagen = Image.open(io.BytesIO(requests.get(url).content)) except PIL.UnidentifiedImageError: await ctx.send("Error de imagen!") ```
null
CC BY-SA 4.0
null
2022-12-08T01:27:40.153
2022-12-08T01:27:40.153
null
null
15,656,258
null
74,724,591
2
null
74,717,107
-1
null
This problem does not occur in my pylance. It seems that there are some errors in your vscode's pylance. It doesn't recognize the input() method. You can try to update the pylance in the extension store or add the following code in `settings.json`: ``` "python.analysis.diagnosticSeverityOverrides": { "reportUndefinedVariable": "none" } ```
null
CC BY-SA 4.0
null
2022-12-08T01:30:44.433
2022-12-08T01:30:44.433
null
null
18,359,438
null
74,724,614
2
null
70,714,690
0
null
Another approach is: ``` npm i -D rollup-plugin-polyfill-node ``` Then update `vite.config.ts` with the following: ``` import nodePolyfills from 'rollup-plugin-polyfill-node' ``` ``` rollupOptions: { plugins: [ // ...plugins nodePolyfills(), ], // ...rollupOptions }, ```
null
CC BY-SA 4.0
null
2022-12-08T01:35:18.210
2022-12-08T01:35:18.210
null
null
4,847,258
null
74,724,877
2
null
74,724,700
3
null
I used `colorRampPalette` to combine `red.tra` and `blue.tra`, put them in a gradient palette, and select the color in between them. Then I added a phantom `geom_rect()` that doesn't actually appear anywhere, but it allows for an extra entry in the legend. ``` # do colors adjustcolor("red", alpha.f = 0.1) -> red.tra adjustcolor("blue", alpha.f = 0.1) -> blue.tra colfunc <- colorRampPalette(c(red.tra, blue.tra)) purp.tra <- colfunc(3)[2] adjustcolor(purp.tra, alpha.f = 0.1) -> purp.tra # plot ggplot(data = data) + geom_rect(data = data %>% filter(unclear==0), aes(xmin=start, xmax=stop, ymin=0, ymax=0.7, fill="one")) + geom_rect(data = data, aes(xmin=start, xmax=stop, ymin=0, ymax=0, fill="one and a half")) + geom_rect(data = data %>% filter(unclear==1), aes(xmin=start, xmax=stop, ymin=0, ymax=0.7, fill="two"))+ scale_fill_manual("colors",values=c(red.tra, purp.tra, blue.tra), labels=c("one", "one and a half", "two"))+ facet_wrap(~group, ncol = 1, strip.position = "left") ``` [](https://i.stack.imgur.com/AA15H.jpg)
null
CC BY-SA 4.0
null
2022-12-08T02:31:05.810
2022-12-08T04:05:08.410
2022-12-08T04:05:08.410
14,992,857
14,992,857
null
74,724,903
2
null
28,930,710
0
null
You should use session enabled service bus queue for ordering and concurrency.
null
CC BY-SA 4.0
null
2022-12-08T02:38:12.280
2022-12-08T02:38:12.280
null
null
20,719,317
null
74,725,370
2
null
74,725,175
1
null
Could do it with dplyr calculations in line: ``` library(dplyr); library(ggplot2) ggplot(data = df, aes(x=year)) + geom_col(data = df %>% group_by(year) %>% mutate(share = count / sum(count) * max(df$line1)), aes(y = share, x = year, fill = cat)) + geom_line(aes(y = line1)) + geom_line(aes(y = line2*100), color = "red") + scale_y_continuous(sec.axis = sec_axis(~./100, name = "line2 (red)")) ``` [](https://i.stack.imgur.com/oBhUQ.png)
null
CC BY-SA 4.0
null
2022-12-08T03:58:00.440
2022-12-08T03:58:00.440
null
null
6,851,825
null
74,725,741
2
null
74,725,529
0
null
I updated the formula a little bit, just realized that my latter-added filter also helped for the first one. ``` =TRANSPOSE(INDEX( IFERROR( SPLIT( TRANSPOSE(SPLIT( LAMBDA(mapped,JOIN("╬",FILTER(mapped,mapped<>""))) (MAP(A1:A,LAMBDA(x,IF(ROW(x)=1,x,IF(AND(x="",OFFSET(x,-1,0)<>""),REPT("SPLIT",B1+1),x))))), "SPLIT",,)) ,"╬",1,1) ,"") )) ``` I'll try to explain it from the inside to the outside: `MAP(A1:A,LAMBDA(x,IF(ROW(x)=1,x,IF(AND(x="",OFFSET(x,-1,0)<>""),REPT("SPLIT",B1+1),x))))` goes all through the column, when it finds a cell that is blank and its previous one wasn't (that's why OFFSET with -1, it goes "up" one row) then it repeats the word "SPLIT" N times in that cell (you can try pasting only this part to see the effect) Then i added a LAMBDA function in order not to repeat all this expression when trying to filter. `LAMBDA(mapped,JOIN("╬",FILTER(mapped,mapped<>"")))` I named "mapped" to the result of the previous operation, FILTER allows you to skip the empty rows (that would be the extra rows you have in A12 or A23:25). And then JOIN with that symbol ╬ (that you can change to another you like). Now you have a loooong string with ╬ between what used to be cells and SPLITSPLITSPLIT when you had the division of categories TRANSPOSE(SPLIT(....,"SPLIT",,)). With SPLIT now you divide all that long string in one cell per column with each category that looks like this: Birds╬Double Crested╬Great Blue Heron╬ and with TRANSPOSE you make it into this: [](https://i.stack.imgur.com/bqDC6.png) Now you SPLIT again with the symbol: `SPLIT(.....,"╬",1,1))` Those last 1,1 let's you avoid empty spaces. And the previous `INDEX and IFERROR` goes all through the "chart" in the previous screenshot row by row Finally,TRANSPOSE again let you recover the original position of rows and columns, now divided I hope it is clearer now! B1 is the place where you can set that "N" amount of columns in between your results. Basically it repeats the word "SPLIT"(it can be anyone you choose, or any symbol, obviously) You can test it [here](https://docs.google.com/spreadsheets/d/15xTuG06Fw0b7vnc2ez1cWICbTkm99DfXJi56SlkqJ1M/edit?usp=sharing). [](https://i.stack.imgur.com/eKcwK.png)
null
CC BY-SA 4.0
null
2022-12-08T05:05:02.687
2022-12-08T05:36:35.027
2022-12-08T05:36:35.027
20,363,318
20,363,318
null
74,726,137
2
null
74,725,529
0
null
try: ``` =INDEX(LAMBDA(a, TRIM(TRANSPOSE(SPLIT(FLATTEN(QUERY(QUERY( TRIM(FLATTEN(SPLIT(QUERY(IF(a="", "×", a&"​"),,9^9), "×"))), "select Col1,'​','​​' where Col1 is not null label '​''','​​'''", ))), "​")))) (A1:INDEX(A:A, MAX(ROW(A:A)*(A:A<>""))))) ``` [](https://i.stack.imgur.com/yxGtS.png)
null
CC BY-SA 4.0
null
2022-12-08T06:06:02.787
2022-12-08T06:06:02.787
null
null
5,632,629
null
74,726,319
2
null
74,719,711
0
null
During my test, I checked the url and found if you are going to visit the page with the wits of specific tags. You could test the urls below. [https://dev.azure.com/{org}/{proj}/_sprints/taskboard/{TeamName}/{IterationName}?System.Tags={TagName}](https://dev.azure.com/%7Borg%7D/%7Bproj%7D/_sprints/taskboard/%7BTeamName%7D/%7BIterationName%7D?System.Tags=%7BTagName%7D) [https://dev.azure.com/{Org}/{Proj}/_boards/board/t/{TeamName}/{Backlog_navigation_levels}?System.Tags={TagName}](https://dev.azure.com/%7BOrg%7D/%7BProj%7D/_boards/board/t/%7BTeamName%7D/%7BBacklog_navigation_levels%7D?System.Tags=%7BTagName%7D)
null
CC BY-SA 4.0
null
2022-12-08T06:28:23.527
2022-12-08T06:28:23.527
null
null
18,361,074
null
74,726,612
2
null
27,470,675
0
null
There were a couple of issues with your code snippet: - `section.property: "size"``section:property: "modelData.size"`- `font.pointSize: 14``font.pixelSize: 20`- - `width: 100``height: 100``anchors.fill: parent`- - `Frame``ListView.view.width`- `Frame`- `ScrollBar.vertical` Here's a full working example: ``` import QtQuick import QtQuick.Controls Page { ListView { anchors.fill: parent model:[ { name: "Animal", size: "Big" }, { name: "Dog", size: "Small" }, { name: "Cat", size: "Small" } ] delegate: Frame { width: ListView.view.width - 20 Text { text: modelData.name font.pointSize: 12 } } section.property: "size" section.delegate: Frame { width: ListView.view.width - 20 background: Rectangle { color: "lightsteelblue" } Text { text: section font.bold: true font.pointSize: 14 } } ScrollBar.vertical: ScrollBar { width: 20 policy: ScrollBar.AlwaysOn } } } ``` You can [Try it Online!](https://stephenquan.github.io/qmlonline/?zcode=AAADYHicrVJNTwIxEL3vr2j2jI0ST3vjI55MFDFejIdSSpkw227aWRAJ/90pkmX5MHjwHTad2Ted914KZeUDiRGNatCLDI5KOfCOgseYPStrxCYTjEeI9AZmtS8TlNNzH6KcAWIhKhWMo+Zn6acGi/emTtgIp0pTiLznoFSYd0SEr1T3weZi27lMHnp7YI55Dn/nDhSdcxvqR3NibcYqYtZD4MmWqYQVTGleNJblMn12TXEjurdH3FfzSSfjCcTt4ieEoSIlk74z0oxzlpUHR+Od4rvuEeUg/HCKRhN4J6vgKxNozTaT2/yM8H8OJ0ovbPC1mxbihW9XziLfJ7RHH3g/gp1TJGNwgrVp5301n73Yy8FMPPJGCvUfgru/GtxY84vGvgpyybmBVvxkm97ldE5yqDyCXremZA9Xah2f3Mm6bbb9BloM4mE=)
null
CC BY-SA 4.0
null
2022-12-08T07:03:54.350
2022-12-08T07:03:54.350
null
null
881,441
null
74,726,668
2
null
46,990,569
0
null
``` import 'dart:math'; int solution(List<int> inputArray) { //assumption for highest number int highestNumber = inputArray[0] * inputArray[1] ; //we'll go through the array to campare the highestNumber //with next index for(var i = 1 ; i < inputArray.length ; i++){ highestNumber = max(highestNumber, inputArray[i] * inputArray[i - 1]); } return highestNumber; } ```
null
CC BY-SA 4.0
null
2022-12-08T07:12:01.897
2022-12-08T07:12:01.897
null
null
10,702,892
null
74,727,082
2
null
74,726,999
0
null
You need to [install make](https://technewstoday.com/install-and-use-make-in-windows), or if it's already installed, update you search path for commands to where it's installed.
null
CC BY-SA 4.0
null
2022-12-08T07:53:29.700
2022-12-08T07:53:29.700
null
null
9,706
null
74,727,259
2
null
48,607,100
0
null
For one of my same kind of concern !!! I had to modify the input type to requested endpoint method. It might not address all type of requirements, but few can definitely be benefitted from this ``` /myEndpoint( @RequestBody RequestModelName requestModelName ) ``` where RequestModelName has properties and getter/setter... 1. private MultipartFile file 2. private String otherProp By this I could NOT see File option in swagger. ``` /myEndpoint( @RequestParam MultipartFile file, @RequestParam String otherProp ) ``` And then I could see File option in swagger...
null
CC BY-SA 4.0
null
2022-12-08T08:09:20.910
2022-12-09T01:28:56.677
2022-12-09T01:28:56.677
8,293,585
8,293,585
null
74,727,412
2
null
74,724,736
0
null
`L.GeoJSON` don't support request, you need to first to load your data manually or use a library like [Leaflet.Ajax](https://github.com/calvinmetcalf/leaflet-ajax) ``` var overlays = { "Counties": L.geoJson.ajax('https://github.com/zeke/us-counties/blob/master/county.geo.json?raw=true').on('data:loaded', function(e) {map.fitBounds(e.target.getBounds()); } )} ```
null
CC BY-SA 4.0
null
2022-12-08T08:25:37.157
2022-12-08T08:25:37.157
null
null
8,283,938
null
74,727,515
2
null
74,727,281
0
null
Main change ``` contentView.addSubview(avatarImageView) ``` Full class ``` import UIKit class FollowerCell: UICollectionViewCell { static let reuseID = "FollowerCell" var avatarImageView:UIImageView! override init(frame: CGRect) { super.init(frame: frame) configure() } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } private func configure() { avatarImageView = UIImageView() contentView.addSubview(avatarImageView) contentView.layer.borderColor = UIColor.red.cgColor contentView.layer.cornerRadius = 5 contentView.layer.borderWidth = 5 avatarImageView.translatesAutoresizingMaskIntoConstraints = false NSLayoutConstraint.activate([ avatarImageView.topAnchor.constraint(equalTo: contentView.topAnchor), avatarImageView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor), avatarImageView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor), avatarImageView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor) ]) avatarImageView.image = UIImage(named: "avatar-placeholder") } } ``` [](https://i.stack.imgur.com/m4PAa.png)
null
CC BY-SA 4.0
null
2022-12-08T08:35:32.913
2022-12-08T09:21:13.480
2022-12-08T09:21:13.480
5,820,010
5,820,010
null
74,727,940
2
null
65,367,603
2
null
You need to download that version of the SDK build tools. The easiest way is by using Android Studio. 1. Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). 2. In the left panel, click Appearance & Behavior > System Settings > Android SDK 3. Click on the SDK tools pane 4. Check ** Show Package Details** 5. Under the Android SDK Build tools check the specific version you need. (in this case, it is 29.0.2) you can even update if you need. 6. Click Ok This should download the versions selected. For more information check this link: [Update IDE and Tools](https://developer.android.com/studio/intro/update)
null
CC BY-SA 4.0
null
2022-12-08T09:15:53.370
2022-12-08T09:15:53.370
null
null
20,564,275
null
74,728,030
2
null
8,857,985
0
null
In my case, I just had to remove the following 2 lines from proguard.cfg: ``` -keep class android.support.v4.** { * ; } -dontwarn android.support.v4.** ``` Yes, I know that the question refers to the Spring Tool Suite but: 1. Spring Tool Suite is based on Eclipse (the IDE I am currently using for ADT). 2. Proguard is a Java obfuscator that can be used for any project, not just Android 3. I tried all the suggested answers and tips in the thread and none worked for me, until I removed the references to said libs. I hope this helps someone.
null
CC BY-SA 4.0
null
2022-12-08T09:23:48.293
2022-12-08T09:23:48.293
null
null
2,597,758
null
74,728,098
2
null
74,505,452
0
null
If you want to add something to an event, look at thee [eventRender](https://fullcalendar.io/docs/v4/eventRender) - you can modify the HTML of the event an way you want, and you have access to all the event's properties as a data source. e.g. ``` eventRender: function(info) { info.el.innerHTML += info.event.extendedProps.description; } ``` N.B. This specific example relies on you having an extra property called "description" in the event data you pass to the calendar - demo: [https://codepen.io/ADyson82/pen/qBKvqom](https://codepen.io/ADyson82/pen/qBKvqom) . But of course you can also simply manipulate the existing content, or display something from another standard property too. The world's your oyster.
null
CC BY-SA 4.0
null
2022-12-08T09:29:20.387
2022-12-08T09:29:20.387
null
null
5,947,043
null
74,728,307
2
null
30,518,681
0
null
This misalignment issue is occurring due to kendo icon property which is set to super. To resolve the issue, we need to set this to middle ``` .k-icon { vertical-align: middle; } ``` Include above property in inline css of that page.Like we need to include this into `<style> </style>`tag.
null
CC BY-SA 4.0
null
2022-12-08T09:48:20.243
2022-12-08T09:48:20.243
null
null
9,354,945
null
74,728,601
2
null
74,728,267
0
null
You cannot use the Select class for selecting the dropdown. You have to click on dropdown item. Then use below xpath to click on dropdown element ``` WebElement dropdown = driver.findElement(By.xPath("dropdownPath")); dropdown.click(); Thread.sleep(3000); WebElement dropdownItem = driver.findElement(By.xPath("//button[text()='Mr.']")); dropdownItem.click(); ```
null
CC BY-SA 4.0
null
2022-12-08T10:11:39.763
2022-12-08T10:11:39.763
null
null
11,984,843
null
74,728,616
2
null
74,532,193
0
null
Your example is not working, because your function takes three parameter `a`, `b` and `c` (although `c` is not used) but you give only two initial guesses via the `p0` argument to `scipy.optimize.curve_fit`. Aside from that, you cannot expect the function $f(x) = a (\exp{-bx} - 1)$ to become a straight line in an y-log-plot because of the $-1$. When taking the logarithm of both sides, you get $\log{f} = \log{\exp{-bx} - 1} + log{a}$ which does not resemble the form of a straight line, $y = mx + c$. Removing the $-1$ will give you a straight line with slope $-b$ and intercept $\log{a}$: $\log{f} = -bx + \log{a}$. Does the following code do what you want? ``` import numpy as np from matplotlib import pyplot as plt from scipy.optimize import curve_fit voltage = np.array([0.015, 0.060, 0.108, 0.162, 0.214, 0.268, 0.313, 0.351, .381, 0.417, 0.455, 0.517, 0.545, 0.582, 0.604]) current = np.array([0.0200, 0.0800, 0.2000, 0.6200, 1.6900, 4.8400, 11.5800, 24.5000, 44.3400, 90.4000, 183.3000, 505.5000, 744.3800, 1149.0500, 1346.6000]) / 1e6 def fexp(x, a, b): return a * np.exp(b * x) def fexp_yshift(x, a, b): return a * (np.exp(b * x) - 1) popt, pcov = curve_fit(fexp, xdata=voltage, ydata=current, p0=[3.651e-9, 19.77]) popt_shift, pcov_shift = curve_fit(fexp_yshift, xdata=voltage, ydata=current, p0=[3.651e-9, 19.77]) x = np.linspace(np.min(voltage), np.max(voltage), 1000) fit = fexp(x, *popt) fit_shift = fexp_yshift(x, *popt_shift) plt.plot(voltage, current, "k.", label="Measurement") plt.plot(x, fit, "m--", label="Model") plt.plot(x, fit_shift, "c-.", label="Model with Shift") plt.xlabel("Voltage $V$ / V") plt.ylabel("Current $I$ / A") plt.grid() plt.legend(loc='upper left') plt.show() plt.plot(voltage, current, "k.", label="Measurement") plt.plot(x, fit, "m--", label="Model") plt.plot(x, fit_shift, "c-.", label="Model with Shift") plt.xlabel("Voltage $V$ / V") plt.ylabel("Current $I$ / A") plt.yscale('log') plt.grid() plt.legend(loc='upper left') plt.show() ``` Output: [](https://i.stack.imgur.com/pZJQC.png) [](https://i.stack.imgur.com/8cozV.png) Sorry that I don't know how to add math formulas to Stack Overflow posts. : I just realized that this does not answer how to improve the quality of the fit. To get a better fit, fit the logarithm of the current directly by a straight line: ``` import numpy as np from matplotlib import pyplot as plt from scipy.optimize import curve_fit voltage = np.array([0.015, 0.060, 0.108, 0.162, 0.214, 0.268, 0.313, 0.351, .381, 0.417, 0.455, 0.517, 0.545, 0.582, 0.604]) current = np.array([0.0200, 0.0800, 0.2000, 0.6200, 1.6900, 4.8400, 11.5800, 24.5000, 44.3400, 90.4000, 183.3000, 505.5000, 744.3800, 1149.0500, 1346.6000]) / 1e6 current_log = np.log10(current) def line(x, m, c): return m * x + c popt, pcov = curve_fit(line, xdata=voltage, ydata=current_log) fit = line(voltage, *popt) plt.plot(voltage, current_log, "k.", label="Measurement") plt.plot(voltage, fit, "m--", label="Model") plt.xlabel("Voltage $V$ / V") plt.ylabel("Logarithmic Current $\log{(I / \mathrm{A})}$") plt.grid() plt.legend(loc='upper left') plt.show() ``` Output: [](https://i.stack.imgur.com/Pw53i.png)
null
CC BY-SA 4.0
null
2022-12-08T10:12:49.070
2022-12-08T11:31:43.503
2022-12-08T11:31:43.503
20,655,817
20,655,817
null
74,728,629
2
null
74,728,144
1
null
You are moving your cube via ``` transform.Translate(direction * moveSpeed * Time.deltaTime); ``` which will never be exact an might overshoot your positions. => I would rather implement a coroutine for moving the cube exactly field at a time, ensuring that after each iteration it fully aligns with the grid and run your checks in that moment. It doesn't even have to match exactly then, you only need to check if you are somewhere hitting a cube below you. So something like e.g. ``` private Vector3Int direction = Vector3Int.left; private IEnumerator MoveRoutine() { // depends on your needs if this runs just forever or certain steps // or has some exit condition while(true) { // calculate the next position // optional round it to int => 1x1 grid ensured on arrival // again depends a bit on your needs var nextPosition = Vector3Int.RoundToInt(transform.position) + direction; // move until reaching the target position // Vector3 == Vector3 uses a precision of 1e-5 while(transform.position != nextPosition) { transform.position = Vector3.MoveTowards(transform.position, nextPosition, moveSpeed * Time.deltaTime); yield return null; } // set target position in one frame just to be sure transform.position = nextPosition; // run your check here ONCE and adjust direction } } ``` start this routine only ONCE via ``` StartCoroutine(MoveRoutine()); ``` or if you have certain exit conditions at least only run one routine at a time. --- A [Corouine](https://docs.unity3d.com/Manual/Coroutines.html) is basically just a temporary `Update` routine with a little bit different writing => of course you could implement the same in `Update` as well if you prefer that ``` private Vector3Int direction = Vector3Int.left; private Vector3 nextPosition; private void Start() { nextPosition = transform.position; } private void Update() { if(transform.position != nextPosition) { transform.position = Vector3.MoveTowards(transform.position, nextPosition, moveSpeed * Time.deltaTime); } else { transform.position = nextPosition; // run your check here ONCE and adjust direction // then set next position nextPosition = Vector3Int.RoundToInt(transform.position) + direction; } } ``` --- Then regarding the check you can have a simple raycast since you only run it in a specific moment: ``` if(Physics.Raycast(transform.position, Vector3.down, out var hit)) { direction = Vector3Int.RountToInt(hit.transform.forward); } ``` assuming of course your targets have colliders attached, your moved cube position (pivot) is above those colliders (assumed it from your image) and your targets `forward` actually points int the desired new diretcion
null
CC BY-SA 4.0
null
2022-12-08T10:13:37.643
2022-12-08T11:02:27.423
2022-12-08T11:02:27.423
7,111,561
7,111,561
null
74,728,935
2
null
74,728,144
0
null
I would do it this way. First I would split the ability of certain objects to be "moving with certain speed" and "moving in a certain direction", this can be done with C# interfaces. Why? Because then your "arrow" cube could affect not only your current moving cube, but anything that implements the interfaces (maybe in the future you'll have some enemy cube, and it will also be affected by the arrow modifier). `IMovingSpeed.cs` ``` public interface IMovementSpeed { float MovementSpeed{ get; set; } } ``` `IMovementDirection3D.cs` ``` public interface IMovementDirection3D { Vector3 MovementDirection { get; set; } } ``` Then you implement the logic of your cube that moves automatically in a certain direction. Put this component on your player cube. ``` public class MovingStraight: MonoBehaviour, IMovementSpeed, IMovementDirection3D { private float _movementSpeed; Vector3 MovementSpeed { get { return _movementSpeed; } set { _movementSpeed = value; } } private Vector3 _movementDirection; Vector3 MovementDirection { get { return _movementDirection; } set { _movementDirection= value; } } void Update() { // use MovementSpeed and MovementDirection to advance the object position } } ``` Now to implement how the arrow cube modifies other objects, I would attach a collision (trigger) component for both moving cube and the arrow cube. In the component of the arrow cube, you can implement an action when something enters this trigger zone, in our case we check if this object "has direction that we can change", and if so, we change the direction, and make sure that the object will be aligned, by forcing the arrow cube's position and the other object's position to be the same on the grid. ``` public class DirectionModifier: MonoBehaviour { private Vector3 _newDirection; private void OnTriggerEnter(Collider collider) { IMovementDirection3D objectWithDirection = collider as IMovementDirection3D ; if (objectWithDirection !=null) { objectWithDirection.MovementDirection = _newDirection; // to make sure the object will continue moving exactly // from where the arrow cube is collider.transform.position.x = transform.position.x; collider.transform.position.y = transform.position.y; } } } ``` If you made your trigger zones too large, however, then the moving cube will "jump" abruptly when it enters the arrow cube's trigger zone. You can fix it by either starting a coroutine as other answers suggested, or you could make the trigger zones pretty small, so that the jump is not noticeable (just make sure not to make them too small, or they may not intersect each other) You could then similarly create many other modifying blocks, that would change speed or something
null
CC BY-SA 4.0
null
2022-12-08T10:37:51.687
2022-12-08T10:37:51.687
null
null
8,564,999
null
74,729,025
2
null
69,983,020
3
null
It also may help: ``` pip install taming-transformers-rom1504 ```
null
CC BY-SA 4.0
null
2022-12-08T10:43:51.730
2022-12-08T10:43:51.730
null
null
12,236,467
null
74,729,186
2
null
73,594,978
0
null
The same thing didn't really work for me. Opened a project with github. [https://github.com/ansimuz/getting-started-with-phaser/blob/master/part%204%20Game%20Objects%20-%20moving%20Images/Scene2.js](https://github.com/ansimuz/getting-started-with-phaser/blob/master/part%204%20Game%20Objects%20-%20moving%20Images/Scene2.js) and just copied it. It helps a lot to clear the browser history if something doesn't work
null
CC BY-SA 4.0
null
2022-12-08T10:56:32.023
2022-12-08T10:56:32.023
null
null
20,722,848
null
74,729,229
2
null
74,728,234
0
null
Providing higher z-index value to navbar class can resolve this bug update your navbar class in css as shown below ``` .navbar { position: absolute; z-index : 999; top: -600px; right: 0; left: 0; display: flex; flex-direction: column; background: white; text-align: left; transition: all .40s ease; } ```
null
CC BY-SA 4.0
null
2022-12-08T10:59:16.183
2022-12-08T10:59:16.183
null
null
16,612,350
null
74,729,460
2
null
23,625,645
0
null
Log in from desktop to your instagram tester account. Press MORE then SETTING, then APPS AND WEBSITES and then you'll have a 4th tab TESTER. Also you have to add tester the instagram account that you want to display.
null
CC BY-SA 4.0
null
2022-12-08T11:17:02.763
2022-12-08T11:17:02.763
null
null
20,723,024
null
74,730,056
2
null
74,729,775
0
null
Thanks to the comments. Since I would like to close this question, I will answer it my self. Theoretically, R.inverse() equals to R.tranpose(). But this is not correct in floating point system. Once I use R.inverse(), the result is more accurate.
null
CC BY-SA 4.0
null
2022-12-08T12:09:05.997
2022-12-08T12:09:05.997
null
null
15,499,102
null
74,730,223
2
null
74,728,144
-1
null
I think that it is enough for you to check if the X and Z coordinates are equal, since the movement occurs only along them Example ``` if(_player.transfom.position.x == _gameSquare.transfom.position.x && _player.transfom.position.z == _gameSquare.transfom.position.z) { Debag.Log("Rotate!") } ```
null
CC BY-SA 4.0
null
2022-12-08T12:21:55.167
2022-12-08T12:21:55.167
null
null
20,723,216
null
74,730,321
2
null
72,523,448
2
null
You can use the Cancel command in the Build menu, which is the same as pressing CTRL+BREAK. [](https://i.stack.imgur.com/IsIKJ.png)
null
CC BY-SA 4.0
null
2022-12-08T12:30:37.227
2022-12-08T12:30:37.227
null
null
10,932,825
null
74,730,540
2
null
74,639,711
0
null
I should have dug deeper into [Word object model documentation](https://docs.microsoft.com/en-us/visualstudio/vsto/word-object-model-overview?view=vs-2022&tabs=csharp) ``` import win32com.client word = win32com.client.gencache.EnsureDispatch('Word.Application') doc = word.Documents.Open(path) doc.Activate() for index, table in enumerate(word.ActiveDocument.Tables): if index == 0: # print(table) table.PreferredWidthType = 2 table.PreferredWidth = 100 ```
null
CC BY-SA 4.0
null
2022-12-08T12:47:01.540
2022-12-08T12:47:01.540
null
null
17,969,175
null
74,730,732
2
null
74,718,537
1
null
Your code works fine in my environment with Pandoc 2.19.2 and `knitr` 1.40. You can [[u]se a Pandoc version not bundled with the RStudio IDE](https://bookdown.org/yihui/rmarkdown-cookbook/install-pandoc.html), as well as upgrade `knitr`, and check whether the problem is resolved. [](https://i.stack.imgur.com/EwS8d.png) If not, the source of your problem comes not from Pandoc or knitr but from other parts. Maybe you need to edit your original post to show a full minimal working example like the following, by adding YAML section. ``` --- output: word_document: default --- ```{r setup, echo=FALSE, include=FALSE} library(knitr) opts_chunk$set( echo = TRUE, out.width = "100%", dpi = 300 ) ``` ```{r Table, echo=FALSE} kable(iris) ``` ```{r sessionInfo} rmarkdown::pandoc_version() packageVersion("knitr") ``` ```
null
CC BY-SA 4.0
null
2022-12-08T13:03:54.553
2022-12-08T13:03:54.553
null
null
10,215,301
null
74,731,095
2
null
74,730,208
0
null
As mentioned in the Qt docs of [QAbstractScrollArea](https://doc-snapshots.qt.io/qt6-dev/qabstractscrollarea.html#details), you should draw the contents taking the scroll positions into account: > Draw the contents of the area in the viewport according to the values of the scroll bars. `QScrollArea` is able to perform this mapping for you, but `QPdfView` isn't derived from `QScrollArea`.
null
CC BY-SA 4.0
null
2022-12-08T13:35:48.740
2022-12-08T13:35:48.740
null
null
7,621,674
null
74,731,225
2
null
74,727,435
0
null
I don't think any subtle method exist. So you have to print those yourself, adding explicitly text. Which is not that hard to do. For example, if you add this just after your `plot` ``` for i in range(len(d)): ax.text(i, df_rel.iloc[i,0]/2, d.iloc[i,0], ha='center', fontweight='bold', color='#ffff00', fontsize='small') ax.text(i, 50+df_rel.iloc[i,0]/2, f.iloc[i,0], ha='center', fontweight='bold', color='#400040', fontsize='small') ``` you get this result [](https://i.stack.imgur.com/xFs6Y.png) You can of course change color, size, position, etc. (I am well known for by total lack of bon goût for those matter). But also decide some arbitrary rule, such as not printing '0' (that the advantage of doing things explicitly: your code, your rule; you don't have to fight an existing API to convince it to do it your way).
null
CC BY-SA 4.0
null
2022-12-08T13:46:12.127
2022-12-08T13:46:12.127
null
null
20,037,042
null
74,731,271
2
null
74,731,040
0
null
You use the max-height property instead of height. Set the overflow of subCategory to hidden. Then set its initial max-height to 0. Then upon hover or focus, you make the max-height a large and impossible number like 9999px for example. ``` <div class="category2" tabindex="1"> <a href="#" class="items2" id="itemOne"> Elektrikli El Aletleri </a> <div class="subCategory" id="subListOne"> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> </div> </div> .category2 { flex-direction: column; display: flex; } @media screen and (max-width:1220px) { .category2 { display: flex; } .category2 > a { height: 50px; } } .items2 { border:1px solid white; background-color: black; color: white; display: flex; justify-content: center; align-items: center; border-radius: 20px; font-size:20px; } .subCategory { flex-direction: column; background-color: darkslategrey; transition: .5s ease-in-out; max-height: 0; overflow: hidden; } .category2:hover .subCategory{ max-height: 999px; } ``` Take a look at what I've done [here](https://codepen.io/danieloseni/pen/QWxoMEM)
null
CC BY-SA 4.0
null
2022-12-08T13:49:01.977
2022-12-08T13:49:01.977
null
null
8,275,047
null
74,731,276
2
null
74,731,040
0
null
You can animate the `max-height` property ``` let itemOne = document.getElementById('itemOne'); let subListOne = document.getElementById('subListOne'); itemOne.addEventListener('click', () => { subListOne.classList.toggle('active'); }) ``` ``` .category2 { display: flex; flex-direction: column; } .category2>a { height: 50px; } .items2 { border: 1px solid white; background-color: black; color: white; display: flex; justify-content: center; align-items: center; border-radius: 20px; font-size: 20px; } .subCategory { flex-direction: column; background-color: darkslategrey; display: flex; max-height: 0px; overflow: hidden; transition: max-height 0.7s ease } .subCategory > a { color: white; text-decoration: none; } .active { max-height: 400px; } ``` ``` <div class="category2"> <a href="#" class="items2" id="itemOne">Elektrikli El Aletleri</a> <div class="subCategory" id="subListOne"> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> <a href="#">Lorem ipsum dolor sit.</a> </div> </div> ```
null
CC BY-SA 4.0
null
2022-12-08T13:49:17.743
2022-12-08T17:35:00.270
2022-12-08T17:35:00.270
3,132,019
3,132,019
null
74,731,679
2
null
74,731,576
-1
null
After execution of the function, the variable will no longer be available and it will be referencing the globally scope which don't have your variable.
null
CC BY-SA 4.0
null
2022-12-08T14:19:13.133
2022-12-08T14:19:13.133
null
null
19,923,757
null
74,731,705
2
null
74,731,576
0
null
> A variable is declared using 'var' keyword inside a block ( {...} ). Can we access that variable outside the block? I searched on several websites and the answer was 'yes'. tldr; It's more precise to say . --- `var` scopes a variable to the nearest . The body of the function (excepting some arrow functions) is a block. Not all blocks are associated with functions. ``` { var inBlock = 1; } console.log(inBlock); // This logs 1 function aFunction() { var inFunction = 2; } aFunction(); console.log(inFunction); // This triggers a reference error ```
null
CC BY-SA 4.0
null
2022-12-08T14:21:05.367
2022-12-08T14:21:05.367
null
null
19,068
null
74,731,761
2
null
74,731,576
0
null
You can access the variable but that doesn't necessarily mean your variable will actually have a value before passing through said block. `var` will be known throughout the entire function. So if you declare `var x` at the end of your function (or in an if-block nested in a while in another while) and assign it there, you will be able to call it at the start of the function, but the value will be "undefined" since it hasn't been assigned a value yet at that point of the execution. Hence why `var` needs careful consideration on usage to make sure you actually need said variable outside the block where you're using/initializing it. for-loops are (in my opinion) easiest to explain this with: ``` for( var i = 0; i < arr.length; i++ ) { // do something }; ``` The variable `i` here will actually be known OUTSIDE the for-loop. It will be undefined before going through the for loop and will have the value of the last iteration after the for loop. (As oppposed to using `let` which will make it so variable `i` is not known outside the for-loop)
null
CC BY-SA 4.0
null
2022-12-08T14:25:36.533
2022-12-08T14:25:36.533
null
null
4,684,781
null
74,731,765
2
null
74,724,019
1
null
Absolutely. Most CISC CPU assembly languages do this actually. I'll use x86 Assembly to illustrate, but it's certainly possible to write your own MIPS assembler that allows this. ``` mov eax,[eax] ;encoded as 8B 00 mov eax,[ecx] ;encoded as 8B 01 mov eax,[edx] ;encoded as 8B 02 mov eax,[ebx] ;encoded as 8B 03 ``` All of these instructions load the `eax` register indirectly using another register as a pointer to memory. Which register is used depends on the pattern of bits. Not the best example, but it is a thing that many CPUs do. EDIT: used x86 Assembly for the example now, which doesn't completely change the bytes when using different operation modes for this example.
null
CC BY-SA 4.0
null
2022-12-08T14:25:55.407
2022-12-08T15:47:07.230
2022-12-08T15:47:07.230
16,589,128
16,589,128
null
74,731,988
2
null
74,731,576
0
null
Variables declared with `var` has `global` and `function` scope but does not have `block scope`. Which means these variables are only accessible inside a function or globally. ``` // if we try to access it from function scope, it is not accessible function greeting() { var sayHi = "Hello" return sayHi } console.log(sayHi) // sayHi is undefined. Because it has function scope // if we try to access it from block scope, it is accessible. if (1 < 2) { var sayBye = "Bye" } console.log(sayBye) // prints 'Bye', because it has no block scope ```
null
CC BY-SA 4.0
null
2022-12-08T14:41:39.417
2022-12-08T14:41:39.417
null
null
15,148,870
null
74,732,738
2
null
74,728,139
0
null
I have solved problem and thanks for XtremeBaumer and Gagravarr. Because the JVM cannot support the Character. I create such a converter,which could call the available character set when using the exclusive characters. Firstly, I create a file named in the folder of META-INF/services. Then, I create in project folder. ``` import java.nio.charset.Charset; import java.nio.charset.spi.CharsetProvider; import java.util.Collections; import java.util.Iterator; public class ChineseCharsetProvider extends CharsetProvider { private static final String GB2312 = "GB2312"; private static final String BIG5 = "Big5"; private static final String GBK = "GBK"; @Override public Iterator<Charset> charsets() { return Collections.emptyIterator(); } @Override public Charset charsetForName(String charsetName) { if (GB2312.equalsIgnoreCase(charsetName) || BIG5.equalsIgnoreCase(charsetName)) return Charset.forName(GBK); return Charset.defaultCharset(); } } ```
null
CC BY-SA 4.0
null
2022-12-08T15:35:10.877
2022-12-08T15:35:10.877
null
null
10,503,467
null
74,732,852
2
null
74,729,062
0
null
Upgrade Magento 2.4 to 2.4.4-p2 resolve my issue.
null
CC BY-SA 4.0
null
2022-12-08T15:44:10.263
2022-12-08T15:44:10.263
null
null
5,014,853
null
74,732,944
2
null
27,886,477
0
null
Hint: be sure that you use {% load static %} in all templates your using to extend static files. Extending a base.html file doesn't carry over {% load static %} for you.
null
CC BY-SA 4.0
null
2022-12-08T15:51:26.880
2022-12-08T15:51:26.880
null
null
7,120,717
null
74,733,219
2
null
11,522,434
0
null
We can also update browser setting to consider logged in user - Internet Options-> Security -> Security Settings-> Select Automatic login with current user name and password. [](https://i.stack.imgur.com/hBxqi.png)
null
CC BY-SA 4.0
null
2022-12-08T16:12:53.820
2022-12-08T16:12:53.820
null
null
1,372,008
null
74,733,526
2
null
74,730,677
0
null
It looks like on of your ETA rows in the Table is empty. You could add error handling to your expression. Try something like below: ``` if(empty(item()?['ETA']), '', formatdatetime(item()?['ETA'], 'dd-MM-yyyy HH:mm:ss')) ```
null
CC BY-SA 4.0
null
2022-12-08T16:38:18.663
2022-12-08T16:38:18.663
null
null
19,580,297
null
74,733,970
2
null
74,733,711
-1
null
When you put a `return` statement in a function, all the code below it doesn't execute. In your `renderBadge` function, you invoke `generateREADME(badge)` after the `return` statement. So it never runs: ``` function renderBadge(license) { let badge = '' ... } else { badge = '' } return badge; generateREADME(badge) // this line doesn't execute } ``` To call `generateREADME()` with the `renderBadge` function output, you need to remove the `generateREADME(badge)` statement: ``` function renderBadge(license) { let badge = '' ... } else { badge = '' } return badge; } ``` After that, call the function in the relevant place and store the output in the variable like so: ``` ... .then((answers) => { const readmePageContent = generateREADME(answers); input = renderBadge(answers) generateREADME(input) ``` Or you can do it succinctly like this: ``` ... generateREADME(renderBadge(answers)) ... ```
null
CC BY-SA 4.0
null
2022-12-08T17:14:08.700
2022-12-08T17:14:08.700
null
null
10,867,936
null