Allow config-specific import configurations to be set/evaluated for back-ends

Currently analyzer's implementation of config-specific imports parses the extended syntax of the import statement and then drops the "configuration" part on the floor.  This is sufficient for use of the analyzer within an IDE, since in principle all of the config-specific variants of an import should expose the same API.  However, it means that when analyzer is used as a front end for a compiler (as it is for DDC), config-specific imports do not take effect.
To allow back-ends to support config-specific imports, we need to provide a way for them to tell the analyzer what the configuration is, and have the analyzer take this into account when resolving the imports.
Note that this resolution logic needs to be written in such a way that it works both during normal resolution and during summary linking (so that AST-based summaries will be properly resolved, and so that summaries can be re-linked if/when the configuration changes).

@bwilkerson is working on this as https://codereview.chromium.org/2345773003/ for normal resolution.

The normal resolution case is done by @bwilkerson in https://github.com/dart-lang/sdk/commit/22040876bf78d8a13294990d198b48109b70473e.

CL for selecting import/export URIs while resynthesizing.
https://codereview.chromium.org/2353433002

https://github.com/dart-lang/sdk/commit/f5a616834ea322eecfef4a0b705b9a195d8204dd


[SPARK-37750][SQL][FOLLOWUP] Change SQLConf parameter name

What changes were proposed in this pull request?
This PR changes ansiFailOnElementNotExists to strictIndexOperator.
Why are the changes needed?
strictIndexOperator aligns with ANSI_STRICT_INDEX_OPERATOR.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing tests.

It seems there wasn't actual error:
https://github.com/tedyu/spark/runs/4705889745?check_suite_focus=true

@dongjoon-hyun @cloud-fan
I have updated the title.
Please merge.
Thanks

Since there is no successful run on this PR, I re-triggered GitHub Action, @tedyu .
Pending CIs.

Ah, it didn't work. I was confused. Since this is not merged yet, please re-trigger GitHub Action, @tedyu . Only the author can re-trigger it because it's running on your GitHub repo.

I clicked Rerun button under https://github.com/tedyu/spark/actions/runs/1654679748

Thank you!

I think this PR is ready for merge.
@dongjoon-hyun @cloud-fan

I think this PR is ready for merge.
@dongjoon-hyun @cloud-fan

This PR is not ready for merge, is it? I don't see any successful run, @tedyu .

@dongjoon-hyun
Maybe I am not good at finding cause for failed test.
Do you mind pointing me to such failed test?
thanks

When I looked under:
https://github.com/tedyu/spark/runs/4707456482?check_suite_focus=true
Error instrumenting class:org.apache.spark.sql.execution.datasources.InsertIntoHadoopFsRelationCommand$
Error instrumenting class:org.apache.spark.sql.execution.streaming.state.StateStore$

I don't think they were caused by my PR.

@tedyu . Please run ParquetV2SchemaPruningSuite locally first.

For the renaming, we need @cloud-fan 's review again, @tedyu .

@gengliangwang @cloud-fan
I have updated the PR according to your suggestion.

Pending CI. :)

All tests passed. Thank you, @tedyu , @cloud-fan , @gengliangwang .
Merged to master.


Implement Password Management API

Objective
Create API endpoints for users to change their passwords securely.
Tasks

Develop an endpoint for users to request a password change.
Implement functionality to validate and update the password.

Acceptance Criteria

API endpoints are implemented and documented.
Proper error handling and validation are in place.

Labels

enhancement
backend
API

Duplicated Issue.


Typing ; replaces ()

Type () to call a method
Type ;
The () are replaced

Any idea what's going on here?

Another case is completing an unimplemented property:


Unit testing

Thanks for putting this together, it's a very nice layout. I appreciate the emphasis in the docs about reproducibility and was surprised that there was not a tests directory.
Maybe it's just me but I like putting in unit tests to make sure that if I make a code change for optimization in one place, that it does not accidentally affect my analysis results. I would be happy to add the /tests directory and make the changes in setup.py if you think this is a worthwhile change.

@itobysq A suite of pytest tests would be a very welcome addition.

At present, I keep tests in the module dir itself; e.g.  something like this in the makefile:
## Run all Unit Tests
test:
     cd src && pytest --doctest-modules --verbose --cov

My tests tend to be split between pytest, hypothesis, and doctests. YMMV


[DropdownButtonFormField]: wrong alignment when using flutter sdk 3.24.0

Steps to reproduce

Expected results
hintText will center down
Actual results
hintText is not centered up and down
Code sample
Code sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text("Dropdown test"),
        ),
        body: Center(
          child: DropdownButtonFormField<String>(
            decoration: InputDecoration(
              border: OutlineInputBorder(),
              // label: Text('Select the option'),
              hintText: 'This hint text',
            ),
            items: [],
            onChanged: (val) {},
          ),
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
    [√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [版本 10.0.22631.4037], locale zh-CN)
    • Flutter version 3.24.0 on channel stable at D:\flutter\FVM_HOME\versions\3.24.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (5 weeks ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at D:\AndroidSdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: D:\JetBrains\JetbrainsToolbox\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.10.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Enterprise
    • Visual Studio Enterprise 2022 version 17.10.35201.131
    • Windows 10 SDK version 10.0.26100.0

[√] Android Studio (version 2024.1)
    • Android Studio at D:\JetBrains\JetbrainsToolbox\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[√] IntelliJ IDEA Ultimate Edition (version 2024.1)
    • IntelliJ at D:\JetBrains\JetbrainsToolbox\IntelliJ IDEA Ultimate
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] VS Code (version 1.92.1)
    • VS Code at C:\Users\Toppine-DEV12\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.94.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [版本 10.0.22631.4037]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 128.0.6613.114
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 128.0.2739.54

[√] Network resources
    • All expected network resources are available.

• No issues found!

This was initially reported in https://github.com/flutter/flutter/issues/111958 and has since been fixed by https://github.com/flutter/flutter/pull/152474. See the screenshots below

master
stable

Closing this since it has already been fixed.
Thank you


feat: add card view of request list and district needs for small devices

Hide request list table on xs and sm devices and show cards instead.

This might take up too much vertical scroll space. Consider only if no alternative for mobile and tablet devices


isDark ref value

The reactivity in the Footer component doesn't work. It is necessary to use .value explicitly
original:

fix:

Fixed in 0f87c0e2370c96dda520b648edcf75b5ebc7b366

thanks, btw why there is needed to use .value explicitly?

See https://github.com/unjs/unimport/pull/15


dnacenter_network_device_list not working due to trailing ,

Prerequisites

[x] Have you tested the operation in the API directly?
[x] Do you have the latest Terraform provider version?
[x] Review the compatibility matrix before opening an issue.

Describe the bug
When using the dnacenter_network_device_list resource, the task is not created in DNA Center, as the body is rejected with error 400. Testing directly on the DNAC API shows that, the ip_address list does not accept a trailing comma on the list, and it rejects with error 400, removing the trailing comma makes the POST go through.
ipAddress = ["<IP_ADDRESS>"] -> OK
ipAddress = ["<IP_ADDRESS>",] -> Error 400
Terraform seems to add a trailing comma to all lists.
  # dnacenter_network_device_list.example will be created
  + resource "dnacenter_network_device_list" "example" {
      + id           = (known after apply)
      + item         = (known after apply)
      + last_updated = (known after apply)

      + parameters {
          + cli_transport        = "ssh"
          + compute_device       = "false"
          + enable_password      = (sensitive value)
          + http_password        = (sensitive value)
          + http_port            = "443"
          + http_secure          = "true"
          + http_user_name       = (sensitive value)
          + ip_address           = [
              + "<IP_ADDRESS>",
            ]

Expected behavior
The device should be created on DNAC inventory. Either the provider should jsonify the body before sending (and remove the trailing ,) or another solution.
Screenshots
Please provide an screenshot of the successful API call with cuRL, Postman, etc.
Environment (please complete the following information):

Cisco DNA Center version and patch:  <IP_ADDRESS>-70194
Terraform version: v1.5.6
Cisco DNA Center provider version: 1.1.7-beta
OS Version: MacOSX Ventura

Additional context
Add any other context about the problem here.

Hi @edudppaz could you share me provider DEBUG?

Hi @fmunozmiranda . I´ve taken the debug log and it seems like the "," is shown in the terraform plan/apply output not not on the request being sent. DNAC is anyways not accepting the request, as the device is not created and the subsequent requests from the provider to get the device data comes empty:
Sanitized output from terraform debug:
=============================================================================="
2023-06-27T09:58:39.802+0200 [INFO]  Starting apply for dnacenter_network_device_list.example
2023-06-27T09:58:39.803+0200 [DEBUG] dnacenter_network_device_list.example: applying the planned Create change
2023-06-27T09:58:39.805+0200 [INFO]  provider.terraform-provider-dnacenter_v1.0.19-beta: 2023/06/27 09:58:39 [DEBUG] setting computed for "item" from ComputedKeys: timestamp=2023-06-27T09:58:39.805+0200
2023-06-27T09:58:39.806+0200 [INFO]  provider.terraform-provider-dnacenter_v1.0.19-beta: 2023/06/27 09:58:39 [DEBUG] request sent => {"cliTransport":"ssh","computeDevice":false,"enablePassword":"enablepass","httpPassword":"httppass","httpPort":"443","httpSecure":true,"httpUserName":"dnacadmin","ipAddress":["<IP_ADDRESS>"],"netconfPort":"830","password":"mypassword","snmpAuthPassphrase":"snmpauthphrase","snmpAuthProtocol":"SHA","snmpMode":"AUTHPRIV","snmpPrivPassphrase":"snmpprivphrase","snmpPrivProtocol":"AAES128","snmpRetry":3,"snmpTimeout":5,"snmpUserName":"dnacadmin","snmpVersion":"v3","type":"NETWORK_DEVICE","userName":"dnacadmin"}: timestamp=2023-06-27T09:58:39.806+0200
2023-06-27T09:58:39.840+0200 [INFO]  provider.terraform-provider-dnacenter_v1.0.19-beta: 2023/06/27 09:58:39 [DEBUG] [RESTY]
==============================================================================
~~~ REQUEST ~~~
GET  /dna/intent/api/v1/network-device?managementIpAddress=<IP_ADDRESS> HTTP/1.1
HOST   : <IP_ADDRESS>
HEADERS:
                Accept: application/json
                Content-Type: application/json
                User-Agent: go-resty/2.7.0 (https://github.com/go-resty/resty)
                X-Auth-Token:
BODY   :
***** NO CONTENT *****
------------------------------------------------------------------------------
~~~ RESPONSE ~~~
STATUS       : 200
PROTO        : HTTP/1.1
RECEIVED AT  : 2023-06-27T09:58:39.838009465+02:00
TIME DURATION: 31.651054ms
HEADERS      :
                Cache-Control: no-store
                Connection: keep-alive
                Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval' blob: data:
                Content-Type: application/json;charset=UTF-8
                Date: Tue, 27 Jun 2023 07:58:12 GMT
                Pragma: no-cache
                Server: webserver
                Set-Cookie: JSESSIONID=5EAC4807E2172A09EF06E4088DA9B03C; Path=/apic-em-inventory-manager-service; HttpOnly; Secure; HttpOnly; SameSite=Strict
                Strict-Transport-Security: max-age=31536000; includeSubDomains
                Via: api-gateway
                X-Content-Type-Options: nosniff
                X-Frame-Options: SAMEORIGIN
                X-Request-Id: ae629db6d13a9131bd2498266306d334
                X-Xss-Protection: 1
BODY         :
{
   "response": [],
   "version": "1.0"
}
==============================================================================: timestamp=2023-06-27T09:58:39.838+0200
2023-06-27T09:58:39.840+0200 [INFO]  provider.terraform-provider-dnacenter_v1.0.19-beta: 2023/06/27 09:58:39 [DEBUG] Retrieved error keys serial_number: timestamp=2023-06-27T09:58:39.838+0200
2023-06-27T09:58:39.840+0200 [INFO]  provider.terraform-provider-dnacenter_v1.0.19-beta: 2023/06/27 09:58:39 [DEBUG] Retrieved error keys ip_address: timestamp=2023-06-27T09:58:39.838+0200
2023-06-27T09:58:39.840+0200 [INFO]  provider.terraform-provider-dnacenter_v1.0.19-beta: 2023/06/27 09:58:39 [DEBUG] Retrieved error keys ip_address:=<IP_ADDRESS>: timestamp=2023-06-27T09:58:39.838+0200
2023-06-27T09:58:39.840+0200 [INFO]  provider.terraform-provider-dnacenter_v1.0.19-beta: 2023/06/27 09:58:39 [DEBUG] Selected method 1: GetDeviceList: timestamp=2023-06-27T09:58:39.838+0200
2023-06-27T09:58:39.869+0200 [INFO]  provider.terraform-provider-dnacenter_v1.0.19-beta: 2023/06/27 09:58:39 [DEBUG] [RESTY]
==============================================================================
~~~ REQUEST ~~~
GET  /dna/intent/api/v1/network-device?managementIpAddress=<IP_ADDRESS>  HTTP/1.1
HOST   : <IP_ADDRESS>
HEADERS:
                Accept: application/json
                Content-Type: application/json
                User-Agent: go-resty/2.7.0 (https://github.com/go-resty/resty)
                X-Auth-Token:
BODY   :
***** NO CONTENT *****
------------------------------------------------------------------------------
~~~ RESPONSE ~~~
STATUS       : 200
PROTO        : HTTP/1.1
RECEIVED AT  : 2023-06-27T09:58:39.868524976+02:00
TIME DURATION: 29.808774ms
HEADERS      :
                Cache-Control: no-store
                Connection: keep-alive
                Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval' blob: data:
                Content-Type: application/json;charset=UTF-8
                Date: Tue, 27 Jun 2023 07:58:12 GMT
                Pragma: no-cache
                Server: webserver
                Set-Cookie: JSESSIONID=B0ED486681003D8EC82DC0386CA1E32A; Path=/apic-em-inventory-manager-service; HttpOnly; Secure; HttpOnly; SameSite=Strict
                Strict-Transport-Security: max-age=31536000; includeSubDomains
                Via: api-gateway
                X-Content-Type-Options: nosniff
                X-Frame-Options: SAMEORIGIN
                X-Request-Id: 32a53d3910a6b886bda67a710903cbf3
                X-Xss-Protection: 1
BODY         :
{
   "response": [],
   "version": "1.0"
}
==============================================================================: timestamp=2023-06-27T09:58:39.868+0200
2023-06-27T09:58:39.869+0200 [INFO]  provider.terraform-provider-dnacenter_v1.0.19-beta: 2023/06/27 09:58:39 [DEBUG] Retrieved response {"response":[],"version":"1.0"}: timestamp=2023-06-27T09:58:39.868+0200
2023-06-27T09:58:39.870+0200 [WARN]  Provider "provider[\"registry.terraform.io/cisco-en-programmability/dnacenter\"]" produced an unexpected new value for dnacenter_network_device_list.example, but we are tolerating it because it is using the legacy plugin SDK.
    The following problems may be the cause of any confusing errors from downstream operations:
      - .parameters[0].serial_number: was null, but now cty.StringVal("")
      - .parameters[0].snmp_rw_community: was null, but now cty.StringVal("")
      - .parameters[0].extended_discovery_info: was null, but now cty.StringVal("")
      - .parameters[0].snmp_ro_community: was null, but now cty.StringVal("")
2023-06-27T09:58:39.896+0200 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2023-06-27T09:58:39.897+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-06-27T09:58:39.902+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/cisco-en-programmability/dnacenter/1.0.19-beta/linux_amd64/terraform-provider-dnacenter_v1.0.19-beta pid=2069695
2023-06-27T09:58:39.902+0200 [DEBUG] provider: plugin exited

I just tested the exact same JSON directly via the DNA Center API navigator (/dna/intent/api/v1/network-device), and it seems to crash the API, as i get an invalid token response and i have to log back into DNAC every time i try the API.

I tested the API to add a controller to inventory, and used the API in the past to add switches. The API performs as designed. Here is the payload request I sent for one device:
{
    "cliTransport": "ssh",
    "enablePassword": "password",
    "ipAddress": [
        "<IP_ADDRESS>"
    ],
    "password": "password",
    "snmpRWCommunity": "snmp",
    "snmpVersion": "v2",
    "userName": "username"
}

I tried to API to add multiple devices at a time and it works:
{
    "cliTransport": "ssh",
    "enablePassword": "password",
    "ipAddress": [
        "<IP_ADDRESS>", "<IP_ADDRESS>"
    ],
    "password": "password",
    "snmpRWCommunity": "snmp",
    "snmpVersion": "v2",
    "userName": "username"
}

Hi @zapodeanu  @fmunozmiranda , i just tested with v1.1.11-beta of the provider and it seems to be working now. Not working with v1.1.10-beta.
Unsure what were exactly the changes, but the terraform debug now shows the correct body in the response from DNAC (it was almost no info before) and the device was created on the inventory

Change was on a validation, CISCO sometimes sends nil stucts when there's no data, but in this time, sends a stuct with empty array, so that was the problem.
Happy to help you @edudppaz .
Closing the issue.


Able to create a new function with existing function name.

I was able to create a new function with the same name as an existing function.  This seemingly results in a new function with the same name added to the left pane.  See snapshot below.

Toggling between the two functions give me the same editor view and content though.  At first, I thought my only course of action was to delete the function, but then I noticed the "Refresh" button at the bottom.  Clicking the Refresh button fixed it by removing the duplicate function.
Nonetheless, I think a simple validation can prevent this unexpected behavior from happening in the first place.

Thanks @tohling. This was fixed in 9196512fb11947f910e743a6f0b4673593b142af, but fix hasn't made it to production yet


Transitions in JIRA will result in an endless loop of updates

Bug description
An update to a finding that will result in a transition to a JIRA issue also ends up in an endless loop
Steps to reproduce
Steps to reproduce the behavior:

Create a finding in a product with push_to_JIRA set.
From the API send
{"push_to_jira": "true",
"active": "false",
"verified": "true",
"is_Mitigated": "true"}
To patch that finding.
DDJ will loop in updates to JIRA to try to update a ticket that has already been done

Expected behavior
DDJ will update the JIRA ticket once only
Deployment method (select with an X)

[ ] Kubernetes
[X] Docker
[ ] setup.bash / legacy-setup.bash

Environment information
DDJ version 1.8.0. Installed with docker compose.
Sample scan files (optional)
If applicable, add sample scan files to help reproduce your problem.
Screenshots (optional)
If applicable, add screenshots to help explain your problem.
Console logs (optional)
If applicable, add console logs to help explain your problem.
Additional context (optional)
O.K.  I started this thread on https://owasp.slack.com/archives/C2P5BA8MN/p1601478823038900, but the discussion really belongs here.  So, I am continuing here.  When I started this, I really didn’t expect to be digging into code.  After a lot of debugging, here is where I am and a couple of questions that I have.
First, the setup:
I have a finding that I am trying to close with the API.  So I am pushing to the API.
{ “push_to_jira”: “true”,
“active”: “false”,
“verified”: “true”,
“is_Mitigated”: “true”}
When it saves it gets processed by finding.save() and then gets sent to function update_jira_issue.  the update_jira_issue function calls find.save several times.  At least twice when it there is a state transition for JIRA. Once around line 1610 and another time after the transition is complete.  When find.save() is called, it doesn’t specifically state that push_to_jira is true, but the object still has push_to_jira set, so .save() will overwrite the default value of push_to_jira (~ 6 lines into the function).  This happens 2 per call to update_jira_issue.  Now the code is running in a loop.
Questions:
If push_to_jira is specifically called out when the .save() functions is called, should the value in the object be overwriting it?
Should the value of find.push_to_jira be set to false by update_jira_issue before calling save again? (edited)
See Slack Chats.
https://owasp.slack.com/archives/C014H3ZV9U6/p1601570100039600?thread_ts=1601563511.038000&cid=C014H3ZV9U6
https://owasp.slack.com/archives/C2P5BA8MN/p1601478823038900

fixed in dev, will be in 1.9.0


Gladstone Snowflake Middleware GPT Action Library cookbook

Summary
Briefly describe the changes and the goal of this PR. Make sure the PR title summarizes the changes effectively.
Motivation
Why are these changes necessary? How do they improve the cookbook?

For new content
When contributing new content, read through our contribution guidelines, and mark the following action items as completed:

[ ] I have added a new entry in registry.yaml (and, optionally, in authors.yaml) so that my content renders on the cookbook website.
[ ] I have conducted a self-review of my content based on the contribution guidelines:

[ ] Relevance: This content is related to building with OpenAI technologies and is useful to others.
[ ] Uniqueness: I have searched for related examples in the OpenAI Cookbook, and verified that my content offers new insights or unique information compared to existing documentation.
[ ] Spelling and Grammar: I have checked for spelling or grammatical mistakes.
[ ] Clarity: I have done a final read-through and verified that my submission is well-organized and easy to understand.
[ ] Correctness: The information I include is correct and all of my code executes successfully.
[ ] Completeness: I have explained everything fully, including all necessary references and citations.

We will rate each of these areas on a scale from 1 to 4, and will only accept contributions that score 3 or higher on all areas. Refer to our contribution guidelines for more details.

Looks good to me – as I've incorporated some changes I'll let you merge if you agree with those @gladstone-openai.

Added title that was missing and hyperlinks instead of relative (not sure they work on the cookbook, might revisit later).
Two things I'm also wondering but don't believe we should change/wait to merge but can revisit later:

Should we reference the Direct cookbook (as the direct references this one) ? Or Should it be just one cookbook but with two different ways of integration referenced in it ?
Should we rename "Middleware" to "Files/CSVs" or something like that. Middleware is the "how" rather than the "why"/"what" which feels less explicit when just looking at titles – a user may ask why would I need a middleware and would just go direct if they don't read through all of the content

Added title that was missing and hyperlinks instead of relative (not sure they work on the cookbook, might revisit later).
Two things I'm also wondering but don't believe we should change/wait to merge but can revisit later:

Should we reference the Direct cookbook (as the direct references this one) ? Or Should it be just one cookbook but with two different ways of integration referenced in it ?
Should we rename "Middleware" to "Files/CSVs" or something like that. Middleware is the "how" rather than the "why"/"what" which feels less explicit when just looking at titles – a user may ask why would I need a middleware and would just go direct if they don't read through all of the content

I agree with both of these. I can address in a follow up commit, though we should chat about the best naming convention for direct vs middleware. I agree the current one is bad. I just don't know what the right answer is.


Use bundler-cache: true to automatically cache installed gems

Run bundle exec rubocop
Error: Unsupported Ruby version 2.1 found in `TargetRubyVersion` parameter (in vendor/bundle/ruby/2.4.0/gems/rainbow-3.0.0/.rubocop.yml). 2.1-compatible analysis was dropped after version 0.58.
Supported versions: 2.2, 2.3, 2.4, 2.5, 2.6
Error: Process completed with exit code 2.

That's RuboCop looking at files it should not, will try to tell it not to do that.

@coorasse Passing now :)
I guess TravisCI could be removed since GHA works fine?

hi @eregon, I just checked issue with exclude (disscused in https://github.com/ruby/setup-ruby/issues/131) and it seems it works correctly by default.
But quotes in gemfiles should be fixed (or cop should be disabled for gemfiles) :)
failed build because of quotes: https://github.com/artplan1/cancancan/runs/1626274482?check_suite_focus=true#step:6:13
green build with fixes: https://github.com/artplan1/cancancan/runs/1626294534?check_suite_focus=true#step:6:13
changes: https://github.com/artplan1/cancancan/pull/1/files

But quotes in gemfiles should be fixed (or cop should be disabled for gemfiles) :)

I assume that's not an option, because these gemfiles are generated by Appraisal.
Although, there might be a newer version of Appraisal or some way to configure it to use single quotes.
Still, I'd like to keep it simple in this PR :)

@coorasse Could you merge this?
It also excludes a failing combination of TruffleRuby + Rails 4 (cannot work, TruffleRuby now targets Ruby 2.7 which doesn't work on Rails 4).


New VNet Integration

At Ignite 2018, a new VNET integration capability and UI was announced for App Service Plans. I can see that the documentation has been updated and this is in preview for East US regions. I just built a brand new app service with an ASP of standard tier and I am not finding any new capabilities/UI within the Azure Portal.
Can you confirm that this is currently available to the public?

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

ID: a7a98803-1438-b1b5-f543-7dd88bc4294e
Version Independent ID: 37ff1d0f-ed8e-5e4d-1f4c-1b9f6cffb938
Content: Integrate an app with an Azure Virtual Network
Content Source: articles/app-service/web-sites-integrate-with-vnet.md
Service: app-service
GitHub Login: @ccompy
Microsoft Alias: ccompy

@Kenneth-Abrams Do you have a link to the announcement @ Ignite 2018?

@jochenvangasse I can't find the blog post, but it was part of Christina's talk on App Service Networking. Some of the capabilities I am referring to are highlighted in the last section of this article: "New VNET Integration".

Hi @Kenneth-Abrams, Thanks for the feedback! We are currently investigating and will update you shortly.

The new VNET capabilities are now reflected in the docs, yet i can't see them light up in North Europe or East US (new App Service plans everywhere).

Hi @Kenneth-Abrams & @snobu, the VNET integration capability, along with other features announced at Ignite should be live by the end of October. However, the timeline is always subject to change.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

Thanks! You should add a note here for the timeline to avoid any confusion.

Seems to be available for West Europe now too

I have tried to integrate my app in UK south. How do i know when VNet integration is successful? Where do i see the IP of my app?

How do i check the IP for my web app when it has been VNet integrated?


Encrypt ticket data in CAS ticket registries

CAS caches some of its data in long-lived caches. Some of that data is of sensitive nature. When CAS is set up in a cluster, these caches need to be replicated over the network. While it would be possible to require cluster implementers to secure the replication transmissions, providing this ability "out of the box" would have an advantage of solving it once for everyone. Those who don't need to cluster CAS don't have to use the encryption.
Also part of CAS AppSec WG work items.

I am resurrecting this PR https://github.com/Jasig/cas/pull/459

We had discussed using an Aspect or a Wrapper ticket registry. I think there is a 3rd and possibly better option, that is, allow distributed ticket registries, and those that support it, inherit from a special class that allows them to encode/decode ticket data. Candidates would be all-cached based ticket registries. Configuration is much much easier, and we don't meddle with those registries that we cannot support encryption for, such as JPA.


oracle baremetal outages(placeholder_for_srs)

BM Instance unresponsive 3-34373883051
Closed
No longer able to add BM HPC instances to our cluster. 3-34322406231
Issue with Instance - inst-vjaro-watch-tower 3-34292936221
Issue with Instance - inst-yajr3-watch-tower 3-34143139651

These are done. Each issue in Oracle has an RCA in the ticket.


Invalid segment (https://qr.nutella.com/). Paths must not contain // in them.

Hi there!
First of all, thank you for your awesome plugin! It works really great so far.
But I see many exceptions from users of my app which uses your plugin which says something like this:
Invalid segment (https://qr.nutella.com/). Paths must not contain // in them.
Do you maybe know where this exception comes from? This happens with many products and I have no idea at all where this comes from.

It actually were a user error.


fix: bump up gcc to 11 and set rust toolchain to stable

Issue being fixed or feature implemented

Failing release build for aarch64-unknown-linux-gnu:
Failed job: https://github.com/dashpay/rs-platform/actions/runs/3268032503/jobs/5373960282
   = note: /usr/lib/gcc-cross/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/bin/ld: cannot find -lstdc++: No such file or directory
          collect2: error: ld returned 1 exit status

error: could not compile `node` due to previous error
Did not copy "cdylib:node"

What was done?

set the rust toolchain for release build to stable
bump up the GCC  version to 11 (as it has changed in docker musl image)

How Has This Been Tested?

Breaking Changes

Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have added or updated relevant unit/integration/functional/e2e tests
[ ] I have made corresponding changes to the documentation

For repository code-owners and collaborators only

[ ] I have assigned this pull request to a milestone

Closed in favor of #167


Raspberry pi feeez and hang

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
Python release (python3 --version):
Component/platform:
Description of problem:
Expected:
Problem-relevant configuration.yaml entries and steps to reproduce:

Traceback (if applicable):

Additional info:

This is the bug/issue tracker for Home Assistant. Please use the forum for questions about installation, setup, and configuration. Also, for hardware-related problems.
If it's a bug, please re-open the issue with the issue template filled.


added support for TeamCity 2023.05.4

What does this PR do?
adding support for newly formatted prometheus metrics in TeamCity v 2023.05.4
Motivation
https://datadoghq.atlassian.net/browse/AI-3900
Additional Notes
thanks to @rumochnaya for providing the metrics.py that we were able to use for this integration
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] Changelog entries must be created for modifications to shipped code
[ ] Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
[ ] If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

Thanks @rumochnaya for helping out with this!


Add new string types

Add new string types (time) using chance.js. The best approach is to add more types here

i would like to help with that. The idea is to add more types like timestamp, weekday, etc. right?


ldap configuration

Change Type
Addition
Area
Configuration parameters
Proposed Changes
i completely followed the documentation to configure ldap authentication but it doesn't work
i don't see any attempt to authenticate to ad through tcpdump
am i missing anything?
it seems that it is configured but not enabled
i have done manual installation and everything else works

Can you please share your configuration, obviously obscure the sensitive information part :)

configuration.py
# This is a list of valid fully-qualified domain names (FQDNs) for this server.
# The server will not permit write access to the server via any other
# hostnames. The first FQDN in the list will be treated as the preferred name.
#
# Example: ALLOWED_HOSTS = ['peering.example.com', 'peering.internal.local']
ALLOWED_HOSTS = ["*"]

# Must be unique to each setup (CHANGE IT!).
SECRET_KEY = "SECRET_KEY"

# Base URL path if accessing Peering Manager within a directory.
BASE_PATH = ""

# Time zone to use for date.
TIME_ZONE = "Europe/Paris"

# PostgreSQL database configuration
DATABASE = {
    "NAME": "DATABASENAME",  # Database name
    "USER": "USERNAME",  # PostgreSQL username
    "PASSWORD": "PASSWORD",  # PostgreSQL password
    "HOST": "localhost",  # Database server
    "PORT": "",  # Database port (leave blank for default)
}

# Redis configuration
REDIS = {
    "tasks": {
        "HOST": "localhost",
        "PORT": 6379,
        "PASSWORD": "",
        "DATABASE": 0,
        "SSL": False,
    },
    "caching": {
        "HOST": "localhost",
        "PORT": 6379,
        "PASSWORD": "",
        "DATABASE": 1,
        "SSL": False,
    },
}
# Maximum execution time for background tasks, in seconds.
RQ_DEFAULT_TIMEOUT = 300
# Cache timeout in seconds. Set to 0 to disable caching.
CACHE_TIMEOUT = 900

LOGIN_REQUIRED = True

ldap_config.py
import ldap

# Server URI
AUTH_LDAP_SERVER_URI = "ldap://OURDOMAINCONTROLLERIP"

# May be needed if you are binding to Active Directory
AUTH_LDAP_CONNECTION_OPTIONS = {
    ldap.OPT_REFERRALS: 0
}

# Set the DN and password for the Peering service account
AUTH_LDAP_BIND_DN = "CN=Ldap Binding,CN=Users,DC=domain,DC=local"
AUTH_LDAP_BIND_PASSWORD = "PASSWORD"

from django_auth_ldap.config import LDAPSearch

# This search matches users with the sAMAccountName equal to the provided
# username. This is required if the user's username is not in their DN (Active
# Directory)
AUTH_LDAP_USER_SEARCH = LDAPSearch("cn=Users,dc=domain,dc=local",
                                   ldap.SCOPE_SUBTREE,
                                   "(sAMAccountName=%(user)s)")

# If a user's DN is producible from their username, we don't need to search
AUTH_LDAP_USER_DN_TEMPLATE = "uid=%(user)s,cn=users,dc=domain,dc=local"

# You can map user attributes to Django attributes with this
AUTH_LDAP_USER_ATTR_MAP = {
    "first_name": "givenName",
    "last_name": "sn",
    "email": "mail"
}

from django_auth_ldap.config import LDAPSearch, GroupOfNamesType

# Return all groups to which the user belongs. django_auth_ldap uses this to
# determine group hierarchy
AUTH_LDAP_GROUP_SEARCH = LDAPSearch("dc=domain,dc=local", ldap.SCOPE_SUBTREE,
                                    "(objectClass=group)")
AUTH_LDAP_GROUP_TYPE = GroupOfNamesType()

# Define a group required to login
AUTH_LDAP_REQUIRE_GROUP = "CN=peering-manager,DC=domain,DC=local"

# Assign user flags based on groups
AUTH_LDAP_USER_FLAGS_BY_GROUP = {
    "is_active": "cn=peering-manager,dc=domain,dc=local",
    "is_staff": "cn=peering-manager,dc=domain,dc=local",
    "is_superuser": "cn=admins,dc=domain,dc=local"
}

# Map LDAP groups to Django groups
AUTH_LDAP_FIND_GROUP_PERMS = True

# Cache for an hour
AUTH_LDAP_CACHE_GROUPS = True
AUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600

obviously sensitive data is replaced with text
let me know if i missed something to share

Do you have the django-auth-ldap packaged installed in your venv?

yes
root@freddy:/opt/peering-manager# source ./venv/bin/activate
(venv) root@freddy:/opt/peering-manager# pip list | grep django
django-auth-ldap      4.1.0
django-cacheops       6.1
django-debug-toolbar  3.7.0
django-filter         22.1
django-netfields      1.3.0
django-prometheus     2.2.0
django-rq             2.5.1
django-tables2        2.4.1
django-taggit         3.0.0
djangorestframework   3.14.0

Is the shown configuration.py complete?
It might be worth a try to enable debug mode.

To check if LDAP is actually enabled (config loaded properly) you can do the following, within the venv:
python manage.py shell

>>> from django.conf import settings
>>> settings.LDAP_CONFIGURED
True

If it shows False instead of True it means that something's fishy. ldap_config is not in the correct directory (it must be alongside configuration.py or file is not syntactically correct (Python cannot load it).

Is the shown configuration.py complete? It might be worth a try to enable debug mode.

yes, it is complete file

To check if LDAP is actually enabled (config loaded properly) you can do the following, within the venv:
python manage.py shell

>>> from django.conf import settings
>>> settings.LDAP_CONFIGURED
True

If it shows False instead of True it means that something's fishy. ldap_config is not in the correct directory (it must be alongside configuration.py or file is not syntactically correct (Python cannot load it).

(venv) root@freddy:/opt/peering-manager# python manage.py shell
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.conf import settings
>>> settings.LDAP_CONFIGURED
True
>>>

root@freddy:/opt/peering-manager/peering_manager# ls -l
total 100
-rw-r--r-- 1 peering-manager peering-manager   338 Oct 21 09:43 admin.py
drwxr-xr-x 3 peering-manager peering-manager  4096 Oct 21 09:51 api
-rw-r--r-- 1 peering-manager peering-manager   396 Oct 21 09:43 asgi.py
-rw-r--r-- 1 peering-manager peering-manager  1382 Oct 21 09:43 configuration.example.py
-rw-r--r-- 1 peering-manager peering-manager  2355 Oct 24 11:38 configuration.py <----
-rw-r--r-- 1 peering-manager peering-manager  5962 Oct 21 09:43 constants.py
-rw-r--r-- 1 peering-manager peering-manager   805 Oct 21 09:43 context_processors.py
-rw-r--r-- 1 peering-manager peering-manager   153 Oct 21 09:43 forms.py
-rw-r--r-- 1 peering-manager peering-manager    52 Oct 21 09:43 __init__.py
drwxr-xr-x 3 peering-manager peering-manager  4096 Oct 21 09:51 jinja2
-rw-r--r-- 1 peering-manager peering-manager  1923 Oct 21 13:21 ldap_config.py <----
-rw-r--r-- 1 peering-manager peering-manager  3588 Oct 21 09:43 middleware.py
drwxr-xr-x 2 peering-manager peering-manager  4096 Oct 24 11:39 __pycache__
-rw-r--r-- 1 peering-manager peering-manager   178 Oct 21 09:43 request_context.py
-rw-r--r-- 1 peering-manager peering-manager  1640 Oct 21 09:43 schema.py
-rw-r--r-- 1 peering-manager peering-manager 17573 Oct 21 10:19 settings.py
drwxr-xr-x 2 peering-manager peering-manager  4096 Oct 21 09:43 tests
-rw-r--r-- 1 peering-manager peering-manager  2581 Oct 21 09:43 urls.py
drwxr-xr-x 3 peering-manager peering-manager  4096 Oct 21 09:51 views
-rw-r--r-- 1 peering-manager peering-manager   438 Oct 21 09:43 wsgi.py

Can you try setting up a logger (i.e. writing logs in the console) to see if anything happens? Like:
LOGGING = {
    "version": 1,
    "formatters": {
        "simple": {
            "format": "%(asctime)s | %(levelname)s | %(message)s",
            "datefmt": "%Y-%m-%d %H:%M:%S",
        }
    },
    "handlers": {"console": {"class": "logging.StreamHandler", "formatter": "simple"}},
    "loggers": {
        "django_auth_ldap": {"handlers": ["console"], "level": "DEBUG"},
    },
}

Can you try setting up a logger (i.e. writing logs in the console) to see if anything happens? Like:
LOGGING = {
    "version": 1,
    "formatters": {
        "simple": {
            "format": "%(asctime)s | %(levelname)s | %(message)s",
            "datefmt": "%Y-%m-%d %H:%M:%S",
        }
    },
    "handlers": {"console": {"class": "logging.StreamHandler", "formatter": "simple"}},
    "loggers": {
        "django_auth_ldap": {"handlers": ["console"], "level": "DEBUG"},
    },
}

Hi, i made this test and after a restart, nothing is happening in the web console.
I can see only these messages when i login.
Also if i enable the debug mode i don't see any relevant messages.

Hi, i made this test and after a restart, nothing is happening in the web console. I can see only these messages when i login.
Also if i enable the debug mode i don't see any relevant messages.

What about in the stdout/stderr of the peering-manager WSGI process? You won't see much in the web console of your browser here, as it appears to be an issue of the WSGI process.


Replace adrest with Pylama

@klen thoughts?

@klen ping :)

Closing, as it's a minor change anyways.


Deploy shine-core-db fails

Dear experts,
I am trying to deploy SHINE on SAP HANA EXPRESS 2.0 system. The deployment process seems to work fine until the task below:
"Executing task "deploy" on application "shine-core-db"...
Task execution status: running
Task execution status: failed
Error executing task "deploy" on application "shine-core-db"
Unexpected error: Async execution has failed
ERR    Error executing task "deploy" on application "shine-core-db"
Unexpected error: Async execution has failed"
MAIN_LOG.txt
See attached log file.
Thanks in advance!
Kind regards,
Geir Kronkvist

Hi Geir,
Kindly execute the command "xs logs shine-core-db --recent" and share the output logs.
This will help us analyse the issue better.
Thanks and Regards,
Lakshmi

Closing this issues as we did not get a response. Feel free to reopen if its still relevent.
Best Regards
Stephen


Logs should roll over

The current logs just keep on getting bigger. The file logs should roll over after a configurable size.

And we should probably also be able to log to a log server.


Added MathJax rendering

Summary:
This added MathJax rendering to the conversation whenever we detect any
conversation that contains MathJax inline in the conversation.
Note this will interact with highlighting annotation.  Instead of making
the annotation code much more complex, we just display a seperate
formula rendering below the conversation (see screenshot).  This seems
to be the easiest soluation to annotate and without losing conversation context.
Issue: https://khanacademy.atlassian.net/browse/DI-533
Test plan:
yarn start and see the equation rendered.

Ah ha, love the linter output - I will fix that next week (the import is already fixed in #3)

Okay, this is now ready for review.  Internally, this PR is now deployed on our staging server, which can be tested to confirm that it is rendering.
Note that the E2E test is broken on Github - that is due to some external depdnency on resource that makes the E2E test hang and timeout.  I'm manually run the E2E test (see test plan) and confrm it is working.


Support RHEL / CentOS

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Checked that your issue isn't already filled: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aidealista
Checked that there is not already provided the described functionality

Description
Are there plans to make this role support yum / rpm based systems?

Hi @janhoy,
we'll handle the issue as soon as possible. If this is something critical for you we'll be delighted to receive a pull request and include this feature in the next release.
Thank you in advance!

I have not decide whether to use the sansible role or your role yet, and I got the same reply from them (https://github.com/sansible/prometheus_server/issues/3), so I guess I'll first need to decide where to put the effort :-)


go: writing stat cache:, permission denied

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.11beta2 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/zongmeng/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/zongmeng/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/66/h198vsq94gjbzhkj2vbg1rqr0000gn/T/go-build558650207=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
I have a simple project that uses go mod. when I open the project in VSCode, it show the follow error for me:
go: finding github.com/gin-gonic/gin v1.1.4
go: finding github.com/golang/protobuf v1.1.0
go: finding github.com/mattn/go-isatty v0.0.3
go: finding github.com/fatih/structs v1.0.0
go: finding github.com/manucorporat/sse v0.0.0-20160126180136-ee05b128a739
go: writing stat cache: open<EMAIL_ADDRESS>permission denied
go: writing stat cache: open<EMAIL_ADDRESS>permission denied
go: writing stat cache: open<EMAIL_ADDRESS>permission denied
go: writing stat cache: open<EMAIL_ADDRESS>permission denied
go: writing stat cache: open<EMAIL_ADDRESS>permission denied
go: writing go.mod cache: open<EMAIL_ADDRESS>permission denied
go: writing go.mod cache: open<EMAIL_ADDRESS>permission denied
go: writing go.mod cache: open<EMAIL_ADDRESS>permission denied
go: writing go.mod cache: open<EMAIL_ADDRESS>permission denied
go: writing go.mod cache: open<EMAIL_ADDRESS>permission denied
go: finding gopkg.in/yaml.v2 v2.2.1
go: writing stat cache: open<EMAIL_ADDRESS>permission denied
go: writing go.mod cache: open<EMAIL_ADDRESS>permission denied
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding gopkg.in/go-playground/validator.v8 v8.18.2
go: writing stat cache: open<EMAIL_ADDRESS>permission denied
go: writing stat cache: open<EMAIL_ADDRESS>permission denied
go: writing go.mod cache: open<EMAIL_ADDRESS>permission denied
go: writing go.mod cache: open<EMAIL_ADDRESS>permission denied
go<EMAIL_ADDRESS>unrecognized import path "golang.org/x/net" (https fetch: Get https://golang.org/x/net?go-get=1: dial tcp <IP_ADDRESS>:443: i/o timeout)
go: error loading module requirements

I got into this first wrong dictionary/User/zongmeng/go/src/mod/cache/download/github.com/manucorporat/sse/@v  and check its permission:
ls -l, it shows:

)
Other problem is same
What did you expect to see?
What did you see instead?
As the image shows, the two files don't have enough permission. They were created by go mod automatucally. I am not sure that is normal or not

You have somehow executed the go command as root. And probably running VSCode as normal user.
This does not seem to be a Go issue.
Either run everything as root, or run everything as normal user.

@agnivade Thanks for your help. When I run VSCode as a root,  it does not show the errors, but it notify me that don't run it as  a root.  I am weird about how I can resolve the problem directly

This is a system issue. You can chown -R the /User/zongmeng/go/src directory so that everything can run as normal user. But if you run go as root again, this will re-appear.
I will close this as this is not a Go issue. Please direct further questions in Questions wiki page; folks will be happy to help you out.

sudo chown -R $(whoami):admin /Users/zhushuyan/go/pkg && sudo chmod -R g+rwx /Users/zhushuyan/go/pkg

Still doesn't work for me :( OSX user

@Emixam23 This issue was closed months ago.  I recommend that you ask on a forum, providing details as to what happened; see https://golang.org/wiki/Questions.  If you are sure you have encountered a bug, please feel free to file a new issue.

chmod +wr -R /User/zongmeng/go/src/mod/cache/download/github.com/manucorporat

your GOPATH is /Users/zongmeng/go why he open /User/zongmeng/go?

do u use Ubuntu 18.04 on windows 10 ?
do u use Mcafee Endpoint Security ?
if so just search and find ubuntu1804.exe in your system
then right click ubuntu1804.exe-> properties -> compatibility（second tab） -> Setting（select run as administration ） ,then click Application (A) , all is ok ;
if it still build fail ,please click security tab ， and click Advaced(V)
make sure your account access has Complete control ,default all allow is TrustedInstaller user ,this will prevented by Mcafee ;
wish it helped all who met this err ,I had troubled by it for months ;

chmod +wr -R /User/zongmeng/go/src/mod/cache/download/github.com/manucorporat

chmod +wr -R /User/zongmeng/go/src/mod/cache/download/github.com/manucorporat

It's just a solution for manucorporat.Many files have the same problem.

Anyone can you help me with this permission denied  challenge

I just solved this problem on my windows machine.  At first I had thought it was a file permissions problem.  But it was a GOPATH environment variable problem.
I had it set to 2 values: C:\Program Files\Go  (which is where I installed Go) and C:.... which was where I wanted all my Go projects to go.
So I removed the first entry.  Just leaving GOPATH to point to the place on my hard drive where I wanted all my projects, and hey presto, problems gone, all tools installed correctly.

I just solved this problem on my Windows machine. At first I had thought it was a file permissions problem. But it was a GOPATH environment variable problem.
I had it set to 2 values: C:\Program Files\Go (which is where I installed Go) and C:.... which was where I wanted all my Go projects to go.
So I removed the first entry. Just leaving GOPATH to point to the place on my hard drive where I wanted all my projects, and hey presto, problems gone, all tools installed correctly.
This may have been due to a previous version of Go not being entirely removed.

Thank you so much ! .
Your comment solved my issue.
Regards.-
L.C

I just solved this problem on my Windows machine. At first I had thought it was a file permissions problem. But it was a GOPATH environment variable problem.
I had it set to 2 values: C:\Program Files\Go (which is where I installed Go) and C:.... which was where I wanted all my Go projects to go.
So I removed the first entry. Just leaving GOPATH to point to the place on my hard drive where I wanted all my projects, and hey presto, problems gone, all tools installed correctly.
This may have been due to a previous version of Go not being entirely removed.

Thanks this worked for me, just setting the GOPATH to the folder were y had all my projects


Intellisense - Can't select suggestion

When I select something from the intellisense list using Enter or Tab, what I selected doesn't get inserted. Instead just "_()". See https://www.dropbox.com/s/fova73g3jxr44ls/2015-04-27_13-09-28.mp4?dl=0
Also can't type "." with something selected. I always have to hit Escape after the suggestions come up.
It seems to sort of work for the left hand side of expressions when there's no code before it but anything on right hand side is effected.
Microsoft Visual Studio Ultimate 2013
Version 12.0.31101.00 Update 4
Resharper 9.1
ForTea 1.3.2

Does it happen only for this file? For a particular type?
I can't seem to reproduce, a simple repro would be grealy appreciated!

See https://www.dropbox.com/s/xe0l18ug5fzm09r/Cyrus.CodeGen.zip?dl=0
Open SprocReader.ttinclude. You can repro with a method like GetResultSetInfo by wiping out the right side an assignment where it uses the DataReader.

Thank you! At fist I couldn't reproduce. After messing with the options, it turns out completion fails only if "show members signatures" is disabled in Environment | IntelliSense | Completion Appearance. (As a temporary workaround, you can try to enable it.)

Ahh, thanks. Changing that R# option is a good workaround until that can be supported.

I found the root cause: removing the include directive from SqlServerNewSelectSproc.tt and restarting VS solves the problem, as odd as it sounds. I will investigate further.

I have the same problem in all files.
http://screencast.com/t/FdvB4nhM

Okay, I was investigating this issue tonight and found the root cause, related to include files. Unfortunately, I'm not sure if I can work around it or if it needs some fix inside ReSharper.
@citizenmatt @derigel23 I believe I need your help here. When a T4 file is parsed, I call FileDependency.UpdateDependencies inside SecondaryDocumentGenerationResult.CommitChanges to invalidate any file that has included the current file, exactly like HtmlSecondaryDocumentGenerationResult does.
However, since this method marks the includers (is that a word?) as dirty, completing the current intellisense item then fails with an exception : All documents should be committed, but these are dirty: <includer file>. I think that's a ReSharper problem, because I can reproduce the exact same behavior with .aspx files and <!-- #include --> directives (see DEXP-63128). Do you think there's a workaround?

I chose not to use ReSharper's FileDependency at all . I rolled my own T4FileDependencyManager that invalidates and re-commits includers. I don't know if it's the best way to solve the problem, but it works.
Will be in v1.4.0.

Sorry, been offline for a few days. Sounds like you've hit a bug - have you reported it other than the exception stack? If not, please could you get a quick repro together please, and I'll chase it up.


Adding new resources to SECURITY section.

Adding new resources to Web Security section.

Yeah, You're right, It was my mistake sorry about that. Thank you for your contribution dear @alimp5, Keep up the good work!


When will this be part of the main pouchDB repo?

It was already copied in: https://github.com/pouchdb/pouchdb/blob/8132c76b0a79b75a1ca7f19d1b85943869f6e47d/lib/deps/upsert.js. So this is now a totally separate module, and can live its own life independent of PouchDB.

Or if you mean, will it ever ship with PouchDB as an exposed API, the answer is no.

Right I was asking if you will bring it into pouchdb.  Seems like it would be a convenient API to have.  But I understand, if you want to keep pouchdb as close to couchdb as possible.

Yes, and also it keeps the core size small.


Firestore Missing Permissions on Account View Checkouts

Describe the bug
When clicking "View My Checkouts" on the My Account page a missing permissions error occurs.
Expected behavior
The user's checkouts should appear without an error message.

Fixed by @epodol in db2c0eb652b379779cc3249c9b998fd249df571c


MongoDB\BSON\Date unable to assign date in desired format

Objective is to assign a mongodb ISODate to a php variable. So this is a BSON date object and I am trying to get the date or rather milliseconds property, which I am unable to get.
MongoDB\BSON\UTCDateTime Object ( [milliseconds] =><PHONE_NUMBER>000 )

PHP MongoDB Environment:
mongodb version  1.1.0
mongodb stability  stable
ibmongoc version  1.1.2
libbson version  1.1.3
MongoDB Pecl Driver php_mongodb-1.1.0-5.6-nts-vc11-x86
mongodb/mongo-php-library 1.0.0
(composer gave exception php_mongodb driver not installed when using the php_mongodb-1.1.0-5.6-nts-vc11-x64 but accepted the php_mongodb-1.1.0-5.6-nts-vc11-x86 )
2016-02-09T22:12:26.428+0000 I CONTROL  [initandlisten] db version v3.2.1
2016-02-09T22:12:26.428+0000 I CONTROL  [initandlisten] git version: a14d55980c2
cdc565d4704a7e3ad37e4e535c1b2
2016-02-09T22:12:26.429+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL
1.0.1p-fips 9 Jul 2015
2016-02-09T22:12:26.429+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2016-02-09T22:12:26.429+0000 I CONTROL  [initandlisten] modules: none
2016-02-09T22:12:26.429+0000 I CONTROL  [initandlisten] build environment:
2016-02-09T22:12:26.430+0000 I CONTROL  [initandlisten]     distmod: 2008plus-ssl
2016-02-09T22:12:26.430+0000 I CONTROL  [initandlisten]     distarch: x86_64
2016-02-09T22:12:26.430+0000 I CONTROL  [initandlisten]     target_arch: x86_64
document:
{
        "_id" : ObjectId("56b91366bb782f1d925ef9df"),
        "playerLastName" : "Smith",
        "fixture" : [
                {
                        "opposition" : "Bisons",
                        "date" : ISODate("2016-02-14T13:00:00Z"),
                        "venue" : "Parklands",
                        "available" : 0
                }
        ],
        "playerFirstName" : "John"
}

php
foreach ($document as $value) {
	$fixtureSel_firstName = $value["playerFirstName"];
	$fixtureSel_lastName = $value["playerLastName"];
	for($i = 0; $i < count($value['fixture']); $i++) {
		$fixtureSel_opposition = $value['fixture'][$i]['opposition'];
		$fixtureSel_date = $value['fixture'][$i]['date'];

		$utcdatetime = new MongoDB\BSON\UTCDateTime($fixtureSel_date);
		$datetime = $utcdatetime->toDateTime();
		var_dump($datetime);

Error
PHP Fatal error:  Uncaught exception 'MongoDB\Driver\Exception\InvalidArgumentException' with message 'MongoDB\BSON\UTCDateTime::__construct() expects parameter 1 to be long, object given'
Obviously you can't use the Date object returned, but how do you get the milliseconds and pass that ?
If I pass a string
$date = '1455454800000';

$utcdatetime = new MongoDB\BSON\UTCDateTime($date);
$datetime = $utcdatetime->toDateTime();
$mydate = $datetime->format('Y-m-d H:i:s');
print $mydate;

I get 2016-02-14 13:00:00 which is what I am looking for.
Appreciate any pointers on this.

You can cast to string to get the milliseconds as a string.
$fixtureSel_date = $value['fixture'][$i]['date'];
$millisecondsString = (string)$fixtureSel_date;
$utcdatetime = new MongoDB\BSON\UTCDateTime($millisecondsString);

Strictly speaking, the constructor for UTCDateTime takes an integer but a string will be converted if it is numeric.

@jacqueswaller thanks, that works like a charm.
btw prior to this I did try it with $date as an int passed to UTCDateTime,  it threw an exception but worked with a $date as string.

ah, yeah you're right in the x86 version of the driver I believe it's meant to take a string for the constructor since there's otherwise no way to supply a giant number like<PHONE_NUMBER>000.

@jacqueswaller thanks for explanation. I couldn't get x64 version of the 1.1.0 driver working as composer threw exception when attempting install the mongo-php-library - saying it couldn't find the php_mongodb.dll (even though it was installed & php.ini was correct). But I think I can live with the x86 version for now.


Better error handling of errors

Try catch in process node so errors are logged, but do not stop processing of remaining nodes.
Try catch in the main function to catch error getting provider or another type of error.

Figure out how other plugins get good looking console outputs.

Logging in Gatsby thread https://spectrum.chat/gatsby-js/general/custom-logging-during-gatsbys-lifecycle~91570f61-7289-4d70-b507-cc67eb45c145

Next release will solve this, by having a "summary" as below for everything that is not a proper error.
info gatsby-remark-oembed: Found 10 possible link(s)
info gatsby-remark-oembed: Successfully embedded 8 link(s)
warning gatsby-remark-oembed: 2 link(s) did not match a provider


Feature Request

Is there away to load balance between two wifi connections on an android phone ?Imagine being at the CBD (central business districts)with all the free open public wifi.wouldn't it be of tremendous advantage to connect to two or even three one wifi networks and load balance the internet connection?If it can be done with a lan setup am sure it can also be done on public wifi using an android phone.
the best way to achieve load balancing on android is to have two network interfaces.the real one and the virtual one. and have then connect to two different networks at the same time.the second network interface which is a virtual one will be created and connects to free wifi network just like the fast one.

I'm not really sure, you would probably have to look to the NDK in order to gain direct access to the network hardware in order to implement this. Furthermore, this wouldn't be possible on all phones, particularly because the chipset on some cheaper phones actually prevents them from being connected to WiFi Direct and a wireless network at the same time, therefore, it would probably be even more of a challenge to get the device to connect to two or more WiFi networks at the same time, though the load balancing algorithm might by somewhat easy to implement. As an example, the Moto G (1st Gen) cannot be connected to a WiFi Direct group and a regular WiFi network at the same time.
As a side note, you're certainly welcome to fork the library, if it helps you, and try implement this yourself, but right now, that's not the primary focus of this library. (Though it is a really cool concept!)


One by one specs are green while running the whole file is red

Running specs one by one are all green... but if I run the entire file the first spec is green but the rest is red (sometimes the second one is green too...)
This is the error I get:
Failure/Error: login_as(@user)
     Capybara::Poltergeist::DeadClient:
       PhantomJS client died while processing {"name":"visit","args":["http://<IP_ADDRESS>:38248/"]}

{"error"=>{"name"=>"Poltergeist.JavascriptError", "args"=>[[{"message"=>"TypeError: '[object Object]' is not a valid argument for 'Function.prototype.apply' (evaluating 'Object.getPrototypeOf(Object.getPrototypeOf(this))[func].apply')", "stack"=>"TypeError: '[object Object]' is not a valid argument for 'Function.prototype.apply' (evaluating 'Object.getPrototypeOf(Object.getPrototypeOf(this))[func].apply')\n

I'm using:
capybara 2.0.2
poltergeist 1.1.0
phantomJS 1.8.1

and
Capybara.register_driver :poltergeist do |app|
  Capybara::Poltergeist::Driver.new(app, {
    :debug => true,
    :js_errors => false,
    :timeout => 180
  })
end

any hint?

thank you @ronen for posting this! Had exactly the same problem with #apply. :+1: it's never to late to mention a fix to a problem

@DonSchado glad it's still useful -- it's been so long I had actually forgotten about both the problem and the solution :smile:


Calculator test failing

I was following the official docs to checkout the calculator example and noted the use of Calculator as seed in the program but also the use of calculator-account in the test, this throws an error:

I looked into the issue and changed calculator-account to Calculator in the test and it worked

welp that's embarassing, i think i reran the tests with that correction and forgot to update it in the docs. thanks for notifying, will fix it now!


build failed (flare_flutter/lib/flare.dart:1023)

file:///C:/Users/17080854/AppData/Roaming/Pub/Cache/git/Flare-Flutter-4aebb0ff5b98c7bcf2183c6bac8226cc7ddf5402/flare_flutter/lib/flare.dart:1023:18: Error: The argument type 'Int32List' can't be assigned to the parameter type 'Uint16List'.

'Int32List' is from 'dart:typed_data'.
'Uint16List' is from 'dart:typed_data'.
Try changing the type of the parameter, or casting the argument to 'Uint16List'.
indices: _indices, textureCoordinates: _uvBuffer);

I also encountered such a problem, hope to be solved

Hello,
This error is due to a breaking change with Flutter master/dev. You are likely using one of those two channels. If you are trying to run the code in this repository, please use the Flutter stable branch by typing this into your terminal:
flutter channel stable
flutter upgrade

This is the easiest fix that should get you running very quickly. Alternatively, if you're adventurous, you can try to update the code to use a newer version of Flare (which is compatible with Flutter master/dev) by pointing the Flare-Flutter dependency to the dev branch in GitHub as follows:
flare_flutter:
  git:
    url: git://github.com/2d-inc/Flare-Flutter.git
    ref: dev
    path: flare_flutter

We have details about how to do this in our Flare-Flutter readme here:
https://github.com/2d-inc/Flare-Flutter
Various other reports of this issue which contain more info, in case anything here is not clear:
https://github.com/2d-inc/Flare-Flutter/issues/79#issuecomment-486220048
https://github.com/2d-inc/Flare-Flutter/issues/105
https://github.com/2d-inc/Flare-Flutter/issues/98
https://github.com/2d-inc/Flare-Flutter/issues/94
https://github.com/2d-inc/Flare-Flutter/issues/86

Thank you,it's working!

flare_flutter:
git:
url: git://github.com/2d-inc/Flare-Flutter.git
ref: dev
path: flare_flutter
I Use this ,but it's not runing :p


Fix freeze-crash in lightmapper under MinGW-GCC (3.2)

The nightly owl strikes again against #45097.
By using a more recent version of GCC for MinGW, I've been able to get a build that fails like the last, as reported by testers, so I think the results I get with this environment may be the same as with the one for the official builds.
Regarding the issues, after some digging I've found a couple of interesting things:

_mm_pause() seems to be fine, so we don't need a replacement;
the specifier for thread-local storage (and probably some others) was not being interpreted by GCC.

I've also removed the include for unistd.h, which I added for an older version of the patch.
With these changes I've been able to get a build that succeeds in lightmapping the test projects (with no LTO; haven't tried with it enabled).
Who knows? Maybe this is the good one...
NOTE: I haven't updated the patch file for this PR.

Thanks!

Thanks!


Getting value of "update-client.bootloader-details"

The mbed os pelion example json file requires us to enter the update-client.bootloader-details address. The value for this address is taken by running the bootloader binary which shows the following line:
[BOOT] Layout: 0 8006F1C
The value 8006F1C in this case is set in to update-client.bootloader-details.
Since latest commit on mbed-bootloader, this information is not displayed any more. One way i can think of is to add a printf myself to get this address but what do you recommend?
Secondly the mbed os pelion example (currently private) is now updated to mbed-os 5.14.0 so do any idea when this repository will be updated to mbed-os 5.14?
Earlier the pelion example test cases were passing mbed-os 5.13.4 and bootloader v4.0.3 but now i am getting failures so just wanted to confirm if there any compatibilty issues with mbed-os 5.14.0 and bootloader version 4.0.3?
@MarceloSalazar

To answer first part of my question, i now read the  .rodata._ZL10bootloader from map file and use its value in update-client.bootloader-details  i hope that's correct way?

@wajahat-ublox Yes, that's how it's done. make_release.py

@VeijoPesonen Thanks but readme of both mbed-bootloader and mbed-os-example-pelion need to be updated for this information.

Ok, I'll update the README.md.


Fix for an immediate issue

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

Project coverage is 100.00%. Comparing base (c3fffcf) to head (92566b7).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #18   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           51        51
  Lines         1161      1167    +6
=========================================
+ Hits          1161      1167    +6

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


dbus-python: fix cross compilation

Problem
During configure it executes python, which happens to be the host executable if we're cross compiling.
For example pkgsCross.aarch64-multiplatform.python3Packages.dbus-python:
checking for a version of Python >= '2.1.0'... ./configure: line 12489: /nix/store/48s7qnqyx693h8b90lj1m591rn5izisx-python3-aarch64-unknown-linux-gnu-3.9.9/bin/python3: cannot execute binary file: Exec format error
no
configure: error: in `/build/dbus-python-1.2.18':
configure: error:
This version of the AC_PYTHON_DEVEL macro
doesn't work properly with versions of Python before
2.1.0. You may need to re-run configure, setting the
variables PYTHON_CPPFLAGS, PYTHON_LIBS, PYTHON_SITE_PKG,
PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
to something else than an empty string.

See `config.log' for more details
builder for '/nix/store/mzn8lfjfg46ip70sqsnyqrqfhrqq3ggl-python3.9-dbus-python-1.2.18-aarch64-unknown-linux-gnu.drv' failed with exit code 1
error: build of '/nix/store/mzn8lfjfg46ip70sqsnyqrqfhrqq3ggl-python3.9-dbus-python-1.2.18-aarch64-unknown-linux-gnu.drv' failed

Resolution
There's a dbus-python related fix in staging https://github.com/NixOS/nixpkgs/pull/148193 to fix compilation on python 2, but that doesn't help us here as it's just hinting which python version to execute. Setting the interpreter fixes cross compilation and works for python2 builds as well as far as I can tell - which means this PR supersedes #148193.
My sole remaining concern is that the build system is gathering information on the build (instead of host) interpreter in the first place. This fix works but it might not be ideal.
Test
Builds on top of master c1792db42df222b0ec570bd774488f48aa0c91b1:
with import ~/git/nixpkgs-alt {};
[
  python3Packages.dbus-python
  python2Packages.dbus-python

  pkgsCross.aarch64-multiplatform.python3Packages.dbus-python
  pkgsCross.aarch64-multiplatform.python2Packages.dbus-python

  pkgsCross.riscv64.python3Packages.dbus-python
  pkgsCross.riscv64.python2Packages.dbus-python
]

@jtojnar @dadada @FRidh @Artturin

This appears to be the recommended way. https://github.com/freedesktop/dbus-python/blob/012f0e3adbe3bebf73d983b3a0a8eb8138e06548/NEWS :+1:


skipIfEmpty requires bails to be false

Versions

vee-validate: 3.0.0
vue: 3.8.2

Describe the bug
Not really a bug per se, but :skipIfEmpty="false" seems to be ignored unless we have :bails="false" too
Expected behavior
I would expect the rules to be checked on an empty field even if bails is true.
Not a big deal though.
Thanks for the great work on v3. Eventually a validation plugin I actually like to use :D
It's a beautiful piece, congratulations!

Haha, good catch 👍. Just fixed it in 3.0.1


Using friendly URLs (without a question mark)

Hi.
On the backend, I am using friendly URLs (like www.google.com/id=1) and not query ones  (www.google.com/?id=1).
But when I use base url with params in asyn http, it makes the latter url. And thus, shows an error as it is not my url. Is there an option to switch to the URLs without question mark operator?

It's not sincerely, arguments from RequestParams class are either appended to URL with the question mark or are put into as form/json entity to POST/PUT/... requests. So you can either generate the url manually or using the RequestParams you'd have to reimplement AsyncHttpClient.getUrlWithQueryString, see current implementation here: https://github.com/loopj/android-async-http/blob/master/library/src/main/java/com/loopj/android/http/AsyncHttpClient.java#L338


Update behaviour.txt

A little more dialogue, but mostly adds a larger variety of facial expressions (I wasn't aware of a few).

Unfortunately there is a conflict on this update. Can you please resolve it?


adding support for Intel AX201NGW and AX211NGW wifi adapters to EVE on new kernel 5.15

Use case:
To provide support for Intel AX201NGW and AX211NGW wifi adapters to EVE on new kernel 5.15 we need put more firmware files into the Docker container building EVE image.
Without these firmware files, interface wlan0 doesn't appear on EVE device, because kernel can't load iwlwifi module:
[    4.871913] iwlwifi 0000:00:14.3: no suitable firmware found!
[    4.872401] iwlwifi 0000:00:14.3: minimum version required: iwlwifi-so-a0-gf-a0-39
[    4.872869] iwlwifi 0000:00:14.3: maximum version supported: iwlwifi-so-a0-gf-a0-66
[    4.873307] iwlwifi 0000:00:14.3: check git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

The solution:
Here's the steps to enable Intel AX201 and AX211 on Kernel 5.15 in EVE 0.0.0 explaining what I needed to change and how to built EVE image:

in eve/images/rootfs.yml.in: change kernel image to NEW_KERNEL_TAG
in eve/pkg/fw/Dockerfile: add the strings:

   # Intel AX211NGW
   COPY --from=build /lib/firmware/iwlwifi-so-a0-gf-a0* /lib/firmware/
   # Intel AX201NGW
   COPY --from=build /lib/firmware/iwlwifi-so-a0-hr-b0* /lib/firmware/

rebuilding usb boot image with:

   make build-tools
   make pkg/fw
   make installer-raw

Additional context:
The experiment was successful with using the LINUX_FIRMWARE_VERSION 20220708, which is specified by default in eve/pkg/fw/Dockerfile.
In the file eve/pkg/fw/Dockerfile already these lines present:
# Intel Wireless 22000 series (AX201 on NUC10i7FNH)
COPY --from=build /lib/firmware/iwlwifi-QuZ-a0-hr-b0* /lib/firmware/

However, In my case, at boot, instead of the "iwlwifi-QuZ-a0-hr-b0*" was used the "iwlwifi-so-a0-hr-b0-64.ucode" firmware for AX201.
Here the example of a correct detection of AX201NGW:
# dmesg | grep -i wifi
[    4.832141] Intel(R) Wireless WiFi driver for Linux
[    4.832636] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[    4.836816] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-hr-b0-66.ucode failed with error -2
[    4.837459] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-hr-b0-65.ucode failed with error -2
[    4.868272] iwlwifi 0000:00:14.3: api flags index 2 larger than supported by driver
[    4.868582] iwlwifi 0000:00:14.3: TLV_FW_FSEQ_VERSION: FSEQ Version: <IP_ADDRESS>
[    4.869069] iwlwifi 0000:00:14.3: loaded firmware version 64.97bbee0a.0 so-a0-hr-b0-64.ucode op_mode iwlmvm
[    4.917628] iwlwifi 0000:00:14.3: Detected Intel(R) Wi-Fi 6 AX201 160MHz, REV=0x370
[    5.032224] iwlwifi 0000:00:14.3: Detected RF HR B5, rfid=0x10a100
[    5.099733] iwlwifi 0000:00:14.3: base HW address: f0:d4:15:79:7c:b9

Here the example of a correct detection of AX211NGW:
# dmesg | grep -i wifi
[    4.890711] Intel(R) Wireless WiFi driver for Linux
[    4.891097] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[    4.894564] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-66.ucode failed with error -2
[    4.895199] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-65.ucode failed with error -2
[    4.928361] iwlwifi 0000:00:14.3: api flags index 2 larger than supported by driver
[    4.928646] iwlwifi 0000:00:14.3: TLV_FW_FSEQ_VERSION: FSEQ Version: <IP_ADDRESS>
[    4.929118] iwlwifi 0000:00:14.3: loaded firmware version 64.97bbee0a.0 so-a0-gf-a0-64.ucode op_mode iwlmvm
[    4.978189] iwlwifi 0000:00:14.3: Detected Intel(R) Wi-Fi 6E AX211 160MHz, REV=0x370
[    5.161658] iwlwifi 0000:00:14.3: loaded PNVM version 0x881c99e1
[    5.177870] iwlwifi 0000:00:14.3: Detected RF GF, rfid=0x2010d000
[    5.249384] iwlwifi 0000:00:14.3: base HW address: 04:cf:4b:47:5a:cc

rootfs.yml.in.diff.txt
Dockerfile.diff2.txt

Closing this issue since the requested firmware files were added to our current kernel: https://github.com/lf-edge/eve/commit/53dbc10640cac41dedd29e78522cf85dc6059658


Question about syntax

The model i am trying to build is predicting the probability of result = 1 given a set of samples, condition being all probi with a set sums to 1
Data
Result          ID       Attribute_1           Attribute_2
0                    1             0.34                      0.21
1                    1              0.24                      0.11
0                    1            0.13                       0.16
0                    1              0.29                     0.52
1                    2             0.14                      0.13
0                   2              0.17                     0.08
0                   2               0.38                   0.51
0                   2               0.31                     0.28
basic_specification_custom = OrderedDict()
basic_specification_custom["Attribute_1"] = [?]
basic_specification_custom["Attribute_2"] = [?]
Choice_Column_custom = "Result"
Obs_Id_Column_custom = "ID"
Model = pylogit.create_choice_model(data=simulation_dataset_train,
alt_id_col=,
obs_id_col=Obs_Id_Column_custom,
choice_col=Choice_Column_custom,
specification=basic_specification_custom,
model_type="MNL")
If the obs_id_col already made sure it starts from 1, what should the alt_id_col and index in the specification dictionary be, thanks

@samyip123 For the alt_id_col argumnt, you need to add a column to simulation_dataset_train that specifies the alternative for each row. For instance, the first four rows seem to specify different alternatives for the decision maker with ID == 1. If all decision makers have four alternatives (in the same order), then you might do
num_obs = simulation_dataset_train.ID.unique().size
simulation_dataset_train['alt_id'] = np.tile(np.arange(1, 5),  num_obs)

You could then have alt_id_col = "alt_id" in the function call to pylogit.create_choice_model.
As for what to place in the specification dictionary for attributes 1 and 2, that depends on what you are specifying your model to be. For an examples of how one goes from model specification to the entries in the specification dictionary, see the "Create the model specification" section in the following notebook: https://github.com/timothyb0912/pylogit/blob/master/examples/notebooks/Main PyLogit Example.ipynb

Could the above model also be used to model a Conditional Logit Model, finding the probability of success with the condition of the probability of success within a  group (same ID) sums to 1.

@samyip123 Yep. That is the formula for a conditional logit model, and it is the model that is fit when one uses model_type='MNL'.

then what will be the specification dictionary for beta equaling attribute 1 and attribute 2?


ddl.get_schema must return field name in index parts

Currently there is no way to easily determine the field number or the field name from the returned "path" field: either a sophisticated logic is needed (splitting the value by dot, etc) or it is completely impossible for multikey indexes.
This is needed for connectors (e.g. cartridge-java).

But index part ~= field. That's how tarantool works.

Matching between index fields and field positions is necessary for making correct box API requests with index values from a entity through a connector.
Let's consider the entity in your example. When you are writing an index query, you'll use something like
box.space.user.index.secondary:select("Ivanovich")

But when we are using connectors, often we have an entity backed by a tuple and we need to guess which field of it we need to pick for putting as the value for this query. And furthermore, if we are trying to determine the best index for querying something according to the user's request, we need to match several indexes and pick up the  narrower one. There we start calculating the longest index value tuple -- you can see an example in cartridge.java (see the Conditions.java class). And for making these tuples we need to match a position in an index to a tuple field.

We discussed it with Alexey voicely. I'd like to summarize how I understood the problem.
Context: a client side ORM needs full schema data to implement pagination. A pagination requires key extraction from a tuple, including key parts that corresponds to an index key part defined by a JSON path.
The problem is that it is unclear, how exactly interpret JSON path key part definition. The solution would be a clear description of the algorithm and, if needed, changes in tarantool or tarantool/ddl to define it.
What is not clear:

JSON path index allows to set a path starting from root of a tuple (including a field name) or starting from a field (excluding a field name). Whether tarantool normalizes both forms into one? Whether tarantool/ddl does?
Whether field name is always defined or missed if the path field contains it (on tarantool level and on tarantool/ddl level)?


Fix compilation issue due to new project version

MoltenVK has updated to a new version, but the build scripts still
mentioned the previous version, which failed during build.
MVKInstance.mm:774:2: error:
      static assertion failed due to requirement 'std::string_view("1.2.8") ==
      ("1.2.9")': Xcode build setting CURRENT_PROJECT_VERSION must be identical
      to the MoltenVK version (MVK_VERSION_STRING).
  ...static_assert(string_view(MVK_STRINGIFY(MVK_FRAMEWORK_VERSION)) == MVK_VERSION_STRING...
     ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

This is fixed by updating the CURRENT_PROJECT_VERSION. Developers updating
should first clear their build folder (make clean) before the new changes become
into effect.

Ah. Thanks!
I hadn't compiled when I published the 1.2.9 update. 🤦🏻♂
At least this proves the value of that static assertion! 👍🏻


Where is SleepMode class?

Hi,
I'm trying to use this plugin in a PCL Xamarin.Forms project but I cannot find SleepMode class, I can only find interface ISleepMode and an abstract class SleepModeBase from Xam.Plugins.ManageSleep.
Thanks in advance!

There isn't a built-in shared implementation, only per-platform implementations.
You can register these on your platform implementations with a dependency injection framework as described here:
https://developer.xamarin.com/guides/xamarin-forms/enterprise-application-patterns/dependency-injection/
then in your shared library, ask for an instance.
The documentation could be more clear about the usage there, although it would vary depending on your Dependency Injection framework.

Oh, Thank you so much for your response!
I'll be checking out that guide, I guess that it is similar like using SQLite.
Thank you again!


server: added protobuf descriptor validate support

Signed-off-by: Rama<EMAIL_ADDRESS>Description: Fixes https://github.com/envoyproxy/envoy/issues/2528
Risk Level: Low
Testing: Manual
Docs Changes: NA
Release Notes: NA

@ramaraochavali thanks for working on this. Here is what I would do, if you don't mind.

Just fully delete https://github.com/envoyproxy/envoy/blob/master/test/common/protobuf/descriptor_test.cc
Create a new file "proto_descriptors.cc" in https://github.com/envoyproxy/envoy/tree/master/source/server.
Copy all the code in my test into a function called something like validateProtoDescriptors() in that file.
Make that function return true if all the descriptors can be found.
Do RELEASE_ASSERT(validateProtoDescriptors()); from https://github.com/envoyproxy/envoy/blob/master/source/exe/main_common.cc.

Thank you!

@mattklein123 modified the way you suggested. PTAL.

@mattklein123 done. should be good now. PTAL.

@ramaraochavali if you want to factor out the dummy hacks, put them somewhere like source/common/config/protobuf_link_hacks.h so we clearly flag the inclusion as being motivated by this, that would be the most maintainable. Thanks!

@htuch yes. I was not completely happy about spraying this hack across and that is what I was asking originally to have this hack in some common include. I like this idea. I have added that file and removed the hack from all other places. PTAL.

@htuch addressed the minor comments. added the ifdef to avoid duplicate inclusions for the protobuf_link_hacks.h (otherwise it failed in coverage build with multiple def error across grpc_mux_impl_test and ads_integration_test)

@htuch looks like const did the trick. Sorry I tried both const and ifdef together. Now all tests are passing with out ifdef. So we are good to go.


jupyter hangs when more than one notebook is open

Jupyter hangs if more than one ipynb files are open.

Is this with Spark? If so it is because of the FIFO (first in, first out) nature of the standalone Spark cluster. The first notebook will get all of the Spark cluster resources, and the second notebook will be blocked until the first notebook releases those resources.
What is the use case for the issue you are experiencing? Maybe a solution would be we allow the user to choose to start either a PySpark notebook or a regular Python notebook (this notebook won't block since it doesn't request resources from the Spark cluster).

Yes, this was with Jupyter+Spark app. During the OSC workshop, some students clicked on both read-only tutorial file and its copy. This resulted in having two Jupyter sessions. I had to shut-down the read-only session to proceed with the tutorials.


Add user_chat capacity to proactive notification

Issue: #1327
Usages

Enable the user_chat (User chat) notification scope via Omi App

Put {{user_chat}} into your prompt template

Response 'user_chat' as a param in the params field, e.g.
{
      'session_id': data.session_id,
      'notification': {
          ....
          'params': ['user_name', 'user_facts', 'user_context', 'user_chat'],
      }
  }

Example:

mentor: https://github.com/BasedHardware/omi/blob/main/plugins/example/basic/mentor.py#L73-L97

TODO

[x] Add user_chat capacity to proactive notification
[ ] Try with internal logs first https://us5.datadoghq.com/dashboard/5p3-sb2-q2c/omi-apps-devtool-log?fromUser=false&refresh_mode=sliding&from_ts=1732750755142&to_ts=1732923555142&live=true

Deploy steps

[x] Deploy backend
[x] Deploy pusher
[x] Deploy plugin

@kodjima33 @beastoin  I don't think this implementation is very flexible, because it only allows to add to the llm prompt the AI notifications (from that I understand), so the time sequence is not easy to understand by the llm, and you can't do proper prompt engineering.
My PR adds a new webhook that allows the app to save the notifications and then construct the prompt  in a more flexible way, in addition to letting the developer log them or save to memory / db.
So I don't see the usefulness of this user_chat parameter, and also why is it called user_chat if it contains AI messages?
It would make sense for user_chat to mean written chat messages as opposed to audio transcripts, and there should be a separate webhook for that.

this implementation is not about the flexibility. it's all about adding support new capacity to the current proactive notification infra - developers now could access Omi's user chats through the prompt template by simply using the parameter {{user_chat}}.
man, what plugin have you created ? if you don't have one yet, my suggestion is to either read more about the code or just go ahead and create one.
i appreciate your PR. but i am confused - do you want to hear my suggestion for your PR or not ?
@tiagoefreitas
https://discord.com/channels/1192313062041067520/1311842044259598406
https://discord.com/channels/1192313062041067520/1307242485264810044

@beastoin yes I am interested in your suggestions, but I pushed my PR with urgency bacause @kodjima33 said it was urgent. I was not able to test it properly though, due to issues setting up the dev environment, but if there is some bug the code can be tested and reviewed nonetheless.
I don't understand why you are writing like I don't understand the issue, without addressing the technical points I made in my messages here and in the PR. You could have replied to my technical points one by one, or made comments in my PR.
Yes, I have created my own app based on mentor, and submitted it for the hackaton, and plan to improve it as time allows.
I stand by my previous message and my PR. the prompt template solution is not flexible enough for proper prompt engineering and I explained why. my PR gives developers access to the notification messages themselves, so they can use them directly.
I think your PR is still useful as a simpler way for developers to use in simple cases, but it does not fully address #1327 in my opinion.
I have also made a suggestion for direct notifications from apps here: #1434
I added it here: https://discord.com/channels/1192313062041067520/1314242481365192789

my suggestion:
1/ before sending the PR: you should note down your implementation ideas(bullet points are good enough), test your PR to ensure it works and please clean it up.
2/ you must understand what we already have(how the system works) and what we need to do to fulfill the user(or stakeholder) needs so that you could have good "bullet points" for the implementation.
for your concerns:

I don't understand why you are writing like I don't understand the issue

please help me address your understanding about the stakeholder needs at #1327 and how you fulfill that needs with your PR.

without addressing the technical points I made in my messages here and in the PR

it's not about the technical man.

I have created my own app based on mentor

tell me more about your app. is it work ? what problem would it solve ? are there any technical limitation with the current Omi Apps infra and why.
@tiagoefreitas direct notifications should be supported soon and i would be super happy if you could try to make it happen.


change datetimeformat for all models

any idea on how to achieve that？
don't want to keep repeating the same thing for all the models also

Feel free to ask on the forums.


Using this gem with spree_core 3.1.0

Am I right that I can't use this gem with spree_core 3.1.0 ? What's interesting when i do bundle install the bundler doesn't show any error, but when I start my server and try to open home page i see an error message:

couldn't find file 'admin/spree_backend' with type 'application/javascript'
Extracted source (around line #1):
//= require admin/spree_backend

Regards.

Same problem 👍  Any fixes?

I've added empty missing files, and everything works fine now.

where did you added empty file can u tell me
thanks and regards

I'v added empty files in:

app/assets/javascripts/admin/spree_backend.js
app/assets/stylesheets/admin/spree_backend.css


Add diagnostic logs

Purpose

$subject

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/5714572866

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/5714572866
Status: cancelled

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/5714580011

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/5714580011
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/5714662249

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/5714662249
Status: failure

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/5714676895


New version of the Patentview API

Wasn't sure if you saw that they're working on a new version of the API and that they plan to shutdown the current version at the end of the year. They're changing a lot and requiring an API key https://patentsview.org/apis/api-endpoints

I got my fork to work with the new version of the API!  Wasn't sure if you were working on it too or if I should do a PR.

@mustberuss Nice! Create a PR and I'll review the changes. Thanks.

@mustberuss One of the problems that this repository is trying to remedy is the fact that the legacy API didn't recognize that two company names represented the same company. Do you know if the new API solves that problem?

They have improved their disambiguation algorithm, where they try to combine companies and inventors who they think are the same business or person.  From the README, now there is only one Netflix entry so they either combined them all under one or something is still messed up.  I should hit the old api and compare what they did.
I'll submit a PR now, not positive it's 100% but it does hit the new endpoints.  Note that you'll need to get an API key and set an environmental variable for it.  I updated the README but probably could have done a better job of explaining it.
thanks,
Russ

Merged the changes. Thanks for your contribution @mustberuss.