I Think, by default, this feature doesn’t exist unless you mirror the CodeCommit repository to GitHub.
I'm also looking into this, and something I'm testing out right now is passing the flag --env-var to newmans CLI:
newman run file.json --env-var "ApiKey=${test}"
For, the only solution was to add this option to xcodebuildin CI config:
xcodebuild -downloadPlatform iOS
Thanks to this message.
Declare another @Component for your closeAdvertisement method. Inject that component into this test class.
why did everyone answer this question using Expo? I don't use Expo, and I'm getting this error. If I'm making a simple mistake, please forgive me. I use Firebase in every project, but I'm tired of constantly getting this error in version 0.81:
"Native module RNFBAppModule not found. Re-check module install, linking, configuration, build, and install steps."
The problem is that ImageTool expects success at the top level, not inside data. Return this from uploadByFile:
return {
success: 1,
file: {
url: resp.data.data.file.url
}
};
This will let ImageTool read success and handle the uploaded file correctly.
So yeah, seems like it's a memory issue, thanks to @KellyBundy for the suggestion that I run MemTest86.
There were so many errors in the test that it just gave up when it hit 100000, which is odd, because the system boots just fine and I've never had a problem with crashes (hence why I didn't immediately suspect a hardware problem). Even the simulations run fine (usually) until they reach a certain size. But the memory test was showing a multitude of single-bit errors, always in the first two bytes. I'm not that experienced with this kind of problem, but I tested each of the four modules in each of the four DIMM slots individually, and they all failed all the time, so I think it's probably either a PSU problem or a bad memory controller on the CPU, but until I can find a known-good PSU to swap in, I won't know which (I don't have access to a PSU tester). For reference, there's 128GB of non-ECC UDIMM, which in hindsight may have been a little ambitious. The CPU is a Ryzen 9 3900X.
You have
result = 1
final = result + 1
so final will always be 2
Did you mean
final = final + 1 ?
If we want to see the general concept of the underfitting or overfitting
UnderFitting
in underfitting we get the result not accurate because we don't have enough data to train our model
that's called the Uderfitting
OverFitting
in overfotting we get the result not accurate because we have data in very large amount and our model don't need to much data here the result change because the data is too much large
ChatGPT offered me some other suggestions that finally worked - I closed Visual Studio, emptied the bin and obj folders, and reopened the project. Then I switched everything over to the Assembly references and not the COM references, using Assemblies > "office" (15.0.0.0). That finally resolved the error and let me build and publish the project.
You do not need to implement actual classes.
@Suppress("KotlinNoActualForExpect")
expect object AppDatabaseConstructor : RoomDatabaseConstructor<AppDatabase> {
override fun initialize(): AppDatabase
}
You can follow the implementation steps at: https://developer.android.com/kotlin/multiplatform/room
Remove the line - frontend_nodes_modules:/app/node_modules entirely, or make it an anonymous volume: - /app/node_modules.
In my case it was because when defining the client I had testnet=True which doesn't seem to work for futures trading (it's specified in the docstring that this parameter is only currently available for Vanilla options). Removing this parameter solved the issue.
There are multiple ways to apply tint/accent colors to view hierarchies. The method that worked for my document-based app was setting a Global Accent Color in my project's Build Settings. I like this approach because it allows the user to override the accent color on their device if they so desire.
I am trying to implement this same thing from the last 100 hours but I'm unable to do it. My code uses the same beginscope syntax with a dictionary consisting of a key value pair; but I cant see any custom dimension in application insights. Can someone please help
its a very old post, but I needed this as well.
I knew I made quite a big query earlier today, and I forgot to save it and when I came back to my PC, I saw it shut of by my soon.
I've been looking for a while, but finally found a solution. Here are the steps to find any "lost" query (.sql) that was made use Sql Server Management Studio, in the past 7 days (default). It can be increased to 30.
I did not found the path on which my "unsaved queries" were stored my SSMS. So I did the following:
Open SSMS
Goto Environment > Autorecover, set it to 1 minute and 30 days. Ok & close
Create a new query, select * from dbName.scheme.tablename, and wait 1 minute (or the time that is in the auto recover
Force close the SSMS.exe by ending the task, or killing the ssms.exe process via task manager
Relaunch SSMS as usual, and u should get a popup asking you to recover your previous query/queries. (--> SSMS AutoRecover SCreenshot)
Here you can see the path on which SSMS stores the "autorecover" files. In my case it was
C:\Users\Admin\AppData\Local\Microsoft\SSMS\BackupFiles\Solution1
Open this folder in windows explorer, and you see all kinds of recovered-monthname-day-year-xxxx.sql files.
If you dont wont to open all sql files 1 by 1, to see which is the query you need, use a tool like notepad++ or even SSMS it self, using CTRL + F, and search in files. Specify the directory from above, and search a tablename or something specific you remember using in the query you are searching for
Enjoy ! <3
Although @CodeSmith is absolutely right about the ineffectiveness of such approaches in safeguarding your code, I'm personally not a fan of Root finding why a user might want to do something when it comes to programming questions, so I'll get straight to the answer.
As of now, keyCode is deprecated, unfortunately. The best alternative in my opinion is Code, which has its own limitations too. As mentioned in the official documentation:
“The KeyboardEvent.code property represents a physical key on the keyboard (as opposed to the character generated by pressing the key).”
With that in mind, here's a workaround to block both F12 and Ctrl+Shift+i key combinations.
window.addEventListener('keydown', function(event) {
if (event.code === 'F12') {
event.preventDefault();
console.log('Blocked F12');
}
if (event.shiftKey && event.ctrlKey && event.code === 'KeyI') {
event.preventDefault();
console.log('Blocked Ctrl + Shift + i');
}
});
Thanks to KJ for pointing me in the right direction!
A coworker wrote up a different way to fill the fields using pdfrw, example below:
from pdfrw import PdfReader, PdfWriter, PdfDict, PdfObject, PdfName, PageMerge
from pdfrw.objects.pdfstring import PdfString
def fill_pdf_fields(input_path, output_path):
pdf = PdfReader(input_path)
# Ensure viewer regenerates appearances
if not pdf.Root.AcroForm:
pdf.Root.AcroForm = PdfDict(NeedAppearances=PdfObject('true'))
else:
pdf.Root.AcroForm.update(PdfDict(NeedAppearances=PdfObject('true')))
for page in pdf.pages:
annotations = page.Annots
if annotations:
for annot in annotations:
if annot.Subtype == PdfName('Widget') and annot.T:
field_name = str(annot.T)[1:-1]
if field_name == "MemberName": annot.V = PdfObject(f'(Test)')
if field_name == "Address": annot.V = PdfObject(f'(123 Sesame St)')
if field_name == "CityStateZip": annot.V = PdfObject(f'(Birmingham, AK 12345-6789)')
if field_name == "Level": annot.V = PdfObject(f'(1)')
if field_name == "OfficialsNumber": annot.V = PdfObject(f'(9999999)')
if field_name == "Season2": annot.V = PdfObject(f'(2025-26)')
if field_name == "Season1": annot.V = PdfObject(f'(2025-2026)')
PdfWriter().write(output_path, pdf)
print(f"Filled PDF saved to: {output_path}")
def flatten_pdf_fields(input_path, output_path):
template_pdf = PdfReader(input_path)
for page in template_pdf.pages:
annotations = page.Annots
if annotations:
for annot in annotations:
if annot.Subtype == PdfName('Widget') and annot.T and annot.V:
# Remove interactive field appearance
annot.update({
PdfName('F'): PdfObject('4'), # Make field read-only
PdfName('AP'): None # Remove appearance stream
})
# Flatten page by merging its own content (no overlay)
PageMerge(page).render()
PdfWriter(output_path, trailer=template_pdf).write()
print(f"Flattened PDF saved to: {output_path}")
if __name__ == "__main__":
fill_pdf_fields(template_pdf, filled_pdf)
flatten_pdf_fields(filled_pdf, flattened_pdf)
I researched interactions with NeedAppearances, and found this Stack post:
NeedAppearances=pdfrw.PdfObject('true') forces manual pdf save in Acrobat Reader
The answer provides a code snippet that from what I can tell, acts as a reader generating those appearance streams so the filled in fields actually show their contents.
Code snippet for reference:
from pikepdf import Pdf
with Pdf.open('source_pdf.pdf') as pdf:
pdf.generate_appearance_streams()
pdf.save('output.pdf')
In the end my extractor was correct... after updating from Axum 0.8 to Axum 0.9 everything worked as expected. As far as I've understood Axum 0.8 does not allow to mix multiple FromRequestParts and a FromRequest in the same handler.
The issue relied elsewhere and not entirely in the docker-compose file. The real problem were the base images I was using. As they were minimal, they did not have the curl command and therefore the healthcheck was failing. The solution was just to install curl in the containers within the Dockerfiles.
The base images I was using were python:3.13-slim and node:24-alpine just in case this is useful for someone.
And the solution was to add:
In the python:3.13-slim Dockerfile:
RUN apt-get update && apt-get install -y curl
In the node:24-alpine Dockerfile:
RUN apk add --no-cache curl
Then I had to change the port of the healthcheck for the aiservice because although the port I expose is 8081 internally the port where the app is running is 8080, so the healthcheck ended looking like:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"] # Note that the port has changed!
interval: 10s
timeout: 30s
retries: 5
The key was in running the docker ps command, as Alex Oliveira and sinuxnet had stated. With that I could see that the containers that started were flagged as unhealthy.
The port issue was discovered thanks to some comments in the staging area, even before the post was made public. Heads up to wallenborn as he posted that comment in the staging area.
PD: I am sure this post could be paraphrased better but it is my first time posting something, I'll try to update it to make it more readeable.
Try: bypass_sign_in(user) *
I was also having issues with the config settings not seeming to work and found that sign_in(user, bypass: true) was deprecated eons ago. See: https://github.com/heartcombo/devise/commit/2044fffa25d781fcbaf090e7728b48b65c854ccb
* this may not solve your root issue, but it should address the most immediate issue.
I provided an answer in another similar question: https://stackoverflow.com/a/79761592/15891701
Here's a repeat of that answer:
Conclusion: Blazor server launched within WPF, behaves identically to a Blazor server project created directly in Visual Studio. This means that launching without a `launchSettings.json` file during debugging causes the “{PACKAGE ID/ASSEMBLY NAME}.style.css” file to generate fail. You can also notice this mirrors the effect of double-clicking an exe file in the Debug directory of an ASP.NET Core project.
So just create a launchSettings.json file in the Properties folder with content like this, and debugging will work correctly:
{
"profiles": {
"YourProjectName": {
"commandName": "Project",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
Perfect ✅ I’ll give you the full Python (ReportLab) code so you can generate your luxury-style P.M.B Visionary Manifesto PDF on your own system.
This script:
Uses your logo in the header/footer.
Splits your expanded manifesto into 6–7 pages.
Adds luxury-style colors (green, blue, light gold).
Keeps the layout clean and professional.
🔹 Python Code (ReportLab)
Save this as pmb_manifesto.py and run with python pmb_manifesto.py:
Copy code
Python
from reportlab.lib.pagesizes import A4
from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, PageBreak, Image
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
from reportlab.lib.enums import TA_CENTER, TA_JUSTIFY
from reportlab.lib import colors
# ========= CONFIG =========
logo_path = "pmb_logo.png" # <-- Replace with your logo file path
output_pdf = "PMB_Visionary_Manifesto.pdf"
# ==========================
# Create document
doc = SimpleDocTemplate(output_pdf, pagesize=A4)
styles = getSampleStyleSheet()
# Custom styles
title_style = ParagraphStyle(
name="TitleStyle",
parent=styles["Title"],
alignment=TA_CENTER,
fontSize=22,
textColor=colors.HexColor("#004d26"),
spaceAfter=20
)
heading_style = ParagraphStyle(
name="HeadingStyle",
parent=styles["Heading1"],
fontSize=16,
textColor=colors.HexColor("#004d80"),
spaceAfter=12
)
body_style = ParagraphStyle(
name="BodyStyle",
parent=styles["Normal"],
fontSize=12,
leading=18,
alignment=TA_JUSTIFY,
spaceAfter=12
)
tagline_style = ParagraphStyle(
name="TaglineStyle",
parent=styles["Normal"],
alignment=TA_CENTER,
fontSize=14,
textColor=colors.HexColor("#bfa14a"), # light gold accent
spaceBefore=30
)
# Story
story = []
# Cover Page
story.append(Image(logo_path, width=150, height=150))
story.append(Spacer(1, 20))
story.append(Paragraph("🌿 P.M.B (Pamarel Marngel Barka)", title_style))
story.append(Paragraph("Visionary Manifesto", heading_style))
story.append(Spacer(1, 60))
story.append(Paragraph(
"At P.M.B, we believe that agriculture is the backbone of society, nurturing not just bodies, "
"but communities and futures. Our fields of rice, soya beans, and corn are more than just sources of sustenance; "
"they represent life, dignity, and hope.", body_style
))
story.append(PageBreak())
# Core Values
story.append(Paragraph("Our Core Values", heading_style))
story.append(Paragraph("<b>Integrity:</b> We operate with transparency, honesty, and ethics in all our dealings.", body_style))
story.append(Paragraph("<b>Sustainability:</b> We prioritize environmentally friendly practices, ensuring a healthier planet for future generations.", body_style))
story.append(Paragraph("<b>Quality:</b> We strive for excellence in every aspect of our business, from farming to delivery.", body_style))
story.append(Paragraph("<b>Compassion:</b> We care about the well-being of our customers, farmers, and the broader community.", body_style))
story.append(PageBreak())
# Promise
story.append(Paragraph("Our Promise", heading_style))
story.append(Paragraph(
"We promise to deliver produce that is not only fresh and of the highest quality but also grown and harvested with care and integrity. "
"We strive to create a seamless bridge between nature's abundance and people's needs, ensuring that our products nourish both body and soul.", body_style
))
story.append(PageBreak())
# Purpose
story.append(Paragraph("Our Purpose", heading_style))
story.append(Paragraph(
"At P.M.B, we recognize that our role extends far beyond the boundaries of our business. We believe that every grain we grow carries a responsibility – "
"to the land, to our farmers, to our customers, and to the wider community. That's why we dedicate 5% of our profits to supporting the homeless and vulnerable.", body_style
))
story.append(PageBreak())
# Spirit
story.append(Paragraph("Our Spirit", heading_style))
story.append(Paragraph(
"We embody a unique blend of luxury and humility, playfulness and professionalism, modernity and tradition. "
"Our approach is rooted in the rich soil of our agricultural heritage, yet we are always looking to the future, embracing innovation and creativity.", body_style
))
story.append(PageBreak())
# Vision
story.append(Paragraph("Our Vision", heading_style))
story.append(Paragraph(
"Our vision is to become a symbol of sustainable abundance, empowering communities, impacting lives, and proving that business can be both prosperous and compassionate. "
"We envision a future where agriculture is not just a source of food, but a force for good, driving positive change and uplifting those in need.", body_style
))
story.append(PageBreak())
# Goals
story.append(Paragraph("Our Goals", heading_style))
story.append(Paragraph("<b>Sustainable Growth:</b> To expand our operations while maintaining our commitment to environmental sustainability and social responsibility.", body_style))
story.append(Paragraph("<b>Community Engagement:</b> To deepen our connections with local communities, supporting initiatives that promote food security, education, and economic empowerment.", body_style))
story.append(Paragraph("<b>Innovation:</b> To stay at the forefront of agricultural innovation, adopting new technologies and practices that enhance our productivity and sustainability.", body_style))
# Closing Tagline
story.append(Spacer(1, 30))
story.append(Paragraph("🌿 P.M.B – Freshness in Every Harvest, Hope in Every Heart 🌿", tagline_style))
# Build
doc.build(story)
print(f"PDF created: {output_pdf}")
📌 Instructions
Save your logo as pmb_logo.png in the same folder.
Copy-paste the script above into pmb_manifesto.py.
Run:
Copy code
Bash
python pmb_manifesto.py
It will generate PMB_Visionary_Manifesto.pdf with your brand styling.
👉 Do you also want me to show you how to add a faint luxury-style watermark background (abstract green/blue waves & leaf motifs) behind all pages, so the PDF feels like a real corporate booklet?
Use 127.0.0.1 instead of localhost in pgAdmin.
Why is your goal to re-trigger the User Event script after creation, instead of just having it run on creation in the first place? It seems to me that your UE script is filtered to the Edit event type either on the deployment or within the script itself.
I would check the deployment first, and see if there is a value in the "Event Type" field on the deployment:
Alternatively, you can search for usage of context.UserEventType within the script, as this is what would be used to filter the script to run under certain contexts. See context.UserEventType help article for list of enum values, but it would (likely) be either if (context.type != context.UserEventType.CREATE) or if (context.type == context.UserEventType.EDIT).
Like this
$this->registerJs(
$this->renderFile(
'@app/views/path/js/jsfile.js',
)
, $this::POS_END);
Did you successfully fixed it? I'm running a similar error
If you are installing using the .spec file, you can add PIL._tkinter_finder as a hidden import:
a = Analysis(
...
hiddenimports=['PIL._tkinter_finder'],
)
That solved the issue for me.
Its look like PostgreSQL permissions issue. Please check the user permissions for the user.
So the answer is that the Qt folks treated the appearance of icons in menus as a bug on Mac OS and 'fixed' it in 6.7.3.
There is a sentence in the release notes:
https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.7.3/release-note.md
For ios, i've tried the pip package, and it worked quiet well. Use the example code for more info.
Put the annotations in an abstract parent class in another package? You will need one per Domain Object.
لقد جهزت لك نسخة جاهزة للنسخ إلى Word أو Google Docs، مع جدول وألوان، لتصديرها PDF بسهولة:
---
ملخص درس النفي – الإنجليزية
1️⃣ النفي مع He / She / It
قاعدة: doesn’t + الفعل الأساسي
الفعل بعد doesn’t لا يأخذ -s
أمثلة:
He doesn’t play football. → هو لا يلعب كرة القدم.
She doesn’t like apples. → هي لا تحب التفاح.
He doesn’t read a book. → هو لا يقرأ كتابًا.
2️⃣ النفي مع I / You / We / They
قاعدة: don’t + الفعل الأساسي
أمثلة:
I don’t like tea. → أنا لا أحب الشاي.
You don’t play tennis. → أنت لا تلعب التنس.
We don’t read a story. → نحن لا نقرأ قصة.
They don’t watch a movie. → هم لا يشاهدون فيلمًا.
3️⃣ ملاحظات مهمة
مع He / She / It: في الإثبات الفعل يأخذ -s، أما في النفي doesn’t + الفعل الأساسي بدون -s.
مع I / You / We / They: الفعل يبقى دائمًا في صورته الأساسية بعد don’t.
كرري نطق الجمل بصوت عالٍ 3 مرات لكل جملة لتثبيت القاعدة.
4️⃣ نصيحة للتدريب اليومي
كتابة 5-10 جمل نفي يوميًا عن نفسك أو أصدقائك.
استخدمي الجمل في حديثك اليومي بالإنجليزية حتى لو كانت بسيطة.
تم تجهيز النسخة الجاهزة للنسخ إلى Word أو Google Docs
Go to https://github.com/settings/copilot and turn on “Copilot Chat in IDEs”.
In Visual Studio, re-sign in via Extensions → GitHub Copilot → Sign in and authorize the Chat app in your browser.
Restart Visual Studio and reopen the Copilot Chat window.
You also need to change the .DotSettings file.
Same issue. Any ideas? I did install the Fortran compiler and also have the requisite Xcode tools. brew installing gettext did not help.
Thanks to onlyIf hint from @Cisco I managed to create this helper method which now lives inside my convention plugins:
fun allExistingArtifactChecksumsInRepositoryMatch(
repository: MavenArtifactRepository,
publication: MavenPublication,
): Boolean {
//...
return when (val repositoryScheme = repositoryURI.scheme) {
"http", "https" -> {
// Create the HttpClient and use it to fetch existing checksums
}
"file" -> {
// Use Path objects to do the same thing
}
else -> {
// Maybe add support later, if necessary
println("Unsupported repository scheme $repositoryScheme")
false
}
}
}
After fetching the existing checksums, compute checksums of new artifacts using DigestOutputStream and compare them.
A somewhat important detail seems to be to do this:
val artifactsToCheck = when (publication) {
is MavenPublicationInternal -> publication.asNormalisedPublication().allArtifacts
else -> publication.artifacts
}
This downcast to internal gradle API seems to be necessary to also check metadata artifacts. This is valid for gradle version 8.13.
define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']);
define('ADMIN_COOKIE_PATH', '/');
define('COOKIEPATH', '/');
define('SITECOOKIEPATH', '/');
Add this lines in wp-config.php
The answer was to split out the creation of the app service plans and child web apps into two entirely separate deployment modules, rather than have both app service plans and web apps created in the same deployment module.
Did you find a solution to this ?
It turned out this was a combination of issues that was causing the problem. There were some missing imports and the new standalone: true structure caused another issue. Once those were cleaned up, the code started running.
Trying to pay DSTV but payment is confirmed but not going through, I didn't get confirmation of payment, what can I do
set LD_LIBRARY_PATH environment variable to the path containing your .so files before executing the application
You can display only the bin and last 4 digits of the card.
Mastercard/Visa have now 8 digit bins.
I don't think displaying 12 digits is considered PCI compliant
are you using browserslistrc ?
i had similar issue caused by old browser make compilation warning.
i updated .browserslistrc with
not ios_saf <= 12
You need to download the following files and place them in the folder where you are running PowerShell Script:
git-secrets
secrets.1
| header 1 | header 2 |
|---|---|
| Aryan | Kumar |
| Manju | Devi |
My guess is that you are running the keycloak server not with the https protocol. Your client will then not accept the cookie coming from the server. Either use https or make the API call with {credentials: 'include'}. In Angular this would be { withCredentials: true }
La réponse de "didzispetkus" est valide pour moi.
FWIW: you could implement something very much like what you want, using gcc or llvm on *nix. Not sure about windows - never looked into it.
In particular: you can step through your instrumented executable in your debugger - and explicitly dump coverage data via the relevant callback.
However: the performance you see (from coverage callback to display update) may be poor for various reasons which may or may not be easy to address.
A bigger issue is that this seems like a pretty unusual use model - so it is unlikely that a vendor would implement it.
I confess to be not understand what you are trying to do/what questions you want to answer such that your proposal is the best approach.
Not sure if this is going to help you but if the map is static you could render it using MKMapSnapshotter and display the image instead. That helps. I do this in my app as well.
One other idea could be to try UIKit's MKMapView instead of SwiftUI's Map. I haven't tried that myself.
I believe that one of the comments is correct and I want to elevate it.
I would think that it's the route() function in your blade file that's complaining, not anywhere else. You have cam_id there, but does $item['id'] have a value?
I've run into this mysterious error before that it ended up passing a null value in a route() call. Even if the key is specified, if it doesn't have a value, it is missing.
not sure when this changed but it is now possible to add packages with composer using your module using the extension framework
follow the instructions on this page
I also had to downgrade the Jupyter extension to version 2025.6 instead of 2025.7. I have VS Code version 1.103.2 on macOS. After that, the list of Python Environments was loading correctly.
We've run into the same issue in Safari and WebViews. After the keyboard is shown and then dismissed, the position of position: fixed elements becomes incorrect. It seems that the appearance of the keyboard is messing up the viewport's positioning.
This is when the marshall comes in and does not want to leave. The only way to get him to leave is to throw objects at him. This process is called marshalling objects.
Also do not forget to declare your new entities in your entity reference xml file (entity.xml or other, depending on your other frameworks).
One missing entity in this file -the store entity in this example- will cause this confusing error.
Hibernate will not find the "customer" mappedBy field in the store entity because the store entity is simply unknown, despite everything else in the relationship mapping is correct.
Fixed by changing publishing to a direct path:
msstore publish "{DIRECT_URL_TO_MSIX}" -v -id {APP_ID}
A way to suppress the warning (that the snippet in OP would've raised) is to put a check at the top of Dockerfile:
# syntax=docker/dockerfile:1
# check=skip=InvalidDefaultArgInFrom
It seems that even in recent versions the order matters. The first code shows type warnings in PyCharm 2025.1.3, Python 3.13, SQLAlchemy==2.0.43, the second doesn't:
.filter(MusicLibrary.id == request.id)
.filter(request.id == MusicLibrary.id)
There was an issue with PyCharm that is closed now: https://github.com/sqlalchemy/sqlalchemy/issues/9337 `Pycharm fixed it at 2024.2.2` (posted 2024-10-16)
As I can see in the question asked by Vic the comparison also was "table object.table field" compared to "simple type":
.where(Albums.Id > user_last_sync_id)
I guess that just flipping the comparison fixes the type warnings.
Please correct me if I'm wrong.
Cheers
You cannot use This because you must be in a static function.
uploadWindow.Owner = this; makes it modal then
Just use the MOD function with specifying 1 then after it the number of zeros upon which the number of digits you want , for example :
UPDATE Doctors
SET id = MOD(id,10); // here I got the last digit as the number of zeros is one
SET id = MOD(id,100);// here I got the last 2 digits as the number of zeros is two
I have tried all the options and suggestions here but my prettier code formatter is not working. It started just 2 days ago I'm really exhausted to be honest...
I have received the txt too about my account how I can exet the app or what it is I don't know much about leaks or hacking.. can you guys help me on this esi thank you
Your NG0201: No provider found for _HttpClient error is a classic dependency chain issue! 🔍
The problem: Your StructuredSearchService needs HttpClient, but Spectator's mockProvider() doesn't handle transitive dependencies automatically.
Here's how @halverscheid-fiae.de/angular-testing-factory solves this:
// Spectator setup hell with dependency chain issues
const createService = createServiceFactory({
service: SearchService,
providers: [
provideHttpClient(), // ← Unnecessary complexity
provideHttpClientTesting(), // ← More boilerplate
mockProvider(SimpleSearchService, {
simpleSearch: () => of({ items: [] }),
}),
mockProvider(StructuredSearchService, {
structuredSearch: () => of({ items: [] }),
}),
// Still fails because HttpClient dependency chain is broken! 💥
],
});
import { createServiceFactory } from '@ngneat/spectator/jest';
import { provideHttpClientMock, createCustomServiceProviderMock } from '@halverscheid-fiae.de/angular-testing-factory';
const createService = createServiceFactory({
service: SearchService,
providers: [
// 🎯 One-line HttpClient mock that handles ALL dependency chains
provideHttpClientMock(),
// 🛡️ Type-safe service mocks with compile-time validation
createCustomServiceProviderMock(SimpleSearchService, {
simpleSearch: jest.fn(() => of({ items: [] }))
} satisfies jest.Mocked<Partial<SimpleSearchService>>),
createCustomServiceProviderMock(StructuredSearchService, {
structuredSearch: jest.fn(() => of({ items: [] }))
} satisfies jest.Mocked<Partial<StructuredSearchService>>),
],
});
provideHttpClientMock() provides HttpClient for ALL dependent services// For quick setup, mock everything at once:
const createService = createServiceFactory({
service: SearchService,
providers: provideAngularCoreMocks({
httpClient: true, // ← Handles all HttpClient needs
}),
});
// Then override specific methods in your tests:
beforeEach(() => {
const httpMock = spectator.inject(HttpClient);
jest.spyOn(httpMock, 'get').mockReturnValue(of({ items: [] }));
});
npm install --save-dev @halverscheid-fiae.de/angular-testing-factory
Result: No more NG0201 errors, clean dependency resolution, type-safe mocks! 🎉
// If you still have provider issues, use the debug helper:
import { TEST_DATA } from '@halverscheid-fiae.de/angular-testing-factory';
beforeEach(() => {
console.log('Available providers:', spectator.inject(Injector));
// Helps identify missing dependencies
});
P.S. - Your NX + generated services struggle is exactly why I added the createCustomServiceProviderMock function! 😅
Hope this saves you from the NG0201 nightmare! 🎯
// TypeScript catches mock inconsistencies at compile-time!
const provideMyServiceMock = createServiceProviderFactory(MyService, {
registerUser: jest.fn(() => of(mockResponse)),
// ↑ TypeScript validates this matches your real service
} satisfies jest.Mocked<Partial<MyService>>);
npm install --save-dev @halverscheid-fiae.de/angular-testing-factory
// Replace your entire beforeEach setup with:
import { provideHttpClientMock } from '@halverscheid-fiae.de/angular-testing-factory';
TestBed.configureTestingModule({
providers: [provideHttpClientMock()]
});
P.S. - Your 6 hours of frustration inspired this exact use case in the library! 😅
provideRouterMock()provideActivatedRouteMock({ params: of({ id: '1' }) })provideFormBuilderMock()provideAngularCoreMocks({ httpClient: true, router: true })npm install --save-dev @halverscheid-fiae.de/angular-testing-factory
The goal is simple: Write tests, not mock configuration. �
Structured mediatype suffixes such as +json are now formalized in https://datatracker.ietf.org/doc/html/rfc6838#section-4.2.8
No, don't use task.run(), this will just use an extra thread
You should use Task.Run() only when you must run CPU-bound synchronous code without blocking the main thread.
When using the Scan function, we need to specify the ScanOption count as well. The default count for ScanOptions.scanOptions() in Spring Data Redis is not set, so Redis defaults to its internal value, typically 10.
Flux<String> ids = this.reactiveRedisTemplate.scan(ScanOptions.scanOptions() .match("EGA_ITEM_*")
.count(Integer.MAX_VALUE)
.build());
My solution was to change the Analysis scope option ("Show compiler errors and warnings for") from Entire solution to something else, like Open documents or Current document.
You can find this setting in Tools → Options → Text Editor → C# → Advanced → Analysis.
If you’re trying to hook up Prisma data directly into a shadcn-style command menu, you might find this project useful: DataCommand. It’s built on top of shadcn/ui but adds loadItems and loadOneItem hooks so you can fetch command items from your database or API. That way, instead of hardcoding configs, you can just fetch posts dynamically and render them in the command palette.
New App
Review Time used to be at least 1 week. If there was a policy violation, it could take another week.
In 2025, Review time has reduced significantly. Sept 2025, my App went live within 24 hours. 2 months before another app went live within 48 hours.
App Updates
Production and Beta both can take from 2-3 hours to 48 hours in 2025.
Internal Testing within seconds.
If an App update review is taking too much time like 3-4 days. Just submit another app after updating the app version. It will fix the issue.
If you just want to give .apk file to other people for testing. just upload the file and download the signed apk from playstore and send it on whatsapp or anyother platform.
On iPad, the app icon requirements are slightly different from iPhone, so if you only provided iPhone sizes in your Asset Catalog, iOS will upscale whatever it finds. That’s why you’re seeing a blurry / generic looking icon on iPad.
Here’s what you need to check and fix:
In Xcode, go to Assets.xcassets → AppIcon.
By default, Xcode shows iPhone slots (60pt, 120pt, 180pt, etc.).
For iPad support, you need to switch the AppIcon’s device type.
👉 Select your AppIcon set in the asset catalog. In the right-side Attributes Inspector, under “Devices,” make sure both iPhone and iPad are checked.
Now you’ll see the iPad slots appear (20pt, 29pt, 40pt, 76pt, 83.5pt, 1024pt).
You’ll need to provide images at these sizes (in px):
iPad App Icon
20pt → 20x20 @1x, 40x40 @2x
29pt → 29x29 @1x, 58x58 @2x
40pt → 40x40 @1x, 80x80 @2x
76pt → 76x76 @1x, 152x152 @2x
83.5pt → 83.5x83.5 @2x → 167x167
App Store: 1024x1024 (no alpha, PNG)
If you’re missing, say, the 76pt or 83.5pt iPad icon, iOS will fall back to scaling the iPhone versions, which is what you’re seeing.
After adding the missing sizes, Clean Build Folder (⇧⌘K in Xcode).
Delete the app from the iPad simulator/device.
Re-run and check the new icons.
✅ After doing this, your iPad will display the correct crisp app icon instead of the fallback blurry one.
I dont think you need the exact image pixels if u do need 'em reply back . always happy to help. have a good day
Your 6-hour struggle is exactly why I built @halverscheid-fiae.de/angular-testing-factory! 🚀
Your core issue is mock setup complexity - you're spending more time fighting mocks than testing logic. Here's how the library solves this:
// Manual HttpClient mock hell
beforeEach(async () => {
mockCoreService = MockService(CoreService);
// + HttpClientTestingModule import
// + Manual spy setup
// + Mock return value configuration
// + Prayer that it works 🙏
});
beforeEach(async () => {
await TestBed.configureTestingModule({
providers: [
provideHttpClientMock({
post: jest.fn(() => of({ message: 'Registration successful!', status: 'success' }))
}),
// Your CoreService will automatically use the mocked HttpClient
]
}).compileComponents();
});
HttpClientTestingModule setupsatisfies jest.Mocked<Partial<T>> prevents mock driftCoreService automatically gets the mocked HttpClientit('should submit form successfully', fakeAsync(() => {
// Form setup (unchanged)
component.contactFormGroup.setValue({
username: 'testuser',
fullname: 'Test User',
email: '[email protected]',
password: 'TestPass123!'
});
// Test execution (unchanged)
component.submitForm(new Event('submit'));
tick(100);
// Assertions work because HttpClient is properly mocked
const httpClientMock = TestBed.inject(HttpClient);
expect(httpClientMock.post).toHaveBeenCalledWith(
'http://localhost:3000/register',
expect.any(Object),
expect.any(Object)
);
}));
// TypeScript catches mock inconsistencies at compile-time!
const provideMyServiceMock = createServiceProviderFactory(MyService, {
registerUser: jest.fn(() => of(mockResponse)),
// ↑ TypeScript validates this matches your real service
} satisfies jest.Mocked<Partial<MyService>>);
npm install --save-dev @halverscheid-fiae.de/angular-testing-factory
// Replace your entire beforeEach setup with:
import { provideHttpClientMock } from '@halverscheid-fiae.de/angular-testing-factory';
TestBed.configureTestingModule({
providers: [provideHttpClientMock()]
});
Result: 80% less boilerplate, 100% more reliable tests!
provideRouterMock()provideActivatedRouteMock({ params: of({ id: '1' }) })provideFormBuilderMock()provideAngularCoreMocks({ httpClient: true, router: true })P.S. - Your 6 hours of frustration inspired this exact use case in the library! 😅
The goal is simple: Write tests, not mock configuration.
Hope this saves you (and others) those painful mock-setup hours! 🎉
The solutions using InputBindingBehavior did not work reliably for me. I believe this is due to the fact that the Loaded event does not guarantee that all data bindings are evaluated. The above did work for me on one control but did not work on another simply because the key bindings that were copied onto the parent window did not have a command.
What does seem to work reliably for me is to set the focus in Xaml like this:
<UserControl x:Class="MyApp.UI.Controls.FunctionButton"
...
Focusable="True"
FocusManager.FocusedElement="{Binding RelativeSource={RelativeSource Self}}"
>
...
</UserControl>
I've managed to get things working.
In the real code, I was emitting an event from the stimulus controller after creating the chart but before drawing it. the resulting actions (adding indicators etc) were interfering with the rendering
Qt’s QML engine and tooling expect meta object revisions in .qmltypes files to match their export version.
Your system-installed Qt QML modules (/usr/lib/x86_64-linux- gnu/qt5/qml/QtQuick.2/plugins.qmltypes) have exportMetaObjectRevisions: [0] but the tooling expects it to be [2] (i.e., version 2.0).
This inconsistency triggers the warning in VS Code’s QML extension.
To fix or suppress it
Check Qt version compatibility
Make sure the Qt version used by VS Code extension matches the installed Qt version.
Run qmake -v or qtpaths --version to see your Qt version.
Check the VS Code QML extension documentation or settings for Qt version compatibility.
You can also try reinstalling QT because sometimes Updating or reinstalling QT packages fixes the mismatches.
It turns out that [CaptureConsole] doesn't capture all output. It only captures output to the console for code running in the same thread as the unit test. If you use a TestHost then the ultimate code in the controllers runs in a separate thread and that console output is not captured. Created a documentation issue in github.com/xunit/xunit/issues/3399
I believe that Hascript evaluates the expression twice because boolean is treated in a special way (first checking boolean condition for reusing it in the perform-logic and then 2nd resolving it into a string value for the xml attribute)
For those finding this later and looking for a bot that does this look up rolebot
The scan failed with a timeout on production due to the large amount of data.
Flux<String> ids = this.reactiveRedisTemplate.scan(ScanOptions.scanOptions() .match("EGA_ITEM_*")
.build());
Replaced with the following
Flux<String> ids = this.reactiveRedisTemplate.keys("EGA_ITEM_*");
You are looking for simple "OR gate".
And on the input you have the IsPassword and DoNotAllow property.
You should read this: https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/multibinding?view=net-maui-9.0
You have example for "AND gate": https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/multibinding?view=net-maui-9.0#define-a-imultivalueconverter
You should modify it by returning true inside the cycle, and false on default.
You are not limited to the number of parameters really.
Where do you add that block? In functions.php?
You cannot use IAM policies to stop a SageMaker notebook user from seeing or downloading .py files stored inside the notebook’s filesystem because once they have access to the notebook, they can see all files there. To protect your .py files, keep them outside the notebook instance—like in a private S3 bucket or a private code repository—and have the notebook load or call the code from there. This way, users can run the notebook but won’t have direct access to download your .py files.
9 years later and still it seems the quick search exists for some versions and disappears for others (See this).
So the best one can do is to switch to version 3.4.18 and hope the quick search will appear (haven't tested myself).
Unless there is an option hidden somewhere....
They are overwritten. I am using !reference to add the rules from the template again:
.my_template:
rules:
- if: $FOO != "bar"
when: never
my_job:
extends: .my_template
rules:
- !reference [.my_template, rules] # rules are overwritten, not extended
- if: $SOMETING == "anyting"
With the REGEXEXTRACT function it is quite easy:
=REGEXEXTRACT(A61,"(?<=px="""").+?(?="""")")
It is accepting a single quotation mark within the encapsulated text too.
I opened a bug report for this issue, and the response back from that was that I need to add set check_backend_singleton_instance from the BackendOptions to false as it is a problem with running Quill in the compiler explorer environment.
So, the starting code will look like this
quill::BackendOptions backend_options;
backend_options.check_backend_singleton_instance = false; // needed for compiler explorer environment only
quill::Backend::start(backend_options);
Here's a working compiler explorer environment to show you the full code.
The Ekman6 dataset from the paper Heterogeneous Knowledge Transfer in Video Emotion Recognition is usually available on the authors’ official page. However, since the original link (http://bigvid.fudan.edu.cn/data/Ekman.zip) is not accessible, you can try alternative sources:
Yanwei Fu’s dataset page: https://yanweifu.github.io/Dataset.html
Zenodo (pretrained features and processed data): https://zenodo.org/records/13623249
Papers With Code: https://paperswithcode.com/dataset/ekman6
GitHub projects with related resources: https://github.com/Valendrew/ekman-emotion-detection
as far as i know there is no system variable for the screen name. hascript knows the screen name only as xml attribute
Update yours module references .
Check Manage Module References documentation
https://docs.genexus.com/en/wiki?40172,Manage+Module+References
I've found the problem in the code, and is was in a part outside the example code above :( the receiver code was in a Task.Run(async () => but channels aren't thread safe. So that probably caused the error.
You can set .buttonStyle(.plain) on the button. This will won't alter your label anymore.
what if the file was created in the current branch, but as a test or something , and therefor is not on the main master branch, but should not be in the PR either (basically I just want this file locally)
🔥 ممتاز! دلوقتي رح نرتقي للنسخة النصية شبه Free Fire/ Battler Royale كاملة داخل الكونسول 🚀
مميزات النسخة النهائية:
1. خريطة نصية صغيرة (مثل شبكة 5x5) يتحرك فيها اللاعب.
2. أعداء يتحركون أيضًا في نفس الخريطة.
3. صناديق غنائم وأسلحة وجرعات علاج موزعة عشوائيًا في الخريطة.
4. مناطق آمنة وفخاخ تقلل الصحة عند الوقوع فيها.
5. الهدف: البقاء على قيد الحياة وقتل أكبر عدد من الأعداء للحصول على نقاط.
6. نظام نقاط + قتلى + جولات يظهر في النهاية.
---
🕹️ نسخة Free Fire نصية (C#)
using System;
class Program
{
static void Main()
{
Random rand = new Random();
int حجم\_الخريطة = 5;
char\[,\] خريطة = new char\[حجم\_الخريطة, حجم\_الخريطة\];
// صحة اللاعب وجرعات العلاج
int صحة\_اللاعب = 100;
int علاج\_متاح = 3;
int\[\] موقع\_اللاعب = { 0, 0 };
// الأسلحة وقوتها
string\[\] اسلحة = { "مسدس", "رشاش", "قناصة" };
int\[\] قوة\_السلاح = { 20, 40, 70 };
int سلاح\_مختار = 0;
// نظام النقاط
int النقاط = 0;
int قتلى = 0;
// وضع صناديق عشوائية وأعداء
int عدد\_الأعداء = 3;
int\[,\] مواقع\_الاعداء = new int\[عدد\_الأعداء, 2\];
int\[\] صحة\_الاعداء = new int\[عدد\_الأعداء\];
for (int i = 0; i \< عدد\_الأعداء; i++)
{
مواقع\_الاعداء\[i, 0\] = rand.Next(حجم\_الخريطة);
مواقع\_الاعداء\[i, 1\] = rand.Next(حجم\_الخريطة);
صحة\_الاعداء\[i\] = rand.Next(30, 80);
}
// وضع صناديق عشوائية
int عدد\_الصناديق = 3;
int\[,\] مواقع\_الصناديق = new int\[عدد\_الصناديق, 2\];
for (int i = 0; i \< عدد\_الصناديق; i++)
{
مواقع\_الصناديق\[i, 0\] = rand.Next(حجم\_الخريطة);
مواقع\_الصناديق\[i, 1\] = rand.Next(حجم\_الخريطة);
}
// اللعبة تعمل حتى يموت اللاعب أو ينتهي جولة
bool اللعبة\_نشطة = true;
while (اللعبة\_نشطة)
{
// عرض الخريطة
Console.Clear();
for (int i = 0; i \< حجم\_الخريطة; i++)
{
for (int j = 0; j \< حجم\_الخريطة; j++)
{
if (i == موقع\_اللاعب\[0\] && j == موقع\_اللاعب\[1\])
Console.Write(" P "); // اللاعب
else
{
bool تم\_عرض = false;
for (int k = 0; k \< عدد\_الأعداء; k++)
{
if (i == مواقع\_الاعداء\[k, 0\] && j == مواقع\_الاعداء\[k, 1\] && صحة\_الاعداء\[k\] \> 0)
{
Console.Write(" E "); // العدو
تم\_عرض = true;
break;
}
}
if (!تم\_عرض)
{
bool صندوق = false;
for (int k = 0; k \< عدد\_الصناديق; k++)
{
if (i == مواقع\_الصناديق\[k, 0\] && j == مواقع\_الصناديق\[k, 1\])
{
Console.Write(" C "); // صندوق
صندوق = true;
break;
}
}
if (!صندوق) Console.Write(" . "); // أرض فارغة
}
}
}
Console.WriteLine();
}
Console.WriteLine($"\\n❤️ صحة اللاعب: {صحة\_اللاعب} | 🧪 جرعات علاج: {علاج\_متاح} | 🏆 نقاط: {النقاط} | قتلى: {قتلى}");
Console.WriteLine("حرك اللاعب: w=أعلى s=أسفل a=يسار d=يمين أو q للخروج");
char حركة = Console.ReadKey().KeyChar;
// تحديث موقع اللاعب
int صف\_جديد = موقع\_اللاعب\[0\];
int عمود\_جديد = موقع\_اللاعب\[1\];
if (حركة == 'w') صف\_جديد--;
else if (حركة == 's') صف\_جديد++;
else if (حركة == 'a') عمود\_جديد--;
else if (حركة == 'd') عمود\_جديد++;
else if (حركة == 'q') { اللعبة\_نشطة = false; break; }
// التأكد من حدود الخريطة
if (صف\_جديد \>= 0 && صف\_جديد \< حجم\_الخريطة) موقع\_اللاعب\[0\] = صف\_جديد;
if (عمود\_جديد \>= 0 && عمود\_جديد \< حجم\_الخريطة) موقع\_اللاعب\[1\] = عمود\_جديد;
// التحقق من تفاعل مع صناديق
for (int i = 0; i \< عدد\_الصناديق; i++)
{
if (موقع\_اللاعب\[0\] == مواقع\_الصناديق\[i,0\] && موقع\_اللاعب\[1\] == مواقع\_الصناديق\[i,1\])
{
int حدث = rand.Next(1,4);
if (حدث == 1) // علاج
{
علاج\_متاح++;
Console.WriteLine("\\n✨ وجدت جرعة علاج!");
}
else // سلاح جديد
{
string اسم\_سلاح\_جديد = "سلاح جديد";
int قوة\_جديدة = rand.Next(30,80);
Array.Resize(ref اسلحة, اسلحة.Length +1);
Array.Resize(ref قوة\_السلاح, قوة\_السلاح.Length +1);
اسلحة\[اسلحة.Length-1\] = اسم\_سلاح\_جديد;
قوة\_السلاح\[قوة\_السلاح.Length-1\] = قوة\_جديدة;
Console.WriteLine($"\\n✨ وجدت {اسم\_سلاح\_جديد} بقوة {قوة\_جديدة}");
}
// إزالة الصندوق
مواقع\_الصناديق\[i,0\] = -1;
مواقع\_الصناديق\[i,1\] = -1;
}
}
// التحقق من مواجهة أعداء
for (int i = 0; i \< عدد\_الأعداء; i++)
{
if (صحة\_الاعداء\[i\] \> 0 &&
موقع\_اللاعب\[0\] == مواقع\_الاعداء\[i,0\] &&
موقع\_اللاعب\[1\] == مواقع\_الاعداء\[i,1\])
{
Console.WriteLine($"\\n💀 واجهت {i+1}- {مواقع\_الاعداء\[i,0\]},{مواقع\_الاعداء\[i,1\]}! المعركة تبدأ.");
while (صحة\_اللاعب \> 0 && صحة\_الاعداء\[i\] \> 0)
{
Console.WriteLine($"💀 صحة العدو: {صحة\_الاعداء\[i\]}");
Console.WriteLine($"❤️ صحتك: {صحة\_اللاعب}");
Console.WriteLine("1- هجوم 2- علاج");
char خيار = Console.ReadKey().KeyChar;
if (خيار=='1')
{
صحة\_الاعداء\[i\]-=قوة\_السلاح\[سلاح\_مختار\];
Console.WriteLine($"\\n💥 هاجمت العدو بقوة {قوة\_السلاح\[سلاح\_مختار\]}");
}
else if (خيار=='2' && علاج\_متاح\>0)
{
صحة\_اللاعب+=30; علاج\_متاح--;
Console.WriteLine("\\n🧪 استخدمت علاج +30 صحة");
}
else Console.WriteLine("\\n❌ اختيار خاطئ أو لا يوجد علاج");
// رد العدو
if (صحة\_الاعداء\[i\]\>0)
{
int ضرر\_عدو = rand.Next(5,20);
صحة\_اللاعب-=ضرر\_عدو;
Console.WriteLine($"💀 العدو هاجمك وخسرت {ضرر\_عدو} صحة");
}
}
if (صحة\_اللاعب\>0) {
Console.WriteLine("🏆 قتلت العدو!");
النقاط+=rand.Next(50,150);
قتلى++;
}
}
}
// الأعداء يتحركون عشوائياً
for (int i = 0; i \< عدد\_الأعداء; i++)
{
if (صحة\_الاعداء\[i\]\>0)
{
int تحريك = rand.Next(0,4);
if (تحريك==0 && مواقع\_الاعداء
🔥 ممتاز! دلوقتي رح نرتقي للنسخة النصية شبه Free Fire/ Battler Royale كاملة داخل الكونسول 🚀
مميزات النسخة النهائية:
1. خريطة نصية صغيرة (مثل شبكة 5x5) يتحرك فيها اللاعب.
2. أعداء يتحركون أيضًا في نفس الخريطة.
3. صناديق غنائم وأسلحة وجرعات علاج موزعة عشوائيًا في الخريطة.
4. مناطق آمنة وفخاخ تقلل الصحة عند الوقوع فيها.
5. الهدف: البقاء على قيد الحياة وقتل أكبر عدد من الأعداء للحصول على نقاط.
6. نظام نقاط + قتلى + جولات يظهر في النهاية.
---
🕹️ نسخة Free Fire نصية (C#)
using System;
class Program
{
static void Main()
{
Random rand = new Random();
int حجم\_الخريطة = 5;
char\[,\] خريطة = new char\[حجم\_الخريطة, حجم\_الخريطة\];
// صحة اللاعب وجرعات العلاج
int صحة\_اللاعب = 100;
int علاج\_متاح = 3;
int\[\] موقع\_اللاعب = { 0, 0 };
// الأسلحة وقوتها
string\[\] اسلحة = { "مسدس", "رشاش", "قناصة" };
int\[\] قوة\_السلاح = { 20, 40, 70 };
int سلاح\_مختار = 0;
// نظام النقاط
int النقاط = 0;
int قتلى = 0;
// وضع صناديق عشوائية وأعداء
int عدد\_الأعداء = 3;
int\[,\] مواقع\_الاعداء = new int\[عدد\_الأعداء, 2\];
int\[\] صحة\_الاعداء = new int\[عدد\_الأعداء\];
for (int i = 0; i \< عدد\_الأعداء; i++)
{
مواقع\_الاعداء\[i, 0\] = rand.Next(حجم\_الخريطة);
مواقع\_الاعداء\[i, 1\] = rand.Next(حجم\_الخريطة);
صحة\_الاعداء\[i\] = rand.Next(30, 80);
}
// وضع صناديق عشوائية
int عدد\_الصناديق = 3;
int\[,\] مواقع\_الصناديق = new int\[عدد\_الصناديق, 2\];
for (int i = 0; i \< عدد\_الصناديق; i++)
{
مواقع\_الصناديق\[i, 0\] = rand.Next(حجم\_الخريطة);
مواقع\_الصناديق\[i, 1\] = rand.Next(حجم\_الخريطة);
}
// اللعبة تعمل حتى يموت اللاعب أو ينتهي جولة
bool اللعبة\_نشطة = true;
while (اللعبة\_نشطة)
{
// عرض الخريطة
Console.Clear();
for (int i = 0; i \< حجم\_الخريطة; i++)
{
for (int j = 0; j \< حجم\_الخريطة; j++)
{
if (i == موقع\_اللاعب\[0\] && j == موقع\_اللاعب\[1\])
Console.Write(" P "); // اللاعب
else
{
bool تم\_عرض = false;
for (int k = 0; k \< عدد\_الأعداء; k++)
{
if (i == مواقع\_الاعداء\[k, 0\] && j == مواقع\_الاعداء\[k, 1\] && صحة\_الاعداء\[k\] \> 0)
{
Console.Write(" E "); // العدو
تم\_عرض = true;
break;
}
}
if (!تم\_عرض)
{
bool صندوق = false;
for (int k = 0; k \< عدد\_الصناديق; k++)
{
if (i == مواقع\_الصناديق\[k, 0\] && j == مواقع\_الصناديق\[k, 1\])
{
Console.Write(" C "); // صندوق
صندوق = true;
break;
}
}
if (!صندوق) Console.Write(" . "); // أرض فارغة
}
}
}
Console.WriteLine();
}
Console.WriteLine($"\\n❤️ صحة اللاعب: {صحة\_اللاعب} | 🧪 جرعات علاج: {علاج\_متاح} | 🏆 نقاط: {النقاط} | قتلى: {قتلى}");
Console.WriteLine("حرك اللاعب: w=أعلى s=أسفل a=يسار d=يمين أو q للخروج");
char حركة = Console.ReadKey().KeyChar;
// تحديث موقع اللاعب
int صف\_جديد = موقع\_اللاعب\[0\];
int عمود\_جديد = موقع\_اللاعب\[1\];
if (حركة == 'w') صف\_جديد--;
else if (حركة == 's') صف\_جديد++;
else if (حركة == 'a') عمود\_جديد--;
else if (حركة == 'd') عمود\_جديد++;
else if (حركة == 'q') { اللعبة\_نشطة = false; break; }
// التأكد من حدود الخريطة
if (صف\_جديد \>= 0 && صف\_جديد \< حجم\_الخريطة) موقع\_اللاعب\[0\] = صف\_جديد;
if (عمود\_جديد \>= 0 && عمود\_جديد \< حجم\_الخريطة) موقع\_اللاعب\[1\] = عمود\_جديد;
// التحقق من تفاعل مع صناديق
for (int i = 0; i \< عدد\_الصناديق; i++)
{
if (موقع\_اللاعب\[0\] == مواقع\_الصناديق\[i,0\] && موقع\_اللاعب\[1\] == مواقع\_الصناديق\[i,1\])
{
int حدث = rand.Next(1,4);
if (حدث == 1) // علاج
{
علاج\_متاح++;
Console.WriteLine("\\n✨ وجدت جرعة علاج!");
}
else // سلاح جديد
{
string اسم\_سلاح\_جديد = "سلاح جديد";
int قوة\_جديدة = rand.Next(30,80);
Array.Resize(ref اسلحة, اسلحة.Length +1);
Array.Resize(ref قوة\_السلاح, قوة\_السلاح.Length +1);
اسلحة\[اسلحة.Length-1\] = اسم\_سلاح\_جديد;
قوة\_السلاح\[قوة\_السلاح.Length-1\] = قوة\_جديدة;
Console.WriteLine($"\\n✨ وجدت {اسم\_سلاح\_جديد} بقوة {قوة\_جديدة}");
}
// إزالة الصندوق
مواقع\_الصناديق\[i,0\] = -1;
مواقع\_الصناديق\[i,1\] = -1;
}
}
// التحقق من مواجهة أعداء
for (int i = 0; i \< عدد\_الأعداء; i++)
{
if (صحة\_الاعداء\[i\] \> 0 &&
موقع\_اللاعب\[0\] == مواقع\_الاعداء\[i,0\] &&
موقع\_اللاعب\[1\] == مواقع\_الاعداء\[i,1\])
{
Console.WriteLine($"\\n💀 واجهت {i+1}- {مواقع\_الاعداء\[i,0\]},{مواقع\_الاعداء\[i,1\]}! المعركة تبدأ.");
while (صحة\_اللاعب \> 0 && صحة\_الاعداء\[i\] \> 0)
{
Console.WriteLine($"💀 صحة العدو: {صحة\_الاعداء\[i\]}");
Console.WriteLine($"❤️ صحتك: {صحة\_اللاعب}");
Console.WriteLine("1- هجوم 2- علاج");
char خيار = Console.ReadKey().KeyChar;
if (خيار=='1')
{
صحة\_الاعداء\[i\]-=قوة\_السلاح\[سلاح\_مختار\];
Console.WriteLine($"\\n💥 هاجمت العدو بقوة {قوة\_السلاح\[سلاح\_مختار\]}");
}
else if (خيار=='2' && علاج\_متاح\>0)
{
صحة\_اللاعب+=30; علاج\_متاح--;
Console.WriteLine("\\n🧪 استخدمت علاج +30 صحة");
}
else Console.WriteLine("\\n❌ اختيار خاطئ أو لا يوجد علاج");
// رد العدو
if (صحة\_الاعداء\[i\]\>0)
{
int ضرر\_عدو = rand.Next(5,20);
صحة\_اللاعب-=ضرر\_عدو;
Console.WriteLine($"💀 العدو هاجمك وخسرت {ضرر\_عدو} صحة");
}
}
if (صحة\_اللاعب\>0) {
Console.WriteLine("🏆 قتلت العدو!");
النقاط+=rand.Next(50,150);
قتلى++;
}
}
}
// الأعداء يتحركون عشوائياً
for (int i = 0; i \< عدد\_الأعداء; i++)
{
if (صحة\_الاعداء\[i\]\>0)
{
int تحريك = rand.Next(0,4);
if (تحريك==0 && مواقع\_الاعداء
🔥 ممتاز! دلوقتي رح نرتقي للنسخة النصية شبه Free Fire/ Battler Royale كاملة داخل الكونسول 🚀
مميزات النسخة النهائية:
1. خريطة نصية صغيرة (مثل شبكة 5x5) يتحرك فيها اللاعب.
2. أعداء يتحركون أيضًا في نفس الخريطة.
3. صناديق غنائم وأسلحة وجرعات علاج موزعة عشوائيًا في الخريطة.
4. مناطق آمنة وفخاخ تقلل الصحة عند الوقوع فيها.
5. الهدف: البقاء على قيد الحياة وقتل أكبر عدد من الأعداء للحصول على نقاط.
6. نظام نقاط + قتلى + جولات يظهر في النهاية.
---
🕹️ نسخة Free Fire نصية (C#)
using System;
class Program
{
static void Main()
{
Random rand = new Random();
int حجم\_الخريطة = 5;
char\[,\] خريطة = new char\[حجم\_الخريطة, حجم\_الخريطة\];
// صحة اللاعب وجرعات العلاج
int صحة\_اللاعب = 100;
int علاج\_متاح = 3;
int\[\] موقع\_اللاعب = { 0, 0 };
// الأسلحة وقوتها
string\[\] اسلحة = { "مسدس", "رشاش", "قناصة" };
int\[\] قوة\_السلاح = { 20, 40, 70 };
int سلاح\_مختار = 0;
// نظام النقاط
int النقاط = 0;
int قتلى = 0;
// وضع صناديق عشوائية وأعداء
int عدد\_الأعداء = 3;
int\[,\] مواقع\_الاعداء = new int\[عدد\_الأعداء, 2\];
int\[\] صحة\_الاعداء = new int\[عدد\_الأعداء\];
for (int i = 0; i \< عدد\_الأعداء; i++)
{
مواقع\_الاعداء\[i, 0\] = rand.Next(حجم\_الخريطة);
مواقع\_الاعداء\[i, 1\] = rand.Next(حجم\_الخريطة);
صحة\_الاعداء\[i\] = rand.Next(30, 80);
}
// وضع صناديق عشوائية
int عدد\_الصناديق = 3;
int\[,\] مواقع\_الصناديق = new int\[عدد\_الصناديق, 2\];
for (int i = 0; i \< عدد\_الصناديق; i++)
{
مواقع\_الصناديق\[i, 0\] = rand.Next(حجم\_الخريطة);
مواقع\_الصناديق\[i, 1\] = rand.Next(حجم\_الخريطة);
}
// اللعبة تعمل حتى يموت اللاعب أو ينتهي جولة
bool اللعبة\_نشطة = true;
while (اللعبة\_نشطة)
{
// عرض الخريطة
Console.Clear();
for (int i = 0; i \< حجم\_الخريطة; i++)
{
for (int j = 0; j \< حجم\_الخريطة; j++)
{
if (i == موقع\_اللاعب\[0\] && j == موقع\_اللاعب\[1\])
Console.Write(" P "); // اللاعب
else
{
bool تم\_عرض = false;
for (int k = 0; k \< عدد\_الأعداء; k++)
{
if (i == مواقع\_الاعداء\[k, 0\] && j == مواقع\_الاعداء\[k, 1\] && صحة\_الاعداء\[k\] \> 0)
{
Console.Write(" E "); // العدو
تم\_عرض = true;
break;
}
}
if (!تم\_عرض)
{
bool صندوق = false;
for (int k = 0; k \< عدد\_الصناديق; k++)
{
if (i == مواقع\_الصناديق\[k, 0\] && j == مواقع\_الصناديق\[k, 1\])
{
Console.Write(" C "); // صندوق
صندوق = true;
break;
}
}
if (!صندوق) Console.Write(" . "); // أرض فارغة
}
}
}
Console.WriteLine();
}
Console.WriteLine($"\\n❤️ صحة اللاعب: {صحة\_اللاعب} | 🧪 جرعات علاج: {علاج\_متاح} | 🏆 نقاط: {النقاط} | قتلى: {قتلى}");
Console.WriteLine("حرك اللاعب: w=أعلى s=أسفل a=يسار d=يمين أو q للخروج");
char حركة = Console.ReadKey().KeyChar;
// تحديث موقع اللاعب
int صف\_جديد = موقع\_اللاعب\[0\];
int عمود\_جديد = موقع\_اللاعب\[1\];
if (حركة == 'w') صف\_جديد--;
else if (حركة == 's') صف\_جديد++;
else if (حركة == 'a') عمود\_جديد--;
else if (حركة == 'd') عمود\_جديد++;
else if (حركة == 'q') { اللعبة\_نشطة = false; break; }
// التأكد من حدود الخريطة
if (صف\_جديد \>= 0 && صف\_جديد \< حجم\_الخريطة) موقع\_اللاعب\[0\] = صف\_جديد;
if (عمود\_جديد \>= 0 && عمود\_جديد \< حجم\_الخريطة) موقع\_اللاعب\[1\] = عمود\_جديد;
// التحقق من تفاعل مع صناديق
for (int i = 0; i \< عدد\_الصناديق; i++)
{
if (موقع\_اللاعب\[0\] == مواقع\_الصناديق\[i,0\] && موقع\_اللاعب\[1\] == مواقع\_الصناديق\[i,1\])
{
int حدث = rand.Next(1,4);
if (حدث == 1) // علاج
{
علاج\_متاح++;
Console.WriteLine("\\n✨ وجدت جرعة علاج!");
}
else // سلاح جديد
{
string اسم\_سلاح\_جديد = "سلاح جديد";
int قوة\_جديدة = rand.Next(30,80);
Array.Resize(ref اسلحة, اسلحة.Length +1);
Array.Resize(ref قوة\_السلاح, قوة\_السلاح.Length +1);
اسلحة\[اسلحة.Length-1\] = اسم\_سلاح\_جديد;
قوة\_السلاح\[قوة\_السلاح.Length-1\] = قوة\_جديدة;
Console.WriteLine($"\\n✨ وجدت {اسم\_سلاح\_جديد} بقوة {قوة\_جديدة}");
}
// إزالة الصندوق
مواقع\_الصناديق\[i,0\] = -1;
مواقع\_الصناديق\[i,1\] = -1;
}
}
// التحقق من مواجهة أعداء
for (int i = 0; i \< عدد\_الأعداء; i++)
{
if (صحة\_الاعداء\[i\] \> 0 &&
موقع\_اللاعب\[0\] == مواقع\_الاعداء\[i,0\] &&
موقع\_اللاعب\[1\] == مواقع\_الاعداء\[i,1\])
{
Console.WriteLine($"\\n💀 واجهت {i+1}- {مواقع\_الاعداء\[i,0\]},{مواقع\_الاعداء\[i,1\]}! المعركة تبدأ.");
while (صحة\_اللاعب \> 0 && صحة\_الاعداء\[i\] \> 0)
{
Console.WriteLine($"💀 صحة العدو: {صحة\_الاعداء\[i\]}");
Console.WriteLine($"❤️ صحتك: {صحة\_اللاعب}");
Console.WriteLine("1- هجوم 2- علاج");
char خيار = Console.ReadKey().KeyChar;
if (خيار=='1')
{
صحة\_الاعداء\[i\]-=قوة\_السلاح\[سلاح\_مختار\];
Console.WriteLine($"\\n💥 هاجمت العدو بقوة {قوة\_السلاح\[سلاح\_مختار\]}");
}
else if (خيار=='2' && علاج\_متاح\>0)
{
صحة\_اللاعب+=30; علاج\_متاح--;
Console.WriteLine("\\n🧪 استخدمت علاج +30 صحة");
}
else Console.WriteLine("\\n❌ اختيار خاطئ أو لا يوجد علاج");
// رد العدو
if (صحة\_الاعداء\[i\]\>0)
{
int ضرر\_عدو = rand.Next(5,20);
صحة\_اللاعب-=ضرر\_عدو;
Console.WriteLine($"💀 العدو هاجمك وخسرت {ضرر\_عدو} صحة");
}
}
if (صحة\_اللاعب\>0) {
Console.WriteLine("🏆 قتلت العدو!");
النقاط+=rand.Next(50,150);
قتلى++;
}
}
}
// الأعداء يتحركون عشوائياً
for (int i = 0; i \< عدد\_الأعداء; i++)
{
if (صحة\_الاعداء\[i\]\>0)
{
int تحريك = rand.Next(0,4);
if (تحريك==0 && مواقع\_الاعداء
[i,0]>0) مواقع_الاعداء[i,0]--;
else if (تحريك==1 && مواقع\_الاعداء\[i,0\]\<حجم\_الخريطة-1) مواقع\_الاعداء\[i,0\]++;
else if (تحريك==2 && مواقع\_الاعداء\[i,1\]\>0) مواقع\_الاعداء\[i,
[i,0]>0) مواقع_الاعداء[i,0]--;
else if (تحريك==1 && مواقع\_الاعداء\[i,0\]\<حجم\_الخريطة-1) مواقع\_الاعداء\[i,0\]++;
else if (تحريك==2 && مواقع\_الاعداء\[i,1\]\>0) مواقع\_الاعداء\[i,
[i,0]>0) مواقع_الاعداء[i,0]--;
else if (تحريك==1 && مواقع\_الاعداء\[i,0\]\<حجم\_الخريطة-1) مواقع\_الاعداء\[i,0\]++;
else if (تحريك==2 && مواقع\_الاعداء\[i,1\]\>0) مواقع\_الاعداء\[i,
--accent-fill-rest is a CSS custom property (variable) used by Fluent UI components. If you want to change its value globally, you can override it in your CSS, for example:
:root {
--accent-fill-rest: #ff0000; /* your desired color */
}
If you only want to change it for the banner, scope it to that element:
.my-banner {
--accent-fill-rest: #ff0000;
}
Then any Fluent UI component inside .my-banner that uses --accent-fill-rest will render with your custom color.
Alternatively, if you don’t care about the variable and just want a hard-coded background, you can bypass it entirely:
.my-banner {
background-color: red;
}
But overriding the CSS variable is the more “Fluent-UI-friendly” approach.
Watch this youtube video for Solve this issue
https://www.youtube.com/watch?v=K8L7gUEYE40
Right now, no tool can show you code coverage live while you are stepping through your code in Visual Studio’s debugger. Most coverage tools only work after you run unit tests or run the app separately. For example, Visual Studio’s built-in coverage and Fine Code Coverage need tests, and OpenCover needs you to run your program outside the debugger. JetBrains dotCover can measure coverage when you run the app (not just tests), but it doesn’t update coverage while you are stepping through code. So, there isn’t a tool that shows coverage in real-time during debugging yet.
C:\Users\your user \AppData\Local\Android\Sdk\extras\google\usb_driver