when init hangfire mongodb requires migration

Version: 0.6.0
when first time initialize the database(not upgrade database), it will throw the require migration exception.

@Caskia,
We need you to input what you want to do if a migration is needed. By default we will throw an exception if you havent set the migration strategy.
We should probably be address this, as this shouldnt be needed when there is no db to begin with. :)
I recommend you set the migration options like this if you just are trying it out
var migrationOptions = new MongoStorageOptions {       MigrationOptions = new MongoMigrationOptions        {              Strategy = MongoMigrationStrategy.Drop,               BackupStrategy = MongoBackupStrategy.None         }  };

Hi gottscj:
I know your migration rule. What I want to express is that there is no database, when we start use this first time, it throws this exception in this new version(0.6.0). The previous version does not.

Same here, this is very critical to us. It seems if there is no database it does not start. please provide a fix for this.

Application:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: MongoDB.Driver.MongoCommandException
at MongoDB.Driver.Core.WireProtocol.CommandUsingCommandMessageWireProtocol1[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ProcessResponse(MongoDB.Driver.Core.Connections.ConnectionId, MongoDB.Driver.Core.WireProtocol.Messages.CommandMessage)    at MongoDB.Driver.Core.WireProtocol.CommandUsingCommandMessageWireProtocol1[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute(MongoDB.Driver.Core.Connections.IConnection, System.Threading.CancellationToken)
at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol1[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute(MongoDB.Driver.Core.Connections.IConnection, System.Threading.CancellationToken)    at MongoDB.Driver.Core.Servers.Server+ServerChannel.ExecuteProtocol[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]](MongoDB.Driver.Core.WireProtocol.IWireProtocol1<System.__Canon>, System.Threading.CancellationToken)
at MongoDB.Driver.Core.Servers.Server+ServerChannel.Command[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]](MongoDB.Driver.Core.Bindings.ICoreSession, MongoDB.Driver.ReadPreference, MongoDB.Driver.DatabaseNamespace, MongoDB.Bson.BsonDocument, System.Collections.Generic.IEnumerable1<MongoDB.Driver.Core.WireProtocol.Messages.Type1CommandMessageSection>, MongoDB.Bson.IO.IElementNameValidator, MongoDB.Bson.BsonDocument, System.Action1<MongoDB.Driver.Core.WireProtocol.Messages.Encoders.IMessageEncoderPostProcessor>, MongoDB.Driver.Core.WireProtocol.CommandResponseHandling, MongoDB.Bson.Serialization.IBsonSerializer1<System.__Canon>, MongoDB.Driver.Core.WireProtocol.Messages.Encoders.MessageEncoderSettings, System.Threading.CancellationToken)    at MongoDB.Driver.Core.Operations.CommandOperationBase1[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ExecuteProtocol(MongoDB.Driver.Core.Bindings.IChannelHandle, MongoDB.Driver.Core.Bindings.ICoreSessionHandle, MongoDB.Driver.ReadPreference, System.Threading.CancellationToken)
at MongoDB.Driver.Core.Operations.CommandOperationBase1[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ExecuteProtocol(MongoDB.Driver.Core.Bindings.IChannelSource, MongoDB.Driver.Core.Bindings.ICoreSessionHandle, MongoDB.Driver.ReadPreference, System.Threading.CancellationToken)    at MongoDB.Driver.Core.Operations.WriteCommandOperation1[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Execute(MongoDB.Driver.Core.Bindings.IWriteBinding, System.Threading.CancellationToken)
at MongoDB.Driver.Core.Operations.CreateCollectionOperation.Execute(MongoDB.Driver.Core.Bindings.IWriteBinding, System.Threading.CancellationToken)
at MongoDB.Driver.OperationExecutor.ExecuteWriteOperation[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]](MongoDB.Driver.Core.Bindings.IWriteBinding, MongoDB.Driver.Core.Operations.IWriteOperation1<System.__Canon>, System.Threading.CancellationToken)    at MongoDB.Driver.MongoDatabaseImpl.ExecuteWriteOperation[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]](MongoDB.Driver.IClientSessionHandle, MongoDB.Driver.Core.Operations.IWriteOperation1<System.__Canon>, System.Threading.CancellationToken)
at MongoDB.Driver.MongoDatabaseImpl.CreateCollectionHelper[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]](MongoDB.Driver.IClientSessionHandle, System.String, MongoDB.Driver.CreateCollectionOptions1<System.__Canon>, System.Threading.CancellationToken)    at MongoDB.Driver.MongoDatabaseImpl.CreateCollection(MongoDB.Driver.IClientSessionHandle, System.String, MongoDB.Driver.CreateCollectionOptions, System.Threading.CancellationToken)    at MongoDB.Driver.MongoDatabaseImpl+<>c__DisplayClass12_0.<CreateCollection>b__0(MongoDB.Driver.IClientSessionHandle)    at MongoDB.Driver.MongoDatabaseImpl.UsingImplicitSession(System.Action1<MongoDB.Driver.IClientSessionHandle>, System.Threading.CancellationToken)
at MongoDB.Driver.MongoDatabaseImpl.CreateCollection(System.String, MongoDB.Driver.CreateCollectionOptions, System.Threading.CancellationToken)
at Hangfire.Mongo.Migration.Steps.Version17.AddNotificationsCollection.Execute(MongoDB.Driver.IMongoDatabase, Hangfire.Mongo.MongoStorageOptions, Hangfire.Mongo.Migration.IMongoMigrationContext)
at Hangfire.Mongo.Migration.MongoMigrationRunner.Execute(Hangfire.Mongo.MongoSchema, Hangfire.Mongo.MongoSchema)
Exception Info: Hangfire.Mongo.Migration.MongoMigrationException
at Hangfire.Mongo.Migration.MongoMigrationRunner.Execute(Hangfire.Mongo.MongoSchema, Hangfire.Mongo.MongoSchema)
at Hangfire.Mongo.Migration.Strategies.MongoMigrationStrategyDrop.Migrate(Hangfire.Mongo.MongoSchema, Hangfire.Mongo.MongoSchema)
at Hangfire.Mongo.Migration.Strategies.MongoMigrationStrategyBase.Execute(Hangfire.Mongo.MongoSchema, Hangfire.Mongo.MongoSchema)
at Hangfire.Mongo.Migration.MongoMigrationManager.Migrate()
at Hangfire.Mongo.Migration.MongoMigrationManager.MigrateIfNeeded(Hangfire.Mongo.MongoStorageOptions, MongoDB.Driver.IMongoDatabase)
at Hangfire.Mongo.MongoStorage..ctor(MongoDB.Driver.MongoClientSettings, System.String, Hangfire.Mongo.MongoStorageOptions)
at
Hangfire.GlobalConfigurationExtensions.UseMongoStorage(Hangfire.IGlobalConfiguration, Hangfire.Mongo.MongoMigrationOptions)
at
Hangfire.HangfireExtensions.RegisterHangfire(SimpleInjector.Container)
at ...

@bogdanmarin
what driver version are you using? Im trying this now on Mongo v4.0.3 and I cant reproduce

We are using Hangfire.MongoDb 0.6.0, MongoDB.Driver 2.8.0.

Could you add some more information?
what is your setup? its a fresh db? do you have multiple instances of hangfire running? everything you can think of. you are not giving me much to work with..

also please add logging:
config.UseColouredConsoleLogProvider(LogLevel.Trace);
Please also try the asp-net-core sample and see if you get the same error. is the mongo db version 4.0.3 or the newest 4.0.9?

Yes, so we have a fresh db, Mongo is v4, Driver is 2.8.0 and your lib is 0.6.0 and we recently upgraded to 0.6.0 and sudently our service is not starting anymore.
We are using these strategies:
new MongoMigrationOptions
{
Strategy = MongoMigrationStrategy.Drop,
BackupStrategy = MongoBackupStrategy.None,
};

MongoDB is 4.0.4

It seems we get the same error even with Mongo DB 3.2,3.6 and 4.0.4.

Any updates? Again I think @Caskia description is accurate. It throws exception when there is a first time initialization (no database). This never happened with prev version, it has to do with latest changes. The problem is that we cannot downgrade eather because then we will have the bug that hangs jobs in enqueued state present in the prev version so we are stuck now..

I just tried 4.0.9, the latest, I can't reproduce.
Could you try the latest version.
Please add the logging, also please try the asp net core sample.
My understanding is that @Caskia, did not provide migration options. @Caskia, do you still get exceptions even if you add the migration options?

@bogdanmarin ,
You can use 0.5.15, the enqueued job bug is only for the monitoring api. the actual job is executed.

@gottscj
If use migration options, won't get the errors.
But when use previous version there is no need to use migration options at first time initialization(database)

@Caskia,
For an empty db we are actually running all migrations. I Personally think that explicitly stating how you want to handle migrations is better than a default setting which you might not have considered.
@bogdanmarin, Did you progress in your debugging?

I am using ASP.NET Core I solved this problem by inserting below code in ConfigureServices function Startup.cs
        var migrationOptions = new MongoMigrationOptions
        {
            Strategy = MongoMigrationStrategy.Drop,
            BackupStrategy = MongoBackupStrategy.None,
        };
        var storageOptions = new MongoStorageOptions
        {
            MigrationOptions = migrationOptions
        };
        services.AddHangfire(config =>
        {
            config.UseMongoStorage("mongodb://localhost", "application-database", storageOptions);
        });

I also encountered a similar problem when upgrade to v 0.6.1 with an exception
MongoDB.Driver.MongoCommandException: 'Command createIndexes failed: Index with name: Resource already exists with different options.' on Hangfire start.
Strategy = MongoMigrationStrategy.Migrate,
BackupStrategy = MongoBackupStrategy.Collections
though it works if I drop the database and set the backup strategy to None
Strategy = MongoMigrationStrategy.Drop,
BackupStrategy = MongoBackupStrategy.None
but this is not feasible with a living database.

fixed


What is the purpose of returning a created note pointer intx::create_note?

While working on https://github.com/0xPolygonMiden/compiler/pull/119, I noticed that tx::create_note returns a pointer for the created note. I've searched through the tests and docs but have yet to find where this pointer can be used. I'm still looking for a nice fit for it in the Miden SDK. I would appreciate it if someone pointed out its intended use case.

Currently this is not used for anything. One of the reasons for having it though is so that we could support something like #228. The idea was to use the returned pointer as a "note identifier" - but there could be other approaches for this too.

Thanks! We're going to treat it as an opaque note ID for now.


[gs2-ranking] Service/test seeds modified

Created by https://circleci.com/gh/gs2io/gs2-ranking/531

#33 と重複のため、何もせずにクローズ。


[Feature request]: add an option to toggle devicons show or not

Sometime I will use vim in an environment without nerdfont.

use this let g:spaceline_line_symbol = 1

Thanks, I dont know why I missed this...


Microphone example issue

using the default microphone example, I get this error:
in method 'Microphone_getSampledWindow', argument 4 of type 'uint16_t *'

Hi, you are using an old version of the library that doesn't have array typemaps for JS and python. Please follow the instructions here to update:https://software.intel.com/en-us/articles/managing-devkit-libraries-intel-edison-or-intel-galileo-board
Then run the example again and it will work.


About 'auto - deploy. sh' and 'configurations.sh'

Is your feature request related to a problem? Please describe.
According to the introduction, modifying the configuration items corresponding to the configurations.sh file according to the configuration, before execute the auto-packaging.sh(or auto-deploy.sh) script,like this:
partyA.id | Indicates the partyid of partyA
A.MS-ip | Indicates the node where the meta-Service module of partyA is located.
A.F-ip | Indicates the ip of the node where the federation module of partyA is located.
A.P-ip | Indicates the ip of the node where partyA's Proxy module is located.
A.R-ip | Indicates the ip of the node where the party module's Roll module is located.
A.TM-ip | Indicates the server ipexchange where the partyA's Task-manager is located.
A.S-ip | Indicates the server ip of the partyA's Serving-server. If there are multiple, the number is incremented.
A.E-ip | Indicates the server ip of partyA's Egg. If there are more than one, add the number increment.
exchangeip | Exchange server ip
It must be mentioned that,I only make cluster-deploy on one computer.Here's how I modified it:
#!/bin/bash
user=app
dir=/data/projects/fate
mysqldir=/data/projects/common/mysql/mysql-8.0
javadir=/data/projects/common/jdk/jdk1.8
venvdir=/data/projects/fate/venv
redispass=fate1234
partylist=(10000)
JDBC0=(192.168.. A.dbname A.user A.password)
iplist=(192.168.. 192.168.. 192.168.. 192.168.. 192.168.. 192.168..)
fedlist0=(192.168..)
meta0=(192.168..)
proxy0=(192.168..)
roll0=(192.168..)
egglist0=(192.168..)
tmlist0=(192.168..)
serving0=(192.168..)
exchangeip=exchangeip
Describe alternatives you've considered
Execute ”auto-deploy.sh“, after the changes mentioned above, the following statement appears:
app$: sh auto-deploy.sh
copy is ok!
The authenticity of host '192.168..(192.168..)' can't be established.
ECDSA key fingerprint is SHA256:*****
ECDSA key fingerprint is MD5:******
Are you sure youwant to continue connecting (yes/no)? yes
Warning:Permanently added '192.168..'(ECDSA) to the list of known hosts.
Authentication failed.
lost conntecting
<EMAIL_ADDRESS>password:******
cd /data/projects/fate
tar -zxf fate.tar
rm -rf fate.tar
exit
Logout
Connection to 192.168.. closed.
......
So，Is there any problem with my modification？
Thank you for your time!

Is your feature request related to a problem? Please describe.
According to the introduction, modifying the configuration items corresponding to the configurations.sh file according to the configuration, before execute the auto-packaging.sh(or auto-deploy.sh) script,like this:
partyA.id | Indicates the partyid of partyA
A.MS-ip | Indicates the node where the meta-Service module of partyA is located.
A.F-ip | Indicates the ip of the node where the federation module of partyA is located.
A.P-ip | Indicates the ip of the node where partyA's Proxy module is located.
A.R-ip | Indicates the ip of the node where the party module's Roll module is located.
A.TM-ip | Indicates the server ipexchange where the partyA's Task-manager is located.
A.S-ip | Indicates the server ip of the partyA's Serving-server. If there are multiple, the number is incremented.
A.E-ip | Indicates the server ip of partyA's Egg. If there are more than one, add the number increment.
exchangeip | Exchange server ip
It must be mentioned that,I only make cluster-deploy on one computer.Here's how I modified it:
#!/bin/bash
user=app
dir=/data/projects/fate
mysqldir=/data/projects/common/mysql/mysql-8.0
javadir=/data/projects/common/jdk/jdk1.8
venvdir=/data/projects/fate/venv
redispass=fate1234
partylist=(10000)
JDBC0=(192.168.. A.dbname A.user A.password)
iplist=(192.168.. 192.168.. 192.168.. 192.168.. 192.168.. 192.168..)
fedlist0=(192.168..)
meta0=(192.168..)
proxy0=(192.168..)
roll0=(192.168..)
egglist0=(192.168..)
tmlist0=(192.168..)
serving0=(192.168..)
exchangeip=exchangeip
Describe alternatives you've considered
Execute ”auto-deploy.sh“, after the changes mentioned above, the following statement appears:
app$: sh auto-deploy.sh
copy is ok!
The authenticity of host '192.168..(192.168..)' can't be established.
ECDSA key fingerprint is SHA256:*****
ECDSA key fingerprint is MD5:******
Are you sure youwant to continue connecting (yes/no)? yes
Warning:Permanently added '192.168..'(ECDSA) to the list of known hosts.
Authentication failed.
lost conntecting
<EMAIL_ADDRESS>password:******
cd /data/projects/fate
tar -zxf fate.tar
rm -rf fate.tar
exit
Logout
Connection to 192.168.. closed.
......
So，Is there any problem with my modification？
Thank you for your time!

@Yuki-99
Hello, there is no problem with your modification.The problem is the server of execute the ”auto-deploy.sh“ should has the right to login the deploy server('192.168..') without encryption,even they are the same server.Only in this way the ”auto-deploy.sh“ can be execute fluently.


Add package to library component in package.yaml

Closes #1230.
Adds some unit-tests.
Todo:

[x] Code tidy up
[x] More tests

It seems that the tests fail for cabal files and ghc versions below 8.4.*.
They probably have always failed, but the additional tests have shown their failure.
What is the preferred course of action? Disabling the feature altogether? I could also try to fix it for the old ghc-versions.

@fendor did the FunctionalCodeActionsSpec tests for "add package suggestions" not used to pass on 8.2.x? I presume if #1249 is happening this won't matter, too much, but out of curiosity how were they failing?

The problem can acutally be shown in the Unit-tests.
Given the cabal file and task to add the package text:
Example .cabal:
name:                add-package-test
version:             <IP_ADDRESS>
license:             BSD3
author:              Luke Lau
maintainer<EMAIL_ADDRESS>build-type:          Simple
extra-source-files:  ChangeLog.md
cabal-version:       >=1.10

executable AddPackage
  exposed-modules:     ./.
  main-is:             AddPackage.hs
  build-depends:       base >=4.7 && <5
  default-language:    Haskell2010

Normally the result should be:
              List
                [ TextEdit (Range (Position 0 0) (Position 7 27)) $ T.concat
                  [ "cabal-version: >=1.10\n"
                  , "name: add-package-test\n"
                  , "version: <IP_ADDRESS>\n"
                  , "license: BSD3\n"
                  , "maintainer<EMAIL_ADDRESS>                  , "author: Luke Lau\n"
                  , "build-type: Simple\n"
                  , "extra-source-files:\n"
                  , "    ChangeLog.md"
                  ]
                , TextEdit (Range (Position 10 0) (Position 13 34)) $ T.concat
                  [ "    main-is: AddPackage.hs\n"
                  , "    default-language: Haskell2010\n"
                  , "    build-depends:\n"
                  , "        base >=4.7 && <5,\n"
                  , "        text -any"
                  ]
                ]

But on GHC 8.2.* the output is actually:
              List -- TODO: this seems to indicate that the command does nothing
                [ TextEdit (Range (Position 0 0) (Position 7 27)) $ T.concat
                  [ "name: add-package-test\n"
                  , "version: <IP_ADDRESS>\n"
                  , "cabal-version: >=1.10\n"
                  , "build-type: Simple\n"
                  , "license: BSD3\n"
                  , "maintainer<EMAIL_ADDRESS>                  , "author: Luke Lau\n"
                  , "extra-source-files:\n"
                  , "    ChangeLog.md"
                  ]
                , TextEdit (Range (Position 9 0) (Position 13 34)) $ T.concat
                  [ "executable  AddPackage\n"
                  , "    main-is: AddPackage.hs\n"
                  ]
                ]

It seems like the build-depends field has either been swallowed, or hadnt been updated.

I think, we can actually merge this.  At least, it will be documented via tests now.

@fendor Please update this branch to work with current master, and we can merge it again.


Support bundle: collect more namespaces

Use the namespace list in Rancher system-namespaces setting to
collect support bundles.
From:

To:

Can you clarify the reason for this change? I think many of these namespaces are irrelevant to the Harvester use case.

Can you clarify the reason for this change? I think many of these namespaces are irrelevant to the Harvester use case.

I follow the logic here: https://github.com/harvester/harvester/blob/1c02888d76c00f18a4cf828f4eb573b722b885ad/pkg/controller/master/rancher/embedded_rancher.go#L60-L70
How about not including the rancher settings but only these ones:
		"cattle-dashboards",
		"cattle-fleet-clusters-system",
		"cattle-monitoring-system",
		"fleet-local",
		"harvester-system",
		"local",
		"longhorn-system",

I file this change because when I need to check ManagedChart and Bundle, I found fleet-local namespace is not included.

Yeah, I would prefer we only collect the namespaces needed for debugging Harvester

It was not exposed via the settings page and users can only modify it using the kubectl or API-UI, I prefer to add a new setting named support-bundle-namespaces that allows users to specify any additional namespaces required for the support bundle.

Most are set by Rancher. We add a few Harvester-related namespaces. It's mainly used for resource filtering in the dashboard

Second for the support-bundle-namespaces setting! Sounds flexible enough for what this PR needs originally. Do we have list-like UI for setting at this moment? Or put simply just ask user writing comma-separate string.

the UI team is capable to do any customization, but for now, maybe be just using a comma-separated string is good enough due to limited time concerns(but can be improved in the next version).

Reduce the default NS list to:
		"cattle-dashboards",
		"cattle-fleet-clusters-system",
		"cattle-monitoring-system",
		"fleet-local",
		"harvester-system",
		"local",
		"longhorn-system",

and add a new setting support-bundle-namespaces to let users add more.


cubitcrack.exe - Please fix the option to use a list of addresses from a file

I have a text file with 10 puzzle addresses, one each line and I get this error. Also is there a limit of how many addresses can be seached at  one time?
[2023-03-13.13:42:10] [Error] Unable to open 'list.txt'
I'm only  using the cubitcrack.exe option.

Salaam alaikum to everyone!
Hello everyone!
Bitcoin is a scam!
On March 19, 2024, 865 bitcoins were sold on the exchange at a price of $8,000!
On other exchanges the price was $70,000!
Let's create a community and sequentially select the private key of the largest bts address!
And when we find it, Bitcoin will collapse!
Thanks in advance everyone!

I have a text file with 10 puzzle addresses, one each line and I get this error. Also is there a limit of how many addresses can be seached at one time? [2023-03-13.13:42:10] [Error] Unable to open 'list.txt'
I'm only using the cubitcrack.exe option.

Cubitcrack --device 0 --threads 384 -p 625 --in ldr.txt --out txx.tmp --compression UNCOMPRESSED --keyspace 1ffeafffefefc7a4f082395acf1c4062e17eddde8:1ffffffda043a6ee262da897f9ca734a379842674 --stride 5c37b845a68bf50
In ldr.txt there are 9+ million addresses. It works fine. No problem.

Salaam alaikum to everyone!
Hello everyone!
Bitcoin is a scam!
On March 19, 2024, 865 bitcoins were sold on the exchange at a price of $8,000!
On other exchanges the price was $70,000!
Let's create a community and sequentially select the private key of the largest bts address!
And when we find it, Bitcoin will collapse!
Thanks in advance everyone!

Hello everyone!
Bitcoin is a scam!
On March 19, 2024, 865 bitcoins were sold on the exchange at a price of $8,000!
On other exchanges the price was $70,000!
Let's create a community and sequentially select the private key of the largest bts address!
And when we find it, Bitcoin will collapse!
Thanks in advance everyone!

Че ты дура дрочишся? Хуй ты че найдешь в одного. А долбоебов других кроме себя не найдешь. Надо ж быть ебантропом чтоб обрушить блокчейн😅 и че потом ? Хуй сосать?  Да и даже если наткнешся случайно на максимум, ниче не будет, дура. Нашел-нашел. Тебя вычислят и ебнут. Церемонится не будут. Ты мышь никто потому что.

У меня есть текстовый файл с 10 адресами-головоломками, по одному в каждой строке, и я получаю эту ошибку. Также существует ли ограничение на количество адресов, которые могут быть найдены одновременно? [2023-03-13.13:42:10] [ Ошибка] Не удается открыть 'list.txt'
Я использую только опцию cubitcrack.exe.

All restrictions rest on the amount of memory on your devices (cpu/gpu). I have nvidia gt740m, 1gb, 384 cuda cores. 9 million addresses have been uploaded.
Loading the gpu from memory :99.2%


[Shared] Need to add an item to context menu for prompt located in "Shared with me" which allows user to open prompt

Now user can not open prompt located in "shared with me" -> it's rather inconvenient.
WA is to create a duplicate or call it using / in user-message.

Verified on UAT successfully.
Now shared prompt has View option

Please note that bin icon on the screen is an issue -> will be removed as Unshare action is unavailable from shared with me


add support for AIMP Player

Just a small request to add AIMP for Android player support
https://play.google.com/store/apps/details?id=com.aimp.player

I can verify that AIMP scrobble support is working, @dimethyl3ptamine Have you found the same?

I've just checked and yes, it works!


[type: refactor] add http client in yaml

// Describe your PR here; eg. Fixes #issueNo

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #2978 (376e070) into master (59331e6) will decrease coverage by 0.42%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #2978      +/-   ##
============================================
- Coverage     59.69%   59.27%   -0.43%
+ Complexity     4480     4434      -46
============================================
  Files           695      695
  Lines         20110    20107       -3
  Branches       1810     1809       -1
============================================
- Hits          12005    11918      -87
- Misses         7092     7176      +84
  Partials       1013     1013

Impacted Files
Coverage Δ

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
68.75% <0.00%> (-31.25%)
:arrow_down:

...admin/controller/ShenyuHttpRegistryController.java
77.77% <0.00%> (-22.23%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
69.10% <0.00%> (-14.64%)
:arrow_down:

...yu/sync/data/http/refresh/AbstractDataRefresh.java
70.00% <0.00%> (-13.34%)
:arrow_down:

...henyu/admin/service/impl/UpstreamCheckService.java
42.85% <0.00%> (-12.70%)
:arrow_down:

...in/disruptor/RegisterServerDisruptorPublisher.java
52.94% <0.00%> (-11.77%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

...apache/shenyu/admin/utils/ShenyuDictH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

...ache/shenyu/admin/utils/PluginHandleH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
56.38% <0.00%> (-7.45%)
:arrow_down:

... and 28 more

Continue to review full report at Codecov.

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

LGTM


Error: No module named 'fcntl' - cannot train d2go on windows

I followed installation instruction from readme. It showed installation was successful.
When I try to train model on windows, it gives error "Error: No module named 'fcntl' ".
As fcntl is not available for windows which makes d2go unusable on windows.
How to work around this ?

PS :- I am able to train and inference detectron2 models, issue only comes with d2go.

We don't test on windows, but https://github.com/facebookresearch/mobile-vision/pull/57 should fix it.


Introspection table_names method needs default param.

There are cases (when running tests) where Django calls table_names without passing a cursor object. Default is now None.

Coverage remained the same at 62.966% when pulling 5ccebe5033c43a313d3565a9ea5b651e9658f7a6 on sethdenner:fix-table-names into 60a047e1d74a02b7c5650fd9fd374a00abf05832 on Knotis:master.


Translation updates for 23.10 release (October, 2023)

In an effort to ease the burden on our developers, I've pre-translated all of the updated messages using the paid version of PoEdit (which uses Microsoft AI in the backend). I'm hoping to get someone fluent in all of these languages to review to ensure the translations are valid.
Please review and provide any feedback/proposed changes. Also feel free to comment if you do or do not like this method of translation.

@cvictor Please add your commits or comments to this PR
We will wait to merge this until you have had the chance to follow up

@cvictor If you don't have time today or tomorrow, we will have to revisit improvements to the German translation for future releases!


Problem: invalid AMIID

Steps:
When I run ansible-playbook with image: "ami-9d04e4e5" I get:
TASK [Launch instance] ***********************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Instance creation failed => InvalidAMIID.NotFound: The image id '[ami-9d04e4e5]' does not exist"}

Solution:
Please explain to the user how to create an AMI

I add the info in README file.


Reduce PDF file sizes

We compromise the quality of some figures but the file sizes go down to 1.5MB from 10+MB. Since the files are in the repository, it is crucial to be small enough.

@victorusu Can you have a look at this PR? Do you accept the resulting image quality?

@vkarak, I think the difference in size does justifies the image quality. The image quality is not good, but we can make the compromise. I can understand the slides based on the images. Those that I do not understand are not due to the image itself, but rather due to the lack of the presentation.

@jenkins-cscs retry kesch monch


Peek doesn't work in zip files

Microsoft PowerToys version
0.70.1
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
Peek
Steps to reproduce

Peek a photo that is in a zip file
Get directed to this bug report form

✔ Expected Behavior
Peek a photo
❌ Actual Behavior
Fill in a form pls
Other Software
Windows 11, Windows Explorer, latest publicly available versions

/dup #26146


ImportSecp256R1NAsN hint

https://github.com/starkware-libs/cairo-lang/blob/0e4dab8a6065d80d1c726394f5d9d23cb451706a/src/starkware/starknet/security/whitelists/cairo_secp.json#L41
https://github.com/lambdaclass/cairo-vm/blob/db7fff18c9c1312024ebf4119fcdfeba23657b12/cairo_programs/secp256r1_div_mod_n.cairo#L14C8-L14C86

hi @Sh0g0-1758  are you still working on it?

Hey ya! Will link a PR today.


Get the emission at multiple frequencies

My most common case of use is the production of a multi-frequency observation with delta band passes. I have the frequencies of my experiment in an array of shape (n_freq) and I'd like to get an array of shape (n_freq, n_stokes, n_pixels) containing the observation.
From a quick look at the doc and the code, it seems to me that Sky.get_emission can only return (n_stokes, n_pixels): arrays of frequencies are processed as band-pass samples and integrated over.
Is there a way of getting all the frequencies (as in pysm2's instrument.observe(sky)) or I'm expected to iterate over the frequencies and stack the result in my application code?
Thanks!

Correct, you need to iterate.
This brought a significant simplification of the API so I decided it was the best choice.
But if you have a benchmark where you can show a significant performance penalty, we can reconsider.

Thanks for the prompt feedback. I don't have any. I am not concerned about performance, I was just looking for the cleanest way to get a multi-frequency observation with this new pysm version.


Donations

Hey there!
First of all, big congratulations on your work here :)  You've made a really nice editor and I see that it is being actively developed and improved, which is nice. Hopefully it will be a good competitor to Sublime in the near future!
Since my C skills are not great and I don't know Lua (I intend to learn it tho), I thought I could help some other way, by giving you a nice treat and incentive in the form of money. So, I think it would be nice to setup a little section in the README file with instructions on how to donate, maybe via PayPal and Bitcoin or something along those lines, if you're willing to accept donations.
I have to stress again that this is a really cool project and I'd like to want to develop into a more popular alternative to the current scenario and I feel that a little financial incentive is always a nice thing, besides being the only way I can help at the moment.
Thanks!

I think GitHub sponsors would be a good fit in this case, I think GitHub is even matching donations for now, so it's effectively double what you'd get from just PayPal or something.

@pta2002 I took your suggestion and set up github sponsors for my account.
In regard to one-off contributions I could make a project page for lite on itch.io which would allow people to "pay what they want" if there's any interest in this.

+1 for creating a project page for lite on itch.io.

I can also agree on the itch.io idea, but I've just checked and they currently do not support Bitcoin as a payment since Stripe dropped it, so I think you could also provide an address for people that want to donate via BTC (like me :P).


📝 improve dotnet release versions section

Change rules about .NET release version (LTS, STS, .NET Standard 2.1)
Display the list of currently supported .NET versions, with their official End of Support
Add .NET 7 as a target framework for the library

Note that I did not see any changes needed to be done for .NET 7, nor did I see any noticeable performance improvement.

Note that benchmarks and tests need to be updated to target this additional runtime version too.

Using Directory.Build.props can help in centralizing and syncing the different runtime versions across projects.

For the readme, perhaps we can simplify the support structure to something along the lines of:
SurrealDb.Net targets .NET versions that are in support by Microsoft.

Additionally, SurrealDb.Net targets .NET Standard 2.1 explicitly for the Unity ecosystem.

A link to the Microsoft .NET support window might be helpful too to clarify the difference between STS/LTS, exact dates from the source. This also covers the overlap that exists for a short period between .NET releases, which is technically not covered by the current explanation.

Note that benchmarks and tests need to be updated to target this additional runtime version too.

I tested these projects locally with .NET 7, but yes, I commit & push the upgrade.

Using Directory.Build.props can help in centralizing and syncing the different runtime versions across projects.

Using this file is planned to centralize used packages, versioning, etc... I think there is not enough projects in the solution to implement it at the moment but it can be a nice addition later.


Jupytext notebooks to html docs

Adding script to execute files examples/*_notebook.py and store output under docs/notebook_build/*_notebook.html.
TODO:

Set up CI to automatically execute script during Release (?)
Link Sphinx docs to generated html
Remove colab links in notebooks

Partial implementation for solving https://github.com/delvtech/elf-simulations/issues/223

Codecov Report
Patch and project coverage have no change.

Comparison is base (f5b7607) 85.88% compared to head (980debc) 85.88%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #465   +/-   ##
=======================================
  Coverage   85.88%   85.88%
=======================================
  Files          32       32
  Lines        2636     2636
=======================================
  Hits         2264     2264
  Misses        372      372

Flag
Coverage Δ

unittests
85.88% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


⚠ Bofrost.at has degraded performance

In 878022f, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2988 ms

Resolved: Bofrost.at performance has improved in cf9a5dc after 6 minutes.


test(network): add test utility to create network config connected to broadcast channels

feat(common): move find_free_port to papyrus_common and add find_n_free_ports
test(network): add test utility to create network config connected to broadcast channels

This change is


feat: format test runs certification compliant with CIP-0096 ( PLT-6087)

Summary by CodeRabbit

New Feature: Introduced Level 1 certification functionality, including new parsers for certification input and issuer information.
New Feature: Added the ability to optionally include a report content ID in the Run data type.
Refactor: Renamed various routes and functions to reflect the focus on Level 1 certifications.
New Feature: Modified several functions to accept a DB.CertificationLevel parameter, allowing for more flexible certification processes.
New Feature: Updated AuditorCertificationInput and introduced CertificationInput types to handle additional certification data.
New Feature: Enhanced createCertification function to handle dry run scenarios, upload certification reports to IPFS, and create certification metadata.
Chore: Temporarily disabled the certifyRuns function.

Limit the certificationIssuer to 64 chars

Looks good on the code. I'll need to see through the tool usage to be sure

@bogdan-manole ,
After fixes in FE as per https://github.com/input-output-hk/dapps-certification-web/pull/8#issuecomment-1725318612,
POST https://excuse.ro/run/c65be64c-be5b-4761-b0a6-c3da4d6687fa/certificate failed with error 403 - DApp subject not available
payload -
{"certificateIssuer":{"name":"test","social":{"contact":"test@test.com","website":"test.com"}},"disclaimer":"test","scripts":[{"scriptHash":"1234567890123456789012345678901234567890123456789012345678901234","smartContractInfo":{"era":null,"compiler":null,"compilerVersion":null,"optimizer":null,"optimizerVersion":null,"progLang":null,"repoUrl":null}}],"subject":"test","summary":"test"}

Looks like CertificationInput Model doesn't have subject(mandatory) in it. This needs to be fixed either in FE or BE. Please check and update


SharePoint new list experience Issues/Bugs

Per the suggestion of @reedpamsft I'm submitting a series of issues that we've found while working with the new list experience in SharePoint. There are more but they're somewhat intermittent and harder to pin down. It would be ideal if there were a way for users to submit issues with the UX/UI more easily, but I do very much appreciate your openness to having these posted here.

When filtering on a column, the filterable values to select from are limited to values in the list currently loaded into memory. See video attached below
View names in the horizontal tabs do not show the entire name of the view in some cases and the title area cannot be resized. This can cause issues when the view name is lengthy where the differentiator of the view name is at the end of the title
No way to choose what order the views how up in and they are not alphabetical.
Similar to issue 1, If there are many (over 500) items in a list and you are trying to delete them. If you scroll down and select all and delete, the items are deleted. The view says there are no item in the list but there are still hundreds remaining and you need to refresh the page to see them.

Video detailing issue 1
https://github.com/user-attachments/assets/6615ec39-f719-4102-9492-b4c5440edc87
Please feel free to reach out to myself or @sympmarc for more details.

@juliemturner thanks for the details!  There should be a button in the UI (top right corner; "Provide feedback to Microsoft") that works to submit issues; let me know here if something about it isn't working.
Anyway, I'll work on getting these assigned to the right folks on the team to look into them.

Any update on this?
Dear @tpodugu-ms, @arkogupta, @jgupta-msft, this issue is also under current support or in backlog tasks for Lists?

@jgupta-msft Thank you for the update and support on related topics.
Best regards,


update testcase reference

What type of PR is this?
/kind documentation
What this PR does / why we need it:
Commit 9dd052373334b99b1508035c9d02c1b8771f0660 moved the location of kubean_testcase.md. This PR adjusts sources to changes.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Thank you for your interest in and contributions to the Kubean project.
/lgtm


rust: unable to run rustfmt on newly created devenv project.

Describe the bug
Created a new devenv project and enabled rust language support. The rustfmt binary seems to be present on the environment since it's part of the default toolchain, but trying to invoke it fails with an error. Same result when trying to run cargo fmt

Looking at this rustfmt issue it seems like a workaround is to set LD_LIBRARY_PATH, however as shown in the previous screenshot, the LD_LIBRARY_PATH as computed by devenv is correct ${DEVENV_PROFILE}/lib, and also the offending dylib is present in that path. However I'm still not able to determine why rustfmt is unable to find it.
To reproduce
Enabled rust support via languages.rust.enable = true; and no other changes.
Version
devenv: 0.6.2
Environment is MacOS Ventura 13.3.1 (22E261) x86_64-darwin.

Related issue https://github.com/cachix/devenv/pull/532

Solved using nixpkgs stable 22.11 on devenv.yaml like this:
inputs:
  nixpkgs:
    url: github:NixOS/nixpkgs/22.11
  fenix:
    url: github:nix-community/fenix
    inputs:
      nixpkgs:
        follows: nixpkgs

Now cargo fmt and rustfmt work as expected.


[WIP] run foreign arch + use chroot

Seems like good features to me.
One crazy idea, though: I'm assuming the chroot artifact right now is some tarball.

Yes

What if it was an OCI image with a specific format instead? And you could put the bzImage and/or rootfs in there.
There are nice advantages to this:

you can use dockerfiles or other standard infra to build chroots
builds in (1) are cached and easy to iterate on
artifacts can be trivially pushed to dockerhub, quay, github registry, or some private thing
vmtest could have built-in image downloading facilities. and this is all cached for us via an OCI library or something

Not sure if it's overkill or not. Just putting it out there.

I think there could be value, but at the same time adds more layers of tooling/services than could be required.
It would probably help in getting the right init.sh file in the image though :), but feels more feature rich  while using bare tgz to ship a rootfs is the MVP?

Yeah tgz is a good starting point. No need to overcomplicate it to begin with if you don't see immediate value

Thanks for the feedback, closing this draft PR and will submit independent PRs for each of those commits. We can discuss the details of each there.


fix(TCOMP-500): update nexus url in unit tests

Please check if the PR fulfills these requirements

[x] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)

What is the current behavior? (You can also link to an open issue here)
Some unit tests use the old nexus url currentlly for branch 0.13
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information:

Pull request test result: failure :x:

Pull request test result: failure :x:

Pull request test result: success :star:


Trouble with eager loading

Having trouble with eager loading and using hashid.
@item = Item.includes(:addons, {:addons => :sides}).find_by_hashid(params[:id])
This will work only if params is a hashid, not an integer id. Otherwise "Couldn't find Item"
@item = Item.includes(:addons, {:addons => :sides}).find(params[:id])
This will work only if params is an integer id, not a hashid. Otherwise "record is not found"

Which version of hashid-rails are you using? What is the behaviour you're expecting?
Also (probably not related) but I'm not familiar with the syntax you're using in includes; does it work if you just do
@item = Item.includes(addons: :sides).etc

(without the initial :addons param)?

hashid-rails (0.7.0)
The extra {:addons => :sides} param also includes the sides model within the addons model. Without this additional param and only the following:
@item = Item.includes(:addons).find_by_hashid(params[:id])
Still has issues.

I've pushed up a new version (1.1.1) that addresses this issue. It's fixed here: https://github.com/jcypret/hashid-rails/pull/39.


[BUG] setuptools>=60.0.0 causes virtualenv to create abnormal tree structure on ubuntu 22.04

setuptools version
setuptools 60, 61, 62
59.x was the last version I found to not cause trouble. This also happens to be the default version installed with ubuntu 22.04 via apt.
Python version
Python 3.10
OS
Ubuntu 22.04
Also, I was unable to reproduce this on python:3.10-buster
Additional environment information
No response
Description
Installing setuptools==62.1.0 causes virtualenv venv to create an abnormal directory structure. Uninstalling setuptools solves the problem. This is 100% reproducible in ubuntu:22.04 docker image (ubuntu@sha256:06b5d30fabc1fc574f2ecab87375692299d45f8f190d9b71f512deb494114e1f)
The failure of virtualenv also affects poetry, which has no error checking for venv activate and will attempt to modify system packages when it thinks the venv is activated but it is not.
Without setuptools, venv/bin exists. With setuptools, venv/local/bin exists and no venv/bin dir exists.
Expected behavior
Setuptools does not interfere with virtualenv directory structure.
How to Reproduce

Create Dockerfile:FROM ubuntu:22.04

RUN apt-get update
RUN apt-get install -y python3 python3-pip python3-virtualenv tree
RUN pip install setuptools==62.1.0 ; \
    virtualenv venv ; \
    tree -L 3 venv ; \
    . venv/bin/activate

Build it.
Notice error.

Output
$ cat Dockerfile
FROM ubuntu:22.04

RUN apt-get update
RUN apt-get install -y python3 python3-pip python3-virtualenv tree
RUN pip install setuptools==62.1.0 ; \
    virtualenv venv ; \
    tree -L 3 venv ; \
    . venv/bin/activate
$ docker build -t test1 .
Sending build context to Docker daemon  24.01MB
Step 1/4 : FROM ubuntu:22.04
 ---> f0b07b45d05b
Step 2/4 : RUN apt-get update
 ---> Using cache
 ---> f3a881e3158b
Step 3/4 : RUN apt-get install -y python3 python3-pip python3-virtualenv tree
 ---> Using cache
 ---> 1b02afb3b2a1
Step 4/4 : RUN pip install setuptools==62.1.0 ;     virtualenv venv ;     tree -L 3 venv ;     . venv/bin/activate
 ---> Running in 5a7b54dc3a32
Collecting setuptools==62.1.0
  Downloading setuptools-62.1.0-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 8.8 MB/s eta 0:00:00
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 59.6.0
    Not uninstalling setuptools at /usr/lib/python3/dist-packages, outside environment /usr
    Can't uninstall 'setuptools'. No files were found to uninstall.
Successfully installed setuptools-62.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
created virtual environment CPython3.10.4.final.0-64 in 308ms
  creator CPython3Posix(dest=/venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
    added seed packages: pip==22.0.2, setuptools==59.6.0, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
venv
|-- lib
|   `-- python3.10
|-- local
|   |-- bin
|   |   |-- activate
|   |   |-- activate.csh
|   |   |-- activate.fish
|   |   |-- activate.nu
|   |   |-- activate.ps1
|   |   |-- activate_this.py
|   |   |-- deactivate.nu
|   |   |-- pip
|   |   |-- pip-3.10
|   |   |-- pip3
|   |   |-- pip3.10
|   |   |-- python -> /usr/bin/python3
|   |   |-- python3 -> python
|   |   |-- python3.10 -> python
|   |   |-- wheel
|   |   |-- wheel-3.10
|   |   |-- wheel3
|   |   `-- wheel3.10
|   `-- lib
|       `-- python3.10
`-- pyvenv.cfg

6 directories, 19 files
/bin/sh: 1: .: cannot open venv/bin/activate: No such file
The command '/bin/sh -c pip install setuptools==62.1.0 ;     virtualenv venv ;     tree -L 3 venv ;     . venv/bin/activate' returned a non-zero code: 2

Workaround / fix
I have verified with 62.1.0 that changing $HOME/.local/lib/python3.10/site-packages/distutils-precedence.pth from:
import os; var = 'SETUPTOOLS_USE_DISTUTILS'; enabled = os.environ.get(var, 'local') == 'local'; enabled and __import__('_distutils_hack').add_shim();

to
import os; var = 'SETUPTOOLS_USE_DISTUTILS'; enabled = os.environ.get(var, 'stdlib') == 'local'; enabled and __import__('_distutils_hack').add_shim();

Solves the problem.
See also

https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6000
https://github.com/pypa/setuptools/compare/v59.8.0..v60.0.0#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7L57

Thank you very much @danielhoherd for reporting this.
I did a quick experiment with Fedora:
> docker run --rm -it fedora:35

python3 -VV
# Python 3.10.2 (main, Jan 17 2022, 00:00:00) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)]

dnf install -y tree python3-pip python3-virtualenv
dnf remove -y python3-setuptools

pip --version
# pip 21.2.3 from /usr/lib/python3.10/site-packages/pip (python 3.10)
virtualenv --version
# virtualenv 20.8.1 from /usr/lib/python3.10/site-packages/virtualenv/__init__.py

python3 -m pip install setuptools==62.1.0 ; \
    virtualenv venv ; \
    tree -L 3 venv ; \
    . venv/bin/activate

And this seems to be working fine (unless there is something wrong with the script above, or something I did not manage to reproduce quite right):
venv
├── bin
│   ├── activate
│   ├── activate.csh
│   ├── activate.fish
│   ├── activate.nu
│   ├── activate.ps1
│   ├── activate_this.py
│   ├── deactivate.nu
│   ├── pip
│   ├── pip-3.10
│   ├── pip3
│   ├── pip3.10
│   ├── python -> /usr/bin/python3
│   ├── python3 -> python
│   ├── python3.10 -> python
│   ├── wheel
│   ├── wheel-3.10
│   ├── wheel3
│   └── wheel3.10
├── lib
│   └── python3.10
│       └── site-packages
├── lib64
│   └── python3.10
│       └── site-packages
└── pyvenv.cfg

If this behaviour is specific to debian based distributions... Is there any chance it is being caused by the customisations enabled by the _distutils_system_mod hook?
Regarding the suggested fix, I don't think the setuptools project wants to revert to the previous behaviour of using the local distutils...
The way best going forward would be finding out how the latest changes in https://github.com/pypa/disutils are affecting the installation schemas/templates used by virtualenv and think how we can fix that while still keeping the latest improvements.

Hi @danielhoherd, I also checked it with Alpine Linux and could not reproduce the error:
> docker run --rm -it alpine:3.15.4

apk add --update python3 py3-pip tree
python3 -m pip install -U setuptools==62.1.0 virtualenv
python3 -m virtualenv venv
tree -L 3 venv

venv
├── bin
│   ├── activate
│   ├── activate.csh
│   ├── activate.fish
│   ├── activate.nu
│   ├── activate.ps1
│   ├── activate_this.py
│   ├── deactivate.nu
│   ├── pip
│   ├── pip-3.9
│   ├── pip3
│   ├── pip3.9
│   ├── python -> /usr/bin/python3
│   ├── python3 -> python
│   ├── python3.9 -> python
│   ├── wheel
│   ├── wheel-3.9
│   ├── wheel3
│   └── wheel3.9
├── lib
│   └── python3.9
│       └── site-packages
└── pyvenv.cfg

There seems to be a chance the potential fix requires some coordination between _distutils_system_mod and the usage
virtualenv makes of distutils. Maybe also pypa/distutils.
@jaraco do you have any thoughts about this issue?

I just upgraded multiple computers to Ubuntu 22.04 and all of them have this problem. Replacing os.environ.get(var, 'local') with os.environ.get(var, 'stdlib') fixes the problem.

Having this issue on WSL Ubuntu 22.04. This export SETUPTOOLS_USE_DISTUTILS=stdlib works around the issue.

The following snip passes on every failing debian based image listed above:
docker run -e SETUPTOOLS_USE_DISTUTILS=stdlib --rm -ti "$IMAGE" /bin/bash -xc 'apt-get update && apt-get install -y python3 python3-pip tree ; hash -r ; pip3 install virtualenv setuptools==62.1.0 ; virtualenv venv ; tree -L 3 venv ; . venv/bin/activate ;'

There seems to be a chance the potential fix requires some coordination between _distutils_system_mod and the usage
virtualenv makes of distutils. Maybe also pypa/distutils.

Yes, I think you're right.
The fact that the workarounds above happen to work around the issue is because they're disabling the transitional codepath where setuptools supplies distutils.
I observe the issue does not occur when using python -m venv so the issue is unique to virtualenv.

I used this dockerfile:
from ubuntu:22.04
RUN apt update
RUN apt install -y python3 python3-pip python3-virtualenv tree
RUN pip install -U setuptools
RUN virtualenv venv
CMD tree -L 3 venv

Because it allows me to see the failed expectation but also replace it and inspect the environment.
The problem can be observed by adding a breakpoint to virtualenv/discovery/py_info.py:88:
root@9b995eb67229:~# cat /usr/lib/python3/dist-packages/virtualenv/discovery/py_info.py | head -n 95 | tail -n 15
            # we cannot use distutils at all if "venv" exists, distutils don't know it
            self.distutils_install = {}
        else:
            self.sysconfig_scheme = None
            self.sysconfig_paths = {u(i): u(sysconfig.get_path(i, expand=False)) for i in sysconfig.get_path_names()}
            self.distutils_install = {u(k): u(v) for k, v in self._distutils_install().items()}

        breakpoint()

        # https://bugs.python.org/issue22199
        makefile = getattr(sysconfig, "get_makefile_filename", getattr(sysconfig, "_get_makefile_filename", None))
        self.sysconfig = {
            u(k): u(v)
            for k, v in [
                # a list of content to store from sysconfig

And inspecting the value:
root@9b995eb67229:~# python3 -m virtualenv venv
> /usr/lib/python3/dist-packages/virtualenv/discovery/py_info.py(91)__init__()
-> makefile = getattr(sysconfig, "get_makefile_filename", getattr(sysconfig, "_get_makefile_filename", None))
(Pdb) self.distutils_install
{'purelib': 'local/lib/python3.10/dist-packages', 'platlib': 'local/lib/python3.10/dist-packages', 'headers': 'usr/include/python3.10', 'scripts': 'local/bin', 'data': 'local'}

The fact that scripts is local/bin is probably what is leading virtualenv to install executables to that directory.
My guess is that something about the assumptions made between _distutils_system_mod and virtualenv are in conflict.
Probably what we need is someone from virtualenv to analyze what expectation is being missed here and determine what's the best way to meet that expectation. @gaborbernat Do you have any advice here?
I also observe that virtualenv has a codepath that bypasses distutils if a venv scheme is supplied. Perhaps the best thing would be for debian to supply that install scheme. @FFY00 Do you have a recommendation on what Debian should be doing to support a virtualenv?
@doko42, It does appear to me you authored the patch. Will you be able to help work through this issue?

I also observe that virtualenv has a codepath that bypasses distutils if a venv scheme is supplied. Perhaps the best thing would be for debian to supply that install scheme. @FFY00 Do you have a recommendation on what Debian should be doing to support a virtualenv?

Yes, the easiest way to fix this would be for Debian to provide a venv scheme, as described in https://github.com/python/cpython/issues/89576. This issue exists canonically in CPython since 3.10, due to the addition of sysconfig._get_preferred_schemes, but also exists in patched Python installations if the vendors aren't careful with their patching.
cc @stefanor

I've filed a bug with Debian about this problem, since as far as I can tell nobody explicitly informed them that there is a problem: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1022749

Ran into the same bug under Linux Mint 21 with Python 3.10

I observe the issue does not occur when using python -m venv so the issue is unique to virtualenv.

This "work-a-round" works for me, e.g.:
python3 -m venv .venv
poetry install

I saw a setuptools CVE today so I came back to revisit this, and it appears that this is no longer an issue on ubuntu 22.04 with all the latest packages. I'm not sure what solved the issue though. I just ran a several tests with setuptools==65.6.3 (which required me to install python3.10-venv, which was version 3.10.6-1~22.04.2) and was unable to reproduce the original problem.
This is also not a problem with the current ubuntu 22.04 system setuptools, which is 59.6.0-1.2 and likely never had the problem.

I saw a setuptools CVE today so I came back to revisit this, and it appears that this is no longer an issue on ubuntu 22.04 with all the latest packages. I'm not sure what solved the issue though. I just ran a several tests with setuptools==65.6.3 (which required me to install python3.10-venv, which was version 3.10.6-1~22.04.2) and was unable to reproduce the original problem.
This is also not a problem with the current ubuntu 22.04 system setuptools, which is 59.6.0-1.2 and likely never had the problem.

Likely due to this https://github.com/pypa/virtualenv/pull/2415 as I can easily recreate this when using an older virtualenv version.

any progress with this?
I am currently trying to run pipenv sync in my project which is failing with this error as well :face_plam:
 AttributeError: install_layout. Did you mean: 'install_platlib'?
I tried almost everything... even doing export SETUPTOOLS_USE_DISTUTILS=stdlib as well, which is not working as well :(
I am in Ubuntu Mantic (23.10)
Python 3.10.14
pip 24.0

@khaled4vokalz please check the comments above, specially https://github.com/pypa/setuptools/issues/3278#issuecomment-1118317549, https://github.com/pypa/setuptools/issues/3278#issuecomment-1289906845.
Please note that the problem might not have been solved for the specific versions of Python/OS/pip/setuptools that you are using therefore you might have to reconsider those.

setuptools 60 didn't ship in Ubuntu 22.04, it came later in 23.04.
The setuptools solution to this problem is the addition of the venv scheme to the python interpreter. That isn't something that is reasonable to do in a stable Ubuntu, to resolve a bug like this, that occurs only when a package is updated to a version newer than Ubuntu ships. That's outside of what's reasonable for Ubuntu support.
I suggest leaving your system setuptools as shipped by Ubuntu, and using the system virtualenv to create virtualenvs. Use the newer setuptools inside virtualenvs.
Or use venv instead of virtualenv.

As I review this, I believe there's nothing more for Setuptools to do here, so I'm closing the ticket. Happy to re-open if that's not the case.

thank you


[core] Fix incorrect typings for hexToRgb

In #14391 the Function convertHexToRGB was renamed to hexToRgb.
Unfortunately, the typings were not updated to reflect the above change :(
Also, an additional Function was exported, hslToRgb,
This PR updates the hexToRgb typings and adds an export for hslToRgb.

[x] I have followed (at least) the PR section of the contributing guide.

@whitneyit Much appreciated. Thanks

No problem 😊


Failed to compile after eject

When ejecting the project right out of the box, it fails to compile after running the eject script.
Steps to reproduce
$ npx create-react-app my-app
$ cd my-app
$ yarn eject
$ yarn start

Expected behavior
Project compiles and webpack dev server starts
Actual behavior
Error message:
Failed to compile.

./src/index.js
Error: [BABEL] /Users/syberen/projects/my-app-js/src/index.js: Cannot find module '@babel/plugin-transform-react-jsx' (While processing: "/Users/syberen/projects/my-app-js/node_modules/babel-preset-react-app/index.js$1")
    at Array.reduce (<anonymous>)

Duplicate of #6099


Documentation or example needed

Hi,
I came across your code and I would love to use this for building tutorials in our app and I am wondering if you have some images or examples of  how this works so it can help us choose.
Thanks,
Vijay

Hello,
Thanks for your interest! I want to provide documentation on my code and some examples but I don’t have time for it these days.
Simply put,
The main use pattern is like this. (let’s say you have two buttons, button1 and button2):
[CPTutorial displayWithName:@“main screen" actions:^{
[self.button1 displayBalloonTip:@“You can see your status by tapping here!”];
[self.button2 displayBalloonTip:@“Tap here to post something!"];
}];
The name ‘main screen’ is for your own reference, it can be anything as long as it’s unique. You can put this in viewDidAppear: and it will be executed once (as long as users don’t remove and reinstall your app from App Store). The system just queues the actions inside the actions handler, so button1 will first display the tip, and when it’s closed, button2 will be displayed. They won’t appear at the same time. You can also put actions not related to the tutorial, if you want to run them just once for some reason (but they won’t be executed sequentially, they will all execute at the same time).
I will be adding more features just when I have some time. I hope it helps you, and if you use it I’d be glad if you leave me some feedback so I can make it better when I have time.
Cheers,
Can Poyrazoğlu
http://canpoyrazoglu.com
0530 155 6670
Sent from my MacBook Pro

On 16 Jul 2015, at 01:11, vijayj<EMAIL_ADDRESS>wrote:
Hi,
I came across your code and I would love to use this for building tutorials in our app and I am wondering if you have some images or examples of how this works so it can help us choose.
Thanks,
Vijay
—
Reply to this email directly or view it on GitHub https://github.com/can16358p/CPTutorial/issues/1.


Incremental rendering causes images to be loaded twice

Since images are loaded both by the incremental rendering frame and again in the main document by the application, they will be loaded twice. This can be accounted for if you are using done-ssr/zones/push-images but is a problem if images are served from a CDN because while the images might load fully in the IR frame, when it gets detached the images won't be loaded in the main document.

Not sure this is a bug as it is inherit in doing something multiple times.

We should probably at least document this.


Spaces in the path end up with truncated paths.

name: Bug report
about: Create a report to help us improve

Describe the bug
Spaces in the path end up with truncated paths.
To Reproduce
const simple-thumbnail = require('simple-thumbnail')

const src = '/Users/myuser/Movies/My Movie With Spaces.mp4';
const src = '/Users/myuser/Movies/Thumbs/My Movie With Spaces.mp4.png';
genThumbnail(src, dest, '200x?')

Expected behavior
Spaces should be supported and thumbnails should be generated without error
Environment (please complete the following information):

OS: macOS 10.14.2
Version (ffmpeg): 4.1
Linking: static

Additional context
Add any other context about the problem here.

I believe you need to escape the spaces. Try:
const simple-thumbnail = require('simple-thumbnail')

const src = '/Users/myuser/Movies/My\ Movie\ With\ Spaces.mp4'
genThumbnail(src, dest, '200x?')

I'll try testing this myself and look into adding a unit test. Thanks for bringing this up :smile:

Nevermind, that doesn't seem to work. I'll get right on it :+1:


[CT-3470] [Bug] dbt deps fails silently if user has no write perms to project directory

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
In trying to run dbt deps within a container, I found that it was failing silently if run in a project directory where I don't have write permissions -- assumedly because it is trying to write to the package-lock.yml file and cannot.
Expected Behavior
Should fail loudly with an error about inability to write to package-lock.yml file. Could potentially also offer a CLI option to ignore that / proceed without trying to write to the lock file.
Steps To Reproduce

Create a dbt project directory
Switch to a user without write permissions to that directory
Within that project directory, run dbt deps. This will fail silently.

Relevant log output
Running from a directory where I do not have write permissions, I get a silent failure:

$ whoami
flytekit
$ ls -al
total 32
drwxr-xr-x 5      501 dialout  4096 Dec  6 22:16 .
drwx------ 1 flytekit flytekit 4096 Dec  6 22:08 ..
-rw-r--r-- 1      501 dialout    21 Jan  1  1970 README.md
-rw-r--r-- 1      501 dialout   591 Jan  1  1970 dbt_project.yml
drwxr-xr-x 3      501 dialout  4096 Jan  1  1970 models
-rw-r--r-- 1      501 dialout   139 Jan  1  1970 packages.yml
drwxr-xr-x 2      501 dialout  4096 Jan  1  1970 remote_config
drwxr-xr-x 2      501 dialout  4096 Jan  1  1970 seeds
$ dbt deps
$

Running from directory with the same contents and with write permissions, I get normal behavior:
$ whoami
flytekit
$ ls -al
total 32
drwxr-xr-x 5 flytekit flytekit 4096 Dec  6 22:44 .
drwx------ 1 flytekit flytekit 4096 Dec  6 22:08 ..
-rw-r--r-- 1 flytekit flytekit   21 Dec  6 22:09 README.md
-rw-r--r-- 1 flytekit flytekit  591 Dec  6 22:09 dbt_project.yml
drwxr-xr-x 3 flytekit flytekit 4096 Dec  6 22:09 models
-rw-r--r-- 1 flytekit flytekit  139 Dec  6 22:09 packages.yml
drwxr-xr-x 3 flytekit flytekit 4096 Dec  6 22:09 remote_config
drwxr-xr-x 2 flytekit flytekit 4096 Dec  6 22:09 seeds
$ dbt deps
22:45:43  Running with dbt=1.7.3
22:45:43  Updating lock file in file path: /root/dbt_2/package-lock.yml
22:45:43  Installing dbt-labs/dbt_utils
22:45:44  Installed from version 1.1.1
22:45:44  Up to date!
22:45:44  Installing Snowflake-Labs/dbt_constraints
22:45:44  Installed from version 0.6.2
22:45:44  Up to date!
$

Environment
- OS: Linux 61732b189083 6.4.16-linuxkit #1 SMP PREEMPT Thu Nov 16 10:49:20 UTC 2023 x86_64 GNU/Linux
- Python: Python 3.11.4
- dbt: 1.7.3

Which database adapter are you using with dbt?
postgres
Additional Context
No response

@JoeKellyRVA Fair! I think our options are:

Fail loudly
Handle the error and proceed (without writing the lock file)

I'd rather pick one behavior or the other, rather than trying to offer both with (yet another) CLI flag for configuring this behavior. My preference is for option (2).
Would you be interested in contributing that fix?
Of course, what I'd really advise is generating the lock file, checking it into version control, and ensuring predictable/reproducible builds from your container :)


Added docker support.

I plan on using Kafdrop for a project I'm working, and I needed it dockerized. Figured I'd commit this back since I saw an open issue. Feel free to review, accept, reject, etc.
Uses maven-assembly to build the tar, then spotify docker-maven-plugin to build/push the docker image. I have not pushed it anywhere, as I do not have any experience pushing to dockerhub.
I built with
mvn clean package assembly:single docker:build
I ran with
docker run -d -p 9000:9000 -e ZOOKEEPER_CONNECT=master.mesos:2181/kafka kafdrop
When running in marathon, the memory constraint will automatically trigger JVM heap args to get set. Also, JMX should still be accessible, but you'll need to look at the randomly assigned port.

Many thanks for this PR! I'm getting the following error when running the docker:build step of maven:
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.4.9:build (default-cli) on project kafdrop: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/<IP_ADDRESS>] failed: Connection refused -> [Help 1]

Oops... I guess I should have mentioned my underlying environment...

CentOS 7 (any Linux should be fine)
Docker 1.9 (anything >= 1.9 should be fine)
Run as a user with privileges to talk to the Docker daemon (this can be root, a user in the "docker" group, OR alternatively, you could configure Docker to listen on a TCP port such as 2375). Simplest thing IMHO is to add yourself to the docker group.

Hopefully that helps!

The issue was with Docker for Mac:
https://forums.docker.com/t/spotify-docker-maven-plugin-cant-connect-to-localhost-2375/9093
Upgrading to the latest spotify plugin (0.4.13) fixes the problem.
I also had to run dos2unix on src/main/docker/kafdrop.sh as the new lines were causing some obscure docker startup issues:
https://forums.docker.com/t/standard-init-linux-go-175-exec-user-process-caused-no-such-file/20025
Otherwise it looks good. I'll merge the PR now and update the spotify plugin version after. Not sure about a good solution for the new line issue, for now I'll update the wiki to indicate how to work around it.
Thanks again for this PR, it's much appreciated!


[CCI] Remove Split buttons from OUI docs

Description
Removed Split buttons section from OUI docs

Issues Resolved
https://github.com/opensearch-project/oui/issues/805
Check List

[ ] New functionality includes testing.
[ ] New functionality has been documented.
[x] All tests pass

[x] yarn lint
[x] yarn test-unit

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Thanks Sergey.


Refactored rotation_mode in Node3D

Fixed #62225. Contained fix for non-orthonormalized Quaternion bug.
set_euler_scale() in Node3D::_update_local_transform() has not work and reset rotation value in Quaternion and Basis mode in Node3D. This PR fixed it.

@reduz Refactored. DIRTY_LOCAL has gone. And the local_transform may temporarily hold a non-orthogonal matrix, but it will be orthogonalized by get_transform() as the getter.

@TokageItLab No, thats not right either. Those variables do need to exist because it allows you to set rotation and scale separately without losing floating point precision. The problem is in that function alone from what I can gather.

Those variables do need to exist because it allows you to set rotation and scale separately without losing floating point precision.

@reduz You have a point. Finally, I make changes as follow:

Fixed _update_local_transform()
In set_rotation_edit_mode(), include conversion when changing from Basis to other modes to prevent scale and rotation being reset; if there is never a change to Basis mode, there should be no effect on those values
Replaced data.local_transform with get_transform() to prevent _update_local_transform() validation from missing

@reduz Ready for review. For consistency, I added a quaternion separate from local_transform as well as rotation, scale. Without it, it is not possible to separate quaternion from scale[^1].
[^1]: It is not possible to both set scale to quaternion when loading a scene and to operate scale independently of quaternion.

I am very sorry, I misunderstood the underlying problem and gave bad feedback to Tokage, then realized everything was on the wrong path. This is my responsibility as I now realize I did a bad job with the initial PR implementing this feature, so I will take some time to understand how to fix this properly and do another pull request.


add my application page for users

The page is done but the function of showing what jobs have the current user applied to needs to be done in the future.


Replace rfc3987 with rfc3986 - issue #36

Currently, on the the URI scheme is set to be required as that was the minimum to get all tests passing.
Closes #36

Thanks @shakeelmohamed we really appreciate the contribution!

No problem, thanks for the quick merge @pwalsh!


Values.yaml file is missing

I have used this before and when I did a git clone, there was a openshift-logforwarding-splunk/charts/openshift-logforwarding-splunk/values.yaml file. Now even though the ReadME file references the values.yaml file, it does not exist in latest pull. Should I just copy old one over, or would it still work with latest version?

@jettc I pushed an update (15a83bc32f1db6e5b8ee0ca5cdecf347620c2433). It now correctly references the location of the chart and the associated values file

Closing as assets have been updated


Development

Adds up-to-date mSL for both mIRC and AdiIRC.
Fixes multiple wrong highlighting, such as single line aliases.

The msl.json seems to work well on https://github-lightshow.herokuapp.com/ :) I have no issues merging if you want it in. Honestly, this is quite a bit out of my league. I was surprised it even worked at all when I gave it a try, lol.
If you want the repo to make it easier, I can transfer the ownership to you. Figured that adding you as a contributor would let you merge and do stuff but Im not sure exactly what it does.

I do have the access to merge and do multiple things, but I wanted to give you the chance to review.

Honestly homes, you're doing some real incredible stuff with this. Your VSCode extension is leagues better than the older one that was on the market.
I'm happy to pass it on. It was your work that made it possible in the first place, I feel it's in good hands, and I'm excited to see where it can go.

I had been working on my on extension since Sophist-UK commented on my pull request on lol2ks repo. I did not have the confidence to release it, but after I saw that part of my work was actually being used it gave me confidence to go for it. So thank you for putting this together. I will try to add as much features on that extension as possible. (Currently thinking of dialog editing support). I am currently just now learning how to use the VSCode API, but hopefully soon we get that error report working. One again thank you, and let's keep working on this to get a cool tool for others to use.

Started the repo transfer, it should be in your email inbox I think - that's what Github says anyways.
Dialog editing, as in within the msl files themselves? That'd be awesome, I always hated making them by hand.

Thanks, but won't that cause a problem on linguist's repo? I mean the transfer?
Yeah, a tab in vscode where u can edit a dialog. Thinking you would highlight your dialog code and right click to edit it or create one.

Shouldn't, the linguist fork I used to actually merge to linguist is long gone. It required a whole lot more files and a few samples.  https://github.com/github/linguist/pull/4652/files - this repo was just a way to link the grammar file.
If I understand this correctly - https://help.github.com/en/github/administering-a-repository/transferring-a-repository - it sets up a perm-redirect on my account (aside from pages) so it'll carry over anyways. If you decide to push an update upstream to linguist, can modify the link then.
Since I'm a free scrub and you have pro - you owning the repo should allow it the extra benefits as well.

If that is the case, I gladly accept. Thank you.


Hide Expressions + cleanup

In the future, please use the same pull request when implementing changes. Github automatically notices the changes if you push new commits to the branch being pull requested.


Bundler version included in macOS 11 20220501.1 doesn't match readme

Description
The readme of macOS 11 20220501.1 says that Bundler version is 2.3.12 but
bundler --version inside the virtual machine says it's 2.2.33
Virtual environments affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 10.15
[X] macOS 11
[ ] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
20220501.1
Is it regression?
No response
Expected behavior
Bundler version should be the one reported in the readme, 2.3.12
Actual behavior
bundler --version outputs 2.2.33
Repro steps

launch macOS 11 20220501.1 VM
execute a bash script with bundler --version

Hi @gianlucapisati!
Could you share your workflow as bundler --version gives me the expected result
Bundler version 2.3.13

HI @miketimofeev, thanks for the prompt reply.
I hope this screenshots helps you understanding my setup
Pipeline configuration:

Agent specification:

Job initialization:

Bundler version step:

@gianlucapisati, Could you provide which -a bundler output?

@al-cheb, sure, here it is:
$which -a bundler
/usr/local/lib/ruby/gems/2.7.0/bin/bundler
<EMAIL_ADDRESS>/usr/bin/bundler

@gianlucapisati , What's the output for each one?
echo "#1"
/usr/local/lib/ruby/gems/2.7.0/bin/bundler --version
echo "#2"
<EMAIL_ADDRESS>--version
echo "#3"
/usr/bin/bundler --version

@al-cheb, here it is:
2022-05-12T08:50:07.2614170Z [command]/bin/bash /Users/runner/work/_temp/ce3bb833-6e55-4d39-93e9-e669dd795d0d.sh
2022-05-12T08:50:07.2704850Z #1
2022-05-12T08:50:07.9915770Z Bundler version 2.2.33
2022-05-12T08:50:07.9938310Z #2
2022-05-12T08:50:08.2797050Z Bundler version 2.2.33
2022-05-12T08:50:08.2819310Z #3
2022-05-12T08:50:11.3363260Z /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.3.11) required by your /Users/runner/work/1/s/Gemfile.lock. (Gem::GemNotFoundException)
2022-05-12T08:50:11.3365740Z To update to the latest version installed on your system, run `bundle update --bundler`.
2022-05-12T08:50:11.3366540Z To install the missing version, run `gem install bundler:2.3.11`
2022-05-12T08:50:11.3368090Z 	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path'
2022-05-12T08:50:11.3369190Z 	from /usr/bin/bundler:23:in `<main>'
2022-05-12T08:50:11.3463660Z ##[error]Bash exited with code '1'.
2022-05-12T08:50:11.3512390Z ##[section]Finishing: Bundler version

@gianlucapisati,  cd ~ && bundler --version, looks like Gemfile.lock file lock the version of bundler.

@al-cheb yes you are right, it was my problem, sorry if I wasted your time 😅


Primality certificates

See https://en.wikipedia.org/wiki/Primality_certificate for an overview.
We could add:

Pratt certificates. Simple, but the calculation can be slow.
Atkin–Goldwasser–Kilian–Morain certificates. Requires some EC machinery; perhaps primeorder could be used for that.
Pocklington certificates. Those can be used for random prime generation; although it is unclear if the generated primes are "random enough".

Pratt certificates are simple in concept but requires knowing the prime factors of n - 1 which is unfeasible for big primes (anecdotally WolframAlpha uses Pratt for numbers up to max 10^10).
There is also the problem of finding a witness (i.e. an integer w s.t. w^(n - 1) ≡ 1 mod n but w^((n - 1)/p_i) ≢ 1 mod n for all prime factors p_i of n), but this seems to be much more tractable: for integer sizes on the order of 2^2048 we'd need ~7 trials to find a suitable w (the # of attempts is given by 2*ln(ln(n))).
Note for posterity: I was a bit confused by the terminology; the "Pratt certificates" are based on the "Lucas primality test" which is NOT the same as the "Lucas pseudoprime" which is what this crate implements calling it lucas_test.
Atkin–Goldwasser–Kilian–Morain certificates seem plenty more involved and before spending more time on that I think we should have a conversation about what purpose they'd serve. It seems fascinating but also: do we really need it?


Build failure: exodus

Steps To Reproduce
Steps to reproduce the behavior:

nix-shell -p exodus

Build log
warning: Nix search path entry '~/.nix-defexpr/channels' does not exist, ignoring
these 2 derivations will be built:
  /nix/store/d9h7f1a0ydal45lfzj4n9zrxrjd3s8iq-exodus-linux-x64-24.19.4.zip.drv
  /nix/store/xp499akqlv08xd5dpnszq0zvyfcjiigv-exodus-24.19.4.drv
these 18 paths will be fetched (4.84 MiB download, 17.73 MiB unpacked):
  /nix/store/z132pby4dx662gvcfykgfsfggn3kclx1-chromium-codecs-ffmpeg-extra-114023
  /nix/store/alp05x2ma1a1fygwr8khvqjjv7smrgcf-curl-8.7.1
  /nix/store/q26nv2wbmq5cnclf55hcyxq219kypr46-curl-8.7.1-bin
  /nix/store/dlb6sdppk3rncyl62l2a68q65aix7a19-curl-8.7.1-dev
  /nix/store/jr705zwbcwdp85q3q2vb2000kxkk08ad-curl-8.7.1-man
  /nix/store/25v8vyzmzky6qxbyqd53fk7b9w4krkc5-libkrb5-1.21.2
  /nix/store/15k0s0adnpkgws9yhlafba10xymc4298-libkrb5-1.21.2-dev
  /nix/store/697s9c6xjzk6jvyrq4zd4mpxvj8yy7aq-libssh2-1.11.0
  /nix/store/z2i06bxn71h23yn91rppmf4gp67fi0zh-libssh2-1.11.0-dev
  /nix/store/8c1926y0snsm1zzr9c6ykqyh4q2fyp4g-libxshmfence-1.3.2
  /nix/store/g0glbvdlp9ia1dii0hmnaxacm15vphq0-mirrors-list
  /nix/store/s0i8awy71hx98f86flsmddkql2cyiqqg-nghttp2-1.61.0
  /nix/store/6x5nz7z9ik0zanpba9gi6r7qf51ids63-nghttp2-1.61.0-dev
  /nix/store/q6mjsm84awr1l9qw8xv8rdwzll45cxbz-nghttp2-1.61.0-lib
  /nix/store/dlm0bdz7i7n8q9qazbxcr89msxr9qg3n-openssl-3.0.13
  /nix/store/9352z49flwmpwz82zd4avghkbbdv4z30-openssl-3.0.13-bin
  /nix/store/f5gss0b7m7iyy4wbv7q738bcn7zj59l4-openssl-3.0.13-dev
  /nix/store/3l6hh2j4r7d0izq7gmaiv795mrbmcwar-xorg-sys-opengl-3
copying path '/nix/store/z132pby4dx662gvcfykgfsfggn3kclx1-chromium-codecs-ffmpeg-extra-114023' from 'https://cache.nixos.org'...
copying path '/nix/store/8c1926y0snsm1zzr9c6ykqyh4q2fyp4g-libxshmfence-1.3.2' from 'https://cache.nixos.org'...
copying path '/nix/store/3l6hh2j4r7d0izq7gmaiv795mrbmcwar-xorg-sys-opengl-3' from 'https://cache.nixos.org'...
copying path '/nix/store/g0glbvdlp9ia1dii0hmnaxacm15vphq0-mirrors-list' from 'https://cache.nixos.org'...
copying path '/nix/store/jr705zwbcwdp85q3q2vb2000kxkk08ad-curl-8.7.1-man' from 'https://cache.nixos.org'...
copying path '/nix/store/s0i8awy71hx98f86flsmddkql2cyiqqg-nghttp2-1.61.0' from 'https://cache.nixos.org'...
copying path '/nix/store/25v8vyzmzky6qxbyqd53fk7b9w4krkc5-libkrb5-1.21.2' from 'https://cache.nixos.org'...
copying path '/nix/store/q6mjsm84awr1l9qw8xv8rdwzll45cxbz-nghttp2-1.61.0-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/dlm0bdz7i7n8q9qazbxcr89msxr9qg3n-openssl-3.0.13' from 'https://cache.nixos.org'...
copying path '/nix/store/6x5nz7z9ik0zanpba9gi6r7qf51ids63-nghttp2-1.61.0-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/15k0s0adnpkgws9yhlafba10xymc4298-libkrb5-1.21.2-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/697s9c6xjzk6jvyrq4zd4mpxvj8yy7aq-libssh2-1.11.0' from 'https://cache.nixos.org'...
copying path '/nix/store/9352z49flwmpwz82zd4avghkbbdv4z30-openssl-3.0.13-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/alp05x2ma1a1fygwr8khvqjjv7smrgcf-curl-8.7.1' from 'https://cache.nixos.org'...
copying path '/nix/store/f5gss0b7m7iyy4wbv7q738bcn7zj59l4-openssl-3.0.13-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/q26nv2wbmq5cnclf55hcyxq219kypr46-curl-8.7.1-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/z2i06bxn71h23yn91rppmf4gp67fi0zh-libssh2-1.11.0-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/dlb6sdppk3rncyl62l2a68q65aix7a19-curl-8.7.1-dev' from 'https://cache.nixos.org'...
building '/nix/store/d9h7f1a0ydal45lfzj4n9zrxrjd3s8iq-exodus-linux-x64-24.19.4.zip.drv'...

trying https://downloads.exodus.com/releases/exodus-linux-x64-24.19.4.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0 15993    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (56) The requested URL returned error: 403
error: cannot download exodus-linux-x64-24.19.4.zip from any mirror
error: builder for '/nix/store/d9h7f1a0ydal45lfzj4n9zrxrjd3s8iq-exodus-linux-x64-24.19.4.zip.drv' failed with exit code 1;
       last 7 log lines:
       >
       > trying https://downloads.exodus.com/releases/exodus-linux-x64-24.19.4.zip
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0 15993    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (56) The requested URL returned error: 403
       > error: cannot download exodus-linux-x64-24.19.4.zip from any mirror
       For full logs, run 'nix log /nix/store/d9h7f1a0ydal45lfzj4n9zrxrjd3s8iq-exodus-linux-x64-24.19.4.zip.drv'.
error: 1 dependencies of derivation '/nix/store/xp499akqlv08xd5dpnszq0zvyfcjiigv-exodus-24.19.4.drv' failed to build

Additional context
I'm on nixos-unstable.
Notify maintainers
@mmahut @rople380 @Craftzman7
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
warning: Nix search path entry '~/.nix-defexpr/channels' does not exist, ignoring
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.31, NixOS, 24.05 (Uakari), 24.05.20240520.5a5ac83`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/d2s8k5b83sqabpqnaikrzpl64p5w85ns-source`

Add a :+1: reaction to issues you find important.

I'm unable to reproduce. What happens if you visit the download URL in your browser?

I can download with browser or wget, but nix cant

I can reproduce:

@Craftzman7 I can reproduce today and Other people can do. I think it related with user-agent

I can't install with curl, but I can install with wget (same agent)

Same problem here, I guess they are doing some browser validation now. Changing user agent does not help (doesn't matter wget or curl).
Using requireFile seems like the only solution if they are far too much against the idea of automated downloading.

Same problem here, I guess they are doing some browser validation now. Changing user agent does not help (doesn't matter wget or curl). Using requireFile seems like the only solution if they are far too much against the idea of automated downloading.

I agree with this idea.

This still happens, can anyone implement the requireFile idea?

This still happens, can anyone implement the requireFile idea?

try this package


Fix/docs issue31462

Fixes docs issue - 31462. Replaced Newtonsoft with System.Net.Http.Json and System.Text.Json.

LGTM @michaelstonis incase you have a moment