instruction
stringlengths
0
30k
Using lambda function in constexpr constructor with std::tie
I am trying to update column value of filtered data in excel via VBA I wrote a small macro, which do filter on below table. [![enter image description here][1]][1] [1]:https://i.stack.imgur.com/P2ShF.png After running macro to filter the sheet, I see below [![enter image description here][2]][2] ...
What is the difference between billing account and financial account in tmforum open-api account management service specs
|openapi|finance|
In PCIe, Enhanced Configuration Access Mechanism (ECAM) is used to read/write Configuration Space. Memory map consists of base address, BDF values, Register Number. However, during enumeration, CPU do not know about the BDF of PCIe endpoint. (After enumeration, CPU assigns BDF for all PCIe endpoint. Am I right?) ...
How to request a Vendor ID during enumeration with ECAM?
|io|pci-e|
null
Your instance is created and therefore set BEFORE you got the token. You can do as others suggested, but I prefer the built-in solution that Axios offers for cases like this and a good pattern to get under your belt - INTERCEPTORS. A quick demo is you create your instance without the token: const instance = a...
The Google Docs explain that the peak_qps Google Cloud Metric is the project's maximum per-second crypto request count but it always seems to read too high when I view it in the console using the Metrics Explorer. Am I mis-understanding what it represents? If I do 3 decryptions every second the peak_qps is...
How to setup Dynamic Selenium Grid to run on host network
|selenium-grid|
I was trying to plot the contour plot of the walker's position of a random walker moving in a 3d space on the xy, xz, and yz plane. I am getting a proper contour plot while plotting it in the xy plane but for the xz and yz it's not coming properly, it is showing some weired sort of distribution about the zeroline. Kind...
V8 and big string comparison performance affected a lot by hashing the strings?
|javascript|v8|
There are 2 significant performance problems: - You can remove the part: if sum(nums)<target: return 0 elif target in nums: return 1 This runs through your array twice on every run, even if it will probably only apply to a small percentage of test cases. Your `whil...
{"Voters":[{"Id":23845462,"DisplayName":"Tim"}]}
I am trying to scrape the MLB daily lineup information from here: https://www.rotowire.com/baseball/daily-lineups.php I am trying to use python with requests, BeautifulSoup and pandas. My ultimate goal is to end up with two pandas data frames. First is a starting pitching data frame: |date |game_time ...
How to list empty count in query
|google-sheets|google-sheets-formula|
null
I use AppStorage variable in my SwiftUI iOS app for saving some settings like language, dark mode state etc. I need to implement "Incognito mode" feature which will hide sensitive data in many different views. I use RedactionReasons modifier for this. But in my implementation changing of AppStore variable does not appl...
RedactionReasons modifier in iOS with AppStorage variable
|ios|swiftui|
The server can't authenticate you. Possibly you need to add *withCredentials* to the Axios Request and send the credentials to the API. axios.post('https://server:3333/endpoint', { withCredentials: true, }).then((res) => console.log(res)); See https://axios-http.com/docs/req_config for more infor...
I am struggling with an android button to start/stop a function, it seems a recurrent topic in the forum, but I couldn't find a suitable solution/explanation after trying to use the handler.postDelayed(), handler.removeCallbacksAndMessages() and executorService() functions. There's a "start/stop" button which can: ...
The HTTP endpoint for the SOAP service is http://localhost:8080/soap/Iservice1 The Vue.js URL must point to the WSDL of the SOAP service: http://localhost:8080/soap/Iservice1?WSDL (see https://stackoverflow.com/a/49153096/80901 for an example) Here is how a SOAP request to invoke the "sum" op...
Contour plot projection not showing properly in matplotlib 3d plotting
|python|matplotlib|jupyter-notebook|matplotlib-3d|random-walk|
null
So far I am able to write custom modifiers for Views; however, when trying to keep my code DRY, I am trying to add a custom modifier for TextFields. The view modifiers work great with something like so: ```swift struct sampleModifier : ViewModifier { var height: CGFloat? = 100 func body(content: Content) ...
How to add custom modifier for Text?
|swift|swiftui|
I've @foreach loop and 2 buttons in my blade : ``` @foreach <div id="app{{$loop->index}}"> <app :gunpla-id="{{ $gunpla->id }}" :csrf-token="'{{ csrf_token() }}'"> </app> </div> @endforeach ``` and here's my App.vue : ``` <template> <div> <collection-button :in-coll...
Is the cloudkms peak_qps metric correct?
|google-cloud-kms|
null
1. thats the public declaration, the implementation is private and hidden. 2. it's because the setter isn't changing the value of that struct, the setter is just forwarding the call on to an internal object. 3. I'm not clear on what you're asking but it might help to mention the $ syntax is sugar for Binding(get: { }...
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 [Here is what I want to remove](https://i.stack.imgur.com/sfIQb.png) I tried something like this, but it ...
How do I remove road and country labels in MKLookAroundView in SwiftUI?
|ios|swift|swiftui|mapkit|
null
I'm using a script given by Adobe's substance painter that is supposed to import a sbsar file and turn it into a shader node and then apply it to the object selected, but when I execute the script it applies it to all objects in the scene. ```py import maya.cmds as cmds def _connect_place2d(substance_node): ...
I am using the Windows OS and am coding in C, currently. I am a complete beginner in socket programming, and have this following piece of code that is returning unwanted values. (`MAXLINE` = 4096), and I have `CTR_SECURITY...` defined. const char* IPADDRESS = "xxx.xxx.xx.xx";//IP address int sockFileDescrip...
null
|javascript|timer|http-redirect|
So I currently have a service for an eccomerce project which uses redis and jedis to connect. It is working when ran using source code but when it is dockerized it pops up the following error: `redis.clients.jedis.exceptions.JedisConnectionException: Failed to connect to any host resolved for DNS name.` When I ra...
I created a custom header and the title of this header was extracted from the navigation parameters, however typescript tells me that the property that I passed through the navigation parameters does not exist, could you help me type the header properties or how can I fix this error. [enter image description here](h...
Type props custom header react-navigation
|typescript|react-native|react-navigation|
null
Blackbox exporter only check the place which DNS Point to. But I want to check the SSL certificate in several IP addresses, that means I have to specify IP to exporter for taking url to that IP to check SSL expiration. The Grafana Dashboard which I use https://grafana.com/blog/2020/11/25/how-we-eliminated-service-...
I have got this maze of 2d matrix. '@' indicates the start and '#' indicates the end. 0 means the path is blocked and 1 means that you can pass through. The program needs to solve the maze and print the co-ordinates of each element in the path it found. Example Input: 5 10 @ 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 ...
{"Voters":[{"Id":7758804,"DisplayName":"Trenton McKinney"},{"Id":2530121,"DisplayName":"L Tyrone"},{"Id":354577,"DisplayName":"Chris"}]}
{\"type\":\"cluster_block_exception\",\"reason\":\"index [.kibana_analytics_8.11.4_001] blocked by: [FORBIDDEN/8/index write (api)];\"},\"status\":403},{\"index\":\".kibana_analytics_8.11.4_001\",\"id\":\"dashboard:ee798f25-ae50-5350-ad24-9d348c8163fc\",\"cause\":{\"type\":\"cluster_block_exception\",\"reason\":\"i...
I have two branches A and B, the difference between those branches that B has some dropped commits from A (other one commits are identical). When I have make some new commits in branch A I want merge them intro branch B, but left dropped commits still to be dropped (in another words: cherry-pick only new commits fro...
Rebase over some branch with ignoring previusly dropped commit(s)
|bash|git|rebase|git-rebase|
One way you could go about it is by extracting the prefixes first (DI1, DI2, WT1) and then doing a double iteration. For example this Bash script would produce the output you want: prefixes=() for name in "${file_ref[@]}"; do prefixes+=("${name%.*}") done for prefix in "${prefixes[@...
The opensearch allows us to update given document in two ways. 1) PUT index/_doc/1 (replaces whole document) 2) POST index/_update/1 (allows for partial update) I conducted tests to observe concurrent updates on a single document. Interestingly, PUT requests consistently succeed, while POST requests trigger a vers...
the difference in terms of performance two types of update in opensearch
|performance|opensearch|
First, we identify combinations of **SK** and **NO** that have two unique values in two separate columns using the `GROUP BY` and `HAVING` clauses : SELECT SK, `NO` FROM mytable GROUP BY SK, `NO` HAVING COUNT(DISTINCT TS) = 2 AND COUNT(DISTINCT EFF_DT) = 2 Then, to obtain the desired results, ...
I'm making a script which made a RestMethod call and export results to CSV On the output I have an object which contain the agentstatus and the last agentstatusmessage but for the last one i saw only System.Object[] How could i expand the value? Below a snippet of simple code and an example of the output ``` ...
I want to mix a standard form based authentication app with an API that uses http basic authentication like this: - `/io/**` should trigger http basic authentication with a pre defined in memory user - all other routes should be authenticated with form based authentication Currently i have this: ```java @Con...
Spring Security mix form based and http basic authentication
|spring-boot|spring-security|
The variability you're observing in the "optimal" solutions provided by the CBC solver across different runs of the same problem is not uncommon in Mixed Integer Linear Programming (MILP) solvers. This phenomenon can be attributed to several factors related to the nature of MILP solvers and the computational environmen...
Also looking to be able to print left-aligned tables to the console/terminal, I accomplished this with a somewhat modified approach from those given: ```python def whatever_scope(): ... # Closure for the formatter. do whatever fancy formatting you want here. def leftalign(len): def format(v)...
In the Azure portal, I created a RAG environment with a search instance, a skillset and an indexer by using the Import and Vectorize data option. Adding document works like a charm. When I delete (soft delete option enabled) a document from a container and start the indexer, the blobs are deleted from the contain...
I try to use selenium on python to scrap some information from website https://dexscreener.com/. Actually, I just want the name of the current upper one in the list (see screenshot). The filters and order of the list is not relevant as I have already implemented this separately. Using the attachted code structure I...
Python selenium scrap data from dynamic website table
|python|google-chrome|selenium-webdriver|
null
How can I write a reusable object that I can use in other methods select new ObjectDTO() { Id = linkOne.Id, CSTrancheId = linkOne.CSTrancheId, DMBalExternalId = linkTwo.DMBalExternalId }; Is there some way I can write a stati...
How can I write a reusable object to use in other methods in C#?
|c#|asp.net|entity-framework-6|
I have an array which is ```[ 'A. Wound Location and Measurements', 'B. Wound Bed', 'C. Surrounding Tissue', 'D. Drainage', 'Haroon Question Group Without Show PCP', 'Haroon Question Group With Show PCP', 'A. Wound Location and Measurements', 'B. Wound Bed', 'C. Surrounding Tissue', 'D. D...
Custom Sorting Javascript with A-Z set
|javascript|sorting|
Show order items details in WooCommerce orders list page with HPOS
|wordpress|woocommerce|orders|
{"OriginalQuestionIds":[767999],"Voters":[{"Id":1127114,"DisplayName":"Michael Liu","BindingReason":{"GoldTagBadge":"c#"}}]}
My question is about accessing data from a dedicated file by offsets, without any database or serialization frameworks. While textbooks say it is recommended to access data by blocks, such as retrieving/flushing 4KiB (or larger depending on the specific device) at once, I am confused sometimes about its necessity. ...
I have a json response as below. ``` ['{"accountNumber":"2130005","billDayModelName":"","billDayModelScore":"0","defaultBadWriteOffModelName":"XYZ","defaultBadWriteOffModelScore":600.677286,"accountModelName":"","accountModelScore":"0","customerModelName":"","customerModelScore":"0","accountRiskCode":"","customerRi...
I have a hook in git worktree that is run every time I add a new branch with `git worktree add <branch>`. (I use the post-checkout hook and make sure it only runs when HEAD is 0, i.e it's a checkout not based on anything, so it only runs when I actually add a new branch with git worktree.) The hook is a bash file. I...
Azure search indexer and skillset | how to get rid of warning when indexing deleted blobs
|azure-cognitive-search|
{"Voters":[{"Id":3788176,"DisplayName":"Andy Turner"},{"Id":1431720,"DisplayName":"Robert"},{"Id":2756409,"DisplayName":"TylerH"}]}
The problem with a generic reusable function for this, is that it will need to create a new instance of your money-type, without knowing which concrete type to construct. A workaround to this could be to pass in a `construct`-function as a parameter, but that would make quite an ugly API if you had to call it like this...
|sql|mysql|wildcard|sql-like|
{"Voters":[{"Id":839601,"DisplayName":"gnat"},{"Id":1007220,"DisplayName":"aynber"},{"Id":2756409,"DisplayName":"TylerH"}],"SiteSpecificCloseReasonIds":[16]}
<script> function startTimer(duration, display) { var timer = duration, minutes, seconds; var end =setInterval(function () { minutes = parseInt(timer / 60, 10) seconds = parseInt(timer % 60, 10); minutes = minutes < 10 ? "0" + minutes : minutes; ...
Solving Maze using Backtracking C++
|c++|recursion|backtracking|maze|recursive-backtracking|
null
I want the EventListener method that works with this player = new SimpleExoPlayer.Builder(this).build();
I am attempting to integrate a referral system into my existing Laravel v9 application (an event and ticketing system). I found a [package][1] and tutorial on a GitHub repository. Despite following all the instructions, I continually need help with errors. This code is supposed to display the referral link in the cu...
Trouble displaying referral link in Laravel customer dashboard
The string in green is of the format `<username>@<hostname>`. So in order to differentiate between your two servers, you need to change the hostname, to give you something like `ubuntu@ubuntu-slave`. To do this, you need to add the [hostname configuration option][1] to your Vagrantfile: ```ruby Vagrant.conf...