instruction stringlengths 0 30k ⌀ |
|---|
Missing PAGE_GUARD flag on the memory of stack for one windows application |
|windows|stack| |
null |
|php|laravel|laravel-8| |
Maya Python script applies texture to all objects instead of selected object |
A <Link> tag is typically used for linking to other documents, such as a CSS stylesheet.
Whereas the <a> tag is used to link to an external page, such as <a href="https://www.youtube.com"></a> would take the user to YouTube. |
We can't precisely debug this without access to a reproducible example, but here are some tips:
* if you have 5 binary predictor variables (== independent variables [IVs]), and you want to fit a model with all 5-way interactions, you need to have observations from all 32 combinations of the predictors. If any are mi... |
I want to fetch the child user ID based on the parent ID. I have found a solution
https://stackoverflow.com/questions/45444391/how-to-count-members-in-15-level-deep-for-each-level-in-php
Tried Answer
https://stackoverflow.com/a/45535568/23864372
but am getting some errors.
I have created a class -
```
... |
How to pass sensitive data from FreeMarker to JavaScript without exposing it in the browser |
|javascript|frontend|freemarker|content-security-policy|javascript-security| |
config_filename = os.path.join(os.path.dirname(sys.argv[0]), f'{config_filename})
will get you the FQN for the config based on where the script is located, works in all environments
|
[enter image description here](https://i.stack.imgur.com/qL3yX.png)
Just as I say in the title, I have this line in the header of the last page of the list of tables in my document. Just before the headers start in the content, which is the only part where I want headers. Therefore, I want to delete that line, but I... |
For personal/academic purpose I'm working with custom allocators, specifically with pool allocators.
The next step I would take is having some class, each of which with its specific pool allocator, but each space request have to pass trough a proxy allocator that redirect to/call the right allocator for the class as... |
I am planning to run a series of commands in IPython, and I plan to do this in multiple iterations. Is there a way for me to streamline the process by making a shell script that:
1. Will activate the conda environment
2. Will activate IPython and execute a series of commands
3. Will exit IPython, move some files, ... |
I have a MAX 9814 microphone/amplifier attached through ADC to my Raspberry Pi Pico WH. I am trying to get it record audio (specifically into a .wav file). I am struggling to understand the digital information that microphone is sending me, and would appreciate help on analyzing what I believe to be PCM values.
BTW... |
Please [note here](https://jestjs.io/docs/code-transformation#typescript-with-type-checking) that the transformer should return an object with `code` property.
if you write your transformer like this:
```js
import path from "path";
import fs from "fs";
function process(sourceText, sourcePath, options) {
r... |
Follow-up: As of **Storybook 7** dynamic titles are not allowed anymore. Neither as a function nor as a template literal.
```js
// ✅ string literals 6.3 OK / 7.0 OK
export default {
title: 'Components/Atoms/Button',
};
// ✅ undefined 6.3 OK / 7.0 OK
export default {
component: Button,
};
// ❌ expres... |
The best thing is to rewrite the JSPs to remove scriptlets and move business logic to the action classes.
You could also use Struts2 `<s:if>` and `<s:else>` tags to render content conditionally.
The `commons-fileUpload` is the default implementation for uploading files in Struts2, to use it correctly you could ... |
I'm playing around with [Net::DNS::RR](https://metacpan.org/pod/Net::DNS::RR) and I am a bit confused about some random characters appearing in the output of DS records when I call `Net::DNS::RR->string`(or `Net::DNS::RR->print`). The output for `Net::DNS::RR->plain` is what I expected.
```
#!/usr/bin/perl
use s... |
Random characters in DS record from Net::DNS:RR when calling print/string |
|perl|dns| |
null |
1. The type of the parameter `n` and of the counter `i` should be `size_t`, not `unsigned int`.
2. The type of the first two parameters should be `const char *`.
3. Although the strings are passed as pointers to `char` (with `const`), the characters should be interpreted as if they had the type `unsigned char`, p... |
I'm trying to create a Settings module using SwiftUI.
I have the following hierarchy
- Settings (struct)
- Section (struct)
- Subsection (struct)
- ButtonRow: Row
- Subsection (struct)
- ButtonRow: Row
- ToggleRow: Row
- Section (struct)
- Subsection (struct)
- But... |
The table below has some information about running races. There are multiple rows that are attributed to the same race, and you can tell by looking at the FirstID and SecondID columns. The SourceID column connects the multiple rows together.
For example, row 2 is a continuation of row 1 because the SecondID of row 1... |
kdb/q Creating new columns based on the beginning of a grouping of rows |
|grouping|kdb| |
I have stored a gzip file in a bucket. The metadata of this file is:
- Content-type: application/json
- Content-encoding: gzip
- Cache-control: no-transform
As per their documentation:
> When an object meets these two criteria, it undergoes decompressive transcoding when served, and the response containi... |
|jsonschema|pydantic|python-jsonschema| |
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-html -->
Try this and let me know if it is working as you expected .
%dw 2.0
output application/json
var currentDate = now()
var currentYear = currentDate.year
var currentMonth = currentD... |
i am working on a android project and i have to create a card view like this :
[![CardLayout][1]][1]
i create the layout in Xml like this :
<androidx.cardview.widget.CardView
android:id="@+id/cardDevice"
android:layout_width="0dp"
android:layout_height="wrap_content"
and... |
I try to Upload Files with Ajax Post and form.serialize, but my req.body looks like this:
```
{
_uploadFilesMessage: '',
mailgroupIDS: '',
'field[0][fileID]': '0',
'field[0][filename]': 'img_nature_wide27.jpg',
'field[0][filetype]': '2',
'field[0][selTag]': '322444370236',
'fie... |
Best Way to Convert js object |
|javascript|arrays|object| |
{"Voters":[{"Id":6403381,"DisplayName":"Tony stark"}],"DeleteType":1} |
I am using Firestore to fetch data based on a filter that utilizes the 'array-contains-any' operator.
Here is the code I am using to fetch the data -
```
const fV = this.getFV(this.selectedButton);
return qnaCollectionRef
.where('qS', 'array-contains-any' , fV)
.onSnapshot((querySnapshot) => {
```
here is t... |
Using MAX 9814 PCM data to create a .WAV file |
|wav|micropython|pcm|raspberry-pi-pico|adc| |
null |
When I write code in VS Code and i run it everything is fine, but when i change something to the code and hit ctrl + s the changes aren't updated or ran in the terminal.
For example changing the value of a variable that i want to print, when i execute the print after saving the changes to the variable with ctrl + s... |
Jonathan from the Google Cloud SQL Proxy team here.
The Cloud SQL Auth Proxy is great for securing connections between a local application and Google Cloud. It is ONLY intended to be run on the same machine as the application.
To secure your connection between your on-prem application and your Cloud SQL instanc... |
There's lots of different ways that people implement Clean Architecture, so it's up to you to find what you like best. I've created an example below that's how I would do it.
It's the Bloc that should have the stream for the UI; the Use Cases don't need to have a stream, they can notify the Bloc to update the UI by ... |
filter() function not working in for loop - maybe due to uncommon column names? |
null |
I need to convert some Oracle query strings to be Postgres compatible. Some of the queries use the Oracle TO_NUMBER function which isn't valid in Postgres.
So I need to remove all occurrences of TO_NUMBER function in sql queries, and replace with an explicit cast to integer...
Here is an example SQL to be conver... |
use below code and use relative layout instead of linear layout.
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
a... |
When I allocate large space with std::vector it takes significant time because std::vector default-initializes the objects in it.
I see that a long time ago people discussed the topic in the [How can I avoid std::vector<> to initialize all its elements?](https://stackoverflow.com/questions/5958572/how-can-i-avoid-st... |
When I make the first parameter less than three decimal places and try make it be converted to three decimal places it won't do it. It will just add it to the list how I wrote it. If the value is 9.13, it won't print in the list as 9.130, it will still be 9.13. I've tried the `round` function, formatting, etc. Also, wh... |
Why wont variables in the list print to 3 decimal places? |
#### `Two reasons`
#### **#1** [Client Credentials Flow](https://developer.spotify.com/documentation/web-api/tutorials/client-credentials-flow) can't delete playlist
You did `"grant_type": "client_credentials"` for getting access token
You should use [Authorization Code Flow](https://developer.spotify.com/docu... |
without any sample data to reproduce this, from your code it looks like you did not pipe the data before your ggplot call that is why your error says `data` must be `data.frame`. try this code below which includes the pipe operator like @VinceGreg suggested:
q1 <- Hsall_df %>% filter(code == 118) %>%
ggpl... |
{"Voters":[{"Id":2664350,"DisplayName":"piet.t"},{"Id":13061224,"DisplayName":"siggemannen"},{"Id":1227152,"DisplayName":"mustaccio"}]} |
A <Link> tag is typically used for linking to other documents, such as a CSS stylesheet.
Whereas the <a> tag is used to link to an external page, such as <code><a href="https://www.youtube.com"></a></code> would take the user to YouTube. |
I have the following sample dataframe:
| ID | date | data | avg |
|----|------------|----------------|--------------|
| 1 | 18/3/2024 | 45.72991477 | 9.845398369 |
| 1 | 19/3/2024 | 16.66879054 | 12.22665416 |
| 1 | 20/3/2024 | 0.956178897 | 12.29306183 |
| 1 | 21/3/2... |
Incremental moving average |
The `blob` is valid only for the duration of the browser session. Therefore, you can either store the `blob` data somewhere on the server, or you can convert the `blob` data to a `Base64` string and store this string in `localStorage`. |
1) What needs to be implemented to handle Accept Word and Accept Line feature?
2) Do we need special handling for Accept Word/Accept Line in provideInlineCompletionItems?
3) For our vscode extension we have implemented both vscode.CompletionItemProvider and vscode.InlineCompletionItemProvider,... |
Download file from GCP bucket without using decompressive transcoding by default |
|node.js|google-cloud-platform|google-cloud-storage|google-client| |
null |
In the GitHub web UI, my repo displays "Src" and "src" folders, and some files appear in one and most files in the other. Locally, there is a single "src" folder containing all files.
I have poked around the web interface and Visual Studio while also trying to find specific references in Google, but so far no luck.
... |
GitHub believes I have two Src folders when there is just one |
|visual-studio|github| |
|c|winapi| |
You're trying to install MariaDB Connector/C with Python 3.13 alpha (stable version expected in October 2024).
Pypi.org provides MariaDB Connector/C wheel packages for all non eoled stable versions, but not for development versions. For these versions it is required to install prerequisite MariaDB Connector/C. .
... |
It looks like you may be mistakenly interpreting the destruction of your instantiated object as being a result of your call to Destroy on line 68 - when in reality the destruction is occurring because the ARTrackedImageManager is destroying the ARTrackedImage itself - immediately after sending the 'removed' event.
A... |
Can someone please help me point to a tested repository which will have Oracle as well as SQL Server versions of the same code (procedures/functions)? I need some examples which cover some of the core differences and have been tested for accuracy. Thanks a ton!!
If not a repository, any website I can refer to with s... |
Oracle PL SQL Code to MS SQL Server T-SQL Code conversion |
|sql-server|oracle|code-conversion| |
Firestore query with 'array-contains-any' operator not returning expected data |
|angular|typescript|firebase|google-cloud-firestore| |
One solution to this problem is to set up your project as a [reusable app](https://docs.djangoproject.com/en/5.0/intro/reusable-apps/) (or a set of reusable apps). For example you'll create apps called `myproject_component_a`, `myproject_component_b`, etc. then for each customer you'll create a separate Django project ... |
running this code multiple times, I sometimes get the expected output but otherwise I get the StopIteration FIRST, and then the prints from the loop
```
import sys
data = ['a', 'b', 'c']
def myf(*args):
for arg in args:
yield arg
generator_object = myf(*data)
while True:
try:
... |
Python: StopIteration exception raised before loop over generator |
|python|generator| |
null |
i use bloc for state management to fetch data from api
```
FutureOr<void> fetchAllDrinksList(
GetAllDrinksList event, Emitter<HomeState> emit) async {
await apiRepository.getAllDrinks().then((value) {
emit(state.copyWith(
status: HomeStatus.success,
drinksList: value,
... |
This is exactly the situation [described in the NVDA Bug](https://github.com/nvaccess/nvda/issues/8620) which is still open.
The difference with the other linked examples is that they don’t focus the dialog itself, but an element inside. It’s best practice to focus the first interactive child. If there’s none, the t... |
I know that iPads do not have the ability to read NFC tags, unless paired with an iPhone. However, I know there are payment systems that use an iPad to scan NFC credit cards, so I am hopeful there is some sort of hardware I can plug or connect to an iPad and allow reading of NFC ids.
Is anyone aware of how to do th... |
Possible to use NFC for iPad |
|ios|ipad|nfc| |
2024-03-17T08:20:03.773651612Z FetchError: request to https://cerberus.profound.works/api/errors/cqrkw6a7416l2oh/production failed, reason: getaddrinfo EAI_AGAIN cerberus.profound.works
2024-03-17T08:20:03.977787009Z at ClientRequest.<anonymous> (/home/node/node_modules/next/dist/compiled/node-fetch/index.js:1:657... |
I need to convert some Oracle query strings to be Postgres compatible. Some of the queries use the Oracle TO_NUMBER function which isn't valid in Postgres. So I need to remove all occurrences of the TO_NUMBER function in the sql queries, and replace with an explicit cast to integer...
Here is an example SQL to be co... |
I am doing a student attendance project. I record attendance in a table in the database.
I want to create a monthly attendance report. I found a stored procedure to do that.
Table
CREATE TABLE Attend
(
NAME VARCHAR(50),
DATE DATETIME ,
PRESENT_STATUS VARCHAR(10)
)
Store... |
Accept Word and Accept Line feature does not work for MAC for any vscode version and for Windows on vscode version later than 1.86.2 |
|vscode-extensions| |
>How to make Postgres GIN index work with jsonb_* functions?
You can't. PostgreSQL [indexes][1] are tied to operators in specific operator classes:
>In general, PostgreSQL indexes can be used to optimize queries that contain one or more WHERE or JOIN clauses of the form
>
>>*`indexed-column`* ***`indexable-operat... |
{"Voters":[{"Id":12002570,"DisplayName":"user12002570"},{"Id":721855,"DisplayName":"aled"},{"Id":11002,"DisplayName":"tgdavies"}],"SiteSpecificCloseReasonIds":[18]} |
A <Link> tag is typically used for linking to other documents, such as a CSS stylesheet.
Whereas the <a> tag is used to link to an external page, such as `<a href="https://www.youtube.com"></a>` would take the user to YouTube. |
I've written an Azure function that downloads a blob on an HTTP trigger. When I debug this function locally, code execution makes it through the entire function, past the return, and then throws a vague error before actually sending the return.
Here is the function:
```
public class GetBlob
{
priva... |
This error appears if someone is installing a full raspberry pi os for whatever reason. So just run sudo apt install rpicam-apps-lite and after that try again text the problem solved, this is for everyone who experience this problem. |
I am trying to add the image in axis text. I am using RadarGraph from SVGGraph library.
[](https://i.stack.imgur.com/zNjaE.png)
I am not able to find a solution for that.
**What I tried**
I found an option `axis_text_callback_x` but I am not able to ... |
Monthly attendance report in Crystal Report |
You have added an extra '1' in `v0.1` at the URL. Also, the correct URL path is a bit different as well
`wget -P $HOME/weights -q https://github.com/WongKinYiu/yolov9/releases/download/v0.1/yolov9-c.pt`
Try the above and it should work |
I have a WireMock API setup for testing purposes. First, I was using the short way to make a REST call to my WireMock endpoint:
var response = await _httpClient.PostAsJsonAsync("resorce/someRoute", obj);
This simply didn't work and I always got a "Not Found" response. After a lot of debugging without finding ... |
.NET WireMock reject PostAsJsonAsync serialization |
|c#|.net|dotnet-httpclient|wiremock|wiremock.net| |
I am trying to use bootstrap inside an asp.net core project. I installed bootstrap with bower.
this is my bower file:
{
"name": "asp.net",
"private": true,
"dependencies": {
"bootstrap": "3.3.7",
"jquery": "2.2.0",
"jquery-validation": "1.16.0",
"jquery... |
asp.net core bootstrap not working when being loaded locally |
When using the type of the first argument of one function as the type of the first argument in another function typescript loses the generic type conditions.
```
const example = <T,>(args: {a: T, b: T extends number ? number : never}) => {
console.log(args.a, args.b)
}
example({a: 12, b: 13}) // works as e... |