iOS WebMap

Hi,
It is more of a question rather than an issue.
Is there still support for Webmap in iOS? If yes, if there is sample please provide.
I was looking at https://developers.arcgis.com/ios/10-2/swift/guide/viewing-web-map.htm it refers to using AGSWebMap which I cant find.
It redirects for sample on http://www.arcgis.com/home/item.html?id=d76ed99f71e24116b324ff624a194ef9 and the URL for the repo is following but it give 404.
https://github.com/Esri/arcgis-runtime-samples-ios/tree/master/WebmapSample
Reason
Current implementation is done using AGSMapView and layer URLs are in config file and layers can be shown/hidden using. Now we need to support multiple clients and each client can have their own maps and layers, client will be determined after login. So we were thinking to load client's map using their MapId.

Hi @aliawais , I'm not quite sure about your problem. Can you try to load a webmap with its portal item ID? e.g.
let portal = AGSPortal.arcGISOnline(withLoginRequired: false)
let portalItem = AGSPortalItem(portal: portal, itemID: yourPortalItemID)
let map = AGSMap(item: portalItem)
mapView.map = map

Is portalItemId different from MapId?
Is there a complete sample using this approach and also showing/hiding available layers?

Is portalItemId different from MapId?

I think they are the same thing.

Is there a complete sample using this approach and also showing/hiding available layers?

You may take a look at

Feature collection layer (portal item)
Change sublayer visibility
Manage operational layers

for some inspirations.
AFAIK there isn't a sample that demonstrates the workflow to load multiple layers from ArcGIS Online and control their visibility. I also asked our team to see if they have suggestions.

@yo1995 thank you.
I tried using the mapId with login and without login it did not work.
I will look into the samples and hope to find something we need.

@yo1995 thank you.
I tried using the mapId with login and without login it did not work.
I will look into the samples and hope to find something we need.

Sure. Please feel free to reopen this issue if you've more questions, and I'll get you posted when I receive feedback regarding the AGSWebMap class.

@aliawais You could take a look at this sample: https://developers.arcgis.com/ios/latest/swift/sample-code/open-map-url/
That takes the URL to the item page for a web map in ArcGIS and opens it. Does that help?

As Nick indicated - In addition, consider taking a look at these 2 samples:

Open map (URL)
This sample opens 3 maps from ArcGIS Online.
Token authentication
This sample opens a portal item that requires authentication. When a resource requires login, it will prompt an alert to let you provide credentials.

Hope it helps.

Thanks @nixta  and @yo1995  will definitely have a look into these.

Thanks guys it worked: I used
let portal = AGSPortal.arcGISOnline(withLoginRequired: true)
let portalItem = AGSPortalItem(portal: portal, itemID: mapId)
let map = AGSMap(item: portalItem)
If i have the authentication token how can I avoid the popup?

@nixta  @yo1995
Hi guys,
I am loading the map using follwing:
let portal = AGSPortal(url: portalURL, loginRequired: true)
        portal.credential = agsCredential
        let portalItem = AGSPortalItem(portal: portal, itemID: mapId)
        let map = AGSMap(item: portalItem)
        esriMapView.map = map

where agsCredential are created using a token from API and referer that the app sends in request. The login popup still shows up for "You need to sign in to access www.arcgis.com"
If add another port as follows before the above code it works to load layers and map.
let arcGISPortal = AGSPortal.arcGISOnline(withLoginRequired: true)
            arcGISPortal.credential = agsCredential
            arcGISPortal.load { (error) in
                if let _ = error {
                    print("Failed loading/signing to acrGISOnline")
                }
            }

But when I try to fetch basemaps using code below it shows login popup again but to sign in to portal.
        portal.load { (error) in
            if error == nil {
                portal.fetchBasemaps { (basemaps, err) in

            }
        }

@nixta @yo1995
Hi guys,
I am loading the map using follwing:
let portal = AGSPortal(url: portalURL, loginRequired: true)
        portal.credential = agsCredential
        let portalItem = AGSPortalItem(portal: portal, itemID: mapId)
        let map = AGSMap(item: portalItem)
        esriMapView.map = map

What is the portalURL? And please provide details on how you’re getting the token.
Building a credential using the token is a less common approach (and you should use the AGSAuthenticationManager challengeHandler pattern if you’re doing that, for seamless token refreshes).
It sounds to me like you might be getting a token from one portal and using it on another.

Hi @nixta @yo1995
Before loading a map, the app makes calls one of our APIs and we pass a 'referer' in header. The API uses ESRI/ArcGIS service to obtain a token for the provided referer. Then API returns us a mapId, portalURL, token, tokenExpiry. The same API is used by our front-end (web).
JSON format of response:
{
"gisBaseUrl": "portalURL",
"token": {
"token": "",
"expires":<PHONE_NUMBER>364,
"ssl": true
},
"authRequiredPaths": [
"/portal",
"/server/rest/services"
],
"gisPortalPath": "/portal",
"defaultWebMapId": "mapId"
}
One suggestion from we developer was that they also sign in to authRequiredPaths as it might be casing issue, how to do that?
The portalURLs (gisBaseURL) could be one of the following format:

https://atlas.{client Name}.com
https://{client Name}.maps.arcgis.com

Then use the portal URL and
agsCredential = AGSCredential(token: portalToken, referer: referer)
let portal = AGSPortal(url: portalURL, loginRequired: true)
        portal.credential = agsCredential
        let portalItem = AGSPortalItem(portal: portal, itemID: mapId)
        let map = AGSMap(item: portalItem)
        esriMapView.map = map
        map.load { (error) in
              // handle error or handle successfully loaded map
              // load base maps
}

I tried one thing with AGSAuthenticationManager, after getting token from our API, set AGSAuthenticationManager.shared().delegate to self and then in one of the delegates did following:
```func authenticationManager(_ authenticationManager: AGSAuthenticationManager, didReceive challenge: AGSAuthenticationChallenge) {
agsCredential?.token = esriAuthViewModel.portalToken()
challenge.continue(with: agsCredential)
}
The strange thing I noticed was that `agsCredential` is class level variable, and its token was getting null.

So I need to use the token from our API and dont want to show the authentication challenge popup, if there any implementation suggestion please provide, can you also please refer to a proper implementation of using AGSAuthenticationManager.

There is a lot going on here, and it's not really relevant to this repo. Might be worth picking the conversation up over at the iOS Runtime forum. But…
Firstly, a token obtained for https://atlas.{client Name}.com (which, by the looks of things, is an on-premise ArcGIS Enterprise instance) will not work at https://{client Name}.maps.arcgis.com.
agsCredential must be something in your codebase. Not sure what that is or how it's created. You can look at the proposedCredential that is passed to the challengeHandler. Set the token on that. However, you still want to make sure that the token was generated for the right service/portal.
You might find some useful info here too.
You appear to be using challengeHandler correctly, btw. Just not sure if passing back agsCredential is a good thing since we don't know what it is or where it comes from in your codebase.

What is the URL that is being used to generate the token?

It could also be that the token is expired. If you use the username and password, Runtime will automatically get a new token if the old one expires.

@nixta
Token is generated for each portal when it changes. The URL for one of them is
https://atlas.{clientName}.com/portal/sharing/rest/generateToken
The token is generated at time app make the call to our API, and its has an expiry of 24hours.

@nixta
Token is generated for each portal when it changes. The URL for one of them is
https://atlas.{clientName}.com/portal/sharing/rest/generateToken
The token is generated at time app make the call to our API, and its has an expiry of 24hours.

Then in the code above:
let portal = AGSPortal(url: portalURL, loginRequired: true)
        portal.credential = agsCredential
        let portalItem = AGSPortalItem(portal: portal, itemID: mapId)
        let map = AGSMap(item: portalItem)
        esriMapView.map = map

what is the portalURL? If it's not atlas.{clientName}.com or if the token was not obtained using credentials that authorize access to the mapId web map, then the credential will not work and you will be prompted.

The token is generated for that portalURL which we get in the response and the mapId is associated with that token and portal.
The thing is when create agsCredetails using user name and password it works fine. Can you please link me to the sample using the Authentication manager.

Unfortunately we don't have an AuthenticationManager sample that covers using credentials with token.
One thought. You said this:

I am loading the map using follwing:
let portal = AGSPortal(url: portalURL, loginRequired: true)
        portal.credential = agsCredential
        let portalItem = AGSPortalItem(portal: portal, itemID: mapId)
        let map = AGSMap(item: portalItem)
        esriMapView.map = map

where agsCredential are created using a token from API and referer that the app sends in request. The login popup still shows up for "You need to sign in to access www.arcgis.com"
If I add another portal (not used afterwards) as follows before the above code it works to load layers and map.
let arcGISPortal = AGSPortal.arcGISOnline(withLoginRequired: true)
            arcGISPortal.credential = agsCredential
            arcGISPortal.load { (error) in
                if let _ = error {
                    print("Failed loading/signing to acrGISOnline")
                }
            }

Is agsCredential the same when applied to both portals?

I used that approach for portal https://{client Name}.maps.arcgis.com, and the agsCredential was same for arcGISOnline(withLoginRequired: true)
For portal https://atlas.{client Name}.com it works without the extra AGSPortal.arcGISOnline(withLoginRequired: true). And both the portal (https://atlas.{client Name}.com and https://{client Name}.maps.arcgis.com) have different token generated fro our API.
At one time I using one portalURL and one mapId, for simplicity if UserA logs in to the app we use https://atlas.{client Name}.com and if UserB logs in we use  https://atlas.{client Name}.com

To confirm:
This does NOT work:
Display a map from https://{client Name}.maps.arcgis.com.
// portalURL = https://{client Name}.maps.arcgis.com
// agsCredential is a token obtained from www.arcgis.com
let portal = AGSPortal(url: portalURL, loginRequired: true)
        portal.credential = agsCredential
        let portalItem = AGSPortalItem(portal: portal, itemID: mapId)
        let map = AGSMap(item: portalItem)
        esriMapView.map = map

This DOES work:
Display a map after loading the www.arcgis.com portal with a separate credential first:
// agsCredential is obtained from www.arcgis.com
let arcGISPortal = AGSPortal.arcGISOnline(withLoginRequired: true)
            arcGISPortal.credential = agsCredential
            arcGISPortal.load { (error) in
                if let _ = error {
                    print("Failed loading/signing to acrGISOnline")
                }
            }
// portalURL = https://{client Name}.maps.arcgis.com
// agsCredential is the same as above
let portal = AGSPortal(url: portalURL, loginRequired: true)
        portal.credential = agsCredential
        let portalItem = AGSPortalItem(portal: portal, itemID: mapId)
        let map = AGSMap(item: portalItem)
        esriMapView.map = map

yes

Posting my solution here, may its helpful for others.
Once our API returns the token it generated from ARCGisPortal, the controller sets its self as delegate to following AGSAuthenticationManager.shared().delegate = self
AGSPortal is created without setting its AGSCredential property and I do following:
let portal = AGSPortal(url: portalURL, loginRequired: true)
        portal.load { (error) in
            if let _ = error {
                self.delegate?.mapLoadingFailed()
            } else {
                let portalItem = AGSPortalItem(portal: portal, itemID: mapId)
                self.loadWebMap(portalItem: portalItem)
                self.loadBaseMaps(portal: portal)
            }
        }

Following is how I have handled one of the delegate methods
func authenticationManager(_ authenticationManager: AGSAuthenticationManager, didReceive challenge: AGSAuthenticationChallenge) {
            // creating credentials from token returned from our API
            let agsCredentials = AGSCredential(token: credentialToken, referer: referer)
            challenge.continue(with: agsCredentials)
        }
    }

So now whenever the credentials challenge is received, the method continue with the AGSCredentials.


ng build with --build-optimizer bugs

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

macOS Sierra 10.12.6

node: 8.4.0
npm: 5.3.0
angular-cli: 1.3.1

When use ng build with --prod and --build-optimizer flag, it can not separate vendor chunk from the main chunk, it must use --vendor-chunk explicitly. But this build bigger chunk.

Disabling the vendor chunk is intentional as it allows further optimization.  The example above demonstrates the benefit (~200KB saved).

@clydin Thank you!  Please update the doc as soon as possible to explain this.

While we are at it. Wiki on build switch shows -bo is a valid alias, when as of 1.3.2 the only valid alias is --buildOptimizer.

Closing this issue...
@frostbtn FYI, that issue has been addressed in master and will be updated in the next release of the docs to the wiki.

It has been added to the wiki here https://github.com/angular/angular-cli/wiki/build#options


Please help me simplify this use case.

Here is an example from my code which works with the current version of plates. I am not happy with the complexity. How can this be simplified?
A couple of notes: I tried to map the creator object using . notation, but that did not work, so I had to resort to creating a custom view object to avoid polluting the data object.
I tried to use class names like data-bind-name and map them to name, that would be a less intrusive version than what we have now. The reason I cannot use a 1 to 1 match (class name to name data property) is because it gets unmaintainable and undebuggable given the amount of css present. With a common name prefix I can do a text search over data-bind and find all the instances.
Another problem was the a tag that contains two elements to be mapped, hence the data-bind-href and data-bind.
I am reallz open for any suggestion how this could be simplified. In a perfect world I want to have a clean html and the least amount of code.
 {
 "scottyId" : "23423445546456",
 "name" : "Frank",
 "creator" : {
 "avatarUrl30" : "http:// ...."
  }
}

  _render_scotty_ref: function(scottyRef) {
    var html, mappedData, mapping;
    html = '... see above ...';
    mappedData = {
      name: scottyRef.name,
      creator_avatarUrl30: scottyRef.creator.avatarUrl30,
      linkToScotty: window.routingController.getDesignScottyPath(scottyRef.scottyId)
    };
    mapping = {
      'name': ['data-bind'],
      'creator_avatarUrl30': ['data-bind', 'src'],
      'linkToScotty': ['data-bind-href', 'href']
    };
    return Plates.bind(html, mappedData, mapping);
  }

Short update: This actually does work except for the linkToScotty binding, which is not replacing my href. Which is why I am doing this temporarily:
var $res;
$res = $(Plates.bind(html, mappedData, mapping));
$res.find("[data-bind-href]").each(function(idx, item) {
  $(item).attr("href", $(item).attr("data-bind-href"));
});
return $res;

Hey @mwawrusch,
I don't have any pearls of wisdom to share, and it looks like you've pretty much figured it out. I'm going to go ahead and close this issue, but you know where to find us if you still need help (irc)!

Yeah, got it working


IPVM

woops nm we have a conflict. mind updating @justincjohnson?

@b5 I changed the time to avoid the conflict.  👍


Feature sslcerts

PR for providing a path to an SSL certificate / key when creating the mock server on SSL.

Looks good. The other place that needs it is here: https://github.com/Blackbaud-JonathanBell/pact-mock_service/blob/d1ab8ff2519430ec7637bb283b7e3f5929ca2192/lib/pact/consumer/server.rb#L95
You've done the code for the case when the mock service is started from the command line. There's another scenario where there's a control server that starts up new instances when required, and that's what the second file is for.

Thanks.  I'm on vacation most of next week so it'll be a little while before I get back to you on this.

@bethesque I added those two options to the server.rb file since @Blackbaud-JonathanBell is on vacation.  I've noticed our new test is timing out in 2 of the 3 environments.  Any suggestions on fixing that for a Ruby n00b?

Thanks @Blackbaud-BobbyEarl. I'm just seeing if I can find someone to give you a hand, as I'm a bit under the pump at the moment, but I'd really like to get this out ASAP.

How annoying! I've finally gotten time to look at this, and I can't replicate it on my local 2.3.1 ruby.

And on my 2.2.4!

I've released 0.12.0. Sorry for it taking so long. I'm on maternity leave at the moment, and don't get a lot of time to do maintenance.

@bethesque Thanks so much.  Appreciate you taking the time to hep with this.  Enjoy your leave!


[FSDE-936] Fix SmokeTests staging

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Playpen/job/ChiGCR/job/ChiGCR/job/PR-19/1/. :white_check_mark:


[tcgc] fix onClient setting for parameters applied to interface @clientInitialization

fixes #1532

All changed packages have been documented.

:white_check_mark: @azure-tools/typespec-azure-resource-manager
:white_check_mark: @azure-tools/typespec-client-generator-core

Show changes
@azure-tools/typespec-azure-resource-manager - feature ✏

x-ms-skip-url-encoding should be replaced with allowReserved

@azure-tools/typespec-client-generator-core - breaking ✏

The kind for unknown renamed from any to unknown.,> 2. The values property in SdkUnionType renamed to variantTypes.,> 3. The values property in SdkTupleType renamed to valueTypes.,> 4. The example types for parameter, response and SdkType has been renamed to XXXExampleValue to emphasize that they are values instead of the example itself.,> 5. The @format decorator is no longer able to change the type of the property.

@azure-tools/typespec-client-generator-core - fix ✏

Fix naming logic for anonymous model wrapped by HttpPart

@azure-tools/typespec-client-generator-core - fix ✏

Fix subscriptionId for ARM SDK

@azure-tools/typespec-client-generator-core - fix ✏

fix onClient setting for client initialization parameters applied to an interface

@azure-tools/typespec-client-generator-core - breaking ✏

change encode in SdkBuiltInType to optional.,> 2. no longer use the value of kind as encode when there is no encode on this type.

@azure-tools/typespec-client-generator-core - breaking ✏

no longer export the SdkExampleValueBase interface. This type should have no usage in downstream consumer's code. If there is any usage, please replace it with SdkExampleValue.


fix: Check whether the onvif response is valid

Check whether the response is valid for the specified ONVIF function
Fix #138
Signed-off-by: bruce<EMAIL_ADDRESS>

If your build fails  due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:

[x] I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
[x] I am not introducing a new dependency (add notes below if you are)
[ ] I have added unit tests for the new feature or bug fix (if not, why?) not impact the test
[x] I have fully tested (add details below) this the new feature or bug fix (if not, why?)
[ ] I have opened a PR for the related docs change (if not, why?) not impact the doc

Testing Instructions

Run device service and test with REST API.
New Dependency Instructions (If applicable)

Codecov Report

Merging #146 (7fdb570) into main (5e91d4f) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##            main    #146      +/-   ##
========================================
- Coverage   9.12%   9.07%   -0.06%
========================================
  Files         18      18
  Lines       1797    1807      +10
========================================
  Hits         164     164
- Misses      1612    1622      +10
  Partials      21      21

Impacted Files
Coverage Δ

internal/driver/basenotificationconsumer.go
0.00% <0.00%> (ø)

internal/driver/onvifclient.go
10.72% <0.00%> (-0.16%)
:arrow_down:

internal/driver/pullpointsubscriber.go
0.00% <0.00%> (ø)

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


test: test out fixes for yaml-v2 API.

Summary of this proposal
Fixes for calyptia cli and yaml v2. This really exists just as a dependency for the yaml-v2 branch of calyptia/cli.
Notes for the reviewer

Issue(s) number(s)

Disclaimer: Please do not create a Pull Request without creating an issue first.
Checklist for submitter

[ ] My PR has a related issue/bug number.
[ ] My PR provides tests

[ ] Integration tests are added/passes
[ ] Unit tests are added/passes
[ ] End-to-end tests added/passes
[ ] Static code check added/passes
[ ] Linting on documentation added/passes
[ ] Does not affect code coverage stats

[ ] My PR requires updating dependencies
[ ] My PR has the documentation changes required.

Checklist for reviewer

[ ] The proposal fixes a bug/issue or implements a new feature that is well described.
[ ] The proposal has sufficient test cases that covers the changes.

[ ] If changes an API, it does not break backwards compatibility (-1 major version).

[ ] If integration is required, the proposal has integration tests.
[ ] The proposal does not break coverage stats
[ ] The proposal has the required documentation changes.

Backport

[ ] Backport to the latest stable release.

Superseded by automatic API merge, re #221.


Make the root package importable

[ ] I've tested my changes, adding unit tests if applicable.
[X] I've added Apache 2.0 Headers to the top of any new source files.
[ ] I'm submitting this PR to the dev branch, except in the case of urgent bug fixes warranting their own release.
[X] If I'm targeting master, I've updated CHANGELOG.md to address the changes I'm making.

This change is simply to make the root package importable to enable a larger fix for ambiguous import errors.

Part of the fix for https://github.com/Azure/go-autorest/issues/481


Post-UI Code Sweep

After UI is merged in, we should look at our entire codebase and play the game a little bit. Everything that is in the codebase should be working, and anything that we no longer need should be pruned. Fix any other bugs that come up.

Done, thanks to @xezno!


README.md updated and all screenshots sizes made consistent

Description
README.md screenshots sizes made consistent by adding it to the table.
Fixes #130
Type of change

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update
[x] Documentation Update

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works

not looking good


dropbear disabled over wifi

whats the point of ssh via usb? i would like to ssh into my device without the usb, it defeats the whole purpose of ssh

defeats the whole purpose of ssh
you're tripping

#162

Let it go @timonline haha, it's already closed.

@nicogibbons we commented at the same second :D

;o @timonline


More intuitive looking buttons

I would be nice to make the selected or default button stand out so users can notice the other buttons. I took a me a while to figure out that.

@amabdallah White on white is hard to see. I'll take a look at this.


Array access

Here it is. It even surfaced another bug that I didn't see :)
Regards,
Javier.

Sure, that's a lot better! I've also improved it further and found a couple more bugs :)

Great work @nkm. Thanks for your attentiveness!
Rebase/squash your commits and I'll merge them.

There. :+1: Thank you for implementing this feature :)


polyphonetic characters pronounce wrong in Chinese

Checks

[X] This template is only for question, not feature requests or bug reports.
[X] I have thoroughly reviewed the project documentation and read the related paper(s).
[X] I have searched for existing issues, including closed ones, no similar questions.
[X] I confirm that I am using English to submit this report in order to facilitate communication.

Question details
with the sentence "村民们各个神情专注地倾听",   the '地' pronounces 'di4' while 'de4' is correct
with the sentence "一个衣着简朴的讲述者正在中央", the '朴' prounouces 'piao2' while 'pu3' is correct
So is this a Chinese-to-Pinyin problem? how can I fix it ? e.g. replacing with another chinese-to-pinyin library or having a chance to correct the pinyin in inference
I did some researching with the paper but found no clues.

It seems pinyin converting issues in python-pinyin:
from pypinyin import pinyin, lazy_pinyin, Style

strs = ['专注地倾听', '衣着简朴的讲述者']

for s in strs:
  result = pinyin(s, style=Style.TONE3, heteronym=True)
  print(s, result)

Output:
专注地倾听 [['zhuan1'], ['zhu4', 'zhou4'], ['di4', 'de'], ['qing1'], ['ting1', 'yin3', 'yi2']]
衣着简朴的讲述者 [['yi1'], ['zhuo2'], ['jian3'], ['piao2'], ['de', 'di1', 'di2', 'di4'], ['jiang3'], ['shu4'], ['zhe3']]

@teoking please check this issue：https://github.com/mozillazg/python-pinyin/issues/249

BTW, you can also try https://github.com/GitYCC/g2pW


[ownership] Define a new instruction copy_unmanaged_value.

This provides a singular instruction for convert an unmanaged value to a ref,
then strong_retain it. I expanded the definition of UNCHECKED_REF_STORAGE to
include these copy like instructions. This instruction is valid in all SIL.
The reason why I am adding this instruction is that currently when we emit an
access to an unowned (unsafe) ivar, we use an unmanaged_to_ref and a strong
retain. This can look to the optimizer like a strong retain that can potentially
be optimized. By combining the two together into a new instruction, we can avoid
this potential problem since the pattern matching will break.

@swift-ci test

@lorentey I have a second PR that once this is in, just enables SILGen. So this is the meat.


[Outlook] (on send) Link to current 1.8 support details

Docs Build status updates of commit f17d148:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/outlook/outlook-on-send-addins.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Cloud fraction definition

Returned to Tan et al definition of cloud fraction: Saturated area in the subdomain/ subdomain area. In this definition, a completely saturated environment would have cloud_fraction = 1.0.

I think that fractions should be from the total area (always). and if you need the subdomain fraction just multiply,
i.e. Env.cloud_fraction is the fraction of the cloud in the env from the total grid area. if you need the fraction of cloud from the environment just multiply:
Env.cloud_fraction*Env.Area


Create an astra maven plugin for easy application of refactors

For improvement #120

Excellent - thank you for your contribution to Astra, @harrisric! Merged now.


[Update] - Settings | Features Plugin

- [ ] Technical review
- [ ] Style Dictionary review
- [ ] Initial doc created
- [ ] Content review

[ ] Technical review
[ ] Style Dictionary review
[ ] Initial doc created
[ ] Written Content review

Token Storage/Plugin settings


show a horizontal dotted line for average of two line charts

Are we having an option to add a dotted horizontal line to show the average of two line charts?

Hi @VijinR👋
The feature to support dotted/dashed lines is now added in version 1.0.11🎉
To render a dotted/dashed line, we can make use of the prop strokeDashArray. strokeDashArray  is an array of 2 numbers denoting the dashWidth and dashGap of the line.
To selectively use dotted/dashed line in case of multiple lines, we can use strokeDashArray1, strokeDashArray2, strokeDashArray3 and so on.
Now coming to your use case, let's say we have 2 data sets as follows-
const lineData1 = [
    {value: 20},
    {value: 40},
    {value: 48},
    {value: 50},
    {value: 56},
    {value: 70},
    {value: 90},
    {value: 95},
  ];

  const lineData2 = [
    {value: 0},
    {value: 5},
    {value: 8},
    {value: 18},
    {value: 22},
    {value: 30},
    {value: 44},
    {value: 52},
  ];

And we want to render a third dotted line representing the average of the two lines.
Here's the code for the same-
<LineChart
  data={lineData1}
  data2={lineData2}
  data3={lineData1.map((item, index) => {
    return {value: (lineData1[index].value + lineData2[index].value) / 2};
  })}
  strokeDashArray3={[2, 3]}
  hideDataPoints3
  spacing={30}
/>

The output of the above code is

Hope it helps🤗

@Abhinandan-Kushwaha great work🎉..thanks


left join broken with ValueError and TypeError

Thanks for the package- and all the hard work that's gone into it. Came across this issue:
f1 = pr.from_dict(
  {'Chromosome': ['chr1', 'chr1', 'chr1'],
   'Start': [3, 8, 12],
   'Strand': ['+', '-', '+'],
   'End': [4, 9, 13],
   'Name': ['interval1', 'interval3', 'interval2']
}, int64=True)

f2 = pr.from_dict(
  {
    'Chromosome': ['chr1'],
    'Start': [6],
    'Strand': ['-'],
    'End': [10],
    'GeneName': ['test']
}, int64=True)

I'm trying to annotate f1 with f2.
f3 = f1.join(f2, strandedness="same", slack=0)

works as expected
f3 = f1.join(f2, how="left", strandedness="same", slack=0)

Fails with an error
TypeError: Cannot set a Categorical with another, without identical categories
Version is '0.0.125

Relevant:
f2 = pr.from_dict(
  {
    'Chromosome': ['chr1', 'chr1'],
    'Start': [6, 23],
    'Strand': ['-', '+'],
    'End': [10, 24],
    'GeneName': ['test', 'test2']
})

i.e. adding an extra row to f2 fixes any issues.

Thanks. This seems a reasonable solution @endrebak ?

I'll try to fix this today. Will have to check on different pandas versions :D

Thanks!

Your suggestion seems to not work with bad strands like ".".
Will try to fix.

"Strand": CategoricalDtype([".", "-", "+"], ordered=True),

was ruled out?

https://github.com/pyranges/pyranges/pull/new/342
The tests seem to pass and your example works?
Does the commit work for you?
Will have to wait for C/I before uploading to PyPI.

Started the pipeline to push the changes to pypi: https://github.com/pyranges/pyranges/actions/runs/5391831179

Sorry, this example still fails with v0.0.128.  At this point, changing
dtypes["Strand"] = CategoricalDtype(categories=df["Strand"].drop_duplicates().to_list())

to
dtypes["Strand"]: CategoricalDtype([".", "-", "+"], ordered=True)

continues to pass.  As suggested by the original error,
TypeError: Cannot set a Categorical with another, without identical categories

we basically need to force the Strand categories to be the same irrespective of
the passed data frame, otherwise this join will fail.
Thanks for your help!

Ah, thanks! I'm working on implementing genomicranges for polars so my pandas knowledge is slipping away.
What I do not like about your solution is that the Strand column might have other values besides (., +, -) and your solution seems to make only those three valid.

Perhaps we should replace all invalid values with . and warn the user?
What do you think @marco-mariotti ?

I agree with Endre's proposal.
On Wed, Jun 28, 2023 at 3:51 PM endrebak.ada @.***>
wrote:

Perhaps we should replace all invalid values with . and warn the user?
What do you think @marco-mariotti https://github.com/marco-mariotti ?
—
Reply to this email directly, view it on GitHub
https://github.com/pyranges/pyranges/issues/342#issuecomment-1611453304,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACTXRIHDT2UTSCZZAV56TALXNQZF5ANCNFSM6AAAAAAZGALTKI
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Marco Mariotti
Ramón y Cajal Fellow, Group Leader
Department of Genetics, Microbiology and Statistics
Universitat de Barcelona

That'd be great, thanks.

@xiucz I think you need pr.PyRanges(..., int64=True) when you initialise both tables.

Hi @xiucz, can you provide data to replicate the problem, and specify which version of pyranges are you using?
I think PyRanges now (0.0.129) has the type of all ints set to int64 ( @endrebak can you confirm?) so I'd be surprised if @michaelJwilson suggestion changed anything. The int64 argument is still there just for backward compatibility.

Please test this in the latest pyranges version, 0.0.129, and let us know if the problem persists.


[PERFORMANCE] AmqpForwardAttribute should reuse connection

Today one connection and one channel is opened per processed
emails. Connections and channels are long lived objects,
made to be reused.
Flame graphs showed that this AMQP mailet represents ~1%
of CPU occupation with just about 30 mail/sec. Note that
92% of this time is used opening/closing connections/channels.
Moving connection and channel initialization at mailet
initialization enables reuse and leads to dramatic enhancements
of the performances of that very mailet. Note that retries are
in place in case Rabbit is not up right at start - common with
IE docker-compose.
The testing strategy relying on mocks is brittle. Given that we
have full-fledged integration tests in place, we can get rid of
these annoying mock-based tests.
Before

After

AMQP channels are not threadsafe and should not be shared across thread.

[ ] We should create a new mailet-amqp maven project
[ ] Depends on bckens-rabbitmq to reuse SimpleConnectionPool and ReactorRabbitMQChannelPool
[ ] Clean up AMQP dependency out of mailet-standard
[ ] Finally we should take care that we should be able to maintain a separated AMQP host than the main one.


Update tapir-core, tapir-http4s-server, ... to 1.0.3

Updates

com.softwaremill.sttp.tapir:tapir-core
com.softwaremill.sttp.tapir:tapir-http4s-server
com.softwaremill.sttp.tapir:tapir-json-circe
com.softwaremill.sttp.tapir:tapir-newtype
com.softwaremill.sttp.tapir:tapir-openapi-docs
com.softwaremill.sttp.tapir:tapir-swagger-ui

from 0.20.2 to 1.0.3.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.softwaremill.sttp.tapir" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "com.softwaremill.sttp.tapir" }
}]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

Superseded by #240.

Superseded by #244.


WebSocket continuation (Fragmentation)

Hi everyone,
Does SwiftNIO include something similar to WebSocketFrameAggregator from Netty?
It buffers incoming WebSocketFrames with the continuation opcode.
I didn't found anything in the swift-nio repository.
Vapor has implemented buffering to handle the continuation opcode, but does not enforce a maximum buffer size.
Thanks
David

Nope, SwiftNIO does not provide such a thing. If you wanted to implement it we'd be more than happy to accept the patch.

Thank you for your quick response! I will implement it and open a PR.


Using preview portal

The screenshots in this article are using the internal MSFT azure preview portal.

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

ID: 73892453-9983-fc9a-69d1-feee280a6a07
Version Independent ID: 5490bbb9-684f-f3d0-e8e1-ba726b7c2ad7
Content: Tutorial - Configure Azure Analysis Services administrator and user roles
Content Source: articles/analysis-services/tutorials/analysis-services-tutorial-roles.md
Service: azure-analysis-services
GitHub Login: @Minewiskan
Microsoft Alias: owend

@IslayJunkie Thank you for pointing out this embarrassing oversight.  I will assign it to author immediately.  Aside from it being the internal version of the portal, does everything work as expected?

@Minewiskan  One image in this document needs to be changed.  The first screenshot.  It displays the orange 'Report a bug' which indicates the internal portal.  I will assign to you.

Looks like almost all of the images for Analysis services have the same issue

Resolved.
#please-close


Add missing requirement used in lms/lms.py

The "lazy" module is used all over lms/lms.py but it doesn't seem to be in any requirements files. Not having it causes locust to not start.

:+1: from me..

@benpatterson should I get other thumbs, or is yours sufficient?

Honestly for this kind of change and in this repo, I consider one sufficient.
But a couple of your co-workers have been pretty involved with this repo, and you could tag them if you want additional looks, or even an FYI

[so, uh, whatever you like...no objections to a merge :) ]

@edx/devops

:+1:


Applicant can skip eligibility questions

Describe the bug
As an applicant, I can open a program application and start answering any question from the "Review" page, bypassing the eligibility questions.
To Reproduce
Steps to reproduce the behavior:

Go to a program with eligibility conditions
Start the application from the Program Application Summary Page
Scroll down to a question at the bottom of the page
Click Answer
See that you can bypass eligibility questions

Expected behavior
I would expect that any program with eligibility questions would force an applicant to start with those questions, so that the applicant doesn't waste their time, if they don't qualify
Screenshots

@isabelcshaw Isabel, I mentioned this when Sijia reviewed whats coming with the mood boards and redesign.  Should we look at doing away with the Answer -> links unless the question has been answered (i.e. they can go back and edit the answer, but not skip ahead to it)

@sijiayam -- To take a look to see about incorporating it into the UX Northstar body of work.

Just bringing this back up to the surface--we are receiving actual applications in our Test environment (sounds like the direct links were sent out erroneously!). As a workaround, we created an eligibility condition as the first question so that people need to enter a code to access the rest of the test form. Unfortunately, someone can still skip that first eligibility question and continue to fill out the form. Just checking that this is on the roadmap? @msprenke @isabelcshaw @sijiayam


Unable to download webpage: <urlopen error [Errno 61] Connection refused> (caused by URLError(ConnectionRefusedError(61, 'Connection refused')))

Checklist

[x] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2021.05.16
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log

Doug@MacBook-Pro ~ % youtube-dl --config-location "/Users/Doug/youtubedl/Doug-youtube-dl.conf"
[debug] System config: []
[debug] User config: []
[debug] Custom config: ['--prefer-ffmpeg', '-o', '/Users/Doug/youtubedl/%(title)s.mp4', '-f', 'best[height=1080][ext=mp4]/bestvideo[height<=1080][vcodec!=vp9]+bestaudio[ext=m4a]/best[height<=1080][ext=mp4]/best', '--no-call-home', '--no-check-certificate', '--download-archive', '/Users/Doug/youtubedl/downloadList.txt', '--verbose', '--batch-file', '/Users/Doug/youtubedl/batch.txt', '--ap-mso', 'TWC', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE']
[debug] Command-line args: ['--config-location', '/Users/Doug/youtubedl/Doug-youtube-dl.conf']
[debug] Batch file urls: ['https://www.oxygen.com/bad-girls-club/season-11/bad-girls-club-s11e1']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.05.16
[debug] Python version 3.7.4 (CPython) - Darwin-20.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.2.1, ffprobe 4.2.1, rtmpdump 2.4
[debug] Proxy map: {}
[BravoTV] bad-girls-club-s11e1: Downloading webpage
[BravoTV] ZturCwsgul1S: Downloading Provider Redirect Page
[BravoTV] ZturCwsgul1S: Downloading Provider Login Page
ERROR: Unable to download webpage: <urlopen error [Errno 61] Connection refused> (caused by URLError(ConnectionRefusedError(61, 'Connection refused')))
  File "/usr/local/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line 634, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 2288, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.7/site-packages/youtube_dl/utils.py", line 2737, in https_open
    req, **kwargs)
  File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1319, in do_open
    raise URLError(err)

Description

Trying to download form oxygen.com that's using Adobe Pass with Spectrum/Time Warner Cable. I suspect there's any issue parsing a URL somewhere between AP and TWC? I've attempted to use --cookies and use that as a workaround but it does not appear to work.

Late to the party:  i had the same issue (ERROR: unable to download video data: <urlopen error [Errno 111] Connection refused>
) and managed to download by executing youtube-dl with 'sudo -H' . Dont ask me why : but it works


[WFLY-17143] Add the ability to specify that the OIDC Authentication Request should include request and request_uri parameters

Analysis doc: https://github.com/wildfly/wildfly-proposals/pull/532
WFLY Issue: https://issues.redhat.com/browse/WFLY-17143
Related ELY Issue: https://issues.redhat.com/browse/ELY-2584
Depends on: https://github.com/wildfly-security/wildfly-elytron/pull/1984
Depends on: https://github.com/wildfly/wildfly/pull/16997

Hello, PrarthonaPaul. I'm waiting for one of the admins to verify this patch with /ok-to-test in a comment.

/ok-to-test

@PrarthonaPaul When you get a chance, would be good to remove the commits from Kabir since those have been merged and it would be good to squash things where it makes sense (the subsystem bump can continue to be a separate commit though).

Hi @PrarthonaPaul your topic branch is lagging behind WildFly main, could you rebase this PR on top of the latest WildFly main? It would be nice to run integration Jobs with wildfly/wildfly-core#6050 before WIldFly Core release, thanks!

Hi @yersan I have rebased this branch.
Thanks!

Integration Jobs were well, they were not required at this stage, but since this is an RFE that requires Core upgrade, it is useful to me to get a sense of how they are at this moment:
https://ci.wildfly.org/buildConfiguration/WF_WildFlyCoreIntegrationExperiments/442262 (Linux integration)
https://ci.wildfly.org/buildConfiguration/WF_WildFlyCoreIntegrationExperiments/442260 (Bootable JAR)
https://ci.wildfly.org/buildConfiguration/WF_WildFlyCoreIntegrationExperiments/442258 (Galleon)
https://ci.wildfly.org/buildConfiguration/WF_WildFlyCoreIntegrationExperiments/442256 (Microprofile)
https://ci.wildfly.org/buildConfiguration/WF_WildFlyCoreIntegrationExperiments/442254 (WildFly Preview)

Integration Jobs were well, they were not required at this stage, but since this is an RFE that requires Core upgrade, it is useful to me to get a sense of how they are at this moment:
https://ci.wildfly.org/buildConfiguration/WF_WildFlyCoreIntegrationExperiments/442262 (Linux integration) https://ci.wildfly.org/buildConfiguration/WF_WildFlyCoreIntegrationExperiments/442260 (Bootable JAR) https://ci.wildfly.org/buildConfiguration/WF_WildFlyCoreIntegrationExperiments/442258 (Galleon) https://ci.wildfly.org/buildConfiguration/WF_WildFlyCoreIntegrationExperiments/442256 (Microprofile) https://ci.wildfly.org/buildConfiguration/WF_WildFlyCoreIntegrationExperiments/442254 (WildFly Preview)

Hi @yersan
It looks like the linux integration is failing, but it does not seem to be related to the RFE.

/retest

The failed Linux JDK 17 test is:
org.jboss.as.test.integration.messaging.mgmt.JMSQueueManagementTestCase.removeJMSQueueRemovesAllMessages
I don't see this as being impacted by the changes in this PR.

Thanks @PrarthonaPaul @rsearls @fjuma @Skyllarr @darranl @yersan @pferraro


Enviro Urban Noise Sensor

I seem to get a constant 1.5V reading. Is this sensor functional? Even if i shout at it while it takes a reading it only jumps to say 1.53V
Also is there any info on how to convert this reading to dB?

OK, after some more digging around I found the #98 thread with info on the bug in urban.py about the incorrect / 3.3 * 65535 line. Would still like to know how V relates to dB though??
I’ve also downloaded the newer firmware as I had the failed to connect to wifi issue too.
I didn’t see a thread specific to the noise sensor issue so that’s why I posted.

Hi @Astro-Pete. As you spotted, there was an error in the code, that was subsequently fixed in patch v0.0.9.
As for relating V to dB, that's something I looked into but did not find a definitive answer for how to do that conversion (since V is an absolute measurement, and dB is a relative measurement). I would happily accept a pull request from someone knowledgeable in the area.

Will nudge this as I know there were issues with GitHub and my comments appearing when I posted the above.
The formula (and its derivation) is explained very long-windedly here:
https://github.com/soficshifts/pirmoroni/blob/main/documentation/enviro-urban/enviro-urban-volts-to-decibels.md
This could be put in the enviro-urban code, but I object to doing so on the premise that a Scientific Instrument should return the raw data, what you do with that post-processing is your business.
Secondly, the formula is an approximation as the Specification sheet states the gain is determined by the ratio of two resistors that the installer would have provided.  So the +35 offset was taken by calibrating against a smartphone app, if these resistors are known, one could get a more accurate formula.
So someone is welcome to change the code, as I probably am not motivated to do so myself for the above reasons. I'd suggest a config parameter that allows you to choose decibels or the raw voltage reading.
@ZodiusInfuser  - I'm happy to make a more succinct writeup for the doco as a pull request.
Thanks, I hope this helps.


Switch eventgrid ci to client instead of data

@srnagar @yijunxiems according to code owners you guys are the owners of eventgrid so pinging you to have a look. I only noticed this because the readme has broken links in aggregate reports pipeline at https://dev.azure.com/azure-sdk/internal/_build/results?buildId=531095&view=results and I was trying to figure out why this wasn't caught by CI and it is because we only have the link checks in the track 2 client build templates and not the data templates.
cc @sima-zhu

I learned from Java team channel. Here is the pipeline setup PR for eventgrid: https://github.com/Azure/azure-sdk-for-java/pull/15039/files

I believe the broken links were introduced by @Soreloser2 PR https://github.com/Azure/azure-sdk-for-java/pull/14442

@Soreloser2 is following up on this

@Soreloser2  I updated the ci.yml and fixed the readme broken links but now I'm hitting a missing changelog error. At this point I'll let you take over these changes. Feel free to steal my changes, just be sure to also pull in the change in the ci.yml file.


Extra spaces inside a word with different text formats

Version
1.1.1
System information
Ubuntu 18.04.5 LTS on Windows 11 x86_64
Node v14.17.5
Issue description
This library will add extra spaces in a word if just part of it has bold/italic/link.
Steps to reproduce
Given a simple Google Docs example:

Parsing this snippet, the output will be something like:
- Lorem ipsum dolor sit **amet** ;

(Extra space between "amet" and ";")
I'm opening this issue to know if this repository is open to contributions and if this is considered a bug or a feature. I found parse-google-docs-json snippet inside gatsby-source-google-docs handling this test case by matching "before" and "after" token whitespaces and appending those whitespaces on return (https://github.com/cedricdelpoux/gatsby-source-google-docs/blob/master/utils/google-document.js#L51-L62)

Ohhh that's awesome @TulioAbreu sure!! It's definitely a bug 🤝
If you send a PR we should do a major release, since it can change the outcome considerably 👍

@filipedeschamps
Fine, I'll submit a pull request 😊

PR merged! You are awesome @TulioAbreu thank you so much! I will release v2 right after 👍


APP-3230: Proxy support

Ticket
APP-3230
Description
Implemented proxy support for webclient and jersey2 clients.
Dependencies
Depends on a test with a local proxy put in a dedicated repo
Checklist

[x] Referenced a ticket in the PR title and in the corresponding section
[x] Filled properly the description and dependencies, if any
[x] Unit tests updated or added
[x] Javadoc added or updated
[x] Updated the documentation in docs folder

I remember that we also talked about providing a docker-compose.yml file to easily setup a local proxy. Is that something you can quickly add to the example project or should we create an improvement ticket for later?


Use smoothing to reduce shaking effect

⚠ All PRs have to be done versus 'dev' branch, so be aware of that, or we'll close your issue ⚠
What kind of change does this PR introduce?

Feature; considerably reduces the shaking effect when holding device still.
Can it be referenced to an Issue? If so what is the issue # ?
#139
How can we test it?

Note that you cannot use the <a-camera> tag as this automatically injects the default look-controls. So you have to create an <a-entity> with a camera component, as well as arjs-look-controls.
So for example:
<a-entity id='camera1' camera='near:0.1; far:50000; fov:80;' arjs-look-controls='smoothingFactor: 0.1' gps-projected-camera='gpsMinDistance: 5' ... >
Summary

Considerably reduces the shaking effect when holding device still. It does this by applying smoothing to the raw orientation values.
To do this, I created a custom look-controls component entitled arjs-look-controls to replace the default one. This approach is recommended in the A-Frame documentation, see here. The component uses THREE.DeviceOrientationControls which itself has been modified to add smoothing. The arjs-look-controls component has a smoothingFactor property to control the amount of smoothing.
A smoothed orientation is essentially defined by:
smoothedOrientation  = smoothingFactor * currentValue + (1-smoothingFactor) * previousSmoothedValue
so it can be seen that the lower the smoothing factor (in range 0 to 1), the more smoothing applies. In tests 0.1 seems to work well whereas 0.05 smooths a little too much.
Does this PR introduce a breaking change?
No. Code to test for arjs-look-controls has been added to gps-camera and gps-projected-camera but it falls back to look-controls if not available.
Please TEST your PR before proposing it. Specify here what device you have used for tests, version of OS and version of Browser
Pixel 3, Android 10, Chrome.
Other information

I have imported your AR.js version => https://rawcdn.githack.com/nickw1/AR.js/0832a20bf39cde18e71df9b2e3d77f6a23a56aea/aframe/build/aframe-ar-nft.js
on an AR.js example, and used:
<a-entity  gps-camera="minDistance: 50; positionMinAccuracy: 300; gpsMinDistance: 5;" rotation-reader ></a-entity>
I see no places rendered. The problem is the 'a-entity' tag. If I use
<a-camera  gps-camera="minDistance: 50; positionMinAccuracy: 300; gpsMinDistance: 5;" rotation-reader ></a-camera>
works okay, of course without the shaking fix. What can be the problem?

Places are added to the DOM using JS. Maybe some event is not fired correctly? Do you have tested with AR.js examples?

Have you tried adding the camera component?  In other words something like:
<a-entity camera='near:0.1; far: 50000' gps-camera="minDistance: 50; positionMinAccuracy: 300; gpsMinDistance: 5;" rotation-reader></a-entity>

I am however finding an issue on further testing - the augmented content is not oriented correctly in landscape mode. This is only with the new arjs-look-controls component; it works ok with the directly edited A-Frame build. Will need to investigate this, difficult to see why on first look.

Unfortunately I still cannot see any gps-entity-place. Can you please try this code? (adding your latitude/longitude of course)
<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title>GeoAR.js demo</title>
    <script src='https://aframe.io/releases/1.0.4/aframe.min.js'></script>
    <script src="https://rawcdn.githack.com/nickw1/AR.js/553a5a8a846de6b772175da88886ed878b9cca22/aframe/build/aframe-ar-nft.js"></script>
    <script<EMAIL_ADDRESS></head>

<body style='margin: 0; overflow: hidden;'>
    <a-scene
        vr-mode-ui="enabled: false"
		embedded
		arjs='sourceType: webcam; debugUIEnabled: false;'>

        <a-box material="color: red;" scale="15 15 15" gps-entity-place="latitude: <value> longitude: <value>;"></a-box>

        <a-entity camera='near: 0.1; far: 50000;'
            gps-camera="gpsMinDistance: 5;"
            arjs-look-controls='smoothingFactor: 0.1'
            rotation-reader>
        </a-entity>
	</a-scene>
</body>

The problem is not with the arjs-look-controls but with using the 'a-entity' tag.

OK looks like there is an issue with the ordering of components. The look-controls or arjs-look-controls has to come before the gps-camera, actually that makes sense as the first thing that gps-camera does is check for the existence of a look-controls component. If I change the order then the cube appears.
Then it works, though with the basic example I'm getting occasional 'jerky' movement if you move the device too fast. However this is likely to be an issue with the smoothing code and is probably relatively easily fixed.
See https://hikar.org/webapp/test.html.
Maybe there's a way of using <a-camera> but telling it to not inject the default look-controls component. Will try and look into this.

... Yes, you can do it. <a-camera look-controls-enabled='false' .... >

That's better so we do not have to change a lot of documentation :)

Now merging this. There is still an unresolved issue with 'jerky' effects when moving the camera, which appears to relate to the beta angle in landscape or gamma in portrait. Nonetheless the overall effect, with 'shaking' much reduced, is an improvement on before. Also the feature can be turned on or off with the use, or non-use, or arjs-look-controls.

Absolutely agree.

Hi,
I also tested the arjs-look-controls today and can confirm, that the overall marker stability improved greatly (Samsung s20/Chrome for Android v86).
But with the "jerky"-effect, do you mean that sometimes the gps-entity-place suddenly moves out / in again? This is sth I observed multiple times. Do you have any idea what to do about it?
Nevertheless, I'm also exploring to smooth the heading-values with simple average mean function. And it seems to improve stability even more but of course reduces accuracy.


Release 1.5.0.Beta9

Summary
Releases 1.5.0.Beta9 as I need to get Windows fix to the Quarkus QE Test Suite.
Release contains:

https://github.com/quarkus-qe/quarkus-test-framework/pull/1193
https://github.com/quarkus-qe/quarkus-test-framework/pull/1196
https://github.com/quarkus-qe/quarkus-test-framework/pull/1197

Please check the relevant options

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Dependency update
[x] Release
[ ] Refactoring
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] This change requires a documentation update
[ ] This change requires execution against OCP (use run tests phrase in comment)

Checklist:

[ ] Example scenarios has been updated / added
[ ] Methods and classes used in PR scenarios are meaningful
[x] Commits are well encapsulated and follow the best practices

@jcarranzan no worry about Release check / check-release-version as this is known issue

LGTM, let's wait for the checks.


run super-early boot hooks before dotenv load

This is a 🐞 bug fix.

[ ] I've added tests (if it's a bug, feature or enhancement)
[ ] I've adjusted the documentation (if it's a feature or enhancement)
[x] The test suite passes (run bundle exec rspec to verify this)

Summary
Run super-early boot hooks before dotenv load. This is important because the dotenv load will use the Teraspace.env and then it's already too late to use boot hooks to set the default TS_ENV. Will update dotenv docs with a config/inits initializer to show users how to check that dotenv is working.
Docs:

https://terraspace.cloud/docs/config/boot/
https://terraspace.cloud/docs/config/dotenv/
https://terraspace.cloud/docs/config/inits/

Context

Fixes https://github.com/boltops-tools/terraspace/issues/191
Related https://github.com/boltops-tools/terraspace/pull/189

How to Test
config/boot.rb
ENV['TS_ENV'] ||= 'qa'
puts "boot.rb called: Terraspace.env #{Terraspace.env}"
puts "boot.rb called: ENV['TS_ENV'] #{ENV['TS_ENV']}"

Run something like
terraspace plan demo

And confirm that the terraspace-cache folder has qa in the path instead of dev. IE:
.terraspace-cache/us-west-2/qa/stacks/demo

Version Changes
Patch

Released in 1.0.3


Failed to connect to server error when scripting create or select statements

This happens regularly during a days use. After a period of time script create, drop or select top 1000 statements become unusable as all fails with the "Failed to connect to server" error. Server is fully browsable with queries and objects can be refreshed in object explorer. The issue doesn't affect table designer.
Similar issue has been reported and solved in #20961 and I tend to agree that the token refreshes in object explorer has been improved compared to my previous periods of using ADS. But this issue keeps interrupting daily operations.
Steps to reproduce:

I was connected to a database and then a time-out of the connection occurs after not using the connection for a while.
I disconnect the server connection via right-click.
I refresh the servers and reconnect to the specific server and database.
The server connection indicator is green
Go to views, right-click on a view and select "Script as create, drop or alter".
I get an error "An error occurred while scripting the objects. Failed to connect to server...".
When I try to do a select top 1000, nothing happens.
I need to re-open Data Studio to be able to resume.

Exception Message:
Microsoft.SqlServer.Management.Common.ConnectionFailureException: Failed to connect to server MI-servername.database.windows.net,3342.
---> Microsoft.Data.SqlClient.SqlException (0x80131904): Login failed for user ''. Token is expired.
at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool)
at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at Microsoft.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)    at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions)
at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)
at Microsoft.SqlServer.Management.Common.ConnectionManager.InternalConnectImpl()
at Microsoft.SqlServer.Management.Common.ConnectionManager.InternalConnect()
at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()
ClientConnectionId:76c839b7-1ac7-453d-9521-57e404f0a6a8
Error Number:18456,State:233,Class:14
--- End of inner exception stack trace ---
at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()
at Microsoft.SqlTools.ServiceLayer.Scripting.ScriptAsScriptingOperation.Execute() in D:\a_work\1\s\src\Microsoft.SqlTools.ServiceLayer\Scripting\ScriptAsScriptingOperation.cs:line 168

Hi @tobiasleth
We did improve this further with the new "mssql:EnableSqlAuthenticationProvider" setting. Please try enabling it as it enables integration of access token lifecycle with the underlying driver.

Hi @cheenamalhotra ,
Thank you for the swift response. I will try this throughout the day. No connection issues if I stick to scripts only. However, saving changes from table designer now generates too many auth requests so that scripting fails the following period with AAD Throttling errors. As mentioned in the original post, designer wasn't affected by the timeout issue.
To reproduce:

enable mssql:EnableSqlAuthenticationProvider
Open table designer
Change column and save
Preview generation now runs for a long time
During this period you can't use "create" or "select top 1000" due to AAD throttling.

Exception:
Microsoft.Data.SqlClient.SqlException (0x80131904): Failed to authenticate the user  in Active Directory (Authentication=ActiveDirectoryInteractive).
Error code 0xinvalid_grant
Your app has been throttled by AAD due to too many requests. To avoid this, cache your tokens see https://aka.ms/msal-net-throttling.
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.GetFedAuthToken(SqlFedAuthInfo fedAuthInfo)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OnFedAuthInfo(SqlFedAuthInfo fedAuthInfo)
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool)
at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at Microsoft.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at Microsoft.Data.ProviderBase.DbConnectionFactory.<>c__DisplayClass48_0.b__0(Task1 _)    at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at Microsoft.SqlTools.ServiceLayer.Connection.ReliableConnection.ReliableSqlConnection.<>c__DisplayClass30_0.<b__0>d.MoveNext() in /_/src/Microsoft.SqlTools.ManagedBatchParser/ReliableConnection/ReliableSqlConnection.cs:line 317
--- End of stack trace from previous location ---
at Microsoft.SqlTools.ServiceLayer.Connection.ConnectionService.TryOpenConnection(ConnectionInfo connectionInfo, ConnectParams connectionParams) in D:\a_work\1\s\src\Microsoft.SqlTools.ServiceLayer\Connection\ConnectionService.cs:line 738
ClientConnectionId:66345d72-2c67-407a-a081-5f8e49f3d3cd

Certainly, that's a known issue, we're tracking in #22403

Hi @tobiasleth
The issue and related issue #22403 has been addressed in the latest insiders build, with the setting "mssql:EnableSqlAuthenticationProvider" now enabled by default. This will be included in upcoming May release.
Closing issue as resolved.


Fix axml missing ns / extra style offset

This PR should fix the issues #280 and #281.
There are also extra unit tests for those cases.

this one should also fix #283


Update index.mdx

"3 hosting accounts per person"

Why was this changed? I suppose it was to be in line with the next sentence, but technically 3 accounts/email was more correct in the sense that this is how iFastNet is checking that (if I'm not mistaken, at least).

I could probably change it to something along the lines of "3 accounts per email address and person", but that would just make it more complicated.

Agreed, there is no need for that. The intention is per person, so it's correctly reflected as such, I suppose.


Don't Merge! PR real time test for source branch full build

Docs Build status updates of commit 729cc84:
:clock10: Full build: the average full build time is 7 min(s) 44 sec(s), this is based on the last 30 build(s) for this repository.

Docs Build status updates of commit 729cc84:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Latest release package will not import as a release available

I suspect https://github.com/repman-io/repman/issues/83 is related.
I bumped a package from 1.x .xto 2.x.x, however, new version is not appearing (using hosted offering)

Issue resolved. Bad composer.json in source package, my bad.


[BUGFIX] Upgrade @react-native-community/art

ART breaking in RN 0.62.rc-0.
error: Error: Unable to resolve module<EMAIL_ADDRESS>react-native/Libraries/vendor/core/merge could not be found within the project.
Original issue: #48

@oblador Can you take a look, please? RN 0.62 is now officially out, and this issue/fix is relevant.

Commenting for visibility

same here after update version to 5.0.0


Problem importing Sizer

I have my dart SDK at version: 3.3.2, and my flutter at version 3.19.4 and devTools at version 2.31.1, I'm trying to use Sizer at version 3.0.0 and it's accepted in my app but when I import it into the main
return Sizer (builder: (context, orientation, screenType) {
      return MaterialApp(
        navigatorKey: NavigationService.navigatorKey,
        localizationsDelegates: const [

It has a problem not finding Sizer in the dependencies....
Has there been a change in the class? Is there another way to call Sizer?
I did a test and put it in version 2.0.15 in this version it can already find the package to perform the import, so I was in doubt if there was any change at the time of calling this class in my main.
Eu tento realizar o import manual import 'package:sizer/sizer.dart'; porem tenho o seguinte alerta
Unused import: package:sizer/sizer.dart. Try removing the import directive

Use ResponsiveSizer. README is outdated, unfortunately.

@RMatushkin the ResponsiveSizer package ?

@RMatushkin the ResponsiveSizer package ?

No, of course not. Use widget ResponsiveSizer instead of Sizer from import 'package:sizer/sizer.dart';

Ok thx

I have having the same issue.. then 2.0.14 was suitable from last day ..but now reading this issue I have just changed the widget with latest version.


Google Cardboard optimizations?

First off, great lib here!
So, I've got a stereo image demo running on an iPhone 7 with a Google Cardboard and it's looking pretty good, but a tad fuzzy/blurry. I was just curious if there were any settings or optimizations I could play with... Also, I tried loading my own equirectangular image in there, which didn't work so I stacked two of them on top of each other in Photoshop, but still not quite right. So I was wondering if you had any tips for creating assets for this lib.
Any thoughts would be much appreciated, thanks!

Hi @stursby
Thanks for your feedback, and sorry for the late reply 🙇
For best quality:

4096×2048 for mono (2:1 aspect ratio) images
4096×4096 for stereo (1:1 aspect ratio) images

If your own image is mono, edit line 45 in Examples/StereoImage/Sources/ViewController.swift:
// from
panoramaView.load(#imageLiteral(resourceName: "Sample"), format: .stereoOverUnder)
// to
panoramaView.load(#imageLiteral(resourceName: "YOUR_IMAGE_NAME"), format: .mono)

If 4096 pixels are still not enough for you, unfortunately we can not achieve further quality at this time.


Optimize sql queries

Expected Behavior
We are making an unnecessary amount of sql queries. We should try to limit them to potentially one per update if possible.
Current Behavior

Steps to Reproduce

Possible Solution (Not obligatory)

Your Environment

Node version :
Operating System and version :

SQL will no longer be necessary after https://github.com/UnstoppableSwap/unstoppableswap-gui/pulls


Installation Issue

Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.4/services/HUE/package/scripts/hue_server.py", line 76, in
HueServer().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.4/services/HUE/package/scripts/hue_server.py", line 18, in install
download_hue()
File "/var/lib/ambari-agent/cache/stacks/HDP/2.4/services/HUE/package/scripts/common.py", line 57, in download_hue
Execute('{0} | xargs wget -O hue.tgz'.format(params.download_url))
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 155, in init
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 273, in action_run
tries=self.resource.tries, try_sleep=self.resource.try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
result = function(command, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
tries=tries, try_sleep=try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 293, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'cat /etc/yum.repos.d/HDP.repo | grep "baseurl" | awk -F '=' '{print $2"hue/hue-3.11.0.tgz"}' | xargs wget -O hue.tgz' returned 123. --2017-02-01 12:46:09--  http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/<IP_ADDRESS>hue/hue-3.11.0.tgz
Resolving public-repo-1.hortonworks.com... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to public-repo-1.hortonworks.com|<IP_ADDRESS>|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-02-01 12:46:10 ERROR 404: Not Found.

Hi subu1979:
Sorry to reply late!
The question：

There is no HUE installation package in this repository. I think you should compile the HUE-3.11.0 and use a repository with the HUE installation package. If not,you may need to modify the code with the error section.

Thanks for your reply...

I just ran into the same issue, but in my case there is a hue release sitting in my local repository at http://edge/HDP/centos6/update/2.x/updates/2.5.3.  I locally patched the awk -F command shown above in params.py:
download_url = 'cat /etc/yum.repos.d/HDP.repo | grep "baseurl" | awk -F '=' '{print $2"/hue/hue-3.12.0.tgz"}''
It needs a missing slash in the awk command (i.e., /hue) so the URL changes from http:///HDP/centsos6/2.x/updates/<IP_ADDRESS>hue/... to http:///HDP/centos6/2.x/updates/<IP_ADDRESS>/hue/...
I tried to add a slash to the HDP.repo which is what is being catted and grepped, but apparently during the install, that file is being rewritten by yum (repsumably) and removes the trailing slash before it gets to this awk command.

Hi eljefewatson:
You should try to modify the URL in Ambari repository base URL,and add a slash to URL. For example:

Perhaps you can modify the command in params.py.

I experience the same problem as in the original post (although the url is different - http://s3.amazonaws.com/dev.hortonworks.com/HDP/centos6/2.x/BUILDS/<IP_ADDRESS>-1245/hue/hue-3.11.0.tgz). So, my questions are:

Why does this problem occur using the original instruction and default settings?
What are the exact actions one should accomplish to successfully pass through the installation?

Thanks in advance!

Hi Ultimacho:
1.There is no the Hue install-package in the original repository.
2.If you want to install the Hue successful,first of all,you need to compile the your Hue install-package. Then, It is necessary to modify the original URL with the Hue install-package or modify the code with download_url in the params.py file.

Could you please explain more? HDP repository for Centos has RPM packages, not TGZ. I can see in params.py you are creating a download_url by using HDP repo path and adding hue/hue-3.11.0.tgz. I tried to search through HDP repos and never found any TGZ file. How this download_url suppose to work in the first place?
If this TGZ doesn't exist, how should I create it by myself (as you suggested in last comment)? Sure I can compile official release, but what should I put in the installation TGZ anyway?
I assume it worked in the past. Maybe something has changed recently? Any help appreciated. Thanks!

Hi MichalMichalak:
If you want to use  HDP repository, there is no RPM packages for Hue.But I was downloading the HDP repository and adding hue-3.11.0.tgz to the HDP path.
I suggest you compile the TGZ and add the TGZ to a path.Then you can modify the download_url by using this path.

So in other words: I must download original Hue release TGZ, unpack, compile it by myself, pack compilation result back to TGZ and then point a download URL to it. Correct?

@MichalMichalak yes,i meet the same situation.
compile hue yourself pack result back.

@wuya2357 Thanks for confirmation. I am afraid it isn't worth the effort, though. Ambari views gave me all what I needed, and they are there by default. I pass in this case. :)

I got the same problem, and I fixed it by the followings.

From this link Hue Issue 425 I found that they've put hue 3.11.0 here: http://gethue.com/downloads/hue-3.11.0.tgz

So I modified /var/lib/ambari-agent/cache/stacks/HDP/2.6/services/HUE/package/scripts/params.py like this:
download_url = 'echo http://gethue.com/downloads/hue-3.11.0.tgz'
hue_version_dir = 'hue-3.11.0'

Then added one line in download_hue() method in /var/lib/ambari-agent/cache/stacks/HDP/2.6/services/HUE/package/scripts/common.py to rename the folder from hue-3.11.0 to hue.
#Ensure all Hue files owned by hue
Execute('mv {0}/{1} {2}'.format(params.hue_install_dir, params.hue_version_dir, params.hue_dir))
Execute('chown -R {0}:{1} {2}'.format(params.hue_user,params.hue_group,params.hue_dir))

Re-install Hue Server from Ambari and it worked.


Improve CI to support UI MetaMask testing

Check out, what's currently hot in the crypto space to for testing your dApp behavior with brave/metamask. Find any relevant sapphire-paratime issues related to this (https://github.com/oasisprotocol/sapphire-paratime/issues/242 ?).
cc the Wallet/dApp team @lubej @lukaw3d

I was looking at these to automatically make screenshots in https://github.com/oasisprotocol/dapp-onramp with playwright:

https://github.com/cawabunga/headless-web3-provider/blob/6bea0e7c72fb07bce4d0ef50149a47762bb5f644/src/wallet/SignMessageMiddleware.ts#L15
https://github.com/rsksmart/mock-web3-provider/blob/fc4897318246403a179c4fd446bd38e3070ba84e/src/index.ts#L78

We test some of ROSE Wallet - Extension with playwright like this:

https://github.com/oasisprotocol/wallet/blob/e90e33cb5f7535c3504bbf512d18c4544e32cd4d/playwright/utils/extensionTestExtend.ts#L25
https://github.com/oasisprotocol/wallet/blob/e90e33cb5f7535c3504bbf512d18c4544e32cd4d/playwright/tests/extension.spec.ts#L22

this opens chrome-extension://ppdadbejkmjnefldpcdjhnkpbjkikoip/popup.2d61f0d3.html in a tab.
(our ext wallet doesn't need to communicate with any dApps. not sure if that would work)

@matevz mentioned that we ought to incorporate this level of integration testing for demo-starter projects so that devs will have a testing framework as a default.


[Bug Report] PDC is not available in 1.12.2

Describe the bug
It spams the console with errors when right-clicking a chest, or just every second or so. I believe it's caused by 1a82d79. PDC was added in 1.14 or 1.15 if I remember correctly, not in 1.11.
Versions (please complete the following information):

Minecraft Server Version: 1.12.2
Plugin Version: legacy branch (1a82d79)

*Do NOT say Latest use /version crazyenvoy in the console.
Pastebin any errors in console
Link: https://mclo.gs/LcJnWHs
Issue
Screenshots

Fixed in these commits on the legacy branch.


feat(steamos-update): Initial support for Universal Blue updater

This implements ublue-update in steamos-update, replacing the usage of rpm-ostree. This will allow for not only system updates, but flatpak updates and distrobox updates as well

Ideally, checking for update availability is something I'm going to be able to move over to ublue-update instead of leaving it here


When I set cell styles, the file size goes really larger

Description
I set cell styles to make cell unlocked so that I can protect the sheet by specifying range .
But when I set cell styles(A1:W20000), the file size goes really larger( maybe 15kb -> 900kb )
style content is like below
{
		 "alignment": {
		   "vertical": "top",
		   "wrap_text": true
		 },
		 "protection": {
		   "locked": false
		 },
		 "font": {
		   "family": "Times New Roman"
		 }
}

Steps to reproduce the issue:
0. read a excel that already existed

use NewStyle()
use SetStyle()
use WriteToBuff()
use ioutil.WriteFile to make buff a file

Describe the results you received:

the excel file size goes larger(15kb -> 900kb)
some styles are set to default value.(e.g. alignment.vertical=bottom )

Describe the results you expected:
can i receive a small size excel file?
or if there's another way to lock the Sheet?
Thanks !
Output of go version:
1.16

SetCellStyle binding style for each cell in the specified range, so the document size will grow, same as the spreadsheet created by the Excel application.

SetCellStyle binding style for each cell in the specified range, so the document size will grow, same as the spreadsheet created by the Excel application.

when I set cell styles**(just unlocked or locked)** in Excel. The file's size won't be changed from 15kb -> 900kb.
but when I used excelize to do this, the files size really confused me.

If you wanna set the style for all cells of the worksheet (as a select range by Ctrl+A), like this:
f.SetColStyle("Sheet1","A:XFD",styleID)

and this library doesn't support set single rows style currently, I'll add support SetRowStyle later.

If you wanna set the style for all cells of the worksheet (as a select range by Ctrl+A), like this:
f.SetColStyle("Sheet1","A:XFD",styleID)

and this library doesn't support set single rows style currently, I'll add support SetRowStyle later.

Thanks a lot .
But why i set cell style like below, it will change my default cell style(e.g. font color from red to black).
{
		 "protection": {
		   "locked": false
                  }
}

Note that SetColStyle and SetCellStyle will overwrite the style for the cell, it won't append or merge style with existing styles, so you can create a style that contains font color and protection.

Note that SetColStyle and SetCellStyle will overwrite the style for the cell, it won't append or merge style with existing styles, so you can create a style that contains font color and protection.

Thanks ❤

I have added a new API: SetRowStyle support for set style for the rows, please try to upgrade the master branch code.


05-led-roulette | cargo embed crashes on (gdb) target remote :1337 with During the execution of GDB an error was encountered: failed to fill whole buffer

05-led-roulette | cargo embed crashes on (gdb) target remote :1337 with During the execution of GDB an error was encountered: failed to fill whole buffer.
Coming at this with zero domain knowledge (never even used GDB) so could use some help. Running Ubuntu 22 and following along with Microbit v2.

Oh and on gdb's side of thing:
(gdb) target remote :1337
Remote debugging using :1337
warning: while parsing target description (at line 4): Target description specified unknown architecture "armv7"
warning: Could not load XML target description; ignoring
Truncated register 16 in remote 'g' packet

Oh and on gdb's side of thing:
(gdb) target remote :1337
Remote debugging using :1337
warning: while parsing target description (at line 4): Target description specified unknown architecture "armv7"
warning: Could not load XML target description; ignoring
Truncated register 16 in remote 'g' packet

Yes! This has to do with the compiler and gdb. gdb on your system works for probably x86 architecture but you are trying to run it on a program compiled and running on ARM. If you followed all the installing instructions in this tutorial so far, you should have a specific version of gdb installed. In your terminal do ls /bin | grep "gdb". This should return you all gdb related binaries. For me on arch it is arm-none-eabi-gdb and on ubuntu it should be something like gdb-arm-none-eabi. If there is nothing of the sort, you should install it via apt-get. Then run gdb-arm-none-eabi target/thumbv7em-none-eabihf/debug/led-roulette, assuming that this is the correct binary for ubuntu. Hope that helps.

I am using Kubuntu as my Linux distro with a micro:bit 2.21
I am now in discovery/microbit/src/05-led-roulette/
This is how i solved it:

Run sudo apt install gdb-arm-none-eabi
Run cargo embed --features v2 --target thumbv7em-none-eabihf and do not terminate the process. Also I noticed that cargo-embed is using too much CPU (nearly 25%) and i don't know why
Go back 2 directories to microbit/ and run gdb-multiarch target/thumbv7em-none-eabihf/debug/led-roulette
Run target remote :1337

I had the same problem on Arch (Manjaro). I roughly followed the steps above, the arch package is: https://archlinux.org/packages/community/x86_64/arm-none-eabi-gdb/
sudo pacman -S arm-none-eabi-gdb
arm-none-eabi-gdb target/thumbv7em-none-eabihf/debug/led-roulette

yeah, the key is to run gdb-multiarch instead of just gdb

I can additionaly add If someone working on Windows then the key is to run arm-none-eabi-gdb instead of gdb, which you should have installed as dependency and add to Path in 3.2 Chapter of the Discovery book


fix(host/region): fix import servers from libvirt

make servers_import_from_libvirt workable in container environment.
bindmount libvirt monitor dir to host container and use procutils read
guest xml configure.
Signed-off-by: wanyaoqi<EMAIL_ADDRESS>What this PR does / why we need it:

Does this PR need to be backport to the previous release branch?:

/cc @swordqiu @zexi


Songs played too fast + pitch

Hey all,
I installed raspotify together with snapserver on my Pi4 (raspbian). It worked mostly out of the box. I only added the appropiate pipe in the raspotify config file:
BACKEND_ARGS="--backend pipe --device /tmp/snapfifo"
My Spotify Connect on cellphone recognized the device and music was played and outputtet. So far, so good.
The only (annoying) issue is that all songs are outputted a little to fast and with a minimal pitch.
I could not find anything while searching the Web and also no equivalent possible entries in config files to "fix" that.
Does anyone else has experienced this before?
Hope you can help! This is an awesome project and super cool for home audio systems and I would love to use it!
Thanks!!

I have the same problem but unfortunately no solution until now

I have the same problem but unfortunately no solution until now

Hey @marcianito ,
You have to add to your snapserver.conf the stream:
[stream]
stream = pipe:///tmp/snapcast/snapfifo?name=Snapserver&sampleformat=44100:16:2

If you change the sampleformat it runs in the normal speed
Hope this helps!

Hey @marcianito ,
You have to add to your snapserver.conf the stream:
[stream]
stream = pipe:///tmp/snapcast/snapfifo?name=Snapserver&sampleformat=44100:16:2

If you change the sampleformat it runs in the normal speed
Hope this helps!


Rewrote recalc command, added all scores recalc

Tested and all working fine for me, also logging all possible errors (should it logged only with debug is on?).

Oof, forgot about check valid mode combinations

Also i think there should be filter by mode_vn for more flexibility?


client: record tso wait time

What have you changed? (required)
Record tso command wait time (the time Wait() uses)
What are the type of the changes (required)?

Improvement (non-breaking change which is an improvement to an existing feature)

How has this PR been tested (required)?
none
Does this PR affect documentation (docs/docs-cn) update? (optional)
Refer to a related PR or issue link (optional)
grafana PR (TBD)
Benchmark result if necessary (optional)
Add a few positive/negative examples (optional)

LGTM

LGTM

/rebuild


[Audio] How to record audio?

Is your feature request related to a problem? Please describe.
How to record audio for SIG21 course to use?
Describe the solution you'd like

We record everything from certain users' perspectives, e.g., record from the teacher's side and one of the students' side. Thus, OBS or similar software is enough for windows users. We need to figure out if Pico Neo has any video/audio support.
We record the audio via the program. So we can replay afterward for VR users to experience, in addition to only for video users to watch.
2.1) how to record via the web, https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Recording_API
2.2) how to play the audio while the audio source is moving on the web.

It seems working with Corelink is a good option.


Proposal to de-nest VesselType

Let's refactor VesselType to be subfields of the Vessel message:
message Vessel {
  // Vessel type (flask, vial, well-plate, etc.).
  enum VesselType {
    UNSPECIFIED = 0;
    CUSTOM = 1;
    ROUND_BOTTOM_FLASK = 2;
    VIAL = 3;
    WELL_PLATE = 4;
    MICROWAVE_VIAL = 5;
    TUBE = 6;
    CONTINUOUS_STIRRED_TANK_REACTOR = 7;
    PACKED_BED_REACTOR = 8;
    NMR_TUBE = 9;
    PRESSURE_FLASK = 10;  // E.g., sealed tube
    PRESSURE_REACTOR = 11;  // High-pressure (e.g., Parr bomb reactor)
    ELECTROCHEMICAL_CELL = 12;
  }
  VesselType type = 1;
  // Include details such as "multi-neck" for ROUND_BOTTOM_FLASK,
  // "J. Young" for NMR_TUBE, etc.
  string details = 2;
  // Vessel material (glass, plastic, etc.).
  VesselMaterial material = 3;
  // How the vessel was prepared for the reaction.
  repeated VesselPreparation preparations = 4;
  // Vessel attachments (septum, cap, gas adapter, etc.).
  repeated VesselAttachment attachments = 5;
  // Size (volume) of the vessel.
  Volume volume = 6;
}

The extra level of nesting that requires VesselTypeEnum isn't necessary.

Also, we should do the same thing for IlluminationType.

Also, we should do the same thing for FlowType.

And we should rename TubingMaterialType -> TubingType.

Also, we should do the same thing for ElectrochemistryType.

Should the same be done for similar nested subfields like VesselMaterial, VesselPreparation, and VesselAttachment? The final structure would look like this:
message Vessel {
  // Vessel type (flask, vial, well-plate, etc.).
  enum VesselType {
    UNSPECIFIED = 0;
    CUSTOM = 1;
    ROUND_BOTTOM_FLASK = 2;
    VIAL = 3;
    WELL_PLATE = 4;
    MICROWAVE_VIAL = 5;
    TUBE = 6;
    CONTINUOUS_STIRRED_TANK_REACTOR = 7;
    PACKED_BED_REACTOR = 8;
    NMR_TUBE = 9;
    PRESSURE_FLASK = 10;  // E.g., sealed tube
    PRESSURE_REACTOR = 11;  // High-pressure (e.g., Parr bomb reactor)
    ELECTROCHEMICAL_CELL = 12;
  }
  VesselType type = 1;
  // Vessel material (glass, plastic, etc.).
  // Include details such as "multi-neck" for ROUND_BOTTOM_FLASK,
  // "J. Young" for NMR_TUBE, etc.
  string details = 2;
  enum VesselMaterial {
    UNSPECIFIED = 0;
    CUSTOM = 1;
    GLASS = 2;
    POLYPROPYLENE = 3;
    PLASTIC = 4;
    METAL = 5;
    QUARTZ = 6;
  }
  VesselMaterial material = 3;
  // How the vessel was prepared for the reaction.
  enum VesselPreparation {
    UNSPECIFIED = 0;
    CUSTOM = 1;
    NONE = 2;
    OVEN_DRIED = 3;
    FLAME_DRIED = 4;
    EVACUATED_BACKFILLED = 5;
    PURGED = 6;
  }
  repeated VesselPreparation preparations = 4;
  // Vessel attachments (septum, cap, gas adapter, etc.).
  // Include attachment specifications in details, e.g., "rubber" for SEPTUM,
  // "Teflon" for CAP, "water jacket" for REFLUX_CONDENSER, etc.
  // Also include sealing details, e.g., "electrical tape", "parafilm", etc.
  enum VesselAttachment {
    UNSPECIFIED = 0;
    NONE = 1;
    CUSTOM = 2;
    SEPTUM = 3;
    CAP = 4;
    MAT = 5;  // e.g. a covering for a well plate.
    REFLUX_CONDENSER = 6;
    VENT_NEEDLE = 7;
    DEAN_STARK = 8;
    VACUUM_TUBE = 9;
    ADDITION_FUNNEL = 10;
    DRYING_TUBE = 11;
    ALUMINUM_FOIL = 12;
    THERMOCOUPLE = 13;
    BALLOON = 14;
    GAS_ADAPTER = 15;  // E.g. a ground-glass adapter with a gas line.
    PRESSURE_REGULATOR = 16;
    RELEASE_VALVE = 17;
  }
  repeated VesselAttachment attachments = 5;
  // Size (volume) of the vessel.
  Volume volume = 6;
}

Is this what you have in mind?
Also, does anything need to be done to preserve the subfield numbering?

It's not possible to have multiple enums inside the same message with the same names AFAIK. The reason to keep the vessel information nested is because the VesselType, VesselMaterial, VesselAttachment would have conflicting UNSPECIFIED, NONE, and CUSTOMs

I'm mostly reacting here to "{}TypeEnum", which I think is an anti-pattern. I also think most messages of this kind should have a top-level details field to capture general things, and refactoring e.g. VesselType to top-level type/details fields with a VesselType enum provides this. So I don't think we should do this for everything; just these anti-patterns. Connor is right that it wouldn't even be possible to de-nest everything with the non-prefixed naming scheme we've chosen to use.

I see, understand now. Fixed that, should be in format Steve suggested. Implementing for other "{}TypeEnum"s

What about, e.g., StirringMethodType?

What about, e.g., StirringMethodType?

Yes, I think that one too; that will provide a top-level details field for StirringConditions.
@connorcoley hasn't said yet whether he likes this idea at all, though :)

What about, e.g., StirringMethodType?

Yes, I think that one too; that will provide a top-level details field for StirringConditions.

The naming here can become slightly ambiguous/vague if treated similarly to the renaming of TubingMaterialType -> TubingType. E.g., that one and StirringMethodType -> StirringType aren't so bad, we sort of know what "tubing type" and "stirring type" mean. The analogous PressureControlType -> PressureType and TemperatureControlType -> TemperatureType are a little confusing as to what "pressure type" and "temperature type" mean, though. For now, I instead left as StirringMethod, PressureControl, and TemperatureControl enums, since their higher level message fields are method, control, and control, respectively. Does this make sense, or should they be converted to {}Type with renamed fields {}Type type?

Yeah, I think those ones have names with justified complexity; TubingMaterialType seemed like an outlier to me, but I don't feel strongly if we want to keep "Material" in there.

SGTM, I used TubingType since the field name is type anyway

Is there a reason electrochemistry_type and flow_type are named such in their messages and not just type? Realized I converted them to type when de-nesting; should they be reverted to avoid breaking anything?

I think it's fine to rename these to type for consistency with the other messages. As before, we'll need to save a copy of the original proto as reaction_old.proto and write a script to convert existing datasets---so it's ok to update the tag numbers here. Once we hit v1.0 we'll have to deprecate/reserve tag numbers instead.