linestring getLength not returning expected value

I am using getLength to retrieve the linestring length.
For the same segment:
1- when using google map measure tool, I get 228m
2- when using IGN geoportail measure tool, I get 228m
3- when I use e.feature.getGeometry().getLength() I get 330m
Here are the flat coordinates:
e.feature.getGeometry().getFlatCoordinates() :
[571382.4214041593, 5723486.068714521,<PHONE_NUMBER>605105, 5723741.65502785]
in 4326:
[5.132815622245775, 45.644023326845485, 5.134714626228319, 45.64562844964627]
When I check the coordinates position on either ol3 or google map, I get the same points. The difference must come from the calcul...
Did I miss something and I should not use the getLength method? Please give me some direction if you think this is not an issue.

I've done many tests and I get a 1.44 factor all the time between the distances. Maybe it's a unit problem. But I though the default unit in ol3 was meter...

well for the moment, I'll just divide my result by 1.44

I am not sure but maybe the other frameworks use geodesic measurements? Check the measure example in ol3 which has a geodesic option.

Please don't cross-post in multiple systems:
http://gis.stackexchange.com/questions/142062/openlayers-3-linestring-getlength-not-returning-expected-value

I think Your coordinate spacing is too small for geodesic to make a difference. Do you get a better result with a latitude near the equator?

@bartvde  Crossposting is a good way to rush people, I don't expect everybody to read the ol3 issues.
I've changed my length calcul to use geodesic, I get an exact answer now.
    var wgs84Sphere = new ol.Sphere(6378137);
    var coordinates = e.feature.getGeometry().getCoordinates();
    var length = 0;
    var sourceProj = map.getView().getProjection();
    for (var i = 0, ii = coordinates.length - 1; i < ii; ++i) {
      var c1 = ol.proj.transform(coordinates[i], sourceProj, 'EPSG:4326');
      var c2 = ol.proj.transform(coordinates[i + 1], sourceProj, 'EPSG:4326');
      length += wgs84Sphere.haversineDistance(c1, c2);
    }

Now, I don't understand why the getLength doesn't return the same value.
And I also a bit worried by the fact that all ol.Sphere functions (even the constructor) are experimental.

No cross-posting is actually quite rude, and increases your chances of getting ignored.
Most developers use github notifications and are subscribed to the openlayers-3 tag on stack overflow, they will get notified twice.
Please only open up a github issue once you've confirmed and are sure it's a bug in the library.

Ok, fine, I was not aware of your organisation, so is it better to post on stackexchange first, and then post an issue here if the bug is confirmed? I didn't mean to be rude but just to help by alerting on a suspect behavior

@mylen Yes, questions go to stackoverflow, and if a bug / misbehaviour is confirmed there, open an issue here. If you are quite sure you have discovered a bug, you may skip the stackoverflow question, but of course it wouldn't hurt to ask there first.

Mylen, you get the factor of 1.4 on EPSG:3857 (Web Mercator) because 1 / cos (latitude of 45.6 N) is about that and your points are around 45.6 degrees North.
With Web Mercator, scale changes with latitude (see the Wikipedia article on the Mercator Projection for more details). The method ol.geom.LineString.prototype.getLength will only work (give accurate answers in metres) for short lines near the equator.
Currently, the comment / API doc for the method is this
/**

@return {number} Length (on projected plane).
@api stable
*/

I think that is not telling the whole story - IMHO a stronger health warning is needed. It should perhaps say that the returned units are not always metres. There are other object methods in ol.geom that will have similar issues e.g. Polygon.getArea
Perhaps this issue should be reopened until the docs are sorted.
Personally I am not convinced that the methods should be 'api stable' as they are so dangerous for use with Web Merctor. Even relative comparisons of lengths / areas are not possible with geometries at significantly different latitudes.

Pull requests are always welcome.

I could do that. Its a fair fit with my pending graticule work.
On 10 Apr 2015 16:42, "Marc Jansen"<EMAIL_ADDRESS>wrote:

Pull requests are always welcome.
—
Reply to this email directly or view it on GitHub
https://github.com/openlayers/ol3/issues/3533#issuecomment-91596900.

I am not convinced that the methods should be 'api stable' as they are so dangerous for use with Web Merctor

I think the assumption is (and IMO should be) that those using the API know the limitations of using global projections like Mercator. The method is 'stable' in that it's not going to change. Whether it's useful or not is another matter :-) IMO OL2 was more helpful in this respect in having getGeodesicLength/Area methods (Vincenty rather than Haversine) as well as simple planar ones. Haversine is exported currently. Vincenty is available in the source (under ellipsoid/), but this is not currently exported in the standard build.

@probins, when you make an assumption :

the assumption is (and IMO should be) that those using the API know the limitations of using global projections like Mercator

You mean that the usage of openlayers is targeted for expert? I'm not sure that only geographers are using it .
If there is a problem with length calculation in the Mercator projection, why is it used as default on the map, could you give me an example of a use of getLength in a mercator projection?

I agree with Mylen. More of a worry to me is that there is no good/easy solution.
The Geometry classes do not record the projection of their points, so that length and area methods returning answers in metres and square metres (or other projection units) can not be implemented by them without significant changes. Even if they did know their own projection, we would not want per projection calculations in the geometry classes. IMHO the length / area maths belongs in the projection classes.
Either the length and area methods in ol.geom.Geometry classes would have to take an ol.proj.ProjectionLike parameter so that appropriate maths can be done, or else the area and length methods are moved elsewhere - e.g. to the ol.proj.Projection objects.
The latter make most sense to me. An ol.proj. Projection could be required to provide functions to calculate a Geometry length / perimeter, in projection units (often metres),  and its area, in square projection units (often square metres). Having to pass a ProjectionLike into ol.geom.Geometry class length and area methods when the developer already knows (or should) the projection of the coordinates in the Geometry, would seem odd.
For 'local' projections like UTM and the UK National Grid (which have very near uniform scale across their extent) , simple maths as already exists in ol.geom.flat.lengthflatgeom and ol.geom.flat.areaflatgeom, will suffice. Perhaps some of the old OL2 code could be reused for the 'global' Web Mercator (3857)  and Lat/Lon (4326) length and area calculations.

but won't the methods in ol.Sphere/ol.Ellipsoid, as used in the scaleline control and the measure example, suffice? This is independent of projection. Do you actually need per projection calculations? I'd agree that it's potentially confusing for people who aren't aware of these issues (99+% of the population) that getLength isn't appropriate for 3857, but I don't think it's the job of API docs to discuss these issues. They could usefully point people to the measure example when using 3857 and similar projections. And, as I say, IMO the API would be better if there were (stable) geodesic methods on the geometries as in OL2.

Re-opening because this is turning into a good discussion.

Thanks for re-opening. There are several solution options to think about.

the text in the measure example could be improved too. "Earth curvature is not taken into account" isn't really correct. The whole point of projections is that they do take curvature into account. The issue is that they have different priorities. Mercator isn't intended for measuring distance or area, so getLength/Area isn't appropriate here. On the other hand, I would be pretty sure that getLength, for example, on the OSGB projection that @bill-chadwick mentions will be more accurate than Haversine.

I am coming round to the idea that the Geometry classes should know the projection of their coordinates. We could add an optional projectionLike parameter to the Geometry constructors (defaulting to EPSG:3857) and store the projectionLike as a class member. This new member would be updated if the Geometry is transformed using ol.geom.Geometry.prototype.transform but would need a setter method call after using ol.geom.Geometry.prototype.applyTransform (or the applyTransform method should be removed).
If the Geometry classes know their projection, then the getLength and getArea methods could use ol.Sphere / ol.Ellipsoid methods for projections where ol.proj.Projection.prototype.isGlobal returns true and the existing ol.geom.flat.lengthflatgeom and ol.geom.flat.areaflatgeom if isGlobal returns false. The returned length units would normally be metres and the area units metres x metres. However for non-global projections with other distance units, like feet, then the returns would be in e.g. feet or feet x feet.

We have discussed to let geometries know their projection in the past, but decided against it for several reasons.

alternatively, you could move that decision into userland, and pass in a parameter: say, projected plane as default, or 'h' for Haversine, 'v' for Vincenty: getLength('h')
Another oddity of getLength at the moment is that if your view is in 4326 you get a 'length' in decimal degrees - I struggle to think how you could use that :-)

Vincenty and Haversine work on 4326 coords, how would we know the projection to transform from ?

true. 'Pass in 2 parameters ...'

true. 'Pass in 2 parameters ...'

Makes sense to me, and would be consistent with other functions.

Should the params should be optional and the defaults be Haversine and 3857 ?

or perhaps default to Haversine for 3857 and 4326 and Projected Plane for non 'global' projections.

Haversine as default yes, but no default for the projection. So projection mandatory, and method optional.

I did a bit on this last night and plan to have a PR ready in a few days. I will add some new length and area method tests.
I propose calculation methods of 'CARTESIAN', 'HAVERSINE' and 'VINCENTY' though 'CARTESIAN', 'SPHERICAL' and 'ELLIPSOIDAL' might do instead (any opinions as to which are best?). The functions do not need a projection for the 'CARTESIAN' method though they could return NaN if projection units are degrees (4326) and the method is 'CARTESIAN'.
Calculation method will default to 'HAVERSINE' for global projections and 'CARTESIAN' for non global projections.

another issue here is that of units. A really friendly function would give you the ability to define the units 'give me the length in miles'. That could be kept in userland though. Units can also be 'pixels' in which case only cartesian.
IMO 'haversine' and 'vincenty' is better than spherical/ellipsoid, as it's more specific. And I would prefer an abbreviated form like 'h' and 'v' - because I don't like typing :-)

no default for the projection. So projection mandatory

this will always be the view projection though, won't it? Perhaps add a note in the docs that this will normally be view.getProjection()

I guess we would want an enum of geometry distance units and a default units parameter value of metres. We can't really reuse the ol.proj.Units enum as it includes degrees. We would have acres, hectares etc for geometry area units.

To avoid bloat, I think perhaps the length and area methods should always return metres and metres x metres, with any unit conversions being done by the user as required. A unit parameter could always be added later if deemed necessary.

projection mandatory

that also makes this a breaking change, so there'll have to be release notes for this too.

the text in the measure example could be improved

I was going to submit a PR for this, but the example should be changed to reflect this new method anyway (it will be simpler), so I'll hold off on this.

AARGHH!
For convenience, I would like to build ol3 on Windows but the build system is so fragile it drives me mad.
There is some issue with generate-info.js and ('child_process').spawn that is very unreliable. Sometimes (occasionally) the build works other (most) times it fails without generating info.json.
A fix would be MOST welcome.
Incidentally we will need to look at / update ol.interaction.Draw as it calls LineString.getLength

Improvements to the build system are an ongoing effort and should land in master soon. As a result, building on Windows should be possible again soon.

Looks like ol.interaction.Draw is going to unravel my plans a bit.
ol.interaction.Draw uses geometry.setRadius(sketchLineGeom.getLength()); to set the radius of a circle. We can use event.map.getView().getProjection() to find the projection to use for an updated lineString.getLength method in ol.interaction.Draw.prototype.modifyDrawing_ but ...
For the draw interaction to work on a 4326 View I think we would have to allow the use of the Cartesian length calculation method for the 4326 projection (and other projections with units of degrees). To draw circles with non degrees projections requires that lineString.getLength must always return its result in projection units.

http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php is useful for looking at test output on Windows.

I have committed the getLength changes to a branch here
https://github.com/bill-chadwick/ol3/commit/49ca11198a0a627e06722c0bd648761f1b88184e
the getArea change is still TODO.
I have added several tests for the updated getLength method
Feedback welcome.
To think about some more ...
4326 geometry simplification (Doouglas Peuker) at extreme latitudes (where x coords are smaller than y coords)
ol.geom.Circle.setRadius -  'The radius is in the units of the projection.' is a misleading comment for 3857

For 3857, we can calculate LineString length as a summation of line segment rhumbline distances  (on the 3857 sphere).  I believe this should be the default method for 3857 as it is the length of the lines as plotted on the map, rather than a summation of great circle segment length.
see
http://en.wikipedia.org/wiki/Mercator_projection - Formulae for distance section.
This should have better performance than using Haversine or Vincenty.
I think the maths for rhumb line length should go in epsg3857projection.js

I'm not sure this is worth it: I think these days build size and latency are more the issue than performing calculations. And an advantage of having Haversine as default is it should produce the same result as measuring the same line on e.g. GMaps.

I will document that Haversine and Vincenty are great circle methods. Calculation of Rhumb line (loxodrome) length from lat/lon and EPSG:3857 coords uses very similar maths. So for completeness, I do plan to add another Geometry Length Calculation method for Rhumb Lines on the sphere, though will leave out Ellipsoidal Rhumb line maths for now.
see http://www.movable-type.co.uk/scripts/latlong.html
which I will plan to use for data for the tests.
The existing measure example at
http://openlayers.org/en/v3.4.0/examples/measure.html?q=measure
is really rather wrong in several respects.

I pland to add a rhumb line length method to ol.Sphere

I have added spherical Rhumb Line as a length calculation method. I now need to add rhumb line tests for sphere.js where the new rhumb length maths is.

PR here
https://github.com/openlayers/ol3/pull/3609

Updated PR here
https://github.com/openlayers/ol3/pull/3609


Successive render() calls deteriorate the generated rgb frames.

The generated buffer is only valid after the first call to the render() function, successive calls get increasingly corrupted.
ex:
ngp = NGP_fw(...)
ngp.render()  # <- outputs the proper .png
ngp.render()  # <- outputs a degraded .png
ngp.render()  # <- outputs a more degraded .png

Hi, I have fixed this problem with a pr.
Now you can call ngp.render() multiple times.
Also, please check out the function render_frame . This function allow you to render multiple frames and print out the running time.


WIP: Enable topoplotting of subsets of data. Added tests

Added ability to plot a topo for a single condition and chromophore. And added option to specify vmin, vmax, colorbar. And added tests.

FYI: @mshader


gulp build

Error: ENOENT: no such file or directory, stat 'C:\xampp\htdocs\myAngularLaravel\laravel5-angular-material-starter\public\build\css\final-3b08b8dd72.css'
at Error (native)

Similar Error occurred on my application too, I am using windows OS
It seems like Elixer and Windows OS dependent Issue, my bug is marked as Upstream Fix
in the meantime, you can try [https://github.com/laravel/elixir/issues/626](this fix) provided by https://github.com/albertgultom on that thread.


Fix self-reporting of burrow's own progress

Fixes a bug in #528 where burrow's own consumer progress would be ignored by the inmemory storage (my apologies, this was subtly broken in the original PR due to a bad rebase).
While I was diagnosing, I realised the backfill consumer wouldn't self-report burrow's final commit, which isn't really a problem for an active system (there will be more soon) but I've fixed that too.

@timbertson @bai can you release a version with this fix?

Here we go: https://github.com/linkedin/Burrow/releases/tag/v1.3.3 — thanks for poking.


Same variant in multiple lines for order

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-7111 Allow multiple copies of a single variant in the same Checkout


Maximum policy attachements on ClusterLambdaRole

Required Info:

AWS ParallelCluster version: 3.8.0
Full cluster configuration without any credentials or personal data.: mmm, nope.
Cluster name: REDACTED
Output of pcluster describe-cluster command.: Nope.
[Optional] Arn of the cluster CloudFormation main stack: Nope

Bug description and how to reproduce:
The ClusterLambdaRole has the 10 maximum policy attachments on a standard installation. This makes adding policies in a clean way impossible to easily extend access to say an existing S3 bucket that you want to use for Lustre/FSX.  I'd prefer not vender in the entire CFT tree to change your policy layout. What I'd love is if you left even one spot open for a custom policy that I can retrieve in my own IAC stack (outside of CloudFormationTemplate) and then add attachments to that.

same issue with ParallelClusterUIUserRole

my attempts to edit the existing roles' policies hasn't gotten me what I wanted...
I posted more details here https://repost.aws/questions/QUVaQ71ON6SGiR8OoQp7lm5g/how-to-bring-customer-s3-bucket-to-pcluster3-8-0-fsx-lustre

Hello,
Thank you for reporting the issue. For the issue related to ParallelClusterUIUserRole and ParallelClusterLambdaRole reaching the maximum managed policies of 10. I double checked and confirmed the problem. We are tracking the issue internally.
For question posted on repost we will answer it separately
Thanks,
Wanyi


Installation Process broken or needs some documentation

PS C:\WINDOWS\system32> Install-Module -Name PoshNmap
PS C:\WINDOWS\system32> Invoke-Nmap
Invoke-Nmap : The term 'Invoke-Nmap' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ Invoke-Nmap
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Invoke-Nmap:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32> Get-Host | Select-Object Version

Version
-------
5.1.19041.1320

PS C:\WINDOWS\system32> Get-InstalledModule

Version              Name                                Repository           Description
-------              ----                                ----------           -----------
1.4.3                PackageManagement                   PSGallery            PackageManagement (a.k.a. One...
2.2                  PowerShellGet                       PSGallery            PowerShell module with comman...
<IP_ADDRESS>             SnippetPx                           PSGallery            The SnippetPx module enhances...
2.2                  Posh-SSH                            PSGallery            Provide SSH and SCP functiona...
0.6.1                PoshNmap                            PSGallery            A wrapper for NMAP Network Di...

I see now there is 1 line i missed.
"Must have nmap already installed"
Would the above error have been caused because I didn't?

@DanRobinsonHPE confirmed looks like there is an issue on 5.1, it works just fine on Powershell 7, looks to be a packaging issue with the newest version.

In powershell 7.2.2 its not working either:
PS C:\Windows\System32> Install-Module -Name PoshNmap
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A
PS C:\Windows\System32> Invoke-Nmap
Get-Command: C:\Program Files\WindowsPowerShell\Modules\poshnmap\0.6.1\Private\StartNmap.ps1:8
Line |
8 |      $nmapexe = (Get-Command nmap).path
|                  ~~~~~~~~~~~~~~~~
| The term 'nmap' is not recognized as a name of a cmdlet, function, script file, or executable program.
| Check the spelling of the name, or if a path was included, verify that the path is correct and try
| again.
InvalidOperation: C:\Program Files\WindowsPowerShell\Modules\poshnmap\0.6.1\Private\StartNmap.ps1:9
Line |
9 |      & "$nmapexe" $argumentList $computerName
|        ~~~~~~~~~~
| The expression after '&' in a pipeline element produced an object that was not valid. It must result
| in a command name, a script block, or a CommandInfo object.
PS C:\Windows\System32> Get-Host | Select-Object Version
Version
7.2.2
PS C:\Windows\System32> Get-InstalledModule
PS C:\Windows\System32>

@bust4rhymes this module does not install nmap for you, you have to supply it.

@JustinGrote it looks like you have an extra PoshNmap in the load path on line 20 of the manifest file. It should go $PSScriptRoot\lib\Newtonsoft.Json-net40-client.dll. I removed it and the module loaded as expected.

@JustinGrote it looks like you have an extra PoshNmap in the load path on line 20 of the manifest file. It should go $PSScriptRoot\lib\Newtonsoft.Json-net40-client.dll. I removed it and the module loaded as expected.

Found the same - and now I run into
PS C:\windows\system32> Invoke-Nmap www.google.com
ConvertFromXml : Method invocation failed because [Newtonsoft.Json.JsonConvert] does not contain a method named
'SerializeXmlNode'.
At C:\Program Files\WindowsPowerShell\Modules\PoshNMap\0.6.1\Public\ConvertFrom-NmapXML.ps1:41 char:26

...                        (ConvertFromXml ([xml]$hostEntry).host).host | ...

                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (:) [ConvertFromXML], RuntimeException
FullyQualifiedErrorId : MethodNotFound,ConvertFromXML

Trying some work arounds got it to work eventually - now I get
PS> $var = @(Invoke-NMap www.google.com '-p 1-65535 -T4 -A -v')
ForEach-Object: C:\Program Files\WindowsPowerShell\Modules\PoshNmap\0.6.1\Private\FormatPoshNmapHost.ps1:43:32
Line |
43 |          $hostnode.ports.port | foreach-object {
|                                 ~~~~~~~~~~~~~~~~
| Index operation failed; the array index evaluated to null.

@securatodd what version of Powershell are you running? It's only meant for 5.1+

@DanRobinsonHPE confirmed looks like there is an issue on 5.1, it works just fine on Powershell 7, looks to be a packaging issue with the newest version.

i'm having the same problem with Powershell 7.4.0
> Install-Module -Name PoshNmap
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): a

> get-installedmodule

Version              Name                                Repository           Description
-------              ----                                ----------           -----------
0.6.1                PoshNmap                            PSGallery            A wrapper for NMAP Network Discovery

> invoke-nmap google.com
invoke-nmap: The term 'invoke-nmap' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

In the latest version did you export/alias the functions properly?
I'm going to go check.

Works for me on 7.4, fresh install.

Do ipmo poshnmap -passthru |% exportedcommands to verify


[region-isolation] Values captured by an actor isolated closure are transferred into that closure

This PR contains a few different pieces that fix the above mentioned issue:

The first commit ensures that we treat actor isolated closures as capturing things via transfer.
When I looked at how (1) changed some of the tests, I decided to use this as an opportunity to clean up a few instances of the "call site transfers arg or self" since it showed up in the tests I added in (1).
The rest of the commits involved cleaning that up a bit more.
The final commit removes dead code from Sema around OpaqueValueExpr and captures. Originally I thought I needed to handle this, but @xedin and I think that it is dead, so I removed it. Doing more thorough testing on CI will tell.

rdar://121345525

@swift-ci smoke test

@swift-ci smoke test


Setup error after updated to v4.0.0

Describe the bug
A clear and concise description of what the bug is.
After updated to version 4.0.0, I keep getting this setup error:
Logger: homeassistant.setup
Source: custom_components/alexa_media/init.py:174
Integration: Alexa Media Player (documentation, issues)
First occurred: 6:48:51 AM (1 occurrences)
Last logged: 6:48:51 AM
Error during setup of component alexa_media
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
result = await task
File "/config/custom_components/alexa_media/init.py", line 174, in async_setup
CONF_OAUTH_LOGIN: account.get(CONF_OAUTH_LOGIN, True),
NameError: name 'CONF_OAUTH_LOGIN' is not defined
I had completely removed the integration, configuration, and attempted start from the beginning, but the same error occurs every time I restarted Home Assistant.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Add the integration using HACS
Configure in configuration.yaml
Boot up Home Assistant and I can see the error. No other steps are needed to duplicate the issue.

Expected behavior
A clear and concise description of what you expected to happen.
I expect that when starting from scratch, I should be able to successfully add the integration and authenticate.
Screenshots
If applicable, add screenshots to help explain your problem.
System details

Home-assistant (version): 2022.5.5
Hassio (Yes/No): (Please note you may have to restart hassio 2-3 times to load the latest version of alexapy after an update. This looks like a HA bug).
alexa_media  (version from const.py or HA startup): 4.0.0
alexapy (version from pip show alexapy or HA startup): 4.0.0
Amazon 2FA is enabled (y/n). We will not debug login issues if unanswered:  Yes

Logs
Please provide logs. We'll be most likely asking for them anyway.
The two files, alexa_media.(email).get.html  alexa_media.(email).post.html are NOT found because the setup never took place.
Additional context
Add any other context about the problem here.
I have tried to uninstall and re-install at least 3 times without success.

Me too. Same error.

Me too. Same error.

Same error here too!

As a quick fix for us till it gets solved :)

Open custom_components/alexa_media/const.py and add the following to the line 48
CONF_OAUTH_LOGIN = "oauth_login"

Open custom_components/alexa_media/__init__.py and add the following to line 70
CONF_OAUTH_LOGIN,

Restart Home Assistant, and open the integrations section as it might require to reauthenticate

@khal3d - Yes that works. Thanks for the quick response.

@khal3d - works for me.

Thank you @khal3d will try now

works for me 2 tx!

after next HA reboot a new reathentication is required, is correct ? how to avoid reathentication after reboot?
thanks in advance

after next HA reboot a new reathentication is required, is correct ? how to avoid reathentication after reboot? thanks in advance

It will now force a reauthentication if it detects a degraded login. Before, it would let you continue to login but disable features (but then people would open issues constantly saying random things weren't working). If the new behavior is a problem, you'll need to downgrade to the 3.x series.

I continue to have authentication problems with version 4.0.1.
I did a roll-back to v3.11.3 and everything works fine ..
Many thanks


Async/await functionality

Thanks for this simple plugin.
It would be cool when you can use it with async/await
async () => {
  await TweenLite.to(...);
  console.log('Animation done and image loaded');
}

Hello! I did notice that await doesn't work but I didn't have time to investigate. I'm doing something wrong with the promise but I don't see what it is.
Currently this executes in the correct order, but as you said it stops at await:
https://codepen.io/anon/pen/zJbYZO?editors=0010

This should do the job, for TweenLite.fromTo
that also supports .then()
I'm not sure how to make the code most effective, for all methods
(function(fromTo) {
  window.com.greensock.TweenLite.fromTo = (element, duration, from, to, ...rest) => {
    return new Promise(resolve => {
     fromTo(
       element,
       duration,
       from,
       {...to,
         onComplete: () => {
           if (typeof to.onComplete === 'function') {
             to.onComplete();
           }
           resolve()
         }
       },
       ...rest
     )
    })
  };
}(window.com.greensock.TweenLite.fromTo));

https://codepen.io/freddyfy/pen/OoqWgz

But then you can’t chain them because it only returns a promise. e.g.
tl.fromTo(…).from(…).then(…)

I don't know what the problem was exactly, but when trying to fix it I realized that await tween resolves with tween, which has a .then property, so await tries to resolve that again, ad infinitum.
I fixed this in v3 by not returning the tween. That part is generally pretty useless because if you can await it or call .then on it, then you also already have access to the tween:
const tl = new TimelineLite();
await tl; // No need for tl = await tl;

// and
tl.then(() => console.log(tl)); // No need for tl.then(el => console.log(tl))


introduce interface for data fetching

In order to use this library in our application we would need a way to fetch data from a remote.
I like the way you patched it here, which means that it should be relatively easy to do
I would like to propose some kind of interface that a user will be able to pass to the instance of a demuxer, so when we call load or any other function it will use that interface to fetch the data. Caching can also be implemented into the interface as well

Yep, I have the same idea. This has been discussed at https://github.com/bilibili/web-demuxer/issues/11#issuecomment-2421209165. I need some spare time to design how to add the interface. If you have better ideas, you’re welcome to submit a pull request. :)


test v2 comments behavior

Docs Build status updates of commit 7ea33c3:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details
Dependent Files

:x:Error

Details

[Error] Run script failed with no detailed information. Please retry building your content again. If the issue still happens, open a ticket in http://SiteHelp and include the error report for our team to troubleshoot

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.

Docs Build status updates of commit 7ea33c3:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details
Dependent Files

:x:Error

Details

[Error] Run script failed with no detailed information. Please retry building your content again. If the issue still happens, open a ticket in http://SiteHelp and include the error report for our team to troubleshoot

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.

Docs Build status updates of commit 7ea33c3:
:clock10: Pending: waiting for processors (11 builds ahead of you)
:warning: Docs Build is busy, currently there are 11 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 7ea33c3:
:warning: Validation status: warnings

File
Status
Preview URL
Details
Dependent Files

microsoft-edge/toc.md
:warning:Warning

Details

microsoft-edge/accessibility.md
:warning:Warning

Details

microsoft-edge/media/accessibilityarchitectures.png
:white_check_mark:Succeeded

microsoft-edge/toc.md

Line 0: [Warning] Invalid file link:(~/dev-guide/whats-news.md).

microsoft-edge/accessibility.md

Line 28: [Warning] Invalid file link:(~/media/accessibilityArchitecture.png).

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.

Docs Build status updates of commit f6aae2a:
:warning: Validation status: warnings

File
Status
Preview URL
Details
Dependent Files

microsoft-edge/toc.md
:warning:Warning

Details

microsoft-edge/accessibility.md
:warning:Warning

Details

microsoft-edge/media/accessibilityarchitectures.png
:white_check_mark:Succeeded

microsoft-edge/media/adk-installoptions.png
:white_check_mark:Succeeded

microsoft-edge/toc.md

Line 0: [Warning] Invalid file link:(~/dev-guide/whats-news.md).

microsoft-edge/accessibility.md

Line 28: [Warning] Invalid file link:(~/media/accessibilityArchitecture.png).

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.

Docs Build status updates of commit ec1cb6d:
:warning: Validation status: warnings

File
Status
Preview URL
Details
Dependent Files

microsoft-edge/toc.md
:warning:Warning

Details

microsoft-edge/accessibility.md
:warning:Warning

Details

microsoft-edge/hosting/toc.md
:white_check_mark:Succeeded

microsoft-edge/media/accessibilityarchitectures.png
:white_check_mark:Succeeded

microsoft-edge/media/adk-installoptions.png
:white_check_mark:Succeeded

microsoft-edge/toc.md

Line 0: [Warning] Invalid file link:(~/dev-guide/whats-news.md).

microsoft-edge/accessibility.md

Line 28: [Warning] Invalid file link:(~/media/accessibilityArchitecture.png).

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.

Docs Build status updates of commit ec1cb6d:
:warning: Validation status: warnings

File
Status
Preview URL
Details
Dependent Files

microsoft-edge/toc.md
:warning:Warning
View
Details

microsoft-edge/accessibility.md
:warning:Warning
View
Details

microsoft-edge/hosting/toc.md
:white_check_mark:Succeeded

microsoft-edge/media/accessibilityarchitectures.png
:white_check_mark:Succeeded
View

microsoft-edge/media/adk-installoptions.png
:white_check_mark:Succeeded
View

microsoft-edge/toc.md

Line 0: [Warning] Invalid file link:(~/dev-guide/whats-news.md).

microsoft-edge/accessibility.md

Line 28: [Warning] Invalid file link:(~/media/accessibilityArchitecture.png).

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.

Docs Build status updates of commit ec1cb6d:
:warning: Validation status: warnings

File
Status
Preview URL
Details

microsoft-edge/toc.md
:warning:Warning

Details

microsoft-edge/accessibility.md
:warning:Warning

Details

microsoft-edge/hosting/toc.md
:white_check_mark:Succeeded

microsoft-edge/media/accessibilityarchitectures.png
:white_check_mark:Succeeded

microsoft-edge/media/adk-installoptions.png
:white_check_mark:Succeeded

microsoft-edge/toc.md

Line 0: [Warning] Invalid file link:(~/dev-guide/whats-news.md).

microsoft-edge/accessibility.md

Line 28: [Warning] Invalid file link:(~/media/accessibilityArchitecture.png).

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.

Docs Build status updates of commit ec1cb6d:
:clock10: Full build: the average full build time is 17 min(s) 28 sec(s), this is based on the last 1 build(s) for this repository.


chore: remove DynState in client db migrations

Fixes: https://github.com/fedimint/fedimint/issues/4823
Allows us to write "partial" migrations, that migrate states to another state, then migrate it again to the final state that can be parsed as a DynState.

assuming this is just a rebase, to get latest self hosted runners?

Yes


bicep publish seems to be broken

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Running bicep publish in ADO fails, however doing it from devcontainer or PowerShell session locally works. FYI. we are using the bicep module from here aka.ms/carml.
Related command
variables:
spn: SC-ContainerRegistry
CarmlVersionNumber: 0.10.0
RegistryName: xxxxcarmlbicep.azurecr.io
  - task: AzureCLI@2
    displayName: Publish user assigned identity module.
    inputs:
      azureSubscription: $(spn)
      scriptType: 'bash'
      scriptLocation: 'inlineScript'
      inlineScript: |
        az bicep publish \
        --file modules/Microsoft.ManagedIdentity/userAssignedIdentities/deploy.bicep \
        --target br:$(RegistryName)/bicep/modules/microsoft.managedidentity/user_assigned_identities:$(CarmlVersionNumber) \

Describe the bug
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: [Errno 2] No such file or directory: '/home/vsts/work/_temp/.azclitask/bin/bicep'
Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/resource/custom.py", line 3779, in publish_bicep_file
if bicep_version_greater_than_or_equal_to(minimum_supported_version):
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/resource/_bicep.py", line 202, in bicep_version_greater_than_or_equal_to
installed_version = _get_bicep_installed_version(installation_path)
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/resource/_bicep.py", line 273, in _get_bicep_installed_version
installed_version_output = _run_command(bicep_executable_path, ["--version"])
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/resource/_bicep.py", line 311, in _run_command
process = subprocess.run([rf"{bicep_installation_path}"] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/opt/az/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/opt/az/lib/python3.10/subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/az/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/vsts/work/_temp/.azclitask/bin/bicep'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
To open a new issue, please run az feedback
##[error]Script failed with exit code: 1
/usr/bin/az account clear
Finishing: Publish user assigned identity module.
To Reproduce
running the publish command from ado agent throws this error, have repo'ed this is multiple tenants.
Expected behavior
publish command should complete with a success message that the module was published to the registry, all previous bicep version have been working, but not v15 and v16.
this ERROR was happening in bicep v15 but then there was a fix added which worked around this issue. that is no longer working.
fix was to add these lines to the ADO agent:
az bicep uninstall
az config set bicep.use_binary_from_path=false
az bicep install
Environment summary
take any bicep module, create a simple ADO pipeline, put in there an az cli task to publish the module and watch it fail.
Additional context

Thank you for opening this issue, we will look into it.

hi, just tried to do this on devcontainer and fails there as well, so this is not just ADO agent.
PS /workspaces/CARML> az bicep publish --file modules/Microsoft.ManagedIdentity/userAssignedIdentities/deploy.bicep --target "br:ihubcarmlbicep.azurecr.io/bicep/modules/microsoft.managedidentity/user_assigned_identities:0.10.0"
The command failed with an unexpected error. Here is the traceback:
[Errno 2] No such file or directory: '/home/vscode/.azure/bin/bicep'
Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/resource/custom.py", line 3779, in publish_bicep_file
if bicep_version_greater_than_or_equal_to(minimum_supported_version):
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/resource/_bicep.py", line 202, in bicep_version_greater_than_or_equal_to
installed_version = _get_bicep_installed_version(installation_path)
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/resource/_bicep.py", line 273, in _get_bicep_installed_version
installed_version_output = _run_command(bicep_executable_path, ["--version"])
File "/opt/az/lib/python3.10/site-packages/azure/cli/command_modules/resource/_bicep.py", line 311, in _run_command
process = subprocess.run([rf"{bicep_installation_path}"] + args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/opt/az/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/opt/az/lib/python3.10/subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/az/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/vscode/.azure/bin/bicep'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
To open a new issue, please run az feedback
PS /workspaces/CARML>

@GeraldGoldstein Thanks for your comment. We will review the issue and get back to you shortly.

I'm shocked this has been an issue this long, I just tried for most of the day to publish a module to a registry and have been getting the same error and I was sure it was my code and not a HUGE BUG in a CRITICAL component required for our IaC ONLY deployment policies..............

Ironically it appears by setting the use_bicep_from_path value to true instead of false ie az config set bicep.use_binary_from_path=true , and then re-running my pipeline I was able to successfully publish again, and then even reinstalling/resetting the value to false with the full "fix" allowed me to work around this issue.
az bicep uninstall
az config set bicep.use_binary_from_path=false
az bicep install
az bicep publish --file VirtualMachine\update.bicep --target br:$(ourRegistry)/module/name:$(version)


Differences in Web Interface vs R Wrapper, general usage questions

Hi!
I have just started working with gemma and I will need to access the database programmatically and frequently to assess the results of an automated pipeline. I will produce gene sets and will need to know if these genes are statistically significant in differential expression in a given disease. I first had a look at the web interface and managed to get what I needed. Then I wanted to use the gemma.R library and found no way of achieving the same result. My questions in detail are as follows:

Using the same search query, the returned datasets differ slightly:

If I type "immune dysregulation" in the web interface, it says "55 out of 58 have diff. expression data available" and returns ( or shows) only the 55 where the data is available. Whereas if I use searchDatasets('immune dysregulation', limit = 100, taxon = 'human')it returns the full 58 and I do not know by which flag I can filter if they contain expression data or not.

Checking for batch effects
From what I've seen it is possible to check whether the experiments have been batch corrected (ee.batchCorrected), but I can't find a value that tells me if batch correction was even necessary. I.e. if the experiment was single-batch or there was no batch effect found.

Telling the experiment labelDescription without downloading expression data
I tried to find out which of the returned experiments are disease vs control, but the only data structure where I found this information was when I download the expression data (i.e. using eset <- getBioc('ExpressionSet', 'GSE28548')) and then check the field eset@phenoData@varMetadata$labelDescription. However, it seems very wasteful to download all the data just to check this and then throw it away again if it is not the desired type. Is there a more clever way to do that?

Getting p-values
This might sound naive, but even if I get a list of appropriate experiments, is there a function that allows me to chuck in a list of genes and the list of experiments and just returns the logfold change in expression and the pvals, just as with the Web Interface?

Curated lists of experiments
I have noticed that there are pre-configured curated lists of experiments available in the web interface, i.e. "Alzheimer's Disease" or "Human Inflammatory Bowel Disease". Is there a full list somewhere of those pre-configured lists? I am afraid the a simple search query might return erroneous experiments in some cases which might mess up my results.

Thanks a lot in advance, I know that maintaining a public resource can be a pain in the *** sometimes and I hope I don't cause too much  of a hassle.

First of all thanks for your feedback! This wrapper is under active development and user feedback is very valuable to us at this stage.

There isn’t a specific flag that indicates if there is differential expression data for a given dataset. I reimplemented a getDatasetDEA() endpoint which returns information about the differential expression analysis for the queried dataset. You can loop over your datasets and call this endpoint, if it returns an empty list it means there is no differential expression data for that dataset.

I exposed an ee.batchEffect flag that was hidden before, it should have the information you need.

You can use  getDatasetResultsets() which gives you a short summary of the factors and the levels used in the differential expression analysis for that dataset. Keep in mind that a dataset may have more than one differential expression analysis (resultSet) associated with it.

There isn’t a specific function to do this as of now, you would need to use getDatasetDE() to get the desired differential expression tables, then filter them using your genes of interest. In this initial release of the R wrapper we are focusing on just accessing the expression and differential expression data, but we might implement this functionality in a future release.

These lists are actually outdated and we eventually plan to phase them out, since it is difficult to assign with certainty which datasets belong in a particular list. We recommend that you use the search feature and decide for yourself if the retrieved datasets are of interest.

If you have any other questions or need more assistance, I’m happy to help!


Dockerize word_count example

docker-compose setup to run the word_count example in containers.
@chrislusf if you like the idea I could dockerize the other examples and we provide container artefacts on hub.docker.com. This may make it easier for people to get started and explore the technology.
As a note: we run everything in containers. Therefore docker-compose examples are always welcome to copy the setup.

Nice!


To Reproduce
In my case, I tried to generate an image with hyperfine, but the output was an image measuring 240273 x 668px.
Expected behavior
Generate an image with the last command output.
Screenshots
I'm not going to attach the generating image because it's too big, and it's impossible to see anything without a lot of zoom.
Desktop

OS: Fedora 40 (kernel 6.8.2)
DE: KDE Plasma 6

It also happens that system monitors like htop, glances, btop generate unusable images.
btop output:

glances output:

htop output:
ERROR  Bad SVG
XML syntax error on line 13: illegal character code U+0008

I was unsure whether to create a new issue or add it here. If you prefer, I can create another issue, so that it is more organized.

For btop, the output can likely be fixed by allowing people to resize the terminal by exposing --row/--col attributes and setting them dynamically here:
https://github.com/charmbracelet/freeze/blob/main/pty.go#L23-L24

I see that hyperfine is a TUI which can output lots of output while it is benchmarking the tool. This is likely all getting captured within the input (We can fix / limit that on our end).
However, for hyperfine I would highly recommend using tmux capture-pane with the result so that you can capture the final output. See the Screenshot TUIs section in the README: https://github.com/charmbracelet/freeze?tab=readme-ov-file#screenshot-tuis
We will make this better in the future to solve for these use cases as well!

For btop, the output can likely be fixed by allowing people to resize the terminal by exposing --row/--col attributes and setting them dynamically here:
https://github.com/charmbracelet/freeze/blob/main/pty.go#L23-L24

Cool, that would be a great addition. It may end up being useful on other occasions.

@Su3h7aM You may also want to check out https://github.com/charmbracelet/vhs for recording TUIs which will provide the full animation of Hyperfine as well (and it can also produce screenshots).


The acc of gcn-link-prediction.ipynb is zero.

Describe the bug
Hi,
I ran the example code of gcn-link-prediction on Colab, but the acc of training and validation are both 0.
https://colab.research.google.com/github/stellargraph/stellargraph/blob/master/demos/link-prediction/gcn-link-prediction.ipynb
Observed behavior
Epoch 1/50
1/1 - 1s - loss: 1.9855 - acc: 0.0000e+00 - val_loss: 0.7371 - val_acc: 0.0000e+00
Epoch 2/50
1/1 - 0s - loss: 0.9304 - acc: 0.0000e+00 - val_loss: 0.7873 - val_acc: 0.0000e+00
Epoch 3/50
1/1 - 0s - loss: 0.9704 - acc: 0.0000e+00 - val_loss: 0.6657 - val_acc: 0.0000e+00
Epoch 4/50
1/1 - 0s - loss: 0.6761 - acc: 0.0000e+00 - val_loss: 0.7027 - val_acc: 0.0000e+00
Epoch 5/50
1/1 - 0s - loss: 0.7154 - acc: 0.0000e+00 - val_loss: 0.6838 - val_acc: 0.0000e+00
Epoch 6/50
1/1 - 0s - loss: 0.6837 - acc: 0.0000e+00 - val_loss: 0.6915 - val_acc: 0.0000e+00
Epoch 7/50
1/1 - 0s - loss: 0.8051 - acc: 0.0000e+00 - val_loss: 0.6677 - val_acc: 0.0000e+00
Epoch 8/50
1/1 - 0s - loss: 0.6935 - acc: 0.0000e+00 - val_loss: 0.6435 - val_acc: 0.0000e+00
Epoch 9/50
1/1 - 0s - loss: 0.6399 - acc: 0.0000e+00 - val_loss: 0.6365 - val_acc: 0.0000e+00

Hi @shikew, thanks for filing an issue.
Unfortunately this is due to a bug in TensorFlow version 2.2 onwards: https://github.com/tensorflow/tensorflow/issues/41361. StellarGraph has fixed this in the unreleased develop branch, by changing model.compile(..., metrics=["acc"]) to model.compile(..., metrics=["binary_accuracy"]) (in #1770).
Hopefully this helps! I'm closing this is as a duplicate of #1766 (and #1786), but please feel free to reply if you have further questions or concerns!

Hi @shikew, thanks for filing an issue.
Unfortunately this is due to a bug in TensorFlow version 2.2 onwards: https://github.com/tensorflow/tensorflow/issues/41361. StellarGraph has fixed this in the unreleased develop branch, by changing model.compile(..., metrics=["acc"]) to model.compile(..., metrics=["binary_accuracy"]) (in #1770).
Hopefully this helps! I'm closing this is as a duplicate of #1766 (and #1786), but please feel free to reply if you have further questions or concerns!


Make single element pop up?

Is there any way to make a single element "pop out" from the backdrop (So basically make it visible instead of it being hidden by the backdrop)?

Version: 13.0.1
Platform: Android
Other dependencies: Custom backdrop via expo-blur

What I've tried so far

Increasing the z-index and elevation of the given element.
Duplicating the element and positioning it absolutely relative to the background to the same position of it's original element. This kind of works, however, it brings many flaws: You'd have to manually animate the other "true" parts of the modal and absolute positioning is done very strangely

I am facing simila problem trying to use an autocomplete inside rn-modal, basically the items stay hidden behind the modal


Changed the default of account name for display to online identity if existing

The current behaviour is to always use the local naming, and only if missing to  pull out information from the chain first using onchain IDs or last formatting the address. However, in case an account has an onchain ID, one may want to get it displayed instead of local naming. The new behaviour is also consistent with the Polkadot.js apps and extension.
There is incidentally a problem in the SDK that needs to be fixed to populate the right information in the KeyPairData. This is the subject of another pull request in SDK.
Note that I initially wanted to introduce a switch in the settings, but I did not find any elegant way to retrieve the value from the app storage within the plugins. I can rework all this if you believe a switch would be useful and have a suggestion on how to carry on the global state of the boolean variable representing the switch to all the calls to accountName.

Addendum: Commited a fix, since the logic in the initial PR was equivalent to the previous one: I left a condition that was originally part of the switch logic mentioned before, and should not have been there.

I prefer making the behavior consistent with the Polkadot.js apps and extension, no switch.


Cannot find module 'socket.io-client/build/typed-events' or its corresponding type declarations.

When using "ionic serve" it does not locate 'socket.io-client/build/typed-events' in node_modules.

Downloaded repo
Opened folder in Visual Studio
Ran npm i
Ran ionic serve
Received error

should be working now, please update and try again


We seem to not yet consider remaining power or "Restlast"

Next to the appliances there is also this generic "Restlast" which we need to consider

This was integrated in the meantime


Abbey February Invoice

Added hours for February
Signed-off-by: abbey titcomb<EMAIL_ADDRESS>

Thanks for this.
As a reminder, the formula for this is taking the average price over the last 7 days of the month, then using that as the conversion given the 150 USD hourly rate.
You can see the code for this here:
https://github.com/radicle-dev/radicle-grants/blob/main/analytics/rgp_compensation_automation.ipynb
And below is what it looks like inputing your hours worked

Comp:<PHONE_NUMBER>1888998 RAD

great, submitted!


Artemis 1012 rebased artemis 1009

@mtaylor you can close this.. I already imported the committs on my branch...
they will be on master as soon as I cleanup my branch (aiming by monday)

Clebert I made a couple changes too. can you delete the commits in your
branch and merge these please.
On 4 Mar 2017 14:53, "clebertsuconic"<EMAIL_ADDRESS>wrote:

@mtaylor https://github.com/mtaylor you can close this.. I already
imported the committs on my branch...
they will be on master as soon as I cleanup my branch (aiming by monday)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/activemq-artemis/pull/1062#issuecomment-284156213,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOCy2UCnGfiuXCFD0Df7heGpR70TZxlks5riXragaJpZM4MTF-M
.

@mtaylor I will rebase this later this week. Can you do me a favour. type this on your branch:
git pull --rebase upstream artemis-1009

I did it here and there are no conflicts.. just to cleanup the PR please?

sure. I'll do it tomorrow mate when I get the office :)
On 5 Mar 2017 17:12, "clebertsuconic"<EMAIL_ADDRESS>wrote:

@mtaylor https://github.com/mtaylor I will rebase this later this week.
Can you do me a favour. type this on your branch:
git pull --rebase upstream artemis-1009
I did it here and there are no conflicts.. just to cleanup the PR please?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/activemq-artemis/pull/1062#issuecomment-284244171,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOCy6ZITcKQxuK3l9ARkzn3i0p-1O4Yks5riu0KgaJpZM4MTF-M
.


Wrong resolving of generic arrays.

Example
export function test(): int {
  let array: Array< int > = new Array(1);
  array.push(1); // 1 * 2 = 2
  array.push(2); // 2 * 2 = 4
  array.push(3); // 4
  array.push(4); // 4 * 2 = 8
  array.push(5); // 8
  array.push(6); // 8
  return array.length; // 7
}

Array.ts#push
push(element: T): int {
    let self: this = this;
    if (this.length >= this.capacity) {
      const newCapacity: int = this.capacity * 2;
      self = this.unsafeGrow(newCapacity);
    }
    self.length += 1;
    self[self.length] = element;
    return self.length;
  }

Wast
...
(drop
   (call $std/array.ts/Array<double>#push
    (get_local $0)
    (f64.const 1)
   )
  )
  (drop
   (call $std/array.ts/Array<double>#push
    (get_local $0)
    (f64.const 2)
   )
  )
  (drop
   (call $std/array.ts/Array<double>#push
    (get_local $0)
    (f64.const 3)
   )
  )
  (drop
   (call $std/array.ts/Array<double>#push
    (get_local $0)
    (f64.const 4)
   )
  )
  (drop
   (call $std/array.ts/Array<double>#push
    (get_local $0)
    (f64.const 5)
   )
  )
  (drop
   (call $std/array.ts/Array<double>#push
    (get_local $0)
    (f64.const 6)
   )
  )

But expected: call $std/array.ts/Array<int>#push with i32.const.

This works for me:
export function test(): int {
  let array: Array< int > = new Array(1);
  array[0] = 1;
  return array.length;
}

Great. Mark this issue as bug plz

Hi, @dcodeIO. Do you have any plan for resolve this issue?

Sure. While digging through, I just became too tempted to refactor other stuff as well, so I broke everything, and now it takes its time :)

Please let me know if this fixes it for you. There might be other or new issues now.

Hi @dcodeIO, It seems reflection works as expected now.


mali450-userland: workaround - use hardlinks instead of symlinks

This is a workaround for
https://github.com/96boards/meta-96boards/issues/156
This is needed to fix LHG morty builds for HiKey (and all the builds for HiKey with Mali which use current meta-rpb/morty):
https://ci.linaro.org/view/All/job/lhg-oe-build/MACHINE=hikey,label=lhg/ (the failed builds starting from 109)
/me wonders if such a workaround is OK for meta-96boards

Since we're doing the symlinking ourselves anyway, it's a decent workaround. Can you check these are still hardlinks on the target after installing?
If they aren't, can you add a comment to the recipe saying that?

isn't it a bug in rpm?

Yes, they are still hardlinks on the target.

For me it looks like an rpm bug. And I need to fix builds for HiKey this or another way :)

@andrey-konovalov do you mind to add some text in the recipe to mention the issue encountered ln -sf vs ln -f . Something similar to the commit message will do. Also, drop workaround from $subject. And it isn't specific to LHG builds. RPB builds are affected. So I'll remove also this part.

@fboudra updated the commit - added the comment to the recipe


demp for python inheritance

User description
a concrete example

PR Type
enhancement, documentation

Description

Added an example demonstrating class inheritance in Python using an abstract base class (Animal).
Implemented Dog and Cat classes that inherit from Animal and override the speak and info methods.
Included a script to create instances of Dog and Cat and call their methods.

Changes walkthrough 📝
Relevant filesEnhancement

text_inheritance.pyAdded example of class inheritance with abstract base class.

devhub/projects/cookbook_python/cb01/text_inheritance.py
Added Animal abstract base class with speak abstract method and info method.  Implemented Dog and Cat classes inheriting from Animal.  Included example instantiation and method calls for Dog and Cat.

+46/-0

💡 PR-Agent usage:
Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

Preparing PR description...

PR Description updated to latest commit (https://github.com/barnett-yuxiang/EvernoteV2/commit/ff22d625af32726abd939df0df8adb948ddde68d)

Preparing review...

PR Review 🔍

 ⏱ Estimated effort to review [1-5]
2, because the PR is straightforward with a clear implementation of inheritance in Python. The code is simple and well-structured, making it easy to understand and review.

 🧪 Relevant tests
No

 ⚡ Possible issues
No

 🔒 Security concerns
No

 Code feedback:
relevant filedevhub/projects/cookbook_python/cb01/text_inheritance.py
suggestion

Consider using dataclasses for the Animal, Dog, and Cat classes to reduce boilerplate code and improve readability. This can be done by importing dataclass from dataclasses and using the @dataclass decorator on your classes. [important]

relevant lineclass Animal(ABC):
relevant filedevhub/projects/cookbook_python/cb01/text_inheritance.py
suggestion

It's a good practice to add a __str__ or __repr__ method to classes for better debugging and logging. This method can return a string that gives a clear representation of the object state. [medium]

relevant lineclass Dog(Animal):
relevant filedevhub/projects/cookbook_python/cb01/text_inheritance.py
suggestion

To ensure the info method in subclasses uses the base class implementation effectively, consider calling the base method using super() and then extending or modifying the result as needed. This promotes better code reuse and maintainability. [medium]

relevant linedef info(self):
relevant filedevhub/projects/cookbook_python/cb01/text_inheritance.py
suggestion

To enhance the object instantiation process, consider implementing factory methods or a factory class that encapsulates the creation logic of Dog and Cat objects. This can make the code more modular and easier to manage. [medium]

relevant linedog = Dog("Buddy", 3, "Golden Retriever")

Generating PR code suggestions
Work in progress ...

Preparing PR description...

PR Description updated to latest commit (https://github.com/barnett-yuxiang/EvernoteV2/commit/ff22d625af32726abd939df0df8adb948ddde68d)

Preparing PR description...

PR Description updated to latest commit (https://github.com/barnett-yuxiang/EvernoteV2/commit/ff22d625af32726abd939df0df8adb948ddde68d)

Preparing PR description...

PR Description updated to latest commit (https://github.com/barnett-yuxiang/EvernoteV2/commit/3dfdc12ee2b7e321b599a4cd3db9dccf216dbaa3)

Preparing PR description...

PR Description updated to latest commit (https://github.com/barnett-yuxiang/EvernoteV2/commit/3dfdc12ee2b7e321b599a4cd3db9dccf216dbaa3)


Initial page setup

https://docs.google.com/document/d/1SEg7JmhAh_f1ntsZZRcTgpdBwzAKrtm90SvqnBU_664/edit?usp=sharing
pls read /\

Ask Anthony for a screenshot of the vercel error, best to fix deployment issues early on


Add ICU module map

This should allow prototypes in the Swift project to import and use ICU facilities

Why would swift-corelibs-foundation define a module map for ICU?

n.b. that ICU is not public API on Darwin, so defining a module map only for the Linux version of Swift seems odd.

It's for stdlib implementation, but I found a workaround, so if adding the module map seems like a bad idea to you, we can close this

Ok.


Fix: flush output for each lines

fix #22

LGTM
We should do it later probably only for Stdout, flushing buffer for real files can induce penalty by making more sysalls than needed.


Fixes hard-coded path in spec

When I checked the last PR, I noticed some specs would only run if run from a directory matching /git/labs/nonstop/nonstop - this fix makes it dynamic based on the location of the project/spec file.

@dcneiner thanks!


Fixed bug preventing server from starting

Removed code attempting to import files with bad routes and weren't used in the code

Related to #34


Uncaught (in promise) SyntaxError: "undefined" is not valid JSON

After following the official guide to set up inertia on server side and client side, i´m getting this in the browser console. Page is blank.
"Uncaught (in promise) SyntaxError: "undefined" is not valid JSON"
Looks like something in resources/js/app.js went wrong. The guide misses to instruct creating a "Pages" forlder in resources/js. If that is missing, "npm run dev" won´t even succeed.
It put the project source on github so we can have a straightforward discussion
https://github.com/sbaum2s/inertiajs_demo
It´s a Laravel 8 project.

Further steps that are missing from the instructions

error by "npm run dev" points to "vue" is missing from webpack.mix.js (i added vue())
further suggestestion is to run "npm install<EMAIL_ADDRESS>--save-dev --legacy-peer-deps"

The an error comes during "npm run dev": cannot find module 'vue'.

npm install vue

After that results in the next error (i created a file app2.vue)
ERROR in ./resources/js/Pages/app2.vue 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

Hi

Any suggestions how to continue? I would like to assemble a complete, working guide for beginners.


NAT and cluster end up in different zones, put in same zone

I am seeing the NAT box in us-central1-f and the rest of the cluster in us-central1-b.

This was in the example repo, fixed by copying the region and zone info of the cluster to the nat gateway module. https://github.com/danisla/terraform-google-examples/commit/f4d61ccf88784b11d79456984111f89651af0815


Loading a game with age check returns "game not available"

Because the user don't have the cookie of age check.
Borderlands 2 has this issue.

Fixed by scraping the game on the server.


Project package refactor

Refactor and Update attributes and methods in Project Package

For the Leader Object, you want to make it an instance of a Person? Such that it can contain email, address etc. I have included that in my implementation of Teammate. Lemme change that to Person then maybe your Leader can be an instance of Person too. This way you dun have to create email classes etc for the Leader

For the Leader Object, you want to make it an instance of a Person? Such that it can contain email, address etc. I have included that in my implementation of Teammate. Lemme change that to Person then maybe your Leader can be an instance of Person too. This way you dun have to create email classes etc for the Leader

Maybe we want to wait for Lucas to implement the association class and make Leader class a subclass of association?


Get the table of contents?

Great tool, thank you!
Is it possible to get a toc?

Thanks! I don't have the time to look into it persoally, but PRs are very welcome! 🙂


Update videos.md

Add contributor reference per Issue #2 .

Moved this to the bottom of the page since the "Contributed by" component doesn't work well after the title (adds unnecessary border and vertical space


Is this resitory still active?

I've opened an issue before and was about to open a new one, which left me wondering, is that even worth is? Is this still being maintained?

I guess it's stating the obvious to say no one has been active lately in releasing or pushing commits to this repo.  Hopefully my reply shows the issues list is still being monitored.

@scottkurz can I help in some way ? Would love to pick up some improvements


Bump version to 0.1.0

Codecov Report
Patch and project coverage have no change.

Comparison is base (addfd08) 100.00% compared to head (39c2823) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #4   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines          330       330
  Branches        64        64
=========================================
  Hits           330       330

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


How to deal with empty node name?

Expected Behavior
In some cases, I have some nodes that don't contain any names. For example, I attached a code below the section which is demonstrated by printing all the nodes from Notepad. While printing it, you find some nodes don't have any node name. A similar case I found for finding the name for a parent as well. They suppose to have some name that can be used later on in any activity.  Is there any valid way to handle this "empty node" situation?
Thank you.
Actual Behavior
The following example comes from Notepad.
Total nodes: 16
Node:  Text Editor
Node:  Vertical
Node:  Line up
Node:  Line down
Node:                                       [<= This is where the problem begins]
Node:  System
Node:  System
Node:  Minimize
Node:  Maximize
Node:  Close
Node:  Application
Node:  File
Node:  Edit
Node:  Format
Node:  View
Node:  Help
Steps to Reproduce the Problem

Declare the library and fix the window for the app.
Use a  loop for printing all descendants.

Short Example of Code to Demonstrate the Problem
import pywinauto
notepadapp = pywinauto.Application("uia").start(r'C:\\Windows\\system32\\notepad.exe')
notepad_window = notepadapp.window(title='Untitled - Notepad')
all_child = []
for child in notepad_window.descendants():
    all_child.append(child.window_text())
print("Total nodes: {}".format(len(all_child)))
try:
    for a in all_child:
        print("Node: ",a)
except:
        print("{} not found".format(a))

Specifications

Pywinauto version: 0.6.8
Python version and bitness: 3.7.4
Platform and OS: Windows 10

In current active branch atspi the output looks so:
Node:  uia_controls.EditWrapper - 'Text Editor', Edit
Node:  uiawrapper.UIAWrapper - 'Vertical', ScrollBar
Node:  uia_controls.ButtonWrapper - 'Line up', Button
Node:  uia_controls.ButtonWrapper - 'Line down', Button
Node:  uiawrapper.UIAWrapper - 'Horizontal', ScrollBar
Node:  uia_controls.ButtonWrapper - 'Column left', Button
Node:  uia_controls.ButtonWrapper - 'Column right', Button
Node:  uiawrapper.UIAWrapper - 'Size box', Thumb
Node:  uiawrapper.UIAWrapper - '', TitleBar
Node:  uia_controls.MenuWrapper - 'System', Menu
Node:  uia_controls.MenuItemWrapper - 'System', MenuItem
Node:  uia_controls.ButtonWrapper - 'Minimize', Button
Node:  uia_controls.ButtonWrapper - 'Maximize', Button
Node:  uia_controls.ButtonWrapper - 'Close', Button
Node:  uia_controls.MenuWrapper - 'Application', Menu
Node:  uia_controls.MenuItemWrapper - 'File', MenuItem
Node:  uia_controls.MenuItemWrapper - 'Edit', MenuItem
Node:  uia_controls.MenuItemWrapper - 'Format', MenuItem
Node:  uia_controls.MenuItemWrapper - 'View', MenuItem
Node:  uia_controls.MenuItemWrapper - 'Help', MenuItem

We're planning to make next major release from this branch, but it will be pretty slow. So this code snippet means that name property of an element can be empty. It's pretty common case for a huge number of applications. Hope it explains this behavior.

Oh, to find this element use this code:
notepad_window.child_window(control_type="TitleBar").draw_outline()

One more useful method is notepad_window.dump_tree(). Sorry for late reply. I'm a bit overloaded.


Think on extending game graphics

Remove Kenney graphics completely with my own.
As starters/experiment change only:

Asteroids

Big
Medium
Small
Tiny

Two player ships
One lazer
One fire
Debri
Change main screenshot in the readme file
Remove kenney graphics credits and replace with thanks to kenney inspiration

Some tutorials https://lospec.com/pixel-art-tutorials/tags/spaceship

other tuts https://www.youtube.com/watch?v=7c8auiJMwA8

Try smaller general scale - smaller then 4
Tiny asteroid is to small
Small asteroid can be named tiny
medium asteroid is to big
all asteroids shapes are quite sharp- try to make them more round or kenney like?
big asteroid doesn't look good in the game

Ship 1 fills unbalanced. may be make it shorter


Provide use-case examples in the README file.

          It would be nice to provide some use-case examples in the README file.

Originally posted by @cptboris in https://github.com/Clayton-Roberts/python-intermediate-inflammation/issues/2#issuecomment-2428651632

Estimated time to fix: 30 mins

30 mins

Time estimate: 60 mins


Fix the aggregate result problem in UfsIOBench

What changes are proposed in this pull request?
Fix the aggregate result problem in UfsIOBench.
Why are the changes needed?
The  UfsIOBench result summary calculates the total duration by summing each  points' result, and   compute the average speed based on total duration, actually the average can't  represent the system performance.
For examples:
An alluxio cluster with 1 job master and 3 job worker,  Run the UfsIOBench with 16 threads:
./bin/alluxio runUfsIOTest --path hdfs://hdfsCluster/tmp/ufsIoBanch --io-size 2G--threads 16 --cluster

the mTotalDurationSeconds is 16 * 3 *(points duration), but actually the 16 points read and write concurrently  and finished almostly at same time.
Does this PR introduce any user facing changes?
Please list the user-facing changes introduced by your change, including
No

@dbw9580 PTAL, thx!

@dbw9580 Any suggestion on this pr?

@jiacheliu3 PTAL!

alluxio-bot, merge this please

alluxio-bot, merge this please


Why is cublasMMWrapper operations protected by mutex

It seems to me all cublas and cublaslt gemm and matmul operations are protected by a mutex. cublas library documents says its thread safe. Why is it necessary to protect these operations with mutex?

From official document:
The library is thread safe and its functions can be called from multiple host threads, even with the same handle. When multiple threads share the same handle, extreme care needs to be taken when the handle configuration is changed because that change will affect potentially subsequent cuBLAS calls in all threads. It is even more true for the destruction of the handle. So it is not recommended that multiple thread share the same cuBLAS handle.

thread safe is only guaranteed when they don't share handle.

Thanks! But why some of the cusparselt calls are not protected and some are?

All GEMMs have mutexes except https://github.com/NVIDIA/FasterTransformer/blob/main/src/fastertransformer/utils/cublasMMWrapper.cc#L358, which is not used now. We will fix it ASAP.


Octotree support.

see https://github.com/buunguyen/octotree, currently octotree will visit /api/v3 but not /api/v1.

Add an issue on that repository https://github.com/buunguyen/octotree/issues/467

We could try to setup a v3 api and re-use func of v1 that are compatible and for the rest add it to the todo list ?

I think we should add API to v3 only these parts that are fully compatible with github

@lafriks yes, we can do it easier.

What if there would be another approach and the functionality of Octotree would directly integrated into gitea?

Closing since upstream Octotree has said they can't support Gitea.

Git master announced supported Gitea https://chrome.google.com/webstore/detail/git-master/klmeolbcejnhefkapdchfhlhhjgobhmo


some major improvements in reverse_image_search_bot/commands.py

Describe the bug
The Reverse Image Search Bot exhibits several issues that hinder its performance, reliability, and maintainability. The primary areas of concern are:
1.Asynchronous Handling for Improved Performance
Issue: The bot currently mixes asynchronous (async def) and synchronous functions. Functions like gif_image_search, sticker_image_search, and others are synchronous, which can block the event loop and degrade performance, especially under high load or when handling multiple requests simultaneously.
2.Error Handling and Input Validation
Issue: The bot lacks comprehensive error handling and input validation. Critical sections of the code use functions like os.system without verifying their success, and there's minimal validation of user inputs. This can lead to unexpected crashes, security vulnerabilities, and a poor user experience.
3.Code Organization and Modularity
Issue: The current codebase does not adhere to the Single Responsibility Principle. Functions handle multiple responsibilities, such as image processing, search logic, and Telegram interactions all within the same functions. This makes the code harder to maintain, extend, and test.
To Reproduce
1.Asynchronous Handling Issue:
Step 1: Deploy the bot and initiate multiple reverse image search requests simultaneously.
Step 2: Monitor the bot's responsiveness and resource usage.
Step 3: Observe any delays or unresponsiveness due to blocking synchronous operations.
2.Error Handling and Input Validation Issue:
Step 1: Send various malformed or unsupported files (e.g., non-image files) to the bot.
Step 2: Attempt to trigger external command failures (e.g., by removing gifsicle from the server).
Step 3: Observe how the bot handles these scenarios without crashing or providing informative error messages.
3.Code Organization and Modularity Issue:
Step 1: Navigate through the codebase, focusing on functions like general_image_search.
Step 2: Attempt to modify or extend specific functionalities, such as adding a new search engine.
Step 3: Experience difficulties due to tightly coupled components and overlapping responsibilities.
Expected behavior
1.Asynchronous Handling for Improved Performance:
All handler functions should be fully asynchronous, utilizing non-blocking operations to enhance the bot's responsiveness and scalability. The bot should efficiently handle multiple simultaneous requests without performance degradation.
2.Error Handling and Input Validation:
The bot should gracefully handle exceptions and provide informative error messages to users. It should validate all user inputs to ensure they meet expected formats and types, preventing crashes and enhancing security.
3.Code Organization and Modularity:
The codebase should follow the Single Responsibility Principle, separating concerns into distinct modules or classes. This refactoring will improve readability, maintainability, and facilitate easier testing and future feature additions.

I would like to work on this issue. Can you please assign it to me?

@bhavya2021245 assigned.

I would like to work on this issue. Can you please assign it to me?

@omkar-sarwat this is raised by other contributor, please look for another issue

@bhavya2021245 please get the latest code and start your changes please.

Thanks @c0sm0void for assigning me this issue
Will surely do it by end of day.


Update minimum NumPy version to v1.26.4.

Remove code to handle NumPy 2.0 prereleases.

Is there any cost to us in continuing to support older NumPy versions? If not I'd lean towards keeping support for older versions for now.

Nothing other than following NEP 29 (and its successor).

Closing since we decided we'd not upgrade so aggressively.


Update SRC-7 naming

Type of change

Improvement (refactoring, restructuring repository, cleaning tech debt, ...)
Documentation

Changes
The following changes have been made:

Updates the SRC-7 naming to "Onchain Asset Metadata Standard"
Adds comments on the SRC-7 intent for stateful metadata

Checklist

[x] I have linked to any relevant issues.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have updated the documentation where relevant (API docs, the reference, and the Sway book).

[ ] If my change requires substantial documentation changes, I have requested support from the DevRel team

[x] I have added tests that prove my fix is effective or that my feature works.
[x] I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
[x] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[x] I have requested a review from the relevant team or maintainers.
[x] I have updated the changelog to reflect the changes on this PR.

failing ci


Enhance Code Efficiency and Fix Import Issues

This pull request addresses several issues and improvements in the codebase. Here is a summary of the changes:

Fixed Import Errors:

Resolved the issue where the fake_useragent module could not be imported by adding a missing dependency.

Corrected Regular Expression Patterns:

Replaced the alternation in regular expressions with character classes to enhance pattern matching efficiency and clarity. This change improves code performance and readability.

Addressed Redundant Code:

Removed redundant alternative patterns from regular expressions, simplifying the code and making it more maintainable.

Updated Image Download Script:

Improved the download_images_from_google_query function to handle image downloads more efficiently. The updated code fixes errors related to Unicode decoding and ensures that image URLs are processed correctly.
Added logic to handle missing or empty search queries and improved error handling.

Improved Error Handling:

Enhanced error handling in the current_weather function to provide clear feedback when API keys are missing or data retrieval fails.

Optimized Regular Expression Usage:

Modified regular expressions to use character classes where applicable, improving pattern matching and reducing potential errors.

These updates enhance the overall reliability and performance of the code, ensuring better handling of errors and improved functionality.

The proposed changes in this pull request include several important updates and fixes:
Redundant Code Removal: Cleaned up redundant alternatives in regular expressions to simplify the code and improve maintainability.
Image Download Script Enhancements: The download_images_from_google_query function has been updated to handle image URLs correctly and include better error handling and efficiency.
Error Handling Improvements: Enhanced error handling in the current_weather function to provide more informative feedback when issues arise with API keys or data retrieval.
These changes should make the code more robust, efficient, and easier to maintain.


ng new not working

Please provide us with the following information:

OS?
Mac OSX Sierra
Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.21
node: 6.9.1
os: darwin x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
ng new PROJECT_NAME (this command is not working)

The log given by the failure.

Normally this include a stack trace and some more information.

not failure in the logs, it creates the files but when I open the directory its empy, no files inside
Mention any other details that might be useful.

Thanks! We'll be in touch soon.

@FructuosoRobles can you elaborate/give the exact steps.

@deebloo I've run into this as well when running ng new.
I noticed that instead of creating the app in the current directory, the app is created in my home dir.
My ng --version:
angular-cli: 1.0.0-beta.21
node: 6.3.1
os: darwin x64

Hello. the steps are:
1.- make dir in desktop: PROJECT
2.- access PROJECT dir from terminal
3.- ng new PROJECT_ANGULAR
4.- all ok!! but, files are created in home dir (true, I just delete them a few minutes ago).
What can I do?

@deebloo @FructuosoRobles I think I tracked down the problem (for me at least, @FructuosoRobles this may apply to you as well) -- seems I had a package.json in my home dir, and it looks like ng new (well, buried deep in the Project model from ember-cli, which is eventually used by ng new) traverses up the directory tree looking for a package.json.  If it's found, it assumes that's the project root, and at some point ng new changes to that directory.
Once I removed the rogue package.json I was able to run ng new projectname and see the generated files in a new directory under my current directory.

Dupe of https://github.com/angular/angular-cli/issues/1079. It's the package.json at your root.


WIP: Update ng and rxjs dependencies and imports to version 6. FIXES #240.

Still need to fix import and usage of JQueryStyleEventEmitter (need help)
What should be the new version number ?

Thanks @emostafa! There appear to be some build errors. I'll see if I can take a look at them tonight. As far as version goes, incrementing the minor for now to v0.14.0 makes sense to me.

Hey guys any updates? Would be great if this could work with Angular 6

Can anyone please tell me if ng2-bs3-modal works with Angular 5.2? If it does, what are the changes that need to be made for making it work with 5.2?


KERISSE scraper development

Continued from https://github.com/WebOfTrust/WOT-terms/issues/131
Everything related to the development of the KERISSE scraper will be added in comments.

[ ] Scrape frequency via shell script parameter

[ ] Target resource category sets frequency
Medium : once a month, once a week, Glossary once a day, By hand (with warnings about time consumed! About 5-15 min)


Duplicate go_terms enteries that have alternative id's

I modified the script that gets GO terms so it duplicates entries that have multiple go-term numbers

In the obo file describing the GO terms, some entries had alternate IDs. These IDs were referenced in the go_cross_refereces which caused problems when agregating by namespace.
[Term]
id: GO:1990948
name: ubiquitin ligase inhibitor activity
namespace: molecular_function
alt_id: GO:0061637
alt_id: GO:0090645
...

With this edit the above [Term] is tranlated into 3 rows with identical go-term, name and namespace (but unique id)
This modification adds 2078 records to go_terms

In my opinion it would be better to either fix the referenced directly in the go_cross_references or to add an extra property to go_term that points to the original name. This would allow better aggregation of the GO-numbers.
Original pull request by @beardhatcode on Fri Oct 13 2017 at 15:13.
Merged by @bmesuere on Wed Oct 25 2017 at 11:35.

You are right that for aggregation, it would be better to replace them at parse-time. I didn't think about that at lunch.
We could do that in the java code while parsing UniProt (https://github.ugent.be/unipept/unipept/blob/develop/backend/src/main/java/org/unipept/xml/UniprotGORef.java) or make the substitution in the go_cross_ref csv file (using awk?).
@ninewise what is your opinion?
Original comment by @bmesuere on Fri Oct 13 2017 at 15:23.


Fix chaincode interest for private data purge

Gateway was not calculating chaincode interest correctly for purge private data calls, since writeset metadata was not being added for purge calls.
The collection level endorsement policies will now be honored instead of defaulting to the chaincode level endorsement policy.
Signed-off-by: David Enyeart<EMAIL_ADDRESS>

@Mergifyio backport release-2.5


Build warning

I downloaded the source package mxnet-0.12.0, but I got a warning that the variable "i" was defined at line 218 and line 226 in file kvstore_local.h.
I think you should better fix it.

Hello @lhb8125, could you please tell us the exact steps you took in order to come to this error?

I followed the install instruction in mxnet website, and I add #include "kvstore/kvstore_local.h" in file batch_norm_v1-inl.h. After that, I compiled the makefile using "make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1", then I got the warning.

Issue not reproducible with
Python 3.6.4
MXNet 1.3.0
Platform     : Linux-4.4.0-1065-aws-x86_64-with-debian-stretch-sid
machine      : x86_64
processor    : x86_64
@lhb8125 Can this issue be closed?


lowerCaseLng and cleanCode option

Is your feature request related to a problem? Please describe.
In my case, sometimes url subpath include zh-tw or zh-TW by user. I created file in /static/locals/zh-tw and added localSubpath but zh-TW doesn't working.
localeSubpaths: {     'zh-tw': 'zh-tw',     'zh-TW': 'zh-tw',   },
Describe the solution you'd like
I think maybe add lowerCaseLng and cleanCode options (like react-i18next options), filter subpath in next-i18next-middleware
Describe alternatives you've considered
I write the middleware
server.use((req, res, _next) => {     const reg = /^\/ZH-TW|^\/zh-TW|^\/ZH-tw/g;     const result = req.path.match(reg);     if (result) {       const parsedUrl = parse(req.originalUrl);       parsedUrl.pathname = parsedUrl.pathname.replace(reg, result[0].toLowerCase());       res.redirect(format(parsedUrl));     } else {       _next();     }   });
Additional context
English not my natural language if make you confuse I apologize.

URLs are indeed case sensitive. I don't really understand your point here. You should not create multiple localeSubpaths unless you actually have multiple locales.
This should be handled via plugins, etc. You can just fall back from zh-TW to zh-tw within a detection plugin or similar.


New Power Fx Function Libraries: Date Functions, Financial Functions

By submitting this pull request, you agree to the contribution guidelines

If you aren't familiar with how to contribute to open-source repositories using GitHub, or if you find the instructions on this page confusing, sign up for one of our Sharing is Caring events. It's completely free, and we'll guide you through the process.

Q
A

Bug fix?
no

New feature?
yes

New sample?
es

What's in this Pull Request?
Added 2 new Power Fx functions libraries: Date, Financial

@yourekittenme I was just coming in to process the PR. Should I expect another one to replace this one?

@yourekittenme I was just coming in to process the PR. Should I expect another one to replace this one?

Yes, I have created a new PR to replace this one.


Create Type_of_Triangle.py

Added a basic python program to determine the type of triangle - equilateral, isosceles, scalene, given lengths of all the sides of a triangle using if-else block.

Please create a issue yourself or check if related issue is open and comeback here and tag that issue so that I can assign it to you

Closes #12

issue #12 is tagged with this PR.

Tagged issue #12 with this PR


Validation module

Module: Core/Validation
We have to use decorator pattern for implementing validation module.
Preference link: Validation

IsMissing
IsPhoneNumber: length = 10, only number
IsSMSCode: length=4, only number

Due date: 03/12/2016

Closed but need to review code.


fix mysql_connector_java_tarball_url

TASK [mysql_connector_java : download mysql-connector-java] ********************
fatal: [<IP_ADDRESS>]: FAILED! => {"changed": false, "dest": "/tmp/mysql-connector-java-5.1.38.tar.gz", "failed": true, "msg": "Request failed", "response": "HTTP Error 404: Not Found", "state": "absent", "status_code": 404, "url": "http://cdn.mysql.com/Downloads/Connector-J/mysql-connector-java-5.1.38.tar.gz"}

The latest mysql-connector-java tarball is placed under http://cdn.mysql.com//Downloads, while older versions are moved to http://cdn.mysql.com//archives.
Bumping the version from 5.1.38 to 5.1.40 will fix this problem for now, but it may brake again.
So I changed the host of mysql_connector_java_tarball_url from cdn.mysql.com to dev.mysql.com.
This URL should redirect to the right URL. 😸
[shuji@koike] $ curl -IL https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.38.tar.gz
HTTP/1.1 302 Found
Date: Thu, 03 Nov 2016 03:39:18 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Set-Cookie: MySQL_S=1h776n3k0atvg314unllkl3poaa0fei2; path=/; domain=mysql.com; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://cdn.mysql.com//archives/mysql-connector-java-5.1/mysql-connector-java-5.1.38.tar.gz
Vary: Accept-Encoding
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=UTF-8

HTTP/1.1 200 OK
Server: Apache
ETag: "8f8e768a91338328f2ac5cd6b6683c88:1462815833"
Last-Modified: Wed, 02 Dec 2015 07:02:15 GMT
Accept-Ranges: bytes
Content-Length: 3938241
Date: Thu, 03 Nov 2016 03:39:20 GMT
Connection: keep-alive
Content-Type: application/x-tar-gz

[shuji@koike] $ curl -IL https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz
HTTP/1.1 302 Found
Date: Thu, 03 Nov 2016 03:47:49 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Set-Cookie: MySQL_S=m9vm5qpiraj2103hs509e01ci5eb519e; path=/; domain=mysql.com; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz
Vary: Accept-Encoding
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=UTF-8

HTTP/1.1 200 OK
Server: Apache
ETag: "415a375cf8a096ef0aa775a4ae36916d:1475514019"
Last-Modified: Sat, 24 Sep 2016 16:35:06 GMT
Accept-Ranges: bytes
Content-Length: 3911557
Date: Thu, 03 Nov 2016 03:47:50 GMT
Connection: keep-alive
Content-Type: application/x-tar-gz

CI failed on ubuntu12.04. others are fine.
TASK [mariadb : install mariadb-server and python-mysqldb] *********************

failed: [<IP_ADDRESS>] (item=[u'mariadb-server', u'python-mysqldb']) => {"failed": true, "item": ["mariadb-server", "python-mysqldb"], "msg": "No package matching 'mariadb-server' is available"}

mariadb_mirror_url: http://ftp.yz.yamagata-u.ac.jp/pub/dbms
https://github.com/qilab-/cdh5-hadoop-pseudo-env/blob/bd66392/ansible/roles/mariadb/defaults/main.yml#L5
This mirror repo is currently out of service, and causing the failure.

Thank you for your contribution!
Your PR looks good to me. 👍
Could you replace the URL of mariadb_mirror_url with an appropriate one?
If you do it and CI succeeds, I will merge this PR! 😄

ftp.yz.yamagata-u.ac.jp seems to be back 😸
rebuilding 485d635 should fix.
Could you initiate the Rebuild?
We may consider changing the mirror, anyways.
But may be with another PR?

Rebuilded and CI passed!
I merge this PR.
If you think mariadb_mirror_url should be replaced with another mirror, your next PR is welcome!