Nested enumeration of one Container's Elements causes missing elements in outer enumerator

Consider the following code in a Visitor:
private List currentList;

public override VisitList(List list)
{
    this.currentList = list;
    base.VisitList(list);
}

public override VisitItem(Item item)
{
    Console.WriteLine(this.currentList.Elements.Count());
    base.VisitItem(item);
}

For a List containing 4 Item elements, you'd expect to see the following on the Console:
4
4
4
4

What you actually get is this:
4

This is caused by CachedEnumerableImpl<T>.GetEnumerator():
public IEnumerator<T> GetEnumerator()
{
    foreach (var item in cache)
    {
        yield return item;
    }

    if (enumerator == null)
        enumerator = enumerable.GetEnumerator();

    while (enumerator.MoveNext())
    {
        cache.Add(enumerator.Current);
        yield return enumerator.Current;
    }
}

The VisitList(List) enumerator gets to the second yield statement and calls VisitItem(Item) for the first Item it gets. VisitItem(Item) then re-uses the same enumerator instance and enumerates over the remaining elements. As VisitList(List)'s enumerating resumes, enumerator has moved to the end of the enumeration and enumerator.MoveNext() returns false (and the remaining Item elements are skipped)...


OCM-8441 | test: Expose NAT gateway settings for vpc preparation.

What this PR does / why we need it:
We need to automate negative scenarios to make cluster goes into error.
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story (OCM-xxxx):
Fixes #
OCM-8441 | test: Expose NAT gateway settings for vpc preparation.
Change type

[ ] New feature
[ ] Bug fix
[ ] Build
[x] CI
[ ] Documentation
[ ] Performance
[ ] Refactor
[ ] Style
[ ] Unit tests
[ ] Subsystem tests

Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.

lixue@Xue-Lis-MacBook-Pro rosa-classic % terraform apply -var aws_region=us-west-2 -var name=xueli -var enable_nat_gateway=false -auto-approve
data.aws_availability_zones.available: Reading...
data.aws_availability_zones.available: Read complete after 1s [id=us-west-2]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the
following symbols:
  + create

Terraform will perform the following actions:

  # module.vpc.aws_default_network_acl.this[0] will be created
  + resource "aws_default_network_acl" "this" {
      + arn                    = (known after apply)
      + default_network_acl_id = (known after apply)
      + id                     = (known after apply)
      + owner_id               = (known after apply)
      + tags                   = {
          + "Name" = "xueli-vpc-default"
        }
      + tags_all               = {
          + "Name" = "xueli-vpc-default"
        }
      + vpc_id                 = (known after apply)

      + egress {
          + action          = "allow"
          + from_port       = 0
          + ipv6_cidr_block = "::/0"
          + protocol        = "-1"
          + rule_no         = 101
          + to_port         = 0
        }
      + egress {
          + action     = "allow"
          + cidr_block = "<IP_ADDRESS>/0"
          + from_port  = 0
          + protocol   = "-1"
          + rule_no    = 100
          + to_port    = 0
        }

      + ingress {
          + action          = "allow"
          + from_port       = 0
          + ipv6_cidr_block = "::/0"
          + protocol        = "-1"
          + rule_no         = 101
          + to_port         = 0
        }
      + ingress {
          + action     = "allow"
          + cidr_block = "<IP_ADDRESS>/0"
          + from_port  = 0
          + protocol   = "-1"
          + rule_no    = 100
          + to_port    = 0
        }
    }

  # module.vpc.aws_default_route_table.default[0] will be created
  + resource "aws_default_route_table" "default" {
      + arn                    = (known after apply)
      + default_route_table_id = (known after apply)
      + id                     = (known after apply)
      + owner_id               = (known after apply)
      + route                  = (known after apply)
      + tags                   = {
          + "Name" = "xueli-vpc-default"
        }
      + tags_all               = {
          + "Name" = "xueli-vpc-default"
        }
      + vpc_id                 = (known after apply)

      + timeouts {
          + create = "5m"
          + update = "5m"
        }
    }

  # module.vpc.aws_default_security_group.this[0] will be created
  + resource "aws_default_security_group" "this" {
      + arn                    = (known after apply)
      + description            = (known after apply)
      + egress                 = (known after apply)
      + id                     = (known after apply)
      + ingress                = (known after apply)
      + name                   = (known after apply)
      + name_prefix            = (known after apply)
      + owner_id               = (known after apply)
      + revoke_rules_on_delete = false
      + tags                   = {
          + "Name" = "xueli-vpc-default"
        }
      + tags_all               = {
          + "Name" = "xueli-vpc-default"
        }
      + vpc_id                 = (known after apply)
    }

  # module.vpc.aws_internet_gateway.this[0] will be created
  + resource "aws_internet_gateway" "this" {
      + arn      = (known after apply)
      + id       = (known after apply)
      + owner_id = (known after apply)
      + tags     = {
          + "Name" = "xueli-vpc"
        }
      + tags_all = {
          + "Name" = "xueli-vpc"
        }
      + vpc_id   = (known after apply)
    }

  # module.vpc.aws_route.public_internet_gateway[0] will be created
  + resource "aws_route" "public_internet_gateway" {
      + destination_cidr_block = "<IP_ADDRESS>/0"
      + gateway_id             = (known after apply)
      + id                     = (known after apply)
      + instance_id            = (known after apply)
      + instance_owner_id      = (known after apply)
      + network_interface_id   = (known after apply)
      + origin                 = (known after apply)
      + route_table_id         = (known after apply)
      + state                  = (known after apply)

      + timeouts {
          + create = "5m"
        }
    }

  # module.vpc.aws_route_table.private[0] will be created
  + resource "aws_route_table" "private" {
      + arn              = (known after apply)
      + id               = (known after apply)
      + owner_id         = (known after apply)
      + propagating_vgws = (known after apply)
      + route            = (known after apply)
      + tags             = {
          + "Name" = "xueli-vpc-private-us-west-2a"
        }
      + tags_all         = {
          + "Name" = "xueli-vpc-private-us-west-2a"
        }
      + vpc_id           = (known after apply)
    }

  # module.vpc.aws_route_table.public[0] will be created
  + resource "aws_route_table" "public" {
      + arn              = (known after apply)
      + id               = (known after apply)
      + owner_id         = (known after apply)
      + propagating_vgws = (known after apply)
      + route            = (known after apply)
      + tags             = {
          + "Name" = "xueli-vpc-public"
        }
      + tags_all         = {
          + "Name" = "xueli-vpc-public"
        }
      + vpc_id           = (known after apply)
    }

  # module.vpc.aws_route_table_association.private[0] will be created
  + resource "aws_route_table_association" "private" {
      + id             = (known after apply)
      + route_table_id = (known after apply)
      + subnet_id      = (known after apply)
    }

  # module.vpc.aws_route_table_association.public[0] will be created
  + resource "aws_route_table_association" "public" {
      + id             = (known after apply)
      + route_table_id = (known after apply)
      + subnet_id      = (known after apply)
    }

  # module.vpc.aws_subnet.private[0] will be created
  + resource "aws_subnet" "private" {
      + arn                                            = (known after apply)
      + assign_ipv6_address_on_creation                = false
      + availability_zone                              = "us-west-2a"
      + availability_zone_id                           = (known after apply)
      + cidr_block                                     = "<IP_ADDRESS>/24"
      + enable_dns64                                   = false
      + enable_resource_name_dns_a_record_on_launch    = false
      + enable_resource_name_dns_aaaa_record_on_launch = false
      + id                                             = (known after apply)
      + ipv6_cidr_block_association_id                 = (known after apply)
      + ipv6_native                                    = false
      + map_public_ip_on_launch                        = false
      + owner_id                                       = (known after apply)
      + private_dns_hostname_type_on_launch            = (known after apply)
      + tags                                           = {
          + "Name" = "xueli-vpc-private-us-west-2a"
        }
      + tags_all                                       = {
          + "Name" = "xueli-vpc-private-us-west-2a"
        }
      + vpc_id                                         = (known after apply)
    }

  # module.vpc.aws_subnet.public[0] will be created
  + resource "aws_subnet" "public" {
      + arn                                            = (known after apply)
      + assign_ipv6_address_on_creation                = false
      + availability_zone                              = "us-west-2a"
      + availability_zone_id                           = (known after apply)
      + cidr_block                                     = "<IP_ADDRESS>/24"
      + enable_dns64                                   = false
      + enable_resource_name_dns_a_record_on_launch    = false
      + enable_resource_name_dns_aaaa_record_on_launch = false
      + id                                             = (known after apply)
      + ipv6_cidr_block_association_id                 = (known after apply)
      + ipv6_native                                    = false
      + map_public_ip_on_launch                        = true
      + owner_id                                       = (known after apply)
      + private_dns_hostname_type_on_launch            = (known after apply)
      + tags                                           = {
          + "Name" = "xueli-vpc-public-us-west-2a"
        }
      + tags_all                                       = {
          + "Name" = "xueli-vpc-public-us-west-2a"
        }
      + vpc_id                                         = (known after apply)
    }

  # module.vpc.aws_vpc.this[0] will be created
  + resource "aws_vpc" "this" {
      + arn                                  = (known after apply)
      + cidr_block                           = "<IP_ADDRESS>/16"
      + default_network_acl_id               = (known after apply)
      + default_route_table_id               = (known after apply)
      + default_security_group_id            = (known after apply)
      + dhcp_options_id                      = (known after apply)
      + enable_dns_hostnames                 = true
      + enable_dns_support                   = true
      + enable_network_address_usage_metrics = (known after apply)
      + id                                   = (known after apply)
      + instance_tenancy                     = "default"
      + ipv6_association_id                  = (known after apply)
      + ipv6_cidr_block                      = (known after apply)
      + ipv6_cidr_block_network_border_group = (known after apply)
      + main_route_table_id                  = (known after apply)
      + owner_id                             = (known after apply)
      + tags                                 = {
          + "Name" = "xueli-vpc"
        }
      + tags_all                             = {
          + "Name" = "xueli-vpc"
        }
    }

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

 Resources: 12 added, 0 changed, 0 destroyed.

Outputs:

azs = tolist([
  "us-west-2a",
])
cluster-private-subnet = [
  "subnet-06c268b9b82e24cfc",
]
cluster-public-subnet = [
  "subnet-0f6504c0c5ee419fc",
]
node-private-subnet = [
  "subnet-06c268b9b82e24cfc",
]
vpc-cidr = "<IP_ADDRESS>/16"
vpc-id = "vpc-097dff21727c0697f"
lixue@Xue-Lis-MacBook-Pro rosa-classic % aws ec2 describe-nat-gateways --region us-west-2 --filter Name=vpc-id,Values=vpc-097dff21727c0697f
---------------------
|DescribeNatGateways|
+-------------------+

/lgtm

/approve


Introduce cop_codegen to simplify some code

What have you changed? (mandatory)
Extracted from https://github.com/tikv/tikv/pull/3898
This PR moves macro into a custom derive, to further simplify the defining process of Rpn functions and batch aggregate functions.
This PR also includes a simple code simplification, changing xxx.map(|..| Error::Other(box_err!(..)))? to box_try!(xxx).
What are the type of the changes? (mandatory)

Engineering (engineering change which doesn't change any feature or fix any issue)

How has this PR been tested? (mandatory)
Existing tests.

/run-integration-tests

CI failed because CI uses check-bin script from master instead of this PR. Will be fixed later.


Maximizing Chatterino creates a border on adjacent monitors

Describe the bug
A white border appears on adjacent monitors when maximizing the main window on one monitor.
(sometimes contains a part of the chatterino frame instead of just white)
To reproduce

Have two or more monitors.
Maximize the base chatterino window on one of them.

Screenshots

Chatterino version
Occurs on release (2.1.5) and up to latest commit.
Operating system
Windows 10 v2004, successfully reproduced on v1904,

Release 2.1.5 is old. Can you download 2.1.7 nightly and test on that? https://github.com/Chatterino/chatterino2/releases/tag/github-actions-nightly

Release 2.1.5 is old. Can you download 2.1.7 nightly and test on that? https://github.com/Chatterino/chatterino2/releases/tag/github-actions-nightly

should've attached a 2.1.7 screenshot, it occurs on all versions since dd33e4e though.

I see you have qt open. So I assume you're the one compiling chatterino. Please update qt to 5.14 since earlier versions have had the exact issue you're describing.

I see you have qt open. So I assume you're the one compiling chatterino. Please update qt to version 5.14 since earlier versions have had the exact issue you're describing.
Related issue: #1428

issue persists building with Qt 5.14.2.

Seems to be either qt or windows issue atm. So I'm marking it blocked for now.

@moe-ka Does your fix fix this issue?  Or was this to do with the Qt version?

it does fix it but I think it might be an issue with the windows version.

Had a user report this bug again.  (Ignore the 1px border on top/left, that's my screenshot tool)

Chatterino 2.1.7 (commit 845c8fa63)
Win10 2004

Speaking of which, why was this closed? I still have this issue daily.

should be unclosed

It's closed because there is literally nothing we can do about it.

For people that are following this or are new and searching for a fix.
Change the compatibility of the executable to windows 8 if you installed Chatterino with the windows installer.
The white border will be gone on your adjacent monitor.

For people that are following this or are new and searching for a fix. Change the compatibility of the executable to windows 8 if you installed Chatterino with the windows installer. The white border will be gone on your adjacent monitor.

This is true, see https://github.com/Chatterino/chatterino2/issues/2205#issuecomment-868001183

For people that are following this or are new and searching for a fix. Change the compatibility of the executable to windows 8 if you installed Chatterino with the windows installer. The white border will be gone on your adjacent monitor.

This also has the side effect of making the program quite slow. I'd suggest stretching the program to the size of the monitor without full maximizing it.


throwErrno symbols missing when Iex is linked before other libraries statically

I'm not sure anything can be done about this, but in case someone else has this problem, I'll file it. I won't be offended if its closed :)
We got symbol errors when OpenEXR tried to throw an exception based on an errno. We linked OpenEXR statically and the link order was "Half Iex ...[rest]". This caused a symbol error when it tried to call throwErrno. By moving Iex to the end of the link order, we fixed this issue.

Yeah, I'm pretty sure this is standard linker behavior, symbols are searched for left to right. But to be clear - this link order is in your application Makefile, not from OpenEXR's build files, right?

Yeah, it was the order in our CMake scripts. Probably nothing OpenEXR can do about it.

Closing the issue for now, feel free to re-open or file a new issue if you need further help.


Set up infrastructure

In particular:

Decide on hosting system (likely via Github)
Decide on language (Jekyll? Html?)
Make website public

Use Github pages with Jekyll and Cayman theme for now,


feat(api): support id on cloud region request

Linked issues

https://github.com/AshAvalanche/ash-console-ui/issues/2

Changes

Support get cloud region by id

We still have a CI error here @servalD?

We still have a CI error here @servalD?

EDIT: maybe you were just waiting for ash-api-rs, I just released version 0.1.7

We still have a CI error here @servalD?

EDIT: maybe you were just waiting for ash-api-rs, I just released version 0.1.7

Exactly, I updated the version now.


We should always InitializeConditions when reconciling

Expected Behavior
We need to initialize conditions prior to reconciling in case new conditions are added/defaulted across releases
Actual Behavior
We actually skip initializing conditions if gen == observed gen
https://github.com/knative/pkg/blob/2ddcfef739a2e0ad5af446bffa0ecd6ce49b760e/reconciler/reconcile_common.go#L29-L41

Do we also want to move defaulting here and do it for all resources?

/assign


Export includes node_modules

Hey, why does the export include the node_modules folder?
It's not needed since everything needed should be inside the bundle (well except fontawesome).
Wouldn't it be smarter to remove the node_modules folder, since it contains a lot of unnecessary files which just bloat up the binaries?

Some of modules will not be bundled by webpack, for example, such as mysql, mongoose...so we can't ignore all node_modules by default. But you can list modules which you want to ignore to devDependencies https://github.com/chentsulin/electron-react-boilerplate/blob/master/package.js#L27

@chentsulin This doesn't really work with flat deps in npm3 because it only excludes the 0-depth dependencies.
What do you think of adding all of the node_modules as webpack externals rather than bundling with webpack? Bundling all node_modules becomes an issue when you have a multi-window application because each of the windows need a separate bundle and there is usually a lot of repeated code in each bundle.

I bulit flat-dependencies and installed-local-modules for this issue yesterday. IMO we can ignore all installed modules which are not dependencies in flat folder structure. But, still need some tests...I am not sure that every cases is considered.

Is the idea that when doing npm run package then only the packages returned by flat-dependencies and installed-local-modules would be copied to the package's node_modules folder? I think that should work. There is a theoretical possibility that if you have different versions of a sub-dependency then it may get copied even though it is extraneous. This is a very minor issue though and it won't cause problems (it just adds to the package weight).

I'm just using webpack-node-externals to exclude everything in node_modules from bundling, and it works great -- I have to whitelist webpack-hot-middleware for development, but otherwise it's already making dev server startup and hot reloading a lot quicker.

@lostfictions That works for npm 2.x but not for npm 3.x.

Um, yes it does?
Maybe it wasn't clear from my comment, but webpack-node-externals doesn't have anything to do with what gets chosen to pass as ignores to electron-packager in package.js. It just prevents anything in node_modules from being bundled when webpack is invoked, which is a separate step in the build process (and one that also gets invoked during development, eg. running the hot-server.) Whether or not the contents of node_modules are flattened doesn't affect this at all.
Again, these are related but distinct issues; webpack-node-externals improved the situation for me insofar as I'm concerned with the speed of bundling and the size of the emitted bundle during development, but I agree that it's also useful to not copy over unneeded modules into the packaged Electron apps. That's for sure a thornier issue.

@chentsulin Would it be possible to get a usage example of flat-dependencies and installed-local-modules working together with webpack externals to efficiently package an app?

@davej See my Aurelia fork for an example usage of flat-dependency and module filtering.

@niieani: That's awesome. Would you consider PRing your changes to this lib?

@davej I'm afraid I don't work with React at this moment so wouldn't have the time to invest it into a PR here. But it should be fairly simple. Feel free to copy my changes and make your own pull request. I've had to fork both flat-dependencies and installed-local-modules into flat-npm-dependencies and installed-local-npm-modules - you'd need to use those too.

@niieani Got around to trying this out. It sorta works but it only seems to keep deps that are two-levels deep so I ended up with quite a number of deps that were ignored even though they were sub-dependencies of modules which I had added to webpack externals. Any thoughts?

@davej It looks like you are using electron-packager, if you are, simply using the prune flag should resolve most of your issues.  It automatically runs npm prune --production on a copy of your node_modules folder to remove all dev dependencies.  Then you simply have to ensure that any module you want copied is in the normal dependencies object

@MarshallOfSound Yeah, I have prune set to true already. Perhaps the easiest thing to do is move all of my deps to devDeps and selectively move everything in webpack externals back to deps. Feels a bit hacky though.

Is it though?  The definition of those two sections in your package.json
Dependencies

Things that are required for your program or tool to run, without these modules when someone npm install's your program it would fail to run correctly.

Dev Dependencies

Things that are required to build your program, normally build tooling, linting and test frameworks.  An enduser should not need these dependencies for your program to run correctly.

So in this case, anything that is compiled or included by webpack is technically a dev dependency as you do not need to install it when downloading / running the compiled version.
At least IMO 😆

Those descriptions are for modules that are designed to be consumed (npm installed) as opposed to top-level apps though. Putting React in the depDeps feels semantically wrong to me.
Your point is well-made though, you can definitely justify it either way. Interesting that this boilerplate doesn't adopt that approach. Any thoughts from @chentsulin or @jhen0409?

I've been doing things the way @MarshallOfSound proposed and it has been working great for a while now. For most of my projects webpack serves a very different purpose, where your devDependencies are mostly tools, and your dependencies are browser libraries. It makes a lot of sense to keep things organized that way.
In the case of a production binary built using electron I think that the only dependencies that should be delivered to consumers are the ones that aren't needed during transpile/minify time. It keeps size down, and makes it clear what code was delivered. The dependencies list becomes a whitelist.

Closing this, as we have come to a conclusion


Changing systemd CentOS7 init script

Hi
Nomad systemd script has failure which is depends that nomad service need to run more processes then just one. so please have a look and discuss in case of needed
Regards
Karen

Hi @Karen09, thanks for the fix! See my comments above.

Hi
Thanks for collaboration and trust.
Regards
Karen


[uma-auth] fix button custom styles not being applied

#190  👈
develop

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bsiaotickchong and the rest of your teammates on  Graphite


Link edit and delete dossier to backend endpoint

The existing edit and delete dossier endpoints should be linked to the respective backend endpoints so that they can be functional.
[Story Points: 2]
[Priority: Medium]
[Risk: Low]
This is a subtask of #7

video.webm


Fix/missing dependency

Resolves #842
What does this PR do?
Solve useEffect basic errors
How should this be tested?

Make run
Make complete use of the app to know that everything is ok

@leisterfrancisco
This is a list of problems I encountered, check if this is happening in your case too.

[ ] history dashboard for donors in my case is not responding, maybe a loop.
[ ] Also check the login, it is trying to log in everytime I am typing.
[ ] when accepting the contract terms of the lifebank, the page is not responding
Everything else looks fine, good job!


Can't login: getting 'cURL error 6: name lookup timed out'

Hey,
I was using the service and it was working fine, but then I started getting this error:
Notice: Trying to get property of non-object in /Users/camilodelvasto/Documents/nolte/proposal/wp-content/plugins/auth0/lib/WP_Auth0_LoginManager.php on line 294

THe auth0 log error shows:
WP_Auth0_Api_Client::get_token	http_request_failed	cURL error 6: name lookup timed out

and it doesn't allow me to log in or signup users. What can I do to fix it? Is it something related to my environment? Thanks for any help!

Looks like it is related to your environment.
If you have SSH access in that server, try running curl -v https://your_account_name.auth0.com/testall (replace your_account_name by your account name). It should answer with an ok.
Also, you can check by accessing to the admin (if you add ?wle to the url it will show you the wordpress login form). Then go to the plugin configuration and under the basic tab, check if the domain is the correct one.

Thanks @glena - I'm getting OK on the test, but I'm also seeing something different, perhaps it's related.
When I update the settings, I keep getting an admin notice saying The client id or secret is not valid. - I've checked the settings from my app and that hasn't changed. I've copied them several times and I just get the same notice. Any ideas? Thanks.

Indeed it was related. I just rotated the secret and now I'm able to log in. Why did this happen?

After not seeing this error in a while, I'm getting it again... I didn't change anything in the config, and the log shows the same:
WP_Auth0_Api_Client::get_token	http_request_failed	cURL error 6: name lookup timed out

I checked out the auth0 plugin settings and got the same upon save:
The client id or secret is not valid.

Is this related to the wp plugin? Or is it something with the auth0 service?
I'm baffled....

the cURL error 6: name lookup timed out looks like there is a timeout during the DNS lookup.
The The client id or secret is not valid. happens when the call to auth0 fails. can you add a var_dump($response);exit; before this line?
I would like to see the response.
https://github.com/auth0/wp-auth0/blob/master/lib/admin/WP_Auth0_Admin_Basic.php#L207
Also, can you check if the client_id and domain configured are the correct one?
There is no reason for auth0 to change the client configuration nor the plugin unless there is something on your site changing the configuration (for example, your deploy process restoring the database or something)

@glena this is what I'm getting from the var_dump($response):
bool(false)

I double-checked the client configuration for the plugin, it all seems correct.... what could be the cause of it? Or better, what else can I do? Thanks a lot for your help @glena

so this is checking this: ( 200 !== (int) $response['response']['code'] ). Since $response === false, this is returning null $response['response']['code'] and this casting (int) $response['response']['code'] is returning 0 which is !== 200 (thank you very much PHP).
Do you see any row in the error log (the plugin error log) related to this? You should fine one with the WP_Auth0_Api_Client::get_token section. https://github.com/auth0/wp-auth0/blob/master/lib/WP_Auth0_Api_Client.php#L114

The weird thing is that I stopped seeing the error altogether.... could it be something with my connection? As soon as I changed the location, the error dissapeared.

As I told you, that seems an issue during DNS lookup (unless there is something screwing with the plugin configuration so the domain is an invalid one in that moment). It could be your ISP, the router (or network infra in general), something wrong in the host (configuratoin, something conflicting with the network layer...). that is really weird.


Allow setting a html_help

Hi,
Great much needed bundle. It would be useful to allow html help, maybe via a new "html_description" attribute parameter ?
Thanks !

You can pass arbitary options to the form types, via the formOptions options.
So something like #[SettingsParameter(formType: TextType::class, formOptions: ["help_html" => true])] should do what you want.
I do not think, that a dedicated option on the attribute would be really useful.

Ah yes, didn't see this options. It's perfect, thanks.


MINIFICPP-676: Fix spacing issue

Thank you for submitting a contribution to Apache NiFi - MiNiFi C++.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[ ] Does your PR title start with MINIFICPP-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[ ] Has your PR been rebased against the latest commit within the target branch (typically master)?

[ ] Is your initial contribution a single, squashed commit?

For code changes:

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file?
[ ] If applicable, have you updated the NOTICE file?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

Looks to fix our problem with builds.  Verified each of the 4 jobs is running.

Wrong Jira ID!


Proposal: Add alternate tasks to compile XBF files

Proposal: Add alternate tasks to compile and package XBF files
Summary
One of the most important features in building a WinUI Desktop app is proper compilation of XAML files into XBF, and packaging them into PRI files. This process is convoluted and buggy when using the first-party UWP targets. I aim to fix this.
Rationale

The UWP targets shipped with Visual Studio are designed to build and package full UWP apps that run in the AppContainer. Attempting to use them to build a standalone DLL that can be referenced from a desktop app is a complicated process, and I have not been able to get it fully working. Attempting to place the resulting app into a wapproj for Desktop Bridge packaging introduces even more problems.
The Windows Community toolkit has attempted to make it possible to use WinUI XAML in a non-UWP project in https://github.com/windows-toolkit/Microsoft.Toolkit.Win32/pull/147, but this implementation does not function. My main complaint with that PR is that it does not package the XBF files into a PRI file like is done when building a full UWP app or library. My goal is to have one PRI file for each DLL named after that DLL, plus (if needed) a resources.pri with resources for the main app. No amount of modification to the targets in the above PR causes this to happen. The XBF files are copied as-is into the bin directory, and removing them causes the app to crash. This is because the generated .g.i.cs files are hardcoded to look for them directly in the filesystem.
Additionally, the tasks that perform the actual XAML compilation are (a) proprietary, and (b) do not invoke an EXE. Due to this second fact, it is impossible to compile XBF files any way other than using the UWP toolchain, which is IMO undesirable for the above reasons. However, there is the Windows.UI.Xaml.Markup.XamlBinaryWriter class, which does something similar to the XBF compilation tasks. However, those tasks use a different API (genxbf.dll). Presumably this is to ensure 100% backwards compatibility when targeting downlevel versions of Windows 10, but there could be other reasons that I do not know about.

Scope

Capability
Priority

Create open-source MSBuild tasks (in this repo) that compile XAML to XBF files
Must

Create open-source MSBuild tasks (in this repo) that invoke makepri.exe
Must

Create open-source MSBuild tasks (in this repo) that generate the .g.i.cs code-behind files
Must

The tasks will support C# apps
Must

The tasks will support C++ apps
Must

The tasks will support packaging XBF files into PRI files, and loading them at runtime directly from there
Should

Open Questions

Will the open-sourcing of the Windows code as part of WinUI 3 include the code for XamlBinaryWriter? I hope it does, but there has been no confirmation from MS one way or the other as to the scope of the planned code drop.
The Microsoft.UI.Xaml NuGet package, when referenced from a .NET Core/.NET 5 project, is not copied into the root directory properly. The PRI file from the NuGet package is copied into directory with the EXE, but the DLL is copied into the runtimes/win10-x64 subdirectory. This breaks use of Registration-Free WinRT manifest code. I would appreciate it if this could be fixed, although it may be done in a different PR.
I would very much appreciate it if the Visual Studio project system could be updated to treat XAML files in a project that references these tasks as UWP XAML files instead of WPF XAML files. (Currently, when I try to use https://github.com/windows-toolkit/Microsoft.Toolkit.Win32/pull/147, VS insists the XAML files are of the WPF flavor, despite project capabilities being included that specify otherwise. This results in types not being resolved properly in the designer.) This may well be outside the scope of this repository, however.

The {x:Bind} compiler is even more buggy than xaml that I don't have patience to open separated issue for each bug I found. Please modernize both the experience and infrastructure like Blazor.

@wjk @huoyaoyuan thank you for the awesome feedback! I couldn't agree more, this needs to be addressed. I just created the area-Tooling label so that we can track tooling related improvements.
I don't have anything concrete to share right now, but I am working on a proposal that will move us in the right direction. Once we have something ready to share we can start to get everyone's input. If you have (or see) any tooling related issues please tag or tweet me.
/cc @pag3

"The tasks will support C++ apps" needs to be a must - C++ developers should not be forced to the inferior experience, especially considering it's the same XAML compiler ultimately.

"The tasks will support C++ apps" needs to be a must - C++ developers should not be forced to the inferior experience, especially considering it's the same XAML compiler ultimately.

This includes a proper experience for the IDL files required to bind into XAML, with syntax highlighting and code completion, and no manual copying of generated files.

Updated OP. The only real reason I put that as a "should" was to indicate that (to me) it was of lower priority, and that I was OK if only the C# version shipped first. Now I see I was in error. I absolutely agree with all of the complaints about the C++/XAML experience.

@pjmlp IDL is the responsibility of cppwinrt, this issue is about the XAML compiler. Currently, outside C++-specific codegen bugs, the XAML compiler experience is on par with C#.

@sylveon After killing the productivity we had with C++/CX the responsibility to fix it seems to belong always to someone else.
From C++/WinRT team apparently ISO C++ is to blame and we should now just sit and wait for the day that ISO C++ might support C++/CX features, nice service.

@wjk we have started work on a xaml compiler exe. If you are using Preview2, you can set UseXamlCompilerExecutable in your project file, this will be used instead of the MSBuild task dll. It's still early on (and why we haven't made it the default yet), so we'd appreciate getting your feedback on it. While the code isn't open source yet, you can probably look through our props/targets in the nuget package to figure out how it's used :)
@sylveon and @pjmlp I think I've said this on a few other threads, but we don't want us to wait for metaclasses support to drop IDL. We can and do want to create a better experience today, we just aren't quite ready to start that work today.
/cc @RealTommyKlein, @Scottj1s, @kennykerr, @JeanRoca

@stevenbrix  Thanks for confirming that the productivity loss due to withdrawing C++/CX is taking care of.
If you allow me just a little bit of feedback, C++/CX is almost perfect, finally Microsoft seemed to be getting what it meant to have a C++ RAD offering, which while not yet C++ Builder like, it is almost like there.
Instead of improving what was still missing, versus the .NET experience for UWP applications (C++/CX still required a bit more boilerplate), everything was dropped in name of a ISO C++ compatibility that doesn't matter, when the applications are anyway not portable to anything other than Windows/UWP environment.
Instead we got a developer experience that feels worse than just doing plain old MFC applications, and it is good that the message is no longer that we sit and wait for ISO C++ to someday catch up with C++/CX capabilities from 2012.
Now I have something to look for, and will correct my message in regards to C++/WinRT current state.
It would be nice that whatever is being planned eventually gets announced in some Windows or Visual Studio related blog, so that all that feel the same way see that "developers, developers, developers" also includes WinUI/C++ tooling.

@pjmlp we're so early in discussion, it's mostly just hallway talk at this point (if that were a thing anymore). Once there is something to share, we will. But I wouldn't expect anything in 2020.
I'm glad you are happy with C++/Cx, but for everyone who feels the way you do, someone says they hate it.

Bad news: Project Reunion no longer supports the xaml compiler executable.

.nuget\packages\microsoft.projectreunion.winui\0.8.0-preview\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets(458,9): error : The executable Xaml compiler is no longer supported.  Please set UseXamlCompilerExecutable=false.

To be fair, it is possible to write your own XAML compiler using the XamlBinaryWriter class. This API has existed as far back as Windows 8, believe it or not, and I have finally been able to confirm that it does the exact same thing as genxbf.dll, just with a different API surface. However, since you can (currently) only access WinUI in an MSIX-packaged app, creating a command-line build tool that calls this API is difficult. But it’s most certainly not impossible.

Hi folks - apologies the executable compiler removal wasn't in the Reunion 0.8 notes.  We've removed the compiler executable from Project Reunion since its current form is still tied to MSBuild (the json input file it requires is produced from an MSBuild task, and contains type information only producible from a .NET Framework context).  For some background on that choice - the WinUI/Reunion Xaml compiler ships as an MSBuild task built against the .NET Framework (as you're all aware :smile: ), and we had planned to integrate it with the .NET CLI as well.  However, the .NET CLI wouldn't be able to load a .NET Framework library, and converting the Xaml compiler to .NET Standard or updating the source code to dual-build for both .NET Framework/.NET Core were prohibitively expensive.  So we created the .NET Framework executable Xaml compiler that shipped in earlier versions of WinUI 3/Reunion, as a low-cost way of running the .NET Framework Xaml compiler in other contexts like the .NET CLI, albeit still with MSBuild dependencies to generate the input JSON file.
We're aware of the demand for a compiler executable that is truly separate from MSBuild, but did not think the compiler executable that shipped up until Reunion 0.8 met that bar, nor that it provided value to developers in its current form.  We can bring it back in its pre-0.8 form, but would like to better understand its current use case from developers leveraging it (@riverar - your insight would be greatly appreciated!).  We also can't make any promises when a truly MSBuild-independent executable compiler would ship, but not in the near future (would happen after Reunion 1.0).  Thanks!


Reformat the print()

Because it's very ugly now :)

Done with 7b4b89e12601eaae1dbe632d6eeb1745cde39dcf

I will rewrite the print() using f-strings (https://docs.python.org/3.6/reference/lexical_analysis.html#f-strings).
My script will now requires Python 3.6. I don't think it'll be a problem.


Accessing futures websocket data stream

Currently we have access to spot data which is available at 'stream.binance.com'. Can we access futures data also which is available at fstream.binance.com? Simply changing BINANCE_WS_HOST to fstream.binance.com doesn't work. Has anyone else tried accessing futures data using binance-cxx-api?

Yeah I have tried changing the BINANCE_WS_HOST  and also the endpoint of binance::Account::startUserDataStream to https://fapi.binance.com/fapi/v1/listenKey. It still doesn't work. I could successfully get a listenKey but the ws returns nothing.

@vectar31 Dude, change the #define BINANCE_WS_PORT from 9433 to 433 in binance_websocket.h  You are welcome.

@iamwrm Thanks. I was able to connect to futures stream at port 443 not 433. Interestingly spot stream at stream.binance.com also works with port 443. I don't know why that happens.
Also, have you tried making multiple socket connections with this? For example, one to stream.binance.com and the other to fstream.binance.com?


Update github actions, add scheduled unit test

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

Comparison is base (9633d30) 97.78% compared to head (9f68ffe) 97.78%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #17   +/-   ##
=======================================
  Coverage   97.78%   97.78%
=======================================
  Files           4        4
  Lines         633      633
=======================================
  Hits          619      619
  Misses         14       14


I added this to a well visited site

Added this to a well visited website, with traffic count in the thousands from around the globe, but for obvious reason I am not going to reveal my identity, as I am trying to avoid unwanted attention.
Russia has been known to target individuals on foreign territory before, and those who are openly criticizing RU gov, and people that are involved in harming the RU gov, put themselves at varying degrees of danger depending on what and the extend to which we do something. That said, this is a risk I am willing to take.
Russia has just overstepped a certain boundary with their invasion of Ukraine, murdering civilians and innocent Ukrainian soldiers defending their country.
Putting a banner on a website is a small thing to do, but nonetheless a public statement against the Russian dictatorship, which does have some kind of effect, like rings in water I hope.
I am a developer focused mainly on web, linux and server-sided coding, but I am trying to brainstorm, how to best use my skills to help Ukraine. Feel free to hit my e-mail with ideas, and I might add some code to a repository.
No to war!
supremewrath a proton me

Who cares. If you want karma go post about it on Reddit.


Sphinx again

This supersedes #111

This is a pretty big PR, but most of the content is in the following files:
index.rst
usage_guide.rst
installation_guide.rst
Feel free to take a look and make comments. We can try to upload this to a website next time we meet.


Add pkey support to api wrapper

We previously added a list of ids into the api redux state for each collection, so if ordered, a collection may be iterated in order using the id list.
It is possible for some objects to have primary keys other than id, so we need to add flexibility in which pkey is mapped into a list. (See users)

Closed by https://github.com/linode/manager/pull/1429


Unable to scroll through emotes

When trying to scroll through to the 2nd page of emotes after purchasing some, it does not let me scroll to the next page? I have bought some common and rare emotes, but its the common and all page that I cannot use my mouse scroll to switch to the 2nd page.

Gonna close this issue as it was fixed a few hours after posting this.


Deal with custom permissions

DRF OpenAPI version: 0.9.7
Python version: 3.5
Operating System: Linux

Description
My views use custom permission to control users access but I want to allow everyone to see the schema/doc. How do I configure drf_openapi to override views permission in schema generation ?
Thanks for this nice lib !

@Amoki hey it's in the doc: https://drf-openapi.readthedocs.io/en/latest/usage.html#overwriting-default-permission. Basically
1 - Don't add drf_openapi.urls to your url patterns. So don't do this:
urlpatterns += [url(f'{API_PREFIX}/', include('drf_openapi.urls'))]

2 - Instead, create an url handler of your own
from drf_openapi.views import get_schema_view

url('schema/$', get_schema_view(url='', title="API Documentation"), name='api_schema')

Let me know if that works

It still doesn't work :(
It seems to behave like native DRF generator: it applies views' permissions by default and I can't find how to override these permissions

Here's a example of my configuration, just in case:
# urls.py
urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^doc/v(?P<version>[0-9]+\.[0-9]+)', get_schema_view(url='', title="API Documentation"), name='api_schema'),
    url(r'^cloud/(?P<cloud_id>[0-9]+)/$', org_views.CloudDetail.as_view()),
]

urlpatterns = format_suffix_patterns(urlpatterns)

# views.py
class CloudDetail(generics.RetrieveUpdateDestroyAPIView):
    permission_classes = [permissions.IsAuthenticated, CloudPermission]
    serializer_class = CloudSerializer

@Amoki I see what you mean. I have a solution in mind. I will make a PR this weekend. Cheers

Top ! :smiley:

 Fix permission customization

@Amoki https://github.com/limdauto/drf_openapi/pull/54 this has landed in 0.9.8. It will be available in PyPI in a minute. You can override the permissions by subclassing the default SchemaView class provided by drf_openapi.

Relevant section in the doc: https://drf-openapi.readthedocs.io/en/latest/usage.html#customization-of-the-api-view


How can we add more than one partner?

[Enter feedback here]
Currently we are helping customer to setup their azure resources.  So wanted to see how can we take the credit from Microsoft for the work we are helping on our end.

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

ID: 5f901056-c225-b086-cdaa-c8bd978db64c
Version Independent ID: 9c067eb4-54cb-e141-d82f-e136ff3c671e
Content: Link an Azure account to a partner ID
Content Source: articles/cost-management-billing/manage/link-partner-id.md
Service: cost-management-billing
Sub-service: billing
GitHub Login: @dhirajgandhi
Microsoft Alias: banders

@VipinAgarwal Thank you for your query , our team will review it and get back to you at the earliest.

Tagging @dhirajgandhi @bandersmsft for visibility, review and to help provide insights.

It is possible to have multiple partners will Partner Admin Link. The user who has RBAC access to customer's Azure resources need to tag the MPN ID.

@dhirajgandhi Thanks for the super quick response.
@VipinAgarwal Let us know if you have any further questions. If not, we would like to go ahead and close this issue.


Incorrect CLI example under "Update the delete behavior on an existing VM"

Under the Update the delete behavior on an existing VM heading, the CLI example provided is incorrect. The introductory text in the section says that the example "updates the VM to delete the NIC, OS disk, and data disk when the VM is deleted," but the actual example under the CLI tab detaches the OS disk such that it will not be deleted on VM deletion. The REST example, however, appears to correctly implement the behavior as described.

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

ID: f2f1928d-8e32-a342-e769-81dd5d27ddac
Version Independent ID: 1583936a-4914-ad22-5ab7-527e072cd9ce
Content: Delete a VM and attached resources - Azure Virtual Machines
Content Source: articles/virtual-machines/delete.md
Service: virtual-machines
Sub-service: ****
GitHub Login: @cynthn
Microsoft Alias: cynthn

#assign @cynthn

@daedam Thank you for pointing that out! Yes, it looks like the sentence that was supposed to explain the REST example was in the wrong spot. I've fixed it now. Change should go live over the weekend :)  Thanks again!

#please-close


Hide call icon only use text for action buttons

Can I hide call icons from action buttons and show only text because I want to use this kit for different functionality, not for call.

you can try with 'isCustomNotification'

Thank you so much for your promft reply @hiennguyen92
Need to know that can I hide another call icon which is audio or video call type based icon? Also can I hide another button and show only one?

In this regard, you need to customize it yourself. library is not available

Can I set different color for two different button?

@hiennguyen92 Can i customize the incoming call page and where to customize it?


Idea: introduce producer to make working with immutable classes easier

When creating immerable classes, it is still pretty verbose to define functions that produce new instances. For example:
import {produce, immerable} from "immer"

class Clock {
    constructor(hours = 0, minutes = 0) {
        this.hours = hours
        this.minutes = minutes
    }

    increment(hours, minutes = 0) {
        return produce(this, d => {
            d.hours += hours
            d.minutes += minutes
        })
    }
}
Clock[immerable] = true

The increment function has quite some boilerplate, which can be avoided by introducing a producer utility, that takes out the boilerplate and stores an immerized version of the function on the prototype:
import {producer} from "immer"

class Clock {
    constructor(hours = 0, minutes = 0) {
        this.hours = hours
        this.minutes = minutes
    }

    increment(hours, minutes = 0) {
        this.hours += hours
        this.minutes += minutes
    }
}
producer(Clock.prototype, "increment")

And, if the build setup supports decorators through TypeScript or Babel, that could be simplified to:
import {producer} from "immer"

class Clock {
    constructor(hours = 0, minutes = 0) {
        this.hours = hours
        this.minutes = minutes
    }

    @producer
    increment(hours, minutes = 0) {
        this.hours += hours
        this.minutes += minutes
    }
}

N.b. not entirely happy with the producer name, bike shedding welcome.
Also, not entirely sure if [immerable] should be set automatically by producer, or that it should be a prerequisite.
N.b.: to clarify the behavior:
const midnight = new Clock()
const lunch = midnight.increment(12, 30)

expect(midnight).not.toBe(lunch)
expect(lunch).toBeInstanceOf(Clock)
expect(midnight.toString()).toBe("00:00")
expect(lunch.toString()).toBe("12:30")

See #312 for implementation details

We should wait for more support from the community before adding this feature.
It's easy enough to do this:
const midnight = new Clock()
const lunch = produce(midnight, clock => {
  clock.increment(12, 30)
})

Agreed, let's close for now until there is more demand. Decorators still aren't standardized anyway.


Remove 'None' from log level lookups.

Motivated by a request to not mark log level overrides as 'required' in our Hoist React rest forms, which would mark the field as invalid if null, which it was not.
However, if the comboField was handling a non-required field it would include a null option, redundantly providing both 'None' and 'null' as options in the case of log level overrides. Anselm suggested getting rid of 'None' as a lookup.
Sencha Apps will require a front end change for this to transition smoothly:
https://github.com/exhi/hoist-sencha/pull/54

This was a nice (minor) cleanup, but was not worth the contortions on the hoist-sencha side.


Issue: Video initialization exception

I am using Nexus 7 with the latest Android 6.0.1 to run the demo, unfortunately I met the following issue:

04-28 17:18:32.323: E/WEBRTC-JC(27537): Failed to open Camera 1, Facing front, Orientation 270, skipping
04-28 17:18:32.323: E/WEBRTC-JC(27537): java.lang.RuntimeException: Fail to connect to camera service

04-28 17:18:32.323: E/WEBRTC-JC(27537): 	at org.webrtc.videoengine.VideoCaptureDeviceInfoAndroid.getDeviceInfo(VideoCaptureDeviceInfoAndroid.java:56)
04-28 17:18:32.460: E/AndroidRuntime(27537): java.lang.RuntimeException: Failed to open capturer
04-28 17:18:32.460: E/AndroidRuntime(27537): 	at com.dooble.phonertc.PhoneRTCPlugin.getVideoCapturer(PhoneRTCPlugin.java:291)
04-28 17:18:32.460: E/AndroidRuntime(27537): 	at com.dooble.phonertc.PhoneRTCPlugin.initializeLocalVideoTrack(PhoneRTCPlugin.java:221)
04-28 17:18:32.460: E/AndroidRuntime(27537): 	at com.dooble.phonertc.PhoneRTCPlugin$6.run(PhoneRTCPlugin.java:189)

May I know this issue is due to upgrade of the system and the webrtc.VideoCamera didn't work any more, or something I am missing?
Shell I switch to Crosswalk to walkaround this issue? Thanks

I compiled de latest WebRTC binaries and did some fixes to be able to get a videocall in latest cordova Android versions. You can check it out in my fork https://github.com/Mgonand/phonertc
That works for me on latest versions of Android and iOS, I don't know if it works in older versions. Use it at your own risk.

https://github.com/alongubkin/phonertc/commit/899f604482d407fcad924bf6ce558418fefb4ca7


Debloat the README

Summary
The readme is too long for people like me (that can't concentrate for more than 5 minutes) to read. We should probably split certain longer sections and place them in a separate markdown file in docs/ directory where we refer to them in the README itself. Keep the README as simple as possible and easier to find the sections one need.
Examples
Google Setup -> docs/GOOGLE.md
etc.
Context
n/a

You could also add a table of contents so you can easily find what you want to read.


Bit stream overflow on read in case of large mesh and high bitrate

Issue description
Incorrect rendering behavior (probably due to UB on data read) if compressing large meshes with high bitrate, which leads to mesh bitrate being higher than 32 (max bits in uint32)
Steps to reproduce
Load large mesh, set the local bitrate to some high value (e.g. 24)
Possible solutions
A possible solution is to lower the local bitrate if possible overflow is detected

Resolved in 73d88a203d165470be4b126c95d8b8754469ffab.


Authenticator: About 2FA

Is the Edge extension, Authenticator: 2FA Client,unaffected?

We plan to use the 2FA Client as a company in the future.
At that time, I am concerned about how likely it is that it will not be usable due to the influence of Edge version upgrades.

Hey @GitHub-N-IS, we understand your concerns. As the 2FA Client is an extension, any potential impact caused by browser updates or upgrades would be addressed by the extension developers. We recommend reaching out to the developers directly for specific details on how they plan to maintain compatibility with Edge updates and ensure ongoing functionality.

Hey @GitHub-N-IS, could you please confirm if you are from the team managing Authenticator 2FA client Or a user for the extension?

Hey @GitHub-N-IS, we would like to assure you that using Edge as a browser platform will provide continuity and compatibility. It is important for the developers of the 2FA extension to leverage this platform to ensure that future upgrades continue to function seamlessly.
If you have any further questions or need additional assistance, please feel free to reach out.


Changing position listing needs to have apply tab for the new values to store.

Go to capability tester
-Launch Map / Add remove get / add overlay/add feature / add geo- circle.
-dialogue appears / add values ( radius )
-change the defaulted position list
-Values don't change until add another row for new listing.
See attached image.

Added in branch #277


cmd/compile: incorrect error message for types check in generic functions

What version of Go are you using (go version)?

$ go version
go version go1.20.2 linux/amd64

Does this issue reproduce with the latest release?
Yes, at lest in go.1.18
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build674946051=/tmp/go-build -gno-record-gcc-switches"

What did you do?
GO code:
package main
import "fmt"
type values interface  {
string | int | bool
}
func checkValue[T values](v T, check func(value T) bool) bool {
return check(v)
}
func main() {
v := 0.1 // float
f := func(value string) bool { return true }
fmt.Print(checkValue(v, f))
}
// the same code in playground: https://go.dev/play/p/DHjAFwEoEnn?v=goprev

What did you expect to see?
Error message about wrong type of the first argument v as float64 is not a part of type values.
What did you see instead?
Compile error:

go build
# demo
./main.go:16:26: type func(value string) bool of f does not match inferred type func(value float64) bool for func(value T) bool

It is wrong and very confusing error message as function has correct type. Type of its parameter compared with the first parameter type instead of comparison to type values.
In opposite: the v argument has incorrect type (according to type values definition) but this is not reported as error.

CC @griesemer
The error message is correct, but perhaps we can produce a better message in this case.  It seems that we are reporting an argument type mismatch before we report a constraint failure.

@ianlancetaylor I can't agree that the error message is correct. It made me little bit crazy and burned about half an hour of my work time to understand what is exactly wrong and how to fix it. Just imagine little bit more difficult code. And try to explain how I should understand the real reason of issue with code having such miss-pointing error message.
For generic functions the type constraints have to be performed before or in additional to check of argument type mismatch. Other way there is no way to produce the correct error message.


Bind nccl for jax installation

Please:

[x] Check for duplicate requests.
[x] Describe your goal, and if possible provide a code snippet with a motivating example.

Clear improvement for CUDA installation has been made in 0.4.7.
I really appreciate the contributor's development.
I recently found that nccl also impact the jax execution and @hawkinsp informs me that nccl 2.16.5 is needed. (checkout https://github.com/google/jax/discussions/15233)
I think it would be better to install automatically through pip install.
Or, just informing "installing nccl with 2.16.5 is needed" in the README.md installation section would be sufficient for the user.
Thanks for the library.

This is fixed! We now install NCCL via pip as of JAX 0.4.18! You can upgrade NCCL via a pip package.


Add missing optparse dep

Just tried out kaffeine for the first time, got got this error after installing with npm install -g kaffeine:
$ kaffeine

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: Cannot find module 'optparse'
    at Function._resolveFilename (module.js:320:11)
    at Function._load (module.js:266:25)
    at require (module.js:348:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/kaffeine/lib/command.js:4:22)
    at Module._compile (module.js:404:26)
    at Object..js (module.js:410:10)
    at Module.load (module.js:336:31)
    at Function._load (module.js:297:12)
    at require (module.js:348:19)

The attached patch should fix this.
I'd also love to chat about kaffeine at some point, after having tried out coffeescript, I seriously consider giving this a try. Compatibility with JS, matching line number and the bang syntax are just awesome.

closing


Install Extension in [AL] code

I can't seem to find an external function to install/uninstall an extension (SAAS) in AL code.
The scenario is I have an extension which when a specific field is set, should install a second extension if published. Also the reverse, the ability to uninstall an extension as well.
Can the NavExtensionInstallationMgmt.InstallNavExtension(PackageID : GUID;Lcid : Integer) be made external, or is there another method of installing/uninstalling extensions via AL code.

The obvious answer to this is, extensions can be installed using the Microsoft.NAV.Install/Uninstall API call externally. I understand the security concerns about installing extensions it in product, but I wonder whether logic dictates that installing an extension externally via API or directly from in product code should have the same security measures? Both methods are controlled by an "external source" which is not user...maybe using in product code could be forced to make sure the user has super access?

Your request is not related to the AL application extensibility.
Please post it at https://www.yammer.com/dynamicsnavdev/ where the wider community may give you a valid answer.


Make use of extensible Base.Dates DateFormat

The following changes require that https://github.com/JuliaLang/julia/pull/12799 be merged into base Julia first. These changes make use of an extensible version of DateFormat which allows us to remove the overwritten methods.

Expect the checks to fail until the PR mentioned is merged.

Coverage decrease is due to one line that will involve a bunch of changes involving formatting. I'll merge this and deal with that after.


bumped version to fix CVE-2022-32149

Codecov Report

Merging #45 (d95f6e3) into main (3c67a1e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #45   +/-   ##
=======================================
  Coverage   77.00%   77.00%
=======================================
  Files          10       10
  Lines         896      896
=======================================
  Hits          690      690
  Misses        158      158
  Partials       48       48

Flag
Coverage Δ

unittests
77.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


dm-control mujoco tasks use A LOT of cpu's

Potentially related to this post. I was wondering why my code slows down when running a few seeds at a time. When I looked, the CPU's are being throttled by running multiple instances of the MuJoCo environments (specifically I was checking with walker-walk). Using just one environment was maxing out several cores. Is there a way to stop this? I compared with hopper/half-cheetah from the Gymnasium implementations and they use just a single CPU per environment. Do I need to change some setting in dm-control to fix this?
If any more information is needed (e.g. resource usage from the terminal), then please let me know what else I can add.

closing for now -- seems to be something strange happening where CPU's get maxed only in certain circumstances.

closing for now -- seems to be something strange happening where CPU's get maxed only in certain circumstances.

hey david!
how did you solve the problem of high cpu usage? i'm running into the same problem...

@LiuZhenxian123 sadly I did not solve it. unless you really need DMC, you could try the OpenAI mujoco tasks. if it is happening to you too, I can reopen.

dm-control seems to try to use all my available CPUs,guess something is wrong with my setting.


LLM is not working

Please provide us with the following information:

This issue is for a: (mark with an x)
- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Post deployment, I brought up the main web page and clicked on check deployment. Then I received an error message.

Any log messages given by the failure

Please check you have a deployment name dsa-text-ada-001 in your Azure OpenAI resource https://dsa-openaiservice-oai.openai.azure.com/.
If you are using an Instructions based deployment (text-davinci-003), please check you have an environment variable OPENAI_DEPLOYMENT_TYPE=Text or delete the environment variable OPENAI_DEPLOYMENT_TYPE.
If you are using a Chat based deployment (gpt-35-turbo or gpt-4-32k or gpt-4), please check you have an environment variable OPENAI_DEPLOYMENT_TYPE=Chat.
Then restart your application.

Expected/desired behavior

I did not expect any errors

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) I am using Windows 10.

azd version?

run azd version and copy paste here. I am not using azd. As far as I know, I do not have any program that supports that command.

Versions

Mention any other details that might be useful
I also received this error right after the one above.
Traceback (most recent call last): File "/usr/local/src/myscripts/OpenAI_Queries.py", line 18, in check_deployment llm_helper.get_completion("Generate a joke!") File "/usr/local/src/myscripts/utilities/helper.py", line 227, in get_completion return self.llm(prompt) File "/usr/local/lib/python3.9/site-packages/langchain/llms/base.py", line 246, in call return self.generate([prompt], stop=stop).generations[0][0].text File "/usr/local/lib/python3.9/site-packages/langchain/llms/base.py", line 140, in generate raise e File "/usr/local/lib/python3.9/site-packages/langchain/llms/base.py", line 137, in generate output = self._generate(prompts, stop=stop) File "/usr/local/lib/python3.9/site-packages/langchain/llms/openai.py", line 292, in _generate response = completion_with_retry(self, prompt=_prompts, **params) File "/usr/local/lib/python3.9/site-packages/langchain/llms/openai.py", line 99, in completion_with_retry return _completion_with_retry(**kwargs) File "/usr/local/lib/python3.9/site-packages/tenacity/init.py", line 289, in wrapped_f return self(f, *args, **kw) File "/usr/local/lib/python3.9/site-packages/tenacity/init.py", line 379, in call do = self.iter(retry_state=retry_state) File "/usr/local/lib/python3.9/site-packages/tenacity/init.py", line 314, in iter return fut.result() File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 439, in result return self.__get_result() File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result raise self._exception File "/usr/local/lib/python3.9/site-packages/tenacity/init.py", line 382, in call result = fn(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/langchain/llms/openai.py", line 97, in _completion_with_retry return llm.client.create(**kwargs) File "/usr/local/lib/python3.9/site-packages/openai/api_resources/completion.py", line 25, in create return super().create(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 226, in request resp, got_stream = self._interpret_response(result, stream) File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 619, in _interpret_response self._interpret_response_line( File "/usr/local/lib/python3.9/site-packages/openai/api_requestor.py", line 682, in _interpret_response_line raise self.handle_error_response( openai.error.InvalidRequestError: This model's maximum context length is 2049 tokens, however you requested 4097 tokens (5 in your prompt; 4092 for the completion). Please reduce your prompt; or completion length.

Thanks! We'll be in touch soon.

I agree that it's not part of the codebase, but I suspect it was installed when all the packages were installed per the requirements.txt file. I think it comes from streamlit but not sure.
Thanks,
Tim

From: Pamela Fox @.>
Sent: Wednesday, August 2, 2023 11:04 AM
To: Azure-Samples/azure-search-openai-demo @.>
Cc: Timothy A May @.>; Author @.>
Subject: Re: [Azure-Samples/azure-search-openai-demo] LLM is not working (Issue #492)
Hm I'm confused because OpenAI_Queries.py is not a file in this repository. Are you sure this is the right issue tracker?
—
Reply to this email directly, view it on GitHubhttps://github.com/Azure-Samples/azure-search-openai-demo/issues/492#issuecomment-1662379037, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AU2YBPP344DOG7F7BAIHH4DXTJT65ANCNFSM6AAAAAA3BNFXQQ.
You are receiving this because you authored the thread.Message ID: @.***>

@timamay This repo also does not include streamlit. Based on your error description, I think you've actually deployed https://github.com/ruoccofabrizio/azure-open-ai-embeddings-qna
Please post an issue in their tracker. Thanks!


Testing guide

Hey team. I got the ball rolling with a possible outline for a JS testing guide. Who can iterate on this branch? @tylerball @lemonmade @tessalt @m-ux
I suggest we a) Get a first version complete before bringing in more FED for review and b) Focus on just writing down what we currently do most of the time rather than advancing the state of the art.
This doc can probably provide a great starting point and I've already lifted some stuff from it: https://github.com/Shopify/shopify/wiki/Admin-Testing

@Shopify/javascript I made some more updates to the guide and would love some feedback from the rest of the group. Are there parts of this that we aren't sold on? Would love to get something out there that we can start pointing people to.

I've only skimmed a bit but this is looking really good so far. I'm working on some paragraphs for an introduction to insert before we start talking about tools, I'd like to address the "Why should I test my Javascript?" question right away.

Anything I can do to help push this out the door? Can we save any of the remaining discussions for a future release?

I'd be cool with us merging this for now and adding more about functional/integration testing later.

@AWaselnuk There's a small discussion RE cheerio vs jsdom that might be worth making a decision on.

@nathanmarks People could benefit from most of this guide today. It is still helpful without the final decision on cheerio. Can we not open an issue or follow up PR for that debate to resolve it later? This PR brings us from 0 to 1 so anything we can do to ship sooner would be very good IMO.

Two quick updates:

Suggested using JSDom, I agree that it's probably the best recommendation

After chatting with @minasmart and @mikkoh last week, I reorganized the guide and added some additional content that emphasized the features of testing tools we look for, rather than strictly suggesting a set of tools. The recommendations are still there for tools that someone who doesn't know/ doesn't care about JS testing, but for people who know what they are doing, have reasonable reasons not to use mocha/ chai/ sinon, and have a tool in mind that satisfies the recommended features/ testing style, I think it's fine for people to experiment a little.

cc/ @Shopify/javascript unless there's any objections I will get this initial version merged in.

:ship: 😄

👏 👏 👏

🎉 🎉 🎉

🎈 🎈 🎈


Wording needs updating

Under 'How to integrate Azure Information Protection with Cloud App Security' item no. 2 the wording should be updated to be 'Automatically scan new files for Azure Information Protection classification labels and content inspection warnings.'

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

ID: d87a9a6d-db50-50ca-755b-ce28631c30ac
Version Independent ID: 8656b0a3-ab7e-76ec-2d89-8c1aa643c9fa
Content: Integrate Azure Information Protection with Cloud App Security
Content Source: CloudAppSecurityDocs/azip-integration.md
Service: cloud-app-security
Product: ****
Technology: ****
GitHub Login: @shsagir
Microsoft Alias: shsagir

@challengelogic Thanks for your feedback. We've submitted a documentation change based on your suggestion, and the updated article should be live by tomorrow. Please let us know if there's anything more we can do for you. To follow up on this issue, leave us a comment with an @mention.


Including validators commissions in regular update

we have recently found a problem that lead to the fact that the Validators commission shown on the explorer was 0, although they actually has such set on chain. The problem was that the SQL DB had an overflow problem ( Decimal > BigInt ). This was fixed but some validators had their messages parsed before the fix and thus was not saved to the DB.
The fix was to reparse the whole database from scratch with a valid schema and the messages were saved correctly.
However, if BDJuno includes validators commission rates in the updates it pulls from the chain on every block, this problem would have been self fixed, thus this code change suggestion addresses this, whether you may find it useful to be included.
It is using an already existing implementations.
Currently BDJuno make calls to the node on every block height to “pull“ latest and ongoing data in order to update the DB. The current periodic calls to the nodes staking module, which is responsible to keep the current state of the validator commissions on the chain, refresh the following information in the database on every block:
ValidatorVotingPower
ValidatorsStatus
DoubleSignEvidence
StakingPool
ElapsedDelegations
Before the above updates, it makes another one, through the updateValidators method, which rewrites all the values in validator_info table in the DB (consensus_address, operator_address, self_delegate_address, max_change_rate, max_rate, height)
What I’ve done is to use the implementation of this method and an already existing iteration over the current validators to call another existing method SaveValidatorCommission, which updates validator_commission table in the DB.
Simply - I include the validators commission rates to be part of the periodic updates on the price of the associated additional DB writes.

Hi @SpaghettiOverload, have you tried the cmd bdjuno fix staking validators to refetch all the validator-related info?

Hi @SpaghettiOverload, have you tried the cmd bdjuno fix staking validators to refetch all the validator-related info?

@huichiaotsou we are developing a fork some versions behind your main branch, so we lack the said functionality, but it is good to know it is available now. Might switch or use it alone at some point. Thank you!


Worker

coverage: 95.812% (-0.2%) from 96.011%
when pulling a5a75e4c500ad19a953892e836760ded42918041 on worker
into b846ab857abffeb7091f20b46c54f81ae4efbcec on main.


[Refactor-650] add names to thank you list

This is how it looks after adding the names

@daniel-ilan  Do you fix the conflict?
If not, i can help you with it.

Sorry if I misunderstood, I thought this PR should go through design before we make final changes. If that is not the case I will resolve all conflicts ASAP


Add add_system_messsage to BaseChatMessageHistory

Adds a new method to BaseChatMessageHistory to add system messages.
I'm not sure if there's a rationale for keeping system messages out of the interface (is this too specific to OpenAI models?), but it seems useful to me to be able to sprinkle them at will.

I'm using a default agent:
agent = initialize_agent(tools, gpt4, agent="conversational-react-description", memory=memory)

Having a system_message in the history allows me to tweak some minor things (like giving it a personality, or a couple general guidelines), without needing to customize the prompt at the agent/chain level.
I'm not sure if I'm just asking for trouble with this approach, still experimenting with the framework to see what works best. So if you'd consider this an anti-pattern I'm happy to close it

yeah i think this this a bit of an antipattern - i would put system messages like that in the PromptTemplate. Should hopefully have a good example coming soon of how to construct an agent from a prompt template easily

Gotcha! Apprecieate the feedback!

Should hopefully have a good example coming soon of how to construct an agent from a prompt template easily

I'm looking to do something like this... did this ever get documented somewhere?


AttributeError: module 'tensorflow' has no attribute 'Variable'

I run project from here=> https://github.com/david-gpu/deep-makeover
I installed tensorflow by using Anaconda, then I run python3 dm_main.py --run train
Then I have this problem:
File "dm_main.py", line 18, in
import dm_model
File "/Users/oteldanagul/Downloads/deep-makeover-master/dm_model.py", line 5, in
import dm_arch
File "/Users/oteldanagul/Downloads/deep-makeover-master/dm_arch.py", line 10, in
_glbl_is_training = tf.Variable(initial_value=True, trainable=False, name='glbl_is_training')
AttributeError: module 'tensorflow' has no attribute 'Variable'

What version of TensorFlow are you using?  What's dir(tf)?

@girving r0.12

How are you installing TensorFlow?  Somehow you've managed to get a TF distribution with nothing in it.

I remember things like this happening in windows before.
What operating system are you using?
What command did you use to install?

@gunan  @girving  thanks guys, I solved my problem by reinstalling using by pip install tensorflow )
I use OSX

Hi guys,
I've just installed tensorflow using the next command:
python -m pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl
My python:
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32
OS: Windows 10 Pro
My code:
import tensorflow as tf
print(dir(tf));
W = tf.Variable(tf.random_uniform([1], -1.0, 1.0))
Result:
['builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'spec', 'tf']
Traceback (most recent call last):
File "C:/Users/Ros/Desktop/Tmp/tensorflow.py", line 1, in
import tensorflow as tf
File "C:/Users/Ros/Desktop/Tmp\tensorflow.py", line 3, in
W = tf.Variable(tf.random_uniform([1], -1.0, 1.0))
AttributeError: module 'tensorflow' has no attribute 'Variable'

@gunan What extra information would you need to debug this?

Calling in windows experts:
@mrry @guschmue @vit-stepanovs
@rsaliy What does the installation command output look like?
On windows, we have seen cases where pip/conda commands succeeded, but the logs told the installations were failed.
When installing, were you in a terminal that has admin rights?
Without that, the installation may fail because you wont be able to write to system folders.
Also, to avoid some pip issues, could you first run:
python -m pip install --upgrade --ignore_installed pip setuptools

You can also try using the flag --ignore_installed when installing tensorflow to see if it helps.

@gunan

What does the installation command output look like?
I've lost it, because started to train model:
python -m tensorflow.models.image.mnist.convolutional

I don't remember nothing special.
Model was successfully trained
Minibatch loss: 1.595, learning rate: 0.006302
Minibatch error: 0.0%
Validation error: 0.8%
Step 8500 (epoch 9.89), 354.0 ms
Minibatch loss: 1.616, learning rate: 0.006302
Minibatch error: 1.6%
Validation error: 0.9%
Test error: 0.8%

When installing, were you in a terminal that has admin rights?
Without that, the installation may fail because you wont be able to write to system folders.
I wasn't, but python installed in C:\Users\Ros\AppData\Local\Programs\Python\Python35 which doesn't require admin rights.

Rename your script from tensorflow.py to example.py ... 'import tensorflow' will import your own script, not tensorflow.
C:\temp>python tensorflow.py
['builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'spec', 'tf']
Traceback (most recent call last):
File "tensorflow.py", line 1, in
import tensorflow as tf
File "C:\temp\tensorflow.py", line 3, in
W = tf.Variable(tf.random_uniform([1], -1.0, 1.0))
AttributeError: module 'tensorflow' has no attribute 'Variable'
C:\temp>ren tensorflow.py example.py
C:\temp>python example.py
['AggregationMethod', 'Assert', 'AttrValue', 'COMPILER_VERSION', 'ConditionalAccumulator', 'ConditionalAccumulatorBase', 'ConfigProto', 'DType', 'DeviceSpec', 'Dimension', 'Event', 'FIFOQueue', 'FixedLenFeature', 'FixedLenSequenceFeature', 'FixedLengthRecordReader', 'GIT_VERSION', 'GPUOptions', 'GRAPH_DEF_VERSION', 'GRAPH_DEF_VERSION_MIN_CONSUMER', 'GRAPH_DEF_VERSION_MIN_PRODUCER', 'Graph', 'GraphDef', 'GraphKeys', 'GraphOptions', 'HistogramProto', 'IdentityReader', 'IndexedSlices', 'InteractiveSession', 'LogMessage', 'NameAttrList', 'NoGradient', 'NodeDef', 'NotDifferentiable', 'OpError',

@guschmue
Thanks, fixed :)

@rsaliy  could you tell me how to fix it,I meet the same problem with you.

Not sure if this is related but I am getting
import tensorflow.python.keras as keras
## AttributeError: module 'tensorflow' has no attribute 'python'

but importing specific objects does work:
from tensorflow.python.keras.preprocessing.sequence import pad_sequences

This is ubuntu with tf 1.4.0 compiled from source. Any pointers?

The following should work for me on 1.4:
import tensorflow as tf
from tensorflow import keras
from keras.layers import Input, Dense

Per 1.4 it was
from tensorflow.contrib import keras

In my case the solution was:
Rename your script from tensorflow.py to example.py ... 'import tensorflow'
will import your own script, not tensorflow.
On Thu, Dec 21, 2017 at 6:05 PM, Guenther Schmuelling <
<EMAIL_ADDRESS>wrote:

The following should work for me on 1.4:
import tensorflow as tf
from tensorflow import keras
from keras.layers import Input, Dense
Per 1.4 it was
from tensorflow.contrib import keras
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/7285#issuecomment-353388283,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARseJ_UR7t_BmfMTE6ZmRBH0Dxvhg_6fks5tCoG3gaJpZM4L4A_d
.

Thanks. python and core are explicitly deleted from the tensorflow namespace. Not sure why that was needed but it is surely unexpected.

@rsaliy Same here!! Thanks

Weights_11 = tf.Variable(tf.random.normal[1,10])
biases_L1 = tf.Variable(tf.zeros(1,10))
Wx_plus_b_L1 = tf.matmul(x,Weights_11) + biases_L1
L1 = tf.nn.tanh(Wx_plus_b_L1)
Traceback (most recent call last):
File "G:/workspace/PycharmProjects/tensorflow/py_05_linear_regresion.py", line 14, in
Weights_11 = tf.Variable(tf.random.normal[1,10])
AttributeError: module 'tensorflow' has no attribute 'random'

I think it is tf.random_normal()

Hi, I installed
tensorflow 1.5.0
tenseorflow-gpu 1.5.0
CUDA 9
cudnn 7
python 3.6
pip 18
But when i try to import tensorflow i found this errors :
(base) C:\Users\Mouna Nouira>py
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
tf.version
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'tensorflow' has no attribute 'version'

can you help me to resolved this problem please

thanks,it's fixed

@gunan @girving thanks guys, I solved my problem by reinstalling using by pip install tensorflow )
I use OSX

Worked for me . I'm on windows 10

In my case the solution was: Rename your script from tensorflow.py to example.py ... 'import tensorflow' will import your own script, not tensorflow.
…
On Thu, Dec 21, 2017 at 6:05 PM, Guenther Schmuelling < @.***> wrote: The following should work for me on 1.4: import tensorflow as tf from tensorflow import keras from keras.layers import Input, Dense Per 1.4 it was from tensorflow.contrib import keras — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#7285 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ARseJ_UR7t_BmfMTE6ZmRBH0Dxvhg_6fks5tCoG3gaJpZM4L4A_d .

this works for me

For me this error was caused by using tf V2 with a code written in tf V1
I replaced  tf.get_variable  with tf.compat.v1.get_variable and it worked

I replaced  tf.get_variable with tf.compat.v1.get_variable and it worked

This was the issue for me too. I found this useful https://stackoverflow.com/a/55872941/8205650

I am facing this error please help me
decoder_embeddings_matrix = tf.variable(tf.random_uniform([questions_num_words +1, decoder_embedding_size], 0, 1))
AttributeError: module 'tensorflow' has no attribute 'variable'

Add a capital letter

Add a capital letter


Bug when generating an even impulse using an even inverse fft

I can't generate a correct impulse in time domain when using an even inverse fft. I don't know if the problem is due to an incorrect fft inverse transform, or if it's a bug in my code.

Problem avoided by using an odd signal of size n+1 during calculations, then returning an even size signal by truncating the impulse calculated by one sample.


fix(code_actions): Remove now deprecated telescope_code_actions()

Removes telescope_code_actions() function.
Sets associated keybinding to vim.lsp.buf.code_action

First of all, love the plugin, thanks for creating such a great tool.
I am submitting this PR as I recently lost code actions functionality with go.nvim and was presented with:

A bit of googling later I found out that it appears the code actions builtin has been removed from telescope. More on this here and here.
For now using the vim.lsp.buf.code_action command seems to be the way to go. In order to get some nice UI component integration back  telescope-ui-select and dressing.nvim would be options. The latter of which would be an extra dependency.
If you want to integrate one of these in the future, I could take a whack at it.

thanks!

You can replace ui.select with the one from dressing in your init.lua. I do not think a separate PR is needed.

You can replace ui.select with the one from dressing in your init.lua. I do not think a separate PR is needed.

Thanks for the merge, will look into this :)


[Multi Hub] Tab Mail Sample

@Mohammed-MSFT - Please run build pipeline.

Duplicate of: https://github.com/OfficeDev/Microsoft-Teams-Samples/pull/852


During Run fastlane, eas build fails for IOS because of global.css - Cannot read properties of undefined (reading 'raw')

Build/Submit details page URL
https://expo.dev/accounts/ziad-lumora/projects/app/builds/f2559c82-28e6-434e-9b3b-80338218b599
Summary
I am trying to build my IOS app on the cloud using eas-cli, I am using Nativewind (Tailwindcss) and have a src/global.css which I am importing in my _layout.tsx.
Here are my files:
babel.config.js
module.exports = function (api) {
  api.cache(true);
  return {
    presets: [
      ["babel-preset-expo", { jsxImportSource: "nativewind" }],
      "nativewind/babel",
    ],
  };
};

metro.config.js
const { getDefaultConfig } = require("expo/metro-config");
const { withNativeWind } = require("nativewind/metro");

const config = getDefaultConfig(__dirname);

module.exports = withNativeWind(config, { input: "./src/global.css" });

Expected behaviour
Run fastlane passes and all is good.
Actual behaviour
An error during the Bundle\ React\ Native\ code\ and\ images step
Managed or bare?
Managed
Environment
  expo-env-info 1.2.0 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
      npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      expo: ~50.0.14 => 50.0.14
      expo-router: ~3.4.8 => 3.4.8
      react: 18.2.0 => 18.2.0
      react-dom: 18.2.0 => 18.2.0
      react-native: 0.73.6 => 0.73.6
      react-native-web: ~0.19.6 => 0.19.10
    Expo Workflow: managed

WARNING: We recommend using PowerShell or Bash via WSL 2 for development with Expo CLI on Windows. You may encounter issues using cmd.exe.

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

Error output
Executing expo-constants Pods/EXConstants » Copy generated compatibility header
› Compiling Pods/Pods-app » Pods-app-dummy.m
› Packaging Pods/Pods-app » libPods-app.a
› Executing app » [CP] Check Pods Manifest.lock
› Executing app » [Expo] Configure project
› Copying   ios/app/Supporting/Expo.plist ➜ ./Expo.plist
› Compiling app » SplashScreen.storyboard
› Preparing app » Info.plist
› Compiling app » main.m
› Compiling app » app_vers.c
› Compiling app » AppDelegate.mm
› Linking   app » app
⚠  ld: ignoring duplicate libraries: '-lc++'
› Generating debug app » app.app.dSYM
› Executing app » Bundle React Native code and images

❌  error: src/global.css: Cannot read properties of undefined (reading 'raw')

▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/app-gfczuwoxhhirjpelxqecjxyrawps/Build/Intermediates.noindex/ArchiveIntermediates/app/IntermediateBuildFilesPath/app.build/Release-iphoneos/app.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'app' from project 'app')
▸ (1 failure)
** ARCHIVE FAILED **
The following build commands failed:
	PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/app-gfczuwoxhhirjpelxqecjxyrawps/Build/Intermediates.noindex/ArchiveIntermediates/app/IntermediateBuildFilesPath/app.build/Release-iphoneos/app.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'app' from project 'app')
(1 failure)

Reproducible demo or steps to reproduce from a blank project
Follow this project creation guide:
https://www.youtube.com/watch?v=RsFoOlYj-gc&t=218s
have this eas.json
{
  "cli": {
    "version": ">= 7.0.0"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "env": {
        "NPM_TOKEN": "A6B5091B-1042-4E18-8325-174976E700FA"
      }
    }
  },
  "submit": {
    "production": {}
  }
}

run this command:
eas build -p ios --clear-cache --non-interactive

Does building locally using npx expo run:ios work for you? It can be a good starting point to check it.

I'm having this issue as well and I was building for Android.
and It's working locally
I have the same setup as his and I'm on expo SDK 50

I am also facing the same issue, did you get any solution for this @ziadomalik ?
@szdziedzic , yes it is working locally with this command npx expo run:android

same here ass @kartikguptaofficial

Hi, for me I got the solution by upgrading the version of nativewind from v4.0.33 to v4.0.36. This depends on the version of tailwindcss you are using, in my case I was using the latest tailwindcss version i.e. v3.4.10, so in order to use the nativewind, we also require the latest version for nativewind i.e. v4.0.36.
Earlier, I was using tailwindcss with v3.4.6, so nativewind v4.0.33 was working fine, but now upgrading the packages fixed my issue.
@OliverGalusinski


Error with build.sh

Build.sh contains "npm run watch,":

But no "watch" command is provided in "package.json".

So I can't run the project locally

Fixed by a3e897a686037ee5dfc3c21e1c5d6a7c6baeeb41


Allow comments on the same line as statements.

Currently this does not parse: let foo = 10 // setting foo to ten

Agreed.

This is fixed in 0.4.6
Note: The syntax highlighting in the editor isn't fixed yet...


⚠ Bofrost.be has degraded performance

In f9c6320, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 899 ms

Resolved: Bofrost.be performance has improved in a1f8a47 after 6 minutes.


[0][Medium][App] File Generation

Through our regular chat (CMD+L), user should be able to create new files.

When clicking apply, if file does not exist, it should create the file, then input the code within
If file already exists, it should directly put the code within (and have that file open)

Difficulties:

Chat most likely does not know the file directory. How can we have that? Maybe a @Directory tag
Will likely require prompt optimization.

More context:
https://discord.com/channels/1237009981803462729/1280210117601792000
Currently being worked on by @Himanshu-Singh-Chauhan
If you'd like to help investigate and experiment, you're welcome to. Many different ways to accomplish this feature.

Currently being done by @Himanshu-Singh-Chauhan

Incredible job by @Himanshu-Singh-Chauhan


WordPress integration

Hi Luke!!
Is there any way to integrate this plugin in to WordPress? I'm using DIVI as framework
Great job!!

Thanks!!
I`ll give it a shooot!
On 17 Oct 2018, at 05:20, John Odey <notifications<EMAIL_ADDRESS>wrote:
I don't think there is a wordpress plugin for now. I am currently experimenting custom code using scrollify and divi theme.

Go to theme options
go to integration and add  to the head .
Paste the codes in jquery.scrollify.js between script tags.
Set up your scrollify option using the script below and save.

Set the height of className to 100vh.
Give each section class to className.
Update the page and you are good to go.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/lukehaas/Scrollify/issues/342#issuecomment-430475741, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcM7599mvUog0QhvpDKl_fBxDdfABk6nks5ulqHqgaJpZM4Wk_mw.

 Thanks man!

its not work with me i used this code :

pls i need help


Refined Storage Bridge for 1.18.x

Describe your idea
As refined storage is now updated for 1.18.1, it would be great to be able to get the Rs Bridge back.
Describe alternatives you've considered if you've any
No response
Additional context
No response
Linked Issues
No response

Done at #261


Logging / Monitoring For Sandbox MVP

implement the logging solution for the sandbox landing zone as per agreed design

In scope:

logging of breakglass account usage
security logs: audit logs and access transparency logs
data access logs for the infrastructure managed by the platform admin
platform and components logs for the infrastructure managed by the platform admin

Out of scope:

alerting on breakglass account usage
data access logs for clients (will be addressed when the work with the pathfinder has started)


Wrong values in the energy dashboard from AlphaESS system

Hi everyone,
hopefully you can help me with this mess, or maybe somebody encountered the same problem.
Starting from 1st September I'm facing the issue that the energy dashboard shows a complete mess regarding my solar values.

The reality is this:

I didn't change anything here for weeks, why should I though, because it was running super smooth.
Yesterday it was also wrong:

versus reality:

And for today it will be the same, since its wrong even in the morning hours it shows 4,5kwh of load, in reality its 2,4kwh.
I honestly dont get it. I thought it came from the battery, because values here are super crazy, but when I remove the battery from the dashboard, the other values are still wrong.
Funny - or sadly - the entities are completely correct. For yesterday prodcution was 33,3kwh und entitiy says:

I'm really struggling in finding the root cause of this..
Can anybody give me a hint what may be wrong here?
Thank you all!

Heya, the issue has been mentioned here: https://github.com/CharlesGillanders/homeassistant-alphaESS/issues/127 and also upstream here https://github.com/alphaess-developer/alphacloud_open_api/issues/82
TL:DR Its a combination of them giving invalid data (through their server errors and long time outs on requests), and us defaulting to using the value of 0 when receiving invalid data. which is causing these spikes,
A draft PR is open to fix this here: https://github.com/CharlesGillanders/homeassistant-alphaESS/pull/130

Oh I didn't put that together, that this may be the same problem. Thank you for the information regarding this!
So I can do nothing but wait, thats fine, now I know that it's not on my end. Hopefully it can be fixed.
Thank you very much!

Same problem here. anyone know if the root API problem is being worked on by alphaess or  have we just got the custom PR? Wasn't sure if someone might have found a forum post about the api that i missed.

I didn't modify anything in my program，I suggest you find after-sales service to give feedback.