Add support for Custom Login Failed Message

Internal reference: SURE-4232
Add a new banner 'Login Failed Banner'.
When set, this should be shown on the login screen:

On 2.6.5-rc2

Navigate to Global settings > Brands > Scroll to bottom

Select the checkbox to show the message and type in the message in the text box below

Logout or open an incognito tag. Type in wrong user/password

Text is displayed along with the error message

Un check the checkbox > apply

Refresh the login page and try again.

The text is not displayed

check the checkbox and remove the message (empty) > apply

Refresh the login page and try again.

No text is displayed when incorrect creds are entered. Only the general error - Invalid username or password is displayed.

But as mentioned here, the section is not called Login Failed Banner

Reopening the issue


Use this library

Hi,
I'm a beginner in java and I would like to use this library but I don't understand how to use it. The example is half explained, for example I don't understand what are the parent and child layouts.
If you have just a working example it would help me a lot!
Thanks

Hi @AmrDeveloper,
Thanks for your answer, unfortunately it doesn't work any better.
The editor says "add String to first parameter to the constructor".
I think I defined some things wrong but I followed the example.

It weird @polo2169,
Make sure you used this import
import com.amrdeveloper.treeview.TreeNode;
Can you please write the error message in this line
treeViewAdapter.updateTreeNodes(roots);

you are right I had the wrong import :/
I don't have any more errors! However, nothing is displayed during my test...
I don't understand what I have to put in the layout R.layout.list_item_one
I'm sorry I don't understand ahah
`package fr.pdego.treeview2;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import com.amrdeveloper.treeview.TreeNode;
import com.amrdeveloper.treeview.TreeViewAdapter;
import com.amrdeveloper.treeview.TreeViewHolderFactory;
import java.util.ArrayList;
import java.util.List;
public class MainActivity extends AppCompatActivity {
RecyclerView recyclerView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
recyclerView=findViewById(R.id.recycler_view);
TreeViewHolderFactory factory = (v, layout) -> {
if (layout == R.layout.directory) return new CustomViewHolderOne(v);
else if (layout == R.layout.file) return new CustomViewHolderTwo(v);
else return new CustomViewHolderThree(v);
};
TreeViewAdapter treeViewAdapter = new TreeViewAdapter(factory);
recyclerView.setAdapter(treeViewAdapter);
TreeNode root1 = new TreeNode("Root1", R.layout.directory);
root1.addChild(new TreeNode("Child1", R.layout.file));
root1.addChild(new TreeNode("Child2", R.layout.file));
    List<TreeNode> roots = new ArrayList<>();
    roots.add(root1);

    treeViewAdapter.updateTreeNodes(roots);
}

}My view Holderpackage fr.pdego.treeview2;
import android.view.View;
import androidx.annotation.NonNull;
import com.amrdeveloper.treeview.TreeNode;
import com.amrdeveloper.treeview.TreeViewHolder;
public class CustomViewHolderOne extends TreeViewHolder {
public CustomViewHolderOne(@NonNull View itemView) {
    super(itemView);
}

@Override
public void bindTreeNode(TreeNode node) {
    super.bindTreeNode(node);
    // Here you can bind your node and check if it selected or not
}

}My layouts

<ImageView
    android:id="@+id/image"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/ic_folder" />

<TextView
    android:id="@+id/text"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="10dp"
    android:layout_toRightOf="@id/image"
    android:text="List Item"
<EMAIL_ADDRESS>    android:textStyle="bold" />

`
Thank you for all your help!

First of all roots should add to the roots list so if you want to show Directories 1 and 2 add them to the list
roots.add(directory1);
roots.add(directory2);

Then in your view holder, you should update the text view to show the value for example, think of it as an adapter
package fr.pdego.treeview2;

import android.view.View;

import androidx.annotation.NonNull;

import com.amrdeveloper.treeview.TreeNode;
import com.amrdeveloper.treeview.TreeViewHolder;

public class CustomViewHolderOne extends TreeViewHolder {

    private TextView text;

    public CustomViewHolderOne(@NonNull View itemView) {
        super(itemView);
        text = itemView.findViewById(R.id.text);
    }

    @Override
    public void bindTreeNode(TreeNode node) {
        super.bindTreeNode(node);
        text.setText(node.getValue().toString());
    }
}

I did it! Thank you so much for your help and for this really nice project!


update BlackInfo

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/14401/
Test PASSed.


Bump Docker Buildx from 0.7.1 to 0.8.2

Context
Docker buildx v0.8.0 has been released and includes a number of nice features. In particular, I'm excited about the new remote cache support. It would be awesome to take advantage of this in our Buildkite pipelines!
Change
Upgrade buildx from 0.7.1 to 0.8.2.
Considerations
See the buildx release notes for details of the changes:

v0.8.0 release notes
v0.8.1 release notes
v0.8.2 release notes

Approved @orien! thanks for your contribution :)
I'll merge this when CI's finished


Adds Support for Lutron Caseta devices.

Description:
Adds Support for Lutron Caseta devices.  The Caseta devices behave differently that the already supported Lutron RadioRA 2 system.
Related issue (if applicable): fixes # NA
**Pull request in home-assistant.github.io with documentation (if applicable):
https://github.com/home-assistant/home-assistant.github.io/pull/2262
Example entry for configuration.yaml (if applicable):
lutron_caseta:
  host: <best_to_use_a_static _ip_for_the_smartbridge>
  user: <smartbridge_username defaults to lutron>
  password: <smartbridge_password defaults to integration>

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

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

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

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

Hi @gurumitts,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

@pvizeli The Caseta Pro Hub has support for both dimmers (light) and switches.I believe there's also support for shades and possibly feeding keypresses on Caseta remotes into HASS. IMO it would be best to leave this as a component

Okay. We wait and I look to this PR after Weekend and wie can merge it as compontent with light/Switch platform :+1: thanks for you work

Do not Merge - We need to find a solution for the paramiko requirement.  If I add to the REQUIREMENTS in the component everything works.  If not the component fail with ImportError: No module named 'paramiko'  Please let me know if I can add it back in.

I believe that I have taken care of the issues identified.  Please let me know if there is anything else.

Not exactly sure what is going on with Coveralls.io.  I doubt its anything I committed.

@balloob @pvizeli This should be good on all the previous comments.  Please let me know if there is anything else.  Also there appears to be an issues with coveralls not returning status back to github.

Thanks... Will test it out shortly and let you know

Good work. If you find a bug, make an new PR. Thanks

No issues.  Works as expected.  Thank you!!


Test with vue build

Do you want the ability to test app with vue build? I mean unit tests.
Maybe we can expose the API for retrieving webpack config:
const getConfig = require('vue-cli/lib/get-config')

const webpackConfig = getConfig()

// work with karma

And one step further, add a --test option? wrap karma in a module like vue-cli-test:
cd vue-project

yarn add vue-cli vue-cli-test --dev
yarn vue build Counter.vue --test

What about --resolve xxx and let it require $cwd/node-modules/vue-cli-xxx:
// ./node_modules/vue-cli-eslint/index.js
// vue build Counter --resolve eslint
module.exports = {
  prevent: false, // prevent vue-cli from running webpack
  action(webpackConfig, options) {
    if (options.production) webpackConfig.modules.rules.push(eslintLoader)
    return webpackConfig
  }
}


Fix Understanding prettierx section (quick fix)

fix typo (missing letter)
add quick blurb

I am not sure if it even makes sense to keep the section there or not.

@brodybits thanks.
This section will also explain why there are conflicts with eslint rules.
Empty sections are there to remember that I have to write them, at the moment I have not had time for it.


Add Apache Meecrowave

Would be great to compare both with meecrowave

That's not in my scope right now. But feel free to create a pull-request with a "ready to test" meecrowave demo-project and i will merge it to the master.


[Feature] Autocomplete Dropdown

Based on https://github.com/alphagov/accessible-autocomplete/tree/main
Separate section at the top for "Preferred" options, rest of the list A-Z sort
When you start typing the preferred items disappears and the list becomes solely A-Z

Screenshots to follow

Default

User clicks dropdown, curser active:

Hover state - most selected

User starts to type, most selected ports become inactive

Hover state general list view

No matches found

No matches found, user clicks outside of field, returns to default with validation

Phase two of the autocomplete dropdown to include 'preferred items' at top of list
Default

User clicks in drop down, focus state is active, 1 -3 preferred items at the top of list, rest of list to be alphabetical. When list exceeds 5 items list to be scrollable.

Hover state items of preferred items

Discussed as a nice to have at present, placing in items until we have a stronger user need.


failure with a pinned opam package

I try to use opam monorepo 0.3.3 with the following pins:
gmp.6.2.1-2  (uninstalled)  git  git+file:///usr/home/hannes/devel/mirage/ocaml-gmp#HEAD
And receive a failure during opam monorepo lock:
gmake[2]: Leaving directory '/usr/home/hannes/devel/mirage/mirage-skeleton/applications/static_website_tls'
 ↳ generate lockfile for monorepo dependencies
==> Using 1 locally scanned package as the target.
==> Found 130 opam dependencies for the target package.
==> Querying opam database for their metadata and Dune compatibility.
==> Calculating exact pins for each of them.
opam-monorepo: [ERROR] No HEAD ref for file:///usr/home/hannes/devel/mirage/ocaml-gmp

It would be pretty nice to support pins to git repositories the same as opam does, or are there any blockers?

Hmm, that's strange. It should be able to find a HEAD ref, given that you specifically pinned it to HEAD, so at least that error message is pretty much incorrect.

Can you help me by passing ways to reproduce? I checked out mirage-skeleton and added ocaml-gmp from the Mirage org as a pin but I don't know how to get it to do the locking. When i make lock it fails with a lot of error messages.

so. in a clean opam switch

git clone https://github.com/mirage/ocaml-gmp.git
opam pin add -n gmp pwd/ocaml-gmp#HEAD (to pin gmp)
opam instal mirage (should be 4.2+)
git clone https://github.com/mirage/mirage-skeleton.git
cd mirage-skeleton/applications/static_website_tls
mirage configure -t hvt
make depend (which calls opam monorepo lock)

If you run into issues ("it fails with a log of error messages"), please report the step and the failure you encounter.

Any chance you could post your "lot of error messages", or expose where you're stuck? I suspect opam-monorepo fails if you opam pin add <whatever-dep> `pwd`#HEAD -- which is my goto-solution for local pins that are git-controlled (opam takes the HEAD -- i.e. if I add commits, or switch branches, an opam reinstall will do the right thing).

Ah I guess my problem was that I tried running make lock in the toplevel:
/bin/sh: line 1: cd: tutorial/noop/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: tutorial/noop-functor/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: tutorial/hello/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: tutorial/hello-key/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: tutorial/lwt/echo_server/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: tutorial/lwt/heads1/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: tutorial/lwt/heads2/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: tutorial/lwt/timeout1/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: tutorial/lwt/timeout2/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: tutorial/lwt/echo_server/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: tutorial/app_info/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: device-usage/clock/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: device-usage/conduit_server/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: device-usage/console/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: device-usage/http-fetch/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: device-usage/kv_ro/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: device-usage/network/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: device-usage/ping6/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: device-usage/prng/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: applications/docteur/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: applications/dhcp/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: applications/git/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: applications/dns/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: applications/crypto/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: applications/static_website_tls/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
/bin/sh: line 1: cd: device-usage/block/mirage: No such file or directory
ls: cannot access '*.opam': No such file or directory
[opam-overlays] no changes from git+https://github.com/dune-universe/opam-overlays.git
[NOTE] Repository opam-overlays has been added to the selections of switch /home/me/mirage-skeleton only.
       Run `opam repository add opam-overlays --all-switches|--set-default' to use it in all existing switches, or in newly created switches, respectively.

[mirage-opam-overlays] no changes from git+https://github.com/dune-universe/mirage-opam-overlays.git
[NOTE] Repository mirage-opam-overlays has been added to the selections of switch /home/me/mirage-skeleton only.
       Run `opam repository add mirage-opam-overlays --all-switches|--set-default' to use it in all existing switches, or in newly created switches, respectively.

env OPAMVAR_monorepo="opam-monorepo" opam monorepo lock --recurse-opam  --build-only --ocaml-version 4.14.0 -l ./mirage.opam.locked
opam-monorepo: [ERROR] Cannot find any packages to vendor.
Either create some *.opam files in the local repository, or specify them manually via 'opam monorepo lock <packages>'.
make: *** [Makefile:67: lock] Error 1

I'll try your steps.

Ok, I can reproduce it, will investigate.

Created #332 to fix the problem. I am not entirely sure why the code is like that, but let's see what the code review will say.

Even with the latest release, 0.3.4, this issue persists. Are there any plans to fix and release this issue? It is pretty annoying.

@hannesm It's been fixed in #332 so the current main should work, I'll cut a release soon.

@hannesm I've created a 0.3.5 release which includes the fix: https://github.com/ocaml/opam-repository/pull/22765


Add WiseBanyan

You right, changed

Cool, already removed

Nice. Great work :smiley:

Reviewed 1 of 2 files at r1, 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful.

Comments from the review on Reviewable.io

Reviewed 1 of 2 files at r1, 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful.

Comments from the review on Reviewable.io

Was just about to add this. Thanks for beating me to it!

Just wondering, what's the deploy timeline?

@januszhou https://github.com/jdavis/twofactorauth/wiki/FAQ_Merge


Documentation about twitch api in 'Use the Twitchtv JSON API' project is leading to 404 page

Challenge Name
Use the Twitchtv JSON API
https://www.freecodecamp.com/challenges/use-the-twitchtv-json-api
Issue Description
Link from
8.Hint: The relevant documentation about this API call is here: https://github.com/justintv/Twitch-API/blob/master/v3_resources/streams.md#get-streamschannel.
is leading to 404 page

Twitch's Github docs have been deprecated: https://github.com/justintv/Twitch-API
Link should be changed to: https://dev.twitch.tv/docs/v5/reference/streams/#get-stream-by-user

I'd like to take this one if no one else has yet.

It happened to me, too.

I can confirm the link (step 8, Hint) is still broken.

Yes, we have recently fixed the same for the beta site. I'll make a change for an urgent fix to production.


Can't browse web UI

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
Can't browse web UI http://<IP_ADDRESS>:4000/
Docker Logs show teslamate_teslamate_1 exited with code 134
This is running on a Raspberry Pi 4 Model B Rev 1.2
Expected Behavior
Web UI should render into browser
Steps To Reproduce
Install and launch docker images as per https://docs.teslamate.org/docs/installation/docker
Relevant log output
teslamate_1  | waiting for postgres at database:5432
teslamate_1  | sleep: cannot read realtime clock: Operation not permitted
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_1  | clock_gettime(CLOCK_MONOTONIC, _) failed: Operation not permitted (1)
teslamate_1  | Aborted (core dumped)
teslamate_teslamate_1 exited with code 134

Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
latest docker image

See #2302. What OS are you running?

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
On Wed, 21 Dec 2022 at 18:31, cwanja @.***> wrote:

See #2302 https://github.com/adriankumpf/teslamate/issues/2302. What OS
are you running?
—
Reply to this email directly, view it on GitHub
https://github.com/adriankumpf/teslamate/issues/3029#issuecomment-1361842252,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAE4SHT6KOU3PTYDHZ4JZCDWONEH7ANCNFSM6AAAAAATF5GMMU
.
You are receiving this because you authored the thread.Message ID:
@.***>

You will need to upgrade to Bullseye. Or there's a comment with a potential library upgrade without upgrading the OS. There's links in that thread to upgrade guides and other issues as well.

Thanks, I'll check it out.
Keith Stephens
Email: @.***
Tel: +44 (0)7555 726575
On Wed, 21 Dec 2022 at 18:38, cwanja @.***> wrote:

You will need to upgrade to Bullseye. Or there's a comment with a
potential library upgrade without upgrading the OS. There's links in that
thread to upgrade guides and other issues as well.
—
Reply to this email directly, view it on GitHub
https://github.com/adriankumpf/teslamate/issues/3029#issuecomment-1361858701,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAE4SHVLKG6CLHMERR7MOODWONFEDANCNFSM6AAAAAATF5GMMU
.
You are receiving this because you authored the thread.Message ID:
@.***>

Duplicate of #2302


Simplify CI test orchestration

Rather than splitting tests up into all these test suites, just run everything in one go.  Not only is it simpler, it's quicker too (6:30 vs. 13:00 for the non-takes-forever tests on Travis, and ~23 vs. ~53 minutes for Appveyor).
As the cli tests were previously only run for Py3, and at least some of them fail for Py2, I've annotated them with @py3_only.
I've also simplified run-tests.sh, as it's no longer called from CI (maybe it could be removed entirely, as it seems quite scary?  Ditto for run-tests.bat).
I suspect that as the markers (other than install) are no longer used, a lot of them could be removed now.

as a FYI I am seeing about generally speeding up some tests over in #1936

As for markers, how about splitting them into different files? test_pipenv.py is becoming too large and unwieldy for me. I can work on that if this is acceptable.

prolly makes sense.  I am so over tests

@techalchemy - Yeah, I'm confused as to why the CLI tests are only being running for Py3, but that's currently the case on master - the "integration" stage in Travis is not being run as part of the Py2/3 matrix.
So in that sense, I'm not sure this PR makes things any worse?

I've just run the cli tests locally in a Python 2.7.14 Docker container, and these are the results:
tests/test_pipenv.py::TestPipenv::test_pipenv_where FAILED                                                     [  6%]
tests/test_pipenv.py::TestPipenv::test_pipenv_venv FAILED                                                      [ 13%]
tests/test_pipenv.py::TestPipenv::test_pipenv_py FAILED                                                        [ 20%]
tests/test_pipenv.py::TestPipenv::test_pipenv_rm FAILED                                                        [ 26%]
tests/test_pipenv.py::TestPipenv::test_pipenv_graph FAILED                                                     [ 33%]
tests/test_pipenv.py::TestPipenv::test_pipenv_graph_reverse FAILED                                             [ 40%]
tests/test_pipenv.py::TestPipenv::test_pipenv_check FAILED                                                     [ 46%]
tests/test_pipenv.py::TestPipenv::test_venv_envs FAILED                                                        [ 53%]
tests/test_pipenv.py::TestPipenv::test_bare_output FAILED                                                      [ 60%]
tests/test_pipenv.py::TestPipenv::test_help FAILED                                                             [ 66%]
tests/test_pipenv.py::TestPipenv::test_man PASSED                                                              [ 73%]
tests/test_pipenv.py::TestPipenv::test_install_parse_error PASSED                                              [ 80%]
tests/test_pipenv.py::TestPipenv::test_install_without_dev_section FAILED                                      [ 86%]
tests/test_pipenv.py::TestPipenv::test_deploy_works FAILED                                                     [ 93%]
tests/test_pipenv.py::TestPipenv::test_clean_on_empty_venv FAILED                                              [100%]

So it looks like a few of them do pass under Py2.  We could remove the @py3_only from those ones, and then we'd at least have explicit documentation of which ones are broken in Py2?
Could then imagine a separate effort / PR to fix those tests (because I agree it's bizarre that basic CLI functionality is failing tests!).

@uranusjr - FWIW, I strongly agree that test_pipenv.py is way too big and complex.  Let me know if I can help with that.

Further clues regarding CLI tests:

Running with -s, I learn that they fail due to a complaint that ordereddict is not installed.
And indeed, it's not listed in Pipfile.lock.
Running pipenv install doesn't change that.
It's listed as ordereddict; python_version<"3.0" in setup.py.
If I nuke Pipfile.lock and then re-run pipenv install, it does get added to the lockfile, but without a marker.

Sounds like there could be an issue with processing markers?

It shouldn’t be an issue with I took it out of the Pipfile because it gets installed in the package installation. I can’t tell why this is working in other branches but not in yours.
I run the test suite against both versions of python locally regularly. They both regularly pass. See also: appveyor, which runs this suite against python 2 and 3. This isn’t really a valid argument. Testing needs to work. These tests need to run. This is a testing issue. For your case I’m assuming you didn’t run pipenv run pip install -e . because that would pick it up due to pathlib2? Or one of the other dependencies.
As far as the time I think the number we care about is how many actual minutes it takes and how quickly we can isolate failures. There’s a lot of overhead to spinning up parallel environments so you’re cutting some time that way for sure. But using those numbers we are moving from 23 mins to 16 under these tests (but not doing integration tests on python 2).
Also, I should caution you against all the changes to the run tests files— these are necessary for when the tests also build against Kenneth’s CI served and he is highly likely to change them all back to what they were if we make a bunch of changes for no reason.
Markers are used for organization. Removing them for no reason seems kind of silly. We could however try to organize them.
My point is: you seem to be in a hurry to take an axe to things. Don’t. Let’s focus on functionality. If we can stop calling run_tests from Travis, that’s fine, but revert the changes to it and leave the file alone. Same for the appveyor script. These improvements are significant and the work is hugely appreciated, but let’s save the reorganization work for another pr

@techalchemy - TL;DR - It's a good thing you pushed back, you forced me to find the issue here.  The CLI tests now run and pass for Py2.
I hadn’t noticed this line is subtly different to this line, so convinced myself that the CLI tests weren't being run for Py2 on Travis.  They’re actually buried inside this final test suite, not in the "integration" section (so the Py3 equivalents were actually being run twice!)
However: with the parallelism set to auto, there were frequent test failures.  I’ve wound this down to 4; things are still fast, but pass consistently.  This strongly implies there’s hidden coupling between the test cases, but this PR doesn’t change that.

these are necessary for when the tests also build against Kenneth’s CI served[r?]

I guess I'm unfamiliar with the history / current status of this project, so what does this mean in practice?

If we can stop calling run_tests from Travis, that’s fine, but revert the changes to it and leave the file alone

I've reverted run-tests.sh.  (Though it seems redundant to keep unused logic around.)

We could however try to organize them.

Yeah, I think that will come for free with @uranusjr's suggested file-split.

Same for the appveyor script.

I haven't reverted this, given things are now working again.  My belief is the simpler config makes it much easier to see we're running the same tests on Appveyor / Travis / Py2 / Py3.  LMK what you think.

@tsiq-oliverc It should be quite simple to split up the tests with some Pytest help (mainly turning PipenvInstance into a fixture). I want to wait until #1936 is done, however, because they totally conflict each other and I’ll need to redo everything again.

@uranusjr - Yup, makes sense.

Yeah sorry for the typo, I was on mobile this morning. The run_tests.sh script runs against a server in Kenneth's house (and that's why we were piping output to the tap stream for Jenkins). What it means in practice is there is a server that this runs against and you shouldn't change it if we aren't calling it.

Your comment got me thinking, so in #1936 I split out python 2  and python 3 tests in different build stages.  This has some big speedups and hasn't failed on me yet (13 mins actual clock time) -- but comes at the cost of a complicated travis.yml file.  Before we go forward I want to discuss the tradeoffs

I have some other test speedups in that branch which may affect the speed
Looking over the total runtime of this PR it is clearly the better option.  I'd say you can separate out the python 2 and python 3 integration step and I'll include that in a comment

Okay sorry for the comment spam -- I like what you've done here as it definitely simplifies things.  This is my final input on this PR (and I'd make the changes myself but this is 100% happening because of your changes here so I feel you should get credit in the commit log too) --

Axe the build stages completely.
Axe the tap stream output completely.

We gain the speedups of parallelizing but lose the (hidden) cost incurred by overparallelizing because I believe travis is just killing jobs that take too long (plus some of these marks only run 2 tests and the cost of spinning up a machine for them is incredibly high).
Again thank you.  This is way simpler and much faster.
Reference: https://travis-ci.org/techalchemy/pipenv/jobs/363950542 (9 minutes of total real-world runtime)
travis,yml:
sudo: false
dist: trusty
cache: pip
language: python
python:
  - "3.6"
  - "2.7"
env:
  global:
    - PYPI_VENDOR_DIR='./tests/pypi/'
    - GIT_ASK_YESNO='false'
  matrix:
    - TEST_SUITE='not install'
      CACHE_NAME=$TRAVIS_PYTHON_VERSION-TEST
    - TEST_SUITE='install'
      RUN_INTEGRATION_TESTS='1'
      PYTEST_ADDOPTS='--cache-clear'
      CACHE_NAME=$TRAVIS_PYTHON_VERSION-INSTALL

# command to install dependencies
install:
  - "pip install --upgrade pip"
  - "pip install -e . --upgrade --upgrade-strategy=only-if-needed"
  - "pipenv install --deploy --system --dev"

# command to run the dependencies
script:
  - 'if [[ -n "$RUN_INTEGRATION_TESTS" ]]; then rm -fr ~/.cache/pip; fi'
  - 'export PYPI_VENDOR_DIR="$(pwd)/tests/pypi/"'
  - 'pip install -e "$(pwd)" --upgrade'
  - 'pipenv install --dev'
  - 'pipenv run time pytest -v -n 4 --ignore="pipenv/vendor" --ignore="pipenv/patched" -m "$TEST_SUITE" tests'

@techalchemy - Yeah, I was thinking about the cost/benefit of making the install tests unconditional, and it looks like it's a good trade-off!  (In any case, the total runtime is dominated by Appveyor.)
I've pushed a change along the lines of your suggestion, which seems to run fine.  Note that I've removed the cache entirely.  The Travis runtime is dominated by the "install" tests, so I think that adding the cache back into the "non install" tests wouldn't help.  But I don't feel strongly about this.

(I suspect the duplicate install lines aren’t actually necessary but I wasnt too sure)

This is awesome, thanks a bunch. Will review and merge when I get into the office

This looks good, merging! :tada:


Using assistant/thread/run

Describe the feature or improvement you're requesting
I'm trying to use assistant with 4o. Problem is that I cannot get an answer. How to do it?
Here is my code so far:
$open_ai = new OpenAi(self::OPEN_AI_KEY);
        $open_ai->setAssistantsBetaVersion("v2");
        $thread = $open_ai->createThread([
            'messages' => [
                [
                    'role'    => 'user',
                    'content' => 'miasto: tarnowskie Góry, osoby: 2 dorosłe, aktywność: zabytki',
                ],
            ],
        ]);
        $threadResult = json_decode($thread);
        $data = [
            'assistant_id' => self::ASSISTANT_ID,
        ];
        $run = $open_ai->createRun($threadResult->id, $data);
        var_dump($run);

Now what? How to get final anwser?
Additional context
No response

I don't think v2 works with 4o yet.


Bachden/developing

Pull Request Test Coverage Report for Build 564

50 of 132 (37.88%)  changed or added relevant lines in 11 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.04%) to 52.431%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

commons/gridgo-bean/src/main/java/io/gridgo/bean/support/BElementToBArrayTranslator.java
3
4
75.0%

commons/gridgo-bean/src/main/java/io/gridgo/bean/support/BElementToBObjectTranslator.java
3
4
75.0%

commons/gridgo-bean/src/main/java/io/gridgo/bean/support/BElementToBValueTranslator.java
3
4
75.0%

commons/gridgo-pojo/src/main/java/io/gridgo/utils/pojo/PojoMethodSignature.java
3
4
75.0%

commons/gridgo-bean/src/main/java/io/gridgo/bean/BReference.java
0
3
0.0%

commons/gridgo-pojo/src/main/java/io/gridgo/utils/pojo/translator/impl/TimestampToDateTranslator.java
1
4
25.0%

commons/gridgo-utils/src/main/java/io/gridgo/utils/support/Endpoint.java
0
10
0.0%

commons/gridgo-pojo/src/main/java/io/gridgo/utils/pojo/PojoUtils.java
28
45
62.22%

commons/gridgo-utils/src/main/java/io/gridgo/utils/support/EndpointParser.java
0
45
0.0%

Files with Coverage Reduction
New Missed Lines
%

commons/gridgo-bean/src/main/java/io/gridgo/bean/BReference.java
1
13.04%

Totals

Change from base Build 562:
-0.04%

Covered Lines:
3429

Relevant Lines:
6540

💛  - Coveralls


Terminal resize crashes curses on OSX

Seen on El Capitan.

I don't have OS X, but what's the thrown exception?

There is no exception that I can find. The script just ends as if esc or q were pressed.

On Fri, Jan 29, 2016 at 7:24 AM, Brandon Dreager
<EMAIL_ADDRESS>wrote:

There is no exception that I can find. The script just ends as if esc or q were pressed.

Is always reproducible? and How did you know it crash? Exit status?

Is always reproducible?

Always. It's guaranteed to happen if the terminal is resized.

Exit status?

Just checked. Exit code is 0, so I guess it's not a crash. Really strange in that case.

Wish I had OS X to have fun with this bug.

Is always reproducible?

Always. It's guaranteed to happen if the terminal is resized.

Probably in resizing stuff and may be causing something else to
actually trigger the unexpected exit.

Exit status?

Just checked. Exit code is 0, so I guess it's not a crash. Really strange in that case.

It might still is a crash, I remember seeing exceptions are passed
somewhere in the code, if that's the case.

Probably in resizing stuff

It was actually a problem before any of the resize stuff was added, if that's what you mean.
All the way back with 949f77525e1616be55f6cac400557f568529643e
Stopping and restarting the driver on window resize keeps the script from exiting, which is why I think it might be related to using a thread for output.

On Fri, Jan 29, 2016 at 8:21 AM, Brandon Dreager
<EMAIL_ADDRESS>wrote:

It was actually a problem before any of the resize stuff was added, if that's what you mean.
All the way back with 949f775
Stopping and restarting the driver on window resize keeps the script from exiting, which is why I think it might be related to using a thread for output.

I don't know much about threading, but it might be the time to bring
in a big gun, some threading-supported debugger 1 to find out when
and how this happens.
By the way, have you tried to comment out the try block in Driver's
run? I am thinking there must be an exception, no way the process
can exit with 0. Somehow, I am guessing that clock's stdscr has gone
invalid. If we had ridiculously intensive logging for a small clock,
we can see where goes wrong more, but that's just bonkers.

By the way, have you tried to comment out the try block in Driver's run?

That did the trick:
On window resize getch was returning something that keyname couldn't parse.
The fix is embarrassingly simple.
https://mail.python.org/pipermail/python-list/2002-November/123036.html

By the way, have you tried to comment out the try block in Driver's run?

That did the trick:
On window resize getch was returning something that keyname couldn't parse.
The fix is embarrassingly simple.

I regretted asking that, should have let you go for days, scratching
head, pulling hairs till bald, trying to figure out how to use the
debugger for the threads and finally came to determine the same cause.
Just kidding. Glad everything sorted out and we can move on.


Migrate from cloud function calls to http trigger

Cloud function direct calls seem to have a drastically different quota that we sometimes run into when setting the poll parameter <= 5.  We should swap over to HTTP triggers since they are also synchronous.

Typical error:
Quota exceeded for quota group 'TestCall' and limit 'Test function requests per 100 seconds' of service 'cloudfunctions.googleapis.com'

FYI @berggren

I believe this is the interface we are using today: https://cloud.google.com/functions/docs/calling/direct
And I think this is likely what we want to be using instead: https://cloud.google.com/functions/docs/calling/http
Note that we also need to update the cloud functions API version.

It looks like that it's already using http trigger to make cloud function calls. https://github.com/google/turbinia/blob/2afeea47cd6fcad41e92528c347e7d97db6d8655/tools/gcf_init/deploy_gcf.py#L25

@alimez  I think the problem with the interface we're using is the way we're invoking the function, specifically by using this call() method, which this page indicates that it's just for testing:
https://cloud.google.com/functions/docs/reference/rest/v1beta2/projects.locations.functions/call
Here is where that is being invoked:
https://github.com/google/turbinia/blob/53435c6d68cf85ec497437b0faa0dd32beb2c21d/turbinia/lib/google_cloud.py#L300
Here are the rate limits and quotas for the various cloud function related parts, including the call limit we're seeing in the error message above:
https://cloud.google.com/functions/quotas#rate_limits
Looking closer, I don't see any other direct way to call it through the built service API (even though the API is just http/REST).  I didn't see any other obvious python client libraries for this either, but I did a cursory search (google-cloud-functions is something written by a third-party and doesn't look very maintained).  We might need to use the 'requests' library or something similar to build a  request outside of any other library.

There are multiple ways of doing this. A doc was created and shared with the aarontp.

Given that we are migrating away from GCF to an API server I'm going to close this one out.


HTTPS Support

Have you tried to add HTTPS support on the portal?
I tried to add automatic Let's Encrypt cert renew and I almost did it except OIDC couldn't work.
I am sure it's about django routing...

i have my installation behind an haProxy thats working fine

Yes I am sure it's technically possible, but I thought I was really close, so perhaps somebody could give me a little boost

Outline Config: URL = PublicFacingURL:PublicFacingPort
The URL and domain that you are using to host this with the port of the site is what should be filled within the outline config IP Address section. Essentially, if you host this at notes.yourdomain.com via cloudflare, and you’re pointing it back to an NGINX proxy instance, the Outline service and respective child services (Nginx host, OIDC Server, Redis) itself will host on the NginxConfig host, which should be set to <IP_ADDRESS> for external access (meaning going to <IP_ADDRESS>:8888 will hit outline), and is accessible via port 8888, so in Nginx, create a redirect from notes.yourdomain.com to the IP Address of the Outline host on port 8888, ensure 443 and 80 are open in your firewall, and in the configuration, when it is asking for the OutlineConfig URL, ensure that you list both the domain URL and the port utilized (if using HTTP, port 80, if HTTPS, port 443) in the Outline Config, the port is a required element
Like:             notes.yourdomain.com:443
~
How this is setup for me:
Docker Host: <IP_ADDRESS>
Config File:
                OutlineSection ~ URL: notes.mydomain.com:443 PORT: 3000

                NginxSection    ~ URL: <IP_ADDRESS> PORT: 8888

                Leave the Rest Alone

Nginx Proxy Manager:
Add a HTTP Redirection Host to <IP_ADDRESS>:8888 from notes.mydomain.com
               WebSocket Support + Block Common Exploits + Cache
               SSL > Request New SSL Certificate

Firewall(s):
              NAT Forward port 80/443 to Nginx Proxy Manager

              If multiple firewalls / routers / layers to network, push port through to each until host reached

Access:
             For Internal Useage / Testing, <IP_ADDRESS>:8888 will get to the site

             For Public Access / Useage, notes.mydomain.com should get to the site

             For User Management, <IP_ADDRESS>:8888/uc/admin/auth/user/

                            NOTE: USER MUST HAVE LISTED EMAIL ADDRESS OR SIGN-IN WILL FAIL


no transaction found on vtc network

I made a transaction from electrum wallet to ledger nano s, but my transaction has not been confirmed and the vtc network does not see it. I tried to deduce 12.94 vtc with the commission of 0.005vtc. help with this transaction: 24b25f5122b09fa07b5c53a3e7da81682275a3daef5ddba4501fa5687b65dbe4

This is a problem with Ledger, not Vertcoin. You will need to contact them to figure out what went wrong on their end with the transaction.


Add artifact validation for CI builds

Python 3.8 is excluded as the build can't be run from 3.8 but we allow 3.8 as a target Python version.
Build is moved to ubuntu-20.04 for binary compat generation. This caused issues with the rust caching action as it wasn't separating by target os, so we were getting symbos issues with glibc versions.
This adds ~10s to the main build for packaging and uploading artifacts. The secondary (non-required) build for checks is ~20s-120s.
Fixes #950

Closing. We can add this if desired in the future.


Enable trim_doctest_flags in mkdocstrings?

Discussed in https://github.com/mkdocstrings/mkdocstrings/discussions/384

Originally posted by thatlittleboy February 17, 2022
Hi, I'm not sure if this is under the purview of mkdocstrings, but I would like to check if it is possible to get the effect of trim_doctest_flags from the sphinx-doctest ext using mkdocstrings?
Essentially, with python code like this (excuse the function definition not making sense):
def echo(arg1: str = None):
    """Header docstring.

    Example:

        >>> datetime.date.now()   # doctest: +SKIP
        datetime.date(2008, 1, 1)
        >>> foo('x')
        x

    :param arg1: A string.
    :returns: The original string.
    """
    return arg1

Is it possible to achieve such that the # doctest: SKIP is removed from the final HTML output? Thanks.

I would like to propose to add similar functionality to mkdocstrings: removing # doctest: xxx and <BLANKLINE> flags from python codeblocks.
For reference, here is Sphinx' implementation:

https://github.com/sphinx-doc/sphinx/blob/v4.4.0/sphinx/transforms/post_transforms/code.py#L104

From what I can see, there are a couple of things we need to ensure:

apply the post-transformation only for python language blocks
remove the flags via regex when parsing the codeblock source in the docstring
avail this option to the end user via mkdocs.yml, default behaviour should be to remove these flags (as per Sphinx)
add relevant tests to check this behaviour.

Where should the relevant changes be made in mkdocstrings?

Nice write-up :slightly_smiling_face:
The changes should be made here:
https://github.com/mkdocstrings/griffe/blob/81f0333b1691955f6020095051b2cf869f0c2c24/src/griffe/docstrings/google.py#L434
(google parser)
You can indeed probably use a regex to remove doctest comments!
If you feel like it, you can do the same change for the Numpy parser in the same PR (do you want to send a PR?).
You can make it an option, defaulting to True, in the parse function of the same module(s).

Oh, doing the change in Griffe would make it available through the new Python handler only, not the legacy one. If you want it to be available in the legacy handler instead, the change needs to happen in pytkdocs:
https://github.com/mkdocstrings/pytkdocs/blob/master/src/pytkdocs/parsers/docstrings/google.py#L504
If you target the legacy handler, I'd highly appreciate if you could also implement it for the new handler :slightly_smiling_face:

Understood, thanks for pointing me in the right direction! I'll certainly give it a shot this weekend or the next. Will update here if I have any progress.
I'll take a look at both Griffe and the legacy handler; I think as long as the legacy handler is being supported, we should try to align both as far as possible.

This is now implemented in both the legacy and experimental handlers. Closing.


Fixed breaking change updates.

My other PRs have too much work in them, this one is far more focused.
This PR:
Fixes:
boot(mode: StartMode, environment: &Environment)

Was:
boot(mode: StartMode, environment: &str)

Fixes:
fn routes(_ctx: &loco_rs::prelude::AppContext) -> AppRoutes {

Was:
fn routes() -> AppRoutes {

I've put this into its own PR for ease of merging, and verified everything runs properly after this change is applied.

Looks like these changes are made


'yield' was not declared in this scope

I'm receiving the following error : PubSubClient.cpp:225:12: error: 'yield' was not declared in this scope. I'm running Version 2.7.0.

Duplicate of #576 that you've already commented on. Please provide details - on the other issue - of what hardware you are trying to compile against.


WIP Bump python to 3.8

We keep seeing k8s GHA failing with 3.7, let's see what happens with 3.8

seems good :D


fix(orchestrator): temporarily disable plugins/orchestrator-swf-editor-envelope build

Issue:
The build of the the orchestrator-swf-editor-envelope breaks the release pipeline
It'll take time to investigate.
Resolution:
Since we have the build results in orchestrator-backend and since the code there rarely changes if at all, we don't need this build job to be enabled

@jkilzi do you think it's an issue to temporarily disable the build of the workflow editor envelope?

@jkilzi do you think it's an issue to temporarily disable the build of the workflow editor envelope?

No big deal, we can disable it since it is not meant to be published to NPM. Actually, it should be re-built only anything changed in this package.

Failed with:
 $ scripts/postbuild copy
  ENOENT: no such file or directory, stat '/home/runner/work/backstage-plugins/backstage-plugins/plugins/orchestrator-swf-editor-envelope/dist'
  Did you forget to build the project?
  error Command failed with exit code 2.


Display user's workspaces at the top of the dashboard, separate from other workspaces.

Users should see their workspaces right away when they open the application, other workspaces are not so important.
For starters we should display separately the workspaces that the user owns, but we could potentially create a "favorites" feature or similar so that the user may modify the priority list.

Good idea. Given the amount of parties coming into Assembly line in the next weeks we should consider some authorization model for workspaces.

Good point. What about this?

all the workspaces are read-only by default - e.g. users may access workspace details, they can see what R/W vocabularies are in that workspace and ideally they can open also TermIt and ontoGrapher in read-only mode
instead of one workspace owner, we'd have a list of collaborators - e.g. the first "owner" would invite someone else and everyone would have the same rights; alternatively we could restrict destroy actions (like deleting workspace) to owners only, but that may be an overkill.


Add single action to each measurement

Coverage remained the same at 100.0% when pulling d35160ea06760dec38393e5fc8ee68a40399102f on add-single-action into a3f9f9e9079b4027ef226eaa0039f2305645b971 on master.

Coverage remained the same at 100.0% when pulling 8daed5fc984f371d1faeae2b5de87040bc18f1d9 on add-single-action into a3f9f9e9079b4027ef226eaa0039f2305645b971 on master.

Coverage remained the same at 100.0% when pulling 19055c4a790d0025c3b0bb799d236a9000c3a1b3 on add-single-action into a3f9f9e9079b4027ef226eaa0039f2305645b971 on master.

Coverage remained the same at 100.0% when pulling 2280ec0300032833dea00cf8bbfa8646cd2b7b49 on add-single-action into a3f9f9e9079b4027ef226eaa0039f2305645b971 on master.


Reset to Default Settiing.

I would like it to reset to the default setting.
I changed a bunch of setting from the menu bar; now I can only see the clipboard history.
I no longer see preferences when I click maccy icon on the menu bar.
I tried uninstalling and deleting supporting files and reinstalling still no luck.

You can press CMD+, even if Preferences is not visible to open the window.
To fully reset, you can remove the whole Maccy directory by running the following command in Terminal.app:
rm -rf ~/Library/Containers/org.p0deje.Maccy


self-supervised lable construction

Thanks for your work. I want to know how to use self-supervised learning in this code. Do you implement self-supervised leanring through following code?
https://github.com/winycg/HSAKD/blob/741a951d5f3f8dda503cbd10d414446434300945/train_teacher_cifar.py#L201
Howerver, I think it is supervised learning label in above code?

Thank you for your attention of our work. In fact, the labels are self-supervised (4 rotations) augmented labels over the original supervised labels. Assuming the number of the original supervised labels is N {0,1,...,N-1}, the number of self-supervised augmented labels would become 4N {(04+0,04+1,04+2,04+3), (14+0,14+1,14+2,1*4+3), ..., ((N-1)*4+0,(N-1)*4+1,(N-1)*4+2,(N-1)*4+3)}={0,1,...,4N-1}. The "labels " denotes the self-supervised augmented labels with the label space of 4N. Thankd!

Make sense. Cool!


Question regarding coloring ls

Hi,
nice collection of dotfiles, thank you.
What I cannot find is the configuration for grc you show here:

So that users, folders. and the actual permission instead  of the permission group is colorized.

Can you tell me where I can find this conf?
Thanks.

that screenshot is actually exa instead of ls... its listed on readme under recommended software...

that screenshot is actually exa instead of ls... its listed on readme under recommended software...

Thanks!

Thanks!


add a release process doc

Describe the solution you'd like
a release process doc that's similar to https://github.com/open-policy-agent/gatekeeper/blob/master/docs/RELEASE.md for maintainers
should have step by step instructions to create a new release
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:

Eraser version:
Kubernetes version: (use kubectl version):

we documented release process here: https://github.com/eraser-dev/eraser/blob/main/docs/versioned_docs/version-v1.2.x/releasing.md


[Question] make_vec() prevent reset behaviour from happening when enviroment returnes done = True

Question
Hello, I am training a policy using gymnaiusm api with use of gymnasium.make_vec()  set to sync mode but it is not aligned to being a sync mode. When my enviroment returnes done = True then the next step it will restart enviroment that returned that  done = True.
So in this situation is there a way to prevent this behaviour?

Yes, we have merged https://github.com/Farama-Foundation/Gymnasium/pull/1227 that adds support for different autoreset modes and will be released in v1.1


How to filter multiple items with Cockpit rest api

Hi, I want to filter multiple collection items with The Cockpit Js api.
What i have now :
     Cockpit.request('/collections/get/collection-name', { filter: { "id" : [1, 4, 5] } } ).success(function(item){

    	// Stuff

    });

It doesn't work like this so I think i am missing something.

"_id" instead of "id" ?

I was receiving a 404 using this code (with _id). Here's the correct code (for Cockpit 0.13.0, note the $in):
Cockpit.request('/collections/get/collection-name', { filter: { '_id': { $in: [1, 4, 5] } } }).success(function(item) {
    // Stuff
});


Accept a PartitionStrategy for Neptune property graph loading

Is your idea related to a problem? Please describe.
In development, I would like to have logically separate property graphs so I can use a single AWS Neptune cluster for multiple development flows/features/tests. neptune.to_property_graph could have a parameter to support PartitionStrategy.
Describe the solution you'd like
A clear and concise description of what you are expecting.
Updating neptune.to_property_graph to accept and use an instance of PartitionStrategy, cascading it to _set_properties. It would be worth also considering enhancing the execute_gremlin method.
https://github.com/apache/tinkerpop/blob/11502fb5bd0eb6a7e686c9433da3559718954348/gremlin-python/src/main/python/gremlin_python/process/strategies.py#L60
https://github.com/awslabs/aws-data-wrangler/blob/b3c56768e6ba297338217e0b36f30a02c4ca25a9/awswrangler/neptune/neptune.py#L310
**I am willing to contribute to this enhancement 👋 **

Ping @bechbd

@laithalsaadoon Do you have a proposed way that we would want to implement this from the client?  I am not sure I would want to explicitly expose the PartitionStrategy object out to the end user.

@laithalsaadoon Do you have a proposed way that we would want to implement this from the client? I am not sure I would want to explicitly expose the PartitionStrategy object out to the end user.

Not exactly sure how it would be implemented from the client, since it seems the traversal is instantiated later. I'm happy to take a stab at it, but wanted to make sure it was something that was applicable aws wrangler from a vision point-of-view.


Fix compiler warnings related to nullability in Files module

Readiness checklist

[ ] I added/updated unit tests.
[ ] I added/updated integration tests.
[x] I ensured that the PR title is good enough for the changelog.
[x] I labeled the PR.

@MH321Productions I changed the title so it is consistent with the other PRs. In case of a refactoring, the prefix ("Consmumer API"/"Admin UI") isn't important, as they don't show up in the release notes anyway.


cannot support to convert to japan language

hello,
We also want to use the Japanese reading function in our Flutter app, but we found an error.
Is the error related to the Japanese plugin?
https://pub.dev/packages/google_mlkit_text_recognition/versions/0.11.0

@uchida-masanori  what's error  do you get?

@uchida-masanori what's error do you get?

below is the error log.
Looks like the problem in this link to me.　https://github.com/flutter-ml/google_ml_kit_flutter/issues/519
are you also getting the same error?
I/DynamiteModule(21681): Considering local module com.google.mlkit.dynamite.text.japanese:10000 and remote module com.google.mlkit.dynamite.text.japanese:0
I/DynamiteModule(21681): Selected local version of com.google.mlkit.dynamite.text.japanese
E/AndroidRuntime(21681): FATAL EXCEPTION: pool-6-thread-1
E/AndroidRuntime(21681): Process: sample, PID: 21681
E/AndroidRuntime(21681): java.lang.AbstractMethodError: abstract method "java.lang.String com.google.mlkit.vision.text.TextRecognizerOptionsInterface.getConfigLabel()"
E/AndroidRuntime(21681): 	at com.google.mlkit.vision.text.internal.zzc.zzd(com.google.android.gms:play-services-mlkit-text-recognition-common@@19.0.0:2)
E/AndroidRuntime(21681): 	at com.google.mlkit.vision.text.internal.zzc.zzb(com.google.android.gms:play-services-mlkit-text-recognition-common@@19.0.0:9)
E/AndroidRuntime(21681): 	at com.google.mlkit.vision.text.internal.TextRecognizerTaskWithResource.load(com.google.android.gms:play-services-mlkit-text-recognition-common@@19.0.0:1)

did you add this code ?
dependencies {
implementation 'com.google.mlkit:text-recognition-chinese:16.0.0'
implementation 'com.google.mlkit:text-recognition-japanese:16.0.0'
}

@uchida-masanori btw, have you finished for ios yet?

did you add this code ? dependencies { implementation 'com.google.mlkit:text-recognition-chinese:16.0.0' implementation 'com.google.mlkit:text-recognition-japanese:16.0.0' }

I added this line
implementation 'com.google.mlkit:text-recognition-japanese:16.0.0'

btw, have you finished for ios yet?

I will try to build on ios, did you find similar errors on ios?

I don't have any errors, but I can't convert images to Japanese

I don't have any errors, but I can't convert images to Japanese

thank you,  I'll try it

thank you, I'll try it

I read Japanese on ios, so this seems to be an issue that only occurs on android.

ohh, why i cannot, please give me your code ::))

can you detect japan string

@tranquockhanh0506

ohh, why i cannot, please give me your code ::))

I followed the notation on the official page.👍
and this is my case
ios：17.1.1
xcode：15.0.1

@tranquockhanh0506  I am getting the same exception for Korean recognizer.

@njovy  replace with this, work for me!
implementation 'com.google.mlkit:text-recognition-chinese:16.0.0'
implementation 'com.google.mlkit:text-recognition-devanagari:16.0.0'
implementation 'com.google.mlkit:text-recognition-japanese:16.0.0'
implementation 'com.google.mlkit:text-recognition-korean:16.0.0


Move single sub menu beneath column title

I have this menu
menu1 (single sub menu)        menu2 (single sub menu)        menu 3 (megamenu)        menu 4 (megamenu)
My four sub items under menu1 and menu2 is placed all to the left of the screen. Can't it be placed right under the column title?

can you please share your markup?


RCTShadowView API broken in latest version 0.58.6 - iOS only

Environment
React Native Environment Info:
System:
OS: macOS 10.14.3
CPU: (24) x64 Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz
Memory: 43.30 GB / 64.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.0 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.2, macOS 10.13, tvOS 11.2, watchOS 4.2
Android SDK:
API Levels: 16, 21, 23, 24, 26, 27, 28
Build Tools: 23.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.3
System Images: android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64
IDEs:
Android Studio: 3.2 AI-181.55<IP_ADDRESS>56338
Xcode: 9.2/9C40b - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.58.6 => 0.58.6
npmGlobalPackages:
react-native-cli: 2.0.1
Description
I am using the shadow view to locate the absolute coordinates of a component in the screen.
with 0.53.0 everything was fine, I was overriding applyLayoutNode and doing :
- (void)applyLayoutNode:(YGNodeRef)node
      viewsWithNewFrame:(NSMutableSet<RCTShadowView *> *)viewsWithNewFrame
       absolutePosition:(CGPoint)absolutePosition
{
       [_bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
        RCTMyView *view = (RCTMyView*)viewRegistry[self.reactTag];
        if ([view isKindOfClass:[RCTMyView class]]) {
            CGRect rect = CGRectMake(absolutePosition.x+YGNodeLayoutGetLeft(node), absolutePosition.y+YGNodeLayoutGetTop(node), YGNodeLayoutGetWidth(node), YGNodeLayoutGetHeight(node));
            [view updateComponent:rect];
        } else {
            RCTLogError(@"Cannot update button: %@ (tag #%@) is not RCTMyView", view, self.reactTag);
        }
    }];
    [super applyLayoutNode:node viewsWithNewFrame:viewsWithNewFrame
 absolutePosition:absolutePosition];
}

This function was only invoked when the layout requested a change, e.g screen rotation
with the next version, the interface has been broken in iOS only(still the same in android), so my code didn't compile anymore, which is something odd, since it's a public interface and obliged me to change my component code depending on the version. RCTView interface is not broken, otherwise most 3rd party components will not compile anymore.
With 0.55.4, I need to overwrite layoutWithMetrics :
- (void)layoutWithMetrics:(RCTLayoutMetrics)layoutMetrics
            layoutContext:(RCTLayoutContext)layoutContext {

    [_bridge.uiManager addUIBlock:^(__unused RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry) {
        RCTMyView *view = (RCTMyView*)viewRegistry[self.reactTag];
        if ([view isKindOfClass:[RCTMyView class]]) {
            // RN framework always adds 2 subviews to the rootView, the 3 anchored to the origin (0,0).
            // subv2 will be the parent of the view we declare in render()
            // --------------- rootView
            //    --------------- subv1
            //       --------------- subv2
            CGRect rect = layoutMetrics.frame;
            RCTShadowView* v = self.superview;
            while (v) {
                rect.origin.x += v.layoutMetrics.frame.origin.x;
                rect.origin.y += v.layoutMetrics.frame.origin.y;
                v = v.superview;
            }
            [view updateComponent:rect];
        } else {
            RCTLogError(@"Cannot update button: %@ (tag #%@) is not RCTMyView", view, self.reactTag);
        }
    }];

    [super layoutWithMetrics:layoutMetrics layoutContext:layoutContext];
}

This new function has 3 problems:

it is periodically invoked, even if nothing has changed on screen
it is not possible to get the absolute coordinates using the parameters layoutMetrics or layoutContext, without having to loop as I do here. Remember in 0.53.0 I was having the absolute position of the parent node...
is there any plan to break this public interface again in the future? this will not be a viable solution for my client who will need a new release everytime the interface is changed
It would be nice to have a react native core developper having a look at this.

This shadow interface has not been broken anymore until 0.58.6, and its android equivalent has never been broken(LayoutShadowNode)
THE PROBLEM IS STILL VALID IN LATEST RN VERSION. THE DESCRIPTION OF THE ISSUE
CLEARLY SHOWS A REGRESSION IN IOS ONLY, WHILE ANDROID IS OK. PLEASE FORWARD TO AN IOS RN CORE DEVELOPPER TO ADDRESS IT. KINDLY NOT CLOSE THE ISSUE WITHOUT BEEING ADDRESSED.
Reproducible Demo
use latest RN and see the regression.

Thank you for creating this issue. We are currently undergoing a major re-architecture and rewrite of React Native and many APIs are expected to change, see http://blog.nparashuram.com/2019/01/react-natives-new-architecture-glossary.html
At the moment, we cannot promise any particular APIs to stick around and unfortunately we will likely make major changes to things that you are using. However, if they are APIs that a majority of React Native users use, it also means that we at Facebook have to do a big migration and we will provide tools and guides for people to do the same migrations. I don't think it makes a ton of sense to overwrite this method, so in this case it seems like you may need to find a workaround.


Wrong Alignment of sub heading , separating about us and developer and making website logo used to navigate to top

In The website , I detect three bugs  that i can solve

Wrong alignment of sub heading like organisazions, books , talks and conference.
Separating two section is very need in a website like about us and developer.
User always wants that when click he/she redirect to the top or home page.

I believe that i can solve as assign this task under gssoc 2024

hii...plss assign this issue to me
m proficient in html

Hello!
Please assign this issue to me.


Reactive Scoped Services

This sets up the APIs to push the account load from an app's onCreate to be a blocking call when the account information is needed. Ideally, this should minimize ANRs occurring as the app's onCreate can now complete w/o blocking on a disk access.
Let me know if this is reasonably sound and I can go back through and add tests / finish up the AccountStore for the sample app.

looks good overall few questions about modules. I think its good time to add the tests as well. I will continue with my tests tomorrow


Intellisense inside variables

Is your feature request related to a problem? Please describe.
This is far fetched scenario but it would be nice if you have created variable and you have assigned that variable to property on resource to inherit the parameters of that property on the variable.
var subnets = [
  {

  }
]

resource vnet 'Microsoft.Network/virtualNetworks@2023-11-01' = {
  name: 'vnet'
  properties: {
    subnets: subnets
  }
}

Intellisense should show id, name. etc.

//cc @anthony-c-martin
Describe the solution you'd like
A clear and concise description of what you want to happen.

also it should work with lambda functions:

param mySubnets array

var subnets = map(mySubnets, subnet => {

})

resource vnet 'Microsoft.Network/virtualNetworks@2023-11-01' = {
  name: 'vnet'
  properties: {
    subnets: subnets
  }
}

I'm not aware of other programming languages where types will flow back from a variable usage to variable declaration - to me it would be quite surprising to get property name completions in an untyped variable, and unfortunately complex to implement.
We plan to add typing to variables under #9364, which will allow something along the lines of the following (which would support property completions):
var foo <type> = [
]

Given the lack of precedence for this functionality, I'm going to mark this as closed.

ok


Add a C++ wrapper for local credentials

Similar to ALTS, the local credentials are placed in an "experimental" namespace.

****************************************************************

libgrpc.so

     VM SIZE              FILE SIZE
 ++++++++++++++ GROWIN ++++++++++++++
  [ = ]       0 [None]     +16  +0.0%

  [ = ]       0 TOTAL      +16  +0.0%

****************************************************************

libgrpc++.so

     VM SIZE                                                      FILE SIZE
 ++++++++++++++ GROWING                                        ++++++++++++++
  +0.3%    +620 [None]                                         +7.20Ki  +0.1%
      +0.3%    +604 [Unmapped]                                     +7.20Ki  +0.1%
       +14%     +16 [None]                                               0  [ = ]
  +3.1%    +288 src/cpp/client/secure_credentials.cc              +288  +3.1%
      [NEW]    +273 grpc::experimental::LocalCredentials              +273  [NEW]
      +9.9%     +15 [Unmapped]                                         +15  +9.9%
  +3.3%    +176 src/cpp/server/secure_server_credentials.cc       +176  +3.3%
      [NEW]    +167 grpc::experimental::LocalServerCredentials        +167  [NEW]
       +20%      +9 [Unmapped]                                          +9   +20%

  +0.3% +1.06Ki TOTAL                                          +7.65Ki  +0.1%

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 1,976,380      Total (=)      1,976,380

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
10,770,427      Total (<)     10,770,428

 No significant differences in binary sizes

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE              FILE SIZE
 ++++++++++++++ GROWIN ++++++++++++++
  [ = ]       0 [None]     +16  +0.0%

  [ = ]       0 TOTAL      +16  +0.0%

****************************************************************

libgrpc++.so

     VM SIZE                                                      FILE SIZE
 ++++++++++++++ GROWING                                        ++++++++++++++
  +0.3%    +620 [None]                                         +7.20Ki  +0.1%
      +0.3%    +604 [Unmapped]                                     +7.20Ki  +0.1%
       +14%     +16 [None]                                               0  [ = ]
  +3.1%    +288 src/cpp/client/secure_credentials.cc              +288  +3.1%
      [NEW]    +273 grpc::experimental::LocalCredentials              +273  [NEW]
      +9.9%     +15 [Unmapped]                                         +15  +9.9%
  +3.3%    +176 src/cpp/server/secure_server_credentials.cc       +176  +3.3%
      [NEW]    +167 grpc::experimental::LocalServerCredentials        +167  [NEW]
       +20%      +9 [Unmapped]                                          +9   +20%

  +0.3% +1.06Ki TOTAL                                          +7.65Ki  +0.1%

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 1,976,356      Total (=)      1,976,356

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
10,770,410      Total (>)     10,770,403

 No significant differences in binary sizes

[microbenchmarks] No significant performance differences

Friendly ping.
F.Y.I. Istio team needs this C++ wrapper to be able to use local credentials.

****************************************************************

libgrpc.so

     VM SIZE              FILE SIZE
 ++++++++++++++ GROWIN ++++++++++++++
  [ = ]       0 [None]     +16  +0.0%

  [ = ]       0 TOTAL      +16  +0.0%

****************************************************************

libgrpc++.so

     VM SIZE                                                      FILE SIZE
 ++++++++++++++ GROWING                                        ++++++++++++++
  +0.3%    +620 [None]                                         +7.20Ki  +0.1%
      +0.3%    +604 [Unmapped]                                     +7.20Ki  +0.1%
       +14%     +16 [None]                                               0  [ = ]
  +3.1%    +288 src/cpp/client/secure_credentials.cc              +288  +3.1%
      [NEW]    +273 grpc::experimental::LocalCredentials              +273  [NEW]
      +9.9%     +15 [Unmapped]                                         +15  +9.9%
  +3.3%    +176 src/cpp/server/secure_server_credentials.cc       +176  +3.3%
      [NEW]    +167 grpc::experimental::LocalServerCredentials        +167  [NEW]
       +20%      +9 [Unmapped]                                          +9   +20%

  +0.3% +1.06Ki TOTAL                                          +7.65Ki  +0.1%

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 1,976,356      Total (=)      1,976,356

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
10,770,407      Total (<)     10,770,411

 No significant differences in binary sizes

[microbenchmarks] No significant performance differences

MacOs error: #16156


Repo sync for protected CLA branch

The pull request is created from master637411692326481614 to master to fix git push error for protected CLA branch

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


Changes the use of timestamps as long into Kotlin Duration

Fixes a bit of a pet peeve to me: When dealing with Timestamps, on Kotlin we should be using Kotlin Duration instead of using Longs.
My reasoning behind this:

Duration gives annotation to the meaning of a long. No longer do you need to check documentation what the long means (or check if we're using seconds or milliseconds)
The NSTimeInterval is in seconds while Android/JS communicate in milliseconds. This already lead to several bugs that I've solved in this PR. Using duration makes making mistakes less likely
If you want to set some timeout to say 3 hours, you no longer need to do calculations like 3 * 60 * 60 * 1000 as you can just pass 3.hours. This leads to better usage of the library

Durations aren't designed to be used as timestamps, we should probably be using https://kotlinlang.org/api/kotlinx-datetime/kotlinx-datetime/kotlinx.datetime/-instant/

Right, though I guess the ticket is also a bit of a misnomer as most of these are intervals not timestamps, for which duration is the right class.
Firebase.storage.setMaxOperationRetryTimeMillis(10000) -> Firebae.storage.setMaxOperationRetryTime(10.seconds)
to me is the main reason for changing this (well that and is confusion. In the code on master, that 10000 was not divided by 1000 so it would be set to 10000 seconds on iOS)

Agree the timeouts should be Durations

Ok, there was one place where Instant made more sense (in the config module). Moved to it there


Fixes issue #8951 Client Request Body processing

Fixeshttps://github.com/apache/trafficserver/issues/8951.
It's okay call to do_drain_request_body if t_state.next_action is SM_ACTION_INTERNAL_CACHE_NOOP.
Calling do_drain_request_body to process unwanted Body.

[approve ci]

[approve ci]

[approve ci autest]


Memory leaks in beaver

I'm just started using of beaver on my production servers. I use upstart (https://github.com/josegonzalez/beaver/blob/master/contrib/beaver-upstart.conf) script for running  beaver in background mode. The first time I just started beaver it took around 2% of RAM memory but after 3-5 days it takes 5% - 10% - 19%. It seems there is memory leaks. How can I detect and  fix them?

@skotchio have solved the problem yet?
+++++++++++++++++++++++++++++++++++++
Folks, today I'm faced with the following problem. I've noticed that my logs don't ships to my redis broker and I saw beaver logs and noticed the following records:
Worker has exceeded refresh limit. Terminating
[2013-10-25 23:02:17,168] INFO    Worker process cleanup in progress...
[2013-10-25 23:02:17,172] INFO    Starting worker...
[2013-10-25 23:02:17,173] INFO    Working...
[2013-10-25 23:02:17,176] INFO    Starting queue consumer
[2013-10-25 23:02:17,173] INFO    Working...
[2013-10-25 23:02:17,176] INFO    Starting queue consumer
[2013-10-25 23:02:17,185] INFO    [/var/log/auth.log] - watching logfile
[2013-10-25 23:02:17,190] INFO    [/var/log/nginx/access.log] - watching logfile
[2013-10-25 23:03:22,205] INFO    Queue timeout of "60" seconds exceeded, stopping queue
[2013-10-25 23:03:27,188] INFO    Starting queue consumer
[2013-10-25 23:04:32,205] INFO    Queue timeout of "60" seconds exceeded, stopping queue
[2013-10-25 23:04:37,196] INFO    Starting queue consumer
[2013-10-25 23:05:42,214] INFO    Queue timeout of "60" seconds exceeded, stopping queue
. . . . ..
The previous records repeated many many times. I had to restart beaver process to get it work.
What's problem?
+++++++++++++++++++++++++
I'm faced with above problem yet. thank you!
$ /opt/python2.7/python beaver.py -v
Beaver 33.0.0

@soarpenguin yes unfortunately I have the same problem yet. I had to write cron task to restart beaver every night and it's seems work,

@skotchio  your config have set following option?
format: rawjson
I have two other host not set above option is work fine.

@soarpenguin yes I have this one. Some later I'll try without it

@josegonzalez
time in seconds from last command sent before a queue kills itself
'queue_timeout': '60',
what's the mean of the option of queue_timeout?
and update the "last_update_time" only command is callback?
"queue kills itself": you mean have to reconstuct queue?

It means the queue hasn't received a message in N seconds. The last_update_time should be updated every time you send a metric. Honestly, I don't know how to replicate this, and if someone wants to give me access to a system (virtualmachine or otherwise) that I can reliably replicate the issue on, that would be wonderful.

@josegonzalez  sorry for i can't give you access to a system.

@josegonzalez
if it's possible for queue(size 100) full of addglob command, so beaver can't input log data to queue, can't send data to redis(can't update last_update_time)?
so log of beaver are all of the
Queue timeout of "60" seconds exceeded, stopping queue
and
Starting queue consumer
can't send log data to redis.
thank you for you reply.

@skotchio  what about you log count per hour when beaver collected?
@josegonzalez  i found a phenomenon, when the beaver watched log line count per hour greater a threadhold, it's work fine.
if the log line count per hour is small, it will  faceed with problem:   logs don't ships to my redis broker and I saw beaver logs and noticed the following records:
[2013-10-25 23:03:22,205] INFO Queue timeout of "60" seconds exceeded, stopping queue
[2013-10-25 23:03:27,188] INFO Starting queue consumer
[2013-10-25 23:04:32,205] INFO Queue timeout of "60" seconds exceeded, stopping queue
[2013-10-25 23:04:37,196] INFO Starting queue consumer
[2013-10-25 23:05:42,214] INFO Queue timeout of "60" seconds exceeded, stopping queue
thank you.

@josegonzalez  the log display below issue is right.
if it's possible for queue(size 100) full of addglob command, so beaver can't input log data to queue, can't send data to redis(can't update last_update_time)?
log just like that:   before the time of "2015-03-20 10:13:55" beaver works fine,
after "2015-03-20 10:13:55" the queue size is plus, until the size is full.
  some problem let the consumer is not work.

[2015-03-20 10:13:13,020] INFO    Queue timeout of "60<PHONE_NUMBER>" seconds exceeded, stopping queue
[2015-03-20 10:13:17,398] INFO    Starting queue consumer
[2015-03-20 10:13:17,505] INFO    Queue size of "0"
[2015-03-20 10:13:19,020] INFO    Queue size of "1"
[2015-03-20 10:13:19,020] INFO    Queue size of "0"
[2015-03-20 10:13:24,020] INFO    Queue size of "0"
[2015-03-20 10:13:29,020] INFO    Queue size of "0"
[2015-03-20 10:13:34,020] INFO    Queue size of "0"
[2015-03-20 10:13:35,020] INFO    Queue size of "1"
[2015-03-20 10:13:35,020] INFO    Queue size of "0"
[2015-03-20 10:13:40,019] INFO    Queue size of "0"
[2015-03-20 10:13:45,019] INFO    Queue size of "0"
[2015-03-20 10:13:50,019] INFO    Queue size of "0"
[2015-03-20 10:13:51,020] INFO    Queue size of "1"
[2015-03-20 10:13:51,020] INFO    Queue size of "0"
[2015-03-20 10:13:55,824] INFO    Worker has exceeded refresh limit. Terminating process...
[2015-03-20 10:13:55,825] INFO    Worker process cleanup in progress...
[2015-03-20 10:13:55,829] INFO    Starting worker...
[2015-03-20 10:13:55,832] INFO    Working...
[2015-03-20 10:13:55,836] INFO    [6802g10288] - watching logfile /var/log/messages
[2015-03-20 10:13:55,837] INFO    [6802g102b5] - watching logfile /var/log/secure
[2015-03-20 10:13:55,839] INFO    Starting queue consumer
[2015-03-20 10:13:55,945] INFO    Queue size of "3"
[2015-03-20 10:14:00,947] INFO    Queue size of "3"
[2015-03-20 10:14:05,949] INFO    Queue size of "3"
[2015-03-20 10:14:10,951] INFO    Queue size of "3"
[2015-03-20 10:14:15,953] INFO    Queue size of "5"
[2015-03-20 10:14:20,955] INFO    Queue size of "5"
[2015-03-20 10:14:25,958] INFO    Queue size of "5"
[2015-03-20 10:14:30,959] INFO    Queue size of "7"
[2015-03-20 10:14:35,961] INFO    Queue size of "7"
[2015-03-20 10:14:40,963] INFO    Queue size of "7"
[2015-03-20 10:14:45,965] INFO    Queue size of "9"
[2015-03-20 10:14:50,967] INFO    Queue size of "9"
[2015-03-20 10:14:55,969] INFO    Queue size of "9"
[2015-03-20 10:15:00,971] INFO    Queue timeout of "60<PHONE_NUMBER>" seconds exceeded, stopping queue
[2015-03-20 10:15:05,857] INFO    Starting queue consumer
[2015-03-20 10:15:05,967] INFO    Queue size of "11"
[2015-03-20 10:15:10,969] INFO    Queue size of "11"
................
[2015-03-20 10:26:01,165] INFO    Queue timeout of "60<PHONE_NUMBER>" seconds exceeded, stopping queue
[2015-03-20 10:26:06,029] INFO    Starting queue consumer
[2015-03-20 10:26:06,135] INFO    Queue size of "94"
[2015-03-20 10:26:11,138] INFO    Queue size of "96"
[2015-03-20 10:26:16,140] INFO    Queue size of "96"
[2015-03-20 10:26:21,142] INFO    Queue size of "96"
[2015-03-20 10:26:26,144] INFO    Queue size of "96"
[2015-03-20 10:26:31,146] INFO    Queue size of "98"
[2015-03-20 10:26:36,148] INFO    Queue size of "98"
[2015-03-20 10:26:41,150] INFO    Queue size of "98"
[2015-03-20 10:26:46,152] INFO    Queue size of "100"
[2015-03-20 10:26:51,154] INFO    Queue size of "100"
[2015-03-20 10:26:56,156] INFO    Queue size of "100"
[2015-03-20 10:27:01,158] INFO    Queue size of "100"
[2015-03-20 10:27:06,160] INFO    Queue size of "100"
[2015-03-20 10:27:11,162] INFO    Queue timeout of "60<PHONE_NUMBER>" seconds exceeded, stopping queue
[2015-03-20 10:27:16,045] INFO    Starting queue consumer
[2015-03-20 10:27:16,152] INFO    Queue size of "100"
[2015-03-20 10:27:21,155] INFO    Queue size of "100"
[2015-03-20 10:27:26,157] INFO    Queue size of "100"
[2015-03-20 10:27:31,159] INFO    Queue size of "100"
[2015-03-20 10:27:36,161] INFO    Queue size of "100"
[2015-03-20 10:27:41,165] INFO    Queue size of "100"
[2015-03-20 10:27:46,167] INFO    Queue size of "100"

@josegonzalez    i  add code in beaver/run_queue.py like this:
33             if int(time.time()) - last_update_time > queue_timeout:
34                 logger.info('Queue timeout of "{0} {1}" seconds exceeded, stopping queue'.format(queue_timeout, last_update_time))
35 #                pprint(vars(queue))
36                 break
37             else:
38                 logger.info('Queue size of "{0}"'.format(queue.qsize()))

@josegonzalez
got the problem:
please look at the url: http://bugs.python.org/issue20527
when use the  multiprocessing.Queue,  may deadlocks after “consumer” process death.

:(
Thank you for looking into it.

Odd, I don't think we ever terminate the queue consumer, so that shouldn't be the issue? Can you check the codebase to see if we manually terminate the consumer?
I wonder if we can just reset the _rlock to manually hack around the issue?

@josegonzalez
i found the same log like:  http://bugs.python.org/issue20527
[2015-03-19 16:03:40,533] INFO    Queue timeout of "60:1426752155" seconds exceeded, stopping queue
{'_buffer': deque([]),
'_close': None,
'_closed': False,
'_joincancelled': False,
'_jointhread': None,
'_maxsize': 20,
'_notempty': <Condition(<thread.lock object at 0x2b0bea63b610>, 0)>,
'_opid': 15593,
'_poll': <built-in method poll of _multiprocessing.Connection object at 0x7684be0>,
'_reader': <read-only Connection, handle 7>,
'_recv': <built-in method recv of _multiprocessing.Connection object at 0x7684be0>,
'_rlock': <Lock(owner=SomeOtherProcess)>,        # this line
'_sem': <BoundedSemaphore(value=0, maxvalue=20)>,
'_send': <built-in method send of _multiprocessing.Connection object at 0x7685010>,
'_thread': None,
'_wlock': <Lock(owner=None)>,
'_writer': <write-only Connection, handle 8>}

have a solve solution:
in file beaver/run_queue.py:
def term(signum, frame):
    logger.info("consumer terminating xxxxxxxxxx")
    logger.info('the queue rlock is: {0}'.format(queue._rlock))

#    signal.signal(signal.SIGTERM, signal.SIG_DFL)
signal.signal(signal.SIGTERM, term)
catch the signal.SIGTERM, do nothing is OK.
--
it's not always have problem in process stopped in signal SIGTERM;
if the process catch signal.SIGTERM and owner the _rlock, it must be a problem.
[2015-03-24 08:33:57,134] INFO    Worker has exceeded refresh limit. Terminating process...
[2015-03-24 08:33:57,134] INFO    Worker process cleanup in progress...
[2015-03-24 08:33:57,135] INFO    consumer terminating xxxxxxxxxx
[2015-03-24 08:33:57,135] INFO    the queue rlock is: <Lock(owner=None)>
[2015-03-24 08:33:57,138] INFO    Starting worker...
[2015-03-24 08:33:57,141] INFO    Working...
[2015-03-24 08:33:57,147] INFO    [802g1bcf0b] - watching logfile /var/log/nginx/access.log
[2015-03-24 08:33:57,148] INFO    [802g18d7c2] - watching logfile /var/log/messages
[2015-03-24 08:33:57,149] INFO    [802g18d7f3] - watching logfile /var/log/secure
--
[2015-03-24 08:38:57,146] INFO    Worker has exceeded refresh limit. Terminating process...
[2015-03-24 08:38:57,147] INFO    Worker process cleanup in progress...
[2015-03-24 08:38:57,147] INFO    consumer terminating xxxxxxxxxx
[2015-03-24 08:38:57,148] INFO    the queue rlock is: <Lock(owner=Process-129:1)>
[2015-03-24 08:38:57,151] INFO    Starting worker...
[2015-03-24 08:38:57,153] INFO    Working...
[2015-03-24 08:38:57,160] INFO    [802g1bcf0b] - watching logfile /var/log/nginx/access.log
[2015-03-24 08:38:57,161] INFO    [802g18d7c2] - watching logfile /var/log/messages
[2015-03-24 08:38:57,162] INFO    [802g18d7f3] - watching logfile /var/log/secure

Can you make a PR for that?

@josegonzalez  sorry, what's the mean of PR?

Pull request

@josegonzalez  #303

We ship a sizeable amount of messages through Beaver per day and havent come across this, can anyone still replicate this with the latest release?

Puka is a nice alternative library to Pika and the RabbitMQ devs recommend it:
https://www.rabbitmq.com/blog/2011/07/08/puka-rethinking-amqp-clients/

I don't think that is related to this issue, and the linked article is pretty old. All current rabbitmq documentation uses pika afaik.

Yeah Puka seems to be virtually dead now, few hundred downloads a day vs 20k/day on PyPi for Pika.
Well my experience is that beaver (latest versions) works for a day or two then just stops sending logs. I'm doing about 100meg/day and am only ingesting a single log file per server.


[API] let admin check org membership on other users

close #10194

Codecov Report

Merging #10201 into master will increase coverage by 0.23%.
The diff coverage is 64.7%.

@@            Coverage Diff             @@
##           master   #10201      +/-   ##
==========================================
+ Coverage   43.41%   43.64%   +0.23%
==========================================
  Files         576      576
  Lines       79650    79681      +31
==========================================
+ Hits        34581    34779     +198
+ Misses      40790    40612     -178
- Partials     4279     4290      +11

Impacted Files
Coverage Δ

modules/repository/create.go
57.44% <0%> (ø)
:arrow_up:

routers/repo/issue_label.go
42.18% <0%> (ø)
:arrow_up:

routers/api/v1/repo/label.go
84% <100%> (+84%)
:arrow_up:

models/issue_label.go
63.79% <48%> (-0.69%)
:arrow_down:

modules/queue/unique_queue_disk_channel.go
54.48% <0%> (+1.92%)
:arrow_up:

Continue to review full report at Codecov.

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


Refactor API.

We have decided to separate the server from the frontend. In this code, I have removed the app_api folder with all its content.
Also, I have modify the .gitignore file to prevent upload unnecessary folders.

Looks good to me.


More links for downloading Tesseract languages

Hi, Joe,
Thank you for the new release 4.1.0: it's another great step. I'll be doing some testing and reporting you in the incoming days.
One point of my feedback was actually about adding information on how to download additional languages. You can do it through the Tesseract installer, but after that, it may be difficult for users not familiar with Tesseract.


Switching to fullscreen in macOS disables outer functionalities completely

We may not want fullscreen to disable everything else outside the game (e.g. menu bar, dock, desktops navigation), that's inconsistent with other platforms like Windows.

When in fullscreen mode in settings (not the native macOS fullscreen green button thing or borderless), it seems I can't use the rest of the OS and have to exist osu to use or see anything else. Is there a way to get out of it or is it an issue thats not fixed yet?
Borderless isn't viable for me because it seems changing resolution doesn't work or is unimplemented yet and playing at native resolution makes my mac go to 80C with terrible FPS
I'm running version 2021.602.0 on a 2015 MacBook Pro i5 13"
Originally posted by @NafeeJ in https://github.com/ppy/osu/discussions/13351

That is how macOS works.


Reverted changes.

Also removed the explicitly set header for content type and content length as per the following logs in Kibana


Support for tenants other than identitynow.com

Description
Current configuration takes for granted identitynow.com is the only base url IDN tenants have. These modifications remove that assumption and make client process tenant urls as {name}.{base} instead, modifying them for API endpoints as {name}.{"api"}.{base}.
How Has This Been Tested?
I've successfully registered an identitynow-demo.com tenant, created a connector and uploaded source code.

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

Hey @fernando-delosrios-sp!
I love the intent of this PR, and this is definitely something we needed to get done, since you went ahead and implemented this I want to get your thoughts on adding support for Vanity URLs in the URL schema.
I'm thinking in the OAuth flow, we add one additional prompt.
Something like:
"If your IdentityNow tenant has a custom URL configured please provide it here (example of a custom tenant url):"
The documentation is here: https://community.sailpoint.com/t5/IdentityNow-Wiki/Creating-a-Vanity-URL/ta-p/75859
Please let me know your thoughts.

@fernando-delosrios-sp I wanted to follow up here, barring some other method of translating the data yet to be found, I think this is going to be one of the best methods to implement these changes, Thank you for the PR!


When slowing down the engine, bodies gain upward momentum out of nowhere.

I am making a game where you can enter slow-motion. At first, I used engine.timing.timeScale, which worked until I noticed the geometries floating upwards slightly before settling whenever I changed it.
I thought this was a side effect, that I would also make the calculations go slower, so I tried to counter it with this:
engine.constraintIterations = Math.round(2 / simulation_settings.timeMultiplier);
engine.positionIterations = Math.round(6 / simulation_settings.timeMultiplier);
engine.velocityIterations = Math.round(4 / simulation_settings.timeMultiplier);

It didn't help. Is there a reason my geometries gain momentum when I slow the simulation down? How can I fix it?

Im making a platform game and this impulse happens when i use tilemap to make the scene and the player is colliding with the enemy...

Im making a platform game and this impulse happens when i use tilemap to make the scene and the player is colliding with the enemy...


where is source file??

please upload as soon as possible！I really need your project！

别叫发自我的荣耀手机-------- 原始邮件 --------发件人： hanyidadada @.>日期： 2024年4月2日周二 10:19收件人： FFFcapatin328/SentKB @.>抄送： Subscribed @.***>主    题： [FFFcapatin328/SentKB] where is source file?? (Issue #1)
please upload as soon as possible！I really need your project！
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>


Feature request: Support using DataTable as ItemsSource

Sorry for spamming requests, but would it be possible to support using a dynamic DataTable as ItemsSource?
If I use DataTable now it will create the columns with a filter button, but it doesn't do anything. Would it be difficult to add support?

I think it's possible, the problem is the lack of time, I'm working on this project on my free time, so things don't move very fast :)

I totally understand! I don't expect anything, just hope for the best! ;)

Hi, I'm interested too in this feature. I think the problem is DataTable does not support filtering. See here: https://stackoverflow.com/questions/9385489/why-errors-when-filters-datatable-with-collectionview

I'm keen on this to. :) thank you so much for your effort, this is brilliant

Hi,
I did not find a solution :(
best regards


[Bug] doesn't work because of the addition of negative prompt

it worked until yesterday but doesn't work anymore because of the Negative Prompt
I haven't seen Negative Prompt thing until yesterday but it poped up and it returns error about it
 File "/usr/local/lib/python3.7/dist-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
TypeError: __call__() got an unexpected keyword argument 'negative_prompt'

Please upgrade diffusers to 0.4.0.

A fallback is added. Now it also works with diffusers 0.3.0


Need to modify repl.it and Glitch submitted project links to reflect the source code view instead of working project view

In this recently merged PR, if a user has submitted a project link, it will display the project's working view instead of the source code.  I am not so sure adding the solution links as is currently functioning is helping much.  See this forum post.  Instead of showing the final project link, it would be more useful to show the source code link.  In the linked forum post, going to the project results in the "Hmmm.... We Couldn't Reach Your Repl" page.  For at least repl.it, we should restructure the link (if needed) to show the editable version of the project.  For example, if the user submits https://boilerplate-express-2.-username-goes-here.repl.co/, then we show https://repl.it/@username-goes-here/boilerplate-express-2.
For Codepen projects, this is not an issue, but for Backend projects where the source code is not readily available, we either need to make my above suggested changes or remove this feature for backend challenges/projects. If a user is hosting their own project, then the same issue arises. Unless they submit a GitHub link to their project source code, a final project view does not help us identify problems for the user.
@ShaunSHamilton

I was recently thinking about this, and just wondered how stable it would be to transform the Camper's URL into the project code URL.
If you think this is a decent feature to have, and worth it, then I am willing to throw something together. I will put out a POC, now.

Side Note: I have been looking into the dedent fiasco, as some lessons still cause the dents.