Naming of extension

Hey @m-mohr
This would certainly be pretty handy!
One thing I'm pondering is the name of web-map-links - that name might imply that it takes you to a web-map of the item or collection. It also implies that WMTS and XYZ are related specifically to web maps, but it could also be relevant for other client software like QGIS etc.
So I'm wondering if a better name might be something along the lines of spatial-api-links, to me that feels a bit less ambiguous.
Anyway just a suggestion :)

Thanks @rowanwins for the feedback.
I agree that this could be misleading and people may think this leads to a map, although the name of this extension will only be visible to devs and not to end-users.
I don't think spatial-api-links is a better term though as this seems to generic. Focus of the extension is getting information transmitted for visualizations on web mapping libraries such as Leaflet, OpenLayers and Mapbox JS.
Thinking about it a bit more: These libraries usually call the entity that is using the information provided by the extension a "source". So maybe it helps if we simply rename to something like "web-map-source-link" or so?

I agree that spatial-api-links is too generic, unless we're thinking of including OGC API - Features, and maybe even WFS/WCS. Though those are potentially useful to link to. But if the scope is wmts/xyz/tilejson/ogcapi-tiles then I think web-map-links is decent. Could call it tiled-map-api-links or something. But I think QGIS users understand they're accessing web maps, indeed WMTS means web map tile service already.


Any progress on 1.20.3/1.20.4?

I'm just waiting so that I can update my game to 1.20.4 while still having all my mods, including this one.
😀

It's being worked on. Please be patient.

ight, imma wait, meanwhile imma stickw ith 1.20.2 because this is one of my favorite mods ;)


WIP: (do not merge!) beginning of new tutorial suite

I'll fill this in later, but I wanted to give you an idea of what I'm thinking here @danielhuppmann

Ok, answers to your questions inline. I would propose the following:

move add_spatial_sets to ixmp.Scenario
add default required sets/params to be set in ixmp before solve (e.g., firstmodelyear)
either keep vintage_and_active_years years and make_df here or move to ixmp

vintage_and_active_years can be expanded in the future with kwargs that subset the years to return

Thoughts?

closing in favor of #27


Sync

I am using this application a few days ago .
Because I gives help for this application because I want to develop .
But I could not progress forward. Please help me.
I am currently faced with the problem of synchronization.
I do not know how to be successful in the synchronization fails.
This problem had been solved some time , but now the issues have been raised again.
I do not know how to solve. Thank you kindly answer .

Unless you have an actual issue with reproduction steps, as required in the issue template, please do not raise an issue and instead ask questions on behaviour on the K-9 mailing list: https://groups.google.com/forum/#!forum/k-9-mail


Add support for DoubleProperty

Adds support for DoubleProperty, which is missing per #5. I ran test-resave with the the save file attached to that bug, but I haven't tried editing the value and verifying it in-game. I can do that tomorrow if necessary.
I'm very new to Rust, so please let me know if I made any mistakes.

This is now redundant due to 64e74aa


Minor taurus docker image updates

Signed-off-by: Rick Stevens<EMAIL_ADDRESS>

A couple minor changes to the taurus docker image used for cohort engine test automation.

Removed use of javabridge which we are no longer using
Updated docker image name
Updated version of k8s referenced in dockerfile


Fluentd is not parsing json logs properly when sending to Sumologic

Hey, I'm using the fluentd-kubernetes-sumologic plugin to send log data from my Kubernetes cluster to Sumologic. The Kubernetes logs are in Json format, however when they get to Sumologic they get sent line by line instead of in one json message. This ends up sending a very large number of logs which eventually exceeds my Sumologic quota and causes a 429 throttling error whenever I run the fluentd Daemonset. How can I configure fluentd to send the logs in the correct format/set a limit on the amount of logs that can be sent?
my fluentd.yaml file is configured as follows:
apiVersion: v1
kind: ServiceAccount
metadata:
name: fluentd
namespace: kube-system

---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: fluentd
namespace: kube-system
rules:
- apiGroups:
- ""
resources:
- namespaces
- pods
verbs:
- get
- list
- watch

---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: fluentd
namespace: kube-system
roleRef:
kind: ClusterRole
name: fluentd
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: fluentd
namespace: kube-system

---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: fluentd-sumologic
namespace: kube-system
labels:
app: fluentd-sumologic
version: v1
spec:
template:
metadata:
labels:
name: fluentd-sumologic
spec:
serviceAccountName: fluentd
volumes:
- name: pos-files
hostPath:
path: /var/run/fluentd-pos
type: ""
- name: host-logs
hostPath:
path: /var/log/
- name: docker-logs
hostPath:
path: /var/lib/docker
containers:
- image: sumologic/fluentd-kubernetes-sumologic:latest
name: fluentd
imagePullPolicy: Always
volumeMounts:
- name: host-logs
mountPath: /mnt/log/
readOnly: true
- name: host-logs
mountPath: /var/log/
readOnly: true
- name: docker-logs
mountPath: /var/lib/docker/
readOnly: true
- name: pos-files
mountPath: /mnt/pos/
env:
- name: COLLECTOR_URL
valueFrom:
secretKeyRef:
name: sumologic
key: collector-url
- name: EXCLUDE_NAMESPACE_REGEX
value: kube-system
- name: LOG_FORMAT
value: json
tolerations:
- effect: "NoSchedule"
key: "node-role.kubernetes.io/master"

@directeam did you try the above suggestions?


Allow timepicker to have range dates in reverse order

First of all thank you for providing such a nice component.
I would very much appreciate if I could do the following in timepicker:
20:00 - 04:00 (from 8pm to the next day until 4am)
In short it does not allow me to have Time A > Time B
You can actually force it with textinput prop (might not be intended, let me know if I should open an issue for that)
Best Regards

I don't know, this happens because it is the same date in range. If you set one for today and one for tomorrow, you can select the needed time

Exactly! The issue being in Timepicker you can only select a time, not a date.
The use case would be for example setting up a daily night shift that starts at 20:00 and ends at 4:00. A Datetimepicker would only do the job for one day while it would be useful to have it every day, therefore the use of Timepicker instead.
Thank you very much for your taking the time to read my request. It would be nice to have a prop giving us more control over this date order check in range mode, at least for the Timepicker.

Awesome! Thank you very much. Looking forward to the next update.


fix(filter): Use regex to match filter field:value in query

Note: If there are pending changes to the PR, prefix the PR title with "WIP" and add the label "DO NOT MERGE"
Mandatory

[ ] What does this PR do?
This PR fixes https://github.com/openshiftio/openshift.io/issues/3643

[ ] What issue/task does this PR references?

[ ] Are the tests Included?

Optional

[ ] Is the documentation Included?

[ ] Are the Release Notes included?

[ ] @mention(s) to expected reviewer(s) included

Ike Plugins (test-keeper)
Thank you @jarifibrahim for this contribution!

It appears that no tests have been added or updated in this PR.
Automated tests give us confidence in shipping reliable software. Please add some as part of this change.
If you are an admin or the reviewer of this PR and you are sure that no test is needed then you can use the command /ok-without-tests as a comment to make the status green.
Your plugin configuration is stored in the file.

@jarifibrahim Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2657 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2657 and visit http://localhost:5000 to access it.

@jarifibrahim Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2657 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2657 and visit http://localhost:5000 to access it.


Add dark mode and OLED mode

Finally following up to my reddit post (8 months ago!) can be seen here
I have since lost both my backup and my running server SD card corrupted. I finally got time and am now going to remake both color modes, in a better way even.
Development will be a little slow, as i am doing this during my free time. Though i hope when i get it done, i can at least make someone happy (for those who don't like light mode :3). I am not using the node dashboard myself, so if anyone does and would like to test it, that would be greatly appreciated.
Have a nice day!
Task Manager

[x] CSS overrides for dark mode
[x] CSS overrides for OLED mode
[x] Logic (suggestions would be great)
[ ] Combine common CSS rules (+ clean them up a little)
[ ] Do the same for the node dashboard

Things where i'd like some more input
OLED mode table layout
I have 4 possible ways of laying out the tables. OLED mode focusses on pure black UI elements, so here are 4 options i am considering
Option 1: No stripes, division lines

Option 2: Stripes, no division lines

Option 3: Stripes, division lines

Option 4: No stripes, no division lines (I find this one hard to read, honestly can't recommend this one

Client Info button
Would you guys prefer the 'info' button to remain blue, or do i adapt it to the dark and OLED color scheme?

Switching modes
Do i add a button to cycle trough the color modes (if so, where would be ideal to not conflict with other UI elements), or do i update it trough the console like a change

Most of the things are done now. I'd like some feedback/input on the 3 items in the PR description. Once i get those last bits of info i can finalise and tidy up the CSS and do the possible additions for theme switching.
73!

Please finish all changes you want to merge and then only send 1 final pull
request.
On Wed, Jul 14, 2021, 15:45 Maxim Coppieters @.***>
wrote:

Most of the things are done now. I'd like some feedback/input on the 3
items in the PR description. Once i get those last bits of info i can
finalise and tidy up the CSS and do the possible additions for theme
switching.
73!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sharkrf/srf-ip-conn-srv/pull/12#issuecomment-879905844,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADAIHPNUY65BGTJ7NA6ZJ3TXWIH3ANCNFSM5AFG6JLA
.


Publish Client alternative for 10.3 and 10.3.1

Hi folks,
When can we expect the Desktop Publish Client 10.3.1 to be released? Until then,  what is the 10.3 alternative?
Thanks,
Carlos.

hi Carlos, we are looking to release geoportal server 1.2.6 within the next weeks. that release will also include updated desktop clients.


What does the argument for Diminuendo/Crescendo represents?

Is it the final note velocity?
Also, would it be possible to create a more expressive alias, a la Dur?
Thanks!

The argument is a percentage increase/decrease governed by the length of the entire value, not the final velocity. Here you can see the effect with Diminuendo (I've formatted the ghci output a bit to make it more readable). Notice what happens to the volumes at the MEvent level, which is what a Music value is processed into just before heading to MIDI output.
Prelude Euterpea> m = line [c 4 qn :+: e 4 qn :+: g 4 qn :+: c 4 qn]
Prelude Euterpea> mp = phrase [Dyn (Diminuendo 0.5)] m
Prelude Euterpea> perform mp
[
MEvent {eTime = 0 % 1, eInst = AcousticGrandPiano, ePitch = 60, eDur = 1 % 2, eVol = 127, ...},
MEvent {eTime = 1 % 2, eInst = AcousticGrandPiano, ePitch = 64, eDur = 1 % 2, eVol = 111, ...},
MEvent {eTime = 1 % 1, eInst = AcousticGrandPiano, ePitch = 67, eDur = 1 % 2, eVol = 95, ...},
MEvent {eTime = 3 % 2, eInst = AcousticGrandPiano, ePitch = 60, eDur = 1 % 2, eVol = 79, ...}]
The volumes decrease to 79 rather than 64 because it does a simple linear interpolation over the entire duration of the value. So, if you used the argument 0.0 then the last note would still have a velocity >0 even if not by a lot.
When using Crescendo, it is important to first use addVolume to set the volume in some way so it is lower, as the default is 127. So, when working with dynamics, I recommend working with the types Music (Pitch,Volume) or Music (AbsPitch,Volume), as Crescendo, Accent, etc are not detectable from a default volume of 127.
Phrase modifiers are one of the lesser used parts of Euterpea, so they were not given other aliases to avoid namespace pollution. However, it would be easy to make your own functions to wrap them for a particular application. For example, you could redo the above example using such a function:
dim amt = phrase [Dyn (Diminuendo amt)]
mp = dim 0.5 m
While on the subject of creating custom things, I should note that it's also possible to define your own interpretations of these phrase modifiers. The HSoM library provides an easy way to do this via Players. In plain vanilla Euterpea you can also create your own algorithm for converting to MEvents, which can be supplied to the playC function (which takes a PlayParams value that has a bunch of things you can customize).

Forgot to thank you :). It worked just as you described.
Nice library, by the way.


HR data generator is broken and fails to generate large datasets

Thread bug on shared GregorianCalendar instance fixed.


vee-validate scoping for components not working with bootstrap-vue

Versions

vee-validate: 2.1.7
vue: 2.5.22

Describe the bug
Using vee-validate on an application together with bootstrap-vue. Yes, fieldsBagName is changed using:
Vue.use(VeeValidate, {   inject: true,   fieldsBagName: 'veeFields' });
Having a b-tabs with a component inside each b-tab. Each tab has forms with a common  scope.  The validation works great inside the component itself but outside using e.g. errors.any('salary'), there is no reaction. If i log errors  i can see salary in the result:
{ "vmId": 346, "items": [ { "id": "61", "vmId": 381, "field": "salary.baseSalary_0", "msg": "The salary.baseSalary_0 field is required.", "rule": "required", "scope": "salary" }, { "id": "62", "vmId": 381, "field": "salary.taxTable_0", "msg": "The salary.taxTable_0 field is required.", "rule": "required", "scope": "salary" } ] } Why is this?
using validator.validate() does not trigger the validation inside each component either.

Scopes are used to group fields within the same component, however, for cross-component validation, they need to have the same $validator instance, which can be done by letting them inherit it from their parent component using inject: ['$validator']
You can read more about that in the docs

Yes sure, forgot to mention that I of course already did have this on each komponent. :-|

Oh, could you provide a sample to reproduce this? codesandbox would be perfect.

Hi
Ok did provide a sample similar to what I wan't to accomplish.
Using Tabs here where the first tab contains forms directly and one containing a component. The tab header has a errors.any changing class and textcolor if any errors. This only works for Tab A and not Tab B.
Same experience using validator.validate() which will only affect Tab A
https://codesandbox.io/s/4l3494v380

Och that was an invalid link there https://codesandbox.io/s/z2lrpy81wx should hopefully do it!

Sorry for being late to respond, the problem is when using a component based UI library, that the $validator injection will not work properly, there are a few ways to resolve that:

Disable automatic injection using { inject: false } when configuring vee-validate.
Add $_veeValidate config object on the component that will serve as the validation context (or root form), with a validator prop set to 'new'.

  $_veeValidate: {
    validator: "new"
  },

What all of this does, is that it makes the validation context component is the only validator instance provider, forcing the children to only inject from it.
Here is an updated example
This is documented in the same link I provided.
In v3 I will make this much simpler to do.

@logaretm ! Amazing! Sorry acting support for me, it now works like charm! Keep up the good work!!!

Thanks @logaretm
For this, there was a reason we were using vee-validate 2.0 is this was causing issue with bootstrap vue.


how to hide/encrypt the video source in jwplayer?

I am using your script and it is great. I just want to make my jwplayer video src secure so any one can not stream my video or copy my video source. I have searched a lot but no success. Is it possible?

You can modify the code, get a jwplayer code and edit some variables

is this the answer? no technical information,no logic .What kind of answer is this? edit variables? which variable? what to do? strange answer.!!

I just created a script you can download it here https://github.com/ArdiArtani/Hash-URL


Error query all productos

Hi.
I have this error when get all product.
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.    at Newtonsoft.Json.JsonTextReader.ParseValue()    at Newtonsoft.Json.JsonReader.ReadAndMoveToContent()    at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)    at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)    at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)    at PortaCapena.OdooJsonRpcClient.OdooClient.CallAndDeserializeAsync[T](OdooRequestModel request)
This is the code.
Is it possible not to deserialize the response?
var repository = new OdooRepository<ProductModel>(odooConfig);
var products = await repository.Query().ToListAsync();

Try get model and save it one more time

Same error. It must be for the number of records or with a specific record. if I make the call with .Take (200) it works correctly

No. Problem is somewhere else. You have a corrupt record in the database nad odoo can not download it. Try to increase take count to find this one and delete it.

This is the error.
I have requested that they increase the timeout of nigix

How many products do you have in db?

Around 47,000 products. We have increased the timeout.
Calling jsonrpc directly, using only the fields I need, it responds in few seconds.

I have tried to create a model with only the fields and it still does not work

Ok, I have added SelectSimplifiedModel() in the call with the simplified model and now I only get the data I need and it does not skip the timeout
Thanks for the support.


Update debug push notification

What
Updated function that allows the user to see push notifications and fixed a bug where the notification isn't being shown if the app is active.
Why
This feature is very important to test the app behaviour when it receives push notifications.
note: The notification debug tool creates a LocalNotification to simulate a Remote Notification. So the notification you see after tapping In-App or Delayed on the Debug Screen is not a remote push notification, but just a simulation.
How
For iOS 10+, the function that creates the LocalNotification was updated to use UNMutableNotificationContent, UNNotificationRequest, and  UNUserNotificationCenter.current().add() function. We are still supporting UILocalNotification for iOS 9 devices, though.
To fix the alert message bug, the viewcontroller hierarchy was changed, in order to avoid the Warning: Attempt to present UIAlertController: whose view is not in the window hierarchy! error.
See 👀

 Delayed App notifications debug tool not working


[#1339] feat(jdbc-doris): Support Apache Doris Catalog

What changes were proposed in this pull request?
Support Apache Doris as a type of data source.
Why are the changes needed?
Fix: #1339
Does this PR introduce any user-facing change?
N/A
How was this patch tested?
UT & IT

@zhoukangcn
Is it ready for review?

@yuqi1129 yes, please review this PR. Thanks.

@yuqi1129 @diqiu50
I have updated the PR, please review if you are free.


Load Gradle task in other Gradle file

The tasks about deployment should be included in another file. (Optional)

Solution:
https://discuss.gradle.org/t/import-build-gradle-in-another-gradle-file/10673/2
apply from: 'build.gradle'

Fixed


[Bug] Built-in olm-spec-descriptors Scorecard test is failing

After the merge of the cryostat3 branch into main, this started failing:
2024-06-06T19:59:23.9902749Z /home/runner/work/cryostat-operator/cryostat-operator/bin/operator-sdk scorecard -n cryostat-operator-scorecard -s cryostat-scorecard -w 20m ghcr.io/cryostatio/cryostat-operator-bundle:ci-ceb2476d79d0d9b751ffcd31829e5ac867415d37 --pod-security=restricted
2024-06-06T20:04:21.0721592Z --------------------------------------------------------------------------------
2024-06-06T20:04:21.0727195Z Image:      quay.io/operator-framework/scorecard-test:v1.31.0
2024-06-06T20:04:21.0772557Z Entrypoint: [scorecard-test olm-spec-descriptors]
2024-06-06T20:04:21.0774565Z Labels:
2024-06-06T20:04:21.0775082Z 	"test":"olm-spec-descriptors-test"
2024-06-06T20:04:21.0848319Z 	"suite":"olm"
2024-06-06T20:04:21.0848964Z Results:
2024-06-06T20:04:21.0849776Z 	Name: olm-spec-descriptors
2024-06-06T20:04:21.0850559Z 	State: fail
2024-06-06T20:04:21.0850804Z
2024-06-06T20:04:21.0851157Z 	Suggestions:
2024-06-06T20:04:21.0851770Z 		Add a spec descriptor for minimal
2024-06-06T20:04:21.0852632Z 	Errors:
2024-06-06T20:04:21.0853030Z 		minimal does not have a spec descriptor
2024-06-06T20:04:21.0878998Z 	Log:
2024-06-06T20:04:21.0879995Z 		Loaded ClusterServiceVersion: cryostat-operator.v3.0.0-dev
2024-06-06T20:04:21.0880864Z 		Loaded 2 Custom Resources from alm-examples
2024-06-06T20:04:21.0881160Z
2024-06-06T20:04:21.0881165Z
2024-06-06T20:04:21.0881414Z --------------------------------------------------------------------------------

Not sure why yet.

Since it's referencing minimal I wonder if it's related to https://github.com/cryostatio/cryostat-operator/pull/852 / https://github.com/cryostatio/cryostat-operator/pull/851

Looks like #852 did that. I wonder if the order also needs adjusting the bundle CRD manifest.

I think this might just be a bug on the operator-sdk side. Internally, the scorecard will find the FIRST matching (by kind) owned CRD in the CSV to validate the CR in alm-example annotation.
https://github.com/operator-framework/operator-sdk/blob/0d54bbd94a395a7fe8bd6e9d37229408b555bdfe/internal/scorecard/tests/olm.go#L280-L319
This means both v1beta1 and v1beta2 CR in alm-examples are validated against the first CRD def. In this case, it is v1beta2, which does not have minimal spec descriptor. Even before #852, both CRs are validated against v1beta1.

One way around this is to include only example for v1beta2 in alm-examples. Is this OK to do for the time being?

I think this might just be a bug on the operator-sdk side, similar to openshift/console. Internally, the scorecard will find the FIRST matching (by kind) owned CRD in the CSV to validate the CR in alm-example annotation.
https://github.com/operator-framework/operator-sdk/blob/0d54bbd94a395a7fe8bd6e9d37229408b555bdfe/internal/scorecard/tests/olm.go#L280-L319
This means both v1beta1 and v1beta2 CR in alm-examples are validated against the first CRD def. In this case, it is v1beta2, which does not have minimal spec descriptor. Even before #852, both CRs are validated against v1beta1 (which passed for both).

Great job investigating that, @tthvo!

Oh thanks :D I reopened #868. Will open an bug report on the operator-sdk today.


Missing tests

The code is not tested in any way ... pretty dangerous I think.

Fixed some time ago, didn't see this issue before: https://github.com/apiaryio/cloudwatch-to-papertrail/tree/master/test


Extends the use of hasUpperCase and hasLowerCase function, adds new test cases

Extends use of hasUpperCase and hasLowerCase functions.
Adds new test cases

Thanks you so much for your time to contribute
Really appriciated.


“Data” table: include an “Audio” column

“Data” table: include an “Audio” column in the same manner as “Video”.

all set, along with 2 new columns in Data table in AT. Just 4 more and we've got a nice even 50 😹


Can't create first mirror?

I'm on Ubuntu 14.04 (as ubuntu 12.04's requests was too old), with gitlab 7.11.4-ee.
The mirrors group already exists, and is empty.
Creating my first mirror fails like this:
$ ./add_mirror.sh --git --project-name zarg --mirror git.blarg.com:/git/repo/zarg
Resolving gitlab remote.
Traceback (most recent call last):
File "lib/manage_gitlab_project.py", line 109, in
found_project=createproject(project_name)
File "lib/manage_gitlab_project.py", line 98, in createproject
new_project=git.group(found_group.id).transfer_project(new_project.id)
File "build/bdist.linux-x86_64/egg/gitlab3/init.py", line 248, in fn
File "build/bdist.linux-x86_64/egg/gitlab3/init.py", line 418, in _post
File "build/bdist.linux-x86_64/egg/gitlab3/init.py", line 435, in _request
File "build/bdist.linux-x86_64/egg/gitlab3/init.py", line 411, in _check_status_code
gitlab3.exceptions.ForbiddenRequest: URL: https://gitlab.blarg.com/api/v3/groups/74/projects/254, Data: {}
Creating the group manually via the gitlab interface and then repeating that command seems to work around the problem.

The group needs to exist first and then assign the gitmirror user owner of the group.

Currently group creation in normal and intended to be sure the user wishes to mirror to said group.

This may change at a later date with #73.


change migration workflow to use order_id

changes to migration workflow

[ ] Remove SERVICE_MIGRATE table
[ ]  Extend ServiceOrderType with MIGRATE
[ ] When MigrateRequest is received - create the workflow and add the service_order with type MIGRATE and WORKFLOW_ID with the activiti process instance ID.
[ ] Deploy and destroy to directly call the 'deploy' and 'destroy' methods on the ServiceDeployApi controller class.
[ ] Extend the deploy and destroy methods with parameters - parentOrderId and workflowId. These parameters must be hidden using @Parameter(hidden = true). This means the parameters are not visible in the REST API. but will be used only by our internal calls.
[ ] Use the parentOrderId and workflowId to generate SERVICE_ORDER entry with extra details but does the same steps as regular deploy and destroy.
[ ] Take UserId from the parentOrderId
[ ] Delete all extra methods written specially to handle migration requests.
sequence diagram - https://www.mermaidchart.com/raw/a964c8cb-e99e-4040-bcdc-656593c43a31?theme=light&version=v0.1&format=svg

I will take it


[FLINK-6808] Implement compatibility methods for CoGroupedStreams.UnionSerializer

Thanks for the review 😄
There was a checkstyle violation; will merge after another Travis run.


chore: convert error test to TypeScript

There also seems to be a test for it here:
freecodecamp\client\src\utils\handled-error.test.ts


Because classic portal already not available we need to update "will" on "was"

We need something like "was" instead of "will", because classic portal already retired and migration already done.
"The classic portal for StorSimple is deprecated. Your StorSimple Device Managers will automatically move to the new Azure portal as per the deprecation schedule. You will receive an email and a portal notification for this move. This document will also be retired soon. For any questions regarding the move, see FAQ: Move to Azure portal.
"

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

ID: f3fe9a50-6f17-9899-cd2f-bd4f5029226c
Version Independent ID: 3843e1b3-a4f4-af77-4ae7-93c98892f13e
Content: Troubleshoot a deployed StorSimple device
Content Source: articles/storsimple/storsimple-troubleshoot-operational-device.md
Service: storsimple
GitHub Login: @SharS
Microsoft Alias: v-sharos

@SychevIgor Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.


Logic Problem with Exercise_06_19

Hi,
I think this statement is wrong: side1 + side2 > side3 || side1 + side3 > side2 || side2 + side3 > side1;
for example take the sides as follow:  side1 == 5, side2 == 21 and side3 == 6, there is no way to compute this value, even though the boolean isValid method, evaluates to true, which should evaluates to false!
I think this is the right statement: side1 + side2 > side3 && side1 + side3 > side2 && side2 + side3 > side1;
btw, this method could be written as follow too:
public static boolean isValid(double side1, double side2, double side3) {
        return side1 + side2 > side3 && side1 + side3 > side2 && side2 + side3;
    }

Hi,
A triangle with side side1 == 5, side2 == 21 and side3 == 6, is an impossible triangle. However,
the question asks that method isValid return true if the sum of any two sides are greater than the third side.
If side1 == 5, side2 == 21 and side3 == 6,
side1 + side2 = 5 + 21 = 26
26 is greater than 6 so the method must return true
Your method side1 + side2 > side3 && side1 + side3 > side2 && side2 + side3 > side1 returns false if the sum of any two sides is less than the third side, which i think is wrong.
This method could be written as follow:
public static boolean isValid(double side1, double side2, double side3) {
return side1 + side2 > side3 || side1 + side3 > side2 || side2 + side3;
}
keep up the coding and feel free to comment anytime!

Thanks man for the reply.
As you have stated, the question asks that method isValid return true if the sum of any two sides are greater than the third side, which means your code is completely correct, regarding what the question wanted.

No i am wrong and your completely correct.
I have been read the question wrong.
It must return true for all the tests so the && operator must be used instead of ||.
I will correct. Thanks.


Reorganize In Preparation for Extra Backgrounds

Hey there, I was just going to experiment with some UI update for the image countdown, and I ran into some code that I felt could benefit from a little bit of re-organization to make it easier to work with the backgrounds.
It essentially just moves all the separate variables used to track the background selection into an enum.
This is just my personal preference on organization, so totally fine if you don't like it!

It's indeed a better design choice!

When you've some time for implementing the multiple backgrounds feature, please let me know cause I've enjoyed your code and I'd love to work with you on implementing it cause I'd love to practice Rust more and unfortunately I'm not able to do that with my coworkers at my job(we use TypeScript).

When you've some time for implementing the multiple backgrounds feature, please let me know cause I've enjoyed your code and I'd love to work with you on implementing it cause I'd love to practice Rust more and unfortunately I'm not able to do that with my coworkers at my job(we use TypeScript).

Yeah, sure. :) I really love writing Rust. It's the language so far that's made me happiest out of Java, C#, Python, JavaScript, TypeScript, and Haxe.


feat: enable private tags mode customization

Context
In an effort to save and load measurement textBoxes for a customer I realized there's no seamless way of saving and loading private tags of SRs with OHIF as of now. This PR enables that by making use of the customizationService.

Changes & Results
There are no behavior or visual changes, except if you implement a customization.

Testing
Manual and functional testing.
Checklist
PR

[X] My Pull Request title is descriptive, accurate and follows the
semantic-release format and guidelines.

Code

[X] My code has been well-documented (function documentation, inline comments,
etc.)

Public Documentation Updates

[X] The documentation page has been updated as necessary for any public API
additions or removals.

Tested Environment

[X] OS: MacOS 14.0 (23A344)
[X] Node version: 18.16.1
[X] Browser: Chrome  119.0.6045.105

see my comments

@sedghi please review the updates

see my comments please

@sedghi please take another look after my new changes.


feat: Add missing chains to Cayenne

What
Add missing chains to Cayenne. Already added to the Cayenne box rpc-config.yaml & updated the node code: https://github.com/LIT-Protocol/lit-assets/pull/667

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Move UserApplication[Description|Id] to linera-base

Motivation
We'll use these in blobs soon
Proposal
Move them to linera-base
Test Plan
CI

#2416  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @andresilva91 and the rest of your teammates on  Graphite

Alternatively, we could move all the non-user-visible blobs (i.e. everything except data blobs) to linera-chain or linera-execution?

Merge activity

Aug 28, 1:25 PM EDT: @andresilva91 started a stack merge that includes this pull request via Graphite.


Kueue performance tests

This is an attempt to solve https://github.com/kubernetes-sigs/kueue/issues/45
The PR contains a Clusterloader configuration to test job admission latency and throughput. It also includes a wrapper script that automates test scenario execution and captures the results.
Please see more details in the README file.

/assign @alculquicondor

ok-to-test

/ok-to-test

@alculquicondor all the changes are squashed and ready for the final review. Please have a look.
This does not include any additional Prometheus-based measurements for Kueue. Let's merge this first.


RFC: Remove SendableMail and integrate lettre_email

Hi @amousset, I have two questions/proposals:
1. Remove SendableEmail
Is there a reason why I need to convert an Email into a SendableEmail prior to being able to send it? SendableEmail is basically just a copy of Email (all fields are just cloned or moved) and Email is consumed in the process. I can’t really see why this is and I think this is confusing (issues like #362 also show this). I’d propose to remove SendableEmail and send the Email struct directly.
2. Integrate lettre_email into the main crate
Is there a reason why the functionality of lettre_email is in a separate crate? This is also something that was confusing for me when I began using lettre. If you’re concerned that this would make lettre less flexible for usage with alternative crates that also create email messages, it could just become a new (default) feature. (Just like tokio 0.2 put all its components in different features.)

Hi @amousset, I have two questions/proposals:
1. Remove SendableEmail
Is there a reason why I need to convert an Email into a SendableEmail prior to being able to send it? SendableEmail is basically just a copy of Email (all fields are just cloned or moved) and Email is consumed in the process. I can’t really see why this is and I think this is confusing (issues like #362 also show this). I’d propose to remove SendableEmail and send the Email struct directly.

I agree.

2. Integrate lettre_email into the main crate
Is there a reason why the functionality of lettre_email is in a separate crate? This is also something that was confusing for me when I began using lettre. If you’re concerned that this would make lettre less flexible for usage with alternative crates that also create email messages, it could just become a new (default) feature. (Just like tokio 0.2 put all its components in different features.)

Definitely. Already done in https://github.com/lettre/lettre/commit/0f3f27fdb6da789e71200177df15353352df39df :)

Done in #380.


Hash router remove initial slash not working

Version
3.0.1
Reproduction link
https://github.com/kingofdelphi/vue-realworld-example-app/blob/master/src/router/index.js
Steps to reproduce

yarn install
yarn serve

What is expected?
Clicking on links should change the address bar properly.
Typing the address on address bar should route to the proper page.
Browser refresh should not change url i.e. url must stay same on browser refresh / reload.
What is actually happening?
Clicking on links is changing the address bar properly with proper route(this is expected behavior)
Typing the address on address bar doesn't route to the proper page.
Browser refresh should not convert /#url to /#/url ie do not add slash automatically.

I had successfully used react-router to solve the problems listed above, but I can't seem to get it to work with vue-router.

You need to put an initial path in your routes path: '/'

You need to put an initial path in your routes path: '/'

Hi, actually, I want to remove the / after /#. For example /#/user should be /#user

that's not possible, that would be the actual hash of the route, we need that slash to make the difference

that's not possible, that would be the actual hash of the route, we need that slash to make the difference

I've actually done this with react router. So, I know its possible.


Inserting Images - is this possible?

Basically i'm creating a report and want to jazz it up a bit with a logo or two.
Cant see any methods to do this in examples or in past/current issues.
Is it possible and i just missed it?
Would want to control the size, position etc of the image Inserted
Thanks

Indeed it is.
First you'll need to PassThru an ExcelPackage, then get a worksheet from that package (I used $overviewSheet because that is what I am working on rn.
Then do these 2 lines.
`$imagePath = (get-item "C:\Users\tester\Documents\Excel\Desert.jpg")
$image = $overviewSheet.Drawings.AddPicture("testImage", $imagePath)
$image.SetSize(20)
$image.SetPosition(5,0,5,0)`
The first line gets a physical image (From what I read this particular method only works with JPEGs), second line adds it to the particular worksheet. SetSize() sets the image to a percentage of it's original size. SetPosition sets the position of the image, 1st parameter is the row, second is row offset in pixels, third is column, fourth is column offset in pixels.

Great question @Penkethboy, thanks for the answer @jubejube56. Love the community.
This could be a nice feature to add to the overall library and make it easier to accomplish.

When I played with it earlier it seemed to have issues sizing the images I gave it. It doesn't size the image by the same ratio in X and Y dimensions. It's better at small sizes, 100% the image is scaled to 95% on Y and 62% on X …

Pretty sure it is:  from what I can see poking around in the file, it specifies cell and offset for opposite corners - these are the "from" and "to" properties of the image object , I'm guessing they're calculated with constants that don't work.

Ok as i'm new to using passthru - i must be missing something as i cant get this to work
My code
"$file = "$PSScriptRoot\ImageTest.xlsx"
$xlPkg =  Export-Excel $file -PassThru
$ws = $xlPkg.Workbook.WorkBook[1]
$ImagePath =  (get-item  "$PSScriptRoot\test.jpg")
$Image = $ws.Drawings.AddPicture("testImage", $imagePath)
$image.SetSize(20)
$image.SetPosition(5,0,5,0)
$xlPkg.Save()
$xlPkg.Dispose()"
Fails on the $image line with
"You cannot call a method on a null-valued expression.
At S:\Coding\PowerShell\TestExcel\MultipleTables.ps1:59 char:1

$Image = $ws.Drawings.AddPicture("testImage", $imagePath)

  + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
  + FullyQualifiedErrorId : InvokeMethodOnNull"

the image path is valid and get-item works fine

arrrrrrrrrrrrrh
Workbooks not workbook
:)

For reference png files work as well as jpg image files


Update 01 - itertools.product().py

Removed * on line 19.

Just took a review of the code and removed the star {*) on line 19


Kernel only works on GPU. Add support for CPU

How much difficult would it be to add support to CPU ? I can contribute if you provide guideline.

Thanks @okpatil4u for offering to help. Getting it to work on CPU is pretty straightforward, but making it fast is more involved. Here are the steps to get the CPU code to work:

change device here to 'cpu'
replace the schedule here with an empty schedule (remove lines 90-105 because they are GPU-specific)
follow scripts/cheatsheet.txt to run TVM docker container and compile the kernel
check longformer/lib/ directory to confirm the binaries were generated
add a unit test to confirm that the GPU output is the same as the CPU output

Now the more involved part; parallelizing the computation and making it fast. TVM has this nice tutorial that explains the TVM syntax for splitting a CPU computation into multiple smaller parallel jobs. I think the schedule that TVM implemented for batched_matmul here  might work well for our kernel, but it will require a few modifications to work (need to support a different input format). So between the tutorial and the batched_matmul schedule, you can write something that is fast enough.
As I said, the second part is more involved, so let's start with the first part first and leave speeding it up to another PR.

Thank you. I will give it a try.

I'll be rooting for you @okpatil4u 🙏

@okpatil4u @bratao, we just added a PyToch implementation of the sliding window attention that doesn't need the custom CUDA kernel (https://github.com/allenai/longformer/pull/27). Please give it a try and let me know if we still need this.

@ibeltagy will these lines 1 2 3 from trviaqa script create issues while running on CPU?

Yes, it won't work, but it is just a config in the script. Please try
trainer = pl.Trainer(gpus=None, distributed_backend=None,

I tried it already, but then I ran into below error
INFO:root:model and trainer restored from checkpoint: /content/longformer/triviaqa-longformer-large/checkpoints/_ckpt_epoch_4_v2.ckpt
Testing:   0% 0/1 [00:00<?, ?batch/s]THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=50 error=38 : no CUDA-capable device is detected
I am not sure why it is doing THCudaCheck

@Akshayextreme, I updated the script to use cpu, try the command line params:  --gpus "" --fp32. It seems to work fine and I didn't get the THCudaCheck error you mentioned. Can you post the full error log?

Here is complete error log. I have used the updated scripts.
Query : python -m triviaqa --save_dir /content/longformer --train_dataset /content/longformer/try-test-wikipedia.json --dev_dataset /content/longformer/try-test-wikipedia.json --gpus "" --num_workers 4 --max_seq_len 4096 --doc_stride -1 --save_prefix triviaqa-longformer-large --model_path /content/longformer/longformer-large-4096 --test --fp32
Logs :
2020-04-30 05:55:33.836144: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
INFO:transformers.tokenization_utils:loading file https://s3.amazonaws.com/models.huggingface.co/bert/roberta-base-vocab.json from cache at /root/.cache/torch/transformers/d0c5776499adc1ded22493fae699da0971c1ee4c2587111707a4d177d20257a2.ef00af9e673c7160b4d41cfda1f48c5f4cba57d5142754525572a846a1ab1b9b
INFO:transformers.tokenization_utils:loading file https://s3.amazonaws.com/models.huggingface.co/bert/roberta-base-merges.txt from cache at /root/.cache/torch/transformers/b35e7cd126cd4229a746b5d5c29a749e8e84438b14bcdb575950584fe33207e8.70bec105b4158ed9a1747fea67a43f5dee97855c64d62b6ec3742f4cfdb5feda
INFO:transformers.configuration_utils:loading configuration file /content/longformer/longformer-large-4096/config.json
INFO:transformers.configuration_utils:Model config {
"attention_dilation": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"attention_mode": "tvm",
"attention_probs_dropout_prob": 0.1,
"attention_window": [
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256
],
"autoregressive": false,
"finetuning_task": null,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 1024,
"ignore_attention_mask": false,
"initializer_range": 0.02,
"intermediate_size": 4096,
"layer_norm_eps": 1e-05,
"max_position_embeddings": 4098,
"num_attention_heads": 16,
"num_hidden_layers": 24,
"num_labels": 2,
"output_attentions": false,
"output_hidden_states": false,
"pruned_heads": {},
"torchscript": false,
"type_vocab_size": 1,
"use_bfloat16": false,
"vocab_size": 50265
}
INFO:transformers.modeling_utils:loading weights file /content/longformer/longformer-large-4096/pytorch_model.bin
Loaded model with config:
{
"attention_dilation": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"attention_mode": "tvm",
"attention_probs_dropout_prob": 0.1,
"attention_window": [
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256,
256
],
"autoregressive": false,
"finetuning_task": null,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 1024,
"ignore_attention_mask": false,
"initializer_range": 0.02,
"intermediate_size": 4096,
"layer_norm_eps": 1e-05,
"max_position_embeddings": 4098,
"num_attention_heads": 16,
"num_hidden_layers": 24,
"num_labels": 2,
"output_attentions": false,
"output_hidden_states": false,
"pruned_heads": {},
"torchscript": false,
"type_vocab_size": 1,
"use_bfloat16": false,
"vocab_size": 50265
}
/usr/local/lib/python3.6/dist-packages/pytorch_lightning/callbacks/pt_callbacks.py:224: UserWarning: Checkpoint directory /content/longformer/triviaqa-longformer-large/checkpoints exists and is not empty with save_top_k != 0.All files in this directory will be deleted when a checkpoint is saved!
f"Checkpoint directory {filepath} exists and is not empty with save_top_k != 0."
Namespace(attention_mode='sliding_chunks', attention_window=256, batch_size=8, dev_dataset='/content/longformer/try-test-wikipedia.json', disable_checkpointing=False, doc_stride=-1, epochs=30, fp32=True, gpus=None, ignore_seq_with_no_answers=False, lr=0.0001, max_answer_length=30, max_doc_len=4096, max_num_answers=64, max_question_len=55, max_seq_len=4096, model_path='/content/longformer/longformer-large-4096', n_best_size=20, no_progress_bar=False, num_workers=4, regular_softmax_loss=False, save_dir='/content/longformer', save_prefix='triviaqa-longformer-large', seed=1234, test=True, train_dataset='/content/longformer/try-test-wikipedia.json', val_every=0.2, val_percent_check=1.0, warmup=200)

#steps: 414930.0, #epochs: 30, batch_size: 8 <<<<<<<
/usr/local/lib/python3.6/dist-packages/torch/optim/lr_scheduler.py:82: UserWarning: Detected call of lr_scheduler.step() before optimizer.step(). In PyTorch 1.1.0 and later, you should call them in the opposite order: optimizer.step() before lr_scheduler.step().  Failure to do this will result in PyTorch skipping the first value of the learning rate schedule.See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate
"https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate", UserWarning)
reading file: /content/longformer/try-test-wikipedia.json
done reading file: /content/longformer/try-test-wikipedia.json
reading file: /content/longformer/try-test-wikipedia.json
done reading file: /content/longformer/try-test-wikipedia.json
reading file: /content/longformer/try-test-wikipedia.json
done reading file: /content/longformer/try-test-wikipedia.json
INFO:root:
Name  ... Params
0                                     model  ...  434 M
1                          model.embeddings  ...   55 M
2          model.embeddings.word_embeddings  ...   51 M
3      model.embeddings.position_embeddings  ...    4 M
4    model.embeddings.token_type_embeddings  ...    1 K
..                                      ...  ...    ...
464   model.encoder.layer.23.output.dropout  ...    0
465                            model.pooler  ...    1 M
466                      model.pooler.dense  ...    1 M
467                 model.pooler.activation  ...    0
468                              qa_outputs  ...    2 K

[469 rows x 3 columns]
INFO:root:model and trainer restored from checkpoint: /content/longformer/triviaqa-longformer-large/checkpoints/_ckpt_epoch_4_v2.ckpt
Testing:   0% 0/1 [00:00<?, ?batch/s]THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=50 error=38 : no CUDA-capable device is detected
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/content/longformer/triviaqa.py", line 704, in
main(args)
File "/content/longformer/triviaqa.py", line 697, in main
trainer.test(model)
File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/trainer.py", line 857, in test
self.fit(model)
File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/trainer.py", line 707, in fit
self.run_pretrain_routine(model)
File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/trainer.py", line 790, in run_pretrain_routine
self.run_evaluation(test=True)
File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/evaluation_loop.py", line 305, in run_evaluation
test)
File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/evaluation_loop.py", line 234, in evaluate
test)
File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/trainer/evaluation_loop.py", line 363, in evaluation_forward
output = model.test_step(*args)
File "/content/longformer/triviaqa.py", line 505, in test_step
output = self.forward(input_ids, input_mask, segment_ids, subword_starts, subword_ends)
File "/content/longformer/triviaqa.py", line 298, in forward
attention_mask=attention_mask)[0]
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/transformers/modeling_roberta.py", line 177, in forward
head_mask=head_mask)
File "/usr/local/lib/python3.6/dist-packages/transformers/modeling_bert.py", line 625, in forward
head_mask=head_mask)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/transformers/modeling_bert.py", line 346, in forward
layer_outputs = layer_module(hidden_states, attention_mask, head_mask[i])
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/transformers/modeling_bert.py", line 324, in forward
attention_outputs = self.attention(hidden_states, attention_mask, head_mask)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/transformers/modeling_bert.py", line 281, in forward
self_outputs = self.self(input_tensor, attention_mask, head_mask)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/content/longformer/longformer/longformer.py", line 140, in forward
attn_weights = sliding_chunks_matmul_qk(q, k, self.attention_window, padding_value=0)
File "/content/longformer/longformer/sliding_chunks.py", line 84, in sliding_chunks_matmul_qk
mask_invalid_locations(diagonal_attn, w, 1, False)
File "/content/longformer/longformer/diagonaled_mm_tvm.py", line 316, in mask_invalid_locations
affected_seq_len, beginning_mask, ending_mask = _get_invalid_locations_mask(w, d, autoregressive, input_tensor.device)
File "/content/longformer/longformer/diagonaled_mm_tvm.py", line 300, in _get_invalid_locations_mask
mask = _get_invalid_locations_mask_fixed_dilation(affected_seq_len, w, d)
File "/content/longformer/longformer/diagonaled_mm_tvm.py", line 294, in _get_invalid_locations_mask_fixed_dilation
return torch.stack(diagonals_list, dim=-1).cuda()
File "/usr/local/lib/python3.6/dist-packages/torch/cuda/init.py", line 179, in _lazy_init
torch._C._cuda_init()
RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at /pytorch/aten/src/THC/THCGeneral.cpp:50
Testing:   0%|          | 0/1 [00:03<?, ?batch/s]

Fixed. Can you check again?

It worked! Thanks!
I suggest to update cheatsheet to run pretrained TriviaQA large model with cpu

Hi,
Regarding the https://github.com/allenai/longformer  3. Run the model
The example given.
How might I run this small test case to run on CPU's ?
Many thanks in advance.

@Adrian-1234, maybe I am missing something but the example in the Readme already runs on CPU.

Hi,
I get no o/p from the test (apart from the warnings below):
$ python3 y.py        (y.py is exactly as per the example given)
/home/adrian/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/adrian/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/adrian/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/adrian/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/adrian/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/adrian/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
$
I was expecting it to print "Hello world!" once ?
I have pip installed the requirements.
Printing output and attention_mask I get:
tensor([[[-0.0487, -0.0083,  0.0357,  ..., -0.0348, -0.0800, -0.0212],
[-0.1541,  0.2812,  0.2079,  ...,  0.3218,  0.0356,  0.0424],
[-0.0806,  0.0276,  0.1017,  ..., -0.3952, -0.0781,  0.3135],
...,
[-0.0236,  0.0741, -0.0145,  ..., -0.0990, -0.0409, -0.0745],
[-0.0236,  0.0741, -0.0145,  ..., -0.0990, -0.0409, -0.0745],
[-0.0236,  0.0741, -0.0145,  ..., -0.0990, -0.0409, -0.0745]]],
grad_fn=)
tensor([[1, 2, 1,  ..., 0, 0, 0]])
Thanks.

I haven't seen the warning before but it looks like a known issue and it is discussed here.
The output and attention_mask are tensors of numbers as you get, not the string "Hello world!"

Ok, Thanks.   So they code is working correctly on CPUs then.

Won't fix now that we have the sliding_chunks implementation working on CPU.


tfca-348 - Updated PT for the API changes

Updated payment amount field type, payee type, and NINOs generated randomly.

The folder .bsp should be added to .gitignore since it is automatically generated by IntelliJ.


MST: fixed expired incoming state logic

Backport of https://github.com/hyperledger/iroha/pull/56

Need to figure out how to deal with the CI


Frame rate

Hi,
The  max frame  rate  I get from ros does not match  to the specs and the frame  rates I get from pylon Viewer. I have   tried the latest version of the software on  daA1280-54um, daA1600-60um and acA1920-150um.
The frame rate I get from  acA1920-150um is similar to what I get  if I set the Sensor Readout mode to Normal instead of Fast, thinking that they might be related.  From the pylon Viewer I get   55,61 and 150 fps  for  daA1280-54um, daA1600-60um and acA1920-150um respectively.
Another issue is how can we call user set's savings from RoS driver ?
You can see the logs below.
[ INFO] [1507797817.641419408]: No Device User ID set -> Will open the camera device found first
[ INFO] [1507797817.896556001]: Found camera with DeviceUserID N/A: daA1280-54um
[ INFO] [1507797817.998186892]: Cam has binning range: x(hz) = [1 - 2], y(vt) = [1 - 1].
[ INFO] [1507797817.998315158]: Cam has exposure time range: [10 - 1e+06] measured in microseconds.
[ INFO] [1507797817.998395708]: Cam has gain range: [0 - 18.0278] measured in dB.
[ INFO] [1507797817.998464220]: Cam has gammma range: [0.25 - 2].
[ INFO] [1507797817.998532050]: Cam has pylon auto brightness range: [25.5 - 255] which is the average pixel intensity.
[ INFO] [1507797817.998619946]: Cam supports the following [GenAPI|ROS] image encodings: ['Mono8'|'mono8'] ['Mono12'|'NO_ROS_EQUIVALENT']
[ WARN] [1507797817.998670233]: No image encoding provided. Will use 'mono8' or 'rgb8' as fallback!
[ WARN] [1507797818.128703051]: [] name not valid for camera_info_manger
[ INFO] [1507797818.154810623]: CameraInfoURL needed for rectification! ROS-Param: '/pylon_camera_node/camera_info_url' = '' is invalid!
[ WARN] [1507797818.154909389]: Will only provide distorted /image_raw images!
[ INFO] [1507797818.155640757]: Startup settings: encoding = 'mono8', binning = [1, 1], exposure = 13936, gain = 0, gamma = 1, shutter mode = default_shutter_mode
[ INFO] [1507797818.156033256]: Desired framerate 250.00 is higher than max possible. Will limit framerate to: 25.98 Hz
[ INFO] [1507797818.157779322]: Start image grabbing if node connects to topic with a frame_rate of: 25.9781 Hz
[ INFO] [1507797818.157937063]: Camera not calibrated
################################################################################
process[pylon_camera_node-2]: started with pid [23327]
[ INFO] [1507797886.810743783]: No Device User ID set -> Will open the camera device found first
[ INFO] [1507797887.072757470]: Found camera with DeviceUserID N/A: daA1600-60um
[ INFO] [1507797887.176956446]: Cam has binning range: x(hz) = [1 - 2], y(vt) = [1 - 1].
[ INFO] [1507797887.177075819]: Cam has exposure time range: [10 - 850000] measured in microseconds.
[ INFO] [1507797887.177157287]: Cam has gain range: [0 - 24.0143] measured in dB.
[ INFO] [1507797887.177244584]: Cam has gammma range: [0.25 - 2].
[ INFO] [1507797887.177313752]: Cam has pylon auto brightness range: [25.5 - 255] which is the average pixel intensity.
[ INFO] [1507797887.177400277]: Cam supports the following [GenAPI|ROS] image encodings: ['Mono8'|'mono8'] ['Mono12'|'NO_ROS_EQUIVALENT']
[ WARN] [1507797887.177450890]: No image encoding provided. Will use 'mono8' or 'rgb8' as fallback!
[ WARN] [1507797887.252042106]: [] name not valid for camera_info_manger
[ INFO] [1507797887.281953281]: CameraInfoURL needed for rectification! ROS-Param: '/pylon_camera_node/camera_info_url' = '' is invalid!
[ WARN] [1507797887.282034605]: Will only provide distorted /image_raw images!
[ INFO] [1507797887.282734670]: Startup settings: encoding = 'mono8', binning = [1, 1], exposure = 16439, gain = 0.115184, gamma = 1, shutter mode = default_shutter_mode
[ INFO] [1507797887.283175592]: Desired framerate 250.00 is higher than max possible. Will limit framerate to: 30.43 Hz
[ INFO] [1507797887.285038575]: Start image grabbing if node connects to topic with a frame_rate of: 30.4294 Hz
[ INFO] [1507797887.285205456]: Camera not calibrated
################################################################################
setting /run_id to cad5a1ec-af29-11e7-bf71-80fa5b3aea6e
process[rosout-1]: started with pid [23569]
started core service [/rosout]
process[pylon_camera_node-2]: started with pid [23586]
[ INFO] [1507797969.940313059]: No Device User ID set -> Will open the camera device found first
[ INFO] [1507797970.201851175]: Found camera with DeviceUserID N/A: acA1920-150um
[ INFO] [1507797970.449816427]: Cam has binning range: x(hz) = [1 - 4], y(vt) = [1 - 4].
[ INFO] [1507797970.449944276]: Cam has exposure time range: [105 - 1e+06] measured in microseconds.
[ INFO] [1507797970.450052102]: Cam has gain range: [0 - 12.0092] measured in dB.
[ INFO] [1507797970.451102246]: Cam has gammma range: [0 - 3.99998].
[ INFO] [1507797970.452156586]: Cam has pylon auto brightness range: [50 - 205] which is the average pixel intensity.
[ INFO] [1507797970.454060802]: Cam supports the following [GenAPI|ROS] image encodings: ['Mono8'|'mono8'] ['Mono10'|'NO_ROS_EQUIVALENT'] ['Mono10p'|'NO_ROS_EQUIVALENT']
[ WARN] [1507797970.454128755]: No image encoding provided. Will use 'mono8' or 'rgb8' as fallback!
[ WARN] [1507797970.516184271]: [] name not valid for camera_info_manger
[ INFO] [1507797970.545051917]: CameraInfoURL needed for rectification! ROS-Param: '/pylon_camera_node/camera_info_url' = '' is invalid!
[ WARN] [1507797970.545127496]: Will only provide distorted /image_raw images!
[ INFO] [1507797970.548246829]: Startup settings: encoding = 'mono8', binning = [1, 1], exposure = 5000, gain = 0, gamma = 1, shutter mode = default_shutter_mode
[ INFO] [1507797970.548958100]: Desired framerate 250.00 is higher than max possible. Will limit framerate to: 112.50 Hz
[ INFO] [1507797970.551190612]: Start image grabbing if node connects to topic with a frame_rate of: 112.499 Hz
[ INFO] [1507797970.551330538]: Camera not calibrated

The value you see is the return value of the 'camer.maxPossibleFrameRate()' and highly depends the connection settings and the exposure time. I can't tell you exactly how this value is internally calculated, this might be a question for the Basler support.
Regarding user set saving:
This feature is currently not implemented, but might be done via a string parameter describing the file path to the user set and loading this one if the parameter is available instead of 'UserSetSelector_Default'. This would mean, that all given parameters would be overridden on startup.
Feel free to create a branch for this feature.


AxisError: axis 1 is out of bounds for array of dimension 1 while using RandomForestClassifier

here is the code to replicate the issue:
inp = np.array([[-1, -1],
[-2, -1],
[1,  1],
[2,  1]])
model = sklearn.ensemble.RandomForestClassifier().fit(inp, [1,1,0,0])
predictions, bias, contributions = ti.predict(model, inp)
Error occurs at line 63 in  treeinterpreter.py in _predict_tree(model, X, joint_contribution)
This is because not all model.estimator_ return tree_ values as 2D.

This bug is fixed in the latest version, try to update.


Make recipe non noarch

Installation on Windows fail due to non existing directory. Recipe can't be noarch.

Checklist

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

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

@conda-forge-admin, please rerender


Webview crashes the app on iOS 14

Steps to Reproduce

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:mylunch/Aziendale/ContractManager.dart';
import 'package:mylunch/configs/app_config.dart';
import 'package:rxdart/rxdart.dart';
import 'package:webview_flutter/webview_flutter.dart';

import '../../app_localization.dart';
import '../risto_widgets.dart';

class AuthWebviewPage extends StatefulWidget {
  @override
  _AuthWebviewPageState createState() => _AuthWebviewPageState();
}

class _AuthWebviewPageState extends State<AuthWebviewPage> {
  final BehaviorSubject<bool> loadingController = BehaviorSubject<bool>();

  @override
  void initState() {
    super.initState();

    // Enable hybrid composition.
    if (Platform.isAndroid) WebView.platform = SurfaceAndroidWebView();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: RistoWidgets.creaAppBar(
          title: Text(
            AppLocalizations.of(context).translate('signin'),
          ),
          actions: [
            StreamBuilder(
                stream: loadingController.stream,
                initialData: false,
                builder: (context, snapshot) {
                  if (snapshot.data)
                    return Container(
                      margin: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 16.0),
                      child: RistoWidgets.loaderCenter(),
                    );
                  else
                    return SizedBox();
                })
          ]),
      body: WebView(
        javascriptMode: JavascriptMode.unrestricted,
        gestureNavigationEnabled: false,
        onWebViewCreated: (webViewController) {
          // Pulisci le sessioni ad ogni webview creata
          CookieManager().clearCookies();
        },
        initialUrl: App.instance.currentContract.webviewAuthEndpoint,
        onPageStarted: (_) => loadingController.sink.add(true),
        onPageFinished: (_) => loadingController.sink.add(false),
        javascriptChannels: <JavascriptChannel>[
          JavascriptChannel(
            name: 'MyLunchCloseWebView',
            onMessageReceived: (_) {
              Navigator.pop(context);
            },
          ),
          JavascriptChannel(
            name: 'MyLunchWebviewToken',
            onMessageReceived: (token) {
              ContractManager().getPrimaryContract().then((contract) {
                contract
                    .setRCToken(token.message)
                    .then((result) => result ? Navigator.pushReplacementNamed(context, '/Init') : Fluttertoast.showToast(msg: 'Errore salvataggio token'));
              });
            },
          ),
        ].toSet(),
      ),
    );
  }

  @override
  void dispose() {
    loadingController.close();
    super.dispose();
  }
}

Expected results: See the webview
Actual results:
Webview completely crashes the app, and closes it.
The crash doesnt happen everytime, but only sometimes.
I do have 3 testflight crashes dump that im willing to upload, but privately only for the flutter devs.

Logs

[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B29 darwin-x64, locale it-IT)
    • Flutter version 1.22.4 at /Users/nicolas/dev/flutter_sdk/flutter
    • Framework revision 1aafb3a8b9 (2 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/nicolas/Library/Android/Sdk
    • Platform android-30, build-tools 29.0.2
    • ANDROID_HOME = /Users/nicolas/Library/Android/Sdk
    • Java binary at: /Users/nicolas/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.9.3

[!] Android Studio (version 4.1)
    • Android Studio at /Users/nicolas/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[!] IntelliJ IDEA Ultimate Edition (version 2020.2.4)
    • IntelliJ at /Users/nicolas/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    • Dart plugin version 201.8538.45
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.49.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.15.1

[✓] Connected device (1 available)
    • ANE LX1 (mobile) • xx • android-arm64 • Android 9 (API 28)

! Doctor found issues in 2 categories.

Hello @nicolasvac
can you please provide flutter run -v?
Thanks

@nicolasvac
The code sample you provided seem to have 3rd party plugins and custom code such as import 'package:mylunch/Aziendale/ContractManager.dart'; due to which I am unable to run it. Please provide a minimal code sample without any 3rd party plugins that we can simply copy paste and run in IDE that will help to replicate the issue.
Also, is the crash occuring locally or only when you publish it to testflight ?

I am having the same behavior on simulator (iOS 14.2) and iPhone 11 (iOS 14.2) using release build.
@darshankawar here's the code:
import 'dart:io';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

class WebViewScreen extends StatefulWidget {
  const WebViewScreen({Key key}) : super(key: key);

  @override
  _WebViewScreenState createState() => _WebViewScreenState();
}

class _WebViewScreenState extends State<WebViewScreen> {
  WebViewController _webViewController;
  bool isLoading = true;

  @override
  void initState() {
    if (Platform.isAndroid) {
      WebView.platform = SurfaceAndroidWebView();
    }
    super.initState();
  }

  @override
  Widget build(BuildContext context) => WillPopScope(
        onWillPop: () async {
          if (await _webViewController?.canGoBack()) {
            await _webViewController.goBack();
            return false;
          }
          return true;
        },
        child: Scaffold(
          body: Stack(
            fit: StackFit.expand,
            children: [
              WebView(
                initialUrl: 'https://google.com',
                onWebViewCreated: (controller) => _webViewController = controller,
              ),
            ],
          ),
        ),
      );
}

flutter doctor output:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 1.24.0-10.2.pre, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-UA)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.1)
[✓] IntelliJ IDEA Community Edition (version 2020.1.1)
[✓] VS Code (version 1.47.3)
[✓] Connected device (3 available)

• No issues found!

FIY The problem was caused by the interference with videoplayer in my case.
I have two screens one of which has a videoplayer and a button, which navigates to the webview screen.
There's no useful information in the logs so i decided to do some experiments.
Pausing the videoplayer before navigation fixed the crash.

Hello @darshankawar
the crash happens only on iOS, and the only way we have tested it is from testflights.
I already have 3 testflights dumps that i can upload for investigation.

su 6.12.2020 klo 3.22 nicolasvac<EMAIL_ADDRESS>kirjoitti:

Hello @darshankawar https://github.com/darshankawar
the crash happens only on iOS, and the only way we have tested it is from
testflights.
I already have 3 testflights dumps that i can upload for investigation.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/flutter/flutter/issues/71316#issuecomment-739440059,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQ4UBVLCG7IJZNSFCN4MVSLSTLMGDANCNFSM4UFC2JTQ
.

@nicolasvac
Please provide the crash log for further analysis.

I'm experiencing the same behavior, but only on test flight builds. Oddly enough, if I run a release build on my phone, I experience no issues.
@andriivachasov-ah you were able to reproduce this on a simulator? That is odd because whenever I try to run a run in release mode on a sim, flutter stops me and says Exception: Release mode is not supported for iPhone 12.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Overlapping Tasks

Hi @dk8996
Wanted your suggestions on this usecase. I am implementing a calendar widget using this Gantt chart you developed. I have campaigns - which will be tasks in this case I will to show the user a timeline of events based on calendar view/dates.
I wanted a solution to avoiding tasks that fall on the same time line from overlapping. How can we do it?Should I add 2 y-axis and have "TaskName" and then have an array of tasks within that?
For example in present implementation tasks overlap as expected:
(a)    (b)
|------{--|----}
I want it in this way
(a)
|---------|
. .. . .   {-------}
(b)

Did you find a solution in the mean time?


Update scenario-protected-web-api-verification-scope-app-roles.md

Typo:
AddMicrosoftIdentitWebApi -> AddMicrosoftIdentityWebApi

@paashaas - Thanks for the typo fix!

Due to the upcoming conference, all merging and publishing are on hold until the morning of 5/23.
This PR is ready for merge on 5/23.
#label: "event-triaged-to-10AM"
#label: "missed-content-complete"


BRTI (Bitcoin Real Time Index)

Hi. I want to get a BRTI index[https://www.cryptofacilities.com/indices]. But in the code I did not find an implementation. How can I get it?

Hi, please use the getTickets() example which gives you data for all currently listed contracts and indices. (https://www.cryptofacilities.com/resources/hc/en-us/articles/360000528513-Tickers)

Thank you very much you helped me a lot.
Now I know that to get a BRTI I need to contact this address. (https://www.cryptofacilities.com/derivatives/api/v3/tickers?)
// get tickers
result = methods.getTickers ();
But the problem is how often can I contact?
Is there any way to sign up for an automatic update and not fill up the server with requests.

You are welcome. You can have a look here. The examples are currently only in python. You will need to subscribe to feed: ticker and utilize the field index.

The value is rounded to the ticksize of the instruments that we are currently are listing.

Is it possible to get the exact value?


Code push Live Server Configuration

I’ve configured code push with localhost, and it was working. Now, I’d like to configure it with a live server. I have a few questions:

Is it possible to configure code push with a live server like https://lky.com, or does it require configuration exclusively with an Azure App Service?
After setting up the server, should we only move the API folder to the server?
Once the server is set up, how should we use Azurite with the live server?

Thanks

People have forked this repo and modified it to be used with different cloud servers, such as AWS. You can also try them.
In the setup, there is a codepush-infrastructure.bicep file that sets up all your required services.
Once it is done, you need to copy the contents of the `api' folder to your app services.
Please feel free to refer to #40 for detailed steps.
Azurite is for testing locally.
Once the server is set up, you will upload your packages to the server, and they will be downloaded to your app.

People have forked this repo and modified it to be used with different cloud servers, such as AWS. You can also try them.
In the setup, there is a codepush-infrastructure.bicep file that sets up all your required services.
Once it is done, you need to copy the contents of the `api' folder to your app services.
Please feel free to refer to Switching to Azure Storage from local not working #40 for detailed steps.
Azurite is for testing locally.
Once the server is set up, you will upload your packages to the server, and they will be downloaded to your app.

@jerinjohnk which specific changes required to change for cloud server, and where i can change them

I didn't get which specific changes you require.
Specific changes for
Point 1 - Please refer to the different forks of this repo. For example AWS S3 Fork
Point 2 - details are provided in the edited question section of #40
Point 3 - its self explanatory.

People have forked this repo and modified it to be used with different cloud servers, such as AWS. You can also try them.
In the setup, there is a codepush-infrastructure.bicep file that sets up all your required services.
Once it is done, you need to copy the contents of the `api' folder to your app services.
Please feel free to refer to Switching to Azure Storage from local not working #40 for detailed steps.
Azurite is for testing locally.
Once the server is set up, you will upload your packages to the server, and they will be downloaded to your app.

@jerinjohnk which specific changes required to change

I didn't get which specific changes you require. Specific changes for Point 1 - Please refer to the different forks of this repo. For example AWS S3 Fork Point 2 - details are provided in the edited question section of #40 Point 3 - its self explanatory.

i have setup server  on azure and it running but when i try to logout and login with new server then i am getting below mention error.

How to fixed this issue ?

It might be because you were logged in when you ran this locally and forgot to logout before running the register/login using the Azure server.

From your locally run server, log out before registering the Azure one.
I did try the link command, but it didn't work.
Other than these, I revoked the registered permission from GitHub and updated the redirection URLs there.
Optional: I'm unsure but also ran rm -rf ~/.appcenter-cli/profile.json. I'm just warning you: This will delete your current App Center profiles, and you might need to log in again.

It might be because you were logged in when you ran this locally and forgot to logout before running the register/login using the Azure server.

From your locally run server, log out before registering the Azure one.
I did try the link command, but it didn't work.
Other than these, I revoked the registered permission from GitHub and updated the redirection URLs there.
Optional: I'm unsure but also ran rm -rf ~/.appcenter-cli/profile.json. I'm just warning you: This will delete your current App Center profiles, and you might need to log in again.

Thanks @jerinjohnk, its working fine now.


Apeswap (Binance) only Indexing until July 2021, can't QA until fixed

Apeswap (Binance) subgraph only Indexing until July 2021, can't QA until fixed


Migrate some small Types to Struct and merged BuildRegions

Migrated some small types to structs.
Merged Build Regions of Layered and Monotone as they are very similar, the only difference being one method call.

thank you for your contribution


Define an HdcDataType for HdcDataType itself

A bit confusing because it is self-referential, but it would be the data-type returned for example by the GetPropertyType command.
Also user defined commands might benefit from being able to specify explicitely that either an argument or a return value is a byte value encoding for a HdcDataType.
Note how also the documentation of the command signature would benefit of being able to specify a HdcDataType-type instead of abusing the UINT8 type for it and making it ambiguous.

On the one hand, the changes brought by #21 reduce the need for this, because the GetPropertyType() command would not be necessary anymore.
On the other hand, if we ever need to pass an HdcDataType argument or return value it would make the JSON representation of the HDC-API much more explicit.


Allow panels to have multiple items

At this time, our panes have multiple pane items with the ability to cycle between items and have tabs. Panels, on the other hand only support a single item. We should make panels allow multiple items as well.

Closing in favor of #11120.


Fix typo

infomation→information

Docs Build status updates of commit 966c8cd:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

academic-services/knowledge-exploration-service/how-to-deploy-new-indexes-to-makes.md
:white_check_mark:Succeeded

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

Thanks for the contribution. I've modified master branch to reflect your change. We only push to live branch from master.


Redundant condition

https://github.com/boostorg/format/blob/78ef371d2d90462671b90c3af407fae07820b193/include/boost/format/alt_sstream_impl.hpp#L127
Line 127 is -
else if(way == ::std::ios_base::beg)
It is followed on line 129 -
else if(way != ::std::ios_base::beg)
Which, of course is always true given the previous test. This "impossible-redundant-condition" was spotted by a source analyser I used.

I think the proper solution here is likely the following on lines 129, 130:
                else if(way != ::std::ios_base::cur || (which & ::std::ios_base::in) )
                    // (altering in&out is only supported if way is beg or end, not cur)

Similar to the logic on lines 110, 111:
                else if(way != ::std::ios_base::cur || (which & ::std::ios_base::out) )
                    // (altering in&out is only supported if way is beg or end, not cur)

@PHackett any thoughts on this approach?

This was spotted by a static code analyser in an old version of boost - it was fixed in a later version.
I suggest that you look at newer versions of the library to see what fix was applied.


Add instructions to readme

the swift-lint official instructions are so gnarly.

install swift-lint: https://github.com/realm/SwiftLint/releases

Add .swiftlint.yml to your xcode project folder

Example of swift-lint rule set: https://github.com/realm/SwiftLint/blob/master/.swiftlint.yml
Another swift-lint example from Sindre Sorhus project GifSki: https://github.com/sindresorhus/gifski-app/blob/master/.swiftlint.yml

Add swift-lint script to your xcodeproject:

XCode 👉 Build phases
Click "plus-button" 👉 Add run script
Paste in the bellow:

if which swiftlint >/dev/null; then
  swiftlint
else
  echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi

Build the project to see some swift-lint warnings

Add a swift-lint badge to your github project  [![Swift-lint Sindre](https://img.shields.io/badge/swift--lint-sindre-brightgreen.svg)](https://github.com/sindresorhus/swiftlint-sindre)
`

You would help a lot more people if you instead opened a PR on SwiftLint to improve the instructions there.

SwiftLint is the can. SwiftLint Sindre is the can-opener. And a much better vessel for change IMO but I see your point about wanting to have less to maintain.

It's not just having to have more to maintain. It's that there's probably just a dusin people that will use this module, while improving the SwiftLint readme will improve the experience for many thousands of devs.

I feel like this is the start of XO but for swift ;) SwiftLint is unsexy and raw. You need something sexy to get people going ✌


Event Store storage exception after cluster upgrade to 6.5

Our clusters recently upgraded to SF 6.5.
We never looked into Event Store before - chances are good it never actually worked, but now it's throwing errors in the Fabric Explorer.
Basically, the Event Store service tries to connect to a wrong table connection and fails. Which leads to endless restarting on different nodes.
We didn't configure a table connection so I assume it tried to configure itself automagically during the upgrade.
It fails to connect to RESOURCENAME.table.core.windows.net, because it should be RESOURCENAME.table.core.cloudapi.de instead, since we're in the German cloud.
This is the error reported by the Explorer:
Service package for manifest 'ES' and service package activation ID '' is in Error.
'CodePackageActivation:Code:EntryPoint:132071318764025935'.
There was an error during CodePackage activation.
The process/container terminated with exit code:255.
Please look at your application logs/dump or debug your code package for more details.
For information about common termination errors, please visit https://aka.ms/service-fabric-termination-errors

This is the exception thrown on the VMs:
Application: EventStore.Service.exe
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: Exception Type: System.AggregateException, Message: One or more errors occurred., Stack: Inner Exception DetailsException Type: Microsoft.WindowsAzure.Storage.StorageException, Message: The remote name could not be resolved: '*RESOURCENAME*.table.core.windows.net', Stack:    at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.EndExecuteAsync[T](IAsyncResult result)
   at Microsoft.WindowsAzure.Storage.Core.Util.AsyncExtensions.<>c__DisplayClass1`1.<CreateCallback>b__0(IAsyncResult ar)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.ServiceFabric.Instrumentation.Tracing.Readers.AzureTableReader.AzureTableExtensions.<ExecuteTableQueryAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.ServiceFabric.Instrumentation.Tracing.Readers.AzureTableReader.AccountAndKeyTableStorageAccess.<ExecuteQueryAsyncInternal>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at EventStore.Service.Cache.DataFetcher`2.<FetchDataInternalAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at EventStore.Service.Cache.Cache`2.<InitHydrateAsync>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at EventStore.Service.Cache.AzureTableCachedStorageAccess.<ExecuteCacheOpWithRetryAsync>d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at EventStore.Service.Cache.AzureTableCachedStorageAccess.<UpdateRegularlyAsync>d__33.MoveNext()
Stack:
   at System.Environment.FailFast(System.String, System.Exception)
   at EventStore.Service.TaskRunner+<>c__DisplayClass1_0+<<GetDefaultContinuation>b__0>d.MoveNext()
   at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[[EventStore.Service.TaskRunner+<>c__DisplayClass1_0+<<GetDefaultContinuation>b__0>d, EventStore.Service, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35]](<<GetDefaultContinuation>b__0>d ByRef)
   at EventStore.Service.TaskRunner+<>c__DisplayClass1_0.<GetDefaultContinuation>b__0(System.Threading.Tasks.Task)
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Some other strange behavior, we noticed since yesterday, which may be related to this:

When we open the Fabric Explorer there's an error message stating that it couldn't get the cluster manifest, but everything seems to be working. I can even look at the manifest.
After some time (probably more than an hour) I get logged out of the Fabric Explorer with Azure AD telling me it was due to an authentication loop. I will paste the exact message here when I get it again.

We are having a very similar set of issues since starting to create our environments with Service Fabric version 6.5.641.9590.
Please post a solution if you have one.

Possible reference material for the problem.
https://docs.microsoft.com/en-us/azure/active-directory/develop/reference-breaking-changes

I finally had time to try to fix this issue, but it's still here.
Event Store Error
I disabled the event store feature in the ARM template and updated the cluster, but the service was still there and throwing errors. This error message also still shows up everytime I open the explorer:
Error: Get cluster manifest failed
Frequent Logout
This issue still occurs, but very likely is not related to the Event Store stuff (as posted above by Kurt).


size increases after encoder

var encoder = require("./meshopt_encoder.js");
var decoder = require("./meshopt_decoder.js");

function bytes(view) {
	return new Uint8Array(view.buffer, view.byteOffset, view.byteLength);
}

var data = new Float32Array([
1, 0, 0, 0,
0, -1, 0, 0,
0.7071068, 0, 0.707168, 1,
-0.7071068, 0, -0.707168, 1,
]);

Promise.all([encoder.ready, decoder.ready]).then(() => {
	var decode = new Int16Array(data.length);
	var encoded = encoder.encodeFilterOct(data, 4, 8, 12);

	// each input vector gets encoded as 8 bytes (4 int16)
	var vectorCount = data.length / 4;

	var vertexBuffer= encoder.encodeVertexBuffer(
	encoded,
	vectorCount,
	8
	);
});

vertexBuffer.length > bytes(data).length

This is expected - you're encoding a very very small buffer. The codecs are designed to work on large data streams; right now the attribute codec adds up to 32 bytes of overhead in terms of various encoding metadata plus a very small number of extra bits per input byte (~1?). When you're encoding a tiny input buffer - 32 bytes in this case (which is the result of encode filter) - the extra overhead of 32 bytes + change is obviously significant.


COMMOT in Seurat object

Hi all!
I'd like to use COMMOT in my already processed Seurat data. To this aim, I transformed the Seurat object into AnnData as specified here: https://mojaveazure.github.io/seurat-disk/articles/convert-anndata.html. However, this transformed object has some compatibility problems in Python: Spatial not detected, genes specified differently and not detected...
Is it possible to use COMMOT in my Seurat object to avoid these issues?
Thank you in advance!
Best.

Hi! Finally, I moved to CellChat cause it supports Spatial data.


connect this repo to zuul

Maybe we should find a way to automatically add repos to zuul from this org?

Done. The branch protection rule for the main branch was missing, added it manually.


Restricting GPU topology

We need a way to restrict a given topology not only on CPUs but also on GPUs. This may be tricky because there is no direct support for this in hwloc directly.
One approach is to use the VISIBLE_DEVICES environment variables, but we may need to use fork() or similar heavy-weight functions:
https://github.com/ROCm-Developer-Tools/HIP/blob/main/tests/src/runtimeApi/device/hipSetGetDevice.cpp
Another approach may be using CUDA- or ROCM-related functions in hwloc, but I am not sure these functions provide what we need.

@eleon does the functionality that we in 2703e8810c0ba510467b397e50c8a7aaa39f7004 meet this need? It appears to provide what is required, but maybe I'm missing a subtlety.

@eleon does the functionality that we in 2703e88 meet this need? It appears to provide what is required, but maybe I'm missing a subtlety.

This question isn't clear. What I meant to ask is: does the current behavior in master meet the GPU restriction requirements?

@samuelkgutierrez , yes, I believe the split and split_at functions help restricting/assigning GPUs. I think this should be enough for now. The get_topology function outlined above could be helpful for those algorithms that take an hwloc topology (rather than a scope) as input, e.g., mpibind, but we don't have an immediate need to support this.


improvement use batch size of session instead of limit to improve performance of reading

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.41 seconds
stream load tsv:          503 seconds loaded<PHONE_NUMBER>9 Bytes, about 141 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          30 seconds loaded 861443392 Bytes, about 27 MB/s
insert into select:          29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size:<PHONE_NUMBER>2 Bytes