In the newer versions Chroma doesn't accept lists anymore. To bypass this I'm adding the keywords to my document and using where_document $contains to retrieve them. Doesn't work as well but it's better than nothing
For anyone who might be encountering the same problem as me, the answer is to make sure all references are assigned correctly. Both forward and back. Also, I was initially wondering why a particular foreign key is causing problems while others are not. It turns out this particular foreign key is NOT NULLABLE while the others are so it didn't cause a problem. Initially, I was not setting the back references, I only set the references sufficient to perform cascade persist. Example, in the case above, I linked D to B so that when B is saved, D will also be saved. BUT, I did not link D to C so JPA had no idea that D is dependent on both B and C. Also, I removed the reference from C to D because in my case I didn't really need the relationship to be bidirectional.
Log your models (mlflow.log_artifact or mlflow.log_model) to DagsHub’s storage.
Instead of MLflow’s registry, manually version models by naming convention (model_v1, model_v2, etc.) or commit/tag in Git/DVC
The issue was caused by a library not initializing correctly in TestFlight builds, likely due to the archiving process.
Fix:
In Xcode → Build Settings → Deployment → Strip Style, change the value from All Symbols to Non-Global Symbols.
After applying this, the app launched normally on iOS 26 real devices.
I ended up heavy-handedly solving this by destroying the DOM objects and reloading the converse.js javascript itself from scratch.
Did you come up with a solution for this, having a similar problem where a GlobalKTable is the elegant solution but doesn't trigger events as currently constructed.
The workaround I've found is to send that segment a journey that populates tasks for its members (instead of a typical journey that, say, sends emails). See here for basic methodology: https://sirajabousaid.substack.com/p/easily-export-marketing-segment-members. However, I've found unworkable/impractical the final step there to export directly from tasks in Activities view. Instead, I make a contacts view with filters like the following:
Tasks (Regarding) Contains data
Subject Equals [NAME OF TASK]
I'm also interested in the converse of this problem, making a real-time segment from a contacts view (assuming that the fields selection in defining real-time segments can't do the job for whatever reason). If anyone has any solutions there, I'd be grateful.
IntelliJ IDEA 2025.2.2
Rt click on the Main Toolbar then click on "Add Action to Main Toolbar" > "Back / Forward"
Objects of the
datetype are always naive.
https://docs.python.org/3/library/datetime.html#determining-if-an-object-is-aware-or-naive
Therefore, construct a UTC datetime and get its date
import datetime
date = datetime.datetime.now(tz=datetime.timezone.utc).date()
print(date) # 2025-09-23
My personal opinion, though? Keep the aware datetime instead of just the date. You can always call .date() on it, or create a new aware datetime with the hours, minutes, seconds, and microseconds removed.
I can confirm this is a bug in `lld-link.exe`, see here: https://github.com/llvm/llvm-project/issues/82050
A fix is available since LLVM 21.
So I managed to overcome this problem by adding a build-manifest.json file to the "basedirectory" immediately after the npm run build step... but now I'm getting the following error
Here is the the screenshot of the error
and for ?
- parent
- sub module A
- sub module B
-- sub module B1
-- sub module B2
I ran into the same issue while expanding a burger menu on iOS. Tried using 100svh/dvh/lvh and even env(safe-area-inset-bottom), but nothing worked.
What finally helped was handling the body styles differently:
On iOS, set document.body.style.position = 'fixed'.
On other browsers, set document.body.style.overflow = 'hidden'.
This prevents the bottom widget from expanding unexpectedly and makes the element properly use the available viewport.
i know its unrelated but if you looking for a nice scale google docs looks like they have a nice scale and they use these:
:root { font-size: 14px; }
h1{font-size:2rem;}
h2{font-size:1.6rem;}
h3{font-size:1.4rem;}
h4{font-size:1.2rem;}
h5{font-size:1.1rem;}
h6{font-size:1.1rem;font-style: italic;}
RegisteredCredential registered = RegisteredCredential.builder()
.credentialId(result.getKeyId().getId())
.userHandle(request.getUser().getId())
.publicKeyCose(result.getPublicKeyCose())
.signatureCount(result.getSignatureCount())
.build();
This resolves problem
I got this error message when I used the wrong username for the database.
l=int(input("enter the value of l"))
b=int(input ("enter the value of b"))
a=l*b
Print("area of rectangle a")
The issue is that the & character in "Bunnies & Burrows" is being interpreted as the start of an XML entity (like &, <, etc.), but "Burrows" isn't a valid XML entity name.
The Fix: XML Escape the Ampersand
In XML, you need to escape the & character as &:
search_term = "Bunnies & Burrows"xml_safe_term = search_term.replace("&", "&")# Result: "Bunnies & Burrows"
Try this and see if it yields any clues:
<?php
$test = "Bunnies & Burrows";
echo "Original: " . $test . "\n";
echo "Escaped: " . htmlspecialchars($test, ENT_XML1, 'UTF-8') . "\n";echo "Manual: " . str_replace('&', '&', $test) . "\n";
Why not use the object-oriented way of creating plots with matplotlib?
for (site, v) in weather_data.items():
f, ax = plt.subplots()
for day, value in v["Avg"].items():
ax.plot(value[0], value[1], label = site)
ax.legend()
Hi I also run into this issue and running the script here works for me!
https://github.com/microsoft/vscode/issues/208117#issuecomment-2125704871
In case someone gets here... I got this issue and the reason was that I was linking with the release version of the OpenCV library instead of the debug version in my Debug configuration.
I recently encountered a similar problem. It was related to having two biosphere databases in the project, which apparently created a conflict such that flows of one were not characterised.
Metric source - Service Bus Queue
Your application or other components can transmit messages on an Azure Service Bus queue to trigger rules.
I got hit by that as a nice but simple VS Code extension tried to search a huge subfolder (node_modules) for keywords on startup and obviously totally ate up VS Code by this. Disabling "on startup" in the extension's setting made things well.
Now I use solana_program::borsh1::xxx (see https://github.com/baiwfg2/solana-demos/commit/cf9e25b56a4160f64a1e09129d585fe1060f6c64)
Aligning custom buttons perfectly with the default caption buttons using only the HeaderTemplate can be quite limiting. The HeaderTemplate is primarily intended for defining the header content, not for integrating with the native window caption controls.
To achieve precise alignment and behavior similar to default caption buttons, it is recommended to customize the style of the floating window itself. Specifically, it can be modified the - FloatWindowStyle by accessing the NativeWindowStyle property of the DockingManager.
In the attached sample, a custom Refresh button was added directly into the header style and bound it to the ContentControl within the NativeFloatWindow template. This approach ensures the custom button aligns seamlessly with the default window controls and behaves consistently. Attached are the sample project and demo video for reference.
If you use prettier 2, then use the HTML parser:
const prettierHtml = await import('prettier/parser-html');
To become a great developer, start with a strong foundation. Learn the basics of programming: variables, loops, functions, and object-oriented programming. Study data structures and algorithms like arrays, trees, and sorting—they teach you how to solve problems efficiently. Basic math and logic will sharpen your thinking.
Pick a primary language and master it. Popular choices include JavaScript, Python, Java, or C#. Once comfortable, explore others to broaden your skills. Learn to use Git for version control and get familiar with command-line tools. Practice using IDEs like VS Code or IntelliJ.
Understand databases—both SQL (e.g., MySQL, PostgreSQL) and NoSQL (e.g., MongoDB). Learn the web basics: HTML, CSS, JavaScript, and how the internet works (HTTP, APIs). Choose a framework or library relevant to your path, such as React for front-end or Node.js/Django for back-end.
Focus on problem-solving. Use platforms like LeetCode, HackerRank, or Codewars to practice coding challenges. Learn design patterns and software architecture principles like SOLID to write clean, scalable code. Study testing (unit and integration tests) and debugging techniques.
Build real projects. Start with small tasks like a to-do app or personal website. Progress to full-stack apps, collaborative work, or open-source contributions. Deploy your projects using GitHub Pages, Netlify, or Vercel and keep a public portfolio.
Develop professional skills. Communicate clearly with teammates and non-technical people. Learn Agile or Scrum workflows and tools like Trello or Jira. Be open to code reviews and feedback—they improve your skills and teamwork.
Keep learning. Technology changes fast, so follow blogs, podcasts, or conferences. Study cloud computing (AWS, Azure, GCP), APIs, microservices, and security practices. Over time, consider specializing in areas like AI/ML, mobile development, blockchain, or SaaS.
Build good habits. Code consistently, even in small amounts. Read other developers’ code to learn new techniques. Teach others through blogging or mentoring—explaining ideas deepens your understanding. Join communities like Reddit’s r/programming, Dev.to, or local meetups to connect and learn.
Finally, stay curious and patient. Becoming an excellent developer takes time and practice. Focus on problem-solving, keep improving your projects, and seek feedback. Combine strong technical skills, effective communication, and consistent effort—you’ll stand out as a capable and adaptable developer.
I just ran into same problem
what if you add a timer to your app that is being refreshed every sec, and if time ever runs out it will mean app was closed.
Thanks for the answer but this isn't convinient at all.
Let's say I just want to show a list of cars, and I have a li containing the color like this
Color: {color}
I can't use this color to style the div with tailwind classes (to give a red background for example) so I'll have to create a 2nd variable and imo that's bad ... I would like to use only one variable to do 2 things.
The only solution I found is to use the safelist array in the config file and it's a bad solution so I was looking for a real better solution.
I was under the impression that postcss fixed it but the issue came back so probably didn't came back.
If someone can enlighten me I would appreciate, thanks in advance.
You can duplicate the measure you are using on the chart and create a new one to show data from 2020 to 2023 as adotted line. The original measure reflects data from 2020 to 2023 and is solid color. You add both measures and create a dual axis charts. Then under marks you can edit the line before the 2023 data and after. Otherwise you can't make a semi solid, semi dotted (yet).
0
you can use my captcha Library :
Require this package with composer:
composer require hpd/captcha
Usage:
<img src="{{captcha_get_src()}}" title="Captcha" alt="Captcha">
<div> {!!captcha_get_img()!!}</div>
/* Validation */
Route::post('captcha_check', function() {
$validator = Validator::make($request->all(), [
'captcha' => 'required|captcha',
]);
if ($validator->fails()) {
return redirect()->back()
->withErrors($validator)
->withInput();
}
});
This package also supports API mode.
👉 Read more at the link below
In Tableau Desktop try using the top toolbar: Analysis -> Table Layout -> Show Empty Rows / Columns.
Your data disappears because you’re running MongoDB with --rm, which deletes the container before it can flush data to disk. Also, show dbs won’t display your notes DB until it has real data written. To fix this, remove --rm from your docker run so the container shuts down cleanly, and always check with use notes; db.notes.find() instead of just show dbs. Also confirm your volume is mounted with docker volume inspect mongodb. This way, your data will persist across restarts.
I saw the same behavior and it turned out not to be Cloudflare or our backend at all. The culprit was Norton Safe Web’s QUIC/HTTP3 scanning — when enabled, it caused random stalls before DNS/connection. Disabling just that feature fixed the issue completely. Worth checking if affected users run Norton or similar AV software.
You can manually dispose of a provider in Flutter by calling dispose() on the controller or state object within your widget's dispose() method.
you can use my captcha Library :
Require this package with composer:
composer require hpd/captcha
Usage:
<img src="{{captcha_get_src()}}" title="Captcha" alt="Captcha">
<div> {!!captcha_get_img()!!}</div>
/* Validation */
Route::post('captcha_check', function() {
$validator = Validator::make($request->all(), [
'captcha' => 'required|captcha',
]);
if ($validator->fails()) {
return redirect()->back()
->withErrors($validator)
->withInput();
}
});
👉 Read more at the link below
const el = {
container: qs('.mo-container'),
i: qs('.lttr--I'),
l: qs('.lttr--L'),
o: qs('.lttr--O'),
v: qs('.lttr--V'),
e: qs('.lttr--E'),
y: qs('.lttr--Y'),
o2: qs('.lttr--O2'),
u: qs('.lttr--U'),
lineLeft: qs('.line--left'),
lineRight: qs('.line--right'),
colTxt: "#763c8c",
colHeart: "#fa4843",
blup: qs('.blup'),
blop: qs('.blop'),
sound: qs('.sound'),
image: qs('.mo-image')
};
That API has not been fully deprecated. There are some endpoints (like the one we're talking about here, to retrieve the reviews data) that have not been migrated yet. For those, according to the documentation, the old API v4.9 must be used. Still it does not work.
Leo Rebaz, where you able to solve this?
Don’t try to solve this with DRM overlays (that’s fragile and misleading).
Instead : Look at SecureDrop → open-source, vetted, designed for exactly this.
body { font-family: Tahoma, sans-serif; background: #f0f8ff; margin: 20px; text-align: center; } h1 { font-size: 40px; margin-bottom: 30px; color: #2a4d69; } .students { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; justify-items: center; margin-bottom: 40px; } .student { width: 120px; height: 150px; background: white; border: 2px solid #2a4d69; border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 5px; } .photo { width: 100%; height: 100px; background: #d3d3d3; border-radius: 5px; } .name { font-size: 14px; font-weight: bold; color: #333; } .schedule { margin-top: 40px; } table { margin: 0 auto; border-collapse: collapse; width:؟
According to AWS support, cancelling the CompletableFuture with a timeout doesn't cancel the underline reactive stream. The solution is to rely on an AtomicBoolean to stop delivering the pages to the consumer when desired.
It looks like the error happens because you’re using a single MySQL connection (mysql.createConnection) instead of a pool. A single connection can drop if the server restarts or if it times out, which is why you get PROTOCOL_CONNECTION_LOST.
A better approach is to use a connection pool. That way MySQL automatically reuses or refreshes connections:
const mysql = require('mysql2');
const pool = mysql.createPool({
host: 'localhost',
user: 'root',
password: '',
database: 'charity_tracker',
waitForConnections: true,
connectionLimit: 10,
queueLimit: 0
});
module.exports = pool.promise();
Using a pool usually fixes the “connection lost” problem.
If you still get the same issue, check the MySQL error logs. Sometimes tables get corrupted after crashes, and that can also cause random disconnects. You can run:
CHECK TABLE users;
CHECK TABLE donations;
Hey we are also facing the same issue. Did you find any solution to tackle this. we are currently using 3.5v2 with agent collaborators and enabled prompt overriding for orchestration. Please let me know if you find any
Had the same problem. idk if its right but it works on my code
grades = {
"lance": [1, 2, 3],
"nate": [1, 2, 3]
}
index = 0
arr = list(grades)
str = arr[index]
grades.pop(str)
print(grades)
I have found the way pip is getting installed with python3.13-pip
If we install python3-pip , we can directly call pip install command but with python3.13-pip we have to call pip3.13 install, it is not linking directly with either pip or pip3.
This is strange behaviour as python 3.9 reached eol , the way of new package installation should have changed. Anyway posting my findings here.
I had this error when I imported by mistake a server module in some client code. Check your recently added imports.
pg_stat_activity doesn't give you the real connections, it gives you the backends. Parallel executions would have multiple entries so your select should be like:
select count(*) from pg_stat_activity where leader_pid is not null;
It seems like it's safe, because it uses ClickCliRunner for tests, it proxies result_value from click, and click itself supports standalone_mode param. Discussion about the param in typer.
I found the issue, i setup fonts and created a `react-native.config.js` file, after backtracking my changes and removing this file, it fixed the issue. Further debugging the issue; there was an additional empty object in this file that was causing this issue:
Previous Version:
module.exports = {
project: {
ios: {},
android: {},
},
assets: ['./app/assets/fonts/'],
};
Updated Version:
module.exports = {
assets: ['./app/assets/fonts/'],
};
This fixed the issue.
This happens because of how Python handles list multiplication. Here's a full example:
---
### Example:
```python
# Works as expected
matrixM = [[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]
matrixM[1][1] = 2
print(matrixM)
# Output: [[0, 0, 0, 0], [0, 2, 0,]()]()
Use a list comprehension to create independent sublists:
matrixA = [[0]*4 for _ in range(4)]
matrixA[1][1] = 2
print(matrixA)
# Output: [[0, 0, 0, 0], [0, 2, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
Import/export is supported (see https://github.com/p2-inc/keycloak-orgs/issues/147). That said, import/export from admin console does not include users nor organizations. You can export organizations with the CLI (see https://www.keycloak.org/server/importExport#_exporting_a_specific_realm) to see the expected format. You can then import again your realm with the CLI too but also with the /admin/realms Rest endpoint what is simpler than configuring everything with finer grain Rest endpoints.
same issue, , cans someone help, with error :
(index):1 GET http://localhost:4201/ 404 (Not Found)
Refused to connect to 'http://localhost:4201/.well-known/appspecific/com.chrome.devtools.json' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.
Indeed, this formatting is applied in the SOURCE tab, not in the PREVIEW tab.
For example, set h1 to red (#FF0000) and restart eclipse. The effect will be visible in the markdown source, with no difference in the rendered view.
Looks like the rendering cannot be changed.
after you run npm run build , where you generate the dist folder ? public or ressources ? make sure you point to the correct css files after building
I had the similar problem, only it was on a remote machine where the tests were executed via a azure pipeline:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
goals: 'clean verify'
options: '--quiet -Dfile.encoding=UTF-8 -f pom.xml -Dcucumber.options="--plugin pretty src/test/java/acceptancetests/testCases"'
It accured only after adding the --plugin/pretty part. After removing it from the command, I worked fine again. I still don't know why this plugin doesn't create the cucumber.json file.
In Lucene, scores can differ between partitions even if the document fields match exactly. The reason is that Lucene’s scoring depends not only on term frequency (TF) and inverse document frequency (IDF) within each partition but also on how big and diverse the index is.
For example:
IDF differences → If “John” or “Smith” appears more frequently in Partition 0 than in Partition 1, Lucene will assign a slightly different IDF value, which changes the score.
Normalization → Field length normalization and document norms may differ across indexes, which affects scoring.
Independent statistics → Each partition is scored in isolation, so two identical matches won’t necessarily get the same numeric score.
If you want consistent scores across partitions, you’d need to:
Use a MultiSearcher / IndexReader that merges statistics across indexes.
Or normalize the scores manually after retrieval if you’re always querying partitions separately.
The important part is: scores are relative within a single index, not absolute across different ones. As long as the top matches are identical, the small score difference doesn’t usually matter.
By the way, I recently wrote about how Lucene scoring concepts feel similar to how different worlds are weighted in Anime Witcher — worth checking if you like technical + fantasy blends.
The neumorphic flutter plugin flutter_neumorphic is discontinued, instead you can use gusto_neumorphic or flutter_neumorphic_plus
The issue is with bar: dict as it seems to be a too generic type.
What worked for bar are:
from typing import Literal
bar: dict[Literal["bar"], str] = {"bar": "bar"}
# or
class BarDict(TypedDict):
bar: str
bar: BarDict = {"bar": "bar"}
This means, that it's some sort of an "all in" situation if this way of typing wants to be used.
Cool new things are coming in this area, for example have a look at extra items https://peps.python.org/pep-0728/#the-extra-items-class-parameter
it's late but. Yes. You can use i18nGuard — an i18n‑aware linter for JS/TS that flags hard‑coded strings and also checks missing/unused keys across i18next, React‑Intl (FormatJS), and Lingui. I wrote a short post with setup and examples here: Stop shipping hard‑coded strings: Meet i18nGuard — an i18n linter for JS/TS (i18next, React‑Intl, Lingui) (https://dev.to/rmi_b83569184f2a7c0522ad/stop-shipping-hard-coded-strings-meet-i18nguard-an-i18n-linter-for-jsts-i18next-react-intl-4m8a).
I prefer to use many-to-one to prevent recursive and relational fetching issue. You don't need to manage fetch type... It's less effort and less error... and less Frustate...
@Entity
@Data
public class Content {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long contentId;
private String contentName;
@Column(columnDefinition = "TEXT")
private String synopsis;
@ManyToOne
@JoinColumn(name = "content_type_id")
private ContentType contentType;
@ManyToOne
@JoinColumn(name = "country_code")
private Country countryCode;
private String portraitUrl;
private String landscapeUrl;
private Boolean featured;
@Enumerated(EnumType.STRING)
private ContentApprovalStatus approvalStatus;
@CreationTimestamp
private LocalDateTime createTime;
@UpdateTimestamp
private LocalDateTime updateTime;
@Entity
@Data
public class ContentGenre {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long contentId;
@ManyToOne
@JoinColumn(name = "content_id")
private Content content;
@ManyToOne
@JoinColumn(name = "genre_id")
private Genre genre;
}
@Entity
@Data
public class ContentLanguage {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long contentId;
@ManyToOne
@JoinColumn(name = "content_id")
private Content content;
@ManyToOne
@JoinColumn(name = "language_id")
private Language language;
}
You don't need @OneToMany contentCrews inside Content Entity, you have Content and Crew on ContentCrew, so delete it
@OneToMany(mappedBy = "content", cascade = CascadeType.ALL, orphanRemoval = true)
private Set<ContentCrew> contentCrews;
You dont need @OneToMany contentCrew inside Crew Entity, you have ContentCrew table to handle it.
@OneToMany(mappedBy = "crew", cascade = CascadeType.ALL, orphanRemoval = true)
private Set<ContentCrew> contentCrews;
So, you just need ContentCrews to manage content and crews. If you want to get content by crew or get crew by content, jut use ContentCrew table and delete fetchType.LAZY.
public class ContentCrew {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@JoinColumn(name = "content_id")
private Content content;
@JoinColumn(name = "crew_id")
private Crew crew;
private String role;
}
This is the easiest manage entity for you...
the warning errors that you are observing in the logs are related to the JFConnect microservice in the Artifactory. The JFConnect is trying to communicate with the https://jes.jfrog.io/api/v1/register, and it is returning connection refused. Since you are using a proxy, you may specify the proxy configuration as below :
For Helm -
jfconnect:
# Configure only if you use an Artifactory version before 7.77.
extraEnvironmentVariables:
- name: http_proxy
value: http://<proxy URL>/
- name: https_proxy
value: http://<proxy URL>/
- name: no_proxy
value: localhost,127.0.0.1
other installation types - add the following configuration in system.yaml file -
jfconnect:
# Configure only if you use an Artifactory version before 7.77.
env:
http_proxy: "http://<proxy URL>"
https_proxy: "http://<proxy URL>"
no_proxy: “localhost, 127.0.0.1”
check this article for more information ! https://jfrog.com/help/r/jfrog-installation-setup-documentation/jfconnect-microservice
Found what was wrong :
in the primary request for obtaining a token, header returned was in lower-case : x-subject-token but for deleting it, it must be 'word capitalized' : X-Subject-Token
Try running wp media regenerate or using plugin that does the same.
How about google ceres, I use it to replace my scipy "l_bfgs_b", it is fine.
But my prolem is pretty simple, not sure about complicated problems.
@Frank thanks you are right. when I rewrite body of udf whole example looks like:
import org.apache.spark.sql.functions.{udf, struct}
val reduceItems = (items: Row) => {
// getting array of struct from struct
val a = items.getAs[Seq[Row]]("second")
// summing struct item in array
a.map(_.getAs[Int]("navs")).reduce(_ + _)
}
val reduceItemsUdf = udf(reduceItems)
// passing struct of array of struct
h.select(reduceItemsUdf(struct("*")).as("r")).show()
and it works in spark 4, but I still do not know where was problem, why parameter can't be Seq?
In my case, Android Studio (Narwhal 3 Feature Drop | 2025.1.3) showed no warnings.
However, an older revision of the API Level 36 emulator did.
After updating to revision 7, the 16 kB alignment warning disappeared.
I finally found the way using chilkat2, thanks to some now deleted comment that pointed me to this example code.
Apparently, chilkat can use whatever .dll you choose to manage card readers and make operations with them, such as listing certificates and even using them. Also has its own pdf signing module. Really powerful.
Anyways, this is the code I ended up using:
# Standard libraries
import sys
# Third-party
import tkinter as tk
import customtkinter as ctk
import chilkat2
'''
PDF Digital signature process
'''
# Dialog asking for PIN
root = tk.Tk()
root.withdraw()
dialog = ctk.CTkInputDialog(title="pin", text="Introduce el PIN de tu tarjeta:")
pin = dialog.get_input()
root.destroy()
# Initialize chilkat2 pkcs11 from Nexus Personal's dll
pkcs11 = chilkat2.Pkcs11()
pkcs11.SharedLibPath = r"C:\Program Files (x86)\Personal\bin64\personal64.dll"
success = pkcs11.Initialize()
if not success:
print(pkcs11.LastErrorText)
sys.exit()
userType = 1 # Normal User
slotId = 0 # This is arbitrary and pin-pointed by me
readWrite = True
success = pkcs11.OpenSession(slotId, readWrite)
if not success:
print(pkcs11.LastErrorText)
sys.exit()
# Login
success = pkcs11.Login(userType, pin)
if not success:
print(pkcs11.LastErrorText)
pkcs11.CloseSession()
sys.exit()
# Get the certificate (on the smart card) that has a private key.
cert = chilkat2.Cert()
success = pkcs11.FindCert("privateKey","",cert)
if (success == True):
print("Cert with private key: " + cert.SubjectCN)
else:
print("No certificates having a private key were found.")
success = pkcs11.CloseSession()
sys.exit()
pdf = chilkat2.Pdf()
# Load the PDF to be signed.
success = pdf.LoadFile(r"template.pdf")
if (success == False):
print(pdf.LastErrorText)
success = pkcs11.CloseSession()
sys.exit()
json = chilkat2.JsonObject()
json.UpdateInt("page",1)
json.UpdateString("appearance.y","bottom")
json.UpdateString("appearance.x","right")
json.UpdateString("appearance.fontScale","10.0")
json.UpdateString("signingAlgorithm","pss")
json.UpdateString("hashAlgorithm","sha256")
i = 0
json.I = i
json.UpdateString("appearance.text[i]",f"Firmado digitalmente por: {cert.SubjectCN}")
i = i + 1
json.I = i
json.UpdateString("appearance.text[i]","current_dt")
# The certificate is internally linked to the Pkcs11 object, which is currently in an authenticated session.
success = pdf.SetSigningCert(cert)
success = pdf.SignPdf(json,r"template_signed.pdf")
if (success == False):
print(pdf.LastErrorText)
success = pkcs11.CloseSession()
sys.exit()
# Revert to an unauthenticated session by calling Logout.
success = pkcs11.Logout()
if (success == False):
print(pkcs11.LastErrorText)
success = pkcs11.CloseSession()
sys.exit()
# When finished, close the session.
success = pkcs11.CloseSession()
if (success == False):
print(pkcs11.LastErrorText)
sys.exit()
print("Success signing.")
The same Eric Evance says that DDD is not reasonable for a simple systems such as user, when creating ubiquitous language just spends time for obvious model.
Evance thinks, also, that in the case of technically complex project DDD is not effective, because lot of technical personnel should understand and learn the ubiquitous language and get domain model. Personally I completely disagree with this, because domain - infrastructure separation solves the problem, when only teams, which specialize in domain logic development must work with the ubiquitous language. Infrastructure developers ( as Kafka events, request routing,database interactions do not have to be perfect in the DDD.
Development of the ubiquitous language takes a time, as well as corresponding learning curve. For the same time a MVP can be build.
However, ubiquitous language helps reduce time for domain description and visualization in a clear and concise form, much better readable than long term demagogy .
I did add extra info why this d string is actually usefull. Please un-hide my post. Thank you.
No — you don’t need php5-mysql.
Since you’re on PHP 7, just install the matching package:
sudo apt-get install php7.0-mysql
sudo systemctl restart php7.0-fpm nginx
That will fix the error.
Got it.
owb = oxl.Workbooks.OpenXML(file,, 2)
did the trick.
https://learn.microsoft.com/en-us/office/vba/api/excel.xlxmlloadoption
You can use this to mark complete:
This can be done for the course or topic completion.
I added the following line of code to solve my problem
implementation 'com.google.android.material:material:1.7.0'
All that was required was the itext.pdfcalligraph package along with a valid license. Once loaded as shown below, Arabic text started displaying correctly. I’m surprised it isn’t mentioned anywhere that having the license is absolutely necessary in addition to the itext.pdfcalligraph package.
LicenseKey.LoadLicenseFile(licenseFile);
I created an NPM package google-maps-vector-engine to handle PBF/vector tiles on Google Maps, offering near-native performance and multiple functionalities. I recommend giving it a try.
4000000000009995 it is u can test for Insufficient funds decline
PUSH only works with addresses, not register names; so use temp EQU 00h instead of temp EQU R0.
Here is the documentation of the StackOverflow API:
Here you will find the newest API version and all the available endpoints.
You may fetch any user data with a similar request like this: https://api.stackexchange.com/2.3/users/{user-id}?site=stackoverflow
Btw, I need some \0 in the middle too.
As a c string ends with cero, I propose...
a d string ending with delete (\x7f).
:-)
Everything you set up looks correct — the only issue is that after adding the new Image Symbol Set, you need to rename the image set to "custom.viewfinder". Once it's done, you’ll be able to use your custom symbol as expected.
Attaching Assests
Sample code
It seems to be a bug. Please vote for IDEA-186221.
If you're just experimenting, you can simply use lifecycle rules to periodically clean up (for example, retaining files for 90 days).
For a production environment, we recommend:
Write a script to identify "active" S3 objects.
Only clean up historical ZIP files and templates that are no longer referenced.
Alternatively, use a custom S3 bucket and overwrite the same file name each time you build to avoid overruns.
@djv
XML opened in Excel from my code:
XML opened in Excel as XML table:
Thanks Achim for your quick and detailed reply — and apologies for including an image of the code. I tried to use the “four backticks” trick (I even attempted something similar at some point) but couldn’t get it to work.
Both of your proposed solutions work fine; the second one, based on "mytemplate.md", is clearly preferable.
There’s only one remaining issue: if I include a graph in the R code, the following is added to the latex file.
\pandocbounded{\includegraphics[keepaspectratio]{media/supplements1/exercise1/ex1-unnamed-chunk-3-1.png}}
However, pdflatex compilation fails because it cannot find the PNG file (I wasn’t able to locate where it gets saved — maybe a temporary folder?). Do you have any idea how to fix this?
By the way, my ultimate goal is to produce a PDF file with all the exercises so I can quickly scan them when preparing exams. With the code I wrote and your suggestions, I’ve almost reached that goal.
Thanks a lot for the wonderful package!
Had the same issue and inside AppShell.xaml in the <Shell> section you can add or change Title="Your Title" to change the title thats being displayed when the app runs as the other solutions didnt update that part for me
flutter build apk
./gradlew assembleRelease
强制插件代码生成: flutter build apk命令会强制Flutter工具链生成所有必要的插件代码和依赖
完整的构建流程: Flutter的构建流程会确保所有插件的native部分被正确编译和链接
依赖关系解决: 先执行Flutter构建可以解决混合开发中的依赖顺序问题
Add the relaxed constexpr flag:
CUDA suggests using the --expt-relaxed-constexpr flag. You can add this in your CMakeLists.txt before you build OpenCV. For example:
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} --expt-relaxed-constexpr")
After that, re-run CMake so it regenerates the Visual Studio solution.
Check CUDA/cuDNN versions:
You’re on CUDA 12.9 and cuDNN 8.9.7, but it’s worth checking NVIDIA’s compatibility matrix for your GPU. Sometimes, even if versions look compatible, there can still be hiccups. If nothing works, try rolling back to a slightly older CUDA release (say, 12.3) along with a matching cuDNN version—this often solves hidden issues.
Consider OpenCV version:
OpenCV 4.12.0 is a bit dated. Newer releases (like 4.9.x or even OpenCV 5) tend to have better CUDA support, especially for the latest GPUs. Upgrading both OpenCV and opencv_contrib might prevent these conflicts altogether.
Verify CUDA installation:
Make sure your CUDA Toolkit is fully installed and your environment variables are set properly (CUDA_PATH, CUDA_PATH_Vxx_x, Path on Windows, etc.). Leftovers from old CUDA installs can sometimes trip up the build.
Do a clean rebuild:
Whenever you change build flags or environment settings:
Delete your existing build folder.
Re-run CMake from scratch.
Open Visual Studio, clean the solution, and then rebuild.
Try lowering optimization:
In Visual Studio’s project settings, reduce the compiler optimization level (under C/C++ → Optimization). Sometimes aggressive optimizations cause CUDA code to fail in odd ways.
Keep an eye on Blackwell issues:
Since you’re working with the new RTX 50-series (Blackwell), there could be some growing-pains with CUDA or OpenCV that aren’t widely documented yet. Checking the NVIDIA developer forums or the OpenCV GitHub issues page might reveal others facing the same problem.
Yes , Golang code can be run using your typescript code. You can write your Golang code then use Cobra to enable it to act on custom CLI commands. then you just need to execute those commands within your typescript code.
HUGE thanks to poster ''96'' concerning the
arm64-v8a.apk
question. Super-- I was looking all over for info on this. But this fellow's info really
sets me straight. Most grateful for the info
best wishes to the poster.
fred
missouri, usa
xss-safe regex with with folders and query support
^ipfs:\/\/(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})([/?#][-a-zA-Z0-9@:%_+.~#?&//=]*)*$
When running the Table Extraction Wizard you can define whether you want the visible value from the indicated cell or the underlying URL associated with it.
Try chosing Extract URL to get the desired outcome.
You need a php-handler on the server to receive posts. I would access it through PHP with $_POST['data'] array.
$.ajax({
url: "upload.php",
type: "POST",
data: formData
Common causes:
1. Duplicate asset declarations
example:
assets\images\background.png
assets\images\background.png
2. Case mismatch on Windows
example:
assets\images\background.png
assets\images\Background.png
3. Stable build cache
Even if your assets are correct, a leftover copy in build/ or .dart_tool/ can trigger this error.
How to Fix?
1. Verify your pubspec.yaml only includes
flutter:
assets:
- assets\images\background.png
2. Delete build/ and .dart_tool/ manually before running again.
3. Run below command
flutter clean
flutter pub get
flutter run
4. App builds successfully!!!! no more PathExistsException. Hurrey 🎉
To fix this: Change max-width to width The issue is that you are using max-width instead of width in your CSS.
The max-width property only sets a limit on how wide the image can be, but it doesn't force it to a specific size. Because you've set a fixed height of 165px, the browser is scaling the image's width to maintain its original aspect ratio, making it wider than 117px.
useNavigation() is a React hook. Hooks only work inside React components that are rendered inside a navigator. But App.tsx is not a screen, it’s your root component, so there’s no navigation context there. That’s why React Navigation throws.
I think you should use navigationRef for this case. (standard practice)
Here is code attached:
create RootNavigation.ts :
import { createNavigationContainerRef } from '@react-navigation/native';
export const navigationRef = createNavigationContainerRef();
export function navigate(name: string, params?: object) {
if (navigationRef.isReady()) {
navigationRef.navigate(name as never, params as never);
}
}
Attach ref to your NavigationContainer :
import { NavigationContainer } from '@react-navigation/native';
import { navigationRef } from './RootNavigation';
export default function App() {
return (
<NavigationContainer ref={navigationRef}>
{/* your Stack.Navigator / Tab.Navigator goes here */}
</NavigationContainer>
);
}
Use navigate in Centrifugo callback:
import { Centrifuge } from 'centrifuge';
import Toast from 'react-native-toast-message';
import { navigate } from './RootNavigation';
useEffect(() => {
const centrifuge = new Centrifuge("wss://centrifugo.xxxxx.xxxxxx/connection/websocket", {
token: "xxxxxxxxxxxxxxxxxxxx"
});
centrifuge.on('connected', ctx => {
console.log(`centrifuge connected over ${ctx.transport}`);
}).connect();
const sub = centrifuge.newSubscription("xxxxx", {
token: 'xxxxxxxxxxxxxxxxxxxx'
});
sub.on('publication', ctx => {
Toast.show({
type: "success",
text1: ctx.data['message']
});
navigate('DetailHistory', {
id: ctx.data['transaction_id']
});
}).subscribe();
return () => {
centrifuge.disconnect();
console.log('Centrifuge client disconnected on cleanup.');
};
}, []);
Hope this fixes your problem.
THANK YOU !
09-2025
let me start by saying that
IT SHOULD NOT BE THIS DIFFICULT TO SETUP A BUILD ENVIRONMENT FOR ARM64 ON AN ARM64 MACHINE!!!!
sorry... had to get that off my chest. :-)
I just purchased the new Lenovo Chromebook Plus with a MediaTek Kompanio ARM 64 cpul and 16 GB of RAM. Why did I buy this? because every attempt to build an Android app on my 8BG Intel-base Chromebook crashed half way through the build process due to lack of memory resources.... sigh
so, it made perfect sense to get an ARM64 based cpu to do my ARM64 base application development... right? wrong!!!
be, for some reason, there is no officially supported ARM64 version of Android Studio... Why? Why? Why?
ok, seriously... done with my rant.... I have it working and I've documented it all..... it only took 4 days, but here it is... (these instructions assume not previous installations have been attempted. I rebuilt from scratch multiple times to get the cleanest set of instructions that I could)
I've tested this installation/configuration on bookworm and trixie
wget -O ~/temp/android-sdk-tools-linux-35.0.2-aarch64.zip \
https://github.com/lzhiyong/android-sdk-tools/releases/download/35.0.2/android-sdk-tools-static-aarch64.zip
wget -q -O - \
https://redirector.gvt1.com/edgedl/android/studio/ide-zips/2025.1.3.7/android-studio-2025.1.3.7-linux.tar.gz \
| tar -C ~/.local/share -xzvf - \
--exclude 'android-studio/jbr/*' \
--exclude 'android-studio/lib/jna/*' \
--exclude 'android-studio/lib/native/*' \
--exclude 'android-studio/lib/pty4j/*'
wget -q -O - \
https://download.jetbrains.com/idea/ideaIC-2025.2.2-aarch64.tar.gz \
| tar -C ~/.local/share/android-studio \
-xzvf - \
--wildcards '*/bin/fsnotifier' \
'*/bin/restarter' \
'*/lib/jna' \
'*/lib/native' \
'*/lib/pty4j' \
--strip-components=1
wget -q -O - \
https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk_ft-21.0.8-linux-aarch64-b1138.52.tar.gz \
| tar -C ~/.local/share/android-studio/jbr \
-xzvf - \
--strip-components=1
mv ~/.local/share/android-studio/bin/studio ~/.local/share/android-studio/bin/studio.do_not_use
sed -i 's/amd64/\$OS_ARCH/' ~/.local/share/android-studio/bin/*.sh
sed -i 's/amd64/aarch64/' ~/.local/share/android-studio/product-info.json
reboot the linux shell and the laptop
sudo rebootlaunch android studio ~/.local/share/android-studio/bin/studio.sh
rm -rf ~/Android/Sdk/platform-tools/lib64 && unzip ~/temp/android-sdk-tools-linux-35.0.2-aarch64.zip -x build-tools/* -d ~/Android/Sdk/
unzip ~/temp/android-sdk-tools-linux-35.0.2-aarch64.zip -x platform-tools/* -d ~/Android/Sdk/build-tools/36.1.0
mv ~/Android/Sdk/build-tools/36.1.0/build-tools/* ~/Android/Sdk/build-tools/36.1.0
rmdir ~/Android/Sdk/build-tools/36.1.0/build-tools
file ~/Android/Sdk/build-tools/36.1.0/aapt2
android.aapt2FromMavenOverride=/home/rhkean/Android/Sdk/build-tools/36.1.0/aapt2
Ok, from cppreference
if pos < size(), or if pos == size() -> Returns a reference to CharT(), if the object referred by the returned reference is modified to any value other than CharT(), the behavior is undefined.
So, overall this code produces undefined behaviour, which just seems to be correct
The SimpleAggregateFunction stores the intermediate state of an aggregate function(eg: max, sum, count), but not its full state as the AggregateFunction (eg: avg, unique). AggregateFunction stores the entire values required to calculate the result.
Use SimpleAggregateFunction if f(R1 UNION ALL R2) = f(f(R1) UNION ALL f(R2)).
eg: sum(A1,A2,A3,B1,B2) = sum(sum(A1,A2,A3) , sum(B1,B2))
Use AggregateFunction otherwise
eg: avg(A1,A2,A3,B1,B2) != avg(avg(A1,A2,A3) , avg(B1,B2))
Note that SimpleAggregateFunction is faster, hence prefer the same over AggregateFunction if the requirement doesn't require full states for the result calculation.
In my case, i used the shortcut Ctrl + ; and it worked to comment out an entire block of code that I selected.