Blink component raises "App update required" error each scan_interval

Home Assistant release with the issue:
0.88.2
Last working Home Assistant release (if known):
0.88.1
NB: Logged message first seen 2019-02-28 20:58:14 GMT after upgrade and reboot. Most probably connected to a change at the Blink endpoint.
Operating environment (Hass.io/Docker/Windows/etc.):
Ubuntu 18.04.1 + Python3.6 venv
Component/platform:
Blink camera: https://www.home-assistant.io/components/blink/
Description of problem:
Blink component raises multiple Errors, repeated at each scan interval, for key device status
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
blink:
  username: !secret blink_usr
  password: !secret blink_pwd
  scan_interval: 900
  binary_sensors:
    monitored_conditions:
      - motion_detected

Traceback (if applicable):

Additional information:
Logged from a single scan interval:
2019-03-01 08:01:37 ERROR (SyncWorker_3) [blinkpy.sync_module] Could not extract camera info: {'message': 'An app update is required'}
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/blinkpy/sync_module.py", line 127, in get_camera_info
    return response['devicestatus']
KeyError: 'devicestatus'
2019-03-01 08:01:37 ERROR (SyncWorker_6) [blinkpy.sync_module] Could not extract camera info: {'message': 'An app update is required'}
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/blinkpy/sync_module.py", line 127, in get_camera_info
    return response['devicestatus']
KeyError: 'devicestatus'
2019-03-01 08:01:38 ERROR (SyncWorker_3) [blinkpy.sync_module] Could not extract camera info: {'message': 'An app update is required'}
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/blinkpy/sync_module.py", line 127, in get_camera_info
    return response['devicestatus']
KeyError: 'devicestatus'
2019-03-01 08:01:38 ERROR (SyncWorker_6) [blinkpy.sync_module] Could not extract camera info: {'message': 'An app update is required'}
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/blinkpy/sync_module.py", line 127, in get_camera_info
    return response['devicestatus']
KeyError: 'devicestatus'
2019-03-01 08:01:38 ERROR (SyncWorker_9) [blinkpy.sync_module] Could not extract camera info: {'message': 'An app update is required'}
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/blinkpy/sync_module.py", line 127, in get_camera_info
    return response['devicestatus']
KeyError: 'devicestatus'
2019-03-01 08:01:39 ERROR (SyncWorker_9) [blinkpy.sync_module] Could not extract camera info: {'message': 'An app update is required'}
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/blinkpy/sync_module.py", line 127, in get_camera_info
    return response['devicestatus']
KeyError: 'devicestatus'

cc @fronzbot

I have same error

I've just noticed that the temperature sensors for each of my 3 cameras across both sync hubs are no longer available, presumably related to this issue.

Thanks, I've disabled my integration temporarily in case of ban hammer

Thanks waiting the fix

Your the best

Even though the fix was merged, 0.89 does not have this fix in it, and still has the same error message showing up.

It will be part of 0.90

Or I just taged it for 0.89.1

why the fix not appear  in 0.89?


Update according to Keras 3

Hi,
first, thank you for this wonderful package! :)
Since September 2023, Keras has updated to Keras 3 and restructured some of its code base:
https://github.com/keras-team/keras/tree/b9be76a13a1edbea5e17a54bf91da386323222bf/keras
Sadly, due to their updates, the classification_models_3D code is not working anymore on the latest tensorflow/keras version, because the keras.engine submodule does not exist anymore but is required in multiple architectures of classification-models-3D.
See attached the error log:
---------------------------------------------------------------------------

ModuleNotFoundError                       Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/classification_models_3D/models_factory.py](https://localhost:8080/#) in <module>
     12 from .models import mobilenet as mb1
     13 from .models import mobilenet_v2 as mb2
---> 14 from .models import efficientnet as eff
     15 from .models import efficientnet_v2 as eff2
     16 from .models import convnext as next

[/usr/local/lib/python3.10/dist-packages/classification_models_3D/models/efficientnet.py](https://localhost:8080/#) in <module>
     32 from keras.applications import imagenet_utils
---> 33 from keras.engine import training
     34 from keras.layers import VersionAwareLayers
     35 from keras.utils import data_utils

ModuleNotFoundError: No module named 'keras.engine'

Thank you for your time!
Cheers,
Dominik

change
from keras.engine import training
to
from keras.src.engine import training

Hello,
This thread is a bit old now, I am sorry to wake it up.
Did you try the recent release 1.1.0? It should be up-to-date with keras 3.
Regards,
Nicolas


Edit Data allows creating duplicate rows even though prompt says it doesn't

SQL Operations Studio Version: 335b9f445f370e99f29d1dd3f5d819a9872198e1

Steps to Reproduce:
Edit Data will allow you to edit a row to not become unique (i.e make it identical do another), but won't let you edit a row that is already unique. Although the error you are shown states it shouldn't let you do the first either.

Adding to this, I also noticed this is an issue with SSMS, so something that both tools are doing wrong. Also once added, those rows cannot be edited/deleted/modified in Edit Data view.


[Proposal] Convert ONNX to ML.NET model in Visual Studio

Problem
To use an ONNX model with ML.NET, you create a pipeline that includes the ApplyOnnxModel transform. The pipeline then needs to be converted into an ITransformer before using the model to make predictions. Therefore, every time you use the model to make predictions, you have to call the Fit transform. The challenge with that is now instead of loading the model and calling Predict or Transform, you have to also generate the ITransformer. Unless the application the model is being used in is a console application, you have to create a separate console app or a notebook just to convert the ONNX model into ML.NET.
var onxxModelPipeline =
   // pre-processing transforms
  .Append(ctx.Model.ApplyOnnxModel("outputColName", "inputColName", "model.onnx")
  // post-processing transforms

var model = onnxModelPipeline.Fit(emptyIdv);

As a result, it's recommended to save the ITransformer as an ML.NET model so you can use it just like any other ML.NET model.
Proposal
In Visual Studio, when I right-click on an ONNX model file, I'd like the option "Convert to ML.NET". In the background, a process takes my model, creates an ML.NET pipeline with the default input and output columns specified by the ONNX model and saves the ML.NET pipeline to my project.
Things to consider

Conversion would not include pre-processing and post-processing steps.
Would the user have control over the input / output columns?

Related Issues

[x] #1870
[x] #1182

There isn't another issue for this... what I was thinking about was the request to support he ML.NET file data format (issue 946).

Thanks for checking.

Related to #1870

Add Export Tab to Advanced Training Options
Limit transforms / trainers to those that are exportable to ONNX
Related to dotnet/machinelearning#6504


VM on

its will be good if you add an option that launch on vm so we can make test in vm to see how that work.

There is. Turn on "debug mode" in the builder.


AVS SDK cannot get access token after 19 hour run

Briefly summarize your issue:
Client has run for 19 hours and received token every hour OK. After 19 hours however the connection status doesn't change from connectionStatusChangedPENDING to connectionStatusChangedCONNECTED. Device has working network connection whole time.
What is the expected behavior?
Device to receive access token.
What behavior are you observing?
State provider timeouts for several hours.
2018-08-15 05:34:59.137 [ 10] E ContextManager:updateStatesLoopFailed:reason=stateProviderTimedOut
2018-08-15 05:34:59.138 [ 10] E PostConnectSynchronizer:onContextFailure:error=STATE_PROVIDER_TIMEDOUT
Provide the steps to reproduce the issue, if applicable:
Let the client run long enough.
Tell us about your environment:
Yocto Poky linux with kernel 4.1.15 and imx7D.
What version of the AVS Device SDK are you using?
  <1.8.1>

Tell us what hardware you're using:

[ ] Desktop / Laptop
[ ] Raspberry Pi
[ ] Other - tell us more:
imx7d picopi

Tell us about your OS (Type & version):

[ ] Linux
[ ] MacOS
[ ] Raspbian Stretch
[ ] Raspbian Jessy
[ ] Other - tell us more:
Yocto linux

Hi @m2sillanpaa,
Can you provide DEBUG9 logs so we may better diagnose what the issue is? To do so, please configure with the cmake option -DCMAKE_BUILD_TYPE=DEBUG, and run the SampleApplication with DEBUG9.
If the full logs are too large, logs around when the token failure occurs may also be helpful.

Hi.
It's going to take some time as it takes quite long time to reproduce. So far it has occurred twice this week. It apparently reconnected, but took about 5 hours.

Hi @m2sillanpaa,
I believe the issue you are seeing is the same as: https://github.com/alexa/avs-device-sdk/issues/727. Can you see if your logs contain:
AudioPlayer:onFocusChangedTimedOut:newFocus=BACKGROUND,m_currentActivity=PLAYING


Handle date/time conversion in runtime via instantiable FormattedResources

Implements Patrick's idea from #258. Closes #230.
This pulls all android.icu imports out of generated code and into the runtime, allowing substitution of non-Android ICU dependencies in JVM unit tests. A generic DateTimeConverter interface is introduced to format date/time parameters. The default AndroidDateTimeConverter implementation instantiates android.icu.util.Calendars. JVM tests can substitute a JvmDateTimeConverter into their FormattedResources instance to instantiate com.ibm.icu.util.Calendars, avoiding the need for Robolectric to format date/time strings.
This also makes the generated FormattedResources an instantiable class, rather than an object, so the appropriate DateTimeConverter can be injected. A default AndroidFormattedResources property is introduced so simple static access is still supported.

Now that we have both this and https://github.com/cashapp/paraphrase/pull/258, does one approach feel better than the other?

This one feels better. We've all been through the swapping-static-references-in-tests phase before and agree it's painful, so let's not go there.


Suggestion : plugin to use mercurial repositories

Hello,
May I do a suggestion : I think it would be great to be able to use mercurial repositories as it is possible with git repositories.

+1


cache meta overrides sourced from meta_override_url

Clients should cache meta override json sourced from some configured meta_override_url

@elsirion will review whether this is closed


update rbac v1beta1 to v1

https://github.com/rancher/rancher/issues/35496

Closing this because I pulled the commit in an existing PR and  and didn't want to wait on multiple drone builds to pass-https://github.com/rancher/rancher/pull/35357/commits/01053b646f5def7e7cadd11b7c5dd9e6d273227d.
It's the exact change that was approved here, no net new changes.


Use FUSE with FileField URLs

This adds a fix to be able to bypass the field_file_to_local_path for S3FileField which was a limitation of #257. Currently, we fallback to vsicurl for FileFields where we can
The trick was making sure the host on the file URLs were correct in dev/prod environments (e.g. minio hostname in a dev environment)
This also adds a general test to make sure we can use FUSE with FileField (when run through docker-compose where FUSE is installed... CI does not test this).

This is still failing in local development. It's as though the credential in the URL confuse rasterio??
Traceback (most recent call last):
  File "/opt/django-project/rgd/geodata/tasks.py", line 15, in _safe_execution
    func(*args, **kwargs)
  File "/opt/django-project/rgd/geodata/models/imagery/etl.py", line 92, in read_image_file
    _read_image_to_entry(image_entry, file_path)
  File "/opt/django-project/rgd/geodata/models/imagery/etl.py", line 55, in _read_image_to_entry
    with rasterio.open(image_file_path) as src:
  File "/opt/django-project/.tox/test/lib/python3.8/site-packages/rasterio/env.py", line 435, in wrapper
    return f(*args, **kwds)
  File "/opt/django-project/.tox/test/lib/python3.8/site-packages/rasterio/__init__.py", line 207, in open
    s = DatasetReader(path, driver=driver, sharing=sharing, **kwargs)
  File "rasterio/_base.pyx", line 262, in rasterio._base.DatasetBase.__init__
rasterio.errors.RasterioIOError: '/tmp/rgd/http/minio:9000/test-django-storage/81368dbb-7ccf-422c-a007-339aabceebec/Elevation.tif?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minioAccessKey%2F20210308%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210308T063740Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=1be97f3cfa5fa20423ac86209c460fd5c986882e7d283b0b30c778bcc9805da4..' not recognized as a supported file format.

For now, using vsicurl to load files in the minio/s3 app storage works just as fine (until we need anything other than GDAL to load the files). For that reason, I may revert some of these changes and merge in others.

It seems this error reading files with credential in the URL is actually coming from GDAL:
# Path is a FUSE
ds = gdal.Open(path)
ERROR 4: foo/http/localhost:9000/django-storage/0a48e957-ea4f-40bf-b15a-88d2661b3497/LC08_L1TP_029040_20210107_20210107_01_RT_B4.tiff?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=minioAccessKey%2F20210308%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210308T164037Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=54f060b9776a2c206d80a9ca5bebde0225305a57cb8c24d4f4cd0b818f8311d4..: File name too long

# Or with vsi
In [16]: gdal.Open(vsicurl)
ERROR 4: `/vsicurl?url=http%3A%2F%2Flocalhost%3A9000%2Fdjango-storage%2F0a48e957-ea4f-40bf-b15a-88d2661b3497%2FLC08_L1TP_029040_20210107_20210107_01_RT_B4.tiff%3FX-Amz-Algorithm%3DAWS4-HMAC-SHA256%26X-Amz-Credential%3DminioAccessKey%252F20210308%252Fus-east-1%252Fs3%252Faws4_request%26X-Amz-Date%3D20210308T164037Z%26X-Amz-Expires%3D604800%26X-Amz-SignedHeaders%3Dhost%26X-Amz-Signature%3D54f060b9776a2c206d80a9ca5bebde0225305a57cb8c24d4f4cd0b818f8311d4&use_head=no&list_dir=no' not recognized as a supported file format.

I either get File name too long or not recognized as a supported file format errors

You might try some of the config options mentioned here https://github.com/OSGeo/gdal/issues/1609#issuecomment-498199300.  At the very least, some of the debug options could be enlightening.


Set up fresh System for LZ/Pendler

Please set up a fresh system for LZ.

Why is this issue not closed yet, @tillprochaska ?

@FrauCsu I think we simply forgot to close it :)


Swagger-Jaxrs does not recognize @API annotations with different classloader

I am using swagger-jaxrs (1.5.12) in a webservice which is contained in a war-file.
The webservice implementation and its contract is placed in the underlying ear file.
The classes are discovered by the Scanner (which as well checks for the annotation!) but the reader fails to recognize the Annotations. This seems to be caused by the fact that the swagger-annotation-jar classes are loaded with two different classloaders.
The jar is placed in the ear visible to all modules but, by definition ,Wildlfy uses a different classloader for every war (and the underlying ear).
I would expect the swagger-core to recognize the annotation either way. The deployment of the webservice endpoints is working without any problems.
For further Information see this stackoverflow-question

Possibly same problem as #485


Add override_content_disposition support for oss

Take https://github.com/apache/incubator-opendal/issues/1739 for reference.

Hi, @Xuanwo can this task be assigned to me?

@leenstx Have fun!


Http 404 error while giving url like .vpf and refereshing the page

Hi,
I am using angular 5 universal with asp.net core.I am getting "Http 404 error while giving url like .vpf and refereshing the page" error.pls help me to fix it
Thanks

I changed routing in asp.net core startup file.its working fine

@kamalakkanni What did you change?


d435 When will body tracking, bone information, gestures, and face information functions be provided?

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
d435

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
all

SDK Version
librealsense2.0 }

Issue Description
<Describe your issue / question / feature request / etc..>

Hi @asalis
If it is BodyTracking, it is not an Intel product, but there is software like below.
https://nuitrack.com/#rec38627247

[Realsense Customer Engineering Team Comment]
Hello @asalis,
The RealSense SDK 2.0 is focused on providing depth across multiple operating systems and wrapper.  All open source.  We provide a few code samples which we hope the community will add to.  We also provide tools like the viewer.  What we are hoping to do is expand into middleware like person tracking or scanning via third-party partners.  Please watch our site as we bring these partners on board.
Regards,
Jesus G.
Intel Customer Support

How long can we expect to watch the site? A month? a year?

[Realsense Customer Engineering Team Comment]
Hello @djnugent,
Unfortunately, there is not a specific timeframe. Projects are ongoing continuously and we will announce partnerships and products as we are legally allowed after they are completed.
Regards,
Jesus G.
Intel Customer Support

moyayo, I'm currently working nuitrack. well recognizes in front, on other sides there are small problems.

@threat0day, I was finally able to test it using the d415 and the results were good, but the kinect is better.
The problem is that the skeleton turns into the garbage and then switches back to good again.
I hope they continue improving it since it is the best current solution

@moyayo i tried using OpenPose, but there output 2d in default. Exist 3d point cloud module, but bind to D415 i could not.

D435 and RealSense SDK 2.0,can use these get the infomation of hand position and posture now?Thanks

@BerryOne not yet

@threat0day,i just need the information of hand position and orientation,what can i use,nuitrack orOpenPose?Thanks

@BerryOne,  for 3d recognition hand, gestures you can using NuiTrack, but without fingers. In your case better using leapMotion

[Realsense Customer Engineering Team Comment]
Is this still an issue?  If not, ticket will be closed in 5 days.

This is an ongoing question of interest to many - Nuitrack has some good possibilities - though still not as accurate as we would like in some user cases .... but worth a look.
Westa

Fwiw - openpose licencing for commercial uses is just plain dumb .... just saying

And FWIW, Nuitrack only supports a single camera per machine. If you want to use more than one camera to cover a larger area (which is one of the reasons to choose RealSense over the competition because of its dual-IR depth tracking), you're out of luck. One way to work around that, is to use a little NUC per camera, do the detection on the NUC and transmit the results across the network.
Personally, I really don't get why Intel chooses to just provide raw data, instead of processed data like skeletons or human tracking. Your product is a glorified webcam, no more no less. You're putting all the hard work on the shoulders of your target audience. RealSense is not worth the investment.

[Realsense Customer Engineering Team Comment]
hi @paulhoux,
We are working with several software vendors to provide solutions such as skeletal tracking and object tracking.
We do plan to have a page that points people to software vendors, the page is not ready yet, but we have the first vendor LIPS released their SDK supporting Realsense cameras, please visit http://www.lips-hci.com/downloads/category, and select the model as intel Realsense camera.

Hi There,
Would be intersted in knowing which SDK's you are testing with.  We have found connection issues with nuitrack on second connection attempts - the work around for use was to create a realsense context as well - and force a hardware reset on the d435 using the realsense context - BEFORE each attempt to start the nuitrack system.
Provided you are careful - the realsense context can be started and released - without affecting the nuitrack sdk.
Westa

@vpenades we are in a similar position - having spent the last 12 months investigating new options.
The thing most people seem to forget is that the Kinect 2 system was using a true TimeOfFlight sensor being sold at a price well below what even current true ToF sensors are charging.  Until someone gets a price compatible ToF sensor to market we are dubious about commercial applications.
Westa

@wtatters
exactly the same position, I didn't want to go with the kinect v2 ( as it is not EOL and discontinued ) and opted for the D435. I am quite disappointed with the lack of support from @RealSense-Customer-Engineering  on not only poor docs but a lack of caring in implementing things they had running on older versions of the hardware

D435 is not a good product for our needs - not exactly sure who it would fit - but if you only need 50cm depth and wide angle scan it may be an option - for everyone else - D415 is a better fit IMHO.
Westa

[Realsense Customer Engineering Team Comment]
hi @rofoto,
If you are talking about MW that we will have 3rd party to work with that, this still the direction, else, please file issue ticket so we can help.
For poor docs? please help to point out what kind of doc we are missing, we can improve, and welcome your contribution too.

[Realsense Customer Engineering Team Comment]
Our 3rd Party Software Referral Page is now live. We will continue to add ISVs as more become available.
https://realsense.intel.com/software-for-intel-realsense/

@RealSenseCustomerSupport  serveral sites provided in that link were down


never return nil from line_for_record, instead return an empty string…

… if no other line can be found.

I was getting export exceptions for both ctags and cscope. Different exceptions for each, but both related to invalid methods on nil:NilClass. Returning an empty string made the resulting database usable by codequery. Is this a good approach?

I think I follow; if you could provide a small piece of code that fails this way when parsed and then exported, I'd appreciate being able to dig in a bit deeper.

When I threw starscope at a large directory of files (say, indexing my installed gems folder) I got tons of errors. Here are a few examples:

syntaxerror: Invalid character (javascript)
unterminated string meets end of file (ruby)
undefined method `x' for obj:Class

One specific error I found really entertaining was that in Ruby any case of ENCODING produces a Parser::Source::Map that doesn't respond to .name but responds to .type with :const rather than actually being a Parser::Source::Map::Constant. I think it must be because the parser considers it a "keyword", i.e. expression, but the ast resolves it into the actual encoding constant? Not sure. Anyway if you run starscope on a ruby file containing only "puts ENCODING" you'll get an error.
But all of those are merely symptoms. The real underlying issue is that:

many types of parse errors can and do happen in the file extractor
this rescue in db.rb:extract_file doesn't do any transactional rollbacks. i.e. as the function goes records are created in a partially-valid state and those records aren't complete until the function completes successfully ... but any error raised at any point during extraction leaves the partially-valid record and meta for that record.

The result is that when db.rb:line_for_record is called by the exporters it's quite possible for both conditional returns to fail. The block will end up returning nil which causes a variety of fun backtraces over in the exporter.
I figured returning an empty line was a reasonable and expedient way to silently ignore parse errors and allow the exporters to complete.

Travis seems to be complaining about single- vs double-quoted strings. If you accept this pull request I can fix it to be single-quoted before you pull.

as the function goes records are created in a partially-valid state and those records aren't complete until the function completes successfully ... but any error raised at any point during extraction leaves the partially-valid record and meta for that record.

This doesn't match my understanding. The various extractors add records in a transactional way by calling yield. Either they call yield or they don't; there's no way for them to yield a partial record?
:thinking:
Oh, are you referring to the fact that if a record is yielded, and then the extractor throws, that @meta[:files][file][:lines] = lines never runs? That seems like it might be causing this? I think the better fix for that might just be moving the last 5 lines of extract_file to an ensure so that the metadata is correctly populated even if the extraction failed?

Oh, I see, I wasn't correctly following the flow. You're saying if we add the ensure at the end of extract_file then any record for which line_for_record might be called is guaranteed to have a valid non-nil entry in file[:lines] because the record is only created by the yield statement and by the time yield is called we know the extractor hasn't thrown an exception? I agree ensure is a better approach.
Out of curiosity is it absolutely impossible for a record to exist but have no line number? If such a record existed then the file[:lines] check in line_for_record would be true but the line itself might still be nil.

Ya, exactly.

Out of curiosity is it absolutely impossible for a record to exist but have no line number? If such a record existed then the file[:lines] check in line_for_record would be true but the line itself might still be nil.

It's not principally impossible, but it is currently true that every record yielded by the extractors I built does have a line number. You could have an extractor that yielded line-less records, and it would mostly work but wouldn't be exportable to ctags/cscope. The correct fix to support something like this would probably be to skip cases in the exporter when line_for_record returns nil since we don't have enough information to export correctly in that case anyway.

Yeah, thanks for the explanation. I have a much better understanding of how starscope works after digging into your response.
I reproduced the exception I was getting and confirmed that it was because the record had been inserted into the tbl but the parse exception had caused file[:lines] not to be populated, exactly as you suspected. Adding the ensure did, indeed, fix it.

You can update this PR (or file a new one) for the ensure fix, or I'll get around to it probably this weekend.

Yes, apologies, I didn't get time yesterday. Looks better now? (Please pardon my inexperience with git!)

Thank you!


FusedExplosive Methods not working

Hi there. I'm running SpongeVanilla 1.12.2-7.1.0-BETA-9 and I've encountered some problems with FusedExplosive methods. API Page
FusedExplosive#defuse() and #prime() don't error, but don't seem to do anything at all.
FusedExplosive#isPrimed() doesn't error either, but always returns false. The internal value might not be updated correctly.
I've looked at SpongeCommon FusedExplosive Interface and the code behind those methods seems to be missing.
Could you please confirm this issue, and fix it if needed? Thanks a lot for your time.

FusedExplosive is implemented by several different entities. Which one are you having problems with?


define a more abstract and flexible implementation of token-attribution

Is your feature request related to a problem? Please describe.
Currently, token attributions can only be set with a fixed color and opacity based on the score between -1(red) and 1 (blue).
Describe the solution you'd like
OLD
TokenAttributions(
     token="good", attributions={"label": "ENTITY_NAME"}
)

NEW
I would like to see something like, where the label is shown on hover.
TokenAttributions(
     token="good", attributions={"label": "ENTITY_NAME", "opacity": 0.5, "color": "#FFFFFF"}
)

Describe alternatives you've considered
Only using red and blue.
Additional context
N.A.

Is there any motivation for not going for the following signature?
TokenAttributions(
     token="good", label="ENTITY_NAME", opacity=0.5, color="#FFFFFF"
)

This ought to have better usability due to IDE autocompletions/suggestions.

@tomaarsen that suggestion is even better.

Perhaps this needs some additional review in general because it feels a bit buggy.
For some reason, by providing attributions without label that matches the prediction, records are visible without any text. @dvsrepo was it supposed to be the case that each label could have its own attributions? This doesn't seem to work within the UI.

from the UI, maybe it would be possible to show something like

Okay, it currently only works if the first label align with the token attribution label for some reason.

@frascuchon can give more details about the data model. I think it was more or less prepared in terms of data model to be able to define attributions for each predicted class in the multi-label setting. But this was not at all supported by the UI. In the UI the assumption is: you provide a predicted class (single-label, multiclass scenario), and you add the attributions for that predicted class. If you don't put the attribution for the predicted class is buggy. I was fighting with this a few days ago.
This feature would benefit from a full revision

Okay, it currently only works if the first label align with the token attribution label for some reason.

I think in the UI the logic is looking at the predicted_as field which is a computed field from the predictions and in the single-label scenario is that with the highest score, and maybe just the first predicted label if all are zero  But I could be wrong :-) and it's confusing

Yes the assigned labels are only shown for the highest corresponding prediction score.

@jfcalvo @frascuchon these are the highlight discussed/mentioned during the feedback task discussion

https://github.com/argilla-io/argilla/issues/2785


aft-invoke-aft-account-provisioning-framework failing with InvalidInputException

Terraform Version & Prov:
AFT Version:
1.6.7
Terraform Version & Provider Versions
Please provide the outputs of terraform version and terraform providers from within your AFT environment
terraform version
0.15.5

terraform providers
hashicorp/aws v4.48.0

Bug Description
New AWS account provisioning via AFT fails at Lambda /aws/lambda/aft-invoke-aft-account-provisioning-framework. See below for stacktrace.
To Reproduce

Define a new account in my terraform-aft-account-request Github repository and push

Expected behavior
The new account should be created.
Related Logs
Example Request ID: 751dd8ee-dc1c-4bdb-a2a2-e9d20e691c1c
{
    "time_stamp": "2022-12-23 23:30:25,800",
    "log_level": "ERROR",
    "log_message": {
        "FILE": "aft_invoke_aft_account_provisioning_framework.py",
        "METHOD": "lambda_handler",
        "EXCEPTION": "An error occurred (InvalidInputException) when calling the DescribeAccount operation: You provided a value that does not match the required pattern."
    }
}
Traceback (most recent call last):
  File "/var/task/aft_invoke_aft_account_provisioning_framework.py", line 39, in lambda_handler
    invoke_event = build_invoke_event(
  File "/opt/python/lib/python3.8/site-packages/aft_common/account_request_framework.py", line 420, in build_invoke_event
    account_email = utils.get_account_email_from_id(
  File "/opt/python/lib/python3.8/site-packages/aft_common/aft_utils.py", line 391, in get_account_email_from_id
    response: DescribeAccountResponseTypeDef = orgs.describe_account(AccountId=id)
  File "/opt/python/lib/python3.8/site-packages/botocore/client.py", line 508, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/opt/python/lib/python3.8/site-packages/botocore/client.py", line 915, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidInputException: An error occurred (InvalidInputException) when calling the DescribeAccount operation: You provided a value that does not match the required pattern.

Hey @joowani, thanks for reaching out. The Account ID used in the orgs.describe_account call should be present in an event emitted by AWS Control Tower. We've recently touched on the Organizations logic in AFT, I would recommend that you upgrade to the latest release and re-attempt the account request process, or reach out to AWS Premium support to help better understand why the event may not have had an Account ID.

Closing due to inactivity - please open a new ticket if you experience this issue on 1.7.0+


Correct and consistent usage of blt_list_append() macro

The blt_list_append() macro has the following signature:
blt_list_append( TO _list
                 ELEMENTS _elem1 _elem2
                 IF _cond )

This is a reminder to check that the following two uses have the same semantics:
blt_list_append( TO _list ELEMENTS _elem1 _elem2 IF _cond )
blt_list_append( TO _list ELEMENTS _elem1 _elem2 IF ${_cond} )

I suspect that the former might return true when the variable exists, regardless of its value, which is not the desired behavior.
Note: Both forms work with cmake's if(...) macro, but blt_list_append is different.
In either event, we should be consistent with how we use this macro throughout the axom build system.

Resolved conclusively (with tests) in https://github.com/LLNL/blt/pull/322.

The tests confirm that one does not need to escape the variable passed to the IF clause of the macro for it to successfully determine the predicate value.


Graylog 3.0 Support

Please update pack to support GL >=3.0.

I would support this as well, our deployment will be staying at 2.5.1 until this gets updated or somebody else comes by to update it.

The easiest solution is for somebody who imported the content pack previously and then upgraded to v3.0, to recreate the content pack through the GUI (re-downloading it doesn't work).  Unfortunately I happened upon this problem after I'd deleted all the content or I'd do it myself.

News for the update pack to support GL >= 3.0?
I have newly installed this version and i'm unable to use this content pack...thank you

Try at your own risk.  Should work as I basically copied this and updated for GL3.  https://github.com/spejosh/SonicWall3CP

Released an updated version for 3.0 but also moved to winlogbeats so would require some modifications.


[PE-D][Tester B] Same name cannot be marked

If I have 2 people with the same name, I cannot mark the 2nd person. This is perhaps because ur identifier is id and not the name. And you are detecting math through name. Perhaps you can detect it through index instead.

Labels: severity.High type.FunctionalityBug
original: devanshubisht/ped#9

Mitigation of Feature Flaw:

To be fixed by clearly stating limitations of current command in UserGuide.md with constraints, potential pitfall and workarounds etc.
Place concept of enhancement under "Future Improvements for Features"


fix(Checkbox): Remove empty label element

New styling that changed the label::before into input::before
Fixes #1740

This is an attempt to fix: https://github.com/digdir/designsystemet/issues/1735.
Only the checkbox side.
Should be possible to apply the same changes to the radio input.

Hi, thanks for the PR!
I'll let @mimarz look at this, but be is currently on vacation until next week 🐣

@mimarz added new commits

Changed to use input instead of input::before for the styling
Removed outline from input element
The input::before now is set to a 44px (2.75rem) size. (Had some trouble with the hover reflecting this)
Updated to use github keywords. (also added the git issue number to the commit header)


GoPro Hero 4 Silver

Hey,
thanks for this lib. I have some trouble using it with my GoPro Hero 4 Silver.
I can't stop, start the preview. (no error) and I can't change the orientation,resolution and fps and getting errors like:
 GoProHero.command(fps, 240) - error opening http://<IP_ADDRESS>/camera/FS?t=********&p=%0a: HTTP Error 404: Not Found
And yes it isn't possible to open the link in the browser. Are there any changes for the GoPro 4?
Thanks!

The GoPro HERO4 seems to have different API support. I have not had a chance to do extensive testing with GoPro HERO4 cameras.


Templatise the front-page layout

It would be nice to have a templatised front-page layout in some way, to make it easier for new deployers to customise to their own needs - and then reference it in the deployment instructions.

As discussed, this could be light touch, e.g. just have high-level frontpage editable properties specified in a config file that are used by the front page (for example - title, logo, text intro, copyright).


enchant: fix broken release URL

The AbiWord fork of enchant does not contain any releases.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Also the homepage is inaccessible now. Could you change it to http://rrthomas.github.io/enchant/ ?

Also the homepage is inaccessible now. Could you change it to http://rrthomas.github.io/enchant/ ?

Done.

@ofborg build enchant.src


SDL_gfx: 2.0.25 -> 2.0.26

Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

built on NixOS
Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
found 2.0.26 with grep in /nix/store/cbvm4r21kf3acf43hff5sf6r1vbd6lpg-SDL_gfx-2.0.26

Success on x86_64-linux (full log)
Attempted: SDL_gfx
Partial log (click to expand)
 /nix/store/qrxs7sabhqcr3j9ai0j0cp58zfnny0jz-coreutils-8.29/bin/install -c -m 644 SDL_gfx.pc '/nix/store/vysqmmppz74sai32y33ag96i80j6knn6-SDL_gfx-2.0.26/lib/pkgconfig'
make[1]: Leaving directory '/tmp/nix-build-SDL_gfx-2.0.26.drv-0/SDL_gfx-2.0.26'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/vysqmmppz74sai32y33ag96i80j6knn6-SDL_gfx-2.0.26
shrinking /nix/store/vysqmmppz74sai32y33ag96i80j6knn6-SDL_gfx-2.0.26/lib/libSDL_gfx.so.15.9.1
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/vysqmmppz74sai32y33ag96i80j6knn6-SDL_gfx-2.0.26/lib
patching script interpreter paths in /nix/store/vysqmmppz74sai32y33ag96i80j6knn6-SDL_gfx-2.0.26
checking for references to /tmp/nix-build-SDL_gfx-2.0.26.drv-0 in /nix/store/vysqmmppz74sai32y33ag96i80j6knn6-SDL_gfx-2.0.26...
/nix/store/vysqmmppz74sai32y33ag96i80j6knn6-SDL_gfx-2.0.26

Success on aarch64-linux (full log)
Attempted: SDL_gfx
Partial log (click to expand)
 /nix/store/c8bwnx988ckbw2igggv41s1mbd0v743m-coreutils-8.29/bin/install -c -m 644 SDL_gfx.pc '/nix/store/fkdyqvyb2vzvsf0641hsvpika4d2g9hr-SDL_gfx-2.0.26/lib/pkgconfig'
make[1]: Leaving directory '/build/SDL_gfx-2.0.26'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/fkdyqvyb2vzvsf0641hsvpika4d2g9hr-SDL_gfx-2.0.26
shrinking /nix/store/fkdyqvyb2vzvsf0641hsvpika4d2g9hr-SDL_gfx-2.0.26/lib/libSDL_gfx.so.15.9.1
strip is /nix/store/3zq400fri5dv7d30lpxlqm2v9y1iis6j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/fkdyqvyb2vzvsf0641hsvpika4d2g9hr-SDL_gfx-2.0.26/lib
patching script interpreter paths in /nix/store/fkdyqvyb2vzvsf0641hsvpika4d2g9hr-SDL_gfx-2.0.26
checking for references to /build in /nix/store/fkdyqvyb2vzvsf0641hsvpika4d2g9hr-SDL_gfx-2.0.26...
/nix/store/fkdyqvyb2vzvsf0641hsvpika4d2g9hr-SDL_gfx-2.0.26


Add testing: puppeteer recommended (https://github.com/puppeteer/puppeteer)

https://dev.to/scahhht/simple-steps-for-testing-a-chrome-extension-in-puppeteer-2pm3
https://tweak-extension.com/blog/complete-guide-test-chrome-extension-puppeteer/

Consider Cypress


feat: CSS Modules Plugin

Description

CSS modules plugin added to v6
Changes/Tasks

[x] Changed code

Motivation and Context

People started getting nasty in the git issues.
It's time that ends
Resolves: #864, #601

Oh, I guess the base branch should be v6 though - I'm still working on a PR for v5, should have it open either today or tomorrow.

@nikaspran no.. its on the right branch ;)
DM me on twitter if you are confused, same username as on github.

@tannerlinsley what's going on with netlify deploys. i don't 100% know what I'm looking for in there of if related

@nikaspran regarding your PR, it’s still very important for v5. I’ll support or collaborate with you on it if you wish.
PR the v5 branch


just keep running

just keep running

I keep running for 11 epochs and accuracy in validation set rise to 99.5%,but training accuracy is still always 0. Do you know why? Thank you very much!
Originally posted by @jolinlinlin in https://github.com/sirius-ai/MobileFaceNet_TF/issues/39#issuecomment-483536646

same with #39.


Create configuration options for RAML Verification Mojo

Currently the RAML Verification Mojo does not enforce any RAML verification checks. We need to add boolean/other way of enabling/disabling checkers for the MOJO

Initially we will be supporting this via boolean flags. Readme will be updated to reflect this usage

done


#[cfg(test)] args are not IDE friendly

With latest intellij-rust (14 Feb 2022), the IDE doesn't work well for such functions:

How about making it a new function like:
#[cfg(test)]
pub fn root_with_collect(event: &'static str, collect: GlobalCollect) -> (Self, Collector) {}

Collating functions similarly affected:

[ ] root
[ ] enter_with_local_parent


TrustStoreConfiguration is not serializable

Tried to serialize a TrustStoreConfiguration object and got the following exception:
com.fasterxml.jackson.databind.JsonMappingException: Direct self-reference leading to cycle (through reference chain: com.palantir.trust.Json["trustStorePath"]->sun.nio.fs.UnixPath["parent"]->sun.nio.fs.UnixPath["root"])
Is it meant to be like this?

Had assumed this wasn't something that ever needed to be serialized, what's the use-case?

We are trying to pass some information from one process to another spark-submit process using a file. And the trust store configuration is part of it.

It's failing on the path to the trust store on disk, which likely isn't even a valid path on the workers.
What is being serialized that is referencing the trust store config? Do you actually want to serialize the trust store config in that case?

If you do actually want this, you could use https://github.com/FasterXML/jackson-datatype-jdk7 (specifically see https://github.com/FasterXML/jackson-datatype-jdk7/issues/1 )

The driver will be the only one that's using the trust store. And it will be on the same box as the process that forked this spark-submit process.
Thanks for the link!

Pretty simple to fix this. Will adjust in a bit.

hm, actually, I'd expect this to work, will need to do some testing

@markelliot I followed the link @schlosna sent and registered the jdk7 module to the ObjectMapper and it's working now :) Thanks for taking a look at the problem!

FYI the change made in #52 doesn't address the issue here (although adding the jdk7module does so I'm just going to do that), because SslConfiguration still uses java.nio.file.Path.


Typo: "48-bit" should read "48-digit"

"cmdlet creates a random 48-bit recovery password"

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

ID: 35517b3c-d00e-c08d-c274-8b606ad87bfa
Version Independent ID: 3428c627-8703-752e-fbdf-52526f281f57
Content: Enable-BitLocker (bitlocker)
Content Source: docset/windows/bitlocker/enable-bitlocker.md
Product: w10
Technology: powershell-windows
GitHub Login: @coreyp-at-msft
Microsoft Alias: coreyp

@officedocsbot assign @e0i

@zzzz4
The issue has been noted and the document will be revised in the light of your feedback.
Thanks.

Similar to: #1022

@zzzz4
Upon your feedback, We have updated the content with relevant changes accordingly. Thanks.


Fix Filter

Fixes #744
If you look at the screenshot in #744 you'll notice the Java/Kotlin logger only sends a single pipe (|).
This is one solution, another would be to instead insert the required extra pipe in the Java/Kotlin logger (whereas this changes the search to only look for one).
I've also changed the fake API logger to only send a single pipe for closer consistency.

I should note, I was unable to get this compiled to do a true test, unfortunately Kotlin seemed to keep complaining about Kapt and I was unable to resolve it properly.
If you would feel more confident about this PR I can try more tomorrow, but this seemed like a fairly straightforward change. :slightly_smiling_face:

I didn't notice it to be honest 😅

I should note, I was unable to get this compiled to do a true test, unfortunately Kotlin seemed to keep complaining about Kapt and I was unable to resolve it properly.

Reposilite currently cannot be compiled on JDK17, because Kapt does not support this yet (#587). It barely support JDK16, because newer versions of Kotlin (1.5.31+) breaks the compatibility. What was your environment? 🤔
Thanks for PR! :)


Discord Integration: Shorter Links or Bot-based Embeds [enhancement]

Problems:

Discord users put their high character count xenpaper links right in chat, hogging a lot of screen real estate.
But also, they are limited in character length. Attaching a text file is not doable but not convenient.

Solution ideas:

Shorten links with services like TinyURL. Limitation: they only allow 600 links per month via their API with the free package.

Discord bot to post the Embedded link. (Users can't post embedded links, but bots can, and thereby shorten the post length and allow xenpaper scripts longer than a user's post length limit)

Small DB caching the recently copied links; reformat the copied links to use a shortened URL. Limit stored links per IP so that one person can't mash the copy button 10,000 times and hog the entire cache. Probably the easiest approach...

...while this is a low-impact enhancement right now, it could be nice longer term if xenpaper gains more functionality and more popularity.

I think you might be overthinking the URL shortening abuse prevention mechanic.
The main concern with your suggested url-shortening approach is that it requires server-side code to exist. Right now, xenpaper is client-side application.
Regardless, here's what I thought of:
Here is a xenpaper url I shared recently: https://xenpaper.com/#%23_12EDO-17EDO_RETUNING_MAP
%23_C_%3A_0__%3D_0____(%2B0)
%23_C%23%3A_2__%3D_141__(%2B41)
%23_D_%3A_3__%3D_212__(%2B12)
%23_D%23%3A_5__%3D_353__(%2B53)
%23_E_%3A_6__%3D_424__(%2B24)
%23_F_%3A_7__%3D_494__(-6)
%23_G_%3A_9__%3D_635__(%2B35)
%23_G%23%3A_10_%3D_706__(%2B6)
%23_A_%3A_12_%3D_847__(%2B47)
%23_A%23%3A_13_%3D_918__(%2B18)
%23_B_%3A_15_%3D_1059_(%2B59)

{17edo}_%23_12EDO_mapped.%0A%23_I_wanted_to_keep_a_12EDO-chromatic_feel%0A%23_while_preserving_the_17edo_scale.%0A0_2_3_5_6_7_9_10_12_13_15_17_%23_chromatic_map%0A0_3_6_7_9_12_15_17___________%23_natural_scale_(white_keys)%0A
You're right - it's too long - but what about other ways to prevent this?
Well, my first thought was doing ASCII compresison.
Compression via http://codelobe.com/tools/ascii-compress, the output looks like this: https://xenpaper.com/#%23_12EDO-17EDO_RETUNING_MAP%0A%23_C_%3A_0__%3D_0____(%2B0)E;!%23%3A_2C=!141C=!41E>!DB]!3C<!212C<!12F<!D^!5C>!353C>!53E>!EB^!6C<!424C<!24E<!FB<!7D<!94__(-6E9!GB9!9C9!635CY!35F<!D="10B>!706C>!F]!AB]!12B;!847D@#7F<!E]!3B>!918DB#8E>!BC^!5C$$059C@#9B<!0A%7B17edo%7D_F5%_mapped._D!I_wanted_to_keep_aD]%chromatic_feelEK!while_preserving_the_B$"scale.%0A0_2_3_5_6_7_9_10_12_13_15_17BG"Gw!mapBM!3EI!2DC!____B!!BM!naturalC!"(white_keys)%0A` - about 20% shorter. Not much better, but prevents a need to also turn xenpaper into a url shortener.


[TEST] Docstring fix

Testing fixes for errors in generating docs from code docstrings (GL issues, requirements, etc)

Codecov Report

Merging #22 (59c9a77) into main (c2eb134) will increase coverage by 0.40%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
+ Coverage   37.40%   37.80%   +0.40%
==========================================
  Files          37       37
  Lines        3294     3383      +89
==========================================
+ Hits         1232     1279      +47
- Misses       2062     2104      +42

Impacted Files
Coverage Δ

napari_cellseg3d/plugin_dock.py
74.56% <0.00%> (-1.37%)
:arrow_down:

napari_cellseg3d/interface.py
86.39% <0.00%> (-1.28%)
:arrow_down:

napari_cellseg3d/launch_review.py
58.76% <0.00%> (-0.24%)
:arrow_down:

napari_cellseg3d/utils.py
31.57% <0.00%> (-0.07%)
:arrow_down:

napari_cellseg3d/plugin_base.py
54.48% <0.00%> (ø)

napari_cellseg3d/plugin_crop.py
0.00% <0.00%> (ø)

napari_cellseg3d/plugin_helper.py
0.00% <0.00%> (ø)

napari_cellseg3d/plugin_review.py
89.33% <0.00%> (ø)

napari_cellseg3d/plugin_convert.py
0.00% <0.00%> (ø)

napari_cellseg3d/plugin_metrics.py
0.00% <0.00%> (ø)

... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c2eb134...59c9a77. Read the comment docs.


GDAL2

README says GDAL >= 1.7 but should maybe also say GDAL< 2.0 ?
or is there a solution?
see original gist.

Finally managed to get php5-gdal running by following the instructions at http://www.binpress.com/tutorial/introduction-to-postgis-part-1/24

compile gdal-2.1.3 from http://trac.osgeo.org/gdal/wiki/DownloadSource rather than apt-get install gdal-bin after add-apt-repository -y ppa:ubuntugis/ppa
should install PROJ4 and GEOS first (not sure)
probably a few changes were needed, so i've updated https://gist.github.com/axd1967/529e4f128eb7fa14d008809835cedb7b  to contain the working Vagrant VM provision script


some module missing in benchmark.py

No module named 'dl_lib.config'

Ok, I see what you means. I will fix this later.

No module named 'dl_lib.config'

How to fix it ?


Confusing use of second button in default yo office react project instructions

Article:
https://github.com/OfficeDev/office-js-docs-pr/blob/master/docs/design/using-office-ui-fabric-react.md
Issue:
The instructions begin by telling the user to add a button. This is confusing in two ways:

There is already a button on the page that is part of the default project that the generator creates. It is wired up to a (empty) handler. Why do we not simply have the user add code to the existing handler, instead of having the user create a whole new button?
The code snippet imports PrimaryButton and IButtonType from office-ui-fabric-react. But the code that is generated imports Button and ButtonType from office-ui-fabric-react. If we go ahead and have the user create a new button, then the text should explain why it is based on different exported classes than the button that yo office generated.

@mscharlock Did your changes in https://github.com/OfficeDev/office-js-docs-pr/pull/302 address this as well?

Yep, it solves this. There's only one button with the new changes, so no weird second component.

@Rick-Kirkham Based on Michelle's work, I'm going to close this issue. Please reopen it if you disagree.


[FR] Generating purchase orders

Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find a similar feature request

Problem statement
When creating a build order (or even a sales order), some parts of the BoM can be out of stock, and therefore need to be purchased. Then the purchase orders need to be created for each supplier, by checking, part after part, which parts are missing and need to be ordered.
Suggested solution
A first idea would be to add a filter to the supplied parts of suppliers showing parts where more stock is required than there are in stock. Then only checking all filtered rows and clicking the "Order parts" would be almost enough. Adding a button for purchasing all would be a nice-to-have on this menu, and would completely tackle the issue. That way we can just go from supplier to supplier, and create the purchase orders supplier by supplier.
A very nice addition to this system would be to add a button "purchase missing parts" with a few parameters (fewest suppliers, lowest price...), which would then create purchase orders for each suppliers.
Describe alternatives you've considered
Currently, we consider creating Python scripts using the API of Inventree to automatically create the purchase orders.
Examples of other systems
No response
Do you want to develop this?

[ ] I want to develop this.

Would still be intresting


Vulnerability roundup 84: bubblewrap-0.3.3: 1 advisory

search, files

[ ] CVE-2020-5291 CVSSv3=7.8 (nixos-19.09)

Scanned versions: nixos-19.09: 31dcaa5eb67. May contain false positives.

19.09 is EOL
Closing


Error in HMM tracking

Hi and thank you very much for this toolbox and the presentation at this years ISMIR LBD session!
I have a very simple MWE:
from matchmaker import Matchmaker

mm = Matchmaker(
    score_file="bach_846.mid",
    device_name_or_index="MidiKeys",
    input_type="midi",
    feature_type="pianoroll",
    method="hmm",
)
for current_position in mm.run():
    print(current_position)

However, if I press a key on my virtual MIDI keyboard, the script crashes with this error message:
python test_midi_input.py
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/partitura/io/importmidi.py:524: UserWarning: pitch spelling
  warnings.warn("pitch spelling")
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/partitura/utils/misc.py:68: UserWarning: voice estimation
  return f(*args, **kwargs)
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/partitura/io/importmidi.py:607: UserWarning: create_part
  part = create_part(
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/partitura/io/importmidi.py:607: UserWarning: add notes
  part = create_part(
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/partitura/io/importmidi.py:607: UserWarning: add time sigs and measures
  part = create_part(
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/partitura/io/importmidi.py:607: UserWarning: tie notes
  part = create_part(
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/partitura/io/importmidi.py:607: UserWarning: find tuplets
  part = create_part(
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/partitura/io/importmidi.py:607: UserWarning: done create_part
  part = create_part(
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/scipy/stats/_continuous_distns.py:4167: RuntimeWarning: overflow encountered in exp
  return x - np.exp(x)
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/hiddenmarkov/__init__.py:612: RuntimeWarning: divide by zero encountered in log
  self._log_transition_prob = np.log(self._transition_prob)
/Users/simon/Repos/matchmaker/.venv/lib/python3.12/site-packages/hiddenmarkov/__init__.py:600: RuntimeWarning: divide by zero encountered in log
  self._log_init_dist = np.log(self._init_dist)
* Start listening to MIDI stream....
* Stop listening to MIDI stream....                                                                      |
Traceback (most recent call last):
  File "/Users/simon/Repos/matchmaker/test_midi_input.py", line 10, in <module>
    for current_position in mm.run():
  File "/Users/simon/Repos/matchmaker/matchmaker/matchmaker.py", line 206, in run
    for current_frame in self.score_follower.run(verbose=verbose):
  File "/Users/simon/Repos/matchmaker/matchmaker/prob/hmm.py", line 1038, in run
    current_state = self(queue_input)
                    ^^^^^^^^^^^^^^^^^
  File "/Users/simon/Repos/matchmaker/matchmaker/prob/hmm.py", line 914, in __call__
    pitch_obs, ioi_obs = input
    ^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 2)

Any help would be highly appreciated.
System info:
Python 3.12 running on macOS 15.1 (arm64)

Hi, thank you for using matchmaker!
We are working on an early version for the package, and there are still some parts where the code is not working perfectly. Thank you for reporting the issue, we will fix it and release it with the above issue.


Change settings From Player to Token

The problem I am having is if the GM controls two or more Hero Tokens and/or if a Player controls two or more tokens.  It looks as though the Loot is tied to the Players not the Tokens.  From my testing if there are two players that are absent from a game and the GM has to play those characters, the GM has to take control the characters, but can only take control of one at a time.  The same is true if a Player has to control two tokens.  Even if a Player and GM can move around and use a token, they have to take control of a Token via User Configuration to have the Token show up in the available looters.
The solution seems to change from Per Player or Player controlled Token to any Hero token if possible.
Steps to test:
Add any number of Heroes greater than the number of GM + Players.
Set permissions for each Hero to be Observer or greater
Start game, Each Player make sure via User configuration they have one Hero selected
GM place creature and kill it, make it lootable and and apply filter
Only Controlled Hero Tokens will show up (if using 3 Heroes with on GM and one Player) there will always be an odd Hero Token left out.
A work around is using extra browsers and possibly having to use extra computers and make sure there is a equal player to token ratio and let the GM control any tokens from absent Players, but those player accounts have to be logged in so there is a one to one relationship with Heroes Tokens and Players.
Edit: I am Using Hero when I might want to be using Actor, and in that case maybe even Friendly Actor, but I can also see the case that a Friendly Actor is added as a NPC but is killed in battle and the players want to loot the body.

I played around with settings and see the logic that for every "friendly" token a Player account has to be associated with it.  If a player is unable to attend I have to use a different browser or private tab to log in as that player.  That player can then log out and the GM can take control.  I also have gone through the code and see your logic and any change to just tokens and not player looks to be a big complication.  This can be marked as a feature request.


empty row is read

Anyway to avoid reading empty row in excel? User has remove some rows from the excel. As a result, my program still read those empty row.
Currently I'm using.
FileStream stream = File.Open(filePath, FileMode.Open, FileAccess.Read);
IExcelDataReader excelReader = ExcelReaderFactory.CreateOpenXmlReader(stream);
DataSet result = excelReader.AsDataSet();
excelReader.Close();
Thanks.

Yeah!
You can both:

modify the Library "readers", or
double-check "empty" rows in your client

I am facing the same issue? i am getting empty rows whenread from excel.
currently i am writing like this
Dim excelReader As IExcelDataReader
If System.IO.Path.GetExtension(PartsFileUpload.FileName).Equals(".xlsx") Then
excelReader = ExcelReaderFactory.CreateOpenXmlReader(PartsFileUpload.FileContent)
ElseIf System.IO.Path.GetExtension(PartsFileUpload.FileName).Equals(".xls") Then
excelReader = ExcelReaderFactory.CreateBinaryReader(PartsFileUpload.FileContent)
End If
excelReader.IsFirstRowAsColumnNames = True
partsDs = excelReader.AsDataSet()

It is not entirely apparent from the original issue description, but I suspect this might be a feature request to read a row's visible height (and act upon it).
It is possible in Excel to collapse a row such that their data is retained while not readily visible to the user. I don't think ExcelDataReader currently treats rows with Height=0 differently from other rows so it is a reasonable request.


MetricAlarm: Dimension keys gets snake_cased

Just encountered a problem when creating a aws.cloudwatch.MetricAlarm with dimensions which are defined in PascalCase. After applying the resource the dimension name is actually snake_cased.

I defined the dimension as follows:
const tunnel = new aws.cloudwatch.MetricAlarm(
  `alarms-vpn-tunnel`,
  {
    metricName: "TunnelState",
    namespace: "AWS/VPN",
    name: "VPN Tunnel",
    alarmDescription: "VPN Tunnel is offline",
    alarmActions: [sap],
    actionsEnabled: true,
    statistic: "Maximum",
    comparisonOperator: "LessThanOrEqualToThreshold",
    dimensions: [
      {
        VpnId: config.alarms.vpn.vpnTunnel.vpnId
      }
    ],
    threshold: 0,
    period: 60,
    evaluationPeriods: 2
  }
);

Unfortunately, this makes it impossible to use the MetricAlarm at the moment as there are a lot of PascalCased dimension identifiers in the AWS universe.

I suspect this is related to https://github.com/pulumi/pulumi-terraform/issues/263.

@akoenig I think I have a fix for you.
Unless I'm mistaken, "dimensions" is supposed to be a map of key-value pairs, not an array of maps: https://github.com/pulumi/pulumi-aws/blob/cfcf3ed0c7019484ffc2a62de4498e41d802ee71/sdk/nodejs/cloudwatch/metricAlarm.ts#L226
If you change
    dimensions: [
      {
        VpnId: config.alarms.vpn.vpnTunnel.vpnId
      }
    ],

to
    dimensions: {
        VpnId: config.alarms.vpn.vpnTunnel.vpnId
    },

I believe your code will work as intended. At least the preview looks good to me.
Note that I am not sure whether this will work in Python, due to how we mangle names. @swgillespie will need to comment on that (and, if not, we will file a separate issue).
This did reveal a bug, however, in that we should (I think) be rejecting the attempt to pass an array where a map is intended. @jen20 @pgavlin Any idea on this?

we should (I think) be rejecting the attempt to pass an array where a map is intended.

There are two layers of this - TypeScript and runtime.  Historically we've only done "type checking" at the TypeScript layer.
At the TypeScript layer, I'm honestly not sure why TypeScript allows assigning any[] to {[key: string]: any}, but it does.  That means that by typing this (and many other) properties as {[key: string]: any} we don't get protection against passing arrays.  It appears you could type these things as { [key: string]: any; [key: number]: never } to get protection against this, which would have caused the original code above to report an error.  Feels a little strange to have to do that though.
Better would be to provide a richer type instead of any for the members - in the particular case above - the elements must be string.  This is not manifest in the schema, but is clear from the implementation.  We probably want to audit all {[key:string]: any} signatures and manually annotate what the element type is.
Opened https://github.com/pulumi/pulumi-terraform/issues/285 to track one or both of the above.
We could in theory add a layer of runtime type checking as well - which would help especially for pure-JavaScript clients.  We do almost none of this today, and there's probably quite a lot of validation we could do.  This is tracked by https://github.com/pulumi/pulumi-terraform/issues/147.

@joeduffy Awesome. This fixed my issue. Thanks a lot! :)
Also a big surprise for me that TS allows assigning any[] to {[key: string]: any} 😱 I mean, it makes sense from a JS perspective, but still ... hm.

Closing this out for now - we'll track follow-ups to improve things here in https://github.com/pulumi/pulumi-terraform/issues/285, pulumi/pulumi-terraform#263 and https://github.com/pulumi/pulumi-terraform/issues/147.


Citation style

Add section/tab where users can select citation style and select whether to display citation as footnotes or endnotes.

Implemented by #104


Implementation of Round Robin scheduler for scrapy

~This is preliminary PR to test the possibility of merge. I create it, because I didn't like hack I had to use to keep changes as local as possible (https://github.com/whalebot-helmsman/scrapy/blob/3735f8da6dea4b3149c425db2f0bfd432efb7495/scrapy/pqueues.py#L41).~
What is added:

constant for download_slot
tests for old scheduler/priority queue combination
new round robin priority queue

New round robin queue not switched on by default as this implementation does not support downloader's per ip concurrency

I run single host https://github.com/scrapy/scrapy-bench to check for regressions. No regressions found. Summary available at https://docs.google.com/spreadsheets/d/1f8iSzfmLuiG9O-mDgG4iDb4fGvAlnkC4sH_zr9Qlj-s/edit?usp=sharing. Full logs available at https://gist.github.com/whalebot-helmsman/d27104d9d328ae8a9331a8623ef931fd

Run correct benchmark for case with many hosts. See links from https://github.com/whalebot-helmsman/scrapy/pull/1#issuecomment-442785365 . Even for this case I got improvements in speed.


Deflake locality LB integration test

Right now we attempt to send traffic one time and fail if it fails.
Adding a retry here seems very needed, otherwise we get race conditions
between config being pushed. With this change this seems to pass pretty
consistently.
Note - this test is postsubmit only due to flakes. I would set it as enabled in this PR, but last time I tried that it turned out I didn't fix the flakes. Once this soaks a bit with no failures I will enable it

@howardjohn: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test integ-new-install-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test integ-new-install-k8s-presubmit-tests-master

istio-racetest-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test istio-racetest-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-racetest-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test istio-racetest-master

integ-new-install-k8s-presubmit-tests-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test integ-new-install-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test integ-new-install-k8s-presubmit-tests-master

istio-racetest-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test istio-racetest-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest
On Mon, Aug 12, 2019 at 6:35 PM Istio Automation<EMAIL_ADDRESS>wrote:

@howardjohn https://github.com/howardjohn: The following tests failed,
say /retest to rerun them all:
Test name Commit Details Rerun command
integ-new-install-k8s-presubmit-tests-master 44e2790
https://github.com/istio/istio/commit/44e27905fb67ef20e0113bbf984b9f011287964a
link
https://prow.istio.io/view/gcs/istio-prow/pr-logs/pull/istio_istio/16217/integ-new-install-k8s-presubmit-tests-master/1813 /test
integ-new-install-k8s-presubmit-tests-master
istio-racetest-master 44e2790
https://github.com/istio/istio/commit/44e27905fb67ef20e0113bbf984b9f011287964a
link
https://prow.istio.io/view/gcs/istio-prow/pr-logs/pull/istio_istio/16217/istio-racetest-master/3487 /test
istio-racetest-master
Instructions for interacting with me using PR comments are available here
https://git.k8s.io/community/contributors/guide/pull-requests.md. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
https://github.com/kubernetes/test-infra/issues/new?title=Prow issue:
repository. I understand the commands that are listed here
https://go.k8s.io/bot-commands.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/istio/istio/pull/16217?email_source=notifications&email_token=AAEYGXNTKTRIEOZV2CPATZLQEIFWNA5CNFSM4ILF7WJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4EI5HA#issuecomment-520654492,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEYGXIWJTH4B34Q77RTUFLQEIFWNANCNFSM4ILF7WJA
.

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-racetest-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test istio-racetest-master

integ-new-install-k8s-presubmit-tests-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test integ-new-install-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test integ-new-install-k8s-presubmit-tests-master

istio-racetest-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test istio-racetest-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-racetest-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test istio-racetest-master

integ-new-install-k8s-presubmit-tests-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test integ-new-install-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test integ-new-install-k8s-presubmit-tests-master

istio-racetest-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test istio-racetest-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@howardjohn: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

istio-racetest-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test istio-racetest-master

integ-new-install-k8s-presubmit-tests-master
44e27905fb67ef20e0113bbf984b9f011287964a
link
/test integ-new-install-k8s-presubmit-tests-master

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


interp does not support scalars

This does not compile, but it should.
import numpy as np

#pythran export test(float)
def test(n):
    x = np.array([0.,4.,5.,10.])
    y = np.array([0.,4.,5.,10.])
    m= np.interp(n,x,y)
    print(m)

I'll take a look at it, since I remember working on the interp function at one point...

Fixed by #1783


Support for managed connectors

Hello,
Do you folks have anything in the roadmap to manage the connectors in TF?
Would be super nice, for example, to manage S3 Synk for backup purposes and keep the connector config updated dynamically with all the topics!
Thank you,
Andrei

@atimush, @czerasz-mineiros, @matefarkas-recrd, @smag-bmesseca, @aakarshg, @mohitreddy1996, @thekiwi, @maheshbhole, and @mool we're happy to let you know that we shipped confluent_connector resource in our latest 0.8.0 release.
I'm closing this issue, feel free to open more "specific" ones related to connector resource.


[AutoML] Generated model file should target netstandard2.0

Using mlnet auto-train, the generated .Model file should target netstandard2.0. Currently it is targeting netcoreapp2.1 which is not correct.
ML.NET supports a lot of app types - .NET Core is just one of them. The model project should be targeting netstandard.
https://github.com/dotnet/machinelearning/blob/b5438d1dcdce7059d88f5c17e16be4aabfaec3bd/src/mlnet/Templates/Console/ModelProject.tt#L8-L10


High Five

Great work guys... looking very promising. Give the team a hug and a donut from me.

Thanks for the support @5ur3n 🤗🍩


Begging for help!

Dear prof, I am a freshman in this area, so may i acess to your matlab code about simulating? Thanks so much for your help.

@AnonymFish If you want only Gaussian Surfaces simulation, this code is very good for that. If you want non-Gaussian surfaces simulation you need Pearson distribution, which I am not sure if it is the same as the distribution of MATLAB. If you use JohnsonSU distribution, the algorithm doesn't always converge. I tried to run it in python with both JohnsonSU and Pearson (the Pearson of python is not the same function as the Pearson of MATLAB), but it doesn't converge.
%Created: 2020.03.08
%Generation of non-Gaussian surfaces with predetermined
%1. Mean value (mu)
% 2. Standard deviation (rms)
% 3. Skewness (skew)
% 4. Kurtosis (kurt)
% 5. Correlation lengths (ksix, ksiy)
% 6. Roughness exponent (aplha)
% The input values of kurtosis and skewness should satisfy the inequality
% kurtosis > 1 + skewness^2
% The method is described in Yang et al. CMES, vol.103, no.4, pp.251-279,2014
% We use pearson translation to transform random noise to non-gaussian series and
% inverse Fourier transform to generate Gaussian surfaces.
% The method is implemented in three steps
% 1. Generation of a Gaussian self-affine surface z_gs with rms, ksix,ksiy,alpha
% 2. Generation of non-Gaussian noise z_ngn with mu,rms,skew,kurt
% 3. Arranging z_ngn according to the spatial arrangement of z_g to get a non-Gaussian self-affine surface z_ngs
function [z_ngs]=SAimage_fft_2(N_total,rms,skewness,kurtosis,corlength_x,corlength_y,alpha)
%INPUT
tic;
N=N_total; %surface side N
numpoints=N;

 for n=1:N/2,
    hhcf_y(n)=0.0;
 end
 Pyy=0.0;

% open the output files
foutsur=fopen('surface.txt','w');
% input moments and spatial parameters
mu=0;
rms=rms;
skew=skewness;
kurt=kurtosis;
ksix=corlength_x;
ksiy=corlength_y;
alpha=alpha;

%1st step: Generation of a Gaussian surface

%Determine the autocorrelation function R(tx,ty)
R(1:(numpoints+1),1:(numpoints+1))=0;
txmin=-numpoints/2;
txmax=numpoints/2;
dtx=(txmax-txmin)/(numpoints);
tymin=-numpoints/2;
tymax=numpoints/2;
dty=(tymax-tymin)/(numpoints);
tx=[txmin:dtx:txmax];
ty=[tymin:dty:tymax];
 for tx=txmin:dtx:txmax
     for ty=tymin:dty:tymax
%      R(tx+txmax+1,ty+tymax+1)=((w^2)*exp(-(abs(tx)/ksi).^(2*a)))*((w^2)*exp(-(abs(ty)/ksi).^(2*a)));
        R(tx+txmax+1,ty+tymax+1)=((rms^2)*exp(-(abs(sqrt((tx/ksix)^2+(ty/ksiy)^2))).^(2*alpha)));
 %      R(tx+txmax+1,ty+tymax+1)=((rms^2)*exp(-(abs(sqrt((tx/ksix)^2+(ty/ksiy)^2))).^(2*alpha)))*besselj(0,(2*pi*sqr(tx^2+ty^2))/lamda);
     end
 end

%According to the Wiener-Khinchine theorem FR is the power spectrum of the
%desired profile
FR = fft2(R,numpoints,numpoints);
AMPR=sqrt(dtx^2+dty^2)*abs(FR);
% 2nd step: Generate a white noise, normalize it and take its Fourier transform
X=rand(numpoints,numpoints);
aveX=mean(mean((X)));
dif2X=(X-aveX).^2;
stdX=sqrt(mean(mean(dif2X)));
X=X/stdX;
XF = fft2(X,numpoints,numpoints);

% 3nd step: Multiply the two Fourier transforms
YF=XF.*sqrt(AMPR);
% 4th step: Perform the inverse Fourier transform of YF and get the desired
% surface
zaf = ifft2(YF,numpoints,numpoints);
z=real(zaf);
% figure,surf(z);
avez=mean(mean(z));
dif2z=(z-avez).^2;
stdz=sqrt(mean(mean(dif2z)));
z=((z-avez)*rms)/stdz;
% Define the fraction of the surface to be analysed
xmin=1;
xmax=N;
ymin=1;
ymax=N;
z_gs=z(xmin:xmax,ymin:ymax);
Nh=xmax-xmin+1;
% figure, surf(z_gs);
% himage1=mat2gray(h1,[min(min(h1)),max(max(h1))]);
image_gs=mat2gray(z_gs);
% figure, imshow(image_gs)
clear R AMPR z
% return;
%2nd step: Generation of a non-Gaussian noise NxN
z_ngn=pearsrnd(mu,rms,skew,kurt,N,N);
%3rd step: Combination of z_gs with z_ngn to output a z_ngs
v_gs=z_gs(:);
v_ngn=z_ngn(:);
[vs_gs,Igs]=sort(v_gs);
[vs_ngn,Ingn]=sort(v_ngn);
for iv=1:N*N
    ivs=Igs(iv);
    v_ngs(ivs)=vs_ngn(iv);
end
z_ngs=reshape(v_ngs,N,N)';
figure, surf(z_ngs,'linestyle','none')
image_ngs=mat2gray(z_ngs);
bw=imbinarize(image_ngs);
figure, imshow(bw);
return;
% 1. CORRELATION FUNCTIONS
%a. 1-D height-height correlation function
inpsur=z_ngs;
 for ndif=1:N/2,
    surf1=inpsur(1:N,1:(N-ndif));
    surf2=inpsur(1:N,(ndif+1):N);
    difsur2=(surf1-surf2).^2;
    hhcf1d(ndif)=sqrt(mean(mean(difsur2)));
    rdif(ndif)=ndif;
 end
%subplot(2,2,2);
figure,
loglog(rdif,hhcf1d);
grid on;
xlabel('r(nm)');
ylabel('G(r) (nm)');
title('1-D height-height correlation function');

toc;
fclose(foutsur);

Let me know if you succeeded to solve the problem with non-Gaussian surfaces in python.
By the way, I am not a professor. I am just a master of Mathematical Modeling.

Dear Seb,
Thanks so much for your help, my friend. I will let you know if i am succeed in solving the problem.
Regards,
Zhang Nan
------------------ 原始邮件 ------------------
发件人:                                                                                "BlackPianoCat/simulating_non_gaussian_surfaces"                                                                                @.>;
发送时间: 2021年7月7日(星期三) 晚上8:36
@.>;
<EMAIL_ADDRESS>主题: Re: [BlackPianoCat/simulating_non_gaussian_surfaces] Begging for help!  (#1)
@AnonymFish If you want only Gaussian Surfaces simulation, this code is very good for that. If you want non-Gaussian surfaces simulation you need Pearson distribution, which I am not sure if it is the same as the distribution of MATLAB. If you use JohnsonSU distribution, the algorithm doesn't always converge. I tried to run it in python with both JohnsonSU and Pearson (the Pearson of python is not the same function as the Pearson of MATLAB), but it doesn't converge.
%Created: 2020.03.08 %Generation of non-Gaussian surfaces with predetermined  %1. Mean value (mu) % 2. Standard deviation (rms) % 3. Skewness (skew) % 4. Kurtosis (kurt) % 5. Correlation lengths (ksix, ksiy) % 6. Roughness exponent (aplha) % The input values of kurtosis and skewness should satisfy the inequality % kurtosis > 1 + skewness^2 % The method is described in Yang et al. CMES, vol.103, no.4, pp.251-279,2014 % We use pearson translation to transform random noise to non-gaussian series and  % inverse Fourier transform to generate Gaussian surfaces. % The method is implemented in three steps % 1. Generation of a Gaussian self-affine surface z_gs with rms, ksix,ksiy,alpha % 2. Generation of non-Gaussian noise z_ngn with mu,rms,skew,kurt % 3. Arranging z_ngn according to the spatial arrangement of z_g to get a non-Gaussian self-affine surface z_ngs function [z_ngs]=SAimage_fft_2(N_total,rms,skewness,kurtosis,corlength_x,corlength_y,alpha) %INPUT tic; N=N_total; %surface side N  numpoints=N;  for n=1:N/2,     hhcf_y(n)=0.0;  end  Pyy=0.0; % open the output files foutsur=fopen('surface.txt','w'); % input moments and spatial parameters mu=0; rms=rms; skew=skewness; kurt=kurtosis; ksix=corlength_x; ksiy=corlength_y; alpha=alpha; %1st step: Generation of a Gaussian surface %Determine the autocorrelation function R(tx,ty)  R(1:(numpoints+1),1:(numpoints+1))=0; txmin=-numpoints/2; txmax=numpoints/2; dtx=(txmax-txmin)/(numpoints); tymin=-numpoints/2; tymax=numpoints/2; dty=(tymax-tymin)/(numpoints); tx=[txmin:dtx:txmax]; ty=[tymin:dty:tymax];  for tx=txmin:dtx:txmax      for ty=tymin:dty:tymax %      R(tx+txmax+1,ty+tymax+1)=((w^2)exp(-(abs(tx)/ksi).^(2a)))((w^2)exp(-(abs(ty)/ksi).^(2a)));         R(tx+txmax+1,ty+tymax+1)=((rms^2)exp(-(abs(sqrt((tx/ksix)^2+(ty/ksiy)^2))).^(2alpha)));  %      R(tx+txmax+1,ty+tymax+1)=((rms^2)exp(-(abs(sqrt((tx/ksix)^2+(ty/ksiy)^2))).^(2alpha)))besselj(0,(2pisqr(tx^2+ty^2))/lamda);      end  end %According to the Wiener-Khinchine theorem FR is the power spectrum of the %desired profile FR = fft2(R,numpoints,numpoints); AMPR=sqrt(dtx^2+dty^2)*abs(FR); % 2nd step: Generate a white noise, normalize it and take its Fourier transform X=rand(numpoints,numpoints); aveX=mean(mean((X))); dif2X=(X-aveX).^2; stdX=sqrt(mean(mean(dif2X))); X=X/stdX; XF = fft2(X,numpoints,numpoints); % 3nd step: Multiply the two Fourier transforms YF=XF.*sqrt(AMPR); % 4th step: Perform the inverse Fourier transform of YF and get the desired % surface zaf = ifft2(YF,numpoints,numpoints); z=real(zaf); % figure,surf(z); avez=mean(mean(z)); dif2z=(z-avez).^2; stdz=sqrt(mean(mean(dif2z))); z=((z-avez)rms)/stdz; % Define the fraction of the surface to be analysed xmin=1; xmax=N; ymin=1; ymax=N; z_gs=z(xmin:xmax,ymin:ymax); Nh=xmax-xmin+1; % figure, surf(z_gs); % himage1=mat2gray(h1,[min(min(h1)),max(max(h1))]); image_gs=mat2gray(z_gs); % figure, imshow(image_gs) clear R AMPR z  % return; %2nd step: Generation of a non-Gaussian noise NxN z_ngn=pearsrnd(mu,rms,skew,kurt,N,N); %3rd step: Combination of z_gs with z_ngn to output a z_ngs v_gs=z_gs(:); v_ngn=z_ngn(:); [vs_gs,Igs]=sort(v_gs); [vs_ngn,Ingn]=sort(v_ngn); for iv=1:NN     ivs=Igs(iv);     v_ngs(ivs)=vs_ngn(iv); end z_ngs=reshape(v_ngs,N,N)'; figure, surf(z_ngs,'linestyle','none') image_ngs=mat2gray(z_ngs); bw=imbinarize(image_ngs); figure, imshow(bw); return; % 1. CORRELATION FUNCTIONS %a. 1-D height-height correlation function inpsur=z_ngs;  for ndif=1:N/2,     surf1=inpsur(1:N,1:(N-ndif));     surf2=inpsur(1:N,(ndif+1):N);     difsur2=(surf1-surf2).^2;     hhcf1d(ndif)=sqrt(mean(mean(difsur2)));     rdif(ndif)=ndif;  end %subplot(2,2,2); figure, loglog(rdif,hhcf1d); grid on; xlabel('r(nm)'); ylabel('G(r) (nm)'); title('1-D height-height correlation function'); toc; fclose(foutsur);
Let me know if you succeeded to solve the problem with non-Gaussian surfaces in python.
By the way, I am not a professor. I am just a master of Mathematical Modeling.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


Update to version 4.1.3

MNT: Re-rendered with conda-build 3.21.7, conda-smithy 3.16.1, and conda-forge-pinning 2<IP_ADDRESS>.59.50

Checklist

[x] Used a personal fork of the feedstock to propose changes
Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Bump fontconfig-cache-parser

This cuts down on transitive dependencies by moving things to dev-dependencies.
It also marked the Object enum as #[non_exhaustive], hence the version bump.

I think that this pr should probably have included the MSRV decrease, if this was the only blocker


[KBFS-1919] DiskBlockCache LRU eviction

Nope and I imagine the owner  wouldn't appreciate it either

lgtm!


VM SKU unavailable on CLI

Describe the bug
This may be an API bug, but I don't know where to report it, definitely not on Azure's Terraform provider repo.
I'm trying to use Terraform to create an extra nodepool for AKS using Standard_NC6s_v3 SKU. It throws an error saying that the SKU is not available, except that the subscription has the necessary quota on that region. The error message:
Code="PreconditionFailed" Message="Provisioning of resource(s) for Agent Pool gpunode failed. Error: {\n  \"code\": \"InvalidTemplateDeployment\",\n  \"message\": \"The template deployment failed with error: 'The resource with id: '/subsc
riptions/<subscription_id>/resourceGroups/MC_core-infra-dev_dev-cluster_eastus2/providers/Microsoft.Compute/virtualMachineScaleSets/aks-gpunode-25771213-vmss' failed validation with message: 'The requested size for reso
urce '/subscriptions/<subscription_id>/resourceGroups/MC_core-infra-dev_dev-cluster_eastus2/providers/Microsoft.Compute/virtualMachineScaleSets/aks-gpunode-25771213-vmss' is currently not available in location 'eastus2'
 zones '1' for subscription '<subscription_id>'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.'.'.\"\n }"

Trying to check with az vm list-skus --location eastus --size Standard_N --all --output table reports the same (NotAvailableForSubscription), both on East US and East US 2.
---------------  -----------  ----------------  -------  ----------------------------------------------------------------------------------------------------------------------------------------------
virtualMachines  eastus       Standard_NC6s_v3  1,2,3    ['NotAvailableForSubscription, type: Location, locations: eastus', 'NotAvailableForSubscription, type: Zone, locations: eastus, zones: 1,2,3']
------------------------------------------------------------------------------------------------------------------------------------------------
virtualMachines  eastus2      Standard_NC6s_v3  1,2      ['NotAvailableForSubscription, type: Location, locations: eastus2', 'NotAvailableForSubscription, type: Zone, locations: eastus2, zones: 1,2,3']

All that would be fine, but creating this extra nodepool on Azure Portal works fine. After it was created, I imported it to Terraform using the resource ID and no changes were reported.
To Reproduce
Try to verify availability of a NC6s_v3 SKU using CLI. On Portal it works fine.
Expected behavior
Show the SKU's status as available and let me create it using Terraform.
Environment summary
Linux Fedora 34
Azure CLI {   "azure-cli": "2.23.0",   "azure-cli-core": "2.23.0",   "azure-cli-telemetry": "1.0.6",   "extensions": {} }
Terraform 1.1.5
Azure Terraform provider 2.95

Compute

any news yet?

At present, CLI directly returns the SKU data provided by the REST service, so this should be the service related issue.

Updating this to a question because it is either a question or a bug.

Hi @williamwd, from the issue it sounds like you are seeing that a SKU is shown as not available through the the AKS CLI interface, but then the same SKU is available in the same zone in the same subscription in the Azure portal? Could you confirm that this is still occurring? Normally the SKU not available error message for a specific subscription, SKU, region and zone should be consistent regardless of the client tool that is being used. The following link provides details on how to request access to the SKU if it is critically required for your business: https://docs.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-sku-not-available?tabs=azure-cli#solution.
If you are able to still reproduce the issue, then could you attempt to create just a single VM or single instance VM Scale Set in the same subscription, region, zone using the CLI and using the portal. It would be very strange for the portal to work and not the CLI, but it is always possible that there is a bug somewhere that is causing unexpected behaviors. If there is a unexpected bug, then we will want to narrow down the scenario as much as possible.

@TravisCragg-MSFT, I have moved this over to you in case this ends up being an issue with the SKU API.

Hi @williamwd, from the issue it sounds like you are seeing that a SKU is shown as not available through the the AKS CLI interface, but then the same SKU is available in the same zone in the same subscription in the Azure portal? Could you confirm that this is still occurring? Normally the SKU not available error message for a specific subscription, SKU, region and zone should be consistent regardless of the client tool that is being used. The following link provides details on how to request access to the SKU if it is critically required for your business: https://docs.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-sku-not-available?tabs=azure-cli#solution.
If you are able to still reproduce the issue, then could you attempt to create just a single VM or single instance VM Scale Set in the same subscription, region, zone using the CLI and using the portal. It would be very strange for the portal to work and not the CLI, but it is always possible that there is a bug somewhere that is causing unexpected behaviors. If there is a unexpected bug, then we will want to narrow down the scenario as much as possible.
This is precisely the case, creating from Terraform would fail and verifying on CLI would result in errors. Creation on portal would succeed, and our workaround was to create there and then import to Terraform.

That said, I am no longer assigned to that project. @jcavalieri8619 can you please follow up on this?

@jcavalieri8619, please let us know if you will be able to provide details on how to reproduce this issue including the specific Azure Region and SKU that you are using.

@jcavalieri8619 Please update us on any repo steps so that we can continue with this issue.

@williamwd We are going to close this issue as inactive. When you are ready to continue with this issue, please mention me and provide additional information for us to continue troubleshooting. Thank you.

We are having a very similar issue using bicep.
It says the sku is not available in the region for 'Standard_B8ms'
That said using the portal it available using Powershell command Get-AzVMSize -Location "southcentralus"| where{$_.name -like "standard_b*"} also show available, but using the CLI az vm list-skus --location southcentralus --size Standard_B --all --output table it show it not

We are having a very similar issue using bicep. It says the sku is not available in the region for 'Standard_B8ms' That said using the portal it available using Powershell command Get-AzVMSize -Location "southcentralus"| where{$_.name -like "standard_b*"} also show available, but using the CLI az vm list-skus --location southcentralus --size Standard_B --all --output table it show it not
We were able to create the VM using the portal, we then re-ran the bicep, this time it didn't complain about the SKU no being available, since the machine was already there, and it re-apply all the settings.

having the same issue. Bicep fails and az cli says the sku is not available. The Azure portal works fine.

same issue here.

az vm list-skus should be used to determine if a SKU is available for your subscription. If you are unable to deploy a VM and you do not have quota or a SKU restriction, your best bet is to follow up with azure support.

No I have quota and I can deploy through portal. Just API returns SKU not available.


[google sign in]  idtoken is returned null

I use google for login can't get idtoken only accesstoken is getting. I can't find the reason for this

Hi @napierya, Thanks for filing the issue. What platform are you compiling for? please ensure you have correctly configured the plugin and followed all the steps for the target platform as per the docs https://pub.dev/packages/google_sign_in


[ISSUE #2365] Add integrated test for combination of encrypt request and decrypt response

…and decrypt response
// Describe your PR here; eg. Fixes #issueNo

Make sure that:

[x] You have read the contribution guidelines.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #2540 (1357658) into master (5844d9c) will decrease coverage by 0.64%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #2540      +/-   ##
============================================
- Coverage     60.25%   59.60%   -0.65%
+ Complexity     4186     4138      -48
============================================
  Files           651      651
  Lines         18355    18355
  Branches       1659     1658       -1
============================================
- Hits          11059    10941     -118
- Misses         6456     6574     +118
  Partials        840      840

Impacted Files
Coverage Δ

...gister/server/consul/ConsulConfigChangedEvent.java
0.00% <0.00%> (-85.72%)
:arrow_down:

.../server/consul/ConsulServerRegisterRepository.java
0.00% <0.00%> (-80.44%)
:arrow_down:

...rg/apache/shenyu/admin/utils/ThreadLocalUtils.java
0.00% <0.00%> (-66.67%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
61.38% <0.00%> (-19.81%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

...apache/shenyu/admin/utils/ShenyuDictH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

...ache/shenyu/admin/utils/PluginHandleH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

...henyu/admin/service/impl/UpstreamCheckService.java
54.40% <0.00%> (-8.00%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
56.84% <0.00%> (-7.37%)
:arrow_down:

.../apache/shenyu/admin/model/dto/BatchCommonDTO.java
50.00% <0.00%> (-7.15%)
:arrow_down:

... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5844d9c...1357658. Read the comment docs.


SA1600 Ignore Privates - option missing?

With StyleCop 4.7 the documentation rules could be set to ignore members based on access modifiers.
Is there a way to do this in StyleCop by JetBrains 2016.1.0?  Here is a picture of the option I am referring to.
Thank You

I'm also interested in knowing how to adjust documentation requirements for different visibilities. I have two solutions, one that warns about missing documentation for private members and one that does not. I can't for the life of me figure out which setting controls this feature.

The ReSharper plugin should recognise the standard settings, so you can either directly edit the settings.stylecop file, or install style cop from codeplex and use the settings editor (the ReSharper plugin doesn't include the settings editor).