XMQuaternionRotationRollPitchYaw

I am trying to use DirectXMath  but I am not sure  how it is suppose to be used,
Now I want to convert vector Rot to a quaternion
This is what doc says

XMVECTOR XM_CALLCONV XMQuaternionRotationRollPitchYaw(
float Pitch,
float Yaw,
float Roll
);
Parameters
Pitch
Angle of rotation around the x-axis, in radians.
Yaw
Angle of rotation around the y-axis, in radians.
Roll
XMVECTOR XM_CALLCONV XMQuaternionRotationRollPitchYawFromVector(
FXMVECTOR Angles
);
Parameters
Angles
3D vector containing the Euler angles in the order pitch, yaw, roll.
Angle of rotation around the z-axis, in radians.

I have vcRot= {fRotX,fRotY,fRotZ}, now these are the  pitch yaw roll respectively,
Now I am using any  dummy data say
float fRotX = 6.f, fRotY = 5.f, fRotZ = 7.f;
DirectX::XMVECTOR vcRot = DirectX::XMVectorSet(fRotX , fRotY,fRotZ,0);
DirectX::XMVECTOR qQuat= DirectX::XMQuaternionRotationRollPitchYawFromVector(vcRot);

I get

{0.313706458, 0.515175998, -0.199125499, -0.772354245}

I noticed if I used YZXW
DirectX::XMVECTOR vcRot = DirectX::XMVectorSet(fRotY, fRotZ,fRotX ,0);

I get  {0.594493330, -0.199125484, -0.101959631, -0.772354245}

Which is the expected result but in YZWX  but I dont understand why
in  physx SDK they have EulerAngleToQuat(const physx::PxVec3& rot)  and if I used it with the same dummy data as follows
physx::PxVec3 vcRot(radToDeg(6.f), radToDeg(5.f), radToDeg(7.f));
		physx::PxQuat	mQuat = EulerAngleToQuat(vcRot);

I get  {x=-0.101959720 y=0.594493270 z=-0.199125603 ...}

and I have an old math library, it shows the same result as physx  and I am showing physx as an example so no one say that my code is wrong
so if function like XMQuaternionRotationRollPitchYaw takes x y z or Pitch Yaw Roll why do i have to put y z x  or Yaw Roll Pitch  and why the quaternion is ordered in y z x w  or y x z w and not x y z w
according to Chuck Walbourn's blog

D3DXQuaternionRotationYawPitchRoll | XMQuaternionRotationRollPitchYaw (Note the order of parameters is different: D3DXMath takes yaw, pitch, roll, DirectXMath takes pitch, yaw, roll)

Both D3DXQuaternionRotationYawPitchRoll and XMQuaternionRotationRollPitchYaw compute the same value for the same rotation descriptions. The difference was simply in the naming scheme for describing the concatenation order.
Both functions compute the rotations in the order: roll first, then pitch, then yaw.

Where exactly did the EulerAngleToQuat function come from? It doesn't seem to be in the PhysX docs.

Where exactly did the EulerAngleToQuat function come from? It doesn't seem to be in the PhysX docs.

True It's not in their documentation but EulerAngleToQuat  can be found in SampleCharacterHelpers.cpp and  radToDeg and degToRad can be found here

Also, 6, 5, and 7 in radians is going to be confusing because it's more than full rotation. Try using values in the range of 0 to PI.

Sorry, I was using any pseudo random values to check whether the return of my function were correct. How about
using this range gives similar results in the X,Z, and the y is a tad off
DirectX::XMVECTOR vcRot = DirectX::XMVectorSet(fRotX, fRotY, fRotZ, 0);
DirectX::XMVECTOR qQuat = DirectX::XMQuaternionRotationRollPitchYawFromVector(vcRot);

Result
fRotX = 1.f, fRotY =3.f, fRotZ = 2.f;
   {0.754933715, 0.444435090, -0.206149250, 0.435952753}
fRotX = 2.f, fRotY =3.f, fRotZ = 2.f;
 {0.485670298, 0.241108164, -0.421349198, 0.726949632}
fRotX = 2.f, fRotY =3.f, fRotZ = 3.f;
{0.541809201, -0.0212504417, -0.0212504417, 0.839963913}
  physx::PxVec3 pxvcRot(radToDeg(1.f), radToDeg(3.f), radToDeg(2.f));
  physx::PxQuat	mQuat = EulerAngleToQuat(pxvcRot);

fRotX = 1.f, fRotY =3.f, fRotZ = 2.f;
   {x=-0.718287051 y=0.501509070 z=-0.206149220, w=0.435952842}
fRotX = 2.f, fRotY =3.f, fRotZ = 2.f;
   {x=-0.421349227 y=0.341282398 z=-0.421349198, w=0.726949751}
fRotX = 2.f, fRotY =3.f, fRotZ = 3.f;
{x=-0.533388197 y=0.0974979252 z=-0.0212504603, w=0.839963913}

OK, I've done some more digging, and I believe I have an answer for you.
The computation done by `XMQuaternionRotationRollPitchYawFromVector`` is the one from Wikipedia, i.e. the classic computation:
// cp = cos(pitch / 2);
// sp = sin(pitch / 2);
// cy = cos(yaw / 2);
// sy = sin(yaw / 2);
// cr = cos(roll / 2);
// sr = sin(roll / 2);

// q.w = cr * cp * cy + sr * sp * sy
// q.x = cr * sp * cy + sr * cp * sy
// q.y = cr * cp * sy - sr * sp * cy
// q.z = sr * cp * cy - cr * sp * sy

The difference is one of convention. The Wikipedia formulation from the NASA paper defines the axes labels as is common in aerospace modeling:

roll as x-axis
pitch as y-axis
yaw as z-axis

However, the DirectXMath convention follows the one more often used in games and was used in D3DXMath.

pitch as x-axis
yaw as y-axis
roll as z-axis


Create a descriptive README

README file needs to be fixed and provide installation and usage documentation

Updated to a more descriptive README


Can not edit the submitted workflow in oozie editor

HI:
I use HUE 3.9,
I create a workflow in oozie editor. and then submit the job.
But when I want to edit the submitted workflow in oozie editor, the workflow can not edit.
like the following image:

It only display the action menu and workflow name, can not edit the job content.
I checked the browser debug, it shows the error:

Some workflows I only get the workflow name in editor mode.

before the workflow submitted, the workflow can edit.
I find the issue:
https://issues.cloudera.org/browse/HUE-2972
They say the error in hue3.7, but I use HUE3.8.1, does not discover the questions.
In hue 3.9, I encounter the error.
does anyone know the issue?
thanks.

This is https://issues.cloudera.org/browse/HUE-3435 which is in master and Hue 3.10


Colored Spans

Adds colored spans that take priority over labels. Useful for showing correlation with suggestions / help text. Implements my issue in #96

Without the PR, using empty labels that result in a bunch of whitespace.

I wonder whether labels without a message should just default to this behaviour? That would seem sensible to me. What do you think?

I thought of that at first, but went this way because I like the intentionality behind it, but if you think empty labels would be better I am happy to rework this PR

I think that's probably preferable over adding another corner of the API. I highly doubt that "empty label that occupies space for no reason" is a desirable thing, so we might as well use that case for this.

Oh... why was this closed?

Doing this via labels was going to need more work than I want to put into it right now, and I am no longer using ariadne in my project


Mirror: Treat fields with type names we fail to demangle as empty.

And log a warning message that we're doing so.

@swift-ci Please smoke test


Can the model be modified for segmentation task?

Hi there, thanks for this nice work! I am trying to modify the Lite-HRNet model on my segmentation task with my own data, by replacing the head with a seg head to predict segmentation maps, as shown in the picture.

However, the results are pretty bad. I think the possible reasons are 1:) the model cannot be directly utilized for segmentation?If so, can you release the model for seg? 2:) the training is unstable due to the lack of pretrained weights? In this case, is it possible to release the ImgaNet pre-trained weights for Lite-HRNet, like the ones in https://github.com/HRNet/HRNet-Semantic-Segmentation?
Any kind of help or assistance is highly appreciated! Thanks in advance!

Similar to your method, it did not work well on my task, and the training was very slow.

Hi, kind of on the same boat. Segmentation results are much worse than what is reported despite the experiment setting being the same. Hope the authors release their segmentation code.

hope for a feasible solution


Metadata for tracking instance to deployed artifacts to enable service graphs

At the offsite, we discussed how to make service graphs.  We have almost everything we need in the current design except a way to map instances to instances.  Namespaces/label-selectors bind to instances so if we want to figure out the instance to instance binding, we need to have the instance to namespace/label-selector mapping so that we can traverse the chain (permissions allowing).
This is probably just a matter of storing one more piece of metadata somewhere on the binding operation.  This issue to to figure out the best implementation and to add that to the design.

/remove-lifecycle rotten
/lifecycle frozen

This project is being archived, closing open issues and PRs.
Please see this PR for more information: https://github.com/kubernetes/community/pull/6632
/close


Add option g:mediawiki_editor_path

Useful when using the plugin with any non-WMF wiki as exemplified in #2.

Sweet, thanks!


Use idempotency key when charging through Stripe to allow safe retries

When talking to the Stripe API we should use an idempotency_key, as per Stripe API docs and retry when appropriate to avoid e.g. rate limiting or other transitory errors.

Implemented in https://github.com/EuroPython/epcon/commit/6558044d058514592fb0017818a7e0ffdefe58af#diff-dee4dc929f350a50dd539f2373d1d628


How to actually display the push notification with NgServiceWorker

So, I followed the official guideline https://docs.google.com/document/d/1F0e0ROaZUnTFftmC0XovpREHWHjcXa4CggiFlmifjhw and I reached at some point this code:
this
     .sw
     .push
     .map(value => JSON.stringify(value))
     .subscribe(value => {
       console.log(value)
     });

When I generate a push message from the backend, then I actually see the value being logged (with the correct data). But how do I now display a Push Notification in the frontend?
The last step to add self.addEventListener('notificationclick) also works. If I add in the file custom-listeners.js the event self.addEventListener('push', function(event) { then the push message gets displayed. But without the push data....

If I trigger a push manually through google chrome dev console (by clicking on the "push" link) then the push gets displayed...

Hi Marc!
You don't have to add a listener for push event in NGSW, it's done automatically for you when you enable Push plugin by setting:
"push": {     "showNotifications": true   }
in your custom ngsw-manifest.json (in the project root)
If you did it, but for some reasons no notifications appear, please check, that this setting is actually in the production ngsw-manifest.json (the one in dist folder).
If it's not there, there could be some reasons:

wrong location or name of custom custom ngsw-manifest.json
bug of CLI 1.1.1 submitted here: https://github.com/angular/angular-cli/issues/6654

Thanks for the fast answer @webmaxru
I'm using CLI 1.04, so probably not a problem...
Bot the ngsw-manifest.json in the root + dist folder have:
  "push": {
    "showNotifications": true,
    "backgroundOnly": false
  },

Maybe the problem is because I have two modules?
The Service worker is used in my chat-module, which is imported from app-module. I have imported the import { ServiceWorkerModule } from '@angular/service-worker';

Showing the notification bubble should not depend on your client-side code at all: the code you posted as an example is optional (for the case when you have to keep an eye on push events in your app, in addition to popping up messages). I can have a closer look if you deploy your code somewhere (client-side is enough, there is Push emulator in DevTools)

Hmm, that wouldn't help you too much. Because if I emulate the client side push then it works. It just does not work if the push gets triggered from the backend.
I guess I will dig a bit deeper into the topic and post my results here...

If so, check the following: push message sent from backend should have a "notification" key in order to be processed and displayed by Angular service worker. This is not a part of Web Push API spec, but a convention for NGSW

@webmaxru you are right. The problem was in the backend: I did not add the notification property when sending the payload.
the object should look like this:
            notification: {
                title: 'asdf',
                "actions": [{
                    "action": "opentweet",
                    "title": "Open tweet"
                }],
                "body": "asdfasdf",
                data: roomId
            }

I did not have the notification object. Maybe you could add this to the docs? For the people who work with their own backend and did not clone your example code :)

It's mentioned in the doc, but maybe not so explicitly :) Good point.

Ah yeah it is. Then I'm just blind... Sorry :)

Thanks guys. I had this exact problem and this has solved it. I needed to wrap my payload in a notification:{}


Move TypeScript to devDependencies

Is your feature request related to a problem? Please describe.
Judging by https://bundlephobia.com/result?p=mikro-orm, TypeScript weighs 78% (2.20 MB) of the entire package for no apparent reason, and that's a terrible thing to be honest. I checked the module myself by putting TypeScript into devDependencies and it worked without any problems.
Describe the solution you'd like
Transfer TypeScript to devDependencies because it is only used during build.

for no apparent reason

The reason is ts-morph and its reflection. It is used for metadata discovery (aka when you call MikroORM.init) as well as in some CLI commands.

I checked the module myself by putting TypeScript into devDependencies and it worked without any problems.

I am pretty sure you did the test wrong - either you already had the cache generated, or you did install dev dependencies too (which is the default when you install deps on the package level afaik). Also, if you just moved typescript to dev deps, it won't help with anything, as ts-morph has direct dependency on it, so it will still be part of (normal) dependencies.
Personally I don't care much about this, as its backend package. In future, I can imagine ts-morph being optional (especially because you don't need it when you use vanilla JS only), but for that I'd like to convert this to monorepo and introduce multiple packages when one could simply omit (let's say) @mikro-orm/ts-reflection package which would depend on ts-morph. And that is really a store of future, there are more important things I want to work on now.


Upload new data

See procedure:

[x] 1
[x] 2
[x] 3
[x] 4
[x] 5
[x] 6
[x] 7
[x] 8
[x] 9
[x] 10
[x] 11
[x] 12
[x] 13
[x] 14
[x] 15
[x] 16
[x] 17
[x] 18
[x] 19

All new data has been imported in CartoDB, resulting in 2,628,568 records of which 2,485,749 are gulls. You can explore them at http://lifewatchinbo.github.io/bird-tracking/explorer/index.html


Feature/estate property master

To enforce naming convention.
The top level should be called EstateProperties and not Estate.
Each of file names should start with a capital letter.


library UI rework

Looking for some feedback on this, @derneuere :)
Thanks!

Please resolve conflicts and mark PR as ready for review when it's ready, at the moment it is a draft.
For the change itself:

I think the status for Nextcloud should not be set to ready while the directory listing is being retrieved. Currently, it's displaying different color icon when directory retrieval is in progress.
The Nextcloud status icon should not be a button.
Something need to be done with the button to change Nextcloud directory (see attached image). It won't fit nicely if the folder name is long.
Question mark icon next to Scan Library heading on the dark theme is barely visible
The info icon on faces tile serves little purpose. Instead, you could display a dropdown with statistics for faces when mouse hovering on the tile. If on mobile this will work by tapping on the tile then it's fine, otherwise I would not bother making it work there. I think cleaner interface is more important than showing everything on already restricted real estate space.

Ok, so 4b1ea62 addresses most of the feedback.

Faces info button is removed in favor of the complete info card being an hoverable element.

Changed the nextcloud status info with a badge, it reads from userSelfDetails.nextcloud_scan_directory. If not set, it shows "disconnected". If set shows "ok".
Moved the information about what folder is actually selected to the second line of the label on the left instead of it being inside the button. Button always show "browse" now.

Still need to resolve conflicts, though.

I'll test it as soon as it's rebased

Still unsure on what to do about the newly introduced strings. Do I have to manually get them into en/translation.json? How do they propagate to the other language .json files?

I like the rework. Nice one.  I noticed a couple more things.

The buttons do not look obvious, could you try adding an outline?
To make it clearer, the status of Nextcloud could say “not connected”/“disconnected”, “connecting” and “connected”. Also, the colors could indicate the status. e.g., red, yellow/orange, and green respectively.

Another comment from me: I think the merge went wrong, it seems to undo most of the bug fixes I made / the new motion images feature

You're absolutely right I think i messed that up. Should be ok now?

Ah, you probably did not get a notification.
Looks good to me, if you address the points @sickelap  made, I will merge it :)

Colors are coming from nextcloudStatusColor.
Buttons have been changed to outline
Nextcloud status now has Connecting, connected, error.

Thanks for the update. I tested and would like to suggest changing the text “Error” to “Not Connected” as it is better UX, especially because we are not explaining what the error actually is.

Thanks for the update. I tested and would like to suggest changing the text “Error” to “Not Connected” as it is better UX, especially because we are not explaining what the error actually is.

done.
Still need some help with out to get the strings out of the code and into the i18n system, otherwise this looks like it's done.

There are two keys for Nextcloud in i18n that are already defined. settings.nextcloudloggedin and settings.nextcloudnotloggedin. They have content "OK" and "Dicsonnected" in English. You could update "OK" one to "Connected" and add another key, say settings.nextcloudconnecting with content of "Connecting".
And the use would be like so:
                {isNextcloudFetching && t("settings.nextcloudconnecting")}
                {isNextcloudSuccess && !isNextcloudFetching && t("settings.nextcloudloggedin")}
                {isNextcloudError && t("settings.nextcloudnotloggedin")}

Until translated, other languages will see the content key only. That means in language where the has not been translated the content will show as settings.nextcloudconnecting

Thanks @sickelap :) Pushed. Ready to merge.

👍


Fixed #1205, removed image style in preview page

Thank you for your contribution!
I'll notify you after version update.


update documents and rename dc.factory to dc._factory

Signed-off-by: reiase<EMAIL_ADDRESS>

Codecov Report

Merging #997 (e275dcb) into main (1445f62) will increase coverage by 0.08%.
The diff coverage is 91.89%.

@@            Coverage Diff             @@
##             main     #997      +/-   ##
==========================================
+ Coverage   68.80%   68.89%   +0.08%
==========================================
  Files         210      208       -2
  Lines        9410     9398      -12
  Branches     1561     1559       -2
==========================================
  Hits         6475     6475
+ Misses       2480     2468      -12
  Partials      455      455

Impacted Files
Coverage Δ

towhee/functional/mixins/dataset.py
47.72% <0.00%> (ø)

towhee/functional/mixins/parallel.py
55.42% <60.00%> (ø)

towhee/functional/data_collection.py
91.80% <100.00%> (ø)

towhee/functional/mixins/display.py
66.09% <100.00%> (ø)

towhee/functional/mixins/entity_mixin.py
92.59% <100.00%> (ø)

towhee/functional/mixins/state.py
70.45% <100.00%> (ø)

towhee/hub/builtin/operators/feature_engineer.py
34.00% <100.00%> (ø)

towhee/hub/builtin/operators/runas_op.py
72.72% <100.00%> (ø)

towhee/hub/builtin/operators/sklearn.py
42.62% <100.00%> (ø)

Continue to review full report at Codecov.

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

/approve
/lgtm


fix(devtools-view): Fix color of the action button after closing the container

Description
https://dev.azure.com/fluidframework/internal/_workitems/edit/4679/
When using the High Contrast theme, the action buttons appear in green after closing the container (disabling the button). This PR fixes the color from green to light grey.

I think we can be a bit more thorough about how this change is applied by doing something like this.
colorNeutralStrokeDisabled and colorNeutralForegroundDisabled are the tokens that seem relevant to this, so we could just update the value of the token and that will apply to the theme as a whole, wherever we happen to disable something, instead of having to apply special styling conditional on things being disabled.

@alexvy86 Thank you so much for the feedback. Changing ThemeHelper makes this approach a lot easier and consistent 🐐 !


fixing ci - docker dependency

Pull Request check-list
Please make sure to review and check all of these items:

[ ] Does $ tox pass with this change (including linting)?
[ ] Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
[ ] Is the new or changed code fully tested?
[ ] Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
[ ] Is there an example added to the examples folder (if applicable)?
[ ] Was the change added to CHANGES file?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
https://github.com/redis/redis-py/pull/2748

Codecov Report

:exclamation: No coverage uploaded for pull request base (4.4@d6ef268). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@          Coverage Diff           @@
##             4.4       #6   +/-   ##
======================================
  Coverage       ?   60.79%
======================================
  Files          ?      116
  Lines          ?    29840
  Branches       ?        0
======================================
  Hits           ?    18140
  Misses         ?    11700
  Partials       ?        0

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


PartialEq between reference and non-reference type?

I'm not sure, if that's intended, but it's "impossible" to compare a reference type with a non-reference type via PartialEq. Short example code:
let a = 3;
let b = 4;
&a == &b; // works
a == &b;   // doesn't work

This should work in my opinion. There already are these impls in std (I removed some noise -- original):
impl<A, B> PartialEq<&    B> for &    A where A: PartialEq<B>
impl<A, B> PartialEq<&mut B> for &mut A where A: PartialEq<B>
impl<A, B> PartialEq<&mut B> for &    A where A: PartialEq<B>
impl<A, B> PartialEq<&    B> for &mut A where A: PartialEq<B>

The third line in my example works because of this.
Why not something like this?
impl<A, B> PartialEq<&B> for  A where A: PartialEq<B>
impl<A, B> PartialEq< B> for &A where A: PartialEq<B>

Or do I misunderstand something?

Trait coherence prevents it :(
See https://github.com/rust-lang/rust/pull/23521 for one (unsuccessful) attempt to fix it with help of OIBITs.
I'll try again when specialization is implemented.

@petrochenkov It seems like specialization is mostly implemented (tracking issue, PR). I just came across this issue again and wanted to ask if there's anything new? :)

I'm not sure specialisation helps in this situation. The problem as I see it is that if you something where: A: PartialEq<B> implies A: PartialEq<&B> and &A: PartialEq<B>, then there arise two ways to get to &A: PartialEq<&B> (depending on the order you apply the impls). These implementations are conflicting, even if you have a more specialised &A: PartialEq<&B> impl, because specialisation doesn't address this sort of case. What you want is some way for specialisation to "cover" the conflict-cases for multiple traits.

Would something like https://github.com/rust-lang/rust/issues/42721 help there? (Referring to EDIT: Alternatively, if you could specify that a trait only applies to non-reference types)


Write a C# program to print fibonacci series by recursion

Description
Write a C# program to print fibonacci series by recursion
Input  : 5
Output : 0 1 1 2 3

How to contribute

Save the solution in PrintFibonacciSeriesByRecursion.cs file
Add PrintFibonacciSeriesByRecursion.cs file in print-fibonacci-series-by-recursion folder

!assign

Hey @sirshakbohara,
This issue has been assigned to you for more than 15 days.
We are unassigning you from this issue.
If you are still interested in contributing to this issue, please get auto-assigned on the issue by commenting !assign again.
Thanks for your contributions :)

!assign

@harshraj8843  I have submitted a PR #7206 kindly review.


CI: service images are cached from previous builds?

something strange is happening on our CI system, I'm not sure if this is an edge case or an actual issue.
The situation is this:

we merged https://github.com/uselagoon/lagoon/pull/2797 11 days ago
since then the ci tests all where able to install lagoon-core
running it locally with a complete fresh build cache, we had an error:

❯ rm build/keycloak-db

❯ make build/keycloak-db
DOCKER_SCAN_SUGGEST=false docker build --quiet --build-arg LAGOON_VERSION=development --build-arg IMAGE_REPO=lagoon --build-arg UPSTREAM_REPO=uselagoon --build-arg UPSTREAM_TAG=latest -t lagoon/keycloak-db -f services/keycloak-db/Dockerfile services/keycloak-db
sha256:27fd999bd60473b16c1b3c308b44dd980d1e2cb7c1878fe56c62958a8438738e
touch build/keycloak-db

❯ docker run --rm -it --user 10000 lagoon/keycloak-db
2021/08/30 15:47:45 [ ERROR ] Error while parsing '/etc/mysql/conf.d/my_query-cache.cnf': open /etc/mysql/conf.d/my_query-cache.cnf: permission denied

but running the latest testlagoon/keycloak-db:main (which was pushed the last time main was built, therefore including this code), it ran though:

❯ docker run --rm -it --user 10000 testlagoon/keycloak-db:main
MySQL data directory not found, creating initial DBs
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...

so this leads me to believe that a CI run is not actually rebuilding the images? I see that we only clear the build cache when we build a tag:
https://github.com/uselagoon/lagoon/blob/54ebf7f0285643573620b70d9c09efab88fad121/Jenkinsfile#L26-L29
which I think is fine, but even as the Dockerfile has a new content it should rebuild the images, leading me to believe that there is maybe just an edge case where the docker host has something strangely cached?

I've looked at this a little bit, and still trying to get my head around the best way.
obviously adding --pull into the docker build command would always refresh from the upstream, but docker build --pull errors with local-only images :cry:
The other way would be to clear out all images ahead of a build (as we do for tag builds) - but I'm still not entirely clear that this actually removes all images (currently looking at this).
I'l have a bit more of a think.

I also looked at containrrr/watchtower but that only worked on running containers.
We can maybe repurpose the script used in docker-host to refresh the non-Jenkins ones.

here's a hack, maybe we can put something like this into the Jenkinsfile?
bash -c "echo \"$(awk '/^FROM ..UPSTREAM_REPO/ { print $2 }' $(find . -type f -name Dockerfile))\"" | xargs -tn1 -P8 docker pull -q

of course, we could probably mitigate this by pinning the images - I hear there are some wise words in https://dev.to/uselagoon/automating-updates-from-upstream-source-images-20ee :grinning:

I fixed this!


Switch to GPL License

The Drupal project considers any module that consumes the Drupal API to be a derivative work and therefore must be licensed under the GPL.
The license file was also removed because this will be added by the packaging scripts on Drupal.org when the module is published there.
See: https://www.drupal.org/licensing/faq#q7

Great, thanks!


Code/cleanup

Just some general golang code cleanliness. Consider it a facelift.

So I'm gonna close this without merging, not because I don't appreciate the love, but I made a bunch of other changes that go hand in hand with these. All the :heart: though, this was a really great reference for me.

@mattjay


etcd: Implement PersistConnection config option

This makes keep alive connections configurable for etcd client.
Signed-off-by: Prashanth Pai<EMAIL_ADDRESS>

@sanimej Could you review this please ?

@sanimej Bump. This PR needs some review love :) I prefer to not maintain my fork and use that.


Improve the playground toolbar's appearance

Right now the Github playground toolbar is far too wide. We should have "Insert:" option with a "…" button like Quip does for all the different things you can insert and the width of the toolbar should be brought down in width (800px was okay?). Also I'm not sure why we have four options for alignment, that should be a dropdown, as only one can be active at a time.

#1662


new rubric for open online training classes

The application form for open instructor training should be changed to look like what's shown below.
We need to be able to add scores to training applications.

This is a big one...
Apply for Instructor Training
=============================

Our instructor training classes are for people who wish to learn how to
teach Software Carpentry and Data Carpentry workshops. We teach
impactful pedagogical techniques and prepare you to become an instructor
in our community. We use this form to register interest and build new
communities of instructors around the world.

If you wish to apply to our open instructor training program, please
fill in the form below. Tell us about yourself, what excites you about
teaching, how Software and Data Carpentry can help in your community.
Spaces are limited, so use this form to share with us what excites you
about spreading our teaching to your organization. We will notify
applicants as limited spaces become available. If you have any
questions, please mail<EMAIL_ADDRESS>
If you would like to accelerate the process, check out our
[partnership program](http://software-carpentry.org/scf/join/).
Organizational partners make ongoing commitments to supporting our
organization and are prioritized for instructor training. If you need
help making the case at your organization, feel free to contact us at
<EMAIL_ADDRESS>we'd be happy to help.

Please note that as a condition of taking this training:

-   You are required to abide by our code of conduct, which can be found
    at <http://software-carpentry.org/conduct/> and
    <http://datacarpentry.org/code-of-conduct/>.
 The tasks are described at
    <http://swcarpentry.github.io/instructor-training/checkout/>, and
    take a total of approximately 8-10 hours.
-   You are expected to teach at a Software Carpentry or Data Carpentry
    workshop within 12 months of the course.

For more information on Software and Data Carpentry instructor training,
please see <http://swcarpentry.github.io/instructor-training/>.

> Applications for the open Fall 2016 online instructor training class are
> now closed, but we are still accepting applications for subsequent
> classes to be scheduled.
>
> If you are scheduled to receive training at a partner site, and have
> been asked to fill in this form to give us information about yourself,
> please do so and we will follow up when your site's training has been
> scheduled.

01. Group name: [____________________]
  If you are applying at the same time as friends or colleagues, pick
  a name for your group (e.g., the name of your institution) and fill
  that in, and we will try to put you in the same training class.

02. Personal (given) name: [____________________]

03. Family name (surname): [____________________]

04. Email address: [____________________]

05. GitHub username: [____________________]

06. What is your current occupation/career stage?
  Please choose the one that best describes you.

[_] Prefer not to say
[_] Undergraduate student
[_] Graduate student
[_] Post-doctoral researcher
[_] Faculty
[_] Research staff (including research programmer)
[_] Support staff (including technical support)
[_] Librarian/archivist
[_] Commercial software developer
[_] Other [____________________]

07. Affiliation: [____________________]

08. Location: [____________________]
  Please give city, and province or state if applicable

09. Country: [--pulldown--]

10. [_] This a smaller, remote, or less affluent institution.
  Software and Data Carpentry strive to make workshops accessible to
  as many people as possible, in as wide a variety of situations as
  possible.

> Award +1 for outside Europe/UK/US/Canada/Australia/New Zealand.
> *or*
> Award +1 for being in smaller/remote/less affluent institution within EU/UK/US/Can/Aus/NZ.

11. Areas of expertise:
  Please check all that apply.

[_] Chemistry
[_] Civil, mechanical, chemical, or nuclear engineering
[_] Computer science/electrical engineering
[_] Economics/business
[_] Education
[_] Genetics, genomics, bioinformatics
[_] High performance computing
[_] Humanities
[_] Library and information science
[_] Mathematics/statistics
[_] Medicine
[_] Organismal biology (ecology, botany, zoology, microbiology)
[_] Physics
[_] Planetary sciences (geology, climatology, oceanography, etc.)
[_] Psychology/neuroscience
[_] Social sciences
[_] Space sciences

Other areas of expertise: [____________________]

> Award +1 for being in economics or social sciences, arts,
> humanities, or library science (domains where we wish to expand).

12. [_] I self-identify as a member of a group that is under-represented
        in research and/or computing, e.g., women, ethnic minorities, LGBTQ,
        etc.
Details: [____________________]

13. [_] I have been an active contributor to other volunteer or
        non-profit groups with significant teaching or training components.
  Data and Software Carpentry
Details: [____________________]

> Optionally award +1 for each response (maximum of +2).

14. How often have you been involved with Software Carpentry or Data
    Carpentry in the following ways?

[_] Helper
[_] Instructor
[_] Workshop host
[_] Learner
[_] Workshop organizer
[_] Contributed to lesson materials

> Score +1 for each previous involvement up to a maximum bonus of +3.

15. Previous formal training as a teacher or instructor.

[_] None
[_] A few hours
[_] A workshop
[_] A certification or short course
[_] A full degree
[_] Other: [____________________]

Description of your previous training in teaching:
[____________________]

> Award +1 for "a certification or short course" or "a full degree"

16. Previous experience in teaching.
  Please include teaching experience at any level from grade school
  to post-secondary education.

[_] None
[_] A few hours
[_] A workshop (full day or longer)
[_] Teaching assistant for a full course
[_] Primary instructor for a full course
[_] Other: [____________________]

Description of your previous experience in teaching:
[____________________]

> Award +1 for "TA for full course" or "primary instructor for full course".

17. How frequently do you work with the tools that Data Carpentry and
    Software Carpentry teach, such as R, Python, MATLAB, Perl, SQL,
    Git, OpenRefine, and the Unix Shell?

18. How often would you expect to teach on Software or Data Carpentry
    Workshops after this training?

[_] Not at all
[_] Once a year
[_] Several times a year
[_] Other: [____________________]

19. How frequently would you be able to travel to teach such classes?

[_] Not at all
[_] Once a year
[_] Several times a year
[_] Other: [____________________]

20. Why do you want to attend this training course?
[____________________]

21. What else should we know about you?
[____________________]

> Award -3 to +3 based on responses to "why do you want to attend" and
> "what else should we know".

[_] I have read and agree to [the Software Carpentry Foundation's data
    privacy policy](https://software-carpentry.org/privacy/).

[_] I agree to abide by Software and Data Carpentry's Code of Conduct
    The Code of Conduct can be found at
    <http://software-carpentry.org/conduct/>and
    <http://datacarpentry.org/code-of-conduct/>.

[_] I agree to complete this training within three months of the training
    course.  The completion steps are described at
    <http://swcarpentry.github.io/instructor-training/checkout/> and take a
    total of approximately 8-10 hours.

[_] I agree to teach a Software Carpentry or Data Carpentry workshop
    within 12 months of this Training Course

@maneesha can you please decide when you want this in the development schedule, and what mechanics you want for manual scoring of applications?  In particular, do you want to maintain multiple scores from different evaluators (as we did in the last round of open training)?

To sum up, the required changes in the form are:

[ ] After country pulldown, add a checkbox:

10. [_] This a smaller, remote, or less affluent institution.
  Software and Data Carpentry strive to make workshops accessible to
  as many people as possible, in as wide a variety of situations as
  possible.

[ ] After areas of expertise, add:

12. [_] I self-identify as a member of a group that is under-represented
        in research and/or computing, e.g., women, ethnic minorities, LGBTQ,
        etc.
Details: [____________________]

13. [_] I have been an active contributor to other volunteer or
        non-profit groups with significant teaching or training components.
  Data and Software Carpentry
Details: [____________________]

[ ] Remove gender (@gvwilson could you confirm that removing gender is intended?)

[ ] In "previous training in teaching", rename "A few days" to "A workshop".

[ ] Rename "Previous training in teaching" to "Previous formal training as a teacher or instructor",

[ ] In "previous experience in teaching", add help text: "Please include teaching experience at any level from grade school to post-secondary education."

[ ] In "previous experience in teaching", change options to:

[_] None
[_] A few hours
[_] A workshop (full day or longer)
[_] Teaching assistant for a full course
[_] Primary instructor for a full course
[_] Other: [____________________]

[ ] Rename "How frequently do you use Python, R or Matlab?" to "How frequently do you work with the tools that Data Carpentry and Software Carpentry teach, such as R, Python, MATLAB, Perl, SQL, Git, OpenRefine, and the Unix Shell?"

[ ] In "How often would you expect to teach on Software or Data Carpentry Workshops after this training?", remove "primary occupation" option.

[ ] Move "Why do you want to attend this training course?" textarea after "How frequently would you be able to travel to teach such classes?".

[ ] Rename "Anything else?" to "What else should we know about you?"

[ ] Rename "Explanation of *" to "Description of *".

Non-trivial migrations required:

[ ] Map records with teaching_frequency_expectation == 'Primary occupation' to 'other: primary occupation'.

[ ] Map "previous experience in teaching" from old options (1. none / 2. have taught for a few hours / 3. have taught entire courses / 4. other) to new options (A. none / B. a few hours / C. a workshop / D. teaching assistant for a full course / E. primary instructor for a full course / F. other) in the following way: 1A, 2B, 3F, 4F.

The automatic scoring rules are:

[ ] +1 for outside Europe/UK/US/Canada/Australia/New Zealand
[ ] +1 for small/remote/less affluent institution within Europe/UK/US/Canada/Australia/New Zealand
[ ] +1 for being in economics or social sciences, arts, humanities, or library science
[ ] +1 for each previous SWC involvement up to a maximum bonus of +3
[ ] +1 for "a certification or short course" or "a full degree" in "Previous formal training as a teacher or instructor."
[ ] +1 for "teaching assistant for full course" or "primary instructor for full course" in "Previous experience in teaching".
[ ] +1 for "every day" or "a few times a week" in "How frequently do you work with the tools that Data Carpentry and Software Carpentry teach, such as R, Python, MATLAB, Perl, SQL, Git, OpenRefine, and the Unix Shell?"

Admins can manually award additional points:

[ ] +1 if under-represented group
[ ] +1 if active contributor to other volunteer or non-profit groups with significant teaching or training components.
[ ] from -3 to +3 points based on responses to "why do you want to attend" and "what else should we know".

@maneesha will decide the mechanics for manual scoring (multiple scores from different evaluators?).

@maneesha @tracykteal do you still want to pursue this change?

Including @ErinBecker  and @karenword on this as they work most closely on these applications


Delete a useless line

It seems that if this useless line not deleted, this string.xml will not be added to the installation package when compiling.
Then there will be no Chinese translation in the software.

@yzqzss please can you clarify what the issue is with the deleted line? I can see that in strings.xml that line doesn't exist so am happy to merge, however, I seem to be compiling fine and seeing the Chinese translation working as expected.
How can I reproduce?

I compiled it again.
Found that this line did not cause any compilation problems. Maybe it’s just my compilationg configuration problem before. Anyway, you can use HEX EDITOR to see the line.

I compiled it again.
Found that this line did not cause any compilation problems. Maybe it’s just my compilationg configuration problem before. Anyway, you can use HEX EDITOR to see the line.


fix(version): update fabric8-stack-analysis-ui to 0.1.13

There were the following issues with your Pull Request

Commit: 6d25c18af5dedbee31e71e1ca0a27fca9b946d53
Your subject line is longer than 50 characters

Guidelines are available at https://github.com/fabric8io/fabric8-ui

This message was auto-generated by https://gitcop.com

@fabric8cd snapshot fabric8-ui is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-797-fabric8-ui.int.rdu2c.fabric8.io


product.available set to "0" if is_closeout IS NULL instead of "0"

If {{product.is_closeout}} is set to {{NULL}} instead of “0” (through API or such), {{product.available}} will be automatically set “0”, leading to products not being available in the storefront anymore.
Therefore, the value {{NULL}} must be taken into account in the following calculation within the StockStorage.php line 104
{code:php}SET product.available = IFNULL((
IFNULL(product.is_closeout, parent.is_closeout) * product.stock

=
IFNULL(product.is_closeout, parent.is_closeout) * IFNULL(product.min_purchase, parent.min_purchase)
), 0){code}

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-39546
[created from NEXT-39546, comment 512230]

Please take into account to make the Shopware Commercial (Multiwarehouse) plugin have the same logic as Shopware basic.
Currently the only logic in Multiwarehouse is:    $available = $stock >= (int) $product->getMinPurchase();

[public]

FixVersion Change: <IP_ADDRESS>

This issue will be / was solved in Shopware version <IP_ADDRESS>.
[created from NEXT-39546, comment 516968]


Code cleanup

Hi @lewis,
I saw on sonarcloud.io you have a Java project with Bugs (E) and Vulnerabilities (D) and New Debt (B)
And 0% coverage.
I thought I help you to clean it up. 😉

Codecov Report

Merging #214 into master will increase coverage by <.01%.
The diff coverage is 1.61%.

@@             Coverage Diff             @@
##             master    #214      +/-   ##
===========================================
+ Coverage      1.73%   1.73%   +<.01%
  Complexity       28      28
===========================================
  Files            79      79
  Lines          5020    5011       -9
  Branches        641     639       -2
===========================================
  Hits             87      87
+ Misses         4921    4912       -9
  Partials         12      12


offline Game and Security #115

Hi, Referring to #115,  If we use Springroll Studio to play the content locally, how can we secure the assets? Is there a way to encrypt the package and Decrypt while playing?

Duplicate of #115


Search Service Application upgrade should not contain .ForceResume(0x02)

Resuming the Search Service Application with .ForceResume(0x02) leaves the Search Service Application in "Paused for: External request" administrative status. This should only be used in certain cases. $ssa.Resume() is sufficient here.

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

ID: b67cc68b-2d40-7d78-9ae5-a71938b6fa78
Version Independent ID: 52fd8de6-598e-7672-eb34-2fa7a46b0182
Content: Upgrade service applications to SharePoint Server 2016
Content Source: SharePoint/SharePointServer/upgrade-and-update/upgrade-service-applications-to-sharepoint-server-2016.md
Product: sharepoint-server-itpro
GitHub Login: @Techwriter40
Microsoft Alias: kirks

@Pillen, thank you for your comment. If possible, can you please submit this as a Pull request. I will close this comment. thanks.


Release v232 for mainnet

Description of proposed changes

Practical tips for PR review & merge:

[ ] All GitHub Actions report PASS
[ ] Newly added code/functions have unit tests

[ ] Coverage tools report all newly added lines as covered
[ ] The positive scenario is exercised
[ ] Negative scenarios are exercised, e.g. assert on all possible errors
[ ] Assert on events triggered if applicable
[ ] Assert on changes made to storage if applicable

[ ] Modified behavior/functions - try to make sure above test items are covered
[ ] Integration tests are added if applicable/needed

We're currently processing your upload.  This comment will be updated when the results are available.


add VietNam Australia Fast Track Program

Hi,
This is add domain name for VietNam Australia Fast Track Program
General information: https://fasttrack.edu.vn/
Please check and merge my branch, thanks.
Thank

@tranhuulongcit According to our investigation, this school is not a university, not a college providing a full-time long-term education in IT. I have to close this request without merging.
This school is more like a training center. JetBrains has another option for this kind of organizations.
Please apply for an appropriate licensing option (which may also be free) at https://www.jetbrains.com/community/education/#courses
Thank you for your understanding!


Add standardSize URL args to force 1024x1024 per eye

This is useful for tests to get comparable results across different devices or
varying HMDs where the recommended resolution may differ. Update the samples
index page to use this, and also use more reasonable example parameters that
make it possible to reach 60fps on slower hardware such as mobile.
Also uploaded to a local fork for testing: https://klausw.github.io/webvr.info/samples/

LGTM, thanks!


exceljs parse file error: Uncaught (in promise) TypeError: Cannot read property 'company' of undefined

error:
Uncaught (in promise) TypeError: Cannot read property 'company' of undefined
test case file:
xlsx file
it test in browser.

i have the same problem, it is same as 865
did you found the solution?

Tried latest version (4.1.1) but without success, any solution?

I found a temporary method available. Open this file with Excel, and then do nothing, just perform a save operation, and use it later, there will be no error.

Did someone find a workaround? I'm unable to open excel files and I cannot use the solution of @Kannnnng because I have a hundred of them...


lowercase_constants: Enable different casing for true/false and null constants.

In the company where I work, we use lowercase true/false constants and uppercase NULL constant. Since lowercase_constants cannot differentiate between those, it is impossible for us to set proper rules.
Could you add the option to set different casing for null and true/false?

big :-1:
it's violating PSR-2 in general and consistency of casing those trivials

lets see if there is a bigger community which follows this conversion, till than I'm +0

I'm closing this as there does not seem a bigger use of this standard. This doesn't mean I'm judging the standard wrong or whatever.
However the scope of this project is to provide a way to fix PHP code to a wide used standard. Besides advocating usage of wide used standards it is also we'll have more support for maintaining code related to such standards as there is a bigger community interest in it.
You can always create a custom fixer to suit your project needs, copy-pasting the fixer, renaming it and adjust it to fix null to uppercase shouldn't be hard. If you decide to give it a try please let me know if you want me to help out with if you get stuck with it.

Thank you for your comments. We've discussed this and ended up changing the standard, so our code uses all these constants in lowercase 🙂

great to hear :)  thanks for reporting back!


Add missing required field to library.properties

When a required field is missing the Arduino IDE does not recognize the library:

Sketch > Include Library > Add .ZIP Library fails silently.
Compilation of any code that includes the library fails.
After manual installation, "Missing 'maintainer' from library" warnings are shown every time the libraries are scanned.
Library Manager inclusion request is blocked.

Thx. I wondered if maintainer is mandatory. Now I know!


Trials still enabled on death

I have always had this issue where on the prop team if you die with a trail on the trail does not holster but on the hunter side the trail holsters, I also have this issue on TTT where after you die with a trail it does not holster it.. These issues have always been there and I have made some threads on facepunch with noone actually helping out or solving this issue.
Is there a way to fix this?
Thanks
~M21z

bumb?

Im pretty sure the bug has to do with the prop team

I've had the same problem. Seems to mostly happen first time someone with a trail joins (on Murder) but it doesn't appear to happen consistently.
Haven't seen much of it the last few months tho.


Change calendar field to unused index

The calendar field is currently assigned to field 11, but this was previously used for stripeStatisticsLength and then removed with https://github.com/apache/orc/commit/548050271e5869bc6a5b4c8b735927d6d0721062#diff-f1e26f33ad210dfde6ab7123c7feb835L364

Apologies for reusing the field number, but the old usage was never released while the new one has been. To change the field number now would cause compatibility problems.
Did Presto produce files with the old attribute?

No it didn't effect me.  I though you folks might not have noticed this (and if so we could fix it before a release went out).  Good to hear that this wasn't released.  Thanks!


Compiling now requires Boost >= 1.58

Was this intentional? I remember @theoreticalbts saying something about how after 1.57 Boost gets complicated to build or something, just wanna make sure I actually need it before upgrading.
-- Using custom FindBoost.cmake
CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:1129 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.57.0

  Boost include path: /home/sigve/opt/boost_1_57_0/include

  Detected version of Boost is too old.  Requested version was 1.58 (or
  newer).

Not a C++ coder, but I am certain BM knows what he does:
This is the corresponding commit:
https://github.com/cryptonomex/graphene/commit/8efa2e673856f61fac2c283b3b5766ceb1749af7

Right you are, thanks! I'll just close this then I guess

Just referencing what @theoreticalbts had to say about 1.58:

(Note, 1.58.0 requires C++14 and will not build on Ubuntu LTS; this requirement was an accident, see )

Trying to build it now, will update here with the results.

I was able to build Boost 1.58.0 under Ubuntu 15 without issue, however compiling the toolkit now fails but I'm not sure it's related to Boost

I get that error even after sudo apt-get autoremove libboost-dev; sudo add-apt-repository ppa:boost-latest/ppa; sudo apt-get install libboost1.55-all-dev libboost1.55-tools-dev libboost1.55-doc libboost1.55-dbg libboost1.55-dev on ubuntu 14 lts, what's the problem here? (same story on debian jesse)

@cryptid11 just follow the doc https://github.com/cryptonomex/graphene/wiki/build-ubuntu, skip the Qt steps. Probably you need to rebuild boost.

After that (but with 1.60 version https://steem.io/documentation/how-to-build/ that I find meanwhile) I get:
CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:1129 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:80 (FIND_PACKAGE)

-- Using custom FindBoost.cmake
CMake Error at libraries/fc/CMakeModules/FindBoost.cmake:1129 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:84 (FIND_PACKAGE)


vaporpychecker dumps core

vaporpychecker is currently broken on our CentOS installer.  Note: The python engine seems to still be functional.
[vapor2@localhost jan26]$ ./VAPOR3-3.3.0-Linux/bin/vaporpychecker
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f5658018780 (most recent call first):
Aborted (core dumped)

It's still there :\

Works for me on both Casper and on a fresh CentOS install.


Strange syntax error (related to jsonp)

So I'm getting a very strange syntax error whenever I try to use the addToMailchimp function in my code. Same error comes up when I tried use jsonp to submit the form so these might be related.
Here's the error I get in the browser's console:
Uncaught SyntaxError: Unexpected token .
As you can see, it's very vague, so it'll probably help if I share my component's code. I'm using Formik as a dependency so that might also be part of the problem although I can't see why (my solution worked on older versions of the plugin).
Here's the relevant dependencies I have:
"formik": "^1.3.2",
"gatsby": "^2.0.55",
"gatsby-plugin-mailchimp": "^4.0.0",
"react": "^16.5.1",
"yup": "^0.26.6"

Here's how my form component looks like:
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import addToMailchimp from 'gatsby-plugin-mailchimp';
import { Formik } from 'formik';

import { NewsletterContainer, NewsletterField, NewsletterInput, NewsletterButton, NewsletterInfo } from './newsletter.css';
import { validateEmail } from 'utils/validation';

class FormNewsletter extends Component {
  static propTypes = {
    action: PropTypes.string,
    method: PropTypes.string,
    name: PropTypes.string,
    pending: PropTypes.string,
    pass: PropTypes.string,
    fail: PropTypes.string,
    button: PropTypes.string,
    field: PropTypes.shape({
      type: PropTypes.string,
      name: PropTypes.string,
      placeholder: PropTypes.string,
    }),
  };

  state = {
    message: null,
    result: null,
  };

  handleFormSubmit = (payload, actions) => {
    addToMailchimp(payload.email).then(data => {
      if (data.result === 'success') actions.resetForm();

      actions.setSubmitting(false);
      this.setState({
        result: data.result,
        message: data.msg,
      });
    });
  };

  render() {
    const { message, result, status } = this.state;
    const { action, method, name, button, field } = this.props;

    return (
      <Formik
        displayName={name}
        initialValues={{ email: '' }}
        validate={validateEmail}
        onSubmit={this.handleFormSubmit}
        render={({
          errors,
          touched,
          values,
          handleBlur,
          handleChange,
          handleSubmit,
        }) => (
            <NewsletterContainer
              action={action}
              method={method}
              name={name}
              onSubmit={handleSubmit}
            >
              <NewsletterField>
                <NewsletterInput
                  type={field.type}
                  name={field.name}
                  placeholder={field.placeholder}
                  value={values.email}
                  onChange={handleChange}
                  onBlur={handleBlur}
                />
                <NewsletterButton
                  type="submit"
                >
                  {button}
                </NewsletterButton>
              </NewsletterField>
              {errors.email && touched.email && (
                <NewsletterInfo>
                  {errors.email}
                </NewsletterInfo>
              )}
              {result && message && (
                <NewsletterInfo>
                  {message}
                </NewsletterInfo>
              )}
            </NewsletterContainer>
          )}
      />
    );
  }
}

export default FormNewsletter;

I'm not really sure what the error means since it's so vague. inspecting the error in console, common.js references this function as the cause:
/**
 * Save `namespaces`.
 *
 * @param {String} namespaces
 * @api private
 */

function save(namespaces) {
  if (null == namespaces) {
    // If you set a process.env field to null or undefined, it gets cast to the
    // string 'null' or 'undefined'. Just delete instead.
    delete {}.DEBUG;
  } else {
    {}.DEBUG = namespaces;
  }
}

Again, not much info to go on. Maybe it's an issue with my versions or maybe it's something to do with Formik. Also I set my node config to this in gatsby-node to remove the missing fs dependency issue that I was getting with previous attempts to make this plugin work.
node: {
      fs: 'empty',
      net: 'empty',
    },

This worked fine when I was on the older version (gatsby-plugin-mailchimp": "https://github.com/benjaminhoffman/gatsby-plugin-mailchimp.git#gatsby-v2") so it might be something to do with the latest version update.
Any help would be appreciated, thanks!

is this still an issue?  otherwise, I will close.


Attempt add single pass scan.

Adds single pass scan with new GPU and CPU shader. Removes previous tree based scans.

Although tests are passing, out of an abundance of caution, I want to add seperate tests specifically for the correctness of the scan. These should act as a litmus test for general compatibility with single-pass monoid techniques, which would be useful as more shaders are converted to single pass.

To reduce the risk from this, I'd propose that we land this after we release version 0.3.0. I'm hopeful that we can do this after office hours this week, but we'll see.

Following up on my conversation with Raph, FXC is still blocking on this:
In the looped version FXC is giving the following errors:
vello.pathtag_scan_csdldf(345,45-67): warning X3550: array reference cannot be used as an l-value; not natively addressable, forcing loop to unroll
vello.pathtag_scan_csdldf(310,21-31): error X3511: unable to unroll loop, loop does not appear to terminate in a timely manner (101 iterations) or unrolled loop is too large, use the [unroll(n)] attribute to force an exact higher number
vello.pathtag_scan_csdldf(299,9-19): error X3511: forced to unroll loop, but unrolling failed.

This is because the loop inside the lookback/fallback block cannot be unrolled.
Going back to the pre-looping implementation, FXC fails to compile due to uniformity analysis:
Internal error: FXC D3DCompile error (0x80004005): pathtag_scan_csdldf(484,29-61): error X4026: thread sync operation must be in non-varying flow control, due to a potential race condition this sync is illegal, consider adding a sync after reading any values controlling shader execution at this point
pathtag_scan_csdldf(548,26-43): error X4026: this variable dependent on potentially varying data: local_id
pathtag_scan_csdldf(664,30-76): error X4026: this variable dependent on potentially varying data: _e992
pathtag_scan_csdldf(451,30-36): error X4026: this memory access dependent on potentially varying data
pathtag_scan_csdldf(452,22-36): error X4026: this variable dependent on potentially varying data: _e565
pathtag_scan_csdldf(473,29-40): error X4026: this variable dependent on potentially varying data: loop_init_1
pathtag_scan_csdldf(479,30-47): error X4026: this variable dependent on potentially varying data: _e609
pathtag_scan_csdldf(472,21-31): error X4026: this loop dependent on potentially varying data
pathtag_scan_csdldf(473,29-40): error X4026: this variable dependent on potentially varying data: loop_init_1

It considers the barrier on line 107 illegal because the control flow is dependent on shared memory.

Ah, very interesting. Looking at the code, I'm surprised this runs at all, the WGSL uniformity analysis should reject it (if it doesn't, that's a bug in naga). I haven't tried it, but I'd expect Chrome/tint to also reject it.
Fortunately, it should be fairly easily fixable. Instead of using sh_lock directly in the loop predicate, do let lock = workgroupUniformLoad(&sh_lock) and predicate off that (this intrinsic also contains a barrier, so the separate workgroupBarrier can be eliminated).
I don't have my head around the loop unrolling yet. This is just PATH_MEMBERS, no? In which case you'd think the compiler would be able to unroll it a known number of times. One thing I noticed: we should now be able to use const instead of let (when the shaders were originally written, naga didn't support const), but I'd be surprised if that made a difference at the FXC level.

After changing sh_lock to use workgroupUniformLoad, the shader does indeed pass uniformity analysis. I also had to change the read on line 170.
As for the loop unrolling, I think you're dead on with regard to the naga transpilation. Even after changing to const, subbing literals into the loops, and changing the spin_count loop to a fixed number, it's still complaining about loop unrolling, and in places that should be fine, like the initial local scan. Using the naga cli, it does indeed compile to while loops.
With regard to metal, I had the same exact performance issues. I think I was getting like 60% of the speed from wgsl->naga->msl as opposed to glsl->glslangvalidator->SPIR-V->spirv_cross->msl, and that's after I unrolled the device level loads/stores by hand.

What's the status of this PR? It looks to me that we're at least waiting for the change described in https://github.com/linebender/vello/pull/685#issuecomment-2372509910 to land?

Naga emitting while loops instead of for loops is still blocking. This is breaking shader compilation on FXC, and causing general suboptimal performance on metal.
I reimplemented my prefix sum library in Dawn/Tint to gather data on how significant the slowdown is, and as the data comes in I'll use it to open up an issue requesting the change in naga. That might take a while though.
A more immediate option is to revert the for loop changes, as that would fix FXC's dynamic indexing problem.

Naga emitting while loops instead of for loops is still blocking. This is breaking shader compilation on FXC, and causing general suboptimal performance on metal.

Is this being tracked on the wgpu side?

Is this being tracked on the wgpu side?

No, I have the dawn/tint results in hand, but I'm waiting for fresh benchmarks on wgpu/naga 23.0. Once I have those, I'll open up an issue.

See wgpu#6521


DiscountRate and DiscountStart

Describe the bug
DiscountRate and DiscountStart should be optional, but not providing both of them will result in an error.
To Reproduce
add n:hello p:1.3
Expected behavior
A new product should be added

To Reproduce
add n:hello p:1.3

I think this error resulted from the fact that c:CATEGORY and d:DESCRIPTION is not provided, not the discount functionality fault.
For example,
add n: hello c:cheese p:1.20 d:testing works just fine


Please add assume-role support to the service connection or let us use AWS service connection.

Please add assume role support to this service connection itself just like the AWS service connection so that we do not have to pass assume role everywhere in our configuration or at least allow us to use AWS service Connection which supports assume role.

Bump this

@thesagarmatha - can you explain how you are making the pass role work for now? We are putting it in our AWS provider config, but it is not being picked up

@thesagarmatha - can you explain how you are making the pass role work for now? We are putting it in our AWS provider config, but it is not being picked up

I am extremely sorry for the late reply. I never received any notifications. To answer your question I started using the AWS Shell script and AWS service connection instead and it is working flawlessly so far.


Add files via upload, initial codes

This is a primtive version of a local search solver for the maximum edge weight clique problem

This is a primitive version of a local search solver for the maximum edge weight problem.


Draft: Created action to automatically build project

Created CI/CD Pipeline to automatically build the project on a push or merge to master

Luckily we only use c++17 (for now anyways :P)


Issue/82

Fixes #82

Added validation to add player form:
For street, city, state, and country inputs.

@hcuffy Sorry for the long delay to merge, but is awesome... thank you!


Bug: CustomView example doesn't work, in fact any template_path doesn't work. Can not override any template

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
I used the example in the docs: Getting Started - Starlette Admin#customview
/app.py
from starlette_admin import CustomView
from sqlalchemy import create_engine
from starlette_admin.contrib.sqla import Admin
from starlette.applications import Starlette

app = Starlette() # FastAPI()

engine = create_engine("sqlite:///test.db", connect_args={"check_same_thread": False})

admin = Admin(engine)

admin.add_view(CustomView(label="Home", icon="fa fa-home", path="/home", template_path="home.html"))

admin.mount_to(app)

templates/home.html

Hello World!

Traceback:
jinja2.exceptions.TemplateNotFound: home.html

Environment (please complete the following information):

Starlette-Admin version: 0.11.2
ORM/ODMs: SQLAlchemy

Fixed:
/app.py
from starlette_admin import CustomView
from sqlalchemy import create_engine
from starlette_admin.contrib.sqla import Admin
from starlette.applications import Starlette
import os

basedir = os.path.abspath(os.path.dirname(__file__))
templates_dir = os.path.join(basedir, "templates")

app = Starlette() # FastAPI()

engine = create_engine("sqlite:///test.db", connect_args={"check_same_thread": False})

admin = Admin(
    engine=engine,
    templates_dir=templates_dir,
)

admin.add_view(CustomView(label="Home", icon="fa fa-home", path="/home", template_path="home.html"))
admin.mount_to(app)

It was easy, we probably should update this one on the documentation.


Uncaught ReferenceError: messages is not defined

This might be specific to dart-tools plugin, but in any case linter is throwing the exception so I'm here.
[Enter steps to reproduce below:]

Open a dart project (such as https://github.com/dart-lang/dart-pad)
Open a file so dart-tools runs the dart analyzer

Atom Version: 1.0.2
System: "Fedora release
Thrown From: linter package, v1.2.0
Stack Trace
Uncaught ReferenceError: messages is not defined
At /home/ahenning/.atom/packages/linter/lib/linter-plus.coffee:95

ReferenceError: messages is not defined
  at Linter.deleteProjectMessages (/home/ahenning/.atom/packages/linter/lib/linter-plus.coffee:95:33)
  at /home/ahenning/.atom/packages/dart-tools/lib/linter/linter_component.coffee:37:15
  at delayed (/home/ahenning/.atom/packages/dart-tools/node_modules/lodash/index.js:7681:27)

Commands

Config
{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ],
    "disabledPackages": [
      "language-mustache",
      "bookmarks",
      "deprecation-cop",
      "encoding-selector",
      "image-view",
      "grammar-selector",
      "language-clojure",
      "language-coffee-script",
      "language-csharp",
      "language-less",
      "language-make",
      "language-objective-c",
      "language-perl",
      "language-php",
      "language-ruby-on-rails",
      "language-sass",
      "language-toml",
      "markdown-preview",
      "metrics",
      "open-on-github",
      "package-generator",
      "release-notes",
      "styleguide"
    ]
  },
  "linter": {}
}

Installed Packages
# User
atom-cli-diff, v1.1.0
atom-ternjs, v0.6.8
autocomplete-python, v0.5.1
dart-tools, v0.9.21
go-plus, v3.3.12
jshint, v1.3.9
language-groovy, v0.4.0
language-puppet, v0.12.0
linter, v1.2.0

# Dev
No dev packages

Using linter 1.1.0 works fine.

The latest version of dart-tools doesn't have this issue anymore. Looks like an issue with the now deprecated linter API.

It was a typo, Fixed by https://github.com/AtomLinter/Linter/pull/715


Feature seeding methods

This PR contains changes that lead to unlocking new features of the package. The main algorithm that has been presented at DSAA 2022 conference has been split into several blocks.
Now each model need to meet a standard, i.e. a seed selection method must be chosen as well as proper compartmental graph. We have also moved node and network evaluation methods from the experiment class to classes that describe models. Seed selection method that was orginaly there has been also moved to another entity so that it can be reused in many models now.

Codecov Report

Merging #11 (c0b9060) into master (511537e) will decrease coverage by 7.00%.
The diff coverage is 83.41%.

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
- Coverage   94.17%   87.16%   -7.01%
==========================================
  Files          11       20       +9
  Lines         961      865      -96
==========================================
- Hits          905      754     -151
- Misses         56      111      +55

Impacted Files
Coverage Δ

network_diffusion/models/mlt_model.py
30.15% <30.15%> (ø)

network_diffusion/utils.py
82.97% <61.11%> (-13.80%)
:arrow_down:

network_diffusion/multilayer_network.py
84.16% <77.04%> (-1.55%)
:arrow_down:

network_diffusion/experiment_logger.py
82.25% <82.25%> (ø)

network_diffusion/models/utils/compartmental.py
88.31% <84.78%> (ø)

network_diffusion/models/utils/types.py
87.50% <87.50%> (ø)

network_diffusion/seeding/base_selector.py
88.88% <88.88%> (ø)

network_diffusion/models/base_model.py
90.00% <90.00%> (ø)

network_diffusion/tests/test_experiment_logger.py
98.27% <98.27%> (ø)

network_diffusion/__init__.py
100.00% <100.00%> (ø)

... and 10 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


feat: add system tray menu items

hmm, why don't I see this in the latest build?

I have a quick build bundle locally on the main branch, and the features are still available.
So I guess the commit that @huytd used to build doesn't have it.

I have a quick build bundle locally on the main branch, and the features are still available. So I guess the commit that @huytd used to build doesn't have it.

I cloned the main branch and build manually though, I can see your commits included in the code.

Silly me, I just had too many apps in the menu bar so the icon of Goxkey doesn't have room to show.


Playback Error Code 406

ExoPlayerImplInternal:    Playback error
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:      com.google.android.exoplayer2.ExoPlaybackException: Source error
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:684)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:656)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at android.os.Handler.dispatchMessage(Handler.java:102)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at android.os.Looper.loopOnce(Looper.java:201)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at android.os.Looper.loop(Looper.java:288)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at android.os.HandlerThread.run(HandlerThread.java:67)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:      Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 406
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at com.google.android.exoplayer2.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:419)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:269)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:90)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at com.google.android.exoplayer2.upstream.DataSourceInputStream.checkOpened(DataSourceInputStream.java:105)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at com.google.android.exoplayer2.upstream.DataSourceInputStream.open(DataSourceInputStream.java:68)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at com.google.android.exoplayer2.upstream.ParsingLoadable.load(ParsingLoadable.java:179)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:420)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
01-24 20:47:27.246 20311 25794 E  ExoPlayerImplInternal:          at java.lang.Thread.run(Thread.java:920)

The error is due to receiving an HTTP response code 406, which means "Not Acceptable." This status code indicates that the server cannot produce a response matching the list of acceptable values defined in the request's headers.
This error may be related to the server. You may not be providing a source of the type supported by the project.

Source : https://nyanv-live-cdn.mncnow.id/live/eds/ANTV/sa_dash_vmx/ANTV.mpd
License : https://mrpw.ptmnc01.verspective.net/?deviceId=NDIzMDJhZmUtYWRjMi0zNGJkLTkyN2EtYmE1ZDFlZWIwODEz
Can you test it for me? So that you can find out about the problem and hope to update your source code with a new one. Thank You.

If you have a test file, I can try it.

test.txt
Can try


Error thrown in log, cannot log onto UI, Auth issues perhaps

Home Assistant release with the issue:

0.94.3
Last working Home Assistant release (if known):
0.94.2
Operating environment (Hass.io/Docker/Windows/etc.):

Windows
Component/platform:

Description of problem:
Following error thrown in log file at startup.
2019-06-16 16:28:47 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "C:\Program Files\Python36\lib\site-packages\homeassistant\data_entry_flow.py", line 64, in async_init
    handler, context=context, data=data)
  File "C:\Program Files\Python36\lib\site-packages\homeassistant\config_entries.py", line 705, in _async_create_flow
    flow = handler()
  File "C:\Program Files\Python36\lib\site-packages\homeassistant\components\homekit_controller\config_flow.py", line 67, in __init__
    import homekit  # pylint: disable=import-error
  File "c:\ProgramData\.homeassistant\deps\Python36\site-packages\homekit\__init__.py", line 26, in <module>
    from homekit.controller import Controller
  File "c:\ProgramData\.homeassistant\deps\Python36\site-packages\homekit\controller\__init__.py", line 21, in <module>
    from homekit.controller.controller import Controller
  File "c:\ProgramData\.homeassistant\deps\Python36\site-packages\homekit\controller\controller.py", line 28, in <module>
    from homekit.protocol.statuscodes import HapStatusCodes
  File "c:\ProgramData\.homeassistant\deps\Python36\site-packages\homekit\protocol\__init__.py", line 31, in <module>
    from homekit.crypto import chacha20_aead_decrypt, chacha20_aead_encrypt, SrpClient
  File "c:\ProgramData\.homeassistant\deps\Python36\site-packages\homekit\crypto\__init__.py", line 22, in <module>
    from homekit.crypto.srp import SrpClient, SrpServer
  File "c:\ProgramData\.homeassistant\deps\Python36\site-packages\homekit\crypto\srp.py", line 23, in <module>
    import crypt
  File "C:\Program Files\Python36\lib\crypt.py", line 3, in <module>
    import _crypt
ModuleNotFoundError: No module named '_crypt'

Have UI set up to use https.
When browsing to UI, I get the 'login' page and enter correct details, but then get a error page stating
Unable to connect to Home Assistant.
RETRY
The retry takes me back to the Auth page.
At each login attempt, error log shows
2019-06-16 16:38:51 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from <IP_ADDRESS>
Connecting from a machine listed in trusted_network works fine.
�
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):

Additional information:

I regressed to 0.94.1 and still see the same issue.
Checked the file C:\Program Files\Python36\lib\crypt.py and the first line is
import _crypt
Which is where Im assuming it is throwing the error from.
I'm assuming this should be part of the python install, so confused as to why it has suddenly stopped working now.
Any ideas?

OK, so the outcome was a combination of:

moving authentication from http: to the new section
the error thrown (looks like this might be irrelevant to my inability to login)
connecting to IP Address, which has always worked before, instead of domain name listed in certificate

Having reworked the Auth entries and connecting to domain name, I can now connect again.


report block header in core as RLP encoded

Ethereum's blockhash is calculated as the keccak3 hash of the RLP encoded header;
EVM allows access to the last 256 blockhashes on the current state;
it follows that to report the blockheader of an existing block on the utility chain, a user can submit the RLP encoded form of the blockheader; the smart contract can then do:

decode the RLP byte string to obtain the parameters, including the blockheight
use BLOCKHASH opcode to query the EVM environment for the blockhash at that blockheight
compute the hash of the RLP byte string and assert equality with the retrieve blockhash in 2

Notes:
Andreas has written an RLP decoder (committed in the repository as RlpReader.sol); which should (give a starting ground for) decoding the blockheader; alternatively, given the blockheader has a fixed structure, an case-specific RLP blockheader decoding contract can be written; To be evaluated, also in light of other needs to (de/en)code RLP within mosaic;
For the POC the parameters are explicitly provided and the check is to be implemented

Closing as incomplete. Please re-open if you still need it.


Fixes for RHS transport configs

Q
A

Bug fix?
[yes] / no

New feature?
yes / no

Needs wipe?
no

Fixed issues
#...

Description:
Fixes for CH53 and C130J transport configs for the Nov 20, 2019 update
Content:

[X] kp_liberation_config.sqf

Successfully tested on:

[X] Local MP
[ ] Dedicated MP

Compatibility checked with:

RHS USAF

Thanks!


Solving issues in release phase

Closes #213

Thanks for fixing this, @RobPasMue. Merge when ready 🚀

Right away! I'll do a quick release as well


Misaligned rest-assured dependency versions in heat modules

The  internal-module of HEAT has the dependency
https://github.com/HotelsDotCom/heat/blob/5fe7df520f02025c0ac01583d3855eec12993d74/heat-internal-modules/pom.xml#L32
Instead of the newer version used in main pom.xml
https://github.com/HotelsDotCom/heat/blob/5fe7df520f02025c0ac01583d3855eec12993d74/pom.xml#L63
This could cause issues like
Wrong 1st argument type. Found: 'io.restassured.response.Response', required: 'com.jayway.restassured.response.Response' using WiremockUtils methods.

Fixed


Mouse Links in maps

Links to mhct/wiki does not show or is not implemented yet when clicking a mouse.

That's odd, I'm seeing it on my end, including with the AR rates and all of that.
What modules do you have enabled/disabled?

I'm using this

What modules do you have enabled/disabled?

I'm using this

Try installing MouseHunt Improved as an extension & disabling the userscript version and the Mouse Links userscript

yeah, the extension works.. I wonder why the userscript version does not work? :-/


Docker Containerization

Create a Dockerfile to build the application as a Docker image.
Ensure all dependencies are included in the Docker image.
Provide instructions for deploying the Docker container on a server.

Include environment variables for path configuration and other initial settings.
First login setup.

Branch docker is started.  Container runs ok, but...

Login works, provided that users.db was created before the container (settings.json issue)
Change password works, so the db is writable
Comic load works, so comics path is mounted
settings.json isn't writable
webui js gets confused. Often requesting wrong comic / date while navigating. Navigation variables appear ok, refresh sometimes loads the correct comic.

Went back to flask run instead of gunicorn, and app is running as it should again.  Just one last bug.
Bug: If settings is not found, it is reloaded... after the webui is drawn. So the comic dropdown box is blank.

Bug was non-issue.  Html5 local storage was caching the wrong list index on the comics selector, so when I deleted settings for testing. The list index from local storage wasn't found, and the list displayed a blank entry.


Few module or imports within are not found

Current behavior
So I'd been trying https://github.com/nickazg/neo-fund/blob/master/neo-fund-py/neo-fund-prompt.py blockchain middleware of NeoFund project. The issue is related to few neo module not found or some imports within it is not found. And since other module in neo are found properly I think the neo blockchain setup properly in virtual environment and actually I've been building and invoking test contracts so environment is set but the problem is with below imports.
ModuleNotFoundError: No module named 'neo.Wallets.KeyPair'
ModuleNotFoundError: No module named 'neo.Prompt.Commands.Withdraw'
ImportError: cannot import name 'construct_contract_withdrawal'
from neo.Prompt.Notify import SubscribeNotifications
I'd commented first 3 imports because that was not used by script but the last import SubscribeNotifications is used in script so I think I need to solve this error
How to reproduce
Run the script https://github.com/nickazg/neo-fund/blob/master/neo-fund-py/neo-fund-prompt.py in the environment similar to below
environment
OS: CentOS 7.4.1708
neo-python version: v0.6.7
Python version: 3.6
In between on a side note I've two python running 2.7 and 3.6 and I think 2.7 is partially broken but I think that's not relevant here

Yeah the reason for the error you are seeing is that neo-fund-prompt.py uses a very old neo-python version. Those imports are now part of neocore:
from neocore.KeyPair import KeyPair

You should open an issue at the neo-fund repository, and ask for a requirements file that you can install the neo-python version that it is working with.

Thanks, got it! I will give try to that for sure
Can you suggest me any recent dApp with wallet and REST API implementation. In between let me know if there is any other competition like this https://medium.com/proof-of-working/coz-first-dapps-competition-dapp-review-3a6b284afaef from where I can learn more insights

NVM got it https://cityofzion.io/dapps/2/, wondering when is the 3rd?


Connect to Exchange Online PowerShell using multi-factor authentication

The new way of connecting broke all our scripts.
How can we import the new module into ISE?
The module location seems to have changed again and I am unable to figure out how to import it.

@officedocsbot assign @yogkumgit

I am referring to this which now uses Connect-EXOPSSession and the Exchange Online Remote PowerShell Module.
https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/mfa-connect-to-exchange-online-powershell?view=exchange-ps
Because of this, the following article doesn't work anymore.
https://docs.microsoft.com/en-us/office365/enterprise/powershell/connect-to-all-office-365-services-in-a-single-windows-powershell-window

Hi @palphonso, thank you for your feedback.
Feedback section in docs.microsoft.com is there to help to improve documentation. I cannot provide you help with your scripts but I can suggest other channels, like:
https://techcommunity.microsoft.com/

@dariomws306  Thank you very much for the contribution and sharing this explanation. @palphonso Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


How to upload a file in chunks?

I am loosing my mind here, since I think I've tried absolutely everything and I still cannot figure out what is the proper way to do it.
Suppose I have a 0.9MB file.
$ ll
-rw-r--r--@  1 gajus  staff   921K 13 May 14:38 test.png

I then split that file into 2 chunks:
$ split -b 1000000 test.png
$ ll
-rw-r--r--@  1 gajus  staff   921K 13 May 14:38 test.png
-rw-r--r--   1 gajus  staff   488K 13 May 14:56 xaa
-rw-r--r--   1 gajus  staff   433K 13 May 14:56 xab

Assuming I only have access to the resulting chunks (and they might be on different servers, i.e. must be two distinct operations), what is the correct way to upload test.png?
Here is what I tried:
(async () => {
  const googleStorageBucket = googleStorage.bucket('contrawork');
  const file = googleStorageBucket.file('images/test.png');
  const uri = (await file.createResumableUpload())[0];

  await googleStorageBucket.upload('./xaa', {
    gzip: false,
    offset: 0,
    predefinedAcl: 'publicRead',
    resumable: true,
    uri,
    validation: false,
  });

  await googleStorageBucket.upload('./xab', {
    gzip: false,
    offset: 500000,
    predefinedAcl: 'publicRead',
    resumable: true,
    uri,
    validation: false,
  });
})();

However, this uploads only first image. The second file is never appended.
images_test.png.zip

Then I thought that maybe offset ignores the first bytes from the input too. Therefore, I've tried:
(async () => {
  const googleStorageBucket = googleStorage.bucket('contrawork');
  const file = googleStorageBucket.file('images/test.png');
  const uri = (await file.createResumableUpload())[0];

  await googleStorageBucket.upload('./xaa', {
    gzip: false,
    offset: 0,
    predefinedAcl: 'publicRead',
    resumable: true,
    uri,
    validation: false,
  });

  const temporaryFileName = tmpNameSync();

  fs.writeFileSync(temporaryFileName, Buffer.concat([
    fs.readFileSync('./xaa'),
    fs.readFileSync('./xab'),
  ]));

  await googleStorageBucket.upload(temporaryFileName, {
    gzip: false,
    offset: 500000,
    predefinedAcl: 'publicRead',
    resumable: true,
    uri,
    validation: false,
  });
})();

But that just uploads exactly the same file.

There is no error or anything. It seems that PUT requests are simply ignored.
The first request respone:
{
  "kind": "storage#object",
  "id": "contrawork/images/test.png/1589408323753557",
  "selfLink": "https://www.googleapis.com/storage/v1/b/contrawork/o/images%2Ftest.png",
  "mediaLink": "https://storage.googleapis.com/download/storage/v1/b/contrawork/o/images%2Ftest.png?generation=1589408323753557&alt=media",
  "name": "images/test.png",
  "bucket": "contrawork",
  "generation": "1589408323753557",
  "metageneration": "1",
  "storageClass": "NEARLINE",
  "size": "500000",
  "md5Hash": "qCGVMqig4yOiO2yoeRnvNg==",
  "crc32c": "KQhJug==",
  "etag": "CNWsqbTvsekCEAE=",
  "timeCreated": "2020-05-13T22:18:43.753Z",
  "updated": "2020-05-13T22:18:43.753Z",
  "timeStorageClassUpdated": "2020-05-13T22:18:43.753Z"
}

The second:
{
  "kind": "storage#object",
  "id": "contrawork/images/test.png/1589408323753557",
  "selfLink": "https://www.googleapis.com/storage/v1/b/contrawork/o/images%2Ftest.png",
  "mediaLink": "https://storage.googleapis.com/download/storage/v1/b/contrawork/o/images%2Ftest.png?generation=1589408323753557&alt=media",
  "name": "images/test.png",
  "bucket": "contrawork",
  "generation": "1589408323753557",
  "metageneration": "1",
  "storageClass": "NEARLINE",
  "size": "500000",
  "md5Hash": "qCGVMqig4yOiO2yoeRnvNg==",
  "crc32c": "KQhJug==",
  "etag": "CNWsqbTvsekCEAE=",
  "timeCreated": "2020-05-13T22:18:43.753Z",
  "updated": "2020-05-13T22:18:43.753Z",
  "timeStorageClassUpdated": "2020-05-13T22:18:43.753Z"
}


FIREBREAK: Explore the capabilities of Terragrunt

User Need
As a Developer
I want To investigate the power of Terragrunt
so that we can see if it may be useful to us
Acceptance Criteria:

Investigate if Terragrunt could be useful to us e.g. to parameterize module version, to run Terraform in nested directories etc.

https://terragrunt.gruntwork.io/docs/getting-started/quick-start/

Can do before and after hooks


Log reconstruction samples

We should log some samples (64?) during evaluation.
We could either reiterate through eval until we have enough items or use the existing loop (but that case is trickier to keep efficient while but using too much memory).

Should we do it externally using the checkpoints logged to wandb?

I think we can do it while training.
The reason we do it externally in dalle-mini is to avoid loading the VQGAN model and save some memory (not sure it's actually significant).
In this case it is already loaded and very fast to compute (should only take a few seconds).

This is done


Advanced interpolation returning unexpected shape

What happened?
Hi !
Iam using Xarray since quite some time and recently I started using fresh NC files from https://cds.climate.copernicus.eu/ (up to now, using NC4 files that I have from quite some time now). I have an issue regarding Xarray' interpolation with advanced indexing: the returned shape by interp() is not as expected.
basically Iam just doing advanced interpolation as mentioned here https://docs.xarray.dev/en/stable/user-guide/interpolation.html#advanced-interpolation.
It used to work perfectly with my older datasets.
thanks
Vianney
What did you expect to happen?
I would expect res.shape to be (100,) or similar (and actually I get this result with older datasets. but I don't understand why I get (705, 715, 2) ! this does not corrrespond to anything, as we can see from the below description of the dataset:
Minimal Complete Verifiable Example
dataset.zip
# -*- coding: utf-8 -*-
# Minimum working example below. Requires Python 3.11.9, dask 2024.7.0, numpy1.26.4 and xarray 2024.6.0

import dask
import numpy as np
import xarray as xa
import datetime as dt

# open dataset (unzip dataset.zip which is attached to bug report)
dataset = xa.open_mfdataset("dataset.nc", decode_times=True, parallel=True)
start_date = dt.datetime(2023, 1, 1)

np.random.seed(0)

# points generation
N = 100
access_date = np.linspace(0, 5000, N) # seconds since start_date
longitudes = -180 + np.random.rand(N)*360
latitudes = -90 + np.random.rand(N)*180

dates_folded = np.datetime64(start_date) + \
    access_date.astype("timedelta64[s]").astype("timedelta64[ns]")

arguments = {
    "valid_time": xa.DataArray(dates_folded, dims="z"),
    "longitude": xa.DataArray(longitudes, dims="z"),
    "latitude": xa.DataArray(latitudes, dims="z"),
    "method": "linear",
    "kwargs": {"bounds_error": False},
}
with dask.config.set(**{"array.slicing.split_large_chunks": True}):
    data = dataset['tcc'].interp(**arguments)

res = np.array(data).T
print(res.shape)

Output:
(705, 715, 2)

MVCE confirmation

[X] Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
[X] Complete example — the example is self-contained, including all data and the text of any traceback.
[X] Verifiable example — the example copy & pastes into an IPython prompt or Binder notebook, returning the result.
[X] New issue — a search of GitHub Issues suggests this is not a duplicate.
[X] Recent environment — the issue occurs with the latest version of xarray and its dependencies.

Relevant log output
(705, 715, 2)

Anything else we need to know?
the expected log is (100,)
Environment

INSTALLED VERSIONS
commit: None
python: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:27:10) [MSC v.1938 64 bit (AMD64)]
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 140 Stepping 1, GenuineIntel
byteorder: little
LC_ALL: None
LANG: fr
LOCALE: ('fr_FR', 'cp1252')
libhdf5: 1.14.3
libnetcdf: 4.9.2
xarray: 2024.11.0
pandas: 2.2.2
numpy: 1.26.4
scipy: 1.14.0
netCDF4: 1.6.5
pydap: None
h5netcdf: None
h5py: 3.11.0
zarr: None
cftime: 1.6.4
nc_time_axis: None
iris: None
bottleneck: None
dask: 2024.7.0
distributed: 2024.7.0
matplotlib: 3.9.1
cartopy: 0.23.0
seaborn: None
numbagg: None
fsspec: 2024.6.1
cupy: 13.2.0
pint: None
sparse: None
flox: None
numpy_groupies: None
setuptools: 70.3.0
pip: 24.0
conda: 24.5.0
pytest: 8.2.2
mypy: None
IPython: 8.26.0
sphinx: 7.4.0

Respectfully, can you minimize the example, including:

the example is self-contained, including all data and the text of any traceback.

ok, I updated, not quite sure what you mean by minimizing ?

It needs to be self-contained — i.e. not requiring someone to download a file.

The trick is that it looks somewhat dependent on the dataset file , because for some older datasets I use, the advanced interpolation works, but not for this kind of 'newer' datasets (which basically looks quite similar and are properly read by open_mf fct).  this is why I added the dataset file.
otherwise if I had been able to tell that this is a pure interpolation problem that I can reproduce on all kind of datasets files I use, then I would probably have managed to create a true self-contained example indeed.

and besides, advanced indexing using .sel appears to work properly, to this looks like rellay related to the advanced indexing interpolation

OK, I think I understand what happening.
The dataset has some 'useless' coordinates (there is no star * before them in coordinates section), and it seems this is generating some mess with interp, because when I remove these empty coordinates with drop_vars, the interpolation shape is now OK.
So maybe there is something to do to ensure the behavior is similar between .sel and .interp regarding advanced indexing (because for .sel empty coords where OK with not for .interp)