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,633,283 | 1 | null | null | 0 | 22 | I am trying to link my GMapsFX API with Java but I get an error when trying to use GMapsFX. I am using NetBeans.
So basically, Everything seems to be running without errors but the actual display is "hidden" and I don't know why.
fxmlfile:
```
<?xml version="1.0" encoding="UTF-8"?>
<?import com.lynden.gmapsfx.GoogleM... | GMapsFX not displaying but running | CC BY-SA 4.0 | null | 2023-03-04T02:25:58.437 | 2023-03-04T08:39:32.167 | 2023-03-04T08:39:32.167 | 11,107,541 | 21,329,335 | [
"java",
"javafx"
] |
75,633,297 | 2 | null | 75,633,142 | 2 | null | You can use `labelled::var_label()` to both extract and assign the labels:
```
library(haven)
library(labelled)
var_label(df_new) <- unlist(var_label(df_old))
attr(df_new$A1_1_new, "label")
# "Use Facebook"
```
| null | CC BY-SA 4.0 | null | 2023-03-04T02:31:33.020 | 2023-03-04T02:31:33.020 | null | null | 17,303,805 | null |
75,633,288 | 1 | null | null | 0 | 11 | I am trying to create a shared component that will accept a `useForm` props and will use it as part of `useFieldArray`. However, my intention is that the `useFieldArray` will only accept a `FormValues` input type.
So far I have:
```
type FormValues = {
[x: string]: {
key: string,
value: string
}... | Setting custom input type for passing down controller from parent components to useFieldArray in child component in react-hook-form | CC BY-SA 4.0 | null | 2023-03-04T02:28:06.287 | 2023-03-04T15:16:14.007 | 2023-03-04T15:16:14.007 | 13,060,047 | 13,060,047 | [
"reactjs",
"typescript",
"typescript-typings",
"react-hook-form"
] |
75,633,293 | 2 | null | 75,632,908 | 2 | null | Here's a small function that can help you do that -
```
select_by_names <- function(data, x, y) {
nm <- names(data)
data[match(x, nm) : match(y, nm)]
}
```
I have created my own example to show how this function works.
```
tmp <- head(mtcars, 2)
spec_list <- list(README = tmp, `SIGN-OFF` = tmp, `REVISION HISTORY` ... | null | CC BY-SA 4.0 | null | 2023-03-04T02:29:57.320 | 2023-03-04T02:29:57.320 | null | null | 3,962,914 | null |
75,633,301 | 2 | null | 75,633,256 | 0 | null | Is there a ZOrder function for this control? Usually you can just do control.ZOrder(0) to bring the control in front.
| null | CC BY-SA 4.0 | null | 2023-03-04T02:32:54.763 | 2023-03-04T02:32:54.763 | null | null | 21,329,438 | null |
75,633,291 | 1 | null | null | 0 | 35 | Trying to install JMeter5.5 and followed this [article](https://sarkershantonu.github.io/2021/01/06/install-jmeter-plugins-cli/) , I'm with step 7 to download the plugins using cmdrunner-2.3.jar however I got issue on downloading json-lib. Please advise on how to resolve it.
This is the error message I'm gettiung when ... | JAVA - Failed to download json-lib | CC BY-SA 4.0 | null | 2023-03-04T02:28:57.183 | 2023-03-04T05:55:51.730 | null | null | 11,941,998 | [
"java",
"jmeter"
] |
75,633,306 | 2 | null | 75,633,116 | 0 | null | One general solution is use `satisifies` operator to keep type information not lost.
But it seems like the return type is mapped from the method so I suggest to defined a mapping, then use it to define the type for `toData`:
```
interface ToDataReturnMap {
text: string,
currency: number,
date: Date
}
type ToData... | null | CC BY-SA 4.0 | null | 2023-03-04T02:35:12.170 | 2023-03-04T02:35:12.170 | null | null | 19,870,522 | null |
75,633,298 | 1 | null | null | 0 | 21 | so I am uploading distribution lists to an app I just started which have a variety of item information. So, for example I have excel sheets, openoffice sheets, and csv files that will have rows containing data such as:
```
[(itemsource: "Moen", itemnumber: "S7170SRS", description: "Spot Resist Single Mount Kitchen Fauc... | Most efficient way to update/create records in rails with slightly different records | CC BY-SA 4.0 | null | 2023-03-04T02:31:48.297 | 2023-03-04T02:31:48.297 | null | null | 16,548,915 | [
"ruby-on-rails",
"postgresql",
"syntax"
] |
75,633,299 | 1 | null | null | 0 | 11 | I used to manage many slateJs in one page, but when i tried to update one editor it update only the last one and never the right, how we can have many slateJs instance in one page.
```
TextEditor:
<Slate
editor={editor}
value={initialValue}
onChange={value => onChangeCurrentNote(val... | Set One instance SlateJs editor in one page that contains many edirots | CC BY-SA 4.0 | null | 2023-03-04T02:32:31.983 | 2023-03-04T02:32:31.983 | null | null | 4,670,263 | [
"text-editor",
"slatejs"
] |
75,633,303 | 1 | null | null | -1 | 12 | I am working on some javascript code for an extension I'm attempting to write for a platform called Cockpit. in their [API documentation](https://cockpit-project.org/guide/latest/cockpit-file.html) they provide the following example:
```
cockpit.file("/path/to/file").read()
.then((content, tag) => {
...
... | How do I get the result data back synchronously from a promise in javascript? | CC BY-SA 4.0 | null | 2023-03-04T02:33:44.700 | 2023-03-04T02:33:44.700 | null | null | 21,329,387 | [
"javascript",
"reactjs",
"async-await",
"jsx",
"cockpit"
] |
75,633,307 | 1 | null | null | 0 | 12 | I am in need of a suggestion of either a third party or open source tool that can be integrated with .Net core web application and build a tool to draw visual diagrams.
The tool should look similar to Visio but that needs to be developed for internal purpose.
Can anyone suggest me such drawing tool that I can integrate... | Visual diagram tool suggestions in .Net core web application | CC BY-SA 4.0 | null | 2023-03-04T02:35:16.343 | 2023-03-04T06:03:07.453 | 2023-03-04T06:03:07.453 | 4,420,967 | 8,236,017 | [
"drawing",
"visio"
] |
75,633,302 | 2 | null | 75,633,169 | 0 | null | On the error from terminal I can see ModuleNotFoundError: No module named '"travelApp' has extra double quotes fix this in your code and it will start working. Its a syntax error which is causing the issue.
| null | CC BY-SA 4.0 | null | 2023-03-04T02:33:17.783 | 2023-03-04T02:42:38.277 | 2023-03-04T02:42:38.277 | 17,562,044 | 3,443,037 | null |
75,633,300 | 1 | 75,633,421 | null | 0 | 44 | > I would like insert the Query in DAO interface like below.
```
@Query("SELECT * FROM words WHERE childId = :childId ORDER BY " +
"CASE WHEN parameter = 0 THEN dateTime END DESC, " +
"CASE WHEN parameter = 1 THEN dateTime END ASC, " +
"CASE WHEN parameter = 2 THEN wordName END DESC, " +
"CASE WHEN parameter = 3 THEN w... | ROOM ORDER BY CASE: Where Can I define the optional parameter? | CC BY-SA 4.0 | null | 2023-03-04T02:32:51.437 | 2023-03-04T05:05:28.240 | 2023-03-04T02:36:57.677 | 20,990,119 | 20,990,119 | [
"java",
"android",
"android-room"
] |
75,633,289 | 1 | null | null | -1 | 13 | I'm developing a bot for discord, where new users will identify themselves through a modal form and wait for the approval of some staff so that they are receiving a position. But I am not able to make a button for some staff to approve.
after the user identifies himself, his information is sent to a log channel, for t... | Button for staff to approve user identification | CC BY-SA 4.0 | null | 2023-03-04T02:28:16.097 | 2023-03-04T02:28:16.097 | null | null | 21,291,184 | [
"python",
"button",
"discord.py",
"modal-dialog"
] |
75,633,308 | 1 | null | null | -1 | 8 | I'm trying to make a bot that removes a user's role a certain amount of time after it has been added, I'm having some issues with it though
I tried asking ChatGPT, it told me to do it like this
`time_left = role.created_at.replace(tzinfo=None) + timedelta(days=role_length) - now`
I expected it to check when a user got ... | How do i make discordpy check when a user got a specific role? | CC BY-SA 4.0 | null | 2023-03-04T02:35:19.093 | 2023-03-04T02:35:19.093 | null | null | 21,329,452 | [
"python",
"datetime",
"discord"
] |
75,633,311 | 2 | null | 75,632,230 | 0 | null | ok i solved it, with a little research and fine tuning i was able to use this to make everything work as i needed it. So in case anyone else faces this issue here is the code i used
```
function toggle_form(id) {
var e = document.getElementById(id);
var allForms = document.querySelectorAll('div[id^=new]');
... | null | CC BY-SA 4.0 | null | 2023-03-04T02:36:17.663 | 2023-03-04T02:36:17.663 | null | null | 7,359,060 | null |
75,633,305 | 1 | null | null | 0 | 19 | i am very new and only amateur. only thing i did before with script is creating terminal server.
My company have a problem. RDP connection and the antimalware service blocking bruteforce attacks and almost every server gets notifications from inbound connections blocked; svchost.exe blocks from unknown IP's etc.
Very n... | Script RDP Server Port change | CC BY-SA 4.0 | null | 2023-03-04T02:34:50.403 | 2023-03-04T11:20:32.990 | 2023-03-04T07:26:33.770 | 6,203,113 | 21,329,414 | [
"powershell"
] |
75,633,314 | 2 | null | 75,633,273 | 0 | null | There's an event called `on_reaction_add` in discord.py
[https://discordpy.readthedocs.io/en/stable/api.html#discord.on_reaction_add](https://discordpy.readthedocs.io/en/stable/api.html#discord.on_reaction_add)
```
@bot.event
async def on_reaction_add(reaction, user):
message = reaction.message
if "hi" in messa... | null | CC BY-SA 4.0 | null | 2023-03-04T02:36:46.177 | 2023-03-04T02:36:46.177 | null | null | 13,774,161 | null |
75,633,310 | 1 | 75,634,084 | null | 0 | 23 | I am using Vue Router 4 in Vue 3 Composition API, and I want to make a back button. I want to know what is the most optimal and good practice to redirect, a RouterLink or the router with the push method..
RouterLink
```
<RouterLink :to="{ name: 'clients-index' }">
<AppButton text="Volver" icons="fa-chevron-left" ... | Is it better to use RouterLink or router.push for a button? | CC BY-SA 4.0 | null | 2023-03-04T02:35:44.950 | 2023-03-04T06:37:40.410 | 2023-03-04T02:38:25.720 | 16,456,173 | 16,456,173 | [
"javascript",
"vue.js",
"vuejs3",
"vue-router",
"vue-router4"
] |
75,633,309 | 1 | null | null | 1 | 16 | I'm trying to setup webpack on my JS project, but it always flashing errors
```
> code@1.0.0 build
> webpack
'Workflows\Code\node_modules\.bin\' is not recognized as an internal or external command,
operable program or batch file.
node:internal/modules/cjs/loader:942
throw err;
^
Error: Cannot find module 'E:\Kal... | Setup webpack on my basic JS project NO framework | CC BY-SA 4.0 | null | 2023-03-04T02:35:22.330 | 2023-03-04T08:05:12.430 | 2023-03-04T08:05:12.430 | 2,395,282 | 18,749,078 | [
"javascript",
"webpack",
"webpack-dev-server",
"webpack-5"
] |
75,633,317 | 2 | null | 68,797,405 | 0 | null | In neovim 0.9.0 it was included support for environment variable that allows configuring the config file location
For instance, by setting , config files will be in C:\Users\User\AppData\Local\nvim-v2
Reference: [https://github.com/neovim/neovim/pull/22128](https://github.com/neovim/neovim/pull/22128)
| null | CC BY-SA 4.0 | null | 2023-03-04T02:38:39.687 | 2023-03-04T02:38:39.687 | null | null | 520,275 | null |
75,633,312 | 2 | null | 75,633,260 | 0 | null | In the code you provided, cs.py calls set_globvar_to_one() from myMain.py before calling print_globvar(). However, when main.py is imported, the line globvar = 0 initializes the global variable globvar to 0.
Therefore, when set_globvar_to_one() is called from cs.py, it sets the global variable globvar to 1, but this mo... | null | CC BY-SA 4.0 | null | 2023-03-04T02:36:26.773 | 2023-03-04T02:43:23.690 | 2023-03-04T02:43:23.690 | 21,275,637 | 21,275,637 | null |
75,633,318 | 2 | null | 75,633,295 | 3 | null | You're getting an error because you're not actually , but , and you can't assign to an array. An initialization happens at the time a variable is defined.
What you're looking for is:
```
struct ArrayAdv arrAdv =
{ .item = { .stat = { .A = { 33, 2, 7, 88, 35, 90, 102, 23, 81, 97 } } } };
```
| null | CC BY-SA 4.0 | null | 2023-03-04T02:38:43.410 | 2023-03-04T02:38:43.410 | null | null | 1,687,119 | null |
75,633,316 | 2 | null | 75,633,210 | 1 | null | According to [this comment](https://stackoverflow.com/questions/70745502/sympy-piecewise-and-refine#comment125068994_70745502), you can pass inequalities as an assumption to [refine](https://docs.sympy.org/latest/modules/assumptions/refine.html#sympy.assumptions.refine.refine):
```
print(refine(integrate(f,(x,r,r+rho))... | null | CC BY-SA 4.0 | null | 2023-03-04T02:38:02.063 | 2023-03-04T02:43:04.850 | 2023-03-04T02:43:04.850 | 7,941,251 | 7,941,251 | null |
75,633,321 | 2 | null | 75,633,004 | 0 | null | You can test whether you can pull the docker image separately:
```
$ docker pull ruby:3.1.0-preview1-buster
```
If it is downloaded successfully then you should be able to build your Dockerfile.
If it doesn't work the image tag might not be compatible with the M1 machine. Then try another tag from [Docker Hub](https:/... | null | CC BY-SA 4.0 | null | 2023-03-04T02:40:25.407 | 2023-03-04T02:40:25.407 | null | null | 2,107,463 | null |
75,633,324 | 2 | null | 65,085,956 | 0 | null | I use the code as fellow at the terminal in PyCharm:
venv\Scripts\python -m pip install pip==20.2.4
tip:When it done,you can find the version of pip is right at settings-project interpreter.
| null | CC BY-SA 4.0 | null | 2023-03-04T02:40:48.843 | 2023-03-04T02:40:48.843 | null | null | 21,238,413 | null |
75,633,322 | 1 | 75,633,403 | null | 2 | 23 | I'm new to programming and I'm trying to review this C++ primer book, however while checking LAMBDA part I get into a compile error on my Visual studio 2022.
```
#include <algorithm>
#include <iostream>
using namespace std;
int main()
{
int i = 10;
if ([&]()->bool { while(i) --i; return true; })
cout ... | error C2451: a conditional expression of type 'main::<lambda_1>' is not valid | CC BY-SA 4.0 | null | 2023-03-04T02:40:38.683 | 2023-03-04T03:03:27.943 | null | null | 6,897,866 | [
"c++",
"lambda"
] |
75,633,323 | 1 | null | null | 1 | 17 | I'm trying to use a MySQL database to store prefixes for different servers. When I use a command to update the prefix in the DB it does work as I can see the change in MySQL but when I try to use the new prefix it seems that command_prefix is not updating since the new prefix doesn't work, UNLESS I restart the bot. Ple... | Why is my Discord.py bot's command_prefix not updating after I update MySQL unless I restart the bot? | CC BY-SA 4.0 | null | 2023-03-04T02:40:42.393 | 2023-03-04T02:40:42.393 | null | null | 17,807,427 | [
"python",
"discord",
"discord.py"
] |
75,633,319 | 2 | null | 75,633,126 | 2 | null | All pointers to objects from ruby will come from `malloc` et. al.
From the man page for `malloc`:
> The `malloc()` and `calloc()` functions return a pointer to the allocated
memory, which is suitably aligned for any built-in type.
Thus, `malloc` allow (e.g.):
```
double *dptr = malloc(sizeof(*dptr));
```
The alig... | null | CC BY-SA 4.0 | null | 2023-03-04T02:40:18.880 | 2023-03-04T03:00:51.183 | 2023-03-04T03:00:51.183 | 5,382,650 | 5,382,650 | null |
75,633,333 | 1 | 75,634,150 | null | 1 | 10 | I'm using Firebird 2.5 and need to get the date of creation of a table.
```
SELECT DISTINCT RDB$RELATION_NAME
FROM RDB$RELATION_FIELDS
WHERE RDB$SYSTEM_FLAG=0;
```
I've tried with this table but there isn't any date field.
| How to get the creation date of a table on Firebird 2.5 | CC BY-SA 4.0 | null | 2023-03-04T02:43:16.470 | 2023-03-04T06:57:39.463 | 2023-03-04T06:57:39.463 | 466,862 | 6,436,196 | [
"firebird",
"firebird2.5"
] |
75,633,328 | 1 | null | null | 0 | 5 | I am trying to run a Python script that accesses Google apps using Google's [Python Quickstart](https://developers.google.com/sheets/api/quickstart/python) on Python 3.10 on Windows 11 (originally installed as W10). The early steps are: enable the API, Create OAuth client ID, install the Google Client Library with Pip,... | How to make Google oauth work in Python Quickstart | CC BY-SA 4.0 | null | 2023-03-04T02:41:02.100 | 2023-03-04T02:41:02.100 | null | null | 1,502,730 | [
"google-apps",
"google-apps-script-api"
] |
75,633,329 | 2 | null | 75,633,075 | 5 | null | When you call `tobytes()` on the boolean array*, the data is likely encoded per row. In your second example, there are 48 booleans in each row of `img`. So each row can be represented with 6 bytes (48 bits). 6 bytes * 84 rows = 504 bytes in `img`. However, in your first example, there are 84 pixels per row, which is no... | null | CC BY-SA 4.0 | null | 2023-03-04T02:41:27.267 | 2023-03-04T09:11:56.057 | 2023-03-04T09:11:56.057 | 21,293,703 | 21,293,703 | null |
75,633,327 | 2 | null | 75,633,208 | 2 | null | In your situation, how about the following 2 patterns?
### Pattern 1:
In this pattern, the values are copied with `setValues` and "Method: spreadsheets.values.update" of Sheets API. So, please enable Sheets API at Advanced Google services. The reason for using Sheets API is to reduce the process cost by avoiding tha... | null | CC BY-SA 4.0 | null | 2023-03-04T02:40:55.187 | 2023-03-04T02:40:55.187 | null | null | 7,108,653 | null |
75,633,331 | 2 | null | 75,632,862 | 1 | null | [GLU](https://en.wikipedia.org/wiki/OpenGL_Utility_Library) != [GLUT](https://en.wikipedia.org/wiki/OpenGL_Utility_Toolkit).
[FindOpenGL](https://cmake.org/cmake/help/v3.17/module/FindOpenGL.html) defines several `IMPORTED` targets, including `OpenGL::GLU`. Add that to `target_link_libraries()`:
```
target_link_librar... | null | CC BY-SA 4.0 | null | 2023-03-04T02:42:53.620 | 2023-03-04T02:57:28.133 | 2023-03-04T02:57:28.133 | 44,729 | 44,729 | null |
75,633,315 | 2 | null | 75,633,291 | 0 | null | The problem is that the url it's trying to download from is timing out.
```
2023-03-04 02:02:43,339 INFO o.j.r.JARSourceHTTP: Downloading: http://search.maven.org/remotecontent?filepath=net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15.jar
...
java.net.ConnectException: Connection timed out (Connection timed out)
```
pi... | null | CC BY-SA 4.0 | null | 2023-03-04T02:37:30.983 | 2023-03-04T05:55:51.730 | 2023-03-04T05:55:51.730 | 499,581 | 499,581 | null |
75,633,335 | 2 | null | 75,633,023 | 1 | null | ```
$ awk 'NR==1 {for(i=1;i<=NF;i++) if($i~/^sam/) cols[i]}
{for(i=1;i<=NF;i++)
if(i in cols)
{split($i,t,":"); $i=t[1]}}1' file |
column -t
col1 col2 col3 col4 sam1 sam2 sam3
a b c d 0/1 1/0 0/1
e f g h 0/0 1/1 0/0
```
... | null | CC BY-SA 4.0 | null | 2023-03-04T02:43:38.613 | 2023-03-04T02:49:19.170 | 2023-03-04T02:49:19.170 | 1,435,869 | 1,435,869 | null |
75,633,330 | 1 | null | null | 0 | 26 | At the moment, I am interested in networking and in order to learn more, I decided to use the PcapPlusPlus library to capture packets on my local network. My goal is to understand how packets are structured, position and content of the different headers (ethernet,ip,etc)
I compile in C++20 using cmake and vcpkg to mana... | I get an empty device list when using PcapPlusPlus | CC BY-SA 4.0 | null | 2023-03-04T02:42:11.237 | 2023-03-04T05:19:30.747 | 2023-03-04T03:33:36.687 | 21,329,381 | 21,329,381 | [
"c++",
"networking",
"pcap",
"pcapplusplus"
] |
75,633,334 | 1 | null | null | -1 | 32 | I am parsing multiple HTML pages using beautiful soup. Most of the scenarios work great. I want to include text along with the URL for links.
The current syntax is:
```
soup = MyBeautifulSoup(''.join(body), 'html.parser')
body_text = self.remove_newlines(soup.get_text())
```
I found an online recommendatio... | Beautiful Soup - Get all text, and preserve link html? | CC BY-SA 4.0 | null | 2023-03-04T02:43:32.597 | 2023-03-05T01:23:27.680 | 2023-03-05T01:23:27.680 | 853,113 | 853,113 | [
"python",
"beautifulsoup"
] |
75,633,339 | 2 | null | 47,630,163 | 0 | null |
The Axios documentation hasn't updated yet, but there is a convenient way to to make formdata nowadays, by using the `axios.toFormData()` method.
Here is its TypeScript definition:
```
export function toFormData(sourceObj: object, targetFormData?: GenericFormData, options?: FormSerializerOptions): GenericFormData;
```... | null | CC BY-SA 4.0 | null | 2023-03-04T02:45:03.463 | 2023-03-04T02:45:03.463 | null | null | 14,923,262 | null |
75,633,325 | 1 | null | null | 0 | 20 | In R studio, I have a group of histograms with three columns and two rows for each 'type' x, y, z, -x, -y, and -z. Currently, the scales fit to each individual graph type. The problem is that some types have a max bin of say 30, where others have a max bin of 5, so you could not visually compare the graphs together.
Wh... | Adjust Axis Scales of Histograms | CC BY-SA 4.0 | null | 2023-03-04T02:40:50.090 | 2023-03-04T08:22:17.510 | null | null | 20,778,871 | [
"r",
"ggplot2"
] |
75,633,343 | 2 | null | 75,633,023 | 1 | null | ```
awk '
BEGIN { FS = OFS = "\t" }
NR==1 { while(i++<NF) if ($i ~ /^sam/) p[i] }
NR>1 { for (i in p) { sub(/:.*$/,"",$i); u[$i] } }
{ print >"output" }
END { for (i in u) print i >"unique" }
' input
```
- - - -
awk's arrays are hashes so storing items as keys of an array gives the unique items
| null | CC BY-SA 4.0 | null | 2023-03-04T02:47:02.113 | 2023-03-04T02:47:02.113 | null | null | 10,971,581 | null |
75,633,341 | 2 | null | 75,624,873 | 0 | null |
### Question 1
There are 3 main types of provisioning:
- - -
If you have to create the users in the application, then it would be manual provisioning. Some applications don't support JIT or automatic provisioning, you'll have to check with the application vendor to see what's supported.
### Question 2
No, you wo... | null | CC BY-SA 4.0 | null | 2023-03-04T02:45:40.627 | 2023-03-04T02:45:40.627 | null | null | 18,748,575 | null |
75,633,346 | 2 | null | 74,283,043 | 1 | null | You can also consider `talib`:
```
import talib
upper_bands, middle_bands, lower_bands = talib.BBANDS(
real=candles['close'],
timeperiod=20,
nbdevup=1,
nbdevdn=1,
matype=talib.MA_Type.SMA
)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T02:47:57.563 | 2023-03-04T02:47:57.563 | null | null | 4,170,095 | null |
75,633,348 | 1 | null | null | 0 | 11 | I run Rubymine IDE (Windows 11) for a remote project (Ubuntu 20) via ssh. Hitting cursor controls left - right, backspace, and most annoyingly, the Enter key seem do not cause anything during text editing, though they work for menu navigation. Any fixes or workarounds? At the moment I use context copy-paste to enter ne... | Rubymine cursor control and Enter key do not work on remote host | CC BY-SA 4.0 | null | 2023-03-04T02:48:22.897 | 2023-03-04T16:54:50.503 | 2023-03-04T16:54:50.503 | 5,874,981 | 5,874,981 | [
"intellij-idea",
"ssh",
"rubymine",
"enter"
] |
75,633,344 | 1 | null | null | 0 | 10 | I am trying to debug a cross compiled remote target with GDB.
The target OS only has gdbserver so I have to use a custom GDB from my WSL host to remotely attach to it. The target is cross compiled with a custom Yocto distro toolchain, which is .
I can install the toolchain with a helper script for a shell session, and ... | How to install toolchain and custom GDB in VSCode to debug remote target | CC BY-SA 4.0 | null | 2023-03-04T02:47:41.923 | 2023-03-04T02:47:41.923 | null | null | 10,757,062 | [
"visual-studio-code",
"gdb",
"vscode-remote",
"toolchain",
"gdbserver"
] |
75,633,342 | 1 | null | null | -2 | 20 | I have created a plugin that requires the app consuming it to call a function, `initializePluginStore(initialState)` to initialize the store. Where should the app consuming it call this function?
Plugin code:
/store.ts
```
let store = null
export const configurePluginStore = (initialState) => {
const { key, redu... | Where can I initialize a plugin's Redux store? | CC BY-SA 4.0 | null | 2023-03-04T02:46:36.060 | 2023-03-04T02:46:36.060 | null | null | 16,682,845 | [
"javascript",
"reactjs",
"typescript",
"redux",
"react-redux"
] |
75,633,349 | 2 | null | 55,846,442 | 0 | null | Create launch.json inside .vscode in your workspace and set in there, instead of using vscode user profile settings.
I don't know why :(
| null | CC BY-SA 4.0 | null | 2023-03-04T02:48:26.177 | 2023-03-04T02:48:26.177 | null | null | 12,924,996 | null |
75,633,336 | 2 | null | 75,614,419 | 0 | null | You don't need to push the .prov file (and actually can't, that's the error you're seeing).
If the .prov file is present next to your chart when you push it, it will be pushed as an additional layer in the manifest.
Here's an example.
```
$ ls
provenance provenance-0.1.0.tgz provenance-0.1.0.tgz.prov
$ helm push pro... | null | CC BY-SA 4.0 | null | 2023-03-04T02:43:42.940 | 2023-03-04T02:43:42.940 | null | null | 16,140,240 | null |
75,633,350 | 2 | null | 72,017,231 | 0 | null | If the two point clouds are similar:
1. Align the mass center of the 2nd PC to that of the 1st PC (initial position values)
2. Perform PCA to both PCs
3. Take the 3 possibilities of axis-alignment between the two PCs as the initial orinetation values for ICA.
Of course, the expected result is not guaranteed.
The abo... | null | CC BY-SA 4.0 | null | 2023-03-04T02:49:27.623 | 2023-03-04T02:49:27.623 | null | null | 16,887,438 | null |
75,633,351 | 2 | null | 72,736,407 | 0 | null | In my case, I have an M1, 2020 and I get the error "Downloaded executables cannot"
1- Upgrade to the latest version of flutter with
```
flutter upgrade
```
2- Then remove the bin cache files
```
rm -r ~/Documents/SDK/flutter/bin/cache
```
Run "flutter doctor" and you should be all set
| null | CC BY-SA 4.0 | null | 2023-03-04T02:50:09.813 | 2023-03-04T02:55:01.537 | 2023-03-04T02:55:01.537 | 17,870,841 | 17,870,841 | null |
75,633,353 | 2 | null | 75,630,989 | 0 | null | Try the following aggregation with a correlated subquery in the having clause:
```
select user_id,
emotion,
year(max(registered_on)) year_
from users_emotions ue
group by user_id, emotion
having count(*) =
(
select max(cnt)
from
(
select user_id, emotion, count(*) cnt
from use... | null | CC BY-SA 4.0 | null | 2023-03-04T02:50:24.647 | 2023-03-04T02:50:24.647 | null | null | 12,705,912 | null |
75,633,347 | 1 | null | null | 0 | 21 | When I try to create a Grid, it throw `System.Runtime.InteropServices.COMException`
```
var definition = new RowDefinition {Height = GridLength.Auto};
var grid = new Grid { RowDefinitions = { definition, definition } };
```
StackTrace below:
```
System.Runtime.InteropServices.COMException (0x800F1000): No installed co... | Get a COMException from WinUI3 when create a grid | CC BY-SA 4.0 | null | 2023-03-04T02:48:09.203 | 2023-03-04T02:48:09.203 | null | null | 18,181,098 | [
"c#",
"winui-3",
"comexception",
"windows-app-sdk"
] |
75,633,355 | 2 | null | 75,606,498 | 0 | null | Looks like some form of inequality join - if that is the case, you can use [conditional_join](https://pyjanitor-devs.github.io/pyjanitor/api/functions/#janitor.functions.conditional_join.conditional_join) from [pyjanitor](https://pyjanitor-devs.github.io/pyjanitor/) to get your results
```
# pip install pyjanitor
impor... | null | CC BY-SA 4.0 | null | 2023-03-04T02:51:12.267 | 2023-03-04T02:51:12.267 | null | null | 7,175,713 | null |
75,633,356 | 2 | null | 35,094,809 | 0 | null | In my case (golang server), the request had double slashes in the URI and the golang server was redirecting to the single slashed version of the URI. Inexplicably, `HttpClient` was using `GET` on the redirected URI instead of the original `POST`.
For example, I was mistakenly requesting `https://example.com//foo` and t... | null | CC BY-SA 4.0 | null | 2023-03-04T02:51:14.170 | 2023-03-04T02:51:14.170 | null | null | 2,516,916 | null |
75,633,359 | 2 | null | 75,633,322 | 0 | null | ```
if ([&]()->bool { while(i) --i; return true; })
```
The lambda is not called there. Try
```
if ([&]()->bool { while(i) --i; return true; }())
```
It might be a misprint in the book. I can't find it on [C++ Primer Errata](https://ptgmedia.pearsoncmg.com/images/9780321714114/errata/9780321714114_errata_10-31-12.htm... | null | CC BY-SA 4.0 | null | 2023-03-04T02:51:46.830 | 2023-03-04T02:51:46.830 | null | null | 6,752,050 | null |
75,633,357 | 1 | null | null | 0 | 9 | I have a web application with React front end and Node backend. I want to pack this whole app into a distributable (exe msi etc) and install on clients machine. Once they start the app it will run the server on a local port and react app will run in the browser on another local port. Is this possible? If so what tools ... | Is it possible to pack a react app into a distributable and install on any computer? | CC BY-SA 4.0 | null | 2023-03-04T02:51:36.123 | 2023-03-05T01:37:50.760 | 2023-03-05T01:37:50.760 | 10,601,556 | 10,601,556 | [
"node.js",
"reactjs",
"exe",
"monorepo",
"pack"
] |
75,633,352 | 2 | null | 75,633,248 | 1 | null | There were a few errors, first, the `JSX` function should have a name starting with a capital letter so, from `cards` to `Cards`.
This is done so that you can use this function as a `tag` in other functions.
Secondly added the `return` statement to the `Cards` function.
This is the updated `Projects.jsx`,
```
import Re... | null | CC BY-SA 4.0 | null | 2023-03-04T02:50:22.320 | 2023-03-04T02:50:22.320 | null | null | 19,757,319 | null |
75,633,340 | 2 | null | 75,632,960 | 0 | null | In reviewing what your project is attempting to do, I took your code and did a bit of refactoring and introduced a new item you may or may not be familiar with, and that is a structure. The characteristics of each animal (name, class, section) seemed to fit into the usage of a structure array such that you might read ... | null | CC BY-SA 4.0 | null | 2023-03-04T02:45:13.747 | 2023-03-04T02:45:13.747 | null | null | 6,032,177 | null |
75,633,354 | 1 | null | null | -1 | 11 | I have a php file name (download.php?url=$url), basically I make a request of xhr to that php file from my JS code. Now, the url=$url is query, and basically the download.php will execute a py script using the `$output = exec($command);`. Now, it fetch the file link and return response in json and write it to a file, a... | How to Run Exec Command In Background (PHP & Python) Nginx | CC BY-SA 4.0 | null | 2023-03-04T02:50:35.770 | 2023-03-04T02:50:35.770 | null | null | 19,365,052 | [
"python",
"php",
"nginx"
] |
75,633,358 | 2 | null | 75,394,159 | 0 | null | I found a workaround, it is not perfect, but it solves the problem:
```
import numpy as np
import matplotlib
matplotlib.use('Agg')
matplotlib.rcParams['text.latex.preamble'] = r'\usepackage{amsmath}'
matplotlib.rc('text', usetex = True)
from matplotlib import pyplot as py
## setup figure
figure = py.figure(figsize = ... | null | CC BY-SA 4.0 | null | 2023-03-04T02:51:42.050 | 2023-03-04T02:51:42.050 | null | null | 6,037,395 | null |
75,633,362 | 2 | null | 135,448 | 0 | null | I had a hard time understanding the difference between hasOwn and hasOwnProperty even though there are 30 answers trying to explain this. Here's a runnable snippet, so you can see for yourself how it behaves.
```
const object1 = {
prop: 'exists'
};
object1.property1 = 42;
// the following as you might expect output... | null | CC BY-SA 4.0 | null | 2023-03-04T02:52:08.170 | 2023-03-04T02:52:08.170 | null | null | 5,280,512 | null |
75,633,368 | 1 | null | null | -1 | 16 | I am trying to use Flask on my pc but I keep getting an error whenever I import from the sql module. The error states:
> ImportError: cannot import name 'create_connection' from 'sql' (C:<Directory to sql.py>)
```
# Imports
import flask
from flask import jsonify
from flask import request
import mysql.connector
from mys... | Unable to import name 'create_connection' from 'sql' | CC BY-SA 4.0 | null | 2023-03-04T02:53:10.973 | 2023-03-04T03:20:28.103 | null | null | 16,865,056 | [
"python",
"mysql",
"mysql-python",
"python-module",
"python-sql"
] |
75,633,361 | 2 | null | 75,633,023 | 1 | null | You can do it all in one go fairly easily. For example simply using `gsub()` to remove the `:XX` from each field and then a simple array to collect the unique `sam` fields you would have:
```
awk -F"\t" '{gsub(/:[^[:space:]]+/,"")} FNR>1 {for (i=5; i<=NF; i++) a[$i]++} END {for (i in a) print i}1' file
```
With your ... | null | CC BY-SA 4.0 | null | 2023-03-04T02:51:49.917 | 2023-03-04T02:57:19.417 | 2023-03-04T02:57:19.417 | 3,422,102 | 3,422,102 | null |
75,633,364 | 2 | null | 75,632,919 | 0 | null | > Technically we are just getting data from the server, so it must be a GET request.
Well that's only the case when you run a `query`, not when you run a `mutation`.
But more importantly, you're not just getting data from the server, you're also sending data to the server: the query document and optionally some variabl... | null | CC BY-SA 4.0 | null | 2023-03-04T02:52:45.333 | 2023-03-04T02:58:50.630 | 2023-03-04T02:58:50.630 | 1,048,572 | 1,048,572 | null |
75,633,363 | 2 | null | 75,633,205 | 0 | null | Here is a very simple example of using argparse options to trigger specific functions.
After adding the `-w` and `-s` as arguments, you can test the returned Namespace object to see which arguments were found and call the appropriate functions accordingly.
`main.py`
```
import argparse
def sfunc():
print("-s argu... | null | CC BY-SA 4.0 | null | 2023-03-04T02:52:18.693 | 2023-03-04T02:52:18.693 | null | null | 17,829,451 | null |
75,633,373 | 2 | null | 71,289,209 | 0 | null | ```
pip install numpy==1.23.5
```
this worked for me, try this
| null | CC BY-SA 4.0 | null | 2023-03-04T02:54:09.317 | 2023-03-04T02:56:23.130 | 2023-03-04T02:56:23.130 | 17,318,088 | 17,318,088 | null |
75,633,374 | 2 | null | 74,831,142 | 0 | null | Maven timestamp by default produces an incompatible file name:
To change this you would have to add to your pom.xml:
```
<properties>
<maven.build.timestamp.format>yyyyMMddHHmmss</maven.build.timestamp.format>
</properties>
```
| null | CC BY-SA 4.0 | null | 2023-03-04T02:54:21.027 | 2023-03-04T02:54:21.027 | null | null | 4,376,280 | null |
75,633,370 | 2 | null | 75,627,969 | 0 | null | Looks like some form of inequality join - if that is the case, you can use [conditional_join](https://pyjanitor-devs.github.io/pyjanitor/api/functions/#janitor.functions.conditional_join.conditional_join) from [pyjanitor](https://pyjanitor-devs.github.io/pyjanitor/) to get your results
```
# pip install pyjanitor
impor... | null | CC BY-SA 4.0 | null | 2023-03-04T02:53:31.083 | 2023-03-04T02:53:31.083 | null | null | 7,175,713 | null |
75,633,376 | 2 | null | 75,633,147 | 0 | null | Found the solution.
Might sound dumb from me but as `from` is reserved for code, in order to call `addressfrom = txtest.from` in a readable state for python, it has to be passed with `getattr()`, so the solution is:
```
addressfrom = getattr(txtest, 'from')
print(addressfrom)
```
which outputs the right address ^^
| null | CC BY-SA 4.0 | null | 2023-03-04T02:56:15.617 | 2023-03-04T02:56:15.617 | null | null | 21,329,285 | null |
75,633,360 | 1 | null | null | 0 | 5 | My flask application takes input from the user in the form of audio, processes it and returns an appropriate output in the form of an audio.
The audio file ("audiofile.mp3") my python produces is accessed through an endpoint("/audio") and is played using the tage from home.html.
The output is played in the html file b... | Is there a way to handle the "AssertionError: No text to speak" in playsound module after the audio is played from an mp3 file? (I am using flask) | CC BY-SA 4.0 | null | 2023-03-04T02:51:47.103 | 2023-03-04T02:51:47.103 | null | null | 19,273,038 | [
"flask",
"audio",
"playsound"
] |
75,633,366 | 1 | 75,633,384 | null | 1 | 24 | I am having a little bit of trouble with something I am trying to pull off. I have an application that uses Java 19 and Springboot that is being hosted locally (but will eventually be hosted elsewhere). I have an SQL database setup on the same. I want to be able to send users an email, based on the due date of an event... | Having a method run at application start continuously | CC BY-SA 4.0 | null | 2023-03-04T02:52:56.773 | 2023-03-04T02:58:49.690 | null | null | 13,342,723 | [
"java",
"spring-boot",
"maven",
"jpa",
"push-notification"
] |
75,633,377 | 2 | null | 75,630,132 | 1 | null | From the description of the desired behavior, it appears that the title should have been . The following query will do this:
```
WITH ids AS
(DELETE FROM firsttable
WHERE id IN (SELECT id FROM secondtable)
RETURNING id)
INSERT
INTO firsttable (id, speed)
SELECT id, speed
FROM secondtable
... | null | CC BY-SA 4.0 | null | 2023-03-04T02:56:16.833 | 2023-03-04T02:56:16.833 | null | null | 20,151,367 | null |
75,633,379 | 2 | null | 75,454,941 | 0 | null | For anyone with the same problem, the solution was to use the following command:
`Start-VM -VM $vmname -confirm:$false`
The -config:$false is used just to avoid any typing.
Not sure why the other command does not work and why it does not pick up the VM, but using Start-VM and Stop-VM commands starts and stop the VM cre... | null | CC BY-SA 4.0 | null | 2023-03-04T02:56:28.657 | 2023-03-04T02:56:28.657 | null | null | 7,902,042 | null |
75,633,380 | 2 | null | 75,632,966 | -1 | null | I look at your code and suspicious this line.
`BWkopieren.ReportProgress((int)(fsin.Position*100/fsin.Length));`
This is part of BackgroundWorker right ? This may cause problem because you make too much report for every iteration.
Perhap to reduce report progress at least 10 second and add delay for relax CPU process a... | null | CC BY-SA 4.0 | null | 2023-03-04T02:57:11.887 | 2023-03-04T03:02:00.017 | 2023-03-04T03:02:00.017 | 3,939,687 | 3,939,687 | null |
75,633,371 | 1 | null | null | 0 | 8 | In app-routing.module.ts
```
{
path: '',
canActivate: [AuthGuardService],
loadChildren: () => import('../app/appeals/appeals.module').then((mod) => mod.AppealsModule),
},
{
path: '',
canActivate: [AuthGuardService],
loadChildren: () => import('../app/others/others.module').then((mod) => mod.... | Implement routing(nested) with lazy loading | CC BY-SA 4.0 | null | 2023-03-04T02:53:32.937 | 2023-03-04T02:53:32.937 | null | null | 13,750,395 | [
"javascript",
"angular",
"nested",
"lazy-loading",
"angular-routing"
] |
75,633,383 | 1 | null | null | 0 | 7 | Why does the following fail with uncaught error: HTTP Client Error: Forbidden (g-io-error-quark, 14):
```
static int main (string[] args) {
string url = "https://www.netfilter.org/projects/iptables/files/";
var page = GLib.File.new_for_uri (url);
var dis = new DataInputStream (page.read ());
return 0;
}... | Why does GLib.File.new_for_uri (url) fail in vala but not whilst using the same url with curl | CC BY-SA 4.0 | null | 2023-03-04T02:58:45.780 | 2023-03-04T02:58:45.780 | null | null | 656,031 | [
"glib",
"vala"
] |
75,633,382 | 1 | null | null | 0 | 47 | When the `TextField` is created like this
```
TextField(
"Describe...",
text: $text,
axis: .vertical
)
.focused(focused, equals: .prompt)
.textFieldStyle(.roundedBorder)
.lineLimit(2...)
.modifier(ClearButton(text: $text))
.submitLabel(... | TextField cannot dismiss keyboard when put to multiline | CC BY-SA 4.0 | null | 2023-03-04T02:57:28.867 | 2023-03-04T09:20:39.853 | 2023-03-04T04:57:31.783 | 20,384,561 | 56,952 | [
"swift",
"swiftui",
"textfield"
] |
75,633,369 | 1 | 75,634,706 | null | 0 | 25 | In the example code on Mudblazor's website ([https://mudblazor.com/components/select#variants](https://mudblazor.com/components/select#variants)) there is no sizing or layout specified, they just line up neatly next to each other. When I implement the code it makes the select boxes 100% of the page width and places the... | MudBlazor Component Sizing & Layout | CC BY-SA 4.0 | null | 2023-03-04T02:53:28.050 | 2023-03-04T14:42:13.673 | null | null | 6,032,164 | [
"c#",
"blazor",
"mudblazor"
] |
75,633,381 | 1 | 75,634,617 | null | 0 | 46 | I'm trying to get better with pmap(), but I'm hitting some errors. In this example, I have a simple graphing function that I want to iterate over. My understanding of pmap() is that I can set and define an infinite number of parameters. However, I'm confused why it is saying that .z isn't defined when I so clearly have... | In R's purrr, why does pmap through Error in FUN(X[[i]], ...) : object '.z' not found when .z is clearly defined? | CC BY-SA 4.0 | null | 2023-03-04T02:57:22.653 | 2023-03-04T08:59:54.487 | null | null | 9,877,445 | [
"r",
"purrr",
"pmap"
] |
75,633,384 | 2 | null | 75,633,366 | 2 | null | You can use the `@Scheduled` annotation.
In your main application class, you need to first enable scheduling.
```
@SpringBootApplication
@EnableScheduling
public class MyApplication {
// ...
}
```
Then, add `@Scheduled` to a method of one of your components.
```
import org.springframework.stereotype.Component;
imp... | null | CC BY-SA 4.0 | null | 2023-03-04T02:58:49.690 | 2023-03-04T02:58:49.690 | null | null | 9,513,184 | null |
75,633,387 | 2 | null | 42,250,467 | 0 | null | Seems like it is not yet implemented. See [this](https://github.com/SpartnerNL/Laravel-Excel/issues/2693).
So, for now [here](https://stackoverflow.com/questions/69202868/how-to-get-number-and-put-header-on-laravel-excel-export)'s a simple workaround for that.
| null | CC BY-SA 4.0 | null | 2023-03-04T02:59:34.623 | 2023-03-04T03:29:28.690 | 2023-03-04T03:29:28.690 | 5,057,757 | 5,057,757 | null |
75,633,390 | 2 | null | 6,752,538 | 0 | null |
## Anyone who are experiencing getting null extras in Broadcast Receiver:
You should use
`FLAG_MUTABLE`
Here is an example:
```
PendingIntent.getBroadcast(
context,
0,
intent,
PendingIntent.FLAG_MUTABLE //not FLAG_IMMUTABLE
)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T03:00:03.683 | 2023-03-04T03:00:03.683 | null | null | 15,419,983 | null |
75,633,391 | 2 | null | 67,594,607 | 0 | null | Dart Error: error: import of dart:mirrors is not supported in the current Dart runtime.
riverpod_lint: ^1.1.2, custom_lint: ^0.2.12
remove both packages restart IDE(android studio). add them again.
| null | CC BY-SA 4.0 | null | 2023-03-04T03:00:12.360 | 2023-03-04T03:00:12.360 | null | null | 21,329,524 | null |
75,633,388 | 2 | null | 75,633,281 | 3 | null | I think you can do this using vectorized comparisons across 3-dim arrays:
```
library(abind)
a <- abind(l,along = 3)
df3 <- abind(df,df,df,along = 3)
apply(abs(a) > abs(df3) & (sign(a) == sign(df3)),
MARGIN = 1:2,
FUN = sum)
```
Additionally, you can create the replicated version of `df` without typing o... | null | CC BY-SA 4.0 | null | 2023-03-04T02:59:44.313 | 2023-03-04T03:10:51.857 | 2023-03-04T03:10:51.857 | 324,364 | 324,364 | null |
75,633,378 | 1 | null | null | 0 | 14 | I create a new Lambda function `nodejs18.x` and I understand I need to use AWS JS v3. However I get runtime error even when I'm not referencing v2:
```
"errorType": "TypeError",
"errorMessage": "_b.map is not a function",
"stack": [
"TypeError: _b.map is not a function",
" at /var/runtime/nod... | DynamoDBDocument.put runtime error _b.map is not a function | CC BY-SA 4.0 | null | 2023-03-04T02:56:19.803 | 2023-03-04T02:56:19.803 | null | null | 4,092,412 | [
"aws-lambda",
"amazon-dynamodb",
"aws-sdk",
"aws-sdk-js",
"aws-sdk-nodejs"
] |
75,633,385 | 1 | 75,633,415 | null | 0 | 45 | I'm trying to write a simple python code for taking in a csv file, and using tabulate module to print out nicely-formatted contents in the terminal. Here is snippet of my code:
```
table = []
try:
with open(filename) as csvfile:
reader = csv.DictReader(csvfile)
i = 0
for row in reader:
... | How to read first line of CSV file | CC BY-SA 4.0 | null | 2023-03-04T02:58:52.827 | 2023-03-04T18:19:02.623 | 2023-03-04T03:34:17.773 | 21,329,492 | 21,329,492 | [
"python",
"csv",
"debugging"
] |
75,633,386 | 1 | null | null | 0 | 18 | I am trying to set up a backend for a web app using Node.js. My goal is to create a system that can both be run locally and deployed on AWS. To deploy, I have a Jenkins pipeline that pulls from my git repo, builds the app, and deploys it using embedded Github + AWS credentials. This all works well.
I am struggling now ... | How can I set up env vars locally + in prod in a similar style? | CC BY-SA 4.0 | null | 2023-03-04T02:59:05.427 | 2023-03-04T03:02:40.583 | 2023-03-04T03:02:40.583 | 21,237,730 | 21,237,730 | [
"node.js",
"jenkins",
"environment-variables"
] |
75,633,389 | 1 | null | null | 1 | 12 | I'm a beginner to deploy application. I saw a lot of article that is written about deploying next.js app on Vercel or other servers that support next.js app. But I'm here because my next.js app can deploy and run on my server that I'm currently renting, but I can run the app only local host on the server. So when I acc... | How to deploy and configure next.js app on a rental server installed apache2 | CC BY-SA 4.0 | null | 2023-03-04T02:59:58.730 | 2023-03-04T04:43:19.883 | null | null | 21,329,460 | [
"apache",
"next.js",
"deployment",
"ssl-certificate",
"config"
] |
75,633,396 | 2 | null | 14,571,564 | 0 | null |
## Anyone who's extras are null in Broadcast Receiver:
You should use
`FLAG_MUTABLE`
Here is an example:
```
PendingIntent.getBroadcast(
context,
0,
intent,
PendingIntent.FLAG_MUTABLE //not FLAG_IMMUTABLE
)
```
| null | CC BY-SA 4.0 | null | 2023-03-04T03:01:16.217 | 2023-03-04T03:01:16.217 | null | null | 15,419,983 | null |
75,633,392 | 1 | null | null | 0 | 10 | I making a GET API to fetch an image, the response is status 200 and its data is in byte64 format. The problem here is, I was not able to read the response in my component. My component code is below.
```
getUserImageById()
{
this.userService.getUserProfileById(this.currentUser.id).subscribe((res : Blob)=>
{
... | Unable to fetch base64 response in component level (Angular) | CC BY-SA 4.0 | null | 2023-03-04T03:00:52.607 | 2023-03-04T03:00:52.607 | null | null | 11,917,182 | [
"javascript",
"html",
"reactjs",
"angular",
"angularjs"
] |
75,633,394 | 1 | null | null | 0 | 13 | while I was trying to automate the web browser, I used click method at the end to click the button, I gave button Id to find element but its opening the new automated browser but not clicking on "Start Download" button. I am getting no errors. My code is given below.
```
from selenium import webdriver
from selenium.we... | Click method is not working for me when i am trying to automate web browser using selenium with python | CC BY-SA 4.0 | null | 2023-03-04T03:00:59.167 | 2023-03-04T23:21:00.813 | null | null | 16,539,290 | [
"python",
"selenium-webdriver"
] |
75,633,397 | 1 | null | null | 0 | 4 | I'm using imgbb to store images for a website, it creates albums that it uses as image containers for each post (manga) I make but I ran into the problem that it can't put 700 images inside an album, I try and they get shorter or count I try to upload 800 it never loads.
You can't use imgur because I'm from Latin Ameri... | how many images per album are there in imgbb | CC BY-SA 4.0 | null | 2023-03-04T03:01:17.367 | 2023-03-04T03:01:17.367 | null | null | 21,329,506 | [
"web",
"cloud",
"hosting"
] |
75,633,400 | 1 | null | null | 0 | 5 | After combing through the docs and looking for other sources, I was only able to find documentation on logging and log retention. Is there any way to increase the retention time for ec2/ALB metrics such as response time, unique connections, etc, or is metric retention time standard and unchangeable?
I've looked for oth... | How to increase ALB metric retention time for AWS cloudwatch? | CC BY-SA 4.0 | null | 2023-03-04T03:01:44.667 | 2023-03-04T07:11:55.803 | null | null | 7,250,185 | [
"amazon-web-services",
"amazon-ec2",
"amazon-cloudwatch"
] |
75,633,398 | 2 | null | 75,633,108 | 0 | null | It should be `withdrawal.id` instead of `withdrawal.withdrawal_id`, like so:
```
{% url 'withdrawal-slip' withdrawal.id %}
```
Or maybe you want `transID` if you send `transID` as:
```
{% url 'withdrawal-slip' withdrawal.transID %}
```
So remeber to change `<int:id>` to `<str:trans_id>` since it is `CharField`, like ... | null | CC BY-SA 4.0 | null | 2023-03-04T03:01:19.273 | 2023-03-04T03:06:20.110 | 2023-03-04T03:06:20.110 | 17,562,044 | 17,562,044 | null |
75,633,399 | 1 | 75,638,489 | null | 1 | 43 | Is it possible to return an enum type from a function in typescript javascript.
Example:
```
enum Fruit{
APPLES,
ORANGES,
}
const findFruit= (arr: string[]) => {
return arr.reduce((acc, cur) => {
const result = Object.keys(Fruit).find((item) =>
cur.includes(item)
)
acc = !result? acc : result
... | return an enum type from a fucntion in javascript | CC BY-SA 4.0 | null | 2023-03-04T03:01:43.383 | 2023-03-04T20:33:03.690 | null | null | 1,096,499 | [
"javascript",
"typescript",
"enums"
] |
75,633,395 | 1 | null | null | -1 | 15 | ```
app.post("/register",async(req,res)=>{
const data=JSON.stringify(req.body.data)
console.log(data+"\n")
connection.query(`UPDATE course SET 'registered_courses'= ? WHERE id='${req.body.id}'`,[data],(err, rows, fields) => {
if (err) {
console.log(err.message)
res.send({
... | SQL not accepting JSON data | CC BY-SA 4.0 | null | 2023-03-04T03:01:01.337 | 2023-03-04T03:01:55.777 | 2023-03-04T03:01:55.777 | 19,428,154 | 19,428,154 | [
"mysql",
"node.js",
"arrays",
"json",
"express"
] |
75,633,407 | 2 | null | 3,708,461 | 0 | null | I came here looking for the largest number I can convey using standard knowledge in a limited amount of space I decided on 8 characters. I settled on this.
'FF^FFFFF'
Although it requires unpacking, this is the largest number I have found that can be expressed in 8 characters.
This is equivalent to 255^1,048,575.
This ... | null | CC BY-SA 4.0 | null | 2023-03-04T03:06:11.070 | 2023-03-04T03:06:11.070 | null | null | 21,329,549 | null |
75,633,402 | 2 | null | 75,633,260 | 0 | null | Notice the output of the following code:
```
globvar = 0
def set_glob_var():
global globvar
print "In set_glob_var 1: ", id(globvar)
globvar = 1
print "In set_glob_var 2: ", id(globvar)
```
and then:
```
from main import globvar
from main import set_glob_var
print "Outside of main 1", id(globvar)
gl... | null | CC BY-SA 4.0 | null | 2023-03-04T03:03:06.260 | 2023-03-04T03:03:06.260 | null | null | 18,184,114 | null |
75,633,403 | 2 | null | 75,633,322 | 3 | null | The lambda returns a `bool` value when called. But the code is not calling the lambda at all. It is instead trying to evaluate the lambda object itself in a boolean context, which is not a valid operation since a lambda's generated type does not define a conversion of a lambda object to a `bool`.
You need to actually... | null | CC BY-SA 4.0 | null | 2023-03-04T03:03:27.943 | 2023-03-04T03:03:27.943 | null | null | 65,863 | null |
75,633,401 | 2 | null | 75,623,932 | 0 | null | There are 2 different types of permissions
- -
Take a look at the `TeamsActivity.Send` permission from the [MS Graph reference](https://learn.microsoft.com/en-us/graph/permissions-reference#teams-activity-permissions).
| Permission | Type | Display String | Description |
| ---------- | ---- | -------------- | ------... | null | CC BY-SA 4.0 | null | 2023-03-04T03:02:11.050 | 2023-03-04T03:02:11.050 | null | null | 18,748,575 | null |