Applying NaughtyAttribute's meta attributes to non-Unity Object derived types

This PR adds implementation that allows serializable types not derived from UnityEngine.Object to utilise NaughtyAttribute's customization.
The result is that any type attributed with [Serializable] (that Unity can handle) should support NaughtyAttributes customization on its fields. This includes any form of nesting (direct, or list).
This is limited to meta attributes only - because the method is invoked per serialized property, rather than the object itself.
Implementation details:
Added a new property drawer type: NaughtyPropertyDrawer.
It is injected into Unity's internals, so it can used as the default/fallback property drawer for any properties not handled by another drawer.
The drawer implements two methods: GetPropertyHeight and OnGUI.
Both are implemented to take into account NaughtyAttribute's customization, followed by invocation of Unity's original logic.
The Unity's original logic is available through the internal UnityEditor.PropertyHandler type.
An instance of PropertyHandler is resolved using the internal static method UnityEditor.ScriptAttributeUtility.GetHandler(ScriptableProperty).
All internals and injections are done in the type's static constructor, triggered by [InitializeOnLoad].
Method calls to Unity's internals are compiled.
Modified the NaughtyEditorGUI class:
The PropertyField_Implementation method has been made public, as it is used from within the NaughtyPropertyDrawer.OnGUI method.
I tested whether the implementation works as expected on the following Unity versions:
2021.2.0b1
2021.1.13f1
2020.3.13f1
2019.4.28f1
Notes
An alternative approach would be to register such a custom drawer for every type in the AppDomain.
From my tests - this does not work well with nested properties - which is what the 'fallback' drawer injection resolves.
It also would cause UI lag when an inspector is drawn - due to the size of the drawer resolution dictionary - which is why I use a hack with custom comparer injected into the dictionary.
This is my first attempt at a contribution, so if this should be done differently, lemme know.

This is what i need, thanks.


camel-k ignores changes to traits configured using annotations

Assuming that you have a binding like the one below were annotations are used to configure traits:
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
  name: timer2log
  annotations:
    trait.camel.apache.org/container.image: acme/bad:1
    trait.camel.apache.org/jvm.enabled: "false"
    trait.camel.apache.org/kamelets.enabled: "false"
spec:
  integration:
    configuration:
      - type: configmap
        value: timer2log-config
  source:
    ref:
      apiVersion: camel.apache.org/v1alpha1
      kind: Kamelet
      name: timer-source
    properties:
      message: "foo"
  sink:
    ref:
      apiVersion: camel.apache.org/v1alpha1
      kind: Kamelet
      name: log-sink

In this specific case as example, the container image that must be used to run the Integration is set set using the  trait.camel.apache.org/container.image: acme/bad:1 annotation.
If you update the resource and you change only the container image, then the reconcile loop is not triggered because the kamelet binding controller take into account only the phase or the generation (which does not change when only the matadata is amended ).
Since annotation can be used to configure traits,, they should be taken into account.

Duplicate of #2648

Btw, while I'm not sure if it's directly related to the issue, I find another bug with kameletbindings with traits, where the traits defined on a kameletbinding is always wiped out. It's being fixed with this pull req: https://github.com/apache/camel-k/pull/3478
Specifically, this is what I try to fix there: https://github.com/apache/camel-k/pull/3478/commits/127460a288e415b3d8e60d4a758b6d6726ed105c


Fix completion script affecting $IFS

Set COMP_WORDBREAKS instead of IFS.
More in-depth explanation:
IFS affects other things not related to programmable completion, such as how the shell breaks up argument lists.
For example, by default this splits the unquoted variable as-expected:
OPTION_LIST='foo bar'
for OPT in $OPTION_LIST; do printf '%s\n' "$OPT"; done
> foo
> bar

Changing IFS makes the variable not split as expected, printing all on one line:
IFS=$'\n'
for OPT in $OPTION_LIST; do printf '%s\n' "$OPT"; done
> foo bar

This PR changes it to use $COMP_WORDBREAKS which specifically affects how programmable completion works, instead of affecting and effectively poisoning how the user's shell works.

Thanks bot!
Migrated changes to symfony/symfony#47780


Ablity to specify preshared_key and datastore_uri in different secrets and with custom keys

If you don't completely control how the datastore_uri is generated(and possibly regenerated at any time), such as with a Postgres operator, creating a secret for the SpiceDBCluster config is hard.
The ability to specify these parameters in different secrets and with custom keys inside the secrets would be great!

This also has some overlap with https://github.com/authzed/spicedb-operator/issues/155

Hi, Any update regarding this issue?

Has anyone found a way to work around the current expected secret format? Would love to have this capability eventually though


[WIP] initial data model

This PR adds the initial draft of the data model proposed in https://github.com/morphometrics/morphometrics/issues/31#issuecomment-1171422860
This data structure stores the vertices and faces. In addition it stores the following data structures for both vertices and faces:

tables
arrays
graphs

@bbarad here's the WIP data model for meshes. I have added all of the fields we discussed. I will add some tests and examples in the coming days.


Incorrect ts(18048) (possibly 'undefined' error) after loop with nullish coalescing assignment

Bug Report
I have a service possibly not returning data, and I inject the fallback value by iterating its values with a nullish coalescing assignment.
TS goes on saying it may be undefined.
🔎 Search Terms
nullish assignment , 18048, possibly undefined
🕗 Version & Regression Information
I noticed this on 4.9+
⏯ Playground Link
Playground link with relevant code
💻 Code

const arr:{attr?:number}[] = [{attr:1},{}];
for (const x of arr){
	x.attr ??= 0;
}
/*
The same happens with
arr.forEach(x=>{
	x.attr ??= 0;
});
*/
arr.sort((a,b)=>a.attr-b.attr);

🙁 Actual behavior
TS goes on saying it may be undefined.
🙂 Expected behavior
TS should be aware of the "coverage" of all array values with my fallback.

Duplicate of #9998.


Connection fails without version parameter specified.

I suggest to pass version to useRequestSnap like below in index.tsx as it would fail to connect otherwise.
  const requestSnap = useRequestSnap(defaultSnapOrigin, '0.1.0');

Plus, calling the hello method doesn't work, throwing the following RPC error.  I encountered this with a snap where I upgraded dependencies to the latest, so probably due to new updates. Would be nice if anybody knows walkaround.
 Expected the value to satisfy a union of `record | array`, but received: undefined

This should be fixed in https://github.com/MetaMask/template-snap-monorepo/commit/74faa3a4a7e102943dd569137f5a59b2f2dfe54e - Feel free to reopen if this occurs again.


Auto-number workspaces in title bar

Currently if I rename a workspace to something non-numeric, eg web, then I lose the number. It would be great if it could be displayed as {2} web.
This could be the default behavior or something I can configure, doesn't matter.

I am breaking out the display name of a workspace in the widget into a separate function that can be overridden in your own sublcass of WorkspaceWidget. For example:
public class MyWorkspaceWidget : WorkspaceWidget {
    public override string GetDisplayName(IWorkspace workspace, int index, bool visible) {
        return visible ? $"[{{{index}}} {workspace.Name}]" : $" {{{index}}} {workspace.Name} ";
    }
}

then you can use MyWorkspaceWidget instead of the default in your config.
this is implemented in 28a23787e568b0fb68e585eda0a68445062acef5, most likely a part of v0.5

I get the following error message:
---------------------------
unhandled exception!
---------------------------
System.Exception: (13,35): error CS0506: 'MyWorkspaceWidget.GetDisplayName(IWorkspace, int, bool)': cannot override inherited member 'WorkspaceWidget.GetDisplayName(IWorkspace, int, bool)' because it is not marked virtual, abstract, or override

   at Workspacer.ConfigLoader.ConfigHelper.CompileConfig(IEnumerable`1 referenceTypes)

   at Workspacer.ConfigLoader.ConfigHelper.GetConfig(IEnumerable`1 referenceTypes)

   at Workspacer.Workspacer.Start()

   at Workspacer.Program.Run()

   at Workspacer.Program.Main(String[] args)

press ctrl-c to copy this
---------------------------
OK
---------------------------


Hand Tracking index

MediaPipe Solution (you are using)
task
Programming language
Python
Are you willing to contribute it
Yes
Describe the feature and the current behaviour/state
I would like to ask if Mediapipe offers a feature in the output object, that indicates the tracking of a specific hand, for example: frame 1, tracking_index : 0, hand: left.......frame 40: no hands detected...frame 76, tracking_index : 0, hand: Right
Will this change the current API? How?
No response
Who will benefit with this feature?
People who will need to tracking info not just landmarks
Please specify the use cases for this feature
for example, i have a video of 2 people performing hand tasks, i would like to track index associated with a certain hand
Any Other info
No response

Hi @linahourieh,
Could you please provide more details about this feature so we can highlight the request with our team?
Thank you!!


merge from arlac77/template-github,arlac77/template-kronos-module

package.json

chore(package): add ^17.0.7 remove ^17.0.6 (devDependencies.semantic-release)

:tada: This PR is included in version 10.0.11 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Manually and Explicitly register all services

Instead of scanning and registering as below
builder.RegisterAssemblyTypes(module.Assembly).Where(t => t.Name.EndsWith("Repository")).AsImplementedInterfaces();
builder.RegisterAssemblyTypes(module.Assembly).Where(t => t.Name.EndsWith("Service")).AsImplementedInterfaces();
builder.RegisterAssemblyTypes(module.Assembly).Where(t => t.Name.EndsWith("ServiceProvider")).AsImplementedInterfaces();
builder.RegisterAssemblyTypes(module.Assembly).Where(t => t.Name.EndsWith("Handler")).AsImplementedInterfaces();

Each module should register its services manually and explicitly
This will resolve #403

I was thinking to create a similar issue, by doing this there's no need to rely on Autofact

Let me start on this

While i'm not aware about Autofac objects lifetime
Repository -> Transient
Service -> Transient
ServiceProvider -> Singleton
Handler -> Singleton
@thiennn correct me if i'm wrong

Handler --> Transient
ServiceProvider  --> Depend. By default is Transient. Some special providers might need Singleton


Error in the documentation

[Enter feedback here]
This sentence made me think that I didn't have to set the setting AZURE_FUNCTIONS_ENVIRONMENT on production in order to have the value "Production", and that is not how it works:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings#azure_functions_environment
"When this application setting isn't present when running in Azure, the environment is assumed to be Production. "
Please make clear that when the setting is not present, the value is empty and that could be assumed to be Production.

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

ID: 18aa54fd-3aa1-37c5-925c-51a0195b1030
Version Independent ID: 60198016-1ea9-e7ae-b00b-2c665d5ad8ca
Content: App settings reference for Azure Functions
Content Source: articles/azure-functions/functions-app-settings.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.

Sorry, @ramedey but I don't understand the confusion. Are you saying if you don't have AZURE_FUNCTIONS_ENVIRONMENT set your code returns an empty string when you query the setting value, but that you expected it to be set to production?

Yes, normally I wouldn't expect that, but after reading this sentence I thought that this setting was a special case.
"When this application setting isn't present when running in Azure, the environment is assumed to be Production. "
Now I know that is not the case, but I still don't understand exactly what happens when the setting is not present. What implies that the environment is assumed to be Production?

@ramedey would this be better?

The function app in Azure runs in production mode unless AZURE_FUNCTIONS_ENVIRONMENT is set to a value other than production.


Automatically linking issues using repo#number in messages

Actions python-discord/organisation#318
We should make a message listener that would send a link to an issue when the message contains repo#number. Here is an example:

Specifications

The bot should match the regex .+?#\d+ outside of a codeblock.
If the repo or the issue can't be found, nothing should happen.
This feature should be limited to the python-discord repositories, although that should be configurable.
This feature should be limited to :

the organisation channel<PHONE_NUMBER>84356126)
the development category<PHONE_NUMBER>25484308)
the dev-projects category<PHONE_NUMBER>24940544)
the media category<PHONE_NUMBER>91997460)

Can I work on this issue?

Can I work on this issue?

Can I work on this issue?

@Shivansh-007 Sure thing!

Can I work on this issue?

@Shivansh-007 Sure thing!

Will it send all the issues/prs contained in the message or only the first one.
For example:
Hey folks, can you please check bot#1341 and meta#444
So basically my question is whether it will send both the issues or only the first one?

Will it send all the issues/prs contained in the message or only the first one.
For example:
Hey folks, can you please check bot#1341 and meta#444
So basically my question is whether it will send both the issues or only the first one?


pipewire-pulse configuration files seem to be missing

If you Completed all troubleshoot options, check below

[ x]  Did you Follow all installation instructions carefully from here?
[ x]  Did you check All troubleshoot options from here?

Describe the bug
pipewire-pusle configuration files seem to be missing
To Reproduce
sudo apt install libfdk-aac2 libldacbt-{abr,enc}2 libopenaptx0
sudo apt install gstreamer1.0-pipewire libpipewire-0.3-{0,dev,modules} libspa-0.2-{bluetooth,dev,jack,modules} pipewire{,-{audio-client-libraries,bin,locales,tests}}
sudo apt install pipewire-doc
sudo cp /usr/share/doc/pipewire/examples/systemd/user/pipewire-pulse.* /etc/systemd/user/

Expected behavior
Should copy files
Screenshots
cp: cannot stat '/usr/share/doc/pipewire/examples/systemd/user/pipewire-pulse.*': No such file or directory
> ls /usr/share/doc/pipewire/examples/
alsa.conf.d  ld.so.conf.d  README.audio

Desktop (please complete the following information):

Distro: [e.g. Ubuntu] Mint
Desktop Environment [e.g. Gnome] Cinnamon
Version [e.g. 20.04] 20.1

from where you got those information? why you need to copy those files? what is written over debian pipewire wiki is deprecated for this repo. Did you read all instructions from the Project wiki ?

Thanks for the clarification and for the work on this. It is working for me now. Closing.


[🔶 Change request ]: Mobile friendly documentation

Change
We could adapt the documentation for mobile devices.
Type

[ ] Dann
[ ] Matrix
[ ] Layer
[ ] Activation functions
[ ] Loss functions
[ ] Pool functions
[ ] Datasets
[x] Documentation
[ ] tests & examples
[ ] Other

Examples
Here is an example of what could be done to the documentation on mobile:

Additional context
We are using handlebars with yui-doc for the documentation. Even if you never used yui-doc or handlebars before, these tasks only requires CSS knowledge since the content/elements dont change.
The documentation templates are located in
docs/yuidoc-dannjs-theme/partials/
And all the css is located in
docs/yuidoc-dannjs-theme/assets/css/

Updated the documentation template, now available on the website.


Questions about the operation of ad_VerticalAxis_OLAF and Turbsim

Dear all
I have built a vertical axis wind turbine with multiple rotors in ad_VerticalAxis_OLAF, and I want to use the turbulent wind generated by turbsim to do the calculations, but no matter how I change the size of the wind field (increase the area of the wind field or decrease the area of the wind field), I always get an error and stop the calculations around the middle of the calculations, and the specific error is reported as follows.

The following diagram shows the relevant settings about the model

The following diagram shows the relevant settings about the ad_driver.dvr

The following diagram shows the relevant settings about the Turbsim.inp

I hope you can give me some suggestions for improvement based on my input file and explain the reason for the error.
Thank your for your attention.
Best regards,

@jjonkman @ebranlard

Hi @engineerYuXN
There has been a couple of bugs in InflowWind lately. I can see that you are using 3.4.1. If you can, try to compile the version for 3.5.1, which is in the branch rc-3.5.1 of this repository.
You can also try to increase you TurbSim height, so that the box starts right above the gound (say 0.05m above the ground instead of 5m) .
Let us know if that helps,
Emmanuel

Hi @ebranlard
I used version 3.5.0 of turbsim to generate turbulence winds as you suggested, and I still get the following error

I have made the following changes based on the relevant reported errors, but all of them result in errors

Add GridHeight and GridWidth.
Define HasTower, HubOrigin_n and TwrOrigin_t for the impeller.

Currently I still have the following problems

I'm not sure if I'm using the rc3.5.1 version as you said
2、I don't know how to modify it next, hope you can give me some suggestions!

Thank your for your attention.
Best regards

Hi,
Indeed, you need to use the branch of OpenFAST called rc3.5.1 and compile OpenFAST yourself. If you don't know how to do it, you can refer to the documentation, or wait one month or so until we officially release the version. Then binaries wil be available for donwload.

Hi @ebranlard
But I'm using aerodyn, do I also need to use openfast version 3.5.1?

Dear @engineerYuXN,
I believe @ebranlard means that you should recompile the standalone AeroDyn driver using the source code from the rc-3.5.1 branch of the OpenFAST repository, available here: https://github.com/OpenFAST/openfast/tree/rc-3.5.1.
Best regards,

Dear @jjonkman
I have compiled aerodyn and turbsim in rc3.5.1 as you intended, below screenshot shows the version shown at runtime.

However, with version 3.5.1, I still get a corresponding error, and when I adjust GridHeight and GridWidth to 2000m, I still get the Grid too small in Z or Y direction error

I hope you can give me some more help
Thank your for your attention.
Best regards

After I adjust the GridHeight and GridWidth to 4000m, I can calculate 9s in full, but there is no guarantee that I can calculate longer, and after outputting the VTK file I found a lot of vortex grids that flew far away, and I don't know if it's these flying scattering vortex grids that caused aerodyn to report the error.

My guess is that your regularization parameters needs updating. You can try to follow the guidelines indicated here:
https://openfast.readthedocs.io/en/dev/source/user/aerodyn-olaf/RunningOLAF.html#guidelines
You likely need to increase them by a significatn factor.

Dear @ebranlard
I would like to ask you if there is any correlation between the settings of nNWPanels, nNWPanelsFree, nFWPanels, nFWPanelsFree in OLAF and GridHeight, GridWidth, NumGrid_Z, NumGrid_Y in Turbsim.

Dear @ebranlard
Thank you very much for your reply to my question, it helps me a lot. I have another question at the moment, I do the calculations based on CFD software for the same environmental conditions and the same size model, and the RtAeroMxh, RtAeroMyh, RtAeroMzh outputs from the OLAF module are much larger than the CFD software (probably about 3 times), and I'd like to know the parameters affecting the torque and the RtAeroPwr values of the aerodynamic power, in addition to the model size, the number of panels, the simulation time step and so on, and what are the other parameters affecting the results in a big way.
Thank your for your attention.
Best regards

Hi,
The regularization and wake length are the most critical parameters. The guidelines should ensure that you are in the right range of values.  For VAWT the unsteady airfoil aerodynamics model (AFAeroMod=2) can also have a significant influence on the results (see e.g., this article).
A three fold factor seems excessive and there is likely something off with the model. I cannot give much more guidance than trying to follow the guidelines and adjust the parameters mentioned above (regularization and wake length). In the above mentioned article, we had fairly satisfactory results compared to the measurements.


Discover uses incorrect title

If you go to Discover and search on "rapid" then click David Tarboton next to filter by author, you get the following.  However if you click on the link "untitled" you see that the resource has a title.

It is in a sense. For any new resource this should get fixed by PR #1097. For existing resources it is still going to be the issues until that resource get updated. However, once a change in discover page is made to use the title from the metadata (res.metadata.title.value) instead of title from the resource (res.title) it should resolve the issue with the existing resources.

@dtarb Can you verify and close if fixed?

This seems fixed.


Add collection label next to search results

- Summary
Closes issue #945
Collection name is indicated on each search result item.
- Test plan
Shows collection name in each search result:

Does not show collection name next to items when not searched:

- Description for the changelog

Add collection label next to search results
- A picture of a cute animal (not mandatory but encouraged)

src: http://i.dailymail.co.uk/i/pix/2012/09/17/article-2204494-150E707A000005DC-700_634x438.jpg

Deploy preview for netlify-cms-www ready!
Built with commit 02e0bf7a25ef615fae33d615473371cca92d0391
https://deploy-preview-1068--netlify-cms-www.netlify.com

Deploy preview for cms-demo ready!
Built with commit 02e0bf7a25ef615fae33d615473371cca92d0391
https://deploy-preview-1068--cms-demo.netlify.com

Thanks @solpark!
I'll give a short review each for code and design.
Code
We can simplify things by drilling down to the abstract goal: whenever entries from multiple collections are displayed at once, regardless of why, we should label each entry with it's collection title. The EntryListing component has a renderCardsForMultipleCollections method that handles this specific case, so we can start there without altering components that are higher up in the tree.
That method wraps the EntryCard component directly, so we can simply pass in a label string when we want a label, and don't use the label prop when we don't. This approach should allow us to get away with only modifying two components total.
Design
The approach totally works, but I happen to know that there will eventually labels or tags or who-knows-what in that right side area of the entry card, so it might not be ideal placement. There's also precedent for placing a UI element's label in the top left, such as in editor fields and editorial workflow cards, both pictured below:

That last example is very similar to the card you're modifying - you can probably borrow those styles directly and maybe avoid writing new styles. Also like the last example, you can just use the collection name without prepending "Collection:".
Thanks again for taking the time to contribute! I hope the review was helpful - feel free to ask questions here or in Gitter.

@erquhart  Thanks for the thorough feedback! I will make the changes ASAP :)

After changes:

@erquhart
Hi! I made the changes but the netlify deploy-preview test is failing. I asked about this in Glitter and it seems to be a netlify issue. How should I go forward with this?

Ah gotcha. Thank you!

Did a bit of editing, borrowed styles from the workflow cards:

This is good to merge - thanks for taking it on @solpark!


WIP: fix rust tests for big-endian targets

This pull request is meant to complement this pull request into the main flatbuffers repo. It resolves test failures for big-endian targets in the Rust crate.

@rw so what do you think of these changes to the tests?

@rw just want to make sure this doesn't stall for too long.

Closing in favor of https://github.com/google/flatbuffers/pull/5229


#37 add goreleaser with github action

can we get darwin/arm64 support added in @mirogta?

@conbon not likely for the first attempt at this - there are some issues with cross-compiling on multi arch with the required flags. I'm just updating the issue to only support linux/amd64 for this ticket. Feel free to raise a new one with more OS requirements.


Replace licenses to MIT closes #9

I also fixed my name somewhere and linked to my github :raised_hands:. I think my IDE removed a few extra spaces here and there as well.

Thanks a bunch! 🙇🏻


Rename and refactor validation admission webhooks

This PR renames the admission.core.kubefed.k8s.io API group to validation.core.kubefed.k8s.io, and refactors the validating admission webhook interface methods in preparation for enabling mutating webhooks. It also adds more logs for debug purposes.

LGTM too

It is double reviewed. I think we can merge this.
/lgtm


Auto generate Node Manager password in HTTPS domain image

Instead of setting the Node Manager password as a environment variable, auto generate the Node Manager password when the container is run.

@MattAtTTU I have changed the Dockerfile and container-scripts to auto generate the NM password


AIO gating

Thank you for submitting a pull request to this project!
Once all check jobs have passed and the pull request has received a
sufficient number of reviews, the repository's gate jobs can be triggered by
adding a comment of :shipit: to this pull request.
When the gate jobs have completed successfully, this pull request will get
merged automatically.

Quick NIT: Commits and PRs need commit messages.


Refine cancelMPPQuery

What problem does this PR solve?
Issue Number: ref #5095
Problem Summary:
What is changed and how it works?

Do not hold MPPTask in cancelMPPQuery thread, so MPPTask can be destructed parallelly
Use ThreadManager instead of raw threads when cancel mpp task

Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-build-arm64   (test arm64 build pipeline)

/run-build-arm64 (test arm64 build pipeline)

/merge


Patch out unistd.h inclusion on MSVC builds

MSVC does not have unistd.h, but zlib still tries to include it if some other library defines _LARGEFILE64_SOURCE. This pull request removes the include directives. _LARGEFILE64_SOURCE has not effect on that platform, so this should not lead to dysfunctional builds. (And does not for my test case at least.)

Thanks!
Do you know if it affects to 1.2.11 ?

I suppose this was already addressed by https://github.com/conan-community/conan-zlib/pull/41
@phillipberndt-satori would be nice if you could try with latest version


Modification on the gap of the algorithm

Possibility to have a relative gap (percentage)

Impose a minimum gap depending on the accuracy of the solvers (1e-6 ?)

Add a stopping criterion when the solution has not evolved for several iterations

We might need to have a relative gap rather than an absolute one.
linked to #175

we decided to remove this point and create a separate issue #268:
Add a stopping criterion when the solution has not evolved for several iterations


Google drive links inaccessible/invalid for examples/simple_example

Hello,
I have set-up a conda environment according to the instructions in the README and I receive the following message in my terminal when I run python examples/simple_example.py:
Downloading data...
Access denied with the following error:

 	Cannot retrieve the public link of the file. You may need to change
	the permission to 'Anyone with the link', or have had many accesses.

You may still be able to access the file from the browser:

	 https://drive.google.com/uc?id=1gkiEMKdadOel4Xh6KoS2U603JTkZhgDw

Downloading...
From: https://drive.google.com/uc?id=16-0bhKrUMbZ0DSz768Z_q13yNivHyfVO
To: /my/computer/Desktop/cytoself/example_label.npy
100%|████████████████████████████████████████████████████████████████| 51.3k/51.3k [00:00<00:00, 15.8MB/s]
Access denied with the following error:

 	Cannot retrieve the public link of the file. You may need to change
	the permission to 'Anyone with the link', or have had many accesses.

You may still be able to access the file from the browser:

	 https://drive.google.com/uc?id=1znRLbYJJqd11Zqv-5_yUmNjarKcwIWMg

Downloading...
From: https://drive.google.com/uc?id=1RM654Qavcy8gG5uy3mCzi8EsOT_xOlVd
To: /my/computer/Desktop/cytoself/protein_uniloc.csv
100%|████████████████████████████████████████████████████████████████| 8.57k/8.57k [00:00<00:00, 28.5MB/s]
Downloading...
From: https://drive.google.com/uc?id=1WrxhGsSzivZVAlL_K2FLVsRmHrsfhyrI
To: /my/computer/Desktop/cytoself/dgram_index1.npy
100%|████████████████████████████████████████████████████████████████| 16.5k/16.5k [00:00<00:00, 21.7MB/s]
Loading data...
Traceback (most recent call last):
  File "examples/simple_example.py", line 49, in <module>
    image_data = np.load('example_image.npy')
  File "/my/computer/anaconda3/envs/cytoself/lib/python3.7/site-packages/numpy/lib/npyio.py", line 417, in load
    fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: 'example_image.npy'

When I try the google drive links in-browser (as suggested) they lead to files with different names. Any tips on how to resolve this?
Thanks,
Jeff

Hi, sorry for the belated reply. I recently upgraded cytoself-pytorch branch to the main branch. The data downloading is now embedded inside DataManagerOpenCell.download_sample_data and as far as I tested, there was no problem.
What you tried was the old tensorflow implementation and some of the download link might have broken.

Hi, thanks for the reply! I confirmed that the pytorch version runs and will use that instead.


Where to find the raw data in .csv format?

I would like to analyze the data in Python. Is it possible to get the raw data from the beginning of time detailing everything ?

https://github.com/covid19india/api


Schema Generation

I was just wondering if the SBE tool uses a schema as an input to encode/decode messages based on that or does it also build the schema itself? For example could it be used to build something like the attached schema file?
streamlinemktdata.txt

SBE can take a schema like the attached and from it generated stubs to do the encoding and decoding of messages. It can also generate IR that can be used for dynamic decoding of messages. The samples and benchmarks do this.
https://github.com/real-logic/simple-binary-encoding/tree/master/sbe-benchmarks/src/main
https://github.com/real-logic/simple-binary-encoding/tree/master/sbe-samples/src/main


'Your input exceeds exceeds the limit of 50000 characters in a single cell.'

Describe the bug
The export is returning content types but all sheets are empty (does not extract content items). I contacted the Kontent.ai support team. they were trying to test it and found out that it says: "'Your input exceeds the limit of 50000 characters in a single cell.'" but I'm positive that none of the items imported to Kontent had that many characters.
To Reproduce
Steps to reproduce the behavior:

Go to 'Google Sheet'
Click on 'Export'
Scroll down to '....'
See error: it either says "Something went wrong while executing the add-on." or does not show any error

Expected behavior
it should have extracted content as it used to
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: [e.g. iOS] Windows 10
Browser [e.g. chrome, safari] Chrome
Version [e.g. 22] Version 102.0.5005.63

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Hello @Vitalii-NZ !
This sounds like a limitation of Google Sheets. It's possible that we could add some logic to the add-on which truncates large data or shows a user-friendly error containing the offending language variant and element. Interestingly, I just tested this by using the export feature after editing a variant to contain 50,000+ characters and it was imported without issue.
Would you be able to locate the erroneous language variant and element which is causing the error? I would recommend getting the data directly via the Delivery API and checking for a variant with a large amount of data.

Hello @kentico-ericd
Thank you, I will explore the Delivery API option.
Meanwhile, is there a max number of content items the Add-on/google sheet will process before fail? (prod has more than 5100 content items).
The reason I'm asking is that non-prod env has fewer content items and add-on extracts it without any issues.

Currently the export feature doesn't have the same "batching" functionality as the import feature, so it is limited by Google's 45s script timeout. That's a fairly long time to retrieve content items of a single type, so I would say 5,000+ items could be processed in that time. Content types with more items could potentially time out, though.

It looks like in our case the error is caused by script timeout rather than the number of characters above the limit in a single cell. (It takes longer than 45 sec before the error appears. average of 45.68sec).  I managed to extract the content items and validate that there are no issues or data that exceeded the number of characters in a single cell.
Is the "batching" functionality for the export feature on your roadmap which would be implemented in the future? or is it better for us to stick with Delivery API / Management API?
Thank you for your time and your help, Eric!
cheers,

@Vitalii-NZ The batching functionality for the export feature isn't currently planned, though if there is enough interest it could certainly end up being added. Unfortunately for now, if the Google Sheets add-on can't manage the large amount of data for you, I would recommend using other migration tools!


DROOLS-1034 - Kie server test improvement for Oracle RAC

Changes in tests, these tests often failed on Oracle 11gR2 RAC database.

+1 only test change

merged into 6.3.x, thanks @jakubschwan


Add a Go web server+Lego tutorial to wiki?

Hi Legoers. I've been so impressed with Lego after discovering it a couple of days ago that I made a short tutorial describing my setup to try to help others. You can find it here:
https://github.com/xi2/lego/wiki/A-100%25-automated-Lego-setup-for-Go-web-servers
Sorry for creating a Github issue, but there doesn't seem to be pull requests for the wiki?
Is the tutorial worth adding the wiki? I didn't want to just dump it on there as that seemed a bit rude. If it's not the right sort of thing then I will probably stick it on my blog so that's OK too and there'd be no offence caused. :)
Best wishes

So I'm curious. Why did you decide to use exec/command to run the lego binary and not to embed the library directly into your projects?

Hi xenolf. That is a good question. The reasons are that (1) I was exec-ing the scp binary anyway, so it's not like I'd have avoided using exec, and (2) I wanted to capture the nice terminal output of the lego command since it gets sent in the email for inspection. I could of course have replicated that output that with my own Fprintf's and acme package API calls, but for the tutorial I was trying to keep the code as short as I possible. If you think it's stylistically or pedagogically bad I can change it, naturally, but I think it would be more lines of code. Anyway, thanks for looking it over.

No, I was just curious :smile:
I feel like this would make a great blog post, but for the wiki it's a bit too specific I'm afraid.

With hindsight, I think you are completely right in that it's far too specific to my setup. It will go on my blog :-)


OSSL_STORE: Fix error flag clearing and setting (provider path only)

When the provider's load function returned with an error, the libcrypto
error flag was only set if EOF hadn't been reached.  This is troublesome,
as an error can very well occur during the last load before EOF is reached!
Also, the error flag was never reset, even though documentation specifies
that it should indicate an error in the last load (i.e. not the one before
that).
Fixes #21968

Does this require a test case?

Not sure, and would possibly be pretty hard to do right, which is why I labeled for an excemption.  But hey, if someone comes up with a simple test, I'm all ears!

Would a test loader than always fails and always returns EOF be sufficient?

Would a test loader than always fails and always returns EOF be sufficient?

It seems rather over the top to write a whole damn provider just for this.
Yeah, one that always fails and returns EOF would test that the flag is correctly set in that scenario.
However, resetting the flag needs a more involved test, so all in all, I guess that this sequence would do it:

failing load - this should set the error flag
successful load - this should clear the error flag, but doesn't before this PR
failing last load (implies EOF) - this should set the error flag, but doesn't before this PR

Maybe a PEM file that contains three PEM objects, where only the middle one is valid, and run that through storeutl?

24 hours has passed since 'approval: done' was set, but this PR has failing CI tests.  Once the tests pass it will get moved to 'approval: ready to merge' automatically, alternatively please review and set the label manually.

Merged
master:
17dd9a2c6262c00800301fddd9441a9c590a630e OSSL_STORE: Fix error flag clearing and setting (provider path only)
3.1:
0d5d03787a6d0c836426e09f6ab7604547fd585f OSSL_STORE: Fix error flag clearing and setting (provider path only)
3.0:
137e3a9ac07706a8ec65f2afd31236d9180ad4f0 OSSL_STORE: Fix error flag clearing and setting (provider path only)


Question on postgres data persistence

Hey, I had a question about this docker image. I'm pretty new to docker containers but I was hoping to understand why my postgres data persists between my restart operations.
Essentially whenever I want to restart my server, I run the following commands:
'docker stop $(docker ps -a -q)'
'docker rm $(docker ps -a --filter=status=exited --filter=status=created -q)'
'docker rmi $(docker images -a -q)'
Then I build it up again like this:
'docker-compose build'
'docker-compose up'

Is this a proper way of restarting the server?
Whenever I do this, I notice that my postgres data persists. Why is this? I never updated the data volume. Does the postgres docker image inherently store the data elsewhere? Does this have to do with docker data volumes?

@webyneter do you or anyone have any advice / answers on this? Any help understanding this would be greatly appreciated.

@hgonzalez94

You don't need to remove/rebuild your service images every time you want the server to restart — unless there's a new version (major/minor/patch) of the service to use, restarting service containers based on the same images should suffice: docker-compose restart. Or, if you want to restart the entire host, just docker-compose stop, restart, and then docker-compose start (or docker-compose rm -s, restart, docker-compose up).
If you take a look at ./compose/postgres/Dockerfile, you'll see that we opt out to store no data in the image whatsoever — it all goes into either postgres_data* or postgres_backup* volumes defined in any of the ./*.yml files; therefore, the data persists across an arbitrary number of run cycles unless you specifically remove/prune the associated volumes; all in all, volumes are nothing but paths mappings from aliases declared to host file system paths specified, so the dirs persist unless removed from the host.

@hgonzalez94 has the issue been clarified?

Yea, thank you for the explanation!


Window updates failing

Hello, when I try to update windows now all the updates fail.  I followed the instruction and set windows updates back to stock and then reset windows update in the utilities.  Any ideas on how to fix this.  I’m assuming it’s the utilities as updates were working until I used the tweaks. Thanks Paul

I do not get that problem in my system using Windows 10.
I have not used any of the "dangerous" tweaks.


Add conformance automation and manifest publishing

What this PR does / why we need it:
With this patch, sonobuoy conformance manifest will be published as part of released artifacts.
This patch also introduce a new makefile target to execute conformance tests against the development cluster.
Finally, this patch adds a new automation script to exercise conformance suite on CI.
Nightly prow job exercising this suite: https://github.com/kubevirt/project-infra/pull/623
Special notes for your reviewer:
/hold
This patch updates the builder image. We need to publish a new version of it to our registry before merging this PR.
Release note:

Add conformance automation and manifest publishing

/retest

/lgtm
Thanks
(i understand there will be more pushes)

/hold cancel
The image was published

/lgtm
from me, thanks

/retest

/lgtm

/lgtm

/test pull-kubevirt-e2e-k8s-1.17-rook-ceph

/approve

/retest


Quasar.exe

where is the quasar.exe build-client file

Please see here on how to build quasar: https://github.com/quasar/Quasar#compiling


Sass deprecations

Current Behavior
The Sass project announced the deprecation of the @import rule and the global built-in functions in their v1.80.0 release and also the deprecation of their legacy JS API in v1.78.0.
After merging https://github.com/node-red-contrib-themes/theme-collection/pull/548, I realized this would also be an issue for Node-RED.
I tested on the dev branch by updating the Sass package to its latest version.

Log with the warnings
Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

More info: https://sass-lang.com/d/legacy-js-api

Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

   ╷
17 │ @import "colors";
   │         ^^^^^^^^
   ╵
<EMAIL_ADDRESS>17:9  root stylesheet

Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

   ╷
18 │ @import "sizes";
   │         ^^^^^^^
   ╵
<EMAIL_ADDRESS>18:9  root stylesheet

Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

   ╷
19 │ @import "variables";
   │         ^^^^^^^^^^^
   ╵
<EMAIL_ADDRESS>19:9  root stylesheet

Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

   ╷
20 │ @import "mixins";
   │         ^^^^^^^^
   ╵
<EMAIL_ADDRESS>20:9  root stylesheet

Deprecation Warning: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

   ╷
22 │ @import "base";
   │         ^^^^^^
   ╵
<EMAIL_ADDRESS>22:9  root stylesheet

Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use map.get instead.

More info and automated migrator: https://sass-lang.com/d/import

    ╷
219 │         --red-ui-node-status-colors-#{"" + $current-color}: #{map-get($node-status-colors, $current-color)};
    │                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
<EMAIL_ADDRESS>219:63  @import
<EMAIL_ADDRESS>19:9        root stylesheet

Deprecation Warning: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use map.get instead.

More info and automated migrator: https://sass-lang.com/d/import

    ╷
303 │         --red-ui-user-profile-colors-#{"" + $current-color}: #{map-get($user-profile-colors, $current-color)};
    │                                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
<EMAIL_ADDRESS>303:64  @import
<EMAIL_ADDRESS>19:9        root stylesheet

Deprecation Warning: Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in `& {}`.

More info: https://sass-lang.com/d/mixed-decls

    ╷
28  │ ┌     > * {
29  │ │         vertical-align: middle
30  │ │     }
    │ └─── nested rule
... │
36  │       border-bottom: 1px solid var(--red-ui-secondary-border-color);
    │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ declaration
    ╵
<EMAIL_ADDRESS>36:5  @import
<EMAIL_ADDRESS>46:9     root stylesheet

Warning: 39 repetitive deprecation warnings omitted.

The first warning, related to the legacy JS API, should be fixed by https://github.com/sindresorhus/grunt-sass/pull/312.
All the rest will be addressed by migrating all global Sass rules to the module system introduced in v1.23.0.
I have the fix in my fork and can propose a PR if it's not too soon for that.
Expected Behavior
No response
Steps To Reproduce
No response
Example flow
paste your flow here

Environment

Node-RED version:
Node.js version:
npm version:
Platform/OS:
Browser:

Please do propose a PR if you have it in a branch already - easier to review then :)


Use gradle plugin 3.2.1 instead of 3.2.0

I suspect this may fix the issue described here: https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/1023


Unexpected and unconsistent behaviour of @beartype in nested type-checking

Hi,
I want to say upfront that I've just started using beartype, so I apologize if I'm bringing up an issue that's already known.
I stress-test a bit the decorator @beartype to see whether or not it can deal with non trivial case occurring in real-case scenario. I found an unexpected behaviour when validating an input which is expected to be a list of tuples, each of them composed by two array from numpy.
This is what happen:
from numpy import array, ndarray
from beartype import beartype

@beartype
def dumb_func(input_data: list[tuple[ndarray, ndarray]]):
    # do any computation with input data
    arr_00, arr_01 = input_data[0]
    return arr_00

input_data = [(array(1), array(1))]
print(dumb_func(input_data=input_data))
# Output: 1 <-- CORRECT, I expected this

wrong_input_data = [(1, 1)]
print(dumb_func(input_data=wrong_input_data))
# Error: beartype.roar.BeartypeCallHintParamViolation: .... <-- CORRECT, since (1, 1) is not on the form (ndarray, ndarray)

more_complicated_wrong_data = [(array(i), array(i)) for i in range(1000000)] + [(1, 1)]
print(dumb_func(input_data=more_complicated_wrong_data))
# Output: 0 <-- WRONG, I did not expect this, since the last tuple (1, 1) it's not on the form (ndarray, ndarray)

another_wrong_data= [(array(i), array(i)) for i in range(10)] + [{"ciao": "amico"}]
print(dumb_func(input_data=another_wrong_data))
# Output: 0 <-- WRONG, I did not expect this, since the last element of the list is not even a tuple!

Is this scenario somehow expected due to an internal limitation of beartype? Did I miss something?
Consider I am using Python 3.10.6 and beartype 0.19.0

Understood from the documentation, thank you!

...heh. Apologies for any confusion, @Fedezzab. It's all true. To preserve performance, @beartype currently only randomly type-checks nested items. A future version of @beartype will let tweak this by linearly type-checking all nested items. But... yeah. Not quite there yet, I'm afraid. Maybe by late 2025 if all goes well? Let's choose to believe these words I am saying. :smile:


Revert "[Editor] Remove some windows dependencies in editor libraries (#1908)"

PR Details
This reverts commit 329becbecf0c392b37feb5c8bc6007bd4ee2f567.
Related Issue
See #1968 and #1969
Types of changes

[ ] Docs change / refactoring / dependency upgrade
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[x] I have built and run the editor to try this change out.

Tested it on my end and this rollback fixes the issue. Merged it right away to avoid more users struggling with this.


Authorization for Webhooks Deprecated

The Authorization header value described there is deprecated and will be discontinued on November 1, 2016.
https://docs.travis-ci.com/user/notifications/#Authorization-for-Webhooks-(Deprecated)

I guess that means that unless Travis-CI intends adding a specific integration for OpenShift 3, they will not be able to be used with OpenShift 3. It is highly unlikely that I will be updating this proxy as never be an indication that anyone used it or was interested in it.

I'm not sure if I understand the Docs correctly, if this Signature-Certificate-Publickey stuff in Verifying-Webhook-requests actually helps somehow?


FAQ "How can I "freeze" Keras layers?" is broken

Environment:
keras version: 1.2.0, tensorflow version: 0.12.0
Run script in FAQ, both frozen_model and trainable_model are unable to train (i.e. weights won't update). Also, model.summary() produce wrong params count.
The root cause is that layer.trainable is set to False before layer is called (y = layer(x)),
and results in layer.weights == []. Is this behavior expected? Or at least should be documented?
the script should be modified to:
...
x = Input(shape=(32,))
layer = Dense(32)
y = layer(x)
layer.trainable = False

frozen_model = Model(x, y)
...

@joelthchao thanks for mentioning this! This behaviour is also the reason why I could not set the weights of an untrainable layer.
i.e.  this results in an error
layer = Convolution2D(1, 3, 3, weights=my_fixed_weights, trainable=False)

what does work is
layer = Convolution2D(1, 3, 3, weights=my_fixed_weights)
y = layer(x)
layer.trainable = False


Copy from built-in documentation with selection starts from line start sometimes copy the upper line

Tested versions
Godot v4.3.dev (3c596094a)
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; <IP_ADDRESS>19) - 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (16 Threads)
Issue description
When debugging https://github.com/godotengine/godot/issues/87463, I did some test myself and found a new issue, keep it seperate because it may have different underlying reasons.
I want to copy If exact_match is false
But instead I got
This is useful for code that needs to run only once when an action is pressed, instead of every frame while it's pressed.

If exact_match is false

In my clipboard
See the video:
https://github.com/godotengine/godot/assets/8315986/f3ed4b91-b7a0-42c7-80a1-aa1e489cae8b
Steps to reproduce

Open built-in doc
Copy from line start, and paste and observe.

Minimal reproduction project (MRP)
N/A

Most likely this is a RichTextLabel bug. CC @bruvzg


Possibility to deactive action lines

Would like the possibility to deactivate one or more action lines.
This way you could add multiple lines and use not all.
For example when testing it would be super easy to activate/deactive slightly different lines, not having to replace and save all versions of the action line externally.

Same wish here!
Every Config needs a lot of tests before it works perfect. And it would save soooo much time, if it would be possible to turn action-lines on and off.

or there should be an add and remove  button between the  element lines . so it can be add or remove action lines.


alt and mouse buttons to drag windows

Using the modifier for moving and resizing windows as "alt" makes problems with clicking another window.
Causes the previous window to hide. Probably a macOS default behavior. It needs to be worked around, and currently fixable by just using control or cmd instead.
Ideally I could use alt.

Might need to implement some sort of macro.

Also, Karabiner Elements doesn't have a keybind remap for mouse and keyboard buttons together, so that one didn't work there. I also tried to do something with skhd, and I don't think I can.

Since HyperDock isn't working any longer with current macOS I use Rectangle Pro for window movement, plays nicely with Yabai.

use Rectangle Pro

I prefer not to. Sounds like a great solution for many.
I just want to use alt instead of cmd to move and resize a window. They way yabai currently does this works wonderfully for me right now - almost exactly the same UX as using swayfx on my Linux Desktop.

use Rectangle Pro

I prefer not to. Sounds like a great solution for many. I just want to use alt instead of cmd to move and resize a window. They way yabai currently does this works wonderfully for me right now - almost exactly the same UX as using swayfx on my Linux Desktop.

I like to move/resize the window without clicking a button, just hold alt to move, ctrl to resize.
I didn't find a way yet to do that with Yabai.

Fixed in v7.0.0.


Asynchronously fetch user profile via the Facebook User Profile API

As a developer receiving a message from a Facebook user who messaged a Facebook page that is validly connected as a channel of source type "facebook",
in case the tuple of a Facebook page id and a page scoped user id (PSID) is unknown to my Airy instance,
I want to be able to asynchronously fetch the user profile information via the Facebook User Profile API and have the returned data stored in the system,
so that I can more easily distinguish who messaged the relevant Facebook page

## Acceptance Criteria

GIVEN A channel of source type "facebook" is connected to my Airy Core instance,
GIVEN the Facebook-specific parameter subject_to_new_eu_privacy_rules is either false, null, or undefined for the relevant channel,
GIVEN the optional user fields locale, timezone and gender that require both app- and page-level approval by Facebook have not been specified for the relevant channel when it was connected,
WHEN a new message arrives via the Facebook webhook from an unknown tuple of a Facebook page id and a page scoped user id (PSID),
THEN an asynchronous request to the Facebook User Profile API (https://developers.facebook.com/docs/messenger-platform/identity/user-profile/) is being sent for the PSID of the relevant Facebook user (see Dev Notes below),
THEN in case such request succeeds, the user profile information of the contact for the relevant conversation in Airy is updated with the information received from the User Profile API,
THEN in case such request succeeds, the user profile picture should be uploaded to the cloud storage provider as configured in the relevant Airy instance configuration settings and the avatar image url of the contact for the relevant conversation should be updated accordingly,
THEN in case such request fails, the fallback strategy is applied as described in https://github.com/airyhq/airy/issues/481

## Acceptance Criteria

GIVEN A channel of source type "facebook" is connected to my Airy Core instance,
GIVEN the Facebook-specific parameter subject_to_new_eu_privacy_rules is either false, null, or undefined for the relevant channel,
GIVEN one or more of the optional user fields locale, timezone and gender that require both app- and page-level approval by Facebook have been specified for the relevant channel when it was connected,
WHEN a new message arrives via the Facebook webhook from an unknown tuple of a Facebook page id and a page scoped user id (PSID),
THEN an asynchronous request to the Facebook User Profile API (https://developers.facebook.com/docs/messenger-platform/identity/user-profile/) is being sent for the PSID of the relevant Facebook user (see Dev Notes below) - whereby the fields in the request are being extended by the relevant fields locale, timezone and/or gender for which it has been specified for the relevant channel when it was connected that an approval has been granted by Facebook to query the relevant user field for both the Facebook App and the relevant Facebook page,
THEN in case such request succeeds, the user profile information of the contact for the relevant conversation in Airy is updated with the information received from the User Profile API,
THEN in case such request succeeds, the user profile picture should be uploaded to the cloud storage provider as configured in the relevant Airy instance configuration settings and the avatar image url of the contact for the relevant conversation should be updated accordingly,
THEN in case such request fails, the fallback strategy is applied as described in https://github.com/airyhq/airy/issues/481

## Acceptance Criteria

GIVEN A channel of source type "facebook" is connected to my Airy Core instance,
GIVEN the Facebook-specific parameter subject_to_new_eu_privacy_rules is true for the relevant channel,
WHEN a new message arrives via the Facebook webhook from an unknown tuple of a Facebook page id and a page scoped user id (PSID)
THEN the fallback strategy is applied as described in https://github.com/airyhq/airy/issues/481

## Design Notes
## Dev Notes

Send the following GET request with the PSID of the contact and the PAGE_TOKEN as parameters in the url:

Request:
curl --request GET \
  --url 'https://graph.facebook.com/v9.0/<PSID>?access_token=<PAGE_TOKEN>&fields=first_name,last_name,profile_pic'

Response:
{
  "first_name": "Peter",
  "last_name": "Chang",
  "profile_pic": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xpf1/v/t1.0-1/p200x200/13055603_10105219398495383_8237637584159975445_n.jpg?oh=1d241d4b6d4dac50eaf9bb73288ea192&oe=57AF5C03&__gda__=1470213755_ab17c8c8e3a0a447fed3f272fa2179ce",
  "locale": "en_US", // optional - only there if permission has been granted & the field has been set in the request
  "timezone": -7, // optional - only there if permission has been granted & the field has been set in the request
  "gender": "male" // optional - only there if permission has been granted  & the field has been set in the request
}

In case you send a request ton include a field that you don't have permission for either on App-level or page level, the relevant property will not just be empty, but the whole request will fail.

From the successful response download the image specified at profile_pic as the link will expire and upload it to a cloud storage provider as chosen by the relevant setting in the Airy Instance configuration / environment variables.

Update the conversation / contact profile with the relevant data received from the Facebook User Profile API request and the uploaded user profile picture / avatar image url.

## Definition of Done

[] Code review done
[] Acceptance criteria passed
[] Documentation done
[] Internal rollout communication done

this was done in #528


python skulpt.py dist erro

I followed the steps of readme. Did I make a mistake at this step? What's the matter?

readme is updated. blockly builds in python2, while skulpt builds in python3.

readme is updated. blockly builds in python2, while skulpt builds in python3.

python 2.7

What's wrong now is python skulpt.py dist

This should be run using python 2 (The version of python you're currently running)
    > cp blockly/msg/js/en.js en.js
    > cd blockly
    > python build.py
    > cd ..
    > mv -force en.js blockly/msg/js/en.js
This should be run using python 3
python skulpt.py dist

This should be run using python 2 (The version of python you're currently running)
 > cp blockly/msg/js/en.js en.js
 > cd blockly
 > python build.py
 > cd ..
 > mv -force en.js blockly/msg/js/en.js
This should be run using python 3
python skulpt.py dist

ok


Strange sensor behavior (Libre, Dexcom G6) showing large oscillations within minutes

I'm looking after a number of people using CGM, a decent number of patients on pumps, and a small number of loopers (I'm an endo looping since 4/2016). Recently, I noticed some strange behavior of sensors, that oscillated between extremes (see graphs). For goodness sake, most people were not realizing, what was happening. Most of them were on MDI. I have seen this only for Freestyle Libre and Dexcom G6. This is possibly due to the number of patients using these devices. I think it might be useful to apply an algorithm that identifies abrupt changes of glucose and prevents the loop from responding.

What CGM reader software are they using? All xDrip+ and/or Spike? Anyone using Dexcom’s official app?
If (as you mentioned elsewhere) none of them are using multiple sensors, then I suspect there is a bug with converting the every-minute Libre readings into uploaded readings. This is reinforced by the fact that these graphs are showing 8 readings per hour (every 7.5m) instead of 12 (every 5m), and that the oscillations diverge and reconverge regularly, usually every 6h. We should probably open another issue with the CGM reader

Sorry, tapped “Close and comment” by accident. Still writing.

With regard to oref0’s behavior: we the long_avgdelta, which is the delta from the average value from 15-45m ago to the most recent value, to constrain dosing. So during the worst oscillations, it would see a slight upward trend in BG, and a higher-than-actual BG, and calculate a slightly higher insulinReq as a result. With SMB disabled, it would set a high temp, and then on the next (low) oscillatory reading would set a zero temp. As a result, the total insulin delivery over a 20m+ period would be largely correct. With SMB, there is a slight asymmetry in that it could deliver half the insulinReq (rounding down), and then deliver nothing during the downtick, then issue another SMB on the next uptick. This would result in slightly higher IOB than necessary during periods of oscillation, but would self-correct as BG started to drop, and result in BG drifting low but not likely causing any serious hypo risk (absent manual overdosing).
Based on that analysis, I believe oref0 already adequately mitigates this pattern, and we should focus our investigation on finding and fixing the root cause.

I'm glad oref0 takes care of the problem so far 👍😉! You are right it's necessary to get to the roots. I upload the data in my office directly (either from the machines [Libre or Dexcom G4] or their web accounts (LibreView, Dexcom Clarity). The data are imported to Diabass 5pro, a commercial software. When I look at the raw data, before importing them to Diabass, I see those 'oscillations', too!

Dexcom receivers always report data every 5 minutes. The graphs you pasted don’t show every-5m data. If you review the original data in Dexcom Clarity, do you ever see oscillations in data showing 12 data points per hour? I’ve never seen that when uploading the data in real time to Nightscout, either via the Dexcom Share bridge or directly from the receiver or transmitter.

It have never seen such oscillations for the libre nor the dexcom in every discussion/chat I followed in the last 2 years. Can you provide the raw data?

@efbest it's really critical we get to know the exact details of what CGM and reader app/hardware was used in these cases and any settings used for these apps/hardware. (As an example, just knowing xDrip was used is not actually enough to know what algorithm was used.) Also - how does Diabass 5pro get the data? Does it read it directly from a Libre or G6 hardware (as in, is this behavior exhibited in the source data produced by the algorithms and hardware stack from the manufacturer)?

@efbest Do you use the libre reader as data source? Does the reader deliver raw data every minute or every 15 minutes as history values? Is Diabass 5pro able the read more / other data as the Original Abbott PC software from the reader?

Is it possible that this is an issue with the data transfer to diabass? I’ve never seen data like that in either xDrip or Dexcom app (and I’ve been keeping xDrip up to date on the nightlies).

The solution is profane: one patient came back from a vacation (time shift 6h); the other one changed the monitor date and corrected it after a couple of days. The data have been imported to Diabass as csv-files using the export feature of LibreView and Dexcom Clarity.


chore: remove the tag after the commit has been merged

This PR:
Shall unpublish the npm tags after the PR has been merged, thus solving #901. For testing I was thinking we can change line 5 to trigger the action when merging in another branch, but opened to other ideas.

@tibi77 are there any other changes you are planning to add, or is this PR ready for review as it is?

@tibi77 are there any other changes you are planning to add, or is this PR ready for review as it is?

I m not 100% about testing it yet, so I m not really ready for review yet. Still looking for some help in there

@arboleya hey! it s my first PR to fuel and I do not really know how review requests work, also I m not sure why my actions are not working

I get this

@tibi77 We're all set here, and this should be reviewed soon.
We'll let you know if there's anything else we need to include here.
Thank you for your contribution so far.

@tibi77 It seems that each iteration of a PR will effectively create a new version under the same tag.
Will the approach used here remove all versions for the PR tag in question?
For example:

@arboleya, from what I gather from the documentation of the unpublish command unpublish without a specific version will just unpublish the entire package history.

@tibi77 Given the seriousness of this Pull Request and the concerns raised by Anderson, I will need to conduct some tests to ensure that everything runs smoothly. Please allow me a few days to complete these tests, and I will share the results with you.
I appreciate your time and dedication in solving this issue and thank you for your understanding.
Best regards

Thanks a lot, @Torres-ssf please share the testing steps as well :D

Thanks a lot, @Torres-ssf please share the testing steps as well :D

Will do mate

@tibi77 Thank you for the changes; everything is looking great now. 🚀
However, I'll wait to approve it after @Torres-ssf finishes his tests and validations.

thanks a lot @arboleya

@Torres-ssf This can be done on another PR if that's the case. However, I'm not sure if it makes sense to enable this auto-publish for all PRs since only a few of them will effectively need it.

However, I'm not sure if it makes sense to enable this auto-publish for all PRs since only a few of them will effectively need it.

@arboleya I think it's worth it, otherwise

we would need to be always changing code when need, also remember to remove before merging PR
if it's not my PR, would need to unnecessarily insert commits in someone else PR
for the user, it's handful to have this ready whenever we need, it's like next tag, we don't need every time, but when we need it's just there ready to use.

I am unsure if I understand if we should remove the if false from the pr release in the PR as well @arboleya @Torres-ssf @LuizAsFight

@tibi77 Let's focus this PR on the pr-cleanup.yaml workflow in isolation.
The other question is more delicate and must be dealt with later on.

hey! wrote the script. @Torres-ssf could you please help me regarding the testing of it :)
also I d be really happy if i can test this locally, the multiple versions thing... it is quite complex to set up as far as I gather :(

hey! wrote the script. @Torres-ssf could you please help me regarding the testing of it :) also I d be really happy if i can test this locally, the multiple versions thing... it is quite complex to set up as far as I gather :(

Hey @tibi77 I am deeply sorry for the late response.
To validate what we are trying to accomplish here, I've created this dummy project here.
Unfortunately, I do not have a good doc or cheat sheet to point you right now. To properly execute these tests I have gone to a good amount of Google searches and have scrapped pieces of code/information from many different fonts while trying to modify them to our specific needs.
The most complicated/tricky parts when setting up this test project were:

Create the workflow that will generate the PR tag name and will publish it to NPM on each interaction on the PR (Needs to mimic the same PR tag name approach as fuels-ts)
Create the unpublish workflow and execute the tests.

You can validate my implementation for each case here:

pr-release.yaml: This one is going to release the versions to NPM with a PR tag. The logic behind the PR tag name mimics the same output we would have on the PRs Tag that is being created on fuels. Similar to what @arboleya has shown here.
pr-unpublish.yaml: This one test the work we are doing here.

Please let me know if you have any other questions related to this and my implementation of this dummy project.
I promise that this time I won't be taking too much time to answer you :sweat_smile:
Good luck on your tests

@Torres-ssf thanks a lot.
Just making sure, this is the correct npm package, right.

@Torres-ssf thanks a lot. Just making sure, this is the correct npm package, right.

@tibi77  Exactly

FYI @pedronauck has implemented to unpublish from npm here, feel free to reuse useful parts of his code

@Torres-ssf I think from what @arboleya  said in here we need to set up another package as well so that we see if the current code is deleting those as well.

@LuizAsFight do you happen to know how @pedronauck did the tests ?

@Torres-ssf I think from what @arboleya said in here we need to set up another package as well so that we see if the current code is deleting those as well.

@tibi77 Yes it seems so. I couldn't validate that yet. I've worked on these tests before @arboleya raised this concern.

hey @Torres-ssf trying to push to that repo that you created and I get permission denied, could you please add me as a collaborator ?

@tibi77 Done!

@Torres-ssf mate you are like a race car. thanks a lot. the github action for deploying to npm is just when a pr is merged?

@Torres-ssf mate you are like a race car. thanks a lot. the github action for deploying to npm is just when a pr is merged?

No. When opening a new PR the workflow already starts deploying to NPM under the PR tag.

Patched the set output one,
quick question why does the name of the release action is
Release to @pr-<number> tag on npm / Release PR to... can we not take the PR number inside the action title?

hey @Torres-ssf @arboleya @LuizAsFight
kind reminder regarding this PR


[NTR] herpesvirus-7 infection

Preferred term label:
herpesvirus-7 infection
Synonyms
Exact:
HHV-7 infection
PMID:28545483
Abbreviation
Definition (free text, please give PubMed ID, if applicable, in format PMID:#######)
A disease caused by infection with herpesvirus-7.
MONDO:patterns/infectious_disease_by_agent
PMID:28545483
Parent term (use OLS, or your favorite ontology browser)
roseolovirus infectious disease

related to https://github.com/monarch-initiative/mondo/pull/3118


I am creating an ami for it.
On Tuesday, March 29, 2016, Ioannis Papapanagiotou<EMAIL_ADDRESS>wrote:

Have you done any testing on these, or this will come once merge to dev?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/Netflix/dynomite/pull/276#issuecomment-203046127

closing this pull request and recreating it on a different branch


Enable calling Alpha Framework on schedule basis, and not only on tick data

Expected Behavior
1.End of day event should be called and risk management model triggered. Rational: avoid low liquidity periods, and high spread costs, avoid overnight interest costs
2.RiskManagementModel should be called on endofday
Actual Behavior
1.standard OnEndOfDay Event is scheduled on a fixed time market close - 10 minutes
2.RiskManagementModel is called on data resolution, but not triggered on scheduled events
Potential Solution
1.Allow configuration of scheduled periods.
2.add a new OnScheduledEvent On risk management model class. We should be able to schedule events and this method should be called
Checklist

[X] I have completely filled out this template
[X] I have confirmed that this issue exists on the current master branch
[X] I have confirmed that this is not a duplicate issue by searching issues

This is a feature request, since alpha framework methods cannot be run on schedule

workaround for point 2. Add to the Risk Model implementation this condition, and set target there
`
var marketClose = security.Exchange.Hours.GetNextMarketClose(algorithm.Time, security.IsExtendedMarketHours);
// define the time of day we want the event to fire before marketclose
var eventTime = marketClose.Subtract(ScheduledEvent.SecurityEndOfDayDelta);
// convert the event time into UTC
var eventUtcTime = eventTime.ConvertToUtc(security.Exchange.TimeZone);
if (algorithm.Time > eventUtcTime)
{
//set target here
}
`

https://www.quantconnect.com/docs/algorithm-reference/scheduled-events
BeforeMarketClose(symbol, min) | self.TimeRules.BeforeMarketClose("SPY", 10) 					Trigger an event a few minutes before close for a specific symbol.
does not help?

Yes it certainly helps for item 1.
However, the alpha framework, risk management model, is not aware of scheduled events.
The issue is that risk management model, is called on every tick and not on scheduled event.
As workaround, I keep a dictionary of events by symbol on the Algorithm class that is updated on schedule, and on risk management model, on tick basis, I check if the flag exists for that symbol.

@erikbengtson inside your risk management model can't you use: algorithm.Schedule(....) to setup any scheduled events you need? This could be done inside the constructor or update by using the reference to the algorithm.

Yes I can, but I want to update Portfolio Targets. I don't know how to do that on schedule basis... For the moment, I've been tracking at QCAlgorithm flags per symbol to qualify whether the risk model based on schedule should run or not. It works, but looks like a workaround.

Lack of demand


Computing visible range sets can be very expensive

TextViewSystemInterface.visibleSet can be an expensive call. Actually computing the visible range in TextKit 1 doesn't seem to be an issue, but the system is spending a lot of time transforming this range into a set.
I wonder if caching could help here.

Learnd a few things.

the size of the range really matters
Glyph's implementation of computing visible rects is much better, but only when not using a strictIntersection

Ok so while Glyph's implementation definitely is superior in a number of ways, the core problem was caused by the initializer.
let range = NSRange(0..<1_000_000)

// this is very slow
_ = IndexSet(range)

// this is very fast
_ = NSIndexSet(indexesIn: range) as IndexSet

So now this now very much better with f3c717b5bbf2118aa93f16a0aa4adf9a9c39ad43


Context\FeatureContext context class not found and can not be used

It seems that there is a little auto loading problem in my configuration.
default:
    autoload: %paths.base%/features/Context
    ...
    suites:
        default:
            contexts:
                - Context\FeatureContext
                - behatch:browser
                - behatch:debug

 [Behat\Behat\Context\Exception\ContextNotFoundException]
  Context\FeatureContext context class not found and can not be used.

My FeatureContext is located under apps/features/Context/FeatureContext.php
In my composer.json, the autolading is :
    "autoload": {
        "psr-0": {
            "": "src/",
            "Context": "apps/features/"
        }
    },

The namespace of the FeatureContext.php is :
namespace Context;

class FeatureContext extends MinkContext implements KernelAwareContext

What did i missed please ?

i had the same problem , and it works like this :
when i call the behat like this :
C:\user\www\behat-learning\vendor\bin> behat -dl
it give the error like yours :
[Behat\Behat\Context\Exception\ContextNotFoundException]
FeatureContext context class not found and can not be used.
but when i call the bahat like this :
C:\user\www\behat-learning>vendor\bin\behat  -dl
it works Fine :)


llvm-project

while converting .mlir file to .ll using llvm-project getting error as below the command used to convert is mlir-translate -mlir-to-llvmir m1.mlir >m4.ll
m1.mlir:5:11: error: custom op 'constant' is unknown
%c0 = constant 0 : index

Not familiar with mlir-translate, but if you are looking for LLVM dialect representation of onnx model, simply run onnx-mlir -EmitLLVMIR [your-model.onnx].

@dushyanth-m did Tian's comment solve your problem?


Upgrade to PyTorch 0.2.0

Main bug I've found so far has been due to the fact that PyTorch 0.2.0 automatically squeezes dimensions after calls to things like sum. This happens on the predict function here. Easiest solution seems to be modifying it to read as
dot = (user_embedding * item_embedding).sum(dim=1, keepdim=True)

However, even after doing that, it looks like tests are still failing due to higher error than expected. Not sure why?

I'm working the bugs out right now. I'll make a PR shortly, I'll ping you there.

See also #24


refactor: refactor parent APIs on WindowBuilder

closes #8587 #1643

Add .parent a convenient method on all platforms
Rename existing .parent_window to parent_raw
Add .transient_for and .transient_for_raw on Linux

Maybe a todo:

[ ] An option for parent in JS window creation
[ ] An option for parent in tauri config


Rolling deployments: erroneous command input persists in subsequent pushes

Issue
We pushed a deliberately failing command:
cf push dora -c 'bogus bogus' --strategy rolling
When the first new instance crashed, we canceled the deployment and reissued a fixed command:
cf push dora  --strategy rolling
The new instance from this push is still failing, it looks like it's still using the -c "bogus bogus" option.
Is this by design? It could potentially be misleading/counter-intuitive for customers. Is there a standard way of re-setting the -c option on subsequent pushes?

Hi @psparks123 !  Thanks for submitting an issue.
If you run cf push --help, it states that the way to reset this is by passing null:
-c                           Startup command, set to null to reset to default start command

So I believe this is by design.  Something like cf push dora -c null --strategy rolling should do what you want.


Develop

updated config for maven central deployments

 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.


Native Binding are not supported

Description
Dependencies:
"jsdom": "16.0.0",
"@mozilla/readability": "^0.4.2",
I need to get a "Document" representation from jsdom for mozilla readability.
Unfortunatelly when i build the extension i get the following error:
build failed (node_modules/canvas/lib/bindings.js:3:25 const bindings = require('../build/Release/canvas.node')): native bindings (e.g., .node files) are not supported because they are neither cross-platform nor cross-architecture; for example, native bindings built on a M1 mac would not work on an Intel mac
i tried many other libs and npm packages. unfortunatelly i don't seem to be able to get a "Document" type representation of a url that mozilla readybility needs except i use jsdom.
any ideas on how to get canvas natively prebuilt or other libs that don't need canvas?
thanks!
Steps To Reproduce
use the following dependency in your project:
jsdom
Current Behaviour
build failed (node_modules/canvas/lib/bindings.js:3:25 const bindings = require('../build/Release/canvas.node')): native bindings (e.g., .node files) are not supported because they are neither cross-platform nor cross-architecture; for example, native bindings built on a M1 mac would not work on an Intel mac
Expected Behaviour
documentation or suggestions on how to work around this?

same issue here
using package ssh2
any update or solution about this ?


第二次绘制图形报错

当我第一次绘制图形时，一切正常，但第二次绘制时，就会报错。
Erroroccurred whenexecuting iclight diffusers sampler:
Given groups=1,weight of size [320,8,3,3], expected input[2, 4, 64, 64] to have 8 channels, but got 4channels instead
File“/root/ComfyUI/execution.py", line 151,in recursive executeoutput data, output ui = get output data(obj,input data all)File"/root/Comfyul/execution.py”line 8l, in get output datareturn values = map node over list(obi, input data all, obj.FUNCTION,allow interrupt=TrueFile “/root/ComfyuI/execution.py",line 74,in map node over listresults,append(getattr(obj, func)(**slice_dict(input data all, i)))File "/root/ComfyuI/custom_nodes/ComfyUI-IC-Light-Wrapper/nodes. py"line 304, in processimages = pipe(File "/root/miniconda3/lib/python3.10/site packages/torch/utils/_contextlib.py", line 115, indecorate contextreturn fumc(*args, **kwargs)File"/root/miniconda3/lib/python3.10/sitepackages/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion. py", line 971, in __callnoise_pred = self.unet(File "/root/miniconda3/lib/python3. 10/site packages/torch/nn/modules/module.py", line 1501, in _call_implreturn forward call(*args, **kwargs)File "/root/miniconda3/lib/python3.10/site packages/accelerate/hooks.py", line 164, in new_forwardoutput = module. old forward(*args, :**kwargs)File "/root/mini conda3/lib/python3. 10/site-packages/diffusers/models/unets/unet_2d condition.py", line 1169,in forward

Make sure your sizes are either 512, 768 or 1024. This will resolve.

same issue , Second generation error。 only reload comfyUI can fix it

Make sure your sizes are either 512, 768 or 1024. This will resolve.

My image is 512 * 512，
The first time it can be completed smoothly, but the second time it will report an error.


!suggesttime - Using only the time will move it a day ahead if that time in GMT is the next day

User error.


from_features and from_urls error in development

Steps to reproduce: In a terminal in MAAP ops or Pilot ops, git clone https://github.com/MAAP-Project/maap-jupyter-ide and follow the steps on the top level readme and the ipycmc readme. Then git clone https://github.com/MAAP-Project/maap-pyand run the commands in that readme. Then launch a notebook with the conda environment that you just created and try to run MosaicJSON.from_urls or MosaicJSON.from_features.
Error: Attached Image

How I fixed the error: I fixed the bug for from_features and from_urls by going into _termui_impl.pyand changing line 83 from  if file is None: to if file is None or isinstance(file, str):. This fixed my error, but I do not know if this may cause errors for other users. This error was occurring for me because the file object in the init function was not None, but "/dev/null" (a string) so it was not caught in that previous if statement and set to default_text_stdout()

@gllewellyn19 I think this is now fixed in the latest version (3.0.1) https://github.com/developmentseed/cogeo-mosaic/pull/178


docs(README): update getting started

Related Ticket(s)
Refs #2916.
Changelog
Changed

Updated getting started doc in packages/web-components/README.md, with modal example and its CodeSandbox link.

Closing for now upon the discussion - Will reopen once we have progress here.

Oops there is one remaining line that should still be made. Pushed an update and reopening.


No files matching the pattern

Hi,
I get this error
StylelintError friendly-errors

No files matching the pattern "C:\myProject\assets**.{s?(a|c)ss,less,stylus}, C:\myProject{components,layouts,pages}**.vue" were found.

my dependencies

"dependencies": {
"nuxt": "^2.11.0",
"@nuxtjs/axios": "^5.9.3",
"@nuxtjs/pwa": "^3.0.0-0"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^2.0.0",
"@nuxtjs/eslint-module": "^1.1.0",
"@nuxtjs/stylelint-module": "^3.2.0",
"@nuxtjs/tailwindcss": "^1.3.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.8.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-nuxt": ">=0.5.0",
"eslint-plugin-prettier": "^3.1.2",
"glob-all": "^3.1.0",
"node-sass": "^4.13.0",
"prettier": "^1.16.4",
"purgecss-webpack-plugin": "^1.6.0",
"sass-loader": "^8.0.2",
"stylelint": "^13.0.0"
}

but there is a tailwind.css file inside assets\css\ folder and a lot of files inside my components,layouts,pages folders...
stylelint version 12.0.1 works
Is this a bug?

hi .
sorry open agin , i created new nuxt project with stylelint-module.
when run nuxt get error :
No files matching the pattern .../assets/**/*.{s?(a|c)ss,less,stylus}, .../{components,layouts,pages}/**/*.vue
I created a sample scss file in assets folder but error was not resolved.
"nuxt": "^2.12.2", "stylelint": "^13.3.0" "@nuxtjs/stylelint-module": "^3.2.2",

It is broken again...


adds comments about confusing test mode nomenclature mis-match…

between gateway code and Auth .Net; also adds ActiveSupport deprecation notice if you fail to have your preferred server set to 'live' or 'test'; defaults to 'live' gateway with test-mode set to false (also set test mode to false; unlike other gateways, it does not determine if the test server is used)

@Senjai
since test_mode is defined on the base objects, I don't see anyway to 'take it off' these two objects (where it really shouldn't exist). As a compromise, I've left the functionality enabled but left warning messages that is meaning is different for Authorize .Net and to warn people to make sure their 'preferred server' is set to either 'live' or 'test'

@Senjai -- since I can't remove it, I've added it with :default => false to one of the objects (one already had it) so that at least it is consistent. Although not perfect, I think this a reasonable way forward.


Flag --only-lambda-apis for cargo lambda watch

When you want to debug your lambda rust function using GDB or LLDB you can attach your debugger to the running process launched by cargo lambda watch. Whenever you change your function and it is restarted, you have to attach your debugger to the new process.
A more convenient way is to launch the function via your IDE in debug mode, where the debugger is attached automatically. Then you can call cargo lambda watch with the --no-reload flag and kill the process that was started by cargo lambda watch during the first function invocation, e.g. with cargo lambda invoke.
To prevent cargo lambda watch from starting a process that has to be killed, this pull request suggests a flag --no-start. This way, we can use cargo lambda watch to provide the lambda runtime rest API to the function but we can start the lambda function manually in the IDE.

Thank you for your prompt reply. As you suggested, I will extend the documentation, rename the flag to --only-lambda-apis and add info messages to the log output about the four mandatory environment variables when the server starts with this flag.
Since you are not sold on the flag --no-reload either, the two flags could also be combined into a parameter (e.g. --mode / -m) of type enum with the three variants reload, no-reload and only-lambda-apis.

The documentation is extended, the flag is renamed to --only-lambda-apis and info messages are added to the log output about the four mandatory environment variables when the server starts with this flag.


Use consistent name for MyComponentFoundation

Thanks, @appsforartists! Could you amend this commit message to follow our conventions? If you want you can use commitizen which will do this automatically for you. Finally, feel free to add [ci skip] to the end of the commit message headline since this is a docs change.


0-stor tlog integration

Fixes #311
Notable changes:

use 0-stor (of course)
remove testcgo : 0-stor is pure Go
Fixes #381 rework vdisk completion https://github.com/zero-os/0-Disk/issues/381#issuecomment-323253812
split the test into more jobs https://github.com/zero-os/0-Disk/issues/311#issuecomment-322694804 cancelled by 2f6e27d37cbd6f33a8d3e706ef6b6bec5d3a45fb, 27e2d383f6e63dd64eab3aa329f3602de420a5cd
Fixes #374 by removing the cgo test
update docs.

Oh, forgot the hot reload part

Oh, forgot the hot reload part

Implemented few hours ago.
Now investigating the issue on #404

The only thing remains is update the vendoring, as the master moved to new https://github.com/golang/dep from godep

some test become failing after merging from master

some test become failing after merging from master

It seems to be high memory / cpu usage again, because:

there is no error message in travis
in my small VM, the test either killed or out of memory

From test profiling, badger sometimes use high memory usage, 588MB

I tried to reduce badger memory usage at https://github.com/zero-os/0-Disk/commit/50e3f6f486b5b7ae371d25392475eecf6d0daada
It seems to work for travis and my small VM.
Before this, my small VM always failed in race test

This PR is ready now

I haven't checked any of the 0-stor code, so it's not too easy for me to review this PR. Tried my best anyhow.
Also next time please squash your commits already next time, with the vendor code update as a separate commit, would make it a lot easier to review..

I haven't checked any of the 0-stor code, so it's not too easy for me to review this PR. Tried my best anyhow.

Thanks

Also next time please squash your commits already next time, with the vendor code update as a separate commit, would make it a lot easier to review..

There might be some commits that still need to be squashed, but actually it already squashed.
Vendor code update happened 3 times:

the initial update, in the start of work
when merging back from master, yesterday, to resolve the conflict
update latest 0-stor

27 commits honestly doesn't look squashed to me...

I approve this PR, however:

I haven't tested the code of this PR myself, so I'm trusting @iwanbk that this code works as intended;
I haven't seen the 0-Stor code, so there might be a lot of stuff to be improved, but as long as it all works as it is, that's already good enough for the time being;

Please do squash the commits before merging into master, such that we are only left with 4-5 commits or less.


[alpaka] Update the alpaka external to the develop branch

Good point... yes, I have a PR still open upstream, as soon it's merged
I'll put the commit hash in the Makefile.

Done in https://github.com/cms-patatrack/pixeltrack-standalone/pull/299 .


Allow Other Developers to Host Their Scripts on roamjs.com

Interesting! Will you vet other scripts before allowing them?

yup! still need to think through the details of this


i2c read instructions fail for some devices

I have managed to communicate with many i2c devices, see my videos:
https://www.youtube.com/watch?v=WQATfp2rR_Y&list=PL-WZxPxo1iaBRPJj_mS7feUh_gO6pn-Qe
However, I have failed to get a few devices to communicate with Agon. One example is the MPR121 touch sensor.
I get no errors from the MOS commands, the device is seen on the i2c bus, but no data (or perhaps just 0) is returned when data is requested. MOS fills the required buffer with 0s instead of the expected data
Background
For most simple devices, you write a command, followed by a read request.
The command is normally just the device's register you want to write to or read from.
So, you might write the byte 12 first, then when you read, you can read 1 or more bytes starting from register 12.
The bytes read end up in the buffer pointed to by HL.
For all of the devices in my videos, this works perfectly.
However, a few devices have not sent back the required data.
Problem
I suspect that the problem is that some devices expect the initial write to be followed immediately by the read instruction, without a break.
If we send a MOS write, followed by a MOS read, the 'STOP' code is included in between the two. Therefore, the command is not complected by the device.
In MOS we have just two instructions, write, and read. We do not have a 'read from register x' which could combine the two.
See p. 25 of the touch capacitor notes.
NOTE: these troublesome devices all worked fine with an Arduino, so I know the hardware is ok.

MPR121-cap sensor.pdf

Taking a guess here, that this device behaves a little different compared to most other I2C devices, in the sense that it expects a read command byte, followed by a RESTART. Most devices can do a read after a STOP sequence, but it looks like the MPR121 does that a little different.
Someone would need to have access to this device while observing it's behavior using a protocol analyzer, before any (if any) changes can be made to the driver state machine.

Thanks for your thoughts. You are correct, all the other devices in my videos worked fine with a STOP between the write and the read.
The other module I was trying was a very simple ambient light sensor. Again, worked fine on Arduino, but not on Agon. After many hours trying, I put it down to the same issue.

veml7700 light sensor.pdf

If we can somehow confirm this to be the case, preferably by analyzing the behavior over the line, a potential solution could be to create another API call next to the (currently very simple) write/read calls, combined with a I2C state-machine change, where the call flags a RESTART start to be applied during it's invocation.

Given that every device I have used (so far) needs a write register before reading, to say what register you want to start reading from, it makes sense to have an api call which does the two things in one.
eg:
0x??: mos_i2c_read+
Read a block of bytes from the I2C bus (Requires MOS 1.04 RC3 or above), starting at register A.
Parameters:
A: Register to start reading from
C: I2C Address
B: Number of bytes to read (maximum 32)
HL(U): Pointer to a buffer to write the bytes to
However, most devices have been ok with a write, then a separate read. Whether they would work ok with a joint command, I don't know.