qid
int64
4
19.1M
question
stringlengths
18
48.3k
answers
list
date
stringlengths
10
10
metadata
list
74,520,035
<p>I would like to collapse a data frame with &lt; 100 columns fourfold, whereby the code would iterate over groups of 4 adjacent columns and collapse them into one. However, the resulting values based on each set of 4, depend on the priority of the value.</p> <p>For example, the highest priority is '1', so whenever an...
[ { "answer_id": 74520264, "author": "DaveArmstrong", "author_id": 8206434, "author_profile": "https://Stackoverflow.com/users/8206434", "pm_score": 3, "selected": true, "text": "dat <- structure(list(ID = c(\"row1\", \"row2\"), c1 = c(1, NA), c2 = c(0, \n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74520035", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9623670/" ]
74,520,048
<p>I'm using c# and I'm using CQRS So let's image this scenario</p> <pre><code>public async Task&lt;Response&lt;SaleProducts&gt;&gt; Handle(CreateSaleProductCommand request, CancellationToken cancellationToken) { var newEntity = MyCustomerMapper.Mapper.Map&lt;SaleProducts&gt;(request); ...
[ { "answer_id": 74520200, "author": "Sergey Kudriavtsev", "author_id": 625594, "author_profile": "https://Stackoverflow.com/users/625594", "pm_score": 1, "selected": false, "text": "public async Task<Response<(SaleProducts? Products, string? Status)>> Handle(CreateSaleProductCommand reque...
2022/11/21
[ "https://Stackoverflow.com/questions/74520048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/287964/" ]
74,520,077
<p>I have a xml file and I have to store the values in the list to use it later. The xml file contain mostly int<code>s and string</code>s and it looks like this:</p> <pre><code>&lt;AllThings&gt; &lt;Anythings&gt; &lt;Anything Step=&quot;1&quot; Name=&quot;1&quot;&gt; &lt;Somethings&gt; ...
[ { "answer_id": 74520200, "author": "Sergey Kudriavtsev", "author_id": 625594, "author_profile": "https://Stackoverflow.com/users/625594", "pm_score": 1, "selected": false, "text": "public async Task<Response<(SaleProducts? Products, string? Status)>> Handle(CreateSaleProductCommand reque...
2022/11/21
[ "https://Stackoverflow.com/questions/74520077", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18241129/" ]
74,520,084
<p>I have the following function that calculates the eucledian distance between all combinations of the vectors in Matrix <code>A</code> and Matrix <code>B</code></p> <pre><code>def distance_matrix(A,B): n=A.shape[1] m=B.shape[1] C=np.zeros((n,m)) for ai, a in enumerate(A.T): for bi, b in enum...
[ { "answer_id": 74520165, "author": "Sembei Norimaki", "author_id": 20396240, "author_profile": "https://Stackoverflow.com/users/20396240", "pm_score": 2, "selected": true, "text": "A = np.array([[-1, -1, 1, 1, 2], [ 1, -1, 2, -1, 1]])\nB = np.array([[-2, -1, 1, 2], [-1, 2, 1, -1...
2022/11/21
[ "https://Stackoverflow.com/questions/74520084", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5439470/" ]
74,520,088
<p>I am making a website for a school project, I am a noob!</p> <p>I am one step away from completing the project, the last piece is to get my Dynamically created HTML products to display in a row of 3.</p> <p>Here is my HTML:</p> <pre><code>&lt;div id=&quot;product-featured-box&quot;&gt; &lt;/div&gt; </code></pre> <p...
[ { "answer_id": 74520234, "author": "Kailash", "author_id": 3065049, "author_profile": "https://Stackoverflow.com/users/3065049", "pm_score": 0, "selected": false, "text": "<div class=\"product-featured-box\">\n<div class=\"product-box\">1</div>\n<div class=\"product-box\">2</div>\n<div c...
2022/11/21
[ "https://Stackoverflow.com/questions/74520088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20549509/" ]
74,520,097
<p>I have a parent table that is meant to be reusable by just inputting a datasource. Components that want to use this table should have a service injection that provides <code>Observable</code>s for the parent table to consume. as such, I expect any components to need to implement one or more of the HTTP Verbs, Get,Pu...
[ { "answer_id": 74529647, "author": "Mohamed.Karkotly", "author_id": 10242047, "author_profile": "https://Stackoverflow.com/users/10242047", "pm_score": -1, "selected": false, "text": "MatTable ngOnChanges() ngOnChanges() elements any[] ngOnChanges(changes: SimpleChanges): void {\n this....
2022/11/21
[ "https://Stackoverflow.com/questions/74520097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1230911/" ]
74,520,102
<p>When we build the react app using <code>react-scripts build</code>, the relative paths for the created js/css are like: <strong>/static/js/main.b8ba68fa.js</strong> and so on.</p> <p>Generated <strong>index.html</strong>:</p> <pre><code>&lt;head&gt; ... &lt;link rel=&quot;icon&quot; href=&quot;/favicon.ico&quot;...
[ { "answer_id": 74529647, "author": "Mohamed.Karkotly", "author_id": 10242047, "author_profile": "https://Stackoverflow.com/users/10242047", "pm_score": -1, "selected": false, "text": "MatTable ngOnChanges() ngOnChanges() elements any[] ngOnChanges(changes: SimpleChanges): void {\n this....
2022/11/21
[ "https://Stackoverflow.com/questions/74520102", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13830075/" ]
74,520,120
<p>I have a program that will create orders for a bunch of orders. However API has limitation that if I wanna do that I got to do it 10 at a time</p> <pre><code>If orderList.Count &gt; 10 Then Dim FirstTwenty = From n In orderList Take (10) Dim theRest = From n In orderList Skip (10) Dim result1 = Await int...
[ { "answer_id": 74529647, "author": "Mohamed.Karkotly", "author_id": 10242047, "author_profile": "https://Stackoverflow.com/users/10242047", "pm_score": -1, "selected": false, "text": "MatTable ngOnChanges() ngOnChanges() elements any[] ngOnChanges(changes: SimpleChanges): void {\n this....
2022/11/21
[ "https://Stackoverflow.com/questions/74520120", "https://Stackoverflow.com", "https://Stackoverflow.com/users/700663/" ]
74,520,133
<p>I am trying to work with Coroutines and multithreading together in C++.</p> <p>In many coroutine examples, they create a new thread in the <code>await_suspend</code> of the <code>co_await</code> operator for the promise type. I want to submit to a thread pool in this function.</p> <p>Here I define a <code>co_await</...
[ { "answer_id": 74529647, "author": "Mohamed.Karkotly", "author_id": 10242047, "author_profile": "https://Stackoverflow.com/users/10242047", "pm_score": -1, "selected": false, "text": "MatTable ngOnChanges() ngOnChanges() elements any[] ngOnChanges(changes: SimpleChanges): void {\n this....
2022/11/21
[ "https://Stackoverflow.com/questions/74520133", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10662977/" ]
74,520,139
<p>I have a golang application which has API key authorization via the <code>JWT token</code></p> <p>I am using Kubernetes. So, this golang app is in a pod.</p> <p>Now, I want to create another application for cronjobs to hit golang endpoint once a week.</p> <p><strong>What I need:</strong></p> <p>How to <em><strong>do...
[ { "answer_id": 74529647, "author": "Mohamed.Karkotly", "author_id": 10242047, "author_profile": "https://Stackoverflow.com/users/10242047", "pm_score": -1, "selected": false, "text": "MatTable ngOnChanges() ngOnChanges() elements any[] ngOnChanges(changes: SimpleChanges): void {\n this....
2022/11/21
[ "https://Stackoverflow.com/questions/74520139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20563540/" ]
74,520,157
<p>I want to trigger a Test pipeline from a stage of Main pipeline, both the pipelines are present in different projects within the same organization. I am able to trigger the pipeline using the resource option but the problem is it triggers the Test pipeline when Main pipeline finishes successfully but I want to trigg...
[ { "answer_id": 74530980, "author": "Kim Xu-MSFT", "author_id": 19287209, "author_profile": "https://Stackoverflow.com/users/19287209", "pm_score": 0, "selected": false, "text": "trigger:\n- none\n\npool:\n vmImage: ubuntu-latest\n\nstages:\n\n - stage: A\n displayName: A stage\n...
2022/11/21
[ "https://Stackoverflow.com/questions/74520157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20563639/" ]
74,520,174
<p>I have a text edit controller and I would like to check mutliple characters in the same contains ()</p> <pre><code>_changeUsernameController.text.contains(&quot;a&quot; &quot;b&quot;) // what I want _changeUsernameController.text.contains(&quot;a&quot;) || _changeUsernameController.text.contains(&quot;b&quot;) // w...
[ { "answer_id": 74520301, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 1, "selected": false, "text": "RegExp var reg = RegExp(r'(?:a)|(?:b)');\n_changeUsernameController.text.contains(reg);\n var test1 = 'acc';\n...
2022/11/21
[ "https://Stackoverflow.com/questions/74520174", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19192614/" ]
74,520,190
<p>I'm submitting base64 image to server side via FormData(). Getting something like</p> <pre><code>{&quot;------WebKitFormBoundaryjJtrF2zdTOFuHmYM\\r\\nContent-Disposition: form-data; name&quot;:&quot;\\&quot;image\\&quot;\\r\\n\\r\\ndata:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASoAAABiCAYAAADnRp6aAAAAAXNSR0IArs4c6QA...
[ { "answer_id": 74520301, "author": "eamirho3ein", "author_id": 10306997, "author_profile": "https://Stackoverflow.com/users/10306997", "pm_score": 1, "selected": false, "text": "RegExp var reg = RegExp(r'(?:a)|(?:b)');\n_changeUsernameController.text.contains(reg);\n var test1 = 'acc';\n...
2022/11/21
[ "https://Stackoverflow.com/questions/74520190", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18290071/" ]
74,520,196
<p>In my first Next.js project, I have an article component which is rendered at server side. I'd like to fetch articls' tags from client side because otherwise I get to many DOM elements. So here is what I came up with:</p> <pre><code>const ArticlesPage = () =&gt; { const [tags, setTags] = useState([]) co...
[ { "answer_id": 74520395, "author": "Taghi Khavari", "author_id": 11432102, "author_profile": "https://Stackoverflow.com/users/11432102", "pm_score": 1, "selected": false, "text": "data const ArticlesPage = () => {\n const { isLoading, isError, data: tags, error } = useQuery(\"tags\", ge...
2022/11/21
[ "https://Stackoverflow.com/questions/74520196", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15363841/" ]
74,520,197
<p>I have a dataframe which contains 3500 items with their values and categorised in 4 different types.</p> <p>Then I have to distribute the items among 101 people who live in 28 different areas.</p> <p>df1:</p> <pre><code> # A tibble: 3,500 × 4 item area type value &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; ...
[ { "answer_id": 74520405, "author": "DaveArmstrong", "author_id": 8206434, "author_profile": "https://Stackoverflow.com/users/8206434", "pm_score": 1, "selected": false, "text": "library(purrr)\nlibrary(dplyr)\nitems <- paste0(\"Item\",1:3000)\ntypes <- c(\"A\", \"B\", \"C\", \"D\")\nvalu...
2022/11/21
[ "https://Stackoverflow.com/questions/74520197", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11351821/" ]
74,520,198
<p>In every new message that comes to my account, the application restarts itself. Then it gives this error.I tried to find the solution but failed.I write the error code on the bottom line.</p> <pre><code>E/AndroidRuntime: FATAL EXCEPTION: main Process: com.edusoft.teacher.myeducare, PID: 7367 java.lang.Runtim...
[ { "answer_id": 74520305, "author": "Rishabh Shukla", "author_id": 8867099, "author_profile": "https://Stackoverflow.com/users/8867099", "pm_score": 0, "selected": false, "text": "val updatedPendingIntent = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n PendingIntent.getAc...
2022/11/21
[ "https://Stackoverflow.com/questions/74520198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20247755/" ]
74,520,236
<pre><code> child: Scaffold( body: SingleChildScrollView( child: Column( children: [ _cardList(context), Column( children: [ Expanded( child: ListView.builder( scrollDirection: Axis.vertical, shrinkWrap: true, ...
[ { "answer_id": 74520305, "author": "Rishabh Shukla", "author_id": 8867099, "author_profile": "https://Stackoverflow.com/users/8867099", "pm_score": 0, "selected": false, "text": "val updatedPendingIntent = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n PendingIntent.getAc...
2022/11/21
[ "https://Stackoverflow.com/questions/74520236", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17906689/" ]
74,520,239
<p>In C++ we have <code>std::variant</code> for creating a <a href="https://en.wikipedia.org/wiki/Tagged_union" rel="nofollow noreferrer">sum-types</a> (AKA discriminated-union).<br /> For example, the following will allow <code>v</code> to hold either a <code>std::string</code> or an <code>int</code>:</p> <pre class=...
[ { "answer_id": 74520357, "author": "pm100", "author_id": 173397, "author_profile": "https://Stackoverflow.com/users/173397", "pm_score": 1, "selected": false, "text": "object object v;\n v = \"aaa\";\n v = 42;\n" }, { "answer_id": 74520382, "author": "theemee", "autho...
2022/11/21
[ "https://Stackoverflow.com/questions/74520239", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18519921/" ]
74,520,243
<p>I am creating a simple EXPENSE MANAGER app</p> <p>I have divided screen in two section</p> <p>Top Section for showing Two card of TotalIncome and TotalExpense and other section is showing All Transactions</p> <p>Here, I have taken Streambuilder for showing all transaction, and with the help of this stream builder <s...
[ { "answer_id": 74520357, "author": "pm100", "author_id": 173397, "author_profile": "https://Stackoverflow.com/users/173397", "pm_score": 1, "selected": false, "text": "object object v;\n v = \"aaa\";\n v = 42;\n" }, { "answer_id": 74520382, "author": "theemee", "autho...
2022/11/21
[ "https://Stackoverflow.com/questions/74520243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18817235/" ]
74,520,255
<p>I tried to publish my app in production but I'm facing this issue <code>You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer....
[ { "answer_id": 74520357, "author": "pm100", "author_id": 173397, "author_profile": "https://Stackoverflow.com/users/173397", "pm_score": 1, "selected": false, "text": "object object v;\n v = \"aaa\";\n v = 42;\n" }, { "answer_id": 74520382, "author": "theemee", "autho...
2022/11/21
[ "https://Stackoverflow.com/questions/74520255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10106583/" ]
74,520,280
<p>I want to discover the underlying pattern between my features and target so I tried to use groupby but instead of the count I want to calculate the ratio or the percentage compared to the total of the count of each class the following code is similar to the work I have done.</p> <pre><code>fet1=[&quot;A&quot;,&quot;...
[ { "answer_id": 74520281, "author": "Mohamed Amine", "author_id": 10327984, "author_profile": "https://Stackoverflow.com/users/10327984", "pm_score": -1, "selected": false, "text": "fet1=[\"A\",\"B\",\"C\"]\nfet2=[\"X\",\"Y\",\"Z\"]\ntarget=[\"0\",\"1\"]\ndf = pd.DataFrame(data={\"fet1\":...
2022/11/21
[ "https://Stackoverflow.com/questions/74520280", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10327984/" ]
74,520,332
<p>I'm trying to follow along with a video course to implement photo gallery with Unsplash.</p> <p>First I implemented UIViewController with searchbar and navigation bar in it</p> <pre><code>PhotoCollectionViewController: UIViewController </code></pre> <p>and manually adding searchbar and navigation bar</p> <pre><code>...
[ { "answer_id": 74520281, "author": "Mohamed Amine", "author_id": 10327984, "author_profile": "https://Stackoverflow.com/users/10327984", "pm_score": -1, "selected": false, "text": "fet1=[\"A\",\"B\",\"C\"]\nfet2=[\"X\",\"Y\",\"Z\"]\ntarget=[\"0\",\"1\"]\ndf = pd.DataFrame(data={\"fet1\":...
2022/11/21
[ "https://Stackoverflow.com/questions/74520332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11719536/" ]
74,520,385
<p>I need to save some items from local storage with c# (via js, because seems like there is no solution with 'pure' c#). I've tried this (sorry for code convention, I've been doing it in a hurry):</p> <pre><code> public string token; string storageToken = &quot;localStorage.getItem('token')&quot;; token = (string)js...
[ { "answer_id": 74521214, "author": "Alex Karamfilov", "author_id": 7031148, "author_profile": "https://Stackoverflow.com/users/7031148", "pm_score": 1, "selected": false, "text": "LocalStorage local = ((WebStorage) driver).getLocalStorage();\n" }, { "answer_id": 74538186, "au...
2022/11/21
[ "https://Stackoverflow.com/questions/74520385", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20563836/" ]
74,520,410
<p>i have a problem with RAM usage - I fetch quite a lot of data from DB and pour it into a pandas DataFrame, where I do <code>groub_by</code> to list - something DB is not very good at.</p> <p>Thing is, as I fetch around 40 columns, pandas is not really good in determining the dtypes for each column. I would love to s...
[ { "answer_id": 74521214, "author": "Alex Karamfilov", "author_id": 7031148, "author_profile": "https://Stackoverflow.com/users/7031148", "pm_score": 1, "selected": false, "text": "LocalStorage local = ((WebStorage) driver).getLocalStorage();\n" }, { "answer_id": 74538186, "au...
2022/11/21
[ "https://Stackoverflow.com/questions/74520410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10532827/" ]
74,520,412
<p>I want to take <pre>[{'O', 'L'}, {'E', 'L'}, {'O', 'H'}, {'E', 'L'}, {'E', 'H'}]</pre> and change it to <pre>[&quot;OL&quot;, &quot;EL&quot;, &quot;OH&quot;, &quot;EL&quot;, &quot;EH&quot;]</pre> but I am not seeing how. Help?</p>
[ { "answer_id": 74520575, "author": "zwippie", "author_id": 409792, "author_profile": "https://Stackoverflow.com/users/409792", "pm_score": 3, "selected": true, "text": "Enum.map(my_list, fn {a, b} -> List.to_string([a, b]) end)\n" }, { "answer_id": 74520635, "author": "Dogber...
2022/11/21
[ "https://Stackoverflow.com/questions/74520412", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1096587/" ]
74,520,422
<p>I am trying to extract variable names from file names as follows:</p> <pre><code>happy = &quot;LOL&quot; angry = &quot;GRRRR&quot; surprised= &quot;YUPPIE&quot; file_names=[&quot;happy.wav&quot;,&quot;angry.wav&quot;,&quot;surprised.wav&quot; for i in file_names: name = i.split('.') name_=name[0] print(name_)...
[ { "answer_id": 74520575, "author": "zwippie", "author_id": 409792, "author_profile": "https://Stackoverflow.com/users/409792", "pm_score": 3, "selected": true, "text": "Enum.map(my_list, fn {a, b} -> List.to_string([a, b]) end)\n" }, { "answer_id": 74520635, "author": "Dogber...
2022/11/21
[ "https://Stackoverflow.com/questions/74520422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17016466/" ]
74,520,493
<p>I'm using Node Red and Postgresql to record events, one event is that a specific 0x40 light has been switched on, another event is that the same light has been switched off. For simplicity, the on and off times have been stored in different tables.</p> <p>Using SQL, is it possible to calculate the sum of durations t...
[ { "answer_id": 74520575, "author": "zwippie", "author_id": 409792, "author_profile": "https://Stackoverflow.com/users/409792", "pm_score": 3, "selected": true, "text": "Enum.map(my_list, fn {a, b} -> List.to_string([a, b]) end)\n" }, { "answer_id": 74520635, "author": "Dogber...
2022/11/21
[ "https://Stackoverflow.com/questions/74520493", "https://Stackoverflow.com", "https://Stackoverflow.com/users/896646/" ]
74,520,574
<p>I am trying to hide the main div ('product-block-list__item product-block-list__item--content size__chart') when the class ('ks-chart-container') is not in the page.</p> <p>(No jQuery if possible)</p> <hr /> <p>Here is the container with ('ks-chart-container').</p> <pre><code>&lt;div class=&quot;product-block-list__...
[ { "answer_id": 74520575, "author": "zwippie", "author_id": 409792, "author_profile": "https://Stackoverflow.com/users/409792", "pm_score": 3, "selected": true, "text": "Enum.map(my_list, fn {a, b} -> List.to_string([a, b]) end)\n" }, { "answer_id": 74520635, "author": "Dogber...
2022/11/21
[ "https://Stackoverflow.com/questions/74520574", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14463877/" ]
74,520,583
<p>I have observed that the <code>TensorFlow</code> methods like <code>assign_add</code> and <code>assign_sub</code> modify the variables of both object and class (if exist). Here is a simple code to reproduce my observation. Can anyone please clarify about this behavior (<code>assign_sub</code> and <code>assign_add</c...
[ { "answer_id": 74520710, "author": "chepner", "author_id": 1126841, "author_profile": "https://Stackoverflow.com/users/1126841", "pm_score": 2, "selected": true, "text": "a b self.a += to_add\nself.a -= to_sub\n self.a = self.a.__iadd__(to_add)\nself.a = self.a.__isub__(to_sub)\n type(se...
2022/11/21
[ "https://Stackoverflow.com/questions/74520583", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17658327/" ]
74,520,586
<p>I am trying to read information from a column in my csv file and use it to create a new column. Please help</p> <p>I imported the csv file and printed the first 10 rows (+ header) but now I would like to create a column for the years in the title column.</p> <pre><code>``` import csv from itertools import islice fr...
[ { "answer_id": 74520720, "author": "maxxel_", "author_id": 17575465, "author_profile": "https://Stackoverflow.com/users/17575465", "pm_score": 0, "selected": false, "text": "import pandas as pd\ndf = pd.read_csv('/home/raymondossai/movies.csv')\n # get the 4 characters of the year (first...
2022/11/21
[ "https://Stackoverflow.com/questions/74520586", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16610162/" ]
74,520,590
<p>i make program for record audio for android but i find MediaRecorder() Deprecated <code>kotlin code</code></p> <pre><code>package noteapp.notesnotesnotescairo.mynoteapp import android.Manifest import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.content.pm...
[ { "answer_id": 74520720, "author": "maxxel_", "author_id": 17575465, "author_profile": "https://Stackoverflow.com/users/17575465", "pm_score": 0, "selected": false, "text": "import pandas as pd\ndf = pd.read_csv('/home/raymondossai/movies.csv')\n # get the 4 characters of the year (first...
2022/11/21
[ "https://Stackoverflow.com/questions/74520590", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20563918/" ]
74,520,638
<p>I am trying to save random numbers in an array</p> <p>I have tried this bot it gives me an error (A constant value is expected Code CS0150)</p> <p>`</p> <pre><code>int x = 0; Random rnd = new Random(); int[] cards; while (x != 5) { cards =new int[x] { rnd.Next() }; Console.WriteLine(cards[x]); x++; } <...
[ { "answer_id": 74520697, "author": "MakePeaceGreatAgain", "author_id": 2528063, "author_profile": "https://Stackoverflow.com/users/2528063", "pm_score": 1, "selected": false, "text": "cards[x] = rnd.Next() int[] cards = new int[5] int x = 0;\n\nRandom rnd = new Random();\nint[] cards = ...
2022/11/21
[ "https://Stackoverflow.com/questions/74520638", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15401598/" ]
74,520,644
<p>I'm facing issue with tensorboard loading in Google Colab. I tried to uninstall and then install it again but no sucess. i'm sharing the code and the error.</p> <pre><code>!pip install tensorboard </code></pre> <pre><code>%load_ext tensorboard </code></pre> <pre><code>log_folder = 'log1' </code></pre> <pre><code>cal...
[ { "answer_id": 74520739, "author": "TQCH", "author_id": 12568022, "author_profile": "https://Stackoverflow.com/users/12568022", "pm_score": 2, "selected": false, "text": "--logdir <PATH> --logdir log1" }, { "answer_id": 74520947, "author": "Jirayu Kaewprateep", "author_id...
2022/11/21
[ "https://Stackoverflow.com/questions/74520644", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17765799/" ]
74,520,666
<p>Is there a short form for accessing dictionary values in for loop in Python?</p> <p>I have the following example code:</p> <pre><code>dict = [{&quot;name&quot;: &quot;testdata&quot;}, {&quot;name&quot;: &quot;testdata2&quot;}] for x in dict: print(x[&quot;name&quot;]) </code></pre> <p>Is there a way to write th...
[ { "answer_id": 74520722, "author": "deceze", "author_id": 476, "author_profile": "https://Stackoverflow.com/users/476", "pm_score": 2, "selected": true, "text": "for x in (i['name'] for i in dict):\n ...\n from operator import itemgetter\n\nfor x in map(itemgetter('name'), dict):\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74520666", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19275581/" ]
74,520,686
<p>Epsilon is the smallest value in a number encoding scheme that can be added to <code>1</code> to generate a number that has a distinctly different representation.</p> <p>Can anyone help me intuit why the loss of precision is greater in the latter example here? </p> <p><div class="snippet" data-lang="js" data-hide="f...
[ { "answer_id": 74520844, "author": "Dimava", "author_id": 5734961, "author_profile": "https://Stackoverflow.com/users/5734961", "pm_score": 0, "selected": false, "text": "console.log((10000.1 + 10000.2 - 20000.3) / Number.EPSILON)\n// > 16384 \nconsole.log((0.1 + 0.2 - 0.3) / Number.EPSI...
2022/11/21
[ "https://Stackoverflow.com/questions/74520686", "https://Stackoverflow.com", "https://Stackoverflow.com/users/38522/" ]
74,520,745
<p>I have several images and I want to make a presentation like on Facebook, by unwinding the images on the previous ones :</p> <p><a href="https://i.stack.imgur.com/THdGM.png" rel="nofollow noreferrer">enter image description here</a></p> <p>Here are my images, they are with a View Drupal 9 block :</p> <p><a href="htt...
[ { "answer_id": 74520844, "author": "Dimava", "author_id": 5734961, "author_profile": "https://Stackoverflow.com/users/5734961", "pm_score": 0, "selected": false, "text": "console.log((10000.1 + 10000.2 - 20000.3) / Number.EPSILON)\n// > 16384 \nconsole.log((0.1 + 0.2 - 0.3) / Number.EPSI...
2022/11/21
[ "https://Stackoverflow.com/questions/74520745", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20563401/" ]
74,520,746
<p>Taking a json file as input such as:</p> <pre class="lang-json prettyprint-override"><code>{&quot;computers&quot;: [{&quot;host&quot;:&quot;example&quot;, &quot;platform&quot;:&quot;some_platform&quot;, &quot;status&quot;: {&quot;working&quot;:&quot;yes&quot;, &quot;display&quot;:[&quot;n...
[ { "answer_id": 74520851, "author": "0stone0", "author_id": 5625547, "author_profile": "https://Stackoverflow.com/users/5625547", "pm_score": 0, "selected": false, "text": "computers .computers |= (first | . + .status | del(.status) | (.display |= join(.)))\n .computers first .status del(...
2022/11/21
[ "https://Stackoverflow.com/questions/74520746", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20563943/" ]
74,520,790
<p>I found some nice solutions here:</p> <p><a href="https://stackoverflow.com/questions/73339847/how-to-create-on-click-popup-which-includes-plots-using-ipyleaflet-folium-or-ge">How to create on click popup which includes plots using ipyleaflet, Folium or Geemap?</a></p> <p>which potentially would allow me to assign m...
[ { "answer_id": 74520851, "author": "0stone0", "author_id": 5625547, "author_profile": "https://Stackoverflow.com/users/5625547", "pm_score": 0, "selected": false, "text": "computers .computers |= (first | . + .status | del(.status) | (.display |= join(.)))\n .computers first .status del(...
2022/11/21
[ "https://Stackoverflow.com/questions/74520790", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6694814/" ]
74,520,801
<p>Derived from previous question here (<a href="https://stackoverflow.com/questions/74500427/format-authors-name-with-stringr">Format author's name with stringr</a>), I would like to edit a whole variable with different strings.</p> <p>Previous solution doesn't work as it repeats all strings to each one.</p> <pre clas...
[ { "answer_id": 74520850, "author": "MrFlick", "author_id": 2372064, "author_profile": "https://Stackoverflow.com/users/2372064", "pm_score": 3, "selected": true, "text": "unlist() sapply format_names <- function(variable) {\n variable %>%\n strsplit(\", \") %>%\n sapply(. %>% \n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74520801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15611828/" ]
74,520,805
<p>This run gets me every first appearance of an object with certain conditions.</p> <p>I run this code 900 times in a application run. It takes 10 minutes for 300.000 objects. I need to run it with a lot more objects (&gt; 10 million objects) So it'll take a really long time.</p> <p>This is the best code I could do:</...
[ { "answer_id": 74521055, "author": "theemee", "author_id": 14299113, "author_profile": "https://Stackoverflow.com/users/14299113", "pm_score": 3, "selected": true, "text": "public class FieldPlayerStatsForPositionComparer : IEqualityComparer<IFieldPlayerStatsForPosition> {\n public bo...
2022/11/21
[ "https://Stackoverflow.com/questions/74520805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20561972/" ]
74,520,838
<p>Basically I have a function is my child component, I would like to pass this function as a prop and call it my parent component.</p> <pre><code> function parent() { return ( &lt;div&gt; &lt;button onclick={handleAbort}&gt;&lt;/button&gt; &lt;/div&gt; ); } function child() { const handleAbort=...
[ { "answer_id": 74520941, "author": "damonholden", "author_id": 17670742, "author_profile": "https://Stackoverflow.com/users/17670742", "pm_score": 0, "selected": false, "text": "const handleAbort = () => {\n console.log('hello');\n};\n\nfunction parent() {\n return (\n <div>\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74520838", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20061856/" ]
74,520,840
<p>I have a maximum of quantity on a value and i want to see all the number on my dropdown</p> <p>for exemple my quantity is</p> <p>const quantity= 10</p> <p>i want to create a function which pushed [1,2,3,4,5,6,7,8,9,10] on an array.</p> <p>I'm working with react native</p>
[ { "answer_id": 74520879, "author": "Abbas Shaikh", "author_id": 12667283, "author_profile": "https://Stackoverflow.com/users/12667283", "pm_score": -1, "selected": false, "text": "\n function createArray(len){\n let arr = [] \n for(let i = 0 ; i < len;i++){\n arr.push...
2022/11/21
[ "https://Stackoverflow.com/questions/74520840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15220357/" ]
74,520,865
<p>I have a rectangle defined by 4 points. I want to move it to the left or right by specific distance. By moving I mean that result rectangle should be parallel to the original and if we put straights through corresponding points we will get rectangular cuboid.</p> <p>On an image I am given coordinates of points A,B,C...
[ { "answer_id": 74523952, "author": "prisoner849", "author_id": 4045502, "author_profile": "https://Stackoverflow.com/users/4045502", "pm_score": 1, "selected": false, "text": "body{\n overflow: hidden;\n margin: 0;\n} <script type=\"module\">\nimport * as THREE from \"https://cdn.skypa...
2022/11/21
[ "https://Stackoverflow.com/questions/74520865", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9740343/" ]
74,520,885
<p>A sample dataframe:</p> <pre><code>data = { &quot;col_A&quot;: [&quot;a&quot;,&quot;a&quot;,&quot;b&quot;,&quot;c&quot;], &quot;col_B&quot;: [1, 2, 2, 3], &quot;col_C&quot;: [&quot;demo&quot;, &quot;demo&quot;, &quot;demo&quot;, &quot;demo&quot;] } df = pd.DataFrame(data) </code></pre> <p>Dataframe</p> ...
[ { "answer_id": 74520953, "author": "Rabinzel", "author_id": 15521392, "author_profile": "https://Stackoverflow.com/users/15521392", "pm_score": 3, "selected": true, "text": "is_unique df.set_index(['col_A', 'col_B']).index.is_unique\n\n#True\n" }, { "answer_id": 74520965, "au...
2022/11/21
[ "https://Stackoverflow.com/questions/74520885", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8401374/" ]
74,520,893
<p><a href="https://i.stack.imgur.com/Rozzh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rozzh.png" alt="enter image description here" /></a>I am new to PHP and HTML and trying the below. The below html code displays data from the database and add a calendar as row. The calendar displays current ...
[ { "answer_id": 74521753, "author": "Peter Bennett", "author_id": 1947068, "author_profile": "https://Stackoverflow.com/users/1947068", "pm_score": 0, "selected": false, "text": "<?php\ninclude 'connect.php';\n?>\n\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<m...
2022/11/21
[ "https://Stackoverflow.com/questions/74520893", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1720827/" ]
74,520,901
<p>I know that in php you can make a function or procedure in the code itself like this</p> <pre><code> $query = &quot;CREATE FUNCTION Example (x INT) RETURNS BOOLEAN BEGIN END&quot;; mysql_query($query); $query = &quot;SELECT * FROM table&quot;; mysql_query($query); </code></pre> <p>Is i...
[ { "answer_id": 74521137, "author": "Taimoor Hassan", "author_id": 13000257, "author_profile": "https://Stackoverflow.com/users/13000257", "pm_score": 2, "selected": true, "text": "query = \"SELECT * FROM table\";\nmysql_query = ActiveRecord::Base.connection.execute(query)\n" }, { ...
2022/11/21
[ "https://Stackoverflow.com/questions/74520901", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19024091/" ]
74,520,916
<p>In the following code, the variable <code>x</code> has the type <code>RegExpExecArray | null</code> (according to VSCode).</p> <pre><code> const storeIdRegExp = /s(?&lt;storeId&gt;\d+)/u; const x = storeIdRegExp.exec(query); </code></pre> <p><strong>How can I find the definition of <code>RegExpExecArray</code>? I...
[ { "answer_id": 74521137, "author": "Taimoor Hassan", "author_id": 13000257, "author_profile": "https://Stackoverflow.com/users/13000257", "pm_score": 2, "selected": true, "text": "query = \"SELECT * FROM table\";\nmysql_query = ActiveRecord::Base.connection.execute(query)\n" }, { ...
2022/11/21
[ "https://Stackoverflow.com/questions/74520916", "https://Stackoverflow.com", "https://Stackoverflow.com/users/437/" ]
74,520,937
<p>I am using the <code>tmutil status</code> command to give me the current TimeMachine backup status. It gives an output of the sort</p> <pre><code>% tmutil status Backup session status: { BackupPhase = Copying; ClientID = &quot;com.apple.backupd&quot;; DateOfStateChange = &quot;2022-11-21 11:23:03 +0000&q...
[ { "answer_id": 74521137, "author": "Taimoor Hassan", "author_id": 13000257, "author_profile": "https://Stackoverflow.com/users/13000257", "pm_score": 2, "selected": true, "text": "query = \"SELECT * FROM table\";\nmysql_query = ActiveRecord::Base.connection.execute(query)\n" }, { ...
2022/11/21
[ "https://Stackoverflow.com/questions/74520937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15452/" ]
74,520,942
<p>I've got the array of string looks like that:</p> <pre><code>Cola-12-0-15-300-122 Pepsi-123-34-543 7_Up-rrr-12-2342-2 Fanta_Mineral-1212-fgdfg-33 </code></pre> <p>And I need to retrieve from these values just the first words till the dash.</p> <p>So I will have</p> <pre><code>Cola Pepsi 7_up Fanta_Mineral </code></p...
[ { "answer_id": 74520981, "author": "Mathias R. Jessen", "author_id": 712649, "author_profile": "https://Stackoverflow.com/users/712649", "pm_score": 2, "selected": false, "text": "-replace - -replace '-.*' $strings = -split @'\nPepsi-123-34-543\n7_Up-rrr-12-2342-2\nFanta_Mineral-1212-fgd...
2022/11/21
[ "https://Stackoverflow.com/questions/74520942", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18644650/" ]
74,520,961
<p>I am making a react-native user registration and login app and getting the following error. How can I fix this? My codes store exactly the same data that I use for registration. And in the SIGN IN page, it refuses to log in and shows the (Login FAILED) error. And in the console, it prints the following error. Please...
[ { "answer_id": 74520981, "author": "Mathias R. Jessen", "author_id": 712649, "author_profile": "https://Stackoverflow.com/users/712649", "pm_score": 2, "selected": false, "text": "-replace - -replace '-.*' $strings = -split @'\nPepsi-123-34-543\n7_Up-rrr-12-2342-2\nFanta_Mineral-1212-fgd...
2022/11/21
[ "https://Stackoverflow.com/questions/74520961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19788480/" ]
74,520,971
<p>I have a file <strong>in.txt</strong>.</p> <pre><code> name=&quot;XYZ_PP_0&quot; number=&quot;0x12&quot; bytesize=&quot;4&quot; info=&quot;0x0000001A&quot; name=&quot;GK_LMP_2_0&quot; number=&quot;0xA5&quot; bytesize=&quot;8&quot; info=&quot;0x00000000bbae321f&quot; name=&quot;MP_LKO_1_0&quot; number=&quot;0x356&quo...
[ { "answer_id": 74520981, "author": "Mathias R. Jessen", "author_id": 712649, "author_profile": "https://Stackoverflow.com/users/712649", "pm_score": 2, "selected": false, "text": "-replace - -replace '-.*' $strings = -split @'\nPepsi-123-34-543\n7_Up-rrr-12-2342-2\nFanta_Mineral-1212-fgd...
2022/11/21
[ "https://Stackoverflow.com/questions/74520971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20273554/" ]
74,521,021
<p>As the question, how do I animate a series of plots instead of printing each individual plot? Thanks a lot!!!</p> <pre><code> import numpy as np from matplotlib import pyplot as plt from scipy.integrate import odeint import matplotlib.animation as animation %matplotlib inline # Define vector field def vField(x,t,a...
[ { "answer_id": 74520981, "author": "Mathias R. Jessen", "author_id": 712649, "author_profile": "https://Stackoverflow.com/users/712649", "pm_score": 2, "selected": false, "text": "-replace - -replace '-.*' $strings = -split @'\nPepsi-123-34-543\n7_Up-rrr-12-2342-2\nFanta_Mineral-1212-fgd...
2022/11/21
[ "https://Stackoverflow.com/questions/74521021", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15625027/" ]
74,521,022
<p>I'm quite new with xslt and I have a xml-formatted text to transform to a different text format e.g. markdown. xml-formatting nodes can occur several times inside a text content as in the following simplified example:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quo...
[ { "answer_id": 74521681, "author": "Martin Honnen", "author_id": 252228, "author_profile": "https://Stackoverflow.com/users/252228", "pm_score": 0, "selected": false, "text": "<xsl:template match=\"bold\">**<xsl:apply-templates/>**</xsl:template>\n" }, { "answer_id": 74522717, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521022", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4545629/" ]
74,521,036
<p>I have a zip file in my download folder with the name &quot;Query Transaction History_20221121040329_01.xls&quot;</p> <p>This is the code I used to import the file to my machine</p> <pre><code>unzip(zipfile =&quot;C:/Users/Guest 1/Downloads/Query Transaction History_20221121040329_42118.zip&quot;, ...
[ { "answer_id": 74521681, "author": "Martin Honnen", "author_id": 252228, "author_profile": "https://Stackoverflow.com/users/252228", "pm_score": 0, "selected": false, "text": "<xsl:template match=\"bold\">**<xsl:apply-templates/>**</xsl:template>\n" }, { "answer_id": 74522717, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521036", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16087142/" ]
74,521,040
<p>Is there anyway I can reduce this code? I already tried shortening it to the shortest I can possibly think. Is there any possible shortening techniques there is?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-...
[ { "answer_id": 74521159, "author": "Cerbrus", "author_id": 1835379, "author_profile": "https://Stackoverflow.com/users/1835379", "pm_score": 4, "selected": true, "text": "document.getElementById('switcher').addEventListener('click', (param1) => {\n let isDark = param1.target.value === \...
2022/11/21
[ "https://Stackoverflow.com/questions/74521040", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20305737/" ]
74,521,041
<p>I am new to PowerShell and I am having the following problem.</p> <p>When typing the following command for asked value of <code>CanonicalNameOfObject</code> I am receiving <code>Microsoft.ActiveDirectory.Management.ADPropertyValueCollection</code>. I know that this problem is because that property isn't in a format ...
[ { "answer_id": 74521132, "author": "Mellik", "author_id": 20561885, "author_profile": "https://Stackoverflow.com/users/20561885", "pm_score": 2, "selected": false, "text": "Get-ADComputer -Filter * -Property * | Select-Object CanonicalName\n" }, { "answer_id": 74527471, "auth...
2022/11/21
[ "https://Stackoverflow.com/questions/74521041", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20540384/" ]
74,521,048
<p>I've written a personal budgeting/cash flow model app for my iPad. I'm older and a retired software developer and I created this just cause I like to code. It's taken me over two years to create as a labor of &quot;love&quot; of the craft. Using cloc I get:</p> <pre><code>------------------------------------------...
[ { "answer_id": 74521132, "author": "Mellik", "author_id": 20561885, "author_profile": "https://Stackoverflow.com/users/20561885", "pm_score": 2, "selected": false, "text": "Get-ADComputer -Filter * -Property * | Select-Object CanonicalName\n" }, { "answer_id": 74527471, "auth...
2022/11/21
[ "https://Stackoverflow.com/questions/74521048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13622371/" ]
74,521,051
<p>I am doing a test using Cypress and I have this rows created dynamically, like this one for example:</p> <p><a href="https://i.stack.imgur.com/3tXNv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3tXNv.png" alt="example table with dropdown icon to the right" /></a></p> <p>And what I want is to be...
[ { "answer_id": 74521132, "author": "Mellik", "author_id": 20561885, "author_profile": "https://Stackoverflow.com/users/20561885", "pm_score": 2, "selected": false, "text": "Get-ADComputer -Filter * -Property * | Select-Object CanonicalName\n" }, { "answer_id": 74527471, "auth...
2022/11/21
[ "https://Stackoverflow.com/questions/74521051", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12416498/" ]
74,521,094
<p>Right now I am working with an STMF429 nucleo-144 board and I am trying get the CAN to work. Here is my Code:</p> <pre><code>int intCAN(); int intFilter(); int pins(); int main(void) { //int CAN pins(); intFilter(); intCAN(); CAN1-&gt;sTxMailBox[0].TDLR = 0; CAN1-&gt;sTxMailBox[0].TDHR = 0;...
[ { "answer_id": 74521132, "author": "Mellik", "author_id": 20561885, "author_profile": "https://Stackoverflow.com/users/20561885", "pm_score": 2, "selected": false, "text": "Get-ADComputer -Filter * -Property * | Select-Object CanonicalName\n" }, { "answer_id": 74527471, "auth...
2022/11/21
[ "https://Stackoverflow.com/questions/74521094", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16524282/" ]
74,521,143
<p>I have a problem with Freemarker. I want to remove all the special characters from text string in freemarker: &quot;!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[]^_`{|}~&quot;. I tried writing regular expression for this but it is not working and facing some errors:</p> <p>&lt;#assign s = 'Foo bAr$%,*^%@()&quot;:&amp; baar...
[ { "answer_id": 74629671, "author": "bdasliva83", "author_id": 12969088, "author_profile": "https://Stackoverflow.com/users/12969088", "pm_score": 2, "selected": true, "text": "${s?replace(\"[^\\\\w]|_\", \"\", \"r\")}\n" } ]
2022/11/21
[ "https://Stackoverflow.com/questions/74521143", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8940980/" ]
74,521,148
<p>I have the following pandas dataframe</p> <pre><code>is_and_mp market_state reason '100' None NaN '400' None NaN '100' ALGO NaN '400' OPENING NaN </code></pre> <p>I want to write two mappings where if <code>is_a...
[ { "answer_id": 74521205, "author": "jezrael", "author_id": 2901002, "author_profile": "https://Stackoverflow.com/users/2901002", "pm_score": 3, "selected": true, "text": "DataFrame.loc & AND df.loc[df.is_and_mp.isin([ '100', '400']) & df.market_state.isna() & df. reason.isna(), 'market_...
2022/11/21
[ "https://Stackoverflow.com/questions/74521148", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19667022/" ]
74,521,195
<p>I am trying to calibrate two cameras. I want to calibrate each one individually. At this point, my script can calibrate both cameras successfully. But now I want to use those calibrated cameras in real time. the code that I am using is the one available in the <a href="https://docs.opencv.org/4.x/dc/dbb/tutorial_py_...
[ { "answer_id": 74534045, "author": "Christoph Rackwitz", "author_id": 2602877, "author_profile": "https://Stackoverflow.com/users/2602877", "pm_score": 1, "selected": false, "text": "calibrateCamera() initUndistortRectifyMap() remap() remap() remap() remap()" }, { "answer_id": 74...
2022/11/21
[ "https://Stackoverflow.com/questions/74521195", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20397171/" ]
74,521,233
<p>In my code (a complex GUI application with Tkinter) I have a thread defined in a custom object (a progress bar). It runs a function with a while cicle like this:</p> <pre><code>def Start(self): while self.is_active==True: do it.. time.sleep(1) do it.. time.sleep(1) def Stop(s...
[ { "answer_id": 74521306, "author": "Ahmed AEK", "author_id": 15649230, "author_profile": "https://Stackoverflow.com/users/15649230", "pm_score": 0, "selected": false, "text": "def Start(self):\n while self.is_active==True:\n do it..\n if not self.is_active: return\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11562537/" ]
74,521,243
<p>How can i see all my deprecated methods functions in react native? i have a old react native project and its not working fine errors are coming one by one so i updated all of my packages which were outdated but after that many errors are coming too while running the project</p> <p>i tired to fix some but now i get t...
[ { "answer_id": 74531058, "author": "Daniel T", "author_id": 10477326, "author_profile": "https://Stackoverflow.com/users/10477326", "pm_score": 0, "selected": false, "text": "npm i -D eslint-plugin-deprecation npm i -D typescript@4.0 @types/jest @types/react @types/react-native @types/re...
2022/11/21
[ "https://Stackoverflow.com/questions/74521243", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
74,521,283
<p>How can I slice arrays such as this into n-many subsets, where one subset consists of consecutive values?</p> <pre><code>arr = np.array((0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 66, 67, 68, 69, 70, 71)) </code></pre> <pre><c...
[ { "answer_id": 74521405, "author": "Haleemur Ali", "author_id": 2570261, "author_profile": "https://Stackoverflow.com/users/2570261", "pm_score": 3, "selected": true, "text": "np.split cut_points split_arr = np.split(arr, cut_points)\n\n# split_arr looks like:\n# [array([ 0, 1, 2, 3, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521283", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6534818/" ]
74,521,296
<p>Im trying to use the <a href="https://github.com/trivago/prettier-plugin-sort-imports" rel="nofollow noreferrer">https://github.com/trivago/prettier-plugin-sort-imports</a> lib which on the root diercotry but not in my subdirectories.</p> <p>This is my project structure:</p> <pre><code>---TheAPP | subfolder1 ...
[ { "answer_id": 74521405, "author": "Haleemur Ali", "author_id": 2570261, "author_profile": "https://Stackoverflow.com/users/2570261", "pm_score": 3, "selected": true, "text": "np.split cut_points split_arr = np.split(arr, cut_points)\n\n# split_arr looks like:\n# [array([ 0, 1, 2, 3, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521296", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16382543/" ]
74,521,303
<p>In my application, I am using keycloak with the Authorization server that I have created in Spring Boot application. I have implemented authentication and authorization using OpenID Connect. In Client Authentication parameter in keycloak, I have selected client_secret_post option. The configuration can be seen in t...
[ { "answer_id": 74521405, "author": "Haleemur Ali", "author_id": 2570261, "author_profile": "https://Stackoverflow.com/users/2570261", "pm_score": 3, "selected": true, "text": "np.split cut_points split_arr = np.split(arr, cut_points)\n\n# split_arr looks like:\n# [array([ 0, 1, 2, 3, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521303", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11907420/" ]
74,521,309
<p>jaxb groups all tags in one, I need each tag to have its own namespace.</p> <p>have:</p> <pre><code>&lt;Request env=&quot;DEV&quot; xmlns=&quot;http://test1&quot; &quot;xmlns:ns2=&quot;urn://test2&quot;&gt; &lt;ApplicationData&gt; &lt;ns2:Application&gt; &lt;Square&gt...
[ { "answer_id": 74521405, "author": "Haleemur Ali", "author_id": 2570261, "author_profile": "https://Stackoverflow.com/users/2570261", "pm_score": 3, "selected": true, "text": "np.split cut_points split_arr = np.split(arr, cut_points)\n\n# split_arr looks like:\n# [array([ 0, 1, 2, 3, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521309", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20564272/" ]
74,521,324
<p>I have a text file with the below content:</p> <pre><code>--abcdef12 -- February April January January March January January January January --abcdef12 -- </code></pre> <p>How can I use sed to change the last occurrence of January in the file to July?<br /> Required output:</p> <pre><code>--abcdef12 --...
[ { "answer_id": 74521405, "author": "Haleemur Ali", "author_id": 2570261, "author_profile": "https://Stackoverflow.com/users/2570261", "pm_score": 3, "selected": true, "text": "np.split cut_points split_arr = np.split(arr, cut_points)\n\n# split_arr looks like:\n# [array([ 0, 1, 2, 3, ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521324", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6604643/" ]
74,521,327
<pre><code>private void button1_Click_1(object sender, EventArgs e) { lbl_startingTest.Text = &quot;Flashing DUT..&quot;; lbl_Result.Text = &quot;Flash&quot;; Process fls1 = new Process(); fls1.StartInfo.UseShellExecute = false; fls1.Star...
[ { "answer_id": 74521379, "author": "frankM_DN", "author_id": 20034020, "author_profile": "https://Stackoverflow.com/users/20034020", "pm_score": -1, "selected": false, "text": "CreateNoWindow fls1.StartInfo.CreateNoWindow = true;" }, { "answer_id": 74523713, "author": "apollo...
2022/11/21
[ "https://Stackoverflow.com/questions/74521327", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20564425/" ]
74,521,333
<p>I have written following conversion that works okey in T-SQL :</p> <pre><code>SELECT * FROM thetable WHERE convert(datetime, SomeDate, 103) &gt;= '2020-10-01 00:00:00.000 </code></pre> <p>When downloading data from Sales Force using Azure Data Factory, I pasted the same command and it has returned syntax error. Is t...
[ { "answer_id": 74521379, "author": "frankM_DN", "author_id": 20034020, "author_profile": "https://Stackoverflow.com/users/20034020", "pm_score": -1, "selected": false, "text": "CreateNoWindow fls1.StartInfo.CreateNoWindow = true;" }, { "answer_id": 74523713, "author": "apollo...
2022/11/21
[ "https://Stackoverflow.com/questions/74521333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13158157/" ]
74,521,338
<p>I am consuming data from an API and whenever I try to do so, I keep getting this error. Type List Dynamic Is Not A Subtype Of Type Map String Dynamic</p> <p>In my attempt to find answers, I came across this <a href="https://stackoverflow.com/questions/51854891/error-listdynamic-is-not-a-subtype-of-type-mapstring-dyn...
[ { "answer_id": 74521379, "author": "frankM_DN", "author_id": 20034020, "author_profile": "https://Stackoverflow.com/users/20034020", "pm_score": -1, "selected": false, "text": "CreateNoWindow fls1.StartInfo.CreateNoWindow = true;" }, { "answer_id": 74523713, "author": "apollo...
2022/11/21
[ "https://Stackoverflow.com/questions/74521338", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11439544/" ]
74,521,356
<p>I have a table with information in column A and an appropriate value in column B. I want to write a macro that inserts a new row for each &quot;Person&quot; in dependence of the value in column B and copies the original information into that row, which for example means that in the end there are 5 rows with &quot;Pe...
[ { "answer_id": 74521379, "author": "frankM_DN", "author_id": 20034020, "author_profile": "https://Stackoverflow.com/users/20034020", "pm_score": -1, "selected": false, "text": "CreateNoWindow fls1.StartInfo.CreateNoWindow = true;" }, { "answer_id": 74523713, "author": "apollo...
2022/11/21
[ "https://Stackoverflow.com/questions/74521356", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11535108/" ]
74,521,374
<p>I am wondering how can I connect the borders between the gaps so it would look like this :</p> <p><a href="https://imgur.com/a/cW2Qe3Q" rel="nofollow noreferrer">https://imgur.com/a/cW2Qe3Q</a></p> <p>I tried to remake it in table instead of div table, but same issue appeared.</p> <p>As a junior I am going to be hap...
[ { "answer_id": 74521521, "author": "陳禮文", "author_id": 20412835, "author_profile": "https://Stackoverflow.com/users/20412835", "pm_score": 1, "selected": false, "text": "table {\n border-collapse: collapse;\n}\n\ntd {\n border: solid 1px;\n padding: 0 4px;\n} <table>\n <tr>\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521374", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20564325/" ]
74,521,380
<p>How can we mask/hide password claim so the developers who are troubleshooting the journeys do not see users passwords?</p>
[ { "answer_id": 74521521, "author": "陳禮文", "author_id": 20412835, "author_profile": "https://Stackoverflow.com/users/20412835", "pm_score": 1, "selected": false, "text": "table {\n border-collapse: collapse;\n}\n\ntd {\n border: solid 1px;\n padding: 0 4px;\n} <table>\n <tr>\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521380", "https://Stackoverflow.com", "https://Stackoverflow.com/users/273639/" ]
74,521,382
<p>I have a Hashmap <code>HashMap &lt;Integer, Integer&gt; map</code> and I want to change the <code>keyset()</code> type to a BinaryTreeNode, which was declared beforehand already, instead of an int, which I am able to do. However, I was wondering how could I add the appropriate <code>map.values()</code> in the same o...
[ { "answer_id": 74521521, "author": "陳禮文", "author_id": 20412835, "author_profile": "https://Stackoverflow.com/users/20412835", "pm_score": 1, "selected": false, "text": "table {\n border-collapse: collapse;\n}\n\ntd {\n border: solid 1px;\n padding: 0 4px;\n} <table>\n <tr>\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521382", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18984687/" ]
74,521,409
<p>I’m trying to move bits from starting register into eight consecutive registers. I’ve just started writing in assembly so I dont really know what to do.</p> <p>I tried to use rol and lsr instructions. But my loop just reverses the bits. can i change the registry from r18 to r19 mid-loop?</p> <pre><code>.equ sequen =...
[ { "answer_id": 74521521, "author": "陳禮文", "author_id": 20412835, "author_profile": "https://Stackoverflow.com/users/20412835", "pm_score": 1, "selected": false, "text": "table {\n border-collapse: collapse;\n}\n\ntd {\n border: solid 1px;\n padding: 0 4px;\n} <table>\n <tr>\n ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20564291/" ]
74,521,421
<p>I have a list of data:</p> <pre><code>$nPerm [1] &quot;1000&quot; $minGSSize [1] &quot;10&quot; $maxGSSize [1] &quot;100&quot; $by [1] &quot;DOSE&quot; $seed [1] &quot;TRUE&quot; </code></pre> <p>This list is supposed to be flexible, so these values could be different and could be something else.</p> <p>All the ...
[ { "answer_id": 74521452, "author": "r2evans - GO NAVY BEAT ARMY", "author_id": 3358272, "author_profile": "https://Stackoverflow.com/users/3358272", "pm_score": 4, "selected": true, "text": "L <- list(a=\"1000\", b=\"DOSE\", c=\"99\")\ntype.convert(L, as.is = TRUE)\n# $a\n# [1] 1000\n# $...
2022/11/21
[ "https://Stackoverflow.com/questions/74521421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16749673/" ]
74,521,431
<p>Having a component that accepts some props:</p> <pre><code>&lt;MyComponent first=&quot;first&quot; second=&quot;second&quot; third=&quot;third&quot; /&gt; </code></pre> <p>We can create an object:</p> <pre><code>const mockData = { first: 'test1', second: 'test2', third: 'test3' }; </code></pre> <p>and use it a...
[ { "answer_id": 74521515, "author": "FromThePoop", "author_id": 16874075, "author_profile": "https://Stackoverflow.com/users/16874075", "pm_score": 0, "selected": false, "text": "type MyComponentType = Pick<mockdata, \"first\">\n" }, { "answer_id": 74521527, "author": "albjert...
2022/11/21
[ "https://Stackoverflow.com/questions/74521431", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9099077/" ]
74,521,436
<p>I have a pandas DataFrame with one feature, df['Computed Data'].</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Computed Data</th> </tr> </thead> <tbody> <tr> <td>'{&quot;stats&quot;:{&quot;TypeCount&quot;:{&quot;1</td> </tr> <tr> <td>25&quot;:&quot;31&quot;,&quot;8&quot;:&quot;31&quot;...
[ { "answer_id": 74521515, "author": "FromThePoop", "author_id": 16874075, "author_profile": "https://Stackoverflow.com/users/16874075", "pm_score": 0, "selected": false, "text": "type MyComponentType = Pick<mockdata, \"first\">\n" }, { "answer_id": 74521527, "author": "albjert...
2022/11/21
[ "https://Stackoverflow.com/questions/74521436", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20564336/" ]
74,521,467
<p>this is the code I have right now</p> <pre><code>fname = input(&quot;&gt;&gt;Please Enter a file name followed by .txt &quot;) def writedata(): i=0 for i in range(3): f = open(f&quot;{fname}&quot;, 'w') stdname = input('&gt;&gt;\tStudent Name: \t') marks = input('&gt;&gt;\tMark for exam: \t') f.w...
[ { "answer_id": 74521493, "author": "Thornily", "author_id": 11443623, "author_profile": "https://Stackoverflow.com/users/11443623", "pm_score": -1, "selected": false, "text": "write (w) append (a) The argument mode points to a string beginning with one of the following\n sequences (Addit...
2022/11/21
[ "https://Stackoverflow.com/questions/74521467", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20470075/" ]
74,521,470
<p>Having a dataframe with have the gender of specific names</p> <pre><code>dfgender &lt;- data.frame(name = c(&quot;Helen&quot;,&quot;Erik&quot;), gender = c(&quot;F&quot;,&quot;M&quot;)) </code></pre> <p>How is it possible to use the previous data frame in order to check the names of another column of a dataframe and...
[ { "answer_id": 74521518, "author": "Juan C", "author_id": 9462829, "author_profile": "https://Stackoverflow.com/users/9462829", "pm_score": 2, "selected": false, "text": "left_join replace_na dfnames %>% left_join(dfgender, by=c('names' = 'name')) %>% \n mutate(gender = gender %>% as.ch...
2022/11/21
[ "https://Stackoverflow.com/questions/74521470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20224217/" ]
74,521,481
<p>AndroidManifest.xml showing me 10 errors in the code below. I am unable to understand why it is showing these errors and how can I resolve this. Help me out from these errors.</p> <pre><code>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; package=&quot;com.example.buis_talk&quot...
[ { "answer_id": 74521518, "author": "Juan C", "author_id": 9462829, "author_profile": "https://Stackoverflow.com/users/9462829", "pm_score": 2, "selected": false, "text": "left_join replace_na dfnames %>% left_join(dfgender, by=c('names' = 'name')) %>% \n mutate(gender = gender %>% as.ch...
2022/11/21
[ "https://Stackoverflow.com/questions/74521481", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19082619/" ]
74,521,496
<p>Here's my code:</p> <p><strong>SectionState.js:</strong></p> <pre><code>import { React, useState, useEffect } from &quot;react&quot;; import QuestionContext from &quot;./QuestionContext&quot;; import questions from &quot;../data/questions.json&quot;; import { useNavigate } from &quot;react-router-dom&quot;; const S...
[ { "answer_id": 74521518, "author": "Juan C", "author_id": 9462829, "author_profile": "https://Stackoverflow.com/users/9462829", "pm_score": 2, "selected": false, "text": "left_join replace_na dfnames %>% left_join(dfgender, by=c('names' = 'name')) %>% \n mutate(gender = gender %>% as.ch...
2022/11/21
[ "https://Stackoverflow.com/questions/74521496", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18679088/" ]
74,521,526
<p>I have a dataframe like so:</p> <pre><code> CREATED_AT COUNT '1990-01-01' '2022-01-01 07:30:00' 5 '1990-01-02' '2022-01-01 07:30:00' 10 ... </code></pre> <p>Where the index is a date and the <code>CREATED_AT</code> column is a datetime that is the same value for all rows.</p> <p>H...
[ { "answer_id": 74521623, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 0, "selected": false, "text": "# ensure CREATED_AT is a datetime\ns = pd.to_datetime(df['CREATED_AT'])\n\n# subtract the date to only get the time...
2022/11/21
[ "https://Stackoverflow.com/questions/74521526", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12821675/" ]
74,521,534
<p>When running npx truffle compile, i get the above error message.</p> <p>I am trying to transition an NFT smart contract into upgradeable form and have imported the relevant source codes. It deploys to testnet fine, but when replacing the constructor with &quot;function Initialize() initializer pubic {&quot; i get th...
[ { "answer_id": 74521623, "author": "mozway", "author_id": 16343464, "author_profile": "https://Stackoverflow.com/users/16343464", "pm_score": 0, "selected": false, "text": "# ensure CREATED_AT is a datetime\ns = pd.to_datetime(df['CREATED_AT'])\n\n# subtract the date to only get the time...
2022/11/21
[ "https://Stackoverflow.com/questions/74521534", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19354886/" ]
74,521,542
<p>I have build a driver simulator using Unity and I use as steering wheel the Logitech G29 controller. So in my project to break and throttle I configured this:</p> <p><a href="https://i.stack.imgur.com/qq6Z6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qq6Z6.png" alt="enter image description her...
[ { "answer_id": 74619951, "author": "thesupersoup", "author_id": 11103924, "author_profile": "https://Stackoverflow.com/users/11103924", "pm_score": 1, "selected": false, "text": "private float _vertical2Zero = 0.0f; \n\nvoid Start()\n{\n this.CalibrateVertical2Zero();\n\n // ....
2022/11/21
[ "https://Stackoverflow.com/questions/74521542", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2405663/" ]
74,521,565
<p>I have 3 tables -</p> <p>Books -</p> <pre><code>BookNo BookName BookType 123 ABC 1 555 XYZ 0 </code></pre> <p>Shelf</p> <pre><code>Shelf ShelfNo BookNo BookQuantity XB XB01 123 5 XB XB02 555 3 XB XB03 123 8 </code></pre> <p>BooksIssued</p> <pre><code>ShelfNo ...
[ { "answer_id": 74619951, "author": "thesupersoup", "author_id": 11103924, "author_profile": "https://Stackoverflow.com/users/11103924", "pm_score": 1, "selected": false, "text": "private float _vertical2Zero = 0.0f; \n\nvoid Start()\n{\n this.CalibrateVertical2Zero();\n\n // ....
2022/11/21
[ "https://Stackoverflow.com/questions/74521565", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13208961/" ]
74,521,588
<p>I'm trying to use <code>filter(grepl())</code> to match some words in my column. Let's suppose I want to extract the word &quot;Guartelá&quot;. In my column, i have variations such as &quot;guartela&quot; &quot;guartelá&quot; and &quot;Guartela&quot;. To match upper/lowercase words I'm using <code>(?i)</code>. Howev...
[ { "answer_id": 74521636, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 3, "selected": true, "text": "OR [ > string <- c(\"Guartelá\", \"Guartela\", \"guartela\", \"guartelá\", \"any\")\n> grepl(\"[Gg]uartel[aá]\"...
2022/11/21
[ "https://Stackoverflow.com/questions/74521588", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15108186/" ]
74,521,601
<p>I am using twilio to call, in my laravel application. I have used webhook for that. When i click call button in web browser, it calls to specific phone number and when called user presses any digit, I get the digit as a response in webhook. I want to send question_id as parameter to twilio application and when user ...
[ { "answer_id": 74521636, "author": "Jilber Urbina", "author_id": 1315767, "author_profile": "https://Stackoverflow.com/users/1315767", "pm_score": 3, "selected": true, "text": "OR [ > string <- c(\"Guartelá\", \"Guartela\", \"guartela\", \"guartelá\", \"any\")\n> grepl(\"[Gg]uartel[aá]\"...
2022/11/21
[ "https://Stackoverflow.com/questions/74521601", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11445496/" ]
74,521,603
<p>I'm trying to make my own photo codecs, I made a 512 * 512 image,</p> <p>I'm just trying to build with one color and arrange in a Container in Column and Row My Code:</p> <pre class="lang-dart prettyprint-override"><code> SizedBox( height: 512, width: 512, child: Column( chi...
[ { "answer_id": 74522072, "author": "Guillaume Roux", "author_id": 9942346, "author_profile": "https://Stackoverflow.com/users/9942346", "pm_score": 1, "selected": true, "text": "CustomPainter class ImageWidget extends StatelessWidget {\n final Color color;\n final Size size;\n\n const...
2022/11/21
[ "https://Stackoverflow.com/questions/74521603", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20259643/" ]
74,521,604
<p>I was studying the following piece of code and tried to write on paper the values that i and j receive at each step but I don't understand why at the 4th step, j's value decreses from 3 to 2 as there is no decrement operator (as far as I understand it):</p> <pre><code>#include&lt;stdio.h&gt; int main() { int i, ...
[ { "answer_id": 74522251, "author": "KamilCuk", "author_id": 9072753, "author_profile": "https://Stackoverflow.com/users/9072753", "pm_score": 1, "selected": false, "text": "v[i] = v[i] + v[j] - (v[j] = v[i]) v[j] v[j] j=4 v[j] v 3 i i++ i=1 j 2 i + 1 y=2 > i=0 j=3 n=4\n..., i++, j = j < ...
2022/11/21
[ "https://Stackoverflow.com/questions/74521604", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20564499/" ]
74,521,614
<p>In <code>.rmd</code> Files we can display text <em>italic</em> by wrapping it inside single <code>*</code>-signs. But how is it possible to put a whole list to <em>italic</em>?</p> <hr /> <p>I tried:</p> <pre><code>--- title: &quot;Untitled&quot; output: pdf_document date: '2022-11-21' --- ```{r setup, include=FALS...
[ { "answer_id": 74521778, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "<i> </i> <i>\nMy list:\n\ni) One;\nii) Two;\niii) Three.\n\n</i>\n" }, { "answer_id": 74521792, "autho...
2022/11/21
[ "https://Stackoverflow.com/questions/74521614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4706952/" ]
74,521,656
<p>I'm having trouble building a query where subitems occur. I attach below the data and the expected end result. Important thing is fact that SubitemID is not a constant. So I cannot put in my query thing like &quot;subitemid like itemid+1&quot;. Here is my Table:</p> <div class="s-table-container"> <table class="s-ta...
[ { "answer_id": 74521778, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "<i> </i> <i>\nMy list:\n\ni) One;\nii) Two;\niii) Three.\n\n</i>\n" }, { "answer_id": 74521792, "autho...
2022/11/21
[ "https://Stackoverflow.com/questions/74521656", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8145314/" ]
74,521,708
<p>New to zoo/xts. I'm trying to go from monthly values to quarterly aggregates, defined as the sum of monthly values over a 3-month period <em>ending on the last available month</em>.</p> <p>Reproducible example:</p> <pre class="lang-r prettyprint-override"><code>library(xts) months &lt;- as.yearmon(c(paste0(&quot;202...
[ { "answer_id": 74521778, "author": "TarJae", "author_id": 13321647, "author_profile": "https://Stackoverflow.com/users/13321647", "pm_score": 2, "selected": false, "text": "<i> </i> <i>\nMy list:\n\ni) One;\nii) Two;\niii) Three.\n\n</i>\n" }, { "answer_id": 74521792, "autho...
2022/11/21
[ "https://Stackoverflow.com/questions/74521708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13968222/" ]
74,521,723
<p>I made a special triangle (or whatever they're called). It works fine but a flaw is it prints out the same triangle in a different order. This is the code:</p> <pre><code>SpecialTriangles = [] for i in range(15): for j in range(15): for k in range(15): if i**2 + j**2 == k**2: ...
[ { "answer_id": 74521798, "author": "joanis", "author_id": 3216427, "author_profile": "https://Stackoverflow.com/users/3216427", "pm_score": 3, "selected": false, "text": "itertools.combinations from itertools import combinations\n\nfor i, j, k in combinations(range(15), 3):\n # do you...
2022/11/21
[ "https://Stackoverflow.com/questions/74521723", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20503795/" ]
74,521,738
<p>I want to add a closing Parenthesis to each line in the text that ends with &quot;CSQL_CREATE_VIEW (&quot; + some words + &quot;)&quot;</p> <p>So that the end result looks like this: CSQL_CREATE_VIEW (name of view) /n. I am not able to get the closing bracket with my current code. Help!</p> <pre><code> string[] F...
[ { "answer_id": 74521939, "author": "pm100", "author_id": 173397, "author_profile": "https://Stackoverflow.com/users/173397", "pm_score": 2, "selected": true, "text": "if (fileCont == \"\\r\" && fileCont.Contains(\"CSQL_CREATE_VIEW (\"))\n fileCont.Endwith(\"\\n\")" }, { "answer_i...
2022/11/21
[ "https://Stackoverflow.com/questions/74521738", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18659251/" ]
74,521,785
<p>I have a array like this:</p> <pre><code>const arr = [['Dog', 'Cat', 'Fish', 'Bird'],[1, 4, 2, 3]]; </code></pre> <p>How would I sort it so its in the order:</p> <pre><code>const arr = [['Dog', 'Fish', 'Bird', 'Cat'],[1, 2, 3, 4]]; </code></pre>
[ { "answer_id": 74521855, "author": "gog", "author_id": 3494774, "author_profile": "https://Stackoverflow.com/users/3494774", "pm_score": 2, "selected": false, "text": "zip zip let zip = args => args[0].map((_, i) => args.map(a => a[i]))\n\n//\n\nconst arr = [['Dog', 'Cat', 'Fish', 'Bird'...
2022/11/21
[ "https://Stackoverflow.com/questions/74521785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/18217632/" ]
74,521,830
<p>Using Tailwind, I am having trouble creating a table with a scrollable body that spans the full width. Currently the way I'm doing it is by setting the <code>tbody</code> to <code>display: block</code> but by doing that the <code>tbody</code> isn't the full width. How can I go about making it full width? I want the ...
[ { "answer_id": 74521855, "author": "gog", "author_id": 3494774, "author_profile": "https://Stackoverflow.com/users/3494774", "pm_score": 2, "selected": false, "text": "zip zip let zip = args => args[0].map((_, i) => args.map(a => a[i]))\n\n//\n\nconst arr = [['Dog', 'Cat', 'Fish', 'Bird'...
2022/11/21
[ "https://Stackoverflow.com/questions/74521830", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19626871/" ]
74,521,835
<p>I work on a python project, and I would like to create a history where each history is erasable with a &quot;delete&quot; button placed in the Frame of the widget</p> <p>I tried to add the « delete » button in the loop where the widget was generated but it didn’t work as planned</p> <pre><code>history_files = os.lis...
[ { "answer_id": 74521855, "author": "gog", "author_id": 3494774, "author_profile": "https://Stackoverflow.com/users/3494774", "pm_score": 2, "selected": false, "text": "zip zip let zip = args => args[0].map((_, i) => args.map(a => a[i]))\n\n//\n\nconst arr = [['Dog', 'Cat', 'Fish', 'Bird'...
2022/11/21
[ "https://Stackoverflow.com/questions/74521835", "https://Stackoverflow.com", "https://Stackoverflow.com/users/20564759/" ]