instruction
stringlengths
0
30k
What should the fct entry defining aix in vsam look like? I searched online but couldn't find any explanation.
I want to restrict my application to only support "string" type values for json configuration. Json schema by default supports a set of datatypes such as integer, boolean, etc however, the parsing logic in my application only supports string values. How do I make sure the schema does not define a property of any ty...
How to restrict json schema to not support a particular data type
I know how to style a checkbox using the `:checked + label` method. But this only applies if the label is independant of the input <label>Label</label> <input type="checkbox" /> Is it possible to do the same level of styling if the input is wrapped in the label? <label> label <i...
Styling checkbox when input is inside the label
|css|input|
I have a dataframe with two integer columns: ```python data = [("A",1, 5), ("B",3, 8), ("C",2, 7)] df = spark.createDataFrame(data, ["type","min", "max"]) ``` I'm trying to use `random.randrange(start,stop,step)` to generate random numbers within the min/max range provided by the columns for each type and (obvi...
How to generate random numbers within a range defined by other columns
the gulp-pug doesn't work and say unexpected token "indent" see the images below [gulp code and nodejs command prompt](https://i.stack.imgur.com/E8H8P.png) [index.pug and nodejs command prompt](https://i.stack.imgur.com/EoYtr.png) [package.json and nodejs command prompt](https://i.stack.imgur.com/PNPf9.png)...
The core problem is that **you cannot *directly* capture an *elevated* process' output streams from a *non-elevated* process**. This constraint, as reflected in the .NET APIs and as detailed below, *may* come down to a security-minded constraint at the _system_ level. In .NET terms, setting `.UseShellExecute = true`...
When runnin the following code: trying to learn from this post (https://thetechbuffet.substack.com/p/evaluate-llms-with-trulens?utm_source=profile&utm_medium=reader2) from trulens_eval import TruCustomApp tru_rag = TruCustomApp( rag, app_id="RAG-einstein:v1", feedbacks=[ f_groundedness, ...
I am trying to create a k8s cluster using Google Compute Engine, Terraform, and Ansible. I created three vms through terraform and installed docker and kubernetes on them through Ansible. I want to use Calico as a network add-on. I received connection refused error on 6443 port everytime. After some debugging I found t...
Kubernetes cluster on GCE connection refused error
|kubernetes|google-cloud-platform|ansible|google-compute-engine|calico|
Ruby newbtard here... I have an csv file (logevents.csv) that has a "message" column. The "message" column contains rows of json data. Using Ruby, I'd like to convert the json data's name:value pairs to columnname:rowvalue in a 2nd csv file. Here's the 1st row of the csv file: message "{""version"":""0"",""id...
discord.py discord-slash import
|python|discord|discord.py|
null
# Initialization Process Requires Forking systemd waits for a daemon to initialize itself if the daemon forks. In your situation, that's pretty much the only way you have to do this. The daemon offering the HTTP service must do all of its initialization in the main thread, once that initialization is done and the...
How can I optimize this transposition table for connect 4 AI?
|go|hashmap|bitboard|
This is the script to run typescript project: node --require ts-node/register --loader=ts-node/esm --trace-warnings ./src/home-client.ts With pm2, I tried: pm2 start ./src/home-client.ts --node-args="--require ts-node/register --loader=ts-node/esm --trace-warnings" Logs display an error: `0|home-c...
**You are trying to add a class to an element based on the value of a range slider. there are a couple of issues in your code.** 1. The mousemove event is not suitable for detecting changes in the value of a range slider. you should use the input event. 2. The condition if (this.value == "1", "2", "3", "4", "5") ...
java activity ``` public class MainActivity extends AppCompatActivity { ActivityMainBinding binding; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); binding = ActivityMainBinding.inflate(getLayoutInflater()); setContent...
Can defer recover prevent mutex Unlock?
|go|mutex|
I've just installed Wordpress 6.4.3 & MAMP and managed to edit functions.php and saved my changes. Twenty Twenty-Four: Theme Functions (functions.php) 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 be...
You need to run at the end of each day a function that protects that day's sheet. To automate that, add a [time-driven trigger](https://developers.google.com/apps-script/guides/triggers/installable#time-driven_triggers) and set it to fire at 23:00 hours. The code to protect the current day's sheet could look like th...
I am confused about do I need to set environment variables after installing openjdk from ***sudo dnf install java-latest-openjdk-devel.x86_64*** as the fedora documentation doesn't provide any clarification about it. Please help! I installed the openjdk from the it's official repository now I am confused whether to ...
About installing openjdk on Fedora workstation
|java-11|
null
This bug was [fixed in CU1][1]: > 2081891 : Fixes an exception that occurs when `JSON_ARRAY`/`JSON_OBJECT` return values are used in a parameter in functions that take strings. After you apply this fix, return values of `JSON_ARRAY` and `JSON_OBJECT` are made coercible and can be used as string parameters. So I *...
I am trying to display my post on my home page. But i get an error "NameError in Home#index". Here is the code - i am new to coding so the code my look wierd. I have tried to use Chatgpt and nothing seem to help. Does anyone have any suggestions? before_action :set_stories Home Controller: def...
I noticed that ffmpeg algorithm does not always select the video with best video *and audio* quality For example, consider following HLS playlist (based on a real-world example I encountered): ``` #EXTM3U #EXT-X-VERSION:4 #EXT-X-MEDIA:URI="audio_64.m3u8",TYPE=AUDIO,GROUP-ID="6",NAME="audio 0",DEFAULT=YES,AUT...
I am creating a memoization example with a function that adds up / averages the elements of an array and compares it with the cached ones to retrieve them in case they are already stored. In addition, I want to store only if the result of the function differs considerably (passes a threshold e.g. 5000 below). I ...
crash app when lisnener setOnClickListener
|java|android|
null
My script add fields to a pointlayer. This happens while iterating a polygon layer. For each feature I look for the closest point from a dataset. This point gets written to a pointlayer (REL_LAWIS_profiles). Code: ``` ## D.4 Write LAWIS snowprofile layer lawislayer = QgsVectorLayer('Point?crs = epsg:4326', 'lawispr...
I just created my first Next JS 14 App with App Router v4 authentication and authorization. I was so proud, too, everything works great! There is just one caveat I cannot seem to solve: Server Actions. They are supposed to replace API routes, making things a lot smoother and easier. They do work perfectly, but t...
Include additional options when initializing the app. You can find the necessary keys in the Firebase console under project settings. Future<void> main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp( options: FirebaseOptions( apiKey: 'your_api...
{"Voters":[{"Id":14732669,"DisplayName":"ray"},{"Id":988169,"DisplayName":"pkc456"},{"Id":2422778,"DisplayName":"Mike Szyndel"}],"SiteSpecificCloseReasonIds":[18]}
{"Voters":[{"Id":23899445,"DisplayName":"Tanisha Sharma"}]}
I have a table in Supabase which has reported_location column. I want to listen to inserts in Flutter within a given radius. I am using the code below but it isn't working. late RealtimeChannel _violationsListener; void subscribeToViolations(LatLng userLocation) { const radius = 10000; // 1...
Listening to table inserts in supabase within radius of user location in Flutter
|supabase|supabase-flutter|supabase-realtime|
I have implemented till Statements and State in Tree Walk Interpreter. I am pissed with an error. Can you please help me fix this : > > print 5 + 4; [line ] Error at 'print': Expect expression. Exception in thread "main" com.piscan.Zealot.Parser$ParseError at com.piscan.Zealot.Parser.error(Parser.java:131) at com.p...
I would go for a **lookup array** instead of programming edge-cases. The reason for this is that when there are edge cases in data handling, you have to see if you can also solve it dynamically. So don't program it in the code. Should (multiple) edge-cases be necessary in the future. You could also save the lookup ...
i have this page component for each product information: ``` export default function Product() { const { data } = useContext(ShopContext); const { id } = useParams(); if (!data) { return <div>Loading product...</div>; } const product = data.find((item) => item.id === Number(id)); retu...
Protect Server Actions with Next Auth in Next JS 14
|next.js|server|authorization|action|next-auth|
null
I am trying to create custom video controls for my react native app but it seems like I am missing something. Currently only the pause/play functionality work. The fast forward/ rewinding and slider don't work. Here is the code for the pause and play functionality that works. ``` const togglePlayPause = async () =>...
What I'm I doing wrong with my custom video controls
|javascript|react-native|video-capture|
null
Just wait a little bit, generally, it takes time as there will be too many things to analyze.
currently I doing a mobile app using flutter as frontend and laravel php as backend, usually i need to serve and open xampp to use the local api and database, so what if I dont want locally anymore, buy a server right? any server suggestion for this kind of situation and how to configure that, this is my first time mak...
Deploy Flutter and Laravel php mobile app on the host server
|php|laravel|flutter|server|host|
null
I'm very new to the ways of Minecraft modding for forge 1.20.1, and I've been using the tutorial by Kaupenjo for guidance. I've created 1 item and 1 creative tab and they both do in fact appear in the game when I run the test client; however I encountered bugs such as the item being untextured and the tab still having ...
Changes made to forge minecraft mod not appearing in test client
|java|minecraft-forge|
null
This is the original data that I want to edit - ``` "Languages" : [ "English", "French" ], ``` And this is what I want to achieve by inserting the data such that it will leave 2 null values if there is empty spaces when entering the data at position 5 and if there is only 1 empty space then it should on...
I have implemented till Statements and State in Tree Walk Interpreter. I am pissed with an error
|java|compiler-construction|crafting-interpreters|
null
I am tryin to use the EMR studio workspace (notebooks) with EMR serverless application but it give me this error when I go to select the kernel (like python3). I have explored all the docs on the polices and trust polices but I don't understand why I am getting this error as a root user. [Error when selecting kernel...
I am trying to use the EMR studio workspace (notebooks) with EMR serverless application but its giving me this error when I go to select the kernel (like python3). I have explored all the docs on the polices and trust polices but I don't understand why I am getting this error as a root user. [Error when selecting ke...
**TL;DR** ```python pl_series = [pl.Series(name, values) for name, values in zip(features, shuffle_arr.T)] X_train_permuted = ( X_train_permuted.with_columns( pl_series ) ) ``` ----- Let's work with a simple example. **X_train_permuted** ```python import polars as ...
Steps to fix **[error 2147942402 (0x80070002) when launching `ubuntu.exe']** :- Step 1 : Open command prompt. Then click on down arrow button then click on settings. [enter image description here][1] Step 2 : Select Ubuntu from left panel. Click on Command line option. [enter image description here...
I've been working on a python discord bot and wanted to containerize it, which has worked pretty well, but while testing one of the features (bot -> open API) via HTTPS I'm getting the following error: `ssl.SSLError: Cannot create a client socket with a PROTOCOL_TLS_SERVER context (_ssl.c:811)` I've read various ...
Docker container unable to make HTTPS requests to external API
|python|linux|docker|
null
I am stuck. Newb to go and client-go. As an exercise I am trying to emulate this script which summarizes statuses of pods that are not running by namespace and reason. ```sh kubectl get po -A --no-headers | awk ' BEGIN { SUBSEP=" " format = "%-20s %20s %5s\n" printf format, "NAMESPACE", "STA...
How to define AIX(alternate index) in CICS FCT entry?
|aix|cics|vsam|
I need a brazilian programmer to develop a circular supply chain using system dynamics in anylogic for my TCC. If anyone knows who already does this kind of work with a good price, please let me know. I am no good at programming, and as I am close to my due date, I need help on the programming side, so I can conclu...
How to simulate a circular supply chain using SD in anylogic
|anylogic|logistics|systemdynamics|
null
I came across this problem. The question was: Will this code compile successfully or will it return an error? ``` #include <stdio.h> int main(void) { int first = 10; int second = 20; int third = 30; { int third = second - first; printf("%d\n", third); } printf("...
Why will this code compile although it defines two variables with the same name?
I am trying to perform Kafka and Spark Streaming in colab, using the movielens 1m dataset. ([Download Here](https://files.grouplens.org/datasets/movielens/ml-1m.zip)) I am having trouble with the .readStream function when reading data from kafka into my spark session, particularly at the `.load()` line: ``` # Re...
Troubleshoot .readStream function not working in kafka-spark streaming (pyspark in cilab notebook)
|pyspark|apache-kafka|bigdata|google-colaboratory|spark-structured-streaming|
null
I'm attempting to display a list of movies on a website using Jinja2 (a template engine for Python) and Bootstrap (a front-end framework). However, I'm having difficulty getting the movie cards to display correctly.When trying to display the movie cards using Jinja2 and Bootstrap, the cards aren't being displayed as ex...
To animate anything in after you can simply use .loading::after{ content:''; display:inline-block; width:50px; height:50px; background-image:url('https://picsum.photos/id/63/50/50'); } .loading.rotate::after{ animation: rotation 2s infinite linear; } ...
|c|scope|
How do I add WebSocket middleware with database connection to ASP.NET application?
|asp.net|.net|websocket|middleware|
The `wrapper` returns functionality that you need to use first before you can access the store. You are passing `wrapper` directly as the `store`. See [wrapper usage][1]. * Using the `useWrappedStore` hook: ```jsx import { Provider } from 'react-redux'; import { wrapper } from '../store/store'; ...
Hello fellow programmer. I think this recursive function could work in your favor: function Convert-XmlElementToList { param ( [System.Xml.XmlElement]$xmlElement ) $result = @() # Recursively process child elements foreach ($childNode in $xml...
I think the first question you should is answer is: > *Am I going to do this myself or am I going to hire somebody to help me?* This choice will, to some extend, determine the other choices you have. If you do hire a professional, then I would suggest to discuss these things with that person. It can be hard to find ...
```none /Users/macbookair/apps/ussd/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:55 throw new Error(`Please install ${moduleName} package manually`); ^ Error: Please install mysql2 package manually at ConnectionManager._loadDialectModule (/Users/macbookair/apps/ussd/node...