instruction stringlengths 0 30k ⌀ |
|---|
null |
|java|visual-studio-code|out-of-memory|heap-memory| |
I am configuring a OpenLiberty server.xml file. I have currently two versions of the server.xml file, one which has the openidConnectClient which helps me authenticate the user with SSO, and another which helps me authenticate the user with LDAP registry.
I would like to have an ability to decide to use only openid... |
Is there a way to conditionally disable openidConnectClient and instead use LDAP authentication using ldapRegistry in OpenLiberty? |
|open-liberty| |
null |
|git|environment-variables|github-actions| |
I have many DataGrid elements in my solution and I need to add row numbers there.
In Avalonia Github page they advices to use style. [![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/8kLIc.png
Could you tell me please how to create such style and show rowNumbers in first DataGrid column... |
Avalonia DataGrid add row number by using styles |
|avalonia| |
Intersting! I have been working with this kind of problems for digital twinning of stores. Here is a code that I have been using, adapted a little to your can. I ran this in Jupyter Notebook, so if you're using a GUI, you'll probably need to do some extra work:
```
import numpy as np
from shapely.geometry import P... |
Some webpages of the website are not working in Android using react-native-webview |
{"OriginalQuestionIds":[17145723],"Voters":[{"Id":2181514,"DisplayName":"fdomn-m","BindingReason":{"GoldTagBadge":"jquery"}}]} |
[R itself](https://stackoverflow.com/q/18780237/3157076) does not understand Fortran assumed shape arrays (such as `x` of `fsize`). There's a lot of work required to use an assumed shape argument in R and even `dotCall64` does not do that for you.
Recall that Fortran 77 didn't have assumed shape arrays. Recall also ... |
Pure bit operations: ceil: shift 1 left, current: unchanged, floor: shift 1 right, then clear the lo-bits:
static int Pow2Ceil(int value)
=> ((value << 1) & ~(int)(uint.MaxValue >> BitOperations.LeadingZeroCount((uint)value)));
static int Pow2Current(int value)
=> (value & ~(int)(uint.MaxValue... |
|javascript|jquery| |
null |
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 ... |
How to use mocha unit test chokidar watch events |
|npm|events|mocha.js|watch|chokidar| |
null |
any solution for this? i want to align those texts below vertically.
[enter image description here](https://i.stack.imgur.com/lFCcr.png)
here's my css codes
```
.d{ /* Sales Report Modules */
text-align: left;
margin-left: 10px;
margin-top: 50px;
color: gray;
}
... |
text alignment inside a container in html |
|html|css| |
null |
This should work ; write this code inside style.scss (global scss file).This will make the dialog background transparent.
```
.DialogClass .mat-dialog-container {
background-color: transparent !important;
box-shadow: none !important;
}
``` |
> Is it the tags data size (toast size) for individual row?
Individual row.
> Why do I get error in Full LOB mode but not in limited?
In Full LOB mode, it needs to perform a lookup.
First, it will migrate the non-LOB columns, and then it migrates LOB columns by performing a lookup using the primary key (PK... |
null |
I'm trying to install v3.1.2 of ```flint``` into my account on the [MPCDF](https://docs.mpcdf.mpg.de/faq/hpc_software.html) HPC cluster.
I managed to install GMP 6.3.0, MPFR 4.2.1 in my home directory with ```./configure --prefix=$HOME/software/<packagename>``` for the two packages.
From the ```flint``` directory... |
Undot Array in Laravel |
|php|arrays|json|laravel| |
In your `launchInventoryActivity` you are not launching the intent with startActivityForResult so it never enters on the onActivityResult method.
Your launch activity method should look something like this:
```
private void launchInventoryActivity(Player currentPlayer) {
//...
// remove thi... |
this is my project directoy, i have deployed my code to vercel, it works fine on local but dynamic pages shows 404 errors on vercel. [enter image description here](https://i.stack.imgur.com/AbDrp.png)
i added trailingSlash: true in next config but it still didnt work |
Next js app throwing 404 error when deployed to vercel, even though it works fine on local |
|next.js|deployment|http-status-code-404|vercel|i18next| |
null |
TypeScript's type system is largely [structural](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html#structural-type-system) as opposed to [nominal](https://en.wikipedia.org/wiki/Nominal_type_system). That means two types that have identical structure are considered to be identical types. It does... |
Coding a two-dimensional, dynamically allocated array of `int` is a non-trivial task. If you use a _double pointer_, there are significant memory allocation details. In particular, you need to check every allocation attempt, and, if any one fails, back out of the ones that didn't fail, without leaking memory. And, fina... |
See example. Recursive assembling expression formula from expression_tree table.
```
with triple as( -- recursive if PostgreSql
select expression_id,oid
,concat(
case when lv in('*','+','-','/') then concat('{',lid,'}')
else cast(lv as varchar) end
,ov
,case when rv in('*','+','-'... |
A one-liner without authentication:
```shell
$ curl -s http://OLD_JENKINS/job/JOBNAME/config.xml | curl -X POST 'http://NEW_JENKINS/createItem?name=JOBNAME' --header "Content-Type: application/xml" -d @-
```
A one-liner with authentication:
```shell
$ curl -s http:///<USER>:<API_TOKEN>@OLD_JENKINS/job/JOBNAME/con... |
null |
I need to use the "moment-timezone" library in my appscript. Can someone help me find the scriptId for it. I could find the scriptId for "moment" library but it doesn't include timezone information.
Thanks in advance. |
Here's a solution without the video inside the a tag.
You can use display: grid on the parent, and then put descendants onto the same row and column.
```
<style>
div {
display: grid;
}
a, video {
width: 512px;
height: 288px;
grid-column: 1;
grid-row: 1;
}
a {
z-index: 1;
}
</st... |
I need to create a template function that can take in map type <int, string> and <pair<int,int>, string> and print the key values. For the <int, string> map I only want to print the key type int, and for the <pair<int, int>, string> I want to print the iterator.first.first value. It seems like both statements get execu... |
I'm using LiveActivityIntent in the following way to add interactive buttons to my Live Activity:
```
struct Test: LiveActivityIntent {
static var title: LocalizedStringResource = "Test"
public init() { }
func perform() async throws -> some IntentResult {
return .result()
}
}
... |
Hide LiveActivityIntent Button from Shortcuts App |
|ios|swiftui|sirishortcuts|widgetliveactivity| |
I'm on Mac. In my case, the problem with this error was the absence of Python.
https://stackoverflow.com/a/71957847 |
I got the following classes in a spring project
interface IStep {
IStep doStep();
String getName();
}
@Component
public class Step1 implements IStep {
public final static String NAME = "STEP1";
...
}
@Component
public class Step1 implements ... |
How to loadClass spring class from spring jar |
What I have now is the following:
RewriteRule ^([^/]+)/*$ x/$1.html [L,NC,END]
This would point:
/abcd to x/abcd.html
/ABCD to x/ABCD.html
which would not be fine on a Unix file system that is case-sensitive.
What I want is to point both variations to:
x/abcd.html
How can t... |
How to ignore case in regexp mapping? |
Install Multiple Versions (lower version eg: 3.8.19) of Python on your Raspberry Pi
check : https://www.samwestby.com/tutorials/rpi-pyenv#Step%203
you can install PyCoral with pip:
python3 -m pip install --extra-index-url https://google-coral.github.io/py-repo/ pycoral~=2.0
Also be sure you have the latest vers... |
You can able to apply color to your edittext as like:
yourEdiText.setTextColor(0xff0000ff);
and for specific situation you have to put that code.
|
There is no direct way to implement tapjacking in flutter for overlay tap hacking .Flutter widget does not have
setFilterTouchesWhenObscured(true) property . You need to create a native bridge to achieve this in flutter |
{"Voters":[{"Id":997162,"DisplayName":"Mike Doe"},{"Id":147356,"DisplayName":"larsks"},{"Id":10008173,"DisplayName":"David Maze"}],"SiteSpecificCloseReasonIds":[18]} |
The reason for this error is that the total size of the output results of the Executors' tasks, when output to the Driver, exceeds the limit of spark.driver.maxResultSize.
Suggestions for handling:
Print the amount of data finally sent to the Driver program in the Executors' tasks to see if the daily data volume ... |
I have tried this demo for my requirement and it helped me a lot: [Android-Slider Demo][1].
[1]: http://blog.sephiroth.it/2011/03/29/widget-slidingdrawer-top-to-bottom/ |
I've assigned an A record in Cloud DNS to one of my Compute Engine VM instances, but it's not being resolved for 12 hours.
Should I wait longer (I mean, is it OK that it's not propagated yet, after 12 hours), or did I mis-configured something in Cloud DNS panel?
Main/Parent domain (without subdomain) is assigned ... |
Assigned A record for Subdomain in Cloud DNS to Compute Engine VM instance but not propagated/resolved yet |
|google-cloud-platform|dns|google-compute-engine|subdomain|google-cloud-dns| |
null |
I have a function that reads an HTML file and returns the value as a string, however, the string output contains a backslash whenever there are quotes in the HTML attributes.
Function:
```
public string Get(string page)
{
var doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(page);
var c... |
Flint installation error: make: *** [build/generic_files/memory_manager.lo] Error 1 |
|c|linux|makefile|autotools|flint| |
I am A novice coder(beginner) and I recently created a Netflix clone but there is one issue
in the inout placeholder whenever I type it comes in black colour but since the website is itself blackish its not clearly visible ....is there any way to change the input color
tried some inout placeholder functions all wer... |
How to change the input text colour in css web development |
|css|user-input| |
null |
> Has anyone of you tried to implement a such type of communication and can help me?
Start with a classical `PUB / SUB` pair-of-Archetypes, these are always present in all versions.
Independently of this, you may use UDP-based transport-class via a choice of **`epgm://`** :
> <sub>...*"Encapsulated PGM" or EPG... |
[Code for level generator][1] [This is how and where the level's spawn][2]I'm trying to instantiate my segments which are my levels in my endless runner game, it works, the levels spawn, but unfortunately they do not spawn in the place i want them to. For example it will spawn sometimes above the game and i want them t... |
|unity-game-engine|game-development|unityscript| |
I have created a graph with y-axis as project names, my project name is too long so I have already shorted it by using a callback method. My issues is I want to show it once you mouseover on y-axis so sometimes there are no records and it just shows 0 (so no tooltip is shown once you mouseover it).[![enter image descri... |
How can I show mouseover on y-axis (Not on bars), sometimes my labels are too long (I have already shorten it) and there is no data record |
|chart.js| |
null |
The way you are using `.matchedGeometryEffect` is to perform a *transition* between two images with different sizes and different aspect ratios. Due to the different aspect ratios, it is noticeable how one image fades out while the other fades in.
To avoid the fade-out/fade-in, you could try using a single image whi... |
Template function that can take standard map and map with pair keys as argument |
|c++| |
null |
I need to add new primary key to existing table(it already contains a primary key). Please provide me the query or solution for that.
If not possible, please provide alternate solution for that.
and one more query is , is there possibility to change the existing table name (rename).
Best Regards,
Vijay V |
Alter primary key combination for existing table in cassandra |
|cassandra| |
null |
in my case, I forgot to build the project
eas build --profile=development --platform=ios |
How can I fix my dart code by not highlighting my code syntax even after uninstalling and reinstalling the flutter, dart extension on vs code and reinstalling the flutter sdk?
I uninstalled and reinstalled both the dart and flutter extension and the flutter sdk and my code was still not getting highlighted. |
I'm a fairly new user to Deneb and Vega-Lite. I'm in the process of creating a bar-line combo chart that has a frequency as the line and counts as the stacked bar. I was able to create stacked bars. When I create the new line mark in the layer, the data points used for the line appear to be mixed up with the data point... |
Deneb line chart in combo bar-line chart is not continuous and appears to be mixing up data points |
|deneb| |
null |
I am using `react router dom 6.22.3`
I have created `browser router` like this
{
path: "/",
element: <MainLayout />,
errorElement: <Error />,
children: [
{
path: "/",
element: <Dashboard />,
loader: DashbaordLoader,
... |
Another options, use `pd.cut`:
```py
bins = pd.IntervalIndex.from_arrays(df2["start"], df2["end"])
df1["id"] = pd.cut(df1["date"], bins).map(dict(zip(bins, df2["id"])))
print(df1)
```
Prints:
```none
date price id
0 2024-01-01 0 NaN
1 2024-01-02 1 a
2 2024-01-03 2 ... |
{"Voters":[{"Id":3603681,"DisplayName":"Professor Abronsius"},{"Id":157957,"DisplayName":"IMSoP"},{"Id":5947043,"DisplayName":"ADyson"}],"SiteSpecificCloseReasonIds":[13]} |
Run `test.ts` with Deno runtime, I can get entry from Deno KV just fine:
```ts
const kv = await Deno.openKv();
const a = await kv.get(["preferences", "ada"]);
console.log(a);
// Result: {"key":["preferences","ada"],"value":{"username":"ada","theme":"dark","language":"en-US"},"versionstamp":"00000000000000090000"}
... |
Why does getting entries from Deno KV in routes result null data? |
|deno|freshjs|deno-kv| |
Using Malvin Lok's answer as a lead, I located `io.netty.handler.codec.http.HttpHeaders` and put a breakpoint for each `set*(..)` and `add*(..)` method. Here's what I found
Default headers are added one by one in different places of Netty code. It's hard-coded, there are no injected strategies or configs. There's ap... |
I am making a physics-based character controller however I have hit a roadblock; the character topples over.
I have tried to use SetAngularFactor() but that only locks the rotation on 1 axis when I need to lock all 3. Here is a basic version of my code:
`rigidbody->setAngularFactor(btVector3(1.0f, 1.0f, 1.0f));`
A... |
In my Zephyr DTS binding I have a node with a given compatibility, let's call it `my_compatibilty`, with an optional property of type `phandles`, let's call it `things`, allowed to have up to two elements. In my driver code I can build up an array of the leaves of this tree; for instance, I can make an array of the v... |
Zephyr device tree: how to get the values of the named properties of a phandle behind a phandles, for all compatible nodes? |