How to set PackageUpdateAvailabilityResult.Required?

I am trying to implement the CheckUpdateAvailabilityAsync method into my UWP app to check periodic for updates to the .appinstaller file. However, despite releasing new packages with both minor and major version changes
(i.e., example 1 from 1.0.0 -> 1.1.0 and example 2 from 1.0.0 -> 2.0.0), every change only results in PackageUpdateAvailabilityResult.Available.
While I know it might not be directly relevant to the docs, I am unable to figure out where to post my question. How do I create an update, so that the PackageUpdateAvailabilityResult.Required flag gets set?

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

ID: ef274e8d-35aa-a486-f11b-f3573c8c1cb4
Version Independent ID: 4ae4387a-a985-968e-69f4-30619ca5cbf5
Content: PackageUpdateAvailabilityResult Class (Windows.ApplicationModel) - Windows UWP applications
Content Source: winrt-api-build/xml/Windows.ApplicationModel/PackageUpdateAvailabilityResult.xml
Product: uwp
Technology: winrt-reference
GitHub Login: @mikben
Microsoft Alias: mikben

Bump. I am still unable to figure out how to set the .Required flag.

Are you using the new version of App Installer? Can you share what your app installer file looks like?

Are you using the new version of App Installer? Can you share what your app installer file looks like?

I was unable to print it directly in to the comment, so I made a GIST: https://gist.github.com/thommelutten/d1a47b846940f3c7563fd565cd63e756
When I am creating the Package, I am unable to see any flag that should set it to .Required (Through Visual Studio "Publish" -> "Create App Packages.." -> Sideloading)

I was unable to print it directly in to the comment, so I made a GIST: https://gist.github.com/thommelutten/d1a47b846940f3c7563fd565cd63e756
When I am creating the Package, I am unable to see any flag that should set it to .Required (Through Visual Studio "Publish" -> "Create App Packages.." -> Sideloading)

Can you try changing the section in your .appinstall file:
xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2"
to
xmlns="http://schemas.microsoft.com/appx/appinstaller/2018"
If you do that, you can change your update settings to
<OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="true" UpdateBlocksActivation="true" />
which will block the app from activating unless the user installs the update. Let me know if any of that helps.

Can you try changing the section in your .appinstall file:
xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2"
to
xmlns="http://schemas.microsoft.com/appx/appinstaller/2018"
If you do that, you can change your update settings to
<OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="true" UpdateBlocksActivation="true" />
which will block the app from activating unless the user installs the update. Let me know if any of that helps.

We have decided to go in another direction when trying to update. So I'll close the issue. Thanks a lot for the help though, the steps you show definitely seems like those we missed.

We have decided to go in another direction when trying to update. So I'll close the issue. Thanks a lot for the help though, the steps you show definitely seems like those we missed.


camtool sync interrupted leads to corrupt -dest

I was running camtool sync. It was interrupted due to network issue. After -dest server restart it tries to sync /bs/ -> /index/ and fails. Can this behavior be disabled, so that I could finish the sync and recover data?
My server-config.json:
{
    "auth": "userpass:user:password",
    "listen": ":3179",
    "identity": "<identity>",
    "identitySecretRing": "/srv/camlistore/.config/camlistore/identity-secring.gpg",
    "blobPath": "/srv/camlistore/var/camlistore/blobs",
    "packBlobs": true,
    "kvIndexFile": "/srv/camlistore/var/camlistore/index.kvIndexFile"
}

Log:
2016/06/02 07:21:36 [SyncHandler /bs/ -> /index/] error copying sha1-2030fd39d06c29cc49d6feff253e7fb5ca21b560: dest write: unexpected EOF
2016/06/02 07:21:36 [SyncHandler /bs/ -> /index/] error copying sha1-12280b00f278858e499cf2fb3aacb160d0750d8e: dest write: unexpected EOF
2016/06/02 07:21:36 [SyncHandler /bs/ -> /index/] error copying sha1-115bc37c3cece992c2be10ff4fccb0fb1188ab1d: dest write: schema/filereader: fetching file schema blob: blob was not fully indexed because of a missing dependency
2016/06/02 07:21:36 [SyncHandler /bs/ -> /index/] error copying sha1-210fdcf06f138f0c0f71c562014e537726e25f28: dest write: schema/filereader: fetching file schema blob: blob was not fully indexed because of a missing dependency

found similar issue #555
switched to levelDB and running with -reindex and it says I have 0 blobs (0.000 GiB), while in fact it has 17G to scan:
du -sh /srv/camlistore/var/camlistore/blobs/
17G	/srv/camlistore/var/camlistore/blobs/

Log:
/usr/local/bin/camlistored -reindex
2016/06/02 08:10:19 Starting camlistored version 2015-12-30-7b78c50+; Go go1.6 (linux/amd64)
2016/06/02 08:10:19 Starting to listen on http://localhost:3179
2016/06/02 08:10:19 Reindexing /index/ ...
2016/06/02 08:10:19 Wiping index storage type *leveldb.kvis ...
2016/06/02 08:10:19 Index wiped. Rebuilding...
2016/06/02 08:10:19 Index rebuild complete.
2016/06/02 08:10:19 Slurping corpus to memory from index...
2016/06/02 08:10:19 Slurping corpus to memory from index... (1/9: meta rows)
2016/06/02 08:10:19 Scanned prefix "meta": 0 rows, 8.78µs
2016/06/02 08:10:19 Slurping corpus to memory from index... (2/9: prefix "signerkeyid")
2016/06/02 08:10:19 Slurping corpus to memory from index... (3/9: prefix "claim")
2016/06/02 08:10:19 Slurping corpus to memory from index... (4/9: prefix "fileinfo")
2016/06/02 08:10:19 Slurping corpus to memory from index... (5/9: prefix "filetimes")
2016/06/02 08:10:19 Slurping corpus to memory from index... (6/9: prefix "imagesize")
2016/06/02 08:10:19 Slurping corpus to memory from index... (7/9: prefix "wholetofile")
2016/06/02 08:10:19 Slurping corpus to memory from index... (8/9: prefix "exifgps")
2016/06/02 08:10:19 Slurping corpus to memory from index... (9/9: prefix "mediatag")
2016/06/02 08:10:19 Scanned prefix "mediatag": 0 rows, 14.616µs
2016/06/02 08:10:19 Scanned prefix "signerkeyid": 0 rows, 8.32µs
2016/06/02 08:10:19 Scanned prefix "claim": 0 rows, 7.208µs
2016/06/02 08:10:19 Scanned prefix "fileinfo": 0 rows, 6.504µs
2016/06/02 08:10:19 Scanned prefix "filetimes": 0 rows, 6.499µs
2016/06/02 08:10:19 Scanned prefix "imagesize": 0 rows, 6.371µs
2016/06/02 08:10:19 Scanned prefix "wholetofile": 0 rows, 8.291µs
2016/06/02 08:10:19 Scanned prefix "exifgps": 0 rows, 7.624µs
2016/06/02 08:10:19 Corpus stats: 0.009 MiB mem: 0 blobs (0.000 GiB) (0 schema (0 permanode, 0 file (0 image), ...)
2016/06/02 08:10:19 Corpus scanning CPU usage: 0
2016/06/02 08:10:19 [SyncHandler /bs/ -> /index/] Added 0 pending blobs from sync queue to pending list
2016/06/02 08:10:20 ui: serving Closure from embedded resources
2016/06/02 08:10:20 Available on http://localhost:3179/ui/

I think you might actually have hit this issue: #681
Regarding your sync question, yes; you can be more precise in specifying (in your client config) the src and dest enpoints so you don't sync to the indexer, but only to the blob storage. See the issue mentioned above, as well as the related thread: https://groups.google.com/d/msg/camlistore/lpeli0IwxBc/fuCNlkULFgAJ

@mpl thanks, you were right. I was able to recover my remote server by running:
camtool sync -src local -dest http://<remote_ip>:3179/bs/ -verbose
camlistored -reindex


LPFG-935: Remove organisation

branched from: https://github.com/Civil-Service-Human-Resources/lpg-management/pull/135

controller and service for deleting organisations from csrs

do not merge: need correct template from Mick

Please see https://github.com/Civil-Service-Human-Resources/lpg-management/pull/149


A Link needs updated.

Challenge Use the Twitchtv JSON API has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
The current link for step 8 is : https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Zipline-Use-the-Twitchtv-JSON-API
I believe it should be : https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/Front-End-Project-Use-the-Twitchtv-JSON-API

Closing as a duplicate of #6961. Thanks and happy coding!


Fix inference replication factor pod type removal

What does this PR do?

Fixes # (issue)
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


[QUERY] InvalidResourceType error after upgrading to Azure.ResourceManager 1.4.0

Library name and version
Azure.ResourceManager 1.4.0
Query/Question
After upgrading to Azure.ResourceManager 1.4.0 I get a RequestFailedException exception when tagging SqlDatabaseResource using AddTagAsync(). Is this a known issue?
The full error is:
Status: 404 (Not Found)
ErrorCode: InvalidResourceType
Content:
{"error":{"code":"InvalidResourceType","message":"The resource type 'locations/databaseOperationResults' could not be found in the namespace 'Microsoft.Sql' for api version '2022-09-01'. The supported api-versions are '2017-03-01-preview,2017-10-01-preview,2018-06-01-preview,2019-06-01-preview,2020-02-02-preview,2020-08-01-preview,2020-11-01-preview,2021-02-01-preview,2021-05-01-preview,2021-08-01-preview,2021-11-01,2021-11-01-preview,2022-02-01-preview,2022-05-01-preview,2022-08-01-preview'."}}
Source=Azure.ResourceManager
  StackTrace:
   at Azure.Core.OperationInternal`1.GetResponseFromState(OperationState`1 state)
   at Azure.Core.OperationInternal`1.<UpdateStatusAsync>d__20.MoveNext()
   at Azure.Core.OperationInternalBase.<UpdateStatusAsync>d__13.MoveNext()
   at Azure.Core.OperationPoller.<WaitForCompletionAsync>d__11.MoveNext()
   at Azure.Core.OperationInternalBase.<WaitForCompletionResponseAsync>d__19.MoveNext()
   at Azure.Core.OperationInternal`1.<WaitForCompletionAsync>d__19.MoveNext()
   at System.Threading.Tasks.ValueTask`1.get_Result()
   at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult()
   at Azure.Core.OperationInternal`1.<WaitForCompletionAsync>d__15.MoveNext()
   at Azure.ResourceManager.Resources.TagResource.<CreateOrUpdateAsync>d__22.MoveNext()
   at Azure.ResourceManager.Sql.SqlDatabaseResource.<AddTagAsync>d__138.MoveNext()

Environment
No response

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Duplicate of https://github.com/Azure/azure-sdk-for-net/issues/34796
We close this issue in favor of https://github.com/Azure/azure-sdk-for-net/issues/34796


API Docs fixes

Fixes: https://github.com/ballerina-platform/ballerina-lang/issues/19173

Codecov Report

Merging #19214 into next-release will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff              @@
##           next-release   #19214   +/-   ##
=============================================
  Coverage         15.73%   15.73%
=============================================
  Files                47       47
  Lines              1265     1265
  Branches            197      197
=============================================
  Hits                199      199
  Misses             1053     1053
  Partials             13       13

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 4b0bc31...9559239. Read the comment docs.


ts-node: command not found with postinstall script

Hi,
when using current version with Node 9.*/NPM 5.5.1 on macOS I'm getting this during postistall:
><EMAIL_ADDRESS>postinstall /Users/piotrblazejewicz/git/my-library
> ts-node tools/init

sh: ts-node: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>postinstall: `ts-node tools/init`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.

That could be ts-node issue and could be recently fixed, when I switch to:
@@ -96,7 +96,7 @@
     "rollup-plugin-sourcemaps": "^0.4.2",
     "semantic-release": "^8.0.0",
     "ts-jest": "^21.0.0",
-    "ts-node": "^3.0.6",
+    "ts-node": "^3.3.0",
     "tslint": "^5.4.3",
     "tslint-config-prettier": "^1.1.0",
     "tslint-config-standard": "^7.0.0",

the poinstall script continues and NPM script can execute ts-node.
Should this be udpated with PR?
Thanks!

Sure, if it is fixed in that way let's do a PR!

Hm,
should I include package-lock.json in the single commit?

Fixed by #149


Does not detect SSL certificates when using docker

What happened?
I ran into a problem today when moving a repository to docker. Reposilite does not find the certificate when it is present. I thought I had configured something wrong, but no.

Reposilite version
3.x
Relevant log output
07:48:32.370 INFO | + private (private)
07:48:32.370 INFO | 3 repositories have been found
07:48:32.764 INFO |
07:48:32.763 WARN | Interactive CLI is not available in current environment.
07:48:32.764 WARN | Solution for Docker users: https://docs.docker.com/engine/reference/run/#foreground
07:48:32.765 INFO | Binding server at <IP_ADDRESS>::80
07:48:32.852 INFO | Enabling SSL connector at ::443
07:48:33.121 ERROR | Failed to start Reposilite
07:48:33.124 ERROR | nl.altindag.ssl.exception.GenericIOException: java.nio.file.NoSuchFileException: /etc/letsencrypt/live/maven.0mods.team-0001/fullchain.pem
07:48:33.125 ERROR | 	at nl.altindag.ssl.util.internal.IOUtils.getFileAsStream(IOUtils.java:86)
07:48:33.126 ERROR | 	at nl.altindag.ssl.pem.util.PemUtils.loadIdentityMaterial(PemUtils.java:363)
07:48:33.126 ERROR | 	at nl.altindag.ssl.pem.util.PemUtils.loadIdentityMaterial(PemUtils.java:300)
07:48:33.127 ERROR | 	at io.javalin.community.ssl.SslConfig.pemFromPath(SslConfig.kt:140)
07:48:33.127 ERROR | 	at com.reposilite.web.application.JavalinConfiguration.configureSSL$lambda$6(JavalinConfiguration.kt:147)
07:48:33.128 ERROR | 	at io.javalin.plugin.Plugin.(PluginApi.kt:52)
07:48:33.133 ERROR | 	at io.javalin.community.ssl.SslPlugin.(SslPlugin.kt:24)
07:48:33.136 ERROR | 	at com.reposilite.web.application.JavalinConfiguration.configureSSL(JavalinConfiguration.kt:129)
07:48:33.137 ERROR | 	at com.reposilite.web.application.JavalinConfiguration.configure$reposilite_backend(JavalinConfiguration.kt:70)
07:48:33.138 ERROR | 	at com.reposilite.web.HttpServer.start$lambda$4(HttpServer.kt:48)
07:48:33.138 ERROR | 	at io.javalin.Javalin.lambda$createAndStart$2(Javalin.java:89)
07:48:33.139 ERROR | 	at io.javalin.config.JavalinConfig$Companion.applyUserConfig(JavalinConfig.kt:107)
07:48:33.143 ERROR | 	at io.javalin.config.JavalinConfig.applyUserConfig(JavalinConfig.kt)
07:48:33.144 ERROR | 	at io.javalin.Javalin.create(Javalin.java:73)
07:48:33.145 ERROR | 	at io.javalin.Javalin.createAndStart(Javalin.java:87)
07:48:33.146 ERROR | 	at com.reposilite.web.HttpServer.start(HttpServer.kt:44)
07:48:33.147 ERROR | 	at com.reposilite.Reposilite.launch(Reposilite.kt:64)
07:48:33.147 ERROR | 	at com.reposilite.ReposiliteLauncherKt.main(ReposiliteLauncher.kt:22)
07:48:33.148 ERROR | Caused by: java.nio.file.NoSuchFileException: /etc/letsencrypt/live/maven.0mods.team-0001/fullchain.pem
07:48:33.149 ERROR | 	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
07:48:33.149 ERROR | 	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
07:48:33.150 ERROR | 	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
07:48:33.150 ERROR | 	at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:261)
07:48:33.150 ERROR | 	at java.base/java.nio.file.Files.newByteChannel(Files.java:379)
07:48:33.151 ERROR | 	at java.base/java.nio.file.Files.newByteChannel(Files.java:431)
07:48:33.151 ERROR | 	at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
07:48:33.152 ERROR | 	at java.base/java.nio.file.Files.newInputStream(Files.java:159)
07:48:33.152 ERROR | 	at nl.altindag.ssl.util.internal.IOUtils.getFileAsStream(IOUtils.java:84)
07:48:33.152 ERROR | 	... 17 more
07:48:33.153 ERROR |
07:48:33.154 INFO | Shutting down <IP_ADDRESS>::80...
reposilite:x:999:999::/nonexistent:/bin/sh

well.. i tried a different path, it doesn't work.

well yeah.. you didn't mount the file in docker, so obviously docker can't see it

Hey, sorry for late response - I just missed the notification. I'd also personally recommend to just not use the built-in SSL integration, it's good enough to setup it at the proxy level (like Nginx) for all your services.

well yeah.. you didn't mount the file in docker, so obviously docker can't see it

i actually mounted the file. and i gave it full access, otherwise it wouldn't be displayed in the docker system.

Hey, sorry for late response - I just missed the notification. I'd also personally recommend to just not use the built-in SSL integration, it's good enough to setup it at the proxy level (like Nginx) for all your services.
Хм.. попробую

Hey, sorry for late response - I just missed the notification. I'd also personally recommend to just not use the built-in SSL integration, it's good enough to setup it at the proxy level (like Nginx) for all your services.

hmm... i'll try it.

well yeah.. you didn't mount the file in docker, so obviously docker can't see it

i actually mounted the file. and i gave it full access, otherwise it wouldn't be displayed in the docker system.

oops, didn't notice that lol


feat: add named hasOne relation

Fixes #508. Solved todo's in HasOneRelation.

Added ability to add HasOne relation based on propertyName given in the HasOne tag
Add exceptions for all not found cases with proper error message

Pull Request Test Coverage Report for Build<PHONE_NUMBER>9
Details

60 of 60 (100.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 81.905%

Totals

Change from base Build<PHONE_NUMBER>4:
0.1%

Covered Lines:
6364

Relevant Lines:
7770

💛  - Coveralls

Ok this is a really nice PR! I was dreading doing this myself, but you basically did everything 😁
I'll take a look at those MySQL fk errors, I don't think it's a big issue, and merge afterwards!

Those failing tests have nothing to do with this PR, so I'm gonna go ahead and merge

Are you on discord btw, @blackshadev ?


⚠ API - Lens has degraded performance

In b598e21, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 503
Response time: 337 ms

Resolved: API - Lens performance has improved in 105c567 after 7 minutes.


Add EthUnwrapperForBucketLender

Pull Request Test Coverage Report for Build 6397

18 of 18 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.06%) to 99.943%

Totals

Change from base Build 6372:
-0.06%

Covered Lines:
1212

Relevant Lines:
1212

💛  - Coveralls

"Coverage decreased (-0.06%) to 99.943%" 😢

Looks good besides that though


Fix content for main.java

add content for main.java file

Updating main.java file

Merge pull request from bug-fix-1


Support for DS4Vita

Any possibility of support with just the DS4Vita plugin instead of MinivitaTV? Using with just DS4Vita plugin almost works; volume up and down seem to function. Mute does not and the DS4 light bar doesn't change colors.

Actually DS4Vita doesn't support the lightbar at all. In order for it to
work, DS4Vita would have to be updated to enable the lightbar and honestly
I don't know enough yet to figure that out. I'm pretty sure it's possible
though.
As for the mute thing, did you try holding select+L1+R1 for a few seconds?
I know that it isn't instant like when you want to just increase or
decrease the volume.
On Sat, Oct 3, 2020, 1:17 AM Codemonkey03<EMAIL_ADDRESS>wrote:

Any possibility of support with just the DS4Vita plugin instead of
MinivitaTV? Using with just DS4Vita plugin almost works; volume up and down
seem to function. Mute does not and the DS4 light bar doesn't change colors.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AP3JWNP4VMDKODKLOTTFASLSI26XTANCNFSM4SCOOYGA
.

Out of curiosity, why do you use DS4Vita instead of MinivitaTV?

One reason and it's gonna sound a little silly. When MiniVitaTV is active whenever the Vita is put to sleep and you wake it up it always has a big notice in the corner that says "Press the PS Button" and I don't like it. I spend 20% of my Vita time using a DS4, so that means the other 80% is spent using it on the go where I don't have a DS4 in sight so getting that warning every single time I put the Vita to sleep and wake it up several dozen times in a day annoys the hell out of mine.
If I could disable that message, I would switch from DS4Vita to MiniVitaTV easily.

Oh I see. Yeah I agree that notification is annoying.
On Thu, Oct 8, 2020, 4:41 AM Codemonkey03<EMAIL_ADDRESS>wrote:

One reason and it's gonna sound a little silly. When MiniVitaTV is active
whenever the Vita is put to sleep and you wake it up it always has a big
notice in the corner that says "Press the PS Button" and I don't like it. I
spend 20% of my Vita time using a DS4, so that means the other 80% is spent
using it on the go where I don't have a DS4 in sight so getting that
warning every single time I put the Vita to sleep and wake it up several
dozen times in a day annoys the hell out of mine.
If I could disable that message, I would switch from DS4Vita to MiniVitaTV
easily.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/CallmeBK/VolLightbarCtrlWithDS4/issues/1#issuecomment-705455729,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP3JWNKUWDKBI7XNEDF43FLSJWCLDANCNFSM4SCOOYGA
.


something about test

When playing with a human player, how do we guess the opponent's hand distribution?
Of course, at the root of the game, we can initialize it as a uniform distribution. After that, as the game going action by action, do we need to maintain a path to tracking the history actions and beliefs? For example, assuming the robot is the dealer, at game start, the robot need to do an action at first. We need to build a depth limited subgame tree and search on it to find out the strategy at root according the robot's hand. An action can be sampled according the strategy, say "call", then, the human player do an action, say "raise a half pot", how do we update the human's hand distribution? Do we need to build a sub tree rooted at the robot last action and search as the robot does and then update the human beliefs to those at child node of "raise a half pot"? If the human player's action if out of the predefined actions in training, how do we build the sub tree?

We do not model chance nodes = robot. We assume that chance nodes creates either private observations (info sets) or public observations. Instead of tracking the history, we maintain beliefs over private observations. A pair (belief, public state) constitutes a Public Belief State (PBS). Knowing PBS is enough to define the Nash value and the optimal play.
To update the beliefs over the opponent's hand after an action is taken, we use the opponent's policy. We do not know the actual optimal policy, so instead we use one from CFR assuming the values are defined from the value function in leaf PBSs.
Whenever we happen to meet a chance node that creates public observations, e.g., flop, we just update the public state part of PBS without touching beliefs. Note, that value of pre-flop PBS is a function of  post-flop PBS values, as we can take a mean over possible flops given possible distribution of hands the players have


Does this work with GHES?

We are using GitHub Enterprise. Is there a way to make this work with GHES? At first glance of the code it doesn't appear there is a way to over-ride this going to gh.com.

@mikedrexler ☝  who needs to see this to answer?

Hi @AndyG-0 !    I'm not sure what you are asking.  Our virtual runners may be downloaded at https://github.com/actions/virtual-environments.   Sorry if I misinterpret.

Trying to run this locally. It appears that the first thing it does is try to connect to api.github.com:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 996, in validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 366, in connect
self.sock = ssl_wrap_socket(
File "/usr/lib/python3/dist-packages/urllib3/util/ssl.py", line 370, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1131)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/github/codeql-cli-binaries (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/startup_scripts/setup.py", line 57, in
setup()
File "/usr/local/startup_scripts/setup.py", line 39, in setup
get_latest_codeql(args)
File "/usr/local/startup_scripts/setup.py", line 46, in get_latest_codeql
latest_online_version = codeql.get_latest_codeql_github_version()
File "/usr/local/startup_scripts/libs/codeql.py", line 80, in get_latest_codeql_github_version
return get_latest_github_repo_version("github/codeql-cli-binaries")
File "/usr/local/startup_scripts/libs/github.py", line 6, in get_latest_github_repo_version
repo = client.get_repo(repo)
File "/usr/local/lib/python3.8/dist-packages/github/MainClass.py", line 294, in get_repo
headers, data = self.__requester.requestJsonAndCheck(
File "/usr/local/lib/python3.8/dist-packages/github/Requester.py", line 275, in requestJsonAndCheck
return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url)))
File "/usr/local/lib/python3.8/dist-packages/github/Requester.py", line 335, in requestJson
return self.__requestEncode(cnx, verb, url, parameters, headers, input, encode)
File "/usr/local/lib/python3.8/dist-packages/github/Requester.py", line 388, in __requestEncode
status, responseHeaders, output = self.__requestRaw(cnx, verb, url, requestHeaders, encoded_input)
File "/usr/local/lib/python3.8/dist-packages/github/Requester.py", line 412, in __requestRaw
response = cnx.getresponse()
File "/usr/local/lib/python3.8/dist-packages/github/Requester.py", line 114, in getresponse
r = verb(url, headers=self.headers, data=self.input, timeout=self.timeout, verify=self.verify, allow_redirects=False)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /repos/github/codeql-cli-binaries (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))
Error 1 executing from command.
Exiting...
Command Output:
[2022-04-07 19:12:16,397] INFO: Starting setup...
[2022-04-07 19:12:17,141] INFO: Current codeql version: v2.7.6

This is failing of course because I'm behind a proxy and it's not configured in the image but our repos are on our GHES Server not github.com. It however looks like the python script is first connecting to the gh.com api. I would like to connect to our internal GHES vs github.com.
Besides local we could also use this image in our container based CI platforms as well.
It looks like the link provided is for virtual machines and not images, which would not work easily with our container based CI platforms.

Hey Andy, Mike, sorry for the late reply. Yes, right now the assumption in the script is that the cli and queries are being downloaded from the public github site. We can possibly introduce a override environment variable for each so the connection can be redirected. If you are interesting in sending a PR my way, please feel free. If not, I'll add it to my todo list and prioritize. Thanks for reporting the problem!


Safari/iPadOS: tree view title requires multiple clicks to expand/collapse the tree view

Steps to Reproduce:

Open Web/Codespace on iPadOS
Connect external mouse/trackpad
Open Remote Explorer, mouse click on the tree view title, often you need multiple clicks to toggle the state of the tree view

In desktop, we change the pointer style but there is no such thing on iPadOS. We may want to change the sash style.

Does this issue occur when all extensions are disabled?: Yes/No

Mouse clicking and touch behaves the same.

@rebornix Not sure I (as the inbox tracker) should distribute the iOS issues to the team. Assigning to you for now.

Discussed this with @isidorn it makes sense otherwise you can easily click on actions on the title bar.


Same has for different struct?

I have this simple code:
package main

import (
        "fmt"

        hashstructure "github.com/mitchellh/hashstructure/v2"
)

type Kitchen struct {
        numOfPlates int
        cost int
}

func hash(myType Kitchen) uint64 {
        hash, err := hashstructure.Hash(myType, hashstructure.FormatV2, nil)
        fmt.Println(err)
        return hash
}

func main() {
        fmt.Println("Starting...")
        myStruct :=  Kitchen{numOfPlates: 11, cost:3000}
        myStruct2 :=  Kitchen{numOfPlates: 10, cost:2000}
        myHash1 := hash(myStruct)
        myHash2 := hash(myStruct2)
        fmt.Printf("This is hash1: %d and this is hash2: %d\n", myHash1, myHash2)
        if myHash1 == myHash2 {
                fmt.Println("They are the same!")
        }
        fmt.Println("Finishing...")
}

The hash in both cases is the same even though the values of the structs are different. This is the output:
Starting...
<nil>
<nil>
This is hash1:<PHONE_NUMBER>158230899 and this is hash2:<PHONE_NUMBER>158230899
They are the same!
Finishing...

I'd expect a different hash. Is this a bug?

came across this.
You need to export the fields that should contribute to the hash. See this go playground link: https://go.dev/play/p/n8-MKSg5APN
This returns:
Starting...
<nil>
<nil>
This is hash1:<PHONE_NUMBER>7260405728 and this is hash2:<PHONE_NUMBER>2783207389
Finishing...

Program exited.


Add the ability to add <link> , <base>, <title> and similar elements as a plugin

Currently plugins only allow  to add inline styles and inline scripts.
I'd  be great  to be able to provide extra properties for the <head> node without creating a higher order component for all pages.

This is now possible since Fresh 1.4 . See this page in the docs on how to do it: https://fresh.deno.dev/docs/concepts/app-wrapper


[release-0.49] Fix Live Migration for reenlightenment VMIs

This is needed to avoid breaking the LiveMigration condition for existing VMIs when upgrading from 0.49 to 0.53+.
Without this patch the existing VMIs with reenlightenment enabled will become non-live-migratable as they're missing topologyHints.
Signed-off-by: Antonio Cardace<EMAIL_ADDRESS>
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

Fix Live Migration for reenlightenment VMIs

/cc @enp0s3 @iholder101

/hold
depends on https://github.com/kubevirt/kubevirt/pull/9182

Looks good to me!
Will give an LGTM when tests pass :+1:

Looks good to me! Will give an LGTM when tests pass +1

@iholder101 can you take a look?

/retest-required

/retest-required

Hey @acardace,
I think there's a compilation error regarding your unit tests. can you please take a look?

@iholder101 fixed unit tests, thank you

Thanks @acardace!
/lgtm
since https://github.com/kubevirt/kubevirt/pull/9182 had merge, I'll also take the liberty to unhold
/unhold


Loader reconciliation preparatory changes

We are slowly moving towards a loader that is resilient and reconciles whenever device changes are detected. Currently we have datapath logic to detect device changes, this needs to be reported up all the way to the Daemon which then pushes Reinitilization requests all the way down to the loader. This PR contains a number of preparatory changes that will make it easier for a followup PR to make the datapath / loader reconcile without going through the daemon, based on the devices table.
This PR removes the BaseProgramOwner which was one big layer violation. All dependencies the loader needs are now passed via Hive. Only the actual Reinitialize calling still exists, which will be replaced by device based reconciliation in a followup.

/test

/test

/test

/test

A few unresolved conversations that should be addressed before merging. Looks like ci-e2e-upgrade is not required at the moment, but there's one connection interruption during upgrade. Could it be related?

/test

/test


Make dropdown inside the docs to link to "inside the docs" for other languages

The dropdown you see here: http://googlecloudplatform.github.io/gcloud-ruby/docs/v0.1.1/, when switching, links to the other-language-equivalent of http://googlecloudplatform.github.io/gcloud-ruby/
Could we have it link inside the docs of those other languages?
ie:
Python: http://googlecloudplatform.github.io/gcloud-python/latest/
Node: http://googlecloudplatform.github.io/gcloud-node/#/docs

Do you want these links changes so while you are in the docs you switch to the other language docs? Or do you want to link to the docs even from the homepage?
e.g http://googlecloudplatform.github.io/gcloud-ruby/ links to http://googlecloudplatform.github.io/gcloud-node/#/docs

Moral would be "switching should take you the same type of page, just in the other language". So the landing page switcher should take you to other language's landing page. Docs-page switcher should take you to the other language's docs-page.

When viewing documentation the dropdown now links to the other languages' documentation. On the homepage it links to the other languages' homepage. Thanks!


User workflows implementation

Implemented the user workflows feature into the core.
See #2996

Is this something that is going to be mergeable before 8.0.0 @aembler? If not, we should probably close and have @ahukkanen open a new pull request against that release branch.

Just a sidenote: it gets kind boring to do this over and over again if this is never going to be merged. This is already the second time we implemented this (first one was for 5.6, though).

 I will merge it in 8.0 by hand. Thanks Antti.
best,
Andrew
On Thu, Jan 14, 2016 at 4:02 AM, Antti Hukkanen<EMAIL_ADDRESS>wrote:

Just a sidenote: it gets kind boring to do this over and over again if
this is never going to be merged. This is already the second time we
implemented this (first one was for 5.6, though).
—
Reply to this email directly or view it on GitHub
https://github.com/concrete5/concrete5/pull/3009#issuecomment-171626939.

I have merged this into 8.0. Thanks!!

Thanks for merging!


🔱 Investigate using kube-prometheus-stack instead of vanilla Prometheus

User Story
As a platform engineer
I want the easiest onramp for monitoring applications in our environment
So that each application doesn't require its own curated monitoring configuration
Value / Purpose
Using kube-prometheus-stack we can utilise the ServiceMonitor custom resource definition that comes as part of the Prometheus Operator, this will allow us to make use of 3rd party Helm charts that come with a serviceMonitor
Useful Contacts
No response
User Types
platform engineering
Hypothesis
If we switch out to using kube-prometheus-stack
Then we utilise the ServiceMonitor custom resource definition
Proposal
Replace the current prometheus-proxy Helm chart with kube-prometheus-stack, Disabling the built-in AlertManager and Grafana.
Additional Information
Remote write functionality is still available, it's just configured differently
Reference material: https://grafana.com/docs/grafana-cloud/monitor-infrastructure/kubernetes-monitoring/configuration/configure-infrastructure-manually/prometheus/remote-write-helm-operator/
Definition of Done

[ ] prometheus-proxy removed
[ ] kube-prometheus-stack deployed
[ ] Metrics still delivered to Observability Platform with external_labels (as per current)
[ ] Enable serviceMonitor in Open Metadata and Airflow charts

The story is quite old and will reopen if needed.


fix(stepfunctions) make Fail.error optional

Error is optional in Step Functions https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-fail-state.html

Pull Request Checklist

[x] Testing

Unit test added (prefer not to modify an existing test, otherwise, it's probably a breaking change)
CLI change?: coordinate update of integration tests with team
cdk-init template change?: coordinated update of integration tests with team

[x] Docs

jsdocs: All public APIs documented
README: README and/or documentation topic updated

[x] Title and Description

Change type: title prefixed with fix, feat will appear in changelog
Title: use lower-case and doesn't end with a period
Breaking?: last paragraph: "BREAKING CHANGE: <describe what changed + link for details>"
Issues: Indicate issues fixed via: "Fixes #xxx" or "Closes #xxx"

[x] Sensitive Modules (requires 2 PR approvers)

IAM Policy Document (in @aws-cdk/aws-iam)
EC2 Security Groups and ACLs (in @aws-cdk/aws-ec2)
Grant APIs (only if not based on official documentation with a reference)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.

The CodeBuild failure is sporadic, btw. Feel free to ignore that. But do add a test where you construct an Fail without an error.

@eladb @rix0rrr Done


Text in bubble is not displaying properly on older APIs

Not sure why this happens. It seems like the text is not wrapping correctly on older apis. Here's a screenshot of the word "test".

I'm testing on a Galaxy Nexus running 4.2 and an emulator running 4.1. It's not happening on Lollipop. Thanks.

fixed in #6

PR #6 doesn't address this bug. I have no solution for this one. We should reopen.

Still not working as of 1.0.3.
Tested on 4.2 and 4.1, it still displays like the screenshot above.

Hi @Mathbl
I am not seeing such view in my 4.1 emulator. can you show me code with the example

Hi @himanshu-soni
First, I just created a standard emulator with android studio:

Here's my layout code:
<me.himanshusoni.chatmessageview.ChatMessageView
    android:id="@+id/message_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    classcraft:cmv_arrowGravity="center"
    classcraft:cmv_arrowMargin="3dp"
    classcraft:cmv_arrowPosition="right"
    classcraft:cmv_backgroundColor="@color/gray_light"
    classcraft:cmv_backgroundColorPressed="@color/gray_light"
    classcraft:cmv_contentPadding="@dimen/content_spacing_small"
    classcraft:cmv_cornerRadius="6dp"
    classcraft:cmv_showArrow="true"
    >

    <TextView
        android:id="@+id/message_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="@dimen/content_spacing_xsmall"
        android:textColor="@color/gray_dark"
        android:textSize="@dimen/font_size_normal"
        />

</me.himanshusoni.chatmessageview.ChatMessageView>

Note that this is part of a listview item layout. In my listview adapter, I simply do holder.messageText.setText(message.getText());
If you need more info, I'll try to help.

Hi @Mathbl I have checked in 4.1.1 emulator and devices as well. it is working. please confirm. I am closing this issue.


Upgrade to Django 1.7.1

Django 1.7.1 fixes a lot of bugs, so we should upgrade.

Bitbucket: https://bitbucket.org/transcode/transcode-django-project/issue/11
Originally reported by: Markus Zapke-Gründemann
Originally created at: 2014-10-22T23:02:46.947

From Rene Muhl on 2014-10-24 11:32:53+00:00
resolved with the following commit:
https://bitbucket.org/transcode/transcode-django-project/commits/54f90d0e1c15b98fdbbfe6974e2b41614ddc6be4


Monoid instance

Could we have an instance of Monoid for BitPut ()?

A pull request would increase the chances :)


F11 issue

Hi,
Once the extension is in full screen mode and do some interaction in the digital boardroom we can no longer exit full screen mode by pressing f11. Kindly fix it.
Requirement is that we need to switch between demos infront of customers and it is a cumbersome process to close the extension and then open the other demo again.
Thanks.
Ahmed Hassan,
SAP.

Hi Ahmed,
This issue is now fixed in the 0.4 version.

Terry


Checksum error with GCC download

@tensorflow/micro
Short description
tensorflow/lite/micro/tools/make/targets/apollo3evb_makefile.inc:14: *** Something went wrong with the GCC download: Bad checksum. Expected: bc8ae26d7c429f30d583a605a4bcf9bc, Got: e588d21be5a0cc9caa60938d2422b058.  Stop.

System information

Host OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS Catalina
TensorFlow installed from (source or binary): n/a
Tensorflow version (commit SHA if source): latest from git clone b860885da901ed641015bc75b9ac06fc4a1c5a57
Target platform (e.g. Arm Mbed OS, Arduino Nano 33 etc.): SparkFun_edge

Reproduction instructions
make -f tensorflow/lite/micro/tools/make/Makefile TARGET=sparkfun_edge hello_world_bin

Describe the problem
Please provide the exact sequence of commands/steps when you ran into the problem

Potential duplicate of https://github.com/tensorflow/tensorflow/issues/45033

Potential duplicate of https://github.com/tensorflow/tensorflow/issues/45033

This works fine when I use docker running ubuntu 18.04, just on macOS.

This works fine when I use docker running ubuntu 18.04, just on macOS.

This is very likely an incorrect checksum as part of https://github.com/tensorflow/tensorflow/pull/46287.
We do not have appropriate CI for MacOS and many contributors (including myself) only test on Linux.
If you could send a PR with an updated checksum that is tested on MacOS, that would be very useful.

This is very likely an incorrect checksum as part of https://github.com/tensorflow/tensorflow/pull/46287.
We do not have appropriate CI for MacOS and many contributors (including myself) only test on Linux.
If you could send a PR with an updated checksum that is tested on MacOS, that would be very useful.


Fix unreliable calendar demo

Description
Please summarise the changes.
Related issues
Resolves https://github.com/CQCL/pytket-quantinuum/issues/432
Checklist

[x] I have performed a self-review of my code.
[ ] I have commented hard-to-understand parts of my code.
[ ] I have made corresponding changes to the public API documentation.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have updated the changelog with any user-facing changes.

Feel free to merge despite the test failure (due to timeout).


Can't access stderr piping of delayed_job worker

ruby 2.2.4
rails 4.2.6
mongoid 5.1.3
delayed_job_mongoid 2.2.0
mini_racer 0.1.3 (head; custom)

I'm using delayed_job to run javascript code in background workers and the mini_racer c extension is crashing on production.
I'm trying to get at the production crash information (which is in stderr) so that we can fix the crashes. I might be barking up the wrong tree, but daemons has a log_output option that works for this purpose, but I can't access that flag from the startup script or command line flags. (I've hacked Command#run_process to include it temporarily)
Ideally, stderr output would show up in delayed_job.log (maybe a flag to turn that on) or stderr.log files for each worker

Closing stale


Bundle .svg files as React components using svg-transformer plugin

Currently .svg images are stored as assets, so they should be preloaded from filesystem
We can avoid this just by bundling them into js code as React components (like it's done in CRA)
There is another Metro plugin called react-native-svg-transformer
More info you can find by the following link:
https://www.npmjs.com/package/react-native-svg#use-with-svg-files
@StanislavShevchenko checked out - just around ~35 svgs are linked in ~25 files in the GoodApp, so
we don't need a lot of time to update all of them (partially we can do it by search-replace).

if its only for react-native then ok

@sirpy why not for web ?
In the web bundle they will take even less space because bundling to react component for web is pretty simple. Just wrapping to the component directly:
export default () => (
// unchanged svg source here
)
then converting jsx to createElement calls & minifying

ok

@yaroslav-fedyshyn-nordwhale this is low priority

Verified as done on the Dev env v0.18.1-0
svg icons looks fine and same as before
Devices:
iPhone 11 // 13.3
iPhone 6 // iOS 12.1.1
Redmi 7 // Android 9.0


Provider agnostic gateway name/namespace

Changes
Builds on top of the authpolicy branch which should be merged first

Renamed the gateway we deploy to kuadrant-ingressgateway for both istio and envoygateway
Updated the namespace from istio-system/envoy-gateway-system to be gateway-system for both providers
Updated the docs that refer to the gateway to point to this single gateway

Open to suggestions for the naming above, happy to change.
These changes makes it so that a user can follow the user-guides directly without amendment regardless of which gateway api provider they provision with (make local-setup GATEWAYAPI_PROVIDER=istio/make local-setup GATEWAYAPI_PROVIDER=envoygateway)

What about sticking to the gateway providers specific namespace names, i.e. istio-system and envoy-gateway-system and create a new namespace for the default ingress gateway in a provider agnosting namespacedname? Something like gateway-system/ingressgateway ?? I have the feeling that changing from istio-system to something else might raise issues

@adam-cattermole we keeping this PR?

@maleck13 Yep, it's just a little out of date as it's based on the envoy gateway authpolicy branch which is yet to be merged


Deriving ArrayType for an empty struct causes proc macro panic

with:
proc-macro panicked: called `Option::unwrap()` on a `None` value

Ah, the derive macro assumes the field len to be non-zero for non-unit structs. We should handle these empty structs (named and unnamed) in the same way as unit structs.


Conditional render of tab list items

If the example has both html and nunjucks set to false we don't want to render the tabs list items.
This fixes the current issue, where on styles/images there is an empty tab list item, even though html is set to false.
Fixes: #622

You can preview this change here:
Built with commit 6b310bca0fdacd9fbb61fb0404cc92ae8ba46bab
https://deploy-preview-626--govuk-design-system-preview.netlify.com

test added.


MACCS Keys

Hi. I wanted to use RDKit for my Data (Compounds from KEGG) but wanted to first see if everything was "working correctly" so I aimed to use MACCS Keys using 4 few simple mock molecule since MACCS keys are a simple Atom - Atom comparison and then a Simple Tanimoto coefficient is used (DataStructs.FingerprintSimilarity in RDKit): (shared atoms)/ (Shared in mol a) + (shared in mol b) - (shared atoms)
However there seems to be a problem when comparing 2 molecules, with varying amounts of Carbon as seen below.

One would expect a comparison between (CCCCCN", "CCCCCCN") to be the most similar between each other as compared to ("CCN", "CCCN")  due to more Carbon atoms being in common between each so a difference of remove one would change the similarity very little, which is the case.
However, when removing one carbon at a time from each molecule, there is a reversal in the trend. Comparing the similarity between ("CCCCN", "CCCCCN") = 0.85 and ("CCCN", "CCCCN") = 0.8823529411764706, when in fact the similarity between the latter should be lower than the former.
Please let me know if I am missing something, Thanks.
My simple code is:
import rdkit
from rdkit import Chem
from rdkit.Chem import MACCSkeys
from rdkit import DataStructs
from rdkit.Chem.Fingerprints import FingerprintMols
def calculation(a,b):
ms = [Chem.MolFromSmiles(a), Chem.MolFromSmiles(b)]
fps = [MACCSkeys.GenMACCSKeys(x) for x in ms]
return DataStructs.FingerprintSimilarity(fps[0],fps[1])
print(calculation("CCCCCN", "CCCCCCN"))
print(calculation("CCCCN", "CCCCCN"))
print(calculation("CCCN", "CCCCN"))
print(calculation("CCN", "CCCN"))

The results are:
0.9523809523809523
0.85
0.8823529411764706
0.6666666666666666

This isn’t quite the way MACCS kegs work.  They are a collection of 166 predetermined features selected because they have been seen to vary biological results ( these were selected a while ago I might add ).
I expect you will find results you expect using the Morgan or RDKit fingerprints.  These are designed to not require a predefined set of interesting features.
https://www.rdkit.org/docs/GettingStartedInPython.html#morgan-fingerprints-circular-fingerprints

Here is a small change to use the default fingerprinted:
from rdkit import Chem
from rdkit.Chem import MACCSkeys
from rdkit import DataStructs
from rdkit.Chem.Fingerprints import FingerprintMols
print(help(FingerprintMols.FingerprintMol))
def calculation(a,b):
    ms = [Chem.MolFromSmiles(a), Chem.MolFromSmiles(b)]
    fps = [FingerprintMols.FingerprintMol(x) for x in ms]
    return DataStructs.FingerprintSimilarity(fps[0],fps[1])

print(calculation("CCCCCN", "CCCCCCN"))
print(calculation("CCCCN", "CCCCCN"))
print(calculation("CCCN", "CCCCN"))
print(calculation("CCN", "CCCN"))

And the results which are probably more to your liking:
0.85
0.8235294117647058
0.7142857142857143
0.6

Minor point: the MACCS keys were defined (in the 1970s) as substructure screens. They only indirectly correspond to specific biological results because they are trying to partition the query space, and people generally make queries correlated with biology/chemistry.

I'm closing this because it looks like the question is answered. Please reopen if necessary.


Getting locked out of accounts

I've created two accounts, both of which were created successfully. I favorited a decklist, logged out, and then received the error message 'Invalid credentials' when I tried to log back in. On the first account, I reset the password 3 or so times, to no effect. I am unable to log in with either account.

Every single time I log in, it tells me that my credentials are invalid.  I click forgot password (I didn't forget, you did).  I get an email, I click the link, I type /the same password/ in twice, and now I'm logged in.
I just did this one more time.  I immediately logged out and back in again: invalid credentials.

Thanks for the additional report @arantius - sorry this is happening for you. Like @plural, I've been unable to reproduce this issue in the past. Perhaps you could confirm the exact browser you're using and perhaps a dump of the information in Dev Tools in your browser when you receive the Invalid Credentials message?

Looks like this error comes from the core Symfony code, rather than any of our code, but I've found some suggestions online that it can be caused by having multiple users with the same username. I thought our users table had a unique index on the username field, but I'll look into this now.

Firefox 70.0.1 .
Not sure what console info you want, but I see the POST to /login_check sending a 302 back to /login, which eventually fetches /info which says {"is_authenticated":false}....
Oh, oh my.  So in my case, I use a password manager which was automatically filling in the form.  Putting my username (and not email) in the "username" box ... actually works.  PEBKAC.  Sorry.

Haha, no worries at all - gave me a chance to learn a bit more about how FOSUserBundle works. 😉
@gannicottb - if you're still experiencing this issue, let us know and we can investigate further.


Smart Property Administration

This proposal is for a unified (and backwards compatible) system of Smart Property Administration.  At the moment, we don't have much need for Smart Property Administration as the only post-broadcast action which exists for Smart Properties is the premature close of a crowdsale.   However, with the sister PR #243 we are (potentially) introducing a Smart Property that will have critical post-broadcast actions and as such we need a system to allow Administration to change hands over time and secure itself against threats like compromised private keys.  Without some formal Administration system, even long-running crowdsales run an increasing risk of being compromised.
The system is meant to propose a few starting paradigms: one that provides backwards compatibility so that administration rules can be applied universally and retroactively and another that provides basic distributed administration to provide robustness against attacks which compromise some of the keys.  However, in the future, more paradigms are likely to appear.
There is one legacy "expectation" that (depending on interpretation) is not currently maintained explicitly: the ability to freely transact in a given Smart Property in perpetuity.  It is possible, that the current implicit Administration of an existing Smart Property could surrender said Smart Property to a new Administration that imposes approval rules on simple sends or Dex messages.  In this way, the implied contract of the original SP could be considered broken as tokens would no longer be transferable without approval.  As a hedge against that, it may be necessary to impose implicit limitations on the Administration for existing SPs, particularly that their approval rules for basic trade are immutable regardless of future Administration changes.
Note: while their is mention of "voting" in the proposal, this is not meant to supplant or replace any previously discussed spec changes for conducting votes on the chain.  While this system may be sufficient for such a need with the addition of a manual "call for vote" that contains its own approval rules, its primary focus should remain the Administration of Smart Property.

Where  are we on this PR?

From an Omni Core perspective, there is no progress, and I hesitate to start anything, as long as this isn't specified and accepted.

so it seems this need further discussion and refinement

Hi,
in an attempt to clean up the current specification, I'm going to close old and outstanding pull requests. Please note, it's tagged as "old idea", so the work is not wasted and we can potentially review it at some point later.
Please feel free to resubmit it as new pull request, if you still think it's a good idea.


Wrong trading view chart on mainnet console

The BTC market show the chart of the LDO market.

Fixed


Uncaught TypeError: Invalid Point: (177, NaN)

[Enter steps to reproduce:]

Selected 2 lines, hit delete
Hit delete once more (to delete the remaining empty line)

Atom: 1.34.0 x64
Electron: 2.0.16
OS: Mac OS X 10.12.6
Thrown From: Atom Core
Stack Trace
Uncaught TypeError: Invalid Point: (177, NaN)
At /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11

TypeError: Invalid Point: (177, NaN)
    at Function.t.exports.Point.assertValid (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:43907)
    at DisplayLayer.translateScreenPosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:85014)
    at DisplayMarkerLayer.t.exports.DisplayMarkerLayer.translateScreenPosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1093011)
    at DisplayMarker.t.exports.DisplayMarker.setHeadScreenPosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:3173258)
    at changePosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:521833)
    at Cursor.changePosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:530377)
    at Cursor.setScreenPosition (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:521799)
    at Cursor.moveLeft (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:524621)
    at modifySelection (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:534433)
    at Selection.modifySelection (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:547515)
    at Selection.selectLeft (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:534401)
    at Selection.backspace (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:538925)
    at mutateSelectedText.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16061)
    at getSelectionsOrderedByBufferPosition.map (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16220)
    at Array.map (<anonymous>)
    at transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16209)
    at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:491881)
    at TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:24215)
    at mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16150)
    at TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:39529)
    at TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:39038)
    at TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16113)
    at TextEditor.backspace (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16037)
    at TextEditor.e.(anonymous function) [as backspace] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:259365)
    at TextEditor.core:backspace (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:302187)
    at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:307928
    at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:491881)
    at TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:24215)
    at HTMLElement.s.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:307871)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:350017)

Commands
     -1:42 fuzzy-finder:toggle-file-finder (input.hidden-input)
     -1:33 linter-eslint:fix-file (div.line)
  2x -0:51.6.0 core:backspace (input.hidden-input)
     -0:50.9.0 core:save (input.hidden-input)
     -0:47.5.0 linter-eslint:fix-file (div.line)
  2x -0:41 core:backspace (input.hidden-input)
     -0:39.5.0 core:save (input.hidden-input)
  2x -0:35.8.0 linter-eslint:fix-file (span.syntax--source.syntax--js)
  2x -0:06.2.0 core:backspace (input.hidden-input)

Non-Core Packages
advanced-open-file 0.16.8
angularjs 0.5.3
atom-typescript 12.7.1
busy-signal 1.4.3
default-language 0.3.1
emmet 2.4.3
intentions 1.1.5
language-markdown 0.27.0
language-pug 0.0.22
linter 2.2.0
linter-eslint 8.4.1
linter-ui-default 1.7.1
prettier-atom 0.56.0
react 0.18.0
react-es6-snippets 0.3.0
react-snippets 1.1.2
sublime-block-comment 0.5.1

Thanks for contributing!
We noticed that this looks like a duplicate of https://github.com/atom/atom/issues/18725 so you can subscribe there for updates if you'd like.
And just to clarify about your steps to reproduce, can you still reproduce now or is that what you remember doing when you saw the error (and you can no longer reproduce)?

Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.
For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.


Log testsuite name and keep valid json when truncating

This looks good to me, with one small caveat: strncpy() doesn't necessarily null-terminate its destination parameter, so there is a chance a non-string gets passed to the log macro.  strncpy() is a pretty lame function.  It zero-fills the entire unwritten part of the destination buffer for some reason, and if the entire buffer gets written by the input string, no '\0' gets written.
A simple solution is to use strncat() rather than strncpy().

Sorry, I misread the code.  There is no bug here.  Looks good to me.

I moved the PR from develop to master.


Change prefix path to only include the alternative path, not the entire bucket in the alternate path

Will rebase, and submit a new PR


Current password field does not have any validation - reported by @dharmik

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

Action Performed:

Login
Click on Settings
Click on Security
Click on Change Password
Start typing current password field

Expected Result:
Current password should have some Validation message like as it is already there in the New Password
Actual Result:
No validation for Current password
Workaround:
unknown
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number: 1.1.38-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/43995119/154413445-fac3d7be-12ef-4af2-9604-83745af4722a.mov
Expensify/Expensify Issue URL:
Issue reported by: @dharmik
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1643910277033719
View all open jobs on GitHub

Triggered auto assignment to @sophiepintoraetz (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

Clarifying with @dharmik in Slack

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

Triggered auto assignment to @michaelhaxhiu (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

We agreed here this is not actually a bug and we can close it.


mk: check for mockgen before test

Make sure mockgen is installed on the system before attempting to run
tests, requesting that the user install it if it isn't.

Just one question:
(a) Either we remove the mockgen if we are checking all the autogen files and mock folder completely in github?
and
remove the mockgen step completely from make files?
OR
(b) We need to do similar exercise for protoc and other autogen as well?

Just one question:
(a) Either we remove the mockgen if we are checking all the autogen files and mock folder completely in github? and remove the mockgen step completely from make files?

even if we check all the generated files in we still need to have the mockgen rules in place.

Another (functionally equivalent) way to achieve the same is to group all tools we depend on in a tools.mk like this: https://github.com/ietf-rats/ietf-corim-cddl/blob/main/tools.mk

This is worth considering if there are more such tools in the future. For now, given that we only need the check for mockgen, and that we only want to check for it on test, IMO it makes sense to have this inside test.mk


Enhancement: Add Makefile with cs and test targets

:exclamation: Blocked by #499.
This PR

[x] adds a Makefile with a cs target
[x] adds a test target
[x] updates CONTRIBUTING.md

:information_desk_person: Now it's easier than ever to fix coding style issues or run the tests, just run
$ make cs

or
$ make test

@localheinz should .travis.yml depend on the Makefile now?

@Ocramius
Actually, I personally don't mind a bit of duplication there - it's easier to see in the build log which step has failed, if you know what I mean.
What do you think?

@localheinz alright.

:+1:

Thank you, @Ocramius!


Contrast ratio

Is this feature supposed to work as a  software dimmer or hardware dimmer? I just installed it from aur and all it does is reducing contrast with no impact on actual monitor brightness.

Software dimmer.


feat: update registry version

Automated changes by the update-addons GitHub action

Merging into a branch.


"Redshift not installed"

My redshift installation got updated from 1.12-2+build1 to 1.12-4 around January 14th. Today I rebooted and QRedshift stopped working, it just says "Redshift not installed". I noticed that a QRedshift update was available (1.5.2), so I installed that too but the problem remains.
Obviously the suggested fix apt-get install redshift doesn't have any effect because it's already installed.

Can you run redshift -V  on console and put the output here please.

[1]    160617 segmentation fault  redshift -V

Looks like this is https://github.com/jonls/redshift/issues/708. Sorry for the noise.


Add working sample cmake-variants.yaml to .vscode

Some sample:

buildType:
  default: debug
  choices:
    debug:
      short: Debug
      long: Emit debug information
      buildType: Debug
    release:
      short: Release
      long: Optimize generated code
      buildType: Release

instrumentation:

  default: NoInstrumentation # no sanitizer/no instrumentation
  choices:

    NoSan:
      short: NoInstrumentation
      long: build without any instrumentation

    Coverage:
      short: Coverage
      long: build with coverage instrumentation
      settings:
        CMAKE_CXX_FLAGS: "-fprofile-arcs -ftest-coverage "
        CMAKE_C_FLAGS: "-fprofile-arcs -ftest-coverage"
        CMAKE_EXE_LINKER_FLAGS: "--coverage"

    ASan:
      short: ASan
      long: build with adresss sanitizer instrumentation
      settings:
        CMAKE_CXX_FLAGS: "-fsanitize=address -fno-omit-frame-pointer -fsanitize-address-use-after-scope"
        CMAKE_C_FLAGS: "-fsanitize=address -fno-omit-frame-pointer -fsanitize-address-use-after-scope"
        CMAKE_EXE_LINKER_FLAGS: "-fsanitize=address"

    TSan:
      short: TSan
      long: build with thread sanitizer instrumentation
      settings:
        CMAKE_CXX_FLAGS: "-fsanitize=thread"
        CMAKE_C_FLAGS: "-fsanitize=thread"
        CMAKE_EXE_LINKER_FLAGS: "-fsanitize=thread"

Fixed with fa1f45c458bf03c50cf63382ac77dc0f082e2a14


[spike] Marie Kondo our setup-stuff

This aims to simplify the configuration of webpack, babel and jest.
Therefore we:

dry down the webpack config.
remove our custom jest-preprocessor altogether, just relying on ts-jest and js-jest. 🎉
remove the jison file along with its loader.
move module aliasing into babel instead of doing it in jest and webpack.
use glob instead of fs to determine what test-files to run.
remove some seemingly obsolete test-helpers in the test-env (requestAnimationFrame).
remove some cruft (.es6-resolving) and do some cosmetics to old code.
remove a solid 118 lines of configuration and setup-stuff! 🎉

Testing

check if the same amount of tests is ran.
check if the DSL-stuff that's jison-related is still working.
anything that could break by the changes mentioned above.

⚠ 	if the overall change seems like a lot, have a look at the separate commits as they should be factored ok-ish. if you don't think so, we could also factor this PR into several ones. just let me know if that would help.
Closes DCOS-51098

We thought about extracting DSL to a library @wavesoft then we could keep the grammar there while shipping the compiled version. Current change kinda kills the source of truth, isn't it?

@nLight 	yes, it kills the source of truth. i therefore introduced a comment in case someone wants to modify that stuff.
maybe i should have shared my reasoning for removing right away:

nobody touched it since 2016 (apart from cosmetic changes). please have a look at the churn.
in the HH-office there is the believe that no member of the frontend-team can maintain jison. so it seems basically worthless to have it easily modifiable - if one wants to modify it, there's instructions in the comment linked above.
it does not seem worth having special-cases in our tooling/config for a single file that hasn't been touched and could have been commited as JS right away, as this increases our flexibility in changing stuff. (e.g. @DanielMSchmidt 	mentioned that he once wanted to try a different bundler and stumbled because of jison back then).

what do you think?

@pierrebeitz I agree it doesn't make sense to load it at runtime, though we could keep some tooling to compile jison. So that it is accessible when we need it. I don't accept the argument that if nobody is able maintaining it we should just remove it. When we need modifying it people will have to make sense of jison and it would be great having less obstacles at that moment.
Having said that would you be ok removing only the jison-loader part keeping the source with a comment how to compile it?

@nLight 	like this?

@pierrebeitz exactly, thanks for following up! 🙇

@pierrebeitz , file conflicts.

Waiting to update branch until

[ ] https://github.com/dcos/dcos-ui/pull/3764

is merged

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


[Feature Request] Darker text for dark mode

This is a small feature request, but it would be a great eye strain relief if it could be possible to change the colour of the font in the reader and everywhere else to not be white (#FFFFFF) but rather a grey (#C9C9C9).  The contrast between pure white and the dark background hurts my eyes when then moving to view a web page that has white background and dark text.

We can also look at Apple Books for the colors. The contrast on apple books is still a bit too high for me but its pretty good and works most of the time, AFAIK,it doesn't use pure white (#FFFFFF) for the text color.

In version 6.1 of NNW you will be able to build custom themes that use any color of text you would like. Duplicate of #19.


How can the blend-latent-diffusion gurantee the  'target edit ' generated by LDM located in mask region exactly?

Hi,
It is not guaranteed.
The idea is that the gradual diffusion process masking and blending encourages this behavior.


agent tuning has no effect

Reminder

[X] I have read the README and searched the existing issues.

Reproduction
finetune script
deepspeed --num_gpus 8 --master_port=9901 src/train_bash.py \
    --deepspeed scripts/ds_config_zero2.json \
    --stage sft \
    --do_train \
    --model_name_or_path /ML-A100/public/tmp/pretrain_weights/Yi-6B-Chat  \
    --dataset glaive_toolcall \
    --template yi \
    --finetuning_type lora \
    --lora_target q_proj,v_proj \
    --output_dir /ML-A100/public/tmp/llama_factory/Yi-6B-Tool-Lora \
    --overwrite_cache \
    --overwrite_output_dir \
    --per_device_train_batch_size 2 \
    --gradient_accumulation_steps 4 \
    --lr_scheduler_type cosine \
    --logging_steps 10 \
    --save_steps 1000 \
    --learning_rate 5e-5 \
    --num_train_epochs 3.0 \
    --plot_loss \
    --flash_attn \
    --fp16

train loss:

api script
python src/api_demo.py \
    --model_name_or_path /ML-A100/public/tmp/pretrain_weights/Yi-6B-Chat \
    --adapter_name_or_path /ML-A100/public/tmp/llama_factory/Yi-6B-Tool-Lora \
    --template yi \
    --finetuning_type lora

Expected behavior
When I request the API with the following script, should return corresponding function name and parameters
from openai import OpenAI

client = OpenAI(
    api_key="EMPTY",
    base_url="http://<IP_ADDRESS>:8000/v1/",
)

functions = [
    {
        "name": "get_current_weather",
        "description": "Get the current weather in a given location.",
        "parameters": {
            "type": "object",
            "properties": {
                "location": {
                    "type": "string",
                    "description": "The city and state, e.g. San Francisco, CA",
                },
                "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]},
            },
            "required": ["location"],
        },
    }
]
# Chat completion API
chat_completion = client.chat.completions.create(
    messages=[
        {
            "role": "user",
            "content": "What's the weather like in Tokyo",
        }
    ],
    model="yi-chat",
    functions=functions
)
print(chat_completion.choices[0].message)

but i get:
ChatCompletionMessage(content='The weather in Tokyo varies greatly depending on the time of year. In the winter, temperatures can drop to around freezing, while in the summer, temperatures can reach the high 80s or even 90s. The city experiences heavy rain during the summer months and occasional snowfall in the winter.', role='assistant', function_call=None, tool_calls=None)
function_call and tool_calls both None, I test a lot of oher prompts, all fail,  Is there anything to pay attention to when conducting agent tuning?
System Info
No response
Others
No response

Please upgrade your openai-python library and refer to https://github.com/hiyouga/LLaMA-Factory/blob/main/tests/test_toolcall.py
Besides, consider increasing the training steps and learning rate to get the model fit on the training data.

Thanks, after following your advice and making modifications, both the base and chat models, post fine-tuning, now possess the ability for function calls. Additionally, when testing function calls using the web_demo, please ensure the correctness of the JSON format for the provided tools, as failure may occur otherwise.


Weapons not working 1.19.2

I am trying to switch and use the weapons, but it does not recognize them
https://github.com/user-attachments/assets/fd0661a9-d587-4b73-83f2-92552003b23e
https://github.com/user-attachments/assets/d29b0391-2ad1-405d-90e9-2ed1b53af0c1
in the second one I am right clicking but it is not firing

Dunno if you are doing it but you have to hit G to select hte missile or gun. If you are hitting G and it's not changing there is a mod also using the G key that is causing a conflict.

you are hitting G hmm still could be a key conflict issue just change the key in keybinds and see if it changes

Will check it out, I don't have controlling on so I'll use that to check it.
On Sat, Sep 14, 2024, 12:47 AM Colin Vaughn @.***>
wrote:

you are hitting G hmm still could be a key conflict issue just change the
key in keybinds and see if it changes
—
Reply to this email directly, view it on GitHub
https://github.com/1whohears/DiamondStarCombat/issues/49#issuecomment-2350856035,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7F7T4ABBGTSU6YMSNW7QHLZWPEYDAVCNFSM6AAAAABOGLFW4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHA2TMMBTGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

Still not working, it doesn't switch to any weapon even though they are in
there
On Sat, Sep 14, 2024, 7:26 AM Aryan Thapa-Chhetri @.***>
wrote:

Will check it out, I don't have controlling on so I'll use that to check
it.
On Sat, Sep 14, 2024, 12:47 AM Colin Vaughn @.***>
wrote:

you are hitting G hmm still could be a key conflict issue just change the
key in keybinds and see if it changes
—
Reply to this email directly, view it on GitHub
https://github.com/1whohears/DiamondStarCombat/issues/49#issuecomment-2350856035,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7F7T4ABBGTSU6YMSNW7QHLZWPEYDAVCNFSM6AAAAABOGLFW4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHA2TMMBTGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

However tanks work, at least the main cannon
On Sat, Sep 14, 2024, 3:19 PM Aryan Thapa-Chhetri @.***>
wrote:

Still not working, it doesn't switch to any weapon even though they are in
there
On Sat, Sep 14, 2024, 7:26 AM Aryan Thapa-Chhetri @.***>
wrote:

Will check it out, I don't have controlling on so I'll use that to check
it.
On Sat, Sep 14, 2024, 12:47 AM Colin Vaughn @.***>
wrote:

you are hitting G hmm still could be a key conflict issue just change
the key in keybinds and see if it changes
—
Reply to this email directly, view it on GitHub
https://github.com/1whohears/DiamondStarCombat/issues/49#issuecomment-2350856035,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7F7T4ABBGTSU6YMSNW7QHLZWPEYDAVCNFSM6AAAAABOGLFW4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHA2TMMBTGU
.
You are receiving this because you authored the thread.Message ID:
@.***>

It still does not work, I have disabled all other buttons but it doesn't read it. I will try with another key and see what happens, in the meanwhile can you check the code and see if anything is wrong?

Mb accidentally hit the close button

To verify this is not because of a conflict with another mod please run DSC on it's own (including its dependencies of course). If "g" still doesn't work try changing it to other keys. Does the weapon cycle work on any other vehicles?

Will test another key, weapon cycle does not seem to work on other vehicles unless you mean going onto another seat in a tank

I got it working with another key tab
On Mon, Sep 16, 2024 at 10:18 AM 1whohears @.***> wrote:

To verify this is not because of a conflict with another mod please run
DSC on it's own (including its dependencies of course). If "g" still
doesn't work try changing it to other keys. Does the weapon cycle work on
any other vehicles?
—
Reply to this email directly, view it on GitHub
https://github.com/1whohears/DiamondStarCombat/issues/49#issuecomment-2353217722,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7F7T4GQLBQUR2FODZFNKDLZW3ZCRAVCNFSM6AAAAABOGLFW4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJTGIYTONZSGI
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

--
Aryan Thapa-Chhetri
Walter Payton College Prep
10th


Fix Finite State Machine approach

[x] Move properties to each state they belong
[x] Make state_machine have no states by default
[x] Move state transitions to the states they belong

fixed on https://github.com/pigdevstudio/platform_template/tree/fsm_revamp


etcd: STM transaction queue to effectively reduce retries for conflicting transactions

~rebased on https://github.com/lightningnetwork/lnd/pull/4411~
now on master since #4411 is merged
This PR adds (and integrates) commitQueue which' purpose is to detect conflicts for concurrently applied transactions and effectively reduce retries, by applying queuing up conflicting transactions for sequential execution, while leaving all non-conflicting ones to run freely (potentially in parallel).

The implementation is much simpler than I thought it would be! Just completed an initial pass, and nothing glaring jumped out. Will do another pass once I run it on an actual replicated db lnd instance. It would also be interesting to create a small patch that lets us run certain itests w/ and w/o this change so we can gauge the rough impact of the change on perf.

Yes, originally the queue was optional but decided to make it non-optional as really it should be on all the time.
We can still do the comparison, as it just requires removing these commits from the itest PR (https://github.com/lightningnetwork/lnd/pull/4402)

Thanks everyone for the reviews!


initial bootstrap layout

This is a first bootstrap proposal for the static rt project.

Thanks for your quick & complete review, I will leave comments
and submit an updated PR soon

Thanks @rspier for the review, I've updated the Pull Request.
Let me know if you want me to squash a few/all commits :-)

I merged this by hand, with one minor change:

Use CDN for JS and CSS instead of local copy.    (I'm not opposed to a local copy, but I'd want to structure it a little differently, and this was way easier.)

Thank you!

Nicolas,
I forgot to ask you to sign the CLA.  Please do: https://cla.developers.google.com/
(I'm confident that Google is unlikely to ever do anything with this code, but rules are rules.)

@googlebot ping

@googlebot I signed it!
On Mon, Oct 14, 2019 at 12:40 PM googlebot<EMAIL_ADDRESS>wrote:

Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project (if not, look below for help).
Before we can look at your pull request, you'll need to sign a Contributor
License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here with @googlebot
I signed it! and we'll verify it.
What to do if you already signed the CLA Individual signers

It's possible we don't have your GitHub username or you're using a
different email address on your commit. Check your existing CLA data
https://cla.developers.google.com/clas and verify that your email is
set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.

Corporate signers

Your company has a Point of Contact who decides which employees are
authorized to participate. Ask your POC to be added to the group of
authorized contributors. If you don't know who your Point of Contact is,
direct the Google project maintainer to go/cla#troubleshoot (Public
version https://opensource.google.com/docs/cla/#troubleshoot).
The email used to register you as an authorized contributor must be
the email used for the Git commit. Check your existing CLA data
https://cla.developers.google.com/clas and verify that your email is
set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
The email used to register you as an authorized contributor must
also be attached to your GitHub account
https://github.com/settings/emails.

ℹ Googlers: Go here
https://goto.google.com/prinfo/https%3A%2F%2Fgithub.com%2Frspier%2Frt-static%2Fpull%2F1
for more info.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rspier/rt-static/pull/1?email_source=notifications&email_token=AADC6IXEO5KVIZ3FHOKN3WTQOS4JVA5CNFSM4I26QYV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBF7NSA#issuecomment-541849288,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADC6IVUYTX2LRBQECYLDXTQOS4JVANCNFSM4I26QYVQ
.

Thank you.


Add support for persisting credentials

Currently, connection information is persisted in memory while running the CLI. In order for the CLI to support non-interactive mode in the future and be used for building scripts, the connection information must be persisted so that it can be used across the different commands, where each command runs in a separate process.
Azure CLI has implementation for cross-platform storage of credentials (https://github.com/Azure/azure-xplat-cli/blob/bea341b53149246fb61b95883aa34b72a7e980f2/lib/util/authentication/adalAuth.js#L32). We could reuse that code to implement storing credentials in the O365 CLI as well. Once we have that, we could adapt the CLI to run in non-immersive mode which can be used for building scripts.

[x] implement persisting connection state on macOS
[x] implement persisting connection state on Windows
[x] implement persisting connection state on Linux
[x] implement restoring connecting state when starting the CLI (both interactive and non-interactive)
[x] fix broken tests
[x] prove that new code is working
[ ] check that telemetry is being submitted in non-interactive mode
[ ] check that telemetry is not being submitted when running unit tests
[ ] add documentation pages about how persisting connection state works on the different OSes

I've done some research over the weekend what's possible with regard to persisting credentials/connection info. Here is the current solution I have in mind:

in the OS password store (Keychain for macOS, Windows Creds Store or a plain-text file on the file system for Linux. We need this last option to support running the CLI in a Docker container), store the refresh token. Azure AAD refresh tokens are multi-resource so we only need to store one and use it for retrieving access tokens to all O365 services. Refresh token is stored and updated each time you run the o365 spo connect <url> command
the first time you run the o365 spo connect command on your machine, and no refresh token is present in the OS secure store, the connection process will be interactive (you get device code, go to aka.ms/devicelogin and complete the authN). Once the refresh token is available and valid, the connection process will be non-interactive and will automatically retrieve an access token for the specified resource
once the connection is established, serialize the connection information (eg. access token, site URL, tenant info) to JSON and store in a shell variable (similar to env variable but persisted only for the duration of the shell session)
all commands can dehydrate the connection information from the shell variable

Storing the connection information in a shell variable is necessary to speed up running CLI commands in a script. Without it, for each command to be run, we'd have to:

access OS secure store to retrieve the refresh token
contact AAD to exchange refresh token for access token
run command

Alternatively, we could store all connection information in the OS secure store, but retrieving information from it, isn't very fast (~90ms to retrieve password from macOS Keychain) and might have a negative impact on running a script using CLI commands.
What do you think @andrewconnell @estruyf @VelinGeorgiev

I've just finished working on persisting connection state in macOS Keychain. You can find the current implementation in my fork @ https://github.com/waldekmastykarz/office365-cli/commit/afcf6a4c63db19ef2c061c02ab581db81e2bb230. Next, I'll be working on an implementation for Windows and Linux.

First version of persisting connection state on Windows is ready as well. Current implementation is available in my fork @ https://github.com/waldekmastykarz/office365-cli/commit/161a0d56deda44ddc4b6d850bbfd9726428d1f3d. Next, I'll be working on an implementation based on the file system for Linux/Docker containers. Once that's done, I'll clean it up add test and merge to dev so that we can have a beta version of the CLI for testing.

lol Waldek you are fast!
I agree with the above except the plain text for docker, but I have no experience with docker and containers so I am absolutely confident that since you do it, there isnt other option.

Is it an option the container image to come with passwords store or it is too much to ask?

Thanks @VelinGeorgiev! To me it feels like it's taking way too long, but making progress nevertheless and slowly seeing the end of the tunnel. The hardest part was to make it fit the CLI and support both interactive and non-interactive mode, but once that was done when implementing support for macOS, implementing Windows support was easier (it has some quirks of itself, but luckily the Azure guys solved them in their x-plat CLI).
With regards to Docker, I'm currently thinking there isn't really a point in encrypting it, because the container file system is read-only. The moment the container is stopped, all changes outside of the folders mounted from the host are gone. The only potential issue might be, if someone got access to your stopped container and would access its file system. But even then I wonder, if they couldn't extract the password from the encrypted store. So if you start your container with the --rm flag (remove container after stopping), there should be no trace of your credentials anywhere.

I've just finished adding support for persisting connection state on the file system on Linux. You can find the latest changes in my fork @ https://github.com/waldekmastykarz/office365-cli/commit/59ca5010e9373da001510848ecaccba4bffd71c1. I'm going to verify that it's working as it should in Docker and will then continue with cleaning up the code and adding tests.

I'll leave this here: the CLI works in Docker like a charm! You can connect to SPO, connection is persisted across commands, and after you disconnect there is only an empty file left in the container which is gone after the container is closed.

Just added the last unit test for the new code. See my fork @ https://github.com/waldekmastykarz/office365-cli/commit/fdae130e557e5f305a7211c1e9151caa6f8bf6a3. Need to check a few more things and write docs and will merge for releasing a beta.

Just released this in a beta version of the CLI. You can test it out by grabbing @pnp/office365-cli@next 🚀


Creating a document from the designer with a + character in the "Item Id" field causes cognito errors

Expected Behavior
You can add a document with a + sign in the the Item Id without issues
Actual Behavior
"the plus sign is messing up the url that is used to create a document, which is make the designer think the credentials are expired or dont work, loggin you out." Document does not get added
Steps to Reproduce the Problem

Create a Document with an Item Id that contains a +

Specifications

Version:
Platform:
@JohnCalhoun

fixed in v2.0.0


Add a mutable subscript to Graph when V is optional.

This PR modifies the subscript operator of the Graph pseudo-collection type such that, when V is optional, it is settable (with intermediate values defaulting to nil). This change simplifies some code that uses these subscripts.
Checklist:

[x] Code and documentation should follow the style of the Style Guide.
[x] If public symbols are renamed or modified, DocC references should be updated.

@swift-ci please test


feat: add discord-tenor-video component

I added a <discord-tenor-video> tag to play tenor gifs in video format (autoplayed looped no-control) (since discord API sends them as video embed and thats how their client renders it)
The styling is similar to discord-attachment and uses the attachment slot
Relevant to this issue
The changes in commit 57c26ad are auto generated through yarn build

@all-contributors please add @DarkGuy10 for code


Add option to wait for tasks to complete

Superseded by https://github.com/pyiron/pympipool/pull/104


Documentation overhaul

For the upcoming v1.0.0 release of the engine we should really overhaul our documentation to present a more comprehensive and consistent introduction to developing with the engine (and maybe playing the game in general). Need the help from multiple people here and new contributors can easily help by both pointing out weaknesses and figuring out then documenting simple things :-)
Big list of todos - not expecting we'll finish them all. Keep in mind a lot of these could be approached from two different contexts: how to code a new thing for feature x vs how to use feature x as a player

[x] Game readme. Needs to be streamlined a lot, it is too bloated. A ton of it probably should be moved into the wiki (see #1974) and some other stuff into the few "magic" files like CONTRIBUTING (see #463). Mainly the readme should link to all kinds of stuff and show a brief into with a screenshot or two.
[x] Hot keys. Currently in readme and on at least one outdated wiki page. Any good way to automatically scrape this from code? Or maybe just keep to the very basics (readme) - see #1470. Simple example on how to create a new hot key (or how to avoid new keys in favor of better systems using existing functionality in-game) would be good as well. Maybe the Sample module should implement a custom hot key as a demo, showing a simple custom UI window? Scraping for this implemented via #2051 - need to put to use
[x] Console commands. With the awesome in-game help system we have this in great shape. We probably just need to describe how to develop for commands and delete any attempted lists of commands outside the game other than the very basics (again see #1470)
[x] Put more hints into the launch scripts and the -help arguments about the launcher - see #1174
[ ] Minimum requirements page - #1123
[ ] Better organize + publish more intro videos to our gameplay templates like JoshariasSurvival or TTA (#932)
[ ] The Sample module needs more stuff in it - #739
[ ] Better introduction to using GitHub with the new tools available since we originally started, like the GitHub native client. We need a minimal hassle setup for contributors that don't necessarily need to code, such as artists just committing assets. #588
[x] Slimmer version of the Dev Setup page in general, it too has bloated. Also a suggestion to have a basic overview video for those who follow visual instructions better (#217)
[ ] Better doc + visibility for working on models / shapes in Blender. We have a nice forum thread at http://forum.terasology.org/threads/art-resources-guides-tutorial-videos-contributing-info.786 but again could use a nice short and sweet wiki page with details and links. #587 and maybe #508
[ ] Review our code conventions, style guide, and add some basic tutorials for how to Javadoc and unit test (#135). Can link to existing guides for a generic intro, naturally, this is more to cover anything Terasology specific
[ ] A world gen tutorial chapter on using biomes, which is an underutilized resource at present. #80 + https://github.com/Terasology/TutorialWorldGeneration/wiki + maybe overall review of the TutorialWorldGeneration repo and removal of "before 53.2" (assuming we have newer versions for everything covered)
[ ] How to use the browser / html / widgets in our UI: https://github.com/MovingBlocks/Terasology/pull/1817#issuecomment-146887085
[ ] Hook into any interesting external setups / add related doc. Example: http://yourfirstpr.github.io/ or https://github.com/todogroup/opencodeofconduct (more reading: http://www.erikaheidi.com/blog/is-your-open-source-project-welcoming-to-new-contributors)
[ ] Better / clearer definitions of modules vs mods vs gameplay templates vs template + extras (related: #1911), how to actually make your own template from scratch (rather than just a plain module) including picking a default world gen etc
[ ] Intro to our internationalization system (beyond its forum thread and Weblate)
[ ] Intro to our options for AI. This could be a tricky one unless we manage to get the behavior tree system updated for v1.0.0. You can do AI differently though. Pathfinding overall is still somewhat of a weakness. Related: #1871, #1304
[x] Overhaul Modding API page. Maybe we can scrape something like all engine classes with @API ? Kinda sorta related to #862 if only by name (was that one issue part of what led to NovaAPI? Fun to think about)
[x] Overhaul contributor wiki guide (#70 - oh hey, oldest open issue at this moment, and not even referring to the same wiki guide, heh, heh)
[ ] Finally explain the "teams" in the forum, how to make progress, and what if any benefits are attached (like handing out @terasology.org forwards)
[ ] Review and probably simplify the info tabs in the forum (sucks trying to keep them updated, should just be minimal with some links)
[ ] Code conventions. See #2119. @Generated is another example and is used both for Protobuf in engine and somewhere in TeraMath where we should probably apply it as well
[ ] Add a note about protobuf and what we need to do when it changes. See #2118
[ ] Entity system module tutorial: #2153
[ ] Asset tutorial: #2155
[ ] Event tutorial: #2158
[ ] Add annotations to API docs:  #2159

Related doc issues: https://github.com/MovingBlocks/Terasology/labels/Doc

I added some documentation about Fonts and Text.

I've gone over the main list here and split out one issue, everything else still outstanding either already has issues, is obsolete, or not really very important to where we'll need this open (odds are we'll catch it as part of general improvements. So I'm closing this as sufficiently complete to get it out of the way


Check is None for each class memeber

I'm using this library in python3 and so I'm doing the porting work.
I've successfully made all tests pass in python3 and instead of storing all work in my own repo I hope this simple change can be merged upstream.
After this change, the rest (convert to python3 code) can be handled by 2to3 tool without any further efforts.

Pardon me, I'm not so sure about the root cause.
The error when running test is:

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

I guess either numpy has changed or python3 has different semantics, anyway, this patch fixes it.

Got it.  Thanks so much for the fixes.  Glad you're getting some use out of this code. :)


Opt-in signup for newsletter

I would like to request a pre-checked option box for the newsletter and offers in the checkout.
This request is for websites that use Woocommerce.
In short I want the check-box for the optional newsletter subscription to be pre-checked. This means that if the customer doesn't want to subscribe to our  newsletter, it has to be an active action.

Hello @AlexBeredd, and sorry for the delay!
We can consider this feature for a future release, however this is not immediately on our roadmap.
For now you can easily customize the newsletter checkbox in the frontend to be checked by default in the Plugin Editor on the Admin Panel.
Hope this helps!