instruction
stringlengths
0
30k
I am trying to make a card animation where a card on the top of the deck would translate upwards when hovered. Unfortunately, it seems like my card flickers if I move my mouse horizontally over the bottom part of the card. I have made some tests and it seems to be related to the translate, as increasing the translate o...
Hover animation resetting( seemingly reverting back to original CSS and then again to hover)when moving mouse horizontaly accross a part of an element
|javascript|css|animation|hover|position|
null
I fix this error by adding this <property> tag to the <meta-data> tag in the manifest. <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="@string/APP_NUMBER" /> <property android:name="android.adservices.AD_SERVICES_CONFIG" ...
problem with the automatic jump function - doodlejump pygame
|python-3.x|pygame|
null
I am a grad student getting my MBA with an emphasis in finance. I am struggling to answers this question as I have no experience in coding. I am supposed to work the problem using python. Any help would be greatly appreciated! **PROBLEM** Problem Statement: We have a project with given cashflows. [-50, 20, 10, 3...
Calculating IRR Using Numpy
|python|numpy|
null
I am trying to build my object using the below Json payload(which is being fetched from external API), now when ever i use any get method(i.e: jsonObject.getString() or jsonObject.getBoolean(), jsonObject.getObject()) and if the value present for the key is null,I am getting an exception that "the value is not a st...
|php|codeigniter|codeigniter-3|
If you create a `table` of `dice.sums`, then you will get the frequency of each possible sum. Dividing this table by its total will give you the probability of each sum. The rest is just data wrangling to get it into the correct format, for which `dplyr` will be useful: ``` r library(dplyr) table(dice.sums) %>% ...
null
I have the administration of the tour agency website with booking functionality built in Wordpress, Woocommerce and Woocommerce Bookings. For one product at the new order email not mentioned the booking details like how many persons will join to the tour. I am facing this issue only for one product, all the others are ...
New Order Email Details Missing // Woocommerce / Woocommerce Bookings
|wordpress|woocommerce|woocommerce-bookings|
null
In my project I am trying to use `net.sf.saxon.s9api.XsltTransformer` in multiple threads using synchronization in java because as per documentation An XsltTransformer must not be used concurrently in multiple threads. It is safe, however, to reuse the object within a single thread to run the same stylesheet several ti...
You are getting a blank window because you didn't call a `pack()`, `grid()` or `place()` method on the self.menu widget. To fix this you can add `self.menu.pack()` on line 13. The full code is the following: ```python from customtkinter import * class app(CTk): def __init__(self, title, size): #...
I’m beginner in programming and have a problem in next code. the main problem is that when we use to command "math" the program gives you an example and you cant solve it, because program at once says that its uncorrect. How I can solve it? ive heard about about remembering the button status, but i dont know how to rea...
Python. problem with Telegram bot [library telebot)
|python|telegram|telegram-bot|python-telegram-bot|
null
OP Here. Both of the following commands working for me: curl -Lfs "https://motivatedsisters.com/2019/07/08/arabic-review-sr-rahat-basit/" | rg -o '<li>.*?href="(.*?)".*?</a> (.*?)<\/li>' -r 'echo $1 $(unescape_html "$2")' | bash | rg -o '(https?://\S+)\s(.*)' -r 'echo $1 $(unescape_html "$2")' -r '{"url": "$...
I am using this query to randomly select a row in the **user** table that has not already been inserted into the **task_pool** table, laterally done per id in **task_dispersal** table. ____ PostgreSQL 16.2 INSERT into task_pool(user_id, order_id) select u.user_id, task_dispersal.id from task_dispersa...
I am experiencing a problem with displaying button icons in the QDialog window. This problem occurs when trying to run the window from the main file, knowing that the QDialog window file is not in the same path as the main file. This is the code to import the design from the `__init__.py` file inside WindowAdd ``` ...
{"OriginalQuestionIds":[40566585],"Voters":[{"Id":5577765,"DisplayName":"Rabbid76","BindingReason":{"GoldTagBadge":"pygame"}}]}
def swap(lst): l=len(lst) l2=list(lst) l3=[] if l<4: for i in range(len(l2)): if i+2<len(l2): l3.append(l2[i+2]) l3.append(l2[i]) elif l>4: l4=lst[:4] l5=lst[4:] ...
I am using the following snippet for preprocessing: ``` # Data augmentation train_datagen = tf.keras.preprocessing.image.ImageDataGenerator( rotation_range=10, width_shift_range=0.1, height_shift_range=0.1, shear_range=0.1, fill_mode='constant', cval = 0) ``` Additionally, I am us...
What is the alternative to module: tf.keras.preprocessing?
|python|keras|deep-learning|tensorflow2.0|kaggle|
null
{"Voters":[{"Id":7860670,"DisplayName":"user7860670"},{"Id":5577765,"DisplayName":"Rabbid76"},{"Id":8623159,"DisplayName":"httpdigest"}],"SiteSpecificCloseReasonIds":[13]}
The instructions you found were actually broken (missing details) and not recommended (wfastcgi was deprecated). If you revert all changes related to FastCGI and start cleanly with HttpPlatformHandler, you will see how smooth the experience is, ``` xml <?xml version="1.0" encoding="UTF-8"?> <configuration> ...
i found you need to do something like this is powershell core 7 ``` terraform state rm 'resource[\"thing\"]' ``` this is doc'd with an example over at https://developer.hashicorp.com/terraform/cli/commands/state/show#example-show-a-resource-configured-with-for_each Update 2023-01, dunno what's changed but in...
I have scaled my dataset using the standard scaler form sklearn like this: from sklearn.preprocessing import StandardScaler ... # create a StandardScaler object self.scaler = StandardScaler() # fit the scaler to the dataset self.scaler.fit(self.X_org) # transform dataset using the...
Calling Standard Scaler differes between same sets
|python|scikit-learn|
null
I'm trying to setup a report that has line item details summarized by a subgroup for each. On each line, I want to add a checkbox, with the subtotal of each group being a "master" checkbox that would change all of the corresponding checkboxes if it's clicked. My solution is to create an individual click event for e...
|html|css|
null
I keep getting undefined when I try to destructure the body object from my `const { title, body, userId } = request.body;` I have 2 components, a server that post data to an API endpoint and a client component that reads the server component locally and is supposed to send the body data collected from inputs to the ...
how do I send data from my client component to my server side POST route Handler with Next.js app router
|reactjs|typescript|next.js|next.js13|nextjs-dynamic-routing|
My Firebase Realtime Database saves each user with 4 features: name, email, password, and confirm password. The class of users: public class Users { String Username,Email,Password,ConfirmPassword; public Users() { } public Users(String username, String email, S...
private void register (String username, String email, String password) { auth.createUserWithEmailAndPassword(email,password) .addOnCompleteListener(task -> { if (task.isSuccessful()){ FirebaseUser firebaseUser = auth.getCurrentUser(); ...
Users not registering in database
|android|database|firebase|
null
i have 1 dog page on Facebook, i usually post photo of dogs when ever i have time, so trying to write a scheduler that will take images from my system folder and upload and publish on my page. i want to post images, from my local system to 1 of my managed pages. i have page access token. and using below curl i...
Facebook Post Images from local system on own Page
|facebook|facebook-graph-api|facebook-javascript-sdk|facebook-opengraph|facebook-php-sdk|
null
Is it possible to write a Chrome/Firefox plug-in that can automatically open the dev tools for every open tab and execute code in the console? I have already done this with Selenium, but I would like to have it as a plug-in. Unfortunately, I haven't found a chrome api yet that allows you to automatically insert and...
Error NullPointerExeception: When trying to add Value in ArrayList & adapter.notifydatachanged
|java|class|arraylist|android-recyclerview|android-arrayadapter|
[please see the screenshot ](https://i.stack.imgur.com/J9zzx.png) I want image slider as like as in image in jetpack compose Android kotlin. I am trying in many way but now working exact same things. There are any way to do in jetpack compose is it. need a help anyone is there to do the same things
Let's assume you have those 2 files : layout.html ``` ...imagine a plain HTML file, with the body having an id attribute set to "body" Somehow I cannot get to get this piece of code inside the SO editor it just won't show... ``` content.htm ``` <h1>DOM content</h1> <ul> <li>Item 1</li> <li>...
You should first check loki api `GET ~/loki/api/v1/rules` give the correct response.
I'm attempting to retrieve user data, but the method is returning an empty object. bot.py ``` menuId = "id" webapp = "https://localhost" + "/" + menuId bot = telebot.TeleBot(API_TOKEN) def webAppKeyboardInline(): keyboard = types.InlineKeyboardMarkup(row_width=1) webApp = types.WebAppInfo(webapp) ...
{"Voters":[{"Id":4267244,"DisplayName":"Dalija Prasnikar"}]}
I wait until the page is loaded and use the "DOMContentLoaded" method to add eventhandlers on some p tags. This works until I open and close the modal. Can someone please tell me why the page fully freezes? ``` <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-wid...
JsonObject throws an exception: JSONObject["employer_website"] is not a string (class org.json.JSONObject$Null : null)
|java|json|spring-boot|parsing|jsonparser|
I am trying to build my object using the below Json payload(which is being fetched from external API), now when ever i use any get method(i.e: jsonObject.getString() or jsonObject.getBoolean(), jsonObject.getObject()) and if the value present for the key is null,I am getting an exception that "the value is not a st...
In Rust, how can I create a function that accpets a closure as argument and iterate and print all values captured by the closure reflectively? For example: ```rust fn print_captured_values<F>(f: F) where F: Fn() { // How to implement it? } ```
In Rust, how to inspect values captured by a closure?
I have a `[pscustomobject]` with a property `id`. According to PowerShell documentation, the parameter '-id' can be passed through the pipeline using `ByPropertyName`. I discovered that the approach with `ForEach-Object` works (although I don't understand why), while the approach without `ForEach-Object` does not. ...
How to pass -id parameter to get-process from pipeline?
I have a rest service where it is connecting to mongdb to get the response.Ater the spring boot upgrade the error response was not appearing in Browser. It is displaying like below. Not sure why it is giving null vales in the error response. If I try some other way , it is giving proper response only in Postmand not in...
This may be old, but I'm just doing some support on such an old system: instead of: public EntitiesContext() : base("name=EntitiesContext") just use public EntitiesContext() : base("EntitiesContext") and you should be good to go.
I'm having trouble building v8 and libv8 to use with v8js php library. I'm running `gm x64.release` on the depot_tools git repo after running `fetch v8; cd v8` and the v8 file and g8 file gets created but the problem is that i cannot find the libv8/libnode required to compile v8js using pecl (https://github.com/phpv8/v...
|java|android|firebase|firebase-realtime-database|
null
null
**TL;DR** ```python pl_series = [pl.Series(name, values) for name, values in zip(features, shuffle_arr.T)] X_train_permuted = ( X_train_permuted.with_columns( pl_series ) ) ``` ----- Let's work with a simple example. **X_train_permuted** ```python import polars as ...
This class has functions for getting screen width and height, For app responsiveness design but i keep getting that error ``` import 'package:flutter/material.dart'; import 'package:get/get.dart'; /* This class has functions for getting screen width and height, For app responsiveness design */ class AppLayout...
|generics|rust|lambda|reflection|closures|
|javascript|reactjs|react-router-dom|
Not sure that I completely understood the problem ("cant detect scroll on separate sections") but I think I got what you are trying to achieve. Below is a generic solution that calculates the scroll percentage of each div based on its top offset and height and sets the corresponding svg path length. <!-- begin s...
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? ```jsx import React from 'react'; im...
I have a frame (events) which I want to join into another frame (fr), joining on Date and Symbol. There aren't necessarily any date overlaps. The date in events would match with the first occurrence only on the same or later date in fr, so if the event date is 2010-08-29, it would join on the same date or if not presen...
After searching documents and online sources, I have came to this conclusion that the `unmanaged` constraint differs from 'unmanaged resources.' unmanaged resources refer to resources that are not collected or managed by the garbage collector, while the `unmanaged` constraint in specifies that the type parameter of ...
I'm utilizing Nginx on CentOS with the Aapanel control panel. I have installed the latest Laravel 11 on my server, but when I attempt to access it, I encounter a 403 forbidden error. I've attempted various modifications in the .htaccess files, but none have been successful. I've searched extensively online but have ...
Resolving 403 Forbidden error in a fresh Laravel 11 installation
|php|laravel|nginx|laravel-11|
try ssl port https://192.168.1.227:54321 then allow exception or firefox setting -> certificate manager servers -> servers add exception site
I have started making a 3D Tile based farming game in Godot (inspired from Homegrown). I managed to make the Random Terrain and Camera systems on my own but am now struggling to make the terrain editing thing. So the world is generated in tiles of primarily Grass, Farm and Pavement. Now I need a way to edit these ti...
How to edit tiles in a Godot game?
this error can happen for a number of reasons but one way or another what's happening is that your PHP can't find your database to connect, here's a few suggestions on how you can troubleshoot this issue. 1 - verify the database exists ------------------------------ make sure that you have created your database be...
Chrome/Firefox plug-in for automatically opening the dev tools and executing code in the console
|plugins|devtools|
null
Why when we call a function in 'onclick' in the html document, that function is not read in a JavaScript Module file if there is an 'import'? Is there a solution to use 'onclick' again in this case? For example, 'onclick' calls the following: `<input type="button" value="-" class="dark" onclick="mathfa('...
Not reading the function in a JavaScript Module file, by calling onclick in the html document
|javascript|html|module|onclick|