Outputs of the Direct Grammar in the README are misleading

Executing the Direct Grammar on a worksheet
import parseback.compat.cats._
import cats.Eval

implicit val W = Whitespace("""\s+"""r)

lazy val expr: Parser[Int] = (
  expr ~ "+" ~ term ^^ { (_, e, _, t) => e + t }
    | expr ~ "-" ~ term ^^ { (_, e, _, t) => e - t }
    | term
  )

lazy val term: Parser[Int] = (
  term ~ "*" ~ factor ^^ { (_, e, _, f) => e * f }
    | term ~ "/" ~ factor ^^ { (_, e, _, f) => e / f }
    | factor
  )

lazy val factor: Parser[Int] = (
  "(" ~> expr <~ ")"
    | "-" ~ expr  ^^ { (_, _, e) => -e }
    | """\d+""".r ^^ { (_, str) => str.toInt }
  )

among others, one input of the README
expr(LineStream[Eval]("1 + 2")).value

does not parse and generates
res0: parseback.util.EitherSyntax.\/[List[parseback.ParseError],parseback.util.Catenable[Int]] = Left(List(UnexpectedCharacter(Line(1 + 2,0,0),Set(\s+))))

instead. The expression producing the expected output requires whitespaces at the beginning and the end.
expr(LineStream[Eval](" 1 + 2 ")).value
res1: parseback.util.EitherSyntax.\/[List[parseback.ParseError],parseback.util.Catenable[Int]] = Right(Single(3))

(I suspect this may be due to
Note that parseback's whitespace handling is currently extremely naive. The only whitespace regular expressions which will behave appropriately are of the form .+, where . is "any single character class". Thus, \s+ is valid, as is [ \t]+, but //[^\n]*|\s+ is not. We hope to lift this restriction soon, but it requires some work on the algorithm.
isn't it?)

Interesting! Definitely a bug. It's been a while, but I thought that whitespace handling was optional by definition. I'll look into it.

Why not simply replacing
implicit val W = Whitespace("""\s+"""r)

with
implicit val W = Whitespace("""\s*"""r)

? (...+... => ...*...)


Feature: color buttons

Added support for colored buttons using the color classes.

As said in the review, can't we have a color property which takes as argument primary, secondary, ...? This avoid creating a lot of variables and keep things simple.


[] build failure

Operating system
Windows 10 Home
Compiler
No response
Steps to reproduce the behavior
vcpkg install opencv:x64-windows-static

Failure logs
Computing installation plan...
The following packages will be built and installed:
opencv[core,default-features]:x64-windows-static -> 4.7.0#1

opencv4[core,default-features,dnn,jpeg,png,quirc,tiff,webp]:x64-windows-static -> 4.7.0#3
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows-static...
Restored 0 package(s) from C:\Users\josel\AppData\Local\vcpkg\archives in 192 us. Use --debug to see more details.
Installing 1/2 opencv4:x64-windows-static...
Building opencv4[core,default-features,dnn,jpeg,png,quirc,tiff,webp]:x64-windows-static...
-- Using cached opencv-opencv-4.7.0-1.tar.gz.
-- Cleaning sources at C:/Users/josel/Documents/Vcpkg/vcpkg-master/buildtrees/opencv4/src/4.7.0-34a2240496.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/josel/Documents/Vcpkg/vcpkg-master/downloads/opencv-opencv-4.7.0-1.tar.gz
-- Applying patch 0001-disable-downloading.patch
-- Applying patch 0002-install-options.patch
-- Applying patch 0003-force-package-requirements.patch
-- Applying patch 0004-fix-eigen.patch
-- Applying patch 0005-fix-policy-CMP0057.patch
-- Applying patch 0006-fix-uwp.patch
-- Applying patch 0008-devendor-quirc.patch
-- Applying patch 0009-fix-protobuf.patch
-- Applying patch 0010-fix-uwp-tiff-imgcodecs.patch
-- Applying patch 0011-remove-python2.patch
-- Applying patch 0012-fix-zlib.patch
-- Applying patch 0015-fix-freetype.patch
-- Using source at C:/Users/josel/Documents/Vcpkg/vcpkg-master/buildtrees/opencv4/src/4.7.0-34a2240496.clean
-- Using cached opencv-cache/tiny_dnn/adb1c512e09ca2c7a6faef36f9c53e59-v1.0.0a3.tar.gz.
-- Found external ninja('1.11.0').
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Release --target install -- -v -j25
Working Directory: C:/Users/josel/Documents/Vcpkg/vcpkg-master/buildtrees/opencv4/x64-windows-static-rel
See logs for more information:
C:\Users\josel\Documents\Vcpkg\vcpkg-master\buildtrees\opencv4\install-x64-windows-static-rel-out.log

Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
ports/opencv4/portfile.cmake:450 (vcpkg_cmake_install)
scripts/ports.cmake:147 (include)
error: building opencv4:x64-windows-static failed with: BUILD_FAILED
Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+opencv4
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[opencv4]+Build+error&body=Copy+issue+body+from+C%3A%2FUsers%2Fjosel%2FDocuments%2FVcpkg%2Fvcpkg-master%2Finstalled%2Fvcpkg%2Fissue_body.md
Additional context
i also tried "vcpkg install opencv:x64-windows-static --x-use-aria2" but it didnt work.

I'm not able to repro this issue. Please provide the failure log: C:\Users\josel\Documents\Vcpkg\vcpkg-master\buildtrees\opencv4\install-x64-windows-static-rel-out.log.

I'm not able to repro this issue. Please provide the failure log: C:\Users\josel\Documents\Vcpkg\vcpkg-master\buildtrees\opencv4\install-x64-windows-static-rel-out.log.

install-x64-windows-static-rel-out.log
Thanks for your help.

lib\opencv_flann4.lib : fatal error LNK1180: insufficient disk space to complete link

lib\opencv_flann4.lib : fatal error LNK1180: insufficient disk space to complete link

oh, that took the error away, thanks. I try it later if it works within vscode as a library.


Consolidate test support/setup

Add a test support package which allows shared test functionality
for both the unit and integration tests.
Tests importing the proctl/test package will gain access to a special
test entrypoint which precompiles fixtures and makes them available
to tests.

This is part of #115. Once the basic pattern is in place, we can think about also sharing scenario data (e.g. the location scenarios for the next-tests).

Merged, thanks!


resize logo to 40px

Hello! :)
See issue:
https://issues.redhat.com/browse/AAH-552
I wasn't able to get a screenshot because I am not running in insights mode, but I think this fixes the issue. Just let me know if not.

It seems this needs more CSS magic.
You can try it out in standalone as well under Namespaces -> click View Collections. You can add an image on that page. Click the kebab next to Upload Collections button. Click Edit namespace. Add Url to any image to Logo URL.

I need a bit more clarification on setting the size :) Should the image height + width be set to 50px? My only concern is that setting fixed height/width might affect the aspect ratio of the logo in wonky ways

The problem is in header.scss .. .image has padding-right: 16px but padding gets counted as part of width and height .. so either Logo has to add 16 to the width, or it can't use .image

GIve this another try... I added 16 px to the size attribute on logo in the base-header.tsx. I completely understand if this is still the wrong approach, just let me know

It's probably the wrong approach... if we pass actual numerical pixel size to Logo, it should mean the exact max-dimension size of the logo.
That said, given this css difficulty, I'm not sure it makes sense for Logo to have a size prop in the first place.
We may prefer to achieve the same result by doing the sizing entirely in css.
On the other hand, we can as well drop the padding and make sure the top logo (or any other logos) stays working as it should,
or we can switch from <img to background-image with background-size: contain and the padding becomes irrelevant.

@ShaiahWren @himdel We should bring this up with Susan tomorrow and ask her to show us how it should looklike. She said it's same as Catalog but I have no data there...

Take a look... the logo on CollectionCard, CollectionListItem, NamespaceCard, and BaseHeader are all now 40px (height) and the minimum-width has been removed using unlockWidth={true}. The logos are now... very big, but they ARE now 40px in height, which was initially requested.

@sbuenafe-rh Which one is better? Limiting width or not?

@ZitaNemeckova yep, the list view looks good when we limit the width.


[BUG] VFO B display broken when leaving spectrum analyzer, above 1 GHz

Description
When frequency is above 1 GHz, on VFO B, returning from Spectrum Analyzer, the VFO display breaks. Displays some previous 3-digit frequency, band marker missing.
Otherwise all ok. Reception above 1 GHz works fine.
To Reproduce
Steps to reproduce the behavior:

VFO mode on VFO B
Type 999999, Press Up key to get a frequency above 1000 MHz, type in a higher frequency say 1296200
Press  F  5  to enter Spectrum Analyzer
Press  Exit  OR  Press  PTT  to leave Spectrum Analyzer
VFO B display says 435.040  or something
Radio is really on that frequency, it transmits normally there, etc.
Band display is missing.
Typing of frequency is broken. Digits do not appear but they are accepted, after 6 digits the new frequency appears and then everything seems to work normally.

Expected behavior
The radio should exit Spectrum Analyzer normally on VFO B, above 1 GHz, just as it does on A, and on both below 1 GHz.
Details:

Firmware version:  NUNU v.20.5
Bandwidth: 25 kHz (doesn't matter)
Power:  H (doesn't matter)

Additional context
Spectrum Analyzer works normally above 1 GHz.
It seems to be on VFO B only. A behaves fine.
VFO B works OK in band F7 at 995.000 MHz, it's only in F7+ that it breaks.
Seems to occur both when exiting via ExitAndCopyToVfo()  and just  DeInitSpectrum()
Photos

Confirmed.


Update Understanding Cloudflare HTTP2 and HTTP3 Support.md

Cloudflare employee here, responsible for the HTTP/2 and HTTP/3 protocols.
This change does a few things all in one:

Some fixups to ensure consistency of H2 and H3 where required
Some changes to highlight differences.
Changes to HTTP/2 details to make them more accurate
Changes to HTTP/3 details to make them more accurate.
Significant changs to Server Push text, since its proven hard to deploy in practice, isn't supported for HTTP/3 and Early Hints is now a better alternative that is supported by Cloudflare.

cheers!


Add mass name change submission

The Friends Exporter RuneLite plugin exports your friends list with the format:
current_name1,previous_name1
current_name2,previous_name2

There should be an option on the app to submit this csv, to mass submit name changes

@dekvall has written a very handy RL plugin to automatically request name changes to all your clan chat members / friends.
This however requires some bulk submission endpoint (/names/submit-bulk)

@dekvall has written a very handy RL plugin to automatically request name changes to all your clan chat members / friends.
This however requires some bulk submission endpoint (/names/submit-bulk)


Include cpd-cli within the deployer image

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I need to run cpd-cli odap command  from within the deployer image.
Describe the solution you'd like
A clear and concise description of what you want to happen.
currently cpd-cli is not included in the deployer image. Adding it would definitely help with how the deployer is extended further for other requriements.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
None
Additional context
Add any other context or screenshots about the feature request here.

@pgirishibm I have updated the code so that cpd-cli is downloaded in the first phases of the apply process. It is not really practical to include cpd-cli in the deployer image because not all Cloud Paks need it. To force download, you can do the following:

Ensure the STATUS_DIR and CONFIG_DIR environment variables are set
Run the following command:

cp-deploy.sh env download --skip-mirror-images

It should be possible to run this from within the container.


:trollface: fix clearly broken tslint

I'm sorry.

WRONG WRONG WRONG ALL WRONG
#triggered

I'm sorry.

No you're not.

I've always wanted to use the wontfix label. Thanks for the opportunity, @RWOverdijk.

I love you too <3


display all messages on CLI

Heya,
How can I enable warning, info etc logs across all WOF repos using SimpleWOFLogger?
It looks like the default level is set to error:
https://github.com/whosonfirst/go-whosonfirst-log/blob/master/log.go#L54-L65
So I'm not able to see messages like this: https://github.com/whosonfirst/go-whosonfirst-sqlite-index/blob/master/index.go#L42
It seems like I can modify the code and recompile everything but surely there is an easy way to change the log level at runtime?
Is there an ENV var or something that I can set?

logger := log.SimpleWOFLogger(...)
logger.AddLogger(os.Stdout, "debug")


Compile constraint polynomials on the run

Problem
In order to .prove() and .verify() one must currently run cargo run --bin constraint-evaluation-generator before cargo build. This overwrites some Rust files in triton-vm/src/ that currently contain stubs that panic. It is possible to .run() and .simulate() without panic, since constraint polynomials are not involved.
This makes working on Triton VM a little annoying, but worse so depending on triton-vm as a 3rd-party library impossible:

Running this command is a manual step that isn't compatible with the cargo toolchain
The constraint-evaluation-generator crate is not on crates.io, so it's a repo-local process

Current patchy solutions is to either:

Fork triton-vm to a public location, runcargo run --bin constraint-evaluation-generator, commit the generated code on a throw-away branch, and add triton-vm = { git = "that public location", branch = "a throw-away branch" }
Clone triton-vm locally and add triton-vm = { path = "../triton-vm/triton-vm" }

Solutions

Commit auto-generated code: This is currently ~220KiB of auto-generated code, which will make the git history grow every time something related to constraint polynomials changes. We can expect this number to increase when adding constraints, and possibly double for a tasm back-end. In another repo for another code generator, this led to hundreds of megabytes in a few weeks. We don't like this.

A Cargo build.rs script: Early experimentation suggested that there's a circular dependency problem: The constraint-evaluation-generator crate depends on triton-vm, so depending on the generator in triton-vm's build.rs creates the circular dependency. To remove the circularity, one would need for the constraint polynomials to live in a separate crate that does not depend on triton-vm, but I believe the coupling here is non-trivial to resolve. (The constraints are expressed in terms of things that relate to tables, so those types need to be abstract.)
A Builder-like proc macro: Add a #[derive(...)] that calls the constraint generator. Since constraint-evaluation-generator is pretty fast by now, this should come with very few downsides. We would need to release constraint-evaluation-generator on crates.io, though, perhaps under a name like triton-constraints-macro or such.

Workaround suggested: Make ConstraintGen a public crate and use cargo public --allow-dirty to publish it.

unassigning myself.  I believe @sshine's supervision is needed to publish a new version of the crate with constraints baked in.

Fixed with #323.


Post deployment to heroku, not able to access the admin console

Hi, Please help with this issue.

Looking at your repo it looks like you've changed the port: https://github.com/srmehdi/keycloak-heroku/commit/894da429f31ace4c5e4c4333e5ab44a5ec5cbac9 from the environment variable $PORT to a fixed 8080.  This doesn't work with Heroku, you have to bind to the environment variable that heroku gives you.


decode token

I'm submitting a ...

[ ] bug report
[ ] feature request
[x] support request
[ ] other (Please specify)

Hello Guys, I would like to ask how can i decode a token?
I already tried JwtAuth::decode($token) but i got this error :
{"message":"Argument 1 passed to Tymon\\JWTAuth\\JWTManager::decode() must be an instance of Tymon\\JWTAuth\\Token, string given","status_code":500}

my objective are:
1.I want to  a post token from other Apps(which we are also developed) and login using token.
2. Decode token to get payload information for queering  user if valid.

Laravel & Angular version: 3.2.0

Can you show a sample code?


Email plugin does not choose proper channel configuration

Ref #7876

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-4227 Email plugin does not choose proper channel configuration

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.9 out of 10 committers have signed the CLA.:white_check_mark: krzysztofwolski:white_check_mark: korycins:white_check_mark: maarcingebala:white_check_mark: IKarbowiak:white_check_mark: dependabot-preview[bot]:white_check_mark: meska:white_check_mark: dependabot[bot]:white_check_mark: fowczarek:white_check_mark: tomaszszymanski129:x: Damian WysockiDamian Wysocki seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


question about rotation sliders

hi,
First of all, I would like to thank you for making this great plugin available.
I was wondering if there's any reasoning/benefit for applying the rotation to the data directly instead of at the rotate parameters when using the sliders.
https://github.com/GuignardLab/napari-manual-registration/blob/af51a376424756fb57b4c4519dd30e7d2050efbe/src/napari_manual_registration/_widget.py#L386-L397
I'm using this plugin while aligning multiple layers, and this approach disallows using link_layers from napari.
Thanks,
Jordao

Hi @JoOkuma, thank you very much for your feedback.
The reason we don't use the layer.rotate parameter is because we designed the plugin to allow the user to switch at all times between the 2D and 3D views. When I wrote the plugin some while back, applying a rotation through .rotate then switching to 2D gave the warning message:
Non-orthogonal slicing is being requested, but is not fully supported. Data is displayed without applying an out-of-slice rotation or shear component.

which led to data being distorted and partly excluded from the slider range.
I try to keep up with new Napari updates but if I'm not mistaken, this feature has not been implemented yet, hence the brute force solution of rotating the array.
If you are aware of any solution involving layer.rotate I am extremely interested !

@jules-vanaret, indeed, that's an existing limitation.
I unfortunately don't have a solution, feel free to close this PR.
Thanks for the reply.

I'll ask the napari core devs to see if it is doable for me to make the PR. I'll keep you posted if I get it done! :)


Karma test - Resolve object passed into controller is undefined when testing

We are using ui-router 0.2.10.
I am injecting a resolve object as a parameter into my controller, which is then setting a scope variable in the controller. It works perfectly on the app like so:
state provider
$stateProvider.state('myState', {
      resolve:{
         foo:  function(){
            return 'bar';
         },
      url: '/',
      templateUrl: 'index.html',
      controller: 'FooCtrl'
   })

controller
app.Controllers.controller('FooCtrl', ['$scope', '$state', 'foo',
    function ($scope, $state, $log, Zone, foo) {
        $scope.testVar = foo
        console.log($scope.testVar);
    }])

'Bar' is then logged to the console as expected in Chrome.
But when running tests using Karma, the resolve object is now undefined, which fails the test. Here is the test code:
describe('controllers', function(){

  var $rootScope,
      $scope,
      $state

  beforeEach(module('app'))

  beforeEach(inject(function($injector) {
    $state = $injector.get('$state')
    $rootScope = $injector.get('$rootScope')
    $scope = $rootScope.$new()
    $controller = $injector.get('$controller')
  }))

  it('FooCtrl should exist', inject( function() {
    $state.go('myState')
    $rootScope.$apply()

    $controller = $controller('FooCtrl', {
      '$scope': $scope
    })
    $rootScope.$apply()

    assert.equal($scope.testVar, "bar", "these strings are equal")
  }))
})

This error is presented (the resolve object in my case is called resolvedRouteModels):
[$injector:unpr] Unknown provider: fooProvider <- foo
	http://errors.angularjs.org/1.3.0-build.2921+sha.02c0ed2/$injector/unpr?p0=fooProvider%20%3C-%20foo

Any help would be much appreciated, and please let me know if you have encountered this problem.

https://gist.github.com/eddiemonge/f6a58169c2846731a1eb


Further edits for publishing to npm

The previous pull request didn't seem to but it after using my own fork through npm, so these changes should fix that. #150 #133

Thanks for the fix! I've been waiting on this. @soyjavi  just needs to make sure he publishes to npm after merging your changes and updating the version number to 3.0.9.

@SamDelgado until then, you should be able to use 'mike-engel/QuoJS' for the npm package name.

@mike-engel That's awesome thanks!


Texture filtering always uses min_filter instead of individual filtering parameters

Texture filtering is always set to a value of min_filter in image plugin settings, even if tiles are magnified. It should use individual parameters instead.

The issue is that we don't pass the other filter types to the texture array cache. This is pretty easy to fix and the start of the code trail can be found here:
https://github.com/StarArawn/bevy_ecs_tilemap/blob/e416b48c5b8b6be7d166b4e20c4571c716d711a2/src/array_texture_preload.rs#L74

@JohnTheCoolingFan Thanks for bringing this to our attention. I think I can work on solving this issue.


Wishlist : Notify All

Firstly, what a great little app, thankyou - this should be an integral part of Home Assistant...!
My wishlist would be a single command to "Notify all PC's", so don't have to manually repeat everything.
Ideally with a Broadcast sent to the /24 subnet, so then most users don't need to have fixed IP address and edit the configuration.
And then even better, enchanced with a "Notify Everything" command - PC's, iPhones, Android, Browser Mods, Remote Users, etc etc - all at one go! (I appreciate that is really a much-needed Core issue not yours...!)

Hi @flossiesheep, thank you! 😄
Broadcast to all PCs in a subnet - love it! That's a great idea. There'll be a new release this weekend, but afterwards I'll start hacking away at it. It'll probably be done with one HASS.Agent client being the target, then set a 'broadcast' flag in the message so that client will broadcast it on the /24 subnet (not sure if it can be done from within HA, but who knows). Or I'll implement a small mdns server in HASS.Agent so all clients can easily find each other. That way you wouldn't even have to enter an IP in HA in the first place, just the mdns name. Fun stuff 🙂
The notify-everything idea would be nice too, guess it could be done with some automating/grouping, but a built in no-fuzz method would be way better indeed. But that's on HA's side like you said.


Another rom fix

@jeffsetter this should fix the rom issue. I have added a unit test of ROM2 that is now passing.

@jeffsetter, can you confirm?

I would suggest removing some of the printouts (setting output of slice to...).
Other than that, it's working as expected!

@jeffsetter just removed the printouts.
Trying to change the formatting of the RAM is creating a bunch of errors. If this PR is working can we just merge it and do the formatting change in another request?

@jeffsetter just fixed the errors and changed the ram init format


Why the lack of a /dist folder, with minified files?

Why the lack of minified css files? Hating on the SASS users? :)
Rather than set-up a simple /dist copy with Grunt/Gulp, SASS users have to set-up and run this whole workflow just to get these files. Seems arbitrary.

Closing because neither of us seem to understand the utility of the request - if you want the distributed minified CSS then you don't need to use the Sass bower project, just use the main one.

Sorry, I meant to give a response. Got swamped with holidays and moving cities.
To avoid bloat and provide certainty that the end-point is the same. It may happen only once in a blue moon, but it could be that the LESS end-point and the SASS end-point are different. Who knows, they may compile different. (by end-point I mean the dist version)
No disrespect to LESS, but for those of us using SASS, it would be great not to have both packages bloating our projects.


Update index.html

Adding some definitions based on wikipedia info.

Hello Freshneesz! Thank you for your contribution!
Unfortunately, proto-cuneiform is not well understood and although signs are clearly the ancestors of later signs for which we know the meaning in Sumerian, it's probably best to not assume the meaning to not introduce anachronistic information. I hope this makes sense!


Remove Gen0 GC heap size workaround

If this passes CI, we probably don't need it.

We will still need it on Unix - I have not done the GC work there.

I'm surprised not even hello world is passing now. It shouldn't actually help much because this is still bound by half of the segment size which is a pretty low number too (I had to bump it up in my past experiments but that was never checked in).


system wide replay CI test

We need a simple replay test in the CI system primarily to prevent EKF replay from breaking, but also to demonstrate its usage.
@priseborough @bkueng any suggestions?
We can store a known good log on S3 or fetch directly from flight review.
Later this can be expanded for EKF testing.
Questions

what sample data do we use and how do we update it?
how do we verify it worked as expected?

As an aside, this test should be documented/linked from https://dev.px4.io/en/debug/system_wide_replay.html#ekf2-replay


Travis test ignore first letter of filename for some reason

I'll try and figure out why, thought about simply renaming every file in the travis script but that requires alot of work and overhead for little gain, it is certainly doable, you have to configure the git on the travis instance and make a new commit etc.
Might as well have a cron job or something to it recursively and periodically over the entirety of the repo and make a single commit...

Oh yeah easy catch I'm checking if the first letter is a capital in A/Axxxxx instead of the actual filename.

Yaaaa. Was working on it. Thanks!


build + flex layout is failing on beta.31

Please provide us with the following information:

OS?
Windows 10
Versions.
node: 6.9.5
os: win32 x64
@angular/cli: 1.0.0-beta.31
@angular/common: 2.4.7
@angular/compiler: 2.4.7
@angular/core: 2.4.7
@angular/flex-layout: 2.0.0-beta.5
@angular/forms: 2.4.7
@angular/http: 2.4.7
@angular/material: 2.0.0-beta.1
@angular/platform-browser: 2.4.7
@angular/platform-browser-dynamic: 2.4.7
@angular/router: 3.4.7
@angular/compiler-cli: 2.4.7
Repro steps.
"ng build --aot -prod" was working normally in cli beta.31. After the updating it stop working. Tried to drop the --aot flag, but the problem still happens
The log given by the failure.
ERROR in Error encountered resolving symbol values statically. Calling function 'FlexLayoutModule', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AdministracaoModule in E:/xxxxxx/src/app/restrito/administracao/administracao.module.ts, resolving symbol AdministracaoModule in E:/xxxxxx/src/app/restrito/administracao/administracao.module.ts
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'E:\xxxxxx\src'
@ ./src/main.ts 4:0-74
@ multi ./src/main.ts
Mention any other details that might be useful.
The project runs normally with npm start. The problem seems to be with the building.
The AdminsracaoModule refered above contains (among other things):
imports: [
CommonModule,
FormsModule,
MaterialModule.forRoot(),
FlexLayoutModule.forRoot(),
AdministracaoRoutingModule,
SharedModule
]

Thanks! We'll be in touch soon.

Flex layout's forRoot call is deprecated.

https://github.com/angular/flex-layout/blob/master/CHANGELOG.md
beta 5 has fixed this.


Add hyper-autoprofile package

Checklist for submitting an awesome plugin, theme, or resource:

[x] The title for my package or theme uses its npm title (hyper-plugin-example)
[x] The link for my package or theme uses the npmjs.com link (https://www.npmjs.com/package/hyper-plugin-example)
[x] There is a visual representation of what my plugin or theme does in the repo. (Plugin: screenshot or gif || Theme: screenshot of the theme applied to Hyper)
[x] Put your awesome item at the BOTTOM of the correct (plugin, theme, or resource) list.
[x] VERY IMPORTANT: I've written a short (one sentence) description for my package or theme as the description of the awesome plugin, theme, or resource in the README.md file I'm submitting in the PR.

Killer extension. Was wondering if it was more of a theme, but took a look at the documentation and realized this is an absolutely awesome, highly configurable plugin. Nice job! Merged.

I would say, you made my day, but seriously your comment just made my month 😄  Thank you.

@chabou good job 👍!


Need a story about implementing async-read, async-write

Brief summary
I've heard that it's common want to wrap async-read or async-write, particularly with folks come from Java where this kind of pattern is very complicated. But it's hard to do because Pin (similar perhaps to "Alan Hates Writing a Stream")
Optional details

(Optional) Which character(s) would be the best fit and why?

[x] Alan: the experienced "GC'd language" developer, new to Rust -- maybe?
[ ] Grace: the systems programming expert, new to Rust
[ ] Niklaus: new programmer from an unconventional background
[ ] Barbara: the experienced Rust developer

(Optional) Which project(s) would be the best fit and why?

List some projects here.

(Optional) What are the key points or morals to emphasize?

Write some morals here.

FYI: We had a writing session on this today, and we should be having the first (of hopefully 2-3) status-quo stories coming for this soon.

ooh, nice!

An interesting aspect to this story could be:   does Alan write an impl for tokio's AsyncWrite or future's AsyncWrite ?

I'm not sure if "wrap" in the description is the same as this, but I keep wanting there to be a macro that makes it easy to delegate AsyncRead and/or AsyncWrite to an inner type, either through a pin projection or by unpinning. The vast majority of AsyncRead/Write implementations I write are just boilerplate delegation. It would be cool if that could look like a derive macro, but that would also have to be aware of pin projection

Yes, that is what this issue is about. The difficulty of writing wrappers that work with Poll, the need to use pin-project, etc.

I just realized "wrap" was intentionally vague because a solution might look more like IntoAsyncRead and IntoAsyncWrite traits, and that's probably preferable to the macro 👍


Project Add API: separate lane and platform

[x] I have run rspec and corrected all errors
[x] I have run rubocop and corrected all errors
[x] I have run npm run test and corrected all errors
[ ] I have tested this change locally and tried to launch the server as well as access a project, and with that at least one build
[x] If there is an existing issue, make sure to add Fixes ... as part of the PR body to reference the issue you're solving

Fixes Issue #1052 , needs updating the frontend to send platform as a separate parameter in the add project API request.

I signed it!

Closing this PR due to corrupted commits (unknown author CLA problems). The issue also turned out to be in build system and not in project configuration.


Ensure unsupported architecture falls back to spin-loop implementation

While untested architectures aren't recommended, they should at least fall back to the spin-loop implementation

ARMv7 on a platform that isn't ARMv8 needs additional work to ensure it falls back to the spin-loop implementation.
Currenet AArch32 implementation assumes it will be running on an ARMv8 platform.

ARMv7 on a platform that isn't ARMv8 needs additional work to ensure it falls back to the spin-loop implementation.
Currenet AArch32 implementation assumes it will be running on an ARMv8 platform.


skip updating meas info on unknown channel type

I was testing the realtime client and got an error from _guess_measurement_info when it could not parse CHPI* channels that were sent (from a file) to the FieldTrip buffer. (The code does not write the 'kind' field for unknown channel types). I already had the same problem with TRIUX sys channels.
I propose this small fix that would simply skip updating info['chs'] if it cannot comprehend the channel type. That should make it more future proof.

Also emits a warning now.

Current coverage is 87.39% (diff: 0.00%)

Merging #3646 into master will decrease coverage by <.01%

@@             master      #3646   diff @@
==========================================
  Files           343        343
  Lines         60756      60757     +1
  Methods           0          0
  Messages          0          0
  Branches       9299       9299
==========================================
  Hits          53100      53100
- Misses         4903       4904     +1
  Partials       2753       2753

Powered by Codecov. Last update 4b6a174...9ba8826

actually should we call it 'misc' in the same spirit as create_info?

I propose this small fix that would simply skip updating info['chs']

actually should we call it 'misc' in the same spirit as create_info?

So what happens in this PR? Is there a mismatch in the data size and info['chs']? Because this would likely cause bugs all over the place in our code. Or is there already an entry (what I suspect) with sane values?

So what happens in this PR? Is there a mismatch in the data size and info['chs']? Because this would likely cause bugs all over the place in our code. Or is there already an entry (what I suspect) with sane values?

you have a channel whose channel type could not be guessed from the channel name. What @jjnurminen is doing is adding a fallback in case none of the known channel types could be guessed from the channel name

So what happens in this PR? Is there a mismatch in the data size and info['chs']?

Good point. I had no problems, but looking at the code, I think I got lucky. In my case, the CHPI channels were the last ones in the buffer. They then get properly ignored by both _guess_measurement_info() and get_data_as_epoch().
However in a situation when the unknown channels are in the middle of the list, get_data_as_epoch() no longer knows which channels were ignored, and I think it will actually drop the last ones. So number of channels still matches info, but some channels have wrong data.
One possible fix is to track which channels were ignored and pass this info to get_data_as_epoch(). Another one is to mark all unknown channels as FIFF.FIFFV_MISC_CH. Or is that reserved for the analog MISC channels only?

I would just mark them as MISC. We are not strict about what that means AFAIK

Otherwise LGTM.

+1 for merge

thx @jjnurminen


local port hopping

like remote port hopping, but instead the local port changes

The local port already changes when doing port hopping

but i don't want to change the remote port, only the local port

A udphop address with only 1 port in the range should work.
server: example.com:443-443


ERROR (nni.msg_dispatcher_base/Thread-1) index 823 is out of bounds for axis 0 with size 790

nni Environment:
nni version: latest
nni mode local
OS: windows 10 64bit
python version:3.6
is conda or virtualenv used?: yes
is running in docker?:no
when i run my experiment on nni，after 20+ trial  it's error
and i search for the logs, i see the message below:
[01/09/2020, 05:55:34 PM] DEBUG (nni.msg_dispatcher_base/Thread-2) process_command: command: [CommandType.TrialEnd], data: [OrderedDict([('trial_job_id', 'gM4jc'), ('event', 'SUCCEEDED'), ('hyper_params', '{"parameter_id": 23, "parameter_source": "algorithm", "parameters": {"num_leaves": 170, "max_bin": 833, "min_data_in_leaf": 160, "learning_rate": 0.022876755463143227, "lambda_l1": 0.2, "feature_fraction": 0.7524212365076838, "bagging_fraction": 0.9063591484877684, "bagging_freq": 10}, "parameter_index": 0}')])]
[01/09/2020, 05:55:34 PM] ERROR (nni.msg_dispatcher_base/Thread-1) index 823 is out of bounds for axis 0 with size 790
Traceback (most recent call last):
File "E:\miniconda\lib\site-packages\nni\msg_dispatcher_base.py", line 90, in command_queue_worker
self.process_command(command, data)
File "E:\miniconda\lib\site-packages\nni\msg_dispatcher_base.py", line 149, in process_command
command_handlerscommand
File "E:\miniconda\lib\site-packages\nni\msg_dispatcher.py", line 101, in handle_request_trial_jobs
params_list = self.tuner.generate_multiple_parameters(ids, st_callback=self.send_trial_callback)
File "E:\miniconda\lib\site-packages\nni\tuner.py", line 132, in generate_multiple_parameters
res = self.generate_parameters(parameter_id, **kwargs)
File "E:\miniconda\lib\site-packages\nni\hyperopt_tuner\hyperopt_tuner.py", line 267, in generate_parameters
total_params = self.get_suggestion(random_search=False)
File "E:\miniconda\lib\site-packages\nni\hyperopt_tuner\hyperopt_tuner.py", line 444, in get_suggestion
new_trials = algorithm(new_ids, rval.domain, trials, random_state)
File "E:\miniconda\lib\site-packages\hyperopt\tpe.py", line 900, in suggest
print_node_on_error=False)
File "E:\miniconda\lib\site-packages\hyperopt\pyll\base.py", line 913, in rec_eval
rval = scope._impls[node.name](*args, **kwargs)
File "E:\miniconda\lib\site-packages\hyperopt\tpe.py", line 61, in categorical_lpdf
return np.log(np.asarray(p)[sample])
IndexError: index 823 is out of bounds for axis 0 with size 790
[01/09/2020, 05:55:35 PM] DEBUG (nni.protocol/MainThread) Received command, header: [b'PI000000']
[01/09/2020, 05:55:35 PM] DEBUG (nni.protocol/MainThread) Received command, data: []
[01/09/2020, 05:55:35 PM] INFO (nni.msg_dispatcher_base/MainThread) Dispatcher exiting...
[01/09/2020, 05:55:37 PM] INFO (nni.msg_dispatcher_base/MainThread) Terminated by NNI manager
the search space is this:
{
"num_leaves":{"_type":"randint","_value":[60,140]},
"max_bin":{"_type":"randint","_value":[300,600]},
"min_data_in_leaf":{"_type":"randint","_value":[80, 180]},
"learning_rate":{"_type":"uniform","_value":[0.01, 0.03]},
"lambda_l1":{"_type":"choice","_value":[0.2,0.4,0.5,0.7,0.8]},
"feature_fraction":{"_type":"uniform","_value":[0.6, 1.0]},
"bagging_fraction":{"_type":"uniform","_value":[0.6, 1.0]},
"bagging_freq":{"_type":"choice","_value":[1, 2, 4, 8, 10]}
}
the config_windows is this
authorName: default
experimentName: example_auto-gbdt
trialConcurrency: 1
maxExecDuration: 30h
maxTrialNum: 250
#choice: local, remote, pai
trainingServicePlatform: local
searchSpacePath: search_space.json
#choice: true, false
useAnnotation: false
tuner:
#choice: TPE, Random, Anneal, Evolution, BatchTuner, MetisTuner, GPTuner
#SMAC (SMAC should be installed through nnictl)
builtinTunerName: TPE
classArgs:
#choice: maximize, minimize
optimize_mode: maximize
trial:
command: python find_para.py
codeDir: e:/match/
gpuNum: 0
the code is this
import pandas as pd
import lightgbm as lgb
import logging
from sklearn.metrics import f1_score
LOG = logging.getLogger('auto-gbdt')
def under_fit(df, q):
df_0 = df[df.label == 0]
df_1 = df[df.label != 0]
print(len(df_1))
df_0 = df_0.sample(frac=q, random_state=1)
print(len(df_0))
df = pd.concat([df_0, df_1], axis=0)
return df
from sklearn.model_selection import train_test_split
def get_default_parameters():
params = {
"boosting": "gbdt",
'objective': 'multiclass',
'metric': 'multi_logloss',
'num_class': 5,
'num_leaves': 80,
'learning_rate': 0.02,
'feature_fraction': 0.9,
'bagging_fraction': 0.8,
'bagging_freq': 5,
"max_bin": 256,
"lambda_l1": 0.1,
'verbose': -1
}
return params
def load_data():
----read data from csv and feature works---
return lgb_train, lgb_eval, test_X, test_y
import nni
def run(lgb_train, lgb_eval, params, test_X, test_y):
print('Start training...')
params['num_leaves'] = int(params['num_leaves'])
# train
gbm = lgb.train(params,
lgb_train,
num_boost_round=1500,
valid_sets=lgb_eval,
categorical_feature='auto',
early_stopping_rounds=5,
)
print('Start predicting...')
# predict
y_pred = gbm.predict(test_X, num_iteration=gbm.best_iteration)
y_pred = [list(x).index(max(x)) for x in y_pred]
# eval
f1 = f1_score(test_y, y_pred, average='micro')
print('The f1 of prediction is:', f1)
nni.report_final_result(f1)

if name == 'main':
lgb_train, lgb_eval, test_X, test_y = load_data()
try:
# get parameters from tuner
RECEIVED_PARAMS = nni.get_next_parameter()
LOG.debug(RECEIVED_PARAMS)
PARAMS = get_default_parameters()
PARAMS.update(RECEIVED_PARAMS)
LOG.debug(PARAMS)
# train
run(lgb_train, lgb_eval, PARAMS, test_X, test_y)
except Exception as exception:
LOG.exception(exception)
raise
i don't know how to fix it . some one can help? thanks

and buy the way
i set the max_bin "max_bin":{"_type":"randint","_value":[300,600]},
but in the log i see this "max_bin": 833,  why its >600?

and nnimanager.log is here
[2020-1-9 17:55:33] INFO [ 'Trial job gM4jc status changed from RUNNING to SUCCEEDED' ]
[2020-1-9 17:55:33] DEBUG [ 'storeTrialJobEvent: event: SUCCEEDED, data: undefined, jobDetail: {"id":"gM4jc","status":"SUCCEEDED","submitTime":1578563503303,"workingDirectory":"C:\\Users\\hp680\\nni\\experiments\\OHl57N2z\\trials\\gM4jc","form":{"sequenceId":23,"hyperParameters":{"value":"{\"parameter_id\": 23, \"parameter_source\": \"algorithm\", \"parameters\": {\"num_leaves\": 170, \"max_bin\": 833, \"min_data_in_leaf\": 160, \"learning_rate\": 0.022876755463143227, \"lambda_l1\": 0.2, \"feature_fraction\": 0.7524212365076838, \"bagging_fraction\": 0.9063591484877684, \"bagging_freq\": 10}, \"parameter_index\": 0}","index":0}},"url":"file://localhost:C:\\Users\\hp680\\nni\\experiments\\OHl57N2z\\trials\\gM4jc","gpuIndices":[],"startTime":1578563505772,"pid":21572,"endTime":1578563730048}' ]
[2020-1-9 17:55:34] DEBUG [ 'ipcInterface command type: [EN], content:[{"trial_job_id":"gM4jc","event":"SUCCEEDED","hyper_params":"{\"parameter_id\": 23, \"parameter_source\": \"algorithm\", \"parameters\": {\"num_leaves\": 170, \"max_bin\": 833, \"min_data_in_leaf\": 160, \"learning_rate\": 0.022876755463143227, \"lambda_l1\": 0.2, \"feature_fraction\": 0.7524212365076838, \"bagging_fraction\": 0.9063591484877684, \"bagging_freq\": 10}, \"parameter_index\": 0}"}]' ]
[2020-1-9 17:55:34] DEBUG [ 'ipcInterface command type: [GE], content:[1]' ]
[2020-1-9 17:55:35] DEBUG [ 'ipcInterface command type: [PI], content:[]' ]
[2020-1-9 17:55:40] DEBUG [ 'ipcInterface command type: [PI], content:[]' ]
[2020-1-9 17:55:40] ERROR [ 'Dispatcher error: This socket has been ended by the other party' ]
[2020-1-9 17:55:40] ERROR [ 'Error: Dispatcher stream error, tuner may have crashed.\n    at EventEmitter.dispatcher.onError (e:\miniconda\nni\core\nnimanager.js:505:32)\n    at EventEmitter.emit (events.js:182:13)\n    at Socket.IpcInterface.outgoingStream.on (e:\miniconda\nni\core\ipcInterface.js:42:72)\n    at Socket.emit (events.js:182:13)\n    at Socket.writeAfterFIN [as write] (net.js:405:8)\n    at IpcInterface.sendCommand (e:\miniconda\nni\core\ipcInterface.js:49:38)\n    at NNIManager.pingDispatcher (e:\miniconda\nni\core\nnimanager.js:354:29)' ]
[2020-1-9 17:55:40] INFO [ 'Change NNIManager status from: RUNNING to: ERROR' ]
[2020-1-9 17:55:40] WARNING [ 'Commands jammed in buffer!' ]
[2020-1-9 17:55:40] DEBUG [ 'GET: /experiment: body:\n{}' ]
[2020-1-9 17:55:40] DEBUG [ 'GET: /check-status: body:\n{}' ]
[2020-1-9 17:55:40] DEBUG [ 'GET: /trial-jobs: body:\n{}' ]
[2020-1-9 17:55:40] DEBUG [ 'GET: /metric-data: body:\n{}' ]
[2020-1-9 17:55:40] DEBUG [ 'getTrialJobsByReplayEvents begin' ]
[2020-1-9 17:55:40] DEBUG [ 'getTrialJobsByReplayEvents done' ]
[2020-1-9 17:55:40] DEBUG [ 'GET: /experiment: body:\n{}' ]
[2020-1-9 17:55:40] DEBUG [ 'GET: /check-status: body:\n{}' ]
[2020-1-9 17:55:40] DEBUG [ 'GET: /trial-jobs: body:\n{}' ]
[2020-1-9 17:55:40] DEBUG [ 'GET: /metric-data: body:\n{}' ]
[2020-1-9 17:55:40] DEBUG [ 'getTrialJobsByReplayEvents begin' ]
[2020-1-9 17:55:40] DEBUG [ 'getTrialJobsByReplayEvents done' ]
[2020-1-9 18:08:30] DEBUG [ 'GET: /experiment: body:\n{}' ]
[2020-1-9 18:08:30] DEBUG [ 'GET: /check-status: body:\n{}' ]
[2020-1-9 18:08:30] DEBUG [ 'GET: /trial-jobs: body:\n{}' ]
[2020-1-9 18:08:30] DEBUG [ 'GET: /metric-data: body:\n{}' ]
[2020-1-9 18:08:30] DEBUG [ 'getTrialJobsByReplayEvents begin' ]
[2020-1-9 18:08:30] DEBUG [ 'getTrialJobsByReplayEvents done' ]
[2020-1-9 18:08:30] DEBUG [ 'GET: /experiment: body:\n{}' ]
[2020-1-9 18:08:30] DEBUG [ 'GET: /trial-jobs: body:\n{}' ]
[2020-1-9 18:08:30] DEBUG [ 'GET: /metric-data: body:\n{}' ]
[2020-1-9 18:08:30] DEBUG [ 'GET: /version: body:\n{}' ]
[2020-1-9 18:08:30] DEBUG [ 'getTrialJobsByReplayEvents begin' ]
[2020-1-9 18:08:30] DEBUG [ 'getTrialJobsByReplayEvents done' ]
[2020-1-9 18:08:40] DEBUG [ 'GET: /experiment: body:\n{}' ]
[2020-1-9 18:08:40] DEBUG [ 'GET: /check-status: body:\n{}' ]
[2020-1-9 18:08:40] DEBUG [ 'GET: /trial-jobs: body:\n{}' ]
[2020-1-9 18:08:40] DEBUG [ 'GET: /metric-data: body:\n{}' ]
[2020-1-9 18:08:40] DEBUG [ 'getTrialJobsByReplayEvents begin' ]
[2020-1-9 18:08:40] DEBUG [ 'getTrialJobsByReplayEvents done' ]
[2020-1-9 18:08:40] DEBUG [ 'GET: /experiment: body:\n{}' ]
[2020-1-9 18:08:40] DEBUG [ 'GET: /check-status: body:\n{}' ]
[2020-1-9 18:08:40] DEBUG [ 'GET: /trial-jobs: body:\n{}' ]
[2020-1-9 18:08:40] DEBUG [ 'GET: /metric-data: body:\n{}' ]
[2020-1-9 18:08:40] DEBUG [ 'getTrialJobsByReplayEvents begin' ]
[2020-1-9 18:08:40] DEBUG [ 'getTrialJobsByReplayEvents done' ]

dispatcher.log
nnimanager.log

Hello @lastrei .
Based on the tutorial, I think you can use quniform to instead randint. Because TPE treats integers from lower to upper as unordered ones.

As for why the max_bin is out of the boundary, I don't have a certain answer now. But could you check the hyperopt version that you are using? thanks.

@xuehui1991
thanks for reply
hyperopt.version
'0.2'
the index out of bound  error  because of randint? i'll use quniform to have a try
thank you so much

thanks @lastrei for reporting this issue. Currently, NNI only supports hyperopt 0.1.2. Could you try 0.1.2 to check whether the problem still exists. Thank you.

Thanks @lastrei for reporting this issue. Currently, NNI only supports hyperopt 0.1.2. Could you try 0.1.2 to check whether the problem still exists. Thank you.

ok i will change hyperopt to 0.1.2
and i use quniform to instead randint  the out of bound error is not appear ..but i don't know
why randint can cause out of bound?

Hello @lastrei. I reproduce your error using your search space. I think it a bug and we should fix it as soon as possible,


AnyLuaValue::LuaArray still can't be used in Lua

I have a program that uses AnyLuaValues a lot. We have a data store that the Rust and Lua parts share back and forth across, and the easiest way to share data back and forth was through AnyLuaValues.
I'd written traits ToTable and FromTable for the conversions (using move semantics to avoid copies):
    #[derive(Debug, Clone, PartialEq, Eq, Hash)]
    struct Point {
        x: i32,
        y: u32
    }
    impl ToTable for Point {
        fn to_table(self) -> AnyLuaValue {
            LuaArray(vec![
                (LuaString("x".into()), LuaNumber(self.x as f64)),
                (LuaString("y".into()), LuaNumber(self.y as f64))
            ])
        }
    }
    impl FromTable for Point {
        fn from_table(decoder: LuaDecoder) -> ConvertResult<Point> {
            let (decoder, x) = try!(decoder.read_field("x".into()));
            let (_decoder, y) = try!(decoder.read_field("y".into()));
            Ok(Point { x: x, y: y })
        }
    }

This is also a great way to store structured data (like a slimmed-down JSON) and it made it easy to provide compatibility without using userdata, &mut Lua or PushGuard<L> or AsMutLua. I've even got a macro to generate a struct with these implementations automatically.
However, pushing and reading AnyLuaData::LuaArray is unsupported right now, with a little comment that mentions hitting a stack limit. Is there a way to implement it?

If you're talking about https://github.com/tomaka/hlua/blob/master/hlua/src/any.rs#L30
Then it's because of a bug in rustc. Maybe it has been fixed now.

Would there also be runtime ways (i.e. a for loop, etc.) of doing it? I haven't looked at the code a whole lot but I'd be willing to give it a go, even if this bug still exists there should be a way around it.

Well, it is the runtime way. The compiler bug prevented it from working.

Is this compiler bug known and/or fixed?

I'm not sure this is a compiler bug? Since one variant of AnyLuaValue contains a Vec<(AnyLuaValue, AnyLuaValue)>, calling push_to_lua on that vector triggers an error related to polymorphic recursion. I think. I'm tinkering with it now...

That code alone works: https://is.gd/rFFNLf
So I guess the problem has been fixed in rustc.

However, un-commenting this line and running cargo test still gives the following error:
error: reached the recursion limit while instantiating `<hlua::any::AnyLuaValue as hlua::Push<L>><&mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut hlua::Lua>::push_to_lua`

😞

So the problem is that in order to push a Vec on a L, each element of the Vec needs to be pushed individually on the L.
But we can't just push elements on the L because pushing consumes the L. You could only push a single element and then the borrow checker would complain.
Instead the where clause for Vec pushing requires that elements of the Vec must be pushable on &mut L, so that pushing each element consumes a &mut L and not a L.
So far so good.
Unfortunately the consequence is in order to push a Vec<(AnyLuaValue, AnyLuaValue)> on a L we need to call the function that pushes a AnyLuaValue on a &mut L. But if that AnyLuaValue contains a Vec<(AnyLuaValue, AnyLuaValue)>, then we need to call the function that pushes a AnyLuaValue on a &mut &mut L. But if that AnyLuaValue contains a Vec, then we need to call the function that pushes a AnyLuaValue on a &mut &mut &mut L. And so on.
This is why we're reaching the recursion limit.
Unfortunately I don't see any obvious fix for now.

Fixed in #106


[request] 1.20.1 port

Not sure if the mod is still being updated, but this mod would fit very well on 1.20.1

Port has successfully been made and has been put into testing!


Add additional HTML Tags & Attributes code hints

It'd be great to see Brackets add to the provided HTML tags and attributes code hints such as the following:
HTML5 Tags
*Picture (Responsive Images)
*Template (Web Components)
HTML5 Attributes
*Autocorrect
*Autocapitalize
*Inputmode
*Itemscope, Itemtype, Itemprop (Schema.org)
HTML5 Attribute Options
*Audio ("buffered", "played")
*Autocomplete ("billing", "cc-name", "cc-number", "cc-css", "cc-exp-month", "cc-exp-year", "cc-type", "country", "email", "name", "postal-code", "region", "shipping", "street-address", "tel", "url")
*Img ("srcset")
*Input ("autocorrect")
*Link/rel ("import")
*Meta/name ("format-detection", "robots", "viewport")
*Textarea ("Autocorrect", "Autocapitalize")
*Video ("buffered", "crossorigin")
For the time being I have created a Brackets Extension which adds all of the above (along with some HTML 4 tags which many developers find useful) which is available now via the Brackets Extensions Manager.

Hi @redmunds. Another friendly reminder :-)  Can we see if we can get some of these added?
The two most important/popular ones to add would be:
img srcset (for responsive images). http://caniuse.com/#search=srcset
template (for web components) http://caniuse.com/#search=template
(To add support for selecting an image with img srcset we'd also want to add the 'srcset' to the data.json file at: www\extensions\default\UrlCodeHints).

@coliff I haven't heard anyone argue against accepting these changes added, so I'll merge them for 1.3 after 1.2 is relased.
Is PR #9669 still valid? If not, then close it and add a new one. Otherwise, then add the update for UrlCodeHints.


Error

I am on windows 10 and am getting an error that says "Error contacting pwndb" Why is this? Does it have something to do with the pwndb website being offline?

http://pwndb2am4tzkvold.onion/ is down so it cant connect


otel-collector配置victoriametrics域名不生效

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Kitex version:
Please provide the version of Kitex you are using.
Environment:
The output of go env.
Additional context
Add any other context about the problem here.
使用kitex-examples/opentelemetry，otel-collector配置victoriametrics域名不生效，导致metrics没有指标数据

As mentioned in the communication, is it possible to provide playgound and more detail info? we are running normally.

and the latest otel-collector logs please.


Unable to submit iOS app to Apple with cordova-plugin-googlemaps

I'm submitting a ...  (check one with "x")
[ ] question
[X] any problem or bug report
[ ] feature request
The plugin version:  (check one with "x")
[X] 1.4.x
[] 2.0.0-beta3
If you choose 'problem or bug report', please select OS:  (check one with "x")
[ ] Android
[X] iOS
cordova information:  (run $> cordova plugin list)
<plugin name="cordova-plugin-crosswalk-webview" spec="~2.3.0" />
<plugin name="cordova-plugin-device" spec="~1.1.5" />
<plugin name="cordova-plugin-dialogs" spec="~1.3.2" />
<plugin name="cordova-plugin-file" spec="~4.3.2" />
<plugin name="cordova-plugin-file-transfer" spec="~1.6.2" />
<plugin name="cordova-plugin-geolocation" spec="~2.4.3">
</plugin>
<plugin name="cordova-plugin-googlemaps" spec="~1.4.0">
</plugin>
<plugin name="cordova-plugin-openurlext" spec="^1.0.1" />
<plugin name="cordova-plugin-secure-storage" spec="~2.6.3" />
<plugin name="cordova-plugin-splashscreen" spec="~4.0.3" />
<plugin name="cordova-plugin-statusbar" spec="~2.2.2" />
<plugin name="cordova-plugin-webintent2" spec="~1.0.1" />
<plugin name="cordova-plugin-whitelist" spec="~1.3.2" />
<plugin name="cordova-plugin-wkwebview-engine" spec="https://github.com/ionic-team/cordova-plugin-wkwebview-engine" />
<plugin name="cordova-plugin-x-socialsharing" spec="~5.1.6" />
<plugin name="cordova.plugins.diagnostic" spec="~3.4.2" />
<plugin name="ionic-plugin-deeplinks" spec="~1.0.14">
</plugin>
<plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
<plugin name="phonegap-plugin-push" spec="~2.0.0">
</plugin>
<plugin name="uk.co.workingedge.phonegap.plugin.launchnavigator" spec="~3.2.1" />

insert the output from the command here

Current behavior:

Build perfectly in phonegap build, but got reject by Apple before manual review
Expected behavior:

Build perfectly in phonegap build, accepted by Apple and start manual review process
Steps to reproduce:

Screen capture or video record:

Related code, data or error log (please format your code or data):
insert any relevant code, data, or error log here

We have been using cordova-plugin-googlemaps + PGB + Application Loader for a while and everything is fine. However, our iOS app was rejected by Apple with the following message. The rejection happened when we used Application Loader to upload our iOS app (before manual rejection process).
ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/OUR_APP_NAME.app/GoogleMaps.bundle/GMSCoreResources.bundle/Assets.car' can't be read. Try rebuilding the app with a non-beta version of Xcode and submit it again."
We have not changed anything specific to google map plugin or iOS related config or PGB related config. Compiling process in PGB is fine. Does anyone have any idea? We have also filed ticket in PGB forum and they suggested us to ask in here. Ty.
If your problem is solved, please consider small amount donation to this project.
Appreciate for your kindness.
https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/blob/master/README.md#buy-me-a-beer

GoogleMaps.bundle/GMSCoreResources.bundle/Assets.car is Google's file, not this plugin.
I guess you use the old version of cordova-plugin-googlemaps-sdk.
I recently updated the version.
At least, you should update the plugin before asking.
https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk

Hi @wf9a5m75,
Thanks for your quick reply. We did used cordova-plugin-googlemaps 1.4.0 before. And we just tested to use cordova-plugin-googlemaps 1.4.5. And we still got the same error.
We never used and heard about the cordova-plugin-googlemaps-sdk plugin. However, PGB said we did install this plugin and it is because cordova-plugin-googlemaps requied it. See
https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/master/plugin.xml: 223
PGB reported cordova-plugin-googlemaps-sdk is installed with mater branch at "0addb07" as git ref. Since cordova-plugin-googlemaps-sdk is automatically installed by cordova-plugin-googlemaps, is there any way we can fix this problem WITHOUT using cordova-plugin-googlemaps 2.x branch?
Ty.

The cordova-plugin-googlemaps-sdk is required.
I'm not sure you understand this plugin or not, but the map view is not a HTML element, it is a native view.
In order to generate a native map view, the cordova-plugin-googlemaps-sdk is required, and it is developed by Google, not me.
I just add the plugin.xml file.
So if Apple rejects your app because of the Google Maps SDK for iOS,
you need to do with the following things:

(1) argue to Apple as it is developed by Google
(2) argue to Google as my app was reject because of the Google Maps SDK for iOS at https://issuetracker.google.com/bookmark-groups/76561

Anyway, I can not help anything at all.
And the v1.x will be shutdown soon, maybe today or tomorrow.

ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/OUR_APP_NAME.app/GoogleMaps.bundle/GMSCoreResources.bundle/Assets.car' can't be read. Try rebuilding the app with a non-beta version of Xcode and submit it again."

Regarding of the error message, the file Assets.car file is exists.
https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk/blob/master/Maps/Frameworks/GoogleMaps.framework/Resources/GoogleMaps.bundle/GMSCoreResources.bundle/Assets.car
I believe the PGB (PhoneGap Build?) fails to fetch the SDK plugin.

Thanks for your reply. We are very confused too because we have not changed anything related to the problem.
According to the PhoneGap Build, the log looked fine to us. The log indicated the cordova-plugin-googlemaps-sdk(2.4.0) is fetched and installed without problem. Since the rejection happened before the manual review process, we got no one to "argue" with. And we all know Apple is not really nice to the iOS developer. We didn't have much option here. We are hesitated to switch to 2.X branch because of the beta status, but we may have to give a try.
Finally, thanks again.

After we switched to the 2.0.0-beta3, our android app works perfectly. Our iOS app's map is not responding at all. We do see the map, logo, marker and all button. But all buttons(compass, current location) are not clickable. Dragging, clicking on the map and panning are not responding too. No errors show on building log or on debugging console.

Please share your project files (or invite me to the phone gap build)

ping

ping

Since there is no update for a while, I close this thread.
If you have any updates, you can reopen this thread.

Sorry for the late reply. We have tried almost everything in the past few day, including upgrading to 2.X branch, creating sample project, downgrading and upgrading lots of library, switching to local building environment, in order to reproduce and to isolate the problem.
However, our last build from PGB mysteriously pass Apple's review process. As we tried so many things and it is hard to tell what solve the problem. We are sorry for your time, but our problem is being solved mysteriously.
Thanks again.

Ok. Thank you for letting me know.


Updates Route53 to use UPSERT fixes #327

I had a few short minutes free and I figured I'd try a six character change to attempt to fix #327 (CNAME Error) and it works.  Huzzah, nice and easy.

:shipit:


The problem while calling searchPublicChats

I am building a client which utilizes tdsharp. However, I have a problem while using SearchPublicChats.
The result returned by the API does not match to "Global Search" result shows on iPhone Official Telegram App.
For instance, by passing "# tesla" as the argument of SearchPublicChats, the result returned by API contains only two chats. However, by entering"# tesla" in search textfield of app, the result list contains more records.

It is up to the server, how much chats to return. Usually it returns 3 results, but sometimes it can return more chats.


Add durableSubscription as a binding property

This will be updated as a binder consumer property for the key durableSubscription

This resolves #293

Rebased, merged w/ https://github.com/spring-cloud/spring-cloud-stream/commit/40709fbf140e0cf79dd3485fbff67e05b186bc15


add RoxBox::as_refcount_ptr

This is intended as a convenience for platform authors implementing roc_dealloc, addressing the use case in this zulip thread.

Thanks for the lint fix :sweat:


1 file event to mqtt

Closes #1

[WIP] file crawling / watching stuff
Adds a first test!

Superseded by #4


chore: move safe_slice to shared utils

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#474  👈
#83
#84
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ArniStarkware and the rest of your teammates on  Graphite

No need for this PR.


react-app babel preset causes funky issue with objstr

I'm mainly creating this issue so others can find it in the future, but maybe it could go in the docs somewhere because it took me far too long to identify..
I ejected from a new create-react-app and copied all the config to get css-blocks and typescript working and everything was fine until I got..
Module build failed: Error: ~/my-app/src/App.tsx: [css-blocks] AnalysisError: First argument passed to "objstr" call must be an object literal. (~/my-app/src/App.tsx:13:26)

Removing the react-app babel preset entry from package.json resolved the issue after learning way more than I needed to know about the css-blocks internals..
  "babel": { "presets": ["react-app"] }

I confirmed the cause by adding the preset to the css-blocks website package.json and modifying App.tsx to..
class App extends Component {
  render() {
    const style = objstr({ [styles]: true });
    return (
      <BrowserRouter>
        <div className={style}>

I'm also having this issue. Even mentioned it https://github.com/linkedin/css-blocks/issues/170#issuecomment-399819244
I'm using create-react-app and the whole app seem to break if I remove the babel preset from the package.json
"babel": {
    "presets": [
      "react-app"
    ]
  },

Is there any other way to fix it?

The issue is that the css-blocks analysis and rewrite needs to run before the babel jsx compilation occurs. When the preset is used, webpack seems to run babel before the css-blocks analyzer/rewriter. I suspect that since webpack is plugins all the way down, we can probably change this behavior but I don't know what is the right way to accomplish that. It would be great if someone who understands webpack can advise.


Feature/ASB-578-579 - Add nameAgent, organizationName controller, tests, refactor config

Add nameAgent, organizationName controller, tests, refactor config

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Event trigger when window is minimized / expanded

I am trying to trap the event whereby a user clicks on the compose window header which collapses or expands the compose window.
I have  been able to successfully target the 3 buttons on the right (minimize, close etc) but when user clicks on the compose message header (ie the New Message label), not matter what I try with jQuery to setup event listening (onClick) it never fires.
My thinking is that GMail is taking this event and stopping propagation, thus I am never receiving the event down to my jQuery event listener?
Do you have any clues or have you attempted to watch this event?
Any assistance would be greatly appreciated.

mse

Sorry about the extremely slow response.
Implementing support for this is (clearly) not a priority for the core-team, but if you propose a PR, I'm personally going to review it, and if good enough, merge it.
If you still feel like investigating this, the following issue has some details which will probably be relevant: https://github.com/KartikTalwar/gmail.js/issues/373.


listing 3.10 should history key be "accuracy" and "val_accuracy" instead of "acc" and "val_acc"?

On the book:
acc = history.history['acc']
val_acc = history.history['val_acc']

But if I typed so, it would result in an error where keys of history are incorrect. But when I did history.history.keys(), it showed "accuracy" and "val_accuracy" instead.
Is this a mistake on my part?
Here's the full code:
from keras.datasets import reuters
from tensorflow.keras import models
from tensorflow.keras import layers
import numpy as np
import matplotlib.pyplot as plt

def vectorize_sequences(sequences, dimension = 10000):
	results = np.zeros((len(sequences),dimension))
	for i, sequence in enumerate(sequences):
		results[i, sequence] = 1
	return results

def to_one_hot(labels, dimension=46):
	results = np.zeros((len(labels), dimension))
	for i, label in enumerate(labels):
		results[i, label] = 1
	return results

(train_data, train_labels), (test_data, test_labels) = reuters.load_data(num_words=10000)

x_train = vectorize_sequences(train_data)
x_test = vectorize_sequences(test_data)

one_hot_train_label = to_one_hot(train_labels)
one_hot_test_label = to_one_hot(test_labels)

# one_hot_train_label = to_categorical(train_labels)
# one_hot_test_label = to_categorical(test_labels)

model = models.Sequential()
model.add(layers.Dense(64, activation='relu', input_shape=(10000,)))
model.add(layers.Dense(64, activation='relu'))
model.add(layers.Dense(46, activation='softmax'))

model.compile(optimizer='rmsprop',
              loss='categorical_crossentropy',
              metrics=['accuracy'])

x_val = x_train[:1000]
partial_x_train = x_train[1000:]

y_val = one_hot_train_label[:1000]
partial_y_train = one_hot_train_label[1000:]

history = model.fit(partial_x_train,
                    partial_y_train,
                    epochs=20,
                    batch_size=512,
                    validation_data=(x_val, y_val))

print("History key: ", history.history.keys())

loss = history.history['loss']
val_loss = history.history['val_loss']

epochs = range(1, len(loss) + 1)

plt.plot(epochs, loss, 'bo', label='Training loss')
plt.plot(epochs, val_loss, 'b', label='Validation loss')
plt.title('Training and validation loss')
plt.xlabel('Epochs')
plt.ylabel('Loss')
plt.legend()

plt.show()

plt.clf()   # clear figure

acc = history.history['accuracy']
val_acc = history.history['val_accuracy']

plt.plot(epochs, acc, 'bo', label='Training acc')
plt.plot(epochs, val_acc, 'b', label='Validation acc')
plt.title('Training and validation accuracy')
plt.xlabel('Epochs')
plt.ylabel('Loss')
plt.legend()

plt.show()

Nevermind, I figured it out.
It turns out if I set metrics=['accuracy'] then history attribution will use 'accuracy' instead of 'acc'.


[Enhancement]:  Want to add an about us page for Anagram_Checker_Game and Anime_Clicker

Do you want to have the enhancement of existing game ? 😀 Describe yourself..
Game enhancement
I want to add an about us page for these games because this games may be tough to understand for some users
Describe the solution you'd like
Solution steps
Creatiing an about us .html file
intergrating it with main game file
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @Ayushmaanagarwal1211 !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

/assign

Hey @Ayushmaanagarwal1211 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


User-reported unhelpful error message

Program: https://code.world/#PhrXAs_hY24M_ZA0_5NTMQA
Message:
program.hs:5:34: error:
    • Couldn't match expected type (Number, Number)
                  with actual type Number

Error message doesn't look terrible to me.


Add links to stable docs

note
Issue:
What I did
How to test
Is this testable with Jest or Chromatic screenshots?
Does this need a new example in the kitchen sink apps?
Does this need an update to the documentation?
If your answer is yes to any of these, please make sure to include it in your PR.
For maintainers only: Please tag your pull request with at least one of the following:
["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

Thanks @GeorgeWL
Can you please add the same note for other addons as well?

@GeorgeWL Do you want to apply the change the other addon readme files as well? 🙇

I almost feel like we should have a tool for updating all the readmes. There's too many to do manually for every major or minor release.

I agree there

@danielduan this is a temporary measure, since 4.0 master will be stable again, and next will be default branch on GitHub for new releases instead

That will definitely solve a lot of the issues that get opened from people confused about the docs.


Using pretrained model

Hello,
New to AI world (but want to try K210 board)
I have a pretrained model with tiny-yolo v3 . Can i directly convert and use it ?
Or I have to train it again.
if yes,  if I have images in yolo format - Can the same format be used for training with your code.

tiny-yolo v3  is too big , so I use mobilenetv1-yolov3 to fit k210.


Set qty to 20 when cookie is undefined

Cookie had the value of 'undefined' not undefined so it led to some issues when the user first loaded the table

also fix bug regarding morning report filters

Closing as we are now going to use local storage.


fixed missing separator for rng fold in

Adds the changes in #2159 as a feature flag.
Also replaced use_regular_dict decorator with more general temp_flip_flag decorator that can flip any flax config variable temporarily.

Codecov Report

Merging #3095 (c26d058) into main (3411378) will increase coverage by 0.15%.
The diff coverage is 96.15%.

@@            Coverage Diff             @@
##             main    #3095      +/-   ##
==========================================
+ Coverage   81.92%   82.08%   +0.15%
==========================================
  Files          55       55
  Lines        6032     6067      +35
==========================================
+ Hits         4942     4980      +38
+ Misses       1090     1087       -3

Impacted Files
Coverage Δ

flax/linen/module.py
92.79% <95.12%> (+0.76%)
:arrow_up:

flax/configurations.py
90.00% <100.00%> (ø)

flax/core/scope.py
89.85% <100.00%> (+0.04%)
:arrow_up:


[SIP-122] Integrated monitoring and user activity dashboard

[SIP-122] Proposal for creating an integrated monitoring and user activity dashboard
Motivation
Probably most of companies using Superset do need to gather and analyse some data about platform's health and user activity. Currently solving this task would require a bunch of work on levels from transforming raw logs to creating a dashboard. "Big" BI tools do provide such analytics out of the box so I think we should create smth like that in Superset.
Proposed Change
The whole thing can be divided into 3 parts:

DB changes
Raw logs info is not suitable for building a dashboard so some sort of a datamart should be created. In case of PostgreSQL I think that it would be nice to have a materialized view with all the necessary data and a procedure to make all the transformations needed. Such a structure would provide an easy way to create an ETL to move the datamart elsewhere if needed while still being not too complicated.

Dashboard itself
I'm quite sure that there is somewhat about a billion variations of this dashboard created by users so we just need to get all the popular stuff together and leave some space for specifics.

Deployment
We all know and love example dashboards. So maybe using similar mechanism for analytics dashboard deployment can be used. It shurely should be optional and also separate from examples. Here we need to think about many little things. Maybe there should be some parameters brought out to the config file and so on. To be discussed further.

New or Changed Public Interfaces
Well, a new command like "superset load_monitoring" will definetely be needed. Otherwise maybe some new API endpoints would be nice but I'm not shure about this yet.
New dependencies
Probably not needed
Migration Plan and Compatibility
Pls help)
Rejected Alternatives
None as for now

I agree this would be a good addition to Superset, other products have this out of the box - see the respective docs from Tableau and Metabase detailing what reports they offer, who can see them, etc.
I would suggest only Admin role users can view these reports, by default.  Unless that requires RBAC to be enabled - maybe someone has a concrete suggestion for how to handle the sensitivity of this reporting.

@supersetbot orglabel

Migration Plan and Compatibility

I don't think there's anything to migrate here, per se, but you did mention that there'll be a new command. I assume this would be run like the load examples command?

Rejected alternatives

It seems like this is querying the metadata table directly... which might have performance implications depending on the size of those tables. Perhaps we should consider/reject other sorts of ETL/pipeline as an alternative process, as opposed to materialized views?

Yes the new command probably should run like the load examples one.
Data storage does require further investigation especially performance wise. Currently on our installations we use a procedure approach. Once a day during the least active period (around 3 am) the procedure runs an update script on a bunch of separate tables. This allows to avoid performance drops during peak hours. But there might be a better approach.

Also speaking of examples.
Maybe it would be better to split metadata and examples in separate schemas by default? Because it makes me sick looking at all the mess in a resulting db. Yes I know that there is a config parameter that allows to use a separate db connection for examples but usually it is being ignored... So maybe we should make it a bit more structural even by default.

Does this need to move forward as a VOTE thread? If you have time to contribute it, I'm happy to make the vote happen.

re: "about a billion variations of this dashboard" ... looks like Stephan Claus and team are about to release a new version of their dashboard, V1 article here.
Is there any documentation on what is logged currently in the metadb ?
And following on, "Currently solving this task would require a bunch of work on levels from transforming raw logs",  for context it would be helpful to know which log we would be referring to, at least as a starting point.

We need to figure out what metadata databases we actually support officially if we're going to build a built-in dashboard dependent on it.

@TechAuditBI any interest in continuing to move forward with this SIP? Hopefully we can get it ready for a vote soon. This would be an amazing example to have built into Superset, but it seems there's still quite a bit of detail to flesh out in order to pull this off.


Return self when controlling a gate with 0 controls

@dabacon PTAL. The scope of this expanded quite a bit.


Angular Version 12 is not supporting.

This is a...

[ ] feature request
[ x] bug report
[ ] usage question

What toolchain are you using for transpilation/bundling?

[x ] @angular/cli
[ ] Custom @ngTools/webpack
[ ] Raw ngc
[ ] SystemJS
[ ] Rollup
[ ] Other

Environment
NodeJS Version: 14.6.0
Typescript Version: 4.2.4
Angular Version: 12.0.1
@angular-redux/store version: 10.0.0
@angular/cli version: (if applicable) 12.0.1
OS:
Link to repo showing the issus
(optional, but helps a lot)
Expected Behaviour:
Should support Angular v12
Actual Behaviour:
Package "@angular-redux/store" has an incompatible peer dependency to "@angular/core" (requires "^7.0.0" (extended), would install "12.0.2").
Stack Trace/Error Message:
Package "@angular-redux/store" has an incompatible peer dependency to "@angular/core" (requires "^7.0.0" (extended), would install "12.0.2").
Additional Notes:
(optional)

Hey, I'm trying to maintain this library.
https://github.com/angular-redux2/store


[Bug]: [nltk_data] Error loading punkt: <urlopen error [WinError 10060] A

Bug Description
I am using a vector Index which connects to a chromaDB client as my database. I have initialized the index as a chat engine. When the query the chat engine, two things happen:

The response time is nearly 2-3mins.
It throws the below warning

[nltk_data] Error loading punkt: <urlopen error [WinError 10060] A
[nltk_data]     connection attempt failed because the connected party
[nltk_data]     did not properly respond after a period of time, or
[nltk_data]     established connection failed because connected host
[nltk_data]     has failed to respond>

Version
0.9.8.post1
Steps to Reproduce
Clone, setup and run the below repository: (Follow readme for instructions)
https://github.com/umang299/document-gpt
Relevant Logs/Tracbacks
No response

@umang299 - Are you using jiofiber by any chance?
Seems like jiofiber can't access punkt tokenizer. Try accessing this file - https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/packages/tokenizers/punkt.xml
If you are not able to open above file then connect with your mobile internet and run the process. It worked for me with Airtel 4G phone data.

@aakashag1 I was able to solve this problem. You are right it was a problem caused by JioFiber. Thanks for the response though.


On Build error xcopy on not english localized machines

On a non english localized machine the xcopy command lines in the file:
cppwinrt.build.post.props
generate an error while building.
the "echo f" in front of the 4 commands (look for xcopy) works only if the word "file" in your language begins also with an "f".
In germany it's a "D" for "Datei".

wait really
That seems insane to me, but that can be fixed. echo f | xcopy always seemed like a hack to me anyways.

We should address this by removing manual xcopy steps :)

We should address this by removing manual xcopy steps :)

Or use robocopy, which should have the same command syntax for all languages.


[bugfix] fix case-when issue

case when is not parsed the same in SqlNode and RelNode. this address the discrepancy in the compilation between v1 and v2.
Release Note
This change is backward incompatible with some of the CASE WHEN queries.

when there's only one CASE WHEN clause, nothing will break.
when using multiple WHEN clause

when non-boolean expression used in condition check, query might fail during cluster upgrade

e.g.CASE WHEN <non_boolean_expr> THEN ... will not work during cluster upgrade,
use explicit cast CASE WHEN CAST(<non_boolean_expr> AS BOOLEAN) THEN ... instead.

when all expressions in WHEN or THEN clause are boolean, query might fail during cluster upgrade

e.g. when CASE [WHEN <boolean_expr> THEN <boolean_expr>]+ ELSE <boolean_expr> END will not work during cluster upgrade.
no workaround for this at the moment

Codecov Report

Merging #9702 (414e0fc) into master (91fa86b) will increase coverage by 41.88%.
The diff coverage is 82.35%.

@@              Coverage Diff              @@
##             master    #9702       +/-   ##
=============================================
+ Coverage     28.13%   70.01%   +41.88%
- Complexity       53     5326     +5273
=============================================
  Files          1936     1950       +14
  Lines        103927   104332      +405
  Branches      15770    15806       +36
=============================================
+ Hits          29235    73044    +43809
+ Misses        71832    26167    -45665
- Partials       2860     5121     +2261

Flag
Coverage Δ

integration1
25.42% <10.29%> (+0.01%)
:arrow_up:

integration2
24.73% <8.33%> (+0.05%)
:arrow_up:

unittests1
67.44% <82.35%> (?)

unittests2
15.69% <71.56%> (?)

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

Impacted Files
Coverage Δ

...ot/common/function/scalar/ComparisonFunctions.java
42.85% <ø> (+5.35%)
:arrow_up:

.../pinot/common/function/scalar/ObjectFunctions.java
73.07% <55.55%> (+73.07%)
:arrow_up:

...ator/transform/function/CaseTransformFunction.java
59.45% <70.00%> (+23.71%)
:arrow_up:

...org/apache/pinot/sql/parsers/CalciteSqlParser.java
84.17% <75.00%> (+15.82%)
:arrow_up:

...t/query/runtime/plan/ServerRequestPlanVisitor.java
78.57% <78.57%> (ø)

...va/org/apache/pinot/query/runtime/QueryRunner.java
81.55% <90.00%> (+81.55%)
:arrow_up:

...e/pinot/query/runtime/plan/PlanRequestContext.java
92.85% <92.85%> (ø)

...ot/query/runtime/executor/WorkerQueryExecutor.java
100.00% <100.00%> (+100.00%)
:arrow_up:

.../pinot/query/runtime/plan/PhysicalPlanVisitor.java
96.87% <100.00%> (ø)

.../runtime/plan/server/ServerPlanRequestContext.java
100.00% <100.00%> (ø)

... and 1335 more

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

Please add some description in the PR to describe the backward incompatibility in certain case. Also, do not mark it as multistage

WARNING: This PR is backward incompatible because we should not change the format sent by broker before upgrading servers. #10291 is the patch to revert back the broker format


Actual Behavior
The App go  to suspend.
Context
I have all Settings from the dontkillmyapp.com, set on my app.

The plugin's heartbeat mechanism (AlarmManager.setRepeating) is subject to the operating system's "idle time".
Heartbeat events will be throttled.

Thank you for your response, do you have an event in the plugin which trigger continuous (every 60 seconds).

The reason that Android has become a nightmare to develop with, requiring the existence of https://dontkillmyapp.com is because of developers killing the user's battery by attempting to spin the CPU "every 60 seconds".
You can try to do what you want using capacitor-background-fetch.

Not Good, I did buy your Plugin, for this reason. Actualy is it not possible to send the Backgroundgeolocation continuose under Android. Is this Correct?

This Philosophy of Operation of this plugin is to track the location when the device is detected to be moving.
When the device is stationary, the plugin strongly desires to conserve energy.

ok but the device don't wake up when I move it or prevent 'terminate' the app in Background when i move it.

How are you moving it.  You should go outside for a 1km walk.
if the plugin doesn’t engage tracking, it’s a fault of the device.  I test on the following devices:

Nexus 4 @ 4.4.4
Nexus 5 @ 6.0.1
Motorola Moto G @ 6.0.0
Google Pixel @ 10
Google Pixel 3a @ 12
Samsung Galaxy S20 FE @ 12.0.0
Samsung J @ 6.0.1
Samsung A510 @ 8.0.0
Huawei P20 Lite (ANE-LX3) @ 8.0.0
XIAOMI MI A2 Lite @ 10.0.0
Nokia TA-1027 @ 8.0.0
OnePlus A5010 @ 9.0.0

Thank you

As for the terminated behavior, your RN app no longer exists when app is terminated.
see api docs Config.stopOnTerminate, Config.enableHeadless

Sorry my app is in background but the app don't send the location onMotion, after 5 minutes the app 'sleep' is this the terminated status ?

sleep != terminated.

locationAuthorizationRequest: "WhenInUse",

With WhenInUse, you must manually engage the moving state by calling .changePace(true) while your app is in the foreground.  The plugin cannot automatically trigger location tracking with "WhenInUse".

ok i init the plugin with
locationAuthorizationRequest: "WhenInUse",
then i set the config with
BackgroundGeolocation.setConfig({
locationAuthorizationRequest: 'Always'
});
this config Setting, i see on the device settings. Geolocation 'always'
understand you right? When I set the changePace(true) the device must be wake up after distance from 1km.

with IOS works the service perfekt. the heartbeat ping every 60 seconds the server and the app never sleep. Only for information.

With Always authorization, the only thing you need to do is call .start().  The plugin will automatically engage location-tracking when the device moves about 200 meters -- You do not need to manually call .changePace(true) with Always.
With Always authorization, the plugin essentially automatically calls .changePace(true) upon itself.  Please read the wiki Philosophy of Operation.

with IOS works the service perfekt. the heartbeat ping every 60 seconds the server and the app never sleep. Only for information.

Now disconnect your device from power and turn the screen off.  Let the device lie still without touching it for 5 minutes.  You will see that heartbeats stop.
Shaking the iOS device or lighting up the screen (without unlocking) will cause heartbeat events to resume again.

Also, use debug: true so you can hear the debug sound-effect boop when heartbeat events fire.  See the API docs Config.debug

Ok thank you for your response. The Plugin works fine but when i lock the device after 5 -10 minutes ( i think the app 'sleep'), the plugin don't execute my javascript code. I hear the sound for background geolocation. Do you have a solution for this?


Model Show Relations

Laravel Version: 6.x
PHP Version: 7.3.9
Laravel-admin: 1.7

Description:
Model shows aren't showing relations correctly.
Steps To Reproduce:
For Example:
$show->field('user.username', 'User');
This will display nothing in the display over the User.  However, if I omit the .username i will see all the json of the relation.

Try this
$show->field('user_id', 'User')->as(function ($user_id) {
    return UserModel::where('id', $user_id)->first()->name ?? null;
});

Thanks, that a good workaround.

I haven't use version 1.7, but after I readed the doc, I found you can find answer on this page


Crashes on videos with text

When reciving a snapvideo (with text! videos without text works) and realying it to story (see code below) the bot crashes, any suggestions?

from SnapWrap import Snapchat
class CustomBot(Snapchat):
def on_snap(self, sender, snap):
self.post_story(snap)
bot = CustomBot(*["xxx", "xxxx"])
bot.begin()

Debug log

Traceback (most recent call last):
File "/opt/snapbot/snapbot.py", line 8, in
bot.begin()
File "/opt/snapbot/SnapWrap/snapchat.py", line 43, in begin
self.on_snap(snap.sender, snap)
File "/opt/snapbot/snapbot.py", line 7, in on_snap
self.post_story(snap)
File "/opt/snapbot/SnapWrap/snapchat.py", line 108, in post_story
snap.upload(self)
File "/opt/snapbot/SnapWrap/snap.py", line 40, in upload
self.media_id = bot.client.upload(self.file.name)
File "/opt/snapbot/SnapWrap/Client/init.py", line 453, in upload
raise ValueError('Could not determine media type for given data.')
ValueError: Could not determine media type for given data.

ping @danwatco @Rob--

Its because when there's an overlay, snapchat sends a file which is a zip containing the original mp4 and an overlay with it. When ffmpeg tries to read it, it rightly fails since its a zip file not an MP4.
My pull request https://github.com/Rob--/SnapWrap/pull/11 should take care of this once its accepted

Sorry for the slow reply @jkaberg
@ObjectiveTruth is correct, we'll look at the pull request and get it merged as soon as we can and close this issue!


Added chapter in docs intro

Following this thread : https://twitter.com/thedgbrt/status/797779637573128193
I've put the simplified explanation from @gaearon where it seemed to fit the most, just before the dive into the three principles in more detail.
It adds a bit of repetition to the flow of the whole section, but overall makes things clearer imo.
Let me know what you think.

Thanks, appreciate the help!
A couple thoughts:

Is there maybe a better title we can come up with besides "The Redux Way"?  I don't immediately have a better idea, but might want to consider other options.
I've used a description a few times that we might want to include in here somewhere.  Quoting from a couple of my comments on Reddit:

Conceptually, Redux itself is a pretty simple pattern: it encapsulates a single value; uses a single function to update that value; calls the update function with the previous value and the descriptive object you just passed in; replaces the previous value with the new value; and uses a simple change emitter to notify subscribers of an update. ( https://www.reddit.com/r/reactjs/comments/5664xx/redux_why_are_reducers_useful/d8gmoc8/ )

At a conceptual level, Redux is really a very simple pattern: it stores a value, calls one function to create an updated value when you ask it to, and has a single change emitter to notify subscribers that there's been an update. There's a number of aspects that wrap around that further, but that's really all that it's doing internally.  ( https://www.reddit.com/r/programming/comments/543b4w/help_could_anyone_help_annotating_redux_i_really/d7yvrkw/?context=3 )

@timdorr , @jimbolla : thoughts?

For the title, what I think is important is to convey the idea of a generic and straightforward explanation: "Core purpose" or "Concept" might be good alternatives.
I found the first of your two comments easier to understand, I can it being helpful at the very end of the page, as a way to go over the whole concept one last time before digging deeper in the next section.

yeah, core concept, basics, core architecture, etc would all be a bit better.
As for the explanations, I think Dan Abramov does a very good job here at explaining. Adding terminology like "storing a value" or "change emitter" just distract from the main idea and make it out to be more complicated than it actually is (and is arguably inaccurate anyway).

I've updated with a new title : "Core concepts". Is it good for merging?

LGTM.  Thanks!


fix: empty list data may be possible for TopLevel

Empty list may be possible in data with no error.
In doc:
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json

{
  "links": {
    "self": "http://example.com/articles"
  },
  "data": []
}

I  think also the data may be null without error but I didn't changed it as I think you may it intentionnaly :
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json

{
  "links": {
    "self": "http://example.com/articles/1/author"
  },
  "data": null
}

<IP_ADDRESS> 404 Not Found
A server MUST respond with 404 Not Found when processing a request to fetch a single resource that does not exist, except when the request warrants a 200 OK response with null as the primary data (as described above).

Hi! At this point, I'm trying to make sure that I don't have a "data" and "errors" keys in the "data" object at the same time. I think it's more correct to do :
if "data" in data and "errors" in data.

IMO it should be only :
if "data" in data and data.get("errors"):

IMO it should be only :
if "data" in data and data.get("errors"):

No) Because, I can write like this:
from jsonapi_pydantic.v1_0 import Error, Resource, TopLevel
data = [
    Resource(
        type="articles",
        id="1",
        attributes={
            "title": "JSON:API paints my bikeshed!",
        }
    )
]
top_level = TopLevel(data=data, errors=None)
print(top_level.model_dump(exclude_unset=True))

Print: {'data': [{'type': 'articles', 'id': '1', 'attributes': {'title': 'JSON:API paints my bikeshed!'}}], 'errors': None}

This is wrong. Because: 7.1: The members data and errors MUST NOT coexist in the same document.


⚠ deces.matchid.io search API has degraded performance

In f30caa1, deces.matchid.io search API (https://deces.matchid.io/deces/api/v1/search?q=pompidou) experienced degraded performance:

HTTP code: 200
Response time: 2046 ms

Resolved: deces.matchid.io search API performance has improved in 1e58638.


move cloud fraction callback before rrtmgp

Purpose

This is at least one of the reasons that the all-sky radiation job is non-deterministic.
To-do

Content

[ ] I have read and checked the items on the review checklist.

@charleskawczynski I think this should fix the non-deterministic issue, and I checked locally that the job is reproducible by looking at the norm of the solution. But is there an easy way to make sure the regression test works before merging it?

Good catch! I'm not sure why this would result in new JET failures, though

Feel free to increase the number of allowed JET failures, so that we can merge this @szy21!


fix: kafka logging to stderr

librdkafka sends its logs to stderr by default, redirection to server logs has been made.

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/


Windows "Extract All..." functionality doesn't like tiny files in zip files created by miniz

What steps will reproduce the problem?
1. Create a small file.  Files as large as 68 bytes failed for me.
2. Zip with example3 "example3 c test.txt test.zip"
3. Right click on file (in Windows) and click "Extract All..."

What is the expected output? What do you see instead?
EXPECTED: File is extracted correctly
ACTUAL: Windows complains zipped folder is empty

What version of the product are you using? On what operating system?
Windows 7 SP1, miniz 1.1544 example3

Please provide any additional information below.
The file is extracted with 7zip just fine.  I know this is not "your" bug, so I
don't expect anything to happen with it, but I thought I would let you know.
7zip DOES generate a zip file that Windows likes, FWIW.  I am attaching the zip
file that windows doesn't like.  If there are large enough files in the zip
file so windows doesn't think it is empty, it extracts those, and gives a
0x80004005 error when it finds the files that are too small.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 8 Jan 2014 at 5:07
Attachments:

test.zip

I think this is fixed by adding a local header in the ZIP files in 2.x


Performance Optimisations

Hello,
I run your program on a low power Celeron J4105 powered board and it is running with ~50% CPU utilization if the roomba is active.
Now I tried to optimize it a little bit.

I disabled the storage of the lines.png and the problems.png. I use it as a in memory only image.
I apply the problems.png only if there are problems.
I disabled the map.png because I use the map_notext.png only. I will make this configureable

as a result, the utilization is going down from 50-60% to 18-20%.
Is there any reason why you are storing the lines.png and the problems.png on the harddisk?
Later I can also provide a pull request.

No real reason, but I have a SSD and a fairly powerful server, so I didnt really notice (OpenCV processing uses a fair amount of processing power though).
CPU usage optimization would be welcome.