The type initializer for 'Microsoft.Data.SqlClient.SqlConnection' threw an exception.

Describe the bug
Exception message: The type initializer for 'Microsoft.Data.SqlClient.SqlConnection' threw an exception.
Stack trace: System.TypeInitializationException: The type initializer for 'Microsoft.Data.SqlClient.SqlConnection' threw an exception.
 ---> System.InvalidOperationException: Failed to read the configuration section for enclave providers. Make sure the section is correctly formatted in your application configuration file. Error Message: Configuration system failed to initialize
 ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize
 ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Could not load type 'System.ComponentModel.AsyncCompletedEventArgs' from assembly 'System.Net.WebHeaderCollection, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. (/root/HaproxyUpdater2/Config/machine.config)
 ---> System.TypeLoadException: Could not load type 'System.ComponentModel.AsyncCompletedEventArgs' from assembly 'System.Net.WebHeaderCollection, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
   at System.Configuration.ClientConfigurationHost.OpenStreamForRead(String streamName)
   at System.Configuration.Internal.DelegatingConfigHost.OpenStreamForRead(String streamName)
   at System.Configuration.ImplicitMachineConfigHost.OpenStreamForRead(String streamName)
   at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
   --- End of inner exception stack trace ---
   at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
   at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
   at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
   at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
   --- End of inner exception stack trace ---
   at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
   at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
   at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
   at System.Configuration.ConfigurationManager.GetSection(String sectionName)
   at Microsoft.Data.SqlClient.SqlConnection..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.Data.SqlClient.SqlConnection..cctor()
   --- End of inner exception stack trace ---
   at Microsoft.Data.SqlClient.SqlConnection..ctor(String connectionString)

To reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
new SqlConnection()

Expected behavior
No exception
Further technical details
Microsoft.Data.SqlClient version: 1.0.19221.1-Preview
.NET target: Core 3.0 preview8
SQL Server version: SQL Server 2016
Operating system: Centos7
Additional context

 ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Could not load type 'System.ComponentModel.AsyncCompletedEventArgs' from assembly 'System.Net.WebHeaderCollection, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. (/root/HaproxyUpdater2/Config/machine.config)
 ---> System.TypeLoadException: Could not load type 'System.ComponentModel.AsyncCompletedEventArgs' from assembly 'System.Net.WebHeaderCollection, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

The type System.ComponentModel.AsyncCompletedEventArgs is not in System.Net.WebHeaderCollection. It looks like you're missing a dependency. SqlClient causes the configuration system to be initialized and the configuration system fails and throws. It is unlikely this is an SqlClient specific problem. If you try to use configuration directly it should fail in the same way.

Hi @pengweiqhca
Did you try @Wraith2 's suggestion?

System.Configuration.ConfigurationManager has some bug, I has rollback to use System.Data.SqlClient

Hi @pengweiqhca
FYI.. We were able to identity and fix the issue and the fix will be available in GA release for 1.0.

I still have this error with version 1.0.19269.1 by trying to create a SqlConnection with a connection string
using var connection = new SqlConnection(executionContext.ConnectionString);

With System.Data.SqlClient package worked without problems. I just switch the package and I have the error bellow.
 What is the version of System.Data.SqlClient that was working for you before? Do you know what is the version of System.Configuration.ConfigurationManager.dll you have installed? Can you also try with the latest driver?

An invalid app.config or machine.config file can cause the error to be thrown. When M.D.SqlClient loads, it looks to see if there is config information for enclave providers (related to Always Encrypted).

On my PC I also could not reproduced but deployed on Windows Server 2016 I get this error.
Working version uses System.Data.SqlClient 4.7.0 and System.Configuration.ConfigurationManager 4.6.0

@glucaci There is a similar issue #287 and we're working on removing the need for app.config. Meanwhile, can you make sure your app.config or machine.config is valid? Once they are valid, you should not see the error anymore.

Hi @glucaci, we have the fix in v1.1.0-preview2. Can you give it a try?

Hi,
Sql Providers has been a sharp learning curve and still not sure of how to get this SqlClient to show up in VS2019's DataSet Designer connection wizard, anyway, that's been worked around with manual fiddling of connection string providerName and regenerating existing DataSets from the XSD.
So, I'm just reporting that I'm blocked by this error.
I updated to the latest SqlClient 2.0.0-preview from GitHub a yesterday and get the same exception when calling Open() on an MS.Data.SqlClient.SqlConnection. I've also reinstalled the SNI package 1.1.0. in VS with NuGet on the solution and individual project levels.
From the SqlClient source, I see netfx, it's just a reference to MS.Data.SqlClient.SNI from the dotnet-core nuget repo online - netfx is the flavour of SqlClient I require as I'm developing on an asp.net (.Net 4.7.1 target) solution.
My solution has a WebApp and several a library projects. The library project that uses the new SqlClient has the SNI.dll in it's output folder .\bin\Debug\x86 or x64 but the WebApp doesn't get the dll where it's needed - WebApp\bin.
Drilling into the inner exception shows that SNI.dll couldn't be loaded from the bin\Debug\x86 folder which is the relative path of the library.
The WebApp project C:\Code\MyProduct\MyProductWeb\bin doesn't have the same relative Debug\x86 or x64 folders.
Inner Exception stack trace
  at Microsoft.Data.SqlClient.SNINativeMethodWrapper..cctor() in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\Interop\SNINativeMethodWrapper.cs:line 64
Message
Failed to load C:\Code\MyProduct\MyProductWeb\bin\x86\SNI.dll
The thrown Exception
   at Microsoft.Data.SqlClient.SNINativeMethodWrapper.UnmanagedIsTokenRestricted(IntPtr token, Boolean& isRestricted)
   at Microsoft.Data.Win32NativeMethods.IsTokenRestrictedWrapper(IntPtr token) in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\Interop\SNINativeMethodWrapper.cs:line 891
   at Microsoft.Data.ProviderBase.DbConnectionPoolIdentity.GetCurrent() in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\ProviderBase\DbConnectionPoolIdentity.cs:line 115
   at Microsoft.Data.ProviderBase.DbConnectionPoolGroup.GetConnectionPool(DbConnectionFactory connectionFactory) in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\ProviderBase\DbConnectionPoolGroup.cs:line 199
   at Microsoft.Data.ProviderBase.DbConnectionFactory.GetConnectionPool(DbConnection owningObject, DbConnectionPoolGroup connectionPoolGroup) in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\ProviderBase\DbConnectionFactory.cs:line 425
   at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\ProviderBase\DbConnectionFactory.cs:line 238
   at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\ProviderBase\DbConnectionInternal.cs:line 773
   at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\ProviderBase\DbConnectionClosed.cs:line 72
   at Microsoft.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\SqlClient\SqlConnection.cs:line 1864
   at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\SqlClient\SqlConnection.cs:line 1857
   at Microsoft.Data.SqlClient.SqlConnection.Open() in E:\agent1\_work\28\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\SqlClient\SqlConnection.cs:line 1425
   at FameDLO.dloAdminBase.<>c__DisplayClass4_0.<OpenWithRetry>b__0() in C:\Code\MyProduct\MyProductDLO\Common\dloAdminBase.cs:line 52

So, I'm a bit stuck here and this may be a simple fix to project config, so a couple of questions;

Should the relative path to the library output folder be referenced when the WebApp runs, i.e. bin\Debug\x86? is this a fixed path, shouldn't it be the WebApp website bin folder path?
After installing MS.Data.SqlClient in to the asp.Net WebApp project, shouldn't the website have an SNI.dll copied to it?  ...I'm running in VS Debug with IISExpress (as a normal user).

@MrAnderson69UK the error you mentioned right now is a bit different than that of this original issue.
We have an open issue #406 to track what you're facing.

Hi dears,
I think this error is related to App.config . check it or undo codes in App.config .
Regards,


require not working in mac os

Hi,
I just installed mysqlv8udfs and i tried some simple examples and it works.
But when I try to use the require example, things are not working.
In my Mac, i have a folder ~/mysqlv8udf_samples
And I have the following files and directories:
json_export.sql
js_modules/json_export.js
In json_export.sql, I simply do:
select jsagg('require("json_export.js");', id, name) as json from test.category;
But when I run mysql < json_export.sql, from the mysql error log I got:
Module not found
js_modules/json_export.js
oops, file is NULL

@rpbouman, I have the same problem, and I solved it with your solutions, thnks

@passionke Thanks for the reply! Since I never heard back from @jimthunderbird  I'm going to assume your reply means the problem is solved. Reopen if the problem persists. Thank you!


Set height for title label and aspect fit the  image

Unable to Set height for title label
Also I am not able to set aspect fit to the image

Were you able to set aspect fit to the image?


chore: removing obsolete region tags

Follow-up to https://github.com/GoogleCloudPlatform/dotnet-docs-samples/pull/1945

Do not merge this until I'm sure all the references in the docs have been removed — using the snippet bot to help check, and I'll be adding more commits if this works out.
For region tag mapping: go/firestore-region-tags-normalization-2020q4

Confirmed all the C# instances of these region tags have been removed according to the DRIFT snippet tracking dashboard.

The CL that removed these region tags from the docs is already submitted but it's possible the changes haven't yet been indexed — ok to wait until SnippetBot is happy before merging.

cl/485449818 with the changes. Except — one of the region tags that was removed was csharp_fs_add_data_1 and I can't find any instance of fs_add_data_1 on that page. Hmmm.

I'll review when SnipptBot is happy :)

@meredithslota SnippetBot is now happy. I'll wait for you to remove the do not merge label before doing anything else so you can confirm this is now fine to merge.
Thanks!

I removed the do not merge label. Thanks!


Fix demo.rs

Small explanation.
When I run an example from the root of this repo, all works fine. But when I add this crate to my side project, example won't work. Adding crate:: before every import solves the problem. After it, I run demo.rs again in the root of the repo and it still works.

If you look at this PR as wrong or invalid, just left a comment and close the PR.

Example of error that I was getting before fixing.

Thanks!


Possible to use this with Flutter?

Hey, i was wondering if it could be possible to use this with Flutter to make a login module?

Hey,
yes this can used in flutter.
i only started working on this recently, the api isn't stable yet and i only implemented authentication system for now

Would you be able to make a very simple example of a login module with flutter? :)

Its pretty easy to be honest, as the package is still not in pub, i can't provide an example.
however, after i complete the package i will upload it to pubspec. then i will create an example app on how to use it.

Yeah that would help me out alot! Theres so many exmaples of a valorant login in other languages but not in Dart yet. As im still learning Dart/Flutter an example of this would help me alot. You should have a donate button in the future as well, i like what i see so far.

Hey @bboychris168
I have published this library on pub.dev
You can now easily use this in flutter, i also updated the documentation a bit.
although there are lots of endpoints to implement, I have made authentication headers public, so that you can authorize custom requests once internal RSO authentication flow completes.
Check out the Main Page of this project for documentation

Ok thank you very much! ill have a look at the documentation soon. Ill ask any questions if i need anything :)


Look into gRPC / Tendermint RPC for Cosmos SDK 0.45+

They seem to make some optimisations such that the gRPC server will not longer just proxy through Tendermint. To increase concurrency I believe. This may mean it would be more sensible to call the gRPC server than Tendermint RPC. Maybe...
Anyway, something to look into when we add SDK 0.45+ support
https://github.com/cosmos/cosmos-sdk/pull/10045#issuecomment-930156775

this would be awesome. if grace support is added we could neat things with grace reflection to get possible queries and txs of a chain.

We use the following functions from the Tendermint34Client / Tendermint RPC:

[x] status for chain ID: https://github.com/cosmos/cosmos-sdk/blob/release/v0.45.x/proto/cosmos/base/tendermint/v1beta1/query.proto#L17-L19
[x] status for height: https://github.com/cosmos/cosmos-sdk/blob/release/v0.45.x/proto/cosmos/base/tendermint/v1beta1/query.proto#L24-L27 (maybe a bit overhead but we get what we need)
[ ] abciQuery without proofs
[ ] abciQuery with proofs (Maybe: https://github.com/cosmos/cosmos-sdk/issues/7036?)
[ ] blockchain (block headers from minHeight to maxHeight)
[x] block (full block at height): https://github.com/cosmos/cosmos-sdk/blob/release/v0.45.x/proto/cosmos/base/tendermint/v1beta1/query.proto#L28-L31
[x] broadcastTxSync: https://github.com/cosmos/cosmos-sdk/blob/release/v0.45.x/proto/cosmos/tx/v1beta1/service.proto#L26-L32
[ ] txSearch with arbitrary query
[ ] Subscriptions: Block headers (to get next block ASAP for proof verification)

The ones checked I found in the gRPC API. Any idea about the others?

@marbar3778 can you help with any item from the list above to make progress here?

Sorry I looked into some of this but never responded. I think grpc should not be a replacement for rpc right now. But instead a way to at runtime interact with a chain without preexisting knowledge.
With grpc there is no need for abciQuery without proof. Tx search and subscriptions should still be handled by the rpc, but txsearch has a path to deprecation so it should not be relied on instead the app developer should use a Postgres instance with the psql indexer on tendermint.

Thanks for the insights.

But instead a way to at runtime interact with a chain without preexisting knowledge.

All we do in CosmJS is statically typed. I wonder how this is envisioned to work. Even if we dynamically get quereis and stuff from the chain, you need a code generator generating all the proto code for those types.

this is the best example code I have seen so far. https://github.com/fdymylja/dynamic-cosmos. maybe @fdymylja could touch on this?

Thanks for the insights.

But instead a way to at runtime interact with a chain without preexisting knowledge.

All we do in CosmJS is statically typed. I wonder how this is envisioned to work. Even if we dynamically get available queries and custom message types from the chain, you need a code generator generating all the proto code for those types.

Not familiar with JS protobuf, but there should be a protoreflection implementation available.
And even if there isn't it shouldn't be too difficult to create. Once you get information on how a protobuf type looks like (what we care about is field tags + field kinds in order to know how to wire-encode them), you can work with any type as if it was a map<string, ArbitraryType>.
Then once https://github.com/cosmos/cosmos-sdk/pull/10977 is merged, you won't need to keep track of message signers anymore.
If this is something you are planning to support let me know and I'll try to help.

Thank you for the pointers. protobuf.js supports the dynamic type generation at runtime.
I just wonder why you would want all of this in the first place? The CosmJS users we see know exaxtly what their backend is and what is available thete. For them the abstraction of CosmJS is already overwhelming. Why move all the compile time safety we have right now and make it runtime problems?

Thank you for the pointers. protobuf.js (unmaintained) supports the dynamic type generation at runtime.
I just wonder why you would want all of this in the first place? The CosmJS users we see know exaxtly what their backend is and what is available thete. For them the abstraction of CosmJS is already overwhelming. Why move all the compile time safety we have right now and make it runtime problems?

I'm not super familiar with cosmJS and especially how it is used by its consumers.

Why move all the compile time safety we have right now and make it runtime problems?

You can work both in a typed and untyped way.
In golang clients we have certain use-cases that are unlocked through reflection.

Allow to work with a chain's custom modules (typed or untyped)
Allow to work with multiple sdk chains at the same time (typed or untyped)
Dynamic derivation of account address
Dynamic fetching of signer infos
Dynamic resolution of google.Protobuf.Any, ex: chain specific custom governance proposal, authz module authorisations.
It improves the flow of signing tremendously.
Allow to verify/sign things.
everything can be jsonified without previous knowledge on types

For example possible use cases in a frontend:

talk with any Cosmos SDK chain and send any msg to it
human readable store exploration
human readable query exploration (supports chain's custom types such as gov proposals etc)

For example you could build a sort of etherscan in cosmos in which instead of dynamically querying contracts you can query module queriers.
Same goes for tx messages.
IDK if this is something that cosmjs supports/or wants to support, but as I said if you see value in it, let me know and I'll be happy to support.

Thanks a lot for taking the time to describe all of this, @fdymylja! I'll have a think about it to see if this is useful for our context and maybe create a draft implementation independent of CosmJS.
One thing that is clear is that using reflection and connecting to the gRPC endpoint should be discussed separately.

Adding my 2 cents here.
The switch to GRPC/RPC makes it much harder for infrastructure providers to perform smart caching and advanced load-balancing/rate limiting on requests, due to the more complex nature of the requests.
For example, on current Secret Network mainnet when applying caching for traffic generated by Keplr we save about 50% of requests, since a lot of them go to endpoints that don't change much (voting, chain parameters, etc) - this has a compounding effect on response times, since it both returns requests much faster, and frees up resources for more intensive requests.
Personally I think it makes the most sense for cosmjs as a frontend library to support the GRPC-gateway endpoints. Not only are they easier for developers and infra providers to work with, but having requests not connection-orriented is an advantage, since it allows for better load-balancing between multiple servers.
Lastly, working with the GRPC-gateway endpoints is much simpler since the swagger file is generated automagically from the proto defs.
I'm not enitrely familiar with how everything is hooked up behind the scenes on in the sdk, though, so I can only speak from the consumer side of things

Love this conversation ❤
To add to, or perhaps support what @fdymylja is saying, in terms of users: the multi-chain application developer is definitely one of them, especially as we move forward towards a 1000+ chain ecosystem.
More specifically, that would be wallets who'd want to extend functionality, or applications that use core features available to most up-to-date chains, most notably Authz, Gov, Groups, Feegrant. All all of these allow you to take a Msg as an input to perform an action. Think DAOs being able to trade on Osmosis without Osmosis having to build a custom app, validators authorizing an account to perform a chain's specific modified staking Tx without that chain building a custom app for that, one multi-chain gov tool to create proposals, etc, all without using the CLI. This is currently not possible and I see a strong need for it.
Just commenting here because I'm personally quite interested in getting this to work in the long term, and would have all 4 front-end projects that I'm currently involved in likely benefit from this.
I can't comment much in terms of what its place would be inside CosmJS. I recognise that mixing this in with current CosmJS would confuse users in terms of where they can expect errors (runtime v.s. compilation). If anything, I can see @cosmjs/reflection being a separate CosmJS package that would need some good documentation about usage and risks, and I would be happy to help on the docs side.

adding the option to use grpc but not a replacement is easy enough and shouldnt have any requirements, surprised it hasnt happened yet.

@tac0turtle please see https://github.com/cosmos/cosmjs/issues/885#issuecomment-1009370262
It seems there were two calls that we didn't have access to. It would be great for you and Simon to discuss this to find a proper resolution

I'm also surprised Confio has not received any funding for this yet...
It is listed as a  Q3 goal in our 2023 ICF grant proposal. If we get our Q3 plan approved, it should be done then.
It would be great if there is a plan for the best possible CosmJS and Cosmos SDK integration before then


Add hover effect to contact page buttons

Add hover effect to contact page button and some buttons in homepage header.

@Vishal-raj-1 pls assign this issue to me.


Syntax coloring inside html attribute templates

Hello
I'm using a html-generating template function, however the HTML attributes don't get syntax colored:

Ideally, they would look like this:

When I place event listeners inline, my library requires that they are surrounded by quotes ( onclick="${myFunc}" ),  just like other attributes, however other libraries may use the template literal directly ( onclick=${myFunc} ), like they do in React.

Thankyou for the issue
I'll try to implement this feature

Actually, I'd consider this a bug.

@sergiucaraian
Will be fixed today/tomorrow

@sergiucaraian
Fixed
Package in the marketplace is updated
Feel free to close the issue if the plugin works as you expected
Thankyou

@mydesireiscoma
The bug is still there for /sql/.
Can you fix that too?
10q

Sure


Confused

Hi, are the examples supposed to show the fonts at different weights? On Mac and Linux the text weights are all identical. The icons have different weights but not the text.

No, this is an icon crate, so just the icons


only incremental updates (new files)

Codecov Report

Merging #9 (119fc25) into main (190a9ce) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main        #9   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         5
  Lines          191       204   +13
=========================================
+ Hits           191       204   +13

Impacted Files
Coverage Δ

chunksum/chunksum.py
100.00% <100.00%> (ø)

chunksum/cli.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Redirect loop when running on Google App Engine with Task Queue

Hi Paul,
I'm not sure if this is a GAE problem, a requests problem, or something on Spotify's end, but I'm opening this here to make sure it's not the latter.
I have some python code that looks similar to the following:
import spotipy
Spotify = spotipy.Spotify()

def some_task_queue_handler(request):
    spotify_uri = get_spotify_uri_from_task_queue_request(request)
    metadata = Spotify.track(spotify_uri)
    logging.info("metadata is: %s", metadata)
    return None, 204

The issue that I'm running into is that both locally and when deployed, the spotipy requests are resulting in a redirect loop, where the location set by the redirect response is exactly the same every time.  I've modified the requests session handler a little bit to print out the history that it collects when following redirects, and I get 30 items that look identical to this:
CaseInsensitiveDict({'content-length': '178', 'via': 'HTTP/1.1 GWA', 'x-google-cache-control': 'remote-fetch', 'server': 'nginx', 'connection': 'keep-alive', 'location': 'https://api.spotify.com/v1/tracks/2wNO69huzAY2WBnigjXMQ4', 'date': 'Thu, 09 Apr 2015 20:32:17 GMT', 'content-type': 'text/html'})

Is this bouncing happening on the Spotify end?  Possibly due to some user agent or origin IP?  Or Do I need to set an auth parameter to make the call from a GAE server?
When I run curl on the same URL from my local command line, I get a valid response:
rknLA:~() $ curl -v https://api.spotify.com/v1/tracks/2wNO69huzAY2WBnigjXMQ4                                                                                09.04.2015 [22:52:11]
* Hostname was NOT found in DNS cache
*   Trying <IP_ADDRESS>...
* Connected to api.spotify.com (<IP_ADDRESS>) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
* Server certificate: *.spotify.com
* Server certificate: DigiCert SHA2 Secure Server CA
* Server certificate: DigiCert Global Root CA
> GET /v1/tracks/2wNO69huzAY2WBnigjXMQ4 HTTP/1.1
> User-Agent: curl/7.37.1
> Host: api.spotify.com
> Accept: */*
>
< HTTP/1.1 200 OK
* Server nginx is not blacklisted
< Server: nginx
< Date: Thu, 09 Apr 2015 20:52:19 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 2488
< Connection: keep-alive
< Keep-Alive: timeout=600
< Vary: Accept-Encoding
< Cache-Control: public, max-age=7200
< Access-Control-Allow-Headers: Accept, Authorization, Origin, Content-Type
< Access-Control-Allow-Origin: *
< Access-Control-Max-Age: 604800
< Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE
< Access-Control-Allow-Credentials: true
< X-Content-Type-Options: nosniff
< Strict-Transport-Security: max-age=31536000;
<
{
  "album" : {
    "album_type" : "single",
    "available_markets" : [ "AD", "AR", "AT", "AU", "BE", "BG", "BO", "BR", "CA", "CH", "CL", "CO", "CR", "CY", "CZ", "DE", "DK", "DO", "EC", "EE", "ES", "FI", "FR", "GB", "GR", "GT", "HK", "HN", "HU", "IE", "IS", "IT", "LI", "LT", "LU", "LV", "MC", "MT", "MX", "MY", "NI", "NL", "NO", "NZ", "PA", "PE", "PH", "PL", "PT", "PY", "RO", "SE", "SG", "SI", "SK", "SV", "TR", "TW", "US", "UY" ],
    "external_urls" : {
      "spotify" : "https://open.spotify.com/album/70g5xd035UlaLDn1bFPHHM"
    },
    "href" : "https://api.spotify.com/v1/albums/70g5xd035UlaLDn1bFPHHM",
    "id" : "70g5xd035UlaLDn1bFPHHM",
    "images" : [ {
      "height" : 640,
      "url" : "https://i.scdn.co/image/54ef204750e0c36c9facfac3fd8148a2ed6fead8",
      "width" : 640
    }, {
      "height" : 300,
      "url" : "https://i.scdn.co/image/d60bde19570f4880fde094185cdb750271ebcda4",
      "width" : 300
    }, {
      "height" : 64,
      "url" : "https://i.scdn.co/image/ad556ebf704e4450ce6152c5f4e66cab0636b2de",
      "width" : 64
    } ],
    "name" : "Project Destati: Awakening",
    "type" : "album",
    "uri" : "spotify:album:70g5xd035UlaLDn1bFPHHM"
  },
  "artists" : [ {
    "external_urls" : {
      "spotify" : "https://open.spotify.com/artist/7q3OTml6VefMn69k5EOwnx"
    },
    "href" : "https://api.spotify.com/v1/artists/7q3OTml6VefMn69k5EOwnx",
    "id" : "7q3OTml6VefMn69k5EOwnx",
    "name" : "Project Destati",
    "type" : "artist",
    "uri" : "spotify:artist:7q3OTml6VefMn69k5EOwnx"
  } ],
  "available_markets" : [ "AD", "AR", "AT", "AU", "BE", "BG", "BO", "BR", "CA", "CH", "CL", "CO", "CR", "CY", "CZ", "DE", "DK", "DO", "EC", "EE", "ES", "FI", "FR", "GB", "GR", "GT", "HK", "HN", "HU", "IE", "IS", "IT", "LI", "LT", "LU", "LV", "MC", "MT", "MX", "MY", "NI", "NL", "NO", "NZ", "PA", "PE", "PH", "PL", "PT", "PY", "RO", "SE", "SG", "SI", "SK", "SV", "TR", "TW", "US", "UY" ],
  "disc_number" : 1,
  "duration_ms" : 311749,
  "explicit" : false,
  "external_ids" : {
    "isrc" : "USE830908262"
  },
  "external_urls" : {
    "spotify" : "https://open.spotify.com/track/2wNO69huzAY2WBnigjXMQ4"
  },
  "href" : "https://api.spotify.com/v1/tracks/2wNO69huzAY2WBnigjXMQ4",
  "id" : "2wNO69huzAY2WBnigjXMQ4",
  "name" : "Sinister Sunburn",
  "popularity" : 28,
  "preview_url" : "https://p.scdn.co/mp3-preview/87603ffc63bc0ba98c37145e07287fdf3d7baffc",
  "track_number" : 3,
  "type" : "track",
  "uri" : "spotify:track:2wNO69huzAY2WBnigjXMQ4"
* Connection #0 to host api.spotify.com left intact
}%

Thanks!

False alarm.
This is an issue with GAE+requests that's solved by forcing version 2.1.0, as mentioned in https://github.com/pythonforfacebook/facebook-sdk/issues/130
More info (and the source of the solution) on StackOverflow


channeldb+refactor: remove kvdb.Backend from channel DB schemas

Overview
Today, the channeldb.LightningNode, channeldb.ChannelEdgePolicy and
channeldb.ChannelEdgeInfo objects all carry a kvdb.Backend pointer.
Additionally, the ChannelEdgePolicy has a channeldb.LightningNode
member.
This PR is a move towards making the above mentioned channeldb structs
more closely represent the on-disk schemas and does this by removing the
need for them to carry around the kvdb.Backend pointer and also removes
the need for channeldb.ChannelEdgeInfo to contain a
channeldb.LightningNode.
Why?
For the Gossip 1.75 epic, it will be required to create abstractions of the mentioned
objects and so in order to avoid requiring interface methods like "GetDB()" and
"SetDB()", removing the db entirely from the objects will make for much simpler code.
I think this might also be useful for when we migrate channeldb to the sql world.

realised that with this change we can actually move the ChannelEdgeInfo, ChannelEdgePolicy, ChannelAuthProof and CachedEdgePolicy structs to the channeldb/models package instead.
Lemme know what you guys think & then I'll add a commit on.

realised that with this change we can actually move the ChannelEdgeInfo, ChannelEdgePolicy, ChannelAuthProof and CachedEdgePolicy structs to the channeldb/models package instead.
Lemme know what you guys think & then I'll add a commit on.

realised that with this change we can actually move the ChannelEdgeInfo, ChannelEdgePolicy, ChannelAuthProof and CachedEdgePolicy structs to the channeldb/models package instead.
Lemme know what you guys think & then I'll add a commit on.

What would be the benefit of this move?

@ellemouton, remember to re-request review from reviewers when ready

What would be the benefit of this move?

Basically just to continue to separate out schema from DB fetching/setting logic. Some packages only need the schemas & so dont need to import the entire channeldb package.
I tacked on a commit at the end that does the move - lemme know if you think it makes sense - otherwise, im happy to drop it for now too :)

What would be the benefit of this move?

Basically just to continue to separate out schema from DB fetching/setting logic. Some packages only need the schemas & so dont need to import the entire channeldb package.
I tacked on a commit at the end that does the move - lemme know if you think it makes sense - otherwise, im happy to drop it for now too :)

I like the change, slimming channeldb always makes sense :)


Buy command cannot find stock but quote command can

Buy command returns stock not found but the price is accessible through q command and stock is purchasible via app interface.
Buy command examples:
b AUTO 1 15.00
Stock not found
q AUTO
AUTO: $15.00
=======
EDIT: Symbol not visible through app interface, please delete this issue.  Sorry about that.

Interesting, will take a look later today.

Sorry, please delete, stock is not accessible through app interface.  My mistake.


Using 0.10.0-rc0X breaks policies

When upgrading from 0.9.1 to any 0.10.0 release candidate the policy blocks fail to be applied.
Config:
jgitver {
  policy {
    pattern = '(.*)'
    transformations = ['REMOVE_UNEXPECTED_CHARS', 'LOWERCASE_EN']
  }
}

Command: .\gradlew.bat clean version
0.9.1 output
> Task :version
Version: 1.0.1-1-featureruntimecerts

0.10.0-rc03 output
> Task :version
Version: 1.0.1-1-feature_runtime_certs

Gradle version:
------------------------------------------------------------
Gradle 6.3
------------------------------------------------------------

Build time:   2020-03-24 19:52:07 UTC
Revision:     bacd40b727b0130eeac8855ae3f9fd9a0b207c60

Kotlin:       1.3.70
Groovy:       2.5.10
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          12 (Oracle Corporation 12+33)
OS:           Windows 10 10.0 amd64

After digging into it more, this looks like a strange issue with the plantir docker plugin trying to get the version before the jgitver plugin has loaded it's settings causing jgitver to be stuck with default settings. Seems like a catch 22 in terms of initialization between the plugins

This is bothering me, too. I have an identical policy and the underscores are not being removed with 0.10.0-rc03. In my case, I have no incompatible plugins AFAIK. But underscores are not legal according to semver and npm takes this seriously:
# npm version 0.0.0-NOT_A_GIT_REPOSITORY
npm ERR! Invalid version: 0.0.0-NOT_A_GIT_REPOSITORY

Either the profile must be enforced for the 3 default qualified version numbers, or an option must be added to specify semver-compliant version numbers for these three. I am writing a separate issue stating this specific request.


Why is M1 performance so different on iOS and Mac OS X?

My javascript app runs at 18 fps on a M1 mac mini, but goes at 2 or 3 fps on an Ipad Air with the same M1. Is it the difference between Mac OS X and iOS? Thanks

Hello @juanmaxon

Would you please let us know which MediaPipe solution you are using?
Which browser and version are you testing the solution on?
Are you using the default example or custom code?

Hello,

Holistic
Latest versions in Mac OS X and iOS. Safari 16.2 and Chrome 109.0.5414.119
Yes, for example, demo Holistic.

Thanks

Hello @juanmaxon
Apple has an experimental setting "GPU Process: WebGL" which is enabled by default (as of iOS 16). We believe it tries to kick WebGL calls to a separate GPU process rather than rendering them in the usual one. This currently completely hoses our iOS web performance.
Would you please try going to Settings --> Safari --> Advanced --> Experimental Features, and disabling GPU Process: WebGL, then trying the MediaPipe solution?

Hello @juanmaxon
Apple has an experimental setting "GPU Process: WebGL" which is enabled by default (as of iOS 16). We believe it tries to kick WebGL calls to a separate GPU process rather than rendering them in the usual one. This currently completely hoses our iOS web performance.
Would you please try going to Settings --> Safari --> Advanced --> Experimental Features, and disabling GPU Process: WebGL, then trying the MediaPipe solution?

I've done that and I'm still getting very low fps. Ipad air with M1 goes at 4 fps while macbook air or mini or imac with m1 goes at 15 fps. I don't understand.
Thanks


Fixed #301

Fixed #301

Hey @kipusoep! Nice S550 in your profile picture. Ecoboost??
As for the PR we'd rather not have a dependency on jQuery. Since you're the last person to reply with this actually breaking for them, is there a way you can reproduce this in a jsbin for me to fiddle with?

I ended up using MDNs suggestion in #332


hugo uses toml frontmatter in archetypes/default.md even when site was created with --format yaml

What version of Hugo are you using (hugo version)?
I think version is irreverent here since it exists from beginning  ?

$ hugo version
hugo v0.135.0+extended linux/amd64 BuildDate=unknown

Does this issue reproduce with the latest release?
Yes
Steps to Reproduce
hugo new site --format yaml my-new-site
cat  my-new-site/archetypes/default.md
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++

Expected output
---
title: '{{ replace .File.ContentBaseName "-" " " | title }}'
date: {{ .Date }}
draft: true
---

I think version is irreverent here since it exists from beginning ?

No it hasn't, but this has been discussed before and is as designed. Hugo uses the front matter templates in the archetype files as-is, there's no YAML to toml conversion. If you want TOML, create archetype files with TOML

there's no YAML to toml conversion. If you want TOML, create archetype files with TOML

I don't know if you understood my question or not. What I'm trying to say is I want YAML not TOML in the frontmatter of archtypes/default.md like this
---
title: '{{ replace .File.ContentBaseName "-" " " | title }}'
date: {{ .Date }}
draft: true
---

when I create site using   hugo new site --format yaml my-new-site command.

Duplicate of https://github.com/gohugoio/hugo/issues/12666


Cannot download-batch when file and folder have the same name

Description
When download folders from Azure Blob Storage as:
az storage blob download-batch --connection-string $CS -d /mnt -s export
If in the container (export from the example above)  I have a folder and a file with the same name, I got an error with stack-trace below.
This situation happens naturally when folder is created with Spark or Hadoop jobs
(e.g. there is a folder AND 0B file satellite having the same name).
After I delete file-satellite download works normally.
For the trace below: gt is the name of the folder and the file.
[Errno 20] Not a directory: '/mnt/locations/gt'
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/azure/cli/main.py", line 36, in main
    cmd_result = APPLICATION.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/application.py", line 212, in execute
    result = expanded_arg.func(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 351, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 556, in _execute_command
    reraise(*sys.exc_info())
  File "/opt/az/lib/python3.6/site-packages/six.py", line 686, in reraise
    raise value
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 533, in _execute_command
    result = op(client, **kwargs) if client else op(**kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/blob.py", line 124, in storage_blob_download_batch
    return list(_download_blob(client, source_container_name, destination, blob) for blob in source_blobs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/blob.py", line 124, in <genexpr>
    return list(_download_blob(client, source_container_name, destination, blob) for blob in source_blobs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/blob.py", line 250, in _download_blob
    blob = blob_service.get_blob_to_path(container, blob_name, destination_path)
  File "/opt/az/lib/python3.6/site-packages/azure/multiapi/storage/v2017_04_17/blob/baseblobservice.py", line 1765, in get_blob_to_path
    with open(file_path, open_mode) as stream:
NotADirectoryError: [Errno 20] Not a directory: '/mnt/locations/gt'

Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Docker via 2 commands:
RUN echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | \
     tee /etc/apt/sources.list.d/azure-cli.list
RUN apt-key adv --keyserver packages.microsoft.com --recv-keys 417A0893 \
    && apt-get install -y apt-transport-https \
    && apt-get update && apt-get install -y azure-cli

CLI Version: What version of the CLI and modules are installed? (Use az --version)
2.0.16-1
OS Version: What OS and version are you using?
16.04.2 LTS (Xenial Xerus)
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
bash

There's something we can do to avoid the creation of file-satellite?
I'm persisting a dataframe classifying the output according to a specific column. The result is one folder for each distinct value of this column, this means that is not possible to manually delete all the file-satellite.


added files

I have modified the .json and .wav files, replaced original airlines & hotel names with some generic names, such as contoso airlines, fabrikam hotel in CKM V1 readme repo.


Confusion of webhooks

It seems like webhook-discord is confusing two webhooks (i'm not that good in javascript so maybe i did a mistake), it send all of its on the same hook
the parts about it (it's pretty small so i don't think a pastebin is needed):
const HookOfficial = new Webhook("weeeeeeeeeeeeeeeeeeeebhoook");
const HookOriginal = new Webhook("anotherweeeeeeeebhoooook");
//a bit later:
HookOriginal.custom(bot.user_id, "some text", "title of the text", "#D0B078")
HookOfficial.custom(bot.user_id, "some text", "title of the text", "#D0B078")
    if (coolbeans === 1) {
        HookOriginal.custom(bot.user_id, "some text " + oldversion + " some text " + version + " ! " + notesdemaj + " !", "title of the text", "#2F4F87")
        HookOfficial.custom(bot.user_id, "some text " + oldversion + " some text " + version + " ! " + notesdemaj + " !", "title of the text", "#2F4F87")

Bit late but this is fixed


"headline promotion" in Confluence export is inconsistent

Right now when confluenceCreateSubpages is true all headlines get "promoted" to higher levels (i.e. h4 becomes h1 and so on). Shouldn't the same also be done for the pages created from h2 as well, just with one level less of promoting - i.e. h3 becomes h1 and so on?
I'll be happy to take a stab myself, Before I do so I just want to make sure the difference is not an intentional one.

yes, I guess you are absolutely right. The difference is not intentional


Line display and visual separation

One of the difficult challenges is to improve the line routing algorithm for the communication editor.
Open-source heuristic algorithms to do this are available but are a significant amount of work to implement.
I include some information on an algorithm used in Inkscape which I think has some potential but more mockups and discussion is required.
The library is the adaptagrams one, implemented in C++ https://github.com/mjwybrow/adaptagrams
There is a WASM based compilation to Javascript but I think it would be too heavy to use in our project and there are license issues as adaptagrams is GPL.
I am quite keen to have a go at implementing the algorithm or something like it when time allows. I've spent some tens of hours reading the code and implementing parts of it (I was initially very confused). Happy to discuss if this is of interest to anyone.
In particular I think:

We should have no more than an in and an out port per IED per side. The number of ports will constrain the algorithms performance.
The algorithm must space out lines so they are easy for the user to see, distinguish and click.
We should not target perfection but the ability to multi-select a few IEDs and show the lines in visually pleasing manner would be a good outcome.
Ideally we may want to treat IEDs and labels as obstacles but not worry about the SLD (too hard IMHO).

Resources
Original Wybrow algorithm
orthogonal_connector_routing.pdf
Improved over Wybrow for large diagrams:
edge-routing.pdf
Still more improved
marriott-diagrams-2014.pdf
No known open source implementation but appears to be a substantial improvement

@ca-d has suggested that he might be interested in helping me implementing this in Clojure which I hope to learn a little about in some time.

Not sure what benefit clojure would bring to this task, but I'm eager to find out.
For finding orthogonal connections between points without crossing lines, I would probably look at https://qiao.github.io/PathFinding.js/visual/ , a JavaScript library proven in production.


onscripter 20160728

A hot fix release for iOS. Probably not much changed for OS X package.

Merged as fe2796b31c297609edf36271856c5db9962c3288, thanks again!


Update opensds helm charts to latest version

Considering opensds has supported all containerized deployment, helm charts should also need to update the latest version.

@xing-yang Please take a look, thanks!


Add link to Umami extension

Hi there,
I've released a extension to add umami to your directus instance and track page views etc.
Here is a PR to add a link to it.

Oops, linting removed some lines. Fixing it now.

Thanks!


Extract year from title and save as a new wine.csv file

I need to re-organized the directories.

I need to re-organized the directories.


re-remove message counters

cautiously! there was a regression: #486
the removal commit was: 0c7a55

and write new tests that could capture the regression. (if possible)


Autocompletion for mid-keywords

Discussed in https://github.com/langium/langium/discussions/929

Originally posted by JoanGi February 13, 2023
Hi,
I've realized that autocompletion is not returning suggestion when you are at the mid-keyword, and this is not followed attribute like ID.
I will try to explain myself. Given this grammar:
grammar MyDSL

entry MyDSL:
   (elements+=Declaration);

Declaration:
'Title:' title=ID
'Version:' version=NUMBER;

// Terminals
hidden terminal WS: /\s+/;
terminal ID: /[_a-zA-Z][\w_]*/;
terminal STRING: /"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/;
terminal NUMBER returns number: /[0-9]+(\.[0-9]*)?/;

The completion in the mid-keyword of version do not work (see image above in the playground).

But if we change version for version=ID. It works:

To enable autocompletion during mid-keyword, a leaf of the AST is created with the temporal text written, but this does not happen with other types of terminals. I've thought it was a scope problem, but the autocompletion works just before to start typing the keyword.
In my use-case this will improve the UX. Any thought about why this is happening? Thank you very much!!!

Fix has already been applied, but not released yet.


[no-op] Clang format all files

Disclaimer:

All these changes are generated automatically by clang-format.
The existing code seems good at most of the places, but weirdly formatted in other places, not sure if we already have a coding style? (just want to get myself a little familiar with the toolchain)

clang-format is widely used in other duckdb ecosystem projects:

pg_duckdb: https://github.com/duckdb/pg_duckdb/blob/bb82c937936b97824bb766893745e1456eb1aa08/Makefile#L114-L116
https://github.com/Mooncake-Labs/pg_mooncake/blob/12b39ea3af35218fab0f9c4d8e0ecdcb5be4dc8c/Makefile#L30-L31
duckdb: https://github.com/duckdb/duckdb/blob/77c9f1f6ac3a7419183e4aa287e60ef97d0bcb8a/Makefile#L433-L453

It seems make format is already integrated in our toolchain, though I haven't figured out where it's implemented.
This is the screenshot and command I executed:
(base) ubuntu@hjiang-devbox-pg:~/duckpgq-extension$ make format
find src/ -iname *.hpp -o -iname *.cpp | xargs clang-format --sort-includes=0 -style=file -i
cmake-format -i CMakeLists.txt

Thanks for the PR! I haven't been too mindful of using make format for my PRs but will in the future :) I think this would actually be good to add to the CI/CD so I'll work on a related PR to add that
The make format rule is defined here: https://github.com/duckdb/extension-ci-tools/blob/27facd3b63aa4c7c23e80e726851db132f1db264/makefiles/duckdb_extension.Makefile#L135

Thanks for the PR! I haven't been too mindful of using make format for my PRs but will in the future :) I think this would actually be good to add to the CI/CD so I'll work on a related PR to add that The make format rule is defined here: https://github.com/duckdb/extension-ci-tools/blob/27facd3b63aa4c7c23e80e726851db132f1db264/makefiles/duckdb_extension.Makefile#L135

That makes sense, thanks for the code pointer!

Thanks for the PR! I haven't been too mindful of using make format for my PRs but will in the future :) I think this would actually be good to add to the CI/CD so I'll work on a related PR to add that The make format rule is defined here<EMAIL_ADDRESS>
That makes sense, thanks for the code pointer!

I submitted a PR https://github.com/duckdb/extension-ci-tools/pull/120

Thanks you so much for the quick turnaround!


Z-number is not working

Just installed the shopfloor pendant, and noticed that the z-number on the shopfloor pendant is moving with the y-number. If I move the y-axis 10mm, it says on the UI also has moved the z-axis the same amount. The z-axis does not move on the machine, just the on the UI. I can also control the z-axis with the UI, but the number will not change. This is only happening on the shopfloor UI, I have tested it on the regular cncjs UI.

I do not see any obvious problems in the source code that could cause this problem.  The Y and Z displays work for me.  How did you install the shopfloor pendant?

I installed it with the cncjs-pi-raspbian installer.

I have no idea which version of the cncjs-shopfloor-tablet code is in that installer.  In the past I have had problems with installer packages that have ancient versions of code.  Install using the instructions in the README at https://github.com/cncjs/cncjs-shopfloor-tablet .  I cannot and will not support old versions.


Custom Model Type Detector

Hi, I've trained my model and now I'd like to detect this objects. Here I found that "The models supported are RetinaNet, YOLOv3 and TinyYOLOv3".
Is there any custom model type detector, exept this three? Or is there any other way to detect objects on the model I trained?
Here ids the code I use:

from imageai.Detection import ObjectDetection
import os
execution_path = os.getcwd()
detector = ObjectDetection()
detector.setModelTypeAsRetinaNet()
detector.setModelPath( os.path.join(execution_path , "model_ex-020_acc-0.500000.h5"))
detector.loadModel()
detections=detector.detectObjectsFromImage(input_image=os.path.join(execution_path,"icon.jpg"),
output_image_path=os.path.join(execution_path , "iconnew.jpg"))
for eachObject in detections:
print(eachObject["name"] , " : " , eachObject["percentage_probability"] )

Compilation  of this code gives an error about disparity layers.
Thank you for your reply.

I too am waiting for this. It seems that it was mentioned that this feature will be release in the next update. That was back on Feb 22nd of this year.

Hopefully there will be progress soon...

Keep up to date with this thread. #8


Adding buttons

Hi, the app/GUI is working fine. As you suggested, I have disabled the menubar, but if I want to shutdown or reload the app, I have two options:

Create a system tray icon menu.
Add a few buttons to the interface.
I would prefer to have some buttons on the interface, but I am not able to add those.
Any help is appreciated. Thanks

Hi.
I won't start adding new buttons to the GUI but I can offer you some pointers. If, for example, you don't need the SUBMIX button in the navigation frame, you could replace it with a CLOSE button using the following steps:
in builders.py:

modify create_submix_button() in NavigationFrameBuilder like so:

    def create_submix_button(self):
        self.navframe.submix_button = ttk.Checkbutton(
            self.navframe,
            text="CLOSE",
            command=self.navframe.show_submix,
            style=f"{'Toggle.TButton' if _configuration.themes_enabled else f'Submix.TButton'}",
            variable=self.navframe.submix,
        )
        self.navframe.submix_button.grid(column=0, row=0)
        # if self.navframe.parent.kind.name != "potato":
        # self.navframe.submix_button["state"] = "disabled"

in navigation.py:

replace the body of the show_submix() callback function like so:

    def show_submix(self):
        self.parent.destroy()

Similar steps could be followed to modify/add more buttons to the Navigation frame.
First change it's step method in the Builder class, then modify the button callback function to do whatever you require.
As for reloading the app, I suppose you mean redrawing the frames? In which case you'd need to destroy the top level frames then rerender them according to a kind.
Something like this should work:
        self.parent._destroy_top_level_frames()
        self.parent.build_app(self.parent._vmr.kind)

I hope that is helpful.

Thanks for the help

Hi.
I won't start adding new buttons to the GUI but I can offer you some pointers. If, for example, you don't need the SUBMIX button in the navigation frame, you could replace it with a CLOSE button using the following steps:
in builders.py:
* modify `create_submix_button()` in NavigationFrameBuilder like so:

    def create_submix_button(self):
        self.navframe.submix_button = ttk.Checkbutton(
            self.navframe,
            text="CLOSE",
            command=self.navframe.show_submix,
            style=f"{'Toggle.TButton' if _configuration.themes_enabled else f'Submix.TButton'}",
            variable=self.navframe.submix,
        )
        self.navframe.submix_button.grid(column=0, row=0)
        # if self.navframe.parent.kind.name != "potato":
        # self.navframe.submix_button["state"] = "disabled"

in navigation.py:
* replace the body of the `show_submix()` callback function like so:

    def show_submix(self):
        self.parent.destroy()

Similar steps could be followed to modify/add more buttons to the Navigation frame.
First change it's step method in the Builder class, then modify the button callback function to do whatever you require.
As for reloading the app, I suppose you mean redrawing the frames? In which case you'd need to destroy the top level frames then rerender them according to a kind.
Something like this should work:
        self.parent._destroy_top_level_frames()
        self.parent.build_app(self.parent._vmr.kind)

I hope that is helpful.


test(linter): add class method test cases for oxc/no-async-await

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#5550  👈
#5549
main

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

Join @DonIsaac and the rest of your teammates on  Graphite


Woin sheet updatesv2

Submission Checklist
Required

[x ] The pull request title clearly contains the name of the sheet I am editing.
[x ] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x ] The pull request makes changes to files in only one sub-folder.
[x ] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[ ] I have followed the Character Sheets Standards when building this sheet.

[ ] This sheet has been made on behalf of, or by, the game's publisher.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Updated weapon section for sheet block 1, added functionality to show how many dice were rolled for combat

Character Sheet Info Roll20 Internal Use only.


Update the extention3.kt file.

Please update the extention3.kt file with proper understandable kotlin code.

I can help you sir. Please Assign this to me.


Revert "[Tokenizer] Enable padding_side as call time kwargs"

Reverts PaddlePaddle/PaddleNLP#9161

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Changes protobuf parser and rendering to support standard media types for json and protocol buffers as well as vnd prefixed custom media types

Codecov Report

Merging #9 into master will decrease coverage by 2.91%.
The diff coverage is 81.81%.

@@             Coverage Diff              @@
##             master       #9      +/-   ##
============================================
- Coverage      95.5%   92.59%   -2.92%
+ Complexity       29       28       -1
============================================
  Files             5        6       +1
  Lines            89       81       -8
  Branches          8        6       -2
============================================
- Hits             85       75      -10
- Misses            2        3       +1
- Partials          2        3       +1

Codecov Report

Merging #9 into master will decrease coverage by 2.91%.
The diff coverage is 81.81%.

@@             Coverage Diff              @@
##             master       #9      +/-   ##
============================================
- Coverage      95.5%   92.59%   -2.92%
+ Complexity       29       28       -1
============================================
  Files             5        6       +1
  Lines            89       81       -8
  Branches          8        6       -2
============================================
- Hits             85       75      -10
- Misses            2        3       +1
- Partials          2        3       +1

Codecov Report

Merging #9 into master will decrease coverage by 2.91%.
The diff coverage is 81.81%.

@@             Coverage Diff              @@
##             master       #9      +/-   ##
============================================
- Coverage      95.5%   92.59%   -2.92%
+ Complexity       29       28       -1
============================================
  Files             5        6       +1
  Lines            89       81       -8
  Branches          8        6       -2
============================================
- Hits             85       75      -10
- Misses            2        3       +1
- Partials          2        3       +1

Codecov Report

Merging #9 into master will decrease coverage by 2.91%.
The diff coverage is 81.81%.

@@             Coverage Diff              @@
##             master       #9      +/-   ##
============================================
- Coverage      95.5%   92.59%   -2.92%
+ Complexity       29       28       -1
============================================
  Files             5        6       +1
  Lines            89       81       -8
  Branches          8        6       -2
============================================
- Hits             85       75      -10
- Misses            2        3       +1
- Partials          2        3       +1

Codecov Report

Merging #9 into master will decrease coverage by 2.91%.
The diff coverage is 81.81%.

@@             Coverage Diff              @@
##             master       #9      +/-   ##
============================================
- Coverage      95.5%   92.59%   -2.92%
+ Complexity       29       28       -1
============================================
  Files             5        6       +1
  Lines            89       81       -8
  Branches          8        6       -2
============================================
- Hits             85       75      -10
- Misses            2        3       +1
- Partials          2        3       +1

:eyes:

👍 looks good to me

Codecov Report

Merging #9 into master will decrease coverage by 2.91%.
The diff coverage is 81.81%.

@@             Coverage Diff              @@
##             master       #9      +/-   ##
============================================
- Coverage      95.5%   92.59%   -2.92%
+ Complexity       29       28       -1
============================================
  Files             5        6       +1
  Lines            89       81       -8
  Branches          8        6       -2
============================================
- Hits             85       75      -10
- Misses            2        3       +1
- Partials          2        3       +1

Codecov Report

Merging #9 into master will decrease coverage by 6.21%.
The diff coverage is 81.48%.

@@             Coverage Diff              @@
##             master       #9      +/-   ##
============================================
- Coverage      95.5%   89.28%   -6.22%
- Complexity       29       35       +6
============================================
  Files             5        6       +1
  Lines            89      112      +23
  Branches          8        7       -1
============================================
+ Hits             85      100      +15
- Misses            2        9       +7
- Partials          2        3       +1

Codecov Report

Merging #9 into master will decrease coverage by 6.21%.
The diff coverage is 81.48%.

@@             Coverage Diff              @@
##             master       #9      +/-   ##
============================================
- Coverage      95.5%   89.28%   -6.22%
- Complexity       29       35       +6
============================================
  Files             5        6       +1
  Lines            89      112      +23
  Branches          8        7       -1
============================================
+ Hits             85      100      +15
- Misses            2        9       +7
- Partials          2        3       +1

update looks good 👍


Tensorflow 1.5.0 not found

Hi,
I'm trying to run the baseline I'm having an issue with the tensorflow dependency:
(.venv) wifi-pro-82-092:semeval-ffnn-baseline lfoppiano$ pip install --upgrade -r requirements.txt
Collecting tensorflow==1.5.0 (from -r requirements.txt (line 1))
  Could not find a version that satisfies the requirement tensorflow==1.5.0 (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for tensorflow==1.5.0 (from -r requirements.txt (line 1))

here my configuration:
(.venv) wifi-pro-82-092:semeval-ffnn-baseline lfoppiano$ python --version
Python 3.7.0
(.venv) wifi-pro-82-092:semeval-ffnn-baseline lfoppiano$ pip --version
pip 18.1 from /Users/lfoppiano/development/competitions/semeval2019/semeval-ffnn-baseline/.venv/lib/python3.7/site-packages/pip (python 3.7)

Thank you in advance
Luca

OK I found the issue. I need python 3.5.


Add support for differentiating by run jobs

Since Gremlin is an EA, and thus inherently stochastic, it's important to have multiple runs.  So, it'd be nice if it had support for reporting results by run number.

If probes were allowed to take in optional arguments, such as for job ID, then this problem would resolved.  So, need to be smarter about detecting parameters being passed to a given probe, such as a job ID parameter.
This can be finessed a little by using environment variables, which is what I'm doing for another project.  It's a bit of a kludge, though.


CASMINST-4249 conman is not needed to enabled at boot

Summary and Scope
Removes conman from the variables of enabled services.
Issues and Related PRs

Resolves CASMINST-4249

Testing
Risks and Mitigations
Unknown
Pull Request Checklist

[x] Version number(s) incremented, if applicable
[ ] Copyrights updated
[x] License file intact
[x] Target branch correct
[ ] CHANGELOG.md updated
[ ] Testing is appropriate and complete, if applicable
[ ] HPC Product Announcement prepared, if applicable

Fixed in pit-init repo


Allow cross-namespace output gathering for parameters

This comes from @acmcelwee in https://github.com/remind101/stacker/pull/169#issuecomment-233201214.  This is something I've thought about before, but hadn't come up with a good conclusion.
One idea is that we could have stacker attempt to find the stack with the namespace, and if that fails fall back to looking for the stack without the namespace.  The only downside to that is that it feels like it could do something accidentally, but in that case I get the feeling it'd just fail to create the stack at all.
Another option is to come up with another syntax that indicates to look outside of the stack definition at stacks.  not sure what that syntax would be.
CC: @ejholmes @mhahn

And I realized now that I missed  @acmcelwee 's proposal for a syntax - basically a leading :: in front would indicate that it's a fully qualified stack name - that seems fine to me.

@phobologic, thanks for pulling this over. It hasn't been a blocker for me yet, so I haven't spent any brain cycles on it lately. I'm quoting your contract expectation from #169 (comment)

I don't think it has to be that complicated - the contract could be that if you specify a full stack name for an Output that it no longer guarantees much other than it's in a 'consistent' state (ie: UPDATE_COMPLETE, CREATE_COMPLETE, etc).

The combination of a leading :: for fully-qualified stacks + the contract stated above seems like enough to provide a lot of useful functionality without complicating things.

@acmcelwee can you take a look at: https://github.com/remind101/stacker/pull/202 and see if that addresses your issue here?


Metadata structure improvements

Hello! I'm developing a metadata parsing software and images created with dynamic-prompts extension are hard to parse.
Key problems:

No commas before the keywords.
Commas inside the templates themselves.

Here is an example:
CFG scale minimum: 3.5 Template: __topnotch-gpt3.5__, [ __1980s-technology__|__1990s-technology__|__render-engine__|__render__]
My proposal is:

Put commas before "Template" and "Negative template" keywords
Enclose the template text into quotes.

This way extension metadata could be parsed along with standard A1111 parameters and data from other extensions.

I don't understand your request. Are you looking at parsing metadata embedded in the png file? If so, the easiest solution is to re-purpose the same parser that it used to generate prompts in the first place which you can find here: https://github.com/adieyal/dynamicprompts
Writing your own parser will be a lot of work and will almost certainly be brittle.

The request is: use the common A1111 rules when saving the metadata. Parsers split key-value pairs by comma, and split the key from the value by colon. In your case, there are no commas before the keys.
The solution is simple:

Put commas before "Template" and "Negative template" keywords. You can leave the carriage return as is, just add commas.
Enclose the template texts into quotes as they can contain commas as well

That's all. This way it won't break a metadata parsing process and won't corrupt all the metadata written by other extensions after the dynamic-prompts.

Here's is an example from a random file I just generated:
A green Neapolitan Mastiff
Negative prompt: text, signature, watermark, username, blurry, artist name
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed:<PHONE_NUMBER>, Size: 512x512, Model hash: e6415c4892, Model: realisticVisionV2.0
Template: A {red|green|blue} __animals__
Negative Template: __negatives/marks__

How how your proposal change it? Something like this:
A green Neapolitan Mastiff
Negative prompt: text, signature, watermark, username, blurry, artist name
Steps: 20, Sampler: Euler a, CFG scale: 7, Seed:<PHONE_NUMBER>, Size: 512x512, Model hash: e6415c4892, Model: realisticVisionV2.0
,Template: "A {red|green|blue} __animals__"
,Negative Template: "__negatives/marks__"

Yes, that's right. You can move the commas before the "\n" for the esthetic reason.

@stassius Your parser could make use of the fact that Template: and Negative Template: are always preceded by a newline character.
This is somewhat related to #343 - AIUI, we could store SDDP metadata in a different field in the PNG file. (I haven't looked further into how the A1111 metadata is structured in the PNG file.)

@akx It's possible that other extensions will write metadata after the Dynamic prompts, and if they will use the common scheme (commas-colons), it would be impossible to tell where the Dynamic prompts part is ending. The standard comma-colon approach will eliminate the hassle here.

@stassius Indeed it is. Comments from e.g. hijack hook modules (e.g. Used embeddings: easynegative [119b]) are already double-newline-separated anyway (see https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/22bcc7be428c94e9408f589966c2040187245d81/modules/processing.py#L754).
Additionally: how would your proposed scheme handle quotes within the prompts/templates?
That aside, there's a huge corpus of SDDP-generated metadata already out there with the current format, so your parser should support it anyway...

@stassius Your project may be interested to know infotext structure changes re quoting in sd-webui 1.3.0: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/ff0e17174f8d93a71fdd5a4a80a4629bbf97f822


The meaning of the taint path result  and How to find the function with it.

i am a newcomer to the amandroid and i have used it to get the taint analysis result.could you please tell me the meaning of the taint path in its result (i mean the string like"L0cd1e0",the relation between "(cx.a,L0c75ec)"and "(dp.a,L0cd1e0)"in " VirtualBody@(cx.a,L0c75ec)(dp.a,L0cd1e0)" and the meaning of "->").And how can i exactly find the function which has used the function in the Sink according to the taint path result ?
TaintPath:
Source: <Descriptors: api_source: Lorg/apache/http/HttpResponse;.getEntity:()Lorg/apache/http/HttpEntity; >
Sink: <Descriptors: api_sink: Ljava/io/FileOutputStream;.write:([BII)V 1>
Types: maliciousness:information_theft
The path consists of the following edges ("->"). The nodes have the context information (p1 to pn means which parameter). The source is at the top :
VirtualBody@(cx.a,L0c75ec)(dp.a,L0cd1e0)  ->
Call@(cx.a,L0c75fc)(dp.a,L0cd1e0)p1  ->
VirtualBody@(cx.a,L0c79b2)(cy.run,L0c870c)
Best Regards

(cx.a,L0c75ec) means
class: cx
method: a
location: L0c75ec (This location is present in the .jawa file)
(cx.a,L0c75ec)(dp.a,L0cd1e0) means: one level of calling context, the cx.a() is called from dp.a at location L0cd1e0.
VirtualBody means the instruction at (cx.a,L0c75ec) is a modeled function call.
So to interpret your path:

get source at modeled function call: VirtualBody@(cx.a,L0c75ec)(dp.a,L0cd1e0)
the data is flow to the first parameter (p1) of method call: Call@(cx.a,L0c75fc)(dp.a,L0cd1e0).
the data reached a sink at modeled function call: VirtualBody@(cx.a,L0c79b2)(cy.run,L0c870c)

OK i got it.Thank you very much!

This is the output I got for one of my apks and after reading the answer above it was de-mystified a little but I still don't understand what is happening.
Thank you.
TaintPath:
Source: <Descriptors: api_source: Landroid/app/PendingIntent;.getActivity:(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;>
Sink: <Descriptors: api_sink: Landroid/util/Log;.d:(Ljava/lang/String;Ljava/lang/String;)I 2>
Types: maliciousness:information_theft
The path consists of the following edges ("->"). The nodes have the context information (p1 to pn means which parameter).


Non-Causal attention mask support?

I am attempting to use a non-causal attention mask for a llama model with Unsloth and looking over the code to find the best way to achieve all the other speedups but use a non-causal attention mask.
I would appreciate some advice on places to look for code changes, prior to stepping through with a debugger.
I see there that the Attention forward still seems to support the attention mask:
https://github.com/unslothai/unsloth/blob/main/unsloth/models/llama.py#L375
But it may be ignored in the forward fn:
https://github.com/unslothai/unsloth/blob/main/unsloth/models/llama.py#L589

I realized my requirements are different than I at first thought, closing this.

Apologies relocated to SF, hence the delay!
Ye sadly non causal attention masks are not yet supported - there is a way though - you'll have to fork the project, then edit it to causal = False for FA, and Xformers will need a different causal mask

@danielhanchen I managed to get this working, but  actually with a non-causal mask SDPA outperformed xformers by quite a margin (I didn't test FA).

Interesting!!


Add optional dependency cloudpickle

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

Project coverage is 100.00%. Comparing base (30acae3) to head (71f0aac).
Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #290   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           67        67
  Lines         1387      1387
  Branches        51        51
=========================================
  Hits          1387      1387

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


--network is ignored when --host is used

If --host is specified, --network is ignored, so nothing can be deployed with the flow deploy command.
Steps to reproduce

clone https://github.com/ryokik/example-flow-project (or flow setup and add some contracts)
Start emulator flow emulator
Deploy contracts with host option flow deploy --host <IP_ADDRESS>:3569 --network emulator

Additional Info
I am using jest for automated testing.
I use a different port than usual to run emulator in parallel.
Looking at the implementation, it appears that when host is specified, the internal name is "custom".
https://github.com/onflow/flow-cli/blob/daa1550168a7310426dc24d3b6e805766f470442/internal/command/command.go#L204

Also, when '--host' is specified, references (imports) between Constructs cannot be resolved.
This also seems to be caused by the fact that the network name is internally set to "custom".

You are right, but I wonder if you think this is a issue? the way I was thinking about is, if you have a custom host for a network you would define that in "networks" section in flow.json and then just use that network name on the deploy.

I run flow emulators in parallel for automated testing.
Each has a different port.
When --network flag is used, I have to define networks like emulator-1, emulator-2, emulator-3, and the same number of duplicate deployments.


trident fetch

We assume that trident will often be used in conjunction with remote data repositories. These should be servers that provide on request both janno packages with all data as well as a simple top-level information data structure in JSON format to document the names and version of the packages the respective repository holds. It should also store the endpoints where the data can be requested for download.
Trident should have a module called fetch to download information and data from these servers. The interface could look something like this:
trident fetch \
  -f "*pac1*,*pac2*" \
  --fetchFile path/to/entity/list/file \
  -d path/to/directory/where/pacs/should/be/stored \
  --preview \
  --remote https:://...

-f defines which entities should be downloaded (see trident forge). At the beginning it will only support package names
-f can also be given in a file --fetchFile
For this module -d serves as the output directory. If multiple are given, then the first is used to store new data
--preview only queries the info data a given server provides to show which packages are available there for download (similar to trident list)
--remote allows to set a repo server URL. The default would be the DAG service

Fetch should automatically handle version update detection. That means if -d is not empty, the local and the remote package versions should be compared and only updated data should be downloaded. If -f and --fetchFile are empty, then this should be done for all packages in all -ds.

I just saw the nice download interface of singularity again. I think that's how I would like the fetch command line messages to look like:
Copying blob a4a2a29f9ba4 skipped: already exists
Copying blob 127c9761dcba skipped: already exists
Copying blob d13bf203e905 skipped: already exists
Copying blob 4039240d2e0b skipped: already exists
Copying blob 0288f53e6092 done
Copying blob bfb2ff329e0c done
Copying blob 0bca5c1eea79 [==================================>---] 229.9MiB / 248.2MiB

Yes, that looks very good!
Right now, the simplest would be to use the zip-files provided by the server, and as far as I can see, their size gets projected when - for example - downloaded via a browser. So a progress bar should in principle be possible.
We should also make fetch clever enough to check whether a download is necessary in the first place.
And there should perhaps be an --all option, simply for users who know they want everything (like our department).


Release/0.10.0

Coverage decreased (-0.5%) to 43.054% when pulling a2768e9d7e14c6cf5d487bc25823a7d7e48240fa on release/0.10.0 into ee23543cf2e9731afc581d869da76abc34256243 on master.

Coverage decreased (-0.5%) to 43.054% when pulling 56e25df9a4b49c016f1ad50e127ab749a217d67b on release/0.10.0 into ee23543cf2e9731afc581d869da76abc34256243 on master.

Coverage decreased (-39.4%) to 5.814% when pulling 3259e18b2ae50bd59c08ef3808837b78e190c6c4 on release/0.10.0 into 265c252518e05b29237e5bb4c3af962fff4a5ffb on master.

Coverage decreased (-39.4%) to 5.814% when pulling 3259e18b2ae50bd59c08ef3808837b78e190c6c4 on release/0.10.0 into 265c252518e05b29237e5bb4c3af962fff4a5ffb on master.

Coverage increased (+3.0%) to 48.247% when pulling dc6a8c619fe7d344aa3541f46dee1b620e960838 on release/0.10.0 into 265c252518e05b29237e5bb4c3af962fff4a5ffb on master.


CPP-434

Update api, tests, docs, examples to use 32-bit int's for Duration attributes.

cass::CassDuration is still using int64_t: https://github.com/datastax/cpp-driver/blob/cpp-434/src/types.hpp#L65-L75

Other than the above issue +1


What are the other variant install zabbix-exporter?

Hello,
What are the other variant install zabbix-exporter?
Please can you describe them for an example in readme.

how do you define variant? are you looking for other providers of such exporter or you like to find a way to use it not via docker.
thanks.

I could really use a real0-world config file I can start with.  I'm not sure where exactly to begin as I'm new to both Zabbix and Prometheus.


Support nest Switch as the children of Switch

In some cases, we need a way to group some routes in Switch, nest Switch will help more and it is convenient usage instead of path enumerating way.
<Switch>
    <Switch>
        <Route path="/apple" component="Apple" />
        <Route path="/pineapple" component="Pineapple" />
        <Route path="/banana" component="Banana" />
    </Switch>
    <Route path="/not-fruit" component="NotFruit" />
    <Route component="NotFound" />
</Switch>

I'm not sure what this nesting would get you. This is the exact same thing:
<Switch>
    <Route path="/apple" component="Apple" />
    <Route path="/pineapple" component="Pineapple" />
    <Route path="/banana" component="Banana" />
    <Route path="/not-fruit" component="NotFruit" />
    <Route component="NotFound" />
</Switch>


[zh] Sync new-content/new-features.md

Sync with en #48386
content/zh-cn/docs/contribute/new-content/new-features.md

/approve


[FE] create new blog page

new page at /create that lets a user create a new blog

@thebeatlesphan oops, didn't realize you'd picked this up (think i was looking at a diff issue). but i just opened a PR for it and it's still a WIP but mostly there if you want to take a look


use selenium 3

selenium 3 is the latest and greatest, is fully backwards compatible with selenium 2, and brings many stability fixes as well as new features.
https://seleniumhq.wordpress.com/2016/10/13/selenium-3-0-out-now/
@DramaFever/qa

LGTM


[FEAT] Keep LMSYS session alive

claude是否也可以向chatgpt那样添加一个保活程序呢

像chatgpt那样

How can I make it work? I refresh it, but I still cannot access it. "Error: Connection closed by server"

After I clicked on the blue text, I re-entered the LMSYS Web site and was able to re-use it
发自我的小米
在 daffi7 @.***>，2023年6月26日 14:15写道：
How can I make it work? I refresh it, but I still cannot access it. "Error: Connection closed by server"
—
Reply to this email directly, view it on GitHubhttps://github.com/sunner/ChatALL/issues/283#issuecomment-1606720868, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6J3CQSW7V5FTUBGJOMZBCTXNESH7ANCNFSM6AAAAAAZTQ2F4U.
You are receiving this because you authored the thread.Message ID: @.***>


Any way to save Earlystopping for later use?

Due to my machine's hardware limitation, I have to divide the dataset into N parts, and train them part by part.
So, I save my keras model every-time when I finished one part, and load it when train the next part of data.
I also use Earlystopping to monitor "validation_loss", and avoid overfitting.
However, if I re-load a keras model, the Earlystopping object will be "inited" again. Hence, the power of Earlystopping can only be effective within the same "part" of data.
Is there anyway to make it keep on watching and remember the "val_loss" from previous parts? pickle save it?
Thx.

Don't. Use fit_generator() and yield samples out-of-memory instead.


[Easy] Use optimized instructions instead of hand-written shifts in Buffer_Utils

e.g. uint32_of_bytes

https://github.com/FStarLang/kremlin/blob/master/src/CFlatToWasm.ml#L62


MSBuild/dotnet-cli integration

Related: Azure/autorest#1823

Any update on this? This would be pretty cool to have.


Debugging Thin-Edge Process (tedge-mapper and tedge-agent)

I am currently working with the Thin Edge framework version 1.3.1 and am seeking best practices for debugging thin-edge processes like tedge-mapper and tedge-agent. Specifically, I need guidance on effectively debugging the execution of these services.
Additionally, if there are any existing resources or documentation that provide detailed instructions for debugging Thin Edge processes to assist developers, I would greatly appreciate it if you could direct me to them. Thanks

@Haider-Mazhar I'm going to assume you mean debugging a running process, and not debugging in a code editor (e.g. debugging Rust code with an interactive debugger) - but correct me if I'm wrong in my assumption.
All of the thin-edge.io components follow the standard practice of logging standard error (e.g. stderr), the Operating System's service manager (systemd is probably the most common service manager) will run the service and then store the stderr output in its log storage (for systemd this is called journald). If you're not using systemd, then generally the output will be stored in simple log (text) files.
Below is a link to our troubleshooting documentation which goes into detail on how to view the thin-edge.io logs (when using systemd/journald) and how to change the log levels etc.

Operate > Troubleshooting > Log Files

We also find it helpful to look at the local MQTT broker used by thin-edge.io to see what MQTT messages are being sent. You can view the messages on the broker using the following command:
tedge mqtt sub '#'

By the way, the thin-edge.io docs are a good place to start (the search functionality can also be helpful if you don't know exactly what you are looking for)

@reubenmiller , Thank you for your detailed response. I appreciate the information provided regarding the logging and how to view logs using systemd/journald. I read the documentation, and it was quite helpful.
Additionally, I have already viewed the logs for tedge mapper and tedge agent using journalctl. However, I was specifically referring to interactive debugging to gain a deeper understanding of the flow.
Your assistance has been valuable, and I look forward to any additional guidance you can provide on interactive debugging using VS Code or any other IDE.

@Haider-Mazhar Are you are Rust programmer? If not then it might be a bit difficult to get going...but generally it is a Rust based project, so the standard Rust debugging rules apply.
But have you tried changing the log level to debug or even trace? That will give you a better idea what is happening sequentially. I don't think debugging in the IDE will help you out that much (unless if you are planning on writing Rust code yourself)...thin-edge.io allows users to extend thin-edge.io via any programming language, so technically speaking you don't need to know much about the thin-edge.io Rust code.

@reubenmiller,  Thank you so much for all your help! The documentation is fantastic and incredibly helpful. The Rust development and debugging of thin-edge are progressing smoothly, and I’m finding the process quite manageable with the resources provided.  Your support is much appreciated!

@Haider-Mazhar Great to hear :)
Are you happy if we close this ticket then?

@reubenmiller, Yes, please feel free to close the ticket.


Ability to set a class to heading table-cell

I’m playing with vue-tables, it seems to be good, but I need to set the width of certain columns, but I don't find a way to set a class to a heading table-cell. Do you see a solution I’m missing?

You can use the :nth-child selector


Build cudf library locally during the building process

update CMakeLists.txt to locally build cuDF to get rid of the dependency of arrow library. Previously we installed cuDF via conda but the libcudf there has dynamic link to libarrow which may cause lib not found problem in another runtime.

Signed-off-by: Allen Xu<EMAIL_ADDRESS>

I'm a bit confused on the reported problem.  Is libcudf.so being bundled with a spark-rapids-ml jar or is it supposed to be picking up the libcudf.so that is loaded by the cudf jar?  If the latter, then I don't understand why it matters whether libcudf is linked dynamically or statically against the Arrow library if this module only links against libcudf.so at build time.  Is the spark-rapids-ml code leveraging Arrow APIs and expecting to pick them up through the libcudf.so dependency?

Before this change, we set up the build environment by installing conda, then installing cuDF via conda, and use the libcudf.so from conda, not link the libcudf.so from the cuDF jar.  In this case, after building the spark-rapids-ml jar, we can see some dynamic links like
+ ldd ./amd64/Linux/librapidsml_jni.so
ldd: warning: you do not have execution permission for `./amd64/Linux/librapidsml_jni.so'
        linux-vdso.so.1 (0x00007ffc7dba7000)
        libcudf.so => /root/miniconda3/lib/libcudf.so (0x00007ff6cf328000)
        libcublas.so.11 => /usr/local/cuda/lib64/libcublas.so.11 (0x00007ff6c5a90000)
        libarrow.so.500 => /root/miniconda3/lib/libarrow.so.500 (0x00007ff6c48a8000)
        libarrow_cuda.so.500 => /root/miniconda3/lib/libarrow_cuda.so.500 (0x00007ff6f09db000)

So if the runtime environemnt doesn't have the libarrow.so, it will crash. There's no use of Arrow APIs but somehow it's linking it.
So I think the only target is to get rid of the libarrow.so

If the runtime environment doesn't have the libarrow.so, it will crash. There's no use of Arrow APIs but somehow it's linking it.

Note that ldd is not necessarily going to tell the true story of what will happen at runtime.  ldd will show you all of the dependencies, even if they're transitive.  For example, here's libcudfjni.so and libcudf.so from the latest cudf SNAPSHOT jar:
$ ldd amd64/Linux/*
amd64/Linux/libcudfjni.so:
	linux-vdso.so.1 (0x00007ffd48994000)
	libcudf.so => not found
amd64/Linux/libcudf.so:
	linux-vdso.so.1 (0x00007ffc18d03000)
	libcuda.so.1 => /lib/x86_64-linux-gnu/libcuda.so.1 (0x00007f716f021000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f716f016000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f716eff3000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f716efed000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f716ee0b000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f716ecba000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f716ec9f000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f716eaad000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f718d6f7000)

Note how libcudfjni.so has only a dependency on libcudf.so which is not found.  But if I allow ldd to locate it, notice how it suddenly reports that it needs a lot more libraries:
$ LD_LIBRARY_PATH=amd64/Linux ldd amd64/Linux/*
amd64/Linux/libcudfjni.so:
	linux-vdso.so.1 (0x00007ffc19d2c000)
	libcudf.so => amd64/Linux/libcudf.so (0x00007f3228bae000)
	libcuda.so.1 => /lib/x86_64-linux-gnu/libcuda.so.1 (0x00007f32274b1000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f32274a6000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3227483000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f322747d000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3227299000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f322714a000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f322712f000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3226f3d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f3245b8c000)
amd64/Linux/libcudf.so:
	linux-vdso.so.1 (0x00007ffe5a7f3000)
	libcuda.so.1 => /lib/x86_64-linux-gnu/libcuda.so.1 (0x00007fea8faa2000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fea8fa97000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fea8fa74000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fea8fa6e000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fea8f88c000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fea8f73b000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fea8f720000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fea8f52e000)
	/lib64/ld-linux-x86-64.so.2 (0x00007feaae178000)

So it would be interesting to "hide" libcudf.so from librapidsml_jni.so (e.g.: temporarily move it to libcudf.so.moved or something) and see if ldd still reports the arrow dependency on spark-rapids-ml.  If it does not show the arrow dependency in that case, then I don't think there's anything to worry about here.  The libcudf.so it finds at runtime (which comes from the cudf jar) will always have a statically linked Arrow library (well, at least if it's built with the Java CI script which builds the "run anywhere" version of the libs).
If ldd still shows the Arrow dependency even when libcudf.so cannot be found then we should add static arrow linking to the spark-rapids-ml build, not necessarily build all of libcudf with static arrow and hope that it pulled in the pieces of Arrow that we also need in spark-rapids-ml.
Bottom line is that it seems like this PR isn't the right fix for the problem being reported.  Either there isn't a real problem here at runtime (it just appears that way from ldd output) or we need to statically link Arrow into spark-rapids-ml.

@jlowe There's a very confusing observation, when I build the lib in ubuntu, then I rename the libcudf.so in miniconda, I can see:
allxu@allxu-System-Product-Name:~/code/spark-rapids-ml/target/native/lib$ ldd librapidsml_jni.so

        linux-vdso.so.1 (0x00007ffd6c357000)
        libcudf.so => not found
        libcublas.so.11 => /usr/local/cuda/lib64/libcublas.so.11 (0x00007f9077eb4000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9077eae000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9077e8b000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9077e80000)
        libstdc++.so.6 => /home/allxu/miniconda3/lib/libstdc++.so.6 (0x00007f9077d0b000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9077bba000)
        libgcc_s.so.1 => /home/allxu/miniconda3/lib/libgcc_s.so.1 (0x00007f9077ba6000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f90779b4000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f90848b9000)
        libcublasLt.so.11 => /usr/local/cuda/lib64/libcublasLt.so.11 (0x00007f9063449000)

However, when I started a Docker for Centos7 and build in the exact same fasion(mvn package), I got
(base) [root@9733387dc6e5 lib]# ldd librapidsml_jni.so
        linux-vdso.so.1 =>  (0x00007ffef61b3000)
        libcudf.so => not found
        libcublas.so.11 => /usr/local/cuda/lib64/libcublas.so.11 (0x00007f35c07fd000)
        libarrow.so.500 => not found
        libarrow_cuda.so.500 => not found
        libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f35c05f9000)
        libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f35c03dd000)
        libcudart.so.11.0 => /usr/local/cuda/lib64/libcudart.so.11.0 (0x00007f35c013b000)
        libcuda.so.1 => /usr/lib64/libcuda.so.1 (0x00007f35be971000)
        librt.so.1 => /usr/lib64/librt.so.1 (0x00007f35be769000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f35be461000)
        libm.so.6 => /usr/lib64/libm.so.6 (0x00007f35be15f000)
        libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007f35bdf49000)
        libc.so.6 => /usr/lib64/libc.so.6 (0x00007f35bdb7b000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f35cd1f0000)
        libcublasLt.so.11 => /usr/local/cuda/lib64/libcublasLt.so.11 (0x00007f35a9610000)

here's the compile command generated:
Ubuntu:
&& /usr/bin/c++ -fPIC
 -shared -Wl,-soname,librapidsml_jni.so -o lib/librapidsml_jni.so src/CMakeFiles/rapidsml_jni.dir/rapidsml_jni.cpp.o src/CMakeFiles/rapidsml_jni.dir/rapidsml_jni.cu.o
 -L/usr/local/cuda/targets/x86_64-linux/lib/stubs   -L/usr/local/cuda/targets/x86_64-linux/lib -Wl,
-rpath,/usr/local/cuda/lib64:/home/allxu/miniconda3/lib
  -Wl,-Bstatic  -lcudart_static  -lcusparse_static  -lcusolver_static  -lculibos  -llapack_static
 -Wl,-Bdynamic  /home/allxu/miniconda3/lib/libcudf.so  /usr/local/cuda/lib64/libcublas.so  /home/allxu/miniconda3/lib/libarrow.so.500.0.0  /home/allxu/miniconda3/lib/libarrow_cuda.so.500.0.0
-ldl  -lpthread  /usr/local/cuda/lib64/libcudart.so  /usr/lib/x86_64-linux-gnu/libcuda.so
 -lcudadevrt  -lcudart_static  -lrt  -lpthread  -ldl &&

Centos:
&& /opt/rh/devtoolset-9/root/usr/bin/c++ -fPIC
-shared -Wl,-soname,librapidsml_jni.so -o lib/librapidsml_jni.so src/CMakeFiles/rapidsml_jni.dir/rapidsml_jni.cpp.o src/CMakeFiles/rapidsml_jni.dir/rapidsml_jni.cu.o
-L/usr/local/cuda/targets/x86_64-linux/lib -Wl,
-rpath,/usr/local/cuda/lib64:/root/miniconda3/lib
-Wl,-Bstatic  -lcudart_static  -lcusparse_static  -lcusolver_static  -lculibos  -llapack_static
-Wl,-Bdynamic  /root/miniconda3/lib/libcudf.so  /usr/local/cuda/lib64/libcublas.so  /root/miniconda3/lib/libarrow.so.500.0.0  /root/miniconda3/lib/libarrow_cuda.so.500.0.0
-ldl  -lpthread  /usr/local/cuda/lib64/libcudart.so  /usr/lib64/libcuda.so
 -lcudadevrt  -lcudart_static  -lrt  -lpthread  -ldl &&

Note that in both cases, the compile command-line is explicitly asking for librapidsml_jni.so to be dynamically linked against Arrow:
-Wl,-Bdynamic  /root/miniconda3/lib/libcudf.so  /usr/local/cuda/lib64/libcublas.so  /root/miniconda3/lib/libarrow.so.500.0.0  /root/miniconda3/lib/libarrow_cuda.so.500.0.0

I suspect the linker on Ubuntu is defaulting to omitting shared libs if the symbols in the libraries are not needed, whereas the CentOS 7 linker is always including the shared lib even if it is not referenced by symbols.

You could try modifying the link line to add -Wl,--as-needed before the -Wl,-Bdynamic to see if it changes the linking behavior on CentOS 7 to no longer include the Arrow libs.

closed by https://github.com/NVIDIA/spark-rapids-ml/pull/39


Incorrect Rendering In Latex/Mathjax

Is the bug present when using the default Obsidian theme?
No
Is the bug present when snippets and plugins are disabled?
Yes
Minimal theme version
7.7.18
Describe the bug
##### $\mu$ renders incorrectly on PC and does not render at all on iOS.
Only happens from level 5 onward.
Desktop: Example Using ##### $\left(\mu \Phi\right)$

iPad: Example

Debug info
SYSTEM INFO:
	Obsidian version: v1.7.4
	Installer version: v1.5.3
	Operating system: Windows 10 Home 10.0.19045
	Login status: logged in
	Language: en
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: Minimal v7.7.18
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 0
	Plugins enabled: 0

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.

It likely depends on your font and style settings and whether small caps are supported. You can turn off small caps in the H5 settings in Style Settings.

It likely depends on your font and style settings and whether small caps are supported. You can turn off small caps in the H5 settings in Style Settings.

That worked perfectly. Thank you. I forgot to say that.


CC 8: Remove unused field in Planet class

In the videos, this field was not added until challenge 9, and it is not used in the code here.
While I was at it, I also updated the header.

Thanks for catching this!


Add Deep Learning for Self-Driving Cars course

Is this PR ok for merging?

just forgot to go back after addressing the linter's objections.