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,620,275 | 2 | null | 10,559,039 | 0 | null | Year 2023 but I still get this bag on client notebook on latest Chrome 110.0.5481.178
| null | CC BY-SA 4.0 | null | 2023-03-02T19:58:57.163 | 2023-03-02T19:58:57.163 | null | null | 7,589,235 | null |
75,620,270 | 1 | 75,620,358 | null | 0 | 38 | ```
d1 <- as.Date(paste0("2013-01-","01"), "%Y-%m-%d")
d2 <- as.Date(paste0("2013-12-","31"), "%Y-%m-%d")
dat <- format(seq(d1,d2,by="day"), "%Y-%m-%d")
m <- as.numeric(format(as.Date(dat), "%d"))
```
I want to select the index of the last day of each month:
```
i <- (m == c(31, 28, 31, 30, 31, 30, 31, 31, 30, 31,... | Select an index of a vector in R? | CC BY-SA 4.0 | null | 2023-03-02T19:58:42.467 | 2023-03-02T21:02:09.893 | null | null | 5,142,717 | [
"r"
] |
75,620,273 | 2 | null | 75,620,251 | 4 | null | Change:
```
guard let workoutListResponse = try? await getResponse(urlComponents: urlComponents, responseType: WorkoutListResponse.self) else {
throw VVError.DataCouldNotBeRetrieved // I don't want to throw this error, I want to throw whatever error getResponse threw.
}
```
to:
```
let workoutListResponse = try aw... | null | CC BY-SA 4.0 | null | 2023-03-02T19:58:47.560 | 2023-03-02T19:58:47.560 | null | null | 20,287,183 | null |
75,620,195 | 1 | null | null | 0 | 22 | I was able to create a plugin using the help of chatgpt. I was able to get all the functionalities am looking for, but there is one last thing I hope that I can find a solution for here.
the plugin is like a notification/news feed for the users. an admin would publish a headline in the backend and it should show in the... | wordpress Ajax on Submit | CC BY-SA 4.0 | null | 2023-03-02T19:50:43.447 | 2023-03-02T19:50:43.447 | null | null | 2,126,404 | [
"javascript",
"ajax",
"wordpress",
"websocket",
"wordpress-plugin-creation"
] |
75,620,260 | 1 | null | null | 0 | 6 | I am working on a chatbot using react.js for the front-end and express.js for the backend, and MySql for my db ,i connect Express.js with dialogflow so that i can detect the intent of users, for now it's work good, the issue is that i want to use context ( followup intent ) in dialogflow to link messages together.
i a... | how to connect Epress.js server with dialogflow to detect intent by context? | CC BY-SA 4.0 | null | 2023-03-02T19:58:01.630 | 2023-03-02T19:58:01.630 | null | null | 20,225,814 | [
"mysql",
"node.js",
"reactjs",
"express",
"dialogflow-es"
] |
75,620,278 | 1 | 75,620,487 | null | -2 | 39 | Have been reading the gawk manual and it seems that local variables have to be defined within the argument list of the funcion declaration.
Thusly,
```
function func_name (arg, l1,l2) {
...
}
```
where `l1` and `l2` would be considered as local variable, whilst all other become global variables.
Is this so?
| Local variables in awk functions | CC BY-SA 4.0 | null | 2023-03-02T19:59:19.337 | 2023-03-03T02:09:12.893 | null | null | 21,298,024 | [
"awk"
] |
75,620,279 | 1 | null | null | -3 | 15 | Kotlin firebase, I connected to firebase with assistant, and try code from examples, and nothing happened with dataBasea. i try writting url in getReference, bot it doesn't help
```
val database = Firebase.database()
val myRef = database.getReference("message")
reg.setOnClickListener{
myRef.setValue("OnRegClicked"... | Kotlin firebase, I connected to firebase with assistant, and try code from examples, and nothing happened with dataBasea | CC BY-SA 4.0 | null | 2023-03-02T19:59:19.803 | 2023-03-02T20:10:11.813 | 2023-03-02T20:10:11.813 | 21,321,677 | 21,321,677 | [
"database",
"firebase",
"kotlin",
"firebase-realtime-database"
] |
75,620,276 | 1 | null | null | 0 | 19 | DF1 needs to filter out rows where columnA is present in DF2.
DF2 is 10% of DF1. 80mb/800mb.
```
DF2=spark.read.parquet(s3_bucket) #80mb
df_column = DF2.rdd.map(lambda x: (x["columnA"]).lower()).collect()
columnaA_list_broadcast = spark.sparkContext.broadcast(df_column)
...then df1 does is in...
```
However, the stage... | pyspark extremely slow collect before broadcasting | CC BY-SA 4.0 | null | 2023-03-02T19:59:03.320 | 2023-03-02T19:59:03.320 | null | null | 14,491,360 | [
"python",
"apache-spark",
"pyspark",
"apache-spark-sql",
"aws-glue"
] |
75,620,284 | 2 | null | 75,620,118 | 0 | null | you can use .filter to write a case only for x
[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter)
| null | CC BY-SA 4.0 | null | 2023-03-02T19:59:36.610 | 2023-03-02T19:59:36.610 | null | null | 11,538,907 | null |
75,620,281 | 1 | null | null | -1 | 32 | I am getting an error on the following code in Oracle SQL.
> ORA-00907: missing right parenthesis
I am trying to count the number of rows within a partition of specific columns and a rolling date window.
```
SELECT Co_ID,
LOC_ID,
TYPE_ID,
SUBTYPE_ID,
RECORDMONTH,
RANK() OVER (PARTITIO... | Missing Right Parenthesis in Oracle window function | CC BY-SA 4.0 | null | 2023-03-02T19:59:29.000 | 2023-03-02T21:05:21.483 | 2023-03-02T20:10:16.537 | 13,302 | 6,615,697 | [
"sql",
"oracle",
"window-functions"
] |
75,620,283 | 1 | 75,620,371 | null | 0 | 29 | According to [this answer](https://stackoverflow.com/questions/9533258/what-is-the-maximum-number-of-bytes-for-a-utf-8-encoded-character), UTF-8 encoded characters used to have a byte limit of `6` but have since been limited to `4`. Some comments and answers in that post suggest that it's possible, maybe just in theory... | Can the iOS keyboard produce a 6-byte UTF-8 character? | CC BY-SA 4.0 | null | 2023-03-02T19:59:36.417 | 2023-03-03T03:33:05.420 | 2023-03-02T20:29:12.167 | 4,967,050 | 4,967,050 | [
"ios",
"unicode",
"utf-8"
] |
75,620,280 | 2 | null | 75,620,216 | 2 | null | You can use [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Sethttps://) here to store all of the `arr1` `name` and then [map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/maphttps://) over `arr2` to get the result as:
```
const arr1 = [{ ... | null | CC BY-SA 4.0 | null | 2023-03-02T19:59:27.453 | 2023-03-02T19:59:27.453 | null | null | 9,153,448 | null |
75,620,271 | 1 | null | null | 0 | 23 | I'm studying about kubernetes and Rancher
I did a small application in Nodejs to try
```
require('dotenv').config()
const app = require('./app')
const SERVER_PORT = process.env.SERVER_PORT
console.log('env',process.env);
app.listen( SERVER_PORT, () => {
console.log(`API running in port ${SERVER_PORT}...`);
} )... | How to fix CreateContainerConfigError: configmap "special-config" not found | CC BY-SA 4.0 | null | 2023-03-02T19:58:42.950 | 2023-03-02T20:30:33.843 | null | null | 6,754,506 | [
"node.js",
"kubernetes",
"rancher"
] |
75,620,286 | 1 | 75,620,335 | null | 0 | 20 | I have found some old piece of code [here](https://krazydad.com/tutorials/makecolors.php) to generate a color pallet. This includes the following function:
```
function byte2Hex(n)
{
var nybHexString = "0123456789ABCDEF";
return String(nybHexString.substr((n >> 4) & 0x0F,1)) + nybHexString.substr(n & 0x0F,1);... | Correct conversion of substr to substring | CC BY-SA 4.0 | null | 2023-03-02T19:59:45.607 | 2023-03-02T20:07:52.233 | null | null | 5,572,149 | [
"javascript"
] |
75,620,288 | 2 | null | 75,620,175 | 3 | null | If you use [pd.DataFrame.eval](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.eval.html), you can get pretty close (syntactically) to your proposed solution ;)
```
out = df2.groupby("Position").sum().eval("Retained / Enrolled")
```
out:
```
Position
FT 0.5
PT 0.5
S 0.5
dtype: flo... | null | CC BY-SA 4.0 | null | 2023-03-02T19:59:50.573 | 2023-03-02T19:59:50.573 | null | null | 9,499,196 | null |
75,620,290 | 2 | null | 50,346,326 | 0 | null | Since you were using sqlite and changed to Postgres, your user and password no longer work and you got that error. Depending on what is your docker-compose.yml file you can do a migrate command:
docker-compose exec web python manage.py migrate
and than create a new superuser:
docker-compose exec web python manage.py cr... | null | CC BY-SA 4.0 | null | 2023-03-02T20:00:14.100 | 2023-03-02T20:00:14.100 | null | null | 5,464,780 | null |
75,620,292 | 2 | null | 75,604,623 | 0 | null | Ok, so I managed to make it working by setting the relativeTo parameter to `route.root`.
It's not pretty but it works.
Here it goes :
`<a [routerLink]=['', {outlets: {primary: '', quickview: null}}] [relativeTo]="route.root">Close search</a>`
| null | CC BY-SA 4.0 | null | 2023-03-02T20:00:18.327 | 2023-03-02T20:00:18.327 | null | null | 1,897,948 | null |
75,620,291 | 2 | null | 75,609,265 | 0 | null | Google Maps allows you to embed maps like [https://mapsurl.com/?address=123Street&api_key=KDFJSDKFHSH](https://mapsurl.com/?address=123Street&api_key=KDFJSDKFHSH)
And the key is public. The reason it's safe is because they check the referrer URL. It can't be used on other websites because they will send the wrong refer... | null | CC BY-SA 4.0 | null | 2023-03-02T20:00:14.627 | 2023-03-02T20:00:14.627 | null | null | 4,441,760 | null |
75,620,285 | 2 | null | 75,618,870 | 0 | null | You need the `break` in the second character match loop for the same reason that you have a `break` in the first character match loop. If you find a character in `codec` which matches the current character in the input string, you replace the character found in the input string, either `s1` or `s2`. You then need to ad... | null | CC BY-SA 4.0 | null | 2023-03-02T19:59:45.560 | 2023-03-02T19:59:45.560 | null | null | 1,466,970 | null |
75,620,289 | 1 | null | null | 0 | 33 | I'm gathering an input from the user (a string they wish to use), I then want to ask them what offset they'd like to use after storing this I know it's stored as a string, this isn't much use to me as I need to be able to use the value in a loop. Is there some way that I can convert the string for example ("2") to 2?
I... | How to convert a string input to an integer value in assembly? | CC BY-SA 4.0 | null | 2023-03-02T19:59:57.467 | 2023-03-02T20:37:11.123 | 2023-03-02T20:37:11.123 | 21,321,513 | 21,321,513 | [
"assembly",
"x86"
] |
75,620,293 | 1 | 75,620,385 | null | 2 | 62 | Recently, I was asked this question on an interview:
> Which Vector constructor will be called in the code below?```
#include <iostream>
class Iterator {
public:
Iterator(int &x): ptr_(&x) {}
private:
int* ptr_ = nullptr;
};
template<class T>
class Vector {
public:
Vector(size_t size, T default_value) {
... | Overload resolution with enable_if | CC BY-SA 4.0 | null | 2023-03-02T20:00:25.360 | 2023-03-02T20:35:23.370 | 2023-03-02T20:10:41.197 | 65,863 | 19,532,971 | [
"c++",
"sfinae",
"overload-resolution",
"enable-if"
] |
75,620,298 | 1 | null | null | 0 | 16 | So I have two JavaScript files in the same folder in Visual Studio. I want to get access to autocompletion/suggestions for function calls and variables in both files, but only have a single `require()`. When you include both in an HTML script tag, it's functionally going to work only having it require the file once, bu... | Is there a way to make the autocompletion from "require"-ing a file apply to multiple files in the same folder in VSCode? | CC BY-SA 4.0 | null | 2023-03-02T20:01:01.560 | 2023-03-03T05:05:00.773 | null | null | 8,100,428 | [
"javascript",
"node.js",
"visual-studio-code"
] |
75,620,264 | 2 | null | 75,618,810 | 1 | null |
Yes it's a React 18 strict mode thing. It's important your components cleanup after themselves and don't attempt to set state on unmounted components. See the [Fetching Data](https://beta.reactjs.org/learn/you-might-not-need-an-effect#fetching-data) guide from the React docs for more details.
```
React.useEffect(() =>... | null | CC BY-SA 4.0 | null | 2023-03-02T19:58:17.247 | 2023-03-02T20:06:20.553 | 2023-03-02T20:06:20.553 | 633,183 | 633,183 | null |
75,620,296 | 1 | null | null | 0 | 8 | I have this Volley Request:
```
val queue = newRequestQueue(this)
val url = "https://www.meme-api.com/gimme"
val JsonObjectRequest = JsonObjectRequest(
com.android.volley.Request.Method.GET,url,null,
Response.Listener{response ->
val url = response.getString(url)
Glide.with(this).load(url).into(... | Response of my volley library request always going into error listener | CC BY-SA 4.0 | null | 2023-03-02T20:00:39.500 | 2023-03-03T18:22:44.443 | 2023-03-03T18:22:44.443 | 417,503 | 21,321,617 | [
"android",
"api",
"android-studio",
"runtime-error"
] |
75,620,300 | 2 | null | 75,617,005 | 0 | null | I'm not 100% sure that ReplayKit works with the latest version of Swift and iOS, but ReplayKit might be what you're looking for.
Have a look at:
- [https://developer.apple.com/documentation/replaykit](https://developer.apple.com/documentation/replaykit)- [https://github.com/alskipp/ASScreenRecorder](https://github.com/... | null | CC BY-SA 4.0 | null | 2023-03-02T20:01:16.267 | 2023-03-02T20:01:16.267 | null | null | 16,578,914 | null |
75,620,303 | 1 | null | null | 0 | 22 | I am trying to install arch linux using archinstall command. 2. I want to have windows and arch Linux in the same drive (dual boot) . I installed windows first , went to partitions and reduced the drive so that I have unallocated space to install arch in. Now what is happening is when I put the bootable usb with arch a... | Arch Linux using archinstall command, dual boot | CC BY-SA 4.0 | null | 2023-03-02T20:01:34.230 | 2023-03-02T20:01:34.230 | null | null | 15,353,515 | [
"linux"
] |
75,620,287 | 1 | null | null | 1 | 16 | I am developing a short term loan providing app.I have set the express-session's cookie secure attribute to false. When I am sending requests to my localhost, the header is HTTP. So the cookie getting set and as a result no error is occurring. However, when I am connecting to an outside payment gateway for doing transa... | How to use the express session's cookie's secure attribute for both http and https requests? | CC BY-SA 4.0 | null | 2023-03-02T19:59:47.153 | 2023-03-03T14:06:42.820 | 2023-03-03T14:06:42.820 | 9,446,515 | 18,306,677 | [
"javascript",
"node.js",
"express",
"cookies",
"express-session"
] |
75,620,299 | 2 | null | 75,620,193 | 3 | null | The type of population is `list`. List implements the datamodel hook [__iadd__](https://docs.python.org/3/reference/datamodel.html?highlight=iadd#object.__iadd__) for in-place sequence concatenation. This method also returns the existing instance:
```
>>> population = [0, 1]
>>> new = population.__iadd__([2, 3])
>>> n... | null | CC BY-SA 4.0 | null | 2023-03-02T20:01:07.063 | 2023-03-02T20:06:17.850 | 2023-03-02T20:06:17.850 | 674,039 | 674,039 | null |
75,620,301 | 2 | null | 75,620,142 | 0 | null | Use "SheetJS" library, which is a JavaScript library for reading and writing Excel files.
Visit sheetjs [https://github.com/SheetJS/sheetjs](https://github.com/SheetJS/sheetjs)
Sample use
Before npm or yarn using install
```
npm i xlsx
```
or
```
import * as XLSX from 'https://cdn.sheetjs.com/xlsx-0.19.2/package/xlsx.... | null | CC BY-SA 4.0 | null | 2023-03-02T20:01:20.707 | 2023-03-03T16:03:44.403 | 2023-03-03T16:03:44.403 | 7,838,942 | 7,838,942 | null |
75,620,308 | 1 | null | null | 0 | 17 | I am able to write the data in my txt file but I am unable to print the Barcode with "" and I want to print the text (Barcode) in double quotes.
For eg:
{"Barcode":"148279"},
| How to write data in txt file using jmeter | CC BY-SA 4.0 | null | 2023-03-02T20:02:22.480 | 2023-03-03T06:02:55.893 | null | null | 20,968,367 | [
"jmeter",
"jmeter-5.0",
"jmeter-4.0"
] |
75,620,307 | 2 | null | 75,619,946 | 2 | null | You could use the [DecimalFormat](https://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html) class to format your numbers, then maybe switch on the length of your number and play with the `setMinimumFractionDigits`, `setMaximumFractionDigits`, `setMinimumIntegerDigits` and `setMaximumIntegerDigits` methods... | null | CC BY-SA 4.0 | null | 2023-03-02T20:02:13.790 | 2023-03-02T20:02:13.790 | null | null | 17,687,406 | null |
75,620,309 | 2 | null | 75,620,172 | 1 | null | You can use `Object.values()` with `Array.reduce()` like so:
```
const props = {S1: {vals: [1, 2, 3, 4]}, S2: {vals: [3, 4, 5, 6]}};
const result = Object.values(props).reduce((acc, o) => {
return [
...acc,
...o.vals.filter(v => !acc.includes(v))
];
}, []);
console.log(result)
```
| null | CC BY-SA 4.0 | null | 2023-03-02T20:02:32.953 | 2023-03-02T20:02:32.953 | null | null | 6,214,210 | null |
75,620,304 | 1 | null | null | 0 | 23 | I have following react code with useEffect and rxjs subscription
```
...
const [isVisible, setIsVisible] = useState(false);
useEffect(() => {
const sub: Subscription = ctrl.subscribeCloseOtherDrawers().subscribe({
next: (data) => {
if (drawerID === data) {
console.log('data true:::', draw... | state doesnt properly update inside subscription | CC BY-SA 4.0 | null | 2023-03-02T20:01:51.950 | 2023-03-02T20:01:51.950 | null | null | 12,873,715 | [
"javascript",
"reactjs",
"react-hooks",
"rxjs",
"subscription"
] |
75,620,305 | 1 | null | null | 0 | 9 | I am attempting to use Browserify to be able to run my javascript in the browser since it requires an npm dependency, the code is pretty simple so far:
```
const translate = require('translate-google')
translate('translate this', {to: 'zh-cn'}).then(res => {
console.log(res)
}).catch(err => {
console.error(err... | Browserify not working Uncaught TypeError: Cannot read properties of undefined (reading 'split') | CC BY-SA 4.0 | null | 2023-03-02T20:02:07.717 | 2023-03-02T20:02:07.717 | null | null | 18,126,421 | [
"javascript",
"npm",
"browser",
"bundle",
"browserify"
] |
75,620,311 | 2 | null | 75,620,172 | 0 | null | Another way to do it with Sets, without creating new Sets for each of the objects in the original (`props`):
```
const allvals = Array.from(Object.values(props)
.reduce((set, { vals }) => (
vals.forEach(set.add, set),
set
), new Set())
.values());
```
That iterates through the values (because the propert... | null | CC BY-SA 4.0 | null | 2023-03-02T20:02:39.473 | 2023-03-02T20:11:25.530 | 2023-03-02T20:11:25.530 | 182,668 | 182,668 | null |
75,620,294 | 2 | null | 75,608,027 | 0 | null | I just tested it locally and the problem with your memory is: the BufferedReader. When the input is a single line, you try to read it into memory all at once - and this takes quite some heap.
With just 137MB of heap, your code runs smoothly.
Also your `FastReader` has a quite high initialization time, but at 5 million ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:00:35.073 | 2023-03-02T20:00:35.073 | null | null | 2,846,138 | null |
75,620,313 | 1 | null | null | 2 | 38 | I often see the `+` operator in examples like this. I don't quite understand what plus means here?
```
const contentLength = +response.headers.get('Content-Length');
```
I am studying the fetch-progress topic, and I don’t understand the `+` in the line I indicated.
| What does the + operator mean in this example? | CC BY-SA 4.0 | null | 2023-03-02T20:02:56.160 | 2023-03-02T20:06:50.227 | 2023-03-02T20:04:29.193 | 13,138,364 | 20,914,295 | [
"javascript"
] |
75,620,302 | 2 | null | 56,227,439 | 0 | null | In order to use MVVMCross with Devexpress you should create a class which wraps Devexpress's ThemedWindow and implements MVVMCross's three interfaces. IMvxWindow, IMvxWpfView, IDisposable. You can copy the implementation of MvxWindow class. And your wrapper class might look like this:
```
public class DevexpressMvxWind... | null | CC BY-SA 4.0 | null | 2023-03-02T20:01:33.847 | 2023-03-02T20:01:33.847 | null | null | 4,381,186 | null |
75,620,316 | 2 | null | 75,620,214 | 1 | null | As comments suggest, you can use [product](https://docs.python.org/3/library/itertools.html#itertools.product) function from [itertools](https://docs.python.org/3/library/itertools.html) lib.
```
>>> from itertools import product
>>> attributes = [ ['nike', 'adidas', 'salmon'], ['38'], ['blue', 'grey'] ]
>>> product(*a... | null | CC BY-SA 4.0 | null | 2023-03-02T20:03:06.617 | 2023-03-02T20:03:06.617 | null | null | 12,016,688 | null |
75,620,314 | 2 | null | 75,620,026 | 1 | null | We can use `Date.now()` to get access to the [current time since Epoch](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now). If you are unfamiliar the time since Epoch it is the anount of milliseconds that has passed since January 1, 1970, UTC.
We can use `Date.getTime()` to [conv... | null | CC BY-SA 4.0 | null | 2023-03-02T20:03:03.080 | 2023-03-02T20:03:03.080 | null | null | 19,156,156 | null |
75,620,317 | 2 | null | 75,620,216 | 1 | null | You can use `map` method to iterate over arr2 item . Use `.some` to check if there is an item in `arr1` that has the same name as the current item from `arr2`. In the return use the condition with ternary syntax: if the element "isSelected": return the merged object crated using spread operator `...` else return origi... | null | CC BY-SA 4.0 | null | 2023-03-02T20:03:08.797 | 2023-03-02T20:09:53.277 | 2023-03-02T20:09:53.277 | 13,161,150 | 13,161,150 | null |
75,620,320 | 2 | null | 75,618,145 | 0 | null | Use the bottomNavigationBar tag its from Scaffold and accept a Widget inside that you can customize and put whatever you want, and don't move when you scroll :)
```
Scaffold(
appBar: AppBar(
title: Text('test'),
),
body: SingleChildScrollView(
child: Column(
children: [
Text('test'),
]... | null | CC BY-SA 4.0 | null | 2023-03-02T20:03:49.767 | 2023-03-02T20:03:49.767 | null | null | 7,038,331 | null |
75,620,319 | 2 | null | 75,619,588 | 1 | null | Consider using of templates and switch them with `if`.
- [Step reuse](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops#step-reuse)- [https://thomasthornton.cloud/2022/05/03/if-elseif-or-else-in-azure-devops-pipelines/](https://thomasthornton.cloud/2022/05/03/if-elseif-or-else... | null | CC BY-SA 4.0 | null | 2023-03-02T20:03:48.907 | 2023-03-02T20:03:48.907 | null | null | 8,235,971 | null |
75,620,315 | 2 | null | 75,601,137 | 0 | null | Glen, thanks for MRE!
I see your problem now.
Firstly, the reason this effects TextBox and not Button, is due to something called Mouse Vanish, which is the internal name for a Windows OS setting.
[https://superuser.com/questions/928839/what-does-the-hide-pointer-while-typing-feature-actually-do](https://superuser.com/... | null | CC BY-SA 4.0 | null | 2023-03-02T20:03:06.073 | 2023-03-02T20:03:06.073 | null | null | 2,596,334 | null |
75,620,318 | 2 | null | 75,611,452 | 0 | null | You do not need to commit the first transaction to get the id from table A.
In the example below, it uses Postgres SQL with tables A and B.
```
CREATE TABLE A (
id SERIAL PRIMARY KEY
);
CREATE TABLE B (
id SERIAL PRIMARY KEY,
a_id INT,
FOREIGN KEY (a_id) REFERENCES A(id)
);
```
The golang code can get the id... | null | CC BY-SA 4.0 | null | 2023-03-02T20:03:39.323 | 2023-03-02T20:03:39.323 | null | null | 12,991,051 | null |
75,620,324 | 2 | null | 32,542,170 | 0 | null | This is the code to scroll to the bottom of the page
```
Sub ScrollToDown()
Url = "http://en.wikipedia.org/wiki/Main_Page"
Set ie = CreateObject("InternetExplorer.Application")
With ie
.navigate Url
.Visible = True
While ie.readyState <> 4: DoEvents: Wend
.document.parentWind... | null | CC BY-SA 4.0 | null | 2023-03-02T20:04:04.053 | 2023-03-02T20:04:04.053 | null | null | 20,368,615 | null |
75,620,310 | 1 | null | null | 0 | 13 | So we have a table where employees report their daily allocation, let's call it . It looks something like the following but a bigger:
| Employee ID | Date | TaskName | Type | Allocation |
| ----------- | ---- | -------- | ---- | ---------- |
| 01 | 20220301 | OEDD | Production | 0.25 |
| 01 | 20220301 | ODD | Prod... | DAX query to filter table based on specific criteria | CC BY-SA 4.0 | null | 2023-03-02T20:02:34.830 | 2023-03-02T20:04:38.997 | 2023-03-02T20:04:38.997 | 16,756,638 | 16,756,638 | [
"powerbi",
"dax"
] |
75,620,326 | 1 | null | null | 0 | 14 | how can we Chang the state of a child class component from a parent functional component in ReactJS
InputField: a class component; and i want to set State ({error:"there is error"}) from a functional component using inputRef
| updating class (child component ) state from parent functional component using ref | CC BY-SA 4.0 | null | 2023-03-02T20:04:32.943 | 2023-03-02T20:04:32.943 | null | null | 5,229,880 | [
"reactjs"
] |
75,620,322 | 1 | null | null | 0 | 11 | I want to increase the font size of my spatial plot especially the colorbar. I am using image.plot() function, but I don't know how to increase the size since it is not a regular plot.
This is my script :
```
image.plot(lon,lat,tas_slice,
col=colorscale,breaks=brks,lab.breaks=brks,
xaxt="n", yaxt="n", ann=FALSE,horizon... | Increase font size of color scale in image.plot function | CC BY-SA 4.0 | null | 2023-03-02T20:03:55.050 | 2023-03-02T20:03:55.050 | null | null | 20,349,882 | [
"r",
"plot",
"scale"
] |
75,620,312 | 1 | null | null | 0 | 28 | I am trying to set up a Spring Boot backend with a MariaDB database. I generated a Spring Boot project from [https://start.spring.io](https://start.spring.io), I have configured my application.properties in the way I am showing you below and I am also creating an Entity class named User with the @Entity and @Id annotat... | Can't connect my Spring Boot Application with my MariaDB Database | CC BY-SA 4.0 | null | 2023-03-02T20:02:43.033 | 2023-03-02T22:40:20.557 | null | null | 5,639,680 | [
"java",
"spring",
"spring-boot",
"mariadb"
] |
75,620,327 | 2 | null | 51,414,098 | 0 | null | Thw best and simplest way here
```
n = int(input("Enter the no of entries you want to enter : "))
dict = {}
for i in range(n):
key = int(input("Enter the key : " ))
value = input("Enter the value : ")
dict[key]=value
print(dict)
```
| null | CC BY-SA 4.0 | null | 2023-03-02T20:04:48.340 | 2023-03-02T20:07:36.690 | 2023-03-02T20:07:36.690 | 21,321,718 | 21,321,718 | null |
75,620,325 | 2 | null | 75,619,946 | 2 | null | You can use `Math.log10(double)` to discover how many digits are in the number. Create a variable format specifier using the result:
```
public static String digitsDemo (double x) {
int digits = (int) Math.log10 (x);
String form = "%." + ( 6 - digits - 1) + "f";
return String.format (form, x);
}
public st... | null | CC BY-SA 4.0 | null | 2023-03-02T20:04:05.403 | 2023-03-03T01:02:02.630 | 2023-03-03T01:02:02.630 | 5,103,317 | 5,103,317 | null |
75,620,330 | 1 | null | null | 0 | 33 | I am asking about this in a different more simplified way with 2 lists.
How can I match the order of 2 different lists where columns A and C match on the same rows. Column B is corresponding terms to A and column D is corresponding to C. So I would need those cells to move with their A and C cells.
Example.
Start with ... | Matching order of 2 lists and their corresponding terms next to them | CC BY-SA 4.0 | null | 2023-03-02T20:05:14.803 | 2023-03-02T22:15:15.340 | 2023-03-02T20:07:49.683 | 717,214 | 11,756,375 | [
"excel",
"list"
] |
75,620,329 | 1 | null | null | 0 | 12 | I'm using Angular 14 and the same version of angular-eslint/eslint-plugin. I have intentionally introduced these formatting errors in my component
```
Welcome {{name }}
```
and its service (no indentation) ...
```
ngOnDestroy(): void {
this.subject.next();
this.subject.complete();
}
```
However, when I run "ng... | How do I configure lint to pick up formatting errors? | CC BY-SA 4.0 | null | 2023-03-02T20:05:13.353 | 2023-03-02T20:05:13.353 | null | null | 1,235,929 | [
"angular",
"formatting",
"lint",
"angular14"
] |
75,620,321 | 1 | null | null | 0 | 27 | I'm having problem defining interface for functional React component and passing props to it.
Error is reproduced [here](https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgYygUwIYzQGjgVQGc0AhCAVwDsATAZRmlznsYEExg4BfOAMyggg4AIgBe5QjAw1hAbgBQoSLERxCACwwAbLRADu3PgKEBycZOnUA9Bu269JhfPlWrAGWCS1DdHEtxgGBNCNTQtNGQfQnk... | Defining react component interface using typeof operator and passing props to it | CC BY-SA 4.0 | null | 2023-03-02T20:03:53.213 | 2023-03-02T20:46:43.410 | 2023-03-02T20:46:43.410 | 465,292 | 465,292 | [
"reactjs",
"typescript",
"zustand"
] |
75,620,334 | 2 | null | 75,535,897 | 0 | null | The code is ok. The issue has been while calling the excel generation. Bad call to the generation of csv.
| null | CC BY-SA 4.0 | null | 2023-03-02T20:05:52.993 | 2023-03-02T20:05:52.993 | null | null | 2,689,980 | null |
75,620,323 | 1 | null | null | 0 | 23 | I am developing a tribute page as a project for my HTML & CSS course. I initially had trouble fitting the contents of the header into the header space. I solved it by using the box-sizing property. First of all, I fit the contents of the header into a div by using using fit-content box-sizing property. Then, I fit the ... | Box-sizing of Header Done Wrong | CC BY-SA 4.0 | null | 2023-03-02T20:04:03.747 | 2023-03-02T20:33:22.570 | 2023-03-02T20:33:22.570 | 1,264,804 | 19,938,542 | [
"html",
"css",
"web",
"flexbox",
"frontend"
] |
75,620,333 | 1 | null | null | 0 | 38 | Method that insantiate prefab and sets its values
```
private void GenerateShopItems(IShopItem[] item)
{
ShopData data = ShopData.GetInstance();
foreach (var i in data.GetPurchasedItems(item))
{
GameObject display = Instantiate(ShopItem, this.transform);
ShopItemBehav... | Unity why after first unity methods (Awake(), Start(), etc.) call, instantiated prefab values resets? | CC BY-SA 4.0 | null | 2023-03-02T20:05:47.237 | 2023-03-02T20:05:47.237 | null | null | 15,513,957 | [
"c#",
"unity3d"
] |
75,620,335 | 2 | null | 75,620,286 | 2 | null | There's no need for `substr` or `substring` if you're only trying to get a single character from the string. You can just use indexed access:
```
function byte2hex(n) {
const nybHexString = "0123456789ABCDEF";
const first = (n >> 4) & 0x0f;
const second = n & 0x0f;
return nybHexString[first] + nybHexStr... | null | CC BY-SA 4.0 | null | 2023-03-02T20:05:55.747 | 2023-03-02T20:05:55.747 | null | null | 18,244,921 | null |
75,620,328 | 1 | null | null | 1 | 10 | Is there any way that I can use Greek letters, specifically delta (∆), in function documentation using Roxygen? I originally used Alt+J (Mac) to produce the delta symbol and it works great on the help pages, but I get an error when I run R CMD check:
```
! LaTeX Error: Unicode character ∆ (U+2206)
not se... | Using Greek letters for R package documentation with Roxygen | CC BY-SA 4.0 | null | 2023-03-02T20:05:08.713 | 2023-03-02T20:05:08.713 | null | null | 5,323,255 | [
"r",
"devtools",
"roxygen2"
] |
75,620,338 | 2 | null | 75,611,241 | 1 | null | You cannot change this behavior. From the [Redmine Plugin Tutorial](https://www.redmine.org/projects/redmine/wiki/plugin_tutorial) documentation:
> Note: any change to the `init.rb` file of your plugin requires to restart the application as it is not reloaded on each request.
For situations such as this it is possible ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:06:54.927 | 2023-03-02T20:06:54.927 | null | null | 3,784,008 | null |
75,620,337 | 2 | null | 75,619,526 | 0 | null | Assuming `dayOfWeek()` returns only one of these values:
```
{ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }
```
You could use a `List` to determine the order of them:
```
public static String mostFrequentDayOfWeek(SimpleDate[] dates ) {
int maxCount = 0;
int maxIndex = 0;
String freqDay = "";
... | null | CC BY-SA 4.0 | null | 2023-03-02T20:06:43.910 | 2023-03-03T19:35:51.277 | 2023-03-03T19:35:51.277 | 2,330,053 | 2,330,053 | null |
75,620,339 | 2 | null | 75,620,170 | 1 | null | You have two problems:
First, the value of `10000,1` is not number; you need to change the comma to a period. Next, you cannot use a comma as a decimal separator in the `format-number` function unless you define it as such. Try it along the lines of:
```
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/... | null | CC BY-SA 4.0 | null | 2023-03-02T20:06:59.893 | 2023-03-02T20:06:59.893 | null | null | 3,016,153 | null |
75,620,331 | 1 | null | null | 0 | 23 | I'm creating a simple hobby project which is a chrome extension that acts as a simple stopwatch/timer. I want the timer to with the default state as '00:00:00', and also (upon button click) at '00:00:00' (currently working). I'm new Javascript. Here is my script:
```
let timerIntervalId = null;
let startTime = 0;
let... | Simple chrome extension timer not starting at '00:00:00' upon launch | CC BY-SA 4.0 | null | 2023-03-02T20:05:38.070 | 2023-03-02T21:01:17.233 | 2023-03-02T20:08:48.580 | 519,413 | 18,338,395 | [
"javascript",
"google-chrome-extension"
] |
75,620,341 | 2 | null | 75,620,286 | 1 | null | Both [String.substr()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) and [String.substring()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring) accept two arguments and while the first argument has the same semantic (the ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:07:15.473 | 2023-03-02T20:07:52.233 | 2023-03-02T20:07:52.233 | 18,244,921 | 4,265,352 | null |
75,620,344 | 1 | null | null | 0 | 9 | I have a forms form and I need to measure the data, like:
For each answer, there is a score and with this sum of this score it will fit into a group. How do I do this in powerbi?
[enter image description here](https://i.stack.imgur.com/891v9.png)
I have no idea how to do it,
| how to measure data in power bi | CC BY-SA 4.0 | null | 2023-03-02T20:07:28.107 | 2023-03-02T20:07:28.107 | null | null | 21,135,959 | [
"date",
"count",
"powerbi",
"dax",
"powerbi-desktop"
] |
75,620,332 | 1 | null | null | -1 | 34 | New to javafx and java in general btw. Im trying to create an interface using javafx to get the user to input a number then I will search for that number in an array using a linear search. The location of the number in the array should be output and this is where the error is raised. Im not sure what to do and haven't ... | How do i fix this error: Non-static method 'setText(java.lang.String)' cannot be referenced from a static context | CC BY-SA 4.0 | null | 2023-03-02T20:05:44.857 | 2023-03-02T20:05:44.857 | null | null | 20,905,740 | [
"java",
"javafx"
] |
75,620,342 | 2 | null | 75,600,985 | 0 | null | Answer turned out to be pretty simple.
Just list all lib modules (`exposed-modules` and `extra-deps`) in the `:load (:l)` and `:module (:m)` property in the .ghci file
e.g.
`Myproject\.ghci` - a four module project
```
:l AuxFiles Check Common DSL
:m AuxFiles Check Common DSL
```
| null | CC BY-SA 4.0 | null | 2023-03-02T20:07:17.277 | 2023-03-02T20:07:17.277 | null | null | 5,589,037 | null |
75,620,340 | 2 | null | 75,619,925 | 1 | null | Why does it have to be purely random? You would maximize your chances to avoid choosing the same meal twice in a row if you picked among items that are available in larger quantities.
Edit: rewriting your code so that `check_if_item_has_been_used_last` isn't needed anymore:
```
import random as rand
days = ['Monday', '... | null | CC BY-SA 4.0 | null | 2023-03-02T20:07:09.357 | 2023-03-02T20:25:11.777 | 2023-03-02T20:25:11.777 | 13,525,512 | 13,525,512 | null |
75,620,347 | 1 | 75,623,057 | null | 1 | 18 | I have a larger query that does not seem to be working correctly so I have reproduced the issue with this smaller select statement that seems to show the same odd behavior.
This select :
```
SELECT '2023-04-03T04:00:00.000Z'::timestamp at time zone 'UTC',
'2023-04-03T04:00:00.000Z'::timestamp at time zone 'UTC' ... | Postgres timezone offsetting not working as expected | CC BY-SA 4.0 | null | 2023-03-02T20:08:19.270 | 2023-03-03T04:07:03.667 | 2023-03-03T04:07:03.667 | 939,860 | 21,321,727 | [
"postgresql",
"timestamp",
"timezone"
] |
75,620,336 | 1 | 75,620,402 | null | 2 | 28 | I want to create a condition to check if a subkey in a JSON file exists:
```
with open('C:/files/response.json') as json_file:
data = json.load(json_file)
if 'XMLRESPONSE' in data and data['XMLRESPONSE']['ITEM']:
print("key exist in JSON data")
else:
print("Key doesn't exist in JSON data")
input ("Press ... | Check if a subkey in a JSON file exists | CC BY-SA 4.0 | null | 2023-03-02T20:06:17.390 | 2023-03-02T20:16:43.703 | 2023-03-02T20:07:17.570 | 21,307,902 | 21,307,902 | [
"python",
"python-3.x",
"python-2.7"
] |
75,620,348 | 1 | null | null | 0 | 23 | I am trying to make case 3 display array as text in the innerHTML.
For some reason its not working, the array is a string already, I converted it using a `.join()` method.
```
let userList = ["Sarah", "Bryan", "Scott", "Mirande", "Tamzin", "Tamryn", "Steven", "Peter", "Skippi", "Sheldon"]
let menu = prompt("===== Menu... | InnerHTML not working to display array text | CC BY-SA 4.0 | null | 2023-03-02T20:08:23.237 | 2023-03-02T20:10:16.413 | 2023-03-02T20:10:16.413 | 1,377,002 | 19,728,428 | [
"javascript",
"arrays",
"switch-statement"
] |
75,620,349 | 1 | null | null | 0 | 38 | I am new and trying to build an Android application using Xamarin forms in C#. Here, I have a lable which is cutting off. Here is a screenshot of the output:
[screenshot of the output](https://drive.google.com/file/d/1wn1j3SEZKSX5FSQS198HJv2BpnXgVK9J/view?usp=sharing)
Here is the XAML code of the page.
```
<ContentPage... | Xamarin Forms Label Text Wrap Issue | CC BY-SA 4.0 | null | 2023-03-02T20:08:31.170 | 2023-03-03T05:49:08.523 | 2023-03-03T05:49:08.523 | 9,430,133 | 5,542,453 | [
"c#",
"android",
"xamarin.forms",
"uwp"
] |
75,620,350 | 1 | null | null | 0 | 20 | I was wondering if someone could help me with something I'm trying to do.
I'm creating a timer (+), I can't make the data persist on the device, ie if I close the app and reopen it, it should show me the value with its progress, like a clock ticking. Is this valid? Will it work in the background? I'm trying to make an ... | Flutter, persistent Timer | CC BY-SA 4.0 | null | 2023-03-02T20:08:31.393 | 2023-03-02T20:08:31.393 | null | null | 14,159,732 | [
"android",
"ios",
"iphone",
"flutter",
"dart"
] |
75,620,354 | 2 | null | 75,617,307 | 0 | null | The solution is to encapsulate nativeElement.childNodes in an Array.from() method. Apparently, it does not return an array thereby causing a problem in deleting the child nodes:
```
Array.from(nativeElement.childNodes).forEach(node => {
console.log('node.nodeName', node.nodeName)
if(node.nodeName === 'INPUT') {... | null | CC BY-SA 4.0 | null | 2023-03-02T20:08:53.637 | 2023-03-02T20:08:53.637 | null | null | 5,618,611 | null |
75,620,353 | 2 | null | 75,620,196 | 0 | null | `Watching for file changes with StatReloader` and `Performing system checks...` are merely debug informations provided by the `runserver` command. That command is by no means providing production-grade HTTP serving, though! Use it only for testing.
The method you provided actually work, you need to pay attention to no... | null | CC BY-SA 4.0 | null | 2023-03-02T20:08:44.697 | 2023-03-02T21:17:11.757 | 2023-03-02T21:17:11.757 | 2,320,153 | 2,320,153 | null |
75,620,351 | 1 | null | null | 0 | 11 | Frustratingly probably a simple resolution, but I cannot see the problem I'm having with my new templates in my custom blueprint, they are not found, but they are there.
Generated a blueprint template with `jhipster generate-blueprint`. Added some new files to the `generators/server/templates` folder.
Possibly related ... | How exactly do templates resolve in a blueprint | CC BY-SA 4.0 | null | 2023-03-02T20:08:32.690 | 2023-03-02T21:05:18.780 | null | null | 289,767 | [
"jhipster",
"jhipster-blueprint"
] |
75,620,355 | 2 | null | 75,615,648 | 1 | null | You can use [cy.clock()](https://docs.cypress.io/api/commands/clock) to set the date that you want to run the test on.
For example,
```
cy.viewport(1500, 1200)
cy.visit('/')
cy.clock(new Date(2024, 1, 1)) // set app date
cy.get('#example-datepicker') // open the dropdown
.parent()
.scro... | null | CC BY-SA 4.0 | null | 2023-03-02T20:09:05.453 | 2023-03-02T22:44:01.417 | 2023-03-02T22:44:01.417 | 16,695,029 | 16,695,029 | null |
75,620,356 | 1 | null | null | 0 | 14 | I want to minimize taskbar in windows 11.I added TaskbarSi into registry editor after seeing some youtube video.But it didnot worked.Is there any other solution?
| Problem with changing taskbar size in windows 11 | CC BY-SA 4.0 | null | 2023-03-02T20:09:08.660 | 2023-03-02T20:13:57.213 | 2023-03-02T20:13:57.213 | 10,867,491 | 21,321,688 | [
"windows"
] |
75,620,360 | 1 | null | null | 0 | 20 | In the last couple of days my PyTube script has slown down a lot without doing any changes. Is not important where I run it, if on Google Colab or Pycharm, it is very slow in the point in the screenshot. Can someone halp me ?[enter image description here](https://i.stack.imgur.com/TYZDW.png)
I couldn't try anything...
| PyTube suddenly slow down | CC BY-SA 4.0 | null | 2023-03-02T20:09:44.947 | 2023-03-02T20:09:44.947 | null | null | 21,321,742 | [
"python-3.x",
"pytube"
] |
75,620,352 | 1 | 75,620,501 | null | 0 | 31 | I am trying to write a code to change the order of called lists in nested loops.
The code I'm currently using is below. This is a simplified example, so I have removed all the extra functions and documentation. The real code is for creating plots based on the attribute set by variable `loop_by`.
This code works, but is... | How to change order of lists for nested loops | CC BY-SA 4.0 | null | 2023-03-02T20:08:36.407 | 2023-03-04T09:09:53.363 | 2023-03-04T09:09:53.363 | 466,862 | 21,321,423 | [
"python",
"loops"
] |
75,620,357 | 1 | null | null | 0 | 8 | `function onEdit(e) { const src = e.source.getActiveSheet(); const r = e.range; if (src.getName() != "data" || r.columnStart != 5 || r.rowStart == 1) return; const dest = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(e.value); src. getRange(r.rowStart,1,1,5).moveTo(dest.getRange(dest.getLastRow()+1,1,1,5)); //no... | How to move a row 5 cells of data to another tab/sheet | CC BY-SA 4.0 | null | 2023-03-02T20:09:12.993 | 2023-03-02T20:09:12.993 | null | null | 18,430,364 | [
"copy",
"copy-paste",
"move",
"copy-data"
] |
75,620,361 | 1 | null | null | 0 | 46 | I had an update to VS Code requiring reload. When I reloaded the default language changed to JavaScript: Babel. I am using React, after changing it to react I noticed that some of the inequality symbols turned red. It might be a feature not a bug but it looks strange. Could someone help me understand what is going on?
... | Reselecting my language mode in VS Code lead to some angle brackets turning red | CC BY-SA 4.0 | null | 2023-03-02T20:09:50.683 | 2023-03-02T21:12:37.137 | 2023-03-02T21:12:37.137 | 836,330 | 19,189,819 | [
"javascript",
"reactjs",
"visual-studio-code"
] |
75,620,363 | 1 | 75,620,384 | null | 3 | 43 | While reading or writing to file in binary mode, what's the difference between putting '+' between 'r'/'w' and 'b' or putting it right after them both?
I searched and i foud that this affects the behavoir of reading/writing to the file but i don't understand what that means...
| Difference between r+b and rb+ (or w+b and wb+) | CC BY-SA 4.0 | null | 2023-03-02T20:10:02.003 | 2023-03-02T20:18:49.187 | 2023-03-02T20:18:49.187 | 2,877,241 | 19,011,836 | [
"c",
"file-io",
"fopen"
] |
75,620,366 | 2 | null | 1,093,081 | 0 | null | Just put the page you want to start with.
Someone already put this answer similar.
It works and it is easy.
```
<meta http-equiv="refresh" content="0;url=START_PAGE_Current.html" />
```
| null | CC BY-SA 4.0 | null | 2023-03-02T20:10:20.633 | 2023-03-02T20:12:57.347 | 2023-03-02T20:12:57.347 | 21,321,760 | 21,321,760 | null |
75,620,343 | 1 | null | null | 0 | 15 | I have Mern app where Express server serves compiled React app. Although it seems like monorepo I only need to run Express server which is configured to serve React's build folder. I have two problems:
1. dependencies from server/package.json and client/package.json aren't installed by default because they arent in pr... | Env vars from app.json not injected in Node.js | CC BY-SA 4.0 | null | 2023-03-02T20:07:27.670 | 2023-03-02T20:07:27.670 | null | null | 4,383,275 | [
"node.js",
"reactjs",
"environment-variables",
"dokku"
] |
75,620,358 | 2 | null | 75,620,270 | 1 | null | You can find the indices where the difference between consecutive values of `m` is less than 0.
```
i <- c(diff(m) < 0, TRUE)
```
So we have
```
dat[i]
#> [1] "2013-01-31" "2013-02-28" "2013-03-31" "2013-04-30" "2013-05-31"
#> [6] "2013-06-30" "2013-07-31" "2013-08-31" "2013-09-30" "2013-10-31"
#> [11] "2013-11-30" ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:09:17.240 | 2023-03-02T20:16:31.770 | 2023-03-02T20:16:31.770 | 12,500,315 | 12,500,315 | null |
75,620,362 | 1 | null | null | -1 | 15 | I am working on an application with PHP with MVC (no framework like Laravel/Symfony) and I want to do some alerts based on some "if" statements.
I tried calling the JS function in my if statement, but it did not work, I tried with the basic "alert("message")" and I got nothing.
The code below is in the controller file
... | How can I use SweetAlert (or anything like that) in a PHP app with MVC | CC BY-SA 4.0 | null | 2023-03-02T20:09:50.847 | 2023-03-02T20:16:57.213 | 2023-03-02T20:16:57.213 | 5,613,681 | 5,613,681 | [
"javascript",
"php",
"alert",
"sweetalert"
] |
75,620,372 | 1 | 75,620,408 | null | 0 | 15 | So basically, I have the following code:
```
Future<bool> registerUser(String email, String password, String username) async {
AuthResponse res = await supabase.auth.signUp(
email: email,
password: password,
);
if (res.user != null) {
return true;
} else {
return false;
}
}... | How to exit out of supabase signUp() function if error occurs? | CC BY-SA 4.0 | null | 2023-03-02T20:11:15.080 | 2023-03-02T20:17:30.047 | null | null | 21,321,737 | [
"flutter",
"supabase"
] |
75,620,364 | 1 | null | null | 0 | 32 | My data frame looks like
```
testname| owner| seed| duration| status| module| date |
t1 | ram | 101 | NA | PASS | M_1 | 03_01_2023_15_42 |
t2 | ram | 101 | NA | PASS | M_1 | 03_01_2023_15_42 |
t3 | Wong | 101 | NA | PASS | M_2 | 03_01_2023_15_42 |
t4 | xin | 10... | Altair multiple graphs from single data frame | CC BY-SA 4.0 | null | 2023-03-02T20:10:07.070 | 2023-03-04T10:56:47.303 | null | null | 2,814,325 | [
"python",
"graph",
"charts",
"streamlit",
"altair"
] |
75,620,371 | 2 | null | 75,620,283 | 1 | null | Many Emoji characters are 8-bytes in UTF-8. For example, all the country flag Emojis are 8 bytes in UTF-8 encoding. This is because the flag Emojis are actually comprised of 2 Unicode characters each.
Some of the "people" Emojis are over 8 bytes in UTF-8 encoding. For example (picked at random), the "man vampire", char... | null | CC BY-SA 4.0 | null | 2023-03-02T20:11:04.003 | 2023-03-03T03:33:05.420 | 2023-03-03T03:33:05.420 | 20,287,183 | 20,287,183 | null |
75,620,375 | 2 | null | 75,561,857 | 0 | null | Try using * cell.contentView.isUserInteractionEnabled = false * in your cellForRowAt function. This property equal false ignore focus events and other events in the event queue and you become able to click in your button inside your cell.
| null | CC BY-SA 4.0 | null | 2023-03-02T20:11:35.307 | 2023-03-02T20:11:35.307 | null | null | 16,604,017 | null |
75,620,373 | 2 | null | 65,926,128 | 0 | null | This is different from the problem OP had but you also get this error if you are working in an environment with multiple node versions. In this case, you need to have yarn installed under each version of node, like so
```
/node/vx.x.x/lib/node_modules/yarn/bin/yarn.js
```
After switching versions, if the above is not ... | null | CC BY-SA 4.0 | null | 2023-03-02T20:11:16.590 | 2023-03-02T20:11:16.590 | null | null | 9,440,171 | null |
75,620,374 | 2 | null | 75,619,862 | 0 | null | Thanks to comment of @JimB I followd the project readme [here](https://github.com/spf13/cobra/)
First, init a module
```
go mod init <package name>
```
I installed the cobra dep as
```
go get -u github.com/spf13/cobra@latest
```
Then I installed as is the cobra cli
```
go install github.com/spf13/cobra-cli@latest
```... | null | CC BY-SA 4.0 | null | 2023-03-02T20:11:27.333 | 2023-03-03T19:20:04.413 | 2023-03-03T19:20:04.413 | 1,055,279 | 1,055,279 | null |
75,620,370 | 2 | null | 62,902,629 | 0 | null | I found a path that works for me, but may not work for others:
- Install [TightVNC](https://www.tightvnc.com/download.php) on the remote windows machine- On your local machine, install [vncdotool](https://github.com/sibson/vncdotool)
Then, script the unlock like:
```
#!/bin/bash
vncdo -s 192.168.0.101 --password="vnc-... | null | CC BY-SA 4.0 | null | 2023-03-02T20:10:48.757 | 2023-03-02T20:10:48.757 | null | null | 20,712 | null |
75,620,346 | 1 | null | null | 0 | 76 | I am trying to run a maven project from GitHub actions but it's failing with a lot of errors which I am unable to resolve. Any help is highly appreciated.
Error:
```
2023-03-02T19:55:03.1308665Z [INFO] -------------------------------------------------------
2023-03-02T19:55:03.1309334Z [INFO] T E S T S
2023-03-02T19:5... | Github actions: Maven project: Cannot find class in classpath | CC BY-SA 4.0 | null | 2023-03-02T20:08:17.953 | 2023-03-04T07:45:20.603 | 2023-03-04T07:45:20.603 | 4,207,440 | 4,207,440 | [
"java",
"maven",
"github-actions",
"maven-plugin"
] |
75,620,381 | 2 | null | 75,620,270 | 1 | null | Using `dplyr` and `lead`
```
library(dplyr)
tibble(m) %>%
mutate(m = lead(m, default=T) == 1) %>% unlist() %>% unname()
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[25] FALSE FALSE FALSE FALSE FALSE FALS... | null | CC BY-SA 4.0 | null | 2023-03-02T20:13:10.643 | 2023-03-02T20:19:22.600 | 2023-03-02T20:19:22.600 | 9,462,095 | 9,462,095 | null |
75,620,377 | 1 | null | null | -2 | 24 | Using SSRS, I am getting the following error:
> The definition of the report " is invalid. The Value expression for
the textrun ‘EmpBeginDate2_Emp_Begin_Date.Paragraphs[0].TextRuns[0]’
contains an error: [BC30201] Expression expected.
`=Format(IIF ((), (Code.Date_Started (Fields!YADST.Value)), #01/01/1899#), "M/d/yyyy"... | SSRS - [BC30201] Expression expected | CC BY-SA 4.0 | null | 2023-03-02T20:12:15.747 | 2023-03-02T20:13:07.807 | 2023-03-02T20:13:07.807 | 1,127,428 | 8,915,635 | [
"sql-server",
"reporting-services",
"ssrs-2012"
] |
75,620,379 | 1 | null | null | -1 | 53 | I have a button which is just below the textare and there is another button just above the textarea, due to some reason i cannot change the loction of the top button but on the screen i want that the button aobe the screens should be besides the button where the second button is, i have been able to bring it but when i... | position relative is not properly working for a button placement | CC BY-SA 4.0 | null | 2023-03-02T20:12:42.333 | 2023-03-02T20:39:02.850 | 2023-03-02T20:15:37.073 | 1,491,895 | 21,043,790 | [
"javascript",
"html",
"css"
] |
75,620,382 | 2 | null | 38,940,976 | 0 | null | The question was asked in context of JavaScript in the browser, but in case anyone wants to compare blobs in Node.js:
```
const areBlobsEqual = async (blob1, blob2) => {
return !Buffer.from(await blob1.arrayBuffer()).compare(
Buffer.from(await blob2.arrayBuffer())
);
};
```
| null | CC BY-SA 4.0 | null | 2023-03-02T20:13:22.377 | 2023-03-03T19:25:36.697 | 2023-03-03T19:25:36.697 | 399,105 | 399,105 | null |