Werkzeug imports outdated

Seems like some functions in werkzeug, used by flask-admin was moved to other places. I got this errors today:
ImportError: cannot import name 'secure_filename' from 'werkzeug' (/home/dimitri/LargeProjects/red_watcher/003-arquitetura-flask-new/env/lib/python3.8/site-packages/werkzeug/__init__.py)
Now, secure_filename is in werkzeug.utils, and others may have changed too.

Unfortunately, I was unable to find a piece of code that uses incorrect imports.
th@x240 ~/D/W/flask-admin (master)> rg 'import secure_filename' .
./examples/sqla-custom-inline-forms/app.py
4:from werkzeug.utils import secure_filename

./flask_admin/contrib/fileadmin/__init__.py
11:from werkzeug.utils import secure_filename

./flask_admin/form/upload.py
4:from werkzeug.utils import secure_filename

./flask_admin/model/base.py
8:from werkzeug.utils import secure_filename

Please provide a full traceback and specify which version of the flask-admin you are using.

Unfortunately, I was unable to find a piece of code that uses incorrect imports.
th@x240 ~/D/W/flask-admin (master)> rg 'import secure_filename' .
./examples/sqla-custom-inline-forms/app.py
4:from werkzeug.utils import secure_filename

./flask_admin/contrib/fileadmin/__init__.py
11:from werkzeug.utils import secure_filename

./flask_admin/form/upload.py
4:from werkzeug.utils import secure_filename

./flask_admin/model/base.py
8:from werkzeug.utils import secure_filename

Please provide a full traceback and specify which version of the flask-admin you are using.

Sorry, was my fault. I'm using an old version of flask-admin.


ERROR - automation aborted due to above (without errors) - Windows

On Windows, this error message can appear, even without showing any errors above the message. This happens if the folder path of the folder containing the Python script has space in it.

Some components of upstream project TagUI cannot work with spaces in the path and folder name containing the TagUI automation script. Solution is store the script in a folder path without space.

Deployed meaningful error message with v1.9. To use, pip install tagui --upgrade


Fail to get a command output on my tty

Hi,
I have created a docker image
image = Docker::Image.create("fromImage" => "debian:jessie")
image.run("apt-get -y update").tag("repo" => "debby")

After successfully create a container, and attach the output to the current tty
container = Docker::Container.create('Image' => "debby")
container.tap(&:start).attach(:tty => true)

I want to run a cmmand (in my case it's autoconf) with
container.exec("autoconf")

but I have
/var/lib/gems/2.1.0/gems/docker-api-1.28.0/lib/docker/connection.rb:50:in `rescue in request': json: cannot unmarshal string into Go value of type []string (Docker::Error::ServerError)

does anyone succeed running a command on the current tty ?
Regards,

That looks like an error with your command.  Try specifying: image.run(["apt-get","-y","update"]).tag("repo" => "debby").

the error was not with apt-get -y update command
'till has this issue

The error you're seeing is from docker saying that whatever command you've supplied is not valid.  It is saying you're giving the API a string and it wants a list of string.  I suggest looking at all places that you specify either a run or a Cmd when using docker-api to resolve the issue.

got it, thanks for support


Bug on demo page

Thanks for reporting. This is currently fixed in our develop branch.
Demo shall be updated later today.

@IgorDePaula Demo is update to the new dev version. Do you mind checking it out again? Thanks!

@vedovelli Now is OK, Thanks by attention.


Dropdown does not open properly on web project viewed on mobile device (iOS + Safari / Mozilla)

When running a web project in release mode on mobile device iOS (Safari, and Mozilla tried so far) instead of opening the dropdown, a grey box appears instead.
This has something to do with dart to js conversion I think.
Flutter version 3.10.5
Dart version 3.0.5

This started happing after updating the dropdown_button2 version from:  ^2.1.4 to ^2.3.6

update: on Android devices seems to work ok. The error is only for iOS devices.

up, does anyone else have this problem ?

I can try to fix this myself, however, can anyone offer a pointer or a starting point?

Do you have any further information or steps to reproduce the issue?

steps to reproduce the issue:

create a simple dropdown_button2 ^2.3.7 for a flutter web
build for release with flutter 3.10.5 and deploy the project on a custom domain from where it can be accessible (!)
then try to open the dropdown from the released project on a real physical mobile iOS device from Safari (on Android it works, so it has to be iOS). Desktop is also ok, iOS & Windows.

Please note that by "release" -> I mean actually deploying the project on a publically accessible domain from where it can be accessible from browsers.
 Reproducing the issue, in this case, is complicated as it involves a proper release and a real physical iOS device.
Here's a real picture of the issue in the wild:

I find it strange that other people do not have this issue.

"I find it strange that other people do not have this issue." - or maybe they don't know they have it, as you can imagine this is not the kind of issue that the tests will catch.

update: after the upgrade flutter to 3.13.0 the problem went away.

Great!
Tbh, I'd have needed time to test this in release mode on mobile web browser :)


Use a frontend cache

What is the problem?
Improve page responsiveness. Using a frontend cache.
How can this be addressed?
Adding a reverse-proxy (such as nginx) in front of django and setting up caches there.
Who could help with this issue?
I would love to tackle this
Labels
[performance]  [enhancement]

Django has a built-in cache framework.
But indeed, a more specialized caching tool would improve overall performance.
Although, there's a financial impact involved since a new application will increase cloud resource consumption and therefore higher monthly cost of infrastructure.

Django has a built-in cache framework.

That is already in use I must say ; )

@cuducos @willianpaixao Jarbas had a serviceWorker to cache images on the browser? Maybe cache some requests by time too! I could help in it :D

Jarbas had a serviceWorker to cache images on the browser?

Jarbas has so few images that I don't believe this is a bottleneck. Optimizing database queries seems more useful in terms of performance right now…

Maybe cache some requests by time too!

This is already done.

Nice! Let me know if you had some queries or front-end bottleneck that I could help @cuducos I'm searching for issues right now!

According to (Django Rest Framework Slow)[https://hakibenita.com/django-rest-framework-slow] the DRF serializer may in many cases not be the most productive choice, I believe we can mount a study to improve the display of serialized data in apis.


Errore non specificato. (Exception from HRESULT: 0x80004005) within

at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21
at __Interop.ComCallHelpers.Call(__ComObject, RuntimeTypeHandle, Int32, Void*) + 0xbe
at __Interop.ForwardComStubs.Stub_2[TThis](__ComObject, Int32) + 0x36
at Windows.Storage.StorageFolder.get_FolderRelativeId() + 0x18
at Files.Filesystem.ItemViewModel1.<AddFolder>d__37.MoveNext() + 0x293 --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38    at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17    at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb    at Files.Filesystem.ItemViewModel1.d__35.MoveNext() + 0xf1c
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__7_0(Object) + 0x1e
at System.Action`1.Invoke(T) + 0x28
at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x33

Hello. Thank you for reporting this issue. What were you trying to do in the app when this happened? Did it occur after clicking a location on the path bar?

@brown1948 What is the version number that you are using? You should be able to check it by going to settings > about.


Prompt Engineering Suggestion

I am trying to use grounding-Dino to solve fabric anomaly-detection problem, except 'defect', do you have any other prompt recommendation

You can try to use more specific descriptions for the prompt engineering, e.g., color, size, and shape of the defect. : )


Deduplicate alerts with multiple receivers when viewing All receivers

My alerts go to multiple receivers. In 0.18.0, when I look at the default landing page on the alertmanager, with grouping on, I see a group for each receiver (though the receiver is not actually on the user interface).
I would expect only to see one instance of each alert when viewing All receivers.

Thanks for reporting! It looks very similar to #1959 and #1875.

For completeness, could you share your AlertManager configuration?

Yeah, definitely looks like #1875 . Sorry - I should have found that one.
Redacted alertmanager.yml attached.
alertmanager.txt

BTW, the reason I determined it was related to recievers was when I explicitly choose a Receiver from the dropdown, I no longer see the duplicates. (also ticking "Enable Custom Groups" removes the duplicates, for some reason)

I'm closing it for now as we can follow up on the other issues.

ticking "Enable Custom Groups" removes the duplicates, for some reason

This is because it falls back to the pre-v0.18 view which calls /api/v2/alerts instead of /api/v2/alerts/groups. The latter is buggy when you have routes that group on the same set of label names.


Add walkthrough steps for existing accounts in claim + merge the latest main

This should fix the steps for the existing account page by  adding them as a nested walkthrough.
I also merged the most recent main branch to avoid future conflicts.
The merges from main should fix the warning about undefined element and a couple more warnings that we were getting from react.

Thanks for this! Nested walkthrough makes much more sense.


hystrix-servo-metrics-publisher is in conflict with spring-boot-starter-actuator

After adding the dependency
<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

the hystrix-servo-metrics-publisher doesn't work. com.netlix.servo is not available at JMX MBeans/attributes.
Here is a small sample project with the disabled spring-boot-starter-actuator dependency:
https://github.com/hystrixFan/hystrix-servo-metrics-publisher-jmx-example
If the dependency is enabled hystrix-servo-metrics-publisher doesn't work.

Is there anything that needs to change with the Hystrix libraries, or is the issue in the Spring Boot libraries?  It's not clear to me what change needs to happen

I don't know. We use dropwizard instead of hystrix-servo-metrics-publisher now.


Documentation: Review metric description

We should follow the template here: https://github.com/FAIRMetrics/Metrics/blob/master/MaturityIndicators/Gen2/Gen2_MI_A1.1.md#what-is-being-measured
For each metric

is quite diferent. Do you suggest to follow the ttl, how to show the information or both?. Could be a merge between this and our curren ttl?

The metric description in the trl should follow that template
El mar., 3 dic. 2024 8:09 a. m., juanjemdIos @.***>
escribió:

is quite diferent. Do you suggest to follow the ttl, how to show the
information or both?. Could be a merge between this and our curren ttl?
—
Reply to this email directly, view it on GitHub
https://github.com/oeg-upm/fair_ontologies/issues/135#issuecomment-2513721263,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALTIGUMCJ24PIR5UJ66BJL2DVKJXAVCNFSM6AAAAABS3OSWOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJTG4ZDCMRWGM
.
You are receiving this because you authored the thread.Message ID:
@.***>


feat: add array/base/mskreject-map

Resolves #1323 .
Description

What is the purpose of this pull request?

This pull request adds the package @stdlib/array/base/mskreject-map.
Related Issues

Does this pull request have any related issues?

This pull request:

resolves #1323

Questions

Any questions for reviewers of this pull request?

No.
Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.
Checklist

Please ensure the following tasks are completed before submitting this pull request.

[x] Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

@Ut-the-pro Would you mind looking into and fixing the lint failures first, please? (see failing CI checks)
Thanks!

@Planeshifter I am unable to figure out why it is showing lint error (in CI checks) for Unexpected 'this' in test.assign.js. Can you please suggest the change.

@Ut-the-pro If this is needed for the tests, you can disable the lint rule via either // eslint-disable-line no-invalid-this at the end of the offending line or // eslint-disable-next-line no-invalid-this.

@Planeshifter Can you please review it :)


Get widget events in sync

I decide to go for:

PointerPressed
PointerMoved
PointerReleased (if we need it, but I won't add it until we do)
Tapped

This follows the naming conventions of WinUI/Uno and Avalonia.

Testing
Input:

Mouse
Touch
Touchpad

What to test:

[ ] In Widgets.Button: Tap on 'Tap me' button goes up by one.
[ ] In Widgets.Button: Pressed next to widget and released on widget should not change the tap count (and the other way around).
[ ] In Widgets.Button: Double Tap should increase the tap count by 1
[ ] In Widgets.Hyperlink: Tap hyperlink shows page.
[ ] In Demo.MapInfo: MapInfo should show bottom left.
[ ] In Info.SingleCallout: Callout should show.
[ ] In Info.CustomCallout: Callout should toggle.
[ ] In Widgets.PerformanceWidget: Tap on widget could reset.
[ ] In Widgets.MouseCoordinatesWidget: The mouse coordinates should change.
[ ] In Widgets.ZoomInOutWidget: Tap plus and min should zoom in and out.

This PR fixes several bugs introduces in the previous PRs and also some existing ones in v4 in editing.
Testing is hard
Testing is hard, the possible list of things to test is immense, you could do that once, but I am continuously making changes and I can not test everything again and again, and some platforms (like .NET iOS) have not been tested at all. So there will be bugs.
More stuff is fixed but not everything
Deleting vertices in modify mode does not function properly yet. And also I should spend more time on the tap gesture. There should also be more similarity on all platforms, and perhaps more to shared functions.

Perhaps I should just delete the zoom-to-box tools, they should be replaced by a ZoomToBoxWidget, but I won't have time to add that.
The Hyperlink should not be handled in the MapControl. I am thinking about a static PlatformUtilities.OpenInBrowser function that should be initialized in the constructor of each MapControl.

Release first beta
I want to release the first beta after spending a bit more work on manipulation.


Serverless: Work with GTS to beta test

Ruby GTS engineer Tobby has volunteered to help beta test. We should deliver instructions and content to him to test with.

All info on testing has been delivered over both sync and asnyc sessions. We'll track any testing feedback separately.


KYLIN-3853 Support Flink cube engine for Kylin web UI

jira ref : https://issues.apache.org/jira/browse/KYLIN-3853

Can one of the admins verify this patch?

Hi @shaofengshi please review this PR, thanks!


[DO NOT MERGE] Cardano sl 1.0 gruping policy

Issue here: https://iohk.myjetbrains.com/youtrack/issue/CSL-1996
tldr; The branch is actually:

v1.0.2
cherry-pick (https://github.com/input-output-hk/cardano-sl/pull/1826 )
remove Buildable (SafeLog InputSelectionPolicy) instance as SafeLog has been introduced in v1.0.3 (which still isn't released)
change default grouping policy to OptimizeForSize

@akegalj Oh dear, more conflicts 😢  Mind tackling those?

@adinapoli-iohk no, we won't merge this. We opened this just so it is easier to review. This is a separate branch that will be used to create installers so that @fersel can test these installers and hand over to a single user which has this problem (form CSL-1996)
Is my understanding right?

Is my understanding right?

You are dead right, this is what happens when tying & listening at the same time :)

@fersel have we test these installers?


Style/EmptyLiteral + frozen string literals

What is the recommendation for how to handle frozen string literals because the EmptyLiteral cop fails on String.new but there's no way to disable just the check for empty string literals.

It seems to me that auto-correcting String.new into "" can produce erroneous code, if you're running with frozen string literal and it was a non-frozen String you wanted. Those bugs might be hard to track down too. I think we need to remove that auto-correction, and maybe the entire offense since we can't know if it's safe to change String.new into "".

We can know if it's safe to change String.new into "" though -- if frozen string literals are enabled. And there's a FrozenStringLiteral mixin that can tell us just that

Don't understand what this issue is about.

@alexdowad Let's say you have this file:
# encoding: utf-8
# frozen_string_literal: true

s = String.new
s << "Hello"
puts s

rubocop -a will change s = String.new into s = '' and the program no longer works with ruby >= 2.3.
@segiddins's solution sounds good to me.

Thanks. But when @segiddins said "it's safe if frozen string literals are enabled", did he actually mean "if frozen string literals are not enabled"?

I think I did


some issue with checkbox

hello,
when use checkbox  <input type="checkbox" checked="true" class="checkbox " />  will appear border-color

it looks different from example
how to remove default border-color
thx

Are you using any other CSS packages or plugins that may apply styles to the checkbox? Like @tailwindcss/forms?

thx.


Enable option to enable / disable animation

It should be an aoption to disable animation, or set custom animation when graph is loaded.

I am using PIE chart and it is showing animation even after removing startAnimation() from the code. I am simply reducing animation time to ZERO to disable animation like app:egAnimationTime="0" and It worked as desired.
`


Radiogarden API used to create 150,000+ station list

I've been enjoying my RadioGlobe for the past 8 months with about 10,000 loaded stations but I was always bothered by annoying dead-zones here and there. Therefore, I wanted to try to incorporate all of the stations listed on the RadioGarden website since this is a vast collection of streaming sites. Over a few weeks I worked on this goal and I've gotten the station.json file to the point where I'm willing to share it. The process was as follows:

Radiogarden lists stations in cities with a "places" code of which there are about 12,500 of them. The "places" codes were able to be collected here: http://radio.garden/api/ara/content/places
Using a script, I was able to examine each "places" code using a prefix, and collect all radio stations within that place. This step resulted with over 150,000 stations...but only returned the "station" code...not the actual streaming website URL. getting the actual URLs took another step.
Examine all 12,500 cities and determine their lat/lon coordinates...save to a table.
Using another script I was able to look at each individual station code website and see where it 304 re-directed...then save this URL.
Use another script to create a database which combines the data from steps 4 & 5.
Another script to identify the 2-digit standardized country code and apply to the end of each city name appropriately. Some mistakes happened here which I'm still working to fix. Many cities around the world use the same city name and the script made some errors. I'm trying to create another script to look at the lat/lon coords and correlate that the country code is correct...still INW.
Clean up the data, remove non-US characters, shorten station titles to 16-characters, etc, etc.

The station list works fine, although it does create a few new problems. Because now there are so many cities, it becomes difficult to tune to a specific city and instead the globe will "snap" to a nearby city. Adjusting the snap distance would work, but make it overly sensitive. I would like to implement a new "city select" function which might help with this. The user should be able to use the jog wheel to move through nearby cities.
Also, I have had a few lock-ups of the RadioGlobe here and there where the screen will not respond and the globe won't move to a new station (although it will continue playing the current station). This may be related to the code having an issue with too many stations in one place but this is only a theory.
-John
stations.json

Finished 150k stations (v1).xlsx


Drop heapster support in kubectl top

Kubectl supports Metrics API provided by metrics server starting from 1.8
Heapster is RETIRED and no longer supported.
Having kubectl still mention heapster leads to confusion from users on what is needed to have kubectl top working.
/assign

/area kubectl
/sig cli
/kind cleanup


fix connected regions number

Thanks for the PR. I am fixing e2e test, and when I am done, I will merge this PR

Thanks for the PR. I am fixing e2e test, and when I am done, I will merge this PR


Timeline Delegate - didStop not being called.

Animation seems to work correctly, however didStop function does not seem to be called. Moreover, variable Timeline().playing never changes from true to false.
extension SomeViewController: TimelineDelegate {

    func didReset(timeline: Timeline) {

    }

    func didPlay(timeline: Timeline) {
         //This function is working well
    }

    func didPause(timeline: Timeline) {

    }

    func didOffset(timeline: Timeline, to time: TimeInterval) {

    }

    func didStop(timeline: Timeline) {
        //This function is never called
    }

}

@jbeenie @ismailgulek @Owen-Delisle @C4Framework

Hey Andrey,
I just tested and the delegate method didStop does get called for me.
If you have a sample project where it's not working, could you please provide a link so I can test.
Also, Timeline().playing won't work because Timeline() is constructing a new timeline when being called.
You will need to check timeline.playing() which should work as it is pointing to a previously constructed variable.
Here's a sample project showing everything working:
https://www.dropbox.com/s/tokbcbvjl405jzb/Timeline.zip?dl=0
p.s. In investigating this ticket, I did find a small bug to fix which will come out in our next release.
Cheers,
Travis

Hey Travis,
Thank you for your prompt response.
Everything seems to work well on the file you shared with me. However, when
I try to set a similar delegate with my animation it seems to be called
multiple times (I speculate it calls didStop on every sub animation didStop
inside  main animation).
I attach some screenshots showing debugger output when I simply run my
animation. I am also attaching slightly adjusted (to include delegate)
auto-generated code I was using.
Kind regards,
Andrey
On Mon, 7 Jun 2021 at 21:17, -- C4 -- @.***> wrote:

Hey Andrey,
I just tested and the delegate method didStop does get called for me.
If you have a sample project where it's not working, could you please
provide a link so I can test.
Also, Timeline().playing won't work because Timeline() is constructing a
new timeline when being called.
You will need to check timeline.playing() which should work as it is
pointing to a previously constructed variable.
Here's a sample project showing everything working:
https://www.dropbox.com/s/tokbcbvjl405jzb/Timeline.zip?dl=0
p.s. In investigating this ticket, I did find a small bug to fix which
will come out in our next release.
Cheers,
Travis
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/createwithflow/FlowCommoniOS/issues/26#issuecomment-856225719,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASPTVUCJRQ3CN4QMHQ3T6GDTRUSMXANCNFSM45JR2GFQ
.


Api routes v2

Refactored api routes for /api/products

refactored allProds reducer to match new routes

fixed editProduct component (it was sending the category name instead of categoryId, which caused a database error)

CATEGORY PAGES ARE NOT FUNCTIONAL -- those are being fixed on a different branch

Also updated the Navbar for when a user is logged in vs logged out and admin

outdated - these changes will be included in a different branch


Feature: Expose CCU commands?

I'm submitting a ...
[ ] bug report
[X] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary
There is option to read and emit CCU message from Camera Tab? I see this lib have command receive event private, and it expose only stateChange. But CCU looks like is not part of state.

If will be possible to expose RAW CCU payload i try to write some wrapper to handle this data. But if is wiped out is not possible.
Thank you.

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Looks like https://github.com/nrkno/sofie-atem-connection/issues/85 but i want to expose raw payloads, becayse i want to pass it directly to the camera without any modifications. (Because ccu on atem is big guessing, but if i do not step in between it works, looks like that.)


Support Ping and Restart ICE API Endpoints

@luongngocminh can you update more details info? many be SDK is using Ping so we should now how client implement for correcting implemented in server. Now we see two parts need to implement:

gateway
media-server it-self (only webrtc because js-sdk only use webrtc)

ref https://github.com/8xFF/atm0s-media-server/issues/7

cleanup for new version


Scope

What is the scope of this policy ?

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

ID: 658b4c0d-c5b7-3859-c669-8476ba2b3020
Version Independent ID: 93fb980c-9db6-e522-a15d-ab28bf26d10c
Content: Sample - Apply tag and its default value - Azure Policy
Content Source: articles/governance/policy/samples/apply-tag-default-value.md
Service: azure-policy
GitHub Login: @DCtheGeek
Microsoft Alias: dacoulte

@taromielnaz The policy definition can be assigned to a few scopes, including a management group, subscription, resource group, or individual resource.  The sample code, however, is using the resource group scope:
# Set the scope to a resource group; may also be a resource, subscription, or management group
$scope = Get-AzResourceGroup -Name 'YourResourceGroup'

The $scope variable is then used by New-AzPolicyAssignment. Is this what you were looking for?
@MicrosoftDocs/azure-cxp-triage Please assign to me, label 'product-question', and #in-progress.

@taromielnaz The policy definition can be assigned to a few scopes, including a management group, subscription, resource group, or individual resource. The sample code, however, is using the resource group scope:
# Set the scope to a resource group; may also be a resource, subscription, or management group
$scope = Get-AzResourceGroup -Name 'YourResourceGroup'

The $scope variable is then used by New-AzPolicyAssignment. Is this what you were looking for?
@MicrosoftDocs/azure-cxp-triage Please assign to me, label 'product-question', and #in-progress.

Is there any choise of selecting scop in Azure portal not powershell or CLI?
I would like to enforce my users to put customer name whan creating VMs , web apps , SQL DBs and...

Yes, the Azure portal lets you pick the scope.  You can see an example of the steps here: https://docs.microsoft.com/azure/governance/policy/tutorials/create-and-manage#assign-a-policy
When you say "put customer name when creating", do you mean in the name of the resource or in a tag? If using tags, this sample can be used as a reference.  We also just enhanced using tags dynamically, which you can read here.
Let me know if that answers your questions.

I can choose just the subscription and resource Group is optional . How can I enforce a type of resources like VMs or SQLs?
I used that sample it just doesn't let user to create resources . An error occurs but it was better to ask for mandatory tags not occurring an error .

There are many samples on the Samples index for working with different resources. Please take a look at those first.  If there isn't a sample for what you want, you can create a custom sample definition with this tutorial.
As clarity, Policy doesn't enforce role-based access.  So if a user doesn't have the rights to create a VM, then Policy won't give it to them.  Policy is a way to ensure that users with permissions to do operations in Azure are doing them within the defined policy, such as only using specific SKUs for a VM, only deploying to allowed regions, and many many other users.
I'd also recommend trying out the Hands-on Lab - Exploring Azure Policy to get a better understanding of the service.
If you are looking to understand when to apply policy, I'd also recommend looking at the Cloud Adoption Framework to get started on your Governance journey.
I hope that answers your question.  This isn't a support forum, but for correcting issues with the docs. As such, I'm now going to ask for this item to be closed.  Thanks again for reaching out!
@MicrosoftDocs/azure-cxp-triage #please-close


Update copyright for 2024

Extends the license header to 2024 and regenerates.

@emcfarlane, there's a CI failure. Looks like you need to run make generate again to pick up the changes in the generated PB code.

You also need to update the actual LICENSE file


add validator to validate percentage of record change

Also lets add this to hollow user docs https://hollow.how/validation/?h=validato#pre-defined-validators


add .gitattributes to set default line endings

Set some defaults for line-endings for text-files
to assist (docs)contributors on Windows that don't
have a global configuration present to end up with
errors if they try to build/run the documentation.
This is just a quick draft; should we enforce LF for all files? Use different settings? I'm always a bit confused by these settings myself, and I'm not on Windows, so input is welcome :smile:

ping @tianon @jhowardmsft if you have time to have a look, and provide suggestions, that'd be great

I've honestly no idea if this is needed or not. It always 'just works' for me as is today on multiple machines. I don't explicitly set the crlf option. But I would note that we have multiple bash files under make with no extension such as .integration*, and bat files are so passé these days. .cmd or .ps1 (and the ps* variants).

I like the idea of enforcing line endings at the Git level, although I agree that file extensions probably isn't going to be an especially effective way to accomplish that appropriately, and do wonder if maybe the local environment is going to be more important to configure properly here.  Have we had a problem with folks sending files with improper line endings?

@tianon yes, for example, https://github.com/docker/docker/issues/21528 (I think there were some other ones)

Oh :disappointed:
Do any of our "text" files really need non-lf?  I think Windows machines normally have sane default config for "convert on checkout", right? (especially evidenced by @jhowardmsft not having any issues with line endings :smile:)

IMO, setting it all to LF should be ok, any editor (probably minus NOTEPAD.EXE) on Windows should handle LF without issues

Actually.... you picked the one editor which is lousy at it. Which is why I alias notepad++ to notepad...

Yup, anything above notepad should work fine

Alright, I changed this to force LF for text-files; are there any files on Windows in our repository that would be an issue?

I think it's ok. ping @tianon @jhowardmsft for another review

I think it's OK, but I have reservations. I think this now forces Windows users to not be able to use the only built-in GUI text editor on Windows without their git checkout set appropriate. So I conclude 'Why would we do this?'.
PS I miss edlin :smile: (not on 64-bit Windows)

@jhowardmsft without this, they would be able to edit, but build would fail, so I'm not sure that's a better place to be.
In all honesty, if you're coding in notepad.exe, you'd probably have other issues as well. Any way to get some enhancements into notepad.exe to make it slightly more useful?

Perhaps Visual Studio Code (http://code.visualstudio.com) should be installed by default, I gave it a short spin recently, and it's pretty neat :+1:

My point was that there are situations, albeit fairly far-out but nano comes to mind, where you are forcing things.
I'm as likely to have influence over changes to notepad.exe as I am to become POTUS this year. I doubt anyone is maintaining it.

@jhowardmsft no worries, it's appreciated; my intent here is to prevent Windows users ending up with cryptic error messages when trying to build, I'm not really attached to it, so if you think it's better not to merge it, that's fine.
I'll leave it up to you and @tianon :heart:

Understood. I'd be tempted to not merge, but I'm still on the fence. Just to clarify, the assumption about 'not being able to build' relies also on using the default hack\make scripts to do the build, and when the git checkout is non-default, and if those are the files you're changing. I think that's a fairly rare case. FWIW, I know of at least one person who develops on Windows (me) who doesn't use the hack\make scripts while developing as currently they don't cater for dynamic linking of sqllite (makes compile -way, way, WAY- faster), and general in a dev environment on Windows, you wouldn't normally build a docker image just to compile in a container, assuming even further, that is, that your dev box can even run containers. What if it is a Win8.1 box?  You'd only use hack\make.sh if you're doing final release testing before submitting a PR, and even that's kind of optional as CI would do it for you.

@jhowardmsft curious; when going through that process, are you working with CRLF or LF line endings? The case where people ran into, is even without modifying those files, but on checkout, shell scripts were converted to CRLF (so invalid to run in a Linux container).
For the "advanced" workflow you're using, I expect the developer knows what they're doing, so would have setup Git properly anyway. People following the steps in our contributors guide may not have this all setup and do use hack/make.sh and build in a container.

Hmmm - in a Linux container I think that's the critical bit above in your comment. I was predominantly thinking about Windows docker developers developing for Windows (sorry, a little biased, haha :blush:). I really can't answer the bit of Windows developing for Linux, but again, I would have the WIndows git default suffices for the majority of users.

I think it probably had enough bikeshedding. If @jhowardmsft still not sure, let's close it :)

You know being one of the reporters of this issue, if this creates an issue for the team or for other windows users (I use both Windows and Linux myself), might a check in the build process itself for the line endings the build process expects be in order? In that Use case, a message could then be output stating which line ending to set their .gitattributes, and the correct entry in that file, to.
The intent of my report was not to cause additional hardship on either the team, or Windows users, but rather to make note that the build process does, in fact, expect certain line endings which default configurations for many official, and 3rd party, Git applications don't seem to provide for by default.
This created, as @thaJeztah mentioned, created a cryptic build failure. At that point, I had no .gitattributes file, either globally or per-project, in play on my Windows 10 laptop. I've been coding for some time, myself, but it never dawned on me to check the line ending settings. I'm guilty of assuming it would 'just work'. lol! I'm thinking of other users here without either my, or you guys', level(s) of development experience. If it didn't dawn on me to think about it, I'm sure it won't even come onto new users' radars.
Comments, ideas?

@jhowardmsft your turn! :)

I'm not sure what else I can add beyond what I put ^^

looks like we don't reach consensus on this, so I'll close


pouchdb-find and ember

Sorry, for this very basic question ... How do I make the pouchdb plugins work in ember? I'm currently trying this with pouchdb-find.
I have pouchdb working smoothly via ember-pouch.
Pouchdb-find is installed by bower install pouchdb-find.
I'm calling: app.import("bower_components/pouchdb-find/dist/pouchdb.find.js"); in ember-cli-build.js
Now I'm lost on how to attach the plugin to the pouchdb. Require('pouchdb-find') in the application adapter gives me this:
Could not find module 'pouchdb-find' imported from '(require)' Error: Could not find module 'pouchdb-find' imported from '(require)'.
Help is very much appreciated.

In case no one figured this, you need to PouchDB.plugin(require('pouchdb-find'))

Hey Nolan, thanks for answering.  I just installed pouch-find via npm and used the app.import in the ember-cli-build.js Then all the methods of pouch-find (also true for other plugins) are already attached to the db. So no call of require or PouchDB.plugin necessary here. Thanks anyway.


New Machine requirement: Solaris/x64 systems (Equinix replacement)

I need to request a new machine:

New machine operating system (e.g. linux/windows/macos/solaris/aix): Solaris
New machine architecture (e.g. x64/aarch32/arm32/ppc64/ppc64le/sparc): x64
Provider (leave blank if it does not matter):
Desired usage: Build, test and TC
Any unusual specification/setup required: Can be separate servers or hosted on a hypervisor. Exising ones are on an ESXi server
How many of them are required: 4 (minimum) - one build, 2 test, 1 TC

Please explain what this machine is needed for:

Replacement for Equinix systems which we have to decomission as per https://github.com/adoptium/infrastructure/issues/3292

Noting that the licensing for ESXi was recently changed by Broadcom so it is likely that it will not be possible to utilise that for the replacement.

@steelhead31 Have you used Solaris VMs with the libvirt/kvm provider instead of virtualbox?

I have not

Nor I, there are some libvirt vagrant boxes available on vagrantup though.

Ubuntu EFI secure boot warning with Azure trusted VMs
│ UEFI Secure Boot requires additional configuration to work with third-party drivers.
│
│ The system will assist you in configuring UEFI Secure Boot. To permit the use of
│ third-party drivers, a new Machine-Owner Key (MOK) has been generated. This key now
│ needs to be enrolled in your system's firmware.
│
│ To ensure that this change is being made by you as an authorized user, and not by an
│ attacker, you must choose a password now and then confirm the change after reboot using
│ the same password, in both the "Enroll MOK" and "Change Secure Boot state" menus that
│ will be presented to you when this system reboots.
│ If you proceed but do not confirm the password upon reboot, Ubuntu will still be able
│ to boot on your system but any hardware that requires third-party drivers to work
│ correctly may not be usable.
If you try to bring up a VM without additional work, then you'll get this error:

Error while connecting to Libvirt: Error making a connection to libvirt URI qemu:///system: Call to virConnectOpen failed: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

In theory this can be mitigated by: /usr/src/linux-headers-6.5.0-1015-azure/scripts/sign-file sha256 /var/lib/shim-signed/mok/MOK.der /var/lib/shim-signed/mok/MOK.priv /var/lib/dkms/virtualbox/6.1.50/6.5.0-1015-azure/x86_64/module/vboxdrv.ko but I haven't got that to work yet ... Probably because the MOK password hasn't been entered on startup (You're prompted to set up MOK during the install of virtualbox)

Using a "standard" VM of a D4 specification (which supports nested virtualisation) allows vagrant to work successfully without a reboot loop. Note that a d3as-V4 or B4ls_V2 will not work and gives the message Stderr: VBoxManage: error: AMD-V is not available (VERR_SVM_NO_SVM) when attempting to start the VM from Vagrant. Standard D16ds v4 (16 vcpus, 64 GiB memory) works ok.
To connect the default ssh configuration on the Ubuntu client will not work so you need to connect with:

ssh<EMAIL_ADDRESS>-p 2222 -o HostKeyAlgorithms=ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519 -o PubKeyAcceptedKeyTypes=ssh-rsa -i /home/azureuser/infrastructure/ansible/vagrant/.vagrant/machines/adoptopenjdkSol10/virtualbox/private_key (We should probably see if this can be set in the Vagrantfile)

Noting that vagrant ssh by default also uses  -o LogLevel=FATAL -o Compression=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null but those aren't mandatory
Steps to recreate
scp <IP_ADDRESS>:/home/will/solaris10_homemade_v2.box .
sudo apt-get -y update && sudo apt install -y joe vagrant virtualbox
vagrant box add --name solaris10 solaris10_homemade_v2.box
wget -O Vagrantfile https://raw.githubusercontent.com/adoptium/infrastructure/master/ansible/vagrant/Vagrantfile.Solaris10
vagrant up

Working system types (Numbers in brackets are cores/memGB):

D16ds_V4 (16/64)
D2s_V3 (2/8)
d8s_V3 (8/32)
f4s_V2 (4/8)

Failing system types (reboot loop in the VM)

D8ls_V5 (8/16)
D16dsV5 (16/64)

Failures with no VMX/SVM:

d3as-V4
B4ls_V2

I'd ideally have a 8/16 or 16/32 but this seem only available in configurations that don't work from the ones I've found so far :-(

Created new system on dockerhost-azure-ubuntu2204-x64-1 which has had vagrant and virtualbox installed from the adoptium repositories. This machine has had ssh exposed via port 2200 on the host, although the algorithm requirements mean there are issues connecting to it. I have a set it up in jenkins using JNLP for now.
A build ran locally completed in about 20 minutes.
The AQA pipeline job has been run at https://ci.adoptium.net/job/AQA_Test_Pipeline/220/ although that may need a re-run since it was running during today's jenkins update:

Job
First run
Second run

sanity.openjdk
link
link

extended.openjdk
link
link

sanity.perf
link
link

extended.perf
link
link

sanity.system
link
link

extended.system
link
link

sanity.functional
link
link

extended.functional
link
link

special.functional
link
link

So we're left with the ten failures from extended.openjdk. Re-running the appropriate targets in Grinder:

Grinder
machine
Time
Result

9047
azure-1
m

9048
esxi-bld-1
m

9049
esxi-test-1
m

Starting over with a cleaner setup now that we have prototyped this. Both of the dockerhost machines have had a /home/solaris file system created with enough space to host the VMs. The vagrant processes will run as that user:

Host
Guest

dockerhost-skytap-ubuntu2204-x64-1
build-skytap-solaris10-x64-1

dockerhost-azure-ubuntu2204-x64-1
test-skytap-solaris10-x64-1

When creating an Azure VM that supports nested virtualization, the following restrictions are in place:
Must be a TYPE D or TYPE £ machine, of Version 3.
Must only use the "Standard" security model, trusted launch should not be used/enabled.


Feature/issue 371

Resolves #371
Alright.. Now, if Maven API is up, we initialize the user project with latest versions of libraries. And automatically display latest versions of jME to choose from. If Maven API is down, it doesn't matter, we have a set of hard coded versions to choose from. This is just an enhancement that is provided for our and users' convenience.
Maven API wasn't working that great this past two weeks. Now it seems to be up again. How this is designed, is that there is zero wait for the user. So there might be inconsistent results in users' perspective as we might catch latest versions at some random point in time.
In my experience, the Maven API either responds immediately or it is simply down. Meaning that this strategy is viable. The Maven is accessed in highly parallel way, zero locks still. And only once per lifetime of the SDK instance.
Ok, the caveats:

User sees some warnings for not able to get latest versions of some libraries (due to API error or as guaranteed since not all the libraries while writing this are accessible from Maven Central)
Even for jME libraries we can't guarantee a working combination on all versions. Libraries such as test-data and awt-dialogs might be missing from some versions, yet they are hard coded to be included (not the latter, yet)

edit: added library version filtering to avoid weird version types (minie and heart)

The latest versions might be in some cases little bit off.. Or depends on the use case.. i.e. com.github.stephengold:Heart:8.3.0+for36 and com.github.stephengold:Minie:7.2.0+mt (we can maybe ask Stephen to consider adjusting his build scripts so that the recommended package is uploaded last...)

Ok, this is kinda ridiculous demand. We can fix this to be better...

I'll merge this in 12h if no objections. I think it is production ready.
I still tweaked the version handling to more straightforward model in code.


"Free" windows resetting to random zone on Virtual Desktop switch

Microsoft PowerToys version
0.61.1
Running as admin

[ ] Yes

Area(s) with issue?
FancyZones
Steps to reproduce

On Windows 10, have Fancy Zones enabled and a Chrome Window (happens also other programs, but most reliably with Chrome for me) on Virtual Desktop 1, another Chrome Window on Virtual Desktop 2, both snapped to a Zone
Make Window 1 "free", i.e. not snapped into any zone, by dragging it out
Switch to Virtual Desktop 2, then switch back to Virtual Desktop 1 (doesn't matter if via keyboard shortcut or the taskbar icon)

✔ Expected Behavior
The first Chrome window should stay in the free position it was in when I left Virtual Desktop 1
❌ Actual Behavior
The first Chrome window gets snapped into a random zone upon switching back to Virtual Desktop 1. The zone it gets snapped to frequently is even on another monitor than the window was originally on.
Other Software
Windows 10 Pro, Version 10.0.19044 Build 19044

This is mostly a problem with maximized windows. On my main screen, I have a grid layout active, but some programs I want to have in full screen, so I just maximize them with the regular Windows controls, but they always get reset when switching VDs, which I do very often during work.
It only started happening after updating PowerToys, on my previous version (I believe it was 0.59, not completely sure on that) it worked flawlessly. Seriously considering disabling fancy zones because of this at the moment.

I'm also having this problem, starting when I updated to 0.60 I think. Being maximized doesn't matter for me and the window(s) always reset to the first zone on the next screen. I am running as admin.
Basically, when I switch virtual desktops and switch back Chrome windows on a screen with no layout goes to the first zone on the next screen. Chrome is also the main culprit for me, even other chromium based browsers (Edge and Brave) do not do it.
Example

PowerToysReport_2022-08-12-10-40-23.zip

Being maximized doesn't matter for me

Ah, yes - whether the window is maximized or not doesn't affect the behavior for me either. I was a little unclear there.

the window(s) always reset to the first zone on the next screen

For me this seems a little inconsistent. My monitor setup looks like this:

(left 1080p, right 1440p, with the right one being my main monitor in Windows)
Monitor 1 has a column layout with a narrow column on the left and a second column covering the rest of the screen on the right.
If a window is free/maximized on the left monitor, it will reset into the right column on the right monitor. If it's free/maximized on the right monitor already, it will stay on that monitor, and usually also reset into the right column, but sometimes it will also reset into the left, narrow column, but still on the same monitor. I'm not sure what the condition here is for resetting into one zone or the other, I haven't been able to reliably reproduce it.

Mine seems to be the same issue as described in #19503 and this comment is a great summary and workaround for me.

@randyclassen Thank you! That seems to be exactly it and the workaround also works just fine for me, I don't really care whether that option is turned on or off anyway.

/dup https://github.com/microsoft/PowerToys/issues/19665


Fixed dependency

This dependency appears to be wrong and does not exist on maven central.
implementation("io.opentelemetry.instrumentation:opentelemetry-aws-sdk-2.2") seems to be the intended one.

@jmb3471 Thank you so much for this change

@vasireddy99 any chance for a merge?


If the app looses connection, the DCS part doesn't send anything after reconnection

Needs to be addressed fast

Fixed with last release


Cue List: Can change next/prev buttons behavior

This allows to change the behavior of the next/prev buttons
while the chaser is not running.
http://qlcplus.org/forum/viewtopic.php?f=5&t=8694

Yay ! More stuff to port to QLC+ 5 :smile:
Just kidding :stuck_out_tongue_winking_eye:
Just one thing: please don't cut words as they will be weird to translate. Use "previous".

Sure thing :)


Can I ignore an entry in exports?

my packages have a legacy/support entrypoint, which isn't exactly public API, but is there for folks who know about.
It's also a CJS module, but with an ambiguous entry in the exports.
I'd like to ignore checking this file / exports, because it ultimately wouldn't be used by 99.999% of users.
Is this possible? possible soon? thanks!!

Yes 😄

I also have a similar scenario, but for .css files that my component library exposes.
Does it make sense to exclude them? Or would it be better to provide a .d.ts for those .css files?

It probably makes more sense to exclude them.

How can we exclude CSS files then?

@RobbieTheWagner Looks like this'd be done over with the CLI's  --exclude-entrypoints argument, which can also be pre-specified in the .attw.json file.


[Question] Build for mobile and web

Hi!
I am trying this example project here, https://github.com/Unity-CI/unity-actions-example. And wonder how do I add the test for Android, iOS and WebGL? Here is my .yml file,

https://github.com/jcs090218/UnityPackageExporter/blob/master/.github/workflows/build.yml

Thanks!

I haven't tried this, but I think that you can create a matrix just like here:
https://github.com/Unity-CI/unity-actions-example/blob/15fcbf34c2c06edd442dd143f11ae1ebdf65ac4e/.github/workflows/main.yml#L71-L103
in the with statement, add a line like targetPlatform: ${{ matrix.targetPlatform }} and in the matrix definition (test.strategy), add this:
      matrix:
        targetPlatform:
          - StandaloneOSX
          - StandaloneWindows64
          - StandaloneLinux64

hmmm... Can you elaborate a little bit more? So basically, I am not able to just do
...
      fail-fast: false
      matrix:
        targetPlatform:
          - StandaloneOSX
          - StandaloneWindows64
          - StandaloneLinux64
          #- Android
          #- iOS
          #- WebGL
...

This is currently not possible because test runner just runs your tests on the base platform. I'm not sure if "adding tests for Android, iOS and WebGL" are even a thing.
If so it would probably need to be tested in an end-to-end manner, rather than testing it in the editor itself.
If you want to test different variables for different platforms, then that is something you could do using customParameters or loading a different .env file.
Closing this as this doesn't seem to be a thing. If indeed there is such a thing as multi-platform in-editor testing, please hand us a link to the docs so we're talking about the same thing. PRs are also very welcome in Unity test runner.

Personally, I think it’s a thing as some libraries may only load depending on a given platform and unity needs to run with that platform selected in order to load some libraries.


Update top-extensions-localization-globalization.md

Update contact reference for the localization onboarding

Hi Eric we dont accept pull requests to this repo i will reach out to you on Teams w/ the right doc to update


Added Some script to make it a bit easy.

Hi,
I have added few scripts to make the workflow easier.
I have added a few .env files and upon running the corresponding script, a new docker container is created accordingly.
Hopefully you will like it. let me know your view.
Thanks,
Pritam Dulam

Hi, thanks for contributing to this project.
Sadly im not able to see which problem you are solving here :D.
Isn't it the big advantage of this project that we are very flexible with only one config ?

Sorry for not replying earlier.
The problem I was addressing to is each time one has change .env to start
docker, by using these scripts one can easily setup all possible
environments and
use them by invoking these scripts.
let me know if you expect any improvement.
On Wed, Dec 15, 2021 at 4:06 PM Malte @.***> wrote:

Hi, thanks for contributing to this project.
Sadly im not able to see which problem you are solving here :D.
Isn't it the big advantage of this project that we are very flexible with
only one config ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sprintcube/docker-compose-lamp/pull/176#issuecomment-994653239,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJPCBCUAAXIA7JWZ7W2MP3URBVTZANCNFSM5F42PRAA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Regards
Pritam Dulam
9765345892

I understand the functionality, but this workflow better be noted in the README, so it is well documented ... what do you say? @pritamdulam

I will work on this soon.


Migrated to core clr. This version is compatible with both- net 4.5.1…

I have migrated this repository to CoreCLR. It's still compatible with .net 4.5.1 and all unit tests are passing on local machine.

this is also related to https://github.com/Pereingo/statsd-csharp-client/issues/50

Hey Bilal,
Thanks a lot for this PR! I've not done that much with the core clr yet, so it's very helpful.
How can I get this running locally to try out?
I see you used Socket.SendToAsync() which bubbled up everywhere. Can I ask why? At the very least I think async overloads for the public API are needed for backwards compatibility. I see a sync version of SendTo() is still available.
Thanks!

Hi @DarrellMozingo
Some methods like Dns.GetHostEntryAsync(_name); are not syncronos. But if you are a real fan of backward compatibility, I can make it backward compatible. Just to show you how it is done, have a look below:
    public interface IStatsdUDP
    {
        Task SendAsync(string command);

#if NET451
        void Send(string command);
#endif
    }

After compiling code like this, when you refer IStatsdUDP from a .net 4.5.1 project, you see both sync and async methods available to you. And when you refer to IStatsdUDP from a coreclr project, you only see async method available.
This is how other libraries have ported their projects to mono and coreclr. Since it will take some time make it backward compatible, I will only spend time on it if you feel this approach is okay.
Once this is accomplished, to make sure the functionality works as expected, I would suggest we write unit tests for both platforms separately in separate unit test projects.
The advantage of doing this would be users will have to install the same nuget package no matter what platform they are targeting. And the tradeoff of this type of backward compatibility is the mess it creates in code. But I have started to live with this now.
Let me know!

After you pointed out that SendTo() method is still available, I think all platforms can have access async and async methods.
There is only one public method i.e. public static void Configure(MetricsConfig config) in Metrics class, that will only be available in dot net 4.5.1. And ConfigureAsync(MetricsConfig config) will be in both platforms.
I am creating a partial class for synchronous methods to avoid mess in the same file.

Perfect, thanks for that Bilal. Yes, I think backwards compatibility is worth it at the expense of slightly more cumbersome code. Glad you found a nice shim to make it happen. I'll take a look this weekend!

Hi Darrel,
It's a work in progress. I have found that the async 'send' for udp that is
available to .net 4.5.1 is not the task based asnc but callback based
async.
So I decided to add the async only for core clr so that core clr shall
support both sync and async while .net 4.5.1 users will have only sync api.
For now.
I am in the process of making these changes and writing unit tests for
platforms separately.
Don't look at it right now as its not complete code. I will update you when
its worth looking. I plan to work on it in the weekend.
On 22-Jan-2016 8:07 pm, "Darrell Mozingo"<EMAIL_ADDRESS>wrote:

Perfect, thanks for that Bilal. Yes, I think backwards compatibility is
worth it at the expense of slightly more cumbersome code. Glad you found a
nice shim to make it happen. I'll take a look this weekend!
—
Reply to this email directly or view it on GitHub
https://github.com/Pereingo/statsd-csharp-client/pull/56#issuecomment-173936926
.

Sounds good!

Okay the code is stable enough now. Please have a look at it.
As I said earlier, All methods for net451 are synchronous. And supports async and sync for coreclr.
Unit tests work as expected for net451.
But I have not written any unit tests for coreclr. I would appreciate if someone can help me with it.

Nice work Bilal, I'll take a look today and tomorrow.

What a timing :) just today I was looking for this, and here's a PR nearly done for it! Looking forward for it, thanks :)

@darrellmozingo did you had any time to take a look?

I started too but might take me a bit longer (at least another 2 weeks, on holiday this week). Sorry, new to .net core and I want to make sure there's not too many breaking changes for clients so it's taking me a bit longer. If you need it sooner I'd suggest building bilal's branch :)

@CumpsD  I have uploaded a nuget package of my branch temporarily. you can find it here. Once we make this package core clr compatible, I plan to delete that nuget package. But the api will remain same so it's safe to use it for now. Hope that helps.

@DarrellMozingo  what do u think about releasing this as a alpha or beta package so that we get some feedback ?
Also, did you get to spent some time reviewing code ? Sorry for nagging you again n again. :P

Sorry for the slow feedback @bilal-fazlani!
Where can get I get the rc2 version of the System.Net.* and System.Text.Encoding dependencies listed in project.json? It fails to restore for me, and Nuget.org only lists various beta versions?
Also, how do you run the tests under dotnet core?

ahh, ok. sorry about rc2 thing. I will get back to you on this

there is a separate nuget source for rc2, but we should not use it is officially released. I will use rc1 and make a commit.

I have upgraded to RC2 of Dotnet core and removed dependencies of unofficial nuget sources.
But looks like this code base is ahead of mine now. I will try to sync and update this pull request.

brilliant cant wait

Hello guys,
Is this project still alive? Would be great to have this PR merged/released/finished if possible.
Cheers

Not as terribly active any more. Would you be interested in doing a review on this PR @RTodorov? Haven't done any .net core myself.

Hi all,
It would be great that we do this if there are no breaking changes.
As @DarrellMozingo wrote someone with experience should do the review

I'll take a look on it guys, it will probably need some adjustment since .NET Core 1.0 was released after this PR was opened. Will let you know.

@RTodorov Did you had time to do peer review?

What is the status on this?

There's another PR coming in with some newer core features so I'll go ahead and close this. Thanks so much to everyone that put time in on this, it's very much appreciated. Sorry we couldn't get it in!


docs: revamp README and usage guide

Currently the smithy-go README is extremely minimal and has gaps in terms of DX.
This issue captures updating the README portion, e.g. https://github.com/aws/smithy-go/pull/468

This is really needed, also in terms of user docs.
Are there any cookbook-style examples on how to set up the plugin for local usage of the plugin?  I haven't found much.  I was able to build this repo locally, but when I try the example under codegen/smithy-go-codegen-test I get
SUCCESS: Validated 209 shapes

Validated model, now starting projections...

Unable to find a plugin for `go-codegen` in the `source` projection. Is this the correct spelling? Are you missing a dependency? Is your classpath configured correctly?


Create coupon code for BlueCrossNC

Create a coupon code for BlueCrossNC - $5 off registration for CityCampNC.

Yo, what is the code?

I emailed it to you because we don't want our discount code listed in
public tickets.
On Sep 20, 2017 8:25 AM, "suzanneccnc"<EMAIL_ADDRESS>wrote:

Yo, what is the code?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/codeforraleigh/NCOpenPass/issues/705#issuecomment-330835472,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADgoV-qQpgnuBh2h1V2G7ERrB07bUIKrks5skQRVgaJpZM4PbnLi
.


add Gamma distribution

jenkins, test this please.

Jenkins, test this please.

Jenkins CI test (for commit f2ae9f73077d4d990bd535b85c76d1e60a799c1b, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

Jenkins, test this please.

Jenkins CI test (for commit d98db9456db8fec53e3b785f9442ade8acf63806, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)


Add utility wrappers for Mutiny

Fix #114

This one has been sitting here for a while. Should we close this?

Closing this for now. We can come back to this later if there's more demand.


Add option to select WCSimRoot only installation

This allows to only install WCSimRoot libraries using the -D WCSim_WCSimRoot_only=ON cmake option.
When doing so, all the G4 dependencies won't be looked for, only looking for ROOT
This allows for packages to be able to decode the file format, but not run the simulation itself, allowing a cleaner split between the simulation and the reconstruction.
For HK, this should take the form of a new package hyperk/WCSimRoot used by fiTQun (and others...) instead of the full WCSim package.

This looks good. Thanks @guiguem
The CI check would be great, if you can set that up
Could you also add to the README

In the list of cmake build options describe the new option
Somewhere around here add something like "If you just need to read WCSim output files, you can do this without the G4 dependency"

It seems that this PR won't trigger the new CI I made. Not sure why, it could be because this is a fork outside of WCSim org that tries to do stuff...

Exactly how CI works on PRs that change CI is something I've not figured out yet...
The rest looks good, so I'll merge & see what runs. Thanks @guiguem


[feature] - Vitest support

Vitest is getting increasingly popular.
We were using jest, but have moved to vitest because it was much simpler/easier with Typescript & ESM modules (just works - whereas it we had lots of config trial and error trying to get jest to work, before we gave up)
We still have our polly tests stuck on jest however, as we are using setup-polly-test ....
Any plans or work in progress to support vitest ?

polly + native fetch in node 20.11 with vitest is working for me
`import { headers } from 'functions/app/api/src/scrape';
import puppeteer, { Page } from 'puppeteer';
import { vi } from 'vitest';
import FetchAdapter from '@pollyjs/adapter-fetch';
import PuppeteerAdapter from '@pollyjs/adapter-puppeteer';
import { Polly, PollyConfig } from '@pollyjs/core';
import FSPersister from '@pollyjs/persister-fs';
Polly.register(FetchAdapter);
Polly.register(FSPersister);
Polly.register(PuppeteerAdapter);
let polly: Polly;
let recordIfMissing = true;
let mode: PollyConfig['mode'] = 'replay';
switch (process.env.POLLY_MODE) {
case 'record':
mode = 'record';
break;
default:
case 'replay':
mode = 'replay';
break;
case 'offline':
mode = 'replay';
recordIfMissing = false;
break;
}
/**

Creates a replayable recording of the api requests made in this test.

@export
@param {{
cassetteName: string;
recordingPath: string;
excludedHeaders?: string[];
}} param0
@param {string} param0.cassetteName
@param {*} param0.recordingPath This should be __dirname so that tests are cording in the same folder as the test calling this function.
*/
export function useCassette({
cassetteName,
recordingPath,
}: // excludedHeaders = [],
{
cassetteName: string;
recordingPath: string;
excludedHeaders?: string[];
}) {
beforeAll(async () => {
polly = new Polly(cassetteName, {
adapters: ['fetch'],
mode,
recordIfMissing,
recordFailedRequests: true,
// logLevel: 'debug',
persister: 'fs',
persisterOptions: {
fs: {
recordingsDir: ${recordingPath}/__recordings__,
},
},
});
});

afterAll(async () => {
await polly.stop();
});
return;
}`

polly + native fetch in node 20.11 with vitest is working for me
import puppeteer, { Page } from 'puppeteer';
import { vi } from 'vitest';

import FetchAdapter from '@pollyjs/adapter-fetch';
import PuppeteerAdapter from '@pollyjs/adapter-puppeteer';
import { Polly, PollyConfig } from '@pollyjs/core';
import FSPersister from '@pollyjs/persister-fs';

Polly.register(FetchAdapter);
Polly.register(FSPersister);
Polly.register(PuppeteerAdapter);

let polly: Polly;
let recordIfMissing = true;
let mode: PollyConfig['mode'] = 'replay';

switch (process.env.POLLY_MODE) {
  case 'record':
    mode = 'record';
    break;
  default:
  case 'replay':
    mode = 'replay';
    break;
  case 'offline':
    mode = 'replay';
    recordIfMissing = false;
    break;
}

/**
 * Creates a replayable recording of the api requests made in this test.
 *
 * @export
 * @param {{
 *   cassetteName: string;
 *   recordingPath: string;
 *   excludedHeaders?: string[];
 * }} param0
 * @param {string} param0.cassetteName
 * @param {*} param0.recordingPath This should be __dirname so that tests are cording in the same folder as the test calling this function.
 */
export function useCassette({
  cassetteName,
  recordingPath,
}: // excludedHeaders = [],
{
  cassetteName: string;
  recordingPath: string;
  excludedHeaders?: string[];
}) {
  beforeAll(async () => {
    polly = new Polly(cassetteName, {
      adapters: ['fetch'],
      mode,
      recordIfMissing,
      recordFailedRequests: true,
      // logLevel: 'debug',
      persister: 'fs',
      persisterOptions: {
        fs: {
          recordingsDir: `${recordingPath}/__recordings__`,
        },
      },
    });
  });

  afterAll(async () => {
    await polly.stop();
  });
  return;
}

This is really great, thanks @ekrata-main!
I took this a step further and tried to add sensible defaults where possible.
/**
 * Sets up Polly for recording and replaying HTTP interactions in tests.
 *
 * @param {Object} [options={}] - Configuration options for the recording.
 * @param {string} [options.recordingName] - The name of the recording. If not provided, the suite name will be used.
 * @param {string} [options.recordingPath] - The path to save the recordings. If not provided, the recordings will be saved in a "__recordings__" directory next to the test file.
 */
export function useRecording(
  options: { recordingName?: string; recordingPath?: string } = {},
) {
  beforeAll((suite) => {
    polly = new Polly(options.recordingName ?? suite.name, {
      adapters: ['fetch'],
      mode,
      recordIfMissing,
      recordFailedRequests: true,
      persister: 'fs',
      persisterOptions: {
        fs: {
          recordingsDir:
            options.recordingPath ??
            `${suite.file.filepath.substring(0, suite.file.filepath.lastIndexOf('/'))}/__recordings__`,
        },
      },
    });
  });

  afterAll(async () => {
    await polly.stop();
  });

  beforeEach((context) => {
    polly.recordingName = options.recordingName ?? context.task.name;
  });

  return;
}

Now, in a test, I can call useRecording() with all optional arguments:
import { describe, expect, test } from 'vitest';
import { useRecording } from '../../test-utils.js';

describe('integration', function () {
  useRecording();

  test('returns correct `posts` data', async function () {
    const res = await fetch('https://jsonplaceholder.typicode.com/posts/2');
    const post = await res.json();

    expect(res.status).to.equal(200);
    expect(post.id).to.equal(2);
  });
});

The results:
posts/
├── __recordings__
│   ├── returns-correct-posts-data_3598317541
│   │   └── recording.har
├── posts.ts
└── posts.test.ts

Excellent. Thanks. Got it working. I like your organisation of recordings more than the default with jest.
Any chance of this making a release?


point to a specific requirements.txt in isort.cfg

I have multiple requirements eg requirements.txt requirements-test.txt etc and they're sometimes in different folders due to convoluted docker cache hacks
eg in my tests I want to look at the test requirements, and not the prod requirements:
[tool:isort]
known_third_party = requirements:../requirements-test.txt

in the just released 5.0.0 version of isort: https://timothycrosley.github.io/isort/docs/major_releases/introducing_isort_5/ requirements.txt are no longer taken into consideration, as everything defaults to third party - so this should no longer be an issue!
Thanks for reporting!
~Timothy


404 error for  swiper.esm.bundle.js and swiper.esm.js on cloudfare cdn

Hello
Just in case you're not aware of this, the URL embedded in the 4.4.1 version of the swiper is returning a 404 at the moment:

From the get started page:
http://idangero.us/swiper/get-started/
Any fix?
Thanks in advance.

This page clearly says:

Don't forget to change 4.x.x to actual Swiper version

I did replace it with 4.2.1 and it return 404 error
https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.2.1/js/swiper.esm.js
https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.2.1/js/swiper.esm.bundle.js
Did i do something wrong?

Yes, there is no 4.2.1 version

I am sorry, i tired 4.4.1, it doesn't work too
https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.1/js/swiper.esm.js
https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.4.1/js/swiper.esm.bundle.js

esm modules are not available on CDN

esm modules are not available on CDN

Makes sense. 1b should be updated for that to prevent confusion.
https://idangero.us/swiper/get-started/


Microsoft.AspNetCore.WebUtilities documentation indicates no support in ASP.NET Core 5.0 Preview

Microsoft.AspNetCore.WebUtilities.QueryHelpers is used in an example to parse query parameters, but the documentation for QueryHelpers reports no support in ASP.NET Core 5.0 Preview.

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

ID: 35474d24-8039-f04a-de14-1530b8e8506c
Version Independent ID: b6cb2574-6326-a40d-0b6c-d1661328e828
Content: ASP.NET Core Blazor routing
Content Source: aspnetcore/blazor/fundamentals/routing.md
Product: aspnet-core
Technology: aspnetcore-blazor
GitHub Login: @guardrex
Microsoft Alias: riande

Hello @rollandjb ... API docs aren't updated until release. QueryHelpers.ParseQuery is available in RC1 and will be there when 5.0 ships ...
https://github.com/dotnet/aspnetcore/blob/release/5.0-rc1/src/Http/WebUtilities/src/QueryHelpers.cs#L155

Thank you.


Broken link to sharing-files section

Current link: https://github.com/serhii-londar/open-source-mac-os-apps#sharing--files
Fix: https://github.com/serhii-londar/open-source-mac-os-apps#sharing-files
Opening a PR soon.

#119


Will search and feed providers be available outside the EEA for orginizations?

Type of issue
Missing information
Feedback
Will custom search and feed providers be editable for organizations outside the EEA using Group Policy Manager? For example, a business or school in the US having Google set as the default search engine. Additionally, will orginizations outside the EEA be able to set Web Search from Microsoft Bing and Microsoft Edge as uninstallable or uninstall them themselves?
Page URL
https://learn.microsoft.com/en-us/windows/apps/develop/search/search-providers
Content source URL
https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/apps/develop/search/search-providers.md
Author
@drewbatgit
Document Id
c6d5b252-f5c3-2500-1f7c-c3f201c8eff3

@upintheairsheep I'm sorry, but I can't comment on future plans for these features. If there are any changes to the availability in the future it will be noted in the docs.


feat(templates): Drop Python 3.7 support in cookiecutter templates

:books: Documentation preview :books:: https://meltano-sdk--2018.org.readthedocs.build/en/2018/

@visch I'm not against, but why? Is it blocking something? 😅

@visch I'm not against, but why? Is it blocking something? 😅
I ask because I've been reluctant to backport #1837 from the v1 branch to main because 3.7 is still ~1/3 of downloads:

Not a huge deal for me I just hit that a down stream depending i wanted to use for my tap required python 3.8 or higher (latest version of fsspec atleast). Since I had to update the cookie cutter on my side I figured it'd help some others down the road that's it!

@visch I'm not against, but why? Is it blocking something? 😅
I ask because I've been reluctant to backport #1837 from the v1 branch to main because 3.7 is still ~1/3 of downloads:

Just remembered one other thing, I didn't touch the main pyproject toml file exactly for the reason you mentioned :)  so we don't break anyone here but anyone new has a later version of Python

I just hit that a down stream dependency i wanted to use for my tap required python 3.8 or higher (latest version of fsspec atleast)

Yeah, I've hit those too and Poetry doesn't have good hints about what to do in those cases because it tries to add the latest version by default. I've found that adding the dependency manually and pointing to a version right before 3.7 support was dropped, works fine.
For the case of fsspec that'd be 2023.3.0.
That said, it probably doesn't hurt to start expecting new packages built with the templates to require Python >= 3.8.


Convert groovy to java (spring-cloud-contract-verifier module)

gh-1470

Yeah those tests are related to some dependency hell that we have with reactor / spring integration. I'll try to fix it during the week. Thanks for the contribution!


Add Travis CI into PR Pipeline

current new PR is not tested before merging. with CI, merges should be safer and not breaking the build.

Is this issue still open?

@abc22413 yes it is still open

Is this being worked on by somebody?

nope it's not. you can get your hands on it


API: Refactor user role Middleware

I introduced role based data access for non-admin users. So how does this work?
Admin Users:
If the server receives an admin token, the middleware will do nothing special, just passes the admin role in the credentials context as before.
Non Admin Users:
If the server receives a token with a non-admin role, it will extract the sshKey attribute of the payload and query the database (permission table view).
This query returns a customerId and also a projects array (I thought we would need this, but it turned out we don't even use it right now). This information is passed in the credentials context as well.
All the dao.js functions are mostly using this customerId credentials to add additional WHERE conditions, locking the queried data to the specific customer. This has certain advantages, e.g. we can now do graphql based query allProjects, which is then scoped to the given authenticated customer.
Not included:
These changes are enabled for read operations... ADD / DELETE / TRUNCATE are not yet supported.
Tracking Branch: #128

I consider this done, created more tickets for the other operations:
https://github.com/amazeeio/lagoon/issues/154
https://github.com/amazeeio/lagoon/issues/155
https://github.com/amazeeio/lagoon/issues/156


🐛 Fixed active state bug in sidebar nav

Should close #15506.
The sidebar items that don't open the editor were missing some relative current-when attributes so the nested views weren't considered "active".

Added some tests for tags and members. Still in the process of doing so for offers. Noticing the Offers menu item isn't present when any of the acceptance/offers-test.js tests run. Implies that settings.paidMembersEnabled : false in the test environment though it looks like the all the criteria for it being true are present in the fixture. New to Ember so still fumbling about.

Hey @stephensauceda thanks so much for this PR 🙏 It's merged now and I've added the hacktoberfest-approved label 🎉 .
This fix will go out in the next release of Ghost (usually Fridays).
We have many more issues open and more being created all the time, we'd love to see you around again soon 👋


cannot "make"

Using Ubuntu MATE  not sure what version I can't seem to find what version of Ubuntu MATE.
cc -O2 -pipe -Wall -Wextra -o chargend chargend.c
chargend.c: In function ‘sendtcp’:
chargend.c:79:4: warning: implicit declaration of function ‘strlcpy’ [-Wimplicit-function-declaration]
strlcpy(cbuf, characters[i++], sizeof(cbuf));
^~~~~~~
chargend.c:80:4: warning: implicit declaration of function ‘strlcat’ [-Wimplicit-function-declaration]
strlcat(cbuf, "\n", sizeof(cbuf));
^~~~~~~
chargend.c: In function ‘main’:
chargend.c:275:6: warning: implicit declaration of function ‘setgroups’ [-Wimplicit-function-declaration]
if (setgroups(1, &pw->pw_gid) ||
^~~~~~~~~
chargend.c:276:6: warning: implicit declaration of function ‘setresgid’ [-Wimplicit-function-declaration]
setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) ||
^~~~~~~~~
chargend.c:277:6: warning: implicit declaration of function ‘setresuid’ [-Wimplicit-function-declaration]
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid)) {
^~~~~~~~~
/tmp/ccISsKKJ.o: In function main': chargend.c:(.text.startup+0x609): undefined reference to strlcpy'
chargend.c:(.text.startup+0x61f): undefined reference to strlcat' chargend.c:(.text.startup+0x71c): undefined reference to strlcpy'
chargend.c:(.text.startup+0x735): undefined reference to `strlcat'
collect2: error: ld returned 1 exit status
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 1

glibc does not provide strlcat and strlcpy. You will have to provide those functions yourself for the time being until glibc becomes a complete C library.


handle empty rtt value without error log msg

Seems Real Server RTT is sometimes reported as an empty value (spotted on our FG unit). Reporting this case immediately as NaN without trying to parse it and generating a log message for it.

:tada: This PR is included in version 1.2.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Swap s3 cache component paths

@toddgardner @JoeEnnever   Two minor fixes here related to getting more randomness in the s3 key prefix, which results in better performance:

Allowing self._path to be empty. This means you can use an s3_url like s3://mybucket without any sub folder.
Switching the cache components in the path, because the hash is more unique than the object name/id. I didn't look deeply, but I dont see any code that assumes the structure (i.e. does a listing of s3://mybucket/com.foo.bar/*).

Thanks for taking a look at this @toddgardner


Usage with React Native AsyncStorage

I'm trying to save the store data to the AsyncStorage of my React Native application. Currently, it works well for store -> AsyncStorage data flow, since it's a simple Undux effect.
But how about loading data from the AsyncStorage and getting it back to the store? Is there an "on created" event that I can listen to, or something like that?
Haven't found anything similar in the docs. Thank you!

Hey @matheusgrieger! Can you explain a bit more what you mean by "loading data from the AsyncStorage and getting it back to the store" -- do you mean you want to update your Undux store any time AsyncStorage updates?
If so, we do something similar for the Undux doc site, to sync state to the URL and back. See https://github.com/bcherny/undux.org/blob/a4dc3180587688e4fec3abffbb90b1d3fe600470/src/services/hashSync.ts.
Does that help?

I see - there’s a few good ways to do that.  The best approach depends on what exactly that API looks like.

It can be whatever we want: from individual key/value pairs, to a whole object with all the data. Here is the code running in my app right now:
export default Store.withStore(
  class StoreLoader extends React.Component {
    componentDidMount() {
      this.loadStoreData();
    }

    loadStoreData = async () => {
      const { store } = this.props;

      const promises = [
        AsyncStorage.getItem('user'),
        // there are a few others here that have been removed for brevity
      ];
      const [user] = await Promise.all(promises);

      // here there would be a call to .set() for every promise resolved
      // not ideal, but it's working
      store.set('user', user);

      this.onLoaded(store);
    };

    onLoaded = (store) => {
      const { onLoaded } = this.props;
      onLoaded(store);
    };

    render() {
      return null;
    }
  },
);

This component gets rendered when the application opens, before anything else.

Thanks for sharing your code! What you probably want to do here is instead of wrapping StoreLoader with withStore, update StoreLoader’s render method to:
return <Container initialState={{...initialStoreState, this.state.stateFromAsyncStorage}}>
{this.props.children}

Where initialStoreState is the initialState you defined for your Undux store, and stateFromAsyncStorage is the initial state you loaded from AsynStorage.
Does that make sense? Pardon the formatting, I’m on my phone.

Hmm, that seems interesting. The way it works right now is that this StoreLoader component gets swapped by our AppNavigator once it finishes loading, but the Container stays still in place wrapping both components.
This approach is very interesting, indeed. Thank you!


Added a show method to the controller. Added a new view called actor.…

…php. Replaced the old picture with a jpeg one
Signed-off-by: Niko Arellano<EMAIL_ADDRESS>

Nicely DONE!


HDF5 Error while trying to start a scan

Hello,
while trying to start a scan I have met a strange hdf5 error:
File "c:\users\lmsc\documents\git\pymodaq\src\pymodaq\daq_scan.py", line 1571, in start_scan
    self.h5saver.add_det_group(self.h5saver.current_scan_group,
  File "c:\users\lmsc\documents\git\pymodaq\src\pymodaq\daq_utils\h5modules.py", line 1735, in add_det_group
    group = self.add_incremental_group('detector', where, title, settings_as_xml, metadata)
  File "c:\users\lmsc\documents\git\pymodaq\src\pymodaq\daq_utils\h5modules.py", line 1719, in add_incremental_group
    self.set_attr(group, 'settings', settings_as_xml)
  File "c:\users\lmsc\documents\git\pymodaq\src\pymodaq\daq_utils\h5modules.py", line 550, in set_attr
    return set_attr(node, attr_name, attr_value, self.backend)
  File "c:\users\lmsc\documents\git\pymodaq\src\pymodaq\daq_utils\h5modules.py", line 138, in set_attr
    node._v_attrs[attr_name] = JsonConverter.object2json(attr_value)
  File "C:\Users\LMSC\miniconda3\envs\pmd_pll_dev\lib\site-packages\tables\attributeset.py", line 556, in __setitem__
    self.__setattr__(name, value)
  File "C:\Users\LMSC\miniconda3\envs\pmd_pll_dev\lib\site-packages\tables\attributeset.py", line 478, in __setattr__
    self._g__setattr(name, value)
  File "C:\Users\LMSC\miniconda3\envs\pmd_pll_dev\lib\site-packages\tables\attributeset.py", line 420, in _g__setattr
    self._g_setattr(self._v_node, name, stvalue)
  File "tables/hdf5extension.pyx", line 711, in tables.hdf5extension.AttributeSet._g_setattr
    raise HDF5ExtError("Can't set attribute '%s' in node:\n %s." %
tables.exceptions.HDF5ExtError: HDF5 error back trace

  File "C:\Users\VssAdministrator\AppData\Local\Temp\tmpdze8u987\hdf5-1.12.1\src\H5A.c", line 298, in H5Acreate2
    unable to create attribute
  File "C:\Users\VssAdministrator\AppData\Local\Temp\tmpdze8u987\hdf5-1.12.1\src\H5VLcallback.c", line 988, in H5VL_attr_create
    attribute create failed
  File "C:\Users\VssAdministrator\AppData\Local\Temp\tmpdze8u987\hdf5-1.12.1\src\H5VLcallback.c", line 955, in H5VL__attr_create
    attribute create failed
  File "C:\Users\VssAdministrator\AppData\Local\Temp\tmpdze8u987\hdf5-1.12.1\src\H5VLnative_attr.c", line 75, in H5VL__native_attr_create
    unable to create attribute
  File "C:\Users\VssAdministrator\AppData\Local\Temp\tmpdze8u987\hdf5-1.12.1\src\H5Aint.c", line 268, in H5A__create
    unable to create attribute in object header
  File "C:\Users\VssAdministrator\AppData\Local\Temp\tmpdze8u987\hdf5-1.12.1\src\H5Oattribute.c", line 317, in H5O__attr_create
    unable to create new attribute in header
  File "C:\Users\VssAdministrator\AppData\Local\Temp\tmpdze8u987\hdf5-1.12.1\src\H5Omessage.c", line 205, in H5O__msg_append_real
    unable to create new message
  File "C:\Users\VssAdministrator\AppData\Local\Temp\tmpdze8u987\hdf5-1.12.1\src\H5Omessage.c", line 1847, in H5O__msg_alloc
    unable to allocate space for message
  File "C:\Users\VssAdministrator\AppData\Local\Temp\tmpdze8u987\hdf5-1.12.1\src\H5Oalloc.c", line 1291, in H5O__alloc
    object header message is too large

End of HDF5 error back trace

Can't set attribute 'settings' in node:
 /Raw_datas/Scan000/Detector000 (Group) ''.

I have the feeling that it is due to the large number of settings that the detector has (several dozens, maybe 50). Is it possible ? Any hint on what I could do to get around the issue?
Cheers
Nicolas

There is a maximum size that can be stored as metadata of a given specific node. It is therefore probably what you suggest. I never had so many settings but at some point was saving all positions of a tabular scan and ended with this issue.
Do you have the need of all the settings? I would "comment" some of them if not needed. Otherwise we could modify the code base to pass this error and not save the settings...

Many thanks for the reply, good to know that this limitation exist.

Do you have the need of all the settings?

Definitely not the need but I wasn't aware of such limitation so I coded the plugin to automatically detect and create settings for the device at initialisation, so they're all there now. It seemed smart then... I'll find a way to get rid of those that are not needed

Quick update, it worked.
Thank you for the insight, I added a mode to the plug-in that only loads basic settings at initialisation.
Closing this now


Package size is large. Can external deps be downloaded at install time?

The project I'm working on currently uses WiX ToolSet to create an MSI and then Bundle it.
MSI contains the .Net Core Desktop app and the bundle contains URLs for dependencies: SQL Server LocalDB and .Net Core Runtime for Desktop.
Since the .Net Core Desktop app is not compiled as a standalone project and the dependencies are not included in the bundle, but are downloaded at installation time, the size of the installation is under 10 MB. Package size becomes 60MB just for a minimal XAML Islands sample
Switching to MSIX, it seems that the installation must contain all Framework dependencies and not even sure if there is a way to install LocalDB from here.
Is there anything that can be done to reduce the package size?

Hi @virzak, could you please clarify your question?
Assuming that packages exist for everything you've listed, then a .appinstaller file would be similar to what you have in an MSI. https://docs.microsoft.com/en-us/windows/msix/app-installer/app-installer-file-overview

@samiranshah will try to clarify in reverse order
Dependencies
The software I am trying to install depends on SqlLocalDB.msi. It is possible to add it at install time using <Dependencies> (or another) node? It doesn't look like it has ever been added to any .appinstaller file as of now.
Framework-dependent installation
When XAML Islands sample is published, the MSIX archive contains large assemblies (PresentatioFramework.dll in the image below), which are part of .NET Desktop Runtime. It makes the MSIX unnecessarily large instead of being able to just ensure that the framework is installed. Perhaps @marb2000 can weigh in?

AppInstaller files do not support unpackaged dependencies like and MSI.  I can't really speak to any history or reasoning behind the .Net assemblies being that or any package.

@JohnMcPMS any suggestion on using MSIX with MSI dependencies at all? Perhaps through a custom script? Or having an MSI dependency us a showstopper for MSIX?

There is some form of custom action support in MSIX, although it is limited.  I'm not very familiar with it though.  You might be able to leverage that to retrieve files from outside of the package.
Have you tried any of the options here?
https://docs.microsoft.com/en-us/windows/msix/packaging-tool/create-an-msix-overview

@virzak you could provide feedback to the Visual Studio here and file an item to package .Net assemblies https://docs.microsoft.com/en-us/visualstudio/ide/feedback-options?view=vs-2019

@samiranshah the questions have nothing to with Visual Studio or any other IDE.
I appreciate that when .Net 5 or another target framework gets packaged into MSIX, that should probably be asked at https://github.com/dotnet/runtime.
However MSI and EXE prerequisites should be addressed in the "samples" folder of this repo, IMO. That's unless achieving that with MSIX is currently unattainable and there is no plan on providing this feature. If that's the case this issue should be closed.
There are lots of opensource projects on GitHub  which use WiX bundles, which achieves exactly that - install prerequisite or dependency prior to the main product installation.

AppInstaller files do not support unpackaged dependencies like and MSI. I can't really speak to any history or reasoning behind the .Net assemblies being that or any package.


Add UnboundedReadFromBoundedSource, and use it in Dataflow runner

This PR will make Dataflow streaming runner work with BoundedSources, such as TextIO and AvroIO.

R: @dpmills
R: @dhalperi
CC: @tgroh

PTAL
(Jenkins is seems broken for unrelated reasons.)

LGTM after null fix
@dpmills @dhalperi

PTAL

@dhalperi feedback?

@dpmills you didn't LGTM this --  can you take a detailed review (or LGTM if done)?

@peihe done for now. Looking good, but I did not review the main UnboundedSource/Reader because I didn't understand the impl.
Take a detailed commenting pass and bounce back?
Thanks!

Thanks @dhalperi
PTAL

PTAL

looks great! Just a few cleanup comments.

Ready to review

LGTM

Minor fixes, ping me when it's green to merge this and the other PR.

Addressed comments, and rebased for conflicts.

Doesn't build, for checkstyle but also more fundamentally for the issue identified above. Let's discuss tomorrow.

LGTM. Will merge when green.


Celebration when lock-in

Oak seems to be having problems serving video content...
Let's use Caddy fileserver for now. This can be addressed until the next softfork.


One time task with Bosh

Is it possible to have a job that does a one-time task and exit(spawn a VM, run the process and exit)?. I know there is a concept called "errands" where you can have a one time task. But is it possible to have a Bosh release which only has errands and no long-running job?.

Hi @ThilinaManamgoda,
yes it is possible. See the documentation about errands https://bosh.io/docs/errands/. Please use bosh channel in https://slack.cloudfoundry.org next time for questions.

@beyhan Thanks. I'll use Slack for further questions.


TS: fix missing this type in method declarations

For method declarations, the this parameter was not included when converting the TypeScript AST to our AST.

Fixes https://jira.semmle.com/browse/ODASA-7792


Wrong TS types

Expected behavior and actual behavior
The project has a file, where is the wrong typing (group field) subject to the use of this model in this file (toTransactionStatus method). It says that the field must be of type enum, but in fact it is one of the enum values
Steps to reproduce the problem
import { RepositoryFactoryHttp } from 'symbol-sdk'

const repositoryFactory = new RepositoryFactoryHttp('http://wolf.importance.jp:3000')
const transactionStatusRepository = repositoryFactory.createTransactionStatusRepository()
transactionStatusRepository.getTransactionStatus('30F03BB1E2D422C19E1DEBFFB21C046EF8CD9FB32F5FF7C1A9235792162D20B1').subscribe(transactionStatus => {
    console.log(transactionStatus.group) // check console value and type in TS
})

Specifications like the version of the project, operating system, or hardware

sdk version: 1.0.2

Hi @IgnatLomkov , I couldn't reproduce the issue. Could you show the logs?

Hi, @Fboucquez, you probably do not fully understand me. If you do not consider the use of transactionStatus.group in other files, then there is correct typing. Code in this comment gives me "confirmed". But type TransactionGroupEnum cannot be applied in other parts of the sdk adequately. Let's say I want to perform such an action:
import { TransactionGroupEnum } from 'symbol-openapi-typescript-fetch-client'
import { RepositoryFactoryHttp } from 'symbol-sdk'

const repositoryFactory = new RepositoryFactoryHttp('http://wolf.importance.jp:3000')
const transactionRepository = repositoryFactory.createTransactionRepository()
const transactionStatusRepository = repositoryFactory.createTransactionStatusRepository()
transactionStatusRepository.getTransactionStatus('30F03BB1E2D422C19E1DEBFFB21C046EF8CD9FB32F5FF7C1A9235792162D20B1').subscribe(transactionStatus => {
    console.log(transactionStatus.group) // will output "confirmed"
    if(transactionStatus.group === TransactionGroupEnum.Failed) return
    transactionRepository.getTransaction('30F03BB1E2D422C19E1DEBFFB21C046EF8CD9FB32F5FF7C1A9235792162D20B1', transactionStatus.group) // TS error, but "Failed" excluded
        .subscribe(fullTransaction => console.log(fullTransaction))
})

There may of course be such a workaround, but it's still not what you want to use:
import { TransactionGroupEnum } from 'symbol-openapi-typescript-fetch-client'
import { RepositoryFactoryHttp, TransactionGroup } from 'symbol-sdk'

const repositoryFactory = new RepositoryFactoryHttp('http://wolf.importance.jp:3000')
const transactionRepository = repositoryFactory.createTransactionRepository()
const transactionStatusRepository = repositoryFactory.createTransactionStatusRepository()
transactionStatusRepository.getTransactionStatus('30F03BB1E2D422C19E1DEBFFB21C046EF8CD9FB32F5FF7C1A9235792162D20B1').subscribe(transactionStatus => {
    console.log(transactionStatus.group) // will output "confirmed"
    if (transactionStatus.group === TransactionGroupEnum.Failed) return
    transactionRepository.getTransaction('30F03BB1E2D422C19E1DEBFFB21C046EF8CD9FB32F5FF7C1A9235792162D20B1', transactionStatus.group as unknown as TransactionGroup)
        .subscribe(fullTransaction => console.log(fullTransaction))
})

The same typing inconsistency exists in other parts of the sdk

Thanks @IgnatLomkov , you are right. We should split the TransactionGroupEnum with and without Failed. Failed value is not a valid value when searching or loading transactions.


Center floating label position on focus

Hi
Is there a way to center the floating label once the text input is focused?
Thanks

Right now, it's not possible because the material kit specification doesn't allow that.

What about RTL support?


Allow to disable multi-selections

Add an option to the configuration JSON which allows to disable multi-selections.

part of latest release_1 branch