عالیه 🌟
خب حالا برات یک نسخه طلاییتر و تزئینیتر آماده کردم. همین کار قبلی رو انجام بده (کپی → ذخیره بهصورت flag.html
→ باز کن با Chrome).
<!doctype html>
<html lang="fa">
<meta charset="utf-8">
<title>پرچم هنری شیر و خورشید</title>
<body style="margin:0;display:flex;justify-content:center;align-items:center;height:100vh;background:#fdf8e6">
<svg viewBox="0 0 700 450" xmlns="http://www.w3.org/2000/svg">
<!-- پسزمینه با قاب طلایی -->
<rect x="10" y="10" width="680" height="430" rx="20" fill="#fff8dc" stroke="#b8860b" stroke-width="12"/>
<!-- خورشید با پرتو -->
<circle cx="180" cy="200" r="70" fill="#f6d36b" stroke="#b8860b" stroke-width="5"/>
<!-- پرتوهای ساده -->
<g stroke="#d4af37" stroke-width="6">
<line x1="180" y1="100" x2="180" y2="40"/>
<line x1="180" y1="300" x2="180" y2="360"/>
<line x1="80" y1="200" x2="20" y2="200"/>
<line x1="280" y1="200" x2="340" y2="200"/>
<line x1="120" y1="120" x2="80" y2="80"/>
<line x1="240" y1="120" x2="280" y2="80"/>
<line x1="120" y1="280" x2="80" y2="320"/>
<line x1="240" y1="280" x2="280" y2="320"/>
</g>
<!-- بدن شیر -->
<rect x="320" y="230" width="200" height="70" rx="20" fill="url(#gold)" stroke="#8c6b00" stroke-width="5"/>
<!-- سر شیر -->
<circle cx="520" cy="230" r="40" fill="url(#gold)" stroke="#8c6b00" stroke-width="5"/>
<!-- دم شیر -->
<path d="M320 250 q-60 -20 -80 40 q20 50 80 30" fill="none" stroke="#8c6b00" stroke-width="8" stroke-linecap="round"/>
<!-- شمشیر -->
<line x1="420" y1="230" x2="420" y2="100" stroke="#c0c0c0" stroke-width="12"/>
<circle cx="420" cy="90" r="10" fill="#d4af37" stroke="#8c6b00" stroke-width="3"/>
<rect x="400" y="220" width="40" height="12" rx="4" fill="#d4af37" stroke="#8c6b00" stroke-width="3"/>
<!-- تعریف طلایی -->
<defs>
<linearGradient id="gold" x1="0" y1="0" x2="1" y2="1">
<stop offset="0%" stop-color="#ffd700"/>
<stop offset="50%" stop-color="#daa520"/>
<stop offset="100%" stop-color="#b8860b"/>
</linearGradient>
</defs>
</svg>
</ flag.html میخوای بعد از این نسخه
Me - Prior Cascadia font problem. Windows 10, the newer devices interface to "font" , any interaction with Cascadia just crashes setup. Many random keystrokes on my part on clearing fonts, initially from c:\Windows\Fonts & later from c:\Users\..\AppData\Local\Microsoft\Windows\Fonts ( files open by foo , at one point I couldn't even find what had my file open, the tool I was using unhelfully said "the system" and/or some other fairy that isn't a real thing. Symptom: Windows 10. Fresh install of vs2022 "free version", on a system that has had vs before , that does have vscode , that does have microsoft terminal, most likely way of removing stuff is via the BCU tool. I load vs2022 c/o I happen to like the interface to Anaconda Python install c/o the way it interacts with the standard Python debugger. ( I ask ChatGPT to write some code, my prose is very long, prior art - I have zero expectation of the code presented doing what I want & if I debug by "print to stdout", I will get bored very quickly. What I get is vs being able to run a python script but the editor just isn't , nothing displayed, no ability to edit, just a tab saying my python file name and a message saying Cascadia Code isn't being used .. and a fib that some other font is being used. ( I don't remember the other font ). Google -> no clues. ChatGPT - a whole bunch of suggestions, all could be genuine, none got me any further. So ... interaction with settings and Cascadia Code crashed settings , any attempt to reinstall italic variants of Cascadia appeared to go into infinite loops ~ leave settings @ 100% of a single thread, go for coffee, go to the shops, come back , still 100% of a single CPU , force a stop of settings, repeat , pull hair out ..
If you see similar error when using async aiokafka
:
RuntimeError: Compression library for lz4 not found
Install those two packages: pip install lz4 cramjam
For details see here:
https://github.com/aio-libs/aiokafka/blob/master/aiokafka/codec.py#L29
We can simply use the command-update method to do this. This is the basic example how it can be implemented.
from langgraph.types import Command
@tool
def send_otp(
phone_number: str,
tool_call_id: Annotated[str, InjectedToolCallId],
) -> Command:
"""Send OTP to the (already validated) phone number."""
logger.info("-----------------------------------send_otp-----------------------------------")
formatted_number = phone_number
otp_code = OTPService().generate_otp()
# In production, actually send SMS here:
# OTPService().send_otp(formatted_number, otp_code)
payload = {
"otp": otp_code, # stored in state; avoid showing to user in production
"phoneNumber": formatted_number,
"message": f"OTP sent successfully to {formatted_number}. Please check your phone.",
}
logger.info(f"Send OTP tool payload: {payload}")
return Command(
update={
"otp": otp_code,
"phoneNumber": formatted_number,
"messages": [
ToolMessage(content=json.dumps(payload), tool_call_id=tool_call_id)
],
}
)
Refer to this documentation to understand more: https://langchain-ai.github.io/langgraph/how-tos/tool-calling/#short-term-memory
From https://github.com/puppeteer/puppeteer/issues/2685#issuecomment-643573422
await page.addStyleTag({
content: `
html {
-webkit-print-color-adjust: exact !important;
-webkit-filter: opacity(1) !important;
}
`
});
I would like to know how to work with LocalDate LocalTime
@JsonFormat(pattern = "yyyy-MM-dd")
private LocalDate dataDetencao;
@JsonFormat(pattern = "HH:mm:ss")
private LocalTime horaDetencao;
My anser might come in a bit late, but just in case anyone else runs into the same issue...
Outbound SMTP connections are blocked on Railway. They recently changed this and SMTP is only available for pro plans and avobe.
Seems like the difference is only in syntax [source]:
PySpark and pandas on Spark both have similar query execution models. Converting a query to an unresolved logical plan is relativpandas API on Sparkely quick. Optimizing the query and executing it takes much more time. So PySpark and pandas on Spark should have similar performance.
The main difference between pandas on Spark and PySpark is just the syntax.
After reading the comment of mklement, I created the following working code:
powershell -Command ^
$COMPORT=(Get-WmiObject Win32_SerialPort ^| Select-Object Name, DeviceID ^| ^
Where-Object { $_.Name -like 'USB Serial Device*' } ^| Select-Object -ExpandProperty DeviceID); ^
Write-Host \"Using COM port:[$COMPORT]\"; Start-Process -Wait -FilePath putty -ArgumentList ^
\"-serial $COMPORT -sercfg 9600,8,n,1,N\""
No, It only creates a reference of the object, you can see the official documentation referring that here.
This matches your earlier intuition, modifying keyObj
(e.g., changing its properties) will still allow you to retrieve the associated value since it's the same object reference.
Recover from any investment platform, recover from any fraud, hack cash app, recover from dating scam.
Have you ever been tempted to get involved in binary options? Have you had a bad experience? Have you been scammed?
Binary options trading scams are very frequent and binary options loss recovery can be difficult but not impossible. Get in touch with Ethical Recovery service via telegram: (web3ethicalrecovery) and recover your funds.
@Bright Ran
I hope you're still around, cus I cannot for the life of me get variable replacement to work with my .json file:
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"MailerLogging": {
"Verbose": false
},
"MailerSettings": {
"Name": "",
"Port": "",
"KeyVaultName": "",
"AppID": "",
"TenantID": "",
"ClientSecret": ""
},
"AllowedHosts": "*"
}
My variables:
variables:
MailerSettings.0.Name: '${{ parameters.customer }}'
MailerSettings.0.Port: '3525'
MailerSettings.0.KeyVaultName: 'KV-Mailer'
MailerSettings.0.AppID: '${{ parameters.customer }}-AppID'
MailerSettings.0.TenantID: '${{ parameters.customer }}-TenantID'
MailerSettings.0.ClientSecret: '${{ parameters.customer }}-ClientSecret'
My filetransform@2 task:
- task: FileTransform@2
displayName: 'File Transform for Mailer'
inputs:
folderPath: '$(Pipeline.Workspace)/${{ parameters.repo }}_${{ parameters.customer }}_preConfig'
fileType: 'json'
targetFiles: '**/appsettings.json'
enableJsonFileTransformation: true
I've tried (i feel like) all the different formats of variables I could find online and by asking copilot in vscode. Nothing works, all I get is "##[warning]Unable to apply transformation for the given package - Changes are already present in the package."
I have confirmed that the paths are right and that the .json is present. I hope someone sees this and can assist me with what I' am doing wrong.
No, you cannot skip a build stage in AWS CodePipeline directly.
But here’s what you can do:
Use a condition: You can add a rule (like a check using AWS Lambda) to only run the build if needed. For example, run the build only when certain files change.
Use different pipelines: You can create separate pipelines for different tasks, so you don’t always run the build stage.
Make the build optional (in a way): You can change the build action to just pass or do nothing if certain conditions are met.
Also you can visit DevOps with AWS institute if you want proper path .
just ignore it it's issue because of the server and you shouldn't care about it
I ended up using VS Code to connect to my other Mac using ssh to code with. When you run the nvg run
from the embedded terminal, it will automatically forwarded the port 8080 back to my local machine.
Easy.
sudo chmod +x /path/to/yourfile.py
I usually do the following for merging master branches of two repositories into the one:
git remote add origin2 ../relative-or-absolute-path-to-other-repo
git fetch origin2 master
git merge origin2/master --allow-unrelated-histories
git remote remove origin2
Clean ur browser and try again
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