Enable cookies message when accessing web

I am trying to access the web http://arenavision.us from a Google Cloud machine and it says "Enable cookies" since yesterday. It worked perfect before.
It's important to say that this web allows to access from anywhere except from Google Cloud machines. In Google Cloud machines it enables the recaptcha challenge, which I was able to surpass with deathbycaptcha parameters until yesterday.
I can't test if it works from a local PC because "http://arenavision.us" only performs CloudFlare limitations some specific days on local machines. Instead of that, it goes recaptcha permanently in Google Cloud, that is where I have found the bug.

It's a bit strange, because if I do "wget http://arenavision.us" from the Google Cloud machine it says: 403 Forbidden
But I have now try it with a Google Machine in Europe and it works. It's working the "wget" and it's working the Cloudscraper. Maybe arenavision.us only blocks Google Cloud machines in USA.
I have tried with another instance, too, in Asia... and it's blocked aswell.
So I think it's maybe a problem of blocking IPs, not just a Cloudscraper problem. Thank you anyway.

import cloudscraper
scraper = cloudscraper.create_scraper(interpreter='nodejs')
scraper.recaptcha={  'provider': 'deathbycaptcha',  'username': 'xxx',  'password': 'yyy'}
print (scraper.get("http://arenavision.us").content)
RuntimeError: Cloudflare has a restriction on your IP (Code 1020 Detected), you are BLOCKED.

can you test out the dev branch, as i discovered if you have openssl < 1.1.1 (for tls 1.3) and you're not sending TLS 1.3 ciphers... cloudflare returns back a 1020 block...
or you can simply
>>> import ssl
>>> ssl.OPENSSL_VERSION

and check your SSL version for me

ssl.OPENSSL_VERSION
'OpenSSL 1.1.0k  28 May 2019'

I have tried the following:
1-Install the branch version
wget https://www.openssl.org/source/openssl-1.1.1a.tar.gz
tar -zxf openssl-1.1.1a.tar.gz && cd openssl-1.1.1a
./config
make
sudo mv /usr/bin/openssl ~/tmp
sudo make install
sudo ln -s /usr/local/bin/openssl /usr/bin/openssl
sudo ldconfig
export LD_LIBRARY_PATH=/usr/local/lib
Now the result is:
import ssl
ssl.OPENSSL_VERSION
'OpenSSL 1.1.1a  20 Nov 2018'
But same results, not workin with arenavision.us

https://github.com/openssl/openssl/issues/5845
This upgrade does not work either.

What is your python version?

FWIW python does not use the binary openssl, it uses the libraries that are compiled against it

My Python version is 2.7.13-2
Python3 is 3.5.3-1

I have externalized Cloudscraper into a Raspberry Pi 4, and no more executable from Google Cloud machine, so it is working now. I guess at the end is a Firewall rule excludig Google Cloud from arenavision.us
Thank you for everything!
PS: I will test later in a Google Machine with OpenSSL 1.1.1

It works in Google Cloud with latest version! OpenSSL 1.1.0

Sorry I only got home late last night, glad you're up and running, so we can improve this moving forward for other users, can you please give me the exact version that worked for you, as you said 1.1.1a wasnt working.

Python 2.7.13 (default, Sep 26 2018, 18:42:22)
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import ssl
ssl.OPENSSL_VERSION
'OpenSSL 1.1.0l  10 Sep 2019'

hrrrrm...
Nothing major happened in 1.1.0 apart from bug fixes for vulns...
https://www.openssl.org/news/openssl-1.1.0-notes.html
as you can see in the bottom of
https://www.openssl.org/news/openssl-1.1.1-notes.html
when things started really happening
So... unsure why yours suddenly started working..

I'll make new tests.
I have created a NEW Google Cloud machine in which I installed the new version of OpenSSL, so... it could be that the new machine would not be IP blocked. In that case it has nothing to do with the version installed, simply it's free of IP ban.

For some reason, it works now accessing to https instead of http, even with the older versions of OpenSSL

JFYI it works with older versions of OpenSSL but only if there is not recaptcha challenge. It seems that in that case it needs the new OpenSSL.
Anyway, I have upgraded all the system in my "production" environment and it works perfect. I only have the old version in some tests machines.

https://github.com/VeNoMouS/cloudscraper/blob/dev/cloudscraper/__init__.py#L590-L597

Thank you for the info. Depending on the access, if I am sure it works well in that page, I may need to deactivate that restriction sometimes.

I changed the dev branch to a print, the current production raises an exception

So that's why it is working in my older machines: I have installed the dev branch in them, with older OpenSSL too. In that machines, it works well when there is UAM but it fails when there is reCaptcha.
Nevertheless, it is not important, because one day I will update all the system in that machines too, with production Cloudscraper and newer OpenSSL. Thank you!


"Poiana Teiului", "Călugăreni", "Dreptu", "Galu", "Petru Vodă" and "Pârâul Fagului" are listed in the drop-down menu

Description:
"Poiana Teiului", "Călugăreni", "Dreptu", "Galu", "Petru Vodă" and "Pârâul Fagului" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Poiana Teiului" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Poiana Teiului, NEAMȚ (Poiana Teiului)" and "Comuna Poiana Teiului, NEAMȚ".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Type "Călugăreni" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Călugăreni, NEAMȚ (Poiana Teiului)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Type "Dreptu" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Dreptu, NEAMȚ (Poiana Teiului)".

Step 7
Type "Galu" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Galu, NEAMȚ (Poiana Teiului)".

Step 8
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 9
Type "Petru Vodă" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Petru Vodă, NEAMȚ (Poiana Teiului)".

Step 11
Type "Pârâul Fagului" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Pârâul Fagului, NEAMȚ (Poiana Teiului)".


[ADP-3407] Fix and quarantine flaky compiler error

This pull request quarantines a compiler error in Cardano.Read.Ledger.Block.Txs.
Error
The error message starts with
lib/Quarantine/Cardano/Txs.hs:50:24: error: [GHC-39999]
    • Could not deduce ‘EncCBOR
                          (ShelleyProtocolHeader
                             (Ouroboros.Consensus.Protocol.TPraos.TPraos
                                Ledger.StandardCrypto))’
        arising from a use of ‘getTxsFromBlockShelleyAndOn’
      from the context: IsEra era
        bound by the type signature for:
                   getEraTransactions :: forall era.
                                         IsEra era =>
                                         Block era -> [Tx era]
        at lib/Quarantine/Cardano/Txs.hs:47:1-68
      or from: era ~ Ledger.ShelleyEra Ledger.StandardCrypto
        bound by a pattern with constructor:
                   Shelley :: Era (Ledger.ShelleyEra Ledger.StandardCrypto),
                 in a case alternative
        at lib/Quarantine/Cardano/Txs.hs:50:5-11
    • In the first argument of ‘getTxs'’, namely
        ‘getTxsFromBlockShelleyAndOn’
      In the expression: getTxs' getTxsFromBlockShelleyAndOn
      In a case alternative:
          Shelley -> getTxs' getTxsFromBlockShelleyAndOn
   |
50 |     Shelley -> getTxs' getTxsFromBlockShelleyAndOn
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[…]

Solution
Importing orphan instances
import Ouroboros.Consensus.Shelley.Protocol.TPraos
    ()

solves the issue, but the curious thing is that compilation sometimes succeeds.
Issue Number
ADP-3407

The fix has been merged in #4729 . I'm closing the pull request, but I'd like to keep the branch as documentation for a later time.


Navs: nav expansion on GJ QSRE in projection doesn't introduce parameter

from c in context.Set<Customer>()
join o in context.Set<Order>()
on c.CustomerID equals o.CustomerID into g
where c.CustomerID == "ALFKI"
select new { c, G = g.Select(o => _Include(o, o.OrderDetails)).ToList() })

produces:
SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID], [o].[EmployeeID], [o].[OrderDate]
FROM [Customers] AS [c]
LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]
WHERE [c].[CustomerID] = N'ALFKI'
ORDER BY [c].[CustomerID]

SELECT [o0].[OrderID], [o0].[ProductID], [o0].[Discount], [o0].[Quantity], [o0].[UnitPrice]
FROM [Order Details] AS [o0]

SELECT [o0].[OrderID], [o0].[ProductID], [o0].[Discount], [o0].[Quantity], [o0].[UnitPrice]
FROM [Order Details] AS [o0]

from c in context.Set<Customer>()
join o in context.Set<Order>()
on c.CustomerID equals o.CustomerID into g
where c.CustomerID == "ALFKI"
select new { c, G = g.Select(o => _Include(o, o.Customer)).ToList() }

produces:
SELECT [c].[CustomerID], [c].[Address], [c].[City], [c].[CompanyName], [c].[ContactName], [c].[ContactTitle], [c].[Country], [c].[Fax], [c].[Phone], [c].[PostalCode], [c].[Region], [o].[OrderID], [o].[CustomerID],
[o].[EmployeeID], [o].[OrderDate]
FROM [Customers] AS [c]
LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID]
WHERE [c].[CustomerID] = N'ALFKI'
ORDER BY [c].[CustomerID]

SELECT [o.Customer].[CustomerID], [o.Customer].[Address], [o.Customer].[City], [o.Customer].[CompanyName], [o.Customer].[ContactName], [o.Customer].[ContactTitle], [o.Customer].[Country], [o.Customer].[Fax], [o.Customer].[Phone], [o.Customer].[PostalCode], [o.Customer].[Region]
FROM [Customers] AS [o.Customer]

Quick summary for @anpete of the discussion.
Binding to outer parameter is relational concept at present. That means we bind to outer parameter only if QSRE on which outer parameter is generated is fully translated.
E.g. q.property will be converted to outer parameter only if q is result of SelectExpression or part of it. (but outer parameter because we couldn't lift current QM to outer QM.) It is that way because the logic is we find SE for querysource and then bind the property by using projection.
For this case, the outer QM is not exactly SelectExpression since there is client side processing for group join. So when we try to find the SelectExpression for querysource, there is none and we cannot convert to outer parameter. Client eval follows.
What should happen is, if we cannot find SelectExpression then we should fall to Core Level outer parameter introduction which basically binds with result of client _GroupJoin. At present we already have way to translate this (which is called when we do client translation of predicate but it should be applied to left/right parts of predicate separately). The translation generated for client predicate's left side can be used for outer parameter. Introduction of this will ensure that whenever we are producing N+1 queries we always introduce outer parameter because we can generate outer parameter with client side methods too.

fixed in 32a196ac3b8f6394404f81b774fd82091d4708fa


Tweak launcher

Goal of the header in the proguarded JAR is to allow to launch it straightaway as an executable (on Unix systems). This should be used by the homebrew formula to come.

The echo module should be launched during the homebrew formula tests (to ensure the installed launcher works fine).


Use the first FZF found in the path

I think it makes more sense to respect the user's path rather than look at a
hardcoded path first. This causes issues, for example, on ubuntu if you have
fzf installed with apt and a newer version of fzf installed in your path (I
used the install script provided by fzf).
This changes the order so the first fzf found in the path is used for the
command.

I was thinking of the opposite case; where the official Ubuntu package provides an outdated version of fzf but you locally install the latest version under bin directory.
The installation instruction for Vim currently suggests calling fzf#install() function which will download the latest binary in bin directory. So I thought this case would be more common. But yeah, there's no guarantee that is the case. Hmm.

I think it's more conventional to take whatever is in the path first, since people do all sorts of different things with their setups. For example, I install lots of binaries locally to ~/.local/bin and I would prefer to use those over other system-provided binaries because they're newer.
My suggestion would be to make it the user's responsibility to add ~/.fzf/bin to their path, or maybe even install the local binary to a more conventional directory like ~/.local/bin.

A more solid solution would be to compare the --version of the binaries and choose the newer one. I'll see what I can do.

Yeah, I'd agree that makes the most sense


Open-Source-Challenge-Files

LGTM but @siraiwaqarali you need to sent two PR for each not sure if this single PR will be acceptable or not @owais4321 please review.


Add support for Holešky

You are missing the main Ethereum testnet for apps that interact with the consensus layer, and other long-running apps. It is in the upstream source here https://github.com/ethereum-lists/chains/blob/master/_data/chains/eip155-17000.json. Please add!

Released in v0.0.9


Delete .idea

Accidentally committed it ugh.

Added to .gitignore and wrote some stuff in terminal that deleted it!


UI中当前端点不展示内容

1.版本：apache-skywalking-apm-bin-es7 所有配置都是默认
2.java配置启动正常
结果：能采集到jvm的相关信息  但是请求的url的访问及追踪不展示

English only. Endpoint means you need to have traffic to access the system, such as spring controller.

I have visit the address: http://localhost:9080/test/type more than 100 times.

Could you have the trace? If not, this service may haven't suitable plugin for your /test/type service somehow.

I use default config. How could I config the trace??

this is my started log

Is there some logs when the plugin not suitable for my service??

Your config file is missing, SkyWalking agent wouldn't work. Please follow the set up document and don't move the agent.jar randomly

ERROR 2020-03-05 15:17:34:372 main SnifferConfigInitializer : Failed to read the config file, skywalking is going to run in default config.
It use defalut config.
if the config error.  Why it collect my jvm info???

I am not sure what kind of error of your config file. Once the agent get the service name and backend address it could run and collect JVM, which is easy. But the result can't be sure.

Thanks for your answer. I will give up.

@joey-happy You should put skywalking-agent.jar with the following directory.

did it matters ?   how to slove it

i got the same error, and this is my skwwalking-api.log
DEBUG 2021-09-27 18:00:31:830 grpc-nio-worker-ELG-1-3 org.apache.skywalking.apm.dependencies.io.grpc.netty.NettyClientHandler : [id: 0x0d7e30ca, L:/<IP_ADDRESS>:42226 - R:/<IP_ADDRESS>:11800] INBOUND HEADERS: streamId=69 headers=GrpcHttp2ResponseHeaders[:status: 200, content-type: application/grpc, grpc-encoding: identity, grpc-accept-encoding: gzip] padding=0 endStream=false  DEBUG 2021-09-27 18:00:31:830 grpc-nio-worker-ELG-1-3 org.apache.skywalking.apm.dependencies.io.grpc.netty.NettyClientHandler : [id: 0x0d7e30ca, L:/<IP_ADDRESS>:42226 - R:/<IP_ADDRESS>:11800] INBOUND DATA: streamId=69 padding=0 endStream=false length=5 bytes=0000000000  DEBUG 2021-09-27 18:00:31:830 grpc-nio-worker-ELG-1-3 org.apache.skywalking.apm.dependencies.io.grpc.netty.NettyClientHandler : [id: 0x0d7e30ca, L:/<IP_ADDRESS>:42226 - R:/<IP_ADDRESS>:11800] OUTBOUND PING: ack=false bytes=1234

i got the same error, and this is my skwwalking-api.log
DEBUG 2021-09-27 18:00:31:830 grpc-nio-worker-ELG-1-3 org.apache.skywalking.apm.dependencies.io.grpc.netty.NettyClientHandler : [id: 0x0d7e30ca, L:/<IP_ADDRESS>:42226 - R:/<IP_ADDRESS>:11800] INBOUND HEADERS: streamId=69 headers=GrpcHttp2ResponseHeaders[:status: 200, content-type: application/grpc, grpc-encoding: identity, grpc-accept-encoding: gzip] padding=0 endStream=false DEBUG 2021-09-27 18:00:31:830 grpc-nio-worker-ELG-1-3 org.apache.skywalking.apm.dependencies.io.grpc.netty.NettyClientHandler : [id: 0x0d7e30ca, L:/<IP_ADDRESS>:42226 - R:/<IP_ADDRESS>:11800] INBOUND DATA: streamId=69 padding=0 endStream=false length=5 bytes=0000000000 DEBUG 2021-09-27 18:00:31:830 grpc-nio-worker-ELG-1-3 org.apache.skywalking.apm.dependencies.io.grpc.netty.NettyClientHandler : [id: 0x0d7e30ca, L:/<IP_ADDRESS>:42226 - R:/<IP_ADDRESS>:11800] OUTBOUND PING: ack=false bytes=1234

i asked my sre to see if there is something wrong with my network


when I run   "zk  init" ，there's an error，

I use the main branch to deploy the project，when I   run   "zk  init",   how to fix it

Running server genesis setup
Updating git repository https://github.com/matter-labs/era-zk_evm.git
Updating git repository https://github.com/matter-labs/era-zkEVM-assembly.git
Updating git repository https://github.com/matter-labs/era-zkevm_test_harness.git
Updating git repository https://github.com/matter-labs/era-circuit_testing.git
Updating git repository https://github.com/matter-labs/era-zkevm_opcode_defs.git
Updating crates.io index
Updating git repository https://github.com/matter-labs/era-sync_vm.git
error: failed to select a version for regex.
... required by package zkevm-assembly v1.3.2 (https://github.com/matter-labs/era-zkEVM-assembly.git?branch=v1.3.2#8a339104)
... which satisfies git dependency zkevm-assembly of package vm v0.1.0 (/mnt/volume_nyc1_02/zksync-era/core/lib/vm)
... which satisfies path dependency vm (locked to 0.1.0) of package system-constants-generator v0.1.0 (/mnt/volume_nyc1_02/zksync-era/core/bin/system-constants-generator)
versions that meet the requirements ^1.8 are: 1.8.4, 1.8.3, 1.8.2, 1.8.1, 1.8.0

all possible versions conflict with previously selected packages.
previously selected package regex v1.7.3
... which satisfies dependency regex = "^1.5" (locked to 1.7.3) of package actix-router v0.5.1
... which satisfies dependency actix-router = "^0.5" (locked to 0.5.1) of package actix-web v4.3.1
... which satisfies dependency actix-web = "^4" (locked to 4.3.1) of package actix-cors v0.6.4
... which satisfies dependency actix-cors = "^0.6.0-beta.2" (locked to 0.6.4) of package zksync_core v1.0.0 (/mnt/volume_nyc1_02/zksync-era/core/bin/zksync_core)
... which satisfies path dependency zksync_core (locked to 1.0.0) of package zksync_external_node v1.0.0 (/mnt/volume_nyc1_02/zksync-era/core/bin/external_node)
failed to select a version for regex which could resolve this conflict

I ran cargo update --package regex but when run zk init again. I got new error? Did you see it?

I  also got this error when I run zk init
 Running `target/release/zksync_server --genesis`

2023-06-16T07:11:45.657797Z  INFO zksync_core::genesis: running regenesis
thread 'main' panicked at 'Can't read .zbin bytecode at "/mnt/volume_nyc1_02/zksync-era/etc/system-contracts/contracts/precompiles/artifacts/Keccak256.yul/Keccak256.yul.zbin": No such file or directory (os error 2)', core/lib/contracts/src/lib.rs:195:31
stack backtrace:
0:     0x56398d6f7cfa - std::backtrace_rs::backtrace::libunwind::trace::h79937bc171ada62c
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
1:     0x56398d6f7cfa - std::backtrace_rs::backtrace::trace_unsynchronized::h2292bca8571cb919
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2:     0x56398d6f7cfa - std::sys_common::backtrace::_print_fmt::h9c461f248e4ae90d
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/sys_common/backtrace.rs:65:5
3:     0x56398d6f7cfa - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he9fe6bf1a39182e1
at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/std/src/sys_common/backtrace.rs:44:22
4:     0x56398d71e30e - core::fmt::write::h032658c119c720d7

@ccx997t @Niet-Pham
submodules are not pointing to the latest version, I've faced too
you have to go to the contracts and etc/system-contracts folder and checkout with git for the latest version
here's the patch https://github.com/emilianobonassi/zksync-era/commit/38e0b49852ebf1dbd1697135ddd14db580514c66
you could face a few small issues then, if you want to run easily I did a fork with the patches needed
https://github.com/emilianobonassi/zksync-era

should work now from latest head of main repo. please reopen if it does not.


[FEATURE REQUEST] - user-friendly error codes

Add a user-friendly map for Firestore to show the values of the constants when an error occurs so we do not have to answer questions about 1s and 2s all the time. Still include the code, but also include the action that was taken.

Closed by #389.


The Meaning of JAI

Hi.
This is probably a very silly bug report but I thought you might find it interesting.
I am not Jonathan Blow so I cannot be 100% certain, BUT....
Judging by Jonathan Blows character, given that he is a designer of puzzle games(notice how secretive he is about the name, not answering any questions about the name, so the name is a puzzle and is a very cool one), and that he has said several times that the name of a language is not important and that one should not spend his time coming up with cool names, I guess that JAI means "Just An Identifier".
His thought process was probably something like... "what should I name this?  I just need an identifier, cause a name is just an identifier..... just an identifier.... ahaaaa......JAI."
(I mentioned this about one or two years ago in reddit as well)

The explanation you give is very credible, thanks. I added it to the text.


[COMMON/JAX] Support sliding window on THD format

Description
Support THD format with sliding window
Type of change

[ ] Documentation change (change only to the documentation, either a fix or a new content)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Infra/Build change
[ ] Code refractor

Changes

[COMMON] Relax the condition for THD + sliding window
[COMMON] Replace THD with is_ragged and BSHD||SBHD with !is_ragged in nvte_get_fused_attn_backend
[JAX] Add some util functions for AttnMaskType

Checklist:

[x] I have read and followed the contributing guidelines
[x] The functionality is complete
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

/te-ci jax L1

/te-ci


[Sketch 53] Document's colors format

Hello :wave:
Just wanted to give you a heads up that the format for document colors will change in Sketch 53. There will be a beta soon-ish.
Hopefully the feature the change was made for will make up for the inconvenience :) I'll add more details as soon as we stabilize the API for the beta.

There it is: https://www.sketchapp.com/beta/ :tada:
So now you have document.assets().colorAssets() which is an array of MSColorAsset which itself has a color and name properties.
You might also need the following methods (all on the document.assets() object):

Add a document color: - (void)addAsset:(nonnull id<MSAsset>)asset withName:(nullable NSString *)name;
you can only update the name, not the color: - (void)setName:(nullable NSString *)name forAssetAtIndex:(NSUInteger)index ofType:(MSAsset)type;
and remove an asset: - (void)removeAssetAtIndex:(NSUInteger)index ofType:(MSAsset)type;

The type can be either MSAssetColor or MSAssetGradient or MSAssetImage or MSAssetExportPreset (the last 2 don't have names)

Hey @mathieudutour, huge thx for letting us know about the changes, it was very useful. ❤I just pushed a new version with support for Sketch v53. Closing the issue.


luau-lsp: init at 1.28.1

Description of changes
luau-lsp is a language server for Luau

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

seems like the darwin builds failed. I'm going to add it to badPlatforms for now on and fix it later.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/changing-cmake-compiler-depending-on-the-platform/42044/1

Done!

After some debugging, it turns out I don't have to add the line mkdir build && cd build. That was also causing the could not load cache cmake error when dontUseCmakeConfigure is false

I will redo this in another PR soon


Pedersen Hash Improper Configuration

Summary of Bug
Pedersen Hash Improper Configuration
Version
This tutorial's configuration of pedersen hash window
(https://github.com/arkworks-rs/r1cs-tutorial/blob/main/merkle_tree_example/src/common.rs#L18):
pub type TwoToOneHash = PedersenCRHCompressor<EdwardsProjective, TECompressor, TwoToOneWindow>;
#[derive(Clone, PartialEq, Eq, Hash)]
pub struct TwoToOneWindow;

// `WINDOW_SIZE * NUM_WINDOWS` = 2 * 256 bits = enough for hashing two outputs.
impl pedersen::Window for TwoToOneWindow {
    const WINDOW_SIZE: usize = 128;
    const NUM_WINDOWS: usize = 4;
}

pub type LeafHash = PedersenCRHCompressor<EdwardsProjective, TECompressor, LeafWindow>;

#[derive(Clone, PartialEq, Eq, Hash)]
pub struct LeafWindow;

// `WINDOW_SIZE * NUM_WINDOWS` = 2 * 256 bits = enough for hashing two outputs.
impl pedersen::Window for LeafWindow {
    const WINDOW_SIZE: usize = 144;
    const NUM_WINDOWS: usize = 4;
}

Which configure the window_size to N, and the num_windows to 4. This is not consistent with the arkworks test:
(https://github.com/arkworks-rs/crypto-primitives/blob/main/src/merkle_tree/mod.rs#L463).
From my understanding, this will introduce a potential security vulnerability.
Happy to create a PR if this is confirmed by arkworks devs.

Steps to Reproduce

It should be okay, for the following reasons.

The tutorial uses PedersenCRH along with a compressor "TECompressor", so, the result of hashing is only the x coordinate of the Edwards curve for BLS12-381, which would be about 256 bits.

The arkworks test uses the pure PedersenCRH without a compressor, type H = pedersen::CRH<JubJub, Window4x256>;, therefore, the hashing result is a point in the affine format (x, y). Converting it to bits, it would be about 512 bits. That is why the window in that test is 2x larger.

In many situations, TECompressor can be used comfortably for twisted Edwards curves. The original PedersenCRH, however, is able to work with non-twisted-Edwards curves (though, in that case, it is not useful in the constraint world).

@weikengchen  Thanks for the explanation of how "TECompressor" work. Here what I mean is not the concrete setting of NUM_WINDOWS. From my understanding how does Pedersen work, you always want to set the WINDOWS_SIZE to 4 (or 3 in some situation, since that is the size of chunks the you would break the input into, as then set NUM_WINDOWS to a relative large number, that is the number of multiplication you do. And in above tutorial setting, it is the other way around, it sets NUM_WINDOWS to 4, and variable WINDOWS_SIZE. Seems to be a typo?

Got it. You are right.
Yes. The tutorial is using a large window. Likely it is still secure? Because log(field size) is still larger than the window size. What do you think?
The performance overhead would likely be similar, as the Pedersen CRH precomputes the individual generators (https://github.com/arkworks-rs/crypto-primitives/blob/main/src/crh/pedersen/mod.rs#L33), and the hash computation is merely a conditional point addition.

Nevertheless, I agree it is better for the tutorial to use a more standard window. I will make a PR.

Honestly, I haven't dived into the details of the security proofs of Pedersen. From the original discussion (https://github.com/zcash/zcash/issues/2234), it appears that chosen 4 bit window is more of a performance consideration.
Somehow I intuitively think relatively large number of multiplication could contribute to the CRH property (really not sure, need more research).

@weikengchen  Thanks!

By the way, the one I think Zcash eventually uses is a more advanced version here: https://github.com/arkworks-rs/crypto-primitives/tree/main/src/crh/bowe_hopwood
It is faster.


NTR: 18S rRNA aminocarboxypropyltransferase activity (& children)

This is nicely defined in this InterPro entry:
http://www.ebi.ac.uk/interpro/entry/InterPro/IPR022968/
This entry represents 18S rRNA aminocarboxypropyltransferases Tsr3 and its homologues. Tsr3 from fungi and animals are responsible for 18S rRNA hypermodification. It introduces the acp group to the hypermodified m1acp3psi nucleotide at position 1191 (yeast)/ 1248 (humans) of 18S rRNA. The crystal structure of archaeal Tsr3 homologues revealed the same fold as in SPOUT-class RNA-methyltransferases but a distinct SAM binding mode. This unique SAM binding mode explains why Tsr3 transfers the acp and not the methyl group of SAM to its substrate. Structurally, Tsr3 therefore represents a novel class of acp transferase enzymes [PMID: 27084949 ].
Yeast TSR3 is annotated with RHEA:63300
https://www.uniprot.org/uniprot/Q12094
https://www.rhea-db.org/rhea/63300
Human TSR3 is annotated with RHEA:63292
https://www.uniprot.org/uniprot/Q9UJK0
https://www.rhea-db.org/rhea/63292
I guess we'd need separate GO terms for each of those RHEAs, and then a generic parent term along the lines of:
N1-methylpseudouridine in 18S rRNA + S-adenosyl-L-methionine = H+ + N1-methyl-N3-[(3S)-3-amino-3-carboxypropyl]pseudouridine in 18S rRNA + S-methyl-5'-thioadenosine
Looking at an apparently similar term (GO:0016432 tRNA-uridine aminocarboxypropyltransferase activity), I guess the correct parents might be:

GO:0140102 catalytic activity, acting on a rRNA
GO:0016765 transferase activity, transferring alkyl or aryl (other than methyl) groups

Hi @hdrabkin @pgaudet
Can we proceed with adding this please?
Steven.

@sarach06 @EBI-Hsinyu Once made, the new term(s) can be added to 16S/18S rRNA aminocarboxypropyltransferase Tsr3 (IPR022968)

I'm not inclined to make a separate term for human and yeast for several reasons.  The CHEBI terms are the same for both
CHEBI:74890 + CHEBI:59789 = CHEBI:15378 + CHEBI:146234 + CHEBI:17509
We cannot make a logical def to distinguish between these. The positional info in one is text based. The species info is text based in another.
The generic term can be equated to the rheas.

The two RHEAs may be added as narrow xrefs

+id: GO:0106388
+name: 18S rRNA aminocarboxypropyltransferase activity
RHEA:63296


Roll Flutter Engine from faf1121d010c to d17315748e7f (19 revisions)

https://github.com/flutter/engine/compare/faf1121d010c...d17315748e7f
2023-07-27<EMAIL_ADDRESS>Roll ANGLE from af5bf5b8245e to 8aa3ca9d177c (1 revision) (flutter/engine#44065)
2023-07-27<EMAIL_ADDRESS>Roll Dart SDK from b6747a06be06 to dcbaffbd09dd (1 revision) (flutter/engine#44064)
2023-07-27<EMAIL_ADDRESS>Roll Fuchsia Mac SDK from pgJmG2-qZVMzlMuq8... to EpwAiaHKf6M6Yejtk... (flutter/engine#44063)
2023-07-27<EMAIL_ADDRESS>Roll Skia from 26ed0d2ab04c to 6571d88db5b3 (1 revision) (flutter/engine#44062)
2023-07-27<EMAIL_ADDRESS>Roll Skia from e85c64d63787 to 26ed0d2ab04c (3 revisions) (flutter/engine#44061)
2023-07-27<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from DOxjABQZ-mA_9Lllw... to FwIA6BaHtZg2mRS-0... (flutter/engine#44060)
2023-07-27<EMAIL_ADDRESS>Ignore the NOTICE.fuchsia file in the new license script (flutter/engine#44021)
2023-07-27<EMAIL_ADDRESS>Embed a license readme in every zip archive (flutter/engine#43974)
2023-07-27<EMAIL_ADDRESS>Roll Skia from 750d7f8ed4d7 to e85c64d63787 (4 revisions) (flutter/engine#44056)
2023-07-27<EMAIL_ADDRESS>Roll Dart SDK from 8961d36eaa0c to b6747a06be06 (1 revision) (flutter/engine#44053)
2023-07-26<EMAIL_ADDRESS>Roll ANGLE from 451b3c31a1fa to af5bf5b8245e (1 revision) (flutter/engine#44050)
2023-07-26<EMAIL_ADDRESS>Roll Skia from fdf224be4f98 to 750d7f8ed4d7 (3 revisions) (flutter/engine#44049)
2023-07-26<EMAIL_ADDRESS>Roll Dart SDK from b5710782b91c to 8961d36eaa0c (1 revision) (flutter/engine#44048)
2023-07-26<EMAIL_ADDRESS>Roll Skia from 990aa6016ff6 to fdf224be4f98 (3 revisions) (flutter/engine#44046)
2023-07-26<EMAIL_ADDRESS>Roll Fuchsia Mac SDK from d6O9t74z-k2svOmvz... to pgJmG2-qZVMzlMuq8... (flutter/engine#44045)
2023-07-26<EMAIL_ADDRESS>Roll ANGLE from 58cb5c8396a3 to 451b3c31a1fa (1 revision) (flutter/engine#44044)
2023-07-26<EMAIL_ADDRESS>Roll Skia from d76a9c3bb3fd to 990aa6016ff6 (4 revisions) (flutter/engine#44043)
2023-07-26<EMAIL_ADDRESS>Roll Skia from ca48e45a0262 to d76a9c3bb3fd (1 revision) (flutter/engine#44042)
2023-07-26<EMAIL_ADDRESS>Roll Dart SDK from b1e82e2e55b2 to b5710782b91c (4 revisions) (flutter/engine#44040)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from DOxjABQZ-mA_ to FwIA6BaHtZg2
fuchsia/sdk/core/mac-amd64 from d6O9t74z-k2s to EpwAiaHKf6M6
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Add property for disable url changing

Ionic version:  (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
I'm submitting a ...  (check one with "x")
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
Every change in page changes url, no matter what, only option to change it is to pass updateUrl: false to navigation options
Expected behavior:
Create option in IonicModule config (eg. urlDisabled: true) to stop url changes in whole app
Other information:
I have app, which i want to publish to mobile devices and also to web, but it will be a game and on the web i don´t want to show url changes, this would really help me

#https://github.com/ionic-team/ionic/pull/12440

Hello everyone! Thanks for the feature request. I'm going to move this issue over to our internal list of feature requests for evaluation. We are continually prioritizing all requests that we receive with outstanding issues. We are extremely grateful for your feedback, but it may not always be our next priority. I'll copy the issue back to this repository when we have begun implementation. Thanks!

This issue was moved to ionic-team/ionic-feature-requests#279

@jgw96 above link is broken


Missing German translations

Especially for german users there is no text snippet file (de_DE.json under https://github.com/runelaenen/shopware6-advanced-banners/tree/master/src/Resources/app/administration/src/module/rl-advanced-banners/snippet ), so when you switch the language to German you see the technical snippet namens.

I don't speak German so someone else will have to do these translations. For first timers: I've written a small get-started guide in a comment on the same issue for another plugin: https://github.com/runelaenen/shopware6-two-factor-auth/issues/2

I don't speak German so someone else will have to do these translations. For first timers: I've written a small get-started guide in a comment on the same issue for another plugin: runelaenen/shopware6-two-factor-auth#2

No problem, I have done a pull request: https://github.com/runelaenen/shopware6-advanced-banners/pull/16/files

I don't speak German so someone else will have to do these translations. For first timers: I've written a small get-started guide in a comment on the same issue for another plugin: runelaenen/shopware6-two-factor-auth#2

No problem, I have done a pull request: https://github.com/runelaenen/shopware6-advanced-banners/pull/16/files

Awesome! Thank you very much!


Tests: Avoid average_size argument in hypothesis

The average_size argument was removed in Hypothesis 4.0.
See: https://hypothesis.readthedocs.io/en/latest/changes.html#v4-0-0

The Travis CI failure seems to be 3.3 only (3.3 is no longer available on Travis).

I accepted another PR for this correction, but I'm putting you into the credits list anyway.


async actions don't always return Promise

Hello,
I'm using this module for testing my React Native app and I have a little problem with one async actions which not work. The other works properly but not the last one :
Here is the test code :
/* eslint-env jest */

import createStore from 'redux-mock-store'
import thunk from 'redux-thunk'

const mockStore = createStore([thunk])

test('action should logout the user', () => {
  const mockedStore = mockStore({})

  mockedStore
    .dispatch(logout()) // return undefined
    .then(() => {
      expect(mockedStore.getActions()).toEqual([
        { type: types.RESET_ITEMS, items: ['credentials'] },
        { type: types.REMOVE }
      ])
    })
})

And the async action :
export const logout = () => (dispatch) => {
  dispatch(resetItems(['credentials']))
  dispatch({ type: types.REMOVE })
}

Do you have an idea about this ? If I put a setTimeout around  the getActions function, the test pass properly.
Thanks for your help !

You need to return a promise in your action

@arnaudbenard  Hmm, I think I'v tried, I will try ASAP. Thanks for you answer :)

@DCKT you can actually define your logout action as follows:
export const logout = () => (dispatch) => {
  dispatch(resetItems(['credentials']))
  return dispatch({ type: types.REMOVE });
}

or even:
export const logout = () => (dispatch) =>
  dispatch(resetItems(['credentials'])).then(() => dispatch({ type: types.REMOVE }));

@DCKT Any luck with this? Having the same issue.

Hello @arnaudbenard
Sorry for the late reply, I've tried all the suggested answer but I got the same, it looks like dispatch is not a Promise (but it is).

@DCKT
As far as I know, dispatch itself doesn't return a Promise by default when using redux-thunk. It will only return what you explicitly return in the function created by your action creator. See this answer for more info
In your original implementation:
// action creator returns undefined
export const logout = () => (dispatch) => {
  dispatch(resetItems(['credentials']))
  dispatch({ type: types.REMOVE })
}

Your test is trying to run undefined.then() which is causing your error.
Similarly for the implementation that returns dispatch:
// incorrect: returns { type: types.REMOVE }
export const logout = () => (dispatch) => {
  dispatch(resetItems(['credentials']))
  return dispatch({ type: types.REMOVE });
}

Your test would be trying to run { type: types.REMOVE }.then() which would cause an error.
You need to explicitly return a promise.
// returns Promise.resolve(), which is thenable
export const logout = () => (dispatch) => {
  dispatch(resetItems(['credentials']));
  return Promise.resolve(removeItem());
};

In this instance, your test would be trying to read Promise.resolve().then() which would work.
On a side note, you could have also rewritten your test to not expect a promise:
// test file
test('action should logout the user', () => {
  const mockedStore = mockStore({})

  mockedStore.dispatch(logout());
  expect(mockedStore.getActions()).toEqual([
    { type: types.RESET_ITEMS, items: ['credentials'] },
    { type: types.REMOVE }
  ]);
})

I think this would be the correct fix to your problem. You shouldn't have to fit your source code into your tests.


The Routing Solver "returned a result with an error set" when changing first solution algorithm

Hello. I use Python 3.7 and the or-tools I have installed is v. 7.5.7466
I am executing the Routing Solver on my data and when the First Solution algorithm is set to PATH_CHEAPEST_ARC it works like a charm. However, I am not very satisfied with the result and I tried to experiment a bit with the metaheuristics (it does not perform any better) and concluded that the problem might be with the algorithm that has been selected to find the first solution.
I tried using a number of different algorithms, for example:

GLOBAL_CHEAPEST_ARC
LOCAL_CHEAPEST_ARC

but it always results in the following exception:
Traceback (most recent call last):
  File "/home/ross/code/python/cvrptw/cvrptw/cvrptw_model.py", line 297, in time_callback
    from_node = self.manager.IndexToNode(from_index)
  File "/home/ross/.local/lib/python3.7/site-packages/ortools/constraint_solver/pywrapcp.py", line 3558, in IndexToNode
    return _pywrapcp.RoutingIndexManager_IndexToNode(self, index)
OverflowError: in method 'RoutingIndexManager_IndexToNode', argument 2 of type 'int64'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ross/code/python/cvrptw/cvrptw/cvrptw.py", line 444, in <module>
    manager, routing, assignment = vrp.solve()
  File "/home/ross/code/python/cvrptw/cvrptw/cvrptw_model.py", line 259, in solve
    self.search_parameters)
  File "/home/ross/.local/lib/python3.7/site-packages/ortools/constraint_solver/pywrapcp.py", line 3928, in SolveWithParameters
    return _pywrapcp.RoutingModel_SolveWithParameters(self, search_parameters, solutions)
SystemError: <built-in function RoutingModel_SolveWithParameters> returned a result with an error set

I do not think there is an error with my data as it works for a different algorithm, but I am not very sure what should I check or test. Any advise is welcome and please let me know whether you need more information. Thank you in advance.

Can you double check that your time dimension callback is using integer type ?

Thank you for the response.
My function's signature is def time_callback(self, from_index, to_index): and I have checked that both from_index and to_index are of int type (hopefully, I have understood correctly your answer). However, my return statement will return a float but it does not even reach that point. It actually raises an exception when this line is run:
from_node = self.manager.IndexToNode(from_index)
which is the first line of the function.

Are you on linux ?
v7.5 code
On master we have:
first looking at pywrapcp.py:3558
class RoutingIndexManager(object):
...
def IndexToNode(self, index: "int64") -> "operations_research::RoutingIndexManager::NodeIndex":
  return _pywrapcp.RoutingIndexManager_IndexToNode(self, index)

then looking at the wrapper code
SWIGINTERN PyObject *_wrap_RoutingIndexManager_IndexToNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
...
  ecode2 = SWIG_AsVal_long_SS_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingIndexManager_IndexToNode" "', argument " "2"" of type '" "int64""'");
  }
  arg2 = static_cast< int64 >(val2);
...
}

...

#ifdef SWIG_LONG_LONG_AVAILABLE
SWIGINTERN int
SWIG_AsVal_long_SS_long (PyObject *obj, long long *val)
{
  int res = SWIG_TypeError;
  if (PyLong_Check(obj)) {
    long long v = PyLong_AsLongLong(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = v;
      return SWIG_OK;
    } else {
      PyErr_Clear();
      res = SWIG_OverflowError;
    }
  } else {
    long v;
    res = SWIG_AsVal_long (obj,&v);
    if (SWIG_IsOK(res)) {
      if (val) *val = v;
      return res;
    }
  }
#ifdef SWIG_PYTHON_CAST_MODE
  {
    const double mant_max = 1LL << DBL_MANT_DIG;
    const double mant_min = -mant_max;
    double d;
    res = SWIG_AsVal_double (obj,&d);
    if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, mant_min, mant_max))
      return SWIG_OverflowError;
    if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) {
      if (val) *val = (long long)(d);
      return SWIG_AddCast(res);
    }
    res = SWIG_TypeError;
  }
#endif
  return res;
}
#endif

On Master
Since now we are using -DSWIGWORDSIZE64
we have in the wrapper
SWIGINTERN PyObject *_wrap_RoutingIndexManager_IndexToNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
...
  ecode2 = SWIG_AsVal_long(obj1, &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RoutingIndexManager_IndexToNode" "', argument " "2"" of type '" "int64""'");
  }
  arg2 = static_cast< int64 >(val2);
...
}
...
SWIGINTERN int
SWIG_AsVal_long (PyObject *obj, long* val)
{
#if PY_VERSION_HEX < 0x03000000
  if (PyInt_Check(obj)) {
    if (val) *val = PyInt_AsLong(obj);
    return SWIG_OK;
  } else
#endif
  if (PyLong_Check(obj)) {
    long v = PyLong_AsLong(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = v;
      return SWIG_OK;
    } else {
      PyErr_Clear();
      return SWIG_OverflowError;
    }
  }
#ifdef SWIG_PYTHON_CAST_MODE
  {
    int dispatch = 0;
    long v = PyInt_AsLong(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = v;
      return SWIG_AddCast(SWIG_OK);
    } else {
      PyErr_Clear();
    }
    if (!dispatch) {
      double d;
      int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
	if (val) *val = (long)(d);
	return res;
      }
    }
  }
#endif
  return SWIG_TypeError;
}

Yes, this problem is found on Linux. So, is it an or-tools bug?

I might be an issue with or-tools, do you have a minimal sample that you can share with us  to reproduce it ?
Thx

I am sorry but my data is pretty complex, I cannot give you a minimal sample. I could share a sample of my data containing my distances matrix, time windows and time matrix but as aforementioned they will be certainly not minimal.

Hello again. I am attaching you a file containing my data and hopefully it could be of some help.
dummy.txt

Maybe I may found your issue (need to double check), it seems you are using a python method i.e. having a self parameter while we expect a "free" function i.e. the prototype should be def time_callback(from_index, to_index):
My guess, is this self must be a memory address and it is taken by the swig wrapper as the argument value for from_node thus the overflow.
@regressaur Can you try to use a "free function" instead of a class method ?
On my way to verify this assertion...

I tried using a "free function" and got the following error (please notice that with PATH_CHEAPEST_ARC it works once again fine):
Traceback (most recent call last):
  File "/home/ross/code/python/cvrptw/cvrptw/cvrptw_model.py", line 297, in distance_callback
    from_node = manager.IndexToNode(from_index)
  File "/home/ross/.local/lib/python3.7/site-packages/ortools/constraint_solver/pywrapcp.py", line 3558, in IndexToNode
    return _pywrapcp.RoutingIndexManager_IndexToNode(self, index)
OverflowError: in method 'RoutingIndexManager_IndexToNode', argument 2 of type 'int64'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ross/code/python/cvrptw/cvrptw/cvrptw.py", line 444, in <module>
    manager, routing, assignment = vrp.solve()
  File "/home/ross/code/python/cvrptw/cvrptw/cvrptw_model.py", line 267, in solve
    self.search_parameters)
  File "/home/ross/.local/lib/python3.7/site-packages/ortools/constraint_solver/pywrapcp.py", line 3928, in SolveWithParameters
    return _pywrapcp.RoutingModel_SolveWithParameters(self, search_parameters, solutions)
SystemError: <built-in function RoutingModel_SolveWithParameters> returned a result with an error set

This is how I register my time_callback (inside my class):
self.time_callback_index = self.routing.RegisterTransitCallback(time_callback)

self.routing.AddDimension(
            self.time_callback_index,
            30,  # allow waiting time
            data['time_horizon'],  # maximum time per vehicle
            False,  # Don't force start cumul to zero.
            'Time')

self.time_dimension = self.routing.GetDimensionOrDie('Time')

The time_callback is now located outside my class and it uses the global variables that have been set from inside the class constructor and it looks like this:
def time_callback(from_index, to_index):
    from_node = manager.IndexToNode(from_index)
    to_node = manager.IndexToNode(to_index)
    return data['service_time_matrix'][from_node] + data['time_matrix'][from_node][to_node]

Thank you for your time, @Mizux !

Hi,
Would it be possible to also store the time_callback ?
note: internally the callback is passed to the C++ underlying library and may be reclaimed by the python Garbage Collector...
I mean:
self.time_callback = time_callback
self.time_callback_index = self.routing.RegisterTransitCallback(self.time_callback)

Hi,
I tried this but I have the same exception as stated above.

Can you give me the output of:
python3 --version
python3 -c "import platform; print(platform.architecture()[0])"

(supposing your python interpreter is python3)

I am using Python 3.7.3 (64bit).

Hi, I was having a similar problem (getting the exact same error in RoutingIndexManager_IndexToNode), and was able to resolve it, maybe my experience will help you...
I found that the problem was that my callback was referencing a variable that didn't exist in the scope (it was an attribute of my wrapper class). Relevant snippet here:
class VRP:
    ...
    def _add_dist_time_callbacks(self):
        # Register distance/time matrix callbacks with solver
        def time_callback(from_index, to_index):
            from_node = self.manager.IndexToNode(from_index)
            to_node = self.manager.IndexToNode(to_index)
            return self.data["time_matrix"][from_node, to_node]

        def dist_callback(from_index, to_index):
            from_node = self.manager.IndexToNode(from_index)
            to_node = self.manager.IndexToNode(to_index)
            return self.data["distance_matrix"][from_node, to_node]

        self.DIST_CALLBACK_IDX = self.routing.RegisterTransitCallback(dist_callback)
        self.TIME_CALLBACK_IDX = self.routing.RegisterTransitCallback(time_callback)

where I made the replacement data -> self.data. I don't know why the error was pointing to the IndexToNode method, since clearly it was a problem with an undefined variable. My guess is that any error within the callback is handled similarly.
Some other things that may be contributing:

I looked at your dummy.txt data, it looks like your distance/time matrices are floating point; I believe the solver only accepts integers (though I think it may silently convert them?)
In your earlier comment, it looks like you're returning return data['service_time_matrix'][from_node] + data['time_matrix'][from_node][to_node]; is it possible that you're incorrectly indexing data['service_time_matrix'][from_node]? (If it's a matrix, it should have both from/to indexes.)

I'm also on linux, using 64bit Python 3.7.4. I can verify it works with AUTOMATIC, (PATH|LOCAL|GLOBAL)_CHEAPEST_ARC (I wasn't able to find feasible solutions for all of them within 30 seconds, but they don't error out like I was getting before).

Hi @ecotner , thank you for the time you took to respond to this. I removed self.data and used data instead as @Mizux proposed on a response above but neither of them works for me.
Now, for the notes:

I tried converting all of my floats to int32 but I did not achieve something different result-wise.
I double checked my matrices and what their shapes are and they are written as expected.

Could you please share with me how you call the def _add_dist_time_callbacks(self) function? I believe that this is where I am doing a mistake and it seems that both yours and @Mizux answers converge to that. Thank you in advance!

@regressaur there isn't really anything special about the way that I call the _add_dist_time_callbacks function. It's just in my __init__:
class VRP:
    def __init__(initial_data, ...):
        ...
        self._add_dist_time_callbacks()
        ...

@regressaur
The whole source code is too long to post, but this is how I'm initializing my distance/time matrices, their associated callbacks, and time window constraints. Hope it is useful to you.
class VRP:
    def __init__(
        self,
        stop_df: pd.DataFrame,
        vehicle_df: pd.DataFrame,
        org_df: pd.DataFrame,
        precision: int = 2000,
    ):
        """Creates an object for solving the vehicle routing problem.

        Args:
            stop_df (DataFrame): DataFrame containing information about the delivery
                stops and their potential constraints. Has columns [location_cd,
                latitude, longitude, volume_ft3, weight_lbs, time_min, time_max]
            vehicle_df (DataFrame): DataFrame containing info about the delivery
                vehicles and their potential constraints. Has columns [equipment_id,
                dist_max_mi, time_max_hr, vol_max_ft3]
        """
        self.stop_df = stop_df.copy()
        self.vehicle_df = vehicle_df.copy()
        self.org_df = org_df.copy()
        # Sanity/validation checks
        self.stop_df["is_dc"] = self.stop_df["location_cd"] == "DEPOT"
        assert self.stop_df["is_dc"].sum() == 1  # Make sure exactly one DC
        self.stop_df.sort_values("is_dc", ascending=False, inplace=True)
        assert (
            self.stop_df[["latitude", "longitude"]].isna().sum().sum() == 0
        )  # verify coords
        # Generate dist/time data
        self.data = dict(precision=precision)
        self._get_dist_time_matrix(self.stop_df, precision)
        # Setup solver
        self.manager = pywrapcp.RoutingIndexManager(
            len(self.stop_df), len(self.vehicle_df), self.data["depot"],
        )
        self.routing = pywrapcp.RoutingModel(self.manager)
        # Add callbacks
        self._add_dist_time_callbacks()
        # Add constraints
        self._add_volume_constraints(self.stop_df, self.vehicle_df, precision)
        self._add_time_window_constraints(self.stop_df)
        # Specify objective
        self._minimize_distance()

    def _get_dist_time_matrix(self, stop_df: pd.DataFrame, precision: int):
        # Get the distance/time matrices from OSRM
        coords = stop_df[["latitude", "longitude"]].values
        conn = OSRM()
        D, T = conn.matrix(coords, dist_or_time="both")
        # Format for the solver
        data = self.data
        data["dist_scale_factor"] = precision / D.max()
        data["distance_matrix"] = (data["dist_scale_factor"] * D).round().astype(int)
        data["time_scale_factor"] = precision / T.max()
        data["time_matrix"] = (data["time_scale_factor"] * T).round().astype(int)
        data["depot"] = 0

    def _add_dist_time_callbacks(self):
        # Register distance/time matrix callbacks with solver
        def time_callback(from_index, to_index):
            from_node = self.manager.IndexToNode(from_index)
            to_node = self.manager.IndexToNode(to_index)
            return self.data["time_matrix"][from_node, to_node]

        def dist_callback(from_index, to_index):
            from_node = self.manager.IndexToNode(from_index)
            to_node = self.manager.IndexToNode(to_index)
            return self.data["distance_matrix"][from_node, to_node]

        self.DIST_CALLBACK_IDX = self.routing.RegisterTransitCallback(dist_callback)
        self.TIME_CALLBACK_IDX = self.routing.RegisterTransitCallback(time_callback)

    ...

    def _add_time_window_constraints(self, stop_df):
        data = self.data
        time_factor = data["time_scale_factor"]
        data["time_windows"] = (
            (time_factor * stop_df[["time_min", "time_max"]].values).round().astype(int)
        )

        self.routing.AddDimension(
            self.TIME_CALLBACK_IDX,
            int(time_factor * 100),  # allow waiting time at locations (slack)
            int(time_factor * 100),  # Maximum vehicle time?
            False,  # Don't force start cumul to zero
            "Time",  # Name of the dimension
        )
        time_dimension = self.routing.GetDimensionOrDie("Time")
        # Add time window constraints for every location except depot
        for loc_idx, time_window in enumerate(data["time_windows"]):
            if loc_idx == 0:
                continue
            index = self.manager.NodeToIndex(loc_idx)
            time_dimension.CumulVar(index).SetRange(
                int(time_window[0]), int(time_window[1])
            )
        # Add time window constraints for each vehicle start node.
        for vehicle_id in range(data["num_vehicles"]):
            index = self.routing.Start(vehicle_id)
            time_dimension.CumulVar(index).SetRange(
                int(data["time_windows"][0, 0]), int(data["time_windows"][0, 1]),
            )
        for i in range(data["num_vehicles"]):
            self.routing.AddVariableMinimizedByFinalizer(
                time_dimension.CumulVar(self.routing.Start(i))
            )
            self.routing.AddVariableMinimizedByFinalizer(
                time_dimension.CumulVar(self.routing.End(i))
            )

    ...

Thank you very much for your response once again, @ecotner . I changed my code to reflect the "trick" of nested functions as you showed above in order to remove the self argument from the callbacks but to no avail. I have also tried changing all of my float numbers to integers as you recommended in your previous message. The exception raised is always the same and I cannot figure out why it is raised in the first place. The traceback looks like the following:
Traceback (most recent call last):
  File "/home/ross/code/python/cvrptw/cvrptw/cvrptw_model.py", line 261, in time_callback
    from_node =self.manager.IndexToNode(from_index)
  File "/home/ross/.local/lib/python3.7/site-packages/ortools/constraint_solver/pywrapcp.py", line 3558, in IndexToNode
    return _pywrapcp.RoutingIndexManager_IndexToNode(self, index)
OverflowError: in method 'RoutingIndexManager_IndexToNode', argument 2 of type 'int64'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ross/code/python/cvrptw/cvrptw/cvrptw.py", line 444, in <module>
    manager, routing, assignment = vrp.solve()
  File "/home/ross/code/python/cvrptw/cvrptw/cvrptw_model.py", line 219, in solve
    self.search_parameters)
  File "/home/ross/.local/lib/python3.7/site-packages/ortools/constraint_solver/pywrapcp.py", line 3928, in SolveWithParameters
    return _pywrapcp.RoutingModel_SolveWithParameters(self, search_parameters, solutions)
SystemError: <built-in function RoutingModel_SolveWithParameters> returned a result with an error set

I had the exact same exception, and after reading @ecotner's comment I figured it out. I had code in my callback function that threw an exception (undefined variable).
For some reason the stack traces point to the right callback, but to the IndexToNode function rather than the crashing code.

Hi @orhanhenrik thank you for your response. I have left the project now, but a colleague of mine, found out that there was a problem with some of our constraints. I cannot elaborate more on this as I do not know any details but the conclusion is that or-tools work as they should (at least for our case).
Thank you all!

Wanted to chime in here for anyone running or-tools library from inside of a job queue like https://github.com/rq/rq.  See https://github.com/google/or-tools/issues/1945#issuecomment-859731315

I solved this issue by changing the data type of the distance matrix from float to int.


allow $DOCKER_HOST to be passed to docker --host

Hey, can you resubmit this to zalando/patroni?  That's their dockerfile, this is just my fork of the main patroni project, which is zalando/patroni.

Yeah will do. Sorry I found this repo after seeing one of your talks on YouTube (10 mins to replication).
Ultimately I started my own dockerfile & bootstrapping scripts for our own use case: but I will repost the PR upstream.
Thanks
On Fri, Oct 23, 2015 at 3:36 PM, Josh Berkus<EMAIL_ADDRESS>wrote:

Hey, can you resubmit this to zalando/patroni?  That's their dockerfile, this is just my fork of the main patroni project, which is zalando/patroni.
Reply to this email directly or view it on GitHub:
https://github.com/pgexperts/patroni/pull/1#issuecomment-150708664

Can you share your docker file somewhere?  I'm about to put up my docker-compose setup as a separate project.

Yep, currently it is at https://github.com/cloudfoundry-community/patroni-boshrelease/tree/master/images and the readme documents (hopefully) a walk thru tutorial. It's a WIP as I just started playing with wal-e today.
On Fri, Oct 23, 2015 at 6:33 PM, Josh Berkus<EMAIL_ADDRESS>wrote:

Can you share your docker file somewhere?  I'm about to put up my docker-compose setup as a separate project.
Reply to this email directly or view it on GitHub:
https://github.com/pgexperts/patroni/pull/1#issuecomment-150733187

I borrowed ideas from https://github.com/zalando/spilo/tree/master/postgres-appliance too
On Fri, Oct 23, 2015 at 6:33 PM, Josh Berkus<EMAIL_ADDRESS>wrote:

Can you share your docker file somewhere?  I'm about to put up my docker-compose setup as a separate project.
Reply to this email directly or view it on GitHub:
https://github.com/pgexperts/patroni/pull/1#issuecomment-150733187


Examples of using the exports for embedding

I'd like to be able to use Ruby as an embedded language, but I don't understand what all of the exports do. I'm assuming that init starts the interpreter, and eval-string-protect runs arbitrary code. I'd also like to be able to invoke an an arbitrary function from a library. Are there any examples or documentation on the exports?

Do you mean exporting functionalities from Ruby to JavaScript? Or vice vasa?

We want to embed Ruby in a C++ program, so initially we need to execute Ruby code and call Ruby methods from C++.


composer.json lastguest/murmurhash update to support php8

Composer.json require lastguest/murmurhash v2.0.0 but only 2.0.1 (and latest) are php 8 compatible.
Can you update composer.json lastguest/murmurhash to require 2.* ?
best,

How can I use this package in PHP 8

@pcmehrdad https://github.com/Bit-Wasp/bitcoin-php/issues/875

i have same issue :(

i have same issue :(


Deploy your service to your Kubernetes cluster

As a [role]
I need [function]
So that [benefit]
Details and Assumptions

[document what you know]

Acceptance Criteria
Given [some context]
When [action taken]
Then [outcome observed]

Closed without story points - duplicate


Create a navbar-14

Issue Link: https://github.com/Clueless-Community/web-ui-kit/issues/600
Tailwind Playground Image:

@PrakashGatiyala good job
Congrats 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow this steps.

Star this repository. ⭐
SignIn / SignUp in [ClueLess Website](https://www.clueless.tech/) .
Go to profile section from the top right hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.

That’s it. Follow the leaderboard !
And don’t forget to share your achievement with your friends.


Tagged releases: docker exporter does not currently support exporting manifest lists

As it stands, actions runs for tagged releases fails:

Buildx version
  /usr/bin/docker buildx version
  github.com/docker/buildx 0.9.1+azure-1 ed00243a0ce2a0aee75311b06e32d33b44729689
/usr/bin/docker buildx build --cache-from type=registry,ref=solidnerd/bookstack-dev:master --file ./Dockerfile --iidfile /tmp/docker-build-push-oLAtK3/iidfile --label org.opencontainers.image.title=docker-bookstack --label org.opencontainers.image.description=BookStack in a container --label org.opencontainers.image.url=https://github.com/solidnerd/docker-bookstack --label org.opencontainers.image.source=https://github.com/solidnerd/docker-bookstack --label org.opencontainers.image.version=sha-aec8ef7 --label org.opencontainers.image.created=2022-09-12T09:49:29.214Z --label org.opencontainers.image.revision=aec8ef7de11102596a9a6844d9adb42e1721591a --label org.opencontainers.image.licenses=MIT --output type=docker,dest=/tmp/image-bookstack.tar --platform linux/amd64,linux/arm64 --tag solidnerd/bookstack-dev:sha-aec8ef7 --metadata-file /tmp/docker-build-push-oLAtK3/metadata-file .
ERROR: docker exporter does not currently support exporting manifest lists
Error: buildx failed with: ERROR: docker exporter does not currently support exporting manifest lists

This means no image bumps will make it to to registry, so images are falling behind.

@rounakdatta This appears to be caused by the changes introduced in https://github.com/solidnerd/docker-bookstack/pull/321, so I'm going to revert those to allow releases to continue. If you'd like to tweak how your PR works, I'd be happy to re-review at a later date.

Seems to be working just fine now, so tentatively closing this.


[BUG] - Pagination Data Not Updated

Describe the bug
When I change the page using state the new data is loaded using API but it's not updated in the table. It shows blank table.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue

Implemented Pagination using Table

Expected behavior
It should show the data of the different pages. It only shows data of the first page.
Screenshots or Videos

Operating System Version
macOS
Browser
Chrome

Hello,
I'd like to work on this, but it seems to be working in the docs https://nextui.org/docs/components/table#pagination
Can you share a code example where the pagination fails?

It's working in the docs because it has static list of items.
What I want to do is on click of page 3, I want to request new data from server and show that list.
List is being fetched from server successfully, But, the data disappears like this in the table.

I have the same issue, the Table component internally does client side filtration. i.e if you render 20 items and select page 2 with 10 items per page it will show the last 10 items.

Hi,
I think you should use items attribute of Table.Body component when you try to get data dynamically. In this way, I am able to show the data dynamically.
<Table.Body
  items="{items}"
>
  {(item) => (
  <Table.Row key="{item.name}">
    {(key) =>
    <Table.Cell>{item[key]}</Table.Cell>}
  </Table.Row>
  )}
</Table.Body>

Here is my implementation
<Table.Body items={countries}>
      {(item: Country) => (
        <Table.Row>
          {(columnKey) => (
            <Table.Cell>
              {renderCell(item, columnKey, (countryId) => {
                setSelectedCountry(countryId);
                setVisible(true);
              })}
            </Table.Cell>
          )}
        </Table.Row>
      )}
</Table.Body>

did u try using this method
https://nextui.org/docs/components/table#infinity-pagination

I think I found the issue, the TableContext doesn't update when collection prop updates. Will create a pull request.

Currently the only workaround I see is to put a key on the table itself so it re-renders when the data is changed. This is far from ideal.

您好，邮件已收到。

this still happens to me in beta.12
could you upload one example using react-query
thank you very much

您好，邮件已收到。

Hello @carlosriveroib
the storybook contains an example with Table.Pagination, does that work for you? https://github.com/nextui-org/nextui/blob/93a92340f367d0bf66ccda70c32ab2f4a071e680/packages/react/src/table/table.stories.tsx#L347-L416

Still this issue persists.

您好，邮件已收到。

Hi again, sorry for request a example with react-query, I don't need the example.
I update my last comment
It's not working if I use <Table.Pagination /> but if I use <Pagination /> component outside table it is working

Issue with Table.Pagination still persists. Regular pagination component is working as expected.

您好，邮件已收到。


Updating modules

<EMAIL_ADDRESS>is no longer supported, so this module doesn't work.
Please merge.

Can we display custom captions over youtube video play layout, while playing the youtube video ?
is it possible ? if so, how? please guide me.


Ctrl+Tab toggle between last two windows like Alt+Tab

Ctrl+Tab allows you to move forward through open tabs. I'd like an option that works like Alt+Tab so I can just press Ctrl+Tab once to go to a previous tab and Ctrl+Tab a second time to go back to the current tab.

I'm pretty sure Ctrl+Shift+tab will take you back to the previous tab.
Now, cycling through the tabs in the order that they were last activated, as opposed to linearly through the list of tabs is certainly an interesting idea. It'd definitely have to be a separate setting from the current behavior, since some people are going to like it the current way, while others will like it the way you described.

I think the OP wants most-recent-used (MRU) behaviour. Therefore having Ctrl+Shift+Tab take you to previous does not meet this requirement as it is still tab order, not MRU order.
The key binding at the moment is:
            {
                "command" : "nextTab",
                "keys" :
                [
                    "ctrl+tab"
                ]
            }

It would be great if an mruTab command could be added so that people could bind it to Ctrl+Tab even if it isn't the default behaviour.
One thing worth mentioning is that Alt+Tab has a subtle but important behaviour: when you hold down Alt and then hit Tab repeatedly, it cycles through the MRU list until you release Alt at which point the window switch is made and the MRU list updated. This is also evidenced in apps that support Ctrl+Tab with MRU behaviour, eg. the excellent ConEmu...

I would like this one as well. Switching between the actual and the last viewed tab with the same shorcut is a big time saver. This should be a separate setting though. preserving the old behavior of the nextTab and prevTab, something like this:
            {                 "command" : "nextTab",                 "keys" :                  [                     "ctrl+tab"                 ]             },             {                 "command" : "prevTab",                 "keys" :                  [                     "ctrl+shift+tab"                 ]             },              {                 "command" : "LastTab",                 "keys" :                  [                     "shift+tab"                 ]             },

I think MRU tab switching for both Ctrl+Tab and Ctrl+Shift+Tab (the latter cycling the MRU stack in reverse order) should be the default behavior because

it's been the default for multi-document interfaces (tabbed windows) in Windows for a long time (see, e.g., Visual Studio/SQL Server Management Studio, Notepad++, or MFC-based applications that use MDI),
it's symmetric with Windows' own Alt+Tab, and
it's "better" user experience because it leverages short-term memory/work context.

Here are some examples for the last item:

You are working in a terminal tab and need to look something up on another tab, then switch back.
You need to switch between two tabs a lot because of copying different items from one to the other or because of comparing some text.

To me, there doesn't seem to be a use case where left-to-right (rather than MRU) is the "better" behavior?
BTW, MRU should also be the default when closing tabs: Have a number of tabs open. From the first one, open a new tab. Close it again. Where are you now? Not where you were before. (This argument was borrowed from https://bugs.chromium.org/p/chromium/issues/detail?id=5569#c79.)

For what it's worth, I spent a good 5 hours or so trying to make this happen so I could issue a PR. It is HARD, at least for someone who hasn't really done C++ since MFC and OLE were all the rage with the cool kids. @jugglingcats last note is the real sticking point.
Easy parts:

Add NextTabMru and PrevTabMru bindings and such across the board.
Create a "local" MRU stack for the tab indexes

Moderate:

Add event handler for TermControl PreviewKeyUp event
Modify IKeyBindings to add a NotifyModifierReleased method so that this event can report this back to AppKeyBindings

Impossible for lil' ol' me (without a hideous hack):

Differentiate between a "click" tab change and a keyboard shortcut tab change in the TerminalPage OnTabSelectionChanged handler so that I can determine when to move the selected tab to the top of the MRU stack (should ONLY happen on a click or after control is released).
Figure out a non-hack, architecturally consistent way to "share" the MRU stack between TerminalPage and AppKeyBindings

Really, this should all be done such that an MRU change doesn't actually change the selected tab at all until you release the control key (or whatever modifiers you've defined). This would make it trivial to manage the stack. BUT it would require a pop-up control (listbox, listview, etc.) to show and cycle through open tabs. Same as VS and VS Code (and Firefox...only browser I can use since it supports MRU tab switching). And I'd give it a go personally, but adding GUI elements in C++ Win UI is way out of my comfort zone.
I'm 100% with @fschmied. MRU tab switching should be the default. Period. SO much more intuitive and consistent from an HCI perspective. Not sure when folks started to move away from it and whether it was just because it is by far "easier" to just cycle left to right. But it is a very bad trend, IMO.

Hey @ptyork, thanks for looking into this!
Regarding sharing state between Page and AppKeyBindings, actually -- Bindings should architecturally only emit events to which page can subscribe. The event callbacks are in AppActionHandlers, which is actually a poorly-named file that contains all of the event handlers in TerminalPage.
It's our bad that TermControl has to know about key bindings at all. Sorry! I actually thought we were tracking this in a workitem somewhere, so that's homework for me. :smile:

Just adding a comment here that this NEEDS to happen. MRU tab-switching order is the standard, and there are DECADES of muscle-memory associated with them. The only application that doesn't do this is Chrome, and it's why I hate using Chrome (and now EDGE). EVERY other tabbed UI in the universe does this the right way... MRU tab switching. If you have more than two tabs open, the "just switch to the left/right" tab switching is utterly annoying and useless, and introduces too high of a cognitive load to try and remember where you are, where you want to go, and whether you should use Ctrl-Tab or Shift-Ctrl-Tab to get there. It's just horrible usability, and I curse Chrome every day for not implementing at least the OPTION of having MRU tab switching (as IE did, and as FireFox does). It should be verboten to introduce any kind of tabbed UI without this option.  This should be a high-priority addition.  There are tons of examples of how this should work already, so all the usecases and edgecases should be taken care of (Visual Studio, SQL Server Management studio, Notepad++, FireFox (with the option turned on in settings), IE11 (with the option turned on in settings), Alt-Tab behavior in Windows itself, etc.

How do I return to Pre-MRU behavior? I somehow can't find it in the documentation.

How do I return to Pre-MRU behavior? I somehow can't find it in the documentation.

@nsballmann - you can set "tabSwitcherMode" in global settings.
The available values are "mru", "inOrder", "disabled". I guess you are looking for "inorder"

How do I return to Pre-MRU behavior? I somehow can't find it in the documentation.

@nsballmann - you can set "tabSwitcherMode" in global settings.
The available values are "mru", "inOrder", "disabled". I guess you are looking for "inOrder"

This didn't work for me. However, setting "useTabSwitcher" to false in the global settings did the trick.

How do I return to Pre-MRU behavior? I somehow can't find it in the documentation.

@nsballmann - you can set "tabSwitcherMode" in global settings.
The available values are "mru", "inOrder", "disabled". I guess you are looking for "inOrder"

This didn't work for me. However, setting "useTabSwitcher" to false in the global settings did the trick.

@kwburnett - I was addressing 1.5 Preview. In 1.4 you can turn off tab switcher completely (the way you did with ``"useTabSwitcher"```), but it will hide the tab switcher UI as well.

Currently I'm on 1.4. I just put both into my config, so it will be easy for me, when 1.5 goes from preview to release.
{
  "useTabSwitcher": false,
  "tabSwitcherMode": "inOrder"
}

Thank you both very much, @Don-Vito and @kwburnett .

Is there a way to disable ctrl+tab and ctrl+shift+tab 's functions? There are some conflict between others...setting
useTabSwitcher to false is not to display the switching window.

Is there a way to disable ctrl+tab and ctrl+shift+tab 's functions? There are some conflict between others...setting
useTabSwitcher to false is not to display the switching window.

@1478zhcy - you can unbind a keys combination by creating a binding and setting the command name to unbound. Please see: https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#unbind-keys
Something like
{ "command": "unbound", "keys": "ctrl+tab" },
{ "command": "unbound", "keys": "ctrl+shfit+tab" }

In 1.5 these bindings are still hard-coded within tab switcher (should not affect most cases - but if it does, you can hide the tab switcher). In 1.6 Preview everything should simply work.

@1478zhcy - you can unbind a keys combination by creating a binding and setting the command name to unbound. Please see: https://docs.microsoft.com/en-us/windows/terminal/customize-settings/actions#unbind-keys
Something like
{ "command": "unbound", "keys": "ctrl+tab" },
{ "command": "unbound", "keys": "ctrl+shfit+tab" }

In 1.5 these bindings are still hard-coded within tab switcher (should not affect most cases - but if it does, you can hide the tab switcher). In 1.6 Preview everything should simply work.

@Don-Vito Thank you very much! It works. But after that setting, I just found out it seems that terminals don't see a difference between tab and ctrl+tab, So I still can't use they in console applications.🤣

@Don-Vito Thank you very much! It works. But after that setting, I just found out it seems that terminals don't see a difference between tab and ctrl+tab, So I still can't use they in console applications.🤣

@1478zhcy - I see. Please address the discussion in https://github.com/microsoft/terminal/issues/8931. As it might be relevant as well.

@1478zhcy - I see. Please address the discussion in https://github.com/microsoft/terminal/issues/8931. As it might be relevant as well.

Thank you!


Allow custom colors with isColor

I noticed that the isColor prop only works with built-in colors like primary. But by customizing bulma's $colors variable, you can use new colors with the is- prefix.
For example:
$colors: (
   myColor: (#ffffff, #000000)
);

will style this correctly
<div class="is-myColor">

but this does not work in Bloomer
<Notification isColor="myColor">

Does this feature make sense to add? Right now, I'm having to manually set the colors like so
<Notification className="is-myColor">

which removes some of the convenience of this awesome library.

I haven't worked with typescript before, but I could certainly learn a little and try to contribute.
So you're suggesting a file like colors.ts that the user adds to define their own colors, instead of using scss? Then just check if it's defined in the main bulma.ts?

All colors are in bulma.tsx Colors type. Maybe we can implement a default for isColor that is used in getColorModifiers like:
export function getColorModifiers({ isColor: color }: Bulma.Color) {
    return [`is-${color}`]: true;
}

That way we can have Typescript intellisense and we can allow new colors.
This approach is better for this Bloomer Version, and what I was suggesting (a file like colors.ts) is going to be better approach for the new Bloomer Version since we would allow the override of almost anything as if we were using SASS.
Can you try the snippet I showed you and test? I can check your PR if everything is good :)
PS: You had a really good understanding on the suggestion, but I believe that it's going to be a pain to do it and it's going to force people to keep track of several stuff right now.

So you're suggesting we remove the isColor check from getColorModifiers to allow any color to work with the function, in which case would it look like this? :
export function getColorModifiers({ isColor: color }: Bulma.Color) {
    return  { [`is-${color}`]: true };
}

I understand now why I'll need to add a default to the Colors type to let me pass an arbitrary string as a Color. This change seems to make the isColor function unused, but I suppose that's okay.
Might we also want to modify getColorModifier in the same way?
I think for now this is a good solution, if your new version is on its way there seems to be less incentive to make a more involved addition.
If this sounds good I'll gladly update the tests and PR it. Might have a few more questions as I'm going 🙂

Yes, I believe that the best way should be to remove the isColor constraint and accept strings, at the end this way we can have the "default" as a Color. So we should remove isColor and make the functions receive color type (like we do now) and return whatever the user pass.
So, if a user pass something like <Button isColor="custom">, the function getColorModifiers is going to return "is-custom" to Button component and problem solve.
We should check for all isColor implementations, like the one with has-text-${modifier}. At first I was doing all these to help the user so it was rare to have errors, but we need to leave the user the power to do anything since at the end, if we do something like <Component className="custom"> and we don't have .custom in our css, React renders our Component with that className.
So, check for those constrains, maybe we can modify another constraints until the release of the new Bloomer Library 😃


fix(docker): Change to hub-ui

Simple change to hub-ui for looking at images instead of hub.foundries.io
Readiness

[x] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Overview
There is a split in the domain of hub.foundries.io into hub-ui.foundries.io for the UI/UX and hub-auth.foundries.io that just does the authorization part. This change reflects that new split.
Checklist
Optional. Add a 'x' to steps taken.
You can fill this out after opening the PR. "Did I..."

[ ] Run spelling and grammar check, preferably with linter.
[ ] Avoid changing any header associated with a link/reference.
[ ] Step through instructions (or ask someone to do so).
[ ] Review for wordiness
[ ] Match tone and style of page/section.
[ ] Run make linkcheck.
[ ] View HTML in a browser to check rendering.
[ ] Use semantic newlines.
[ ] follow best practices for commits.

[ ] Descriptive title written in the imperative.
[ ] Include brief overview of QA steps taken.
[ ] Mention any related issues numbers.
[ ] End message with sign off/DCO line (-s, --signoff).
[ ] Sign commit with your gpg key (-S, --gpg-sign).
[ ] Squash commits if needed.

[x] Request PR review by a technical writer and at least one peer.

Docs for 3450e484a95a47af3dc3cbb7d1c1fa081b1d0d80 are browsable at: https://ci.foundries.io/projects/fio-docs/builds/1819/docs/artifacts/html/index.html

The link-check error is from outdated fork, broken link has been replaced, we can safely ignore this error.

@kprosise - we also need to update https://docs.foundries.io/latest/reference-manual/security/device-network-access.html

@doanac, I'll create a Jira issue, and will likely open a PR later today.

here you go - https://github.com/foundriesio/docs/pull/454


Improve async and custom type support

Added support for catch and finally
Cope better with top-level coroutine.yield() calls
Made doString and doFile async
Added support for type extensions
This framework allows plugging in types that should be converted to user data and have a metatable with methods. JS classes fit particularly well into this. This replaces JS references.
Converted Promise to type extension and made the functions on it into proper methods. Also added Promise.create and Promise.all.
Added Error as a type extension.
Allow returning arrays from Lua

I loved the type extension idea! But maybe it is very tied to metatables, no? Would be nice to pass some other types to it, like function, thread, etc.

An extension doesn't necessarily need a metatable as long as it implements push value and get value. My thought was to leave these default handlers in here but there's no reason at all that they couldn't all be removed to an extension if you'd like?

An extension doesn't necessarily need a metatable as long as it implements push value and get value. My thought was to leave these default handlers in here but there's no reason at all that they couldn't all be removed to an extension if you'd like?

Nice, so it's okay. we can leave it that way and maybe migrate some other types later

An extension doesn't necessarily need a metatable as long as it implements push value and get value. My thought was to leave these default handlers in here but there's no reason at all that they couldn't all be removed to an extension if you'd like?

Nice, so it's okay. we can leave it that way and maybe migrate some other types later

I was incorrect, it required a small tweak. It already was fine for pushValue but getValue meant adding a new isType handler


Wrong documentation for org.jpl7.Util? Method isList missing

Some methods in org.jpl7.Util JavaDoc are missing, like isList for example.
Note the  method is here:
https://github.com/SWI-Prolog/packages-jpl/blob/08f636bcf785cf3d690d46162fdde935c56f6a8b/src/java/org/jpl7/Util.java

The method is there and in class org.jpl7.Util, I was checking wrongly in org.jpl7.util.Util which is a bit confusing... Maybe org.jpl7.util should be renamed to something else..


chore(NATS): support job timeout.

ref #16
Signed-off-by: Bo-Yi Wu<EMAIL_ADDRESS>

Codecov Report

Merging #26 (1db3743) into master (3525a28) will increase coverage by 0.18%.
The diff coverage is 86.27%.

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   82.92%   83.10%   +0.18%
==========================================
  Files           7        7
  Lines         404      444      +40
==========================================
+ Hits          335      369      +34
- Misses         50       54       +4
- Partials       19       21       +2

Impacted Files
Coverage Δ

nats/nats.go
81.55% <86.27%> (+2.18%)
: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 3525a28...1db3743. Read the comment docs.


DRAFT: Satellite dashboard

Very very early draft, in design and discussion at the moment.
The goal is to deliver a static-ish dashboard, similar to iqe-requirements, but for cross-project test result aggregation.
Currently struggling with a split menu toggle + dropdown implmentation, similar to insights:
https://github.com/RedHatInsights/frontend-components/blob/69399c1ff2e3be6fd8e387ce768a6435efcd851d/packages/components/src/ConditionalFilter/ConditionalFilter.tsx#L185
commented out dual-select is easy and working, but there was review input that they look dependent on each other. I'm skeptical of this input, as their selections will be completely different, and will completely change the view. There will still be dashboards under the projects, and those dashboards won't be visible/searchable without selecting the project first.
This is built on the commits for #498  and #499
Status
Holding for #494 after great input from Andrew Dewar about the routing, select, and structure.

Commits from here split into several other PRs, going to close this out.


Numbers to Words

it would be very helpful to include the ability to convert a dollar amount to words.
For example:
$1,578.32  to "one thousand five hundred and seventy eight dollars and thirty two cents"

Sounds cool...

I am looking into this.
Adding support for both Arabic and American format.
Wiki link for formatting info: https://en.wikipedia.org/wiki/Indian_numbering_system


Running bash from ssh (using built-in SSH Server Broker/Proxy) causes error 0x8007048f

A brief description

I've got the Anniversary update.
I've installed Windows Subsystem for Linux, and installed bash (by running bash from a command line)
After a couple of reboots, I noticed 2 new services for "Windows SSH Server": "SSH Server Proxy" and "SSH Server Broker" which get started on boot.
I ssh to localhost which gives me a command prompt (as in cmd.exe)
From there, I run bash, which gives me a (slightly garbled) WSL BashOnWindows prompt.
If I ssh into localhost again (again using the native ssh server) I can start the garbled bash again and it doesn't give an error; it just doesn't work very well as it seems to be ignoring all of the shell escape codes.
If I then try and run bash again (from a normal cmd) I get error 0x8007048f and it refuses to start again that way until I reboot

Expected results

Bash runs as normal, and doesn't prevent future bashes from running outside of the native ssh session

Actual results (with terminal output if applicable)

The bash running inside the ssh session continues to work
No other bash will run (i.e. from a normal command prompt, or from powershell)

Your Windows build number

14393.10

Steps / commands required to reproduce the error

Install the Anniversary update, enable linux subsystem, install bash
Reboot a few times
SSH into localhost
Run bash from connected ssh session

Strace of the failing command

n/a

Required packages and commands to install

n/a

The ssh server you're seeing is actually a minimal ssh server used for device discovery (when developer mode is turned on) and should really be avoided since it lacks many of the features one might otherwise expect of a full ssh server.

I tried to turn on ssh from Bash on Windows but got an error on privilege separation as follows:

$ sudo /usr/sbin/sshd
Missing privilege separation directory: /var/run/sshd

I don't want to disable privilege separation of SSH server (by editing /etc/ssh/sshd_config). Is there any better way?

@ducalpha you have to turn off privilege separation in /etc/sshd.conf or whatever the configuration file is.

Closing this issue for now since, as mentioned above, this SSH server is only a minimal SSH server used for device discovery scenarios and it doesn't support all the high-fidelity SSH features one would expect or rely upon.
If you want to run an OpenSSH Server on Windows, know that the real OpenSSH is currently being ported to support Windows as we type: https://github.com/PowerShell/Win32-OpenSSH
And if you can always run sshd from Bash, but obviously, only when you've got a bash shell running.

I think this should be debugged. Reopening.

On the latest preview version of Windows 10, the error code is different, I've got Error: 0x80070020. Not sure if it makes a difference, but this post helped me figure out the issue.

I got Error: 0x80070005
The minimal broker / proxy sshd server should be upgraded to a real one. So in summary we have 3 sshd servers now.

bash
powershell
broker/proxy

Only the broker / proxy is the way forward if you ask me. It is currently the only solution that resembles the low level control and performance you expect from a sshd server.
I assume the broker / proxy is out of the linux bash scope and need to be addressed by a complete other internal team from Microsoft?
I suggest the following when decision is made to keep the broker / proxy server minimal permanently then please use another default port for it and reserve the 22 port for a real sshd server.
What to avoid at all cost is that developers are developing a powershell or bash sshd solutions that can run as services in windows and then all effort is been lost because the broker \ proxy from microsoft has been upgraded making a bash sshd solution useless both on security and performance because the former its backed into the windows kernel.
So please be clear on the decision and keep us updated, thanks.

@gertcuykens Yeah, connecting to an ssh server is so much simpler than Enter-PSSession or WMI.  I hope they add it as a Nano server role.

I get 0x8007048f or 0x80070020 when try to ssh to the localhost and run bash there. Here are ETL files for 0x8007048f case:
lxcore_etl_trace.zip

And if you can always run sshd from Bash, but obviously, only when you've got a bash shell running.

I'd like to do this as a workaround, are there any tutorials for it? The obvious sudo apt-get install ssh && sudo /etc/init.d/ssh restart is not working for me. sudo netstat -tupan reports no open port. I changed the port to 223 as to not conflict with anything that might already be running on 22 but to no avail. No syslog or auth.log ormessages log so i'm a bit lost

For what it's worth, there's a thread discussing how to do this, here:
https://wsl-forum.qztc.io/viewtopic.php?f=6&t=10

@yurymik - Thanks for the traces. Can you describe your setup a bit more in detail:

What ssh server are you running?
Is your bash setup complete? Are you able to launch bash locally without ssh?

That was taken on Win10 anniversary edition; bash setup completed, can run it locally.
Ssh server? I was trying to use built-in SSH Server Broker/Proxy that comes with WSL and has no options to configure (boo!). If you meant ssh client, then it was Putty.

@yurymik - Thanks. I am a bit confused with your setup/problem when try to ssh to the localhost and run bash there. If you are able to successfully SSH into the SSH server running on WSL, then it's all good, isn't it? Can you please provide your detailed repro steps?

Well, as the title of this bug says, the problem is in running bash from inside SSH session. Here are the steps:

Run Putty
Ask it to connect to the localhost
WSL server responds and establish connection, you're in the cmd shell
Type bash and press enter
Get an angry error code 0x8007048f or 0x80070020

Sometimes, step 4 succeeds without a problem and I can work in bash, but sometimes it prints error code and refuses to continue.
What's the reason to ssh to the localhost? Not much, I was just troubleshooting the setup, before moving to the remove machine.

I believe this should be fixed in 17017.


Cout is ambigous

Type: Bug
c++ says cout is ambigous it worked fine recently
VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:39:26.248Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: Yes

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz (12 x 2688)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
15.77GB (7.54GB free)

Process Argv
D:\DSA C++\bitwiseop.cpp --crash-reporter-id 7f3fcf16-9a1b-42ae-a340-05cc48c37255

Screen Reader
no

VM
0%

Extensions (5)

Extension
Author (truncated)
Version

code-runner
for
0.12.0

cmake-tools
ms-
1.14.31

cpptools
ms-
1.16.0

cpptools-extension-pack
ms-
1.3.0

cmake
twx
0.0.17

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
2i9eh265:30646982
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
03d35959:30757346
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30730052
hidesbindicator:30730055
pythongtdpath:30739704
pythonnosmt12:30757131

@codecreed20 This was from the cpptools extension -- it's fixed with the latest 1.16.3 release.
@aeschli This was an important regression caused by the 1.16.0 (pre-release) of our cpptools extension. If any C++ issues from users with the cpptools extension installed could be moved to https://github.com/Microsoft/vscode-cpptools/issues that would be great.

@sean-mcmanus thanks for letting us know. I am sorry that this issue fell through the cracks. We usually move issues to the cpp tools repo. But @aeschli is on a 2 month vacation so it was unfortunate timing.