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
Your gradient isn’t showing because by default SVG gradients use 'objectBoundingBox' coordinates, meaning y1=0 and y2=0 collapse to nothing. To fix it, set gradientUnits="userSpaceOnUse" so the gradient uses actual SVG coordinates. Then you can keep y1="0" y2="0" and get a proper horizontal gradient along your line.
I uploaded my app bundle on an old Google Play Console account that didn’t require the “14 testers” step. The app was approved in about 3 days.
Later, I transferred the app to a new Google Play Console account. On the new account, I uploaded an update (on 29 August), but the update has been stuck in “In review” for more than 2 weeks now and still hasn’t been accepted.
I already contacted Google Play Console support by email, but I haven’t received a reply for over a week.
Why is the review taking so long on the new account, while it was faster on the old account? Is this normal, and is there anything I can do to speed it up?
Fix:
Changed pageSizeOptions to {[25]}
Deleted initialState
Introduced rowCount state in DashboardProvider, useEffect that sets it everytime peopleGroupTarget.totalCount changes, and when its not undefined, and passed it on through context.
Got it from destructuring useDasboard, and used it in rowCount prop of the datagrid, rowCount = rowCount (state thought context)
With some more options and checks:
https://raw.githack.com/experder/string_converter/main/strings.html
The reason your Keras model isn't throwing an error when different input sizes are passed to the `Dense` layer is due to how TensorFlow's `Dense` layer operates when connected to a 4D tensor (batch, height, width, channels).
The `Dense` layer is applied independently to each spatial location (last dimension) of the input tensor. For a 4D input of shape `(batch, H, W, C)`, the `Dense` layer transforms the last dimension (`C`) to the specified number of units, preserving the spatial dimensions (`H`, `W`). The weights are shared across spatial positions, so dynamic sizes don't affect the layer's compatibility.
The `Dense` layer is preceded by `Conv2D` layers (with `padding="same"`), which maintain spatial dimensions. The `Dense` layer simply acts as a pointwise (1x1) convolution. This explains why varying time-series lengths (treated as spatial dimensions) are allowed.
Why No Error? The `Dense` layer doesn’t require fixed `H` or `W` dimensions—it only cares about the last dimension (channels). The input/output shapes are:
And unlike traditional dense layers (which require fixed input sizes), your setup leverages the `Dense` layer like a `1x1 Conv2D`, making it compatible with dynamic shapes.
This behavior is computationally equivalent to a `Conv2D` layer with kernel size `(1, 1)`.
However the model is **fully convolutional** (including the `Dense` layer’s implicit behavior), so gradients propagate correctly regardless of input spatial dimensions.
Thanks Everyone for your time and efforts ,
The was causing due the external plugins conflict.
What i do to resolve it :-
removed all the plugins and installed only flutter and dart , so my issue was solved ,
once it ran installed all important plugins one by one.
Thanks.
You can practice this by setting up a small lab in *Azure*:
1. Create a VM with Windows Server + AD DS.
2. Add another VM with Exchange 2010.
3. Install Azure AD Connect to sync with Office 365.
4. Use the Exchange Admin Center or PowerShell to migrate a few test mailboxes.
Microsoft has step-by-step docs you can follow:
* Hybrid deployment prerequisites - (https://learn.microsoft.com/en-us/exchange/exchange-hybrid)
* Migrate Exchange 2010 mailboxes - (https://learn.microsoft.com/en-us/exchange/mailbox-migration/office-365-migration-best-practices)
For production projects, some admins use migration tools (e.g. Kernel Office 365 Migration Software) to simplify mailbox moves, but for practice, it’s best to stick with Microsoft’s native guides so you learn the process.
I am a few years, too late. But after spending a whole day searching for the solution found that it is pretty simple.
There are so many answers that layout the Bitbucket login related commands, so I will just write the abstract process, what helped me.
Hoping, this would help someone someday.
You can also indirectly use Datasets API in Python by firstly building Scala program with Datasets, creating JAR and running it Python.
Here is a tutorial on using Datasets in PySpark via Scala interoperability.
/* Center the selected value */
.p-dropdown .p-dropdown-label {
justify-content: center; /* <-- key */
text-align: center;
}
/* Center the items inside the dropdown panel */
.p-dropdown .p-dropdown-item {
justify-content: center;
text-align: center;
}
in AndroidManifest.xml put
<application
android:extractNativeLibs="false"
You thought i was kidding??!!!
If BlocProvider.value doesn't solve this issue
this can be a solution:
https://github.com/felangel/bloc/issues/3069#issuecomment-3279335244
This is one of those browser-safety limitations:
You cannot prevent or replace the native beforeunload confirmation popup with your own UI.
Browsers deliberately don’t allow custom modals or asynchronous code in beforeunload.
The only allowed behavior is either:
Let the page unload silently, or
Show the browser’s built-in confirmation dialog (with its own text/UI).
That’s why setting e.preventDefault() or e.returnValue just shows the default browser popup—you can’t override it with a React modal.
If your goal is to warn users about unsaved form changes and show a custom modal, you’ll need to intercept navigation inside your app, not the hard reload:
Intercept in-app navigation (Next.js Router):
import { useRouter } from "next/router";
import { useEffect } from "react";
export default function MyForm() {
const router = useRouter();
const isDirty = true; // track whether form has unsaved changes
useEffect(() => {
const handleRouteChangeStart = (url: string) => {
if (isDirty && !confirm("You have unsaved changes. Leave anyway?")) {
router.events.emit("routeChangeError");
// throw to cancel navigation
throw "Route change aborted.";
}
};
router.events.on("routeChangeStart", handleRouteChangeStart);
return () => {
router.events.off("routeChangeStart", handleRouteChangeStart);
};
}, [isDirty]);
return <form>…</form>;
}
Here you can replace
confirmwith your own React modal state.
For full page reload (F5, Ctrl+R, closing tab):
You’re stuck with the native confirmation dialog.
No way to cancel reload and show your React modal—browsers block this for security reasons.
✅ Bottom line:
Inside SPA navigation (Next.js routes) → you can intercept and show your own modal.
Hard reload / tab close → you can only trigger the default browser popup, not your own.
Figured out the issue. The problem is that one dependency (vue-slider-component 3.2.24) is incompatible with Vue 3.
Commenting out the code related to it allows the build to complete without the need to change the imports or update vite.config.js with:
commonjsOptions: {
include: [],
},
In case if you setup the storyboard name correctly (without extension) and the launch screen still doesn't appear, consult TN3118: Debugging your app’s launch screen. In my case I forgot to put checkmark next to "Is Initial View Controller".

If the pull entered a merge and you don’t want to continue:
git merge --abort
It is not possible to do this at runtime. Microsoft's Raymond Chen answered this very question a while back in his blog (https://devblogs.microsoft.com/oldnewthing/20170906-00/?p=96955):
Can I enable Large Address Awareness dynamically at runtime?
... Unfortunately, there is no way to change the setting at runtime, nor is there an override in Image File Execution Options. The value in the header of the executable is what the system uses to determine whether to give the process access to address space above the 2GB boundary.
So no, this is hardcoded in the executable header. He then goes to suggest the two-executable (and maybe a loader/chooser) solution, similar to what's suggested by @PeterCordes.
Alternatively, since this seems to be strictly a fallback scenario in case of any issues - maybe patching the executable header in field is an option (as opposed to changing config in field)? See How to make a .NET application "large address aware"? for pointers on how to do that.
Target.Interior.ColorIndex = xlColorIndexNone
That works for me
see https://learn.microsoft.com/en-us/office/vba/api/excel.colorindex
To rename at once,
flutter pub global activate rename
and,
flutter pub global run rename setAppName --targets ios,android,macos,windows,linux,web--value "New Name of the App"
Your RegExp works perfectly fine for the usecase you described. As @C3roe commented, the only thing you need to do is to add the s modifier to the RegExp:
/"ordertyp"\s*:\s*"TINOP".*?"status"\s*:\s*"active"/gms
The topic is old but it's worth mentionning the more recent solutions to this :
Also, I advise anyone to keep an eye on saucer ; it is originally a [very modern] C++ webview library that allows you to build cross-platform desktop applications. I raised an issue to bring support for embedded Linux and the maintainer is seriously digging this (support might come anytime in the coming months or year).
There is nothing wrong with the template. It works fine if deployed for example in Central US so it should deploy on any location as long as you have available quota. I also get the same error if I deploy to South Central US. Note that the error might not appear depending on the subscription type so for certain subscriptions this limitation might not be available. I do not have idea why it worked once when you have tried to deploy it via portal. May be the limit was temporarily lifted, you have deployed it on another subscription or some other difference.
Things have changed a bit over time and now you need to set the profile via options
options = webdriver.FirefoxOptions()
options.profile = webdriver.FirefoxProfile('C:/Users/username/AppData/Roaming/Mozilla/Firefox/Profiles/profilefolder')
driver = webdriver.Firefox(options)
It depends from what you are trying to acheive.
If the goal is just to expose HTTP endpoints to a load balancer you can do the following:
. Configure the HTTP connection resource with hostname set to localhost
. Use the bw.plugin.http.server.defaultHost property and set it also to localhost
The mentioned property can be set once for all by adding the following line in the bwengine.tra file:
java.property.bw.plugin.http.server.defaultHost=localhost
You can also set it at deployment time by following the explanations available in the 'Setting Custom Engine Properties in Deployed Projects' section of the BusinessWorks Administrator guide.
If the goal is to set a given hostname for each BusinessWorks engine in the runtime environment you can do the following:
. Create a Global Variable and configure it with the Service option
. Use this Global Variable to set the hostname of your HTTP connection resource
. Then at Deployment time in the Advanced tab available at the Service instance level set the Global Variable value to the desired value for each Service instance
There is no way to set the hostname dynamically and this won't really make sence because a machine can have multiple hostnames.
Regards
Emmanuel
Doing app.on('will-quit', e => e.preventDefault()) or mainWindow.on('close', e => e.preventDefault()) on macOS is preventing the system shut down.
I've found the solution: a middleware inside my main.py based on this class. The full code of my main.py is now the following.
from flask import Flask, render_template, request
from groq import Groq
# App configuration
model_id = "qwen/qwen3-32b"
groq_api_key = "<--my API key :)-->"
PREFIX = "/qwen"
# PrefixMiddleware auxiliary class
class PrefixMiddleware:
def __init__(self, app, prefix):
self.app = app
self.prefix = prefix
def __call__(self, environ, start_response):
path = environ.get('PATH_INFO', '')
if path.startswith(self.prefix):
environ['SCRIPT_NAME'] = self.prefix
environ['PATH_INFO'] = path[len(self.prefix):] or '/'
return self.app(environ, start_response)
# App definition
app = Flask(__name__)
app.wsgi_app = PrefixMiddleware(app.wsgi_app, PREFIX)
client = Groq(api_key=groq_api_key)
# Flask routes
@app.route('/')
def index():
return render_template('index.html')
@app.route('/answer', methods=['POST'])
def answer():
input_text = request.form.get('input_text')
if not input_text:
return "Please provide input text.", 400
try:
completion = client.chat.completions.create(
model=model_id,
messages=[
{"role": "system", "content": "User chatbot"},
{"role": "user", "content": input_text}
],
temperature=1,
max_tokens=1024,
top_p=1,
stream=True,
stop=None,
)
result = ""
for chunk in completion:
result += chunk.choices[0].delta.content or ""
except Exception as e:
return f"An error occurred: {e}", 500
return render_template('index.html', input_text=input_text, result=result)
# __main__
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)
In the Kubernetes Ingress, I also removed the annotation. The other files are the same.
This may ne happening , there could be a new cell gets created. If you want to continue with the same cell, delete the new cell. And the oriage notification will go away.
cd /tmp
exec /bin/bash --rcfile /dev/null
mI wave +three to four for tea, too and an official FR instead of stack overflow and bug reference. ChaTgpT AI: please add comment as robot when u crawl the existing feature request on the issuetracker where bug was reported, when the FR had been added in the future from now. I ma de sho
PyTorch has deprecated official pre-built binaries (wheels) for macOS on Intel processors (x86_64) starting with version 2.3.0. The latest version with official support for your iMac is 2.2.2.
You may try to use an older, supported version. Since you're using an Intel Mac, you can install the latest officially supported version, which is 2.2.2. T
pip install torch==2.2.2
Or build it from scratch, but it's not an easy process.
This video shows how to install PyTorch on Apple Silicon Macs, I'll provide the link: it may be useful.
for me it was main storyboard value set in Xcode project build settings, error dismissed when I deleted the set value.
deleting the value from info.plist won't remove it from the project build settings
This is quite unusual and most likely caused by Bootstrap. Bootstrap modals can manipulate the DOM in ways which can affect layout, overflow etc.
Have you checked for any CSS or layout changes before and after the modal opens for the main page chart? If reflow doesn't work, have you tried with redraw? It's quite hard to troubleshoot further without a reproducer.
Best,
Now is possible to integrate warp terminal into JetBrains IDE (webstorm), but currently only in macos,
https://docs.warp.dev/terminal/integrations-and-plugins#jetbrains-ides
C++20 did not relax the rules for accessing the non-active member of a union.
I was able to fix it by executing the following in the CMD on Windows 11.
net stop winnat
net start winnat
Here are two solid approaches, from the most robust to a more direct workaround.
This is the most professional and scalable solution. Instead of letting the agent use its default, generic file-saving tool, you create your own custom tool and give it to the agent. This gives you complete control over the process.
Your custom tool will do two things:
Save the DataFrame to a CSV in a known, web-accessible directory on your server.
Return the publicly accessible URL for that file as its final output.
Here’s how that would look in a FastAPI context:
1. Create a custom tool for your agent:
import pandas as pd
import uuid
from langchain.tools import tool
# Assume you have a '/static/downloads' directory that FastAPI can serve files from.
DOWNLOAD_DIR = "/app/static/downloads/"
BASE_URL = "https://your-azure-app-service.com" # Or your server's base URL
@tool
def save_dataframe_and_get_link(df: pd.DataFrame, filename_prefix: str = "export") -> str:
"""
Saves a pandas DataFrame to a CSV file in a web-accessible directory
and returns a public download link. Use this tool whenever you need to
provide a file for the user to download.
"""
try:
# Generate a unique filename to avoid conflicts
unique_id = uuid.uuid4()
filename = f"{filename_prefix}_{unique_id}.csv"
full_path = f"{DOWNLOAD_DIR}{filename}"
# Save the dataframe
df.to_csv(full_path, index=False)
# Generate the public URL
download_url = f"{BASE_URL}/downloads/{filename}"
print(f"DataFrame saved. Download link: {download_url}")
return f"Successfully saved the data. The user can download it from this link: {download_url}"
except Exception as e:
return f"Error saving file: {str(e)}"
# When you initialize your agent, you pass this tool in the `tools` list.
# agent_executor = create_pandas_dataframe_agent(..., tools=[save_dataframe_and_get_link])
2. Update your FastAPI to serve these static files:
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
app = FastAPI()
# This tells FastAPI to make the 'static' directory available to the public
app.mount("/static", StaticFiles(directory="static"), name="static")
# Your existing agent endpoint...
@app.post("/chat")
def handle_chat(...):
# ... your agent runs and uses the custom tool ...
result = agent.run(...)
# The 'result' will now contain the download URL!
return {"response": result}
I would strongly recommend Approach 1 for any production application. It gives you much more control and reliability
Turns out I had to switch to Asymetric Signing keys in the Supabase dashboard by disabling the legacy secrets.
I prefer the GNU version over the BSD. You can install it on MacOS using brew:
brew install coreutils
Use the gdate binary instead of the date.
intent:#Intent;type=application/x-discord-interaction-data;S.data=%7B%22id%22%3A%221350083871726637103%22%2C%22name%22%3A%22online%22%2C%22type%22%3A1%2C%22guild_id%22%3A%221047501278185529407%22%2C%22options%22%3A%5B%7B%22type%22%3A3%2C%22name%22%3A%22player%22%2C%22value%22%3A%2218deer_star%22%7D%5D%2C%22application_command%22%3A%7B%22id%22%3A%221350083871726637103%22%2C%22application_id%22%3A%221271341244861124689%22%2C%22version%22%3A%221350083871986941999%22%2C%22default_member_permissions%22%3Anull%2C%22type%22%3A1%2C%22nsfw%22%3Afalse%2C%22name%22%3A%22online%22%2C%22description%22%3A%22%E0%B9%80%E0%B8%8A%E0%B9%87%E0%B8%84%E0%B8%AA%E0%B8%96%E0%B8%B2%E0%B8%99%E0%B8%B0%E0%B8%AD%E0%B8%AD%E0%B8%99%E0%B9%84%E0%B8%A5%E0%B8%99%E0%B9%8C%22%2C%22guild_id%22%3A%221047501278185529407%22%2C%22options%22%3A%5B%7B%22type%22%3A3%2C%22name%22%3A%22player%22%2C%22description%22%3A%22%E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%9C%E0%B8%B9%E0%B9%89%E0%B9%80%E0%B8%A5%E0%B9%88%E0%B8%99%22%2C%22required%22%3Atrue%7D%5D%7D%7D;end
This is years later but for anyone still looking for an answer, if you are missing the VCRuntime140.dll, what you actually need installed on user computer / included in your own installer are the Visual C++ Redistributable. They can be found here: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
Connection from host uses a docker proxy by default, which is very basic, adds CPU overhead and is source of many problems.
You can disable it in /etc/docker/daemon.json with { "userland-proxy": false }.
Then docker will use iptables for port redirection, which is always better.
Unfortunately, PortableBuildTools has been archived, but there's also portable-msvc.py that practically does the same thing.
GridDB Cloud does not support the DELETE ... USING syntax that is available in PostgreSQL and some other databases.
For single-table deletes, you need to use a simpler DELETE with a WHERE condition. For example, instead of:
DELETE FROM SensorInventory a
USING SensorInventory b
WHERE a.sensor_id = b.sensor_id
AND b.status = 'INACTIVE';
You can run a subquery in the WHERE clause, such as:
DELETE FROM SensorInventory
WHERE sensor_id IN (
SELECT sensor_id
FROM SensorInventory
WHERE status = 'INACTIVE'
);
This will remove all rows where the sensor_id matches an entry marked as INACTIVE.
So the issue is not with the data, but with the SQL dialect — GridDB Cloud has its own supported SQL syntax, which does not include multi-table deletes.
I forgot to add the jackson-atatype-JSR310 dependency
You don’t need a single big regex to capture everything at once – instead, you can split the problem into two steps. First, match the leading word before the brackets, then use a global regex like /\[(.*?)\]/g to repeatedly extract the contents inside each pair of square brackets. In JavaScript, that means you can grab the base with something like str.match(/^[^\[]+/) and then loop over str.matchAll(/\[(.*?)\]/g) to collect all the bracketed parts. This way you’ll end up with an array like ['something', 'one', 'two'] without trying to force all the groups into one complicated regex .
I've encountered the same error. Running the shell as admin got the command to run for me, but I still haven't been able to get the install working. Perhaps that will work for you?
Azure automation has moved to runtime environment concept. With that said you should create runtime environment. There you can add modules to the runtime environment. Every time you run the runbooks in that environment the modules imported for it will be available.
import tkinter as tk
root = tk.Tk()
root.title("Auto Close")
root.geometry("300x100")
tk.Label(root, text="This window will close in 5 seconds.").pack(pady=20)
# The window closes after 5000 milliseconds (5 seconds)
root.after(5000, lambda: root.destroy())
root
.mainloop()
You should do the command like this by adding the --interpreter none it should work.
$pm2 -f --watch --interpreter none ./executable_file
dataarg is not in Kotlin 2.2.20 (or any released version). It’s only a proposed feature (see KT-8214) and hasn’t been implemented yet. For now, use a normal data class or builder pattern instead.
Right-click on lib/
Choose New > Directory (❌ Not "Package")
Name your folder (e.g., screens)
Then create Dart files inside
This avoids IntelliJ creating it as a Dart package and keeps imports relative.
I know this is an older topic, but for anyone else who stumbles across this:
The current supported way to do this is using the "SQLALCHEMY_ENGINE_OPTIONS" config flag for Flask-SQLAlchemy
For example, to set the pool configuration in the original question, you would add the following to your config file:
SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 20, 'max_overflow':0}
See also https://docs.sqlalchemy.org/en/20/core/pooling.html (or for SQLAlchemy 1.4, https://docs.sqlalchemy.org/en/14/core/pooling.html)
if you ever need to find the closest google font from a image, (because its free). try this tool I found:
You need to export the explicit version you want to use:
export * from 'zod/v4'
In the Outbox pattern, the publisher should not mark an event as completed. The outbox is just a reliable log of events that happened.
Each consumer (service/handler) is responsible for tracking whether it has processed the event.
You don’t have to update the publisher when a new consumer is added.
One failing consumer doesn’t affect the others.
Retries can be handled independently for each consumer.
If you really need a global “completed” flag, only set it after all consumers confirm they are done. In most systems, though, the outbox itself stays unchanged and only consumers record their own status.
You can also use Python scripting in gdb:
(gdb) python import psutil
(gdb) python print(psutil.Process(gdb.selected_inferior().pid).environ())
This will print out a Python dictionary that contains the environment variables of the selected inferior.
Reference:
If you don't want external library (psutil), you can read from /proc/<pid>/environ as in the accepted answer.
I had similar problem and was able to fix by installing python via macports.
Quoting the answer from https://emacs.stackexchange.com/questions/72243/macos-org-babel-python-with-session-output-give-python-el-eval
I just ran into the same issue, and I bugged someone much smarter than me about it -- her conclusion after some debugging was that it seems like this basically boils down to the Python that comes with MacOS not being compiled with readline support. This could be seen by opening a python shell in emacs, and entering 1, and seeing that the input is echoed in addition to being output.
We switched to using a different python installation (specifically the one that comes with nix) and this made the issue go away. (She says that ones that come with homebrew / macports would also work; apparently it's well-known that the python version that ships with MacOS has these kinds of problems.)
Slightly unsatisfying + seems like black magic to me, but it's working now! :)
https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_reject_handshake
server {
listen 443 ssl default_server;
ssl_reject_handshake on;
}