Add Multinomial and Bernoulli Naive Bayes algorithms

Currently linfa-bayes crate contains Gaussian Naive Bayes algorithm. It should not be very difficult to add other kinds of Naive Bayes present in sklearn:

[x] Multinomial Naive Bayes
[ ] Bernoulli Naive Bayes

For a new algorithm one needs to reimplement methods joint_log_likelihood and  update_feature_log_prob and the hyperparameters - the rest of the code stays more or less the same.
I have created a draft implementation of Multinomial Naive Bayes in this branch, based on the current code of Gaussian Naive Bayes and the sklearn implementation of MultinomialNB. At the moment a large part of code is copy-pasted from Gaussian Naive Bayes, but it is possible to refactor both to deduplicate the shared code.
Would you consider this a useful feature to have? If yes, I can finalise the draft and open a PR .
@VasanthakumarV @bytesnake, tagging you since you authored and reviewed the original Gaussian Naive Bayes implementation in https://github.com/rust-ml/linfa/pull/51

Hi @sgrigory,

It should not be very difficult to add other kinds of Naive Bayes present in sklearn

no not really, the question is rather how we want to add them. The type system should allow us to be generic over the distribution, there are some distribution libraries in Rust but few with MAP estimation.

For a new algorithm one needs to reimplement methods joint_log_likelihood and update_feature_log_prob and the hyperparameters - the rest of the code stays more or less the same.

sounds like a good candidate for a trait

I have created a draft implementation of Multinomial Naive Bayes in this branch, based on the current code of Gaussian Naive Bayes [..]

:+1:

Would you consider this a useful feature to have? If yes, I can finalise the draft and open a PR .

yes, we would accept such a PR. To be really useful, we have to figure out how-to

handle mixed-type datasets
handle distributions with different parametrizations

It may therefore be refactored in the future, but nevertheless we will accept such a PR gladly :)

Hi. I have tried multinomial naive bayes and it works very well in predicting the correct result. However, in some cases I need to get the joint likelihood for further calculations, but I cannot get those numbers because the corresponding function is in pub(crate). I wonder if the developers have plans to make the likelihood/probability function public. Thank you.

That would require making the NaiveBayes trait public. I'd accept a PR which does this, but with the other method hidden from the docs so that people don't rely on the traits for things other than joint likelihood.


irmin-io polling continues after client kills cat command

In running through the tutorial, I try the following command to watch a branch.
cat /db/branch/4.03/watch/tree.live

After an initial irmin.watch [DEBUG] watch [1: 0k/0g]: id=0,
the server starts start to echo
irmin-io [DEBUG] polling /data/.git/refs/heads: no changes! every second. When I Ctrl-C the client cat command the irmin-io logs continue, with no irmin.watch command signifying the watch has ended.
Docker version 1.11.2, build b9f10c9
I am running the datakit server as
docker run -it --net datakit-net --name datakit -v $(realpath .):/data docker/datakit

and the client as
docker run -it --privileged --net datakit-net docker/datakit:client

Ah, yes. There's a TODO about this here:
https://github.com/docker/datakit/blob/a38630ff56af4fcb0dbc3c48ca3e44c574f30bdb/src/ivfs/ivfs.ml#L519
There are several things that need fixing:

9p operations such as read should pass a cancel notifier to the handler. ocaml-9p added support for this a while back, but we don't plumb it through yet. Here's where it (~cancel) gets thrown away at the moment: https://github.com/docker/datakit/blob/a38630ff56af4fcb0dbc3c48ca3e44c574f30bdb/src/fs9p/fs9p.ml#L283
We shouldn't have to keep monitoring/publishing events when the client isn't doing a read.
We shouldn't be logging at debug level by default (#176).

It would probably be best to change (or add to) Irmin's watch API to support something like Store.watch_head ~switch ~current, which would produce a value later than current once one was available. Otherwise, we'll have to keep registering and removing watches all the time, which is clumsy.
/cc @samoht

An other thing we should fix is not do active polling but user FSEvents and Inotify on platforms which support it (e.g. not windows). I know that @dsheets had some plan to work on it at one point, but I guess if someone else wants to help, it's a relatively easy and self-contained task:

need to implement the callback of Irmin.Private.Watch.set_listen_dir_hook which takes a notification id (for debug purposes) and the path to watch, and a callback to apply any file which changes.
on OSX, could use https://github.com/dsheets/ocaml-osx-fsevents
on Linux, could use https://github.com/whitequark/ocaml-inotify

We are now using inotify and fsevents so this is less of an issue.


Add Cliqz update

Adds some information about the current status of Cliqz' Dat support.

@sammacbeth ok to merge?

@cblgh please do!


Create Mongoose model, GraphQL Types, Queries and Mutations

For:

[ ] Mentee
[ ] Mentor
[ ] Prefect
[ ] Coordinator
[ ] Important Docs
[ ] FAQs

Additional Suggestions:

We can also move the static developer info cards to database your views @nayakastha @riteshsp2000 @SriramPatibanda ??
And even the notification and appointment booking section!!

Adding more on to this. Is it possible to automate the acad vault access to students via our app? @abhibhaw @nayakastha @SriramPatibanda Thoughts?

It isn't possible on free plan of GMail/Gsuite
Sent via GMail for Mobile
On Mon, Sep 6, 2021, 19:09 Ritesh Patil @.***> wrote:

Adding more on to this. Is it possible to automate the acad vault access
to students via our app? @abhibhaw https://github.com/abhibhaw
@nayakastha https://github.com/nayakastha @SriramPatibanda
https://github.com/SriramPatibanda Thoughts?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dscnitrourkela/project-avocado/issues/212#issuecomment-913659070,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGUTE2AJSDDYV333F47PHADUATACLANCNFSM5DQNCPPA
.


Define default configuration values

Define default configuration values if none given by the user and add them to the documentation.

Default configuration values are defined in defaultConfiguration.js. The file sample-gulpfile.js contains short descriptions of every configuration and is intended for bootrapping customized gulpfiles based on gulp-modular.


Could you include Weighted Betweenness Centrality?

I am wondering if we can infer the differences in performance while calculating Weighted Betweenness Centrality from the Shortest Path results you show.
If one algorithm is faster on the shortest path, does this mean it is faster also on betweenness?
Does the shortest path algorithm consider arc weights?
It would be great if you could include betweenness (in the version that considers arc weights) in the next benchmarks!

I think to some extent you can given that the Betweenness involves calculating the shortest path between all pair of vertices of a graph. Though the caveat here is that in the benchmark I measured only the unweighted single source shortest pair as opposed to the weighted all pairs shortest problem. Even so, Lightgraphs should be the fastest due to the threaded shortest path implementation with Graphtool and Networkit taking 2nd place.
Will most definitely consider it the next time I am running the benchmark. Especially adding weights to the shortest path problem.

Super, thanks! Can't wait to see how it goes :)


Don't treat -w/-W as compile-only indicators

Fixes #42: builds that don't generate their own intermediate objects but do use the -w or -W flags were treated as "compile-only" builds, causing GLLVM to incorrectly assume that the intermediate objects were already present.
This PR fixes the issue by giving those flags the vanilla "unary" callback treatment, rather than the special "compile-only" callback treatment.

Looks good. I'll wait for the CI to finish.  Did you notice the new, but probably undocumented, executable gparse?
It just runs the argument parser on the given args and prints out what it did. It might have been useful? Who knows.

OK my bad, I will write some documentation. Keeping up with clang is the hardest part here. The most recent curve
ball was the new link time optimization stuff, that produces .o files that are actually bitcode.

The most recent curve
ball was the new link time optimization stuff, that produces .o files that are actually bitcode.

That's interesting. I'm guessing that's a consequence of LLVM's slim/thin LTO implementation?

Thanks again! Would it be possible to get a release cut for this fix?

Thanks (just in case I didn't already do so)!

Much appreciated!


Safari: Markdown Here” is no longer supported.

For safari I am having following error:
“Markdown Here” is no longer supported. You can find newer extensions reviewed by Apple in the App Store or Safari Extensions Gallery

Duplicate with #529.


Add Sedai to configuration category

Resubmitting after image approved.
Pre-submission checklist:
Please check each of these after submitting your pull request:

[ ] Are you only including a repo_url if your project is 100% open source? If so, pick the single best GitHub repository for your project, not a GitHub organization.
[ ] Does it follow the guidelines for new entries?
[ ] Have you added an SVG to hosted_logos and referenced it there?
[ ] Does your logo clearly state the name of the project/product and follow logo guidelines?
[ ] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[ ] ~5 minutes after opening the pull request, the CNCF-Bot will post a link for you to preview your changes. Have you confirmed that they are correct and then added a comment to the PR saying "LGTM"?

Error cause:
1:36:34 PM: FATAL: subcategory undefined does not have a "- subcategory:" part
1:36:34 PM: FATAL: subcategory entry does not have a name
1:36:34 PM: FATAL: subcategory undefined has an unknown key: item
1:36:34 PM: https://github.com/cdfoundation/cdf-landscape cdfoundation/cdf-landscape


fonts required for tests are unclear

While preparing the AUR-package of lomse I tried building in a clean chroot and was not able to fulfill the needs of some tests. Most of them I was able to resolve in adding the libertine font as a build dependency, but the last thing I was unable to find. The error message is this:
lomse_test_inlines_container_layouter.cpp(187):
    Failure in InlinesContainerLayouterTest / prepare_line_adds_bullet:
    is_equal_pos(lyt.my_get_available_space(), 4659.22f)
Test ChineseTextSplitterTest first_chunk skipped. Needed font not installed.
Test ChineseTextSplitterTest next_chunk skipped. Needed font not installed.

My best guess is, that the number is only correct for a special font ...
Are the included fonts not enough for the tests or is the setup wrong that configures them? How could I find out?
Out of the clean chroot, the tests run successfully.

The test that fails (and some others) depend on font "Liberation serif".
The excluded Chinese test depend on font "NotoSansCJK" ("Noto Sans CJK SC").
And yes, those test are very fragile as they depend on a particular font and worse, comparing for a specific size with decimals is not a good idea. These tests should be fixed but I always have more urgent tasks!
Are you preparing a package for the lomse library? Or is it for the LenMus application?

Yes, it's the AUR package of liblomse: https://aur.archlinux.org/packages/liblomse/
With the additional build time dependency of ttf-liberation the test now runs successful. But since the font is already included, there seems to be something wrong with the configuration of the testapp.
I noticed something else: The test is run twice, once when I call make and second when I explicitly call it.

The font path is set correct, as I found out with this addition to the runner:
--- lomse_the_test_runner__orig.cpp	2020-05-23 13:10:42.830454286 +0200
+++ lomse_the_test_runner.cpp	2020-05-23 13:11:03.483110714 +0200
@@ -124,7 +124,8 @@
          << ". Library tests runner." << endl << endl;

     cout << "Lomse build date: " << LibraryScope::get_build_date() << endl;
-    cout << "Path for tests scores: '" << TESTLIB_SCORES_PATH << "'" << endl << endl;
+    cout << "Path for test scores: '" << TESTLIB_SCORES_PATH << "'" << endl;
+    cout << "Path for test fonts : '" << TESTLIB_FONTS_PATH << "'" << endl << endl;

     bool verbose = argc > 1 && (!strcmp(argv[1], "--verbose") || !strcmp(argv[1], "-v"));
     int nextArg = verbose ? 2 : 1;

so I guess there's something wrong with the loading of fonts that are not installed.

Found the problem with doubled test: If I want to run the tests in an extra step, I have to exclude them from the build step with the cmake option -DLOMSE_RUN_TESTS=no.

test fonts
You have found a bug! When I changed the program to use fontconfig I forget about the TESTLIB_FONTS_PATH and, currently, it is ignored and the tests are using only installed fonts. I have to fix this.
tests run twice
Current CMakeLists.txt file runs automatically the tests when it is requested to build them, so you don't need to explicitly run the tests. You can prevent this with -DLOMSE_RUN_TESTS=OFF as you found.
My knowledge about packaging is very small so in general, is running the tests automatically a problem for package maintainers? Should the default option not to run the tests automatically after building?
Another issue
lomse has an install dependency on Bravura.otf font, that is not listed in https://aur.archlinux.org/packages/liblomse/ and, probably, this font is not installed by default in ArchLinux. This font is used for rendering the musical symbols.
Are you including the font in the package?
If not, I don't know if Bravura.otf is available in ArchLinux. As I have not found a Bravura font package for Debian and probably it is not yet available in other distros, I've created a .deb package at https://github.com/lenmus/bravura.and the Bravura.otf font is also in that repo. In any case, the official repo for this font is at https://github.com/steinbergmedia/bravura

tests run twice
It's not a problem, when the test is automatically run while building. But in Archlinux packaging, there is a separate step for checking. Since it's possible to leave the test out of building and call it separately, as far as Arch's packaging is concerned, it's fine.
Bravura
Since Bravura is not tested nor listed as dependency for Lomse and it is included in the package, I have not added the dependency so far.
There is a small typo in src/platform/lomse_linux.cpp on line 173: The fontname is missing the leading B.
fontconfig
Lenmus is working without installed Bravura font (and it is part of the package, too) or do you use another mechanism there to load the included font?

There is a small typo in src/platform/lomse_linux.cpp on line 173: The fontname is missing the leading B.

Thanks for pointing, but this is on purpose, just in case in some distro they decide to use lower case for the font name. I have added a comment to inform code reviewers and prevent false issues with this.

Lenmus is working without installed Bravura font

As most Linux distros do not have the Bravura font, lomse is flexible: it looks for this font in system installed fonts, via fontconfig, and if not fonud, looks for it at LOMSE_FONTS_PATH.  In this way, I do not force to create an install dependency form Bravura font.
For LenMus, the default option for building and installing is to include the Bravura font in the package and informing lomse about the path, thus not creating an install dependency from Bravura. But for very strict distros, such as Debian, that do not accept fonts in non-font packages, there is the option of not including the font in the package and create an install dependency.
In short, if liblomse package includes the Bravura font there is no install dependency from that font. Otherwise, it is necessary to define that dependecy.

Hi there,
Related question (possibly) - In order to get tutorial-1-wx working (on Mac OSX) I've needed to add the following in order for it to be able to find the Bravura font. Is this what you'd expect? Thanks :)
`     //initialize the library with these values
m_lomse.init_library(pixel_format,resolution, reverse_y_axis);
+

m_lomse.set_default_fonts_path("../../../fonts/");
`

I have no experience with OSX and never compiled lomse there. Depending on how lomse is configured, it will use either lomse/src/platform/lomse_linux.cpp or lomse/src/platform/lomse_other.cpp. Both should be usable in OSX.
When using lomse_other.cpp the responsibility for managing fonts is on the user application. In this case your application has to invoke  m_lomse.set_default_fonts_path("....") and specify the location of needed fonts.
When using lomse_linux.cpp, lomse will require linking to fontconfig library. And this library will take care of managing fonts. Invoking m_lomse.set_default_fonts_path("....") in your application is not necessary but does not harm.

Thanks Cecilio.
The build is using lomse_linux.cpp and linking to fontconfig.
I've found a config file at /usr/local/etc/fonts/fonts.conf which specifies a directory of /usr/share/fonts (as well as the Mac system dirs) however, /usr/share/fonts doesn't exist.
I'm wondering if there needs to be an OSX-specific step for install in CMakeLists.txt to copy the fonts to /usr/share/fonts ? However, there's no problem with me calling m_lomse.set_default_fonts_path("....") as a workaround.

however, /usr/share/fonts doesn't exist.

fontconfig is a Linux package, that also works in Windows and Mac, but as it is not normally used Mac, probably it is not well maintained in OSX. Sorry, but I never used OSX so know nothing about OSX fonts paths.
When using lomse_linux.cpp and font config I think that the content of /usr/share/fonts will be irrelevant as fonts will be searched by fontconfig and if it is not properly configured probably will not find the fonts. So perhaps the first approach I suggets is trying to build using lomse_other.cpp and your application would supply the fonts.
I see (in file "lenmus/lomse"trunk/add-sources.cmake", line 228) that cmake is currently configured for using lomse_linux.cpp and  thus fontconfig when building for OSX. If you change that line to if(UNIX AND NOT APPLE) it will use lomse_other.cpp.
as to your question of installing fonts, I do not remeber the details at this moment but I think that by default the Bravura music font is always installed. Nevertheless, you can force to install the font by building with:
    cmake -DLOMSE_INSTALL_BRAVURA_FONT=ON [...]

Please, see options in the comments at begining of file CMakeLists.txt

Thanks, yes, using lomse_other.cpp and setting the fonts path manually for OSX sounds sensible. That would also remove the dependency on fontconfig for OSX builds.

Hi Cecilio, (I've just got back to this) I've made the change to use lomse_other.cpp instead of lomse_linux.cpp but I now have a problem where 4 Chinese text splitter unit tests fail, they're failing to find the required font.
Adding some debug in lomse_other.cpp to FontSelector::find_font() shows the name parameter being passed is "Noto Sans CJK SC" and the language parameter is "en".
The code in find_font() suggests that the required Chinese font file will only be selected if the language parameter is "zh_CN"...
    //Chinese fonts
    else if (language == "zh_CN")
    {
        fullpath += "wqy-zenhei.ttc";
    }
I'm not too sure what the correct approach to fixing this is, so your advice would be appreciated!

Hi Grant,

I'm not too sure what the correct approach to fixing this is, so your advice would be appreciated!

If all you need is fixing the tests, then in:
https://github.com/lenmus/lomse/blob/5fd2f47c94f8ce79502851bd8dcc239238792827/src/tests/lomse_test_text_splitter.cpp#L292-L299
please replace line 298:
    return pPara->add_text_item(data, pStyle);

By
    ImoTextItem* pText = pPara->add_text_item(data, pStyle);
    pText->set_language("zh_CN");
    return pText;

I will include this change in next PR.
But if you would like to improve font management in general, then everything is open to be changed. File lomse_other.cpp is just a very simple fallback solution that can be greately improved.
Regards.

Closing this old issue. For completness and future reference, just some additional information:
The excluded Chinese tests depend on font "NotoSansCJK" ("Noto Sans CJK SC").
Install in Linux:
sudo apt-get install -y fonts-noto-cjk
Install in macOS
brew tap homebrew/cask-fonts
brew install --cask font-noto-sans-cjk


Unable to nmap

I have issues running nmap while in the Pwnbox, the error I get is displayed here:
Starting Nmap 7.92 ( https://nmap.org ) at 2022-01-06 18:39 UTC
Initiating Ping Scan at 18:39
Scanning <IP_ADDRESS> [4 ports]
pcap_create(eth0) FAILED: eth0: SIOCETHTOOL(ETHTOOL_GET_TS_INFO) ioctl failed: Function not implemented.
Call to pcap_open_live() failed three times. There are several possible reasons for this, depending on your operating system:
LINUX: If you are getting Socket type not supported, try modprobe af_packet or recompile your kernel with PACKET enabled.
 *BSD:  If you are getting device not configured, you need to recompile your kernel with Berkeley Packet Filter support.  If you are getting No such file or directory, try creating the device (eg cd /dev; MAKEDEV <device>; or use mknod).
*WINDOWS:  Nmap only supports ethernet interfaces on Windows for most operations because Microsoft disabled raw sockets as of Windows XP SP2.  Depending on the reason for this error, it is possible that the --unprivileged command-line argument will help.
SOLARIS:  If you are trying to scan localhost or the address of an interface and are getting '/dev/lo0: No such file or directory' or 'lo0: No DLPI device found', complain to Sun.  I don't think Solaris can support advanced localhost scans.  You can probably use "-Pn -sT localhost" though.

I wonder if you encounter the same problem, or now a fix? I searched around a bit, but didn't find any hints on the web.

Can you tell me more information about your host OS, your docker version
and pwnbox version?
On Thu, Jan 6, 2022, 10:41 PM HiddevH @.***> wrote:

I have issues running nmap, the error I get is displayed here:
Starting Nmap 7.92 ( https://nmap.org ) at 2022-01-06 18:39 UTC
Initiating Ping Scan at 18:39
Scanning <IP_ADDRESS> [4 ports]
pcap_create(eth0) FAILED: eth0: SIOCETHTOOL(ETHTOOL_GET_TS_INFO) ioctl failed: Function not implemented.
Call to pcap_open_live() failed three times. There are several possible reasons for this, depending on your operating system:
LINUX: If you are getting Socket type not supported, try modprobe af_packet or recompile your kernel with PACKET enabled.
*BSD:  If you are getting device not configured, you need to recompile your kernel with Berkeley Packet Filter support.  If you are getting No such file or directory, try creating the device (eg cd /dev; MAKEDEV ; or use mknod).
*WINDOWS:  Nmap only supports ethernet interfaces on Windows for most operations because Microsoft disabled raw sockets as of Windows XP SP2.  Depending on the reason for this error, it is possible that the --unprivileged command-line argument will help.
SOLARIS:  If you are trying to scan localhost or the address of an interface and are getting '/dev/lo0: No such file or directory' or 'lo0: No DLPI device found', complain to Sun.  I don't think Solaris can support advanced localhost scans.  You can probably use "-Pn -sT localhost" though.
I wonder if you encounter the same problem, or now a fix? I searched
around a bit, but didn't find any hints on the web.
—
Reply to this email directly, view it on GitHub
https://github.com/DeadPackets/pwnbox/issues/6, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD6SOYSAWUL44EX3WUNLKYLUUXO67ANCNFSM5LM6YTTA
.
 Fortunately enough I have an ARM server so
let me try building and running it there and I'll get back to you soon
On Fri, Jan 7, 2022, 1:27 PM HiddevH @.***> wrote:

Host OS: Apple M1 MacOS 11.6.1
Docker version: 20.10.11, build dea9396
Pwnbox version: v1.6.0 (tag pwnbox:latest on dockerhub)
—
Reply to this email directly, view it on GitHub
https://github.com/DeadPackets/pwnbox/issues/6#issuecomment-1007259752,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD6SOYSTI3HBI2SXHIYL3YLUU2WYVANCNFSM5LM6YTTA
.
You are receiving this because you commented.Message ID:
@.***>

Can you also provide your Nmap command if possible?

Good pointer that it might be an ARM issue!
I've rebuilt the docker container using
docker buildx build --platform linux/arm64 . -t pwnbox:arm64
After running this image with
docker run --platform linux/arm64 -d --name pwnbox --privileged --hostname pwnbox -p 2222:2222 -p 9000-9010:9000-9010 -v $HOME/.pwnbox/home:/root -v $HOME/.pwnbox/external:/mnt/external pwnbox:arm64
The nmap response:
nmap -v -sN <IP_ADDRESS>
Starting Nmap 7.92 ( https://nmap.org ) at 2022-01-07 12:58 UTC
Initiating Ping Scan at 12:58
Scanning <IP_ADDRESS> [4 ports]
Completed Ping Scan at 12:58, 0.01s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 12:58
Completed Parallel DNS resolution of 1 host. at 12:58, 0.94s elapsed
Initiating NULL Scan at 12:58
Scanning <IP_ADDRESS> [1000 ports]

This seems to be the solution. Can we add a --platform linux/arm64 build to the registry? :)

I see, you must have been running the amd64 image then by accident.
I will add an arm64 build, just need to find a way to make it not take forever, because last time I tried the CI was stuck for more than an hour building everything.
I might add a feature to pwnbox-cli also to specify which platform image to use if it doesn't work after adding the build.


Added extension docs

Fixes

Fix #9

What changes to the docs does this PR provide?
Documents the:

ImageResourceExtension
TranslateExtension

Other items in the extension folder are better off being documented elsewhere.
PR Checklist
Please check if your PR fulfills the following requirements:

[X] For new pages, used the provided template.
[X] For new features, added an entry in the Table of Contents.
[X] Ran against a spell and grammar checker.
[X] Contains NO breaking changes.

Docs Build status updates of commit c48e93a:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/extensions/translateextension.md
:warning:Warning
View
Details

docs/TOC.yml
:white_check_mark:Succeeded
View

docs/extensions.md
:white_check_mark:Succeeded

docs/extensions/imageresourceextension.md
:white_check_mark:Succeeded
View

docs/extensions/translateextension.md

Line 9, Column 210: [Warning-file-not-found] Invalid file link: 'dotnet/api/system.globalization.cultureinfo'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit b5ae134:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/TOC.yml
:white_check_mark:Succeeded
View

docs/extensions.md
:white_check_mark:Succeeded

docs/extensions/imageresourceextension.md
:white_check_mark:Succeeded
View

docs/extensions/translateextension.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Removed the double outline button in side nav bar

Removed the repeated outline button from Button Styles section in side navbar.

Issue #824 : There are 2 outline button section in the website . They both are same .

So, should I make a changes according to alphabetical order. And make a new PR.

I think delete the first one and add last one

Ok I will make that changes.

Yes @dsnehasish74 is right, @SARVESHKHANDELWAL please maintain the alphabetical order.

I will make the required changes, and will make PR for that.


QML/JS extension: object as Type type hints ("as-casting")

Another lesser known feature of QML: type hints inside expressions. Their syntax uses as keyword with object/expression on the left and type name on the right. For example:
    property QtObject foo: self()
    property real foox: (foo as Item).x

This feature is so rare, it only has three tests in whole qtdeclarative repo. And I've never seen in it in the wild.

Interestingly, KDE Syntax Highlighting definition for QML (and by extension Kate, KDevelop etc) supports "as-casting" accidentally: it treats "as" as a keyword in any JavaScript context, just because it is already being used for js module imports.

Related upstream patch, thanks to which I learned about this feature in the first place: https://github.com/qt/qtdeclarative/commit/e0cd201e91ae64b9c03e0128cd17656b00611fbb


Add LOLIN S3

Description of Change
only add new board - lolin s3

add lolin_s3 support, also used by espressif_esp32s3_devkitc_1.1 of n16r8

@chukwon
#define USB_VID           0x239A
#define USB_PID           0x00A5    // TODO temporarily shared with S2 saola wrover

VID 0x239A is assigned to Adafruit vendor.
Would you mind to use the VID/PID from Espressif list ?
https://github.com/espressif/usb-pids/blob/main/allocated-pids.txt#L288
0x8118 | Lolin S3 - UF2 Bootloader

@lyusupov
don't mind

@chukwon there is nothing new in the PR, checkout my above review request.

update completed

update completed

double check the check list, your pr miss ci thing.


✨ MerkleTreeLib

This one won't be mostly Yul.

@Vectorized ser, is this still open to take up?

Yes. But not in a rush. I think less than 0.01% of people will need it.


Unit Test support ?

Hi,
Where is the support of the unit tests within vbuild? For example with mocha + chai + avoriaz?

Hi there, it's a bit different to work with vbuild now, vbuild 6 is totally refactor for good reasons.
For unit testing, you can check out https://github.com/egoist/vbuild#custom-build-process
This vue-cli-karma module is made for vue-cli's vue build command, but it works here too.


[licenceheaders] keeping hashbang and encoding and pylint

closes #14

Actually, thanks, I will update this directly since I will also change things to split python and basc/csh into two so that Python can have single-hash comments.


Settings window doesn't open on Windows 11

Describe the problem
When I try to display the settings pop-up to configure private address for Netbird client, nothing appears.
To Reproduce
Steps to reproduce the behavior:
Go to task bar when netbird-ui is launched
Right-click and then click on 'Settings'
Nothing is opened
Expected behavior
A settings window should open to configure the VPN client.
Screenshots

normal situation

How can I show the small window like normal situation?

You can use command line to config your managemen url. See https://docs.netbird.io/how-to/cli

docker start netbird client ,  why show offline

I can not see the wt0 net  by ip a command ? I do not know why ?  Who can help me ? Thank you very much!

What is the operating system version and locale (language) you are using @happy-leraner ? config.json is generated when you do a netbird up ; you can you several options in that command.
Regarding your last comment, did you ran NetBird on docker as described here: https://docs.netbird.io/how-to/installation#running-net-bird-in-docker ?


Bump label to 0.16.0; allow environment to be set

Nothing too exciting here: bump the label module to the latest and allow the environment to be set; add $self to contributors.

/test all


Setting up max-width to modal

What

added max-width and overflow:scroll to modal to avoid modal window box to be bigger than screen size and prevent user from having access to any button

Compatibility

[x] Does this change maintain backward compatibility?

Screenshots
Before

After
Before scroll

After scroll

test?


Advanced Configuration Options

can set MEMORY_GROWTH to any value to have Tensorflow use memory growth
can set MEMORY_ALLOCATED to any float to have Tensorflow restrict the memory usage as a ratio of the total available video memory

Without memory growth and default weights:

12GB VRAM taken up on a NVIDIA Tesla T4
running a concurrent Pytorch model (~2-3GB VRAM needed) CUDA OOMs

With memory growth and default weights:

1.5GB VRAM taken up on a NVIDIA Tesla T4
running a concurrent Pytorch model (~2-3GB VRAM needed) works fine with plenty of headroom

By default this doesn't actually affect existing users, this just adds options for more advanced users.

That does work as expected, and I have implemented it. Thank you for the suggestion!

Thanks!

This new configuration code is now included in v0.9.0 of the package on PyPi. Thanks, again!

Happy to help, this is huge for the work that I'm doing right now.


Enable picking which email address you're committing as

In codespaces there doesn't seem to be a way to pick which user you're committing to the git repository as. The main github UI does have this feature.  The GitHub UI then also hides that you've made that mistake and submitted as the wrong identity, but the git log will show the wrong email address.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Prefix is not passed to KMS DA

Prefix value from the stack input needs to be passed to the KMS DA
https://github.com/terraform-ibm-modules/stack-retrieval-augmented-generation/blob/f12b0268ecb7c4ad05dbdbe49e65e21dd86cded5/stack_definition.json#L124

This is fixed in the Core Security services stack which is consumed by the genai stack. RAG stack is being updated to consume genai stack (tracked here https://github.ibm.com/goldeneye/issues/issues/9896) - closing this issue


Type alias name is not preserved when using index access/lookup types

TypeScript Version:  3.5.2

Search Terms: indexed access lookup types type alias naming
Code
Given:
type MyUnion = 1 | 2 | 3;

// Hover this
type MyObject = { value: MyUnion };

If I hover over MyObject, I see { value: MyUnion; }.
However, given:
type MyRecord = {
    Foo: 1;
    Bar: 2;
    Baz: 3;
}

type MyUnion = MyRecord[keyof MyRecord];

// Hover this
type MyObject = { value: MyUnion };

If I hover over MyObject, I see { value: 1 | 2 | 3; }.
I would expect the same behaviour as we see in my first example ({ value: MyUnion; }). The name of the type alias, MyUnion, should be preserved and its usage/reference inside of MyObject should be shown.
To give some context on my real world use case for this: I am using Unionize to create tagged unions (to avoid boilerplate for constructors, matchers, and type predicates). However, because of the issue described above, the types become very difficult to inspect/read: https://github.com/pelotom/unionize/issues/60.
Under the hood, Unionize does something like this:
type Foo = { foo: number };
type Bar = { bar: number };
type Baz = { baz: number };

type MyUnionRecord = {
    Foo: Foo;
    Bar: Bar;
    Baz: Baz;
};

type MyUnionTaggedRecord = { [K in keyof MyUnionRecord]: { tag: K; value: MyUnionRecord[K] } };
type MyUnion = MyUnionTaggedRecord[keyof MyUnionTaggedRecord];

// Hover this
type MyObject = { value: MyUnion };

If we hover over MyObject here, we see:
{
    value: {
        tag: "Foo";
        value: Foo;
    } | {
        tag: "Bar";
        value: Bar;
    } | {
        tag: "Baz";
        value: Baz;
    };
}

… when we really want to see { value: MyUnion }.
As I demonstrated in https://github.com/pelotom/unionize/issues/60, this scales really badly, e.g. when nesting unions.

Duplicate of #31940.

This issue seems more specific than https://github.com/microsoft/TypeScript/issues/31940, so not sure it's a duplicate, but the general idea is the same.

The fact that any type alias at all shows up is due to trickery and the limitations of that trickery are apparent in these examples.
The trick is that if the very first time we make a type it's because it's initializing a type alias, then future displays of that type use the alias name. This is a desirable heuristic because you don't want some rando .d.ts file to say
type AcrobaticBackCompatKey = string | number | boolean;

and then have your function
function fn(stringish: string | number | boolean) { }

display back as
fn(stringish: AcrobaticBackCompatKey)

which you didn't write.
In this example, it seems the type 1 | 2 | 3 got created before it got assigned to the type alias, preventing it from being the "given name" for 1 | 2 | 3.
"Why not just make type aliases be a named pointer to the underlying type?"
Nothing's impossible, but this has some performance impacts that aren't immediately obvious. For example
type SN = string | number;
type NB = number | boolean;

declare let q: SN | boolean;
declare let v: string | NB;
q = v;
v = q;

In this example, the assignments can be detected to be correct almost "for free" because their types are literally the same object - there's no way to tell q and v apart. If we have to keep type aliases around all the time, then this operation becomes a lot more expensive.
So it's a trade-off and we'd have to figure out ways to make it not as expensive as it might be, or someone can maybe propose tweaks to our trickery that would make things more palatable while still not messing up existing type display too badly.

Thank you for the explanation. Unfortunately I don't have any ideas how you can resolve this.

I've never dug into the compiler source, but I have an idea: Keep one type object around for typechecking, and another separate object for diagnostic reporting (only if different than the first).
So for Ryan's example, the AST for q and v might look something like this:
{
  name: "q",
  type: Union([String, Number, Boolean]),
  prettyType: Union([
    TypeAlias("SN", Union([String, Number]),
    Boolean,
  ]),
}
{
  name: "v",
  type: Union([String, Number, Boolean]), // reference-equal to the previous type
  prettyType: Union([
    String,
    TypeAlias("NB", Union([Number, Boolean]),
  ]),
}

type is still the literally the same object, but prettyType is different and would be used when reporting errors. This would probably increase memory footprint a bit, but shouldn't noticeably increase typechecking time. For any declaration where type aliases aren't involved or the distinction isn't helpful, prettyType can be set to null, and reporting would fall back to the actual type. This would hopefully keep memory issues in check.
Of course I'm just this random guy and the devil is always in the details.

This seems to have been fixed. Do we know what changed cause this? Was it intentional?

@OliverJAsh this has changed between 3.9.0-dev.20200330 and 3.9.0-dev.20200402. It's very likely that the change was introduced in https://github.com/microsoft/TypeScript/pull/37444 and some tests there suggest that (like this one). So I would classify this as an intentional change :) The issue can be closed


Background of testimonial in home page

Feature request-
As each wall and piece of website has background color, I want to put background color in testimonial of home page so that it look like landing page of website.
Describe the solution you'd like
Would like to add background color in testimonial.
Describe alternatives you've considered
Na
Describe how this feature will be useful to our readers.
After adding background color, that section of testimonial will not look different as of now.
Additional context

Note:

Do mention if your are working under GSSoC'21.
If you want to work on an issue, you should check if it has already been assigned to anyone. If the issue is free you can comment /assign to get the issue assigned to you.
If you are raising a new issue and want to work on it then also you should comment /assign under the issue to get it auto assigned.
Please refrain from adding labels to your issue/pull-request on your own. It is the job of the Project Admin and the Mentors to review your issue/pull-request and add labels accordingly.
According to the level of the issue, respective time will be allotted under which the task needs to be completed/resolved by the assigned person. If the issue is not resolved within the given time, it will be assigned to the next person. In case of any discrepancies, the decision of the maintainer will be final.

level - 0: 2 days
level - 1: 3 days
level - 2: 4 days
level - 3: 5 days

Actually I wanted to have a different background of the testimonial carousel to make it look like a different section of the website

Actually I wanted to have a different background of the testimonial carousel than the rest of the website to make it look like a different section of the website.
If the motive of this issue is something different then do comment to reopen the issue. Closing it for now.

I were saying this only, wanted to change the background of testimonial in the home page so that the testimonial looks good and also the slides of each testimonial look more readable and visible...

This issue is different from #864 right?

This issue is different from #864 right?

Yes, it is different because I will be working for the background of testimonial and #864 for the responsiveness of testimonial.


Time of training

Hi,
Thanks for releasing the code! I am using an RTXA6000 to run the main.py for the "Hazelnut" class of the MVTec dataset. It takes over 10 hours to finish the training. I do not have much experience in training a diffusion model. I wonder is it common to take such a long time to train the model and is it necessary to train so many epochs to achieve competitive performance on the MVTec dataset?
Thank you very much :) !

Hi,
Training diffusion models is expensive, taking up to 10 hours is realistic. Hence, I recently published our checkpoints.: https://drive.google.com/drive/u/0/folders/1FF83llo3a-mN5pJN8-_mw0hL5eZqe9fC.
So you can simply download and use them.
Best,
Arian

Hi Arian,
Thanks for your prompt reply. I used the default number of training epoch 3000 in your code. However, it seems that the loss did not converge (attached below). Is it a normal situation? How did you decide when to stop training?
Thanks,
Cathy
hazelnut
Num params:  32952707
Epoch 25 | Loss: 1023.5911865234375
Epoch 50 | Loss:<PHONE_NUMBER>40625
Epoch 75 | Loss:<PHONE_NUMBER>414062
Epoch 100 | Loss:<PHONE_NUMBER>84375
Epoch 125 | Loss:<PHONE_NUMBER>640625
Epoch 150 | Loss:<PHONE_NUMBER>390625
Epoch 175 | Loss: 2387.00927734375
Epoch 200 | Loss: 1050.40087890625
Epoch 225 | Loss:<PHONE_NUMBER>695312
Epoch 250 | Loss:<PHONE_NUMBER>1953125
Epoch 275 | Loss:<PHONE_NUMBER>928711
Epoch 300 | Loss:<PHONE_NUMBER>46875
Epoch 325 | Loss:<PHONE_NUMBER>8828125
Epoch 350 | Loss:<PHONE_NUMBER>875
Epoch 375 | Loss:<PHONE_NUMBER>6015625
Epoch 400 | Loss:<PHONE_NUMBER>5644531
Epoch 425 | Loss:<PHONE_NUMBER>2617188
Epoch 450 | Loss:<PHONE_NUMBER>824219
Epoch 475 | Loss:<PHONE_NUMBER>703125
Epoch 500 | Loss:<PHONE_NUMBER>410156
Epoch 525 | Loss: 1526.881103515625
Epoch 550 | Loss: 2376.6162109375
Epoch 575 | Loss:<PHONE_NUMBER>140625
Epoch 600 | Loss:<PHONE_NUMBER>183594
Epoch 625 | Loss: 1230.7706298828125
Epoch 650 | Loss: 1406.0301513671875
Epoch 675 | Loss: 1771.720947265625
Epoch 700 | Loss:<PHONE_NUMBER>039062
Epoch 725 | Loss:<PHONE_NUMBER>763672
Epoch 750 | Loss:<PHONE_NUMBER>28125
Epoch 775 | Loss: 1627.894775390625
Epoch 800 | Loss:<PHONE_NUMBER>421875
Epoch 825 | Loss: 1164.44580078125
Epoch 850 | Loss:<PHONE_NUMBER>054688
Epoch 875 | Loss: 96.91363525390625
Epoch 900 | Loss: 1704.71044921875
Epoch 925 | Loss:<PHONE_NUMBER>8828125
Epoch 950 | Loss:<PHONE_NUMBER>210938
Epoch 975 | Loss:<PHONE_NUMBER>992188
Epoch 1000 | Loss: 1818.876953125
Epoch 1025 | Loss:<PHONE_NUMBER>003906
Epoch 1050 | Loss:<PHONE_NUMBER>90625
Epoch 1075 | Loss:<PHONE_NUMBER>015625
Epoch 1100 | Loss:<PHONE_NUMBER>257812
Epoch 1125 | Loss:<PHONE_NUMBER>390625
Epoch 1150 | Loss:<PHONE_NUMBER>546875
Epoch 1175 | Loss:<PHONE_NUMBER>550781
Epoch 1200 | Loss:<PHONE_NUMBER>601562
Epoch 1225 | Loss:<PHONE_NUMBER>4375
Epoch 1250 | Loss:<PHONE_NUMBER>304688
Epoch 1275 | Loss:<PHONE_NUMBER>046875
Epoch 1300 | Loss:<PHONE_NUMBER>082031
Epoch 1325 | Loss:<PHONE_NUMBER>855469
Epoch 1350 | Loss:<PHONE_NUMBER>5234375
Epoch 1375 | Loss:<PHONE_NUMBER>3984375
Epoch 1400 | Loss:<PHONE_NUMBER>0371094
Epoch 1425 | Loss:<PHONE_NUMBER>484375
Epoch 1450 | Loss:<PHONE_NUMBER>640625
Epoch 1475 | Loss:<PHONE_NUMBER>253906
Epoch 1500 | Loss: 1251.544189453125
Epoch 1525 | Loss:<PHONE_NUMBER>9921875
Epoch 1550 | Loss:<PHONE_NUMBER>4296875
Epoch 1575 | Loss:<PHONE_NUMBER>078125
Epoch 1600 | Loss:<PHONE_NUMBER>4375
Epoch 1625 | Loss:<PHONE_NUMBER>5546875
Epoch 1650 | Loss:<PHONE_NUMBER>296875
Epoch 1675 | Loss:<PHONE_NUMBER>96875
Epoch 1700 | Loss:<PHONE_NUMBER>511719
Epoch 1725 | Loss:<PHONE_NUMBER>75
Epoch 1750 | Loss:<PHONE_NUMBER>792969
Epoch 1775 | Loss:<PHONE_NUMBER>15625
Epoch 1800 | Loss:<PHONE_NUMBER>1308594
Epoch 1825 | Loss:<PHONE_NUMBER>367188
Epoch 1850 | Loss:<PHONE_NUMBER>507812
Epoch 1875 | Loss:<PHONE_NUMBER>6835938
Epoch 1900 | Loss:<PHONE_NUMBER>076172
Epoch 1925 | Loss:<PHONE_NUMBER>78125
Epoch 1950 | Loss:<PHONE_NUMBER>734375
Epoch 1975 | Loss:<PHONE_NUMBER>789062
Epoch 2000 | Loss:<PHONE_NUMBER>75
Epoch 2025 | Loss: 1325.25537109375
Epoch 2050 | Loss:<PHONE_NUMBER>8984375
Epoch 2075 | Loss:<PHONE_NUMBER>601562
Epoch 2100 | Loss:<PHONE_NUMBER>1640625
Epoch 2125 | Loss:<PHONE_NUMBER>296875
Epoch 2150 | Loss:<PHONE_NUMBER>480469
Epoch 2175 | Loss:<PHONE_NUMBER>6484375
Epoch 2200 | Loss:<PHONE_NUMBER>796875
Epoch 2225 | Loss:<PHONE_NUMBER>339844
Epoch 2250 | Loss: 1018.5026245117188
Epoch 2275 | Loss:<PHONE_NUMBER>519531
Epoch 2300 | Loss:<PHONE_NUMBER>9375
Epoch 2325 | Loss: 322.390625
Epoch 2350 | Loss:<PHONE_NUMBER>5546875
Epoch 2375 | Loss:<PHONE_NUMBER>4101562
Epoch 2400 | Loss:<PHONE_NUMBER>488281
Epoch 2425 | Loss:<PHONE_NUMBER>310547
Epoch 2450 | Loss:<PHONE_NUMBER>751953
Epoch 2475 | Loss:<PHONE_NUMBER>671875
Epoch 2500 | Loss:<PHONE_NUMBER>4296875
Epoch 2525 | Loss:<PHONE_NUMBER>4296875
Epoch 2550 | Loss: 2128.40283203125
Epoch 2575 | Loss:<PHONE_NUMBER>984375
Epoch 2600 | Loss: 1090.3759765625
Epoch 2625 | Loss:<PHONE_NUMBER>421875
Epoch 2650 | Loss:<PHONE_NUMBER>09375
Epoch 2675 | Loss:<PHONE_NUMBER>9375
Epoch 2700 | Loss:<PHONE_NUMBER>242188
Epoch 2725 | Loss:<PHONE_NUMBER>2109375
Epoch 2750 | Loss:<PHONE_NUMBER>859375
Epoch 2775 | Loss:<PHONE_NUMBER>894531
Epoch 2800 | Loss:<PHONE_NUMBER>304688
Epoch 2825 | Loss:<PHONE_NUMBER>484375
Epoch 2850 | Loss:<PHONE_NUMBER>46875
Epoch 2875 | Loss:<PHONE_NUMBER>9375
Epoch 2900 | Loss:<PHONE_NUMBER>070312
Epoch 2925 | Loss:<PHONE_NUMBER>5
Epoch 2950 | Loss:<PHONE_NUMBER>578125
Epoch 2975 | Loss:<PHONE_NUMBER>796875
Epoch 3000 | Loss: 2088.126220703125

My interpretation of this behaviour in loss is the high stochasticity of diffusion models. One way to determine when to stop training is by measuring the reconstruction error, such as measuring RMSE on the training dataset.

Can I get a code that implements a reconstruction loss?


Updating Pawn.Activity tutorial to i18next

Fixes #1571
I have updated the docs and the lib directory in the VanillaJs activity template for the Pawn Activity.

@llaske , please review this PR.

Nice. Thanks


delete shipping class getting error  "cURL Error: malformed"

when i try to delete a shipping class i get the following error:

"cURL Error:  malformed"

my code:
$woocommerce->delete('products/shipping_classes/19');
i have also tried:
$woocommerce->delete('products/shipping_class/19');

i got the same error when using $woocommerce->get('products/shipping_classes/19')

ok it worked after i added use Automattic\WooCommerce\HttpClient\HttpClientException;


Add rule for enforcing semicolon or commas for interfaces

Is there a reason we can't enforce a consistent style of ending interface props? Since there isn't a benefit of using semicolons and commas, I think it's useful to add a linting rule to enforce one.
I'm happy to submit a PR for this if it's wanted. Thoughts?

@fandy, i think there is already a rule for this use case semicolon


Error on db install

        $query = 'DROP DATABASE IF EXISTS `' . $this->database . '`';
        $result = $orm->executeQuery($query);

        $query = 'CREATE DATABASE `' . $this->database . '`';
        $result = $orm->executeQuery($query);

Please use backticks in your mysql commands. If the database name is red-kite mysql throws an error without

@sgc-fireball  RedKite CMS 2 does not require a database, so this bundle is deprecated and this issue is closed. https://github.com/redkite-labs/RedKiteCms.
Anyway, thank you very much for reporting this problem.


Add some extra tests

Test that batch versus online training leads to the exact same forest
Test the behavior of reserve_samples, with several calls to partial_fit to check that memory is correctly allocated and

Fixed by #56


FAT-1069 : cover mod-data-import-converter-storage with API tests

Cover mod-data-import-converter-storage with API tests for field-protection
Jira: https://issues.folio.org/browse/FAT-1069

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


Make googlelog build with Xcode 9+ [phab:D2013]

Created by salguarnieri at 2017-11-05 22:31:31:
Xcode 9+ breaks googlelog

shahms accepted this revision at 2017-11-06 16:50:14

shahms wrote at 2017-11-06 16:50:47:
Assuming it works on linux, otherwise the //:darwin config setting still works :-)

salguarnieri wrote at 2017-11-06 18:00:56:
Amazingly it just works on Linux. I'll add a comment to make it more obvious why we added the darwin define.

salguarnieri wrote at 2017-11-06 18:02:51:

Add comment

salguarnieri closed via commit a857cce47443d82819abe54be947af33b7ee9e39 at 2017-11-06 18:06:22


BUG-115613 Datalake service discovery refactor

DO NOT MERGE IT PLS!!!

can you please provide a jira id?


Add Wights & Biases Logging and Saving of Generated Audio?

Hey! Morgan from Weights & Biases here, just checking if you'd be open to a W&B integration in the train and generation scripts? We could add metric logging, model checkpoints as well as generated audio samples so that users' work gets saved in a central place for later.
Happy to chat more if you have any questions.

This would be handy for sharing experiments and results with one another.


DB - issues with Engine Build

Support Question
For build on Openshift or GCP, Legend engine build fails with insufficient hear memory (for low values) or is killed due to high values (recommended by FINOS)
For lower values of Heap space explicitly specified or default values, the Legend Engine Build fails with following error
Terminating due to java.lang.OutOfMemoryError: Java heap space
If we increase the space as recommended in the workflow file https://github.com/finos/legend-engine/blob/master/.github/workflows/build-large-runner.yml then the process is killed in the maven build - we faced this issue in both Openshift and GCP.
Error: Aborting due to error code 137 from Maven build, 561 killed
We had a stable version from last year which was functioning on OpenShift and although the modules have increased from 134 to 229, do the arguments to maven build have to be this high (10-12 GB)? Is there any way to incrementally build instead?

Assaign thits to me may be i can help by my idea t

This issue is stale because it has been open for 30 days with no activity. Please remove stale label or add any comment to keep this open. Otherwise this will be closed in 5 days.

This issue was closed because it has been inactive for 35 days. Please re-open if this issue is still relevant.


log section improvements

Love the tool!
I'd like to propose some potential small enhancements to the logs section:

filter by time (30s/5m/1hr) [maybe not that useful]
color coding [not too sure how to decide what needs to be color coded, perhaps part of config using regex]
Don't allow scroll pass the end of logs
regex search [this will be super useful i think]

Ditto about loving the tool -- I would like to request an option to wrap long log lines.

wrapping logs is possible via:
gui:
  wrapMainPanel: true

Filtering logs is also possible by overriding with:
commandTemplates:
  serviceLogs: '{{ .DockerCompose }} logs --since=60m --follow {{ .Service.Name }}'
  containerLogs: docker logs --follow --since=60m {{ .Container.ID }}
  allLogs: '{{ .DockerCompose }} logs --tail=300 --follow'

Not scrolling past the end of logs is covered here: https://github.com/jesseduffield/lazydocker/issues/31
color coding sounds tricky, could you raise a separate issue for that?
searching is covered by https://github.com/jesseduffield/lazydocker/issues/33
I think that covers everything :)

wow, thats amazing.  Thank you!

@jesseduffield Ah, awesome.  Thanks for the reply!
Dropping this bit from the config doc here just in case someone doesn't know how to edit their config.yml:

You can open your config file by going to the status panel (using left-arrow) and pressing 'o'.

works for colors but a bit slowish
commandTemplates:
  serviceLogs: '{{ .DockerCompose }} logs --since=60m --follow {{ .Service.Name }} | ccze -A'
  containerLogs: docker logs --follow --since=60m {{ .Container.ID }} | ccze -A
  allLogs: '{{ .DockerCompose }} logs --tail=300 --follow | ccze -A'


Excessive loading times

Some shows seem to have excessive loading times. Ran into this with all NOS Journaal I tried watching.

To add to that: after clicking the menu button to go back from the loading screen, other shows are no longer clickable. Need to reboot the app.

Thanks for reporting, I've run into this before and it seems like there's something going wrong parsing JSON from the Uitzending Gemist API sometimes. After that, the app stops responding.
As a first step, the app should probably display the error in an alert view, so the user can dismiss the alert and keep using the app instead of the whole thing breaking.

Step 1: I've added createAlert() to application.js (11abcd56fb85f236f206e2b64c332ceadab5fa88), so we can wrap places that cause the app to crash in try/catch blocks and open the alert instead of crashing like this:
var alert = createAlert("uitzendinggemist.js", error);
Presenter.removeLoadingIndicator();
navigationDocument.presentModal(alert);

Step 2: I've added a try / catch block around the call to JSON.parse() in uitzendinggemist.js in 6ec6ddc8d54b3d692ceba4e26bbbc68cd6d05a4e, which I think will catch most errors users have been running into. Instead of becoming unusable, the app now shows the error in an alert.
Also, a94ef6454a74759033142e07eff8430499ee789c fixes an issue with (new) episodes that don't have an episode image (yet), which should greatly reduce the frequency of crashes like this.

I'm closing this one for now. Please reopen this issue if you run into problems like this again.


xpra: fails to load xinerama because libfakeXinerama path differs

Describe the bug
Several applications (including xterm) log errors relating to libfakeXinerama not being found.
Note: this issue was phrased different, this error happened to be a red herring, but it's still an issue with corresponding fix.
Steps To Reproduce
Steps to reproduce the behavior:

xpra start --start-child=xterm ssh://example.com/:10¹

¹: my actual command line is this one, but the other options are merely for usability (i.e. closing the session properly instead of leaving dangling servers running):
xpra start --ssh ssh --exit-with-client --exit-with-children --encoding=vp9 --pulseaudio=off --printing=off --mdns=off --webcam=off --opengl=on --dbus-proxy=off --daemon=no --start-child=xterm ssh://example.com/:10

Expected behavior
xterm runs normally.
Actual behaviour
Many error messages like these are being logged:
ERROR: ld.so: object '/nix/store/hwksi3xsc2vfm9km18j57qsvj221093a-libfakeXinerama-0.1.0/lib/libfakeXinerama.so.1' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

Additional context
The file is used as follows:
https://github.com/NixOS/nixpkgs/blob/066034f8d39fb70f1f8bbb236250591f48a40fe4/pkgs/tools/X11/xpra/fix-paths.patch#L34
The file is created as follows:
https://github.com/NixOS/nixpkgs/blob/066034f8d39fb70f1f8bbb236250591f48a40fe4/pkgs/tools/X11/xpra/libfakeXinerama.nix#L20-L23
Note that libfakeXinerama.so.1 is invalid while libfakeXinerama.so.1.0 or libXinerama.so.1 would be valid.
Notify maintainers

@offlinehacker
@numinit
@mvnetbiz

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
% nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.104, NixOS, 22.11 (Raccoon), 22.11pre-git`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `"nixos-22.11.3184.9b8e5abb183"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Regarding the extensive edit and the title change: I've confirmed that the PR works and silences the plethora of error messages, however it doesn't fix GLX, so I removed that from the issue and will continue my wild goose chase.


FLEX-1737 Changes default exception messages to more specific ones

FLEX-1737 Changes default exception messages to more specific ones

 You should sign our Contributor License Agreement in order to get your pull request merged.

SonarQube analysis reported 14 issues

 12 major
 2 minor

Watch the comments in this conversation to review them.
Top 10 extra issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 DeviceManagementService.java#L83: Method has 8 parameters, which is greater than 7 authorized.
 DeviceManagementService.java#L147: Method has 9 parameters, which is greater than 7 authorized.
 DeviceRequestMessageProcessor.java#L134: Method has 8 parameters, which is greater than 7 authorized.
 DeviceRequestMessageProcessor.java#L173: Method has 10 parameters, which is greater than 7 authorized.
 DeviceRequestMessageProcessor.java#L174: Remove this unused method parameter "responseMessageSender".
 PublicLightingGetPowerUsageHistoryRequestMessageProcessor.java#L169: Method has 8 parameters, which is greater than 7 authorized.
 DeviceManagementService.java#L83: Method has 8 parameters, which is greater than 7 authorized.
 DeviceManagementService.java#L147: Method has 9 parameters, which is greater than 7 authorized.
 DeviceRequestMessageProcessor.java#L132: Method has 8 parameters, which is greater than 7 authorized.
 DeviceRequestMessageProcessor.java#L157: Method has 10 parameters, which is greater than 7 authorized.

All is well.

SonarQube analysis reported 14 issues

 12 major
 2 minor

Watch the comments in this conversation to review them.
Top 10 extra issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 DeviceManagementService.java#L83: Method has 8 parameters, which is greater than 7 authorized.
 DeviceManagementService.java#L147: Method has 9 parameters, which is greater than 7 authorized.
 DeviceRequestMessageProcessor.java#L134: Method has 8 parameters, which is greater than 7 authorized.
 DeviceRequestMessageProcessor.java#L173: Method has 10 parameters, which is greater than 7 authorized.
 DeviceRequestMessageProcessor.java#L174: Remove this unused method parameter "responseMessageSender".
 PublicLightingGetPowerUsageHistoryRequestMessageProcessor.java#L169: Method has 8 parameters, which is greater than 7 authorized.
 DeviceManagementService.java#L83: Method has 8 parameters, which is greater than 7 authorized.
 DeviceManagementService.java#L147: Method has 9 parameters, which is greater than 7 authorized.
 DeviceRequestMessageProcessor.java#L132: Method has 8 parameters, which is greater than 7 authorized.
 DeviceRequestMessageProcessor.java#L157: Method has 10 parameters, which is greater than 7 authorized.

All is well.


ArtifactTool doesn't handle concurrent auto-update

Closing this as the user who created it has deleted their account and we haven't heard any other issues.


Don't pretend cpptrace would be self-contained

According to the build instructions cpptrace requires zstd and libdwarf-lite. Additionally it requires libunwind on some platforms.
It therefore is a simple, and portable, but certainly not a self-contained library. Let's fix this: Introduce yourself with misinformation is not helpful to build trust.

Thanks for the contribution. At the time the intro paragraph that was the case but it has now become outdated as the library has evolved.


Define new setting: "git.statusArgs.untrackedFiles"

This PR fixes #128800
If anyone has suggestions for how I might opt into this behaviour without patching the built-in git extension, I'd love to hear that as well.  Without this change, VS Code's git features are almost unusable in my team's large repository.
NOTE: With this change, when using --untracked-files=normal, the VS Code status panel will not render untracked folders.  It's an interesting product question whether or how untracked folders might be communicated in this mode, but simply omitting untracked folders vastly improves my workflow now.  I don't see any reason that this need be a blocking decision.

This could also be an alternate approach to fixing #131020.

I have rebased this for compatibility with the recently landed change, #131030.

@ajhyndman, thank you very much for rebasing this pull request. I have looked at both pull requests in this area and I have decided to merge https://github.com/microsoft/vscode/pull/131030 as that adds support for -uno and -uall. Is there a valid scenario in which we would like to support -unormal?

@lszomoru I work with an oversized monorepo in my day job.  I frequently patch the vscode git extension to set the status arg to -unormal.
This is definitely still not an ideal workflow, but git status -unormal runs in about 1 second, compared to -uall which can take closer to 20 seconds.  A 20 second delay on feedback makes the VS Code git extension mostly unusable.  -uno lets me work again, but I have to worry about forgetting untracked files.  With -unormal, VS Code can still let me know about most of the untracked files in my repository while keeping performance manageable.

@ajhyndman, thank you very much for getting back to me on this. I think that your scenario is valid, my only concern is that we do not want to lift git command arguments into VS Code settings. We currently have a setting that control untracked changes (git.untrackedChanges) so I will take a closer look at the existing values and see if that setting could be extended in order to expose an option which would result in using the -unormal argument. Will keep you posted.

@lszomoru That makes perfect sense.  I agree that this is an awkwardly low-level setting!
Do you think it would make any more sense to expose the option programmatically instead?  I'd be happy to write myself a small plugin to get this functionality rather than have to manually patch the built-in git extension.

Closing this pull request in favour of https://github.com/microsoft/vscode/issues/169253


Add NodePort support for Antrea Proxy on Linux

Codecov Report

Merging #2 (36497f2) into main (3b294ea) will decrease coverage by 10.37%.
The diff coverage is 27.01%.

@@             Coverage Diff             @@
##             main       #2       +/-   ##
===========================================
- Coverage   61.66%   51.29%   -10.38%
===========================================
  Files         262      262
  Lines       19560    19875      +315
===========================================
- Hits        12061    10194     -1867
- Misses       6240     8578     +2338
+ Partials     1259     1103      -156

Flag
Coverage Δ

kind-e2e-tests
34.87% <25.00%> (-18.45%)
:arrow_down:

unit-tests
41.17% <7.51%> (-0.27%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/agent/openflow/client.go
37.69% <0.00%> (-21.88%)
:arrow_down:

pkg/agent/proxy/types/groupcounter.go
0.00% <0.00%> (-95.24%)
:arrow_down:

pkg/agent/util/ipset/ipset.go
61.53% <ø> (ø)

pkg/features/antrea_features.go
16.66% <ø> (ø)

pkg/agent/proxy/proxier.go
35.24% <7.36%> (-31.54%)
:arrow_down:

pkg/agent/openflow/pipeline.go
49.66% <11.53%> (-20.46%)
:arrow_down:

pkg/agent/route/route_linux.go
39.16% <38.07%> (-3.53%)
:arrow_down:

pkg/agent/nodeportlocal/rules/iptable_rule.go
73.91% <66.66%> (+10.27%)
:arrow_up:

pkg/agent/util/iptables/iptables.go
47.32% <83.33%> (+8.43%)
:arrow_up:

pkg/agent/proxy/metrics/metrics.go
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 91 more


Add setup.py

Mostly done. Need to remove login.py from setup.py so it doesn't get uploaded to PyPI. Need to find a way to prompt for access token when people install.

Done! First release here: https://pypi.org/project/grepme/


[Bug] doris upgrade 0.15  Data writing appears  'all partitions have no load data'

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
0.15
What's Wrong?
doris 从0.14升级到0.15版本后，原来离线任务和实时部分任务出现 写入失败问题 异常信息是  'all partitions have no load data'，
经排查发现，stream load请求返回成功行数和实际数据相比少一条，因此如果每批数据为1条时，会出现此错误， 单独请求stream load上传数据到doris 1条数据正常写入，因此推断可能是datax doris writer或 flink doris connector源码问题

What You Expected?
写入1条数据可以正常成功
How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

source 是文件么？还是什么？

This is a problem with multi-character delimiters, single-character delimiters are fine

source 是文件么？还是什么？

test_1_0\x60\x60test_1_1\x60\x60test_1_2\x02\x02
test_1_0\x60\x60test_1_1\x60\x60test_1_2\x02\x02
test_1_0\x60\x60test_1_1\x60\x60test_1_2\x02\x02
test_1_0\x60\x60test_1_1\x60\x60test_1_2\x02\x02
test_1_0\x60\x60test_1_1\x60\x60test_1_2\x02\x02
test_1_0\x60\x60test_1_1\x60\x60test_1_2\x02\x02
test_1_0\x60\x60test_1_1\x60\x60test_1_2\x02\x02
test_1_0\x60\x60test_1_1\x60\x60test_1_2\x02\x02
test_1_0\x60\x60test_1_1\x60\x60test_1_2\x02\x02
test_1_0\x60\x60test_1_1\x60\x60test_1_2
Similarly, multi-byte line separators must be line separators at the end of each line, and there is no problem with single-byte line separators.
I am fixing the test


PNPM import error when starting dev server

Describe the bug
When I run npx mailingI get this error:

mailing linting templates in ./emails...
event - compiled client and server successfully in 2.4s (179 modules)
mailing watching for changes to emails
mailing running preview at http://localhost:3883/
wait  - compiling / (client and server)...
warn  -<EMAIL_ADDRESS>Module not found: Can't resolve 'encoding' in<EMAIL_ADDRESS>error - Error: ENOENT: no such file or directory, open<EMAIL_ADDRESS>
To Reproduce
Running npx mailing when you have a NextJS app in the root folder with node_modules installed by PNPM
Desktop (please complete the following information):

OS: MacOS Monterey

Hey @Ziothh, thanks for trying mailing and creating an issue! There are known issues with pnpm and yarn 3 (though I don't know root cause). Very happy to take outside PRs and setup e2e tests when we get it working but we haven't had time to prioritize yet since these package managers have relatively low usage.

Quick workaround to get rid of the errors
pnpm i uglify-js encoding -D
Everything works with pnpm after installing these packages

Weird! I wonder why uglify-js isn't installed by the mjml dep in mailing's  package.json.
I see this dependency chain in my yarn.lock

mjml < mjml-cli < html-minifier < uglify-js

Not sure about encoding. I don't have that in my yarn.lock.

Closing in favor of https://github.com/sofn-xyz/mailing/issues/381  Pull requests welcome!


Add Re Manga (Arabic) back

Source name
Re Manga
Source link
https://re-manga.com/
Source language
Arabic
Other details
Why was it deleted? The source is still working

No response
Acknowledgements

[X] I have checked that the extension does not already exist by searching the extension listing and verified it does not appear there.
[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a meaningful title with the source name.
[ ] I have admitted that I am a clown by having checked this box, as I have not read these acknowledgements.
[X] I will fill out all of the requested information in this form.

Re-Manga (Arabic) is added back under the changed package name ar.remangaarabic, so you need to uninstall and reinstall the extension to receive further updates. No migration is needed.


Fatal Error: Failed to open /dev/tty

I just installed this on my server via ssh and got this error when I pressed CTRL+R:
$(__fzf_history__)panic: Failed to open /dev/tty

goroutine 8 [running]:
github.com/junegunn/fzf/src/curses.Init(0xc82000e180, 0x470100)
    /go/src/github.com/junegunn/fzf/src/curses/curses.go:261 +0xc9
github.com/junegunn/fzf/src.NewTerminal.func1()
    /go/src/github.com/junegunn/fzf/src/terminal.go:233 +0x36
github.com/junegunn/fzf/src.(*Terminal).Loop(0xc820058b60)
    /go/src/github.com/junegunn/fzf/src/terminal.go:744 +0x368
created by github.com/junegunn/fzf/src.Run
    /go/src/github.com/junegunn/fzf/src/core.go:202 +0xe84

goroutine 1 [semacquire]:
sync.runtime_Syncsemacquire(0xc820018350)
    /go1.5/src/runtime/sema.go:237 +0x201
sync.(*Cond).Wait(0xc820018340)
    /go1.5/src/sync/cond.go:62 +0x9b
github.com/junegunn/fzf/src/util.(*EventBox).Wait(0xc82000e520, 0xc82004bef0)
    /go/src/github.com/junegunn/fzf/src/util/eventbox.go:32 +0xb5
github.com/junegunn/fzf/src.Run(0xc82000c2c0)
    /go/src/github.com/junegunn/fzf/src/core.go:275 +0xfb2
main.main()
    /go/src/github.com/junegunn/fzf/src/fzf/main.go:6 +0x25

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /go1.5/src/runtime/asm_amd64.s:1696 +0x1

goroutine 5 [syscall]:
os/signal.loop()
    /go1.5/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
    /go1.5/src/os/signal/signal_unix.go:28 +0x37

goroutine 11 [runnable]:
github.com/junegunn/fzf/src.(*Terminal).Loop.func2(0xc82001c540, 0xc820058b60)
    /go/src/github.com/junegunn/fzf/src/terminal.go:736
created by github.com/junegunn/fzf/src.(*Terminal).Loop
    /go/src/github.com/junegunn/fzf/src/terminal.go:741 +0x330

goroutine 7 [semacquire]:
sync.runtime_Syncsemacquire(0xc820018390)
    /go1.5/src/runtime/sema.go:237 +0x201
sync.(*Cond).Wait(0xc820018380)
    /go1.5/src/sync/cond.go:62 +0x9b
github.com/junegunn/fzf/src/util.(*EventBox).Wait(0xc82000e580, 0xc820028f60)
    /go/src/github.com/junegunn/fzf/src/util/eventbox.go:32 +0xb5
github.com/junegunn/fzf/src.(*Matcher).Loop(0xc8200127e0)
    /go/src/github.com/junegunn/fzf/src/matcher.go:67 +0x93
created by github.com/junegunn/fzf/src.Run
    /go/src/github.com/junegunn/fzf/src/core.go:197 +0xe18

goroutine 9 [runnable, locked to thread]:
runtime.gopark(0x622d40, 0xc82001c478, 0x5dd050, 0x9, 0x16, 0x3)
    /go1.5/src/runtime/proc.go:185 +0x163
runtime.goparkunlock(0xc82001c478, 0x5dd050, 0x9, 0x16, 0x3)
    /go1.5/src/runtime/proc.go:191 +0x54
runtime.chansend(0x55ee20, 0xc82001c420, 0xc82002970c, 0xc820029601, 0x453369, 0x2)
    /go1.5/src/runtime/chan.go:197 +0x499
runtime.chansend1(0x55ee20, 0xc82001c420, 0xc82002970c)
    /go1.5/src/runtime/chan.go:92 +0x43
runtime.ensureSigM.func1()
    /go1.5/src/runtime/signal1_unix.go:238 +0x2a9
runtime.goexit()
    /go1.5/src/runtime/asm_amd64.s:1696 +0x1

goroutine 10 [chan receive]:
github.com/junegunn/fzf/src.(*Terminal).Loop.func1(0xc82001c3c0, 0xc820058b60)
    /go/src/github.com/junegunn/fzf/src/terminal.go:730 +0x36
created by github.com/junegunn/fzf/src.(*Terminal).Loop
    /go/src/github.com/junegunn/fzf/src/terminal.go:732 +0x1e2

Can you tell me more about your server?

It's a Classic VPS from OVH. I'm running Ubuntu 15.10, with a uname of
Linux starbeamrainbowlabs.com 2.6.32-042stab111.12 #1 SMP Thu Sep 17
11:38:20 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
I connect to it via SSH - I do have access to it's console, but that
uses the web interface and it's kinda ugly - I much prefer SSH. I can't
change my kernel, interestingly enough - OVH update it automagically for
me. Other than that, I have full root access and can do what ever I want.
I have a single virtual core running at 2GHz I think, 1GB or RAM, and
10GB of hard drive space.
On 11/12/15 07:38, Junegunn Choi wrote:

Can you tell me more about your server?
—
Reply to this email directly or view it on GitHub
https://github.com/junegunn/fzf/issues/447#issuecomment-163866119.

Do you have no problem opening other TUI programs, like vim, top, etc?
Do you use ssh command to connect? Then try using -t option which forces pseudo-terminal allocation.

Nope, I don't have problems using vim and top.
Yes, I do use ssh to connect on Linux. I also use PuTTY when I'm at
university, but I am not in a position to test that. I've tested it
with -t, but that doesn't help.

Here's an extract from htop:
On 11/12/15 08:16, Junegunn Choi wrote:

Do you have no problem opening other TUI programs, like vim, top, etc?
Do you use |ssh| command to connect? Then try using |-t| option
which forces pseudo-terminal allocation.

—
Reply to this email directly or view it on GitHub
https://github.com/junegunn/fzf/issues/447#issuecomment-163871865.

Interesting.

Is ruby available on the server? If so, can you check the output of ruby -rio/console -e'p IO::console'?
And cat /proc/tty/drivers

Here's an extract from my terminal:
sbrl@starbeamrainbowlabs:~$ ruby -rio/console -e'p IO::console'
nil
sbrl@starbeamrainbowlabs:~$ cat /proc/tty/drivers
cat: /proc/tty/drivers: No such file or directory
sbrl@starbeamrainbowlabs:~$ ls /proc/tty
ls: cannot access /proc/tty: No such file or directory
sbrl@starbeamrainbowlabs:~$ ls /proc
1      15882  22384  26331  359  5781     fairsched    stat
10     15998  22385  26332  363  5803     fairsched2   swaps
11     16899  22387  26687  370  5817     filesystems  sys
12     19670  22392  27588  4    6        fs           sysrq-trigger
12289  2      22393  27590  405  6671     kmsg         sysvipc
12439  20258  22394  27808  423  7        loadavg      uptime
13995  20333  22395  27918  427  77       locks        user_beancounters
14391  22200  22399  28192  442  8        meminfo      version
14399  22376  22402  28240  443  9        modules      vmstat
14552  22379  23661  28241  461  cgroups  mounts       vz
14684  22380  23662  28260  463  cmdline  net
14685  22381  23663  2948   5    cpuinfo  partitions
15880  22383  24712  3      556  devices  self

What is the output of tty command?

Right, I think I understand. Here's  the output of the tty command:
sbrl@starbeamrainbowlabs:~$ tty
/dev/pts/0

Wish I could help, but I can't simulate such environment neither on linux nor on osx where /dev/tty is unavailable but tty command succeeds.
When I connect to a remote host via ssh with -T option which disables pseudo-terminal allocation, /dev/tty becomes unavailable and fzf fails with the same error you reported, but tty command as well fails and vim or top do not work smoothly as expected.
> echo $TERM
dumb
> cat /dev/tty
cat: /dev/tty: No such device or address
> tty
not a tty
> fzf
panic: Failed to open /dev/tty
...
> top
TERM environment variable not set.
> TERM=xterm top
top: failed tty get
...

Is there anything I can do to help?

Hmm, can you try connecting to server with -tt option, e.g. ssh -tt ..., or maybe even -ttt though I'm not sure if it makes any difference, but some people suggested using -ttt, so.
Excerpt from the man page:
-t      Force pseudo-terminal allocation.  This can be used to execute arbitrary screen-based programs on a remote machine, which can be
        very useful, e.g. when implementing menu services.  Multiple -t options force tty allocation, even if ssh has no local tty.

@junegunn Nope, no luck with -ttt. I still get /dev/pty/0. Here's the output from the above commands again whilst logged in with -ttt:
sbrl@starbeamrainbowlabs:/tmp/fzf$ ruby -rio/console -e'p IO::console'
nil
sbrl@starbeamrainbowlabs:/tmp/fzf$  cat /proc/tty/drivers
cat: /proc/tty/drivers: No such file or directory
sbrl@starbeamrainbowlabs:/tmp/fzf$ cat /proc/tty/
cat: /proc/tty/: No such file or directory
sbrl@starbeamrainbowlabs:/tmp/fzf$ ls /proc
1      13995  15882  23661  27492  27502  27564  31948  405  5     9           filesystems  mounts      sysrq-trigger
10     14391  15998  23662  27494  27503  27565  31949  423  556   cgroups     fs           net         sysvipc
11     14399  16899  23663  27495  27505  27777  31950  427  6     cmdline     kmsg         partitions  uptime
12     14552  19670  24712  27496  27508  27778  359    442  6671  cpuinfo     loadavg      self        user_beancounters
12289  14684  2      27264  27499  27510  27810  363    443  7     devices     locks        stat        version
12439  14685  20258  27489  27500  27511  2948   370    461  77    fairsched   meminfo      swaps       vmstat
13537  15880  20333  27490  27501  27512  3      4      463  8     fairsched2  modules      sys         vz
sbrl@starbeamrainbowlabs:/tmp/fzf$ tty
/dev/pts/0

I could perhaps create you a limited temporary account on my server if you are unable to replicate a suitable testing environment.
A bit more information about my server: It's virtualized using OpenVZ, and I'm using the latest RHEL kernel to my knowledge.

I've just tried PuTTY, but I still get pty/0.

Another update:
I've taken a look at the code, and think the problem lies in src/curses.go on line 259 (I haven't learnt go though). The code makes the assumption that /dev/tty is available, when in reality it isn't always. Perhaps a better approach would be this:

Run the tty command. If it succeeds, then try opening the path that it returns.
If it fails, try opening /dev/tty.
If that fails, panic.

That would catch every possible scenario.

I still get /dev/pty/0

The output itself is not invalid. The absence of /dev/tty and other terminal programs still working nevertheless is the situation I've never experienced and fzf is not the only program that assumes the existence of /dev/tty. e.g. https://gitlab.com/procps-ng/procps/blob/master/ps/global.c#L136
I briefly mentioned about the approach you suggested in the previous comment. STDIN to fzf is usually not terminal (e.g. history | fzf) so tty command will fail and will not give the file name we can use (history | tty fails).

I could perhaps create you a limited temporary account on my server if you are unable to replicate a suitable testing environment.

Probably this is the only way I can take a look at the problem, though I'm not sure if I'll be able to find the solution. It would be much better if you could create a Dockerfile that can be used to create a virtual machine with the same environment locally.

Docker file? How do I do that?

I haven't been able to find a way not to rely on /dev/tty for getting key presses when stdin is redirected. /dev/tty is a standard linux device name and the absence of it usually means non-interactive terminal. Any help is appreciated.

@junegunn If I open /dev/tty on my laptop with cat, anything I type into it get's echoed back as expected. If I do the same on the server, I get a permission denied.
If, however, I run the tty command, on the server it returns /dev/pty/0, and on my laptop it returns /dev/pty/4. Opening them both with cat on their respective machines works like a charm.
Would it be possible to try opening /dev/tty, and if that fails run the tty command to determine the terminal to try next?

No, like I said above, tty command is not the answer. We normally use fzf with stdin redirection, e.g. history | fzf. And what do we get when we do history | tty? not a tty error.
By the way, I have never seen /dev/tty missing on interactive shell on Linux servers. RHEL, Centos, Ubuntu, Nixos, Arch linux, NixOS, never had the problem. Have you tried contacting OVH about it?

@junegunn Ah I see. That is a problem. I have just tried contacting OVH and pointed them towards this bug - hopefully I'll get a response in a day or two.
Here's the message I sent:

Hello,
I have recently been taking a look at some software that I wanted to install on my VPS, but the software in question is unable to open /dev/tty, and the developer has advised me  to contact you.
Here's a link to the issue with the software in question: https://github.com/junegunn/fzf/issues/447

Did you get any response?

@junegunn Thanks for reminding me to update this issue! I think I did, yeah, but it boiled down to the virtualisation tool they used for the 2014 range of VPSes. I'm renting a different (much better!) server now, so it should work. I'll check it out :D

For the users running into this after Ubuntu update, it's a kernel regression. See https://github.com/junegunn/fzf/issues/1486


Take first editor steps more slowly

Observed in Aalborg (Lucy):

Some participants were unused to using a terminal text editor: so opening/editing/closing nano was quite slow and this is the point at which they would fall behind the instructor. At one point a student did not follow the file edits of the instructor, and to correct the mistake they had to do a manual merge, which they were not ready for

I will emphasize this in the instructor guide.


⚠ Bofrost.de has degraded performance

In 236f05e, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1213 ms

Resolved: Bofrost.de performance has improved in c0ae6b6.


Add section in readme for debugging samples in IDE

https://github.com/Azure-Samples/azure-spring-boot-samples/pull/212

pr merged.


feat(kit): Tree add trackBy input (#4626)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Refactoring
[ ] Build or CI related changes
[ ] Tests related changes
[ ] Documentation content changes

What is the current behavior?
Closes #4626
What is the new behavior?

Please also add it to the API tab of Tree documentation page.


Open source code of Figma plug-in

Please open source code of Figma plug-in. 🙏

The code is not open sourced at this time, but thank you for the feedback!

Definitely agree.  Would have been happy to fix the code or at the very least point you to where the problem is.  Given what it is I think you need the help.


[BUG] Does not work with packages which do not specify types or typings

Describe the bug
The following package cannot be resolved:
A package which does not have the types or typings field, but has index.d.ts in the project
Example repository:
Notice how it has the TS icon

https://www.npmjs.com/package/pure-svg-code
Github Repo: https://github.com/gwuhaolin/pure-svg-code
To Reproduce
import {} from 'pure-svg-code'

Expected behavior
Types should work

OS:
Browser Version:
monaco-editor-auto-typings Version: 0.4.4

+1


Improve bower-list or add outdated command

Like #955, except that I want better programmatical access.
I would like to filter only to those packages that are actually outdated.
Everything else is fine, I can parse the resulting data from --json and use it as I wish.

:+1:

:+1:

:thumbsup:

Yes please. +1

:+1:

+1

"We cannot provide clear command switch (like --outdated) because there are different types of outdateness (patch version, minor version, major version, security update etc.)."
Maybe you can better explain why the exact types of outdateness matter ?  What is certainly not very useful is the choice of bower to show the latest version no matter what.
The version info in bower.json contains the version limits.  So what is important is:

Is there a newer version we can download and install that is inside the version limits like "~3"
What is the very latest version according to semantic versioning (it only does this right now)

So if you care fore major/minor/patchlevel you modify your version limit specification accordingly.
At the moment "bower list" seems to provide only the very latest version, and often this is an alpha/beta/pre-release/snapshot of the next major version being worked on and of little interest when maintaining a project.  Also major versions usually mean breaking changes, again of little interest when maintain a project.
It would be better if "bower list" at least used 2 colours in the output.

As now, dark-cyan for indicating the very latest version that exists.
Additionally, dark-red for indicating a newer version that exists, that is also inside the version limits from bower.json (like NPM)

All this info can be displayed together, there is no need to pick which we want displayed.  Colouring the item will indicate this, in the case of no colour in output then the most important info is displayed, that is not the dark-cyan info like now.
Now if there are "security update" version that exists (and you have that info) you display on a separate line, since big fat warning like "SECURITY WARNING foobar#1.2.3 ....".  Again displays as well as the above.

I would love it if there was at least an option to hide the "build/alpha/beta/pre-release/snapshot" style updates. On a large project you quickly end up with more noise than meaningful updates.

+1

:+1: just make it work like npm

+1

👍

👍

Bower is now deprecated and in maintenance mode which means we won't be adding new features


Compiler crash with a dash in a parameter of a lambda

I have run into a curious bug, which I have attempted to minimize in this github project. It occurs when using macros with a dashy identifier. The macros work fine when compiled with stock scala, but they error when compiled with scala-js. The exception begins:
java.lang.IllegalArgumentException: requirement failed: a-b is not a valid identifier
        at scala.Predef$.require(Predef.scala:219)
        at org.scalajs.core.ir.Trees$.requireValidIdent(Trees.scala:61)
        at org.scalajs.core.ir.Trees$Ident.<init>(Trees.scala:45)
        at org.scalajs.core.compiler.JSEncoding$class.freshLocalIdent(JSEncoding.scala:71)
        at org.scalajs.core.compiler.GenJSCode.freshLocalIdent(GenJSCode.scala:31)
        at org.scalajs.core.compiler.GenJSCode$JSCodePhase$$anonfun$78.apply(GenJSCode.scala:3864)
        at org.scalajs.core.compiler.GenJSCode$JSCodePhase$$anonfun$78.apply(GenJSCode.scala:3858)
        at scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:728)
        at scala.collection.immutable.List.foreach(List.scala:381)
        at scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:727)

I would be happy to contribute if there's anything I can do to help fix the issue, but I'm not sure where to start.

Thanks for the report. So I guess dashes are OK for the JVM, eh? Well, I guess we have to mangle them (to _ maybe).
You're welcome to work on a fix, but otherwise I'll take care of it. The place to go is in the stack trace: freshLocalIdent(JSEncoding.scala:71), i.e., here, which means fixing freshName to mangle dashes in base. It might be tricky to write an appropriate unit test, since we can't really have macros in our test suite. But you can try a quoted identifier like \a-b``.
The same issue likely also applies to class names and methods names.

Well, it turns out that, according to the JVM, pretty much any character is valid (except [ and a couple others), which means that macros can probably get away with arbitrary names for about anything. So it seems that we have to re-encode every name that reaches our back-end.

So, actually, that had nothing to do with any of that. We were simply inventing identifier based on arbitrary strings as found in the original names of symbols.

Thanks for the fix! looking forward to 0.6.5.


Getitem round3 ....

by fixing the TODO: totally unreadable line
I decided to make more refactors....

fully use type_dim to do eeevverything, avoid [<code> if isinstance(i, type) else <code> ... for i in indices]
move 2. basic indexing (no copy) inside an if conditional, so we don't call shrink, flip, etc unless necessary
got rid of crazy 1 liner :D

let's see how many lines I added

Changes
Name                  Lines    Diff    Tokens/Line    Diff
------------------  -------  ------  -------------  ------
tinygrad/tensor.py      646      +4           22.3    -0.1

total lines changes: +4

yikes

is this ready?

is this ready?

yeah now it is. Had to look through it again.

cool thanks!


Spike: Research whether to use webtorrent or IPFS

IPFS-js is useful for 2 reasons, 1 it can be used to pin the UI itself in the browser from other instances of the UI that are running and 2 for the warp sync stuff, it uses a DHT to find peers and not tracker servers like webtorrent


Need a very simple example of what is required for DRY sub-helmfiles

I'm almost certainly being rather stupid here, but I cannot for the life of me "get" it yet
I'm wanting to :

Have a "root" helmfile.yaml that is simply a "launcher/wrapper" for a number of sub-helmfiles
Allow each sub-helmfile to be run alone, if required
Have "global" values in each environment values file

So, something like:
.
├── environments.yaml
├── helmfiles
│   └── cert-manager
│       ├── helmfile.yaml
│       ├── repositories.yaml
│       └── values.yaml.gotmpl
├── helmfile.yaml
├── production.yaml
└── staging.yaml

2 directories, 7 files

helmfile.yaml
bases:
  - environments.yaml

---

helmfiles:
  - path: helmfiles/cert-manager/helmfile.yaml
    values:
    - {{ toYaml .Values | nindent 6 }}

environments.yaml
environments:
  default:
    values:
      - staging.yaml
  production:
    values:
      - production.yaml

helmfiles/cert-manager/helmfile.yaml
bases:
  - ../../environments.yaml
  - repositories.yaml

---

releases:
- name: cert-manager
  namespace: "cert-manager"
  chart: jetstack/cert-manager
  version: 1.7.1
  installed: true
  values:
    - values.yaml.gotmpl

As it stands, if I invoke helmfile -e default lint from the top-level directory, I get an error:
in ./helmfile.yaml: in .helmfiles[0]: in helmfiles/cert-manager/helmfile.yaml: failed to read ../../environments.yaml: environment values file matching "staging.yaml" does not exist in "."

I'm guessing that the problem is due to   - ../../environments.yaml in the helmfiles/cert-manager/helmfile.yaml file, but if I remove that line, I cannot then run it in isolation?
As I stated earlier, it's me not getting it, so I could dearly love it if some could point me to a very simple example that shows what I'm trying to achieve (I've looked at the official docs & examples, but I'm struggling)
TIA

Just realised that I can invoke a single release by using -l name=[RELEASE_NAME] - perhaps that is my solution, but it doesn't "feel" right


Can you make for python or nodejs?

Can you make for python or nodejs?
For chrome is not better

No
For chrome is better


Complexity Analysis

Could you run Dig on the complexity benchmarks and see if the results are consistent with those in the Syminfer paper and the notes in each program?  Also report any errors etc.
Here's an example
time sage -python dig.py ../tests/complexity/Cav09_Fig1a.java  -log 4
...
*** '../tests/complexity/Cav09_Fig1a.java', 1 locs, 5 invs (1 Eqt, 2 Oct, 2 PrePost), 59 traces, 59 inps, time 4.47s, rand seed<PHONE_NUMBER>.98, test 18 46:
vtrace_post (5 invs):
1. m*tCtr - tCtr^2 - 100*m + 200*tCtr - 10000 == 0
2. (m < 0) => tCtr == 100 p
3. (-m <= 0) => tCtr == m + 100 p
4. m - tCtr <= -10
5. -tCtr <= -10

Cav09_Fig5b.java fails
Error report:
helpers.miscs:ERROR:cannot parse: 'tCtr == y - 1/2sqrt(4y**2 - 8x + 4y + 1) + 1/2'
Compare(left=Name(id='tCtr', ctx=Load()), ops=[Eq()], comparators=[BinOp(left=BinOp(left=Name(id='y', ctx=Load()), op=Sub(), right=BinOp(left=BinOp(left=Num(n=1), op=Div(), right=Num(n=2)), op=Mult(), right=Call(func=Name(id='sqrt', ctx=Load()), args=[BinOp(left=BinOp(left=BinOp(left=BinOp(left=Num(n=4), op=Mult(), right=BinOp(left=Name(id='y', ctx=Load()), op=Pow(), right=Num(n=2))), op=Sub(), right=BinOp(left=Num(n=8), op=Mult(), right=Name(id='x', ctx=Load()))), op=Add(), right=BinOp(left=Num(n=4), op=Mult(), right=Name(id='y', ctx=Load()))), op=Add(), right=Num(n=1))], keywords=[]))), op=Add(), right=BinOp(left=Num(n=1), op=Div(), right=Num(n=2)))])

popl09_fig2_1.java and popl09_fig2_2.java are missing in the tests/complexity directory. There is however popl09_fig2.java.
Should I remove the two column (popl09_fig2_1.java and popl09_fig2_2.java)  in "table: complexity" in the paper and replace them by popl09_fig2.java.

I see those 2 files in tests/complexity, see
https://github.com/nguyenthanhvuh/dig/tree/dev/tests/complexity.  Note that
their names are uppercase.
On Wed, Feb 26, 2020 at 3:55 PM Didier Ishimwe<EMAIL_ADDRESS>wrote:

popl09_fig2_1.java and popl09_fig2_2.java are missing in the
tests/complexity directory. There is however popl09_fig2.java.
Should I remove the two column (popl09_fig2_1.java and popl09_fig2_2.java)
in "table: complexity" in the paper and replace them by popl09_fig2.java.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nguyenthanhvuh/dig/issues/4?email_source=notifications&email_token=AE7KWJBQIDJORHML57WZ2U3RE3QMJA5CNFSM4K2TUHUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENCBJGY#issuecomment-591664283,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE7KWJEQ23INIBP7OFCT2BLRE3QMJANCNFSM4K2TUHUA
.

I see those 2 files in tests/complexity, see https://github.com/nguyenthanhvuh/dig/tree/dev/tests/complexity. Note that their names are uppercase.
…
On Wed, Feb 26, 2020 at 3:55 PM Didier Ishimwe @.***> wrote: popl09_fig2_1.java and popl09_fig2_2.java are missing in the tests/complexity directory. There is however popl09_fig2.java. Should I remove the two column (popl09_fig2_1.java and popl09_fig2_2.java) in "table: complexity" in the paper and replace them by popl09_fig2.java. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#4?email_source=notifications&email_token=AE7KWJBQIDJORHML57WZ2U3RE3QMJA5CNFSM4K2TUHUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENCBJGY#issuecomment-591664283>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE7KWJEQ23INIBP7OFCT2BLRE3QMJANCNFSM4K2TUHUA .

I was misspelling them

I finished with table II: Complexity.
Report:
For POPL09_FIG2_1 and POPL09_FIG4_2 Dig generated very weak invariant (only 1 per each). I couldn't figure out why. It seems SymInfer produced stronger invariants

just commit some fix,  can you pull the latest and retry?

On Feb 26, 2020, at 2:52 PM, Didier Ishimwe<EMAIL_ADDRESS>wrote:
Cav09_Fig5b.java fails
Error report:
helpers.miscs:ERROR:cannot parse: 'tCtr == y - 1/2sqrt(4y**2 - 8x + 4y + 1) + 1/2'
Compare(left=Name(id='tCtr', ctx=Load()), ops=[Eq()], comparators=[BinOp(left=BinOp(left=Name(id='y', ctx=Load()), op=Sub(), right=BinOp(left=BinOp(left=Num(n=1), op=Div(), right=Num(n=2)), op=Mult(), right=Call(func=Name(id='sqrt', ctx=Load()), args=[BinOp(left=BinOp(left=BinOp(left=BinOp(left=Num(n=4), op=Mult(), right=BinOp(left=Name(id='y', ctx=Load()), op=Pow(), right=Num(n=2))), op=Sub(), right=BinOp(left=Num(n=8), op=Mult(), right=Name(id='x', ctx=Load()))), op=Add(), right=BinOp(left=Num(n=4), op=Mult(), right=Name(id='y', ctx=Load()))), op=Add(), right=Num(n=1))], keywords=[]))), op=Add(), right=BinOp(left=Num(n=1), op=Div(), right=Num(n=2)))])
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

I finished with table II: Complexity.
Report:
For POPL09_FIG2_1 and POPL09_FIG4_2 Dig generated very weak invariant (only 1 per each). I couldn't figure out why. It seems SymInfer produced stronger invariants

These two programs still produce weak invariants that do not give the complexity of the program. I even tried to run their corresponding from SymInferASE directory and I got the same result (-t<=0)

looks like this is because of the fuzzer generating lots of negative inputs and the loop do not even run in most cases, hence bad traces.  I've made some changes in cf81790,  could you rerun and see if it fixes it.

looks like this is because of the fuzzer generating lots of negative inputs and the loop do not even run in most cases, hence bad traces. I've made some changes in cf81790, could you rerun and see if it fixes it.

It worked. I pushed the updates on git


make ResizeDisk inherit Disk like CreateDisk

Fix https://github.com/GoogleCloudPlatform/compute-image-tools/issues/1279

The original issue has been resolved. No need to change.


How about move "element-plus" from the "devDependencies" to the "dependencies"?

When i install this package by @nuxt/devtools, it will interrupt

How about move "element-plus" from the "devDependencies" to the "dependencies", just like the @unocss/nuxt

This may not be a good idea, as the modified project may reference different ElementsPlus and result in errors

This may not be a good idea, as the modified project may reference different ElementsPlus and result in errors

Why not move this repo into the element-plus's monorepo, and then the reference will not be a problem

This also need to make the dependency versions to maintain a consistent