import pickle
def create():
fo = open("binary.dat", "wb")
count = int(input("Enter number of records: "))
for i in range(count):
roll = 1
name = 'er'
class = 12
data = [roll, name, class]
pickle.dump(data, fo)
fo.close()
def check():
fo = open("binary.dat","rb+")
search = 1
name = 'dtghtfh'
try:
while True:
rpos = fo.tell()
data = pickle.load(fo)
if data[0] ==search:
data[1] = name
fo.seek(rpos)
pickle.dump(data, fo)
#fo.truncate()
except EOFError:
fo.close()
def readall():
with open("binary.dat", "rb") as fo:
try:
while True:
data = pickle.load(fo)
print(data)
except EOFError:
pass
create()
readall()
check()
readall()
Your approach to using flows are not the standard way.
Usually you would make a field for a flow, and "a function" / "some functions" that emits data from that flow.
Then, wherever you want to use it, you initialize that class at first (via injection or anything else). then start observing that field.
in order to populate that flow and make it deliver some data, you would need to call the function that emits data to that flow instead.
from datetime import datetime
long_value = 123456789 double_value = float(long_value) print(f"Long value: {long_value}") print(f"Double value: {double_value}")
date_string = "2025-07-20" date_object = datetime.strptime(date_string, "%Y-%m-%d") print(f"Date object: {date_object}")
finally worked for me this way:
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA256 -keystore keystore.keystore -storepass keystore -keypass keystore app-release.aab keystore
No, it doesn't cause any inconsistencies in the database.
The two queries will only display the price and enable purchasing for product ID = xxxxxxxxxx.
That's correct :)
Probably, you have SQLite as your database (due to intensive File IO in performance analysis). Until .NET 6 File IO was really bad (check this video: https://youtu.be/0KjkyhxnJuA?si=g1Am3nVkhUOok24s) in CPU usage in async/await scenarios. Probably your database has no index for gameId
column, so your queries need perform full-scan (read your table fully).
Check your database indexes.
I recommend use sync IO even in async methods if your IO is really fast due to async/await mechanism.
to calculate directly without any manual calculation use this GST calc. you can any tax value of your choice and enter the amount.
rows = 5
for i in range(1, rows + 1):
for j in range(rows - i):
print(" ", end=" ")
for k in range(i):
print("*", end=" ")
print()
<script type="module">
var life = 42;
makeglobal(life);
</script>
<script>
var mygloballife;
function makeglobal(a){
mygloballife=a;
}
</script>
// This should do it
Use icon slot. More detail see the guide: https://antdv.com/components/tree#components-tree-demo-customized-icon
I found this bug report from someone else having similar problems.
From the comments in that report, it looks like Safari is tripping the abusive behavior detection. Rather than disabling it, by setting overheadDataThreshold="2048"
everything now works as expected.
Tomcat documentation regarding these settings here.
it works perfectly. but for safari you have to write this : x-safari-https://domain
I faced the same problem so as one of the answer mentioned adding @script fixed the problem but not completely you need to call the function without adding any event listener
At the end of script call the fuction alone:
initAnimatedStats();
don't do this:
document.addEventListener('DOMContentLoaded', function () {
initAnimatedStats();
});
or this:
document.addEventListener('livewire:navigated', function () {
Livewire.hook('message.processed', (message, component) => {
initAnimatedStats();
});
});
and i faced a problem when adding @endscript so when i removed it every thing fixed :) to let you know i'm using flux too so i'm not sure about the cause of problem
You can see this for more information
https://livewire.laravel.com/docs/javascript
deleting ~/.config/Code
solved the issue for me.
Use this.path:
this.path::this.dir()
Does Tailwind CSS override the default styles for <p>, <h1>, <h2>, <ul>, and <ol>?
You can try not using the Tailwind CSS base layer.
@tailwind component;
@tailwind utilities;
Renci SSH.NET does not use HttpClient or the http pipeline. It uses direct socket communication.
So how can Polly have any effect on SSH.net ?
In case app open another app
, use
getPackageManager().getLaunchIntentForPackage(CALC_PACKAGE_NAME);
see reference.
If using the Docker Desktop on MacOS to run your container, make sure you expand Optional Settings and set the Port mapping. So, for example, for me I needed...
Ports: 8080 : 8080/tcp
Good day! (Sorry, my eng not very good)
Here is the solution using a subquery:
# subquery in SQL lang:
# SELECT children.parent_id, MIN(children.id) AS min_child_id
# FROM children
# GROUP BY children.parent_id
subq = (
select(
Child.parent_id,
func.min(Child.id).label('min_child_id') #
)
.group_by(Child.parent_id)
.subquery()
)
# query in SQL lang:
# SELECT parents.id, ...
# FROM parents
# LEFT OUTER JOIN subquery AS sq ()
# ON parents.id = sq.paparents_id
# LEFT OUTER JOIN children
# ON children.id = sq.min_child_id
#
results = (
session.query(Parent, Child)
.outerjoin(subq, Parent.id == subq.c.parent_id)
.outerjoin(Child, Child.id == subq.c.min_child_id)
.all()
)
Also below I will attach a screenshot of how the table connection works.(same color - connection keys)
The more precisely you describe your types, the better for understanding the program, both for humans and for the compiler. Therefore, subtypes should be preferred.
dnot defin it in config.js. V4 support use @theme. Get more detail from Chrome Dev Tools Elements -> Styles (eg. :root ).
and you can see the guide:https://tailwindcss.com/docs/adding-custom-styles
When interacting with SAP GUI through Python using win32com.client, the SAP Logon window might become visible even if launched in the background using a VBScript. To prevent this, consider the following:
Minimize the window during connection:
After getting the application object, but before opening the connection, you can try to minimize the SAP GUI window. This might not entirely prevent it from briefly appearing, but it can quickly move it out of the way.
Use Shell.AppActivate with caution:
While Shell.AppActivate can be used to activate specific windows, using it to try and deactivate or hide the SAP Logon window immediately after connection might be a workaround, but it's not a guaranteed solution and can be unreliable.
Explore SAP GUI Scripting API documentation:
The SAP GUI Scripting API might offer specific methods or properties to control window visibility or focus. Consult the official SAP documentation for more advanced options related to background operations and window handling.
Consider alternative connection methods:
If the visibility issue persists, explore if there are other ways to connect to SAP through Python that offer better control over window behavior, such as using PyRFC for direct RFC calls if applicable to your task.
I would break it up into two cron expressions:
Every 3 hours and 10 minutes past the hour: 10 */3 * * *
(see in a debugger)
Every half an hour: */30 * * * *
(see in a debugger)
Use @ServiceActivator
on the .errors
channel to catch runtime message exceptions.
Use try-catch
blocks inside your consumer functions for fine-grained handling.
Wrap your main
method with a try-catch
to handle startup exceptions.
1000 records is very small amount of records.
At this scale Postgres might decide that sequential scan will be faster, because there is overhead to index scan.
Try your roulette algorithm on Sonabet – a great platform for testing casino strategies!
Thank you for your replies. You were right to ask me to do a basic, minimal setup from scratch.
My setup had once run using browsersync. The problems started when I deinstalled it and switched completely to Vite. From that time I had code that I now deleted:
config.yaml
router_http_port: "80"
router_https_port: "443"
vite.config.yaml
import ViteRestart from 'vite-plugin-restart';
import mkcert from 'vite-plugin-mkcert'
export default defineConfig(({ command, mode }) => {
return {
plugins: [
mkcert(),
ViteRestart({
restart: [
'./src/**/*',
],
})
],
},
server: {
manifest: true,
https: true,
package.json
{
"devDependencies": {
"vite-plugin-mkcert": "^1.17.8",
"vite-plugin-restart": "^0.4.2"
}
}
I am thankful for your advice as I had spent more than a day on this problem. I’ll stick to your advice in future and start with a trivial setup when getting stuck.
VideoView myVideoView = findViewById(R.id.videoview);
String viewSource = "http://dev.hpac.dev-site.org/sites/default/files/videos/about/mobile.mp4";
Uri videoUri = Uri.parse(viewSource);
// Set the video URI
myVideoView.setVideoURI(videoUri);
// Add media controls
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(myVideoView);
myVideoView.setMediaController(mediaController);
// Start playback
myVideoView.requestFocus();
myVideoView.start();
With error handling:
VideoView myVideoView = findViewById(R.id.videoview);
String viewSource = "http://dev.hpac.dev-site.org/sites/default/files/videos/about/mobile.mp4";
Uri videoUri = Uri.parse(viewSource);
// Set the video URI
myVideoView.setVideoURI(videoUri);
// Add media controls
MediaController mediaController = new MediaController(this);
mediaController.setAnchorView(myVideoView);
myVideoView.setMediaController(mediaController);
// Error handling
myVideoView.setOnErrorListener((mp, what, extra) -> {
Toast.makeText(this, "Error: This video cannot be played.", Toast.LENGTH_LONG).show();
Log.e("VideoViewError", "Video playback error. Code: " + what + ", Extra: " + extra);
return true; // true = we handled the error
});
// Optional: Completion listener
myVideoView.setOnCompletionListener(mp -> {
Toast.makeText(this, "Video completed!", Toast.LENGTH_SHORT).show();
});
// Start playback
myVideoView.requestFocus();
myVideoView.start();
I think what you're looking for is -
keyboardShouldPersistTaps="always"
This will not dismiss your keyboard and you'll be able to interact with the other buttons.
Using Brew I first uninstalled current cmake installation with: brew remove cmake
and then I installed using: brew install --cask cmake
This worked for me
Start by double-checking your CSS on the iframe and its parent containers for height and overflow properties. If that doesn't work, it's probably an interaction limitation with the Figma embed itself. While there are solutions for general iframe scrolling (like iframe-resizer), getting granular scroll events from within a Figma prototype embedded in an iframe seems to be a current limitation or requires a clever workaround that isn't immediately obvious from the documentation.You can also consider if there's a different way to display your Figma content if the scrolling is a critical feature and the iframe is proving to be a blocker.
You have an older unofficial version of docker installed. You need to remove it.
Follow the official instructions on how to Install Docker Engine on Ubuntu, section Uninstall old versions.
In short you need to run:
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
I finally solved the issue!
The problem was with how I defined the checkBalance function in Motoko. I had written:
public shared query func checkBalance(): async Nat {
return currentValue;
};
While this looks fine, it caused the method to not appear in the Candid UI and failed in dfx canister call as well.
Fix: I read the documentation on Query functions and removed the return keyword and simply returned the value directly like this:
public shared query func checkBalance(): Nat {
currentValue;
};
After making the fix, I also ran these commands to ensure a clean redeploy:
dfx stop
rm -rf .dfx
dfx start --clean
dfx deploy
Now everything works perfectly! The solution was so much more simple than I made it out to be. Hope this helps someone facing the same issue!
After reading this post, I realized that the solution was pretty simple. I needed to set credentials: 'include'
in the login request in order for the cookie to actually be saved in the browser. Cookies seem to not be saved automatically when the Set-cookie
header is present unless the fetch requests "asks" for them.
below command saved my day:~
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.9.rpm
You have disabled implicit framework references:
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
Set that to false.
sk9ibidi I think
but the gyatt could be big and massive or chicken snadwich
If you are using a mingW C compiler and in windows this happens because of the way in the printf interprets the long double as double.
you can fix this by using __mingw_printf() instead of printf() :)
For reference https://stackoverflow.com/a/14988103/25043047 .
Use Harmonify. It's a new library meant for patching Python code is really easy to use, and can be installed via pip
.
Your MyClass object is a structure containing the reference to the 2 event handlere, if you want that specific instance to be garbage collected you need to unsubscribe to both event handlers. If you require a manual process to ensure this, implement the IDispose interface and call that method, that then ensured that event handlers are all unsubscribed.
from fpdf import FPDF
from PIL import Image
# ছবি ও আউটপুট ফাইলের ঠিকানা
image_path = "LMC_20250720_113005_🔥 iPhone 14 Ultra Pixel.jpg"
output_pdf = "Najib_Kamal_CV.pdf"
# PDF ইনিশিয়ালাইজ
pdf = FPDF()
pdf.add_page()
pdf.set_auto_page_break(auto=True, margin=15)
# ফন্ট সেট করা
pdf.set_font("Arial", 'B', 16)
pdf.cell(0, 10, "জীবনবৃত্তান্ত (Curriculum Vitae)", ln=True, align='C')
pdf.ln(10)
# ছবি বসানো (ডান দিকে উপরে)
pdf.image(image_path, x=150, y=20, w=40)
pdf.ln(50)
# ব্যক্তিগত তথ্য
pdf.set_font("Arial", 'B', 12)
pdf.cell(0, 10, "ব্যক্তিগত তথ্য:", ln=True)
pdf.set_font("Arial", '', 12)
pdf.cell(0, 10, "নাম: নাজিব কামাল", ln=True)
pdf.cell(0, 10, "জন্ম তারিখ: ৭ নভেম্বর ২০০৩", ln=True)
pdf.cell(0, 10, "ঠিকানা: পার্বতপুর, দিনাজপুর", ln=True)
pdf.cell(0, 10, "মোবাইল: ০১৭৪৫১৫৮৪৮৫", ln=True)
pdf.cell(0, 10, "ইমেইল: [email protected]", ln=True)
# নিচের অংশেও এভাবে Objective, Education, Skills, etc. যুক্ত করতে পারো
# PDF সেভ করা
pdf.output(output_pdf)
print("✅ PDF তৈরি হয়েছে:", output_pdf)
I faced same issue.
Try closing resource.h file in visual studion and open .rc file by double click.
Please check this patch which solves the issue:
https://github.com/fran6w/openpyxl
.${categoryNamee}{ display: flex; flex-direction: row-reverse; }
Removing flex-wrap: wrap; helped
It's because stackoverflow, like many sites, uses a widely accepted 960px page container width standard.
Within your full-width footer container, put a second, invisible container for the content, whose width is the same as the width of the main document body, e.g. 960px. Here is stackoverflow's body container:
#content {
margin: 0 auto;
width: 960px;
min-height: 450px;
}
And here is the container for the footer content:
.footerwrap {
margin: 0 auto;
text-align: left;
width: 960px;
}
Additionally, I don't think the footer 'sticks' to anything. It's simply at the end of the document, so it's rendered at the bottom of the page. I might be wrong as I haven't looked at stackoverflow's html source in that much detail, but anything else seems like overkill.
I faced this issue earlier, and I tried the following steps:
flutter clean // or fvm flutter clean
flutter pub get // or fvm flutter pub get
flutter run
But after running the app, I faced another issue where Flutter recommended updating the Kotlin version.
🔹 It seems like even after cleaning, Flutter still expects the latest Kotlin version in both settings.gradle
and build.gradle
.
What I’ve already done:
Updated org.jetbrains.kotlin.android
to 2.2.0
inside settings.gradle
Tried cleaning and rebuilding
What I want to know:
Is there anything else I need to update in build.gradle
or gradle-wrapper.properties
?
Does Kotlin 2.2.0
require any specific Android Gradle Plugin or Gradle version?
Is there a recommended way to handle this Kotlin version mismatch with Flutter?
Binary search and binary search tree (BST) are two different concepts, though they sound similar. Binary search is an algorithm used to find an element in a sorted array or list. It works by repeatedly dividing the search range in half — comparing the middle element with the target, and then deciding whether to search in the left or right half.
On the other hand, a binary search tree is a data structure, specifically a type of binary tree where each node has at most two children. The left child of a node contains values smaller than the node, and the right child contains values greater.
While both use the "binary" idea of halving or branching into two parts, binary search is an algorithm, and a binary search tree is a structure that stores data in a way that supports binary-search-like operations. Binary search applies to sorted linear structures like arrays, whereas a BST organizes data hierarchically using nodes. So, they are related by concept but are not the same.
You're right to be cautious. Microsoft 365 does require the device to connect to the internet about every 30 days to keep the license active. If it doesn't, Office apps go into reduced functionality mode (basically read-only).
Unfortunately, Microsoft doesn’t expose the actual license validation date or the number of days remaining in any way that's accessible via VBA or even PowerShell. It's all managed internally by the Click-to-Run service, and there’s no registry key or public API that provides a countdown.
That said, you can work around it by using VBA to log the last time the machine was online. On workbook open, check for an internet connection. If it's online, write the current date to a local text file or a hidden worksheet. Each time the workbook opens, compare today's date to that last online date. If you're getting close to 30 days, display a warning message.
You can probably find example scripts online that do this, or write a simple one yourself. It’s not too complex.
To answer my own question, mock uses the rpm from the target OS to build the package.
The issue with the checkBalance
function not appearing in the Candid UI or responding to CLI calls is likely due to its incorrect declaration using async
in a shared query
function, which isn't necessary and can cause it to be excluded from the generated interface. To fix this, change the method signature to public shared query func checkBalance(): Nat
(removing async
), then stop the DFX server, delete the .dfx
folder, and restart everything cleanly using dfx stop
, rm -rf .dfx
, dfx start --clean
, and dfx deploy
. After redeploying, the method should appear in the Candid UI and respond properly to dfx canister call
commands.
With the new constraints imposed in the edited question, the answer is "there is no implementation possible."
Please accept this answer so I can claim the meaningless 50 points.
sudo ln -s /usr/bin/nodejs /usr/bin/node
This will make the system recognize the node command by linking it to nodejs.
Above answer is right. Please mark above answer as USEFUL.
I am just adding screenshot for better Visualisations
Having the same issue with Python 3.12 and Python 3.13 on Windows 11 x64.
In my case, as it turns out, it's because I have the following in my PYTHONPATH:
C:\Program Files\QGIS 3.28.2\apps\qgis\python
C:\Program Files\QGIS 3.28.2\apps\Python39\Lib\site-packages
Removing this, and there is no need to do anything special with upgrading pip
or choosing specific numpy
version.
fake solutions
nothing is working, time wastage
Did anyone find a solution to this in windows using python/anaconda?
i'm getting:
(deepfacelive) C:\DeepFaceLive-master>python main.py run "DeepFaceLive"--- user data-dir "C:\DeepFaceLive-master"
usage: main.py run [-h] {DeepFaceLive} ...
main.py run: error: argument {DeepFaceLive}: invalid choice: 'DeepFaceLive---\u200auser' (choose from 'DeepFaceLive')
I don't understand where it is getting
"u200auser"
?
did u find a solution i just did the same exsact thing. Anything helpd!
Please double check your .vscode\launch.json.
Check this reference.
Had the same problem. Looked in the Event Viewer and it suggested installing .net5 using this link:
Executed the exe at this link and it worked.
If you can't find the IDL using anchor idl fetch <PROGRAM_ID>
or by visiting https://solscan.io/account/<PROGRAM_ID>
I suggest using tools for IDL reverse engineering like Solvitor
or idlGuesser
: https://solvitor.xyz/public_idl
/<PROGRAM_ID>
You mentioned “I was imagining using one, database-wide, unit of work class”.
I have just begun to design a Unit of Work pattern and had the same concern.
I had been considering one approach which might solve the concern quoted above, but I’m not yet sure of it and I’ve yet to try it. Basically, it utilises the CQRS pattern. Here it is..
Similar to CQRS pattern, where each use-case has a unique pair of Command class and Command’s handler class, how about if we create different UnitOfWork classes for each use-case. This, each use case will now have 3 things, command, its handler and a UoW class.
In CQRS, usually, the handler contains (is dependent) only on the repositories required by it. In my proposal, the repositories needed by that handler may be moved to its UoW class. In the handler, UoW will be injected instead of the repositories.
In this way,
we avoid instantiation of unnecessary repositories,
overhead is removed
It has all Pros of CQRS. UoW is more granular, which is the selling point of CQRS, more maintainable for changing logic with evolving business logic etc.
Anyone buying?
spring.session.store-type=jdbc
spring.session.jdbc.table-name=SPRING_SESSION
spring.session.jdbc.schema=classpath:org/springframework/session/jdbc/schema-postgresql.sql
spring.session.jdbc.initialize-schema=always
spring.session.timeout.seconds=900
spring.session.jdbc.cleanup-interval=3600
To solve this, I added .modelContainer(for: DrinkModel.self)`
to the <AppName>App.swift
App Struct like so:
import SwiftUI
@main
struct DrinkLess_watchOS_Watch_AppApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}.modelContainer(for: DrinkModel.self)
}
}
You need not do this in double precision: single precision is enough! The trouble is what you're using the precision for, and by trying to represent cosines near 1 rather than near 0 you're throwing away all the precision available to you. Navigators in days of yore—with much less precision than modern IEEE 754 binary32 single precision!—had the same problem, and what did they do?
Let's write this as a formula without all the unit conversions—you have latitudes 𝜑₁ and 𝜑₂ and longitudes 𝜆₁ and 𝜆₂ and you want the great-circle angle 𝜃, which you've decided to approach with the relation (probably derived from converting the spherical law of cosines naively to a longitude/latitude coordinate system):
cos 𝜃 = sin 𝜑₁ sin 𝜑₂ + cos 𝜑₁ cos 𝜑₂ cos(𝜆₂ − 𝜆₁).
The crux of the problem is that you're trying to find an angle whose cosine is very close to 1, and you're doing it by computing that cosine. In your example, sin 𝜑₁ sin 𝜑₂ + cos 𝜑₁ cos 𝜑₂ cos(𝜆₂ − 𝜆₁) comes out to roughly 0.999999937 = 1 − 6.3×10⁻⁸, but the single-precision floating-point numbers in [½, 1] can only discern increments of about 6×10⁻⁸, so you've essentially wasted all your precision on those leading nines. Navigators in days of yore didn't even have eight digits (for example, the 1913 tables of E.R. Hedrick and the 1800 tables of Josef de Mendoza y Ríos provide only around five digits), so how did they do it?
You probably grew up on the three trig functions sine, cosine, and tangent if you're much less than a century old, but there are others like haversine (hav 𝜃 = ½ (1 − cos 𝜃)) and exsecant (exsec 𝜃 = sec 𝜃 − 1 = 1/cos 𝜃 − 1)—invented not to torture students in school, but because they made calculations feasible with limited precision! The trick is not to compute the cosine 1 − 𝛿 for very small 𝛿, but instead compute the versine 𝛿, or the haversine ½𝛿, so you can use the full precision available to you to represent it.
The venerable haversine formula relates the latitudes 𝜑₁ and 𝜑₂ and longitudes 𝜆₁ and 𝜆₂ to the great-circle angle 𝜃 by:
hav 𝜃 = hav(𝜑₂ − 𝜑₁) + cos 𝜑₁ cos 𝜑₂ hav(𝜆₂ − 𝜆₁).
This is better for nearby angles because for small angle differences, haversine preserves most of the precision of the input to return a result near 0, while cosine throws it away to return a result near 1.
Of course, the Android math library might be missing a haversine function (pity!), but you can recover it from the trigonometric identity:
hav 𝜃 = ½ (1 − cos 𝜃) = sin²(𝜃/2).
You can always divide by two exactly in floating-point arithmetic (unless it underflows), and squaring won't amplify the error much, so the formula sin²(𝜃/2) will work reliably, and you can recover the inverse archav 𝑥 = 2 arcsin(√𝑥), using functions that probably are in the Android math library. And this identity—together with coordinate transformation between longitude/latitude and spherical triangle angles—is how you can derive the haversine formula from (e.g.) the spherical law of cosines, as the Wikipedia article shows.
Once you use the haversine formula, even if you compute everything in single precision, you get within about 30cm of the exact result in your example, or <0.014% relative error—which is smaller than the error of about 60cm arising from using a spherical approximation to the oblate spheroid of Earth!
Select/option elements In Chrome don't "drop down" if they are inside a draggable element on as explained in: No possibility to select text inside <input> when parent is draggable
Some workarounds are suggested in the link.
I swear to go VBA just likes to screw with me.
refStr = "=" & colName & "[" & colHdr & "]"
This works fine and I have no idea why it wasn't working before. It's like VBA doesn't update to reflect your changes or something.
It turns out that I missed the null checking in the Case class.
private static void OnPropChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
if (d is Case _case && _case.SwitchCase != null && _case.SwitchValue != null)
{
_case.Content = _case.SwitchCase.ToString() == _case.SwitchValue.ToString() ? _case.SwitchContent : null;
}
}
Looks like you aren't awaiting the pool.end()
. This could mean your test runner may exit before pool.end()
resolves which could potentially be leaving open sockets.
afterAll(async () => {
await pool.end();
});
एक लकड़हारा था, जो रोज़ पेड़ काटता। एक दिन पेड़ गिरा नहीं...
पहले वार, दूसरा, तीसरा... दस… बीस… पचास…
लेकिन वो नहीं रुका।
100वें वार पर — पेड़ गिर गया!
लोग बोले — "एक ही वार में गिरा दिया!"
पर उसे पता था…
ताक़त उस एक वार में नहीं, उन 99 हार ना मानने वाले वारों में थी।
This is currently a feature missing from rocket_ws
. There is an open ticket regarding it.
Yes, I had the same issue, then i came across this github issue, to simplify the build the Proj4 projection were removed and only the EPSG:4326 and EPSG:3857 projections are supported.
Here is the link of the github issue
I tried all the suggestions from that short-lived AI answer and the only thing that ended up working for me was installing Python 3.11 using MacPorts, setting up a Venv and reinstalling all dependencies, now the code works like a charm again.
Wish I knew why my old installation broke when I didn't change any of the code files, but I suspect it has something to do with the packages I installed yesterday when toying around with Flask.
Taught me to use a Venv for different projects.
open vscode settings, search for 'exclude', first option will be Files: exclude
or in user settings json file:
"files.exclude": {
"**/*.d.ts": true,
}
Did you make any more progress on this?
After a bit of research, I found this construction:
my ($a, @b, $c);
:($a is copy, @b, $c) := \(42, <a b c>, 42);
$a = 1;
say [$a, @b, $c]; # OUTPUTS: [1 (a b c) 42]
While this is still technically binding, it works the way I wanted — I can reassign $a
afterwards.
Unfortunately, this only works without any declarators. If we write my :($a is copy, @b, $c) := \(42, <a b c>, 42);
, it throws a Cannot assign to a readonly variable or a value
exception when attempting to reassign $a
.
Don't run the form while still encountering errors. It seems like it will just display the last stable version.
template<typename T>
struct Loop {
template<typename U>
struct X{
using type =typename Loop<X>::type;
};
using type = typename X<T>::type;
};
int main()
{
Loop<int>::type;
}
so we are at expo sdk 51 and not planning to upgrade any sooner.
[
"expo-build-properties",
{
"android": {
"compileSdkVersion": 34,
"targetSdkVersion": 35,
"buildToolsVersion": "35.0.0",
}
}
],
will this work for us?
tried the above mentioned answer, but got build error so just making compileSdkVersion:'34' ll work? we are on free eas plan it already takes a long time to start build and i do make direct eas build (no prebuild etc)
{
"expo": {
...
"plugins": [
[
"expo-build-properties",
{
"android": {
"compileSdkVersion": 35,
"targetSdkVersion": 35,
"buildToolsVersion": "35.0.0"
},
}
]
]
}
}
So apparently, I messed the math up, instead of
(img_tk.width() / int(2) + 1)
I need to add the 2, not width/2, meaning I add to add brackets like this:
(img_tk.width() / (int(2) + 1))
Answering as a comment.
I have a .NET 8 API with VueJs frontend using <SpaRoot> setup.
Firstly, check if you're using the SpaRoot in the csproj of the server or not.
The SpaRoot should be pointing to your front end UI folder and there should be an execute command near that SpaRoot element.
You don't need a multi-app start config. When you run the server on its own it should boot up and display "waiting for SPA".
Then VS will run your launch command, think it's default to npm run dev. Where you'll see a console population and build and run the server-host for your UI on a port.
Your page is displaying at your API port and will redirect to the port your UI is at.
If you get debug port errors, could be a config issue or port mismatch in launch settings json and/or your front-end thing.config.json AND csproj Spa settings.
If all else fails, check port availability incase somthing is using it. It happens sometimes.
Aha! I found the problem. The actual problem was not the units, it was the range()
function. I forgot that range()
actually didn't include the final number. To solve it, I replaced
range(1, int(2)+1)
with
range(1, int(2)+2)
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
decoration: BoxDecoration(
gradient: LinearGradient(
colors: \[Colors.blue.shade300, Colors.blue.shade900\],
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
),
),
child: Center(
child: Padding(
padding: const EdgeInsets.all(24.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: \[
Text(
'Versículo do Dia',
style: TextStyle(
fontSize: 28,
color: Colors.white,
fontWeight: FontWeight.bold,
),
),
SizedBox(height: 40),
Container(
padding: EdgeInsets.all(20),
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.9),
borderRadius: BorderRadius.circular(20),
),
child: Text(
versiculoAtual,
style: TextStyle(
fontSize: 20,
fontStyle: FontStyle.italic,
color: Colors.black87,
),
textAlign: TextAlign.center,
),
),
SizedBox(height: 30),
ElevatedButton.icon(
onPressed: gerarVersiculo,
icon: Icon(Icons.refresh),
label: Text('Novo Versículo'),
style: ElevatedButton.styleFrom(
backgroundColor: Colors.white,
foregroundColor: Colors.blueAccent,
),
),
\],
),
),
),
),
);
}
Another thing that i want to suggest.
as you are using "fish" shell..
so try this one time.. see if it's went well or not
"code-runner.executorMap": {
"python": "source .venv/bin/activate.fish && python"
}
You don’t need to retrain your entire model to adapt it to each user’s gesture style. A common approach is to collect a few samples of the user’s swipe gestures (e.g., 10–20 during a calibration step) and use these to fine-tune the detection threshold or train a small classifier on top of your pre-trained model’s embeddings.
For example:
Use your current model as a feature extractor.
Capture user-specific gesture data and adjust the decision threshold based on the model’s confidence scores.
If you need better accuracy, train a lightweight classifier (like logistic regression or SVM) on-device using the captured embeddings.
Frameworks like TensorFlow Lite or Core ML allow on-device personalization, so you can adapt without redeploying the entire model. If on-device retraining isn’t possible, you can collect user data (with consent) and periodically fine-tune the model server-side.
from collections import deque
def reverse_lines(filename):
try:
with open(filename,'r') as f:
lines = deque()
for line in f:
lines.append(line)
while lines:
yield lines.pop()
except FileNotFoundError:
print("File not found")
for line in reverse_lines(r'/content/example.txt'):
print(line)
The following blog post is on chunk parallel download of files using Python and curl:
https://remotalks.blogspot.com/2025/07/download-large-files-in-chunks_19.html
i think this does not work now as text.legnth i am getting 0
import { YoutubeTranscript } from "youtube-transcript";
var transcript_obj = await YoutubeTranscript.fetchTranscript("_cY5ZD9yh2I");
const text = transcript_obj.map((t) => t.text).join(" ");
console.log(text);
a. const should be let
b. greeting === undefined
c. "${this.greeting} ${this.name}" should be `${this.greeting} ${this.name}`
domain="[('id', 'in', duplicate_ids)]"
duplicates = self.env['hr.applicant'].with_context(active_test=False).search(domain)
Ensure the widget context does not override active_test=False
implicitly. Currently, your field looks like this<field name="selected_duplicate_id" widget="many2one" options="{'no_create': True, 'no_open': True}" context="{'active_test': False, 'hr_force_show_archived': True, 'search_default_duplicates': True}" domain="[('id', 'in', duplicate_ids)]" class="oe_inline w-100"/>
You are very close — your backend logic is correct. The final fix likely lies in ensuring the context
is properly passed into name_search()
from the form, and confirming that duplicate_ids
truly includes inactive records at runtime.
Would you like help checking your _get_similar_applicants_domain()
method too? Sometimes the filter (‘active’, ‘in’, [True, False])
might be missing there.
The Yeray's solution above is good enough for a bar chart but not suitable for a line chart where working series (lines) might have zero value.
In that case, when using OnAfterDraw, the working line series are hidden by the customdrawn horizontal line.
In my case I actually needed a solution for a line chart. For this, the best solution seems to be to use the OnBeforeDrawSeries event instead. The remaining code is the same.
If anyone uses the TaChart component in Lazarus instead of TeeChart in Delphi, the approach there is similar. But because OnBeforeDrawSeries event is missing in TaChart, OnAfterCustomDrawBackWall appears to be the best to do the job.
Another possible solution which I've found myself in the meantime is to use a dummy zero line series.
Another solutions specific for TaChart might be available in the Lazarus forum where I asked the same question:
TAChart how to make different width and/or color only for a specific grid line
Good day.
(Sorry, my eng not very good)
According to the GitHub issue(#395 and #272), this problem can be solved using this method
Solution:
Change param in Default Settings (JSON)
"code-runner.executorMap": { ... "python": "$pythonPath -u $fullFileName" ... }
You can set a static path to your Python from the virtual environment. And on the next run, the logic will be as in the screenshot below. (This way you won't encounter the error)
Could not build wheels for ____ which use PEP 517 and cannot be installed directly
pip install <package-name> --no-binary :all:
don’t use pre-built stuff, build it from scratch.
Also, make sure your build tools are up-to-date:
pip install setuptools wheel build
If this helped you, please upvote — it might help someone else too! 👍
The following blog post is on chunk parallel download of files using Python and curl:
https://remotalks.blogspot.com/2025/07/download-large-files-in-chunks_19.html
You need to add this to your manifest.json file
"web_accessible_resources": [
{
"resources": ["page.html"],
"matches": ["http://YourUrl/*"]
}
],
I am wondering is this can be used to implement environmental separation inside the same datatabase, like:
dev.customers
qas.customers
prd.customers
If a user logos on the QAS environment, I would just run:
ALTER USER [yourUser] WITH DEFAULT_SCHEMA = qas;
and then the user will run the app using a test dataset.
Is this a good idea or am I utterly mistaken ?
Okay I am stupid and I got screwed up by pointer arithmetic because buffer is int16_t changed it to void*, worked flawlessly
I have the same issue.. Actually it is not working at all.
Strange thing is I was using https://github.com/StefH/McpDotNet.Extensions.SemanticKernel
await _kernel.Plugins.AddMcpFunctionsFromSseServerAsync("McpServer", new Uri(url), httpClient: _httpClient);
And that worked fine. I wanted to switch to the native SK code but now it does not work anymore.
This should cover what you want to know. Was introduced in 8.1 first class callable syntax.
https://www.php.net/manual/en/functions.first_class_callable_syntax.php