I tried lot of other steps, but below solved my problem
python -m pip install pip-system-certs --use-feature=truststore
did you figure out a solution to this issue?
Instead of using sandbox domain name use api.wise.com. So the correct version of endpoint is https://api.transferwise.com/v1/transfers
For anyone that comes to this post:
Microsoft had changed the default behavior description in "For each" loops but it doesn't seem like its implementation had changed.
I had the same exact problem as @Hugo and noticed that my "for each" had the following settings:
I suspected that it wasn't running sequentially as in each iteration my object was always with no property set. So I forced a concurrency control with only one degree of parallelism.
If what you shared is a working example, then, you could do:
# wait for the old message to be unloaded
expect(old_message_element).toBeHidden()
then continue with what you wrote:
answer_input = page.locator("#message textarea[name='answer']")
....
Have you had a chance to review the Stripe guide on resolving signature verification errors? Additionally, it would be helpful to log the payload and the headers of the requests you receive. If you haven't done so already, logging these values can help identify any discrepancies that might be causing the signature verification errors.
For your reference, here’s the relevant link to the guide:
Replace <cmath> with <math.h> in all files. <cmath> is only in C++.
Additionally, compile with /TC for C files & /TP for C++ files.
Use this library, it is a helper model of openpuxls that has all the styles very easily, be sure to visit it pip install excelstyler
Don't use cascading deletes ever.
I had to do a nested query and cast entry_date as an INT64 twice. If I didn't the message would read "No matching signature for function TIMESTAMP_SECONDS Argument types: FLOAT64 Signature: TIMESTAMP_SECONDS(INT64) Argument 1: Unable to coerce type FLOAT64 to expected type INT64."
The code is below.
select
individual,
date(TIMESTAMP_SECONDS(entry_sec)) as entry_date_converted
from(
select *,
cast(cast(entry_date as int64)/1000000000 as int64) as entry_sec
from table
)
Sub SaveNewWorkbookAs()
Dim wb As Workbook
Dim filename As String
filename = "C:\Temp\MyFile.xlsx"
Set wb = Workbooks("Book1") ' or ActiveWorkbook
wb.SaveAs filename:=filename, FileFormat:=xlOpenXMLWorkbook
End Sub
try this does it work?
Try this, does it work for you?
Sub SaveAsFile(filename As String)
Dim wb As Workbook
Set wb = ActiveWorkbook ' or Workbooks("Book1")
wb.SaveAs filename:=filename
End Sub
I tried this and still does not work.
"departureDate": ("2024-12-24","2025-04-12")
Amadeus error 500:
{
"errors": [
{
"code": 38189,
"title": "Internal error",
To paste in column mode is not natively available in VSCode as of today [Version: 1.103.0 (Universal)]. In Mac, the shift + option doesn't work too. The Column Paste extension does this well.
This is not on a per request basis, but per connection ... within the configuration block of the connection - faraday.response :raise_error, include_request: true
// build dynamic list whose elements are determined at run time
val myList: List<Float> = buildList {
add(1f)
// add computed items
//TODO:
}
Immutability in Dart data classes is known as final
This class is immutable, why? After declaring the class you won't be able to change it's variables again.
class User {
final String name;
final int age;
const User(this.name, this.age);
}
Bonus:
If you want the other methods that are normally included automatically in a language such as toMap, toJson, fromJson, fromMap , toString etc. You can also use code generation to get them with this extension:
https://marketplace.visualstudio.com/items?itemName=hzgood.dart-data-class-generator
I don't know what type of operation you are doing, but in all my web scraping operations I like to use Selenium Undetected, sometimes what may be happening is that the bot or algorithm detected your actions, do this test
AWS App Runner, when connected to a VPC via a VPC connector, still sends outbound traffic from its own managed ENI in App Runner’s underlying VPC, not through your NAT Gateway. Even though Nat Gateway setup works for Lambda, App Runner does not route traffic through it, so your EIP isn’t the source on the public side.
This is by design, App Runner does not honor the NAT Gateway for outbound.
Reference: https://aws.amazon.com/blogs/containers/deep-dive-on-aws-app-runner-vpc-networking/
Currently, App Runner does not support outbound static IP via NAT Gateway.
Or open a feature request with AWS for adding this functionality.
I have the same issue, and the answer is to stop the Services below in your system
SQL Server (MSSQLSERVER)
SQL Server Agent (MSSQLSERVER)
Now it will work.
System.Drawing.Bitmap is exceedingly not threadsafe. Even something simple like reading the "Width" property of a Bitmap will make API calls into GDI plus, and can cause GDI plus internal errors. If you need to use Bitmap in a multithreaded way, you need to wrap literally everything behind a global lock. Any method call (including static methods) or property access will require a lock, otherwise you could randomly encounter a GDI plus internal error or access violation.
Meanwhile, access to the properties of a BitmapData object (created by using LockBits) is threadsafe. If you read the properties Width, Height, Scan0, Stride, or PixelFormat, it does not make any function calls into GDI plus, instead it just reads a private field, so the properties are threadsafe. But using BitmapData still relies on the use of pointers, requiring unsafe code.
Update:
This is the right syntax for the return which will tell the value of the parameter:
e.commonEventObject.parameters
And correct syntax for the function:
function buildCategoryCardV2(categories) {
const buttons = categories.map(category => ({
text: category,
onClick: {
action: {
"function": "handleCardClick",
"parameters": [
// Pass the variable's value as a parameter
{ "key": "categoryPressed", "value": category }
]
}
}
}));
const card = {
cardId: 'category_selector',
card: {
name: 'Category Selector',
header: { title: 'Inventory Request', subtitle: 'Please select a category' },
sections: [{ widgets: [{ buttonList: { buttons: buttons } }] }]
}
};
return card;
}
Can be done, add module-alias:
npm install --save-dev module-alias
Register your aliases in package.json, using property _moduleAliases:
{
"name": "playwright-alias",
"version": "1.0.0",
"description": "Show how to use aliases with Playwright ",
"main": "index.js",
"author": "Borewit",
"type": "commonjs",
"devDependencies": {
"@playwright/test": "^1.54.2",
"@types/node": "^24.3.0",
"module-alias": "^2.2.3"
},
"_moduleAliases": {
"@cy": "./cypress",
"@": "./aliased"
}
}
This file (based on the scenario in the question) we will alias aliased/utils/date-utils.js:
export function formatDate() {
return 'aliased';
}
Testing the alias @ (tests/alias.spec.js):
import {expect, test} from "@playwright/test";
import { formatDate } from '@/utils/date-utils.js'; // Aliased import
test('alias', async ({ page }) => {
expect(formatDate()).toBe('aliased');
});
Full source code: https://github.com/Borewit/playwright-alias
You can get this to work more easily by nesting the if function in Google sheets.
For this example, you can put this formula into cell d2 =if(C2<>true, "",if(D2="",Today(),D2))
This formula checks if C2 has been checked. If it hasn't been checked, D2 remains empty. If C2 has been checked, then it looks if there's already a value in D2. If there is not a value in D2, it returns today's date. If there is a value in D2, it returns the value that's already there (the date the box was checked).
Note, you need to turn on iterative calculations in file->settings->calculations and set it to on with at least 1 calculation.
defaultConfig {
applicationId = "com.example.test_application_2"
minSdkVersion = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
In your code, there isn't a = after minSdk
This diagram illustrates the interactions between different actors (users) and the system itself.
Actors:
Customer: Represents a user who browses products, adds them to a cart, and makes purchases.
Administrator: Represents a user who manages products, users, and orders.
Payment Processor: An external system that handles payment transactions.
Use Cases: These are the actions that the actors can perform.
View Products: Allows customers to browse the product catalog.
Add to Cart: Allows customers to add products to their shopping cart.
Checkout: The process of purchasing the items in the cart.
Manage Products: Allows administrators to add, update, and remove products.
Manage Users: Allows administrators to manage customer accounts.
Process Payment: A use case for handling the payment.
Include: An "include" relationship indicates that one use case's behavior is included in another. In this diagram, Checkout includes Process Payment. This means that processing a payment is a mandatory part of the checkout process.
Extend: An "extend" relationship shows that one use case provides optional functionality to another. Here, Add to Cart is extended by Apply Discount. A customer can add an item to their cart without applying a discount, but they have the option to do so.
Generalization: This relationship shows that one use case is a more specialized version of another. In this example, Pay by Credit Card and Pay by PayPal are specializations of the more general Process Payment use case.
Constraints: A constraint is a rule that must be followed. In this diagram, a constraint is placed on the Checkout use case: {must be logged in}. This means a customer must be logged into their account to complete the checkout process.
Hello, it was great, PHM la.
My problem was solved with your solution, thank you. I don't know, my friend
sleblanc says that changing the range solved the problem, I tried a lot, but it didn't work.
Thanks again, PHM la.
The official core package collection has a compareNatural function that fits for this purpose.
It compares strings according to natural sort ordering.
Yes, you're tracking them by adding those properties. They won't appear in the GA4 UI anywhere unless you add them as secondary dimensions, but when you do they'll be available.
I think the best way is to just re-download Python Interpreter.
It’s really the simplest way to return everything back.
Spring 7 prefers NullAway over the Checker Framework because it’s much faster, lighter, and integrates smoothly into builds, giving developers quick feedback with minimal annotation overhead. The Checker Framework is more powerful but slower and heavier, which hurts productivity on large projects like Spring.
I would also add, to the comment on the generality of the answer, that it might be a good idea to have a space for Clarity lang users to share best practices and design patterns. For example, I guess the OP might have wanted to know how to efficiently search or sort a list in Clarity. These are actually features that the language could include as magic functions (implemented in Rust).
# git ignore MacOS specific files
git config --global core.excludesfile ~/.gitignore_global
echo .DS_Store >> ~/.gitignore_global
In the newer version of react-player,they are using src as a prop instead of url. So, use src, it may help you to solve the issue.like, <ReactPlayer src='https://www.youtube.com/watch?v={video ID}' \> or check the official documentation.
Spring chose NullAway because it’s lightweight and integrates easily into large builds. It only checks for nullness, so it runs much faster than the Checker Framework and doesn’t add much overhead during compilation. That’s a big deal for a project the size of Spring where build times matter.
The Checker Framework is more powerful and can enforce stricter guarantees, but it requires more annotations, has a steeper learning curve, and is noticeably slower. On top of that, the current JSpecify annotations fit naturally with NullAway, while support in Checker Framework is less complete (for example, locals).
So it’s mainly a trade-off: Spring doesn’t need the full power of Checker Framework, but it does need something consistent, fast, and aligned with JSpecify.
I'm thinking of using one of these solutions for my long nexus modlist Downloader, I was struggling with limiting to number of jobs at once but that seems answered here. I do have a question though, say I want 4 threads or jobs going at once, how can I have it so if one finishes another will start so its always 4 running until finished?
Right now I'm using chunks and it seems to finish all before starting any new ones. Here's my script for reference
I don't' think the popular geometric shadowing terms behave correctly with negative numbers. It's typical to clamp the ndots before passing them to the geometry terms, but geometry doesn't just go away because it goes into shadow. It' better to make the geometry functions work correctly with negative numbers. What I did was just save the sign of the ndot inputs and then work on the abs of them. Then restore the sign at the output. Simple but effective.
The best practice would be to use a virtual environment (e.g. conda, pipenv etc.). This way you can delete the environment and create it from scratch in case of breaking modifications.
Hi did you solve it? if yes, Could you provide the solution?
The key issue was that siteRepo.getOne(SITE_ID) was returning null because the mock wasn't properly configured or the argument matching wasn't working correctly.
You can find MAX from x y z of light->pixel vector. Next for example, if MAX is X - divide vector on this scale (vec / x), next change other 2 values (y z) on offset components (j, k): y += j, z += k. This is values will be like UV coordinates.
There is a pure Java implementation of 2D alpha shapes on Github at the Tinfour software project in the class AlphaShape.java under package org.tinfour.utils.alphashape. An example application showing how to use the AlphaShape class is also available at Tinfour (see AlphaShapeDemoImage.java).
A set of web articles describing the methods used is available at Implementation details for a 2D alpha shape utility
And, finally, here's a sample image of an alpha shape created from a set of scattered points which were generated for test purposes from the lowercase letter g.
db.session.close() releases the connection back to the pool, where it may be reused. db.session.remove() calls the close() method and also removes the session so that it is not reused later. This is useful for preventing the reuse of a connection that has expired. For Flask and other request-based environments, it's best to use db.session.remove().
Dear Lucy Justice Augustine 19 2025.
20 years ago I invested in this company, all my savings. I received no compensation in the last 20 years. I am currently retired , and need to live off my savings. Please contact me by my Email to resolved my problem.
Thank you so much
Juan Nunez
Try to connect with the Kafka UI Plugin:
https://plugins.jetbrains.com/plugin/28167-kafka-ui-connect-to-kafka-brokers-produce-and-view-messages
With it you can connect to your Kafka Cluster easily
Navigate to your project directory:
e.g., cd E:\Project\Laravel\laravel-new-app
Install Composer dependencies:
composer install
*If composer install doesn't work or the vendor folder is still missing/incomplete
1. Clear Composer cache:
composer clear-cache
2. Delete vendor folder and composer.lock file (optional, but can help with fresh installs):
rm -rf vendor
rm composer.lock
3. Install the composer
composer install
-----------------------------------------------------------------------------------------------------------------
After completing these steps, the vendor folder and its contents, including autoload.php, should be present, resolving the error.
Even complete the above steps if you encounter this error->
Failed to download livewire/volt from dist: The zip extension and unzip/7z commands are both missing, skipping. The php.ini used by your command-line PHP is: C:\xampp\php\php.ini Now trying to download from source
To resolve this issue,
Locate your php.ini file. The error message indicates it's at C:\xampp\php\php.ini if you are using XAMPP.
Open php.ini with a text editor.
Search for the line ;extension=zip.
Remove the semicolon (;) at the beginning of the line to uncomment it, making it extension=zip.
Save the php.ini file.
Restart the server
-----------------------------------------------------------------------------------------------------------------
After if you encounter this error->
Database file at path [E:\Project\Laravel\laravel-new-app\database\database.sqlite] does not exist. Ensure this is an absolute path to the database. (Connection: sqlite, SQL: select * from "sessions" where "id" = T9cQVcjhXc9StyBdsVuD9IkZpbdyD6BsCFYAPXz8 limit 1)
Go to your Laravel project’s database folder.
E:\Project\Laravel\laravel-new-app\database
Create a new empty file called:
database.sqlite
Run migrations:
php artisan migrate
Feed the formula 3 items: TEXT=text to remove all leading and / or trailing string; CHAR = character to remove (for instance, " " for space, "-", for dash, etc).; MODE = one of B,L,T or b,l,t for Both, Leading, Trailing. Error gives SYNTAX!.
=LET(TEXT,$CP13,CHAR," ",MODE,"B",MM,MATCH(UPPER(MODE),{"B","L","T"},0),LL,LEN(TEXT),NL,MATCH(FALSE,CHAR=MID(TEXT,SEQUENCE(LL,,1,1),1),0),NT,MATCH(FALSE,CHAR=MID(TEXT,SEQUENCE(LL,,LL,-1),1),0),MN,IF(OR(ISNA(MM),LEN(CHAR)<>1),1,IF(LL=0,2,IF(OR(LL=1,TEXT=REPT(CHAR,LL)),3,MM+3))),CHOOSE(MN,"SYNTAX!","",IF(TEXT=REPT(CHAR,LL),"",TEXT),MID(TEXT,MATCH(FALSE,CHAR=MID(TEXT,SEQUENCE(LL,,1,1),1),0),2+LL-NL-NT),RIGHT(TEXT,1+LL-NL),LEFT(TEXT,1+LL-NT)))
You didn't reveal a thing about the callback interface you're working with, so I'm just going to assume/hope/guess that the terms of that interface are, "you register a callback once, and then that callback will be occasionally invoked in the future, possibly from a different thread, until it's unregistered".
If that's the case, then try something like this on for size:
async def _callback_iterator(register, unregister):
loop = asyncio.get_running_loop()
q = asyncio.Queue()
callback = lambda x: loop.call_soon_threadsafe(q.put, x)
register(callback)
try:
for x in q:
yield x
finally:
unregister(callback)
def my_api_iterator():
return _callback_iterator(
_MY_API.register_callback,
_MY_API.unregister_callback
)
async for message in my_api_iterator(
_MY_API.register_callback,
_MY_API.unregister_callback
):
...
It may seem excessive to use a queue, but that queue embodies the least "spiky" answer to the question: if your asyncio event loop hasn't got around to reading a message by the time your API has a new message, what should happen? Should the callback you passed to your API block? If not, (or if it should only block for a finite amount of time,) then should it just silently drop the new message, or should it raise an exception? What if the API consumer is some low-level, non-Python library code that doesn't support either failure exit-codes or Python exceptions?
You can simply copy your HTML form and use a django forms generator tool like this one:
https://django-tutorial.dev/tools/forms-generator/
For what's its worth, it seems like Azure Functions Toolkit allows just one task of type "func" in the workspace so if you already have such task any other task with similar type (and different name) would be ignored (and show up as not found).
I'm on macOS Sequoia 15.6 (24G84), and I had also done:
cd node_modules/electron
rm -rf dist
npm run postinstall
Thereafter, Electron starts as expected.
You welcome. 🤙🏻
Laravel has a built-in password reset system; you can directly use theirs instead of your custom logic: https://laravel.com/docs/12.x/passwords
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
printf(" * \n");
printf(" * * \n");
printf(" * * * \n");
printf(" * * * * \n");
getch();
}
Long time passed since the question I have posted here. I solved it back then by adding the configuration in rules section below
rules:
- if: $CI_COMMIT_REF_NAME =~ /^release\/\d+\.\d+\.\d+$/ && $CI_COMMIT_BEFORE_SHA == "0000000000000000000000000000000000000000"
when: always
- if: $CI_COMMIT_REF_NAME =~ /^release\/\d+\.\d+\.\d+$/
when: always
Now the CI will be triggered when new branch is pushed.
This two ifs can be combined.
rules:
- if: $CI_COMMIT_REF_NAME =~ /^release\/\d+\.\d+\.\d+$/ && $CI_COMMIT_BEFORE_SHA == "0000000000000000000000000000000000000000" || $CI_COMMIT_REF_NAME =~ /^release\/\d+\.\d+\.\d+$/
when: always
This should resolve the problem.
BTW I could find a video in youtube describing my exact issue.
Here is the link --> https://www.youtube.com/watch?v=77Q0xykWzOI&ab_channel=vlogize
Try to connect with the Kafka UI Plugin:
https://plugins.jetbrains.com/plugin/28167-kafka-ui-connect-to-kafka-brokers-produce-and-view-messages/edit
With it you can connect to your Kafka Cluster easily
We struggled with similar latency issues. We tried these things to reduce our TTFT to 1.1 sec:
1. Self Hosting LiveKit in our region - LiveCloud keep changing your LK region
2. Using Azure's Open AI model - This slashed LLM latency by 50% straight up. Also it's much more consistent now vs Open AI APIs
3. Backchanneling - We backchannel words like "Ok", "Noted" etc.,. this gives a better perceived TTFT.
We actively benchmark our LiveKit agents against Vapi using an open source tool Whispey. We connect both LiveKit and Vapi agents to it and see the comparison to help us better compare the performance.
This way works:
echo(& echo(& echo(& echo(& echo()
Is the package free? It seems my Mac can't find it in the pip market.
The code itself looks correct to me. If that’s returning None it could be due to your Python version. Azure's flex consumption plan does not fully support Python 3.13 yet.
Can you confirm what Python version your Function App is set to in Configuration → General settings? At the moment, Azure Functions officially supports Python 3.10, 3.11, and 3.12. If the app is configured to use 3.13, the runtime will not load any environment variables.
The main thing is: cereal is not intended to deserialize random jsons, but rather jsons it generated itself. It has specific fields and flags it adds to help itself, such as versions and tags.
In your particular case, the json is saved as if an int is written to it, but you are deserializing through an std::optional<int>, which cereal expects to look different. As @3CEZVQ mentioned in a comment, this includes an extra field telling it if the optional is actually populated or not.
The fact that the value of the int is optional does not make the field in the json optional.
If what you intend is an actual missing json field, that is not the right approach. What you want is an optional NVP, of type int.
To achieve that, I have been using the lovely Optional-NVP extension, available at Cereal-Optional-NVP. I am not the author nor affiliated in any way, but I've been using it for a few years now and it does exactly what you are asking. Just add those files to your cereal installation to gain the new macros
I had this error recently and you DON'T HAVE TO DISABLE SSL.
The right way to fix it is to add the certificate path to the ENV variable `NODE_EXTRA_CA_CERTS`.
This way, Node'll use it and boom, problem solved ;)
Tty this:
ts:
import { Component } from '@angular/core';
import { MatListOption, MatSelectionList } from '@angular/material/list';
@Component({
selector: 'app-list-single-selection',
standalone: true,
imports: [MatSelectionList, MatListOption],
templateUrl: './list-single-selection.component.html'
})
export class listSingleSelectionComponent {
listOptions = [
{value: 'boots', name: 'Boots'},
{value: 'clogs', name: 'Clogs'},
{value: 'loafers', name: 'Loafers'},
]
}
html:
<mat-selection-list [multiple]="false">
@for (listItem of listOptions; track $index) {
<mat-list-option [value]="listItem.value">
{{listItem.name}}
</mat-list-option>
}
</mat-selection-list>
<span style="color: red;">e</span>
<span style="color: orange;">r</span>
<span style="color: gold;">m</span>
<span style="color: green;">a</span>
<span style="color: blue;">0</span>
<span style="color: violet;">1</span>
Yes, there's some support for AMD & Xilinx :
meta-amd & meta-amd-bsp & meta-amd-distro
For athor Xilink layers are availble here
Start "psql tool" from the pg admin and run your query there
Your packages are already large, so I don't think there's much you can do.
torch: 1.5 GB
triton: 420 MB
ray: 170 MB
Using venv not as an isolator but as a package wrapper is a good strategy.
Many AI libraries, especially PyTorch, offer different versions. If you're not going to use a GPU for inference in your container, never install the default version of PyTorch.
Someone gave me a tip (outside Stack Overflow), that pointed me into the right direction.
Key is this documentation: Diff Tool Order
I added an environment variable DiffEngine_ToolOrder with the value VisualStudio. That solved the problem.
GROUP_CONCAT worked perfectly. Thanks @MatBailie. I'm still a little unclear on the differences between LISTAGG, STRING_AGG, and GROUP_CONCAT but I very much appreciate the help!
Updated code:
SELECT ToolGroup, GROUP_CONCAT(', ', ToolID) AS ActiveTools
FROM DB
GROUP BY ToolGroup
ORDER BY ToolGroup
Rnutime Error Affempt to invoke virtual method void androidx recyclervie w widget recycler view s Adapter notifyDa tasetchanged on a null opject reference FunTap
This is how I have done in Jenkins :
node {
stage('Build') {
def productType = params.productType
currentBuild.displayName = "#${env.BUILD_NUMBER} - ${productType}"
currentBuild.description = "Type: ${productType}"
}
}
Hopefully this will help someone.
@Charlie Harding "Instead of @RolesAllowed, I implemented a custom @PermissionsAllowed annotation. I created a PermissionChecker that uses a map to link specific actions (permissions) like menu.Doctors to a list of allowed roles. The system then checks if the logged-in user's roles match any of the allowed roles for that permission. This gives me a more granular, permission-based control rather than just role-based."
I was struggling a bit with the Rectangle brushed line between the header and the rows (with Communitytoolkit DataGrid), and it seems like overriding this brush got rid of it:
<SolidColorBrush x:Key="GridLinesBrush" Color="Transparent"/>
It works fine after some time or Restart the Jenkins.
Downloading plugins in background
I found the issue, It is happening because version mismatch, I am using zod^4.0.17 and @hookform/resolvers^3.9.1. When i update the @hookform/resolvers^5.2.1 (latest) Its working fine.
SELECT name, COUNT(*) AS tencount
FROM persons
where score = 10
GROUP BY name;
https://marketplace.visualstudio.com/items?itemName=BuldiDev.hide-vscode-icon
I created an extension just for this reason, enjoy it
In ASP.NET Core, the equivalent of HttpContext.IsCustomErrorEnabled is handled via IWebHostEnvironment and UseExceptionHandler or DeveloperExceptionPage, allowing environment-specific error handling and custom error pages.
This is neither supportet in SQL Server, nor Oracle. Also what is the advantage of doing this?
you can simply write:
select c_name, count(1) as number from table_one group by c_name
Much more readable, and if your select ever gets changed your Group By still works like a charm.
did anyone found a solution for this ?
Thx
Hello sir ek gaud chla hai jis me mera 15000 lag lag logo ka pass chla gya hai please ap help kera
Title: You can’t use input() inside a Flask route (EOFError). Use HTTP request data instead.
The error EOFError('EOF when reading a line') happens because Flask routes run inside a WSGI worker without an interactive terminal (stdin). input() tries to read from stdin, but there’s no TTY in an HTTP request context, so it immediately hits EOF. Even in debug, blocking on input() would stall the worker and break concurrency.
Don’t read from the server console in a route. Get user input from the HTTP request.
Use one of these patterns:
HTML form (POST)
from flask import Flask, request, render_template_string
app = Flask(name)
form_html = """
<form method="post"> <input name="username" placeholder="Username"> <button type="submit">Send</button> </form> """
@app.route("/ask", methods=["GET", "POST"])
def ask():
if request.method == "POST":
username = request.form.get("username")
return f"Hello, {username}!"
return render_template_string(form_html)
JSON API (AJAX/fetch)
from flask import Flask, request, jsonify
app = Flask(name)
@app.route("/api/answer", methods=["POST"])
def api_answer():
data = request.get_json(silent=True) or {}
answer = data.get("answer")
if not answer:
return jsonify(error="missing 'answer'"), 400
return jsonify(ok=True, echoed=answer)
Client:
fetch("/api/answer", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({answer: "hello"})
})
Query parameters (GET)
from flask import Flask, request
app = Flask(name)
@app.route("/greet")
def greet():
name = request.args.get("name", "world")
return f"Hello, {name}!"
Call: /greet?name=Alice
Path parameters
from flask import Flask
app = Flask(name)
@app.route("/user/<username>")
def user(username):
return f"Hello, {username}!"
If you truly need interactive, real-time input, use WebSockets (e.g., Flask-SocketIO) to exchange messages with the browser. If you want terminal prompts, build a separate CLI script and don’t call input() inside Flask routes.
def __get_pydantic_core_schema__(
self, source: type[Any], handler: GetCoreSchemaHandler
) -> core_schema.CoreSchema:
...
return core_schema.no_info_plain_validator_function(validate)
In your code:
@classmethod
def __get_pydantic_core_schema__(cls, source_type: Any, handler):
cls._schema = _CustomModel._make_schema()
fn = core_schema.no_info_plain_validator_function(
function=cls._validate,
schema=cls._schema,
)
return fn
For me the error was: Creating default icons Android ✕ Could not generate launcher icons PathNotFoundException: Cannot open file, path = 'assets/icon/icon.png' (OS Error: The system cannot find the path specified. , errno = 3) Failed to update packages.
I paste the image at the same path that shows in the error "path = 'assets/icon/icon.png'" and paste that path in pubsec.yml file. It works for me
Can I also make each row's output a clickable hyperlink? Right now, it's displaying as plain text URLs that aren't clickable
Thanks
For anyone looking for the compose way to do this as of August 2025:
The code has been adapted from @Pisoj your awesome man
also from https://dev.to/boryanz/webviews-download-listener-on-android-how-it-works-5a01
val context = LocalContext.current
val webView = remember(context) {
WebView(context).apply {
settings.javaScriptEnabled = true
this.webViewClient = object : WebViewClient() {
// you do you
}
this.setDownloadListener { url, userAgent, contentDisposition, mimeType, contentLength ->
val request = DownloadManager.Request(url.toUri())
// Extract filename from contentDisposition or URL
val filename = getFileName(contentDisposition, url)
val cookies = CookieManager.getInstance().getCookie(url.toString());
request.apply {
setTitle(filename)
setDescription("Downloading file...")
addRequestHeader("cookie", cookies)
setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED)
setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, filename)
setMimeType(mimeType)
}
val downloadManager = context.getSystemService(Context.DOWNLOAD_SERVICE ) as DownloadManager
downloadManager.enqueue(request)
Toast.makeText(context, "Download started", Toast.LENGTH_SHORT).show()
}
}
}
CompositionLocalProvider(LocalContext provides context) {
Box(
modifier = Modifier
.fillMaxSize()
.verticalScroll(rememberScrollState())
{
AndroidView(
modifier = Modifier,
factory = { webView }, update = {
it.loadUrl("https://yourwebsite.com")
}
)
}
}
Notes:
For you to download files via webview in compose you need the DownloadListener interface.
If your files require cookie authentication please ensure you add cookies in download manager otherwise your file will appear to download but on opening will issue corrupted files.
Cheers
Is there any way to attemt a removal of big files one by one?
I added old binary files, not removed, that are still in the commit history, but are completely useless.
I would like to delete only those files, and leave old source fode files untouched.
Thank you.
Thanks to @robertklep (in comments):
The answer is: parts = str.split("\n\n");
In .NET 6 and later you don’t need to add Microsoft.AspNetCore.Razor manually, because Razor support is included by default through the Razor SDK. You can safely remove the old reference and everything will still work. If you are working with custom Tag Helpers, use Microsoft.AspNetCore.Razor.TagHelpers instead. For more details, check this related thread: Razor SDK in .NET 6.
Many MacBook M1 users running macOS Monterey have experienced USB audio dropouts due to Core Audio glitches. This usually happens with external audio interfaces, especially when running heavy sessions or multiple USB devices. Updating macOS, resetting the SMC/NVRAM, and trying a different USB hub or cable can often reduce the issue. If the problem continues, it may require professional diagnosis to check whether it’s a system conflict or hardware-related. For expert help with MacBook Repair in Dubai, you can visit Prabhath Mac Care
The new version of gitk included with Git 2.51.0 allows hiding these.
Go to Edit -> Preferences, and in the "Refs to hide" box enter prefetch/*.
Since (as per the question) "It is not mandatory for this->name to be NUL-terminated." GCC __attribute__ ((nonstring)) in this->name declaration appears to be an appropriate solution.
See also 6.32.1 Common Variable Attributes in the Using the GNU Compiler Collection (GCC).
Cluster are built for high availability, official docs here
FWIW SQLite added support for a RETURNING clause in SQLite 3.35.0 (March 2021): https://www.sqlite.org/lang_returning.html
If you are using Tailwind v4, this will work for you.
bg-stone-900/75 here 75 is the opacity that will add opacity to this color as 0.75
At the moment, the high-level gemini_model.generate_content method in the Vertex AI Python SDK doesn’t provide a built-in way to set fps metadata when using Part.from_uri(). However, the underlying Vertex API does support videoMetadata.fps if you construct the request manually or via the REST API. Until then, you'll need to choose between switching to a lower-level approach or waiting for a future SDK update. You can also submit a feature request to Google Cloud.
Just found the problem. Posting it here since the behavior is kind of interesting and other people might have the same problem.
The problem was the following:
OrderService is an interface - the mocking here was correct. But the implementation OrderServiceImpl was also mocked:
@Mock private OrderService orderService;
@Mock private OrderServiceImpl orderServiceImpl;
The names of the variables in my case were not as obvious as above so I overlooked it. After removing the Mock of the implementation, it works exactly as it should.
Interesting to me that there is no warning by Mockito when you mock an interface and the implementation for it. Also interesting that it sometimes worked and sometimes didn't - that made it really difficult to analyze.
Thanks for the comments which helped me finding the solution.
you just have to go to php.ini file and find this comment
;extension=gd
and than uncomment this line and after you can upload webp images in wordpress.
Thank you everyone for your responses. After further investigation, I discovered that there was a proxy in front of the application that was altering the query parameters. Once I identified the presence of the proxy, I tested the service both way, with and without proxy.
Without the proxy, everything worked as expected.
But with the proxy, the request failed.
Upon failure above logs appeared in the application logs. We have since adjusted the proxy configuration to ensure it no longer modifies the requests.
I contacted Samsung about this and they confirmed that IBI data is still collected when the screen is off, but the delivery method changes to save battery. Instead of streaming in real time, the data is gathered with 1 Hz frequency in the background and delivered in batches every few minutes.
If you need to access the data sooner than the system delivers it, the flush() method can force an earlier update, though it may impact battery life.
In my own testing, I found that the IBI data collected when the screen was not on, was inaccurate and for my use case, not usable. This might vary depending on the device but it’s something to consider if you’re relying on high-quality data.
Convert the AggregateResult to a List<String>:
public class PickListHandler {
@AuraEnabled
public static List<String> getLevel1(){
List<AggregateResult> groupedLevel1 = [SELECT Level_1__c, COUNT(id) FROM Case_Type_Data__c GROUP BY Level_1__c];
List<String> level1Values = new List<String>(); // New list to store strings
for(AggregateResult ar : groupedLevel1){
// Explicitly cast to String
level1Values.add(String.valueOf(ar.get('Level_1__c')));
System.debug('Level Value Is' + ar.get('Level_1__c'));
}
return level1Values; // Return the list of strings
}
}