I really do not like that new trend about "soundness", because it is largely pointless.
By definition - the "sound" language is a promise that a language does not have "undefined behavior" at all. If you have at least one example of undefined behavior, then the language is "unsound".
I would say: there is no real language which is "sound".
The given query selects 10 random rows and then returns the unique_id of the row with the highest price among them. However, using ORDER BY RAND() is very expensive when the table has a large number of rows.
To optimize this, we can:
Pick a random offset within the table.
Retrieve 10 consecutive rows starting from that offset.
There was a change in python>=3.12.10 which changed the behaviour of the venv-prompt variable: https://github.com/python/cpython/issues/132361
Unfortunately this was not noticed until after 3.12.10 was released and python3.12 is no longer accepting bug-fixes. The only workaround is to move to a different python version.
feature is not yet available , only SSL settings are working for the moment in registryConfigs
I tried everything, but nothing worked. I found an old backup, and too bad for everything I lost, so I started a restore with All-in-One WP Migration, which remained stuck at 89%. So I refreshed and broke everything.
Now, via FTP, I delete everything and redo a clean installation, even if it takes time, whether via FTP or the OVH 1-Click module.
I hope I didn't make any mistakes.
Make sure that the correct Content-Type
response header is being set. On our CDN it was defaulting to text/plain
rather than text/javascript
which was causing the issue.
I'm not sure if this will help you or not, but please don't downvote my answer if it's not helpful.
You can try using swiperjs to achieve the same behavior.
With upgrades in general the following series of commands are recommended.
git clean -xdf
gwb clean
gwb cleanIdea
gwb Idea
Review the upgrade instructions carefully for any manual steps needed to accept the new version.
update the lint-baseline.xml was Help to me by the command
./gradlew app:lintReportDebug updateLintBaseline
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #f0f0f0;
font-family: sans-serif;
}
.flip-card {
width: 300px;
max-width: 90%;
aspect-ratio: 3 / 2;
perspective: 1000px;
}
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
transition: transform 0.6s;
transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
}
.flip-card-front img,
.flip-card-back img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
border-radius: 10px;
}
.flip-card-back {
transform: rotateY(180deg);
}
</style>
</head>
<body>
<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img src="https://www.w3schools.com/html/img_girl.jpg" alt="Front Image">
</div>
<div class="flip-card-back">
<img src="https://www.w3schools.com/html/pic_trulli.jpg" alt="Back Image">
</div>
</div>
</div>
</body>
</html>
Test here :
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_image_test
For more information, refer to the following SurveyJS support thread: https://surveyjs.answerdesk.io/ticket/details/t24552/using-angular-outputting-stock-questions-but-in-our-specific-format
install pipewire
sudo pacman -S pipewire
also for good fun RTFM
As there is seemingly no answer to this yet. I decided to debug a little (version: Hibernate 6.6).
The default value for enableDirtyTracking in hibernate-enhance-maven-plugin is true (and OP also explicitly set it).
This enhances your Entity classes to implement ExtendedSelfDirtinessTracker which indirectly contains the method $$_hibernate_getDirtyAttributes which will be implemented by the enhancer.
For me, this generated implementation omitted the Auditable fields from the possible dirty fields. This seemed to be especially problematic if hibernates generates a Dynamic Update and will only generate a query which updates fields it considers to be dirty.
Which fields are considered for the dirty check for Entities implementing SelfDirtinessTracker is implemented in static DefaultFlushEntityEventListener.getDirtyPropertiesFromSelfDirtinessTracker (which will embellish the FlushEvent with the dirty fields to be used downstream)
At this point i explicitly turned enableDirtyTracking off (note, if you use the plugin it is on by default) since I did not plan to use it anyway.
If you need this option I would advise you inspect/debug the source code for the generation of $$_hibernate_getDirtyAttributes since that at least, seemed to be the culprit to me here.
I have managed to fix this issue in Chrome with the help of @Karim. I was using React with the 'styled-components' package, and I needed to add CSS only.
It needs only -webkit-autofill, but I have also added the focus pseudo-class
:focus ~ label, :-webkit-autofill ~ label {
// your css style change for the label input
}
You shouldn’t subclass Spark’s Join directly because it’s a case class and final by design. Instead, wrap it in a custom logical plan node or attach extra info via metadata on expressions to safely extend functionality without breaking Spark’s optimizations.
Your issue is not due to running in a container but because you are using a java agent. You should use MODULE_OPTS env variable to deine your agent so that the LogManager is properly configured when your agent starts.
Please make sure that Localize is installed in your Angular project and that it is included in the angular.json configuration.
"dependencies": {
"@angular/cdk": "^20.1.5",
"@angular/common": "^20.0.0",
"@angular/compiler": "^20.0.0",
"@angular/core": "^20.0.0",
"@angular/forms": "^20.0.0",
"@angular/localize": "^20.0.0",
"@angular/platform-browser": "^20.0.0",
"@angular/router": "^20.0.0",
angular.json:
"polyfills": [
"zone.js",
"@angular/localize/init"
],
Feel free to also check the official documentation:
https://www.telerik.com/kendo-angular-ui/components/troubleshooting/general-issues#missing-angular-localize-package-for-i18n-support
The real configuration is to set up ?
for your args but also add nullable: false
(FALSE, NOT TRUE) in order to get your arg to be string
or undefined
but NOT null
.
import { Args, ID } from "@nestjs/graphql";
// ...
@Args("id", { type: () => ID, nullable: false }) id?: string; // type: string | undefined.
This problem is usually the location of the nextauth URL, in my case it was in src/api, but it is src/app/api
I found the problem. Using "allowImportingTsExtensions": true
broke things. After removing the flag, it actually built.
The issue is apparently similar to https://github.com/nodejs/node/issues/59364
Running tests using the "--no-experimental-strip-types" flag seems to solve the problem.
node --test --no-experimental-strip-types
try downgrading the Firebase SDK versions
this will be your best bet sorry I cant help more
with cmd prompt execute as admin
C:\Program Files\Blender Foundation\Blender 4.3\4.3\python\bin>
and copy this line:
python.exe -m pip install --target="C:\Program Files\Blender Foundation\Blender 4.3\4.3\python\lib\site-packages" pandas
If you want Firebase Hosting rewrites and CDN, use Cloudflare in front for caching and passive failover, but true multi-region Cloud Run failover isn’t fully possible. If multi-region failover is top priority and you can skip Firebase Hosting, use Google Cloud Load Balancer directly to route traffic to Cloud Run. Use Full (strict) SSL with Cloudflare.
The objective of the search was to identify prior arts both patents and non-patent literature that top-load washer uses the flexibility of both manual and automatic detergent dosing, providing users with adaptable washing options. It incorporates advanced features such as algorithms, sensors, actuators, and/or mechanical components to control the automatic dispensing process. The auto-dispensing mechanism is not limited to a traditional pump system but can utilize various technologies, including positive displacement pumps or principles like the Bernoulli effect. Additionally, the washer features a removable detergent reservoir that allows for easy cleaning without impacting the function of the powder detergent dispenser. The search focused on identifying prior arts that disclose the following features:
Feature 1: A top-load washer that comprises the flexibility of using both manual and auto dosing.
Feature 1a: The washer uses an algorithm, sensor, actuator and/or mechanical/ hardware components.
Feature 1b: The auto mechanism to dispense the detergent is not limited to the pump only, it can utilize various technologies, including positive displacement pumps or principles like the Bernoulli effect.
Feature 2: Removable reservoir for easy cleaning without effect on powder detergent dispenser.
This can be achieved with:
include:
- component: $CI_SERVER_FQDN/$CI_COMPONENTS/container/build@0
inputs:
as: "Build container image"
destinations:
- "-t $DESTINATION:$CI_COMMIT_SHORT_SHA"
Build container image:
parallel:
matrix:
- !reference [.COMPONENTS, matrix]
rules: !reference [.build_rules, rules]
artifacts:
paths:
- $COMPONENT/build.env
for me the issue was for generating using dart-dio i got the URI not generated
fixed it by running
dart run build_runner build --delete-conflicting-outputs
inside the generated pkg folder
const grouped = Object.groupBy(employeeRecords, r =>
`${r.empID}|${r.company}|${r.date}`
);
const merged = Object.values(grouped).map(records => {
if (records.length === 1) return records[0];
return { ...records[0], group: records.map(r => r.group).join("-") };
});
onComplete
gives you everything you listed, including the donor’s custom message (cm
). You just grab it and POST it to your PHP endpoint. Here’s a clean, working example.
<div id="paypal-donate-button-container"></div>
<script src="https://www.paypalobjects.com/donate/sdk/donate-sdk.js" charset="UTF-8"></script>
<script>
PayPal.Donation.Button({
env: 'sandbox', // switch to 'production' when live
hosted_button_id: 'YOUR_SANDBOX_HOSTED_BUTTON_ID',
image: {
src: 'https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif',
title: 'PayPal - The safer, easier way to pay online!',
alt: 'Donate with PayPal button'
},
onComplete: function (params) {
// params contains: tx, st, amt, cc, cm, item_number, item_name
// Send it to your server
fetch('/paypal-complete.php', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
tx: params.tx,
st: params.st,
amt: params.amt,
cc: params.cc,
cm: params.cm, // <-- donor’s custom message
item_number: params.item_number,
item_name: params.item_name
})
})
.then(() => location.href = '/thank-you.html')
.catch(() => location.href = '/thank-you.html'); // show thanks either way
}
}).render('#paypal-donate-button-container');
</script>
Receives the JSON, stores it, and (recommended) verifies the payment.
<?php
// /paypal-complete.php
// 1) Read JSON payload
$raw = file_get_contents('php://input');
$data = json_decode($raw, true) ?: [];
// 2) Pull fields (with basic safety)
$tx = $data['tx'] ?? '';
$st = $data['st'] ?? '';
$amt = $data['amt'] ?? '';
$cc = $data['cc'] ?? '';
$cm = $data['cm'] ?? ''; // donor message
$item_number = $data['item_number'] ?? '';
$item_name = $data['item_name'] ?? '';
// 3) Persist immediately (DB/log) so nothing is lost
// Example log (replace with real DB insert):
file_put_contents(__DIR__ . '/paypal_donations.log',
date('c') . " | tx=$tx st=$st amt=$amt $cc | item=$item_number/$item_name | cm=" . str_replace(["\n","\r"], ' ', $cm) . PHP_EOL,
FILE_APPEND
);
// 4) (Recommended) Verify the transaction server-to-server
// Option A: PDT (Payments Data Transfer)
$useSandbox = true; // false in production
$pdtIdentityToken = 'YOUR_PDT_IDENTITY_TOKEN';
if ($tx && $pdtIdentityToken) {
$endpoint = $useSandbox
? 'https://ipnpb.sandbox.paypal.com/cgi-bin/webscr'
: 'https://ipnpb.paypal.com/cgi-bin/webscr';
$payload = http_build_query([
'cmd' => '_notify-synch',
'tx' => $tx,
'at' => $pdtIdentityToken
]);
$ch = curl_init($endpoint);
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $payload,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => false,
CURLOPT_SSL_VERIFYPEER => true,
]);
$res = curl_exec($ch);
curl_close($ch);
if ($res !== false && strncmp($res, "SUCCESS", 7) === 0) {
// Parse key=value lines after the first line
$lines = explode("\n", $res);
array_shift($lines);
$pdt = [];
foreach ($lines as $line) {
$parts = explode("=", $line, 2);
if (count($parts) === 2) $pdt[urldecode($parts[0])] = urldecode($parts[1]);
}
// Sanity checks (examples):
// if (($pdt['payment_status'] ?? '') === 'Completed'
// && ($pdt['mc_gross'] ?? '') == $amt
// && ($pdt['mc_currency'] ?? '') == $cc
// && ($pdt['txn_id'] ?? '') == $tx) { /* mark as verified */ }
http_response_code(204); // all good
exit;
}
}
// If verification isn’t configured yet, still return 202 so your JS can move on.
// (But do not mark donation as "confirmed" in your DB until verified.)
http_response_code(202);
cm
is the donor’s typed message. You get it as params.cm
, and you can POST it as shown.
onComplete
is handy, but it’s client-side. Always verify server-side (PDT like above, or IPN webhook) before you mark a donation as confirmed.
If you also want to pass your own metadata through the button, use the custom
variable in the button config; it will arrive in PDT/IPN.
Same-origin? No CORS drama. Different domain? Enable CORS on your PHP route.
If you want, I can add a tiny MySQL table + insert snippet so you can save the donation and message cleanly.
I had this problem before. Go to the Selection tab — if Column Selection Mode is ticked, untick it.
If it’s not ticked, try ticking it and then unticking it again.
That worked fine for me.
Unknown right knee has a ratchet sound and feel.
However, regarding this trouble
a. fit_transform -- The mean() and std () -- they are learned parameters and are directly applied to the initial data
b. transform -- This is applied to new data, i.e, the previously learned parameters applied to new data, usually test data
Why couldn't you use it?
The fit_transform()
functions in two ways:
cal. mean and st for standardscaler -- fit phase
transform phase --- using these parameters, it applies the transformation
The transform()
fails due to the following
Scaler may not have learned any parameters
The scaler didn't know which mean() and std()
to use
Check official documentation for more https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.StandardScaler.html
The problem was related to the compiler.
When specifying the targeted platform of the compilation, one must specify both the virtual target and the real target. The former is related to the PTX version, and the latter, to the SASS version. So, what might happened is that the compiler has defaulted to an old PTX version when I only specified -arch
in the compilation command:
nvcc cuda_test.cu -o cuda_test -arch=sm_121a
Now that I also specify the -code
, the compilation has succeeded. The command is as follows:
nvcc cuda_test.cu -o cuda_test --generate-code arch=compute_121a,code=sm_121a
In which the arch
and code
are parameters of the --generate-code
.
The compute_XX
is about the virtual target, and the sm_XX
, the real target.
That is how JWT works. There are pros and cons with JWT's you just noticed the largest "con" imho.
I wrote some remedies in a similar question here: How to revoke an accesstoken?
If you cannot find danger Zone via scrolling down:
Click 'Collaborators'
Click 'Manage Visibility'
and you are in Danger zone
Aleksandr Medvedev response let me understand better how virtual works. Solved. Thanks all.
In Safari, when using private browsing each tab is "isolated" so even though they are on the same origin they don't share context with each other.
So the BroadcastChannel API wont work :\
https://help.apple.com/safari/mac/8.0/en.lproj/ibrw1069.html
you can do with
{
"key": "alt+p",
"command": "workbench.action.pinEditor",
"when": "!activeEditorIsPinned"
},
{
"key": "alt+p",
"command": "workbench.action.unpinEditor",
"when": "activeEditorIsPinned"
}
After all, upgrading from Nuxt v3.10.0
to v4.0.3
fixed it.
My package.json
{
"name": "nuxt",
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "^4.0.3",
"vue": "^3.4.20",
},
"dependencies": {
"@pinia/nuxt": "^0.11.1",
"pinia": "^3.0.3"
}
}
You need to use the raw type Set
rather than the specific Generic version. See also https://www.eclipse.org/forums/index.php/t/1103966/
You can’t detect it with pure Python — you need JavaScript for browser events (focus
, blur
, mouseenter
) and then pass that state to Python. For automation, Selenium can check driver.switch_to.active_element
, and on desktop you’d need OS APIs (pywin32, PyAutoGUI, etc.).
weekdays = {1: 'Monday', 2: 'Tuesday', 3: 'Wednesday', 4: 'Thursday', 5: 'Friday', 6: 'Saturday', 7: 'Sunday'}
n = int(input("enter the number in between 1 and 7: "))
weekdays.get(n)
I'm not getting any output for the above code, what's the issue here
Firebse Hosting is for public access, if authorization is needed then you should consider a server (Cloud Run, Cloud Functions... etc.) where access to those servers can be managed by IAM or implement an authorization middleware yourself with basic auth or something else
If you’re looking for a UI/UX design tool with custom styling options, Figma is one of the best choices as it allows flexible component design, real-time collaboration, and easy prototyping. For a detailed comparison of the top tools, check this guide: Best UI/UX Design Tool in 2025 – Figma vs Adobe XD vs Sketch. Adobe XD and Sketch are also strong alternatives, depending on your workflow and team needs.
This happened to me when using docker from WSL, you need to install npm to the WSL machine
Just checking something if it wrks okay else i will delete
https://www.youtube.com/watch?v=kGo0AxoOQYw
Issue for me was my sshd config was overridden by the configuration files in /etc/sshd/sshd_config.d/
MacOS solution for podman
create docker file
sudo nano /usr/local/bin/docker
add to file
#!/bin/sh
exec podman "$@"
add perms to run
sudo chmod +x /usr/local/bin/docker
test docker command
docker ps
You should use caching and save the prices to cache at the time of updating the pricelist. This way, the frontend won’t need to fetch prices directly from the database, which will significantly improve performance.
When struggling with App Store payments I always find the Revenue Cat documentation a great go-to resource - https://www.revenuecat.com/docs/test-and-launch/sandbox/apple-app-store#:~:text=Sandbox%20Considerations%E2%80%8B&text=In%20sandbox%2C%20StoreKit%20Test%2C%20and,regions%20set%20for%20devices/accounts.
There's some mention in there of making sure you're on a different / new account. Testing IAP on Apple has always been a nightmare!
Unfortunately no, without an additional column the aggregation described by you is not possible in SQL. The physical storage doesn't care about the sequence data was inserted in the first place. The engine of your dbms will store the data in any form it prefers concerning performance.
When you’re testing with Twilio, it works well for small-scale sending and receiving, but it doesn’t really offer a simple way to simulate hundreds of users replying back at the same time. Most of the SMS testing tools you’ll find are built for bulk outbound sending only and don’t handle 2-way traffic simulation in bulk, which is why you’re hitting a limit with your current setup.
If you want to properly test at scale (like 500+ users sending replies), you generally need either:
A simulation environment where you generate fake MO (mobile originated) messages programmatically, or
A platform that’s built for real-world bulk SMS and 2-way traffic handling, instead of just dev-level testing.
This is where an aggregator platform makes sense. Instead of building a custom simulator, you can use a provider that’s designed for high volume and 2-way SMS flows. One of the better options out there is Africala. It’s built specifically for bulk messaging at scale, supports 2-way SMS, and gives you delivery reports and analytics that mimic production usage. That way you don’t just test sending, but also realistically test how your system processes hundreds of replies at once.
So in short: Twilio is fine for initial dev, but if your goal is bulk user simulation with both sending and receiving, a service like Africala is going to be much more practical.
You could try to run it using xvfb-run from the Xvfb project. It starts your application(s) under a fully compatible X Window server without any hardware and not a lot of overhead.
I've used this a few times to run UI tests and for an X11 desktop app that had command line arguments for use on the command line.
Or if you want to load it with the base query, you should use method `with`.
Here's an example:
$model_2 = Model2::query()
->where('name', $name)
->with('categories')
->get(); // Returns the Collection of Model2 with loaded relation of category
Please do pod update and pod install inside the ios folder
Use This key in info.plist
file to get rid of this.
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
If z-order
is not defined, the most recently opened window will appear on top based on the order in which the windows were opened.
I have the same problem with
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RELEASE</version>
</parent>
This gives me the warning.
WARNING: TestEngine with ID 'junit-vintage' failed to discover tests
java.lang.NoClassDefFoundError
For me, this is important because I have to run both JUnit 4 and JUnit 5 tests. And this warning makes me not able to read JUnit 4 tests.
I tried solutions from all over the internet and I found the solution from
Basically, we need to add
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.8.1</version> <!-- Adjust this with your case -->
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
And don't forget to make the build plugin just like this
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.1.2</version>
</plugin>
This makes me able to run both JUnit 4 and JUnit 5 tests 👍
Hope you all don't waste your time like I did. Spent like all day for this 😅
It could be because of your CPU or how fast your PC is, if it takes hours, restart.
I've actually run into similar headaches with domain validation on other platforms, so I totally get why this is so annoying, especially since it was working before!
The problem here almost certainly comes down to a recent, unannounced change on Google's end. What's happening is that their security team has likely updated their list of "public suffixes."
So, what's a public suffix?
Think of it like this: blogspot.com or github.io. Those are domains where anyone can create their own subdomain (like your-blog.blogspot.com). Google's rules for OAuth are designed to prevent security vulnerabilities, and they've gotten a lot stricter about not allowing public suffixes in their Authorized JavaScript origins field.
The reason it's failing is that Google's system is now seeing up.railway.app as one of those "public suffixes," even though it might not have been on their list a few months ago. The generic "invalid argument" error is just their way of saying, "Hey, that domain doesn't pass our new validation check."
The fact that up.railway.com works and up.railway.app doesn't is a huge clue. It tells me Google's list has been updated to specifically flag the .app suffix, likely because it's so widely used for different apps.
Honestly, the most reliable and secure way to solve this is to get a custom domain for your project.it's the better for production apps and will prevent this kind of problem from ever happening again.
1.Buy a domain: Grab a simple domain name, something like my-awesome-app.com. It's a small investment that adds a ton of professionalism.
2.Add it to Railway: Railway makes this super easy. Just follow their guide to add the custom domain and update your DNS settings (usually by adding a CNAME record).
3.Update Google Cloud: Once your domain is configured on Railway, just go back to your OAuth client settings and replace https://your-app.up.railway.app with https://my-awesome-app.com.
4.Change Your Code: Don't forget to update your app's redirect_uri and any other hardcoded URLs to use your new custom domain.
After some more tests and digging, I found the issue: MySQL considers that WKT with EPSG=4326 are given in lat-long while PostGIS considers that they are given in long-lat. This behavior can be customized using the axis-order
option for the ST_GeomFromText
function in MySQL.
The MySQL query
SELECT ST_AsText(ST_Transform(ST_GeomFromText('POINT(5 45)', 4326, 'axis-order=long-lat'), 2154));
returns a result very close to the one with the initial query in PostGIS.
Version 7.3.0 of the module fixed this bug.
I have solved this problem and can now support the merging of coverage data from different exec files. see this
https://github.com/chen524266/jacoco-enhanced
As an addition to Lucas's answer:
Rust strings handle both Unicode and UTF-8, but at different layers.
In Unicode, one lowercase character doesn't always map to a single uppercase character.
For example:
'ß' (German sharp S) becomes "SS" when uppercased.
This makes Rust's approach more intuitive and reliable by using iterators rather than returning a single character.
Hi look into this project, could be usefull:
How can I build a seamless charting system with both real-time and full historical OHLCV data using my own chain data and external APIs?
How to log-in gh CLI needless of password
1. make sure you installed gh cli via homebrew (easiest)
2. then, gh auth login
which you will need to answer few questions. Follow them closely.
3. After it said, "You were already logged in to this account", do some action immediately about git. This will confirm you are logged in. Also, it will log you in surely.
Troubleshooting: restart Terminal once, sometimes it helps.
From the documentation:
Move the whole
.build/release
folder to your desired destination and run withpath_to_release_folder/sourcery
most likely the problem was in the incorrect movement of files and we will do everything carefully through the terminal, everything worked out for me
With recent versions of scikit-learn (e.g. 1.7.1), the answer of @piman314 can be greatly simplified.
def get_activations(mlp, x):
activations = [x] + [None] * (mlp.n_layers_ - 1)
activations = mlp._forward_pass(activations)
return activations
I have the same problem, cannot enter an .up.railway.app domain...
We had the same problem. Somehow the default vhost '/' was not existing anymore. After opening the management console and adding the vhost '/' under Admin -> Virtual Hosts -> Add a new virtual host
, everything was working again. RabbitMQ even recovered all queues, exchanges and messages.
A complement (after years) : If you are using a fake certificate like snakeoil
with virtualhosts (sure at development time!) you have to use 'verify_peer_name'=>false
like :
'ssl' => [
//'verify_peer' => false, <- not needed with "allow_self_signed=true"
'verify_peer_name' => false, // <- this one is mandatory
'allow_self_signed' => true
],
Cheers.
Thanks a lot! it worksforme
isMidButtonUp(e) {
return (e.buttons & 4) === 0;
},
It looks like a false positive (?!)
If I write this code, prefixing each option with "T1 "
to check that I'm really using it, I and that I put it as an image for you to see the highlighted error on communes
:
You can see that Type Commune[] must have a [Symbol.iterator]() method that returns an iterator.
is really considered as an error,
But what is troublesome, is that it doesn't prevent Angular 20 to compile the application and is working, whatever.
When using NIO connectors, it appears that the contextDestroyed
method is not invoked. Tested on Apache Tomcat 9.0.104 and 10.1.44.
Configuration (server.xml – Connector tag):
Using
protocol="org.apache.coyote.http11.Http11Nio2Protocol"
protocol="org.apache.coyote.http11.Http11Nio1Protocol"
contextDestroyed
is not called.
Using
protocol="org.apache.coyote.http11.Http11AprProtocol"
contextDestroyed
is called as expected.
You need a DLP solution to prevent Capture screen, save, copy n paste, and etc.
This is a false positive warning from the compiler's static analysis.
The compiler is pointing out a theoretical problem that can't actually happen when the code runs.
The compiler is analyzing the memcpy
function call and sees a potential for overflow based on the data types involved.
The variable l
has the type size_t
. On a 64-bit system, size_t
is an unsigned 64-bit integer. Its maximum value is 2^64-1, which is 18,446,744,073,709,551,615
.
The C standard effectively limits the maximum size of any single object in memory to PTRDIFF_MA
. On a 64-bit system, this is the maximum value of a signed 64-bit integer, which is 2^63−1, or 9,223,372,036,854,775,807
.
The compiler sees that l
(an unsigned type) could theoretically hold a value that is larger than the maximum possible object size. This is the value in your warning, 18446744073709551614
which is 2*PTRDIFF_MA
. The compiler is warning you that if l
were this large, memcpy
would be instructed to copy more data than can possibly exist in a single memory object.
The compiler's analysis is too simplistic and misses a crucial piece of context from the line before the memcpy
.
char *b = prepbuffsize(B, l, -1);
memcpy(b, s, l * sizeof(char));
The prepbuffsize
function's job is to prepare a buffer of at least size l
.
An attempt to allocate a buffer of a size that large (e.g., more than 9,223,372,036,854,775,807
bytes) is guaranteed to fail on a real-world scenario.
When prepbuffsize
fails to allocate the memory, it will raise a Lua error.
This error stops the execution of the C function and propagates up to the Lua script.
Therefore, the memcpy
line is unreachable with a dangerously large value for l
. The program will have already aborted due to the allocation failure. The compiler isn't smart enough to deduce this inter-procedural logic and only sees the potential problem within the local scope of the luaL_addlstring
function.
You can safely ignore this warning. It is a known type of false positive when compiling large, mature codebases like Lua with aggressive warning flags.
Maybe not an answer but probably still a way to achieve what you want: I would usually use a python virtual environment and pip instead of anaconda. Never had a problem with that. This should be able to help: https://www.geeksforgeeks.org/python/using-mkvirtualenv-to-create-new-virtual-environment-python/
Generally speaking, when working with various versions of python, you must create a virtual environment (with conda or pip, both have that feature). Otherwise, things can get very messy.
with ready docker images, here are the details of my docker-compose file having 2 apps
dapr binding feature
dapr chat completion
chat completion endpoint is erroring out as mentioned below after implenting above suggestion,
{"errorCode":"ERR_DIRECT_INVOKE","message":"failed getting app id either from the URL path or the header dapr-app-id"}
Please add after ax.plot(a).
To remove horizontal padding
ax.margins(x=0)
To remove padding in both x and y
ax.margins(0)
Or to remove horizontal padding
ax.set_xlim(0, len(a)-1)
Output:
Please check this link also for more explanation https://usingaspdotnet.blogspot.com/2025/08/adult-validation-using-javascript.html
archive-hocr-tools has hocr-text
hocr-text -f src.hocr >dst.txt
var sql = "Select * from table b left join Lkp_table2 a on a.col=b.col";
// Regex to find first table name starting with Lkp_
var match = sql.match(/(Lkp_[a-zA-Z0-9_]+)/i);
var lkp_table = "";
if (match != null && match.length > 1) {
lkp_table = match[1];
}
// return the lookup table name
lkp_table;
It is definitely useful (this is why I was looking up the subject in the first place) when a part of your table rows are dynamic and you want to change the content dynamically without recreating fixed rows.
Yes, the mappings just provide an interface between the parameters that a user provides, and the values that the internal functions expect. Is it necessary? Absolutely not.
We can't say for certain what the actual reason was for this design choice. There isn't anything particularly complex in any of the options, or some other convenience like expanding acronyms where required. The constants and mapping below probably provide the best hint (copied verbatim from https://github.com/dhan-oss/DhanHQ-py/blob/main/src/dhanhq/dhanhq.py and https://github.com/TradeHull/Dhan-Tradehull/blob/3753bf42de1918236288555e1f753285c5c798ec/Dhan_Tradehull.py#L171C1-L172C1):
NSE = 'NSE_EQ'
BSE = 'BSE_EQ'
CUR = 'NSE_CURRENCY'
MCX = 'MCX_COMM'
FNO = 'NSE_FNO'
NSE_FNO = 'NSE_FNO'
BSE_FNO = 'BSE_FNO'
INDEX = 'IDX_I'
script_exchange = {
"NSE":self.Dhan.NSE,
"NFO":self.Dhan.FNO,
"BFO":"BSE_FNO",
"CUR": self.Dhan.CUR,
"BSE":self.Dhan.BSE,
"MCX":self.Dhan.MCX
}
The user is expected to provide one of the keys in script_exchange
to select which exchange they want to make their order on. Rather than expect a user to input NSE_EQ
, which is rather unintuitive, they just enter NSE
, which is much more familiar. That being said, this code is pretty low quality. The BFO
key doesn't use the Dhan.BSE_FNO
value, despite it being available. These values should also be created as values in an Enum or some other class, rather than just as constants in the top-level class. All this is to say, don't look at this repository too hard for tips or ideas on good practices.
For version 4, just reinstall the Tailwind CSS extension in VS Code.
In case someone is having same problem with storybook 9 for angular project.
Include styles setting into builder options for storybook inside angular.json
"storybook": {
"builder": "@storybook/angular:start-storybook",
"options": {
...
"styles": ["src/styles/styles.scss"]
}
}
"build-storybook": {
"builder": "@storybook/angular:build-storybook",
"options": {
...
"styles": ["src/styles/styles.scss"]
}
}
Go to ultralytics/nn/modules/block.py in the Yolov12 folder. Add the following line of code to the Attn class: self.qkv = self.qk
your problem should be solved.
so after going through everything, python versions, jdk versions etc. I finally found the solution. All thanks to @samkart, for providing the link for the similar question. there I got to know that it works with python 3.11.8 and I gave it a try and it works now. In browser as well as in vscode.
Thanks man
Turns out you need an Info.plist
with CFBundleIdentifier
key (this is the only key required),
then
clang++ -std=c++20 -O2 -o hello -sectcreate __TEXT __info_plist Info.plist main.cpp
Otherwise you'll need an app bundle if you're not embedding Info.plist
into your binary.
MSA.கார்த்தி
header 1 | header 2 |
---|---|
cell 1 | cell 2 |
cell 3 | cell 4 |
I created a small script for solving conflicts in changelogs:
https://gitlab.com/salekpawel/cf_changelog
I believe that changelog should not be created from commits, because commit comments are targeted rather for other developers.
Git union will not work when you would like to group changelog entries (like new features, bugfixes, etc.) from multiple sources. This is not a simple union.
That's why I created my own tool.
Scaffold
resizes its body when the keyboard opens, which causes the back button to move up.
resizeToAvoidBottomInset: false
so the scaffold
.MediaQuery.of(context).viewInsets.bottom
as bottom padding
to the SingleChildScrollView
so only the form moves above the keyboard.The keyName
prop has been dropped in a major version release.
An alternative is by setting a unique field key yourself in your form data aside id
.
{ dbId: 'abc123', ...otherFields, id: 'generatedId' }
Then before submitting, you can structure it any how you like.
const submitData = fields.map(({ dbId, ...rest }) => ({ id: dbId, ...rest }));
if the object holds a logic True clause, return the trueValue Else return falseValue
he say:logic true,so if (true,trueValue as Double, falseValue as Double) As Double)
Public Function If(trueValue as Double, falseValue as Double) As Double
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Times New Roman" size="3"><span style="font-size:12pt;"><a name="BM_BEGIN"></a></span></font>
</body>
</html>
I was also getting the same error on Expo. I tried using useFetchStreams
and changing the database name, but the issue got resolved by switching from simulator 18.4 to 18.3.
If you just need a quick online tool, [FormaX CSV Converter](https://formattx.com/tools/csv-converter) can handle CSV ⇄ JSON conversions.
It's free, works client-side, and supports custom delimiters.
A good workaround would be to give data for each time interval (as shown below). Then do the following:
Make a clustered column chart
format the data series - gap width = 0%
format the axis labels - interval between labels = 10