qid int64 4 19.1M | question stringlengths 18 48.3k | answers list | date stringlengths 10 10 | metadata list |
|---|---|---|---|---|
74,467,436 | <p>I'm relatively uninitiated when it comes to Python, and I'm trying to figure out how to take an output I'm getting from a sensor into proper day, month, year and hour, minute, second format.</p>
<p>An example of the output, which also includes a basic counter (the first output), and a timestamp (the third output) is... | [
{
"answer_id": 74467539,
"author": "brebs",
"author_id": 17628336,
"author_profile": "https://Stackoverflow.com/users/17628336",
"pm_score": 3,
"selected": true,
"text": "out(A, B, C) :-\n maplist(between(1, 2), [A, B, C]).\n ?- out(A, B, C).\nA = B, B = C, C = 1 ;\nA = B, B = 1,\nC =... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467436",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524103/"
] |
74,467,452 | <p>This is the PCI CONFIG_ADDRESS register from <a href="http://pds5.egloos.com/pds/200709/07/88/pci21.pdf" rel="nofollow noreferrer">http://pds5.egloos.com/pds/200709/07/88/pci21.pdf</a> :</p>
<p><a href="https://i.stack.imgur.com/1ZQzJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1ZQzJ.png" alt=... | [
{
"answer_id": 74467873,
"author": "user363406",
"author_id": 15210335,
"author_profile": "https://Stackoverflow.com/users/15210335",
"pm_score": 0,
"selected": false,
"text": "register >> 2"
},
{
"answer_id": 74470797,
"author": "Brendan",
"author_id": 559737,
"autho... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467452",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15210335/"
] |
74,467,454 | <p>By "independent 1" I mean 1 that has no other 1 next to it ("010" or "10" and "01" at the ends of the num.)
If the 1 doesn´t have any 1 next to it, it will change to 0.</p>
<p>For example:</p>
<p>11010 = 11000</p>
<p>10101 = 00000</p>
<p>1111 = 1111</p>
<p>I can´t use for or w... | [
{
"answer_id": 74467610,
"author": "Ramazan Şen",
"author_id": 20523910,
"author_profile": "https://Stackoverflow.com/users/20523910",
"pm_score": -1,
"selected": false,
"text": "a = [3, 5, 8, 1, 2, 7]\nb = [2, 6, 8]\nlenA, lenB = len(a), len(b)\n# Getting the absolute value of abs\ndiff... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467454",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524079/"
] |
74,467,465 | <p>Suppose you have an Optional and you want to consume the Optional multiple times.
You could now save the Optional to a variable; and then use <code>ifPresent</code> two times on it:</p>
<pre class="lang-java prettyprint-override"><code>Optional<Animal> optionalAnimal = animalService.getAllAnimals().findFirst()... | [
{
"answer_id": 74467588,
"author": "Alexander Ivanchenko",
"author_id": 17949945,
"author_profile": "https://Stackoverflow.com/users/17949945",
"pm_score": 4,
"selected": true,
"text": "Consumer.andThen() Consumer.andThen() Optional.ifPresent() @SafeVarargs\npublic static <T> Consumer<T>... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467465",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17133024/"
] |
74,467,471 | <p>I cant have 2 init methods in one class because of function overloading. However, why is it possible that when initializing a subclass, im able to define a new <code>__init__</code> method, and use the <code>super().__init__</code> method or the parentclass init method within the subclass <code>__init__</code> metho... | [
{
"answer_id": 74467534,
"author": "Harez",
"author_id": 20352132,
"author_profile": "https://Stackoverflow.com/users/20352132",
"pm_score": 0,
"selected": false,
"text": "super()"
},
{
"answer_id": 74504251,
"author": "chepner",
"author_id": 1126841,
"author_profile"... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20389571/"
] |
74,467,540 | <p>I am trying to count the number of occurrences of each character within a large dateset. For example, if the data was the numpy array ['A', 'AB', 'ABC'] then I would want {'A': 3, 'B': 2, 'C': 1} as the output. I currently have an implementation that looks like this:</p>
<pre><code>char_count = {}
for c in string.pr... | [
{
"answer_id": 74467637,
"author": "Dani Mesejo",
"author_id": 4001592,
"author_profile": "https://Stackoverflow.com/users/4001592",
"pm_score": 1,
"selected": false,
"text": "import numpy as np\nfrom collections import defaultdict\n\ndata = np.array(['A', 'AB', 'ABC'])\n\ncounts = defau... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467540",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19407888/"
] |
74,467,546 | <p>Imagine I have an ordered std::vector <code>A = {x1, x2, ..., xn}</code> and I want to perform an operation on every subsequent pair of items, e.g. <code>f(x1, x2); f(x2, x3); ... f(xn-1, xn); f(xn, x1)</code>.</p>
<p>I could iterate like I normally would, while tracking the previous item:</p>
<pre><code>for (auto x... | [
{
"answer_id": 74467631,
"author": "Ted Lyngmo",
"author_id": 7582247,
"author_profile": "https://Stackoverflow.com/users/7582247",
"pm_score": 2,
"selected": false,
"text": "A.size() #include <iostream>\n#include <vector>\n\nvoid foo(int a, int b) { std::cout << a << ',' << b << '\\n'; ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467546",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3120880/"
] |
74,467,567 | <p>My problems or rather my misunderstanding are next.</p>
<p><strong>First one:</strong></p>
<p>Basically i made my linked list class, and now as you can see in following code in constructor i called append method before it was actually created and the code run without an error, so i am really interested to know why ... | [
{
"answer_id": 74467712,
"author": "Edward Peters",
"author_id": 6016064,
"author_profile": "https://Stackoverflow.com/users/6016064",
"pm_score": 1,
"selected": false,
"text": "__init__ append __init__"
},
{
"answer_id": 74467799,
"author": "chepner",
"author_id": 112684... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467567",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18693937/"
] |
74,467,604 | <p>I'm new to Vue and done a little bit of html and css, i want to use a variable as the image directory but the image never loads, the variable is being updated by a tauri function which works and i need the image to change as well.</p>
<p>this is a bit of my code</p>
<pre class="lang-html prettyprint-override"><code>... | [
{
"answer_id": 74467646,
"author": "Vasyl",
"author_id": 17099154,
"author_profile": "https://Stackoverflow.com/users/17099154",
"pm_score": 0,
"selected": false,
"text": "<img :src=\"data\">\n"
},
{
"answer_id": 74468156,
"author": "Ezra Siton",
"author_id": 9291557,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467604",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18187543/"
] |
74,467,623 | <p>I am trying to convert a column called <code>Month_Next</code> from a dataframe called <code>df_actual</code> from the last day of one month to the first day of the next. The column looks like this:</p>
<p><a href="https://i.stack.imgur.com/5IRm7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5IR... | [
{
"answer_id": 74467646,
"author": "Vasyl",
"author_id": 17099154,
"author_profile": "https://Stackoverflow.com/users/17099154",
"pm_score": 0,
"selected": false,
"text": "<img :src=\"data\">\n"
},
{
"answer_id": 74468156,
"author": "Ezra Siton",
"author_id": 9291557,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467623",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19980284/"
] |
74,467,639 | <p>I need a Regular Expression for Javascript that replaces a string (for example >//<) if its inside any type of quotes. For example</p>
<pre><code>>This is a test "With a text including // and more" for replacement<
</code></pre>
<p>I cant get the combination of Reg Expression rules working
Im n... | [
{
"answer_id": 74467646,
"author": "Vasyl",
"author_id": 17099154,
"author_profile": "https://Stackoverflow.com/users/17099154",
"pm_score": 0,
"selected": false,
"text": "<img :src=\"data\">\n"
},
{
"answer_id": 74468156,
"author": "Ezra Siton",
"author_id": 9291557,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467639",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12795379/"
] |
74,467,641 | <p>I'm having troubles getting chrome storage API to work in MV3. I've tried this so far and even in the service worker console it returns an undefined result</p>
<pre><code>chrome.storage.local.set({ 'test': 'test' }, function() {
chrome.storage.local.get('test', function(result) {
console.log('Val... | [
{
"answer_id": 74467646,
"author": "Vasyl",
"author_id": 17099154,
"author_profile": "https://Stackoverflow.com/users/17099154",
"pm_score": 0,
"selected": false,
"text": "<img :src=\"data\">\n"
},
{
"answer_id": 74468156,
"author": "Ezra Siton",
"author_id": 9291557,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467641",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15788211/"
] |
74,467,642 | <p>I recently upgraded to Entity Framework Core 7 in development and I'm getting an exception, "A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)&... | [
{
"answer_id": 74516640,
"author": "MeTaLiKiD",
"author_id": 3105574,
"author_profile": "https://Stackoverflow.com/users/3105574",
"pm_score": 0,
"selected": false,
"text": "Microsoft.EntityFrameworkCore.SqlServer 7.0.0 TrustServerCertificate=Yes"
},
{
"answer_id": 74577373,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467642",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3802434/"
] |
74,467,653 | <p>I'm attempting to use Outh authentication for my PHP request to Salesforce but I can't get my ClientID and SecretID for my app.<br>
I normally have an option to View these values but for some reason I'm unable to view them with an administrator login.<br>
I created a new App and was able to get the credentials succe... | [
{
"answer_id": 74516640,
"author": "MeTaLiKiD",
"author_id": 3105574,
"author_profile": "https://Stackoverflow.com/users/3105574",
"pm_score": 0,
"selected": false,
"text": "Microsoft.EntityFrameworkCore.SqlServer 7.0.0 TrustServerCertificate=Yes"
},
{
"answer_id": 74577373,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9203605/"
] |
74,467,660 | <p>I am working on a project for which I have to parse and query a relatively large xml file in python. I am using a dataset with data about scientific articles. The dataset can be found via this link (<a href="https://dblp.uni-trier.de/xml/dblp.xml.gz" rel="nofollow noreferrer">https://dblp.uni-trier.de/xml/dblp.xml.g... | [
{
"answer_id": 74516640,
"author": "MeTaLiKiD",
"author_id": 3105574,
"author_profile": "https://Stackoverflow.com/users/3105574",
"pm_score": 0,
"selected": false,
"text": "Microsoft.EntityFrameworkCore.SqlServer 7.0.0 TrustServerCertificate=Yes"
},
{
"answer_id": 74577373,
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467660",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14604882/"
] |
74,467,682 | <p>I have a list</p>
<pre><code>flat_list =['53295,-46564.2', '53522.6,-46528.4', '54792.9,-46184', '55258.7,-46512.9', '55429.4,-48356.9', '53714.5,-50762.8']
</code></pre>
<p>How can I convert it into</p>
<pre><code>[[53295,-46564.2], [53522.6,-46528.4], [54792.9,-46184], [55258.7,-46512.9], [55429.4,-48356.9], [5371... | [
{
"answer_id": 74467801,
"author": "payloc91",
"author_id": 8524301,
"author_profile": "https://Stackoverflow.com/users/8524301",
"pm_score": 2,
"selected": false,
"text": "list2 = [[float(f) for f in el.split(\",\")] for el in flat_list]\n list2 = [list(map(float,el.split(\",\"))) for e... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467682",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3499052/"
] |
74,467,684 | <p>It's my first time using Firestore Cloud Messaging and I want to get the FCM token for each specific device. For quick development, I added the firebase_auth_ui package, which basically outsources the firebase auth login and registration flow. To capture the user's id and store in their doc, I use a simple function ... | [
{
"answer_id": 74468548,
"author": "Maniak",
"author_id": 20006884,
"author_profile": "https://Stackoverflow.com/users/20006884",
"pm_score": 1,
"selected": false,
"text": "generateDeviceToken() async {\nString? fcmToken = await FirebaseMessaging.instance.getToken();\nfinal userId = Fire... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467684",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16922954/"
] |
74,467,688 | <p><code>create table DogLicense ( License int IDENTITY(1,1) PRIMARY KEY, Expires date NOT NULL CHECK(Expires > '1990-01-01') , Sex char(2) NOT NULL CONSTRAINT check_Sex_M_F_NM_SF CHECK (Sex IN ('M','F','NM','SF')), PetName char(50) NOT NULL , Breed char(50) , OwnerLastName char(50) NOT NULL , OwnerFirstName ... | [
{
"answer_id": 74467813,
"author": "DanielT",
"author_id": 20400287,
"author_profile": "https://Stackoverflow.com/users/20400287",
"pm_score": 0,
"selected": false,
"text": "insert into DogLicense values ('2023-06-21','NM', 'Rosco', 'St. Bernard','Freeman','Mark', '123 Medow Ln.','99207... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467688",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524254/"
] |
74,467,699 | <p>I installed Laravel UI using this tutorial <a href="https://www.itsolutionstuff.com/post/laravel-9-authentication-using-breeze-tutorialexample.html" rel="nofollow noreferrer">https://www.itsolutionstuff.com/post/laravel-9-authentication-using-breeze-tutorialexample.html</a></p>
<p>The login and register forms are th... | [
{
"answer_id": 74467813,
"author": "DanielT",
"author_id": 20400287,
"author_profile": "https://Stackoverflow.com/users/20400287",
"pm_score": 0,
"selected": false,
"text": "insert into DogLicense values ('2023-06-21','NM', 'Rosco', 'St. Bernard','Freeman','Mark', '123 Medow Ln.','99207... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467699",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1198563/"
] |
74,467,704 | <p>I want to use the project name from the path as an input to main.tf.
For example I have the file path as follows</p>
<pre><code>/env/nonprod/overlay/prj-npe-02/main.tf
</code></pre>
<p>and in my main.tf can the input var.project_name be taken from the file path which is "../prj-npe-02/.."</p>
<pre><code>ma... | [
{
"answer_id": 74467813,
"author": "DanielT",
"author_id": 20400287,
"author_profile": "https://Stackoverflow.com/users/20400287",
"pm_score": 0,
"selected": false,
"text": "insert into DogLicense values ('2023-06-21','NM', 'Rosco', 'St. Bernard','Freeman','Mark', '123 Medow Ln.','99207... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467704",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19840332/"
] |
74,467,723 | <p>New to react so any help would be appreciated!
I have a table of users that I've mapped out from an API call. I also needed an Edit button so I could edit a user in a separate form.
But when I pass the object into my handleEditShow function on the onclick function of that edit button, I get an error: "Too many ... | [
{
"answer_id": 74467813,
"author": "DanielT",
"author_id": 20400287,
"author_profile": "https://Stackoverflow.com/users/20400287",
"pm_score": 0,
"selected": false,
"text": "insert into DogLicense values ('2023-06-21','NM', 'Rosco', 'St. Bernard','Freeman','Mark', '123 Medow Ln.','99207... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467723",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16557274/"
] |
74,467,727 | <p>I have a polydata structure and its extracted edges but computed with <code>extract_feature_edges</code> function as unconnected cells (separated lines).</p>
<p>Is it possible to connect those cells (lines) from their common points and then get the different features (lands, islands such as what you can see in the i... | [
{
"answer_id": 74467813,
"author": "DanielT",
"author_id": 20400287,
"author_profile": "https://Stackoverflow.com/users/20400287",
"pm_score": 0,
"selected": false,
"text": "insert into DogLicense values ('2023-06-21','NM', 'Rosco', 'St. Bernard','Freeman','Mark', '123 Medow Ln.','99207... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467727",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2772805/"
] |
74,467,742 | <p>I have a moderate amount of experience in python and a little experience in C++ and c#.</p>
<p>I am currently doing an optimization challenge where I am gated by efficiency, and am hoping to use a C library in python to increase efficiency. I have no experience using C in python, but I won't need to marshall many va... | [
{
"answer_id": 74467813,
"author": "DanielT",
"author_id": 20400287,
"author_profile": "https://Stackoverflow.com/users/20400287",
"pm_score": 0,
"selected": false,
"text": "insert into DogLicense values ('2023-06-21','NM', 'Rosco', 'St. Bernard','Freeman','Mark', '123 Medow Ln.','99207... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467742",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20454104/"
] |
74,467,744 | <p>What I have is the following input data for a function in a piece of scala code I'm writing:</p>
<pre class="lang-scala prettyprint-override"><code>List(
(1,SubScriptionState(CNN,ONLINE,Seq(12))),
(1,SubScriptionState(SKY,ONLINE,Seq(12))),
(1,SubScriptionState(FOX,ONLINE,Seq(12))),
(2,SubScriptionState(CN... | [
{
"answer_id": 74468442,
"author": "ofnero",
"author_id": 10568780,
"author_profile": "https://Stackoverflow.com/users/10568780",
"pm_score": 3,
"selected": true,
"text": " val result: Map[Int, Map[SubscriptionState, Int]] = list\n .groupBy(_._1)\n .view\n .mapValues { statesBy... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467744",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2443960/"
] |
74,467,777 | <p>I need to dynamically access the values of different entry fields that are built using a collection view in Maui.</p>
<p>I know using the OnEntryCompleted function you are able to get the text from an entry field but I am not sure the best way to store it if you have text from multiple entry fields coming from a col... | [
{
"answer_id": 74468714,
"author": "ToolmakerSteve",
"author_id": 199364,
"author_profile": "https://Stackoverflow.com/users/199364",
"pm_score": 0,
"selected": false,
"text": "CollectionView.ItemsSource ItemsSource ObservableCollection<MyModel> MyItems MyModel public string MyEntryValue... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467777",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20461779/"
] |
74,467,808 | <p>I am getting a nested JSON off of an API. When I try to convert the JSON into CSV, I get attribute errors for keys. How do I only write the records from the sample data to csv?</p>
<pre><code> {"result":{"total_records":3471,"offset":0.0,"size":100.0,"records":[{&quo... | [
{
"answer_id": 74468714,
"author": "ToolmakerSteve",
"author_id": 199364,
"author_profile": "https://Stackoverflow.com/users/199364",
"pm_score": 0,
"selected": false,
"text": "CollectionView.ItemsSource ItemsSource ObservableCollection<MyModel> MyItems MyModel public string MyEntryValue... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/684899/"
] |
74,467,811 | <p>I need to show/hide two floating buttons on page scrolling for <strong>back to top</strong> and <strong>back to bottom</strong>.
Here is my code.</p>
<p>It should shows, back to top button while scrolling page to bottom (it works) and shows back to bottom button while scrolling page to top.(not working properly)</p>... | [
{
"answer_id": 74468157,
"author": "Alvin",
"author_id": 9239975,
"author_profile": "https://Stackoverflow.com/users/9239975",
"pm_score": 1,
"selected": false,
"text": "let previousScrollY = 0; //Store previous scroll to detect if the next one is going up or down\n\n// When the user scr... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467811",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1906322/"
] |
74,467,816 | <p>My metal default library does not contain the vertex and shader functions from the .metal file of the same directory.</p>
<p>Then the library.makeFunction(name: ..) returns nil for both the vertex and shader functions that should be assigned to pipelineDescriptor vars.</p>
<p>The metal file & headers are copied... | [
{
"answer_id": 74468157,
"author": "Alvin",
"author_id": 9239975,
"author_profile": "https://Stackoverflow.com/users/9239975",
"pm_score": 1,
"selected": false,
"text": "let previousScrollY = 0; //Store previous scroll to detect if the next one is going up or down\n\n// When the user scr... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5596126/"
] |
74,467,833 | <p>I have an SQL query that creates an array with 9 entries, I want to create a table with Numpy and append data as rows</p>
<p>The following code gives me an error</p>
<p><code>ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 2 dimension(s) and the array at index 1 has... | [
{
"answer_id": 74468157,
"author": "Alvin",
"author_id": 9239975,
"author_profile": "https://Stackoverflow.com/users/9239975",
"pm_score": 1,
"selected": false,
"text": "let previousScrollY = 0; //Store previous scroll to detect if the next one is going up or down\n\n// When the user scr... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467833",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2056201/"
] |
74,467,834 | <p>I have no idea what would fix this.</p>
<p><a href="https://jsfiddle.net/eL5gn73s/" rel="nofollow noreferrer">https://jsfiddle.net/eL5gn73s/</a></p>
<p>That big one is a div, the small ones are the buttons that have shrunk.</p>
<p>The button should be the same size as the div, not the other way around.</p>
<p>After ... | [
{
"answer_id": 74467928,
"author": "schoolacountbygrayson",
"author_id": 20523693,
"author_profile": "https://Stackoverflow.com/users/20523693",
"pm_score": -1,
"selected": false,
"text": ".exit.exitPage2 {\n background: red;\n width: 50px;\n height: 50px;\n}\n"
},
{
"answer_... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467834",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17631451/"
] |
74,467,843 | <p>I have a table that has following text in a column and I need to convert the texts into multiple columns.</p>
<pre><code>create table Test (
resource_type varchar(300)
);
insert into Test (resource_type) values
('Number of reservations: 1'),
('Number of reservations: 2 ¶ Perf ID: Event : 51680'),
('Number of reser... | [
{
"answer_id": 74468031,
"author": "Yitzhak Khabinsky",
"author_id": 1932311,
"author_profile": "https://Stackoverflow.com/users/1932311",
"pm_score": 1,
"selected": false,
"text": "DECLARE @tbl TABLE (resource_type VARCHAR(300));\nINSERT INTO @tbl (resource_type) VALUES\n('Number of res... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2564812/"
] |
74,467,867 | <p>I've got a for loop which iterates through three elements in a list: ["123", "456", "789"].
So, with the first iteration, it will perform a calculation on each digit within the first element, then add the digits back up. This repeats for the other two elements. The outputs are then conv... | [
{
"answer_id": 74468031,
"author": "Yitzhak Khabinsky",
"author_id": 1932311,
"author_profile": "https://Stackoverflow.com/users/1932311",
"pm_score": 1,
"selected": false,
"text": "DECLARE @tbl TABLE (resource_type VARCHAR(300));\nINSERT INTO @tbl (resource_type) VALUES\n('Number of res... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467867",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20523923/"
] |
74,467,875 | <p>I may have messed up some environmental path variables.</p>
<p>I was tinkering around VS Code while learning about Django and virtual environments, and changing the directory path of my Python install. While figuring out how to point VS Code's default Python path, I deleted some User path variables.</p>
<p>Then, iso... | [
{
"answer_id": 74469210,
"author": "MingJie-MSFT",
"author_id": 18359438,
"author_profile": "https://Stackoverflow.com/users/18359438",
"pm_score": 1,
"selected": false,
"text": "C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python310\\"
}
] | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467875",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5203583/"
] |
74,467,878 | <p>Does anyone know if a function is supposed to end after it returns something?
I have my recursion function written below, but whenever it reaches the else statement and after it returns a value (steps),</p>
<p>it runs the "if (new_number % 2 == 1)" statement,</p>
<p>which does not make sense since the func... | [
{
"answer_id": 74468168,
"author": "autistic",
"author_id": 1989425,
"author_profile": "https://Stackoverflow.com/users/1989425",
"pm_score": 0,
"selected": false,
"text": "if (new_number % 2 == 0)\n{\n if (new_number != 1)\n {\n // if your intent is to control flow such tha... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467878",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524344/"
] |
74,467,888 | <p>I'm trying to work with bit manipulation, and am struggling modifying the bits directly.</p>
<p>I have something as follows:</p>
<pre><code>unsigned char myBits = 128; // 10000000 in binary
myBits = myBits >> 1; // Right shift, so we get 64, or 01000000 in binary
</code></pre>
<p>Now, how would I use bit manip... | [
{
"answer_id": 74467927,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 1,
"selected": false,
"text": "signed char myBits = (unsigned char)((signed char)myBits >> 1);\n"
},
{
"answer_id": 74468005,
"author": "... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467888",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20044158/"
] |
74,467,909 | <p>I have the following expressions -</p>
<pre><code>x > 4.5
2x + y == 4.5
</code></pre>
<p>I would like to get rid of the floating point numbers in the coefficients and convert them into integers. How can I do this using Sympy? (or any other python library for that matter). I have been racking my brains for hours n... | [
{
"answer_id": 74467927,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 1,
"selected": false,
"text": "signed char myBits = (unsigned char)((signed char)myBits >> 1);\n"
},
{
"answer_id": 74468005,
"author": "... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467909",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6790591/"
] |
74,467,918 | <p>I have problem that I have been trying to find a solution for. You would think that it wouldn't be that hard to figure out.</p>
<p>I have a pandas DataFrame with the below format:</p>
<pre><code> Id Name Now Then There Sold Needed
0 1 Caden 8.1 3.40 3.95 NaN Na... | [
{
"answer_id": 74467927,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 1,
"selected": false,
"text": "signed char myBits = (unsigned char)((signed char)myBits >> 1);\n"
},
{
"answer_id": 74468005,
"author": "... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467918",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4888870/"
] |
74,467,965 | <p>Consider the following data set that records the product sold, year, and revenue from that particular product in thousands of dollars. This data table (YEARLY_PRODUCT_REVENUE) is stored in SQL and has many more rows.</p>
<pre><code>Year | Product | Revenue
2000 Table 100
2000 Chair 200
2000 Bed ... | [
{
"answer_id": 74467927,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 1,
"selected": false,
"text": "signed char myBits = (unsigned char)((signed char)myBits >> 1);\n"
},
{
"answer_id": 74468005,
"author": "... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467965",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13630719/"
] |
74,467,984 | <p>In ASP.NET, what is the best way to display field/property names in form validation error messages in lower case?</p>
<p>For example, if I have a <code>Price</code> property on a model, and <code>Price</code> is not nullable, and I leave the <code>Price</code> field blank when filling out a form for this model, then... | [
{
"answer_id": 74467927,
"author": "dbush",
"author_id": 1687119,
"author_profile": "https://Stackoverflow.com/users/1687119",
"pm_score": 1,
"selected": false,
"text": "signed char myBits = (unsigned char)((signed char)myBits >> 1);\n"
},
{
"answer_id": 74468005,
"author": "... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467984",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524280/"
] |
74,467,997 | <p>Dataset contains "two friends" and coded "interaction" (all factors). I want to plot the frequency of type of interactions between two friends using a stacked bar. I tried the following code.</p>
<pre><code>Friend1 <- c("A","A","A","A","A",&quo... | [
{
"answer_id": 74468058,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": false,
"text": "dplyr::count geom_bar y=... stat=\"identity\" library(ggplot2)\n\nggplot(df, aes(fill = Interaction, x = Friend2)) ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467997",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6820344/"
] |
74,467,999 | <p>I was trying to convert a datetime from one timezone to another. I'm in the process of updating our Python codebase to stop relying on utilities we don't need anymore. In particular, I'm deprecating our use of <code>arrow</code> and <code>pytz</code>. In doing so, I noticed some strange behavior from <code>ZoneInfo(... | [
{
"answer_id": 74468058,
"author": "stefan",
"author_id": 12993861,
"author_profile": "https://Stackoverflow.com/users/12993861",
"pm_score": 2,
"selected": false,
"text": "dplyr::count geom_bar y=... stat=\"identity\" library(ggplot2)\n\nggplot(df, aes(fill = Interaction, x = Friend2)) ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74467999",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1267625/"
] |
74,468,019 | <p>I have two images, one is a RGB image and the other is a mask image that contains 0 and 1 to segment a specified object. (both images are of the same object)
I want to extract the RBG values of the initial image only at the indexes where the second matrix is 1, so that the final value is an image of just the object... | [
{
"answer_id": 74468239,
"author": "Yosef.Schwartz",
"author_id": 15633731,
"author_profile": "https://Stackoverflow.com/users/15633731",
"pm_score": 0,
"selected": false,
"text": "img = np.array([\n [[1,2],[3,4]],\n [[5,6],[7,8]],\n [[9,10... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468019",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524446/"
] |
74,468,026 | <p>I want to reference Azure CI Build.BuildNumber variable in my Angular app, but need a way to inject the build number into the environment file.</p>
<p>I have tried referencing the Azure environment variables but these are not replaced automatically on build.</p>
| [
{
"answer_id": 74468239,
"author": "Yosef.Schwartz",
"author_id": 15633731,
"author_profile": "https://Stackoverflow.com/users/15633731",
"pm_score": 0,
"selected": false,
"text": "img = np.array([\n [[1,2],[3,4]],\n [[5,6],[7,8]],\n [[9,10... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468026",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3530591/"
] |
74,468,037 | <p>Some values of my object are sometimes not in the domain and thus have a null value. How can I filter out the null values from this object when trying to iterate through it?</p>
<p>That's the code I wrote but it doesnt do anything.</p>
<pre><code>function enLanguage(){
let value1 = Object.values(dicEnglish);
... | [
{
"answer_id": 74468202,
"author": "Albert Logic Einstein",
"author_id": 14274392,
"author_profile": "https://Stackoverflow.com/users/14274392",
"pm_score": 0,
"selected": false,
"text": "null ! console.log(!null) // true\nconsole.log(!undefined) // true\n\nconst x = \"Hello World!\"\nco... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468037",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524425/"
] |
74,468,042 | <p>I'm trying to adjust the sizes and locations of the tiles in this DCL dialog box. Basically, I want to make the <code>edit-box</code>es in the <em>Client</em> box, <em>Job</em> box, and <em>Miscellaneous</em> box to be the same width. However, they each start at different widths due to the different sizes of the <co... | [
{
"answer_id": 74470262,
"author": "CAD Developer",
"author_id": 5796526,
"author_profile": "https://Stackoverflow.com/users/5796526",
"pm_score": 1,
"selected": false,
"text": "width = 10 ; \n fixed_width = true;\n edit_box"
},
{
"answer_id": 74476352,
"author": "Lee Mac",
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468042",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8543948/"
] |
74,468,043 | <p>My list has 12000 entries. Each entry consists of 16 columns and 8 rows.
I would like to create a data frame for every single entry. I'm interested in 3 of the 16 columns (X,Y and Z coordinates)</p>
<p>I already tried this:</p>
<pre><code>data_frame12000 <- as.data.frame(do.call(cbind, list_small_read_laz))
</cod... | [
{
"answer_id": 74470262,
"author": "CAD Developer",
"author_id": 5796526,
"author_profile": "https://Stackoverflow.com/users/5796526",
"pm_score": 1,
"selected": false,
"text": "width = 10 ; \n fixed_width = true;\n edit_box"
},
{
"answer_id": 74476352,
"author": "Lee Mac",
... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468043",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524469/"
] |
74,468,114 | <p>Issue with Google Sheets:</p>
<p>I have the CONCATENATE function combining text from several cells into 1 "copypastable" block.
I'm inserting line breaks using CHAR(10).</p>
<p><a href="https://i.stack.imgur.com/BRb9i.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BRb9i.jpg" alt="enter ... | [
{
"answer_id": 74468170,
"author": "player0",
"author_id": 5632629,
"author_profile": "https://Stackoverflow.com/users/5632629",
"pm_score": 1,
"selected": false,
"text": "={\"\"; CONCATENATE(...)}\n ..."
},
{
"answer_id": 74468252,
"author": "GC Ross",
"author_id": 99861... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468114",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3776654/"
] |
74,468,115 | <p>I am trying to implement this ear clipping algorithm (from the pseudocode) <a href="https://arxiv.org/ftp/arxiv/papers/1212/1212.6038.pdf#:%7E:text=The%20ear%20clipping%20triangulation%20algorithm,newly%20formed%20triangle%20is%20valid." rel="nofollow noreferrer">here</a> Currently at the point in the algorithm wher... | [
{
"answer_id": 74469652,
"author": "radof",
"author_id": 20349343,
"author_profile": "https://Stackoverflow.com/users/20349343",
"pm_score": 1,
"selected": true,
"text": "curr->Angle sin(Angle) u v ((u.x * v.y) - (u.y * v.x)) u ((u.x * v.y) - (u.y * v.x))"
},
{
"answer_id": 74486... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468115",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/18900864/"
] |
74,468,124 | <p>I'm trying to speed up my code and right now I have a "for" loop to sum numbers in an array. It's set up like this:</p>
<pre><code>a1=np.zeros(5)
a2=[1,2,3,4,5,6,7,8,9,10]
</code></pre>
<p>And what I want to do is sum the values of <code>a2[:5]</code> + <code>a2[5:]</code>, to end up with</p>
<pre><code>a1... | [
{
"answer_id": 74468341,
"author": "Kristian K",
"author_id": 13505403,
"author_profile": "https://Stackoverflow.com/users/13505403",
"pm_score": 0,
"selected": false,
"text": "a2 = np.array([1,2,3,4,5,6,7,8,9,10])\na1 = a2[:5] + np.roll(a2, -5)[:5]\n"
},
{
"answer_id": 74468688,... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468124",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7906642/"
] |
74,468,129 | <p>I am trying to run Pentaho Data Integration (ver. 8.3) in my Windows machine and it is not working.
These are the steps I tried to make it work:</p>
<ul>
<li>Tried rebooting the machine without success.</li>
<li>Also tried to run the <strong>Spoon.bat</strong> command directly from the directory where Pentaho is loc... | [
{
"answer_id": 74468341,
"author": "Kristian K",
"author_id": 13505403,
"author_profile": "https://Stackoverflow.com/users/13505403",
"pm_score": 0,
"selected": false,
"text": "a2 = np.array([1,2,3,4,5,6,7,8,9,10])\na1 = a2[:5] + np.roll(a2, -5)[:5]\n"
},
{
"answer_id": 74468688,... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468129",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4123038/"
] |
74,468,138 | <p>I have no idea what all of the terminology means in the Laravel/Eloquent docs for relationships like <a href="https://laravel.com/api/5.5/Illuminate/Database/Eloquent/Relations/HasOne.html" rel="nofollow noreferrer">hasOne</a> or <a href="https://laravel.com/api/5.8/Illuminate/Database/Eloquent/Relations/BelongsTo.h... | [
{
"answer_id": 74468341,
"author": "Kristian K",
"author_id": 13505403,
"author_profile": "https://Stackoverflow.com/users/13505403",
"pm_score": 0,
"selected": false,
"text": "a2 = np.array([1,2,3,4,5,6,7,8,9,10])\na1 = a2[:5] + np.roll(a2, -5)[:5]\n"
},
{
"answer_id": 74468688,... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468138",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3470632/"
] |
74,468,140 | <p>I'm trying to create an if statement in a for loop to look at an element in a list and compare it to the next element with enumerate().</p>
<pre><code>arr = ["NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST"]
liste = []
for idx,i in enume... | [
{
"answer_id": 74468198,
"author": "BrokenBenchmark",
"author_id": 17769815,
"author_profile": "https://Stackoverflow.com/users/17769815",
"pm_score": 0,
"selected": false,
"text": "i == 'WEST' and arr[idx+1] == 'EAST'\n i \"WEST\" arr[idx + 1] \"EAST\" IndexError if IndexError from iter... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468140",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524551/"
] |
74,468,174 | <p>How to turn two subscribe into one? Do I need to use any rxjs operator?</p>
<pre><code>ngOnInit(){
this.aService.aa.subscribe((data) => {
this.data = data;
this.bService.bb.subscribe(data => {
this.data2 = data.map(AA.AAFromDefinition);
});
});
}
</code></pre>
| [
{
"answer_id": 74468198,
"author": "BrokenBenchmark",
"author_id": 17769815,
"author_profile": "https://Stackoverflow.com/users/17769815",
"pm_score": 0,
"selected": false,
"text": "i == 'WEST' and arr[idx+1] == 'EAST'\n i \"WEST\" arr[idx + 1] \"EAST\" IndexError if IndexError from iter... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20211948/"
] |
74,468,188 | <p>I'm working on an assignment for my introduction to SQL class and have been having trouble getting certain information to output correctly.</p>
<pre><code>CREATE TABLE PRODUCT(
ProductID CHAR(5) NOT NULL,
ProductName CHAR(20) NOT NULL,
ProductPrice MONEY NOT NULL,
VendorID ... | [
{
"answer_id": 74468198,
"author": "BrokenBenchmark",
"author_id": 17769815,
"author_profile": "https://Stackoverflow.com/users/17769815",
"pm_score": 0,
"selected": false,
"text": "i == 'WEST' and arr[idx+1] == 'EAST'\n i \"WEST\" arr[idx + 1] \"EAST\" IndexError if IndexError from iter... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468188",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524578/"
] |
74,468,211 | <p>I know I could iteratively pop the elements into an array, but would prefer to directly cast it if possible.</p>
| [
{
"answer_id": 74468198,
"author": "BrokenBenchmark",
"author_id": 17769815,
"author_profile": "https://Stackoverflow.com/users/17769815",
"pm_score": 0,
"selected": false,
"text": "i == 'WEST' and arr[idx+1] == 'EAST'\n i \"WEST\" arr[idx + 1] \"EAST\" IndexError if IndexError from iter... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468211",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/7674028/"
] |
74,468,280 | <p>I am trying to build a Dataproc cluster, with Spark NLP installed in it, then quick test it by reading some CoNLL 2003 data. First, I used this <a href="https://codelabs.developers.google.com/codelabs/spark-nlp#3" rel="nofollow noreferrer">codelab</a> as inspiration, to build my own smaller cluster (<code>project</c... | [
{
"answer_id": 74468198,
"author": "BrokenBenchmark",
"author_id": 17769815,
"author_profile": "https://Stackoverflow.com/users/17769815",
"pm_score": 0,
"selected": false,
"text": "i == 'WEST' and arr[idx+1] == 'EAST'\n i \"WEST\" arr[idx + 1] \"EAST\" IndexError if IndexError from iter... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468280",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16706763/"
] |
74,468,289 | <p>Lets say I have two arrays as follows:</p>
<pre><code>const A = ['Mo', 'Tu', 'We', 'Thu', 'Fr']
const B = ['Mo', 'Mo', 'Mo', 'Tu', 'Thu', 'Fr', 'Sa']
</code></pre>
<p>I want to subtract array A from array B. With the result looking like this:</p>
<pre><code>const result = ['Mo', 'Mo', 'Sa']
</code></pre>
<p>How can ... | [
{
"answer_id": 74468402,
"author": "Mauricio Cárdenas",
"author_id": 7560262,
"author_profile": "https://Stackoverflow.com/users/7560262",
"pm_score": -1,
"selected": false,
"text": "const A = ['Mo', 'Tu', 'We', 'Thu', 'Fr']\nconst B = ['Mo', 'Mo', 'Mo', 'Tu', 'Thu', 'Fr', 'Sa']\nlet res... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468289",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5203853/"
] |
74,468,321 | <p>I have an issue where I'm attempting to order multiple distinct streams from a time series database. Assuming that all the data in each stream is sorted by timestamp, given the following code how would I modify streams <code>dataA$</code> and <code>dataB$</code> such that each of them emitted values in order of the ... | [
{
"answer_id": 74468402,
"author": "Mauricio Cárdenas",
"author_id": 7560262,
"author_profile": "https://Stackoverflow.com/users/7560262",
"pm_score": -1,
"selected": false,
"text": "const A = ['Mo', 'Tu', 'We', 'Thu', 'Fr']\nconst B = ['Mo', 'Mo', 'Mo', 'Tu', 'Thu', 'Fr', 'Sa']\nlet res... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468321",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2832365/"
] |
74,468,338 | <p>I'm coding this password manager program and keep getting this error message when I use the view function:</p>
<pre><code> File "c:\Users\user\Desktop\password_manager.py", line 7, in view
user, passw = data.split("|")
ValueError: too many values to unpack (expected 2)
</code></pre>
<p>Thi... | [
{
"answer_id": 74468402,
"author": "Mauricio Cárdenas",
"author_id": 7560262,
"author_profile": "https://Stackoverflow.com/users/7560262",
"pm_score": -1,
"selected": false,
"text": "const A = ['Mo', 'Tu', 'We', 'Thu', 'Fr']\nconst B = ['Mo', 'Mo', 'Mo', 'Tu', 'Thu', 'Fr', 'Sa']\nlet res... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468338",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/13119431/"
] |
74,468,369 | <p>I have a simple Python program with multiple functions that displays a menu, takes an input, loops through and formats a CSV file then outputs information from that CSV file based on the user's input.</p>
<p>The Menu options look like</p>
<pre class="lang-none prettyprint-override"><code>1: Call menu again
2: Create... | [
{
"answer_id": 74468543,
"author": "thebjorn",
"author_id": 75103,
"author_profile": "https://Stackoverflow.com/users/75103",
"pm_score": 0,
"selected": false,
"text": "while True:\n ...\n def main():\n banner()\n while True:\n choice = menu()\n assert isinstance(c... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468369",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524598/"
] |
74,468,377 | <p>I'm trying to deserialize a JSON response from an API and get the NAME of what in this example is "af" (country code of Afghanistan) inside "iso", but the name of the field will be different everytime based on the country code, how can i read the name of the field and retrieve each country code i... | [
{
"answer_id": 74468565,
"author": "Babak Naffas",
"author_id": 120753,
"author_profile": "https://Stackoverflow.com/users/120753",
"pm_score": 1,
"selected": false,
"text": "iso"
},
{
"answer_id": 74468773,
"author": "Guru Stron",
"author_id": 2501279,
"author_profil... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468377",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524613/"
] |
74,468,404 | <p>Here is the code:</p>
<pre><code>string[] wordsX ={"word1", "word2","word3"}
</code></pre>
<p>with foreach loop want to get the item value and pass to a label</p>
<pre><code>foreach (string w in wordsX)
{
Label1.Text = w[1].ToString();
Label... | [
{
"answer_id": 74468565,
"author": "Babak Naffas",
"author_id": 120753,
"author_profile": "https://Stackoverflow.com/users/120753",
"pm_score": 1,
"selected": false,
"text": "iso"
},
{
"answer_id": 74468773,
"author": "Guru Stron",
"author_id": 2501279,
"author_profil... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468404",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20465780/"
] |
74,468,433 | <p>I have the following code to get users from a group:</p>
<pre><code>var response = await graphClient
.Groups[groupId]
.TransitiveMembers
.Request()
.Top(999)
... | [
{
"answer_id": 74468697,
"author": "vicky kumar",
"author_id": 18106676,
"author_profile": "https://Stackoverflow.com/users/18106676",
"pm_score": -1,
"selected": false,
"text": ""
},
{
"answer_id": 74477437,
"author": "user2250152",
"author_id": 2250152,
"author_prof... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468433",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3693060/"
] |
74,468,434 | <pre><code>String abc = "ABC\n\rDEF\rGHI\nJKL\n\rMNO\r\tPQR\t";
String cde = abc.replaceAll("[^\n]\r[^\t]", "\n\r");
System.out.println(cde);
</code></pre>
<p>The \r should be not be surrounded by \n or \t. For instance, I do not want to replace \n\r to \n\n\r.</p>
<p>Expected: "ABC\n... | [
{
"answer_id": 74468697,
"author": "vicky kumar",
"author_id": 18106676,
"author_profile": "https://Stackoverflow.com/users/18106676",
"pm_score": -1,
"selected": false,
"text": ""
},
{
"answer_id": 74477437,
"author": "user2250152",
"author_id": 2250152,
"author_prof... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468434",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524726/"
] |
74,468,435 | <p>I apologize if the redaction of my problem is not good.</p>
<p>Code I'm running:</p>
<pre><code>x=int(input("Escribe cantidad de artículos deseas comprar: "))
suma=0
seleccion=0
precio=0
while x>0:
seleccion=(input("Dame el nombre de un artículo que deseas comprar: "))
precio=int(inpu... | [
{
"answer_id": 74468697,
"author": "vicky kumar",
"author_id": 18106676,
"author_profile": "https://Stackoverflow.com/users/18106676",
"pm_score": -1,
"selected": false,
"text": ""
},
{
"answer_id": 74477437,
"author": "user2250152",
"author_id": 2250152,
"author_prof... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468435",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524743/"
] |
74,468,449 | <p>How can I write the output of a bash script to another file based on a condition in the script? for example, I need something like this</p>
<pre><code>writeToFile=false
read -p "Enter (1-4): "
echo "foo"
if [ $REPLY == "1" ]; then
echo "writing to file"
writeToFile=true
... | [
{
"answer_id": 74468473,
"author": "Diego Torres Milano",
"author_id": 236465,
"author_profile": "https://Stackoverflow.com/users/236465",
"pm_score": 1,
"selected": false,
"text": "file='/dev/null'\nif [[ \"$writeToFile\" == true ]]; then\n file='file.txt'\nfi\n\n{\n...\n} | tee -a \"$... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468449",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14040069/"
] |
74,468,471 | <p>I need help with processing an unsorted dataset. Sry, if I am a complete noob. I never did anything like that before. So as you can see, each conversation is identified by a dialogueID which consists of multiple rows of "from" & "to", as well as text messages.
I would like to concatenate the... | [
{
"answer_id": 74468539,
"author": "Nazar Nintendo",
"author_id": 20524194,
"author_profile": "https://Stackoverflow.com/users/20524194",
"pm_score": 2,
"selected": true,
"text": "dialogueID d = {}\nd['from'] = '\\n'.join\nd['to'] = '\\n'.join\nnew_df = dialogue_dataframe.groupby('dialog... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468471",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8789802/"
] |
74,468,493 | <p>Getting this error on mobile safari:</p>
<pre class="lang-js prettyprint-override"><code>Fetch API cannot load https://firestore.googleapis.com/google.firestore.v1.Firestore/Write/channel?gsessionid=&database=&RID=&AID&TYPE=xmlhttp&zx=&t=1 due to access control checks.
</code></pre>
<p>(I str... | [
{
"answer_id": 74468539,
"author": "Nazar Nintendo",
"author_id": 20524194,
"author_profile": "https://Stackoverflow.com/users/20524194",
"pm_score": 2,
"selected": true,
"text": "dialogueID d = {}\nd['from'] = '\\n'.join\nd['to'] = '\\n'.join\nnew_df = dialogue_dataframe.groupby('dialog... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468493",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9573055/"
] |
74,468,500 | <p>I am having a little trouble with the logic of this sql, I don't know why it's given me an error but the error is at line 4 "the start of the first AND". What I am trying to do is to check if the given start and end time are valid to book a room. I wanna show the user all the bookings that will overlap wit... | [
{
"answer_id": 74468797,
"author": "N69S",
"author_id": 4369919,
"author_profile": "https://Stackoverflow.com/users/4369919",
"pm_score": 2,
"selected": true,
"text": "$time[0] $time[1] $startingTime = $time[0];\n$endingTime = $time[1];\n$bookings = Booking::where('room_id', $room_id)\n ... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468500",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20477829/"
] |
74,468,510 | <p>Idk if what I said makes sense, if not, here's an example of what I mean:</p>
<p>I created a method which performs "scalar-matrix" multiplication, aka every element of a 2d array gets multiplied by a scalar (by a decimal). Now, it doesn't matter if you do array * decimal or decimal * array, either way you ... | [
{
"answer_id": 74468612,
"author": "Idle_Mind",
"author_id": 2330053,
"author_profile": "https://Stackoverflow.com/users/2330053",
"pm_score": 3,
"selected": true,
"text": "public static double[,] ScalarMatrixMult(double n, double[,] A)\n{\n return ScalarMatrixMult(A, n);\n}\n \npubli... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468510",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15323416/"
] |
74,468,520 | <p>I'm in the process of using Google Sheets to make a Secret Santa Generator, but have come across a problem that I can't seem to get around. How do you ensure that people aren't given a giftee that is part of the same family group?</p>
<p>Currently I have a working system that looks at the first names of people and ... | [
{
"answer_id": 74468716,
"author": "Martín",
"author_id": 20363318,
"author_profile": "https://Stackoverflow.com/users/20363318",
"pm_score": 0,
"selected": false,
"text": "=byrow(B2:B,lambda(each,if(each=\"\",\"\",if(REGEXEXTRACT(each,\"\\s+[^\\s]+\")=REGEXEXTRACT(offset(each,0,3),\"\\s... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468520",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/12147587/"
] |
74,468,560 | <p>We are trying to use asyncio to run a straightforward client/server. The server is an echo server with two possible commands sent by the client, <em>"quit"</em> and <em><strong>"timer"</strong></em>. The <strong>timer</strong> command starts a timer that will print a message in the console every ... | [
{
"answer_id": 74482040,
"author": "nunodsousa",
"author_id": 3152047,
"author_profile": "https://Stackoverflow.com/users/3152047",
"pm_score": 0,
"selected": false,
"text": "import asyncio\nimport websockets\nimport time\n\nclass Timer(object):\n '''Simple timer class that can be sta... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468560",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3152047/"
] |
74,468,594 | <p>i use the following regex to extract values that appear before certain units:</p>
<pre><code>([.\d]+)\s*(?:kg|gr|g)
</code></pre>
<p>What i want, is to include the unit of that specific value
for example from this string :</p>
<pre><code>"some text 5kg another text 3 g more text 11.5gr end"
</code></pre>
<... | [
{
"answer_id": 74468635,
"author": "Ricardo",
"author_id": 16353662,
"author_profile": "https://Stackoverflow.com/users/16353662",
"pm_score": 3,
"selected": true,
"text": "import re\n\np = re.compile('(?<!\\d|\\.)\\d+(?:\\.\\d+)?\\s*?(?:gr|kg|g)(?!\\w)')\nprint(p.findall(\"some text 5kg... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468594",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4028670/"
] |
74,468,611 | <p>I am currently attempting to extend test coverage for a school-based-assignment web application after I came across a completely empty class that extends Exception and contains no coverage according to the coverage report.</p>
<p>Normally, I would assume that something like this could be disregarded. However, our ov... | [
{
"answer_id": 74468940,
"author": "Wry S.",
"author_id": 11137318,
"author_profile": "https://Stackoverflow.com/users/11137318",
"pm_score": 0,
"selected": false,
"text": "new BadRequestException() package <package_name>;\n\nimport org.junit.jupiter.api.Test;\nimport org.junit.jupiter.a... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468611",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11137318/"
] |
74,468,624 | <p>Taking into account your past answers, I've changed for the following:</p>
<pre><code>n <- 100
B <- 20
S <- 50
alpha <- 0.3
beta <- 1.2
theta <- alpha*beta
for (i in 1:S) {
###
sim_original_samples <- rgamma(n, alpha, beta) # for each S, we have a sample of 100 observat... | [
{
"answer_id": 74468940,
"author": "Wry S.",
"author_id": 11137318,
"author_profile": "https://Stackoverflow.com/users/11137318",
"pm_score": 0,
"selected": false,
"text": "new BadRequestException() package <package_name>;\n\nimport org.junit.jupiter.api.Test;\nimport org.junit.jupiter.a... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468624",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16161960/"
] |
74,468,644 | <p>I'm trying to solve a practice problem in JS and the idea of it is to use some methods and to make it the most efficient way as possible.</p>
<p><strong>The problem:</strong></p>
<p>I have to find how many times I can form the word <em>DOGGY</em> inside a given string of uppercase letters.</p>
<p>For examples:</p>
<... | [
{
"answer_id": 74468743,
"author": "172d042d",
"author_id": 4566840,
"author_profile": "https://Stackoverflow.com/users/4566840",
"pm_score": 1,
"selected": false,
"text": " function findPhrase(input, searchedPhrase) {\n const inputWithSearchedPhraseLettersOnly = [...input].fil... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468644",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524847/"
] |
74,468,646 | <p>I have a pandas dataframe in python that I want to remove rows that contain letters in a certain column. I have tried a few things, but nothing has worked.</p>
<p>Input:</p>
<p><code> A B C</code><br />
<code>0 9 1 a</code><br />
<code>1 8 2 b</code><br />
<code>2 7 cat c</code><br... | [
{
"answer_id": 74468669,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "B str.contains df[~df[\"B\"].str.contains(r'^[A-Za-z]+$', regex=True)]\n"
},
{
"answer_id": 74468847... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468646",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/16140906/"
] |
74,468,662 | <p>I've cleaned up my code a bit according to some great recommendations from the community. However I still get the error. All of my close disclosing the error message is posted below the error message. Hopefully this is correctly formatted; I greatly appreciate the help of this community.</p>
<pre><code>DELETING STUD... | [
{
"answer_id": 74468669,
"author": "Tim Biegeleisen",
"author_id": 1863229,
"author_profile": "https://Stackoverflow.com/users/1863229",
"pm_score": 2,
"selected": false,
"text": "B str.contains df[~df[\"B\"].str.contains(r'^[A-Za-z]+$', regex=True)]\n"
},
{
"answer_id": 74468847... | 2022/11/16 | [
"https://Stackoverflow.com/questions/74468662",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524919/"
] |
74,468,667 | <p>I am trying to create a table that would imitate the following table from excel.
<a href="https://i.stack.imgur.com/RSdjI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RSdjI.png" alt="enter image description here" /></a></p>
<p>My Data is:
Col1 Col2 Col3
A Red Cheetah
A Red Cheetah
A ... | [
{
"answer_id": 74469751,
"author": "Jason Baker",
"author_id": 3249641,
"author_profile": "https://Stackoverflow.com/users/3249641",
"pm_score": 2,
"selected": true,
"text": "df = pd.crosstab(\n index=[df.Col1, df.Col3],\n columns=df.Col2,\n rownames=[\"Row Labels\", \"Column La... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468667",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15684836/"
] |
74,468,668 | <p>I am new to flask and I was trying to make GET request for url containing "?" symbol but it look like my program is just skipping work with it. I am working with flask-sql alchemy, flask and flask-restful. Some simplified look of my program looks like this:</p>
<pre><code>fields_list = ['id']
db = SQLAlch... | [
{
"answer_id": 74469751,
"author": "Jason Baker",
"author_id": 3249641,
"author_profile": "https://Stackoverflow.com/users/3249641",
"pm_score": 2,
"selected": true,
"text": "df = pd.crosstab(\n index=[df.Col1, df.Col3],\n columns=df.Col2,\n rownames=[\"Row Labels\", \"Column La... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468668",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17394781/"
] |
74,468,671 | <p>Here's my script:</p>
<pre><code>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GoToMouse : MonoBehaviour
{
private Transform tf;
private bool Selected = false;
// Start is called before the first frame update
void Start()
{
tf = GetCompone... | [
{
"answer_id": 74469751,
"author": "Jason Baker",
"author_id": 3249641,
"author_profile": "https://Stackoverflow.com/users/3249641",
"pm_score": 2,
"selected": true,
"text": "df = pd.crosstab(\n index=[df.Col1, df.Col3],\n columns=df.Col2,\n rownames=[\"Row Labels\", \"Column La... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468671",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524903/"
] |
74,468,681 | <p>I am trying to serve a PDF file as a ContentResult in my web API. I have tried to return the PDF payload as an <code><iframe></code> and as an <code><object></code>. However, the base64 encoded data string is too long I believe and neither one loads the PDF file. I want to return a PDF file without forci... | [
{
"answer_id": 74469751,
"author": "Jason Baker",
"author_id": 3249641,
"author_profile": "https://Stackoverflow.com/users/3249641",
"pm_score": 2,
"selected": true,
"text": "df = pd.crosstab(\n index=[df.Col1, df.Col3],\n columns=df.Col2,\n rownames=[\"Row Labels\", \"Column La... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468681",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/19831782/"
] |
74,468,702 | <h1>Description of Issue</h1>
<p>I was reviewing my code for one of my projects when I noticed that one of my function's name is coloured green while all of the other functions are yellow.</p>
<p><a href="https://i.stack.imgur.com/mXMT1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mXMT1.png" alt="... | [
{
"answer_id": 74468918,
"author": "Peter B",
"author_id": 1220550,
"author_profile": "https://Stackoverflow.com/users/1220550",
"pm_score": 1,
"selected": false,
"text": "const function toggleRead(e) {\n const toggleRead = (e) => {\n bind this.toggleRead = this.toggleRead.bind(this); th... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468702",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2665812/"
] |
74,468,709 | <p><strong>Details:</strong></p>
<ol>
<li><p>Given a string <code>s</code> that contains <code>words.</code> I am also given <code>spaces</code> which specifies the number of extra spaces to add between words.</p>
</li>
<li><p>The number of <code>spots</code> will be <code>len(words)-1.</code></p>
</li>
<li><p>If <code... | [
{
"answer_id": 74468775,
"author": "Nazar Nintendo",
"author_id": 20524194,
"author_profile": "https://Stackoverflow.com/users/20524194",
"pm_score": 1,
"selected": false,
"text": "def solution(s, spaces):\n words = s.split(\" \")\n spots = len(words) - 1\n n_spaces = spaces // ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468709",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5632400/"
] |
74,468,720 | <p>I have a csv file (separated by comma), which contains</p>
<pre><code>file1a.extension.extension,file1b.extension.extension
file2a.extension.extension,file2b.extension.extension
</code></pre>
<p>Problem is, these files are name such as file.extension.extension</p>
<p>I'm trying to feed both columns to parallel and r... | [
{
"answer_id": 74468775,
"author": "Nazar Nintendo",
"author_id": 20524194,
"author_profile": "https://Stackoverflow.com/users/20524194",
"pm_score": 1,
"selected": false,
"text": "def solution(s, spaces):\n words = s.split(\" \")\n spots = len(words) - 1\n n_spaces = spaces // ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468720",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11279262/"
] |
74,468,730 | <p>I would like to get the xml value of an element in ElementTree. For example, if I had the code:</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" encoding="UTF-8"?>
<item>
<child>asd</child>
hello world
<ch>jkl</ch>
</item>
</code><... | [
{
"answer_id": 74468775,
"author": "Nazar Nintendo",
"author_id": 20524194,
"author_profile": "https://Stackoverflow.com/users/20524194",
"pm_score": 1,
"selected": false,
"text": "def solution(s, spaces):\n words = s.split(\" \")\n spots = len(words) - 1\n n_spaces = spaces // ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468730",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/14257302/"
] |
74,468,752 | <p>I'm trying to use the <a href="https://learn.microsoft.com/en-us/microsoftteams/export-teams-content" rel="nofollow noreferrer">Teams Export API</a> to export a single Teams channel. I have my permissions set up properly; if I make a request to
<code>https://graph.microsoft.com/v1.0/teams/{TEAM_ID}/channels/getAllMe... | [
{
"answer_id": 74468775,
"author": "Nazar Nintendo",
"author_id": 20524194,
"author_profile": "https://Stackoverflow.com/users/20524194",
"pm_score": 1,
"selected": false,
"text": "def solution(s, spaces):\n words = s.split(\" \")\n spots = len(words) - 1\n n_spaces = spaces // ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468752",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3692994/"
] |
74,468,759 | <p>Turn the four rings so that the sums of each four of the numbers that are located along the same radius are the same. Find what they are equal to?
<a href="https://i.stack.imgur.com/q0naU.png" rel="nofollow noreferrer">problem image</a></p>
<p>We can do it by <strong>Brute Force</strong> method but it will be dummy ... | [
{
"answer_id": 74469428,
"author": "Olafus",
"author_id": 20524946,
"author_profile": "https://Stackoverflow.com/users/20524946",
"pm_score": 2,
"selected": true,
"text": "def find_radius(*args):\n arr = []\n for i in range(0, len(args[0])):\n sum_radius = args[0][i] + args[... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468759",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524946/"
] |
74,468,784 | <p>Hi I have a question about iterating through a list and adding items and their frequency within the list to a dictionary.</p>
<pre><code>i = ['apple','pear','red','apple','red','red','pear','pear','pear']
d = {x:i.count(x) for x in i}
print (d)
</code></pre>
<p>outputs</p>
<pre><code>
{'pear': 4, 'apple': 2, 'red':... | [
{
"answer_id": 74468804,
"author": "Ricardo",
"author_id": 16353662,
"author_profile": "https://Stackoverflow.com/users/16353662",
"pm_score": 0,
"selected": false,
"text": "i = ['apple','pear','red','apple','red','red','pear', 'pear', 'pear']\nd = {} \nlog = []\nfor x in i: \n log.ap... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468784",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525041/"
] |
74,468,789 | <p>Let's say I have the following dictionary:</p>
<pre><code>full_dic = {
'aa': 1,
'ac': 1,
'ab': 1,
'ba': 2,
...
}
</code></pre>
<p>I normally use standard dictionary comprehension to remove dupes like:</p>
<pre><code>t = {val : key for (key, val) in full_dic.items()}
cleaned_dic = {val : key for (key, val) ... | [
{
"answer_id": 74468804,
"author": "Ricardo",
"author_id": 16353662,
"author_profile": "https://Stackoverflow.com/users/16353662",
"pm_score": 0,
"selected": false,
"text": "i = ['apple','pear','red','apple','red','red','pear', 'pear', 'pear']\nd = {} \nlog = []\nfor x in i: \n log.ap... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468789",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3894471/"
] |
74,468,794 | <p>I'm having trouble connecting to my DropBox account via <code>TIdHTTP</code> and I don't know what to do anymore. I want to send a simple text file to DropBox in the first stage.</p>
<pre><code>procedure TForm2.btn1Click(Sender: TObject);
const
API_URL = 'https://content.dropboxapi.com/2/files/upload';
cFile =... | [
{
"answer_id": 74468804,
"author": "Ricardo",
"author_id": 16353662,
"author_profile": "https://Stackoverflow.com/users/16353662",
"pm_score": 0,
"selected": false,
"text": "i = ['apple','pear','red','apple','red','red','pear', 'pear', 'pear']\nd = {} \nlog = []\nfor x in i: \n log.ap... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468794",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/11147396/"
] |
74,468,826 | <p>For each unique record ID, return the most recent record of type Y iff there is a more recent record of type X</p>
<p>To make explaining easier I will put the records sorted by EventDate descending and look only at specific record ID's. (Most recent at the top.)</p>
<p><strong>Case 1</strong></p>
<div class="s-table... | [
{
"answer_id": 74469191,
"author": "JHH",
"author_id": 20127235,
"author_profile": "https://Stackoverflow.com/users/20127235",
"pm_score": 0,
"selected": false,
"text": "create table event (\n id int,\n event_date date,\n type char(1));\n \n\ninsert into even... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468826",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524948/"
] |
74,468,841 | <p>I am trying to create a HTML program that can put the selected item from the dropdown created from the <code><select></code> and <code><option></code> scripts into a .txt file. The file is on Replit, so assume the text file already exists. This is my code, so far:</p>
<p>`</p>
<pre><code><!DOCTYPE htm... | [
{
"answer_id": 74469191,
"author": "JHH",
"author_id": 20127235,
"author_profile": "https://Stackoverflow.com/users/20127235",
"pm_score": 0,
"selected": false,
"text": "create table event (\n id int,\n event_date date,\n type char(1));\n \n\ninsert into even... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468841",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20413110/"
] |
74,468,843 | <p>I am doing deploys from specific machines. These are the same machines
being used for development. This situation can cause some problems
since the environment variables desired for deploys can be different
from the ones to be used for development!</p>
<p>When the engineer is developing, it is useful to have a <code... | [
{
"answer_id": 74469191,
"author": "JHH",
"author_id": 20127235,
"author_profile": "https://Stackoverflow.com/users/20127235",
"pm_score": 0,
"selected": false,
"text": "create table event (\n id int,\n event_date date,\n type char(1));\n \n\ninsert into even... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468843",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9113679/"
] |
74,468,869 | <p>I have a non-uniform list as follows:</p>
<pre><code>[['E', 'A', 'P'],
['E', 'A', 'X', 'P'],
['E', 'A', 'P'],
['P'],
['E', 'A', 'X', 'P'],
['E', 'A', 'P'],
['A', 'X', 'P'],
['E', 'A', 'P'],
['E', 'A', 'P'],
['E', 'A', 'X', 'P'],
['E', 'A', 'P'],
['E', 'A', 'P'],
['A', 'X', 'P'],
</code></pre>
<p>I would ... | [
{
"answer_id": 74468901,
"author": "Andrej Kesely",
"author_id": 10035985,
"author_profile": "https://Stackoverflow.com/users/10035985",
"pm_score": 2,
"selected": true,
"text": "lst = [\n [\"E\", \"A\", \"P\"],\n [\"E\", \"A\", \"X\", \"P\"],\n [\"E\", \"A\", \"P\"],\n [\"P\... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468869",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2809834/"
] |
74,468,911 | <p>I would like to have a piece of JS which loops through a list-item series and for each list-item, it stores a unique attribute value (in this case, the href) and then inserts it as a data attribute to another element within the same list-item (in this case, the button). The JS which I have only applies the desired e... | [
{
"answer_id": 74468973,
"author": "nrodic",
"author_id": 551322,
"author_profile": "https://Stackoverflow.com/users/551322",
"pm_score": 3,
"selected": true,
"text": "forEach() node.querySelector() document.querySelector() document.querySelector() node.querySelector() node node forEach(... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468911",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/15039096/"
] |
74,468,931 | <p>For example I have enitity Event with fields name, description etc. And then I want to add new field String "photo" that will be reference to a photo. So it is easy to add new field to entity, Hibernate will update the table of entity Event.</p>
<p>Also I have POSTmethod saveEvent(Event event) in EventRest... | [
{
"answer_id": 74468973,
"author": "nrodic",
"author_id": 551322,
"author_profile": "https://Stackoverflow.com/users/551322",
"pm_score": 3,
"selected": true,
"text": "forEach() node.querySelector() document.querySelector() document.querySelector() node.querySelector() node node forEach(... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468931",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/17655569/"
] |
74,468,933 | <p>I have an orleans project with a stateful grain.</p>
<p>Orleans seems to not deserialize private properties when hydrating the state for the grain.</p>
<p>In the image below UserId gets deserialized but not State.</p>
<p>Is there a way to get around this?</p>
<p><a href="https://i.stack.imgur.com/uZgf9.png" rel="nof... | [
{
"answer_id": 74572992,
"author": "Kobus Pelser",
"author_id": 9382623,
"author_profile": "https://Stackoverflow.com/users/9382623",
"pm_score": 3,
"selected": true,
"text": "public class Order\n{\n [JsonInclude]\n public OrderStates State{ get; private set; }\n}\n public class Sy... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468933",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/834815/"
] |
74,468,944 | <p>t1:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>AccountName</th>
<th>Date</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td>A1</td>
<td>2022-06-30</td>
<td>2</td>
</tr>
<tr>
<td>A2</td>
<td>2022-06-30</td>
<td>1</td>
</tr>
<tr>
<td>A3</td>
<td>2022-06-30</td>
<td></td>
</tr>
<tr>
... | [
{
"answer_id": 74469093,
"author": "Gerballi",
"author_id": 20358885,
"author_profile": "https://Stackoverflow.com/users/20358885",
"pm_score": 0,
"selected": false,
"text": "update t1 t1update\nset amount = (\n select sum(amount) from t1 \n where \n extract(year from t1update.date dat... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468944",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20524832/"
] |
74,468,954 | <p>I'm very new to programming, only started learning python ~4 days ago and I'm having trouble figuring out how to print a user input as a string, in between other strings on the same line. Being so new to programming, I feel like the answer is staring me right in the face but I don't have the tools or the knowledge t... | [
{
"answer_id": 74468983,
"author": "Yogesh Thambidurai",
"author_id": 18944758,
"author_profile": "https://Stackoverflow.com/users/18944758",
"pm_score": 0,
"selected": false,
"text": "name = input(\"Name? \")\n\nprint(\"Wow\")\nprint(name)\nprint(\"that's cool\")\n |\n ... | 2022/11/17 | [
"https://Stackoverflow.com/questions/74468954",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/20525083/"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.