Delete everything inside C:\Users\helci.gradle\caches\ directory.
After that invalidate cashes and Restart Android Studio
@Anders_K @mcaniot Seems like I can't reply to your posts due to thread age. Do either of you know where I can find the documentation for this issue? I have followed both your instructions and got an image to temporarily load yesterday, but now Pepper is back to only displaying a black screen. Any help is greatly appreciated.
You can override unwanted flags in setup.py by modifying extra_compile_args or using a custom build class. Did something similar while tweaking a 3 patti project’s build and it worked fine.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Medical Research PDF Search</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bulma CSS Framework -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<style>
body { padding: 40px; }
.match { background-color: #ffdd57; font-weight: bold; padding: 2px 4px; border-radius: 4px; }
.box { padding: 20px; margin-bottom: 20px; }
.title { color: #363636; }
.notification { margin-top: 20px; }
.hero { margin-bottom: 40px; }
.search-results-section { margin-top: 40px; }
.search-input-container { margin-bottom: 20px; }
.document-card { margin-top: 20px; border-radius: 8px; }
</style>
</head>
<body>
<section class="hero is-primary">
<div class="hero-body">
<p class="title">
Medical Research PDF Search
</p>
<p class="subtitle">
Upload and search medical documents in real-time
</p>
</div>
</section>
<div class="container">
<!-- Upload Section -->
<div class="box">
<h2 class="title is-4">Upload PDF Document</h2>
<div class="field is-grouped">
<div class="control is-expanded">
<div class="file has-name is-fullwidth">
<label class="file-label">
<input class="file-input" type="file" id="pdfFile">
<span class="file-cta">
<span class="file-icon"><i class="fas fa-upload"></i></span>
<span class="file-label">Choose a PDF…</span>
</span>
<span class="file-name" id="fileName">No file selected</span>
</label>
</div>
</div>
<div class="control">
<button class="button is-primary" onclick="uploadPdf()">Upload</button>
</div>
</div>
<p id="uploadStatus" class="help"></p>
</div>
<!-- Search Section -->
<div class="box">
<h2 class="title is-4">Search Documents</h2>
<div class="field has-addons">
<div class="control is-expanded">
<input class="input" type="text" id="searchKeyword" placeholder="e.g., clinical trial, novel virus">
</div>
<div class="control">
<button class="button is-info" onclick="searchPdfs()">Search</button>
</div>
</div>
</div>
<!-- Search Results Section -->
<div class="search-results-section">
<div id="results" class="results-container"></div>
</div>
</div>
<script>
const fileInput = document.getElementById('pdfFile');
const fileNameSpan = document.getElementById('fileName');
fileInput.addEventListener('change', () => {
if (fileInput.files.length > 0) {
fileNameSpan.textContent = fileInput.files[0].name;
} else {
fileNameSpan.textContent = 'No file selected';
}
});
// Function to upload a PDF
async function uploadPdf() {
const file = fileInput.files[0];
const statusDiv = document.getElementById('uploadStatus');
if (!file) {
statusDiv.className = 'help is-danger';
statusDiv.innerText = 'No file selected.';
return;
}
statusDiv.innerText = 'Uploading...';
const formData = new FormData();
formData.append('pdf', file);
try {
const response = await fetch('/upload', {
method: 'POST',
body: formData
});
const result = await response.text();
statusDiv.className = 'help is-success';
statusDiv.innerText = result;
} catch (error) {
statusDiv.className = 'help is-danger';
statusDiv.innerText = 'Error uploading file.';
console.error(error);
}
}
// Function to search PDFs
async function searchPdfs() {
const keyword = document.getElementById('searchKeyword').value;
const resultsDiv = document.getElementById('results');
resultsDiv.innerHTML = '';
if (!keyword) {
resultsDiv.innerHTML = '<div class="notification is-danger">Please enter a keyword.</div>';
return;
}
try {
const response = await fetch(`/search?keyword=${encodeURIComponent(keyword)}`);
const pdfs = await response.json();
if (pdfs.length === 0) {
resultsDiv.innerHTML = '<div class="notification is-warning">No matches found.</div>';
} else {
pdfs.forEach(pdf => {
const pdfCard = document.createElement('div');
pdfCard.className = 'box document-card';
const pdfTitle = document.createElement('h4');
pdfTitle.className = 'title is-5';
pdfTitle.textContent = pdf.filename;
pdfCard.appendChild(pdfTitle);
const escapedKeyword = keyword.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
const regex = new RegExp(escapedKeyword, 'gi');
const highlightedText = pdf.text.replace(regex, `<span class="match">${keyword}</span>`);
const preview = highlightedText.length > 800 ? highlightedText.substring(0, 800) + '...' : highlightedText;
const textContent = document.createElement('p');
textContent.className = 'is-size-7 has-text-grey-dark';
textContent.innerHTML = preview;
pdfCard.appendChild(textContent);
resultsDiv.appendChild(pdfCard);
});
}
} catch (error) {
resultsDiv.innerHTML = '<div class="notification is-danger">Error performing search.</div>';
console.error(error);
}
}
</script>
</body>
</html>
const PDFDocument = require('pdfkit');
const fs = require('fs');
function createSamplePdf() {
// Create a new PDF document instance
const doc = new PDFDocument();
// Pipe the PDF document to a write stream to save it to disk
doc.pipe(fs.createWriteStream('sample.pdf'));
// Add a title to the document
doc.fontSize(20).text('Medical Research Sample Document', {
align: 'center'
});
// Add a subtitle
doc.fontSize(14).text('\nPatient Case Study: Keyword Search Test', {
align: 'center'
});
// Add the main body of text with keywords
doc.moveDown();
doc.fontSize(12).text(
'This document is a sample case study for a research application. The patient, diagnosed with a **novel virus**, ' +
'exhibited a range of symptoms, including fever, persistent cough, and elevated inflammation markers. ' +
'The patient was enrolled in a clinical trial testing a new **treatment protocol**. ' +
'Following treatment, the patient’s inflammation levels returned to normal. The keyword **clinical trial** ' +
'is relevant to this case. Further research will focus on the **novel virus** and its variants.',
{
align: 'left',
indent: 20,
paragraphGap: 10
}
);
// Add a list of keywords for easy reference
doc.moveDown();
doc.fontSize(10).text('Keywords for Search:', { underline: true });
doc.fontSize(10).list(['novel virus', 'inflammation', 'clinical trial', 'treatment protocol', 'variants']);
// Finalize the PDF and end the stream
doc.end();
console.log('sample.pdf has been created.');
}
// Execute the function
createSamplePdf();
const PDFDocument = require('pdfkit');
const fs = require('fs');
const { faker } = require('@faker-js/faker');
function generateRealTimeMedicalPdf() {
const doc = new PDFDocument();
const fileName = 'real_time_clinical_data.pdf';
doc.pipe(fs.createWriteStream(fileName));
// Medical Research Title
doc.fontSize(20).text('Real-Time Clinical Trial Data', { align: 'center' });
doc.moveDown();
// Project details
doc.fontSize(12).text(`Project: Novel Respiratory Drug Trial`, { underline: true });
doc.text(`Trial ID: ${faker.string.alphanumeric(8).toUpperCase()}`);
doc.text(`Monitoring Date: ${new Date().toLocaleString()}`);
doc.moveDown();
// Simulate a real-time stream of patient monitoring data
doc.fontSize(10);
for (let i = 0; i < 50; i++) {
const patientID = `PT-${faker.string.numeric(5)}`;
const eventType = faker.helpers.arrayElement([
'Vital Sign Update',
'Adverse Event Reported',
'Medication Dispensed',
'Patient Interview',
]);
const eventTime = faker.date.recent({ days: 1 });
const bloodPressure = `${faker.number.int({ min: 100, max: 140 })}/${faker.number.int({ min: 60, max: 90 })}`;
const heartRate = faker.number.int({ min: 60, max: 100 });
const oxygenSaturation = faker.number.int({ min: 95, max: 99 });
const note = faker.lorem.sentences(1);
// Write a new line of data
doc.text(`[${eventTime.toLocaleTimeString()}] **${eventType}**: Patient ID ${patientID}`);
doc.text(` - Blood Pressure: ${bloodPressure}, Heart Rate: ${heartRate}, Oxygen Saturation: ${oxygenSaturation}%`);
doc.text(` - Notes: ${note}`);
doc.text('----------------------------------------------------');
}
// Finalize the PDF
doc.end();
console.log(`Successfully created a simulated real-time PDF: ${fileName}`);
}
// Execute the function
generateRealTimeMedicalPdf();
{
"name": "pdf-search-app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@faker-js/faker": "^10.0.0",
"express": "^5.1.0",
"mongoose": "^8.18.1",
"multer": "^2.0.2",
"pdf-parse": "^1.1.1",
"pdfkit": "^0.17.2",
"socket.io": "^4.8.1"
}
}
const express = require('express');
const multer = require('multer');
const pdfParse = require('pdf-parse');
const path = require('path');
const fs = require('fs'); // Import the file system module
const app = express();
const port = 3000;
// An in-memory array to store the extracted PDF data
const pdfDocuments = [];
// Set up Multer to store uploaded files on the disk
const upload = multer({ dest: 'uploads/' });
// Ensure the 'uploads' directory exists
if (!fs.existsSync('uploads')) {
fs.mkdirSync('uploads');
}
app.use(express.static('public'));
// --- File Upload Endpoint ---
app.post('/upload', upload.single('pdf'), async (req, res) => {
if (!req.file || req.file.mimetype !== 'application/pdf') {
return res.status(400).send('Please upload a PDF file.');
}
try {
const filePath = req.file.path;
const dataBuffer = fs.readFileSync(filePath);
const data = await pdfParse(dataBuffer);
// Store the extracted text and original filename in memory
const newPdf = {
id: pdfDocuments.length + 1,
filename: req.file.originalname,
text: data.text
};
pdfDocuments.push(newPdf);
// Clean up the temporary file
fs.unlinkSync(filePath);
res.status(200).send('PDF uploaded and text extracted successfully.');
} catch (err) {
console.error('Error during PDF processing:', err);
res.status(500).send('Error processing PDF.');
}
});
// --- Real-time Search Endpoint ---
app.get('/search', (req, res) => {
const { keyword } = req.query;
if (!keyword) {
return res.status(400).send('Please provide a keyword to search.');
}
const results = pdfDocuments.filter(doc =>
doc.text.toLowerCase().includes(keyword.toLowerCase())
);
res.status(200).json(results);
});
app.listen(port, () => {
console.log(`Server listening on port ${port}`);
});
I had this error when the json file was saved with UTF-16 encoding. Switching to UTF-8 fixed the issue.
Another option is LexoRank which stores the order in strings (Jira uses this for ranking tasks) https://www.youtube.com/watch?v=OjQv9xMoFbg
I'm using Visual Studio 2022 and I was able to add it this way. One thing I noticed though: it doesn’t delete the whole word if it’s inside quotes. it deletes the quote first, and then the word.
Tools--> Options...
Hi Even im facing same issue
Let me know what f you find any solution
I ran into this problem before. But it turns out that the path to the .mov data was wrong. So I think you should check the path first.
Try adding this as an environment variable on Render if using spring boot:
Key:
SPRING_H2_CONSOLE_SETTINGS_WEB_ALLOW_OTHERS
Value:
true
I found this discussion and the solution offered there worked for me.
https://github.com/microsoft/vscode/issues/266335
Solution from there: Run wsl --update from Windows Powershell
Depending on the volume you might benefit from commitment tiers in Log Analytics Workspace (every Application Insights resource is backed up by Log Analytics Workspace for storying logs): https://azure.microsoft.com/en-us/pricing/details/monitor/
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;}
solved with:
quarkus {
set("container-image.tag", sanitizeVersionName(project.version))
}
You can also try using position absolute and moving it downwards depending on the size of the small text
.mat-mdc-checkbox:has(.text-muted) {
.text-muted {
position: absolute;
top: var(--mat-checkbox-label-text-size);
margin-top: 16px; // this can be adjusted
}
}
Open Settings (Cmd + , on macOS).
Search for "acceptSuggestionOnEnter".
Set it to "off".
Similarly, search for "acceptSuggestionOnTab" and disable it.
Check out JNBridge. https://jnbridge.com/
It provides interop both ways, calling java from .net or calling .net from java.
set UIDesignRequiresCompatibility in info.plist to Boolean = YES
Simply we use the following syntax to fetch details:
http://localhost:3000/users?id=1234
or
http://localhost:3000/users?id=1235
The preferred way to check types with Google Test is:
std::any x = 73;
EXPECT_EQ(x.type(), typeid(double));
With recent versions of Google Test this gives a readable output like this:
Expected equality of these values:
x.type()
Which is: char
typeid(double)
Which is: double
With older versions (like 1.11) that still works properly, but only the output is not as readable.
Thanks a lot to Marek R and all the others who provided valuable input.
When you use window.print(), the browser just takes your rendered page and runs it through its print stylesheet (or default rules if you don’t have one). There’s no “pixel-perfect” way to predict where the page will break because the browser converts everything into physical units (inches/mm) based on your screen DPI and printer settings.
If you want predictable results, you should add a @media print CSS section and explicitly control the size of the printed area. For example:
@media print {
@page {
size: A4 portrait; /* or letter/landscape */
margin: 10mm;
}
.page-break {
page-break-before: always;
}
}
Then, you can measure your elements and insert page breaks where needed by adding class="page-break" in your HTML.
The key thing is: don’t rely on screen px measurements. Convert to in, mm, or use percentages relative to the page. That way you can predict when something will spill over an 11-inch page.
It turns out that our process was setup correctly but the JBoss admin on Linux didn't have execute privileges on the JAR file. He added that in and then the driver was able to be registered.
I found these solutions: the first one is more concise if you already have some experience with LDAP, and the second one provides a detailed step-by-step guide.
1- https://github.com/sbrannstrom/nestjs-passport-ldap-example
If you the package was ported from another project, you may want to consider recreating the variables and/or connection managers that are referencing the invalid values.
Charles Mulwa
In Flowise AgentFlow, you can use an agent condition with different vectorStore node in the output, the variable to be checked would be preferably a work flow state.
Looks like the custom-<CPUs>-<MBs> name scheme is used for the N1 family custom machine types.
I recently had this question and found in the GCloud console's Create VM UI that the N1 custom machine type is the only one that maps to this naming scheme. All the other families that support custom types use their family prefix before the custom-....
I cannot find any documentation to definitively clarify the naming scheme so I can't say this is 100% the answer, but seems like it is.
I tried adding this as a comment to Suncatcher answer but the "Add a comment" input area doesn't work for me:
That class (cl_reca_rs_services) doesn't exist in some CRM system. However, copying the code from a S/4 system, replacing re_t_string with stringtab and also copying the content of the include with macros, is quickly done.
There is also REPS SEO_CLASS_OUTPUT which produces a WRITE list which can be processed as described in How to extract the output of called program RAZUGA01 (FUNC LIST_FROM_MEMORY)
MV2 is not yet supported by Chrome, so the problem remains:
Background scripts do not support "document", and content scripts do not support "onCommand".
I have a bookmarklet/JS to switch the current page to dark mode,but I would like to use it only on a hotkey press. None of the solutions work using MV3.
To add to all other answers, I want to point out a really popular use case of this, which is Pandas. They implemented the __getitem__ method (and others). The library does this to index and filter their own spreadsheet like data type. This comes in really usefully when also combining it with with other python features such as slicings.
In other programming languages this term related with operator overloading where you write your own behavior for different features in a programming language.
It turns out I installed OBS via flatpak, so OBS did not have access to the script I was trying to call. I put the script in the OBS sandbox and it works just fine!
"_" looks not valid either : I get "named capturing group is missing trailing '>'" at the _'s position
@YevgeniyAfanasyev This is the main account. When you register to developer.paypal.com, after that you can create as many sandbox accounts, as you like from the developer dashboard
I get that this guide contains what you're concerned about (updates to service worker.js) but honestly following this guide was incredibly easy and worked right off the bat: https://whuysentruit.medium.com/blazor-wasm-pwa-adding-a-new-update-available-notification-d9f65c4ad13
In addition, even the standard pwa documentation suggests updating it as necessary: https://learn.microsoft.com/en-us/aspnet/core/blazor/progressive-web-app/?view=aspnetcore-9.0&tabs=visual-studio#background-updates
I think the problem you are experiencing looks something like this:
<Button onPress(() => router.push("/some-page") />
Where pressing on the button multiple times in quick succession leads to a navigation stack looking like:
["some-page", "some-page", "some-page"]
Ideally, you press the button several times and only navigate to some-page once.
I've found that using the Expo Router component <Link> solves this problem though I can't point to documentation that proves this. Expo must handle the multiple navigation problem within their Link component.
To me this makes sense - why would they make a navigation library without solving this problem in some form?
With GROUPBY function the following result is generated
=GROUPBY(B1:B7,C1:D7,LAMBDA(a,SUM(IF(a<>"",1,0))/ROWS(a)),3,0)
A DSA (Data Structures & Algorithms) approach is most useful when the problem involves efficiency, scalability, or optimization. If you’re dealing with large inputs, need to minimize time/space complexity, or want a reusable, structured way to solve a class of problems (like graph traversal, searching, sorting, or dynamic programming), that’s where DSA really shines.
For everyday coding tasks or small projects, you might not need a full DSA-heavy solution — but for interviews, competitive programming, or systems where performance matters, it’s almost always worth applying.
I’ve also been exploring some customization resources at :
that touch on structured approaches and problem-solving.
main.ts
import { bootstrapApplication } from '@angular/platform-browser';
import { appConfig } from './app/app.config';
import { App } from './app/app';
bootstrapApplication(App, appConfig)
.catch((err) => console.error(err));
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