Input string was not in a correct format

When dumping a very large database, the above error appears and only part of the database is dumped. If I keep trying, the database eventually finishes the backup. However, The software does not have someone in front of it at all times. What could be the cause of this?

I have made some changes, can you try this version:
MySqlBackup.NET_Debug_Issue43_v1.zip

Hi @adriancs2
Thank you for your assistance in this regard. Unfortunately, it still fails. :( My database that needs to be backed up is about 210MB. The error is weird because it seems that it fails at different points of the backup. I ran it this morning and it failed only dumping 47MB. Then reran and it dumped 123MB. If I keep trying without closing the application, the database will eventually finish dumping the full 210MB.
Small databases have no issue.
Are you familiar with this error? Am I maybe doing something wrong? This is how I am connecting and using MySqlBackup.
public void Backup(string Location)
        {
            try
            {
                string fileName = ODatabase.Database + DateTime.Now.ToString("yyMMdd_HHmmss") + ".sql";
                string file = Location + fileName;
                if (Connect())
                {
                    using (MySqlCommand cmd = new MySqlCommand())
                    {
                        using (MySqlBackup mb = new MySqlBackup(cmd))
                        {
                            cmd.Connection = conn;
                            cmd.CommandType = CommandType.Text;
                            mb.ExportToFile(file);
                        }
                    }

                    Disconnect();
                }
            }
            catch(Exception ex)
            {
                Disconnect();
                IO.CreateLogEntry(IO.ERROR_LOG, "MySql Backup Error : " + ex.Message, Parent);
            }
        }

Let me know if you need more than this.

Are you able to collect any exception/error message which provides more information about the error?

@adriancs2 after doing a clean and rebuild of my project it seems to work now. I was able to create a backup successfully 3 times in a row without getting the error thrown. I will keep an eye on it for a few more days and provide full details on the error if it happens again.
Thank you so much for the assistance and a great library!

Hi, new version released (v2.3), this problem should be resolved. you may test it in your environment and see if the problem still exists :)

Perfect timing! Our monthly process will be running tomorrow. I will update immediately. :)
Thanks!

Thanks, no more issues ! :)


Invalid state history ABI JSON in v2.0.0-rc1

I'm trying to connect a state history reader to a 2.0.0-rc1 node and getting an error parsing the ABI JSON. Looking at it in detail I see a couple issues with the JSON:

(missing comma)

(extra comma)

Resolved by #8106 (or #8060). Still requires adding integration tests for SHiP, but that is tracked by #8066.


Problem in regex

Hi,
I had an issue with the driver. Using PrestaShop 1.6 and Valet 2.0.5 and nginx version 1.12.2
Images where not served correctly.
Changing all the : +?) by +)? and *?) by *)? worked for me.
Thanks for the work 👍

Also,
If you want to be abble to use Filemanager I've modified the frontControllerPath for the admin :
$parts = explode('/',$uri);
if(isset($parts[1]) && $parts[1] !='' && file_exists($adminIdex = $sitePath . '/'. $parts[1] .'/index.php')){
if(strpos($uri, '.php'))
$adminIdex = $sitePath.$uri;
        $_SERVER['SCRIPT_FILENAME'] = $adminIdex;
        $_SERVER['SCRIPT_NAME'] = '/'. $parts[1] .'/index.php';
        if(isset($_GET['controller']) || isset($_GET['tab'])){
            return $adminIdex;
        }
        return $adminIdex;
    }


add spectra and spectra_components to nomenclature page

[X] Closes #2150
[X] I am familiar with the contributing guidelines
[ ] ~Tests added~
[ ] ~Updates entries in docs/sphinx/source/reference for API changes.~
[X] Adds description and name entries in the appropriate "what's new" file in docs/sphinx/source/whatsnew for all changes. Includes link to the GitHub Issue with :issue:`num` or this Pull Request with :pull:`num`. Includes contributor name and/or GitHub username (link with :ghuser:`user`).
[X] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.
[x] Pull request is nearly complete and ready for detailed review.
[x] Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

Linked: #2284

Marking as a draft for now because it seems #2234 is close to completion, in which case these variables can be added to the new glossary rather than the variables and symbols page

All good suggestions @kandersolar thanks!


Vuetify 3 support

Are there plans to support Vuetify 3 when it is released in Q3 2021? See The Vuetify roadmap.

Mailsnag is using this and would love to see vuetify 3 support.

https://github.com/wobsoriano/vuetify-use-dialog


Queue constructor requires optional argument

This constructor requires that a property_list is passed, even though it should be optional due to the default value:
    queue(const device_selector &deviceSelector,
        const async_handler &asyncHandler, const property_list &propList = {});

For example, the following queue creation did not compile for me:
  cl::sycl::queue *queue = new cl::sycl::queue(dev, [&](cl::sycl::exception_list l)
  {
    // omitted ...
  });

I can make it compile by added an empty property list at the end:
  cl::sycl::queue *queue = new cl::sycl::queue(dev, [&](cl::sycl::exception_list l)
  {
      // omitted ...
  }, {});

Hi Tom,
thanks for reporting. The constructor in question exists. However, it seems that two of the constructor overloads, if invoked in the way as in your example, are ambiguous:
cl::sycl::queue::queue(const cl::sycl::device_selector&, const async_handler&, const cl::sycl::property_list& = {})
cl::sycl::queue::queue(const cl::sycl::device_selector&, const cl::sycl::property_list&)’

so, something like this will work:
cl::sycl::queue *queue = new cl::sycl::queue(dev, cl::sycl::async_handler{[&](cl::sycl::exception_list l)
  {
    // omitted ...
  }});

which is admittedly a bit ugly.
The reason seems to be that the spec requires property_list to have a variadic template constructor, so the compiler could also instantiate the property list constructor with the async handler lambda as argument.
I feel that ideally, something here should be an explicit constructor. I've just rechecked the spec and it seems that it does not make any requirements here, so in principle it could be argued that the current behavior is covered by the spec being ambiguous here.
However, since the root cause is the template constructor from property_list accepting arbitrary types which does not really make sense semantically (it only makes sense with properties), I would suggest that we remove the property_list constructor from overload resolution with some SFINAE trickery if the argument(s) are not valid properties.
Some research reveals that this is also exactly how triSYCL behaves, so this change would bring hipSYCL in line with the other implementations. But again, I don't feel that this behavior is strictly mandated by the current spec which also doesn't seem to impose any requirements on the property_list constructor, so we should also clarify the spec here.

Ah I see, that's unfortunate!
Shall I raise an issue in the spec?

That would be great, thank you :) As this is purely a maintenance issue, you can use the public github repository: http://github.com/KhronosGroup/SYCL-Docs

For cross-referencing later, it's here: https://github.com/KhronosGroup/SYCL-Docs/issues/66

Closing due to SYCL 1.2.1 spec updates.


SSL Termination with the new ECS backend

Hello,
so far the documentation said for SSL termination you recommend running an nginx reverse proxy. Our setup so far encompassed EC2 instances running ShinyProxy via Docker and have an additional container running the reverse proxy and routing all ShinyProxy traffic through the loopback interface of the machine without any other network transit.
Now we want to experiment with ECS but are still under the requirement that traffic coming in from the AWS application load balancer to the ShinyProxy ECS task container needs to be encrypted as well. Is there any way to place certificates / chains into the ShinyProxy container and let e.g. SpringBoot handle the SSL termination at application level directly? As far as i know spinning up a side car container in the task of Shinyproxy will still spawn 2 individual containers that communicate over network unencrypted for the part of the way. Is there a way to remedy this to have SSL encrypted traffic in the VPC?
For our tests we are currently using a very minor modified version of the environment that you provide in the 20/21 ecs examples section from your shinyproxy examples repo.
Much thanks and keep up the good work to provide a useful tool for the deployment of shiny apps!

Hi
It should be possible to add TLS to ShinyProxy using the Spring Boot configuration, see e.g. https://spring.io/blog/2023/06/07/securing-spring-boot-applications-with-ssl and https://docs.spring.io/spring-boot/how-to/webserver.html#howto.webserver.configure-ssl . However, I did not try this yet. An alternative could be to create a custom ShinyProxy container and adding nginx on top. E.g. you start from the ShinyProxy image, install nginx and configure it to use TLS.

@moreauchr hi, have you successfully implemented the minimal example using ECS as backend provided on shinyproxy github configuration example? I have been experimenting with this many times, but all failed with following issue logs posted in below link:
https://github.com/openanalytics/shinyproxy-config-examples/issues/43
Any one can help with this? Much appreciated!

@LEDfan I am actually quite puzzled by the Dockerfile posted in 20.ecs minimal example :
FROM openanalytics/shinyproxy-snapshot:3.1.1
COPY application.yml /opt/shinyproxy/
when I implement this dockerfile, it actually did not work at all. But if I remove "-snapshot", it will work. But eventually not working on ECS as expected, the issue will show like in above link.

I actually tried to get  openanalytics/shinyproxy-snapshot:3.1.1 docker image from dockerhub, but it said not existing as below:

The main issue I encountered is:
2024-06-28T14:54:56.083Z WARN 1 --- [ProxyService-16] e.o.c.backend.ecs.EcsBackend : [user=jack proxyId=c6d684c9-cf19-4296-a379-781e1a2e8771 specId=data_dictionary] Not adding ECS tag "openanalytics.eu/sp-http-headers" because it is contains invalid characters (only a-zA-Z0-9 +-=._:/@ allowed)


fix: change text based on mockups

figma - https://www.figma.com/file/XUbuZFQVVRXM5NNGoaB8uq/Gavin's-feedback?type=design&node-id=17-47278&mode=design&t=nbS6zFHs7C5oK80f-4

It was correct in terms of grammar, figma variant is wrong

ok, got it, will put a comment for figma


build-aci: Fix ACI image name

The appc discovery spec states that the architecture specifier in the ACI
image file name will be an ACI architecture value.  Our build scripts were
using GOARCH in the image name, which is incorrect for arm64/aarch64.
See: https://github.com/appc/spec/blob/master/spec/discovery.md

Codecov Report

Merging #8090 into master will decrease coverage by 0.22%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #8090      +/-   ##
==========================================
- Coverage   76.65%   76.43%   -0.23%
==========================================
  Files         342      342
  Lines       26592    26568      -24
==========================================
- Hits        20384    20307      -77
- Misses       4759     4799      +40
- Partials     1449     1462      +13

Impacted Files
Coverage Δ

proxy/grpcproxy/register.go
83.33% <0%> (-11.12%)
:arrow_down:

auth/simple_token.go
86.79% <0%> (-6.61%)
:arrow_down:

pkg/transport/listener_tls.go
79.34% <0%> (-4.35%)
:arrow_down:

pkg/adt/interval_tree.go
87.5% <0%> (-4.27%)
:arrow_down:

clientv3/txn.go
96.36% <0%> (-3.64%)
:arrow_down:

etcdserver/api/v3rpc/lease.go
96.42% <0%> (-3.58%)
:arrow_down:

proxy/grpcproxy/watch.go
90.97% <0%> (-3.48%)
:arrow_down:

clientv3/concurrency/election.go
80% <0%> (-2.41%)
:arrow_down:

raft/node.go
90.17% <0%> (-2.24%)
:arrow_down:

etcdmain/etcd.go
44.2% <0%> (-2.15%)
:arrow_down:

... and 13 more

Continue to review full report at Codecov.

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


feat: add test coverage CI

Adding Codecov test coverage

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@3aef588). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #16   +/-   ##
=======================================
  Coverage        ?   81.59%
=======================================
  Files           ?       74
  Lines           ?     1934
  Branches        ?        0
=======================================
  Hits            ?     1578
  Misses          ?      356
  Partials        ?        0

Continue to review full report at Codecov.

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


Dropdown arrows are missing in docs.gnosischain.com

Issue

Dropdown arrows are missing in docs.gnosischain.com
Did we do any CSS changes?

Bad config in security headers in server


”Stejari”, ”Baloșani”, "Băcești", "Dealu Leului", "Piscoiu", "Popești-Stejari" are listed in the drop-down menu

Description:
”Stejari”, ”Baloșani”, "Băcești", "Dealu Leului", "Piscoiu", "Popești-Stejari" are listed in the drop-down menu alongside their corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Stejari"

Expected results
The location appears in the drop-down menu as "Sat Stejari, GORJ (Stejari)".

Step 3
Write in the search bar "Baloșani"

Expected results
The location appears in the drop-down menu as "Sat Baloșani, GORJ (Stejari)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Băcești"

Expected results
The location appears in the drop-down menu as "Sat Băcești, GORJ (Stejari)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 8
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 9
Write in the search bar "Piscoiu"

Expected results
The location appears in the drop-down menu as "Sat Piscoiu, GORJ (Stejari)".

Step 10
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 11
Write in the search bar "Popești-Stejari"

Expected results
The location appears in the drop-down menu as "Sat Popești-Stejari, GORJ (Stejari)".


[PE-D][Tester B] Edit meeting command not working as advertised

In the ug, the user is told that descriptions can be removed by typing d/ without nothing behind it. However, doing so gives us this:

Perhaps, this may have been a typo in the user guide, but the app is not working as described in the user guide.

Labels: severity.Medium type.FunctionalityBug
original: Ko-Khan/ped#16

Thank you for pointing this out. Actually it was a documentation error as the editMeeting command needs all parameters present to be parsed (client index, meeting index, description and datetime). The description cannot be empty as only meaningful meetings can be present. As financial advisors, every second is precious. Hence we've edited the user guide as well as included an error message if any of the parameters are missing.


docs(error/nobase): show  tag

The  tag was missing from the doc page - this change (presumes) to fix that and escape the tag in the title.

I signed it!

Backported to v1.5.x as b42147a (although I don't think it's necessary).
There is also another issue in on the next line, but it needs to be tackled differently (will take care of it in another PR).


what's role of  relay dispatch ? some data point missing in the graph when dispatch also busy!

what's role of  relay dispatch ? some data point missing in the graph when dispatch also busy!
@camper42 would you share some configurations of your online system about kenshin ?especially rurouni.conf  and  storage-schemas.conf  and relay.conf  . If possible, please let me know,thanks!

storage-schemas.conf
[metric-test]
pattern = .*metric_test.*
xFilesFactor = 20
aggregationMethod = average
retentions = 10s:12h,60s:2d
cacheRetention = 900s
metricsPerFile = 8

[rurouni-stats]
pattern = ^rurouni\.
xFilesFactor = 20
retentions = 60s:2d,300s:7d,15m:25w,12h:5y
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 600s

[carbon-stats]
pattern = ^carbon\.
xFilesFactor = 20
retentions = 10s:12h,60s:2d,300s:7d,15m:25w,12h:2y
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 600s

[stats-counters-count]
pattern = stats\.counters\..*\.count$
xFilesFactor = 20
retentions = 12h:5y
aggregationMethod = sum
metricsPerFile = 8
cacheRetention = 600s

[stats-timers-upper]
pattern = stats\.timers\..*\.upper[^.]*
aggregationMethod = max
retentions = 10s:12h,60s:2d,300s:7d,15m:25w,12h:5y
xFilesFactor = 20
metricsPerFile = 8
cacheRetention = 600s

[stats-timers-mean]
pattern = stats\.timers\..*\.mean[^.]*
aggregationMethod = average
retentions = 10s:12h,60s:2d,300s:7d,15m:25w,12h:5y
xFilesFactor = 20
metricsPerFile = 8
cacheRetention = 600s

[stats-timers-lower]
pattern = stats\.timers\..*\.lower
retentions = 10s:12h,60s:2d,300s:7d,15m:25w,12h:5y
xFilesFactor = 20
aggregationMethod = min
metricsPerFile = 8
cacheRetention = 600s

[stats-timers-count]
pattern = stats\.timers\..*\.count[^.]*
retentions = 10s:12h,60s:2d,300s:7d,15m:25w,12h:5y
xFilesFactor = 20
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 600s

[nagios-gauges]
pattern = stats\.gauges\.nagios\.[^.]*\.[^.]*
retentions = 10s:12h,300s:7d,1h:1y,12h:5y
xFilesFactor = 20
aggregationMethod = max
metricsPerFile = 8
cacheRetention = 600s

[bandwidth]
pattern = .*\.bandwidth\.rate$
retentions = 10s:12h,60s:2d,300s:7d,15m:5y
xFilesFactor = 20
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 600s

[stats-counters-web]
pattern = stats\.counters\.web\..*\.rate$
retentions = 10s:12h,60s:2d,300s:7d,15m:25w,12h:5y
xFilesFactor = 20
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 620s

[diamond]
pattern = ^servers\..*
retentions = 20s:24h,60s:2d,300s:7d,15m:25w,12h:5y
xFilesFactor = 20
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 700s

[switch]
pattern = ^switch\..*
retentions = 15s:24h,60s:2d,300s:7d,15m:25w,12h:5y
xFilesFactor = 20
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 600s

[mfs]
pattern = ^mfs\..*
retentions = 60s:2d,1h:4w,12h:2y
xFilesFactor = 1
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 600s

[icinga2]
pattern = ^icinga2\..*
retentions = 60s:2d,300s:7d,15m:25w,12h:5y
xFilesFactor = 20
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 900s

[marathon]
pattern = ^marathon\..*
retentions = 10s:12h,60s:2d,300s:7d,15m:25w,12h:5y
xFilesFactor = 20
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 800s

[default]
pattern = .*
retentions = 10s:12h,60s:2d,300s:7d,15m:25w,12h:5y
xFilesFactor = 20
aggregationMethod = average
metricsPerFile = 8
cacheRetention = 620s

relay.conf
cluster online
    fnv1a_sh
        server0:port0=0
        server1:port0=0
        server2:port0=0
        ...
        server0:port15=15
        server1:port15=15
        server2:port15=15
    ;

match <bad metric name regex>
    send to blackhole
    stop
    ;

match *
    send to online
    ;

rurouni.conf
[cache]
LOCAL_DATA_DIR = /data/kenshin/storage/data
LOCAL_LINK_DIR = /data/kenshin/storage/link
CONF_DIR = /data/kenshin/conf
LOG_DIR = /data/kenshin/storage/log
PID_DIR = /data/kenshin/storage/run

LINE_RECEIVER_INTERFACE = <IP_ADDRESS>
PICKLE_RECEIVER_INTERFACE = <IP_ADDRESS>
CACHE_QUERY_INTERFACE = <IP_ADDRESS>

LOG_UPDATES = False
MAX_CREATES_PER_MINUTE = 1000
NUM_ALL_INSTANCE = 16

[cache:0]
LINE_RECEIVER_PORT = 10300
PICKLE_RECEIVER_PORT = 10400
CACHE_QUERY_PORT = 10500

...

[cache:15]
LINE_RECEIVER_PORT = 10315
PICKLE_RECEIVER_PORT = 10415
CACHE_QUERY_PORT = 10515


Dapr->Dapr actor invocation is dropping headers

Dapr->Dapr actor invocation is dropping headers.
Reason:
Req.Metadata is not passed to CallRemoteActor: https://github.com/dapr/dapr/blob/master/pkg/actors/actors.go#L199
CallACtorEnvelope doesnt have any metadat field, https://github.com/dapr/dapr/blob/master/pkg/proto/daprinternal/daprinternal.pb.go#L83
So it all needs to be plumbed together on both the sides:
UserActorClientCode->Daprd_1(add metadata to Grpc invoke) -> Daprd_2(get metadata from gRPC and pass it along to the http request) -> UserActorServiceCode.

cc @yaron2 , assigning to myself after meeting as we discussed.


Split spin-trigger mod runtime_config into new spin-runtime-config crate

It would be nice if e.g. SpinKeyValueStoreOpts could live next to the code it configures in the spin-key-value-sqlite crate, but currently that would cause a circular dependency spin-key-value-sqlite -> spin-key-value -> spin-trigger -> spin-key-value-sqlite. Splitting into a separate crate would break the circle.

Is this a duplicate of https://github.com/fermyon/spin/issues/1359#issue-1656264417?


Expand Page With List of Constants

Under Parameters You write:
"What Optional Variant The kind of item to which the range is moved. Can be one of the WdGoToItem constants. "
"Which Optional Variant The item to which the range is moved. Can be one of the WdGoToDirection constants. "
Please list the WdGoToItem contants and the WdGoToDirection constants here too.

Dokumentoplysninger
⚠ Undlad at redigere denne sektion. Det er påkrævet til docs.microsoft.com ➟ GitHub-problemlinkning.

ID: f86c8b01-5153-2ca6-2108-76c65d7b0ff6
Version Independent ID: a5b95c38-60d5-1515-3d27-d0c493af00c5
Content: Range.GoTo Method (Word)
Content Source: api/Word.Range.GoTo.md
Product: word
GitHub Login: @o365devx
Microsoft Alias: o365devx

@Janmanden
Thanks for the feedback. I added links to the two constants. Changes will be live later today.
| What|Optional| Variant|The kind of item to which the range is moved. Can be one of the wdGoToItem constants.|
| Which|Optional| Variant|The item to which the range is moved. Can be one of the wdGoToDirection constants.|


GCWeb: URL Mapping working example

Moved from GCCode: https://gccode.ssc-spc.gc.ca/iitb-dgiit/nw-ws/sgdc-cdts/issues/55
@shawnthompson created the issue
Email received
From: Katrina Meikle<EMAIL_ADDRESS>Sent: February-20-18 1:55 PM
To: NC-SGDC-CDTS-GD
Cc: Rathagirishnan, Sumi \[PWGSC-TPSGC\]; Meikle, Katrina \[PWGSC-TPSGC\]
Subject: URL Mapping working example

Hi,

Question, we have a developer wanting to use the working example for URL Mapping. He tells me that he needs the dir/file /GCWeb/ containing theme.min.js file. I know we don’t have this as part of our package. Just wondering if you have this installed on the CDTS servers so if he implements this working example will he be able to access this file?

Thanks,
Katrina
Katrina Meikle

@MaximMartel Could you confirm this issue is still valid for version 4.0.39 ? Thanks.

The developer needed to test this in Feb 2018.


Brave wallet is missing on mobile

Link to minimal reproducible example
https://sandbox.ethereumico.io/wp-login.php?redirect_to=https%3A%2F%2Fsandbox.ethereumico.io
Summary
I have a Brave wallet installed on my phone (Android 11), but when I call the WalletConnect dialog from the Brave browser and click the "select wallet" button in the list of available wallets, I see MetaMask and TrastWallet installed but Brave is missing.
List of related npm package versions
"@wagmi/core": "0.9.3",
"@walletconnect/auth-client": "^2.0.3",
"@web3modal/ethereum": "2.1.1",
"@web3modal/html": "2.1.1",

There was addition in later versions of web3modal 2.2.2 that should add new "other" option on android. This is where you will see brave wallet, as it is not walletconnect one, but injected.
Let me know if you have further comments, closing this for now.


adding a devcontainer

First stage for #166 - adding a .devcontainer setup.
The configuration is mainly based on the GitHub Codespaces Rust example.
It is comprised of a

Ubuntu 22.04 base image
basic Rust and Cargo components to allow development for this project within a Codespace
required wit-bindgen-cli and Rust wasm32-wasi target
basic Visual Studio Code extensions for C and Rust development within a Codespace

Could you please sign the commits in this PR?
You can read more about it here

@Mossaka I signed commits now for both PRs.

Thanks. this looks great to me!


Should IS-10 or BCP-003-02 recommend using an allow list for issuers?

I've seen guidance that the iss claim should not be blindly followed but should be subject to an allow list... e.g. see https://curity.io/resources/learn/jwt-best-practices/#5-always-check-the-issuer.
It seems to me that confirming the chain of trust from an installed root CA to the specified issuer merely ensures that the server is who it says it is, it doesn't mean that you should trust that server as an issuer of JWT for this system?

Architecture Review Group review: place on backlog


jQuery.prototype.attr

According to the documentation ( https://api.jquery.com/attr/#attr2 )
Since at least jQuery 1.6:
If arg1 is a string, arg2 is "String or Number or Null"
If arg1 is an object, arg2 is "Function( Integer index, String attr ) => String or Number" and "this is the current element"
In this PR:

Improved first parameter object definition
Second parameter can't be a boolean
Improved second parameters function prototype

Imported and sent for internal review.


There is a problem logging in.

Describe the bug
when i join with google drive pop-up these problem.

How can I solve this?

Hi,
Could you translate the pop-up?
Regards,

Hi,
I am having the same issue
I have attached a video of what happens in the same situation, this time in English as requested.
This issue seemingly only affects the sign in with Google button, and when you press it nothing happens. All the other integrations are fine.
https://user-images.githubusercontent.com/1349339/123332020-e3ff2980-d537-11eb-831a-7f7fe342cd6a.MP4
I’m using iPadOS 14.6 with Safari.

Do you have third-party cookies blocked in Safari?

I’ve tried both with and without third party cookies enabled, seems to not affect things very much.
I have just discovered though, that this is actually related to Safari’s default pop-up blocking. By disabling pop-up blockers it now works.


Run same OnDemand Request with different parameters set in commandline

I am trying to run a jar file while get some data and put it on S3. So I am thinking of it as an onDemand Task.
Things like what data to get and some other parameters change everytime this task needs to run.
Is there a way to set these parameters while running the task and not just while deploying it. Or do I need to deploy a different request each time which to me seems like an extra step

Just adding to the my doubts here, When I pass commandline arguments to a one off task, following is the what can be seen in stdout for the task.
Forked command at 38876
[java -jar mytask.jar , 1 1000]
Command terminated with signal Aborted (pid: 38876)
This comma in what makes me think that this might be a bug. If comma is not present the code will run correctly I guess

Hey @the100rabh , there are a few nuances with the way mesos processes the commands for these tasks, and it has to do with shell mode. There are a few fields you could use to get this working the way you want and I'll try to outline that here.
On deploy you would probably want something like these fields set in your deploy:
'command': 'java',
'arguments': ['-jar', 'mytask.jar']

This on the deploy is specifying that the command sent to mesos is ['java', '-jar', 'mytask.jar']. Because they are specified as arguments instead of the command, mesos does not process this in shell mode. (i.e. they end up passed as that array, not as just a string)
Now for the extra arguments each time. When you POST to the /requests/request/{requestId}/run endpoint, you can specify the commandLineArgs field in your SingularityRunNowRequest object. These will then be added to the end of that command array when passed to mesos.
To explain the shell setting a bit more, whenever Singularity sees that arguments or commandLineArgs are set, it will set shell to false. So in you case this meant that you command java -jar mytask.jar became the first element of that command array, and the way that gets processed, means that mesos expects that first element of the array to be an executable, and the following array elements are args. So it was looking for an executable named java -jar mytask.jar not just java.
Hope this helps, feel free to reopen if you have any more questions.

I tried exactly what you mentioned above. Below is the output I got in STDOUT

Forked command at 3264
[java, -jar, mytask.jar, 1, 1000]
Command exited with status 1 (pid: 3264)

Just to add to what I mentioned above @ssalinas, I if include all the arguments in command it works wonderfully.
by  giving  in the Deploy request
"command":"java -jar mytask.jar 1 1000"

Output of STDOUT
Forked command at 3393
sh -c 'java -jar mytask.jar 1 1000'

@the100rabh was there any helpful output in stderr that might provide more info? First thought it that it isn't finding java on your path since there is no sh -c in front of it here

@ssalinas I think the problem here is because of no sh -c being added while running the command along with arguments. It feels weird because things work out well if there are no arguments being passed, but fails when there are any arguments attached to this.
Is there anyway I can try and debug this at my end. Would love to dig deeper into this but dont know where to start looking. Any implementation or design docs would help me as well.

@the100rabh , when in shell false mode, (i.e. the array of commands) it can be a bit pickier about the path and finding the command to run. Can you try it with the exact path to java (like /usr/bin/java or wherever it may be on your machine)? The problem with the shell true mode (adding sh -c) is that mesos will then ignore any additional arguments that are passed, only the original command will be executed.

Tried that, same result

Another piece of info, not sure if that will be helpful or not. Even if default arguments are given, it gives the same result.

@the100rabh have you gotten this working, or are you still having issues here?

Closing this one since we haven't heard back in a while. If you are still having issues, feel free to reopen

Many years later, it looks like this issue is not resolved. I'm having the same problem.
I have a simple bash script which expects 2 command line arguments. If I don't use "arguments" and just construct the command in full, then it works. If I specify command and arguments separately like you suggested about, it does not work no matter what I do.
This is not a problem for "Run Once" requests, but additional arguments is a must-have for "On-Demand" requests.
So how do I pass in arguments to commands separately? For example, for a "Run-Once" request, I'd like the following to work (but it doesn't at the moment):
{
  "deploy": {
    "requestId": "sleep-once",
    "id": "6",
    "command": "/home/sleep_task.sh",
	"arguments": [ "23s", "some string" ],
    "shell": true,
  }
}

I think if I can get this to work, the same thing will apply to specifying additional command line arguments to "On-Demand" deployments

I think I'm starting to understand how this is supposed to work for the "Run-Once" request. The following worked:
    "command": "/home/sleep_task.sh",
	"arguments": [
		"/home/sleep_task.sh",
		"23s",
		"is it working?"
	],

So my problem was that I was not adding the executable to the arguments list. This is weird, but I can live with that..
Now I need something like this for the "On-Demand" request though. In that case, I'd like to specify the base command during "Deploy" and when I run, I'd like to provide additional arguments which are run dependent. How can I make that work?

I think I got it working for On-Demand as well with the following json data:
{
  "runId": "99",
  "commandLineArgs": [
    "/home/sleep_task.sh",
	"35s",
	"another argument"
  ],
  "shell": false
}

and POST'ing to this endpoint: /api/requests/request/{requestId}/run
In both cases, the trick is to use "shell": false. This was a lucky guess on my part for the On-Demand request because shell wasn't listed as a possible field in this endpoint's documentation. However, it is mentioned in https://github.com/HubSpot/Singularity/issues/953 that extra arguments are ignored if shell is not set to false.

^closing since the above mentioned it was working now


Remove --devfile parameter from non odo create commands.

/kind feature

Which functionality do you think we should add?
See discussion: https://openshiftdo.slack.com/archives/CQK6HE78S/p1596118006155100
We have 4 locations where --devfile is used outside of odo create. --devfile should not be located on these commands:

odo exec
odo url delete
odo debug port-forward
odo debug info

Why is this needed?
There is no need to pass in --devfile if the default name is always devfile.yaml in the working directory.

Other than removing all the --devfile in all existing commands except odo create, we should also document or send internal notice to let folks know DON’T ADD --devfile to ANY NEW COMMANDS, for example the --devfile of odo exec is from this PR https://github.com/openshift/odo/pull/3083 which is 2 weeks ago. Otherwise we may in a loop where keep removing and keep adding the --devfile
Another case I can find is --devfile for odo url delete. The -devfile is added by this PR https://github.com/openshift/odo/pull/3139 which is merged after the --devfile cleanup for all commands we did before.

/assign

/assign


Flutter arm64 binary(compiler)

Can flutter be run on arm64 machines?
I'm trying to figure out is it possible to build flutter application on RasbperryPi or Android device. Since samsung Dex and Linux on Dex feature become available it will be a good feature to compile and run application on android device.
I've made an investigation and foud that I can compile dart sdk for arm64 architecture.
Thank you in advance for any ideas.

Does this answer your question?
https://medium.com/flutter-io/flutter-on-raspberry-pi-mostly-from-scratch-2824c5e7dcb1

I want to develop flutter apps on my chromebook with arm64 processor. But I am having a problem when installing latest flutter sdk linux version.
The error is: ( can not execute binary file exec format error) so apparently the sdk version is x86-64 and not for arm architecture.
So is there a version for arm64 ? How to install flutter sdk on linux with arm64 ? Am I missing something here ?

Is there any updates on this?
Can flutter sdk be installed in arm64 processors?


removing reference to cdn_name parameter

fixes #1180

Looks like there is one more here:  http://traffic-control-cdn.net/docs/latest/development/traffic_ops_api/v12/cache_stats.html?highlight=cdn_name


GEOMESA-727 Add IP-approved objenesis-1.0 to main pom

Signed-off-by: Jake Kenneally<EMAIL_ADDRESS>

looks good.

Committed as d5da4a8e21c8b857563c92a34b8cf30232bb197e on 1.5.


Can't click or use anything

On development environment, I can't click anything because this "backdrop" element is on top of the whole page.
This fixes it :)
.backdrop { display: none }

pretty sure this is just because i updated deps in #12


[WIP]: Resolve webpack externals relative to their context

Sometimes externals are inside nested node_modules folders, for example,
if apollo-server-express is not in the top-level
node_modules folder, but instead in
node_modules/hops-graphql/apollo-server-express.
Before this change we would just declare them as externals and then the
node process would try to require('apollo-server-express') which does not
work, because apollo-server-express is deeper nested. Therefore the
require should look like this:
require('hops-graphql/node_modules/apollo-server-express') in order to
actually resolve to the package.
This commit changes the externals definitions from simple strings to a
function which does exactly that.

I don't think this is the correct approach right now.
In another commit I added a check for duplicate graphql packages, since that was the root cause for multiple installs of apollo-server-express.
We should monitor this and if needed revisit at a later stage.


Reacting to Mvc changes

cc @rynowak \ @PinpointTownes

@pranavkm silly me. I had checked MusicStore to see if my PR wasn't breaking something but I had not realized the Identity repo had samples that used Challenge :sweat_smile:
Thanks!


set larger threshold in stest_rfp.in for POWER10

This PR increases the threshold in stest_rfp.in to 45.0. This helps issue #4856.

Sorry, there is already a PR #4865 for this. So I will close this one. Thanks for creating #4865.


processing should continue if an individual file fails

Still not able to automate a batch since one file causes the whole process to fail.
Regardless of the error, ideally for each failed file that file should be moved to the 3_failed folder and attempts to process the rest of the files should continue onward.
Here's a sample:
[INFO]: [24/1472] Sending file contents of C:\sermonindex_audio\bak_whisp_out\txt_to_do/SID1189.mp3.txt to API server on <IP_ADDRESS>:8000...
[INFO]: Writing to C:\sermonindex_audio\bak_whisp_out\txt_chunked_out/SID1189.mp3.txt_out.txt...
Traceback (most recent call last):
File "C:\sermonindex_audio\chunk_paragraphs.py", line 136, in
main()
File "C:\sermonindex_audio\chunk_paragraphs.py", line 125, in main
chunk_paragraphs_dir(args.i, args.o)
File "C:\sermonindex_audio\chunk_paragraphs.py", line 78, in chunk_paragraphs_dir
_input_contents: str = input_file.read().encode("ascii", errors="ignore").decode().replace("\r\n", " ").replace("\n", " ")
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 101: character maps to
PS C:\sermonindex_audio>

Note: some errors are currently properly skipping -- e.g. below, but others crash the process still:
[INFO]: Writing to .\txt_chunked_out/SID1262.mp3.txt_out.txt...
[INFO]: [17/1393] Sending file contents of .\txt_to_do/SID1263.mp3.txt to API server on <IP_ADDRESS>:8000...
[INFO]: Writing to .\txt_chunked_out/SID1263.mp3.txt_out.txt...
[ERROR]: Error, skipping file SID1263.mp3.txt
[INFO]: [18/1393] Sending file contents of .\txt_to_do/SID1264.mp3.txt to API server on <IP_ADDRESS>:8000...
[INFO]: Writing to .\txt_chunked_out/SID1264.mp3.txt_out.txt...
[INFO]: [19/1393] Sending file contents of .\txt_to_do/SID1265.mp3.txt to API server on <IP_ADDRESS>:8000...
[INFO]: Writing to .\txt_chunked_out/SID1265.mp3.txt_out.txt...
Traceback (most recent call last):
File "C:\sermonindex_audio\chunk_paragraphs.py", line 136, in
main()
File "C:\sermonindex_audio\chunk_paragraphs.py", line 125, in main
chunk_paragraphs_dir(args.i, args.o)
File "C:\sermonindex_audio\chunk_paragraphs.py", line 78, in chunk_paragraphs_dir
_input_contents: str = input_file.read().encode("ascii", errors="ignore").decode().replace("\r\n", " ").replace("\n", " ")
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 1098: character maps to
PS C:\sermonindex_audio\bak_whisp_out>


Update item scoring to match issue scoring

Looks like in Mark's PR https://github.com/Netflix/security_monkey/pull/968 only the issue score was updated -- this updates the item scoring to match it.

Coverage remained the same at 72.992% when pulling 049f5b9cb9a05727c8ad3e4e06c2a4dca11a51a8 on zpritcha:patch-5 into b85a7545f63d05712b0e61d5d417ad5f0f8218fa on Netflix:develop.


valkey passthrough test

Valkey is looking to be the dominant open source fork for Redis, makes sense to run this smoke against it. There hasn't been an official release so I've pinned to latest. This would work to our advantage because it will notify us immediately if anything changes that breaks Shotover compatibility.

I think we should give this some more time before we start supporting a redis fork.
Googling for valkey doesnt even bring up a repo.

Lets reconsider this once valkey is large enough and it has a version we can pin to.
Happy for this to remain up as a draft until then.

Can close now for https://github.com/shotover/shotover-proxy/pull/1809/files


Force full channel release.

Just removing the channel from the channels collection isn't
enough; the channel might have references elsewehere, including
reference cycles if the listener/subscriber callbacks close over
it.

LGTM


SAS OLE DB Performance Issues

Usage note for SAS OLE DB Performance Issues: http://support.sas.com/kb/63/340.html

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

ID: df452d2e-9a96-a9cb-40a7-830d6282c68b
Version Independent ID: 1f84e9ab-409e-59fc-d35a-dc66f3d6bcb3
Content: Connect to data using generic interfaces in Power BI Desktop - Power BI
Content Source: powerbi-docs/desktop-connect-using-generic-interfaces.md
Service: powerbi
Sub-service: powerbi-desktop
GitHub Login: @davidiseminger
Microsoft Alias: davidi

Can this be fixed? The issue does not occur using Excels legacy OLE DB connection.

Hi, @C2BB -- Thanks for asking. I recommend that you start with the Power BI support site, https://powerbi.microsoft.com/en-us/support/, to see if they have an answer.

Thanks for your comment, @C2BB . Looks like this is product feedback, rather than documentation feedback – you can submit product feedback or feature ideas by going to https://ideas.powerbi.com. You can also engage with the Power BI engineering team by being active in the Power BI Community, found at https://community.powerbi.com.


Documentation request for UdpSocketExt

Can you provide an example for sending UDP multicast with UdpSocketExt? I don't know how to list out the Ipv4Addr's on the current host and I think that would useful to new net2 users.

I'm all for adding documentation! I'm not quite sure what you're trying to do though, what do you mean by listing out addresses on the current host?
Also note that most methods in this crate simply directly correspond to various options you'd find in C here and there, so any examples in the wild should be directly translatable to Rust as well.

I'm trying to send the same message over multicast through all connected interfaces (osx: en0 and lo. or on linux: eth{0,1,2}). But I do realize I'm a newb in these APIs. I'm not sure what the C stdlib equivalent would be.

OK, so I'm looking for getifaddrs in Rust. Led me to a maidsafe project: https://github.com/maidsafe/crust/blob/master/src/getifaddrs.rs . I'll keep going and perhaps contribute back some docs :)

Ah ok, in that case the getifaddrs function currently isn't bound here so I'm gonna close this, but feel free to add docs if some are needed!


patch-1 doesn't work : str() takes at most 1 argument (2 given)

Hi everybody,
I got a error message when I was using patch-1 (it is my first time to use google-images-download):
:************* $ googleimagesdownload --keywords "logo"
Item no.: 1 --> Item name = logo
Evaluating...
str() takes at most 1 argument (2 given)
Image objects data unpacking failed. Please leave a comment with the above error at https://github.com/hardikvasa/google-images-download/pull/298
Anyone would help? Thank you very much!

Hi, sorry for not replying sooner.
I tested out patch-1 with the keyword "logo" and I was unable to reproduce the error.
Perhaps try reinstalling the patch with the below
git clone https://github.com/Joeclinton1/google-images-download.git
cd google-images-download && python setup.py install

@Joeclinton1 the issue is python2.7 vs python3.  Installing with system default python aka python2.7 I can reproduce the error, but installing with
python3 setup.py install --user

works as expected.


Can libuv be port to ARM Cortex-M4 MCUs?

I want to use a project on an ARM Cortex-M4 MCU ,but the project depends on libuv.
I want to known,is it possible to port libuv to ARM Cortex-M4 or do you have any plan for that?
Thanks.

I don't know how portling libuv to that platform would go, but there are definitely no plans for it.

I can't think of a reason why libuv wouldn't work as-is.  Cortex-M4 is basically ARMv7.  FreeBSD/ARM might need some work (stress on 'might') but Linux should be no problem.

Given that the Cortex-M4 is a microcontroller rather than an application processor, typically with 1 or 2 megabytes of flash and less than 1 megabyte or RAM, I'd imagine that this would be a very challenging task.

That's true, but libuv by itself doesn't use much memory.  I have a simple libuv based web server running on and old MIPS router that uses just over 500 kB virtual memory (i.e. code, data, stack and heap.)

I think it is worth doing that work,especial in IoT(Internet Of Things) field.
Nowadays the ARM Cortex-Mx(M0/M0+/M3/M4) MCUs are very popular in Iot.
With Libuv ,it will be possible to do many thing interesting as fast as possible.

Closing since it's not an issue. Please feel free to open new ones if specific issues arise!


Ensure that all installations of observability reference a fixed git SHA

Due to our usage of extVars we currently often introduce backwards incompatible changes. This is a problem as we have many places where our observability installations refer to the main branch.
To make sure we don't break installations unintentionally we should fix the git SHA for all installations for now so that updates becomes intentional.
Meanwhile we'll work on finding to make it easier to evolve our jsonnet programs without introducing breaking changes all the time in this ticket https://github.com/gitpod-io/observability/issues/34
The following places needs to have their git SHA fixed

ArgoCD applications in gitpod-io/ops (example)
The workspace monitoring satellite deploy script here
Preview environments deploys (here)

We should also extend the README with information on how to "deploy" monitoring satellite now that we have a fixed SHA:

As it might sound super simple, there is one thing that makes this process a little bit more complex than expected 😬 (Worry not! A solution was already thought and implemented upstream)
Gitpod dashboards and alerts are developed in another repository and are imported to the vendor folder in this repository through automation.
If we simply update all downstream projects to a fixed commit SHA, we'll need to update everything every time a dashboard or alert changes as well, pointing to the new commit SHA.

Inspired by kube-prometheus release process, we could have something like this:

We maintain a separate branch for each minor release, named release-., e.g. release-0.1, release-0.2
The CI workflow is modified to open PRs updating dependencies to main and to other release branches.
Downstream should pin to the release branch.
We can introduce as many breaking changes as we'd like to main, but will need to cut a new release (with changelog) everytime an engineering team wants to use any new feature

@ArthurSens Ah damn, moving back to the inbox and have marked it as Pending clarification until we have decided on a specific way forward.

let's keep the time during which there is a version-pinning short because during that time product teams can not ship changes to monitoring.

Closing this issue as we fixed this as part of making the jsonnet programs backwards compatible (we fixed the git sha temporarily before while rolling out the new backwards-compatible version)


Errors with autosave and collaboration

Preflight Checklist

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.
Describe the bug
When working on a document online from google drive, changes are not always saved. When working together, changes are not always synchronized and often one person's work is overwritten by an older version of another person's document/tab. As a result, work becomes a constant tracking of relevance and data recovery. The cookie settings are correct. Autosave is enabled.
Expected behavior
One or more people are working with the document and edits are saved in addition to each other.
draw.io version (In the Help->About menu of the draw.io editor):

draw.io version 21.6.7

any errors in the browser console when this happens?

over 1,000 such messages

Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

and a dozen of these

Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.

and isolated messages like this

DevTools failed to load source map: Could not load content for chrome-extension://cofdbpoegempjloogbagkncekinflcnj/build/content.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
-[2023-08-11 15:34:46][EventHandler][constructor] not enable app.diagrams.net  content.js:49

Could you disable your browser extensions you have enabled and check again please?

Could you disable your browser extensions you have enabled and check again please?

After disabling all extensions, the console became empty. I found extensions that generated errors:
DeepL

DevTools failed to load source map: Could not load content for chrome-extension://cofdbpoegempjloogbagkncekinflcnj/build/content.js.map: System error: net::ERR_BLOCKED_BY_CLIENT
Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
app.min.js?WB_REVISION=7bbe15fda9109f88254d773211c22514:288     GET https://www.googleapis.com/drive/v2/files/1lwmhZXzf8JApjW9wodCgfuNuDRxnrPUR?supportsAllDrives=true&fields=etag,headRevisionId,modifiedDate,properties(key,value) net::ERR_CONNECTION_CLOSED

Flappypedia

[2023-08-11 15:34:46][EventHandler][constructor] not enable app.diagrams.net content.js:49

PS Also noticed that there are still posts that are always shown, regardless of extensions. I am attaching their screenshots just in case: https://prnt.sc/j-JilTlyRrBd

OK, but it works with the extensions off?

It takes a while to test it in operation. I will test it within an hour and post it here.

OK, but it works with the extensions off?

Everything works great now, thanks!
As for conflicts with extensions - should I write to the developers of these extensions or whose side is the error here?

Unfortunately, it's up to the end user to deal with this. There are hundreds of thousands of web applications and a similar number of chrome extensions. There's no possible way for any party to apply significant effort to address such issues.
You just have to understand that when you add an extension you're changing the browser to behave differently and debug when there are issue.

Unfortunately, it's up to the end user to deal with this. There are hundreds of thousands of web applications and a similar number of chrome extensions. There's no possible way for any party to apply significant effort to address such issues.
You just have to understand that when you add an extension you're changing the browser to behave differently and debug when there are issue.

Thank you, this is a valuable comment and experience!


Maintenance: remove require from Tracer provider

Summary
After we launched v2 with ESM support, customers found some friction (#2523, #2290, #2464) when migrating due to X-Ray SDK for Node.js being built for CJS only and Tracer using the require keyword to monkey patch the imports for the http and https modules.
Due to the Tracer's usage of the keyword, customers that forget to add the banner see Powertools for AWS mentioned in the stack trace and think that there is a bug on our side. To mitigate this, as well as remove an unnecessary usage of the require keyword we should investigate if it's possible to avoid using it.
Why is this needed?
So that it's clearer where the issue resides and
Note that this won't remove the need for the banner, since the SDK will still only support CSJ, however the error and stack trace will change from something like this:
{
"errorType": "ReferenceError",
"errorMessage": "require is not defined in ES module scope, you can use import instead",
"stack": [
"ReferenceError: require is not defined in ES module scope, you can use import instead",
" at ProviderService.captureHTTPsGlobal (file:///opt/nodejs/node_modules/@aws-lambda-powertools/tracer/lib/esm/provider/ProviderService.js:25:9)",
" at new Tracer (file:///opt/nodejs/node_modules/@aws-lambda-powertools/tracer/lib/esm/Tracer.js:122:27)",
" at (/infra/src/pipeline/config/lambda-fns/common/powertools.ts:24:16)",
" at ModuleJob.run (node:internal/modules/esm/module_job:222:25)",
" at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)",
" at async _tryAwaitImport (file:///var/runtime/index.mjs:1008:16)",
" at async _tryRequire (file:///var/runtime/index.mjs:1057:86)",
" at async _loadUserApp (file:///var/runtime/index.mjs:1081:16)",
" at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1119:21)",
" at async start (file:///var/runtime/index.mjs:1282:23)"
]
}

to this:
{"errorType":"Error","errorMessage":"Dynamic require of \"util\" is not supported","stack":["Error: Dynamic require of \"util\" is not supported","    at file:///var/task/index.mjs:11:9","    at node_modules/cls-hooked/context.js (file:///var/task/index.mjs:270:16)","    at __require2 (file:///var/task/index.mjs:14:50)","    at node_modules/aws-xray-sdk-core/dist/lib/context_utils.js (file:///var/task/index.mjs:1862:15)","    at __require2 (file:///var/task/index.mjs:14:50)","    at node_modules/aws-xray-sdk-core/dist/lib/aws-xray.js (file:///var/task/index.mjs:7641:24)","    at __require2 (file:///var/task/index.mjs:14:50)","    at node_modules/aws-xray-sdk-core/dist/lib/index.js (file:///var/task/index.mjs:7947:22)","    at __require2 (file:///var/task/index.mjs:14:50)","    at file:///var/task/index.mjs:8924:40"]}

Which will help customers better pinpoint the issue.
Which area does this relate to?
Tracer
Solution
Test if it's possible to remove the hardcoded require in the packages/tracer/src/ProviderService.tsfile and lettsc` convert it based on the build mode. Then, if this is successful, test that the X-Ray SDK for Node.js can still monkey patch the import even when using ESM.
Acknowledgment

[X] This request meets Powertools for AWS Lambda (TypeScript) Tenets
[ ] Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET

Future readers
Please react with 👍 and your use case to help us understand customer demand.

Integration tests passing: https://github.com/aws-powertools/powertools-lambda-typescript/actions/runs/9161399692/job/25186156416


Postgresql DB connection

Is it possible to connect to postgressql DBs ? I have not had any luck thus far.

Is your question regarding the "Table Import Wizard" in Tabular Editor, or Analysis Services Tabular in general?
Unfortunately I don't have access to a PostgreSql DB from where I work, so I'm not able to assist much, but if using an ODBC or OLE DB legacy (aka. "provider") data source, I expect that it should just work. One thing to note, though, is that Tabular Editor is a 32 bit application, so depending on your environment, you might need to have both 32 and 64 bit database drivers installed, to make this work.

My question was in regards to both, at this point i have been able to connect to the data postgres data source, however when i am trying to import tables there is not preview for tables and i get an error saying "object reference not set to an instance of an object". I also get an unresponsive interface when i refresh the table metadata. i attached two screen shots below, perhaps im just missing something ?

when i am trying to import tables there is not preview for tables and i get an error saying "object reference not set to an instance of an object"

Does the interface still show the list of tables and views in the database, even though it cannot preview the content?
Which Provider is your data source using?

Yes, i can view all the tables and view in the database but where the preview would normally load there is an error "42601" screenshot attached below. The provider is system.data.odbc. Thanks for your help!

I'm not an expert in PostgreSql syntax, but I believe you need to use LIMIT as row reduction clause, and "Double Quotes" for the identifiers. Otherwise, the SQL statement generated by Tabular Editor is not valid PostgreSql:

WOW, Thank you so much, i'm feeling a bit embarrassed right now, that worked!


Read-me.md rewrite

License change, wording change, pluralization of license & copyright.

This change is

If we're updating the license, we should probably have a license file for GitHub - fixing that now.


Do we actually need hash tagging?

To be clear, I don't mean sha256t.
I've just realized after the changes to remove ThirtyTwoByteHash trait and only impl Into<Message> for Sighash we don't need to worry about whether non-sighash hashes are a hash (unless I'm missing something else). And if sighashes are the only things that need to ensure it, maybe the whole type should be protected?
Basically, I think we should be able to not have from_byte_array on sighashes (we need to modify the macro) and then just explicitly have const fn dangerous_from_byte_array_assume_hashed(x: [u8; 32]) -> Self.
Not having to deal with tags and simply delegating the responsibility to individual type is simpler and could get us to stabilize faster. Also we can always add support for non-raw hashes later by adding a flag to the macro.

To further clarify: by "hash tagging" you mean adding a type tag to indicate whether or not a preimage is known.
It's an interesting point -- we basically have this in that the *SigHash types are "known preimage" and the rest of them aren't. And with the sighash types we have already restricted the API so that it's unnatural to directly serialize/deserialize them ... and maybe you're right that even the "unnatural" way should be more clearly marked as dangerous.
I think that just tacking assume_hashed onto the end of from_byte_array, and mentioning this in the docs of to_byte_array, is enough. We don't need to say dangerous. The word "assume" in a method name already means "dangerous" IMO.
TL;DR I think you're right.

Am I correct in thinking this issue is a counter argument to https://github.com/rust-bitcoin/rust-bitcoin/issues/1425?
And is the suggestion to change the name of from_byte_array to  from_byte_array_assume_hashed for some subset of hash types?
I'm not understanding the suggested difference between a "known pre-image" sighash type and an "unknown pre-image"? For example a Txid unknown or known?

Am I correct in thinking this issue is a counter argument to #1425?

Yep.

For example a Txid unknown or known?

A Txid you parse from an outpoint is unknown. A Txid you compute by hashing a transaction is known. So our Txid type would have to be split into two -- Txid<UnknownPreimage> and Txid<KnownPreimage> where the latter let you do more stuff.
The point of this issue is that the "more stuff you can do" if you know a hash preimage is frequently the empty set. It lets you sign hashes (but you would never directly sign a Txid, only a TaprootSighash or whatever); it gives you assurance that txids won't collide (but this isn't even meaningful if you don't know the preimages, so it's fine); it lets you say "this represents a real" transaction (but the definition of "real" here is "it's a series of bytes" so this is a useless concept).
IOW, for non-sighashes the "unknown preimage" type is really the only useful one. And conversely, for sighashes, the "known preimage" type is the only useful one (and we want to discourage users from deserializing these objects because doing so is usually unsafe).

And is the suggestion to change the name of from_byte_array to from_byte_array_assume_hashed for some subset of hash types?

Yep -- specifically hash types which implement Into<Message>. (There is an "obviously better" way to accomplish this with a custom trait that has the methods alongside a conversion to Message. We do not want to do this because it will make it very hard/complicated to avoid a circular dependency between hashes and secp256k1 and the custom trait would really only be useful for rust-secp itself.)
So I think we can close #1425.

Closing this issue. We have landed on "known-preimage hashes are exactly the ones that impl Into<Message>".


[BUG] in sample:

The FIREBASE FUNCTIONS API - https://us-central1-{project}.cloudfunctions.net/
Not have permission for used in FIREBASE HOSTING =|

@HiddenBehindTheKeyBoard please use the issue template when filing an issue. There's nothing here to explain what's wrong with this sample, what you've tried, or what you expected to happen.

@HiddenBehindTheKeyBoard please use the issue template when filing an issue. There's nothing here to explain what's wrong with this sample, what you've tried, or what you expected to happen.


How to download and use?

How do you download and use this? BTW, I can't code like this. nice job!!!

Thanks for the interest.  This project hasn't been updated in a while so the direct link to the windows libraries apparently isn't up anymore, which I will fix.  I admit it's a bit difficult to build.  The easiest build process is on Linux, since you just have to grab each dependency and follow the instructions.  The hard one is Windows, which I can help you with if you're using that (manually building all the libs is VERY tricky, which is why you should instead download the libs as a pack manually from the link which I'll fix soon).  Also, this repository is just the base engine, so you'll want to build one of the demo games like https://github.com/flipcoder/game-off-2016 or https://github.com/flipcoder/microarmy so it'll actually run something instead of just being an empty starter template.
Note: It isn't a "modern" engine like Unity where the engine is separate from the game.  The engine and game code are compiled at the same time.
What OS are you wanting to build on?  I can give you more specific steps.

I should also mention my newer engine https://github.com/flipcoder/qork, which is a lot like Qor but written in python.  It's for smaller game projects and easier to use, but incomplete.

Ah, windows 10?

How do you build it from the empty template?

Here is the documentation and instructions:  https://github.com/flipcoder/qor/blob/master/QorBook.md
I updated the link to the libs package which was broken.


Add an acknowledgements section.

The initial commit is of an acks section based solely on the GitHub commit history of the document. I'm going to go through all the closed and open issues and PRs too, so this isn't yet ready to land.

Preview | Diff

Preview | Diff

Okay, I've finished going through the issues and PRs. Please take a look, @torgo & @pes10k!

extremely minor issue too, but while you're editing the editors section, could you change my attribution to
Peter Snyder, w3cid 109401, Brave Software https://brave.com<EMAIL_ADDRESS>Happy to do so in a separate PR too if ya prefer

extremely minor issue too, but while you're editing the editors section, could you change my attribution

Done, in 5f6bdae.

verbal r+ from @pes10k at San Diego F2F; merging.


Upgrade react-collapsed to @collapsed/react

This fork was created while react-collapsed didn't support React 18's useId. I've since updated that library to @collapsed/react and it now uses useId!

I've wanted to update but I noticed there was a significant rewrite, and I'm not sure the approach quite makes sense to me. In particular I found it difficult to tell if React's rules are being followed there. For example, this is a mutation during render. That's not supported in React. Similarly, all this.get* functions read from mutable fields, which is not supported during rendering. This doesn't mean something in particular is broken — but more that it's hard to say whether this will work or not.
For a more concrete blocker, I'm seeing a layout jump on the initial load. The SSR'd version of the page appears to default to an expanded (rather than a collapsed) state. This is likely a bug.

Appreciate the feedback, Dan. I see the bugs you raised. I may have missed the forest for the trees when trying to rewrite Collapse to be compatible with more libraries. I'll see if I can address the issues, but will reconsider this rewrite if I can't make it a first-class citizen for React.

For this type of code, it's valuable to try to separate pure rendering logic from the parts that deal with DOM directly. Ideally the part that's pure should be driven by React state. Things like "calculate style", "get props for X", etc, should be straightforward pure transformations based on state variables. This should not require reading any mutable fields. Then, you'd want to update that state when needed, and/or keep it in sync with the DOM. For that part, it makes sense to me that you might want the imperative logic outside the component to group it. That logic should only be called from event handlers or Effects. There are some examples of different ways you can approach splitting imperative from pure logic in this section.


UTXO set

Write easy to reproduce python that scrapes LevelDB for total UTXOs on each block.
Python to simulate the halving
https://github.com/bitcoinanatomy/bitcoinanatomy/blob/main/src/bpy/utxo_construct.py#L303

Ideal if able to update the existing json data files to keep everything consolidated.


Fixed URL typo in README.md that causes a 404 error

-snipper +snippet. Now the link to the BigARTM notebook no longer 404s.

...I have no idea why the build fails now. Can't originate from the README.md fixup, can it?

Thank you, for PR @AforAnonymous. I think build failure related to new versions of our other tools.
I will take a look a little bit later.

You might wish to consider using Dependabot to avoid running into this kind of surprise in the future. :)

Nice catch, we have not heard about Dependabot, looks nice. Thank you!


Nested types - how access to parent values

Hi,
I have query
rent {
   car {
      id, vin
     equipments {
       name
}
}

}

RentType.php

class RentType extends ObjectType {

		public function getConfig(): array {
			return [
				'name' => 'Rent',
				'fields' => function() {
					$fields['car'] = [
						'type' => $this->carType,
						'resolve' => function(array $rentData) {
							$car = $this->carRepository->find($carData['id_car']);
							return $car->toArray();
						}
					];
				}
			];
		}

CarType.php
class CarType extends ObjectType {

	public function getConfig(): array {
		return [
			'name' => 'Car',
			'fields' => function() {
				$fields['equipments'] = [
					'type' => Type::listOf($this->carEquipmentType),
					'resolve' => function(array $carData) {
						$car = $this->carRepository->find($rentData['id_car']);
						$equipmentValues = [];
						foreach ($car->getEquipmentValueCollection() as $equipmentValue) {
							$equipmentValues[] = $equipmentValue->toArray();
						}
						return $equipmentValues;
					}
				];
			}
		];
	}

}

and CarEquipmentType.php
class CarEquipmentType extends ObjectType {

	public function getConfig(): array {
		return [
			'name' => 'CarEquipment',
			'fields' => function($rentData) {

				// here I need access to id_car value. $rentData are root values and I can get id_car from there
					$carId = $rentData['id_car'];

				// but this way seems me stupid because but it trust that in root of query will be ever RentType. This is not universal way. It seems to me better access to directly to parent because it will be ever CarType and get id of car

				$parentValues = .....; // I dont know how
				$carValues = $parentValues;
				$carId = $carValues['id'];
                                $car = $this->carRepository->find($carId);
                                $car->getEquipments() .....
                                ......
                                return $equipmentValues;
			}
		];
	}
}

It is some way how access to values of parent in resolve method?

Child is controlled by the direct parent.
So two good options:

Make equipments part of the Rent, not Car (as for me, this is a proper relation in your case)
Or pass rent data along with a car data down in your resolvers. So when you resolve a car - pass rent data with it (since your children depend on it anyway)

Not so good option:

Use context (3rd argument of the resolver). Set current rent in context in the rent resolver and then read it from context in the equipment resolver.

Why is it a bad option?

It makes it much harder to reason about the code. By looking at equipment resolver - it is not clear where does it come from
It also makes your type context-dependant which makes it less testable.
Plus it may cause issues with recursive nesting

Can

Child is controlled by the direct parent.
So two good options:

Make equipments part of the Rent, not Car (as for me, this is a proper relation in your case)
Or pass rent data along with a car data down in your resolvers. So when you resolve a car - pass rent data with it (since your children depend on it anyway)

Not so good option:

Use context (3rd argument of the resolver). Set current rent in context in the rent resolver and then read it from context in the equipment resolver.

Why is it a bad option?

It makes it much harder to reason about the code. By looking at equipment resolver - it is not clear where does it come from
It also makes your type context-dependant which makes it less testable.
Plus it may cause issues with recursive nesting

Can you show me code how pass data along with carData or rentData to resolver please? It sounds good but I dont know how pass data to resolver

class RentType extends ObjectType {

		public function getConfig(): array {
			return [
				'name' => 'Rent',
				'fields' => function() {
					$fields['car'] = [
						'type' => $this->carType,
						'resolve' => function(array $rentData) {
							$car = $this->carRepository->find($carData['id_car']);
							return ['car' => $car->toArray(), 'rent' => $rentData];
						}
					];
				}
			];
		}
}

class CarType extends ObjectType {

	public function getConfig(): array {
		return [
			'name' => 'Car',
			'fields' => function() {
				$fields['equipments'] = [
					'type' => Type::listOf($this->carEquipmentType),
					'resolve' => function(array $data) {
						$carData = $data['car'];
						$rentData = $data['rent'];
						// ...
					}
				];
			}
		];
	}
}

Hi,
we're facing a similar problem in our project but using Symfony and Overblog GraphQL-Bundle which is based on the Webonyx graphl-php lib. We also use Overblogs dataloader-php to solve the n+1 problem.
Our resolvers mostly return directly our doctrine entities (objects), so the suggested solution to return an associative array to pass data down the nested resolvers is no solution for us. Also extending our entities with all possible parents feels dirty.
But I had another idea: The ResolveInfo already contains a path property which contains the names of all parents up to the root. What if the ResolveInfo also contains a parent array with all the parent objects?


Possible bug in decoding

I was getting a stacktrace in my app today from ContextIO, which uses rauth, which uses requests, which uses urllib3:
  File "/Users/rbp/Projects/Python-ContextIO/contextio/__init__.py", line 1592, in get_content
    return StringIO.StringIO(response.read())
  File "/Users/rbp/Projects/tengahdb/default/lib/python2.7/site-packages/requests/packages/urllib3/response.py", line 191, in read
    buf = self._decoder.decompress(binary_type())
error: Error -2 while decompressing: inconsistent stream state

This was traced to a bug elsewhere, but I did notice that get_content was being called with  decode_content=False, so I developed this patch, which helped me ultimately find the root cause
--bob
***************
*** 191,193 ****
!             if flush_decoder and self._decoder:
                  buf = self._decoder.decompress(binary_type())
                  data += buf + self._decoder.flush()

--- 191,193 ----
!             if flush_decoder and decode_content and self._decoder:
                  buf = self._decoder.decompress(binary_type())
                  data += buf + self._decoder.flush()

Cross posted in the downstream related requests issue:

Found a way to reproduce this:
>>> r = requests.get('http://www.newyorklantern.com/wp-content/uploads/2015/01/golden-crystal-ball-129x150.jpg', stream=True)
>>> _ = r.raw.read(10000, decode_content=True); print len(_)
4412
>>> _ = r.raw.read(10000, decode_content=True); print len(_)
0
>>> _ = r.raw.read(10000, decode_content=True); print len(_)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Users/bryanhelmig/.virtualenvs/zapier/lib/python2.7/site-packages/requests/packages/urllib3/response.py", line 224, in read
    "failed to decode it." % content_encoding, e)
DecodeError: ('Received response with content-encoding: gzip, but failed to decode it.', error('Error -2 while decompressing: inconsistent stream state',))

For anyone Googling this. Dunno if it is a bug? But if the server is not delivering gzip - you can read from the socket all day long with no stream errors.

I suspect our gzip decoder doesn't expect to get an empty read twice in a row.

Yeah - we have a few layers of generator wrappers that pass chunks up so sometimes it will try yet another read() on an exhausted stream. Just sloppy code on our part, but it might be a nicer API to match the non-gzip stream behavior. If I get a few hours I'll try and surface a urllib3 specific test case and PR.

Continuing this thread in https://github.com/shazow/urllib3/pull/535.


virtual resource details rename domain to project_domain

这个 PR 实现什么功能/修复什么问题:
虚拟资源 domain 重命名为 project_domain
是否需要 backport 到之前的 release 分支:

release/2.10.0

/area region keystone
/cc @swordqiu

Codecov Report

Merging #1178 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #1178      +/-   ##
=========================================
+ Coverage    7.88%    7.9%   +0.01%
=========================================
  Files         368     368
  Lines       57863   57863
=========================================
+ Hits         4565    4576      +11
+ Misses      52899   52889      -10
+ Partials      399     398       -1

Flag
Coverage Δ

#aFlag
7.9% <0%> (+0.01%)
:arrow_up:

Impacted Files
Coverage Δ

pkg/cloudcommon/db/virtualresource.go
0% <0%> (ø)
:arrow_up:

pkg/util/rbacutils/rbac.go
75.7% <0%> (+3.47%)
:arrow_up:

Continue to review full report at Codecov.

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

/lgtm
/approve


add docker compose

On RHEL compose is not working
add tasks to install, see https://docs.docker.com/compose/install/other/

reopen need investigation

reopen need investigation

test will be added wit AlmaLinux OS


Deploy Checklist - Edits on the checklist are removed by Botify after a while

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Navigate to any deploy checklist
Make some edits (adding a PR, comment or CP manually)
Wait for a while
Check the edits on the checklist.

Expected Result:
Edit should remain. Botify doesn't have full control of the checklist.
Actual Result:
Edits are removed after a while. Botify doesn't like people messing with his checklist.

Platform:

Where is this issue occurring?

GitHub

View all open jobs on GitHub

Current assignee @roryabraham is eligible for the Engineering assigner, not assigning anyone new.

@roryabraham Whoops! This issue is 2 days overdue. Let's get this updated quick!

Changing this to weekly, but hoping to get to it today. I already started working on it.

Okay, so I looked into this a bit and this will only happen if we make edits to the Internal QA checklist. However, if you add the Internal QA label to a pull request, then manually move it to the internal QA section, it should work and not be deleted. Also you need to type out the full PR url and not just the shortcut with # and the number. So there are some limitations but generally this should work fine. The code changes were actually quite complex, so I decided this is probably not worth fixing.