SubmenuButton's submenu items don't disappear when inactive after menu initially shown

Steps to reproduce

Open the menu for the first time after the application is launched.
Move the cursor over some menu item with a submenu, submenu appears.
Move the cursor away from the menu item with the submenu, the submenu disappears, as it should.
Close the menu completely.
Open the menu again.
Move the cursor over some menu item with a submenu, submenu appears.
Move the cursor away from the menu item with the submenu, the submenu DOES NOT disappear, as it should.

Expected results
The submenu should disappear when the cursor is moved away from its parent menu item.
Actual results
The submenu DOES NOT disappear when the cursor is moved away from its parent menu item.
Code sample
Here is a simple test application, showing the issue. You can read the code, run the application. Please see additional comments.
Screenshots or Video
https://github.com/user-attachments/assets/a314ed72-13e0-449a-9e0f-e0bf803afb65
Logs
N/A
Flutter Doctor output
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.6 23G5066c darwin-arm64, locale en-US)
    • Flutter version 3.22.3 on channel stable at /Users/milke/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (9 days ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] Connected device (3 available)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 14.6 23G5066c darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 14.6 23G5066c darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 127.0.6533.73

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Thanks for the report. I was able to replicate this in desktop and web platforms noticeably, as, on mobile, we need to click on menu to show sub-menus, so it isn't replicable there.

 runnable code

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Bug Bomb',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Is Too Buggy!'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    final item = MenuItemButton(
      onPressed: () {},
      leadingIcon: const Icon(Icons.snooze),
      // child can't be null, interface is bad
      child: const Text('Menu Bugs'),
    );

    final sub = SubmenuButton(
      menuChildren: [
        item,
        item,
        item,
        item,
      ],
      leadingIcon: const Icon(Icons.snooze),
      // child can't be null, interface is bad
      child: const Text('Submenu Bugs'),
    );

    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'Click the menu and it pops down, as you move the mouse down, the sub menus appear and disappear as normal.',
              style: TextStyle(fontSize: 20),
              textAlign: TextAlign.center,
            ),
            const SizedBox(height: 20),
            const Text(
              'But click a second time and move the mouse down and now the submenus stay put and they dont disappear as they should.',
              style: TextStyle(fontSize: 20),
              textAlign: TextAlign.center,
            ),
            const SizedBox(height: 20),
            MenuBar(
              children: [
                SubmenuButton(
                  menuChildren: [
                    sub,
                    item,
                    sub,
                    item,
                    item,
                    sub,
                  ],
                  child: const Icon(Icons.menu),
                ),
              ],
            ),
            const SizedBox(height: 60),
            const SizedBox(height: 10),
            const Text(
              'Bug Confirmed on Linux and Web, but probably happens on all platforms',
              textAlign: TextAlign.center,
            ),
            const SizedBox(height: 10),
          ],
        ),
      ),
    );
  }
}

stable: 3.22.3
master: 3.24.0-1.0.pre.291

cc @gspencergoog

This seems to be fixed by https://github.com/flutter/flutter/pull/150950


Add CI scripts

Need to add scripts that do the following:

[x] Run tests (pytest and static analyzer for pep8 rules) on pull requests
[x] Run tests on merge changes to master branch
[ ] Run tests and publish to pypi repository on new tag (release)

still release on pypi not made. need asisst

TestsPypi release ready, rest to do is ci on release

all tasks  done in<PHONE_NUMBER>88c0293aa0072d8af3c38f02fdcdba

Closing then.


Relative URL in sections

Will it be possible to make relative URL (linking to a page or post within the site) in various sections (Education, Projects, etc)?
I am not sure, if this already possible.  If so, I would like to know how to include a relative URL.

Can explain your need with more details ?

In a section (say Education), if I want to refer to an internal page, how do I link?   We now have
     featuredLink:
          enable: true
          name: "My academic record"
          url: "https://example.com"

Instead I want the URL to refer an internal page or blog post.

hey @torvenkat, if you want to link to an internal page, just write the page in where you'd write the URL. for example, let's say I want my featured link to go to my blogs page, and let's say my personal website is located at MyPersonalWebsite.com, my config should look like this:
     featuredLink:
            enable: true
            name: "My Personal Blog"
            url: "blog"

and clicking on that link would redirect me to MyPersonalWebsite.com/blog.
If I wanted to just redirect to a different section of my home page, let's say I wanted to go to the Contact section, I can just put in #contact in that field and I'd be redirected to MyPersonalWebsite.com/#contact. You can even put in your own URL into that field and it will still route you where you want to go (for example, you could put in url: "https://MyPersonalWebsite.com/#contact" and that link should still successfully redirect you to that page). Hope this answers your question!

@pantera-rosa  It works.  Thanks.
This issue may be closed


Update bors's pr_status to require both build and lint

Currently bors only requires build to pass on the merge commit.
It would be good to have it also require build + clippy, rustmft, docs on the pr_status (not status).
This should be done after issues #32 and #47 are fixed.
i.e. add the following to bors.toml (see here)
pr_status = [
  "build",
  "lint",
]

once cargo fmt and cargo doc are added to the clippy job (which should be renambed to lint)

Bors-ng has been deprecated in favor of GitHub's built-in merge queues


FileNotFoundError: [Errno 2] No such file or directory: 'Data/celeba/list_eval_partition.txt'

I just run the run.py and this error occurred. I found it happened when "data.setup()"is executed. After cheeking the code in the function "setup()", I found that when "        self.train_dataset = MyCelebA(
self.data_dir,
split='train
transform=train_transforms
download=False,
)"was run. I know little about MyCelebA. So I couldn't solve the problem I encountered. I would be very grateful if u have any solutions.

https://drive.google.com/file/d/1m8-EBPgi5MRubrm6iQjafK2QMHDBMSfJ/view


Determine PowerShell version

Great code to retrieve the DOT NET version:
Get-ChildItem "HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" | Get-ItemPropertyValue -Name Release

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2115da38-e95e-46fc-1e2d-da88ef92c6cf
Version Independent ID: a3790e8a-0654-851b-c991-ab7382025406
Content: How to: Determine which .NET Framework versions are installed
Content Source: docs/framework/migration-guide/how-to-determine-which-versions-are-installed.md
Product: dotnet-framework
GitHub Login: @rpetrusha
Microsoft Alias: ronpet

Thanks for the feedback @FvantHoff
Closed as kudos.


[5.5] Return a file object from a given path

usages: $slide->image->delete()
convert a path to a file.
The file class contains functions from the original filesystem,  like copy, delete, url and get.
This makes the code much cleaner.

There are no tests in this PR.
There's also a potential problem for everyone having models that already has a $files property. This has happened previously with the $events was introduced. https://github.com/laravel/framework/issues/17959

Why not just use an accessor?

I may do something like this on a future release but not right now.


Move from travis to gh-actions

Fixup babelify in the process

Genuinely interested; what was the reason for moving to Github actions, instead of Travis?
I'm using Travis on some libraries myself, and haven't have any issues, but haven't used GitHub actions before.

Travis has been bought by a private equity firm and has massively restricted and reduced the performance of their free tier unfortunately

Oh really? I hadn't heard about that!
Just found an article that sums it up nicely: https://www.jeffgeerling.com/blog/2020/travis-cis-new-pricing-plan-threw-wrench-my-open-source-works
And Travis' blog about the changes: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing#building-on-a-public-repositories-only
That's a real shame; they used to be really good for Open Source stuff. I guess I'll have to swap over my own repos to Github actions as well then.
Thanks for taking the time to get back to me.

In addition, I have too many repos to be able to use the tools Travis provided to move from .org to .com, and their command line tool didn't do an adequate job.  I've been using GH Actions for a while now on a few other projects, and I like it a lot, aside from it not having the feature that allows a checkin to be marked [skip ci].  I'm not paying for the CPU, and none of my projects are Firefox-sized, so it hasn't been an issue.


TypeError when stopping/exiting container [0.9.21]

Run any one-off command inside the container that exits successfully, for example:
docker run phusion/baseimage:0.9.21 /sbin/my_init -- echo "Hello world!"

The container exits with status 1 and an error traceback:
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 9
*** Running echo Hello world!...
Hello world!
*** echo exited with status 0.
*** Killing all processes...
Traceback (most recent call last):
  File "/sbin/my_init", line 314, in main
    sys.exit(exit_status)
SystemExit: 0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/sbin/my_init", line 353, in <module>
    main(args)
  File "/sbin/my_init", line 317, in main
    shutdown_runit_services()
  File "/sbin/my_init", line 250, in shutdown_runit_services
    os.system("/usr/bin/sv -w %d down /etc/service/*", KILL_PROCESS_TIMEOUT)
TypeError: system() takes at most 1 argument (2 given)

Same here

That command should be the following:
os.system("/usr/bin/sv -w %d down /etc/service/*" % KILL_PROCESS_TIMEOUT)
It was fixed already with this PR: https://github.com/phusion/baseimage-docker/pull/392
Please try using a build from master branch, I will work today to get master branch building a latest image on Docker hub; also I will work to get a release out which includes this fix.

This is a duplicate of #391

@Theaxiom Ping re: a new release, I just ran into this as well.

Thanks for the reminder, I will get it out within the next few hours. :)

Release 0.9.22 released: https://github.com/phusion/baseimage-docker/releases/tag/0.9.22

@Theaxiom Verified that the new release solves the problem. Maybe we can update latest tag while we are at it? :)

@nberrios latest should already be updated with latest version


Enhancing User Experience with API/CLI Access in Ultimate Vocal Remover GUI

I have had the privilege to experience and explore your innovative application, the Ultimate Vocal Remover GUI v5.5.1, and I am completely fascinated by the intricate engineering and in-depth functionalities captured within its construct. The concept of a vocal remover that offers such breadth and depth is truly commendable.
If it's possible, I would suggest incorporating an API or Command-Line Interface (CLI) access for users. I say this because it can exponentially speed up the user's work process by eliminating the need for manual intervention at each step. Instead of manually initiating each task, users could seamlessly move to the next task, thereby increasing work efficiency and overall productivity.
Now, I want to emphasize that I offer this suggestion from a place of constructive feedback, and I am by no means an expert. I believe, though, that this enhancement could be instrumental in capturing and catering to a broader user base, particularly those drawn towards minimized manual work

Totally agree. The app is awesome, but official CLI version & API is a must. I've seen a web version is in the works, which is nice.


[4.x] Rework const on NavigationServer methods

const is used on all methods, even when they cause modification of the server.  This reworks the methods of the server to only use const on methods that don't change the state of the server.
This achieves the following:

Navigation server was the only server that used const on most methods. This change brings it more in line with other servers in Godot.
Having methods that ultimately change the state of the server marked as const is confusing, as const indicates that the method will not change the class it is called on (with various exceptions).
Having all methods marked as const also binds the hands of other users that might want to implement their own navigation server and don't want to defer updates until later.
This gets rid of the need to const_cast in many methods in order to make the changes the method actually makes.
There were two get_singleton methods that were used inconsistently.  There is now only one.

Should have no effect on usages of the server from GDScript. I haven't seen any changes in the behavior of the server from my testing.  I believe this change is backwards compatible, with the exception of custom modules that used the server directly and happened to rely on the odd constness.

If I understand the comments and discussions of old from the time the server was invented this was primarily done to make multi-threading bullet-proofed. The mutex was added later with a comment when it was revealed that the const alone could not solve all multithreading issues caused by legacy C++ code at that time in Godot.
I have no idea if this const use is still relevant in Godot 4 or just legacy code turned into an obstacle.

Thanks!


Kind tutorial for begginer

Hello
Is there any tutorial video and guide for informing how to integrate this api with VS2015? I would appreciate if some one can send me any code, I am new to both MetaTrader API  and vs2015.
But I am very interested in this material.

Where do I add the dlls into vs2015 project folder?
Thanks in anticipation

Is there any tutorial video and guide for informing how to integrate this api with VS2015? I would appreciate if some one can send me any code, I am new to both MetaTrader API and vs2015.
But I am very interested in this material.

I am not aware of any tutorial or video.
But there are test programs . There you can see how it is done.
https://github.com/vdemydiuk/mtapi/tree/master/TestClients

Hi @KptKuck
Thanks for your informing.
So did you run this example on your pc?
does it work well?
I will wait for your favorable reply.
Thanks.

Yes, it does.
I've been using this API for about 3 years.
But only with MatLab.

Any screenshots would have been appreciated.
You just call it "example" but nothing more and noting what it is supposed to do.

https://web.archive.org/web/20200314062608/http://mtapi4.net/examples/

@KptKuck
@vdemydiuk

.. but only with MatLab.

I would like to try this with MatLab (or Octave) and R, as well. There used to be a downloadable example (in the link above), but it was never archived. Can you provide some example code to get me started?

i can add an example for MatLab
The thing is you just need to know how to load the assembly MtApi5.dll into your target language

https://github.com/vdemydiuk/mtapi/pull/215


Support for underscores in DNS is missing in couchbase-lite-java-core

couchbase-lite-java-core (tag:1.2.0) crashes for url with underscores whereas ios client lib works fine.
crash logs:
WARNING: Sync: com.couchbase.lite.replicator.ReplicationInternal$10@1ec4b12: error getting remote checkpoint
java.lang.IllegalArgumentException: Host name may not be null
        at org.apache.http.HttpHost.<init>(HttpHost.java:83)
        at org.apache.http.impl.client.AbstractHttpClient.determineTarget(AbstractHttpClient.java:497)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
        at com.couchbase.lite.support.RemoteRequest.executeRequest(RemoteRequest.java:182)
        at com.couchbase.lite.support.RemoteRequest.run(RemoteRequest.java:102)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Hi @kamal-mann, Thank you for your bug report. Could you  please provide URL that causes crash?

Hi @hideki,  updated initial comment with a dummy test url.

@kamal-mann Thank you!

In general, underscore (_) is not allowed for hostname
http://stackoverflow.com/questions/2180465/can-domain-name-subdomains-have-an-underscore-in-it

but same discussion suggests its allowed (as per the RFC 2181, section 11, "Name syntax": )

What RFC 2181 is saying is that DNS can store more than just hostnames, and that non-hostnames are not limited to the same character set. And underscores are commonly used in non-hostname DNS records such as DomainKeys. (See this FAQ entry from the DomainKeys project.
But the host portion of a URL is a hostname, and is limited to alphanumerics and hyphens.

In any case, it's some other library (looks like the Apache HTTP client) that's interpreting the hostname, not Couchbase Lite. So this doesn't look like something that we could work around (even if we wanted to) without something ugly like forking that library and bundling the fork.
I suggest re-registering your server with a hostname using the standard character set that won't cause compatibility problems.

@snej I agree with that. But what about the feature parity between iOS vs java based clients?

"It's a bug, not a feature."

HttpClient is deprecated now. So we are considering to move to other library. One of candidates is OkHttp.  OkHttp also does not allow underscore. Ticket. As CBL relies on the http client library,  this issue is not is not fixable.


android 7.0弹出动态授权窗口，无法自动点击。

Version information

ATX Version: You can get from python -matx version
Python Version: You can get from python -V

What steps will reproduce the problem?
What is the expected output?
What do you see instead?
Do you have any log or screenshots?

adb shell pm grant package_name permission

run this cmd instead of click

666


String.Join(string, string[]) on CoreRT uses an intermediary StringBuilder

Compare the CoreCLR version with the CoreRT version. The first has no additional allocations since UnSafeCharBuffer is a struct, while StringBuilderCache.Acquire does a thread-static field access and probably performs worse if the String is big.
We should look at changing both implementations so we don't need the UnSafeCharBuffer struct (less code) and we only make 1 copy of the result string (less allocations).

Unifying the implementation is fine, but the unified implementation should preserve the defense-in-depth against buffer overruns - e.g. by using FillStringChecked that is used in other places.

@jkotas Under what circumstances should FillStringChecked be used? Why do some places use it and others use wstrcpy directly?

We want to have defense-in-depth that double checks the buffer bounds for any kind of non-trivial unsafe buffer manipulations. Of course, the definition of non-trivial is subjective - but the code in Join method is what we would generally consider non-trivial.

Fixed a while ago


POI landing page revamp with filters

Projects of Interest (POI)

Show the total projects count
Implement a filter on the projects list based on the tags
Remove the pie charts from POI screen and show the percentages only. This is to get more space in the page. In technology stack, show the full form for each tech stack (ex: Instead of DO, show DevOps)
In the projects table, show the full form for BeSTechStack

Closed with #564


Fix Documentation Grammar In Audio, Core & Top Files

I've noticed that some documentation has missing periods while other hasn't, there are some typos here and there, and generally some other things that can be improved using some YARD features. So this PR aims to address that.
I didn't go ahead and check models/, shapes/ and also src/ruby/... yet since I didn't want this PR to be that big & wanted to get some feedback from you :sweat_smile:
Notable Changes

Usage of the @example tag for code snippets instead of monospaced formatting.
Before:

After:

Usage of braces to link classes in the docs instead of monospaced formatting.

This is fantastic but I'm afraid you've picked a really bad time to do this PR! I'm part way through a major refactor which is getting me to overhaul the entirety of the documentation as I go.
I did not know about the @example stuff, I'll definitely start implementing that.
If you're able to rebase this PR against my branch https://github.com/HellRok/Taylor/tree/major-refactor I will give it a proper look over and help you get it merged as I really do appreciate the help.
Thank you so much for this and I'm really sorry I haven't made it super clear I'm in the middle of major changes. I'll actually update the README now so this doesn't happen to anyone else!

As it seems, I'm still bad at Git and wasn't able to properly rebase onto major-refactor (-‿-").
I'll see you at new PR to start from a blank slate.


Live Connection to PowerBI Dataset ?

Hi. I am getting the message saying that "this Visual is not supported on the following scenario....".
It was communicated Live Connection to PowerBI Dataset was now supported in the June 2019 update.
Full context:
Live Connection to PowerBI Dataset, itself connecting to Azure Analysis Tabular Model, including RLS.

Thanks for your comment, @MichaelDotEarly. This looks like a support request rather than documentation feedback. You might find a solution in the Power BI Community, found at https://community.powerbi.com. If not, you can get support by going to https://support.powerbi.com.


New config.load() changes working directory

According changes in https://github.com/NiklasRosenstein/flux-ci/commit/75a7e3a19620927b1bb19319e2fce23be2dc4171 it moves working directory from ./ to ./flux/. It causes initialization of folders and db.sqlite on wrong path.

Woops, thanks for the notice.


Add documentation on how to use the working ws-security scenarios - how to setup and execute

This is there in MI https://mi.docs.wso2.com/en/latest/reference/mi-security-reference/security-implementation/


Missing file in srv

Dear all,
it seems that the CMakeLists.txt is searching for a file that does not exist in the current folder:
https://github.com/mcsix/xela_server_ros2/blob/e68a54503d1cad3ee1783f5126106b667e25f404/CMakeLists.txt#L28
Is this a leftover or do we actually need that to make the software run?
Thank you

It is a residue from the old package.
Thank you for pointing it out.
I have removed that line from it now.

Thanks a lot!


Automatic setting of RGB terminal sequences (t_8f/t_8b) breaks terminal state in SSH/PowerShell

Steps to reproduce

SSH into Windows machine using PowerShell
Open vim 9.1
Enter insert mode
Try to use arrow keys
Notice that arrow movements register irregularly, often only after pressing another key

Expected behaviour
Arrow keys should move cursor immediately in insert mode, as they do in vim 9.0.
Version of Vim
9.1.857
Environment
Operating System: Microsoft Windows 10.0.19045 Build 19045
Terminal: xterm-256color
Shell: PowerShell 7.4.6
Logs and stack traces
Old (working) version:

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jun 28 2022 12:30:17)
MS-Windows 32-bit console version

New (problematic) version:
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Nov 11 2024 22:33:33)
MS-Windows 64-bit GUI/console version with OLE support

Comparing :set termcap output between versions reveals different terminal sequences:
OLD:
t_8b=^[|48;2;%lu;%lu;%lum
t_8f=^[|38;2;%lu;%lu;%lum

NEW:
t_8b=^[[48;2;%lu;%lu;%lum
t_8f=^[[38;2;%lu;%lu;%lum
t_8u=^[[58;2;%lu;%lu;%lum

Possible root cause:
In term.c, there's a comment and code that automatically sets these sequences:
// There is no good way to detect that the terminal supports RGB
// colors.  Since these termcap entries are non-standard anyway and
// only used when the user sets 'termguicolors' we might as well add
// them.  But not when one of them was already set.

This automatic setting of non-standard terminal sequences appears to be putting the terminal in a state that affects arrow key handling.
Workarounds:
Running :!reset fixes the issue temporarily.
I looked at runtime/doc/todo.txt:
Vim internal, but there should be a terminfo entry for these:
- t_8f	set foreground color (R, G, B) in printf() format
- t_8b	set background color (R, G, B) in printf() format
- t_8u	set underline color (R, G, B) in printf() format

When I use the older format using printf format, like this:
let &t_8f = "\<Esc>|38:2:%lu:%lu:%lum"
let &t_8b = "\<Esc>|48:2:%lu:%lu:%lum"

The immediate problem with arrows in insert mode goes away, but it remains when I use the new sequence, which changes | for [. So in this case, it seems that just changing the format alone will not be enough to fix the issue.
The automatic setting of RGB sequences should perhaps be disabled by default, requiring explicit opt-in, as sending these non-standard sequences is causing real usability issues in common terminal configurations. At minimum, there should be a way to disable this behavior without having to explicitly clear the sequences.
The current approach of "sending sequences and hoping for the best" breaks basic editing functionality in scenarios where the terminal doesn't handle these sequences gracefully.

SSH into Windows machine using PowerShell

What exactly does that mean and what terminal are you using? You seem to have an issue with your terminal. Unfortunately, there is no standard way for some of those terminal extensions (like the true color mode). So I'd suggest to configure the escape sequences for terminalguicolors instead of relying on the default.

Comparing :set termcap output between versions reveals different terminal sequences:

Can you please bisect the offending commit

Win32 console version of Vim uses the ^[| style escape sequences. So, I think

In term.c, there's a comment and code that automatically sets these sequences:

this should be disabled if MSWIN is defined.


Adding entries to FieldList

Actual Behavior
This is my fields and html code:
class FileForm(FlaskForm):
    filename = StringField('Filename')
    value = TextAreaField('Paste', validators=[DataRequired()])

class PasteForm(FlaskForm):
    paste = FieldList(FormField(FileForm), min_entries=1)
    submit = SubmitField('Create paste')

{% for field in form.paste %}

    {{ field.filename(placeholder='Filename') }}

    {{ field.value(wrap='off') }}

{% endfor %}
<form>

I found on reddit, that format is <form_variable_name>-<id_number> for creating new entries. So I added it, but I just got new blank form in FieldList.
First question: Why there is no information about this in documentation?
Second question: Why below html just adds blank form to FieldList with blank filename and value ? (see result below)
<input name="paste-1" type="text">
<textarea name="paste-1"></textarea>

This is an output if I am filling all 2 forms:
[{'filename': 'test.py', 'value': "print()", 'csrf_token': None}, {'filename': None, 'value': None, 'csrf_token': None}]
As you can see only first form has values
What I expected to see?

Documentation about this feature
filename and value filled with values

Environment

Python version: 3.11.9
wtforms version: 3.1.2

Since you're using a FormField there is an additional prefix for each subfield, so it's paste-filename-1 and paste-value-1 respectively for adding a second field to the list dynamically. If you already have n entries the 1 needs to be a n instead.


docker build stuck in 1.6.0-rc1

Describe the bug
Docker seems to freeze when running yarn build which uses webpack underline. I had to abort the build and go back to the previous version (1.5.1) which seems to work for me.
To Reproduce

Run the command docker build -f ./app.Dockerfile . --platform=linux/amd64
Wait for Step 10
Abort build (because it get stuck)

Expected behavior
I'd expect the build to finish properly.
Diagnostic report (REQUIRED)
OrbStack info:
Version: 1.6.0-rc1
Commit: 932a523a3e455516178ac5c35f345965de2138de (v1.6.0-rc1)
System info:
macOS: 14.4.1 (23E224)
CPU: arm64, 8 cores
CPU model: Apple M1
Model: MacBookAir10,1
Memory: 16 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-05-15T20-37-27.357822Z.zip
Screenshots and additional context (optional)
Dockerfile:
# Preparing Go Application Builder
FROM golang:1.21-alpine as builder

# Installing nodejs and other dependecies
RUN apk add --update nodejs-current python3 curl bash build-base

# Installing Yarn
RUN curl -o- -L https://yarnpkg.com/install.sh | bash -s --
ENV PATH="$PATH:/root/.yarn/bin:/root/.config/yarn/global/node_modules"
RUN yarn set version berry

WORKDIR /app

ADD package.json .
ADD yarn.lock .
RUN yarn install

ADD go.mod .
ADD go.sum .
ADD . .

RUN yarn build

# Building the application binary in bin/app
RUN go build --ldflags '-linkmode external -extldflags "-static"' -tags musl -o ./bin/app ./cmd/app

FROM alpine

# Binaries
COPY --from=builder /symbol/bin/app /bin/app

# Exporting application
CMD app

Fixed for the next canary.

Released in v1.6.0 Canary 2.

Released in v1.6.0.
New: Truly fast container filesystems on macOS: 2–10x faster, within 75-95% of native


Box File disorder, Arabic Language

@theraysmith @amitdo @Shreeshrii

Box file disorder
The Arabic box file generate using Tesseract 4.x is in LTR ( Left to Right ) which is reversed, the Arabic language is from RTL ( Right to Left ). That means that the first box should start from from the right side.
( Have a look at the wrong and disorder Tesseract 4.0x Arabic box file )
ara.Traditional_Arabic.exp0.zip

Tesseract 4.0 lstm puts the spaces between the words into boxes, as you know.
Thus a problem arises caused by the box file disorder since the boxes are mistakenly set to be in LTR ( Left to Right ) for Arabic which is wrong, causing jumps from ( the end of the first line) to ( the end of the last letter of the line after it).
See the image attached

( Now have a look at the attached correct order of Arabic example tif/box of version Tesseract 3.05).
Arabic example 1.zip
Example 1, correct box order:

While tesstrain.sh takes into account RTL languages while creating the DAWG files, text2image process does not seem to have specific RTL processing.

will there be modifications for text2image ?

What you show here is 'by design'. This should not cause any problem in training process and characters recognition for RTL languages.

There is RTL-specific processing in text2image.
Pango renders RTL text RTL, and the post-processing is intended to re-order
everything strictly LTR.
If it isn't doing that then there is a bug.
Here is why:
Old Tesseract (3.05) is only learning individual character shapes, so the
order of training data is somewhat irrelevant.
New Tesseract (LSTM/4.00) is learning to identify the text characters in
the (LTR) order they appear in the image, so the truth transcription should
be LTR, and the words in the dawg should be reversed.
There is Bidi processing inside the post-recognition processing of
Tesseract that reprocesses/re-orders the text for output, so it appears in
the correct order.
I wonder if the bidi integration is working correctly for LSTM, as the
accuracy with Arabic is unsatisfactory.
In light of this design, please take another look, and let me know if there
is anything systematically wrong in the output that might provide some
hints as to where to look.
Thanks.
On Wed, Jan 11, 2017 at 5:08 AM, Amit D<EMAIL_ADDRESS>wrote:

What you show here is 'by design'. This should not cause any problem in
training process and characters recognition for RTL languages.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/648#issuecomment-271864082,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL056RlP7ZpsIBdJ7ooGiEN1KuDDG54Kks5rRNRggaJpZM4Lf-kT
.

--
Ray.

Ray,
There seems to be a bug. I have tried training a couple of times to 2-3% char error rate. But the OCRed text seems to be way off. During training, it seems that the diacritics are being recognized well., eg.
Iteration 1702: ALIGNED TRUTH : انَدبْعَ ىلَعَ انَلْنَ امَّمِ بٍيْرَ يفِ مْتُنْكُ نْإِوَ نَومُلَعْتَ مْتُنْأوَ ادًادَنْأ هِللِ اولُعَجْتَ الَفَ مْكُل
Iteration 1702: BEST OCR TEXT : انَيبْعَ ىلَعَ انَلْنَ اهَمِ بِيْرَ يفِ مْتُنَ نْإوَ نَوهُلَمْتَ مْتُأوَ اذَادَنأ هِلَلِ اولُعَجْتَ الَفَ مْكُلَ

But the OCRed text does not seem to include any.
ara.Arial_Unicode_MS.exp0.txt
ara.Calibri.exp0.txt
ara.Arial.exp0.txt
@christophered  and @bmwmy can provide Arabic specific details.

https://github.com/tesseract-ocr/tesseract/files/696122/ara.TRAINING.zip has the box tif pairs for the above training.

I wonder if the bidi integration is working correctly for LSTM, as the accuracy with Arabic is unsatisfactory.

Ray,
According to your tests, how does Hebrew (another RTL language) perform?
Do you have accuracy report for various languages that you can share with us, other than the one in the DAS2016 slides?

@theraysmith Hope you have seen comments by Chris on the other thread also - https://github.com/tesseract-ocr/tesseract/issues/642

i was merging the letter extender with the Arabic letter into one single box, and putting that Arabic letters as the character of the box, basically, i was trying to train the engine to recognize that Arabic letter in it's multiple positions, as you know the Arabic letters have multiple forms based which is based on it's position in the word ( beginning, middle, ending, isolated )
Example:
( كـ ) is not ( ك + ـ ) in the box file, it should be ( ك )
also ( ـكـ ) or ( ـك ) they are a single character ( ك ) in different positions, this is important in the box file.

Which also means that ( كَـ ) is not ( ك + ـَ ), it is ( كَ )

Thanks for the work on this.
I've learned 2 things so far:

U+640 (tatweel) is a very special case that I need to think how to
handle - it needs to be preserved in the training text, so it gets
rendered, but needs to disappear everywhere else, as if it doesn't exist.
The diacritics are currently excluded from the unicharset, probably
because they are only rarely used, but need to be included. There may not
be enough text with them included in the text corpora.

Questions:
Is that all of U+64b->U+652 inclusive?
Applied uniformly to all Arabic languages?
(ara+div+fas+kur_ara+pus+snd+syr+uig+urd)
On Wed, Jan 11, 2017 at 7:30 AM, Shreeshrii<EMAIL_ADDRESS>wrote:

@theraysmith https://github.com/theraysmith Hope you have seen comments
by Chris on the other thread also - #642
https://github.com/tesseract-ocr/tesseract/issues/642
i was merging the letter extender with the Arabic letter into one single
box, and putting that Arabic letters as the character of the box,
basically, i was trying to train the engine to recognize that Arabic letter
in it's multiple positions, as you know the Arabic letters have multiple
forms based which is based on it's position in the word ( beginning,
middle, ending, isolated )
Example:
( كـ ) is not ( ك + ـ ) in the box file, it should be ( ك )
also ( ـكـ ) or ( ـك ) they are a single character ( ك ) in different
positions, this is important in the box file.
Which also means that ( كَـ ) is not ( ك + ـَ ), it is ( كَ )
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/648#issuecomment-271898975,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL056fQCae8sI16xZmZURI7_cApxZrHzks5rRPWmgaJpZM4Lf-kT
.

--
Ray.

@amitdo Hebrew seems to be OK. It is certainly ahead of 3.05.
I have some detailed results, but they aren't very meaningful without being able to look at the actual errors to see how many are actually due to the ground truth, or some strange disagreement on whitespace.
The gist is that 4.00 is less good than it could be on:
Arabic (all langs)
Indic (all langs)
Chinese, Japanese.
The problems with Arabic may be explained by this thread.
Chinese, Japanese are troubled by the used of radical-stroke encoding. I need to switch to a better scheme.
Indic may be troubled by the length of the compressed codes used. I need to switch to a better scheme.

@theraysmith

The diacritics are currently excluded from the unicharset, probably
because they are only rarely used, but need to be included. There may not
be enough text with them included in the text corpora.

Ray,
Please see https://github.com/tesseract-ocr/tesseract/issues/552 and https://github.com/tesseract-ocr/langdata/issues/35
Arabic Diacritics are included in the Arabic.unicharset.
@bmwmy had offered to provide additional training text with diacritics - see https://github.com/tesseract-ocr/tesseract/issues/552#issuecomment-269961851
I was able to get the diacritics recognized during training by adding the following line to ara.config, however for some fonts it seems to be treating diacritics as a separate line. Do not know whether it is related to x-height for fonts.
#Diacritics
textord_min_linesize 2.5

Related question, for lstm training, I am using
--noextract_font_properties

while creating the box tiff pairs and lstmf files since @amitdo mentioned that font_properties are not needed for LSTM training, please confirm.

Please also see https://github.com/tesseract-ocr/tesseract/issues/318#issuecomment-218381668 and other comments regarding unicharset.
Are the glyph metrics updated based on the fonts used for training?
Are glyph metrics used for LSTM training?

I examined @Shreeshrii  training set and I appreciate his effort, but seems the text in generated tiffs image files are very small than it should be. It is hard to read even for humans. The vowel diacritics looks like noise. I suggest using 16-22pt font.
Also this:
Iteration 1702: ALIGNED TRUTH : انَدبْعَ ىلَعَ انَلْنَ امَّمِ بٍيْرَ يفِ مْتُنْكُ نْإِوَ نَومُلَعْتَ مْتُنْأوَ ادًادَنْأ هِللِ اولُعَجْتَ الَفَ مْكُل
Iteration 1702: BEST OCR TEXT : انَيبْعَ ىلَعَ انَلْنَ اهَمِ بِيْرَ يفِ مْتُنَ نْإوَ نَوهُلَمْتَ مْتُأوَ اذَادَنأ هِلَلِ اولُعَجْتَ الَفَ مْكُلَ
are reversed order (RTL issue)
comparison between noisy text example which was used in training and good one:

About --noextract_font_properties . Ray confirm it here:
https://github.com/tesseract-ocr/tesseract/issues/634#issuecomment-272027231

Are glyph metrics used for LSTM training?

I believe the answer is 'No'.
@theraysmith, can you confirm that?

@amitdo I have been training using '--noextract_font_properties' since you brought it to my notice.
However, I am wondering whether some type of fontinfo / xheights is still required for LSTM training.
eg. in order to avoid the diacritics being discarded as noise, I had to add `textord_min_linesize 2.6' in ara.config. But different fonts have different sizes, even at same point size. I had to play with different values, but couldn't figure out a value that would work with multiple fonts.
So, I am trying the training again with only one font, Traditional Arabic font at 32 point, as suggested by @bmwmy.
Ray might have a different solution - will wait till the changes in wiki for training are updated.

textord_min_linesize is a hint for the layout analysis step in Tesseract.
If the layout step does not 'cut' the lines properly, the next step - the lines' text recognition, will suffer.

Tesseract release notes July 11 2015 - V3.04.00

Major change to improve layout analysis for heavily diacritic languages: Thai, Vietnamese, Kannada, Telugu etc.

From DAS2016 slide 5 - 'Page Layout Analysis':
Tesseract's existing text-line finding is also weak wrt diacritics,
especially for Arabic and Thai.

There is Bidi processing inside the post-recognition processing of
Tesseract that reprocesses/re-orders the text for output, so it appears in
the correct order.

Iteration 1702: ALIGNED TRUTH : انَدبْعَ ىلَعَ انَلْنَ امَّمِ بٍيْرَ يفِ مْتُنْكُ نْإِوَ نَومُلَعْتَ مْتُنْأوَ ادًادَنْأ هِللِ اولُعَجْتَ الَفَ مْكُل
Iteration 1702: BEST OCR TEXT : انَيبْعَ ىلَعَ انَلْنَ اهَمِ بِيْرَ يفِ مْتُنَ نْإوَ نَوهُلَمْتَ مْتُأوَ اذَادَنأ هِلَلِ اولُعَجْتَ الَفَ مْكُلَ
are reversed order (RTL issue)

@theraysmith
Ray, Can the bidi post-processing be applied as an experiment to these debug messages? Then we can very easily see whether it is working.

Shree, you might want to use this text2image option with Arabic:
--leading  Inter-line space (in pixels)  (type:int default:12)
As a minimum it should equal to ptsize. For Arabic, you can try to increase it (20-50 percent bigger than ptsize)

IMO, 32 ptsize is too big. Try 14/16.

Arabic also has presentation forms i.e. spacing forms of Arabic diacritics, and contextual letter forms.
Please  see
http://www.alanwood.net/unicode/arabic_presentation_forms_a.html
http://www.alanwood.net/unicode/arabic_presentation_forms_b.html
and
https://github.com/w3c/alreq/wiki/Should-I-use-the-Arabic-Presentation-Forms-provided-in-Unicode%3F
Though, it is not recommended to use these for content under newer versions of unicode, I am wondering whether it will make OCR easier if these were used...

Are glyph metrics used for LSTM training?

No. Confirmed by Ray here: https://github.com/tesseract-ocr/langdata/issues/31#issuecomment-272261739

... the glyph metrics aren't used.

Shree, you might want to use this text2image option with Arabic:
--leading Inter-line space (in pixels) (type:int default:12)

As a minimum it should equal to ptsize. For Arabic, you can try to increase it (20-50 percent bigger than ptsize)

tesstrain.sh process uses default --ptsize which is 12.
language_specific.sh sets --leading to 32 by default and to 48 for Thai fonts.

@Shreeshrii here is a sample text for you, please test and post the findings
Arabic sample variation.zip
@theraysmith Most if not all languages related to Arabic (example: Farsi, Urdu, etc..) use such diacritics.
The Arabic diacritics are often but not always used in the Arabic text, sometimes in all the text, and sometimes at one letter in each word, but believe me the diacritics are frequently used.
Have a look at The Quran

@Shreeshrii your sample of box/tif that you provided had an some errors that I've notice:

The U+640 (tatweel) issue
example: بِسمِ
wrong: ب ـِ س ـِ م
correct: ب س م   only 3 letters بسم
@theraysmith got it right, Tesseract should have the capability to generate it in .tif, but not consider it as a single character in the .box file, the correct thing would be that the box of U+640 (tatweel) be combined with the box of another letter, while setting the box as the character of a single letter, never even mentioning  U+640 (tatweel) in the .box file , ever.
U+640 (tatweel) is a special case, people dont usually use it while writing text, so dont use it, or merge the boxes and remove it.

As @bmwmy mentioned earlier, in your .tif the charachters of the text are seperated, thats wrong.
wrong: بـ ـسـ ـم
correct: بسم

The box tiff pairs are as generated by text2image program.
Any changes to that will have to be done by Ray.
I will test with the files you have provided.

excuse the brevity, sent from mobile

On 28-Jan-2017 9:30 PM, "chris"<EMAIL_ADDRESS>wrote:

@Shreeshrii https://github.com/Shreeshrii your sample of box/tif that
you provided had an some errors that I've notice:

The U+640 (tatweel) issue
example: بِسمِ
wrong: ب ـِ س ـِ م
correct: ب س م only 3 letters بسم
@theraysmith https://github.com/theraysmith got it right, Tesseract
should have the capability to generate it in .tif, but not consider it as a
single character in the .box file, the correct thing would be that the box
of U+640 (tatweel) be combined with the box of another letter, while
setting the box as the character of a single letter, never even mentioning
U+640 (tatweel) in the .box file , ever.
U+640 (tatweel) is a special case, people dont usually use it while
writing text, so dont use it, or merge the boxes and remove it.
2.
As @bmwmy https://github.com/bmwmy mentioned earlier, in your .tif
the charachters of the text are seperated, thats wrong.
wrong: بـ ـسـ ـم
correct: بسم
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/648#issuecomment-275856218,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o1m8lCpawdFVw2ywk8nxQgwrn-zKks5rW2YIgaJpZM4Lf-kT
.

@theraysmith i suggest that you give capability to convert tesseract 3.0x box files to tesseract 4.0x since many of us have tif/box files based on the older version 3.0x
@theraysmith Also, Ubuntu have released the Snaps project, which is being able to distribute a software as a universal Linux package, would it be possible to also release a Snappy version on Tesseract 4.0x , which is basically Tesseract 4.0x with all of it's dependencies, this would save us time and effort of spiking the building process and it's issues, and going directly to the fully functional Tesseract.

There is Bidi processing inside the post-recognition processing of
Tesseract that reprocesses/re-orders the text for output, so it appears in
the correct order.
I wonder if the bidi integration is working correctly for LSTM, as the
accuracy with Arabic is unsatisfactory.

@theraysmith Have you had a chance to look at this?

@christophered

@Shreeshrii here is a sample text for you, please test and post the findings
Arabic sample variation.zip

Please send me your box file corresponding to the above text. I will add tab characters for new line to test, rather than use text2image generated box files.

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/tesseract-ocr/EOwF1GnOcS0/My_SUf1vEQAJ

tesseract4 reads الأ as األ which is pretty close, because we need to switch the position of the last 2 letters to have ا ل أ, this happens with similar word forms too like لا reads as ال and should be ل ا, and i wish to correct it.

Thanks for forwarding that @Shreeshrii, there is a bug there that needs to
be fixed.
On Fri, Mar 10, 2017 at 2:25 AM, Shreeshrii<EMAIL_ADDRESS>wrote:

https://groups.google.com/forum/?utm_medium=email&utm_
source=footer#!msg/tesseract-ocr/EOwF1GnOcS0/My_SUf1vEQAJ
tesseract4 reads الأ as األ which is pretty close, because we need to
switch the position of the last 2 letters to have ا ل أ, this happens with
similar word forms too like لا reads as ال and should be ل ا, and i wish to
correct it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/648#issuecomment-285633162,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL056TBSuVaAYXREd1MJEUZz-KfW_b_pks5rkSUQgaJpZM4Lf-kT
.

--
Ray.

I can't believe my eyes. Ray commented in the user forum.
Shree, you are a magician!
:laughing: :rofl: :laughing:

Here is Ray's response:

Thanks for spotting this!
I understand why it makes this error, but it will take some thought to fix it properly!
It is using a sort by x-position to re-order the boxes for RTL language training, but that doesn't work in the case of heavily kerned characters like ل in your example.
It needs to simply reverse the RTL characters, but has to avoid messing up the order of the common script, which is why I was using a sort to begin with.
https://github.com/tesseract-ocr/tesseract/blob/master/training/boxchar.cpp#L202

Here are some libraries that implement the Unicode Bidi algorithm.
https://github.com/behdad/pybyedie
Copyright (C) 2013  Google
License: MIT
Written in: Python
https://github.com/servo/unicode-bidi
By Mozilla
License: Apache 2.0 / MIT
Written in: Rust
https://github.com/behdad/fribidi
License: LGPL 2.1
Written in: C
https://github.com/MeirKriheli/python-bidi
License: LGPL 3.0
Written in: Python

I've started training with a fix for this.
On Fri, Mar 31, 2017 at 7:00 AM, Amit D<EMAIL_ADDRESS>wrote:

Here are some libraries that implement the Unicode Bidi algorithm.
https://github.com/behdad/pybyedie
Copyright (C) 2013 Google
License: MIT
Written in: Python
https://github.com/servo/unicode-bidi
By Mozilla
License: Apache 2.0 / MIT
Written in: Rust
https://github.com/behdad/fribidi
License: LGPL 2.1
Written in: C
https://github.com/MeirKriheli/python-bidi
License: LGPL 3.0
Written in: Python
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/648#issuecomment-290720020,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL056WfXs2mhFutZnpOnUujEFyxXRg_Oks5rrQcTgaJpZM4Lf-kT
.

--
Ray.

@theraysmith can you give Tesseract 4.x the ability to Train single words with a single Box

#839

Please help to add space after text in Punjabi(Panjabi or Gurmukhi) sentance.

@theraysmith the recognition rate of the Arabic model is impressive, you really made a big recognition leap from 3.x to 4, Have you managed to solve issue #758 relating to لا is wrongly flipped as ال

@Shreeshrii @amitdo @theraysmith
I have read a research that conclude by developing a recurrent neural network
that predicts diacritics in non-diacritized texts for Arabic, how is that possible?
Does that mean if I train an Arabic Model with text that have Arabic diacritic, then use this model to recognize an image with Arabic text that dont have diacritic, the ocr txt result will have diacritics?
is that true?

@theraysmith have you solved the problem of لا ? it really effects the error rate

I have! At the second attempt, I found the cause to be that unicodes within a ligature were not reversed.
There are some changes to the code (probably early next week) to fix this, and the dropped last space on each line of RTL text output, (is there an issue for that, or am I the only one that noticed?), and the corresponding traineddatas will be coming soon too.

@theraysmith The main problem is caused by the reorder and normalize function in Tesseract.
Kraken have managed to fix many of the RTL langues bugs, along with using python-bidi, kraken reorder and normalize the writings, including alphabets and even diacritics.
Have a look at: http://kraken.re/ketos.html
https://github.com/mittagessen/kraken
Example:

Kraken reorder and normalize the text so it could be trained in Left To Right, notice that the text is reversed and the marks are moved to the next letter to the right:
امو مهسفنٔا الٕا نوعدخي امو اونمٓا نيذلاو هللا نوعداخي
Ray, I hope that you could replicate Kraken's solution, once Tesseract solves this problem, Arabic and Hebrew would be able to achieve the golden recognition rates.

@theraysmith

the dropped last space on each line of RTL text output, (is there an issue for that, or am I the only one that noticed?),

I think it is related to issue https://github.com/tesseract-ocr/tesseract/issues/1015

@theraysmith
Dear Mr.Smith,
I am so grateful for answering my questions.
It came to my mind, maybe it is the problem. I thought, it is not a bad
idea to share it with you.
I think the problem of لا happens because of this:
for example if we have this:
الا انفسهم
Tesseract first reorder it this way:
8
7
6
5
4
3
2
1
ا
لا
ا
ن
ف
س
ه
م
Then it substitutes لا with two separate characters ل ا. So , the sequence
of characters becomes like this:
9
8
7
6
5
4
3
2
1
ا
ا
ل
ا
ن
ف
س
ه
م
After doing OCR, it reorders the characters to show them in the correct
order. So it becomes:
9
8
7
6
5
4
3
2
1
م
ه
س
ف
ن
ا
ل
ا
ا
So, the problem happened.
About the he dropped last space on each line of RTL text output, I have not
faced this problem.
I am really looking forward for the new traineddata I do appreciate your
kind help.
On Fri, Jul 21, 2017 at 7:44 AM, Shreeshrii<EMAIL_ADDRESS>wrote:

@theraysmith https://github.com/theraysmith
the dropped last space on each line of RTL text output, (is there an issue
for that, or am I the only one that noticed?),
I think it is related to issue #1015
https://github.com/tesseract-ocr/tesseract/issues/1015
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/648#issuecomment-316890698,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZFiAVnhv01Xw6nKogWP_uU8BAPGJYRzks5sQBengaJpZM4Lf-kT
.

@theraysmith have a look at some reordering script as an example code, reorder.py:
#! /usr/bin/env python

import sys
import glob

from bidi.algorithm import get_display

for f in glob.glob(sys.argv[1] + '/*.txt'):
    with open(f, 'rb') as fp:
        with open(f + '.re', 'wb') as fo:
            fo.write(get_display(fp.read().decode('utf-8')).encode('utf-8'))

@hanikh please modify your reply horizontally, you are making the topic hard to go through :sunglasses:

@christophered
it was this way:
Tesseract first reorder it this way:
8      7      6      5      4      3      2       1
م       ه       س      ف     ن      ا      لا        ا
Then it substitutes لا with two separate characters ل ا. So , the sequence
of characters becomes like this:
9       8      7      6      5      4      3      2       1
م       ه       س      ف     ن      ا      ل          ا       ا
After doing OCR, it reorders the characters to show them in the correct
order. So it becomes:
9       8      7      6      5      4      3      2       1
ا        ا       ل       ا      ن       ف     س    ه         م
So, the problem happened.

@theraysmith @Shreeshrii
Note that Arabic & Hebrew diacritics  have the same issue of the U+640 (tatweel), therefore I suggest that they need to be preserved in the training text so that they get rendered, but need to disappear everywhere else as if they doesn't exist.
Currently, when introducing diacritics to a training model, the recognition rate falls drastically, thus I suggest Playing it Safe for now, they must be rendered, but disappear elsewhere.

Please help me understand your comment on diacritics.
I understand that tatweel is a rendering artifact, that should be rendered
for training, but not occur in the output text (or in the language model).
My previous understanding of vowels in Hebrew and Arabic, is that they are
diacritical marks that are optional, and used mainly for disambiguation,
children's text and in historical text.
Are you referring to some different diacritics other than vowels, or are
you suggesting that vowels should never appear, or that some different
diacritics exist that should never appear in the output text?
Here are some examples of test data with diacritics:
Truth: שֶׁהוּא נָס מִפָּנָיו, אָמַר לוֹ מֹשֶה: כָּל הַיּוֹם הָיִיתִי אוֹמֵר
לְךָ בְּשֵׁם הַקֹּדֶשׁ וְלֹא הָיִיתָ
OCR: שָהוּא נס מִפָּנִיו, אָמַר לו משָה: כָּל הַיום הָיִיתי אוּמר לֶך
בָּשַם הקדש ולא הָיִיתָ
Confs: 0.84 0.56 0.64 0.93 0.96 0.77 0.88 0.76 0.63 0.64 0.54 0.45 0.91
0.88 0.58
Diff: שָהוּא נָס מִפָּנִיו, אָמַר לוֹ מֹשָה: כָּל הַיּוֹם הָיִיתִי אוּמֵר לֶ
ךָ בָּשַם הַקֹּדֶשׁ וְלֹא הָיִיתָ
Recall Errors = 12
Precision Errors = 2
Truth: ותופחים בבטנים ובשירים שארכם כארך סיגריה,
OCR: וְתופחים בַּבַּטָנִיס וּבשירים שאַרכֶּם כַארְף סִיגְרִיה,
Confs: 0.71 0.71 0.91 0.8 0.56 0.56
Diff: וְתופחים בַּבַּטָנִיס וּבשירים שאַרכֶּם כַארְף סִיגְרִיה,
Recall Errors = 6
Precision Errors = 1
Truth: له يزيد الرجال وركبوا الطريقَ فلم يشعر بهم العدو حتى ركبوا
OCR: له يزيج الرجال وركبوز الطريق فلم يشعر بهم العدر حتى ركبو
Confs: 0.82 0.9 0.96 0.4 0.9 0.96 0.93 0.97 0.64 0.94 0.71
Diff: له يزيج الرجال وركبوز الطريقَ فلم يشعر بهم العدر حتى ركبوا
Recall Errors = 5
In all these cases, tesseract gets a poor result.
In case 1, the diacritics are in the truth text, and Tesseract gets them
badly wrong.
In case 2, the diacritics are NOT in the truth text, and Tessseract
suggests some anyway.
I don't think that both of these truth texts can be "correct" in the sense
that one has the diacritics and the other does not. Which way should it be
and why?
In case 3 (Arabic) there are diacritics in the truth text (or are these not
what you are talking about?) and Tesseract does badly anyway.
The tatweel and ligature problem are fixed and will be corrected in the new
traineddatas coming soon, but it will have the above errors in.
According to my measurements, accuracy on Hebrew/Yiddish and Arabic/Farsi
are much improved, but still behind most of the LTR scripts.
If there is still something systematically wrong, your comments could help
further improve it!
Thanks,
On Wed, Jul 26, 2017 at 8:48 AM, chris<EMAIL_ADDRESS>wrote:

@theraysmith https://github.com/theraysmith @Shreeshrii
https://github.com/shreeshrii
Note that Arabic & Hebrew diacritics have the same issue of the U+640
(tatweel), therefore I suggest that they need to be preserved in the
training text so that they get rendered, but need to disappear everywhere
else as if they doesn't exist.
Currently, when introducing diacritics to a training model, the
recognition rate falls drastically, thus I suggest Playing it Safe for
now, they must be rendered, but disappear elsewhere.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/648#issuecomment-318095244,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL056U2hHxhVyRranKuDmk3b59uCZ3eIks5sR1-pgaJpZM4Lf-kT
.

--
Ray.

@theraysmith
fyi - https://github.com/tesseract-ocr/tesseract/issues/892#issuecomment-318063065

http://blogs.transparent.com/arabic/2-arabic-diacritics-al-tashkeel-الـتـشـكـيـــل/
Good explanation with examples.

Ray, please see https://en.wikipedia.org/wiki/Arabic_script_in_Unicode#Contextual_forms
You could consider using Arabic Presentation Forms-B range for training and OCR and convert to general unicode for output.

@theraysmith  that could be a solution ( well not sure ) https://en.wikipedia.org/wiki/Arabic_script_in_Unicode#Contextual_forms
these contextual forms are standard any form other than these can be considered as combination and thus inverted in the output

Ray, I intend to open a new issue about Hebrew soon.

For Hebrew, see https://github.com/tesseract-ocr/langdata/issues/82

@theraysmith Sorry for taking so long to reply back, I was training lstm models and conducting tests for days to have insight and solution on the matter of Arabic and diacritics.
Intro:
What is the Arabic diacritics issue: it's when the ocr engine recognition rate is reduced when introducing a foreign element/mark to the text, in this case diacritics; meaning if the text has few diacritics can the ocr engine recognize the text and achieve decent rates?
Reply to Ray:

Note that you are fully correct in regards to Tatweel.
Note that you are mostly correct in regards to the Arabic diacritical marks, they are mostly optional, but for some conditions are necessary, mostly the Maddah & the Tanwin.
Nevertheless, nowadays Arabic diacritics are moderately used.
Example of some situations that it is necessary to use marks:

Results of my tests related to diacritics:

Training a model with Arabic text, without diacritics
100% Recognition rate on the training data.
+90% Recognition rate on scanned documents without diacritics.
Note that it cant recognize words with diacritics.
Verdict: Suitable for real-life situations, but recognition rate can be further improved.

Training a model with Arabic text, the rendered images contains moderate diacritics but the transcription/groundtruth is without diacritics.
100% Recognition rate on the training data.
Note that it cant recognize words without diacritics well.
Verdict: Fail, not suitable for real-life situations.

Training a model with Arabic text, with text containing a mixture of both: lines with few diacritics and lines without diacritics .
+95% Recognition rate on the training data.
+90% Recognition rate on other images.
Can handle both images with/without diacritics.
Verdict: Best of All tests, most stable and consistent, the model can recognize text with and without diacritics, has minor mistakes here and there that can be easily corrected via Microsoft Word, suitable for real-life situations.

Conclusion:
The diacritics issue with regards to the Arabic language  can be solved by creating a model with a combination/mixture of both: lines with & without diacritics.
Example, include in your training non-diacritized lines:

Also include diacritized lines:

Certainly, the non-diacritized training data should be more than the diacritized, say +80% non-diacritized.
Thus the model will be able to recognize normal text, and also will know how to handle the few foreign elements if introduced.
This problem can be solved by wisely introducing few variations and mixture of data, thus the trained model will be more complex. Therefore, for now, there is no need to modify anything except the training data.

Example:

GDT: آمنا بالله إن شئتم الآخرة هم بمؤمنين يا أيها
NFD: اهئا اي نينمٔومب مه ةرخٓالا متٔيش نٕا هللاب انمٓا
NFC: اهيأ اي نينمؤمب مه ةرخآلا متئش نإ هللاب انمآ
The difference between NFD vs NFC, is that after the text is is reordered to LTR for training, NFD pushes the marks/diacritics to the right-side, while in NFC the marks/diacritics remain on the characters.
@theraysmith I understand that for training, Tesseract 4.x reorders the Arabic text to reading language, meaning from RTL to LTR & then normalizes it.
For normalization, which form does it uses, NFD or NFC?

text2image should have an option to randomly add tatweel every n lines.
https://en.wikipedia.org/wiki/Kashida

Kashida is generally only used in one word per line and applied to one letter per word.

Furthermore, kashida is recommended only between certain combinations of letters (typically those which cannot form a ligature).

@theraysmith when will you introduce

@amitdo No, No.......! That is very bad
Tatweel reduces the recognition rate, and makes the model unstable and confused theoretically speaking
Ray stated earlier that he have fixed the tatweel problem, he even gave the option to render it if you want to,  but it will be removed as a singular sole character from the training data.
I think he solved this issue by Merging the tatweel Box with the earlier glyph box, and removing the tatweel as a character, the final remainder is 1 box with the earlier glyph.

For normalization, which form does it uses, NFD or NFC?

It seems it use NFKC.

Hi @christophered, I don't think you understood my meaning.
I Re-read what Ray said in this issue.

it needs to be preserved in the training text, so it gets rendered

I understand that tatweel is a rendering artifact, that should be rendered foor training, but not occur in the output text (or in the language model).

The tatweel and ligature problem are fixed and will be corrected in the new traineddatas coming soon

So it seems he already implemented (but didn't push yet) what I just now suggested.

text2image is the program that renders images from ground truth.

text2image should have an option to randomly add tatweel every n lines.

'add' here means 'render'.

https://github.com/tesseract-ocr/tesseract/commit/3e63918f9db4150a3d1ff6136df9b753e507ae41
Please test with latest source from github. The commit by @theraysmith  fixes the issue.

@theraysmith
Thanks for these updates.
Does the complete fix for RTL languages also require new traineddata created with these fixes?
Will you be uploading a new version of traineddata?

the new version of traineddata has been uploaded a lot of time ago.
On Sat, Sep 9, 2017 at 10:07 AM, Shreeshrii<EMAIL_ADDRESS>wrote:

@theraysmith https://github.com/theraysmith
Thanks for these updates.
Does the complete fix for RTL languages also require new traineddata
created with these fixes?
Will you be uploading a new version of traineddata?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/648#issuecomment-328256183,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZFiAfGrAIkJiFceO2zo3iNI77Q7sz9Dks5sgiQGgaJpZM4Lf-kT
.

@hanikh You are right, Ray had uploaded the best traineddata files on August 1.
However, I think that the wordlists in traineddata for RTL languages in that still had some errors in order of characters in ligatures.
I am hoping that @theraysmith will upload fixed versions of traineddata to the new repos for LSTM traineddata -
https://github.com/tesseract-ocr/tessdata_best
and
https://github.com/tesseract-ocr/tessdata_fast

if you are looking for Arabic diacritization corpus, here is a good one

Hi guys, im using tesseract 4.00 and i have did my program to recognize English language . it worked very well , now im trying to include arabic language in my program but it give a very weird characters even though i used ara.triandata instead of eng.traindata

Try
script/Arabic.traineddata
From tessdata_fast
or
tessdata_best
On Mon 30 Apr, 2018, 11:58 AM AbdelsalamHaa<EMAIL_ADDRESS>wrote:

Hi guys, im using tesseract 4.00 and i have did my program to recognize
English language . it worked very well , now im trying to include arabic
language in my program but it give a very weird characters even though i
used ara.triandata instead of eng.traindata
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/648#issuecomment-385321239,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE2_o1fLbf5agYdH9NZ-FRFNJLv0vOSLks5ttq8bgaJpZM4Lf-kT
.

@AbdelsalamHaa
Why do you ask the same question 4 times in different issues?
Please use the forum to ask questions.
https://github.com/tesseract-ocr/tesseract/issues?q=is%3Aissue+involves%3AAbdelsalamHaa+is%3Aopen
https://github.com/tesseract-ocr/tessdata/issues?q=is%3Aissue+involves%3AAbdelsalamHaa+is%3Aopen

@amitdo
sorry i thought each one is different , my apologies to you .
@Shreeshrii .
this is the result when i use both fast ara.traineddata and best ara.traineddata . both the same

the image im trying to read is this one

however on the prompt window the result is also different then even the one before printing

is it because the language i use for my laptop or that has nothing to do with this .

Seems like a locale issue. Output to a file and then open it in a unicode text editor.

You may need to preprocess the image for better result.

عبدالسلام حمدي عبدالعزيز
tesseract 648-arabic.png    -  -l ara --tessdata-dir ./tessdata_best
عبدالسلام حمدي عبدالعزيز

@Shreeshrii
i found out why  they are  different it's because my computer used chines to encode any non unicode text , i mean from the tesseract and the prompt window
but the out still this one in my case
i download ara.traineddata from here
https://github.com/tesseract-ocr/tessdata_fast
and i used this website to check the unicode as u mention
https://r12a.github.io/app-conversion/ but not any arabic charterer was shown .

this is the part of my code for tessract
i aslo used the image u just send to test  but still got the same wired charterers

here where i initialized all .traineddata files

To say my problem more clearly , the tesseract read the image correctly. It returns the correct UTF-8 code but then this code when it's treated as hex code the charterers will be wrong.
hope can anyone help me with this

okay final i found out the problem , well i fixed few thing so im not sure which one exactly was the mistake but i think the most is
in the Advance saving option i change it to be like this

i test the code first using this simple code even though it's not tesseract fault but it might be use full for other
`#include <stdio.h>
#include <windows.h>
#include
#include
#include
#include
using namespace std;
int main() {
ofstream writer("file3.txt");
// Set console code page to UTF-8 so console known how to interpret string data
//SetConsoleOutputCP(CP_UTF8);
// Enable buffering to prevent VS from chopping up UTF-8 byte sequences
//setvbuf(stdout, nullptr, _IOFBF, 1000);

string test1 = "عبدالسلام حمدي عبدالعزيز\n";
cout << test << std::endl;
cout << test1  << std::endl;

writer << "\t na  " << test1.c_str() << endl;

getchar();
return 0;

} `

hello
I have tatweel (kashida) problem in Persain too. can i use text2image to fix it?


OLS4 questions regarding ORDO

Dear all,
Nice work for the new OLS4
I was testing https://www.ebi.ac.uk/ols4/ontologies/ordo and it's good to see it updated here.
Nevertheless, I have 2 questions :

Redirection
Will those links will be maintened/ redirected ?
ex:
https://www.ebi.ac.uk/ols/ontologies/ordo/terms?iri=http://www.orpha.net/ORDO/Orphanet_730
=>
https://www.ebi.ac.uk/ols4/ontologies/ordo/terms?iri=http://www.orpha.net/ORDO/Orphanet_730

Inferred view
With previous version, when displaying the "group of disorders" class, the OLS was showing the inferred view of it (which was useful to display the classifications tree)

the new version display a list of concepts within the class "group of disorders" and partial trees.
(I assume based on subclass of relation. Did "part of" also considered ?
For this one, I assume the issue could be also on our side with this version of ORDO.
Still, is the display mechanism will be different between OLS and OLS4 regarding the trees / inferred views ?
Best regards,

Yes we will maintain both links indefinitely to ease the transition. One will redirect to the other when OLS3 is taken down, at which point it won't matter which one you use.

To avoid adding unintended axioms, we assume any reasoning has already taken place. So you should provide a pre-reasoned version of your ontology for us to index.

the new version display a list of concepts within the class "group of disorders" and partial trees.
(I assume based on subclass of relation. Did "part of" also considered ?

Yes "part of" is considered. You can see lots of examples of it in the link you provided https://www.ebi.ac.uk/ols4/ontologies/ordo/terms?iri=http://www.orpha.net/ORDO/Orphanet_730 : we recently added the "P" icon to denote part of.


publish to npm

It's published to bower, and package.json exists, so why not publish to npm, too? More options for us to install it.
Thanks!

+1

+1

https://github.com/stefanerickson/covervid/pull/38
https://www.npmjs.com/package/covervid

This project is no longer maintained now that their is widespread support for the object-fit and object-position CSS properties in modern browsers


Patch 1

Update zh_TW translation

Hey, thank you for the PR! I will have a look at it later.
It would be great if you could upload it additonally on Crowdin:
https://crowdin.com/project/alps-bte-plot-system

Uploaded it on Crowdin. Mainly based on the translation on Crowdin, with some modifications compared to here


Add rest of AVR Dx-series

The devices section has not been updated to account for newly released parts.
This adds entries for the rest of the DA-series, the DB-series, and the as-yet-unreleased, but likely to have the same UPDI interface, DD-series.

Oops! Fixed.

thanks folks!


web ERROR  1.19.4

[✓] Flutter (Channel dev, 1.19.0-4.0.pre, on Linux, locale en_US.UTF-8)
• Flutter version 1.19.0-4.0.pre at /home/attia/Porgram/flutter
• Framework revision 2f7a59a8da (3 days ago), 2020-06-05 03:44:02 -0700
• Engine revision d17c84e7af
• Dart version 2.9.0 (build 2.9.0-13.0.dev 02915ec5ce)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /home/attia/Android/Sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /home/attia/Porgram/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 4.0)
• Android Studio at /home/attia/Porgram/android-studio
• Flutter plugin version 46.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.45.1)
• VS Code at /usr/share/code
• Flutter extension version 3.11.0
[✓] Connected device (2 available)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome     • chrome     • web-javascript • Google Chrome 83.0.4103.97
Launching lib/main.dart on Chrome in debug mode...
ERROR - 2020-06-08 03:08:48.321363
GET /dwds/src/injected/client.js
Error thrown by handler.
NoSuchMethodError: The method 'toFilePath' was called on null.
Receiver: null
Tried calling: toFilePath()
dart:core                                              Object.noSuchMethod
createInjectedHandler.. (package:dwds/src/handlers/injected_handler.dart:35:39)

remove pub cache files and it should work

Still bug

Related to https://github.com/flutter/flutter/issues/58110, https://github.com/flutter/flutter/issues/54971

@VladyslavBondarenko   #58110, it work for me


Update Teams-add-in-for-Outlook.md

https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/2097
Changed Note.

@nenonix @JohanFreelancer9 Copy editing is needed for this PR. Thanks.

I'm checking with the PM for this feature. Stay tuned.

Thank you @LolaJacobsen


#learn_vuex—pinia使用

General

✏ Mark the necessary items without changing the structure of the PR template.

[ ] Pull request template structure not broken

Type

ℹ What types of changes does your code introduce?

👉 Put an x in the boxes that apply

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist

ℹ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

👉 Put an x in the boxes that apply.

[ ] My code follows the style guidelines of this project
[ ] Is the code format correct
[ ] Is the git submission information standard?
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

可以描述下这个PR要解决的问题？

抱歉 ，点错了 已 close


Need a way for extensions to disable textmate quickSuggestions during textDocument/completion

VSCode Version: 1.14.1
OS Version: All

Steps to Reproduce:

Enable quickSuggestions and wordBasedSuggestions.
Type some C++ code like "#pragma o".

Bug: The "o" on Enter will get autocompleted undesirably and there's no way for the language extension to disable the wordBasedSuggestion. VS Code has the comments and strings settings, but it doesn't allow extensions to have it's own classification to disable quickSuggestions (i.e. if the extension knows the code is like a comment/etc. and shouldn't autocomplete).
Reproduces without extensions: No

There is a user setting snippetSuggestions which controls that. Tho, just repeating what I have said many times before: The fact that CPP tools try to force me into a certain style of working is considered bad style. It's up to the user to configure the IntelliSense behaviour and not up to you guys. @sean-mcmanus How would you feel if the TypeScript extensions enforces that the explorer shows on the right instead and that the status bar color is pink?

snippetSuggestions doesn't control that -- VS Code itself doesn't provide snippets for C++. I think mean the quickSuggestions and wordBasedSuggestions settings. The problem is that we only want it disabled in certain language-specific context. In a #pragma or variable declaration, quickSuggestions is not desirable, so trying to do a #pragma once or class oClass will autocomplete to some bogus pre-existing variable starting with o whenever Enter is pressed. We want C++ users to have a good out of the box default experience, similar to in VS 2017, which doesn't invoke a quickSuggestion in places were it is not desirable. It's okay if a user explicitly chooses to show a completion list there via a keyboard shortcut. VS Code has already added the comment and string settings for quick suggestions, but C++ has other context where we want to disable quickSuggestions by default.

@jrieken, this is not a case of style.  We are not changing editor settings. We are responding to language service requests.  This is a case of the extension saying "there is no good suggestion for you at this time."  When we tell VS Code that there is no good suggestion, VS Code is stepping in and overriding our language service.  How would you feel if your language service was trying to do the right thing and then VS Code stepped in and said, "no, I want to do it this way instead"?
Please reconsider.


OSError: [Errno 8] Exec format error: 'configs/EVAL_M_OWOD_BENCHMARK.sh'

Objective: I am trying to perform direct inference without training the model
After setting up the environment and installing all dependencies,also I had made some changes required to run this code on single instance ,and i have added the weights in the mentioned folder then I encounter the following error when attempting to run the run_eval.sh script:
OSError: [Errno 8] Exec format error: 'configs/EVAL_M_OWOD_BENCHMARK.sh'
Environment: Single EC2 instance . [Tesla T4]
Script: run_eval.sh
@orrzohar

It seems like you are trying to run a the shell script (configs/EVAL_M_OWOD_BENCHMARK.sh) as an executable, which is causing the OSError: [Errno 8] Exec format error error.
To resolve this issue, you need to make sure that the script has execute permissions and is being run as a shell script. Here are the steps you can follow:

Make sure that the script has execute permissions:

chmod +x configs/EVAL_M_OWOD_BENCHMARK.sh

Run the script with the appropriate shell:

bash configs/EVAL_M_OWOD_BENCHMARK.sh

If you encounter any other errors, please provide more information about your environment and the changes you made to the code so I can better assist you.

now its working thanl you!! @orrzohar


Refer to DesignerSerializationVisibility attribute

When it comes to generate efficient code, the DesignerSerializationVisibility attribute would be worth to be mentioned. Depending on the scenario, the attribute fits better.
An example:
My scenario was a custom inherited ToolStripButton. It introduces a new property which controls some of the properties of the base classes. Those properties should no longer be serialized.
I first tried the methodology described in this page before finding out that the DesignerSerializationVisibility attribute works best for me, using the following pattern:
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public new bool CheckOnClick { get => base.CheckOnClick; set => base.CheckOnClick = value; }

By the way, there are two swapped words "a have" in the first sentence.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e32682fb-671a-8f6e-045c-e92a96ca029e
Version Independent ID: 42210b30-f3ee-9975-b3f2-8752f9aca815
Content: Defining Default Values with the ShouldSerialize and Reset Methods - Windows Forms .NET Framework
Content Source: dotnet-desktop-guide/framework/winforms/controls/defining-default-values-with-the-shouldserialize-and-reset-methods.md
GitHub Login: @adegeo
Microsoft Alias: adegeo

Thank you for opening this issue. I'll add it to the backlog. If you would like to contribute, you can submit a fix by editing the original article. Click on the Content Source link at the bottom of your original comment. To learn how to edit, see the Editing files in a repository article from GitHub.
Thanks again!


Stream metadata retrieval ignores db/schema

Provider Version
0.25.8
Terraform Version
1.0.0
Describe the bug
If you have a stream with the same name across different schemas, on every plan/apply the provider tries to change the on_table and append_only parameters.

Expected behavior
When reading metadata from a dictionary should always consider full hierarchy(db->schema->object), not just the object name. In this example, having streams with the same name across different schemas should give back a single stream per schema.
Code samples and commands
# snowflake_stream.stream_cdc2["rpps_client"] must be replaced
-/+ resource "snowflake_stream" "stream_cdc2" {
      ~ append_only       = false -> true # forces replacement
      ~ id                = "SBOX_RAW|CDC2|RPPS_CLIENT_STREAM" -> (known after apply)
        name              = "RPPS_CLIENT_STREAM"
      ~ on_table          = "SBOX_RAW.CDC1.RPPS_CLIENT_STG" -> "SBOX_RAW.CDC2.RPPS_CLIENT_STG" # forces replacement
      ~ owner             = "BUILDER" -> (known after apply)
        # (3 unchanged attributes hidden)
    }

Additional context
The same bug was encountered with tasks. Can workaround with prefix/suffix object names with the db/schema name to make the name unique.

Can you provide the terraform you're writing that is making this change?

I am not making any changes in my terraform file. Just upgrade from 0.25.6 to 0.25.8 created this problem.
Here is example:
`resource "snowflake_stream" "stream_cdc1" {
depends_on = [
snowflake_table.tables_cdc1,
snowflake_table.tables_cdc2
]
name     = "${upper(each.key)}_STREAM"
database = snowflake_database.databases["RAW"].name
schema   = snowflake_schema.schemas["CDC1"].name
on_table    = "${snowflake_database.databases["RAW"].name}.${snowflake_schema.schemas["CDC1"].name}.${upper(each.key)}_STG"
append_only = true
for_each = {
"rpps_client"                    = {}
...
...
}
resource "snowflake_stream" "stream_cdc2" {
depends_on = [
snowflake_table.tables_cdc1,
snowflake_table.tables_cdc2
]
name     = "${upper(each.key)}_STREAM"
database = snowflake_database.databases["RAW"].name
schema   = snowflake_schema.schemas["CDC2"].name
on_table    = "${snowflake_database.databases["RAW"].name}.${snowflake_schema.schemas["CDC2"].name}.${upper(each.key)}_STG"
append_only = true
for_each = {
"rpps_client"                    = {}
...
...
..
}
`

As I mentioned earlier, the same type of bug with tasks:
https://github.com/chanzuckerberg/terraform-provider-snowflake/issues/522

Same problem with file objects:
https://github.com/chanzuckerberg/terraform-provider-snowflake/issues/594#issue-937923069

We are closing this issue as part of a cleanup described in announcement. If you believe that the issue is still valid in v0.89.0, please open a new ticket.


Tower "deny" looks like a "last hit"

link: https://beta.opendota.com/matches/2753981817

IMO this isn't necessarily wrong, it's still a last hit :)

Yes. but it should be specified like a deny. It's easy to fix. 🦄


Encountered an error while loading the GQA dataset.

from lavis.datasets.builders import load_dataset
dataset = load_dataset("gqa")

ValueError: unknown url type:
'/export/share/datasets/vision/GQA/questions1.2/train_all_questions/train_all_questions_0.json'

Plz tell me if u solve it.(


Use recon?

We were musing over what could be done to make this more "Prod" safe in the elixir slack channel and the suggestion came up that it might be good to switch to recon to get tracing data. Do you have any plans or have you considered using recon?

Is there a particular bit of code you'd replace with recon to make things safer?
I've previously been concerned about situations where monitoring a process' messages causes a cascading increase in messages sent (tracing the processes involved in visualixir itself). Outside of that, I just don't recommend using this in production as I'd imagine there are other situations that could cause grief.


Wrong PowerShell in "Permissions for Exchange Hybrid Deployment"

There is a mistake in the documentation above. Under "Permissions for Exchange Hybrid Deployment", the PowerShell commands are incorrect. Must be set-ADSyncExchangeHybridPermissions

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5eab5899-ad7d-2071-6d43-50e7de4a304b
Version Independent ID: ab3eeda6-a534-af65-9fff-604fec3a0b65
Content: Azure AD Connect: Configure AD DS Connector Account Permissions
Content Source: articles/active-directory/hybrid/how-to-connect-configure-ad-ds-connector-account.md
Service: active-directory
GitHub Login: @billmath
Microsoft Alias: billmath

@MarkusKnuhr
Thanks for your feedback! We will investigate and update as appropriate.

@MarkusKnuhr feel free to make a pull request with your suggested changes for the author to review and merge.

Please reference the pull request in the comments.


Write a Swift program to find surface area of a cylinder

Description
Write a Swift program to find surface area of a cylinder
Surface area of cylinder = 2 × π × Radius  × ( Radius + Height )
Radius : 2
Height : 3

Surface area : 62.83185307179586

How to contribute

Save the solution in FindSurfaceAreaOfACylinder.swift file
Add FindSurfaceAreaOfACylinder.swift file in program/find-surface-area-of-a-cylinder folder

!assign


Refactor CLI Projects to Single Entrypoint

This PR mainly refactors the many CLI projects to a single entrypoint. From a CLI perspective they now can be accessed with verbs against a the single oss-gadget-cli binary. This also standardizes calling patterns for each tool using the BaseTool class to a RunAsync method which takes the appropriate type of options. If the project previously had a RunAsync entrypoint with a different return type the old entrypoint was renamed LegacyRunAsync. This refactor does not attempt to change execution behavior, merely to simplify project structure and publishing, specifically to enable publishing the single CLI binary to Nuget withotu having to manage many project publications.
Also updates all dependencies.
Changes Model.User.Id field to long (from int) to match changes in OctoKit library which populates that field.
Marked as draft for feedback and refactor of build pipeline.

/azp run

I think the different verbs/options HelpText should use the same text as the first Example.
For example, "Calculate a risk metric for the given package" provides more information to the user than "Run risk calculator tool"
Any help text that says, "runs the Foo tool" makes me ask "...but what does Foo tool do?"


Omnibus grammar and typo fixes

Some clarifying grammar and typo fixes that made me scratch my head while attempting to make sense of Azure spending topics. 😄

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: WesleyDavid sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@WesleyDavid : Thanks for your contribution! The author, @bandersmsft, has been notified to review your proposed change.

@WesleyDavid Thanks very much!


[fix](inverted index) fulltext match query should not prune by zone map

Proposed changes
zone map prune data by min/max value, should not prune by zone map when fulltext match term is substring in a string type column's value, otherwise, some data meeting the conditions will be pruned.
such like:

test data:

col_1

hello world

say hello world

zero

match query:

select * from tb where col_1 match 'world';

hello world and say hello world should be returned to the user instead of being pruned by zone map.
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.29 seconds
load time: 539 seconds
storage size:<PHONE_NUMBER>7 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230128111713_clickbench_pr_85584.html


Cherry-pick from main

Context:
Description of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues:

Closing due to many involved PRs


[BACKLOG-15718] Fix for recently opened files

@ddiroma

Build Completed
:white_check_mark: This pull request has passed all validations.
Build Commands
mvn -B -fn -f ui/pom.xml clean install && mvn -B -f ui/pom.xml site

Cleanup Commands
mvn -B -f ui/pom.xml build-helper:remove-project-artifact

Changed files
  ui/src/main/java/org/pentaho/di/ui/core/PropsUI.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.ui.core.PropsUI

Branch Change: -.01%:small_red_triangle_down:
Complexity Change: -.00%:small_red_triangle_down:
Instruction Change: -.00%:small_red_triangle_down:
Line Change: -.00%:small_red_triangle_down:


Building from source with Python bindings (in a conda environment)

Hi there,
I'm trying to build from source while also building the python bindings. The reason I'm attempting to do this is to find out the number of times the QDLDL_solve functionality is called during a particular solve.
When I attempt to build from source, I run into this issue:
[  5%] Building C object lin_sys/direct/CMakeFiles/linsys_pardiso.dir/pardiso/pardiso_interface.c.o
cc1: warning: /home/pshah/anaconda3/envs/osqp_test/bin/python: not a directory
In file included from /home/pshah/Applications/osqp/include/types.h:8:0,
                 from /home/pshah/Applications/osqp/include/lin_alg.h:9,
                 from /home/pshah/Applications/osqp/lin_sys/direct/pardiso/pardiso_interface.h:8,
                 from /home/pshah/Applications/osqp/lin_sys/direct/pardiso/pardiso_interface.c:1:
/home/pshah/Applications/osqp/include/glob_opts.h:44:13: fatal error: Python.h: No such file or directory
 #   include <Python.h>
             ^~~~~~~~~~
compilation terminated.
lin_sys/direct/CMakeFiles/linsys_pardiso.dir/build.make:62: recipe for target 'lin_sys/direct/CMakeFiles/linsys_pardiso.dir/pardiso/pardiso_interface.c.o' failed
make[2]: *** [lin_sys/direct/CMakeFiles/linsys_pardiso.dir/pardiso/pardiso_interface.c.o] Error 1
CMakeFiles/Makefile2:252: recipe for target 'lin_sys/direct/CMakeFiles/linsys_pardiso.dir/all' failed
make[1]: *** [lin_sys/direct/CMakeFiles/linsys_pardiso.dir/all] Error 2
Makefile:129: recipe for target 'all' failed

A quick google makess me think this is because I'm not using python3.X-dev (which should include the python header file). Is it possible to build from source without the python3.X-dev? Alternatively, is there a way to read / find out how many times the QDLDL_solve function is being called?

The number of calls to QDLDL_solve should just be the number of iterations, plus one if the solver has polishing enabled.
The number of calls to QDLDL_factor is also logged (see here in the C source)

Thanks for the information!


Custom infowindows with image header: "Header image url not valid"

Sometimes, when creating a custom infowindow and using the image header template those images are not rendered in the embed (and CartoDB.js returns "Header image url not valid").
@xavijam has been checking with me and this seems to be a known issue caused by the fact that although the column that contains the image is set in the first position, the system is reordering the columns alphabetically.
This provokes that the image column that contains the URL is no longer the first one, so the code gets the first column (by alph. order) and tries to apply to it a Regexp for URLs that any string of text different than a URL won't match.
The work around for this would be renaming the column that contains the image so that after the reordering, it is set in the first position and the code is able to match it with the regexp and show it as a valid image.
If not, the image is indeed requested but set as display:none.

umh, the system should order the column based on the order attribute, not alphabetically, where is that order? I think this is a cartodb issue

I've worked on a couple of similar issues:

https://github.com/CartoDB/cartodb/issues/2235
https://github.com/CartoDB/cartodb/issues/1970

@iriberri it would be great if you could provide some steps to reproduce.

I'm not able to reproduce this issue with some specific steps, each time I try to replicate a scenario it works for me. It could be that some specific action is provoking the reordering of the columns, but I really have no clue for this...


Reolling forward property-based tests for coders

I've tested these several times, to make sure that the test will remain consistently passing.
r: @Abacn

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

FYI as a plane ride project I started looking at using a recursive rule to generate Beam schemas: https://github.com/apache/beam/pull/23361
You may be interested in the field_names strategy I added there.
Also, it would be great to combine these two efforts (first generate a schema, then generate test data given a schema) down the road!

I created https://github.com/apache/beam/issues/23436 to track switching over - could we move forward with this for now? : )

I created #23436 to track switching over - could we move forward with this for now? : )

Yep! Sorry I didn't mean to hold this up.