snowflake_grant_privileges_to_role removing OWNERSHIP from privileges array

Provider Version
0.73.0
Terraform Version
1.1.9
Describe the bug
When I create a snowflake_grant_privileges_to_role with privileges set to ["OWNERSHIP"], it is automatically removed and set to [], resulting in every subsequent plan/apply trying to add the "OWNERSHIP" privilege back.
For context, I am looping through a yaml file to create my resources in my .tf file like so:
resource snowflake_grant_privileges_to_role new_warehouse_grants {
    for_each = local.warehouse_grants  *yaml file used for looping*
    on_account_object {
        object_type = "WAREHOUSE"
        object_name = each.value.warehouse_name
    }
    role_name = each.value.role_name
    privileges = each.value.privileges
    with_grant_option = false
}

where the local.warhouse_grants file looks something like this:
CPS_WH|OWNERSHIP:
  privileges:
  - OWNERSHIP
  role_name: SYSADMIN
  warehouse_name: CPS_WH
CPS_WH|PRODUCER_CPS_ROLE:
  privileges:
  - MONITOR
  - USAGE
  role_name: PRODUCER_CPS_ROLE
  warehouse_name: CPS_WH

Note, for all privileges other than OWNERSHIP I define all privileges for a given role in the same resource block, however when I try to do that with OWNERSHIP Snowflake throws an error saying Cannot specify OWNERSHIP in privilege list., thus I had to define OWNERSHIP on its own. This doesn't seem to be happening for any other permissions, only OWNERSHIP. Any help is much appreciated, thanks!
Expected behavior
There should be no changes to the resource, since no changes were made to the TF configs
Code samples and commands
Example terraform plan snippet attempting to add OWNERSHIP back to privileges:
  # module.prism_grants.snowflake_grant_privileges_to_role.new_warehouse_grants[SYSTEM_YUKON_TABLEAU_WH|OWNERSHIP] will be updated in-place
! resource snowflake_grant_privileges_to_role new_warehouse_grants {
        id                = SYSADMIN|OWNERSHIP|false|false|false|true|false|false|false|false|WAREHOUSE|SYSTEM_YUKON_TABLEAU_WH||false||false|
      ! privileges        = [
          + OWNERSHIP,
        ]
        # (4 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.prism_grants.snowflake_grant_privileges_to_role.new_warehouse_grants[UPNEST_WH|OWNERSHIP] will be updated in-place
! resource snowflake_grant_privileges_to_role new_warehouse_grants {
        id                = SYSADMIN|OWNERSHIP|false|false|false|true|false|false|false|false|WAREHOUSE|UPNEST_WH||false||false|
      ! privileges        = [
          + OWNERSHIP,
        ]
        # (4 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 101 to change, 0 to destroy.

output of running terraform -chdir=terraform/dev_snowflake state show 'module.dev_grants.snowflake_grant_privileges_to_role.new_warehouse_grants["CPS_WH|OWNERSHIP"]' (shows OWNERSHIP being removed from privileges array):
# module.dev_grants.snowflake_grant_privileges_to_role.new_warehouse_grants["CPS_WH|OWNERSHIP"]:
resource "snowflake_grant_privileges_to_role" "new_warehouse_grants" {
    all_privileges    = false
    id                = "SYSADMIN|OWNERSHIP|false|false|false|true|false|false|false|false|WAREHOUSE|CPS_WH||false||false|"
    on_account        = false
    privileges        = []
    role_name         = "SYSADMIN"
    with_grant_option = false

    on_account_object {
        object_name = "CPS_WH"
        object_type = "WAREHOUSE"
    }
}

As I continue to move different grants to the new snowflake_grant_privileges_to_role resource, I've noticed that OWNERSHIP is not revoked for all objects. So far I've only noticed this issue with warehouses and schemas. For the time being, I've split out the OWNERSHIP grants from the rest of them, and added
ignore_changes = [
            privileges
        ]

as a workaround.

Hey @davware @sfc-gh-ckite
Right now, we're currently working on designing / re-designing grants, and from our analysis, we decided to drop support for granting ownership for a few reasons which will be documented and soon published to the repository to give everyone context on our decision, but to give you a quick sum up: we can grant ownership, but ownership is not a privilege, it's a complete ownership transition which cannot be queried and in the Terrafrom plugin after we granted the ownership you're asking then we have to check the current state on your Snowflake and that cannot be performed, because again there's no clear way of querying those kinds of information. Plus there can be some cases where you grant ownership to the object that is outside of the Terraform reach and when you delete the defined grant resource it (the ownership) can't be revoked because the Terraform would have to have access to this object.
tldr Please if possible find another way of granting access to a given resource with snowflake_grant_privileges_to_role, because granting ownership will be deprecated and probably eventually removed.

Hey @sfc-gh-jcieslak, thanks for your detailed explanation. I'm wondering if there are any plans to create more "ownership grant resources" similar to snowflake_role_ownership_grant and snowflake_user_ownership_grant? Or is the plan that ownership will need to be managed outside of terraform? Thanks!

@davware For now, we don't (and probably won't) have any plans on adding new resources that would grant ownership and the decision will be backed by the mentioned document we should publish soon. We checked that in some cases it's not feasible to manage such resources within the Terraform plugin. Right now, we are focusing on supporting all of the grant features provided by Snowflake (and possible to manage within the Terraform) and we're designing new missing resources/data sources and re-designing snowflake_grant_privileges_to_role to fix some of its issues/pain points. After the design proposal is finished and everyone on the team has their word, we should know which grants are feasible and which are not to manage within the Terraform, but for now, I can already tell you that it probably won't be added.

@sfc-gh-jcieslak understood, I'll look out for that document. Thanks for all the info!

@sfc-gh-jcieslak I am wondering why can't you query ownership? I am looking forward to reading the document. I am hoping all grants are still manageable through Terraform :)

@jelledv @davware
Hey, I would like to emphasize that we're in a phase of seeing what are the available options and what we can do. I said that we probably won't have a grant privilege resource and the keyword would be "probably". Right now, I would say my view on the topic changed, and probably that was my mistake in communicating (I apologize that I might've caused confusion in the future of our provider). All I would like to say right now is to stay patient and stay tuned for more updates on the topic.

Hey @davware @jelledv
Here's the document I was talking about https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/docs/technical-documentation/grants_redesign_design_decisions.md. Additionally, the latest version includes grant ownership resource.


enhancement: Retrofit with jake wharton's coroutines adapter

very simple
try/catch http exception/catch regular exception would be super nice
it is so nice
https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapter

This demo loads local data, however, I am also looking forward a remote data feature in the future.

i see your point... But Jake is there at google, Retrofit is in jetpack guide, and coroutines are leaving experimental in 1.3, and there's several  articles about the merit of moving from Rx to Coroutines, even (i think) from Chris Banes.. I think..

@neiljaywarner Yeah, RX should be replaced by coroutine in the future Android development which is a point of my view. Actually, there's a corner of the current codebase which can be used with coroutine.
https://github.com/googlesamples/android-sunflower/blob/master/app/src/main/java/com/google/samples/apps/sunflower/utilities/AppExecutors.kt#L27

@neiljaywarner yes, there are plans to incorporate retrofit and coroutines into Sunflower.  Keep an eye on #208

Added in #625


loading config file from library

Hi,
i made new file in /config/ folder render.php and have this content:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$config['test1']    = 'some text';

And i have library Render.php in /libraries/ folder with this content:
<?php
class Render {

    protected $CI;

    public function __construct() {

        $this->CI =& get_instance();
        $this->CI->load->config('render');
    }

    function link() {

        return $this->config->item('test1');
    }

}

Now i get error:

Message: Undefined property: Render::$config

that library is autoloaded, but config is not, becouse i will load it manualy from this library, why am i getting this error ?

make sure to use this in your class
/**
 * Enables the use of CI super-global without having to define an extra variable.
 *
 * @param $var
 *
 * @return mixed
 */
public function __get($var){
    return get_instance()->$var;
}


[HUDI-371] : Supporting combine input format RT tables

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contributing.html before opening a pull request.

What is the purpose of the pull request
We current support HoodieCombineHiveInputFormat for CopyOnWrite tables to ensure that there is a limit on the number of mappers spawned for any query. We currently do not have support for this feature on Realtime tables and this PR adds this support
Committer checklist

[x] Has a corresponding JIRA in PR title & commit

[x] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Closed PR -> https://github.com/apache/incubator-hudi/pull/1053 in favor of this one. @bvaradar PTAL

@bvaradar @n3nash any code that is reused from other projects here? (asking since this is Hive and combine input splits)..

@vinothchandar no new class, for the existing class -> https://github.com/apache/incubator-hudi/blob/master/LICENSE#L206


Compiler Path option edit for the newbies

Issue Type: Feature Request
Hi, I think that there the compiler path option could be easier for config, when you need to do it first time. I mean maybe it should show you some button with tip to do it at the beginning. When I first time compile my project I got some errors with "#include errors detected. Please update your include path" and when I cliked on the yellow bulb it shows me tips to install vcpkg, but the errors all only about the not configured compiler path in .json files.  I saw on the internet that I wasn't first with same issue.
VS Code version: Code 1.56.2 (054a9295330880ed74ceaedda236253b4f39a335, 2021-05-12T16:45:26.313Z)
OS version: Linux x64 5.11.0-7614-generic snap

the extension that I installed was the original one for C++ from the Microsoft.


redirects show a 404 page

Noticed after merging #2658 - when a link with an entry in https://github.com/iterative/dvc.org/blob/master/redirects-list.json is clicked, a 404 page shows for a brief period before the redirection happens. On a slow internet connection, it may make people think that the link is broken.
Should have a "redirecting" page instead of a 404. Or better... no page at all.

@casperdcl could you provide an example please?

If you go to https://dvc.org/doc/cml the 404 page flashes briefly.

I think this is related to the https://github.com/iterative/cml-website/pull/63/ ? It doesn't look like this is about dvc.org itself.

Yep, I see 404 in the logs. Need to research this a bit.

I think I know what's going on here, it's related to the difference between special Gatsby client-side links that should only be used on internal page links vs regular as that are used for everything else. It's up to our Link component to infer which one should be used depending on the given href, but in this case the fact that an external link looks like an internal one tricks the link component into using the wrong behavior.
A quick fix is to allow a manual override of whether the link is a Link or a, though we could also make the inference behavior more robust and able to handle internal redirects to external sites.

A quick fix is to allow a manual override of whether the link is a Link or a, though we could also make the inference behavior more robust and able to handle internal redirects to external sites.

I've tested using an a tag, but it produced the same result. I think its a hydration issue, looking at this code. Also if you restart the page(at least on my end) the link looks as it should:

I can think of two possible solutions so far:

Update our Link component to render after mount.
Have our ResultLinkComponent check if the href prop is a redirect somehow and have it use the redirect() function instead of just using a regular a link. From my testing, a redirect() function doesn't show the 404 page like a regular a link would.

I looked into the issue and replicated the fact that normal as suffer, but also noticed that the link works completely fine when disabling javascript.
Turns out, dvc.org has the plugin gatsby-plugin-catch-links which uses a global onClick handler to force all links, including normal as, to behave like Gatsby links that attempt CSR on routes that look internal.
I managed to stop the issue by

Turning the link in question into a plain a

Replacing the optionless gatsby-plugin-catch-links definition with:

{
  resolve: 'gatsby-plugin-catch-links',
  options: {
    excludePattern: /\/doc\/cml/
  }
}

And with that the link consistently doesn't show a 404 and a related issue I saw where the page navigated twice (such that I needed two back button clicks to get back to dvc.org) went away.
Basically, a lot of dvc.org is built on the assumption that links that look internal are internal, and aren't external redirects pretending to be internal links. We'll have to suppress multiple layers of behavior to use internal-looking links like they're external.
So we'll need something like the solution I proposed and then add all internal-looking links that we want to use external redirects for to the gatsby-plugin-catch-links exclusion list (or remove gatsby-plugin-catch-links and solve whatever issue caused its introduction in another way.

Nice catch, @rogermparent! That explains the reason for regular a links not working correctly!

So we'll need something like the solution I proposed and then add all internal-looking links that we want to use external redirects for to the gatsby-plugin-catch-links exclusion list (or remove gatsby-plugin-catch-links and solve whatever issue caused its introduction in another way.

This solution seems to be the way to go if we want to be able to add redirect links on our site without any issues.

Alternatively, we could just use the external cml.dev link in the sidebar instead of doing the whole redirect thing.

If we choose to go this way, I don't think we will have to edit the sidebar code. I think we just have to update our Link code to render links on mount(like I mentioned in my previous comment), then this code will work correctly and turn /doc/cml into the external cml.dev link automatically.
We could also go with the second solution since its easier to implement for now to get rid of the bug, and implement the second solution later.

we could just use the external cml.dev link in the sidebar instead of doing the whole redirect thing

We'll still need /doc/cml/* redirection in case people had copy-pasted & shared old links.

We'll still need /doc/cml/* redirection in case users had copy-pasted & shared old links.

You are correct! If I'm understanding @rogermparent correctly, we aren't planning to take down the redirect logic, so old links dvc.org/doc/cml/* will still work no matter which solution we decide to go with 😀

Looking through our commits, the gatsby-plugin-catch-links have been part of the config since we migrated to Gatsby. As far as I can tell, links appear to be working the same without the plugin on my local machine. @rogermparent, do you think it's safe to take it off?

do you think it's safe to take it off?

I would assume they were added so that we could let Gatsby run CSR on links in Markdown content which don't (and shouldn't) have concept of internal/external links and the Link component. However, this could be done in less heavy-handed ways like using custom components in the MD engine to replace links with our Link component (probably twice through both blog and docs since they use different MD rendering engines :grimacing:)
However, even if the CSR-catching functionality is "broken", the links will work perfectly fine. The worst that can break is internal links being nigh-imperceptibly slower and the transition a bit less fluid.

I think this has been fixed and we just forgot to close. I tried replicating the original issue and didn't get it. Please do reopen if I'm mistaken!


Hotfix alloc crash, when no read data avail.

[!NOTE]
This fixes a Swift memory allocation crash, when attempting to allocate an internally managed buffer with a capacity of 0 (zero), if there's no read data available for the data copy we early out and return nil.

Backtrace
Thread 1 Crashed::  Dispatch queue: CosmoEditor.TreeSitter.EditQueue
0   libswiftCore.dylib                       0x1ad1eeb74 swift_slowAlloc.cold.1 + 16
1   libswiftCore.dylib                       0x1ad12d500 swift_slowAlloc + 88
2   libswiftCore.dylib                       0x1ad06da1c static UnsafeMutableBufferPointer.allocate(capacity:) + 124
3   Kraken                                   0x109a4d098 readFunction(payload:byteIndex:position:bytesRead:) + 596 (Input.swift:60)
4   Kraken                                   0x109a4cd74 @objc readFunction(payload:byteIndex:position:bytesRead:) + 40
5   Kraken                                   0x10af42f64 ts_lexer__get_chunk + 76 (lexer.c:59)
6   Kraken                                   0x10af5cf18 ts_lexer__do_advance + 548 (lexer.c:195)
7   Kraken                                   0x10af42518 ts_lexer__advance + 508 (lexer.c:217)
8   Kraken                                   0x10b201e24 ts_lex + 60
9   Kraken                                   0x10af5e3bc ts_parser__lex + 1224 (parser.c:485)
10  Kraken                                   0x10af4823c ts_parser__advance + 340 (parser.c:1441)
11  Kraken                                   0x10af477bc ts_parser_parse + 1384 (parser.c:1933)
12  Kraken                                   0x109a58028 Parser.parse(tree:encoding:readBlock:) + 368 (Parser.swift:116)
13  Kraken                                   0x100939ebc TreeSitterState.parseDocument(readCallback:readBlock:) + 484 (TreeSitterState.swift:94)
14  Kraken                                   0x100939504 TreeSitterState.init(codeLanguage:readCallback:readBlock:) + 296 (TreeSitterState.swift:52)
15  Kraken                                   0x1009393cc TreeSitterState.__allocating_init(codeLanguage:readCallback:readBlock:) + 88
16  Kraken                                   0x100935c3c closure #1 in TreeSitterClient.setState(language:readCallback:readBlock:) + 364 (TreeSitterClient.swift:145)
17  Kraken                                   0x100936430 closure #1 in TreeSitterClient.performAsync(_:) + 996

LLDB Breakpoint
Process 88310 stopped
* thread #3, queue = 'CosmoEditor.TreeSitter.EditQueue', stop reason = EXC_BREAKPOINT (code=1, subcode=0x1ad1eeb74)
    frame #0: 0x00000001ad1eeb74 libswiftCore.dylib`swift_slowAlloc.cold.1 + 16
libswiftCore.dylib`swift_slowAlloc.cold.1:
->  0x1ad1eeb74 <+16>: brk    #0x1

libswiftCore.dylib`swift_allocBox.cold.1:
    0x1ad1eeb78 <+0>:  adrp   x8, 186
    0x1ad1eeb7c <+4>:  add    x8, x8, #0x8f0            ; "Could not allocate memory."
    0x1ad1eeb80 <+8>:  adrp   x9, 359303

Wow! Thank you!
Do you have a situation that can easily reproduce this? I’d love to capture it in a test.

Wow! Thank you!
Do you have a situation that can easily reproduce this? I’d love to capture it in a test.

It's a weird one for sure! I was able to reproduce it from this project here, however; I'm also building all of Pixar's Universal Scene Description with that Swift package 😅; so I would advise a much smaller reproducible project than having to deal with all of that.
If I find some time I may be able to create you a small SwiftPM test project repo, copying over my same TreeSitters over to that project repo along with a super basic little "hello world" executable app to spool it up if that's something that may be of use to you.

It turned out to be easy to make a test that goes down this code path: f46c79e0d792240a5f133efd338d0c3baa81dac4
However, bizarrely, it does not crash! I wonder if this is something that is ok in debug mode? Anyways, I think that's suficeint for now. We tried. Thanks again for your help here.


Added umccrise version 2.0.1

[ ] Waiting on wfr.12fee238e9324d8a8726c72d3c97d207 to complete

@alexiswl - can you provide quick summary/motivation for the update?
trying to confirm if this is to sync with umccrise docker version update or there other changes in the definiton as well?

Very minimal changes, merely a change to the dockerfile and using umccrise 2.0.1
$ diff <(cwltool --pack workflows/umccrise-with-dragen-germline-pipeline/2.0.1--3.9.3/umccrise-with-dragen-germline-pipeline__2.0.1--3.9.3.cwl 2>/dev/null) <(cwltool --pack workflows/umccrise-with-dragen-germline-pipeline/2.0.0--3.9.3/umccrise-with-dragen-germline-pipeline__2.0.0--3.9.3.cwl 2>/dev/null)
1174,1176c1174,1176
<             "id": "#umccrise__2.0.1--0.cwl",
<             "label": "umccrise v(2.0.1--0)",
<             "doc": "Documentation for umccrise v2.0.1--0\n",
---
>             "id": "#umccrise__2.0.0--0.cwl",
>             "label": "umccrise v(2.0.0--0)",
>             "doc": "Documentation for umccrise v2.0.0--0\n",
1179c1179
<                     "dockerPull": "843407916570.dkr.ecr.ap-southeast-2.amazonaws.com/umccrise:2.0.1-7f08dc4bf8",
---
>                     "dockerPull": "843407916570.dkr.ecr.ap-southeast-2.amazonaws.com/umccrise:2.0.0-130ef3be09",
1246c1246
<                     "id": "#umccrise__2.0.1--0.cwl/dragen_germline_directory"
---
>                     "id": "#umccrise__2.0.0--0.cwl/dragen_germline_directory"
1255c1255
<                     "id": "#umccrise__2.0.1--0.cwl/dragen_normal_id"
---
>                     "id": "#umccrise__2.0.0--0.cwl/dragen_normal_id"
1265c1265
<                     "id": "#umccrise__2.0.1--0.cwl/dragen_somatic_directory"
---
>                     "id": "#umccrise__2.0.0--0.cwl/dragen_somatic_directory"
1274c1274
<                     "id": "#umccrise__2.0.1--0.cwl/dragen_tumor_id"
---
>                     "id": "#umccrise__2.0.0--0.cwl/dragen_tumor_id"
1284c1284
<                     "id": "#umccrise__2.0.1--0.cwl/genomes_tar"
---
>                     "id": "#umccrise__2.0.0--0.cwl/genomes_tar"
1290c1290
<                     "id": "#umccrise__2.0.1--0.cwl/output_directory_name"
---
>                     "id": "#umccrise__2.0.0--0.cwl/output_directory_name"
1299c1299
<                     "id": "#umccrise__2.0.1--0.cwl/subject_identifier"
---
>                     "id": "#umccrise__2.0.0--0.cwl/subject_identifier"
1308c1308
<                     "id": "#umccrise__2.0.1--0.cwl/threads"
---
>                     "id": "#umccrise__2.0.0--0.cwl/threads"
1319c1319
<                     "id": "#umccrise__2.0.1--0.cwl/output_directory"
---
>                     "id": "#umccrise__2.0.0--0.cwl/output_directory"
2147c2147
<             "label": "umccrise-with-dragen-germline-pipeline v(2.0.1--3.9.3)",
---
>             "label": "umccrise-with-dragen-germline-pipeline v(2.0.0--3.9.3)",
2341c2341
<                     "run": "#umccrise__2.0.1--0.cwl",
---
>                     "run": "#umccrise__2.0.0--0.cwl",

Easy, LGTM!

The wfr.12fee238e9324d8a8726c72d3c97d207 workflow finished successfully - reports look okay.


[Addition]: Heltec Cluster in Lampoon, Thailand

Hotspot b58 Addresses
1123e4sPQ44xrxf8r7J23vdBMacTEb2bDjbT6MCYGeS9WfeLEbg7
112KyheLy4sYNP3Ra9amscMz7gXmMZkbL2v5XrH33seoJQuBEtGN
112TpmwjsUV5mmhBTqouK2BBitsittq1i2AdbBzXfbZX5EN3JqEQ
112UQCxD7z4CFZBG93dRLxGUS4KRwA92Mwob6iC9exEsej4FAcKt
117QAngBMjZbE5MXTBUdwZ4RsgkzqweGA3wJ9FJNnYganBVZX4k
11BuxoqrdBNGWnJ38L5BiAWP17DQMoe8jGoGY9T1Cp5p7UZEBFY
11Vy1BRd4aU4YgPfP2HkHv6Rhob4B3KNUBd8WN6hx2trcDAUDEw
Discord Handle
Kenny_PDY
Reason(s)
7 Heltec HS with 1.2dB 0m antennas forming a self-witness cluster in Lampoon, Thailand.  All asserted on the same day (Aug 9).  They pairing the location with HS that was reported in #4567 earlier.

Generous Oily Horse

Rich Purple Finch

Electric Indigo Pelican

Funny Sandstone Chinchilla

What is the block chain spirit? Really not thinking about what you've done before. If there is a problem, or cheating is also a problem with the official rules. Or use a decentralized solution. Instead of reporting and rejecting lists. True de-centralization is what you should do in the future, no matter what you have done before. Use better systems to solve real problems. Not centralized reporting. There is already a technology to make hard forks, and blacklisted machines can produce other currencies. We'll join in other chains then. Dig another token


Add Telepresence and local setup instructions

Keycloak setup steps can be automated.

After restarting VS code, the vault is locked, and port forward is missing. There is no documentation how to fix it.

I get an error running init-telepresence.sh script

Show more
./scripts/init-telepresence.sh
--- Install Telepresence + SSHFS ---
fs.inotify.max_user_instances = 1000000
fs.inotify.max_user_watches = 1000000
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                  Dload  Upload   Total   Spent    Left  Speed
100   106  100   106    0     0    132      0 --:--:-- --:--:-- --:--:--   132
100 96.3M  100 96.3M    0     0  4905k      0  0:00:20  0:00:20 --:--:-- 7706k
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:3 https://packages.microsoft.com/repos/microsoft-ubuntu-jammy-prod jammy InRelease [3,611 B]
Get:4 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [456 kB]
Get:5 https://packages.microsoft.com/repos/microsoft-ubuntu-jammy-prod jammy/main all Packages [904 B]
Get:6 https://packages.microsoft.com/repos/microsoft-ubuntu-jammy-prod jammy/main amd64 Packages [65.9 kB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [575 kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [36.3 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [928 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1,792 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [42.2 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [857 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [457 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,176 kB]
Get:20 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [27.0 kB]
Get:21 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [49.4 kB]
Fetched 25.0 MB in 4s (6,458 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  fuse3 libfuse3-3 libglib2.0-0 libglib2.0-data shared-mime-info xdg-user-dirs
The following NEW packages will be installed:
  fuse3 libfuse3-3 libglib2.0-0 libglib2.0-data shared-mime-info sshfs xdg-user-dirs
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,126 kB of archives.
After this operation, 8,165 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libglib2.0-0 amd64 2.72.4-0ubuntu2 [1,462 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libglib2.0-data all 2.72.4-0ubuntu2 [4,968 B]
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 shared-mime-info amd64 2.1-2 [454 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 xdg-user-dirs amd64 0.17-2ubuntu4 [53.9 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libfuse3-3 amd64 3.10.5-1build1 [81.2 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 fuse3 amd64 3.10.5-1build1 [24.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/universe amd64 sshfs amd64 3.7.1+repack-2 [45.1 kB]
Fetched 2,126 kB in 1s (1,803 kB/s)
Selecting previously unselected package libglib2.0-0:amd64.
(Reading database ... 22432 files and directories currently installed.)
Preparing to unpack .../0-libglib2.0-0_2.72.4-0ubuntu2_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.72.4-0ubuntu2) ...
Selecting previously unselected package libglib2.0-data.
Preparing to unpack .../1-libglib2.0-data_2.72.4-0ubuntu2_all.deb ...
Unpacking libglib2.0-data (2.72.4-0ubuntu2) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../2-shared-mime-info_2.1-2_amd64.deb ...
Unpacking shared-mime-info (2.1-2) ...
Selecting previously unselected package xdg-user-dirs.
Preparing to unpack .../3-xdg-user-dirs_0.17-2ubuntu4_amd64.deb ...
Unpacking xdg-user-dirs (0.17-2ubuntu4) ...
Selecting previously unselected package libfuse3-3:amd64.
Preparing to unpack .../4-libfuse3-3_3.10.5-1build1_amd64.deb ...
Unpacking libfuse3-3:amd64 (3.10.5-1build1) ...
Selecting previously unselected package fuse3.
Preparing to unpack .../5-fuse3_3.10.5-1build1_amd64.deb ...
Unpacking fuse3 (3.10.5-1build1) ...
Selecting previously unselected package sshfs.
Preparing to unpack .../6-sshfs_3.7.1+repack-2_amd64.deb ...
Unpacking sshfs (3.7.1+repack-2) ...
Setting up xdg-user-dirs (0.17-2ubuntu4) ...
Setting up libglib2.0-0:amd64 (2.72.4-0ubuntu2) ...
No schema files found: doing nothing.
Setting up libglib2.0-data (2.72.4-0ubuntu2) ...
Setting up shared-mime-info (2.1-2) ...
Setting up libfuse3-3:amd64 (3.10.5-1build1) ...
Setting up fuse3 (3.10.5-1build1) ...
Setting up sshfs (3.7.1+repack-2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...
--- Install Telepresence In Cluster ---
Launching Telepresence User Daemon

Traffic Manager installed successfully
---- Waiting For Telepresence Pod ----
pod/traffic-manager-5db77bff74-lxwhz condition met
--- Connect To Cluster ---
Launching Telepresence Root Daemon
Connected to context kind-kind (https://<IP_ADDRESS>:44963)
HTTP/2 403
audit-id: 587bed81-e214-4645-9f3b-b86cc98b003a
cache-control: no-cache, private
content-type: application/json
x-content-type-options: nosniff
x-kubernetes-pf-flowschema-uid: 61135344-b4e8-4a72-ae12-e9e9f93a2d4d
x-kubernetes-pf-prioritylevel-uid: 61050f7e-2075-403c-8526-aa0736c88991
content-length: 217
date: Mon, 12 Jun 2023 10:41:31 GMT

{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "forbidden: User \"system:anonymous\" cannot get path \"/\"",
  "reason": "Forbidden",
  "details": {},
  "code": 403
}

When I boot up the devcontainer, there is often the old kind cluster still there. It causes issues when trying to delete it.
We should add commands to tear down old resources.

There is a script for deleting the cluster ./scripts/delete-cluster.sh, it's mentioned at the end of the README.

Missing information how to access Keycloak

There is a script for deleting the cluster ./scripts/delete-cluster.sh, it's mentioned at the end of the README.

I tried it but it doesn't work. There are some issues on my machine.

There are no instructions how to login to keyclaok and enable the user.

There is a script for deleting the cluster ./scripts/delete-cluster.sh, it's mentioned at the end of the README.

I tried it but it doesn't work. There are some issues on my machine.

What are the issues?

There is a script for deleting the cluster ./scripts/delete-cluster.sh, it's mentioned at the end of the README.

I tried it but it doesn't work. There are some issues on my machine.

What are the issues?

Not sure, but resolved them by restarting docker service. The rest works.

Works for me.


Shop notifications

Just a little suggestion:
It would be nice to have a toggleable notification every time someone buys from your chest shop. It could include the amount of money received, from whom you received it and your new balance. Just something people have been asking for on my little server. It might start some discourse about fairness in prices or just thanking someone. Thanks for your time.

Shouldn't be too hard :thinking:.
Add a message, add a new toggleable player option and send that message when an item is bought.


Change betas gammas

Description
Change the structure of the qaoa.results.optimized and qaoa.results.intermediate for the angles.
Before, it was a list [beta0, beta1, ..., gamma0, gamma1,...].
Now, the structure is {"betas": [list], "gammas":[list]} for both of them.
Checklist

[x] I have performed a self-review of my code.
[x ] I have commented my code and used numpy-style docstrings
[x ] I have made corresponding updates to the documentation.
[x] My changes generate no new warnings
[x] I have added/updated tests to make sure bugfix/feature works.
[x] New and existing unit tests pass locally with my changes.

Type of change
Please delete options that are not relevant.

[x] Enhancement
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Name the new unit-tests that you have added along with this change.

Does this change only work in the case of Standard Parameterization or all parameterizations? For example, in the case of Extended and Fourier, the keys will be betas_singles, betas_pairs, gammas_singles, gammas_pairs, and v, u respectively.


Fast Path

This is a private preview STG 83 feature.

API changes have been detected in Azure.Storage.Files.DataLake. You can review API changes here


Docs: setup HW entropy for TLS

Sometimes at boot time happens this error in connection to crossbar (wss://). But after boot if I try to restart my service, it works fine.
Autobahn v18.10.1
Python 3.5.3
2018-11-22 16:10:41.398 474 INFO autobahn.asyncio.component.Component [-] connecting once using transport type "websocket" over endpoint "tcp"
2018-11-22 16:10:41.408 474 ERROR asyncio [-] Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x755234f0>
transport: <_SelectorSocketTransport closing fd=8 read=idle write=<idle, bufsize=0>>: ssl.SSLError: getrandom() initialization failed. (_ssl.c:720)
2018-11-22 16:10:41.408 474 ERROR asyncio Traceback (most recent call last):
2018-11-22 16:10:41.408 474 ERROR asyncio   File "/usr/lib/python3.5/asyncio/sslproto.py", line 635, in _process_write_backlog
2018-11-22 16:10:41.408 474 ERROR asyncio     self._on_handshake_complete)
2018-11-22 16:10:41.408 474 ERROR asyncio   File "/usr/lib/python3.5/asyncio/sslproto.py", line 135, in do_handshake
2018-11-22 16:10:41.408 474 ERROR asyncio     ssldata, appdata = self.feed_ssldata(b'', only_handshake=True)
2018-11-22 16:10:41.408 474 ERROR asyncio   File "/usr/lib/python3.5/asyncio/sslproto.py", line 201, in feed_ssldata
2018-11-22 16:10:41.408 474 ERROR asyncio     self._sslobj.do_handshake()
2018-11-22 16:10:41.408 474 ERROR asyncio   File "/usr/lib/python3.5/ssl.py", line 641, in do_handshake
2018-11-22 16:10:41.408 474 ERROR asyncio     self._sslobj.do_handshake()
2018-11-22 16:10:41.408 474 ERROR asyncio ssl.SSLError: getrandom() initialization failed. (_ssl.c:720)
2018-11-22 16:10:41.408 474 ERROR asyncio
2018-11-22 16:10:41.418 474 INFO autobahn.asyncio.component.Component [-] Connection failed: SSLError: getrandom() initialization failed. (_ssl.c:720)

Any suggestion?

yeah, insufficient entropy seems like a plausible explanation. I have never seen it myself before, but there is some stuff on the web, eg https://stackoverflow.com/a/50590564/884770
could you try sudo apt install rng-tools and see if that ends the intermittent failures?
also (no clue what's needed here to actually use the HW):
(cpy371_1) oberstet@thinkpad-x1:~/scm/xbr/xbr-protocol$ cat /etc/default/rng-tools
# Configuration for the rng-tools initscript
# $Id: rng-tools.default,v <IP_ADDRESS> 2008-06-10 19:51:37 hmh Exp $

# This is a POSIX shell fragment

# Set to the input source for random data, leave undefined
# for the initscript to attempt auto-detection.  Set to /dev/null
# for the viapadlock and tpm drivers.
#HRNGDEVICE=/dev/hwrng
#HRNGDEVICE=/dev/null

# Additional options to send to rngd. See the rngd(8) manpage for
# more information.  Do not specify -r/--rng-device here, use
# HRNGDEVICE for that instead.
#RNGDOPTIONS="--hrng=intelfwh --fill-watermark=90% --feed-interval=1"
#RNGDOPTIONS="--hrng=viakernel --fill-watermark=90% --feed-interval=1"
#RNGDOPTIONS="--hrng=viapadlock --fill-watermark=90% --feed-interval=1"
#RNGDOPTIONS="--hrng=tpm --fill-watermark=90% --feed-interval=1"

https://www.howtoforge.com/helping-the-random-number-generator-to-gain-enough-entropy-with-rng-tools-debian-lenny

Component try to re-connect after this happens

Actually I noticed that happens at each reboot.
The HW is a raspberry pi 3 module.
As you suggest I will try to install/configure rng-tools and I will let you know. THX

just tested on a current intel cpu, using rngtest -c 100000 < /dev/random shows the HW rnd is actually used:
  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     ZEIT+ BEFEHL
16063 root      20   0    9916    128      0 R  87,4  0,0   1:05.78 rngd
16303 oberstet  20   0    4520    784    720 S  46,5  0,0   0:20.49 rngtest

with rngtest -c 100000 < /dev/urandom, the HW rng seems only be used for seeding.
(cpy371_1) oberstet@thinkpad-x1:~/scm/xbr/xbr-protocol$ rngtest -c 100000 < /dev/urandom
rngtest 5
Copyright (c) 2004 by Henrique de Moraes Holschuh
This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

rngtest: starting FIPS tests...
rngtest: bits received from input:<PHONE_NUMBER>
rngtest: FIPS 140-2 successes: 99919
rngtest: FIPS 140-2 failures: 81
rngtest: FIPS 140-2(2001-10-10) Monobit: 16
rngtest: FIPS 140-2(2001-10-10) Poker: 6
rngtest: FIPS 140-2(2001-10-10) Runs: 37
rngtest: FIPS 140-2(2001-10-10) Long run: 23
rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
rngtest: input channel speed: (min=241.437; avg=1291.197; max=1733.953)Mibits/s
rngtest: FIPS tests speed: (min=17.245; avg=100.947; max=111.541)Mibits/s
rngtest: Program run time: 20380721 microseconds
(cpy371_1) oberstet@thinkpad-x1:~/scm/xbr/xbr-protocol$ rngtest -c 100000 < /dev/random
rngtest 5
Copyright (c) 2004 by Henrique de Moraes Holschuh
This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

rngtest: starting FIPS tests...
rngtest: bits received from input:<PHONE_NUMBER>
rngtest: FIPS 140-2 successes: 99913
rngtest: FIPS 140-2 failures: 87
rngtest: FIPS 140-2(2001-10-10) Monobit: 8
rngtest: FIPS 140-2(2001-10-10) Poker: 12
rngtest: FIPS 140-2(2001-10-10) Runs: 33
rngtest: FIPS 140-2(2001-10-10) Long run: 35
rngtest: FIPS 140-2(2001-10-10) Continuous run: 0
rngtest: input channel speed: (min=1.264; avg=6.875; max=9.300)Mibits/s
rngtest: FIPS tests speed: (min=11.973; avg=90.071; max=110.251)Mibits/s
rngtest: Program run time: 298647882 microseconds

I installed that tool
sudo apt install rng-tools
then un-comment this line in /etc/default/rng-tools conf file:
HRNGDEVICE=/dev/hwrng
and enable/start the service:
`systemctl enable rng-tools
systemctl start rng-tools
`
The system properly booted many times so for me the problem is solved! Thanks guys for the support!

thanks for reporting back! we'll add it to the docs (hence I reopen this issue)

For me, simply installing rng-tools resolved the issue.
sudo apt install rng-tools


AFNetworking v3.1.0 multipartFormRequestWithMethod Uploads JSON Numeric Values With Quotes

I've written up an SO post describing what appears to be an AFNetworking bug: See https://stackoverflow.com/questions/37449472/afnetworking-v3-1-0-multipartformrequestwithmethod-uploads-json-numeric-values-w

@crspybits Would you be able to create a unit test demonstrating the issue so we can hone in on the problem?

:) He who raises an issue gets to help with the issue? :)
I'd have to (a) figure out the structure of your unit tests, and (b) figure out how to simulate the receiving of such a multipartFormRequestWithMethod request by a server. Any pointers in the right direction? Thanks!

You should just be able to exercise the creation of the request and inspecting the body.
And yes! That helps focus on the problem if you can provide a specific failing test condition!

@crspybits I believe you are misusing the AFJSONRequestSerializer  with a call to multipartFormRequestWithMethod.... The final result of that call will create a http request whose body is not JSON, but a multipart/form-data. Instead you should convert your params to JSON string yourself, and put that string as a value of your params dict, like let params = ["somekey": jsonstring]. In your server code, read the JSON string like const jsonstring = request.body['jsonstring'], and parse that to JSON.

Good call! I just did some poking around with this and completely agree with this. If on my client, I send the dictionary:
["Test" : 1, "Test2": 2]

on my server I get (after pulling the data out of the body stream):
--Boundary+162CCC2FB7259822
Content-Disposition: form-data; name="Test"
1
--Boundary+162CCC2FB7259822
Content-Disposition: form-data; name="Test2"
2
--Boundary+162CCC2FB7259822--
as you point out multipart/form-data is received , not JSON data. Interesting. It seems clear that what's going on is that some of the 3rd party Node.js packages I'm using are being smarter than I expected. It looks like body-parser is converting this form data into JSON. On the client side, multipartFormRequestWithMethod must be mapping the parameters into this form data structure.
The AFNetworking documentation for multipartFormRequestWithMethod in terms of the parameters reads: "The parameters to be encoded and set in the request HTTP body". I'm not sure if I read this documentation originally, but I'm also not sure if I'd have interpreted that as creating the encoding I observe. I'll add in changes as you recommend.
In a bigger picture, when uploading a file with AFNetworking and wanting at the same time to ship JSON data up to the server, is there a better technique? Thanks!!

In my project where I use AFNetworking, I also need to upload images along with some JSON data. I used the same method as I described above.
I'm not aware of other techniques due to limited knowledge. Keep our minds open though.

Thanks, and thanks to you folks for helping me resolve this issue!!


Implement Loading and Error States throughout the app

As of now, there is no way for the user to know what is happening unless the result is successful.
Also in case of failure of API, an option for retry should be there.

Sir can I would like to work on this issue please assign this to me .

Sure @AkshaiBaruah. Raise the PR against Devlop branch for this


Revert "WFLY-4305: exit immediately on non-zero status"

Reverts wildfly/wildfly#7153
See Tom's comment on https://issues.jboss.org/browse/WFLY-4305 for why.

Windows Build 1097 is now running using a merge of 8808cc92911bb484c8339f32b5aeb1facdf43db1

Linux Build 5984 is now running using a merge of 8808cc92911bb484c8339f32b5aeb1facdf43db1

Linux with security manager Build 963 is now running using a merge of 8808cc92911bb484c8339f32b5aeb1facdf43db1

Linux with security manager Build 963 outcome was SUCCESS using a merge of 8808cc92911bb484c8339f32b5aeb1facdf43db1
Summary: Tests passed: 840, ignored: 319 Build time: 0:04:59

Windows Build 1097 outcome was SUCCESS using a merge of 8808cc92911bb484c8339f32b5aeb1facdf43db1
Summary: Tests passed: 2929, ignored: 314 Build time: 0:46:07

Linux Build 5984 outcome was SUCCESS using a merge of 8808cc92911bb484c8339f32b5aeb1facdf43db1
Summary: Tests passed: 2929, ignored: 314 Build time: 0:47:21


v1.7 backports 2020-11-23

#13912 -- ctmap: GC orphan SNAT entries (@brb)
#12832 -- metrics: add cilium_datapath_nat_gc_entries (@ArthurChiao)

Once this PR is merged, you can update the PR labels via:
$ for pr in 13912 12832; do contrib/backporting/set-labels.py $pr done 1.7; done

test-backport-1.7

test-backport-1.7

@brb Looks like https://github.com/cilium/cilium/pull/13912 requires a bit more diligence to backport. The latest compilation error I have is because of signal.SignalWakeGC which was introduced by https://github.com/cilium/cilium/pull/11684. Would you mind having a look into finishing this backport?

test-backport-1.7

	 kube-system   cilium-twv6q                   0/1     ImagePullBackOff   0          10m   <IP_ADDRESS>   k8s1   <none> :-(

test-backport-1.7

test-backport-1.7

test-backport-1.7

test-backport-1.7

Oh, snap, more stuff needs to be backported:
Stderr:
 	 # github.com/cilium/cilium/pkg/maps/ctmap [github.com/cilium/cilium/pkg/maps/ctmap.test]
	 pkg/maps/ctmap/ctmap_privileged_test.go:226:15: undefined: mapTypeIPv4AnyGlobal
	 pkg/maps/ctmap/ctmap_privileged_test.go:229:14: undefined: newMap
	 pkg/maps/ctmap/ctmap_privileged_test.go:229:35: undefined: mapTypeIPv4AnyGlobal
	 pkg/maps/ctmap/ctmap_privileged_test.go:235:15: undefined: mapTypeIPv4TCPGlobal
	 pkg/maps/ctmap/ctmap_privileged_test.go:238:14: undefined: newMap
	 pkg/maps/ctmap/ctmap_privileged_test.go:238:35: undefined: mapTypeIPv4TCPGlobal
	 pkg/maps/ctmap/ctmap_privileged_test.go:372:15: undefined: mapTypeIPv6AnyGlobal
	 pkg/maps/ctmap/ctmap_privileged_test.go:375:16: undefined: newMap
	 pkg/maps/ctmap/ctmap_privileged_test.go:375:37: undefined: mapTypeIPv6AnyGlobal
	 pkg/maps/ctmap/ctmap_privileged_test.go:381:15: undefined: mapTypeIPv6TCPGlobal
	 pkg/maps/ctmap/ctmap_privileged_test.go:381:15: too many errors
	 make: *** [tests-privileged] Error 1

test-backport-1.7

test-backport-1.7


macos catalina 'libintl.h' file not found

sys
macOS 10.15.5 (19F101) Catalina
ver
https://tar.goaccess.io/goaccess-1.4.tar.gz
configure with
./configure --enable-utf8
make stop at
In file included from src/commons.c:44:
./src/labels.h:33:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
         ^~~~~~~~~~~
1 error generated.
make[2]: *** [src/commons.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

any idea?

Does any of these help? Let me know. Thanks

Thank you verymuch!
I had read your link upstair before. but I don't want to use brew. and ,

try installing 'http://ftp.gnu.org/gnu/libtool/' ,
NO_GETTEXT=1 make,
google dev lib 'static-libintl-<IP_ADDRESS>-5.pkg' sound good but link broken.
...
not resolve yet.
still searching ...


[Test Framework] Adding traffic generation utility

This makes it easy to write long-running traffic generation tests.
Also re-working the revisioned upgrade test to use it.
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any changes that may affect Istio users.

@nmittler: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
8b0e6a65d30cd6759ef27781a151e2a5a59165b4
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@nmittler: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
96061ac9237a5123963c798022f6689cca5789cf
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@nmittler: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
96061ac9237a5123963c798022f6689cca5789cf
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@nmittler: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
96061ac9237a5123963c798022f6689cca5789cf
link
/test lint_istio

unit-tests_istio
96061ac9237a5123963c798022f6689cca5789cf
link
/test unit-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn PTAL


DeckArchive - Writing Null Values

The current code has a bug which writes a card to the DeckArchives database twice if the card appears in the main_deck and the sideboard. One card entry has the correct card_count for main_count & sideboard_count while the duplicate entry has NULL values for main_count and sideboard_count.
The bug is likely to be found around the line "deck.cards << card" in the deck.rb file.

Added an unless loop and solved the issue:
unless deck.cards.include?(card)
deck.cards << card
end


Feature: Hidden Cloud Statistics on main page

Hello,
Can you add a "Hidden" feature of the "Cloud Statistics" box on main jenkins page ?

This is hidden when user do not have necessary permissions: https://github.com/jenkinsci/cloud-stats-plugin/commit/7161d8cf9ac9178d6dff7a1b56d53fc8557aab3f
Does it cover your use-case?

Yes it is ! (https://issues.jenkins-ci.org/browse/JENKINS-46100)


add sell/buy order  book

add an sell/buy order book, to permit users exchange currency

Will this support fiat and if so, what would you use to transfer fiat?

i think PayPal, and stripe in first time, you thinking of something ?

Abandoned


CPU Usage in percentage

Describe the solution you'd like
I would like to have a feature that allows you to set an interval and get the current CPU usage in percentage. A constantly updating value.
Describe alternatives you've considered
Other node packages, node-os-utils. I am so satisfied with systeminformation that I would love to only use it for my project and not other old and bad packages.

I believe si.currentLoad() will give you what you're looking for. Here are the docs for it: https://systeminformation.io/processes.html

@TrygveDev ... it seems that I prepared an answer but never posted it back ... sorry!
As @KasimAhmic said, the function is.currentLoad() is the one that will provide you with CPU usage in percent.
I have intentionally not implemented a function that reads the values in an interval, because it should be kind of straight forward to do so:
const si = require('systeminformation');
setInterval(function() {
	si.currentLoad().then(data =>
		console.log(data));
}, 1000)

Or, if you like to have a certain set of values you like to have regulary, the get() function could also work:
const si = require('systeminformation');
valueObject = {
  currentLoad: 'currentLoad',
  mem: 'free'
}
setInterval(function() {
	si.get(valueObject).then(data =>
		console.log(data));
}, 1000)

Would this make sense?? If you want to observe a change of a value there is also the observe() function (see https://systeminformation.io/statsfunctions.html)

Thanks for the help! This is exactly what I was looking for. 😁
However, I have two problems.
First, the percentage returned with "currentLoad" fluctuates a lot. From 33-55% in a second while windows task manager is saying that my CPU is at 57-60%. Is "currentLoad" giving me the wrong data or is windows task manager the one that is wrong?
Secondly, when i do this;
setInterval(function() {
	si.get(valueObject).then(data =>
		console.log(data));
}, 1000)

I get new data every second.
However, if the promise of the call is not resolved within a second and the interval loops again making a new call, the app starts draining CPU percentage. I have an app with 5 calls like the one above (I am making a task manager type app with electron). Now the first couple of seconds are alright, however, the CPU percentage is rising up to 80% usage from my app. I solved this by only making a new call once data is returned. Am I doing something wrong or is it supposed to be like this?
Code can be found in my public repository called Centrl if needed.

@TrygveDev you are right, in Windows things get a little more complicated.

the needed calls in windows really eats up resources. Much more than in other environments!
when running the call every second, this will then lead in to a high overall CPU load
I highly recommend making the interval much bigger in windows (5 secs) ...


Skip over unsupported instructions instead of panicking

Fixes #2969
This changes wasm-bindgen-wasm-interpreter to ignore a function rather than panicking if it contains an unsupported instruction. This works around some runtime glue that gets added to our descriptor functions on the WASI target by more-or-less ignoring them.
I also put some work into making sure a helpful error message is given if the actual describe function contains unsupported instructions, by keeping track of the instructions that caused us to skip and including them in the error message if the descriptor is invalid.

I think that the better error messages here are definitely good to have, but I would prefer to not skip over unknown functions. We can't really say ahead of time whether they'll be crucial to the execution and final result or not, so I wouldn't be comfortable automatically skipping them.

I will close this for now as it mostly addresses a WASI issue, apart from what alexcrichton said.
See #3421.


New Port for TurboTableTennis and Xenon Valkyrie and Roguelight

New Port for TurboTableTennis
URL: https://menacingmecha.itch.io/turbo-table-tennis
TurboTableTennis
Instructions: All game files are included
Controls:
up = serve
left/right = movement
A = play again
Notes: Special thanks to MenacingMecha for creating the game and allowing us to distribute, and to tabreturn for assisting with the port.
Tested on:
RG351V/AmberELEC
RG353P/JelOS
RG353VS/ArkOS
OGA/ArkOS
X55/JelOS

I see information for TurboTableTennis but nothing for Xenon Valkyrie or Roguelight.  Please include information about those 2 additional ports.

New Port for Roguelight
New Port for Roguelight
URL: https://managore.itch.io/roguelight
Roguelight
Instructions: Download game from https://managore.itch.io/roguelight, copy data.win and .mp3 files to /ports/roguelight/gamedata
Controls:
dpad/l stick = movement
A = jump
X/R2 = nock arrow when held, fire when released
Notes:
Tested on:
RG351P/AmberELEC
RG351V/AmberELEC
RG353M/ArkOS
RG353P/JelOS
RG353VS/ArkOS/JelOS
OGA/ArkOS
X55/JelOS
RGB30/JelOS

Apologies, I did separate commits for the ports, I did not realize it would not include the info when it combined them into one PR. Won't happen again.


orderFields not working

I want to order the fileds in form, but orderFields not work.
        // ------ CRUD FIELDS         $this->crud->orderFields(['name', 'parent_id', 'lft'], 'update/create/both');
In the form parent_id remaining the first field.
Why?

What do you mean by "it doesn't work"?

if i use:
$this->crud->orderFields(['name', 'parent_id', 'lft'], 'update/create/both');
in form i have this order:
parent_id
lft
name.

@cerelli thanks for reporting this. Unit tests (currently being developed) should confirm this. @tumf87  have you stumbled upon this so far?

Hi @tabacitu, yes. Sort makes use of those ambiguous methods from the CrudPanel that need a bit of refactoring.

Hi,
I've made a PR for this but I just now realized that in the initial comment, @cerelli calls the method like this:
$this->crud->orderFields(['name', 'parent_id', 'lft'], 'update/create/both');
While this works, because the method will automatically order fields on both the create and update form in case the second parameter is neither 'create' or 'update', the correct call should have been:
$this->crud->orderFields(['name', 'parent_id', 'lft'], 'both');
or even simpler:
$this->crud->orderFields(['name', 'parent_id', 'lft']);
I think the phpDoc should be specify this more clearly.

Yeah... the way this has worked so far is that if you specify anything other than create or update it will actually be both. And I bet a lot of people have just left update/create/both in their code (programmer lazyiness FTW!). So IMO update/create/both should get interpreted into both.
Does your PR do this @tumf87 ?

It does, , although I argue that it shouldn't. I did not change that part for backwards compatibility.


chore: create dependabot.yml

This will create automatic PRs to update both dependencies + actions used in workflows, so we won't need manual PRs like #228 anymore

As requested by @voxpelli in https://github.com/xjamundx/eslint-plugin-promise/pull/219#issuecomment-979891417

Dupe of https://github.com/xjamundx/eslint-plugin-promise/pull/226

Ping @xjamundx


Multiple selection doesn't turn off

Hi, I have the following configuration:

ftree = $('#file-tree');
ftree.jstree({
    "core": {
        "data": {
            "url": 'driveaccess.php?action=tree',
            "data": function (node) {
                return { 'id': node.id};
            },
            "dataType": 'json'
        },
        "themes": {"dots": false},
        "multiple": false,
        "check_callback": true
    }
});

Even though I have multiple set to false, when I call ftree.jstree('select_node', id); for each node they all select instead of toggling the selected one off when another is selected. I tried ftree.jstree('deselect_all ', true); but it doesn't deselect anything!
I have the same problem with create_node which it doesn't work even though I have check_callback set to true!

ftree.jstree('create_node', '#', {id:"newId", text:"new node"}, "last", false, false);

You say, the select_node is low-level and recommend using activate_node instead. But in the API description activate_node is marked as private and internal, while select_node is public. This seems to be an inconsistency.
So which is a recommended API method for changing selection programmatically?


Migration error or misunderstanding

Having following nested class structure serialized:
public class MainClass
{
public SubClass Foo {get;set;}
}
public class SubClass
{
public SubSubClass Bar {get;set;}
}
public class SubSubClass
{
public string Type {get;set;}
}
Now SubSubClass is changed (Type -> Name), SubSubClassMigration added.
Trying to deserialize with:
var serializer = new ConfigurationContainer().ConfigureType().AddMigration(new SubSubClassMigration())).Create();
var obj = serializer.Deserialize(xmlWithOldVersionOfSubSubClass);
This is throwing exception in MigrationExtensions. What am I doing wrong? Is that scenario of only changing a sub sub class not supported? Thanks in advance

Hi @madben2000 thanks for writing in.  The migration story/functionality is something that was pulled in from v1, and we didn't really get to put much effort into it for v2.  I am not that familiar with it, but if you provide the code for the migration I could take a look into it when I get a chance.  Also, @wojtpl2 might be able to answer your question as he was the one that wrote the v1 version and has a better understanding of how it works and its supported scenarios. :)

Hi @madben2000 It should work. Please provide the code or whole example as pull request with failing test.
There is working example:
https://github.com/wojtpl2/ExtendedXmlSerializer/tree/master/samples/ExtendedXmlSerializer.Samples/MigrationMap

@wojtpl2 , @Mike-EEE please see https://github.com/madben2000/ExtendedXmlSerializer Issue178Tests.cs

Do you see anything obvious here, @wojtpl2 ?

@wojtpl2, @Mike-EEE Did my example help you? Any ideas/solutions?

Ah yeah I was going to take a look into it after I heard back from @wojtpl2 (or didn't hear back, as the case may be 😆), @madben2000.  Since this is a v1 extension I am not too familiar with it.  I basically made sure that it worked and the tests passed for the migration over to v2.
If we don't hear anything end of day then I shall start probing around for you.  In the meantime, have you considered looking into XSLT, perhaps?  It's one of the very many reasons I prefer XML over JSON (or any other format for that matter :)), and it was made for this very scenario if I understand correctly.

I dont have time this week. Maybe in next. Ive seen the code and this
example should work. We have some bug in our code. This migration need to
be used in list and maybe it is the problem? Mike can you check?
On Mon, Apr 16, 2018, 15:38 Mike-EEE<EMAIL_ADDRESS>wrote:

Ah yeah I was going to take a look into it after I heard back from
@wojtpl2 https://github.com/wojtpl2 (or didn't hear back, as the case
may be 😆), @madben2000 https://github.com/madben2000. Since this is a
v1 extension I am not too familiar with it. I basically made sure that it
worked and the tests passed for the migration over to v2.
If we don't hear anything end of day then I shall start probing around for
you. In the meantime, have you considered looking into XSLT, perhaps? It's
one of the very many reasons I prefer XML over JSON (or any other format
for that matter :)), and it was made for this very scenario if I understand
correctly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/wojtpl2/ExtendedXmlSerializer/issues/178#issuecomment-381601370,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQh-j-bZgmrz5fASpKYhdSIqBqrkeukLks5tpJ7CgaJpZM4TOF4f
.

@wojtpl2 If you give me a hint what you mean with

This migration need to be used in list and maybe it is the problem

then I could also try to debug it further

OK Mr. @madben2000 I super appreciate your persistence/patience and apologize for the delay.  I just checked in a fix you should now be able to run those tests and maybe find the next problem 😆.  There were two issues, one of which was how we were creating subtrees from the migration, and then another from how migrations coordinated with references.  Good find on both!  Please get the latest from our preview feed and let us know how it treats you:
https://www.myget.org/F/wojtpl2/api/v3/index.json

@Mike-EEE Big thanks!
Was my response helpful?

Woohoo!  Glad to hear @madben2000.  😄
@wojtpl2 indeed your point set me in the right direction.  We were supporting single elements but not entire trees... but we do now. 🤓
Going to close this issue now.  If you have any additional unexpected behavior please feel free to open an issue here and we'll take a look at it.

This issue was released in version 2.1.3. Release notes: #162


Refactor readme layout of configuration options

The layout of the configuration options of our current main stryker package readme is old fashion. We already started using a new layout for the configuration options in the stryker-mocha-runner package. We should also use that for the stryker package.
For example:
this:

Transpilers
Config file: transpilers: '['typescript']'
Default value: [ ]
Mandatory: no
Description:
With transpilers you configure which transpiler plugins should transpile the code before it's executed. This is an array where the transpilers are called in the other of the array. This defaults to an empty array meaning no transpilation will be done.

Should become like:

transpilers   [string[]]
Default: []
With transpilers you configure which transpiler plugins should transpile the code before it's executed. This is an array where the transpilers are called in the other of the array. This defaults to an empty array meaning no transpilation will be done.

Working on it!


[PATCH] Enable color functionality for Windows

I have been using GOMP on WSL (Windows Subsystem for Linux) for a while now and it's been great. I now need to use the "Window-side" terminals like Git Bash and Powershell, and this single line change enables the color functionality of GOMP to work in those terminals.

Thanks for the PR! Unfortunately the color command doesn't exist on unix systems, so running this on MacOS/Linux prints this before the diff:

I think we'll want to check the platform first (if platform.system() == 'Windows') and conditionally run this.

Hi @jeremy-mf, thanks for the comment! My apologies, I thought I had previously tested this change on my personal UNIX devices before I opened this PR. I've added your suggested conditional check and tested on macOS, Ubuntu, and Windows 11 (both Git Bash and WSL terminals).

Thank you!

I have published a new version of GOMP with this change. Thanks again for the PR! https://pypi.org/project/gomp/1.1.1/


Rebase v1.1.1

This brings in several fixes, including some resizing issues.
https://github.com/kubernetes-sigs/azuredisk-csi-driver/compare/v1.1.1...bertinatto:rebase-v1.1.1
CC @openshift/storage

/test e2e-azure-csi

/lgtm


INST-595 - Upgraded curl version to 7.71.0 in base images and added t…

…est to verify curl version installed

 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.


Correct approach to update objects and its N:N relationship

Issue happens when trying to use $row->setData($array) to update one of the objects and its relationships.
Consider that I have three tables: first, second and first_second used for the N:N relationship.
First thing I did was set the composite key for the N:N relationship table:
$db->setPrimary('first_second', array('first_id', 'second_id'));
Assume first and second both have two rows each, with their ids being 1 and 2.
Assume first_second has 3 rows:

first_id
second_id

1
1

1
2

2
1

So here I am, running this code:
$first_one = $db->first(1);
$second_two = $db->second(2);

$data = [
    'value' => 'changed something',
    'first_secondList' => [
        [
            'second' => $second_two,
        ],
    ],
];

$first_one->setData($data);
$first_one->save();

I expected it to break my relationship between first.id = 1 and second.id = 1 since I ommited it. Instead of it LessQL is trying to re-insert the relationship between first.id = 1 and second.id = 2 causing an error, here's the following output found after setting the callback to print the queries:
SELECT * FROM `first` WHERE `id` = '1'
SELECT * FROM `second` WHERE `id` = '2'
UPDATE `first` SET `value` = 'changed something' WHERE `id` = '1'
INSERT INTO `first_second` ( `first_id`, `second_id` ) VALUES ( '1', '2' )

Should I assume that the expected procedure is to delete all relationships first and re-set them?
Shouldn't it at least not try to insert an already existing object?
I got as far as figuring that the first_secondList object is treated as a new one because its $_originalId is empty and save() tries to insert it again after exists() returns false, but I have no idea why that isn't correctly filled.
Thanks in advance.

So it seems that $_originalId is empty because a new object is created when __set() (Row.php) finds I'm adding an column ending with 'List' and uses createRow() instead of finding the right object.
Now I'm thinking about how I should go about that.

Should I assume that the expected procedure is to delete all relationships first and re-set them?

Please reffer to: #45
If I include $first_one->first_secondList()->delete() before $first_one->setData($data) it will trigger the error I mentioned previously (if $first_one object didn't have any relationship with second table), which is why I assumed something was wrong with this approach, but dunno.

Good catch. Yeah #45 is a show stopper here, there's no workaround except querying before deleting :o sorry!

Fixed in #45


Schema keyed state

@reuvenlax - is this a work in progress or ready for reviews?

@aaltay still in progress


Links to absolute paths?

I tried this theme (0.0.3), and it generally looked nice, but I have a problem when deploying it to GitHub Pages.
The site was generated on my local machine and it took me some time to discover that there are several symbolic links pointing to absolute paths, which fail when publishing on the GitHub Pages servers:
ilg@wksi docs % find . -type l -exec ls -l '{}' ';'
lrwxr-xr-x  1 ilg  staff  83 Feb 18 21:54 ./stable -> /Users/ilg/My Files/WKS Projects/xpack.github/npm-modules/logger-ts.git/docs/v6.0.0
lrwxr-xr-x  1 ilg  staff  83 Feb 18 21:54 ./v6.0 -> /Users/ilg/My Files/WKS Projects/xpack.github/npm-modules/logger-ts.git/docs/v6.0.0
lrwxr-xr-x  1 ilg  staff  83 Feb 18 21:54 ./dev -> /Users/ilg/My Files/WKS Projects/xpack.github/npm-modules/logger-ts.git/docs/v6.0.0
ilg@wksi docs %

Is there any reason for not using relative paths in these symbolic links?

As a workaround, I added a shell script which I run after generating the site, to fix the absolute symlinks.
The deployment on GitHub Pages was successful! :-)

Hi Michael,
It looks like this issue belongs to the versions plug-in, not the yaf one. If so, could you transfer it to the correct project?

Please open an issue on typedoc-plugin-versions
I am a co-maintainer there.
Following the example github CID published there certainly does work as is.
Of course, this may be improved and your detailed input and suggestions will be appreciated.


Connection to SAP HANA failed - wrong provider for this platform

Hi guys,
I would like to use "SAP HANA Driver for SQLTools" in Windows 10 but I am getting an error when I try to setup a connection.
I have got Hana started locally in Docker and when I setup a connection and press "TEST CONNECTION" I am getting the following error "Running the contributed command: 'sqltools.testConnection' failed" and the log messages:
[1614092126771] INFO  (ext): EXECUTING COMMAND => sqltools.testConnection
[1614092126771] INFO  (ls): REQUEST RECEIVED => connection/TestConnectionRequest
['driver:saphana:error'] Connection to SAP HANA failed Error: Connection failed (RTE:[1000013] wrong provider for this platform (localhost:30041))

I wonder if it something specific for Windows because my colleague runs the same setup under Ubuntu and it works for him.
I had a look at previous issue: https://github.com/SAP/sap-hana-driver-for-sqltools/issues/66 and I ran provided code (test.js) to check the connection.
My connection JSON from VSCode:
{
    "connectionTimeout": 30,
    "hanaOptions": {
      "encrypt": true,
      "sslValidateCertificate": false,
      "sslCryptoProvider": "openssl"
    },
    "previewLimit": 50,
    "driver": "SAPHana",
    "name": "HANA Cloud Local Container",
    "group": "HANA Cloud",
    "server": "localhost",
    "port": 30041,
    "database": "SYSTEM",
    "username": "SYSTEM",
    "password": "Manager1"
  }

The connection was successful when I executed (test.js) with the following settings (sslCryptoProvider was commented out):
const settings = {
    "sqltools.connections": [
        {
            "connectionTimeout": 30,
            "hanaOptions": {
                "encrypt": true,
                "sslValidateCertificate": false,
                // "sslCryptoProvider": "openssl",
                // "key": "xxx"
            },
            "previewLimit": 50,
            "driver": "SAPHana",
            "name": "HANA Cloud Local Container",
            "server": "localhost",
            "port": 30041,
            "database": "SYSTEM",
            "username": "SYSTEM",
            "password": "Manager1"
        }]
}

and failed with this one:
const settings = {
    "sqltools.connections": [
        {
            "connectionTimeout": 30,
            "hanaOptions": {
                "encrypt": true,
                "sslValidateCertificate": false,
                "sslCryptoProvider": "openssl",
                // "key": "xxx"
            },
            "previewLimit": 50,
            "driver": "SAPHana",
            "name": "HANA Cloud Local Container",
            "server": "localhost",
            "port": 30041,
            "database": "SYSTEM",
            "username": "SYSTEM",
            "password": "Manager1"
        }]
}

The error log:
C:\Users\i325814\playground\hana-cloud-driver>node test
Connection to SAP HANA failed Error: Connection failed (RTE:[1000013] wrong provider for this platform (localhost:30041))
C:\Users\i325814\playground\hana-cloud-driver\node_modules\@sap\hana-client\lib\index.js:52
        ldb.__runCallbacks();
            ^

Error: Connection failed (RTE:[1000013] wrong provider for this platform (localhost:30041))
    at Socket.<anonymous> (C:\Users\i325814\playground\hana-cloud-driver\node_modules\@sap\hana-client\lib\index.js:52:13)
    at Socket.emit (events.js:314:20)
    at addChunk (_stream_readable.js:298:12)
    at readableAddChunk (_stream_readable.js:273:9)
    at Socket.Readable.push (_stream_readable.js:214:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:188:23) {
  code: -10709,
  sqlState: ''
}

C:\>node --version
v12.19.0

C:\>openssl version
OpenSSL 1.1.1i  8 Dec 2020

Could you please give me a hand with this?
Cheers,
Artur

I found the answer here: https://blogs.sap.com/2020/04/14/secure-connection-from-hdbsql-to-sap-hana-cloud/
HDBSQL on Windows uses mscrypto (not openssl) and the default Windows certificate store. I reckon HDBSQL uses Hana Client under the hood so I did not have to specify sslCryptoProvider at whole.

Thanks for the issue and the clarification!


Quasar CH5 project

Worth an add - https://github.com/danelewis/Questron-Ch5

Completely whiffed on this, good find! Added to list.


Support for ranch 1.4.0

Hi,
with the latest version of ranch (1.4.0) I noticed that error_lager_lager_h crashes with a case clause of the form:
[error] Lager event handler error_logger_lager_h exited with reason {'EXIT',{{case_clause,...

This seems due to the fact that the Event's Args returned by ranch are now of the form:
[Ref, Pid1, Integer, Pid2, Reason, Stacktrace]

I temporarily solved the situation by setting error_logger_format_raw to true, but you may want to adjust the case clauses to support the new format.

Thanks for the ticket. We will get this fixed in a future release!

I was working on this ticket today, but I can't find the code in ranch which emits the 5 element list as you describe it.  Do you have a better handle on where this this happening in ranch?

Thanks for looking into this. It turns out that it is cowboy itself logging a "ranch-style" message and not ranch itself:
https://github.com/ninenines/cowboy/blob/2.2.2/src/cowboy_stream_h.erl#L206

Ah, ok. Thanks. Don't have to fix it today, but thank you for getting back so quickly.


single key mode from file

Hi @albertobsd always thanks for your awesome work.
can you please implement single mode for file.
like if there are 100000 keys in input file and we set 64 range to scan for 100000 keys so program should pick 1 key first and scan whole range for first key if not found program switch to second one and scan whole range and so on. Thanks in advance

Why do you need to switch keys? Range #64 is very huge to search by address or  ripemd160. It will take you decades to make 1 pass.

Hi @albertobsd always thanks for your awesome work.
can you please implement single mode for file.
like if there are 100000 keys in input file and we set 64 range to scan for 100000 keys so program should pick 1 key first and scan whole range for first key if not found program switch to second one and scan whole range and so on. Thanks in advance

Why do you need to switch keys?'m sure that there is only one address in the 64 range with the balance being empty.

@sssergy поиграйся с -k

Now I can create as much as possible points. Just one bug left is first 5% at start used just one core and on last version it’s stops on 99% of creating bloom.

Sorry to heard that :(
yes the bug is also reported by zielar on https://github.com/albertobsd/keyhunt/issues/139
I wil put some effort to solve this ASAP but please be patient.
Regards!

This should be solved but if someone found some parameters that don't work please let me now

Hi @albertobsd always thanks for your awesome work.
can you please implement single mode for file.
like if there are 100000 keys in input file and we set 64 range to scan for 100000 keys so program should pick 1 key first and scan whole range for first key if not found program switch to second one and scan whole range and so on. Thanks in advance

I am about o finish a BSGS server that will do that on demand. I will le you know when it is finished

test if you want:
https://github.com/albertobsd/keyhunt/blob/main/BSGSD.md

test if you want:
https://github.com/albertobsd/keyhunt/blob/main/BSGSD.md

Does Bloom filter reload every time? After every request?

No, bloom and data are only reload every time tha you restart program, so if you don't restart this server version the data never will be reloaded.
So every request is processed almost inmediatly.


It's not work on main.ts

I import VueGoogleMaps on main.ts but it showed me type error.
TS2345: Argument of type 'typeof import("C:/mydirectory/@fawmi/vue-google-maps/types/index")' is not assignable to parameter of type 'Plugin_2'.   Property 'install' is missing in type 'typeof import("C:/mydirectory/@fawmi/vue-google-maps/types/index")' but required in type '{ install: PluginInstallFunction; }'
I saw this issue.
How can i solved it?

@YN00
Main.ts does not exist in the component, you should import main.js
Typescript support is planned and in work, but not final. That is why you should work with Javascript version.


Multiple Issues ...

EDIT: 12/30/2020
Created the entire SD from scratch.
Turns out: Allocation error is only a warning. So, ignore it.
Biggest issue is the missing TensorFlow wheel. I used this description to address the issue.
https://qengineering.eu/install-tensorflow-2.2.0-on-raspberry-pi-4.html
The following line only works without the <sudo -H>
sudo -H pip3 install tensorflow-2.2.0-cp37-cp37m-linux_armv7l.whl
Now most of the cases work, except the tracker always goes off into never never land. Will keep you posted.

I was so excited when I found this demo and still you did a wonderful job! It's just that I struggle to get the parts to work.
It seems since you started this project there has been many updates in many areas and nothing really matches anymore e.g. description in the blog and various versions of code and frameworks. Sorry, just my best guess. I'm new to raspi and ML on raspi with CORAL -- latter tech is cool but it appears more demos don't work for a newbie.
Hours in the only thing that works according to script is : rpi-deep-pantilt test pantilt. The thing moves! Yes.
As for the next one : rpi-deep-pantilt test camera it's not crashing but I also can't see anyting. Despite the fact that I have turned on raspi cam and rebooted .... I see the desktop on my TV.
rpi-deep-pantilt detect --edge-tpu seems to load the labels (shows is it but ...) but presents this afterwards. I guess some error
EDIT: investigated more and the error below only happens after CPU mem is at least set to 64MB. Prior to this things crash with different issues.

2020-11-29 16:36:18.764478: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 307200 exceeds 10% of free system memory.
2020-11-29 16:36:22.000636: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 307200 exceeds 10% of free system memory.
2020-11-29 16:36:22.023519: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 307200 exceeds 10% of free system memory.
2020-11-29 16:36:22.072725: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 307200 exceeds 10% of free system memory.
2020-11-29 16:36:22.093627: W tensorflow/core/framework/cpu_allocator_impl.cc:80] Allocation of 307200 exceeds 10% of free system memory.

Now, this is only after I installed the latest ftlite framework from the Coral website. Prior to this there were other issues.
I understand you are doing this in your spare time and I truly appreciate you sharing this. Please don't take the text above as a rant. By no means is it meant that way.
I'm just wondering if there is some help you can offer on how to check if the correct libs are in place .... and how to make this work. I'm almost 3 days in with fiddling and now want to see it work.
Thanks in advance, Dirk
p.s. your blog still says:
pip install https://github.com/leigh-johnson/Tensorflow-bin/blob/master/tensorflow-2.0.0-cp37-cp37m-linux_armv7l.whl?raw=true
which leads into this error:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting tensorflow==2.0.0
ERROR: HTTP error 404 while getting https://github.com/leigh-johnson/Tensorflow-bin/blob/master/tensorflow-2.0.0-cp37-cp37m-linux_armv7l.whl?raw=true
ERROR: Could not install requirement tensorflow==2.0.0 from https://github.com/leigh-johnson/Tensorflow-bin/blob/master/tensorflow-2.0.0-cp37-cp37m-linux_armv7l.whl?raw=true because of HTTP error 404 Client Error: Not Found for url: https://github.com/bitsy-ai/tensorflow-arm-bin/blob/main/tensorflow-2.0.0-cp37-cp37m-linux_armv7l.whl for URL https://github.com/leigh-johnson/Tensorflow-bin/blob/master/tensorflow-2.0.0-cp37-cp37m-linux_armv7l.whl?raw=true

Moehrenbaum,
You are correct that 10% CPU memory is just warning & it has nothing to do with rpi-deep-pantilt and you can ignore that.
I'm newbie too, obviously you saw Legh's post at Toward Data Science as you stated "pip install https://github.com/leigh-johnson/Tensorflow-bin/blob/master/tensorflow-2.0.0-cp37-cp37m-linux_armv7l.whl?raw=true".
You are leaving this message at Github that actually specify "$ pip install https://github.com/leigh-johnson/Tensorflow-bin/releases/download/v2.2.0/tensorflow-2.2.0-cp37-cp37m-linux_armv7l.whl" which I don't think it is same version as you installed(Leigh stated it is "community-built wheel" which imply it is special version).
I also noticed it takes multiple attempts to Pip install that file but I was able to install in 4th try about few weeks ago.
If you are using Coral USB, follow in step 12 in Toward Data Science blog.
Cheers!

Moehrenbaum,
You are correct that 10% CPU memory is just warning & it has nothing to do with rpi-deep-pantilt and you can ignore that.
I'm newbie too, obviously you saw Legh's post at Toward Data Science as you stated "pip install https://github.com/leigh-johnson/Tensorflow-bin/blob/master/tensorflow-2.0.0-cp37-cp37m-linux_armv7l.whl?raw=true".
You are leaving this message at Github that actually specify "$ pip install https://github.com/leigh-johnson/Tensorflow-bin/releases/download/v2.2.0/tensorflow-2.2.0-cp37-cp37m-linux_armv7l.whl" which I don't think it is same version as you installed(Leigh stated it is "community-built wheel" which imply it is special version).
I also noticed it takes multiple attempts to Pip install that file but I was able to install in 4th try about few weeks ago.
If you are using Coral USB, please follow in step 12 in Toward Data Science blog.
I've also noticed that discrepancy between Toward & Github post but I must still give her all the credit for sharing this code with us and it is up to us carefully try one post after another or combination and further reading through all available issue posted including closed post.
Cheers!

Martin2kid, thanks again for helping out. I got it all working. I guess I simplified to my skill level :) AND a big thanks to Leigh for sharing her awesome work.


[FRONTEND + Integration] Create API Keys Page

Create a section in dashboard for users to generate API key

@BRAVO68WEB I can work on this, but do provide some suggestions for this!

Alright


On the about screen, the background color of the top app bar differs from the Figma design when scrolling

actual
expect

:raising_hand:

@chickenjr Thanks! Assigned!


[Feature Request] Remove torch from CAMEL dependency

Required prerequisites

[X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
[ ] Consider asking first in a Discussion.

Motivation
torch is too heavy and not used regular, test whether we can remove torch
Solution
No response
Alternatives
No response
Additional context
No response

we can check all of the dependency by command: poetry show --tree
and the below libs used torch:

accelerate
diffusers
sentence-transformers
transformers
unstructured

And all of the libs are set to optional installation optional = true.
so, if the camel users install the camel lib by pip install camel-ai or pip install -e . , the torch lib will not be installed.
if the users install the camel in a dev mode, the torch should be installed.
SO, I think we can keep our current setting. I

the unstructured required the torch library to be installed.  ref.
so we can not remove the torch if we need unstructured .


Attrribute methods not running

Posted this one to Slack, but haven't noticed activity there in a few months so reposting into an issue for brevity. Using latest tag 0.7.3, Ruby 2.6.6.
I've been beating my head against an issue all day long that I just can't figure out. I'm looking for some guidance or tips on how to debug this.
Panko is serializing json differently between different containers on both CircleCI and Heroku Production. I have three Serializers, one of them (ContactSerializer) is returning nil instead of the result of the method:
class CommentSerializer < Panko::Serializer
  has_one :user, serializer: UserSerializer, only: %i[id scoped_contact]
end

class UserSerializer < Panko::Serializer
  has_one :scoped_contact,
          serializer: ContactSerializer,
          name: :contact,
          only: %i[id photo_url full_name]
end

class ContactSerializer < Panko::Serializer
  attributes(*Contact.attribute_names.map(&:to_sym))
  attributes(:photo_url, :full_name)

  has_one :user, serializer: UserSerializer

  def photo_url
    ContactDecorator.new(object).photo_or_gravatar_url(88)
  end

  def full_name
    object.full_name
  end
end

In some containers, it is returning {:contact=>{:full_name=>nil, :id=>131, :photo_url=>nil} and in other containers, it returns valid values for full_name and photo_url. On the failing containers, I can comment out has_one :user, serializer: UserSerializer and it works fine, but why would this behavior be different on identical environments?
My best hunch right now is that there is a race condition when my gems are installed with bundle install --jobs=4, possible that Panko native extensions are conflicting with another library? Again, just need some direction on how to troubleshoot this. I have tried to reinstall gems without concurrent install with bundle install --force, but this does not resolve the issue on the failed containers. Any help would be much appreciated!

Hi @PhilCoggins ,
I don't think this can issue can be because of how gems are installed on your system.
Is there any difference between those containers - Are they are serving the same endpoint and sometimes returns different results?
Can you try and create minimal reproduction of your code using https://github.com/rails/rails/blob/master/guides/bug_report_templates/active_record_gem.rb  - schema, serializers and create an object that has bad serialization and I'll try to reproduce it as well?

Hi @yosiat thank you for the speedy response.
The containers are identical AFAICT, and the test case is the exact same and data is returned as expected, but somehow the attribute methods are not being called (though the standard attribute methods are). I've been working on a reliable reproduction, I will update this issue as soon as I get one.

@yosiat You are correct, this was not an issue with gem installation. My UserSerializer and ContactSerializer were a circular dependency, where ContactSerializer would attempt to load UserSerializer when it encountered the has_one :user relationship, which in turn would try to load ContactSerializer when it encountered the has_one :scoped_contact relationship.
To be honest, I have no idea how my autoloader (Zeitwerk) resolves this, but the reason this was intermittent is because the load order of the files was inconsistent between containers. If the ContactSerializer was loaded before the UserSerializer, I would get the error condition with full_name and photo_url being nil (presumably due to some method_missing logic?). If the UserSerializer got loaded first, then it would succeed. My best guess is that ContactSerializer simply stopped loading any code after it encountered the has_one :user relationship, possibly to resolve the circular dependency, and thus full_name and photo_url would never get defined. Or maybe they were defined, but UserSerializer is holding a reference to a version of ContactSerializer that has changed after UserSerializer was defined.
My "fix" was to move the has_one :user declaration below the full_name and photo_url methods, no more intermittent errors 🎉 .
I think this could be made more reliable. When you define relationships on an ActiveRecord model, they allow you to pass an argument class_name (like passing serializer in Panko) that is the constant name as a string, that is then lazily loaded. This is very useful as it will likely only be called after all files have been loaded.
Would you consider supporting a similar API that uses serializer: "UserSerializer", or alternatively I've seen something like serializer: -> { UserSerializer } in other libraries. IMO the current behavior should be deprecated - it seems that circular dependencies with these serializers would be fairly common. For example I might have a PostSerializer and CommentSerializer that refer to each other when they are serialized (If I want post JSON, then I would to include comments, and if I want comment JSON, then I would it to include the post). The nature of Rails' autoloading makes these types of issues very difficult to debug, I'd hate for your other users to to have to go through this.
I wrote a test script which helped me identify this issue, but it's not a true repro as these single-file test scrips don't load classes and files in the same manner as would happen in a Rails environment. If you need I'd be happy to push a sample Rails app to demo this issue.

@PhilCoggins  sorry for replying one year later!
I implemented your suggestion here - https://github.com/panko-serializer/panko_serializer/pull/108, I hope it will solve this issue with circular dependency you have.
If you can run you tests with this branch and let me know if it solves the issue it will be amazing.


Expose SE3ToVector

Hello,
Would it be possible to expose tsid::math::SE3ToVector(const pinocchio::SE3 & M, RefVector vec) (and maybe tsid::math::vectorToSE3(RefVector vec, pinocchio::SE3 & M)) in Python ?
In fact, using SE3 equality constraint is not very user-friendly in Python as it's not clearly specified in the doc if the rotation matrix should be transformed to vector in column-major or row-major, and the default numpy.flatten() does not do it the right way (numpy.flatten('F') must be used).

Sure that would be possible. But could I ask you in which scenario you need such method?
If you create a TrajectorySE3Constant, you can directly specify an SE3 object in the constructor, and then use the method TrajectorySE3Constant::computeNext to convert it to a TrajectorySample, which contains the corresponding vectorized position, velocity and acceleration.

There are these features already exposed in Pinocchio: SETToXYZQuat

There are these features already exposed in Pinocchio: SETToXYZQuat

Actually SE3ToVector does something different, see here: https://github.com/stack-of-tasks/tsid/blob/master/src/math/utils.cpp#L32

Sure that would be possible. But could I ask you in which scenario you need such method?

It is in the scenario where I got a temporal plan for one of my end effector, and I want it to follow it. So at each step I want to manually set the TaskSE3Equality value, derivative and second derivative with the values (SE3 and vectors) coming from my plan.

If you create a TrajectorySE3Constant, you can directly specify an SE3 object in the constructor, and then use the method TrajectorySE3Constant::computeNext to convert it to a TrajectorySample, which contains the corresponding vectorized position, velocity and acceleration.

I could use this method, but it seemed strange to me to use a TrajectorySE3Constant, set it to a value, then use computeNext and finally modify the result sample to set it to my desired velocity and acceleration.

Sorry @EtienneAr for the long delay, I dropped the ball on this one. Do you still need SE3ToVector in Python? If so, I am in favor of adding this feature.

I found a work-around by doing :
ee_pos_vec = np.concatenate((ee_pos.translation, ee_pos.rotation.flatten('F')))
so I don't "need" it anymore.
But I think that it would be nice to add it anyway, to have a consistent API, because :

[..] using SE3 equality constraint is not very user-friendly in Python as it's not clearly specified in the doc if the rotation matrix should be transformed to vector in column-major or row-major, and the default numpy.flatten() does not do it the right way (numpy.flatten('F') must be used).

(I am sorry that I cannot expose this by myself and do a PR as I don't have enough practice with Boost.Python to expose a new class from scratch.)

Solved by #178.