instruction
stringlengths
0
30k
|sql|google-bigquery|
null
null
null
null
null
|javascript|html|google-apps-script|
|c++|templates|visual-c++|compiler-construction|
Playing around this on my computer gives the following results. ```text test tests::v_0_bench ... bench: 1,126 ns/iter (+/- 27) test tests::v_1_bench ... bench: 767 ns/iter (+/- 12) test tests::v_2_bench ... bench: 1,728 ns/iter (+/- 4) test tests::v_3_bench ... bench: 424 ns/iter (+/- ...
My current challenge revolves around Azure Test Plan's robust test management features, which unfortunately do not include built-in support for importing JUnit test results. This poses an obstacle for teams relying on JUnit for testing, as it disrupts the seamless integration and comprehensive reporting within Azure De...
You could use ``` Math.max(queue[0].duration, 1000 - (performance.now() - start)) ``` to make an interval between the jobs at least 1 second and call the schedule recursively. In that case returning a job could make not much sense, so you could collect your jobs in an array for example if needed. <!-- begin ...
Here's a brief test I use in my `bash` scripts (probably works in `zsh` also): ```bash while : do socat /dev/null TCP4:google.com:443 && break sleep 60 done ``` `socat` is placed inside an infinite loop; when it succeeds (i.e. the Internet is connected to my LAN) the `break` is executed which exits the lo...
Not sure if this is the cause of your problem (which you do not actually explain), but since you emphasized the importance of every bot running in its own thread I must point out that calling **`Executor#execute` does *not* necessarily run its task on a background thread**. Read the Javadoc; it clearly states that the ...
Hi there I created a custom API in google cloud but when I try to access the API it only gives me the google thing for signing into google cloud console script for access API: ``` const axios = require('axios'); const { google } = require('googleapis'); // Load the service account key file const serviceAcco...
GoogleAuth error in flutter - platformException(network_error, com.google.android.gms.common.api.ApiException: 7: , null, null)
|flutter|firebase|firebase-authentication|google-signin|
null
{"Voters":[{"Id":14249087,"DisplayName":"itprorh66"},{"Id":354577,"DisplayName":"Chris"},{"Id":2287576,"DisplayName":"Andrew Truckle"}]}
You can handle it that way, just make a list to store selected categories and display that list. Regardless where are those categories are displayed in a drawer or even in the body. class HomeScreen extends StatefulWidget{ @override State<HomeScreen> createState() => _HomeScreenSta...
This happens because you have **not allocated** memory for the **pointer** `char* ptr`. In this case you have to *allocate memory* for the pointer. One way to do this is to *dynamically allocate* memory using the functions `malloc()` and `calloc()`: ``` char* ptr; ptr = malloc(50); // Allocate space for 50 characte...
It depends on what you are trying to do. file, err := os.Open("file.txt") fmt.print(file) The reason it outputs &{0xc082016240}, is because you are printing the pointer value of a file-descriptor (`*os.File`), not file-content. To obtain file-content, you may `READ` from a file-descriptor. ---...
I am trying to create a Google Chrome extension web scraper, and the idea is a user clicks on the icon and the extension scrapes the current active tab and prints some processed data onto a popup. To do this, I decided to set in my manifest a default popup.html, and have the popup.js sendMessage to a content.js file...
# C++20 onwards [Shift behaviour is unified][8] irrespective of shifted value's sign since C++20! Consequently, right shift is clearly defined as arithmetic :) i.e. left-most bits are copied thereby maintaining sign. Relevant excerpt (emphasis mine): > The value of `a << b` is the unique value congruent to a * ...
From [SqlDumpReader][1] ``` from sql_dump_parser import SqlSimpleDumpParser import pandas as pd sample_lines = [ 'create table TBL1 (id1 int, id2 int, id3 int);', 'insert into TBL1 (id1, id2, id3) values (1, 2, 3)', 'insert into TBL1 values (4, 5, 6)' ] sql_parser = SqlSimpleDumpParser() ...
I created a tileset resource with a new atlas. I then tried to select all the tiles, but wasn't able to select tiles in the very right column of the tileset and in the last row of the tileset. Below is a picture of the issue I am facing. I tried to fix the issue as suggested by SilicDev by increasing the sprite size. ...
Considering the following 2 functions that are very similar: ```rust pub fn locked_fusion_proto<'a>() -> Result<MutexGuard<'a, (Box<(dyn Fusion + 'static)>, bool)>> { let c = Self::existing().unwrap(); let mx = c.fusion.as_ref().unwrap(); let lock = mx.lock()?; Ok(lock...
Error received when sending message across JS files: Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist
|javascript|google-chrome-extension|sendmessage|
null
I can't run any of my commands because the "+" sign keeps showing up on my R console. I have tried the "escape" key and "ctrl+c" but neither is working. Please I need help with this. Here is the command I am trying to run. initial_hare_population <- 300000 Hn <- initial_hare_population Hn <- 300...
I can't stop the "+" sign in my R console
|r|
null
For anyone looking the same: ## Create a 0.5 degree map of pixels with corresponding RGI regions # Extract relevant data rgi = gdf['01REGION'].values lon = gdf['CENLON'].values lat = gdf['CENLAT'].values # Set resolution and create grid resolution = 0.5 x_range = np.arange(lon....
{"Voters":[{"Id":9852762,"DisplayName":"Gary"}]}
#### Edit: fix is now on CRAN (1.15.4+) Unfortunately, you were affected by a regression in versions 1.15.0 and 1.15.2: https://github.com/Rdatatable/data.table/issues/5962. That issue is now fixed on CRAN as of v1.15.4. You didn't find any change in shift.R since the relevant change is in `gshift()`, the grou...
null
I am using `DGraph`: When i am updating two item with description key I am getting this error SCHEMA: type RefurbishmentRequest { id: ID! items: [RefurbishmentItem] purchase: Purchase @hasInverse(field: "refurbishment") issue: Issue @hasInverse(field: "refurbishment") requ...
null
I want to set different cropVariants for different content elements. I found a solution for this here: https://docs.typo3.org/typo3cms/extensions/core/8.7/Changelog/8.6/Feature-75880-ImplementMultipleCroppingVariantsInImageManipulationTool.html This works for the standard ctypes like textmedia but not for my own ...
How to set crop variants for only one specific ctype?
null
|java|memory|java-21|varhandle|java-ffm|
Hi I struggle to query this object { "$fieldlog": [ { "dt": "2024-03-12T08:05:55+01:00", "fields": [ { "field": "firstname", "newvalue": "Ivonne3", "oldvalue": "Ivonne" } ...
I am newly exploring to write IronPython script, i started to write the code with "from selenium import webdriver" and executed the code, i am getting the ImportError: No Module named selenium. As a prior step before executing of this code, i installed package "selenium" from python package management. My quest...
In spotfire, IronPython script: No Module named Selenium
|automation|ironpython|spotfire|
null
null
I hava a simple table like the following in a Numbers document and i want to select the last row(s) of the table with JXA script. [![enter image description here](https://i.stack.imgur.com/QOysz.png)](https://i.stack.imgur.com/QOysz.png) I can use the following code to make a range on the last row(s) of the table...
How to make a range for tail rows on a categorized table in Numbers with JXA scripts?
|macos|javascript-automation|
null
Please provide feasibility of solution above problem trying to connect server to server not able to connect getting session down Tried with Google solution didn't work looking for better solution for jsch utilities Kindly help me to resolve issue
Session down trying to connect sftp using jsch package in java
|java|
null
I am trying to write a personal project in JavaScript. So I started with an empty folder with two files: card.js constants.js and in `card.js`, I used on the first line: import { SUIT } from "./constants.js"; and run it using `node card.js`. It doesn't work, giving the error: > (node:9157...
null
|python|random|formula|calculation|
This library depends on Adafruit BusIO and unified sensor libraries, you need to download and include them in the code
This is a confusing problem for me. I'm passing a Guid into a method from a different DLL, and that Guid, as an argument, seems to lose scope - the Guid retains random values before the first two hyphens, but anything after is strangely zeroed out. The DLL represents code that is also running as a Windows Service, but ...
I'm encountering an issue with my React application where the content displayed on the PostPage component is that of a user profile instead of the intended post content. Here's a simplified version of my PostPage component ``` import React from 'react'; import { Box, Container, Flex } from '@chakra-ui/react'...
Why is profile content displayed instead of post content on React PostPage component?
|reactjs|routes|react-router|react-router-dom|
null
[After drop_na it shows 0 obs. of 68 variables] (https://i.stack.imgur.com/elrGR.png)(https://i.stack.imgur.com/txJEv.png)] [After drop_na I don't see any results in the Table except dates. This was not the case when I tried it before, I could see the values ​​in the table] +library(tidyverse) +WDI_GDP <-...
after drop_na it shows 0 obs. of 68 variables
|na|drop|
null
I programmed doodlejump. So far I have the Doodle and 2 platforms, but at the moment my Doodle only jumps on one platform and not on the others. But I've only had this problem since I added more than 1 platform. Does anyone have an idea why this could be? [Here is my code ](https://i.stack.imgur.com/6v7Oa.jpg)
needing to sign in to use custom API in google cloud
|javascript|api|google-cloud-platform|
null
*I tried the following code to convert a **.xlsb** blob to a **.xlsx** blob in an Azure storage container using the Azure Function app.* **Code :** ```python import logging import pandas as pd import azure.functions as func from azure.storage.blob import BlobServiceClient from io import BytesIO app = func...
.cer file is an X.509 format certificate and .key is a RSA key that is required to get the data from the client I want to replicate the scenario in spring boot java plz find the snippet attched below of Postman [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/qCOTS.png
How to replicate the scenario of the snippet attached below of Postman with Java Spring boot to send a .cer and .key file
|java|spring-boot|postman|
We don't use DataTables so much these days; the modern route would perhaps be to find a library that will bind an excel file to a list of objects, and make a strongly typed class to represent our file data then work with that I'll show you an example using the Sylvan.Data.Excel library - this is actively developed a...
return MediaQuery( data: MediaQuery.of(context).copyWith( textScaler: const TextScaler.linear( 1), //so that the font size doesnot change depending on device font size ), child: MaterialApp(home: homePage()); `textScaler` must be `TextScal...
We are in process of upgrading Spring boot 2.7 to 3.2 As part of this upgrade, I upgraded java 8 to java 18 and some other necessary updates too. I updated jaxb schema to jakarta ee and version 3.0. I changed namespace from java.sun.com to jakarta.ee Similar changes are made in global-bindings.xml, jaxb-bindin...
The default splash screen cannot be overridden with Dart/Flutter alone.You can use [flutter_native_splash][1] pakage to create the splash screen. And comment this lines of your `android\app\src\main\res\drawable\launch_background.xml` file. <?xml version="1.0" encoding="utf-8"?> <!-- Modify this file to cu...
for the recursive query that you were going for in the question - I think the trick is to think inside-out, start with the leafs and traverse to the parents, concat the values on the way up and land at the top with the whole expression, eg: with leafs as ( select *, s = value from expression_tree t where not exi...
When creating and switching between venv, please remember Environment Variables PATH, PYTHONHOME ... 1. Are you pointing at C:\ProgramData\anaconda3? or C:\ProgramData\anaconda3\envs\py39? 2. Have you restarted command prompt after Edit System Environment Variables?
In your situation, how about the following formula? ### Sample formula: ``` =IMPORTXML("https://www.tankathon.com/mock_draft","//a[contains(@href,'players')]") ``` In this modification, `//a[@href/contains("players")]` is modified to `//a[contains(@href,'players')]`. ### Testing: When this formula is u...
```swift self.MapView.isMyLocationEnabled = true ``` gives the following error. How do I fix it? ```swift import GoogleMaps class ViewController: UIViewController,CLLocationManagerDelegate { //Outlets @IBOutlet var MapView: GMSMapView! //Variables var locationManager = CLLocati...
|ios|swift|uikit|storyboard|
I have a numpy array and corresponding row and column indices: `mat = np.array([[0, 1, 2], [3, 4, 5], [6, 7, 8] ` ` row_idx = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0,]) ` `col_idx = np.array([0, 1, 2, 0, 1, 2, 0, 1, 2])` I would like to unravel mat by the groups specifie...
Unravel by multi-index/group
|numpy|array-broadcasting|
null
I have a numpy array and corresponding row and column indices: mat = np.array([[0, 1, 2], [3, 4, 5], [6, 7, 8] row_idx = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0,]) col_idx = np.array([0, 1, 2, 0, 1, 2, 0, 1, 2]) I would like to unravel mat by the groups specified by row_idx and col+idx. In the case of this exa...
Trying to parse C# isn't for the faint-hearted. Luckily, there's already a compiler you can use from a [NuGet package][1] :-) So, I had a go at using [Roslyn][2] for the first time, and it's fairly easy to accomplish what you want: ``` Install-Package Microsoft.CodeAnalysis.CSharp ``` Then, you can parse the C#...
The `.place(x, y)` method always places a widget at the same spot. If you want it to change when the window is resized you should add this line to your code: ```python root.bind("<Configure>", change_size) ``` Where change_size is a function which can be used to modify the widgets placement / size to match the w...
I have the below data where I am trying to identify the '-0.00' value with regular expression but that seems not working , please let me know why and provide a working solution ```sas data master; input val$ ; match = prxmatch('m/^\-\d[0]\.\d[0]+/o', strip(val)); datalines; -0.00 -0.05 0.00 ; run; ```...
why the perl regular expression is not identifying the value
|regex|sas|
null
>if you make the selections on the first row By "selections" are we to assume make changes - or select/change a value in the combo boxes, right? > I'd like to maintain the selection until all DropDownLists have been selected and I save the changes to the DB. A grid view will and should handle post backs on th...
So I've recently began to with the MSBUILD api for framework 4.0. Whenever I try to build my solution, one of my projects returns a failure in the OverallResult Failure Microsoft.Build.Execution.BuildResultCode. Only 1 project fails, all the rest build successfully. Buried way down is the exception - MSB0001: Internal ...