Deprecated locator text_field works correctly, textarea locator fails for same element

I was getting warnings from page_object saying "Locating textareas with '#text_field' is deprecated. Please, use '#textarea' method instead."
But when I went to replace #text_field with #textarea my tests no longer could find the element in question.
I made a demo:
Feature file:
Feature: Textarea bug demo

  Scenario: Deprecated locator works fine
    Given I am on the Flow page
    When I type into the texarea using text_field
    Then typing works

  Scenario: Correct locator does not find element
    Given I am on the Flow page
    When I type into the texarea using textarea
    Then page_object fails to find the textarea

Steps file:
Given(/^I am on the Flow page$/) do
  visit FlowPage
end

When(/^I type into the texarea using text_field$/) do
  on(FlowPage) do |page|
    page.new_topic_title_text_field_element.when_present.click
    page.new_topic_title_text_field_element.when_present.focus
    page.new_topic_title_text_field_element.when_present.send_keys("This is text_field")
  end
end

Then(/^typing works$/) do
  puts "w00t"
end

When(/^I type into the texarea using textarea$/) do
  on(FlowPage) do |page|
    page.new_topic_title_textarea_element.when_present.click
    page.new_topic_title_textarea_element.when_present.focus
    page.new_topic_title_textarea_element.when_present.send_keys("This is textfield")
  end
end

Then(/^page_object fails to find the textarea$/) do
  puts "Test fails before it gets here"
end

Page file:
class FlowPage
  include PageObject

  page_url "http://en.wikipedia.beta.wmflabs.org/wiki/Talk:Flow_QA"

  text_field(:new_topic_title_text_field, name: "topiclist_topic")
  textarea(:new_topic_title_textarea, name: "topiclist_topic")
end

I'm running into this Locating textareas with '#text_field' is deprecated. Please, use '#textarea' method instead warning as well, using v1.1.1.  I'm using text_field to access <input type="text" /> elements.
I'm not able to use textarea to locate these elements, because the tag doesn't match.
Is using text_field actually wrong?  If so, what should I be using to locate <input type="text"/>?

This is a Watir warning. text_field was used as a catch-all for input fields that accept text, but Watir has taken a more specific html5 compliant focus, requiring that elements match their specific type (text_field matches <input type="text"> and textarea matches <input type="textarea">).
I'm actually not a fan of removing the catch-all approach, but we'll decide soon if we are removing support for it, or removing the warning.

I'm closing this, since it sounds like this is entirely on the watir side. If you feel there's something page-object should be doing differently, feel free to comment and reopen.


Handling word-level regexes with .*

Hi, we are looking towards moving our custom word-level regex engine to IronMeta. Considering that at least for characters IronMeta supports regex-based rules, it seems like it should work out of the box.
Here's th issue I'm currently looking at. Let's consider the following regex: .* "test" .*. It should match all the phrases, containing word test, eg. ["test"], ["some", "test"].
So a naive translation into IronMeta matcher would look like this:
ironmeta MatcherSpecific<string, bool>: Matcher<string, bool>
{
    Pattern_0 =  .* "test" .*;
    Expression = Pattern_0;
}

and it does not match any of the test phrases (giving error: expected end of file). This seems somewhat expectable considering the greedy nature of the quantification operators in IronMeta.
So I kinda found two ways to make matcher for this sample regex:
ironmeta MatcherSpecific<string, bool>: Matcher<string, bool>
{
    Pattern_0 =  "test" .*;
    Pattern_0 =  . Pattern_0;
    Expression = Pattern_0;
}

ironmeta MatcherSpecific<string, bool>: Matcher<string, bool>
{
    Pattern_0 =  (~"test" .)* "test" .*;
    Expression = Pattern_0;
}

But it's unclear to me how to generalize these solutions to more complex real-world regex cases. Could you please suggest something?
I wonder if the regular regexes for characters are also working this way in IronMeta?

In order to not be greedy in PEG grammars (PEG grammars are not regexes!) you have to use negative lookahead, as in your second example.  I would do something like this:
TestToken = "test";
Token = /\S+/;
Space = /\s+/;

PhraseWithTest = Space? (~TestToken Token Space?)* TestToken Space? (Token Space?)*;

Thanks for the answer. I understand that PEG are not regexes :) . What I was looking for was a simplest way to translate existing regexes into IronMeta automatically.
The problem with lookahead is that It's not clear to me what would it turn into for really complex regexes.
Meanwhile I also found this answer on SA which could be a start (if somebody would be looking through this later), but this would not suit my needs as well.
Seems that I'll have to go completely different way. Anyway, thanks for support!
In case


variable name difference: authorization-role or authorization_role

In the operator/manifests there is an ((authorization-mode)) variable:

and an ((authorization_mode)) variable:

Somehow this accidental dual name seems amusingly similar to the almost duplicate values: abac vs rbac

As an aside, I've converged on a single variable in https://github.com/cloudfoundry-incubator/kubo-deployment/pull/237

authorization_mode should be the one. We have a story to make property names consistent: https://www.pivotaltracker.com/story/show/153171539.

Thanks for the PR @drnic!
It looks like authorization_mode is the only variable in kubo-deployment now.


Forum: voting per category

I'm looking for an independent vote scoring per category like users votes on category A will not affect post rating on category B.
Is this something possible?

I'm not sure I understand what you mean. Do you mean rating an item on different criteria? If so yes, that's possible. Check out the "reactions" example.

Also this should be on the Starter repo, so I'll close it here.


InvalidApiKey

Your API token is invalid.
Learn how to get it in this docs page:
https://docs-legacy.neptune.ai/security-and-privacy/api-tokens/how-to-find-and-set-neptune-api-token.html
There are two options to add it:
- specify it in your code
- set an environment variable in your operating system.
CODE
Pass the token to neptune.init() via api_token argument:
neptune.init(project_qualified_name='WORKSPACE_NAME/PROJECT_NAME', api_token='YOUR_API_TOKEN')
ENVIRONMENT VARIABLE (Recommended option)
or export or set an environment variable depending on your operating system:
Linux/Unix
In your terminal run:
    export NEPTUNE_API_TOKEN=YOUR_API_TOKEN

Windows
In your CMD run:
    set NEPTUNE_API_TOKEN=YOUR_API_TOKEN

and skip the api_token argument of neptune.init():
neptune.init(project_qualified_name='WORKSPACE_NAME/PROJECT_NAME')

Neptune is similar to mlflow. Good to know about this new tool for tracking ml experiments


[tensorflow/compiler/xrt/tests/raw_api_test.cc] Add calls to reserve() before populating vectors

https://github.com/tensorflow/tensorflow/pull/51739#issuecomment-940389562 told me to split the larger PR into one PR per file; thus this (thanks bash, git and gh!)

Closing, given consensus to not change tests.


Secret rotation / secret loss recovery

I've run into issues like #1851 in the past and didn't realise it was due to the SECRET_KEY changing when recreating a config. It would be nice if we could somehow add some mitigations to this.
Recovery from secret loss
If the secret is changed without access to the previous secret, and things like 2FA secrets can't be decrypted, then there should be some easy way to mitigate this. Right now, the only solution is to delete the corrupted rows in the DB manually. Ideally, there would either be a config setting to delete these records automatically (e.g. disable 2FA and notify the user when they log in), or at least a gitea doctor command to do so. This would at least solve my problem where I copied over a config and generated a new secret without knowing that it would render 2FA data inaccessible.
Proactive secret rotation
If the user wishes to proactively change the secret, there should be an option to include (at least) two secrets in the config: the new secret for future operations, and the old secret for past operations. There are three main ways to do this: a) allow a list of secrets to be specified, with one of them denoted the "active" secret; b) allow directly specifying one current and one "backup" secret, where the backup secret can be used exclusively for decryption; and c) allowing an admin to run a "rotation" command where they input the old secret and generate a new secret.
The actual action upon rotation of the secret depends on the reason for the rotation. If there's some kind of breach of security, things that were protected by the secret like 2FA keys should be regenerated. This would imply that there would have to be some way to prompt the user to setup 2FA again after authenticating, since we should assume the previous one was compromised. Alternatively, we could simply re-encrypt all of the existing data in-place as part of routine secret rotation. I'm not really sure what would be the best option here.

For any people unfortunate enough to be frantically Googling this at 11 PM like I was: I was moving my infrastructure to Nix, and the NixOS module for Gitea automatically generated a secret key for me, and so I couldn't log in because it wasn't using the default.
In case anyone needs it, the default secret key is here.

An approach we could take is what minio does where they will take old and new key as config option to rotate

Note that this is included in the original description, albeit probably not clearly enough. I'll take another pass through it and see what I can do to make that clearer.

I have a similar issue after upgrading an installation from a helm chart. In the installation the SECRET_KEY was not set and so values in the database are not encrypted. But after an
upgrade the the helm chart generated a freshSECRET_KEY resulting in the error when trying to access /admin/auths

...s/web/admin/auths.go:53:Authentications() [E] auth.Sources: failed to decrypt by secret, the key (maybe SECRET_KEY?)

Setting theSECRET_KEY to an empty value works -  but how can I start using a non-empty SECRET_KEY now ?

For me I was getting this issue on every runner following a restored PostgreSQL dump for Gitea:

level=error msg="failed to fetch task" error="unknown: rpc error: code = Internal desc = pick task: GetSecretsOfTask: failed to decrypt by secret, the key (maybe SECRET_KEY?) might be incorrect: AesDecrypt invalid decrypted base64 string: illegal base64 data at input byte 1"

I removed the secrets for the org/repo (simply updating them did not work), re-added them, and then the error went away and CI jobs ran as expected.

For any people unfortunate enough to be frantically Googling this at 11 PM like I was: I was moving my infrastructure to Nix, and the NixOS module for Gitea automatically generated a secret key for me, and so I couldn't log in because it wasn't using the default.
In case anyone needs it, the default secret key is here.

And what needs to be set? Copied my old gitea data where there is no SECRET_KEY inside the app.ini. I tried setting the SECRET_KEY to the default value but it still doesn't work, still getting this AesDecrypt error. Can't login anymore, this is very frustrating and undocumented...

Just went through this as well. The gitea service module let you write the configuration normally found in the app.ini file as per Options documentation so basically you would have to do something like:
services.gitea = {
    enable = true;
    settings = {
      security = {
        SECRET_KEY = "YOURSECRETKEY";
      };
    };
  };

Now, because it is already defined i the module, on build Nix will not be happy stating that you have conflicting values, yours and the one from the package. So you can use something like lib.mkForce to state that yours take precedence:
services.gitea = {
    enable = true;
    settings = {
      security = {
        SECRET_KEY = lib.mkForce "YOURSECRETKEY";
      };
    };
  };

Better yet, in order to not have the key in the Nix store you can use a secret manager like Agenix or Nix-sops and rely on the SECRET_KEY_URI as stated in Gitea's documentation: https://docs.gitea.com/1.19/administration/config-cheat-sheet#security-security. Please do note in the example that I still lib.mkForce on an empty value for SECRET_KEY it is because as per code Gitea is loading both simultaneously (https://github.com/go-gitea/gitea/blob/fb32b4c5340a1b5934e2a5164b0847265167b8b8/modules/setting/security.go#L108) and will be unhappy if both values are present. So first, I empty the SECRET_KEY so that SECRET_KEY_URI can be taken into account:
services.gitea = {
    enable = true;
    settings = {
      security = {
        SECRET_KEY = lib.mkForce "";
        SECRET_KEY_URI = "file:${config.age.secrets.giteaSecretKey.path}";
        INTERNAL_TOKEN_URI = "file:${config.age.secrets.giteaInternalToken.path}";
      };
    };
  };


Remove export disclaimer

See https://www.linuxfoundation.org/resources/publications/understanding-us-export-controls-with-open-source-projects
As an oepn source project, we can make this globally available.
Also, there's not really any encryption software in go-jose - that's all in golang's crypto libraries.

fixes #61


Add back udev rule

The branch associated with this PR was deleted? At least I can't clone it. Either way this is a good catch. I can test the bug and reproduce ('make install' doesn't install this file any more) but I can't pull down your patch.


Library name change request

Library repository URL
https://github.com/SolderedElectronics/Soldered-MCP23017-Port-Expander-Arduino-Library

Hi @koderchina. I am confirming your request.
Unlike submissions, this type of request is still handled manually. The Library Manager index maintainer occasionally comes through to clear all the outstanding requests. They will close this issue when it is done. You will get a notification from GitHub at that time.
After that, you can monitor the indexing of the library via its dedicated logs web page.
Information about that here:
https://github.com/arduino/library-registry/blob/main/FAQ.md#can-i-check-on-library-releases-being-added-to-library-manager

Done:
2024/10/02 15:53:13 Loaded 7341 libraries from DB
Removing MCP23017 Soldered Library
Success!


Change to the git root before continuing

Opencommit barfs if run from a subdirectory

Sorry - I don't know how to build/run node projects.   The commit is just a suggestion.

I suspect this is the same-but-different to https://github.com/di-sukharev/opencommit/pull/37

merged the #37


Update concepts-audit.md

typo

@LifeRyuto : Thanks for your contribution! The author(s) have been notified to review your proposed change.


update ctm2tg

The idea is to stop relying on the current parser which is prone to error, and switch to a more professional approach based on 3rd party stable libs yet to be evaluated, such as

https://parselmouth.readthedocs.io/en/stable/
https://github.com/kylebgorman/textgrid
https://github.com/timmahrt/praatIO

MFA seems to do a good job on parsing Kaldi's CTMs to Praat TextGrids: https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/blob/main/montreal_forced_aligner/textgrid.py

Coming back to emphasize that ctm2tg.py is possibly the worst script I've ever written. This needs to be changed ASAP.


New addContactPoints method for resolving multiple InetAddress from one hostname

This will make the cluster not only use the first available InetAddress but all that is returned from the host lookup.
This will greatly simplify setups as we can add a single cassandra_seeds dns record and have that statically added to our configuration.
As suggested by @olim7t  I added this feature as a new method, keeping the symmetry with other addContactPoint(s) methods.
Imo this should go in to the main addContactPoint method, as it should be transparent if the host points to one or many InetAddresses. But that is in the end the decision of you guys.

I agree that this should eventually be the default, but I don't want to introduce it in a minor version to avoid errors if someone has a broken DNS configuration.
We have a ticket where we track the stuff we want to make the default in the next major version (JAVA-616), I've added this to the list.

Can one of the admins verify this patch?

I cherry-picked your commit to make this the default in 2.2 (#360).

:+1:


Laravel 5.5 and changes to Storage::files() method

Laravel Version: 5.5.0
PHP Version: 7.1.0
Database Driver & Version:

Description:
I was going through the upgrade process to 5.5 and noticed in the upgrade guide that the files method should be returning SplFileInfo objects instead of array of file names. I am using this on my app and noticed that nothing is actually changed, it still returns an array of the file names. Same thing with allFiles. Am I missing something here?
https://laravel.com/docs/5.5/upgrade#upgrade-5.5.0
The files method now returns an array of SplFileInfo objects, similar to the allFiles method. Previously, the files method returned an array of string path names.
Steps To Reproduce:
$ php artisan -V
Laravel Framework 5.5.0

$ php artisan tinker
Psy Shell v0.8.11 (PHP 7.1.0 — cli) by Justin Hileman
>>> Storage::disk('local')->files();
=> [
     ".gitignore",
   ]
>>> Storage::disk('local')->allFiles();
=> [
     ".gitignore",
     "public/.gitignore",
   ]

should be returning instead of array of file names.

i think you missed an important word here :P

Forgot to mention SplFileInfo, fixed. Well for me the current functionality was fine, since I hadn't to do anything to the existing code. But if this is documentation error, this probably should be fixed?

Here's the PR that changed this: https://github.com/laravel/framework/pull/18874
Note that this change modified the behavior of Illuminate\Filesystem\Filesystem class, not the Illuminate\Filesystem\FilesystemAdapter - when you use the Storage disks you are using the FilesystemAdapter class.
Look this:
$ php artisan tinker
Psy Shell v0.8.11 (PHP 7.1.4 — cli) by Justin Hileman
>>> use Illuminate\Filesystem\Filesystem;
>>> (new Filesystem)->files(storage_path('app'), true)[0]->getBasename();
=> ".gitignore"
>>> (new Filesystem)->allFiles(storage_path('app'), true)[0]->getBasename();
=> ".gitignore"

Previously the Filesystem->files() method just returned the files pathnames as strings and didn't included hidden files. This behavior changed and now the Filesystem->files() method works exactly as the Filesystem->allFiles() method.
Anyhow the upgrade guide needs some adjustments to make the behavior changes more clear - hidden files are now returned by default and previously they weren't. 👍

Anyhow I guess the upgrade guide needs some adjustments to make these behavior changes even more clear.

Feel free to PR the docs repository, I agree it need a bit of explanation.
Appreciate if you do @paulofreitas :)

Done on https://github.com/laravel/docs/pull/3603. 😃  🍻


Smithsonian mapping

First shot at the Smithsonian mapping.
In some cases I've moved a little from the spec where the data seemed to suggest slightly different requirements. These are all documented.
My first mapping, so ready to be corrected!

Looks good to me, given the time I have to look at it. I'm passing this to @anarchivist for routing.

I think this generally looks good but appears there are a couple of open questions.


CI: macOS Build Failing after 3m

Bug description
MacOS CI keeps failing on PRs:
https://github.com/facebookincubator/velox/actions/runs/8088153792/job/22101621642?pr=8906
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
  rm '/usr/local/bin/2to3'

To force the link and overwrite all conflicting files:
  brew link --overwrite<EMAIL_ADDRESS>
To list all files that would be deleted:
  brew link --overwrite<EMAIL_ADDRESS>--dry-run

CC: @kgpai @spershin @majetideepak @assignUser @pedroerp
System information
n/a
Relevant logs
No response

cc: @assignUser
It seems aws-sam-cli is pulling these other dependencies which are causing the installation to fail :
``` aws-sam-cli 1.109.0_1 -> 1.110.0, harfbuzz 8.3.0 -> 8.3.0_1, libpq 16.2 -> 16.2_1, node@20 20.11.1 -> 20.11.1_1, php 8.3.3 -> 8.3.3_1<EMAIL_ADDRESS>3.12.2 -> 3.12.2_1, selenium-server 4.17.0 -> 4.18.1 `` .


Fix for primary instance being detected as shadow instance.

Tries fixing #662 permanently.
PR Type
What kind of change does this PR introduce?
Bugfix
Other information
Some users are still having issue where primary instance is miscategorized as shadow instance. This PR aims to fix that.

@soumyamahunt What if notepads crashed or user killed notepads instance from taskmgr?

@soumyamahunt What if notepads crashed or user killed notepads instance from taskmgr?

@soumyamahunt What if notepads crashed or user killed notepads instance from taskmgr?

The detection would still work regardless Notepads is closed by user, or crashed/forcefully killed by user.

@soumyamahunt What if notepads crashed or user killed notepads instance from taskmgr?

The detection would still work regardless Notepads is closed by user, or crashed/forcefully killed by user.


Callback on source end example

Would have helped with: https://github.com/RustAudio/rodio/pull/600 (see last few messages there)

Hi! Just came here to ask about something I assume might be similar. I am looking for a way to assign a function (function pointer or I guess more flexibly a closure) when the current Source has reached its end. For pausable / seekable sources, just "sleep until end" isn't enough, as it's useful to have the thread to be responsive to controls.
Is there a way to do this already, or is it a planned feature?

OK seems like this works:
let actual_source = /* your actual source */;
sink.append(actual_source);
let callback_source = EmptyCallback::<f32>::new(Box::new(|| println!("actual source has ended!")));
sink.append(callback_source);

It's quite a strange approach to me, since statistics like number of sources added to the sink's queue, are then "wrong", let's say I added 10 actual audio sources, but getting sound_count would return 20.
It's possible to live with that and manage the queue separately somewhere of course. But wondering about the reasons you chose to go for this API specifically. Seems more "direct" to have the Sink itself notify of it progressing through its sources, in the "my current source changed (ended, skipped, etc), here's next source if any".


Add verify_local_channel_env function to util

Resolves #28
Changes proposed in this pull request:

Adds the function verify_local_channel_environment to ib_manifest_util/utils

it takes in a local_channel_env.yaml and tries to create it via conda create -n <name> --offline to ensure that this environment can be successfully built (offline) with the results from the conda-vendor vendor command.

NOTE:
The current run_subcommand function works well but might need to modified further if we wish to catch stderr from the conda env create ..   command.

@kcpevey I believe this is ready for a final review. Thanks for the thorough review :)

Maybe try explicitly telling it the conda binary to use. That way you can make sure you're using the same one. I suggest this because I know the ci is using micromamba so it may not match the solve on your local machine.

@kcpevey
Phew! This took a little longer than I wanted it to but I'm actual quite happy with the end result. The major updates since the last review include:

swapping out micromamba for miniconda in the test CI
creating a conda_vendor_data fixture which will run conda-vendor vendor ... to generate the necessary data which will be used by the test_verify_local_channel_environment test.

this fixture generates the data (ie repodata.json) in a temp folder, and then deletes those folders/files when it finishes.
this allows us to test against conda-vendor without having to add several MB of tar files to the repo

Let me know if you have any other questions or concerns :)


feature-wip Support setting variables in query statement

Use case
mysql> CREATE TABLE t_user (
    ->   event_day DATE,
    ->   id bigint,
    ->   username varchar(20)
    -> )
    -> DISTRIBUTED BY HASH(id) BUCKETS 10
    -> PROPERTIES ('replication_num' = '1');
Query OK, 0 rows affected (0.07 sec)

mysql> CREATE TABLE t_user_pv(
    ->   event_day DATE,
    ->   id bigint,
    ->   pv bigint
    -> )
    -> DISTRIBUTED BY HASH(id) BUCKETS 10
    -> PROPERTIES ('replication_num' = '1');
Query OK, 0 rows affected (0.09 sec)

mysql> CREATE MATERIALIZED VIEW mv
    -> BUILD IMMEDIATE REFRESH COMPLETE
    -> KEY (username)
    -> DISTRIBUTED BY HASH(username) BUCKETS 10
    -> PROPERTIES ('replication_num' = '1')
    -> AS SELECT /*+ SET_VAR(exec_mem_limit=1048576, query_timeout=3600) */ t1.username ,t2.pv FROM t_user t1 LEFT JOIN t_user_pv t2 on t1.id = t2.id;
Query OK, 0 rows affected (0.10 sec)

Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[x] No
[ ] I don't know

Has unit tests been added:

[x] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[x] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[x] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[x] No

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 36.95 seconds
load time: 506 seconds
storage size:<PHONE_NUMBER>0 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230118143913_clickbench_pr_83173.html

LGTM


Document precompile functions signature mapping

Problem
Currently outside of the HIP there's no clear mapping of the precompile functions and which signature hash and or EIP it may be mapping to.
Solution
Add a table to reach folder highlighting

[x]  function signature
[x]  hash i.e. resul of solc --hashes
[ ]  EIP function it may map to

Alternatives
No response

Covered task 1 & 2 in #181


[Bug]: 3 Icons

Check for existing bug reports before submitting.

[X] I searched for existing Bug Reports and found no similar reports.

Expected Behavior
1 Icon
Current behaviour
3 Icons
Reproduction
Install Plugin (Note: This only happened when I installed it and then enabled it. The issue persisted even after closing down Obsidian and reopening. I only got rid of the icons after disabling and re-enabling the plugin)

Which Operating Systems are you using?

[ ] Android
[ ] iPhone/iPad
[ ] Linux
[ ] macOS
[X] Windows

Obsidian Version Check
1.3.5
Plugin Version
1.0.1-b10
Confirmation

[x] I have disabled all other plugins and the issue still persists.

Possible solution
No response

Has this occurred since?

I encountered the same problem, but with 6 icons. Let me know, if I can somehow help find the cause.

I believe this behavior is fixed.


fix the issue netty#2944 in 4.0

Motivation:
fix the issue netty#2944
Modifications:
use <=> instead of =>, use <:> instead of :> due to the connection is bidirectional. What's more, toString() method don't know the direction or there is no need to know the direction when only log channel information.
Result:
after the fix, log won't confuse the user

@jiafu1115 Sounds good to me. I wonder if we should use fancy unicode characters, though. WDYT, @normanmaurer ?
http://unicode-table.com/en/sets/arrows-symbols/

For example, we could check if the current environment's default character set is UTF-8, and if so, we could use unicode arrows.

Lets stick to ascii :)

Am 29.01.2016 um 08:17 schrieb Trustin Lee<EMAIL_ADDRESS>@jiafu1115 Sounds good to me. I wonder if we should use fancy unicode characters, though. WDYT, @normanmaurer ?
http://unicode-table.com/en/sets/arrows-symbols/
—
Reply to this email directly or view it on GitHub.

<=> and <:> sounds good anyway.

·for fancy unicode characters it is just a little more fancy but it seems no need to add more conflex for the toString() method.
what's your view for this?

@jiafu1115 Let's stick to <=> and <:> as discussed above.

For complete clarity, how about using this format:
L<localAddr> = R<remoteAddr> (when active)
L<localAddr> ! R<remoteAddr> (when inactive)

Given that we do not need to use < or > for representing directions, it's probably enough to use a single character notation. WDYT?

@trustin @normanmaurer @IgorAlelekov  so how about use -(instead of =) and ! and remove the swap logical (just keep the local address as frist)
use = may confused.it is assignment or equal signal. so why not use - instend of =?
so in short brief, the followed statement is adviced:
L - R (when active)
L ! R (when inactive)
if no any problem I will update the commit code?

I'm fine with either -, = or ~. WDYT, @normanmaurer ?

Same here

Am 01.02.2016 um 10:53 schrieb Trustin Lee<EMAIL_ADDRESS>I'm fine with either -, = or ~. WDYT, @normanmaurer ?
—
Reply to this email directly or view it on GitHub.

@trustin @normanmaurer  so I will close this pull request and create one new request :with commit:  https://github.com/netty/netty/pull/4803. 3ks for checking it.


swagger validate swgger.yml fail when I follow Todo-List tutorial

I install go-swagger by running go get -u github.com/go-swagger/go-swagger/cmd/swagger. After install is done, I follow http://goswagger.io/tutorial/todo-list/ to learn how to use go-swagger.After I create swagger.yml by following this command
,
I run swagger validate ./swagger.yml file, it fails.

.
Why it happen?

It works just fine for me. I guess you have some locale specific troubles.
~/tttttt » swagger init spec \
  --title "A To Do list application" \
  --description "The product of a tutorial on goswagger.io" \
  --version 1.0.0 \
  --scheme http \
  --consumes application/io.goswagger.examples.todo-list.v1+json \
  --produces application/io.goswagger.examples.todo-list.v1+json
2016/06/21 14:30:19 creating specification document in Users/vlad/tttttt/swagger.yml
~/tttttt » swagger validate swagger.yml
The swagger spec at "swagger.yml" is valid against swagger specification 2.0
~/tttttt » cat swagger.yml
consumes:
- application/io.goswagger.examples.todo-list.v1+json
definitions: {}
info:
  description: The product of a tutorial on goswagger.io
  title: A To Do list application
  version: 1.0.0
paths: {}
produces:
- application/io.goswagger.examples.todo-list.v1+json
schemes:
- http
swagger: "2.0"

It also would be good if you post a plain text code instead of screenshots.

@vburenin
Thanks for your help . It works fine now. I don' know why. I just restart my machine, and re-setup swagger command.

I have the same problem!
$ cat swagger.yml
consumes:
- application/io.goswagger.examples.todo-list.v1+json
definitions: {}
info:
  description: The product of a tutorial on goswagger.io
  title: A To Do list application
  version: 1.0.0
paths: {}
produces:
- application/io.goswagger.examples.todo-list.v1+json
schemes:
- http
swagger: "2.0"
$ swagger validate swagger.yml
2016/07/15 14:37:54 invalid character 'c' looking for beginning of value
Why?Please help.
$ go env:
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/lstbao/work/listomego:/home/lstbao/gowork"
GORACE=""
GOROOT="/home/lstbao/software/go"
GOTOOLDIR="/home/lstbao/software/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"


Pomodoro GUI

Description
The Pomodoro technique uses a timer to break down work into intervals, traditionally 25 minutes in length, separated by 5 min breaks. The python script is represented in a GUI based form along with an extra functionality of website blocking to prevent distractions.
Fixes #1044

Type of change

[X] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[X] This change requires a documentation update
[X] Documentation Update

Checklist:

[X] My code follows the style guidelines(Clean Code) of this project
[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 created a helpful and easy to understand README.md
[X] My documentation follows Template for README.md
[X] I have added the project meta data in the PR template.
[X] I have created the requirements.txt file if needed.

Project Metadata
If there is no-file/nothing to fill the below fields with, then type: none
Example: If no requirements.txt needed/present, then type none in Requirments.
Category:

[ ] Calculators
[ ] AI/ML
[ ] Scrappers
[ ] Social_Media
[ ] PDF
[ ] Image_Processing
[ ] Video_Processing
[ ] Games
[ ] Networking
[ ] OS_Utilities
[X] Automation
[ ] Cryptography
[ ] Computer_Vision
[X] Fun
[ ] Others

Title: Pomodoro clock with GUI
Folder: Pomodoro_GUI
Requirements: requirements.txt
Script: Pomodoro_gui.py.
Arguments: None
Contributor: RohiniRG
Description: The Pomodoro technique uses a timer to break down work into intervals, traditionally 25 minutes in length, separated by 5 min breaks. The python script is represented in a GUI-based form along with extra functionality of website blocking to prevent distractions.

Some enhancements:

Yes, I will try to implement this.
But @kaustubhgupta could you please consider upgrading the level for this issue, as I believe I had to put a lot more work into this than other level2 issues I have submitted for this repo.

Some enhancements:

Yes, I will try to implement this.
But @kaustubhgupta could you please consider upgrading the level for this issue, as I believe I had to put a lot more work into this than other level2 issues I have submitted for this repo.

will consider that after the script is ready to be approved 👍

@kaustubhgupta have a look


_64gram: 1.1.16 -> 1.1.17

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

You can try adding passthru.updateScript = nix-update-script { }; to see if this will be picked up by r-ryantm in the future.

oops, thanks for letting me know :)


Tests: Update Hatchet from 6.0.0 to 7.0.0

ActiveSupport's Object#blank? and Object#present? are no longer provided by default (https://github.com/heroku/hatchet/pull/107)
Remove deprecated support for passing a block to App#run (https://github.com/heroku/hatchet/pull/105)
Ignore  403 on app delete due to race condition (https://github.com/heroku/hatchet/pull/101)
The hatchet.lock file can now be locked to "main" in addition to "master" (https://github.com/heroku/hatchet/pull/86)
Allow concurrent one-off dyno runs with the run_multi: true flag on apps (https://github.com/heroku/hatchet/pull/94)
Apps are now marked as being "finished" by enabling maintenance mode on them when teardown! is called. Finished apps can be reaped immediately (https://github.com/heroku/hatchet/pull/97)
Applications that are not marked as "finished" will be allowed to live for a HATCHET_ALIVE_TTL_MINUTES duration before they're deleted by the reaper to protect against deleting an app mid-deploy, default is seven minutes (https://github.com/heroku/hatchet/pull/97)
The HEROKU_APP_LIMIT env var no longer does anything, instead hatchet application reaping is manually executed if an app cannot be created (https://github.com/heroku/hatchet/pull/97)
App#deploy without a block will no longer run teardown! automatically (https://github.com/heroku/hatchet/pull/97)
Calls to git push heroku are now rate throttled (https://github.com/heroku/hatchet/pull/98)
Calls to app.run are now rate throttled (https://github.com/heroku/hatchet/pull/99)
Deployment now raises and error when the release failed (https://github.com/heroku/hatchet/pull/93)

[skip changelog]

@schneems Meant to say as well - I have Dependabot enabled (and set to weekly) so I'll get bot PRs for future Hatchet releases, if it saves you any time :-)

I don't usually make so many sweeping changes at once. I wanted to babysit this rollout to see what/if anything fails. it also gives me a chance to look other buildpacks. Thanks for your help with this release, it's a big one!

Makes sense! Thank you again for all your time spent improving Hatchet 💜


Rough Ingress TLS steps

This change is

Please move this to istio.github.io docs. Closing for now.


Don't use ssl hash settings when using an array of rabbitmq hosts

This change fixes #598
I'm not very familiar with puppet providers, so I'm not sure what I've done here is appropriate, but it appears to work.
When I apply with this, I get the following changes on every run:
Notice: /Stage[main]/Sensu::Rabbitmq::Config/Sensu_rabbitmq_config[hostname]/ssl_transport: ssl_transport changed 'false' to 'true'
Notice: /Stage[main]/Sensu::Rabbitmq::Config/Sensu_rabbitmq_config[hostname]/ssl_private_key: ssl_private_key changed '' to '/etc/sensu/ssl/key.pem'
Notice: /Stage[main]/Sensu::Rabbitmq::Config/Sensu_rabbitmq_config[hostname]/ssl_cert_chain: ssl_cert_chain changed '' to '/etc/sensu/ssl/cert.pem'

Ideally this wouldn't happen but I'm not sure how to fix it.

Can you add some tests for this please?

@johanek thanks for your contribution!
rabbitmq_host is a string, not an array, so this should not happen. Issue #598 has been closed. Please reopen if I'm missing something and there is still an issue.

Hi,
This is about setting rabbitmq cluster settings, which is an array, rather than a single rabbitmq_host, which would be a string.
#598 was definitely a problem when using an array of rabbitmq hosts, and this solves the problem for us.

I see there are some clarifications to the config required for rabbitmq in #598, so I will check those out next week and confirm if I still have a problem. Thanks!

Getting the config right as per #598 does fix this problem, so I'm going to close this PR and make an updated in there.
Thanks!


added geohash scalar function

@mfussenegger what do you think about the naming? @chaudum said that geo_hash is better because we do that also for example with date_trunc,...

I'd stick with geohash but don't really have a strong opinion

@mfussenegger fixup pushed

Current coverage is 81.59% (diff: 91.66%)

Merging #4789 into master will increase coverage by 0.02%

@@             master      #4789   diff @@
==========================================
  Files          1315       1316     +1
  Lines         45094      45106    +12
  Methods           0          0
  Messages          0          0
  Branches       7064       7065     +1
==========================================
+ Hits          36780      36803    +23
  Misses         5632       5632
+ Partials       2682       2671    -11

Powered by Codecov. Last update a8f4161...296ae13


Mention participation in EuroHPCSummit 2023, closes #785

The slides used in the flashtalk on CR were compounded with the presentations from all the other participants of the session Education in HPC: A Lifelong Effort. The slides are currently not posted online.

Thanks!


Asyncio error on Windows Python 3.8 due to proactor event loop

Using zmq.asyncio on Windows with Python 3.8 fails, due to asyncio using the "proactor" event loop by default. See https://github.com/tornadoweb/tornado/issues/2608 for related discussion.
Specifying that asyncio should use the selector event loop (the previous default) allows zmq.asyncio to run successfully.
Can pyzmq be updated to support the proactor event loop, or do we need to manually change the event loop to selector for anything using zmq.asyncio?
Example: the code below generates an error unless the asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) line is uncommented.
import asyncio
import zmq
import zmq.asyncio

port = 5556

#asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
ctx = zmq.asyncio.Context()

async def recv_and_process():
    sock = ctx.socket(zmq.REP)
    sock.connect('tcp://localhost:%d' % port)
    msg = await sock.recv_string()
    await asyncio.sleep(1)
    await sock.send_string('ack')

async def send_and_wait():
    sock = ctx.socket(zmq.REQ)
    sock.bind('tcp://*:%d' % port)
    await sock.send_string('msg')
    reply = await sock.recv_string()

async def sendAndRecv():
    await asyncio.gather(
        send_and_wait(),
        recv_and_process()
    )

asyncio.run(sendAndRecv())

libzmq-4.3.2
pyzmq-19.0.2
Python-3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)]

Can pyzmq be updated to support the proactor event loop

I don't think there is any way to make this happen until/unless the proactor event loop implements the fundamental add_reader methods, but I'd love to be wrong. See this discussion on Python for details. Essentially, there is no way for libraries to declare themselves incompatible with proactor, and apparently no way to use proactor with FD/socket-based APIs like libzmq without some shenanigans or new features implemented in the standard library.
If someone could write an example that works with zmq sockets (not the current asyncio wrappers) and proactor, that would be awesome. But as far as I can tell, especially with tornado in a similar boat, I think most Windows folks simply can't use the default event loop policy if they need to do anything with sockets/FDs. It's still technically a solvable problem, but Python 3.8 and 3.9 have chosen not to address it.

fyi, python 3.10 shows the same issue. Does that mean zmq asyncio is broken for good ?

pyzmq will run on proactor if you have tornado 6.1, which provides the necessary compatibility layer to fill in the missing features.


Substitution Tags

Substitution tags
{   "to": [<EMAIL_ADDRESS><EMAIL_ADDRESS> ],   "sub": {     "-name-": [       "John",       "Jane"     ],     "-customerID-": [       "1234",       "5678"     ],     "-salesContact-": [       "Jared",       "Ben"     ],     "-contactPhoneNumber-": [       "555.555.5555",       "777.777.7777"     ],     "-time-": [       "3:00pm",       "5:15pm"     ]   } }
Been using the docs to work with the API however I noticed that the example Substitutions "subs" shown above do not work with Personalisation.
They also don't mention Personalisation.
However, those substitutions "substitutions" from the Personalisation seem to work..
Personalisations
 "personalizations": [{       "to": [{           "email"<EMAIL_ADDRESS>     }],       "cc": [{           "email"<EMAIL_ADDRESS>     }, {           "email"<EMAIL_ADDRESS>     }, {           "email"<EMAIL_ADDRESS>     }],       "substitutions": {           "%fname%": "recipient",           "%CustomerID%": "CUSTOMER ID GOES HERE"       },       "subject": "YOUR SUBJECT LINE GOES HERE"   }, {       "to": [{           "email"<EMAIL_ADDRESS>     }],       "cc": [{           "email"<EMAIL_ADDRESS>     }, {           "email"<EMAIL_ADDRESS>     }, {           "email"<EMAIL_ADDRESS>     }],       "substitutions": {           "%fname%": "recipient2",           "%CustomerID%": 55       },       "subject": "YOUR SUBJECT LINE GOES HERE"   }] }
Is this something others have come across?

hi @AndrewNduati - it looks like you've opened this twice, so closing this one in favor of https://github.com/sendgrid/docs/issues/3709


Code style improvements

Rename all identifiers with two _ at the beginning

cannot compile ,  https://travis-ci.org/xtaci/algorithms/builds/156722382

@xtaci  Fixed


Validation context and fallbacks

@CvX

:+1:

@iaintshine Hello there!
I know it was 7 years ago but  if you have a minute to spare I'll be super grateful.
I'm trying to do the following:
class TestSanitizer < InputSanitizer::V2::PayloadSanitizer
  class DataSanitizer < InputSanitizer::V2::PayloadSanitizer
    string :my_field, required: false
  end

  nested :data, sanitizer: DataSanitizer, required: true
end

I want an error when data is missing and I want an error when /data/my_field is missing. However, that fails on the intersection check.
https://github.com/zendesk/input_sanitizer/pull/18/files#diff-9eb66316dca1e68e1970a936cceabf81e2760e747c4de4dc24049e1ed5541fd2R57
I don't see a workaround for it and I'm not sure what is the intent behind the check. Is there any info you could share that would help me?
I'm glad to see Base/Zendesk still good for you. 😉


Porvide api for bulking update slot's weight

Codecov Report

Merging #538 into master will not change coverage.
The diff coverage is n/a.


This Old House: Failed to parse JSON

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2<IP_ADDRESS>
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

youtube-dl --verbose https://www.thisoldhouse.com/season-19-ask-toh/22242923/s19-e12-radiator-paint-load-bearing-wall
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.thisoldhouse.com/season-19-ask-toh/22242923/s19-e12-radiator-paint-load-bearing-wall']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 2.7.18 (CPython) - Linux-5.4.0-64-generic-x86_64-with-Ubuntu-20.04-focal
[debug] exe versions: avconv 4.2.4, avprobe 4.2.4, ffmpeg 4.2.4, ffprobe 4.2.4, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[ThisOldHouse] s19-e12-radiator-paint-load-bearing-wall: Downloading webpage
[Zype] 6009cf51e32d650001fc4663: Downloading JSON metadata
ERROR: 6009cf51e32d650001fc4663: Failed to parse JSON  (caused by ValueError("Expecting ',' delimiter: line 8 column 59 (char 300)",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 904, in _parse_json
    return json.loads(json_string)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting ',' delimiter: line 8 column 59 (char 300)
Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 806, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 827, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 532, in extract
    ie_result = self._real_extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/zype.py", line 92, in _real_extract
    'source'), video_id, js_to_json)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 908, in _parse_json
    raise ExtractorError(errmsg, cause=ve)
ExtractorError: 6009cf51e32d650001fc4663: Failed to parse JSON  (caused by ValueError("Expecting ',' delimiter: line 8 column 59 (char 300)",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

Having issues getting videos. Site worked last month.

Error as of Feb. 2, 2021:
C:\Users\Menna\Downloads>youtube-dl --verbose https://www.thisoldhouse.com/season-19-ask-toh/22242923/s19-e12-radiator-paint-load-bearing-wall
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.thisoldhouse.com/season-19-ask-toh/22242923/s19-e12-radiator-paint-load-bearing-wall']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[ThisOldHouse] s19-e12-radiator-paint-load-bearing-wall: Downloading webpage
[Zype] 6009cf51e32d650001fc4663: Downloading JSON metadata
ERROR: 6009cf51e32d650001fc4663: Failed to parse JSON  (caused by ValueError("Expecting ',' delimiter: line 8 column 59 (char 300)",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\extractor\common.py", line 904, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
  File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
  File "C:\Python\Python34\lib\json\decoder.py", line 359, in raw_decode
ValueError: Expecting ',' delimiter: line 8 column 59 (char 300)
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\extractor\common.py", line 904, in _parse_json
  File "C:\Python\Python34\lib\json\__init__.py", line 318, in loads
  File "C:\Python\Python34\lib\json\decoder.py", line 343, in decode
  File "C:\Python\Python34\lib\json\decoder.py", line 359, in raw_decode
ValueError: Expecting ',' delimiter: line 8 column 59 (char 300)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 806, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\YoutubeDL.py", line 827, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\extractor\common.py", line 532, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\extractor\zype.py", line 92, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp_eeieglg\build\youtube_dl\extractor\common.py", line 908, in _parse_json
youtube_dl.utils.ExtractorError: 6009cf51e32d650001fc4663: Failed to parse JSON  (caused by ValueError("Expecting ',' delimiter: line 8 column 59 (char 300)",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.


Rethink about Pairwise Loss and Test it on Real DataSet

Refactor pairwise loss code and add more unittest. Test them on a modest data set. Still need to do parameter tuning to test their effectiveness.


[2.6.2] Combining async, finally and IList/IEnumerable results in an incorrect execution workflow

Posted further below is source code and its compiled output. The exception occurs in the following piece of code:
while ($t2.moveNext()) {
    item = $t2.current();
}

The reason is that "$t2" does not have an assigned value. In fact all code between "await Test2()" and the "foreach" will be skipped during execution, including the finally block. This is due to a bug in the execution flow of the compiled code.
This situation occurs only under the following conditions:

Async execution
The return value of the async method being called is IEnumerable, IList, List, array, etc.
The result of the method is assigned to an "IEnumerable/IList" variable. If the async method returns an array/List and the result is stored in an array/List variable the issue does not occur.
There must be a finally block (albeit empty)

The cause seem to be the following lines of compiled code:
case 2:
case 3:
case 4: {
    if ($state === 2) {
        ....
    }
    ...
}

Inside the "if ($state === 2)" there is code that should be executed when the state is "3" or "4". However, due to the condition  of the "if" statement this code is never reached.
C# code:
static async Task<string[]> Test2()
{
    await Task.Delay(100);

    return new string[0];
}

static async void Test1()
{
    try
    {
        IList<string> result;
        try
        {
            result = await Test2();
        }
        finally
        {
            // Do nothing
        }

        Console.WriteLine("This code will be skipped during exception.");

        foreach (var item in result)
        {
        }
    }
    catch (Exception exc)
    {
        ((dynamic)Window.Instance).console.log(exc);
    }
}

public static void Main()
{
    Console.WriteLine("Application started.");

    Test1();
}

Compiled output:
var $Test_App_Application = function() {
};
$Test_App_Application.__typeName = 'Test.App.Application';
$Test_App_Application.$test2 = function() {
	var $state = 0, $tcs = new ss.TaskCompletionSource(), $t1;
	var $sm = function() {
		try {
			$sm1:
			for (;;) {
				switch ($state) {
					case 0: {
						$state = -1;
						$t1 = ss.Task.delay(100);
						$state = 1;
						$t1.continueWith($sm);
						return;
					}
					case 1: {
						$state = -1;
						$t1.getAwaitedResult();
						$tcs.setResult([]);
						return;
					}
					default: {
						break $sm1;
					}
				}
			}
		}
		catch ($t2) {
			$tcs.setException(ss.Exception.wrap($t2));
		}
	};
	$sm();
	return $tcs.task;
};
$Test_App_Application.$test1 = function() {
	var $state = 0, result, $t1, $t2, item, exc;
	var $sm = function() {
		var $doFinally = true;
		$sm1:
		for (;;) {
			switch ($state) {
				case 0:
				case 1:
				case 2:
				case 3:
				case 4: {
					if ($state === 0) {
						$state = 1;
					}
					try {
						$sm2:
						for (;;) {
							switch ($state) {
								case 1: {
									$state = -1;
									$state = 2;
									continue $sm2;
								}
								case 2:
								case 3:
								case 4: {
									if ($state === 2) {
										if ($state === 2) {
											$state = 3;
										}
										try {
											$sm3:
											for (;;) {
												switch ($state) {
													case 3: {
														$state = -1;
														$t1 = $Test_App_Application.$test2();
														$state = 4;
														$t1.continueWith($sm);
														$doFinally = false;
														return;
													}
													case 4: {
														$state = -1;
														result = $t1.getAwaitedResult();
														$state = -1;
														break $sm3;
													}
													default: {
														break $sm3;
													}
												}
											}
										}
										finally {
											if ($doFinally) {
												// Do nothing
											}
										}
										console.log('This code will be skipped during exception.');
										$t2 = ss.getEnumerator(result);
									}
									try {
										while ($t2.moveNext()) {
											item = $t2.current();
										}
									}
									finally {
										$t2.dispose();
									}
									$state = -1;
									break $sm2;
								}
								default: {
									break $sm2;
								}
							}
						}
					}
					catch ($t3) {
						exc = ss.Exception.wrap($t3);
						window.window.console.log(exc);
					}
					$state = -1;
					break $sm1;
				}
				default: {
					break $sm1;
				}
			}
		}
	};
	$sm();
};
$Test_App_Application.main = function() {
	console.log('Application started.');
	$Test_App_Application.$test1();
};

If
IList<string> result;

in the above C# code is replaced with
string[] result;

the code executes correctly. The compiled code of the "Test1" method is the following:
$Test_App_Application.$test1 = function() {
	var $state = 0, result, $t1, $t2, item, exc;
	var $sm = function() {
		var $doFinally = true;
		$sm1:
		for (;;) {
			switch ($state) {
				case 0:
				case 1:
				case 2:
				case 3:
				case 4: {
					if ($state === 0) {
						$state = 1;
					}
					try {
						$sm2:
						for (;;) {
							switch ($state) {
								case 1: {
									$state = -1;
									$state = 2;
									continue $sm2;
								}
								case 2:
								case 3:
								case 4: {
									if ($state === 2) {
										$state = 3;
									}
									try {
										$sm3:
										for (;;) {
											switch ($state) {
												case 3: {
													$state = -1;
													$t1 = $Test_App_Application.$test2();
													$state = 4;
													$t1.continueWith($sm);
													$doFinally = false;
													return;
												}
												case 4: {
													$state = -1;
													result = $t1.getAwaitedResult();
													$state = -1;
													break $sm3;
												}
												default: {
													break $sm3;
												}
											}
										}
									}
									finally {
										if ($doFinally) {
											// Do nothing
										}
									}
									console.log('This code will be skipped during exception.');
									for ($t2 = 0; $t2 < result.length; $t2++) {
										item = result[$t2];
									}
									$state = -1;
									break $sm2;
								}
								default: {
									break $sm2;
								}
							}
						}
					}
					catch ($t3) {
						exc = ss.Exception.wrap($t3);
						window.window.console.log(exc);
					}
					$state = -1;
					break $sm1;
				}
				default: {
					break $sm1;
				}
			}
		}
	};
	$sm();
};

After a bit more research it seems that the issue is the enumeration itself. The code below results in the same error even though the "IList" variable is declared immediately above the "foreach" statement.
All code between "await" and "foreach" is excluded from the execution flow.
public static class Application
{
    static async Task Test2()
    {
        await Task.Delay(100);
    }

    static async void Test1()
    {
        try
        {
            try
            {
                await Test2();
            }
            finally
            {
                // Do nothing
            }

            Console.WriteLine("This code will be skipped during exception.");

            IList<string> list = new List<string>();

            foreach (var item in list)
            {
            }
        }
        catch (Exception exc)
        {
            ((dynamic)Window.Instance).console.log(exc);
        }
    }

    public static void Main()
    {
        Console.WriteLine("Application started.");

        Test1();
    }
}

One obvious workaround is to replace "foreach" with a "for" which works correctly.


UNKNOWN - unable to parse prometheus response | query_result=null

I'm trying to perform some check to prometheus "node_exporter"
I'm trying query that works fine  - in performed  from GRAFANA, but If I run within the script - do not work.
For example:
FROM GRAFANA:
rate(node_network_receive_bytes_total{device=eth0,instance="damian-sr,job="prometheus"}[1m]
give me results.
THIS command from ICINGA server:
./check_prometheus_metric.sh '-H' '<IP_ADDRESS>:9090' '-w' '1:1024' '-c' '1:1024' '-n' 'network_receive_bytes' '-q' 'rate(node_network_receive_bytes_total{device="eth0",instance="damian-sr:9100"}[1m])'
give me this results:
network_receive_bytes is null
UNKNOWN - unable to parse prometheus response
Where I'm wrong?

yes,

I need to remove "" from the service check. For example query from this:
"node_load1{instance="$prom_instance_name$:$prom_instance_port$"}"
to this:
"node_load1{instance="$prom_instance_name$:$prom_instance_port$"}"
I have to put the "http:\<IP_ADDRESS>:9090" instead of "<IP_ADDRESS>:9090"

If I can suggest I think (feature) - Can be useful to introduce another VAR for Prometheus JOB into the parameters.


Request to add support for curios

Just wondering if you can add support for curios (like baubles) so when the wireless crafting grid is in the slot I can use it.

#1919


All England measure breakdown showing zero cost savings

This is despite the fact that the performance summary within the measure box does show cost savings.
e.g. https://openprescribing.net/measure/ace/all-england/

It turns out this is due to the logic we have for generating an overall performance summary from a group of measure charts. The charts might be a single measure over several organisations, or several measures for a single organisation. In this case we have a single measure for a single organisation, so possibly this overall performance summary should just be removed in this case.
The logic in question is here https://github.com/ebmdatalab/openprescribing/blob/0e29d72773644b95012a23d3391845df1f46335d/openprescribing/media/js/src/measure_utils.js#L186-L193


update counter example to use react-redux v0.5.1

Update Counter example with most recent react-redux.
Based on https://github.com/gaearon/react-redux/pull/29.
Remove CounterApp component and instead connect to the Counter component itself.
I was also debating using the example with Object.assign, but didn't want to mess with all the different ways to bring that in. Destructuring off actions seems to work alright.
Let me know what you think.

I missed updating the tests, working on them now.

@gaearon Just saw you updated react-redux to v0.6.0. I'll update this request in the next couple of days.

@gaearon Definitely agree with the "smart" and "dumb" component separation. I think this now appears to match your react-redux readme example. Let me know what you think.

Any specific reason you're putting them in actions instead of just spreading, like before?

It seemed more explicit assigning actions to an actions prop, example.
I also didn't want to require an 'Object.Assign' library, but now I realize we could do this instead:
function mapDispatchToProps(dispatch) {
  return {
    ...bindActionCreators(CounterActions, dispatch)
  }
}

vs
https://github.com/gaearon/react-redux#inject-todos-and-all-todoactioncreators-and-counteractioncreators-directly-as-props
function mapDispatchToProps(dispatch) {
  return bindActionCreators(Object.assign({}, todoActionCreators, counterActionCreators), dispatch);
}

I do like the spread operator for mapDispatchToProps.

This:
function mapDispatchToProps(dispatch) {
  return {
    ...bindActionCreators(CounterActions, dispatch)
  }
}

is exactly equivalent to this:
function mapDispatchToProps(dispatch) {
  return bindActionCreators(CounterActions, dispatch);
}

There is no need for spread here.

Thank you sir, nice catch.
Sounds good. Fixed spreading actions into Counter.

@gaearon Would you like me to resubmit/squash this pull request to a single commit? I realize only CounterApp and package.json should have been updated.

Yes, please!

Did you mean to open a new PR?

I did, https://github.com/gaearon/redux/pull/453. I thought it would be easier/cleaner.

Thanks!


Reduce Spaces ( ) in HTML report generated

This is a rather minor request & may be discarded if its a hassel.
I currently count ~ 1``Kbyte of excessive over-spacing in the generated HTML report.
Can spaces be reduced or every 4-space substituted by a tab?
So for example can output.c - L482... :
  "    font-size: 100%%;"
  "    -ms-text-size-adjust: 100%%;"
  "    -webkit-text-size-adjust: 100%%;"

be adjusted to
  "\tfont-size: 100%%;"
  "\t-ms-text-size-adjust: 100%%;"
  "\t-webkit-text-size-adjust: 100%%;"

?

We could remove all the leading whitespace, or even replace them with \t but will make it difficult to make future changes on the css, I think two spaces should be fine. What do you think?

Perfectly sound! - Not even that huge to be frank -  if you are more comfortable in terms of readability I'd even leave it as is.
I'm a bit over-inclined to hard-tabs in many place - so please feel free to ignore :-D... what about placing a hard-tab character code 0x09 per set of spaces? - putting the tab in the string?

Oh I think tabs themselves in CSS are an issue? I may have not fully comprehened what may be affected.

Just pushed a commit to reduce the leading whitespace. It is now to down two spaces.
Mainly concerned with the readability of the actual output.c when it comes to changing those styles.

Great! - thank you once again :+1: :star2:


Formatted home button to make it look more attractive

Solves issue #76

Hey @vijayyprajapati, I have edited the home button. It matches with the general theme of the website now. Please check and verify.

Hey @vikash485 One other contributor working on this issue and that contributor is doing good. So your PR for this issue will not be considered.

Oh okay no problem


Raspberrymatic Home Assistant Addon upgrade fails

Describe the issue you are experiencing
On Home Assistant OS I wanted to upgrade to the newest released version but its failing with this error:
Can't install ghcr.io/jens-maus/raspberrymatic:<IP_ADDRESS>11113: 500 Server Error for http+docker://localhost/v1.41/images/create?tag=<IP_ADDRESS>11113&fromImage=ghcr.io%2Fjens-maus%2Fraspberrymatic: Internal Server Error ("manifest unknown")
Doesn't look like a local problem.
Describe the behavior you expected
The upgrade runs without an error.
Steps to reproduce the issue
Having the last version installed and trying to install the newest version.
What is the version this bug report is based on?
<IP_ADDRESS>11009
Which base platform are you running?
rpi4 (RaspberryPi4)
Which HomeMatic/homematicIP radio module are you using?
RPI-RF-MOD
Anything in the logs that might be useful for us?
I am using the add-on in Home Assistant OS.

Additional information
No response

You are too early! This build is current (today!) in the making. So please wait until later the day until this release has been published!

hehe, I am just new on home assistant OS with raspberrymatic. was on home assistant venv and pivccu. thought if home assistant OS is showing me an upgrade then there is one and I can update.
no worries, will try it in the evening.
thanks for your work jens, heavily appreciated!


HTML

HTML
User Story
As a bootcamp student
I want the prework notes to be structured on a webpage
so that I can easily find and read information
Acceptance Criteria
GIVEN a prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed

Merged into the main branch with the finalized HTML code.


[BUG] Adding more than one opensearch_roles_mapping per role will cause inconsistency

What is the bug?
Adding more than one opensearch_roles_mapping per role will cause inconsistency between the terraform state and the actual mapping in OpenSearch.
OpenSearch's REST API provides an endpoint for role mapping using the role name as identifier:
 _plugins/_security/api/rolesmapping/<role>.
OpenSearch Documentation
Multiple opensearch_roles_mappings for the same role will result in multiple calls to this REST API, overwriting or deleting existing role mappings.
How can one reproduce the bug?
Add role:

Create multiple opensearch_roles_mappings resources with the same role_name.

Resource "opensearch_roles_mapping" "a" {
  role_name = a_role
   ...
}

resource "opensearch_roles_mapping" "b" {
  role_name = a_role
   ...
}

Terraform will create both resources by calling the same API, thus overwriting the first role_mapping with the second.

Remove one of these roles:
resource "opensearch_roles_mapping" "a" {
  role_name = a_role
   ...
}

Terraform will destroy the resource calling the API and delete the role_mapping completely.

What is the expected behavior?

Terraform should either merge the role_mappings per role before calling the REST endpoint, or prevent multiple mappings from happening in the first place.

What is your host/environment?

Opensearch >= 1.x
Provider version 1.0.0

[Triage] Could you help look into this? Thanks! @prudhvigodithi

other AWS resource providers tend to have two resources for additive versus complete set resources:
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_group_membership
vs
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_user_group_membership
I'd expect opensearch_roles_mapping could remain as is, but add something like:
opensearch_user_roles_mapping
in addition that has the additive behavior.
Though honestly the later is usually all I use.

At the very least I think this behaviour should be documented. Very easy to lock yourself out of a cluster without knowing.


Thank you!!!

This isn't a bug. I just wanted to thank you for creating this repo and writing such a wonderful README. I'm just learning how to hack with hardware, and this was an excellent resource!
God bless.

Thanks for the kind words - glad it is of use + interesting to you.
Feel free to raise new issues for new features (or better still, pull requests)


config section for require_valid_user is only [chttpd]

If this gets merged, please also merge https://github.com/apache/couchdb-documentation/pull/753

Good catch @nickva and thx for the good discussion!


Use props.extraClass on TextField holder

This should be separated out to a common FormField class,
but for now we're only using TextField. Can be solved
properly at the same time as switching form fields to
react-bootstrap.
Required for readonly field value alignment in the "campaigns" edit form.

Wrong branch...


Feature/link styles

Link component combining gatsby and chakra link components with default and hover state styles.
Optional isCallToAction prop for applying specific call to action styles.
Related to #50
default state:

standard link hover - can't see my mouse for some reason:

call to action link hover again no mouse visible:

Looks like the footer link styles have been decided now and I can add another optional prop for this.

@ChrisBrownie55 @mbifulco @racedale Thanks for the comments!
Made some changes and logic is now more consistent with the Button component. 3 variants now to cover standard, cta and footer links.

@subject026 - this looks solid to me! Really appreciate the hard work, and good conversations here. Once @ChrisBrownie55 and @mbifulco give the thumbs up, I'll get this merged!


Charge Verify session token

Hi, I am implementing a project where I need to run 3D Security flow.
I've noticed this function still needs to be implemented; I am happy to help.
However, I noticed your Suite test is using VCR.
The problem is the flow requires actions in the browser to achieve a valid token.
My question would be:

Are you happy mocking the using webmock for the verify endpoint?

References: https://pinpayments.com/developers/api-reference/charges#verify-charge

@cacique-coder I'd be happy with using webmock for the verify endpoint :+1:


New system constructor to add time series to matpower files

There is a use case in SIIPExamples for adding time series via pointers to a system parsed from PowerModels as follows:
    pm_data = PowerSystems.PowerModelsData(case_file_path)
    tsp = InfrastructureSystems.read_time_series_file_metadata(forecasts_pointers_file)
    sys = System(pm_data)
    add_time_series!(sys, tsp)

We should enable a constructor System(pm_data, forecast_pointers_file) to avoid the users calling IS.read_time_series_file_metadata

We already have this function in PowerSystems. It removes the need to call the IS function. Do you still want a System constructor that calls this?
"""
Add time series data from a metadata file or metadata descriptors.

# Arguments
- `sys::System`: system
- `metadata_file::AbstractString`: metadata file for timeseries
  that includes an array of IS.TimeSeriesFileMetadata instances or a vector.
- `resolution::DateTime.Period=nothing`: skip time series that don't match this resolution.
"""
function add_time_series!(sys::System, metadata_file::AbstractString; resolution = nothing)
    return IS.add_time_series_from_file_metadata!(
        sys.data,
        Component,
        metadata_file;
        resolution = resolution,
    )
end


Draft CEP for .conda package format

It would be good to have a CEP that spells out what is in the .conda format as this is missing atm. Especially as we increasingly rely on this and depend on a few tools to manage reading and writing these. Currently the info we have, which could be used for this CEP is...

https://docs.google.com/document/d/1HGKsbg_j69rKXPihhpCb1kNQSE8Iy3yOsUU2x68x8uw
https://docs.conda.io/projects/conda/en/stable/user-guide/concepts/packages.html#conda-file-format
https://www.anaconda.com/blog/understanding-and-improving-condas-performance

Would be good to pull this together to provide a single point of truth.
Independently there are some things that we might want to consider to amend the specification like generating/reusing a Zstandard dictionary for faster and more compact compression/decompression and have per file format dictionaries (text files may benefit a lot from this for example).

It'd be nice to also get this page updated: https://docs.conda.io/projects/conda-build/en/latest/resources/package-spec.html

Would suggest raising a new conda-build doc issue

Forget where this was discussed atm, but recall one point of confusion was whether conda_pkg_format_version should be an int or a str. Would be nice to resolve this as part of this work

We might want to standardize whether info- or pkg- gets extracted first, or enforce that one cannot overwrite the other (that no filename appears in both inner tarballs).

Yea, clobbered files in info/ (i.e. package overwrites conda metadata) should be prevented with an error by conda-build (and alike) before the artifact is generated.

No, but conda-build can infer which files have gotten into info/ and flag those that would result in a clobber error, I think?


Please describe and/or add screenshots

Hi, AppImage developer here, curious to learn more about your project. What does LinuxPA do that AppImages on their own cannot? Would be nice if you could make the description a little more verbose and could add some screenshots. Also, would be nice to discuss your ideas about portable apps and AppImage on http://discourse.appimage.org.

The big problem I have with AppImages is that there is no easy way to organize and launch them (you could always just put them in folders to organize them, but that could get messy  and I, frankly, rather do a whole bunch of work to make my life a bit easier on a day to day basis. I definitely will add some screenshots and put some work into my README

Why don't you just add them to the system's menu?

Part of the reason is because I want it do as little host system modification as possible, but also so that it doesn't get confusing when the app is installed on the host system. Let's say that the host system is a public computer and has chromium installed, if you were to add the program to the system's menu it would be just plain confusing. The reason you wouldn't just use the app installed on the system is that the app on your flash drive is already configured to how you like it.

Also a menu like mine is good for set-ups like mine. I have the PortableApps.com launcher and about 50 windows apps on my flash drive and (especially for games) I'd like my linux apps to be in the same directory as my windows games, but that can be really confusing and there's no super easy way to see if you have a linux version of a certain app (except for your memory).

This is lovely.
I really think this is the direction AppImage should pursuit.
Menu System like PortableApps (Or yours), with integration to the system yet with nothing installed system wide!


numal-reef next_upgrade bounding box crash with Picker Tweaks

Mod source
PyAE Beta
Which mod are you having an issue with?

[ ] pyalienlife
[X] pyalternativeenergy
[ ] pycoalprocessing
[ ] pyfusionenergy
[ ] pyhightech
[ ] pyindustry
[ ] pypetroleumhandling
[ ] pypostprocessing
[ ] pyrawores

Operating system

=Windows 10

What kind of issue is this?

[X] Compatibility
[ ] Locale (names, descriptions, unknown keys)
[ ] Graphical
[ ] Crash
[ ] Progression
[ ] Balance
[ ] Pypostprocessing failure
[ ] Other

What is the problem?
https://mods.factorio.com/mod/PickerTweaks
Picker Tweaks (2.2.7) as of now is incompatible with PyAE (1.0.0).
Steps to reproduce

Enable whole PyAE + Picker Tweaks with Picker Atheneum
Reload

Additional context

Log file
No response

I am able to launch the modpack with alternative energy 1.1.6 and picker tweaks 2.2.7

Marking this as closed


Output cjs module as well as esm

Let's generate both. Let me take over this. I have dived into this cesspool already

PTAL @aboodman


shotgun

Its not critical but the shotgun does not have the ability to change grip meaning it defalts to no grip.

Added Image slot for selection of grips for the shotgun will be in the next update (every version after v0.5.3)


Update cats-core to 2.1.1

Updates org.typelevel:cats-core from 2.0.0 to 2.1.1.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "cats-core" } ]

labels: library-update, semver-minor

Pull Request Test Coverage Report for Build 137

0 of 0   changed or added relevant lines in 0 files are covered.
6 unchanged lines in 3 files lost coverage.
Overall coverage remained the same at 74.837%

Files with Coverage Reduction
New Missed Lines
%

scassandra/src/main/scala/com/evolutiongaming/scassandra/CreateClusterJ.scala
1
50.0%

scassandra/src/main/scala/com/evolutiongaming/scassandra/PoolingConfig.scala
2
88.24%

scassandra/src/main/scala/com/evolutiongaming/scassandra/SocketConfig.scala
3
53.85%

Totals

Change from base Build 136:
0.0%

Covered Lines:
345

Relevant Lines:
461

💛  - Coveralls


docs: formatting comments with double slash

Motivation:
Triple slashes should be for exportable documentation (like functions declarations).
Modifications:
Replaced /// with //.
Result:
Better looking code comments.

@swift-nio-bot test this please


IAP assertion error when using a RXLB

I'm deploying the jit-access app with IaC, leveraging KCC and Config Sync for an automated CI/CD pipeline. I have the app up and running with no issues using a GXLB, but, when I try switching to a RXLB, I get an IAP assertion error when I try to access the app.
After a bit of digging around I found this statement in the network endpoint groups overview documentation which I thought explained why I was getting the error:
“ IAP isn't compatible with Cloud CDN. IAP is not supported with regional external Application Load Balancers and proxy Network Load Balancers (internal and external). ”
However, a Google SME has confirmed that this is incorrect, and the documents will be updated to remove this misinformation.
That being said, I am not sure how to proceed in finding the cause of this error, I'm not finding much information on IAP use with RXLB's.
My first instinct is that this has something to do with the RXLB utilizing a proxy-only subnet, as this is the only clear distinction between the GXLB and the RXLB that I am aware of.
Would you know what is causing this error to be produced? If not, any tips on debugging this? We're eager and excited to get the app deployed for production use in our org and this is the last blocker before we can do so.
Additional context:

App is deployed on Cloud Run w/ serverless NEG
The RXLB is correctly implemented
I've updated my app.yaml file with the backend service ID of my RXLB

Any help on this issue would be greatly appreciated, thank you in advance!

According to this document, IAP is only supported for ALBs in global and classic mode, and I couldn't find anything that would indicate that this isn't correct anymore.
Would it be possible to switch to a classic or global ALB?

I guess this is resolved? Otherwise please reopen the issue.


UnitfulEquivalences

Hi, I just wanted to let you know that I registered UnitfulEquivalences a few days ago. Feel free to close this issue.

That's great!
Thanks for letting me know, and thanks for the great work with the package; it will be of great help for us.
And thanks for "tutoring" me, I have learned a lot.
Cheers!


feat: add KYVE networks

This PR adds both the Kaon (KYVE's official testnet) and KYVE networks.
We had one issue with our Makefile, which is being remedied in https://github.com/KYVENetwork/chain/pull/34, and being released as v1.1.1
Until this is done, you can use john/v1.1-heighliner to verify the images.

The reason this is two separate networks is because each network requires a different build environment (as can be seen in the build-env section).


Refactor PraxisMapperPlugin to allow the log_level to be configurable and a disable flag

Currently, the PraxisMapper stats are always logged and they always log at a hard-coded level. This enhancement suggests to refactor the plugin to allow the app to disable logging for a request and also specify the log_level to use (if enabled) via an option when logging.

Something else to consider is the format of the statistics data. Presently we log a multi-line table, which looks beautiful when output to a terminal, but when piped into syslogs, ends up looking like:
Jan 30 06:40:08 my_app my_app[15]: [f:37653780]: Praxis::Mapper Statistics:#012+------------+-----------+----------------+--------------+-----------+---------------+#012|                             Praxis::Mapper Statistics                              |#012+------------+-----------+----------------+--------------+-----------+---------------+#012| Model      | # Queries | Records Loaded | Interactions | Time(sec) | Models Loaded |#012+------------+-----------+----------------+--------------+-----------+---------------+#012+------------+-----------+----------------+--------------+-----------+---------------+#012| All Models |         0 |              0 |            0 |     0.000 |             0 |#012+------------+-----------+----------------+--------------+-----------+---------------+

While one could recover the original formatting with some Unix shell-fu, I wonder if this is always the format that consumers will want? (e.g. if I were machine-parsing this data to gather statistics, would this format be useful to me?)
On the other hand, if the goal is to collect and parse stats, then allowing arbitrary formats would make that much harder to accomplish.

@tony-spataro-rs yes, a very simple shell-fu, I use it all the time:
$ echo "Jan 30 06:40:08 my_app my_app[15]: [f:37653780]: Praxis::Mapper Statistics:#012+------------+-----------+----------------+--------------+-----------+---------------+#012|                             Praxis::Mapper Statistics                              |#012+------------+-----------+----------------+--------------+-----------+---------------+#012| Model      | # Queries | Records Loaded | Interactions | Time(sec) | Models Loaded |#012+------------+-----------+----------------+--------------+-----------+---------------+#012+------------+-----------+----------------+--------------+-----------+---------------+#012| All Models |         0 |              0 |            0 |     0.000 |             0 |#012+------------+-----------+----------------+--------------+-----------+---------------+" | sed 's/\#012/\
/g'
Jan 30 06:40:08 my_app my_app[15]: [f:37653780]: Praxis::Mapper Statistics:
+------------+-----------+----------------+--------------+-----------+---------------+
|                             Praxis::Mapper Statistics                              |
+------------+-----------+----------------+--------------+-----------+---------------+
| Model      | # Queries | Records Loaded | Interactions | Time(sec) | Models Loaded |
+------------+-----------+----------------+--------------+-----------+---------------+
+------------+-----------+----------------+--------------+-----------+---------------+
| All Models |         0 |              0 |            0 |     0.000 |             0 |
+------------+-----------+----------------+--------------+-----------+---------------+


Newbie question... how to update model to correct wrong prediction ?

Hello,
Being new to MXNet and to Deep Learning, I'm making my "hello world" network (based on the digit recognition http://mxnet.io/tutorials/python/mnist.html).
For now, I achieved : create and train a model (with train and test datas provided in the tutorial), save it, load it back, and make predictions using my datas / images.
Next step (and last ?) step for this overview would be to improve my model by "correcting the wrong predictions"... but I can't find out how to do it...
Is there a way to do it, or the only solution I have would be to had this new images to the train datas (which I got from the tutorial) and go back from start (create model, train, save and load it back to make prediction) ?
Some of the code I used (I'll published the whole thing as soon as I achieved the last part...)

Initial training :

model = mx.model.FeedForward(
        symbol = mlp,       # network structure
        num_epoch = 10,     # number of data passes for training
        learning_rate = 0.1 # learning rate of SGD
)
model.fit(
        X=train_iter,       # training data
        eval_data=val_iter, # validation data
        batch_end_callback = mx.callback.Speedometer(batch_size, 10000) # output progress for each 10000 data batches
)

Save model :

model.save('testmodel', 0)

Load it for predictions :

model = mx.model.FeedForward.load('testmodel', 0)

Prediction :

prob = model.predict(testDataImage.astype(np.float32)/255)[0]

And finally what I'm trying to do (assuming the "testDataImage" I'm using represents a "5" digit)

if prob.argmax()!=5:
      update_model(model, testDataImage, 5)

Thanks a lot for any help and / or links that can help...
Regards,

The whole point of machine learning is that it is the machine that makes the program not you :)
What you want to check is the results of the model on data it has never seen (it is your validation data). Check if mx.callback.log.train.metric (in place of speedometer for instance) gives you this info and review it after each epoch. if its getting better and better, you may need to run more epochs as your model keeps improving, if the training results keep improving and the validation are getting worse then you are overfitting, in that case try decreasing the learning rate. Look on coursera or another mooc site, there are now several courses on neural networks, you may also find courses on youtube (for instance cs231n from stanford is very good but fast paced...).

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!


FR: Select Terminal for command to run in

Would it be possible to add a feature to select what terminal the command should be run in? I have my react-native packager in one terminal and then I have another for other commands. I would like to run packager specific commands in the packager terminal and other commands in another terminal. I would imagine you select the terminal by the index in the terminal dropdown.
Thanks!

Could you share more insight into the workflow? It's possible, but could you guarantee the creation order?
I've added a new parameter into "terminal command" which determines whether the command is indeterminate. If yes, then in the next command execution, it will automatically create another terminal.
The update will be released soon.

Could you share more insight into the workflow? It's possible, but could you guarantee the creation order?
I've added a new parameter into "terminal command" which determines whether the command is indeterminate. If yes, then in the next command execution, it will automatically create another terminal.
The update will be released soon.

I can guarantee the order. If I open 2 terminals and just dedicate all of
my hotkeys to specific terminals, then yes, I can tell terminal one to
start the RN packager and the second terminal to update the libraries.
On Tue, Jan 19, 2021 at 7:13 AM Nicollas R<EMAIL_ADDRESS>wrote:

Hi,
Could you share more insight into the workflow? It's possible, but could
you guarantee the creation order?
I've added a new parameter into "terminal command" which determines
whether the command is indeterminate. If yes, then in the next command
execution, it will automatically create another terminal.
The update will be released soon.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nicollasricas/vscode-streamdeck/issues/21#issuecomment-762803304,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADAZHKXP3Y7NRTEK26BPTC3S2VZPNANCNFSM4WGSL7HQ
.

I can guarantee the order. If I open 2 terminals and just dedicate all of
my hotkeys to specific terminals, then yes, I can tell terminal one to
start the RN packager and the second terminal to update the libraries.
On Tue, Jan 19, 2021 at 7:13 AM Nicollas R<EMAIL_ADDRESS>wrote:

Hi,
Could you share more insight into the workflow? It's possible, but could
you guarantee the creation order?
I've added a new parameter into "terminal command" which determines
whether the command is indeterminate. If yes, then in the next command
execution, it will automatically create another terminal.
The update will be released soon.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nicollasricas/vscode-streamdeck/issues/21#issuecomment-762803304,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADAZHKXP3Y7NRTEK26BPTC3S2VZPNANCNFSM4WGSL7HQ
.

If it is easier, maybe you just make an action to switch to the terminal if that API endpoint is present. You could then just do a multi action and have it switch then run the terminal command

If it is easier, maybe you just make an action to switch to the terminal if that API endpoint is present. You could then just do a multi action and have it switch then run the terminal command


Vector Layers not Drawing during animated panning or mouse-drag events

It appears that features on an ol.layer.Vector are not painted or drawn during panning animations or mouse-drag events (in OpenLayers v.3.1.1)
To see the problem, take a look at: http://jsfiddle.net/StephenM/489aveLr/6/

If you zoom in on the rectangle covering Antarctica and use the mouse to pan around, you will see that the rectangle is only painted after the mouse button is released and the pan-animation has completed, whichever happens last.
I have tested in Internet Explorer and both Chrome and Firefox and the behaviour is the same.

See #2385.

Thanks, ahocevar.
From reading that linked thread and other discussions, this seems to be an issue with the behaviour of the Canvas renderer. Is there some way to work around the problem by rolling back to the SVG renderer or another older renderer, at least until your pull-request is merged and released?
I can't find any way to change renderers in v.3.1.1.

My pull request needs to be updated to address comments and code changes that have been made since. In the meantime, you can use a FeatureOverlay instead of a vector layer. There is no SVG renderer in ol3, and the WebGL renderer does not render polygons yet.

And the WebGL renderer behaves the same: the batch is not recreated while interacting or animating.

@ahocevar do you think we can close this?


Three IDPs with question mark

@jaxoncreed @Mitzi-Laszlo @melvincarvalho

https://solidtest.space/ is no longer a Solid Test Server obviously
https://solid.blockcasting.io/ the Server is down as on 2020-05-11
https://pod.celestialtech.ca/ the Server' s https is not working. The SSL-Certificate expired on 2020-01-04

I' d like to have these 3 cleared, before I make a Pull for https://dev.inrupt.net/ and https://solidweb.org/

made the Pull


Bring back TypeGraphQL

Most of the changes are cleanup and myself getting up to speed with the project and trying out the tools and libraries on Location data.

I am thinking that I should conclude my work on bringing back TypeGraphQL and complete the rest of points inside the ticket with a new PR, to prevent this one from growing too much.
This mainly means adding authentication to requests, but that will also require adding some more types and resolvers.


Add support for Azure

Features

Deployment of Azure functions with the Serverless framework
Modify benchmarking code if necessary to retrieve endpoints of Azure functions, run experiments and send bursts

Closed as this has been resolved by #293.


UI Suggestion + one question to ask

GIve option to to close this side menu for better clear view of the message or make this line which i highlighted bigger and draggable when been hovered over so that people can expand according to their own preference (Both options can give better user experience  in my opinion)
Now i have one question which is - where is signup button because i could only see login option only

Hi @Greatz08, thanks for your feedback. I'll try shadcn's new sidebar component later.
This UI is currently a "playground for admin" rather than a "client". Sign in button was designed for admin for configure the app.
We use this service as a backend for product official site widgets (e.g. the "ask tidb.ai" button on header of https://docs.pingcap.com)

Hi @Greatz08, tidb.ai use the new sidebar now.


Test wrangling vs v3.0.x

🚀 Pull Request
Description

Replacement for #4192, targeting the v3.0.x branch.
This PR gets our tests running consistently under pytest and nose.  We had some __init__.py files missing so some tests have not been running under nose/setuptools/nox.  Once reinstated, three of the tests for PartialDateTime failed, so this PR also includes changes to address that.  See inline comments for explanations of individual changes.
I have verified that pointing pytest at this new branch produces 5216 passess and 22 skips.  python setup.py test also finds 5148 tests, but some are falling over with memory allocation errors 😕.  So let's see how the CI fairs...

Consult Iris pull request check list

This is really awesome work, long overdue, and I hope means we can get serious about migrating to PyTest.
Praise @bjlittle @rcomer 💐 🍻


docs: update theme to docsy-jekyll

This updates the Meshery docs theme to https://github.com/vsoch/docsy-jekyll with a few minor customizations. The theme revision is 5195b51f515fe73452f8ab61474928cc8a0b1f48. The
customizations have been marked with meshery-custom-begin and meshery-custom-end comments.
/cc @leecalcote

Hello! 😀


Def Property Generation

I'd like to be able to use the Generate menu to generate properties for a Def that hasn't already been declared in that def

This has been completed and will be released with 2023.4


B-19178-INT excess weight bugfix

Agility ticket
INT PR
Original MAIN PR (never merged)
Original INT PR
Summary
Excess weight was only being checked in mto_shipment_updater.go, when an approved shipment received an estimated weight. We added a CheckExcessWeight to ApproveShipment in shipment_approver.go to to ensure it is also called here when a shipment with an estimated weight is approved.
The bug existed because the front end also checks if the excess weight should be flagged, and displays the flag if so, but is unable to properly update excess_weight_acknowledged_at if excess_weight_qualified_at is null.
Please check that changes from the Original INT PR were properly reverted (ignoring changes to the CreateCustomerForm.test.jsx file as that has since been modified by a dev)
How to test
The expected behavior is, if estimated weight is within 90% of the customer's weight allowance, the warning/flag appears on the Move Task Order page. Once the user interacts with it in any fashion (clicking x on the row, clicking on "Review Billable Weight"), they are acknowledging the risk, and should no longer be warned.

On a move with no approved shipments, as PRIME, enter an estimated weight below 90% of a weight allowance for a NTS/NTSR/HHG shipment
As a TOO, confirm:

If the shipment was already approved, confirm that the Excess Weight warning does not appear.
If the shipment was not already approved, approve it and confirm that the Excess Weight warning does not appear.

As PRIME, create a NTS/NTSR/HHG shipment. Input an estimated weight that would put the total non-PPM estimated weight of a move over 90% of the weight weight allowance
As a TOO confirm that the excess weight flag does NOT appear on the move task order page
As a TOO, approve the shipment you created in step 3
As a TOO, confirm the excess weight warning DOES appear, and that interacting in any way acknowledges it and it no longer appears on refresh

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

  Generated by :no_entry_sign: dangerJS against 54c9be8aa86677cf80212f189b5ddb8295bd0ac5


List icons have too much padding

Unordered list and order list icons also inherit the following properties:
.ui.list .list, ol.ui.list ol, ul.ui.list ul {
clear: both;
margin: 0;
padding: .75em 0 .25em .5em; <--------
}
Causing ordered list icon to have too much padding

You can always set custom padding if you want. 😉
Also, join the discussion on gitter or SUI Forums
PS. Please provide a test case as per our contributing guidelines; you can fork this JSFiddle by @Banandrew to make your case.


Adding Missing Intranet Setting for Seamless SSO case

https://aadg.windows.net.nsatc.net

@sdabbiru : Thanks for your contribution! The author, @MarkusVi, has been notified to review your proposed change.

#sign-off


CB-22060 Environment Service changes to persist and fetch Azure AZ information

Environment Service changes to persist and fetch Azure AZ information
See detailed description in the commit message.

retest this please

retest this please

retest this please