instruction
stringlengths
0
30k
Sequence dependent setup times (flexible) jobshops are very hard problems. Do not expect any proof of optimality for even medium size problems (100 tasks). The most impactful thing you can do with CP-SAT is to write a greedy first solution heuristics, and hint the solution to the solver. The scheduling heuristics a...
I have per-minute data that looks like this, with 30 different unique IDs. Each row contains the per-minute measurement, and a value of 1 if the measurement was verified by a technician. | ID | dttm | Measurement| Verified? | | ---| ------------- |------------|-----------| |1 |1-1-2023 08:00 | 89 ...
How to write an R function to pivot the last n minutes?
|r|dataframe|
I have a simple question : using Gsheet, I have a file where other have actions to perform before a specific date. Is there a way to send an email automatically generated when the time remaining from that specific date is for example less than 1 day ? And ideally whithout opening Gsheet ? Am I dreaming ? Thanks...
Gsheet - Automatically send an email using a date & time in a Cell
|date|email|google-sheets|send|
null
you can't. That's not a feature. Interceptors were designed to enhance controllers (+ [graphql stuff](https://docs.nestjs.com/graphql/other-features)), not providers. That's why the [_binding interceptors_](https://docs.nestjs.com/interceptors#binding-interceptors) section in the docs only mention controllers.
i am having a bit of trouble with a sed command. i need to delete the first 15 lines which contain a specified word from a file. some help would be appreciated. the thing is my sed command only goes through the first 15 lines, no matter if they contain the word or not. it deletes the lines containing the word, but n...
Assuming the data has been stored in table named Numbers ``` SQL WITH NUM AS ( SELECT A.* , ROW_NUMBER() OVER(PARTITION BY ID1, ID2 ORDER BY VALUE) AS RN FROM NUMBERS A ) SELECT A.ID1, A.ID2, A.LOWER, A.VALUE,A.UPPER, SUM(COALESCE(B.MEASUREMENT, 0) AS DESIRED ...
How to create yup schema for array of objects of different type. E.g. if I receive from backend questionnaire json where questions can be text input, choice, or numeric input. Every question object has unique id and type: { "questionnaire":{ "name":"set name", "description":"descrip...
How to create yup schema for dynamic array of different objects
|typescript|forms|validation|yup|
I have this class: @AllArgsConstructor @NoArgsConstructor @Entity @Table(name = "SECURITY_AUTHORITIES") public class SecurityAuthority implements GrantedAuthority { @Serial private static final long serialVersionUID = 1425681467463792708L; @Id @...
Spring Boot JPA (HSQLDB): INSERT using SELECT from data.sql, unexpected token: SELECT
|spring-data-jpa|sql-insert|hsqldb|import.sql|
Microsoft has changed its XSD which now states that there may be **multiple** font settings and **multiple** size settings in one run property. That's why `XMLBeans` now generates code for `List`s and/or `Array`s of those elements in `CTRPr`: `CTRPr.getRFontsList` now vs. `CTRPr.getRFonts` in past, `CTRPr.getSzList` n...
|python|job-scheduling|or-tools|cp-sat|
There is [Java Telephone API (JTAPI)][1]. You can take a look at that. It have different implementations, like [xtapi][2], [gjtapi][3]. I have worked with xtapi. It allows you to make/receive a call. [1]: https://www.oracle.com/java/technologies/jtapi.html [2]: http://sourceforge.net/projects/xtapi/ [3]...
|python|job-scheduling|or-tools|cp-sat|
[enter image description here](https://i.stack.imgur.com/aKioI.png) I have to ask the solution to chat up as well i am doing project in node js my boilerplate. ejs file is in the includes folder which is in the views folder and my asset folder is also in the views folder I am very confused i want to set an icon f...
Problem with app router when used with nextra & i18n
|next.js|i18next|app-router|nextra|
null
You'd have to edit file `gradle/libs.versions.toml` and add in TOML format: [versions] androidx_media3 = '1.3.0' androidx_compose_bom = '2024.03.00' androidx_compose_uitest = '1.6.4' # ... [libraries] androidx_media3_exoplayer = { module = "and...
> Convert number to words <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("#p1").text(ConvertNumberToWords("1.99","rupees", "paisa...
Integrating Angular External IP with ClusterIP of .NET microservices on AKS
|azure|azure-aks|
{"Voters":[{"Id":22180364,"DisplayName":"Jan"},{"Id":16217248,"DisplayName":"CPlus"},{"Id":3744182,"DisplayName":"dbc"}]}
Compare the elements of a linked list in pairs, each time choosing the minimum of the two and placing it in another linked list result. Example: we have a list [1, 2, 3, 4, 5, 6] the output must be a sublist such as [1, 3, 5] since min(1,2) = 1 and min(3,4) =3 and min(5,6)=5. Here's the recursive function I've wr...
I'm going to make a slight adjustment to your markup just to help validate that the code works: ```html <!-- ... same ... --> <div class="grid-option-selectable"> <div>You got me!</div> </div> <!-- ... same ... --> ``` It's also not a bad idea to add some same-structure siblings with non-matching text t...
.querySelectorAll() returning an empty nodelist React js
|javascript|html|reactjs|intersection-observer|
null
|python|conda|libffi|
I need your help, I've checked all the documentation but I can't find the solution. I have a simple HTML navigation. In CSS, I have a fade in and out animation. The fade in works perfectly, but the fade out does not work. I've tried a million things, it just won't work. <!-- begin snippet: js hide: false console: t...
null
I need your help, I've checked all the documentation but I can't find the solution. I have a simple HTML navigation. In CSS, I have a fade in and out animation. The fade in works perfectly, but the fade out does not work. I've tried a million things, it just won't work. <!-- begin snippet: js hide: false console: t...
null
I am having a bit of trouble with a `sed` command. I need to delete the first 3 lines that contain a specified word from a file. My `sed` command only checks the first 6 lines, whether or not they contain the word. It deletes the lines containing the word, but it stops after 6 lines, not after 3 lines that contain t...
{"OriginalQuestionIds":[26963510],"Voters":[{"Id":6752050,"DisplayName":"273K","BindingReason":{"GoldTagBadge":"c++"}}]}
- <kbd>Ctrl</kbd>+<kbd>H</kbd> - Find what: `,[^,\r\n]+$` - Replace with: `LEAVE EMPTY` - **TICK** *Wrap around* - **SELECT** *Regular expression* - <kbd>Replace all</kbd>
{"OriginalQuestionIds":[32300132],"Voters":[{"Id":7884305,"DisplayName":"Chayim Friedman","BindingReason":{"GoldTagBadge":"rust"}}]}
I know there are so many answers to this error, but none of it works. In XAMPP Windows Version 8.2.12 I tried to make a form with HTML, CSS, and PHP. I wanted to do that locally so I installed PHP, XAMPP, and MariaDB (Side note, MariaDB is not yet configured). My Error is so weird that I didn't find any solution to ...
403 Forbidden Error when accessing any file or path
|xampp|http-status-code-403|
null
I have a Rails API with a variety of frontend clients. I’m setting up Google Sign-in/up with OAuth2 (via Google Identity), and am having issues verifying the token that comes from Google - it seems simple with Python/Java/Node.js/PHP ([see their docs](https://developers.google.com/identity/gsi/web/guides/verify-goog...
need solution in express js
|javascript|node.js|express|web|
null
I was trying to extract a sudoku grid using OpenCV by finding the square contour with the largest area. But some sudokus have more than one outer boundary, thus the program detects only the outermost boundary. This affects the later parts of the program because the sudoku is split into 9 parts row wise and column wise,...
I'm unable to ping any website from an instance which has only ipv6 address assigned whereas I'm able to access internet if I create a windows instance with same settings (Ubuntu or Amazon Linux instances are not working), some of the details are as follows ip -6 addr: ![ip -6 addr](https://i.stack.imgur.com/HqzJ...
null
The 'Modifier.blur' is supported on Android 12 and above. I encountered problems (crashes) with some of the libraries mentioned earlier. After searching for various solutions, I ended up using this one, which works. implementation("com.github.skydoves:landscapist-transformation:2.1.6") implementation("com...
I get camera intrinsic and extrinsic matrix from PyBullet camera parameters using these two functions: def get_intrinsics(fov, aspect, width, height): fx = width / (2 * aspect * np.tan(np.radians(fov / 2))) fy = height / (2 * np.tan(np.radians(fov / 2))) cx = width / 2 cy = he...
First of all, newItem is not declared in your code. When navigation setOption function is called the item value will be replaced to the current constant value in the handleSave function. It might be not efficient to process the screen component data in the navigation header, it would be better you have header compo...
In my case, I had the problem when POSTing to the server, e.g.: ``` { "myPropertyCamelCase": "..." } ``` And got an error saying "MyPropertyCamelCase" was not set in the request, during model binding. The problem was a missing setter on the request property, e.g. ``` public MyPropertyCamelCase { get; } ``...
How to extract people that are yet to complete their credit with outstanding amount and Date
{"Voters":[{"Id":4267244,"DisplayName":"Dalija Prasnikar"}],"SiteSpecificCloseReasonIds":[13]}
> when I use regular expression not like /smth/, but /^smth/ then scan > by emails.email field returns also 0 elements. Why multikey and > ordinary index give me different results for regular expression like > /smth/ This is because MongoDB is able to optimize the search since the latter query includes an anchor...
As mentioned in one of the [comments](https://stackoverflow.com/questions/78250290/c-skips-line-when-promting-for-user-to-enter-name-of-person-being-added-to-a-s#comment137953333_78250290), the [`std::cin`][1] ceases to take further input as soon as a space is encountered. The skipping is only possible if you input fir...
I am using `react-bootstrap` `Table` filteredData function should return `searchTerm` matches record from the data. I am getting empty data on search. How to loop the Object and return true If any of the searchTerm match? ```javascript import { Table, Pagination, Form } from 'react-bootstrap'; ``` ```j...
Importing Jython into a JavaFX application
|javafx|jython|module-info|
null
|arrays|excel|vba|vba7|print-preview|
Well, code behind can't touch, know, see ANYTHING until you post the page back to the web server. The web server is JUST sitting there, and any one of 20 people can "post back" the web page. Until that occurs, you MUST assume that the code behind does not exist (the page class (the code behind) does not exist yet). ...
Compare the elements of a linked list in pairs, each time choosing the minimum of the two and placing it in another linked list result. Example: we have a list [1, 2, 3, 4, 5, 6] the output must be a sublist such as [1, 3, 5] since min(1,2) = 1 and min(3,4) =3 and min(5,6)=5. Here's the recursive function I've wr...
How transform a recursive void function into a recursive function that returns a result on linked list
|c|
null
{"Voters":[{"Id":3689450,"DisplayName":"VLAZ"},{"Id":354577,"DisplayName":"Chris"},{"Id":546871,"DisplayName":"AdrianHHH"}]}
i have an activity that shows a listview with 2 rows. Each row has a question, which is pulled from the DB and 2 buttons on ech row, A YES button and a NO button. I am trying to set the pressed state of the user's choice on each button per row. so if the user hits the light green YES button, then it turns darker gre...
toggle button state of 2 buttons within listview row
|android|listview|android-button|
{"Voters":[{"Id":446594,"DisplayName":"DarkBee"},{"Id":7508700,"DisplayName":"David Buck"},{"Id":14732669,"DisplayName":"ray"}]}
|css|flexbox|scrollbar|overflow|velo|
The issue could be related to the implementation of the `UserDetailsService` or the configuration of Spring Security. Ensure that the `UserDetailsService` is properly implemented and returns a valid `UserDetails` object for the given username. Additionally, check the Spring Security configuration to ensure that it is c...
null
I haven't enabled Protocol TCP/IP in protocols for MSSQLSERVER in SQL Server Network Configuration. After enabled it, so run smooth.
I am using Jaspersoft Studio 6.21.2. My project has a report that has a field with this value expression: StringUtils.defaultIfBlank($P{SEARCH_CRITERIA_STRING}) The method `defaultIfBlank` was added to version 2.6 of StringUtils, so I added commons-lang-2.6.jar as an external jar to my project. Compiling t...
Is Jaspersoft Studio 6.21.2 using an old version of StringUtils? How to fix that?
|jaspersoft-studio|apache-stringutils|
Assuming sorted range indexes, [`reset_index`](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.reset_index.html) before [`merge`](https://pandas.pydata.org/docs/reference/api/pandas.merge.html), then [`sort_values`](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sort_values.html): ``` df3...
How to extract customers that are yet to complete their credit with outstanding amount and Date
You can simplify your query and just use `STRING_AGG`, so you get rid of your subquery. By the way, please take care to always place the table alias before the column name, not only sometimes. SELECT p.post_id, COALESCE(STRING_AGG(k.topic_id::varchar,',' ORDER BY k.topic_id), ...
Behind every CSS box is a specialized layer called the background layer. exactly how many background layers exist in every CSS box? I would like to know that, exactly how many background layers exist behind every CSS box?
How many background layers exist behind every CSS box?
|css|
null
So devServer|Webpack config is related to Options for [webpack-dev-server][1] If your webpack is using webpack-dev-server version 4 you should use this [migration guide][2] ``` // your v3 config devServer: { contentBase: path.join(__dirname, "public/"), port: 3000, publicPath: "https://localhost:30...
I am trying to convert string of mathematical expression to lambda function in C++17. How can I do this type of conversion? Example: > Mathematical function: > "x^2+1" > > Lambda Function: > `auto func = [](float x) -> float { return pow(x, 2) + 1; }; `
How to convert mathematical expression to lambda function in C++?
|function|parsing|lambda|c++17|
null
Input a string and print the sum of the numbers in the string Input: abc123kjewd456 Output: 579 I want code it with pointer in string, array, loop, and lots of way, Can you help me use the best way? ...
React bootstrap Table Search