Mixture diffusion coefficient

Good morning everyone,
In an application I am building around thermo, I would need to compute the Lewis number of a n-components mixture - so basically my understanding for a mixture is that we can think in bulk as a first approximation and go for the following expression:
Le = thermal_conductivity / (rho_mass * mean_diffusion_coefficient * specific_cp).

I am using flash as per the recommendations found in the docs, so I find myself with an EquilibriumState but I can't figure out how to compute a mean diffusion coefficient for the mixture.
Can you please advise ?
Thank you in advance !

Thibault

Hi Thibault,
Diffusion is not a feature supported by the Thermo library at this time, sorry.  I'll let you know if it's added at some point.
Cheers,
Caleb


cdc: reduce events batch to solve congest error

What problem does this PR solve?
Issue Number: close #11082
Problem Summary: Reduce message batch params to solved congest error when ticdc is slow.
What is changed and how it works?
What's Changed

Tuned some batching related configs. https://github.com/tikv/tikv/pull/11086/files#diff-60c4137431c31104f532e1d6de29f6dda2598df4eb5b2c321ae84ef4d143c6dfR24-R46
Move batching related code to channel.rs.

master
this PR

Related changes

PR to update pingcap/docs/pingcap/docs-cn:
PR to update pingcap/tidb-ansible:
Need to cherry-pick to the release branch

Check List
Tests

Manual test (add detailed scripts or steps below)
See #11082

Side effects

Performance regression

Consumes more CPU

Breaking backward compatibility

Release note
Fix frequent CDC incremental scan retry due to `Congest` error.

/run-unit-tests


chore: split and organize files

This will probably break.
Unfinished and very WIP.
I would appreciate some feedback on my approach, as I don't really know what I'm doing (I'm learning a lot, though!) :)

The workflow and CI changes should be in their own PR, I've just included them here temporarily.
I used pkg because I wanted it to be possible to only use the funcs for one or more types without using the entire library. I'm guessing this would also be possible by making everything internal and just having a New*FuncMap function for each func type.
Some specific questions:

Is there a more idiomatic approach?
If the packages and docs are split as expected, shouldn't the docs be further split so that a user can only use the docs they need? Should each func type package have its own docs? If so, what would that look like?
Is there a preference between each package just providing a FuncMap vs a NewFuncMap function?

Hmm, I'm negative on this. Reasons:

Moving functions into fine-grained packages isn't really the Go way. Go tends to prefer larger packages. Certainly, having a package contain only a single function (as is the case with booleanfuncs and stringfuncs) is certainly over-engineering.
The classification of functions is quite arbitrary. Isn't encoding/decoding also a kind of transform?
What is the actual problem solved by splitting the functions across several packages?

... Certainly, having a package contain only a single function (as is the case with booleanfuncs and stringfuncs) is certainly over-engineering.

True, but that is also partly because the library is unfinished.

The classification of functions is quite arbitrary. Isn't encoding/decoding also a kind of transform?

Indeed. I wanted to group functions mostly based on what they operate on or manipulate.

What is the actual problem solved by splitting the functions across several packages?

In addition to wanting to potentially offer each function group as a separate package for users, my primary concern is the lines of code, which you may not see as an issue, and which may demonstrate my inexperience with Go.
https://github.com/chezmoi/templatefuncs/issues/16 shows that we have currently only scratched the surface of what we would like to achieve, and we still have almost 400 lines of code in a single file. What does that look like when we have enough functions for a release?
Many other template function libraries are structured in a similar way, though I would never use that as my primary motivation.
On reflection, it seems I don't have any particularly strong reasons for doing this. We can close and revisit this if/when it's necessary, if preferred.

Thanks for the reply. Maybe it's worth splitting the files but keeping everything in a single package for now?
I also think we should export the individual Go template functions with reasonable names (e.g. rename eqFoldTemplateFunc to EqFold) but this might be better done in a separate PR?


Troubleshoot the error about "unable to mount ssl-csi volume" when deploying Traefik & ASP.net sample application

When executing step 6 from 02-aks.md we are seeing the following error:

What we know so far is that this issue is related to K8s version 1.20.x
It seems to work with K8s version 1.19.9, however we cannot verify since we are blocked by #753

We will downgrade kubernetes to 1.19.9 to unblock team with this error, further investigate issue in #750


ComboBox's Flyout does not respect visual transform

Pretty self-explanatory. The ComboBox has some ScaleTransform applied but its Flyout/Popup does not respect that.

Flyout or just combobox dropdown menu?
Because I don't think scale transform should apply on Flyout/ContextMenu.
But it should be applied on combobox drop down menu.

Yeah I mean the Dropdown menu (I assume it was implemented in terms of flyouts)

Just checked with WPF and indeed it applies the render transform to the drop-down menu. It even works with rotate transforms, which surprised me!


Just adjusted the copy a little. I want to revisit this again.

I feel like I messed something up. Can ya'll check? '_'
@mateoclarke @luqmaan

:chicken: what's the worst that could happen


Adding baseline name to vulnerability assessment SDK

Description

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] Please add REST spec PR link to the SDK PR
[ ] I have read the contribution guidelines.
[ ] The pull request does not introduce breaking changes.

General Guidelines

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[ ] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[ ] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
[ ] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

@dsgouda - see https://github.com/Azure/azure-sdk-for-net/pull/4419

Thanks @yaakoviyun Please merge your commits into a single commit and update the PR

The easiest way I can think of is.

Clone the repo into a different directory.
Create a new branch
Copy over files you have changed here and push the single commit

New PR in: https://github.com/Azure/azure-sdk-for-net/pull/4435


The manually-specified cluster members are not actually configured

When I specify etcd.nodes = ["node1", "node2"], all I get is a file - /etc/etcd_members.
That file is not loaded as -peers-file, so the attribute has no effect.
I temporarily solved this by setting etcd.args = "-peers-file=/etc/etcd_members", but it looks like a bug to me, as the Readme doesn't mention any other actions while setting up the cluster manually.
Should I send a patch that fixes this ?

I ended up writing my own cookbook that supports 2.x and has most of the features of this cookbook.
The only missing feature is auto-finding nodes from a chef-server, which is easy to implement in the future if required.

Here it is: https://github.com/Assembla/chef-etcd

@ajardan if you want to take over the supermarket for this I would be happy to depreciate this cookbook for yours.

@spheromak why not, let's try that.

@spheromak So, how do we do that ?


Cannot add or remove more than 10 accounts to a share at once

Provider Version
0.72.0
Terraform Version
1.4
Describe the bug
It is not a bug, its a limitation on the API. The problem is, there is no way in terraform to add multiple accounts to a single share.
resource "snowflake_share" "insights_for_partners_reporting" {
  name    = upper("insights_${var.environment}")
  comment = "This share is meant to be used by the Reader accounts to access reports."

  # FIXME: Snowflake provider won't fetch more than 3 accounts, although it is updated.
  # https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/1066
  #
  # Another error, Snowflake provider can't assign more than 10 accounts simultaneously!
  accounts = local.all_reader_accounts
}

Gives the following error:
│ Error: 003517 (0A000): SQL compilation error:
│ Cannot add or remove more than 10 accounts to a share at once.

Expected behavior
The provider generates the query using ADD ACCOUNTS, which technically it is prepared to append accounts without removing existing ones; however there is no way to iterate over accounts and append them to the share using terraform when there are more than 10 accounts.
I would expect a way to at least iterate over accounts using ADD ACCOUNT | REMOVE ACCOUNT.

I ran into this issue as well with provider version 0.87.2. I have a share with well over 10 accounts attached and see no way with Terraform to iterate through the accounts. The "10 account limit" appears to be a Snowflake limit, I get the same message in the WebUI, however the Terraform provider should account for this.

Hey @jhughes-naic. Thanks for reaching out to us.
We have this issue listed for https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/ROADMAP.md#preparing-the-rest-of-the-fundamental-ga-objects-for-the-provider-v1 (https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/v1-preparations/REMAINING_GA_OBJECTS.MD).

I am also running into this issue as well. I cannot find away around it either. Even with incrementally adding 10 shares at a time.


(wip) Fix discovery

@inalgnu Can you base this branch on master instead of fix-grpc-issue as this fix should be merged :) ?

@Kelvin-M done


Cannot unmarshal extension/forwarding-number result

ForwardingNumberInfo Definition Error 1
The following error occurs because ForwardingNumberInfo.features should be []string, not string.
json: cannot unmarshal array into Go struct field ForwardingNumberInfo.features of type string
Current Definition
    ForwardingNumberInfo:
      type: "object"
      properties:
        id:
          type: "string"
          description: "Internal identifier of a forwarding/call flip phone number"
        uri:
          type: "string"
          description: "Canonical URI of a forwarding/call flip phone number"
        phoneNumber:
          type: "string"
          description: "Forwarding/Call flip phone number"
        label:
          type: "string"
          description: "Forwarding/Call flip number title"
        features:
          type: "string"
          description: "Type of option this phone number is used for. Multiple values are accepted"
          enum:
            - "CallFlip"
            - "CallForwarding"
        flipNumber:
          type: "integer"
          description: "Number assigned to the call flip phone number, corresponds to the shortcut dial number"

Possible Corrected Definition
Looks like the following should work:
https://stackoverflow.com/questions/36888626/defining-enum-for-array-in-swagger-2-0
AnArray:
  type: array
  items:
    type: string
    enum:
      - MALE
      - FEMALE
      - WORKER

For:
        features:
          type: "array"
          description: "Type of option this phone number is used for. Multiple values are accepted"
          items:
            type: string
            enum:
              - "CallFlip"
              - "CallForwarding"

ForwardingNumberInfo Definition Error 2
json: cannot unmarshal string into Go struct field ForwardingNumberInfo.flipNumber of type int32

Fixed in f12f4c59408ca1def30ca6cdf10c3841b1261b88


Vue3: Arrow doesn't flip with floating element

Arrow stays position on the same side of the floating element if it is flipped or not.
For example:
if an item has a placement of top, the arrow will show at the bottom of the floating element when displaying normally.
When the item is close to the top of the page, the floating element flips to bottom but arrow stays at the bottom of the floating element.
Expected: arrow position flips sides.
Code sandbox demo:
https://codesandbox.io/p/sandbox/vue-floating-ui-forked-f4d5mh?file=%2Fsrc%2FApp.vue%3A88%2C17
Steps to reproduce the behaviour:
None, sandbox show arrow (red rectangle) at bottom when flipped (default state of sandbox)
If you change the target css from
margin: 50px auto;
to
margin: 150px auto;
This will unflip and show the arrow displaying properly.
Expected behavior
Arrow should also flip to opposing side of the floating element
Screenshots

Context:

OS: macOs and windows
Browser chrome, brave, safari
Version latests

Additional context Add any other context about the problem here.

This is just a mistake in using Vue's reactivity system. The value is stale because it's not inside a computed() call:
This works:
const oppositeSide = computed(() => OPPOSITE_SIDE_BY_SIDE[side.value]);

(Aside from the fact that the inner element is 20px but the outer one is 16px and is being used for measurement, so it's 4px off)


Light colored assets for devs - OPI-2197

Created light versions of all the 1Password icons and made minor
modifications to some of the dark ones.
This pull request should resolve issue #154

I’m not sure light colored assets are necessary as assets can be very easily tinted since iOS 7. If you are using the image in a UIButton, it's a matter of using UIButtonTypeSystem and a tintColor on the button.


Oracle synonym creation is failing

Hello -
We are running a deploy to create new synonym with grants, the synonym gets created but grants are failing with below error, could you please review it and suggest options?
grant all privileges on cosmos_apps.fp_rel_lift_restrictions to cosmos_user
2019-07-10T20:15:49.4510137Z ]]]
2019-07-10T20:15:49.4510392Z 	at com.gs.obevo.db.impl.core.changetypes.DbSimpleArtifactDeployer.deployArtifact(DbSimpleArtifactDeployer.java:57)
2019-07-10T20:15:49.4510657Z 	at com.gs.obevo.db.impl.core.changetypes.AbstractDbChangeTypeBehavior$1.value(AbstractDbChangeTypeBehavior.java:66)
2019-07-10T20:15:49.4511096Z 	at com.gs.obevo.db.impl.core.changetypes.AbstractDbChangeTypeBehavior$1.value(AbstractDbChangeTypeBehavior.java:63)
2019-07-10T20:15:49.4511700Z 	at com.gs.obevo.db.impl.platforms.AbstractSqlExecutor.executeWithinContext(AbstractSqlExecutor.java:62)
2019-07-10T20:15:49.4511930Z 	at com.gs.obevo.db.impl.core.changetypes.AbstractDbChangeTypeBehavior.deploy(AbstractDbChangeTypeBehavior.java:63)
2019-07-10T20:15:49.4512390Z 	at com.gs.obevo.db.impl.core.changetypes.RerunnableDbChangeTypeBehavior.deploy(RerunnableDbChangeTypeBehavior.java:60)
2019-07-10T20:15:49.4512644Z 	at com.gs.obevo.impl.ChangeTypeBehaviorRegistry.deploy(ChangeTypeBehaviorRegistry.java:66)
2019-07-10T20:15:49.4512872Z 	at com.gs.obevo.impl.command.DeployChangeCommand.execute(DeployChangeCommand.java:35)
2019-07-10T20:15:49.4513118Z 	at com.gs.obevo.impl.ExecuteDeployStrategy.deploy(ExecuteDeployStrategy.java:36)
2019-07-10T20:15:49.4513369Z 	at com.gs.obevo.impl.MainDeployer.doExecute(MainDeployer.kt:451)
2019-07-10T20:15:49.4513597Z 	at com.gs.obevo.impl.MainDeployer.executeInternal(MainDeployer.kt:298)
2019-07-10T20:15:49.4514223Z 	at com.gs.obevo.impl.MainDeployer.execute(MainDeployer.kt:93)
2019-07-10T20:15:49.4514466Z 	at com.gs.obevo.impl.context.AbstractDeployerAppContext.deploy(AbstractDeployerAppContext.java:139)
2019-07-10T20:15:49.4514690Z 	at com.gs.obevo.db.cmdline.DbDeployerMain.start(DbDeployerMain.java:79)
2019-07-10T20:15:49.4514923Z 	at com.gs.obevo.cmdline.AbstractMain.start(AbstractMain.java:129)
2019-07-10T20:15:49.4515132Z 	at com.gs.obevo.dist.Main$5.value(Main.java:185)
2019-07-10T20:15:49.4515342Z 	at com.gs.obevo.dist.Main$5.value(Main.java:182)
2019-07-10T20:15:49.4515577Z 	at com.gs.obevo.dist.Main.execute(Main.java:119)
2019-07-10T20:15:49.4515778Z 	at com.gs.obevo.dist.Main.execute(Main.java:87)
2019-07-10T20:15:49.4515991Z 	at com.gs.obevo.dist.Main.main(Main.java:69)
2019-07-10T20:15:49.4517074Z Caused by: java.sql.SQLSyntaxErrorException: ORA-00980: synonym translation is no longer valid

I will take a look this weekend

We did another test today and the issue seems to be not with the grants just that create synonym gets executed before the view is created which is causing the problem. Could we change the order of execution that synonym creation can happen after tables and views are complete?

You can use the includeDependencies attribute to specify the order of deployment when needed. See this section in the doc:
https://goldmansachs.github.io/obevo/db-project-structure.html#DB_Object_Deployment_Order
But ideally, the deploy order should have been picked up. Can you please send over your view and synonym definitions? (I'd assume that the synonym def is referring to the view def?)

Please find the view definition and the synonym creation scripts as well.
FP_REL_LIFT_RESTRICTIONS.txt
FP_REL_LIFT_RESTRICTIONS#.txt

The symbol in the name is likely causing the issue. I will look for the fix later this week

You can try out the fix from the snapshot version mentioned in #245


Client stops when [move_to_map_pokemon_teleport_to]

Expected Behavior

MoveToMapPokemon and [move_to_map_pokemon_teleport_to] should teleport without further problems.
Actual Behavior

PokemonGoBot is initiated successfully and [bot_start], [level_up_reward], [next_egg_incubates] and [spun_pokestop] messages are printed as expected. However, when [move_to_map_pokemon_teleport_to] occurs the client stops and the stats at the end of the session are printed. Also, an error message is printed.
Your FULL config.json (remove your username, password, gmapkey and any other private info)

{
    "auth_service": "ptc",
    "username": "my_username",
    "password": "my_password",
    "location": "somewhere",
    "gmapkey": "my_key",
    "tasks": [
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "CollectLevelUpReward"
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "TransferPokemon"
      },
      {
        "type": "EvolvePokemon",
        "config": {
            "evolve_all": "none",
            "first_evolve_by": "cp",
            "evolve_above_cp": 500,
            "evolve_above_iv": 0.8,
            "logic": "or",
            "evolve_speed": 20,
            "use_lucky_egg": false
        }
      },
      {
        "type": "RecycleItems",
        "config": {
          "item_filter": {
            "Pokeball":       { "keep" : 30 },
            "Potion":         { "keep" : 10 },
            "Super Potion":   { "keep" : 15 },
            "Hyper Potion":   { "keep" : 20 },
            "Revive":         { "keep" : 20 },
            "Razz Berry":     { "keep" : 30 }
          }
        }
      },
      {
        "type": "CatchVisiblePokemon"
      },
      {
        "type": "CatchLuredPokemon"
      },
      {
        "type": "SpinFort"
      },
      {
        "type": "MoveToMapPokemon",
        "config": {
          "address": "http://<IP_ADDRESS>:8000",
          "max_distance": 500,
          "min_time": 60,
          "min_ball": 50,
          "prioritize_vips": true,
          "snipe": true,
          "snipe_high_prio_only": true,
          "snipe_high_prio_threshold": 900,
          "update_map": true,
          "mode": "priority",
          "map_path": "raw_data",
          "catch": {
            "==========Legendaries==========": 0,
            "Aerodactyl": 1000,
            "Snorlax": 1000,
            "Articuno": 1000,
            "Zapdos": 1000,
            "Moltres": 1000,
            "Dratini": 1000,
            "Dragonair": 1000,
            "Dragonite": 1000,
            "Mewtwo": 1000,
            "Mew": 1000,

            "==========Region Locked==========": 0,
            "Farfetch'd": 1000,
            "Kangaskhan": 1000,
            "Mr. Mime": 1000,
            "Tauros": 1000,

            "==========Very Rare==========": 0,
            "Lapras": 1000,
            "Electabuzz": 1000,
            "Magmar": 1000,
            "Ditto": 1000,

            "==========Starters==========": 0,
            "Bulbasaur": 800,
            "Ivysaur": 900,
            "Venusaur": 1000,

            "Charmander": 800,
            "Charmeleon": 900,
            "Charizard": 1000,

            "Squirtle": 800,
            "Wartortle": 900,
            "Blastoise": 1000,

            "Pikachu": 900,
            "Raichu": 1000,

            "==========Semi Rare==========": 0,
            "Porygon": 1000,
            "Scyther": 1000,
            "Jynx": 1000,

            "==========Uncommon==========": 0,

            "Omanyte": 700,
            "Omastar": 900,

            "Seel": 700,
            "Dewgong": 900,

            "Grimer": 700,
            "Muk": 900,

            "Shellder": 700,
            "Cloyster": 900,

            "Gastly": 500,
            "Haunter": 700,
            "Gengar": 900,

            "Onix": 500,

            "Drowzee": 700,
            "Hypno": 900,

            "Vulpix": 900,
            "Ninetales": 1000,

            "Paras": 100,
            "Parasect": 500,

            "Growlithe": 500,
            "Arcanine": 700,

            "Tentacool": 100,
            "Tentacruel": 300,

            "Mankey": 100,
            "Primeape": 300,

            "Clefairy": 300,
            "Clefable": 500,

            "Jigglypuff": 300,
            "Wigglytuff": 500,

            "Venonat": 100,
            "Venomoth": 300,

            "Diglett": 100,
            "Dugtrio": 300,

            "Meowth": 100,
            "Persian": 300,

            "Psyduck": 100,
            "Golduck": 300,

            "Geodude": 500,
            "Graveler": 700,
            "Golem": 900,

            "Eevee": 900,
            "Vaporeon": 1000,
            "Jolteon": 1000,
            "Flareon": 1000,

            "Kabuto": 900,
            "Kabutops": 1000,

            "Magikarp": 300,
            "Gyarados": 1000,

            "Pinsir": 100,

            "Ponyta": 700,
            "Rapidash": 900,

            "Slowpoke": 300,
            "Slowbro": 500,

            "Magnemite": 700,
            "Magneton": 900,

            "Krabby": 100,
            "Kingler": 300,

            "Voltorb": 700,
            "Electrode": 900,

            "Exeggcute": 100,
            "Exeggcutor": 300,

            "Cubone": 700,
            "Marowak": 900,

            "Hitmonlee": 900,
            "Hitmonchan": 1000,

            "Lickitung": 1000,

            "Koffing": 300,
            "Weezing": 500,

            "Rhyhorn": 300,
            "Rhydon": 500,

            "Chansey": 1000,

            "Tangela": 300,

            "Horsea": 100,
            "Seadra": 300,

            "Goldeen": 100,
            "Seaking": 300,

            "Staryu": 100,
            "Starmie": 300,

            "==========T1 Evolvers==========": 0,
            "Caterpie": 10,
            "Metapod": 10,
            "Butterfree": 500,

            "Weedle": 10,
            "Kakuna": 10,
            "Beedrill": 500,

            "Pidgey": 10,
            "Pidgeotto": 10,
            "Pidgeot": 500,

            "==========T2 Evolvers==========": 0,
            "Nidoran F": 500,
            "Nidorina": 700,
            "Nidoqueen": 1000,

            "Nidoran M": 500,
            "Nidorino": 700,
            "Nidoking": 1000,

            "Oddish": 500,
            "Gloom": 700,
            "Vileplume": 1000,

            "Poliwag": 100,
            "Poliwhirl": 300,
            "Poliwrath": 500,

            "Abra": 1000,
            "Kadabra": 1000,
            "Alakazam": 1000,

            "Machop": 1000,
            "Machoke": 1000,
            "Machamp": 1000,

            "Bellsprout": 500,
            "Weepinbell": 700,
            "Victreebel": 900,

            "==========Trash==========": 0,

            "Rattata": 10,
            "Raticate": 100,

            "Spearow": 10,
            "Fearow": 100,

            "Ekans": 10,
            "Arbok": 100,

            "Sandshrew": 10,
            "Sandslash": 100,

            "Zubat": 10,
            "Golbat": 100,

            "Doduo": 10,
            "Dodrio": 100
          }
        }
      },
      {
        "type": "MoveToFort",
        "config": {
            "lure_attraction": true,
            "lure_max_distance": 2000
        }
      },
      {
        "type": "FollowSpiral",
        "config": {
          "diameter": 4,
          "step_size": 70
        }
      }
    ],
    "map_object_cache_time": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 50
    },
    "websocket_server": false,
    "walk": 4.16,
    "action_wait_min": 1,
    "action_wait_max": 4,
    "debug": false,
    "test": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "evolve_captured": "NONE",
    "catch_randomize_reticle_factor": 1.0,
    "catch_randomize_spin_factor": 1.0,
    "catch": {
      "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
      "// Example of always catching Rattata:": {},
      "// Rattata": { "always_catch" : true }
    },
    "release": {
      "// any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"},
      "any": {"keep_best_cp": 5},
      "any": { "release_below_iv": 0.9 },
      "// Example of always releasing Rattata:": {},
      "// Rattata": {"always_release": true},
      "// Example of keeping 3 stronger (based on CP) Pidgey:": {},
      "// Pidgey": {"keep_best_cp": 3},
      "// Example of keeping 2 stronger (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_iv": 2},
      "// Also, it is working with any": {},
      "// any": {"keep_best_iv": 3},
      "// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_cp": 2, "keep_best_iv": 3}
    },
    "vips" : {
        "Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!": {},
        "any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
        "Lapras": {},
        "Moltres": {},
        "Zapdos": {},
        "Articuno": {},

        "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
        "Mewtwo": {},
        "Dragonite": {},
        "Snorlax": {},
        "// Mew evolves to Mewtwo": {},
        "Mew": {},
        "Arcanine": {},
        "Vaporeon": {},
        "Gyarados": {},
        "Exeggutor": {},
        "Muk": {},
        "Weezing": {},
        "Flareon": {}

    }
}

Output when issue occurred

2016-08-17 09:15:06,560 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-17 09:15:06,562 [       cli] [WARNING] The evolve_captured argument is no longer supported. Please use the EvolvePokemon task instead
2016-08-17 09:15:06,562 [       cli] [WARNING] The walk argument is no longer supported. Please use the walk_max and walk_min variables instead
2016-08-17 09:15:06,562 [       cli] [INFO] Configuration initialized
2016-08-17 09:15:06,562 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-17 09:15:06,563 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-17 09:15:06,615 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-17 09:15:07,089 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-17 09:15:07,089 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
2016-08-17 09:15:07,089 [PokemonGoBot] [INFO] [location_found] Location found: 36.383385, 25.449896 (36.383385, 25.449896, 0.0)
2016-08-17 09:15:07,090 [PokemonGoBot] [INFO] [position_update] Now at (36.383385, 25.449896, 0)
2016-08-17 09:15:07,090 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-17 09:15:09,223 [PokemonGoBot] [INFO] [login_successful] Login successful.
2016-08-17 09:15:10,872 [PokemonGoBot] [INFO]
2016-08-17 09:15:10,872 [PokemonGoBot] [INFO] --- my_username ---
2016-08-17 09:15:10,873 [PokemonGoBot] [INFO] Level: 25 (Next Level: 10572 XP) (Total: 889428 XP)
2016-08-17 09:15:10,873 [PokemonGoBot] [INFO] Pokemon Captured: 2885 | Pokestops Visited: 2708
2016-08-17 09:15:10,873 [PokemonGoBot] [INFO] Pokemon Bag: 138/250
2016-08-17 09:15:10,874 [PokemonGoBot] [INFO] Items: 203/350
2016-08-17 09:15:10,874 [PokemonGoBot] [INFO] Stardust: 3742 | Pokecoins: 40
2016-08-17 09:15:10,874 [PokemonGoBot] [INFO] PokeBalls: 54 | GreatBalls: 2 | UltraBalls: 31 | MasterBalls: 0
2016-08-17 09:15:10,874 [PokemonGoBot] [INFO] RazzBerries: 3 | BlukBerries: 0 | NanabBerries: 0
2016-08-17 09:15:10,874 [PokemonGoBot] [INFO] LuckyEgg: 4 | Incubator: 0 | TroyDisk: 5
2016-08-17 09:15:10,874 [PokemonGoBot] [INFO] Potion: 15 | SuperPotion: 20 | HyperPotion: 16 | MaxPotion: 17
2016-08-17 09:15:10,874 [PokemonGoBot] [INFO] Incense: 4 | IncenseSpicy: 0 | IncenseCool: 0
2016-08-17 09:15:10,874 [PokemonGoBot] [INFO] Revive: 30 | MaxRevive: 0
2016-08-17 09:15:10,874 [PokemonGoBot] [INFO]
2016-08-17 09:15:10,875 [PokemonGoBot] [INFO] Found encrypt.so! Platform: darwin Encrypt.so directory: /Users/my_username/PokemonGo-Bot
2016-08-17 09:15:10,875 [PokemonGoBot] [INFO]
2016-08-17 09:15:12,409 [PokemonGoBot] [WARNING] The CatchVisiblePokemon & CatchLuredPokemon tasks have been replaced with CatchPokemon.  CatchPokemon has been enabled with default settings.
2016-08-17 09:15:12,652 [PokemonGoBot] [INFO] [bot_start] Starting bot...
2016-08-17 09:15:12,975 [CollectLevelUpReward] [INFO] [level_up_reward] Received level up reward: []
2016-08-17 09:15:12,976 [IncubateEggs] [INFO] [next_egg_incubates] Next egg incubates in 3.07 km
2016-08-17 09:15:15,566 [  SpinFort] [INFO] [spun_pokestop] Spun pokestop Γυάλινο Κτίριο. Experience awarded: 50. Items awarded: {u'Razz Berry': 1, u'Pokeball': 1, u'Greatball': 1}
2016-08-17 09:15:18,226 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_teleport_to] Teleporting to Abra. (0.00km)
2016-08-17 09:15:18,226 [MoveToMapPokemon] [INFO] [move_to_map_pokemon_encounter] Encountered Pokemon: Abra
2016-08-17 09:15:18,469 [       cli] [INFO]
2016-08-17 09:15:18,469 [       cli] [INFO] Ran for 0:00:11
2016-08-17 09:15:18,469 [       cli] [INFO] Total XP Earned: 50  Average: 15816.76/h
2016-08-17 09:15:18,469 [       cli] [INFO] Travelled 0.00km
2016-08-17 09:15:18,469 [       cli] [INFO] Visited 1 stops
2016-08-17 09:15:18,469 [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-17 09:15:18,469 [       cli] [INFO] Threw 0 pokeballs
2016-08-17 09:15:18,469 [       cli] [INFO] Earned 0 Stardust
2016-08-17 09:15:18,469 [       cli] [INFO]
2016-08-17 09:15:18,469 [       cli] [INFO] Highest CP Pokemon:
2016-08-17 09:15:18,470 [       cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
  File "pokecli.py", line 570, in <module>
    main()
  File "pokecli.py", line 104, in main
    bot.tick()
  File "/Users/my_username/PokemonGo-Bot/pokemongo_bot/__init__.py", line 501, in tick
    if worker.work() == WorkerResult.RUNNING:
  File "/Users/my_username/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 267, in work
    self.snipe(pokemon)
  File "/Users/my_username/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 220, in snipe
    catch_worker = PokemonCatchWorker(pokemon, self.bot)
TypeError: __init__() takes exactly 4 arguments (3 given)
2016-08-17 09:15:18,496 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "/usr/local/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
    ca_certs=self.ca_certs,
  File "/usr/local/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
    response = self._open(req, data)
  File "/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
    '_open', req)
  File "/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
    return self.do_open(ValidHTTPSConnection, req)
  File "/usr/local/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 895, in _send_output
    msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-17 09:15:18,497 [sentry.errors.uncaught] [ERROR] [u'TypeError: __init__() takes exactly 4 arguments (3 given)', u'  File "pokecli.py", line 570, in <module>', u'  File "pokecli.py", line 104, in main', u'  File "pokemongo_bot/__init__.py", line 501, in tick', u'  File "pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 267, in work', u'  File "pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 220, in snipe']

Steps to Reproduce

open terminal and then:

$ cd /Users/my_username/PokemonGo-Bot
$ pip2 install -r requirements.txt
$ python pokecli.py -cf ./configs/config.json
Other Information
OS: OS X El Capitán Version 10.11.6 (15G31)

Branch: dev

Git Commit: 7136348dda4217d8010aab4d8e6f1124cba64140

Python Version: Python 2.7.12

Any other relevant files/configs (eg: path files)

Short Description

Possible solution

How it would help others

same behavior, just after fetch last merge.
/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_map_pokemon.py", line 220, in snipe
catch_worker = PokemonCatchWorker(pokemon, self.bot)
TypeError: init() takes exactly 4 arguments (3 given)

Thanks! :)


Merge prTesting_202011011937 branch to master branch

Docs Build status updates of commit 10f6e89:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


⚠ AlphaRatio has degraded performance

In cbca136, AlphaRatio ($AR) experienced degraded performance:

HTTP code: 200
Response time: 1736 ms

Resolved: AlphaRatio performance has improved in 31dd308.


Add overlay font selection to settings

Add serialized font selection to user settings class
Add overlay ArrangeDisplay() parameter to accept the serialized font string
Add font deserialization and SetFonts() call to ArrangeDisplay() method
Add group to settings form for font selection with select and reset buttons, with example string rendered in selected font
Move overlay button click handler code to its own method so no one has to manually call the event handler, 'cause that's gross


HADOOP-14706. Adding a helper method to determine whether a log is Log4j implement.

Hi @wenxinhe, would you close this PR?

Thanks!


can't run with Remix 2.5.1 or 2.6.0

Hi,
I can't seem to make this template work.
I just cloned it, ran npm install and then npm run dev.
This is the output of the console:
> dev
> node -r ts-node/register --watch-path ./server.ts server.ts

(node:10796) ExperimentalWarning: Watch mode is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Failed running 'server.ts'

I'm on Node v18.16.0
I filled the env variables.
Can you help me figuring out what's wrong?

ok , I've managed to get it started. I just recreated the local mongo container.
Now I can spin up the server, I see the home page, but the Payload admin route is just blank...
Any idea?
In the browser console I see the following error:
index.js:300  Uncaught TypeError: (0 , _reactRouterDom.withRouter) is not a function
    at Object.<anonymous> (index.js:300:39)
    at __webpack_require__ (index.js:21:30)
    at index.js:64:18
    at node_modules/react-router-navigation-prompt/es/index.js (index.js:65:10)
    at __require2 (chunk-FOWDQQBS.js?v=2112d5a8:19:50)
    at node_modules/payload/dist/admin/components/modals/LeaveWithoutSaving/index.js (index.tsx:2:34)
    at __require2 (chunk-FOWDQQBS.js?v=2112d5a8:19:50)
    at node_modules/payload/dist/admin/components/views/LivePreview/index.js (index.tsx:1:44)
    at __require2 (chunk-FOWDQQBS.js?v=2112d5a8:19:50)
    at node_modules/payload/dist/admin/components/views/Global/Routes/CustomComponent.js (CustomComponent.tsx:1:19)

looking into it.

Can you pull the latest commits and see if that fixed the issue for you?
Just in case it was something particular to my local, I also made a test deploy to https://repay.fly.dev/ and it seemed to be working.

Can you pull the latest commits and see if that fixed the issue for you?
Just in case it was something particular to my local, I also made a test deploy to https://repay.fly.dev/ and it seemed to be working.

Thanks for the fast reply but...I still have the same behaviour.
It starts, shows the homepage, but when I click on Admin Interface, blank screen on the /admin route and same error in the console (tried Edge and Firefox browsers, Windows 10, if that matters):
Uncaught TypeError: (0 , _reactRouterDom.withRouter) is not a function
    at Object.<anonymous> (index.js:300:39)
    at __webpack_require__ (index.js:21:30)
    at index.js:64:18
    at node_modules/react-router-navigation-prompt/es/index.js (index.js:65:10)
    at __require2 (chunk-FOWDQQBS.js?v=331060a4:19:50)
    at node_modules/payload/dist/admin/components/modals/LeaveWithoutSaving/index.js (index.tsx:2:34)
    at __require2 (chunk-FOWDQQBS.js?v=331060a4:19:50)
    at node_modules/payload/dist/admin/components/views/LivePreview/index.js (index.tsx:1:44)
    at __require2 (chunk-FOWDQQBS.js?v=331060a4:19:50)
    at node_modules/payload/dist/admin/components/views/Global/Routes/CustomComponent.js (CustomComponent.tsx:1:19)

The db docker container is correctly logging the connection, so that is not the problem.
What should I try?

I was finally able to replicate the error with your exact setup (WIndows 10 / node 18.16 / npm install; npm run dev).
Instead of npm, can you delete package-lock.json and try using yarn install --frozen-lockfile; yarn dev instead?
If that works, that would help us narrow down the issue.

I was finally able to replicate the error with your exact setup (WIndows 10 / node 18.16 / npm install; npm run dev).
Instead of npm, can you delete package-lock.json and try using yarn install --frozen-lockfile; yarn dev instead?
If that works, that would help us narrow down the issue.

ok I did as you mentioned and it works.
I was finally able to start and go to the /admin route. I see the form to create the first payload user.
I see an error on the VSCode console though, if that could be useful:
Error: No route matches URL "/app.scss.map"
    at getInternalRouterError (C:\Users\marco\git\_vari\repay\node_modules\@remix-run\router\router.ts:4496:5)
    at Object.query (C:\Users\marco\git\_vari\repay\node_modules\@remix-run\router\router.ts:2935:19)
    at handleDocumentRequestRR (C:\Users\marco\git\_vari\repay\node_modules\@remix-run\server-runtime\dist\server.js:182:35)
    at requestHandler (C:\Users\marco\git\_vari\repay\node_modules\@remix-run\server-runtime\dist\server.js:107:24)
    at async C:\Users\marco\git\_vari\repay\node_modules\@remix-run\express\dist\server.js:41:22
No routes matched location "/app.scss.map"
ErrorResponseImpl {
  status: 404,
  statusText: 'Not Found',
  internal: true,
  data: 'Error: No route matches URL "/app.scss.map"',
  error: Error: No route matches URL "/app.scss.map"
      at getInternalRouterError (C:\Users\marco\git\_vari\repay\node_modules\@remix-run\router\router.ts:4496:5)
      at Object.query (C:\Users\marco\git\_vari\repay\node_modules\@remix-run\router\router.ts:2935:19)
      at handleDocumentRequestRR (C:\Users\marco\git\_vari\repay\node_modules\@remix-run\server-runtime\dist\server.js:182:35)
      at requestHandler (C:\Users\marco\git\_vari\repay\node_modules\@remix-run\server-runtime\dist\server.js:107:24)
      at async C:\Users\marco\git\_vari\repay\node_modules\@remix-run\express\dist\server.js:41:22
}
GET /app.scss.map 404 - - 118.465 ms

Glad to hear that worked. When I have time, I'll have to dig a bit into why yarn works when npm didn't.  I suspect there's some errant peer deps in payload that should get fixed.


chore(frontend): 完善 model 类型定义、service 路径调整 #7131

Reviewed, transaction id: 19411

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.hailinxiao seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Add support for github.com/bridgecrewio/yor

https://github.com/bridgecrewio/yor

This tool is supported already.
https://github.com/aquaproj/aqua-registry/blob/229f16c3bd0bd1e9e6572a3f8231c2547f16e205/pkgs/bridgecrewio/yor/registry.yaml#L1-L14

Weird, I couldn't find it. Sorry!


release: avoid setting __MAC_OS_X_VERSION_MAX_ALLOWED?

It seems like a bug to me, that the binaries are setting the max versions - and that it would be better to fix it?
I can see how it would at runtime require a min version, but that can probably be handled inside the application.
i.e. when I build I get /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk and -target-sdk-version=15.0
The documentation is a bit outdated, it stops at 18 (10.14) while the latest is 24 (15.0): https://go.dev/wiki/Darwin

Originally posted by @afbjorklund in https://github.com/lima-vm/lima/issues/2753#issuecomment-2423677851

Availability.h says:

For these macros to function properly, a program must specify the OS version range
it is targeting.  The min OS version is specified as an option to the compiler:
-mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
when building for the iPhone.  The upper bound for the OS version is rarely needed,
but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.

But I don't know who is setting 13

This should have been the release job: "Merge pull request #2566 from AkihiroSuda/dev #3207":
https://github.com/lima-vm/lima/actions/runs/10610486369/job/29408056766
It sets up the runner like:
 # Xcode version
  xcodebuild -version
  # macOS SDK version
  xcrun --show-sdk-version

Xcode 14.2
Build version 14C18
13.1

Is the problem here that the Lima rosetta cache needs to be invalidated when macOS/Xcode is updated?
Or that Vz is somehow hard-coding the version it was built with as the max, when setting up the sharing?

So we are supposed to get some reasonable default like: -mmacosx-version-min=11
But for some reason, the build sets the max version to the same as the current sdk.

The end goal here is to be able to use the same binary, for all the macOS versions.
Revert:

https://github.com/lima-vm/lima/pull/2762

Note: Virtualization.framework requires macOS 11, Rosetta(Linux) requires macOS 13


Lockable buttons don't work on Meta

Description

The buttons in med specifically don't seem to be linked or functioning, even when unlocked.


Initial addition of files

Completed initial set of file additions.

@npmccallum - I'd appreciate your input on the clippy fail, please.  Not sure if the code needs fixing (not convinced), or if we need to change the clippy settings.


Current version Known/unknown detection problem

Running a current version for 4 hours on a brand new territory, did not take known, really low unknown points.
After 4 hours was only 2 ! known points, and couple unknown.
Using older version same config, instantly gets the points and add it to known.
I put screen on discord channel.
Ubuntu LTS linux python 3.5 fresh instance all is the newest from git.

I can confirm. Im getting the same exact behavior.

I had to restart my scan.py when it hadn't found 100 unknowns after 1 day. Upon restart it found them all withing 20minutes.
Same case for a bigger instance where it had 5000 unknown pop in after 1 hour. When I had changed the migration time since I had a lot of wrong timers.

Silly oversight on my part with last-minute changes between seconds and milliseconds. Fixed in fa49058648aa2341b84e41b2d7ebc3db73dc4dc1.


sys/linux: tools/arm64: remove redundant registers from kvm_regs_arm6…

…4_extra
Remove constants that are already covered by arm64_bitmap and arm64_fw in kvm_one_reg.

Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md

@a-nogikh PTAL


Add the Algorithms!

Add the algorithms if you find they are not already added in the repositories and create a pull request.
Example :
In sorting/searching repo many algos are not added so add them and raise the pull request.

you can create issue on codes if you find any mistakes in them.

Happy Coding!!!

I would like to add MergeSort and Quicksort to the repo.

@akshitagupta15june I would like to add A* Algorithm to the repo.

Yess...I would like to do it as a part of Hacktoberfest.

@akshitagupta15june I would like to work on this issue. Please assign this issue to me.

@akshitagupta15june i want to add heap sort as a part of hacktober fest

ok add it

@akshitagupta15june  I want to add Topological sort

Ok add it

@akshitagupta15june  I have added heap sort in pull request #120  please merge it


App crash after update

after updating the app to 0.6.0 beta the app crashes when opening (even with a fresh install).

Same, I'm on Android 11

Thank you so much for the reports! ❤
I can confirm this and stopped the update.
A fix is tracked by #86
Postmortem:
A recent update of the base has caused a reduction of dex files (11 -> 6). All bttv-android classes are stored in a new dex file (smali_classes12). Apktool did not find the classes as it stopped after not finding smali_classes7.
This bug was not caught as smali_classes7-11 still existed in my testing environment.

v0.6.1-beta was just released and confirmed working!

It's working fine for me too! Thanks for the quick fix!

@all-contributors please add @zeykafx for bug


Build fixes

Lots of fallout from the python2 removal along with some other changes that were needed to catch back up with work done in core Yocto layers, such as systemd uprevs  and such. In order to be successful in a build the OVS uprev sent to meta-virtualization is required.

staged. I have this under test now.

I was able to get my basic boot tests to work, still some issues, but they are unrelated to these changes.


Invoke-OAIChat command repeats the question asked.

PS C:\Users\ljfp> Invoke-OAIChat 'How do I output all files in a directory PowerShell?'
How do I output all files in a directory PowerShell?

PS C:\Users\ljfp> Invoke-OAIChat 'How do I create a new profile in PowerShell 7?'
How do I create a new profile in PowerShell 7?

This is a fresh installation of PSAI, and the API key is set in the environment variable 'OpenAIKey'
I'm not sure where to start troubleshooting this.

Other examples of this behaviour:
PS C:\Users\ljfp> Invoke-OAIChat -UserInput "What is the weather today?"
What is the weather today?

PS C:\Users\ljfp> 'show even numbers' | ai -Instructions 'use powershell, just code, no explanation'
show even numbers

My bad, it seems that I had run out of credits, and I didn't realize. I wasn't aware that OpenAI API just echoes your input once you reach $0.

@ljfp Thanks for trying PSAI. I'm surprised you didn't get a message that the balance was $0.
What version of PSAI is installed?
Get-Module -list PSAI
Also check out my latest short video on using the features of the module:
https://youtu.be/r_yC3dBe6lA
If you like it 👍🏼and subscribe
Lastly, I did a livestream on PSAI and my upcoming PSAIAgent module.
If you subscribe to my YouTube channel, you'll get notified when I post this and other videos.
https://www.meetup.com/NycPowershellMeetup/events/302619165


Integration tests for XCMP transfers

Need to do a live of transfer bridged ETH & ERC20 assets from one parachain to another.
Tasks:

[ ] Deploy our updated parachain to a testnet
[ ] Register it twice with different ParaIds.
[ ] Test XCMP transfers for both ETH and ERC20 transfers.

Have implemented XCM transfers (and unit tests) in https://github.com/Snowfork/polkadot-ethereum/pull/152. However currently blocked on performing integration tests due to this issue (As I previously described in chat):

I've got an interesting problem regarding transaction inclusion on my local rococo testnet (gav-xcmp branch): The parachain seems to be registered correctly with the relay chain. The single collator is producing blocks and the relay chain validators are validating them. However the collator refuses to include transactions from the TxPool (even simple ones like System.remark).

The extrinsics are stuck in pending until they reach their mortality. When I run 2 or more collators, the transactions do get included (but still with a highly variable and lengthy delay). Wondering if you have any insight into this behavior? I asked in the Rococo channel but had no luck.

Asking because running a single collator makes it much more easy to debug XCMP.

Nah we don't need really need integration tests for this. Is less useful as local integration tests wouldnt cover all the exotic XCMP edge cases we'd see in production when we integrate with third-party chains.


Hi, Can you please provide instructions for training process and dataset requirements?

Hi
Could you refer this page?
https://github.com/sh-lee-prml/HierSpeechpp/tree/main/ttv_v1
Thanks

Hi
Could you refer this page?
https://github.com/sh-lee-prml/HierSpeechpp/tree/main/ttv_v1
Please follow above instructions with libritts dataset or your dataset You have to downsampe the dataset to 16 kHz before preprocessing!.
Thanks

Thank you!


[Chore] [CI] Add api-test and e2e-test to spotless check

Purpose of the pull request

Brief change log
Add api-test and e2e-test to spotless check

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

Project coverage is 41.16%.

Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #16242      +/-   ##
============================================
- Coverage     41.17%   41.16%   -0.01%
  Complexity     5096     5096
============================================
  Files          1391     1391
  Lines         43837    43805      -32
  Branches       4652     4628      -24
============================================
- Hits          18050    18034      -16
+ Misses        24018    24001      -17
- Partials       1769     1770       +1

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


Sample URLs on the progress bar demo hard to spot?

I didn't spot the sample images the first time I looked at the page. Maybe I am just unobservant, but my eyes didn't go down past the input box. A few ideas:

Mention the sample images further up
Pre-fill the input box with one of the sample image URLs (which vanishes when you start to enter a new one)
Move the sample URLs up above the input box

Thanks for providing the ideas! They make a lot of sense. I'll implement these now.


Is there a way to patch 1.x?

I have a small backwards compatible change I would like to make to the latest 1.x version. I didn't see any branch that gives me the ability to do that. Are you accepting backwards compatible patches.
The change is tiny and only adds functionality:
https://github.com/richardpringle/bincode/commit/67f91e66fa77322ba3b66c8968b51b38dd112ede
Thanks in advance

That change would bump the MSRV from 1.19.0 to 1.31.1, and considering we are not actively maintaining 1.x I do not think we'd be interested in that change.


bug/stp-783-flyouts-shrinking

Description
The flyouts keep shrinking due to the different ways a flyout can close. (saving, adding, close, back, cancel... etc).

remove decrement() from onHide
add decrement() to unmount (returned fn after useLayoutEffect)
wrapped all flyouts in their show condition. this will prevent any unnecessary rendering. (Flyout is still being init'd even though prop.show is false). It will also unmount the component properly.

Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

[x] UT is now testing unmount
[x] Click

Checklist:

[x] My changes do not introduce any new linting errors
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation and versioning
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I have rebased onto master and there are no code conflicts

@jenbutongit I can still reproduce the bug, every time I add a component to a page the flyout Shrinks a bit more.


P4-2434 adding date default for supplier reports when running via a cron.

Tweaked the command line option for running supplier reports to default the dates if none supplied.  Will default to a days worth of data on the previous day of the current date (the date when run).

@mafonso chatted with Jonny.  We are not going to do this right now.  So forget the cron.


Very high cpu on mongod process when mongo-connector is running

This could very well be an issue that doesn't involve mongo-connector, but I'm not sure where else to start...
I have a 3-member replica set, with each member running on a separate machine.  I have mongo-connector running on a 4th machine.
While mongo-connector is running, the CPU on my rs primary spikes immediately, and averages 50-75%, compared to the 5-10% when mongo-connector is not running.
Nothing seems out of the ordinary in the connector logs and the instance that mongod is running on should be plenty big to handle normal loads.
Any help debugging this would be much appreciated.  Ideally I'd like to run another connector in parallel, but that's out of the question until I can figure this out...

In case it's helpful, a sample of my connector log:
2015-10-01 17:49:47,793 [DEBUG] mongo_connector.oplog_manager:664 - OplogThread: reading last checkpoint as Timestamp(1443702541, 8)
2015-10-01 17:49:47,793 [DEBUG] mongo_connector.oplog_manager:648 - OplogThread: oplog checkpoint updated to Timestamp(1443702541, 8)
2015-10-01 17:49:48,928 [DEBUG] mongo_connector.oplog_manager:167 - OplogThread: Last entry is the one we already processed.  Up to date.  Sleeping.
2015-10-01 17:49:49,929 [DEBUG] mongo_connector.oplog_manager:155 - OplogThread: Getting cursor
2015-10-01 17:49:49,930 [DEBUG] mongo_connector.oplog_manager:664 - OplogThread: reading last checkpoint as Timestamp(1443702541, 8)
2015-10-01 17:49:49,930 [DEBUG] mongo_connector.oplog_manager:648 - OplogThread: oplog checkpoint updated to Timestamp(1443702541, 8)
2015-10-01 17:49:51,072 [DEBUG] mongo_connector.oplog_manager:167 - OplogThread: Last entry is the one we already processed.  Up to date.  Sleeping.
2015-10-01 17:49:52,073 [DEBUG] mongo_connector.oplog_manager:155 - OplogThread: Getting cursor
2015-10-01 17:49:52,073 [DEBUG] mongo_connector.oplog_manager:664 - OplogThread: reading last checkpoint as Timestamp(1443702541, 8)
2015-10-01 17:49:52,073 [DEBUG] mongo_connector.oplog_manager:648 - OplogThread: oplog checkpoint updated to Timestamp(1443702541, 8)
2015-10-01 17:49:53,223 [DEBUG] mongo_connector.oplog_manager:167 - OplogThread: Last entry is the one we already processed.  Up to date.  Sleeping.
2015-10-01 17:49:54,224 [DEBUG] mongo_connector.oplog_manager:155 - OplogThread: Getting cursor
2015-10-01 17:49:54,224 [DEBUG] mongo_connector.oplog_manager:664 - OplogThread: reading last checkpoint as Timestamp(1443702541, 8)
2015-10-01 17:49:54,224 [DEBUG] mongo_connector.oplog_manager:648 - OplogThread: oplog checkpoint updated to Timestamp(1443702541, 8)
2015-10-01 17:49:55,373 [DEBUG] mongo_connector.oplog_manager:167 - OplogThread: Last entry is the one we already processed.  Up to date.  Sleeping.
2015-10-01 17:49:56,374 [DEBUG] mongo_connector.oplog_manager:155 - OplogThread: Getting cursor
2015-10-01 17:49:56,374 [DEBUG] mongo_connector.oplog_manager:664 - OplogThread: reading last checkpoint as Timestamp(1443702541, 8)
2015-10-01 17:49:56,374 [DEBUG] mongo_connector.oplog_manager:648 - OplogThread: oplog checkpoint updated to Timestamp(1443702541, 8)
2015-10-01 17:49:57,513 [DEBUG] mongo_connector.oplog_manager:167 - OplogThread: Last entry is the one we already processed.  Up to date.  Sleeping.
2015-10-01 17:49:58,514 [DEBUG] mongo_connector.oplog_manager:155 - OplogThread: Getting cursor
2015-10-01 17:49:58,514 [DEBUG] mongo_connector.oplog_manager:664 - OplogThread: reading last checkpoint as Timestamp(1443702541, 8)
2015-10-01 17:49:58,515 [DEBUG] mongo_connector.oplog_manager:648 - OplogThread: oplog checkpoint updated to Timestamp(1443702541, 8)
2015-10-01 17:49:59,648 [DEBUG] mongo_connector.oplog_manager:167 - OplogThread: Last entry is the one we already processed.  Up to date.  Sleeping.
2015-10-01 17:50:00,649 [DEBUG] mongo_connector.oplog_manager:155 - OplogThread: Getting cursor

If the source mongo instance has a low volume of changes, you could be hitting https://jira.mongodb.org/browse/SERVER-10226

Interesting - I could certainly see that being the case. I will try to confirm before I close this issue. Thanks!

This problem should be resolved once and for all with MongoDB 3.2, but there will also have to be an update to mongo-connector to use PyMongo >= 3.2 when it comes out.

I am getting identical issues on a 1-member replica set running Mongo 3.0.6. I did not fully understand the reason for the problem, but will upgrading to 3.2 solve my issues or is there any other fix?

The server side problem is solved in MongoDB 3.2, but to take advantage of that fix mongo-connector has to use PyMongo 3.0+. That work is in code review now, and will be available in the next release.

So simply upgrading to MongoDb 3.2 is not enough to fix it? Is there a temporary fix meanwhile?
I think this thread adresses the same issue:
https://github.com/mongodb-labs/mongo-connector/issues/264

The problem was in MongoDB itself, but the solution to the problem was a new cursor API in MongoDB 3.2 that is not supported by PyMongo 2.x. There is no workaround.

@ryan-lang @phber We introduced support for PyMongo 3.x in the most recent release, so I'm going to close this issue. Please feel free to re-open or file a new issue if the problem persists. Thank you!


chore: fix broken link in README.md

Changelog category

Documentation (changelog entry is not required)

Fix broken link for Getting started with Kubernetes in README.

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


Deploy latest dazzler (0.6.0)

This PR deploys the latest Dazzler version (0.6.0) which fixes some issues with the FAMS dashboard:

https://github.com/c0c0n3/kitt4sme.dazzler/pull/10

@vcutrona I've tested the FAMS dashboard with stale data, it looks like all the issues have gone

https://kitt4sme.collab-cloud.eu/dazzler/demo/-/fams/

please take it for a spin too :-)


Misplaced comments in Notes column

@esmil The Notes column, the first two "zero-extends" comments are mis-placed.  They should be beside the Logical Shift Right commands, not the Set Less Than instructions. @

@deller46 This sounds like something that is much better explained by opening a pull request fixing your problem.

On 2023-05-31 17:30, Emil Renner Berthing wrote:

@deller46 [1] This sounds like something that is much better explained
by opening a pull request fixing your problem.
--
Reply to this email directly, view it on GitHub [2], or unsubscribe
[3].
You are receiving this because you were mentioned.Message ID:
@.***>

The problem is the issue is in a PDF that is would have to be
replicated.  There is not something easy to edit and change just that
issue.
If there were a Word doc that was used to produce the PDF in the
repository, I'd do a pull-request.  But I don't know of any editor for
PDF files.
This is also why there are 4 other comments mentioning other errors in
that PDF file that have not been responded to.
Regards,
Steven Deller
Links:
[1] https://github.com/deller46
[2]
https://github.com/jameslzhu/riscv-card/issues/21#issuecomment-1570984696
[3]
https://github.com/notifications/unsubscribe-auth/ADY3NHNRU44IDXBWD5CXKSDXI6Z6LANCNFSM6AAAAAAYUUJUQE

Ah no. The pdf is generated from the .tex files. The riscv-card.tex include the files in the tex directory. I'm sure you can figure out how the tables work and make a pull request without learning all of (La)TeX

Fixed in 21666a6, closing.


Problems with broken sentences in the bilingual subtitles generated

Hi @lewangdev, thanks so much for your script. Sometimes I encounter problems with broken sentences in the bilingual subtitles generated during the process, resulting in some source language subtitles missing translated subtitles.

Supplementing a bit, I am using a third-party API, not OpenAI API.

Yes, I have also seen this issue. Currently, the translation still requires manual intervention.
This problem is caused by the GPT-3.5. The prompt I am using currently unable to execute as expected with 100% accuracy. In my script, I set the default temperature to 0, and it will always get the same answer after retry multiple times.
Some approaches I thought to sovle this problem:

set temperature to 0.7~1
A better prompt
Use GPT-4
Human involving

I will attempt to resolve this issue using OpenAI Function-Calling.


xctool fails to launch simulator through jenkins

Hi,
I am setting up CI for my ios project,when i am testing my project though terminal using xctool ,it works fine.But I am running the same command from jenkins, it couldn't able to launch simulator.
xcode 6.1.1
xctool 0.2.3
jenkins 1.605
Error log:
-n Running tests using xctool
-n .
2015-03-21 18:08:02.417 xctool[45578:2507] [MT] iPhoneSimulator: Could not launch simulator: -10810
2015-03-21 18:08:03.602 xctool[45578:2507] [MT] iPhoneSimulator: Could not launch simulator: -10810
2015-03-21 18:08:04.776 xctool[45578:2507] [MT] iPhoneSimulator: Could not launch simulator: -10810
-n .
-n .
ERROR - Command '/usr/local/cellar/xctool/0.2.3/bin/xctool -project Calculator.xcodeproj -sdk iphonesimulator ARCHS=i386 VALID_ARCHS=i386 CURRENT_ARCH=i386 ONLY_ACTIVE_ARCH=NO -scheme Calculator -reporter junit GCC_GENERATE_TEST_COVERAGE_FILES=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES test' failed with error code: 1

Check this issue
https://github.com/facebook/xctool/issues/404

Closing as a duplicate.


add ability to configure custom alive endpoints

Currently after the addition of the health-module into Dropwizard core it allows users to pass a list of custom endpoints that it will also listen on. However, these endpoints all default to the readiness of the application unless you pass the ?type=alive query param. It would be nice if you could configure another list of liveness endpoints that defaulted to the above behavior without the query param present.
This would bring this project in line with spring boots probe settings and better in line with k8s probes
I'm happy to contribute the changes for this if the maintainers agree.

Also needed as part of this and would be a follow on ask is support for Regex in the name field of the HealthCheckConfiguration. Without that if you have a library that registers multiple checks for things like Kafka for example you could not mark all of the checks critical if you have multiple connections or have to enumerate every single connection for the application twice.

Related to the original issue, I asked a question on the PR.
For the follow-on ask:
Right now there is a simple 1:1 mapping between a registered HealthCheck and the configuration that determines if a given check is critical or not and whether the overall health of the app is healthy or not. Supporting a regex for the name seems like it would add a lot of complexity to the health evaluation.
If you have a specific case where you want a whole set of HealthChecks to effectively be treated as a single one (i.e. all are marked critical and have the same schedule config), you could create a sort of aggregator HealthCheck that you register and configure once. That aggregator HealthCheck would have a collection of the relevant HealthChecks and its check() method would just iterate over the collection of checks, call check() on each one, and then return a Result based on whether they were all healthy or if one or more of them were unhealthy. I think that would address your use case and wouldn't need to overcomplicate the existing health evaluation logic.

Yeah, for the regex support you really only need to evaluate the regex once though. After you know the criticality of a check it doesn't have to change. This also makes the config easier for use cases where you have multiple checks registered from a library and want them all critical. This way if you had 5 http clients that all have health checks around them, you could simply use the regex and not have to enumerate each and every one twice.
Ah yeah an Aggregate regex check could work for the above. The only downside is if you were manually checking your health check results you would not know which one is failing from the endpoint however that could be clarified with logging.

Closing this issue for the same reasons as the associated PR.


Fails running pytest because I don't have access to submodule extratests

Fails because folder extratests\tests is not included in public part of repo.

Moved extratests/ from root to tests/ in 268aa503d4540e2f64420a175aebbfd13d970280. This should fix the issue.


Rework settings that take commands as arguments

This is a continuation of https://github.com/akrennmair/newsbeuter/issues/599. Two things happened since then.
First, I stumbled upon https://github.com/comex/rust-shlex, which implements shell's word-splitting. It looks unmaintained, but the author seems to be around, so I (or someone else) can take over. The crate doesn't look in need of immediate fixing though.
Second, I realized that the simple exec() can be fooled: e.g. we can specify browser "sh -c 'firefox %u'", and get the same vulnerability via feed/article URL. I think this can be avoided if we require for %u to be a stand-alone shell word, i.e. it can't be inside quotes. I don't know how to implement this requirement, though. If we only substitute stand-alone %us, a user who specified browser "sh -c 'mpv %u'" would be confused why Newsboat literally runs "mpv %u"—the docs say %u will be substituted, right? We could scan inside string literals and warn if we find %u there, but this would annoy people who legitimately need these two characters in some command.
This issue is not actionable right now. Just some thoughts.

Given how much confusion and grief we cause by allowing arbitrary shell commands (see #929), and how a workaround is always "put your command in a script and call that from Newsboat", it might be better to just ask users for a single command that we can invoke with exec(3). That's slightly unfriendly, but avoids the confusion and vulnerabilities.


CollectionProperty validation hides the underlying property name for a task

https://github.com/gradle/gradle/blob/e998de55cd247c1dc3ce706ec7d7f551b7aad8ce/subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/bean/AbstractNestedRuntimeBeanNode.java#L163
When we try to get the value from a CollectionProperty, we perform validation, but without any context (name of the property or task).  This makes configuration to fail with a cryptic failure when a list of Strings has an Integer in it (as an example):

Caused by: java.lang.IllegalArgumentException: Cannot get the value of a property of type java.util.List with element type java.lang.String as the source value contains an element of type java.lang.Integer.

There's not an easy way to figure out which property has this problem. I think this could effect other nested properties that throw runtime exceptions when getting a property's value.  The context is available, so we should be able to add it.

Not 5.1 with the assumption that 5.1 makes collection properties empty by default again.


Rename/move existing "ServicePlan" things

As part of the introduction of the new ServicePlan (namespaced resource), this PR does a simple rename/move of the existing ClusterServicePlan things in pkg/registry. They were named incorrectly, so this PR changes the naming.  Also takes care of the old contrib/k8s example that gets loaded by test-apiserver.sh This should be no functional change.
Part of #1200 work.

@arschles yeah, part of #1200
I'll update the original comment to mention that :)

@pmorie rebased


lib fails on connect

So im trying to make a test for my gmail method. this is the error:
Failures:

  1) sendmail method should send an email given a keywords, seeds, and a run_number,
     Failure/Error: sendmail("hello","there",15)
     NoMethodError:
       undefined method `upcase' on nil:NilClass.
# kernel/delta/kernel.rb:79:in `upcase (method_missing)'
     # /Users/tyler/.rvm/rubies/rbx-head/lib/net/imap.rb:2496:in `text_response'
     # /Users/tyler/.rvm/rubies/rbx-head/lib/net/imap.rb:1994:in `response_untagged'
     # /Users/tyler/.rvm/rubies/rbx-head/lib/net/imap.rb:1950:in `response'
     # /Users/tyler/.rvm/rubies/rbx-head/lib/net/imap.rb:1876:in `parse'
     # /Users/tyler/.rvm/rubies/rbx-head/lib/net/imap.rb:1008:in `get_response'
     # /Users/tyler/.rvm/rubies/rbx-head/lib/net/imap.rb:917:in `initialize'
     # ./lib/mailer.rb:3:in `sendmail'
     # ./spec/mailer_spec.rb:4:in `__script__'
     # kernel/common/eval.rb:120:in `instance_eval'
     # kernel/bootstrap/array.rb:97:in `map'
     # kernel/bootstrap/array.rb:97:in `map'

here is my method
variables in all caps are strings switched out to protect the innocent ;)
def sendmail(keywords,seeds,run_number)
  gmail = Gmail.connect(USERNAME,PASSWORD)

  gmail.deliver do
    to EMAIL_ADDRESS
    subject "new machine run #{run_number}"
    body "machine run is done: keywords: #{keywords} seeds: #{seeds} URL/#{run_number}"
  end
end

Closing issue as it's 4 years old.

This issue was moved to gmailgem/gmail#26


Towards a 0.22 release

To be merged onto the source branch of this PR (for-a-0-point-22-release) before merging this PR onto dev:

[ ] https://github.com/JuliaAI/MLJBase.jl/pull/909
[ ] PR to remove deprecated stuff
[ ] ...

Codecov Report

Merging #908 (b3d8102) into dev (93cd92e) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

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

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##              dev     #908      +/-   ##
==========================================
- Coverage   87.59%   87.56%   -0.03%
==========================================
  Files          41       41
  Lines        3660     3660
==========================================
- Hits         3206     3205       -1
- Misses        454      455       +1

Impacted Files
Coverage Δ

src/MLJBase.jl
100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes


Import module and SunSign

so far i can only import the module by typing const { Origin, Horoscope } = require('circular-natal-horoscope-js'); and then run node js-file.js in console, which is not part of the readme.md. Maybe i just don't get it, because i am new to this topic.
Another thing is that it seems like the shift in the star constellation for 'sidereal'-SunSigns are calculated in the wrong direction and are also mislabled as 'tropical'.
For example for 07.04.1997 the tropical Sign is Aries, but sidereal Sign is Pisces (according to Stellarium and wikipedia), because our Sun changed the position over the thousands of years from when the dates for Zodiac Sign were set: en.wikipedia.org/wiki/Sidereal_and_tropical_astrology.
But when i type Horoscope.SunSign for this date it will give me 'Taurus', as if the shifting happened in the wrong direction (Taurus is after Aries, Pisces is before Aries).
Could someone verify this please?

So if my code works correctly, i assume that zodiac: 'tropical' is incorrectly implemented in this module and zodiac: 'sidereal' is working, but actually calculates the Sun Signs for the 'tropical' time, which most people use for Zodiac Signs. But as i mentioned these are not the star constellations where the sun is actually positioned. (See wikipedia)


Button on page Extension Management (2500, List) missing elipsis

Button Upload extension is missing elipsis property.

Fixed in 22.3.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 10887.

Availability update: We will publish a fix for this issue in the next update for release 22.
Build ID to track: 57217.


Sharing data between unresolved promises

PromiseKit version: 5.0.3

I'm playing around with some code where I'm wrapping SpriteKit SKNode actions in promises. One thing I've been looking at doing is creating a chainable DSL so I can do things like this:
let animations = skNode.fadeIn().andMoveTo(...)

where my andMoveTo(...) function looks like this:
func andMoveTo(_ loc:CGPoint) {
    // Combine the two promises.
}

In order to create the new promise I want to get the SKNode from the first promise in order to wrap the second promise around it. However I don't want to resolve the first promise as I'm going to execute both promises at the same time using when (resolved:...).
In PromiseKit 4.5 I could extend Promise and add a property to it to store the node. In 5.0 I can no longer do that because it's public instead of open.
Any thoughts on how I can add some form of data to a promise that is not part of the block that is executed?

You could try conforming a custom object to Thenable

Closing due to lack of response.


CommandBarFlyout Failed to Follow System Theme Change

Description
The colour of the text in some menus of CommandBarFlyout does not adjust automatically when the Windows system theme switches between dark and light.
Steps To Reproduce

Under light mode, set App theme to 'Default'.
Right click one item.

3. Don't close app, and change to dark mode.

Requirements

e.g. Fix crash that occurs when...

Files Version
<IP_ADDRESS>
Windows Version
Windows 11 23H2 (22631.3880)
Log File
debug.log

Thanks for the report, this is a known issue with WinUI but Microsoft appears to have closed it due to inactivity. Please add a comment to let them know it's still an issue https://github.com/microsoft/microsoft-ui-xaml/issues/4970

In the meantime, you can get the correct theme by restarting Files.


Openshift sets random user

Can't connect assigns random ID, and it won't run as mysql so I can't get mysql database to launch.
user ID
1000380000

Must set volume to /var/lib/mysql manually otherwise it will not automount in openshift.


TOTP Code Repeatedly Fails

Hi there,
Was attempting to set up authboss in my golang API and did a straight-forward TOTP implementation.
I was able:

to login
hit POST /auth/2fa/totp/setup
get the code GET /auth/2fa/totp/confirm which returns

{
    "modules": {
        "auth": true,
        "lock": true
    },
    "status": "success",
    "totp_secret": "<SECRET_IN_SESSION>"
}

get the QR code (GET /auth/2fa/totp/qr)
use Authenticator or Authy and register via QR (Also tried manually). On my iPhone.
make a post to /auth/2fa/totp/confirm with this request body:

{
	"code": "<CODE_FROM_APP>"
}

It fails every time (no matter which app).

I'm assuming it has to do with the logic used to generate the code (duration, secret, etc.) but not sure what the recommended way to debug/solve this is.
I confirmed from my debugger that the TOTP secret it uses to decode is the same that I registered in the authenticator app. Looking at your source code it seems the default behavior you used is supposed to be compatible, so I'm trying to understand what else might cause this to deviate.
For fun I ran your totp.GenerateCode(...) method and passed that in and it worked, so there's something about how it generates/validates codes via the default options that might be off from the three different auth apps on my iPhone:

Google Authenticator
Authy
Authenticator

Or maybe I'm missing something...

Hmm, I do see that you use the pquerna/otp package (which if I did this manually, I'd have used as well), so I'm even more confused as to why the code from my app after registering via QR is not the same as what the algo generates.
(I made sure I was using the right code 😄 )


Multiple seperator in one time (enhancements)

Is there any idea for multiple seperator in one time?
for example
x = ab( 123)
yz = cde (34)

----to----
x  = ab  ( 123 )
yz = cde ( 34  )

we need to align column three time with '=' then '(' then ')'
Can we do it in one time ? for example =&&(&&)

Done.


add basic support for shasums

We now default generate .sha256 checksum files (one for each archive). Example:

A new checksum = "..." config has been added, accepting 3 values:

"sha256" (default)
"sha512"
"false" (disable checksumming)

All checksums are implemented with the sha2 crate and match sha256sum and sha512sum's hashes. The resulting file is just a lowercase hex string of the hash (no filename included, since each file gets its own .sha256 file). I've defaulted to sha256 since that seems to be the default other people use, and if you're really serious about hardening this stuff you probably want actual signing/pki backing this up (like #120).
I've also cleaned up the Github Release table output a bit as part of this.

Oh I guess this drive-by fixes #200 by just not describing the artifact anymore


Looks like a random effect

2009 - 2010

2011 - 2012

2013 - 2014

2015-2016

bummer dude
but lets talk to your maths. maybe there is something in that?


Sdkand 475

I know it's just an example application, but Login Method in SettingsActivity looks awful when I select custom authenticator... :(


Ardb hangs indefinitely after use of FLUSHDB

$ docker build -t ardb_bug .
$ docker run -it -p 16379:16379 ardb_bug
$ redis-cli -h <IP_ADDRESS> -p 16379

AUTH secret
SET boe boe
FLUSHDB

This will hang the connection, any further connection will also fail on any command after (other than) AUTH.
Sorry for the .txt extensions, seems like GitHub doesn't like plain normal files. Remove the txt's to make the files work.
ardb.conf.txt
Dockerfile.txt

What's the storage engine?  Currently, flushdb/flushall with leveldb/lmdb  would  iterate all existing keys and delete them, which may block the connection for a while.

Docker initializes an empty database and the attached Dockerfile specifies storage_engine=leveldb. So it should be LevelDB with only a single key-value pair. As a side note, I only use the flushdb function myself during integration testing, on a production server I don't need it. So this isn't a blocking issue for me.

fixed in last commit

It works.


docs: Typo in proxy rewrite example

Description
Fixes a typo in the proxy configuration example.

What is the purpose of this pull request?

[ ] Bug fix
[ ] New Feature
[X] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[X] Read the Contributing Guidelines, especially the Pull Request Guidelines.
[X] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[X] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[X] Update the corresponding documentation if needed.
[X] Ideally, include relevant tests that fail without this PR but pass with it.

Thanks for the PR, but this ^ is necessary to avoid replacing /api that does not come at the beginning..

@sapphi-red You are right, however, this is an example of replacement, not avoidance of replacement.
// with options: http://localhost:5173/api/bar-> http://jsonplaceholder.typicode.com/bar

I don't get what you mean.


upgradation of WSO2 from 3.2.0 to 4.0.0

Description:
I have upgraded wso2 from 3.2.0 to 4.0.0 after doing all steps properly, while testing the APIs I am getting error as requested resource not found. Also I am not getting any error in log.
Affected Product Version:
4.0.0
Environment details (with versions):

OS: Linux

Can anyone please guide me on this issue?

Try to redeploy the API and make sure the gateway is checked.

Please contact our support team https://wso2.com/contact/?src=subscription.
Regards
Nandika


Noob issue: add compiled release

The title says it all.

If you would like to get the current version published on for the public you can check out the gh-pages branch, which has what you looking for.


Introducing a album feature where specific albums containing the songs and tunes to the movies or web series can be added.

Introducing a album feature where specific albums containing the songs and tunes to the movies or web series can be added.
Also adding the albums section to the home page.

Kindly assign this feature to me under Gssoc'24 label.

@Deepanshdevelop0 can you check the design first and then tell if you wan to implement changes for album.


Add MongoReader

Don't merge yet.
###To-do list:

[X] Test logic locally
[X] Check package runs locally
[X] Write demo
[X] Ask for merge

Okay I think it's worth looking at by now

Thanks Elliot! 2 small notes: 1. can you run prettier on the code? I should have it set up to do on commit, but not sure why it doesn't run all the time. Need to look into that. 2. I'm not sure .limit(Infinity) is officially supported by the API: https://stackoverflow.com/questions/43788801/does-mongodb-support-passing-infinity-into-limit 0 looks like it does what you want by default.

Yup


Generate assertions for Java records

Records are supported, but through a hack:
import org.assertj.assertions.generator.GenerateAssertion;

@GenerateAssertion
public record Item(String name, Integer value) {}

If you add the @GenerateAssertion, it generates a full Assert class:
@javax.annotation.Generated(value="assertj-assertions-generator")
public abstract class AbstractItemAssert<S extends AbstractItemAssert<S, A>, A extends Item> extends AbstractObjectAssert<S, A> {
  protected AbstractItemAssert(A actual, Class<S> selfType) {...}
  public S hasHashCode(int hashCode) {...}
  public S hasName(String name) {...}
  public S hasToString(String toString) {...}
  public S hasValue(Integer value) {...}
}

But there are three disadvantages:

need to add the annotation to each record, or to a class that not uses old-school getter notation (getFoo);
not everyone wants to add a new dependency (org.assertj:assertj-assertions-generator) to a project just for one annotation;
this approach generates garbage hasHashCode and hasToString methods. But of course, all standard AbstractAssert's methods such as asString remain.

We are currently focusing on the next release for AssertJ. As soon as that is done, we'll revamp the generator projects and take care of these additional topics.

Hi @Berlizov,
I cannot make your hack work in my example project, am I missing something?
The job summary shows the generated file: https://github.com/timo-a/microservice-example/actions/runs/10048164798
I'm just running generateAssertJ to sidestep the javax annotations that would cause a build to fail.
Locally, I'm running $ ./gradlew :generateAssertJ, PRs against the branch demo/assertj/records-workaround-with-annotation will trigger a new run.
I use the gradle plugin for the generator and I had to add a dependency on the assertj-assertions-generator so the annotation would be recognized.

We are currently focusing on the next release for AssertJ. As soon as that is done, we'll revamp the generator projects and address these additional topics.

I don't mean to create any pressure @scordio, I appreciate what is there already, I'm busy myself and cannot promise to contribute anything either. However, seeing as there has been a new release since your comment, and there is a PR for this issue already, is there anything outside contributors can do to speed up the resolution of this particular issue? Maybe tackle a number of higher priority issues?
While not as important as the core, I think that in the scope of custom assertion generation this is a key issue for projects with Java 17+ as a lot of the types to generate custom assertions for can be records.

@timo-a yes, definitely. Such issues are not forgotten 🙂
We couldn't spare time for the generator in the last months but I plan to jump on it in August.

Team decision: We will start the development of the next major version with Java 17 as a baseline to better aid records and jakarta support.

Gentle check-in, is there something outside contributors can help to get this issue resolved? Does the java 17 baseline for instance imply any steps to be taken, like updating the workflow?

Thanks for the offer, @timo-a! We're already working on it.


#8394 Copy field with type and nn

Closes #8394

Also I'm not sure that we need to generate NOT NULL if there is no NOT NULL attribute for the selected column of the source table.

I'm adding NN only for real NN fields, sure. Maybe label "name + type + not null" is not quite clear, but I did not invented something better. Anyway, one shoud catch the difference after first use, I think

But the both actions are always visible. Am I correctly understand?

But the both actions are always visible. Am I correctly understand?

yes. The idea is:

When I need to copy only "field + type", I use first action;
When I need to copy "field + type" and modifier "not null" for a required field - I use the second.

Well, then if object is not required, these both actions do the same.
So, we could just add to the SQLGeneratorColumnNameType::generateSQL and remove the second action.
        if (object.isRequired()) {
            sql.append(" NOT NULL"); //$NON-NLS-1$
        }

This way we will get NOT NULL for the cases when object is required and will not get it when it's not.
@ShadelessFox what do you think?

So, we could just add ...
This way we will get NOT NULL for the cases when object is required and will not get it when it's not.
@ShadelessFox what do you think?

Collegues, I understand this, but the desing of these generators is slightly different, because of situations, let's see the examples:

I need to create function and to add some parameters like some fileds in the existing table. This is often case. I need not NOT NULL modifier whether field is required or not, I need just "p_patam1 type1, p_param2 type2" etc. NB: It could be perfect to specify additional prefix (p_), but maybe in the future.
Case 2. I need to copy some fields from existing table to a script (when I construct new table). Then I probably prefer not to loose NN modifier (then I probably will want DEFAULT modifier, why not).
Case 3. I need to create table with similar fields, but without strict rules (e.g. for ETL purposes, etc.). In this case I do not want NN even it exists.

So I offer several combinations to these generators - with or without some parts of them.

Can't see any new context menu items in columns metadata, also behaviour of old menu items (Copy/Advanced copy) still the same

Can't see any new context menu items in columns metadata, also behaviour of old menu items (Copy/Advanced copy) still the same

I tested with Postgres Database, which database do you use?
It works only on DBSEntityAttribute (Postgres columns are all DBSEntityAttribute)

oh, 'Generate SQL' slipped past me. Now I see your changes. I've been looking for something like 'Copy ...' .-.

Verified

I can't say that I like this. It pollutes Generate SQL menu and it is not really convenient. Different people need different DDL in different situations. We can't add all possible cases in the context menu.
Perhaps a better solution would be to extend our Advanced Copy command (ctrl+shift+c). Currently it copies all columns of all selected rows. We can customize it, e.g. by showing popup with a list of columns with checkboxes.
WDYT?

Hi!
I think, this work was not started more than two years (from the moment , when issue was approved), and, as a result - i did it myself. I did it the way that I could do.
Your idea is better, sure, but is more complicated for me and I dont know - will I be able to perform it myself or not.
I think that the fear of polluting "Generate SQL" is exaggregated - there are very few elements, and they do not grow rapidly (they do not grow at all, I'd say).
It is up for you to decide...

Maybe think it's better to do in Advanced Copy -> Copy column names.

It has already got a menu where user could set options for columns copy (with type, with not null) along with others which are already exists in the following dialog

@serge-rider @ShadelessFox @LonwoLonwo what do you think?

@plotn could you move the introduced functionality to this command with additional option in the Options dialog about adding not null modifier?

@plotn could you move the introduced functionality to this command with additional option in the Options dialog about adding not null modifier?

I think I can, but I interpret this only as an addition to my solution, because it can only be done when there is grid with data, mine - is more flexible:

From the object tree;
From the table definition;

Please, make a desision - can we implement both - then I will plan further work at this stream

Thank you for your reply. We will discuss it soon.

@plotn we don't want to add this functionality under Genetate DDL command, because it duplicates Copy column name(s) functionality.

Unfortunately,  this reduses the degree of my involvement. I will try to continue to make PRs and so on, but me ideas firstly approve, then marinate for an year, then I do them myself, making PR, then new coutntdown starts and lasts...
I think, I'm not enough matured, maybe.

Hello, @plotn!
Thanks for your contribution.
Unfortunately, the issue you worked on turns out to be a controversial from the UX side. We have specific life terms for open PR-s and it's been a while since no update here, so I'm closing it.
If you want to rewrite your PR using the information proposed above, our doors are always open to you.
Best Regards,
DBeaver Team.


Register CorsConfigurationSource in GatewayAutoConfiguration

When using SCG with Spring Security, the CORS support provided by SCG is only a partial solution. Public routes permitted by the security config work as expected, but protected routes do not, as the security config executes before the CORS configuration, causing preflight CORS requests to those resources to be denied.
Enabling Spring Security's CORS support is easy. This solves the problem, but not before defining a CorsConfigurationSource bean from the content of GlobalCorsProperties. I was surprised to find that this was not done automatically by SCG when spring.cloud.gateway.globalcors.cors-configurations had already been defined. If this is the correct way to handle this (it appears to work as expected now), it would be a useful addition to SCG.
This is with Greenwich.M3, Spring Boot 2.1.0 and Spring Security 5.1.1.
For example, given the global CORS configuration from application.yml:
spring:
  cloud:
    gateway:
      globalcors:
        cors-configurations:
          '[/**]':
            allowed-origins:
            - "https://foo.example.com"
            - "http://localhost:8080"
            allowed-methods:
            - "*"
            allowed-headers:
            - "*"
            allow-credentials: true

And the security configuration class:
@EnableWebFluxSecurity
@Configuration
public class SecurityConfig {

	@Bean
	public SecurityWebFilterChain springWebFilterChain(ServerHttpSecurity http)
			throws Exception {
		// @formatter:off
		http.cors().and()
			.authorizeExchange()
			.pathMatchers("/public/route/1", "/public/route/2").permitAll()
			.anyExchange().authenticated()
			.and().oauth2ResourceServer().jwt();
		// @formatter:on
		return http.build();
	}

	@Bean
	CorsConfigurationSource corsConfigurationSource(
			GlobalCorsProperties globalCorsProperties) {
		UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
		globalCorsProperties.getCorsConfigurations()
				.forEach(source::registerCorsConfiguration);
		return source;
	}
}

Once .cors() is called on the ServerHttpSecurity object, the CorsConfigurationSource takes care of the rest.
If possible, it'd be great to see something like this in a future release of Spring Cloud Gateway. Thanks!
Links

https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.0.2.RELEASE/single/spring-cloud-gateway.html#_cors_configuration
https://docs.spring.io/spring-security/site/docs/5.1.2.RELEASE/reference/htmlsingle/#cors

I finally found this after hours banging my head on why OPTIONS requests were being blocked for my secured routes.  Workaround works great and its nice that it reads from the global configuration to reduce code duplication

@ryanjbaxter , is it still an option to add it to this project? We also were stuck on this issue for several hours because of the assumption that Spring Boot auto-configuration handles that for us... :wink: . The upside of this story: we got better insight into the config and CORS itself :laughing:

We spent a fair amount of hours debugging this. At least documentation should be improved regarding this as currently it doesn't do justice.

My team just spend a good amount of time debugging this as well, completely believed autoconfiguration handled this. There should be examples of working projects, had to derive the answer from vague SO posts displaying both CorsConfiguration bean and GlobalCorsProperties in yaml.

I wasted my entire day to figure this one out. i think this should be added to auto-configuration  🥲

+1