instruction
stringlengths
0
30k
|git|github|
I came across this question seems a year later since I asked it XD. I have managed to get it to work in RTL : 1) Edit scheme > App Language > Arabic (or your RTL language or 'Right-to-Left Pseudolanguage') If you only do this step, the RTL layout will appear correctly in the simulator but not on a real device (un...
Version 5.1.0 is available since January 2024. In a spring-boot application for instance I just needed to overwrite in properties <querydsl.version>5.1.0</querydsl.version> to get rid of the warnings
So I found two similar post on stackoverflow who helped me out, and it was the following two: [https://stackoverflow.com/questions/73000249/user-claims-is-empty-for-every-page-outside-of-areas-identity][1] [https://stackoverflow.com/questions/59550789/how-do-i-set-up-authentication-authorisation-for-asp-net-core...
Has anyone tried using Langchain's AI21 integration AI21SemanticTextSplitter? There is a mention of it on [Langchain's Text Splitters Page](https://stackoverflow.com). This is [its documentation](https://stackoverflow.com). I tried the examples given there and it says `ImportError: cannot import name 'AI21Sema...
I have a button called EXPORT and now I need to create a shortcut to export file to excel. The short cut is Ctrl+Alt+E. When I press the shortcut it have to call the function "onCommandExecution" which will check the ID condition and execute the function "onExportToExcel". I have been made debugging and I the ID was no...
There seems to be no built-in cross-platform way in `Java` for retrieving the root path (e.g., the drive) of a file, so a third-party library or custom code are the only solutions. [Apache Commons IO][1] has a [FilenameUtils][2] class and its [`getPrefix()`][3] method does exactly what the question asked. [1]...
null
[enter image description here][1]I use netleague order in netmeta package of R for my network meta analysis netleague(net2, digits = 2, ci = FALSE) However, it showed indirect effect in lower triangle and direct effect in upper triangle. I just want it to show the reciprocal number in the upper triangle fo...
null
I have a database with more than 2 million records and new records are made every day. I'm using MySQL and I need fulltext, so I can't do partitioning, as it's not possible to use fulltext in a partitioned table. Some queries are quick, but others are extremely time-consuming. I would like a suggested solution f...
Solution Indication - Database
|database|full-text-search|innodb|partitioning|myisam|
Qwik has not polluted ServiceWorker with lots of code. you have to implement pwa offline ServiceWorker by yourself. here is a repo that did just that: - **GitHub**: https://github.com/qwikdev/pwa - **Example**: https://pwa-a3b.pages.dev/
null
Note: I simplified the code for testing. I have an express.js route with the following code: ``` // /auth/register/confirm/:confirmationToken const registerConfirm = asyncHandler(async (req, res, next) => { console.log('registerConfirm'); res.status(httpStatus.OK).json({ msg: 'Registration confirmed' })...
For anyone getting this same issue. I simply needed to deploy the application locally for the first time, with my regular (non-service) account and all subsequent deployments on Github actions with the service account started succeeding. /Shrug
Add the following into `/etc/mysql/my.cnf` file: innodb_buffer_pool_size = 64M example: key_buffer = 16M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8 innodb_buffer_pool_size = 64M Note that the configuration file may have a...
You can create a global variable `let app = {...}` and store all program data in there (this is how I usually organize programs). Then, store the state of your items under `app.data.checkboxState` or somewhere like that. Below is an example program showing how to apply that: <!-- begin snippet: js hide: false con...
I have a GitHub action that does a conditional execution of a job where it builds and runs the tests for a project only if there was a change in one specific directory of the code. Seems like a common thing to do. I used this as a reference: https://github.com/marketplace/actions/paths-changes-filter **Problem** it...
|android|push-notification|firebase-cloud-messaging|
null
null
{"OriginalQuestionIds":[78060144],"Voters":[{"Id":5221944,"DisplayName":"Mikhail Berlyant","BindingReason":{"GoldTagBadge":"google-bigquery"}}]}
I have a teams application which includes a bot, which works across Teams, Outlook and Microsoft 365. I am adding search messaging extensions to it. The search messaging extension works well within Teams, but in Outlook I receive an error message "Something went wrong". [![Error message in outlook](https://i.stack.i...
Search Message Extension Works in Teams but not in Outlook
|botframework|microsoft-teams|
null
|c|tty|ioctl|
Solved by clicking to another element: const knowledge = document.querySelector('[value="knowledge"]') if (knowledge && knowledge.checked == false) { knowledge.parentNode.nextSibling.click() }
I've been trying to achieve the result in the table above with no luck so far .. I have table called Nodes consists of ( base doc, current done and target ). BaseDocType . BaseDocID DocType . DocID TargetDocType . TargetDocID .. I want to fetch all the related nodes for any specific node if that's possible ..i...
GitHub Actions conditional execution always shows change because comparing to main instead of private branch
|github|github-actions|
null
I have a button that renders correctly on windows, and mobile simulations. However, on my iPhone, the button color, and position attributes are incorrect. Any and all help is greatly appreciated! html: <button class="more-projects-button" type="button" onclick="window.location.href='Projects.html';">More Proj...
That was fixed for CCL in the repo, but not for ACL. Also note that Lisp-Stat won't load into the free version of ACL because of heap size restrictions (at least version 10 wouldn't). I don't have a commercial license any longer, but the fix is a one-liner you can try. Would you please report this as an issue at ht...
You cannot use `or` keyword in `join` clause. Instead, you can use `or` or `||` in `where` clause to filter not satisfying condition. See also: https://stackoverflow.com/questions/1159022/linq-join-with-or
I have a large dataset that is difficult to investigate without analysis tools. It's general form is this, but with 16 "ItemType0" columns and 16 "ItemType1", "ItemType2", etc columns. It represents the properties (many of them) of up to 16 different items recorded at a single timestep, then properties of that times...
Using either melt or wide_to_long for large dataset with inconsistent naming
Is AI21SemanticTextSplitter (from langchain_ai21) Depreciated?
|langchain|chunking|
null
i have a problem with a java future and an handler function. code example: ``` public HealthCheckResponse call() { String redisHost = this.configuration.getRedisHost(); log.info("connect to redis host: {}", redisHost); Future<RedisConnection> redisConnectionFuture = Redis.createClient(Vertx.vertx(),...
how to avoid while loop while waiting for future complete?
|java|redis|quarkus|future|vert.x|
Want descending order of data in hive: Requirement: Our requirement is we want to get pnote column in a way that data for particular invoice number should be in descending order. As we want to get the most recent date record from the top of the array (zeroth element) from pnote column. Currect outputs: 1. sel...
Note the `Async` in `AsyncCallback`: you're making an async call to your server, but your code is trying to synchronously read the value. Until onSuccess or onFailure is called, no state has yet been returned to the server. Long ago browsers supported synchronous calls to the server, but GWT-RPC never did, and brows...
While `$model->relation()->create([])` creates a related model, in the context of the relation, there isn't a way to give multiple contexts for multiple relations. So you need to add the `user_id` yourself the data passed to `create` ``` php #find post $validated = $request->validated(); $validated['user_id'] = $r...
I am building an app in Next.js with no server. I get a video file input using an `<input>` tag, after that I convert it to a blob url and save it in `localStorage` for cross-session use. However, after reloading the page the blob URL becomes invalid (at least that's what I think,) how can I use the blob after reloa...
null
It can be a vpn issue, connect to VPN to get started and later you can disconnect it.
I'm relative new to HDR and I'm trying to understand the color transfer functions. The idea is to produce a YouTube-compatible HDR video. So I manage to create a Direct2D surface with `DXGI_FORMAT_R16G16B16A16_FLOAT` and use `GUID_WICPixelFormat128bppPRGBAFloat` bitmaps and my primitives have a full color range as w...
HDR video publishing
|winapi|colors|ms-media-foundation|direct2d|hdr|
How can I use a defined menu type list for running a range of selections, i.e. conditionally tick off the selected items at once. Conventionally, the configurator looks like this: ```shell @echo off chcp 1251 >nul :begin echo [1] Folder 1 [3] Folder 3 echo [2] Folder 2 [4] Folder 4 set /P op=Enter the nu...
I am using R for deep learning with the MNIST dataset. I have written this code to store the training and testing data, and define and fit the model: ``` library(keras) #Obtain data mnist <- dataset_mnist() train_data <- mnist$train$x train_labels <- mnist$train$y test_data <- mnist$test$x test_...
I am using R for deep learning with the MNIST dataset. I have written this code to store the training and testing data, and define and fit the model: ``` library(keras) #Obtain data mnist <- dataset_mnist() train_data <- mnist$train$x train_labels <- mnist$train$y test_data <- mnist$test$x test_...
Got it by **removing the bidirectional relationship** and adding a annotation `@JoinColumn` to my private `List<Frequencia> frequencias`
I have a server which has a bunch of routes which may take a json body as an input and may answer with a json response as an output, and I want to quickly test these routes and various combinations of them. The commands I am using manually look like : ```bash curl -H "Content-Type:application/json" -d @- http://$H...
Can I shell out from a jq custom function
|shell|jq|
I've developed a note-taking app that allows users to create notes with tags. I want users to be able to add 5 additional tags for each newly created note. The main issue is that the tags are automatically included in the newly created note instead of being stored separately. Despite several hours of effort, I haven't ...
Trouble Separating Tags from Notes in JavaScript Notes App
|javascript|html|css|tags|
null
[Windrose Diagram][1]I have set a higher zorder value for the bar plot compared to gridlines. But the gridlines are still visible over the bars. I have also tried for 'ax.set_axisbelow(True)' which is not working. Can anyone explain me how to solve the issue ? ``` from windrose import WindroseAxes import pandas ...
Same issue for me. Try to use return navigateTo("/sign-in"**, { external: true }**); instead return navigateTo("/sign-in");
For Blazor render mode `InteractiveServer` Microsoft says the way to avoid reading in data twice for a page (pre-render and again post-render) is to [save it the first time using PersistentComponentState and then the second time just use the data saved off to it][1]. Is this persisted data global to the app or is it...
Is PersistentComponentState tied to the SignalR circuit or global to the app?
|blazor|blazor-server-side|
My problem was I installed postgress server before on my computer. Because of this I didn't have free port 5432. I changed my port to 5438, and I connected to my server successfully.
[Windrose Diagram][1] I have set a higher zorder value for the bar plot compared to gridlines. But the gridlines are still visible over the bars. I have also tried for 'ax.set_axisbelow(True)' which is not working. Can anyone explain me how to solve the issue ? ``` from windrose import WindroseAxes import pandas...
I think the following link may be used for the detailed procedure. https://www.bythedevs.com/post/securing-when-an-http-request-is-received-trigger-in-power-automate-part-2
I think you're on the right track; if you drop the first element of the 'breaks' vector in your 'integer_breaks' function it produces your desired outcome (if I've understood correctly), e.g. ``` r library(tidyverse) int_breaks_drop_zero <- function(n = 5, ...) { fxn <- function(x) { breaks <- floor(...
Copy From One Closed Workbook to Another (`PERSONAL.xlsb`!?) - Sub CopyRawData() Const SRC_FOLDER_PATH As String = "U:\Documents\Macro Testing\Raw Data\" Const SRC_FILE_PATTERN As String = "SLTEST_*.csv" Const SRC_FIRST_ROW_RANGE As String = "A2:G2" Const ...
JavaScript: How to use blob URL saved in localStorage after reload
|javascript|reactjs|next.js|
1. Sure you did not update accidentaly to 4.27.**3** or later? I got exactly your problem, after I installed the 4.28.0 Version - see below... 2. You need Hyper-V enabled for this: is it working correctly on your machine? If you are using Windows Home Edition there is no chance: upgrade your Windows to Professional ...
I have used the Eureka discovery server for setting up the microservices. Initially, DiscoveryClient was registered under DiscoveryClient_API-GATEWAY/host.docker.internal:api-gateway. Now it has changed to the machine name DiscoveryClient_API-GATEWAY/SL-GGnanaseelan.mshome.net:api-gateway, and it's throwing the foll...
I have some JavaScript that finds all the checked items and arranges the data in memory. I need to display a modal popup. And, when that popup is closed, I will again need the data I created above. I'm trying to determine the best way to store that data so I won't need to recreate it. I used to think I could sto...
You cannot use `or` keyword in `join` clause. Instead, you can use `or` or `||` in `where` clause to filter out unsatisfying condition. See also: https://stackoverflow.com/questions/1159022/linq-join-with-or
your problem is in this for loop. In each iteration of the loop you are getting a random number between 1 and (9-n). there is nothing preventing you from getting the same number on a subsequent iteration. In theory you could end up getting "1" all 9 times. for (int n = unshuffledCategories.Count; n > 0; --n...
To work with an `SDDL` (Security Descriptor Definition Language) you first need to know the structure. From [MS Learn - Security Descriptor String Format](https://learn.microsoft.com/en-us/windows/win32/secauthz/security-descriptor-string-format) > The format is a null-terminated string with tokens to indicate ea...
The algo is the following: 1. Calculate total size of all items 2. Get size of a group 3. Iterate items and push to groups according to the current sum of item sizes It doesn't include a case when there's both groups share equal amount of an item. <!-- begin snippet: js hide: false console: true babel: false...
> Codebase was like this: > > ``` > Thread.Sleep(500); > ``` > A colleague refactored it to be like this: > > ``` > Task.Delay(500).Wait(); > ``` Your colleague's refactoring constitutes neither an improvement nor a regression. Both commands block the current thread for 500 milliseconds. Functionally ther...
e ureka Discovery client is not register under API-GATEWAY\host.docker.internal
|spring-boot|docker|microservices|
This is my code to read the csv file asynchronoulsy using ReadLineAsync() function from the [StreamReader][1] class but it reads first line only of the [csv file][2] private async Task ReadAndSendJointDataFromCSVFileAsync(CancellationToken cancellationToken) { Stopwatch sw = new Stopwatch(); ...
Your goal was to enable dynamically created HTML components to be compatible with the Swiper plugin. In order to accomplish this, Swiper elements were dynamically detected and initialized as new elements are added to the DOM using MutationObserver and event delegation. Thus, items that are created dynamically can also ...
I was working on a fullstack MEAN project and I decided to create separate local repos for client and server so that I didn't have to do a merge whenever I changed something on the backend to test it on the frontend. My folder structure is like this: --MyProject --client --.git --s...
Single Github repository for two local repos for a fullstack project
As of v17.2, yes deferrable views are only supported on standalone components. The Angular team is looking to add support for non-standalone components in v18. So wait & see.
I am porting some code that defined `tty_ldisc_ops.ioctl()` as: ```` static int ...ldisc_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd, unsigned long arg) ```` But the [current spec](https://docs.kernel.org/driver-api/tty/tty_ldisc.html#c.tty_ldisc_ops) is: ```` static int ...ldisc_ioctl(struc...
I've now created a python script to produce a csv file report from Thingsboard and below outlining the key concepts needed to achieve this. I found the TB documentation a bit light so hope that some of this detail is of help to others. The process I used was to make a REST API call using the TB python library. Thi...
You can update your `compilerOptions` to include the specific rules for optional chaining. This will allow you to keep the strict mode on and keep validating the dependencies. Your `compilerOptions` would look like this: ``` { "compilerOptions": { "target": "ESNEXT", "module": "commonjs",...
The answer is unsatisfying: It depends. You need to incorporate profiling into your development cycle to understand the best way forward — CPU and trace profiles work well for this. We can't easily predict your workload. > And more importantly, if I had an infinite amount of Cores, there would be NO waiting in an...
If accepted answer does not work please check the following: - If your env variables are defined in Vercel like they should - If they are, make not defined them - Make sure to redeploy as those env are resolved during build time
I've been working on this for hours with little success. Using jQuery, I want to set the subject field to concatenate the values of 2 other dropdown fields. In script.js, I have something like this going. When this dropdown field is updated, it runs through the if conditions to set the reasonforcontact variable, and th...
I have a SQL query ``` SELECT M.EMPLOYEEID, LISTAGG(L.NAME, ',') WITHIN GROUP (ORDER BY L.NAME) AS Locations FROM EMPLOYEEOFFICES M LEFT JOIN OFFICELIST L ON M.OFFICELISTID = l.officelistid GROUP BY M.EMPLOYEEID ``` The Linq equivalent I am trying to run: ``` var empOfficeLocat...
[![enter image description here][1]][1] [1]: https://i.stack.imgur.com/h1LY6.gif Kindly refer the following git project https://github.com/praveeniroh/LiveActivity/tree/main/LiveActivity Note: we can update and end live activity without opening our app. Points to remember: 1. The LiveActivityIntent ...