instruction
stringlengths
0
30k
Assuming your options are in the R vector `opts`, you can do: ```r opts <- c("Keep data", "Pass", "Delete") jsOpts <- paste0( sprintf("{value: '%s', display: '%s'}", opts, opts), collapse = ", " ) js <- c( "table.MakeCellsEditable({", " onUpdate: onUpdate,", " inputCss: 'my-input-class',", ...
I have been given a task in which I have to host an HTML page on port 8083. Now when I was followinf the steps of installing NGINX from [this][1] page there was this piece of code: server { listen 81; listen [::]:81; server_name example.ubuntu.com; root /var/www/tutorial; ...
Setting up HTML page on port 8083 in NGINX
|ubuntu|nginx|port|portforwarding|
I'm doing invoice product and using cascading dropdowns. Here the view ![image](https://i.stack.imgur.com/ZDrY2.png). When user click on plus button there will be a new product row here example ![example](https://i.stack.imgur.com/SpozY.png). I using cascading dropdowns to select all the colors of that p...
|r|ggplot2|colors|colorbar|
null
I have following code: ``` public class TestConfig { @Container protected static PostgreSQLContainer<?> postgresContainer; public TestConfig() { postgresContainer = new PostgreSQLContainer<>(DockerImageName.parse("citusdata/citus:11.2.1") .asCompatibleSubstituteFor("post...
TestContainers with spring boot. Where to start the postgrescontainer and where to shut?
|spring-boot|
In Basic **Same Origin - Iframe** document.getElementById('frame2').contentDocument.location.reload(true); **Different Origin - Iframe** var iframe = document.getElementById('frame2'); iframe.src = iframe.src; In Angular **HTML** <iframe [id]="iFrameId" ...
I am programming a iOS and Android app with Firebase. Now I want to implement Push Notifications. That works fine so far. I want that when a user interacts with another in a certain action one user is getting notified via a push notification. Now my question is how can I achieve this, I am saving the FCM token in my...
Send Push Notification with Firebase from one the device to another
|android|ios|firebase|firebase-cloud-messaging|
null
I want to extract high, low, close, open of 1st 30minute candle and make it save/plot for throughout the day irrespective of the time frame selected in tradingview chart. I have tried using various codes, also in one of them open and close of first 30minute candles was plotted but high, low was not achieved. Exa...
Working with various timeframe inside script irrespective of timeframe selected in charts
|charts|pine-script|pine-script-v5|
i am trying to write a function for a given user to return a count of all online users and offline users for each chatroom the given user is a part of but I cannot figure out how to do. the methods listed below achieve what I want but it writes multiple queries to postgres and I want to be able to do it one. ``` clas...
Optimize SQL Alchemy Query
|python|asynchronous|sqlalchemy|
I've been trying to specifically retrieve a div that changes to pass the turn to the other player on a dynamic page. I'm working with Selenium because I think that's the best option I have, but I'm not sure if there's another way to access divs. When I use .findElement(By.className("player")) (I've also tried with ...
I've developed a custom carousel widget for Elementor using the Slick slider. On the website's front end, everything looks and works as expected; the styling of the carousel is precisely how I want it. However, I'm encountering an issue when viewing and editing this widget within the Elementor editor. The styles applie...
Elementor editor not reflecting custom widget styles
{"Voters":[{"Id":2357112,"DisplayName":"user2357112"},{"Id":794749,"DisplayName":"gre_gor"},{"Id":9214357,"DisplayName":"Zephyr"}]}
The table is not creating and i dont want to use declarative_base and alchemy.orm i was told to use class but i don't know how to arrange it class Tables(): def __init__(self, engine, metadata, table, name, age, location): self.engine = sqlengine self.metadata = sql_metadata ...
how do i use class in sqlalchemy, i have being triying to use class but the table is not creating
|python|class|sqlalchemy|metadata|
null
I am learning C++ and I was working on a project for my class. The project is a CityClock class that displays time, toggles format between the 24 and 12-hour clocks, and a tick function that adds one second to the time of the current object. I was then asked to add a move constructor, a move operator, a copy constructo...
is my code alright like i checked my code multiple times still didn't see any errors and data is not being send to server side , im even getting message user register successful like i don't understand what could be the problem like its checking in database ``` my code below <!DOCTYPE html> <html lang="en"> <...
forum data is not being send to xampp server despite code giving no errors
|php|xampp|
null
I have a Pandas DataFrame containing a dataset `D` of instances drawn from a distribution `x`. `x` may be a uniform for example. Now, I want to draw `n` samples from `D`, sampled according to some new `target_distribution` that is in general different than `x`. How can I do this efficiently? Right now, I sample ...
mergeDebugResources FAILED
|angular|ionic-framework|apk|
null
The [HTML Standard specifies](http://html.spec.whatwg.org/multipage/webstorage.html#dom-storage-getitem) the `getItem` method as follows: > 1. If `this`'s `map[key]` does not exist, then return null. > 2. Return `this`'s `map[key]`. Further down from [the `Storage` interface definition](https://html.spec.whatwg....
Unfortunately, there is no "one rule fits all" when determining the big O complexity of a dependent for loop or recursive function. When doing a complexity analysis, it generally involves breaking your code into smaller and smaller components, finding the complexities of those smaller components, and then combining the...
I don't have a solution to the combine error, but you can do it just fine without it. And I think thats what most are looking for when searching for this question. The approach was correct, just clear the array and check if its empty before doing your stuff with it, if it changed. struct TestView74: View { ...
How to click on specific elements on a webpage and find the last page of searches then find specific class to save in txt file
I developed a small stand alone webserver in Delphi. The procedure is as below: procedure sum(a1,a2:integer;var result_value:integer);stdcall; begin result_value:=a1+a2; end; How can I call it in Vue JS? The web service URL is http://127.0.0.1:8080/soap/iservice1
First, some observations: 1.The string size is exponential in n so a(n) takes 10000 bits. The largest number type in C++ is uint64_t with 64 bits. 2. Luckily, the restriction on k means we only have to consider the first 10^15 digits, which is 35 bits and thus fits in a uin64_t. 3. a(49) is the last digit stri...
null
I'm very new to SQL, and I've been practicing on a dataset, but I seem to have run into some trouble: I want to pull a certain coffee processing method: "Natural/Dry". But when I go to run my query, BigQuery just tells me that "there's no data to display." This is the query I wrote: ``` SELECT Processing_Met...
How to return a string that has a special character - BigQuery
|sql|google-bigquery|
null
we have function app/ consumption logic app that read/write to a blob storage. it works if blob storage network is set to pulic access . But it is not working if we change the blob storage to allow only from within network. how to achieve this. thanks for your help making both the consumption logic app an...
want stand logic app or function app (not premium) to connect to a blob storage which is under a vnet. How to achieve this?
|azure|blob|
null
actually the fundamental concept is based on [OSI model][1], so: |◾ | an abstraction of | check it by | explanation | |---|---|---|---| |**NIC**<br>(stands for Network Interface Controller) or (network card) | layer-1(Physical) |literally you should open the hardware of your machine and see that!| [![enter ima...
I want trace my own model. I want to use it in C++. But when I use torch.jit.trace to trace it, I got errors as follows: Traceback (most recent call last): File "main.py", line 457, in <module> traced_script_module = torch.jit.trace(model, (example_input,example_rawdata,example_index,example_mask) ) Fil...
|r|r-markdown|r-leaflet|
I've added [NextUI][1] to my NextJS 14 app The issue has been isolated to the ThemeProvider in my main providers.tsx file: ``` 'use client'; import { NextUIProvider } from '@nextui-org/react'; import { ThemeProvider as NextThemesProvider } from 'next-themes'; export default function Providers({ children }...
I'm creating a set of keys for our apps up on Azure where we have 2 domains (production and dev slots). But we also need keys for all the developers when they run on their system. Is there a way to create a set of keys good for any domain so we set those in the appsettings.json (which we override on Azure) and then ...
Can I create recaptcha keys good for any domain?
|recaptcha-enterprise|
null
So I currently have a service for an eccomerce project which uses redis and jedis to connect. It is working when ran using source code but when it is dockerized it pops up the following error: `redis.clients.jedis.exceptions.JedisConnectionException: Failed to connect to any host resolved for DNS name.` When I ra...
Service in Docker Compose not connecting to Redis container in docker, Failed to connect to any host resolved for DNS name
|spring-boot|docker-compose|redis|spring-data-redis|jedis|
null
I have a question about sort utility in Linux. Why does it use merge? There are sorting algorithms like Radix or Counting which have O(n) complexity(in any, worst and better scenarios) then Merge which have O(n*Log(n)) complexity. Why those faster alghoritms not used in sort utility? This riddles me, since modern ma...
{"Voters":[{"Id":14991864,"DisplayName":"Abdul Aziz Barkat"},{"Id":1536976,"DisplayName":"NoDataDumpNoContribution"},{"Id":1126841,"DisplayName":"chepner"}],"SiteSpecificCloseReasonIds":[]}
1. To specify the name of the database table, you can use an attribute or the fluent API: Using Attributes: [Table("MyAccountsTable")] public class Account { public string PasswordHash { get; set; } } Using Fluent API: public class YourContext...
null
I want to return records from a table in postgresql that when a distinct value in column 1 has more then one different values in column 2 spread over multiple records. As a simple example: table1: ``` column1 - column2 1 – 1 1 – 2 2 – 1 2 – 1 3 - 3 4 - 5 ``` return: ``` 1 - 1 1 - 2 ``` There is ...
|sql|postgresql|
I have been having issues with printing all columns in a csv file. The data within is set out strange in my opinion however it is not relevant. I have been using pandas to see trends within a data csv file. I was trying to print out the data as well as showing it graphically with pandas. When I try to print the fil...
How can I retrieves divs into a dynamic page in Java?
|java|maven|selenium-webdriver|dynamic-pages|
null
Hello, why because i need to speak english. I use english only literarly. Never the less i line up with the two users below, Louis Go and KIIV (or KllV). To compare i blockquote KIIvs first sentence in this discussion. > Safe code in C++ is mostly about writing idiomatic code and experience. I have only experience. I ...
null
I want to automate tradingview with capitalise.ai. Now I get 2 signals for each candle, but I only want to get 1 signal if it is at a SellSignal or if it is at a BuySignal. Can this be solved? ``` //@version=5 strategy("My Strategy", overlay=true) //HMA len6 = 125 src6 = close hma = ta.wma(2 * ta.w...
watch this video https://developer.apple.com/videos/play/wwdc2023/10060?time=139 create file called: PrivacyInfo.xcprivacy [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/BBKIs.png <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"...
{"Voters":[{"Id":1622413,"DisplayName":"dave319"}]}
My parent POM **explicitly** declares a [dependency on `maven-javadoc-plugin 2.9.1` (MJP)](https://stackoverflow.com/questions/18340970/maven-plugin-version-in-pom-seemingly-ignored) in both ```maven <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</group...
|maven-3|maven-plugin|versioning|maven-dependency-plugin|maven-javadoc-plugin|
null
I am working on Leetcode [Generate Parentheses](https://leetcode.com/problems/generate-parentheses/description/) here is the approach - ``` public class GenerateParentheses { public List<String> generateParenthesis(int n) { // Resultant list List<String> result = new ArrayList<>(); ...
Ended on leaning on CodeBuild feature to provide the `runtime-versions` you want in the `install` phase. Completely removed the step `/usr/local/bin/dotnet-install.sh --channel 8.0` from the buildpsec in favor of the below and it worked just fine. version: 0.2 phases: install: runti...
{"Voters":[{"Id":12738750,"DisplayName":"lorem ipsum"},{"Id":2756409,"DisplayName":"TylerH"},{"Id":2324154,"DisplayName":"Dan Mullin"}]}
I'm conducting some tests to see how the ChoiceModelR package works for conjoint and MaxDiff analysis. I have created a test conjoint table as shown below: ``` #Define the brands and their corresponding prices brands <- c("ACROS", "ACROS", "GRS", "GRS", "GRS", "MABE", "MABE", "MABE", "WHIRLPOOL") prices <- c(2299...
number of valid columns for ChoiceModelR
|r|bayesian|multinomial|
Is it necessary to use multiple GPUs or is that just a workaround for memory constraints? On a single GPU, you can reduce memory overhead by pre-allocating the output array and breaking the matmul operation into chunks: ```python def chunked_matmul(a, b, n_rows, n_cols): assert a.shape[1] == b.shape[0] ...
I am learning C++ and I was working on a project for my class. The project is a CityClock class that displays time, toggles format between the 24 and 12-hour clocks, and a tick function that adds one second to the time of the current object. I was then asked to add a move constructor, a move operator, a copy constructo...
Your `<table>` HTML contains one or more `<tr>` rows - but those rows do not contain any `<td>` cells. Place the text (from `th:text="..."`) inside a `<td>`. ```html <table th:each="book : ${assignedBooks}"> <tr th:style="${book.getExpired()? 'color: red;' : 'color: blue;'}"> <td th:text="${book.getNa...
Slight name change in the latest location on vs2022; Tools > Options... > Projects and Solutions > Locations > Project location: [![enter image description here][1]][1] [![enter image description here][2]][2] The path for the default git remains. Tools > Options... > Source control > Git Global Settings > ...
First the container should be from redpandadata instead of vectorized ``` docker pull `redpandadata/redpanda:latest ``` I think gitlab ci runs docker underneath the hood, so you probably have to look at how you expose the host:port. Meaning the advertise address needs to be reachable by your clients.
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" ...
|pine-script|pine-script-v5|
I apologize for the inconvenience, and I would like to thank @Harris and @Karl Hill. Here's the solution: ```php BelongsTo::make('ShipmentSentDate', 'shipmentSentDate') ->displayUsing(function ($shipmentSentDate) { return Carbon::now()->format('Y-m-d'); }), ``` Thank you.
I am attempting to run a SQL Server agent job from an outside scheduler on SQL Server 2017 (v14) and when doing so I am encountering the following error(s): > SMO failed with the following exception: > > System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. > > S...
Asci.SqlDmo.Interop, Version=14.0.0.0' not found when running SQL Server Agent job