Id int64 4 8.51M | PostTypeId int64 1 7 | AcceptedAnswerId int64 7 75.5M ⌀ | ParentId int64 4 41.8M ⌀ | Score int64 -208 27.7k | ViewCount int64 11 12.4M ⌀ | Body stringlengths 0 45k | Title stringlengths 2 150 ⌀ | ContentLicense stringclasses 3
values | FavoriteCount int64 0 225 ⌀ | CreationDate stringdate 2008-07-31 21:42:52 2011-12-14 18:48:47 | LastActivityDate stringdate 2008-08-01 12:19:17 2023-03-05 04:40:26 | LastEditDate stringdate 2008-08-01 13:54:25 2023-03-05 03:12:45 ⌀ | LastEditorUserId int64 -1 21.3M ⌀ | OwnerUserId int64 -1 21.1M ⌀ | Tags listlengths 1 6 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,631,136 | 1 | null | null | 0 | 15 | I am trying to set up my first proper website and I am trying to use the spotify API to make a working webplayer.
The Player itself is working, my only problem is that with my current code the website either reloads in a loop or my authentication script isn't recognised.
My only problem is to get the accessToken from t... | How can I add the spotify Accesstoken into my spotify web player? | CC BY-SA 4.0 | null | 2023-03-03T19:24:56.607 | 2023-03-03T19:24:56.607 | null | null | 21,328,169 | [
"javascript",
"reactjs",
"api",
"react-hooks",
"spotify"
] |
75,631,148 | 2 | null | 75,613,668 | 0 | null | Unfortunately that’s not possible at the moment. A lot of people rely on init containers to set-up their workloads and often these init containers have to make network calls. Running them after linkerd-init would result in an error since redirect rules would force traffic through the proxy’s listener (which is not yet ... | null | CC BY-SA 4.0 | null | 2023-03-03T19:26:22.460 | 2023-03-03T19:26:48.830 | 2023-03-03T19:26:48.830 | 7,070,273 | 7,070,273 | null |
75,631,152 | 2 | null | 74,016,457 | 0 | null | It is supported. The documentation you are pointing to refers to how flaskrestful represents data. (output). Not how it receives data.
Here is a link to a similar problem (IMO)
[Convert werkzeug.datastructures.FileStorage to list of lists for flask backend](https://stackoverflow.com/questions/68081802/convert-werkzeug-... | null | CC BY-SA 4.0 | null | 2023-03-03T19:26:33.217 | 2023-03-03T19:26:33.217 | null | null | 21,328,221 | null |
75,631,153 | 2 | null | 75,630,889 | 2 | null | Every command has to be named in lowercase.
| null | CC BY-SA 4.0 | null | 2023-03-03T19:26:34.360 | 2023-03-03T19:26:34.360 | null | null | 14,119,794 | null |
75,631,150 | 2 | null | 75,631,096 | 2 | null | `User` will not be updated until the next render, so it will not change from the initial value in that hook. Instead, you should make `getUser` return the user as well, then check based on that. Something like this should work:
```
useEffect(
async () => {
const newUser = await getUser();
if (newUser ==... | null | CC BY-SA 4.0 | null | 2023-03-03T19:26:25.827 | 2023-03-03T19:27:58.753 | 2023-03-03T19:27:58.753 | 6,911,703 | 6,911,703 | null |
75,631,156 | 2 | null | 74,062,144 | 0 | null | Just a little correction from the last answer of Grasshopper_NZ
DiagrammeR::(diagram = results)
| null | CC BY-SA 4.0 | null | 2023-03-03T19:27:08.163 | 2023-03-03T19:27:08.163 | null | null | 14,051,700 | null |
75,631,157 | 1 | null | null | -2 | 26 | I am trying to import an Excel file into a SQL Server database in Microsoft SQL Server Management Studio.
When I click the SQL Server Import and Export wizard [server import and export wizard](https://i.stack.imgur.com/q8lit.png)
this error happens:

Do you know what can lea... | Error while importing Excel file into SQL Server database | CC BY-SA 4.0 | null | 2023-03-03T19:27:32.793 | 2023-03-05T05:13:49.063 | 2023-03-03T19:41:58.167 | 13,302 | 21,327,930 | [
"sql-server",
"ssms"
] |
75,631,149 | 2 | null | 75,630,389 | 0 | null | One option would be to use facetting, i.e. facet by `Var1` and `Var2`, map your seasons on "x" and "y" and use some styling to get rid of the axes and süacing between the panels:
```
library(ggplot2)
library(dplyr)
set.seed(123)
all.dat1 <- all.dat |>
mutate(
x = if_else(Season %in% paste0("season", c(1, 3)), ... | null | CC BY-SA 4.0 | null | 2023-03-03T19:26:23.660 | 2023-03-03T19:33:14.430 | 2023-03-03T19:33:14.430 | 12,993,861 | 12,993,861 | null |
75,631,151 | 1 | 75,631,419 | null | 0 | 41 | I'm trying to pattern match when a file doesn't exist, wherein it would be created and then returned but the compiler is expecting '()', I'm not sure how to get it to expect the correct return type of File.
```
let mut file = match File::open(&path) {
Err(_) => match File::create(&path) {
Err(e) => panic!("... | Rust Type mismatch when pattern matching on File::create() | CC BY-SA 4.0 | null | 2023-03-03T19:26:26.663 | 2023-03-04T20:36:04.190 | 2023-03-04T20:36:04.190 | 5,381,023 | 17,760,257 | [
"rust"
] |
75,631,154 | 1 | null | null | 0 | 10 | so i have one container set up like
```
genericContainer
.withImagePullPolicy(PullPolicy.alwaysPull())
.withExposedPorts(SPRING_BOOT_PORT)
.withNetwork(NETWORK)
.withAccessToHost(true);
```
this starts up fine and i can ping it.
I have ano... | Test containers cant seem to communicate - connection refused | CC BY-SA 4.0 | null | 2023-03-03T19:27:04.343 | 2023-03-05T05:28:30.067 | null | null | 1,555,190 | [
"spring-boot",
"testcontainers"
] |
75,631,123 | 1 | null | null | 1 | 15 | I am building a demo of SAML 2.0 Authentication in ASP .NET Core Blazor using [Jitbit's simple SAML 2.0 Client Library](https://github.com/jitbit/AspNetSaml). I simply copied Saml.cs into my project folder.
I am using Duo's SSO API for generic SAML 2.0 service providers, which only performs authentication, returning th... | Handling SAML 2.0 Responses inServer-Side ASP .NET Core Blazor | CC BY-SA 4.0 | null | 2023-03-03T19:23:53.247 | 2023-03-03T20:59:33.277 | 2023-03-03T20:59:33.277 | 9,259,748 | 9,259,748 | [
"c#",
"asp.net-core",
"blazor-server-side",
"saml-2.0"
] |
75,631,159 | 2 | null | 75,631,125 | 5 | null | `Arrays.asList` creates a fixed-size `List` backed by an array. Pass it to the `ArrayList` constructor to create an `ArrayList` (which is fully mutable) with the same elements.
```
List<Integer> list = new ArrayList<>(Arrays.asList(a));
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:27:42.177 | 2023-03-03T19:29:54.957 | 2023-03-03T19:29:54.957 | 9,513,184 | 9,513,184 | null |
75,631,158 | 2 | null | 67,897,874 | 0 | null | The answers here are made in good faith, but there ARE cases (admittedly rare) where a value will never go out of scope because your function is meant to last forever, and Rust's borrow checker cannot be worked around in that case because Rust's references aren't pointers.
If you think about your code logistically , th... | null | CC BY-SA 4.0 | null | 2023-03-03T19:27:39.500 | 2023-03-03T19:28:15.353 | 2023-03-03T19:28:15.353 | 10,799,096 | 10,799,096 | null |
75,631,162 | 2 | null | 75,631,057 | -1 | null | While you could encode the binary data of an image and store it in a database. Typically it's more common to upload it to an object storage service like Amazon S3. You can find a lot of questions on how to do that on here. [https://stackoverflow.com/search?q=upload+image+to+s3+node](https://stackoverflow.com/search?q=u... | null | CC BY-SA 4.0 | null | 2023-03-03T19:28:16.017 | 2023-03-03T19:28:41.717 | 2023-03-03T19:28:41.717 | 645,132 | 645,132 | null |
75,631,165 | 2 | null | 75,630,509 | 1 | null | You cannot create google calendar events for consumer accounts using a service account. The reason behind that is that you will need to perform DWD for the service account and then impersonate the user, but `gmail.com` is not a domain you own, so it will fail.
There is however, a way for you to create event on your con... | null | CC BY-SA 4.0 | null | 2023-03-03T19:28:36.937 | 2023-03-03T19:28:36.937 | null | null | 5,983,596 | null |
75,631,163 | 2 | null | 74,897,818 | 0 | null | In case anybody runs into something similar. Turns out it's as a result of the # URL fragment in Supabase and React Navigation does not work with #. Using the `getStateFromPath` we can get the URL and replace # to access the URL properly with React Navigation. Like so:
```
import { getStateFromPath } from '@react-navig... | null | CC BY-SA 4.0 | null | 2023-03-03T19:28:22.610 | 2023-03-03T19:28:22.610 | null | null | 5,788,796 | null |
75,631,145 | 2 | null | 75,629,273 | 1 | null | See [microsoft/TypeScript#47599](https://github.com/microsoft/TypeScript/issues/47599) for an authoritative description of this issue.
TypeScript's [type inference](https://www.typescriptlang.org/docs/handbook/type-inference.html) algorithm isn't perfect by any means; it's effectively a collection of heuristic rules th... | null | CC BY-SA 4.0 | null | 2023-03-03T19:26:08.737 | 2023-03-03T19:26:08.737 | null | null | 2,887,218 | null |
75,631,168 | 2 | null | 75,628,858 | 0 | null | You open the same file twice (which should not happen).
And you do not `flush` the buffer.
Hence you are seeing a mix of what made to the disk and what did not make to the disk.
`close(f)` in the fourth line and at the end of the code. Or just open it once. Depending on your other code and scenario you might want to `f... | null | CC BY-SA 4.0 | null | 2023-03-03T19:28:59.177 | 2023-03-03T19:28:59.177 | null | null | 9,957,710 | null |
75,631,160 | 1 | null | null | 0 | 7 | info - Generating static pages (1/1)
> Build error occurred
Error: Export encountered errors on following paths:
/
at /Users/user/.nvm/versions/node/v16.13.0/lib/node_modules/next/dist/export/index.js:425:19
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Span.traceAsyncFn (/Users/user/.... | Error: Export encountered errors on following paths: / | CC BY-SA 4.0 | null | 2023-03-03T19:27:45.457 | 2023-03-03T19:27:45.457 | null | null | 16,370,739 | [
"next.js",
"build",
"static-pages"
] |
75,631,167 | 2 | null | 75,630,769 | 0 | null | Thanks to the help of David and Barmar, I got it working.
I put the php code in its own file, and made sure to echo the error message.
I added a div to my html code: `<div id="error_msg"></div>` where I wanted the error message to appear. Then, in the .ajax() method, I added the following code:
```
success: function(d... | null | CC BY-SA 4.0 | null | 2023-03-03T19:28:51.977 | 2023-03-03T19:28:51.977 | null | null | 21,080,881 | null |
75,631,161 | 1 | null | null | -1 | 21 | [](https://i.stack.imgur.com/Ut8v0.jpg)I'm getting error from the title when I compiled a python source and tried to run it.
I provided a picture of full error because I couldn't copy paste it as it would close almost immediately.
I read this StackOverflow question [ValueError: mutable default <class 'discord.utils._Mi... | ValueError: mutable default <class 'discord.utils._MissingSentinel'> for field name is not allowed: use default_factory | CC BY-SA 4.0 | null | 2023-03-03T19:28:10.533 | 2023-03-03T21:26:36.623 | 2023-03-03T21:26:36.623 | 21,060,819 | 21,060,819 | [
"python",
"discord.py",
"valueerror",
"pycord"
] |
75,631,173 | 2 | null | 52,914,337 | 0 | null | React Next set up for an image that fills its parent container:
```
image={
<Image
src="https://picsum.photos/1174/611?random=65411"
alt="mandatory alt text goes here"
quality={100}
layout="fill"
/>
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:29:29.090 | 2023-03-03T19:29:29.090 | null | null | 1,761,923 | null |
75,631,166 | 1 | null | null | 0 | 22 | I'm currently trying to write a Lambda Function in AWS but I keep coming across the following error:
Test Event Name
sendContactEmailTest1
Response
{
"errorType": "ReferenceError",
"errorMessage": "require is not defined in ES module scope, you can use import instead",
"trace": [
"ReferenceError: require is not defined... | Creating a Lambda Function (index.js) in AWS | CC BY-SA 4.0 | null | 2023-03-03T19:28:41.833 | 2023-03-03T20:00:25.773 | null | null | 21,183,146 | [
"amazon-web-services",
"aws-lambda",
"amazon-ses"
] |
75,631,169 | 2 | null | 75,627,227 | 2 | null | Since your Model class is empty, `Model<T>` is the same as `{}` (the empty object type). So when you use `T[P] extends Model<infer R>`, TypeScript cannot infer `R` properly, so it uses `unknown`. The reason why TypeScript doesn't back off and fallback to `T[P]` is because to `{}` except for `null` and `undefined`. Bas... | null | CC BY-SA 4.0 | null | 2023-03-03T19:29:04.903 | 2023-03-03T19:29:49.127 | 2023-03-03T19:29:49.127 | 18,244,921 | 18,244,921 | null |
75,631,174 | 1 | null | null | -1 | 18 | In other IDE's you can comment out a line of code with "CTRL+/" shortcut.
But that doesn't seem to work in VS Studio 2022. Tried to do some googling, but there is only how it is done in multiple lines. What about one line commenting? Without outlining code, I just want to put cursor anywhere in a line, and be able to c... | How to comment out a line of code in Visual Studio 2022? | CC BY-SA 4.0 | null | 2023-03-03T19:29:29.747 | 2023-03-03T20:04:45.947 | 2023-03-03T20:04:45.947 | 19,693,556 | 19,693,556 | [
"visual-studio-2022"
] |
75,631,175 | 1 | null | null | 0 | 6 | On a Full HTML field if I enter generic YouTube embed field using iframe it works fine:
`<iframe width="560" height="315" src="https://www.youtube.com/embed/BZfB8Ny2Tkw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-shar... | Drupal Stripping HTML tag before rendering | CC BY-SA 4.0 | null | 2023-03-03T19:29:30.900 | 2023-03-03T20:38:59.843 | 2023-03-03T19:31:49.857 | 2,441,356 | 2,441,356 | [
"render",
"ckeditor5",
"theming",
"drupal-9"
] |
75,631,178 | 1 | 75,631,189 | null | -1 | 41 | I would like to replace all characters in a string `myString` with "p", except "o".
For example:
```
"fgyerfgehooefwfweeo"
```
should become
```
"pppppppppoopppppppo"
```
I tried:
```
myString.replaceAll('[^o]*/g', 'p')
```
| Use JavaScript to replace all characters in string with "p" except "o" | CC BY-SA 4.0 | null | 2023-03-03T19:29:51.103 | 2023-03-03T19:55:56.743 | null | null | 5,279,274 | [
"javascript",
"regex",
"replaceall",
"except"
] |
75,631,181 | 2 | null | 73,778,856 | 0 | null | From quarkus.io guide -
> By default, the @InjectMock annotation can be used for any normal CDI scoped bean (e.g. @ApplicationScoped, @RequestScoped). Mocking @Singleton beans can be performed by setting the `convertScopes` property to true (such as @InjectMock(convertScopes = true). This will convert the @Singleton be... | null | CC BY-SA 4.0 | null | 2023-03-03T19:29:57.563 | 2023-03-03T19:29:57.563 | null | null | 5,729,579 | null |
75,631,180 | 2 | null | 75,630,123 | 0 | null | Check VSC ext "remote-browser 0.7.3".
settings.json (Code -> Prferences -> Settings, User -> Extensions -> "remote browser configuration")
```
{
"window.zoomLevel": 1,
"liveServer.settings.donotShowInfoMsg": true,
"files.autoSave": "afterDelay",
"remoteBrowser.connectionOptions": {
"host": "x.x.... | null | CC BY-SA 4.0 | null | 2023-03-03T19:29:55.717 | 2023-03-03T19:29:55.717 | null | null | 21,328,029 | null |
75,631,185 | 1 | null | null | -2 | 10 | npm ERR! code EJSONPARSE
npm ERR! path C:\Users\laptop\Desktop\TI\Projects\Flights\flight/package.json
npm ERR! JSON.parse Unexpected string in JSON at position 705 while parsing '{
npm ERR! JSON.parse "homepage": "https://Lahcen-88.githu'
npm ERR! JSON.parse Failed to parse JSON data.
npm ERR! JSON.parse Note: packa... | How to fix this?? an error appears while typing npm start in the terminal | CC BY-SA 4.0 | null | 2023-03-03T19:30:54.090 | 2023-03-03T19:30:54.090 | null | null | 21,328,223 | [
"json"
] |
75,631,171 | 2 | null | 75,630,989 | 1 | null | The query would differ much from MySQL 5.x to MySQL 8, you onoly would use CTE's
With only two emotions this is quite easy
```
SELECT
user_id,year_emotion,
CASE WHEN how_many_happy = how_many_unhappy THEN 'middle'
WHEN how_many_happy > how_many_unhappy THEN 'HAPPY'
ELSE 'SAD' END emotions
FROM
(s... | null | CC BY-SA 4.0 | null | 2023-03-03T19:29:24.333 | 2023-03-03T19:46:41.080 | 2023-03-03T19:46:41.080 | 5,193,536 | 5,193,536 | null |
75,631,172 | 1 | null | null | -1 | 21 | I want to build a gui using pyqt5 where we can upload a wireshark csv format file and user can
1. analysis wireshark output which is in csv format to check the time delay btw different source and destination groups using delta time from previous captured frame.
2. to check the load btw different reception port number
... | Unable to create a gui to visualize plots | CC BY-SA 4.0 | null | 2023-03-03T19:29:28.867 | 2023-03-03T19:29:28.867 | null | null | 15,041,890 | [
"python",
"user-interface",
"pyqt5",
"wireshark"
] |
75,631,183 | 2 | null | 75,629,455 | 1 | null | Promises are not the Angular way, Angular is built upon RxJs so it is best to stick to RxJs. apiRequest should return the observable rather than convert it to a promise.
```
apiRequest() {
return this.httpClient.getAuth('/api').pipe(
// optional, only if you want service level error handling
catchError(err =>... | null | CC BY-SA 4.0 | null | 2023-03-03T19:30:41.383 | 2023-03-03T22:08:55.547 | 2023-03-03T22:08:55.547 | 1,679,126 | 1,679,126 | null |
75,631,179 | 1 | null | null | 0 | 16 | it's my first contact with MongoDB.
Everything else works (post, delete and get), but only one async thing doesn't work - in my code it's called UpdateAttractionAsync.
There is code of my MongoDBService.cs:
```
using Sunny_Apartment.Entities;
using MongoDB.Driver;
using Microsoft.Extensions.Options;
using MongoDB.Bson;... | Error when updating from api data in MongoDB | CC BY-SA 4.0 | null | 2023-03-03T19:29:52.607 | 2023-03-03T20:18:43.137 | 2023-03-03T20:18:43.137 | 7,156,513 | 7,156,513 | [
"mongodb",
"api",
".net-core"
] |
75,631,177 | 1 | 75,631,269 | null | -1 | 33 | I am new to Chart.js and also not very experience at writing javascript generally. I currently have hacked together a 4-line chart but I'd like to make the code a bit more dynamic so that if the incoming data changes (say for example a 5th category was present) that the JS code would be able to pick that up without hav... | Chart.js - How to write this Javascript more dynamically | CC BY-SA 4.0 | null | 2023-03-03T19:29:43.220 | 2023-03-03T19:45:03.810 | null | null | 736,370 | [
"javascript",
"chart.js"
] |
75,631,188 | 2 | null | 75,629,940 | 0 | null | You can use this code.
```
def replace_char(input_str: str, min_index: int, max_index: int) -> str:
return input_str[:min_index] + '@' * (max_index - min_index) + input_str[max_index:]
input_str = 'The substring of "python" from index @ to index @ inclusive is "tho"'
output_str = replace_char(input_str, 2, 4)
pri... | null | CC BY-SA 4.0 | null | 2023-03-03T19:31:25.567 | 2023-03-03T19:35:49.017 | 2023-03-03T19:35:49.017 | 14,515,813 | 14,515,813 | null |
75,631,187 | 1 | null | null | 0 | 19 | I have a text log file in the following format.
```
****************************************************************************************
line1
line2
line3
****************************************************************************************
line4
line5
line6
******************************************************... | Combine/Join lines in Notepad++ based on separator | CC BY-SA 4.0 | null | 2023-03-03T19:31:20.407 | 2023-03-03T21:56:11.283 | 2023-03-03T21:56:11.283 | 13,302 | 1,650,310 | [
"notepad++"
] |
75,631,192 | 2 | null | 75,630,817 | -1 | null | use express.js to created server on node.js
> [https://www.npmjs.com/package/express](https://www.npmjs.com/package/express)
| null | CC BY-SA 4.0 | null | 2023-03-03T19:31:49.700 | 2023-03-03T19:31:49.700 | null | null | 9,879,961 | null |
75,631,190 | 2 | null | 75,617,283 | 1 | null | You're observing `state` in `HomeForm`, so you have to update the `state` object in the ViewModel for a UI update to be triggered, not just a single property.
Changing your update function to
```
fun update(key: String, value: String) {
Log.d("home","viewmodel $key = $value")
when (key) {
"numberplate" -> {... | null | CC BY-SA 4.0 | null | 2023-03-03T19:31:38.673 | 2023-03-03T19:31:38.673 | null | null | 13,258,270 | null |
75,631,182 | 2 | null | 75,630,852 | 3 | null | You can use a `Row` of `OutlinedButton` applying an `Offset` to avoid the double border.
Something like:
```
Row(
modifier = Modifier
.fillMaxWidth()
) {
val cornerRadius = 16.dp
var selectedIndex by remember { mutableStateOf(-1) }
itemsList.forEachIndexed { index, item... | null | CC BY-SA 4.0 | null | 2023-03-03T19:30:40.740 | 2023-03-03T19:30:40.740 | null | null | 2,016,562 | null |
75,631,191 | 2 | null | 75,630,890 | 5 | null | As indicated by the user Schwern, the problem was caused by the TTY itself.
I solved it by using the raw mode on the TTY.
```
$pty->slave->set_raw();
$pty->set_raw();
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:31:46.540 | 2023-03-03T19:32:07.297 | 2023-03-03T19:32:07.297 | 1,638,960 | 1,638,960 | null |
75,631,189 | 2 | null | 75,631,178 | 1 | null | - `replace``replaceAll`- `*`
```
let str = "fgyerfgehooefwfweeo";
let res = str.replace(/[^o]/g, 'p');
console.log(res);
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:31:38.547 | 2023-03-03T19:32:16.183 | 2023-03-03T19:32:16.183 | 9,513,184 | 9,513,184 | null |
75,631,193 | 1 | null | null | 0 | 33 | Given a carriage return delimited text file say of folder names, how do I read this file into List in the Cake build system for C#?
When I try to use the File class, it complains that File(string) is a method, which is not valid given the context:
```
filePath filePath;
string fileContents = File.ReadAllText(filePath F... | In C# Cake How to Read a Text File into List<string>? | CC BY-SA 4.0 | null | 2023-03-03T19:31:51.887 | 2023-03-03T22:02:16.110 | 2023-03-03T19:37:39.650 | 3,744,182 | 3,191,035 | [
"c#",
"build",
"devops",
"continuous-deployment",
"cakebuild"
] |
75,631,186 | 1 | null | null | 0 | 23 | below is the dockerfile docker-compose and package.json What I am mostly concerned about is the path and I have tryed to add CMD ["npm","start",--host 0.0.0.0] and didn't work what could be wrong ?
here is the dockerfile
```
# pull official base image
FROM node:14
ENV PATH=$PATH:app/node_modules/.bin
#app/
# set workin... | I am trying to work with angular(tailwind) and docker but whenever I try to access localhost:4200 I always get err_empty_response | CC BY-SA 4.0 | null | 2023-03-03T19:30:58.703 | 2023-03-03T19:30:58.703 | null | null | 21,327,974 | [
"angular",
"docker",
"docker-compose",
"dockerfile",
"tailwind-css"
] |
75,631,195 | 1 | null | null | 0 | 23 | I'm trying to extract text from doc/docx/pdf file in an AWS Lambda function written in Node.js.
I need to extract text data as an array of words. I've tried using a few different npm packages, but I've noticed that it just skipping those functions.
AWS Lambda Function:
```
import { PDFExtract } from "pdf.js-extract";
... | Extract text from pdf/doc/docx file using AWS Lambda (Node.js) | CC BY-SA 4.0 | null | 2023-03-03T19:32:12.930 | 2023-03-04T01:53:01.387 | 2023-03-04T01:33:26.440 | 11,107,541 | 20,372,523 | [
"javascript",
"parsing",
"text",
"lambda",
"extract"
] |
75,631,196 | 1 | null | null | 0 | 6 | So I am currently setting up a default.conf file in nginx to reverse proxy an IP that is currently setup using NoVNC to have a virtual machine running on it, but when making the config file (I am very new to this go easy on me) I cannot seem to get it to direct to the specific IP I am looking for,
```
upstream vnc_prox... | NGINX 404 not found when trying to reverse proxy a NoVNC server | CC BY-SA 4.0 | null | 2023-03-03T19:32:35.590 | 2023-03-03T19:32:35.590 | null | null | 21,281,962 | [
"nginx",
"nginx-reverse-proxy",
"novnc"
] |
75,631,200 | 2 | null | 75,630,919 | 1 | null | To rename the function from `people` to `population`, you can use the `ALTER FUNCTION` statement:
```
ALTER FUNCTION people() RENAME TO population;
```
This statement renames the function `people` to `population`.
After executing this statement, you should be able to call the function using its new name `population()`... | null | CC BY-SA 4.0 | null | 2023-03-03T19:32:47.083 | 2023-03-03T19:33:38.973 | 2023-03-03T19:33:38.973 | 21,221,673 | 21,221,673 | null |
75,631,203 | 1 | null | null | -2 | 18 | The [document](https://inst.eecs.berkeley.edu/%7Ecs61c/sp15/guerrilla/01/Guerrilla1_Soln.pdf) I'm reading states that there is a data hazard between the `lw` and `beq` instructions below when considering a [5 stage MIPS CPU pipeline](https://i.stack.imgur.com/7yPhC.jpg). They don't seem to operate on the same registers... | Is there a data hazard between the following instructions? | CC BY-SA 4.0 | null | 2023-03-03T19:33:36.640 | 2023-03-03T19:35:47.203 | 2023-03-03T19:35:47.203 | 20,567,742 | 20,567,742 | [
"mips",
"cpu-architecture"
] |
75,631,198 | 1 | null | null | 0 | 12 | i am building a streamlit app.
i want to add a button that everytime the user clic it, a new form will appear without erasing the old form.
for example the user will clic the button 3 times, so 3 forms will appear and he can fill each one of them separetly.
the button contain conditions and different forms can appear d... | streamlit button to output a new form at every clic | CC BY-SA 4.0 | null | 2023-03-03T19:32:43.780 | 2023-03-03T22:50:48.847 | 2023-03-03T19:33:23.180 | 15,729,369 | 15,729,369 | [
"python",
"forms",
"oop",
"button",
"streamlit"
] |
75,631,204 | 1 | null | null | 0 | 11 | The main problem is that the loop will only pull values from x[i] into z[i] and always skip putting y[i] into z[i]. The only thing I can think of is that y[i] always has a value larger than x[i], which doesn't make sense. Because x[i] is presenting the correct values to z[i] within the template.
```
loop CMP r3, r4... | Loop is skipping comparison incorrectly | CC BY-SA 4.0 | null | 2023-03-03T19:33:42.207 | 2023-03-03T19:38:16.767 | 2023-03-03T19:38:16.767 | 16,409,283 | 16,409,283 | [
"arm",
"branch"
] |
75,631,206 | 2 | null | 75,630,940 | 0 | null | import reportWebVitals from './reportWebVitals';
Module not found: Error: Can't resolve './reportWebVitals' in 'C:\Users\OGBEDADA\PhpstormProjects\react-blog\src'
reportWebVitals doesn't exist
| null | CC BY-SA 4.0 | null | 2023-03-03T19:34:02.870 | 2023-03-03T19:34:02.870 | null | null | 7,400,802 | null |
75,631,197 | 1 | null | null | 0 | 8 | I'm writing validation rules around creating users in the database. The user db document includes a dateCreated field populated with a firestore timestamp which is set on the client.
I want to allow user creation only if this dateCreated field is not some unreasonable value. (It should not be valid to create a user w... | For queued offline requests, when is request.time populated? At the time it is added to the local queue or at the time it hits the server? | CC BY-SA 4.0 | null | 2023-03-03T19:32:40.733 | 2023-03-04T19:01:05.157 | 2023-03-03T20:52:29.373 | 209,103 | 3,134,918 | [
"google-cloud-firestore",
"firebase-security"
] |
75,631,202 | 2 | null | 75,630,946 | 1 | null | Well, it all depends on what you want to deploy, what your goal is. So I can only give some limited advice as I do not know your use case.
- -
A reasonable approach is to create seperate VNETs for different workloads like dev/test/prod and have subnets in them for the different resources.
Then there is the [Hub and Sp... | null | CC BY-SA 4.0 | null | 2023-03-03T19:33:11.197 | 2023-03-03T19:38:20.057 | 2023-03-03T19:38:20.057 | 932,728 | 932,728 | null |
75,631,201 | 2 | null | 75,631,041 | -1 | null | Promises in JavaScript are boxes containing values which are either resolved, rejected or pending.
They can only be accessed via the `.then()` (for resolved values) or `.catch()` (for rejected values) methods.
Returning a value from either of them will create a new Promise box with a new value in it.
```
const promise5... | null | CC BY-SA 4.0 | null | 2023-03-03T19:32:53.743 | 2023-03-03T19:33:48.117 | 2023-03-03T19:33:48.117 | 4,088,472 | 4,088,472 | null |
75,631,209 | 2 | null | 75,630,948 | 1 | null | The start of your `each` loop looks like this:
```
{{#each entry}}
```
The model that you provide to the rendering engine is just a collection, it doesn't have a property `entry`. Use `this` instead.
```
{{#each this}}
```
This means that you want to loop over the model - the `plz` variable you provide to `template(... | null | CC BY-SA 4.0 | null | 2023-03-03T19:34:09.790 | 2023-03-03T19:36:18.140 | 2023-03-03T19:36:18.140 | 1,043,380 | 1,043,380 | null |
75,631,205 | 2 | null | 75,631,105 | 1 | null | There are a few issues in the original code. Try this code snippet to see if it helps you:
Will explain it later - if you would like to confirm or ask questions.
- is not being initialized with the output of the wc -l command.
Should update to something like `files=$(find $dir -type f | wc -l)` to count the num. of fi... | null | CC BY-SA 4.0 | null | 2023-03-03T19:33:42.970 | 2023-03-03T19:41:01.270 | 2023-03-03T19:41:01.270 | 10,760,768 | 10,760,768 | null |
75,631,212 | 1 | null | null | -3 | 33 | today i was trying to apply web scrapping on a finance site.
I used adviced that i received previously on stack and i get this url ("https://micheque.uy/api/cheque-loan/latest-transactions?currencyId=1).
My goal is to get information about the latest transactions. The section on the web its called "Ultimas transaccione... | Using Rvest in R for web scrapping finance webpage | CC BY-SA 4.0 | null | 2023-03-03T19:34:16.667 | 2023-03-03T19:49:22.920 | null | null | 9,642,884 | [
"r",
"web-scraping",
"rvest",
"finance",
"xml2"
] |
75,631,211 | 1 | null | null | 0 | 24 | I'm using arguments for a PowerShell script, but I found that if the second one isn't set, it's getting garbage, although it's possible I'm doing something wrong, since I'm having trouble finding examples with two passed in arguments. How can I verify that both are set?
This script is called from a very old perl scrip... | How verify and use two arguments are set so don't get garbage | CC BY-SA 4.0 | null | 2023-03-03T19:34:16.490 | 2023-03-03T20:19:17.753 | null | null | 1,012,914 | [
"powershell",
"visual-studio-code",
"arguments"
] |
75,631,208 | 1 | 75,632,649 | null | 0 | 20 | So I'm working on a project and I'm trying to pull an image that's a blob file in my database. But the image is not coming up.
Code for the first file, products.jsx:
```
import React from "react";
import Image from 'next/image';
import { useEffect, useState } from "react";
import { StylesContext } from "@material-ui/st... | Having trouble translating blob file into image on NextJS App from MySQL Database | CC BY-SA 4.0 | null | 2023-03-03T19:34:07.987 | 2023-03-04T00:43:32.630 | 2023-03-03T19:34:50.823 | 5,389,997 | 14,903,350 | [
"mysql",
"image",
"next.js"
] |
75,631,217 | 2 | null | 68,007,894 | 0 | null | Create an empty bicep file and deploy it in complete mode.
```
# Create an empty bicep file
echo '' > empty.bicep
# Deploy it into the resource group in 'complete' mode
az deployment group create --template-file empty.bicep --resource-group 'my-rg' --mode complete
# Clean up
rm empty.bicep
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:34:50.420 | 2023-03-03T19:34:50.420 | null | null | 611,056 | null |
75,631,134 | 1 | null | null | 0 | 16 | I am creating a package in ExtJS and I need it to contain panels and other elements, this is my package.json:
```
{
/\*\*
\* The name of the package.
\*/
"name": "MyPackage4",
"sencha": {
/**
* Alternate names for this package.
*
* "alternateName": [],
*/
... | ExtJS - creating a package with widgets panels, etc | CC BY-SA 4.0 | null | 2023-03-03T19:24:52.473 | 2023-03-03T21:57:01.307 | 2023-03-03T21:52:15.393 | 3,439,404 | 21,328,167 | [
"cmd",
"extjs",
"package",
"sencha-cmd"
] |
75,631,215 | 2 | null | 75,630,631 | 0 | null | In the world of programming where you need your code to have been written exactly according to the maybe hard to understand rules, you can use another approach to achieve your goal relying only on the user interface GUI of the applications instead of their API exposed for usage in programming.
This way you just start a... | null | CC BY-SA 4.0 | null | 2023-03-03T19:34:23.450 | 2023-03-04T10:45:14.800 | 2023-03-04T10:45:14.800 | 7,711,283 | 7,711,283 | null |
75,631,216 | 1 | null | null | 0 | 16 | We are trying to create new oidc plugin in konga ui with below details,
myhost/auth/realms/master/protocol/openid-connect/token/introspect
https://myhost/auth/realms/master/.well-known/openid-configuration
Taken from Keyclock client
[](https://i.stack.imgur.com/ck7MB.png)
However after trigger the service we are get... | kong oidc plugin with keycloak failed due to bad uri | CC BY-SA 4.0 | null | 2023-03-03T19:34:44.993 | 2023-03-03T19:52:26.220 | 2023-03-03T19:52:26.220 | 2,362,423 | 2,362,423 | [
"keycloak",
"kong",
"kong-plugin",
"kong-ingress",
"konga"
] |
75,631,214 | 1 | null | null | 0 | 21 | I already using JWT Authentication in my app but I want to start using refresh token. I tried many thing but nothing worked. I already have Entity for :
```
use Doctrine\ORM\Mapping as ORM;
use Gesdinet\JWTRefreshTokenBundle\Entity\RefreshToken as BaseRefreshToken;
#[ORM\Entity]
#[ORM\Table(name: "refresh_tokens")]
cl... | How to start using JWTRefreshTokenBundle in my eample | CC BY-SA 4.0 | null | 2023-03-03T19:34:22.817 | 2023-03-04T17:19:19.140 | 2023-03-04T17:19:19.140 | 20,198,785 | 20,198,785 | [
"php",
"symfony",
"jwt",
"symfony5",
"refresh-token"
] |
75,631,220 | 2 | null | 75,630,790 | 1 | null | If the structure of your JSON is very dynamic, you could use a recursive common table expression to convert your JSON in a tabular format like this:
```
WITH cte_recursive
AS
(
SELECT t.id, j1.[key] as Path,j1.[key],j1.[value],j1.[type]
FROM #temp t
OUTER APPLY OPENJSON(t.JS) j1
UNION ALL
SELECT c.i... | null | CC BY-SA 4.0 | null | 2023-03-03T19:35:21.987 | 2023-03-03T19:35:21.987 | null | null | 13,636,376 | null |
75,631,222 | 2 | null | 75,631,113 | 0 | null | Found an answer [here](https://stackoverflow.com/questions/68569430/unable-to-find-bundled-java-version-with-flutter-doctor-after-updating-android)
You just need to copy the contents of jbr folder to jre folder and it works
| null | CC BY-SA 4.0 | null | 2023-03-03T19:35:42.220 | 2023-03-03T19:35:42.220 | null | null | 13,691,187 | null |
75,631,218 | 1 | null | null | 1 | 33 | I want to make only matched string bold. Say, I have a string "Hello, World!" and user searched for "hello". I want to make something like this, ", World!".
I have tried this,
```
const search = ref('hello')
function boldText(text) {
return text.replace(search.value, `<b>${search.value}</b>`)
}
```
```
<p v-html="... | how to not render html tags in v-html in vuejs? | CC BY-SA 4.0 | null | 2023-03-03T19:34:59.203 | 2023-03-04T02:22:06.817 | 2023-03-03T20:20:32.697 | 21,127,477 | 21,127,477 | [
"vue.js"
] |
75,631,224 | 2 | null | 44,552,747 | 0 | null | Looking for this led me to a property that you might find useful. Using curl, you can post the desired logging level as "" (zero length string) which has the effect of setting the configuredLevel to null. This can be done for the child or parent in the hierarchy and then allows you dynamically set and unset from eith... | null | CC BY-SA 4.0 | null | 2023-03-03T19:35:50.457 | 2023-03-03T19:35:50.457 | null | null | 21,328,258 | null |
75,631,219 | 1 | 75,633,744 | null | 0 | 24 | I would like to use HTML tables in a `Quarto` presentation. The problem is that they are pretty big on the slides. Here is some reproducible code:
```
---
title: "Change size of HTML table in Quarto"
format: revealjs
---
## Example slide
| Default | Left | Right | Center |
|---------|------|-------|--------|
| 12 ... | Change size HTML table in Quarto presentation | CC BY-SA 4.0 | null | 2023-03-03T19:35:15.080 | 2023-03-04T05:00:20.503 | null | null | 14,282,714 | [
"reveal.js",
"quarto"
] |
75,631,210 | 1 | null | null | 3 | 27 | Cargo.toml:
```
[dependencies]
polars = { version = "0.27.2", features = ["lazy"] }
```
I would expect that any two LazyFrames could be vertically concatenated as long as the columns they have in common had the same or promotable dtypes, with missing columns added in as nulls (like how pandas does it). But evidently t... | How to reliably concatenate LazyFrames in Rust Polars | CC BY-SA 4.0 | null | 2023-03-03T19:34:11.760 | 2023-03-03T21:43:16.793 | 2023-03-03T21:43:16.793 | 5,496,433 | 5,496,433 | [
"rust",
"rust-polars"
] |
75,631,213 | 1 | null | null | -1 | 24 | This is a program for a university project. It's kind difficult and probably unnecessary to describe the project.
In this project there's a part where I have to sum two columns of a matrix and for some reason is returning the error "TypeError: 'method' object is not subscriptable" when it tries to run this line.
Does a... | Trying to sum two columns from a matrix but it returned a "TypeError: 'method' object is not subscriptable" | CC BY-SA 4.0 | null | 2023-03-03T19:34:19.767 | 2023-03-03T19:40:47.203 | 2023-03-03T19:40:47.203 | 13,421,982 | 13,421,982 | [
"python",
"numpy",
"numpy-ndarray"
] |
75,631,228 | 2 | null | 1,336,770 | 0 | null | For dot net 6 you can use:
```
if (HttpContext.Features.Get<ISessionFeature>()?.Session != null)
{
}
```
| null | CC BY-SA 4.0 | null | 2023-03-03T19:36:45.913 | 2023-03-03T19:36:45.913 | null | null | 1,457,761 | null |
75,631,230 | 2 | null | 59,051,270 | 0 | null | There may have been a time difference between the client and server that caused this problem.
Ensure that the client and server times are in sync.
| null | CC BY-SA 4.0 | null | 2023-03-03T19:36:53.910 | 2023-03-03T19:36:53.910 | null | null | 8,465,774 | null |
75,631,225 | 1 | null | null | 0 | 9 | I have a docker container running sab and want my downloads to be placed in a mounted NFS share I have on the local machine.
Outside of the docker container, I have a NFS share in `/mnt/Plex` that was mounted using the IP address 192.168.1.50:/Plex
How can I put this mount in the docker container?
using this script `do... | Mounting an NFS share in a docker container from a NAS | CC BY-SA 4.0 | null | 2023-03-03T19:36:10.173 | 2023-03-03T19:36:10.173 | null | null | 18,573,049 | [
"docker",
"mount"
] |
75,631,223 | 2 | null | 75,631,121 | 0 | null | Try this, Here we are using
```
.twoColumns {
display: flex;
flex-direction: row;
}
.responsive {
max-width: 100%;
height: auto;
}
.right {
max-width: 100%;
margin-left: 28px;
}
p.Name {
font-weight: bold;
}
```
```
<div class="twoColumns">
<div class="left">
<img src="https://via.placeholder.co... | null | CC BY-SA 4.0 | null | 2023-03-03T19:35:46.170 | 2023-03-03T19:49:09.457 | 2023-03-03T19:49:09.457 | 2,395,282 | 2,395,282 | null |
75,631,227 | 2 | null | 75,629,270 | 0 | null | Virtual list-view controls indeed do not maintain any data, hence you don't call `ListView_InsertItem()` (or `LVM_INSERTITEM`) but you call `ListView_SetItemCountEx()` (or `LVM_SETITEMCOUNT`) instead .
The `LVN_GETDISPINFO` notification is a call-back function (well, message). You have to provide the information you ar... | null | CC BY-SA 4.0 | null | 2023-03-03T19:36:43.963 | 2023-03-03T19:36:43.963 | null | null | 1,372,577 | null |
75,631,229 | 2 | null | 75,631,057 | -1 | null | As a suggestion , I think the best way is to upload your image on an external server and give the link address to database .
but there is other ways that you put images on public\images.. dir (not suggested)
STEPS:
1- use [fs](https://www.npmjs.com/package/fs) or [fs-extra](https://www.npmjs.com/package/fs-extra) and [... | null | CC BY-SA 4.0 | null | 2023-03-03T19:36:48.137 | 2023-03-03T19:36:48.137 | null | null | 12,475,604 | null |
75,631,226 | 2 | null | 56,393,462 | 0 | null | From quarkus.io guide -
> By default, the @InjectMock annotation can be used for any normal CDI
scoped bean (e.g. @ApplicationScoped, @RequestScoped). Mocking
@Singleton beans can be performed by setting the `convertScopes`
property to true (such as @InjectMock(convertScopes = true). This will
convert the @Singleton be... | null | CC BY-SA 4.0 | null | 2023-03-03T19:36:19.340 | 2023-03-03T19:36:19.340 | null | null | 5,729,579 | null |
75,631,232 | 2 | null | 75,560,038 | 0 | null | For me too. Maybe its dev mode vs normal chrome mode? still as of 3.3.23
| null | CC BY-SA 4.0 | null | 2023-03-03T19:37:05.897 | 2023-03-03T19:37:05.897 | null | null | 21,328,255 | null |
75,631,233 | 1 | null | null | 0 | 25 | I have a gender column that says either "Female", "Male", or . for missing entry. I want to create a new column that gives dummy variable 1 if gender is female and 0 is gender is male (and continuing to give . for missing value). I tried to do `gen Fem = gender = "Female"` but this does not work and I get r(109) error.... | How do I create a dummy variables using a byte format column in Stata? | CC BY-SA 4.0 | null | 2023-03-03T19:37:10.560 | 2023-03-03T22:17:18.857 | 2023-03-03T21:57:29.170 | 1,820,446 | 21,312,166 | [
"regression",
"stata",
"dummy-variable"
] |
75,631,237 | 1 | null | null | -2 | 18 | I am simply trying to write a basic python code (just started learning) encountering below issue. Kindly help.
Code:
```
import sys
sys.path.append(r"C:\Users\**********\**********\Python Files\PyTutorials\Lib\site-packages\\")
import requests
response = requests.get("https://www.bbc.co.uk")
print(response.text)
```
... | UnicodeEncodeError: 'charmap' codec can't encode characters in position 335140-335141: character maps to <undefined> | CC BY-SA 4.0 | null | 2023-03-03T19:37:47.690 | 2023-03-03T21:07:35.557 | 2023-03-03T21:07:35.557 | 235,698 | 9,945,257 | [
"python"
] |
75,631,221 | 1 | null | null | 0 | 7 | I am new in both IBKR and its API, the code given below is giving error on `qualifyContracts` method:
```
Error 200, reqId 308: No security definition has been found for the request, contract: Option(symbol='TSLA', lastTradeDateOrContractMonth='20230303', strike=808.33, right='C', exchange='CBOE', currency='USD')
Error... | IBKR: No security definition has been found for the request, contract: | CC BY-SA 4.0 | null | 2023-03-03T19:35:29.010 | 2023-03-03T19:35:29.010 | null | null | 275,002 | [
"python",
"interactive-brokers",
"tws",
"ib-insync"
] |
75,631,231 | 1 | null | null | -2 | 17 | I want to render the KITE websocket ticks data to the frontend.
I'm new to this , please help.
Below is the flask python snippet.
```
from flask import Flask, render_template, request, redirect, session
from kiteconnect import KiteTicker
import logging
from login import gen_acc_token
from flask_socketio import SocketI... | I want to render kite websocket ticks data to frontend | CC BY-SA 4.0 | null | 2023-03-03T19:36:58.623 | 2023-03-03T19:49:28.833 | 2023-03-03T19:49:28.833 | 21,048,514 | 21,048,514 | [
"python",
"flask",
"websocket"
] |
75,631,235 | 1 | null | null | 0 | 20 | I am having problems converting `Lists` -> `Strings` and 'Strings' to 'List' for type Converters in android studio.
```
data class Results(
@PrimaryKey(autoGenerate = true)
val id:Int? = null,
val category: List<String>,
val content: String?,
val country: List<String>?,
val creator: List<String>?,
val description... | Using typeconverters to convert List to Strings vice versa(Kotlin) | CC BY-SA 4.0 | null | 2023-03-03T19:37:41.177 | 2023-03-04T00:25:51.313 | null | null | 19,125,189 | [
"kotlin",
"android-room"
] |
75,631,244 | 2 | null | 74,952,204 | 0 | null | I got this problem when I was transferring a project from one PC to another.
The following actions helped me:
1. Delete the build folder
2. Run
> flutter build apk
| null | CC BY-SA 4.0 | null | 2023-03-03T19:38:31.493 | 2023-03-03T19:38:31.493 | null | null | 17,707,993 | null |
75,631,236 | 2 | null | 75,619,664 | 2 | null | `ceiling`, `floor`, `round`, `signif`, and `trunc` are all generic functions. You will not find corresponding generic function objects (of type `"closure"`, calling `UseMethod` or `standardGeneric`) in the or namespace, because dispatch happens entirely in C code for efficiency. The same can be said of the usual a... | null | CC BY-SA 4.0 | null | 2023-03-03T19:37:44.150 | 2023-03-04T00:09:26.143 | 2023-03-04T00:09:26.143 | 12,685,768 | 12,685,768 | null |
75,631,241 | 1 | null | null | 0 | 22 | The company I work for has it's certificates in Azure. So when you download them they are in pfx format. I get that they are a bundle and that you can use openssl to extract different version keys. The product tableau requires the certificate as a crt file and key. I have successfully extracted that using Openssl. Howe... | How to convert Azure pfx key to pkcs#1 | CC BY-SA 4.0 | null | 2023-03-03T19:38:22.657 | 2023-03-03T19:38:22.657 | null | null | 21,328,190 | [
"openssl",
"pkcs#1"
] |
75,631,243 | 1 | null | null | 0 | 5 | we are using embedly to display posts for our users on our site. To try it out, we are using a free account. We have an API call to retrieve the post's (twitter, facebook, etc) attributes and a rendering component. The frontend is being built with REACT. All post shows the embedded brand. Why is it happening? Do you kn... | Embedly post are showing the Embedly brand. The frontend is build using REACT | CC BY-SA 4.0 | null | 2023-03-03T19:38:30.593 | 2023-03-03T19:38:30.593 | null | null | 368,706 | [
"reactjs",
"embedly"
] |
75,631,239 | 2 | null | 75,627,505 | 0 | null | As explained, all matches from the [glob](https://perldoc.perl.org/functions/glob) need be retrieved. Given that `glob` is a "very" global creature with long memory better use it in list context to exhaust its return right away, and then investigate it. One way to do what the question tries
```
if ( my @entries = glob... | null | CC BY-SA 4.0 | null | 2023-03-03T19:38:19.980 | 2023-03-04T23:42:14.903 | 2023-03-04T23:42:14.903 | 4,653,379 | 4,653,379 | null |
75,631,249 | 2 | null | 75,631,126 | 1 | null | In your code you are comparing `row['Key']` to `l`, where the former is always `""` as its defined immediately before the for loop.
I am guessing you actually meant to write `if row['Values'] == l`?
And with pandas you can actually use the following to check if your column value is inside a list:
```
import pandas as p... | null | CC BY-SA 4.0 | null | 2023-03-03T19:39:01.937 | 2023-03-03T19:39:01.937 | null | null | 5,240,684 | null |
75,631,250 | 2 | null | 75,631,100 | 1 | null | Your error is in this line:
```
Route::post('requestFormData','RequestInsertController@postdata');
```
The namespace is not defined.
Replace with :
```
Route::post('requestFormData',[RequestInsertController::class, 'postdata'])->name('postdata');
```
This line will work because the RequestInsertController is defined ... | null | CC BY-SA 4.0 | null | 2023-03-03T19:39:09.780 | 2023-03-03T19:39:09.780 | null | null | 12,769,644 | null |
75,631,251 | 1 | null | null | 0 | 4 | I am trying to run playonlinux on ubuntu22.04, but it is showing me this error:
```
Looking for python3... 3.9.13 - selected
1.25
xkbcommon: ERROR: failed to add default include path /home/think/anaconda3/share/X11/xkb
xkbcommon: ERROR: failed to add default include path /home/think/anaconda3/share/X11/xkb
/usr/share/p... | xkbcommon: ERROR: failed to add default include path playonlinux | CC BY-SA 4.0 | null | 2023-03-03T19:39:26.770 | 2023-03-03T19:39:26.770 | null | null | 19,680,564 | [
"ubuntu",
"installation",
"wine",
"ubuntu-22.04"
] |
75,631,252 | 1 | null | null | 0 | 10 | I am trying to run my continuous simulation using HEC HMS and I have data entered for my precipitation gages. There are no negative values or missing values however I get the error "Error 20656: Hyetograph gage 1 for subbasin contains 24 missing or negative precipitation values." I am not sure why I am getting this err... | HEC HMS 4.10 Error 20656 Missing or negative precipitation values | CC BY-SA 4.0 | null | 2023-03-03T19:39:32.670 | 2023-03-03T19:39:32.670 | null | null | 14,716,415 | [
"model",
"modeling"
] |
75,631,247 | 2 | null | 75,630,380 | 0 | null | This is not supported yet. See
- [The documentation of current limitations of custom data](https://github.com/microsoft/vscode-custom-data/blob/main/samples/webcomponents/README.md#limitations)- [Emmet support for custom HTML tags / attributes #64032](https://github.com/microsoft/vscode/issues/64032)
I'd try to say mor... | null | CC BY-SA 4.0 | null | 2023-03-03T19:38:44.897 | 2023-03-03T19:44:51.487 | 2023-03-03T19:44:51.487 | 11,107,541 | 11,107,541 | null |
75,631,254 | 1 | null | null | 0 | 11 | I have a Databricks notebook, trying to "import boto3" and get the below error.
```
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
```
How can I resolve it?
FYI, this is the package and cluster info:
```
Name: boto3
Version: 1.12.0
Summary: The AWS SDK for Python
Home-page: https://github.... | AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK when instaling DataBricks | CC BY-SA 4.0 | null | 2023-03-03T19:39:35.453 | 2023-03-03T19:42:59.867 | 2023-03-03T19:42:59.867 | 315,168 | 7,124,155 | [
"python",
"apache-spark",
"boto3",
"databricks"
] |
75,631,256 | 1 | 75,631,354 | null | -2 | 52 | I have a program that prints result as an array:
```
Array
(
[2019] => 15.63
[2020] => 4.96
[2021] => 42.92
)
```
But I need to print it in such form:
```
[2019 => 15.63, 2020 => 4.96, 2021 => 42.92]
```
How could it be done? Do I have to make another program for it? Or is there any easier way?
| Print array in one line | CC BY-SA 4.0 | null | 2023-03-03T19:39:41.383 | 2023-03-04T09:35:33.227 | 2023-03-03T19:50:58.473 | 20,234,241 | 20,234,241 | [
"php",
"arrays",
"printing"
] |
75,631,246 | 1 | 75,631,413 | null | 0 | 14 | In a shiny app, I have 2 modules, in the first one (mod_1_ui) I have filters and an actionButton.
On the module 2, I want to display a plot button is clicked.
My problem is that, the observeEvent is in module 2 and the button in module 1.
How can I observeEvent an action in 2 differents modules ?
[](https://i.stack.im... | oberveEvent on an action located in another module | CC BY-SA 4.0 | null | 2023-03-03T19:38:44.277 | 2023-03-03T20:00:37.303 | null | null | 8,214,946 | [
"r",
"shiny",
"module",
"action"
] |
75,631,258 | 2 | null | 75,608,803 | 0 | null | Thanks to the help from @teapot418
The below steps work
```
mkdir minimal_build
cd minimal_build
RISCVCC_PREFIX=$HOME/toolchains/riscv/bin/riscv64-unknown-linux-gnu-
RISCV_CC_FLAGS="-funsafe-math-optimizations"
cmake -DCMAKE_C_COMPILER=${RISCVCC_PREFIX}gcc \
-DCMAKE_CXX_COMPILER=${RISCVCC_PREFIX}g++ \
-DCMAKE_C_F... | null | CC BY-SA 4.0 | null | 2023-03-03T19:39:59.110 | 2023-03-03T19:39:59.110 | null | null | 8,180,235 | null |
75,631,257 | 1 | null | null | 0 | 16 | how to show how many rows and columns?
```
import pandas as pd
df = pd.read_csv('cars.csv')
grouped_cars = df.groupby('Gears').mean()
print(grouped_cars)
grouped_cars1 = df.groupby('Gears')['Torque'].mean()
print(grouped_cars1)
```
what i expect:[enter image description here](https://i.stack.imgur.com/i66ZQ.png)
i t... | how to show how many rows and columns | CC BY-SA 4.0 | null | 2023-03-03T19:39:56.750 | 2023-03-03T19:39:56.750 | null | null | 21,143,957 | [
"python",
"python-3.x"
] |
75,631,255 | 1 | null | null | 0 | 11 | When sending UDP packets that exceed the PMTU, I'm told that the receiver will receive the packets in fragments. Does the network interface or OS of the receiver typically re-assemble the packets automatically?
If I had to guess, for Linux/POSIX systems the answer would be no if using a raw socket e.g. SOCK_RAW - but i... | Do common OSes provide guarantees for IP fragment reassembly? | CC BY-SA 4.0 | null | 2023-03-03T19:39:41.110 | 2023-03-03T20:02:10.087 | 2023-03-03T20:02:10.087 | 223,201 | 223,201 | [
"networking",
"network-programming",
"udp",
"ip"
] |