Remove all the dummy data and also all the imports

Don't forget to remove all the imports of the dummy data files otherwise, deployment is going to crash.

Closing this issue as it is done! @Kingshuk3006

Reopening this as dummyData files are still not removed. @Kingshuk3006

There is one dummy data file left I guess do that one first. @Kingshuk3006


TypeError: parser.addFunctionArgumentLocations is not a function when using Syntax parser to parse sql query with UDF

Is the issue already present in https://github.com/cloudera/hue/issues or discussed in the forum https://discourse.gethue.com? No
Describe the bug:
When running a syntax parser test which parse sql queries with UDF it shows following error. This error can only be seen if debug logs are enabled and it definetly stopping the syntax parsing of that query.
TypeError: parser.addFunctionArgumentLocations is not a function         at Object.apply (/root/sachin/hue/desktop/core/src/desktop/js/parse/sql/hive/hiveSyntaxParser.js:3254:13)         at Object.parse (/root/sachin/hue/desktop/core/src/desktop/js/parse/sql/hive/hiveSyntaxParser.js:4970:40)         at Parser.parseSyntax (/root/sachin/hue/desktop/core/src/desktop/js/parse/sql/sqlParseUtils.js:763:14)         at Object.<anonymous> (/root/sachin/hue/desktop/core/src/desktop/js/parse/sql/hive/test/hiveSyntaxParser.test.js:29:38)         at Object.asyncJestTest (/root/sachin/hue/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:100:37)         at resolve (/root/sachin/hue/node_modules/jest-jasmine2/build/queueRunner.js:47:12)         at new Promise (<anonymous>)         at mapper (/root/sachin/hue/node_modules/jest-jasmine2/build/queueRunner.js:30:19)         at promise.then (/root/sachin/hue/node_modules/jest-jasmine2/build/queueRunner.js:77:41)
Steps to reproduce it?

Add a test for parsing syntax of a query with UDF and enable debug logs. This issue is seen with hive and impala parser

Hue version or source? (e.g. open source 4.5, CDH 5.16, CDP 1.0...). System info (e.g. OS, Browser...).

This issue is fixed if we add addFunctionArgumentLocations function name in constants array SYNTAX_PARSER_NOOP_FUNCTIONS in sqlParseUtils. But then it fails ahead with the following exception:
TypeError: Cannot read property 'first_line' of undefined         at Object.apply (/root/sachin/hue/desktop/core/src/desktop/js/parse/sql/hive/hiveSyntaxParser.js:3258:46)         at Object.parse (/root/sachin/hue/desktop/core/src/desktop/js/parse/sql/hive/hiveSyntaxParser.js:4970:40)         at Parser.parseSyntax (/root/sachin/hue/desktop/core/src/desktop/js/parse/sql/sqlParseUtils.js:764:14)         at Object.<anonymous> (/root/sachin/hue/desktop/core/src/desktop/js/parse/sql/hive/test/hiveSyntaxParser.test.js:29:38)         at Object.asyncJestTest (/root/sachin/hue/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:100:37)         at resolve (/root/sachin/hue/node_modules/jest-jasmine2/build/queueRunner.js:47:12)         at new Promise (<anonymous>)         at mapper (/root/sachin/hue/node_modules/jest-jasmine2/build/queueRunner.js:30:19)         at promise.then (/root/sachin/hue/node_modules/jest-jasmine2/build/queueRunner.js:77:41)         at process._tickCallback (internal/process/next_tick.js:68:7)

Thanks for reporting this! It's indeed a recently introduced bug, I'll take a look.

Fixed with 8ba5f91a66d34b371a3f805677980f70c1b19349

Thanks @JohanAhlen


Investigate deprecated dev dependencies

gulp-* packages have deprecated dependencies
Maybe we could get rid of them by updating to newer versions of gulp-* packages?

I'll be happy about this :)


[FileConnector] Deletes the file after around 40s when using without file:acknowledge(m);

Takes around 30s to process even a small file like attached.
test.txt

As of v0.91, the connector to listen to a directory is named File System Server Connector. The new version has omitted the acknowledge() function and makes use of the 'reply' statement to send the acknowledgement. One can also specify the following post-process actions: move, delete, none.


Duplicate id's in Fate Reforged set (2015)

The id card 391783 is repeated on that set.
To be more specified, in cardsId array, this id is in positions 1 and 118

Duplicates should be removed now, don't know what happened with that, also if might be better to use:
https://api.mtgdb.info/sets/frf/cards to go through all the cards. Anyway let me know if the update resolves the issue. If so I will close this.

Now it's resolved :+1:  no more duplicates are there.
Thanks!!!!!

:+1:


House wise ir ratio

Build house wise income-return ratio by

[x] introduce a vector house_wise_IR as a member variable of the class player

[x] use the house_wise_IR vector of the playerclass. whenever a new house is constructed, compute the IR ratio and erase the vector.

[x] Finally enter all the IR ratios to the local and global databases

This method doesn't work when a player sells a ticker and its bought again later. Because there is no history of the house wise Investment or Returns available.
So instead use the following method:
1.) Create a vector that contains the house wise income
2.) When a ticket is sold, the data in the above vector isn't deleted. Instead, new data gets added on.

Using the house_wise_investment and house_wise_return vectors to calculate the IR ratio.
there is a problem of the IR data not being updated when the ticket is sold. So solve that


Riverpod Migration tool cannot open file

While using the migration tool after typing 'y' it throws an exception:
file:///e:/workspace_android/timlid/lib/provider/client/client_detail_provider.dart:9
Accept change (y = yes, n = no [default], A = yes to all, q = quit)?
y

Unhandled exception:
FileSystemException: Cannot open file, path = '/e:/workspace/myproject/lib/provider/client_detail_provider.dart' (OS Error: El nombre de archivo, el nombre de directorio o la sintaxis de la etiqueta del volumen no son correctos., errno = 123)
#0      _File.throwIfError (dart:io/file_impl.dart:635:7)
#1      _File.openSync (dart:io/file_impl.dart:479:5)
#2      _File.writeAsBytesSync (dart:io/file_impl.dart:604:31)
#3      _File.writeAsStringSync (dart:io/file_impl.dart:628:5)
#4      applyPatchesAndSave (package:codemod/src/util.dart:79:29)
#5      _runInteractiveCodemod (package:codemod/src/run_interactive_codemod.dart:314:9)
<asynchronous suspension>

I believe the error is related to the path or the Disk (my project is not in C: but in E:, maybe removing the first '/' before e). Also I think there is an error in the documentation
You should now be able to do:
riverpod --help

Should be riverpod_cli --help and riverpod_cli migrate

Seems to be an issue with the codemod package. I have submitted an issue there. Follow it for updates, if nothing happens for a few days, then I'll try to fix it myself. Feel free to figure out how to fix it if you want to migrate soon, otherwise, probably just wait.
riverpod --help
riverpod migrate

Works for me.

Thank you, it worked almost all the project, except almost at the end 2 files it stopped with
[SEVERE] Suggestor.generatePatches() threw unexpectedly.
type 'DynamicTypeImpl' is not a subtype of type 'InterfaceType' in type cast

Maybe because I didn't cast them, anyway I changed them myself and updated to 14.0.0 without a problem

Okay yeah, that is an unrelated issue. I can look into it.

I used it now with another project (just starting, not so much code) and it worked flawlessly, still I had to use run riverpod_cli migrate, I know its unrelated to the main problem maybe its just my environment variable of pub messing because there is a bin in AppData folder and one inside flutter folder somewhere else

Hmm, that seems strange, maybe you don't have $HOME\pub-cache\bin on your PATH?

I have it like $HOME\flutter\bin\cache\dart-sdk, maybe thats part of the problem, sometimes I also experience Could not find 'bin\riverpod.dart' in package 'riverpod' and closing the cmd and opening it again fixes it, weird

When you run dart pub global activate riverpod_cli does it have any warning / info message about setting your PATH environment variable to something in particular?

It says to move it to the one in  C:/Users/AppData/... but doing that gives me always another error Could not find a file named "pubspec.yaml" in "E:\Programs\flutter\bin\cache\dart-sdk\bin\hosted\pub.dartlang.org\_fe_analyzer_shared-12.0.0"., on the other hand it lets me run run riverpod --help without _cli

Is this still an issue with the new version?

I don't think this is an issue any longer, this can be closed. @EdwynZN if you still are running into trouble with your PATH variable open a different issue.

It says to move it to the one in  C:/Users/AppData/... but doing that gives me always another error Could not find a file named "pubspec.yaml" in "E:\Programs\flutter\bin\cache\dart-sdk\bin\hosted\pub.dartlang.org\_fe_analyzer_shared-12.0.0"., on the other hand it lets me run run riverpod --help without _cli

I also get this error if anyone has an answer then help me

Try running flutter pub cache repair


react-native face recognition

I would love to share this pretty nice library to the react native world to use.
This is the first time that we can see computer vision deals with react native and to support face recognition and detection on rn.
GitHub repo: react-native-facerecognition
Also since react native doesn't provide a straightforward way to use mobile hotspot I did something to help developers to deal with it and to make them able to use it so fast and easy.
GitHub repo: react-native-wifi-hotspot

@assemmohamedali there are a lot of other changes here, and a merge conflict, can you separate the changes and fix the conflicts?

I am planning a redesign + backend for https://native.directory so committing the libraries is fine.

I'm going to close this PR since its getting stale. You are free to submit a PR with the changes as separate PRS.
Thank you!


Website is down

Looks like your website getessence.io is having some issues.   All I'm able to see is a white page with the text

getessence.io
2017 Copyright. All Rights Reserved.
The Sponsored Listings displayed above are served automatically by a third party. Neither the service provider nor the domain owner maintain any relationship with the advertisers. In case of trademark issues please contact the domain owner directly (contact information can be found in whois).
Privacy Policy

Hi @jamesdbruner the project is discontinued by the company and didn't extended the domain. Contact me by email for any support.

Thanks for letting me know!


Does not play well with latest PhpStorm 2017.1 EAP

'loading…' instead of project tree.
threadDump.txt

same issue; gone after disabling the plugin

Fixed in 171.0


How to install a new .ca certificate file into an alpine docker?

I have a ca-cert.ca file and when I run:
update-ca-certificates corp.inbaytech.com-CA.crt
I receive:
WARNING: ca-cert.crt does not contain exactly one certificate or CRL: skipping
I am unsure how to import this certificate into my docker.
Any assistance would be incredibly valuable

I'm confused. Is your file named ca-cert.crt? Does it contain multiple entries?

No its' a single cert encapsulated by -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----

OK, the warning is normal. It is just saying that the ca-certificates.crt file has multiple certificates in the file and it is skipping it. It is related to https://github.com/gliderlabs/docker-alpine/issues/52 and https://github.com/gliderlabs/docker-alpine/issues/30.
Is the certificate actually not present in /etc/ssl/ca-certiciates.crt after importing?

Ah, gotcha.
On further review the certificate is present in /etc/ssl/certs/ca-certificates.crt which I suspect is equivalent to your spec.

I'm confused. Is your file named ca-cert.crt? Does it contain multiple entries?

Is it possible to add a crt if it has multiple entries?


Removed Constant.BRES references from the source and mocks.

What is the context of this PR?
removed BRES references from the code and tests.
First step: removed BRES from the source code production, not tests.

Once Darrell's questions have been answered and the merge is done, I'll run the unit/acceptance tests once more then approve it.  Looks good to me otherwise.


Can't set minZoom to 0

This check in your code doesn't allow to set minZoom to 0. Because 0 is falsy value.
return minZoom || DEFAULT_MIN_ZOOM;
https://github.com/istarkov/google-map-react/blob/master/src/google_map.js#L454

@cyrstron Great catch!

Same here minZoom:0, maxZoom:4 in fact is 3 to 4
<GoogleMapReact
        bootstrapURLKeys={{ key: 'xxxxxxxxxxxxxxxx' }}
            onGoogleApiLoaded={({map, maps}) =>
                map.mapTypes.set("roadmap", new maps.ImageMapType({
                    getTileUrl: function (coord, zoom) {
                        return "http://localhost:5000/images/plans/1/7f8c7dea-a57c-4b95-88e6-008ba99476f7_" + zoom + "_" +  coord.x + "_" + coord.y + ".png"
                    },
                    tileSize:new maps.Size(256,256),
                    name:"GoogleRoadMaps",
                    maxZoom:4,
                    minZoom:0
                }))
            }
            yesIWantToUseGoogleMapApiInternals
            defaultZoom={1}
            defaultCenter={{ lat: 48.124039, lng: 15.8339266 }}
            zoom={0}>
        </GoogleMapReact>

Any idea when you will push this bug?

I've never managed to get zoom to go below 4. I've tried minZoomOverride, but that appears to do nothing. I've just also tried setting minZoom to 1 to see whether @cyrstron's falsey bug was the issue, but still it refuses to go below 4. As I recall @istarkov didn't have a need to zoom < 4 and thought that keeping high zoom would prevent the need to worry about duplicate markers.
Was zoom < 4 ever working for anyone?

@itsmichaeldiego any idea when you will fixe this issue? I need set minZoom to 0 because i got my own plan picture :S

@btbensoft TBH I am suuuper busy this days, its an easy fix so feel free to collaborate if you need it soon! I can promise I will merge it quick ;)

@itsmichaeldiego I found way to fix my problem : minZoom to 1 and set the property minZoomOverride to true
maxZoom: 4,
minZoom: 1,
minZoomOverride: true

but now i got an other problem, when the map are in "repeat" zoom 1 : the markers are not well positioned :

@btbensoft There is clearly a problem with the logic here I am taking a look right now.

@itsmichaeldiego yes you are right for the zoom 0 fix.
But for the makers bug (when the map are repeat more that 2 time, see my exemple...). i think is more when you get the coordinate :  here ?
const pt = this.props.geoService.project(
          latLng,
          this.props.projectFromLeftTop
        );

@btbensoft Oh yeah, you're right, I was just taking a look, please create an issue for this, I will take care of the zoom 0 fix first and then will jump to this one.

@btbensoft Just to clarify, to set a minZoom, its always required to set overrideMinZoom, so if it was not working without the overrideMinZoom value, then that makes sense. What would make sense here is that if we set a minZoom, its obvious that we want to overrideMinZoom.

@thunderkid @btbensoft @carsy PR open -> #525 to address this issue, feel free to review or make comments.
My decision is to get rid of minZoomOverride property, I think that if we set a minZoom is clear that we want to override it, let me know what you guys think.

@btbensoft The problem you're describing in https://github.com/istarkov/google-map-react/issues/505#issuecomment-371421838, I believe its related to https://github.com/istarkov/google-map-react/issues/421

@btbensoft Can you try adding the following css rules to your marker component?
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

@thunderkid @btbensoft @carsy Okey guys, this has been fixed and published in version 0.33, but please pay double-attention to what it says on the docs:
WARNING: Setting this option can break markers calculation, causing no homeomorphism between screen coordinates and map.

I will be working on this to see if there is a possibility to handle small zooms and marker's positions, but in the meantime, keep in mind that it might be an issue.


ADD A QUIZ GAME PAGE

WILL ASK QUESTIONS WITH OPTIONS AND AT END DISPLAY THE SCORE SIMPLE PROJECT USING HTML AND CSS

@Swastik200 , thanks for your concern, but our project is not related to that. Our platform is focused on providing a medium to take and manage  quizzes and viewing stats.

@Swastik200, You can work on other issues. if you are facing any issue while running this project locally or while working on it you can ask for help


Added new articles and corresponding images

I've corrected the metadata dashes, but I haven't gone through the image lines yet.

These img tags will need addressing later, but the initial files can be approved.


[GUIDE] near-shell

we could use a comprehensive guide for NEAR Shell that includes content like this
https://github.com/near-examples/workshop--exploring-assemblyscript-contracts/tree/master/assembly/A.sample-projects/01.greeting#integration-tests-with-near-shell

@amgando @ashleynear I would be happy to take this over; @ashleynear could you fill me in if you and Jane already worked on it and if there is something that I should know about? Otherwise, I could create a draft and run it by some developer in the community to get feedback. Please let me know what you think

@AnaisUrlichs we did not :)

Issues completed, closing this epic :)


ci: run conformance tests in CI

The conformance suite has a lot of files, which run slowly. But we don't want to compile everything under release mode just to run the conformance suite because this will degrade CI time. So we should compile some of the dependencies under release mode for a middle ground.
In CI, we'll add
cargo coverage
git diff --exit-code --quiet

For reporting unintended snapshot updates.

https://github.com/Boshen/oxc/pull/444


CI: remove matplotlib from 32-bit linux job, it fails to build

This was a pinned release, and building Matplotlib from source was working 3 days ago but no longer does. It looks like a bug in Pip 22.0 which was released 2 days ago.
We don't really need Matplotlib in this job, we only have a couple of tests that actually need Matplotlib and those get skipped if it's not installed. Building Matplotlib from source doesn't really make sense here. So let's not do that - will speed up CI a bit as well.
Closes gh-15498
[skip github]

that fixed it


replace cryptonite by crypton

This is supposed to not change the actual code, because crypton is a copy of cryptonite.
PR checklist:

[ ] Test coverage for the proposed changes
[ ] PR description contains example output from repl interaction or a snippet from unit test output
[ ] Documentation has been updated if new natives or FV properties have been added. To generate new documentation, issue cabal run tests. If they pass locally, docs are generated.
[ ] Any changes that could be relevant to users have been recorded in the changelog
[ ] In case of  changes to the Pact trace output (pact -t), make sure pact-lsp is in sync.

Additionally, please justify why you should or should not do the following:

[ ] Confirm replay/back compat
[ ] Benchmark regressions
[ ] (For Kadena engineers) Run integration-tests against a Chainweb built with this version of Pact

@jwiegley Replay passes for the branch pact-crypton-migration on chainweb-node: https://github.com/kadena-io/chainweb-node/actions/runs/5467897928/jobs/9954805206. Can we get this in?


Default settig of allowed_mimetypes could lead to arbitrary file upload

Version information

Voyager: before 1.4

Description

Default upload file type of media is '*',media file type are commented, which means attacker with /admin access permission(any role) can upload php shell and execute. You can try uploading this https://github.com/flozz/p0wny-shell
https://github.com/the-control-group/voyager/blob/5753a2c39fba82a8a10497efa2d38c2bb213103f/publishable/config/voyager.php#L226
Steps To Reproduce
Steps to reproduce the behavior:

Login https://foo.bar/admin
Click on 'media'
Upload any php web shell in 'media'
Access the web shell with /storage/foo_path/shell.php

Expected behavior
Default setting should be only accept media type as you commented
'allowed_mimetypes' => [
'image/jpeg',
'image/png',
'image/gif',
'image/bmp',
'video/mp4',
],

I agree it would be better to have a more conservative default setting.
@soulfoodisgood Would you like to open a PR?
@emptynick @fletch3555 what are your thoughts?

I agree it would be better to have a more conservative default setting.
@soulfoodisgood Would you like to open a PR?
@emptynick @fletch3555 what are your thoughts?

I'm good with restricting it.  As long as it's configurable

I'm good with restricting it.  As long as it's configurable


Change client behavior on 503 from retry to failover

@uschi2000
Fixes https://github.com/palantir/http-remoting/issues/678

this looks good. i'll have to run for dinner now, but will take a more in-depth look later.

Ugh looks like the build failed :( I’ll be able to take a look later tonight
On Tue, Feb 27, 2018 at 17:52 Robert Fink<EMAIL_ADDRESS>wrote:

this looks good. i'll have to run for dinner now, but will take a more
in-depth look later.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/palantir/http-remoting/pull/686#issuecomment-369093226,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF4z26_7edwqx6iLkYL7c0uHZYPIHdbKks5tZLFogaJpZM4SV6tQ
.

thanks, @gregakinman

np! would like to cut 3.19.0 with this too if you weren't planning to already


Concurrency problem

This pr solves bug reported here https://github.com/sebastienros/yessql/issues/444
@sebastienros  IMO it is sth important to solve cause it causes concurrent read and save operations for the same document would end storing a document wiht unexpected data

We are glad to help. Ok we will keep an eye on what you commit finally to merge it in our project.
As far as I know the int check was due to a try and failure strategy. Because some queries return an int  instead of a complex object, and int doesn't need serialization and in fact it fails with current serialization line at code.


[MapLayers Widget] Map Layers widget breaks in 2d Viewport

When switching from 3d viewport to 2d viewport using the changeView and trying to click on the settings button in the Map layers widget breaks the widget.
https://github.com/user-attachments/assets/6a5a1061-b5ae-49cf-8d20-5b3ed6e262c3
Expected Behaviour:
The Map layers widget should be disabled in 2d Viewer.
Current Behaviour:
The Map layers widget is enabled in the 2d Viewer.
Proposed Solution:
Along with subscribing to the useActiveViewport hook. We should also subscribe to the onChangeView listener.

Version: 5.4.4
Version of iTwin.js: 4.8.0
Operating system: Windows
Browser: Chrome 131.0.6778.86

Shouldn't this be the responsibility of a the parent application who is providing/adding the map-layer-widget?

I think after investigating a bit that the best approach is to mimic what property grid did with their handling of hiding their widget when the selection set is empty (found here)
which is to say the handling of this shouldn't be in the widget, but it should be in the UiItemsProvider in a wrapper of the widget provided therein because it should be the standard handling within the AppUi system that all consumers of the widget using AppUi would want to reuse


[WIP] Add Tahoma scenes

Description:
This adds scenarios from Tahoma into HomeAssistant! Upon restart of HomeAssistant they will automatically be added to your setup!
Finally got around to implementing these scenes from the Tahoma component. They can be added in the Tahoma interface. This cuts down on API calls is a big way. Now only 1 call is needed to move any amount of covers!
This has been running in my own setup for a couple of days, it works great.
Cannot be merged yet since pypi package needs to be updated. Author said he would update it with my extra code today.
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#4698
Checklist:

[x] The code change is tested and works locally.

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass

Maybe @glpatcern can take a look at this too.

tahoma-api has been updated to 0.0.12, this is now ready to be reviewed / merged :+1:

tahoma-api has been updated to 0.0.12, this is now ready to be reviewed / merged :+1:


types and required

Hey thks for your lib, you saved me so much typing!
I just noticed that you couldn't mark a referenced type as being required
I had a quick look at your code but couldn't find where to make the update :(
root:
  foo: &fooType
    bar: string
    baz: required number
  qux: required *fooType

Cool, glad you found it useful!  The reference types are built-in feature of YAML so customizing how they work would be hard, but try this:
root:
  foo: &fooType
    bar: string
    baz: required number
  qux:
    .value: required
    <<: *fooType

I'm not sure it'll work, though -- let me know!  Also, if foo happens to have a .value child, it'll be overwritten in the qux reference.

nope it does not work, it adds a << node inside the compiled json file
not a big deal, you are still saving me hundreds of lines ;)

Huh, looks like I was using a stripped-down YAML schema when calling the
parser.  I switched to a full schema and pushed fireplan v0.1.5 -- can you
give it a try?  My tests show that the merge key works now, and nothing
else appears to be broken...
On Wed, Jul 15, 2015 at 12:13 AM, PG Herveou<EMAIL_ADDRESS>wrote:

nope it does not work, it adds a << node inside the compiled json file
not a big deal, you are still saving me hundreds of lines ;)
—
Reply to this email directly or view it on GitHub
https://github.com/pkaminski/fireplan/issues/3#issuecomment-121512163.

--
Piotr Kaminski<EMAIL_ADDRESS>"That bun is dirty.  Don't eat that bun."

Working like a charm
Thks man


Additional themes

Created some additional themes. Thought that other people might enjoy!

Hey :wave:
While we appreciate the PR, repositories in the Catppuccin GitHub organisation will only support official palettes from the Catppuccin colour scheme.
Thank you for sharing your customisations but I will be closing this PR as not planned, sorry!


Fatal error: exception DB.Path_not_prefix_root

I'm trying to infer a large project, and after few seconds the infer crashes abnormally. What this could be?

$ ./gradlew clean && infer -- ./gradlew build

Fatal error: exception DB.Path_not_prefix_root
Traceback (most recent call last):
File "/home/romano/infer-linux64-v0.3.0/infer/bin/infer", line 168, in
main()
File "/home/romano/infer-linux64-v0.3.0/infer/bin/infer", line 143, in main
capture_exitcode = imported_module.gen_instance(args, cmd).capture()
File "/home/romano/infer-linux64-v0.3.0/infer/bin/../lib/capture/gradle.py", line 75, in capture
return util.run_commands(cmds)
File "/home/romano/infer-linux64-v0.3.0/infer/bin/../lib/capture/util.py", line 40, in run_commands
if not cmd.start():
File "/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 689, in start
if self.capture() == os.EX_OK:
File "/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 451, in capture
return self.run_infer_frontend()
File "/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 442, in run_infer_frontend
self.args.analyzer
File "/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 358, in run_command
raise e
subprocess.CalledProcessError: Command '[u'/home/romano/infer-linux64-v0.3.0/infer/bin/InferJava', u'-project_root', '/home/romano/projects/MyApp', u'-results_dir', u'/home/romano/projects/MyApp/infer-out', u'-verbose_out', '/tmp/javac_pVNbVO.out', u'-models', u'/home/romano/infer-linux64-v0.3.0/infer/bin/../lib/java/models.jar', u'-no-static_final']' returned non-zero exit status 2

$ infer -v
Infer version v0.3.0
Copyright 2009 - present Facebook. All Rights Reserved.

Hi @romanoaugusto88,
This seems like a bug in Infer. Thanks for reporting it!

Could you please post the contents of infer-out/toplevel.log?
Can you try running ./gradlew clean && OCAMLRUNPARAM=b infer -- ./gradlew build and paste the result?

Hey @jvillard, here is the outputs. Hope it helps:
infer-out/toplevel.log:

[INFO] Running command /home/romano/infer-linux64-v0.3.0/infer/bin/infer -- ./gradlew build
[INFO] Path to infer script /home/romano/infer-linux64-v0.3.0/infer/bin/infer (/home/romano/infer-linux64-v0.3.0/infer/bin/infer)
[INFO] Infer version v0.3.0
Copyright 2009 - present Facebook. All Rights Reserved.

[INFO] Platform: Linux-3.8.0-44-generic-x86_64-with-elementary_OS-0.2.1-luna
[INFO] PATH=/home/romano/infer-linux64-v0.3.0/infer/bin:/home/romano/.opam/4.01.0/bin:/home/romano/.gvm/pkgsets/letras/global/bin:/home/romano/.gvm/gos/letras/bin:/home/romano/.gvm/pkgsets/letras/global/overlay/bin:/home/romano/.gvm/bin:/home/romano/.gvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/node/bin:/usr/local/jdk/bin
[INFO] SHELL=/bin/bash
[INFO] PWD=/home/romano/projects/ss/AndroidMyApp/App/MyApp
[INFO] Running with:

Gradle 2.2.1

Build time:   2014-11-24 09:45:35 UTC
Build number: none
Revision:     6fcb59c06f43a4e6b1bcb401f7686a8601a1fb4a

Groovy:       2.3.6
Ant:          Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM:          1.7.0_79 (Oracle Corporation 24.79-b02)
OS:           Linux 3.8.0-44-generic amd64

[ERROR] Failure during frontend, original command was

[u'inferJ', u'-g', u'-a', 'capture', u'javac', '-source', '1.6', '-target', '1.6', '-d', '/home/romano/projects/ss/AndroidMyApp/Libraries/com_actionbarsherlock/build/intermediates/classes/debug', '-g', '-encoding', 'UTF-8', '-bootclasspath', '/home/romano/Android/Sdk/platforms/android-18/android.jar', '-classpath', '/home/romano/Android/Sdk/extras/android/m2repository/com/android/support/support-v4/13.0.0/support-v4-13.0.0.jar'<EMAIL_ADDRESS>
./gradlew clean && OCAMLRUNPARAM=b infer -- ./gradlew build:

:ActionBarSherlock:clean
:AmazingListView:clean UP-TO-DATE
:MyApp:clean UP-TO-DATE
:NineOldAndroids:clean UP-TO-DATE
:SlidingTabs:clean UP-TO-DATE
:UtilLibrary:clean UP-TO-DATE
:ViewPageIndicator:clean UP-TO-DATE
:Volley:clean UP-TO-DATE

BUILD SUCCESSFUL

Total time: 7.734 secs
16:27:08.982 [ERROR] [system.err] Note: Some input files use or override a deprecated API.
16:27:08.985 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details.
16:27:10.807 [ERROR] [system.err] Note: Some input files use or override a deprecated API.
16:27:10.807 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details.
16:27:16.054 [ERROR] [system.err] Note: Some input files use or override a deprecated API.
16:27:16.055 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details.
16:27:16.055 [ERROR] [system.err] Note: Some input files use unchecked or unsafe operations.
16:27:16.055 [ERROR] [system.err] Note: Recompile with -Xlint:unchecked for details.
16:27:17.747 [ERROR] [system.err] Note: /home/romano/projects/ss/AndroidMyApp/Libraries/UtilLibrary/src/com/mycompany/utillibrary/Miscellaneous/Storage.java uses or overrides a deprecated API.
16:27:17.747 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details.
16:27:17.747 [ERROR] [system.err] Note: Some input files use unchecked or unsafe operations.
16:27:17.748 [ERROR] [system.err] Note: Recompile with -Xlint:unchecked for details.
16:27:19.382 [ERROR] [system.err] Note: Some input files use or override a deprecated API.
16:27:19.382 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details.
16:27:20.461 [ERROR] [org.gradle.api.Task] AAPT err(1422735772) : No Delegate set : lost message:/home/romano/projects/ss/AndroidMyApp/App/MyApp/MyApp/build/intermediates/exploded-aar/MyApp/ActionBarSherlock/unspecified/res/drawable-mdpi-v4/abs__ic_search.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
16:27:20.746 [ERROR] [org.gradle.api.Task] AAPT err(1422735772) : No Delegate set : lost message:/home/romano/projects/ss/AndroidMyApp/App/MyApp/MyApp/build/intermediates/exploded-aar/MyApp/ActionBarSherlock/unspecified/res/drawable-hdpi-v4/abs__ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
16:27:20.877 [ERROR] [org.gradle.api.Task] AAPT err(360939889) : No Delegate set : lost message:/home/romano/projects/ss/AndroidMyApp/App/MyApp/MyApp/build/intermediates/exploded-aar/MyApp/ActionBarSherlock/unspecified/res/drawable-hdpi-v4/abs__ic_go.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
16:27:23.182 [ERROR] [system.err] Note: Some input files use or override a deprecated API.
16:27:23.183 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details.
16:27:23.183 [ERROR] [system.err] Note: Some input files use unchecked or unsafe operations.
16:27:23.183 [ERROR] [system.err] Note: Recompile with -Xlint:unchecked for details.
16:28:28.147 [ERROR] [org.gradle.api.Task] AAPT err(1708424840) : No Delegate set : lost message:/home/romano/projects/ss/AndroidMyApp/App/MyApp/MyApp/build/intermediates/exploded-aar/MyApp/ActionBarSherlock/unspecified/res/drawable-hdpi-v4/abs__ic_clear_disabled.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
16:28:28.289 [ERROR] [org.gradle.api.Task] AAPT err(1364812987) : No Delegate set : lost message:/home/romano/projects/ss/AndroidMyApp/App/MyApp/MyApp/build/intermediates/exploded-aar/MyApp/ActionBarSherlock/unspecified/res/drawable-xhdpi-v4/abs__ic_clear_disabled.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
16:28:28.591 [ERROR] [org.gradle.api.Task] AAPT err(135615744) : No Delegate set : lost message:/home/romano/projects/ss/AndroidMyApp/App/MyApp/MyApp/build/intermediates/exploded-aar/MyApp/ActionBarSherlock/unspecified/res/drawable-hdpi-v4/abs__ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
16:28:28.599 [ERROR] [org.gradle.api.Task] AAPT err(1423856212) : No Delegate set : lost message:/home/romano/projects/ss/AndroidMyApp/App/MyApp/MyApp/build/intermediates/exploded-aar/MyApp/ActionBarSherlock/unspecified/res/drawable-xhdpi-v4/abs__ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
16:28:28.629 [ERROR] [org.gradle.api.Task] AAPT err(135615744) : No Delegate set : lost message:/home/romano/projects/ss/AndroidMyApp/App/MyApp/MyApp/build/intermediates/exploded-aar/MyApp/ActionBarSherlock/unspecified/res/drawable-hdpi-v4/abs__ic_search.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
16:28:28.734 [ERROR] [org.gradle.api.Task] AAPT err(2143102079) : No Delegate set : lost message:/home/romano/projects/ss/AndroidMyApp/App/MyApp/MyApp/build/intermediates/exploded-aar/MyApp/ActionBarSherlock/unspecified/res/drawable-xhdpi-v4/abs__ic_go.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
16:28:28.821 [ERROR] [org.gradle.api.Task] AAPT err(805909275) : No Delegate set : lost message:/home/romano/projects/ss/AndroidMyApp/App/MyApp/MyApp/build/intermediates/exploded-aar/MyApp/ActionBarSherlock/unspecified/res/drawable-mdpi-v4/abs__ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
16:28:30.414 [ERROR] [system.err] Note: Some input files use or override a deprecated API.
16:28:30.414 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details.
16:28:30.414 [ERROR] [system.err] Note: Some input files use unchecked or unsafe operations.
16:28:30.415 [ERROR] [system.err] Note: Recompile with -Xlint:unchecked for details.
16:28:59.735 [ERROR] [system.err] Note: Some input files use or override a deprecated API.
16:28:59.735 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details.
16:28:59.736 [ERROR] [system.err] Note: Some input files use unchecked or unsafe operations.
16:28:59.736 [ERROR] [system.err] Note: Recompile with -Xlint:unchecked for details.
16:29:04.164 [ERROR] [system.err] Note: /home/romano/projects/ss/AndroidMyApp/Libraries/UtilLibrary/src/com/mycompany/utillibrary/Miscellaneous/Storage.java uses or overrides a deprecated API.
16:29:04.165 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details.
16:29:04.165 [ERROR] [system.err] Note: Some input files use unchecked or unsafe operations.
16:29:04.165 [ERROR] [system.err] Note: Recompile with -Xlint:unchecked for details.
16:29:06.907 [ERROR] [system.err] Note: Some input files use or override a deprecated API.
16:29:06.907 [ERROR] [system.err] Note: Recompile with -Xlint:deprecation for details.
Fatal error: exception DB.Path_not_prefix_root
Called from file "parsing.ml", line 162, characters 4-28
Traceback (most recent call last):
File "/home/romano/infer-linux64-v0.3.0/infer/bin/infer", line 168, in
main()
File "/home/romano/infer-linux64-v0.3.0/infer/bin/infer", line 143, in main
capture_exitcode = imported_module.gen_instance(args, cmd).capture()
File "/home/romano/infer-linux64-v0.3.0/infer/bin/../lib/capture/gradle.py", line 75, in capture
return util.run_commands(cmds)
File "/home/romano/infer-linux64-v0.3.0/infer/bin/../lib/capture/util.py", line 40, in run_commands
if not cmd.start():
File "/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 689, in start
if self.capture() == os.EX_OK:
File "/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 451, in capture
return self.run_infer_frontend()
File "/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 442, in run_infer_frontend
self.args.analyzer
File "/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 358, in run_command
raise e
subprocess.CalledProcessError: Command '[u'/home/romano/infer-linux64-v0.3.0/infer/bin/InferJava', u'-project_root', '/home/romano/projects/ss/AndroidMyApp/App/MyApp', u'-results_dir', u'/home/romano/projects/ss/AndroidMyApp/App/MyApp/infer-out', u'-verbose_out', '/tmp/javac_akLYkb.out', u'-models', u'/home/romano/infer-linux64-v0.3.0/infer/bin/../lib/java/models.jar', u'-no-static_final']' returned non-zero exit status 2

Similar issue with a different project / build system:
 1:01.37 Fatal error: exception DB.Path_not_prefix_root
 1:01.37 Called from file "parsing.ml", line 162, characters 4-28
 1:01.37 [ERROR] Failure during frontend, original command was
 1:01.37
 1:01.37 [u'inferJ', u'-g', u'-a', 'capture', u'javac', '-target', '1.7', '-source', '1.7', '-classpath', '/var/lib/jenkins/.mozbuild/android-sdk-linux/platforms/android-21/android.jar:/var/lib/jenkins/.mozbuild/android-sdk-linux/tools/lib/lint.jar:/var/lib/jenkins/.mozbuild/android-sdk-linux/tools/lib/lint-checks.jar', '-bootclasspath', '/var/lib/jenkins/.mozbuild/android-sdk-linux/platforms/android-21/android.jar', '-encoding', 'UTF8', u'-g', '-d', 'annotationProcessors-classes', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/AnnotationInfo.java', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/AnnotationProcessor.java', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/classloader/AnnotatableEntity.java', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/classloader/ClassWithOptions.java', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/classloader/IterableJarLoadingURLClassLoader.java', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/classloader/JarClassIterator.java', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/CodeGenerator.java', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/SDKProcessor.java', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/utils/AlphabeticAnnotatableEntityComparator.java', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/utils/GeneratableElementIterator.java', '/var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/utils/Utils.java']
 1:01.37
 1:01.37
 1:01.37 Traceback (most recent call last):
 1:01.37   File "/opt/infer/infer/bin/inferJ", line 23, in <module>
 1:01.37     stats = analysis.start()
 1:01.37   File "/var/lib/jenkins/opt/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 689, in start
 1:01.37     if self.capture() == os.EX_OK:
 1:01.37   File "/var/lib/jenkins/opt/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 451, in capture
 1:01.37     return self.run_infer_frontend()
 1:01.37   File "/var/lib/jenkins/opt/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 442, in run_infer_frontend
 1:01.37     self.args.analyzer
 1:01.37   File "/var/lib/jenkins/opt/infer-linux64-v0.3.0/infer/bin/inferlib.py", line 358, in run_command
 1:01.37     raise e
 1:01.37 subprocess.CalledProcessError: Command '[u'/var/lib/jenkins/opt/infer-linux64-v0.3.0/infer/bin/InferJava', u'-project_root', '/var/lib/jenkins/workspace/fennec-infer/obj-arm-linux-androideabi/build/annotationProcessors', u'-results_dir', '/var/lib/jenkins/workspace/fennec-infer/infer', u'-verbose_out', '/tmp/javac_HOiWDZ.out', u'-models', u'/var/lib/jenkins/opt/infer-linux64-v0.3.0/infer/bin/../lib/java/models.jar', u'-no-static_final']' returned non-zero exit status 2
 1:01.38 /var/lib/jenkins/workspace/fennec-infer/config/makefiles/java-build.mk:136: recipe for target 'annotationProcessors.jar' failed

Hi @sylvestre,
Could you try pulling the latest Infer code, recompiling, running it again, and reporting the result? a62c71290b4f03db93277fe8abc01911631277c0 added a better error message that should help us debug this problem.

@sblackshear infer built. The error message is indeed much better:  "The project root /var/lib/jenkins/workspace/fennec-infer/obj-arm-linux-androideabi/build/annotationProcessors is not a prefix of /var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/AnnotationInfo.java" but I am not sure infer is right here (it worked with 0.1.0)

Try passing -project_root /var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/ to your top-level Infer command and see if that fixes the problem.
Thanks for working with us on this--I think we need to make Infer a bit smarter at detecting the project root for Gradle projects.

Welcome! FYI, I am not using Gradle but the custom Mozilla build system (building firefox for android here).
Failed the same way: The project root /var/lib/jenkins/workspace/fennec-infer/obj-arm-linux-androideabi/build/annotationProcessors is not a prefix of /var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/AnnotationInfo.java with --project_root ...
If you want to see the full log: http://relman-ci.mozilla.org/job/fennec-infer/97/console

Thanks, the full log/the link to the fennec-infer source inside is very helpful! I think I see the problem (project_root flag not being passed down the line properly); I'll see if I can get it to work properly.

I've just pushed a fix that should stop this exception from occurring. Feel free to close the issue if this fixes it on your end.

OK. It fixes the bug but the warning is displayed on every call... This is flooding the log:
http://relman-ci.mozilla.org/job/fennec-infer/101/consoleFull
I don't know if it is possible for you but showing it once should be enough.

Thanks for the report.
Fix in https://github.com/facebook/infer/commit/28f5025862b0b145ee64ce4a4ed44b94eeb071c0.


Any plan of releasing training/finetuning code?

Hello. Our method is training-free. All the code associated with our method is already released.


store.getState() is not a function

Please add getState() to mock store.

False alarm: configureMockStore returns a creator function..

Just in case anyone else was looking for this..
import React from "react";
import { render } from "enzyme";
import { MemoryRouter } from "react-router";
import configureStore from "redux-mock-store";
import App from "../src/App";

const AppWithMemoryRouter = App(MemoryRouter);
const middlewares = [];
const mockStore = configureStore(middlewares);

describe("The App component", () => {
    test("should render when passed a MemoryRouter and mocked Redux store.", () => {
        const store = mockStore({}); // This is the important line.
        const tree = render(
            <AppWithMemoryRouter
                store={store}
            />
        );
        expect(tree).toMatchSnapshot();
    });
});


Refine GPRs in Pentose phosphate pathway

Description of the issue:
Suggest following changes with corresponding reasons:

Modify GPR of MAR04354 by removing ENSG00000079739 that only catalyze glucose
Associate compartment-specific GPR: assign ENSG00000049239 to MAR04623, ENSG00000130313 to MAR04625
Remove irrelevant gene ENSG00000171174 from MAR08074
Remove ENSG00000158019 from HumanGEM, because it's a component of the BRCA1-A complex that doesn't involve in metabolic process
Replace GPR rule of MAR04476 with ENSG00000148057 that needs to be added to HumanGEM

I hereby confirm that I have:

[X] Done this analysis in the main branch of the repository
[X] Checked that a similar issue does not exist already

if remove gene ENSG00000171174 from MAR08074, it will have blank GPR. Although no direct evidence supports the existence of this reaction that also appears as dead-end, but still no exactly sure about the removal so will keep this gene to MAR08074.


TypeError with Python 3.9 in seals 0.2

I receive the following TypeError:
    from seals import atari, util
  File "/home/pavel/anaconda3/envs/py-3-9-test/lib/python3.9/site-packages/seals/atari.py", line 8, in <module>
    from seals.util import (
  File "/home/pavel/anaconda3/envs/py-3-9-test/lib/python3.9/site-packages/seals/util.py", line 140, in <module>
    class MaskScoreWrapper(
  File "/home/pavel/anaconda3/envs/py-3-9-test/lib/python3.9/typing.py", line 1037, in __init_subclass__
    raise TypeError(f"Some type variables ({s_vars}) are"
TypeError: Some type variables (+_ScalarType_co) are not listed in Generic[~ActType]

How to reproduce

create a new virtual environment with python 3.9
pip install seals==0.2
python -c "import seals"

This problem doesn't occur if you use python 3.8.
Also, downgrading to 0.1.5 solves this as well.
So, maybe it's related to changes to typing in python 3.9?
I'm not sure if seals officially supports python 3.9, but imitation presumably does and that's where I first ran into this problem.

Same issue with python 3.10 and 3.11

Closing this, since in my cursory tests this seems to be fixed in the 0.2.1 hotfix.


PowerToys shortcuts in Shortcut Guide

Description of the new feature / enhancement
Add an option so that the Shortcut Guide will show all the PowerToys shortcuts in addition to just Windows shortcuts.
Scenario when this would be used?
I forget what the PowerToys specific shortcuts are, but it's easy to remember holding down Win, so this would benefit anybody who keeps forgetting PowerToys shortcuts.
Supporting information
No response

I was thinking about the same thing. And if there wouldn't be enough space on the screen, an alternative would be to add all enabled toys to the taskbar icon's context menu. Or both that menu and the shortcut guide.

I agree! As a new PowerToys user, having these shortcuts at an arm's length is vital for me to learning how to use the application effectively.

/dup https://github.com/microsoft/PowerToys/issues/15405


fix: Fix iOS build

Hi everyone,
On iOS, Crowdin injects invalid languages with 3 characters.
The previous fix (https://github.com/openfoodfacts/smooth-app/commit/059ca727a687ab42fb67f57dd200d5f4e7bd31b0) was not enough and the app doesn't build on the latest version of Xcode.
This PR ensures the removal of all references.
Note: I really love the "lol" language 🤭

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (f98d7d4) 9.67% compared to head (d41cee6) 9.67%.

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #4914   +/-   ##
=======================================
  Coverage     9.67%   9.67%
=======================================
  Files          319     319
  Lines        16147   16147
=======================================
  Hits          1563    1563
  Misses       14584   14584

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


getMvpDelegate().onDestroy() not called in MvpAppCompatFragment in some cases

For reproducing
State 1.  Activity -> FullScreenFragment1
Then run
        fragmentTransaction
            .replace(fragmentContainerId, FullScreenFragment2, screen.screenKey)
            .addToBackStack(screen.screenKey)
            .commit()

State 2. Activity -> FullScreenFragment1 ->  FullScreenFragment2
Collapse the app and restore it.
Then remove all fragments and add another.
Log for FullScreenFragment1

        Start FullScreenFragment1

FullScreenFragment1.onAttach()
FullScreenFragment1.providePresenter()
FullScreenFragment1.onCreateView()
FullScreenFragment1.onViewCreated()
FullScreenFragment1.onStart()
FullScreenFragment1.onResume()

        Start FullScreenFragment2

FullScreenFragment1.onPause()
FullScreenFragment1.onStop()
FullScreenFragment1.onDestroyView()

        Hide

FullScreenFragment1.onSaveInstanceState() isStateSaved = true

        Restore

nothing called for  FullScreenFragment1

        Go away

FullScreenFragment1.onDestroy() isStateSaved == true
FullScreenFragment1.onDetach()

As a result getMvpDelegate().onDestroy() will not be called for FullScreenFragment1
This is because onStart() not called for fragments in backstack and variable isStateSaved will be true.
Possible solution is the using  activity.isChangingConfigurations() instead of isStateSaved

Can you please specify reproduction steps a bit more clearly? I can't quite understand how exactly should I "remove all fragments and add another" to reproduce this issue.

Seems I have similar issue, but with different flow. You just need to open activity for result and change fragments in onActivityResult when it's closed.
Simple project to reproduce the issue: https://drive.google.com/file/d/1FXbj1F0norFwjzyMM-z8MaSkmkg20ZAU/view?usp=sharing

Can you please specify reproduction steps a bit more clearly? I can't quite understand how exactly should I "remove all fragments and add another" to reproduce this issue.

For reproduce you need clear backstack in fragment manager, e.g.
fragmentManager.popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);

Now i use this implementation (mixed with Mosby's solution) :
open class MvpAppCompatFragment : Fragment, MvpDelegateHolder {
...

    override fun onDestroy() {
        super.onDestroy()

        //We leave the screen and respectively all fragments will be destroyed
        if (requireActivity().isFinishing) {
            getMvpDelegate().onDestroy()
            return
        }

        // When we rotate device isRemoving() return true for fragment placed in backstack
        // http://stackoverflow.com/questions/34649126/fragment-back-stack-and-isremoving
        if (activity?.isChangingConfigurations == true) {
            return
        }

        var anyParentIsRemoving = false
        var parent = parentFragment
        while (!anyParentIsRemoving && parent != null) {
            anyParentIsRemoving = parent.isRemoving
            parent = parent.parentFragment
        }

        if (!isInBackStackAndroidX()) {
            getMvpDelegate().onDestroy()
        }
    }

    override fun getMvpDelegate(): MvpDelegate<*> {
        if (mvpDelegate == null) {
            mvpDelegate = MvpDelegate(this)
        }

        return mvpDelegate as MvpDelegate<out MvpAppCompatFragment>
    }
}

fun Fragment.isInBackStackAndroidX(): Boolean {
/*
    // see https://github.com/sockeqwe/mosby/blob/6edf7f3674013b57bde3fb11ae139a30680286e3/utils-fragment/src/main/java/android/support/v4/app/BackstackAccessor.java
    // and https://github.com/sockeqwe/mosby/blob/master/mvi/src/main/java/com/hannesdorfmann/mosby3/FragmentMviDelegateImpl.java
    // and this https://github.com/grandcentrix/ThirtyInch/issues/206
    val writer = StringWriter()
    dump("", null, PrintWriter(writer), null)
    val dump: String = writer.toString()
    return !dump.contains("mBackStackNesting=0")
*/

    //  see https://github.com/grandcentrix/ThirtyInch/pull/205/commits/aaea0a2994dda83876d360fef593a8c8a4df0639
    return try {
        val backStackNestingField: Field = Fragment::class.java.getDeclaredField("mBackStackNesting")
        backStackNestingField.isAccessible = true
        val backStackNesting: Int = backStackNestingField.getInt(this)
        backStackNesting > 0
    } catch (e: NoSuchFieldException) {
        throw RuntimeException(e)
    } catch (e: IllegalAccessException) {
        throw RuntimeException(e)
    }
}

Thank you for clarification! I'll look at this issue soon.

So yeah, it is definitely a problem. I kinda want to stop using those hacky solutions but it seems there is no official way to check if fragment is removing forever. I have another idea though. What if for every MvpFragment we add some retained child fragment so we could use its onDestroy lifecycle hook to know if our parent fragment is removing completely? I checked this approach in your scenario and looks like it's working fine. I should check it in another cases.
@xanderblinov @alaershov what do you think about this approach?

There kinda is a way, take a look at how the viewModelStore is implemented in JetPack ViewModel. There is a check, something like activity.isFinishing && !fragment.isChangingConfigurations.
The only problem with this check is that it does not handle "Don't keep activities" flag. Like you have an Activity, go forward, go back, and ViewModel is recreated.
This is not so bad, because it's a developer flag, and official doc states that this behavior never actually happens in production. But some hacky vendors enable this flag by default, and break apps.
So we have 2 options I'm aware of: ignore the problem with "Don't keep activities" and behave like ViewModels, or keep using our hacky solution.

What if we just get rid of isStateSaved completely and check Activity.isChangingConfigurations() instead:
if (activity?.isChangingConfigurations == true) return

?

So it seems for me we have 3 options to fix this:

Reset isStateSaved flag for fragments in backstack. It seems like when you hide and show application no callbacks are called so we have to reset this flag from outside component. It seems like Activity#onStart() might be a good place for this. There is another problem though - getting fragments from FragmentManager backstack is not an easy task. Only solution that I found require reflection:

override fun onStart() {
    super.onStart()
    try {
        val activeFragmentMethod = FragmentManager::class.java.getDeclaredMethod("getActiveFragments")
        activeFragmentMethod.isAccessible = true
        @Suppress("UNCHECKED_CAST")
        val activeFragments = activeFragmentMethod.invoke(supportFragmentManager) as List<Fragment>
        activeFragments.forEach {
            (it as? MvpFragment)?.resetSavedStateFlag()
        }
    } catch (t: Throwable) {
        Log.w(javaClass.simpleName, t)
    }
}

Obvious drawbacks are - already hacky solution became even more hacky, reflection usage (which is slow on Android), usage of private api which may change unpredictably and also increased difficulty to properly setup library for users when they are not using our base containers.

Try to solve initial problem (incorrect isRemoving flag) with another approach. Looks like instead of using isStateSaved flag we can use following check:

override fun onDestroy() {
    super.onDestroy()

    if (activity?.isFinishing == true) {
        mvpDelegate.onDestroy()
        return
    }

    if (activity?.isChangingConfigurations == true && isInBackStack) {
        return
    }

    if (isRemoving) {
        mvpDelegate.onDestroy()
        return
    }

    val isAnyParentRemoving = generateSequence(parentFragment) { parentFragment }
            .any { it.isRemoving }
    if (isAnyParentRemoving) {
        mvpDelegate.onDestroy()
    }
}

private val isInBackStack: Boolean
    get() {
        return try {
            val backStackNestingField = Fragment::class.java.getDeclaredField("mBackStackNesting")
            backStackNestingField.isAccessible = true
            val backStackNesting: Int = backStackNestingField.getInt(this)
            backStackNesting > 0
        } catch (t: Throwable) {
            false
        }
    }

Again, very hacky solution, usage of private api, reflection, but not that different from current one in terms of setup difficulty. Actually in this case we can get rid of isStateSaved flag and move onDestroy logic to some utility class which will simplify library setup for users (no need to copy-paste this logic from MvpFragment).

Stop Don't keep Activities support. I mean, if even android architecture components don't support this, why should we keep all this hacky stuff in our library? Yeah, I understand we cannot just change this behavior because many library users may rely on it, but maybe we can add an option for users to decide which one to use?

So we had some internal discussion about this issue and also I've done some research which led to creating new issue in androidx.fragment library. Basically android fragments using mBackStackNesting field to identify if fragment is finishing or not. Here is relevant line where you can see this. This approach tho' have one issue - mBackStackNesting is > 0 even if we add our fragment after state save which leads to some unpleasant memory leaks.
It seems to me that checking if fragment saves its state before onDestroy is the only way to be sure if fragment is finishing or not, so I'll stick with option 1 for now. I also have some ideas how to make MvpDelegate handling easier, maybe even without need to extend MvpFragment's.

Hi, I faced with similar issue when I use ViewPager2 with FragmentStateAdapter. When we leave screen with ViewPager inner presenters for fragments(pages) are not destroying. FragmentStateAdapter use removeFragment in this method mFragmentManager.saveFragmentInstanceState is called, and after it mFragmentManager.beginTransaction().remove(fragment).commitNow();
For this case moxy doesn't call this.getMvpDelegate().onDestroy(); because isStateSaved is true. But I think it isn't a moxy problem, it is for your information.


Servers list with json error, cannot unmarshal string into Go struct field Server.port of type int

issue
coolify servers list
json: cannot unmarshal string into Go struct field Server.port of type int
Steps to reproduce

Install coolify on remote server
Setup DNS for FQDN
Test all good (access, resources, proxy ;... no issues at all)
install CLI
`coolify instances add -d "https://FQDN" "token"
test coolify instances version => works fine
test coolify servers list => error

I have tested this in postman and it works, it listed all my servers. I think this is a go struct issue where the port has to be valide but in my case, FQDN is set and has no port


As a user, I am confused when I am not redirected to the app after login

This is somewhat related to #7
As a user, I am confused that the login flow does not take me to the app again but stays within the browser.
This can happen because the Android SDK uses CustomTabs for redirect to browser.blockstack.org.
The solution is to use verified app links.
Todo:

document this well for developers
add warning in the SDK if links are not verified.

Thanks friedgar, I will send this along and make sure it gets in front of the right people.

Warning added, documentation improved


Provide a mechanism to automount configmap/secret into devworkspaces

Che Server provides an ability to annotate secrets in a special way which will lead it to be mounted into each/specified devworkspace/container.
DevWorkspace Operator should provide the same ability, it's going to be used for:

user may store maven settings or other stuff there;
Che can provide custom CA or different settings, like registries URL, dashboard URL, ...;

P.S. we may need also provide additional selectors to match only Che or WTO devworkspaces.

fixed by https://github.com/devfile/devworkspace-operator/pull/417


Updated CSS selector to fix menus not working

Purpose
Menus were broken on the contributors page as a result of my PR.  This PR fixes that.
Changes
This was due to a bad CSS selector which effectively disabled buttons.  I fixed this CSS selector to only select the ones that were necessary.
Side Effects
Should be none

Cherry-picked the commit into release/0.60.0. Please send future feature fixes to the release branch.


fix(pyclient ci): validate version arg in create-release

Summary:
Fix the release CI to accept any version number and major, minor, patch as its argument. My test script for the versionNumber logic is below.
Notes:

set-output was deprecated, so moved over to the new thing.
tried bump-my-version, but it wasn't a significant improvement and had dependency resolver issues in pip install -r requirements.api.txt -r requirements.dev.txt in our Dockerfile.
regex tests.

# Try (major|minor|patch|5.3.0|blah|<IP_ADDRESS>)
versionName=major
allowed_pattern="^(major|minor|patch|[0-9]+\.[0-9]+\.[0-9]+)$"

if [[ ! $versionName =~ $allowed_pattern ]]; then
  echo "\nInvalid version name: $versionName"
  exit 1
fi

if [[ $versionName =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
  NEXT_TAG="$versionName"
else
  NEXT_TAG=$(bump2version --dry-run --list $versionName | grep ^new_version | sed -r s,"^.*=",,)
fi
echo "next_tag=$NEXT_TAG"

Prerequisites:

[x] Unless it is a documentation hotfix it should be merged against the dev branch
[x] Branch is up-to-date with the branch to be merged with, i.e. dev
[x] Build is successful
[x] Code is cleaned up and formatted

Cleaned up the commit log by squashing the edits.


Internet traffic through vWAN Router -> NVA -> Internet

Hi Azure Team,
I am wondering if there's a chance to route traffic from a spoke through a connected vWAN hub through a NVA to the Internet.
So Spoke -> vWAN -> NVA -> Internet.
You mentioned in your docs that this can be realized with direct VNET peering. However, direct VNET peering does not really scale well (sure we can build some automation around). But I thought with Azure vWAN, a full-meshed connectivity service, this could be accomplished directly with the vWAN hub and custom routing.
Is there any way to achieve this?
Thank you so much!
Best
Daniel

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

ID: 609f525c-c228-7acc-5afa-1b1a6ca9631f
Version Independent ID: 2443f9ac-c558-2a58-e886-0c132c2e9372
Content: Route traffic through NVAs by using custom settings - Azure Virtual WAN
Content Source: articles/virtual-wan/scenario-route-through-nvas-custom.md
Service: virtual-wan
GitHub Login: @cherylmc
Microsoft Alias: cherylmc

Thank you for your feedback! We will review and update as appropriate.

Thank you for you dedication to our documentation.
Unfortunately, we have been unable to review this issue in a timely manner. We sincerely apologize for the delayed response. We are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


The homepage pictures aren't blurry, but they're not as clear as they used to be on the old site. I've listed some pages where there is this issue. Please compare the pages with the old live.
https://www.moleculardevices.com/products/microplate-readers/multi-mode-readers/spectramax-i3x-readers
https://www.moleculardevices.com/products/microplate-readers
https://www.moleculardevices.com/
https://www.moleculardevices.com/products/microplate-readers/multi-mode-readers/spectramax-id3-id5-readers
https://www.moleculardevices.com/products/3d-biology/3d-ready-organoid-expansion-service
https://www.moleculardevices.com/applications/3d-cell-models/organoids

Updated content in
https://www.moleculardevices.com/products/microplate-readers/multi-mode-readers/spectramax-i3x-readers
https://www.moleculardevices.com/products/microplate-readers

Unfortunately I don't find page https://www.moleculardevices.com/products/3d-biology/3d-ready-organoid-expansion-service to get original picture(s) from (https://live-md30.pantheonsite.io/products/3d-biology/3d-ready-organoid-expansion-service provides 404). Can you provide the pictures?

@lydiapuric  You can find this image here  - https://live-md30.pantheonsite.io/products/3d-biology/custom-organoid-expansion-service
The banner image is still blurry on this page https://www.moleculardevices.com/products/microplate-readers/multi-mode-readers/spectramax-id3-id5-readers

@MeghnaTewari Can you please recheck
https://www.moleculardevices.com/products/3d-biology/3d-ready-organoid-expansion-service and
https://www.moleculardevices.com/products/microplate-readers/multi-mode-readers/spectramax-id3-id5-readers
Thanks!


MotionType::VISUALIZATION_ONLY

Motivation and Context
This PR adds the VISUALIZATION_ONLY MotionType allowing the Habitat Simulator object API to be leverage to create and manipulate objects which can be seen in visual sensors but do not impact physics simulation or collision checking/response.
Added support for "is_visible" and "is_collidable" tags in object configuration files.
Follow-up work:

Add an API for programmatically adding/removing the render asset (ie., modifying "is_visible").

How Has This Been Tested
Added tests for VISUALIZATION_ONLY object behavior when checking contacts and raycasting.
Possible additional testing I didn't think was necessary:

duplicate remove_object() tests for sleeping islands. Same method used as when removing an object, so nothing really new to test here.
test switching to/from various other MotionTypes and expected simulation behaviors.We re-create the btRigidBody in these case by the same method as switching between other types, so nothing new to test.

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have completed my CLA (see CONTRIBUTING)
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

"A BulletRigidObject doesn't necessarily have an attached Bullet rigid body???".
Well in Bullet simulation mode, all objects have a btRigidBody, it just may not be active in the world.

Regarding PhysicsManager, @jturner65 has been making similar comments for awhile. Some kind of intermediate "ObjectManager" may be called for with a subset on kinematic functionalities. Open to discussing this.

I think this kind of behavior should be governed by a flag toggling collisions instead of a motion type (i.e. the existing is_collidable flag). From a user's perspective, I can imagine visualization objects able to exhibit both kinematic and dynamic behavior being desirable.

I'm not sure we want to support a dynamic rigid object with no collision shape. It would just fall forever unless manually controlled to do otherwise. 🤔  Only reason I can think of would be visual effects like particle systems.

I'm not sure we want to support a dynamic rigid object with no collision shape. It would just fall forever unless manually controlled to do otherwise. thinking Only reason I can think of would be visual effects like particle systems.

Animation as well, as was stated elsewhere. I don't disagree that some management might be necessary for such objects (we probably ought to have some kind of distant object clean up anyway), but my point is just that it seems a bit heavy handed, and certainly semantically inappropriate, to manage this behavior through motion type.

I think this kind of behavior should be governed by a flag toggling collisions instead of a motion type (i.e. the existing is_collidable flag). From a user's perspective, I can imagine visualization objects able to exhibit both kinematic and dynamic behavior being desirable.

I'm not sure we want to support a dynamic rigid object with no collision shape. It would just fall forever unless manually controlled to do otherwise. 🤔 Only reason I can think of would be visual effects like particle systems.

What it seems we really want are ethereal/ghost objects which aren't affected by gravity.

Well, this is quite an odd CI failure...

@aclegg3 You may want to modify this function in this PR: https://github.com/facebookresearch/habitat-sim/blob/706b23f823cd83b368438fe7f475a89b6ee179ef/examples/tutorials/nb_python/ECCV_2020_Interactivity.py#L1028
Also we should really move that function to viz_utils. 👍

CI error was just it being out of sync with master.

Feature replaced with #932.


fix bug API reuquest was proxyed in leader

Codecov Report

Merging #438 into master will increase coverage by 1.15%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #438      +/-   ##
==========================================
+ Coverage   42.04%   43.19%   +1.15%
==========================================
  Files          22       22
  Lines       11095    11095
==========================================
+ Hits         4665     4793     +128
+ Misses       5222     5082     -140
- Partials     1208     1220      +12

Continue to review full report at Codecov.

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


Default I2S output to different GPIO pins?

When I was building usb_sound_card from the pico-playground repo, I had to define a different set of GPIO pins in the CMakeLists.txt file because GP25 was not exposed on the Raspberry Pi Pico.
https://github.com/raspberrypi/pico-extras/blob/f5c7be9a86e3131cd13d2cc3493b84b23676f8c4/src/rp2_common/pico_audio_i2s/include/pico/audio_i2s.h#L99-L107
So, a default PICO_AUDIO_I2S_CLOCK_PIN_BASE of 25 doesn't sound great. Shouldn't this be a different pin? In my case, I set PICO_AUDIO_I2S_CLOCK_PIN_BASE to 26 and PICO_AUDIO_I2S_DATA_PIN to 28. This leaves the WS signal, which then is 27 because that is PICO_AUDIO_I2S_CLOCK_PIN_BASE+1. All of these pins are exposed on the Pico.

fixed

fixed


Remove fmt.Sprintf call in attribute Render

Just concatenating the strings is much faster.
Before:
make benchmark
go test -bench=.
goos: darwin
goarch: amd64
pkg: github.com/maragudk/gomponents
BenchmarkAttr/boolean_attributes-8         	 8194791	       139 ns/op
BenchmarkAttr/name-value_attributes-8      	 5143292	       229 ns/op
PASS
ok  	github.com/maragudk/gomponents	2.841s

After:
make benchmark
go test -bench=.
goos: darwin
goarch: amd64
pkg: github.com/maragudk/gomponents
BenchmarkAttr/boolean_attributes-8         	16755404	        67.0 ns/op
BenchmarkAttr/name-value_attributes-8      	10208625	       116 ns/op
PASS
ok  	github.com/maragudk/gomponents	2.702s

Interesting. Did you try that with something else than %v which probably has overhead? No experience here with how the Go compiler has implemented this. I am currently "fighting" something similar in a PHP project, where "$name = $data" seems to be better optimized than $name." = ".$data. At least for multiple fields, because the "" version allocates only the final size and copies the parts into it.

Yeah, I tried %s as well, but that was the same as %v.
Normally I wouldn't micro-optimise like this, but given that this will be called a lot, it seemed worth it.
I'm playing with a version of Render that doesn't build everything in-memory, by the way, but uses io.Writer instead. I still want to keep a simple API, so haven't decided yet.


AttributeError: module 'kerastools' has no attribute 'callback'

Hello!
I run a keras deep learning example on the IRIS data. However,I cant fit the model with the function of fit.
The error message :
"Error in py_get_attr_impl(x, name, silent): AttributeError: module 'kerastools' has no attribute 'callback'"
I check the version of R and packages:
R version 4.0.3 (2020-10-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.3 LTS
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
other attached packages:
[1] forcats_0.5.0   stringr_1.4.0   dplyr_1.0.3     purrr_0.3.4
[5] readr_1.4.0     tidyr_1.1.2     tibble_3.0.5    ggplot2_3.3.3
[9] tidyverse_1.3.0 keras_2.6.1
My code:
library("keras")
library(tidyverse)
mnist <- dataset_mnist()
train_images <- mnist$train$x
train_labels <- mnist$train$y
test_images <- mnist$test$x
test_labels <- mnist$test$y
train_images <- array_reshape(train_images,c(60000,2828))
train_images <- train_images/255
test_images <- array_reshape(test_images,c(10000,2828))
test_images <- test_images/255
train_labels <- train_labels %>% to_categorical
test_labels <- test_labels %>% to_categorical
network <-
keras_model_sequential() %>%
layer_dense(units = 1000,activation = "relu",input_shape = c(28*28)) %>%
layer_dense(units = 10,activation = "softmax")
network %>%
compile(
optimizer="rmsprop",
loss="categorical_crossentropy",
metrics=c("accuracy")
)
tmp.history <- network %>%
fit(train_images,train_labels,epochs = 5,batch_size = 128)
The function of fit cant work .
Error in py_get_attr_impl(x, name, silent): AttributeError: module 'kerastools' has no attribute 'callback'
Traceback:

model %>% fit(x_train, y_train, epochs = 200, batch_size = 5,
.     validation_split = 0.2)
fit(., x_train, y_train, epochs = 200, batch_size = 5, validation_split = 0.2)
fit.keras.engine.training.Model(., x_train, y_train, epochs = 200,
.     batch_size = 5, validation_split = 0.2)
normalize_callbacks_with_metrics(view_metrics, initial_epoch,
.     callbacks)
normalize_callbacks(callbacks)
lapply(callbacks, function(callback) {
.     warn_callback(callback)
.     if (inherits(callback, "keras.callbacks.TensorBoard"))
.         have_tensorboard_callback <<- TRUE
.     if (inherits(callback, "KerasCallback")) {
.         args <- list(r_set_context = callback$set_context, r_on_epoch_begin = callback$on_epoch_begin,
.             r_on_epoch_end = callback$on_epoch_end, r_on_train_begin = callback$on_train_begin,
.             r_on_train_end = callback$on_train_end, r_on_batch_begin = callback$on_batch_begin,
.             r_on_batch_end = callback$on_batch_end, r_on_predict_batch_begin = callback$on_predict_batch_begin,
.             r_on_predict_batch_end = callback$on_predict_batch_end,
.             r_on_predict_begin = callback$on_predict_begin, r_on_predict_end = callback$on_predict_end,
.             r_on_test_batch_begin = callback$on_test_batch_begin,
.             r_on_test_batch_end = callback$on_test_batch_end,
.             r_on_test_begin = callback$on_test_begin, r_on_test_end = callback$on_test_end,
.             r_on_train_batch_begin = callback$on_train_batch_begin,
.             r_on_train_batch_end = callback$on_train_batch_end)
.         if (!isTRUE(all.equal(callback$on_batch_begin, empty_fun))) {
.             args$r_on_train_batch_begin <- callback$on_batch_begin
.         }
.         if (!isTRUE(all.equal(callback$on_batch_end, empty_fun))) {
.             args$r_on_train_batch_end <- callback$on_batch_end
.         }
.         do.call(tools$callback$RCallback, args)
.     }
.     else {
.         callback
.     }
. })
FUN(X[[i]], ...)
do.call(tools$callback$RCallback, args)
tools$callback
$.python.builtin.module(tools, "callback")
$.python.builtin.object(x, name)
py_get_attr_or_item(x, name, TRUE)
py_get_attr(x, name)
py_get_attr_impl(x, name, silent)

Could you tell me how to fix this ?
Thanks a lot !

@Gravityzd Can you please share a simple standalone code in the correct format or share a .py file. You can also check the tutorial on classification model with IRIS data. Thanks!

Thank you for your reply. I use keras R package in R and I solved this problem by creat a new conda configured environment. The code can work correctly.

Thank you for your reply. I use keras R package in R and I solved this problem by creat a new conda configured environment. The code can work correctly.

Could you share the set up for a new conda env?
I run into the same issue using the Keras3 lib in RStudio.


replay_actions isn't generic and doesn't do what you'd expect

Hi,
I used a Ubuntu16.06 and installed the game successfully. All the functions work well except for running python -m pysc2.bin.replay_actions --replays='/home/hxu/StarCraftII/Replays/Replays/f57ab36fd55aad2bf3b24645fe37c16824f4af1eb6a08654be43381a8ed2eef0.SC2Replay'.
Here is what I've got. There are partial stats but not sequential events or state-action pairs.
Getting replay list: /home/hxu/StarCraftII/Replays/Replays/f57ab36fd55aad2bf3b24645fe37c16824f4af1eb6a08654be43381a8ed2eef0.SC2Repl
ay
1 replays found.
[0] Starting up a new SC2 instance.
Version: B55958 (SC2.3.16)
Build: Jul 31 2017 13:19:41
Command Line: '"/home/hxu/StarCraftII/Versions/Base55958/SC2_x64" -listen <IP_ADDRESS> -port 21645 -dataDir /home/hxu/StarCraftII/ -te
mpDir /tmp/sc-5QgJ1W/ -displayMode 0'
Starting up...

Listening on: <IP_ADDRESS>:21645 (21645)
Startup Phase 3 complete. Ready for commands.
[0] SC2 Started successfully.
[0] Got replay: /home/hxu/StarCraftII/Replays/Replays/f57ab36fd55aad2bf3b24645fe37c16824f4af1eb6a08654be43381a8ed2eef0.SC2Replay
[0] ------------------ Replay Info f57ab36fd5 ------------------
[0] map_name: "Catallena LE (Void)"
[0] player_info {
[0]   player_info {
[0]     player_id: 1
[0]     race_requested: Terran
[0]     race_actual: Terran                                                                                [38/1813]
[0]   }
[0]   player_result {
[0]     player_id: 1
[0]     result: Defeat
[0]   }
[0]   player_mmr: 3437
[0]   player_apm: 83
[0] }
[0] player_info {
[0]   player_info {
[0]     player_id: 2
[0]     race_requested: Zerg
[0]     race_actual: Zerg
[0]   }
[0]   player_result {
[0]     player_id: 2
[0]     result: Victory
[0]   }
[0]   player_mmr: 3381
[0]   player_apm: 107
[0] }
[0] game_duration_loops: 23529
[0] game_duration_seconds: 1050.47509766
[0] game_version: "<IP_ADDRESS>958"
[0] data_build: 55958
[0] base_build: 55958
[0] data_version: "5BD7C31B44525DAB46E64C4602A81DC2"
[0] ------------------------------------------------------------
[0] Starting f57ab36fd5 from player 1's perspective
============================================= Summary 10 secs =============================================
Replays: 0, Steps total: 0
Camera move: 0, Select pt: 0, Select rect: 0, Control group: 0
Maps: 1
{Catallena LE (Void): 1}
Races: 2
{Zerg: 1, Terran: 1}
Unit ids: 0
{}
Valid abilities: 0
{}
Made abilities: 0
{}
Valid actions: 0
{}
Made actions: 0
{}
Races: 2
{Zerg: 1, Terran: 1}
Unit ids: 0
{}
Valid abilities: 0
{}
Made abilities: 0
{}
Valid actions: 0
{}
Made actions: 0
{}
Crashing replays: 0
[]
Invalid replays: 0
[]
---------------------------------------------- Process stats ----------------------------------------------
[ 0] replay: f57ab36fd5, replays:     0, steps:       0, game loops:       0, last: start_replay,   0 s ago

Hmm, I've mainly used replay_actions to look at stats over many replays. It's quite possible there's a bug in the termination condition for a single replay. It probably also doesn't do what you are expecting it to do. It just outputs which actions are popular. This was mainly useful for figuring out the action space, not for training agents. It should be a good example of how to parse through a large number of replays though. You can then do whatever you want with the observations.

It'd be nice if replay_actions was split between the replay parser and the analysis so it could let you do more than collect stats about actions. It'd be good to have that as one option, but it would be nice for it to be easy to write your own that just took observations and could do whatever it wants with them, but without having to deal with starting up the game, doing the parallelism stuff, etc. This would be analogous to bin/agent.py which lets you pass in an agent of your own.


Incorrect padding of content in material mode

After discovering the layouts and components on official docs, I noticed that most of layouts has incorrect padding of content in material mode.
Let's say Pull To Refresh component. In material mode, the gap between the navbar and the list view / contents shouldn't be exist.
And currently, it's seems the official docs is not really material friendly.
Nonetheless, thanks for this awesome framework!

I tried to make it more unified with iOS theme, and there is no strict rules about the gap between the navbar and the list view / contents shouldn't be exist and in many native apps it is different as well. So just remove it manually in your CSS if you don't need it


Add tombstone handling to asset.New

https://github.com/lightninglabs/taro-private/pull/30#discussion_r1186565730
-Update asset.New to reject 0-value assets that do not use the NUMS key
-Error on assets with the NUMS key and non-zero amounts
This may have to change once we sort out the standard for burning.

Still relevant since the finalized burn spec does not use the NUMS key directly.


[CI] fix eslint

Notes for Reviewers
Fixes: https://github.com/meshery/meshery/actions/runs/5605532300/jobs/10254757997#step:3:38
This PR fixes #
Signed commits

[ ] Yes, I signed my commits.

// @Abhishek-kumar09


Propose html fragment

Hello @lotus,
I would like to propose html fragment (or maybe another better name) which will be useful to avoid html string concatenation like
html.div("Hello") + html.div("Lotus") + html.div("Ruby")
#=>
Hello

Lotus

Ruby

It looks much better to me with html fragment declaration, especially nested HTML.
html do
  div "Hello"
  div "Lotus"
  div "Ruby"
end

@jodosha @joneslee85 Thanks for your reviews :+1:. I've updated the code as requested. :smile:.
Kindly let me know if I should squash my commits. Thanks.

@huynhquancam please squash

@joneslee85 thanks, commits squashed and version updated :)

:+1:

@huynhquancam I love it! Thank you very much!

@jodosha awesome, thanks for your help!


Update casino.js / Added warzone-stats to plugins

intercept the input !casino without data.args or deviating data.args.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Nice one 🤣 I am actually lazy to do that XD. I have other things to working on. I will add more things to casino stuffs. Thansk for adding this btw.

no way to squash these commits together and not have 2 separate commits

no way to squash these commits together and not have 2 separate commits

sorry if i did something wrong. I'm still new to GitHub.

warzone implement should be its out git branch and pull request

There is nothing in the README.md for the warzone stats. <.<

done :)


[EventHubs] user agent impl update

This PR fixes the issue: https://github.com/Azure/azure-sdk-for-python/issues/12604

/azp run python - eventhub - tests


Disable Default styles

Is your feature request related to a problem? Please describe.
Hi is there possibility to not load default style ??
Describe the solution you'd like
there is option 'style', take value something like  'style: "none"'
Additional context
its better you will no need to override default styles

Hi,
I'm a bit undecided about adding this. Why is overwriting the styles a problem?
It would be easy but inflate the size (although just a little bit) for everyone...

@josselex I am testing the magento plugin version out locally on my magento installation and the style is being added to the body.
Whereby, you cannot overide the styling from an external stylesheet.

@josselex It is not a magento issue. The fact that the styling is injecting into the body by the api means no customisation is possible in an external file.

This is no problem. Just override the style with a more specific rule.
This is explained here:
http://browser-update.org/customize.html
On Dez. 10 2018, at 12:08 pm, vishy93<EMAIL_ADDRESS>wrote:

@josselex (https://github.com/josselex) It is not a magento issue. The fact that the styling is injecting into the body by the api means no customisation is possible in an external file.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (https://github.com/browser-update/browser-update/issues/420#issuecomment-445778702), or mute the thread (https://github.com/notifications/unsubscribe-auth/AIErKmuU2gZ8WbNbmUOnN_lknnZcdBiIks5u3kC8gaJpZM4X_ju7).

@josselex  Shall do. Is there a way to prevent the style being injected into the body at all?
Like original post an option to choose to disable default styling?

@josselex overriding the styles produces more content to be downloaded by the script itself and then the browser has to work to replace the styles that are being override. In a pre-designed theme lets say, Bootstrap we could easily Extend the id/classes with bootstrap styles allowing our theme to not grow our css at all.
I also would like to have a toggle to fully disable the styling and allow the sites "theme" to control this.


Add support for -fverbose-asm

I've just come to know the option -fverbose-asm in gcc and ICC which will add extra commentary information like which variables corresponds to which operands. I'm not sure about the Clang support although I did saw many related commits for Clang.
I suggest adding another button to the main menu bar to toggle this option so that we don't have to specify the option manually
Or maybe a drop-down button for quickly toggling useful compiler options. The option list will change depending on the compiler and language being used

See also #8

Just noticed there was the #297 issue for this

It's a great idea: thanks. #297 is more a "if you specify -fverbose-asm it should look better". We can definitely improve here. Also #8 might help. I'm not sure quite how best to proceed: the UI is getting more and more cluttered as it is. Perhaps a general clean up of the UI will help us.


Doesn't work with Atom 1.22.0

Using https://github.com/Tehnix/ide-haskell-hie/ I can observe running hie in process list, but no support in browser (nothing happens on hover).
@alanz says it's line 22 in https://paste.pound-python.org/show/a3JzTsxiZ0bUL7r9swa4/

The workspace/didChangeWatchedFiles message is not currently handled by hie

@alanz with your branch I'm able to see HIE working in Atom.


added new flag and test  for showmigrations

@easherma Thanks for this patch :+1: However, you should follow the guidelines with regards to requesting features and start from creating a new ticket. All new features require an accepted ticket.
Unfortunately, I'd close your ticket as "wontfix" as we already have many of options in migration-related commands and this one doesn't seem really necessary. Moreover, the same can be already achieved with other commands, e.g. migrate --plan.

Thanks, @felixxm . This PR is in progress and I apologize for the current lack of description on it's context and progress; I'm working on it during the sprints at DjangoCon. I'm planning to open a discussion item on the forum about it(after talking with Natalia, but discussed it with some contributors here (@Scotchester , Drew Winstel and some others) who agreed that it was an idea worth considering. I wanted to use the draft PR to explain the idea in detail.

but I also discussed it with some contributors here at DjangoCon (@Scotchester , Drew Winstel and some others) who agreed that it was an idea worth considering.

Generally adding a new option to management commands is always controversial (we already have many of them), especially when the same result is already achievable.


Upgrade to non-patent-encumbered license of React

See the React 16 Blog Post for details.
Either version 16+ or version 15.6.2 have the new license.

You interested in doing this?

Probably best to upgrade to 15.6.2 for now because I'm not entirely certain (read: I haven't tried it out fully yet) how React 16 plays with myitcv.io/react, the GopherJS bindings around React used by a couple of components.

Agree 15.6.2 would be easier.  I'm new to React but it appears that the addons have been discontinued.  It also appears that there's no easy canonical source package to embed.

Proposed update in
https://camlistore-review.googlesource.com/c/camlistore/+/11827

FYI as of https://github.com/myitcv/react/pull/103 I've upgraded myitcv.io/react to use React 16.
Per the wiki, React 15 support will be maintained on a branch, probably following the Go-esque policy of "last two versions"
Not all features in React 16 supported (most notably fragments) but will work on the most important over the Christmas break.


highlighted Inline code obscures text in a dark square

When I highlight text ( surround it with equal signs) and some of that text is inline code ( surround it with backticks) then in preview mode the inline code is obscured by a dark rectangle.

Hello! LYT Mode developer here~ Do you have a screenshot of how this looks like?

The text:
==Additional key-value pairs can be added by using the `--from-literal` option multiple times.==

Renders like this

This has been fixed in Release v.1.1! 🎉
Thank you so much for submitting this issue! Please update your themes :D


Only one metric used for root cause analysis?

Thank you for making you code publicly available.
When running microcause.ipynb and dycause_exp.ipynb, I notice that you are using only one metric to perform the root cause analysis. Why have you not included more metrics?

In our datasets, we assume there is only one anomaly frontend service, such as the dashboard service directly used by the end users. The aim is to find what other services are causing it to be abnormal.


cmake: Use share instead of DATADIR for CMake config files

See the following discussion for context:
https://discourse.cmake.org/t/what-should-the-destination-be-for-a-header-only-librarys-cmake-config-file/8473/2
NOTE: I've never seen this cause an issue before, but better safe than sorry. Also I think it reads a bit better.
I recently did this for VulkanHeaders so I'd like this fixed here as well.

I recently did this for VulkanHeaders so I'd like this fixed here as well.

https://github.com/KhronosGroup/Vulkan-Headers/pull/422

Thank you for this contribution.


Dart 2 runtime failures in tests

type 'Future' is not a subtype of type 'FutureOr' of 'function result' where
Future is from dart:async
FutureOr is from dart:async
Response is from package:shelf/src/response.dart
package:shelf_test_handler/src/handler.dart                                          ShelfTestHandler.call
../../shelf_test_handler/test/handler_test.dart 21:35  main..
00:03 +0: loading shelf_test_handler/test/server_test.dart
00:03 +0: serves a ShelfTestHandler                                                                                ERROR - 2018-05-01 22:50:24.936098
GET /
Error thrown by handler.
type 'Future' is not a subtype of type 'FutureOr' of 'function result' where
Future is from dart:async
FutureOr is from dart:async
Response is from package:shelf/src/response.dart
package:shelf_test_handler/src/handler.dart                                         ShelfTestHandler.call
package:shelf/shelf_io.dart 88:29                                                   handleRequest

Can reproduce this with -dev.65
Minimal repo
import 'dart:async';
import 'package:test/test.dart';

void main() {
  test('sample', () async {
    var result = await _something();
    expect(result, 42);
  });
}

FutureOr<int> _something() async => 42;


EG4 6000XP (rebranded luxpower) Support

Enhancement request
I have LXP working in Home Assistant against this new very popular off grid all in one inverter the EG4 6000XP which is made by lux
https://eg4electronics.com/backend/wp-content/uploads/2023/10/EG4-6000XP-Manual.pdf
It has this serial modbus protocol file and we speak to it through a lux wifi dongle which must be larger similar to other lux units as the bridge shows much of this data.
https://eg4electronics.com/resources/downloads#:~:text=EG4%C2%AE%206000XP%20%2D%20MODBUS%20Communication%20Protocol.pdf
I do notice generator data is not bridged to MQTT.  Also I see unknown in a number of fields I can read through app in particular status, fault code and warning code.
Question:  Will you support this unit?  I expect it to be one of the most common variants in the wild.
Thanks for your great work regardless.

I was looking for the generator (ac-coupled solar) data as well for my eg4 18k. I found the modbus pdf posted on a forum and the generator uses register 120+ which this project does not yet consume. I've got mine decoding it locally and can send out a patch later in the week to add a ReadInput4 to see if that works for the 6000XP as well.

https://github.com/celsworth/lxp-bridge/pull/239 for the generator data if you can try this on your EG4. I'm not looking at this via HA - just a local prometheus instance so not sure if there's something else needed in HA.

Now merged into master - yes we need a bit more to get them visible in Home Assistant, they need adding in https://github.com/celsworth/lxp-bridge/blob/master/src/home_assistant.rs
Feel free to give this a go, or I can  take a look in a few days.


Feat: add timeout to invalidate inactive sessions

Link to JIRA ticket if there is one: https://ctds-planx.atlassian.net/browse/VADC-1241
Improvements

added timeout for sessions. This should invalidate inactive sessions after the timeout period
set the default timeout to 20 minutes

feedback from WebAPI devs: why not use the existing security.token.expiration ?

closed in favor of config changes proposed above

reopening as security.token.expiration does not seem to be sufficient

found alternative solution https://github.com/uc-cdis/WebAPI/pull/151


When is Next release 0.13.0 planned?

Hello,
I see 0.13.0 is a Pre-release build. By when can we expect 0.13.0 as a release?

just made new release 0.13.1
If you'd like to test I'll remove the "pre-release" flag

Please go ahead and remove "Pre-release" flag

done
thanks for your feedback


feat(kmultiselect): support disabled item

Summary

This PR adds disabled items support for KMultiselect.
PR Checklist

[ ] Does not introduce dependencies
[ ] Functional: all changes do not break existing APIs and if so, bump major version.
[ ] Tests pass: check the output of yarn test
[ ] Naming: the files and the method and prop variables use the same naming conventions as other Kongponents
[ ] Framework style: abides by the essential rules in Vue's style guide
[ ] Cleanliness: does not have formatting issues, unused code (e.g., console.logs, debugger), or leftover comments
[ ] Docs: includes a technically accurate README, uses JSDOC where appropriate

@adamdehaven Updated.


Build and Show Visualizer menu inconsistencies

Build is missing from the editor context menu

"Build bicep" or something is probably better than just "Build" since "Build" may imply building the project/folder
Some of the menu groupings look questionable to me (e.g. showvisualizer should probably be in the "3_open" group, like "preview markdown" is, and certainly "build" should not be in "navigation")

We want to fix any inconsistencies we find. When either @StephenWeatherford  or @bhsubra come off their work, this is hopefully a quick one to snatch up

Adding another photo for context

This issue will include making sure all of our naming is correct and consistent within these three pathways.
I like @Stephen's Idea of changing the name "Build" to "Build Bicep"

Right clicking file on the side explorer view
Right clicking inside of the file
Right clicking the file at the top as a tab

The plan is to group all Bicep Commands in right click menu on the top with a seperator AFTER Open Bicep Visualizer to the Side. This will make them consistent. Bicep: Build Bicep file, Bicep: Deploy Bicep file, Bicep: Open Bicep Visualizer, Bicep: Open Bicep Visualizer to the Side


Added World::CreateRandomPed, Vehicle::CreateRandomPedOnSeat, Vehicle::IsSeatFree, Ped::SetIntoVehicle

What's the advantage of "Ped::SetIntoVehicle" over "Ped::Tasks::WarpIntoVehicle"?

I renamed it.

I removed Ped::SetIntoVehicle.