Animelab Extractor Downloads Mismatched Audio/Video By Default

I'm pretty surprised that yt-dlp has an extractor that supports AnimeLab, of all things, but I've encountered an issue with it.
When using yt-dlp --cookies cookies.txt https://www.animelab.com/player/wonder-egg-priority-episode-1/subtitles, it tries to download bestaudio+bestvideo, which works successfully...however, it downloads the hardsubbed video (i.e. meant for Japanese audio) and pairs it up with the English audio - even when adding the "/subtitles" segment to the URL. I end up with an episode that has hardcoded English subtitles that are mismatched with the Japanese audio.
Why Animelab decided to hardcode the subtitles, when even Funimation doesn't, I have no idea...
In order to download the episode with matching video/audio, you first have to issue a yt-dlp -F https://www.animelab.com/player/wonder-egg-priority-episode-1/subtitles command and find the format IDs that match, then issue a yt-dlp -f 91268_nothardsubbed_en-5+184694_yeshardsubbed_ja-JP-audio-ENGLISH https://www.animelab.com/player/wonder-egg-priority-episode-1/subtitles command.
This isn't so bad in the grand scheme of things, but it does make the ability to download an entire series with one command (yt-dlp --cookies cookies.txt https://www.animelab.com/shows/wonder-egg-priority) effectively useless.
My use case is that I need the non-hardcoded subs video with Japanese audio, and I'll then insert Japanese subtitles into the video, however, if I was able to get either the subbed or dubbed version of an episode/series by default, that would be good enough.
[AnimeLab] Downloading login page
[AnimeLab] wonder-egg-priority-episode-2: Downloading URL https://www.animelab.com/player/wonder-egg-priority-episode-2/subtitles
[AnimeLab] 58821: Downloading m3u8 information
[AnimeLab] 58821: Downloading m3u8 information
[AnimeLab] 58821: Downloading MPD manifest
[AnimeLab] 58821: Downloading MPD manifest
[AnimeLab] wonder-egg-priority-episode-2: Downloading URL https://www.animelab.com/player/wonder-egg-priority-episode-2/dubbed
[AnimeLab] 58821: Downloading m3u8 information
[AnimeLab] 58821: Downloading m3u8 information
[AnimeLab] 58821: Downloading MPD manifest
[AnimeLab] 58821: Downloading MPD manifest
[info] 58821: Downloading 1 format(s): 185047_yeshardsubbed_ja-JP-5+192363_nothardsubbed_en-0
[download] Destination: Wonder Egg Priority - Episode 2 - The Terms of Friendship.f185047_yeshardsubbed_ja-JP-5.mp4
[download]   0.2% of 408.07MiB at  3.45MiB/s ETA 02:09

I'm using the latest release.

I'm a bit confused when it comes to subs but interested in using AnimeLab extractor in the future, is it possible to download dubs with English translations only on stuff like signposts, mobile phones ect. (what is that called? softsubs?). I currently don't have a subscription to AnimeLab so I can't test it.

@Jules-A I would first like to note that, as far as I'm aware, Animelab is only accessible within Australia and New Zealand. It is essentially Funimation for those regions (they're owned by the same company - well, Crunchyroll is too, but Animelab and Funimation are more tightly integrated).
Hardsubs means that the subtitles are burned into the video; they are actually a part of the video's frames; the .mp4 file. Soft subtitles, on the other hand, are contained in subtitle files, like .srt, .ass, or .vtt files (commonly .srt), and they are then incorporated into the video. They can be turned on and off, which is very handy if you are, for example, trying to learn a language, or need clean footage for some sort of video production.
That's the non-technical explanation, anyway.
Put simply, the subtitles are a part of the JP-video version, and they can't be removed. In the English dub version, however, there are no subtitles at all, which is what I downloaded and paired up with the Japanese audio.
So, it is not possible to selectively turn off subtitles in the hardsub version for certain timecodes.

To clarify, animelab does not have .srt files for English subtitles (or any other language subtitles for that matter) for the series I tested. You'd have to download the English dub episode and find an .srt file elsewhere. Kitsunekko is where I find my Japanese subtitles; it seems they have English and Chinese as well.

You can probably bypass this issue using a format filter. If you can show me the output of -F, I can help you write a correct filter.
To actually fix this however, I couldn't find a free VPN/proxy. If you can provide me some proxy details, I can test and (probably) fix it
The extracted was added from https://github.com/ytdl-org/youtube-dl/pull/13600 by @mariuszskon. Maybe he would be interested in helping

I had read the manual page and found the section on the format filter, however, I wasn't sure if it was actually possible to filter out the IDs in the way that I needed to, so I hadn't attempted it.
Output of -F:
[AnimeLab] Downloading login page
[AnimeLab] wonder-egg-priority-episode-2: Downloading URL https://www.animelab.com/player/wonder-egg-priority-episode-2/subtitles
[AnimeLab] 58821: Downloading m3u8 information
[AnimeLab] 58821: Downloading m3u8 information
[AnimeLab] 58821: Downloading MPD manifest
[AnimeLab] 58821: Downloading MPD manifest
[AnimeLab] wonder-egg-priority-episode-2: Downloading URL https://www.animelab.com/player/wonder-egg-priority-episode-2/dubbed
[AnimeLab] 58821: Downloading m3u8 information
[AnimeLab] 58821: Downloading m3u8 information
[AnimeLab] 58821: Downloading MPD manifest
[AnimeLab] 58821: Downloading MPD manifest
[info] Available formats for 58821:
ID                                       EXT  RESOLUTION |   TBR PROTO | VCODEC        VBR ACODEC     ABR  ASR    NOTE
---------------------------------------- ---- ---------- - ----- ----- - ----------- ----- --------- ---- ------- -----------------------------
185040_yeshardsubbed_ja-JP-audio-ENGLISH m3u8 audio only |       m3u8  |                   unknown                [en]
185045_yeshardsubbed_ja-JP-audio-ENGLISH m3u8 audio only |       m3u8  |                   unknown                [en]
192360_nothardsubbed_en-audio-ENGLISH    m3u8 audio only |       m3u8  |                   unknown                [en]
192361_nothardsubbed_en-audio-ENGLISH    m3u8 audio only |       m3u8  |                   unknown                [en]
185046_yeshardsubbed_ja-JP-0             m4a  audio only |  207k https |                   mp4a.40.2 207k 48000Hz DASH audio, m4a_dash, 48000Hz
185047_yeshardsubbed_ja-JP-0             m4a  audio only |  207k https |                   mp4a.40.2 207k 48000Hz DASH audio, m4a_dash, 48000Hz
192362_nothardsubbed_en-0                m4a  audio only |  211k https |                   mp4a.40.2 211k 48000Hz DASH audio, m4a_dash, 48000Hz
192363_nothardsubbed_en-0                m4a  audio only |  211k https |                   mp4a.40.2 211k 48000Hz DASH audio, m4a_dash, 48000Hz
185040_yeshardsubbed_ja-JP-579           mp4  426x240    |  579k m3u8  | avc1.640028  579k
185045_yeshardsubbed_ja-JP-579           mp4  426x240    |  579k m3u8  | avc1.640028  579k
192360_nothardsubbed_en-580              mp4  426x240    |  580k m3u8  | avc1.640028  580k
192361_nothardsubbed_en-580              mp4  426x240    |  580k m3u8  | avc1.640028  580k
185046_yeshardsubbed_ja-JP-1             mp4  426x240    |  671k https | avc1.640028  671k                        DASH video, mp4_dash
185047_yeshardsubbed_ja-JP-1             mp4  426x240    |  671k https | avc1.640028  671k                        DASH video, mp4_dash
192362_nothardsubbed_en-1                mp4  426x240    |  688k https | avc1.640028  688k                        DASH video, mp4_dash
192363_nothardsubbed_en-1                mp4  426x240    |  688k https | avc1.640028  688k                        DASH video, mp4_dash
185043_yeshardsubbed_ja-JP               mp4  360p       |       https | unknown           unknown                [ja-JP]
192357_nothardsubbed_en                  mp4  360p       |       https | unknown           unknown                [en]
185040_yeshardsubbed_ja-JP-888           mp4  640x360    |  888k m3u8  | avc1.640028  888k
185045_yeshardsubbed_ja-JP-888           mp4  640x360    |  888k m3u8  | avc1.640028  888k
192360_nothardsubbed_en-889              mp4  640x360    |  889k m3u8  | avc1.640028  889k
192361_nothardsubbed_en-889              mp4  640x360    |  889k m3u8  | avc1.640028  889k
185046_yeshardsubbed_ja-JP-2             mp4  640x360    | 1342k https | avc1.640028 1342k                        DASH video, mp4_dash
185047_yeshardsubbed_ja-JP-2             mp4  640x360    | 1342k https | avc1.640028 1342k                        DASH video, mp4_dash
192362_nothardsubbed_en-2                mp4  640x360    | 1344k https | avc1.640028 1344k                        DASH video, mp4_dash
192363_nothardsubbed_en-2                mp4  640x360    | 1344k https | avc1.640028 1344k                        DASH video, mp4_dash
185042_yeshardsubbed_ja-JP               mp4  480p       |       https | unknown           unknown                [ja-JP]
192356_nothardsubbed_en                  mp4  480p       |       https | unknown           unknown                [en]
185040_yeshardsubbed_ja-JP-1298          mp4  853x480    | 1298k m3u8  | avc1.640028 1298k
185045_yeshardsubbed_ja-JP-1298          mp4  853x480    | 1298k m3u8  | avc1.640028 1298k
192360_nothardsubbed_en-1300             mp4  853x480    | 1300k m3u8  | avc1.640028 1300k
192361_nothardsubbed_en-1300             mp4  853x480    | 1300k m3u8  | avc1.640028 1300k
192362_nothardsubbed_en-3                mp4  854x480    | 2207k https | avc1.640028 2207k                        DASH video, mp4_dash
192363_nothardsubbed_en-3                mp4  854x480    | 2207k https | avc1.640028 2207k                        DASH video, mp4_dash
185046_yeshardsubbed_ja-JP-3             mp4  854x480    | 2210k https | avc1.640028 2210k                        DASH video, mp4_dash
185047_yeshardsubbed_ja-JP-3             mp4  854x480    | 2210k https | avc1.640028 2210k                        DASH video, mp4_dash
185044_yeshardsubbed_ja-JP               mp4  720p       |       https | unknown           unknown                [ja-JP]
192358_nothardsubbed_en                  mp4  720p       |       https | unknown           unknown                [en]
185045_yeshardsubbed_ja-JP-1798          mp4  1280x720   | 1798k m3u8  | avc1.640028 1798k
192361_nothardsubbed_en-1798             mp4  1280x720   | 1798k m3u8  | avc1.640028 1798k
185047_yeshardsubbed_ja-JP-4             mp4  1280x720   | 3337k https | avc1.640028 3337k                        DASH video, mp4_dash
192363_nothardsubbed_en-4                mp4  1280x720   | 3364k https | avc1.640028 3364k                        DASH video, mp4_dash
185041_yeshardsubbed_ja-JP               mp4  1080p      |       https | unknown           unknown                [ja-JP]
192359_nothardsubbed_en                  mp4  1080p      |       https | unknown           unknown                [en]
185045_yeshardsubbed_ja-JP-2818          mp4  1920x1080  | 2818k m3u8  | avc1.640028 2818k
192361_nothardsubbed_en-2819             mp4  1920x1080  | 2819k m3u8  | avc1.640028 2819k
192363_nothardsubbed_en-5                mp4  1920x1080  | 5436k https | avc1.640028 5436k                        DASH video, mp4_dash
185047_yeshardsubbed_ja-JP-5             mp4  1920x1080  | 5469k https | avc1.640028 5469k                        DASH video, mp4_dash

I couldn't find any free VPNs or Proxies for Australia or New Zealand; I don't think many would provide a free service for those countries, especially because we have essentially nothing of value someone who wasn't from here would want to bypass geo-restrictions to access. Personally, I use ProtonVPN for bypassing geo-restrictions for Crunchyroll and Hidive, but I'm sure there are better deals out there.
This is a bit of a niche extractor, which again, is why I'm surprised there's an extractor at all for it.

@Jules-A I would first like to note that, as far as I'm aware, Animelab is only accessible within Australia and New Zealand. It is essentially Funimation for those regions (they're owned by the same company - well, Crunchyroll is too, but Animelab and Funimation are more tightly integrated).
Put simply, the subtitles are a part of the JP-video version, and they can't be removed. In the English dub version, however, there are no subtitles at all, which is what I downloaded and paired up with the Japanese audio.

I'm from Australia but right now I'm watching a backlog of CR and Netflix dubs but I do plan to sub to AnimeLab soonish.
So does that mean they don't translate stuff like sign posts? That doesn't sound right? If they do, would that even be called a hard-sub?

@Jules-A I would first like to note that, as far as I'm aware, Animelab is only accessible within Australia and New Zealand. It is essentially Funimation for those regions (they're owned by the same company - well, Crunchyroll is too, but Animelab and Funimation are more tightly integrated).
Put simply, the subtitles are a part of the JP-video version, and they can't be removed. In the English dub version, however, there are no subtitles at all, which is what I downloaded and paired up with the Japanese audio.

I'm from Australia but right now I'm watching a backlog of CR and Netflix dubs but I do plan to sub to AnimeLab soonish.
So does that mean they don't translate stuff like sign posts? That doesn't sound right? If they do, would that even be called a hard-sub?

For Wonder Egg Priority, at least, they do subtitle signposts, letters, and such. In the Japanese version, at least. I haven't really watched the English dub for any shows, so I couldn't say whether they subtitle those sorts of things on that version.
The only thing that constitutes whether it's a hard sub is whether the subtitles are burned into the video.

Hey, as @pukkandan mentioned I am the original author of the extractor.
I never expected this extractor to be merged in with a fork 😅 but I'm glad it has found some use.
Indeed it is a shame that the default mismatches video and audio, but luckily my extractor is... verbose enough with the formats that you can somehow wrangle it to be good.
I might be able to fix this however I won't be able to work on it for the foreseeable future. So if someone else is willing to take on the challenge of fixing my code, feel free 😄

@mariuszskon I have a pretty good idea how to fix this. However, due to geo-restriction, I am unable to test the code. If I write a potential fix for it, will you be able to test it?

Hey, as @pukkandan mentioned I am the original author of the extractor.
I never expected this extractor to be merged in with a fork sweat_smile but I'm glad it has found some use.
Indeed it is a shame that the default mismatches video and audio, but luckily my extractor is... verbose enough with the formats that you can somehow wrangle it to be good.
I might be able to fix this however I won't be able to work on it for the foreseeable future. So if someone else is willing to take on the challenge of fixing my code, feel free smile

I can't work on the code myself, but I would like to comment on how extremely effective this extractor is. It has an entire series downloaded in less than 5 minutes - for reference, the Crunchyroll extractor takes closer to 10 minutes, depending on the series, to finish downloading an episode. Of course, I'm sure that has something to do with the way Animelab serves its content, but it's been working really well for me for the past two days I've used it.
Thanks for writing it!

I can't work on the code myself, but I would like to comment on how extremely effective this extractor is. It has an entire series downloaded in less than 5 minutes - for reference, the Crunchyroll extractor takes closer to 10 minutes, depending on the series, to finish downloading an episode. Of course, I'm sure that has something to do with the way Animelab serves its content, but it's been working really well for me for the past two days I've used it.

@LunaGNUisance Sorry for the off-topic but with what args? I was getting issues with stuttering on CR so I switched back to --hls-prefer-native (which stopped working back when I used the original Yt-dl). I've increased the concurrent fragments to 3 (-N 3) which speeds things up a bit I think (haven't timed things and output time is inaccurate) but I'm not sure if going any higher can cause issues.

I can't work on the code myself, but I would like to comment on how extremely effective this extractor is. It has an entire series downloaded in less than 5 minutes - for reference, the Crunchyroll extractor takes closer to 10 minutes, depending on the series, to finish downloading an episode. Of course, I'm sure that has something to do with the way Animelab serves its content, but it's been working really well for me for the past two days I've used it.

@LunaGNUisance Sorry for the off-topic but with what args? I was getting issues with stuttering on CR so I switched back to --hls-prefer-native (which stopped working back when I used the original Yt-dl). I've increased the concurrent fragments to 3 (-N 3) which speeds things up a bit I think (haven't timed things and output time is inaccurate) but I'm not sure if going any higher can cause issues.
EDIT: Just realised last commit enabled native by default so I shouldn't need --hls-prefer-native anymore I think.

@Jules-A Perhaps that issue with stuttering is caused by unavailable fragments? When I download videos from Crunchyroll, I typically end up with up to 5 unavailable fragments, and when I reach that point in the video, it will freeze for about a second and resume, having skipped a second or two of content. A CR episode is typically made up of over 700 fragments, from memory, so I suppose it's not entirely unsurprising that it fails to grab all of them.
I also had issues with the Hidive extractor dropping a significant amount of fragments with mainline youtube-dl (up to 5 minutes worth). I retried the same episode several times that day, but ended up with almost exactly the same fragments being unavailable. I retried that episode about a month later, and I managed to download it without any unavailable fragments. I can only speculate as to what influences fragment availability, because I'm almost certain youtube-dl did not make any changes to the Hidive extractor in that month.
The options I use are nothing special - in fact, the only reason I switched to using yt-dlp is because it included the animelab extractor, so when you mentioned the -N option, I took the opportunity to look through all of the other features yt-dlp adds. There's a lot of neat stuff that I'm sure I'll find useful in the future.
As for the command:
yt-dlp --add-metadata --write-sub --sub-lang enUS --cookies cookies.txt -ciw -o '"'%(title)s.%(ext)s'"'
I'll have to look into the -N option; it seems like it would drastically speed up download time.

You could try UrbanVPN but it's P2P so not sure if it would work or you could try a trial version of something like Expressvpn.
Probably worth noting AnimeLab plans to merge in to Funimation... Zzz... So I don't think AL will be around for very long.

See https://github.com/ytdl-org/youtube-dl/pull/13600#issuecomment-864370773 for why the AnimeLab extractor may no longer be needed.

@pukkandan This can be closed.  The Animelab site will redirect you to FUNimation to login, and doesn't do any streaming anymore.
https://blog.funimation.com/2021/11/02/a-new-anime-era-begins-as-animelab-retires-on-9-december-2021/


feat(#248): start with requirements in disabled test

In this pull I've created unit test as requirements start for #248.
related to #248

PR-Codex overview
This PR adds a new test case passesOnPluralWithSubjectAtTheBeginning to RulePresentSimpleMlTest for plural subject at the beginning, using @CsvSource and @ParameterizedTest.
Detailed summary

Added new parameterized test passesOnPluralWithSubjectAtTheBeginning
Test checks for correct present tense with plural subjects at the beginning
Uses @CsvSource for test data
Disabled test until plural speech detection is implemented

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@volodya-lombrozo please take a look if I'm understand requirements for valid test method name with present tense and plural correctly

@volodya-lombrozo updated pull request. Take a look again, please

@rultor merge

@rultor merge

@volodya-lombrozo OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@volodya-lombrozo Done! FYI, the full log is here (took me 18min)


Fixed an issue in QuorumReader when quorum could not be selected even though 1 secondary and Primary are reachable and in sync

Description
When QuorumReader (used for consistency levels Bounded Staleness and Strong) is not able to select a quorum because it only retrieved a response from a single Secondary. The ReadPrimaryAsync call will fail because the replica set size is larger than ReadQuorum. Any retry there-after should include the Primary - so, that Primary and one Secondary can build quorum - otherwise as long as only one Secondary is actually reachable we can't serve the read operations even when 1 Secondary and 1 Primary should be able to build quorum.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

/azp run java - cosmos - tests

/azp run java - cosmos - spark

/azp run java - cosmos - spark

/azp run java - cosmos - tests

/azp run java - cosmos - tests


Write a service to associate a work item with the selected area

Write a service to associate a work item with the selected area
Task for user story #913

Fixed with #1126


Solve web console authentication problems

Solve incorrect use of antMatcher which was causing web console authentication to fail
Eliminate bug in KeyStoreGenerator which created a new key store even though one already existed

Did you run the formatter on this one @claudemamo ? seems to be missing some liense headers

I'm trying to avoid running the speedy-spotless Git hook because it's messing up the Camel Java DSL indentation. I added the license headers.


Refresh is needed to apply changes in "auto-fetch next segment"

System information:

Operating system (distribution) and version Win 10
DBeaver version 7.0.0

Describe the problem you're observing:
Refresh is needed to apply changes in "auto-fetch next segment"
Steps to reproduce, if exist:

Open a table with several pages in data editor
Scroll to the next page> the next page is fetched
Disable "auto-fetch next segment"
Scroll to the next page

Actual result:
The next page is fetched.
Note: "auto-fetch next segment" becomes disabled after refreshing the table.

It was made to keep performance high. Fetch may occur on any cell paint + checking preference settings for every cell is too expensive.
So, this option, as some other UI/behavioral options, takes effect only after refresh.

We handled this in #8279
Prefs change must work now

verified


The solenoid zero B=0 and Trajectory correction for Dipole Corr. bugs were fixed

If solenoid field is zero we have just a drift. This correction fixes the bug for B = 0. for solenoid bunch tracker. Before, I forgot to put drift(bunch,length) function. Thanks to Austin Hoover for noticing it.
Dipole correctors were missing in the case if they are children of Quad nodes. This situation is present for SNS SCL lattice. Fixed as response to the issue submitted by Fanglei Lin.

@austin-hoover does it look good now?

@azukov Looks good.


Update orca_names.py

Failing tests are probably due to a new version of pytest.

Codecov Report

Merging #17 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           develop     #17   +/-   ##
=======================================
  Coverage     79.6%   79.6%
=======================================
  Files            3       3
  Lines          152     152
  Branches        24      24
=======================================
  Hits           121     121
  Misses          30      30
  Partials         1       1

Impacted Files
Coverage Δ

xorca/orca_names.py
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d40e915...3db767a. Read the comment docs.

Thanks @swantjebastin !


CSS files not loading

CSS files are not loaded in correctly. This can happen becuase of the naming of the file. This update will possibly fix that

Commited cf91bf2

Issue has been resolved


JSON style not printable

I recently printed a spec on paper (I know, "who even does that?!")... the JSON style is too light to show up when printed on black and white.
An example:
https://www.w3.org/TR/payment-method-manifest/#manifest-example
Prints like this:

Ah yeah, backgrounds don't print by default.
What sounds better: me forcing the colors to black on print, or me forcing the background to print via color-adjust: exact;? I'm thinking just flipping to black should be fine.

I'm thinking just flipping to black should be fine.

Agreed.

Black would be great!


Make image src same as url to which image was uploaded

I am looking to use the Amazon s3 url to which i am uploading the image and use it in the image src attribute.
This is how i have modified the uploader code -
/*
	*   Sir Trevor Uploader
	*   Generic Upload implementation that can be extended for blocks
	*/

	var _ = __webpack_require__(2);
	var $ = __webpack_require__(56);
	var config = __webpack_require__(58);
	var utils = __webpack_require__(57);

	var EventBus = __webpack_require__(62);

	module.exports = function(block, file, success, error) {
	console.log("in the uploader");

	  EventBus.trigger('onUploadStart');

	  var uid  = [block.blockID, (new Date()).getTime(), 'raw'].join('-');
	  var data = new FormData();

	  console.log(file);

	  data.append('attachment[name]', file.name);
	  data.append('attachment[file]', file);
	  data.append('attachment[uid]', uid);

	  block.resetMessages();

	  var callbackSuccess = function(data) {
	    console.log('Upload callback called',data);
	    EventBus.trigger('onUploadStop', data);

	    if (!_.isUndefined(success) && _.isFunction(success)) {
	      success.apply(block, arguments, data);
	    }
	  };

	  var callbackError = function(jqXHR, status, errorThrown) {
	    utils.log('Upload callback error called');
	    EventBus.trigger('onUploadStop', undefined, errorThrown, status, jqXHR);

	    if (!_.isUndefined(error) && _.isFunction(error)) {
	      error.call(block, status);
	    }
	  };

	  var url = block.uploadUrl || config.defaults.uploadUrl;
	  console.log(url);
             var xhr;
             debugger;
	  $.ajax({
	    url:"/imageUploadAPI/getImageURL",
         type: 'POST',
         async: false,
         data: '',
         dataType: "text",
         context: this,
         cache: false,
         processData: false,
         success: function(response) {
           console.log('S3 url retrieval successs!',response);
           var returnedURL = response;

             xhr = $.ajax({
               url: returnedURL,
               contentType: 'image;charset=UTF-8',
               crossDomain: true,
               data: file,
               processData: false,
               headers: {'Content-Type': 'image;charset=UTF-8'},
               type: "PUT",
               success: callbackSuccess
             });

         },
         error: function(response) {
           console.log('Error with S3 upload: ' + response.statusText);
         }
	  });
	  block.addQueuedItem(uid, xhr);
	  console.log(xhr,uid);
       xhr.done(callbackSuccess).fail(callbackError).always(block.removeQueuedItem(uid));
       console.log("dfdf");
       return "{ file: { url: '/xyz/abc.jpg' } }";

However the image html looks like this -

Also on printing output by -
       $('.output').text($('.js-st-instance').val());
I got
{"data":[{"type":"image","data":{}}]}

Bump @raffij

The url in the image tag is the fileapi url, never the url from s3. I'm
unsure how the s3 api works, but you'll want to pass that back to the
success method and use it in your block that way.
On Fri, 19 Feb 2016 at 04:14, Rnjai Lamba<EMAIL_ADDRESS>wrote:

Bump @raffij https://github.com/raffij
—
Reply to this email directly or view it on GitHub
https://github.com/madebymany/sir-trevor-js/issues/439#issuecomment-186042766
.

Ok,
Thanks!

Well i solved the issue
in 	*   Sir Trevor Uploader
just alter the callbackSuccess.
Here data is the url you have assigned to the image
`	  var callbackSuccess = function(data) {
var z = {url: data};
var x = {};
x.file = z
data = x;
EventBus.trigger('onUploadStop', data);
if (true) {
arguments[0] = data;
success.apply(block, arguments, data);
}
  };`

Looking at this again you could duplicate the image block and use setAndLoadData instead of setData
This would make it so that when the data is loaded the block is also updated with that content.
https://github.com/madebymany/sir-trevor-js/blob/75c31d0b99da71e46c8bd2334706b6c6016cc6e6/src/blocks/image.js#L38
I might make it do it by default.


COMP: Correct continuous index type

Support when the interpolator precision is a different type than then
transform precision type.

@blowekamp Looks like you placed your template instantiations within the existing unnamed namespace of the test. GCC and Clang don't seem to like that (https://open.cdash.org/viewBuildError.php?buildid=5890808):

error: explicit instantiation of 'class itk::ResampleImageFilter<itk::Image, itk::Image, float, float>' in namespace '{anonymous}'...

For IndexRange, I placed the tested template instantiations outside any namespace. That appeared to work fine, for any compiler:
https://github.com/InsightSoftwareConsortium/ITK/blob/v5.0rc02/Modules/Core/Common/test/itkIndexRangeGTest.cxx#L26
Maybe you should do the same for ResampleImageFilter.


Don't move cursor at the end when populating the diagnostics panel

When the diagnostics are populated the cursor in the panel is moved to the end. See here.
Is there a reason for this?
Because I can't use the f4 keybinding to goto the next result when it is opened.
Instead I need first to press the shift + f4, which is the backward direction.
Here is a simple solution.
     def run(self, edit, characters):
         self.view.replace(edit, sublime.Region(0, self.view.size()), characters)

-        # Move cursor to the end
+        # Clear the selection
         selection = self.view.sel()
         selection.clear()
-        selection.add(sublime.Region(self.view.size(), self.view.size()))

Unsure, the change was never explained by @rmccue in https://github.com/tomv564/LSP/pull/91
Feel free to open a PR to remove it, maybe we'll find out why soon!


Refine Helm chart and enhance payment processing for ACK use cases

Upgrade Helm dependencies for better stability in ACK environment
fix payment problem to improve reliability

 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.bupt_rain seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


postgresql service: remove redundant services.postgresql.package option

Things done

Built on platform(s)

[x] NixOS

[x] Tested execution of service
[x] Fits CONTRIBUTING.md.

This is no longer needed now that system.stateVersion is available.
If a customized version of postgresql is needed, then it can be
specified with the usual packageOverrides mechanism:
  nixpkgs.config.packageOverrides = super: {
    postgresqlXX = super.postgresqlXX.override { ... };
  };

where XX is the postgresql version corresponding to the value of
system.stateVersion in use.
Similarly, old versions of postgresql can be specified with postgresqlXX = super.postgresqlYY.

So after this change, the user that would want to change the package to say, postgresql92 would need to:

Read the source code of the NixOS module to figure out what attributes the module is using in the first place.
Carefully pick which one of the postgresql95 or postgresql94 should be overridden, depending on their stateVersion.
Whenever the user wants to upgrade their stateVersion for whatever reason, re-do steps 1. and 2. to make sure their override applies to the correct package. Not redoing those steps risks that the service silently starts using the default version for that stateVersion.

On top of that, now we have the confusing situation that (say) pkgs.postgresql94 is referring to some other version of PostgreSQL than 9.4, also leading to things like pkgs.pgpool94 being silently compiled against some other version of PostgreSQL than 9.4.
How is this an improvement in any way?

Given that PostgreSQL does not really support automatic upgrading, I don't think this is a good idea at all.
IMHO it is best practice to always pin your PostgreSQL version explicitly to one particular version, and that choice should not be changed based on stateVersion or whatever.

In addition to the previously listed problems:

This will cause a massive rebuild if you change the PostgreSQL version, because stuff like Qt and KDE depend on PostgreSQL.

It's long been on the to do list to make the postgresql service (and others) support multiple instances, in which case it would be desirable to be able to do:

services.postgresql.instances.production = {
  package = pkgs.postgresql94;
  ...
};
services.postgresql.instances.test = {
  package = pkgs.postgresql96;
  ...
};


Interpolating gcp_credentials_json for GCP provider

Probably because I'm bad at bash, but I had a tough time getting gcp_credentials_json to interpolate. Assuming your creds JSON is in an env var named GOOGLE_CREDENTIALS, this is how you do it:
bosh create-env ~/dev/bosh/workspaces/bosh-1/bosh.yml \
 -v gcp_credentials_json=\'"$GOOGLE_CREDENTIALS"\' \
...

I'm working on docs for all of this on GCP and will include this there.

@evandbrown i typically end up clicking download button from portal and use --var-file gcp_credentials_json=~/Downloads/something.json. alternatively you can use env vars directly:
export BOSH_gcp_credentials_json=$GOOGLE_CREDENTIALS
bosh create-env ~/dev/bosh/workspaces/bosh-1/bosh.yml ... --vars-env BOSH

Ahh, --vars-env. Brilliant! Thanks, @cppforlife.


Refactor table to re-usable DataTable

Description

Currently tables in the front end are complete code mess, a lot of duplicate and not so readable codes.
We need to refactor the tables completely to follow a structure and to ensure it is re-usable.
Tests related to tables will have to be re-do later.
Possible Implementation

Implement
https://github.com/gregnb/mui-datatables
Out of scope

N/A
Requirements / Restrictions

N/A

Please add your planning poker estimate with ZenHub @luigibesani


New package: PdFiles v1.0.5

Registering package: PdFiles
Repository: https://github.com/PaulDepping/PdFiles.jl
Created by: @PaulDepping
Version: v1.0.5
Commit: 20b36afdc8c6c5f7bc5f2f493eca5c50d26890ce
Git reference: HEAD
Description: Functions to Implement overall better Filehandles

Superseded by #57376


[PRW 2.0] (rc.1) Breaking change of io.prometheus.write.v2.Request for Receiver convenience.

See rationales in https://github.com/prometheus/prometheus/pull/14330
Sucks to make breaking change, but I just merged the rc.0 a few hours ago, so I think it's fine. If it would be weeks we would probably NOT do this change.

You increased the version, so all good
Sent by mobile; please excuse my brevity.
On Fri, Jun 21, 2024, 14:18 Bartlomiej Plotka @.***>
wrote:

See rationales in prometheus/prometheus#14330
https://github.com/prometheus/prometheus/pull/14330
Sucks to make breaking change, but I just merged the rc.0 a few hours ago,
so I think it's fine. If it would be weeks we would probably NOT do this
change.
You can view, comment on, or merge this pull request online at:
https://github.com/prometheus/docs/pull/2481
Commit Summary

265f5f3
https://github.com/prometheus/docs/pull/2481/commits/265f5f3c07cd551e1435bae5573b0e60caf47b0a
[PRW 2.0] (rc.1) Breaking change of io.prometheus.write.v2.Request for
Receiver convenience.

File Changes
(1 file https://github.com/prometheus/docs/pull/2481/files)

M content/docs/specs/remote_write_spec_2_0.md
https://github.com/prometheus/docs/pull/2481/files#diff-96ecf8baafc457cb657d6aac6fd2be038c288531ea665242f35b23c27138d5f1
(17)

Patch Links:

https://github.com/prometheus/docs/pull/2481.patch
https://github.com/prometheus/docs/pull/2481.diff

—
Reply to this email directly, view it on GitHub
https://github.com/prometheus/docs/pull/2481, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFYII6TSJLF6WNP2MEPGITZIQK2ZAVCNFSM6AAAAABJVYXIQKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3DMNBSGY4TSOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Accounts feature initial commit

Added support to login and switch between multiple pre-made (hard-coded) accounts with ID, username, and starting balance.
Added populateAccounts() and login() methods.

Closing


Callback for  maybe add an on:in and on:out for this component?

I have an animation I want to play when  enters the slide. Is it possible to have these events so I can assign callbacks to them?

I might look into it.


speling

Hmm... looks like my spell checker isn't working anymore on markdown... doh!  Thanks for the corrections!

I just ran it through aspell. Worked great.


Using external library inside a contract

I'm trying to verify a sign using OpenSSL verification, but I cannot use an external library from my contract (wasm). I see there are some support for SHA in the EOS's crypto library, but is there something similar for RSA? In other case: Is there a way to using an external library from a contract?

same question

You have to build the external library using wasmsdk and include that in your contract. In many cases this will mean modifying the external library's sources and build scripts to make it compatible. It'd be like porting between incompatible operating systems.

Write your own RSA functions.
Find a header only RSA implementation or one you can include the source files into your source file.
Compile existing RSA library and link with wasm, see https://github.com/EOSIO/eosio.wasmsdk


Fix lints

This touches a large number of files, but I believe it's necessary as part of our tech debt cleanup. There are so many functions littering the codebase where:

We have unused parameters and they should have been refactored away, but they weren't
We have unused parameters and they should be named according to proper Go conventions (e.g. in interface implementations where a particular function signature is required, but the variable names should either be left out or _ when unused)
We have redundant code (a whole bunch of redundant if statements and error checks, for example)
We use bad naming conventions for variables, like copy or len

I'm also tired of having the linter fail locally. And if we don't do this, it will all just rot even more.
This PR targets main, but should be applied across all the backport branches (which will, of course, require some conflict resolution, but I'm fine with doing that). I've left TODOs in some places where changes need to be made in follow-up PRs.
Commits are organized by package so that it's hopefully easier to review.
If you pick up on formatting changes, please see #604.

PR checklist

[ ] Tests written/updated
[ ] Changelog entry added in .changelog (we use unclog to manage our changelog)
[ ] Updated relevant documentation (docs/ or spec/) and code comments

One thought: since this is strictly refactoring, is it worth your time backporting it to other branches?

If we don't, our local linter's going to fail when linting those branches, so I think I'll have to backport this.


Why do you input grad & params into metaoptimizer?

In line 81 & 135 of meta_optimizer.py
Why do you input grads & params (and loss as well in line 135) into metaoptimizer?
Did you try with & without, and one version worked better? In 1606.04474, they seem to just input grads into metaoptimizer.

Hi @ethancaballero, I was hard to reproduce results from meta optimizer papers so at some point I just gave up and shared this code just as an example of how it can be implemented in PyTorch.
Meta optimizers are very slow so I didn't validate any design decisions properly.


Cannot set preference to launch Nylas Mail on startup

Hi,
I'm running Nylas Mail 2.0.14 on KDE Neon 5.9. As you can see, there's no option to "launch on startup"

(I have libappindicator1 installed).
I tried to manually add a desktop file in ~/.config/autostart/ using --background option, but it resulted in two different instances

and one of them (the one launched at startup) is running in dev mode:

Do you have any idea? Thanks in advance.

Unfortunately this option is not available on our Linux build. You could do this manually depending on your environment.
Thanks!

Yes, I tried to manually launch Nylas Mail at startup by creating a desktop file in ~/.config/autostart, but as I wrote it resulted in multiple instances.

Same problem here. It worked well before the new version.

@jstejada commented:
Unfortunately this option is not available on our Linux build. You could do this manually depending on your environment.

What is this?


Fix spark inconsitent dataset naming

https://github.com/OpenLineage/OpenLineage/issues/3284 -> not sure if this will help, but definitely the naming logic should go through PathUtils in those cases.

It seems to solve the problem, at least the one described in the issue. Thank you @pawel-big-lebowski for the quick fix !


'class MatrixPanel_I2S_DMA' has no member named 'drawPixelRGB565'

Hello,
I'm using ESP32 and 64x64LedPanel
In the AnimatedGIFPanel exemple I'm getting this error while compiling
All other examples works well.
Can anyone explain to me what am I going wrong?
Thank you
C:\Users\wwwru\AppData\Local\Temp\arduino_modified_sketch_717407\AnimatedGIFPanel.ino: In function 'void GIFDraw(GIFDRAW*)':
AnimatedGIFPanel:98:14: error: 'class MatrixPanel_I2S_DMA' has no member named 'drawPixelRGB565'
dma_display.drawPixelRGB565(x + xOffset, y, usTemp[xOffset]);
^
AnimatedGIFPanel:126:14: error: 'class MatrixPanel_I2S_DMA' has no member named 'drawPixelRGB565'
dma_display.drawPixelRGB565(x, y, usPalette[*s++])
exit status 1
'class MatrixPanel_I2S_DMA' has no member named 'drawPixelRGB565'

Change the name of the function called to 'drawPixel'.
I'll have to update the example.

Change the name of the function called to 'drawPixel'.
I'll have to update the example.

Thank you or your quick reply and great work Sir,
It's working now


Update Releases page to include latest release

New release was published 2 days ago.
Assuming, a major version bump for @radix-ui/react-select includes a breaking change, please update Releases section of the docs to include migration guide and release notes.

Also select docs still showing for 1.2.2 version

@Flickwire
https://github.com/radix-ui/primitives/pull/2174

Looks like @radix-ui/react-dialog also has breaking changes in latest release 1.0.5 (see #2423, related issue https://github.com/shadcn-ui/ui/issues/1644). Would greatly appreciate updated logs and breaking change notice.

Apologies, it looks like we missed the changelog for that latest public release, I will fix this now.
Thanks for raising!


Skyline: support the use of "D" and "T" (Deuterium, Tritium) in molec…

…ular formulas and adduct descriptions, as these are in common parlance for small molecules

This isn't as ready as I thought - I tabled it some months ago, but another request came up so I dusted it off thinking it was good to go. Clearly not the case, a few tests are failing. Closing the PR for now.


Support for bulk operations and queries (solving the N+1 problem)

Preflight Checklist

[X] I could not find a solution in the existing issues, docs, nor discussions
[X] I have joined the ZITADEL chat

Describe your problem
we require those operations in order to avoid the N+1 problem when scaling our userbase:

get multiple users by ids or username

where id IN [ids]
solved by #6210

get multiple users by metadata field
where metadata["legacyId"] IN [legacyIds]
get multiple users by ids or username or metadata field (in the same request)

where id IN [ids] OR metadata["legacyId"] IN [ids]
OR supported by https://github.com/zitadel/zitadel/pull/6361

get metadata of multiple users at once
or preferably include the metadata in the User object from the API via a IncludeMetada flag in the request
get roles of multiple users at once for all/specific projects
by default it should select all projects that are visible to the service account
(optional if the first 5 are implemented) List all users in an organization, for the ability to sync with meilisearch/algolia instance
(optional if the first 5 are implemented) have an action that is able to sync user updates with meilisearch/algolia instance
Bulk import users and include the metadata/roles in the import request

Describe your ideal solution
As a developer, I want to be able to query a lot of users fast, instead of the current API which requires us to send a request for every user, since it doesn't scale in terms of cost and performance.
Version
v2.30.0
Environment
ZITADEL Cloud
Additional Context
No response

Hei @ahmednfwela
Thanks for creating the improvement issue.
I think everything you described is a valid point and I can see the use case for it.
We do not yet have a timeline on when to implement it, so I will put it into the product backlog for now.
If you need it more urgent we also appreciate and accept PR, if you are interested in contributing some of the functionality.
For the Bulk import there is already another issue: https://github.com/zitadel/zitadel/issues/5524

@hifabienne I will be creating some small PRs to address these points one by one, I appreciate your assistance, Thanks!

Hei @ahmednfwela Thank you very much. We really appreciate your contribution

This issue currently mentions many specific bulk queries. Alternatively, GraphQL support could be added in Zitadel so bulk queries (including those explained in the description) can be specified generically. There is an existing Go GraphQL package. Would this solution be acceptable too?

I am not familiar with graphql and I am not sure how will it integrate with the grpc model.
but if there is a better solution , I am up for it

I think it doesn't really matter if it is GraphQL or not, as graphQL isn't really about bulk operations, but about generic input/output.
For the moment i think we will stick to grpc and rest, as GraphQL would add a lot of complexity to maintain.
Of course there would be the possibility to make a separat GraphQL project which mappes the requests to the current API.

In order not to overload review capacity, we should consider each and very point of the original proposal separately, before a PR is send. For example https://github.com/zitadel/zitadel/pull/6361 review process took too long IMO, because there was no clear consensus on the API change prior to implementation
Filtering on metadata

get multiple users by metadata field
where metadata["legacyId"] IN [legacyIds]

Concerns me. We don't have an index on metadata keys. We could add one, but that has a price too of longer write locks in CockroachDB. This would create issues where an action would update metadata (which pushes to the eventstore) and we use Trigger to update the projections before we can continue serving the request. At the moment Triggers are the most expensive components in zitadel when measuring request times.
I'm not saying it's bad, but we have to consider if it's worth paying the performance price if only 1 of few people need it. Can't your problem not be solved otherwise?
For example, why metadata with a legacyID if you can create users with your own ID  already?
Request Body required
|- userId optionally set your own id unique for the user
|- Possible values: non-empty and <= 200 characters

Bulk

(optional if the first 5 are implemented) List all users in an organization, for the ability to sync with meilisearch/algolia instance
....
Bulk import users and include the metadata/roles in the import request

Dealing with large chunks of data in Unary grpc calls is painful, as the whole result set needs to be allocated in memory, which then has to be garbage collected after completion. I've opened https://github.com/zitadel/zitadel/issues/6686 for the v2 API to propose a streaming API for the import and export purposes.
We already have some import and export functionality , but that uses complete chunks and the API isn't the most future proof.
Metadata on user object

or preferably include the metadata in the User object from the API via a IncludeMetada flag in the request

yes, completely agree. As a matter of fact I'm currently optimizing the introspection and token endpoints and one thing that bugged me is all the separate queries that are happening. First there's a GetUserByID, then there is a GetUserMetadata. I'm in the process of rewriting that in order to resolve all user related data in a single query. This change would benefit towards the usecases in this PR as well, I hope.

I've opened https://github.com/zitadel/zitadel/issues/6686 for the v2 API to propose a streaming API for the import and export purposes.

what we need isn't just an initial export/import of the data, we also need a live stream of users that have been added/changed/deleted in order to do live sync with the database.
if that is available, then we don't need to mess with zitadel's API, since we can just use our own indexing solution.

Adding a use case that could largely benefit from the proposal of 1) including metadata in the users search or users grants search endpoints; 2) making queries on user metadata to fetch a list of users.
We are using Zitadel to host our multi-tenancy infrastructure. Our customers can import their contractors into our system and we hold these contractors in Zitadel. The customers are asking us if we can provide a source where the contractors were imported from, because we support multiple vendors from where our customers can import the contractors, so our customers can distinguish which contractor comes from which vendor.
User metadata is an obvious place to store the source info even source id, etc. However lacking metadata in Users list (we've experimented with fetching by a Service User via /users/grants/_search and /users/_search) creates a major blocker when we show a list of contractors to our customers. To find out the source of the contractors, they'll need to view contractors one by one.
Currently we're depending on another micro-service to store the metadata and attach the info to the list when queried. This workaround doesn't hold strong for the long run and it'll be really nice to solve it totally within Zitadel.


Enhancement:The overall look of the extensions

Saw the html for calculator code if possible i would love to enhance it.Also deployment links can be added so that we can view the codes easily.
If Possible i would love to work on this.

Please use the feature request template for raising the Issues

Please use the feature request template for raising the Issues

oh ok i actually did not feel like it fit into that category should i close this then?

For now, I will close this.
Feel free to open new issues using feature request.


The visualizer breaks on JSON.stringify calls when there are circular references in machine definition

Description
Quite often we have a hierarchy of state machines (e.g. parent-child relationship) where by the nature of definition there are circular references. In such cases, the call to JSON.stringify throws an error.
Expected Result
The visualizer is able to visualize parent-child state machine relationship.
Actual Result
An error
Suggestion
Replace the JSON.stringify calls with a safe alternative e.g. fast-safe-stringify

Could you showcase how have you created a circular reference between parent and a child in their definitions?

Make sure to look at #1151 @Andarist. I'm unsure if we're seeing the same issue but I believe this might be related to service.machine being a different object after initialization?

Could you showcase how have you created a circular reference between parent and a child in their definitions?

Guess what, the xstate update to 4.13.0 did solve my particular issue (well done, guys!), but there could be others like the one opened by @Blacktiger . You still need to remember that the JSON.stringify(whatever) is inherently unsafe and will throw an error once a cycle is detected, and there could be probably 1 000 000 ways to create a cycle in an object graph ...

I understand that the JSON.stringify is unsafe when it comes to cycles but to solve this properly I really feel that we'd have to get a valid repro case first. It seems quite unusual to me at this point to get into a situation with cycles when usually you just write configs inline and I'm not sure what part of the schema could reference another one? I understand that you had to land somehow in such a situation but it would be of great help if I would understand how.

The cycles caused by XState are indeed solved in 4.13.0.
Cycles caused elsewhere need to be handled somehow.

The cycle issue wasn't fixed in my case on 4.13.0 (though I did find a workaround for the issue).

I'm on v4.13.0 of xstate and started having a circular reference issue when using @xstate/inspect (v0.2.0). The issue happens when I have another window object as part of the context for a machine. Typically I'm using a port for channel messaging but for backwards compatibility in certain cases I use the source window object from MessageEvent. I know I can slim down the window object I'm adding to the context to avoid the error to just the properties I really need but that's how the error was occurring for me.

I'm also on v4.13.0 and I was passing a hierarchical data structure in an event payload and getting "TypeError: cyclic object value" until I commented out the call to inspect.

On xstate 4.14.0 and inspect 0.2.0. Getting the error for certain machines, but not all. Error only occurs when inspecting the machine.


About the CPU memory problem.

At line 149 of the engine/trainer.py which is the compute_feature function, I found the detach operation causes memory problem of CPU. I notice you have tried Cuda, but after I use Cuda the memory problem(Cuda memory) is still there. I wanna know how I can fix it.

It just got killed by the system and I checked out the memory of CPU (top -p pid). I found the memory consistently improved until it reach 100% then it got killed.

It costs about 40~60G CPU memory. If you do not have enough CPU memory, you may first extract features for images of a ID, then conduct the clustering, and do the above for another ID. But this will cost a lot of time.


Skip out of ScalaRunTime.wrapRefArray, ScalaRunTime.wrapIntArray and cie

def foo(xs: String*): String = ???

foo("a", "b") // <= step into goes in ScalaRunTime$.wrapRefArray(Object[])

We should skip all the wrapArray methods.

This one has been completed in #539


enable editing only for profile field in User document

Hi, how to enable editing only for profile field in User document?
this is not working
Users.permit(['update']).onlyProps('profile').ifOwner().apply();

What do you mean by "not working"?
What is the definition for ifOwner?
I'm assuming you aliased Meteor.users as Users?

yes, Users = Meteor.users
ifOwner is ok
i got permission denied when i am editing property of profile object for example profile.firstName

You may have to use the Security.permit syntax:
Security.permit(['update']).collections([ Meteor.users ]).onlyProps('profile').ifOwner().apply();

Or trying putting the security pkg before the accounts packages in .meteor/packages.
Also, the security you're trying to define is the default security that the accounts package sets up, so technically there should be no need to do it again, though it should work.

thx, man ill try it!


Chat communication

Hi!
I've created a slack chat to communicate.
You can join with this link:
https://join.slack.com/t/de-reactjs/shared_invite/enQtNTYwNjk2OTkyOTYxLWMxNzg0N2M3YmJlNjU5NzU0NTFkNDgzMTkwZmFmOTc5ZmI3YjQ4MGQ5ZTM4OWNkYWQ5MDVhZTQ3N2QzNTU0YzY
Or should we use something like discord or gitter?

I am happy with slack.

If you go to https://isreacttranslatedyet.com/ and scroll to the bottom it says:

We also have a Slack channel!

Isn't this the official Slack channel? I already created a channel (#de) yesterday :)

@markus-willems Oh cool! Let's use that!

i have added it to the readme, so that it is available for everyone quickly


Knowledge management strategy (writing) Q2

$100 each to

Stephen
Ayo
Onize

on delivery of a draft, on or before 19th July 2024
Initial notes for all 3 strategies are here https://docs.google.com/document/d/1eHe5PmGPpjlX7VpCxQECOHwXDEl5RRnQ1jVyUhus1tg/edit?usp=sharing

Draft Knowledge Management Strategy
https://docs.google.com/document/d/1yo9MuYSA_4ZOkMH2KJibUu6C7tlzHFe9e4YC7mvVl6g/edit?usp=sharing

Split contribution budget as follows -
Ayo - 50
Onize - 50
Stephen - 200

I found out that there was a pending sharing formula discussion for our draft group between Ayo, Stephen and I. I am okay with the $200 to Stephen and $50 each to Ayo and I, Ayo and I Ideated, while Stephen wrote the draft.
The formula is fair to me, Stephen suggested , Ayo agreed and now I following up that I agree too.

After discussion, Onize says she didn't contribute as much as she would have liked, so maybe $50 is too much
To be discussed with Stephen and Ayo before making any decision on it.
Onize: If everyone feels it's to much then OK


Gap 4.10.x branch and fix https://trac.sagemath.org/ticket/30883#comment:4

…ff6"
This reverts commit bf24ea498919a6aad8dddaaede3767435d66a8bc, reversing
changes made to 284929e4cb001d8ed97cfa8ce031fd1277af660b.

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, rerender


Some changes and some issues to properly monitor a cluster.

Hi,
I made some adjustments to cover a cluster.
Actually, Displey Name overrides and some query tweaks for the single nodes, see attached screenshot.
I don't seem to be able to properly change the label of the storage bar char (showing all of the sotarges of all the three nodes)
The labels now are as follow:
"pve monitoring pve-cluster Ceph-NVMe2TB"
....
I'd like to get something like
"node - Ceph-NVMe2TB"
probably vertically to show all the label.
Is there a way to achieve it?
Thank you.

could you share how you fixed this dashboard for cluster usage?

Hi, here you should find my latest version.
I'll check if it's actually the latest, it should be: https://github.com/urbaman/HomeLab/tree/main/Kubernetes%2FPrometheus-Stack%2FProxmox-Monitoring%2FProxmox-Grafana-Dashboard


Public Map Static View [WIP] [skip-ci]

This PR fixes #12867.
Related Issues

[x] Open visualization endpoint to anonymous users #12908
[x] Add related canonical visualization to vis endpoint #12910
[x] Add 'more_visualizations' to vis endpoint #12931
[x] Add hubspot form newsletter id to /me endpoint request #12932
[x] URL generation #12993

Others

[ ] Catch visualization endpoints #12989

Steps

[x] Header - Tested
[x] Map - Tested
[x] Navmenu - Tested
[x] Disqus
[x] More maps section - Tested
[x] Datasets in use - Tested
[x] Footer - Tested
[x] Merge Protected map options -> Milestone https://github.com/CartoDB/cartodb/milestone/149 (Doing)
[x] Meta tags

Fix

[ ] Export map -> unknown error
[x] Datasets product issue (blocking) #13016
[ ] Disqus & hubspot not working on staging

I'm concerned about the meta tags in the public maps. We're currently building the meta tags in rails, which means that we've this information in the template when the page is rendered because the server displays it.

However, now that we're building static pages and we've to wait to get the data from the server by using a HTTP request, we won't have this information until the request is finished and the page is loaded. I've added the meta tags related with the user information because I want to ask if this is a good approach or if we've to do something else.
As we can see here, we're also setting Facebook and Twitter meta tags, which I guess are for marketing purposes. I'm afraid this won't work if we add the meta tags dynamically.

public map page:
https://github.com/CartoDB/cartodb/blob/fbf3bce8cdffbd3e67151d7b7042dd194e7909f4/app/views/admin/visualizations/public_map.html.erb#L3-L8

meta tag helper:
https://github.com/CartoDB/cartodb/blob/master/lib/static_maps_url_helper.rb

my current solution: StaticHeaderMetaTags

https://github.com/CartoDB/cartodb/blob/9bc0423f2623d6b9e11de358116dabe4d83a2409/lib/assets/javascripts/cartodb/public_map/index.js#L66-L71
I'd like if we can talk about this issue, so I can continue with this :) Thanks!
/cc @nobuti @javitonino @juanignaciosl

First of all, we need to set how important is to keep those metatags. If we need to keep them I don't think there is another option but to generate them in the same process where we generate the base .html file. That'll mean that we cannot go all in serving only static htmls.
One question, do we have any endpoint to retrieve those metatags?

First of all, we need to know if keeping those metatags are mandatory (I think they are). In that case, I think there's no other option but to generate them in the same process we build the base .html file. That'll also mean that we cannot go all in for serving only static files.
One question, do we have any endpoint to retrieve those metatags?

One question, do we have any endpoint to retrieve those metatags?
Not explictly, but it's just composing URLs, and the base information for that should be already available. It should be a matter of moving the code that composes the URl to JS.

First of all, we need to know if keeping those metatags are mandatory (I think they are).
I think we must keep them. Some of them are used to generate pretty fb posts/tweets (show a thumbnail if you include a CARTO link). I don't think twitter/fb executes JS in order to process that.

There are also some for search engines. I know google does execute JS in their crawler, but I don't know if that applies in order to have meta tags, or only to content.
If we need to keep the tag, it means we cannot have fully static embeds nor public pages 😱. We could provide the static page as an option, with the caveat that meta tags won't work. And in our envs, we should keep generating them in rails.

Google DOES crawl dynamic content https://www.stephanboyer.com/post/122/does-google-execute-javascript I'm not sure about the dynamic metas though
for sure it is a huge change going from server rendered markup to client rendered markup, that we'll have to measure, thus the progressive rollout and the featureflag (that means, involve MKT in the release process)

I find your solution super clean, I was just changing the title dynamically before https://github.com/CartoDB/cartodb/pull/12749/files#diff-32c110e949af1e34fbf649ca1e6f232cR45
I prepared this taking into account that at some point we could move to server rendered markup (but in js!)

Okey, then I'll add the meta tags provisionally in JS, and I'll ask someone from marketing when moving this PR to acceptance.

great move!
On Fri, Oct 20, 2017 at 12:49 PM, Elena Torró<EMAIL_ADDRESS>wrote:

Okey, then I'll add the meta tags provisionally in JS, and I'll ask
someone from marketing when moving this PR to acceptance.
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
https://github.com/CartoDB/cartodb/pull/12928#issuecomment-338173508,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACPRPH2ytbr4qacOD9APag-TQgOFWT6ks5suHrXgaJpZM4Py8Gj
.

--
Carlos Matallín
UI developer
CartoDB—Map Your World's Data
Plaza de Callao 4, 2 28013 Madrid
T: +34911165823
W: www.cartodb.com
Live sessions to learn CartoDB http://cartodb.com/webinars/

I think the branch can point to master already

"Export map" not working (this is something I didn't manage to fix when I started with this page)
TypeError: this.publicMapView.createVis is not a function. It has to be changed to this.publicMapView._createVis https://github.com/CartoDB/cartodb/blob/12867-static-public-maps/lib/assets/javascripts/cartodb/public_map/public_map_window_static.js#L210
TypeError: this.publicMapView.invalidateMap is not a function. It has to be changed to this.publicMapView._invalidateMap https://github.com/CartoDB/cartodb/blob/12867-static-public-maps/lib/assets/javascripts/cartodb/public_map/public_map_window_static.js#L214
We can remove public_header.css from webpack files, it shows an error in the console and it's not necessary

Acceptance
There were some big problems found during acceptance. I tried to identify common trends and join them in related items, to avoid having the same thing written 4 times. Next accepter should do everything again.

Logged in as owner (org). Link to "Edit in CARTO" points to /tables/uuid. I think it should point to /viz/uuid.
Logged in as owner (org). Map doesn't render in organization pages. The vizjson URL is missing the /u/username part.
Logged in as owner (org). Create a public map with one private dataset. In the public page, you get "1 1 dataset" (double 1).
Logged in as shared user (org) In the sharing page (share it with another org user) you get an empty dataset section. Remember that if you share a dataset with a colleage in the same org, the other user will see the visualization public page. There seems to be some bugs related to that.
Weird styling after accessing a password protected map, with dark background instead of the electric blue top bar or standard white.

Unable to export password protected map. This is also a bug in classic views. https://github.com/CartoDB/cartodb/issues/13097. I think we can ignore it for now.
When not logged in, the like button is displayed but doesn't work. Also in classic views: https://github.com/CartoDB/cartodb/issues/13098
The footer (newsletter subscription) does not appear.

All issues but the export related one have been fixed. @elenatorro could you take a CR round?

Everything seems fine to me, except that I am not able to "like" a map. It does the like request fine, but it gives me the following data:
{
  id: "c232724d-e0ef-44d6-9d77-1f29820b28d3",
  likes: 0,
  liked: false
}

I have tried this with a different user (logged) than the map`s owner user. Maybe I am doing something wrong and the map is not likeable. I think this is not related with #13098, but I would like to be sure. Thanks!

The issue above also appears in staging cc @CartoDB/backend

Question about, public map and private visibility. It works ok, but it is displaying a static html served by Rails, is it true? is it ok?

So, I've found two important things in the first tests:

When you set a map as private, Rails serves the embed-error page.
When you set a map as protected, the protected form doesn't appear, if you are logged (not incognito) the public-map view appears. If you try that /public_map url in incognito, it redirects you to the login view.

Ready for another round!

This is for me! First thing tomorrow morning.

Looks good for me, moving it to acceptance then.

Hey, looking amazing guys, just a few things and a problem I'm suffering from sessions:
### Map owner

Password form will not be displayed due to the user is the owner and the map will be shown directly.
Like button works, but the answer says always liked: false, is it ok?
I'm wondering if the style of the dataset info "hours ago" is ok.

Logged User (not the Map Owner)

I can't log in with other "same staging user" and visit any public_map as logged. Just out of curiosity, because I feel it is a problem with the server itself, not sure, maybe @juanignaciosl or any backend could help us here, situation:

Logged user A in staging X.
Create a map and publish it.
Open incognito tab.
Logged there with user B, in staging X too.
Visit map from user A in /public_map URL.
B user doesn't appear logged :S.

Not Logged User (not the Map Owner)

I feel it is not necessary to test all the checks on the private map because you can't visit it 😬 .
If you are not logged, the user can't export the visualization. It is ok, but error state doesn't appear. Does it make sense to offer that possibility if the user is not logged?

I can't log in with other "same staging user" and visit any public_map as logged.

That should work. I just checked it at ded11 and it does.

Maybe a problem with ded10 server?

Maybe a problem with ded10 server?

I don't think that any "server problem" could make sessions not working. Deploy master and/or disable the FF and try. If it works (it will likely do) it's caused by the code.

we have ded10 squatted

@juanignaciosl, I have checked without the FF and it is happening the same...

@xavijam did you try with master?

@juanignaciosl Nope, asking for it right now!

@juanignaciosl, tested with master in ded10 and it doesn't work either.

Either I'm not understanding something or the test was wrong. I just tested this: I logged in with j-ded10 and visited j-ded-10-admin profile page, and I was logged in, both at public profile...

... and public map:

Am I not testing the same case?

Hum... I used jtorres-ded10 and your j-ded10 user and it is working either :S.

Maybe that user is cursed! 😱

I just tried, logged in as j-ded10, and both https://jtorres-ded10.carto-staging.com/me and https://jtorres-ded10.carto-staging.com/viz/617cbf30-41e3-407c-bc1d-78d69546f59a/public_map show a valid dropdown for a logged user.
Do you get any JS error?

No, I tried in the other way around.

In a browser, jtorres-ded10 created a map.
In other browser, j-ded10 user logged, visited the jtorres-ded10 map.

Password form will not be displayed due to the user is the owner and the map will be shown directly.
We "trust" in the data returned by the api. In this case, the api tells us there is no error, and the visualization is ready to be visualized. Also, it kinda makes sense that you don't have to insert the password for your own maps.

The issue with the export is only present with protected map: #13097. Tonino mentioned that we can ignore it for now.

@nobuti 👍

Session problem was due to a mystery problem with Incognito, but solved using another browser, so 💯 , thanks @juanignaciosl and @nobuti.
Also the like stuff is working properly now 💃 .
I've only found a problem being logged (and not being the owner) and it is trying to export the .carto. A JS error appears:
TypeError: null is not an object (evaluating 'c.focus') -> export_map_view.js:31 (Tested in Safari)

Fixed.


Add Açores/Azores ? Add Îles de la Manche/Channel Islands ?

I read this in a post from 2008.
Açores (POR) Azores (POR) AZ AZO
Îles de la Manche Channel Islands IA IAN

Thanks, but this data is coming form ICU database, so that's where you should report issues. This just converts it to other formats.


bump @rollup/plugin-node-resolve

Works around  crash in workbox-build

Fixes this crash: https://github.com/oven-sh/bun/issues/6302#issuecomment-1804828007

Fixes the problem for me

@rotu can you check with latest v0.20.0? workbox 7.1.0 using @rollup/plugin-node-resolve ^15.2.3
superseded by #707


Brew commands related to neovim failing (OSX 10.11.6)

I get the same output for gist-logs, install, uninstall, etc.
$ brew gist-logs neovim
Error: /usr/local/Library/Taps/neovim/homebrew-neovim/Formula/neovim.rb:35: syntax error, unexpected <<, expecting keyword_end
<<<<<<< 4ff79670840121e4b7048acd760d3812d82a076d
  ^
/usr/local/Library/Taps/neovim/homebrew-neovim/Formula/neovim.rb:45: syntax error, unexpected ===, expecting keyword_end
=======
   ^
/usr/local/Library/Taps/neovim/homebrew-neovim/Formula/neovim.rb:50: syntax error, unexpected >>, expecting keyword_end
>>>>>>> deps: Update to libtermkey 0.18.
  ^
Please report this bug:
    https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:25:in `module_eval'
/usr/local/Library/Homebrew/formulary.rb:25:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:42:in `load_formula_from_path'
/usr/local/Library/Homebrew/formulary.rb:92:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:83:in `klass'
/usr/local/Library/Homebrew/formulary.rb:79:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:216:in `factory'
/usr/local/Library/Homebrew/formulary.rb:228:in `from_rack'
/usr/local/Library/Homebrew/extend/ARGV.rb:43:in `block in resolved_formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:27:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:27:in `resolved_formulae'
/usr/local/Library/Homebrew/cmd/gist-logs.rb:114:in `gist_logs'
/usr/local/Library/Homebrew/brew.rb:91:in `<main>'

Running with the -v flag doesn't give me anything different.
Let me know if there's any other info I can grab. Thanks!

  If you change to /usr/local/Library/Taps/neovim/homebrew-neovim, and run git status, I bet you'd find that the recipe is in conflict somehow (perhaps you had local changes, or we force pushed something at some point, but the error you show above are from conflict markers present in the recipe).
I think the simple answer here is to untap and re-tap the recipe, then try again:
brew untap neovim/neovim
brew tap neovim/neovim
brew install neovim

@jszakmeister
$ git status
rebase in progress; onto 4ff7967
You are currently rebasing branch 'master' on '4ff7967'.
  (fix conflicts and then run "git rebase --continue")
  (use "git rebase --skip" to skip this patch)
  (use "git rebase --abort" to check out the original branch)

Unmerged paths:
  (use "git reset HEAD <file>..." to unstage)
  (use "git add <file>..."
Retapping seems to have fixed everything though. Thanks for the great piece of software!


Changed backspace -> word boundary in 'regex' challenge

backspace \b has been changed to word boundary to facilitate better understanding.
the two reasons have been changed into numbered list items
in the example backspace has been changed to word boundary as per discussed.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Closes #35176

@co16353sidak There is an earlier PR before yours here that we will evaluate first.

@co16353sidak There is an earlier PR before yours here that we will evaluate first.

@RandellDawson I had previously asked @QuincyLarson to work on the issue, I was not aware of others because no other had asked for the same.
If you go through the issue ( #35176 ) I had been given the go ahead to work on this and then I went ahead to make the changes.

If you look at issue #35176, someone made a PR to deal with this 21 hours ago.  Quincy must not have realized someone else already created a PR when he told you to work on it 4 hours ago.

@co16353sidak Thanks for your patience.
Yes - @RandellDawson is correct. It's my fault for not noticing that a PR had just been opened before I replied to you. I will be more careful about that in the future.
Also, thank you for making this contribution, and for your other contributions as well. I hope this does not discourage you from continuing to contribute to the freeCodeCamp codebase.


Fix containers only stopping after 10 seconds

This makes it inconvenient to bring down the application. Presumably it's because the containers are ignoring the polite shutdown signal and docker has to abort the hard way.
See https://vsupalov.com/docker-compose-stop-slow/ for possible solutions

Fixed by adding an init: true to all relevant services in all docker composes: https://docs.docker.com/compose/compose-file/compose-file-v2/#init


using mouse_abs without UDraw for mouse simulation?

thanks for sharing this neat project.
I'm working on something similar but without any input device attached to it.
May I ask for some details on how to use the mouse_abs library with adafruit_hid together?
Thanks in advance @dglaude

works - awesome!
ty

@dglaude do you know if there is such a library for Arduino, like the one you have created?
It's the last piece to my project; it's awesome that your code works; but I'd need to rewrite my entire codebase from Arduino to Python.
I understand it's non of your business; just wondering in case you know some alternative I'm very open to any suggestion(s). Thanks.

I may have found Arduino equivalent, but since I did not acknowledge that, I likely did not use it.
I would say Teensy has C code for HID and maybe one is absolute mouse. USB Host is not super common. But you need code where you can fully describe the USB-HID descriptor to go for absolute mouse... that is where it become a unicorn that only a good search engine and checking 10-20 responses help you find.

Yeah - you are right; ... one of the better sites = Teensy 3.1
Thanks for your input and sharing your code. -best


The "path" argument must be of type string or an instance of URL. Received undefined

System Info
transformers.js version: 2.14.0
MacOS Sonoma 14.2.1
NodeJS: v19.8.1
React: v18.2.0
Environment/Platform

[ ] Website/web-app
[ ] Browser extension
[ ] Server-side (e.g., Node.js, Deno, Bun)
[X] Desktop app (e.g., Electron)
[X] Other (e.g., VSCode extension)

Description
Hi I'm trying to follow this instruction at LangchainJS to use the huggingface transformers embeddings in my Obsidian plugin copilot, but am seeing an error regarding this package, not sure how to fix, any help is greatly appreciated! Let me know if anything else is needed to debug this.
Reproduction
Issue
//<EMAIL_ADDRESS>var import_meta = {};
var { env: onnx_env } = ONNX;
var VERSION2 = "2.14.0";
var WEB_CACHE_AVAILABLE = typeof self !== "undefined" && "caches" in self;
var FS_AVAILABLE = !isEmpty(import_fs.default);
var PATH_AVAILABLE = !isEmpty(import_path.default);
var RUNNING_LOCALLY = FS_AVAILABLE && PATH_AVAILABLE;
var __dirname = RUNNING_LOCALLY ? import_path.default.dirname(import_path.default.dirname(import_url.default.fileURLToPath(import_meta.url))) : "./";

Error:
Plugin failure: copilot TypeError: The "path" argument must be of type string or an instance of URL. Received undefined
    at __node_internal_captureLargerStackTrace (node:internal/errors:490:5)
    at new NodeError (node:internal/errors:399:5)
    at Object.fileURLToPath (node:internal/url:1491:11)
    at anonymous (plugin:copilot:89293:110)
    at e.<anonymous> (app.js:1:2026677)
    at app.js:1:237258
    at Object.next (app.js:1:237363)
    at a (app.js:1:236081)

Additional info
Obsidian uses esbuild and my config is:
import builtins from "builtin-modules";
import esbuild from "esbuild";
import svgPlugin from "esbuild-plugin-svg";
import process from "process";
import wasmPlugin from "./wasmPlugin.mjs";

const banner =
`/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
`;

const prod = (process.argv[2] === "production");

const context = await esbuild.context({
  banner: {
    js: banner,
  },
  entryPoints: ["src/main.ts"],
  bundle: true,
  external: [
    "obsidian",
    "electron",
    "@codemirror/autocomplete",
    "@codemirror/collab",
    "@codemirror/commands",
    "@codemirror/language",
    "@codemirror/lint",
    "@codemirror/search",
    "@codemirror/state",
    "@codemirror/view",
    "@lezer/common",
    "@lezer/highlight",
    "@lezer/lr",
    ...builtins],
  format: "cjs",
  target: "es2020",
  logLevel: "info",
  sourcemap: prod ? false : "inline",
  treeShaking: true,
  outfile: "main.js",
  plugins: [svgPlugin(), wasmPlugin],
});

if (prod) {
  await context.rebuild();
  process.exit(0);
} else {
  await context.watch();
}

console log your variable: var __dirname = RUNNING_LOCALLY ? import_path.default.dirname(import_path.default.dirname(import_url.default.fileURLToPath(import_meta.url))) : "./";
this __dirname not return string or URL instance, look like it return undefined
Plugin failure: copilot TypeError: The "path" argument must be of type string or an instance of URL. Received undefined

@hiepxanh the stacktrace I posted shows Object.fileURLToPath got undefined as argument, so import_meta.url is undefined. A couple of lines above there's import_meta = {} so there's URL for sure. Not sure what to make of this.

do you use ESM?

do you use ESM?

Just confirmed with the Obsidian community, ESM is not an option right now, all Obsidian plugin must be CJS. I wonder what I can do here 🫠

@logancyang  you cannot do anything, I have to refactor my code to ESM and decided to give up and use API haha


node --no-deprecation ./dist/src/index.js FATAL: TypeError (vcs dep issue)

When running a supplied brigade.js, e.g
const { events } = require('brigadier')

events.on("exec", (brigadeEvent, project) => {
  console.log("Hello world!")
})

with brig run -f brigade.js test/project
Get error:
Started brigade-worker-01bz0j243ew0sm61pff1ebsepc-master
yarn run v1.3.2
$ node prestart.js
prestart: src/brigade.js written
$ node --no-deprecation ./dist/src/index.js
FATAL: TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object. (rejection)
error handler is cleaning up
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

This assumes the default values.yaml that has no vcsSidecar
The docs indicate no vcs assumes GIT? Doesn't seem to apply. If a vcsSidecar is supplied, e.g. vcsSidecar: "deis/git-sidecar:latest"
all is good regardless of using a supplied brigade.js

I think this was fixed with #136. Would you please check and confirm? :)

No change with #136 . Likewise no improvement with the other similar #137


Did Reinforcement learning (RL) work in this environment?

The authors mentioned POMDP in the paper, we found no RL details in both the paper and the code yet. Is this a multi-agent simulation without RL?

Hi Walter. Yes, there is no RL in this paper, POMDP is the math framework used to formulate the environment and the problem.


Features of overridden dependencies can't be selected

There is no way from .cargo/config to select specific features of an overridden dependency.

I've run into this too, here's a basic script that reproduces: https://gist.github.com/4f39f141dfa7b0ef62f0


Filter dashboard clicking on chart #5941

Is your feature request related to a problem? Please describe.
click the chart to affect the other chart as a filter
Describe the solution you'd like
chart filter by single click
Describe alternatives you've considered
click based chart filter

On which chart do you need this click support...

@jitendra-kumawat  prioritly  i expect this feature in bar chart and pie chart

this feature would be immensely valuable


Create hariprasd.json

done

https://github.com/all-contributors please add @hariprasd for code

@all-contributors please add @hariprasd for code


intel gpu support

is there any plans for supporting intel gpu's at this point?
it lets me compile it on my laptop with intellinux driver, but it doesnt run, missing ES, no support for GSLS 3.x...
drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=9620131 end=9620132) time 618 us, min 763, max 767, scanline start 760, end 9

FYI the alacritty compiles and runs fine on my laptop with Intel HD Graphics 4400, so you probably should a be a bit more specific about your GPU.

oh, thanks for the info, if it helps, heres some better info on the "card":
00:00.0 Host bridge [0600]: Intel Corporation Mobile GME965/GLE960 Memory Controller Hub [8086:2a10] (rev 0c)
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile GME965/GLE960 Integrated Graphics Controller [8086:2a12] (rev 0c)
00:02.1 Display controller [0380]: Intel Corporation Mobile GME965/GLE960 Integrated Graphics Controller [8086:2a13] (rev 0c)

the xorg driver im using is the intel "proprietary" one...
https://01.org/linuxgraphics/downloads
the kernel is a intel-drm development build from ubuntu:
http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-intel-next/
Linux lappy 4.11.0-997-lowlatency #201704182244 SMP PREEMPT Wed Apr 19 02:49:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
the modules loaded:
i915                 1515520  3
i2c_algo_bit           16384  1 i915
drm_kms_helper        163840  1 i915
drm                   356352  5 i915,drm_kms_helper
video                  40960  1 i915

intel_gpu_top shows its being utilized
the xorg device section:
Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
Option      "AccelMethod" "sna"
Option      "TearFree" "true"
Option      "SwapbuffersWait" "true"
Option      "VSync" "true"
Option      "DRI" "true"
VideoRam        461632   # sometimes (before i updated the bios, it were useful)
EndSection

the laptop is a compaq 610 (compaq branded hp laptop...)

ok, i think i found a way "around" the problem...
https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
installed that, rebooted, did the stuff explained on that ppa page
after that, alacritty started working.

Is there anything we should do in Alacritty to address this? Sounds like you resolved it with system config.

I'm experiencing this error upon launching alacritty:
There was an error initializing the shaders: failed compiling shader: 0:14(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, and 1.00 ES

I believe this is because of Intel support, but I'm not sure. I'm using Mesa 17.2.0, with an Intel GM45 Express chipset.
I've included output of 'glxinfo' and would like to include other useful information on request.
glxinfo.txt
This issue happens on X.org and Wayland for me.

@refacto that's covered by #128

yeah, it does not seem to use the gpu at all, this is more a "software render" mode of some sort at this stage...
ill have to rety alacritty, i gave up a while ago, seeing the gpu hogging up after a few weeks of keeping the term open.

The latest alacritty is great. I can do decorations: false without any problem!
 MMMMMMMMMMMMMMMMMMMMMMMMMmds+.        OS: Mint 19 tara
 MMm----::-://////////////oymNMd+`     Kernel: x86_64 Linux 4.15.0-29-generic
 MMd      /++                -sNMd:    Uptime:
 MMNso/`  dMM    `.::-. .-::.` .hMN:   Packages:
 ddddMMh  dMM   :hNMNMNhNMNMNh: `NMm   Shell: zsh 5.4.2
     NMm  dMM  .NMN/-+MMM+-/NMN` dMM   Resolution:
     NMm  dMM  -MMm  `MMM   dMM. dMM   DE: Cinnamon 3.8.8
     NMm  dMM  -MMm  `MMM   dMM. dMM   WM: Muffin
     NMm  dMM  .mmd  `mmm   yMM. dMM   WM Theme:
     NMm  dMM`  ..`   ...   ydm. dMM   GTK Theme:
     hMM- +MMd/-------...-:sdds  dMM   Icon Theme:
     -NMm- :hNMNNNmdddddddddy/`  dMM   Font: Noto Sans 9
      -dMNs-``-::::-------.``    dMM   CPU: Intel Core i7-8650U @ 8x 4.2GHz [-273.2°C]
       `/dMNmy+/:-------------:/yMMM   GPU: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2)
          ./ydNMMMMMMMMMMMMMMMMMMMMM   RAM: 4948MiB / 15913MiB
             \.MMMMMMMMMMMMMMMMMMM

Based on the report by zachliu this issue seems to be resolved in the latest Alacritty. For issues with unsupported OpenGL versions, please see #128.


Stackoverflow if the data is too large

If the data file you're loading is too large then the following error occurs:
runtime: goroutine stack exceeds<PHONE_NUMBER>-byte limit
runtime: sp=0xc02c6f0418 stack=[0xc02c6f0000, 0xc04c6f0000]
fatal error: stack overflow

runtime stack:
runtime.throw(0x764e87, 0xe)
	/usr/local/go/src/runtime/panic.go:1112 +0x72
runtime.newstack()
	/usr/local/go/src/runtime/stack.go:1034 +0x6ce
runtime.morestack()
	/usr/local/go/src/runtime/asm_amd64.s:449 +0x8f

goroutine 1 [running]:
go/types.(*Checker).exprInternal(0xc00010a000, 0xc00c6f0600, 0x7da340, 0xc0086e6300, 0x0, 0x0, 0x0)
	/usr/local/go/src/go/types/expr.go:1014 +0x3e49 fp=0xc02c6f0428 sp=0xc02c6f0420 pc=0x61b329
go/types.(*Checker).rawExpr(0xc00010a000, 0xc00c6f0600, 0x7da340, 0xc0086e6300, 0x0, 0x0, 0x0)
	/usr/local/go/src/go/types/expr.go:981 +0x81 fp=0xc02c6f04c8 sp=0xc02c6f0428 pc=0x617201

This only happens when you try and run the program that uses the data, not during the go-bindata generation. It also does not happen if you add the -nocompress option (I can't explain that yet).
I have found by not splitting the byteslice into multiple lines, i.e. removing lines https://github.com/shuLhan/go-bindata/blob/master/stringwriter.go#L41-L46 then the program is able to run again.
I would like to add a flag to stop the splitting of the []byte data- would the maintainers be ok with that, or is there another approach?

@grantstephens ,
Thanks for the report.
My guts say that we should revert commit accfe6aa62e because it just provide nice format to generated Go file. It may introduce new changes to other's people builds but its better than having this bugs.
Let me test first.

@grantstephens what Go version did you use?

I was on go 1.14 but didn't test it for different versions. Thank you- the revert fixed the problem- very much appreciated!
For reference we are using goimports and it takes a very long time to reformat the data file when there are so many new lines and is much quicker when the data is all on one line.


Add model to HTTP library for "problem details"

RFC 7807 Problem Details for HTTP APIs defines a standard error response format for HTTP APIs. The TypeSpec HTTP library should include a model that describes this format.

est: 5

Here's a proposal for the model for Problem Details:
/**
 * Base error response model as defined in RFC 7807 Problem Details for HTTP APIs.
 */
model ProblemDetails {
  @header("content-type") contentType: "application/problem+json";

  /**
   * A URI reference [RFC3986] that identifies the problem type.
   */
  type?: string;

  /**
   * A short, human-readable summary of the problem type.
   */
  title?: string;

  /**
   * The HTTP status code for this occurrence of the problem.
   */
  status?: integer;

  /**
   * A human-readable explanation specific to this occurrence of the problem.
   */
  detail?: string;

  /**
   * A URI reference that identifies the specific occurrence of the problem.
   */
  instance?: string;
}


Cache password hashing results in basicAuth middleware

What does this PR do?
See #7897.
This introduces a small in-memory caching mechanism to the BasicAuth
middleware to improve response times and reduce CPU usage.
Motivation
While HTTP Basic Authentication is not widely used for externally facing
services in the real world (for multiple reasons), it is a reasonably
secure and simple way to setup access control for things like
internal-facing dashboard applications, such as the Traefik
API/dashboard. In practice, dashboard tools (e.g. Traefik's own
dashboard) continuously perform HTTP requests to update themselves. When
using a strong(er) hashing algorithm, merely having a dashboard open in
a web browser can cause significant server CPU load and high latency… 😿
HTTP Basic Authentication requires embedding a user/password combination
in every request. The BasicAuth middleware verifies every request, which
involves password hashing, and this can be quite slow (see below). The
good news is that in the common case, the password hashing function is
repeatedly called with identical inputs. Since this is a pure
function (no side effects, no randomness involved), the results can be
cached, which helps tremendously for common use cases such as repeated
requests from the same logged in user (each time with the same user/password
combination in the HTTP request).
Implementation details

Use a small in-memory LRU Cache from golang-lru, which was already an
indirect dependency.

Cache the result of goauth.CheckSecret() calls. Note that this caches
both positive and negative results, which covers both the ‘everything
fine’ and the ‘misconfigured cron job continuously trying to log in
with the wrong credentials’ cases.

Use a SHA512 hash (unrelated to password hashing operation) over the
realm/user/password combination to produce a cache key. This
guarantees that plaintext secrets (such as the password in the request
headers) are not kept in memory longer than necessary. (This depends
also on garbage collection, reused memory, etc.)

Note that the cache size is hardcoded. It uses a small amount of
memory, while at the same time it is very effective for the ‘handful
of users accessing an internal dashboard’ use case. Exposing the cache
size as a configuration value would be technically possible, but the
usefulness is questionable (and has implications for docs,
maintenance, upgrades, etc.)

Adapt the tests to perform multiple requests to hit both the hit/miss
scenarios.

More
As an extra, some more performance numbers: as an extreme example,
bcrypt with a very high complexity can take multiple seconds to compute.
Some example timings (in seconds) from a modern Intel i7 laptop CPU:
$ for c in $(seq 4 17); do \
    time=$(which time); \
    t=$($time htpasswd -nBb -C$c test test \
      2>&1 >/dev/null \
      | awk '{print $1}' \
      | head -n1); \
    printf "complexity %s: %s\n" $c $t; \
  done
complexity 4: 0.00user
complexity 5: 0.00user
complexity 6: 0.00user
complexity 7: 0.00user
complexity 8: 0.01user
complexity 9: 0.02user
complexity 10: 0.04user
complexity 11: 0.08user
complexity 12: 0.17user
complexity 13: 0.35user
complexity 14: 0.68user
complexity 15: 1.37user
complexity 16: 2.71user
complexity 17: 5.42user

Substituting a value like this one in the unit tests (instead of a
simpler hashing mechanism) highlights the problem quite visibly:
$ htpasswd -nBb -C17 test test
test:$2y$17$DvxbL0Tk9IyfIgWyLF84qOILEEDmNt40HgZWIr/YzTSdnBN0A9sNK

cc @SantoDE b/c assigned to #7897

Hello @wbolster,
thanks for your contribution.
Please note, we have marked that PR as needs-design-review. As stated in our contribution guide, that indicates that we will take a close and extensive look on that PR now.
This will most likely require some time, so we wanted to inform you beforehand.
We are not yet sure about potential impact to Traefik and what it might mean from a security point of view, so please bear with us for a bit :)

🤗 no worries, take your time! none of this is urgent.

Hello @wbolster,
once again, thanks for your interest in PR and the PR.
We have had a lengthy discussion internally and came to the conclusion, that for now, we want to decline that PR. We have a lot of (general) questions unsolved, which we should discuss maybe in the proposal before.

What would be the strategy to revoke users? (the cache lib you used is basically a fifo stack configured with 128 slots)
A fifo stack won’t be beneficial in any way if it’s always full of unsuccessful attempts because somebody is trying to brut force the auth
What is the impact on performances, making the key to store in cache (sha512) versus computing bcrypt each times
What are the most common scenario of complexity used with bcrypt encoded passwords?
In what cases does that PR improve performance?
What is the benefit for high frequency configuration reload context

We are also unsure, if that would not make Traefik sensitive to time pad attacks, which is something we want to avoid off course.
For all that reasons, we want to decline the PR for now, with a strong emphasis on for now. We can discuss the points in the proposal and once we reach an agreement, we are fine in accepting a PR.
We are just not confident right now.

i guess it's more practical to continue the discussion in the open ticket #7897 instead of in this closed pull request, so i'll respond there!

fyi: i have copied most relevant pieces of info to #7897


Update plasma documentation to show and demonstrate all models and variables

The documentation for the plasma is currently only one page and does not describe the operation of all the models and how to properly set up the variables

surfa() in plasma_geometry.py seems to be defined but never called
ieped == 2 has PLASMOD relation and links
There is no reference for how the core plasma density function is derived
bokeh > 3.0 may be required
current profile needs to be covered in physics.f90 not in profiles
say about Greenwald limit in profiles

Due to this issue not being attended to in a while the plasma docs have now just been split into their separate sections. This will allow separate issues to be made to update each part and ensure that new updates are able to be rolled out quickly


maxima minima of functions

Hi! I would like to add steps for finding maxima and minima of functions

Go ahead
Deadline 31 March,2021 (11:59 PM IST)

@sairish2001 Atached a PR HAve a look!


New Version: VMware.WorkstationPlayer version <IP_ADDRESS>00274

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.2 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

@stephengillie - here's another one...

@wingetbot run

needs a manual merge just like previous versions