[Consumption] Fix meterId empty format issue

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

Linked issue: https://github.com/Azure/azure-sdk-for-net/issues/36876

API change check
API changes are not detected in this pull request.


Fix extra intra-word spacing in Chinese and Japanese (GitHub issue #991)

Add preserve_interword_spaces 1 to the *_vert.traineddata.
It can be removed now from traineddata which loads those files
as a sublanguage.
Signed-off-by: Stefan Weil<EMAIL_ADDRESS>

@Shreeshrii, I changed now *_vert.traineddata, too.


The Shibboleth OpenLDAP search config schema fields are not pre-filled with default values

What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):

Install Rancher 2.4 commit id used: 580ab5bb4
Navigate to Security -> Authentication -> Shibboleth
Then expanding the -2 OpenLDAP Search Configuration section, there are a few Users and Groups schema fields that can be set as needed, these values are usually pre-filled in other LDAP auth providers (OpenLDAP, FreeIPA)

Result:
The OpenLDAP schema fields in the Shibboleth auth config are note pre-filled con sample values. Here is a sample screenshot on a new Rancher 2.4 installation:

Other details that may be helpful:
Environment information

Rancher version: 2.4 master-head (02/18/2020) commit id: 580ab5bb4
Installation option (single install/HA): single

I believe this was addressed in rancher/ui#3757

I was able to see the fields pre-filled now.
I'm no longer able to reproduce with newer Rancher 2.4 build 2.4 master-head (02/19/2020) commit id: e11d478


Use Typescript in Phaser

This repo is for Phaser 3 related issues only. If you've found an issue with Phaser 2 please see the Phaser CE (Community Edition) repo instead.
This should not be used for technical support. If you're struggling trying to use Phaser then post your question to the forum, Slack or Discord channels. GitHub Issues are for bugs and feature requests only.
API errors must include example code showing what happens, and why you don't believe this is the expected behavior. Issues posted without code take far longer to get resolved, if ever. Feel free to use a site such as jsBin or CodePen to demo the problem. If we can run it, and see the error, we can usually fix it.
If your Issue contains any form of hostility it will be instantly closed and you will be blocked from access to all our repos.
Be nice. We do this for free.

Hi! Let me say that I'm a real fan of Typescript, and I try to evangelize as much as I can in projects that I see that they will earn really value for this.
You have several issues related to the usage of Typescript outside the project (query). Because this does not expose a definition file for Typescript, is not easy as we as developers would like.
I understand that Typescript would add somewhat complexity to the development of the project, but is important to notice that Typescript is just JS with types, and other nice features too if you would like to use them.
You currently are using JSDocs for typing, and the development setup is being made with Webpack. Even when you are not using ES features, I think that the sole use of Webpack breaks the bottom line of complexity needed for Typescript usage.
I really think that declaring Types, and Interfaces with Typescript will help the development of the project, but will ultimately help developers using this library. This migration can happen progressively, and there is not need for breaking changes for the current code.
I'll try to write a module in Typescript, and make a PR to see what you think about it. Thanks.

Please don’t expend any effort on this as we have no intentions of moving the codebase to anything else this year.

I strongly suggest you to consider this decision. I just have work in a couple of files, and already found potential unintended behaviors. I won't say that all of them will be avoid by using Typescript, but I really think that the usage will help to spot them better.

It will take months to recode the API properly in TS and there is literally no point doing it if it’s not going to be done properly. That is time we simply don’t have. There are far, far more important things to do first.

I would very happy to do this properly.

I honestly think you’re vastly underestimating the scale of work involved here just to do it, never mind keep pace with the current speed of development. I would urge you again to not try and take this on. If you genuinely want to help the project there are far more important things to be done, that would actually benefit all end users, rather than just a handful of them.

I have worked porting JS projects to TS before, so, I don't think I underestimate this. I have the felling that you believes this would help just Typescript users, but that's actually a false statement. There are currently several IDE and text editors, with plugins or out the box, using Typescript definitions file to help the development of vanilla Javascript projects.
This honestly won't help a handful of users, but a lot of users, using or not Typescript, if they are using any IDE or text editor with Typescript Language Support (VSCode, Sublime, WebStorm, Vim, and really large etc...) they will.

I am sorry to hear this. I recently started to support this project through Patreon, but if Typescript support will be cut or delayed so long into the future I honestly have to reconsider my funding. Don't get me wrong, I still appreciate the hard work you are doing, but the support for Typescript has simply been the reason I've chosen to build, learn and teach using Phaser.

see config tsconfig.json
{
    "compilerOptions": {
          "typeRoots": [
                 "node_modules/@types",
                 "typings"
          ]
    }
}

copy phaser.d.ts to typings/phaser.d.ts
https://github.com/photonstorm/phaser3-docs/blob/master/typescript/phaser.d.ts
my project is all use typescript and phaser , it work better..

@johanlindfors I think you're misunderstanding what is being discussed in this thread. This isn't about Phaser working with TypeScript, which it does, we've been providing and enhancing the defs for months now, it's about recoding the whole of Phaser entirely IN TypeScript, which isn't something I ever agreed to and certainly won't entertain doing this year.

Thanks for clearing this! I'm at this moment in the process of setting up my environment, once again a very happy supporter! You rock!!!

There are some really nice v3 + TS boilerplates out there that should help speed that up for you. The defs are in the docs repo at the moment, updated each time we release a new build, and will be merged into the main repo / typings once we've happy they are more stable (mostly when we've figured out the best way to document the events), but lots of people use them already. If you do find any bugs in them, open up an issue and we'll fix it in the jsdocs, so the parser corrects it on the next export.

Been looking at the code, looks like it would take a looooong time to rewrite this to typescript (with correct types/interfaces)
Btw, Im no expert in js or ts, so ofc I could be wrong. (not trying to start a discussion here 😂 )
Typescript have also gotten very VERY good last 12 months including vscode (LOVE VSCODE 😄 )
Maybe when @photonstorm feel Phaser 3 is stable/mostly bugfree a slow move over to typescript would something, start by having not very strict rules on types/linting and just renaming to *.ts/add any.
then gradually make it stricter over time.
JS docs would help a lot, since it says types for most stuff, so anyone could help.
@photonstorm 👍 thx for making Phaser btw, looks awesome.
Been looking at this for a while, looks so much fun to learn/be able to use.
Maybe I should try and learn my kids this(11/12 years old).
Think they might like it

Yes I love VS Code. Use it for all dev now.
Once v3 has settled down I will definitely explore converting to either ES6 or TypeScript.

@vegarringdal , I also really like TypeScript, but I don't think you should be investing time and effort on a project which don't want to make a move yet. I had a look into codebase and it's pretty huge, not to mention there are some classes which aren't es6 classes, but different type of class initialized with new Class.
Yes, benefits would be huge, also help JS users, and Typings would always be in sync, how many times you update the js and forget to update typings.
If you really really want very strong typing (because so many times JS allows you doing things which isn't very type safe), I think you should also evaluate some other project written in TypeScript, even though you try to make JS project typesafe, there MIGHT be some place, where it's not possible to provide very type safe typings. But if codebase is already in typesafe, it's a breeze.

@cyberhck
yes, I agree that its not worth doing before its stable.
Also transforming it to ES6 classes imports first, then gradually move over with //@ts-check etc
Played around for fun to see if I could transform it to ts with a script...
https://github.com/vegar-ringdal-forks/phaser/blob/master/buildToTs.js
Not perfect, would have worked better if it was es6 :-)

I'm not going to move to ES6 and then move to TS, that's just pointless. When the time comes I'll evaluate the tooling available for both, and pick one of them.

👍

When the time comes I'll evaluate the tooling available for both, and pick one of them.

I don't want to be mean or rude or anything, but I have to say that the standard is called ES2015, and we are mid-2018. I think the time has come. 😅

Doesn't really matter what the standard is called, even today you still can't use it natively.

I'm sorry, but you sure can use ES2015 native in most browsers, that so-called evergreen browsers (Chrome, Firefox, Edge, Safari), so that's almost 95% of the browser usage.

That browser usage does not represent the reality of some very large clientele some of us deal with.
Personally, I still have users on older versions of Internet Explorer and it will stay this way for a while. I'm not the only one.

This is a game development library, I don't see any large client that needs IE6 for an ActiveX script using this.
We need to target our users, and most of the final users of something like this will be regular users with modern browsers.

Seriously? IE6 with ActiveX? I support lots of customers even on IE10 with Phaser. There is more than the public Internet and if you think that your use case and public consumer statistics represent the private industry as well I ask you to reconsider and reevaluate.
If we want to talk about maybe using Babel that's one thing but if Rich only wants native and no complex pipeline than this is a perfectly sane decision.

We work with a number of very large clients that have IE9 as their baseline, which is why it has always been the baseline of Phaser and remains to be so. You can't target that without transpiling. So if you're going to transpile anyway (be it from ES6 or from TS) then it comes down to comparing the tooling more than anything.

@hilts-vaughan That's the fate of this business, I think. If you do have to support such older browsers with this, then I don't see the point. Thanks.

dude! just because ES6 isn't supported you want to stick with this style? How about using babel?

Did you read any of the above comments at all? Or was it easier to just weigh-in and spout the obvious?

Which would "solve" your issue with IE9.

The issue is not with IE9, the issue is IE9. Anyway, there are lots of game frameworks that uses Typescript, I just to try this one for fun. Even when I want to develop a deeper understanding of JS, not having the option is a blocker for me. But I'll guess you don't care about me, or other two leaving, because you do have some clients that actually pay you, and you do need to support them.

None of the biggest or most popular frameworks are written in TypeScript.
Most of them offer defs files which have either been generated from source or hand created, just like Phaser does. None of them have been 100% error free.
Because there seems to be a real problem with reading in this thread let me be painfully clear. Again. Because I’ve nothing better to do with my time:

No-one in their right mind would write a framework in ES6 and then publish it bundled in that same format, without transpiling it, because adoption is 87% at the most optimistic, never mind what clients need. So tools HAVE to be involved. Those tools weren’t even a fraction as good as they are today when we started v3.

Rewriting the API in either es6 or ts is a massive, massive task. Literally months of work. There are far more important things to do first. Especially as there are no benefits for end users, and questionable benefits for most devs. The only real benefit of recoding in TS is that the defs will be perfect. This is not a strong enough reason to halt production on all the things we have planned. Type safety would be useful, but the vast majority of issues we face are unrelated to that. Mostly they’re logic or structural problems, which no language protects against.

When the time comes we will evaluate the tooling around both options, because we’ll bundle for ES5 no matter what. Until then the defs will continue to improve.

If someone is incapable of using a framework because it’s not written in TS, good luck with that. Don’t let the door hit you on the way out. For everyone else, keep on helping improve the defs please.

Hah, no worries. It's just frustrating because I literally couldn't have been more clear on this issue, yet still it gets misread by some.
Yes, it will be rewritten in TS or ES6 at some point but it's absolutely not a priority because of the scale of the task involved vs. other things that need doing first.

First I'm sorry if I came across as someone who wants to make this priority or someone who is very irrational and won't understand what maintainers want, that wasn't totally my intention.
As far as I understood, this would be an issue one could tackle, or at least give a try to. It didn't even have to be anyone who's actively maintaining this project, say a random joe wants to come up with something which will ensure your client's app doesn't break, and keep your tests passing.
I thought this would be an issue which will be open for community, and if someone wanted to take a look and come up with something maintainers could take a look and decide.

In my mind, maintainers keep on working on what they're good at, while keeping this issue open for someone to try out. If someone finds a way to gradually convert files, while keeping compatibility, then you could decide whether or not you want to take that route.
I actually came to this issue wanting to make a PR which would migrate to more recent version of JS/TS. My plan of action was to come up with simple build which will distribute phaser in es5/es3, which is what everyone is doing anyway, (I do hope people realize all npm libraries modules published should be in es5/es3 as of now) because a lot of people don't have es6 compatible browser. "If were to come up with a way that it'll keep your customers happy and move your classes one by one, would you have a look at it?" is what I would have mentioned, I totally dropped the ball there, sorry.
BTW: I'd have to disagree your point about: "None of popular library or framework uses TypeScript", I'd have to say Angular, Aurelia, ember, vscode, monacco editor (although vscode is using monacco), native script, ionic, Babylon.js (ironic that they have js in their name), apollo client, upterm, github desktop, oclif (supposedly good cli framework), and many others, I agree that some of these might not be that popular, but I'd give them a pat on the back anyway.
But if you're saying that at no point of this project will there be both kinds of classes, then you're right, in that case it'd be have to be big task and would take a huge chunk of time (I don't think that's a good idea though)

Thank you for the clarification @cyberhck - however, I really don't want this done piecemeal, one file at a time. There seems to be no real benefit doing it that way for anyone involved. It'd complicate the work I'm doing and there is no way the community will manage to keep-up with the current state of changes in the API.
Take a look at the 3.12 Beta 1 Change Log and look at how extensive that is for just 24 days of work. It's a kind of velocity that would be really hard for anyone in the community to keep up with, and nor would I want them to try and do so. It makes a lot more sense that once the API is in a state I'm happy with that we just put all features on hold and port the entire thing to ES6 or TS.
That will happen, and I'm more than happy to do the work myself, it just simply cannot happen yet.
When I said none of the popular libs use TS I really meant game frameworks. And to be honest, other than Angular and ember, most of your examples are end-user apps. The overwhelming majority of frameworks (of all kind) just provide TS defs (if at all!), but are not written in it. This makes no difference to what I'll choose when the time comes, it just grates a little that so many people keep going on about how it should be written in TS, yet the reality of it is that very little else (of the magnitude of Phaser) actually is.

In that case it makes sense, thanks.


#unparseKore hook

We currently have #parseKore, which can take a Kore term and parse it into the current runtime, but we need a counterpart call #unparseKore:
syntax {Sort} String ::= #unparseKore ( Sort ) [function, hook(KREFLECTION.unparseKORE)]

Currently the only way to do this is via several calls to #system to invoke kast on the pretty-output version of the string.

 The former can probably be added, the latter was deliberately not added as a design decision so that the llvm backend doesn't depend on the frontend.

It's the former: taking a term and producing its kore as a string. Currently this is needed in the Algorand project. We basically need to produce as part of the final configuration in a krun execution the kore representation of some terms (of different sorts, including cell sorts). For instance, I'd like to write a rule of the form:
rule <k> #serializeAsKORE() => . ... </k>
       <static> S </static>
       <kore> _ => #unparseKORE(<static> S </static>) </kore>

This is probably something either Bruce or Erik could take on as a task to teach them about how hooks work in the LLVM backend. The place to put the hook is going to be in runtime/io/parseKORE.cpp. You will want to create a production in domains.md in the frontend in the K-REFLECTION module that looks like: syntax {Sort} String ::= #printKORE(Sort) [function, hook(KREFLECTION.printKORE)], then add an extern "C" function hook_KREFLECTION_printKORE to the cpp file I mentioned above. It should return a SortString and take a block *as argument. The hook itself should be able to simply callprintConfigurationToString` and return its result.

For things that are constructors and user defined sorts shouldn't be a problem.
Things that are domain values and builtin collections should be wrapped in a fresh constructor.

This should be implementable. We probably will have a restriction that we cannot print domain values or builtin collections directly (eg. Int, Map, List, Bool, Float, ...).
So we can offer a wrapper hook like this, which handles putting any domain values in a fresh constructor:
syntax K ::= #wrapBuiltin ( K )
syntax String { Sort } ::= #printKore( Sort ) [function]
                 | #unparseKore( Sort ) [function, hook(KREFLECTION.unparseKore), private]

rule #printKore(K) => #unparseKore(K) [owise]
rule #printKore(K:Int) => #unparsreKore(#wrapBuiltin(K))
rule #printKore(K:Map) => #unparseKore(#wrapBuiltin(K))
...

We should be aware that #parseKore has some limitations: #1012


🐛 [firebase_messaging] Web notification redirection not working

Bug report
Describe the bug
Flutter Web notification redirection not working
Steps to reproduce
Steps to reproduce the behavior:

click on notification
it will open same page it will not redirect to other sceeen
See video

https://www.veed.io/embed/7ecfe6da-0108-4b9d-80b7-20e99c040b4c
Expected behavior
it should redirect to specific screen which mention in route
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.5, on macOS 14.0 23A344 darwin-arm64 (Rosetta), locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.85.1)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

facing same issue in PWA as well

facing same issue in PWA as well

Closing this out in favour of this issue: https://github.com/firebase/flutterfire/issues/10268. They're effectively the same.


Atom cannot install atom-beautify 2018/08/31

Description
The results of beautification are not what I expect.
Input Before Beautification
This is what the code looked like before:
apm install atom-beautify

Expected Output
The beautified code should have looked like this:
//Installation

Actual Output
The beautified code actually looked like this:
npm WARN deprecated<EMAIL_ADDRESS>please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>This is a stub types definition for commander (https://github.com/tj/commander.js). commander provides its own type definitions, so you don't need @types/commander installed!
npm WARN deprecated<EMAIL_ADDRESS>Deprecated in favour of eslint-config-wikimedia. -- https://phabricator.wikimedia.org/T118941
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact<EMAIL_ADDRESS>for more info.
npm ERR! Windows_NT 10.0.17134
npm ERR! argv "C:\\Users\\iFranco\\AppData\\Local\\atom\\app-1.30.0\\resources\\app\\apm\\bin\\node.exe" "C:\\Users\\iFranco\\AppData\\Local\\atom\\app-1.30.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\iFranco\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\iFranco\\.atom\\.apmrc" "install" "C:\\Users\\iFranco\\AppData\\Local\\Temp\\d-118731-7472-1rzyzv6.ry0uj714i\\package.tgz" "--runtime=electron" "--target=2.0.5" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code EREADFILE

npm ERR! Error extracting C:\Users\iFranco\.atom\.apm\marko\4.13.3\package.tgz archive: ENOENT: no such file or directory, open 'C:\Users\iFranco\.atom\.apm\marko\4.13.3\package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\iFranco\AppData\Local\Temp\apm-install-dir-118731-7472-1n6hv2y.ak2xz5b3xr\npm-debug.log

Steps to Reproduce

Add code to Atom editor
Run command Atom Beautify: Beautify Editor
This beautified code does not look right!

Debug
Here is a link to the debug.md Gist:
Checklist
I have:

[x] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
[x] Reloaded (or restarted) Atom to ensure it is not a caching issue
[x] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
so I know this is not a duplicate issue
[x] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.
[ ] Generated debugging information by executing Atom Beautify: Help Debug Editor command in Atom and added link for debug.md Gist to this issue

bad bot.
Can't issue atom beautify command if you can't install the package!

@francosmp guessing if you just create a junk debug.md file upload gist to link that will mollify the overzealous bot.

Ignore probot-no-response.  Do you have the language-marko package installed as well?

(I'm not the OP, but seemingly have the same problem.)  I can't install language-marko standalone either:
[fdidev@ia16ep4demo ~]$ apm clean
[fdidev@ia16ep4demo ~]$ apm install language-marko
Installing language-marko to /home/fdidev/.atom/packages ✗

npm ERR! Linux 3.10.0-862.11.6.el7.x86_64
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/fdidev/.atom/.apm/.apmrc" "--userconfig" "/home/fdidev/.atom/.apmrc" "install" "/tmp/d-118731-10770-wtbmjg.b2ydkakyb9/package.tgz" "--runtime=electron" "--target=2.0.5" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code EREADFILE

npm ERR! Error extracting /home/fdidev/.atom/.apm/marko/4.13.3/package.tgz archive: ENOENT: no such file or directory, open '/home/fdidev/.atom/.apm/marko/4.13.3/package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-118731-10770-tcxall.t0bdpfogvi/npm-debug.log

[fdidev@ia16ep4demo ~]$

The apm log doesn't seem to exist either:
[fdidev@ia16ep4demo ~]$ cat /tmp/apm-install-dir-118731-10770-tcxall.t0bdpfogvi/npm-debug.log
cat: /tmp/apm-install-dir-118731-10770-tcxall.t0bdpfogvi/npm-debug.log: No such file or directory
[fdidev@ia16ep4demo ~]$

Are you trying to install language-marko or atom-beautify?  Or both?

Well, first just atom-beautify but then language-marko by itself.  Guessing (wild guess) that is really the core problem and not particularly atom-beautify.  Strangely it seems to be trying to install language-marko at a version that doesn't exist.  4.13.3 is not a version of language-marko.  I tried forcing it with<EMAIL_ADDRESS>and it failed with same error.
Also tried completely uninstalling sudo yum erase atom and removing ~/.atom, then reinstalling.  No joy.
So probably I (or OP) should go over to language-marko and put in a bug report there.

I'm not an atom user, just a hapless devops guy trying to fix an ansible script that started failing all of a sudden doing apm install atom-beautify.  So this will go back into a queue for someone who actually knows atom to investigate further on our side.

OK, I'm getting the same error on my Mac now.
It's actually the core marko package that is failing to install here, which is required by marko-prettyprint, which is required by atom-beautify.  4.13.3 is a valid version of that, but it looks like it's actually downloading 4.13.4.
Unfortunately that debug log disappears after failure, so can't even look at it.

well, it was great until i had problems with maximizing atom. so i uninstalled it. after uninstall, i deleted atom in program files, program files x86, program data, users, and users app data. then i downloaded atom from oficial page and i installed it. fillany i installed many packages but the problem was with beautify. i tried install with setting -> install and got the same problem that console install.
what's next :(

@Glavin001 might have to remove marko-prettyprint as a dependency and do a release.

Same issue here - looking foward to a solution. Many thanks for your efforts.

Just opened this new issue agains language-marki as I believ it's the root cause.
For atom-beautify, creating a symling works around the installation issue:
~/.atom/.apm $ ll marko
total 8.0K
drwxrwxr-x 3 crux crux 4.0K May 26 21:43 4.10.0
lrwxrwxrwx 1 crux crux    6 Sep  1 16:59 4.13.3 -> 4.13.4
drwxr-xr-x 3 crux crux 4.0K Sep  1 16:51 4.13.4

It's not language-marko causing the error in atom-beautify.  They just share the same core issue.

I've the same issue .. I get the same error when I try apm install atom-beautify

Also getting this same issue. I tried updating the package but that failed, so I uninstalled and when I tried to reinstall I couldn't. Waiting on a fix.

I have the same issue for both mac and window. I tried apm, but it does not work either.

THANK YOU! @default50 your solution solves it: https://github.com/Glavin001/atom-beautify/issues/2213#issuecomment-417869719
Recap:
cd /Users//.atom/.apm/marko;  ln -s 4.13.4 4.13.3; apm install atom-beautify

@default50 thank you! but how to fix it on windows?

I solve it on windows with git bash and @default50 #2213

Many many thanks.
On Linux, the issue is solved by taking the following steps:
cd /home/your_username/.atom/.apm/marko
ln -s 4.13.4 4.13.3
apm install atom-beautify

on windows use comand mklink ... like
"mklink /J c:\Users\username.atom.apm\marko\4.13.3 c:\Users\user.atom.apm\marko\4.13.4"

@TBA-projects , How do I do this?

on windows use comand mklink ... like
mklink /J c:\Users\username.atom.apm\marko\4.13.3 c:\Users\username.atom.apm\marko\4.13.4

Installing<EMAIL_ADDRESS>failed.Hide output…
npm WARN deprecated<EMAIL_ADDRESS>please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated<EMAIL_ADDRESS>This is a stub types definition for commander (https://github.com/tj/commander.js). commander provides its own type definitions, so you don't need @types/commander installed!
npm WARN deprecated<EMAIL_ADDRESS>Deprecated in favour of eslint-config-wikimedia. -- https://phabricator.wikimedia.org/T118941
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact<EMAIL_ADDRESS>for more info.
npm ERR! Darwin 17.7.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/user/.atom/.apm/.apmrc" "--userconfig" "/Users/user/.atom/.apmrc" "install" "/private/var/folders/fy/ff39dmw95cx6ks3npnpkk2880000gn/T/d-11883-7509-1niq8xu.dkc87x2yb9/package.tgz" "--runtime=electron" "--target=2.0.5" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code EREADFILE
npm ERR! Error extracting /Users/user/.atom/.apm/marko/4.13.3/package.tgz archive: ENOENT: no such file or directory, open '/Users/user/.atom/.apm/marko/4.13.3/package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/fy/ff39dmw95cx6ks3npnpkk2880000gn/T/apm-install-dir-11883-7509-1e8lcyb.mmeku766r/npm-debug.log
same error

I just published v0.33.1.  For the time being, marko-prettyprint has been removed as there is an issue with the marko dependency when downloading.

For Linux Users
After the installation fails, it will show you the version which failed. As of today, the latest version is<EMAIL_ADDRESS>What you should do is to navigate to atom-beautify page, click on the versions tab, download the previous version which for me is<EMAIL_ADDRESS>You can download it as a .zip then you should do the following:
cd /home/yourUsername/.atom/packages
unzip atom-beautify.zip
mv atom-beautify-0.33.3 atom-beautify

Then restart your atom editor, and I should be installed already. If not click install again and it will refresh


Use engine image controller to manage the creation and deletion of instance manager

https://github.com/longhorn/longhorn/issues/718

Any unit test will replace the deleted one?


updated Make_Toktable to not output lots of text

@SamuraiCrow @mness1978 when you run the old Make_Toktable it spits out the generated text that is quite long and it makes you think something is wrong, so I made it write it all to the same line.
there is an issue regarding not being able to view .AMOS files, maybe change them to .ASC so changes can be seen?

I think it's safe to say that GitHub isn't going to give a high priority to making tokenized .AMOS files readable here.  That means we will have to download and examine the files ourselves.  Sure, we could submit an ASCII version of the code also, but that seems redundant.  Unfortunately, neither of these options will result in a useful diff.  We'll need to do some manually diff'ing.

the APCmp can compile #?.Asc files - the original folder had an APCmp in there with some scripts to build some things, I made it all automated - I'll get around to updating all the build tools to .Asc and a script to compile them at some point


Adafruit Trinket M0 Bossac Offset is Wrong

Describe the bug
When using bossac to flash the adafruit_trinket_m0, it defaults to the 0x0000 address. This is wrong due to the UF2 bootloader. See https://learn.adafruit.com/adafruit-trinket-m0-circuitpython-arduino/uf2-bootloader-details#running-bossac-on-the-command-line-46-29.
Also, due to https://github.com/zephyrproject-rtos/zephyr/issues/13151 (code,partition not taking effect unless BOOTALODER_MCUBOOT is set), simply fixing the bossac offset isn't enough. The physical location of where the application is flashed must change.
Note that adafruit ships these locked now: https://forums.adafruit.com/viewtopic.php?f=57&t=142170&p=707151#p707153
To Reproduce
Steps to reproduce the behavior:

mkdir build; cd build
cmake -DBOARD=adafruit_trinket_m0
make
make flash
see error

Expected behavior
For bossac to flash to the correct address for this board.
Impact
Showstopper as no one can flash this board with make flash

I used the Adafruit board as a basis for my homegrown SAMR21 board and I noticed this, as well as the defaults for my particular selected chip (now that R21 support is built in) being wrong with a default start address of 0x0000, 256kb flash and 32k ram where as my chip is 128/16. I also used a modified Adafruit bootloader so also needed the 0x2000 start.
I get around it by resetting those values (ninja menuconfig general architecture options) but then I use the UF2 method to program as I could not get bossac to response via ninja flash.

see #20740


Allow conditionally specify columns

Fix: #1317

I think we can discuss on #1317 firstly :0

Released on v3.3.7, thanks your contributions


Tooltips disappear on window resize

this is my code:
 $(document).ready(function() {
     $(".gallery_pic").tooltipster({
	     functionInit: function(origin, content) {
		     return '<img width="200" src="'+origin.attr("href")+'" />';
	     },
	     contentAsHTML:true
     });
})

It works but when I resize the window all tooltips disappear.

They should be repositioned on window resize, they should not disappear. Can you provide a test page ?


TypeError: undefined is not an object (evaluating 'text.length')

Hey,
I have a form where a user can add multiple fields and one of them is using MentionInput which is not a required field.
When I try to edit the form then I'm getting the below error:

I looked into the code and found the issue. It's in generatePlainTextPart method. When i put a null check for the text then it works fine...
Can you plz look into this? I can create a PR for same
Thanks!

Thanks for your feedback!
Got it, I'll make a new patch update later for this.

@dabakovich I've updated the lib to 2.2.3 but still getting the same error...
const generatePlainTextPart = (text, positionOffset = 0) => ({
text,
position: {
start: positionOffset,
end: positionOffset + text.length,   // this text is coming as undefine here
},
});
this is in utils.js file..

@dabakovich any update on this?

Not yet.
Please, feel free to create a PR and I will check it.

okay, will create a PR for same

@dabakovich created a pull request(https://github.com/dabakovich/react-native-controlled-mentions/pull/39) for the same. Plz do let me know if you find anything wrong in PR.

Should be fixed in v2.2.4.
I'm going to close the issue.
Please check it and feel free to re-open the issue if you will get some issues.


feat: Allow lazy loading uid if uid is blank or lazyLoadUid attribute is present

RKT-8671

hotfix-v1.7-v1.8


[BUG] Earn table - %NaN value

Describe the bug
when the API return 0 values, we calculate the APR as %NaN value
Expected
when the result value == %NaN, replace it with 0

Fixed


Download source

Create an option for the scriptedforms.load that provides the source code location of the package for which the GUI is being written.
Create a phosphor toolbar/menu bar. In that menu bar create the item "source code" under which there are two items, "download scriptedforms source code" and "download package_name source code".
On pressing these items tornado server will zip up the source code and send to the user for download.

Complete.


How to Use Signed Request?

Hi, I am confused how to use Signed Request.
Currently, I use it like this:
SignedRequest('http://graph.facebook.com/me', my_access_token)
And I got this response: facepy.exceptions.SignedRequestError: Signed request had a corrupt payload
Any help would be appreciated :D

Please see the documentation on SignedRequest.


TopicReader for TREC CAsT topic

I'm trying to make retrieval for TREC CAsT data. But i meet some pronlem when perform the retrieval. It all failed while i changed different topicreader. The CAsT provided various format of topic file as follow. So which topicreader should i use for the data?
Json:
{
"number": 31,
"description": "A person is trying to compare and contrast types of cancer in the throat, esophagus, and lungs.",
"turn": [
{
"number": 1,
"raw_utterance": "What is throat cancer?"
},
{
"number": 2,
"raw_utterance": "Is it treatable?"
},
{
"number": 3,
"raw_utterance": "Tell me about lung cancer."
},
{
"number": 4,
"raw_utterance": "What are its symptoms? "
},
{
"number": 5,
"raw_utterance": "Can it spread to the throat?"
},
{
"number": 6,
"raw_utterance": "What causes throat cancer?"
},
{
"number": 7,
"raw_utterance": "What is the first sign of it?"
},
{
"number": 8,
"raw_utterance": "Is it the same as esophageal cancer?"
},
{
"number": 9,
"raw_utterance": "What\u0027s the difference in their symptoms?"
}
],
"title": "head and neck cancer"
},
txt:
Number: 31
Title: head and neck cancer
Description: A person is trying to compare and contrast types of cancer in the throat, esophagus, and lungs.
1	What is throat cancer?
2	Is it treatable?
3	Tell me about lung cancer.
4	What are its symptoms?
5	Can it spread to the throat?
6	What causes throat cancer?
7	What is the first sign of it?
8	Is it the same as esophageal cancer?
9	What's the difference in their symptoms?
the annotations for topic,  tsv format:
|31_1 | What is throat cancer?
  | 31_2 | Is throat cancer treatable?
  | 31_3 | Tell me about lung cancer.
  | 31_4 | What are lung cancer's symptoms?
  | 31_5 | Can lung cancer spread to the throat?
  | 31_6 | What causes throat cancer?
  | 31_7 | What is the first sign of throat cancer?
  | 31_8 | Is throat cancer the same as esophageal cancer?
  | 31_9 | What's the difference in throat cancer and esophageal cancer's symptoms?

Hi,
For the retrieval task of TREC-CAsT data, it seems like you have built a corpus index for retrieval.
These topic files are your queries. If you have built index and want to facilitate a retrieval through anserini, you can use the following command:
${ANSERINI_PATH}/target/appassembler/bin/SearchMsmarco -index ${CAST_INDEX_DIR} -queries data/task_files/${QUERY}.tsv -output runs/run.cast.tsv

If you have not built your index file, you can use the following command to built your index.
(Follow the guide from the hosts of CAsT to download the corpus and run the deduplication process with the TREC-CAsT tool.
After your deduplication process, you will have the corpus in XML format.
Use the TrecwebCollection topic reader should be ok.
${ANSERINI_PATH}/target/appassembler/bin/IndexCollection -collection TrecwebCollection -generator JsoupGenerator  -input ${CORPUS_XML_PATH} -index ${CAST_INDEX_DIR} -storePositions -storeDocvectors -storeRawDoc

@justram
Hi, many thanks. for your replay.
I tried it and it really worked.  But i find that SearchMsmarco seems not support change rank algorirhm and query expand method through checking the code of SearchMsmarco. It only can work with bm25 and rm3. But if i want to try different method like the regression experiment used SearchCollection, what should i do? Convert the CAsT  topic file  into the format which can be used for the topicreader in SearchCollection?

@Arlo10veSu yup, the quickest way would be to convert the queries into one of the existing formats.

@lintool Ok, thanks.


VM project fails to load in VStudio solution

When I do a fresh clone of the VM, the solution fails to load the VM (sub)project.
Reloading it manually gives this error:
"DolphinVM\dll.vcxproj : error  : Cannot load project with duplicated project items: rc_vm.h is included as 'ClInclude' and as 'ClInclude' item types"
.
Possibly related the file VMLib.vcxitems.filters, which gives the following diff in GitDesktop:
(note hardcoded pathname)
"-    <ClCompile Include="D:\dev\blairmcg\Dolphin\Core\DolphinVM\VMLib\IntPrim.cpp">
"-      <Filter>Primitives</Filter>
"-    </ClCompile>
"+    <ClCompile Include="$(MSBuildThisFileDirectory)IntPrim.cpp" />
.
Additionally  I've updated to the current VStudio: 15.6.2.
This gave some new warning grief, but not sure if it was on the original or my changed stuff.

Hi @blairmcg , could you possibly take a quick look at this?
Do you get the same error?
I fixed it locally my removing the file rc_vm.h item group entry from the VM(lib) project file with a text editor.

This is fixed in both master and the 7.1 branches.

Thanks!


Stack overflow when unlocking a texture from object

Version 1.516, UNITY 2018.1.0B2 PACKAGE, evaluation version.
Unity 2018.1.0b6
Steps to reproduce:

Create a cube
Try to uncheck 'Lock texture to object' checkbox

Result: checkbox stays checked, exception is thrown:

StackOverflowException: The requested operation caused a stack overflow.
RealtimeCSG.NativeMethodBindings.ConvertWorldToTextureCoord (Int32 brushIndex, Int32 surfaceIndex, Vector3 worldCoordinate, UnityEngine.Vector2& textureCoordinate)
RealtimeCSG.NativeMethodBindings.ConvertWorldToTextureCoord (Int32 brushIndex, Int32 surfaceIndex, Vector3 worldCoordinate, UnityEngine.Vector2& textureCoordinate) ...

Hi, thanks for reporting this, I'll take a look at this

This should be fixed in 1.517, I'll close this ticket once it's up on the asset store

This fix is now available from the asset store, so I'll close this ticket!


CMSIS-Core(M): CMSIS_DEPRECATED for IAR

@RobinKastberg, can you please double check?

@JonatanAntoni looks good to me.


offlineimap: 7.3.0 -> 7.3.2

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/offlineimap/versions.
meta.description for offlineimap is: '"Synchronize emails between two repositories, so that you can read the same mailbox from multiple computers"'.
meta.homepage for offlineimap is: '"http://offlineimap.org"
Compare changes on GitHub

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 7.3.2 with grep in /nix/store/r5adgdwhz2n82imxznb2xkhlb2qkm6p6-offlineimap-7.3.2

directory tree listing: https://gist.github.com/113f9853441c999ed608a68f233fb293

du listing: https://gist.github.com/e357069c59fb9b430b834f7826b57d97

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
offlineimap

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/r5adgdwhz2n82imxznb2xkhlb2qkm6p6-offlineimap-7.3.2 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A offlineimap https://github.com/r-ryantm/nixpkgs/archive/c4e2f71b55025115f52d5984572bb5034c941721.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/r5adgdwhz2n82imxznb2xkhlb2qkm6p6-offlineimap-7.3.2
ls -la /nix/store/r5adgdwhz2n82imxznb2xkhlb2qkm6p6-offlineimap-7.3.2/bin

cc @endocrimes @ma27 for testing.

Here is another pr for offlineimap, #76347, could someone test it?

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review-may-2019/3032/97

Will test on my systems today/tomorrow


Handle keyboard interrupt gracefully

Is your feature request related to a problem? Please describe.
When the visualization is stopped with a keyboard interrupt it prints the logging and ^C and the visualizer is frozen in place.
Describe the solution you'd like
When a keyboard interrupt is triggered ^C shouldn't be printed and the terminal should be cleaned of the visualizer. A simple message should be displayed.
Additional context

Pull request initiated


Fix demo’s drawing of supplementary view.

The issue is that dayView.frame.midX is used to determine the path’s center point but the result is relative to the parent and not to the day view’s cell.
The center point should be relative to the day view’s cell so we just want the dayView’s cell mid point (bounds.width/2, bounds.height/2).

Fixes #411


Concurrent download progress is all the same for diferent videos

Describe your bug
The progress bars of all the videos in the queue are the same (Happens in old design and tailwind)
Describe steps to reproduce the bug

Download a single video using the download button
After the download finishes downloading the entire queue will cause the progress bars to all be the same

Propose a way to fix it
Potentially a problem with the const tempPrg = new Array<progressProps>(removedQueue.length).fill({ progress: 0 }); line as this may cause a array where changing one item changes all
https://user-images.githubusercontent.com/9287896/123528527-cc62a500-d6df-11eb-8fe4-89bf076d1bd3.mp4

Will be fixed on the tailwind-app, simply change new Array(removedQueue.length).fill(obj) to Array.from({length: removedQueue.length}, () => (obj)).


mm: Do not memcopy more than oldsize when realloc

Summary
When realloc up from a mem area to a larger one where a new node
is needed. The the larger memory region is copied from the source
this can both leak data as well as cause memory faults accesssing
invalid data.
This was first reported by Kwonsk
Signed-off-by: Brennan Ashton<EMAIL_ADDRESS>Testing
the sim:ostest configuration was run

@patacongo could you take a look at this and make sure I did not miss something. It looks correct to me but it is a critical component.


Update az-overview.md

SQL updated regions and added Australia East since now GA for SQL

@emlisa : Thanks for your contribution! The author(s) have been notified to review your proposed change.

This is the more up to date pull request since it also includes a column for Australia East. The older request is #52530. This is the one we want approved if we can add this column.

#sign-off


initial refactoring of main from ngen

Initial refactoring of main only incorporating edits from the ngen branch. Functionality has been added to current implementation rather than overwriting existing functions.
Next steps are to incorporate more recent changes in main branch main.py into ngen implementation. Start with addressing input parameters to compute_nhd_routing_v02 within _run_everything_v02 function in main.py
Additions

importing abstract networks in main.py
added functions _handle_args_v02, main_v02, _run_everything_v02, to main.py
added function _input_handler_v02 to input.py
added function set_supernetwork_parameters to nhd_network_utilities_v02.py

Removals

Changes

Testing

Screenshots
Notes

Todos

Checklist

[ ] PR has an informative and human-readable title
[ ] Changes are limited to a single goal (no scope creep)
[ ] Code can be automatically merged (no conflicts)
[ ] Code follows project standards (link if applicable)
[ ] Passes all existing automated tests
[ ] Any change in functionality is tested
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged / future todos are captured in comments
[ ] Visually tested in supported browsers and devices (see checklist below :point_down:)
[ ] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
[ ] Reviewers requested with the Reviewers tool :arrow_right:

Testing checklist
Target Environment support

[ ] Windows
[ ] Linux
[ ] Browser

Accessibility

[ ] Keyboard friendly
[ ] Screen reader friendly

Other

[ ] Is useable without CSS
[ ] Is useable without JS
[ ] Flexible from small to large screens
[ ] No linting errors or warnings
[ ] JavaScript tests are passing

@kumdonoaa

@hellkite500 @mattw-nws This has been edited to work with PR#579 (new DA class object) and PR#584 (NHDNetwork class). Will need to merge those two PRs to test this out. New main function is main_v04.


Now that we have "exclude" , maybe we also need "include"?

same to #640 , if the path tree like this:
├── src
│   ├── package_a
│     └── someapi_of_a
│   ├── package_b
│     └── someapi_of_b
│   ├── package_c
│     └── someapi_of_c1
│     └── someapi_of_c2

i just want need generate swagger file in  package_c/someapi_of_c2, we have to use
--exclude src/package_a,src/package_b/;src/package_c/ someapi_of_c1
Can it be optimized here?
Describe the solution you'd like
if this is useful and meaning, i'll try to pull request.

i try to use swag init -d ./src/package_c/someapi_of_c2 ,but this "dir value" is not suitable for this situation absolutely.

or maybe we need a new arg like searchroot or something ?

analysis the code, find the reason why  return error like "cannot find type definition: xxxxxx" is that search struct define root path is same with Directory you want to parse.
but if your api request or response define struct not located in the the Directory you want to parse. then will return this error.

i find struct type define also be ignore by exclude args, so move the skip excloud path function and add include.
and, if set include, exclude will be invalid
Welcome to discuss this idea :)

i find struct type define also be ignore by exclude args, so move the skip excloud path function and add include.
and, if set include, exclude will be invalid
Welcome to discuss this idea :)

So what if one wants to exclude some sub directories in the directory included by --includes.

i find struct type define also be ignore by exclude args, so move the skip excloud path function and add include.
and, if set include, exclude will be invalid
Welcome to discuss this idea :)

So what if one wants to exclude some sub directories in the directory included by --includes.

good question, i'll check whether my pr can support your idea.
this the reason why i want to add this arg:
in some case, i just want to generate a little api interface(for example, src/package_a/), but some struct is define out of src/package_a/,  the struct is located in src/struct_define. so i add this arg.
├── src
│   ├── package_a
│     └── someapi_of_a
│   ├── package_b
│     └── someapi_of_b
│   ├── struct_define
│     └── some_struct_define

i find struct type define also be ignore by exclude args, so move the skip excloud path function and add include.
and, if set include, exclude will be invalid
Welcome to discuss this idea :)

So what if one wants to exclude some sub directories in the directory included by --includes.

//checkFileNeedParse Check if this file needs to be parse depend on include and exclude.
// return true is this file need to be parse
func (parser *Parser) checkFileNeedParse(fileName string) bool {
	if len(parser.includes) > 0 {
		if parser.checkFileInIncludes(fileName) {
			return true
		}
		return false
	}
	if parser.checkFileInExcludes(fileName) {
		return false
	}
	return true
}

Do we need to consider the situation where both exist?  how to solve it?

Now -d support multiple directories seperated by comma, which works the same as --include.
First include, then exclude from the included.
If you still have problems, you had better reorganize your directories, I think.

@nimohunter any update here?

First include, then exclude from the included.

We aren't given the option to 'include'. We can only provide a search base. I provided a search base, and then excluded my entire project, but it still scans the whole thing and generates docs for it. I'm trying to generate docs for a single file in my entire project. It may share some models, sure, but overall, it's a much smaller interface with a different use case. I can't figure out how to do this.  Having include that includes only definitions in a specific folder (or file, in my case) would be extremely handy.

If you still have problems, you had better reorganize your directories, I think.

How? Where do I put this 1 file so I can include only that file in some output? I'd like to keep it where it is, but if there's some way to fix this by moving I can try.


Improve UX of password reset and user name reminder email

Related to #2309
The current email is very basic. Whilst we probably don't want it to be too opinionated, the copy could be more helpful.

Hi, do you find there is still an issue with this workflow? I'd like to work on this if so.

Flagging as needs info - it would be good if this issue could be updated or added to with current state and ideas or proposals for a better approach.
Also - maybe we should check what template customisation is available here, it might be a lack of docs.

Closing due to lack of detail - this issue does not identify any specific problems or actionable improvements.


[ConstraintSystem] Extend use of missing explicit call fix

Now covers following new areas (alongside simple assignments):

Contextual type coercions:

In assignment e.g. let _: X = foo
In return type positions e.g. func foo() -> A { return bar }

Argument-to-parameter applications (including @autoclosure)

@swiftix please test

@swift-ci please test


Add conversion support for json to tlv using kotlin/jni

https://github.com/project-chip/connectedhomeip/pull/26588


Buttons not aligning properly

Please take a look at this fiddle.
I do not understand why the "Delete" button is a few pixels lower than the other buttons, and the input box.
How can I properly align all the elements?

Dupe #1543.


Include metadata if necessary

AS A DATA SCIENTIST
I NEED TO include metadata
IN ORDER TO have better precision
Additional remarks:
If it is necessary for the precision of the data model, then metadata could be included

@vaunapuu should metadata be added to

full datasets (see #83 for reference); or
specific fields groups; or
specific input?

See it as obsolete as data pre-processing and otherwise preparation covers it already. See #20 for all related tasks.


No Quantity

In my project i have gotten to a point where i need to add product quantity and then i realised there is not quantity column on the table. So is there a better way to set and get product quantity or to add my own migration to update the product table.

Do you mean quantity unit like "kg" "pcs" or quantity like stock?

Do you mean quantity unit like "kg" "pcs" or quantity like stock?

Quantity like available stock I mean.

This simple stock feature is just about to be added: https://vanilo.io/docs/master/roadmap
The field name will be highly likely stock, and supporting features like $product->isOnStock() and/or $product->isAvailable() and/or $product->canBeBought() will be added.
How urgent is it for you, how many days can you wait for it?

This simple stock feature is just about to be added: https://vanilo.io/docs/master/roadmap
The field name will be highly likely stock, and supporting features like $product->isOnStock() and/or $product->isAvailable() and/or $product->canBeBought() will be added.
How urgent is it for you, how many days can you wait for it?

Nice! It's a crucial part of the project but i guess I can wait for it for one-two weeks while I work on other parts of my project.

Good, it'll take about that. I'll keep you updated within this Issue.


[BAST-1275] Adding docs for namespace exclusions for image assurance

This PR adds user docs for BAST-1275. This is an enhancement for IA. User will now be able to provide namespace exclusions for image scanning and runtime views.
Product Version(s): Calico Cloud

Issue: BAST-1275

Link to docs preview:

SME review:

[ ] An SME has approved this change.

DOCS review:

[ ] A member of the docs team has approved this change.

Additional information:

Merge checklist:

[ ] Deploy preview inspected wherever changes were made
[ ] Build completed successfully
[ ] Test have passed

LGTM

Repackaged in #1451


Refresh list after clearing notifications

Currently, after clearing a notification (or multiple notifications) the list does not get refreshed until the next interval.
This means that if you clear all of your notifications, the icon stays green until the next interval / you manually refresh the list.

@JakeSidSmith Fixed in master! Ready for next release! :ship:


SW-1860 Nurseries with Show More in Inventory Table

import and use the TextTruncated component

vercel didn't deploy here

The latest updates on your projects. Learn more about Vercel for Git ↗
Name	Status	Preview	Updated
tree-location-web	🔄 Building (Inspect)		Oct 27, 2022 at 8:39PM (UTC)

finally

hmm, i noticed my font is smaller than the rest of the table fonts. I used 14px font per the figma, looks like the other text here is 16px. @constanzauanini or @karthikbtf should I update mine to 16px?

hmm, i noticed my font is smaller than the rest of the table fonts. I used 14px font per the figma, looks like the other text here is 16px. @constanzauanini or @karthikbtf should I update mine to 16px?

In figma they are all 14px, 16px is probably incorrect and needs to be fixed

In figma they are all 14px, 16px is probably incorrect and needs to be fixed

Okay, I'll leave mine at 14px 👍

In figma they are all 14px, 16px is probably incorrect and needs to be fixed

Okay, I'll leave mine at 14px 👍

Thanks @charlie-tf can you open a bug under the nursery epic (clean up tasks story)?

In figma they are all 14px, 16px is probably incorrect and needs to be fixed

Okay, I'll leave mine at 14px 👍

Sorry, I may have missed that

In figma they are all 14px, 16px is probably incorrect and needs to be fixed

Okay, I'll leave mine at 14px 👍

Sorry, I may have missed that

It's all good, we can keep track of cleanup items here https://terraformation.atlassian.net/browse/SW-2032

In figma they are all 14px, 16px is probably incorrect and needs to be fixed

Okay, I'll leave mine at 14px 👍

Sorry, I may have missed that

No worries! I created a ticket: https://terraformation.atlassian.net/browse/SW-2062


KinematicBody2D when pushed falls if it touches two one way collision static bodies.

Godot version:
3.2 stable
OS/device including version:
Windows 10 64-bit
Issue description:
When a kinematic body 2d is touching two one way collision static bodies and another kinematic body 2d falls on it then it falls from the one way collisions.
Minimal reproduction project:
one_way_bug.zip

Can you reproduce this in Godot 3.1.2 or any of the older 3.2 alphas, betas or RCs? You can download them here.

Reproduced and in Godot 3.1.2 stable.

I can confirm that this is broken in 3.2.3.stable and that #42574 fixes the issue for me on the 3.2 branch.


Remove legal page, link to https://www.python.org/about/legal/

Instead of linking to a separate page, the legal link in the footer can link to https://www.python.org/about/legal/

Let me poke Van about this real quick to make sure that still makes sense to do so here.

Note that as per the HTML styleguide, any link should not contain a protocol, e.g. //mylink.com not http://mylink.com


Whitespace and typo fixes

This PR just fixes some typos and whitespace adjustments while I was skimming through a couple of the merged PRs :)
@typerandom please have a look and then merge.

Looks good! Merging in! :+1:

Thanks @timothyej !


ConnectionError "Too many connections"

Hello,
I'm trying to migrate my lib from 1.3.1 to 2.0.0 and getting some connection errors ConnectionError("Too many connections").
I created a connection pool with max_connections = 10, and I got the connection error if I gather more than 10 coroutines to execute.
To reproduce:
max_connections = 2 and 3 concurrent tasks.
import asyncio
import aioredis

async def run():
    redis = aioredis.from_url(
        url=f"redis://<IP_ADDRESS>:6379/0",
        encoding="utf-8",
        decode_responses=True,
        max_connections=2
    )
    task_1 = asyncio.create_task(redis.ping())
    task_2 = asyncio.create_task(redis.ping())
    task_3 = asyncio.create_task(redis.ping())

    await asyncio.gather([task_1, task_2, task_3])

asyncio.run(run())

Expected output:
Use 2 connections in the pool to successfully ping 3 tasks.

Current output:
raise ConnectionError("Too many connections")

Compared with v1.x, this is a different behavior. If there is no available connection in the connection pool, will we try to wait for a free connection instead of raising an exception ?

Hi,
You can use a BlockingConnectionPool to that end

Good to know, thanks.


Permissions to create a PR to update defizap logo

Hi team,
I have cloned your code and made changes on a separate branch to update the DeFiZap logo and URL text. Could you please provide access to raise a PR for this repository.
If this is not the right way to go about it, please let me know the best way to do this.
Regards,
Tosh Sharma

@makoto @jefflau

Hi, @Tosh-Sharma . Please fork our repo first.
I added the link to our readme https://github.com/ensdomains/ens.domains#0-prep-work-fork-our-repo

Handled at https://github.com/ensdomains/ens.domains/pull/53


WIP for Status and StatusList

Statusssessssssssss

@orderedlist So the latest commit that I pushed is what I think we're going to need to implement to get that callback stuff working. Currently something is breaking the combyne templating when it's loading the partial templates. I saw this in asyncFunction, syncFunction and callbackHelper. @tbranyen might know what's going on but I didn't see anything wrong with the additions.

@orderedlist ok this is building now. You should be able to start working with the callbacks now hopefully.


deploy fails, config doesn't eval, nixos-anywhere didn't notice

I tried to use lib.optional in my disko config. When I eval it locally, it fails.
When I ran nixos-anywhere --build-on-remote it emitted no error, and then fails to reboot.

what do logs looks like in this case?


where to obtain APN.mat file?

Already download all the files mentioned but don't know where to obtain APN.mat file

You can download apn.mat via the following GitHub link:
https://github.com/wenjiaXu/APN-ZSL

Thanks,and where to get id2imagepixel.pkl .....

This data is too large to upload, but it is relatively easy to generate this data.
You can find the image based on the image id of the dataset and run FeatureExtractor through the corresponding swin or deit model

Can you introduce the process of acquiring these pkl files in detail, or give us some reference repo in GitHub? Thanks a lot!

https://huggingface.co/docs/transformers/model_doc/swin#transformers.SwinModel
It may will help you generate these pkl files.

https://huggingface.co/docs/transformers/model_doc/swin#transformers.SwinModel It may will help you generate these pkl files.

Got it！ Thank u very much

What's more, there still another question about the output of SwinModel to generate id2imagepixel.pkl. Which parameter I need to choose in the SwinModelOutput?  (such as pooler_output/pooler_output/hidden_states/hidden_states/reshaped_hidden_states)

Thank you for the code. What I want to ask is can you give the exact steps or code to generate the id2imagepixel.pkl file?

This is a process of generating the embedding according to the image, refer to the above process.

Thank you very much for sharing, I am a newbie, can you tell me the detailed steps for getting the ID2imagepixel.pkl file?

Thank you very much for sharing, I am a newbie, can you tell me the detailed steps for getting the ID2imagepixel.pkl file?

You can follow this Python script(https://github.com/zjukg/DUET/blob/main/cache/generate_embedding.py) to understand the detailed steps. Essentially, the image embedding is obtained through the image url and then saved into a pkl file

Thank u very much

Hello, when I'm running: bash script/AWA2/AWA2_GZSL.sh, I get the following error: RuntimeError: Tensors must have same number of dimensions: got 2 and 4. This is also the case when I run it on the CUB dataset : input = torch.cat((input_v[index].unsqueeze(0), positive_input.unsqueeze(0), negative_input_1_1.unsqueeze(0), negative_input_1_2.unsqueeze(0), negative_input_2_1.unsqueeze(0), negative_input_2_2.unsqueeze(0)), 0)     RuntimeError: Tensors must have same number of dimensions: got 2 and 4. Is there a bug in the experiment?

It may be an issue with the dataset processing. You can check the dimension information of input_v[index], positive_input, and negative_input_1_1, and then perform targeted debugging.

Hello, when I'm running: bash script/AWA2/AWA2_GZSL.sh, I get the following error: RuntimeError: Tensors must have same number of dimensions: got 2 and 4. This is also the case when I run it on the CUB dataset : input = torch.cat((input_v[index].unsqueeze(0), positive_input.unsqueeze(0), negative_input_1_1.unsqueeze(0), negative_input_1_2.unsqueeze(0), negative_input_2_1.unsqueeze(0), negative_input_2_2.unsqueeze(0)), 0) RuntimeError: Tensors must have same number of dimensions: got 2 and 4. Is there a bug in the experiment?

It may be an issue with the dataset processing. You can check the dimension information of input_v[index], positive_input, and negative_input_1_1, and then perform targeted debugging.

您好，当我运行时：bash script/AWA2/AWA2_GZSL.sh，我收到以下错误：运行时错误：张量必须具有相同数量的维度：得到 2 和 4。当我在 CUB 数据集上运行它时也是如此：input = torch.cat（（input_v[index].unsqueeze（0）， positive_input.unsqueeze（0）， negative_input_1_1.unsqueeze（0）， negative_input_1_2.unsqueeze（0）， negative_input_2_1.unsqueeze（0）， negative_input_2_2.unsqueeze（0））， 0） 运行时错误： 张量必须具有相同的维数： 得到 2 和 4。实验中是否有错误？

这可能是数据集处理的问题。您可以查看input_v[索引]、positive_input、negative_input_1_1的维度信息，然后进行有针对性的调试。
Thank you very much for your answer, I think there is a problem with this code: input = torch.cat（（input_v[index].unsqueeze（0）， positive_input.unsqueeze（0）， negative_input_1_1.unsqueeze（0）， negative_input_1_2.unsqueeze（0）， negative_input_2_1.unsqueeze（0）， negative_input_2_2.unsqueeze（0））， 0）..
I get their dimensions as：input_v[index]  (3,224,224) and all the others as (1000), after .unsqueeze(0),the shape is a tensor of (1,3,224,224) and (1, 1000), which is obviously not possible to splice with the :torch.cat function. After that I have tried to convert them to tensor of the same dimension, but its form of data interpretation may change. Now I'm wondering if there is something wrong with the code or with the dimension of the generated tensor.Can you help me to discover the problem, thanks a lot!

您好，当我运行时：bash script/AWA2/AWA2_GZSL.sh，我收到以下错误：运行时错误：张量必须具有相同数量的维度：得到 2 和 4。当我在 CUB 数据集上运行它时也是如此：input = torch.cat（（input_v[index].unsqueeze（0）， positive_input.unsqueeze（0）， negative_input_1_1.unsqueeze（0）， negative_input_1_2.unsqueeze（0）， negative_input_2_1.unsqueeze（0）， negative_input_2_2.unsqueeze（0））， 0） 运行时错误： 张量必须具有相同的维数： 得到 2 和 4。实验中是否有错误？

这可能是数据集处理的问题。您可以查看input_v[索引]、positive_input、negative_input_1_1的维度信息，然后进行有针对性的调试。
Thank you very much for your answer, I think there is a problem with this code: input = torch.cat（（input_v[index].unsqueeze（0）， positive_input.unsqueeze（0）， negative_input_1_1.unsqueeze（0）， negative_input_1_2.unsqueeze（0）， negative_input_2_1.unsqueeze（0）， negative_input_2_2.unsqueeze（0））， 0）..
I get their dimensions as：input_v[index]  (3,224,224) and all the others as (1000), after .unsqueeze(0),the shape is a tensor of (1,3,224,224) and (1, 1000), which is obviously not possible to splice with the :torch.cat function. After that I have tried to convert them to tensor of the same dimension, but its form of data interpretation may change. Now I'm wondering if there is something wrong with the code or with the dimension of the generated tensor.Can you help me to discover the problem, thanks a lot!

I may have been unclear before, I provided the entire generating of the embedding script. In my impression, generate_embedding.py should not generate an embedding, but a feature (3,224,224). Since it's been a long time, this is a temporary script that we saved for you to refer to to generate ID2imagepixel.pkl, not a complete input/output.
You can look at the input and implementation process into the forward in the Multi_attention_Model and the implementation process described in our paper to see where the dimension problem lies.

您好，当我运行时：bash script/AWA2/AWA2_GZSL.sh，我收到以下错误：运行时错误：张量必须具有相同数量的维度：得到 2 和 4。当我在 CUB 数据集上运行它时也是如此：input = torch.cat（（input_v[index].unsqueeze（0）， positive_input.unsqueeze（0）， negative_input_1_1.unsqueeze（0）， negative_input_1_2.unsqueeze（0）， negative_input_2_1.unsqueeze（0）， negative_input_2_2.unsqueeze（0））， 0） 运行时错误： 张量必须具有相同的维数： 得到 2 和 4。实验中是否有错误？

这可能是数据集处理的问题。您可以查看input_v[索引]、positive_input、negative_input_1_1的维度信息，然后进行有针对性的调试。
Thank you very much for your answer, I think there is a problem with this code: input = torch.cat（（input_v[index].unsqueeze（0）， positive_input.unsqueeze（0）， negative_input_1_1.unsqueeze（0）， negative_input_1_2.unsqueeze（0）， negative_input_2_1.unsqueeze（0）， negative_input_2_2.unsqueeze（0））， 0）..
I get their dimensions as：input_v[index]  (3,224,224) and all the others as (1000), after .unsqueeze(0),the shape is a tensor of (1,3,224,224) and (1, 1000), which is obviously not possible to splice with the :torch.cat function. After that I have tried to convert them to tensor of the same dimension, but its form of data interpretation may change. Now I'm wondering if there is something wrong with the code or with the dimension of the generated tensor.Can you help me to discover the problem, thanks a lot!

I may have been unclear before, I provided the entire generating of the embedding script. In my impression, generate_embedding.py should not generate a embedding, but a feature (3,224,224). Since it's been a long time, this is a temporary script that we saved for you to refer to to generate ID2imagepixel.pkl, not a complete input/output.
You can look at the input and implementation process into the forward in the Multi_attention_Model and the implementation process described in our paper to see where the dimension problem lies.

您好，当我运行时：bash script/AWA2/AWA2_GZSL.sh，我收到以下错误：运行时错误：张量必须具有相同数量的维度：得到 2 和 4。当我在 CUB 数据集上运行它时也是如此：input = torch.cat（（input_v[index].unsqueeze（0）， positive_input.unsqueeze（0）， negative_input_1_1.unsqueeze（0）， negative_input_1_2.unsqueeze（0）， negative_input_2_1.unsqueeze（0）， negative_input_2_2.unsqueeze（0））， 0） 运行时错误： 张量必须具有相同的维数： 得到 2 和 4。实验中是否有错误？

这可能是数据集处理的问题。您可以查看input_v[索引]、positive_input、negative_input_1_1的维度信息，然后进行有针对性的调试。非常感谢您的回答，我认为这段代码有问题：input = torch.cat（（input_v[index].unsqueeze（0）， positive_input.unsqueeze（0）， negative_input_1_1.unsqueeze（0）， negative_input_1_2.unsqueeze（0）， negative_input_2_1.unsqueeze（0）， negative_input_2_2.unsqueeze（0））， 0）..我得到它们的维度为：input_v[index]（3,224,224），所有其他维度为（1000），在.unsqueeze（0）之后，形状是（1,3,224,224）和（1， 1000）的张量，这显然不可能与：torch.cat 函数拼接。之后，我尝试将它们转换为相同维度的张量，但其数据解释的形式可能会发生变化。现在我想知道代码或生成的张量的维度是否有问题。你能帮我发现问题吗，非常感谢！

Hello, I have the same problem as you, did you solve it? If you don't mind, can you tell us how it was solved, thank you very much!

Hi everyone, thanks for your attention.
Our cache data for (CUB, AWA, SUN) are now available here (Baidu cloud, 19.89G, Code: s07d).
@litianjun05090 @Bingyang0410 @wangwangwangj @Even008 @passer

Hi, I would like to ask one other question, the splitting standard we usually use is xlsa17, but how is the file  'att_splits.mat ' generated? I didn't find the method in the original paper!  Can you explain this, thank you very much!


"Restart (R)" shortcut key does not work

VS Code Version: VS Code 1.56.2
OS Version: Linux VM and Linux ARM64
Notes:
Install Simplified Chinese language package
Steps to Reproduce:

Open VS Code and press F1 to open command palette.
Choose the “Configure Display Language”->zh-cn->restart(Use the shortcut key “R” to restart).

Actual:
Shortcut key does not work
Expected:
Project restart

@v-ericawu When you say Use the shortcut key “R” to restart, what do you mean? What keybinding do you press?

@alexdima When you switch the VS Code language, you need to click "Restart" to restart the VS Code and change the display language.
Note: The "Restart" shortcut is an uppercase "R".
Screenshots with specific steps are shown below:

I don't think R is supposed to activate the Restart button in this dialog:

I think I know what you mean, in the menus on Windows there appears an underscore sometimes under certain characters of the menus, but I don't think that underscore shortcut thing works in dialog boxes in Windows. @bpasero please correct me if I'm wrong.


Scenario selector should show selected scenario's after navigating away and back

Initial selection is made:

Looking at the result:

Navigating back (it should be nice to have a link/button to return to the selection menu):

Selecting a new set (you would think!):

Oops! Previous selection was still active:

This used to work fine, and still works in Firefox. My guess is something has changed in Chrome such that the (hidden) checkboxes aren't immediately re-ticked when the page reloads?
I just delayed the check slightly, and this seems to do the trick.


Error on Command run

I am running RushTI, my TI creates my text file for my tasks as expected, manually executing the same command used in sCommand in CMD and executes without any issues. Once I have my TI running the scommand keep getting an error that it can't find a file. And there is no record on which one of the 2 files are not found. Python resides on the same server as the TM1 instance, so I am running everything on the local server using the local Architect to kick off the process.
I don't have any issues with TM1 process connecting to any of the files on the server on the different drives. The Python folder is on the same drive as TM1 instance, Python is installed on the same drive as the TM1 software.  Currently all instances are being run as local host.

Questions, should RushTI and the tasks text be on the same drive on the machine
Describe what's not working the way you expect
TM1 is not able to find a file when running the scommand script for RushTI.
Version

TM1py 1.9
TM1 Server Version:11.8.013

Additional context
sCommand line code
"sCommand = 'python F:\Python\rushti-master\RushTI.py E:\Integration\Import\Temp\tasks.txt 10';
ExecuteCommand(sCommand,1);"

ExecuteCommand function will not throw any error.

Check if the TI uses a data source.
Check if the TI completes successfully when the ExecuteCommand is commented out.

What do you have in line 143?

ExecuteCommand function will not throw any error.

Check if the TI uses a data source.
Check if the TI completes successfully when the ExecuteCommand is commented out.

What do you have in line 143?

It doesn't have a data source, we are using bedrock to extract the data, RushTI scripts calls it. The Execute command is in line 143, so when it is commented out it executes successfully.
Based on a 2nd test done, it is not able to find the python script file being called, we don't have service accounts on the server, question is to do we need a service account, everything is ran as localhost, with all processes not needing it to pick up any of the csv files used from these exact folders, I don't see why it can be an issue to call the python script?

Normally in a production environment we use service accounts to run the TM1 service for various reasons.
Other checks that you could do:

If python has been installed for all users within the server?
Have you added the python executable to the PATH?
Try placing the python script in a different drive.

This is not a TM1py specific issue.

Issue was using the scripts in the command as per the RushTI website, using just python to call it, using the full path has resolved the issue.
Python was added to the PATH, can see it in the Environment variables. Is also available to all users, both those were set as part of the installation process.


Question: why fontbakery fails for weight mapping?

I'm working on an opensource typeface supposed to be on google fonts. i want to map axis weight steps with nonlinear function:
  <axis maximum="900" minimum="100" tag="wght" default="100" name="weight">
   <labelname xml:lang="en">Weight</labelname>
    <map input="100" output="100" />
    <map input="200" output="170" />
    <map input="300" output="248" />
    <map input="400" output="332" />
    <map input="500" output="424" />
    <map input="600" output="526" />
    <map input="700" output="637" />
    <map input="800" output="761" />
    <map input="900" output="900" />
  </axis>

typeface has 2 top and bottom masters and this is an optical correction to bring bottom instances steps closer and increase distance of top instances. but i don't know why fontbakery generates fails on its report for that, maybe i'm doing wrong?
 >> com.google.fonts/check/varfont/regular_wght_coord
    The variable font 'wght' (Weight) axis coordinate must be 400 on the 'Regular' instance.
    with Estedad[KSHD,wght].ttf

      Rationale:
      According to the Open-Type spec's registered design-variation tag 'wght'
      available at
      https://docs.microsoft.com/en-gb/typography/opentype/spec/dvaraxistag_wght

      If a variable font has a 'wght' (Weight) axis, then the coordinate of its
      'Regular' instance is required to be 400.

     FAIL The "wght" axis coordinate of the "Regular" instance must be 400.
          Got<PHONE_NUMBER>611328 instead. [code: not-400]

    Result: FAIL

it's my mistake. i forgot to change instance coordinates to the new values(i mean for example:: Regular:400→332)


[Auto-generated] Update requirements.txt

Update requirements.txt
Automatically created PR from the ci_update_requirements.yml workflow.

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

Comparison is base (2bd9ec7) 59.47% compared to head (4669311) 59.47%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@                  Coverage Diff                   @@
##           ci/dependabot-updates     #356   +/-   ##
======================================================
  Coverage                  59.47%   59.47%
======================================================
  Files                         20       20
  Lines                        728      728
======================================================
  Hits                         433      433
  Misses                       295      295

Flag
Coverage Δ

pytest
59.47% <ø> (ø)

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

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


Fix deadlock when only calling Executor::tick to drive it

Pre-1.9.0, you could spawn tasks on one thread, and then manually tick on another without issue since all tasks were queued into the global injector queue. Now that spawn prioritizes local queues over the global injector queue, this no longer works properly. To fix this, this PR changes Ticker::runnable to steal one task from the other thread-local queues.
Ticker::drop was also not taking and dropping the Waker from the thread local queue.

As in those tests pass even in the base #93 without this fix? Or that this PR doesn't fix those tests?

Yes, these tests pass on master when #93 is removed via rebase.


How to use custom login form

Hello, nice package! The examples have been extremely helpful, I've got keycloak up and running (using @react-keycloak/web) in dev and production environments and things are working really well! Loving it so far 💙
That said, I have one last hump I'm trying to get past and I need a little help - I have my own login page/form and I'd like to be able to pass the users credentials from that directly to keycloak without having to use the stock keycloak login form. The examples only show using login() with no options which directs you to the stock login form.
I've looked through KeycloakLoginOptions and found that by passing prompt: 'none' I can stop the auto-redirect, but the docs/examples don't really explain anything further on how to authenticate manually.
I looked through the other packages (core/ssr) but still don't see any options for setting the username/password for the login method. Any pointers you could share on this? Even just something high-level would be much appreciated.
Thanks in advance for any help you may be able to provide - it will go a long way!

Hi @seanforyou23 ,
Thanks for your feedback.
Unfortunately what you want to achieve seems to be not possibile using keycloak-js, I looked at the official documentation for the login method (here for more details) but it seems that sending the username/password directly to Keycloak is not supported.

Hi @seanforyou23 ,
Thanks for your feedback.
Unfortunately what you want to achieve seems to be not possibile using keycloak-js, I looked at the official documentation for the login method (here for more details) but it seems that sending the username/password directly to Keycloak is not supported.

Thanks @panz3r - I was starting to think that after reading around a bit more, definitely helps for you to verify this. Looks like there's a way to create a custom keycloak theme which could get me most of the way there.. I'll try that. Thanks for the quick response!

Thanks @panz3r - I was starting to think that after reading around a bit more, definitely helps for you to verify this. Looks like there's a way to create a custom keycloak theme which could get me most of the way there.. I'll try that. Thanks for the quick response!

It is possible using the Direct Grant flow (resource owner password credentials grant in OIDC), but not recommended at all. Other than it's insecure, you will have to handle everything token related, basically making Keycloak not that useful. On SPAs or public clients use Standard flow (authorization code flow) with PKCE.
p.s. I know the answer is late, just leaving it here for others searching.


Re  In VR gyroscope camera tracking is Disabled

Hi  In VR mode / in Android / chrome
gyroscope  is disabled when vartiste is used.
Anyway to enable this in vr for mobile devices?
I want to develop for vr  / mobile (cardboard vr)
has normal gyro in vr  to move around
** Then  toggle off gyro (in look-controls?)  and  activate  a-cursor / gaze / fusing for  drawing
when painting on the canvas
Do you thing this functionality is possible with your  aframe component?
Thanks

Hi!
I've tested https://codepen.io/zach-capalbo/pen/oNbKagV and https://vartiste.xyz on my Android/Chrome device, and the gyro seems to work, even in VR (cardboard/daydream) mode.

If you have a demo or example code that demonstrate the issue, it could be helpful for figuring out what's going on.
Thanks

Hi
the component  --> aframe-environment-component:
https://github.com/supermedium/aframe-environment-component

Line was left in  from a previous project .. although the script was not included in head
aframe  lockeds up when in VR  .. strange
took it out and now OK
Thanks!


Feat/page component

Description
Added a new component named Page, with one style; Primary. It is adjusted for screen sizes below 768 px and screen sizes above 768 px.
Related Issue(s)

#57

Verification

[x] Your code builds clean without any errors or warnings
[x] Manual testing done (required)
[x] Relevant automated test added (if you find this hard, leave it and we'll help out)
[x] All tests run green

Documentation

[ ] User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

Codecov Report

Merging #118 (31dcbfc) into main (5aacae0) will increase coverage by 0.06%.
The diff coverage is 97.29%.

@@            Coverage Diff             @@
##             main     #118      +/-   ##
==========================================
+ Coverage   96.65%   96.72%   +0.06%
==========================================
  Files          23       28       +5
  Lines         329      366      +37
  Branches       81       84       +3
==========================================
+ Hits          318      354      +36
- Misses         11       12       +1

Impacted Files
Coverage Δ

src/components/Page/Context.ts
88.88% <88.88%> (ø)

src/components/Page/Page.tsx
100.00% <100.00%> (ø)

src/components/Page/PageContent.tsx
100.00% <100.00%> (ø)

src/components/Page/PageHeader.tsx
100.00% <100.00%> (ø)

src/components/Page/PageIcon.tsx
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[FLINK-7996] [table] Add support for (left.time = right.time) predicates to window join

What is the purpose of the change
This PR adds left.time = right.time predicates support for time-windowed join in Table API and SQL.
Brief change log

Change WindowJoinUtil.extractWindowBoundsFromPredicate() to accept single euqi-time predicate.
Add tests for the new predicate.
Update the documents.

Verifying this change
This change can be verified by the added tests in JoinTest and JoinITCase.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (docs)

Thanks for the PR @xccui.
I'll do some minor refactorings and will merge it.
Thanks, Fabian


New binary data tabs should always open in hex view

Since default layouts were added, the "New Binary Data" action will open an empty file using the default layout. The default layout—likely saved when reversing—is very likely not appropriate for editing/viewing hex files. Newly created/opened binary data files should always default to hex view.

Should be fixed in builds ≥ 3516.


Changed placement of tracking code

Description
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[ ] 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)
[ ] This change requires a documentation update

Change Status

[ ] Complete, tested, ready to review and merge
[x] Complete, but not tested (may need new tests)

How Has This Been Tested?

[ ] Test A
[ ] Test B

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] My code has been reviewed by at least one peer
[x] My changes generate no new warnings
[x] There are no merge conflicts

Only moved the placement of Google Analytics tracking code because no reports are generating.

good job


Required input in modal

Hey !
I can't seem to find the way to check if check boxes, for example, have at least one checked or not and showing an alert and at the same time preventing going to the next modal in the list...

Hi! This library doesn't provide, such a functionality out of the box. You would have to write some code to disable the next button, verify that at least one checkbox is checked, then enable the button again. Thanks!


Implement DELETE packages

This implies:

[x] implement route
[x] implement unit tests (controller + services)
[x] add route to Swagger
[x] add route to README

Closed via #72


Signatures sometimes contain 33-byte components

In running the tests, I have noticed that sometimes I get signatures with 33-byte X-components (as opposed to 32-byte ones, which I would expect every time).
Here's an example:
My comments in verifySignResp in KeycardTest.java:
private void verifySignResp(byte[] data, APDUResponse response) throws Exception {
Signature signature = Signature.getInstance("SHA256withECDSA", "BC");
assertEquals(0x9000, response.getSw());
byte[] sig = response.getData();
System.out.println("verify data");
System.out.println(Arrays.toString(sig));
byte[] keyData = extractPublicKeyFromSignature(sig);
sig = extractSignature(sig);
System.out.println("verify sig");
System.out.println(Arrays.toString(sig));

ECParameterSpec ecSpec = ECNamedCurveTable.getParameterSpec("secp256k1");
ECPublicKeySpec cardKeySpec = new ECPublicKeySpec(ecSpec.getCurve().decodePoint(keyData), ecSpec);
ECPublicKey cardKey = (ECPublicKey) KeyFactory.getInstance("ECDSA", "BC").generatePublic(cardKeySpec);

signature.initVerify(cardKey);
assertEquals((SecureChannel.SC_KEY_LENGTH * 2 / 8) + 1, keyData.length);
signature.update(data);
assertTrue(signature.verify(sig));
assertFalse(isMalleable(sig));
}

Produces the following output:
verify data
[-96, -127, -118, -128, 65, 4, 75, -98, 34, 38, 36, -11, 92, 24, -115, 22, -69, -57, 30, -76, -91, 124, -41, -18, -14, -33, 91, -33, 78, 63, 45, -27, -78, -92, 94, 92, 68, -90, -110, -46, -70, 101, -109, 60, 94, -1, 118, 38, -55, 95, -95, -50, 90, 110, 116, 79, -19, 16, -69, 31, -47, -124, 103, -18, 105, 49, -86, 14, -58, -4, 48, 69, 2, 33, 0, -25, 6, -126, -104, -39, 81, 106, -79, -119, -27, 61, 15, -1, 114, -25, 106, -107, -11, -52, -53, 73, 19, 28, 43, 108, -18, 55, 18, 125, 87, 11, 92, 2, 32, 83, 90, -26, -14, -50, 18, -46, -82, 103, 46, -10, 71, -76, 71, -19, 53, 23, -122, -109, -90, -21, -99, 76, 4, 3, -55, 35, 56, -114, -64, 40, 7]
verify sig
[48, 69, 2, 33, 0, -25, 6, -126, -104, -39, 81, 106, -79, -119, -27, 61, 15, -1, 114, -25, 106, -107, -11, -52, -53, 73, 19, 28, 43, 108, -18, 55, 18, 125, 87, 11, 92, 2, 32, 83, 90, -26, -14, -50, 18, -46, -82, 103, 46, -10, 71, -76, 71, -19, 53, 23, -122, -109, -90, -21, -99, 76, 4, 3, -55, 35, 56, -114, -64, 40, 7]

A different output, with the 32-byte component I would expect:
verify data
[-96, -127, -119, -128, 65, 4, 75, -98, 34, 38, 36, -11, 92, 24, -115, 22, -69, -57, 30, -76, -91, 124, -41, -18, -14, -33, 91, -33, 78, 63, 45, -27, -78, -92, 94, 92, 68, -90, -110, -46, -70, 101, -109, 60, 94, -1, 118, 38, -55, 95, -95, -50, 90, 110, 116, 79, -19, 16, -69, 31, -47, -124, 103, -18, 105, 49, -86, 14, -58, -4, 48, 68, 2, 32, 63, 86, -119, 57, 51, -126, 106, 113, 88, 112, -113, -41, -113, -11, 117, -63, -123, -6, -48, -77, -14, 17, 44, -114, 7, 83, -34, 119, 91, 67, 27, 81, 2, 32, 97, -58, -120, 110, 105, 125, -48, -48, 3, -78, -112, 73, 2, -3, -110, -5, 63, 48, -116, -95, 36, -31, -30, 7, -8, 82, -29, -23, 90, 57, 72, -12]
verify sig
[48, 68, 2, 32, 63, 86, -119, 57, 51, -126, 106, 113, 88, 112, -113, -41, -113, -11, 117, -63, -123, -6, -48, -77, -14, 17, 44, -114, 7, 83, -34, 119, 91, 67, 27, 81, 2, 32, 97, -58, -120, 110, 105, 125, -48, -48, 3, -78, -112, 73, 2, -3, -110, -5, 63, 48, -116, -95, 36, -31, -30, 7, -8, 82, -29, -23, 90, 57, 72, -12]

Note:

Only the X component ever appears to be affected (I have yet to see a 70-byte signature output, which would indicate both components are 33 bytes)
The frequency looks roughly like ~1 in 7 attempts

Have you observed this behavior? Do you know the root cause? How do you avoid buffer overflows in parsing the output? My strategy given current knowledge would be to simply remove the leading zero if the component is >32 bytes - do you have a better strategy?

This is expected, since X and Y are ASN.1 encoded signed integers (as per standard) so if the most significant bit is set (i.e: one) a 0 byte is prepended to indicate positive sign. Removing the leading 0 byte converts the number to an unsigned representation. This is done automatically in our Java SDK and is the right strategy if you need 32-byte output (for example in Ethereum transactions).


Differences with native implementation

Hi,
I think I don't get the difference between your component and facebook's implementation. Could you clarify this?

One of the differences was that I supported setting html as a string, they added that though :)
Remaining differences:

Links clicks don't cause it to navigate away, they just pass the url to the onLink callback
autoHeight option disables scrolling and sets the height of the view to the height of its contents (this is useful when it's already in a scrollview along with other components)
Build in HTML sanitization (removes tags and attributes not in a whitelist, including all scripts)

Basically it's aimed at a use case where you want to render some (possibly untrusted) HTML in your app. Probably at some point it will be possibly to lose the custom Objective C bit and use the stock React Native webview underneath.

Now that you're recommending on your README for people to use <WebView>, does that mean that the differences you've mentioned above no longer apply?

The bundled webview can't do those things out of the box but it's now got the capability to add them fairly easily I think. And since including a library that adds native code is a pain I think it's probably worth doing that. I might re-release this library as a wrapper round the built in WebView sometime soon.

@almost Slightly tangential question stemming from my not understanding the RN security model: what's the worst that could happen if you execute untrusted JS within this module? Is it that the scripts within the page would run in the same environment as your RN code?
If so, in general, what's the harm in running arbitrary JS within a RN webview? How would that be any more dangerous than navigating to a malicious page in Safari?

The rest of the app should be safe from any code running within a webview, there's no way for the webview to communicate with the RN code outside unless you build it. However, often even allowing the attacker to take complete control of the webview could be bad, you may be allowing the webview to communicate back up with the RN app in ways you wouldn't want an attacker to have arbitrary control over. You may also be displaying the webview in such a way that an attacker with control of it could make it seem like your app was doing things (maybe asking for passwords) when in fact the code running in the webview was doing that. Finally, there are sometimes vulnerabilities found in iOS and Android, at least with web browsers the user has to actually visit the page controlled by the attacker (or a page containing an ad controlled by the attacker :( ) for something bad to happen, but depending on how you're using the webview it may be possible to force content in it remotely (for example I'm using this for an email client, so anyone can send an HTML email and have it displayed which would be very bad if there were a way of exploiting browser vulnerabilities).

Yikes, sorry for the wall of text! I need to use more paragraphs :)

@almost thanks for the rigorous response!
So to make sure I understand correctly, in summary, the only real risks to my RN app are:

the webview could mimic my app, tricking users into provided data in the malicious webview
the webview could trigger unexpected behavior in the RN app if the message-passing system I write isn't robust or limited enough
general security issues with the webview itself

Is that about right? Thanks again for that breakdown!

Yes, thanks, that's a good summary!