instruction
stringlengths
0
30k
[enter image description here](https://i.stack.imgur.com/NVEGT.jpg) [enter image description here](https://i.stack.imgur.com/832sF.jpg) I want to use material top tape bar in the middle of my application but when I am trying to scroll it just scrolling but I want Twitter type behaviour so when we Scroll it can ge...
how to use vertical scroll in react material top tab navigation
|react-native|scrollbar|react-native-navigation|
null
I am building confidence intervals for groups with bootstrapped values and I'm having trouble creating multiple re-sampled datasets from which to build my confidence intervals. Using the `palmerpenguins` library as an example: library(tidyverse) library(infer) library(palmerpenguins) There are 344...
Insert increment value in TR in particular table - Python
|python|
I have a git repository with various dependencies distributed over separate branches (some of which take a lot of space). In a separate repository I have a CMake project which utilizes **FetchContent** to pull specific dependencies from their corresponding branches. The default behavior of `git clone` executed by **Ex...
I am working on integrating the FIX (Financial Information Exchange) protocol in a NodeJs application for financial trading. My goal is to establish a reliable and efficient connection to trading platforms using FIX. I have attempted to use several libraries aimed at facilitating this, including `node-quickfix` and exp...
{"Voters":[{"Id":10669010,"DisplayName":"Mister Jojo"},{"Id":16540390,"DisplayName":"jabaa"},{"Id":2756409,"DisplayName":"TylerH"}],"SiteSpecificCloseReasonIds":[16]}
Use devtools in profile mode for the best result ```dart import 'dart:developer'; Timeline.startSync('interesting function'); // iWonderHowLongThisTakes(); Timeline.finishSync(); ``` > While connected to your app, open DevTools’ Timeline events tab. >Select the Dart recording option in the Performance s...
Here's a shot, starting with a reduction and then `Map`-applying it to the original list of frames. ```r previous_ids <- rev(Reduce( function(prev, this) unique(c(prev, this$id)), rev(my_list), init = character(0), accumulate = TRUE))[-1] previous_ids # [[1]] # [1] "xxxyz" "ppuip" "zzuio" # [[2]] # chara...
null
Thanks to the blog here: https://repost.aws/knowledge-center/opensearch-index-pattern Run the following curl command to generate authorization cookies into the auth.txt file: ```bash curl -X POST https://opensearch-end-point/_dashboards/auth/login \ -H "osd-xsrf: true" \ -H "content-type: applicati...
A list of data frames: my_list <- list(structure(list(id = c("xxxyz", "xxxyz", "zzuio", "iiopz"), country = c("USA", "USA", "Canada", "Switzerland")), class = "data.frame", row.names = c(NA, -4L)), structure(list(id = c("xxxyz", "ppuip", ...
I am going to assume that you get > [crop] extents do not overlap Because the extents do not overlap. Have a look at ``` fname <- paste(dir$tm, "1979", "tm_19790101.nc", sep="/") mask <- rast(fname) ext(mask) ext(vinyard) mask vinyard ``` Probably one of them has lonlat CRS and the other not. It i...
I'm trying to install React for the first time and I'm getting the following error from my terminal: ``` ~ % npm install -g create-react-app npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. npm ERR! code EEXIST npm ERR! syscall ...
Create react app not working, file already exists with EEXIST error
|reactjs|macos|terminal|
null
I am using the Bing Web Search API, and I am accessing the data when typing a query into the search bar I created. But I have not been able to get the data to display in my search results when submitting the search bar query. I am trying to access the elements in 'value' which is inside of 'webPages' as shown in the pi...
In your app's info.plist, make sure you change the `NSPrincipalClass` key to the name of your subclass (In Swift prefix it with `AppName.`). This'll make Cocoa instantiate the correct class when the applications loads - you shouldn't have to do anything other than that to get your subclass working.
There are 2 ways to do it, with different advantages and disadvantages. #### app/build.gradle ```javascript dependencies { androidTestImplementation "androidx.test.uiautomator:uiautomator:2.2.0" } ``` #### AndroidManifest.xml **No extra permissions are needed**, not even `<uses-permission android:na...
Below are the steps for deploying a Flutter web application to Azure App Services using Azure Static Web Apps: - Make sure Flutter is installed and configured. **Enable Web Support**: You need to run the following commands to use the beta channel and enable web support: ```cmd flutter channel beta flu...
null
I've been trying my best to use a scoped CSS file (using [Stylance](https://github.com/basro/stylance-rs)) for styling a [Leptos](https://leptos.dev/) component, and it seems to work but the styles simply don't apply. The file is read correctly by Stylance and the module is generated correctly, but on the render, the s...
Odoo live chat not working when using apache reverse proxy
|nginx|websocket|odoo|apache2|
I've built a react-native app using expo. The app is nothing but a webview for a responsive website. The website in the webview needs to use the microphone sometimes to record (ideally the camera as well, but trying to figure this one out for now). The functionality works just fine on web but I am experiencing issu...
|c#|.net-8.0|nullable-reference-types|
|python|pyqtgraph|
{"Voters":[{"Id":1145388,"DisplayName":"Stephen Ostermiller"}],"SiteSpecificCloseReasonIds":[13]}
The `eval` happens in the first `RUN` statement, but is not persisted through to the next one. You want to join the two. ``` RUN git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew \ && mkdir ~/.linuxbrew/bin \ && ln -s ../Homebrew/bin/brew ~/.linuxbrew/bin \ && eval $(~/.linuxbrew/bin/brew shellenv...
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 keetp getting white page with **io.quarkus.qute.runtime.TemplateProducer$InjectableTemplate$InjectableTemplateInstanceImpl@581c8266** dependencies { implementation("io...
A Worksheet Change: Call Procedures Dependent on Drop-Down - <!-- language: lang-vb --> Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Me.Range("C1,C2"), Target) Is Nothing Then Exit Sub Dim Str1 As Range: Str1 = LCase(CStr(Me.Range("C1"))) Dim Str...
> that I **can’t** replace the dots in the part `Function.Stores.User` with double underscores as documented _**You should be able to override the host.json values by creating equivalent application settings with specific formatting.**_ - The dots in the host.json paths should indeed be replaced by double under...
I have a table suppose employee , at the grain if emp_id, dept, start_date, end_date means it maintains the history of the emp_id and dept_id combination . | Emp_id| dept | start_date | end_date | | ------| -----| | 1 | 10 | 01/01/2023| 03/01/2023 | | 1 | 10 | 04/01/2023| 12/31/2023 | Now I have a...
Merge effective dated records of an attribute with the main effective dated table (SQL)
|sql|join|merge|presto|
null
I'm trying to get y coordinate values of the each points plotted in seaborn catplot. I have found the sources how to get it if I'm plotting catplot with bar-plots but not with points. [![Image for reference][1]][1] [1]: https://i.stack.imgur.com/Dj6Lt.png Any help will be much appreciated
null
I have an issue with running selection in Python terminal. When i attempt to execute multiple lines of code at once (100+ lines) the terminal splits the code at a certain point resulting in errors with that specific line or block of code. It seems like there may be a limitation based on the number of characters. ...
Visual Studio Code - run selection in python terminal doesn't work properly with long selection
|visual-studio-code|
null
Unicode is complex because human languages are. [mb_substr()][1] is fine for many use cases, but it doesn't cope with grapheme clusters (a combination of more than one Unicode characters that render as a single visual unit). In such cases, it'll extract the first character, but that may not be what you really want. ...
I am scraping data from a URL where the content often changes and serving up a page in Flask. What is the best strategy to re-scrape the data and send it to Flask every hour? Note: running this in a virtual env in Windows cmd. * Should I use APSchedule? * Windows task scheduler? (And if so how would I kill the c...
How to use Stylance with Leptos?
|css|leptos|
<bean class="org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer"> <property name="some-name" value="provide value here" /> <property name="some-name" value="provide value here" /> </bean> The class org.springframework.web.context.support.ServletContext...
1. Check new certificate is properly imported into the server's keystore and that you're using the correct keystore with the WSO2 server configuration. 2. Verify that the certificate is correctly generated with the new hostname as the CN or is included in the SAN field if you're using that. 3. Browsers sometimes ca...
null
The problem is that when you enter `/path/*` in the shell, it is the shell that expands this pattern to a list of filenames before passing it as an argument. However, the `spawn` command of `expect` does not do pattern expansion, so rsync receives a literal `*` and a file by that name does not exist. There are sever...
I have a excel workbook which contains multiple sheets. While parsing the xlsx file, only one the sheets returns an unexpected column count i.e expecteted count 10 actual count 16294 const workbook = new ExcelJS.Workbook(); const buffer = await data.arrayBuffer(); const loadedWb = await ...
How to Connect to FIX Protocol in Node.js without fixparser.io?
|javascript|node.js|typescript|fix-protocol|
null
`decodeURIComponent()` only handles the percentage-encoded parts of the string. Decoding the `+` character needs to be done separately. See also the [Decoding query parameters from a URL][1] chapter of MDN's `decodeURIComponent()` article, where it suggests the following code: ```js function decodeQueryParam(p) ...
Another alternative is to install it manually: ``` # add playwright package yarn add -E -D @playwright/test # install supported browsers ynpx playwright install ``` Make sure 'ynpx' is installed globally, otherwise install it. ``` yarn global add ynpx ```
I'm working on a python script and I'm not getting what I expect when comparing values at decimal places. I'm pulling one value from an SQL query which is reading 0.10 to 40 decimal places. When I compare it to a python generated 0.1 it's telling me that pythons 0.1 is greater than the SQL 0.1. I know it's something ...
0.1 <= 0.10 is returning false
|python|
One may argue that JavaScript does not have "nested" classes as such -- there is no way for a class to use parent class scope, for instance, nor would it be meaningful for anything but accessing parent class properties (`static` elements). A class in JavaScript is just an object like any other, so you may as well de...
> How can I refer to this metaclass inside a metaclass without > specifying its name in the code? Without Meta in the row: cls.__init__ > = Meta.func You can use the special variable name `__class__`, like in: cls.__init__ = __class__.__init__ Otherwise, the first "cls" parameter in the `__init__` method...
As The Rust Reference documents under [Identifier patterns](https://doc.rust-lang.org/reference/patterns.html#identifier-patterns): > By default, identifier patterns bind a variable to a copy of or move from the matched value depending on whether the matched value implements [`Copy`](https://doc.rust-lang.org/refere...
How to label each points in seaborn catplot with y values
|label|seaborn|catplot|
|facebook|facebook-graph-api|
I am loading `Select` input data from viewbag. but when click on `seach` button it is throwing an error at `Viewbag.Events`. How can pass `eventcode` from form submission to index post method? any other alternatives <div class="col-md-6"> <form asp-action="Index"> <div class="row mb-3"> ...
how to send select input data for form submission?
|c#|asp.net-mvc|asp.net-core|.net-core|
In my case, I had multiple Container Runtime. I first made sure to pull all the required container images on the master node for the specified container runtime in this case containerd: kubeadm config images pull --cri-socket /run/containerd/containerd.sock Then exported the admin.config with the following co...
This is possible using CSS and very tricky! Actually it's a hack. You have to below 3 things to the select option - `onfocus="this.size=2;"` - `onblur="this.size=0;"` - `onchange="this.size=1;this.blur()"` HTML code: <!-- language: lang-html --> <select onfocus="this.size=3;" onblur="this.size=0...
So you have the problem that the result has elements of type `String?` instead of `String` ? The problem is here inside the `v?.let` scope function. It does not change the 'v', it makes only the block parameter to a null safe string. So you need to use it as following: v?.let{ safeV: String -> index to safeV ...
I made it to work by adding a setup file In your jest.conf.js file add a setup file. setupFiles: ['<rootDir>/test/unit/setup'] Create the setup.js and create the div.' createAppDiv(); function createAppDiv() { var app = document.createElement('div'); app.setAttribute('id', 'ap...
I struggle a little bit to make it work, so for the noobs like me, here is my part. https://pypi.org/project/progress/ says : `from progress.bar import Bar` , but there is no bar module there. I did : from pip._vendor.rich.progress import Progress For my use case, which is having an infinite progress b...
I am getting the error "The syntax of the command is incorrect." while running the zookeeper command on my windows machine. Please help. C:\sreevani\ApacheKafka\confluent-community-7.6.0\confluent-7.6.0\bin\windows>zookeeper-server-start.bat ..\..\etc\kafka\zookeeper.properties The syntax of the command is incorr...
Error while running the zookeeper command on windows machine
|java|apache-kafka|apache-kafka-streams|
null
So, I went ahead and checked my prediction: > @TedZach why? The ordered_range insertion is likely (much) more efficient. – sehe 1 hour ago Indeed, merging 100 random flat multisets of 10'000 elements is **MUCH** faster using the specialized order insertion than the naive approach. Doing it correctly [with `...
I have a blazor web app (Auto) that fetches items from the db on the client side. I have already created Services and controllers to fetch all items which works but when i try and search for specific items it breaks and i get this error: ``` crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRen...
|machine-learning|python-asyncio|fastapi|
There is the Template Method Pattern. Note that its name is somewhat unfortunate, the "template" in the name does not refer to c++ templates, but to the more general meaning of the word. class Base{ public: virtual void func(){ std::cout << "Base::func\n"; } ...
I'm a complete newbie to bluetooth technology. Now I'm trying to create a script that would connect to my phone and capture data from it. Ideally, I would like to try to catch the sound transmitted to my device, like a bluetooth headset. Now my script hangs endlessly while trying to create a socket, what could be th...
PyBluez connection problems
|python|bluetooth|bluez|pybluez|
null
Our application encounters an error from Google Drive when attempting to download a selected file from the Google Picker. We have two applications, one for the production environment and one for the development environment, which is in test mode (unverified) on Google Developer Console. Both applications have the...
Since upgrading from .NET Framework to .NET Core, I've encountered an unexpected behavior in Entity Framework Core related to the use of `.Include()` and `.AsNoTracking()` methods. Consider the following entities: public class Entity1 { public int Id { get; set; } public string Name { g...
Issue with Entity Framework Core: .Include() and .AsNoTracking() not displaying expected related entities
|c#|.net-core|entity-framework-core|
I've used `SDL_CreateWindow` with the flag `SDL_WINDOW_BORDERLESS` to make a borderless window. But sdl gives me this *ugly* rectangular window that doesn't fit into MacOS at all. So how can I make a borderless window with rounded corners? Thanks.
SDL create bordrerless window with rounded corner
|c++|sdl|sdl-2|
The comment by @Christian Stieber identifies the immediate problem: > When you do the recursive call to `count_end`, you wanted to assign the return value to `ctr`. ```lang-cpp //start = count_end(a, start + 1, ctr); // Wrong! ctr = count_end(a, start + 1, ctr); // Right. ``` With this fix, the two ...
In my code, AutoMapper is doing something that I actively don't want it to do and, worse, I can't see any reason why. Consider these model classes: ``` public class PersonSource { public int Id { get; set; } ... public ContactSource Contact { get; set; } } public class ContactSource { ...
Why does using swift code gives me memory error?
konichiwa I am doing some homework and prepare for final exam, but I got stuck in here many hours, pls help me A square matrix (nxn) Write down the Even elements into matrix.txt, then read from file and display it on screen ``` //this is function write down file matrix.txt, and it's work normally v...