October 23, 2024
Chicago 12, Melborne City, USA
PHP

so I am trying to route gayahidup.blade.php to berpakaian.blade.php but it gives me an error “Undefined variable $berpakaian”

it gives me an error like this and then if you take a look at my code in controller and web.php Route::get('/gayahidup/{id}',[GayaHidupController::class,'showGayaHidup'])>name('gayahidup.show'); Route::get('gayahidup', [GayaHidupController::class, 'index'])->name('gayahidup.index'); Route::get('gayahidup/create', [GayaHidupController::class, 'create'])->name('gayahidup.create'); Route::post('gayahidup/store', [GayaHidupController::class, 'store'])->name('gayahidup.store'); Route::delete('gayahidup/{id}', [GayaHidupController::class, 'destroy'])->name('gayahidup.destroy'); Route::get('/gayahidup/berpakaian/{id}', [GayaHidupController::class, 'showBerpakaian'])->name('gayahidup.berpakaian.detail'); Route::get('/gayahidup/kecantikan/{id}', [GayaHidupController::class, 'showKecantikan'])->name('gayahidup.kecantikan.detail'); Route::get('/gayahidup/traveling/{id}', [GayaHidupController::class, 'showTraveling'])->name('gayahidup.traveling.detail'); Route::get('/gayahidup/kuliner/{id}', [GayaHidupController::class, 'showKuliner'])->name('gayahidup.kuliner.detail'); Route::get('/gayahidup/berpakaian', [GayaHidupController::class, 'berpakaian'])->name('gayahidup.berpakaian'); and if you look my controller

Read More
java

Why static methods with body are applicable in interface, as it defeats the purpose of interface that method without body

Interface face means method without body, then why static methods with body are allowed in interface When static method written with body there is no error, as non static methods with body gets an error It defeats the purpose of abstraction. You need to sign in to view this answers

Read More
python

Issue Displaying All Colors of a Product Variant in Django Template

I’m working on a Django application where I have a Product model with a many-to-many relationship with a Color model. I want to display all colors associated with a product variant on its detail page. However, when I click on a specific color (e.g., white), the page only shows that color instead of all available

Read More
javascript

How to Execute a Javascript Callback based on a Variable or Parameter

I have an array that is passed to React from a Laravel back end, representing columns in a database. I iterate over this array to construct headings for a table. For each column, I want to run a callback function to mutate or transform the corresponding data (of each row) for each column. For example,

Read More
HTML

How to remove styling if the height of the screen less than the element height

I have centered the element by the height of the screen using absolute positioning.However, when the height of the screen is less than the element width, it is cutting the part of the element making its top unreachable. How can I add and remove styling if the height of the screen is less than the

Read More
java

Jenkins agent as kubenetes pods with kubedock to run testcontainers getting connection refused

I have Jenkins pipeline to build and run integration tests which require docker environment to run testcontainers that create Mysql database in Kubernetes with Kubedock. Jenkins agent pod and Kubedock pods are getting created successfully however test are failling with the connection error below. [GIN-debug] Listening and serving HTTP on :2475 I1017 06:23:48.773547 1 main.go:66]

Read More
python

python. kafka raft connect to controller

I want to connect to kraft controller on port 9093 (non broker). And I can’t to connect code example: #!/usr/bin/env python3 from confluent_kafka.admin import AdminClient import json import os credentials="credentials/example.json" with open(credentials, 'r') as json_file: data = json.load(json_file) conf = { 'bootstrap.servers': 'kafkacontroller1.example.com:9093', 'security.protocol': 'SASL_SSL', 'ssl.ca.location': os.path.abspath('./credentials/example/ca_cert'), 'ssl.certificate.location': os.path.abspath('./credentials/example/ca'), 'ssl.key.location': os.path.abspath('./credentials/example/ca_key'), 'ssl.key.password': data['SSLKeyPassword'], 'sasl.mechanism': 'PLAIN',

Read More
javascript

Google Apps Script – missing e.postData and BLOB parameters

Could not find any info on my problem below – so posting. I am uploading a BLOB to a google-apps-script webapp – code and log below. e.postData is missing on the webapp doPost(e) e.parameter.**NewsFile** is missing the e.contentLength indicates the data is received – checked with 1Mb BLOB the client side formdata indicates NewsFile is

Read More
HTML

Input number does not respect step

the input is always showing 4 decimal places. Is there a way to limit it to 2? I’ve tried doing a math.round at the database, I’ve tried using formatting of f2, it does not seem that anything I try will get the thing to limit to 2 decimal places. @page "/" <h1>Counter</h1> <p>Current count: @currentCount</p>

Read More
java

Create JSON request payload from extracted values inside ForEach controller

I have a list of countries using them I created my var_ variables to be used in ForEach loop controller For Each Loop – Output variable countryName Inside the ForEach loop controller – I have a JSON Extractor which is fetching the countryId,CurrencyId,countryCode on the basis of countryNames(output variable) I want to create my JSON

Read More