instruction
stringlengths
0
30k
API key 401 error in .env.development file
|javascript|bash|environment-variables|command-line-interface|
null
I am relaying my ssh connection and I want to restrict the ability of the remote user to view my files so I set `umask = 047`. However, it seems to also affect the local user in some way as I can no longer `mkdir` as the local user using either ``` mkdir test ``` or ``` sudo mkdir test ``` both yield `Permissio...
WSL able to touch file but mkdir: Permission denied
|windows-subsystem-for-linux|
i want to integrate cashfree payment gateway in ruby on rails, my project is built on ruby on rails at backend and React.js on froentend help me to integrate cashfree wanted a flow of gateway that 1) user comes click make payment 2) a cashfree window opens where user enter bank detail 3) user can pay through ma...
{"Voters":[{"Id":16217248,"DisplayName":"CPlus"},{"Id":3744182,"DisplayName":"dbc"},{"Id":18157,"DisplayName":"Jim Garrison"}]}
I have been getting this error for a long now when trying to install hadoop on ubuntu.. :~/hadoop$ bin/hdfs namenode -format Unrecognized option: - Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. I tried to format the namenode using the command but ...
Can anyoone help me with this problem while trying to install hadoop on ubuntu?
|ubuntu|hadoop|jvm|hdfs|namenode|
null
Kind of new to user authorization. After a few researches, I have a general idea of access and refresh token design with JWT. However, I still have a few questions: 1, After user signs in, user gets access and refresh token. Eventually, when user sends certain request, say "reqA", access token expires. Then user ne...
About access token and refresh token
|express-jwt|
I have set up a Kubernetes cluster with a single master node and three worker nodes running in VMs. Within this cluster, I deployed an nginx pod and created a LoadBalancer service using MetalLB to allocate an external IP address. The LoadBalancer service is exposing port 80, and when I SSH into the VM hosting the Kuber...
Unable to Access Kubernetes LoadBalancer Service from Local Device Outside Cluster
|kubernetes|metallb|
null
Hi I am trying to upload a row I took from a dataframe and upload it to DynamoDB. I keep getting below error message and it wouldn't get fixed. I tried .astype(int), isinstance and everything I can find and it's still not working. Any thoughts please? Unsupported type "<class 'numpy.int64'>" for value "0"
TypeError trying to upload a row to DynamoDB; Unsupported type "<class 'numpy.int64'>" for value "0"
|amazon-dynamodb|
null
[screen shot](https://i.stack.imgur.com/PJAo9.jpg) Questions: 1. How to edit monitor screen layer separately, which is attached to 1st layer 2. If I tried edit the monitor screen individually background size is fixed so I can make the monitor screen size larger, so how to fix that too?
How to import a local image in vuex store without using axios
|vuejs3|vuex|
null
|c++|templates|visual-c++|
|c|recursion|return|clang|
When using FLATTEN function in Snowflake, we use the values in the PATH column, to dynamically construct a SELECT clause to query the semi-structured (JSON) column in the data table. We concatenate: ``` <variant_col>:<value_in_path_column>, ``` This means we assume the values in the PATH column are to be use...
How to make FLATTEN function in Snowflake return PATH in Dot Notation instead of Brackets Notation
|snowflake-cloud-data-platform|flatten|dot-notation|
null
When using the !! operator in Map Sonar cube issues warning [s6611 "Map" values should be accessed safely][1]. One solution from Sonar is to use getValue, which will throw a NoSuchElementException if the key is not found. val a = mapOf<Int, Map<String, String>>() a[999]!!["x"] // NullPointerExceptio...
Why is NoSuchElementException preferred over NullPointerException when retrieving from a Map?
|kotlin|null|nullpointerexception|hashmap|nosuchelementexception|
I have a C#/Blazor project where i use tailwindcss for the user interface. Visual Studio highlights the @apply directives in the .css files from tailwind as unkown @-blocks. Are there any ways to teach Visual Studio about them, disable this warning or replace @apply by some known directives? Example: ``` table { ...
I thought I could easily display a toolbar in UIKit, but I was wrong, or at least I can't do so without getting "Unable to simultaneously satisfy constraints." console messages. Here is my code: ```swift import UIKit class ViewController: UIViewController { let toolbar = UIToolbar() override f...
|ios|swift|uikit|constraints|uitoolbar|
I had the same problem, it turned out to be some permissions, see [answers here][1] Write in your VS Code terminal or Windows PowerShell: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned or Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted [1]: https...
I need to add the Luxon library to my google sheet script. Where do I find the ID of the Luxon library, or are there other ways? Thank you
How do I add the Luxon library google sheet script
|google-apps-script|luxon|
Say I have a vector of some generic T objects: std::vector<T> vector_of_ts = {...}; That vector is basically a heap-allocated array of T objects, under the hood. Now, say I have the following: std::unique_ptr<T> t = std::make_unique<T>(...); Again, this is a heap-allocated T object under the hood. I...
Can I move a std::unique_ptr<T> into a std::vector<T>?
|c++|move-semantics|
EntityFrameworkCore.DbUpdateException: Unable to delete row, SQL Syntax error
|entity-framework-core|mariadb|asp.net-core-webapi|dbcontext|
Given the invariant that your input string is a valid email address, you could just write: >> "hey@mycorp.com".split("@").last => "mycorp.com"
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...
how to integrate cashfree payment gateway in ruby on rails project
|ruby-on-rails|ruby|payment-gateway|payment-method|cashfree|
null
// Recursive Java program to print lca of two nodes // A binary tree node class Node { int data; Node left, right; Node(int item) { data = item; left = right = null; } } class BinaryTree { Node root; /* Function to f...
My task is to create a tool that, based on (specific) input data, will generate a 'grid' of employees' working hours and spit out specific shifts 6-14; 7-15; 10-20 etc etc. The general operation of such a macro, let's say I have one, the problem begins when the macro must have a requirement that in a given row (the ...
React router dom routing redirect
|reactjs|typescript|react-router|
null
being pretty new to **Scala** can any one please kindly help me with a scenario where I need to get the file with latest modified date. There are two scenarios. consider 2 directories , - **dir1** (which has sub directories and files present inside each sub directory ) - **dir2** (no sub directories but has...
I'm relatively new to using neo4j. I've connected to a database with the py2neo library and populated the database with the faker library to create nodes for Person and Address each with attributes attached to them. I'm interested in creating indexes and testing the performance of different indexes. Before I get to tha...
I'm trying to create a pod that runs Kafka and ZooKeeper and connect to it via Python. However, with my current configuration, I'm unable to send or receive messages from the Python client, although I can successfully connect to the port exposed by Kafka. I'm currently experiencing issues with my pod configuration. I'...
Having a dataset like this: |Index|Role|Name|Grade| |---|---|---|---| |1|Provider|Alex|7| |2|Provider|William|7.5| |7|Provider|Juan|5.5| |15|Provider|Pedro|4.5| |25|Client|George|8| |26|Provider|Mark|9.4| |37|Client|James|8.1| |39|Transporter|Anthony|9.5| |50|Transporter|Jason|7| I'm trying to group the...
Pandas groupby equal consecutive column values based on index
|pdf|
[1]I try to use FocusNode() in TextFormField so it will detect when I focus on the TextFormField, the text above will have it's color changed. But it seems not working, what seems to be the problem? [enter image description here][2] ``` import 'package:flutter/material.dart'; class SignIn extends StatefulWidget {...
In Delphi 7 I have a report written in QuickReport. The report is called by the function from another form ~~~ var RepResult : integer RepResult := ShowReport(param1,param2...); ~~~ The function inside report looks like ~~~ ` var QuickRep1 : TQuickReport; ReportResult : integer; ...
Centering a map element on a generated PDF
I try to use FocusNode() in TextFormField so it will detect when I focus on the TextFormField, the text above will have it's color changed. But it seems not working, what seems to be the problem? [enter image description here][1] ``` import 'package:flutter/material.dart'; class SignIn extends StatefulWidget { ...
it depends on how many bg images you have specified .box { background-image: url(image1.png), url(image2.png); background-color: blue; } in the above there are 3 bg layers
You can use ModuleType: from types import ModuleType a = ModuleType("some") # name of obj a.foo = 123 print(a.foo) print(a.__name__) # some a.__dict__ # {'__name__': 'some', '__doc__': None, '__package__': None, '__loader__': None, '__spec__': None, 'foo': 123} Though name...
`psycopg2.errors.UndefinedObject: operator class "gin_trgm_ops" does not exist for access method "gin"` Hello everybody, this is the whole message when I try to run pytest on my project which is written in Python/Django + db is postgresql and all sitting inside docker. I build a project on docker with django-cook...
operator class "gin_trgm_ops" does not exist for access method "gin"
|django|indexing|pytest|pytest-django|pg-trgm|
null
I am trying to convert string of mathematical expression to lambda function in C++17. How can I do this type of conversion with function? std::function<void()> str2lambda(const std::string& str) { // Conversion // return lambda function } Example: > Input Mathematical function: > ...
what's the meaning of new_image[new_image] in this image img in index what does it mean? and specify what img in index returns my image in this is gray scale [img](https://i.stack.imgur.com/umMGp.png)
null
sorry for maybe the stupid question but can't wrap my head around this one. I want to create a smooth linear plot or a histogram, for my 8 samples looking at the distribution of length of their gene transcription (x axis), and how frequently this length appears in each of the samples (y). I've binned the log10 of...
Excel - Visual Basic, macro with autofill "1"
|excel|vba|
null
Since version 1.17 go no longer loads the entire module graph, but, with the introduced concept of pruned graph, only a part of it. A pruned graph can be viewed using `go mod graph`. However, when I want to see the selected module version within that pruned graph using `go list -m all`, it traverses the entire graph an...
Is there a way to get a list of selected module versions, but only for modules within the pruned graph?
|go|
The list you shared as output is not valid as list cannot be a key value pair. Did you mean this - a dict of dicts? { 1: { "B4": 14, "B5": 12 }, 2: { "B4": 58, "B5": 54 }, } To get that - import json with open(...
You terminate a process by calling [`TerminateProcess()`](https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-terminateprocess). Doing so will terminate the target process if the caller holds sufficient privileges. This works for any process, not just child processes. But befor...
Client-side caching is usually done in memory for speed. If your data can't fit in memory, then you'll need to write it to the local drive or send it to the back-end. Since the local file storage is unavailable in the Unity3D Web Player, you'll have to either send it to some sort of back-end or develop and in-memory...
I'm using the code example by [David Hamrick][1] to monitor a file using GCD. int fildes = open("/path/to/config.plist", O_RDONLY); dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_source_t source = dispatch_source_create(DISPATCH_SOURCE_TYPE_VNODE,...
Background service not starting after device restart in Android
|java|android|broadcastreceiver|android-reboot|
null
I recommend using `usePathname` in `next/navigation`.
I have a page similar to this: File: `[pid].tsx` type ProblemPageProps = { problem: Problem }; const ProblemPage:React.FC<ProblemPageProps> = ({problem}) => { ... return ( <div> <Workspace problem={problem} /> </div> ...
Next.js not updating state on OnClick after router.push
|typescript|next.js|
I tried to simplify your code, and ended up with: import vobject s = 'BEGIN:VCARD\r\nFN:John Smith\r\nN:Smith;John;;;\r\nEND:VCARD' vobj = vobject.readOne(s) vobj.add('bday') vobj.prettyPrint() vobj.bday.value = '1931-02-10' vobj.prettyPrint() which produced: > pytho...
Getting those warnings are completely fine, if you still want to remove it than install [PostCSS Language Support][1] plugin for VSCode [1]: https://marketplace.visualstudio.com/items?itemName=csstools.postcss
There are multiple mistakes in your attempt… Try the following for small screen devices *(I have used a random color that you will replace with the right desired one)*: ``` css /* For larger screens (first) */ .woocommerce-info { background-color: #000000 !important; } /* For smaller screens (after) */ @me...
{"Voters":[{"Id":1940850,"DisplayName":"karel"},{"Id":269970,"DisplayName":"esqew"},{"Id":1599751,"DisplayName":"PeterJ"}]}
I created a short python application in a Google Colab notebook, that works fine. I am trying to move the application from Google Colab into a local Docker-Python-Application. But whenever **I run the application with Docker and do in a .py file** ``` from llama_parse import LlamaParse ``` **My applicatio...