Propetry 'failOnMissingInput' of type boolean shouldn't be annotated with @Optional.

Describe the bug
Trying to migrate from 0.6.1 to 0.7.0 and Gradle is reporting the following error:
A problem was found with the configuration of GenerateAndAggregateDocumentsTask[metadataInputs=[], documentName='Configuration Options', documentDescription='model9-cdp-agent configuration options', type=ADOC, htmlCustomization=HtmlTemplateCustomization[backgroundColor='#7db04b', linkColor='black', collapsibleHoverColor='#96d95c', codeColor='#eeeeee', evenTableRowColor='#f3f3f3', lastTableRowColor='#009879', tableRowColor='#ffffff', tableRowBorderColor='#dddddd', textColor='black', tocTitle='null', headerEnabled=true, tableOfContentsEnabled=true, includeUnknownGroup=true, unknownGroupLocalization='Unknown group', includeGenerationDate=true, removeEmptyGroups=false, locale='null', contentCustomization=ContentCustomization[includeClass=true, includeKey=true, includeType=true, includeDescription=true, includeDefaultValue=true, includeDeprecation=true, includeEnvFormat=false], templateMode=STANDARD], markdownCustomization=AbstractTemplateCustomization[tocTitle='null', headerEnabled=true, tableOfContentsEnabled=true, includeUnknownGroup=true, unknownGroupLocalization='Unknown group', includeGenerationDate=true, removeEmptyGroups=false, locale='null', contentCustomization=ContentCustomization[includeClass=true, includeKey=true, includeType=true, includeDescription=true, includeDefaultValue=true, includeDeprecation=true, includeEnvFormat=false], templateMode=STANDARD], asciiDocCustomization=AsciiDocTemplateCustomization[tocPlacement=AUTO, tocLevels=4, tocTitle='null', headerEnabled=true, tableOfContentsEnabled=true, includeUnknownGroup=false, unknownGroupLocalization='Unknown group', includeGenerationDate=false, removeEmptyGroups=true, locale='null', contentCustomization=ContentCustomization[includeClass=true, includeKey=true, includeType=true, includeDescription=true, includeDefaultValue=true, includeDeprecation=false, includeEnvFormat=false], templateMode=COMPACT], xmlCustomization=AbstractTemplateCustomization[tocTitle='null', headerEnabled=true, tableOfContentsEnabled=true, includeUnknownGroup=true, unknownGroupLocalization='Unknown group', includeGenerationDate=true, removeEmptyGroups=false, locale='null', contentCustomization=ContentCustomization[includeClass=true, includeKey=true, includeType=true, includeDescription=true, includeDefaultValue=true, includeDeprecation=true, includeEnvFormat=false], templateMode=STANDARD], outputFile=/Users/rbahat/dev/model9-backup/model9-cdp/model9-cdp-agent/model9-cdp-agent/docs/modules/ROOT/pages/configuration-options.adoc, templateCompilerName='org.rodnansol.core.generator.template.handlebars.HandlebarsTemplateCompiler', headerTemplate='null', contentTemplate='null', footerTemplate='null', failOnMissingInput=true] (type 'GenerateAndAggregateDocumentsTask').
  - In plugin 'org.rodnansol.spring-configuration-property-documenter' type 'org.rodnansol.gradle.tasks.GenerateAndAggregateDocumentsTask' property 'failOnMissingInput' of type boolean shouldn't be annotated with @Optional.

To Reproduce
The GenerateAndAggregateDocumentsTask task I'm trying to migrate looks like:
val configDocsModel9CdpAgent = tasks.register<GenerateAndAggregateDocumentsTask>("configDocsModel9CdpAgent") {
    documentName = "Configuration Options"
    documentDescription = "model9-cdp-agent configuration options"
    type = TemplateType.ADOC
    isFailOnMissingInput = true
    outputFile = file("${projectDir}/model9-cdp-agent/model9-cdp-agent/docs/modules/ROOT/pages/configuration-options.adoc")

    asciiDocCustomization(delegateClosureOf<AsciiDocTemplateCustomization> {
        isIncludeUnknownGroup = false
        isIncludeGenerationDate = false
        isRemoveEmptyGroups = true
        templateMode = TemplateMode.COMPACT
        contentCustomization(delegateClosureOf<ContentCustomization> {
            isIncludeDeprecation = false
        })
    })

    // TODO (rodedb): Calculate dependent modules at runtime
    val cdpAgentModule = AggregationInput()
    cdpAgentModule.name = "model9-cdp-agent"
    cdpAgentModule.input = file("${projectDir}/model9-cdp-agent/model9-cdp-agent")
    metadataInputs.add(cdpAgentModule)

    val awsStarterModule = AggregationInput()
    awsStarterModule.name = "model9-cdp-starter-aws"
    awsStarterModule.input = file("model9-cdp-spring-boot/model9-cdp-starter-aws-springboot2")
    metadataInputs.add(awsStarterModule)

    outputs.upToDateWhen { false }
}

Not sure if this is a bug or incorrect usage on my part, any help would be appreciated.
Using Gradle 7.6.2
TY

Hi @roded
Let me check this as soon as I have time for it.

Much obliged @nandorholozsnyak

Any news on this @nandorholozsnyak ? I'm having the exact same problem with a similar configuration of the plugin.

Hello @NunoCardia
Unfortunately I did not have time to check it properly yet, I'm not really having enough time nowadays, but this weekend I try to find some time for it.
Of course, contributions are welcome, but I know it is also not an option for every issue like this :)

Hello @roded & @NunoCardia
I made a fix for that, I'm not sure how it will work on the long run, and I hope that nothing is broken after it. I'm not familiar with Gradle, and I have already encountered a few "caching" related traps during development.
I'm opening a PR soon. I would like to ask you to verify the behaviour if possible by checking out the branch and building the project, after that you should use the 999-SNAPSHOT version in your project and just run the tasks/goals that failed before.

Hi @nandorholozsnyak thank you for the quick response. I´ve built the project and it works now, no errors! Are you able to create a patch release of some sort?

Hi @nandorholozsnyak thank you for the quick response. I´ve built the project and it works now, no errors! Are you able to create a patch release of some sort?

Yes I will try to do a release today.

Fixed with #101


webpackChunkName is missing in webpack production mode

Do you want to request a feature or report a bug?
bug

What is the current behavior?
webpackChunkName is missing in webpack production mode
If the current behavior is a bug, please provide the steps to reproduce.
demo project: https://github.com/Wyntau/webpackChunkName-demo
the output is in production directory

What is the expected behavior?
webpackChunkName is corrent in production mode
Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
webpack 4.2.0

It is not a bug @Wyntau
Named chunks are disabled for production mode, you can override the default behavior by modifying your config:
module.exports = {
  mode: process.env.NODE_ENV === 'development' ? 'development' : 'production',
  ...
+ optimization: {
+   namedChunks: true
+ }
}

Note: Since the chunk name includes all origin chunk names it’s recommended for production builds with long term caching to NOT include [name] in the filenames, or switch off name generation via optimization.splitChunks.name: false. Elsewise files will invalidate i. e. when more chunks with the same vendors are added.

@EugeneHlushko Thanks for you answer.
Could you please have a look at #6866
Does [request] require a variable in webpackChunkName?

I glad i could help @Wyntau
I had seen the issue yesterday, but unfortunately i need some time to investigate so did not leave a comment yet maybe someone from our team will respond quicker

I don't understand how to write dynamic module loading which will work in production with default, namedChunks: false?


add support for apple NSJSONSerialization

iOS 5 introduced support for JSON with NSJSONSerialization
it would be nice to add even though JSONKit still beats it in performance

Bump, this would be nice


Sega 32X has wrong core assigned in index.lua

I was having issues getting 32X games to boot and it lead me to notice that you have Genesis GX Plus as the assigned core, whereas it actually should be PicoDrive, given that Genesis GX Plus does not support the 32X.

Hi, thanks for reporting.
I've released a fix in v3.6.2 if you would like to download it.


Standardizing datasets dtypes

This PR follows up on discussion in #1900 to have an explicit set of basic dtypes for datasets.
This moves away from str(pyarrow.DataType) as the method of choice for creating dtypes, favoring an explicit mapping to a list of supported Value dtypes.
I believe in practice this should be backward compatible, since anyone previously using Value() would only have been able to use dtypes that had an identically named pyarrow factory function, which are all explicitly supported here, with float32 and float64 acting as the official datasets dtypes, which resolves the tension between double being the pyarrow dtype and float64 being the pyarrow type factory function.

@lhoestq - apologies for the multiple PRs, my previous one (#1905) got mangled due to some merge conflicts that I had trouble resolving so I just cherry-picked my changes onto a fresh branch here.


C2PA specifications are reference to private repo

https://c2pa.org/ welcomes comments on the specifications and links to: https://github.com/c2pa-org/specifications/issues
however, that source is in a (probably) private repo and thus gives a 404.
I expected it to be In a public repo. Is this the repo that the page should refer to?

@mzeinstra - that link is to a public repo with contains our repository for the specification itself.  Are you having issues accessing that repo?
We do have private repos as well, but I don't believe any are referenced from public documentation.

@lrosenthol - Thanks for the reply. Are you sure that is set to public? See the screenshot of the 404 I see when I click on the link: https://github.com/c2pa-org/specifications/issues

I'm seeing that as well if I'm not logged in. "specifications" is still private and shouldn't be.

Sorry - try now!

Yep works now, thanks!


Proxy: acceptance test for proxy store with replica labels

[ ] I added CHANGELOG entry for this change.
[x] Change is not relevant to the end user.

Changes
Added acceptance test for a proxy store with replica labels.
Verification
Acceptance Tests

LabelNames test fail because we dont drop replica label for LabelNames or LabelValues gRPCs


CLI integration

I friendly cli command would be great.

could you elaborate on the feature request?

yes, a clid command such as id128 should return a hash. This helps scripting CI/CD.
the list of options shall be similar to your Factory.


Tmux poetry update

Tmux poetry update
What user problem are we solving?
We're restoring tmux script functionality with poetry.
What solution does this PR provide?
I simply made changes to file with updated commands.
Testing Methodology
How did you test your changes and verify that existing
functionality is not broken
I pulled latest version of nextjs and script worked fine with no errors.
Any other considerations

@noah-iversen screenshot of output when you run the tmux script? I have Ubuntu distro, so will it work there?

@noah-iversen screenshot of output when you run the tmux script? I have Ubuntu distro, so will it work there?

Here ya go.

fantastic @noah-iversen . can you go into localhost:3000 and log into dlp. send screenshot of the backend logs?

fantastic @noah-iversen . can you go into localhost:3000 and log into dlp. send screenshot of the backend logs?

good job. safe to merge


Non-linear behaviour when parsing a<?a<?a<?...

I believe this is fixed by https://github.com/raphlinus/pulldown-cmark/pull/281.

Oh, just realized that you already said this in https://github.com/raphlinus/pulldown-cmark/issues/280#issuecomment-487665793 . I tested against the marcusklaas/remove-inline-scanner branch and it indeed doesn't seem to produce non-linear behaviour anymore. You can add Fix #282 to the toplevel comment on the #281 PR to have this issue auto-closed once it's merged.

Fixed now on 0.5.1 and master!


Limit progress bar updates to once per second on non-terminal outputs

What does this PR change? What problem does it solve?
PR #3058 rewrote the progress bar implementation and in that progress reenabled it for non-terminal output.
However, the code accidentally checked whether stdin is a terminal instead of stdout, the former is not relevant here as the output is printed on stdout.
Was the change discussed in an issue or in the forum before?
Reported at https://forum.restic.net/t/new-prune-log-spam/3284 .
Checklist

[x] I have read the Contribution Guidelines
[x] I have enabled maintainer edits for this PR
[ ] I have added tests for all changes in this PR There's no nice way right now to test this.
[ ] I have added documentation for the changes (in the manual)
~~[ ] There's a new file in changelog/unreleased/ that describes the changes for our users (template here). ~~ I haven't added a changelog entry as this PR is a fixup for #3058, which (currently) does not have a changelog entry.
[x] I have run gofmt on the code in all commits
[x] All commit messages are formatted in the same style as the other commits in the repo
[x] I'm done, this Pull Request is ready for review

Is there really a need to print progress bars’ updates on non-terminal output? If I’m understanding the change correctly even if limited to 1 line per second it will still mean hundreds or thousands of useless lines in every log file or email message.
The current behaviour (only one line printed at the end) looks a lot more sensible to me.

The current behaviour (only one line printed at the end) looks a lot more sensible to me.

It's a feature request to have status updates even when output is written to a log file. In your case, passing --quiet should do what you want. :)

The current behaviour (only one line printed at the end) looks a lot more sensible to me.

It's a feature request to have status updates even when output is written to a log file. In your case, passing --quiet should do what you want. :)

But --quiet silences other output that one generally may want in a log file so it’s not a solution.
My point is that interim updates are something that is necessary when using a software interactively (because they show that the software is still working as expected and allow the user to roughly estimate how much work is left to do) but are useless when one is just interested in receiving a final status report (say an email, that’s my case) or is logging information to eventually be able to check it later.
In that case a user may very well want to have the most output possible (increasing verbosity) but 900 almost identical lines, one per second on a simple 15 minutes run, don’t tell anything useful and only drown relevant information in a sea of noise.
As far as I know this is the behaviour of most software who has progress bars, I may be wrong but I can’t remember seeing interim updates in non-interactive usage.

When you get that email with 900 almost identical lines you can scroll past them with a quick flick of the mouse. Those lines will also compress very well, so will take an insignificant amount of email storage capacity.
IMHO the progress bars when the output is not a TTY is useful because for long running jobs it is common practice to direct output to a logfile, and then tail the logfile. Personally when a cron job is taking a long time I will examine /proc to find the process and it's logfile & tail that.
I would agree that once per second could be a bit too frequent. I would suggest once per 10 or 30 seconds would probably be better (or make it configurable).

What I care about is not disk space, it's attention, which is a quite more valuable commodity: since every task with a progress bar outputs a share of those lines what you get is a lot of almost identical lines interspersed with the few lines you were actually interested in, and what would have been a short email visible in its entirety even on a smartphone display and checked in a couple seconds becomes a long email that must be browsed carefully.
Multiply that for N clients sending M emails every day every time restic runs, or exporting the logs to a central server, and suddenly this is not something you can just work around by scrolling past it with a quick flick of the mouse anymore. I may be wrong but I think that this use case is more common than the occasional time when one has to check the log file live when restic is running.
IMHO the default for non-terminal outputs should go back to not printing the progress bar interim updates, as it was before, and the feature should be explicitly enabled with a specific option, but I suppose the opposite would be good too as long as it's possible to completely disable the extra output.
Enabling it only for higher verbosity levels would be a possibility too, but in that case it should happen only with --verbose=2 or -vv and it must be done carefully because right now the verbosity levels are treated a bit inconsistently (basically --verbose and default are the same thing, see https://github.com/restic/restic/pull/3009 for more details).

@plumbeo Please add your use case to #2706. I agree that it's probably best to give user the choice between progress bar updates or not.

How about limiting it even more than once per second on non-tty.  I would love to have some periodic feedback about progress of long running commands in my logs, but don't need one log line every second.  Maybe one every 10 or 30 minutes (or even better -every estimated 10% of the remaining time or something), just to know the job is actually progressing.


Rename computed to map

I like the use of map for "derived" computations in Anchor's readme: https://github.com/lord/anchors

Closed via 1551f49


Add option to ignore certain files when inlining

Right now for my project, I am using the inlineEverything task to inline css stylesheets. However, I only want one of the stylesheets inlined, and the other to just keep the link tag in the html file. Could you add another option called filesIgnore, for example, which takes an array of file names to ignore when inlining? I would also be happy to create a PR to implement this change.

hi Kelly, seems like a reasonable request! I don't have bandwidth to do this myself, but I'd happily accept a PR if you create one. Thanks!

Great! I'll create a PR soon then!

@pbakaus Sorry I actually just found out our project's already using a fork of your grunt-cruncher, so I won't be needing to make a PR to this repo. But thank you for replying so fast!


Fix flaky TransactionTests.testResponseStreamFails() test

Motivation
EmbeddedEventLoop event loop is not thread-safe but we create a EventLoopFuture that is required to be thread-safe from an EmbeddedEventLoop. This leads to undefined behaviour and therefore a flaky test.
Modification
This PR replaces the EventLoopFuture with a simple Promise implementation that uses Swift Concurrency to protect against concurrent access.
Result
Before this patch, I could reliably fail the test after ~5K repetitions.
With this patch, I have run the test 100K times without a single failure.
Note: this only effects code in the test target

5.7 & nightly fail because of sendable related errors.


Stop download after cloud execution

When running on the cloud, I seem to have instructed snakemake to download the results from the cloud at the end of the execution. Is it possible to simply have the output in default-remote-prefix and not downloading them?
Here an example:
snakemake --tibanna --default-remote-prefix ${BUCKET}/try --jobs 20  --default-remote-provider S3 --no-shared-fs
with this a small Snakefile:
samples = list(range(2))

rule all:
    input:
       expand("output/{sample}.out", sample=samples)

rule hostname:
    output:
        "output/{sample}.out"
    shell:
        "hostname > {output}"

Downloading remote files happens because rule all is not being executed in the cloud, but rather locally as localrule all (this can be seen in the snakemake run log).
The following rule all will execute remotely as it has a shell directive, thus preventing local file download. Note the output placeholder file is to prevent the job from being force-run upon each invocation:
rule all:
    input:
        expand("output/{sample}.out", sample=samples)
    output:
        "output/workflow-complete.txt"
    shell:
        "touch {output}"

This isn't a great solution as it just moves file download to the remote job rather than avoiding it; ideally when using --default-remote-prefix snakemake would detect that remote input files are present and, given no shell directive or output, provide the typical response Nothing to be done. Thoughts @johanneskoester ?

I am coming up against this problem now. I have an large workflow that generates a lot of data. After running efficiently in parallel on the cluster the rule all runs forever as it downloads all of the files from remote. It's not the end of the world but certainly annoying.
Would love an option to prevent downloading the inputs of the first tule


Update font-vazir to 4.4.0

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Merged as 345f2dce465ef3ebf112fa5a32a8854cb9422654.


BUG: About section issue

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
About Section issue

The information div should be more wide refer to screen.

Please add hactoberfest and GSSoC24 tag. You can assign me for this issue.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

hey @4F24L can i take this up ?

@PriyaGhosal You shouldn't merge other PR. When the issue is already assigned to someone.


[Bug]: Issues related to tooltips in the app

Is there an existing issue for this?

[X] I have searched the existing issues

Description
Following are issues related to the tooltip component throughout the app:

The content of the tooltip when user tries to add more than 4 nested where condition groups is not proper.

Since we are allowing only 3 where condition groups, shouldn't the tooltip be "For S3 only 3 nested where condition groups are allowed" instead of the above?

The tooltip gets truncated while hovering over a long page name in a deployed app.

Upon pressing Tab on the keyboard, some of the tooltips do not appear like they do when the user hovers over the icons manually using a mouse.

The user does not get a tooltip while hovering over a long API name.
https://www.loom.com/share/0f610df2bd7c443cb5e2dffdb0e255b2

5.Tooltip for JSObject without any function is truncated.

If a Rating widget has a Max Rating of more than 5, the tooltip does not appear for the rest of the ratings. (Should this be treated as a bug?)
https://www.loom.com/share/9d83bc5c0618494cafd9e4a1f4e900e4

Design Inconsistency: The tooltip for Troubleshoot issue and while multi selecting widgets does not have the arrow/speedbump.

Also for multi select widget tooltip why are we showing the paste option in the tooltip for copy & cut ?

No tooltip displayed for the ! icon.

At several places throughout the app e.g. Relationships entity hover, notification bell icon, Account avatar etc. there is a delay in displaying the tooltip.

The git branch name icon does not have a tooltip.

Steps To Reproduce
Check the tooltips all over the app.
Public Sample App
No response
Version
Cloud

Closing coz this is fixed in https://github.com/appsmithorg/appsmith/pull/22030


[RESTEASY-3286] Use the new NIO file utilities to create temporary files

https://issues.redhat.com/browse/RESTEASY-3286

@jamezp: for which version of resteasy will that be solved (do not have any access to resteasy-Jira-project) and when will that be released? So will there be a fix for 4.7.X too? I am asking because there is a vulnerability linking to this commit here: https://nvd.nist.gov/vuln/detail/CVE-2023-0482

@AndreasIgelCC For the following versions:

4.7.8.Final
5.0.6.Final
6.2.3.Final

Thank you for your response, that helps a lot!!


FNP header

I didn't see this in your outstanding write up -- next to the JTAG connector there is an unpopulated FNP header -- I believe it stands for Firmware Not Present. Shorting it boots the card into the firmware recovery. It seems more convenient than shorting the FLASH IC pins (and you can leave the short in place while reprogramming the firmware).

Thanks michalkouril! I first tried shorting the header with a 1k resistor and then a proper short and both caused the board to boot into Firmware Recovery Mode. Thanks for the tip! I was unaware this is what FNP stood for. I have updated my notes.


API service decision request

Hello
thanks for your wonderful extension
how to implement an inference model into a separate API service based on FAST_API or a similar one, so that you can deploy the model on an instance with a powerful GPU and give access to several low-power workstations with a slicer using the API
Thank you

Hi @DimIsaev ,
To create an API for deployment, you can use one of the following methods :

Create a server running directly the nnUNet library
Create a script and call 3D Slicer in command line to run the DentalSegmentator segmentation and export the results
Use 3D Slicer to run the server directly

If you want to use the segmentation without any GUI, options 1 or 2 would be the easiest.
Option 2 would allow you to have some cleanup for the segmentation and more export options but will be harder to debug.
Best,
Thibault


Propagate raw response threw Exceptions

Use in case when you need the error's payload on 404 (method not found) or 500 (some server error) responses.

Coverage remained the same at 100.0% when pulling 64a4b06c8a27416460485008612edc4cb5542214 on ondrejsika:master into 120e71e2af6f847c89076e46d3593fb2e623e2a2 on gciotta:master.


Add BaseEvaluator and AccuracyEvaluator

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (94fc862) to head (fa31885).
Report is 60 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #583   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          143       146    +3
  Lines         3974      4006   +32
  Branches       189       190    +1
=========================================
+ Hits          3974      4006   +32

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


create symlinks before composer install

I'm using rocketeer to deploy a symfony application and have the following in my remote.php file
<?php

return array(
    // other stuff

    // A list of folders/file to be shared between releases
    // Use this to list folders that need to keep their state, like
    // user uploaded data, file-based databases, etc.
    'shared'         => array(
        '{path.storage}app/logs',
        '{path.storage}app/config/parameters.yml',
    ),
    // other stuff
);

The problem i'm encountering is the symlinks are being created after composer installs dependencies. Symfony apps have post composer install scripts that get run and one is failing because my parameters.yml file hasn't been symlinked yet.
I don't know if i need to remove the above from my remote.php file and create a custom task to do this. If i do need to create a custom task, i'm not sure where it exactly it should be registered to fire before composer installs. Should it be: before.setup, before.deploy, after.setup, or after.deploy?

You should be able to do this:
Rocketeer::before('dependencies', function ($task) {
  $task->share('app/config/parameters.yml');
});

Sorry for being a bit think, but where should we add those lines?

Ignore that.  I managed to work it out.  For those wondering…
// hooks.php
return [

    // ...

    // Tasks to execute before the core Rocketeer Tasks
    'before' => [
        // ...
        'dependencies' => [
            function ($task) {
                $task->share('app/config/parameters.yml');
            }
        ],
        // ...
    ],

This could also be done after create-release but watch out for #574.

This method 'share' does nothing if the directories do not exist in the shared folder. If you do
$task->share('vendor');

You have to put an empty "vendor" directory in your shared folder before runing rocketeer.

Hm that's weird, it should create it if not found

Not sure about this case but I noticed that I have to ensure the parent directories of a shared directory have to exist. In my case the web directory was created by a separate build script and I wanted to share a web/dist directory which failed because the web directory didn't exist yet. I solved this by adding an empty web/.gitkeep to have it available directly after clone.

Should the shared files be always run first? With Laravel and the .env file, I keep running into issues sometimes (key not set on clear-compiled etc). Mostly because of doing something to fast in Laravel, but would be good to have the environment setup before running commands.

I have to add $task->share('.env'); as well before compose update runs (put it in dependencies-before)...but when I do this it DOES NOT symlink .env, it just copies it....why?  It is also in remote.php as
'shared'         => [
    'storage',
    'public/uploads',
    '.env',
],

@mreschke You should either have it as shared i your remote.php or share it manually in your hooks.php. In any case it should do a symlink. Is your remote machine a Windows system by any chance?

All Debian 8 linux environments.  And it is in remote.php as in my previous comment.  And $task->share('.env') is in a hook via events.php Rocketeer::before('dependencies') and at that piont it COPIES it for some reason.  And no .env is not in github to begin with...never symlinks it, very odd.  I have 18 rocketeer deployments, every one never symlinks .env for some reason.  The other storage and public/uploads (folders) you see in remote.php symlink to shared just fine as one would expect.

I CTRL+C rocketeer just after dependencies-before which has $task->share('.env') flies by then checked the server, it is a .env symlink.  So it's something toward the end and overrides it.  In fact it is...at the very end, I have a task that does a
$task->runForCurrentRelease("sed -i 's/MRCORE_FOUNDATION_ASSET_CACHE_VERSION=.*/MRCORE_FOUNDATION_ASSET_CACHE_VERSION=$timestamp/g' ./.env");

and THAT seems to be replacing the symlink with a copy.  So nothing with Rocketeer, just linux behavior. I apologize.
Feel free to delete my last few comments to help keep this thread clean.


When using as counter with starting value

When using the Flipclock with the latest CSS from the download area, the counter starts with a strange initial value.  If I start with the value 240, the counter counts up one time from 139.,...
As I tested out, this behavior is only appearing with the new CSS, when using the CSS from 0.7.8 the counter starts at initial value.

This is fixed in the newest version. Look at the js-es6 branch or install with NPM. The docs are in the repo. I should have the website updated in the next couple of days with the new docs, and this will be the master branch and be v1.0.0.


Change section for Project Management

Codecov Report

Merging #254 (05f47c4) into master (15a767d) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #254   +/-   ##
=========================================
  Coverage     69.00%   69.00%
  Complexity      784      784
=========================================
  Files           131      131
  Lines          2833     2833
  Branches        361      361
=========================================
  Hits           1955     1955
  Misses          760      760
  Partials        118      118

Continue to review full report at Codecov.

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

LGTM


[ConstraintSolver] Unify value-to-pointer conversion scoring

Instead of having three different scores for - string, array, inout,
let's unify them under a single value-to-pointer score and use
it in appropriate places when simplifying restricted constraints.

@swift-ci please smoke test

@swift-ci please test source compatibility

@swift-ci please smoke test and merge


(chore) Refactor User#create to wrap Auth0 creation & catch errors

A Rollbar error https://rollbar.com/dxw/ccs-reportmi-api/items/65/occurrences/66083571076/ indicates a user has somehow been added to RMI without an associated Auth0 account. It's not entirely clear how this could have happened but the positioning of the rescue block in User#create is suspect.
This refactor wraps User#create_with_auth0 in a begin..rescue block and hopefully means we have more of a "belt & braces" approach to handling errors from both ActiveRecord and Auth0

While @tekin says we've isolated this to a double submit error, the scoping of the exception handling is better/more obvious/tighter here, and I wonder if we should have this change anyway.

@rgarner / @lozette yep, agree this is clearer/tighter, happy for us to continue with the change, although would suggest if we do the commit message is amended to reflect our new understanding.


Double bottom-left-menu

uhhhhh no idea how or why this could happen
they both contain the same children, when I open one the other one opens, the bottom one doesn't work, when i open or edit the children of the menus the other one changes as well, and the bottom one doesn't function at all

this is consistent as well, and only happened after I installed the umbreon room for testing (betterinfo is there from GDTweaks), but neither mods touch it other than adding their ccmenuitemspriteextra to it
uninstalling umbreon room fixes the issue, and reinstalling it brings back the issue
https://github.com/geode-sdk/DevTools/assets/98057141/0e0853b0-609a-420e-a95e-42cd57d97705
The relevant code from Umbreon Room
The relevant code from GDTweaks

NEVERMIND this is because of the mod, they're just both the same ccmenu, but that weird stuff still probably shouldn't be happening


Use Llama3 for PrivateGpt

How is it possible to use Llama3 instead of mistral for privatgpt

I have used ollama to get the model, using the command line "ollama pull llama3"
In the settings-ollama.yaml, I have changed the line
llm_model:  mistral
to
llm_model: llama3       # mistral
After restarting private gpt, I get the model displayed in the ui.

I have used ollama to get the model, using the command line "ollama pull llama3" In the settings-ollama.yaml, I have changed the line llm_model: mistral to llm_model: llama3 # mistral
After restarting private gpt, I get the model displayed in the ui.

Apology to ask. Seems like you are hinting which you get the model displayed in the UI. but not actually working? Or have i overinterpretated the statemenet

Remember that if you decide to use another LLM model in ollama, you have to pull before.
ollama pull llama3
After downloading, be sure that Ollama is working as expected. You can check this using this example cURL:
curl -X POST http://localhost:11434/api/generate -d '{
  "model": "llama3",
  "prompt":"Why is the sky blue?"
 }'


french-translation

If you are satisfied with this pull request, you can accept it and close this pull request. https://github.com/pkgxdev/ossapp/pull/837

@DavidKorystov thanks. please fix the conflicts.

@getneil done

@Xercesblu3 please check.


Different length of a string in js ActiveFrom validation and php StringValidation

What steps will reproduce the problem?
Create active form with textarea input.
Add string validator to input with max length 20.
Enter in textarea text (19 characters) with line break.
What is the expected result?
Js not counting line breaks, but php takes them.
What do you get instead?
Js validation true and php validation false. If in form exist fileinput, this behavior is bad for validator.

Additional info

Q
A

Yii version
<IP_ADDRESS>

PHP version
7.1

Operating system
Windows 7

I cant find the duplicate, but its been reported already, JS handles newline with 1 charachter while php takes 2

It was for Yii 1.1, I guess...


The terminal can't execute the "cd xxx" command

Describe the bug
I want to test if the E2B sandbox executes all commands well, as it's required for LLM Agent to do anything, but some issues appear:

the cd command doesn't work. This may be caused by the fixed parameter "cmd" in the initialization of TerminalManager
the terminal also can't set the environment variables,

To Reproduce
Steps to reproduce the behavior:
    sandbox = Sandbox()
    while True:
        cmd = input("Enter command: ")
        if cmd == "exit":
            break
        proc = sandbox.terminal.start(lambda data: print(data), 1, 1, cwd="/home/user", cmd=cmd)
        proc.wait()

Expected behavior
E2B terminal works as the real terminal.
Terminal commands & output
Enter command: ls
java
jdk-11.0.2
jdk-11.0.2_linux-x64_bin.tar.gz

Enter command: cd java
Enter command: ls -a
.
..
.bash_logout
.bashrc
.profile
.sudo_as_admin_successful
java
jdk-11.0.2
jdk-11.0.2_linux-x64_bin.tar.gz

Enter command: export TEST=1
Enter command: echo $TEST

Enter command:

Desktop:

OS: Ubuntu18

Any feedback will be helpful.

Hey @XitaoLi , we recommend using the Beta SDK (https://e2b.dev/docs/guide/beta-migration) — it has module for terminal (pty) that should work more clearly.
Here is the implementation (https://github.com/e2b-dev/E2B/blob/beta/packages/python-sdk/e2b/sandbox_sync/pty/main.py) and here is an analogous usage in our CLI (in TypeScript) (https://github.com/e2b-dev/E2B/blob/beta/packages/cli/src/terminal.ts#L12).
If you want just to execute a command, the sandbox.process.start_and_wait (or sandbox.commands.run in Beta SDK) might be a better solution here — the terminal/pty is made to be connected to an actual terminal emulator, outputting all the colored output and taking into account things like terminal size, which might not be relevant for you.

@ValentaTomas Thanks for your quick response. I have tried the commands.run method in the latest version, similar to sandbox.process. It still can't change the working directory flexibly according to the cd command.
Any other suggestions for connecting an actual terminal emulator using E2B? It's essential for LLM Agnets.

We added the pty/terminal to the Python Beta SDK — https://github.com/e2b-dev/E2B/blob/beta/packages/python-sdk/e2b/sandbox_sync/pty/main.py#L78
A very brief example of the usage can be found in the SDK automated tests here https://github.com/e2b-dev/E2B/tree/beta/packages/python-sdk/tests/sync/sandbox_sync/pty
We are working on more detailed documentation in the meantime.

It still can't change the working directory flexibly according to the cd command.

With the commands.run, each run is like a separate terminal session, and the directory you got into via cd there won't affect other sessions. The pty/terminal I mentioned in the previous comment might in the end be more useful to you.


.foodcritic file has been removed

Description
.foodcritic file removed as it's not needed

Resolved via #415


[libogg] Build error

package: libogg[core]:x86-windows-static -> 1.3.5
vcpkg-tool version: 2022-03-09-1affd32f93b299d5a907816c328ca3ededb73a7e
vcpkg-scripts version: unknown

Trying to install this libraries:
.\vcpkg.exe install boost-iostreams:x86-windows-static boost-asio:x86-windows-static boost-beast:x86-windows-static boost-system:x86-windows-static boost-variant:x86-windows-static boost-lockfree:x86-windows-static boost-process:x86-windows-static boost-program-options:x86-windows-static luajit:x86-windows-static glew:x86-windows-static boost-filesystem:x86-windows-static boost-uuid:x86-windows-static physfs:x86-windows-static openal-soft:x86-windows-static libogg:x86-windows-static libvorbis:x86-windows-static zlib:x86-windows-static libzip:x86-windows-static openssl:x86-windows-static
I'm getting this error in Windows 10:
Starting package 1/7: libogg:x86-windows-static
Building package libogg[core]:x86-windows-static...
-- Using community triplet x86-windows-static. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: C:\Users\Adrian\Documents\GitHub\otcv8-dev\vcpkg\triplets\community\x86-windows-static.cmake
-- Using cached xiph-ogg-v1.3.5.tar.gz.
-- Cleaning sources at C:/Users/Adrian/Documents/GitHub/otcv8-dev/vcpkg/buildtrees/libogg/src/v1.3.5-1a4243fef9.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/Adrian/Documents/GitHub/otcv8-dev/vcpkg/downloads/xiph-ogg-v1.3.5.tar.gz
-- Using source at C:/Users/Adrian/Documents/GitHub/otcv8-dev/vcpkg/buildtrees/libogg/src/v1.3.5-1a4243fef9.clean
-- Found external ninja('1.11.0').
-- Configuring x86-windows-static
-- Building x86-windows-static-dbg
-- Building x86-windows-static-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:158 (message):
    Command failed: C:/Users/Adrian/Documents/GitHub/otcv8-dev/vcpkg/downloads/tools/cmake-3.22.2-windows/cmake-3.22.2-windows-i386/bin/cmake.exe --build . --config Release --target install -- -v -j17
    Working Directory: C:/Users/Adrian/Documents/GitHub/otcv8-dev/vcpkg/buildtrees/libogg/x86-windows-static-rel
    See logs for more information:
      C:\Users\Adrian\Documents\GitHub\otcv8-dev\vcpkg\buildtrees\libogg\install-x86-windows-static-rel-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:106 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:44 (vcpkg_build_cmake)
  ports/libogg/portfile.cmake:20 (vcpkg_install_cmake)
  scripts/ports.cmake:145 (include)

Error: Building package libogg:x86-windows-static failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `git pull` and `.\vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libogg
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[libogg]+Build+error
including:
  package: libogg[core]:x86-windows-static -> 1.3.5
    vcpkg-tool version: 2022-03-09-1affd32f93b299d5a907816c328ca3ededb73a7e
    vcpkg-scripts version: unknown

Additionally, attach any relevant sections from the log files above.

Checking the logs it was the Windows Defender blocking the project folder (I didn't see the part of the output that says to check the log files at X path)


Fixed: Controllers in sub folders is not visible in list commands

Q
A

Is bugfix?
yes

New feature?
yes

Breaks BC?
no

Tests pass?
no

Fixed issues
#15200

Just a question, controllerMap won't resolve this issue ?

Yes, it will resolve the issue as well, I guess. Do you suggest we need to build dynamically when scanning for controllers?

I think it would be better, but if we already have worked solution in this pull request than i ok with that.

Merged. Thank you!

Why was this merged instead of #13902 ?

Because there were no unit tests in #13902.


adding a new perftest for Bruker prmPASEF data, which also covers an …

…issue with recovering IM data from libraries for peptides with heavy modifications.

Hmm... how can we test prmPASEF when we don't have proper data reading for it yet (at least for "high target density" sections)?

It seems likely that we will have to adjust this test later, then. But it does check another problem found along the way so I'm letting it ride for now.


NWBC can view an application

By company, NWBC can see all projects and answers submitted by Lorem Ipsum Communications and save this to Sharepoint.


Fix path-to-lcov for Coveralls

Currently blocked by https://github.com/bazelbuild/bazelisk/issues/450


Feature/dockerize : add user services, dockerize app

What was added

CRUD user account / profile
get, add, remove user preference
get, add, remove user favorite
dockerized app with 3 modes (dev, prod, test)
added docs for installation guides

Related Issues

link related issues here
REPO_NAME #issueNum

Future Works

Facility services
Review services
Stamp services

Reviewed briefly, seems good, i will let you know if smth comes up


setuptools version conflict between dependencies from cumulusci and metecho

I'm updating my Heroku installation of Metecho for the first time since several months.
Using Heroku build from my Metecho fork, I get this strange error :
-----> Installing pip 21.3.1, setuptools 57.5.0 and wheel 0.37.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. cumulusci 3.36.0 requires setuptools==57.0.0, but you have setuptools 57.5.0 which is incompatible.
Here is the whole build log :
build.log

I think the appearance of this notice is a consequence of the Heroku Python buildpack updating to a more recent version of pip that is stricter about checking compatibility of the versions being installed. I see it in my Metecho instance as well; however it appears to be advisory only and didn't block installation.
@Br4nd0R the next time we update CumulusCI dependencies, let's try removing --allow-unsafe from the pip-compile commands so that setuptools doesn't get pinned to a specific version in CumulusCI's install requirements.


ADLA ComputePolicies, ADLS Key Vault Update Support.

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[x] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[x] If applicable, the PR references the bug/issue that it fixes.
[x] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[x] My spec meets the review criteria:

[x] The spec conforms to the Swagger 2.0 specification.
[x] The spec follows the guidelines described in the Swagger checklist document.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

 https://github.com/Azure/azure-sdk-for-python/pull/1140

 https://github.com/Azure/azure-sdk-for-ruby/pull/773

 https://github.com/Azure/azure-sdk-for-node/pull/2155


Add command to request changes

Describe the bug
This plugin is missing an interface to request changes to a PR.
To Reproduce

Select a PR: GHLitePRSelect
See there is no command to request changes.

Expected behavior
There is a command, maybe GHLitePRRequestChanges, that provides an interface to gh pr review --request-changes.

Please check newest version. Request changes requires comment so I have added new keybinding (C by default) to GHLitePRAddPRComment to add comment and request changes. There is still no command in PR view to request changes, but clicking cc to comment will open the same view as GHLitePRAddPRComment.


Combined sources

This PR brings sources with more than one component. The idea is that a source gets a new attribute: components, which behave like sources themselves. These can be added or multiplied to the existing source, e.g. a bulge component
source = Source(center, spectrum, morphology)
bulge = Component(center, bulge_spectrum, bulge_morphology)
source += bulge

or a dust component
source = Source(center, spectrum, morphology)
dust = DustComponent(center, dust_spectrum, dust_morphology)
source *= dust

The difference between Source and Component is as follows:

A Source is a Component
A Source can have additional Component or Source instances, that are added/multiplied on top of itself in the order they have been pushed onto the components list
A Scene only registers Sources: as the name implies, sources shine, while components themselves do not.

Item 1 states that the modeling implementation rests with Component. This is why we have a DustComponent because it needs a __call__ that returns $\exp(-\mathrm{spectrum}\times\mathrm{morphology})$.
Item 2 states that you can also add sources to sources to make them fully hierarchical. This might be good for organizing sources, but it's critical if we want different pieces of a galaxy to have different dust attenuation.
Item 3 prevents nonsensical behavior, e.g. to have a DustComponent without its base Source (it can't attenuate if it doesn't get illuminated) or to evaluate a Component twice, namely on its own and then as component of a source.

I think something in scene.py needs to be altered to handle the multi-somponent sources in a tuple here:

This could be user error on my part, run code is here:
# run the fitting code
with Scene(model_frame) as scene:
    for center in centers:
        # initialize the spctrum and morphology with Scarlet2
        init_spec = initialization.init_spectrum(obs, center)
        init_morph = initialization.init_morphology(obs, center, components=2)

        # check if multicomponent
        if isinstance(init_morph, list):
            primary_morph = init_morph[0]
            secondary_morph = init_morph[1]
            multi = True
        else:
            multi - False

        # construct the source
        if multi:
            # add primary component
            source = Source(
                center,
                ArraySpectrum(
                    Parameter(init_spec, constraint=constraints.positive, stepsize=1e-2)
                ),
                ArrayMorphology(Parameter(primary_morph, prior=prior, stepsize=5e-3)),
            )

            # add secondary component
            secondary = Component(
                center,
                ArraySpectrum(
                    Parameter(init_spec, constraint=constraints.positive, stepsize=1e-2)
                ),
                ArrayMorphology(Parameter(secondary_morph, prior=prior, stepsize=5e-3)),
            )

            source += secondary

        # if just a single component
        else:
            source = Source(
                center,
                ArraySpectrum(
                    Parameter(init_spec, constraint=constraints.positive, stepsize=1e-2)
                ),
                ArrayMorphology(Parameter(init_morph, prior=prior, stepsize=5e-3)),
            )

The source which is causing the issues:

I can't see what's causing the failure here. I tested with two components and it worked. The only thing I noticed is this mistake:
else:
    multi - False

This must be multi = False.

@SampsonML check now if the problem still persists.

Great, works a charm now.


[mv3] Support popup windows - via message channels

This adds support of manifest v3 to the "popup-window" helpers. This is achieved by reimplementing the popup==>background page communication using message ports.
Previously, we used two other mechanisms for this communication:

in the Chrome App build mode we injected callbacks into the popup's global state using the chrome.app.window.create() callback.
in the Chrome manifest v2 Extension build mode we used "setSelfAsOpener" to let the popup call global functions in the opener page itself.

Neither works in manifest v3 Extensions, hence this commit implements a new approach that should work in all build modes.

I've guarded some code in in-popup-main-script.js with checks because when the window is opened via createWindow() there's no popup_id passed and there's no need in one.


Can I force Select onChange event to accept strict type for event value?

Given I have select with polymorphic `String value
<Select
          value={'String("text")}
          onChange={(event: ReactEvent.Form.t, v: Js.t(< .. >)) => {   // auto-infered types
                  let value = ReactEvent.Form.target(event)##value
          }}
 >
          <MenuItem value={'String("anotherText")}>
             "10"->React.string
          </MenuItem>
</Select>

Can i make sure onChange event value is 'String?
Currently value type I see is "`a"

After a few discussions on Discord my understanding is that event passed to onChange handler comes from pure JS and has nothing to do with Select value type we set in Reason. We cannot be 100% type-safe here.
If one needs to ensure Select value is still limited to a set of predefined values here is basic approach as suggested by @jsiebern
use polymorphic variants:
// this instructs bucklscript to compile each variant to string
// `AWS will be compiled to 'AWS'

<EMAIL_ADDRESS>jsConverter]
type options = [ | `AWS | `Azure | `Google ];

possible to use pure variants:
@bs.deriving jsConverter]
type options =
  | AWS
  | Azure
  | Google
;
// this will compile AWS to random(maybe not) number like 09946738;
// still works if you dont need to print those to UI (lets say as Select options)

Both will create optionsToJs and optionsFromJs converters.
Next idea is to take variants and convert it to string fro each Select option.
in OnChange event get string from JS, convert it back to Variant and set to state
type state = {
  option: options,
}
    <Select
              // Select value must be string, so we use created converter Variant -> String
              value={`String(state.option->optionsToJs)}
              onChange={(event, _) => {
                let value =
                  ReactEvent.Form.target(event)##value
                  //  event is coming from js so its string in our case.
                  //  convert it back from string to Variant as we want Variant in our state
                  //  using another converter String -> Variant
                  ->optionsFromJs
                  ->Belt.Option.getExn;

                // dispatch action with Variant payload to set to state.option in reducer.
                dispatch(ReducerActionToSetOptionToState(value));
              }}
         >
         // again convert Variant to string
         <MenuItem value={`String(optionsToJs(`AZURE))}>
                      // print Variant as string
                     {`AZURE->optionsToJs->React.string}
         </MenuItem>
   </Select>


Partially Rewrite Horizontal Reacharound

Replace use of BlockPos with Vec3d to allow double increased clamp on vector instead of integer.

Thank you very much :)


Sampling fails on mxnet==1.5.0 on Linux?

Description
Some random sampling functions seem not to be working on mxnet version 1.5.0 on Linux.
Environment info (Required)
----------Python Info----------
Version      : 3.7.4
Compiler     : GCC 8.3.0
Build        : ('default', 'Aug 14 2019 12:09:51')
Arch         : ('64bit', 'ELF')
------------Pip Info-----------
Version      : 19.2.3
Directory    : /usr/local/lib/python3.7/site-packages/pip
----------MXNet Info-----------
Version      : 1.5.0
Directory    : /usr/local/lib/python3.7/site-packages/mxnet
Commit Hash   : 75a9e187d00a8b7ebc71412a02ed0e3ae489d91f
Library      : ['/usr/local/lib/python3.7/site-packages/mxnet/libmxnet.so']
Build features:
✖ CUDA
✖ CUDNN
✖ NCCL
✖ CUDA_RTC
✖ TENSORRT
✔ CPU_SSE
✔ CPU_SSE2
✔ CPU_SSE3
✔ CPU_SSE4_1
✔ CPU_SSE4_2
✖ CPU_SSE4A
✔ CPU_AVX
✖ CPU_AVX2
✖ OPENMP
✖ SSE
✔ F16C
✖ JEMALLOC
✖ BLAS_OPEN
✖ BLAS_ATLAS
✖ BLAS_MKL
✖ BLAS_APPLE
✔ LAPACK
✖ MKLDNN
✔ OPENCV
✖ CAFFE
✖ PROFILER
✔ DIST_KVSTORE
✖ CXX14
✖ INT64_TENSOR_SIZE
✔ SIGNAL_HANDLER
✖ DEBUG
----------System Info----------
Platform     : Linux-4.9.184-linuxkit-x86_64-with-debian-10.0
system       : Linux
node         : 393443f5954f
release      : 4.9.184-linuxkit
version      : #1 SMP Tue Jul 2 22:58:16 UTC 2019
----------Hardware Info----------
machine      : x86_64
processor    :
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
Address sizes:       39 bits physical, 48 bits virtual
CPU(s):              2
On-line CPU(s) list: 0,1
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           2
Vendor ID:           GenuineIntel
CPU family:          6
Model:               142
Model name:          Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz
Stepping:            9
CPU MHz:             2500.000
BogoMIPS:            4992.00
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            4096K
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht pbe syscall nx pdpe1gb lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq dtes64 ds_cpl ssse3 sdbg fma cx16 xtpr pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch kaiser fsgsbase bmi1 hle avx2 bmi2 erms rtm xsaveopt arat
----------Network Test----------
Setting timeout: 10
Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0416 sec, LOAD: 0.6791 sec.
Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0579 sec, LOAD: 1.1694 sec.
Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0602 sec, LOAD: 0.8697 sec.
Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0628 sec, LOAD: 1.0556 sec.
Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0343 sec, LOAD: 0.8659 sec.
Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0030 sec, LOAD: 0.1486 sec.
----------Environment----------

I'm using Python, pip-freeze gives:
certifi==2019.6.16
chardet==3.0.4
graphviz==0.8.4
idna==2.8
mxnet==1.5.0
numpy==1.17.2
requests==2.22.0
urllib3==1.25.3

Error Message:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 68, in sample_normal
  File "/usr/local/lib/python3.7/site-packages/mxnet/_ctypes/ndarray.py", line 92, in _imperative_invoke
    ctypes.byref(out_stypes)))
  File "/usr/local/lib/python3.7/site-packages/mxnet/base.py", line 253, in check_call
    raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: vector::_M_range_insert

Minimum reproducible example
import mxnet as mx
s = mx.nd.sample_normal(mu=mx.nd.array([10.0]), sigma=mx.nd.array([0.5]))

Edit: the problem seems to occur on vanilla mxnet==1.5.0 as well; edited the issue description above.

This still did not occur in mxnet_mkl-1.4.1, and appears to be still occurring in mxnet_mkl-1.6.0b20190909

@mxnet-label-bot add [Operator, Bug]

Thanks for pointing out.
I was able to reproduce this issue for pip install mxnet==1.5.0, pip install mxnet==1.6.0
No error for pip install mxnet==1.4.0
So likely introduced in patch release 1.4.1

No error for pip install mxnet==1.4.0
So likely introduced in patch release 1.4.1

I was not able to reproduce on 1.4.1, so probably introduced in 1.5.0

Fixed in https://github.com/apache/incubator-mxnet/pull/16139.

@reminisce does the fix also fix sampling other than sample_normal? All other sampling functions also raise the same error on 1.5.0:

s = mx.nd.sample_uniform(low=mx.nd.array([10.0]), high=mx.nd.array([11.5]))
s = mx.nd.sample_negative_binomial(k=mx.nd.array([3]), p=mx.nd.array([0.5]))
s = mx.nd.sample_poisson(lam=mx.nd.array([1.5]))
...

The fix provided should fix all the samplers (i.e. for all distributions).


Mod is marked to work on 1.20.5 but it doesn't

latest.log

Oh yeah, probably did that automatically... Oh god isn't 1.20.5 like a ton of changes? I'll see what I can do

Oh boy 1.20.5 is quite the update... This might take some time to complete as I'm planning on restructuring the project to make it easier for me to work on.

Hey! I think I just might've gotten it to work. Please join my discord, the jars are in the #chat channel under development

fixed a while ago, forgot to close


finder: Add Method FindOneAndUpdate and refactor methods a and preActionHandler and postActionHandler

Change the opTypes parameter type of methods preActionHandler and postActionHandler to slice.
Add Method FindOneAndUpdate.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 0% with 32 lines in your changes missing coverage. Please review.

Project coverage is 82.17%. Comparing base (0813b46) to head (5881ca0).

Files
Patch %
Lines

finder/finder.go
0.00%
29 Missing :warning:

finder/opt_op_context_gen.go
0.00%
3 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
- Coverage   82.98%   82.17%   -0.82%
==========================================
  Files          48       48
  Lines        2128     2149      +21
==========================================
  Hits         1766     1766
- Misses        360      381      +21
  Partials        2        2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


the "udpate_maxim" branch, to merge

A small addition to the Observation ctor signature, which can now take a tuple of (begin, end) for start and end times, for convenience of plugging into other components. Some general code improvements.
Fixed discrepancies in the satellite test notebook (API had evolved a while back)
Added a stub for the "Simple Satellite" class, to reduce clutter in simple applications. This will help to easily create unified files for the Sun and two satellites sky coordinates, for the OpSim simulations.

To be done still -- conversion in both directions, from astropy Time to MJD string and back, to more easily handle the Satellite. Work in progress.
The current version of OpSim has dependencies on this branch, so if all is well it would be not a bad idea to merge even though the changes are not dramatic.

I've done more changes, renamed the time range, removed the "Simple Satellite", did cleanup and updated the satellite notebook. I'll reopen the PR for an easier review.


Private Groups handling

Ability to get private room (group) history, info and listings. Updated README to show the available
calls. Can send messages to both private groups and public channels.

Thanks for the PR.  I will get this reviewed and merged tonight.

this functions have already being implemented on the main project

These are different calls.  The current ones are using channels channel.info, channel.history.  These methods are using groups.
@cesarandreslopez one change, can you put these in a calls.groups module instead of calls.channel?  That would help make them distinct as they are a separate object within the Rocket chat API.
If you can make that change, I can get this merged in.

Fair enough @dstegelman. Will PR in a bit

Ok @dstegelman maybe this is better?

Sorry I mixed projects :(
My bad

Released in 1.2.2


'onicecandidate' not fired on ICE gathering completion

According to the spec, onicecandidate should be fired with newCandidate == null when the ICE gathering process is done. Currently, onicecandidate is not fired when gathering is completed.
https://w3c.github.io/webrtc-pc/#h-operation
When a new ICE candidate is available or when the ICE gathering process is done , the user agent must queue a task to run the following steps:
 (...)
3. If the gathering process is done: Update connection's ICE gathering state to completed and let newCandidate be null.
4. Fire an event named icecandidate with newCandidate at connection.

https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicecandidate
If the event's candidate property is null, ICE gathering has finished.

agreed


[Bug]: Branding color not updating

Preflight Checklist

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

Environment
ZITADEL Cloud
Describe the bug
When I change the primary color on the branding page, it doesn't update everywhere (see screenshots below)
To reproduce
Go to settings > branding
Change the primary color to a different color
Click Apply configuration
Change to different page (i.e. start page)
Check color of primary button/active menü item
Screenshots
(note that I'm on current config)

(if I click on apply AGAIN, it changes on that screen...)

(...but as soon as I switch to another menu (i.e.: startscreen), it's back to the old one again)

Expected behavior
I expect that the branding settings are consistent through the whole application.
Version
No response
Operating System
No response
Relevant Configuration
No response
Additional Context
No response

Hei @juergrinaldi
I just tested this myself.
If you make a refresh it should work fine.


Automatic SMS Verification with the SMS Retriever API in Android

Article checklist
Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes  #3520

Hello @ahmadmardeni1 and @LinusMuema . The plagiarism in my article is brought about by the code I wrote. Firstly, some codes are common in all applications written in kotlin. In my case, code such as "class MainActivity : AppCompatActivty(){}" and its body are commonly used in android applications are flagged as plagiarised code. The second thing that is raising the plagiarism level is the AppSignatureHelper class. This class is provided by Google and it is the one used to generate the app's hash string. It is documented on google documentation and is used by many. The problem is that the whole code is detected as plagiarized code since it has been used in different blogs and sites that try to explain this concept. The code is the same all over. What should I  do about it now that Copyleaks is flagging my code as plagiarized code?

A few more snippets to go!

Thanks for explaining @robert-muriithi Don't worry about the code, just change the other highlighted sentences.

Only if its boilerplate type code - any other code snippets should be completely ORIGINAL 👍
cc @robert-muriithi


querystring query using field names in searchbox to query data

I am new to ElasticUI-extension, but I managed to set it up successfully. It's working well.
Now I want to achieve the following in my search box;
Let's say I have documents indexed with various date fields; field1date, field2date, field3date.
I now it is possible to query a specific field through the searchbox as fieldname:value, let's say dateofbirth:1970-06-13?
How can I achieve this in the searchbox from the ElasticUI-extension? It may require some coding I guess?
Thanks, Fede.

Query String Query should just work out of the box:
https://github.com/svola/ElasticUI-extension/blob/master/materializecss-template/demo.html#L39
https://www.elastic.co/guide/en/elasticsearch/reference/1.7/query-dsl-query-string-query.html#query-string-syntax
For the supported date-formats please refer to:
https://www.elastic.co/guide/en/elasticsearch/reference/1.7/mapping-date-format.html#built-in
So this will basically depend on how you index your data. If the required date format is not built in, you might have to use a custom date format pattern:
http://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html

That worked just fine. I think the link
https://www.elastic.co/guide/en/elasticsearch/reference/1.7/query-dsl-query-string-query.html#query-string-syntax was very self-explanotory.
Fede,


XSS output error

Hey there, if anyone can help me, I'm obtaining in the XSS folder the XSS.txt file with this content, every time I scan:

XSStrike v3.1.4

Anybody knows what's wrong?
Is there a Telegram or Discord group to solve usage doubts?
Thanks!

This is because it doesn't found any XSS, anyway Telegram group link is in the README.md: https://t.me/joinchat/H5bAaw3YbzzmI5co

Great! I thought that was some error code. Thanks for the reply! I'll join you in Telegram, thanks again!


Temperature incorrect when system_unit set to "english"

Running raspbian-ovos-dev.zip (4/3/2023) on a 3B+
After a clean install, I ran ovos-cli-client.
I asked "What is the weather"
and the answer was 13 degrees celsius (correct!)
Then I ran ovos-config set -k system_unit  "english"
and asked "What is the weather"
and the answer was 286 degrees.

Try imperial  instead of English. And actually,  this is a skill issue. I will move it if imperial does not work

"imperial" works, "english" does not.  I picked "english" out of some mycroft documentation, so you'll likely be faced with this again.  Could I suggest an enhancement? Extend the ovos-config dialog to replace the word "english" automatically with the word "imperial"? Or as a more general change, trap bad keywords and suggest alternatives?  Thank you, I am otherwise all set.

Still an issue in the skill as it requests
"GET /v1/owm/onecall?exclude=minutely&lang=de&lat=49.5875&lon=8.35778&units=fahrenheit HTTP/1.1" 200 -

But none of your concern

btw also a problem with ovos-config. you shouldnt be able to pass "a-string-to-your-liking" to the config


[17.12] Use rslave propagation for mounts from daemon root

Backports moby/moby#36055
git cherry-pick -s -x -Xsubtree=components/engine 589a0afa8cbe39b6512662fd1705873e2d236dd0

By default, if a user requests a bind mount it uses private propagation.
When the source path is a path within the daemon root this, along with
some other propagation values that the user can use, causes issues when
the daemon tries to remove a mountpoint because a container will then
have a private reference to that mount which prevents removal.
Unmouting with MNT_DETATCH can help this scenario on newer kernels, but
ultimately this is just covering up the problem and doesn't actually
free up the underlying resources until all references are destroyed.
This change does essentially 2 things:

Change the default propagation when unspecified to rslave when the
source path is within the daemon root path or a parent of the daemon
root (because everything is using rbinds).
Creates a validation error on create when the user tries to specify
an unacceptable propagation mode for these paths...
basically the only two acceptable modes are rslave and rshared.

In cases where we have used the new default propagation but the
underlying filesystem is not setup to handle it (fs must hvae at least
rshared propagation) instead of erroring out like we normally would,
this falls back to the old default mode of private, which preserves
backwards compatibility.
Signed-off-by: Brian Goff<EMAIL_ADDRESS>(cherry picked from commit 589a0afa8cbe39b6512662fd1705873e2d236dd0)
Signed-off-by: Brian Goff<EMAIL_ADDRESS>

ping @kolyshkin @vdemeester

LGTM


update readme

As of npm v9.6.5, the bug has been fixed where npx only used the package version that was originally used when first running npx my-package - even if a newer package version had been released or had even been specifically requested in a subsequent npx my-package@latest call.
That means we can clean up the installation instructions in the README and just recommend people use npx jamsocket instead of npx jamsocket@latest now.

Updated! Also pushed a commit that sets the node engine to >= 18. This is for two reasons: 1. the version of npm that ships with <18 has the npx bug mentioned above. 2. v18 is the oldest NodeJS version that is still actively supported.


Write unit tests for Project

[x] Refactor the pull method to be testable
[x] refactor main to be testable
[x] test the obsolete/removed marking
[x] test branches

Closed with #38


Jenkins build failure (Unit Test)

http://<IP_ADDRESS>:8080/job/couchbase-lite-android-build/40/console
com.couchbase.lite.replicator.ReplicationTest > testOneTimePullReplicationSendStoppedOnce[hudson_en-US_160_WVGA_android-19_armeabi-v7a_param(AVD) - 4.4.2] FAILED
	junit.framework.AssertionFailedError: expected:<1> but was:<0>
	at com.couchbase.lite.replicator.ReplicationTest.testOneTimePullReplicationSendStoppedOnce(ReplicationTest.java:4345)
:connectedAndroidTest FAILED

FAILURE: Build failed with an exception.

duplicated ticket with #441


Can you possibly add auto refresh? or auto update.

Hello basically as you know when the songs finish unless the page is refreshed the song doesn't update.
Can you add some sort of auto refresh on the element so it automatically updates on new song playing.
Thanks

Hey so the reason I wanted to have this was because in my case I am using it for my Website.  If you are also using this feature for your site you are welcome.
<img id="Spotify-now-playing" src="https://spotify-github-profile.vercel.app/api/view.svg?uid=ahmeddanial&cover_image=true&theme=novatorem&show_offline=true&background_color=121212&bar_color=f2aa4c&bar_color_cover=false" width="250" alt="Spotify-Down">

setInterval(function() {
  var myImageElement = document.getElementById('Spotify-now-playing');
  myImageElement.src = 'https://spotify-github-profile.vercel.app/api/view.svg?uid=ahmeddanial&cover_image=true&theme=novatorem&show_offline=true&background_color=121212&bar_color=f2aa4c&bar_color_cover=false?rand=' + Math.random();
}, 5000);

It does not work on Github. GitHub always cleans up javascript in an SVG images.

It does not work on Github. GitHub always cleans up javascript in an SVG images.

Yes thats true. I was trying to write an answer for people incase they want to use it in their website so i just left a setInterval function in my answer.
For GitHub you have no alternative at the moment other than refresh the browser.


PHPDoc with latin1 characters in file with ISO-8859-1 encoding causes error

If I change the file encoding to UTF-8 everything works fine.
Code causing the error is in https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/2.10/src/Fixer/Phpdoc/PhpdocTrimFixer.php#L115
fixEnd methods preg_replace returns null
The PHP version you are using ($ php -v):
php -v
PHP 7.1.11 (cli) (built: Oct 27 2017 11:00:03) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
PHP CS Fixer version you are using ($ php-cs-fixer -V):
=>
php-cs-fixer -V
PHP CS Fixer 2.10.2 Bowling Bear by Fabien Potencier and Dariusz Ruminski
The command you use to run PHP CS Fixer:
=>
php-cs-fixer fix test-cs-fixer.php --using-cache=no -vvv --rules=@Symfony
If applicable, please provide minimum samples of PHP code (as plain text, not screenshots):

before running PHP CS Fixer (no changes):

<?php

/**
 * ä
 */
$variable = NULL;

Output of command
Loaded config default.
E
Legend: ?-unknown, I-invalid file syntax, file ignored, S-Skipped, .-no changes, F-fixed, E-error
Fixed all files in 0.013 seconds, 12.000 MB memory used
Files that were not fixed due to errors reported during fixing:

test-cs-fixer.php
[InvalidArgumentException]
Content must be a string, got "NULL".
PhpCsFixer\Tokenizer\Token->__construct()
in vendor/friendsofphp/php-cs-fixer/src/Fixer/Phpdoc/PhpdocTrimFixer.php at line 81
PhpCsFixer\Fixer\Phpdoc\PhpdocTrimFixer->applyFix()
in vendor/friendsofphp/php-cs-fixer/src/AbstractFixer.php at line 73
PhpCsFixer\AbstractFixer->fix()
in vendor/friendsofphp/php-cs-fixer/src/Runner/Runner.php at line 190
PhpCsFixer\Runner\Runner->fixFile()
in vendor/friendsofphp/php-cs-fixer/src/Runner/Runner.php at line 132
PhpCsFixer\Runner\Runner->fix()
in vendor/friendsofphp/php-cs-fixer/src/Console/Command/FixCommand.php at line 219
PhpCsFixer\Console\Command\FixCommand->execute()
in vendor/symfony/console/Command/Command.php at line 262
[ ... ]

Same thing happens with php 7.1.14
without u modifier in regexp works fine.
modifier was added in https://github.com/FriendsOfPHP/PHP-CS-Fixer/commit/fbfc252f37c966612539483b811ea4376f8f1e66

Thanks for the report. This is a known issue, see #3309 and #3446.
Closing as duplicate.


References are not working

On a course page like https://geo.libretexts.org/Courses/Coastline_College/An_Introduction_To_Geology_-_Coastline_College/01%3A_Understanding_Science/1.02%3A_The_Scientific_Method, we have references with only a number in line (e.g search for [4]) and full reference at the bottom of the page.
These links / references are not working at all.
Expect in-line:

Current in-line:

Note that this seems to use anchor tags, but these are missing as well to work properly
Edit: fixed original URL which was not inline with the screenshots), reference are here across courses (but can be from same course of course)
E.g. https://geo.libretexts.org/Courses/Coastline_College/An_Introduction_To_Geology_-Coastline_College/01%3A_Understanding_Science/1.02%3A_The_Scientific_Method [4] reference is pointing to https://geo.libretexts.org/Bookshelves/Geology/Book%3A_An_Introduction_to_Geology(Johnson_Affolter_Inkenbrandt_and_Mosher)/01%3A_Understanding_Science/1.02%3A_The_Scientific_Method#4 (another course)

The quick fix seems to simply totally remove the link in such situations. The references at the bottom of the page are correct anyway, even in cross-courses scenarii

Fixed:

References on this page:


谢谢，问题解决了，是spark安装没有加hive服务！

Originally posted by @Tom-YJ in https://github.com/allwefantasy/streamingpro/issues/292#issuecomment-399347756
兄弟，有没有具体使用的说明啊，求帮助，万分感谢！！！

Can you describe the problem you have meet?

You do not need load hive like that. Please make sure the hive.xml is configured in your environment. Then you can use sentence like that:
load hive.`db.table` as newtable;
select * from newtable;

-- or

select * from db.table as new table;

Do not remember to set -streaming.enableHiveSupport true when start MLSQL.

Thanks. Support jdbc connection hive？

No. JDBC  only supports DBS e.g. MySQL

thanks. I have solved it.You can close this issue.

JDBC should supports hive. We will try.

No. JDBC only supports DBS e.g. MySQL

This is wrong.

Add batchSize to where conditions:
connect jdbc where driver="org.apache.hive.jdbc.HiveDriver"
and url="jdbc:hive2://<IP_ADDRESS>:10000/default"
and user="hdfs" and password="hdfs" and fetchSize="100" as default1;

load jdbc.`default1.books` as books;


fixes for day1 exercises (includes part4 fixes from PR #46)

This PR should be reviewed following merging of PR #46 from @lmichael107
Some remaining questions for day1:

Should we add information about using nano (if not familiar with emacs/vim)?
There are a few places where it looks like we try to use "*foo*" for empahsis inside of CodeHilite blocks, which doesn't work. Get rid of these?
part2-ex1-files: Do we really want to mention should_transfer_files here? -- "As with all previous examples, you will tell HTCondor to transfer files to the sandbox (should_transfer_files = YES)."

@lmichael107 I'm just realized I merged over some changes you made making Job ID user input read as "JOB.ID" (e.g. condor_q JOB.ID). I used the convention from our planning doc to add angle brackets and kept everything lowercase (e.g. condor_q <job_id>). Whatever way is ok with me as long as it is consistent.

they are told about nano before the school (as well as other text editor options).

Where do you see "foo"? I only see it in part1-ex3-jobs.md (of day1).

Will update with a new PR to correct all with brackets.


Append images (vertically or horizontally)

I'm looking for a way to "join" images together, in this case horizontally. I can't seem to find an API in sharp which supports, although I've seen that libvips (the library underneath) supports this functionality. As I can't use neither ruby nor python, the link is useless to me.
Is there a way?

Please see #699, #728, #864.

I've managed to make it work with successive calls to extend and  overlayWith. In hindsight, I have to say that I don't like the mess I've made of this await promise loop soup much. But judging by the other tickets, I guess you're working on the issue already.
I'll close the ticket. Thx for the support.


ETC_BAD_ACCESS code = 10

Hi!
I wrote my own CNN in the YOLO demo (currently trying to replicate squeezeDet). I changed the model layers in the init and have my weights converted as .bin files in the parameters folder. The only other item changed was labels. When I run I get "ETC_BAD_ACCESS code = 10" on the flags line of
"conv = MPSCNNConvolution(device: device,
convolutionDescriptor: desc,
kernelWeights: weights.pointer,
biasTerms: biases?.pointer,
flags: .none)"
Photo included below. What could be the issue causing this? Any advice on solving?
Thank you so much!

Edit: My problem is from this line
let output = fire11Result --> Convolution(kernel: (3, 3), channels: 72, stride: (1,1), activation: nil, name: "conv12") //error is caused by this line
The app runs using fire11Result, the second to last layer, as the output.
Any idea?
Thank you!

That sounds like your weights / biases file do not have enough values in them.

Thank you for responding! The shape of the weights is shape=(72, 1, 1, 768) and the bias shape is shape=(72,). The model works in a tensorflow mobile deployment, and converted from tensorflwo using this script.
Frozen_tensorflow_model_to_mpscnn.py.zip

Also, just for helping other beginners, uploading the weights conversion script I put together for tensor flow to Forge for squeezeDet (no fully connected layers but include link where could copy paste that part).
Frozen_tensorflow_model_to_mpscnn.py.zip


Remove the deprecated api usage in hdfs

Motivation
Remove the deprecated api usage in hdfs
Modifications
Use try with resources instead of closeQuitely
Remove the Long constructor
Documentation

[ ] no-need-doc

little internal optimization

@codelipenghui @sijie @BewareMyPower PTAL

@hangc0276 PTAL

@merlimat @eolivelli PTAL

LGTM, just left a comment for the code format.

LGTM, just left a comment for the code format.

Fixed, PTAL

@Shoothzj You can use /pulsarbot run-failure-checks to rerun failed tests instead of close and reopen the PR, thanks.

/pulsarbot run-failure-checks

@merlimat @eolivelli @hangc0276 PTAL


[KeyVault] Idea for testing tracing functionalities

Here's an idea for testing tracing functionalities. I wonder if something like this could be added to core-tracing.
If this looks good at least for KeyVault, I reasonably still have to:

Add the recordings.
Add the same tests for certificates and secrets.

I was also thinking on using decorators instead. I don't remember if we favored decorators or not. I think they're tricky to implement correctly, but a good one could make it so that we could add the tracing testing decorator to any existing test, which means that we could confirm that tracing worked everywhere without having to add new test files, nor generate new recordings.
Decorators would also be cool to test things like to confirm that the challenge based authentication fix is effective in all of our tests without having to change the inner code of our tests.

We should not use decorators, sadly. There be dragons.

Thank you, @bterlson

Closing on favor of this issue: https://github.com/Azure/azure-sdk-for-js/issues/10335


Fix a minor typo in docs/puppeting.md

Move a comma to the right spot.

Thanks, looks like we broke our linting >:(. but this is fine.


Follow up change from #5244

SUMMARY
Code review change suggested by jwhonce in
https://github.com/containers/libpod/pull/5244#pullrequestreview-366574431
Signed-off-by: Abhijeet Kasurde<EMAIL_ADDRESS>ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
libpod/logs/log.go

/assign @baude

/lgtm


Update French For addon Dailymotion

Attachment modification translation french
it lacks some words like (Download / Miscellaneous / Mature content)
Enclosed photo to see
http://hpics.li/b3126f0
Otherwise I noticed that in the live section there is only one page of live there is no way to go to a page 2
Enclosed photo to see
http://hpics.li/b14c702
Thanks You

There are only few live videos on Dailymotion now
http://www.dailymotion.com/search/live/lives
So whatever is showing on the addon is correct.
As far as the transalation file is concerned, you may have to re do it once I complete the English strings. Dailymotion have changed some filed names, 'Age Gate' is now called Family Filter on their site.
For now I'll close this without merging. Please have a look at the next release and then you can submit your translation


[9.x] Reduce amount of iterations when searching a view in paths.

Hello Everyone,
I've noticed the following method Illuminate\View\FileViewFinder::findInPaths(). This function is used to determine if a given name relates to a view. When it does the path is returned, else a InvalidArgumentException is thrown.
This process involves 3 loops. The first loop iterates over every configured view path, the second loop appends supported file extensions to the given name, the third loop validates if a view exists. According to my calculations this will result in a total of max 16 iterations per view path the max total iterations will double.

My Calculation
amount of view paths * amount of extensions * amount of files to validate
Amount of view paths
count of paths defined in the config at view.paths
Amount of extensions
when appending file extensions to the name we iterate over all supported file extensions
Amount of files to validate
size of the results from “amount of extensions”
Suggested Change
With this PR the nesting of the Illuminate\View\FileViewFinder::findInPaths() method is changed. This will reduce the amount of total iterations but doesn’t change the behavior. We start by generating possible view file names (4 iterations). The next step is to iterate over the configured view paths (1 - *).
This halves the number of iterations when a single view path is configured (from 16 to 8 iterations). When the number of view paths grows this number will change (at 7 paths from 112 to 32 iterations).

My Calculation
amount of file names * amount of view paths + iterations for generating the file names
Amount of file names
An array containing possible file names
Amount of view paths
count of paths defined in the config at view.paths
Iterations for generating the file names
When generating the Amount of file names array a array_map is used.  So it iterates over something..
Expected impact
None, the methods behavior is the same. The performance impact is really low shouldn't be noticeable.
You can find me in the discord server username: _bromano

:warning: I assume this change doesn't have impact on behavior of the "view component". Someone with more project knowledge should help validating it..

That's a change of logic. The order of the paths is supposed to have priority.


Refactoring test cases.

This PR updates test cases.

Coverage remained the same at 100.0% when pulling 15a5e8dbf3822cc8bca6682d0e20c91cf949eba9 on fisuda:feature/testing into 50362b81e594340d52bc57a34f5e4f705ff969b1 on lets-fiware:main.


mixture cure model in lifelines

Hi there,
I am interested in implementing a mixture cure model with multiple events as the one implemented in Dirick. et al (2015).
In their paper they create a mixture cure model for predicting default,prepayment and maturity (cure) of a loan. In that model,  the unconditional survival function is given by

while the conditional survival function modelling all cases that are suspectible to default is given by a CoxPH model of the type :

I am wondering if something like this can be implemented through lifelines

This can be done only if you specify what H_0 is parametrically (ideally we want non-parametric, but we can use some flexible parametric models too).
Have you seen the docs here? https://lifelines.readthedocs.io/en/latest/jupyter_notebooks/Custom Regression Models.html#Cure-models
That's important to read, for sure. Here's a first iteration of a model:
from lifelines.fitters import ParametricRegressionFitter
from autograd.scipy.special import expit
from autograd import numpy as np
from lifelines.utils.safe_exp import safe_exp
exp = safe_exp
dot = np.dot

class CompetingCureModel(ParametricRegressionFitter):

    _fitted_parameter_names = ["beta_repay", "c_repay", "c_default", "beta_default"]

    def _cumulative_hazard(self, params, T, Xs):
        p_default = expit(dot(Xs["c_default"], params["c_default"]))
        p_repay = expit(dot(Xs["c_repay"], params["c_repay"]))

        sf_default = exp(-exp(dot(Xs["beta_default"], params["beta_default"])) * T**2)
        sf_repay = exp(-exp(dot(Xs["beta_repay"], params["beta_repay"])) * T)

        return -np.log(
            p_repay * sf_repay + p_default * sf_default + (1-p_repay-p_default)
        )

swf = CompetingCureModel(penalizer=0.1)

rossi = load_rossi()
rossi["intercept"] = 1.0
rossi['week'] = rossi['week'] / 54.

covariates = {
    "beta_default": rossi.columns,
    "beta_repay": rossi.columns,
    "c_default": rossi.columns,
    "c_repay": rossi.columns
}

swf.fit(rossi, "week", event_col="arrest", regressors=covariates)
swf.print_summary(2)

Reading the original paper, the way I model the probabilities (pi) is wrong, FYI

Hi Cameron,
Thanks very much for your answer, it was more than helpful.
One thing I can't really grasp yet is why you deal with the time in the conditional survival function as follows :
          sf_default = exp(-exp(dot(Xs["beta_default"], params["beta_default"])) * T**2)
        sf_repay = exp(-exp(dot(Xs["beta_repay"], params["beta_repay"])) * T)
You multiply the cond. survival function for default by t^2 and the cond. survival function for repayment by t.
Can you explain to me why this is the case? I see that you do something really similar in your custom regression model documentation but I can't understand why. Sorry if the question is a bit silly, but I am trying to really grasp the concept of this.
Thanks

It's very attentive of you to notice this!
What is the T term representing?
Because we need a parametric model, I require some known function for the integral of h_0(t). The simplest case I can think of is integral of h_0(t) = T, and only slightly more complicated:  integral of h_0(t) = T^2.
Why are the T terms different?
One thing I wanted to avoid is non-identifiability between the two survival curves. If both have identical structures, then the minimization function has two identical minima because of the symmetry of the problem. By slightly changing the survival functions, I "nudge" the model away from this. I could fix this be specifying some initial points.


Some questions about VQ-KD

Hello, when I read and reproduce your work, there is a consistent question about VQ-KD. When training MIM, it can be regarded as an offline teacher or Tokenizer, but can't it perform Imagenet classification task alone? Vq-kd is a Tokenizer that learns the semantic information from DINO or CLIP. It should be good for him to do classification directly, right?
Therefore, there is a question: why not use the Vit obtained from VQ-KD to do the classification task?
I am looking forward to your reply

Dear:
Thanks for the suggestion~
I will evaluate and report it after finished.
Zhiliang.

Dear,
I am glad to receive your timely reply. Regarding VQ-KD, there is a hypothesis about the tokenizer obtained from knowledge distillation learning, that this teacher is able to do the classification task, but the effect is not particularly good (lacking some masks), and I hope you can tell us after your experiment to verify this conjecture.
This issue can hopefully be closed after you report this conclusion, please.

Dear, let me add some questions, I see that among the experiments VQ-KD is only pre-trained on imagenet1k, why not on 21k, or is 1k pre-training enough, if this is the reason, it is really not worth to take this teacher for the classification task unless its trained on a larger scale or multiple iterations.

Dear, I am glad to receive your timely reply. Regarding VQ-KD, there is a hypothesis about the tokenizer obtained from knowledge distillation learning, that this teacher is able to do the classification task, but the effect is not particularly good (lacking some masks), and I hope you can tell us after your experiment to verify this conjecture. This issue can hopefully be closed after you report this conclusion, please.

Of course. I have conducted experiments about it. And I will report the results here tomorrow.

Dear, let me add some questions, I see that among the experiments VQ-KD is only pre-trained on imagenet1k, why not on 21k, or is 1k pre-training enough, if this is the reason, it is really not worth to take this teacher for the classification task unless its trained on a larger scale or multiple iterations.

It is a good question.  And we are exploring it these days.
We are verifying the domain gap between vqkd training and beit pretraining. But it may cost some days.
Don't worry. We will report it if we get some conclusions.
Thank you~
Zhiliang

Dear，
Today refer to your vq part of the code, but when training this loss has been e-7 magnitude, never_used has been 0.999, which is not normal, right?
Unlike your code, mine is not hw scale (2d) visual tokens, but I want to use 1d scale visual tokens, so I just remove norm_ema_quantizer, in forward, z = rearrange(z, 'b c h w -> b h w c'), because my input is bnc's, this should be enough to modify it, hope I can get your help.

Dear, I am glad to receive your timely reply. Regarding VQ-KD, there is a hypothesis about the tokenizer obtained from knowledge distillation learning, that this teacher is able to do the classification task, but the effect is not particularly good (lacking some masks), and I hope you can tell us after your experiment to verify this conjecture. This issue can hopefully be closed after you report this conclusion, please.

Hello.
I fine-tuned the tokenzier encoder following BEiT fine-tuning recipe. For the hyper-parameters lr, I searched it in {5e-4, 7e-4, 1e-3, 2e-3, 4e-3}. The best accuracy is 83.57% when the lr is 2e-3.
Hope this can help you.
Zhiliang.

Dear, I am glad to receive your timely reply. Regarding VQ-KD, there is a hypothesis about the tokenizer obtained from knowledge distillation learning, that this teacher is able to do the classification task, but the effect is not particularly good (lacking some masks), and I hope you can tell us after your experiment to verify this conjecture. This issue can hopefully be closed after you report this conclusion, please.

Hello. I fine-tuned the tokenzier encoder following BEiT fine-tuning recipe. For the hyper-parameters lr, I searched it in {5e-4, 7e-4, 1e-3, 2e-3, 4e-3}. The best accuracy is 83.57% when the lr is 2e-3. Hope this can help you.
Zhiliang.

This is very helpful to me, thank you for conducting these experiments and I hope all goes well with the follow-up.

Good job!

The code and pre-trained models of BEiT-3 can be found at aka.ms/beit3.


Replicate the user context manager

https://github.com/scipy/scipy/blob/5b4b3ec030f4d27f6bb1b4c4ec53a92f83e648ef/tools/doctest_public_modules.py#L54

@ev-br
Should this context manager: warnings_errors_and_rng be moved to scpdt's util.py module?

Not sure. This looks somewhat scipy-specific. If the tool itself is meant to be cross-project, why others need to know about scipy-specific names and exceptions?
Off the cuff, this looks like a material for project-specific conftest.py (or however other means of project-specific configuration). WDYT?

We do want a project-agnostic version + a clear way to add project specifics.

Okay, I think this is my next task then.

@ev-br I've noticed that this context manager is a combination of scpdt util's scipy_rndm_state and warnings_errors context managers but with a known_warnings dictionary for warnings that should be ignored.
So my goal is to ensure projects can use this context manager by specifying their own list of functions whose warnings should be ignored?

The goal is that projects can specify the context where their doctests are run. This may or may not include warnings->errors, manipulations of the random state etc etc. This is up to a project.
What the cross-project tool needs to do is:

restore the numpy error state in case a test manipulates it
make MPL gui-less
allow a user project to plug in their own context manager

cf https://github.com/ev-br/scpdt/blob/main/scpdt/frontend.py#L247