Cannot build haskellPackages.wai-app-file-cgi on 16.09 (16.09.741.354fd37)

Issue description
Cannot build/install haskellPackages.wai-app-file-cgi.
This is because somehow nixpkgs has version 0.4.x of the dependency http-client (probably from Stackage) and this version (<IP_ADDRESS>) of wai-app-file-cgi requires version 0.5.x.
This has been failing for a while (see http://hydra.nixos.org/build/37644598).
Steps to reproduce
nix-env -f '<nixpkgs>' -iA haskellPackages.wai-app-file-cgi results in
installing ‘wai-app-file-cgi-3.1.3’
these derivations will be built:
  /nix/store/b2z83cbxbwgsndgpklsd2f7lmpdhk925-wai-app-file-cgi-3.1.3.drv
building path(s) ‘/nix/store/6q3b5cmvlpdn0vzs1p0v5gdw281q2ham-wai-app-file-cgi-3.1.3’
setupCompilerEnvironmentPhase
Build with /nix/store/njls663z633511jlz0pf79v98az32x2n-ghc-8.0.1.
unpacking sources
unpacking source archive /nix/store/gq5x7b40awfd3flifsip7l3hzjg6rs6c-wai-app-file-cgi-3.1.3.tar.gz
source root is wai-app-file-cgi-3.1.3
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file wai-app-file-cgi-3.1.3/wai-app-file-cgi.cabal
patching sources
Run jailbreak-cabal to lift version restrictions on build inputs.
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-wai-app-file-cgi-3.1.3.drv-0/package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /tmp/nix-build-wai-app-file-cgi-3.1.3.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/6q3b5cmvlpdn0vzs1p0v5gdw281q2ham-wai-app-file-cgi-3.1.3 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --with-gcc=gcc --package-db=/tmp/nix-build-wai-app-file-cgi-3.1.3.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/6q3b5cmvlpdn0vzs1p0v5gdw281q2ham-wai-app-file-cgi-3.1.3/lib/ghc-8.0.1/wai-app-file-cgi-3.1.3 --enable-split-objs --disable-library-profiling --disable-profiling --enable-shared --enable-library-vanilla --enable-executable-dynamic --disable-tests
Configuring wai-app-file-cgi-3.1.3...
Dependency array -any: using array-<IP_ADDRESS>
Dependency attoparsec -any: using attoparsec-<IP_ADDRESS>
Dependency attoparsec-conduit -any: using attoparsec-conduit-1.1.0
Dependency base -any: using base-<IP_ADDRESS>
Dependency blaze-builder -any: using blaze-builder-<IP_ADDRESS>
Dependency blaze-html -any: using blaze-html-<IP_ADDRESS>
Dependency bytestring -any: using bytestring-<IP_ADDRESS>
Dependency case-insensitive -any: using case-insensitive-<IP_ADDRESS>
Dependency conduit -any: using conduit-1.2.8
Dependency conduit-extra -any: using conduit-extra-<IP_ADDRESS>
Dependency containers -any: using containers-<IP_ADDRESS>
Dependency data-default-class -any: using data-default-class-<IP_ADDRESS>
Dependency directory -any: using directory-<IP_ADDRESS>
Dependency filepath -any: using filepath-<IP_ADDRESS>
Dependency http-client -any: using http-client-<IP_ADDRESS>
Dependency http-conduit -any: using http-conduit-2.1.11
Dependency http-date -any: using http-date-<IP_ADDRESS>
Dependency http-types -any: using http-types-0.9.1
Dependency io-choice -any: using io-choice-0.0.6
Dependency lifted-base -any: using lifted-base-<IP_ADDRESS>
Dependency mime-types -any: using mime-types-<IP_ADDRESS>
Dependency network -any: using network-<IP_ADDRESS>
Dependency process -any: using process-<IP_ADDRESS>
Dependency sockaddr -any: using sockaddr-0.0.0
Dependency static-hash -any: using static-hash-0.0.1
Dependency text -any: using text-<IP_ADDRESS>
Dependency transformers -any: using transformers-<IP_ADDRESS>
Dependency unix -any: using unix-<IP_ADDRESS>
Dependency wai -any: using wai-<IP_ADDRESS>
Dependency wai-conduit -any: using wai-conduit-<IP_ADDRESS>
Dependency warp -any: using warp-3.2.8
Dependency word8 -any: using word8-0.1.2
Using Cabal-<IP_ADDRESS> compiled by ghc-8.0
Using compiler: ghc-8.0.1
Using install prefix:
/nix/store/6q3b5cmvlpdn0vzs1p0v5gdw281q2ham-wai-app-file-cgi-3.1.3
Binaries installed in:
/nix/store/6q3b5cmvlpdn0vzs1p0v5gdw281q2ham-wai-app-file-cgi-3.1.3/bin
Libraries installed in:
/nix/store/6q3b5cmvlpdn0vzs1p0v5gdw281q2ham-wai-app-file-cgi-3.1.3/lib/ghc-8.0.1/wai-app-file-cgi-3.1.3
Private binaries installed in:
/nix/store/6q3b5cmvlpdn0vzs1p0v5gdw281q2ham-wai-app-file-cgi-3.1.3/libexec
Data files installed in:
/nix/store/6q3b5cmvlpdn0vzs1p0v5gdw281q2ham-wai-app-file-cgi-3.1.3/share/x86_64-linux-ghc-8.0.1/wai-app-file-cgi-3.1.3
Documentation installed in:
/nix/store/6q3b5cmvlpdn0vzs1p0v5gdw281q2ham-wai-app-file-cgi-3.1.3/share/doc/x86_64-linux-ghc-8.0.1/wai-app-file-cgi-3.1.3
Configuration files installed in:
/nix/store/6q3b5cmvlpdn0vzs1p0v5gdw281q2ham-wai-app-file-cgi-3.1.3/etc
No alex found
Using ar found on system at:
/nix/store/nm9r5lymydnsrlxjn30ym2kix6mbyr19-binutils-2.27/bin/ar
No c2hs found
No cpphs found
Using gcc version 5.4.0 given by user at:
/nix/store/dp2nf60lqzy1kbhd78ndf5nm3fb3qicd-gcc-wrapper-5.4.0/bin/gcc
Using ghc version 8.0.1 found on system at:
/nix/store/njls663z633511jlz0pf79v98az32x2n-ghc-8.0.1/bin/ghc
Using ghc-pkg version 8.0.1 found on system at:
/nix/store/njls663z633511jlz0pf79v98az32x2n-ghc-8.0.1/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.17.2 found on system at:
/nix/store/njls663z633511jlz0pf79v98az32x2n-ghc-8.0.1/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/njls663z633511jlz0pf79v98az32x2n-ghc-8.0.1/bin/hpc
Using hsc2hs version 0.68 found on system at:
/nix/store/njls663z633511jlz0pf79v98az32x2n-ghc-8.0.1/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/i87sizgmy6p7gs455icp8nvqfiv5yldf-hscolour-1.24.1/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/dp2nf60lqzy1kbhd78ndf5nm3fb3qicd-gcc-wrapper-5.4.0/bin/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using strip version 2.27 found on system at:
/nix/store/nm9r5lymydnsrlxjn30ym2kix6mbyr19-binutils-2.27/bin/strip
Using tar found on system at:
/nix/store/fs8qx9alnwxankf6jn09lraqan6diwf3-gnutar-1.29/bin/tar
No uhc found
building
Building wai-app-file-cgi-3.1.3...
Preprocessing library wai-app-file-cgi-3.1.3...
[ 1 of 15] Compiling Network.Wai.Application.Classic.Lang ( Network/Wai/Application/Classic/Lang.hs, dist/build/Network/Wai/Application/Classic/Lang.o )
[ 2 of 15] Compiling Network.Wai.Application.Classic.EventSource ( Network/Wai/Application/Classic/EventSource.hs, dist/build/Network/Wai/Application/Classic/EventSource.o )
[ 3 of 15] Compiling Network.Wai.Application.Classic.Conduit ( Network/Wai/Application/Classic/Conduit.hs, dist/build/Network/Wai/Application/Classic/Conduit.o )
[ 4 of 15] Compiling Network.Wai.Application.Classic.Header ( Network/Wai/Application/Classic/Header.hs, dist/build/Network/Wai/Application/Classic/Header.o )
[ 5 of 15] Compiling Network.Wai.Application.Classic.Path ( Network/Wai/Application/Classic/Path.hs, dist/build/Network/Wai/Application/Classic/Path.o )
[ 6 of 15] Compiling Network.Wai.Application.Classic.Types ( Network/Wai/Application/Classic/Types.hs, dist/build/Network/Wai/Application/Classic/Types.o )
[ 7 of 15] Compiling Network.Wai.Application.Classic.Def ( Network/Wai/Application/Classic/Def.hs, dist/build/Network/Wai/Application/Classic/Def.o )
[ 8 of 15] Compiling Network.Wai.Application.Classic.Field ( Network/Wai/Application/Classic/Field.hs, dist/build/Network/Wai/Application/Classic/Field.o )
[ 9 of 15] Compiling Network.Wai.Application.Classic.CGI ( Network/Wai/Application/Classic/CGI.hs, dist/build/Network/Wai/Application/Classic/CGI.o )
[10 of 15] Compiling Network.Wai.Application.Classic.Redirect ( Network/Wai/Application/Classic/Redirect.hs, dist/build/Network/Wai/Application/Classic/Redirect.o )
[11 of 15] Compiling Network.Wai.Application.Classic.RevProxy ( Network/Wai/Application/Classic/RevProxy.hs, dist/build/Network/Wai/Application/Classic/RevProxy.o )

Network/Wai/Application/Classic/RevProxy.hs:68:5: error:* System: (NixOS: `nixos-version`, Ubuntu/Fedora: `lsb_release -a`, ...)

Nix version: (run nix-env --version)
Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
Not in scope: ‘H.checkResponse’
Module ‘Network.HTTP.Client’ does not export ‘checkResponse’.
builder for ‘/nix/store/b2z83cbxbwgsndgpklsd2f7lmpdhk925-wai-app-file-cgi-3.1.3.drv’ failed with exit code 1
error: build of ‘/nix/store/b2z83cbxbwgsndgpklsd2f7lmpdhk925-wai-app-file-cgi-3.1.3.drv’ failed

Technical details

System: NixOS 16.09.741.354fd37 (Flounder)
Nix version: nix-env (Nix) 1.11.4
Nixpkgs version: "16.09.741.354fd37"

This is causing #19611


SQL2008 query regression with Include and skip

Changes made in 804458aa576723d8732f65605effde5b7fb7145a cause IncludeSqlServerTest.Include_with_skip to start to fail on SQL Server 2008:
System.InvalidOperationException : Sequence contains no matching element
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source, Func`2 predicate)
   at Microsoft.Data.Entity.Query.ExpressionVisitors.Internal.IncludeExpressionVisitor.

 The new test exposes an existing bug in the interaction between Include and RowNumberPaging.


Add support for influxdb

This PR addresses issue #525.
Current issues

Only connection_protocol="http" is supported
No player or collector class yet.
The test test_local_database.glm fails on circleci when synchronous_postdata=TRUE.

Code changes

[x] Create module
[x] Create database class
[x] Create recorder class

Documentation changes

[x] docs/Module/Influxdb
[X] docs/Module/Influxdb/Database
[x] docs/Module/Influxdb/Recorder

Test and Validation Notes

[x] Create database test (see influxdb/autotest/test_local_database.glm)
[x] Create recorder test (see influxdb/autotest/test_local_database.glm)
These tests require a local influxdb server.  On Macs use the following commands to install influxdb:

macos$ brew install influxdb
macos$ brew services start influxdb

On docker slacgismo/circleci_gridlabd_base:latest image:
wget -q https://dl.influxdata.com/influxdb/releases/influxdb_1.7.9_amd64.deb
dpkg -i influxdb_1.7.9_amd64.deb
/usr/bin/influxd run 1>/tmp/influxd.log 2>/tmp/influxd.err &

@aivanova5, do you know why the docker test details leads to 404?

Should this read me http://docs-dev.gridlabd.us/_page.html?&doc=/Module/Influxdb.md say
module influxdb instead of module database?


[Event Request] Codeunit 5763 - OnPostUpdateWhseDocumentsOnBeforeModify

Add new integration event OnPostUpdateWhseDocumentsOnBeforeModify in Codeunit 5763.
Function PostUpdateWhseDocuments:
              WhseShptLine2."Qty. Outstanding (Base)" := "Qty. Outstanding (Base)" - "Qty. to Ship (Base)";
              WhseShptLine2.Status := WhseShptLine2.CalcStatusShptLine;
+             OnPostUpdateWhseDocumentsOnBeforeModify(WhseShptLine2);
              WhseShptLine2.MODIFY;
              OnAfterPostUpdateWhseShptLine(WhseShptLine2);

New publisher function:
    [Integration]
    LOCAL PROCEDURE OnPostUpdateWhseDocumentsOnBeforeModify@100000001(VAR WhseShptLine@100000000 : Record 7321);
    BEGIN
    END;

You already have this
END ELSE BEGIN
OnBeforePostUpdateWhseShptLine(WhseShptLine2);
WhseShptLine2."Qty. Shipped" := "Qty. Shipped" + "Qty. to Ship";
WhseShptLine2.VALIDATE("Qty. Outstanding","Qty. Outstanding" - "Qty. to Ship");
WhseShptLine2."Qty. Shipped (Base)" := "Qty. Shipped (Base)" + "Qty. to Ship (Base)";
WhseShptLine2."Qty. Outstanding (Base)" := "Qty. Outstanding (Base)" - "Qty. to Ship (Base)";
WhseShptLine2.Status := WhseShptLine2.CalcStatusShptLine;
WhseShptLine2.MODIFY;
OnAfterPostUpdateWhseShptLine(WhseShptLine2);
END;

We cannont use the already existing event because our code depends on field Qty. Shipped which is updated after the already existing event.

But you can use OnAfterPostUpdateWhseShptLine(WhseShptLine2); and update this?

We have extended table Whse. Shipment Line by new fields. These fields are updated based on Qty. Shipped. If we use OnAfterPostUpdateWhseShptLine then an additional Modify is required.


Tracing from router to app

There is currently no way to combine routing logs from Heroku with events from the apps running on Heroku. If it were, events from the Heroku router could be combined with app events to traces in Honeycomb.
The express instrumentation from Beeline (and others probably, too) uses the X-Request-ID header value as the trace id by default. The same value is logged as request_id by the Heroku router. If I understand correctly, request_id would have to be used for trace.trace_id.

This project is being sunset; please review issue #10


can i used this for other social networks sharing

Hi,
my requirement is I need to share with the service you provided but also need to share with Pinterest
Can I use this package for this?

Hi
Currently we don't support Pintrest, but I'm open for a good PR to add this feature.

+1 Instagram

is it done?

And for Telegram?

I'd accept a PR for the suggested providers. Closing this ticket though.


IOU - Allow only 2 decimal points in amount selector

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Navigate to a conversation
Request money
Enter an amount with 3 decimals

Expected Result:
Only 2 decimals should be allowed in amount field
Actual Result:
3 decimals are allowed in the amount field.
Workaround:
None needed.
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number: 1.1.14-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: @quinthar
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1636688148151100
View all open jobs on GitHub

Triggered auto assignment to @danieldoglas (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Proposal
In IOUAmountPage
Change regex to /^\d+(,\d+)*(\.\d{0, 2})?$/
toFixed(3) -> toFixed(2)
https://github.com/Expensify/App/blob/6701446b6dd7d77049fd399dcf6a042e6d05cae1/src/pages/iou/steps/IOUAmountPage.js#L121-L122

@danieldoglas Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Will be working on this today

I don't think we can just change this to two decimal cases.
Jamaican and Kuwaiti Dinar, for example, as 3 decimal cases. @rushatgabhane @isagoico, do you guys think we need to treat them by each currency?

Isn't the 3rd decimal ignored in the backend?

Isn't the 3rd decimal ignored in the backend?

Ok.
So looking through the code, I got this method called Mobile_GetConstants, sending the parameter currencyList, will return all the accepted currencies from Expensify.
That will have a JSON array with the name, symbol and some other properties. Some of them has a decimal: 0 property.
I guess we could add the decimals for all of the accepted currencies, with the amount of decimals accepted, and treat that on the frontend to deal with the information received from the backend. That way, if we add another currency with 5 decimal cases, we don't need to change anything in the app.
@rushatgabhane are you OK with that solution?
cc: @johnmlee101

Yeah the array of currencies is known and kinda constant. So adding decimal property to all is fine. Looks great 👍

Working on it.

So, I'm working at the App for this. The logic implementation is almost done, but I just saw that we convert the value to an integer before sending it to the backend.
That means that the backend probably doesn't know where the decimal point is, and that could possibly break old.E.
I'll finish implementing it on new.E and check what happens in old.E.

Ok, now I'm seeing that we actually use * 100 or / 100 in multiple places when dealing with amount.
I think that the best case scenario for us would be to deal correctly with the decimal places for all currencies, but that would be a change in several places in our app code today.
Do you think the ROI is worth it @rushatgabhane?
cc: @johnmlee101

Yep. Looks like this would need changes in our integrations servers, and probably more places that I don't know the context yet.
Thinking about the ROI, since most of our customers are using currencies with only 2 decimal cases, I guess we could keep it with only 2 decimals for now and do a plan to change that in the future based on our expansion to other countries with that necessity.

I'll follow my gut here and keep it simple for now. I'll cancel my PR to libs for now too.

PR created.


Enqueue Consumer constantly high CPU load when not processing anything

For some reason the Enqueue Broker from the enqueue_consumer container is constantly generating a high CPU load.

Issue resolved by switching from file based queue to redis queue in https://github.com/Vaalyn/sylius-shop/pull/22


SPIKE: X11 forwarding over SSM Session Manager to EC2s

User Story
As a user of MP
I want to use X11 forwarding
To run GUI installers on EC2s
User Type(s)
MP Users
Value
Establish a pattern for users doing legacy installs.
Questions / Assumptions / Hypothesis
Proposal
Spike to find out if this is possible, if it is then document how to do it.
Definition of done

[ ] establish if X11 forwarding is possible
[ ] user docs have been updated
[ ] another team member has reviewed
[ ] tests are green
[ ] UR test OR added to continual research plan

Reference
How to write good user stories

https://aws.amazon.com/blogs/compute/how-to-enable-x11-forwarding-from-red-hat-enterprise-linux-rhel-amazon-linux-suse-linux-ubuntu-server-to-support-gui-based-installations-from-amazon-ec2/

Further to this, it looks like it's quite possible to forward X11 over SSH through SSM - https://github.com/aws/session-manager-plugin/issues/66

see the above link explaining how to do this


MouseEvent style SvgarEvent functionality

Drawings should fire custom MouseEvent-like events when configured to do so. This catch-all approach allows users to know exactly what information they should expect to be available. The current implementation requires all reactivity events to be created and consumed by whatever frontend framework is being used.

Opt instead to declare methods to attach to events on any given geometry element and add an event listener when the drawing is compiled.

Defer "extra information" operations to user. All events will emit ids of the entire svgar drawing tree, which is enough information to use any Locate predicates to find specific information.


Add getCameraNames() and only load camera streams if camera defined

looks good to me, go ahead and merge it if you want.  i made a few comments about possibly old code that you could remove in this PR if you want, but we can always wait to clean that up later.


Initial ideas on a process. Ripped shamelessly from the Rust process.

We'll also need an RFC tracker bot type thing, similar to https://github.com/anp/rfcbot-rs

This is great!

This is great!

No YOU'RE great

We'll also need an RFC tracker bot type thing, similar to https://github.com/anp/rfcbot-rs

@amethyst-bot You here?

Can @amethyst-bot do RFC management? =)

Well done. This is the bot we need.

Updated to incorporate latest feedback.

we have enough people in each sub team to manage RFCs?

Currently: no.

@magnonellie It isn't that I don't want to fill them in, I just am not qualified to do so. They should be agreed upon and written by the team. We could fill them in with "To be filled in later. Until then, post  in the forum"?
If you think we should delay for the new logo, we can. Or use a "Coming Soon" graphic? =) Your call, as far as I am concerned.
I'll find a GDPR-compliant privacy policy and put it up there. We also need an e-mail address people can send GDPR-related requests to. But I think that's a different PR. I think for now we can accept the request via a forum message or to one of our e-mails, so long as it is published.
What categories should we have?

Congratulations! :clap: :100: :+1:


[FR] Pure boosts, canonical_angles, and canonical_wigner_rotations

Implement two new functions,
canonical_angles, and canonical_wigner_rotations
Canonical angular variables
The function helicity_angles works nicely and gives the values of the angles according to the topology.
In order to arrive to a new frame, we do B^{-1} R^{-1}. That is how the helicity frame is introduced.
Instead of helicity quantization, one can deal with canonical quantization. In this approach, the transition between frames is done as
B_{pure}^{-1} = R B^{-1} R^{-1}
i.e. one arrived to the helicity frame an extra rotation that is matching the inverse rotation before boost is applied.
Canonical Wigner rotations
The Wigner rotations are defined exactly the same way as before.
Following topology1 and topology to the rest frame of the of every particle, one get two sequences of transformations that differ by a rotation.
Reference
Here is a paper
https://inspirehep.net/literature/2613888
which discusses construction of amplitude (presumably equivalent) using entirely LS basis, and pure boosts.

So do I understand correctly, that in this we would just append this extra rotation while traversing the decay tree and that is it?
Because if so, then a simpel flag should work this nicely in the code.

That is right, adding an extra rotation, also angels are computed accordingly, they won't be the same except the very first pair

One more question: The canonical approach will introduce another rotation after the boost. We calculate helicity angles as the angle we need to rotate in order to align the new particles momentum with the z-axis. Now when we have this extra rotation, the helicity angles would be different right?
Is helicity angles then even the correct term anymore? Since the second rotation moves us away from the mother particles initial projection axis. We would now (I beliefe) use the quantization axis of the very first particle in the decay chain, if I am not mistaken.


Update/Add [tool name]

Tool name
Laounimomo12
Tool license
update
Add or update?

[ ] Add
[X] Update

Desired version
sd
Approximate size
2000
Brief description of tool
No response
URL for tool's homepage
No response
Provide a basic test case to validate the tool's functionality.
No response
Virtual environments affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11
[X] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Can this tool be installed during the build?
No response
Tool installation time in runtime
No response
Are you willing to submit a PR?
No response

je veux des data


Replace graph with maths scores for selected pupils

Peter said:

I’m not sure that we need to graph the numbers of learning and disruptive students.  Instead could we put in the Maths scores of selected pupils – say those who start highest, middle and lowest?

(Check with Peter that the scores inside the dots aren't sufficient.)

I saw the dots but thought that graphing would be good as well Sent from Mail for Windows 10 From: Alison ClarkeSent: 09 August 2021 13:13To: DurhamARC/classroom-abmCc: SubscribedSubject: [DurhamARC/classroom-abm] Replace graph with maths scores for selected pupils (#92) Peter said:I’m not sure that we need to graph the numbers of learning and disruptive students. Instead could we put in the Maths scores of selected pupils – say those who start highest, middle and lowest?(Check with Peter that the scores inside the dots aren't sufficient.)—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

Fixed by PR #116


[Bug] Remote Config FetchAsync throws exception with TimeSpan

[REQUIRED] Please fill in the following fields:

Unity editor version: 2020.3.18f1
Firebase Unity SDK version: 8.1.0
Source you installed the SDK: Unity Package Manager
Problematic Firebase Component: Remote Config
Other Firebase Components in use: Firestore, Crashlytics, Auth
Additional SDKs you are using:
Platform you are using the Unity editor on: Windows
Platform you are targeting: Android (Unity Editor is also affected)
Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:
When setting the cache expiration of FetchAsync() to TimeSpan.Zero (or any other TimeSpan), an exception is thrown with ErrorCode 1. The Message parameter is empty.
Steps to reproduce:
Relevant Code:
await FirebaseRemoteConfig.DefaultInstance.FetchAsync(TimeSpan.Zero); //This (or any other TimeSpan) will result in an exception

Hi @Nyankoo,
Thanks for reporting this issue. Version 8.2.0 of the SDK has been released recently. Could you verify if the issue persists there as well? If it does, please provide a minimal, reproducible example of your project along with the complete steps to replicate this behavior.

@paulinon Did something in Version 8.2.0 change related to Remote Config? The changelog doesn't mention anything.

Hi @Nyankoo,
While the release notes don't mention anything related to Remote Config, this is to ensure that the issue persists even with the latest updates and fixes.
I look forward to your findings.

I can confirm we are seeing this issue, on 8.2.0. It's causing our app to fully hang.
We are sending in a timespan of 1 minute. We started seeing this about 4 weeks ago. Can confirm removing the timespan argument stopped the issue from happening, but we can't wait for ~12 hours for remote config updates!
Should be simple enough to reproduce in an empty project on your end.

@paulinon We didn't had a change to update, but Dan's report shows that this is also happening with 8.2.0.

Also note @paulinon in our tests, this happened about 2/10 times-ish.

If we remove the cache expiry, it works 100% of the time.

Thanks for the input, @Nyankoo and @DanForstinger. So far, I have not encountered the exception when using the FetchAsync() function. A minimal, reproducible example would be helpful in identifying what's causing the exception.
Could you also confirm if the same exception persists using the quickstart?

A few notes that may help you reproduce:

This was happening only on device, about ~10-20% of the time. Youll have to try a few times on device to reproduce.
It only happens if you call FetchAsync with a timespan, for example: FetchAsync(TimeSpan.FromMinutes(1)) is what our call was. FetchAsync() with no arguments works fine.

For us, the app just hangs and never calls back from the async function, though we may not have got the errors because the initialization wasn't finishing on the main thread.

To clarify, the situation Dan is describing is only happening after building on certain machines (CI vs local build), and only shows up at all for some % of users (some people don't see it at all.) It also started appearing randomly for an existing game we'd launched and made no changes to — which actually seems to suggest this is something happening on the firebase server side, rather than the unity side.

Just posting to put the correct labels, as everything was already described by Dan and fonograph.

Hi @Nyankoo, @DanForstinger, and @fonograph,
I have called the function on both an Android build and the Unity editor at least twenty times, but none of them resulted into an exception or issue.
There's a possibility that the issue is related to the device used. In order to verify if this is the case, could you provide the device models along with their respective Android versions?
If the issue doesn't persist when using the quickstart, it would be helpful if you provide a minimal, reproducible example of a project with this issue

@paulinon Here are some more exception details (tested with 8.2.0 directly in the Unity editor):
FirebaseException
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Runtime.CompilerServices.TaskAwaiter.GetResult () (at <695d1cc93cca45069c528c15c9fdd749>:0)
Cysharp.Threading.Tasks.CompilerServices.AsyncUniTask`1:Run() (at Library/PackageCache/com.cysharp.unitask@60bfbae787/Runtime/CompilerServices/StateMachineRunner.cs:189)
System.Threading.Tasks.TaskCompletionSource`1:SetException(Exception)
Firebase.<GetTask>c__AnonStorey0:<>m__0() (at Z:/tmp/tmp.Ti0ckjuoMn/firebase/app/client/unity/proxy/FutureVoid.cs:84)
Firebase.FutureVoid:SWIG_CompletionDispatcher(Int32) (at Z:/tmp/tmp.Ti0ckjuoMn/firebase/app/client/unity/proxy/FutureVoid.cs:167)
Firebase.AppUtilPINVOKE:PollCallbacks()
Firebase.AppUtil:PollCallbacks() (at Z:/tmp/tmp.Ti0ckjuoMn/firebase/app/client/unity/proxy/AppUtil.cs:32)
Firebase.Platform.FirebaseAppUtils:PollCallbacks() (at Z:/tmp/tmp.Ti0ckjuoMn/firebase/app/client/unity/proxy/FirebaseAppUtils.cs:33)
Firebase.Platform.FirebaseHandler:Update() (at Z:/tmp/tmp.xDmPRxPPw2/firebase/app/client/unity/src/Unity/FirebaseHandler.cs:208)
Firebase.Platform.FirebaseMonoBehaviour:Update() (at Z:/tmp/tmp.xDmPRxPPw2/firebase/app/client/unity/src/Unity/FirebaseMonoBehaviour.cs:45)

Hi @Nyankoo,
Thanks for the additional information, but I am still unable to replicate the issue you're facing. At this point, we'll be needing a minimal, reproducible example of a project that exhibits this behavior. If the issue can be reproduced in a blank project, it would be helpful if you could provide a sample code along wih the complete steps needed to replicate the issue.
I look forward to hearing from you soon.

@paulinon We're not able to reproduce this in a separate project. Any ideas to get more details on this from our project?

@paulinon That's sadly not possible as it is a company project.

@DellaBitta @paulinon We just got some iOS reports from Crashlytics in (from users, so no repo from us!), where the "Message" parameter of the exception is not null. This could be related and I'm not sure if this is caused by the SDK or the server:
Failed to get installations token. Error : Error Domain=com.firebase.installations Code=0 "Underlying error: The request timed out." UserInfo={NSLocalizedFailureReason=Underlying error: The request timed out., NSUnderlyingError=0x2819a2550 {Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x281b0a2e0 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <DD48035E-BF2D-498A-8768-F529620D7412>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <DD48035E-BF2D-498A-8768-F529620D7412>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://firebaseinstallations.googleapis.com/v1/projects/my-project-id/installations/, NSErrorFailingURLKey=https://firebaseinstallations.googleapis.com/v1/projects/my-project-id/installations/, _kCFStreamErrorDomainKey=4}}}.

Failed to get installations token. Error : Error Domain=com.firebase.installations Code=0 "Underlying error: A data connection is not currently allowed." UserInfo={NSLocalizedFailureReason=Underlying error: A data connection is not currently allowed., NSUnderlyingError=0x281e784e0 {Error Domain=NSURLErrorDomain Code=-1020 "A data connection is not currently allowed." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x281e7b8a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1020 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <516FC515-5253-4C61-9EFE-D5143277783D>.<2>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <516FC515-5253-4C61-9EFE-D5143277783D>.<2>"
), NSLocalizedDescription=A data connection is not currently allowed., NSErrorFailingURLStringKey=https://firebaseinstallations.googleapis.com/v1/projects/my-project-id/installations/, NSErrorFailingURLKey=https://firebaseinstallations.googleapis.com/v1/projects/my-project-id/installations/, _kCFStreamErrorDomainKey=1}}}.

Failed to get installations token. Error : Error Domain=com.firebase.installations Code=0 "Underlying error: The network connection was lost." UserInfo={NSLocalizedFailureReason=Underlying error: The network connection was lost., NSUnderlyingError=0x2814ea310 {Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSUnderlyingError=0x2814ea670 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_kCFStreamErrorCodeKey=54, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=https://firebaseinstallations.googleapis.com/v1/projects/my-project-id/installations/, NSErrorFailingURLKey=https://firebaseinstallations.googleapis.com/v1/projects/my-project-id/installations/, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=54, NSLocalizedDescription=The network connection was lost.}}}.

@DellaBitta @paulinon Another update: I noticed that once a day, the Fetch call works as expected, but when restarting the app directly after that, the error continues to appear.
This could indicate that the default 12 hour cache expiration works, but any value passed to the Fetch call trigger the exception.

Hi @Nyankoo,
I wanted to check in with you to see how things are going.  I tried again to reproduce this locally by building on Windows and deploying on Android and unfortunately I had no luck in replicating the issue.

Have you opened a Firebase Support ticket to see if there's more logging on the backend?
The note about the Installations token is intriguing.  Is this logging always present on RemoteConfig calls which never return?   Additionally are you seeing similar logs on Android?

Thanks!

Hi all, I have the same issue..
FirebaseRemoteConfig.FetchAsync(TimeSpan) sometimes (25 to 50% of the time) never returns a result on iOS devices (works well on android devices).
Using FirebaseRemoteConfig.FetchAsync() solves the issue but we just can't afford to have a 12hours cache in our app.
Bug occurs on all our iOS devices.
Unity editor version: 2020.3.18f1 (also tried some 2019 versions)
Firebase Unity SDK version: 7.1.0
Source you installed the SDK: Unity Package Manager
Problematic Firebase Component: Remote Config
Other Firebase Components in use: Firestore, Crashlytics, Auth
Additional SDKs you are using:
Platform you are using the Unity editor on: Mac
Platform you are targeting: iOS
Scripting Runtime: IL2CPP
Here's a code snippet if that can help :
// this method is called in the Start function of our main scene (but several scenes come before that one)
 void InitializeFirebaseRemoteConfig()
        {
            // These are the values that are used if we haven't fetched data from the
            // server
            // yet, or if we ask for values that the server doesn't have:

            _FirebaseRemoteConfig = FirebaseRemoteConfig.DefaultInstance;

            Dictionary<string, object> defaults = new Dictionary<string, object>
            {
                { "config_test_string", "default local string" },
                { "config_test_int", 1 },
                { "config_test_float", 1.0 },
                { "config_test_bool", false }
            };

            _FirebaseRemoteConfig.SetDefaultsAsync(defaults).ContinueWithOnMainThread(fetchTask1 =>
            {
                _FirebaseRemoteConfig.FetchAsync(new TimeSpan(0, 0, 10)).ContinueWithOnMainThread(fetchTask2 =>
                {
                    // doing our stuff here
                    // 25-50% of the time on iOS, we can't get here
                });
            });
        }

@google-oss-bot we are still having this issue, detailed information provided in the comment above, could you please reopen this issue?

@DellaBitta @paulinon Please re-open the issue, thanks!

Hi @flogavel,
Thanks for the test case. I was able to reproduce the issue by replacing the quickstart code for InitializeFirebase with your implementation:
void InitializeFirebase()
{
      System.Collections.Generic.Dictionary<string, object> defaults = new System.Collections.Generic.Dictionary<string, object>
      {
          { "config_test_string", "default local string" },
          { "config_test_int", 1 },
          { "config_test_float", 1.0 },
          { "config_test_bool", false }
      };

Firebase.RemoteConfig.FirebaseRemoteConfig.DefaultInstance.SetDefaultsAsync(defaults).ContinueWithOnMainThread(fetchTask1 =>
      {
        DebugLog("RemoteConfig configured and ready!");
        isFirebaseInitialized = true;
        Firebase.RemoteConfig.FirebaseRemoteConfig.DefaultInstance.FetchAsync(new TimeSpan(0, 0, 10)).ContinueWithOnMainThread(fetchTask2 =>
          {
            DebugLog("Fetch Returned");
          });
      });
}

Marking this as a bug, thank you!

For those who are having this issue, we were able to resolve it by making sure that there are ZERO calls to the Firebase SDK before it has finished initializing. In our case, we were calling FirebaseRemoteConfig.DefaultInstance.Keys before CheckAndFixDependenciesAsync has finished calling its callback, which was the trigger to the broken behaviour described here.
Not sure that it's the exact same issue others are having, but it did help us.

We're awaiting CheckAndFixDependenciesAsync and initiate all other calls to the Firebase SDK after it returns with DependencyStatus.Available, so it seems this is unrelated.

For those experiencing the issue where Fetch() hangs on iOS, please see https://github.com/firebase/quickstart-unity/issues/1198#issuecomment-1040690857 for more information. For Android, we are still looking into the issue.

Hey all,
Firebase SDK for Unity 8.9.0 is now live, which contains a fix for this issue, and you can download it directly here, or through the usual places like the package manager.
I'm going to close this issue for now, but please let us know if there are any outstanding problems.

@a-maurice Just tested with 8.9.0, and the original issue is still happening when we call
FirebaseRemoteConfig.DefaultInstance.FetchAsync(TimeSpan.Zero)

@a-maurice @DellaBitta Please re-open this issue to continue to keep track of it.

@Nyankoo are you still seeing it in both Android and the editor?

@a-maurice This currently only seems to happen in the Editor (tested on Android, not iOS), but I will update here when we released an update to our app and see if the issue still appears in Crashlytics.

@a-maurice We're still seeing this in Crashlytics happening to our users, so it doesn't seem to be fixed on Android.


How to start the project?

The webpage is not showing up. Docker starts okay and looks fine but once opened up in the browser no webpage. i exposed port 8080 in docker but no luck getting it to work.

This API isn't rendering any website page, only JSON content through routes /license or /license/register.
Here is the running process (I did put a docker image instead of doing go run .), is it something similar to what you've done ?
# Go into the repo folder
cd go-clearkey-server
# Run the database
docker-compose up

# This run the docker image of the project & expose port 8080 on your host machine
docker run -p 8080:8080 protocole/go-clearkey-server

Nice. It started i like to use it as a replacement of my current server but for that ill need SSL. Is there a way to implement SSL?
Also the "/license/register" is not fully clear to me how to add a new lisence the example goes into "/license" part how to obtain the license for the webplayer (test.html) but how to add one so i can test it out? I am really lookng forward to this project. Thanks for the amazing work

Based on my knowledge, TLS shouldn't be implemented at the application level, but more at infrastructure level. You can do it if you have an nginx upfront for instance.
/license/register follows W3C format, which is the standard format for ClearKey licensing. I'm seeing that I've put a link to section 9.1.4 instead of 9.1.3 in the readme, my mistake on this.
As you see in 9.1.3, the server is expecting the below format. Be aware that kids (for Key IDs) must be base64encoded.
{
  "kids":
    [
     "LwVHf8JLtPrv2GUXFW2v_A",
     "0DdtU9od-Bh5L3xbv0Xf_A"
    ],
  "type":"temporary"
}

I hope it helps, this conversation will certainly help me to make a better readme.


Add ClassWithAsync for CsWinRT async benchmarks.

Add ClassWithAsync for CsWinRT async benchmarks.

CI pipeline infra looks like it needs to be fixed due to other issues, so merging this with confirmation it builds in cswinrt repo.


On Linux, -Xss6M cannot be specified from SBT_OPTS

Have same problem with sbt 1.2.7.
The problem is that the options are appended after any command line args, e.g.:
[residual] arg = 'test'
Using sbt options defined in variable $SBT_OPTS
[residual] arg = '-Xss2m'
[residual] arg = '-XX:MaxMetaspaceSize=768m'
Detected sbt version 1.2.7
Using jvm options defined in file /etc/sbt/jvmopts
# Executing command line:
java
-Xms2048M
-Xmx2048M
-Xss6M
-XX:MaxPermSize=512M
-jar
/home/travis/.sbt/launchers/1.2.7/sbt-launch.jar
test
-Xss2m
-XX:MaxMetaspaceSize=768m

The last two lines should appear before -jar and certainly not after test.  Behavior on MacOS is correct:
[process_args] java_version = '8'
# Executing command line:
java
-Xss2m
-XX:MaxMetaspaceSize=768m
-jar
/usr/local/Cellar/sbt/1.2.7/libexec/bin/sbt-launch.jar
test

On Linux, the sbt script synthesized the final invocation command as
  execRunner "$java_cmd" \
    "${extra_jvm_opts[@]}" \
    "${java_args[@]}" \
    -jar "$sbt_jar" \
    "${sbt_commands[@]}" \
    "${residual_args[@]}"

and on MacOS as
execRunner "$java_cmd" \
    $(get_mem_opts $sbt_mem) \
    $(get_gc_opts) \
    ${JAVA_OPTS} \
    ${SBT_OPTS:-$default_sbt_opts} \
    ${java_args[@]} \
    -jar "$sbt_jar" \
    "${sbt_commands[@]}" \
    "${residual_args[@]}"

Writing scripts that work in both environments is next to impossible.
Originally posted by @jeffrey-aguilera in https://github.com/sbt/sbt-launcher-package/issues/260#issuecomment-450007476

macOS and Linux should have the same behavior since they come from the same files. There are some slight modification Home Brew adds, but I don't think it should affect this.

@jeffrey-aguilera From the looks of your snippet you quoted for Linux, it seems like it's using sbt-extras. If so try using -J-X as @outkaj noted, or install the Lightbend sbt script available from apt-get.

sbt-extras is installed by Travis-CI, apparently: https://docs.travis-ci.com/user/languages/scala/


Rack elevation: rack group ID filter uses slug name instead

Environment

Nautobot version (Docker tag too if applicable): 1.6.0
Python version: -
Database platform, version: -
Middleware(s): -

Steps to Reproduce

Create two (sub) rack groups with the same slug (e.g. server-room), each in different rack parent rack groups (e.g. A and B) (see image)

Add some rack to both of those sub rack groups
Open rack elevation of one of that parent rack group (based on Rack group ID)

Expected Behavior
Rack elevation should show only racks from within that particular rack group ID (in the provided example, just one rack should be displayed).

Observed Behavior
Rack elevation shows rack(s) from also other rack groups which have identical slug name within their structure.
I assume that it's caused by the facts that at some point a search (filter) is not focused on ID but rather slugs. Well, and because slugs in general are not totally unique, this leads to this incorrect state.

Hi @david-kn thanks for the report. Based on the information you provided I am unable to reproduce this.
I recreated the Rack Group hierarchy that you provided, however, I have some questions on how you arrived at filtering by rack elevations.

How are you navigating to the Rack Elevations view?

What is in the URL after you've clicked any links that result in a filtered view? Can you please provide the URI without the hostname? (e.g. /dcim/rack-elevations/?group_id=d3bee724-cc6f-496d-b16f-2f78a35a901b)

Thank you.

Hi @jathanism,
OK - hopefully this will be already complete information :-) btw. I've just reproduced this case on demo.nautobot.com (but I don't know for how long it can last there?)

Navigation:  go via Organization -> Site and then click on that Rack elevation icon next to the Rack groups table (I rather attach again a print screen).

That link from step # 1 actually does this filter on its own. But I just tried to do it also manually (via Filter button) and I can see in the address bar (even though I chose option Rack group (ID) and selected just a single one of my rack groups) that it still got reproduced as https://demo.nautobot.com/dcim/rack-elevations/?&group_id=server-room and it's also incorrectly displayed.

This is the (complete) link: /dcim/rack-elevations/?group_id=5833dde8-9c81-48ce-9654-d46be0dc0c33 (this is an actual link from your demo.nautobot.com instance so it could probably work a day or so?)

Cheers

The link in step 01 appears correct (it's using the PK of the rack group, not its slug), but can confirm that the dynamic filter form uses the slug instead. This is likely because TreeNodeMultipleChoiceFilter (the type of the group_id filter) was enhanced in bb3f35c0 (#1891) to support both PKs and slugs - the problem here is that RackGroup.slug is not globally unique (it's only unique within its parent group). This is the same type of problem as #4207.

Likely the change we will make for both #4207 and #4279 is to change the UI behavior so that all NaturalKeyOrPKMultipleChoiceFilter in the UI switch their behavior to preferring the pk over the name when making a selection and updating the URL query params.


Updating apps

Beyond Building a native distribution what are our options for updating our apps once we've distributed them?
I am targeting Mac and am planning on a Brew cask for now, but it would be nice if we could use Sparkle on MacOS.

We don't provide any updating mechanisms at this moment and we don't have immediate plans for implementing them either.
For now:

One option would be to publish to Mac App Store/Windows App Store;
Another would be to use a third party tool like Conveyor (it's a proprietary third party tool, which is expected to be paid for commercial use, but should be free for open source).

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Lab 06 Level 4 Checking of bounds

Hello, I would assume for generateRule() it would go along the lines of something like this. However, I'm unsure on how to check for the cases where x == 0 or x == list.size() - 1 and hence deal with them accordingly to prevent any indexing errors. Are we allowed to use if/else statements in the middle of our pipelines? Thanks!

I have a similar solution to you, but I did check the neighbours to see if they are corners in the left corner (x > 0) and right corner (x < list.size()). If true, then list.get(x), else 0.

I used Math.max() and Math.min to ensure that i do not go out of bounds

u can try setting it like
(x != 0 ? list.get(x - 1) : 0) + (x != (list.size() - 1) ? list.get(x + 1) : 0)) == 1

hi, i used .map(x -> { if else }), to check if x ==0  and x == list.size() -1, maybe you can try that

if you are using IntStream.range your range of numbers should be 0 to list.size() -1.
if you are using IntStream.rangeClosed your range of numbers should be 0 to list.size() -2.
This is because of indexing principles. Hope this helps!

you can check if your x is 0 or list.size()-1, then do seperate checks (i.e. only one side) to ensure you dont check out of bounds

I used if/else statements in my map and it works. Maybe you can try?

Alright, since I hate typing code I have a few pointers:

Assume that anything beyond bounds will ALWAYS be a dead cell. But only modify your own cell yeah?
Use a LOT of ternary operators.

It works now, thank you everyone for the help! Didn't know you could use if/else statements inside a map


Feature/new router

What does this PR do?
Aims to change the router and middleware provided by gin to a native implementation, this was required because some apis require more customized routing capabilities.
Mains Changes
Routing - The routing system was replaced by httptreemux which is an amazing router inspired on Julien Schmidt's httprouter. This change now brings us more flexibility on the routes definitions because this router is uses the radix tree.
Middleware - The middleware chain was also replaced from gin's implementation to alice. This package allow us to write net/http compatible middleware and chain them in a very nice way.
Transport - The transport layer that was defined for our reverse proxy now is smarter and cleaner, I called it oauth.AwareTransport since it needs to be aware of the response from the authentication server (so it knows how to store and expire keys automatically).
Packages - Most of the structs that were used by janus were in the janus package, now they were moved to their own packages, of course this implies in a lot of files changed.
Known Bugs
Oauth Servers - Each oauth server has an UUID when created, this id is attached to an API that desires to use that specific oauth server as its auth mechanism. The problem that we have at the moment is that, given the changes on the Transport layer, now it's impossible to know from which auth server the access token is coming from, this means that all access_tokens from all servers are on the same bucket.  This is not a huge issue when you have just 2 or 3 different oauth servers, but if you have more the access tokens can collide. I've opened an issue #22 to solve this asap.

lgtm


Error: [Bower Component] is not in the SourceMap.

I am receiving the following error:
Error: "/components/include-media/dist/_include-media.scss" is not in the SourceMap.
Any ideas how I can include Bower components in my SourceMap? The file in question is imported into my styles.scss file:
@import
  '../../../components/include-media/dist/include-media';

My Gulp task looks like this:
var cssTask = function() {
  return gulp.src(paths.src)
    .pipe(gulpif(!global.production, sourcemaps.init()))
    .pipe(sass(gulpif(!global.production, config.tasks.css.sass.default, config.tasks.css.sass.production)))
    .pipe(autoprefixer(config.tasks.css.autoprefixer))
    .pipe(size({
      title: 'stylesheets',
      showFiles: false
    }))
    .pipe(gulpif(!global.production, sourcemaps.write()))
    .pipe(gulp.dest(paths.dest))
    .pipe(browserSync.stream())
}

I'm getting this with *.less files within node_modules/

@philipbenton here is a temporary solution: https://github.com/floridoo/gulp-sourcemaps/issues/174#issuecomment-195033838

Support questions should be directed to StackOverflow.


async + arrow-parens

async (a, b) => {}

results in Expected parentheses around arrow function argument error.

Dup of https://github.com/babel/babel-eslint/issues/268, https://github.com/babel/babel-eslint/issues/252
Use https://github.com/babel/eslint-plugin-babel#rules
babel/arrow-parens: Handles async functions correctly

Thanks!
I checked only open issues for some reason…

Np, If there is an incompatibility with an existing rule + experimental feature - we might need to modify the rule to account for it like in this case


Modify LoRaChat to use it as a library

I've made a few changes to transform the application into a library:

Moved the Wi-Fi credentials and MQTT connection details out of config.h so plaform.io does not override the user defined credentials automatically importing the file.
Created the LC (LoRaChat) class to make the library user-friendly.
Moved the demo code to the examples' folder. This way, platform.io won't automatically include the files.
Created the library.json file to list the library dependencies and have them installed automatically when using the library.

TODO: Find an alternative to declare the application ports when registering the application.

Hi!
I've added a new commit, whose main contribution is to add a virtual destructor to the DataMessageGeneric class.
This was needed to solve a memory leak caused by the deletion of an instance of a class that inherited from DataMessageGeneric.
E.g. when MqttService::processReceivedMessageFromMQTT deletes the message at the end.


[UI] Validate behaviour for non-admins

Permission handling is coming in post 1.0 (#104)
Need to ensure when the user does hit this.... the UI handles it correctly (doesn't log user out, shows friendly error, etc)

https://docs.epinio.io/next/references/authorization#add-a-new-usercat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
type: BasicAuth
metadata:
  labels:
    epinio.io/api-user-credentials: "true"
    epinio.io/role: "user"
  name: my-epinio-user
  namespace: epinio
stringData:
  username: myuser
  password: "$2a$10$6bCi5NMstMK781In7JGiL.B44pgoplUb330FQvm6mVXMppbXBPiXS"
  namespaces: |
    workspace
    workspace2
EOF

To get password - https://bcrypt-generator.com/ (rounds 10)


SharePoint Site Scripts for Page creation

What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
Site designs & site scripts
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[ ] 💥 Microsoft Edge
[ ] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[X] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details
No response
Issue description
Hi,
as once asked 2019 in #3038, when will we get the ability to add Pages / Homepages to Site Templates ?
This question was closed 2020 and the last Update that Vesa gave was Oct 2019, I thought that maybe in 2022 we might get a chance to add that feature to the engine and support it?
I know about the workaround with PnP, Microsoft Flow, Azure Function, Storage Queue,.... but this is a bit oversized for most clients that request a simple Site Template with basic capabilities such as a standardized homepage, like the Microsoft out of the box Templates already provide.
Cheers,
Jan

Unfortunately, there is no update to this feature yet. Pages are still not supported with the Site Templates.


vscode extension does not handle cases in JSX FormattedMessage multi-string formatting

Describe the bug
in cases where I have FormattedMessage in single line, I have id replaced with english value.
this one working:
<FormattedMessage id=buy defaultMessage='Купить' />

this one does not:
<FormattedMessage
  id='home-page.buy-button.title'
  defaultMessage='Купить'
/>

Extension Version
vscode extension antfu.i18n-ally
Framework/i18n package you are using

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'=
See error

Device Infomation

OS:
Version:
VS Code Version:

Extension Log
Go to View -> Output -> i18n Ally, and paste the content below. You should mask any sensitive information
🈶 Activated, v2.1.5

――――――

💼 Workspace root changed to "/project"
📦 Packages file "package.json" found
🕳 Packages file "pubspec.yaml" not exists
🕳 Packages file "composer.json" not exists
🕳 Packages file "Gemfile" not exists
🌞 Enabled
🧩 Enabled frameworks: React
🧬 Enabled parsers: json, yaml, json5

🚀 Initializing loader "/project"
📂 Directory structure: file
🗃 Path Matcher Regex: /^(?<locale>[\w-_]+)\.(?<ext>json|ya?ml|json5)$/

📂 Loading locales under /project/src/const/intl
	📑 Loading (en) en.json [1589098534741.0415]
	📑 Loading (ru) ru.json [1589098704043.9067]

👀 Watching change on /project/src/const/intl
✅ Loading finished

――――――

🔄 File changed (change) ru.json
	📑 Loading (ru) ru.json [1589101141362.4773]
🔄 File changed (change) en.json
✅ Loading finished

	📑 Loading (en) en.json [1589101141362.497]
✅ Loading finished

🔄 File changed (change) ru.json
	📑 Loading (ru) ru.json [1589105717276.1946]
🔄 File changed (change) en.json
✅ Loading finished

	📑 Loading (en) en.json [1589105717276.218]
✅ Loading finished

🔄 File changed (change) ru.json
	📑 Loading (ru) ru.json [1589106040668.4944]
🔄 File changed (change) en.json
✅ Loading finished

	📑 Loading (en) en.json [1589106040668.5308]
✅ Loading finished

Screenshots

One more question, is it possible to change default locale for ru or any other in .vscode/settings.json` ? In some of my projects I would love to have same language as in default messages.

One more question, is it possible to change default locale for ru or any other in .vscode/settings.json` ? In some of my projects I would love to have same language as in default messages.

Not sure if I understand right, probably you can set the "i18n-ally.sourceLanguage" in your user setting instead of workspace setting.

Fixed in 2.1.6

Thank you!
On Tue, 12 May 2020 at 10:12 AM, Anthony Fu<EMAIL_ADDRESS>wrote:

Fixed in 2.1.6
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/antfu/i18n-ally/issues/294#issuecomment-627081751,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARGY6LJENZTV6GNKCTQ4LLRRC5ARANCNFSM4M5GEDCA
.


Custom Session Data for CredentialsProvider is broken

Environment

Operating System: Windows_NT
Node Version:     v20.8.0
Nuxt Version:     3.10.1
CLI Version:      3.10.0
User Config:      devtools, builder, site, modules, runtimeConfig, tailwindcss, sitemap, gtag, image, nitro, auth
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
https://github.com/sidebase/nuxt-auth-example
Describe the bug
When login is a success, it return the user object to store it in the session data, however that is only working for the "default" fields like "name", "email" and "image"
Not working in my env, also tested in on the example repo, looks broken there too.
This is the User object that is returned on success:
const user = { id: '1', name: 'J Smith', username: 'jsmith', password: 'hunter2' }
However this is the session data:

As you can see it only has the 'name' value
Additional context
No response
Logs
No response

Fixed it by using the jwt and session callback, so this should be added to the example i guess.

Hi @FrankoFM 👋
We have this features in our docs: https://sidebase.io/nuxt-auth/recipes/custom-session-data. We can look to update the example in the future to feature this too!


Lemur: Destination - fix S3 bucket path and add logs for successful upload

Coverage: 62.46% (+0.05%) from 62.407% when pulling e2357a7f7a599a6b87cf78e1b9c45f7736385713 on jmcrawford45:PS-4270 into 666d853212174ee7f4e6f8b3b4b389ede1872238 on Netflix:master.


Fix black pixels returned by Lut1D_Linear in certain cases

It was possible to have linear lookup returning black pixel for values
which are far beyond lookup table range. This was caused by precision
issues with floating point. Basically, if index is really high, then
it'll make delta really high and for such high values delta will be
equal to (1.0f - delta) because of the way how machine math works.
This will then produce 0 as the output value.
This patch performs early output check to avoid any possible floating
point precision issues in such cases.

That's the same math that was causing instability in the result values for large excursions past the bounds. I had suggested that Kevin's numeric stability fix (which was a gist, not a MR) should also be applied to other interpolation that likely have the same instability, in particular, Lut3D_Linear and Lut3D_Tetrahedral.
Here's his gist: https://github.com/imageworks/OpenColorIO/issues/420
Can we merge these efforts and apply them in all of the necessary places?

Dithermaster, ah, didn't know there was an existing patch for that. There is actually a PR #441. Good thing about that patch is that it includes a unit test.
I was thinking that 3D LUT interpolation also needs a fix, but so far i did not run into the case where it fails, so can't really verify any changes there. Maybe with unit tests it'll be easier to test.
I'm also all up for merging forces on getting this issues solved. How do we move forward from this point?

Someone posted your PR on the OCIO Slack and we had some discussion there. I don't know the next steps; I think Sean is able to take PRs so hopefully he can take #441 soon after it's been reviewed (I suggested that the 3D look be adjusted too since it uses similar math).

Thanks for the PR @Nazg-Gul I am going to work on reviewing this and #441 this week and testing them on my end

Now that https://github.com/imageworks/OpenColorIO/pull/441 has been merged, this change is not needed.


Error when downloading Daymet data

Hi Erin,
I committed the script to download Daymet data for some points in Mexico. I added comments and questions on the script that we can discuss when we talk this week. The code worked, but my connection at home is too bad that I got an error when downloading the point data with the daymetr::download_daymet() function.
This is the error:
Error in curl::curl_fetch_disk(url, x$path, handle = handle) :
Timeout was reached: [daymet.ornl.gov] SSL/TLS connection timeout
I can try downloading the data on campus on Thursday or Friday.
Gaby

Hi @ezylstra
This morning I ran the code again and I didn't have any errors, so I downloaded a test dataset and summarized it to create the test covariates. There are comments in the script with some of my thoughts.
There is no hurry to review it, I just wanted to let you know of the update.
Thanks!


Question: How can I search the hidden file in Windows pwsh.

Info

OS

[ ] Linux
[ ] Mac OS X
[X] Windows
[ ] Etc.

Shell

[ ] bash
[ ] zsh
[ ] fish
[X] pwsh

Problem / Steps to reproduce
1.Download fzf and fzf.vim with
Plug 'https://github.com/junegunn/fzf.git', { 'dir': '~/.fzf', 'do': { -> fzf#install() } }
Plug 'https://github.com/junegunn/fzf.vim.git'

Use fzf in pwsh(7.1) with dot directories(e.g .julia) and not see the result.
Use :FZF in vim with dot directories and not see the expected result.

Hidden files are included by default since 0.47.0.
https://github.com/junegunn/fzf/blob/master/CHANGELOG.md#0470


qxlsx: several fixes & improvements

simplify patches
relocatable shared lib on macOS
remove injection of CMake variables (they are useless)
fix CMake imported target: it's QXlsx::Core, not QXlsx::QXlsx, according to https://github.com/QtExcel/QXlsx/pull/197
fix cpp_info.includedirs
explicit cpp_info.libs
finer-grained requires of qt components in package_info()

Thanks for the awesome work! I merge it right now!


Environment Variables

Implement the getting and setting of environment variables in the shell.

http://askubuntu.com/questions/58814/how-do-i-add-environment-variables

To set variable only for current shell:
VARNAME="my value"
To set it for current shell and all processes started from current shell:
export VARNAME="my value"      # shorter, less portable version

Done since f7a854b816ffb4273a2d993f7e54dfe9d16cbf8f


[cloud_firestore]: missing increment updates when unstable internet connection

Is there an existing issue for this?

[X] I have searched the existing issues.

Which plugins are affected?
Firestore
Which platforms are affected?
Android, iOS
Description
The issue can be reproduced both on iOS and Android (simulator and physical device). I had to dig deep to be able to narrow it down to a simple function. The gist of the issue is that when the network is disabled and then enabled later, FieldValue.increment() may never reach Cloud Firestore, or maybe it reaches it, but there is some conflict there. When your balance is 0 and you call increment(-10) and then increment(10), you can end up with a balance of -10, which is wrong. You should end up with a balance of 0 always.
This issue can be reproduced with a real network on a real device in real-life conditions, but it's hard and very cumbersome. This is why in my reproduction case, I used firestore.disableNetwork() and firestore.enableNetwork().
Also note that when you call the simulate function once, sometimes it can work as expected. I would say it causes the bug about 40-50% of the time. This is why I created the fastSimulate function that increases the chance of missing events. When we call simulate or fastSimulate, the expectation is that the value will always be 0 after all operations are synced with Firestore because we subtract and add the same amount.
Future<void> simulate() async {
  increment(-1);
  await firestore.disableNetwork();
  increment(1);
  await firestore.enableNetwork();
}

Reproducing the issue

Install firebase_core: 2.31.0
Install cloud_firestore: 4.17.3
Configure Firebase for the Flutter project and have FirebaseOptions.currentPlatform ready.
Import FirebaseOptions to the main.dart file.
Replace colId, docId, and valueId with your values.
Create a field in your document, make it an integer, and assign the value of 0.
Launch the app.
Try to press simulate a couple of times with a delay of 2-3 seconds.
If regular simulate doesn't work, try to press fastSimulate.
After you have completed steps 8 and 9, you should have a value of -1 or lower.

import 'dart:async';

import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
// todo: add your path
import 'your-location-of-firebase-options';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(
    options: FirebaseOptionsDevelopment.currentPlatform,
  );
  runApp(const App());
}

// todo: update values
const colId = 'your-collection-name';
const docId = 'your-document-id';
const valueId = 'your-field-name';
final firestore = FirebaseFirestore.instance;

class App extends StatefulWidget {
  const App({super.key});

  @override
  State<App> createState() => _AppState();
}

class _AppState extends State<App> {
  int id = 0;
  int value = 0;
  StreamSubscription<dynamic>? sub;

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

  @override
  void dispose() {
    unawaited(sub?.cancel());
    super.dispose();
  }

  void subscribe() {
    sub = firestore.collection(colId).doc(docId).snapshots().listen(
      (data) {
        setState(() {
          value = data[valueId] as int? ?? 0;
        });
      },
    );
  }

  Future<void> simulate() async {
    increment(-1);
    await firestore.disableNetwork();
    increment(1);
    await firestore.enableNetwork();
  }

  void increment(int value) {
    unawaited(asyncIncrement(value, id++));
  }

  Future<void> asyncIncrement(int value, int myId) async {
    print('[START] $myId - increment($value) ${DateTime.now()}');
    await firestore.collection(colId).doc(docId).update({
      valueId: FieldValue.increment(value),
    });
    print('[END] $myId - increment($value) ${DateTime.now()}');
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.white,
        body: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Row(),
            Text(
              value.toString(),
              style: const TextStyle(
                fontSize: 50,
              ),
            ),
            TextButton(
              onPressed: simulate,
              child: const Text('Simulate (50% reproduction guarantee)'),
            ),
            TextButton(
              onPressed: () async {
                final simulations = <Future<void>>[];
                for (var i = 0; i < 50; i++) {
                  simulations.add(simulate());
                }
                await Future.wait(simulations);
              },
              child: const Text('Simulate (95% reproduction guarantee)'),
            ),
          ],
        ),
      ),
    );
  }
}

Firebase Core version
2.31.0
Flutter Version
3.22.2
Relevant Log Output
No response
Flutter dependencies

Expand Flutter dependencies snippet

Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments
https://github.com/firebase/flutterfire/assets/57593530/0d28e2a2-8185-4a25-bf2d-b6f14bd5d209

Hello @eli1stark. Thank you for reporting this bug, Can you please try again with the latest firebase versions?

@TarekkMA Yes, it's still reproducible on the latest versions, forgot to mention that.
firebase_core: 3.1.0
cloud_firestore: 5.0.1

I've been able to reproduce this issue on the issue/12952 branch. I will inform the team, and we will look into fixing this.

Native Android Reproduction: Firebase Android Reproduction.


Hide enable password login flow until user verification

Fix for #4984 - Password reset for accounts created with MSA login is broken
Also, added a redundant server side check which would send invalid password reset links.
use ?w=1 to ignore whitespace changes.
Before confirmation:

After confirmation:

What will the UI look like for an unconfirmed account? Can you attach a screenshot?

@skofman1 - see the updated description


[Workers] Add HTTP max upload size to limits.md

Requested by https://github.com/cloudflare/cloudflare-docs/issues/1361

Noted the network-wide upload limits Cloudflare has in place
Noted all requests larger than your plan's limit will be rejected with HTTP 413
Noted that enterprise customers may lift the upload size as needed
Linked to https://cloudflare.com/plans so people may find more information if needed. (Might change to a support article instead)
Added table which contained current upload limits per-plan (from this support article)

Oh, another commit I did for a separate issue somehow landed in here. Suppose I'm more rusty on GitHub than I thought. Oh well, hope it's okay.
Rogue commit ("fix toml example") is for #1182 ; Product is still "Workers". Modifies cli-wrangler/configuration.md

cc @rita3ko for review on limits stuff

@Mooshua can you rebase this and we'll get it reviewed soon? thanks!

cc @rita3ko who would be the right person to review this?

Is it possible to add a section on response size limits?

Rebased & force pushed the changes :) Content should be the same, despite the funky diff.


[To rel/0.12] [IOTDB-1580] Error result of order by time desc when enable time partition

The bug is caused by we didn't traverse the tsfile seqeunce in time partition order.

release note...


Course details : Repetition of same courses

Path : explore more courses
There is a repetition of the same web development course for multiple times
Mobile view :

Desktop view :

@Kunal0007

Currently, the frontend is migrating to React.

Then, I close this issue


Add mandrill subaccount header to all emails

Coverage increased (+0.01%) to 81.882% when pulling 1ed5af792cd571f06c92018f1d2a7ca9636a4a4c on mandrill-subaccount into 6bf793fdf998bdf4371810e4468af1e1cd051e1c on staging.


Fix compiler warnings when in C99 standards mode

Output when compiling (with clang -Wall -std=c99):
src/linenoise.c:201:14: warning: implicit declaration of function 'strcasecmp' is invalid
      in C99 [-Wimplicit-function-declaration]
        if (!strcasecmp(term,unsupported_term[j])) return 1;
             ^
src/linenoise.c:647:55: warning: implicitly declaring C library function 'strdup' with
      type 'char *(const char *)'
        history[history_len - 1 - l->history_index] = strdup(l->buf);
                                                      ^
src/linenoise.c:647:55: note: please include the header <string.h> or explicitly provide a
      declaration for 'strdup'

strcasecmp just required a include of strings.h, but it turns out strdup isn't standard C - it's a POSIX thing.

strdup() is supposed to live in <string.h>
http://pubs.opengroup.org/onlinepubs/9699919799/functions/strdup.html
and
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/string.h.html
If it is a POSIX thing it should live in <unistd.h>

@Sonophoto: Just because POSIX says it lives in string.h doesn't make it any less POSIX. The very links you've given are to the latest unified POSIX/SUS spec (see at the header and footer of those pages where it says IEEE Std. 1003.1, that's the formal IEEE standard designation for SUS, to which the latest POSIX is aligned) and the strdup function is clearly marked with the CX tag on those pages: the CX tag means it's an extension added by that standard on top of the C standard.


Add dbport parameter

When I tried to get up and running I had trouble because there is an option for dbhost, but none for dbport, so I naturally assumed the software wanted "host:port" notation. This did not work:
[vagrant@f24 bin]$ ./alm -dbhost localhost:5432
Running as user name "vagrant" with UID 1001.
Opening DB connection attempt 1 of 50
Opening DB connection attempt 2 of 50
Opening DB connection attempt 3 of 50
Opening DB connection attempt 4 of 50
Opening DB connection attempt 5 of 50
Opening DB connection attempt 6 of 50
Opening DB connection attempt 7 of 50
Opening DB connection attempt 8 of 50
Opening DB connection attempt 9 of 50

Let's add dbport so it is a little more clear to the user.

we could also have validation of the dbhost parameter, which would also solve this problem.

@sbose78 If you don't mind, I'd like to solve this as part of #176 and close this.

Sure works.
On Sep 7, 2016 12:02 PM, "Konrad Kleine"<EMAIL_ADDRESS>wrote:

@sbose78 https://github.com/sbose78 If you don't mind, I'd like to
solve this as part of #176
https://github.com/almighty/almighty-core/issues/176 and close this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/almighty/almighty-core/issues/207#issuecomment-245188010,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAhSAJcQtAUBSsK0HqoUPy6sMjlMHxNIks5qnlqKgaJpZM4J2RAh
.

@sbose78 @dustymabe Please review PR #274.

looks reasonable.


Improve yii\widgets\ActiveField::widget() performance

Q
A

Is bugfix?
no

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
-

See https://github.com/yiisoft/yii2/pull/12632#discussion_r81110938

Thanks!