Random snippets of all sorts of code, mixed with a selection of help and advice.
How to disable the code analysis in Eclipse C++?
20 June 2026 @ 10:01 am
I have Eclipse C++ version 2026-03 (4.39.0) and I unchecked all types of errors, info, and warnings under Window -> Preferences -> C/C++ -> Code Analysis.
Nevertheless Eclipse still shows several warnings and errors. So for example "No break at end of case". And here, Eclipse ignores the __attribute__ ((noreturn)) attribute in the function definition. gcc 15 compiles it correctly having enabled all error checks and warnings. When I add // @suppress("No break at end of case") to the end of line, then the warning disappears. But I don't want to add this unnecessary comment. And there are other false positives.
I simply don't want that Eclipse warns me at all. I would prefer Eclipse not show me any errors. It should just be an IDE.
What am I doing wrong? How can I disable any error/warning? Is there another setting which I am not aware of?
My Google play console account was terminated permanently because I invited an Indian to use it
20 June 2026 @ 9:25 am
I tried helping an Indian I met on Upwork to publish his app on play store. He asked me to invite him via my Google play console account so he will publish his apps and he promised me that non of the apps he’s trying to publish is malicious.
So I fell for his lie and he then published the malicious apps via my Google play console account and few days later my account was banned because it was associated with a previously banned account which is the same as the email the Indian man asked me to invite via my google play console account.
I tried explaining to Google via appeal that I invited someone but the appeal was rejected and I was permanently banned.
Now I’m scared that I can’t use or publish my apps on google play store as a developer.
Coloring of indent spaces in VSCode
20 June 2026 @ 9:20 am
I'd like to know how to turn off or control the vertical colored area indicating indent on each line.
I've attempted to determine this from the docs, but I don't have the terminology to find the answer.
An image may help:
This is in VSCode.
Any help appreciated,
Regards,
The indicators I want to control
Why does csv.DictReader treat the first row as field names? [closed]
20 June 2026 @ 9:19 am
I'm reading a CSV file using csv.DictReader.\n\nI expected all rows to be returned as data records, but the first row is treated as column names.\n\nMinimal reproducible example:\n\npython\nimport csv\n\nwith open('data.csv', newline='') as f:\n reader = csv.DictReader(f)\n rows = list(reader)\n\nprint(rows)\n\n\nActual result:\n\ntext\nThe first row is used as dictionary keys.\n``\n\nExpected result:\n\nAll rows should be treated as data records.\n\nEnvironment:\n\n- Python 3.12\n- Windows 11\n\nWhy does DictReader use the first row as field names, and how can custom field names be specified?
Auto-discovery of event listeners inside a src custom directory
20 June 2026 @ 8:41 am
I’m having a problem with auto-discovery of my Listener under the src directory in a Laravel 12 project.
The application structure goes like this:
- app (nothing in here)
- bootstrap
-- app.php
- src
-- Modules
--- ModuleA
---- Listeners
----- HandleSomeEvent (namespace: Modules\ModuleA\Listeners)
Basically, I want to register a HandleSomeEvent listener in the src/Modules/ModuleA/Listeners path(namespace: Modules/ModuleA/Listeners). To do this, in bootstrap/app.php I’ve added the following:
->withEvents(discover: [
__DIR__ . '/../src/Modules/ModuleA/Listeners',
])
But php artisan event:list still doesn’t show HandleSomeEvent listener. It only works when the listener is located in app/Listeners. What’s interesting, when I’m changing the listener’s director
About decentralized apps
20 June 2026 @ 8:36 am
Do decentralized apps have a future? If so what is the modern way to build them?
I am learning some stuff about it from Udemy. I can't even understand it, and most of that stuff is outdated for today. Some recommend best answer
qpdf: allow all except modification
19 June 2026 @ 4:31 pm
I have a PDF report to submit to a regulatory agency. It's then in the public domain. I want anyone to load the file in their preferred PDF viewer, copy the file, and print it, but not modify it.
I've looked at qpdf docs, but have not used it before so I ask for the proper command line that will meet my needs.
TIA,
Rich
Legacy SQL Server jobs for data migration issues
16 June 2026 @ 8:40 am
We handle data migrations using scheduled SQL Server jobs.
A month ago, I got a new requirement to migrate the last_add2, batch_no_all, and box_num2 values from a remote database. I updated the stored procedure that migrates data to the gjbsh_sub table, but I ran into an issue because that table has an INSERT trigger and an UPDATE trigger. I ended up modifying the INSERT trigger to make it work.
here is my structures of my tables
prod_det table
CREATE TABLE [dbo].[prod_det](
-- Original and appended columns with their default constraints inline
[prod_no] [dbo].[prod_no_type] NOT NULL,
[prod_add] [dbo].[prod_add_type] NOT NULL DEFAULT (''),
[batch_no] [dbo].[batch_no_type] NOT NULL DEFAULT (''),
[stop] [bit] NOT NULL DEFAULT (0),
[avail_date] [datetime] NULL,
[stop_num] [numeric](12, 4) NOT NULL DEFAULT (0),
[bz] [varchar](100) NULL DEFAULT (''),
[produce_date]
Why vibe coding is in trend?
2 June 2026 @ 8:18 am
I've been hearing the term "vibe coding" used frequently in discussions about AI-assisted software development.
From what I understand, it refers to describing requirements in natural language and relying heavily on AI tools to generate code rather than writing the implementation manually.
My question is: what are the technical advantages and limitations of this approach compared to traditional software development practices?
For example:
In what types of projects does vibe coding work well?
What are the common risks regarding code quality, maintainability, and debugging?
At what point does a developer still need a deep understanding of the generated code?
I'm looking for practical experiences and technical explanations rather than opinions about whether AI is "good" or "bad" for programming.
Is there any other ways to convert a MapEntry to Map?
29 May 2026 @ 7:39 pm
I'm a beginner at Dart and I was doing a DSA problem to find the frequency of numbers in a list. And I have created a map with numbers as keys and frequencies of that number as its value. And then finally, I want to return the highest frequent number and its frequency as a Map. Here is my function code.
MapEntry<int, int> findMostFrequent(List<int> numbers) {
final frequency = <int, int>{};
for (int i = 0; i < numbers.length; i++) {
if (!frequency.containsKey(numbers[i])) {
frequency[numbers[i]] = 1;
} else {
frequency[numbers[i]] = frequency[numbers[i]]! + 1;
}
}
return frequency.entries.reduce((a, b) {
final aValue = a.value;
final bValue = b.value;
if (aValue == bValue) {
return a.key > b.key ? b : a;
}
return aValue > bValue ? a : b;
});
}
Appreciate all the help here.