instruction
stringlengths
0
30k
null
I have been asked in one of the Top company below question and I was not able to answer. Just replied : I need to update myself on this topic **Question :** **If you create a composite indexing on 3 columns (eid , ename , esal ) ?** - If i mention only eid=10 after where clause will the indexing be call...
I want to implement a feature where when I click on a specific sentence within this paragraph, the background color of that sentence changes. I've tried looking into gesture detection and text selection features within Jetpack Compose, but couldn't find a straightforward way to achieve this effect. Can someone pleas...
Change background color of clicked sentence in Text
|android|android-jetpack-compose|android-jetpack-compose-material3|android-compose-textfield|
null
`[userList.jsx]`(https://i.stack.imgur.com/19EbJ.png), `[EditUser.jsx]`(https://i.stack.imgur.com/6GyU8.png), `[backend.js]`(https://i.stack.imgur.com/Dsx38.png) I want to update the data in my database using a form called user List. I want to Update data of that row that's Edit button I click, my current problem ...
I want to edit a specific row in database
|database|windows|jsx|
null
{"Voters":[{"Id":4722345,"DisplayName":"JBallin"},{"Id":13302,"DisplayName":"marc_s"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[]}
{"Voters":[{"Id":3404097,"DisplayName":"philipxy"},{"Id":13302,"DisplayName":"marc_s"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[19]}
I was trying to build a webpage and for some reason when i test my page to be responsive, the width of the page goes beyond the device's width. I tried removing various parts of the code and the only thing that makes the webpage go back to the normal width is removing the "introduction" div as i found out that w...
I was trying to write a table with some entries being multi-line using altair, but seem to get into trouble with fixing line spacing. For example: ``` text_df = pd.DataFrame({"a":["very very very very long thing", "very very very very very long thing"]}) text_chart_base = alt.Chart(text_df).transform_window(row_nu...
Table with multi-line strings in Altair
|vega-lite|altair|
FQDN means domain name without any addition. Maps.google.com is FQDN is google.com. Amass has ony 3 main commands. Those are intel , db and enum. Each main command have multiple sub commands. You can visit the github page from: https://github.com/owasp-amass/amass/blob/master/doc%2Fuser_guide.md I wish it helps.
day_of_week feb_23 mar_23 apr_23 may_23 jun_23 <chr> <int> <int> <int> <int> <int> sunday 24575 48314 83366 84074 116821 monday 32208 46043 78434 85285 122528 tuesday 41347 56317 101060 76440 101694 wednesday 25792 51056 61445 98910 94837 thursday 21852 46027...
Seems that some URLs have whitespace character at the end that needs to be stripped: ```py import requests from bs4 import BeautifulSoup from tqdm import tqdm headers = { "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0" } def save_url(url, path): re...
so i am new at coding and im trying to create a Clicker game. To sum it up its supposed to be like Cookie Clicker. Click something to get a point and with those points buy upgrades. But i ran into a little Problem, i want to create Infinite Upgrades. So that i can buy a Click upgrader a infinite amount of times. But I ...
I'm trying to integrate PyDeequ with PySpark in my Streamlit application to perform comprehensive data quality checks on a CSV file. I want to use PyDeequ's functionalities to perform various tests including completeness, correctness, uniqueness, outlier detection, and date format correctness. However, I'm encountering...
|python|docker|kubernetes|cron|
We declare the variable `b` and initialize it to `3`. Then we have this line, `b += b++`; Let's dissect it. You are correct that `b++` deals with the postfix increment operator. However, note that `b` gets incremented after we take the value of `b` (this is the case in which we are dealing with the postfix in...
How do I remove the gaps between the subplots on a mosaic? The traditional way does not work with mosaics: plt.subplots_adjust(wspace=0, hspace=0) I tried using the grid spec kw, but no luck. import matplotlib.pyplot as plt import numpy as np ax = plt.figure(layout="constrained").subplot_...
Remove gaps between subplots_mosaic in matplotlib
|python|matplotlib|
I found this code: https://github.com/pixegami/langchain-rag-tutorial/blob/main/create_database.py It takes the document, splits it into chunks, creates vector embeddings for each chunk, and saves those into Chroma Database. However, the source code uses OpenAI key to create embeddings. Since I don't have access to ...
164b: f3 0f 1e fa endbr64 164f: 55 push %rbp 1650: 53 push %rbx 1651: 48 83 ec 28 sub $0x28,%rsp 1655: 64 48 8b 04 25 28 00 mov %fs:0x28,%rax 165c: 00 00 165e: 48 89 44 ...
Why would %rbp not be equal to the value of %rsp which is 0x28
|assembly|
null
{"Voters":[{"Id":6752050,"DisplayName":"273K"},{"Id":5910058,"DisplayName":"Jesper Juhl"},{"Id":7582247,"DisplayName":"Ted Lyngmo"}],"SiteSpecificCloseReasonIds":[13]}
|c++|qt-creator|sdl-2|qmake|
I'm trying to find a way to get a signal-point on the chart everytime the bar is a new 15-days low. Thanks for help! ``` //@version=5 indicator('15-Days-Low', overlay=true) bars_back = input(15) ll = ta.lowest(bars_back) //15-d-low tl = ta.lowest(source=low, length=1) //todays low lb = ta.lowestbars(bar...
I want to download a.com with all its subdmains and not other domains for example, I want to include x.a.com in the download and excldues others like b.com I need to have all subdomains form a.com like x.a.com included in the downlaod but nothing from other domains. Any idea? wget https://a.com --domain=*.a.com
Download a website using wget command to include any subdomain
|subdomain|wildcard|wget|
null
I fix it by adding a setup file. Add a setup file in `jest.conf.js`: setupFiles: ['<rootDir>/test/unit/setup'] Create `setup.js` and create the div. createAppDiv(); function createAppDiv() { var app = document.createElement('div'); app.setAttribute('id', 'app'); document.b...
"*Why do the results pull multiple fields of the data frame when I remove the numeric_only parameter?*" [`groupby.median`](https://pandas.pydata.org/docs/reference/api/pandas.core.groupby.DataFrameGroupBy.median.html) only accepts one parameter: `numeric_only`. By running: ``` df.groupby('author_ban_status').me...
I have two arrays containing file names files_ref=( $(find . -name '*.fasta') ) files_fq=( $(find . -name '*.fastq') ) I understand that if I want to iterate over pairs of items I would do something like this: for i in "${!files_ref[@]}"; do printf "%s is in %s\n" "${files_ref[i]}" "${fil...
I have a SQL Server database with a table named `Users`. This table has 2 columns: `XP` (int32) and `Name` (nvarchar). I need a SQL query or Linq (this is better because I'm using Entity Framework in C#) that gets the `Name` and ranks everyone based on `XP` and display the rank of this name + the rank of the prev...
I need to get Kea (DHCP server) running automatically at startup in my Yocto-based project. The Yocto recipe already includes an init.d script to start Kea automatically, however Kea requires a directory /var/run/kea to exist in order to run, so the startup script fails. Since directories under /var/run do not persist,...
Create kea runtime directory at startup in Yocto image
|linux|yocto|bitbake|init.d|
so i am new at coding and im trying to create a Clicker game. To sum it up its supposed to be like Cookie Clicker. Click something to get a point and with those points buy upgrades. But i ran into a little Problem, i want to create Infinite Upgrades. So that i can buy a Click upgrader a infinite amount of times. But I ...
`math.gcd()` is certainly a Python shim over a library function that is running as machine code (i.e. compiled from "C" code), not a function being run by the Python interpreter. See also: [Where are math.py and sys.py?](https://stackoverflow.com/questions/18857355/where-are-math-py-and-sys-py)
docker-compose can't reset postgresql database
|postgresql|docker|docker-compose|
null
|excel|excel-formula|sequence|countif|
Just Add this code to controller: ViewData("SomeRole") = "hidden"/"visible" To your html <li style="visibility: @ViewBag.SomeRole'>@Html.ActionLink("Tenant", "Index", "{controller}", New With {.area = ""}, Nothing)</li>
I'm reasonable new for JSOUP, I believe most of JSOUP user is using JSOUP to parse html content (load from Internet URL) into text or some other JOPO. But I'm trying to use JSOUP to create html elements to create dynamic html email content in rich text. I don't find lots of examples to create dynamic html element...
How to create an JSOUP element from byte array image (Load from Database)
|java|image|email|jsoup|
In my Case INPUT will be like Binary number and the output will the most consecutive '1' count. Input :10101010101111001 Output:4 Case 2: Input:101010101010 Output:-1 It works for me: class HelloWorld { public static void main(String[] args) { ...
The data structure for this is a [Trie][1] (Prefix Tree): ```php <?php class TrieNode { public $childNode = []; // Associative array to store child nodes public $endOfString = false; // Flag to indicate end of a string } class Trie { private $root; public function __construct() { ...
Прошу помочь уже несколько дней не понимаю в чем дело. Я написал онлайн редактор кода на основе monaco editor.Начал делать функции вкладок и теперь моем коде либо не правильно работает удаления одного монако эдитора или что то не так делаю. В общем вкладки у меня построены так ``` [все линии [ линия [ таб ...
Monaco editor remove tab
|javascript|reactjs|redux|monaco-editor|
null
Let's assume you have those 2 files : layout.html ``` PHP DOM * ``` content.htm ``` <h1>DOM content</h1> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> ``` Here is the code for index.php that will insert content.htm in layout.html ``` loadHTMLFile('...
null
I have a resource in a php Filament App called LoadResource. The standard out of the box Edit action on this resource is working fine - it however does not respond to any lifecycle hooks that I place in the Edit action statement. My Edit Action is listed below: ``` ->actions([ Tables\Actions\A...
Lifecycle hooks not working in Edit function, Filament resource
|action|edit|laravel-filament|before-save|
null
To enable SharedArrayBuffer inside a loaded iframe, append `allow="cross-origin-isolated"` to the `<iframe>`.
Why is the width of my webpage exceeding the device width
|html|css|width|
null
I am using the MockMvcResultMathchers to test my async function but it not work properly. Here is my function : ``` @GetMapping( value = "/v1.0/sms-booking/async-handle", produces = {"text/plain"}) @Async public CompletableFuture<ResponseEntity<String>> smsAsyncHandle(@RequestParam("moLogID ") In...
Adding my own take here because none of the answers were acceptable to me: ```kotlin import kotlin.contracts.ExperimentalContracts import kotlin.contracts.InvocationKind import kotlin.contracts.contract private fun closeChain(items: List<AutoCloseable>) { try { items.last().close() } finally...
In order of creating my website, I'm getting following warning in Firefox browser: > When rendering the <html> element, the used values of CSS properties “writing-mode”, “direction”, and “text-orientation” on the <html> element are taken from the computed values of the <body> element, not from the <html> element’s o...
I'm developing a game where my main activity (GameActivity) is hide-and-seek. Then there's a second activity (InventoryActivity) where players can use items that affect their characteristics (number of hit points, for example). I'm able to retrieve the current player's hit points in the second activity, and modify the...
For example, if I have ```c /* <…> */ int main(void) { int status; pid_t pid; char* arg[] = {"ls", "-l", "/usr/include", (char *)0}; if ((pid=fork()) == 0) { /* CODICE ESEGUITO DAL FIGLIO - CODE EXECUTED BY THE SON */ execv("/bin/ls", arg); /* Si torna solo in caso di errore - Return...
execv: What is (char *)0 in C?
null
I checked the docs: > Snapshotting is effectively **“recording after the fact”**. Rather than starting recording at a specific point, snapshotting allows you to convert requests already received by WireMock into stub mappings. If I'm reading it right, this should pass: ```java package com.example.gatewaydemo.mi...
{"Voters":[{"Id":213269,"DisplayName":"Jonas"},{"Id":16217248,"DisplayName":"CPlus"},{"Id":1940850,"DisplayName":"karel"}]}
I'm studying about postfix increment operator in JAVA, and curious about why the result is `6` when coding like this. ```java int b = 3; b += b++; System.out.println(b); ``` I think that due to the `+=` operator, `3` is added to `b`, making it `6`, and then due to the `++` operator, `1` is added to `...
{"Voters":[{"Id":3689450,"DisplayName":"VLAZ"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":1940850,"DisplayName":"karel"}],"SiteSpecificCloseReasonIds":[16]}
Query (or LINQ in Entity Framework) for getting user's rank
I've just installed Wordpress 6.4.3 & MAMP and managed to edit functions.php and save my changes. When I tried to make more changes Wordpress started displaying the following error message: > Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to man...
Cannot edit functions.php anymore on localhost
|wordpress|mamp|
null
I've just installed Wordpress 6.4.3 & MAMP and managed to edit functions.php and saved my changes. When I tried to make more changes to the file, Wordpress started displaying the following error message: > Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you...
Not sure how you connect your ```mutate``` line to your dataset, given that it already has a column called ```gender_final``` but it seems to work just like you expected. In my suggestion, I have just called the new column ```gender_final2``` because I didn't want to change your original data. ``` library(dplyr) ...
I am currently working on implementing a JavaScript code that aims to read and parse .npz files generated from Python's numpy, specified by a JSON file. These .npz files contain arrays of floating values (a ML model weights and biases as arrays). However, I am encountering errors while running the script. What is causi...
The easiest way is to use the index of the rows you need: ids=which(df$Hospital %in% c('Other', 'Missing', 'Total') #which rows should be at the bottom of a dataframe df2=df[ids,] # create temporaty dataframe with this rows only; df=df[-c(ids),] #remove them from your dataframe ...
I have cretaed a django app, which uses weasyprint to convert html to pdf. This needed GTK3 to be installed on my local system. Now I'm not able to deploy on FL0. I checked the docs which said problems with deployment might be because the code couldn't be run properly. When I first used weasyprint, I was not able to ru...
`jax.linear_util` was [deprecated in JAX v0.4.16](https://jax.readthedocs.io/en/latest/changelog.html#jax-0-4-16-sept-18-2023) and [removed in JAX v0.4.24](https://jax.readthedocs.io/en/latest/changelog.html#jax-0-4-24-feb-6-2024). It appears that `flax` is the source of the `linear_util` import, meaning that you ar...
I'm going to recover my Facebook account but I just forget my email address, can anyone telling me how can I show this full email address. I'm attaching an screenshot please have a looks Can I show my full email address was
How can I look this email address
|facebook|email|recovery|
null
``` <?php if ($_SERVER['REQUEST_METHOD']== "POST") { if(isset($_POST['submit']){ echo $_POST['vid']; }} ``` // This part of the code recieves data from the form on the $_POST variable which i dont want in the post variable but i need in the $_FILES variable ``` if ($_SERVER['REQUES...
Good Day to the readers. I have a website for url//link shortening, that uses Google Spreadsheets and Google App Scripts, I have been trying to find a way to redirect the users when they type my link, but app scripts either tries to load the redirection URL in an iframe which gets rejected by most sites these day...