Powerbar

Added support for the gtklock powerbar module.
@jovanlanik - thanks for adding it.

Great to see! Maybe next I can implement a playerctl module and you can re-enable input inhibitor for gtklock?

implement a playerctl module

As I said once: very good idea.

I started work on it at https://github.com/jovanlanik/gtklock-playerctl-module. It's still not functional but I'll push out a release once I finish.

Very well. I'll remove the playerctl window from my nwg-lock script, as soon, as it's ready.

Little preview...

Nice! Will the position be configurable?

Yes

I added docs for powerbar-module at https://github.com/jovanlanik/gtklock-powerbar-module/wiki

Very well. I'm just adding a possibility to use various gtklock configs & style sheet for shell presets.

I added docs for powerbar-module at https://github.com/jovanlanik/gtklock-powerbar-module/wiki

One idea: if show-labels=false, the could show up anyway, as the tooltip text.

I tried that 😅 but seems a problem with gtk-layer-shell prevents this...

One other thing... I made it so that module options are available from the command-line.
For example $ gtklock -m powerbar-module --powerbar-show-labels.

Very nice, but I decided not to make predefined configs for presets, just style sheets. The user will have a single config.ini, and a possibility to add own configs, that will be used as the command argument, if found. Added the README file:

If you'd like to have separate gtklock configs for different nwg-shell presets, create a config file for each one, under the names 'preset-0', 'preset-1' and so on in this folder.

I assumed you would continue using command-line options from your wrapper and store the configuration yourself.
That way you completely avoid using the config file.

I wanted to avoid adding more GUI temporarily, but probably you're right. That's is a better solution.

But does it work yet?
$ gtklock -m powerbar-module --powerbar-show-labels

** (gtklock:17705): CRITICAL **: 23:28:55.816: Option parsing failed: Nieznana opcja --powerbar-show-labels

Should work on the latest master. You have to update both gtklock and the module.

It always results in version mismatch later. I'll better wait for packages, and focus on what's doable now: gtklock common settings and style sheets.

BTW: what does linked-buttons mean?

One other thing... I made it so that module options are available from the command-line.

I assumed it's also available for the userinfo module. Am I right?

It always results in version mismatch later. I'll better wait for packages, and focus on what's doable on my side now.

Amazing work!

BTW: what does linked-buttons mean?

I assumed it's also available for the userinfo module. Am I right?

Yes but I changed some options. round-image was changed to no-round-image and vertical-layout to horizontal-layout. The reason is command-line flags have to be false by default... I'll update the documentation as well.
You can always see module options by running $ gtklock -m userinfo-module --help-userinfo.

Alright, I need to wait for final modules versions, if so. Anyway, the code on my side is ready to support config values as flags. At most, I'll have to rename them.

My css styles finally seem to match the presets, and I do like it.
preset-1.css

preset-3.css

Looks great!

The playerctl module should be functional now. You can test it with the packaged version of gtklock (1.3.6) or master, master will allow command-line options.
Current playerctl options are:
[playerctl]
art-size=64
position=top-center

If you set art-size to 0, it will be hidden. position can be one of top-left, top-center, top-right, bottom-left, bottom-center, bottom-right, above-clock or under-clock.

And all modules together! Looks a bit crowded 😅

I'm curious to see it in action. Will give it a try tonight.
Wouldn't it be possible to place it in the corner?

It works, to some degree. I''m testing with the packaged gtklock version.

Where does it take images from? I still see just the missing image icon. Even if I set art-size=0.
The play/pause button works. Forward / backward buttons end up in memory dump.

Try testing with master, I'm not sure if 1.3.6 works or not... I'll push out 1.3.7 soon.

Also what players are you using? I only tested firefox and mpv, so it might have an impact.

music.youtube.com on Google Chrome and Audacity.

Where does it take images from? I still see just the missing image icon. Even if I set art-size=0.

The image is loaded from a URI in the metadata. You can view it by running $ playerctl metadata
It seems chrome doesn't provide an image. Here is my output on chromium 105 on music.youtube.com:
chromium mpris:length              371000000
chromium mpris:trackid             '/org/chromium/MediaPlayer2/TrackList/Track5100E01FD81EC22DACEF4ECCFAF68F98'
chromium xesam:album
chromium xesam:artist              Black Sabbath
chromium xesam:title               Into the Void

Firefox on the other hand outputs:
firefox mpris:trackid             '/org/mpris/MediaPlayer2/firefox'
firefox xesam:title               Into the Void
firefox xesam:album               Master of Reality (2009 Remastered Version)
firefox xesam:artist              Black Sabbath
firefox mpris:artUrl              file:///home/lanikjo/.mozilla/firefox/firefox-mpris/9835_0.png

Same page, same track.
I also tested Audacious and had no problem with the image.

Metadata here:
audacious xesam:title               Voljela Me Nije Ni Jedna
audacious xesam:artist              Branimir Stulic
audacious xesam:album               Balegari Ne Vjeruju Sreci
audacious xesam:url                 file:///home/lanikjo/Downloads/Branimir%20Stulic%20-%20Balegari%20Ne%20Vjeruju%20Sreci%20%281990%29%20%5BFLAC%5D/Branimir%20Stulic%20-%2001.%20Voljela%20Me%20Nije%20Ni%20Jedna.flac
audacious mpris:length              184000000
audacious mpris:artUrl              file:///home/lanikjo/Downloads/Branimir%20Stulic%20-%20Balegari%20Ne%20Vjeruju%20Sreci%20%281990%29%20%5BFLAC%5D/folder.jpg
audacious mpris:trackid             '/org/mpris/MediaPlayer2/CurrentTrack'

Can you try running $ playerctl metadata with your players and see what you get?

Also I fixed the missing image icon showing even when art-size is 0.

You're right, Firefox provides the image path. Unfortunately, it's useless on my setup, as it always crashes on sway reload, if my external keyboard is attached. Can't live w/o it, since the built-in MSI keyboard is horrible. :/

Also I fixed the missing image icon showing even when art-size is 0.

It works.

Try testing with master

Not tonight, sorry. I am leaving for a long journey at six in the morning and it's already 2 am. I'll take a look at it as soon as I'm back.


[shuffle] shuffle transactions --address

Motivation
We want the ability to capture transactions from a given address. This PR accomplishes that.
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
Run cargo -p shuffle -- transactions -n <IP_ADDRESS>:8081 --address 0x24163AFCC6E33B0A9473852E18327FA9

Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/diem/diem/tree/main/developers.diem.com, and link to your PR here.)
If targeting a release branch, please fill the below out as well

Justification and breaking nature (who does it affect? validators, full nodes, tooling, operators, AOS, etc.)
Comprehensive test results that demonstrate the fix working and not breaking existing workflows.
Why we must have it for V1 launch.
What workarounds and alternative we have if we do not push the PR.

/land

:lock: Merge Conflict

/land


Location fix naming

https://github.com/AeonLucid/POGOProtos/blob/master/src/POGOProtos/Networking/Envelopes/RequestEnvelope.proto#L22
ms_since_last_locationfix ->
ms_since_last_location_fix

Closing this issue, let me know if this is still relevant.


complex parceled classes in Intent used for startActivityForResult causes memory leak?

Hello There,
I am using your library and having a memory leak with a class i am parcelling and passing as argument to an Intent which is used for startActivityWithResult.
If i am not using
this.setIntent(null)
after getting the Intent passed from the other Activity and unwraping the stuff, I will get a memory leak.
Am I doing something wrong or is this a bug?

Can you share your @Parcel implementation or some more details?  Are you finding this memory leak via Leak Canary?

Nope I am not finding the leak via LeakCanary. But let me doublecheck my code first. I have a bad gutfeeling regarding some areas in the app. Will verify it and get back to you

I'm going to close this.  Feel free to reopen if you have some concrete details.

well, it was related to the fact that an Android parcel is not always really "parcelled"... and I had a big object which had references to views and context, and it was passed as a whole object, and not "parcelled" and "unparcelled"...


Expansion of environment variables as part of subject-paths does not work

We have a job-global environment variable that is successfully used in other build steps, but that does not get expanded as part of defined subject-paths, see this error.
Is some special syntax required, or is this another restriction of actions/glob?

When you have a job step which invokes a command using run you're running an instruction within a bash shell and get all of the features of the shell like environment variable expansion:
run: |
  gh release create $ORT_VERSION --notes-file RELEASE_NOTES.md \
      ./cli/build/distributions/ort-$ORT_VERSION.{tgz,zip}* \
      ./helper-cli/build/distributions/orth-$ORT_VERSION.{tgz,zip}*

When you invoke something like actions/attest-build-provenance with uses you're simply passing parameters to command and don't have the features of the bash shell available. However, you can still access environment variables using the Actions expression syntax:
- name: Attest Build Provenance
   uses: actions/attest-build-provenance@v1
   with:
     subject-path: |
       ./cli/build/distributions/ort-${{ env.ORT_VERSION }}.tgz
       ./cli/build/distributions/ort-${{ env.ORT_VERSION }}.zip
       ./helper-cli/build/distributions/orth-${{ env.ORT_VERSION }}.tgz
       ./helper-cli/build/distributions/orth-${{ env.ORT_VERSION }}.zip

My bad, you're right, thanks @bdehamer!


Greenkeeper creates PR to non-existing versions

I got this PR a month ago about upgrading to sinon 5.0: https://github.com/grantila/already/pull/2
The only problem is, the latest version of sinon is 4.5: npmjs package.json. Where are you getting 5.0 from?

Hi @grantila ,
Sinon accidentally released a 5.0.0. after 4.1.4 when they meant to release "5.0.0-next.1, which appeared shortly after. They then removed 5.0.0 again. You can see the remains of the release in some unused commits here, the changelog reads 5.0.0-next, but the release version is 5.0.0, and here in the package.json.
Since there are no unpublish events coming from npm, handling this properly is a bit tricky, I’m afraid.
Hope that answers your question!

Thanks for the explanation!


Draw vertical lines at tab stops

I copy here  my request text again, the picture overlaps with it!
Hello. I was looking for the possibility of having vertical lines drawn at each tab stop like (optionally) in Bbedit or Textmate, I attach a screenshot. If possible, it would be nice to have such a feature, I

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Success every 2nd run

HI all
I have a head-scratcher (for me) ...
I have a Tm1py python code that executes 100% every time when running it from python or the command prompt.
Calling it from Tm1 (Epilog in a TI) works 100% every time.
BUT
Then I added a cube clear in the prolog and now by success rate is 50% - thus every 2nd run there is just no result.
I created a wrapper process calling the cube clear and execute python separately with the same result.
I inserted a waiting process after the cube clear (30 seconds) - this also did not change the result.
Any idea on why I see this behavior?
Thanks

What does the code do? What is the error message? You should be a bit more specific. :-)

The Tm1py code evaluates attributes from 2 dimensions and does a compare on them - thus a "Find the best Match" algorithm.
The result is then written back to a cube.  But the result set in Tm1 needs to be cleared before each execution.
There is no error message - that is the problem - according to all log files the process executes successfully - but no result is seen in the cube.   It is as if the result write happened before the cube clear.  And only every 2nd run.

TM1py never fails silently.  When any REST operation fails in TM1py (e.g. a process fails or the MDX has a typo) you will get a TM1pyException.
Perhaps when you execute it through ExecuteCommand from TI, you just don't notice the error.
Perhaps try to wrap your code in a try, except block and log the potential error into a log file.

import logging

from TM1py.Services import TM1Service

logging.basicConfig(
    filename="tm1py.log",
    format='%(asctime)s - TM1py - %(levelname)s - %(message)s',
    level=logging.INFO)

try:
    with TM1Service(address="", port=12354, ssl=True, user="admin", password="banana") as tm1:
        tm1.server.get_message_log_entries()

except Exception:
    logging.exception("Fatal error in main loop")

Also please make sure you use the execute_process_with_return method instead of the execute method. The IBM REST API exposes two methods to execute processes. The execute_process_with_return will throw a  TM1pyException even at a minor error.
It's easier to deal with. For the execute method you have to parse and understand the response JSON yourself.

@dfrankenCW
I could somewhat understand the issue here. The wrapper process that is calling the Cube clear is not working as expected.
It is clearing the cube after TM1py has loaded the data into the cube.
This is because of the commit difference between the TI process and the data load via REST API.
First of all, lets make sure your TM1py code is doing the work as expected. So basically try to write the output to a csv file and check if the file has data (also check if it has required data).
Secondly, move the cube clear process into the TM1py code

This is quite common when you have 2 sessions doing work in parallel and the commits don't line up. Especially if you do an execute command with a wait (1). It works like this.

TI runs
cube clear data or zero out
the change is held in an uncommitted state, due to parallel interaction.
python is called
python data is committed
--- at this point the cube is in 2 states--
--- the real, queryable, data is that written by python ---
--- the cube overlay produced by the TI has the cells as empty
clear data is committed back to the cube replacing the data that was written there 2nds ago

The 2nd time you run it, the clear does not produce an overlay because the cells are already blank, therefore the python works.
Ryan Clapp
AWS Business Systems
Sr. Manager
Sent from my mobile device
On Jul 6, 2020 3:42 AM, Vinoth Kumar Ravi<EMAIL_ADDRESS>wrote:
@dfrankenCWhttps://github.com/dfrankenCW
I could somewhat understand the issue here. The wrapper process that is calling the Cube clear is not working as expected.
It is clearing the cube after TM1py has loaded the data into the cube.
This is because of the commit difference between the TI process and the data load via REST API.
First of all, lets make sure your TM1py code is doing the work as expected. So basically try to write the output to a csv file and check if the file has data (also check if it has required data).
Secondly, move the cube clear process into the TM1py code

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/cubewise-code/tm1py/issues/271#issuecomment-654156515, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEK7GZW2DI45VJX6V4SACLTR2GS65ANCNFSM4ORLNF4Q.

Thanks, Ryan Make perfect sense now.
I moved the Clear to the python script and now the process execute as it should.


When the bam file (200 Mb) is big, it failed to load

I found that there is an issue if the .bam alignment file is 200Mb, the displaying will fail. There is no other error except that the browser complains a slow loading issue.  After testing for a while, the result is that loading always fails.
Any solution to this? Reduce the sliced bam size or relative small region?
I think the RAM for this computer used in testing is big enough (126 G).
As a control, I tested in the IGV browser the same .bam file and it works well.

Do you mean the original bam file that is input to the report?  I test with a 3.1 GB bam file, the size of the bam file is not relevant to the report, although the depth of coverage might.   It might help if you post the command line parameters you used for generating the report.   Also, how large is the generated .html file.

The command: create_report examples/variants/variants_short.bed.txt hg38/hg38.fa --flanking 1000 --sequence 1 --begin 2 --end 3 --info-columns MarkerName Chromosome Start End --tracks examples/variants/m64011_210305_012434.hifi_reads.demux.GRCh38.mq255.chr5:150066324-150086375.bam  --output CSF1PO.html
The bam "m64011_210305_012434.hifi_reads.demux.GRCh38.mq255.chr5:150066324-150086375.bam" is a subset of bam only for locus "CSF1PO at region chr5:150066324-150086375.bam".
The output CSF1PO.html was successfully generated. The bam is only for locus "CSF1PO" and no aligned bam data for other places. The displaying of CSF1PO.html shows ok for other loci where the bam is empty. But for the site CSF1PO, the displaying of the bam track failed.
The same data can be viewed normally in IGV browser. The reference is the same as the example data. It seems that the region was not changed to the expected range after clicking the CSF1PO row. Please see the image below.

My Testing Data:
html file: https://drive.google.com/file/d/1TVnvlsjfyvyVztLgyJCwDAOcD_So18vn/view?usp=sharing
bam file: https://drive.google.com/file/d/1laubyYxi8OC46q0bM6zVyFqUBtVrk9wj/view?usp=sharing
bam.bai: https://drive.google.com/file/d/1TcxqhoaY0Bkv2zdtgbHLAqYiGNJob-ch/view?usp=sharing

the reference is the hg38.fa

The problem here, I think, is the depth of coverage, more than 3,000X.     I suggest you either downsample the file to a lower coverage, for example with samtools "subsample" command,  or reduce the flanking region around the variant.  For flanking you could try 100,  if that's successful increase it until it fails.


Update README.md

READE.md file at https://github.com/tensorflow/autograph/tree/master/examples/sysml2019 has a minor error at line 15.  pip install tensorflow is incorrectly mentioned as pip install tesnorflow which can cause the README.md to be unusable by a person who tries to reproduce by copy pasting

@mdanatg @ewilderj kindly review

@jyrj Thank you for the fix!


Add config support to export project with custom path prefix

Currently, next export generates files assuming absolute paths. This is problematic when the static site is pushed to a sub-folder, e.g. Github Pages.
For example, if I push my my-project/out folder to a gh-pages branch, then access it at https://user.github.io/my-project/, the page is looking for assets at /_next/..., for example href="/_next/a3c4359f-2b55-4680-b981-dfddcf84cea4/page/index.js"
To solve the problem, I think we want to be able to specify a custom path e.g. /my-project, so then  it would look for assets in /my-project/_next/...

You already can do that using assetPrefix configuration. Just add that key to your next.config.js and set /my-project if you are running on production, that way when running next build you will have /my-project/_next/... and in development you will use /_next/....

@moarwick deploying any Next.js app into a sub directory is kind a tricky. We'll address this after 3.0


Added optional encryption block for azurerm_recovery_services_vault

PR Checklist

[x] I have added example(s) inside the [./examples/] folder
[x] I have added the example(s) to the integration test list for normal (~30 minutes) or long runner >30 minutes
[x] I have checked the coding conventions as per the wiki
[x] I have checked to ensure there aren't other open Pull Requests for the same update/change?

Description
This allows to use a custom encryption key on a recovery vault by using the encryption block.
Does this introduce a breaking change

[ ] YES
[x] NO

Testing
recovery_vaults = {
  asr1 = {
    name               = "vault_re1"
    resource_group_key = "primary"

    region = "region1"

    replication_policies = {
      repl1 = {
        name               = "policy1"
        resource_group_key = "primary"

        recovery_point_retention_in_minutes                  = 24 * 60
        application_consistent_snapshot_frequency_in_minutes = 4 * 60
      }
    }

    backup_policies = {
      vms = {
        policy1 = {
          name                           = "VMBackupPolicy1"
          vault_key                      = "asr1"
          rg_key                         = "primary"
          timezone                       = "UTC"
          instant_restore_retention_days = 5
          backup = {
            frequency = "Daily"
            time      = "23:00"
            #if not desired daily, can pick weekdays as below:
            #weekdays  = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
          }
          retention_daily = {
            count = 10
          }
        }
      }
    }

    encryption = {
      key_id                            = "https://myvault001.vault.azure.net/keys/asr-cmk/"
      infrastructure_encryption_enabled = true
    }
  }
}

thanks for the PR @shanoor, I will close this one as #1697 seems more modern. Please add examples to #1697 and we should be good!


Want to get involved in the community

Since i checked all your details in website for slack channel. or discord server. So kindle please share way to get involved in the community

Hi Danish! I'll send you an email (to the one on your GH profile). We don't have anything official yet so I'd first love to learn more about your interests and how you'd like to get involved.


Enable load flag, to fix pushing multiplatform images

I think https://github.com/ministryofjustice/hmpps-probation-integration-services/pull/242 may be what we need


changes to make this module work with RedHat variants

I really like your module, but I had to make a few changes to get it working on RedHat/CentOS/etc.
This pull request contains the very slight changes that I made to get it working for my test machine on CentOS.  As far as I can tell, this should not cause any problems for your Debian/BSD support, but will help with adding RedHat/CentOS/Ubuntu/etc support.
Your consideration is appreciated.
Thanks!
Eric Rostetter

Thanks for your contribution. CentOS/RedHat is definitely on my roadmap. I am currently working on setting up some CentOS VMs to work on the setup.
Thanks
Stefan

Thanks!


Make the service runnable without Docker.

Description
Add dotenv-rails so that we can pass in environment variables to the service, without having to use Docker.
Also add pry for debugging.
Checklist:

[ ] Automated checks are passing locally.
[ ] CHANGELOG updated if change is worth telling users about.

General testing

[ ] Test without javascript
[ ] Test on small screen

Accessibility testing

[ ] Works keyboard only
[ ] Tested with one screen reader
[ ] Zoom page to 400% - content still visible
[ ] Disable css - does content make sense and appear in a logical order?
[ ] Passes automated checker (automated in build or manual)

Consider adding an .env.example file as well.

Good catch, I thought we’d already addressed that.
Will patch 👌

@baphled @slorek the env.example is here: https://github.com/UKGovernmentBEIS/beis-opss/pull/1360 – will merge now.

@frankieroberto cool, I'll remove .env.example from here. Once #1360 is merged, we can rebase this with those changes.

@baphled please take a look here: https://github.com/UKGovernmentBEIS/beis-opss-psd/pull/3
I would add .env.development.example and .env.test.example and exclude .env.development and .env.test in .gitignore.

UKGovernmentBEIS/beis-opss-psd#3

@slawosz what's the benefit of having multiple .env.*.example?
I can understand the reasoning, if we've got slight changes dependant on environment but not so much when the environment variables are all the same regardless of environment.
We could quite easy do cp .env.example .env.development or cp .env.example .env.test


[FIX] memory leak with meshInstances being referenced by material

Fixes #1299
I confirm I have signed the Contributor License Agreement.

Closed this PR by mistake.


Fix for #349. Replaced ./bin/testrpc by ./cli.js after file renaming in 464039b32396e6fac406ecc087d9900e7d47268d

Fix for #349.
testrpc file was renamed in commit: 464039b32396e6fac406ecc087d9900e7d47268d, but Dockerfile wasn't updated.

Thanks!


chore: Bump audioplayers to 1.2.0

Resolves upstream issue https://github.com/bluefireteam/audioplayers/issues/1194

Description

Checklist

[ ] I have followed the Contributor Guide when preparing my PR.
[ ] I have updated/added tests for ALL new/updated/fixed functionality.
[ ] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
[ ] I have updated/added relevant examples in examples or docs.

Breaking Change?

[ ] Yes, this PR is a breaking change.
[ ] No, this PR is not a breaking change.

Related Issues

Released flame_audio 1.3.4 with this change


Duplicate class jetified-tink and jetified-tink-awskms

I would like to use AWS KMS integration in my Java Android Project.
Anyway I have just applied the sample code in JAVA-HOWTO.md but the problem was that AwsKmsClient wasn't able to resolve by Android Studio I think it was because I was using 'com.google.crypto.tink:tink-android:1.6.1' in my Gradle.
I have seen since 1.3.0 I have to apply as a different package in my gradle so I did implement tink-awskms in gradle. I couldn't use them both so I have deleted tink-android module from the gradle and left only tink-awskms but still I cannot run my app because of some Duplicate class errors. I have tried every way actually. Protobufs, excluding modules on gradle after 3 hours of work I still have nothing.
I will drop my gradle file and the errors that I'm getting during the compile time.
configurations {         all {             exclude group: "com.google.crypto.tink", module: "jetified-tink"             exclude group: "com.google.crypto.tink", module: "jetified-tink-android"         }     }
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation("com.google.guava:guava:31.0.1-jre")
// Import the BoM for the Firebase platform
implementation platform('com.google.firebase:firebase-bom:29.0.3')
implementation 'com.google.firebase:firebase-storage'
implementation 'com.google.crypto.tink:tink-awskms:1.6.1'
Error that I'm getting;
Duplicate class com.google.crypto.tink.Aead found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.KmsClient found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.KmsClients found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.config.TinkFips found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.config.TinkFips$1 found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.config.TinkFips$AlgorithmFipsCompatibility found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.config.TinkFips$AlgorithmFipsCompatibility$1 found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.config.TinkFips$AlgorithmFipsCompatibility$2 found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.config.TinkFipsDisabled found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.config.TinkFipsStatus found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.subtle.Enums found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.subtle.Enums$HashType found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.subtle.Validators found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)
Duplicate class com.google.crypto.tink.subtle.Validators$1 found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-awskms-1.6.1 (com.google.crypto.tink:tink-awskms:1.6.1)

Same issue on tink-gcpkms:1.6.1:
Duplicate class com.google.crypto.tink.Aead found in modules jetified-tink-1.6.1 (com.google.crypto.tink:tink:1.6.1) and jetified-tink-gcpkms-1.6.1 (com.google.crypto.tink:tink-gcpkms:1.6.1)
I tried removing implementation 'com.google.crypto.tink:tink-android:1.6.1' from gradle and excluded the duplicate class:
implementation('com.google.crypto.tink:tink-gcpkms:1.6.1') {     exclude group: 'com.google.crypto.tink.Aead'   }
but I'm getting the same error.

Hi, I cannot reproduce the error, could you please try using com.google.crypto.tink:tink-gcpkms:HEAD-SNAPSHOT and see if https://github.com/google/tink/commit/a32ff51877d048c858f116de68d5ab20e63af6fe fixes this issue?


Fatal error compiling: invalid flag: --release

My versions:
C:\work\axonquickstart-4.2\giftcard-demo>java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
C:\work\axonquickstart-4.2\giftcard-demo>mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)
Maven home: C:\work\soft\apache-maven-3.3.9\bin..
Java version: 1.8.0_112, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_112\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"
After playing with some OS tips I always ended with some kind of Fatal error compiling - either about incorrect source version, or class versions (apparently there is something compiled with Java 11?)

I had the same error and I could fix ist bei replacing the line https://github.com/AxonIQ/giftcard-demo/blob/master/pom.xml#L194
now:
${java.version}
replaced it by:
${java.version}
${java.version}
See https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html, this might be necessary if you are using Maven 3 instead of Maven 2.

Thanks for the suggestion there, @aheinzer.
I've just pushed the changes you've mentioned for the maven-compiler-plugin in commit baa3cbb.
As a follow-up, I felt this issue should be closed as 'resolved.'


Link to lightning network explorer in offer display

Maybe Amboss or something.

https://github.com/squeaknode/squeaknode/pull/2026


BRS-170: park search improvements

Description
This PR includes the following proposed change(s):
Removes the search/search-view parts of strapi to try (with kind of mixed success tbh) to replicate some of the default strapi search behaviour (same params, etc). Keyword search is done using Postgres full text search with added indexes.
The changes to the explore page are to keep everything working, also removes the initial (static) load of protected areas.
Unfortunately the API side makes heavy use of raw queries via knex, which should protect from SQL injection but ties us to using Postgres.
Note that some searches are quite slow (e.g. 1.5s query time), possibly due to missing indexes with a large number of joins. Needs a bit of investigation, but deferring that for now.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

I'm noticing the search query is fairly slow. I'm getting any where between 1s to 1.7s on my machine. This might be okay for beta but we'll probably need to improve on this eventually.

I added https://bcparksdigital.atlassian.net/browse/BRS-334 but we may just want to make that to improve performance.

Added loading indicator in 02a08dd and updated benchmark ticket to be about improving performance.


Broken pipe error with WandB

Hey Danijar, I hope is well with you!
I've been trying to run the DreamerV3 code with WandB - it works for a few hours (sometimes for up to 4 hrs with higher RAM) in Colab. Then I get the following error, seems like it's coming from WandB:
BrokenPipeError: [Errno 32] Broken pipe
wandb: While tearing down the service manager. The following error has occurred: [Errno 32] Broken pipe
I can ofc run DreamerV3 without logging to WandB, but I was wondering if you or anyone else had a fix for this problem - I'm currently doing a run with a downgraded version of WandB (from December, when I was able to run the code for 24 hrs as a Colab Pro+ subscriber).
Thanks a lot for your help! Btw I think the project is amazing, so congrats.

Hmm interesting, I don't use WandB often so I'm not able to debug this myself.


API_ID  and API_HASH

How i can indicate API_ID  and API_HASH

after indicade  ERROR(no module named "loguru")

use python 3.10 or 3.11, it don't work on 3.12+


When shortening the shotgun

Description
When shortening a shotgun with a circular saw or a hacksaw on metal, its cartridges disappear inside.
 The issue is that the sawn-off should carry over whatever ammo is currently in it. Before it had the same problem of just ignoring the ammo in the original shotgun, except it just spawned lethals instead. Now it just spawns nothing.

It’s not intended, it’s just preferable to getting free perhaps. The best option would still be to carry over the shells.

Construction already transfers containers, but it seems like something is preventing that. ChangeEntity at
https://github.com/space-wizards/space-station-14/blob/a9502be29e100edfa4d52aabf8dcaccb45f06c62/Content.Server/Construction/ConstructionSystem.Graph.cs#L289
should be breakpointed and stepped through to figure out why the shells aren't transferring when sawing off the barrel.

I thought the shotgun exploded when it was sawed-off with ammo still inside


Tab Panes that Use Templates gives error: Cannot read property '0' of undefined

I had ember-for-bootstrap tabs working, but wanted to switch to SL components because it seems like it's being kept more up to date.
In any case, I got progress bars working, as well as tabs, but only with static content within the tab panes. If I try to set templateName then I get this error. I tried both with the templates I actually need, as well as simply-named, top-level ones, but it gave the same error.
Simple templates
{{#sl-tab-panel}}
  {{sl-tab-pane label="Project" name="project" templateName="about"}}

  {{sl-tab-pane label="Team" name="team" templateName="help"}}

{{/sl-tab-panel}}

Templates in a folder, with a dash in the name (these are the ones I would actually use)
  {{sl-tab-pane label="Project" name="project" templateName="budget/project-budget"}}

  {{sl-tab-pane label="Team" name="team" templateName="budget/resource-budget"}}

I'm on Ember 1.10, which doesn't use Handlebars, but I see that the getKey helper uses Ember.Handlebars.makeBoundHelper. Is this the cause of the error I'm seeing? Is sl-components incompatible with Ember 1.10?

They may be.  We are planning an upgrade to Ember 1.10 in the very near future so will be taking a look at this soon.

I see the same problem with the latest I pulled down just today. The issue seems to be that options.contexts is null at line 6 of render-tab-pane.js (var templateName = options.contexts[ 0 ][ templateKey ];). Inline content works fine, don't quite understand yet where that context is (not) set.

Verified that fix to https://github.com/joshforisha/sl-ember-components/blob/ember-cli/0-2-3/addon/helpers/render-tab-pane.js works.

Closed by https://github.com/softlayer/sl-ember-components/pull/344

Sorry, I know this is way old, but how was this fixed by 344? I don't see that a templateName property is available.

I have given this a once-over and the answer is not immediately clear.  It will require more research to make a determination.


Handle users editing/deleting messages with conversions

When a user edits a conversion, Sandpiper should pick up on this and edit her reply with the new conversion. Likewise, if a user deletes their message with a conversion, she should delete her reply. The deletion could also be a config field.

I started work on this a while ago and implemented it with a per-channel cache to map messages to Sandpiper replies. This is good because she doesn't need to fetch messages to find her reply, but the downside is that the cache is in-memory only, so she'll lose it on restarts, which I think defeats the purpose.
I think then I will use the fetch method. When a message is edited/deleted, fetch messages forward in time until it finds her reply (with a limit). This operation may be ambiguous if two people did a conversion at the same time, so I think we should use #56 to definitively get the correct reply.


[QUESTION] express-session vs cookie-session

I am just starting to look at using this module, and the example discusses express-session.  In many cases, I often use cookie-session instead of express-session when the use-case doesn't require such a heavy module.
I began working with this module using cookie-session, since that what I had implemented already and everything appears to be working properly.  Is there anything that I should be aware of, which may not be compatible?  Or potentially things that I should verify?
Thanks!

After some more usage, it appears like the "save" functionality, using autoSave or not, appears like it doesn't work.  Perhaps this is a problem with using "cookie-session".  Calling socket.handshake.session.save() throws this error (paths truncated to relative):
TypeError: res.getHeader is not a function
at Cookies.set (./node_modules/cookies/index.js:86:21)
at Session.save (./node_modules/cookie-session/index.js:226:22)
at Socket.AuthenticationSocket.socket.on (./socket/AuthenticationSockets.js:24:29)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at ./node_modules/socket.io/lib/socket.js:528:12
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)

Closing this issue, as I had a facepalm moment with this.  I continued to think about the problem and of course it doesn't work... the WebSocket doesn't exactly return an HTTP response which could include a Header for the cookie (reading the cookie could work, writing the cookie would not). I will be switching over to express-session for this implementation.  As the server side session data will allow this manipulation, without altering the cookie.


workbox-streams does not handle opaque responses properly

Library Affected:
workbox-streams
The following code in workbox-streams will break for opaque responses (as well as opaque redirected responses):
https://github.com/GoogleChrome/workbox/blob/9fae1320327a3a75bf71df9a76708978bd252428/packages/workbox-streams/src/concatenate.ts#L24-L34
We shouldn't assume that the response body always exposes getReader().

...actually, I think we just need some logic here to detect whether source.type is 'opaque' or 'opaqueredirect' and log a meaningful error, as there isn't much we can do to combine an opaque body in a non-opaque response stream.


creating AOT image takes too long

Flutter (Channel beta, 1.26.0-17.6.pre, on Linux, locale en_US.UTF-8)
Embedded Linux Aarch64
I'm finding generating an AOT image takes a really long time.
The process runs uni-proc on a 48 core machine.

Are you doing some sort of custom build? You seem to run SIMARM64 binary on an actual ARM64 machine - that would explain why the first step is incredibly slow. You should build a native ARM64 SDK and then use that to run frontend server.
What does file sdk/clang_x64/gen_snapshot print? I am concerned that it is an x86_64 binary running on ARM64 through something like QEMU.

Hi @jwinarske
Please provide your flutter doctor -v.
Thank you

Hi @jwinarske
Please provide your flutter doctor -v.
Thank you

flutter doctor -v
[✓] Flutter (Channel beta, 1.26.0-17.6.pre, on Linux, locale en_US.UTF-8)
• Flutter version 1.26.0-17.6.pre at /home/joel/development/flutter
• Framework revision a29104a69b (6 days ago), 2021-02-16 09:26:56 -0800
• Engine revision 21fa8bb99e
• Dart version 2.12.0 (build 2.12.0-259.12.beta)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
[✓] VS Code (version 1.52.1)
• VS Code at /usr/share/code
• Flutter extension version 3.19.0
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.

Are you doing some sort of custom build?

Yes it's a custom build.

file sdk/clang_x64/gen_snapshot

gen_snapshot: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=e3d92269a66db017e1b0447888f0a6db9afd3fa7, stripped

.gclient
[
    {
        "managed" : False,
        "name" : "src/flutter",
        "url" : "https://github.com/flutter/engine.git",
        "deps_file": "DEPS",
        "custom_vars" : {
            "download_android_deps" : False,
            "download_windows_deps" : False,
            "download_linux_deps"   : False,
        }
    }
]

gn args
./flutter/tools/gn --disable-desktop-embeddings --embedder-for-target --enable-fontconfig --full-dart-sdk --clang --lto --target-os linux --linux-cpu arm64 --target-sysroot /b/.../tmp/work/aarch64-poky-linux/flutter-engine/git-r0/recipe-sysroot --target-toolchain /b/.../tmp/work/aarch64-poky-linux/flutter-engine/git-r0/src/buildtools/linux-x64/clang --target-triple aarch64-unknown-linux-gnu

Host tools come from the build
src/out/linux_debug_arm64/clang_x64/dart
src/out/linux_debug_arm64/clang_x64/gen_snapshot

@jwinarske and what about uname -a on your machine?

$ uname -a
Linux poseidon 5.10.9-201.fc33.x86_64 #1 SMP Wed Jan 20 16:56:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

I've seen this behavior as far back as last summer on on x86-64 Ubuntu 18, and 20.

Also to add this directly impacts NRE between the development teams time, and cloud cluster time.

Thanks for the information! I just wanted to confirm what your host is running. As I have said before you should not use SIMARM64 build to run frontend server, this is gonna run slow. You should have a normal host build (e.g. flutter/tools/gn --runtime-mode debug would get you out/host_debug) and then use dart and frontend_server.dart.snapshot built there. You should still use gen_snapshot from the ARM64 build.
Right now you are essentially running a very slow ARM64 interpreter on your beefy server during the first step - that's why it is so slow.

Ah!  This would mean I would just use the dart executable from the host flutter SDK, as long as it matches the engine commit hash?

Yep you can just use dart + frontend_server.snapshot combo from a normal host Flutter SDK of a matching hash. This step is target independent.

awesome thanks!


basename: Fix handling of repeated flags/arguments

This fixes several GNU behavior bugs around repeated arguments. In my eyes, the parsing code is now simpler, too.
Note in particular that args_override_self would NOT work here, since it would in all cases cause options::NAME to override itself, or interfere with trailing_var_arg.
This fixes #5998 for the special case of basename.
Notes on the GNU documentation bug
The GNU basename help suggests that -z immediately implies "multi-name mode", because it cannot appear in the first pattern:
$ basename --help
Usage: basename NAME [SUFFIX]
  or:  basename OPTION... NAME...

However, that is evidently wrong:
$ basename -z tool l  | hd
00000000  74 6f 6f 00                                       |too.|
00000004

If -z would imply multi-name mode, this should have interpreted l as a second file name, but it was obviously parsed as the suffix-to-be-removed.
Hence a bug in the --help string. And that's why I also changed our basename.md.

CI errors are only flakes:

test_uniq::gnu_tests (would be fixed by #6017)
test_cp::test_cp_arg_interactive_update (known issue #4725, but this time on ubuntu-latest, x86_64-unknown-linux-musl, feat_os_unix_musl, use-cross)

The documentation issue? That sounds fantastic, yes please! :)

Good job, thanks!


Add nix-prefetch-github

Motivation for this change
This PR adds an application to nixpkgs to "prefetch" sources from github.  For this purpose I also added a python package called "effect", because it is a dependency of "nix-prefetch-github"
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Hi, I think that I included all the suggestions that were given.  Please tell me if there is more that I should change with this PR

@dotlambda thx for the review

Maybe, let's phase out fetchFromGitHub in favor of fetchzip? This needs an RFC.


Bookmark/Marker on Terminal Panel

When we use the Terminal/PowerShell/CMD panel, sometimes it has a very looooong history and require to go back at some lines which we probably forgot where. Simple example, when installing Kubernetes clusters and the there is a token from the master and we need to get that token later when installing other nodes. A simple marker that we need to jump to that line. Similar like in Visual Studio 201x which has Bookmark for codes capabilities.
The bookmark should be simple, can use mouse on the left side of the line on the Terminal or just like Ctrl+Shift+B+[Space] to mark the line. Ctrl+Shift+B+[Backspace] to remove bookmarks and Ctrl+Shift+B+[Del] to delete All Bookmark. Clearing the terminal windows will also delete all of the Bookmark/Marker.

We don't support bookmarks just yet but we do mark lines that commands run on which might solve your problem:

They only have default keybindings on macOS but you can add custom one if you use it often:
	{ "key": "ctrl+up",          "command": "workbench.action.terminal.scrollToPreviousCommand", "when": "terminalFocus" },
	{ "key": "ctrl+down",        "command": "workbench.action.terminal.scrollToNextCommand", "when": "terminalFocus" },
	{ "key": "ctrl+shift+up",    "command": "workbench.action.terminal.selectToPreviousCommand", "when": "terminalFocus" },
	{ "key": "ctrl+shift+down",  "command": "workbench.action.terminal.selectToNextCommand", "when": "terminalFocus" },


[Native Beaker] Does beaker always restrict libraries to 32 bit Win32 applications?

Error Logs:
`-DLL load failed: %1 is not a valid Win32 application.
DLL load failed: %1 is not a valid Win32 application.
ImportErrorTraceback (most recent call last)
 in ()
----> 1 import tia.bbg as bbg
2 dm = bbg.BbgDataManager()
3 term = dm.terminal
c:\usr\python2\lib\site-packages\tia\bbg_init_.py in ()
----> 1 from tia.bbg.v3api import *
2
3 LocalTerminal = Terminal('localhost', 8194)
4
5 from tia.bbg.datamgr import *
c:\usr\python2\lib\site-packages\tia\bbg\v3api.py in ()
2 from datetime import datetime
3
----> 4 import blpapi
5 import pandas as pd
6 import numpy as np
c:\usr\python2\lib\site-packages\blpapi_init_.py in ()
3
4
----> 5 from .internals import CorrelationId
6
7 from .abstractsession import AbstractSession
c:\usr\python2\lib\site-packages\blpapi\internals.py in ()
50                 fp.close()
51             return _mod
---> 52     _internals = swig_import_helper()
53     del swig_import_helper
54 else:
c:\usr\python2\lib\site-packages\blpapi\internals.py in swig_import_helper()
46         if fp is not None:
47             try:
---> 48                 _mod = imp.load_module('_internals', fp, pathname, description)
49             finally:
50                 fp.close()
ImportError: DLL load failed: %1 is not a valid Win32 application.`

Hi Luis, not that I am aware of.  Googling[1] that error says that the PATH may need to be updated to include the DLL you need (ie the load failed because it was not found, not that it had a 64/32 mismatch).
If there really is a mismatch, then maybe your python is 32 bit, and you need to replace it with a 64bit one.  I see both sizes on https://www.continuum.io/downloads
[1] http://stackoverflow.com/questions/14629818/importerror-dll-load-failed-1-is-not-a-valid-win32-application


chore(refactor): prettier --write src/init.ts

this PR applies formatting to src/init.ts and when it is merged, the text nodes patch PR https://github.com/snabbdom/snabbdom/pull/1062/files can be rebased on master to reduce noise in that PR

Are commas desired?

@kuraga one assumes your question is directed at @paldepind @jvanbruegge :)
Maybe when @jvanbruegge updated the dependencies, prettier began adding the commas unexpectedly.

Yeah, it's really annoying that prettier changes its default so often


ARROW-301: Add user field metadata to IPC schemas

+1 on the format change.

+1. This is fairly consistent with Parquet in this regard


Add github actions job to automatically run a sanity test.

This should be triggered on push/pr and should run at least the ovn-low-scale.yml scenario.
Hopefully this catches errors earlier and makes PR review/testing easier.

Fixed by: https://github.com/dceara/ovn-heater/pull/128


I'm facing trouble with 'catkin_make_isolated--install'

it is the screenshot. Thanks for your help!

hello, have you solved this problem?


Bunny Name Generator

Closes #170
This cog contains two commands: '.bunnyname' and '.bunnifyme'.
.bunnyname
Simply picks a random bunny name from a JSON file of pre-generated names and returns the name as plain text.
.bunnifyme
This one is a bit more complex. The command uses regular expressions to match the user's display name against several different patterns.
First the display name is searched for separators and whitespace. If it contains either of these, one of the words in the name will be replaced with a bunny-related word. E.g. "Operative Loren" could become "Operative Cotton" or "Cotton Loren".
If the display name contains no spaces or separators, it will search for vowels in the name. If the display name contains a vowel and the letter y, it will replace the part between those two characters with something cutesy. For instance, "Volcyy" should become "Voofy". This could result in some odd names, but we'll just have to see how it turns out!
Finally, if the display name doesn't match either of those patterns, then by default a suffix will be added to the end of it. For example "lemon" could become "lemontail".
I'm rather new to Python, but I tried to make my code as Pythonic as I could. Hopefully it's not too spaghetti...

@glowingrunes @sco1 provided some nice reviews for you. Take care of these, and you are good to go, and we can merge it.

@sco1 Thank you so much your all your feedback :) I've made a few changes based on what you recommended. Hopefully the code makes more sense now. Unfortunately, I can't think of anything right now to make the find_vowels function any better.


Docker Compose service suffix changed from _1 to -1

Hi,
I'm not sure when this change happened but it seems one of the latest docker-compose desktop version changed the suffix naming pattern for services from _1 to -1
This let's my tests fail as the lookup doesn't work anymore
564eae8ef285   zzsybrtief7r_pdf        "docker-entrypoint.s…"   ...  3000/tcp       zzsybrtief7r-pdf-1
e8ddf410a42c   zzsybrtief7r_dummy      "/docker-entrypoint.…"   ...  80/tcp         zzsybrtief7r-dummy-1

 Caused by:
        org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
            at app//org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88)
            at app//org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:329)
            ... 106 more

            Caused by:
            org.testcontainers.containers.ContainerLaunchException: Could not create/start container
                at app//org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:525)
                at app//org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:331)
                at app//org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
                ... 107 more

                Caused by:
                org.testcontainers.containers.ContainerLaunchException: Aborting attempt to link to container zzsybrtief7r_pdf_1 as it is not running
                    at app//org.testcontainers.containers.GenericContainer.applyConfiguration(GenericContainer.java:815)
                    at app//org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:365)
                    ... 109 more

If I change my exposed service setting to -1 like this:
@Container
    val pdf = DockerComposeContainer(...)
        .withLocalCompose(true)
        .withExposedService("pdf-1", 3000) // change from _1 to -1
        .withBuild(true)

The error gets stranger:
...
ContainerLaunchException: Aborting attempt to link to container jjz1pmny2gn9_pdf-1_1 as it is not running

❯ docker-compose --version
Docker Compose version v2.3.3

Docker Desktop Version `4.6.0 (75818)`

OS: MacBook Pro (16", 2021)
M1 Pro

Ok the change to -1 happens when Use Docker Compose V2 is enabled

I too facing the similar issue.
Here is my config:
docker:
Client: Docker Engine - Community
Version:           20.10.14
docker-compose:
Docker Compose version 2.3.4
docker-meachine:
docker-machine version 0.16.2, build bd45ab13
docker-desktop:
Version 4.6.1 (76265)
OS:
macOS Monterey(version 12.3) M1 Chip
@mxab can you suggest, how did you switch back to the old version of docker-compose

@govardhanaraoganji In Docker Desktop for Windows, this is a setting in their UI. I'd assume there is something similar on Mac.

I realized that what I have issue I have installed docker, docker-compose, docker-machine with brew. It is working normally after removing all references of it.
Thank you @kiview and I have disabled the v2 on Docker Desktop.

Bumping this for visibility. Lost few hours on head scratching because of "-1" vs "_1"

Closing because there is already an issue related to support for compose v2 https://github.com/testcontainers/testcontainers-java/issues/4565
There is also a PR you can follow.


predict function issue

Hi,  I am trying to run the predict function following the same steps as in the exercise but I get the following error:
predicted <- predict(sdm.model,
envs.tars %>% sf::st_crop(bb),
clamp = clamp, type = type)
Error in [.stars(newdata, , v) :
selecting using invalid value label(s)?
Everything else I managed to replicate without problem. But I have not been able to solve this error.

Hi,
Hmmm, it's hard to know with the information provided. When you say "the exercise", which one do you mean?  Could you provide a link to the line in the tutorial?
I do have a first guess though. Is it possible that the names of each variable (also known as attribute) in your env.tars stars object are not the same as the ones used to build the model sdm.model?

I am in the "Predicting" section of the Marine Species Distribution Model (SDM) Tutorial (https://oceanhackweek.org/tutorials_marine_sdm/SDM/Turtle_maxnet.html)
Here the structure of my variables and model:

And these are the names of the variables with which I built the model. They are the same as in the env.stars object

But it keeps giving me the same error

Those definitely look like a match to me. Next to test is the crop of env.stars - debugging is always just a series of little steps ruling out possibilities.
Does this throw an error when you run it?
cropped = env.stars |> sf::st_crop(bb)
cropped

I have stepped through this markdown and I can't replicate the error you see.  That makes wonder if there is a difference in the versions in the stars packages we are using.  Here is the output of my sessionInfo(), can you share the same from your computer with the rest of us?
I seem to be running stars version 0.6-4
> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.2.1

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods
[7] base

other attached packages:
 [1] rnaturalearthdata_0.1.0 DT_0.31
 [3] cmocean_0.3-1           geodata_0.5-9
 [5] terra_1.7-55            stars_0.6-4
 [7] abind_1.4-5             maxnet_0.1.4
 [9] dismo_1.3-14            sdmpredictors_0.2.15
[11] here_1.0.1              raster_3.6-20
[13] sp_1.6-1                mapview_2.11.0
[15] robis_2.11.3            ggspatial_1.1.9
[17] janitor_2.2.0           lubridate_1.9.2
[19] forcats_1.0.0           stringr_1.5.1
[21] dplyr_1.1.4             purrr_1.0.2
[23] readr_2.1.4             tidyr_1.3.0
[25] tibble_3.2.1            ggplot2_3.4.4
[27] tidyverse_2.0.0         rnaturalearth_0.3.3
[29] sf_1.0-14

loaded via a namespace (and not attached):
 [1] RColorBrewer_1.1-3      rstudioapi_0.14
 [3] jsonlite_1.8.7          wk_0.9.1
 [5] shape_1.4.6             magrittr_2.0.3
 [7] farver_2.1.1            rmarkdown_2.21
 [9] vctrs_0.6.5             base64enc_0.1-3
[11] webshot_0.5.5           htmltools_0.5.5
[13] curl_5.1.0              s2_1.1.6
[15] KernSmooth_2.23-21      htmlwidgets_1.6.2
[17] uuid_1.1-0              mime_0.12
[19] lifecycle_1.0.4         iterators_1.0.14
[21] pkgconfig_2.0.3         Matrix_1.5-4.1
[23] R6_2.5.1                fastmap_1.1.1
[25] shiny_1.7.4             snakecase_0.11.1
[27] digest_0.6.33           colorspace_2.1-0
[29] rprojroot_2.0.3         leafem_0.2.0
[31] crosstalk_1.2.0         labeling_0.4.3
[33] fansi_1.0.6             timechange_0.2.0
[35] httr_1.4.7              compiler_4.3.1
[37] proxy_0.4-27            bit64_4.0.5
[39] withr_2.5.2             brew_1.0-8
[41] DBI_1.1.3               leaflet_2.2.0
[43] classInt_0.4-10         tools_4.3.1
[45] units_0.8-5             mapedit_0.6.0
[47] httpuv_1.6.9            glue_1.6.2
[49] satellite_1.0.4         promises_<IP_ADDRESS>
[51] grid_4.3.1              generics_0.1.3
[53] gtable_0.3.4            leaflet.providers_1.9.0
[55] tzdb_0.4.0              class_7.3-22
[57] data.table_1.14.8       hms_1.1.3
[59] xml2_1.3.5              utf8_1.2.4
[61] foreach_1.5.2           pillar_1.9.0
[63] vroom_1.6.5             later_1.3.0
[65] splines_4.3.1           lattice_0.21-8
[67] survival_3.5-5          bit_4.0.5
[69] tidyselect_1.2.0        knitr_1.42
[71] svglite_2.1.1           stats4_4.3.1
[73] xfun_0.40               leafpop_0.1.0
[75] stringi_1.8.1           yaml_2.3.7
[77] evaluate_0.20           codetools_0.2-19
[79] cli_3.6.2               xtable_1.8-4
[81] systemfonts_1.0.4       munsell_0.5.0
[83] jquerylib_0.1.4         Rcpp_1.0.11
[85] png_0.1-8               parallel_4.3.1
[87] ellipsis_0.3.2          glmnet_4.1-8
[89] scales_1.2.1            e1071_1.7-14
[91] crayon_1.5.2            rlang_1.1.2

I have run
cropped = env.stars |> sf::st_crop(bb)
cropped
and works.
I reviewed the "predict" function of the raster package in detail and came across other examples of models where the attributes within it are ordered differently. First the environmental variables (env.stars) and then the model (sdm.model). I ran the following code and it worked:
cropped = env.stars |> sf::st_crop(bb)
predicted <- predict(cropped, sdm.model, clamp = TRUE, type = "cloglog")

Is that correct?
Finally, here is the output of my sessionInfo() :

Well, it seems we are using the same version of stars, so that helps. And glad to know that cropping works.
I am not aware that the [dismo] package supports maxnet class models.  But even if it did, it would need to have the model come first.  The tutorial you are following produces a maxnet (not maxent) class model.
The predict() function actually is a wrapper function for another function specifically written for your model type that must exist somewhere in your current session of R. It will look for a function named predict.classname_goes_here() The classname looked for is the first one listed in the class hierarchy when you run the class() function.
class(sdm.model)

## [1] "maxnet" "lognet" "glmnet"

So in this case R will look for predict.maxnet() That function can be found here…
https://github.com/BigelowLab/maxnet/blob/master/R/predict.maxnet.R  I am not sure what predict function you are using that correctly works on a maxent class model without the model being the first argument.  So, what you found puzzles me - especially since it seems to work!  @eeholmes do you know what might be happening here?
P.S. Other packages may provide predict functions for other classes of models.  During any session of R you can list the available predict functions using...
methods(predict)

 ##  [1] predict,ANY-method                predict,Bioclim-method
 ##  [3] predict,CircleHull-method         predict,CirclesRange-method
 ##  [5] predict,ConvexHull-method         predict,Domain-method
 ##  [7] predict,EcoLim-method             predict,GeographicDistance-method
 ##  [9] predict,InvDistWeightModel-method predict,Mahalanobis-method
 ## [11] predict,MaxEnt-method             predict,MaxEntReplicates-method
 ## [13] predict,Raster-method             predict,RectangularHull-method
 ## [15] predict,SpatRaster-method         predict,VoronoiHull-method
 ## [17] predict.ar*                       predict.Arima*
 ## [19] predict.arima0*                   predict.bs*
 ## [21] predict.bSpline*                  predict.coxnet*
 ## [23] predict.coxph*                    predict.coxph.penal*
 ## [25] predict.coxphms*                  predict.cv.glmnet*
 ## [27] predict.cv.relaxed*               predict.elnet*
 ## [29] predict.fishnet*                  predict.gknn*
 ## [31] predict.glm                       predict.glmnet*
 ## [33] predict.glmnetfit*                predict.HoltWinters*
 ## [35] predict.lca*                      predict.lm
 ## [37] predict.loess*                    predict.lognet*
 ## [39] predict.maxnet*                   predict.mlm*
 ## [41] predict.mrelnet*                  predict.multnet*
 ## [43] predict.naiveBayes*               predict.nbSpline*
 ## [45] predict.nls*                      predict.npolySpline*
 ## [47] predict.ns*                       predict.pbSpline*
 ## [49] predict.poly*                     predict.polySpline*
 ## [51] predict.ppolySpline*              predict.ppr*
 ## [53] predict.prcomp*                   predict.princomp*
 ## [55] predict.pspline*                  predict.relaxed*
 ## [57] predict.smooth.spline*            predict.smooth.spline.fit*
 ## [59] predict.stars*                    predict.stars_proxy*
 ## [61] predict.StructTS*                 predict.survreg*
 ## [63] predict.survreg.penal*            predict.svm*
 ## see '?methods' for accessing help and source code

Ooooh, here's what might be happening...
There is a predict.stars() function that accepts arguments in the order you listed them: stars object followed by model object.  This function is also a wrapper, and deep inside it call the generic predict() with the arguments reversed.  Aha!  That's how you got this to work...
predicted <- predict(cropped, sdm.model, clamp = TRUE, type = "cloglog")

But we still don't know hwy your original attempt fails.
predicted <- predict(sdm.model, env.stars %>% sf::st_crop(bb), clamp = clamp, type = type)

I hate to ask, but have you tried restarting your session of R and knitting the tutorial?  If you do that does it still throw an error?


Hero does not seem to use all options of tsconfig.json

The compilation of *.ts files always inserts the following block in the resulting JavaScript files:
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();

Using the tsc command in the same folder respects the tsconfig.json and is not inserting this block. How can I stop Hero from doing so?
I'm concatenating my files later by my own. I don't want to install tsc on a production system to solve this. The software is modular, so I'll only ship the precompiled files and combine them later (depending on what is really needed).

The compilation of *.ts files always inserts the following block in the resulting JavaScript files:
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();

Using the tsc command in the same folder respects the tsconfig.json and is not inserting this block. How can I stop Hero from doing so?
I'm concatenating my files later by my own. I don't want to install tsc on a production system to solve this. The software is modular, so I'll only ship the precompiled files and combine them later (depending on what is really needed).

This code should be a semantic transformation, can you provide your ts source code?

Sure, I've to files:
class MyTest {
  constructor() {
    console.log('Hallo Welt')
  }
}

and
class MyTest2 extends MyTest {
  constructor() {
    super();
    console.log('Hallo Welt 2')
  }
}

I think it's because I'm using the "super" function. In tsconfig.json this option can be disabled using "importHelpers": false setting.

Sure, I've two files:
class MyTest {
  constructor() {
    console.log('Hallo Welt')
  }
}

and
class MyTest2 extends MyTest {
  constructor() {
    super();
    console.log('Hallo Welt 2')
  }
}

I think it's because I'm using the "super" function. In tsconfig.json this option can be disabled using "importHelpers": false setting.

I updated the feature of the plugin, now you can configure ts using tsconfig.json. Add or overwrite certain settings in the tsconfig.json file, you can create a new tsconfig.json in the same directory of your .ts file.
Here Example tsconfig.json file:
{
    "compilerOptions": {
        "alwaysStrict": true,
        "importHelpers": false
    }
}

Thank you, is the tsconfig.json also working, when placed in project base directory? Typescript is usually walking through the parent directories until it finds a config.

Thank you, is the tsconfig.json also working, when placed in project base directory? Typescript is usually walking through the parent directories until it finds a config.

This is a good suggestion, I will try to add this ability later.


ENH: using CCL backend

Description

updating setup files for building with oneccl

TODO:

ci job for building with oneccl
updating examples
implementing sklearnex.spmd.set_backend function (mpi, ccl backends)

Closing due to lack of recent activity - please re-open when progress continues


Happy Eyeballs v2 would need separate address reports

I know this project is not exactly alive, but I will drop few ideas here anyway. I hope I will eventually find time to implement some improvements.
Found there is Happy eyeballs version 2 RFC:
https://www.rfc-editor.org/rfc/rfc8305#section-3
That suggests the application would get addresses as soon as it were received. Not waiting for finish of both separate A and AAAA queries to finish, but instead start connecting right after first family response were received. Current getaddrinfo() does not allow that and I doubt it is fixable without significant API change.
I had a short presentation on Fosdem 2023 on related topic: https://fosdem.org/2023/schedule/event/dns_why_resolving_two_names_in_a_gui_program_is_hard/
Because the same problem is both with dns and mdns, I think it would make sense to implement non-final address event in getaddrinfo() successor. Of course these need to be asynchronous callbacks.
If AF_UNSPEC were used and it caused two separate queries, the API should allow to report partial address results when it arrives. It should report final version when both queries receive answer or the other one will timeout. Indicated by some bit that this is final response.

I think https://github.com/NLnetLabs/connectbyname already tries to solve that. The problem I have with that implementations is it depends on getdns, which drags in unbound-libs on Fedora. Which depends on openssl. I think implementation with very minimal dependencies should offer basic asynchronous name resolution and eventual TLS channel setup should be built on top, not fixed to single crypto library.
Also that implementation ignores /etc/hosts, mdns or other alternative plugins for name resolution. It is just DNS only, which I think is not good general purpose replacement.


Bundle Resource 'GoogleMaps.bundle/blabla' not found on disk

Steps to reproduce

Create plain .net ios project
Add <PackageReference Include="AdamE.Google.iOS.Maps" Version="<IP_ADDRESS>" />
Observe 99+ errors

@themronion That's weird, since I'm consuming 9.1.1 in my own app and that's working perfectly fine. This also has been tested by @AdamEssenmacher in the sample app of the https://github.com/amay077/Xamarin.Forms.GoogleMaps repo as far as I know.

I wonder what other bindings might be affected after this one: https://github.com/AdamEssenmacher/GoogleApisForiOSComponents/pull/49

@themronion Can you post the complete list of errors that you get though? Since 99+ seems to be a bit much.
I get 4 errors with <IP_ADDRESS> (same kind as you Bundle Resource X not found on disk), which seem to be expected looking at the binding for GoogleMaps 9.1.1 and looking at the Maps for iOS SDK repository from Google as well. Not entirely sure why the binding was working with Xamarin.Build.Download 0.11.0 before since that seemed to pull in resources that were removed in the GoogleMaps 9.1.1 version, Xamarin.Build.Download 0.11.4 seems to be pulling in the correct ones only.

@Digifais yeah, I've cleaned the XamarinBuildDownload/GMps-9.1.1 folder and now have 4 as well

@themronion I'll create a PR to fix the GoogleMaps binding later today, I'll go through the resources one by one again and see what is missing and should be removed.
@AdamEssenmacher, we should check the other existing bindings as well to see if they have the same problem with Xamarin.Build.Download 0.11.4

@themronion This was only an issue with the Google Maps binding, before I became a contributor, I was working on a fork of my own. Somewhere along the line, me and @AdamEssenmacher made a mistake by merging the source repo back into my fork and that's where some changes for the 9.1.1 binding were removed. See https://github.com/AdamEssenmacher/GoogleApisForiOSComponents/commit/07c4ebd4668d460421da901e28f677ca49e7afa0#diff-fade105c9a83b8be1f9f162c500eaaa9d8715d707829a0bd447197dfc097faa6 for reference.

Yep. Merge fail on my part. Doesn't seem like an XBD problem at all, and it only affected GoogleMaps. <IP_ADDRESS> should be available on NuGet now.


Update to grpc-1.14.0.

This fixes #957. With gRPC 1.14.0 we can start create an example of
using OpenCensus.

This change is

PTAL.

For some reason I cannot reply to https://github.com/GoogleCloudPlatform/google-cloud-cpp/pull/980#discussion_r208328285
Unfortunately yes, that code would still be required. external modules in CMake require you to manually define the libraries that you link, as to why, I just added a https://github.com/GoogleCloudPlatform/google-cloud-cpp/issues/518#issuecomment-411171020 to document this.

@mbrukman Ping.


Add documentation for remove_schedule

Coverage remained the same at 97.971% when pulling 21a8b8ef7a8d885bf0ce8ff5a31a45ed478bff8b on navidkhn1:patch-1 into 41990aafa80a0f458e988733189fbf4b07e0894a on moove-it:master.


Share modal to pop-up after over 18 registration completion

FEATURE OVERVIEW
User Story
As a user who has completed the registration form, I'd like to be prompted with my custom social share link (like we had with organs) and instruction text for what to do with the URL.
Additional Information (optional)
Something we talked about as a possibility and just adding here as a note:
(1) editing RTV's "download" form experience and adding the custom social link there
(2) editing RTV's "download" form to tell the user where to find the custom social link on the action page
Why This Matters
We want to engage the user with the custom link so they know what to do with it and are sharing it out to have more impactT

@ngjo I thought we decided this should be the competitions flow?

@angaither yah, you're right, this should be a part of the under 18 flow -- im realizing what i wrote above should actually be a part of this issue: #6751 since it's about editing the css of that form page. re-assigning to myself so i remember to combine into that issue. thanks!


[SUGGESTION] Parkour Warrior Dojo Time Splits

When going through a course, if you finish a segment 0.234s faster, it says &a-0.234s, or 0.137s slower, &c+0.137s, or 0.000s, &e0.000s.
Examples: LiveSplit, or TrackMania's time splits

I just saw this, yes, I love this


caseStyle option add function support

Checklist

[x] npm test passes
[x] tests and/or benchmarks are included
[x] documentation is changed or added
[x] commit message follows commit guidelines

Affected core subsystem(s)

class.generator
Description of change

[Egg 兼容] caseStyle 参数支持函数传入，用于自定义挂载节点名
fixs #18

Pull Request Test Coverage Report for Build 207

7 of 7 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 94.041%

Totals

Change from base Build 206:
0.3%

Covered Lines:
417

Relevant Lines:
428

💛  - Coveralls

landed 1.14.0


List turtle DM systems

owners, locations, technology

update wastd docs overview to include all turtle IM systems
create confluence pages for confidential info and link from wastd docs


Add support for query row

Purpose
$title
Fixes ballerina-platform/ballerina-standard-library#1604
Examples
Checklist

[ ] Linked to an issue
[ ] Updated the changelog
[ ] Added tests

Recommend adding a few more test cases but otherwise LGTM


config.yml unicode problem on windows (i think)

latest.log.txt

didnt have essentials installed, only vault. seems to work now but still have same warning:
[13:01:57 WARN]: [mcex] Default system encoding may have misread config.yml from plugin jar


Write introductory text

This will display when the visualization first loads. Keep it short
Include link to this Github repo with visualization code and possibly mention Codefest

I can help with some of this if you'd like.  I'm really excited to see that this is getting some more attention.  Let me know if there's anything else I can help with, too.

Hi David! You can contribute to the project any way you would like. It would be great to get a little bit of text from you describing some of the work you did on determining the x,y coords of each of the nodes in the visualization.
Our Associate Director of Communications at NCEAS is planning on showing this off at the ESA conference this August so I created a 1.0.0 milestone in GitHub to organize some of the features we want for its debut there. We will be including a list of contributors which includes yourself and others from Codefest last year.

Great.  Here's a brief informal summary of what I did.  I'd be happy to expand or clarify or revise anything that isn't clear or formal enough :-)
Each document has a 87 of scores based on the 100-dimensional LDA model.  I tried a few ways of calculating the "distance" between these documents in 87-dimensional space and found that the Hellinger distance (which is like Euclidean distance on the square roots of the original scores) worked well.
I then used t-distributed stochastic neighbor embedding (t-SNE, pronounced tee-snee) to turn those distances into locations in 2D space.  t-SNE pulls each document together with its nearest neighbors in 2D space, but it doesn't particularly try to push dissimilar documents apart.  As a result, it tends to make very nice clusters of similar documents, but it doesn't have much long-range structure (so, unlike PCA embeddings, for example, the axes themselves don't mean much).
I used the tsne R package by Justin Donaldson<EMAIL_ADDRESS>for the embedding.  The original t-sne method is described here.
Again, please let me know if any of this needs clarifying/polishing/etc.  Thanks again for pushing ahead with this.  I'm excited to see the final result.


[Pager] HorizontalPager not working as expected with Paging3

Description
There are two screens in my app. The first screen shows the list of images on the device by using the Paging3 library in a vertical grid. Now, when the user clicks on an image, I am passing the click position to the second screen where I am using HorizontalPager to show the images in full screen. Both the screens share the same ViewModel to fetch images using Paging3.
When the second screen is opened, the clicked image is shown in full screen as expected. However, when the user swipes for the next image, instead of loading the next image, the image with the index 50 and so on gets loaded as the user swipes further.
The code to show the images in HorizontalPager is shown below.
val images: LazyPagingItems<MediaStoreImage> =
    viewModel.getImages(initialLoadSize = args.currentImagePosition + 1, pageSize = 50)
        .collectAsLazyPagingItems()

val pagerState = rememberPagerState(initialPage = currentImagePosition)

Box(modifier = modifier) {
    HorizontalPager(
        count = images.itemCount,
        state = pagerState,
        itemSpacing = 16.dp
    ) { page ->
        ZoomableImage(
            modifier = modifier,
            imageUri = images[page]?.contentUri
        )
    }
}

Expected behavior
When the user swipes, the next image in the list should be loaded.
Additional context
In the above code, currentImagePosition is the index of the image clicked on the first screen. I am setting the initialLoadSize to currentImagePosition + 1 which makes sure that the clicked image to be shown is already fetched by the paging library.

Is you getImages() always returning a new flow? It could be the issue as when this composable is rerun you just recreate a flow and we collect it again and so on. The returned Flow should be remembered as composable functions could be reexecuted

The getImages() function has the code shown below.
fun getImages(initialLoadSize: Int = 50): Flow<PagingData<MediaStoreImage>> {
        return Pager(
            config = PagingConfig(
                pageSize = 50,
                initialLoadSize = initialLoadSize,
                enablePlaceholders = true
            )
        ) {
            repository.getImagesPagingSource()
        }.flow.cachedIn(viewModelScope)
    }

try to write your code like this
val images: LazyPagingItems<MediaStoreImage> =
    remember { viewModel.getImages(initialLoadSize = args.currentImagePosition + 1, pageSize = 50) }
        .collectAsLazyPagingItems()

curious if it will help

The above code did solve the problem and the clicked image is shown and the next images are shown as the user swipes as expected. However, although there is total of 76 images to be fetched, only the next page is fetched and when I reach the end of the next page, a new page isn't fetched. One more thing to note, although I have set the page size to 50, the next page only loads 27 items. I have attached the screenshots of the log for reference.

The above log is for the case when I click on the first image on the first screen.

The above log is for the case when I click on the eleventh image on the first screen.
Note
For both cases, I swiped till the end of the second page and no more images were fetched. Also, Current Image Pos in the log is the position of the image clicked on the first screen.

In case you want to have a look at the remaining code, I have added it to the StackOverflow question here.

This seems like an issue with Paging now, not Pager. Could you please try to reproduce it without Pager(by using LazyRow instead of HorizontalPager, for example) and file a bug in the androidx tracker

I think I have solved the issue. Whenever the second screen was opened, the getImages() function of the shared ViewModel was called which created a new instance of Pager. This new instance of the Pager was different from the one used on the first screen. Referring to this answer on StackOverflow, I created the Pager in the init block of the ViewModel as shown below.
    val images: Flow<PagingData<MediaStoreImage>>

    init {
        images = Pager(
            config = PagingConfig(
                pageSize = 50,
                initialLoadSize = 50,
                enablePlaceholders = true
            )
        ) {
            repository.getImagesPagingSource()
        }.flow.cachedIn(viewModelScope)
    }

On the second screen, I collected the paging items as shown below.
val lazyImages: LazyPagingItems<MediaStoreImage> = viewModel.images.collectAsLazyPagingItems()

Now, I didn't have to pass the initialLoadSize as the Pager created in the first screen was being reused which had already loaded the items.

Great, thanks for confirming. It works as expected


How to use the defaul value [DefaultValue ("now")] by reading the date from the server

Hi Volkan
I use the professional version of your framework and it's fantastic.
I want to submit a problem that I encountered on the default dates.
On some forms I have the field to acquire the date [ReadOnly (true)] which I pass with the command: [DefaultValue ("now")]
A user, who had set an incorrect date on his computer, entered an incorrect date.
This is because the date that acquires Serenity as DefaultValue is that of the client.
Can I get the server date as [DefaultValue ("now")]?
Maybe as an optional "ServerDate" parameter
Is there another way to do this?
Thanks in advance

You should use a behavior and set such fields on server side, or you may set them in repository manually. Such fields should not be insertable.

Or - if the date has to be visible to the user at creating the record, fetch it via service from the server-side.
Regards,
John


How to compile multiple .txt or .resx files into a single binary .resources file?

Hi,
I am wondering how to compile multiple .txt or .resx files into a single binary .resources file. Is there any Al.exe option to do that?

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

ID: 6d3ff457-56ee-b368-af21-d37bdea825b2
Version Independent ID: 96d617db-6ad2-594e-643a-4006188de390
Content: Creating Satellite Assemblies for Desktop Apps
Content Source: docs/framework/resources/creating-satellite-assemblies-for-desktop-apps.md
Product: dotnet-framework
GitHub Login: @rpetrusha
Microsoft Alias: ronpet

It doesn't seem so. I would merge those into a single file. I think you will have a better chance of getting your question answered if you post it on a forum such as StackOverflow.
I'm going to close the issue.
Thanks.


Manifest validation error for RoleBindingList object

Bug report
I have the following manifest:
apiVersion: rbac.authorization.k8s.io/v1
items:
- apiVersion: rbac.authorization.k8s.io/v1
  kind: RoleBinding
  metadata:
    name: myroleb-k8s
    namespace: test
  roleRef:
    apiGroup: rbac.authorization.k8s.io
    kind: Role
    name: myrole-k8s
  subjects:
  - kind: ServiceAccount
    name: sa-k8s
    namespace: test
kind: RoleBindingList

When I apply it with kubectl it works, but when I do the same with kubernetes-deploy I get a validation error
Expected behavior:
Manifest applied.
Actual behavior:
Validation error:
[INFO][2019-11-11 10:20:57 +0000]	------------------------------------------Result: FAILURE-------------------------------------------
[FATAL][2019-11-11 10:20:57 +0000]	Failed to render and parse template
[FATAL][2019-11-11 10:20:57 +0000]
[FATAL][2019-11-11 10:20:57 +0000]	Invalid template: 00prometheus-operator-roleSpecificNamespaces.yaml
[FATAL][2019-11-11 10:20:57 +0000]	> Error message:
[FATAL][2019-11-11 10:20:57 +0000]	    Template is missing required field 'metadata.name'
[FATAL][2019-11-11 10:20:57 +0000]	> Template content:
[FATAL][2019-11-11 10:20:57 +0000]	    apiVersion: rbac.authorization.k8s.io/v1
[FATAL][2019-11-11 10:20:57 +0000]	    kind: RoleList
[FATAL][2019-11-11 10:20:57 +0000]	    metadata: {}
[FATAL][2019-11-11 10:20:57 +0000]	    <Template body suppressed because content sensitivity could not be determined.>
[FATAL][2019-11-11 10:20:57 +0000]

Version(s) affected:
I'm using the latest kubernetes-deploy release (v0.30.0) and kubectl v1.16.0 (and some earlier ones too).

@VincenzoDo thanks for opening a bug report. You're right we don't support the *List kinds. As a work around for now you can always put multiple resources in a file separated by the yaml doc separator ---.

Thanks for the bug report!
Currently, we don't handle List-type resource specifications: we expect all resources to be individual kubernetes objects (e.g. the definition(s) inside the items field in your example). This is because we expect an YAML representation of a resource to minimally have metadata.name (hence the validation failure).
Though this isn't a feature we're looking to write, ourselves, if you're interested, the solution would probably be to inject additional logic inside the various discover_resources methods to check for list types, and then feed the individual items to KubernetesResource::build. A simpler solution is to just rewrite your YAML document as individual objects, instead of as List-type.

Hello,
thank you for the reply. I will see what is the easiest approach on my end and in case get back to you. I would say we can close the issue for now.


Add filter to propagate anchors

Fixes  #170 by turning glyphsLib’s anchors propagation into a ufo2ft filter.

only now I see you didn't write this from scratch but copied from glyphsLib, I wasn't familiar with that code, neither I'm familiar with this Glyphs.app feature. A bit more explanatory comments would be nice anyway

Thanks for the thorough review 👍 @anthrotype


[Inspector/Editor API] Subgraph changes aren't reflected

I suspect we're caching too heavily because if I create a new subgraph I can see its contents in the raw graph, but those are not reflected in the nodes() list on InspectableGraph.
If I brute force a refresh here to be like this.resetGraph(graph) then everything shows up as expected.

oh this is most definitely me


is this correct?

https://github.com/EllisLab/CodeIgniter/blob/develop/system/core/Loader.php#L758
is the double $$ correct?

Yes. :)
http://php.net/manual/en/language.variables.variable.php

Yes in simple terms it creates two variables - http://us.php.net/manual/en/language.variables.variable.php

ok didn't know that! Thanks


update the readme instruction

Proceed to database migration before starting the server

Hi. Do you think it's necessary to add this command, because we generate separate section about migrations? Maybe it would be better to move migrations section before startup section.
Also we have multiple ORMs and migrators, so you have to add ifs.


Can't find ImportChatGptPluginSkillFromUrlAsync on version 0.16

I'm trying to import a ChatGPT custom plugin from swagger, but I can't find the ImportChatGptPluginSkillFromUrlAsync on the kernel.
I'm following the Example21_ChatGPTPlugins, with the latest nugget version of Microsoft.SemanticKernel, Version=0.16.230615.1-preview.
Did I miss anything on my code? I can't find this extension.

Hey, do you have using Microsoft.SemanticKernel; declared at the top of your file?
The ImportChatGptPluginSkillFromUrlAsync is declared in KernelChatGptPluginExtensions, so you have to add the Microsoft.SemanticKernel namespace before you can use it.
If that doesn't help, can you share what your file looks like, or at least snippets of how you're initializing the kernel and making the import call?

Hello @teresaqhoang
I have the following using:
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.Planning;
using Microsoft.SemanticKernel.Planning.Sequential;
But I cannot find the extension method:

And i have the lastest version of the SK Nugget

@adiazcan The ChatGPT plugins import have a dependency on OpenAPI import -- can you add the following package and see if that resolves your issue?

Great!! Thanks for your help, now I can continue testing my plugins.

Okay awesome! I'll close this issue now, feel free to reopen if you run into any other problems

@teresaqhoang I have an expection loading the plugin openapi specification, can you help me?
Just importing the ChatGPT plugin
 using HttpClient importHttpClient = new(); await kernel.ImportChatGptPluginSkillFromUrlAsync("Customers", new Uri("http://localhost:5073/.well-known/ai-plugin.json"), importHttpClient);
I have the following exception:
Unhandled exception. System.InvalidOperationException: Sequence contains no elements    at System.Linq.ThrowHelper.ThrowNoElementsException()    at System.Linq.Enumerable.First[TSource](IEnumerable1 source)
at Microsoft.SemanticKernel.Skills.OpenAPI.OpenApi.OpenApiDocumentParser.ExtractRestApiOperations(OpenApiDocument document)
at Microsoft.SemanticKernel.Skills.OpenAPI.OpenApi.OpenApiDocumentParser.ParseAsync(Stream stream, CancellationToken cancellationToken)
at Microsoft.SemanticKernel.KernelOpenApiExtensions.RegisterOpenApiSkillAsync(IKernel kernel, Stream documentStream, String skillName, AuthenticateRequestAsyncCallback authCallback, HttpRetryConfig retryConfiguration, String userAgent, Uri serverUrlOverride, CancellationToken cancellationToken)
at Microsoft.SemanticKernel.KernelOpenApiExtensions.ImportOpenApiSkillFromUrlAsync(IKernel kernel, String skillName, Uri url, HttpClient httpClient, AuthenticateRequestAsyncCallback authCallback, String userAgent, HttpRetryConfig retryConfiguration, Uri serverUrlOverride, CancellationToken cancellationToken)
at Microsoft.SemanticKernel.KernelChatGptPluginExtensions.ImportChatGptPluginSkillFromUrlAsync(IKernel kernel, String skillName, Uri url, HttpClient httpClient, AuthenticateRequestAsyncCallback authCallback, String userAgent, HttpRetryConfig retryConfiguration, CancellationToken cancellationToken)
at Planner.EmailAllCustomersAsync(IKernel kernel) in C:\github\Semantic\src\Planner.cs:line 110
at Program.$(String[] args) in C:\github\Semantic\src\Program.cs:line 79
at Program.(String[] args)`
My openapi file looks like:
{   "openapi": "3.0.1",   "info": {     "title": "customers-api",     "version": "1.0"   },   "paths": {     "/customers": {       "get": {         "tags": [           "customers-api"         ],         "description": "Get all customers",         "operationId": "GetCustomers",         "responses": {           "200": {             "description": "OK",             "content": {               "application/json": {                 "schema": {                   "type": "array",                   "items": {                     "$ref": "#/components/schemas/Customer"                   }                 }               }             }           }         }       }     }   },   "components": {     "schemas": {       "Customer": {         "type": "object",         "properties": {           "id": {             "type": "integer",             "format": "int32"           },           "name": {             "type": "string",             "nullable": true           }         },         "additionalProperties": false       }     }   } }
and this is the plugin manifest:
{   "schema_version": "v1",   "name_for_human": "Customers",   "name_for_model": "customers",   "description_for_human": "Manage Customers list. You can add, remove and view your Customers.",   "description_for_model": "Plugin for managing a Customers list, you can add, remove and view your Customers.",   "auth": {     "type": "none"   },   "api": {     "type": "openapi",     "url": "http://localhost:5073/swagger/v1/swagger.json"   },   "logo_url": "http://localhost:5003/logo.png",   "contact_email"<EMAIL_ADDRESS>  "legal_info_url": "http://example.com/legal" }

@teresaqhoang I just found the problem, my openapi specification doesn't have a Server section, so the ExtractRestApiOperations failed.

I don't know if this section is mandatory or it has to read the server property from the plugin manifest.

Hey @adiazcan, ack! We're able to import a Jira OpenAPI specification, which also doesn't have a servers section, so in theory, yours should work. I'll do some testing on my end and keep you updated

Hey @adiazcan, I'm picking up this issue, let me see if I can help you out!
Here is some additional info about the servers property in OpenAPI 3.0.  Our code expects the this section to be there, but according to the docs, it doesn't have to be, and the server URL should default to / if it's not. So that's something I will fix on our end.
In the meantime, can you add this section to your openapi file and see if it works as you'd expect? That would confirm that this is indeed the right fix.
"servers": [
    {
      "url": "/",
    },

Thanks @gitri-ms, that's the behaviour I found debugging your code. I had to change my dotnet api to include the servers section on the swagger. By default, it doesn't include it.

Just making the change I suggested above doesn't appear to be sufficient. It seems that we don't currently handle relative URLs at all, even though they are allowed by the OpenAPI spec.

@adiazcan I've followed up on this and found out that this is not actually a bug, but a scoping decision at the time the OpenAPI skill was added. For now, we require the server URL to be provided in the OpenAPI spec. There is also a workaround where you can set the server-url context variable before invoking the skill -- see an example of that here.
I am going to close this issue and open a new feature request to add support for empty or relative server URLs so that it can be triaged by our team. (If you feel motivated and want to submit a PR for it yourself, though, feel free!)


Rename set_logger_raw to try_set_logger_raw

Fixes #204

Looks good to me, thanks!
@sfackler do you agree with the rename here?

Seems reasonable to me, but it needs a rebase.

Rebased @sfackler

Is this good to merge now?

Yep!