instruction
stringlengths
0
30k
|php|composer-php|
I'm making an app with the Qt framework using Qt Creator and CMake (not qmake, because I want the full project to be buildable from other IDEs, but that's not relevant for this topic). In this project, I need the pffft library which is a compact and convenient alternative of fftw. This library has a .h header, and a .c...
How to use bitwise operators in GLSL
|opengl|glsl|shader|
null
As noted in the comments, an `awk` solution is simple. For example: ``` awk '!index($0,q) || ++c>n' n=3 q=please "$filename" ``` --- It is not very convenient to try to count with `sed`, although it is possible. Parameterising arguments is also complicated. Ignoring both those issues, here is a sed scrip...
[CICS Transaction Gateway (CICS TG) SDK Downloads](https://www.ibm.com/support/pages/node/6217349) which says (in part) > The CICS TG SDK contains all the CICS TG JARs, RARs, shared libraries, headers, libs, and schemas that are needed to write, compile, and ship a CICS TG application for any supported release of C...
void main() { WidgetsFlutterBinding.ensureInitialized(); WindowManager.instance.ensureInitialized(); WindowManager.instance.setTitleBarStyle(TitleBarStyle.hidden); runApp(MyApp()); }
I was able to mostly recreate the LAMB namespace that's explained on this site [Excel Lambda Introducing the LAMB Namespace][1]. I called it PIPER and added some logging and helper functionality. LAMBDA(Names,Initial, LET(SQRT_,LAMBDA(vector,INDEX(SQRT(vector))), LN_,LAMBDA(vector,INDEX(LN(v...
I have used the code begin{equation} in one item which used in the code begin{enumerate}, how can I begin the number one code begin{equation} in the next item: item 1: 1 2 ... 100 item 2: 1 2 ... 100 How can I recount the number in the item 2? Thanks. I have try to put the begin equation new but it does...
How to begin a new equation
|latex|
null
In my webview application start with progress bar after progress bar hide screen is totally black and not loading website in android webview hedgehog version. Here is my MainActivity.java code, public class MainActivity extends AppCompatActivity { String websiteURL = "https://xxxxxxxxx.com"; ...
After progressbar load website is not loading in android webview
{"OriginalQuestionIds":[54957941],"Voters":[{"Id":5577765,"DisplayName":"Rabbid76","BindingReason":{"GoldTagBadge":"python"}}]}
|sql|mysql|pivot-table|
I am plotting some lines with Seaborn: ```python import matplotlib.pyplot as plt import seaborn as sns import pandas as pd fig, ax = plt.subplots() for label, df in dfs.items(): sns.lineplot( data=df, x="Time step", y="Loss", errorbar="sd", label=label,...
This happens because Communities has not developed a stable version of the `location` package that matches the `location` package with your kotlin version. Because of that, temporary solution can be proposed. Specify the `location` package in your `pubspec.yaml` file like this. this is working for me. replaced ...
I was training a tensorflow model and using `ignore_class=0` to ignore the class 0 when computing the loss. ``` unet.compile( loss=keras.losses.SparseCategoricalCrossentropy( from_logits=True, ignore_class=0, ), optimizer=keras.optimizers.Adam(learning_rate=0.00...
null
I have a Vite-based React library, currently structured like this: ``` import { Button, Typography, Box, Flex, Color, TypographyVariant } from '@placeholder-library'; ``` I want to separate the imports to add submodules so that components and shared are imported from different paths: ``` import { Button, Ty...
I am working on a small project and I am trying to implement shaking animation when the user clicks dont know. Right now, when I click the button it shakes two times. It does that when i add onRest function. When I remove it, it works great but I need to use that button multiple times so i need to update the state afte...
Why does the React Spring animation executes 2 times?
|reactjs|animation|react-spring|
I'm deploying a zip package as an Azure function with the use of Terraform. The relevant code fragments below: resource "azurerm_storage_account" "mtr_storage" { name = "mtrstorage${random_string.random_storage_account_suffix.result}" resource_group_name = azurerm_resource_...
Have made an alertDialog but it appears to have a huge padding in the bottom, but it isn´t asign by me, here is the code and a image of the dialog. add_input_popup = ft.AlertDialog( title=ft.Text(" Introduce los datos de la entrada: ",max_lines=1,size = 18, color=ft.colors.BLACK, font_family = "Poppins"...
Is there an invisible bottom padding in flet alertDialog?
|python|flet|flutter-alertdialog|
null
Have made an alertDialog but it appears to have a huge padding in the bottom, but it isn´t asign by me, here is the code and a image of the dialog. add_input_popup = ft.AlertDialog( title=ft.Text(" Introduce los datos de la entrada: ",max_lines=1,size = 18, color=ft.colors.BLACK, font_family = "Poppins"...
``` TITLE —— 1 nuit 1 nuit 1 nuit 1 nuit 1 nuit total : 5 nuits —— 1 nuit 1 nuit 1 nuit total : 3 nuits —— 1 nuit 1 nuit 1 nuit 1 nuit 1 nuit 1 nuit and so on... ``` I'm having this paragraph in which I'd like to select the last lines after the occurence of the last `——` It should m...
Select all lines after certain character in regex
|regex|
product_id was not added in partition by clause which as a result giving unexpected result as it fetch the prev sales from any other products .
For this section of code, I am trying to randomly choose either theta or mu to be zero. When one variable is zero, then I need the other one uniformly randomized (and vice versa). ``` N = 10000 random = np.arccos(np.random.uniform(-1, 1, N)) zero = 0 choices = [random, zero] theta = np.random.choice(choices) ...
I am new to WordPress and Azure. There are two mail was setup in WordPress on Azure app service. one mail was failed. one mail was successful. "Your submission failed because of a server error" is the error message that appears. I don't know how to test mail in WordPress. please help me to how to do this
Invalid format for email address in WordPress on Azure app service
|wordpress|azure|email|azure-web-app-service|
null
I can't interfere with any element on this site. Could you help ? Thank you very much for your answers in advance. https://pttws.ptt.gov.tr/info_web/info_kayit.jsp ```python driver = webdriver.Chrome() driver.get("https://pttws.ptt.gov.tr/info_web/info_kayit.jsp") inputs = driver.find_element(By.TAG_NAME, "i...
I believe the function you are looking for is itertools.product: lasts = ['x', 'y', 'z'] firsts = ['a', 'b', 'c'] from itertools import product for last, first in product(lasts, firsts): print (last, first) x a x b x c y a y b y c z a z b ...
I am having an issue. It just published my first project and now I am realising if you add an "/" to the end of the URL it does load in a very different way I cant even explain. When you add a "Trailingslash" some of the Buttons of the Website are not clickable and if I do this with ng serve the font is changing, I can...
I am working on building a 2D renderer with the Javascript canvas API, and I am trying to improve performance by skipping renders when no changes to the state of any renderable objects have occurred. To this end, I want to build an extensible class (call it `Watchable`) that will detect changes to its state while al...
You can use `::ng-deep` directive > The ::ng-deep CSS selector is often used in an Angular Component’s CSS to override the styles of a third-party component or a child component’s styles Something just like this: ::ng-deep mat-menu > .mat-mdc-menu-panel > .mat-mdc-menu-content > button { min-height: ...
The code below uses a **background callback** (dash) to retrieve a value. Every 3 seconds, `update_event(event, shared_value)` sets an `event` and define a `value`. In parallel, `listening_process(set_progress)` waits for the `event`. This seems to work nicely and the waiting time is low (say a few seconds). Wh...
unable to use ignore_class in SparseCategoricalCrossentropy
|tensorflow|tf.keras|
null
Let's say that i am trying to fill a MatrixXf with the rolling mean of another MatrixXf like this MatrixXf ComputeRollingMean(const MatrixXf& features) { MatrixXf df(features.rows() - 30, features.cols()); for (size_t i = 30; i < features.rows(); ++i) { MatrixXf mat = fea...
The aim is to use the API to request the median tenure for a companies in a list. If there is no official way then would be bootstrapped way be using selenium and searching each name, clicking the profile and reverting to the insights tab, is this possible with selenium?
Linkedin API for median tenure
|python|selenium-webdriver|linkedin-api|
The OP's problem qualifies perfectly for a solution of mainly 2 combined techniques ... 1) the [`map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) based creation of a list of [async function/s (expressions)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
If you want to match bot, but not google bot: ^$|(?<!\bgoogle)bot|crawl|spider [Regex demo](https://regex101.com/r/jD7hz8/1) Or you could group the alternatives in a non capture group and surround that group with word boundaries to prevent partial matches for all alternatives: ^$|\b(?:bot|crawl|spid...
When I use pgsodium with a unique key_id for each row, encryption works well when I add a new record, and I can see the decrypted value in the associated view: ``` CREATE EXTENSION IF NOT EXISTS pgsodium; ``` ``` create table if not exists "schema"."secret" ( "id" uuid DEFAULT uuid_generate_v4() NOT NULL ...
I'm using .net 8 and Docker Desktop with linux container. I'm making a request from API in docker to another api and it's not working and if i'm a call to external api with domain for example https://somedomian/api - it's working find. I have this error (localhost to localhost with HttpClient in Docker container)...
Gitlab issue filtering seems to default to AND filtering if you have multiple criteria against the same filter object (eg. label). For instance, if you have labels `vehicle::car`, `vehicle::truck`, `vehicle::motorcycle`, if you want to see `vehicle::car` OR `vehicle::truck`, if you put `label=vehicle::car` `label=vehic...
Have two excel spreadsheets. In first excel is a lot of HEX decoded data (eg.73F57D5AA922166CA546318DA9B6E0EF), in second excel is complex AES encoded solution (https://www.nayuki.io/page/aes-cipher-internals-in-excel) with little modify input by me (no need update ciphertext table, table get update from string - is a...
Excel - create new definition of function based on results form other cell with complex formula
|java|android|webview|progress-bar|mobile-development|
In react 17 they tried to hide the fact that they were doing a double render in strict mode by temporarily overwriting the `console.log` function to be a no-op during that second render. So it is rendering twice, you just can't log it out. In the following code i have added a variable for counting the number of ren...
I am developing a perfume review application using a React frontend and an Express/SQLite backend. My goal is to transition from using static data within a React component to fetching this data dynamically from my backend. **Project Architecture:** **Backend:** - **Models:** **`Parfum.js`** - Defines the perfu...
I have a multi-threaded implementation of Mandelbrot. Instead of scanning X and Y in nested loops, I scan pixels from 0 to width*height. The Mandelbrot worker thread then calculates the logical and real coordinates of the pixel. Here is a subset of the code... ``` // Worker thread for processing the Mandelbrot algo...
{"Voters":[{"Id":2357112,"DisplayName":"user2357112"},{"Id":1773434,"DisplayName":"Govind Parmar"},{"Id":1902010,"DisplayName":"ceejayoz"}]}
I have airflow and spark on different hosts. I am trying to submit it, but I got the following error: ```lang-none {standard_task_runner.py:107} ERROR - Failed to execute job 223 for task spark_job (Cannot execute: spark-submit --master spark://spark-host --proxy-user hdfs --name arrow-spark --queue default --deplo...
null
I have airflow and spark on different hosts. I am trying to submit it, but I got the following error: >{standard_task_runner.py:107} ERROR - Failed to execute job 223 for task spark_job (Cannot execute: spark-submit --master spark://spark-host --proxy-user hdfs --name arrow-spark --queue default --deploy-mode client...
the input is: ![input of sample data](https://i.stack.imgur.com/akaB9.png) need output as: ![enter image description here](https://i.stack.imgur.com/tyeiB.png) is this possible in just XL format or a python script is required. if yes can you help with python script? thanks. my script: my logic is read eac...
I am using node server for the backend. Connection to Cassandra is done using cassandra-driver nodejs. Connection is done as follows: const client = new cassandra.Client({ contactPoints: ['h1', 'h2'], localDataCenter: 'datacenter1', keyspace: 'ks1' }); 1. In contactPoints, do I j...
I am trying to create a structure `Student` which contains q substructures named `Course`. Each `Course` is a structure with a credit and point `int` values. How do I set up my `Student` structure to have an integer number of `Course` structures within it? Thanks ``` struct Student{ int q; Course co...
I am using livewire component and in component blade file I am using script, ``` @assets <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script> @endassets @script <script> var options = { series: [], legend: { show: false }, ...
|excel|
null
null
null
null
null
null
null
python encoding issue only in cloud but not on-prem with python version on 2.7.5 on-prem and 2.7.18 on cloud
tried all, but unfortunately to no avail. I think my initial nginx set-up was faulty, although i could not figure out why this was. I eventually ended up freshly installing nginx which went well. Now other issues this helped me: https://askubuntu.com/questions/361902/how-to-install-nginx-after-removed-it-manually th...
With pure JS, you can do something like the below. The basic concepts are these: First, your data is in xml format so you should parse it with an xml parser; that the job of [DOMParser()][1]. Next, to query the xml data you should use xpath, incorporated in JS in the form of [the document.evaluate() method][2]. Fina...
I have a project with WinForms, using GDI+ and DirectX for render some data (2d). I want to add additional renderer via Silk.NET (interesting OpenGL/Vulkan). Have any ideas how to add silk-surface on WinForms control? I hadn't information in tutorials or git projects.
In Android Compose, please tell me how to hide LazyColumn so that TopBar disappears when I raise LazyColumn ``` kotlin Scaffold( topBar = { PostTopBar() } ){ innerPadding -> CompositionLocalProvider( LocalOverscrollConfiguration provides null ...
I am using spring boot 2.7 version and recently upgraded *jakarta.annotations-api.2.1.1* version. After this when I started application, I getting error like No class deffounderror for javax.security.RunAs How can I fix this issue?
null
I am using spring boot 2.7 version and recently upgraded `jakarta.annotations-api.2.1.1` version. After this when I started application, I getting error like No class deffounderror for javax.security.RunAs How can I fix this issue?
NoClassDefFoundError for javax.security.RunAs when using Jakarta Annotations API 2.1.1 on Spring Boot 2.7
|spring-boot|jakarta-annotations|
Below is the piece of code where it is writing from already encoded cp1252 files. with open(out_path, "a") as csv_file: writer = csv.writer(csv_file, dialect='excel', lineterminator='\n') writer.writerows(csv_values) I am getting data as ? in place of - I have tried to encode ...
Is there a way to update dash faster when using a background callback?
|python|multiprocessing|plotly-dash|
Webpack generates a JS file for each resource defined in the entry option. The `mini-css-extract-plugin` extract CSS from SCSS file defined in entry, but not eliminate a generated empty JS file. To fix it, you can use the `webpack-remove-empty-scripts` plugin. 1. Install ``` npm install webpack-remove-empt...
I have setup a postgres:13.3 docker container and scram-sha-256 authentication. Postgres.conf: ``` password_encryption = scram-sha-256 ``` pg_hba.conf: ``` hostnossl all all 0.0.0.0/0 scram-sha-256 local all all scram-sha-256 ``` After above done and restarted container, I created a new fbp2 user and ap...
{"Voters":[{"Id":10952503,"DisplayName":"Elikill58"},{"Id":22180364,"DisplayName":"Jan"},{"Id":354577,"DisplayName":"Chris"}]}
`x-c+M×s-N×t==0` and `z+s+t==1` with `z,s,t` being Booleans representing zero, negative or positive and `M` and `N` representing slack variables. It's very straight forward. The other answers saying it's not possible are wrong. `M×s` and `N×t` are easily linearized via the Fortet inequalities. For this reason, the ...
I prepared a simple dojo here: http://dojo.telerik.com/iQERE **Scenario:** I have an array within another array and I wanted to render it with a kendo template in a sort of table/grid. First array's items are the rows and inner array's items are the columns. I Googled and found this technique: [template insid...
You can use scikit image. if its a normal tiff file ``` from skimage import io my_img = io.imread('myimage.tiff') ``` Alternatively if your tiff file is a georeferenced image. You can use gdal ``` from osgeo import gdal ds = gdal.Open("myimage.tiff") myarr1 = np.array(ds.GetRasterBand(1).ReadAsArray()) myar...
The answers so far are mostly correct, but there is more to the story. The simple answer given so far -- which is that there might be runtime values that match no case, regardless of compile-time type checking for exhaustiveness -- are correct. A default clause is allowed because it is possible that it is selecte...