instruction stringlengths 0 30k ⌀ |
|---|
|azure-devops| |
null |
for my current project I've found a similar exmaple on the or tools github repo I use as blueprint: https://github.com/google/or-tools/blob/stable/examples/contrib/scheduling_with_transitions_sat.py
In the working example each job has got only one 'task' with two alternatives:
small_jobs = [ [[(100, 0, 'R6')... |
i need the song history text and art from this api: https://azuracast.web-radio.nl/api/nowplaying/2
i want to remake this because this works for the currently song and art:
function getAPI() {
$.getJSON("https://azuracast.web-radio.nl/api/nowplaying/2", function(data){
//
var art = data.no... |
song history needed from api |
|javascript|html|json|api| |
Trying to style a div tag. Here is my code. I've gone over it numerous times and can't figure it out. My other style elements work perfect on the page but I can't seem to get **.header** to work.
resume.html
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-css -->
b... |
dyld errror When Including Debug Symbols In native C Library |
|c|macos|clang|apple-silicon| |
# Don't use Optional as a field
I would advise getting rid of the Optional.
Firstly, `Optional` **doesn't** implement `Serializable` hence your class is **broken** (because for an object to be serializable, the whole object graph should be serializable).
Secondly, using `Optional` as a field is an antipattern,... |
Biiiiiig picture first. It's clickable and should be clicked.
Pick your parameters:
- The stain color you're interested in (I assumed some type of red/brown)
- The distance function. I picked a gaussian.
- The parameters of the distance function. I show a bunch of sigmas.
[![enter image description here][1]][1... |
I am trying to create a for loop in R that will display the mean and max for each row in a matrix. Thus far I have:
for (i in 1:nrow(matrix_data)) {
row_means[i] <- mean(matrix_data[i, ])
}
{
max_values_matrix_data [i] <- max(matrix_data [i, ])
}
Mean <- row_means
Max <- m... |
If you change AmplifyTheme to a customTheme and make the changes below -
sectionFooterLink: {
...AmplifyTheme.sectionFooterLink
color: 'transparent',
}
Don't forget to export App with {theme: customTheme}. |
This only applies if you're using redis_cache_store. If you are you can access the Redis connection and then call the ttl method.
```
Rails.cache.write("my_cache_key", "hello", expires_in: 100.seconds)
sleep 1
Rails.cache.redis.ttl("your_redis_namespace:my_cache_key") => 99
``` |
Note that i'm using JQuery for this example because it's easier and saves you from a lot of stress and cross-browser issues.
If you just pass in the error code like you're already doing, Werkzeug wraps the error message in html (Though you can still use regex to extract the error message on the client side, but that... |
I'm developing a SaaS chatbot service that aims to provide individualized ChatGPT models for hundreds of customer accounts. Each customer should be able to train their ChatGPT model with their own knowledge base, including documents in various formats (e.g., doc, pdf, txt) to cover specific information like price lists... |
Integrating Custom Trained ChatGPT Models for Individual Customer Accounts in a SaaS Offering |
|chatbot|openai-api|chatgpt-api|fine-tuning| |
**To add 'Reader' role to Application in Azure PowerShell using file upload, check the below:**
Click on manage file share.

Then click on Add directory:

**Save the below scrip... |
null |
null |
null |
null |
null |
[enter image description here](https://i.stack.imgur.com/P3fYM.png)
Getting this red lines while declaring the variables in .scss file in VS Code. please help to get rid of this lines
error i'm getting:
[enter image description here](https://i.stack.imgur.com/6a12k.png)
I tried different configurations in set... |
i got this exption after the project run with my flutter project |
|flutter|firebase|dart|dart-pub| |
null |
> How to stop gdb from changing environment?
GDB doesn't change the environment _on its own_. However, it _does_ invoke your `$SHELL`, and if you have `~/.bashrc` or similar file changing the environment, than these changes will affect any process invoked by the GDB `run` command.
You can confirm whether that is ... |
I want to make a matrix of QQ plots like the one posted here [Sample set QQ plot comparing different elements to each other] . Below is a condensed version of my data frame. For each scan (a-c), I want a QQ plot to compare the grain size (numerical values below the element names) for each chemical element (s, fe, cr, ... |
|r|ggplot2|ggally| |
null |
operator delete after both operator new and placement new? |
|c++|c++14|language-lawyer| |
i am creating a mern stack user management system. I am using country-state-city to create 3 dropdown using react select.If the form is on editmode the country state city values get populated by the current passed user values. As soon as i change country dropdown ,the city and the state dropdown not getting updated bas... |
How to fix react select dropdown for country-state-city not working properly |
|javascript|reactjs|react-hook-form|react-select|cascadingdropdown| |
Try this code:
[ServiceContract(Namespace = "http://example.com/Report")]
public interface IReport
{
[OperationContract(Action = "http://example.com/Report/Save")]
void Save(string name, Skills skills);
}
[DataContract]
public class Skills
{
[DataMember]
... |
I have a table that has date range and i want to calculate the days that has been elapsed between 2 date
|workorder|sequence|start date|end date|
|---------|--------|----------|--------|
| 123 | 1 | 2024-01-02 |2024-01-05 |
| 123 | 2 | 2024-02-01 |2024-02-06 |
| 123 | 3 | 2024-02-10 |2024-02-11 |
| 200 | ... |
When you use `hadoop jar` in the terminal, that terminal session is the driver client
If you use Oozie, instead, for example, the driver will be deployed in the cluster |
I want to remove the street names etc in LookAround in my SwiftUI app. I can’t seem to find any working solutions to this. I’ve seen other apps pull this off and I just can’t find the solution. Please help me

I tried something like this, but it... |
How Can i rid of the red lines while declaring variables in .scss file in VS code |
|html|css|visual-studio-code|sass|scss-lint| |
null |
In the current version of `rnaturalearth`, `ne_countries()` returns an `sf` object, so `raster`(?) methods do not really know what to do with it.
Your 2nd issue is related to less-than-ideal shapes from Natural Earth combined with `sf` default mode when dealing with geographical coordinates -- s2 (spherical geomet... |
Currently using "WooCommerce Subscriptions" and "all Products on Subscription plugins". I can't use coupons when having both one-time purchase and subscription product in the same cart. I would like to allow coupons on “One-time purchase” and don’t allow coupons on “products on subscription” when they are in the same c... |
We help people. There are many people who want to promote their business or their content through social media and for that they create links of small WhatsApp groups and they share the links of such groups with us.
[links type](https://i.stack.imgur.com/OmGrC.jpg)
Links are like https://chat.whatsapp.com/JJZ4Ob... |
In my case, I use this:
import { ApplicationConfig } from '@angular/core';
import { provideRouter } from '@angular/router';
import { provideAnimations } from '@angular/platform-browser/animations';
import { routes } from './app.routes';
import { provideHttpClient } from '@angular/common/http'... |
I'm using VSCode on Windows, with the GitBash as integrated terminal. When I launch the Python Debugger with default configurations, it works fine, and I get this command executed on the terminal:
```shell
/usr/bin/env c:\\Users\\augus\\.Apps\\anaconda3\\envs\\muskit-env\\python.exe \
c:\\Users\\augus\\.vscode\\... |
Fitting a sine curve with unknown amplitude, frequency and phase is a non-linear problem. If the frequency is known, then it can be solved with linear least-squares as other mentioned.
When frequency is unknown, the optimal solution in case of a sine wave in white gaussian noise is described in the classical book by... |
null |
There is no build in solution in the JDK for this kind of use case. I would either suggest to create 2 SSLContext. For every keystore 1 and use that to call the Jedis server.
If you are willing to use a library, then this option is possible. I have created this kind of option which will do the trick. See below for t... |
Many of us enabled WSL2 integration and install Ubuntu from MS Store after installing Docker Desktop (at least >= 4.7.1) and starting Kubernetes, and found Kubernetes failed to start and stuck, for me the cause was due to the 'Ubuntu' in MS Store defaults to Distro 22.04.X which I believe is not working well with Docke... |
I am using latest version of Quarkus with Kotlin and Qute.
I am trying to run my index page and when I call the page in browser I am keep getting white page with the below message. Look like the page is not rendering or the html file is not identified in templates folder.
**io.quarkus.qute.runtime.TemplateProduc... |
null |
|python|python-3.x|depth-first-search|memoization| |
Encountering a hiccup with the PUT method in my web app. While other data fields update fine, the array of multiple images remains unchanged. Utilizing the ImgBB API for image hosting. All other CRUD operations (POST, DELETE, GET) work flawlessly, but the PUT method struggles only with multiple images. Seeking advice t... |
PUT Method Fails to Update Array of Multiple Images (ImgBB API) |
|reactjs|node.js|mongodb|express| |
null |
{"Voters":[{"Id":16540390,"DisplayName":"jabaa"},{"Id":4657412,"DisplayName":"DavidW"},{"Id":4267244,"DisplayName":"Dalija Prasnikar"}],"SiteSpecificCloseReasonIds":[18]} |
We're using `pnpm` now in our monorepo. Everything is working great when running locally. Everything is working great when deploying *for packages that are bundled*.
For the couple Node Express applications that we do *not* bundle, our deployment process ZIPs those package folders which breaks the symbolic link to t... |
Getting Sub-dependencies in a pnpm Deployment Without Bundling |
|node.js|node-modules|pnpm| |
null |
```sh
curl --request GET "https://YOUR_HOST_URL/api/2.1/jobs/runs/list" \
--header "Authorization: Bearer YOUR_TOKEN" \
--data '{ "cluster_id": "OPTIONAL_CLUSTER_ID" }'
``` |
null |
null |
Can .vue files somehow be executed without transpiling them?
Similar to how .less files can be used directly, by just including the less.js compiler. Basically the less.js will compile the less in memory to css, then inject the css in the page.
Does Vue have something like that, a runtime compiler or something?
|
Here is the html:
```
<div class="AcuityResearchTerminalWidget__padding__S4eul undefined">
<div class="EventInfo__wrapper__Gkjqn" style="background-color: rgb(23, 32, 42); color: rgb(255, 255, 255);">
<div class="EventInfo__title__JBkYo">Consumer Price Index (MoM </div>
<div class="EventInfo__deta... |
Here is something I just noticed. In other words, it might not be applicable to your specific case.
I uploaded my app's aab file to "Internal app sharing". This is something I've done many times in the past, so I expected no surprises. After uploading, I sent the link to my phone and opened it from the phone. Google... |
In Jenkins 2.440.2 the path is: `Dashboard -> Manage Jenkins -> Tools or `/manage/configureTools/` |
I had this problem and none of the other answers helped me. The only errors I had was what the OP is asking about. The project uses Maven and so I had Maven reload the project and viola the problem went away. |
As of NASM 2.16, placing a `#` at the start of a line is a [documented feature](https://www.nasm.us/xdoc/2.16.01/html/nasmdoc4.html#section-4.13.1) where the `#` acts as an alias for the `%line` directive:
> **4.13.1 `%line` Directive**
>
> ...
>
> For compatibility with the output from some other preprocessors,... |
{"Voters":[{"Id":1127428,"DisplayName":"Dale K"},{"Id":4286884,"DisplayName":"SelVazi"},{"Id":3959259,"DisplayName":"Bill Tür stands with Ukraine"}],"SiteSpecificCloseReasonIds":[13]} |
You cannot copy a `std::thread` (what would that mean?), hence you cannot copy a `AnalyzerCore`.
You can use `std::vector::emplace_back()` to construct the `AnalyzerCore` objects directly in the vector, rather than constructing a temporary and then copying or moving it into the vector.
Moreover, when the vector g... |
I am successfully storing files on google drive from code but I am doing this from web.php. I just want to do this from my controller file but failed to do this.
Here is my web.php code:
Route::get('test', function() {
Storage::disk('google')->put('test.txt', 'Hello World');
dd('done');
... |
Store files on gdrive from controller |
|laravel|controller| |
As you are already using managing identity for authentication purpose, there is no need of including credentials like ACR username and password in your script again.
`Image` attribute should contain the below format.
`--image $_REGISTRY_NAME.azurecr.io/$IMAGE_NAME:$IMAGETAG`
To create a container app with pri... |
null |
## Description ##
I'm encountering an issue with the header component in my React based next.js web application. Upon the initial load of the page, when I first scroll, there's a noticeable jittery behavior before the header hides as intended. Once this initial jittery behavior occurs, the header behaves perfectly fin... |
JS, issue running hover video playback functions independently on multiple cards |
How we can get applied 12px font size to ant-design components, if i am trying to provide a 10px font-size to a label, in styles section it shows that it has been applied, but if i hover that element using inspector tool, it shows me 13px, like it automatically sets that font-size to 13px
[![enter image description he... |
Not able to set font-size: 12px in ant-design components & also not able to apply a custom google fonts to ant-design components |
|sass|antd| |
null |
I have 5 buttons which will fire file selection dialog to populate 5 text fields with the selected file-path. One button per file selection to fill a single WPF form text field.
I don't want to do this with a switch statement by repeating 6 lines of code for each button. I want to simplify it.
I can get the sende... |
I have data:
items: myType[][], for example:
first item(Junior) has one column, 2-4 items have 3 columns, 5th(Expert) has 1 column.
Trying to implement slider, but not idea how to move column by column. When I'm trying to implement it is moving 1-3-3-3-1, I want as I said sliding one by one 1-1-1-1-1-1...
[Try... |
Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Error opening zip file or JAR manifest missing : burploader.jar
Error occurred during initialization of VM
agent library failed Agent_OnLoad: instrument
I am now JAVA... |
burp suite cannot open |
|java|burp| |
Once upon a time when Internet speeds were slow, caching resources made sense but no more...
So I suggest you turn off the rendering engine’s cache via flags.
I use an old version of Chromium for tech reasons and these flags work for me:
--disk-cache-dir=Z:/abc
--disk-cache-size=1
--me... |
[Having an issue with Hashcat on Parrot OS Version 6.0 codename: Lory] Please check the screenshot for more clarification, Thank for you the help in advance (https://i.stack.imgur.com/PFbyR.png)
tried to install the alternatives for package (libminizip1t64) haven't work! |
OS: Parrot OS (hashcat : Depends: libminizip1t64 but it is not installable) |
|installation|package|parrot-os|depends|hashcat| |
null |
Try using `TEXTBEFORE()` function with the instance being `-2`
[![enter image description here][1]][1]
----------
=TEXTBEFORE(A1:A2,"-",-2)
----------
Alternatively, adding an error control is necessary:
[![enter image description here][2]][2]
----------
=IFERROR(TEXTBEFORE(A1:A2,"-",-2)... |
MongoServerSelectionError: read ECONNRESET
at EventTarget.<anonymous> (D:\BookStrore\mern_server\node_modules\mongodb\lib\sdam\topology.js:292:34)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20)
at EventTarget.dispatchEvent (node:internal/event_target:742:26)
at abortSi... |
MongoServerSelectionError: read ECONNRESET |