qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,367,322 | <ul>
<li><p><em>Task:</em> count the number of operations required to make an array's values alternate between even and odd.</p>
</li>
<li><p><em>Given:</em> items = [6, 5, 9, 7, 3] (Example test case)</p>
</li>
<li><p><em>Operations we can do:</em> make n number of operations: floor(item/2)</p>
</li>
</ul>
<p>My code<... | [
{
"answer_id": 74367243,
"author": "Ahmed AEK",
"author_id": 15649230,
"author_profile": "https://Stackoverflow.com/users/15649230",
"pm_score": 1,
"selected": false,
"text": "std::move_backwards <algorithms> std::move std::move_backward(vct.begin(),vct.end()-1,vct.end());\n std::move st... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367322",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6640284/"
] |
74,367,330 | <p>I have this draggable div which automatically positions correctly when window is being re-sized from left or top.
I want it to do the same thing from right and bottom as well so it is still visible.</p>
<p>Can this be done with just css? or do I need to use javascript? can someone please show me how.</p>
<p><a href=... | [
{
"answer_id": 74367712,
"author": "Jack Brown",
"author_id": 20415519,
"author_profile": "https://Stackoverflow.com/users/20415519",
"pm_score": -1,
"selected": false,
"text": "<head>\n <style>\n #box {\n position: sticky;\n background: red;\n width: 10vw;\n ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367330",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14560631/"
] |
74,367,390 | <p>I'm currently sitting in Jupyter Notebook on a dataset that has a duration column that looks like this;</p>
<p><a href="https://i.stack.imgur.com/7wuBe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7wuBe.jpg" alt="enter image description here" /></a></p>
<p>I still feel like a newbie at programm... | [
{
"answer_id": 74367837,
"author": "Jimpsoni",
"author_id": 18195201,
"author_profile": "https://Stackoverflow.com/users/18195201",
"pm_score": 0,
"selected": false,
"text": "from datetime import timedelta\nimport re\n\nstring = \"1 hour 35 mins\" # Example from dataset\n\n# Extract num... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367390",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20367961/"
] |
74,367,418 | <p>In SQL Server, I am trying to obtain the values between the second and third forward slash (<code>/</code>) character. The length of the numbers can vary so <code>substring(column, 8, 10)</code> wouldn't work.</p>
<pre><code>123/123/123456789/12
</code></pre>
<p>What I am trying to get in the current example is: 123... | [
{
"answer_id": 74367524,
"author": "John Cappelletti",
"author_id": 1570000,
"author_profile": "https://Stackoverflow.com/users/1570000",
"pm_score": 2,
"selected": false,
"text": "Declare @YourTable table (ID int,SomeCol varchar(50))\nInsert Into @YourTable values \n (1,'123/123/1234567... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367418",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18942652/"
] |
74,367,422 | <p>I have a large table that I'm wanting to select 8 columns out of. I would be comparing it to another table with 2 columns making sure they (said columns) match exactly.</p>
<p>Pseudo Code:</p>
<pre><code>SELECT a, b, c, d, e, f, g, h, i
FROM table1 t1
WHERE a AND b are matching the same rows in table 2
</code></pr... | [
{
"answer_id": 74367664,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 1,
"selected": false,
"text": "table1 table2 exists select t1.*\nfrom table1 t1\nwhere exists (select 1 from table2 t2 where t2.address = t1.address ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19831561/"
] |
74,367,450 | <p>We have an Azure Data Factory dataflow, it will sink into Delta. We have Owerwrite, Allow Insert options set and Vacuum = 1.
When we run the pipeline over and over with no change in the table structure pipeline is successfull.
But when the table structure being sinked changed, ex data types changed and such the pipe... | [
{
"answer_id": 74367664,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 1,
"selected": false,
"text": "table1 table2 exists select t1.*\nfrom table1 t1\nwhere exists (select 1 from table2 t2 where t2.address = t1.address ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367450",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19846846/"
] |
74,367,468 | <p>I wish to print this data in a table with the columns aligned. I tried with <code>Format</code> but the columns were not aligned. Does anyone know how to do it ? Thank you.</p>
<pre><code>(("tiscali" 10000 2.31 0.84 -14700.0 "none")
("atlantia" 50 22.65 22.68 1.5 "none")
(&q... | [
{
"answer_id": 74371020,
"author": "Chris",
"author_id": 15261315,
"author_profile": "https://Stackoverflow.com/users/15261315",
"pm_score": 3,
"selected": true,
"text": "(defparameter *data* \n '((\"tiscali\" 10000 2.31 0.84 -14700.0 \"none\")\n (\"atlantia\" 50 22.65 22.68 1.5 ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367468",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16440185/"
] |
74,367,471 | <p>I have a map view, and in another componenet, I would like to be able to have a function that animates that mapview. That function would need a reference to my map view. How can I access my maps reference inside another component?</p>
<p>I have a <a href="https://snack.expo.dev/@priedejm/pass-reference-to-component"... | [
{
"answer_id": 74370867,
"author": "vinayr",
"author_id": 1427309,
"author_profile": "https://Stackoverflow.com/users/1427309",
"pm_score": 0,
"selected": false,
"text": "export default function App() {\n const mapRef = React.useRef();\n\n const goToLocation = () => {\n mapRef.curre... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12915212/"
] |
74,367,499 | <p>I would like to remove the third and fourth last character from as string.</p>
<p>Here is some sample data:</p>
<pre><code>HS0202
HS0902
MV0100
SUE0300
</code></pre>
<p>I would need return something like this</p>
<pre><code>HS02
HS02
MV00
SUE00
</code></pre>
| [
{
"answer_id": 74367575,
"author": "shaun_m",
"author_id": 18289387,
"author_profile": "https://Stackoverflow.com/users/18289387",
"pm_score": 3,
"selected": true,
"text": "have <- c('HS0202', 'HS0902', 'MV0100', 'SUE0300')\n\nwant <- paste0(substring(have,1,nchar(have)-3),substring(have... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367499",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19783394/"
] |
74,367,513 | <p>I want to take streamed IEnumerable values such as: (Tuples shown for illustration purposes. The actual application will be streaming DataRecords from a DataReader)</p>
<pre><code>var tuples = new(int, int)[]
{
(0, 0), (0, 1), (0, 2), (0, 3), (1, 0), (1, 1), (2, 0), (2, 1), (2, 2),
};
</code></pre>
<p>I want to ... | [
{
"answer_id": 74367696,
"author": "julealgon",
"author_id": 1946412,
"author_profile": "https://Stackoverflow.com/users/1946412",
"pm_score": -1,
"selected": false,
"text": "GroupAdjacent var groupings = GetValues().GroupAdjacent(tuple => tuple.Item1);\n\nforeach (var grouping in groupi... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367513",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2112855/"
] |
74,367,521 | <h2>Background:</h2>
<ul>
<li>I'm trying to deploy a Django app to the Google App Engine (GAE) standard environment in the python39 runtime</li>
<li>The database configuration is stored in a Secret Manager secret version, similar to Google's GAE Django tutorial (<a href="https://cloud.google.com/python/django/appengine... | [
{
"answer_id": 74367696,
"author": "julealgon",
"author_id": 1946412,
"author_profile": "https://Stackoverflow.com/users/1946412",
"pm_score": -1,
"selected": false,
"text": "GroupAdjacent var groupings = GetValues().GroupAdjacent(tuple => tuple.Item1);\n\nforeach (var grouping in groupi... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2967377/"
] |
74,367,526 | <p>The relevant data in my dataframe looks as follows:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>Datapoint</th>
<th>Values</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>0.2</td>
</tr>
<tr>
<td>2</td>
<td>0.8</td>
</tr>
<tr>
<td>3</td>
<td>0.4</td>
</tr>
<tr>
<td>4</td>
<td>0.1</td>
... | [
{
"answer_id": 74367584,
"author": "w kooij",
"author_id": 19551554,
"author_profile": "https://Stackoverflow.com/users/19551554",
"pm_score": 0,
"selected": false,
"text": "def categorize_values(Values):\n if Values > 0.75:\n return 'high'\n elif Values < 0.25:\n ret... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367526",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20187301/"
] |
74,367,541 | <p>I was coding a discord bot and realized I had difficulty parsing messages. I ended up using a double for loop (yuck).
What can I do to optimize this code?
(this is a far more straightforward version of the code)</p>
<pre><code>string = "His name is food"
list = ["food", "numbers"]
parse... | [
{
"answer_id": 74367571,
"author": "ddastrodd",
"author_id": 5656617,
"author_profile": "https://Stackoverflow.com/users/5656617",
"pm_score": 0,
"selected": false,
"text": "string = \"His name is food\"\nlist = [\"food\", \"numbers\"]\nparsed_string = string.split(\" \")\nprint(parsed_s... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367541",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18039764/"
] |
74,367,547 | <p>Hello I am working on implementing various technical indicators to better understand the algorithms and their implementations; I do not want to use <code>zoo</code> or other pre-packaged algorithms.</p>
<p>I want to use <code>data.table</code>.</p>
<h1>sample data</h1>
<p>Here is the data we are working with:</p>
<p... | [
{
"answer_id": 74370167,
"author": "dereckdemezquita",
"author_id": 14410815,
"author_profile": "https://Stackoverflow.com/users/14410815",
"pm_score": 0,
"selected": false,
"text": "data.table::frollapply Cpp Rcpp #include <Rcpp.h>\n\nusing namespace Rcpp;\n\n// [[Rcpp::export]]\nNumeri... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14410815/"
] |
74,367,620 | <p>currently trying to figure this out with code like this..but not quite yet able to get it:</p>
<pre><code>df[(df.index.day_of_week==0) & (df.index.day<15) & (df.shift(-4).index.day_of_week==4)]
</code></pre>
<p>this is what the data looks like. (i've added the day_of_week column for convenience). basic... | [
{
"answer_id": 74367754,
"author": "supersquires",
"author_id": 18182675,
"author_profile": "https://Stackoverflow.com/users/18182675",
"pm_score": 0,
"selected": false,
"text": "day_of_week df_filtered = df[df.index.dt.day >= 5]\nfirst_fridays = df[df['day_of_week'] == 5]\n"
},
{
... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/480118/"
] |
74,367,634 | <p>I have a dataframe with information, where the rows are not related to eachother:</p>
<pre><code> Fruits Vegetables Protein
1 Apple Spinach Beef
2 Banana Cucumber Chicken
3 Pear Carrot Pork
</code></pre>
<p>I essentially just want to create a pandas series with all of that information, I wan... | [
{
"answer_id": 74367701,
"author": "supersquires",
"author_id": 18182675,
"author_profile": "https://Stackoverflow.com/users/18182675",
"pm_score": 0,
"selected": false,
"text": "pd.concat all_foods = pd.concat([foods[col] for col in foods.columns])\n"
},
{
"answer_id": 74367723,... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367634",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18020970/"
] |
74,367,641 | <p>We are currently using spring boot 2.7.4 and we want to use a built in dependency of 2.7.5. I added it to the properties in the pom, but its being ignored. I have done this successfully with other dependencies.
jackson-databind 2.13.4 is a builtin dependency of spring boot 2.7.4
jackson-databind 2.13.4.2 is a depend... | [
{
"answer_id": 74367701,
"author": "supersquires",
"author_id": 18182675,
"author_profile": "https://Stackoverflow.com/users/18182675",
"pm_score": 0,
"selected": false,
"text": "pd.concat all_foods = pd.concat([foods[col] for col in foods.columns])\n"
},
{
"answer_id": 74367723,... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/654460/"
] |
74,367,648 | <p>When creating a database table in jupyter, we specify restrictions on data types in the columns of the table, but for some reason we can still add other data types. For example, the st_gr column should contain only numbers, but nothing will stop us from adding a line (code below) Why? How to fix?</p>
<pre><code>%%sq... | [
{
"answer_id": 74367701,
"author": "supersquires",
"author_id": 18182675,
"author_profile": "https://Stackoverflow.com/users/18182675",
"pm_score": 0,
"selected": false,
"text": "pd.concat all_foods = pd.concat([foods[col] for col in foods.columns])\n"
},
{
"answer_id": 74367723,... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367648",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20453934/"
] |
74,367,666 | <p>I was developing a plugin, using Eclipse IDE for java developers (Version: 2021-09 (4.21.0)
Build id: 20210910-1417)</p>
<p>During development, when I run it as an eclipse application, it opens a runtime-Eclipse application where the plug-in is present. In my setup this new runtime-eclips app opened from a folder ne... | [
{
"answer_id": 74367701,
"author": "supersquires",
"author_id": 18182675,
"author_profile": "https://Stackoverflow.com/users/18182675",
"pm_score": 0,
"selected": false,
"text": "pd.concat all_foods = pd.concat([foods[col] for col in foods.columns])\n"
},
{
"answer_id": 74367723,... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367666",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17059494/"
] |
74,367,718 | <pre><code>let friends = ["Ahmed", "Sayed", "Ali", 1, 2, "Mahmoud", "Amany"];
let index = 0;
let counter = 0;
while (index < friends.length) {
index++;
if (
typeof friends[index] === "number" &&
friends[index] == friends[index].startsWi... | [
{
"answer_id": 74367701,
"author": "supersquires",
"author_id": 18182675,
"author_profile": "https://Stackoverflow.com/users/18182675",
"pm_score": 0,
"selected": false,
"text": "pd.concat all_foods = pd.concat([foods[col] for col in foods.columns])\n"
},
{
"answer_id": 74367723,... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367718",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17352460/"
] |
74,367,725 | <p>I am working with an Azure shared image gallery and trying to write a bash <code>if</code> statement to iterate through the list of image definition names and <code>if</code> that image definition name is not there, create it <code>elif</code>, etc...</p>
<p>I have a variable set as:</p>
<pre><code>defs=$(az sig ima... | [
{
"answer_id": 74367701,
"author": "supersquires",
"author_id": 18182675,
"author_profile": "https://Stackoverflow.com/users/18182675",
"pm_score": 0,
"selected": false,
"text": "pd.concat all_foods = pd.concat([foods[col] for col in foods.columns])\n"
},
{
"answer_id": 74367723,... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367725",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18344412/"
] |
74,367,732 | <p>Say I want to retrieve with graddle the dependancy tree of this artifact : <code>com.google.firebase:firebase-firestore:24.4.0</code></p>
<p>How can I do ?</p>
| [
{
"answer_id": 74367766,
"author": "Ben Borchard",
"author_id": 4054720,
"author_profile": "https://Stackoverflow.com/users/4054720",
"pm_score": 0,
"selected": false,
"text": "gradle dependencies\n"
},
{
"answer_id": 74373137,
"author": "George",
"author_id": 11301941,
... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367732",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1114043/"
] |
74,367,751 | <p>Using Azure B2C Active Directory. Enforcing authentication. I'm able to get the user and email address. However I do I get a custom attribute with c#?</p>
<pre><code>
[Authorize]
[HttpGet("authenticated/profile")]
public string GetCustomAttribute()
{
var user = U... | [
{
"answer_id": 74367766,
"author": "Ben Borchard",
"author_id": 4054720,
"author_profile": "https://Stackoverflow.com/users/4054720",
"pm_score": 0,
"selected": false,
"text": "gradle dependencies\n"
},
{
"answer_id": 74373137,
"author": "George",
"author_id": 11301941,
... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367751",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19416844/"
] |
74,367,760 | <p>After the .Net 7.0 update, when I use <code>dotnet watch run</code> I get this error:</p>
<blockquote>
<p>Unhandled exception. System.IO.FileNotFoundException: Could not load
file or assembly 'System.Runtime, Version=7.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file
specifie... | [
{
"answer_id": 74367847,
"author": "Omer",
"author_id": 1996435,
"author_profile": "https://Stackoverflow.com/users/1996435",
"pm_score": 6,
"selected": true,
"text": "dotnet watch run xyz\n {\n \"sdk\": {\n \"version\": \"6.0.403\"\n }\n}\n dotnet --info\n"
},
{
"an... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1996435/"
] |
74,367,775 | <p>The ViewModel below is used on multiple forms.</p>
<p>My goal is to update values received from those forms using the DateRangeViewModel itself. Is it possible?</p>
<p>Example: User submits <em>"2022-01-01 12:00:00 AM"</em> and I update it to <em>"2022-01-02 12:00:00 AM"</em> before passing it to... | [
{
"answer_id": 74367924,
"author": "Christian Gollhardt",
"author_id": 2441442,
"author_profile": "https://Stackoverflow.com/users/2441442",
"pm_score": 2,
"selected": true,
"text": "public class DateRangeViewModel\n{ \n public DateTime? From { get; set; }\n public DateTime? To {... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367775",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8221046/"
] |
74,367,798 | <p>I'm trying to get the last non null value on a table visualization and last non null value offset from a set of data that consists of a worker ID, dates and their shifts. (First image is how the table is loaded)</p>
<p><a href="https://i.stack.imgur.com/GQ3N7.png" rel="nofollow noreferrer"><img src="https://i.stack.... | [
{
"answer_id": 74367924,
"author": "Christian Gollhardt",
"author_id": 2441442,
"author_profile": "https://Stackoverflow.com/users/2441442",
"pm_score": 2,
"selected": true,
"text": "public class DateRangeViewModel\n{ \n public DateTime? From { get; set; }\n public DateTime? To {... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367798",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20453952/"
] |
74,367,801 | <p>I have an array in Postgres that contains timestamps. I'd like to count the number of entries in the array newer than a timestamp specified in a query. As a bonus, I'd like to delete entries in the array older than another specified timestamp. Can this be done just using SQL in PostgreSQL?</p>
| [
{
"answer_id": 74367924,
"author": "Christian Gollhardt",
"author_id": 2441442,
"author_profile": "https://Stackoverflow.com/users/2441442",
"pm_score": 2,
"selected": true,
"text": "public class DateRangeViewModel\n{ \n public DateTime? From { get; set; }\n public DateTime? To {... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367801",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3246078/"
] |
74,367,804 | <p>I have this unordered list which can be arranged by the user:</p>
<pre><code> <ul id="sortable1" class="connectedSortable">
<li id="1" class="ui-state-default">A</li>
<li id="2" class="ui-state-default">B<... | [
{
"answer_id": 74367842,
"author": "IT goldman",
"author_id": 3807365,
"author_profile": "https://Stackoverflow.com/users/3807365",
"pm_score": 3,
"selected": true,
"text": "document.querySelectorAll(\"#sortable1 li\").forEach(function(li) {\n console.log(li.id)\n}) <ul id=\"sortable1\"... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367804",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3535901/"
] |
74,367,858 | <p>I have created a custom post type for events (performaces of theater plays). Event categories denote plays and the events are performances of the plays. I would like user comments on individual performances (i.e. posts of the event custom-post-type) to apply to the category and appear on all other events of the same... | [
{
"answer_id": 74368628,
"author": "Shoelaced",
"author_id": 1512787,
"author_profile": "https://Stackoverflow.com/users/1512787",
"pm_score": 1,
"selected": false,
"text": "function get_show_comments() {\n\n // Get the current post's categories.\n $categories = get_the_category( g... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367858",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/441639/"
] |
74,367,904 | <p>How do you run an "order by" and then "replace" string, but keep the order? Context - I need the string "column_name" to be in the first line, hence using "zzz_column_name" to force it in the order by. And then I need to use <code>replace</code> to change it from "zzz_col... | [
{
"answer_id": 74367914,
"author": "GMB",
"author_id": 10676716,
"author_profile": "https://Stackoverflow.com/users/10676716",
"pm_score": 2,
"selected": true,
"text": "order by SELECT replace(column_name, 'string', '') AS column_name_replaced\nFROM (\n SELECT 'zzz_column_name' AS col... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367904",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7275214/"
] |
74,367,941 | <p>everytime the closeEmail is triggered or called I wanted to assign the email.emailAddress as the value of the textfield.</p>
<p>just really new to react , what is the syntax or way to do this ?</p>
<p>Any idea guys ?</p>
<p>#code snippet</p>
<pre><code><div style={{ display: "block" }}>
... | [
{
"answer_id": 74368101,
"author": "Beatriz Infante",
"author_id": 7773975,
"author_profile": "https://Stackoverflow.com/users/7773975",
"pm_score": 0,
"selected": false,
"text": "<TextField\n style={{ width: \"95%\" }}\n value={email.emailAddress}\n label=\"Email Address\"\n var... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74367941",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19053255/"
] |
74,368,004 | <p><strong>Write a function to divide the input list into three sublists.
The first sub-list is to include all the elements whose indexes satisfy the equation i mod 3 = 1.
The second sub-list is to include all the elements whose indexes satisfy the equation and mod 3 = 2.
The third sub-list is to contain the remaining ... | [
{
"answer_id": 74369402,
"author": "Leo C",
"author_id": 6316508,
"author_profile": "https://Stackoverflow.com/users/6316508",
"pm_score": 2,
"selected": false,
"text": "Map List modulo n def splitList[T](list: List[T], n: Int): Map[Int, List[T]] = {\n @scala.annotation.tailrec\n def l... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368004",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18025822/"
] |
74,368,007 | <p>I have the the sum from (i = 1) to N is 1 + 2 + 3 + 4 ... + N</p>
<p>I found this program to calculate the sum <code>for i in range(1,100)</code></p>
<pre><code>num1, num2 = 1, 100
sum = int((num2*(num2+1)/2) - (num1*(num1+1)/2) + num1)
print(sum)
</code></pre>
<p>This works, but what if I want to know N = 10, or N ... | [
{
"answer_id": 74368047,
"author": "Jiho Kim",
"author_id": 16562494,
"author_profile": "https://Stackoverflow.com/users/16562494",
"pm_score": 1,
"selected": false,
"text": "def sum(n):\n return int(n * (n + 1) // 2)\n\nprint(sum(10))\nprint(sum(100))\n"
},
{
"answer_id": 743... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20200075/"
] |
74,368,030 | <p>I have a huge problem with my CSS not working with my Angular project.</p>
<p>When I log in on the login page</p>
<pre><code>username = toto
password = 123
</code></pre>
<p>I created a demo <a href="https://stackblitz.com/github/kora1348/salma?file=src/styles.css" rel="nofollow noreferrer">here</a>.</p>
<p><a href... | [
{
"answer_id": 74368047,
"author": "Jiho Kim",
"author_id": 16562494,
"author_profile": "https://Stackoverflow.com/users/16562494",
"pm_score": 1,
"selected": false,
"text": "def sum(n):\n return int(n * (n + 1) // 2)\n\nprint(sum(10))\nprint(sum(100))\n"
},
{
"answer_id": 743... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368030",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18216840/"
] |
74,368,056 | <p>A requester is sending messages over a normal queue to a responder, indicating a dynamic queue it created as a reply queue. The responder puts these same messages on the reply queue. The responder retrieves all messages correctly.</p>
<p>For each message sent the requester obtains a message from the reply queue, but... | [
{
"answer_id": 74372649,
"author": "Rich",
"author_id": 19632961,
"author_profile": "https://Stackoverflow.com/users/19632961",
"pm_score": 3,
"selected": true,
"text": "byte[] buf = new byte[msg.getDataLength()];\nString message = new String(buf, charset);\nSystem.out.println(\"Requeste... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368056",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1558628/"
] |
74,368,059 | <p>We want to complete a DT1 table, by retrieving the sum of scores contained in another DT2 table.
By adding to DT1 counters A and B from DT2, making sure that date of DT1 is between the start and end date of DT2.
How is this achievable with data table?</p>
<h1>Initial data</h1>
<pre><code>Table DT1
Date City ... | [
{
"answer_id": 74368268,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 1,
"selected": false,
"text": "# you'll want to fix these regardless, since you can't calculate on text dates\nDT1$work_day = as.Date(DT1$work_d... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368059",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19123441/"
] |
74,368,078 | <p>I'm getting <code>MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017</code> when trying to start mongo locally with <code>$ mongosh</code>.</p>
<pre><code>$ mongosh
Current Mongosh Log ID: 636addb4****************
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeou... | [
{
"answer_id": 74368268,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 1,
"selected": false,
"text": "# you'll want to fix these regardless, since you can't calculate on text dates\nDT1$work_day = as.Date(DT1$work_d... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368078",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5004011/"
] |
74,368,083 | <p>I have a dataframe, <code>df_res</code> with volumetric and mean and standard deviation jacobian values against ID strings (<code>subjid</code>), software type ran (<code>pipeline</code>), and anatomical region labels (<code>label_id</code>):</p>
<pre><code>df_res =
subjid pipeline label_id volume_(m... | [
{
"answer_id": 74368268,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 1,
"selected": false,
"text": "# you'll want to fix these regardless, since you can't calculate on text dates\nDT1$work_day = as.Date(DT1$work_d... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9343043/"
] |
74,368,089 | <p>I'm a new pyhton programmer, I'm writing a simple program that calculate what I have in my storage and what is remaining so let's assume that x = 1000 I want to deduct 200 items now and after a day I'll deduct 300 more the problem here that programme will deduct 200 out of the 1000 and deduct 300 out of the same 100... | [
{
"answer_id": 74368268,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 1,
"selected": false,
"text": "# you'll want to fix these regardless, since you can't calculate on text dates\nDT1$work_day = as.Date(DT1$work_d... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368089",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19820594/"
] |
74,368,104 | <p>Is there a way to remove all CSS styles from a specific selector using Javascript, without removing the selector itself from the element?</p>
<p>The issue is that I'd like to add my own class to an element to handle the styling, but the element is created by a WordPress plugin and there are already classes on the el... | [
{
"answer_id": 74368668,
"author": "glennpai",
"author_id": 20454514,
"author_profile": "https://Stackoverflow.com/users/20454514",
"pm_score": 0,
"selected": false,
"text": "window.onload = () => {\n const buttons = document.querySelectorAll('.original-class-1');\n buttons.forEach(but... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368104",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1512787/"
] |
74,368,133 | <p>I want to delete all lines that start with comments and print statements from my file.</p>
<p>This code works on lines that don't start with indents:</p>
<pre class="lang-py prettyprint-override"><code>with open("in.py", "r") as file_input:
with open("out.py", "w") as file... | [
{
"answer_id": 74368668,
"author": "glennpai",
"author_id": 20454514,
"author_profile": "https://Stackoverflow.com/users/20454514",
"pm_score": 0,
"selected": false,
"text": "window.onload = () => {\n const buttons = document.querySelectorAll('.original-class-1');\n buttons.forEach(but... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368133",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19912573/"
] |
74,368,164 | <p>i have a homework but i cant get the answer
I need to write a program in C...
Here is what is needed: You need to enter "n" natural number as input , and from all the natural numbers smaller than "n" , its needed to print the number which has the highest sum of devisors.
For exp: INPUT 10 , OUTP... | [
{
"answer_id": 74368668,
"author": "glennpai",
"author_id": 20454514,
"author_profile": "https://Stackoverflow.com/users/20454514",
"pm_score": 0,
"selected": false,
"text": "window.onload = () => {\n const buttons = document.querySelectorAll('.original-class-1');\n buttons.forEach(but... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368164",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10736084/"
] |
74,368,169 | <p>Example: {10,4,6,-1,23,11,5}</p>
<p>Output: (4,6),(-1,5),(6,5)</p>
<p>The reasoning behind this is the fact that 4+6=10, -1+5=4, and 6+5=11</p>
<p>The mentioned pairs add up to another existent value in the same array, and it doesn't matter which order they are displayed in</p>
<p>I did the classic brute-force, with... | [
{
"answer_id": 74368668,
"author": "glennpai",
"author_id": 20454514,
"author_profile": "https://Stackoverflow.com/users/20454514",
"pm_score": 0,
"selected": false,
"text": "window.onload = () => {\n const buttons = document.querySelectorAll('.original-class-1');\n buttons.forEach(but... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368169",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17002711/"
] |
74,368,181 | <p>I'm trying to create a JWT with joken</p>
<pre><code>privKey = """
-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIPaIrqi+I+znfdsteEXELr2J1e+qC72KNam6fx40pYvi
-----END PRIVATE KEY-----
"""
signer = Joken.Signer.create("Ed25519", %{"pem" => privKey})
Joken.gener... | [
{
"answer_id": 74368668,
"author": "glennpai",
"author_id": 20454514,
"author_profile": "https://Stackoverflow.com/users/20454514",
"pm_score": 0,
"selected": false,
"text": "window.onload = () => {\n const buttons = document.querySelectorAll('.original-class-1');\n buttons.forEach(but... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368181",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/950147/"
] |
74,368,253 | <p>Having a table such as follows:</p>
<pre><code>CREATE TABLE Associations (
obj_id int unsigned NOT NULL,
attr_id int unsigned NOT NULL,
assignment Double NOT NULL
PRIMARY KEY (`obj_id`, `attr_id`),
);
</code></pre>
<p>this should occupy 16 bytes per row. So the overhead per row is small.<br />
I need to u... | [
{
"answer_id": 74368313,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 1,
"selected": false,
"text": "IN() range_optimizer_max_mem_size"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368253",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9055634/"
] |
74,368,267 | <p>How do I query join two tables and sum distinct values in a column?</p>
<p>Given Parent:</p>
<p><a href="https://i.stack.imgur.com/wtaAl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wtaAl.png" alt="[](https://i.stack.imgur.com/... | [
{
"answer_id": 74368313,
"author": "Bill Karwin",
"author_id": 20860,
"author_profile": "https://Stackoverflow.com/users/20860",
"pm_score": 1,
"selected": false,
"text": "IN() range_optimizer_max_mem_size"
}
] | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368267",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19639266/"
] |
74,368,288 | <p>i have a dataset with three columns, small example:</p>
<pre><code> A B
1 sety NA
2 NA bety
3 NA bety
4 sety bety
5 sety NA
</code></pre>
<p>how can i plot a pieplot where i have percentage of people having sety, percentage of people having bety, and percentage of people having bo... | [
{
"answer_id": 74369107,
"author": "stomper",
"author_id": 9227264,
"author_profile": "https://Stackoverflow.com/users/9227264",
"pm_score": 0,
"selected": false,
"text": "\nlibrary(ggplot2)\nlibrary(stringr)\nlibrary(dplyr)\n\n#initial dataset\ndata <- data.frame(A = c(\"sety\", NA, NA,... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368288",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14030805/"
] |
74,368,289 | <p>I have a dataset that looks something like this in R:</p>
<pre><code>address = c("882 4N Road River NY, NY 12345", "882 - River Road NY, ZIP 12345", "123 Fake Road Boston Drive Boston", "123 Fake - Rd Boston 56789")
name = c("ABC Center Building", "... | [
{
"answer_id": 74408721,
"author": "zephryl",
"author_id": 17303805,
"author_profile": "https://Stackoverflow.com/users/17303805",
"pm_score": 2,
"selected": false,
"text": "stringdist::stringdist() stringdist::stringdist() address name library(dplyr)\nlibrary(tidyr)\nlibrary(stringdist)... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13203841/"
] |
74,368,348 | <p>With the new NextJS 13 introducing the <code>app</code> directory, would redux still make sense?</p>
<p>It's already possible to wrap redux providers around a <strong>Client Component</strong> as per next docs. But how would sharing states with redux impact Next performance and optmization?</p>
<p>Next docs ask to f... | [
{
"answer_id": 74499505,
"author": "Konrad",
"author_id": 20547013,
"author_profile": "https://Stackoverflow.com/users/20547013",
"pm_score": 2,
"selected": false,
"text": " \"use client\";\n\nimport { useServerInsertedHTML } from \"next/navigation\";\nimport { CssBaseline, NextUIProvide... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368348",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11252466/"
] |
74,368,366 | <p>I've used terraform to setup infra for an s3 bucket and my containerised lambda. I want to trigger the lambda to list the items in my s3 bucket. When I run the aws cli it's fine:</p>
<pre><code>aws s3 ls
</code></pre>
<p>returns</p>
<pre><code>2022-11-08 23:04:19 bucket-name
</code></pre>
<p>This is my lambda:</p>
<... | [
{
"answer_id": 74368438,
"author": "dawaltco",
"author_id": 8051300,
"author_profile": "https://Stackoverflow.com/users/8051300",
"pm_score": 2,
"selected": false,
"text": "aws s3 ls s3:ListAllMyBuckets aws s3 ls aws s3 ls s3://bucket-name \"arn:aws:s3:::bucket-name/*\""
},
{
"an... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368366",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2482149/"
] |
74,368,373 | <p>I have a map that contains Keys and Values. i want to transfer it to a List and sort it by value first (integer) and then by Key (String) . This is , it sorts by value but if theres a tie in the value, i want to "untie" it by sorting it in Alphabetical order. Is there any kotlin , java function that does... | [
{
"answer_id": 74368439,
"author": "radof",
"author_id": 20349343,
"author_profile": "https://Stackoverflow.com/users/20349343",
"pm_score": 2,
"selected": true,
"text": "yourMap.toList() Pair fun <T, U> pairComparator(\n firstComparator: Comparator<T>, \n secondComparator: Compara... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368373",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8934039/"
] |
74,368,380 | <p>I am trying to combine flexible modelling functions (using tidyeval) and then mapping over data in a nested dataframe (and attempting to learn tidy evaluation along the way). I am running into the problems of inlining expressions with the captured call (I think). Any suggestion, examples, tips, or best practices for... | [
{
"answer_id": 74368689,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 0,
"selected": false,
"text": "data library(rlang)\nlibrary(tidyverse)\n\nlm_wrap <- function(data, traits, resp, env = caller_env(), ...) ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454416/"
] |
74,368,393 | <p>I'm trying to follow <a href="https://blog.syncfusion.com/blogs/post/learn-how-to-use-dependency-injection-in-net-maui.aspx#:%7E:text=Let%E2%80%99s%20bind%20the%20LabelText%20property%20to%20the%20Label,in%20your%20desired%20class%20constructors.%20...%20More%20items" rel="nofollow noreferrer">this article</a> on .N... | [
{
"answer_id": 74368689,
"author": "Allan Cameron",
"author_id": 12500315,
"author_profile": "https://Stackoverflow.com/users/12500315",
"pm_score": 0,
"selected": false,
"text": "data library(rlang)\nlibrary(tidyverse)\n\nlm_wrap <- function(data, traits, resp, env = caller_env(), ...) ... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368393",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1277304/"
] |
74,368,395 | <p>I am trying to generate 1000 random samples and need to put if the p-value of the test for each sample is larger than alpha in reject_collect object and if the true mean of 10 is in the CI of each sample generated. My objects currently only have 1 value. Not sure how to fix it.</p>
<pre><code>reject_collect <- N... | [
{
"answer_id": 74368701,
"author": "margusl",
"author_id": 646761,
"author_profile": "https://Stackoverflow.com/users/646761",
"pm_score": 1,
"selected": true,
"text": "reject_collect CI_include_collect runs <- 1000\nreject_collect <- vector(length = runs)\nCI_include_collect <- vector(l... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368395",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454445/"
] |
74,368,411 | <p>In my attempt to start using TensorFlow on my mac [Monterey 12.6.1] [chip Apple M1 MAX] I start to get errors that I did not observe on my mac mini [Monterey 12.6 - Chip M1 2020]</p>
<p>It is either an environment issue or a chipset issue.
[Works on my windows machine Win-11 and Mac-Mini]</p>
<p>Code:</p>
<pre><code... | [
{
"answer_id": 74368701,
"author": "margusl",
"author_id": 646761,
"author_profile": "https://Stackoverflow.com/users/646761",
"pm_score": 1,
"selected": true,
"text": "reject_collect CI_include_collect runs <- 1000\nreject_collect <- vector(length = runs)\nCI_include_collect <- vector(l... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368411",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454331/"
] |
74,368,412 | <p>I have a Django application with a health check endpoint that's using <a href="https://github.com/revsys/django-health-check" rel="nofollow noreferrer">django-health-check</a>.</p>
<p>In the <code>url_patterns</code> I have added the following line:</p>
<pre><code> url(r'^ht/', include('health_check.urls')),
</code... | [
{
"answer_id": 74411586,
"author": "Leo",
"author_id": 6914106,
"author_profile": "https://Stackoverflow.com/users/6914106",
"pm_score": 0,
"selected": false,
"text": "before_breadcrumb None before_breadcrumb import sentry_sdk\n\ndef before_breadcrumb(crumb, hint):\n if 'httplib_reque... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368412",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1262198/"
] |
74,368,414 | <p>I've the following XML (consider it as normal text) :</p>
<pre><code> <TextView
android:layout_width="15dp"
android:layout_height="match_parent"
android:textSize="1.5sp" />
</code></pre>
<p>I'm using the following code to extract numbers, for example <str... | [
{
"answer_id": 74368433,
"author": "caTS",
"author_id": 18244921,
"author_profile": "https://Stackoverflow.com/users/18244921",
"pm_score": 3,
"selected": true,
"text": "const text = `\\\n<ImageView\n android:layout_width=\"15dp\"\n android:layout_height=\"match_parent\"\n andro... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368414",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7954210/"
] |
74,368,422 | <p>I am trying to print the value of a local variable inside of main, from another function without using global variables. What would be the best way to do so?</p>
<pre><code>#include <stdio.h>
int function1();
int main(void) {
int hello=10;
printf(function1());
}
int function1(int ip){
printf("hel... | [
{
"answer_id": 74368476,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 2,
"selected": false,
"text": "int function1();\n int function1(int);\n printf(function1());\n function1(hello);\n"
},
{
"answer_id": 7436863... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368422",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20453967/"
] |
74,368,426 | <p>I just can ignore this property and I will get the same result, right?</p>
<p>If so, what is the meaning of using text-decoration: none; as a declaration in CSS.</p>
<p>This is my first question.</p>
<p>I'm trying to understand CSS and it's declaration's properties.</p>
| [
{
"answer_id": 74368476,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 2,
"selected": false,
"text": "int function1();\n int function1(int);\n printf(function1());\n function1(hello);\n"
},
{
"answer_id": 7436863... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368426",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20367989/"
] |
74,368,490 | <p>How to convert during(milliseconds) from long to readable String in Java, such as 5 minutes and 2 seconds or 2 hours if no trailing minutes or seconds?</p>
<p>I have tried TimeUtils, but it still requires a little script to concatenate strings.</p>
| [
{
"answer_id": 74368476,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 2,
"selected": false,
"text": "int function1();\n int function1(int);\n printf(function1());\n function1(hello);\n"
},
{
"answer_id": 7436863... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368490",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454500/"
] |
74,368,491 | <p>I have multiple lengths of array in variables and I need to find which variable is greater and just change the color of that variable font. I have done this but issue is if 2 variable have same values so I need to color both of them right now its just showing one.</p>
<p>My code</p>
<pre><code> calculateconfirm(loc... | [
{
"answer_id": 74368476,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 2,
"selected": false,
"text": "int function1();\n int function1(int);\n printf(function1());\n function1(hello);\n"
},
{
"answer_id": 7436863... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368491",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12791644/"
] |
74,368,503 | <p>I have a YAML document like this</p>
<pre class="lang-yaml prettyprint-override"><code>
services:
- name: newlogd
image: NEWLOGD_TAG
cgroupsPath: /eve/services/newlogd
oomScoreAdj: -999
- name: edgeview
image: EDGEVIEW_TAG
cgroupsPath: /eve/services/eve-edgeview
oomScoreAdj: -800
- ... | [
{
"answer_id": 74368476,
"author": "pm100",
"author_id": 173397,
"author_profile": "https://Stackoverflow.com/users/173397",
"pm_score": 2,
"selected": false,
"text": "int function1();\n int function1(int);\n printf(function1());\n function1(hello);\n"
},
{
"answer_id": 7436863... | 2022/11/08 | [
"https://Stackoverflow.com/questions/74368503",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/639353/"
] |
74,368,516 | <p>I always wondered how such pictures are made:</p>
<p><a href="https://i.stack.imgur.com/3EKef.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3EKef.png" alt="enter image description here" /></a></p>
<p>I am working with the R programming language. I would like to plot a parabola with "random ... | [
{
"answer_id": 74368538,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 3,
"selected": true,
"text": "x = 1:100\ny = x^2\nz = y + rnorm(length(y), 100,100)\n\nplot(x,z)\n"
},
{
"answer_id": 74369049,
"author"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368516",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13203841/"
] |
74,368,548 | <p>I have a map of my country, and I try to resize it so as not to take up so much space on the screen, but for some reason, whenever I try to do so, a part of the map is erased as if a square had removed that area, would anyone know how to fix that?</p>
<pre><code>
</code></pre>
<p><svg
xmlns:mapsvg="http://ma... | [
{
"answer_id": 74368538,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 3,
"selected": true,
"text": "x = 1:100\ny = x^2\nz = y + rnorm(length(y), 100,100)\n\nplot(x,z)\n"
},
{
"answer_id": 74369049,
"author"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368548",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454524/"
] |
74,368,564 | <p>I'm a beginner in Swift and have a task to change the bottom sheet message when the process of the app doesn't work in three minutes. So, the message will change from "available" to "not available" if the process does not work.</p>
<p>I found code syntax like:</p>
<pre class="lang-swift prettypri... | [
{
"answer_id": 74368538,
"author": "Dave2e",
"author_id": 5792244,
"author_profile": "https://Stackoverflow.com/users/5792244",
"pm_score": 3,
"selected": true,
"text": "x = 1:100\ny = x^2\nz = y + rnorm(length(y), 100,100)\n\nplot(x,z)\n"
},
{
"answer_id": 74369049,
"author"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368564",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20325604/"
] |
74,368,650 | <p>Trying to install a package (flake8) onto a Docker container (or maybe it's an image). I've pip installed the package locally, and when I try to pip install it again, I get:</p>
<pre><code>Requirement already satisfied: flake8 in c:\python39\lib\site-packages (5.0.4)
</code></pre>
<p>But then when I run this code sn... | [
{
"answer_id": 74369051,
"author": "MingJie-MSFT",
"author_id": 18359438,
"author_profile": "https://Stackoverflow.com/users/18359438",
"pm_score": 1,
"selected": false,
"text": "pip install flake8\n"
},
{
"answer_id": 74439783,
"author": "Conor Romano",
"author_id": 1574... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368650",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15749744/"
] |
74,368,655 | <p>How do I properly catch errors when doing CRUD operations on firebase?</p>
<p>I turned off the wifi and I was expecting to catch an error snack but all I see is the loader spinning forever and ever.
If I turn the wifi backon, it eventually uploads the files</p>
<pre><code>_uploadImages(context) async {
setState(... | [
{
"answer_id": 74369051,
"author": "MingJie-MSFT",
"author_id": 18359438,
"author_profile": "https://Stackoverflow.com/users/18359438",
"pm_score": 1,
"selected": false,
"text": "pip install flake8\n"
},
{
"answer_id": 74439783,
"author": "Conor Romano",
"author_id": 1574... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368655",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17281101/"
] |
74,368,673 | <p>I am trying to build a custom validator in Blazor based on another field on the form. Requirement is to make Phone number mandatory when user checks <strong>Receive Text Messages</strong> checkbox. I googled a lot but was only able to find custom validator verifying empty or some hardcoded string. Is there a way I c... | [
{
"answer_id": 74369440,
"author": "Ibrahim Timimi",
"author_id": 8316900,
"author_profile": "https://Stackoverflow.com/users/8316900",
"pm_score": 3,
"selected": true,
"text": "CanReceiveText true Phone [RequiredIfAttribute(\"CanReceiveText\", true)]\n[Display(Name = \"Phone Number\")]\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368673",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1524500/"
] |
74,368,677 | <p>I'm trying to make a wave game in Godot and I tried making for loops but I couldn't get them to work outside a function. But when I did put it in the function Godot won't recognize the function and give me this error - error(27,1): Unexpected token: Identifer:spawnEnemies</p>
<p>Code:</p>
<pre><code>extends Node2D
... | [
{
"answer_id": 74369440,
"author": "Ibrahim Timimi",
"author_id": 8316900,
"author_profile": "https://Stackoverflow.com/users/8316900",
"pm_score": 3,
"selected": true,
"text": "CanReceiveText true Phone [RequiredIfAttribute(\"CanReceiveText\", true)]\n[Display(Name = \"Phone Number\")]\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368677",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19327109/"
] |
74,368,690 | <p>I've been working on some custom html email templates. I'm having some trouble with my emails appearing differently when they are sent by different email services. I'm using AWS SES to send these emails to clients.</p>
<p>I've been using <a href="https://app.postdrop.io" rel="nofollow noreferrer">Postdrop</a> to sen... | [
{
"answer_id": 74416150,
"author": "Newbie",
"author_id": 5424426,
"author_profile": "https://Stackoverflow.com/users/5424426",
"pm_score": 2,
"selected": false,
"text": "quoted-printable =..=... =E2=80=8B Content-Transfer-Encoding"
},
{
"answer_id": 74460257,
"author": "Neo"... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368690",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3304179/"
] |
74,368,697 | <p>Say I want to run the command:</p>
<pre><code>git reset --hard origin/abc
</code></pre>
<p>where <code>abc</code> is my current branch. How can I programmatically insert the current branch into the command instead of having to run <code>git branch --show</code>, copying the result, and pasting into the <code>reset</... | [
{
"answer_id": 74368782,
"author": "borrimorri",
"author_id": 5274855,
"author_profile": "https://Stackoverflow.com/users/5274855",
"pm_score": 0,
"selected": false,
"text": "git reset --hard origin/$(git branch --show-current)"
},
{
"answer_id": 74371086,
"author": "LeGEC",
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368697",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5274855/"
] |
74,368,706 | <p><strong>Why does this give me a object null reference error:</strong></p>
<pre><code>[HttpPost]
public ActionResult WriteNote(NotesModel note) //notes == null
{
SendToDB(note.Author, note.Title, note.Note);
return View(); //BREAKPOINT
}
</code></pre>
<p><strong>And this does not:</strong></p>
<pre><code>[Htt... | [
{
"answer_id": 74370353,
"author": "Jonathan Wood",
"author_id": 522663,
"author_profile": "https://Stackoverflow.com/users/522663",
"pm_score": 0,
"selected": false,
"text": "model note"
}
] | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368706",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20268332/"
] |
74,368,724 | <p>I am trying to make a linear regression model using data that I have sorted into new categories. (Specifically I have taken age from the NHANES database and sorted different age ranges into generations)</p>
<p>When I attempt to use R's <code>lm()</code> function on my new data I receive an output that accounts for a... | [
{
"answer_id": 74368759,
"author": "Jilber Urbina",
"author_id": 1315767,
"author_profile": "https://Stackoverflow.com/users/1315767",
"pm_score": 1,
"selected": false,
"text": "Baby Boomers lm(BMI ~ -1 + SleepHrsNight + AgeGeneration, data = .)\n"
},
{
"answer_id": 74369030,
... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368724",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454659/"
] |
74,368,741 | <p>I want to make the operations on <a href="https://textsaver.flap.tv/lists/55f9" rel="nofollow noreferrer">structured text</a> available here using bash script language. However, my knowledge makes the task very challenging.</p>
<p>Input sample:</p>
<pre><code>"4-QUEIJOS": Mucarela Provolone Catupiry Ricota... | [
{
"answer_id": 74368835,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 4,
"selected": true,
"text": "sed $ sed -E ':a;s/([^ ]*) ([^ ]*)/\\1\"\\2\",/;ta;s/(:)(.*\")/\\1 [\\L\\2]/;$s/,$//;s/,/& /g' input_file\n\"4-QUEI... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368741",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16251726/"
] |
74,368,747 | <p>I have a list of strings like this</p>
<pre><code>string_list<-c(">=23", ">=50", "large than 23 years", "Yes", "No2", "Yes4", "Negative", "Positive9", "Negative10")
</code></pre>
<p>Is there a way to remove the numbers... | [
{
"answer_id": 74368835,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 4,
"selected": true,
"text": "sed $ sed -E ':a;s/([^ ]*) ([^ ]*)/\\1\"\\2\",/;ta;s/(:)(.*\")/\\1 [\\L\\2]/;$s/,$//;s/,/& /g' input_file\n\"4-QUEI... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368747",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17608782/"
] |
74,368,760 | <p>I faced 2 scenarios where terraform did not point out an error during the execution of terraform plan and I am wondering if is this a bug or if this is how bucket/iam policies work ( i.e determined at the time of terraform apply )</p>
<p>scenario 1 : when there was an error in condition for s3 bucket policy <code>Bo... | [
{
"answer_id": 74368835,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 4,
"selected": true,
"text": "sed $ sed -E ':a;s/([^ ]*) ([^ ]*)/\\1\"\\2\",/;ta;s/(:)(.*\")/\\1 [\\L\\2]/;$s/,$//;s/,/& /g' input_file\n\"4-QUEI... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368760",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13126651/"
] |
74,368,771 | <p>When I start a HelloWorld App on react-native using "expo start" command getting the error below. The emulator is up and running . Expo go is already installed. But for some reason app is not installing. Any pointers to resolve this would be very helpful.</p>
<pre><code>Couldn't start project on Android: E... | [
{
"answer_id": 74368835,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 4,
"selected": true,
"text": "sed $ sed -E ':a;s/([^ ]*) ([^ ]*)/\\1\"\\2\",/;ta;s/(:)(.*\")/\\1 [\\L\\2]/;$s/,$//;s/,/& /g' input_file\n\"4-QUEI... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368771",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5380410/"
] |
74,368,797 | <p>I'm making a categorized column for <code>year-month</code> for my view and have this as a formula:</p>
<pre><code>@Text(@Year (CertEnd:CQIEnd:InspEnd)) + "-" + @Text(@Month(CertEnd:CQIEnd:InspEnd))
</code></pre>
<p>If the month any anything before October, the month comes out as single digit.</p>
<p>How ... | [
{
"answer_id": 74368835,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 4,
"selected": true,
"text": "sed $ sed -E ':a;s/([^ ]*) ([^ ]*)/\\1\"\\2\",/;ta;s/(:)(.*\")/\\1 [\\L\\2]/;$s/,$//;s/,/& /g' input_file\n\"4-QUEI... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368797",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8000620/"
] |
74,368,799 | <p>I tried this but not working :</p>
<pre><code> init() {
let navBarAppearance = UINavigationBar.appearance()
navBarAppearance.largeTitleTextAttributes = [.foregroundColor: UIColor.white]
navBarAppearance.titleTextAttributes = [.foregroundColor: UIColor.white]
}
</code></pre>
| [
{
"answer_id": 74368835,
"author": "HatLess",
"author_id": 16372109,
"author_profile": "https://Stackoverflow.com/users/16372109",
"pm_score": 4,
"selected": true,
"text": "sed $ sed -E ':a;s/([^ ]*) ([^ ]*)/\\1\"\\2\",/;ta;s/(:)(.*\")/\\1 [\\L\\2]/;$s/,$//;s/,/& /g' input_file\n\"4-QUEI... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368799",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8771798/"
] |
74,368,810 | <p>I'm passing a column-name to one function. I want to reference in the function AND in another it calls.</p>
<p>This works as I expected</p>
<pre><code>library(dplyr)
updown <- function(df, columnName){
COL <- enquo(columnName)
df %>%
mutate(UP = toupper(!!COL),
DOWN = tolower(!!COL))
... | [
{
"answer_id": 74368921,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 2,
"selected": false,
"text": "{{ }} updown2 <- function(df, columnName){\n df %>% \n mutate(UP = toupper( {{columnName}} )) %>% \n updow... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368810",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6004016/"
] |
74,368,811 | <p>Im on python and I tried to get price data($25.99)from below Amazon webpage.</p>
<p><a href="https://rads.stackoverflow.com/amzn/click/com/B09HWZQQZJ" rel="nofollow noreferrer" rel="nofollow noreferrer">https://www.amazon.com/Guffercty-kred-Sublimation-Mechanical-Keyboard/dp/B09HWZQQZJ/ref=sr_1_14?crid=3UHD6OMRY6RYG... | [
{
"answer_id": 74368921,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 2,
"selected": false,
"text": "{{ }} updown2 <- function(df, columnName){\n df %>% \n mutate(UP = toupper( {{columnName}} )) %>% \n updow... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19875981/"
] |
74,368,821 | <p>I have a client service, with a method:</p>
<pre><code>get (params) {
return this.http.get(url, { params: params });
}
</code></pre>
<p>and then a service that performs this:</p>
<pre><code>fetch () {
return this.client.get(this.params);
}
</code></pre>
<p>and then a component that makes use of that service:</p>... | [
{
"answer_id": 74368921,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 2,
"selected": false,
"text": "{{ }} updown2 <- function(df, columnName){\n df %>% \n mutate(UP = toupper( {{columnName}} )) %>% \n updow... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368821",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/594763/"
] |
74,368,843 | <p>I am trying to update the Migration, however, it says the package is not referenced even though I set the default project to the correct one. See the image below. In fact, I can start the program and access the database correctly. Not sure what it causing it.</p>
<p><a href="https://i.stack.imgur.com/IHSLM.png" rel=... | [
{
"answer_id": 74368921,
"author": "Jon Spring",
"author_id": 6851825,
"author_profile": "https://Stackoverflow.com/users/6851825",
"pm_score": 2,
"selected": false,
"text": "{{ }} updown2 <- function(df, columnName){\n df %>% \n mutate(UP = toupper( {{columnName}} )) %>% \n updow... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15119845/"
] |
74,368,856 | <p>I need some help with mariadb queries. I'm trying to set an alias column with the result of another select.</p>
<p>I have 3 tables:</p>
<ul>
<li>Units_dimension.</li>
<li>Units.</li>
<li>Readings.</li>
</ul>
<p>Units_dimension table:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th... | [
{
"answer_id": 74373356,
"author": "deblocker",
"author_id": 4845566,
"author_profile": "https://Stackoverflow.com/users/4845566",
"pm_score": 2,
"selected": true,
"text": "SELECT r.`datetime`, r.`value`, ud.`dimension`\n FROM readings r, units u, unit_dimension ud\n WHERE u.id = r.unit... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13344115/"
] |
74,368,859 | <pre><code>this.wiredUserData =
[
{"result":
{"fields":
{"Id":{"value":"005xx000001X85BAAS"},
"Username":{"value":"emily@gmail.com"}}}},
{"result":
{"fields":
{"Id":{"value&... | [
{
"answer_id": 74373356,
"author": "deblocker",
"author_id": 4845566,
"author_profile": "https://Stackoverflow.com/users/4845566",
"pm_score": 2,
"selected": true,
"text": "SELECT r.`datetime`, r.`value`, ud.`dimension`\n FROM readings r, units u, unit_dimension ud\n WHERE u.id = r.unit... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368859",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454788/"
] |
74,368,863 | <p>I am trying to get the youtube channel name and the number of subscribers using the below code:</p>
<pre><code>var youtubeAuthResponse = [],youtubeChannelResponse = [];
function authenticate() {
showNewLoader('show');
return gapi.auth2.getAuthInstance()
.signIn({scope: "https://www.googleapis.com/auth/you... | [
{
"answer_id": 74436093,
"author": "Zeynep Evecen",
"author_id": 13856050,
"author_profile": "https://Stackoverflow.com/users/13856050",
"pm_score": 0,
"selected": false,
"text": "const response = await \nfetch(\"https://www.googleapis.com/youtube/v3/channels? \npart=snippet,statistic&mi... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368863",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1852924/"
] |
74,368,888 | <p>here is my UPDATE page code.</p>
<pre><code>using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Data.SqlClient;
namespace WebApplication2.Pages.Users
{
public class EditModel : PageModel
{
public UserInfo userInfo = new UserInfo();
public String errorMessa... | [
{
"answer_id": 74436093,
"author": "Zeynep Evecen",
"author_id": 13856050,
"author_profile": "https://Stackoverflow.com/users/13856050",
"pm_score": 0,
"selected": false,
"text": "const response = await \nfetch(\"https://www.googleapis.com/youtube/v3/channels? \npart=snippet,statistic&mi... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454790/"
] |
74,368,897 | <p>I have a ASP.NET Core 6 API deployed to Azure using the F1 free App Plan. Calling any endpoint returns a status code of 500.</p>
<p>I used the Log stream feature. Below my signature I will post the whole thing but the highlights are these:</p>
<ul>
<li>IIS was not able to access the web.config file for the Web sit... | [
{
"answer_id": 74373544,
"author": "Harshitha",
"author_id": 19648279,
"author_profile": "https://Stackoverflow.com/users/19648279",
"pm_score": 2,
"selected": true,
"text": "ASP.Net CORE Web API var builder = WebApplication.CreateBuilder(args);\nbuilder.Services.AddControllers();\nbuild... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368897",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1380649/"
] |
74,368,902 | <p>I have a <code>contentEditable</code> component:</p>
<p><strong>EditableComponent.js</strong></p>
<pre><code>const EditableComponent = (props) => {
return <p contentEditable>{props.children}</p>;
};
</code></pre>
<p>In the <code>ParentComponent</code> I can add <code>EditableComponent</code>s to a... | [
{
"answer_id": 74373544,
"author": "Harshitha",
"author_id": 19648279,
"author_profile": "https://Stackoverflow.com/users/19648279",
"pm_score": 2,
"selected": true,
"text": "ASP.Net CORE Web API var builder = WebApplication.CreateBuilder(args);\nbuilder.Services.AddControllers();\nbuild... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368902",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14559436/"
] |
74,368,912 | <p>I can't seem to find an answer to my question. Everything I've read on the matter seems to not quite connect and I'm starting to think what I want is impossible.</p>
<p>I'm working on a very very very light database management system, it's a college project and in my group I'm tasked with the main functions. Here's ... | [
{
"answer_id": 74368953,
"author": "Remy Lebeau",
"author_id": 65863,
"author_profile": "https://Stackoverflow.com/users/65863",
"pm_score": 2,
"selected": false,
"text": "push_back() emplace_back() int main(int argc, char* argv[]) {\n \n std::string current_exec_name = argv[0];\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368912",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20353864/"
] |
74,368,920 | <p>Hi we have a system that already has a large userbase (100k+) of microsoft users which we push updates to, using the refresh token we have saved during their inital signup.</p>
<p>The REST APi will get deprecated on the 30th of November in favour of the Graph API. <a href="https://devblogs.microsoft.com/microsoft365... | [
{
"answer_id": 74368953,
"author": "Remy Lebeau",
"author_id": 65863,
"author_profile": "https://Stackoverflow.com/users/65863",
"pm_score": 2,
"selected": false,
"text": "push_back() emplace_back() int main(int argc, char* argv[]) {\n \n std::string current_exec_name = argv[0];\n ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368920",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10340220/"
] |
74,368,928 | <p>I am trying to solve the Golf Code challenge in freecodecamp and I can't really figure out what is wrong with my code here is the direct link. [The link][1] contains the code I am trying to run, just visit the link.</p>
<p><strong>My JS:</strong></p>
<p><div class="snippet" data-lang="js" data-hide="false" data-cons... | [
{
"answer_id": 74369028,
"author": "Nijat Mursali",
"author_id": 10489887,
"author_profile": "https://Stackoverflow.com/users/10489887",
"pm_score": 2,
"selected": false,
"text": "if else-if var names = [\"Hole-in-one!\", \"Eagle\", \"Birdie\", \"Par\", \"Bogey\", \"Double Bogey\", \"Go ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368928",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18347257/"
] |
74,368,944 | <p>I am rather new at VBA. Mostly learning it via youtube video.</p>
<p>I need a little guidance for VBA code that would allow me,</p>
<ol>
<li>When I click the "UPDATE RECEIPT" button, it adds / updates value marked as A (in the RECEIPT sheet) to ROW C in the DATABASE sheet based on corresponding Invoice num... | [
{
"answer_id": 74369028,
"author": "Nijat Mursali",
"author_id": 10489887,
"author_profile": "https://Stackoverflow.com/users/10489887",
"pm_score": 2,
"selected": false,
"text": "if else-if var names = [\"Hole-in-one!\", \"Eagle\", \"Birdie\", \"Par\", \"Bogey\", \"Double Bogey\", \"Go ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454792/"
] |
74,368,999 | <p>A middleware function <code>getSession(request, opts): void</code> retrieves a <code>session</code> from the database and attaches it to the <code>request</code>, using some <code>opts</code>.</p>
<ul>
<li>If the route is not protected, it will return early;</li>
<li>If the route is protected and no <code>account</c... | [
{
"answer_id": 74369786,
"author": "Marat",
"author_id": 15775222,
"author_profile": "https://Stackoverflow.com/users/15775222",
"pm_score": 0,
"selected": false,
"text": "interface HttpRequest<SessionType> extends Request {\n session: SessionType\n}\n const validateRequest = (request: ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74368999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11150983/"
] |
74,369,007 | <p>Using the Python <code>dataclass</code> decorator generates signatures with arguments in a particular order:</p>
<pre><code>from dataclasses import dataclass
from inspect import signature
@dataclass
class Person:
age: int
name: str = 'John'
print(signature(Person))
</code></pre>
<p>Gives <code>(age: int, n... | [
{
"answer_id": 74369072,
"author": "Silvio Mayolo",
"author_id": 2288659,
"author_profile": "https://Stackoverflow.com/users/2288659",
"pm_score": 1,
"selected": true,
"text": "__init__ __str__ __repr__ __eq__ __hash__ kwargs from __future__ import annotations\n\nfrom dataclasses import ... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369007",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/687112/"
] |
74,369,046 | <p>I'm very new to Julia, and I'm trying to just pass an array of numbers into a function and count the number of zeros in it. I keep getting the error:</p>
<blockquote>
<p>ERROR: UndefVarError: array not defined</p>
</blockquote>
<p>I really don't understand what I am doing wrong, so I'm sorry if this seems like such ... | [
{
"answer_id": 74372141,
"author": "Shayan",
"author_id": 11747148,
"author_profile": "https://Stackoverflow.com/users/11747148",
"pm_score": 2,
"selected": false,
"text": "count count number_of_zeros print += + array Array function number_of_zeros(lst::Array{Int64})\n\n counter = 0\n... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369046",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454998/"
] |
74,369,180 | <p>I am trying to implement a Success Confirmation popup modal after a successful axios.delete call.</p>
<p>The delete is working and even console.log() works inside of my conditional rendering but I've noticed that my initial state is false, on successful delete (inside of my try block) the state changes to true but t... | [
{
"answer_id": 74369572,
"author": "Chris Hamilton",
"author_id": 12914833,
"author_profile": "https://Stackoverflow.com/users/12914833",
"pm_score": 1,
"selected": false,
"text": "show false showSuccess true show show showDelete return (\n <>\n <Trash onClick={handleShow}/>\n\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369180",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13155727/"
] |
74,369,244 | <p>I have a page with a select option that automatically closes when clicked on some mobile devices (Chrome/Android). This problem does not occur on the desktop nor when I debug in chrome as mobile.
It's a Shopify site, coded with the language "liquid", which basically is html.</p>
<p>After some days testing,... | [
{
"answer_id": 74369572,
"author": "Chris Hamilton",
"author_id": 12914833,
"author_profile": "https://Stackoverflow.com/users/12914833",
"pm_score": 1,
"selected": false,
"text": "show false showSuccess true show show showDelete return (\n <>\n <Trash onClick={handleShow}/>\n\... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369244",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13673711/"
] |
74,369,254 | <p>for a string:</p>
<pre><code>0.1 --> 0.10
0.2 --> 0.20
0.3 --> 0.30
0.35 --> 0.35
</code></pre>
<p>Example:</p>
<pre><code>print(str(round(variableB.count('X') /len(variableA), 2)))
</code></pre>
<p>I tried <code>print("%.2f" %str(round(variableB.count('X')/len(variableA),2)))</code>, but I got... | [
{
"answer_id": 74369284,
"author": "Michael M.",
"author_id": 13376511,
"author_profile": "https://Stackoverflow.com/users/13376511",
"pm_score": 1,
"selected": false,
"text": "% def printZero(num):\n print(\"%.2f\" % num)\n\n\nprintZero(0.1) # => 0.10\nprintZero(0.2) # => 0.20\npri... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369254",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20208016/"
] |
74,369,294 | <p>I have a table that is already defined and populated. Now what I'm trying to do is to find a specific column and after that create a new column, at the moment I have the code to handle this:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code... | [
{
"answer_id": 74369393,
"author": "dollar",
"author_id": 20166094,
"author_profile": "https://Stackoverflow.com/users/20166094",
"pm_score": 3,
"selected": true,
"text": "$(document).ready(function() {\n something();\n});\n\nfunction something() {\n var newTh = \"\";\n var th =... | 2022/11/09 | [
"https://Stackoverflow.com/questions/74369294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6855073/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.