instruction
stringlengths
0
30k
|large-language-model|replicate|
I would like this code below to print this.dog; super.animal; Easy! But it doesn't import 'dart:mirrors'; class Animal { final String animal; Animal({required this.animal}); } class Dog extends Animal { final String dog; Dog({req...
How to check if a parameter initializes super class field in Dart?
|flutter|dart|
From MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/Promise#return_value > Note that if you call resolveFunc or rejectFunc and pass another Promise object as an argument, it can be said to be "resolved", but still not "settled". See the [Promise description][1] for m...
Question! The existing code renders. However, when I remove "Router" from Line 2 as an import even though it's not being used, it breaks. When I compile, of course I get "Line 2:27: 'Router' is defined but never used no-unused-vars" Why is this? Or does anyone have any insight? Thank you! ``` import Re...
i want to create an dropp down menu for blogger using underscore menu system i found this code on web : `$("#LinkList1").each(function(){var e="<ul id='nav'><li><ul id='sub-menu'>";$("#LinkList1 li").each(function(){var t=$(this).text(),n=t.substr(0,1),r=t.substr(1);"_"==n?(n=$(this).find("a").attr("href"),e+='<l...
i want to create a drop down menu for blogger
|javascript|html|css|menu|blogger|
null
When I go on shellcheck.net it says to add [ before and after the argument. (e.g if [ "$VHS" == "exit" ]; then but when I execute and type rules it says : fbd.sh: 14: [: exit: unexpected operator fbd.sh: 19: [: exit: unexpected operator fbd.sh: 22: [: exit: unexpected operator fbd.sh: 30: [: exi...
{"Voters":[{"Id":3689450,"DisplayName":"VLAZ"},{"Id":11810933,"DisplayName":"NotTheDr01ds"},{"Id":354577,"DisplayName":"Chris"}]}
{"OriginalQuestionIds":[44604637],"Voters":[{"Id":4154375,"DisplayName":"pjh"},{"Id":9952196,"DisplayName":"Shawn"},{"Id":874188,"DisplayName":"tripleee"}]}
This could be something I overlooked, that the commit is not actually under any branch, and now it cannot be seen under Xcode -> Source Control navigator -> Repositories The only place that seems having some details of this commit is under .git -> objects where 'f5' is definitely the first 2 characters of the ID of ...
Xcode commits (possibly outside of any branch) disappeared, how to get them back?
|xcode|git|branch|commit|
null
<!-- language-all: js --> *[Here's one approach][1] you may test out:* =let(Σ;sort(unique(tocol(B2:M8;1))); Λ;reduce(;B2:M8;lambda(a;c;vstack(if(iserror(a&"");;a);if(len(c);hstack(c;index(A:A;row(c));index(1:1;column(c)));)))); map(Σ;lambda(x;hstack(x;torow(filter(choosecols(Λ;2;3);choo...
No. Sadly. I have been programming for years, but still relatively new to Flutter, hence I am not an authority but have a fresh sight. What I can see, is that there are two real, native things in Flutter: View and State. Almost all that is not a View is the State. About 90% of all app's code belongs to view,...
Why doesn't C++ have a built in function to round to specific number of decimal places?
|c++|
I centered 3 divs on the middle of the screen, each one has an icon from fontawesome, but some icons like the dice and the code are a bit offset, except for the smile. (I assume this happened because the smile is rounded just like the div, but I'm not sure) I wanted to know how I can make all the icons centered on thei...
How to center fontawesome icons in a div?
|html|css|button|icons|font-awesome|
null
I am making an article in quarto, for which I need a word (docx) output file. The article should be in 2 column format. To achieve the 2 column output in word, I referred to the answer given in [this question](https://stackoverflow.com/q/76452715/21281335). Here the answer involved making sections within the .qmd file ...
# Context I'm creating a image with 2 packages for which I want to have same version all the time. I'm installing them from local files. # How I'm doing it now: ``` FROM eclipse-temurin:21-jdk-alpine as build # PREQUIISTES RUN apk update ################## SETUP SELENIUM REQUIRMENTS WORKDIR /tmp_dat...
I was working on some rust utilities for the [rust tree sitter bindings](https://docs.rs/tree-sitter/latest/tree_sitter/). Tree sitter essentially parses some code and creates an abstract syntax [`Tree`](https://docs.rs/tree-sitter/latest/tree_sitter/struct.Tree.html). This tree consists of [`Node`](https://docs.rs/tre...
I'm trying to put together an indicator that would include several basic tools I need for analysis. I'm trying to assemble some kind of cluster by dividing the candle into equal parts and highlighting the location of the maximum delta volume on the candle. But it doesn't show up: // Volume profile lengt...
In SQLite, I have a table with 3 columns: `id`, `value` (integer), and `sort_me`. What I'm trying to query is groups of rows whose `value`s are within +-50 range, and sort everything, within each group and across groups, by `sort_me` ascending. If a group consists of just one member, discard it. Here is an example t...
In SQLite, how to group ranges of values and sort the groups
|sql|sqlite|
You're going to have to debug against **release mode** on your physical device. That or, you can run **logcat** on terminal, while your app is running (on release mode), and see what errors come up. You should see the exceptions, and stack trace. Please post them on your question, so the community can help. Thank...
I've got a component which does this: ```jsx <CodeBlock language="css" code={`p { color: hsl(1deg, 100%, 50%};`} /> ``` Inside the component I run Prism.js for code highlighting. This is all good. The problem I have is when the indentation of the general code leads to a situation like this: ```jsx <Box> ...
Format template string for different code types
|javascript|
Solved. I had to itterate over team.teams in the second V-FOR
I think I might have found a nice way: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> <div id="sse"> <div id="sse-container" hx-ext="sse" sse-connect="/stream_accuracy"> <div sse-swap="...
sp_OAMethod always returns NULL when consuming a Rest API
|sql|sql-server|api|t-sql|sql-server-2019|
null
See below attached screen shot. There is small mistake in your code. Here is the proper way to declare MainActivity in your AndroidManifest file. <activity android:name=".MainActivity" android:exported="true"> <intent-filter> <action android:name="andr...
You can't do it like that w/ `rsh`. echo $PWD rsh <host> 'mkdir NEW; cd NEW; echo $PWD' cd <previous location echo $PWD I haven't used `rsh` in decades, and none of the machines I have the client or the server installed, so I can't say whether this will work or not for sure.
Toggling a loading flag when the callback passed as [onMutate][1] option is executed should be correct, so you have got that right. You can unset the flag using `onSettled`, so that loading stops being indicated on success and on error. Might the error be in the LoadingButton? Can you add `console.log()` statements...
null
Here's a snippet courtesy of Firebase: ``` GoogleAuthProvider googleProvider = GoogleAuthProvider(); googleProvider .addScope('https://www.googleapis.com/auth/contacts.readonly'); googleProvider.setCustomParameters({'login_hint': 'user@example.com'}); final loggedUser = await Fireba...
Alpine - Apk - block upgrade for package that was installed from file
|alpine-linux|
Working bilingual, Shortcut Ctrl+' used to work for me for years in both languages (English and Hebrew), but not in 2016. Is there a way to make Ctrl+, (the second language equivalent of Ctrl+') do the same copy-from-previous-record action? This is an all access feature - not limited to a specific field or row or tabl...
My [previous question](https://stackoverflow.com/questions/78173887/whats-the-correct-way-to-type-an-array-of-objects-whose-elements-are-variations/78175458#78175458) about TypeScript is what started the topic on this one. In that previous question, I wanted to create a generic `sort()` method that would work with an ...
|python|python-typing|metaclass|
Go to **Subscriptions-> Access Control (IAM) -> Rolle assignments**. Select a role of your choice for that new user. In my case for instance "**Managed Application Contributor Role"** was good enough: [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/jO4gL.png
This is for those who are using the [barista library][1] for UI test [1]: https://github.com/AdevintaSpain/Barista Issue got resolved with the below piece of code androidTestImplementation("com.adevinta.android:barista:4.2.0) { exclude("org.jetbrains.kotlin") // Only if you already use Kotl...
The data structure for this is a [Trie][1] (Prefix Tree): * Time Efficiency: Search, Insertion & Deletion: With a time-complexity of **O(m)** where m is the length of the string. * Space Efficiency: Store the unique characters present in the strings. This can be a space advantage compared to storing the entire st...
Offset is not supported in Hive. Hive only supports **List**, **Map**, **DateTime** and **Uint8List**. To support other objects you have to register a TypeAdapter which converts the object from and to binary form. In your case, to support a **Offset** you have to create its own adapter and register it in the mai...
{"OriginalQuestionIds":[39239276],"Voters":[{"Id":285587,"DisplayName":"Your Common Sense","BindingReason":{"GoldTagBadge":"php"}}]}
After having the same issue, I have done this using [Bun][1]. It worked like a charm. I have added an entry to script in package.json, like this: "scripts": { "compile": "bun build src/main.ts --compile --outfile out" I now run it like `bun run compile` and i can use the out file like `./out` ...
I'm working on process holllowing and each time I build someone program in visual studio. I pass through the same error: ``` System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: startIndex' ``` ``` using System; using sta...
|node.js|mongodb|api|mongoose|mongoose-schema|
You are running into two distinct issues when trying to implement your algorithm: 1. Sharing non-`'static` references across threads is not possible with `std::thread::spawn`. 2. Writing to mutually disjoint indexes in a slice without synchronization can only be done safely if you can do so by splitting the slice...
{"Voters":[{"Id":1940850,"DisplayName":"karel"},{"Id":354577,"DisplayName":"Chris"},{"Id":2287576,"DisplayName":"Andrew Truckle"}],"SiteSpecificCloseReasonIds":[18]}
The ::placeholder pseudo-element is used to style the placeholder text within the input field. You can set the color property to change the color of the placeholder text.so you can select placeholder and add color in css
So I installed mysql using brew, and I run brew install mysql (and later brew reinstall mysql as well). I tried to access mysql as a root user, but it does not allow me to do so. ` We've installed your MySQL database without a root password. To secure it run: mysql_secure_installation MySQL is configured t...
You could try using the following formulas, this assumes there is no `Excel Constraints` as per the tags posted: [![enter image description here][1]][1] ---------- =TEXT(MAX(--TEXTAFTER(B$2:B$7,"VUAM")*($A2=A$2:A$7)),"V\U\A\M\00000") ---------- Or, using the following: =TEXT(MAX((--RIGHT(B$2:B...
So I installed mysql using brew, and I run brew install mysql (and later brew reinstall mysql as well). I tried to access mysql as a root user, but it does not allow me to do so. ``` We've installed your MySQL database without a root password. To secure it run: mysql_secure_installation MySQL is configured...
We was not able to access all properties at once from a union in TypeScript?
I was getting this error on an iPhone because of a bug that I was not able to notice myself. I had accidentally switched the Start Time and the End Time, as you can see in the ICS Text. DTEND:20240309T150000Z DTSTART:20240309T160000Z Here you can see, the Start Time is 16:00 and the End Time is 15:00. ...
this is the signup.html ``` <head> <script>try{Typekit.load({async:true})}catch(e){}</script> <link href="style.css" rel="stylesheet"> </head> <body> <main> <div class="container"> <div class="rowjustify-content-center"> <div ...
I just cant make it work, HTML, JS and Firebase error
|javascript|html|jquery|firebase|bootstrap-4|
SortKey<> type doesn't work, despite individual types used by it work just fine
|typescript|
Based on the code of https://github.com/googlesamples/mlkit/tree/master/android/entityextraction, the ML kit, function Entity Extraction, cannot recognize dates in text written like "18/Mar" or "18/03". I think it should assume current year. Also it cannot identify hours written like "18h" or "18h00" or "18h00min" or "...
ML Kit (Entity Extraction) cannot recognize date format (dd/mm) or hour format (18h something)
|firebase-mlkit|google-mlkit|named-entity-extraction|
null
`scanf()` and friends return the number of input items successfully matched. For your code, that would be two or less (in case of less matches than specified). In short, be a little more careful with the manual pages: #include <stdio.h> #include <errno.h> #include <stdbool.h> int main (void)...
Working bilingual, Shortcut Ctrl+' used to work for me for years in both languages (English and Hebrew), but not in 2016. Is there a way to make Ctrl+, (the second language equivalent of Ctrl+') do the same copy-from-previous-record action? This is an all Access feature - not limited to a specific field or row or tabl...
I am wondering what the possible use cases are for the `SELECT` [`AS STRUCT|VALUES`](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#select_as_struct) modifier for BigQuery beyond the sort of textbook examples in the documentation. The `AS STRUCT` reduces a non-scalar row into a scalar `S...
I tried building an anchor smart contract, but i get this error at the end saying it could not build the idl `Cargo.toml` ```toml [package] name = "basic-0" version = "0.1.0" description = "Created with Anchor" rust-version = "1.60" edition = "2021" [lib] crate-type = ["cdylib", "lib"] name = "basic_0" ...
There are multiple approaches to loading `JSON` data to BigQuery. Every approach may have design considerations in terms of cost, complexity, Ops. To provide you with `Yes/No` answer really depends on these three factors. Having said, your approach of create `external` table will work too. **Solution:** All SQL-...
url :-> https://www.greenblottmetal.com/scrap-metal-prices problem is :-> <iframe>---> #document(another url) ---> new <html> <table></table> </html> after inspect data avilable into <iframe> tag and inside iframe there is #document is there this is subtype of iframe and holding u...
beautifulsoup library not showing below #document data inside iframe tag in python
|selenium-webdriver|web-scraping|beautifulsoup|request|screen-scraping|
null
In the vue Project, I have a LoginView.vue subpage in the views folder, in which I would like to link to an MVC project in which I use the ASP.net core identity for the login/user registration form. When sending a request from vue to MVC I receive error 400, I am 100% sure that my login details are correct. I p...
problem sending HTTP post request from VUE to MVC project
|asp.net-mvc|axios|vuejs3|asp.net-identity|
null
I am making a sort of mini gallery for myself as a personal project. I am displaying mini pictures and if i click on them, a modal should pop up displaying entire picture. <dialog> <img src="static/img/img (1).jpg" height="600"> <button autofocus>Close</button> </dialog> <button...
How to handle multiple dialog boxes?
|javascript|html|
null
[enter image description here](https://i.stack.imgur.com/5pGJD.png) When I run the application on the emulator, the plugins in the recyclerview do not appear. How can I solve this problem? When I run the application on the emulator, the plugins in the recyclerview do not appear. How can I solve this problem?
recyclwiev content is not visible
|kotlin|
null
Here is a solution to pivot longer, clean up the columns and then pivot_wider into the desired form. library(tidyr) library(magrittr) temp <- HAVE %>% pivot_longer( cols=matches(".[[:digit:]]"), names_to = c("Name") , values_to = "value") temp$INPUT <- gsub("\\D", "", temp$Name ) ...
I want to use Google authentication in flutter.After setting up everything, I encounter platformException(network_error, com.google.android.gms.common.api.ApiException: 7: , null, null) in my code. I'm running my app in debug mode. \-\> I'm connected to a network and internet doesn't seem to be an issue \-\>I...
SELECT AS STRUCT/VALUES