Add a short example of using optional workspaces in when expressions

We've just added support for optional workspaces but I forgot to include
an example showing how to use them as part of a When Expression.
This commit adds a PipelineRun example YAML showing use of a
workspaces.<name>.bound variable in a when expression.
I've also added a line to the pipelines.md file mentioning that you
can use a when expression to evaluate whether an optional workspace was
bound or not.

Changes

Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[x] Includes docs (if user facing)
[x] Commit messages follow commit message best practices
[x] Release notes block has been filled in or deleted (only if no user facing changes)

Release Notes
Added a short example of using optional workspaces in when expressions.

/kind documentation

/lgtm


User registration no longer showing "please confirm email" flash message when registering user.

Hi!
I suppose this question is more of a "if you're run into it, then happy to feel your thoughts.
Essentially, when I register a user, it will take you to the sign in page - however now it doesn't have the message to tell you to check your email to confirm. Does anyone have any possibly ideas why? I'm using all the standard routes and configurations.

How does the logic for printing info/error flash look like in layout.ex.html?

Oh, I have a suspicion that this may be because users are redirected to after_sign_in_path/1 now. If the after_sign_in_path/1 is behind required auth, then it'll redirect to the session path and set the user_not_authenticated/1 error messages which by default is nil. Let me just test this out, and if it's true, then I'll see if I can fix this issue.

I've a proper fix for #117 up in #141. It'll default to the after_registration_path/1 like now, but you can override with a specific path for halted email confirmation instead:
defmodule MyAppWeb.Pow.Routes do
  use Pow.Phoenix.Routes
  use Pow.Extension.Phoenix.Routes,
    extension: [PowEmailConfirmation]

  alias MyAppWeb.Router.Helpers, as: Routes

  def pow_email_confirmation_after_halted_registration_path(conn), do: Routes.some_path(conn, :index)
end

This gives you full granular control, and may help you set up the routes so users are not redirected multiple times.

Hi Dan,
Sorry I couldn't get back soon, I was sleeping and it's morning now haha.
I've been looking into the issue and I think it might have something to possibly do with some code/library I've used (although I struggle to understand why or which one)?
I know I've added the {:recaptcha, ""} library, and when I git stash everything the message shows again. I've added a lot of template logic, but none of it touches any of the login/registration templates.
The odd thing is that the message still doesn't show when I comment absolutely everything out of the changes I've made, so I'm a bit baffled as to why it's not working.
I've just stashed everything and will iteratively start again. I'll update you if I find the code that's interfering.

Oh, and I wasn't even adding the :recaptcha library to the sign in form, it was for a completely different contact form.

Also, I have the flash/error inside the session/new template (and possibly the same for registration as well), rather than in the layout. It's been working so far, so I'm not sure if that's the issue.

<%= get_flash(@conn, :info) %>

<%= get_flash(@conn, :error) %>

Does you root route at "/" require authentication?

It doesn't, no.
I've added most of the logic back after the git stash, including the recaptcha library and everything seems fine. Really odd.
Maybe it had something to do with mix.lock or something, but yeah, very odd.

Oh, that's really weird. I'll close this issue for now then, please do let me know if you experience the issue again, or figure out what caused it.

I've installed the PowEmailConfirmation extension and after a new registration, I've expected the user to be redirected to sessions/new with a Please confirm email flash message.
I'm redirected to the root page.
I'm following your fix above, but I get this compilation error:
== Compilation error in file lib/sfusato_web/pow/routes.ex == ** (CompileError) lib/sfusato_web/pow/routes.ex:4: module Pow.Extensions.Phoenix.Routes is not loaded and could not be found
Renaming to use Pow.Extension.Phoenix.Router, extension: [PowEmailConfirmation] seems to work, but there's no effect as I'm still redirected to /.
This is my routes.ex file:
defmodule SfusatoWeb.Pow.Routes do
  use Pow.Phoenix.Routes

  use Pow.Extension.Phoenix.Router,
    extension: [PowEmailConfirmation]

  alias SfusatoWeb.Router.Helpers, as: Routes

  def pow_email_confirmation_after_halted_registration_path(conn) do
    Routes.pow_session_path(@conn, :new)
  end
end

I've added the after_registration_path callback and this one seems to be called:
  def after_registration_path(conn) do
    Routes.pow_session_path(@conn, :new)
  end

but it results in this error:
UndefinedFunctionError at POST /registration
function nil.path/1 is undefined

Called with 1 arguments
"/session/new"

config.exs:
config :sfusato, :pow,
  user: Sfusato.Auth.User,
  repo: Sfusato.Repo,
  web_module: SfusatoWeb,
  routes_backend: SfusatoWeb.Pow.Routes,
  mailer_backend: Sfusato.Mailer.PowMailer,
  web_mailer_module: SfusatoWeb,
  extensions: [PowResetPassword, PowEmailConfirmation],
  controller_callbacks: Pow.Extension.Phoenix.ControllerCallbacks

endpoint.ex
  plug Pow.Plug.Session, otp_app: :sfusato

You just need to change Routes.pow_session_path(@conn, :new) to Routes.pow_session_path(conn, :new).
For pow_email_confirmation_after_halted_registration_path/1, I haven't yet decided to merge in #141 yet. I think this may be managed with just the after_sign_in_path/1 and after_registration_path/1, so there may not be a need to add more code.
This is what you would set up currently to get it working:
defmodule SfusatoWeb.Pow.Routes do
  use Pow.Phoenix.Routes

  alias SfusatoWeb.Router.Helpers, as: Routes

  def after_registration_path(conn) do
    Routes.pow_session_path(conn, :new)
  end

  def after_sign_in_path(conn) do
    if Pow.Plug.current_user(conn),
      do: "/",
      else: Routes.pow_session_path(conn, :new)
  end
end

I have added the after_sign_in_path override too to show how you can check if the user is actually signed in or not before decided where to redirect to.

Yiikes, I have no idea how I didn't spot the @ before conn. I must have copy-pasted that from the template. My bad.
Thank you. Everything works as expected.


Feature request: map follow mobile user

Hi, thanks for the awesome node.
One feature I would love is the ability to toggle the "Follow me" function in "continuous mode"
I.E. when i move, the map moves with me. I think it would be a great feature on mobile. And should be rather easy to implements as well.
Also, if the map is moved manually a certain distance, it could toggle off again.

You can already set the map into auto-pan mode...

Unless I'm misunderstanding something, the autopan feature will pan the view to any new (or updated) marker. What I'm talking about is autopan to the users actual location (similar to pressing the "locate me" button on the left of the map, only continuously updating as the user moves around with their mobile phone)
Or in other words, something like this: if(followMode) setInterval(map.locate({setView:true, maxZoom:16}, 1000);
If there was a way to get continuous location updates from the users gps as a map event (as in "action": "point", only updating every second or so), I guess it could solved using the lat/lon commands. But I don't see a way to get that info without putting the map in an iframe and polling for position updates in the parent site. It would also be way more hassle than just doing it on the client side.

Ah right... ok fully understand now. And actually I see a built in watch option - https://leafletjs.com/reference.html#locate-options ...  my only thoughts are
a) how stable is the location ? will the map bounce around a lot ?
b) As it says - if it gets an error it will zoom to whole world...  not pretty...

I've done some testing and it seems to work pretty well. With some caveats.
a) location is stable and works as expected. even after i move inside with no gps coverage.
b) Did not see any issues with this. though I'm not sure how to trigger an error. Tried to deny location access, works fine. tried to move to a location with no gps coverage, also works fine. I even tried to trigger an error in the chrome console using the "sensor"-tools, and while it gave the wrong location, nothing catastrophic happened.
c) the maxZoom is probably the most annoying thing. if not set it defaults to max zoom. The simplest solution I found was to use setView:false in the map.locate options, and just use map.panTo(e.latlng) in the onLocationFound callback.
d) in a perfect world it would be nice to be able to choose a marker (imagine an icon like a car or an arrow or something, since we get the heading it would look pretty cool) but even just drawing the same circle/polygon that is currently used is a fine start. The current "loctate me" onLocationFound code should probably be updated anyway since clicking the button more than once does not move the circle, but draws a new one every time. Not sure that is the intended behaviour.
PS: It is super easy to test the code without using an actual phone by enabling the "sensors"-tab in the chrome devtools.
my changes (apologize for my terrible test code):
var followMode = false;
var locationSymbol;
var headingSymbol;

function onLocationFound(e) {
    if(followMode) map.panTo(e.latlng);
    var radius = e.accuracy;
    if(!locationSymbol) {
        locationSymbol = L.circle(map.getCenter(), radius, {color:"cyan", weight:4, opacity:0.8, fill:false, clickable:false});
        locationSymbol.addTo(map);
    }
    else {
        locationSymbol.setLatLng(e.latlng);
    }
    if (e.hasOwnProperty("heading")) {
        var lengthAsDegrees = e.speed * 60 / 110540;
        var ya = e.latlng.lat + Math.sin((90-e.heading)/180*Math.PI)*lengthAsDegrees*Math.cos(e.latlng.lng/180*Math.PI);
        var xa = e.latlng.lng + Math.cos((90-e.heading)/180*Math.PI)*lengthAsDegrees;
        var lla = new L.LatLng(ya,xa);
        if(!headingSymbol) {
            headingSymbol = L.polygon([ e.latlng, lla ], {color:"cyan", weight:3, opacity:0.5, clickable:false});
            headingSymbol.addTo(map);
        }
        else {
            headingSymbol.setLatLngs([ e.latlng, lla ]);
        }
    }
    ws.send(JSON.stringify({action:"point", lat:e.latlng.lat.toFixed(5), lon:e.latlng.lng.toFixed(5), point:"self", hdg:e.heading, speed:(e.speed*3.6 || undefined)}));
}

and where the "locacte me" button is added to the map, I just added another "track me" button.
    // Add the track my position button
    trackMeButton = L.easyButton({
            states: [{
                    stateName: 'track-on',                           // name the state
                    icon:      'fa-solid fa-location-arrow',     // and define its properties
                    title:     'Disable tracking',                     // like its title
                    onClick: function(btn, map) {               // and its callbacK
                        btn.state('track-off');                       // change state on click!
                        followMode = false;
                        map.locate({setView:false, watch:followMode, enableHighAccuracy:true,maxZoom:16});
                    }
                }, {
                    stateName: 'track-off',
                    icon:      'fa-thin fa-location-arrow',      //<-- could not get fa icon styles to work with easyButton :(
                    title:     'Enable tracking',
                    onClick: function(btn, map) {
                        btn.state('track-on');
                        followMode = true;
                        map.locate({setView:false, watch:followMode, enableHighAccuracy:true,maxZoom:16});
                    }
            }]
        });
    trackMeButton.state('track-off');
    trackMeButton.addTo(map);

so thinking out loud... rather than a follow mode boolean - if it was an object with properties like  icon, iconColor, accuracy (boolean) that can be set my a command message ?
(and replace the existing button completely (but defaulted so it looked like existing... (no icon - just the ring)

That sounds like a pretty good solution to me. Should give tons of flexibility for "power users" while still being easy to use for "regular" users.

Sounds like a pretty good solution to me. It would give great flexibility for "power users" while still being easy to use for "regular users".

OK - version 2.29.0 published - added a trackme command that accepts a boolean or an object - and made the button into a toggle.
example flow
[{"id":"754cd97ba3ee94b8","type":"inject","z":"1f7f9c4efc1c5c0a","name":"Track Me","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"command\":{\"trackme\":true}}","payloadType":"json","x":240,"y":240,"wires":[["9e95310b7d554465"]]},{"id":"ad8ebce727716855","type":"inject","z":"1f7f9c4efc1c5c0a","name":"Stop tracking","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"command\":{\"trackme\":false}}","payloadType":"json","x":250,"y":195,"wires":[["9e95310b7d554465"]]},{"id":"9374ac8de4488673","type":"inject","z":"1f7f9c4efc1c5c0a","name":"Track me with icon color etc","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"command\":{\"trackme\":{\"name\":\"Fred\",\"layer\":\"tracking\",\"icon\":\"car\",\"iconColor\":\"blue\"}}}","payloadType":"json","x":300,"y":285,"wires":[["9e95310b7d554465"]]},{"id":"9e95310b7d554465","type":"worldmap","z":"1f7f9c4efc1c5c0a","name":"","lat":"","lon":"","zoom":"","layer":"","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"false","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"false","showgrid":"false","allowFileDrop":"false","path":"/worldmap","overlist":"DR,CO,RA,DN,HM","maplist":"OSMG,OSMC,EsriC,EsriS,EsriT,EsriDG,UKOS","mapname":"","mapurl":"","mapopt":"","mapwms":false,"x":540,"y":240,"wires":[]}]


un-nest mise run outputs inside tasks

currently this happens:
[a]
run = "echo a"
[b]
run = ['mise run a', 'echo b']
[c]
depends = ['a', 'b']
run = ['mise run a', 'mise run b', 'echo c']

> mise run c
[a] $ echo a
[a] a
[a] finished in 104.5ms
[c] $ mise run a
[c] [a] $ echo a
[c] a
[c] $ mise run b
[c] [build] $ cargo build --all-features
[c]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.24s
[c] $ echo c
[c] c
[c] finished in 1.82s
Finished in 13.88s

the whole [c] [a] thing is correct but we should probably just flatten it to [a]

kind of related, the task output setting should be passed down to further mise run exections


libsForQt5.mauikit: 2.0.1 -> 2.0.2

Motivation for this change
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 139455 at fd08bea7 run on x86_64-linux 1

3 packages failed to build:

libsForQt512.mauikit
libsForQt512.mauikit-filebrowsing
libsForQt514.mauikit

1 package skipped due to time constraints:

libsForQt514.mauikit-filebrowsing

3 packages built successfully:

index-fm
libsForQt5.mauikit (libsForQt515.mauikit ,plasma5Packages.mauikit)
libsForQt5.mauikit-filebrowsing (libsForQt515.mauikit-filebrowsing ,plasma5Packages.mauikit-filebrowsing)

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.


type of windows API should not be IO but should be MonadIO

So I am building a reflex wrapper for fltkhs at https://github.com/MarisaKirisame/reflex-fltk. I had made a special wrapper of newtype FLTK m a = FLTK { unFLTK :: m a } to denote that something is a fltk application, and FL.run will be call automatically.
So far, so good, but if I want to use setXXX, newButton, I have to liftIO everywhere.
Even worse, I cannot replace my implementation of within (which is on FLTK m) with the newly-added within (which is on IO).
I can redefine every function to have impl on FLTK, but I guess a more rational approach is to extend them to generic MonadIO here.

I started reflex-fltk by reading that :)
I am not good with performance, but we can try to ddump a intermediate result. My guess is FFI will be much greater cost than passing a dictionary.
For type inference, compilation, I dont know. But we can test all three of them.
If you are interested I can do it.

Sure, go for it! Not sure how you're building but profiling works pretty well with stack. Unfortunately you'll probably need to hose your .stack-work and do a stack clean first.

It is hard to profile for GUI application I guess.. So I am planning to just compare ddump

That sounds good, but just FYI, I've done a bit of work to make sure that profiling does work for fltkhs apps as well. Running stack with profiling should just work, if it doesn't please open an issue.

btw, I don't think MonadIO works for bracket functions
On Thu, Apr 5, 2018, 12:30 PM deech<EMAIL_ADDRESS>wrote:

That sounds good, but just FYI, I've done a bit of work to make sure that
profiling does work for fltkhs apps as well. Running stack with profiling
should just work, if it doesn't please open an issue.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/deech/fltkhs/issues/81#issuecomment-379050561, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACNoMVfdBd4D_w78ahj6P6Isq38VzP2qks5tlnDDgaJpZM4TIOPR
.

@sboosali there are MonadCatchIO for that


Not finishing?

Usually it should show "no more content" when the end is reached, but it is just stuck at "loading more content..."
See: https://www.thurnax.com/index.php/Thread/4528-Testbeitrag/?l=2
Click the button at the bottom first, then scroll down...you will see what I mean :/
Why is that so?

Also have the same issue when I override the msg option as below
$("#listing").infinitescroll({
loading: {
  msg: $("

")
},
navSelector: "ul.pagination",
nextSelector: "ul.pagination a[rel=next]",
itemSelector: "#listing li.comment",
bufferPx: 400
})

Infinite Scroll v3 is out!. It's an all new re-write, so take a look at how to upgrade from v2.
Infinite Scroll v3 has a new setup for loading and status elements. See status option. This uses your own HTML.

Loading...

End of content

No more pages to load

status: '.page-load-status'

I recommend upgrading to v3. Please open a new issue if you run into trouble with Infinite Scroll v3.


USER STORY: Cloud Deployment & Documentation

Make sure the first line is formatted as follows.
As a User I will want to have consistent access to a website / application. As a Developer this means deployment to a cloud resource such as AWS to make sure our users will have little to no downtime and always-on access to our platform.
Relevant Links Include:
https://docs.aws.amazon.com/whitepapers/latest/overview-deployment-options/aws-deployment-services.html
https://aws.amazon.com/free/?all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free Tier Types=*all&awsf.Free Tier Categories=*all
Story Points
Based on T-Shirt Size, this is likely an XL.

@zmagar @Exochos @Seiyaroo @NahomAlemu @tinpham5614 @kaimanasse15 Can we get a check list of issues on this user story and start creating issues for what we are currently working on with this. I will create a version of this user story for nsc events as well.


Update the default index.html example

paired with @n1k0 and @natim

Coverage remained the same at 100.0% when pulling 3a440eddbfec15126e4972201d2575e3e0703ee6 on magopian:patch-1 into 5af8a43713da9c1a7e1d45142997baa1a58b1157 on tomekwi:master.

Now for some serious bikeshedding 😉
I think I like this formatting:
$ cat <<——— > index.html
  <!doctype html>
  <link rel="stylesheet" href="/style.css" />
  <script src="/elm.js"></script>
  ———
$ elm-live Main.elm --output=elm.js --open

better than the original one:
$ echo \
  '<!doctype html>
  <link rel="stylesheet" href="/style.css" />
  <script src="/elm.js"></script>
  ' > index.html
$ elm-live Main.elm --output=elm.js --open

Do you agree? Do you think the former is readable and understandable at first glance?

Coverage remained the same at 100.0% when pulling d235097b924831a22949c37437d784ef177c586f on magopian:patch-1 into 5af8a43713da9c1a7e1d45142997baa1a58b1157 on tomekwi:master.

Coverage remained the same at 100.0% when pulling 8a547ffc4d0b2bb24ebd77361244ca53dc69f93f on magopian:patch-1 into 5af8a43713da9c1a7e1d45142997baa1a58b1157 on tomekwi:master.

Coverage remained the same at 100.0% when pulling ef43a91c2d21db290d5cb1c4802e55d9eb9873a1 on magopian:patch-1 into 5af8a43713da9c1a7e1d45142997baa1a58b1157 on tomekwi:master.

Coverage remained the same at 100.0% when pulling ef43a91c2d21db290d5cb1c4802e55d9eb9873a1 on magopian:patch-1 into 5af8a43713da9c1a7e1d45142997baa1a58b1157 on tomekwi:master.

Coverage remained the same at 100.0% when pulling ef43a91c2d21db290d5cb1c4802e55d9eb9873a1 on magopian:patch-1 into 5af8a43713da9c1a7e1d45142997baa1a58b1157 on tomekwi:master.

Amazing guys! Thanks a lot for your help and your patience with the review!

Released in 2.5.1


tests_l2: Update OCP version links in readme

Signed-off-by: vbedida79<EMAIL_ADDRESS>

LGTM


Issue 13931 - Missing overflow checks in std.conv for negative numbers which start from the most negative number digits

Issue URL: https://issues.dlang.org/show_bug.cgi?id=13931

Auto-merge toggled on

Thanks!


Declarative routing for React.

@ryanflorence's initiative.

@hemanth @timneutkens How is this project related to NOW?

It falls into Deployment Examples category

But it's not specially related to ZEIT?

This isn't so much a "Deployment Example" than a usage example. In which it doesn't really teach much apart from that now supports React Router.
I can't say I agree with this addition.

@CodeTheory Can you revert it, please? 😊


feature/config_dict

See issue #87
Testing:

[x] Check that generate_qualtrics_link script works
[x] Check that FigshareInstituteAdmin class works (each function was tested and worked as intended)
[x] Check that get_curation_list script works
[x] Check that prereq_script script works
[x] Check that move module works

Testing has been on-going since this is a large change.
It works for:

[x] generate_qualtrics_links for production and stage
[x] get_curation_list for production and stage
[ ] prereq_script for production and stage (clean dataset and one that has been retrieved)

There are a large number of conflicts and will require resolution with feature/logging


Kubernetes deployment (yaml or Helm chart)

Hi,
Our current infrastructure does not support docker-compose, could we request for another method of Proof of Concept installation using Kubernetes deployment (yaml or Helm chart) ?

We don't have a Helm chart as yet. I have an installer for AWS EKS.
https://github.com/epsstan/legend/tree/eks-installer/installers/aws-eks
install/deploy.sh has a driver script.
install/templates has templated yaml descriptors that you might find useful.
Helm chart would be great contribution. Let me know if you are interested.

I am working o charmed operators for Legend! It's just an initial PoC atm, but would allow you to deploy all Legend's components to your cluster with one single juju deploy legend-bundle command. You could also go hybrid-cloud and deploy Cube locally, for instance. Will hopefully have something you can try in the next couple of weeks.

Closing this issue for now. Please open a PR when you have a working version.


Added support for django 2.1

Request Method:
POST

http://<IP_ADDRESS>:8000/admin/backup/

2.2.1

CommandConnectorError

Error running:  mysqldump job_python --quick --host=localhost --port=3306 --user=root  [WinError 2] The system cannot find the file specified

E:\DoAnCoSo\DoAnCoSo\python_job\venv\lib\site-packages\dbbackup\db\base.py in run_c

Please share the following information:
OS, Python Version, Django Version, Mysql Version.
Do you have MySQL cli tools/ MySql Shell installed?


Badstate exception for no route config

I have components throwing a bad state exception that they don't have a RouteConfig when there is no child router with these components. The stacktrace shows it originating from the template of a component used inside the components that throw the error, the child component uses the [routerLink]= directive so i'm willing to be this is getting be thrown from there.
Stacktrace:
(anonymous function)	EXCEPTION: Bad state: Component "ProfileDashboardComponent" has no route config.
STACKTRACE:
package:angular_router/src/route_registry.dart 354:7                          RouteRegistry._generate
package:angular_router/src/route_registry.dart 305:37                         RouteRegistry.generate
package:angular_router/src/router.dart 412:26                                 Router.generate
package:angular_router/src/directives/router_link.dart 65:48                  RouterLink._updateLink
package:angular_router/src/directives/router_link.dart 76:10                  RouterLink.routeParams=
package:ares/src/finance/components/profile/layout.template.dart 1178:32      _ViewProfileLayoutComponent3.detectChangesInternal
package:angular/src/core/linker/app_view.dart 372:7                           AppView.detectChanges
package:angular/src/debug/debug_app_view.dart 139:24                          DebugAppView.detectChanges
package:angular/src/core/linker/view_container.dart 59:22                     ViewContainer.detectChangesInNestedViews
package:ares/src/finance/components/profile/layout.template.dart 661:15       ViewProfileLayoutComponent0.detectChangesInternal
package:angular/src/core/linker/app_view.dart 372:7                           AppView.detectChanges
package:angular/src/debug/debug_app_view.dart 139:24                          DebugAppView.detectChanges
package:ares/src/finance/components/dashboard/dashboard.template.dart 553:17  _ViewProfileDashboardComponent1.detectChangesInternal
package:angular/src/core/linker/app_view.dart 372:7                           AppView.detectChanges
package:angular/src/debug/debug_app_view.dart 139:24                          DebugAppView.detectChanges
package:angular/src/core/linker/view_container.dart 59:22                     ViewContainer.detectChangesInNestedViews
package:ares/src/finance/components/dashboard/dashboard.template.dart 151:14  ViewProfileDashboardComponent0.detectChangesInternal
package:angular/src/core/linker/app_view.dart 372:7                           AppView.detectChanges
package:angular/src/debug/debug_app_view.dart 139:24                          DebugAppView.detectChanges
package:ares/src/finance/components/dashboard/dashboard.template.dart 630:17  _ViewProfileDashboardComponentHost0.detectChangesInternal
package:angular/src/core/linker/app_view.dart 372:7                           AppView.detectChanges
package:angular/src/debug/debug_app_view.dart 139:24                          DebugAppView.detectChanges
package:angular/src/core/linker/view_container.dart 59:22                     ViewContainer.detectChangesInNestedViews
package:ares/app_component.template.dart 119:14                               ViewAppComponent0.detectChangesInternal
package:angular/src/core/linker/app_view.dart 372:7                           AppView.detectChanges
package:angular/src/debug/debug_app_view.dart 139:24                          DebugAppView.detectChanges
package:ares/app_component.template.dart 600:17                               _ViewAppComponentHost0.detectChangesInternal
package:angular/src/core/linker/app_view.dart 372:7                           AppView.detectChanges
package:angular/src/debug/debug_app_view.dart 139:24                          DebugAppView.detectChanges
package:angular/src/core/linker/view_ref.dart 104:13                          ViewRefImpl.detectChanges
package:angular/src/core/application_ref.dart 441:30                          ApplicationRefImpl._runTick
package:angular/src/core/application_ref.dart 421:7                           ApplicationRefImpl.tick
package:angular/src/core/application_ref.dart 277:9                           new ApplicationRefImpl.<fn>.<fn>
dart:async                                                                    _ZoneDelegate.run
package:angular/src/core/zone/ng_zone.dart 175:21                             NgZone._run
dart:async                                                                    _CustomZone.runGuarded
package:angular/src/core/zone/ng_zone.dart 310:23                             NgZone.runGuarded
package:angular/src/core/application_ref.dart 276:13                          new ApplicationRefImpl.<fn>
dart:async                                                                    _BroadcastStreamController.add
package:angular/src/core/zone/ng_zone.dart 267:55                             NgZone._checkStable
package:angular/src/core/zone/ng_zone.dart 213:5                              NgZone._onLeave
package:angular/src/core/zone/ng_zone.dart 177:7                              NgZone._run

It looks like we shouldn't be throwing this case.

@serates Is it possible for you to upload a minimal reproducible sample?

Okay so this was an error on my side, i finally figured it out, this occurs from doing a [routerLink]=[null] on a tag. Maybe you can reproduce using that and maybe get a better error message maybe?

The router is going to drastically change for 5.x, fwiw


[WFLY-16835] Upgrade Apache MyFaces 2.3.10 and 3.0.2

Fixes https://issues.redhat.com/browse/WFLY-16835

Please find all links to release notes, git tags, github-diff in the Jira.

I'm not sure this is relevant for main, as it is now EE 10, and MyFaces 3 is not 4.0-compliant. @bstansberry?

@jasondlee Sure, WF27 shall be finally EE10 compliant. As I understand it this update is necessary to follow the "upstream first" policy and make it possible to ugprade MyFaces in WF26.


DNA-Comparer fails to compare DNA sequences with different lengths

Description: I tried to use the DNA-Comparer tool to compare two DNA sequences with different lengths, but the tool gave me an error message saying “The length of the sequences must be equal”. I expected the tool to be able to handle sequences with different lengths and perform a pairwise alignment or a global alignment. Is this a bug or a limitation of the tool?
Steps to reproduce:
Download and install the DNA-Comparer tool from the GitHub repository.
Run the tool with the following command: python dna_comparer.py -s1 ATCGATCG -s2 ATCGATCGATCG
Observe the error message: “The length of the sequences must be equal”
Expected behavior: The tool should be able to compare DNA sequences with different lengths and output a similarity score and an alignment.
Actual behavior: The tool fails to compare DNA sequences with different lengths and gives an error message.
Environment: Windows 10, Python 3.9, DNA-Comparer version 1.0
Screenshots: Attached a screenshot of the error message.
Additional information: I tried to compare DNA sequences with different lengths using other tools such as One-to-Many DNA Comparison from GEDmatch and [DNA compare] from Ancestry, and they worked fine. I think this is a feature that DNA-Comparer should have as well.

Skill issue


HTML5 data-* are not supported

Here's a plunker that should work as it is just a minimum setup defining columns inside thead, but as you will note, the "I'm never shown" is indeed never shown, and the last field in the array is used instead:
http://plnkr.co/edit/UwB2pVTqhKi9Im9SY0nz?p=preview
When setting the data-fields=[...] attribute, it works correctly, but I want to set up my column templates. I don't know how you got it to work in the demo site.

Fixed in the master branch, currently holding the code for 3.1.0 RC. The data-* style attributes are supported, but the default templates do not use that notation. A full cleanup will occur in the next major release.


Logo alt text

Is there support for alt-text for the logo image we specify with x-logo?

Nice suggestion!
PRs are welcome!

I have a fix for it, but when I run the tests out of paranoia (yarn test), the license check step is failing on an MIT license, which doesn't really make sense.  Should I just ignore that problem since I certainly didn't introduce it?


Background default

Loading iD with a different imagery background as a default:
iD loads with Bing as a default imagery but is there a function that can be used in either id.Context, id.ui or id.map to set a different default without having to rewrite the core files?

Btw, I still have an opened PR and need some answers to finish it.

Btw, I still have an opened PR and need some answers to finish it.

Thanks for being patient, I'm working to wrap these all up and release iD v2 maybe this week.  I think all the serious bugs from the d3 upgrade are fixed as of yesterday

iD loads with Bing as a default imagery but is there a function that can be used in either id.Context, id.ui or id.map to set a different default without having to rewrite the core files?

You can set the background in the url hash (I think you're doing that already?).  I'll see if there is a way in code too.

Yes, I am doing it but with window.location.replace(). I was wondering if its possible to set the default as easily as some of the other functions like locale and centerZoom.

Yes, I am doing it but with window.location.replace(). I was wondering if its possible to set the default as easily as some of the other functions like locale and centerZoom.

What you're looking for is rendererBackground.baseLayerSource(d).
example:
// switch to Mapbox Satellite..
var tileLayer = context.background();
var mapbox = iD.data.imagery.find(function(d) { return d.id === 'Mapbox'; });
tileLayer.baseLayerSource(iD.rendererBackgroundSource(mapbox));


Images missing

Module: 00
Lab/Demo: Create a connector action
Task: 1
Step: 3
Description of issue
The images on the instructions are missing

added a PR to fix not rendered images. Why are we using "::: Image ..." when most images use the tipical markdown syntax?


🚀 - Secondary buttons using --tui-secondary-text instead of --tui-link

Which @taiga-ui/* package(s) are relevant/releated to the feature request?
No response
Description
Just like primary button has --tui-primary-text and accent color has --tui-accent-text.
Secondary buttons should probably also have --tui-secondary-text.
Links could be blue in the application .. but secondary buttons can be of different color.

@waterplea is actual?


Fix USB handling and timeouts for newer devices

What the title says, fixes ERROR: libusb error -7 whilst sending bulk transfer. Retrying... error

Thanks a lot for your work on this! i can confirm that by compiling Heimdall from your branch, and running it on my device (Galaxy A03 Core), solved the USB related errors that i was having

There's just one detail i forgot to mention on my previous comment
Apparently any operation on Heimdall is only working for the first command executed, and even then, i spotted another USB error, right at the end of the output
Running ./bin/heimdall print-pit --no-reboot for the first time:
[very long output...]

--- Entry #59 ---
Binary Type: 0 (AP)
Device Type: 2 (MMC)
Identifier: 73
Attributes: 5 (Read/Write)
Update Attributes: 1 (FOTA)
Partition Block Size/Offset: 61071327
Partition Block Count: 33
File Offset (Obsolete): 0
File Size (Obsolete): 0
Partition Name: SGPT
Flash Filename: sgpt.img
FOTA Filename:

Ending session...
Resetting USB device...
ERROR: libusb error -5 while resetting device.Releasing device interface...

Then, whenever i try to run the same command again:
Heimdall v1.4.1

Copyright (c) 2010-2014 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
Claiming interface...
Attempt failed. Detaching driver...
libusb: error [op_detach_kernel_driver] detach failed, errno=113
Claiming interface again...
ERROR: Claiming interface failed!

running heimdall as sudo fix libusb error.


Facilitate autocomplete for add, substract methods

Currently (v0.6.9), OffsetDateTime's add() and subtract methods require explicitly passed ignore_dst=True parameter. I think if it is required and accepts only one value (True), then it is better to meld it to method name. By doing so, we don't have to trigger editor autocomplete 2 - 3 times.
The method name could be add_ignoring_dst, subtract_ignoring_dst.

Hi @hongquan , thanks for posting.
I realize the API isn't ideal from this perspective. My reasoning was that it was the 'least bad' option among the options I considered:

not warning about DST at all -> not acceptable. having only explicit ignoring of DST is an essential advantage of the library
add_ignoring_dst -> this makes sense for OffsetDateTime in isolation, but it'd be less consistent with the methods on other classes (which are named add/subtract). In particular, on LocalDateTime does need an ignore_dst parameter because it's only required in some cases (when adding exact time units instead of calendar units).

My preference was guided by the fact that having a more "awkward" API is OK for cases that should be discouraged (i.e. shifting offset datetimes)
That said, this has been informed by my experience so far. I'd be interested to hear some more about your use case.

A third option is of course to have both add(ignore_dst=True) and add_ignoring_dst() on OffsetDateTime. The disadvantage of that is it clutters the API, and provides two ways to do the same thing—which can be confusing.

Thank you, I didn't use LocalDateTime and was not aware that it has add(ignore_dst), too.

I'll keep your remark about autocomplete-friendliness in mind if the add/subtract API is ever up for a redesign.

I think forcing the user to pass it explicitly is good, because it makes it clear that there might be a dst change.
With add_ignoring_dst I'll just hit tab on the IDE without further thinking about it.

The next release has some improvements to autocomplete and docstrings, that should explain the ignore_dst argument better, as well as link to the appropriate documentation.

release 0.6.10 is now out with the improvements


Fix schema handling

Fixes #1977

Just wondering, why progress?

I'll add some tests and am also considering moving this to SQLTemplates

Good call. Sounds good.

Is there any word on when this update will be released?
I am using MySQL Connector/J 8 and QueryDSL 4.2.1 and I am having the same issue as appears here
The Schema Pattern looks to be broken for a similar reason in that md.getTables(null, schemaPattern, tablePattern, types); will return all schemas.

+1


Opening a new Activity after last slide

Although a similar issue already exists, it is closed. Hence the new issue.
It would be nice, if a sample code is provided for starting a new activity (after the last slide) by overriding the onDestroy()
Regards

See the updated sample code.


Phone number medatada update

Coverage remained the same at 100.0% when pulling 67e6598816845459251759d629e1265532a31987 on update-metadata into 10c67931cbe8472f106a1ae0d00fcf30cf6d98ea on master.


METDDPConnection.h included as project header, needs to be public.

I need to initialise METCoreDataDDPClient using an existing managed object context.
I am trying to use initWithConnection: managedObjectModel: but i am not able to create METDDPConnection instance because METDDPConnection.h is included as a project header.
Is there a specific reason you have not exposed METDDPConnection or have i misunderstood the intended purpose of the initialiser?
If not, is it ok to include it METDDPConnection.h as a public header?

That initializer is only used in tests, where it is passed a mock connection. I'm not sure what you mean when you say you want to use an existing managed object context. METCoreDataDDPClient sets up its own Core Data stack (with METIncrementalStore). Although you can set this up manually (without using METCoreDataDDPClient), there is usually no need.
If what you're saying is you need another context besides mainQueueManagedObjectContext, you could create these yourself by subclassing METCoreDataDDPClient (don't forget to merge changes, etc.).

I am trying to get an older, standalone app to sync with a new meteor instance on the server.
This app has a complex model and i want the DDP connection to initially upload existing data and then continue to sync changes to and form app's context (pointing to the same persistent store).
I understand that i'll need to go through a lot of customisation and a even more tedious work on the server/meteor side to get this working.
Do you think this is  not possible or see any big disadvantages of exposing the connection and other classes?
Your help and prompt replies are highly appreciated.
Thank you.

I have no problem exposing METDDPConnection, but I don't think that'll help you in this particular situation.
The Core Data integration will only work when used with its own persistent store (METIncrementalStore). The store simply acts as an interface to the in memory collections, and doesn't offer any storage itself. There is no real offline functionality, and connecting to the server will transfer all requested data anew each time. This is why you use subscriptions to only receive data you're interested in.
If you want to upload data from a standard SQLite persistent store, you'll have to create two Core Data stacks and transfer objects manually from the standard store to the Meteor iOS store (they could use the same managed object model). This would create the data in mongodb on the server. You could then remove the SQLite store and from then on only use the Meteor iOS store to connect to the server.
In the future, I might look into implementing real offline functionality but doing that right requires changes to the DDP protocol.

Does Meteor use local storage to cache documents? I remember somewhere that meteor has some kind of offline capability of its own.


Removes solution transfer verbs

About the PR
Closes #3929.
I renamed the file to AdminAddReagentVerb.cs since it contained that for some reason.
Changelog

:cl: Swept

remove: Removed solution transfer verbs.

quick question, is there a way to transfer solutions between containers right now? if not, then do not merge this

quick question, is there a way to transfer solutions between containers right now? if not, then do not merge this

Yes.
SolutionTransferComponent.cs

yeet


Add german translation file

I´m new to homeassistant custom integrations development but I hope to be able to contribute at least a small part to bring this project forward.
I tested the translation but I think it uses the strings.json therefore ignoring the subfolder? However https://developers.home-assistant.io/docs/internationalization/custom_integration defines this as the correct way?
PS: I do not have an AwoX account and therefore hope to be able to use the full local environment soon. I will investigate and test in this direction.

Tnx for the translations, should be the correct location indeed.

I do not have an AwoX account and therefore hope to be able to use the full local environment soon.

You don't have or don't want to create a a account?
It's free and you could just create a awox account to connect the lights once and then delete it again.

You don't have or don't want to create a a account?

Honestly I don't want to register if there is a way to do this without. I was also looking at Leiaz's project before (which enables us to do it without the app if I understand it right) but did not have the understanding of homeassistant integration development to create a repo here. After I saw yours, I wanted to contribute as soon as possible.
What steps would be necessary for it? Can I help in any way?

Most is already prepared. The config flow needs an  adjustment so you can switch between the AwoX account option and local scanning.
https://github.com/fsaris/home-assistant-awox/blob/f9e7d258f2103fcbd2b4bb60521bbde7c666b520/custom_components/awox/config_flow.py#L44
My first attempt was the local scanning. But I wanted to have the ability to still use the AwoX app during development as the lights already in use  and the rest wanted to be able to control them when I wasn't around 😄
You could give it a try by disabling this line temporary so the manual flow is used.
https://github.com/fsaris/home-assistant-awox/blob/f9e7d258f2103fcbd2b4bb60521bbde7c666b520/custom_components/awox/config_flow.py#L42
        #return await self.async_step_awox_connect()

the rest wanted to be able to control them when I wasn't around

Haha I know this situation :smile:
I disabled it but then it asks me for the mesh credentials which I do not have at this point. Do I need to create a mesh manually or could't this be done by the integration on the fly?
I also tried providing new mesh data but this results in an error, caused by the iteration at line 96 which fails by an empty discoveries object.
https://github.com/fsaris/home-assistant-awox/blob/f9e7d258f2103fcbd2b4bb60521bbde7c666b520/custom_components/awox/config_flow.py#L96-L103
As it seems to me that line 85 is intended to be responsible for handling an empty discovery with provided mesh credentials, I enforced it getting triggered (by setting scan_successful = False the line before :sweat_smile:) but also entering the MAC of my light did not fill the discoveriesobject magically... I don't quite understand what these lines are supposed to be good for then. Should't it be if not self._discoveries: as you test in line 106?
https://github.com/fsaris/home-assistant-awox/blob/f9e7d258f2103fcbd2b4bb60521bbde7c666b520/custom_components/awox/config_flow.py#L85-L92
I must confess that my Python skill is not the best if I understand something incorrectly...

Btw, back to the initial topic: The translation seems to work now after I restarted my HA twice :man_shrugging:


Added azure push adapter

👍

Merged, tagged with a new version, and released on npm!

Awesome, thanks!


Run integration tests with nosql-unit-neo4j

See https://github.com/lordofthejars/nosql-unit

I will close this issue for now. If we decide to integrate nosql-unit-neo4j in the future, we can reopen this one.


x/build: linux-arm trybot failure

What version of Go are you using (go version)?
tip (d856e05d64591d3dec6411e3d86fe325e85eecc5)
What did you do?
Run linux-arm trybot on tip (with a dummy change, CL https://go-review.googlesource.com/c/go/+/207440)
It failed with https://storage.googleapis.com/go-build-log/09ec0769/linux-arm_4add410f.log
I also got a few failures on a different CL (https://go-review.googlesource.com/c/go/+/207350)
https://storage.googleapis.com/go-build-log/3c197532/linux-arm_4a2eca13.log
https://storage.googleapis.com/go-build-log/3c197532/linux-arm_e2868c28.log
https://storage.googleapis.com/go-build-log/3472bd16/linux-arm_0d7459e0.log
I cannot reproduce it with gomote. Also the linux-arm builder is happy.
I think it may be related to that the trybot does a cross-compilation and then ships the binaries to the ARM machine.
cc @bradfitz

I suspect this was "broken" by https://go-review.googlesource.com/c/build/+/205603 which upgraded the ARM environment (where tests run) to Buster, but the compilation half on x86 was unchanged.
I say "broken" in quotes because this was never a problem until slowbots which let you do this again.
But it used to work with trybots on by default a few years ago, so it does work if we configure both halves the same.
Will fix.

Thanks @bradfitz

Hmm, this isn't as obvious as I'd hoped.
Both environments are Debian buster:
Cross-compilation:
https://github.com/golang/build/blob/master/env/crosscompile/linux-armhf-cross/Dockerfile
Linux-arm on Scaleway:
https://github.com/golang/build/blob/master/env/linux-arm/scaleway/Dockerfile
@rsc, you probably remember me debugging similar issues in the past. I'd love some better tooling to help debug these sorts of issues. It doesn't affect many people, though. But if we could do this sort of cross-compilation (make.bash in one place, run tests elsewhere) for more builders (riscv, mips, arm, etc) we could get much better throughput from our slower builders. But I'm always scared of doing it due to issues like this.

Ping. Still seeing this and it means we can't run the trybots on arm targets:
:: Running /bin/bash with args ["/bin/bash" "-c" "cd $WORKDIR/go/src && ./make.bash && cd .. && mv bin/*_*/* bin && rmdir bin/*_* && rm -rf pkg/linux_amd64 pkg/tool/linux_amd64 pkg/bootstrap pkg/obj"] and env ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" "HOSTNAME=buildlet-linux-armhf-cross-rne6cbcb3" "DEBIAN_FRONTEND=noninteractive" "GOROOT_BOOTSTRAP=/workdir/go1.4" "GOOS=linux" "GOARCH=arm" "CC_FOR_TARGET=arm-linux-gnueabihf-gcc" "HOME=/root" "USER=root" "GO_STAGE0_NET_DELAY=7.1s" "GO_STAGE0_DL_DELAY=200ms" "WORKDIR=/workdir" "GOROOT_BOOTSTRAP=/go1.4" "CGO_ENABLED=1" "CC_FOR_TARGET=arm-linux-gnueabihf-gcc" "GOOS=linux" "GOARCH=arm" "GOARM=7" "TMPDIR=/workdir/tmp" "GOCACHE=/workdir/gocache" "GOROOT_BOOTSTRAP=/go1.4"] in dir /workdir

Building Go cmd/dist using /go1.4. (go1.4.3 linux/amd64)
Building Go toolchain1 using /go1.4.

Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
Building packages and commands for host, linux/amd64.
Building packages and commands for target, linux/arm.

In the mean time, I have been using gomote for ARM. Using android-arm is another option, which is not the same as linux-arm but also has many similarities.

This cost me a chunk of time this morning. Can we disable linux/arm slowbots until this is fixed? Or have gopherbot emit a warning and reference to this issue when it recognizes linux/arm?

If this cannot be fixed soon, can we just disable/reject linux-arm for trybot? And maybe use android-arm for "TRY=arm"?
The failure has confused people several times (e.g. https://go-review.googlesource.com/c/go/+/248684).

I've closed a newer #40872, which seems to be the same issue.

If this cannot be fixed soon, can we just disable/reject linux-arm for trybot? And maybe use android-arm for "TRY=arm"?

Based on https://github.com/golang/go/issues/40872#issuecomment-675734470, this is closer to being resolved now.
It seems reasonable to reject/ignore it during TRY= slowbot requests until then.

With the addition of the linux-arm-aws builder, I believe this issue can be closed.

I think there's a little more to do here. The "linux-arm" builder currently has KnownIssue set to 35628 (see builders.go#L1830), which is this issue. To close this issue, we should either modify that builder to point to another open issue, or remove that builder.

I think it is better for TRY=linux-arm to run on the linux-arm-aws builder. Thanks.


[8.x] Add Builder@lazy() and Builder@lazyById() methods

Background
For querying large datasets, the Builder currently has the cursor() method, which returns a LazyCollection. This uses less memory than a regular Collection (returned from the get() method), since it never keeps more than a single Eloquent model in memory.
However, the cursor() method still has several drawbacks:

It's not truly lazy, since PHP still caches all query results in its buffer.
Turning off buffering introduces its own set of challenges (namely not being able to execute other queries simultaneously).

It cannot eager load relationships, since it only ever deals with a single record at a time.

Depending on the DB, opening a cursor to a huge dataset may have a slight delay vs. running a query with a LIMIT.

We also have the chunk() method, which is kinda lazy, but with a clunky API — as is evident by the fact that we needed to introduce separate each() and chunkMap() methods (with chunkMap() having to build up the whole result set in memory :see_no_evil:).
Introducing lazy()
The new lazy() method introduced in this PR will chunk results behind the scenes, and return a single LazyCollection of results:
$lazyCollection = User::lazy();

Since it's a lazy collection, you have the full power of collections at your fingertips:
You can call each() directly on it:
User::lazy()->each->greet();

You can call map() on it:
$results = User::lazy()->map->calculateOutstandingBalance();

Or even chunk() it... The possibilities are endless, and we'll no longer have to create all of these separate one-off methods to query and manipulate results lazily.

This looks awesome! Such a powerful feature. I currently have some Builder macros similar to this and they have been critical when working with large data processing tasks. I think it would be great to have them in core so everyone can use them.

Thanks! Would you mind sending me some documentation on this to laravel/docs

Sure! I'll try to whip something up later today or tomorrow.

Is the cursor() method buffering all results to the memory for every database? Until now i expected the method to use real database cursors. I am asking because i got the intention that the postgresql driver seems not to buffer everything to the memory? I should have gotten already some out of memory errors for my laravel postgres applications with large datasets which did not happen. And i really can't find any information whether this is a limitation for mysql or every pdo database.

@JosephSilber much love from here. Thanks for this PR

@tpetry The PHP docs only explicitely mention MySQL, so maybe this doesn't apply to other drivers.
This would require testing the memory consumption on different databases, in order to know with any level of certainty.

@JosephSilber can you see this bug please with lazyById?
Looks like fix will be this check
$lastId = $results->last()->{$alias};

if ($lastId === null) {
    throw new RuntimeException("The lazyById operation was aborted because the [{$alias}] column is not present in the query result.");
}


Expose and configure ResourcePathResolver

@srs commented on Wed Sep 20 2017
Expose and configure ResourcePathResolver. Default back to standard resolvers if not configured.
Extend the interface with the following methods:

resolve(...)
resolveRequire(...)

We should discuss this so we can implement #8.

@aro, let's wait with this one. I think it's better to expose some settings instead. This will probably be enough for our use cases.


Check dist for custom template repo

should it check the dist branch for custom template repo too

@funkyLover vue-cli now supports any branch if you pass it after a #.


[ApiAuthorization][Validation] SPA templates validation

The following instructions  are intended to be done for the following 4 combinations

dotnet new angular -au Individual -o <<ProjectPath>>
dotnet new angular -au Individual -uld -o <<ProjectPath>>
dotnet new react -au Individual -o <<ProjectPath>>
dotnet new react -au Individual -uld -o <<ProjectPath>>

The following tests need to be run in Chrome, Edge and Firefox

Create a new app with the command above.
Create a solution with dotnet new sln and add the application to the project with dotnet sln add <<ProjectPath>>
Open the solution in Visual Studio.
Build and run the application with F5.
Ignore the open window (do not close it as it will stop the app from running) and open a new Incognito/InPrivate/ window in the browser.
Click on the Fetch data link
You will be redirected to /Identity/Account/Login
Click on register
Enter an email address in the email field
Enter a password in the password and the confirm password field
Click on register
You will be redirected to /fetch-data
You should see a navigation menu at the top of the page with 5 options. Home, Counter, Fetch data, Hello , Logout
You should see a table with data and a header that says Weather forecast
Click Logout.
You should see a navigation menu at the top of the page with 5 options:
Home, Counter, Fetch data, Register, Login
You should be in /authentication/logged-out
Navigate to /
Click Login
Enter the email address in the email field
Enter the password in the password field
Click Login
You will be redirected to /
You should see a navigation menu at the top of the page with 5 options. Home, Counter, Fetch data, Hello , Logout

The only issue I found is regarding to logout on Edge. The fix is pretty trivial:
https://github.com/aspnet/AspNetCore/issues/13380
https://github.com/aspnet/AspNetCore/pull/13379
Other than that I tried Edge, Firefox and Chrome on windows and Safari on Mac without any further issue.


Loading default parameters into class during initialization

This PR is for progress on #446 -- parameter management.
One attractive possibility is that each Model class has default parameters that can be overridden during initialization.
Commit https://github.com/econ-ark/HARK/commit/5c6afef324025141a8bad0023e658ffc4bc663bf models a way to do this with minimal change to the library for PerfForesightConsumerType:

The same dictionary of parameters from is used as before (this dictionary can be moved later)
It is accessed and copied during PerfForesightConsumerType initialization
It is update()ed with the keyword arguments to the initialize
This is then passed through to the superclass constructor as initialization proceeds.

In other work on this issue, I'll set this up for the other Model/Type classes. I wanted to put this early PR version out there because I wonder if others think this is a good change.

This pull request is now ready for review. Requested from @MridulS

Can you trace back to the PR where the changes were made?
Looks to me as though the default is being changed from finite to infinite horizon models.  It should have been infinite horizon all along, so if that is what is being done it make sense -- puzzle is why it wasn't infinite horizon all along.

@MridulS Those changes were made because:

the default parameters in ConsumerParameters.py set cycles=0
The classes had __init__(cycles=1), but this was overwritten by the loading of the parameter dictionary at runtime
When the superclass __init__ is being called, it is both passing through cycles=cylces as a named argument and also passing **kwds through
Without these changes, the Python interpreter complains that the superclass __init__ is getting 2 different cycles arguments on the same call.

As @llorracc says, the infinite horizon was being passed through to override the finite horizon anyway. So I made the call that this is set properly in the __init__ and not at all in the parameter dictionary.
@llorracc : I think you may be responded to comments on PR's in email and the lack of context is confusing. The subject line of the email notification names the PR where this discussion is happening. It should say "#466"

Ok to merge #466?


BUG:THERE IS NO PROPER FONT COLOR TO THE TEXT OF THE PAGE IN DARK MODE AND LIGHT

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
BUG:THERE IS NO PROPER FONT COLOR TO THE TEXT OF THE PAGE IN DARK MODE AND LIGHT.
IT WILL PROVIDE VERY BAD INTERACTION FOR THE USER AND VERY BAD EXPERIENCE.
 PLEASE GUIDE I HAVE TO PROCEDD FORWARD.. @PriyaGhosal


problem with arduino nano and mpu

when i try to calibrate the mpu i get:
Arduino: 1.8.19 (Windows 10), Board: "Arduino Nano Every, ATMEGA328"
C:\Users\kacpe\Desktop\FX-SaberOS\tools\MPU6050_calibration\MPU6050_calibration.ino: In function 'void setup()':
MPU6050_calibration:76:2: error: 'TWBR' was not declared in this scope
TWBR = 24; // 400kHz I2C clock (200kHz if CPU is 8MHz). Leonardo measured 250kHz.
^~~~
C:\Users\kacpe\Desktop\FX-SaberOS\tools\MPU6050_calibration\MPU6050_calibration.ino:76:2: note: suggested alternative: 'TWI0'
TWBR = 24; // 400kHz I2C clock (200kHz if CPU is 8MHz). Leonardo measured 250kHz.
^~~~
TWI0
Multiple libraries were found for "EEPROMex.h"
Used: C:\Users\kacpe\Desktop\FX-SaberOS\libraries\EEPROMEx
Not used: C:\Program Files (x86)\Arduino\libraries\EEPROMEx
Multiple libraries were found for "I2Cdev.h"
Used: C:\Users\kacpe\Desktop\FX-SaberOS\libraries\I2Cdev
Not used: C:\Program Files (x86)\Arduino\libraries\I2Cdev
Multiple libraries were found for "Wire.h"
Used: C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire
Not used: C:\Program Files (x86)\Arduino\libraries\Wire
Not used: C:\Users\kacpe\Desktop\FX-SaberOS\libraries\Wire
Multiple libraries were found for "MPU6050.h"
Used: C:\Users\kacpe\Desktop\FX-SaberOS\libraries\MPU6050
Not used: C:\Program Files (x86)\Arduino\libraries\MPU6050
exit status 1
'TWBR' was not declared in this scope
but when i comment out the twbr line i  get:
Arduino: 1.8.19 (Windows 10), Board: "Arduino Nano Every, ATMEGA328"
In file included from C:\Users\kacpe\Desktop\FX-SaberOS\libraries\I2Cdev\I2Cdev.h:86:0,
             from C:\Users\kacpe\Desktop\FX-SaberOS\libraries\I2Cdev\I2Cdev.cpp:46:

C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h: In static member function 'static int8_t I2Cdev::readBytes(uint8_t, uint8_t, uint8_t, uint8_t*, uint16_t)':
C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h:63:12: note: candidate 1: size_t TwoWire::requestFrom(int, int)
 size_t requestFrom(int, int);

        ^~~~~~~~~~~

C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h:61:12: note: candidate 2: virtual size_t TwoWire::requestFrom(uint8_t, size_t)
 size_t requestFrom(uint8_t, size_t);

        ^~~~~~~~~~~

C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h: In static member function 'static int8_t I2Cdev::readWords(uint8_t, uint8_t, uint8_t, uint16_t*, uint16_t)':
C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h:63:12: note: candidate 1: size_t TwoWire::requestFrom(int, int)
 size_t requestFrom(int, int);

        ^~~~~~~~~~~

C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h:61:12: note: candidate 2: virtual size_t TwoWire::requestFrom(uint8_t, size_t)
 size_t requestFrom(uint8_t, size_t);

        ^~~~~~~~~~~

In file included from c:\users\kacpe\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
             from c:\users\kacpe\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,

             from C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,

             from C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,

             from C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,

             from C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,

             from C:\Users\kacpe\Desktop\FX-SaberOS\libraries\EEPROMEx\EEPROMex.h:24,

             from C:\Users\kacpe\Desktop\FX-SaberOS\libraries\EEPROMEx\EEPROMex.cpp:23:

C:\Users\kacpe\Desktop\FX-SaberOS\libraries\EEPROMEx\EEPROMex.cpp: In member function 'bool EEPROMClassEx::isReady()':
C:\Users\kacpe\Desktop\FX-SaberOS\libraries\EEPROMEx\EEPROMex.cpp:91:9: error: 'NVM_STATUS' was not declared in this scope
return eeprom_is_ready();
     ^

C:\Users\kacpe\Desktop\FX-SaberOS\libraries\EEPROMEx\EEPROMex.cpp:91:9: note: suggested alternative: 'GET_STATUS'
C:\Users\kacpe\Desktop\FX-SaberOS\libraries\EEPROMEx\EEPROMex.cpp:91:9: error: 'NVM_NVMBUSY_bp' was not declared in this scope
return eeprom_is_ready();
     ^

C:\Users\kacpe\Desktop\FX-SaberOS\libraries\EEPROMEx\EEPROMex.cpp:91:9: note: suggested alternative: 'NVMCTRL_FBUSY_bp'
Multiple libraries were found for "I2Cdev.h"
Used: C:\Users\kacpe\Desktop\FX-SaberOS\libraries\I2Cdev
Not used: C:\Program Files (x86)\Arduino\libraries\I2Cdev
Multiple libraries were found for "Wire.h"
Used: C:\Users\kacpe\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire
Not used: C:\Program Files (x86)\Arduino\libraries\Wire
Not used: C:\Users\kacpe\Desktop\FX-SaberOS\libraries\Wire
Multiple libraries were found for "MPU6050.h"
Used: C:\Users\kacpe\Desktop\FX-SaberOS\libraries\MPU6050
Not used: C:\Program Files (x86)\Arduino\libraries\MPU6050
Multiple libraries were found for "EEPROMex.h"
Used: C:\Users\kacpe\Desktop\FX-SaberOS\libraries\EEPROMEx
Not used: C:\Program Files (x86)\Arduino\libraries\EEPROMEx
exit status 1
Error compiling for board Arduino Nano Every.
i have  tried using "DIYino_Testsketch_Pro.ino" from another issue thread but  it basically ends the same, and i don't know anything about coding

Which board do you define in the Arduino IDE ?
BTW, the MPU calibration is not strictly speaking necessary, the saber code will work without as well.

i was trying to program on arduino nano every because i had it on hand, and had it defined in arduino IDE, but i read today somewhere that arduino nano and nano every are different to program so i am waiting on a normal nano and will try with it when it arrives


Sharable dependencies between themes and extensions

What is the task
Enable dependencies to be shared between different themes and modules. Some examples for common dependencies between themes are Font Awesome, Bootstrap and jQuery.
Additional Notes
Let's discuss some ways to achieve this. Possible benefits would be lesser disk space usage and easier maintenance.

I am down to help with that! I never really saw the extention store up, so it would be amazing to see it up and help with it!


add span utils

This requires #69.
TODO:

[ ] tests

Codecov Report
Attention: Patch coverage is 66.66667% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 95.62%. Comparing base (a357989) to head (62ee6ce).

Files
Patch %
Lines

src/pie_modules/utils/span.py
66.66%
10 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
- Coverage   95.86%   95.62%   -0.24%
==========================================
  Files          51       52       +1
  Lines        3696     3726      +30
==========================================
+ Hits         3543     3563      +20
- Misses        153      163      +10

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


when refresh browser, All the previous *.hot-update.json files have been loaded again

for examle, when update hot-middleware

  "webpack": "^3.10.0",
    "webpack-dev-middleware": "^1.12.2",
    "webpack-hot-middleware": "^2.21.0",

the problem lead to all the changes were executed again when page refresh ,can you help me to find out what is wrong?

my code is here
  app.use(WebpackDevMiddleware(compiler, {
                stats: { colors: true },
                noInfo: true,
                publicPath: '/'
            }))
            app.use(WebpackHotMiddleware(compiler, {
                path: '/__webpack_hmr',
                timeout: 20000,
                reload: true,
                log: console.log,
                heartbeat: 10 * 1000
            }))

Have the same problem. Browser refresh loads all hot updates and replays them.

Has anyone been able to figure out a solution for this? It appears the upToDate function is returning false and hence the old updates are replayed. My server side code renders the latest code changes so is there a option we're missing here to ensure the middleware picks up from where it left off?

Looked into this further and it would appear if you inline you're manifest this won't update when code is hot updated. Therefore the hotCurrentHash isn't set to the last hot update hash and thus the replaying of updates starts in order to set this to the correct value.
Short answer/solution is to reference the manifest file as a regular script src instead of inlining it (for development at least).

This year is 2019 and I still have the same problem.
My webpack dependencies are:
"webpack": "^4.30.0",
"webpack-cli": "^3.3.1",
"webpack-dev-middleware": "^3.6.2",
"webpack-hot-middleware": "^2.24.3"

Hi
Has anyone found a solution here please ?
I encountered the same issue
Bests

relates to https://discourse.roots.io/t/reloading-the-page-applies-all-past-hot-updates/10296

@navgarcha's answer https://github.com/webpack-contrib/webpack-hot-middleware/issues/272#issuecomment-372511944 led me to try using using the  webpack-dev-middleware writeToDisk option and it worked :
app.use(
  webpackDevMiddleware(compiler, {
    // ... your options
    writeToDisk: true
  })
);

Versions used:
"webpack": "^4.29.6",
"webpack-dev-middleware": "^3.7.0",
"webpack-hot-middleware": "^2.25.0",


Cow: Watch bluelinks.agency

Cow requests the watch of the watch_keyword bluelinks\.agency. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by cigien in Charcoal HQ


TFLite-Micro doesn't support models quantized to float16?

I built and trained a CNN model using TensorFlow, and used the TensorFlow Lite Converter to convert the trained model into a TFLite model.
# Create a model using high-level tf.keras.* APIs
model = tf.keras.models.load_model('./ECG_net_tf.h5')

# Convert the model.
converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()

# Save the model.
with open('saved_models/model.tflite', 'wb') as f:
  f.write(tflite_model)

I compiled and successfully ran the model in TFLite-Micro.
I noticed that it's possible to perform float16 quantization when using the Converter.
# Create a model using high-level tf.keras.* APIs
model = tf.keras.models.load_model('./saved_models/ECG_net_tf.h5')

# Convert the model.
converter = tf.lite.TFLiteConverter.from_keras_model(model)

#float16 Quantization
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.target_spec.supported_types = [tf.float16]

tflite_model = converter.convert()

# Save the model.
with open('saved_models/model.tflite', 'wb') as f:
  f.write(tflite_model)

The quantized model compiled successfully in TFLite-Micro, but encountered errors during runtime.
tensorflow/lite/micro/kernels/dequantize_common.cc:45 input->type == kTfLiteInt8 || input->type == kTfLiteInt16 || input->type == kTfLiteUInt8 was not true.
Node DEQUANTIZE (number 0f) failed to prepare with status 1
Segmentation fault

Based on the error message, I located the problematic area in the file tensorflow/lite/micro/kernels/dequantize_common.cc, where the input type check for the Dequantize operation on line 43 seems to only support Int8, Int16, and Uint8.
  TF_LITE_ENSURE(context, input->type == kTfLiteInt8 ||
                              input->type == kTfLiteInt16 ||
                              input->type == kTfLiteUInt8
                              );

However, in a TFLite model quantized to float16, the input for the Dequantize operation is of float16 type. Does this mean that TFLite-Micro does not support models quantized to float16?

That is correct, TFLite-Micro does not support models quantized to float16. This is because the hardware targets using TFLite-Micro rarely have hardware floating point support, so it becomes prohibitively expensive to use a floating point model in production. We currently only support float32 with reference kernels. We generally recommend using full integer quantization. If applicable for your use case, TFLite does support float16.


Creation of empty subscription fails with Invalid scope error

New-AzManagementGroupDeployment: 7:37:49 PM - The deployment 'xxxx' failed with error(s). Showing 1 out of 1 error(s).
Status Message: Not a valid subscription creation scope (Code:InvalidSubCreationScope)
CorrelationId: 3cc29bf8-3127-46df-a13a-8e54f3eccae1
If we remove the scope in the template then it throws the following error:
New-AzManagementGroupDeployment: 7:32:07 PM - The deployment 'nvnbnm' failed with error(s). Showing 1 out of 1 error(s).
Status Message: The resource type 'managementGroups' could not be found in the namespace 'Microsoft.Management' for api version '2020-09-01'. The supported api-versions are '2021-04-01,2020-10-01,2020-05-01,2020-02-01,2019-11-01,2018-03-01-preview,2018-01-01-preview,2017-11-01-preview,2017-08-31-preview,2017-06-30-preview,2017-05-31-preview,2018-03-01-beta'. (Code:InvalidResourceType)
CorrelationId: 33d564c3-a17f-45ea-8fd2-f0b16ea1f6e7

This is likely because the wrong/incorrect billingId is provided. Can you share the template?

Closing this as we haven't heard back. If you have further details, it would be good to know:

Which template you are using
Where you are invoking the deployment (tenant, management group scope).
Please re-open the issue if you have the above details and are still blocked.


Update commons-compress to 1.26.2

About this PR
📦 Updates org.apache.commons:commons-compress from 1.24.0 to 1.26.2
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.apache.commons", artifactId = "commons-compress" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.apache.commons", artifactId = "commons-compress" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #274.

Superseded by #278.


Update sfb-server-updates.md

Updated KB# for SfB 2015. jambirk helps to approve this.

resolves https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/2937


go test error with ' use of internal package not allowed'

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.8.3 darwin/amd64
go version go1.8.1 darwin/amd64
Does this issue reproduce with the latest release?
no, but it have another problem, which says that the type (in gopath) doest not match the type in govendor folder.
cannot use r (type "github.com/pressly/chi".Router) as type "git.moreless.io/valkyrie/vendor/github.com/pressly/chi".Router in argument to userHandler.RegisterSessionURL:

What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/chenjie/Workspace/GO"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/l6/m31j3rrd1hgfm4yc1vx7c07h0000gn/T/go-build184980144=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
What did you do?
go test ./...
What did you expect to see?
test succeed
What did you see instead?
vendor/github.com/garyburd/redigo/redis/pool.go:28:2: use of internal package not allowed
vendor/github.com/smartystreets/assertions/equality.go:11:2: use of internal package not allowed
vendor/github.com/smartystreets/assertions/collections.go:7:2: use of internal package not allowed
vendor/gopkg.in/mgo.v2/auth.go:38:2: use of internal package not allowed
vendor/gopkg.in/mgo.v2/bson/json.go:7:2: use of internal package not allowed

those package are all ok, the only different is the files above import a path include "xxx/xxx/internal/xxx", how does the error happen?
for example, the vendor/gopkg.in/mgo.v2/bson.json.go:7:2 is look like:
import (
	"bytes"
	"encoding/base64"
	"fmt"
	"gopkg.in/mgo.v2/internal/json"
	"strconv"
	"time"
)

If I removed the vendor folder, the go test run well, BTW, I build the vendor folder using govendor tool.

I don't know what happened?,
I just move my project path from$GOPATH/src/git.moreless.io/valkyrie/ to $GOPATH/src/git.moreless.io/tide/valkyrie/  and change all import path, all the thing go well.
can somebody help me to understand ?

damn it, It broke again even in path GOPATH/src/git.moreless.io/tide/valkyrie/

I remove the vendor and use govendor to rebuild it, go test -v ./... run well, the interesting thing is that the vendor folder doesn't have any changes in it(by git status).

which says that the type (in gopath) doest not match the type in govendor folder.

That is because you're mixing non-vendored with vendored types. The packages are different, so the types are different.
It looks like you need some help with the vendoring setup in your project. I'd suggest taking this to a forum, as this issue tracker is only for bugs. See https://github.com/golang/go/wiki/Questions


Quals issues with multiple tables and aws_iam_policy_simulator

Describe the bug
The aws_iam_policy_simulator requires 3 Quals (principal_arn, resource_arn, action). Joining this table to two other tables (e.g. aws_iam_user.arn and aws_s3_bucket.arn) results in the following error message:
Error: 'List' call requires an '=' qual for all columns: principal_arn,action,resource_arn

Using a join for one qual and hard-coded values for the other two quals works, but applying multiple joins does not.
This works
select
  u.name,
  s.action,
  s.decision
from
  aws_iam_policy_simulator s
  join aws_iam_user u on s.principal_arn = u.arn
where
  resource_arn = 'arn:aws:s3:::dmi-employee-data'
  and action = 's3:ListBucket';

And this works
select
  b.name,
  s.action,
  s.decision
from
  aws_iam_policy_simulator s
  join aws_s3_bucket b on s.resource_arn = b.arn
where
  s.principal_arn = 'arn:aws:iam::899206412154:user/toby_flenderson'
  and b.name like 'dmi%'
  and s.action = 's3:ListBucket';

This does not work
select
  u.name as user,
  b.name as bucket,
  s.action,
  s.decision
from
  aws_iam_policy_simulator s
  join aws_iam_user u on s.principal_arn = u.arn
  join aws_s3_bucket b on s.resource_arn = b.arn
where
  b.name like 'dmi%'
  and s.action = 's3:ListBucket';

Steampipe version (steampipe -v)
Example: v0.4.0
Plugin version (steampipe plugin list)
AWS: v0.12.0
To reproduce

Create an iam user
Create a bucket named dmi-test-bucket-xxxxx
Run the query

Expected behavior
The aws_iam_policy_simulator table should return a row result for each combination of IAM user and S3 Bucket

Hey @dboeke , I believe this is an issue to look at within the Postgres FDW, so I'm moving the issue over to https://github.com/turbot/steampipe-postgres-fdw.


Turbine Light

It'd be nice to have a turbine-block that illuminated the inside of a turbine. I like to see the visuals of the turbine running but with large turbines its hard to get lighting inside of them to really show off the turbine.
For the reactors I don't really see the need as the rods produce light.

The easiest thing to do here is probably just to make the turbine shafts produce light.

beef, i would suggest adding an alternative glowing shaft (craft the shaft with glowstone). That might be the cleanest.

As an additional reason, monsters spawn inside turbines.  Or at least have in the past.

I believe I disabled monsters spawning inside turbines in one of the 0.4 experimentals. Let me know if that's not the case.

Added by 831a5d050f29874336bb0a4533399e91328f6930, will be out in 0.4.2A.


Updating language implementation after some review comments

In particular:

Updating docs after discussion on #2062
Removing document_from_blob() helper in language.
Removing project from the Client constructor since it isn't needed by
Adding another system test for analyze_entities() that uses docs stored on GCS

LGTM


no need to merge

this commit is empty to trigger the build on 2.12 head for any upcomming
pull-request.

out of the curiosity, what was a need for this action?
(maybe I can optimize sth on our side)

@keradus  Thanks for asking, but it was just me not seeing the woods for the tree. For the bigger picture: If a fixer fails after fixing due to PHP syntax errors (in the liniting part), it would be great for better error reporting. I can imagine this is not easy, so this is really a bigger picture. What I did here - just for explanation - was to fire the build against the base branch b/c I couldn't understand why the build with my changes against the build branch failed. After I've seen it green it was just a  blunder I had in my PR. So sorry for the interruption.


bug writing multiple vars with one SAVE when scaled

Reported by ansley b manke on 6 Mar 2015 19:47 UTC
When variables from a dataset have scale_factor and/or add_offset attributes, we re-scale them on writing to an output file. We also write them using the data type of the variable in the source data set.
When multiple variables are written together, the scaling is not done correctly.
This was reported by Ned Cokelet

yes? use my_subset.nc
yes? sh dat
     currently SET data sets:
    1> ./my_subset.nc  (default)
 name     title                             I         J         K         L         M         N
 LONGITUDE
          longitude                        1:11      1:11      ...       ...       ...       ...
 LATITUDE latitude                         1:11      1:11      ...       ...       ...       ...
 MELT_ONSET_DAY_SEAICE_CONC_CDR
          Day of Snow Melt Onset Over Sea  1:11      1:11      ...       1:1       ...       ...
 QA_OF_SEAICE_CONC_CDR
          Passive Microwave Daily Norther  1:11      1:11      ...       1:1       ...       ...
 GODDARD_MERGED_SEAICE_CONC
          Goddard Edited Climate Data Rec  1:11      1:11      ...       1:1       ...       ...

yes? sh att QA_OF_SEAICE_CONC_CDR
     attributes for dataset: ./my_subset.nc
 QA_OF_SEAICE_CONC_CDR.missing_value = 0
 QA_OF_SEAICE_CONC_CDR._FillValue = 0
 QA_OF_SEAICE_CONC_CDR.long_name = Passive Microwave Daily Northern Hemisphere Sea Ice Concentration QC flags
 QA_OF_SEAICE_CONC_CDR.history = From seaice_conc_daily_nh_f17_20080101_v02r00
yes? sh att GODDARD_MERGED_SEAICE_CONC
     attributes for dataset: ./my_subset.nc
 GODDARD_MERGED_SEAICE_CONC._FillValue = -1
 GODDARD_MERGED_SEAICE_CONC.long_name = Goddard Edited Climate Data Record of Passive Microwave Daily Northern Hemisphere Sea Ice Concentration, Goddard Edited
 GODDARD_MERGED_SEAICE_CONC.units = 1
 GODDARD_MERGED_SEAICE_CONC.scale_factor = 0.01
 GODDARD_MERGED_SEAICE_CONC.history = From seaice_conc_daily_nh_f17_20080101_v02r00

yes? save/file=new.nc/clobber
yes? save/file=new.nc/clobber QA_OF_SEAICE_CONC_CDR, GODDARD_MERGED_SEAICE_CONC
 LISTing to file new.nc
NetCDF: Numeric conversion not representable (OPeNDAP/netCDF Error code -60)
 data in variable QA_OF_SEAICE_CONC_CDR not representable in output type NC_BYTE

The error message stems from the fact that the re-scaling factors for the variable GODDARD_MERGED_SEAICE_CONC was erroneously applied to QA_OF_SEAICE_CONC_CDR, making its values too large to write as BYTE.
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2240

Attachment from ansley.b.manke on 6 Mar 2015 19:48 UTC
the file with scaled and BYTE type variables
REPLACE THIS TEXT WITH UPLOADED FILE ./attachments/TRAC_2240_GIT_1512/my_subset.nc


Fix a broken link

Your checklist for this pull request
🚨Please review the guidelines for contributing to this repository.

[ ] Make sure you are requesting to pull a topic/feature/bugfix branch (right side). Don't request your master!
[ ] Make sure you are making a pull request against the canary branch (left side). Also you should start your branch off our canary.
[ ] Check the commit's or even all commits' message styles matches our requested structure.
[ ] Check your code additions will fail neither code linting checks nor unit test.

Description
Please describe your pull request.
💔Thank you!
Asynchronous Loading](#/guide/12_asynchronous_loading to Asynchronous Loading](#/guide/12_asynchronous-loading

Thanks, picked as f6bd4c0


Load devtool extensions using paths from ENV variables

No issue.
There was a bug, which stops opening the window if the extensions are not found. I have different paths, so it fails for me.
I replaced the hard-coded paths by taking them from ENV variables.
If ENV variables are unset or wrong the App still works as it should, but without dev tools.
If the path is wrong there will be a log message in the main process.
Replacing package dotenv with dotenv-flow
dotenv-flow uses multiple .env files, mergeLeft [ .env.NODE_ENV.local .env.NODE_ENV .env.local .env ] where NODE_ENV is enum of possible values (development production)
Created templates

.env.production for packagerScript
.env.development for the Main Process with ENV variables development || DEBUG_PROD.

Developer should duplicate them with suffix .local and assign their paths, secrets, and so on

Better solution: #745


Fix memory leak in GpuIntervalUtilsTest

Fixes #7603.
don't leak micros backing buffers
Signed-off-by: Gera Shegalov<EMAIL_ADDRESS>

build

build

build


Total entities not increasing

Even after fix of #44 my energy dashboard does not look correct. The wrong values are gone, but the total sensors are not increasing anymore although there are values from now sensors.

please have a look here: https://github.com/marq24/ha-senec-v3/discussions/48

Thanks. I did search in issues, but not in discussion.

NP :-) - so you have also the "thanks for nothing" message in your log - right?!


Transactions list fails to load the next page on betanet

I don't know what is the problem, but for some reason, the transactions page on the betanet cannot load the transactions beyond the initial page: https://explorer.betanet.nearprotocol.com/transactions
Acceptance Criteria

[ ] The scroll pagination shows the next transactions

I see the error message as this on local backend:

here is my local DB data:

Here is the blockTimestamp bug:

The timestamp is not sequencely inserted in the database and when the following block timestamp is larger than the previous, we could not fetch.

This happens when we regularSyncNewNearcoreState and regularSyncMissingNearcoreState at the same time not waiting fetch old state then adding the new state. We do not control the insert sequence and thus timestamp maybe not a correct indicator for the pagination any more.

This happens when we regularSyncNewNearcoreState and regularSyncMissingNearcoreState at the same time not waiting fetch old state then adding the new state.

Yeah, the collision is possible given the huge blocks with hundreds of transactions, but why does it arrive into an inconsistent state where the transactions are saved, but not the blocks? :thinking:

timestamp maybe not a correct indicator for the pagination any more.

Why? The timestamp should be assigned based on the block timestamp and has nothing to do with the real time and the insert order, has it?

I believe this should not have been possible to happen since we commit changes into SQLite as a single DB transaction, which includes the blocks, their relevant chunks, and their relevant transactions (+ accounts and access keys), so there should be no way we have the transactions saved in the database without the corresponding blocks.
I am closing this issue as we cannot reproduce it now, and the action item should be #263.


LinkSave

Describe the project
this is an javascript extension in which we can save all the links we want and can also delete.
Issue Type:

[ ] Bug Report
[ ] Feature Request
[ ] Documentation
[ ] New Project

Additional context
Add any other context or screenshots about the project here.
Screenshots

If applicable, add screenshots to help explain your problem

Please @TusharKesarwani assign this to me.


Still maintained?

Is this package still maintained? I would like to use it but am concerned about the failing CI.

@Vilin97 The failing CI is due to merged code which haven't been released, I'll fix it sometime. feel safe to use the released version


Complete Port of our Redis.js onto Satellite

In issue #1908, we discussed about porting Redis onto Satellite for use on other modules.
Everything here should work (in theory), but I need some help on writing tests for Redis.

What tests are you trying to write?

What tests are you trying to write?

Just a simple test that makes sure that Redis and MockRedis are working as expected

I'm assuming you're just checking for connectivity then?

I'm assuming you're just checking for connectivity then? If so, Redis has a PING command, if it is connected should return PONG https://redis.io/commands/PING

Noted, thanks! I'll add that in test.js

This needs a rebase.

@humphd I might have to move the Redis test onto Telescope instead of Satellite. I need to have Docker running within Telescope to get the tests to pass.

Yup, just tested it. If we try to bring Redis onto our tests, it will continue to run until we explicitly kill it. Should we add a function that will allow us to terminate the process?

Has this stalled?

@Metropass what's up with this PR?

@Metropass what's up with this PR?

Had to postpone it for now, at least until I finish with my Cache middleware, and progress further with the CORS Middleware. ETA on that should be around 3 days

#11 successfully ports redis to Satellite. Closing this PR


Can't Create .well-known folder

I have attempted to follow the instructions in the "IIS Settings Changes (Manual Install" section of the Wiki doc for Exchange 2016.   I have been unable to create the .well-known folder under wwwroot, as Explorer tells me that I need to add a filename.

If you could expand on how you're doing that creation, I'd greatly appreciate it.
Thanks

Explorer won't let you create a folder or a file without a name.
However you can either do it via the command line mkdir .well-known or you can create it as .well-known.  in Windows Vista and greater.

Thanks, good sir.  That did the trick and I have successfully followed the rest of the guide.  I appreciate the help.

Thanks, good sir. That did the trick and I have successfully followed the rest of the guide. I appreciate the help.

How were you able to install the other files from certbot into the web server directory???
I have exactly same issue


RequiredAttribute cannot be displayed when marked as [FromForm]

version：5.0.0-rc5
When marked as [FromForm], RequiredAttribute and attribute summary cannot be displayed, but there is no problem when marked as [FromBody]

This is fixed in the latest master. Will be available as part of the 5.0.0 release (planned for this week) but in the meantime you can test it out by pulling down the latest preview version from myget.org:
https://www.myget.org/feed/domaindrivendev/package/nuget/Swashbuckle.AspNetCore


A sync API to get SharableContent::current

Is there a way to have a sync version or add Send to get sharable content? Because I'm getting error of cannot send !Send struct across await points.
https://github.com/yury/cidre/blob/main/cidre/src/sc/shareable_content.rs#L113
Other impls I've seen: https://github.com/svtlabs/screencapturekit-rs/blob/main/screencapturekit-sys/src/shareable_content.rs#L175

Sorry for late reply.
https://github.com/yury/cidre/blob/9601c0626e4f6f2b716c4f7d4f83bcc14b374c46/cidre/examples/sc-record/main.rs#L274
It is Send and Sync on my branch.

It is Send on my branch:
https://github.com/yury/cidre/blob/9601c0626e4f6f2b716c4f7d4f83bcc14b374c46/cidre/src/sc/shareable_content.rs#L88

My bad — let me try again with latest and will post the exact error if I get any.

@yury this is the error I get:

Do you use latest version?
I just double checked with sc-record example. Everything is good.
cargo r --example sc-record
Is it broken for you too?

Yes I do. In fact, I see this line:
unsafe impl Send for ShareableContent {}
and it works in one situation but not the other.
This one works in a struct:

  pub async fn start(&mut self) -> (i32) {
    let queue = dispatch::Queue::serial_with_ar_pool();

    // display
    let content = sc::ShareableContent::current().await.expect("content");

But when I use this function in another crate it doesn't work:
pub async fn get_sharable_contents() -> Vec<SharableItem> {
  // display
  let content = cidre::sc::ShareableContent::current()
    .await
    .expect("content");

  let primary_id: u32 = cidre::cg::main_display_id().into();
  let displays: Vec<SharableItem> = content
    .displays()
    .iter()
    .map(|display| {
      let is_primary = display.display_id() == primary_id;

      SharableItem {
        id: display.display_id().into(),
        kind: SharableKind::Display,
        title: format!(
          "{} ({w}x{h})",
          if is_primary {
            "Primary Display"
          } else {
            "Display"
          },
          w = display.width(),
          h = display.height()
        ),
      }
    })
    .collect();

  return displays;
}

Interesting...
Could it be that you are using different async runtime (not tokio) in another crate?

I think, it is ns::Error. Please try latest version

It works! Thank you


Add From impl for TypedArrays

There's been quite a few issues (1, 2, 3) about TypedArrays and Rust slices.
Right now the only way to convert a Rust slice into a TypedArray is to use the unsafe view function. But it's common for people to make mistakes when using it, and those mistakes are quite bad (since it's unsafe).
So this PR adds in safe From impls for all of the TypedArrays, allowing for easy, safe, and fast conversion from Rust slices.

Seems reasonable to me! Did you want to measure some of the TODO before merging though?

I ran some benchmarks, and the differences are negligible:
Chrome:
  new<PHONE_NUMBER>9880790ms  (100%)
  slice len<PHONE_NUMBER>9568546ms<PHONE_NUMBER>0191212%)
  slice length<PHONE_NUMBER>1322286ms<PHONE_NUMBER>2547494%)
  raw js<PHONE_NUMBER>5434840ms<PHONE_NUMBER>48423%)
  slice<PHONE_NUMBER>1248063ms<PHONE_NUMBER>1439563%)

Firefox:
  raw js<PHONE_NUMBER>3333335ms  (100%)
  slice<PHONE_NUMBER>3333336ms<PHONE_NUMBER>0432312%)
  slice len<PHONE_NUMBER>4137930ms<PHONE_NUMBER>3827171%)
  slice length<PHONE_NUMBER>7586210ms<PHONE_NUMBER>098343%)
  new<PHONE_NUMBER>0000000ms<PHONE_NUMBER>125618%)

So I went ahead and removed the TODOs.

👍