Move readme from starter module into it's content module for azure-spring-cloud-starter-servicebus

Parent issue: #23938

Closing this issue now for it's in https://github.com/Azure/azure-sdk-for-java/wiki/Spring-Cloud-Azure-4.0-Reference.


Use std::regex in string attribute vector base.

@baldersheim : please review

Merge at will when green PR build


install: Add AWS installation guide

Installation guide for AWS.
cc: @annabellebertooch
Signed-off-by: Ricardo Aravena<EMAIL_ADDRESS>

Hi @raravena80 - I forgot to say, could you also add a link to the new AWS doc to the following on this PR:

https://github.com/kata-containers/documentation/blob/master/install/README.md#installing-on-a-cloud-service-platform

@jodh-intel @marcov made the changes and also added a link to it from https://github.com/kata-containers/documentation/blob/master/install/README.md#installing-on-a-cloud-service-platform. PTAL. Thx!

Thanks @raravena80.
We can always finesse the doc to use jq at a later date. I think it's more important that we land it so...
lgtm

Did the travis doc processing get fixed? I still see:
INFO: processing file 'install/aws-installation-guide.md'
ERROR: shell code in file 'install/aws-installation-guide.md' is not valid

@grahamwhaley - see https://github.com/kata-containers/documentation/pull/272#discussion_r226557104.

@jodh-intel @grahamwhaley looks like now it thinks file://MyKeyPair.pub should be a URL:
ERROR: Invalid URL 'file://MyKeyPair.pub' found in the following files:

@jodh-intel any updates?

@raravena80 - That issue is fixed on https://github.com/kata-containers/tests/pull/838.

https://github.com/kata-containers/tests/pull/838 has now landed so this should pass the CI now. Let's see...
lgtm
/test


How to set bot to announce "Now playing:" when in auto playlist.

I am using the bot to play an auto playlist of NCS music as I am helping a streamer and every now and them someone asks what was queued and i would have to /queue to show them, I was wondering if there was a way to announce what is being played currently and delete that message when the next song is queued just like as if you queued the music yourself. The only difference is that the bot is on an auto playlist.

async def cmd_np(self, player, channel, server, message):
"""
Usage:
{command_prefix}np
Displays the current song in chat.
"""

if player.current_entry:
    if self.server_specific_data[server]['last_np_msg']:
        await self.safe_delete_message(self.server_specific_data[server]['last_np_msg'])
        self.server_specific_data[server]['last_np_msg'] = None

    # TODO: Fix timedelta garbage with util function
    song_progress = ftimedelta(timedelta(seconds=player.progress))
    song_total = ftimedelta(timedelta(seconds=player.current_entry.duration))

    streaming = isinstance(player.current_entry, StreamPlaylistEntry)
    prog_str = ('`[{progress}]`' if streaming else '`[{progress}/{total}]`').format(
        progress=song_progress, total=song_total
    )
    prog_bar_str = ''

    # percentage shows how much of the current song has already been played
    percentage = 0.0
    if player.current_entry.duration > 0:
        percentage = player.progress / player.current_entry.duration
    """
    This for loop adds  empty or full squares to prog_bar_str (it could look like
    [■■■■■■■■■■□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□]
    if for example the song has already played 25% of the songs duration
    """
    progress_bar_length = 37
    for i in range(progress_bar_length):
        if (percentage < 1 / progress_bar_length * i):
            prog_bar_str += '▁'
        else:
            prog_bar_str += '▂'

    action_text = 'Streaming' if streaming else 'Playing'

    if player.current_entry.meta.get('channel', False) and player.current_entry.meta.get('author', False):
        np_text = "**Song:** [ <{url}> ] queued by **{author}** \n```{progress} Song: {title}  \n {progress_bar}```".format(

            action=action_text,
            title=player.current_entry.title,
            author=player.current_entry.meta['author'].name,
            progress_bar=prog_bar_str,
            progress=prog_str,
            url=player.current_entry.url
        )
    else:
        np_text = "**Song:** [ <{url}> ] \n```{progress} Song: {title}  \n {progress_bar}```".format(
            action=action_text,
            title=player.current_entry.title,
            progress_bar=prog_bar_str,
            progress=prog_str,
            url=player.current_entry.url
        )

    self.server_specific_data[server]['last_np_msg'] = await self.safe_send_message(channel, np_text)
    await self._manual_delete_check(message)
else:
    return Response(
        'There are no songs queued! Queue something with {}play.'.format(self.config.command_prefix),
        delete_after=30
    )

from #674.

Where do i put this?

in bot.py

ik but anywhere in there particular

ive attempted this multiple times and it doesn't change the bot in anyway, and there seems to be a lot of extra files missing, do i need to download something extra for this to work?

in bot.py put it between commands

you don't need to download anything/add anything other than the code i sent you

also im using Review branch

ya i did put it in between commands but when i run it, it keeps saying there are multiple errors in the coding, i keep trying to fix it but once i fix one issue anotherone comes up :/

Send me the errors

actually is there a way u can just send me a completed file, i didnt personalise it that much i can fix it myself after.

Why don't you send me errors u get when u try to launch the bot?  Make it simple.. send me errors u get and i will tell you what to fix.

This is the first error that starts the chain when i try to fix it. I may have fixed it wrong. But i just reset it and freshly copied and pasted it so u can tell me :)

you need to respect indentations

make sure send me ur bot.py file
and i will edit it for you...

bot.zip
Here it is.

i probs put the coding in the wrong place in the first place xD

New WinRAR ZIP archive.zip
should work

@TimmyTheRat i have the same problem too, could you pls tell me what should i add in my bot.py?

async def cmd_np(self, player, channel, server, message):
"""
Usage:
{command_prefix}np
Displays the current song in chat.
"""
if player.current_entry:
if self.server_specific_data[server]['last_np_msg']:
await self.safe_delete_message(self.server_specific_data[server]['last_np_msg'])
self.server_specific_data[server]['last_np_msg'] = None
# TODO: Fix timedelta garbage with util function
song_progress = ftimedelta(timedelta(seconds=player.progress))
song_total = ftimedelta(timedelta(seconds=player.current_entry.duration))

streaming = isinstance(player.current_entry, StreamPlaylistEntry)
prog_str = ('`[{progress}]`' if streaming else '`[{progress}/{total}]`').format(
    progress=song_progress, total=song_total
)
prog_bar_str = ''

# percentage shows how much of the current song has already been played
percentage = 0.0
if player.current_entry.duration > 0:
    percentage = player.progress / player.current_entry.duration
"""
This for loop adds  empty or full squares to prog_bar_str (it could look like
[■■■■■■■■■■□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□]
if for example the song has already played 25% of the songs duration
"""
progress_bar_length = 37
for i in range(progress_bar_length):
    if (percentage < 1 / progress_bar_length * i):
        prog_bar_str += '▁'
    else:
        prog_bar_str += '▂'

action_text = 'Streaming' if streaming else 'Playing'

if player.current_entry.meta.get('channel', False) and player.current_entry.meta.get('author', False):
    np_text = "**Song:** [ <{url}> ] queued by **{author}** \n```{progress} Song: {title}  \n {progress_bar}```".format(

        action=action_text,
        title=player.current_entry.title,
        author=player.current_entry.meta['author'].name,
        progress_bar=prog_bar_str,
        progress=prog_str,
        url=player.current_entry.url
    )
else:
    np_text = "**Song:** [ <{url}> ] \n```{progress} Song: {title}  \n {progress_bar}```".format(
        action=action_text,
        title=player.current_entry.title,
        progress_bar=prog_bar_str,
        progress=prog_str,
        url=player.current_entry.url
    )

self.server_specific_data[server]['last_np_msg'] = await self.safe_send_message(channel, np_text)
await self._manual_delete_check(message)

else:
return Response(
'There are no songs queued! Queue something with {}play.'.format(self.config.command_prefix),
delete_after=30
)

ok.. but i copied this before put it in my bot.py and i get that identation error

download the zip file i sent and look how i made the np command. The spaces are VERY important

still get the error, but i noticed in the file i downloaded ■■■■■■■■■■□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□ these squares of the progress bar display. meanwhile in my bot.py these squares are all "???????????????????"  Timmy, the file u gave me it says IndentationError: unident does not match any outer indentation level

send me the whole error

just tried getting it to work, but i get this error now.
[Command]<PHONE_NUMBER>58255361/Pesoen (!!np) Traceback (most recent call last):   File "E:\GIT\MusicBot\musicbot\bot.py", line 1968, in on_message     response = await handler(**handler_kwargs)   File "E:\GIT\MusicBot\musicbot\bot.py", line 1698, in cmd_np     song_progress = ftimedelta(timedelta(seconds=player.progress)) NameError: name 'ftimedelta' is not defined
any ideas? want to get this function working as well :)

also Herobrice. the line numer is very important, had the same error, took me two seconds after finding the line to fix it. here is my bot.py file, no errors, unless np is called.
https://www.dropbox.com/s/3ckje27270w7xzk/bot.zip?dl=0

It doesn't work because you're using the default branch. Switch to review if u want the command to work properly

got the review version. still not showing now playing unless called. but hey no errors at least.
other than this one, after skip is used, but its at random, not always showing.
[ERROR:bot] Exception in on_message Traceback (most recent call last):   File "V:\MusicBot\musicbot\bot.py", line 2464, in on_message     response = await handler(**handler_kwargs)   File "V:\MusicBot\musicbot\bot.py", line 1866, in cmd_skip     or author == player.current_entry.meta.get('author', None): AttributeError: 'NoneType' object has no attribute 'meta'

Hey , could you guys PLEASE , post a working one ?
This is what i'am having right now tried to paste it myself and tried the file giveen by @TimmyTheRat
Without sucess
http://i.imgur.com/ZzhXLQF.png

Its working. You have spacing errors

Guess i should say thanks , buuuut no :>
http://i.imgur.com/kd8LUgT.png

Because you don't have "Review" branch. The command will not work on the normal version

Mh , i tried i swear.
File are identical and still
http://i.imgur.com/pilFgoe.png

Send me  a ss. I wanna see the start of the command

Alright , well nevermind i got some progress.
http://i.imgur.com/Sv6oVLr.png
I can slove it alone , though when a new song start from the playlist the bot doesn't say anything :/

Its a command. It doesn't show the message unless you call it

If you are using notepad++ make sure this is enabled http://imgur.com/a/ViiIy

That was it thank you!

I dont understand a thing o-o


Can i maake it work in my Angular2 and Typescript project

When I install and try and import it in my typescript project
import { Croppie } from 'croppie';
it says cant find the module

I know next to nothing about typescript.  I also don't use angular.  If you can diagnose the problems and submit a PR for a fix, I'd be happy to merge it in, but I won't be of any help.

Closing this one in favor of #181's title


Save and load MQC token

Store tokens to file, and load it.

Unfortunately, MQC is service stopped. Closed.


Is there a chance of thread safety issue inside mapster ?

Today after running a large suit of tests at once I saw one test failed with this exeption
System.ArgumentException
Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.Collections.Generic.List`1.CopyTo(T[] array, Int32 arrayIndex)
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.<ReverseIterator>d__74`1.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Mapster.TypeAdapterConfig.GetMergedSettings(Type sourceType, Type destinationType, MapType mapType)
   at Mapster.TypeAdapterConfig.CreateMapExpression(Type sourceType, Type destinationType, MapType mapType, CompileContext context)
   at Mapster.TypeAdapterConfig.CreateInlineMapExpression(Type sourceType, Type destinationType, MapType mapType, CompileContext context)
   at Mapster.Adapters.BaseAdapter.CreateAdaptExpression(Expression source, Type destinationType, CompileArgument arg)
   at Mapster.Adapters.CollectionAdapter.CreateArraySet(Expression source, Expression destination, CompileArgument arg)
   at Mapster.Adapters.BaseAdapter.CreateBlockExpressionBody(Expression source, Expression destination, CompileArgument arg)
   at Mapster.Adapters.BaseAdapter.CreateExpressionBody(Expression source, Expression destination, CompileArgument arg)
   at Mapster.Adapters.BaseAdapter.CreateAdaptFunc(CompileArgument arg)
   at Mapster.TypeAdapterConfig.CreateMapExpression(Type sourceType, Type destinationType, MapType mapType, CompileContext context)
   at Mapster.TypeAdapterConfig.CreateMapFunction(TypeTuple tuple)
   at Mapster.TypeAdapterConfig.Compile()
   at DBCloud.WebAPI.WebDTOMapSetup.VerifyConfiguration() in C:\Projects\Drawboard.Cloud\DBCloud.WebAPI\App_Start\WebDTOMapSetup.cs:line 159

It never happened before, test is very simple and on a second run this error disappeared.
But after checking the error I found this interesting SO thread

Could it be that Mapster has some locking issues ?
PS: error originates from this call
        public static void VerifyConfiguration()
        {
            TypeAdapterConfig.GlobalSettings.Compile();
        }

In fact, Mapster is thread safety for Adapt but setting doesn't. I guess exception occur because unit test call Compile and add new setting at the same time.
To make setting thread safety might be a bit big work, could you please set unit test to run only 1 thread on CI for now?

This happened only once, I believe it's pretty rare condition, I haven't seen it before and will take a eye on it and comment here if this started to happen more often.
Interesting, though, to avoid excessive initialization, our top-level Mapster configuration is being assembled in a static class (I need to see if it's in the constructor or just in method) - building aggregate root in the static class constructor should be pretty thread-safe, as it's called once per app domain and strictly before any usage of this class.

I am also hitting what appears to be a thread-safety issue with TypeAdapterConfig.  I have what looks like this in one static class:
    public static class FacultyMapping
    {
        static FacultyMapping()
        {
            TypeAdapterConfig<FacultyViewModel, Faculty>
                .NewConfig()
                .Map(dest => dest.FacultyTags,
                    src => MapTagsToFacultyTags(src));
                // ...
        }

        public static Faculty ToFaculty(this FacultyViewModel facultyViewModel)
        {
            return facultyViewModel.Adapt<Faculty>();
        }
   }

My test looks like this:
       [Fact]
        public void It_Maps_FacultyViewModel_To_A_Faculty()
        {
            // Arrange
            var facultyViewModel = FacultyFixture.CreateFacultyViewModel(Guid.NewGuid(), Guid.NewGuid());

            // Act
            var faculty = facultyViewModel.ToFaculty();

            // Assert
            Assert.NotNull(facultyViewModel.Tags);
            Assert.Equal(facultyViewModel.Tags, faculty.FacultyTags.Select(x => x.Tag));
       }

This works fine when I run it on its own, but when I run a second test (not shown) in parallel for a different mapping (for unrelated classes) that also uses a TypeAdapterConfig call, one or the other fails randomly every time.  In each case, only the fields which are mapped with TypeAdapterConfig fail---in this case, the NotNull assertion fails.
I stepped through it several times in the Resharper test runner and I can see that both TypeAdapterConfig calls get called in parallel, but only one takes effect.  It also happens with the XUnit test runner.

We may have to pull Mapster from our project for the same reasons as centur.  As we have written more tests, we are getting tests randomly fail more often on our build server when the tests are run concurrently.
The failure occurs with our custom mappings.  Similar to centur, we set them up in a static method in a static class.  We even implemented the following pattern to stop the mappings being fired more than once. It did not help.
If anyone has any ideas let me know!
public static class CustomMappings
{
    private static bool _isConfigured;

    public static void Create()
    {
        if (_isConfigured)
            return;

        lock (typeof(CustomMappings))
        {
            if (!_isConfigured)
            {
                ConfigureAllData();
                _isConfigured = true;
            }
        }
    }

    private static void ConfigureAllData()
    {
        // custom mappings here
    }
}

@malramsay, your solution should work in theory. Do you call .Compile() inside ConfigureAllData in each config to eagerly compile? Pls also print error stack trace to get idea where is the issue.

Actually, I do not call Compile() on each config to eagerly compile. I'm guessing I'm supposed to? This does not seem obvious from your examples on the wiki.  I just had another quick look and couldn't find the Compile() method on there.  I'd like to politely suggest you highlight it further on the wiki.

@mikebridge I was facing the same issue.
Adding a file

xunit.runner.json

with
{
  "maxParallelThreads": 1
}

solved my issue
https://xunit.github.io/docs/configuring-with-json.html

Closing this, as there are workaround solution.


feat: add quota_project conf for dbt project support

Port freshly merged new BigQuery quota project support on dbt
See https://github.com/dbt-labs/dbt-bigquery/pull/1345
Original quota_project implementation in SQLMesh: https://github.com/TobikoData/sqlmesh/pull/3182

You're welcome @izeigerman 🙌
I'm not using it yet but it might be handy in the future!


Push unagi to PyPi

Unagi is awesome, let's make it trivially installable with pip by pushing it to PyPi ;-)
@dr-guangtou Happy to help with this, let me know if I can provide any assistance.

@EiffL I think this is a great idea. I always want to learn how to do that and I think it is time. Let me give it a try first.
To make it like a real package, I think decent documents and testing module are still lacking...I am slowly working on the document part. Let me know if you have any suggestion about these.

@EiffL Ok, just uploaded it to PyPI.

Fantastic! And it works \o/
This is so cool, check this out:
https://colab.research.google.com/github/dr-guangtou/unagi/blob/master/demo/demo_color_image.ipynb
If you add the following cell right at the top of the notebook:
!pip install unagi

The whole notebook can be ran in the cloud :-)

@EiffL Nice! I don't know you can do that!
I should start playing with the colab thing, I heard good things about it!

There are some small things I will update:

Note that I'm minutes away from implementing #19 which would take care of version


Respect liveReloadPort even if same as ember server port

Previously, we could serve Ember at :4200 and load the app via another port (:3000) if we specified:
  "liveReloadBaseUrl": "http://localhost:4200/",
  "liveReloadPort": 4200

One use case is the ember-cli-deploy lightning strategy development workflow:

ember serve -p 4200
Rails app at :3000 that reads index.html from redis
Currently, when accessing the app at :3000:

http://localhost:4200/ember-cli-live-reload.js is loaded thanks to liveReloadBaseUrl
http://localhost:3000/_lr/livereload.js?port=3000&host=localhost&path=_lr/livereload is loaded when we actually want 4200

This regression was introduced in https://github.com/ember-cli/ember-cli-inject-live-reload/pull/54:

construct URL only if live-reload-port is not same ember serve port.

This should be: "construct URL if live-reload-port is different from ember server port, or different from location.port"

This PR might also solve https://github.com/ember-cli/ember-cli-inject-live-reload/issues/68 and https://github.com/ember-cli/ember-cli-inject-live-reload/issues/46 (though it's difficult to tell based on issue description alone)

Is there anything we can do to get some traction on this PR?


No fragment

Need a robust way to check the site file when "nofrag" is positive (as is the new default). In particular probably want to require that "site = none" has different behavior from when there is a site but also nofrag is set. Currently won't exit when site file doesn't exist if nofrag is positive.

Done.


[SDP-1226] KAFKA_SECURITY_PROTOCOL config should be optional

What

Change KAFKA_SECURITY_PROTOCOL to be optional

Why

KAFKA_SECURITY_PROTOCOL is only required when EVENT_BROKER_TYPE=kafka.
We can make it optional and let the validator take care of validating kafka configurations.

When EVENT_BROKER_TYPE=KAFKA and KAFKA_SECURITY_PROTOCOL is not passed, we get the following error on startup :
FATA[2024-05-31T17:08:24.769+01:00] error creating Kafka Producer: invalid kafka config: security protocol cannot be empty  pid=39478

Known limitations
[TODO or N/A]
Checklist
PR Structure

[ ] This PR has a reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR title and description are clear enough for anyone to review it.
[ ] This PR does not mix refactoring changes with feature changes (split into two PRs otherwise).

Thoroughness

[ ] This PR adds tests for the new functionality or fixes.
[ ] This PR contains the link to the Jira ticket it addresses.

Configs and Secrets

[ ] No new CONFIG variables are required -OR- the new required ones were added to the helmchart's values.yaml file.
[ ] No new CONFIG variables are required -OR- the new required ones were added to the deployments (pr-preview, dev, demo, prd).
[ ] No new SECRETS variables are required -OR- the new required ones were mentioned in the helmchart's values.yaml file.
[ ] No new SECRETS variables are required -OR- the new required ones were added to the deployments (pr-preview secrets, dev secrets, demo secrets, prd secrets).

Release

[ ] This is not a breaking change.
[ ] This is ready for production.. If your PR is not ready for production, please consider opening additional complementary PRs using this one as the base. Only merge this into develop or main after it's ready for production!

Deployment

[ ] Does the deployment work after merging?

stellar-disbursement-platform-backend-preview is available here:SDP:      https://sdp-backend-pr302.previews.kube001.services.stellar-ops.com/healthAP:       https://sdp-ap-pr302.previews.kube001.services.stellar-ops.com/healthFrontend: https://sdp-backend-dashboard-pr302.previews.kube001.services.stellar-ops.com


[WIP] Composite auth adapter

As originally proposed in #65
This PR adds the possibility to use multiple authentication adapters under the same type.
It also introduces an AdapterAbstractFactory that allows to retrieve each adapter from the ServiceManager under the naming convention zf-mvc-auth-authentication-adapters-{type}.
This enables a new method to register custom adapters: using a service name the adapter key of a named adapter configuration.
TO-DO:

[ ] Provide a way to use the composite adapter as a default one for all APIs
[ ] Integration Tests
[ ] Update the README

@stefanotorresi This looks fantastic! Any chance you can wrap up the lingering todo items soonish?

@weierophinney been a bit busy lately, but I'll try to attend to this before the end of this week!

@stefanotorresi I pulled this locally, rebased it off of current develop, and tried to push to your branch... but could not. So I did a PR for you: stefanotorresi/zf-mvc-auth#1
The tasks you have listed above are still incomplete, and, honestly, I'm unsure how to complete the first 2. If you would like to continue with this patch, please merge the PR I sent you, and push changes back to your branch when complete.
Thanks!

This repository has been closed and moved to laminas-api-tools/api-tools-mvc-auth; a new issue has been opened at https://github.com/laminas-api-tools/api-tools-mvc-auth/issues/17.

This repository has been moved to laminas-api-tools/api-tools-mvc-auth. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow:

Squash all commits in your branch (git rebase -i origin/{branch})
Make a note of all changed files (`git diff --name-only origin/{branch}...HEAD
Run the laminas/laminas-migration tool on the code.
Clone laminas-api-tools/api-tools-mvc-auth to another directory.
Copy the files from the second bullet point to the clone of laminas-api-tools/api-tools-mvc-auth.
In your clone of laminas-api-tools/api-tools-mvc-auth, commit the files, push to your fork, and open the new PR.
We will be providing tooling via laminas/laminas-migration soon to help  automate the process.


Alignment with SBI ABC API

when running the sbibm demo code based on commit 074e06a, I get
import sbibm

task = sbibm.get_task("two_moons")  # See sbibm.get_available_tasks() for all tasks
prior = task.get_prior()
simulator = task.get_simulator()
observation = task.get_observation(num_observation=1)  # 10 per task

# These objects can then be used for custom inference algorithms, e.g.
# we might want to generate simulations by sampling from prior:
thetas = prior(num_samples=10_000)
xs = simulator(thetas)

# Alternatively, we can import existing algorithms, e.g:
from sbibm.algorithms import rej_abc  # See help(rej_abc) for keywords
posterior_samples, _, _ = rej_abc(task=task, num_samples=10_000, num_observation=1, num_simulations=100_000)

I get
task = <sbibm.tasks.two_moons.task.TwoMoons object at 0x7ff456f40f10>, num_samples = 50, num_simulations = 500, num_observation = 1
observation = tensor([[-0.6397,  0.1623]]), num_top_samples = 100, quantile = 0.2, eps = None, distance = 'l2', batch_size = 1000, save_distances = False
kde_bandwidth = 'cv', sass = False, sass_fraction = 0.5, sass_feature_expansion_degree = 3, lra = False

    def run(
        task: Task,
        num_samples: int,
        num_simulations: int,
        num_observation: Optional[int] = None,
        observation: Optional[torch.Tensor] = None,
        num_top_samples: Optional[int] = 100,
        quantile: Optional[float] = None,
        eps: Optional[float] = None,
        distance: str = "l2",
        batch_size: int = 1000,
        save_distances: bool = False,
        kde_bandwidth: Optional[str] = "cv",
        sass: bool = False,
        sass_fraction: float = 0.5,
        sass_feature_expansion_degree: int = 3,
        lra: bool = False,
    ) -> Tuple[torch.Tensor, int, Optional[torch.Tensor]]:
        """Runs REJ-ABC from `sbi`

        Choose one of `num_top_samples`, `quantile`, `eps`.

        Args:
            task: Task instance
            num_samples: Number of samples to generate from posterior
            num_simulations: Simulation budget
            num_observation: Observation number to load, alternative to `observation`
            observation: Observation, alternative to `num_observation`
            num_top_samples: If given, will use `top=True` with num_top_samples
            quantile: Quantile to use
            eps: Epsilon threshold to use
            distance: Distance to use
            batch_size: Batch size for simulator
            save_distances: If True, stores distances of samples to disk
            kde_bandwidth: If not None, will resample using KDE when necessary, set
                e.g. to "cv" for cross-validated bandwidth selection
            sass: If True, summary statistics are learned as in
                Fearnhead & Prangle 2012.
            sass_fraction: Fraction of simulation budget to use for sass.
            sass_feature_expansion_degree: Degree of polynomial expansion of the summary
                statistics.
            lra: If True, posterior samples are adjusted with
                linear regression as in Beaumont et al. 2002.
        Returns:
            Samples from posterior, number of simulator calls, log probability of true params if computable
        """
        assert not (num_observation is None and observation is None)
        assert not (num_observation is not None and observation is not None)

        assert not (num_top_samples is None and quantile is None and eps is None)

        log = sbibm.get_logger(__name__)
        log.info(f"Running REJ-ABC")

        prior = task.get_prior_dist()
        simulator = task.get_simulator(max_calls=num_simulations)
        if observation is None:
            observation = task.get_observation(num_observation)

        if num_top_samples is not None and quantile is None:
            if sass:
                quantile = num_top_samples / (
                    num_simulations - int(sass_fraction * num_simulations)
                )
            else:
                quantile = num_top_samples / num_simulations

        inference_method = MCABC(
            simulator=simulator,
            prior=prior,
            simulation_batch_size=batch_size,
            distance=distance,
            show_progress_bars=True,
        )
>       posterior, distances = inference_method(
            x_o=observation,
            num_simulations=num_simulations,
            eps=eps,
            quantile=quantile,
            return_distances=True,
            lra=lra,
            sass=sass,
            sass_expansion_degree=sass_feature_expansion_degree,
            sass_fraction=sass_fraction,
        )
E       TypeError: __call__() got an unexpected keyword argument 'return_distances'

Thanks for reporting this!
@janfb: It seems this the APIs diverged with this commit in sbi: https://github.com/mackelab/sbi/commit/9ed18ca1ad9ec9d93b1f09f473157ed4b5ca672c?

I am hence wondering, if setup.py should honor a specific sbi version then.


use existing mlflow experiment if exists

If mlflow experiment already exists, we can re-use its id for tracking. (otherwise it will fail)

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Vendor dependencies

Vendor dependencies to speed up builds and avoid waiting for go mod
download. Also makes sure the builds are better reproducible and more
resilient towards cache outages.
I ran:
go mod tidy
go mod vendor
Then the Makefile hunk sets -mod=vendor explicitly and Dockerfile
drops the two commands that copy go.mod/sum and fetch the modules.

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Special notes for your reviewer:
Does this PR introduce a user-facing change?

/retest

/retest

Seems we're having issues with controller-gen. Folks in other projects (e.g. metal3) have scripts to download this separately [1]. This way we wouldn't need to vendor it and have to include it in the project's dependencies.
[1] https://github.com/metal3-io/baremetal-operator/blob/master/hack/install-controller-gen.sh

Seems we're having issues with controller-gen. Folks in other projects (e.g. metal3) have scripts to download this separately [1]. This way we wouldn't need to vendor it and have to include it in the project's dependencies.
[1] https://github.com/metal3-io/baremetal-operator/blob/master/hack/install-controller-gen.sh

Seems we're having issues with controller-gen. Folks in other projects (e.g. metal3) have scripts to download this separately [1]. This way we wouldn't need to vendor it and have to include it in the project's dependencies.
[1] https://github.com/metal3-io/baremetal-operator/blob/master/hack/install-controller-gen.sh

Sounds reasonable to me :+1:

Seems we're having issues with controller-gen. Folks in other projects (e.g. metal3) have scripts to download this separately [1]. This way we wouldn't need to vendor it and have to include it in the project's dependencies.
[1] https://github.com/metal3-io/baremetal-operator/blob/master/hack/install-controller-gen.sh

Sounds reasonable to me :+1:

I'm personally not in favor of vendoring dependencies, I find the code bloat and maintenance overhead to be irksome and I feel like it's an anti-pattern that the Go community seemed to be moving away from. Am I in the minority?

I'm personally not in favor of vendoring dependencies, I find the code bloat and maintenance overhead to be irksome and I feel like it's an anti-pattern that the Go community seemed to be moving away from. Am I in the minority?

I'm personally not in favor of vendoring dependencies, I find the code bloat and maintenance overhead to be irksome and I feel like it's an anti-pattern that the Go community seemed to be moving away from. Am I in the minority?

I understand the hesitance... vendoring dependencies is indeed a little funky and am not too keen on that either. However, there are a couple of things that this is addressing:

Faster container build times (not having to pull the go modules on each container build indeed helps with this)
OpenShift CI integration (they overwrite the build to expect vendored dependencies...)

I'm personally not in favor of vendoring dependencies, I find the code bloat and maintenance overhead to be irksome and I feel like it's an anti-pattern that the Go community seemed to be moving away from. Am I in the minority?

I understand the hesitance... vendoring dependencies is indeed a little funky and am not too keen on that either. However, there are a couple of things that this is addressing:

Faster container build times (not having to pull the go modules on each container build indeed helps with this)
OpenShift CI integration (they overwrite the build to expect vendored dependencies...)

Also makes sure the builds are better reproducible

I agree with the fact it makes builds reproducible.

Faster container build times (not having to pull the go modules on each container build indeed helps with this)

The docker has cache now if we want to avoid downloading go modules https://www.docker.com/blog/containerize-your-go-developer-environment-part-2/

and more resilient towards cache outages.

How often have the caches have been down? Not that often AFAIK.

I'm personally not in favor of vendoring dependencies, I find the code bloat and maintenance overhead to be irksome and I feel like it's an anti-pattern that the Go community seemed to be moving away from. Am I in the minority?

I concur. I am not a big fan of vendoring dependencies

Also makes sure the builds are better reproducible

I agree with the fact it makes builds reproducible.

Faster container build times (not having to pull the go modules on each container build indeed helps with this)

The docker has cache now if we want to avoid downloading go modules https://www.docker.com/blog/containerize-your-go-developer-environment-part-2/

and more resilient towards cache outages.

How often have the caches have been down? Not that often AFAIK.

I'm personally not in favor of vendoring dependencies, I find the code bloat and maintenance overhead to be irksome and I feel like it's an anti-pattern that the Go community seemed to be moving away from. Am I in the minority?

I concur. I am not a big fan of vendoring dependencies

Another positive point I can see on vendoring is the ability to easily identify changes throughout the dependency chain whenever a PR is adding new dependencies or updating existing ones.
Solely from a security point of view, I can see the benefit of being able to easily see all the changes brought into the code base instead of tacitly approving and pushing the responsibility down the dependency chain.

Another positive point I can see on vendoring is the ability to easily identify changes throughout the dependency chain whenever a PR is adding new dependencies or updating existing ones.
Solely from a security point of view, I can see the benefit of being able to easily see all the changes brought into the code base instead of tacitly approving and pushing the responsibility down the dependency chain.

@JAORMX can you please fix the verification step:
go run -tags generate sigs.k8s.io/controller-tools/cmd/controller-gen "crd:crdVersions=v1" paths="./api/seccompprofile/..." output:crd:stdout > deploy/base/crd.yaml
cannot find package "." in:
	/home/prow/go/src/github.com/kubernetes-sigs/security-profiles-operator/vendor/sigs.k8s.io/controller-tools/cmd/controller-gen
make: *** [Makefile:162: manifests] Error 1

@JAORMX can you please fix the verification step:
go run -tags generate sigs.k8s.io/controller-tools/cmd/controller-gen "crd:crdVersions=v1" paths="./api/seccompprofile/..." output:crd:stdout > deploy/base/crd.yaml
cannot find package "." in:
	/home/prow/go/src/github.com/kubernetes-sigs/security-profiles-operator/vendor/sigs.k8s.io/controller-tools/cmd/controller-gen
make: *** [Makefile:162: manifests] Error 1

On Wed, Jan 27, 2021 at 12:00:26AM -0800, Sascha Grunert wrote:

@JAORMX can you please fix the verification step:
go run -tags generate sigs.k8s.io/controller-tools/cmd/controller-gen "crd:crdVersions=v1" paths="./api/seccompprofile/..." output:crd:stdout > deploy/base/crd.yaml
cannot find package "." in:
	/home/prow/go/src/github.com/kubernetes-sigs/security-profiles-operator/vendor/sigs.k8s.io/controller-tools/cmd/controller-gen
make: *** [Makefile:162: manifests] Error 1

Sorry it's taking so long to get back to this, I'm taking another look
today.

On Wed, Jan 27, 2021 at 12:00:26AM -0800, Sascha Grunert wrote:

@JAORMX can you please fix the verification step:
go run -tags generate sigs.k8s.io/controller-tools/cmd/controller-gen "crd:crdVersions=v1" paths="./api/seccompprofile/..." output:crd:stdout > deploy/base/crd.yaml
cannot find package "." in:
	/home/prow/go/src/github.com/kubernetes-sigs/security-profiles-operator/vendor/sigs.k8s.io/controller-tools/cmd/controller-gen
make: *** [Makefile:162: manifests] Error 1

Sorry it's taking so long to get back to this, I'm taking another look
today.

On Tue, Jan 26, 2021 at 10:33:12AM -0800, Paulo Gomes wrote:

Another positive point I can see on vendoring is the ability to easily identify changes throughout the dependency chain whenever a PR is adding new dependencies or updating existing ones.

Not only identify, but I've seen a couple of cases where we had to patch
a dependency while a PR for it was being proposed. Much easier to do with
vendoring.

On Tue, Jan 26, 2021 at 10:33:12AM -0800, Paulo Gomes wrote:

Another positive point I can see on vendoring is the ability to easily identify changes throughout the dependency chain whenever a PR is adding new dependencies or updating existing ones.

Not only identify, but I've seen a couple of cases where we had to patch
a dependency while a PR for it was being proposed. Much easier to do with
vendoring.

/approve
Will wait for feedback from more folks.

/approve
Will wait for feedback from more folks.

/approve
/release-note-none

/approve
/release-note-none

I think we have to update this PR again:
go: inconsistent vendoring in /home/prow/go/src/github.com/kubernetes-sigs/security-profiles-operator:
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod

I think we have to update this PR again:
go: inconsistent vendoring in /home/prow/go/src/github.com/kubernetes-sigs/security-profiles-operator:
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod


[PE-D][Tester B] UG - Quick Start Find Command Improvement

Current: UG specifies that the Find command should work for employees whose names contain any of the given keywords. However, the Find command only works if the name matches the full keyword. For example, following the UG, this should find Alex Yeoh.

However, Alex Yeoh can't be found.

Your find command only works if the keyword matches any of the words in the name. For example find Alex, will find Alex Yeoh

Recommendation: Change the UG so that it says that it will only support full word matches

Labels: type.DocumentationBug severity.VeryLow
original: Weiennn/ped#3

This is already included in the user guide's explanation of the find command


AttributeError: 'NoneType' object has no attribute 'dtype'

Traceback (most recent call last):
File "C:\Users\goodm\Retrieval-based-Voice-Conversion-WebUI\my_utils.py", line 14, in load_audio
ffmpeg.input(file, threads=0)
File "C:\Users\goodm\Retrieval-based-Voice-Conversion-WebUI\runtime\lib\site-packages\ffmpeg_run.py", line 325, in run
raise Error('ffmpeg', out, err)
ffmpeg._run.Error: ffmpeg error (see stderr output for detail)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\goodm\Retrieval-based-Voice-Conversion-WebUI\infer-web.py", line 180, in vc_single
audio = load_audio(input_audio_path, 16000)
File "C:\Users\goodm\Retrieval-based-Voice-Conversion-WebUI\my_utils.py", line 19, in load_audio
raise RuntimeError(f"Failed to load audio: {e}")
RuntimeError: Failed to load audio: ffmpeg error (see stderr output for detail)
Traceback (most recent call last):
File "C:\Users\goodm\Retrieval-based-Voice-Conversion-WebUI\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict
output = await app.blocks.process_api(
File "C:\Users\goodm\Retrieval-based-Voice-Conversion-WebUI\runtime\lib\site-packages\gradio\blocks.py", line 1007, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "C:\Users\goodm\Retrieval-based-Voice-Conversion-WebUI\runtime\lib\site-packages\gradio\blocks.py", line 953, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "C:\Users\goodm\Retrieval-based-Voice-Conversion-WebUI\runtime\lib\site-packages\gradio\components.py", line 2076, in postprocess
processing_utils.audio_to_file(sample_rate, data, file.name)
File "C:\Users\goodm\Retrieval-based-Voice-Conversion-WebUI\runtime\lib\site-packages\gradio\processing_utils.py", line 206, in audio_to_file
data = convert_to_16_bit_wav(data)
File "C:\Users\goodm\Retrieval-based-Voice-Conversion-WebUI\runtime\lib\site-packages\gradio\processing_utils.py", line 219, in convert_to_16_bit_wav
if data.dtype in [np.float64, np.float32, np.float16]:
AttributeError: 'NoneType' object has no attribute 'dtype'
i tried million thing to fix this issue but nothing worked, i even trying other pc with diff OS.

I have the same issue as you

SAME


Support of API hooks for password and public key authentication

Fix #80

Coverage decreased (-0.5%) to 5.376% when pulling 12537e155c27671cd22afbd2b0c7b5b163296ee2 on fix-80-http-hooks into 4ac4dd044977fc37951f6336185f5b9ad6fde3d1 on master.


[Bug] isEnableBatchPush can not be changed since the setter name is wrong

Before Creating the Bug Report

[X] I found a bug, not just asking a question, which should be created in GitHub Discussions.

[X] I have searched the GitHub Issues and GitHub Discussions  of this repository and believe that this is not a duplicate.

[X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment
Linux
RocketMQ version
4.9.x
JDK Version
No response
Describe the Bug
isEnableBatchPush can not be changed since the setter name is wrong
Steps to Reproduce

add isEnableBatchPush=true in the broker.properties config
use enableDLegerCommitLog=true
saw batch push is not enabled in dledger mode and the var isEnableBatchPush in MessageStoreConfig  still false

using test to reproducer
@Test
    public void testBrokerControllerConfigInit() throws Exception {
        Properties properties = new Properties();
        properties.setProperty("isEnableBatchPush", "true");
        MessageStoreConfig messageStoreConfig = new MessageStoreConfig();
        MixAll.properties2Object(properties, messageStoreConfig);
        assertThat(messageStoreConfig.isEnableBatchPush()).isTrue();
    }

What Did You Expect to See?
isEnableBatchPush should be changed after set  isEnableBatchPush=true in the broker.properties config
What Did You See Instead?
isEnableBatchPush did not change in the MessageStoreConfig
Additional Context
No response

Actually, set enableBatchPush as true can work.


MONDO:0042965 Machado-Joseph disease type 5 [Obsolete]

Mondo term (ID and Label)
MONDO:0042965 Machado-Joseph disease type 5
Reason for deprecation
ICD9 code is general "Cerebellar ataxia NOS (334.3)" and given that there are no other sources, recommend to obsolete this and suggest the parent term. (Noting that SNOMED CT and UMLS have terms only for types 1-4, no 5.)
Suggested term to consider
MONDO:0007182 Machado-Joseph disease
Your nano-attribution (ORCID)
If you don't have an ORCID, you can sign up for one here

Dear @kanems,
Thank you for reaching out to the Mondo Disease Ontology, part of the Monarch Initiative!
We have received your ticket and will review it as soon as possible.
If you have any additional information or updates relevant to your inquiry, please add them in a comment on this ticket. Your input is valuable in helping us understand and resolve the issue effectively.
Thank you for your patience and for your contributions to Mondo!
Sincerely,
The Mondo Team

Lack of research on a type 5 presentation, term is scheduled for obsoletion. #8342


Fix bad comparison of c string

(While investigation of #1335) I found some bad c-string comparison.
C++ compiler already warns this bug in CI.
example https://travis-ci.org/github/mapbox/node-sqlite3/jobs/685282346#L683
IMO, this bug doesn't really seem to cause negative consequences, thanks to awesome modern C++ compiler optimization.

Thanks again @mtgto


GUI technical documentation

In GitLab by @mcastril on Mar 4, 2020, 12:36
It should at least cover the following points:

Description of the tool and the technologies used.
Architecture/workflow: Communication between the components and in which order.
Installation: Dependencies, where is everything installed, how to access and very important, how to restart if the service is stopped. Also where can we find the logs, if there are.
Any other comment you may think it would be useful for anyone in CES to understand how the thing works.

In GitLab by @mcastril on Mar 11, 2020, 17:57
Thank you @wuruchi , I think it perfectly fulfills a compromise between lightness and detail. It has the necessary data.
About the API, I am sure that it will be very useful for upcoming ideas we may have.

In GitLab by @mcastril on Mar 11, 2020, 17:57
closed

In GitLab by @wuruchi on Mar 10, 2020, 09:36
Hello @mcastril
Please review the current state of the documentation: https://earth.bsc.es/gitlab/wuruchi/autosubmitreact/-/wikis/home
Tell me if there is a section that needs more information, or if a new section is necessary.
Also, there is some documentation on the API: https://earth.bsc.es/gitlab/wuruchi/autosubmitreact/-/wikis/Autosubmit-API

In GitLab by @mcastril on Mar 4, 2020, 12:36
moved from autosubmit#500


refactor(label): remove useless "LabelType"

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

24 of 26 (92.31%)  changed or added relevant lines in 9 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 83.028%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

tensorbay/label/catalog.py
4
5
80.0%

tensorbay/label/label.py
4
5
80.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
5259

Relevant Lines:
6334

💛  - Coveralls


Check if Lock is in use (Indexer is updating right now) even when directly updating Index.

The Service should also be aware of possible locks so a soon to be bad index won't be updated. This way we could implement a messenger queue which waits with the update until the lock is available.

@rliebi could you please clarify what you mean by "directly updating index"? Are you referring to the updates performed by ChangeListener?

I mean when updating with the PropagateChanges Class.


mongodb connection issue Collector V3

hi there
I'm trying to change the default dataStoreEngine to use Mongo Db, and with the same config on the default DataStore my configuration file work just fine, however when I change the Data Store to Mongo, I'm getting an error and no crawler at all is possible, I also change Jar to a most recent version, however the same error remain; here is error Output:

18:15:58.196 [Norconex Minimum Test Page#5] ERROR Crawler - An error occured that could compromise the stability of the crawler. Stopping excution to avoid further issues...
java.lang.RuntimeException: Failed to invoke java.time.ZoneId() with no args
at com.google.gson.internal.ConstructorConstructor$3.construct(ConstructorConstructor.java:113) ~[gson-2.8.7.jar:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:212) ~[gson-2.8.7.jar:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) ~[gson-2.8.7.jar:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) ~[gson-2.8.7.jar:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) ~[gson-2.8.7.jar:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) ~[gson-2.8.7.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:932) ~[gson-2.8.7.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:897) ~[gson-2.8.7.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:846) ~[gson-2.8.7.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:817) ~[gson-2.8.7.jar:?]
at com.norconex.collector.core.store.impl.mongodb.MongoDataStore.fromDocument(MongoDataStore.java:167) ~[norconex-collector-core-2.0.0.jar:2.0.0]
at com.norconex.collector.core.store.impl.mongodb.MongoDataStore.unwrap(MongoDataStore.java:157) ~[norconex-collector-core-2.0.0.jar:2.0.0]
at com.norconex.collector.core.store.impl.mongodb.MongoDataStore.deleteFirst(MongoDataStore.java:106) ~[norconex-collector-core-2.0.0.jar:2.0.0]
at com.norconex.collector.core.doc.CrawlDocInfoService.pollQueue(CrawlDocInfoService.java:232) ~[norconex-collector-core-2.0.0.jar:2.0.0]
at com.norconex.collector.core.crawler.Crawler.processNextReference(Crawler.java:546) ~[norconex-collector-core-2.0.0.jar:2.0.0]
at com.norconex.collector.core.crawler.Crawler$ProcessReferencesRunnable.run(Crawler.java:923) [norconex-collector-core-2.0.0.jar:2.0.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_312]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_312]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]

Caused by: java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48) ~[?:1.8.0_312]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_312]
at com.google.gson.internal.ConstructorConstructor$3.construct(ConstructorConstructor.java:110) ~[gson-2.8.7.jar:?]
... 18 more

also here is my configuration at this moment:
Collector and main components:

Collector:          Norconex HTTP Collector 3.0.0 (Norconex Inc.)
Collector Core:     Norconex Collector Core 2.0.0 (Norconex Inc.)
Importer:           Norconex Importer 3.0.0 (Norconex Inc.)
Lang:               Norconex Commons Lang 2.0.0 (Norconex Inc.)
Committer(s):
Core:             Norconex Committer Core 3.0.0 (Norconex Inc.)
Solr:             Norconex Committer Solr 3.0.0 (Norconex Inc.)
Runtime:
Name:             OpenJDK Runtime Environment
Version:          1.8.0_312-8u312-b07-0ubuntu1~20.04-b07
Vendor:           Private Build

Also here is a snippet of my mongo db config:

 <dataStoreEngine class="MongoDataStoreEngine">
         <connectionString>mongodb://<IP_ADDRESS>:27017/crawler_salud</connectionString>
 </dataStoreEngine>

could you please provide me some help? or point me to a resource to fix this issue?
thanks for your time and effort.
best regards
angelo

Hello there,
I have tried with v3.0.0 in my windows system. Used minimum config and only changed dataStoreEngine part for mongodb. Did not add any jar file. However, it works for me fine. So, we will need more details like which version of mongodb you use? Can you send full config file and the jar name and version which you updated, Operating System.

I am getting the same error using MongoDB v4.4.12. Did you manage to resolve it @angelo337 ?

hi there
after several test on Linux, and a single test on Windows, this happened just on linux. I am going to try a change in config of linux, as is a better suit for me.
I will let you know
angelo

Hey everyone,
I don't think this is related to Windows vs Linux, but rather to the fact that "vanilla" Gson instances don't know how to serialize / deserialize ZonedDateTime properly. The fix requires that the creation of the Gson instance in MongoDataStore is changed as follows:
private static final Gson GSON = new GsonBuilder().registerTypeAdapter(ZonedDateTime.class, new ZonedDateTimeConverter()).create();
A minimal implementation of the adapter class:
import java.lang.reflect.Type;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;

import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;

public class ZonedDateTimeConverter implements JsonSerializer<ZonedDateTime>, JsonDeserializer<ZonedDateTime> {
	private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ISO_DATE_TIME;

	@Override
	public ZonedDateTime deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
			throws JsonParseException {
		return FORMATTER.parse(json.getAsString(), ZonedDateTime::from);
	}

	@Override
	public JsonElement serialize(ZonedDateTime src, Type typeOfSrc, JsonSerializationContext context) {
		return new JsonPrimitive(FORMATTER.format(src));
	}
}

Hope this helps,
Alex

hi again! ok, understood, maybe this is a different issue to the one we were having then. or, maybe it's related to jdk distributions / versions? can't say with any certainty, and I'm afraid we can't do more testing at the moment. nevertheless, the fix I mentioned above does work for serialization / deserialization of ZonedDateTime instances to mongo, and is the same for the jdbc store, so maybe this helps others that encounter similar problems :-)


Ios pod install problem

-> Installing AppLovinSDK (11.4.2)
  > Copying AppLovinSDK from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/AppLovinSDK/11.4.2-119a0` to `Pods/AppLovinSDK`

-> Installing FBAudienceNetwork (6.9.0)
  > Copying FBAudienceNetwork from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/FBAudienceNetwork/6.9.0-83096` to `Pods/FBAudienceNetwork`

-> Installing FMDB (2.7.5)
  > Copying FMDB from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/FMDB/2.7.5-2ce00` to `Pods/FMDB`

-> Installing Firebase (8.15.0)
  > Copying Firebase from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/Firebase/8.15.0-5f819` to `Pods/Firebase`

-> Installing FirebaseCore (8.15.0)
  > Copying FirebaseCore from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/FirebaseCore/8.15.0-5743c` to `Pods/FirebaseCore`

-> Installing FirebaseCoreDiagnostics (8.15.0)
  > Copying FirebaseCoreDiagnostics from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/FirebaseCoreDiagnostics/8.15.0-92e07` to `Pods/FirebaseCoreDiagnostics`

-> Installing Flutter (1.0.0)

-> Installing Google-Mobile-Ads-SDK (8.13.0)
  > Copying Google-Mobile-Ads-SDK from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/Google-Mobile-Ads-SDK/8.13.0-05e5d` to `Pods/Google-Mobile-Ads-SDK`

-> Installing GoogleAppMeasurement (8.15.0)
  > Copying GoogleAppMeasurement from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/GoogleAppMeasurement/8.15.0-4c19f` to `Pods/GoogleAppMeasurement`

-> Installing GoogleDataTransport (9.1.4)
  > Copying GoogleDataTransport from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/GoogleDataTransport/9.1.4-5fffe` to `Pods/GoogleDataTransport`

-> Installing GoogleUserMessagingPlatform (2.0.0)
  > Copying GoogleUserMessagingPlatform from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/GoogleUserMessagingPlatform/2.0.0-ab890` to `Pods/GoogleUserMessagingPlatform`

-> Installing GoogleUtilities (7.7.0)
  > Copying GoogleUtilities from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/GoogleUtilities/7.7.0-e0913` to `Pods/GoogleUtilities`

-> Installing PromisesObjC (2.1.1)
  > Copying PromisesObjC from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/PromisesObjC/2.1.1-ab77f` to `Pods/PromisesObjC`

-> Installing Reachability (3.2)
  > Copying Reachability from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/Reachability/3.2-33e18` to `Pods/Reachability`

-> Installing Toast (4.0.0)
  > Copying Toast from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/Toast/4.0.0-91b39` to `Pods/Toast`

-> Installing applovin_max (1.0.3)

-> Installing connectivity (0.0.1)

-> Installing facebook_audience_network (0.0.1)

-> Installing firebase_core (1.17.0)

-> Installing flutter_custom_tabs (0.0.1)

-> Installing flutter_fgbg (0.0.1)

-> Installing fluttertoast (0.0.2)

-> Installing google_mobile_ads (0.0.1)

-> Installing in_app_review (0.2.0)

-> Installing nanopb (2.30908.0)
  > Copying nanopb from `/Users/macc/Library/Caches/CocoaPods/Pods/Release/nanopb/2.30908.0-a0ba3` to `Pods/nanopb`

-> Installing path_provider_ios (0.0.1)

-> Installing share (0.0.1)

-> Installing sqflite (0.0.2)

-> Installing url_launcher_ios (0.0.1)
  - Running pre install hooks
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/macc/StudioProjects/test1/ios/Pods/AppLovinSDK/applovin-ios-sdk-11.4.2/AppLovinSDK.xcframework)

/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:84:in `block (2 levels) in verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:74:in `each_key'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:74:in `block in verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:73:in `verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/target_validator.rb:38:in `validate!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:597:in `validate_targets'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:163:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

Error output from CocoaPods:
↳
[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Error running pod install
Error launching application on iPhone 8.

@HnjFlutter
go to your project folder then find pod file then Open  it
Uncomment the next line to define a global platform for your project
platform :ios, '9.0'
to
platform :ios, '10.0'
save it then open Terminal  set  it on this path  :
cd  Your_Project_Name/ios
then run this command
pod install --repo-update
after that if every thing is ok  Run
flutter pub get
then
flutter run

add  "s.static_framework = true"   in applovin_max.podspec
if remove  "use_frameworks!" in swift project, some new bugs will be occurs for other pod

https://github.com/AppLovin/AppLovin-MAX-Flutter/pull/17/files

v1.0.6 is live - feel free to give it a try
https://github.com/AppLovin/AppLovin-MAX-Flutter/releases/tag/release_1_0_6


is there an option to load as opened?

Basically, I want the menu to show up at load time, without having to manually do slideout.open() after page load.
Thanks

according to what I understand
maybe doing some like that
$(document).ready(function () {
slideout.toggle();
});

Would love this as well.

Tried setting 'duration' option to 0 milliseconds, but it still shows an animated opening.

Figured it out. The key is setting duration to 10 and not 0.
    // side menu
    var slideout = new Slideout({
        'panel': document.getElementById('panel'),
        'menu': document.getElementById('menu'),
        'padding': 320,
        'tolerance': 70,
        'duration': 10,
    });
    slideout.open();


Issue while simulating a pangenome

Hello,
I'm looking to create a pangenome using your scripts as a means to compare ggCaller against tools that were not included in your paper, but I've encountered some problems during the pangenome simulation process.
I used the command below:
python scripts/simulate_full_pangenome.py --gff data/simulated_pangenome/SP_ATCC700669.gff3 --nisolates 100 --n_sim_genes 1000 --pop_size 10e-6 --out sim_pangenome --mutation_rate 1e-14 --gain_rate 1e-12 --loss_rate 1e-12

However, the output indicated a problem:
home/X/miniconda3/envs/ggCaller_manuscript/lib/python3.12/site-packages/Bio/Seq.py:2804: BiopythonWarning: Partial codon, len(sequence) not a multiple of three. Explicitly trim the sequence or add trailing N before translation. This may become an error in future.
  warnings.warn(
accessory size:  0
mutations in genome:  0
genes deleted:  0
mutations in genome:  0
genes deleted:  0
mutations in genome:  0
genes deleted:  0
mutations in genome:  0
genes deleted:  0
mutations in genome:  0
genes deleted:  0
mutations in genome:  0
genes deleted:  0
....

As a result, the simulated genomes were identical. I would appreciate any guidance you might have on this issue.
Also, I'd like to express my gratitude for the insightful paper!
Best regards,

Hi, this may be an issue with parsing the float arguments from the command line. Would you be able to try with default parameters, just specifying the input gff and output path and see what happens?

Hi,
Actually, pop_size should be a sizable value and cannot be set to 10^-6.
The fixed output is:
accessory size:  134
mutations in genome:  2099
genes deleted:  128
mutations in genome:  2096
genes deleted:  127
mutations in genome:  2111
genes deleted:  124
mutations in genome:  2114
genes deleted:  122
mutations in genome:  2098
genes deleted:  123
mutations in genome:  2100
...

Thanks.

Solved in commit ea2cc04, with thanks to ggautreau.


MultiMesh3D throws errors and can corrupt scenes, Condition "instance_count > 0" is true.

Tested versions
4.2.1 bot standard and mono
System information
Windows 11 - Vulkan - Nvidia RTX 4070 - intel i5 13600KF
Issue description
For some reason MultiMesh3D now throws an error like this:

(screenshot is from mono version but same error happens in the standard godot version)
and it can also lead to scene corruption - I don't know the conditions for that, sometimes my scenes just get corrupted when I add the multimesh, I have no idea why, it's not any particular mesh itself I tried built-in ones too.
Steps to reproduce
With MRP:
Open the project if you don't see the error on the first try (no .godot folder yet so it doesn't show) then close the project and open it again, you should see it now or after opening the scene with the MultiMesh3D (called planet.tscn) - you might need to have both scenes open when you close the project so they reopen.
(sometimes under no idea what circumstances you can get a corrupted scene error and the scene will no longer open though I have no idea why or how to reproduce this)
Without MRP:

Make a scene with MultiMesh3D and populate a surface with some MeshInstance3D (for testing I used the Cylinder mesh) and save it as a scene.
Instantiate that scene into your main scene.
Run your project.
Close the project and open it again
You should see the error now or after opening the scene with the MultiMesh3D.

Minimal reproduction project (MRP)
MultiMeshMRP.zip

Just got this error which after closing and reopening the project results in scene corruption.
ERROR: Condition "!sdata.is_valid()" is true. Returning: nullptr
   at: instantiate (scene/resources/packed_scene.cpp:220)
ERROR: Failed to load scene dependency: "res://Scenes/CelestialBodies/Asteroid/Asteroid.tscn". Make sure the required s.   at: (scene/resources/packed_scene.cpp:222)
ERROR: Failed loading scene: res://Scenes/Playground/Playground.tscn.
   at: (main/main.cpp:3431)
ERROR: 7 RID allocations of type 'P11GodotBody3D' were leaked at exit.
ERROR: 4 RID allocations of type 'P12GodotShape3D' were leaked at exit.
ERROR: Pages in use exist at exit in PagedAllocator: N33RendererSceneRenderImplementation22RenderForwardClustered32GeomE   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: 1 RID allocations of type 'N10RendererRD5SkyRD3SkyE' were leaked at exit.
ERROR: 1 RID allocations of type 'N26RendererEnvironmentStorage11EnvironmentE' were leaked at exit.
ERROR: 1 RID allocations of type 'N10RendererRD16ParticlesStorage9ParticlesE' were leaked at exit.
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
ERROR: 1 RID allocations of type 'N10RendererRD12LightStorage13LightInstanceE' were leaked at exit.
ERROR: 1 RID allocations of type 'N10RendererRD12LightStorage5LightE' were leaked at exit.
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
ERROR: 3 RID allocations of type 'N10RendererRD11MeshStorage9MultiMeshE' were leaked at exit.
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
ERROR: 12 RID allocations of type 'N10RendererRD11MeshStorage4MeshE' were leaked at exit.
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56Godot Engine v4.2.1.stable.mono.official.b09f793f5 - htgVulkan API 1.3.260 - Forward+ - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 4070

ERROR: Condition "!sdata.is_valid()" is true. Returning: nullptr
   at: instantiate (scene/resources/packed_scene.cpp:220)
ERROR: Failed to load scene dependency: "res://Scenes/CelestialBodies/Asteroid/Asteroid.tscn". Make sure the required s.   at: (scene/resources/packed_scene.cpp:222)
ERROR: Failed loading scene: res://Scenes/Playground/Playground.tscn.
   at: (main/main.cpp:3431)
ERROR: 7 RID allocations of type 'P11GodotBody3D' were leaked at exit.
ERROR: 4 RID allocations of type 'P12GodotShape3D' were leaked at exit.
ERROR: Pages in use exist at exit in PagedAllocator: N33RendererSceneRenderImplementation22RenderForwardClustered32GeomE   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: 1 RID allocations of type 'N10RendererRD5SkyRD3SkyE' were leaked at exit.
ERROR: 1 RID allocations of type 'N26RendererEnvironmentStorage11EnvironmentE' were leaked at exit.
ERROR: 1 RID allocations of type 'N10RendererRD16ParticlesStorage9ParticlesE' were leaked at exit.
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
ERROR: 1 RID allocations of type 'N10RendererRD12LightStorage13LightInstanceE' were leaked at exit.
ERROR: 1 RID allocations of type 'N10RendererRD12LightStorage5LightE' were leaked at exit.
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
ERROR: 3 RID allocations of type 'N10RendererRD11MeshStorage9MultiMeshE' were leaked at exit.
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
ERROR: 12 RID allocations of type 'N10RendererRD11MeshStorage4MeshE' were leaked at exit.
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.
     at: ~Dependency (servers/rendering/storage/utilities.cpp:56)
WARNING: Leaked instance dependency: Bug - did not call instance_notify_deleted when freeing.

This error below shows in the terminal after reopening the project:
ERROR: Condition "!sdata.is_valid()" is true. Returning: nullptr
   at: instantiate (scene/resources/packed_scene.cpp:220)
ERROR: Failed to load scene dependency: "res://Scenes/CelestialBodies/Asteroid/Asteroid.tscn". Make sure the required s.
   at: (scene/resources/packed_scene.cpp:222)
ERROR: Index p_idx = 1 is out of bounds (edited_scene.size() = 1).
   at: remove_scene (editor/editor_data.cpp:626)
ERROR: Condition "instance_count > 0" is true.
   at: set_transform_format (scene/resources/multimesh.cpp:299)
ERROR: Condition "instance_count > 0" is true.
   at: set_transform_format (scene/resources/multimesh.cpp:299)
ERROR: Condition "instance_count > 0" is true.
   at: set_transform_format (scene/resources/multimesh.cpp:299)
ERROR: Condition "!sdata.is_valid()" is true. Returning: nullptr
   at: instantiate (scene/resources/packed_scene.cpp:220)
ERROR: Attempting to parent and popup a dialog that already has a parent.
   at: (scene/main/window.cpp:1773)
ERROR: Index p_idx = 1 is out of bounds (edited_scene.size() = 1).
   at: remove_scene (editor/editor_data.cpp:626)

I don't know why this happens. What I do is I add a 3D model (glb), make it an editable children so the mesh can be targeted from MeshInstance3D, target my main mesh (godot sphere) as a surface, set some random scale and lower the number of instances. That's all, I then try to play the project but the instances don't show up (they only show in the editor), my scene is instantiated couple times in my main scene so when I move to the main scene the instances show but I get the first errors above. When I close the editor and open back there's a popup with scene corruption and the terminal has the above, mentioned as second, errors.
I tried to replicate this in a fresh new scene but so far no luck, I'm not sure why, my original scene isn't particularly much different, it only has couple godot nodes. It does not happen when adding any other nodes so only with the MeshInstance3D.
The model itself is nothing special either, I put together a sphere and a cylinder in blender and exported it as a placeholder (both have a material, both joined as one mesh) but using it agian in a different scene isn't an issue, I also tried making a new model and exporting again and again exactly same issues so I assume it's not just
I'm keeping this as a comment since I'm not sure if it's relevant to what the fix here https://github.com/godotengine/godot/pull/87205 already deals with.


Cannot insert explicit value for identity column in table 'Clients' when IDENTITY_INSERT is set to OFF.

Hello,
I want to create new client secret for existing Client like this:
I get this error: SqlException: Cannot insert explicit value for identity column in table 'Clients' when IDENTITY_INSERT is set to OFF.
public async Task<int> AddClientSecret(ClientSecretsDTO clientSecret)
{
//entity = new ClientSecret(){ Value = "HASH", Client = new Client { Id = 1 } }
var entity = clientSecret.ToEntity();

await _dbContext.ClientSecrets.AddAsync(entity); => ERROR - SqlException: Cannot insert explicit value for identity column in table 'Clients' when IDENTITY_INSERT is set to OFF.

return await _dbContext.SaveChangesAsync();
}

How can I fix this issue?
Thx.

This seems to be a general question about IdentityServer - not a bug report or an issue.
Please use StackOverflow for that. This has the advantage that questions and answers can be easily found by search engines, and that there are more people answering questions than just us.
For IdentityServer3
https://stackoverflow.com/questions/tagged/?tagnames=identityserver3&sort=newest
For IdentityServer4
https://stackoverflow.com/questions/tagged/?tagnames=identityserver4&sort=newest
For commercial support
https://identityserver.io/


jiq crashes when typing "sort" in (non-sortable) query expression

Run the standard sample—or any input—and start typing .|sort
As soon as I finish typing the word "sort", jiq crashes:
$ echo '{"aa":"2AA2","bb":{"aaa":[123,"cccc",[1,2]],"c":321}}'| jiq
panic: runtime error: slice bounds out of range [:-1]

goroutine 1 [running]:
github.com/fiatjaf/jiq.(*Engine).getContents(0xc00002a080, 0xc0002920f0, 0xf, 0xf, 0x0, 0x0, 0x0)
	/Users/erhhung/go/src/github.com/fiatjaf/jiq/engine.go:189 +0x357
github.com/fiatjaf/jiq.(*Engine).Run(0xc00002a080, 0x0)
	/Users/erhhung/go/src/github.com/fiatjaf/jiq/engine.go:69 +0x12e
main.run(0xc00002a080, 0xc00000e000, 0xc0000101d0)
	/Users/erhhung/go/src/github.com/fiatjaf/jiq/cmd/jiq/jiq.go:53 +0x32
main.main()
	/Users/erhhung/go/src/github.com/fiatjaf/jiq/cmd/jiq/jiq.go:49 +0x14d

macOS 10.15.6, go1.15, jiq 0.7.0, jq-1.6

This is really a jq error handling issue:
$ echo '{"aa":"2AA2","bb":{"aaa":[123,"cccc",[1,2]],"c":321}}'| jq '.|sort'
jq: error (at <stdin>:1): object ({"aa":"2AA2...) cannot be sorted, as it is not an array

jiq should be catching these errors though. It does for everything else.

I just "git pull"ed your master branch half hour ago to verify the "error+output" enhancement, but hit this issue.


Revert "Fix ExpansionTile shows children background when expanded"

Reverts flutter/flutter#107834
This breaks internal tests

Hey @Piinks!
Do you think it is worth it to reland the PR reverted here?

Do you think it is worth it to reland the PR reverted here?

Always! Although it may not be the highest priority right now. I don't recall how many customers were broken by this change, if it is just a few it should be relatively easy, if it was many, we might not have the time to give the attention it needs to migrate customers.
Unless we can find a non-breaking approach. The breaking change policy describes a 3-phase approach that might work well here.
I think it all depends on how breaking it is. If you are interested staging a new PR, we can definitely take a look at the affected customers and go from there. :)


Powerline fonts supporting

It seems that termtosvg doesn't support powerline fonts.
When I use  ZSH_THEME="agnoster" in my .zshrc ,there is something wrong.

Yeah, powerline fonts rely too much on the right character positioning for them to work with termtosvg. It might be possible to get it right but I spent some time on this problem and did not make any significant progress.
Something else to keep in mind: SVG animations produced by termtosvg do not contain fonts, unless you embed the font in the template yourself. So if you intend to publish the animation on the web you should probably stick to web safe fonts or are embed the font you're using in the template.
I'm closing this issue in favor of #14 where this subject was initially discussed. Please post any further comment over there.

Yeah, powerline fonts rely too much on the right character positioning for them to work with termtosvg.

With just the quick note that there is absolutely no reason to believe these glyphs wouldn't work. Essentially, fixed width is fixed width and a glyph is a glyph. Here's using (and embedding) a font that includes them for Zsh and Vim, Hasklug, which took a few minutes with an online Data URI constructor, dragging in font weights to produce:

Worst in this are occasional de-syncs after a few loops, and that the arrow/chevron glyphs extend a pixel or two below the line proper.  See #14 (this reply) for the source template version.


Handle case where >100 tweets are made per tick

100 tweets are fetched each tick. If more than 100 new tweets are made per tick, the stream might never catch up. Not sure how likely this is, but seems low priority.

No longer needed since https://github.com/walfie/granblue-raid-finder/pull/11 switches from polling to using the streaming API


GraphQL @auth top-level rule overriding field-level rules.

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?
yarn
If applicable, what version of Node.js are you using?
v15.6.0
Amplify CLI Version
4.51.0
What operating system are you using?
macOS 10.15.7
Amplify Categories
api
Amplify Commands
Not applicable
Describe the bug
I have some top-level authorization rules as well as some field-level ones. Specifically, top-level {allow: private, provider: iam} rule is getting precedence over field-level @auth(rules: [{allow: groups, groups: ["admins"]}]) rules.
In practice (see GraphQL schema below), resources with appropriate IAM role are able to create, read, update and delete all fields, including the ones protected with different field-level rules. Object owners instead are not allowed to interact with those fields as expected.
Expected behavior
Operations on protected fields to be allowed only for "admins".
Reproduction steps

Create API using below scheme.
Run amplify mock api.
Try performing operations as detailed above.

GraphQL schema(s)

# Put schemas below this line

type User
@model(subscriptions: null),
@auth(rules: [
    {allow: private, provider: iam},
    {allow: groups, groupClaim: "cognito:groups", groups: ["admins"]},
    {allow: owner, identityClaim: "sub", ownerField: "owner", operations: [read update]}
]) {
    id: ID! @auth(rules: [{allow: groups, groups: ["admins"]}]),
    owner: String! @auth(rules: [{allow: groups, groups: ["admins"]}]),
    firstName: String!,
    lastName: String!,
    email: String!,
    phone: String!,
    groups: [String!]! @auth(rules: [{allow: groups, groups: ["admins"]}]),
    permissions: [String]! @auth(rules: [{allow: groups, groups: ["admins"]}]),
    status: String! @auth(rules: [{allow: groups, groups: ["admins"]}])
}

Log output

# Put your logs below this line

Additional information
identityClaim: "sub" should be modified during testing to be able to add correct owner information from token setup in mock UI.

@ernestostifano I have a few questions
what are you using in place of identityClaim: sub? Is

@ammarkarachi thank you for your response. During mocking, as it is not possible to get user sub, I use identityClaim: custom_field to test ownership (I manually add the custom_field to the user token on the mock UI).
Basically I need this because users are created from a Lambda, but existing users should be able to read and update some values directly through the GraphQL API.
I've modified the original schema and removed "admins" logic because I decided to handle admins permissions granularly from the Lambda. I ended up with this:
type User
@model(subscriptions: null),
@auth(rules: [
    {allow: private, provider: iam},
    {allow: owner, identityClaim: "custom_field", ownerField: "id", operations: [read update]}
]) {
    id: ID! @auth(rules: [
        {allow: private, provider: iam},
        {allow: owner, identityClaim: "custom_field", ownerField: "id", operations: [read]}
    ]),
    firstName: String!,
    lastName: String!,
    email: String!,
    phone: String!,
    groups: [String!]! @auth(rules: [{allow: private, provider: iam}]),
    permissions: [String]! @auth(rules: [{allow: private, provider: iam}]),
    status: String! @auth(rules: [
        {allow: private, provider: iam},
        {allow: owner, identityClaim: "custom_field", ownerField: "id", operations: [read]}
    ])
}

What I'm trying to achieve is to give full object access to the Lambda and the following permissions to the owner (owner field, which is the ID, is set by the Lambda using user sub during creation):
    id: READ
    firstName: READ / UPDATE
    lastName: READ / UPDATE
    email: READ / UPDATE
    phone: READ / UPDATE
    groups: NONE
    permissions: NONE
    status: READ

However, for example, I'm having problems like the owner being able to UPDATE its own status field. Even if there is a {allow: private, provider: iam} protecting all operations.

@ernestostifano Thanks for the clarification it looks like the mock category needs to consider identityClaims field when mocking

@ernestostifano What JWT token are you sending to the service when you are executing the mock?


Enable large model evaluation

Type of Change
feature or bug fix or documentation or validation or others
API changed or not
Description
detail description
Expected Behavior & Potential Risk
the expected behavior that triggered by this PR
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
any library dependency introduced or removed

Type of Change
feature or bug fix or documentation or validation or others API changed or not
Description
detail description
Expected Behavior & Potential Risk
the expected behavior that triggered by this PR
How has this PR been tested?
how to reproduce the test (including hardware information)
Dependency Change?
any library dependency introduced or removed

Please fill in the PR descriptions.

Is this PR target for v2.4?
Code freeze on 11/22, Release on 12/15.


Update README document with information on policy, controls and documention

Support Question
The current Readme assumes that control/policy defining and documentation will be managed in the same way that we CFI manages policy today through an SAA.
This needs to be discussed and agreed by the maintainers and Readme/Documentation updated.

readme updated prior to OSF so this issue no longer relevant - closing.


[Feature Request] Loading multiple subjects on the Viewer UI

What feature or change would you like to see made?
Can we have a provision to load multiple studies on the OHIF Viewer(in the main view) UI  and instead of going back to the study table(that spins up as the very first page) we can directly switch to a new study by navigating through the studies in the OHIF Viewer UI itself?

We have found there is a way to load multiple studies on the main view by viewer?StudyInstanceUIDs=1&StudyInstanceUIDs=2 and so on is this the correct way or do we have any other way.

If the above mentioned way is correct then is there any way when we load different subject inside the main OHIF UI viewer, the Studies related to that subject is loaded and also if this can be done will there be any performance related issues since we can have more than 100 studies/large number of studies inside a subject?
Also are there any limits on the the URL where StudyInstanceUIDs are present like we can have this much length in the URL not more than that, since we can have large number of studies.
Why should we prioritize this feature?
Since I had a question regarding this as this is not a bug this is kind of feature which is good to have can we get answer for this no need to build the feature I need just some answer around this so I can be sure that what I am planning to do is doable on OHIF or not.

if it is the same patient, the prior studies would appear in the All tab, otherwise you need a custom component and it is not our priority. meanwhile you can use hanging protocol to match to separate studies in URL https://docs.ohif.org/configuration/url#studyinstanceuids


Add WIFI_IMMEDIATE functionality.

Ah, this isn't the IGI thing. I know the advantage of immediate packets is speed, but how much risk is there?

It's that this is only enabled if a given mode chooses to enable it.  (Though I think most modes would do better to use this over queuing up rx packets)
I can put the IGI thing in this.

That's kind of what I was getting at. If you're gonna add an option to
queue or not, I want to be clear on the pros/cons so that we know which to
use when. If one is clearly better than the other, it shouldn't be an
option, and we should just do the better thing. KISS.
I don't mind if the IGI thing is here or in another PR.
On Wed, Dec 14, 2022 at 4:56 AM CNLohr @.***> wrote:

It's that this is only enabled if a given mode chooses to enable it.
(Though I think most modes would do better to use this over queuing up rx
packets)
I can put the IGI thing in this.
—
Reply to this email directly, view it on GitHub
https://github.com/AEFeinstein/Super-2023-Swadge-FW/pull/376#issuecomment-1350763534,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABYODHQVFN4OIACMAXPDQLWNGKVPANCNFSM6AAAAAAS55IWFU
.
You are receiving this because your review was requested.Message ID:
@.***>

I'm not sure whether my mode will be compatible with interrupt-based tx/rx callbacks, since I track every packet in sequence, including ACKs. Would this cause anything to arrive out-of-order or in the middle of processing another p2p callback?

Can you describe how your mode works? If your logic sends a packet, waits
for the ACK, sends the next packet, etc. it should be fine either way.
On Wed, Dec 14, 2022 at 4:35 PM Bryce Browner @.***>
wrote:

I'm not sure whether my mode will be compatible with interrupt-based tx/rx
callbacks, since I track every packet in sequence, including ACKs. Would
this cause anything to arrive out-of-order or in the middle of processing
another p2p callback?
—
Reply to this email directly, view it on GitHub
https://github.com/AEFeinstein/Super-2023-Swadge-FW/pull/376#issuecomment-1352238084,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABYODB5ZIDT2EFYB6JRHMLWNI4SHANCNFSM6AAAAAAS55IWFU
.
You are receiving this because your review was requested.Message ID:
@.***>

I'm more concerned with the receiving side that waits for an ACK, then waits for a specific packet. As long as TX callbacks are always called before RX callbacks, it should be fine.

It's that this is only enabled if a given mode chooses to enable it. (Though I think most modes would do better to use this over queuing up rx packets)

@cnlohr I still want some guidance as to when a mode should use either method. Other developers are going to be confused by this and not know which to pick.

I can put the IGI thing in this.

Might as well

My intent was for you to begin testing the changes with IMMEDIATE_MODE + some of the IGI Stuff, while I continued working on the flight mode.  With the changes here, so far, in my apartment, the fighter works much more smoothly.


Adapt Armeria's apm-sdk-plugin (client and server) version from 0.98x to the latest version 1.22 x

[ ] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes https://github.com/apache/skywalking/issues/10278.
[ ] Update the CHANGES log.

Do you need to write new Armeria case to test or just add more versions to existing test case?

I'll add the test cases as soon as possible, this week.

Notice, you should move the other two Armeria plugins into the same place.

I'll add the test cases as soon as possible, this week.

If end users are not sensitive to the latest update(such as no user-side API change), you could just add versions to https://github.com/apache/skywalking-java/blob/main/test/plugin/scenarios/armeria-0.96plus-scenario/support-version.list
If it changes, you have to write new one.

Notice, you should move the other two Armeria plugins into the same place.

We've talked about this, put up another issue to move those two packages.

Notice, you should move the other two Armeria plugins into the same place.

We've talked about this, put up another issue to move those two packages.

Yes, usually changing structure comes first then adding new, that is why I reminded.

Could you explain what is the difference between the new case and existing Armeria cases? And new case should be added to GitHub action control file.

Could you explain what is the difference between the new case and existing Armeria cases? And new case should be added to GitHub action control file.

Since Armeria version 0.99.0, the new ServerBuilder() construction method has been removed，use the Server. builder () method instead

After careful consideration, I think I can modify the initial method of ServerBuilder in the armeria-0.96plus-scenario module, so that I don't need to add new modules

@kezhenxu94 Could you take a look?


Removing Features from Statblock

Hey!
Thank you for this. The plugin is amazing.
I am wondering if it is possible to not replace but rather remove features from the statblock without using a custom layout. Sometimes it works and sometimes it doesnt. For example:
If I override spells like so
monster: spellcaster
spells:

The spells are removed (the entire section).
But if I want to remove a specific trait it doesnt work.
This leaves all traits intact.
monster: ...
traits:

And this removes the description but the trait stays.
monster: ...
traits:
- name: trait to remove
  desc:

This would be very useful since premade statblocks are so bloated they take up my entire note (specially monsters of 6+ CR they usually have a bunch of not very relevant traits)....

@Oudwins
As you go about poking at Statblocks later for the other topic, a release for #156 also has the effect that your request should now consistently work. Could you check at some point and get back and confirm?


Try building on Windows

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.

Needs https://github.com/conda-forge/safeint-feedstock/pull/4 and https://github.com/conda-forge/optional-lite-feedstock/pull/3

This needs a statically linked libprotobuf on Windows.

Closes #31

Closed with #56


Update Button API

Update Api to provide a buttonStyle, not an ODSButton

For Tests (PO, design, Accessibility), verify that there is no différences introduce by API refactoring.


[Backport] [1.x] Upgrade to log4j 2.16.0 (#1721)

Signed-off-by: Andriy Redko<EMAIL_ADDRESS>Description
Backport of https://github.com/opensearch-project/OpenSearch/pull/1721 to 1.x
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

start gradle check


Bug: Blank screen when user navigates from one Test Type Code to Another

Issue:
When a user is working on a Test Type in Test Data module, expands various data sections and wishes to navigate to a different Test Type Group, then the system crashes an displays a blank screen
Note: This issue is applicable to both the Global view and the Workspace
Steps to Recreate:

Log in to ECMPS and access the Test Data Module
Select and checkout a Configuration and select a Test Type Group with nesting
Click on + to expand the Test record sections
Now click on the Test Type Group dropdown and select a different Test Type
You will see that the screen turns blank at this point

Testing
Tester: @JanellC

Bug resolved in global and workspace


Typescript doesn't recognize aliases

Description
Even though the config is loaded as documented, Typescript can't recognize the set aliases
CodeSandbox/Snack link
No response
Steps to reproduce

Install gluestack as documented
Make sure that you use Typescript

gluestack-ui Version
1.0.3
Platform

[X] Expo
[ ] React Native CLI
[ ] Next
[ ] Web
[ ] Android
[ ] iOS

Other Platform
No response
Additional Information

@pataar Can you please try updating @gluestack-style/react and @gluestack-ui/themed to the latest?

same.


SelectMenu has required css property

Describe the bug
I tried to use <SelectMenu> from this example and get an error message that css property is missing
To Reproduce
Steps to reproduce the behavior:

Copy this code from docs
Error should appear

Expected behavior
There is no error message. I think that css property should not be required
Screenshots

Additional context
@primer/components v28.3.1
TypeScript v4.3.5

Hi, @pavelkeyzik. That's likely related to this issue: https://github.com/primer/react/issues/1163
We're working on a fix. In the meantime, let me know if @dmarcey's workaround works for you.

Thanks, @colebemis! It works well 👍

Closing this as a duplicate of #1163


Provided type quickinfo shouldn't show hidden and obsolete members

Fixes #321, an extended case of #50.
Needed to add similar logic to layoutProvidedTycon as was added to layoutTycon in #73

Thanks!


[Feature Request] Supporting JPMS

Since Java 9 introduces JPMS, libs without module-info or Automatic module declaration cannot be used after Java 9, is there any plan to support it?

related discussions:
https://github.com/brettwooldridge/HikariCP/issues/1045
https://github.com/oshi/oshi/pull/1247

Thank you @arjenzhou. Yes, we definitely need this.

This has been available since 0.3.2-test1.
In addition to explicit declaration in each module, Automatic-Module-Name was used for shaded jar in case it's needed somewhere.