instruction
stringlengths
0
30k
null
I have this site: http://dl.dg-site.com/functionmentes/ There is a div with the color `#D9D9D9` Code of CSS: ``` css #full_bar { background: #D9D9D9; width: 100%; height: 100px; } ``` I want my div to be the full-width site and glued to the footer. How can I make this? I use a theme in Word...
I can not create a comment, but I think this has something to do with the encoding of the data when sending the card to Teams. It looks like Microsoft is checking the actual byte length instead of how many characters it consists of. When not providing an encoding, `StringContent` uses **UTF-8** to get the bytes. Pro...
I am a beginner at swift just starting, I am trying to code in swift a code that generates a random number and display it on two labels onto my screen. After I'd like to calculate the sum of those two randomly generated numbers. It gives an error message when I calculate the sum though. @IBOutlet weak var numbe...
How do I calculate random integers than add those random integers together?
null
It is prompting you to change the function name **isMultiple** which is camelCase to **is_multiple** which is snake_case. That's the default Linting for Rust. To avoid the warning you can either 1. Change the method name **isMultiple** to **is_multiple** or 2. Add the **#[allow(non_snake_case)]** statement just...
We have built some function apps as part of a product and deployed them to a number of customers. Each customer has their own copy on their own Azure subscription. The function apps are Http Trigger which, for the most part, receive webhook data, do some lookup and manipulation of the data and add the result to the dat...
I am currently making a wysiwyg editor, and need to support rotation by pressing "r" key while dragging some element with mouse I noticed that onkeydown event is not being called when I try to press a key while dragging something with a mouse. document.addEventListener('keydown', function(event) { ...
Javascript, DOM, detect keypresses while dragging an element
|javascript|dom|
maybe you can try add or change the curve argument value in TweenAnimationBuilder. Here is the example tween: Tween(begin: 24.sp, end: 16.sp), curve: Curves.easeInOut, by the default, the curve is Curve.linear, so you can try change the curve element. Try to refer the Curve library
It was actually an issue with the programming interface which was solved by opening an issue.
null
Use `ADD_MONTHS`: ```lang-sql SELECT ADD_MONTHS(date_column, -number_of_months_column) FROM table_name; ``` *Note: for adding/subtracting months, use the `ADD_MONTHS` function rather than an `INTERVAL` literal as `ADD_MONTHS` will handle cases such as `ADD_MONTHS(DATE '2024-01-31', 1)` where there is no 31st...
How to print all columns from a csv file
|python|pandas|csv|
Invoke-command works only whan any user logged
How to display notifying message while installing with Inno Setup if application is already installed on the machine?
Assuming *name* is an attribute on your instance *test* `getattr(test, 'name')` should return the corresponding value. Or `test.__dict__['name']`. You can read more about `getattr()` here: [The Python getattr Function][1] [1]: https://web.archive.org/web/20200703234823/http://effbot.org/zone/python-getattr.htm
null
Pojos are often used as Models/DTOs for inserting/updating data into a database. They need to by validated (with a Validator) to make sure they only contain the expected fields for the use-case: - insert (all fields must be validated and inserted) - update (only changed/modified fields must be validated and updat...
Java Pojos - Setter-Call (Field Touched) Detection
Looks like the old SVG was **post-processed** to make everything a ``path`` Tell tale sign is the ``rect`` ![](https://i.imgur.com/xR9gNh7.png) where all settings ended up in the (clear to read) ``d-path`` ![](https://i.imgur.com/cE0X7MS.png) https://jakearchibald.github.io/svgomg/ can do that conversi...
If you need to update the mac address of the `firetvs` elements only under certain conditions, for example that `name` is equals to `mbr`, I'm providing an alternative solution with streams. Basically, the `firetvs`'s elements are streamed via an `Iterable`, then filtered by keeping only the ones with `mbr` as thei...
The dynamic page is working but does not fetch the data from any API I'm encountering an issue with my Next.js dynamic page that's supposed to fetch data from an API but doesn't seem to be doing so. Despite implementing the code to fetch data, the page remains empty. I've checked the API endpoint, and it's functiona...
API not fetch data with dynamic page NEXT js
|reactjs|next.js|routes|
null
Aldimeola1122, Both NODETAIL and REMOVECC parms are used for reports. REMOVECC can be used to remove the ANSI control characters(page eject,blank line...) from a report. NODETAIL - Specifies that data records are not to be output for the reports produced for this OUTFIL group. With NODETAIL, the data recor...
|swift|uikit|
There is a function inside which determines whether metadata is saved (by metadata I mean saving dtypes). When I save a Dataframe to a parquet file and then read data from that file I expect to see metadata persistence. I will perform this check in this way: ``` In [6]:(pd.read_parquet(os.path.join(folder, 's_parq...
How can I find all files containing a specific text (string) on Linux?
There is no feature that can make certain number of Microsoft-hosted agents in the pool `Azure Pipelines` only work for a selection of projects. Currently, the permission for the pipelines in a project to use an agent is not managed on individual agent level but on its pool level. For this, you could create a featur...
I am doing object detection using yolov8 and sahi algorithms. I am writing a function to test whether some of the objects I detect are round or not, but I can’t send the bounding boxes of the objects I detect to the function. ``` def is_circle(image, bbox): img = cv.cvtColor(image, cv.COLOR_BGR2GRAY) x,...
can’t send the bounding boxes of the objects I detect to the function
|python|opencv|object-detection|yolov8|sahi|
null
I see that the instructions in the [Android Gradle Plugin > Publish your library][1] documentation have changed significantly since I upgraded my library to versions 7 of "Gradle" and the "Android Gradle Plugin". According to the latest instructions (for versions 8 of "Gradle" and the "Android Gradle Plugin"), the p...
Hello devs Im trying to get IG stories from any user so i can embed with my app(IG downloader) but I cant since it requires access token for every user I want to obtain the sam data.Here is the api response { "error": { "message": "An access token is required to request this resource.", "type": "OAuth...
Getting IG stories using grapAPI
|android|api|facebook-graph-api|youtube-dl|instagram-story|
Your build command is responsible for this. With your parameters, you tell your builder to include the whole framework locally. If you need it locally rather than bootstrap it from the CDN, you can remove the `--all` parameter at the end and see if that works out for you. The SAPUI5 builder is not able to go through yo...
> I'm not seeing anywhere where it's possible to verify that the actual app itself has been purchased. Probably because the verification of app purchases, particularly for apps sold as a one-time purchase without in-app items or subscriptions, would involve a different approach. [Google's Licensing API](https://g...
How can I show 'Back'/'Forward' buttons in the Android Studio 3.0.1 IDE | Iguana 2023.2.1?
|android|ide|android-studio-3.0|android-studio-girafee|android-studio-lguana|
|azure|terraform|locking|tfstate|
null
I kind of set up Laravel with breeze and then i decided to install 2fa so i installed fortify. It seems that some routes are not working as expected and i just can't figure what it is. After the user activates 2fa i can see the QR code and the verificatin codes. Also i can see that the data is populated in the database...
Laravel Breeze 2fa challange not showing up
|laravel|fortify|
null
|azure|azure-bicep|
null
Try this structure, using **one** `class MovieModel: ObservableObject` and passing this model to other views using `.environmentObject(movieModel)`. See this link [monitoring data](https://developer.apple.com/documentation/swiftui/monitoring-model-data-changes-in-your-app), it gives you some good examples of h...
We would like to allow Maintainers to be able to merge some MRs, even if checks in the pipeline for the MR fail. Developers should not be able to do the same thing. I see there is a way to skip a pipeline run, and to allow merge of MRs with skipped pipelines, but there does not seem to be a way to control who can sk...
On Gitlab, is there a way to allow Maintaners to merge MRs even if some checks fail?
|gitlab|gitlab-ci|
I have successfully saved the oscilloscope graph data into the variable image_data, but I can't convert the data of this variable into PNG file, BMP file, and so on. How should I write .... ```python import pyvisa from PIL import Image rm = pyvisa.ResourceManager() scope = rm.open_resource('USB0::0x09...
My Firebase save each user with 4 features:name,email,password and confirm password. The class of users: [enter image description here](https://i.stack.imgur.com/pF3M1.png) The Firebase data that i saved: [enter image description here](https://i.stack.imgur.com/TPCFf.png) In my app i have an option to change t...
I'm trying to use "Realm" with a few lines of code found on "stackoverflow". I get an enigmatic compilation error: Generic parameter 'Element' could not be inferred on the line: let dogs = List\<Dog\>() every time I use List\<\> this error appears. I've tried everything, cleaning up the build, quitting xcode, st...
Realm : Generic parameter 'Element' could not be inferred
|realm|
null
I am referring to your question in the comment. TL;TR; There is no difference when you replace a single property of a post or the complete post. SwiftUI provides DEBUG method which can show you which data causes your view to update. `Self._printChanges()` So lets write a quick demo: import SwiftUI ...
I've seen some posts about how to dynamically add test fields to a form when a button is clicked. like in this post https://stackoverflow.com/questions/60939821/how-to-add-two-v-text-fields-when-i-click-a-button-dynamically-using-vuetify Im not understanding where I would put the v-for in this scenario. But, how can...
I know this is an old question, but I thought I would answer given that there is no module-specific answer. I also experience this error with the UMLS::Interface module and was able to fix it. The reason you are experiencing this error is because the DBI module is not recognizing that you have set a default UMLS dat...
You are not injecting the text in the iframe actually, so it is simpler to define a component that will embed both the additionnal text and the facebook post. Simplified version of your snippet below: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> facebookAr...
{"Voters":[{"Id":4415625,"DisplayName":"dani-vta"}]}
{"Voters":[{"Id":-1,"DisplayName":"Community"}]}
Invoke-command works only when any user is logged
As stated [here][1] tensorboard is part of tensorflow but does not depend on it. One can use it in pytorch such as ```python from torch.utils.tensorboard import SummaryWriter ``` It is, however, annoying that this import causes a long trace of tensorflow related warnings ```bash 2024-03-28 12:11:43.296359: ...
null
{"Voters":[{"Id":147356,"DisplayName":"larsks"},{"Id":13317,"DisplayName":"Kenster"},{"Id":1431720,"DisplayName":"Robert"}],"SiteSpecificCloseReasonIds":[18]}
{"Voters":[{"Id":23869325,"DisplayName":"alon"}],"DeleteType":1}
First of all, congrats of implementing PACE, that's not an easy task for most devs. DG4 (iris) is usually not present. At the time the company that had IP rights to the methods required for iris authentication didn't open them up sufficiently (in time). **If** it is present it is protected using EAC (authentication of ...
{"Voters":[{"Id":14463414,"DisplayName":"dan c"}]}
I am making a simple golf score tacking app and am using the [react-native-picker](https://github.com/react-native-picker/picker) library to help me select the course I want to view. The functionality is all working and it picks the correct value, but for some reason, the picker bounces back up to the first item in the...
React Native - Picker Bouncing Back to the Top on IOS
|javascript|reactjs|react-native|picker|
I used a **ready-made template** for my **asp.net** project... I don't know much about html and Css, I just **deleted and customized** some of the code by trial and error. I spent 20 days on this back end and front end... To **test mobile response**, I **minimized my web browser** in PC... everything was...
Html + Css Good Response on computer (even in minimized mode) but bad on mobile
|html|css|asp.net-core|bootstrap-4|response|
{"Voters":[{"Id":23869325,"DisplayName":"alon"}]}
Looking for a way to retrieve control flow information, such as local variables and their values and which instructions/branches were executed for the tested methods using JaCoCo (0.8.11). I am running it on IntelliJ with maven. The only clue I found was specifying jacoco agent .jar file when executing tests, but ev...
Get control flow information with JaCoCo
|java|maven|jacoco|control-flow|jacoco-maven-plugin|
null
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 ...
Unlike the 1st answer I disagree. Try both code segments with an `.explain()` and you will see the generated Physical Plan for Execution is *exactly the same*. Spark is based on `lazy evaluation`. That is to say: > All transformations in Spark are lazy, in that they do not compute > their results right away. ...
Old answer --- This XPath, //u/text() will select all text node children of all `u` elements in the document: I want this but I want this If you only want the first text node children, use //u/text()[1] Note that this will select first text nodes of *all* `u` elements in the docume...
I've seen some posts about how to dynamically add test fields to a form when a button is clicked. like in this post https://stackoverflow.com/questions/60939821/how-to-add-two-v-text-fields-when-i-click-a-button-dynamically-using-vuetify Im not understanding where I would put the v-for in this scenario. But, how can...
import torch.utils.tensorboard causes tensorflow warnings
|python|pytorch|tensorboard|
Both `Triangle_function()` and `Trapz()` call `plot()`. However, `plot()` creates a new figure and new subplot each time it is called: ``` def plot(MF): fig = Figure() plot1= fig.add_subplot(111) ``` Therefore, both functions cannot draw to the same figure. This should be refactored to get the behav...
I have a `Long` value named `delta` which contains a time value in milliseconds. I am trying to format it in a readable `String` like `00:00:00`, or if the hour value is zero `00:00`. ```kotlin private fun remainingTime(delta: Long): String { val hours = TimeUnit.MILLISECONDS.toHours(delta) return...
Have you tried checking your cPanel Firewall? Please try navigate to Plugins > ConfigServer Security & Firewall > Firewall Configuration And Look for **SMTP_Block**, also try to check if it was enabled and if it was enabled make sure to disabled.
I am using the Quasar Framework on a Vue3 application. I have "successfully" integrated the `<q-slider />` component. However, upon panning the knob on the component, the following message gets logged on the console. `Unable to preventDefault inside passive event listener invocation` Efforts to resolve the iss...
I have an Android library project which uses versions 7 of "Gradle" and the "Android Gradle Plugin" (versions 7.6.1 and 7.4.2 respectively to be precise). Here are the parts of my library's `build.gradle` file which relate to publishing: ```lang-groovy plugins { id("com.android.library") id("maven-publ...
|security|docker-compose|