Does not find U2F device

Hello, I just downloaded and tried to use aws-okta 0.23.1 in order to try out the U2F MFA feature.  I am on Ubuntu 18.04 and use a Yubikey 4 key that has support for U2F and I know that it works because I have it setup as an MFA for GitHub, Google, and Okta.
Here's the output when I try:
# version
$ ./aws-okta version
aws-okta v0.23.1

# Attempting to use FIDO U2F
$ ./aws-okta  exec integration -- aws s3 ls
INFO[0001] Requesting MFA. Please complete two-factor authentication with your second device
INFO[0001] Select a MFA from the following list
INFO[0001] 0: GOOGLE (token:software:totp)
INFO[0001] 1: FIDO (u2f)
Select MFA method: 1

getting creds via SAML: no U2F devices found. device might not be plugged in

# With Debugging enabled
./aws-okta -d  exec integration -- aws s3 ls
DEBU[0000] Parsing config file /home/habanero/.aws/config
DEBU[0000] Using KrItemPerSessionStore
DEBU[0000] cache get `integration session<PHONE_NUMBER>12937861)`: expired
DEBU[0000] Using aws_saml_url from profile integration: home/amazon_aws/00lkjhasdhjklasd78/777
DEBU[0000] using okta provider
DEBU[0000] domain: opengov.okta.com
DEBU[0000] Failed to reuse session token, starting flow from start
DEBU[0000] Step: 1
DEBU[0001] Step: 2
INFO[0001] Requesting MFA. Please complete two-factor authentication with your second device
DEBU[0001] MFAConfig: {  phone1}
INFO[0001] Select a MFA from the following list
INFO[0001] 0: GOOGLE (token:software:totp)
INFO[0001] 1: FIDO (u2f)
Select MFA method: 1

DEBU[0009] Okta Factor Provider: FIDO
DEBU[0009] Okta Factor ID: kjhgasd789SAKhjgasd
DEBU[0009] Okta Factor Type: u2f
DEBU[0010] FIDO U2F Details:
DEBU[0010]   ChallengeNonce: 0AJBNASKHG_ASHGJASDAs098
DEBU[0010]   AppId: https://opengov.okta.com
DEBU[0010]   CredentialId: VkljhasdA78989012--JKHGSADIYUASD-pOIUOIUSDAHAOI-aslujhdioasd9ASDSDh-ALKSJh89yu231lejbLASJKH89
DEBU[0010]   StateToken: 00lq7oDAlJtVeSdoXgKsibJBJJoeBDzO0qCSG5wySP
getting creds via SAML: no U2F devices found. device might not be plugged in

https://github.com/segmentio/aws-okta/pull/201#issue-311492389 mentions the HID library might be a little flaky. I wonder if @a6sondhi  has any more details.

@switj should have more context on this

I can +1 to this.
In my case it's Ubuntu 19.04 (kernel 5.0.0-27-generic)

Same issue here with Yubikey 4, (kernel .2.11-1-MANJARO), here's my output from ykman:
Device type: YubiKey 4
Serial number: XXXXX
Firmware version: 4.3.1
Enabled USB interfaces: OTP+FIDO+CCID
Applications
OTP         Enabled
FIDO U2F    Enabled
OpenPGP     Enabled
PIV         Enabled
OATH        Enabled
FIDO2       Not available

https://github.com/marshallbrekka/go-u2fhost/pull/5/files just landed, I wonder if it fixes things

Not sure @edulop91 . Just rebuilt the project locally using the new version of go-u2fhost and still get the same flow...


[AF-543 Integrate Perspective Editor on Library Structure]

Childs:
https://github.com/AppFormer/uberfire/pull/765
https://github.com/kiegroup/kie-wb-distributions/pull/546


fix requirements by using git+ and apply precommit

It needs to be 'git+' to download from repository.
Apply pre-commit

Thanks for noticing! I’ve already corrected this though, so if you can confirm that the current main works for you I’ll close the PR.

Thanks for noticing! I’ve already corrected this though, so if you can confirm that the current main works for you I’ll close the PR.

Oh you just fixed it! Sure, it is ok to close this PR :)


Migrating form fasttext

Since after upgradin to spaCy 3.8, I needed to upgrade to Numpy 2.0, I am now unable to use FastText so I explored your library.
I ran into issues a few of the sentences in my test suite:

Are you Dominant -> French has the highest confidence
😀 Power 𐐀 is our gooal my ninja -> German has the highest confidence
El concepto que originó la creación de Pokémon, y por ende de rojo y azul, surgió a raíz del pasatiempo que Satoshi Tajiri. French detected with a confidence of 0.36 and English with a confidence of 0.344

I realize these text are relatively short but I would still think these examples are sufficiently clearly English. Is there anything in terms of configuration I can do here?
here is the relevant code:
class LangDetection:
    def __init__(self):
        languages = [Language.ENGLISH, Language.FRENCH, Language.GERMAN]
        self.model = (
            LanguageDetectorBuilder.from_languages(*languages)
            .with_preloaded_language_models()
            .build()
        )

    def predict_lang(self, text):
        confidence_values = self.model.compute_language_confidence_values(text)

        result = []
        for confidence in confidence_values:
            if confidence.value < 0.3:
                break

            result.append(str(confidence.language.iso_code_639_1)[-2:].lower())

        return result

How is your third example supposed to be English? I don't see any English word in there. It looks like Spanish, actually. Your second example contains a spelling mistake which confuses the statistical algorithm.
Statistical approaches to language recognition are never 100 % correct. The sum of ngram probabilities for the returned language is simply greater than the sum of ngram probabilities for the language you expect. There is nothing that you can configure here except for the list of languages you want to take into the mix. If you include Spanish when building the detector, I'm sure it will return Spanish for your third example sentence.

Thank you for your feedback.
My application currently supports 3 languages, so my goal is to be able to detect if its one of those 3 or none of those three. But given your response, I should then deploy the model with support for as many languages as possible.
As for the issue with the typo, this was intentional since I do deal with text written by humans that may contain typos.
I guess FastText is simply really stellar with shorter text. Your algorithm does work really well for longer text. Also the ability to detect languages in subsections is really interesting.


SDL Parsing

sdl: parse and generate manifest, deploy groups
cmd/common: add RunForever
manifest: define in types/, refactor server.

Pull Request Test Coverage Report for Build 346

200 of 279 (71.68%)  changed or added relevant lines in 8 files are covered.
4 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.7%) to 64.886%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

manifest/marshal.go
9
11
81.82%

sdl/sdl.go
9
11
81.82%

cmd/akash/provider.go
0
3
0.0%

manifest/client.go
21
27
77.78%

cmd/common/signal.go
0
12
0.0%

cmd/akash/deployment.go
3
20
15.0%

sdl/v1.go
111
129
86.05%

manifest/server.go
47
66
71.21%

Files with Coverage Reduction
New Missed Lines
%

cmd/akash/deployment.go
1
34.08%

txutil/signer.go
3
43.48%

Totals

Change from base Build 329:
0.7%

Covered Lines:
3596

Relevant Lines:
5542

💛  - Coveralls


dev-laravel-5 Fix for Model Errors

in EntrustUserTrait.php change line 38 "auth.model" to "auth.providers.users.model"
In EntrustRoleTrait.php change line 24 "auth.model" to "auth.providers.users.model"
L5.2 and Entrust really are not playing friendly, had so many bugs lately!

@Zizaco Please fix this Config::get('auth.model') in EntrustRoleTrait


Notebook jumps to top while DND cells

I couldn't repro but saw @claudiaregio repro.

On Windows
Collapse a markdown header cell with some cells near the bottom of the list
Start dragging it down
The list suddenly scrolls to the top

Dupe of https://github.com/microsoft/vscode/issues/131936, just depends on the exact scroll numbers involved


Toyota: use proper DBC for the Lexus ESH

Proper fix for #19638. Now that we have sensible Toyota DBCs, this makes sense. The 2018 Lexus ES is based on the Toyota GA-K platform, but we're using the New MC platform DBC for the ES. The diff between the GA-K and New MC DBCs is just the brake message.
@sshane can you verify this? Let's make sure we can find the behavior mentioned in #19638 and confirm it's fixed.

If you check this route for this car: 37041c500fd30100|2020-12-26--15-56-23 the BRAKE_MODULE message on 0x226 doesn't exist on bus 0. the BRAKE_MODULE message currently used however does exist works.


Add new page for QR code creation instructions

Due to the need of an instruction that's easy to understand for everyone, here's the pull request to implement a new page that includes a step by step guide on how to create QR code(s)
German:

English:

Internal Tracking ID: EXPOSUREAPP-8494

If this instructions only apply to windows machines, this should be made clear in the headline.

@Ein-Tim Right. Mac OS X (Linux should be similar) will follow in the next step.

@Ein-Tim As the guides for other operating systems are supposed to follow soon, I don't think a specification in the headline is needed, especially since people can tell by the first step's headline that it only describes the Windows way right now. I'll happily update the page as soon as I get the information for other operating systems, and will then add hyperlinks at the top to quickly get to the different operating system's descriptions and the tables.

@larswmh
For sure! Agreed! I checked the page and it LGTM!

@larswmh @Ein-Tim Thanks!


Android game rapidly loses FPS when shaded+alpha opaque 3DSprites/Planes with alpha textures, get closer to the Camera3D

Godot version
4.2.dev-5, 4.1.1_Stable
System information
Android 11 RP1A.200720.011 - Redmi Note 9 - Compatible Mobile (GLES3)
Issue description
Game loses FPS on really simple scenes, but only when Alpha/Shaded Textures (either 3DSprite or Plane with same alpha Texture) get closer to the 3D Camera.
Scene contains: 3D Camera, OmniLight with disabled shadows (They're not supported anyways yet on compability) and several 3DSprites with shaded and transparent flags enabled, or Plane meshes with the same texture and trensparency enabled.
Problem is I can have a big amout of these 3DSprites and keep normally 60FPS which is rather normal with such small resolution textures and one light source:

But when they get closer to the Camera3D, i start to rapidly lose fps, even when i leave only 4 3DSprites:

And even bit closer results in another 5FPS drop:

Disabling either shaded flag on 3DSprites, or setting transparency to disabled, results in stable 60FPS
When enabling the transparency, I've tried every option (Alpha, Alpha-scissor, Opaque-Pre pass on Plane, and Discard/Opaque pre-pass on 3DSprite) with the same result beeing low fps when closer to the Camera3D
Steps to reproduce
Minimal reproduction project is made on Godot 4.2.dev-5 version have everything except SDK libraries,

Configure exporting for android on your machine
Just run. If you have better phone than me, you can increase the number of the 3DSprites a bit.
App starts losing FPS when 3DSprites are getting closer to the camera.

Minimal reproduction project
project.zip

This is expected due to shading cost requirements increasing as sprites get closer to the camera. This is why using unshaded rendering gives you a stable 60 FPS.
If you want a stable 60 FPS without having to make materials unshaded, decrease the 3D rendering resolution by using the viewport stretch mode and a lower viewport resolution.

這是令人期待的，因為隨著精靈越來越接近相機，著色成本要求隨之增加。這就是為什麼使用無陰影渲染可穩定的 60 FPS。
如果您想要穩定的 60 FPS，而不需要使材質無遮擋，請在「viewport專案設定」中使用尺寸拉伸模式和較小的視窗（例如 720×1280）來降低 3D 渲染解析度。

I think I ran into a similar problem,
If 3D particles send particles to the camera and across the screen,
This can cause severe frame drops.
What settings should be made to avoid this problem?

This can cause severe frame drops.
What settings should be made to avoid this problem?

You have 3 options:

Reduce the amount of particles.
Cull particles if they are too close to the camera. You can use the GeometryInstance3D Visibility Range properties for this.
Reduce rendering resolution in the Project Settings. With the Forward+ or Mobile rendering methods, adjust the Scaling 3D > Scale project setting to be between 0.5 and 0.7.

This is expected due to shading cost requirements increasing as sprites get closer to the camera. This is why using unshaded rendering gives you a stable 60 FPS.
If you want a stable 60 FPS without having to make materials unshaded, decrease the 3D rendering resolution by using the viewport stretch mode and a lower window size in the Project Settings (such as 720×1280).

The shaded rendering works perfectly fine in 60FPS even when there is 30 3DSprites close to the screen. The issue inly occurs when both transparency and shaded rendering on the sprite are enabled at the same time.
I've read something about overdraw with transparent pixels, and i understand it can get heavy for rendering, but it's laggy for 4 sprites?? I don't believe it's so demanding, I am probably doing something wrong and there is a better way of optimalizing this
I would like to avoid changing rendering resolution if possible, if that will be only resort i would rather swap this whole project to 2d.

這可能會導致嚴重的丟幀。
應該做哪些設定來避免這個問題呢？

您有多種選擇：

減少顆粒量。一般來說，避免重疊的透明效果。

如果您希望視覺效果保持相似，請使用_更多的_粒子，但使用更小的紋理，從而透過完全透明的像素浪費更少的空間（或使粒子本身更小）。

如果粒子離相機太近，請剔除它們。為此，您可以使用 GeometryInstance3D Visibility Range Begin 屬性。

降低專案設定中的渲染解析度。使用 Forward+ 或 Mobile 渲染方法，將**「縮放 3D」>「縮放」**項目設定調整為 和0.5之間0.7。

OK, after my constant testing and reading the documentation, I finally found the reason.
Just turn off "Global Illumination" in "Geometry Settings" of "Particles" and the problem will be solved
Thanks

@rmichaluszek Probably a combo of mobile drivers doing badly with transparency/overdraw AND the card's fillrate

@Zireael07 Well i don't doubt that mobile is way worse than PC, but would be good to know what can i disable/change to even render 4 images without having 30fps
I'm not near my computer atm but i believe global illumination in particle settings won't be helpful for my case

Using the 3DSprite rather than Plane with transparent texture, and setting its Alpha Cut to Discard, Alpha Antialiasing to 0 makes the game run good on my android device ( 60fps with 32 3DSprites )
Thanks for help anyway!


help: fetching data from hosted nuxt server api's cors issue

📚 What are you trying to do?
I have hosted my nuxt project to vercel so it acts like a backend for my ionic app, to test the api calls I made this
const url = ref('');

const tryInternet = async () => {
    // fetch data from url and return it
    data.value = await useFetch(url.value)
        .then((res) => {
            console.log(res);
            return res.data;
        })
        .catch((e) => 'error: ' + e)
};

// this uses pug, an html preprocessor
.ion-padding
    h1 {{ data }}
    IonInput( v-model="url" placeholder="try" )
    IonButton( expand="block" @click="tryInternet" ) Get

in the server api server/api/count.js:
export default defineEventHandler((event) => {
	return { api: 'works' };
});

using it locally from the same server localhost:3000 works fine:

when I tried hosting it to a backend and retrieving the data from localhost:3000 requesting from the server this comes:

🔍 What have you tried?
I have tried the nuxt-proxy package but the issue was different, I wanted any host to be able to get data from the backend even though I knew this wasn't safe. the issue is that an ionic app doesn't have a web domain to tell the proxy to only send requests to this specific domain. so I didn't know how am I supposed to send to only my app.
ℹ Additional context
should I either send a request to only a specific domain somehow? how would I do this with nuxt ionic?
or should I make it accept requests from anywhere? and how can I tell the nuxt server to allow any server's requests?

this is how I fixed the issue to work (unsafe):
routeRules: {
    '/tabs/': { ssr: false },
    '/api/*': {
        cors: false,
        headers: { 'Access-Control-Allow-Origin': '*' },
    },
},

but is there a more safe method that I could use cors with to work with an ionic app?

@NyllRE I think Ionic apps have the domains:

capactior://localhost for iOS
and http://localhost for Android

couldn't you use those two to allow only those domains origins instead of everything

isn't this still unsafe since anyone who wants to get data from the api could just run the requests through a localhost? I need the communication between the app and the server to be secure with zero outside access to the data

cors headers are only respected by browsers anyway. anyone can bypass them easily.
please don’t think adding cors headers secures your app


Gesture controls on the desktop

Here is an initial workup for gesture controls on the desktop, currently there are a few issues.

[x] single click is implemented in a separate location and conflicts with the double click gesture
[x] other gestures (swipe down, swipe up, swipe left, swipe right, pinch, and unpinch) are not added yet
[x] minbar adds every LauncherAction instead of a select few as default
[x] no icon for OpenAppDrawer

The only other action I have added right now is opening the app drawer, but it would be easy to add more in the future. I am still unsure of how to move the single click listener to the same location as the other listeners, which would be ideal. I can add the other gestures after I figure out these issues.
The main action I want to add to LauncherActions is an action to open a specific app. Maybe the HideApps fragment could be modified to select apps. It could then get called by a launcher action to select an app to open for a specific gesture. I am still thinking about the best way to implement this.

hey man I have send you an invite to the Collaborators, plz accept, and If you have time plz add yourself into the Contributors section in the about activity in the settings

Thanks, I will work on the gestures some more and hopefully find a way to open apps from gestures.

@BennyKok the gestures are a bit touchy, it seems like they have a pretty low tolerance but they seem useful. I still need to work on the OpenApp action which is the most important. The settings page is getting really long, would it be alright if I separated the sections into different activities?

Different activity is ok，but stick to the materialpreffragment as all the
settings base on the same way.
On Mar 9, 2017 2:57 PM, "dkanada"<EMAIL_ADDRESS>wrote:
@BennyKok https://github.com/BennyKok the gestures are a bit touchy, it
seems like they have a pretty low tolerance but they seem useful. I still
need to work on the OpenApp action which is the most important. The
settings page is getting really long, would it be alright if I separated
the sections into different activities?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BennyKok/OpenLauncher/pull/20#issuecomment-285271228,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARiwQr5xsQttbzhLSE2ua_DEaUXPisM3ks5rj6LlgaJpZM4MTtXO
.

@BennyKok I added the categories, not sure how to get the category icons working yet though since they are xml files and not images. Do you prefer to use the xml files over pngs or a different format?

@dkanada let me check out your commit

hey man I am fixing some of the icon issue for you

@dkanada hey I am changing some your SettingsFramnet as I think we can use the materialpref for that settings page too

Okay, I wasn't sure if that was possible, thanks for the changes.

see the commit

The new materialpref page looks great, thanks for fixing the icons.

But now the SettingsFragment was not used, sorry for taking away your efforts on that (I should have done documentation for developer to understand what is already in the project so then can always use them to save time), and thanks for the commit.

Don't worry, I spent almost no time on the settings fragment, most of the work was trying to learn how fragments and interfaces work haha, glad I figured it out in the end though.

@dkanada have you used xmpp, me and @scoute-dich were using xmpp via the Android app Conversation to chat on this project, if you like we can create a group.

Yeah sure, I have an account already but I will need to enable my xmpp server for external communication first. Let me know your nick and I will message you so we can create a group.

<EMAIL_ADDRESS>


Add reference to a TypeScript typing definition

Also would you mind moving it under Projects using luaparse, maybe renaming it Projects using/extending luaparse, and I'll merge it.

0f course!

Perfect, thanks!

Thank you for the great parser :D


Report total metric ordering

[x] I am familiar with the contributing guidelines.
[x] Tests added.
[ ] Updates entries to docs/source/api.rst for API changes.
[ ] Adds descriptions to appropriate "what's new" file in docs/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
[x] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
[x] Maintainer: Appropriate GitHub Labels and Milestone are assigned to the Pull Request and linked Issue.

Fixes a bug where the x_labels were mixed up do to implicit sorting by the DataFrame.groupby function.
Also discovered that my test reports did not adequately cover #599 . The metrics preprocessing code suffixes names with numbers when there are duplicate forecast names, so null characters were never used. When the null values are used, the JSON.parse function chokes. due to improper encoding. Using the tojson filter here fixes that issue.
It looks like Webkit (Opera and Chrome on ubuntu) are rendering the null characters, while FireFox does not. Screenshot below.

Is there anything we can do about those null characters in webkit?

After looking around a bit, I've updated this to use the byte order mark character instead of a null byte. The character represents a zero width non-breaking space. So it doesn't take up any space and doesn't produce missing character artifacts.

ok. I forgot to ask for a what's new entry. can you add that?


Q: Use the same websocket connection in multiple asynchronous loops

I am running two loops asynchronously, and want both to have access to the same websocket connection. One function periodic_fetch() fetches some data periodically (every 60 seconds) and sends a message to the websocket if a condition is met. The other retrieve_websocket() receives messages from the websocket and perform some action if a condition is met. As of now, I connect to the websocket in both functions, but that means retrieve_websocket() will not receive the response to the websocket message sent by periodic_fetch(). How do I create one websocket connection and use the same one in both loops as they run asynchronously? My code:
# Imports
import asyncio
import websockets
from datetime import datetime

websocket_url = "wss://localhost:5000/"

# Simulate fetching some data
async def fetch_data():
    print("Fetching started")
    await asyncio.sleep(2)
    return {"data": 2}

# Receive and analyze websocket data
async def retrieve_websocket():
    async with websockets.connect(websocket_url) as ws:
        while True:
            msg = await ws.recv()
            print(msg)
            # Perform some task if condition is met

# Periodically fetch data and send messages to websocket
async def periodic_fetch():
    async with websockets.connect(websocket_url) as ws:
        while True:
            print(datetime.now())
            fetch_task = asyncio.create_task(fetch_data())
            wait_task = asyncio.create_task(asyncio.sleep(60))

            res = await fetch_task
            # Send message to websocket
            await ws.send("Websocket message")
            # Wait the remaining wait duration
            await wait_task

loop = asyncio.get_event_loop()
cors = asyncio.wait([periodic_fetch(), retrieve_websocket()])
loop.run_until_complete(cors)

Kinda sounds like an asyncio question tbh. Create the connection first, then spawn two tasks and wait for them.
async with websockets.connect(...) as ws:
    await asyncio.gather(send_loop(ws), receive_loop(ws))


gzip fonts

fonts aren't coming back gzipped

Yesssssss!

i checked this and seems that we are gzipping?
❯ curl http://static.quran.com/fonts/ttf/p100.ttf --silent -H "Accept-Encoding: gzip,deflate" --write-out "%{size_download}\n" --output /dev/null
159064

~
❯ curl http://static.quran.com/fonts/ttf/p100.ttf --silent --write-out "%{size_download}\n" --output /dev/null
159064

and from the cdn:
~
❯ curl http://quran-1f14.kxcdn.com/fonts/ttf/p1.ttf --silent --write-out "%{size_download}\n" --output /dev/null
100044

~
❯ curl http://quran-1f14.kxcdn.com/fonts/ttf/p1.ttf --silent -H "Accept-Encoding: gzip,deflate" --write-out "%{size_download}\n" --output /dev/null
100044

ah - one of our servers had the gzip config off, that probably explains what you saw @mmahalwy - i think insha'Allah we'll be good now.

cool!


Code fixes; Spelling check; static analysis fixes

Final cleanup of MAA SDK

Fixed several API changes Pallavi noticed
Fixed several typos (spelling errors)
Cleaned up static analysis errors.

All SDK Contribution checklist:

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

API changes have been detected in com.azure:azure-security-attestation. You can review API changes here
API changes
+         public Mono<String> getAttestationPolicy(AttestationType attestationType, AttestationTokenValidationOptions options)
+         public String getAttestationPolicy(AttestationType attestationType, AttestationTokenValidationOptions options)
-         public Mono<Response<AttestationResult>> attestOpenEnclaveWithResponse(BinaryData report)
-         public Mono<Response<AttestationResult>> attestSgxEnclaveWithResponse(BinaryData quote)
-         public void validate()
-         public void verify() throws InvalidKeyException, SignatureException, NoSuchAlgorithmException, NoSuchProviderException
+         public void verify() throws InvalidKeyException, SignatureException, NoSuchAlgorithmException

public AttestationAdministrationClientBuilder serviceVersion(AttestationServiceVersion serviceVersion) {

ApiView is showing that the client does not expose clientOptions. This is something we need to manually add to the buiders.
For example - https://github.com/Azure/azure-sdk-for-java/blob/b77261b1ca96ea160a50cea5d1d6248ea890f194/sdk/containerregistry/azure-containers-containerregistry/src/main/java/com/azure/containers/containerregistry/ContainerRegistryClientBuilder.java#L236

Refers to: sdk/attestation/azure-security-attestation/src/main/java/com/azure/security/attestation/AttestationAdministrationClientBuilder.java:146 in 4272111. [](commit_id = 4272111b287d1248eecd3419a70a79a6c0c2e79b, deletion_comment = False)


How to use portal to set app service auto-scaling notifications?

The prompt in the portal says: "Additional Administrator email(s)", but just get a validation on entering multiple emails (whether space, comma, or semi-colon separated). How to set multiple email addresses without using automation?

There are no "administrator" or "co-administrator" roles in subscription access control. What roles will get notified when these check boxes are used?

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

ID: 49d43b0a-97c6-7acf-fb01-75b8a9d167d9
Version Independent ID: e8e5a373-5088-bf0e-f38b-abe447ccc9ba
Content: Use autoscale actions to send email and webhook alert notifications.
Content Source: articles/monitoring-and-diagnostics/insights-autoscale-to-webhook-email.md
Service: monitoring-and-diagnostics
Product: unspecified
GitHub Login: @anirudhcavale
Microsoft Alias: ancav

@richardcox13 Thanks for the feedback. We are actively investigating and will get back to you soon.

@richardcox13 Regarding question #2:
Account Administrator, Service Administrator and Co-administrator will get notified when the checkboxes are used. Only the Owner role can be added as a Co-administrator specifically to manage  Azure Classic deployments. For steps on how to assign co-administrator to the Owner role, please review the steps HERE
@anirudhcavale , I am able to repro the issue called out in #1. I get a validation error whenever I  add a valid email to the list. Any ideas?

@richardcox13 hope my last comment was helpful. Please let me know if you have any follow up questions. If no, is it ok to close this issue?

@femila Sorry, busy firefighting a few issues that have arisen after the lift and shift.
OK, I understand  Account Administrator, Service Administrator and Co-administrators will be notified
But how to I work out who is in those positions when there are no such roles when I define access controls on the subscription? (This is all RM based.)
I'm trying to set things up so all owners on the subscription are notified of scale events (this is not helped by issues with emails are possibly getting blocked by over aggressive upstream span filtering).
(I accept it is quite possible I'm missing some element of understanding how users are managed in Azure.)

@richardcox13
Here is how to assign co-administrator role to an existing owner of the subscription via the Portal
https://docs.microsoft.com/en-us/azure/billing/billing-add-change-azure-subscription-administrator#add-or-change-co-administrator

Here is how to view which Owner(s) have been assigned co-administrator permissions via the Portal.
Login into Portal->>Subscription->>select Subscription->>Access Control (IAM)->>Enter Name (e.g. user with Owner Role)->>Check Co-admin label (as seen below)

Hope this helps.

@anirudhcavale , Regarding question 1, I can consistently repro the email validation error while trying to add emails addresses (as shown). Any ideas?
https://user-images.githubusercontent.com/34327711/40692036-4531f140-6364-11e8-8bb7-61ac8ddccd3c.png

Adding @vgorbenko who owns the UX for this. Vitaly, can you take a look at this, it looks like a bug. We should be able to accept multiple email addresses.

Wrt question 1: The prompt in the portal says: "Additional Administrator email(s)", but just get a validation on entering multiple emails (whether space, comma, or semi-colon separated). How to set multiple email addresses without using automation?
It's semi-colon delimited. There is no need to append a semi-colon at the end of the very last email. Example below show multiple emails

If you append a semi-colon at the end of email. It will report error.  e.g.

Also, avoid leaving empty space between emails. Enter the following will also report error. E.g.
<EMAIL_ADDRESS><EMAIL_ADDRESS>will report error as well.
Patrick

The ability to have a space after the semi-colon separators would be 1. much easier to read, 2. me consistent with typical multiple email entry (eg. email clients).

#please-close


Database Migration fails for Create Permission when we run with the latest code.

If we checkout the latest code and try to create a new setup, it fails with the following error:

"Access to undeclared static property $Spatie\Permission\PermissionRegistrar::$pivotPermission"
This is because of the following line  in the database/migrations/2022_06_09_185929_create_permission_tables.php file.
The issue is due to the updated PermissionProvider library but the migration is using the old api's.
One suggested solution is to regenerate the migration: See https://github.com/spatie/laravel-permission/discussions/2576#discussioncomment-8417545
I haven't tried it.
For now the easiest workaround I found was the following:

Checkout dc9c8fef599c22e5abd5c5402510f953a17dae7a
Run composer install
Run php artisan key:generate
Update the .env file
Run php artisan migrate
Run php artisan db:seed --class=AdminSeeder
Pull the latest
Rerun composer install

Hi team,
Is their any update on this issue?

fixed


backward.hpp does not detect x86 architecture for clang compiler

When I build using clang (from clion) on a 64-bit mac I get the following error message:
backward-cpp/backward.hpp:2093:3: warning: ":/ sorry, ain't know no nothing none not of your architecture!" [-W#warnings]`
#       warning ":/ sorry, ain't know no nothing none not of your architecture!"
        ^

Looking at the code, it looks like #ifdef REG_RIP // x86_64 is not defined for my architecture, and it probably shouldn't be. That's not a compiler-defined preprocessor value for x86 architecture, but __x86_64__ is

Yes, but we really want REG_RIP to be defined. The error address is architecture specific. Perhaps you can find a way to extract the error address from the context with a different macro?


Fix Runtime errors while running the unit tests

This PR gets rid of the annoying RuntimeErrors while running the unit tests. The errors were like the one shown below
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/log.py", line 88, in callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/log.py", line 73, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
--- <exception caught here> ---
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
    why = selectable.doRead()
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 215, in doRead
    return self._dataReceived(data)
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 221, in _dataReceived
    rval = self.protocol.dataReceived(data)
  File "/usr/local/lib/python2.7/dist-packages/twisted/protocols/basic.py", line 578, in dataReceived
    why = self.rawDataReceived(data)
  File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 520, in rawDataReceived
    self.handleResponseEnd()
  File "/usr/local/lib/python2.7/dist-packages/twisted/web/proxy.py", line 88, in handleResponseEnd
    self.father.finish()
  File "/usr/local/lib/python2.7/dist-packages/twisted/web/http.py", line 929, in finish
    "Request.finish called on a request after its connection was lost; "
exceptions.RuntimeError: Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.

Closed in favor of https://github.com/scrapinghub/splash/pull/308. Thanks @andresp99999!


Not compatible with Asirem Theme

This extension need maybe some compatibility with Asirem Theme

The same glitch for default theme 1.8.1


⚠ Text Filter API Endpoint has degraded performance

In a0e1116, Text Filter API Endpoint (http://textfilter.roblox.com/) experienced degraded performance:

HTTP code: 200
Response time: 5049 ms

Resolved: Text Filter API Endpoint performance has improved in 4dfeec3.


Fix slowness on: test-fixture/parse-emit/statement/from-clause/join/rhs-parenthesized-join-long.txt

Takes 3s on Travis CI, 1.5s on local machine.
https://github.com/AnyhowStep/sql-compiler/blob/005bc56a92735fe7fdd5c74c6c5864b175b2b7b4/test-fixture/parse-emit/statement/from-clause/join/rhs-parenthesized-join-long.txt

Surprisingly, when I strip away all the test code, the actual parsing only takes 253ms
When I use a new parser I wrote from scratch, it takes 28ms


fix: typo infinite instead of ininite

Hello! I found a typo while reading the documentation.

:tada: This PR is included in version 3.2.0-beta.35 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Trivial spelling/hyphenation fixes around auto-generated self-signed …

…certificate messages/descriptions.

Sorry for a nitpic, but It's a bit silly to have bad English in some of these messages as they are printed on initial boot of the WildFly server and are the first log that users see. No need for Jira.

 Generally, we try not to reference Java classes in log messages, but then that affects other instances so it's going down the rabbit hole...

I'm not a native English speaker, but the use of self-signed certificates is pretty common and familiar, isn't it? I don't really see an issue here, but I'm not opposed to the changes, is just it sounds fine to me as it is; it is familiar and understandable.
About the Keystore wording, I'm not familiar with the rules we have regarding the messages, although I could assume we can be quite flexible too. So in any case, don't take this feedback as a strong opinion. From my point of view, replacing them with KeyStore looks fine.
In any case, I've requested @darranl review, for getting his point of view, so I'll defer the decision to him.

I'm not a native English speaker, but the use of self-signed certificates is pretty common and familiar, isn't it?

The "self-signed" is the correct spelling (https://en.wikipedia.org/wiki/Self-signed_certificate)

I don't really see an issue here, but I'm not opposed to the changes, is just it sounds fine to me as it is; it is familiar and understandable.

Au contraire, I have never seen it misspelt outside of WildFly.

About the Keystore wording, I'm not familiar with the rules we have regarding the messages, although I could assume we can be quite flexible too. So in any case, don't take this feedback as a strong opinion. From my point of view, replacing them with KeyStore looks fine.

I agree - we are flexible, but we should be consistent.

In any case, I've requested @darranl review, for getting his point of view, so I'll defer the decision to him.

Perfect.

Yes, the "self-signed" is the correct spelling (https://en.wikipedia.org/wiki/Self-signed_certificate)

Upps, sorry Rado, somehow my brain processed the diff on the reversed side 🤦♂

Yes, the "self-signed" is the correct spelling (https://en.wikipedia.org/wiki/Self-signed_certificate)

Upps, sorry Rado, somehow my brain processed the diff on the reversed side 🤦♂

Haha, no worries :-)

Thanks @rhusar


chore(merge-back): 2.23.0

See CHANGELOG

AWS CodeBuild CI Report

CodeBuild project: githubautobuild-for-cdk-v2
Commit ID: 38319ae278f5cedaab7427c5acd0d23ec00f2227
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


🐛 iOS example app does not want to start

Prerequisites

[X] I checked the documentation and FAQ without finding a solution
[X] I checked to make sure that this issue has not already been filed

Expected Behavior
Typing react-native run-ios should run ios version of example
Current Behavior
react-native run-ios
(node:72636) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
info Found Xcode workspace "BlePlxExample.xcworkspace"
info Found booted iPhone SE (3rd generation)
info Building (using "xcodebuild -workspace BlePlxExample.xcworkspace -configuration Debug -scheme BlePlxExample -destination id=E1C57F89-CC46-45AC-B921-E496563DFA33")
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
error Failed to build ios project. "xcodebuild" exited with error code '65'. To debug build logs further, consider building your app with Xcode.app, by opening 'BlePlxExample.xcworkspace'.
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace BlePlxExample.xcworkspace -configuration Debug -scheme BlePlxExample -destination id=E1C57F89-CC46-45AC-B921-E496563DFA33
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Library version
3.2.0
Device
iOS
Environment info
---

Steps to reproduce

git clone latest version
npm install in main folder
npm install in example folder
pod install in example/ios
npm run ios

Formatted code sample or link to a repository
https://github.com/dotintent/react-native-ble-plx

Relevant log output
react-native run-ios
(node:72636) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
info Found Xcode workspace "BlePlxExample.xcworkspace"
info Found booted iPhone SE (3rd generation)
info Building (using "xcodebuild -workspace BlePlxExample.xcworkspace -configuration Debug -scheme BlePlxExample -destination id=E1C57F89-CC46-45AC-B921-E496563DFA33")

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

error Failed to build ios project. "xcodebuild" exited with error code '65'. To debug build logs further, consider building your app with Xcode.app, by opening 'BlePlxExample.xcworkspace'.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace BlePlxExample.xcworkspace -configuration Debug -scheme BlePlxExample -destination id=E1C57F89-CC46-45AC-B921-E496563DFA33

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Prepare packages

ComputeTargetDependencyGraph
...

The following build commands failed:
	PhaseScriptExecution [CP-User]\ [Hermes]\ Replace\ Hermes\ for\ the\ right\ configuration,\ if\ needed /Users/kszewczyk/Library/Developer/Xcode/DerivedData/BlePlxExample-euyuystoqfprngeuczkyqazkryyq/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E00015930.sh (in target 'hermes-engine' from project 'Pods')
(1 failure)

Additional information
No response

Thanks for bringing this to our attention. We'll look into it as soon as we get the chance 🙏


Support grouping of content element in the page editor using a div

Describe the bug
Adding div elements in source code but they get removed after exiting the editor
Steps To Reproduce
Steps to reproduce the behavior:

Edit page
Add <div id="div-disappears"> before paragraphs and </div> after paragraphs
Save
Go back in and div is gone

Expected behavior
Would expect the div to remain
Your Configuration (please complete the following information):

V22.0

7

Nginx/Apache

tried in FF and Chrome Browsers

Additional context
Also tried putting paragraph tag instead of div tag to contain all the other elements but that was getting removed as well....sorta. It would end the opening paragraph tag, then have all the other content, then have additional paragraph tag at the end. It was also renaming my ID when doing it with the paragraph element.
Trying to section content for reusing sections of a page in other pages as described here:
https://www.bookstackapp.com/docs/user/reusing-page-content/

It seems to me the WSIWYG way of grouping would be via Header levels.  If you could somehow pick a header level to imbed within another page via tag/id and have it include everything until the next superior header that would be ideal.
Example:
H1
H2
H3
H2
H3
H1
If I were to embed from the first H1, it would include up to but not including the next H1, but if I embed the first H2 it would embed up to but not including the next H2

@ssddanbrown - Are there any plans to add the above suggestion as a feature please? Thanks.


"Know Yourself" - identity ebook

The goal for this issues is to curate and publish a 25-50 Page ebook on the subject of "Identity" as it relates  to the decentralized ecosystem at large.
The goal would be Jan 2018, and it would curate all of the interviews, videos and work studies to answer the "why is owning your identity important"  so that we can position RChain as a thought leader in the space.

We need to start by defining the Domain. This should result in an outline of the most basic elements leading to generic use cases.

We can have a general broad view of identity, but are we focusing on the following: "Generally, personal identity is the unique numerical identity of a person in the course of time.[2][3] That is, the necessary and sufficient conditions under which a person at one time and a person at another time can be said to be the same person, persisting through time;"

Thanks Patrick - I look forward to this project. Have made some comments.
On Wed, Sep 13, 2017 at 11:56 AM, patrick727<EMAIL_ADDRESS>wrote:

Assigned #98 https://github.com/rchain/Members/issues/98 to @Ken-dahl
https://github.com/ken-dahl.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/rchain/Members/issues/98#event-1247770748, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AaCFaQHYHdLjta4YjBFDNvbhtfxs0lGiks5siBdHgaJpZM4PWeT3
.

--
Kendall Williams
Divvy DAO Ltd.
Proven Secure Solutions, Inc.
office:<PHONE_NUMBER>
Cell:<PHONE_NUMBER>
<EMAIL_ADDRESS>Confidentiality Statement:
This email/fax, including attachments, may include confidential and/or
proprietary information and may be used only by the person or entity to
which it is addressed. If the reader of this email/fax is not the intended
recipient or his or her agent, the reader is hereby notified that any
dissemination, distribution or copying of this email/fax is prohibited. If
you have received this email/fax in error, please notify the sender by
replying to this message and deleting this email or destroying this
facsimile immediately.

@Ken-dahl yes thank you too. We can start with an outline if you'd like, Maybe look for some examples of other ebooks for blockchain, identity etc.

We need to have a Zoom meeting with all the participants to clarify what exactly is expected for this issue. Patrick could you set that up?

@Ken-dahl good idea, thanks for checking back in on this. I believe that the traditional identity meetings are held Saturdays at 11AM EDT, we could chat about it then?

Are you referring to Jim's BYOID work study? If so I think that takes place
in Jim's Zoom room, yes? That would work for me.
On Mon, Oct 16, 2017 at 10:55 AM, patrick727<EMAIL_ADDRESS>wrote:

@Ken-dahl https://github.com/ken-dahl good idea, thanks for checking
back in on this. I believe that the traditional identity meetings are held
Saturdays at 11AM EDT, we could chat about it then?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rchain/Members/issues/98#issuecomment-336951298, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AaCFaa-dh6Kax99EPPmyyOsfwm6TwI4Pks5ss4qMgaJpZM4PWeT3
.

--
Kendall Williams
Divvy DAO Ltd.
Proven Secure Solutions, Inc.
office:<PHONE_NUMBER>
Cell:<PHONE_NUMBER>
<EMAIL_ADDRESS>Confidentiality Statement:
This email/fax, including attachments, may include confidential and/or
proprietary information and may be used only by the person or entity to
which it is addressed. If the reader of this email/fax is not the intended
recipient or his or her agent, the reader is hereby notified that any
dissemination, distribution or copying of this email/fax is prohibited. If
you have received this email/fax in error, please notify the sender by
replying to this message and deleting this email or destroying this
facsimile immediately.

Ok @Ken-dahl would you please send a calendar invite and i'll make an announcement in the channels.
Cheers

Agenda item:
-Create an outline of the themes and chapters,
-Assign roles and next milestone
-Assign budget

Hi Patrick - I think I made the invitations correctly in Google Calendar. I
invited you as well , so please look for the invitation and confirm that I
have done this correctly.
Thank you,
On Tue, Oct 17, 2017 at 9:23 AM, patrick727<EMAIL_ADDRESS>wrote:

Ok @Ken-dahl https://github.com/ken-dahl would you please send a
calendar invite and i'll make an announcement in the channels.
Cheers
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rchain/Members/issues/98#issuecomment-337264854, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AaCFaWcOn_TtIOlLhA263exDbIo0mbReks5stMZUgaJpZM4PWeT3
.

--
Kendall Williams
Divvy DAO Ltd.
Proven Secure Solutions, Inc.
office:<PHONE_NUMBER>
Cell:<PHONE_NUMBER>
<EMAIL_ADDRESS>Confidentiality Statement:
This email/fax, including attachments, may include confidential and/or
proprietary information and may be used only by the person or entity to
which it is addressed. If the reader of this email/fax is not the intended
recipient or his or her agent, the reader is hereby notified that any
dissemination, distribution or copying of this email/fax is prohibited. If
you have received this email/fax in error, please notify the sender by
replying to this message and deleting this email or destroying this
facsimile immediately.

Sketch Outline
Identity: Defines and describes identity, and various views/school of thought on identity.
Identity through the ages: Describes the evolution of human identity and means of identification from ancient times to the 21st century.
Identity and Identity management in the modern society: Examines identity and identification in the 20th to  21st century.
Identity and Identity management in trustless systems: Review of identity in trustless ecosystems eg. Blockchain and distributed ledger. Pseudonymous identity, Anonymous verification of identity, Reputation of pseudonymous identities.
The dilemma of Identity: Discusses identity theft, fake identities, false identification and attacks on identity systems eg. Sybil attacks.
Managing your identity: Discusses why one should own and manage an identity, managing an identity, preventing identity attacks like identity theft etc.
Conclusion

Oops, did I accidentally close the issue? Only deleted a draft comment that had sat for several days.

Hey guys im closing this issue because I have itemized everything into the "Identity" project
https://github.com/rchain/Members/projects/3


Spring Cloud Zuul behind Azure B2C, could not obtain access token.

I've been working on this for months now. I think I am really close.
My Goal: Use a Zuul gateway to serve micro services. Put a OAuth2 filter on the Zuul gateway to protect micro services. The OAuth2 provider is Azure B2C.
I think I am using OIDC and JWT. All my Zuul and services are run on the same machine, different ports.
P.S. I am planning to use Spring Session or Redis to share session across all micro services if necessary.
When I send a request to my Zuul, which is localhost:8762/res/images. I got redirected to the B2C login page. After I login with my username password. I am redirected back to localhost:8762/login. with a very long code attribute. I am guessing it is either a auth_code or the JWT token. Also there is an attribute state=IuvHq6. Not sure what that is. The web page gives me status 401, could not obtain access token.
The gateway
Zuul gateway POM gist
spring cloud Edgware.SR4
spring boot starter web 1.5.13
spring cloud starter eureka 1.4.5
spring cloud starter zuul 1.4.5
spring security oauth2 2.0.15
spring security jwt 1.0.9
Zuul gateway Java configuration
@SpringBootApplication
@EnableEurekaClient // It acts as a eureka client
@EnableZuulProxy // Enable Zuul
public class ZuulgatewayApplication {
	public static void main(String[] args) {
		SpringApplication.run(ZuulgatewayApplication.class, args);
	}

}

Security configuration
@Configuration
@EnableOAuth2Sso
public class SsoSecurityConfig extends WebSecurityConfigurerAdapter {// OAuth2SsoConfigurerAdapter
																		// {
	@Override
	public void configure(HttpSecurity http) throws Exception {
		http.csrf().disable().cors().disable().logout().and().antMatcher("/**").authorizeRequests()
				.antMatchers("/index.html", "/", "/login").permitAll().anyRequest().authenticated().and()
				.csrf().disable();
	}
}

application settings gist
Eureka micro service
Eureka service POM gist
spring boot starter data rest 2.0.5
spring cloud starter netflix eureka client 2.0.1
spring boot starter web 2.0.5
spring cloud security 1.2.3
spring security oauth2 autoconfigure 2.1.1
Eureka service configuration
@SpringBootApplication
@EnableEurekaClient
public class ClusterdemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(ClusterdemoApplication.class, args);
	}
}

Res Server configuration
@Configuration
@EnableResourceServer
public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
    @Bean("resourceServerRequestMatcher")
    public RequestMatcher resources() {
        return new AntPathRequestMatcher("/images/**");
    }

    @Override
    public void configure(final HttpSecurity http) throws Exception {
        http
            .requestMatcher(resources()).authorizeRequests()
            .anyRequest().authenticated();
    }
}

the RESTful API
@RestController
@RequestMapping("/")
public class HomeController {
	@Autowired
	private Environment env;

	@RequestMapping("/")  //use with context-path
	// @RequestMapping("/images")
	public List<Image> getImages() {
		List<Image> images = Arrays.asList(
			new Image(1, "Treehouse of Horror V", "https://www.imdb.com/title/tt0096697/mediaviewer/rm3842005760"),
			new Image(2, "The Town", "https://www.imdb.com/title/tt0096697/mediaviewer/rm3698134272"),
			new Image(3, "The Last Traction Hero", "https://www.imdb.com/title/tt0096697/mediaviewer/rm1445594112"));
		return images;
	}
}

application configuration  gist
Eureka server
Eureka server POM  gist
spring boot starter web 2.0.5
spring cloud starter netflix eureka server 2.0.1
Eureka server configuration
@SpringBootApplication
@EnableEurekaServer
public class ClusterdemoApplication {
  public static void main(String[] args) {
    SpringApplication.run(ClusterdemoApplication.class, args);
  }
}

application yml
spring:
  application:
    name: eureka-server
server:
  port: 8761
eureka:
  client:
    registerWithEureka: false
    fetchRegistry: false

Testing Flow:

send request to Zuul gateway. GET http://localhost:8762/res/images
redirected to B2C login screen
login
expected result: display a json of image links
test result: redirect to micro service http://localhost:8762/login, with Could not obtain access token error

a full sample of result URL
http://localhost:8762/login?state=3kJ31R&code=eyJraWQiOiJjcGltY29yZV8wOTI1MjAxNSIsInZlciI6IjEuMCIsInppcCI6IkRlZmxhdGUiLCJzZXIiOiIxLjAifQ..5ofS501Kavlbcrtn.c0Wq9m7ZQVwewQD1a_cmnTz4UhvNA50kqGSsF6UOTYhUvMVBv5qsNmHLkqopxQKbNhKImqUDNLqA7t8qgEYIN59juuFCou0kUkDDFmNspSYCLCebhIEeu9EgkCcUH-cqeVom4LjIJyw9QdeHcz8c-89ryLOz1zD9ISS-xGhHHt1DHd8cwtfy-WiVFOaFsvt2L-kSU8iA_cGY4ikT9rf5NdnZ5DSJjvRfNCZnsuKn6dS21McV-M9W1q3Ndyna2Gzf6xldj1SYACb-TxGG-lcOJWnlyf-U2SzZOK_F-r41ZHwxT1cw2iyFHr8qrCaaNRWGJstQ4c2Bs9Vsx0eIi9t_7JXhr4OqfnwAL7vqxlX8pIpaSgAbpQpEa3O7Y0ScNUKXr9HvNpVx9w--ebhkfdjYdBo0QE3RwB3jbKl0u-QGwRqNNUzMO1-DGd_tLhPeX-yLEFMsRSQhQCaeaNT_ZRdmyf63NsGxaOxSEpf3Z0eKJCY0A5knTHmH2A.7BkuNnBwxVL237E6vqMeAw

output from zuul gateway debug console
2018-12-06 16:14:18.134 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 1 of 11 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'
2018-12-06 16:14:18.135 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 2 of 11 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
2018-12-06 16:14:18.138 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 3 of 11 in additional filter chain; firing Filter: 'HeaderWriterFilter'
2018-12-06 16:14:18.138 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 4 of 11 in additional filter chain; firing Filter: 'LogoutFilter'
2018-12-06 16:14:18.139 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 5 of 11 in additional filter chain; firing Filter: 'OAuth2ClientAuthenticationProcessingFilter'
2018-12-06 16:14:18.139 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 6 of 11 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
2018-12-06 16:14:18.139 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 7 of 11 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
2018-12-06 16:14:18.140 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 8 of 11 in additional filter chain; firing Filter: 'AnonymousAuthenticationFilter'
2018-12-06 16:14:18.141 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 9 of 11 in additional filter chain; firing Filter: 'SessionManagementFilter'
2018-12-06 16:14:18.142 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 10 of 11 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
2018-12-06 16:14:18.142 DEBUG 7856 --- [nio-8762-exec-1] o.s.security.web.FilterChainProxy        : /res/images at position 11 of 11 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
2018-12-06 16:14:18.169 DEBUG 7856 --- [nio-8762-exec-2] o.s.security.web.FilterChainProxy        : /login at position 1 of 11 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'
2018-12-06 16:14:18.169 DEBUG 7856 --- [nio-8762-exec-2] o.s.security.web.FilterChainProxy        : /login at position 2 of 11 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
2018-12-06 16:14:18.169 DEBUG 7856 --- [nio-8762-exec-2] o.s.security.web.FilterChainProxy        : /login at position 3 of 11 in additional filter chain; firing Filter: 'HeaderWriterFilter'
2018-12-06 16:14:18.169 DEBUG 7856 --- [nio-8762-exec-2] o.s.security.web.FilterChainProxy        : /login at position 4 of 11 in additional filter chain; firing Filter: 'LogoutFilter'
2018-12-06 16:14:18.169 DEBUG 7856 --- [nio-8762-exec-2] o.s.security.web.FilterChainProxy        : /login at position 5 of 11 in additional filter chain; firing Filter: 'OAuth2ClientAuthenticationProcessingFilter'
2018-12-06 16:14:26.766 DEBUG 7856 --- [nio-8762-exec-3] o.s.security.web.FilterChainProxy        : /login?state=3kJ31R&code=eyJraWQiOiJjcGltY29yZV8wOTI1MjAxNSIsInZlciI6IjEuMCIsInppcCI6IkRlZmxhdGUiLCJzZXIiOiIxLjAifQ..5ofS501Kavlbcrtn.c0Wq9m7ZQVwewQD1a_cmnTz4UhvNA50kqGSsF6UOTYhUvMVBv5qsNmHLkqopxQKbNhKImqUDNLqA7t8qgEYIN59juuFCou0kUkDDFmNspSYCLCebhIEeu9EgkCcUH-cqeVom4LjIJyw9QdeHcz8c-89ryLOz1zD9ISS-xGhHHt1DHd8cwtfy-WiVFOaFsvt2L-kSU8iA_cGY4ikT9rf5NdnZ5DSJjvRfNCZnsuKn6dS21McV-M9W1q3Ndyna2Gzf6xldj1SYACb-TxGG-lcOJWnlyf-U2SzZOK_F-r41ZHwxT1cw2iyFHr8qrCaaNRWGJstQ4c2Bs9Vsx0eIi9t_7JXhr4OqfnwAL7vqxlX8pIpaSgAbpQpEa3O7Y0ScNUKXr9HvNpVx9w--ebhkfdjYdBo0QE3RwB3jbKl0u-QGwRqNNUzMO1-DGd_tLhPeX-yLEFMsRSQhQCaeaNT_ZRdmyf63NsGxaOxSEpf3Z0eKJCY0A5knTHmH2A.7BkuNnBwxVL237E6vqMeAw at position 1 of 11 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'
2018-12-06 16:14:26.767 DEBUG 7856 --- [nio-8762-exec-3] o.s.security.web.FilterChainProxy        : /login?state=3kJ31R&code=eyJraWQiOiJjcGltY29yZV8wOTI1MjAxNSIsInZlciI6IjEuMCIsInppcCI6IkRlZmxhdGUiLCJzZXIiOiIxLjAifQ..5ofS501Kavlbcrtn.c0Wq9m7ZQVwewQD1a_cmnTz4UhvNA50kqGSsF6UOTYhUvMVBv5qsNmHLkqopxQKbNhKImqUDNLqA7t8qgEYIN59juuFCou0kUkDDFmNspSYCLCebhIEeu9EgkCcUH-cqeVom4LjIJyw9QdeHcz8c-89ryLOz1zD9ISS-xGhHHt1DHd8cwtfy-WiVFOaFsvt2L-kSU8iA_cGY4ikT9rf5NdnZ5DSJjvRfNCZnsuKn6dS21McV-M9W1q3Ndyna2Gzf6xldj1SYACb-TxGG-lcOJWnlyf-U2SzZOK_F-r41ZHwxT1cw2iyFHr8qrCaaNRWGJstQ4c2Bs9Vsx0eIi9t_7JXhr4OqfnwAL7vqxlX8pIpaSgAbpQpEa3O7Y0ScNUKXr9HvNpVx9w--ebhkfdjYdBo0QE3RwB3jbKl0u-QGwRqNNUzMO1-DGd_tLhPeX-yLEFMsRSQhQCaeaNT_ZRdmyf63NsGxaOxSEpf3Z0eKJCY0A5knTHmH2A.7BkuNnBwxVL237E6vqMeAw at position 2 of 11 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
2018-12-06 16:14:26.767 DEBUG 7856 --- [nio-8762-exec-3] o.s.security.web.FilterChainProxy        : /login?state=3kJ31R&code=eyJraWQiOiJjcGltY29yZV8wOTI1MjAxNSIsInZlciI6IjEuMCIsInppcCI6IkRlZmxhdGUiLCJzZXIiOiIxLjAifQ..5ofS501Kavlbcrtn.c0Wq9m7ZQVwewQD1a_cmnTz4UhvNA50kqGSsF6UOTYhUvMVBv5qsNmHLkqopxQKbNhKImqUDNLqA7t8qgEYIN59juuFCou0kUkDDFmNspSYCLCebhIEeu9EgkCcUH-cqeVom4LjIJyw9QdeHcz8c-89ryLOz1zD9ISS-xGhHHt1DHd8cwtfy-WiVFOaFsvt2L-kSU8iA_cGY4ikT9rf5NdnZ5DSJjvRfNCZnsuKn6dS21McV-M9W1q3Ndyna2Gzf6xldj1SYACb-TxGG-lcOJWnlyf-U2SzZOK_F-r41ZHwxT1cw2iyFHr8qrCaaNRWGJstQ4c2Bs9Vsx0eIi9t_7JXhr4OqfnwAL7vqxlX8pIpaSgAbpQpEa3O7Y0ScNUKXr9HvNpVx9w--ebhkfdjYdBo0QE3RwB3jbKl0u-QGwRqNNUzMO1-DGd_tLhPeX-yLEFMsRSQhQCaeaNT_ZRdmyf63NsGxaOxSEpf3Z0eKJCY0A5knTHmH2A.7BkuNnBwxVL237E6vqMeAw at position 3 of 11 in additional filter chain; firing Filter: 'HeaderWriterFilter'
2018-12-06 16:14:26.767 DEBUG 7856 --- [nio-8762-exec-3] o.s.security.web.FilterChainProxy        : /login?state=3kJ31R&code=eyJraWQiOiJjcGltY29yZV8wOTI1MjAxNSIsInZlciI6IjEuMCIsInppcCI6IkRlZmxhdGUiLCJzZXIiOiIxLjAifQ..5ofS501Kavlbcrtn.c0Wq9m7ZQVwewQD1a_cmnTz4UhvNA50kqGSsF6UOTYhUvMVBv5qsNmHLkqopxQKbNhKImqUDNLqA7t8qgEYIN59juuFCou0kUkDDFmNspSYCLCebhIEeu9EgkCcUH-cqeVom4LjIJyw9QdeHcz8c-89ryLOz1zD9ISS-xGhHHt1DHd8cwtfy-WiVFOaFsvt2L-kSU8iA_cGY4ikT9rf5NdnZ5DSJjvRfNCZnsuKn6dS21McV-M9W1q3Ndyna2Gzf6xldj1SYACb-TxGG-lcOJWnlyf-U2SzZOK_F-r41ZHwxT1cw2iyFHr8qrCaaNRWGJstQ4c2Bs9Vsx0eIi9t_7JXhr4OqfnwAL7vqxlX8pIpaSgAbpQpEa3O7Y0ScNUKXr9HvNpVx9w--ebhkfdjYdBo0QE3RwB3jbKl0u-QGwRqNNUzMO1-DGd_tLhPeX-yLEFMsRSQhQCaeaNT_ZRdmyf63NsGxaOxSEpf3Z0eKJCY0A5knTHmH2A.7BkuNnBwxVL237E6vqMeAw at position 4 of 11 in additional filter chain; firing Filter: 'LogoutFilter'
2018-12-06 16:14:26.767 DEBUG 7856 --- [nio-8762-exec-3] o.s.security.web.FilterChainProxy        : /login?state=3kJ31R&code=eyJraWQiOiJjcGltY29yZV8wOTI1MjAxNSIsInZlciI6IjEuMCIsInppcCI6IkRlZmxhdGUiLCJzZXIiOiIxLjAifQ..5ofS501Kavlbcrtn.c0Wq9m7ZQVwewQD1a_cmnTz4UhvNA50kqGSsF6UOTYhUvMVBv5qsNmHLkqopxQKbNhKImqUDNLqA7t8qgEYIN59juuFCou0kUkDDFmNspSYCLCebhIEeu9EgkCcUH-cqeVom4LjIJyw9QdeHcz8c-89ryLOz1zD9ISS-xGhHHt1DHd8cwtfy-WiVFOaFsvt2L-kSU8iA_cGY4ikT9rf5NdnZ5DSJjvRfNCZnsuKn6dS21McV-M9W1q3Ndyna2Gzf6xldj1SYACb-TxGG-lcOJWnlyf-U2SzZOK_F-r41ZHwxT1cw2iyFHr8qrCaaNRWGJstQ4c2Bs9Vsx0eIi9t_7JXhr4OqfnwAL7vqxlX8pIpaSgAbpQpEa3O7Y0ScNUKXr9HvNpVx9w--ebhkfdjYdBo0QE3RwB3jbKl0u-QGwRqNNUzMO1-DGd_tLhPeX-yLEFMsRSQhQCaeaNT_ZRdmyf63NsGxaOxSEpf3Z0eKJCY0A5knTHmH2A.7BkuNnBwxVL237E6vqMeAw at position 5 of 11 in additional filter chain; firing Filter: 'OAuth2ClientAuthenticationProcessingFilter'

Nothing shows up on the micro service debug console.
I am guessing, the Zuul gateway didn't handle the token correctly. Therefore no access token is relay to the actually resource server. That is the micro service.
How do I fix this? what am I missing?
I've already try context-path, same error
stackoverflow link

I find out my .yml seems incorrect. If I want to use jwk. I should set prefer-token-info to true.
After I changed this. It has a class not found exception
java.lang.ClassNotFoundException: org.springframework.security.oauth2.provider.token.TokenStore
but, I can find the class in spring-security-oauth2, both 2.0.12 and 2.3.4 has it.

After trying many combination of spring boot and spring cloud. The closest one is
Spring boot 1.5.16.RELEASE + spring cloud Edgware.SR5. But this combination gives me
java.lang.ClassNotFoundException: org.springframework.security.oauth2.provider.token.RemoteTokenServices
If I try to fix it forcing spring-security-oauth2 version to 2.0.15.RELEASE. It yields
java.lang.ClassNotFoundException:  org.springframework.boot.context.properties.bind.Bindable
I finally managed to make it run, without knowing the reason. the effective POM
https://gist.github.com/maxiwu/6ed192adcfaad6866e7a3958d4ef8744
But then I decide to use SCG, spring 2.0.5 and Finchley.SR1. So that it is more consistent with the resource server.
spring cloud gateway configuration:
spring.cloud.gateway:
  routes:
  - id: test
    uri: lb://image-service
    predicates:
    - Path=/res/images/**

The final result is that the gateway is using client_id, client_secret with the auth code. Send a request to Azure B2C /token endpoint to try retrieving an access token. And got null
java.lang.IllegalStateException: Access token provider returned a null access token, which is illegal according to the contract.
	at org.springframework.security.oauth2.client.OAuth2RestTemplate.acquireAccessToken(OAuth2RestTemplate.java:223) ~[spring-security-oauth2-2.1.0.RELEASE.jar:na]
Access token provider returned a null access token, which is illegal according to the contract.

https://gist.github.com/maxiwu/420901af6e25db95ecc8583fe5975ed3 complete error log
How do I debug this?

update B2C settings in yml
security:
  basic:
    enabled: false
  oauth2:
    sso:
      loginPath: /login
    client:
      clientId: 111ddde5-38af-4c31-a540-f204d64ccc5e
      clientSecret: [protected]
      access-token-uri: https://login.microsoftonline.com/te/umediax.onmicrosoft.com/b2c_1_signinup/oauth2/v2.0/token
      user-authorization-uri: https://login.microsoftonline.com/te/umediax.onmicrosoft.com/b2c_1_signinup/oauth2/v2.0/authorize
      scope: openid
      auto-approve-scopes: true
      authorizedGrantTypes: authorization_code
      clientAuthenticationScheme: form
    resource:
      jwk:
        key-set-uri: https://login.microsoftonline.com/te/umediax.onmicrosoft.com/b2c_1_signinup/discovery/v2.0/keys
      prefer-token-info: true

Is there still an issue?

To help we need a sample to reproduce the problem.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

uploaded all three projects on my google drive
https://drive.google.com/open?id=1cMwYe6zjSWobuVQNSHN2yMp3wEEGipV8

Can you provide details of how to reproduce the problem using the sample?

yes.

start the clusterdemo project. which is the Eureka server
start the clusterdemo_client project. which is the micro service
start the zuulgateway project.

open up a browser, type in the url
http://localhost:8762/res/images
you should be redirected to Azure B2C login screen. You can register a new account and login.
after login, you will see the error screen and the code value is in the url.

I just looked at your Zuul Gateway application and actually its not even using Zuul nor is it using Spring Security, so this has nothing to do with Spring Cloud Netflix, or Spring Cloud in general.

Sorry for that late response, has been caught up with other projects.
I've revert it back to zuul + spring security + spring 1.5
https://drive.google.com/open?id=1DiI-1d3PVAzfPvn9ouaZdNI8xCpxWLTs
The Zuul and security setup are
@EnableZuulProxy with @EnableOAuth2Sso. With the application.yml which has zuul.routes properties.
Please take a look, I really want to know what I was doing wrong and want to make this setup work.

That is only zuul please provide a single zip that contains EVERYTHING I need to reproduce the issue

Glad to hear from you.
upload zip with all projects and files.
google drive


SciPy 2016 meeting

Hi folks,
A few of us got together to talk about where to take all of this. We didn't take good notes, but I thought I"d capture a gist of where we think we should head.
Attending:
@chrisbarker-NOAA
@hetland
@jay-hennen
@rsignell-usgs
Conclusions:
We should build a single high level object (that's the API of APIRUS) which users can query with a single API regardless of the underlying grid representation. This way a user can point it to a netcdf file or OpenDAP url, then see what variables rs there, and do things like ask for interpolated data at a point in space and time, get transects, etc....
Some of the core functionality is built into pyugrid an pysgrid, but it's not well organised at the moment. So, this Object (what to call it?) will be built up with via composition, so we can share code that's the same for different grids, while being able to plu in noew grid types, new interpolation algorithms, etc.
For the most part, at least in coastal and ocean modeling, the various horizontal grid types use the same schemes for time and vertical coordinates. so a complete composited object will have:

A grid object, that handles the grid
A time object that handles time
A vertical-coordiante object that handles the vertical coordinate.
A collection of "variable" objects that hold the variables themselves, and understand their relation to the other objects.

interpolation:
This will facilitate interpolation is the following manner:

a linear interpolator will, for each point (probably vectorized, but:

ask the grid object for:

the indexes of the surrounding nodes needed to interpolate to that point
the weights to apply to each of those nodes values to interpolate

ask the time object for the indexes of the time coordinate to use, and their interpolation weights
ask the vertical coordinate object for the indexes and interpolation weights

the interpolator can then slice the needed data out of the variable(s) to be interpolated, and apply the various weights to get he interpolated value.
To be decided:
I think the the top-level object should essentially represent a full dataset -- what would be in a complete netcdf file. In fact, one could use it to load a non-standards compliant dataset and re-shave it out in a standard compliant way, or create a subset, and save it out fully consistent and compliant -- that sort of thing.
But is the top-level object the key object teh user works with, or does the user work with individual variable objects? i.e:
my_dataset.interpolate( (lon, lat, depth, time), 'salinity')

or
salinity = my_dataset.variables['salinity']
salinity.interpolate((lon, lat, depth, time), 'salinity'))

I'm on the fence about this -- as you may well want multiple variables handled, it makes some sense to access it all via the data_set object and be able to ask for multiple variables at once.
on the other hand, you may have different variables in different datasets, and it would be nice to have an api where you wouldn't need to know whether those variables are in the same data set or not..
what to call it?
My first thought: star_grid (i.e *grid) -- but that's likely to make folks think it's an astronomy project.
any_grid maybe? (or py_anygrid) -- separate issue for this: #21

@cbcunc : thought you'd like to be in on this conversation.
-CHB

Was there any discussion if the base "grid" objects was going to be a subclass of xrarray.Dataset, netCDF4.Dataset, or its own object that does its own on-disk and in-memory management?

@kwilcox I believe so. If dask is available xarray will use it almost everything will be lazy loaded and chunked. Making it easier to load big data from disk and do operations with low memory.
However, the chunking is up to the user and the distributed computation is not available yet as far as I know.

OK, my vote is for xarray.Dataset, that is what I've been doing lately and it works out really well.

+1 for xarray.Dataset
It might be nice if the core dataset could also be a netCDF4.Dataset or an
np.array, and this could be done by creating 'decorator' classes so that,
e.g., dimensions were calculated in the same way. Or we could create a few
generic functions to calculate grid size, e.g., of whatever object was
supplied. These would only be called or used internally, not exposed, so
that it would work on all the common data types. This would be useful if
someone develops another datatype that we all love, and want to incorporate.
On Mon, Jul 18, 2016 at 8:13 AM, Kyle Wilcox<EMAIL_ADDRESS>wrote:

OK, my vote is for xarray.Dataset, that is what I've been doing lately
and it works out really well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_ioos_APIRUS_issues_22-23issuecomment-2D233358749&d=CwMCaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=FPERNJ38ToEXgd8OyE4aew&m=4mircUnceeQiaYQ8mEMgY2CJ75W-2tGARdhnneUXum0&s=fMXTXVSMkR0nA4F_nZ3WX6adYFLwbKY2rlIUpx1JeTE&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ACesFoGEGDVSx7DULxK6-5FivoqGfvu0-5Foks5qW5gagaJpZM4JNuzl&d=CwMCaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=FPERNJ38ToEXgd8OyE4aew&m=4mircUnceeQiaYQ8mEMgY2CJ75W-2tGARdhnneUXum0&s=hH9GP-ntxoHElwAkulsAegNShEu5_wyoX0AwRPL8wFA&e=
.

--
Prof. Rob Hetland
Texas A&M Univ.  –  Dept. of Oceanography
http://pong.tamu.edu/~rob

Bringing @pelson in here also, as we discussed this a bit as well at SciPy 2016 (and at the airport before heading home...)

BTW, @pelson is now co-leading development of Iris (Richard Hattersley left Iris to pursue other projects at the Met Office).

On Mon, Jul 18, 2016 at 7:52 AM, Kyle Wilcox<EMAIL_ADDRESS>wrote:

Was there any discussion if the base "grid" objects

Do you mean what more-or-less maps to a variable? i.e the object that
represents a field of a particular quantity? Or the whole shebang?

was going to be a subclass of xrarray.Dataset, netCDF4.Dataset, or its
own object that does its own on-disk and in-memory management?

probably not a subclass of anything. And definitely not a netCDF4.Dataset.
I'm thinking that it'll probably be its own thing, maybe with a similar API
to an xarray Dataset where applicable.
Under the hood, the raw data itself needs to be in SOME kind of array
object -- I"m hoping that can be any numpy array-like object:
numpy arrays
netCDF4 variables
dask arrays
(Filipe as almost convinced me that dask is lightweight an reliable enough
that we maybe able to require that...)
I guess I need to poke into xarray more and see how well the API maps.
I will say that netCDF4 made some "clever" API decisions that I don't
really like -- like mingling variable attributes and python object
attributes. IT's really nifty that you can do:
my_variable.units
And get the units, but then when you have a nc_attribute that isn't a legal
python identifier, or might clash with an python object attribute, it gets
ugly. So I"d rather have the simpler:
my_variable.attrs['units']
I think xarray does similar stuff in that way, too ( :-( )
The point: it would be nice to have the freedom to define our own API,
though I do see the point of matching existing APIS for use abilities sake,
too.

On Mon, Jul 18, 2016 at 8:22 AM, Rob Hetland<EMAIL_ADDRESS>wrote:

+1 for xarray.Dataset
It might be nice if the core dataset could also be a netCDF4.Dataset or an
np.array, and this could be done by creating 'decorator' classes so that,
e.g., dimensions were calculated in the same way.

hmm -- I think it not going t work to have the gridfu.Dataset Be anything
else -- i.e. subclass. but anyone is free to hack together some prototypes
and see how ti works.
I was hoping to do that at the SciPy sprints, but ended up dealing with
updating tests in pysgrid and dealing with ugly segfaults in netcdf instead
:-(
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R<PHONE_NUMBER>   voice
7600 Sand Point Way NE<PHONE_NUMBER>   fax
Seattle, WA  98115<PHONE_NUMBER>   main reception
<EMAIL_ADDRESS>

My dad pulled me in. @ChrisBarker-NOAA you can call units either way just like in pandas. These are equivalent: my_variable.attrs['units'] == my_variable.units
@ocefpaf In terms of lazy computations there is some functionality in xarray.ufuncs. I put up a little gist here: https://gist.github.com/jsignell/102c343a361a80725c83cd1db6e834b6

thanks @jsignell -- though I"d probably disable the direct attribute access if I could:
"There should be one-- and preferably only one --obvious way to do it."
But anyway, that's just one example -- the question at hand is, do we want to be locked into an API that's already been defined, or have flexibility to make it better / more suited to the problem at hand?

I don't have a good use case for this API I can think with yet. GNOME's environment.grid_property.GridProp objects are probably the best example of one of these 'higher level' objects I can think of.
To explain. a GridProp object has several key attributes:

A grid object (pysgrid or pyugrid)
A time object (gnome.environment.property.Time)
One or more variable/data object (netCDF4.Variable or numpy.array or other array-like)

The core use of these objects is to provide 'What is the value of the variable(s) at p points, at t time)'. The GridProp object uses the py*grid object to interpolate_var_to_points to get 2D interpolated values for t1, repeat for t2, and then apply the time interpolation weights from the Time object and return the interpolated results.
This is a nice and narrow use case, but is also applicable to a lot of problems. I get the impression that this is not the sort of thing we are talking about here, however.
The way I see it, netCDF4.Dataset or xarray.Dataset already provide holistic data representation/provision service. Is py_anygrid going to have the same role, but with some extra grid-specific functionality tacked on?
Sorry for the wandering in this post, but it accurately reflects my ignorance about the purpose of something like py_anygrid

My dad pulled me in. @ChrisBarker-NOAA you can call units either way just
like in pandas. These are equivalent: my_variable.attrs['units'] ==
my_variable.units

Yep. That is the way to go IMO to be friendly with those who want to
explore with tab. or write a "clear" code.

@ocefpaf In terms of lazy computations there is some functionality in
xarray.ufuncs. I put up a little gist here:
https://gist.github.com/jsignell/102c343a361a80725c83cd1db6e834b6

Nice example! I am not sure about distributed computation though.


boinc: 7.4.14 -> 7.4.42

Slight refactor and the changelog for this release can be found here:
https://boinc.berkeley.edu/trac/wiki/VersionHistory
Build and run were successful.

Unable to checkout 561fbdae0cac3be996136319828f43cbc62c9343 from git://boinc.berkeley.edu/boinc-v2.git.

Built locally, thanks.


docker not finding camera

getting error while runinng the ros docker. the camera is working in widows
running command: ros2 launch tof_ros2cpp EVAL-ADTF3175D.launch.xml
and getting
[INFO] [launch]: All log files can be found below /root/.ros/log/2024-04-02-12-56-59-040932-dor-172
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [tof_ros2cpp_node-1]: process started with pid [173]
[tof_ros2cpp_node-1] I20240402 12:56:59.083928   173 aditof_utils.cpp:105] Started camera intialization
[tof_ros2cpp_node-1] I20240402 12:56:59.084060   173 system_impl.cpp:88] SDK built with websockets version:3.1.0
[tof_ros2cpp_node-1] I20240402 12:56:59.084081   173 network_sensor_enumerator.cpp:55] Looking for sensors over network: <IP_ADDRESS>
[tof_ros2cpp_node-1] [2024/04/02 12:56:59:0882] NOTICE: Creating Vhost 'default' (serving disabled), 1 protocols, IPv6 off
[tof_ros2cpp_node-1] Server Message ::
[tof_ros2cpp_node-1] W20240402 12:56:59.093889   173 network_sensor_enumerator.cpp:60] Server Connect Failed
[tof_ros2cpp_node-1] Connection Closed
[tof_ros2cpp_node-1] W20240402 12:56:59.094705   173 aditof_utils.cpp:114] No cameras found
[ERROR] [tof_ros2cpp_node-1]: process has died [pid 173, exit code -11, cmd '/ros2_ws/install/tof_ros2cpp/lib/tof_ros2cpp/tof_ros2cpp_node ip=<IP_ADDRESS> config_file=config/config_adsd3500_adsd3100.json mode=2 --ros-args -r __node:=tof_ros2cpp'].

Hi @dorhalperinM!
The error seems to be on the connection part. Are you able to ping the <IP_ADDRESS> ip address from Docker file?

I check again and I get a successful ping within the docker to IP address <IP_ADDRESS>.

In this case I would double check if the server on the camera is running with command:
systemctl status network-gadget

After using the command systemctl status network-gadget
I got
Unit network-gadget.service could not be found.

I can't find aditof-server and there is no server folder in the path home/analog/Workspace/tof/build/apps

Please refer to: https://github.com/analogdevicesinc/ToF/tree/main/apps/server
Since this is not ros2 related issue, for any further question please open an issue on: https://github.com/analogdevicesinc/ToF/
Best reagrds,
Robert Budai


test(concurrency): test update sequencer balance in storage

This change is

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

Project coverage is 77.81%. Comparing base (c08fb69) to head (a71a83f).

Additional details and impacted files
@@                       Coverage Diff                        @@
##           meship/update_sequencer_balance    #1898   +/-   ##
================================================================
  Coverage                            77.81%   77.81%
================================================================
  Files                                   60       60
  Lines                                 8722     8722
  Branches                              8722     8722
================================================================
  Hits                                  6787     6787
  Misses                                1496     1496
  Partials                               439      439

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

crates/blockifier/src/concurrency/worker_logic_test.rs line 22 at r1 (raw file):

#[rstest]
#[case::no_overflow_zero_sequencer_value_high(Fee(50_u128), felt_to_stark_felt(&Felt252::from(100_u128)), StarkFelt::ZERO)]

Why does it matter if sequencer_value_high is zero or not?

crates/blockifier/src/concurrency/worker_logic_test.rs line 348 at r8 (raw file):

        (stark_felt_to_felt(sequencer_balance_low) + Felt252::from(actual_fee.0)).to_biguint();

    let mask = (BigUint::from(1_u8) << 128) - 1_u8;

Suggestion:
 let mask_128_bit = (BigUint::from(1_u8) << 128) - 1_u8;


Conflicting information on certificate renewal limit in app

Avoid duplicates

[X] Bug is not mentioned in the FAQ
[X] Bug affects both Android and iOS, for specific issues / questions that apply only to one operating system, please raise them in the respective repositories:

Android repository
iOS repository

[X] Bug is not already reported in another issue - ~I remember that somewhere, I think it was @MikeMcC399, mentioned this already~

Technical details

Device name: iPhone XR / Huawei P Smart 2019
iOS/Android version: iOS 16.0 / Android 10
App version: 2.23.2 / 2.23.2

Describe the bug
In the app there is conflicting information on the limit how often a certificate can be renewed.
Here in the info text it says only once:

But then, if there is an error due to the rate limit, it says 3 times:

Steps to reproduce the issue

Start the renewal process for a certificate which has already been renewed more than 3 times
See the information text
Click on "Einverstanden"
See the error text which conflicts the information text

Expected behaviour
First it needs to be clarified if one renewal is the limit or if it's possible to renew one certificate up to 3 times.
Possible Fix
Change the text.

Internal Tracking ID: EXPOSUREAPP-13423

@Ein-Tim

Bug is not already reported in another issue - I remember that somewhere, I think it was @MikeMcC399, mentioned this already

I have not reported this inconsistency anywhere else.

@Ein-Tim

I opened a new issue https://github.com/corona-warn-app/cwa-website/issues/2970 for the website

@Ein-Tim

First it needs to be clarified if one renewal is the limit or if it's possible to renew one certificate up to 3 times.

The blog is clear about this point:
"A technically expired certificate can only be renewed three times. If users have stored their certificates in the CWA on several devices, they can only renew it on three of them. However, they have the option to export the newly issued certificate as a PDF file so that they can re-scan the QR code of the certificate if needed. "

Good morning @MikeMcC399 @Ein-Tim!
Thanks for reporting, Internal Tracking ID: [EXPOSUREAPP-13423](https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-13423.
Best wishes, DS

Corona-Warn-App Open Source Team

@MikeMcC399
Thanks for clarifying & opening the other issue.
@dsarkar Thank you!

@dsarkar
I'd be happy to provide a PR for this under iOS. Let me know if this would be appreciated.

@Ein-Tim
So it seems this will be fixed in version 2.25 (which needs new label creating).

This issue has been fixed in version 2.25. I can confirm the fix. Closing.


[INDEX] add trie index type in DataSourceMeta

What changes were proposed in this pull request?
add trie index type in DataSourceMeta. add a config value of "spark.sql.oap.oindex.trie.enabled" to create permuterm index
How was this patch tested?
unit tests.

thanks @chenghao-intel , I will refine this pr tonight accordingly, and merge this before Saturday ends, so that other prs will not be blocked.


chore: update wallet.rs

Summary

Please summarize your changes, describing what they are and why they were made.

Need some fixes included in this version.
Changelog
- Increment the RC version to 20
- Added async/await to profileManager.destroy()
- Remove redundant typecast

Testing
Platforms

Please select any platforms where your changes have been tested.

Desktop

[ ] MacOS
[x] Linux
[ ] Windows

Mobile

[ ] iOS
[ ] Android

Instructions

Please describe the specific instructions, configurations, and/or test cases necessary to test and verify that your changes work as intended.

Tested general wallet functionality, including Governance actions.
Checklist

Please tick the following boxes that are relevant to your changes.

[x] I have followed the contribution guidelines for this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or modified tests that prove my changes work as intended
[ ] I have verified that new and existing unit tests pass locally with my changes
[ ] I have verified that my latest changes pass CI workflows for testing and linting
[ ] I have made corresponding changes to the documentation

1 small comment. And because of the awaiting of the profile manager, it takes a long time to log out. Maybe we should at least add some loading spinner on the logout button

Yeah, that's a bit annoying. Based on our discussions we will have to set a databaseUnlocked property on the profile store and check that before logging in. This way we don't have to add a loading screen on logout. This will come in a separate PR.


22 create test for mutate function

Requesting review for this PR. Because it laid some groundwork for the testing environment.
Will improve the mutate function to add more functionality (based on dpylr in R) in a separate issue and commit.
(current mutate implementation works but its the most basic functionality)


[BUG] Compilation of Matter library fails (Windows 10 / nRF Connect SDK 2.6.1)

Reproduction steps
Enabling the Mattery library in the nRF Connect SDK (latest, 2.6.1) causes a build step to be added to the firmware. This build step does not (and can not) function--I would suppose there's some bashism or other assumption about the environment--and results in an error.
Here's the build step which is added (copied out of a fresh project). Note the flipped path separators:
cd /D C:\projects\example\build_new\modules\connectedhomeip && C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe -E echo "Starting Matter library build in C:/projectexample/build_new/modules/connectedhomeip" && C:\ncs\toolchains\cf2149caf2\opt\bin\python.exe C:/ncs/v2.6.1/modules/lib/matter/config/common/cmake/make_gn_args.py @args.tmp > args.gn.tmp && ( C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe -E compare_files args.gn.tmp args.gn || C:/ncs/toolchains/cf2149caf2/opt/bin/cmake.exe -E rename args.gn.tmp args.gn ) && C:\ncs\toolchains\cf2149caf2\opt\bin\gn.exe --root=C:/ncs/v2.6.1/modules/lib/matter --root-target=C:/ncs/v2.6.1/modules/lib/matter/config/nrfconnect/chip-gn --dotfile=C:/ncs/v2.6.1/modules/lib/matter/config/nrfconnect/chip-gn/.gn --script-executable=C:/ncs/toolchains/cf2149caf2/opt/bin/python.exe gen --check --fail-on-unused-args C:/projects/example/build_new/modules/connectedhomeip && ninja && C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe -E echo "Matter library build complete"
The failure is here: make_gn_args.py @args.tmp > args.gn.tmp
make_gn_args.py: error: argument --arg-cflags: expected 2 arguments
Whatever @args.tmp is supposed to be expanded to, is not expanded.
Bug prevalence
100% of the time
GitHub hash of the SDK that was being used
ca3672fbb939180da8e43e6994e01c89fa9dcd02
Platform
windows
Platform Version(s)
No response
Anything else?
No response

@kraln @args.tmp is a way to workaround Windows' limitations regarding the maximum length of the command arguments. It means that the script should read the arguments from the args.tmp file.
What's strange is that we validate Windows build for nRF Connect SDK applications, so I wonder what is different in your application. Anyway, it would help if you pasted the contents of the args.tmp file in your build directory.


Feature/valet: Reservation system for RMF

This is the initial API and code for reserving locations. Eventually this code will be used for reserving resources like chargers and parking slots. The basic api can be found in rmf_traffic/include/reservations/reservation.hpp.
Additionally, for ros2 based systems a node and messages are provided in the rmf_traffic_ros2 package.
The core data structure used is an std::map which is used to sort the reservations by starting time. Upon a reservation being requested, the rmf_traffic::reservations::Implementation::is_free function is used to check if that specific reservation is available.

For finite length reservations. It performs a simple binary search to see if the starting time and ending time fall within the same time gap. It then checks the previous reservation (if it exists) to see if there is overlap. Since we can assume the previous schedule is consistent, the current schedule should also be consistent. Time complexity for this is O(logn).

For indefinite reservations we just look at the reservation with the last starting time in the map and compare if its end time is before or equal to the start time of the incoming reservation. Since we can assume the map contains a consistent schedule, therefore the item with the last starting time will also have the last ending time. This provides an O(1) lookup time.

Unit tests for the API are also provided in this PR.
Several follow-up PRs need to be added. The first PR will be related to parking. This PR will involve a small modification to the planner and loop requests so that the planner will allow for a certain waiting time. The second PR will add persistence to the reservation node so that it can be gracefully restarted.

I've created a Google Doc with an outline of the kinds of features and behaviors that I think we'll need out of the reservation system. The hope here is to make the reservation system more like the traffic system, where it can automatically adjust to the constantly changing conditions out in the field.
You'll find that the requested features and behaviors are going to add a lot of design and implementation complexity, so it's going to demand quite a bit more work for this PR.
Ultimately I think we'll want to have these following classes, each defined in their own header:

rmf_traffic::reservations::Viewer: Pure abstract interface that allows reservations to be inspected, but not modified
rmf_traffic::reservations::Writer: Pure abstract interface that allows reservations to be requested
rmf_traffic::reservations::Database: Implementation for both Viewer and Writer. This will be the backbone of the reservation node.
rmf_traffic::reservations::[Reservation|Ticket|Handle|Participant] I'm not exactly sure what to name this one, but it should be the reservation system's equivalent of the traffic schedule's Participant class.
rmf_traffic::reservations::Snapshot: The reservation system equivalent of the rmf_traffic::schedule::Snapshot class.
rmf_traffic_ros2::reservations::Node: Acts as the central authority over reservations, similar to rmf_traffic_ros2::schedule::Node and rmf_traffic_ros2::blockade::Node.  The topics that this class listens to should be parameterized so that it can be used for multiple different reservation systems.
rmf_traffic_ros2::reservations::Mirror: The reservation system equivalent of the rmf_traffic_ros2::schedule::Mirror. This allows ROS2 nodes to inspect the current reservations. It provides a snapshot feature so you can get a frozen snapshot of the current state of reservations at any time. The topics that this class listens to should be parameterized so that it can be used for multiple different reservation systems.
rmf_traffic_ros2::reservations::Writer: The reservation system equivalent of the rmf_traffic_ros2::schedule::Writer. This allows ROS2 nodes to make reservation requests. It returns rmf_traffic::reservations::Reservation objects asynchronously, after receiving a reply from the rmf_traffic::reservations::Node. The topics that this class listens to should be parameterized so that it can be used for multiple different reservation systems.

Noted. I'll spend the rest of the week and next few weeks reworking some of
these features.
On Thu, 25 Feb 2021, 17:54 Grey<EMAIL_ADDRESS>wrote:

I've created a Google Doc
https://docs.google.com/document/d/1YQkDUP-kuETGxCeXSpgHqWKEjlt4mHSutN-s9fBCkEc/edit?usp=sharing
with an outline of the kinds of features and behaviors that I think we'll
need out of the reservation system. The hope here is to make the
reservation system more like the traffic system, where it can automatically
adjust to the constantly changing conditions out in the field.
You'll find that the requested features and behaviors are going to add a
lot of design and implementation complexity, so it's going to demand quite
a bit more work for this PR.
Ultimately I think we'll want to have these following classes, each
defined in their own header:

rmf_traffic::reservations::Viewer: Pure abstract interface that
allows reservations to be inspected, but not modified
rmf_traffic::reservations::Writer: Pure abstract interface that
allows reservations to be requested
rmf_traffic::reservations::Database: Implementation for both Viewer
and Writer. This will be the backbone of the reservation node.
rmf_traffic::reservations::[Reservation|Ticket|Handle|Participant]
I'm not exactly sure what to name this one, but it should be the
reservation system's equivalent of the traffic schedule's Participant
class
https://github.com/osrf/rmf_core/blob/master/rmf_traffic/include/rmf_traffic/schedule/Participant.hpp
.
rmf_traffic::reservations::Snapshot: The reservation system
equivalent of the rmf_traffic::schedule::Snapshot
https://github.com/osrf/rmf_core/blob/master/rmf_traffic/include/rmf_traffic/schedule/Snapshot.hpp
class.
rmf_traffic_ros2::reservations::Node: Acts as the central authority
over reservations, similar to rmf_traffic_ros2::schedule::Node and
rmf_traffic_ros2::blockade::Node. The topics that this class listens
to should be parameterized so that it can be used for multiple different
reservation systems.
rmf_traffic_ros2::reservations::Mirror: The reservation system
equivalent of the rmf_traffic_ros2::schedule::Mirror. This allows ROS2
nodes to inspect the current reservations. It provides a snapshot feature
so you can get a frozen snapshot of the current state of reservations at
any time. The topics that this class listens to should be parameterized so
that it can be used for multiple different reservation systems.
rmf_traffic_ros2::reservations::Writer: The reservation system
equivalent of the rmf_traffic_ros2::schedule::Writer. This allows ROS2
nodes to make reservation requests. It returns
rmf_traffic::reservations::Reservation objects asynchronously, after
receiving a reply from the rmf_traffic::reservations::Node. The topics
that this class listens to should be parameterized so that it can be used
for multiple different reservation systems.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/osrf/rmf_core/pull/297#issuecomment-785769037, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEEMQAVIL6VWP7XURTMRI3TAYM6XANCNFSM4XVWB2EA
.

Moving to new repo.


Wiki - remove/update comment about UseApiVersioning()

In the sample code for ASP.NET Core here, there is the following line:
services.UseApiVersioning(); // required in 1.1+
If I understand the 1.2.0 release notes correctly, this comment should be updated to say something like required in >= 1.1.0 and <= 1.2.0 similar to how it is annotated here.

Good catch. Surprised no one has mentioned that before. I've actually completely removed that in the example as it's highly unlikely to be used.
In 3.0+ services.UseApiVersioning() makes a comeback, but only optionally in advanced scenarios. The only case you should ever need to use it is if you need full control over how and when the API versioning middleware gets registered.
In case you're curious, it would have to look like this in 3.0+ (again - for advanced setups only):
public void ConfigureServices( IServiceCollection services )
{
   services.AddApiVersioning(options => options.RegisterMiddleware = false);
}

public void Configure( IAppBuilder app )
{
   app.UseApiVersioning();
}

Thanks for bring this to my attention. Feel free to report any additional discrepancies. Thanks.


Segmentation fault

This font https://github.com/aliftype/reem-kufi/blob/main/ReemKufiFun.ttf causes a segmentation fault with the latest fontbakery. Because I can only set verbosity level as in which checks to print out, I don't know how to debug this. Let me know if I can be of any help.

Maybe with -n, --no-progress more of the error output is preserved, because of the way the progress bar handles output it will get confused with out of band output. Then you can maybe run:
$  export PYTHONVERBOSE=2
$ fontbakery check-googlefonts --no-progress ~/Downloads/ReemKufiFun.ttf

There are more possibly interesting environment variables for debugging cpython, have a look at $ man python.
I can't reproduce it on Linux , BTW.

Betcha it's #3718

Betcha it's https://github.com/googlefonts/fontbakery/issues/3718

If that's the case, the problem should not happen while using fontbakery from git main branch. Which version are you running, @yanone ? Latest stable or git main?

thanks!

I ran into this issue as well and like @yanone, running --force-reinstall worked to fix it.
Bit irritating, but at least it is resolved.


Fix build

The references change broke a test.  Argh github merge model.
https://travis-ci.org/ga4gh/server/builds/81605175

Fixed in #646