instruction stringlengths 0 30k ⌀ |
|---|
|javascript|json|post|pentaho| |
bollingers bands always give the same value and give the same value in each symbol there is no error in the code sequence but there is a logical error can you help
property copyright "Copyright 2024, MetaQuotes Ltd."
property link "https://www.mql5.com"
property version "1.00"
prope... |
Scrapy - How to access particular stats ("finish_reason", "elapsed_time_seconds")? |
|python|scrapy| |
You can't do that with OpenLDAP, but it's also not very useful to do, as it only takes a single `(mail=*@*)` to get around that restriction. (or if you forbid that, then `(mail=*@*.*)`, or some 26 or so `(mail=*a*)`, etc.)
Instead, set a size limit through `olcLimits` so that any anonymous query would only return e.... |
i made a next project with typescript and tailwind
src/app/page.tsx:
```
import Button from "@/component/button";
import Image from "next/image";
import shadup from '../../public/a.jpg'
export default function Home() {
return (
<main className="flex min-h-screen flex-col items-center justify-between p... |
(next.js typescript tailwind) content doesn't show |
|node.js|typescript|tailwind-css| |
null |
I got this working locally (in MacOS Sonoma - 14.x, on an x86_64 based machine, with XCode Tools 15.x) with some work and some hints/help from https://github.com/rbenv/ruby-build/discussions/1883.
I also have to maintain an _ancient_ (and air-gapped) system that uses Ruby 2.1.9 in this case.
One of the problems i... |
I tried this from <a href="http://www.htpcbeginner.com/yoast-seo-sitemap-blank-nginx-solved/">htpcbeginner</a> and it worked perfectly.
- Am using Ubuntu 14.04.3 x64, Nginx 1.4.6
- WordPress 4.4.2
Place the following lines inside **location block** in yoursite.com file in
`/etc/nginx/sites-avaliable` and don... |
null |
In Java, int is a primitive data type representing a 32-bit signed integer. It has a range of -2^31 to 2^31- 1.
In Kotlin, Int is a reference type representing a 32-bit signed integer, similar to Java's Integer wrapper class. Then what is the difference and how memory allocated?
1. Java int:
int a = 5;
2. Kot... |
What is difference between Java "int" vs Kotlin "Int" and Java "Integer" vs Kotlin "Int"? |
|java|kotlin| |
null |
Based on what you've asked and said in the comments, this sounds like what you need:
static void Main()
{
// Keep the following line intact
Console.WriteLine("===========================");
// Insert your solution here.
string Message(int eggs)
{
int dozen = eggs / 12;
int left_over = ... |
please attention to this simple program:
from time import sleep
from threading import Thread
def fun1():
sleep(10)
thread1 = Thread(target = fun1)
thread1.start()
#sign
sleep(100)
print("hello")
how can I stop execution of the codes below the #sign when thread1 finished.
thank you for your he... |
python threading library Perform a new activity |
|python-3.x|parallel-processing|python-multithreading| |
null |
cmd := 'expdp username/pwd@orcl schemas=finance directory=DUMP_DIRECTORY dumpfile=FIN03.dmp logfile=expdp_backup.log';
EXECUTE IMMEDIATE cmd;
but the code logged using dbms_output.put_line(cmd) is executed from command prompt
I didn't find any syntax error when dbms_output is logged for cmd and run the comman... |
Error in Exceute Immediate expdp... while doing it from plsql |
|oracle-database| |
null |
I'm migrating from Spring Boot 2 to 3. The same integration tests which used to work in 2.x, now do not work in 3.x. Example:
```
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
public class DemoTest {
@Autowired
private TestRestTemplate restTemplate;
... |
Well... I work more or less exclusively with very low-level, hardware-related programming. And then for almost every project, you have to start by creating the tools themselves = drivers. Coding drivers is hard, tedious and generally inglorious. After weeks of coding and testing, you could have less than 1k LoC to show... |
null |
I came up with the same problem, and open *setting.json* file, add the following:
```json
"workbench.editor.enablePreview": false
``` |
null |
i am using sox for creating synth with 100ms, this is my command:
```
/usr/bin/sox -V -r 44100 -n -b 64 -c 1 file.wav synth 0.1 sine 200 vol -2.0dB
```
now when i create 3 sine wave files and i combine all with
```
/usr/bin/sox file1.wav file2.wav file3.wav final.wav
```
then i get gaps between the files.... |
|performance|loops|t-sql|query-optimization| |
null |
Make sure this,
File Path: Ensure that textFile is pointing to the correct path of the text file you want to read. If the file path is incorrect or the file doesn't exist, you'll get null when attempting to read from it.
File Permission: Make sure that your app has the necessary permissions to read external storage... |
This should work:
var toOpen = url.replace(/%s/g,search.replaceAll(' ', '+'))
|
In my case also the number of td was not matching the number of th. |
I would like to insert role `:math:` (for example) into code-block directive:
```
.. code-block::
:math:`2^{64} - 1`
```
but the directive does not handle this role and I get this in pdf:

How can I insert role (math or others) into code-block direc... |
|python-sphinx|restructuredtext| |
Two things:
1. Process *all* events in the event queue every frame, not just one:
```c++
if( SDL_PollEvent( &e ) )
```
...should be:
```c++
while( SDL_PollEvent( &e ) )
```
2. Maintain a SDL_Keycode -> bool map of keydown states while processing events and only app... |
I am new to C and have found that it is common to initialize arrays with constants. I'm curious, is the following code legal?
int a = 1;
int b = 2;
int c = 3;
int array[3] = {a, b, c}; |
When initializing an array, can variables be inside braces? |
|c++|c| |
a `data.table` approach
library(data.table)
# set to data.table format
setDT(df1)
# initialise heating or cooling level
df1[, level := toupper(substr(temp.1,1,1))]
# override level of groupsizes size 2 or less with "H"
df1[, level := if (.N <= 2) "H", by = .(rleid(temp.1))]
# t... |
```
SELECT
OBJECTID, ACTIVITYID,
STATUS, LASTUPDATEDATE, DATAMGMTPOLICY, DCTCOMMAND, ACTIVITYTYPE
FROM
(SELECT
OBJECTID, ACTIVITYID, STATUS,LASTUPDATEDATE,
DATAMGMTPOLICY, DCTCOMMAND, ACTIVITYTYPE
FROM
(SELECT
CASE
WHEN DAH... |
The easiest way to install `pip` is:
python -m ensurepip --upgrade
|
{"Voters":[{"Id":259769,"DisplayName":"Enigmativity"}]} |
```
ALTER PROCEDURE [dbo].[identify]
AS
BEGIN
SET NOCOUNT ON;
Declare @first_name varchar(50)
DECLARE @old_last_name varchar(50)
MERGE INTO [dbo].[warehouse] AS dim
USING [dbo].[staging] AS stg
ON dim.[first_name] = stg.first_name
WHEN MATCHED THEN
UPDATE SET
... |
```python
out_df['# of Days'] = out_df['# of Days'].replace('',1)
out_df['# of Days'] += 1
print(out_df)
```
Would work except when cell's have NULL as their value, it does not add the 1 value.
Trying to add 1 to the entire column including empty cell in the column. |
null |
Recently I am working hard on embedded device develop by .NET. Not only the program but also the database is stored in the SD card.
Now I have a situation.
Because my embedded device is used in a workshop, when there is an uncontrollable power outage in the workshop, or there are various possibilities such as wir... |
How should I backup SQLite database using EF Core? |
Did you read the `np.dot` docs? Pay attention to what it says about 1d arguments?
In [209]: a = np.array([1,2,3,4])
...: b = np.array([1,2,3,4])
...: dot_product1 = np.dot(a, b)
...: print(dot_product1, type(dot_product1))
...:
...: a = np.array([1,2,3,4])
... |
null |
Find out username after user has logged in to GitHub via oAuth2 |
|javascript|node.js|github|github-api| |
I'm getting an inexplicable error in my Eclipse IDE:
The type java.util.Collection cannot be resolved. It is indirectly referenced from required type picocli.CommandLine
It is not allowing me to iterate a List object like the following:
```
List<ServerRecord> data = execute(hostnames);
for (ServerRecor... |
Eclipse Compile Error: The type java.util.Collection cannot be resolved. It is indirectly referenced from required type picocli.CommandLine |
|java|eclipse|maven| |
null |
I am using itext5 to create pdf files with painted non-removable watermarks as follows:
public class TestWatermark {
public static String resourcesPath = "C:\\Users\\java\\Desktop\\TestWaterMark\\";
public static String FILE_NAME = resourcesPath + "test.pdf";
public static ... |
Unable to make itext5 pdf watermark non removable in VMware Workspace ONE Boxer email |
Updates to the JDK libraries for new features typically take a long time, as the JDK development process is very cautious (and rightfully so).
In particular, HTTP/3 is quite different from HTTP/1.1 and HTTP/2 because it is not based on TCP nor TLS, and therefore requires a lot of work to be implemented from zero (in... |
I would like to implement a class for squared matrices, with a generic size. Then I would like to implement standard methods (add, multiply) between matrices, but only of the same size.
The goal is to regroup every matrices types in one class, but to be able to catch the size errors at compilation time, not during ... |
Typescript: Class with generic type 3 | 4 |
|typescript|typescript-generics|union-types| |
null |
The [issue](https://github.com/erlang/otp/issues/7776) has been resolved in Erlang OTP 26.2.1. |
This correction should work:
var toOpen = url.replace(/%s/g,search.replaceAll(' ', '+'))
Whole code:
var search = crmAPI.getSelection() || prompt('Please enter a search query'); var url = 'https://www.subetalodge.us/list_all/search/%s/mode/name'; var toOpen = url.replace(/%s/g,search.replaceAll(' ', '+... |
Of course, you can't add an **@IBOutlet** because the buttons that you've added to `WeekdayControl` are in `UIViewController`.
You can't add an **@Outlet** to `WeekdayControl` buttons are only subviews of `WeekdayControl`.
`UIViewController` is the boss here, and you can only add an @outlet to `UIViewController`... |
null |
The tomcat log showing the following error when we try to access the repositry. Previously it was hosted in Windows server and new one is in Ubuntu 22.04. When accessing we get the following error.

Checking catalina.out it shows the failed to ... |
I really don't want to knock the answer as it technically answers my question as stated in the best possible way.
What I did also manage to do was create a mock of a `gzip.GzipFile` that behaves exactly as I expect.
```
% python3 -m pytest test.py
============================================================= te... |
I'm currently working a UI selenium project in which I want to get the String data from the UI and parse it into a variable in my .feature scenario file.
I will use this scenario to explain, in this case, I only have the customerID:
**Given** I search for customer A <customerID>
**When** I get the customer info: c... |
I'm using ASP.net C# and I have a table for products where I have a function that gets called whenever there is a change in a dropdown list selection.
My function works perfect currently, but only if there is 1 row of data. If there is 2 or 3 rows or more, it only works for the top row and not individually for each ... |
vue-router internally converts all paths to a regex expression, and the hyphen is simply not considered part of a dynamic path segment. When you use the hyphen, you break the regex. You can consider using camel case for dynamic path segments as a requirement.
See the resultant regex using vue-router's [path rankin... |
When I try to run this code the behavior of the output is unexpected and I think the code is correct.
If anyone got some insight please help me to resolve this problem.
I've tried to adjust the code to solve the problem in different ways without luck.
The main problem should be in the MouseMove event but I cannot ... |
|java|itext|vmware|watermark|vmware-boxer| |
I used Ocelot to build .Net API gateway. I combined the CatchAll style and Aggregate in my configuration and got the error when runing gateway:
[![enter image description here][1]][1]
Please help to guide me to fix the problem.
Below is my Routing configuration. The first routing is used for aggregate request a... |
I'm on a school windows computer where I've downloaded Anaconda and am using Python. I'm trying to read in a .csv file.
The file definitely opens/reads in on my mac, and is sitting just on the desktop. It's 167MB, so not huge. The encoding is UTF 8 sig.
I'm trying to load it using this pathway:
df = pd.read\... |
How to read in a .csv into Python from a weird school windows computer? |
|python|pandas| |
null |
please attention to this simple program:
from time import sleep
from threading import Thread
def fun1():
sleep(10)
thread1 = Thread(target = fun1)
thread1.start()
#sign
sleep(100)
print("hello")
how can I stop execution of the codes below the #sign when thread1 finished.
thank you for your ... |
How to parse data into cucumber's variables in feature file? |
|java|selenium-webdriver|cucumber|ui-automation| |
null |
In IntelliJ IDEA Community Edition, can you generate a dependency tree for Maven projects?
----------
IntelliJ IDEA 2023.3.6 (Community Edition)
Build #IC-233.15026.9, built on March 21, 2024
Runtime version: 17.0.10+1-b1087.23 amd64
|
In IntelliJ IDEA Community Edition, can you generate a dependency tree for Maven projects? |
|java|spring|intellij-idea| |
I want to access nested JSON object values by iterating. This is the data I get from my query:
{"_id":"654d4224fb04863b8eb89200","firms":[{"_id":["65423d5c240388c1594e7b7b"],"name":["Camaro Coiled Tubing"]}]}
{"_id":"654d4224fb04863b8eb8920d","firms":[{"_id":["65423d5c240388c1594e7b82"],"name":["DANCO Coile... |
How to access nested json object inside array in react js |
|javascript|json| |
I'm currently working a UI selenium project in which I want to get the String data from the UI and parse it into a variable in my .feature scenario file.
I will use this scenario to explain, in this case, I only have the customerID:
**Given** I search for customer A <customerID>
**When** I get the customer inf... |
Because type variable type are not the same
var1 = int(input("enter a number:"))
num = str(var1)[::-1]
var2 = int(num)
if var1 == var2:
print("its a palindrome")
else:
print("its not a palindrome")
you need convert to integer type
or there is another way
var1 =... |
I want to access nested JSON object values by iterating. This is the data I get from my query:
{"_id":"654d4224fb04863b8eb89200","firms":[{"_id":["65423d5c240388c1594e7b7b"],"name":["Camaro Coiled Tubing"]}]}
{"_id":"654d4224fb04863b8eb8920d","firms":[{"_id":["65423d5c240388c1594e7b82"],"name":["DANCO Coile... |
Hi there, I am writing some code to resize a borderless form but the results are wrong. I can't find where the problem is |
|mousemove|borderless| |
null |
From my experience, they're not the same.
Generally speaking, System Design referrs to the component side of thigs. System design includes more low-level design diagrams. Diagrams and documentation that is closer to the code. Usually, for smaller applications, having only system design (without "Architecture") might... |