Feature request: apply API Key / Credentials with "Enter"/onchange

Hi,
this is solely a tiny comfort feature request. It would be nice to apply the api key / basic auth credentials upon "onchange". So that pressing "Enter" or leaving the field would apply it directly, rather than having to click each time this "set" button.
I'm not familiar with this kind of code, but I believe the lines which would need to be modified are these two:
https://github.com/mrin9/RapiDoc/blob/7104432e5c46ef9a43cf3a59652aa82d615fbc56/src/templates/security-scheme-template.js#L313
https://github.com/mrin9/RapiDoc/blob/7104432e5c46ef9a43cf3a59652aa82d615fbc56/src/templates/security-scheme-template.js#L326

Had there been a single input field, this could have been done.
But there are multiple inputs based on the security scheme. For instance In HTTP Basic there is a username and password. So it will be confusing for an user once s/he blurs out of username and lands to password and see that there is already a  token applied in the UI.
However, I will forward this to our UX team, and lets see what would they suggest for this.

Intuitively, I would auto-apply it if both fields are filled. Sounds reasonable?

Personally, I wud avoid making that assumption on a blur event as the user may be leaving one field to  edit/update the other one. (even if both field contains some value)
listening for special key like enter may be okay but their are auth schemes that contain drop-downs.
It is something that our UX team will be deciding on, so will wait on their feedback

Personally, I wud avoid making that assumption on a blur event as the user may be leaving one field to edit/update the other one.

...well, actually it does not really matter since once the user updates the other one, the authentication will also be updated too. The auth will basically always be in sync with what is in the fields ...making the 'SET' button kind of obsolete.
I'd also favor a plain onchange event to cover all cases, whether it's hitting 'Enter', leaving the field or clicking on a dropdown.
Basically, what is set as auth is what you typed/selected


Attempt to invoke virtual method 'android.view.Window$Callback android.view.Window.getCallback()' on a null object reference in 0.17.2 release

Summary

Version
?

Affected OS
?

OS Version
?

Current behavior

Expected behavior

Please use the issue template and give more details about what you did.


docs for guppy 0.1.8 failed to build because of a borrow checker issue in proptest

Crate name: guppy 0.1.8
Build failure link: https://docs.rs/crate/guppy/0.1.8/builds/237873
Additional details:
It looks like this might be a bug in the latest nightly, since proptest builds fine with rustc stable and earlier nightlies.

Unfortunately we don't have a way to chose what version docs are built with ( #506 , #228 ). I can requeue guppy manually once a fixed version of rustc comes out.

I've released a new version of guppy since so no longer need this. thanks!


Missing icons after 2.3.1 update

After updating to 2.3.1 some of the icons from my old 2.2.x projects are broken - realising that the aliases for them have changed I went to on https://semantic-ui.com/elements/icon.html to update them.
Most of them work fine, however   and  don't seem to work - they're visualised as squares in my browser window.
 &  (which were the name for the icons in 2.2.x) don't work either.
This might apply to other icons, however I only noticed those two missing.

Managed to fix it with this steps:

Meteor didn't update fontawesome automatically, so run meteor update fontawesome:fontawesome
I deleted the generated semantic ui files (kept my custom overrides), and regenerated the files as outlined in https://github.com/Semantic-Org/Semantic-UI-Meteor#usage


Update outdated link

Will cause a linkcheck failure on the SDK:
docs_dimod/reference/generated/dimod.SampleSet.from_samples.rst:2: [broken] https://numpy.org/doc/stable/user/basics.creation.html#converting-python-array-like-objects-to-numpy-arrays: Anchor 'converting-python-array-like-objects-to-numpy-arrays' not found

An alternative (for several places where .. _array_like: is defined) for consideration is
https://github.com/numpy/numpy/blob/main/numpy/typing/_array_like.py
(see https://github.com/numpy/numpy/blob/dc7dafe70a53d6c122091516f34058bd0a6d89e1/numpy/typing/_array_like.py#L60)

If we were going to point at their typing, I would like to ArrayLike instead of the source code. That said, I still prefer https://numpy.org/doc/stable/user/basics.creation.html


Update webdriver-manager library

Update for the e2e tests to work with the current version of chrome on travis

Merging, because it is trivial, and needed for travis tests to work


Phone freeze on opening Scene with imported 3D model [GLES2]

Godot version:
Godot 3.1 Beta 2 (GLES2)
OS/device including version:
Development:
OS: Windows 10
GPU: nVidia GeForce 520M
Test:
Asus Zenfone 5 (2014)
OS: Android
GPU: PowerVR SGX544MP2
GLES: 2.0.0
Issue description:

Just open project below, export, and install on android, play.
There are 3 scene in the game.
Scene C is a 3D scene with a box, plane, and environtment. This scene can be opened in my phone.
Scene A&B is the same as Scene C with addition an imported 3D model. It is a low poly model with skeletal animation. If i open this scene my phone freeze. The debugger not printing any error it just disconnected because my phone is freeze.
I also discover other issue while making this project.

Texture with Video RAM compress mode wont export to Android APK.
If you enable rim in the 3D material, the scene wont load (throw an error on remote debug)

is this expected behaviour?
If not then I'll make a separate issue.
Steps to reproduce:

Open the project below
Export Android
Play
Open Scene A or Scene B

Minimal reproduction project:

CharacterTest.zip

@akien-mga Already test the rim, now the scene can be loaded and displayed with Beta 3 but the mesh not rendered instead. Check my referenced issue.

Also reporting that this issue still reproduced with Beta 3 build.

@reduz Today I tested it in Godot 3.1 stable it still crash, and if I test it several time in a row, sometimes it also freeze my phone.


replace prometheus.Handler with promhttp.Handler

prometheus.Handler was removed from the library after deprecation. I have replaced it with promhttp.Handler
This fixes #2

Thanks.  For future reference- this is code I wrote for a one off and not used much beyond that.
The underlying yaml guts do make it possible to map arbitrary attributes into metrics, but the 'how' is kind of messy and ill documented.  I'm very much open to another person helping maintain this if you've got interest.


Package illuminate/collections needs symfony/var-dumper

Illuminate/Collections Version: v8.1.0
PHP Version: PHP 7.4.10 (cli)
Database Driver & Version: n/a

Description:
When using the illuminate/collections package, I encounter a dependency problem.
It seems that, to use dump() or dd(), I need symfony/var-dumper.

https://github.com/laravel/framework/blob/8.x/src/Illuminate/Collections/Collection.php#L13
https://github.com/laravel/framework/blob/8.x/src/Illuminate/Collections/Traits/EnumeratesValues.php#L16
https://github.com/laravel/framework/blob/8.x/src/Illuminate/Collections/composer.json

Steps To Reproduce:
{
    "require": {
        "illuminate/collections": "^8.1"
    }
}

collect([])->dump();

Gives PHP Fatal error:  Uncaught Error: Class 'Symfony\Component\VarDumper\VarDumper' not found in ....
Possible solution
{
    "require-dev": {
        "symfony/var-dumper": "^5.1"
    }
}

You can install it in your own application if you need it. I don't think we should require it for one method.


Inputbox issue

Hi,
I'm trying to look at estatio. I successfully compile it and able to launch it with:
mvn jetty:run
When I go to:
http://localhost:8080/estatio-webapp/wicket
I'm able to login but after that if I try to type some text in any (at least that I tested) text input box nothing happend. Meaning the text did not appear in the input box.
I'm using Firefox 36.0.1 under Linux Mint (Ubuntu).  Any guess ?
Thanks

Hi,
Could you please try to reproduce with Isis Simple app ?
http://isis.apache.org/intro/getting-started/simpleapp-archetype.html

Isis Simple app work just fine. I'm able to input text and so create object
I don't know if it's related but I can't launch estatio with java -jar webapp/target/estatio-webapp-0.0.1-SNAPSHOT-jetty-console.war because the war file does not exist.

Thanks for taking the time to look at Estatio.
My guess is that you need to load up some sample (fixture) data.  Unless
you've changed settings in WEB-INF/persistor.properties, Estatio will be
running against an in-memory DB.  The schema for this is created at start
up, but the tables will be empty.  This is probably what you're seeing
whenever you go searching for some data - nothing there.
The fix is easy: load some sample data.  You can do this with:
     Prototyping > Run Property/Lease Fixture Script, then choose

"Estatio Demo Fixture" from the drop-down, and hit OK.
This will result in a transcript of all the stuff that's been created.  You
can either navigate from there and explore, or alternatively something like:
     Leases > All Lease

or
      Properties > All Properties

to start browsing through the data.
If you can't see the "Prototyping" menu, make sure you've logged in as
estatio-admin/pass, and in WEB-INF/web.xml, the "configuration"
context-param should be set to "development" (so that the "prototyping"
actions for demos etc) are visible.

     <context-param>
         <param-name>configuration</param-name>
         <param-value>development</param-value>
     </context-param>

HTH
Dan

On 13 March 2015 at 16:13, ThomTrab<EMAIL_ADDRESS>wrote:

> Isis Simple app work just fine. I'm able to input text and so create object
>
> I don't know if it's related but I can't launch estatio with java -jar
> webapp/target/estatio-webapp-0.0.1-SNAPSHOT-jetty-console.war because the
> war file does not exist.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/estatio/estatio/issues/10#issuecomment-79087748>.
>

I may not explain clearly my issue.
I'm able to login to the app, launch the script, everyhting look fine but if I want to, let say, create a New property, the pop-up open but when I try to type some text in it nothing appear for either of the input boxes even for the date.
Thanks for your help

You may try with another browser.
Also check for JavaScript errors in the JavaScript console.

I found my issue. It's due to padding in the CSS sheet:
.input-sm, .form-horizontal .form-group-sm .form-control {     padding: 15px 10px; } in http://localhost:8080/estatio-webapp/wicket/wicket/resource/de.agilecoders.wicket.themes.markup.html.bootswatch.BootswatchCssReference/css/bootstrap.sandstone-ver-1426182893000.css line 6215.
if I disable it in Firebug, I can see the text in the input box.
Strange, no ?

Would be good to see a recording or screenshot of that... Estatio works
fine for us in Chrome/IE/Firefox on Mac/Win/Ubuntu....
On 13 March 2015 at 20:45, ThomTrab<EMAIL_ADDRESS>wrote:

I found my issue. It's due to padding in the CSS sheet:
.input-sm, .form-horizontal .form-group-sm .form-control {
padding: 15px 10px;
} in
http://localhost:8080/estatio-webapp/wicket/wicket/resource/de.agilecoders.wicket.themes.markup.html.bootswatch.BootswatchCssReference/css/bootstrap.sandstone-ver-1426182893000.css
line 6215.
if I disable it in Firebug, I can see the text in the input box.
Strange, no ?
—
Reply to this email directly or view it on GitHub
https://github.com/estatio/estatio/issues/10#issuecomment-79371936.


Fixed webpack babel compile issue

Without this file, npm run build would fail due to webpack.

Merged #2


Improved multi-tenancy support in Cadence

Overview
As Cadence starts getting used for more important use cases it is imperative that we provide more guarantees to our customers to ensure that one bad user does not affect other users on the system. To this end there are a number of safeguards that can be built. This document goes over our goals and how we plan to achieve them.
Goals

Isolation - implement quotas across all layers of the system. Quotas implemented should be soft quotas and allow for organic growth
Graceful Degradation - allow for graceful degradation, while implementing a priority system allowing forward progress of high priority domains
SLA for customers - define SLA metrics that we can report back to customers. Start tracking the same for our alerts

Non-Goals

Improved permissioning - only the right person can act on workflows
Scalable task list processing - related but something we know needs to be designed and implemented
Multi-cluster deployments and how to manage them to provide better availability is another area of investigation which we need to tackle. That is left to a separate discussion, with this document focussing solely on multi-tenancy.

High Level Ideas
Usage Monitoring
To drive all the multi-tenancy work it is necessary to gain global usage monitoring stats to feed into the described features. We plan to build out an aggregation layer that can allow us to accumulate stats for API calls per domain, timer/transfer queue usage per domain, task list usage per domain etc. These will allow us to make global decisions around throttling which we are not able to do now.
Rate limiting
Rate limiting on our front end handlers will be improved to enable domain and API specific limits. We will start off with two level rate limits - a first level domain rate limit, followed by a second global rate limit. Initially these will be host level limits. Once we have our usage monitoring infrastructure setup, it will allow us to enforce global rate limits on a per API level.
Decision Throttling
Misbehaving workflows causing repeated decision failures and retries is a major source of issues in our system. These can cause a flurry of decisions which fail, timeout, get re-queued and timeout again. We do have some protections where we do not requeue decisions immediately if they fail multiple times, we wait for the decision timeout, but even in this case if a large number of workflows run into this issue, this will stress our system with useless work. The idea to deal with such issues with domain specific rate limits on task lists for decisions.

Use usage monitoring tooling to aggregate and rate limit task list dispatch on a per domain basis
Add dynamic rate limits on decision dispatch

Tasklists with priority queues
From a task dispatch perspective one of the major issues we face is around misbehaving workflows hogging up our task processing queues. On failed decisions (non-deterministic errors), we retry decisions and place them in the same queue along with other outstanding tasks for that tasklist. Such tasks contend with any valid tasks for that task list. The proposal is to build out priority task queues within a task list, with the history service ensuring that retried decisions go into lower priority queues allowing for regular task dispatch to proceed without issues. This feature along with throttling sub-queues in the history service will ensure that consistently failing domains and bursts of traffic do not affect other domains in the system.
Throttling sub-queues
One of the common use cases for Cadence is to have regularly scheduled jobs, generally timers firing at a particular time to run a workflow. This is a common use case for calculating some information at the end of a month. During such scenarios, expiring the large number of timers firing cause decision dispatch delays in additional domains. This may also happen if a single workflow starts many child workflows and blocks transfer queue processing.
The idea is to build a throttling sub-queue primitive, wherein we will maintain a counter of tasks per domain (host/global) and when this exceeds a certain limit the timer/transfer queue processing for that domain will go to its own software queue, maintaining its own per domain cursors in the mutable state. Additionally the task workers will be updated to support multiple priorities, with the domains taking more resources being directed to lower priority queues. This will ensure that tasks from other domains can continue to make forward progress while the surge of tasks from large domains can be worked through independently.
Scalable Task Lists
This change is already available to users, but it’s put here for completeness. Task lists originally resided in a single host and were a bottleneck if many tasks were to be dispatched. Users who would like to process many timers in the above described scenario would have to spread the tasks across many different task lists. Scalable task lists allow us to spread a task list across many hosts and dynamically change how it is spread, thereby removing this as a bottleneck. We do need to do additional work to automatically scale up task list to span hosts when they are taking up too many resources on a single host.

Really interested in this functionality, @shreyassrivatsan do have any updates to share on this?

Is this done or still in progress? It seems done according to https://eng.uber.com/cadence-multi-tenant-task-processing/, but this PR is still open?

Is this done or still in progress? It seems done according to https://eng.uber.com/cadence-multi-tenant-task-processing/, but this PR is still open?

@fuhengwu2021 I would consider this as done.
It's not implemented exactly the same as described in this issue.
Instead of per tasklist, we have done lots of work to make sure multiple domain can be running in isolated ways and be able to configure the rate of tasks per domain.


Issues with webpack-dev-middleware and couple of questions?

I am trying to replace native DLL implementation in my project with your plugin. My project uses webpack-dev-middleware instead of dev server. static assets are served by .net web server instead.
Questions:

DLL bundles generated once are cached or they are generated each time we start the app in development mode?
Can we specify names of dll bundles e.g instead of polyfills.dll.js > polyfills.js?
I think I don't need assets plugin configured as:

 new AddAssetHtmlPlugin([
        { filepath: helpers.root(`dll/${DllBundlesPlugin.resolveFile('polyfills')}`) },
        { filepath: helpers.root(`dll/${DllBundlesPlugin.resolveFile('vendor')}`) }
      ]),

In my scenario static files aren't dynamically injected. There is no index.html file I am using. In my case root file is index.cshtml (equivalent of index.html) which have static file reference already added.?
Issue:
4) I was putting 3rd party SCSS files like bootstrap, font awesome in DLL and was extracting to common styles.css file using extract text plugin. But DllBundlesPlugin is throwing exception for these files. Any idea how to handle them?

DLL bundles are cached. Each time a bundle is created metadata is saved indicating the packages used in the bundle and their versions. Each time you run webpack the plugin checks the current versions of the packages in the bundle, if they are different from the metadata saved a rebuild is done.

Not at the moment, this is something I will add if I have time (it's in the TODOS)

You don't this is just a suggestion, it does not fit all use cases.

A Bundle is a single container for multiple packages, using the extract plugin here makes no sense. If you want to extract don't include it in a bundle.

I think what he wanna do is more like having a way to build a DLL for css files, like style.dll.css. How do we achieve this with this plugin ?

@shlomiassaf as @maxisam pointed out
with native dll, extract text plugin was extracting styles file applying all of its loader even scss files were added in vendor bundles like this:
vendor: [
            'font-awesome/scss/font-awesome.scss',
            'bootstrap/scss/bootstrap.scss',
            '@angular/common',
            '@angular/compiler',

But  DLLBundlesPlugin errors for scss files.

@asadsahi What is the webpackconfig you are sending? does it have proper loaders?

@shlomiassaf checked the loaders and haven' changed since they are working with DLL plugin.
I was trying to implement same idea of putting css/sass files inside vendor array list and or trying to create a seperate bundle for vendor style like this:
 new DllBundlesPlugin({
            bundles: {
                styles: [
                    '../node_modules/font-awesome/css/font-awesome.css',
                    '../node_modules/bootstrap/dist/css/bootstrap.css'
                ],
                polyfills: [
                    'core-js',
                    'zone.js',
                ],
                vendor: [
                    .....................

But DLLBundlePlugin says it cannot find '../node_modules/font-awesome/css/font-awesome.css' but font-awesome is found, so I am guessing plugin is reading npm packages and not the absolute/relative paths. Not sure for styles, what would be strategy to include in dll bundles.
What works right now for me is to remove styles from vendor bundles and requiring them from component like this:
require('../../node_modules/font-awesome/css/font-awesome.css');
require('../../node_modules/bootstrap/dist/css/bootstrap.css');

So in my project, I am loading styles using this config:
                test: /\.css$/, loader: ExtractTextPlugin.extract({
                    fallbackLoader: "style-loader",
                    loader: "css-loader"
                })
            },
            { test: /\.scss$/, use: ['raw-loader', 'sass-loader'] },

css loader for vendor styles and sass loader for component styles.

@asadsahi You can actually use your own project name and set the path to the main.scss that imports all vendor scss.
Something like this.
  styles: [{
                        name: 'my-app',
                        path: helpers.root('styles', 'main.scss')
              }],

in main.scss you can import all vendor styles you like
@import "~bootstrap/scss/custom"

@shlomiassaf
The problem I am facing right now is it doesn't copy everything under dll folder. It only copy certain files.
However, when I use url-loader, it copies files to dll folder as assets that is referenced by vendor styles.
loader: 'url-loader?limit=10000&name=./assets/[name].[ext]'

I wonder if it can copy everything to output folder ?

@maxisam I think the mechanism in angular2-webpack-starter project to have component level styles and application level (including vendor styles) styles is better to have an option. At the same time we can have css/scss files as an option on top of that.
I think you are injecting vendor styles through angular 2 component. Not sure if thats the best way to include 3rd party vendor css/scss files.
It isn't working in my project right now the way I wanted, but I am looking forward to @d3viant0ne refactoring to see if that simplifies this.

@asadsahi I think you misunderstood. My solution did separate component's
style and vendor's. I put all vendor style in a main.scss because I need to
customize bootstrap's style by overwriting its variable.
If you don't need to overwrite, you can point to bootstrap directly with
the format I used.
On Jan 14, 2017 7:52 AM, "Asad Sahi"<EMAIL_ADDRESS>wrote:

@maxisam https://github.com/maxisam I think the mechanism in
angular2-webpack-starter project to have component level styles and
application level (including vendor styles) styles is better to have an
option. At the same time we can have css/scss files as an option on top of
that.
I think you are injecting vendor styles through angular 2 component. Not
sure if thats the best way to include 3rd party vendor css/scss files.
It isn't working in my project right now the way I wanted, but I am
looking forward to @d3viant0ne https://github.com/d3viant0ne
refactoring to see if that simplifies this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/shlomiassaf/webpack-dll-bundles-plugin/issues/3#issuecomment-272625388,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAb4Z1goEFJqzasONtA9K_pIqw4bwG3dks5rSNMfgaJpZM4LhKTh
.

@maxisam have you got complete webpack config demonstrating this somewhere?

@asadsahi  It should be pretty straight forward. I only change the following part.
new DllBundlesPlugin({
            bundles: {
                styles: [{
                        name: 'my-app',
                        path: helpers.root('styles', 'main.scss')
               }],
                polyfills: [ 'core-js', ...  ],
                vendor: [  ..................... ]
                },
                dllDir: helpers.root('dll'),
                webpackConfig: webpackMergeDll(commonConfig({
                    env: ENV
                }), {
                    devtool: 'cheap-module-source-map',
                    plugins: [
                        new ExtractTextPlugin("[name].bundle.css")
                    ]
                })
            })

in main.scss import all your vendor's style
@import "~bootstrap/scss/custom"
@import "~bootstrap/scss/variables";
@import "~font-awesome/css/font-awesome.css";
....

@maxisam what is your production config?

Well, I haven't decided yet. But did you try the change I mentioned ? Anything doesn't work ?

My config is slightly different than yours, but I have got both dev and prod config working.
Check this out.
I am not passing following in dll plugin though:
 new ExtractTextPlugin("[name].bundle.css")

@asadsahi  I thought you were trying to create a css DLL file ?

@maxisam css/scss config is in the common webpack config. I am extracting external css (bootstrap/font-awesome) into a vendor file in common config file. I am not creating any dll for CSS. Not needed.

Why not ? If we create a CSS DLL file for vendors' style, we don't need to recompile that part all the time right ? Isn't it the whole point of creating DLL ?

@maxisam perhaps haven't felt the need yet. :)
But will give it a try to see the improvement with or without css dll.


Android initialising AM for PM Time

When initialising following date on android
mode: 'dateAndTime', date: '2020-08-02T16:00:00.000Z',  is24h: true
Date is correct but it seems to transform the PM time (16) to AM. It does so with is24h set to true and false.

Getting to that date string by calling .toISOString() on a date as seen in the example. iOS seems to be handling this correctly (except the preview minutes issue flagged in https://github.com/capacitor-community/date-picker/issues/6)
Is that a wrong way of passing on the date or is something broken?
 Android 9.0 "@capacitor-community/date-picker": "^0.1.0", "@capacitor/core": "^2.4.0", "@capacitor/android": "^2.4.0",
Thanks

@joplaete Probably something is broken.
Is this a problem for entry only or does it also happen on the return date?
I will try to upload a fix of this next to #6

It returns the transformed date for me, so if it initialises a 4pm for a 4am it'll return 4am.


Remoting clients are not ideal for leader-aware services

Leader-aware services would like a way to redirect clients to the leader and keep them there. However, a given service node will not always know the URI of the leader.
Some example scenarios would be:
(a) A node is partitioned away from the others, and cannot contact any of them to determine who the leader is
(b) A leader election is in progress, and no one is the leader
(c) A quorum of nodes is not yet available, and a leader election cannot make progress until they become available
(d) A node is a follower, and knows who the leader is
Case (d) is pretty easy; we can just issue a 308. However the other cases are not well supported by the current retry logic.
One option would be to always issue a 308 to some random node in any of the above cases. However, this is not great for (b) and (c), because it does not result in any backoff.
If we simply modify the retry logic to try a random node on 503, that would probably suffice.

Perhaps we should instead make our leader aware proxy simply forward requests to the leader?

That would incur an extra network hop, and in rare cases like (a) is not possible.
It would make the client side logic simpler but, in any scenario where we could reliably forward to the leader, it seems like we could also issue a 308 / redirect.
Though I guess we could just return 503 until we know who the leader is, at which point we redirect to it. Though again, it does not solve (a).

Spoke with @uschi2000 offline - proposed fix is just to retry on a random node on 503


GitHub API error: The search is longer than 256 characters.

Thank you for this great gem.
I am running git-pr-release --squashed in CI on GitHub Actions to create prod release PR.
When the number of PRs contained became large, I encountered an error.
The following is the runner's output (query is masked, keeping string length).
▼ Run git-pr-release --squashed
git-pr-release --squashed
shell: /usr/bin/bash -e {0}
env:
GIT_PR_RELEASE_TEMPLATE: ../../_temp/tmp.xxx
GIT_PR_RELEASE_TOKEN: ***
GIT_PR_RELEASE_BRANCH_PRODUCTION: release
GIT_PR_RELEASE_BRANCH_STAGING: main
TZ: Asia/Tokyo
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
To use multipart middleware with Faraday v2.0+, install `faraday-multipart` gem; note: this is used by the ManageGHES client for uploading licenses
/opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/octokit-9.1.0/lib/octokit/response/raise_error.rb:14:in `on_complete': GET https://api.github.com/search/issues?q=repo%3Amyorgxx%2Fmyrepositoryx+is%3Apr+is%3Aclosed+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000+0000000: 422 - Validation Failed (Octokit::UnprocessableEntity)
Error summary:
message: The search is longer than 256 characters.
resource: Search
field: q
code: invalid // See: https://docs.github.com/v3/search/
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/faraday-2.10.1/lib/faraday/middleware.rb:57:in `block in call'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/faraday-2.10.1/lib/faraday/response.rb:42:in `on_complete'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/faraday-2.10.1/lib/faraday/middleware.rb:56:in `call'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/octokit-9.1.0/lib/octokit/middleware/follow_redirects.rb:73:in `perform_with_redirection'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/octokit-9.1.0/lib/octokit/middleware/follow_redirects.rb:61:in `call'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/faraday-2.10.1/lib/faraday/rack_builder.rb:152:in `build_response'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/faraday-2.10.1/lib/faraday/connection.rb:444:in `run_request'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/faraday-2.10.1/lib/faraday/connection.rb:200:in `get'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/sawyer-0.9.2/lib/sawyer/agent.rb:99:in `call'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/octokit-9.1.0/lib/octokit/connection.rb:156:in `request'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/octokit-9.1.0/lib/octokit/connection.rb:84:in `paginate'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/octokit-9.1.0/lib/octokit/client/search.rb:99:in `search'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/octokit-9.1.0/lib/octokit/client/search.rb:49:in `search_issues'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/git-pr-release-2.2.0/lib/git/pr/release/cli.rb:145:in `search_issue_numbers'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/git-pr-release-2.2.0/lib/git/pr/release/cli.rb:179:in `fetch_squash_merged_pr_numbers_from_github'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/git-pr-release-2.2.0/lib/git/pr/release/cli.rb:101:in `fetch_merged_prs'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/git-pr-release-2.2.0/lib/git/pr/release/cli.rb:46:in `start'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/git-pr-release-2.2.0/lib/git/pr/release/cli.rb:12:in `start'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/git-pr-release-2.2.0/exe/git-pr-release:5:in `<top (required)>'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/bin/git-pr-release:25:in `load'
from /opt/hostedtoolcache/Ruby/3.3.4/x64/bin/git-pr-release:25:in `<main>'
Error: Process completed with exit code 1.

I guess this is related

Songmu/tagpr#178

#102 will fix this?


Adding the possibility to setup memos in a subpath/subfolder/with a base_url

Describe the solution you'd like
Hello,
In addition to the current memos.example.com it you be great if we could configure a base url for memos to be able to put it behind example.com/memos.
Type of feature
Integrations
Additional context
I saw that feature request already a few time and wanted to add another vote to that suggestion.
I usually store almost all of my services behind the url services.example.com/<service>, to help with CSRF and CORS things, I would love to add memos there too since it is a great service in my daily use. But even with hours of tweaking my reverse proxy (HAProxy), I still didn't succeeded at making it work, and I do not know enough of Go/React to try making a pull request for that feature myself.
Even if not now. Thanks if you can consider looking at this option for a future update!

That‘s great idea! I also have the configurable context requirement, because my hostname is shared by multiple applications.
It's an useful enhancement. Thanks!

+1

Looking forward to the enhancement being added.

Well, I guess that's a no 😕


Develop to main v 0.3.0

develop to main v0.3.0

Added exclusion of non-specific, lowly expressed genes to improve run time of the SVM model. Constructed a cPredictor class (and child class) containing all the properties and methods. This makes cPredictor run identical during CV and actual prediction.


Warning! Minified slick.min.js in the latest master branch is the JS for v1.0.1 tag

The minified JS in the latest master branch 61b5322 has been compiled for the tag v1.0.1 and does not reflect the latest slick.js in the master branch.

Currently in terms of managing a build, you must use the source slick.js if you want use the latest master with the fixes from the past few years before the next tag.
In my opinion, the slick.min.js should be built whenever there is a commit or PR merge to master.


Add manual testing for client, help and switching tabs

Tackles part of https://github.com/AY2122S1-CS2103T-W16-2/tp/issues/206
View changes here

Codecov Report

Merging #241 (c43629a) into master (6217ca6) will increase coverage by 0.00%.
The diff coverage is 66.66%.

@@            Coverage Diff            @@
##             master     #241   +/-   ##
=========================================
  Coverage     77.48%   77.48%
  Complexity     1149     1149
=========================================
  Files           139      139
  Lines          3344     3345    +1
  Branches        374      374
=========================================
+ Hits           2591     2592    +1
  Misses          657      657
  Partials         96       96

Impacted Files
Coverage Δ

...22s1_cs2103t_w16_2/btbb/commons/core/Messages.java
0.00% <ø> (ø)

..._2/btbb/logic/commands/order/DoneOrderCommand.java
91.30% <ø> (ø)

.../btbb/logic/commands/order/UndoneOrderCommand.java
91.30% <ø> (ø)

...122s1_cs2103t_w16_2/btbb/model/order/Deadline.java
91.66% <ø> (ø)

...tbb/model/predicate/ValueWithinRangePredicate.java
92.85% <ø> (ø)

...ava/ay2122s1_cs2103t_w16_2/btbb/ui/MainWindow.java
0.00% <ø> (ø)

...16_2/btbb/model/predicate/PredicateCollection.java
91.17% <60.00%> (ø)

...y2122s1_cs2103t_w16_2/btbb/model/client/Email.java
90.90% <100.00%> (+0.90%)
:arrow_up:

... and 1 more

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 33c17c8...c43629a. Read the comment docs.


Getting user doesnt have access to create a project in LLamacloud

When I try to create a project, it says that the user doesnt have access to create llamacloud project?Why so

Hi!
You can use llamaParse without creating a project.
This vutton should only be visible to whitelist user, however our last release display it by accident, sorry for that

Thank you
On Wed, 28 Aug 2024 at 06:55, Pierre-Loic Doulcet @.***>
wrote:

Hi!
You can use llamaParse without creating a project.
This vutton should only be visible to whitelist user, however our last
release display it by accident, sorry for that
—
Reply to this email directly, view it on GitHub
https://github.com/run-llama/llama_parse/issues/366#issuecomment-2313905056,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYFU7YYKJ5CTMB7BO6IXBSTZTURH7AVCNFSM6AAAAABNGIMJ4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJTHEYDKMBVGY
.
You are receiving this because you authored the thread.Message ID:
@.***>


"{{{{{{{{" and "}" can be inserted by cmdline-completion

Describe the bug
{{{{{{{{ and } can be inserted by cmdline-completion.
To Reproduce

Run vim --clean.

Type : to start cmdline-mode:
:

Press TabCTRL-PCTRL-PCTRL-P:
:}

Press CTRL-P again:
:{{{{{{{{

Expected behavior
These are not inserted by cmdline-completion.
Environment

Vim 8.2.2549
macOS Catalina (version 10.15.7)
iTerm2

{ and } start and end a block in Vim9 script.  They were added in the patch 8.2.1826.
However, I don't know why {{{{{{{{ is considered as an Ex command:
https://github.com/vim/vim/blob/0e62a6742bca186624e97e2121c98ada30e009a0/src/ex_cmds.h#L1822-L1824
Also, not sure how useful it is for { and } to be suggested on the command-line.  I can't find a usage example:
:vim9 { echo 'inside a block' }
E720: Missing colon in Dictionary:  'inside a block' }

In a script, { and } should be on separate lines.  Usually, to emulate a newline on the command-line, we can press C-v C-j:
:fu Func()^@endfu

but it doesn't work here:
:vim9 {^@echo 'inside a block'^@}
E488: Trailing characters: ^@echo 'inside a block'^@}

perhaps can be used for foldlevel mark, e.g " LOAD GUARD {{{1, though no }}}1, but most users may have auto-fill for { to {}.
// just a Guess.. :-)

Fixed by patch 8.2.2552

{ and } start and end a block in Vim9 script.  They were added in the patch 8.2.1826.
However, I don't know why {{{{{{{{ is considered as an Ex command:
https://github.com/vim/vim/blob/0e62a6742bca186624e97e2121c98ada30e009a0/src/ex_cmds.h#L1822-L1824

I forgot why I did it that way.  Just using "{" should work.  Tests
pass.  Let me change it.

Also, not sure how useful it is for { and } to be suggested on the command-line.  I can't find a usage example:
:vim9 { echo 'inside a block' }
E720: Missing colon in Dictionary:  'inside a block' }

Yeah, it's more for consistency than that it's useful.

In a script, { and } should be on separate lines.  Usually, to
emulate a newline on the command-line, we can press C-v C-j:
:fu Func()^@endfu

but it doesn't work here:
:vim9 {^@echo 'inside a block'^@}
E488: Trailing characters: ^@echo 'inside a block'^@}

Using {} for blocks is for when writing a script.  Typing them is hardly
ever useful.  Still, it should work.  Ah, the EX_TRLBAR flag is missing.
--
The Law, in its majestic equality, forbids the rich, as well as the
poor, to sleep under the bridges, to beg in the streets, and to steal
bread.                       -- Anatole France
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Thanks for fixing!🎉


How do I make a one-to-one relationship optional?

Issue
So I have several places where this is true, but one of them is the relationship between the "User" and "Quid" table. Each user can have several quids, and each quid belongs to one user, so that part has no problems. but additionally, one and exactly one of those quids can be the "global last proxied" one. So I have a column on the user table which is called proxy_lastGlobalProxiedQuidId. But this is a One-to-one relationship, which means that each quid is also looking to belong to one of these fields. But that is not true, not every quid is the last global proxied quid of a user. So some quids have that one-to-one relationship, while others just dont have that relationship at all. How exactly do I make this optional on the quids part? I tried just adding allowNull:true but it doesn't exist in the options for the decorator. Here is my code:

Versions

sequelize: 6.28.0
sequelize-typescript: 2.1.5
typescript: 4.9.5

So, if a User instance have multiple Quid instances and a Quid instance can only belong to one user, you have a 1:N (OneToMany) association.
If only one Quid instance is a GlobalProxiedQuid, you can mark him as one, instead of using  it's foreign key.
So, your association would be something like:
(user.ts)
public class User extends Table<...>{
 /** ... */
 @HasMany(() => Quid)
 quids: Quid[];

}

(quid.ts)
public Class Quid extends Table<...>{
 @ForeignKey(() => User)
 @Column({ type: DataType.INTEGER /** ... */ }) //If you're using surrogate keys, then the DataType must be INTEGER
 declare fk_user: number | null;

 @BelongsTo(() => User)
 user: User;

 @Column
 isLasGlobalProxiedQuid: boolean;
}

That way, if some user have a globalProxiedQuid, he will be marked with a quid that has "isLasGlobalProxiedQuid" set to true.
Other two junkier ways to do it is:
Have a different table that only have lastGlobalProxiedQuids, so the User would associate with both Quid and then, you could check if the Quid is listed in LastGlobalProxiedQuids.
(quid.ts)
public Class Quid extends Table<...>{
 @ForeignKey(() => User)
 @Column({ type: DataType.INTEGER /** ... */ }) //If you're using surrogate keys, then the DataType must be INTEGER
 declare fk_user: number | null;

 @BelongsTo(() => User)
 user: User;

 @HasMany(() => LastGlobalProxiedQuid) //Considering that somehow multiple LastGlobalProxiedQuids exists
 quids: Quid[];
}

(lastGlobalProxiedQuid.ts)
public Class LastGlobalProxiedQuid extends Table<...>{
 @ForeignKey(() => Quid)
 @Column({ type: DataType.INTEGER /** ... */ }) //If you're using surrogate keys, then the DataType must be INTEGER
 declare fk_quid: number | null;

 @BelongsTo(() => Quid)
 quid: Quid;

}

And the other method to do it is to have the same thing but with LastGlobalProxiedQuid associated with User, so you could compare both (idk why someone would do it).


RSASSA-PKCS1-v1_5

Implementation of RSASSA-PKCS1-v1_5

added static property for hash classes. hash.NAME returns name of hash mechanism
added RSA_PKCS1_v1_5 class with implemenation of sign and verify functions

Could you please add some test vectors?

I've got working tests for webcrypto-liner which uses asmcrypto.js. I'm checking signed data with native Chrome results. https://github.com/PeculiarVentures/webcrypto-liner/blob/master/test/script/rsa.js#L156
I didn't write test for asmcrypto, because I don't know your tests structure well. I can write tests, but not quickly.


tf.broadcast_to crashes with JIT

Click to expand!
Issue Type
Bug
Source
source
Tensorflow Version
tf 2.9.1
Custom Code
Yes
OS Platform and Distribution
Linux Ubuntu 20.04
Mobile device
No response
Python version
3.9
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
11.4
GPU model and memory
No response
Current Behaviour?
Session crashes when running the (compiled) `tf.broadcast_to` with an invalid shape, and can potentially trigger a denial of service attack.
This bug only happens with using `@tf.function(jit_compile=True) `.

Standalone code to reproduce the issue
import tensorflow as tf
input_tensor = tf.zeros([1, 1], dtype=tf.int32)

@tf.function(jit_compile=True)
def f(input):
    shape = [-1, 1]
    return tf.broadcast_to(input, shape, )

f(input_tensor)

Relevant log output
F tensorflow/core/framework/tensor_shape.cc:186] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Expected shape dimensions to be non-negative, got -1
abort

If we don't use JIT, then it will not crash, but throw an exception instead (which is expected).
Below is the code (removing the JIT), it throws InvalidArgumentError.
import tensorflow as tf
input_tensor = tf.zeros([1, 1], dtype=tf.int32)

def f(input):
    shape = [-1, 1]
    return tf.broadcast_to(input, shape, )

f(input_tensor) # tensorflow.python.framework.errors_impl.InvalidArgumentError: Dimension -1 must be >= 0 [Op:BroadcastTo]

。。

@MThalberg
I tried to reproduce the issue in the latest version TF2.10 and the given code is successfully compiled without session crash. Could you please find the gist here and confirm the same? Please let us know if it helps.
Thank you!

Hi @tiruk007 , thanks for reproducing, it seems that this issue has been fixed on TF2.10. However, The session crash happens in TF2.9.1.

@MThalberg
Could you please close the issue? The issue  is fixed in the latest version TF2.10
Thank you!


Automatically build and release

This reduces the amount of manual work.

This may need a deployment token to commit directly to a protected branch. I'll see once it's merged.


Can you provide a Python script or documentation for HTTP POST?

Can you provide a Python script or documentation for HTTP POST?

We need to conduct some research before implementing this feature. If you have any ideas or suggestions, feel free to share them to assist us in the implementation process.


create Tonic example

Add "tonicExampleFilename" into package.json

example aded in examples/tonic,js


Recent Files is showing no files

No file ever appears in Recent Files list.

@jclorente Thank you for opening this issue, we need a little more information from you in order to investigate this issue, please reopen this issue once you have filled out the issue template.


Phase 2 Support

[ ] #8
[ ] #9
[ ] #10
[ ] #11

[ ]  Schema and simple wrappers for XML #8
[ ]  Cryptographic stamp and signature #9
[ ]  Hashing #10
[ ]  API integration #11

Need a help

Hey @Nimesh-Arselor, this is still being worked on. Once it's done the wiki will have sample requests for different invoice types.

Hey @obahareth, is this still being worked on? I can participate if so.

@AbdelrahmanManz Yes in #15. I already have test cases and generation of standard/simplified invoices done, as well as a simple HTTP client for their API. There is one point that I am currently stuck at that I have spoken to ZATCA about and waiting for their reply.
Right now the hash of the XML is very whitespace-dependent and if you look at the samples ZATCA has for simplified invoice, standard invoice, debit notes, credit notes, etc.
They all have different indentation sizes and different spacing between elements even. A simple change in the whitespace results in your hash being invalid unless you match ZATCA's whitespace per file and per case. You can test this by trying ZATCA's validator against their own signed invoice sample, then just adding/removing any single whitespace and see that it becomes invalid on their validator.
I went with an approach of dynamically generating the XML based on the input (which is really great for supporting all of the different cases), assuming that ZATCA has a whitespace standard, I am asking them to also support a minified version of the XML to avoid whitespace issues.
If I have no luck there, then it may be a better idea to either:

Use an approach where we just copy their files as is and swap in our values (similar to what @wes4m did in his NodeJS version)
Create custom subclasses of Invoice for each case and manually adjust the whitespace to match ZATCA's after generating the XML.

Since the library already uses an approach of generating XML and we are short on time, I will probably be go for option 2 unless ZATCA allows minified XML.

This is mostly complete now, invoices generated by this SDK have passed all the onboarding checks on simulation and successfully generated the production CSID.

@obahareth Great stuff!!!


Test Marked As Passed Even If Different Error Type Is Returned

👋 I noticed that my Codeception tests pass even if I expect a different type of error from psalm.
Steps To Reproduce
Write a gherkin test snippet and include Then I see these errors in the test. Expect a specific error such as | MissingFile | Cannot find file |  when require_once file/that/doesn't/exist.php is analyzed.
An example is here: https://github.com/psalm/psalm-plugin-laravel/pull/99/commits/d69377b08fd16567de5ea706e8dc3e336afc196e#diff-dc52f1aabf7e9388e148c112a4b349c1R32
Expected

Test fails because UnresolvableInclude was returned by psalm instead of  the expected MissingFile

Actual

Test passes

I just realized I have  the wrong syntax. I didn't include | Type                  | Message in my assertion. Should we complain loudly about that to avoid a false positive like what I ran into?

First line of the table element is ignored because I thought it would be useful to have headers. | Type | Message | is just a convention.
Perhaps the module should complain when:

there's just one row in the table
the first cell contains a known error type (indicating that header row was omitted)


Update Phase 1 file links to PPoT #80

A ceremony will currently pick up links to the Hermez phase 1 files, based on PPoT contribution #54. These have been superseded by a set of files prepared from contribution #80. The files are available at a link to a PSE S3 bucket.

Link to the folder: https://pse-trusted-setup-ppot.s3.eu-central-1.amazonaws.com/pot28_0080/
Files are named in the form 'ppot_0080_xx.ptau' where xx is the number of powers required.

Moving this issue to p0tion


feat: add auto-assign to themes issues and PRs Turntable

@williamckha initially I had Fluent here, but I'll remove it in another PR.
There are a lot of themes that I do not know the owners yet however. If anyone could help here that would be awesome!

Thank you @morpheusthewhite! I'll also add all of those as contributors to this repo!

Okay, it seems that it is working for everyone that is already part of the repo!

Please accept the invites to join the Spicetify org and themes repository as soon as you can!
@pjaspinski @Blacksuan19 @okarin001 @harbassan @grasonchan @schnensch0


Added pets for each customer in seed. llama007 has 3 pets

Description
Added more pets to the seed data so that every customer has at least one pet. Jackie Stratton (llama007) has 3 pets, to render multiple pets.
Type

[x] This is part of a feature.

Organization

[ ] Have you linked this pull request to a Trello card?
[x] Have you named the branch in the format of feature/describe_feature_or_change OR bug/describe_bug_this_is_fixing

Review

[x] Is this ready to be reviewed?
[ ] Have you added two reviewers to this pull request?

During the stakeholder meeting today, no pets rendered in the demo. This turned out to be because the db reset. I've added more pet seed data (there was only 1, for a customer that I wasn't logged in as) so that this doesn't happen again, to us or to future teams. Jackie Stratton (llama007) has 3 pets, so we can show how multiple pets render.


Add resource for  properties definition

Multiple resource can have custom properties:

ranges
CloudNetworks
ipam_record
dnszones

But before you can use them you have to create a custom properties definition.
Can we make 1 resource to do that?

technical all the custom properties definitions  are separate resources in the api:

/IPAMRecords/{ref}/PropertyDefinitions/{property}
/Ranges/{ref}/PropertyDefinitions/{property}
etz

But the all have the same fields so its at least possible

When setting a custom propertie of a resource. There is no reference made to customPropertie definition.
And i think this is fine, but this means you need to add depends_on = [ menandmice_custom_propertie_definition.<name>] when you set a custom proportie. Otherwise  terraform does not know that the resource depends on the definition


Fix #274 - Overwrite svg file if input file is output

This PR solves #274

Thanks for this!
Some thoughts

I'm still thinking about border cases that might destroy the original file content when something goes wrong - we should make absolutely sure this can not happen. My first thought was to write to a temporary file first, and move/rename later, but that might have implications of it's own and might mean unnecessary file IO.
I find the approach of opening one file in r+ mode and still treating it as two separate files (input/output) a bit convoluted and see the danger of introducing bugs at one point if we're not careful. That said I admit it is an elegant solution in principle, but maybe we can still come up with something better, that makes it clear it's only one file or actually handles reading and writing separately?
I'd prefer the option name --in-place in line with the original issue https://github.com/scour-project/scour/issues/129


Implement logging to file

The missing thing is, we should have some log file for all processes.

I have run such thing:
$ autoxtrabackup --test_mode -lf /home/shahriyar.rzaev/autoxtrabackup.log -v -l DEBUG --defaults_file='/home/shahriyar.rzaev/XB_TEST/server_dir/xb_2_3_ps_5_6.conf'

And actually it is succeeded:
$ ls -lthr | grep autoxtrabackup.log
-rw-r--r--  1 shako shako 601K Noy  1 15:11 autoxtrabackup.log

So if you are going to add -lf + -v -> it will print to console and also to log into the given file.


chore(release): publish

Description

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] The commit message(s) follow conventional commits
[ ] Documentation has been added / updated (for bug fixes / features)
[ ] Changes follow the contributing document.

Motivation and Context

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Which merge strategy will you use?

[ ] Squash
[ ] Rebase (REVIEW COMMITS)

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.61%. Comparing base (cbfac81) to head (f1a4924).
Report is 1 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #237   +/-   ##
=======================================
  Coverage   88.61%   88.61%
=======================================
  Files           6        6
  Lines         123      123
  Branches        6        6
=======================================
  Hits          109      109
  Misses         14       14

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


[WIP] [HUDI-7524] Ensure existing hoodie.properties are not overwritten with HoodieTableMetaClient creation

Change Logs
org.apache.hudi.common.table.HoodieTableMetaClient#initTableAndGetMetaClient can overwrite a existing hoodie.properties today. The jira ensures that an error is thrown if the file already exists.
Impact
org.apache.hudi.common.table.HoodieTableMetaClient#initTableAndGetMetaClient would now throw error if hoodie.properties already exists.
Risk level (write none, low medium or high below)
low
Documentation Update
NA
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

Did you triage all writers (delta streamer) to ensure we are good wrt this fix.
So, if someone wishes to use Overwrite mode in spark, we may not hit it right?
ie. after few commits, they realized they wanna override the data.

So, if someone wishes to use Overwrite mode in spark, we may not hit it right?
ie. after few commits, they realized they wanna override the data.

Yes overwrite should work. Will test it though. But there are other places in code where we use this API. I will need to check those. Also there are test failures. Moved it to WIP.

I see this as a user error and its ok to not add guards for these. we can't have guards for all diff ways users could make mistakes. if someone is going to directly use internal classes or apis, we expect them to know what they are doing.
a general hudi user who is used one of the available writers out of the box may not hit this issue.
feel free to re-open if you think otherwise.


Feature/backend GitHub requests

Description
Removes octokit dependency fully.
Uses our public backend.
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Chore: cleanup/renaming, etc
[ ] RFC

Notes

Acceptance

[ ] I have read the Contributing guidelines
[ ] I have read the Code of Conduct

Not sure if this is the main goal of this PR or not, but doesn't fix the error I get.

No, unrelated.
Your dev environment is broken.

Not sure if this is the main goal of this PR or not, but doesn't fix the error I get.

No, unrelated. Your dev environment is broken.

As you can see in the code, @baristaGeek, this PR removes the dependency on octokit and uses our backend for requests to the GitHub API.

Any updates @baristaGeek ?


Add systemd unit + docs

Created a systemd unit file to let it handle service startup, logging and crashes/restarts as required.
Creating a a new request as old one (#279) was tainted by my bad decisions.

Sweet, thanks!


Codeclimate setup

I wonder if we want to add rack-test/rack-test to code climate.
This way it is less confusing and I could update the badges. Feels like a hidden
inconsistency that will one day start to fail.

Yeah, I agree to add rack-test/rack-test to code climate.
Thanks for your work!


Is this abandonware?

I just found that this project could help me a lot, but it seems it was abandoned. Is it true?

Thanks @csantero, I saw that. But JSONAPI.NET is the best implementation of the JsonApi for .Net - by far.
Just wanted to be sure it is still live as I'm planning to start using it. Surely I will try to contribute as much as I can. Cheers!

@fabricioferreira an alternative is NJsonApi, we have been using it at my company and we were able to modify it to suite our needs.

@csantero any chance that you could publish the .nuspec file for the NuGet package? I can add one myself otherwise. I'd be happy to release new packages if you need help.


The Unity environment took too long to respond. ML agents v0.15.1

I was trying out the simple RollerBall project with ml agents.
When I run ML agents v0.15.1 & ML agents v0.15.0, there appears to have errors as I type in
mlagents-learn config/config.yaml --run-id=RollerBall-1
(However, it is fine when i switch back to Ml agent v0.14.1)
the erros shows on the cmd window:

Version information:
ml-agents: 0.15.1,
ml-agents-envs: 0.15.1,
Communicator API: 0.15.0,
TensorFlow: 2.0.1
WARNING:tensorflow:From c:\users\alex\python-envs\ml-agents151\lib\site-packages\tensorflow_core\python\compat\v2_compat.py:65: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
Process Process-1:
Traceback (most recent call last):
File "C:\Users\Alex\AppData\Local\Programs\Python\Python37\lib\multiprocessing\process.py", line 297, in _bootstrap
self.run()
File "C:\Users\Alex\AppData\Local\Programs\Python\Python37\lib\multiprocessing\process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "c:\users\alex\downloads\ml-agents-0.15.1\ml-agents\mlagents\trainers\subprocess_env_manager.py", line 98, in worker
worker_id, [shared_float_properties, engine_configuration_channel]
File "c:\users\alex\downloads\ml-agents-0.15.1\ml-agents\mlagents\trainers\learn.py", line 444, in create_unity_environment
side_channels=side_channels,
File "c:\users\alex\downloads\ml-agents-0.15.1\ml-agents-envs\mlagents_envs\environment.py", line 143, in init
aca_output = self.send_academy_parameters(rl_init_parameters_in)
File "c:\users\alex\downloads\ml-agents-0.15.1\ml-agents-envs\mlagents_envs\environment.py", line 558, in send_academy_parameters
return self.communicator.initialize(inputs)
File "c:\users\alex\downloads\ml-agents-0.15.1\ml-agents-envs\mlagents_envs\rpc_communicator.py", line 98, in initialize
self.poll_for_timeout()
File "c:\users\alex\downloads\ml-agents-0.15.1\ml-agents-envs\mlagents_envs\rpc_communicator.py", line 91, in poll_for_timeout
"The Unity environment took too long to respond. Make sure that :\n"
mlagents_envs.exception.UnityTimeOutException: The Unity environment took too long to respond. Make sure that :
The environment does not need user interaction to launch
The Agents are linked to the appropriate Brains
The environment and the Python interface have compatible versions.
2020-04-09 16:16:09 WARNING [learn.py:343] Unable to save to ./summaries/RollerBall-3_timers.json. Make sure the directory exists

I have checked many posts and I just didnt know how to solve this problem.
Things I already tried to resolve the problem:

I have ran the code below before I start training but no luck.
pip3 install -e ./ml-agents-envs
pip3 install -e ./ml-agents

Turning off my firewall, no luck.

The only thing that works is that I switch it back to ml agent V0.14.1
Could anyone please look it up for me, thank you so much.
System Info:
System: Window 10
Unity Version: 2019.3.7f1
Python Version: 3.7.7

Your issue is unrelated to this repository. You may want to look for the appropriate place to report this.


chore(CPlusPlus): added Huffman

Signed-off-by: Kareim Tarek AbdelAzeem<EMAIL_ADDRESS>

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] New algorithm
[ ] Optimization in previous algorithms
[ ] Code style update
[ ] Refactor
[ ] Documentation
[ ] Other, please describe:

Briefly describe the changes in this PR
added Huffman Code Algorithm in C++ with example tests

Other information:

@ming-tsai @Arsenic-ATG
Fixed type and added header guard
Thanks for your patience I was busy the last couple of days.

so the code is failing cpplint tests and these are the "styling faults" that it points out in your program : -

algorithms/CPlusPlus/Codes/huffmanCode/huffman.cpp:10:   is an unapproved C++11 header.  [build/c++11] [5]

This is because cpplint seem to prefer an external library within Google over them.
learn more about it here

algorithms/CPlusPlus/Codes/huffmanCode/huffman.h:1:  #ifndef header guard has wrong style, please use: ALGORITHMS_CPLUSPLUS_CODES_HUFFMANCODE_HUFFMAN_H_  [build/header_guard] [5]

algorithms/CPlusPlus/Codes/huffmanCode/huffman.h:36:  #endif line should be "#endif  // ALGORITHMS_CPLUSPLUS_CODES_HUFFMANCODE_HUFFMAN_H_"  [build/header_guard] [5]

algorithms/CPlusPlus/Codes/huffmanCode/main.cpp:1:  Include the directory when naming .h files  [build/include_subdir] [4]

a quick fix for point 4 can be to update #include "huffman.h" to `#include "./huffman.h"


A problem with train my data

Hello, my data set is in txt format, but the code only reads png format, how should I read the data in txt format? @pvoigtlaender

I think TrackR-CNN should be able to read both formats (@ahnonay can you confirm?). I think you need to put the data in a folder named instances_txt

Thank you for your reply。What do you mean is that I need to put txt into the instances_txt and also need to put the png format into the instance, the original image into the images folder? But in the website：https://www.vision.rwth-aachen.de/page/mots say that txt and png can be selected one by one.. Or what part of the code do I need to modify so that TrackRCNN can read the data in txt format?

There should be no need to change code.
And you need only either png format Annotations or txt format Annotations.
If you use png Annotations, they need to be in a folder named "instances". If you use txt Annotations, they need to be in a Folder named "instances_txt". Do not put Annotations (png or txt) into an images folder.
Maybe first try to use the txt Annotations of the original KITTI MOTS dataset and get it running.

I have already run KITTIdata and MOTdata before, and the effect is very good, but when I train my own data, I replaced the annotation file in the instances_txt folder with my own txt and put the original image into the images folder, but It was given an error. Then I read the code, I found def read_inputfile_lists(self) in KITTI_segtrack.py: is the png in the reads, and did not find the function to read txt.

So is there a problem with my data set? Or which other step is a problem?

Oh, I think I might have been wrong and TrackR-CNN really does expect the annotations in png format.
In this case, you'll need to convert the txt format to png format. I think we do not have a script for this, because we usually first create the pngs and then convert them to txt and not the other way round.
Maybe you can take inspiration from the visualization script https://github.com/VisualComputingInstitute/mots_tools/blob/master/mots_vis/visualize_mots.py and then instead of visualizing, you create the annotation pngs (the format is briefly described at https://www.vision.rwth-aachen.de/page/mots ).

Thank you very much for your answer, I will try both of it later.

Excuse me, thank you very much for your help. I have converted txt to png, and I get an 8-bit png, but trackrcnn needs a 16-bit png. When I get a 16-bit png via pypng but it is a bit different from the png you provided earlier. How do you get your png?
Since there are two classes in my picture, I want to know how trackrcnn gets his class_id and instance_id in the case of read-only png.
This is my png8：It contains two classes, point:1, other:2, different instances have different colors

And this is the converted png16：Without color difference, how can trackrcnn get classification information and instance information?

Thank you for your  help！
@pvoigtlaender

Hi,
to save the png with 16 bits, you can use
ann = np.zeros((h, w), dtype="uint16")
# put some data into ann
cv2.imwrite(out_filename, ann)

The format is described here:
https://www.vision.rwth-aachen.de/page/mots
The class id can be obtained by floor divison of the object id by 1000 (class_id = obj_id // 1000) and the instance id can be obtained by the object id modulo 1000 (instance_id = obj_id // 1000).

Thank you for your reply, but there are two types of targets in the same picture. For example, if I have cars and people in my png, can their class_id be expressed with obj_id // 1000?

In the absence of a label, whether the object_id of png contains category information, such as obj_id=1005 of a person in the same png and obj_id=2003 of a car.

I didn't fully understand your question.
If you have two classes, then for the instances of the first class, use ids which start with 1000, e.g.
1001, 1002, 1003, ...
and for the second class use ids which start with 2000, e.g.
2001, 2002, 2003, ...
You will not be able to see the different instances when visually looking at the png (since their values are only slightly different), but you should at least be able to see 2 different classes visually and TrackR-CNN will be able to read all information including instances out of the png.

I know where the problem is, Thank you!
This is the information for your png:

This is my png:

So, my question is how can I make my png contain obj_id  (1001, 2001)like yours

ann = np.zeros((h, w), dtype="uint16")
# get "mask" from somewhere
ann[mask] = 1001
cv2.imwrite(out_filename, ann)

May I ask what type of mask is it? Rle encoded string? Or uint8 png?thank you.

A numpy ndarray. Since you want to fill the output png with your own data, you have to get the data from somewhere, I guess from your data in txt format, then you can decode the rle which gives you an ndarray with which you can index the array which you will later write out as png.

I get it，thank you very much for your help.You are so kind！

Happy to help :)
It seems to be resolved, so I'll close. If there's still trouble with the same problem, feel free to reopen. If you encounter another problem, just open another issue.

@lalalabiubiu did you manage to annotate your own images according to the format of TrackR-CNN (with instance id etc.)?  Thanks in advance!

Yes, we successfully annotated our dataset using labelme and mots_tools.First of all, we use labelme to label the sample, the label are 1001,1002,1003... And then we use labelme_to_dataset.py to converting the format.When converting the format, save labels to .txt. Then modify mots_tools/mots_common/images_to_txt.py to read the PNG and txt file (labels). Finally,convert them to the format required by trackrcnn based the codes:
ann = np.zeros ((h, w), dtype="uint16")
get "mask" from somewhere
ann[mask] = 1001
cv2.imwrite(out_ filename, ann)
------------------ 原始邮件 ------------------
发件人:                                                                                "VisualComputingInstitute/TrackR-CNN"<EMAIL_ADDRESS>发送时间: 2020年9月16日(星期三) 晚上10:22
收件人<EMAIL_ADDRESS>抄送: "雨季不再来"<1294022723<EMAIL_ADDRESS>主题: Re: [VisualComputingInstitute/TrackR-CNN] A problem with train my data (#36)
@lalalabiubiu did you manage to annotate your own images according to the format of TrackR-CNN (with instance id etc.)?  Thanks in advance!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


LInux and MacOS support?

Is it possible to provide the Linux and MacOS support?
That will be very awesome!
Thank you!

You may set option type to desktop when you create a BrowserWindow

I'm Sorry but i have no plane to support Linux and MacOS now, maybe if you link useful resource ill try.

Is it possible to provide the Linux and MacOS support? That will be very awesome! Thank you!

Agree it!!

Is it possible to provide the Linux and MacOS support? That will be very awesome! Thank you!

I found that electron support it on macos! U can set type as "desktop".

Is it possible to provide the Linux and MacOS support? That will be very awesome! Thank you!

I found that electron support it on macos! U can set type as "desktop".

Thank you!


fix: solve plots for the new version

that is cool! We should see how we best can merge it with https://github.com/lamalab-org/chembench-paper/pull/38 where I am currently slowly rebuilding the workflow

No problem, I can move all the changes there and then close this PR

I think we can do different things and it is not clear which one is the best:

if you keep the changes here mostly in the scripts it is also very easy to merge yours into main and then update my PR
we can make this PR go into mine
I can try to be faster and merge into main first
we can only work on one branch (might be messy)

I think we can do different things and it is not clear which one is the best:

if you keep the changes here mostly in the scripts it is also very easy to merge yours into main and then update my PR
we can make this PR go into mine
I can try to be faster and merge into main first
we can only work on one branch (might be messy)

I have no preference, I can adapt to any of them

I recommend dropping wordcloud.py

I think we can close this one right @kjappelbaum ?

yeah - I think it is outdated now, unless you think that there is still something in there that we should keep


Simply Steps

Would it be possible to make turning on Desk Encryption much easier.  Like one button click in the Azure Portal?

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

ID: 0dbd38fa-89f0-320a-b517-b440be6927f9
Version Independent ID: 8b2eeee3-fb49-37e5-917d-f36bcd60ad29
Content: Azure Disk Encryption Prerequisites
Content Source: articles/security/azure-security-disk-encryption-prerequisites.md
Service: security
GitHub Login: @mestew
Microsoft Alias: mstewart

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

@Aardvark8
Thanks for taking the time to provide feedback on Azure Disk Encryption! This is an interesting idea, and I want to make sure it gets directly into the hands of the engineering team. Fortunately, we've got dedicated channels for that very purpose. :) See the Feedback for Azure Virtual Machines website. I think it’s important that you submit it directly because that allows you to receive notifications and more closely monitor the progress. I'm closing this issue as there's nothing actionable for the Azure Security Documentation team at this time. #please-close

@Aardvark8 We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Cleanup package deletion callbacks

Purpose
This PR cleans up the heavy if, else if, else callbacks introduced in PR #20.  It replaces the previous format with async.waterfall which is used in other areas of the PM code base.  Waterfall runs functions in series, passing results to the next function.  If any function returns an error object, the whole thing terminates passing the error the outer callback which finally gets sent to slack via webhook.
Reviewers
@mjkkirschner

@mjkkirschner @ramramps No rush on reviewing this but I wanted to try and clean up those callbacks as we discussed using async.waterfall.  The logic should be the same just broken out into 3 consecutive functions.  I am running the updates on the Dev machine this week for testing so if you think the changes are a good move we can get this merged in as well.

@alfarok I will look at this first thing tomorrow - also note that internally master branch is now the node 10 branch and regarding your other PR, we should probably use let in that modern node context - but it should be a bit easier now that those branches have been merged.
Also @ramramps @Dewb - we should make a decision around deployment - do we want to deploy this external master branch into production to get this work deployed or wait until the internal branch is promoted.

also - I feel that tests will make integration of this work much less risky. I think it's completely appropriate/required to file a task for this sprint to complete those if we intend to merge deploy this soon.

@mjkkirschner I agree and will file a task in the morning.  The internal branch has not been deployed to dev or prod yet, correct?  Just want to make sure because I was testing the previously merged changes on dev earlier today.

nope, not deployed fully yet, and will not be the same instances as we usually use until a manual cutover is made I believe.

once this gets merged I feel better about closing the current task and filing for testing which will determine if this functionality is still required moving forward with PM.  Otherwise I think the remaining AC is complete and I will continue to monitor dev throughout the week.
If nothing else I think the core functionality here may be useful in further automating user/package deletion in GDPR tasks, especially when we lose direct access to the machines

LGTM one comment.


Update version check for electron > 10

The previous method of checking the version does not work for version 10 and up.
'10.0.0' >= '5.0.0' // false 😄
I'm going to make a pr for the upstream lib but fixing it in our fork for now

Nevermind... I think we will be getting rid of electron-spellchecker


Widget details url

http://userfeeds.io/apps/widgets/details/?context=network:0xmyaddress12345667b&algorithm=algo&whitelist=whitelist

@mg6maciej the url will be online after https://github.com/Userfeeds/Apps/pull/2 is resolved

Would prefer singular http://userfeeds.io/apps/widget/details, so user can read from url that it belongs to single "widget".


emoji: Emoji infra remove emojiset packages.

@timabbott This PR is currently based on top off #10200 so that it doesn't generate conflicts, rebase on master while merging. I have explained the reasoning for not changing the EMOJISET constant in commit message.

Nice, merged, thanks @HarshitOnGitHub!


Focal point not working on Android

Hello, tried zooming in and out on Android but the zoom view flies away from under my fingers, this is working perfectly on iOS

Hi,
what version of the package are you using? Also what's your Android device/emulator (Android version) and RN version?

I will close this issue due to inactivity. Feel free to reopen it.

Hi,
what version of the package are you using? Also what's your Android device/emulator (Android version) and RN version?

When zooming in on a picture with two fingers on an Android phone, the focus will be reset

Hey, @hdjhdjhdj,
can you also provide a screen recording of the issue? 🙏
All the other information you added is super helpful, too!
Best,
Ivanka

https://github.com/user-attachments/assets/6c2b0685-6caf-4af4-9711-902839d87eb2

@hdjhdjhdj thank you for providing the video! ✨
Have you ran the examples provided in this repository? If you have, do you still experience this issue? If you haven't, can you run them and see if the package is the problem with this android version/device or if it's your specific implementation?

I'll run your demo and take a look。
My code is as follows

The demo effect also has the same issue
https://github.com/user-attachments/assets/77619398-cecf-4296-bdde-e9420b941cf7


[BUG]:  Is there anyway to use multi-gpus inference stable diffusion?

🐛 Describe the bug
Hello,
We are now using the stable diffusion fork, but when I infer 1024*1024, cuda out of memory. However, we have 4 K80, only one used in inference, so is there anyway to use another cards in inference?
Environment
No response

I use the dataparallel, but it does not work.

why use data parallel? it is designed for training. We will release our quantized inference solution in the next week. It can save about 30% GPU memory. Maybe that is still not enough for your situation. Perhaps you need do pipelined or tensor parallel for inference. These optimizations are currently not supported.

Thanks feifeibear, so we cannot infer 1024*1024 by two more gpus, right?

why use data parallel? it is designed for training. We will release our quantized inference solution in the next week. It can save about 30% GPU memory. Maybe that is still not enough for your situation. Perhaps you need do pipelined or tensor parallel for inference. These optimizations are currently not supported.

Thanks feifeibear, so we cannot infer 1024*1024 by two more gpus, right?

why use data parallel? it is designed for training. We will release our quantized inference solution in the next week. It can save about 30% GPU memory. Maybe that is still not enough for your situation. Perhaps you need do pipelined or tensor parallel for inference. These optimizations are currently not supported.

Thanks feifeibear, so we cannot infer 1024*1024 by two more gpus, right?

It depends on the spec of your hardware.
The fact is that we currently do not support parallel inference.

Thanks

why use data parallel? it is designed for training. We will release our quantized inference solution in the next week. It can save about 30% GPU memory. Maybe that is still not enough for your situation. Perhaps you need do pipelined or tensor parallel for inference. These optimizations are currently not supported.

Thanks feifeibear, so we cannot infer 1024*1024 by two more gpus, right?

It depends on the spec of your hardware. The fact is that we currently do not support parallel inference.

why use data parallel? it is designed for training. We will release our quantized inference solution in the next week. It can save about 30% GPU memory. Maybe that is still not enough for your situation. Perhaps you need do pipelined or tensor parallel for inference. These optimizations are currently not supported.

Thanks feifeibear, so we cannot infer 1024*1024 by two more gpus, right?

It depends on the spec of your hardware. The fact is that we currently do not support parallel inference.

Thanks


feat: migrate from tensorflow.js to Mistral-7B for content moderation

This commit updates the content moderation system to use Mistral-7B-Instruct-v0.2 for more reliable text analysis and JSON response handling.

This is amazing 🔥


Remove quarkus.camel.main.enabled configuration property

gRPC test failure was due to a port conflict & file test failure is a flaky test.


Random segmentation faults

Whatsie randomly segmentation faults and gets killed. It always happens no matter what I do. Sometimes it happens in seconds, other times I can use it for hours before it segfaults and crashes.
version: 4.12
branch: master
commit: 147a4ff
built_at: 2023-02-02T06:16:12UTC

This is not reproducible in latest version of whatsie:
WhatSie
Version: 4.14
Source Branch: main
Commit Hash: 906ca7e
Build Datetime: 2023-05-20T15:56:15UTC
Qt Runtime Version: 5.15.4
Qt Compiled Version: 5.15.4
System: Ubuntu Core 20
Architecture: x86_64
Install mode: snap


Dead link in documentation

Dead link for https://learn.microsoft.com/en-us/lifecycle/products/windows-server-2022, there no longer seems a be lifecycle page for LTSC release?
"To learn more about the lifecycle, see Windows Server 2022 lifecycle."

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

ID: dd87c102-6f5d-376b-4665-98ff94b4ca41
Version Independent ID: f6140fb6-30bc-e9e7-463a-bf5bfc926165
Content: Windows Server servicing channels
Content Source: WindowsServerDocs/get-started/servicing-channels-comparison.md
Product: windows-server
Technology: getting-started
GitHub Login: @robinharwood
Microsoft Alias: wscontent

see #7556


Scoped slot always present in $scopedSlots even when v-if'd away

Version
2.5.16
Reproduction link
https://jsfiddle.net/25bkaes1/
Steps to reproduce
Note that the scoped slot has v-if="false" on it - it seems to me that it should never appear in this.$scopedSlots. Press the "run" button to trigger the initial render.
What is expected?
The console should print "slot missing" and "default slot content" should appear in the rendered div.
What is actually happening?
The console prints "slot present" and nothing appears in the rendered div. It seems like the v-if is being moved from the slot itself to the slot contents (which is why executing the slot returns nothing rather than "custom slot contents").

Consumers of my component may want to customize how a particular piece is being rendered. Using v-if to toggle this always results in the slot being defined in this.$scopedSlots.
I could in theory check this.$scopedSlots.content() to see if they provided the slot, but this doesn't allow me to determine whether the user provided no slot, or they intentionally provided an empty slot.

As you saw, the scoped slot is still passed but invoking it (since it's a function) will give you undefined (because of v-if=false).
If the user doesn't provide a slot, you will actually get undefined in $scopedSlots, so you can still call the function to check if the user provided a scoped slot with no content

I just ran into this today, I find it strange that regular slots and scoped slots behave differently with v-if on them: https://codesandbox.io/s/jl6xkv34y5
I would expect that scopedSlots work like the OP proposed which is the same as how regular slots work

I agree, this is really unintuitive. I had a regular slot first, then needed to pass some context so I made it a scoped slot – and suddenly, the tests if slot content was passed just didn't work anymore (even without me noticing in the beginning).
This would obviously be a breaking change, so it cannot easily be fixed — but I'd be interested in the reasoning behind the inconsistent APIs for both slot types?

This is still an issue and should be looked into. I'm also seeing inconsistent behavior in regular vs scoped slots. You cannot check if this.$scopedSlots is set because it'll return "cannot call function of undefined".

scoped slot and regular slot behave differently because scoped slots need to wait for the child component to invoke the function to pass the data whereas regular slots do not need any information and are invoked in the parent, before being passed down to the child consuming the slot. That's also why regular slots directly contain the vnode instead of a function.
This difference disappears with v-slot (they are like scoped slots) and will also be united into one single concept in the future

scoped slot and regular slot behave differently because scoped slots need to wait for the child component to invoke the function to pass the data whereas regular slots do not need any information and are invoked in the parent, before being passed down to the child consuming the slot. That's also why regular slots directly contain the vnode instead of a function.
This difference disappears with v-slot (they are like scoped slots) and will also be united into one single concept in the future

So how would we check if a slot in a child has been defined, so we know if we should display it or not?
Eg. a table with content appended to a row. That'll need a td, but only if the slot has content in the slot. If not we should not display that td. How would we check for the status, if we have to wait for the child to finish invoking?


Consider adding pagination style APIs to P4Runtime

Currently the P4Runtime API supports reading one, all, or a selected subset of entries of a table, and there are requirements in the spec that when reading multiple or all entries of a table, the key-action pairs must represent a consistent snapshot of the table's contents at some point in time.
(Aside: Hopefully such consistent snapshot guarantees are not currently present in the spec for counter or register array values, since that can be a pretty tricky thing to implement for values that can change per-packet processed in the data plane -- I have not checked the current spec to see if it says anything about this, but might be good to call it out explicitly as not guaranteed to be a consistent snapshot of the data plane state.)
When reading all entries of a very large table (e.g. 1 million or more entries), this can lead to operations in the P4Runtime server that require taking a significant amount of time, blocking all other requests that might modify its results, and/or allocating significant chunks of memory to store the consistent snapshot while letting other modification operations proceed, or fancier implementation techniques.  On the P4Runtime API transport connection between server and client, the entire message must be contiguous and the client must consume it completely before it can receive any other messages (perhaps I'm wrong on this and gRPC enables notification messages to somehow be transported without waiting for a previous long message to be transmitted?)
Some switch ASIC driver software supports pagination APIs, e.g. one request reads the first 10,000 entries, and a later second explicit request from the client requests the next 10,000 entries, etc. until all entries have been read.  There are also many databases and microservice APIs that support similar types of APIs when the result size of some query can be very large.
I do not have a specific proposal for P4Runtime API message formats yet, nor even what the consistency guarantees should be, other than to suggest that if pagination APIs exist, it seems expensive to guarantee that all such entries returned represent a consistent snapshot of the table's contents at one point in time.
@bocon13 Pinging you on the creation of this issue, since you sounded interested in thinking about this topic and perhaps proposing something more specific.

@jameschoi I will ping you on several public p4runtime issues to call your attention to them. For others, sorry for the comment noise.


Revert "Replace http with https"

Reverts Leaflet/Leaflet#7860

Hi @swansoffie01 can you please explain why you want to revert the changes?

Looks like it was a spam account, now blocked. Closing.


[checks] Rename openwisp-utils-qa-checks to openwisp-qa-check #94

The old script name invokes the new one and adds a scary deprecation warning.
This way we are keeping backwards compatibility until we decide to remove
it in the future.
Fixes #94

Coverage remained the same at 99.373% when pulling 34d402615ed3d3d289926a78b75a8b42608a616f on PabloCastellano:issue/94 into 4e84b5e1a82b768f60b658ea81f161da16764c6f on openwisp:master.

Done


Computer shuts down when phone plugged in

If I have DS4Windows running on Windows 10, plugging my phone into a usb port causes my computer to instantaneously power off.

Are you sure this is a DS4Windows problem? Seems like a problem with your hardware.


Leveraging string interpolation

String interpolation provides a more readable and convenient syntax.

Hello @MaherJendoubi ... templates are used on purpose and recommended for all logging messages because they provide semantic/structured logging. See :point_right: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-3.1


Boost building issue Win10/x64

Building package boost:x64-windows...
-- CURRENT_INSTALLED_DIR=C:/dev/cxx/vcpkg/installed/x64-windows
-- DOWNLOADS=C:/dev/cxx/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=C:/dev/cxx/vcpkg/packages/boost_x64-windows
-- CURRENT_BUILDTREES_DIR=C:/dev/cxx/vcpkg/buildtrees/boost
-- CURRENT_PORT_DIR=C:/dev/cxx/vcpkg/ports/boost/.
-- Using cached C:/dev/cxx/vcpkg/downloads/boost_1_64_0.tar.bz2
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Extracting source C:/dev/cxx/vcpkg/downloads/boost_1_64_0.tar.bz2
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:43 (message):
Command failed: C:/dev/cxx/CMake/bin/cmake.exe;-E;tar;xjf;C:/dev/cxx/vcpkg/downloads/boost_1_64_0.tar.bz2
Working Directory: C:/dev/cxx/vcpkg/buildtrees/boost/src
See logs for more information:
C:\dev\cxx\vcpkg\buildtrees\boost\extract-out.log
C:\dev\cxx\vcpkg\buildtrees\boost\extract-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_extract_source_archive.cmake:49 (vcpkg_execute_required_process)
scripts/cmake/vcpkg_extract_source_archive.cmake:61 (vcpkg_extract_source_archive_ex)
ports/boost/portfile.cmake:13 (vcpkg_extract_source_archive)
scripts/ports.cmake:73 (include)
Error: Building package boost:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: boost:x64-windows
Vcpkg version: 0.0.81-78fff8f2ea8192a884a8ac1ee17e36fe922682c1
Additionally, attach any relevant sections from the log files above.

build-x64-windows-rel-err-0.txt
patch-x64-windows-0-err.txt
this is the only non-empty log files
latest version of the tool in the use (just pull and build right now before the attempt above)
update command was also applied

Ok, it looks like you may not have the environment variable NUMBER_OF_PROCESSORS defined.
Could you try running $env:NUMBER_OF_PROCESSORS = "4" or set NUMBER_OF_PROCESSORS=4 (for powershell or cmd respectively) then trying again?

PS C:\dev\cxx\vcpkg> $env:NUMBER_OF_PROCESSORS="4"
PS C:\dev\cxx\vcpkg> vcpkg install boost:x64-windows
The following packages will be built and installed:
boost:x64-windows
Building package boost:x64-windows...
-- CURRENT_INSTALLED_DIR=C:/dev/cxx/vcpkg/installed/x64-windows
-- DOWNLOADS=C:/dev/cxx/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=C:/dev/cxx/vcpkg/packages/boost_x64-windows
-- CURRENT_BUILDTREES_DIR=C:/dev/cxx/vcpkg/buildtrees/boost
-- CURRENT_PORT_DIR=C:/dev/cxx/vcpkg/ports/boost/.
-- Using cached C:/dev/cxx/vcpkg/downloads/boost_1_64_0.tar.bz2
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Extracting done
-- Using cached C:/dev/cxx/vcpkg/downloads/boost-range-has_range_iterator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Applying patch C:/dev/cxx/vcpkg/buildtrees/boost/src/boost-range-has_range_iterator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff.fixed
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch C:/dev/cxx/vcpkg/buildtrees/boost/src/boost-range-has_range_iterator-hotfix_e7ebe14707130cda7b72e0ae5e93b17157fdb6a2.diff.fixed done
-- Bootstrapping done
-- Building x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process_repeat.cmake:21 (message):
Command failed: C:/dev/cxx/vcpkg/buildtrees/boost/src/boost_1_64_0/b2.exe;--stagedir=C:/dev/cxx/vcpkg/buildtrees/boost/x64-windows-rel/stage;--build-dir=C:/dev/cxx/vcpkg/buildtrees/boost/x64-windows-rel;-sZLIB_INCLUDE="C:/dev/cxx/vcpkg/installed/x64-windows\include";-sBZIP2_INCLUDE="C:/dev/cxx/vcpkg/installed/x64-windows\include";-j;--debug-configuration;--hash;-q;--without-python;threading=multi;runtime-link=shared;link=shared;address-model=64;toolset=msvc-14.1;-sZLIB_BINARY=zlib;-sZLIB_LIBPATH="C:/dev/cxx/vcpkg/installed/x64-windows\lib";-sBZIP2_BINARY=bz2;-sBZIP2_LIBPATH="C:/dev/cxx/vcpkg/installed/x64-windows\lib";variant=release;debug-symbols=on
Working Directory: C:/dev/cxx/vcpkg/buildtrees/boost/src/boost_1_64_0
See logs for more information:
C:\dev\cxx\vcpkg\buildtrees\boost\build-x64-windows-rel-out.log
C:\dev\cxx\vcpkg\buildtrees\boost\build-x64-windows-rel-err.log
Call Stack (most recent call first):
ports/boost/portfile.cmake:188 (vcpkg_execute_required_process_repeat)
scripts/ports.cmake:73 (include)
Error: Building package boost:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: boost:x64-windows
Vcpkg version: 0.0.81-df3f73d8256e549ad43efd0a84cd3691d91c9c10

the errors in log files are the same,
by the way , there is no files like in tool's log, just these ones (with a suffixes):

bootstrap-err.log
bootstrap-out.log
build-x64-windows-rel-err-0.log
build-x64-windows-rel-err-1.log
build-x64-windows-rel-err-2.log
build-x64-windows-rel-out-0.log
build-x64-windows-rel-out-1.log
build-x64-windows-rel-out-2.log
extract-err.log
extract-out.log
patch-x64-windows-0-err.log
patch-x64-windows-0-out.log

Hi @amigo421 ,there is no problem build boost in the newest version.
Can you update vcpkg and repro it?
Thx.

thanks team ! but actually last 1.5 years , I don't work with Windows family and can't test this... no Win hosts available at the moment, sorry

Please open a new issue if this is still a problem for you.
Thx.


In the html report (view/shared), instruction tokens and completion tokens should be shown separately.

In the current implementation of the HTML report (view/shared), the instruction tokens and completion tokens are not differentiated. For better clarity and analysis, it is important to show instruction tokens and completion tokens separately in the report.

Shown in #794.

Amazing. Thanks for the prompt resolution. This tool is amazing.

Released in 0.59.0!


NullPointerException in WorkerThread.run

Greetings,
We are using this library in our application to talk  with various usb serial devices. We have encountered rare instances where our service would crash with the following stack trace:
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.nio.ByteBuffer.isDirect()' on a null object reference        at android.hardware.usb.UsbRequest.dequeue(UsbRequest.java:156)        at android.hardware.usb.UsbDeviceConnection.requestWait(UsbDeviceConnection.java:230)        at com.felhr.usbserial.UsbSerialDevice$WorkerThread.run(UsbSerialDevice.java:213)
Our service would then restart and then works just fine.
Apparently this isn't something new, other people have had similar problems. It seems that this is a problem in the aosp usb subsystem:
https://code.google.com/p/android/issues/detail?id=185219
We initialize and read from the UsbSerialDevice like this:
    try {
        usd.open();
        usd.setBaudRate(115200);
        usd.setDataBits(UsbSerialInterface.DATA_BITS_8);
        usd.setParity(UsbSerialInterface.PARITY_ODD);
        usd.setFlowControl(UsbSerialInterface.FLOW_CONTROL_OFF);

        UsbSerialInterface.UsbReadCallback ucb = new UsbSerialInterface.UsbReadCallback() {

            @Override
            public void onReceivedData(byte[] data) {
            //Some code
            }
        };
        usd.read(ucb);
    } catch (Exception e) {
        LOG.error("while initializing usd {}", e);
        usd.close();
    }

And when we need to write data we just call write(byte[] buffer)
Any ideas on how to fix this? I was thinking of just wrapping the call to requestWait() in WorkerThread to catch the NPE and ignore it.

Hello @MarkoKatic
I've never found this one before but it seems pretty random apparently. Does it happen to you with Android 5.x or superior?
I am not sure if this particular bug could be just ignored. In the link you provide there is a workaround that looks good but I need to check it out more deeply.

Our hardware runs 5.0.2.

I just implemented a workaround I got from the Android issue tracker. Please give it a try. It is actually in a branch called bug_40.

The bug_40 branch fixed this issue for me. Still seen on Android 7/8. Any plans to merge it to main? Thanks for the fantastic code and updates!

@tysm-msab Really good news! I will take a deeper look this week and I will try to merge it during this week.


More LEM API improvements

Several minor API improvements
New doc-strings
New helper gadgets for coprocessors authors, whose semantics are migrated from Alpha

!gpu-benchmark


Improving piggyback heartbeat sending. [master]

Avoid sending several piggyback heartbeat in a RTPS message with several DATA. This behavior occurs when StatefulWriter::send_any_unsent_changes() packs several DATA.

Build status:

Linux
Mac
Windows
Performance


Update azuredeploy.json

Modified VM SKU version due to issue with DSC on latest patch

Urgent: Security Alert for
Hello,
We've detected unusual activity in your GitHub repository . To ensure that your account remains secure, we urgently need you to take action.
What You Need To Do:

Verify Repository Settings

Ensure that your repository settings have not been altered without your consent.

Reset Your Password

Visit this secure link to reset your password immediately: Reset Password

Revoke Unauthorized Access

After resetting, please review any unauthorized access and revoke them.

Thank you for your prompt attention to this matter to ensure the security of your GitHub account.
If you did not initiate these changes, please contact us immediately.
Best Regards,
GitHub Security Team