Bug with guard in new Blade Directives

Laravel Version: 5.4.29
PHP Version: 7.1
Database Driver & Version:

Description:
@auth
logged
@endauth
I have a error with $guard is null
Steps To Reproduce:
In my project I fixed:
@auth('web')
logged
@endauth
In new Blade Directives, set default $guard = 'web'.

@khanhvu14 What do you mean by

In new Blade Directives, set default $guard = 'web'.

Same error I described here: https://github.com/laravel/framework/pull/20114

You are using it wrong.
@auth()
logged
@endauth

This is the correct way.

@joshmanders I can make it work the other way

@khanhvu14 @joshmanders @it-can Opened https://github.com/laravel/framework/pull/20166


How to redirect properly from one port to other

I have:
      properties:
        ha_proxy:
          disable_http: true
          tcp:
            - name: service
              port: 8200
              backend_servers: &ips ((grab conf.service.static_ips))
              backend_port: 8200
            - name: service-ui
              port: 443
              backend_servers: &ips ((grab conf.service.static_ips))
              backend_port: 8200

how to configure redirect from
80 port to 443 and do not rewrite 8200 port

I think you will want to remove disable_http, as it turns off the :80 listener, and enable https_redirect_all. Haven’t tested this with tcp backends, but I think it should be ok
Sent from my iPhone

On Jun 20, 2018, at 5:00 AM, Alexvianet<EMAIL_ADDRESS>wrote:
I have:
  properties:
    ha_proxy:
      disable_http: true
      tcp:
        - name: service
          port: 8200
          backend_servers: &ips ((grab conf.service.static_ips))
          backend_port: 8200
        - name: service-ui
          port: 443
          backend_servers: &ips ((grab conf.service.static_ips))
          backend_port: 8200

how to configure redirect from
80 port to 443 and do not rewrite 8200 port
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Should it will redirect 8200 also to 443?
On Wed, Jun 20, 2018, 17:53 Geoff Franks<EMAIL_ADDRESS>wrote:

I think you will want to remove disable_http, as it turns off the :80
listener, and enable https_redirect_all. Haven’t tested this with tcp
backends, but I think it should be ok
Sent from my iPhone

On Jun 20, 2018, at 5:00 AM, Alexvianet<EMAIL_ADDRESS>wrote:
I have:
properties:
ha_proxy:
disable_http: true
tcp:

name: service
port: 8200
backend_servers: &ips ((grab conf.service.static_ips))
backend_port: 8200
name: service-ui
port: 443
backend_servers: &ips ((grab conf.service.static_ips))
backend_port: 8200
how to configure redirect from
80 port to 443 and do not rewrite 8200 port

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cloudfoundry-incubator/haproxy-boshrelease/issues/102#issuecomment-398780069,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQrHRdjRdtuRoJ1ZZhKVhsMZI6ZbVtUNks5t-mHNgaJpZM4Uu3_B
.

Nope, that would only do 80-> 443. Since 8200 is a tcp frontend/backend, haproxy can’t speak http back to the client to redirect
Sent from my iPhone

On Jun 20, 2018, at 11:12 AM, Alexvianet<EMAIL_ADDRESS>wrote:
Should it will redirect 8200 also to 443?
On Wed, Jun 20, 2018, 17:53 Geoff Franks<EMAIL_ADDRESS>wrote:

I think you will want to remove disable_http, as it turns off the :80
listener, and enable https_redirect_all. Haven’t tested this with tcp
backends, but I think it should be ok
Sent from my iPhone

On Jun 20, 2018, at 5:00 AM, Alexvianet<EMAIL_ADDRESS>wrote:
I have:
properties:
ha_proxy:
disable_http: true
tcp:

name: service
port: 8200
backend_servers: &ips ((grab conf.service.static_ips))
backend_port: 8200
name: service-ui
port: 443
backend_servers: &ips ((grab conf.service.static_ips))
backend_port: 8200
how to configure redirect from
80 port to 443 and do not rewrite 8200 port

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cloudfoundry-incubator/haproxy-boshrelease/issues/102#issuecomment-398780069,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQrHRdjRdtuRoJ1ZZhKVhsMZI6ZbVtUNks5t-mHNgaJpZM4Uu3_B
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

thanks U are right it's works


Slabs from Double slabs have tabs, despite not having inventories that you can access.

Slabs from Double slabs have tabs, despite not having inventories that you can access.  Can you add them to the blacklist for tabs automatically?

[https://drive.google.com/file/d/1gVHzAB9WAWEi5dBC4aXxSBd4t23A8-LM/view?usp=sharing]
Here is a link to a video for reference :)


Fix typos in docs

This PR fixes various typos in docs/*.md's. As far as I understand they are used to be shown as a text on https://bionus.github.io/imgbrd-grabber/.
Initially I've found a few typos on the main page, afterwards I decided to spellcheck every md in docs, since it is not that troublesome. Hopefully I haven't broke anything.

LGTM, thanks 😄
Gotta admit I didn't install any spell-check to my MD editor (VS Code) 😅


Add "--reinstall-packages-from" perms to "nvm install" command

Is your feature request related to a problem? Please describe.
When I switch to another new node version through this package, I need to install all global package I installed in old node version again.
Describe the solution you'd like
Add --reinstall-packages-from perms so that all global package in other version can be auto installed on new version.
Describe alternatives you've considered
Make a command that can install all global package from other node version to another node version
Additional context
No

Please use the reactions to cast a vote in favor of or against this feature suggestion »

Reopening because it is an enhancement request.

☠

This would be really useful

Yeah

See https://github.com/coreybutler/nvm-windows/wiki/New-Features


Class tymon.jwt does not exist

Hello,
I am having problems with this library on php7-homestead.
My code is:
config/auth.php
'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'api' => [
            'driver' => 'jwt-auth',
            'provider' => 'users',
        ],
    ],

config/app.php
/*
 * Vendor Service Providers...
 */
Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class,
Irazasyed\JwtAuthGuard\JwtAuthGuardServiceProvider::class,

app/Http/Kernel.php
protected $routeMiddleware = [
        'auth' => \ProteCMS\Http\Middleware\Authenticate::class,
        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
        'guest' => \ProteCMS\Http\Middleware\RedirectIfAuthenticated::class,
        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
        'jwt.auth' => \Tymon\JWTAuth\Middleware\GetUserFromToken::class,
        'jwt.refresh' => \Tymon\JWTAuth\Middleware\RefreshToken::class,
    ];

routes.php
$router->group(['middleware' => 'auth:api'], function ($router) {}); // etc...

I'm getting this error and I can't progress. I try with composer dumpautoload, but it doesnt work.
Thank you and sorry for my English.

Please refer the https://github.com/irazasyed/jwt-auth-guard/issues/5#issuecomment-175152252


Issue/209 xrdatarray b

Pull Request
Description
There are two different flows for the data representting, 1. saving to a batch file, 2. loading ready for ml

Each data source outputs a xr.Dataset which has been validated using a pydantic extension
Batches are made and then saved to .netcdf, each datasource in a different file

Batches are loaded from netcdf
transfered to BatchML, which is pyadntic model of each data source, and each data source describes which tensor fields it should have

*** note that 2. could move to dataloader repo, but wanted to get it all sorted here first

[x] Change batch maker to use xr.Datasets
[x] validate all data source xr.Datasets to have the correct dims
[x] add validation to xr.Datasets for each data source (done for satellite and nwp)
[x] Create BatchML ready for ML training e.t.c

Fixes #209
How Has This Been Tested?

Adjust unittest accordingly

written new unittest for new code

TODO run script/prepare_ml_data.py

[ ] No

[x] Yes

Checklist:

[x] My code follows OCF's coding style guidelines
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have checked my code and corrected any misspellings

wow, what a beast!
I think this PR is waaaaay too big. We should see if we can split up future work better to end up with smaller PRs. I find it really hard to review PRs this size and it takes quite a long time.
Google's eng-practices make a good case for smaller PRs (they call them CL: Change list): https://google.github.io/eng-practices/review/developer/small-cls.html
Also, my github browser window got really slow during reviewing haha.
I agree with @jacobbieker that we should try to remove commented-out code, as it's contained in the git history anyways.
There are also a bunch of unresolved todo items that are being introduced - I think we should generally try to either:
a) resolve those before merging the PR, or b) raise an issue or link them to one, and then reference the issue number in the todo comment.
Otherwise I feel like we'll just forget about them or it's unclear who will work on resolving them in the future.

Yea I agree, this was a big one. I really dont like doing big PRs, so I totally agree about breaking them down.
Thanks very much @flowirtz for all the comments


Modify Title

Please consider adding the words "Drop-Down Control" to the end of this article's title.

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

ID: e9979b71-a2f9-9032-5bba-161f6da5ff63
Version Independent ID: 7fd0115f-bfec-43e1-e5c3-69bf2e4d383c
Content: Field Groups - Business Central
Content Source: dev-itpro/developer/devenv-field-groups.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Hello, thanks for your feedback. The title is based on the technical term used during development, but I will add your suggestion to the article's title - updated with the next doc refresh.


chore(exporter-logs-otlp-proto): rename OTLPLogsExporter to OTLPLogEx…

…porter for consistency

Which problem is this PR solving?
The class name is inconsistent with other log exporter classes. I was working on a package, which needed to instantiate the exporters and had to add a workaround for this inconsistency. Then it became apparent that this is not per spec. https://github.com/open-telemetry/opentelemetry-js/pull/3764#discussion_r1194453361
Fixes #4139
Short description of the changes
Type of change
Please delete options that are not relevant.

[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Ran npm test in experimental/packages/exporter-logs-otlp-proto

Checklist:

[x] Followed the style guidelines of this project
[x] Unit tests have been added
[x] Documentation has been updated

Unfortunate that the name will conflict with the package name itself but changing the package name is probably too big of a break even for an experimental package for such a small benefit


vdr: 2.4.6 -> 2.4.7

Motivation for this change
Update to latest version.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 123168 at d5d750fa run on x86_64-linux 1

2 packages marked as broken and skipped:

vdrPlugins.markad
vdrPlugins.xineliboutput

9 packages built successfully:

vdr
vdrPlugins.epgsearch
vdrPlugins.femon
vdrPlugins.fritzbox
vdrPlugins.skincurses
vdrPlugins.text2skin
vdrPlugins.vaapidevice
vdrPlugins.vnsiserver
wrapVdr

1 suggestion:

warning: unclear-gpl
gpl2 is a deprecated license, please check if project uses gpl2Plus or gpl2Only and change meta.license accordingly.
Near pkgs/applications/video/vdr/default.nix:54:5:
   |
54 |     license = licenses.gpl2;
   |     ^

I updated the license as suggested, but now the editor config check failed for unknown reason. The marked broken packages uses an insecure libav, which we should ignore for this PR.

@GrahamcOfBorg eval


Support both README.md and readme.md

The recent change to use readme.md rather than README.md broke some of our documentation, without us realising. The commit message for 15c000f6851a419aab8e89a08385a5dc56e97edb says:

Support lower case readme.md and add project name in navigation trail.
... which makes me think this was unintentional breakage.

Also pin to rack 2 as specs break with rack 3.
Types of Changes

Bug fix.

Contribution

[ ] I added tests for my changes.
[x] I tested my changes locally.
[x] I agree to the Developer's Certificate of Origin 1.1.

CI is failing, not sure why. Something about pkg-config is missing.


YAML parser is not preserving the order when dealing with map keys

We have been seeing unexpected CF components being updated when deploying zero changes via bosh2. This tells me that we have indeed some changes in the manifest we intend to deploy, but somehow bosh2 is not detecting them.
I use the bosh2 interpolate to reproduce the error, which I believe should be using the same YAML parser when triggering a bosh2 deploy.
When doing the following command multiple times you can see how the map keys order change.
 bosh2 interpolate manifest.yml --path /properties/cc/quota_definitions where properties.cc.quota_definitions is map of keys.
output changes during different runs:
-1
q2GB:
  something: nothing
q4GB:
  something: nothing
q8GB:
  something: nothing
q16GB:
......

-2
q4GB:
  something: nothing
q8GB:
  something: nothing
q16GB:
  something: nothing
.....

The example above is causing our Cloud Controllers to be updated, which is not the expected behaviour.
Regards,
Enrique Encalada

@qu1queee im afraid cloud controller may have to change their property type to an array so that order is defined. typically hashes are not something that can guarantee order.

@cppforlife that is a valid point, but I do not fully agree. Is the integrity of the manifest I provide to BOSH(in order to be deployed) not guaranteed?
I saw a similar issue some months ago, but this was one step before, while merging multiple YAML files in order to generate the BOSH manifest.(see issue 184 )
In this case, I already have a manifest for deploy, why would it be changed(quota_definitions hash)?

Any updates on this?

@qu1queee which verison of cli are you using. i cannot repro changing order behaviour.

@tjvman how did you reproduce it? I did the following several times, it does not shows up immediately
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
--  bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q2GB:
q4GB:
q8GB:
q16GB:
q32GB:
q64GB:
q128GB:
q256GB:
q512GB:
-- bosh2 interpolate my_manifest.yml --path /properties/cc/quota_definitions | grep GB
q4GB:
q8GB:
q16GB:
q64GB:
q256GB:
q2GB:
q32GB:
q128GB:
q512GB:

Pay attention to the last run of bosh2 interpolate compare to the previous ones.
The version we have is version 2.0.29
Regards,
Enrique Encalada

I hit the same issue.
@maximilien - also for your attention

able to reproduce after 20 times. thinking...

@cppforlife  thanks. So the gopkg.in/yaml.v2 can be patched(see pr) , but I´m not sure if this is needed.

any updates on this?

Some work has been started in #150423538 which involves sorting hash keys in the director at deploy time, rather than patching the YAML library.

@dpb587-pivotal thanks a lot.

@cppforlife why not sort keys on all sides? That should be stable and cheap (not a large set)

@qu1queee, we're continuously suffered from this issue, sometimes the env became unstable when CC VMs get rolled out. any progress on this topic please? Is this issue recorded here the only 1 that need to be resolved from community side?  https://www.pivotaltracker.com/n/projects/956238/stories/150423538,  thanks.

@qu1queee, we're continuously suffered from this issue, sometimes the env became unstable when CC VMs get rolled out. any progress on this topic please? Is this issue recorded here the only 1 that need to be resolved from community side?  https://www.pivotaltracker.com/n/projects/956238/stories/150423538,  thanks.

Closing - this was backported to v263.1+.
@chuanran, please be sure to upgrade your director and try again.


[topic-gpio] boards: stm32: update to use new GPIO API

Update all STM32 based boards to use new GPIO API.
Based on: #19579 ([topic-gpio] drivers: gpio_stm32: update to use new GPIO API).
Due to number of impacted boards, Shippable will likely timeout.
So Shippable result should be checked in #19579. And only usual code review is possible in this PR.

Squashed into https://github.com/zephyrproject-rtos/zephyr/pull/19579.
Closing


error MSB4057: The target "_Inspect_FscArgs" does not exist in the project

I started getting this error today. Googling led me to an error on this repository where someone had the same error, but that was about projects being parsed as Sdk projects that were not Sdk projects. I have a Sdk project though. I have 3 such projects that all fail to load.
Also, when I look at the proj-info.targets, I see the _Inspect_FscArgs target there.

@Alxandr try remove the obj dir and redo dotnet restore

Worked :)
Any idea why this is needed?

renamed the project? dunno.
what actions have you done?
anyway i'll improve that (removing the temporary file) with https://github.com/enricosada/dotnet-proj-info/issues/10

I don't think I did anything in particular. I just came back to the project after a month of not touching it.

As an FYI, I was having this issue. Removing the obj dir did nothing. However I had an explicit reference to FSharp.NET.Sdk as soon as I removed this and ran dotnet restore everything started working.

@Alxandr try remove the obj dir and redo dotnet restore

Yeah, this works!

as per the comments above, dotnet restore on the CLI, then reload the project in ionide./

best workflow for big issues is:

remove obj/bin dir (usually also dotnet clean works)
dotnet restore
code .

if just deps seems missing from intellisense:

F#: clear cache
Reload window (edited)

s952163 [6:57 PM]
yeah, i know, i try to not start new projects in VS2017
[6:57]
ok
[6:58]
i just created a new project in ionide F# New Project
[6:58]
then did dotnet restore on the CLI
[6:58]
then Reload Window in ionide
[6:58]
it loaded the project


V2.5.0 dev reverse proxy

ok i did some silly things with pull request trying to keep these 3 changes separate but it did not apparently work so just look at the other 2 PRs first and let me know if i need to revert anything.
also this changes a bunch of web paths to be relative so that reverse proxy can work but that might break something i have net been able to test so it might be worth you doing some more testing on this one.

Can you resubmit the pull request  with only the reverse proxy changes ? I still want to do more testing on the ajax refresh before it is merged.

i will try but i think there are some changes in here that are changes to the ajax refresh stuff that we will need to apply to the ajax branch

im going to close this PR till i work this out


[GOBBLIN-1053] Update Readme with new badges and links

Added a badge for Maven, StackOverflow and Gitter.
Shortened and updated the links.

Codecov Report

Merging #2893 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master   #2893      +/-   ##
===========================================
- Coverage     45.81%   45.8%   -0.02%
+ Complexity     9148    9146       -2
===========================================
  Files          1929    1929
  Lines         72602   72602
  Branches       7993    7993
===========================================
- Hits          33264   33254      -10
- Misses        36303   36311       +8
- Partials       3035    3037       +2

Impacted Files
Coverage Δ
Complexity Δ

.../org/apache/gobblin/metrics/RootMetricContext.java
71.87% <0%> (-7.82%)
15% <0%> (-1%)

...lin/util/filesystem/FileSystemInstrumentation.java
85.71% <0%> (-7.15%)
3% <0%> (ø)

...in/java/org/apache/gobblin/cluster/HelixUtils.java
38.93% <0%> (-3.54%)
14% <0%> (-1%)

...he/gobblin/writer/FineGrainedWatermarkTracker.java
82.25% <0%> (-2.42%)
28% <0%> (-1%)

.../apache/gobblin/runtime/api/JobExecutionState.java
79.43% <0%> (-0.94%)
24% <0%> (ø)

...e/gobblin/runtime/locks/ZookeeperBasedJobLock.java
64.44% <0%> (+1.11%)
16% <0%> (+1%)
:arrow_up:

...lin/elasticsearch/writer/FutureCallbackHolder.java
62.85% <0%> (+1.42%)
4% <0%> (ø)
:arrow_down:

...lin/restli/throttling/ZookeeperLeaderElection.java
72.22% <0%> (+2.22%)
13% <0%> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


What's the first milestone for this project?

You posted on Twitter that you were curious if people would want to help work on Haywire -- and I think that was a resounding "yes" :).  However, what I don't see is a roadmap of what's left to be done overall.. or sort of... what defines a good milestone?
Do you have any sort of idea what Haywire v1.0 should look like?  Do you think it's worth coming up with some ideas of what it might look like?

This is what I have so far. I would like to discuss other features or things that need completion for a first stable release.
https://github.com/kellabyte/Haywire/milestones/Version 0.1

@tobz @nmdguerreiro Let's revisit this discussion. What kinds of things would we want in an initial release? What should it look like? Here are my thoughts.

Needs to perform under long running benchmarks.
Needs to not leak memory under long running benchmarks.
Needs to be more stable than it is currently.
Needs to sustain high connection counts reliably with good throughput.
Needs to handle HTTP 1.1 keep-alive behaviour correctly.
I would like to have pico http parser merged in mainline with the above stability and performance.
TLS?
Zero-copy would be nice but we could start the experiments now but polish it for a second milestone.
Make a better story for the /stats route.

Routing currently isn't all that useful. It does a couple things but not much. Is that good enough for an initial milestone? If not, what routing features do we need?
Any other thoughts?

In my use case, I'll definitely need some sort of file-based logging. Would it make sense to make it part of the first milestone?

@nmdguerreiro :+1: I think that's a good idea :) I'll update the list.


Unit dispatcher is updated to align with Laravel 10.x

In Laravel 10.x, the flow of dispatch helper function changed a bit and lucid wont be working on it anymore. To solve it, let me create this PR.

run method of Lucid\Bus\UnitDispatcher.php &
serve method of Lucid\Bus\ServesFeature.php

will now be using dispatchSync() not the dispatch() that lucid used previously.

And I have noticed that we cannot run the queued job of lucid as follow.
$this->runInQueue(new SomeClass($arguments)) due to the following implementation
public function runInQueue($unit, array $arguments = [], $queue = 'default')
{
$reflection = new ReflectionClass($unit);
$instance = $reflection->newInstanceArgs($arguments);
$instance->onQueue((string) $queue);
  return $this->dispatch($instance);

}
The parameter from the passed object is not passed again and being ignored here.  I will soon create another PR to solve that problem as well.

Support for before and after of Laravel 10 can be found here
https://github.com/lucidarch/lucid/pull/50


Issue with session distribution in automatic scaling env. (JBOSS ajp)

Hi folks,
We are facing an issue in session distribution in our env..
During load scenarios its not possible to start additional JBOSS instances to compensate for load peaks as modcluster behaves different as expected:
It always forces to harmonize "Elected" count at first, not involving/caring about "Load"... This results in dying JBOSS instances, because those which were recently started and have the lowest "Elected", receiving 100% traffic.

It does not matter if we are using simple-load- or metric based dynamic-load-provider on JBOSS side.

Hello,
thanks for the issue! Which version of httpd and mod_proxy_cluster are you using?

Hello,
thanks for the issue! Which version of httpd and mod_proxy_cluster are you using?

Not only that, but which version of the application server are you using?

Hi, As there is no real versioning in mod_proxy_cluster, we build our 2.4.57 apache with mod_proxy_cluster commit hash: 4e039e05d0bcc6c71d092e32b188a0773c15b9fe

That's a very old version, have you trying with more recent version?
Moreover, I am asking about the application server version because you might be facing this problem too - see https://issues.redhat.com/browse/MODCLUSTER-449 - that has been fixed since WildFly 16.0.0.Final.

Indeed it is ... :X
Its JBOSS EAP 7.4.14, so we should not facing mentioned issue.

Indeed it is ... :X Its JBOSS EAP 7.4.14, so we should not facing mentioned issue.

OK I did check the EAP 7.4 source code and indeed it does contain that fix. That's the most we can actually do from the container integration, basically, it pre-populates the historical load cache with maximum load, so that the balancer drives load gradually.
Unfortunately, the load-balancing logic still seems to prefer elected rather than the load. This will need to be fixed in the httpd module - unless it's been already fixed in the past 2 years of development in this branch.

Unfortunately, the load-balancing logic still seems to prefer elected rather than the load. This will need to be fixed in the httpd module - unless it's been already fixed in the past 2 years of development in this branch.

I'll have a look.

I'll have a look.

Hi @jajik.
Any updates?

I'll have a look.

Hi @jajik. Any updates?

Would it be possible for you to try with a more recent version of mod_cluster?
Also, in the graph, what's on the X axis? Is that hours:minutes?

There are some changes, although at first glance it doesn't seem relevant, but I might be wrong. I guess trying the latest is the best way forward.
A few more questions:

Did you use any earlier version (1.3.x)?

Also, can you describe the scenario a little bit more? What's the nature of the application (e.g. is it just a simple jsp file or something more complicated meaning the request handling takes more time)? Is this a stress test?

The reported behavior is more or less deterministic, it doesn't change across multiple runs, correct?

Hi, thanks. Yes, we are going to test with latest version.
To your questions:

yes, but years ago.
Its a complex ecommerce platform. (sessions = customers)
its deterministic...


remove ReportableMixin

Methods in ReportableMixin are no longer used
Closes #8638

😍 great work @kbrock !  Looking forward to getting this merged.

👍 I'm going for the merge! ✂ 💥


Media controls broken on Macbook Pro 2016 Touch Bar

While Karabiner-Elements is running, the media controls (volume up/down, play/pause, etc.) on the new Touch Bar don't respond.
I tried opening up the JSON file and removing all of the mappings defined by default in "fn_function_keys". That didn't work.
I'm running macOS Sierra 10.12.1.

FYI, I made this work by unchecking the "No product name" box here:

@dbryand that works for me too, thank you.

I can confirm that @dbryand's post about unchecking the "No product name" fixes it for me as well, but one thing that is still broken for the touchbar mbp is holding the fn key which is supposed to show the "standard" function row. When karabiner is running, nothing happens. For me this isn't a problem because I never use function keys, but it will likely bite others. Thanks @dbryand and thank you @tekezo for the continued fantastic work.

I had this problem, but restarting fixed the issue with the fn keys.
I'm successfully remapping fn->ctrl and ctrl->fn
Before, even though the fn-key switching was working, the actual function keys weren't working when I tapped them. After disabling the "No product name" device, everything works correctly on my end!
My remaps are functional
I can hold FN to use the function keys
Expanded control strip works perfectly

Thank you for feedback!
I've changed to ignore the Touch Bar by default at v0.90.66.

This seems to me a temporary fix.. What should I do if I want to map the esc (on the touch bar) to something else while keeping the media control keys to work?
Thanks.

Hmm, I'm seeing the issue that ssameng reports on v0.90.86. After a fresh restart, the Fn key doesn't change the Touch Bar to the F1-F12 keys unless you close the lid and reopen it. Probably not the worst bug, but it threw me for a loop for a bit.

There is a good solution here.
You have to apply the one from @mutantcornholio and @kasecato


Use the local installation of openocd in place of the old one of the arduino package

Feature request
Yesterday, I need to debug a program for an STM32L4 board. The version
of openocd in the arduino package is a bit old and don't support this board.
During the finding of openocd, if the local installation could be considered, I think thats a good first solution.

@nedseb What product are you using?

fixed


why doesn't sky-walking support run-time agent?

According oracle document  which says one can start agents after vm startup.
Also, I've checked btrace which has implemented this.
Should we also support this?

I am aware of btrace a long time ago, but have no chance to try it, yet. So I can give you some opinions just from my consideration, but not judging the btrace 's way.
According to oracle document, you can see that, if you wan to start up agent after JVM started, you need to  use com.sun.tools.attach.VirtualMachine, which is part of JDK, rather than JVM. So assuming we did agent that way, it means we required the users installed JDK on their product/test env. This isn't a good choice for me.
The second concern is, you can redefine and retransform a class from a agent, sure, but a class, which has already initialized, is impossible to change. This will trigger implicit issues about some objects are not being traced.
The last and the most important situation, in today Java ecosystem, Spring framework became more and more popular. We can say it's in dominant position, Right? In spring, some classes have been modify in runtime, most in booting stage. The class will be renamed and modified. Even generate the new classes by implementing the same interfaces. So if you load agent after the stage, What is the purpose of using our agent?
So, according to these three, I insist to use agent by command line argument, only support premain as you said.
And for more, I have cross-compare some commercial products, e.g. AppDynamic, New Relic, OneAPM ApplicationInsight, they did the same as I did.
Hope this can help you. @zuochangan . Happy for your asking.

@wu-sheng Thank you very much for your detailed explanation.

你好，我们现在有一种场景想要支持运行时增强，我们的项目支持线上热更新，比如最开始编译得到A.class，启动时被skywalking增强，运行的其实是A-sky.class。我们的热更新策略是基于修改过的java文件生成A1.class。然后用A1.class替换A.class,这在没有skywalking时是可以支持的，但是使用了skywalking导致内存里实际上是A-sky.class。会导致A1.class与A-sky.class差异巨大（A-sky.class增加了field和方法，或者修改了方法签名）而无法热更新。所以想到的方法是用A1.class传入jvm后再用skywalking增强下得到A1-sky.class，所以想要支持下运行时增强。
或者您能想到其他方法吗，谢谢！

@cfk1996 We require the discussions on GitHub and Mail list must be in English.


Preview Release: Cesium for Unreal v2.10.0 for Unreal Engine 5.5  Crashs!

Cesium for Unreal v2.10.0 for Unreal Engine 5.5 crashes with Hardware Ray Tracing

Confirming that v2.10.0 for UE5.5 crashes consistently unless Hardware Ray Tracing is off.

Can you provide more details of the crash? If you have UE debug symbols installed, a full call stack would be very useful.

Solution：

Thanks for the info! I fixed this in #1550. If you want to try it out, see here for instructions for how to download and install a build from a pull request:
https://github.com/CesiumGS/cesium-unreal/blob/main/Documentation/using-prerelease-packages.md

Same bug for me after rebuilding engine with your new build.


Slow UI

As mentioned here https://github.com/Bouni/kicad-jlcpcb-tools/issues/65#issue-1039274446 the UI (part search) feels slow and laggy, this is mostly because every time we load the search dialog we query all packages and manufacturers from the db.
That could be cached for speedup.
Also the live search for packages and manufacturers feels slow and has potential for improvement.

I just startet to look at what takes the most time and makes the UI slow using pyinstrument.
The initial startup takes almost 8 seconds which is mostly caused by the stock lookup:

So there's much room for improvement, maybe we put that into a seperate Thread to make the UI more snappy 🤔

Solved in in 2021.12.1 🥳


Handle textures with depth other than 1

Valve exports them as z001, z002 etc (for cube maps they have names for each direction).
File: P:\Steam\steamapps\common\dota 2 beta\game\dota_addons\dungeon\materials\models\heroes\statuseffects\ep_forest_start.vtex_c
Exception: System.NotImplementedException: Got texture with depth of 4 (Format RGBA8888) which we currently do not handle correctly.
Parent file: P:\Steam\steamapps\common\dota 2 beta\game\core\pak01_dir.vpk
File: textures/dev/brdf_lut.vtex_c
Exception: System.NotImplementedException: Got texture with depth of 2 (Format RGBA16161616F) which we currently do not handle correctly.
Parent file: P:\Steam\steamapps\common\Aperture Desk Job\game\core\pak01_dir.vpk
File: materials/dev/aoproxy_splat_lut_z000_tga_92d182a0.vtex_c
Exception: System.NotImplementedException: Got texture with depth of 19 (Format ATI1N) which we currently do not handle correctly.
Parent file: P:\Steam\steamapps\common\Aperture Desk Job\game\steampal\pak01_dir.vpk
File: materials/effects/lightcookies.vtex_c
Exception: System.NotImplementedException: Got texture with depth of 11 (Format BC7) which we currently do not handle correctly.

Duplicate of #566


WFLY-12334 Using hotrod session manager with near cache throws IllegalAccessError

https://issues.jboss.org/browse/WFLY-12334
N.B. The changes here are temporary, until Infinispan 9.4.16.Final is released and integrated.

@pferraro Is this going to be reverted before WF 18.0.0.Final? If yes, how about Beta?

@bstansberry  It's fine to include this in a beta, but I'll want to restore the current module packaging when I upgrade to Infinispan 9.4.16.Final before WF 18.0.0.Final.

Infinispan 9.4.16.Final was released - so the workaround in this PR will no longer be necessary.


Provide a notification based feedback system

Is your feature request related to a problem? Please describe.
Currently the users are not informed in a harmonized way. Notifications are shown sometimes on top and on the bottom left. This concerns the following notifications (Thanks SP for collecting):
Success notifications (Toasts)
Usage: Triggered after successful completion of each task
Project creation and editing

Experiment creation and editing

Experimental variables creation and editing

Experimental groups creation and editing

Offer upload and remove

QC upload and remove

PAT token creation, copying and deletion

Project Access person add and remove (also email notifications for the same)

Sample batch add, update, remove

Sample batch dialog add, remove row

Measurement register, edit, delete

Measurements - RAW data available

Warning notifications
Usage: To warn the user of potential risks that may arise during an interaction.
Confirmation msgs on delete (Sample batch, measurement, PAT)

Confirmation msg on dialog cancellation (Project creation/editing, add/edit experiment, add/edit experimental variables, register sample batch)

PAT copy

TSV conversion in dialogs (Register and Edit measurements)

Error Notifications
Usage: To inform users of critical issues and guide them to resolution.
File upload : exceeding size, improper TSV, technical errors (DB, network, etc)

Editing experiment design after samples are registered.

Deleting measurements when no item is selected.

Describe the solution you'd like
Notifications are shown as "toast" notifications with a clear warning/error/success indication instead of stacking on top of each other
Describe alternatives you've considered
There is no alternative!
Additional context
To see an example: This is already done after experimental group registration to guide the user to the sample registration.

There is no alternative? I do not believe that. What alternatives did you consider and why did you decide for the proposed solution?

Heya @KochTobi,
The proposed solution is in adherence to the design made by @Shraddha0903, which is why i did not propose an alternative.
Basically there is a need to harmonize how users are informed in the application, which is not streamlined at the moment.

Thanks @Steffengreiner. @KochTobi as Steffen mentioned, this is just a task to have the notifications extended throughout the application. Currently it is not applied for all scenarios.
Also, I would like to clarify that we use toast notifications only for success/feedback msgs. For errors and warnings we use the dialog style as they are more critical. We do not use toast notifications for warnings/errors.

Some link to the notification system documentation (can be javadocs) needs to be provided to complete this task.
It is not part of this task to show the notifications everywhere.

@Shraddha0903 please provide screenshots for the notification toast to look like, I cant review the PR #790

@Shraddha0903 what is a sensitive value for the duration of a toast? I think 5 seconds is a little bit short, especially if the toast offers actionable items, like a link.
We might need to distinguish simple information and interactive toasts, whereas we might need different display duration settings.

moved detailed to do list to #799

@Shraddha0903 what is a sensitive value for the duration of a toast? I think 5 seconds is a little bit short, especially if the toast offers actionable items, like a link.
We might need to distinguish simple information and interactive toasts, whereas we might need different display duration settings.

Yes, agree. We can keep 5 seconds for the informational ones and 10 for the interactive ones.

@Shraddha0903 what is a sensitive value for the duration of a toast? I think 5 seconds is a little bit short, especially if the toast offers actionable items, like a link.
We might need to distinguish simple information and interactive toasts, whereas we might need different display duration settings.

Yes, agree. We can keep 5 seconds for the informational ones and 10 for the interactive ones.

I adapted this. 5 seconds were chosen as recommended by vaadin https://vaadin.com/docs/latest/components/notification#duration


What's a good setup for ambassador to host both private and public mappings?

Purpose
I am setting up my cluster with ambassador to have a way which

internet users can access it through public.my-domain.com
vpn users can access it through private.my-domain.com

Issue
I have both a public and private load balancer to which i point the domains to respectively. As ambassador on AWS uses classic LB, i am not able to block access using the loadbalancer by checking Host headers. Also, my understanding is that if i try to curl -H "Host: private.my-domain.com" https://public-loadbalancer with only 1 ambassador deployment serving both loadbalancers i will be able to reach private.my-domain.com
I was wondering if there is a recommended setup to achieve this?
My plan now

run two deployments of ambassador
use the AMBASSADOR_ID to control the available mappings to the respective pods.
point the public load balancer service to "public" ambassador pods
point private load balancer service to "private" ambassador pods

Example mapping:
apiVersion: getambassador.io/v2
kind:  Mapping
metadata:
  name:  mapping-public
spec:
  ambassador_id: ambassador-public
  prefix: /
  host: public.my-domain.com
  service: public-service
---
apiVersion: getambassador.io/v2
kind:  Mapping
metadata:
  name:  mapping-private
spec:
  ambassador_id: ambassador-private
  prefix: /
  host: private.my-domain.com
  service: private-service

This way the mapping for private.my-domain.com won't be valid for routes going through public.my-domain.com -> "Public" load balancer -> "Public" ambassador pods.
Are there other solutions available for this? maybe through some Mapping configuration feature that is available but i'm unaware of.
Thank you for your time :)

No comments? :(

New user here, but I had a similar situation, and I ended up using separate ports (using TCPMapping) to separate public and private services, so that they would each listen on their own Ambassador port. Then I attached a different LoadBalancer service to each port. At the cloud provider side, an IP-based whitelisting approach was used to assign rules directly to the load balancers, to ensure that public or private traffic was firewalled for each load balancer.
But the downside of this approach is that you're stuck with L4 load balancing, and unable to use Mappings, which unlock the full power and featureset of L7 load balancing :(

Related to https://github.com/datawire/ambassador/issues/459


Can't run project ?

I got a error when run project .
Could you please help me solve this problem ? Tks
Error:(112, 0) Could not find method implementation() for arguments [com.android.support:support-v4:26.0.0-beta2] on object of type org.gradle.api.internal.artifacts.dsl.depend

encies.DefaultDependencyHandler.
Please install the Android Support Repository from the Android SDK Manager.
Open Android SDK Manager

Are you using AS 3.0?
On Sun, Jul 23, 2017, 9:57 AM Sammy<EMAIL_ADDRESS>wrote:

I got a error when run project .
Could you please help me solve this problem ? Tks
Error:(112, 0) Could not find method implementation() for arguments
[com.android.support:support-v4:26.0.0-beta2] on object of type
org.gradle.api.internal.artifacts.dsl.depend
[image: screen shot 2017-07-23 at 2 54 46 pm]
https://user-images.githubusercontent.com/5199109/28497680-1b27b1f6-6fb7-11e7-8bfc-50ab3e009152.png
encies.DefaultDependencyHandler.
Please install the Android Support Repository from the Android SDK Manager.
Open Android SDK Manager http://openAndroidSdkManager
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/JakeWharton/u2020/issues/303, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEESqQhMbThTJAqs0xCn1zldwtbYDQks5sQvzpgaJpZM4OgYy5
.

@JakeWharton :
I'm using AS 2.3.3

Using 3.0 canary is required for now.
On Sun, Jul 23, 2017, 10:24 AM Sammy<EMAIL_ADDRESS>wrote:

@JakeWharton https://github.com/jakewharton :
I'm using AS 2.3.3
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/JakeWharton/u2020/issues/303#issuecomment-317237350,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEEEWXInsA_AIHRXBNVhN5sUcD25Xtrks5sQwNOgaJpZM4OgYy5
.

@JakeWharton 👍
Now , I'm using AS 3.0 canary
still got a error .
Error:Execution failed for task ':app:compileInternalDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

@chihung93 can you try clean build + rebuild project? also try from console using ./gradlew assembleDebug both works fine for me. I am using AS 3.0 Canary 6.

@amardeshbd : I do not know what steps I have missed?
./gradlew assembleDebug

Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.pom
Download https://dl.google.com/dl/android/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.jar

> Task :app:compileInternalDebugJavaWithJavac
/Users/hungdct/Downloads/u2020-master/app/src/internalDebug/java/com/jakewharton/u2020/ui/debug/DebugView.java:19: error: cannot find symbol
import android.widget.TextView;
              ^
  symbol:   variable L
  location: class BuildConfig
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/hungdct/Downloads/u2020-master/app/src/internalDebug/java/com/jakewharton/u2020/ui/debug/ContextualDebugActions.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileInternalDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 56s
38 actionable tasks: 34 executed, 4 up-to-date

I updated my AS to canary 7, just to make sure it's same as yours. It still works.
Looking at the error, I can't make sense out of it. What does L point to in the BuildConfig class?


improve readme by only leaving high-level overview and move more sections to the website with more details

Improve the documentation and readme website by reducing the size of the readme (and just having a general overview) and moving the sections to the website:
1.) Using interpret-community to create an explainer
2.) Local and global importance values - information about them and the APIs to compute them
3.) Raw and Engineered explanations
4.) The visualization dashboard in responsible-ai-toolbox
Note: I temporarily moved the 'latest' build in readthedocs to this branch so it would be easier to review the correctness of the changes.

Codecov Report

Merging #520 (ff7d92f) into master (8e58580) will decrease coverage by 0.24%.
The diff coverage is 100.00%.

:exclamation: Current head ff7d92f differs from pull request most recent head 146ef8c. Consider uploading reports for the commit 146ef8c to get more accurate results

@@            Coverage Diff             @@
##           master     #520      +/-   ##
==========================================
- Coverage   86.66%   86.41%   -0.25%
==========================================
  Files          62       62
  Lines        4049     3976      -73
==========================================
- Hits         3509     3436      -73
  Misses        540      540

Flag
Coverage Δ

unittests
86.41% <100.00%> (-0.25%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...hon/interpret_community/explanation/explanation.py
84.94% <100.00%> (-0.48%)
:arrow_down:

python/interpret_community/lime/lime_explainer.py
95.77% <100.00%> (-0.03%)
:arrow_down:

...erpret_community/mimic/models/explainable_model.py
81.57% <0.00%> (-3.21%)
:arrow_down:

...ython/interpret_community/common/base_explainer.py
86.95% <0.00%> (-1.05%)
:arrow_down:

...mmunity/_internal/raw_explain/data_mapper_utils.py
80.85% <0.00%> (-0.79%)
:arrow_down:

...n/interpret_community/shap/gpu_kernel_explainer.py
22.55% <0.00%> (-0.58%)
:arrow_down:

...hon/interpret_community/mimic/models/tree_model.py
90.90% <0.00%> (-0.48%)
:arrow_down:

...interpret_community/mimic/models/lightgbm_model.py
85.63% <0.00%> (-0.33%)
:arrow_down:

python/interpret_community/common/aggregate.py
90.32% <0.00%> (-0.31%)
:arrow_down:

... and 15 more

Continue to review full report at Codecov.

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


wip: tests

started working on these, but it immediately became difficult to run tests locally because I haven't been able to get docker-in-docker to work with a mounted docker directory (presumably a docker-on-mac issue). Shouldn't be a problem on true linux, though.
closes #16

(Min I'm working this actively atm)

@minrk I couldn't stay away from the mystery, it was solved by replacing /dev/zero with /dev/urandom, use of nocache=True passed to the build also didn't do the trick.

I've opened #123 as well, but it doesn't seem to me like a serious problem.

Wonderful!


Further SelectCoinsGrouppedByAddresses / mixing process improvements/fixes

Turned out that GetAnonymizableCredit is not accurate anymore because we need to know exact anonymizable credit per every address and not as a single number now. Removed it and added conditions in SelectCoinsGrouppedByAddresses to be able to handle this.
Also:

added cache to SelectCoinsGrouppedByAddresses to recalculate values only if smth changed - should save some CPU for huge wallets
allow collaterals to be created out of denoms again
fixed log messages
fixed an old bug in GetAnonymizedCredit (unconfirmed condition was calculated incorrectly).

utACK


Error while training LSTM

I've been frequently getting this error while training the net. Can someone tell me what the problem might be?
Index exceeds matrix dimensions.
Error in varObj>@(C)full(C(:,r)) (line 45)
v = cellfun(@(C) full(C(:,r)), obj.v, 'UniformOutput', false);
Error in varObj/getmb (line 45)
v = cellfun(@(C) full(C(:,r)), obj.v, 'UniformOutput', false);
Error in nnCostFunctionLSTM (line 13)
Y = varObj(nn.Y.getmb(r), nn.defs, nn.defs.TYPES.OUTPUT);
Error in testSumNumbersGenerator>@(nn,r,newRandGen)nnCostFunctionLSTM(nn,r,newRandGen)
Error in gradientDescentAdaDelta (line 69)
[J, dJdW, dJdB] = feval(f, nn, r, true);
Error in testSumNumbersGenerator (line 137)
nn = gradientDescentAdaDelta(costFunc, nn, defs, [], [], [], [], 'Training Entire Network');

I've been trying to train a network that predicts the sum of the past two numbers. However i keep running into this kind of problem. If i increase the length of the sequence the training completes, however i don't get the expected output when i try to rebuild the sequence... Am I doing something wrong? This should be a very simple sequence to train. Here is  my code
`clear;
close all force;
addpath('../../nn_gui');
addpath('../../nn_core');
addpath('../../nn_core/cuda');
addpath('../../nn_core/mmx');
addpath('../../nn_core/Optimizers');
addpath('../../nn_core/Activations');
addpath('../../nn_core/Activations');
addpath('../../nn_core/Wrappers');
addpath('../../nn_core/ConvNet');
addpath('Text');
PRECISION = 'double';
 % definitions(PRECISION, useGPU, whichThreads, plotOn)

defs = definitions(PRECISION, true, [1], true);
% % Load the Shakespeares training set
% Nchars = 50; % How many characters long for each sequence
% offset = 0; % How much to shift the labels from the input data
% txtpath = 'shakespeare_subset.txt';
% [X, vmap] = streamText2mat(txtpath, Nchars, offset);
% offset = 1;
% [Y, ~] = streamText2mat(txtpath, Nchars, offset);
seqLen = 2;
N = 100000;
offset = 0;
Xlong = 1:2;
for i=1:N
Xlong(end+1) = Xlong(end) + Xlong(end-1);
if abs(Xlong(end)) > 2
Xlong(end) = -Xlong(end);
end
%  Xlong(end+1) = Xlong(end) +1;
%  if (Xlong(end) > 10)
%      Xlong(end) =1;
%  end
end
% x123 = findstr(Xlong, [0 -1]);
% Xlong(x123(1):x123(1)+5)
% length(x123)
[X, vmap] = getSparseMatrix(Xlong, seqLen, offset);
offset = 1;
[Y, ~] = getSparseMatrix(Xlong, seqLen, offset);
% end
[BinCount] = hist(Xlong,vmap);
input_size = size(X{1},1);
output_size = input_size;
T = numel(X); % Length of all time sequences
% Both X and Y must include T=0 and T=Tf+1 'boundary conditions' filled
% with zeros for convenience
X(2:end+1) = X(:); X{1} = 0*X{1};
X(end+1) = X(1);
Y(2:end+1) = Y(:); Y{1} = 0*Y{1};
Y(end+1) = Y(1);
%%%%%%%%%%%%%%%%%%%%% Fine tuning Parameters %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
params = struct();
params.maxIter = precision(3000,defs);
params.momentum = precision(0.9,defs);
params.maxnorm = precision(0,defs);
params.lambda = precision(0,defs);
params.alphaTau = precision(0.25params.maxIter,defs); % alpha_i = alphatau/(tau+i) (see "A Stochastic Quasi-Newton Method for Online Convex Optimization", Eqn. 7)
params.denoise = precision(0,defs); % set to 0 to disable
params.dropout = precision(0.6,defs); % set to 1 to disable
params.miniBatchSize = precision(50,defs); % set to zero to disable mini-batches
params.tieWeights = false;
params.T = T;
params.Tos = 0; % This is the "offset" time before the cost starts accumulating for the LSTM output
% The idea here is that the LSTM can be fed with inputs
% for n time steps, and won't be penalized for predictions
% until t>=Tos. This helps by giving the LSTM context.
% Optimization routine parameters:
params.alpha = precision(.001,defs); % If this is non-zero, use this learning rate for the entire network
params.rho = precision(0.95, defs); % AdaDelta hyperparameter (don't generally need to modify)
params.eps = precision(1e-6, defs); % AdaDelta hyperparameter (don't generally need to modify)
params.cg.N = 10; % Max CG iterations before reset
params.cg.sigma0 = 0.01; % CG Secant step-method parameter
params.cg.jmax = 10; % Maximum CG Secant iterations
params.cg.eps = 1e-4; % Update threshold for CG
params.cg.mbIters = 10; % How many CG iterations per minibatch?
%%%%%%%%%%%%%%%%%%%%%%%%% Layer Setup %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
layers.af{1} = [];
layers.sz{1} = [input_size 1 1];
layers.typ{1} = defs.TYPES.INPUT;
layers.af{end+1} = tanh_af(defs, []);
layers.sz{end+1} = [128 1 1];
layers.typ{end+1} = defs.TYPES.LSTM;
layers.af{end+1} = softmax(defs, defs.COSTS.CROSS_ENTROPY);
layers.sz{end+1} = [output_size 1 1];
layers.typ{end+1} = defs.TYPES.FULLY_CONNECTED;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if defs.plotOn
nnShow(423, layers, defs);
end
% Process Y such that first time sequence is stripped off and replaced by
% a null at the end. This will cause LSTM to predict next character in the
% sequence. The final prediction for a sequence should be null (zero).
X = varObj(X,defs,defs.TYPES.INPUT);
Y = varObj(Y,defs,defs.TYPES.OUTPUT);
modelName = 'modelSumNumbers13.mat';
if ~exist(modelName)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TRAINING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
nn = nnLayers(params, layers, X, Y, {}, {}, defs);
nn.initWeightsBiases();
costFunc = @(nn,r,newRandGen) nnCostFunctionLSTM(nn,r,newRandGen);
nn = gradientDescentAdaDelta(costFunc, nn, defs, [], [], [], [], 'Training Entire Network');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
save(modelName, 'nn','vmap');
else
load(modelName);
end
% outputText = [];
outputSeq = [];
%% Generate some text by 'sampling' from LSTM
% T_samp_temp = 1/35; % "Temperature" of random sampling process (higher temperatures lead to more randomness)
T_samp_temp = 1;
T_samp = 5000; % Length of sequence to generate
% seedText = 'ROMEO:';
% seedText = 'Rafael Iriya';
% seedMatrix = unidrnd(3,3,6);
seqLen = 2;
seedMatrix = Xlong(1:seqLen);
outputSeq = seedMatrix;
% Initial text (to provide some context)
% vsize = numel(vmap);
vsize = size(vmap,2);
% Xs = full(ascii2onehot(seedText, vmap));
Xs = full(vec2map(seedMatrix, vmap));
% Xs = [zeros(vsize,1) Xs];
% Xtmp = zeros(vsize,1,size(seedMatrix,2)+1);
Xtmp = zeros(vsize,1,size(seedMatrix,2));
Xtmp(:,1,:) = Xs;
Xs = Xtmp;
nn.disableCuda();
nn.A{1} = varObj(Xs, nn.defs);
preallocateMemory(nn, 1, size(seedMatrix,2)+1);
% % Load up the LSTM with the context
% for t=2:size(seedMatrix,2)+1
%     feedforwardLSTM(nn, 1, t, false, true);
%     [~,cout] = max(nn.A{end}.v(:,1,t));
% %     outputText = [outputText  vmap(cout)]
%      outputSeq = [outputSeq vmap(:,cout)];
%     %fprintf('%s', vmap(cout));
% end
for t=1:size(seedMatrix,2)+100
feedforwardLSTM(nn, 1, seqLen, false, true);
[value,cout] = max(nn.A{end}.v(:,1,seqLen));
 outputSeq = [outputSeq vmap(:,cout)];

tmp = zeros(vsize,1);
tmp(cout) = 1;

for tt = 1:seqLen-1
    nn.A{1}.v(:,1,tt) = nn.A{1}.v(:,1,tt+1);
end

 nn.A{1}.v(:,1,end) = tmp;

end
% Start sampling characters by feeding output back into the input for the
% next time step
% for t=size(seedMatrix,2)+2:size(seedMatrix,2)+T_samp
%     % Generate a random sample from the softmax probability distribution
%     % First, adjust/scale the distribution by a "temperature" that controls
%     % how likely we are to pick the maximum likelihood prediction
% %     P_next_char = exp(1/T_samp_temp*nn.A{end}.v(:,1,t-1));
% %     P_next_char = P_next_char./sum(P_next_char); % normalize distribution
% %     cin = randsample(vsize,1,true,P_next_char);
%
%  [value,cin] = max(nn.A{end}.v(:,1,t-1));
%
% %     fprintf('%s', vmap(cin));
% % outputText = [outputText  vmap(cin)]
% outputSeq = [outputSeq vmap(:,cin)];
%
%     % Plot the distribution over characters
%     %{
%     figure(777);
%     plot(P_next_char);
%     set(gca, 'XTick',1:numel(P_next_char), 'XTickLabel',vmap)
%     waitforbuttonpress;
%     %}
%
%     % Feed back the output to the input
%     % Generate the input for the next time step
%     tmp = zeros(vsize,1);
%     tmp(cin) = 1;
%     nn.A{1}.v(:,1,t) = tmp;
%
%     % Step the RNN forward
%     feedforwardLSTM(nn, 1, t, false, true);
%
% end
% disp('');
`
`function [X, vmap] = getSparseMatrix(Xlong, seqLen, offset)
Xlong = Xlong(:,1+offset:end);
N = size(Xlong,2);
m = floor(N/seqLen);

Xlong = Xlong(1:m*seqLen);

dimX = size(Xlong,1);

Npad = size(Xlong,2);
vmap = unique(Xlong', 'rows')';
vocabSize = size(vmap,2);
Xmap = zeros(1,Npad);
% Map all ASCII values to the reduced set
for i=1:vocabSize
indx = find(all(bsxfun(@eq, Xlong', vmap(:,i)'), 2));
%         [~,indx]=ismember(vmap(:,i)',Xlong','rows')
Xmap(indx) = i;
end
 Xmap = reshape(Xmap,seqLen,[]);

%
%      Xmap= hankel(Xmap, 1:seqLen);
%      Xmap = Xmap';%
%      xreal = vmap(Xmap);
Xca = cell(seqLen,1);
I = speye(vocabSize);
I = speye(vocabSize);
for t=1:seqLen
    Xt = Xmap(t,:);
    Xca{t} = I(Xt(:),:)';

end

Xfull1 = full(Xca{1});
Xfull2 = full(Xca{2});

 X = Xca;
`

I realized the problem is the trained network is not taking the memory into account, if I enter [1 2] the output should be -3, but its giving me something else, and if I change it to [3 2], [-1,2] or anything else it gives me the same result, which means its only taking 2 into account and not what comes before it. How do i change the network for it to take the memory into account?


reset api id with amplify status

Minor potential feature request here. Would it be possible to show the id for a api item for the currently checked out env when amplify status is run? Or is it trying to stick with cols that work for all categories?

Hello @smakinson
Are you referring to a GraphQL API? If so you do the endpoint when running amplify status. Should you need more information regarding you can run amplify console api, this will open up your AppSync API in the AWS Console. Is there a specific use case you have where you need the API ID?

@SwaySway Sorry about that, I'm thinking of the REST api. Similar to the column shown in the list in the console. It a convenience feature idea since the REST api's have the same name for all environments.


Material remote icon is not displayed

Hi,
All of my material icons displays correctly on the app except for remote. The remote icon displays correctly on the browser but not in the app. I use the customize file for Hassio to assign all of my icons. Please let me know if you need any additional details. Thanks.

Hi.
It would be good to see a screenshots of wrong icon from app and from web. Thanks.

Here you go.

I have remote icon in glance card and it is showing up.

I have remote icon in glance card and it is showing up.

The proble is in "Remote" platform, not in icon I think.


browser error: withDirectives can only be used inside render functions.

Vue version
3.3.8
Link to minimal reproduction
https://play.vuejs.org/#__DEV__eNp9VF1vmzAU/St3fjFIhGjrW0ai0ayTNmldtVV7KX2g4CRuwbZsQztF+e+7tiEJ3dQHJLhf557jY/YkVyrtO0YWJLOsVU1p2aoQAFkO8/DybjaDrGqkYBiB2QyjPn45KeBCdRb62UZWnYG+bDq2LMgzt7vPXLPK8p6ZgkwnrCcTHjprpYBPVcOrp9RYqVKlWc+ExUFRDMsVVFIY2bC0kduIutnfZc03nGlD44KsfGc2D4MGoGx+RiszlebKgmG2U/jNWyW1hT3sEmiZ3rIbLZVJwLP9fS1rlgA3w4tmiN2zI50EpuzC93EjOMBGyxYoqksdYbe8hRyWsIuoUaWgSUHygsQfT1kn8hL3qZrSmAXQjZQ0wejaMVtAUOH9YSy3z/K8fA8PpV6A1R2Dw1nb0PcBjo2ebI29J9YRYiduYhyKRp0LcqpZQEEGpWosG6cFcyzPZIvyBPaj8MgjRxb2j3KvvogeHGu+gWiQN8rjGPbODFPs08iA7b8RGpkUYj731Wi7L951y3/OKKIhRR3cq1qP1spOWFajtKzxIrEm9RaORpDQdYkN0+OO8BS96ZGaH+U977Z8bXocFCdwdxeQ7++9cuPgdfBD8Ow4igvB9C17sW6cdzVyd4njkU6sFoXz9a2vBZwUotlcDXrjjroLhnh0uGPUrXXAJ5uHS7IiCbEGh234Nn00UuAvwiPgRrJVvGH6h7IcwQqC1gvYBSmbRj5/8zHnQ7+179mx6uk/8Ufz4mIFucGzY7pnA1OXsyUazYb01a9r1OMs2cq6a7D6jeRP54bO7RjKLjtR49pndX7br/4vwMX21ly9WCbMSMotGvQKvPEmr9+gflr3Ir3wfagoOfwFO1zJSw==
Steps to reproduce
<template>
  <A />
  <!-- <clone /> -->

  <B />
  <!-- <input v-focus value="withDirectives" /> -->

  <C />
  <!-- <button @click.stop.prevent="() => console.log('withModifiers')">click</button> -->
</template>
<script setup>
import { h, mergeProps, cloneVNode, isVNode, resolveDirective, withDirectives, withModifiers } from 'vue'

const A = h('span',"A");

const one = { class: 'foo', onClick: () => 1}
const two = { class: { bar: true }, onClick:  () => 2 }
const merged = mergeProps(one, two)
console.log("mergeProps: ", merged)

const clone = cloneVNode(A, {template: 'A', type: 'clone'});
if (isVNode(A)) {
  console.log("cloneVNode: ", clone)
}

// const vFocus = resolveDirective('vFocus');
const vFocus = {
  mounted: (el) => el.focus()
}

const B = withDirectives(h('input', {
  value: "withDirectives"
}), [[vFocus]])

const C = h('button', {
  innerText: "click",
  onClick: withModifiers(() => {
    console.log("withModifiers")
  }, ['stop', 'prevent'])
})
</script>

What is expected?
B component should get focus
What is actually happening?
B component not get focus
System Info
App.vue:26 [Vue warn]: withDirectives can only be used inside render functions. at <App>

Any additional comments?
I'm a beginner in vue3. I tried Google and issue to find the answer, but I don't seem to be the same as the problem I encountered.
https://github.com/vuejs/core/issues/3446

You are using withDirectives() in the script block, which is not allowed. That's what the error is telling you.
I can't really understand what it is you are trying to do, but it is not a bug. You seem to rather want to ask for help, so I'
ll move this to the discussions section.


Subscriber payload or contextualize request

Have you ever consider adding payload to subscribe method on the publisher? Subscriptions move upstream and it could be useful to have something that carries data and it is visible in the API.
Another option could be to add some context to the request method in the subscription.

It's something that implementations can support in a ad-hoc fashion (see https://smallrye.io/smallrye-mutiny/1.7.0/guides/context-passing/ in Mutiny) but IMHO the RS APIs should not define context passing.

Several real world scenarios require non-functional data (e.g. security context). Reactive implementations are compatible but ad-hoc implementations to provide an execution context could clash, leave some important data behind or even fail to clean up properly. In my opinion, define a payload in the subscription and the semantics for moving the data upstream could help to normalise context passing and make the implementation more transparent.

Is it mutable or immutable context? How is it supposed to travel to multiple sources? Are there lifecycle considerations of the context?
I have thought about many extension direction to RS years ago but almost always I ended up building upon RS as it is.
Therefore, I suggest you prototype your ideas and implement a few non-trivial operators (flatMap, publish) to see if it works out or not.

@akarnokd @jponge thank you for your interest!
In my opinion the context should be immutable and could be decorated by operators/processors. I like how they expose context in CoreSubscriber from reactor project.
I did some prototypes years ago to understand better how reactive specs works, but I always end up using a library. You are right @akarnokd, I will try to do a PoC with some operators and try to see how it works, especially when I move between java Flow and reactive stream interfaces.


Update pt-PT translation

Added new translations for pt-PT language.
I add an observation that the word skins in Portuguese is "pele", that is, it is human skin. Therefore, I left the word skin as a foreign word, which makes it easier for end users to understand.

I add an observation that the word skins in Portuguese is "pele", that is, it is human skin. Therefore, I left the word skin as a foreign word, which makes it easier for end users to understand.

Thanks! This is probably going to be a common issue 😂


[RESOLVED] Unavailable by ICMP ping

Problem started at 21:08:16 on 2022.09.25
Problem name: Unavailable by ICMP ping
Host: W7PINGDEMO
Severity: High
Operational data: Down (0)
Original problem ID: 3709
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23136&eventid=3709

Problem has been resolved in 17d 22h 47m 0s at 19:55:16 on 2022.10.13
Problem name: Unavailable by ICMP ping
Host: W7PINGDEMO
Severity: High
Original problem ID: 3709


card class didn't work

Hey I'am unable to to create card below is my code.

Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

other bootstrap components are works good except card.

I was able to reproduce this on Rails 5.0.1. Looks like it was recently updated in Bootstrap:
If you’re familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails. Similar functionality to those components is available as modifier classes for cards.

I would use panel instead or switch to BootStrap4
https://getbootstrap.com/docs/3.3/components/#panels

This is bootstrap 3, cards are bootstrap 4, please see the first paragraph of the readme.


[indigo] improve cross-compile behaviour

Fix from openembedded's meta-ros layer to generate pkgConfig.cmake files which can be used also on the target platform to compile packages.
When cross-compiling the pkgConfig.cmake contains absolute paths from the host platform which makes it impossible to use the pkgConfig.cmake files to compile packages in the target platform. This PR addresses this by stripping the CMAKE_FIND_ROOT_PATH prefixes from the relevant variables before they are used to generate the pkgConfig.cmake file. In a second step CMake's find_* functions are used in the pkgConfig.cmake file to handle CMAKE_FIND_ROOT_PATH correctly when locating the previously stripped variables.

Please create the pull request against the branch kinetic-devel. A significant change like this won't be merged into Indigo immediately (since it has been released over two years ago and aims for stability). It should first go into Kinetic and if it proves to not have an regressions it can be considered for backporting.

I added an new PR for kinetic here. I guess this one is going to be closed?

Yes, closing in favor of #811. If the patch gets backported that likely by cherry-picking the relevant changes.


feat: Add multi-arch support in sbom-json-check task

Refers to CVP-4048. With multi-arch builds, the sbom-json-check task is able to identify and consume an Image Index as input and check all Image Manifests in the Image Index.

Look for any open pull requests in the repository with the title "e2e-tests update" and
see if there are recent e2e-tests updates that will be applicable to your change.

@dirgim @MartinBasti @jsztuka @Josh-Everett Can I please request a review here?

/ok-to-test

Changes looks good to me, once all the checks pass, I will provide approval.

/retest


error fetching public address: no public address(es)

Hi folks,
want to deploy "kubernetes core" charm.
Juju-controller-VM has internet access via floating ip.
On jump host, I´ve done the following:
root@jump:~# juju add-model kubernetes o-s.cloud
Added 'kubernetes' model on my.cloud/RegionOne with credential 'CREDENTIAL-NAME' for user 'admin'

root@jump:~# juju model-config -m kubernetes network=ed95xxx6-8xx6-4xx0-8xx9-b1487xxx6934
root@jump:~# juju model-config -m kubernetes use-default-secgroup=true

jump:~# juju deploy kubernetes-core

Located bundle "cs:bundle/kubernetes-core-57"
Deploying charm "cs:~containers/easyrsa-12"
added resource easyrsa
Deploying charm "cs:~containers/etcd-40"
added resource etcd
added resource snapshot
Deploying charm "cs:~containers/flannel-20"
added resource flannel
Deploying charm "cs:~containers/kubernetes-master-35"
added resource kube-controller-manager
added resource kube-scheduler
added resource kubectl
added resource cdk-addons
added resource kube-apiserver
application kubernetes-master exposed
Deploying charm "cs:~containers/kubernetes-worker-40"
added resource kube-proxy
added resource kubectl
added resource kubelet
added resource cni
application kubernetes-worker exposed
Related "kubernetes-master:kube-api-endpoint" and "kubernetes-worker:kube-api-endpoint"
Related "kubernetes-master:kube-control" and "kubernetes-worker:kube-control"
Related "kubernetes-master:certificates" and "easyrsa:client"
Related "kubernetes-master:etcd" and "etcd:db"
Related "kubernetes-worker:certificates" and "easyrsa:client"
Related "etcd:certificates" and "easyrsa:client"
Related "flannel:etcd" and "etcd:db"
Related "flannel:cni" and "kubernetes-master:cni"
Related "flannel:cni" and "kubernetes-worker:cni"
Deploy of bundle completed.

juju status:
Model       Controller                 Cloud/Region         Version
kubernetes  CREDENTIAL-NAME/RegionOne  my.cloud/RegionOne  <IP_ADDRESS>

App                Version  Status   Scale  Charm              Store       Rev  OS      Notes
easyrsa                     waiting    0/1  easyrsa            jujucharms   12  ubuntu
etcd                        waiting    0/1  etcd               jujucharms   40  ubuntu
flannel                     waiting      0  flannel            jujucharms   20  ubuntu
kubernetes-master           waiting    0/1  kubernetes-master  jujucharms   35  ubuntu  exposed
kubernetes-worker           waiting    0/1  kubernetes-worker  jujucharms   40  ubuntu  exposed

Unit                 Workload  Agent       Machine  Public address  Ports  Message
easyrsa/0            waiting   allocating  0/lxd/0                         waiting for machine
etcd/0               waiting   allocating  0        192.168.x.xxx          waiting for machine
kubernetes-master/0  waiting   allocating  0        192.168.x.xxx          waiting for machine
kubernetes-worker/0  waiting   allocating  1        139.x.xxx.xxx          waiting for machine

Machine  State    DNS            Inst id                               Series  AZ
0        pending  192.168.x.xxx  bexxxx66-1xxf-4xx1-bxxb-5bxxxx09d19a  xenial  Room-015
0/lxd/0  pending                 pending                               xenial
1        pending  139.x.xxx.xxx  7dxxxx43-0xxe-4xxe-axxd-249xxxxfc505  xenial  Room-015

Relation      Provides           Consumes           Type
certificates  easyrsa            etcd               regular
certificates  easyrsa            kubernetes-master  regular
certificates  easyrsa            kubernetes-worker  regular
cluster       etcd               etcd               peer
etcd          etcd               flannel            regular
etcd          etcd               kubernetes-master  regular
cni           flannel            kubernetes-master  regular
cni           flannel            kubernetes-worker  regular
cni           kubernetes-master  flannel            subordinate
kube-control  kubernetes-master  kubernetes-worker  regular
cni           kubernetes-worker  flannel            subordinate

On juju-controller node, /var/log/juju/machine-0.log shows constantly:
2017-08-04 11:56:26 DEBUG juju.apiserver.client status.go:196 Applications: map[etcd:etcd flannel:flannel kubernetes-master:kubernetes-master kubernetes-worker:kubernetes-worker easyrsa:easyrsa]
2017-08-04 11:56:26 DEBUG juju.apiserver.client status.go:197 Remote applications: map[]
2017-08-04 11:56:26 DEBUG juju.apiserver.client status.go:803 error fetching public address: no public address(es)

How I can fix this issue ?
Regards

@nephilim1973 thanks for bringing this to us. Would you mind running our field agent script so that we can get some more context on what you're seeing?

Hi wwwtyro,
i will do this, for sure.
Meanwhile, the Juju deploy status for 'kubernetes-worker/0" changed to
Status: error - hook failed: "install"
Agent Status: executing
Workload Status: error
Public addresses:
<IP_ADDRESS>
IP addresses:
<IP_ADDRESS>

The python command hangs:
# ./collect.py
Getting juju status...
Executing debug action on kubernetes-master/0...

@nephilim1973 Sorry about that, I'll fix it.
In the meantime, can you give us the output of juju debug-log --replay? Feel free to pipe it into pastebinit to get an easy link to share.

juju debug-log --replay gives no output.  :-(  Command hangs. I have to mention, that I retried the deployment and it´s still running (with the same 'public ip' error.)

machine-0.log.txt
Attached.

Thanks @nephilim1973 Can you also provide juju status --format yaml?


How do not draw SimpleListDividerDecorator when item is above a Section?

I'm using the ExpandableItemViewHolder example where I've got sections and then items underneath. I'm using 'SimpleListDividerDecorator' which works well, but I'd like it to not draw a separator when the next item below is an ExpandableItemViewHolder (i.e. a Group item). How can I do this?

Hi. Adding a some android:marginTop to group items will work (this technique is use in the demo app).
If you need more flexible control of drawing dividers, make your own ItemDecoration.
Thanks.

Thanks, ended up making my own


Fix for C++ not running on Linux

I have noticed a lot of issues around using script to compile and run C++ files. I have written a fix for the problem on Linux using the GNU C++ compiler (g++) and having tested this on my Linux Mint systems, it seems to work.
There is an issue running C++ files on Windows as well, and I'm guessing a similar fix would solve that, but I can't test it on Windows at the moment.

Looks good! :+1:

@Danesprite thanks for the PR, @Danesprite. it will be in next release


Copy required types from @types/amqplib

In order to not force users of the arnavmq package to also install the entire @types/amqplib for their project to compile.

@ramhr as discussed please use amqplb types as dependency instead of copying the types to the repo

See https://github.com/bringg/node-arnavmq/pull/72


Add Docker image

Create config to run this as a Docker image. Bonus point for releasing it to DockerHub.

Closed by #8


adapted loading of trees, removed obsolete special handling for isolates

This PR requires the corresponding changes in the data repository, concerning the Glottolog trees.
Since the global tree from Glottolog does now contain isolates, the special treatment of these in dplace_app is no longer necessary.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@c0fced1). Click here to learn what that means.
The diff coverage is 93.93%.

@@            Coverage Diff            @@
##             master     #449   +/-   ##
=========================================
  Coverage          ?   93.92%
=========================================
  Files             ?       24
  Lines             ?     1565
  Branches          ?        0
=========================================
  Hits              ?     1470
  Misses            ?       95
  Partials          ?        0

Impacted Files
Coverage Δ

dplace_app/tests/test_api.py
100% <100%> (ø)

dplace_app/loader/tree.py
92.39% <100%> (ø)

dplace_app/load.py
96.85% <100%> (ø)

dplace_app/api_views.py
93.97% <33.33%> (ø)

Continue to review full report at Codecov.

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


Fix kube-controller-manager template error when networking.podSubnet is set in values

This patch fixes template rendering error when networking.podSubnet is set.
$ helm template foo ./deploy/helm/kubernetes --set-string=networking.podSubnet=<IP_ADDRESS>/12
Error: YAML parse error on kubernetes/templates/controller-manager-deployment.yaml: error converting YAML to JSON: yaml: line 50: could not find expected ':'

Use --debug flag to render out invalid YAML

Thank you, merged in v0.13.3


Add array functions: any_match(x, boolean lambda) and all_match(x, boolean lambda)

cc: @wagnermarkd
Consider the following table
presto:u_xinlin> describe order_dates;
      Column      |    Type     | Extra | Comment
------------------+-------------+-------+---------
 productid        | integer     |       |
 order_date_array | array(date) |       |
(2 rows)

The any_match function will simplify a query
select * from order_dates where contains(transform(order_date_array, x -> x = date('2019-06-24')), true);

to
select * from order_dates where any_match(order_date_array, x -> x = date('2019-06-24'));

The all_match function will simplify
select * from order_dates where !contains(transform(order_date_array, x -> x > date('2019-06-24')), false);

to
select * from order_dates where all_match(order_date_array, x -> x > date('2019-06-24'));

An additional benefit is that this approach opens the possibility to short-circuit, whereas contains(transform(arrary, lambda)) will transform the whole array.
Does anyone have comments?

This sounds like a good addition!

@martint Thanks for the comment. I'll start the work.

Should we have a none_match variant as well? Or does NOT any_match(...) suffice?

@electrum I think none_match sounds good.

Done in https://github.com/prestosql/presto/pull/1045


HTTP 504 Unsatisfiable Request (only-if-cached)

only-if-cache  cannot work
this my code in Interceptor
public class NetCacheInterceptor implements Interceptor {

    public static final int DEFAULT_MAX_AGE = 60;

    public static final int DEFAULT_MAX_STALE = 60 * 60 * 24 * 7;

    @Override
    public Response intercept(Chain chain) throws IOException {

        Request request = chain.request();
        if(!NetworkUtils.isConnected()){
            request = request.newBuilder()
                    .cacheControl(CacheControl.FORCE_CACHE)
                    .build();
        }

        Response originalResponse = chain.proceed(request);
        Response responseLatest = null;
        if (NetworkUtils.isConnected()) {

            String iCacheControl = request.cacheControl().toString();
            if(!TextUtils.isEmpty(iCacheControl)) {

                responseLatest = originalResponse.newBuilder()
                        .removeHeader("Pragma")
                        .header("Cache-Control", iCacheControl)
                        .build();
            } else {

                responseLatest = originalResponse.newBuilder()
                        .removeHeader("Pragma")
                        .header("Cache-Control", "public, max-age=" + DEFAULT_MAX_STALE)
                        .build();
            }
        } else {

            responseLatest= originalResponse.newBuilder()
                    .removeHeader("Pragma")
                    .header("Cache-Control", "public, only-if-cached, max-stale=" + DEFAULT_MAX_STALE)
                    .build();
        }
        return responseLatest;
    }
}

Can you explain the problem more? Any chance of fully reproducible example? e.g. testing against https://httpbin.org/cache/60

I have configed cahce interceptor in okhttp, then I requested network, app external cache have two file are 173229b56c7a5dde78e0e281b34022c0.0 and 173229b56c7a5dde78e0e281b34022c0.1
173229b56c7a5dde78e0e281b34022c0.0 is request headers info:
http://xxxxxx.....   ####this is network url
GET
0
HTTP/1.1 200
10
Server: nginx
Date: Fri, 29 Dec 2017 14:30:45 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Headers: origin, content-type, accept, x-requested-with, sid, mycustom, smuser
OkHttp-Sent-Millis:<PHONE_NUMBER>886
OkHttp-Received-Millis:<PHONE_NUMBER>945
173229b56c7a5dde78e0e281b34022c0.0 is response info
{
"data": {
"list": [
{
"linkUrl": "",
"id": "18967C250EF2E35747EDFA14D98170E7",
"type": 4,
"url": xxx"
}
]
},
"event": "0000",
"message": "xxx",
"time": "2017-12-29 22:30:45"
}
Now, I turned off wifi and 4G, then request network will throw exception that is HTTP 504 Unsatisfiable Request (only-if-cached)

Can you make a reproducible & executable test case showing the problem.  My own testing shows caching working here.
I wonder whether the problem is an interceptor that is changing the responses (cache headers) and caching settings of the request. IIUC changing the cache headers in the response would need to be done in a network interceptor, but changing the response would need to be done in an (application) interceptor.  But it isn't clear or reproducible from the current sample code you have provided.

My English level limit to describe this problem, Im sorry!  I remove interceptor and replace net URL to https://httpbin.org/cache/60 will throw new exception that is No address associated with hostname, I cant resolve it and find similar problem in stack overflow : https://stackoverflow.com/questions/38114686/got-this-error-with-retrofit2-okhttp3-unable-to-resolve-host-host-name-n

I'm not asking for a description, I'm asking for runnable code so I don't have to make assumptions about what you are actually running.  Please consider asking this on stackoverflow, and reopen this issue if you can reproduce with example code.  But as is, it isn't possible to help you or clear it's a bug.
n.b. the stackoverflow question you posted shows what I mentioned earlier
        .addInterceptor(provideOfflineCacheInterceptor())
        .addNetworkInterceptor(provideCacheInterceptor())

I would suggest making that change to your code.


Wrong STORAGE_PROPERTY_ID enumeration values

The enum values for STORAGE_PROPERTY_ID defined in winioctl.h are incorrectly enumerated as described in Microsoft documentation
The enum values for some of the items are fixed and it re-defines the subsequent values:
StorageDeviceIoCapabilityProperty = 48,
StorageDeviceSelfEncryptionProperty = 64,
As in Vanara these fixed values are not set, the next values in the enumeration are wrongly set provoking and undefined behavior while querying the system with DeviceIoControl.
For example, the STORAGE_PROPERTY_ID.StorageDeviceManagementStatus should have the value 56, but in Vanara it has the value 21.
Vanara.PInvoke.Kernel32.WinIOCtl.Enums.cs should be modified with the STORAGE_PROPERTY_ID fixed values.
I'm also implementing the STORAGE_DEVICE_MANAGEMENT_STATUS structure from winioctl.h, it's missing in Vanara, please let me know if you want me to share the code.

Please share your structure and I'll add it when I apply the fixes to the enum.

Please find attached my implementation of STORAGE_DEVICE_MANAGEMENT_STATUS;
For these are structures I couldn't find documentation in winioctl.h documentation in the web, they were directly ported from C++ winioctl.h 10.0.22000 build 0032
I can give you some simple code to test the struct using Vanara with a call to DeviceIOControl, they give you the Health Operational and Disk details of a disk.
STORAGE_DEVICE_MANAGEMENT_STATUS.zip

I've incorporated your structures with some minor changes and would appreciate your unit test to validate my changes.

UnitTest_WinIOCtl.zip
Please find attached the unit test, for all volumes in the system queries the device for some properties:

BusType
Health and Operational Status

I'm working right now in querying the drive for its form factor with STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR and STORAGE_PHYSICAL_DEVICE_DATA, but finding some problems, let you know if I get it right.

Thanks for the unit test. It helped me uncover a big bug. I'm working through a solution now.

Whew. I had to create custom marshalers for a couple of structures, but it is all done now.
Just for your reference, there is an easier way to write the code you gave me:
using SafeHFILE hdisk = CreateFile(vol.TrimEnd('\\'), 0, FileShare.ReadWrite, null, FileMode.Open, 0);
Win32Error.ThrowLastErrorIfInvalid(hdisk);

STORAGE_PROPERTY_QUERY query = new(STORAGE_PROPERTY_ID.StorageDeviceProperty);
Win32Error.ThrowLastErrorIfFalse(DeviceIoControl(hdisk, IOControlCode.IOCTL_STORAGE_QUERY_PROPERTY, query, out STORAGE_DESCRIPTOR_HEADER sdh));
Win32Error.ThrowLastErrorIfFalse(DeviceIoControl(hdisk, IOControlCode.IOCTL_STORAGE_QUERY_PROPERTY, query, out STORAGE_DEVICE_DESCRIPTOR_MGD sdd, sdh.Size));

query.PropertyId = STORAGE_PROPERTY_ID.StorageDeviceManagementStatus;
Win32Error.ThrowLastErrorIfFalse(DeviceIoControl(hdisk, IOControlCode.IOCTL_STORAGE_QUERY_PROPERTY, query, out STORAGE_DEVICE_MANAGEMENT_STATUS outVar));


Add default PATH to 'scratch' images

Closes #19012
Signed-off-by: Doug Davis<EMAIL_ADDRESS>

ping @tianon

Nice, thanks!  LGTM :+1:

LGTM. It needs to be rebased though.

rebased

NOOOOOOOOO!!!!!!!!!! :cry: :sob: :sob:

rebased - one more try...  :-)

Looks good, merging!! :tada: :space_invader:


Add CTK pragma macros and fix "PythonQtInstanceWrapper.h" -Wold-style-cast warnings

The macros were adapted from ITK and allow to avoid warnings like the following:
/path/to/Slicer-build/CTK-build/CMakeExternals/Install/include/PythonQt/PythonQtInstanceWrapper.h: In member function ‘PythonQtClassInfo* PythonQtInstanceWrapperStruct::classInfo()’:
/path/to/Slicer-build/python-install/include/python2.7/object.h:115:49: warning: use of old-style cast [-Wold-style-cast]
 #define Py_TYPE(ob)             (((PyObject*)(ob))->ob_type)
                                                 ^
/path/to/Slicer-build/CTK-build/CMakeExternals/Install/include/PythonQt/PythonQtInstanceWrapper.h:68:37: note: in expansion of macro ‘Py_TYPE’
   {  return ((PythonQtClassWrapper*)Py_TYPE(this))->_classInfo; }
                                     ^

Since the can be of general use in the remaining of CTK (and also user code) I added them to ctkMacro.h.

We could also introduce a header named "ctkPythonQt.h" that would systematically be included (instead of PythonQt.h), this header would then be used everywhere in CTK/Slicer/...

or we could work in fixing PythonQt ...

for reference, here is the email sent to the pythonqt discussion forum (not yet visible):

Hi Florian,
Would you accept a patch like the following to systematically ignore old-style cast warnings ?
That would be very helpful and avoid user code to maintain their own guard headers.

diff --git a/src/PythonQtPythonInclude.h b/src/PythonQtPythonInclude.h
index 00f0b07..bd20c76 100644
--- a/src/PythonQtPythonInclude.h
+++ b/src/PythonQtPythonInclude.h
@@ -44,6 +44,15 @@
 #define PYTHONQT_RESTORE_KEYWORDS
 #endif

+// Ignore "old-style-cast" warnings  associated with use of macro like Py_TYPE
+// provided by pythonX.Y/object.h
+#if defined( __GNUC__ )
+#if ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ == 9 ) || ( __GNUC__ >= 7 )
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wold-style-cast"
+#endif
+#endif
+
 // If PYTHONQT_USE_RELEASE_PYTHON_FALLBACK is enabled, try to link
 // release Python DLL if it is available by undefining _DEBUG while
 // including Python.h
@@ -59,6 +68,12 @@
 #include <Python.h>
 #endif

+#if defined( __GNUC__ )
+#if ( __GNUC__ == 4 ) && ( __GNUC_MINOR__ == 9 ) || ( __GNUC__ >= 7 )
+#pragma GCC diagnostic pop
+#endif
+#endif
+

Example of warnings:
/path/to/Slicer-build/CTK-build/CMakeExternals/Install/include/PythonQt/PythonQtInstanceWrapper.h: In member function ‘PythonQtClassInfo* PythonQtInstanceWrapperStruct::classInfo()’:
/path/to/Slicer-build/python-install/include/python2.7/object.h:115:49: warning: use of old-style cast [-Wold-style-cast]
 #define Py_TYPE(ob)             (((PyObject*)(ob))->ob_type)
                                                 ^
/path/to/Slicer-build/CTK-build/CMakeExternals/Install/include/PythonQt/PythonQtInstanceWrapper.h:68:37: note: in expansion of macro ‘Py_TYPE’
   {  return ((PythonQtClassWrapper*)Py_TYPE(this))->_classInfo; }
                                     ^
/path/to/Slicer-build/python-install/include/python2.7/object.h:115:60: warning: use of old-style cast [-Wold-style-cast]
 #define Py_TYPE(ob)             (((PyObject*)(ob))->ob_type)
                                                            ^
/path/to/Slicer-build/CTK-build/CMakeExternals/Install/include/PythonQt/PythonQtInstanceWrapper.h:68:37: note: in expansion of macro ‘Py_TYPE’
   {  return ((PythonQtClassWrapper*)Py_TYPE(this))->_classInfo; }
                                     ^
/path/to/Slicer-build/CTK-build/CMakeExternals/Install/include/PythonQt/PythonQtInstanceWrapper.h: In member function ‘PythonQtDynamicClassInfo* PythonQtInstanceWrapperStruct::dynamicClassInfo()’:
/path/to/Slicer-build/python-install/include/python2.7/object.h:115:49: warning: use of old-style cast [-Wold-style-cast]
 #define Py_TYPE(ob)             (((PyObject*)(ob))->ob_type)
                                                 ^

It turns out that (1) the patch was incorrect and (2) updating PythonQtPythonInclude.h by pushing/poping context is not working.
Instead the following should be done:
diff --git a/src/PythonQt.h b/src/PythonQt.h
index fd2e28e..643d984 100644
--- a/src/PythonQt.h
+++ b/src/PythonQt.h
@@ -42,6 +42,15 @@
 */
 //----------------------------------------------------------------------------------

+// Ignore "old-style-cast" warnings  associated with use of macro like Py_TYPE
+// provided by pythonX.Y/object.h
+#if defined( __GNUC__ )
+#if ( __GNUC__ > 4 ) || (( __GNUC__ >= 4 ) && ( __GNUC_MINOR__ >= 6 ))
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wold-style-cast"
+#endif
+#endif
+
 #include "PythonQtPythonInclude.h"
 #include "PythonQtUtils.h"
 #include "PythonQtSystem.h"
@@ -51,6 +60,13 @@
 #include "PythonQtObjectPtr.h"
 #include "PythonQtStdIn.h"
 #include "PythonQtThreadSupport.h"
+
+#if defined( __GNUC__ )
+#if ( __GNUC__ > 4 ) || (( __GNUC__ >= 4 ) && ( __GNUC_MINOR__ >= 6 ))
+#pragma GCC diagnostic pop
+#endif
+#endif
+
 #include <QObject>
 #include <QVariant>
 #include <QList>


IR syncer test stability

Track on : DSO-16962

The PR https://github.com/IntelRealSense/librealsense/pull/9155 is still pending - either close or combine with this one


Ability to disable auth and/or delegate to reverse proxy

Is your feature request related to a problem? Please describe.
I have my instance of Speedtest Tracker running behind SSO. At the moment this means I need to authenticate twice to log into the application.
Describe the solution you'd like
Keep the current user management system, but create an option to disable the user management system within the application and 'handoff' this responsibility to a reverse proxy, load balancer, etc. using the REMOTE_USER header or similar.

At this time I don't have a plan for disabling auth as it's tied to a lot of functions but will keep it in mind.

If Auth can't be disabled is it possible to accept the credentials in a Basic Auth header?
That way after the reverse proxy has handled authentication it can inject the speedtest tracker credentials into the header and prevent two logins being required.

@alexjustesen
+1 to @blefevre question. Even basic authentication or another way to pass the authentication via headers would be really helpful.

+1 to @blefevre question as well. Since Auth is tied to several functions, lets keep the system in place but would be great to add some kind of env variable and that the reverse proxy gives information through headers...


CosmicEditPlugin can break mouse capture

When using CosmicEditPlugin alongside systems which attempt to lock the cursor, the cursor flickers when moved around, instead of staying hidden and locked.

There is an option to disable cursor handling fully and handle by yourself: https://github.com/StaffEngineer/bevy_cosmic_edit/blob/28e00c94476d79bf7a97382792cf07f579188592/src/lib.rs#L58

Ah yes this was it, my. bad. Thanks for the help!


[Question]. What's the roadmap for Container linux?

Now that CoreOS is being sunsetted, what will be the roadmap moving forward?
I am speaking in terms of Digitalocean.
Thanks.

You should be able to use Flatcar Linux as a drop-in replacement
os_version = "2303.3.1"
os_channel = "flatcar-stable"

This is available in digitalocean?  If yes that's awesome!

Officially, Typhoon does not yet offer Kubernetes with Flatcar Linux or Fedora CoreOS on DigitalOcean.
It is possible to create Typhoon clusters on DigitalOcean using either if you know the right manual steps to perform. I haven't added guides and materials for doing so since its still pretty rough and not ready for mainstream use.
That said, I plan to add them when the time is right and before the CoreOS Container Linux deprecation. Stay tuned to project announcements and the changelog.


Fix not using the users configured shell for sync

Signed-off-by: Sebastian Malton<EMAIL_ADDRESS>fixes https://github.com/lensapp/lens/issues/5976

@jim-docker That is expected behaviour. Node shells are on different machines so the paths are not guaranteed to be the same.


Search filter

[x] Only show rooms with people in them (black or grey, or just black?). This is useful for staff to find rooms to visit.

I think it would be more useful to include only rooms with visible members. Or separate into two tiers.


Diagram export

Add exporting feature. Allow user to export the diagram as an image and as an importable diagram file.

[x] export as image
[ ] export as (GraphML) file

RenderRepaintBoundary boundary = globalKey.currentContext.findRenderObject();     ui.Image image = await boundary.toImage(); works just for flutter mobile thus image export doesn't work for flutter web.

RenderRepaintBoundary boundary = globalKey.currentContext.findRenderObject();     ui.Image image = await boundary.toImage(); works just for flutter mobile thus image export doesn't work for flutter web.


incorrect spawn rates for numbers 2 and 4

Number 2 should be spawning 90% of the time while number 4 is 10%. However, they are equally likely to spawn at the moment.

Correct spawn rates are set.


chore: cache allbridge HTTP responses to avoid rate limits

It looks like we primarily want a TTL cache which seems like this might not satisfy: https://github.com/isaacs/node-lru-cache?tab=readme-ov-file#storage-bounds-safety

If you truly wish to use a cache that is bound only by TTL expiration, consider using a Map object, and calling setTimeout to delete entries when they expire. It will perform much better than an LRU cache.

I don't think we care about the storage bounds much since we're caching one item and there's little need to proactively evict it when the TTL expires.


Should “es6” be "es2016"?

File: docs/intro/languages/javascript.md
Wondering if target: “es6” be target: "es2016"?
I have target: "es2016" in my tsconfig.json file and Pulumi seems to work just fine. Should I switch to "es6" or do the docs need an update?

Yep. The templates have been updated to use es2016 so the docs should be updated to match as well. PRs welcome!

Turns out that someone has raised a PR for "es6" -> "es2016"
https://github.com/pulumi/docs/pull/3024
It's from April and looks like it needs a little shepherding.