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,630,469 | 1 | null | null | 0 | 11 | I have a post in my products controller, I send requests by RequestBody from productDto and I send an image by file through my postman to be saved in amazon s3. But when I make the request, I get the error
```
doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/json
```
... | why am i getting the error the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/json? | CC BY-SA 4.0 | null | 2023-03-03T18:04:04.910 | 2023-03-03T18:04:04.910 | null | null | 21,267,269 | [
"java",
"spring",
"api",
"amazon-s3",
"multipart"
] |
75,630,483 | 1 | 75,631,501 | null | -1 | 45 | I'm trying making a program similar to ReWASD, I need to block keyboard/mouse input in app to avoid a conflict between two devices
I tried use functions BlockInput()/SetWindowsHookEx()
| Block input in hwnd keyboard/mouse input in C++ | CC BY-SA 4.0 | null | 2023-03-03T18:06:00.497 | 2023-03-03T20:22:39.123 | 2023-03-03T19:49:46.210 | 487,892 | 21,327,761 | [
"c++",
"winapi"
] |
75,630,481 | 2 | null | 75,630,249 | 0 | null | I hadn't noticed about pandas before that it drops non-numeric columns when applying sums. Interesting. Anyway, a workaround is to supply the column names manually to an `aggregate` function.
```
grouped_df = standardized_df.groupby(["Customer ID"], as_index=False).aggregate({<col_1>: sum, <col_2>: sum})
```
In genera... | null | CC BY-SA 4.0 | null | 2023-03-03T18:05:18.373 | 2023-03-03T18:05:18.373 | null | null | 12,705,481 | null |
75,630,480 | 1 | null | null | 0 | 18 | My API returns either null or list of posts. Dataclass of posts is shown below
```
@Serializable
data class Post(
val id: Int,
val text: String,
@SerialName("img_url") val imgURL: String,
var author: User
)
@Serializable
data class User(
val id: Int,
@SerialName("profile_img") val profileImgUrl... | How to handle null JSON in Retrofit2? | CC BY-SA 4.0 | null | 2023-03-03T18:05:14.757 | 2023-03-03T18:30:57.100 | null | null | 18,978,780 | [
"android",
"json",
"kotlin",
"retrofit2"
] |
75,630,479 | 1 | null | null | 0 | 32 | I have a situation I can’t explain why is happening, can’t fix it, and can’t figure a work around for it. I have a mutable object array that holds a variable number of objects. Each object is either a string file name or a URL of a web location. I have another mutable array of integer objects that identifies the type o... | An objective-c variable being assigned a value from a mutable array element is not being correctly assigned a type | CC BY-SA 4.0 | null | 2023-03-03T18:05:13.177 | 2023-03-04T11:57:08.663 | 2023-03-04T11:57:08.663 | 5,690,248 | 6,951,325 | [
"objective-c",
"cocoa"
] |
75,630,484 | 1 | null | null | 0 | 15 | "All of a sudden" all of my import statements from a project that has been working became underlined in red. It underlines both npm installs and files I have created.
The app still builds and runs fine. It still shows errors if I try to use a component/package without first importing it and the errors go away if type o... | VS Code suddenly started marking all React-Native imports in red saying "Cannot find module" | CC BY-SA 4.0 | null | 2023-03-03T18:06:02.007 | 2023-03-03T18:06:02.007 | null | null | 789,459 | [
"react-native",
"visual-studio-code",
"typescript-eslint"
] |
75,630,487 | 1 | null | null | 0 | 8 | I'm trying to add an event to the Timeline component, but it doesn't render anything.
I tried the following
```
<Timeline
initialTime={{hour: new Date().getHours(), minutes: 0}}
events={[
{
id: '1',
summary:
'Lorem ipsum dolor sit amet, consectetur adipiscing el aspec... | Wix react native calendars doesn't render event | CC BY-SA 4.0 | null | 2023-03-03T18:06:29.370 | 2023-03-03T18:08:54.110 | 2023-03-03T18:08:54.110 | 21,327,525 | 21,327,525 | [
"react-native",
"react-native-calendars"
] |
75,630,485 | 1 | null | null | 0 | 20 | let's say I have the following variable:
`const myObject = { property1: 'value1', property2: 'value2', property3: 'value3' };`
I want to enforce an eslint rule so that if an object has a minimum of three properties, then each property must go on a new line, such as below:
```
const myObject = {
property1: 'value1',
... | Object properties must be on a new line with ESLint | CC BY-SA 4.0 | null | 2023-03-03T18:06:15.307 | 2023-03-03T18:16:07.167 | null | null | 7,460,467 | [
"javascript",
"eslint"
] |
75,630,491 | 2 | null | 65,643,612 | 0 | null | I fixed this by changing the PHP version from 8 to 7.4, basically just using this xampp version [https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/7.4.33/](https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/7.4.33/)
| null | CC BY-SA 4.0 | null | 2023-03-03T18:07:25.423 | 2023-03-03T18:07:25.423 | null | null | 11,241,731 | null |
75,630,488 | 1 | null | null | 1 | 41 | I am looking at satellite netcdf format data using xarray, but I first need to convert the dimensions from scanline (the y index corresponding with the satellite scan direction) and ground-pixel (the x index corresponding with the direction adjacent to the scan direction) to latitude and longitude. The latitude and lon... | Convert xarray dimensions to latitude and longitude | CC BY-SA 4.0 | null | 2023-03-03T18:06:38.137 | 2023-03-03T21:21:27.273 | 2023-03-03T18:40:04.660 | 16,821,511 | 16,821,511 | [
"python",
"geospatial",
"python-xarray"
] |
75,630,489 | 2 | null | 69,099,977 | 0 | null | Since the commands syntax to set the output is now deprecated in GitHub Actions, it can be set using the GITHUB_OUTPUT environment variable.
So something like this:
```
- name: Secrets to Key Vault
uses: azure/powershell@v1
id: setSqlConnection
env:
POWERSHELL_TELEMETRY_OPTOUT: 1
... | null | CC BY-SA 4.0 | null | 2023-03-03T18:06:44.360 | 2023-03-03T18:06:44.360 | null | null | 3,808,675 | null |
75,630,492 | 2 | null | 75,629,997 | -1 | null | You can get the substring before the first comma by doing something like this:
```
// New code added after map(x,y) = Split(Linie, ",")(y)
map(x,0) = map(x,0).Substring(0, map(x,0).IndexOf(","))
```
map(x,0) is the string being searched.
Substring is a function that will return a substring of the string being searched... | null | CC BY-SA 4.0 | null | 2023-03-03T18:07:27.300 | 2023-03-03T20:32:41.983 | 2023-03-03T20:32:41.983 | 21,031,252 | 21,031,252 | null |
75,630,486 | 1 | 75,632,330 | null | 0 | 34 | I'm trying to use react-window and react-virtualized-auto-sizer to virtualize a components list, but the `<AutoSizer>` component isn't rendering the list.
this is the code:
```
<AutoSizer>
{({height, width}) =>
(
<List
className="List"
height={1000}
itemCount={products.arti... | React virtualized list not rendering components | CC BY-SA 4.0 | null | 2023-03-03T18:06:27.913 | 2023-03-04T00:27:54.377 | 2023-03-04T00:27:54.377 | 10,091,329 | 10,091,329 | [
"javascript",
"reactjs",
"react-virtualized"
] |
75,630,482 | 1 | null | null | 0 | 25 | I have 2 excels files. In the first one there is a catalog of items and the category they belong, in the second one, it is a massive recollection of data items.
The problems starts in my excel with data, the strings items compared to the catalog excel file may not be 100% identical one to another, my intention is to tr... | How to get string similarity between elements from 2 dataframes | CC BY-SA 4.0 | null | 2023-03-03T18:05:29.380 | 2023-03-03T18:09:40.503 | 2023-03-03T18:09:40.503 | 21,076,545 | 21,076,545 | [
"python",
"string",
"multiprocessing",
"similarity",
"fuzzywuzzy"
] |
75,630,493 | 2 | null | 75,538,684 | 0 | null | Finally found out how to do this with the help of this post [here.](https://social.msdn.microsoft.com/Forums/en-US/152550f3-753b-475a-a8af-82490a3ab734/invokeazurermvmruncommand-parameter-passing-suddenly-fails?forum=azureautomation)
So the trick is NOT to use the -Parameter option and set the script object with the pa... | null | CC BY-SA 4.0 | null | 2023-03-03T18:07:37.087 | 2023-03-03T18:07:37.087 | null | null | 2,145,551 | null |
75,630,494 | 2 | null | 75,187,730 | 0 | null | So the solution I implemented is this:
First I add the custom emojis:
```
custom_emojis = re.findall(r'<:\w*:\d*>', message.content)
custom_emojis = [e.split('<')[1].replace('>', '') for e in custom_emojis]
print(custom_emojis)
print(message.content)
for item in custom_emojis:
await mes... | null | CC BY-SA 4.0 | null | 2023-03-03T18:07:40.527 | 2023-03-03T18:07:40.527 | null | null | 11,002,498 | null |
75,630,497 | 2 | null | 75,579,794 | 0 | null | I was able to fix it by exchanging `call.request.queryParameters["redirectUrl"]!!` with just a normal string, such as `"http://localhost:3000/home"`.
Works as long as you only have the same url you are going to redirect to.
| null | CC BY-SA 4.0 | null | 2023-03-03T18:08:08.860 | 2023-03-03T18:08:08.860 | null | null | 17,695,655 | null |
75,630,496 | 2 | null | 75,624,083 | 0 | null | Once you have set your sparse-checkout file patterns (using the [git sparse-checkout set or add](https://git-scm.com/docs/git-sparse-checkout/2.27.0#Documentation/git-sparse-checkout.txt-emsetem) command as [in here](https://stackoverflow.com/a/62999760/6309)), any future `git pull` would follow those patterns.
So that... | null | CC BY-SA 4.0 | null | 2023-03-03T18:07:46.290 | 2023-03-03T18:07:46.290 | null | null | 6,309 | null |
75,630,502 | 2 | null | 75,625,815 | 0 | null | Finally I ended up using an array instead of 2 numbers and worked with last 2 values from array. Instead of pushing into array element.value, I pushed inputField.value, so decimal points numbers can be added too, to Array.
Thank you all for you answers.
| null | CC BY-SA 4.0 | null | 2023-03-03T18:08:33.210 | 2023-03-03T18:08:33.210 | null | null | 14,565,845 | null |
75,630,499 | 2 | null | 75,628,987 | 0 | null | in the user model, change
```
const User = mongoose.model('User', userSchema);
module.exports = User;
```
to
```
module.exports = mongoose.model("User",usersSchema);
```
you still able to use your existing code, but it will be
```
User.User.fin...
```
because you were registered twice for the `User`
| null | CC BY-SA 4.0 | null | 2023-03-03T18:08:19.897 | 2023-03-03T18:08:19.897 | null | null | 9,267,467 | null |
75,630,501 | 1 | null | null | 0 | 8 | I'm new with the pusher channels, I read their documents, but I still have some confusion with some limits that are not mentioned in the documents, if someone can help.
1- What the Maximum subscribers number that can subscribe one private channel ?
2- I also read that presence channels have some limits associated with ... | Pusher Channels: Maximum subscribers number that can subscribe one private channel | CC BY-SA 4.0 | null | 2023-03-03T18:08:27.780 | 2023-03-03T18:08:27.780 | null | null | 19,285,584 | [
"pusher",
"pusher-js"
] |
75,630,500 | 1 | null | null | -1 | 11 | this error is flashing during excution of code..[enter image description here](https://i.stack.imgur.com/BTdrJ.png)[[This is my code](https://i.stack.imgur.com/7H3Q5.png)]([https://i.stack.imgur.com/Xqwk8.png](https://i.stack.imgur.com/Xqwk8.png))
how can i solve this error ??
| I am trying to import package in my flutter app...but its giving me error | CC BY-SA 4.0 | null | 2023-03-03T18:08:25.087 | 2023-03-03T18:08:25.087 | null | null | 21,327,836 | [
"flutter",
"android-gradle-plugin",
"flutter-dependencies",
"flutter-packages"
] |
75,630,505 | 1 | null | null | -2 | 15 | I have a swift app project.
I create and build a swift static lib with
```
public func test() {
print("hello world")
}
```
I add `.a` to app project Build Phases > Link Binary with Lib.. > (+) > myModule.a
I add `import myModule` and a call to `test()` in my view controller.
Build.
get error.
| How do I fix Xcode build error "no such module 'myModule'" at "import myModule" in my Swift app after adding a swift static lib .a to my swift app? | CC BY-SA 4.0 | null | 2023-03-03T18:08:59.527 | 2023-03-04T06:16:43.030 | 2023-03-04T06:16:43.030 | 3,795,691 | 746,100 | [
"ios",
"swift",
"xcode",
"import"
] |
75,630,506 | 2 | null | 75,630,308 | 0 | null | ```
responce.data as List<dynamic>;
```
responce.data is not from type List, it's a Map. Remove the casting to List.
| null | CC BY-SA 4.0 | null | 2023-03-03T18:08:59.983 | 2023-03-03T18:08:59.983 | null | null | 5,812,524 | null |
75,630,495 | 1 | null | null | 0 | 10 | On Windows I have a running Process with a `MainWindowTitle`.
| Process name | Name | MainWindowTitle |
| ------------ | ---- | --------------- |
| ACDBServ.exe | Acron Database Server | Acron Database Server on Port: **** |
[process with MainWindowTitle (Task-Manager)](https://i.stack.imgur.com/cMRQS.png)
To sho... | powershell Get-Process MainWindowTitle | CC BY-SA 4.0 | null | 2023-03-03T18:07:45.793 | 2023-03-03T18:07:45.793 | null | null | 6,013,858 | [
"windows",
"powershell",
"authentication"
] |
75,630,508 | 1 | 75,630,541 | null | 1 | 36 | I'm not sure if there is some library that handles this, or if recursion is the way to go. I am trying to write a recursion function, when I call it it always ends up returning `False`. Any help appreciated.
`item` starts out as a dict.
`text` is a string to match.
```
def match(item, text):
if item == text:
... | See if value exists in Python nested dict which contains dicts, lists, and strings | CC BY-SA 4.0 | null | 2023-03-03T18:09:15.117 | 2023-03-03T18:12:42.603 | null | null | 15,233,959 | [
"python",
"recursion"
] |
75,630,510 | 1 | null | null | 0 | 18 | I am using huggingface with Pytorch lightning and and I am saving the model with Model_checkpoint method. It saves the file as .ckpt. I want to load the model using huggingface method .from_pretrained(), but I would get the warning the all of the layers are reinitialized (I renamed my file to pytorch_model.bin) . Any i... | How to save model when using pytorch lightning and huggingface transformer? | CC BY-SA 4.0 | null | 2023-03-03T18:09:19.570 | 2023-03-03T18:15:42.763 | null | null | 12,979,903 | [
"pytorch",
"nlp",
"huggingface-transformers",
"pytorch-lightning"
] |
75,630,503 | 1 | null | null | 0 | 5 | `I rendered a file in AE with help of "bodymovin". Then I uploaded it in my repository on github with other stuff
I connected everything like it was said in this [video](https://www.youtube.com/watch?v=YmPsCD5jRDw). I actually changed links, because I met this problem earlier, when link wouldn't work. But I think I mad... | How do i make an adobe after effect render work on my github webpage? | CC BY-SA 4.0 | null | 2023-03-03T18:08:38.587 | 2023-03-03T18:08:38.587 | null | null | 21,325,531 | [
"html",
"css",
"github",
"after-effects",
"bodymovin"
] |
75,630,509 | 1 | 75,631,165 | null | 0 | 18 | Trying to create events for a calendar on my personal gmail account from visitors from my website. However I can't seem to get it to work.
Currently I am getting
```
...
status: 200,
statusText: 'OK',
request: {
responseURL: 'https://www.googleapis.com/calendar/v3/calendars/primary/events?timeMin=2023-03-03T1... | Google calendar with a service worker | CC BY-SA 4.0 | null | 2023-03-03T18:09:15.707 | 2023-03-03T19:28:36.937 | null | null | 5,773,364 | [
"node.js",
"google-api",
"google-calendar-api",
"google-workspace"
] |
75,630,507 | 1 | null | null | 0 | 32 | Consider the following,
```
val tabs: MutableStateFlow<List<Path>> = getFlowPaths() // user defined
//A function Path.contents(glob: String = "*"): Flow<List<Path>>
val tabsFlow: Flow<List<Flow<List<Path>>>> = tabs.transformLatest {
emit(it.map { path ->
path.contents()
})
}
//But I wa... | How to transform Flow<List<Flow<List<T>>>> to Flow<List<List<T>>>? | CC BY-SA 4.0 | null | 2023-03-03T18:09:05.350 | 2023-03-03T18:09:05.350 | null | null | 13,519,865 | [
"list",
"kotlin",
"kotlin-coroutines",
"coroutine",
"kotlin-flow"
] |
75,630,490 | 1 | null | null | 1 | 19 | I've set up a MERN app that uses the passport.js google-oauth2 strategy and everything works fine locally, but I'm unable to retrieve the user while deployed. I've tried all the solutions already given on this topic like adding the `sameSite` property to `cookieSession` or adding `app.set("trust proxy", 1)` but I stil... | passport.js google oauth2 works locally but not when deployed | CC BY-SA 4.0 | null | 2023-03-03T18:07:00.887 | 2023-03-03T18:07:00.887 | null | null | 12,748,259 | [
"node.js",
"google-oauth",
"passport.js"
] |
75,630,515 | 2 | null | 75,630,277 | 0 | null | InSync is correct
1. JavaScript should be in head with defer or last thing in body, other ways it will not select elements after script tag ! try console.log(img)
2. Naming conventions and modern practices, eg: camelCase, use let and const.
| null | CC BY-SA 4.0 | null | 2023-03-03T18:09:45.063 | 2023-03-03T19:32:40.430 | 2023-03-03T19:32:40.430 | 9,233,391 | 9,233,391 | null |
75,630,512 | 2 | null | 75,629,086 | 1 | null | To fix the leak, we need to remove the associated value for all existing instances of `ClassValue` by calling `ClassValue#remove(Class)`.
In `Groovy`, the easiest way I found is by getting all the `ClassInfo` and calling `InvokerHelper.removeClass(Class)` on each underlying class when closing the `ClassLoader` as next:... | null | CC BY-SA 4.0 | null | 2023-03-03T18:09:33.003 | 2023-03-03T18:09:33.003 | null | null | 1,997,376 | null |
75,630,513 | 2 | null | 75,606,583 | 0 | null | From the doc:
> Raft determines which of two logs is more up-to-date by comparing the
index and term of the last entries in the logs. If the logs have last
entries with different terms, then the log with the later term is more
up-to-date. If the logs end with the same term, then whichever log is
longer is more up-to-da... | null | CC BY-SA 4.0 | null | 2023-03-03T18:09:36.767 | 2023-03-03T19:52:23.753 | 2023-03-03T19:52:23.753 | 6,997,699 | 6,997,699 | null |
75,630,516 | 1 | null | null | 0 | 7 | i have a wizard with footer as
```
<footer>
<button name="create_invoices" id="create_invoice_open" string="Create and View Invoice" type="object" context="{'open_invoices': True}" class="btn-primary"/>
<button name="create_invoices" id="create_invoice" string="Create Inv... | Find method on button click | CC BY-SA 4.0 | null | 2023-03-03T18:09:47.707 | 2023-03-03T18:09:47.707 | null | null | 16,687,936 | [
"odoo-14"
] |
75,630,519 | 2 | null | 75,626,546 | 1 | null | `FsStateBackend` is a legacy class, equivalent to using `HashMapStateBackend` and `FileSystemCheckpointStorage` (see [this documentation](https://nightlies.apache.org/flink/flink-docs-master/docs/ops/state/state_backends/#fsstatebackend)). The issue with incremental checkpoints is that it's not (yet) supported by the `... | null | CC BY-SA 4.0 | null | 2023-03-03T18:10:16.377 | 2023-03-03T18:10:16.377 | null | null | 231,762 | null |
75,630,517 | 1 | null | null | 1 | 35 | I'm in the process of modernizing a code base and was about to switch from old-style, nested enum definitions to (since C++11..??)
In this particular example we're using enums for flags -
Except the compiler won't handle bitwise OR for the variant with scoped enumerations, even when explicitly providing the type as `i... | Confused about C++11 scoped enumerations | CC BY-SA 4.0 | null | 2023-03-03T18:09:55.830 | 2023-03-03T18:09:55.830 | null | null | 3,209,880 | [
"c++",
"c++11",
"enums"
] |
75,630,511 | 1 | null | null | 1 | 18 | I'm trying to grapple with uploading m4a audio files to Google Speech to Text API. A lot of existing questions suggest that using `fluent-ffmpeg` can solve this, but it is quite challenging for me.
## Details
All below codes are written by `TypeScript`.
With `express` and `multer`, I upload `.m4a` file to `Node.js` ... | How to upload m4a audio files to Google Speech to Text API with fluent-ffmpeg? | CC BY-SA 4.0 | null | 2023-03-03T18:09:25.620 | 2023-03-03T18:09:25.620 | null | null | 19,322,168 | [
"node.js",
"google-cloud-platform",
"google-cloud-storage",
"google-speech-api"
] |
75,630,521 | 1 | null | null | -1 | 45 | I want to create fake lastName, which has 256 chars. But this code not working and generate fake last name which have only a few chars. How can I use `fake()` to generate lastName which has 256 chars ?
```
$fake = [
'lastName' => fake()->lastName('256'),
];
```
| How to generate fake data in Laravel? | CC BY-SA 4.0 | null | 2023-03-03T18:10:38.007 | 2023-03-03T18:46:21.047 | 2023-03-03T18:46:21.047 | 1,998,801 | 20,332,776 | [
"php",
"laravel",
"testing"
] |
75,630,523 | 1 | 75,630,898 | null | 1 | 25 | The bot has admin perms, I have no idea why it would do this, seems really weird... any ideas would be great......
This code was generated by ChatGPT btw
Hsggsss hshsssggs
Shsyshgsvsvevsgs
Jshsgscsccsvshshshyw
Hshshsggsfsgs
```
import discord
import random
from discord.ext import commands
# Define your phrases in a di... | Discord Python Bot only responds to dms | CC BY-SA 4.0 | null | 2023-03-03T18:10:58.547 | 2023-03-04T13:14:54.107 | 2023-03-04T13:14:54.107 | 21,313,424 | 19,848,933 | [
"python",
"discord",
"discord.py"
] |
75,630,525 | 2 | null | 75,630,101 | 3 | null | Here's one way to define the additional rule which could be combined with the others:
```
df.with_columns(~pl.all(pl.col("*").is_not_null()).any().over("column"))
```
```
shape: (5, 7)
┌─────┬────────┬───────┬─────────┬─────────┬───────────┬───────┐
│ ID ┆ column ┆ table ┆ value_a ┆ value_b ┆ mandatory ┆ all │
│ --... | null | CC BY-SA 4.0 | null | 2023-03-03T18:11:05.010 | 2023-03-03T18:11:05.010 | null | null | 19,355,181 | null |
75,630,527 | 2 | null | 75,598,337 | 0 | null | When using useSanityQuery it returns a reactive proxy which must be access with .value. This is the case for most composables.
In your case this would be: `data.value.seoTitle` , this only applies in setup.
| null | CC BY-SA 4.0 | null | 2023-03-03T18:11:14.593 | 2023-03-03T18:11:14.593 | null | null | 9,719,057 | null |
75,630,526 | 2 | null | 75,629,801 | 0 | null | with transform translateX() maybe?
the div is just for example
```
.elementor-button-icon-qty[data-counter] {
display: block;
position: absolute;
min-width: 1.6em;
height: 1.6em;
line-height: 1.5em;
border-radius: 100%;
color: var(--items-indicator-text-color,#fff);
background-color: var... | null | CC BY-SA 4.0 | null | 2023-03-03T18:11:11.840 | 2023-03-03T18:11:11.840 | null | null | 5,300,921 | null |
75,630,528 | 2 | null | 75,629,990 | 2 | null | Considering these tho guys,
```
m1
# CHR POS
# 1 10 4342
# 2 20 100
# 3 22 5422
# 4 11 10
m2
# CHR start end Gene
# 1 10 4000 5999 ABC1
# 2 20 50 200 JHT
# 3 22 5000 6000 KLO
# 4 11 5000 6000 KLO
```
you can do:
```
merge(m1, m2) |> {\(.) subset(., data.table::between(.$POS, .$start, .$end)... | null | CC BY-SA 4.0 | null | 2023-03-03T18:11:18.653 | 2023-03-03T18:11:18.653 | null | null | 6,574,038 | null |
75,630,529 | 2 | null | 75,629,286 | 1 | null | [Dynamic blocks](https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks) is the right way to go here. Your code should look something like this:
```
resource "cloudflare_list" "example" {
// some other attributes
dynamic "item" {
for_each = toset(split(",", azurerm_linux_web_app.lwa.out... | null | CC BY-SA 4.0 | null | 2023-03-03T18:11:19.073 | 2023-03-03T18:11:19.073 | null | null | 10,369,131 | null |
75,630,530 | 1 | 75,630,788 | null | 0 | 21 | A CAShapeLayer is added as a sublayer of a view in a certain position:
```
// Use Bezier Path to create a rectangle shape
let barRect = CGRect(x: 0, y: 0, width: 10, height: 100)
let barPath = UIBezierPath(rect: barRect)
let bar = CAShapeLayer()
bar.path = barPath.cgPath
bar.lineWidth = 0.5
// Place anchor on lower lef... | Changing a CAShapeLayer's bounds size height doesn't change the actual size, it changes it's position | CC BY-SA 4.0 | null | 2023-03-03T18:11:20.037 | 2023-03-03T19:07:48.307 | null | null | 9,374,691 | [
"ios",
"swift",
"uikit",
"core-animation",
"cashapelayer"
] |
75,630,514 | 1 | null | null | 1 | 22 | I'm trying to learn html and css, and i'm trying to figure it out how to make languages that allow for vertical writing (chinese, mongolian, japanese, etc) to have their paragraphs begin in the right part of the screen, start new lines left of the previous ones and then start a new row after the previous one end. it wo... | Make chinese texts be divided in blocks | CC BY-SA 4.0 | null | 2023-03-03T18:09:38.677 | 2023-03-03T19:22:35.833 | 2023-03-03T19:22:35.833 | 21,327,799 | 21,327,799 | [
"html",
"css"
] |
75,630,532 | 1 | null | null | 0 | 6 | I am trying to build the logic in informatica to fetch the email id from free text using reg_extract but its not working as expect.I have tried using this logic [a-zA-Z0-9-.]+[a-zA-Z].Can someone please help with this.
Input:
Data storing in column is string within that email ids are present. Need to fetch email ids.Th... | How to write reg_extract in informatica expression to fetch multiple email id from text | CC BY-SA 4.0 | null | 2023-03-03T18:11:32.123 | 2023-03-03T18:11:32.123 | null | null | 21,050,465 | [
"informatica",
"informatica-powercenter",
"informatica-cloud",
"informatica-data-integration-hub"
] |
75,630,534 | 1 | null | null | 0 | 22 | Is there a way to make the column headers repeat on a pandas pivot table? The table is a multi-index and I would like their display tied to the primary index.
Currently showing:
```
Headers
Index 1 Index 2 Data
Index 2 Data
Index 2 Data
Index 1 Index 2 Data
Index 2 Data
```
Expected outcome wou... | Does pandas support repeating column headers on a pivot table? | CC BY-SA 4.0 | null | 2023-03-03T18:11:32.477 | 2023-03-03T18:11:32.477 | null | null | 21,327,780 | [
"pandas",
"pandas-styles"
] |
75,630,531 | 2 | null | 75,630,442 | -1 | null | A consumer is a function. Functions aren't maps. Functions are.. functions - the only thing you can do with them, is invoke the function. Specifically, a consumer is a function that takes in an object of type T, and returns `void` (nothing).
Thus, `Consumer<Map<String,List<String>>> someMap` is completely wrong. It's l... | null | CC BY-SA 4.0 | null | 2023-03-03T18:11:23.677 | 2023-03-03T18:11:23.677 | null | null | 768,644 | null |
75,630,498 | 1 | null | null | 0 | 13 | I have programmed the Tetris game in flutter but I am having some problems with the Gesture Detector.
I wish that when the button that brings the blocks down is held down it causes the block to go down very quickly, so I would like when a Gesture Detector is held down this command was repeated quickly:
```
keyGlobal.cu... | how to perform an action repeatedly when a Gesture Detector is held down Flutter | CC BY-SA 4.0 | null | 2023-03-03T18:08:18.957 | 2023-03-03T18:08:18.957 | null | null | 16,774,958 | [
"flutter",
"for-loop",
"tetris"
] |
75,630,524 | 2 | null | 35,232,162 | 0 | null | I used what was here, but got an error when I tried to add the profile because our password contains an "invalid character". (The error I got was "An attempt was made to load a program with an incorrect format." and found out what caused it after a Google search.) So I added some logic to replace those unacceptable cha... | null | CC BY-SA 4.0 | null | 2023-03-03T18:11:00.673 | 2023-03-03T18:11:00.673 | null | null | 1,561,650 | null |
75,630,536 | 1 | null | null | -1 | 27 | I'm loading a string from UserDefaults and set the text of a TextView to that string. When it includes a line break character, it will just display the line break character in the TextView and not an actual line break.
I save a short bio in UserDefaults and want to be able to include a line break (example: "My Name\n25... | Swift line break not working after loading from UserDefaults | CC BY-SA 4.0 | null | 2023-03-03T18:12:21.157 | 2023-03-04T04:59:59.663 | 2023-03-03T21:43:51.230 | 20,287,183 | 20,675,850 | [
"swift",
"line-breaks",
"userdefaults"
] |
75,630,537 | 2 | null | 75,626,969 | 0 | null | The problem may be that you're putting multiple `Users` in your `SequentialTaskSet` tasks. I haven't seen anyone do that before so I don't know what the behavior would be. I'd recommend making your `MySocketUserClass` a generic class object that doesn't inherit from `User`. You could make it take the `environment` on i... | null | CC BY-SA 4.0 | null | 2023-03-03T18:12:23.923 | 2023-03-03T18:12:23.923 | null | null | 7,355,637 | null |
75,630,535 | 1 | null | null | 1 | 25 | In my derived `CEditEx` class I use:
`SetWindowText(strText);`
Works fine and the control is updated.
But it does not support undo ( + ). If I manually type the change changes undo works.
Is there no way to trigger it to track undo?
---
Example function:
```
void CEditEx::Encode(const CString strTagOpen, const CStri... | Using Undo with CEdit and SetWindowText | CC BY-SA 4.0 | null | 2023-03-03T18:11:32.697 | 2023-03-03T19:03:50.190 | 2023-03-03T19:03:50.190 | 2,287,576 | 2,287,576 | [
"visual-c++",
"mfc",
"undo",
"cedit"
] |
75,630,540 | 2 | null | 75,630,431 | 0 | null | I beleive this is what youre looking for:
```
s = df['Close_Value'].cumprod()
df.assign(Open_Value = df['Open_Value'].where(df['Open_Flag'].eq(1),s.shift()),Close_Value = s)
```
Output:
```
Date ticker Daily_Change Open_Flag Open_Value Close_Value
0 2022-07-01 AMR 0.982223 1 1000.000000 982.2... | null | CC BY-SA 4.0 | null | 2023-03-03T18:12:36.290 | 2023-03-03T18:12:36.290 | null | null | 13,802,115 | null |
75,630,541 | 2 | null | 75,630,508 | 4 | null | You're not returning `True` when the recursive call finds a match.
```
def match(item, text):
if item == text:
return True
if isinstance(item, (list, tuple)):
return any(match(i, text) for i in item)
if isinstance(item, dict):
return any(match(i, text) for i in item.values())
ret... | null | CC BY-SA 4.0 | null | 2023-03-03T18:12:42.603 | 2023-03-03T18:12:42.603 | null | null | 1,491,895 | null |
75,630,538 | 1 | null | null | 0 | 16 | I have a question regarding inserting a data structure into a db and I can't seem to find any documentation on.
I have a data structure
```
#[derive(FromRow, Getters, Default, Serialize, Deserialize, Debug)]
#[serde(crate = "rocket::serde")]
#[getset(get = "pub")]
pub struct RefreshKeys {
id: i64,
customer_id: ... | Inserting a struct into an sqlite db using sqlx and rust | CC BY-SA 4.0 | null | 2023-03-03T18:12:27.140 | 2023-03-03T18:13:26.253 | 2023-03-03T18:13:26.253 | 19,874,683 | 19,874,683 | [
"sqlite",
"rust",
"rust-rocket",
"sqlx"
] |
75,630,543 | 2 | null | 75,625,919 | 0 | null | You need to keep a "visited" list of edges if you don't want to go in circles. And you need to fix your adj/3 (this is what is giving you the double answers!)
```
adj(X,Y,D) :-
( edge(X,Y,D)
; edge(Y,X,D)
).
path(X, Y, D, P) :-
p(X, Y, [], D, P).
p(X, X, _, 0, [X]).
p(X, Y, V, D, [X|P]) :-
adj(X, ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:12:54.710 | 2023-03-03T18:33:35.407 | 2023-03-03T18:33:35.407 | 14,411,997 | 14,411,997 | null |
75,630,539 | 1 | null | null | 0 | 9 | I'm trying to use Nonlinear Data-Fitting and lsqnonlin in Matlab to find parameter (a) of my equation. The code doesn't have any error but the plot which Matlab is suggesting, starts at a different initial value than the points I have so I can't find the correct value for the parameter (a).
This is my code. Can you hel... | using lsqnonlin for parameter optimization but the plot it gives has wrong initial value | CC BY-SA 4.0 | null | 2023-03-03T18:12:32.873 | 2023-03-03T18:12:32.873 | null | null | 21,327,750 | [
"matlab",
"curve-fitting",
"non-linear"
] |
75,630,533 | 1 | null | null | 0 | 10 | I have a JSON array like this:
`"platDist": [`
`{"name": "Wordpress", "total": 1360804},`
`{"name": "Bespoke", "total": 562864},`
What I am trying to achieve is to have each name and total in separate text fields in a Jaspersoft report instead of displaying the whole thing in a table or list.
I have created a new repor... | Adding JSON items to a Jaspersoft report by index | CC BY-SA 4.0 | null | 2023-03-03T18:11:32.427 | 2023-03-03T18:11:32.427 | null | null | 21,327,813 | [
"json",
"jaspersoft-studio"
] |
75,630,546 | 2 | null | 75,630,466 | 0 | null | This is because, as the error says, `interaction.message` has `NoneType`, which you can compare to `undefined` or `nullpointer`. This `interaction.message` is not pointing to a message. You will need to either make sure your function cannot get `NoneType` as argument, or check if `interaction` or `interaction.message` ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:13:10.383 | 2023-03-03T18:13:10.383 | null | null | 21,307,214 | null |
75,630,542 | 1 | null | null | 0 | 44 | I have created a data entry Userform, which asks the user to enter also the section where the data should be added. This is determined my either it is 001-2023 or 002-2023 or 003-2023 and so on as marked in the screenshot below.
[](https://i.stack.imgur.com/psylt.png)
How can I determine a Range using the input from us... | Dynamically determine a range of cells | CC BY-SA 4.0 | null | 2023-03-03T18:12:43.330 | 2023-03-03T19:30:51.053 | 2023-03-03T19:30:51.053 | 21,327,810 | 21,327,810 | [
"excel",
"vba"
] |
75,630,547 | 2 | null | 75,623,701 | 1 | null | First, open your [browser developer console](https://balsamiq.com/support/faqs/browserconsole/), and check the error message.
For instance, if you see "`Cannot read property 'length' of undefined`" (as in [darcyclarke/Repo.js issue 45](https://github.com/darcyclarke/Repo.js/issues/45)), that means:
> Since the default ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:13:14.473 | 2023-03-03T18:13:14.473 | null | null | 6,309 | null |
75,630,544 | 1 | 75,630,905 | null | 2 | 71 | I'm trying to fetch twitter usernames from strings. My current solution looks like this
```
def get_username(string):
p1 = re.compile(r'twitter\.com/([a-z0-9_\.\-]+)', re.IGNORECASE)
p2 = re.compile(r'twitter[\s\:@]+([a-z0-9_\.\-]+)', re.IGNORECASE)
match1 = re.search(p1, string)
match2 = re.search(p2, ... | Can these pairs of regexes be simplified into one? | CC BY-SA 4.0 | null | 2023-03-03T18:12:54.940 | 2023-03-03T20:49:28.907 | 2023-03-03T18:43:29.047 | 2,146,894 | 2,146,894 | [
"python",
"regex"
] |
75,630,545 | 1 | 75,630,609 | null | 0 | 32 | Having two table with same structure:
```
CREATE TABLE Table1
(
Id INT,
Name VARCHAR(256),
Value DECIMAL(18,2),
LineId INT
);
CREATE TABLE Table2
(
Id INT,
Name VARCHAR(256),
Value DECIMAL(18,2),
LineId INT
);
```
Is there a way to match only the first "not used" occurrence of... | match only first "not used" occurrence of a value between two tables | CC BY-SA 4.0 | null | 2023-03-03T18:13:02.293 | 2023-03-03T18:52:55.757 | 2023-03-03T18:22:09.863 | 13,302 | 21,306,519 | [
"sql",
"sql-server",
"stored-procedures"
] |
75,630,550 | 1 | null | null | 0 | 38 | I can't understand why this code works:
```
const numbers = [1, 4, 9];
const roots = numbers.map(Math.sqrt);
```
Although in my mind it should only work like this:
```
const numbers = [1, 4, 9];
const roots = numbers.map(number => Math.sqrt(number));
```
It turns out that the map method somehow understands that the a... | JS map method and callbacks | CC BY-SA 4.0 | null | 2023-03-03T18:14:08.450 | 2023-03-04T01:59:53.050 | 2023-03-04T01:59:53.050 | 16,821,109 | 21,327,886 | [
"javascript"
] |
75,630,553 | 1 | null | null | 0 | 25 | I replaced the old public key in `authorized_keys` file on an ec2 instance with a new public key. I restarted the ssh service with `sudo service sshd restart` but I can still access the ec2 instance with the old key.
| After removing a key from ec2 instance I can still access with that key | CC BY-SA 4.0 | null | 2023-03-03T18:14:42.103 | 2023-03-04T08:34:05.670 | null | null | 1,956,211 | [
"amazon-web-services",
"amazon-ec2",
"ssh",
"ssh-keys"
] |
75,630,549 | 1 | null | null | 0 | 8 | I have this code:
```
DateTime? pickedDate = await showDatePicker(
context: context,
initialEntryMode: DatePickerEntryMode.calendarOnly,
initialDate: DateTime.now(),
firstDate: DateTime(1942),
//DateTime.now() - not to allow to choose befor... | How to add month grid on showDatePicker? | CC BY-SA 4.0 | null | 2023-03-03T18:13:46.043 | 2023-03-03T18:13:46.043 | null | null | 17,361,348 | [
"flutter"
] |
75,630,552 | 1 | null | null | 1 | 17 | I have made a firebase database with products. The GET works, the data shows in console, the data displays first product with picture but the rest without. The first product dont have any buy button but the rest of the products have.
```
async function getProducts(){
try{
const baseURL = 'https://webstore-22fa4-d... | Get all data displayed in DOM javascript from object | CC BY-SA 4.0 | null | 2023-03-03T18:14:28.150 | 2023-03-03T18:39:57.993 | 2023-03-03T18:39:57.993 | 209,103 | 21,327,858 | [
"javascript",
"firebase",
"dom",
"firebase-realtime-database"
] |
75,630,522 | 1 | null | null | 0 | 72 | So I gotta implement a queue in C with a system to protect it and make it accessible through multiple threads.
To do so, I've used the producers-consumers logic:
```
#include <stdlib.h>
#include <threads.h>
#include <stdbool.h>
#include "queue.h"
#include <stdio.h>
int metidos=1;
int quitados=1;
// circular array
ty... | C mutex getting blocked infinitely | CC BY-SA 4.0 | null | 2023-03-03T18:10:46.533 | 2023-03-03T22:12:12.247 | null | null | 13,944,243 | [
"c",
"multithreading",
"mutex",
"wait",
"blocked"
] |
75,630,556 | 1 | null | null | 1 | 17 | I'm trying to do a request to appsync from a node server, using aws4 module.
My keys and iam policy in the user seem correct, but I'm getting this error
```
{"errors":[{"errorType":"BadRequestException","message":"The request signature we calculated does not match the signature you provided. Check your AWS Secret Acce... | Appsync signature authentication failing with signature missmatch | CC BY-SA 4.0 | null | 2023-03-03T18:15:24.973 | 2023-03-04T12:12:27.197 | 2023-03-03T18:32:13.520 | 12,016,332 | 12,016,332 | [
"node.js",
"amazon-web-services",
"aws-appsync"
] |
75,630,562 | 2 | null | 75,630,485 | 1 | null | Try this:
```
"object-curly-newline": ["error", { "multiline": true }],
"object-curly-spacing": ["error", "always"]
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:16:07.167 | 2023-03-03T18:16:07.167 | null | null | 12,347,245 | null |
75,630,557 | 1 | 75,630,589 | null | 0 | 18 | So I already figured out how to have the word count show during the user typing inside the EditText, but Now I want the character count to be blank when there is no characters in the text field.
Here's a pick of what I am talking about.
[](https://i.stack.imgur.com/ASZU5.jpg)
And here's the code that is connecting the ... | How to keep the Character Count Text View Blank when an Edit text is empty in Android Studio | CC BY-SA 4.0 | null | 2023-03-03T18:15:33.670 | 2023-03-03T19:47:26.950 | 2023-03-03T19:47:26.950 | 14,243,745 | 14,243,745 | [
"android",
"xml",
"kotlin",
"textview"
] |
75,630,554 | 1 | null | null | 0 | 8 | sorry if this is a dumb question, but I'm trying to figure out how to use Selenium to control Tor browser (which i understand is modified Firefox), but I can't find any instructions on how to do it on a system that also has regular Firefox and other browsers installed.
I am using the following code but when the starts... | How do I configure webdrivermanger to selectively call Tor or Firefox on demand (Python)? | CC BY-SA 4.0 | null | 2023-03-03T18:14:58.693 | 2023-03-03T18:14:58.693 | null | null | 280,179 | [
"selenium-webdriver",
"tor",
"webdrivermanager-java"
] |
75,630,560 | 2 | null | 52,885,446 | 0 | null | I encountered this error when running my Debian container with `docker compose`, on a MacOS host. Based on @Ben Elliot's answer, I disabled IPv6 by adding this to the containers config in my `docker-compose.yaml`:
```
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
```
Example:
```
services:
srv_a:
build: ...
sy... | null | CC BY-SA 4.0 | null | 2023-03-03T18:15:58.757 | 2023-03-03T18:15:58.757 | null | null | 1,357,387 | null |
75,630,558 | 2 | null | 75,630,510 | 0 | null | call trainer.save_checkpoint("path/to/save/model.ckpt"). This will save your model in a Hugging Face compatible format with the extension .ckpt.
```
import torch
from transformers import AutoModel
class MyModel(torch.nn.Module):
def __init__(self):
super().__init__()
self.model = AutoModel.... | null | CC BY-SA 4.0 | null | 2023-03-03T18:15:42.763 | 2023-03-03T18:15:42.763 | null | null | 1,954,048 | null |
75,630,548 | 1 | 75,631,972 | null | 0 | 41 | I am trying to make a site for practice that gets the movies from the OMDB api and displays the HTML on the page once the user searches for a term.
The problem is that the user needs to click the search button twice for the html to appear.
The api responds and populates my Array (fullMovies) but the html (movieItemHTML... | Javascript - Need to click submit form twice to get html printed - OMDB api | CC BY-SA 4.0 | null | 2023-03-03T18:13:23.977 | 2023-03-03T21:55:58.703 | null | null | 12,602,326 | [
"javascript",
"forms",
"api",
"async-await"
] |
75,630,569 | 1 | null | null | -2 | 22 | I'm wondering if it's possible to run training of [THIS](https://github.com/Guanyuansheng/TFGAN-PLC) neural network using only Google Colab
I tried to run the code and expected that there would be no third-party errors, like uninstalled libraries.
If possible, I would like to ask for detailed help on how to do this.
| Is it possible to run the training of this network in google colab https://github.com/Guanyuansheng/TFGAN-PLC.git? | CC BY-SA 4.0 | null | 2023-03-03T18:17:04.820 | 2023-03-04T13:11:06.983 | 2023-03-04T13:11:06.983 | 11,512,974 | 19,639,226 | [
"python",
"deep-learning",
"neural-network",
"google-colaboratory",
"plc"
] |
75,630,565 | 1 | 75,630,619 | null | 1 | 19 | [](https://i.stack.imgur.com/RwNrS.png)
I'm working with node , puppeteer and cheerio, and I'd like to scrape the header and footer info of the table
I have the following :
```
const data = await page.content(); // get all page html
const $ = cheerio.load(data);
const head = $('#tblAcctBal > thead > tr');
const foot =... | Header value not used as object key | CC BY-SA 4.0 | null | 2023-03-03T18:16:37.543 | 2023-03-03T18:22:54.630 | null | null | 1,592,380 | [
"javascript",
"jquery",
"node.js",
"cheerio"
] |
75,630,567 | 1 | null | null | 0 | 32 | I noticed that the math operation in python is not as precise as before, especially the one involves float numbers. I know it is due to the nature of binary number representation, and we can get through this problem by doing:
```
from decimal import Decimal
a = Decimal('0.1') + Decimal('0.2')
```
I can even do somethi... | Python precision math calculation in interpreter and script without typing decimal module all the time | CC BY-SA 4.0 | null | 2023-03-03T18:16:58.180 | 2023-03-03T18:41:19.573 | null | null | 13,406,850 | [
"python",
"math",
"decimal",
"precision"
] |
75,630,568 | 2 | null | 75,621,548 | 0 | null | Some of the issues:
- In the list has just one element, the first `if` condition is true, and nothing is changed in the list. Yet, a node should be removed...- The condition of the second `if` condition will never be true, because that case (when length is 1) was already picked up by the first `if` block, where the fun... | null | CC BY-SA 4.0 | null | 2023-03-03T18:17:02.873 | 2023-03-03T18:17:02.873 | null | null | 5,459,839 | null |
75,630,572 | 1 | null | null | 0 | 22 | I often want to process several entities in my analysis. I describe them the following way in my `config.yml` file:
```
entities:
fbr:
full_name: "FUBAR"
filepath: "data/junk_1.txt"
snf:
full_name: "SNAFU"
filepath: "data/junk_2.txt"
```
What is the idiomatic way to pass file pa... | What is the proper way to access values in nested dictionaries with Snakemake? | CC BY-SA 4.0 | null | 2023-03-03T18:17:37.227 | 2023-03-03T18:17:37.227 | null | null | 21,327,835 | [
"snakemake"
] |
75,630,576 | 1 | null | null | -2 | 18 | ```
Here are the screenshots
```
[Image 1](https://i.stack.imgur.com/cnbny.png), [Image 2](https://i.stack.imgur.com/ORbhf.png), [image 3](https://i.stack.imgur.com/0Qh8y.png)
This is a simple game for practicing addition, subtraction, multiplication, and division. The starting page looks like this:
Note that no butto... | Anyone know how to create math facts game? | CC BY-SA 4.0 | null | 2023-03-03T18:18:11.207 | 2023-03-03T18:24:24.647 | 2023-03-03T18:24:24.647 | 21,122,681 | 21,122,681 | [
"math"
] |
75,630,570 | 1 | null | null | 0 | 24 | So I have a python script that needs to access webpage content via 'requests'. Due to the environment this script is running in, I need to use a virtual environment. However, this results in the request failing, since it cannot find the certificate from the virtual environment.
```
raise SSLError(e, request=request)
re... | How to avoid SSL error when using python requests in a virtual environment? | CC BY-SA 4.0 | null | 2023-03-03T18:17:09.700 | 2023-03-03T18:17:09.700 | null | null | 21,113,865 | [
"python",
"python-3.x",
"ssl",
"python-requests",
"ssl-certificate"
] |
75,630,577 | 1 | 75,632,409 | null | 0 | 32 | ```
import math
x= float(input())
term = 1
sum = 1
n = 1
eps = 10**-7
while abs(term/sum) > eps:
term = -x/n * term
sum = sum + term
n = n + 1.
print (n)
print (sum)
error = 100 - (sum * 100 /math.exp(-x))
print(abs(error), "%")
```
The above code calculates the value of e^-x to a certain accuracy and com... | How can I plot a graph for the variables n and errorp? | CC BY-SA 4.0 | null | 2023-03-03T18:18:11.440 | 2023-03-04T07:05:28.780 | null | null | 21,327,885 | [
"python",
"matplotlib"
] |
75,630,578 | 2 | null | 48,157,321 | 0 | null | In some cases, you may have to pass the country code ("US") following the zip code to the `GeocodingApi.geocode` function as the argument for the address to be resolved. Most US zip codes are resolved without that, but some would yield empty results unless followed by "US". For example:
```
`14264` yields no results
`1... | null | CC BY-SA 4.0 | null | 2023-03-03T18:18:13.880 | 2023-03-03T18:18:13.880 | null | null | 1,795,482 | null |
75,630,580 | 2 | null | 75,630,425 | 0 | null | Use [process_orders_on_close](https://www.tradingview.com/pine-script-reference/v5/#fun_strategy)
```
//@version=5
strategy("My strategy", process_orders_on_close = true)
```
| null | CC BY-SA 4.0 | null | 2023-03-03T18:18:21.937 | 2023-03-03T18:18:21.937 | null | null | 5,577,188 | null |
75,630,571 | 1 | null | null | 1 | 15 | Flutter version - 3.3.10
I've tried all the various recommendations on this site, but nothing is working for me.
I have a bottom sheet that contains a `TextField` & I need it to be visible when the keyboard appears.
Everything I have tried has the same results, the bottom sheet stays where it is & the keyboard covers i... | Keyboard Hides Bottom Sheet in Flutter App | CC BY-SA 4.0 | null | 2023-03-03T18:17:29.840 | 2023-03-03T18:17:29.840 | null | null | 899,345 | [
"flutter",
"textfield",
"bottom-sheet"
] |
75,630,579 | 1 | null | null | 0 | 19 | I am solving this [question](https://leetcode.com/problems/shortest-path-in-binary-matrix/description/). I am implementing BFS and my implementation is as follows:
```
class Solution:
def shortestPathBinaryMatrix(self, grid: List[List[int]]) -> int:
if grid[0][0] == 1:
return -1
M=len(g... | Why my code is giving TLE while a similar implementation passes (BFS)? | CC BY-SA 4.0 | null | 2023-03-03T18:18:18.667 | 2023-03-03T23:22:45.313 | 2023-03-03T18:18:49.623 | 20,257,171 | 20,257,171 | [
"python",
"python-3.x",
"queue",
"breadth-first-search"
] |
75,630,564 | 1 | null | null | 0 | 24 | Parsing issue: not able to convert server data to swift.
Not getting data and parsing issue :
URL: [https://api.themoviedb.org/3/trending/all/day?api_key=65157e77a8b926892c21c3d666dbb49e](https://api.themoviedb.org/3/trending/all/day?api_key=65157e77a8b926892c21c3d666dbb49e)
```
enum NewtWorkError: Error {
case ur... | Facing issue while getting data from server API | CC BY-SA 4.0 | null | 2023-03-03T18:16:26.510 | 2023-03-04T05:58:19.647 | 2023-03-04T05:58:19.647 | 4,420,967 | 15,365,434 | [
"api",
"parsing",
"backend"
] |
75,630,584 | 1 | null | null | 0 | 20 | I have tried to
It is aking to install sklearn module, but I have installed sklearn using
then it is said . I have used sklearn module in a machine learning model then I converted that python file into pickle then I have loaded that pickle file from main.py [Deploying a Python Flask Web Application using App Engine](... | Deploying a Python Flask Web Application to App Engine Flexible | CC BY-SA 4.0 | null | 2023-03-03T18:19:01.073 | 2023-03-03T18:30:09.083 | 2023-03-03T18:30:09.083 | 400,617 | 18,813,157 | [
"python",
"google-app-engine",
"scikit-learn"
] |
75,630,559 | 2 | null | 75,627,889 | 1 | null | Because `spring.cloud.gateway.routes` is a list of route object , and the number inside the bracket is the index position (0-based) of each route. Now you do not specify anything for `spring.cloud.gateway.routes[0]` up to `spring.cloud.gateway.routes[8]` , so the first 9 items in the `yml` is null.
To fix it, you have ... | null | CC BY-SA 4.0 | null | 2023-03-03T18:15:50.623 | 2023-03-03T18:15:50.623 | null | null | 339,637 | null |
75,630,583 | 2 | null | 75,630,233 | 2 | null | You can use `setproduct()` which gives you all combinations of the given sets (Docs: [https://developer.hashicorp.com/terraform/language/functions/setproduct](https://developer.hashicorp.com/terraform/language/functions/setproduct))
And then iterate over the result of `setproduct(var.alert_level, var.email_subscription... | null | CC BY-SA 4.0 | null | 2023-03-03T18:18:51.510 | 2023-03-03T18:18:51.510 | null | null | 11,335,072 | null |
75,630,586 | 2 | null | 71,839,329 | 0 | null | Well for the people who are working on existing codebases and cannot modify elastic version, here is trick to implement match_phrase_prefix query with elastic versions < 7.10
We can implement MultimatchQuery with phrase_prefix type and run only on a single field
```
MultiMatchQueryBuilder multiMatchQueryBuilder = new M... | null | CC BY-SA 4.0 | null | 2023-03-03T18:19:08.957 | 2023-03-03T18:19:08.957 | null | null | 13,769,625 | null |
75,630,581 | 2 | null | 75,628,449 | 1 | null | This is [exiftool FAQ #3](https://exiftool.org/faq.html#Q3)
> First, make sure you are looking at the right information. Use
ExifTool with a command like this to extract all information from the
file, along with the location it was written:exiftool -a -G1 -s c:\images\test.jpgIn this command, -a allows duplicate tags t... | null | CC BY-SA 4.0 | null | 2023-03-03T18:18:35.923 | 2023-03-03T18:18:35.923 | null | null | 3,525,475 | null |
75,630,589 | 2 | null | 75,630,557 | 2 | null | To hide or show the View you can use `.visibility` property. To show you can use `View.VISIBLE`, and to hide `View.GONE` or `View.INVISIBLE`
```
override fun onTextChanged(s: CharSequence?, start: Int, count: Int, end: Int) {
if (s.isNullOrEmpty()){
itemView.cCount1.visibility = View.GONE
} else {
... | null | CC BY-SA 4.0 | null | 2023-03-03T18:19:19.697 | 2023-03-03T18:19:19.697 | null | null | 4,977,439 | null |
75,630,582 | 1 | null | null | 1 | 16 | Is there a way to set the id (or a counter) in the pre or post save middleware?
I'd like to have a running auto increment that stores the latest index of a document.
In my case whenever I save a new page (no update!), I need the id (or a counter) to start with 0 and increasing with each new page.
I've tried both pre an... | Save auto incrementing id / counter in Mongoose | CC BY-SA 4.0 | null | 2023-03-03T18:18:42.327 | 2023-03-03T18:55:16.200 | null | null | 2,334,114 | [
"javascript",
"mongoose",
"mongoose-schema"
] |
75,630,585 | 1 | null | null | -1 | 48 | I have initialize two variable one is Local and another is Global and I have put different values, For local variable a= 10; for Global variable a= 30; So I want to print both values, So how I can get this?
My code
```
public class Main {
static int a = 30;
public static void main(String[] args) {
int ... | Global Variable in Java | CC BY-SA 4.0 | null | 2023-03-03T18:19:04.053 | 2023-03-04T09:46:00.647 | 2023-03-03T18:50:54.783 | 3,282,436 | 21,327,897 | [
"java"
] |
75,630,588 | 1 | null | null | 0 | 4 | I have this end point for logging a user in. It uses a custom model and when I run the application, it does work well but the unit test fails with error credentials wrong.
```
class LoginAV(APIView):
permission_classes = ()
def post(self, request):
email = request.data.get('email', None)
passwo... | testing login endpoint returns error after test user is created | CC BY-SA 4.0 | null | 2023-03-03T18:19:15.850 | 2023-03-03T18:19:15.850 | null | null | 21,327,891 | [
"django-rest-framework"
] |