Idea of forking an environment and layering on top of an environment

Ooh, this is a great idea! I've seen this done in a python development environment before and it can be really powerful. This is very exciting!

@dcharbon yeah it came up in a call with a customer today looking to use conda-store. Looking the for the most conda compatible way of exposing layering. Likely exposing an environment as a "metapackage" in conda-store would enable layering. Forking would be much easier to implement.

I've thoroughly explored this idea (and have code for it). It leads to something like conda build but for environments. The main functionality comes from conda-devenv.

As I see it as a general gap in tooling, it should be broader community issue (and not for conda-store to solve).

To give more information on why I think this may be required within conda-store. Some of our clients would like the ability to enforce that for all/specific environments they contain certain packages that are pinned to a specific version. E.g. they have a base data science environment. However sometime in the future the IT team decides that all data science environments must update to the latest numpy version. We need some way to force the environments that were forked from the data science environment to update as well.
I guess the same could be achieved by a metapackage. I think this slightly different forking since we'd like the environment to always track a base environment.

To give more information on why I think this may be required within conda-store. Some of our clients would like the ability to enforce that for all/specific environments they contain certain packages that are pinned to a specific version. E.g. they have a base data science environment. However sometime in the future the IT team decides that all data science environments must update to the latest numpy version. We need some way to force the environments that were forked from the data science environment to update as well.
I guess the same could be achieved by a metapackage. I think this slightly different forking since we'd like the environment to always track a base environment.

https://github.com/pnnl/hydraconda/tree/master

@costrouc this issue is rather old, is this still something worth considering?

This issue seems stale will close and if needed we can re open


GH Actions to build firmware

upload the builded firmware in section release when drafting a release tagging like v*.*.*

Thanks for the PR. Sorry, I am on Windows with msys2 which supports bash and pacman package manager. Is it possible or desired to accommodate Windows?

Why is the platform relevant where the Firmware is built?

I did not understand where a GH Action runs at first. Merging.

@mightymos Forgot, the GH actions needs write permissions to publish the release.
You find that in GH settings -> Actions -> General

Probably not. To start the action you have to draft a release

Push the menu and choose a version number you want in format v*.*.*
and than push publish menu button

If you do some GH Actions, you get addicted to ;-)

Got it, thanks. There are actually two different parts in these door sensors so far...that run at different system clocks. The makefile and generated hex file would probably need to take this into account in the future.

Maybe you can do a Makefile which is building all different variants?
Small change for releasing all builded variants.

Yes, will be needed eventually. I will have to learn more about makefiles.


HTTP 522 errors

Hi,
I've implemented the fuzzy storage on my server but it seems only thing i get are 522 error's:
2023-03-23 08:52:57 #129224(controller) ; map; http_map_finish: cannot load map https://maps.mailbaby.net/mailbaby-smtpcrack-body.map from maps.mailbaby.net: HTTP error 522
2023-03-23 08:52:57 #129224(controller) ; map; http_map_finish: cannot load map https://maps.mailbaby.net/mailbaby-spamphrases-body.map from maps.mailbaby.net: HTTP error 522
2023-03-23 08:52:57 #129224(controller) ; map; http_map_finish: cannot load map https://maps.mailbaby.net/phpgrey_header.map from maps.mailbaby.net: HTTP error 522
2023-03-23 08:52:57 #129224(controller) ; map; http_map_finish: cannot load map https://maps.mailbaby.net/ch/ch_shorturl.map from maps.mailbaby.net: HTTP error 522
2023-03-23 08:52:57 #129224(controller) <7e9hak>; map; http_map_finish: cannot load map https://maps.mailbaby.net/contentfiltering/dhl_delivery.map from maps.mailbaby.net: HTTP error 522
2023-03-23 08:52:57 #129224(controller) ; map; http_map_finish: cannot load map https://maps.mailbaby.net/contentfiltering/fake_email_spambox.map from maps.mailbaby.net: HTTP error 522
Any idea as to what is going on?
Kind regards,
Tom

The maps url is behind cloudflare. A 522 error looks like it would be from cloudflare, indicating a time out to the backend (my end) on the server. Although, nothing in the logs for max connections maybe there was some issue between cloudflare and the server. Is it still happening right now for you?

Hi, it seems to be fixed now 👍


feat(grpc): multi-service support

close https://github.com/cloudwego/volo/issues/87

cc @moonfdd

Right now, code in this branch Millione:lj/dev compiles failed on the latest nightly version. i.e. Run cargo build will encounter rustc ICE bugs. Cooresponded issue:https://github.com/rust-lang/rust/issues/105044

Now the ICE bug has been fixed by https://github.com/rust-lang/rust/pull/105455


PrimaDonna Soul

I've got a PrimaDonna Soul. As the DeLonghi App really is one of the worst I have ever seen I thought maybe your application could help out.
Unfortunately, the machine does not react to anything after being connected. Is there a possibility to read out some logs or test something to make the model compatible. It is an ECAM 610.75.

Is it wifi or bluetooth device?
This integration supports bluetooth device only.

Well, both. Bluetooth is needed to connect the app, but the final connection is via Wi-Fi.
So best bet it is not possible?

I've the same machine, coffee app works also via wifi or outside home via mobile broadband connection

I have just gotten the soul. It clearly can use both WiFi and Bluetooth. Would be awesome  as one if WiFi could work too as it might allow 2 connnections.

PrimaDonna Soul owner here too, so we can conclude this integration doesn't work with the soul.
Be great to see wifi supported in the future.

Happy to help probe my machine via sniffing if anyone can code it.

Dear author, are you planning to add support for this coffee machine? Maybe you need help?

It's seems we have some new development in here: https://github.com/ioBroker/AdapterRequests/issues/664

It's seems we have some new development in here: ioBroker/AdapterRequests#664

Well, the final purpose of my debug is indeed to integrate my coffee machine to HA, so I'll continue posting if I find anything new.

It's seems we have some new development in here: ioBroker/AdapterRequests#664

Well, the final purpose of my debug is indeed to integrate my coffee machine to HA, so I'll continue posting if I find anything new.

Did you manage to integrate this? anything I might be able to help with. i have your code working which is great. be good to make it well rounded.


TypeError: undefined is not an object (evaluating 'fileData.data')

Hi guys, I am trying to use PhantomCSS first time. Im following the given step-by-step. It runs very well first time and generates the screen shots, but the second time I receive the erro: TypeError: undefined is not an object (evaluating 'fileData.data').
I took a look at the code and its not "upload or using the files".
Any ideas how to fix it or make it works?
Thank u in advance.
log.txt

And what was the cause? I have similar problem and I'm struggling.

Hi mate, I think I had a similar problem than yours but I cannot remember very well what my problem was.


Create detailed documentation for adding additional client access to ServerAPI resources.

It would be great to get some clear instructions on how to add additional clients to access the Blazor WebAssembly .NET Core hosted server-side API endpoints using the new Microsoft.AspNetCore.ApiAuthorization.IdentityServer package.
After not finding any information I was able to implement the following:
services.AddIdentityServer()
                .AddApiAuthorization<ApplicationUser, ApplicationDbContext>(options =>
                {
                    options.Clients.Add(new IdentityServer4.Models.Client
                    {
                        ClientId = "web_id",
                        ClientSecrets = { new Secret("web_id".ToSha256()) },
                        AllowedGrantTypes = GrantTypes.ClientCredentials,
                        AllowedScopes = { "WebAssemblyTest.ServerAPI" }

                    });
                });

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

ID: f2cdb52c-843f-5944-429d-11ea821c1e22
Version Independent ID: 9c4f99ef-f070-b527-4efc-96a04798d9ef
Content: ASP.NET Core Blazor WebAssembly additional security scenarios
Content Source: aspnetcore/security/blazor/webassembly/additional-scenarios.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @guardrex
Microsoft Alias: riande

@javiercn can you suggest a good pattern to use here? Do you think the one @bdfin came up with a good one?

I don't think this quite fits our coverage any longer, given that we're focusing coverage on Duende Identity Server now. Also, this ask seems to be more in the vein of how to configure any ASP.NET Core app to access an ASP.NET Core web API, which is all that the Server app is of a hosted WASM solution is in this use case. It's not really specific to Blazor apps AFAICT. @bdfin, thanks for your request. We'll continue to take feedback in this area.


[FEATURE] Move pcidevices to harvester addon

Is your feature request related to a problem? Please describe.

Currently pcidevices controller is managed as a harvester chart dependency.
As a result of this pcidevices is deployed by default, even when users have no need for the same.
Describe the solution you'd like

Move pcidevices to an addon, similar to the vm-import-controller, allowing users to enable/disable pcidevices-controller as and when needed.
Describe alternatives you've considered

Additional context

Tested in master-5149fc95-head.
Verified new section of Settings and also that PCI devices required you to enable it before opening the settings page


Removing FC layer at the top of the transformer model

Hi all,
I would like to ask you how I can remove the fully connected layer at the top of the transformer layer.
I want to get the output of the transformer networks and not the final prediction.
Moreover, I would like to ask if these models come with the pretrained weights.
Thank you.

did you got the solution please?

I have same question on this, do we have any updates !?

maybe this post  can help you.


Uncaught TypeError when using .destroy()

Hi!
Above all else, thx for this very good and lightweight plugin.
Here is my issue: when I use .destroy() on a slider, I have this console error (spawning again and again):
glide.js:776
Uncaught TypeError: Cannot read property 'eq' of undefined
Module.call @ glide.js:776
Module.make @ glide.js:1040
(anonymous function) @ glide.js:972
Mind, I aslo tested it on you basic.html example.

I hope it's clear enough.
Maybe I do something wrong?
Thx for your help. :)
Cya and take care!
Thomas

Hello,
I have a similar error when resizing the window;
Uncaught TypeError: Cannot read property 'length' of undefined
Uncaught TypeError: Cannot read property 'eq' of undefined

Do you maybe have an idea? Thank you!

Hello,
I have a similar error when resizing the window;
I do destroy and reinit with new options.

Please, provide some sort of example (jsbin, jsfiddle). I can't reproduce this error, because of informations lack.


[Fix #6127] Fix an error for Layout/ClosingParenthesisIndentation cop

Fixes #6127
Layout/ClosingParenthesisIndentation cop threw an error when method arguments are empty and a right paren started in newlines like the following code:
# foo.rb
def foo
  something(
  )
end

$ rubocop --only 'Layout/ClosingParenthesisIndentation' foo.rb
Inspecting 1 file
An error occurred while Layout/ClosingParenthesisIndentation cop was inspecting /Users/hoshino/src/github.com/tatsuyafw/rubocop/foo.rb:2:2.
To see the complete backtrace run rubocop -d.
.

1 file inspected, no offenses detected

1 error occurred:
An error occurred while Layout/ClosingParenthesisIndentation cop was inspecting /Users/hoshino/src/github.com/tatsuyafw/rubocop/foo.rb:2:2.
Errors are usually caused by RuboCop bugs.
Please, report your problems to RuboCop's issue tracker.
https://github.com/rubocop-hq/rubocop/issues

Mention the following information in the issue report:
0.58.2 (using Parser <IP_ADDRESS>, running on ruby 2.5.1 x86_64-darwin17)
$

This change fixes the above error.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run rake default or rake parallel. It executes all tests and RuboCop for itself, and generates the documentation.

Merged. Thanks again for your great work.


Fix DioError analyzer warning causing builds to fail

It's already fixed on master. Pulling changes should be fine.

It's already fixed on master. Pulling changes should be fine.

Oh, perfect. Can you merge master into docs-v2?

Sure. Although if need be, you could do that in your PRs too. But I'll do it

Wouldn't every PR based on docs-v2 have to do that as well? Perhaps there's not many PRs contributing to the second version of docs.


Inconsistency in Bunny-695K Dataset with Technical Report and Sample Duplication

Thanks for the great project!
The released bunny-695k dataset appears to contain a large amount of data from llava v1.5. The distribution of the sample id is like this:
{'svit_detail_': 70809,
 'llavav1.5_': 624611,
 'svit_conversation_': 43980,
 'wizardlm_': 70000,
 'svit_complex_': 21560,
 'svit_referring_': 21363}

However, this does not match the description of the research report

we leverage SVIT-mix665K [17] and replace ShareGPT-40K [27] in it with WizardLM-evol-instruct-70K [38], resulting to Bunny-695K.

The description from the SVIT paper is:

4.2 million visual instruction tuning data including 1.6M conversation question-answer (QA) pairs, 1.6M complex reasoning QA pairs, 1.0M referring QA pairs and 106K detailed image description.

When I checked the data bunny_llava_1.4m.json, I found that there were duplicate samples in ids start with llavav1.5_
May I ask if there is something wrong?

After checking the SVIT paper, the original SVIT-665k also has a part of LLaVA dataset. I was wrong.


Shared dirs not working with dots

Q
A

Issue Type
Bug

Deployer Version
6.1.0

Local Machine OS
Mac OSX

Remote Machine OS
Vagrant Centos 6.1

I'm currently trying to get my deployer to work but unfortunately I ran into a problem. I have some folders I want to be shared which contain dots like:

WWW/www.domain.com/test1;
WWW/www.domain.com/test2;

When investigating the problem, this line refuses to re-create the folder:
run("mkdir -p `dirname {{release_path}}/$dir`");

The error outputted without using -p says:
mkdir: cannot create directory `/home/vagrant/project/releases/13/WWW/www.domain.com': File exists

So dirname can't resolve the directory with dots. I tried bypassing this error by escaping but without any luck. Anyone here who can help me out, thanks?

So the problem does not rely on the dots but on the trailing slash, see: https://github.com/deployphp/deployer/issues/1496.


Unable to open standalone app when using FNM

Hi team!
I do not have a globally installed instance of Node - all of my projects leverage FNM to ensure proper Node / NPM versions per-project.  This means I have dozens of installed Node versions and - depending on which project folder I am currently in, FNM resolves where node (think virtualenv):
$ where node
# /Users/claylevering/Library/Caches/fnm_multishells/18102_1704998236442/bin/node/opt/homebrew/bin/node

ls ~/Library/Caches/fnm_multishells/
lrwxr-xr-x      1 claylevering  staff    67B Aug 31  2022 99905_1661961411744 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    87B Sep 18 20:33 99922_1695094397625 -> /Users/claylevering/Library/Application Support/fnm/node-versions/v18.17.1/installation
lrwxr-xr-x      1 claylevering  staff    87B Dec  7  2022 99927_1670452676313 -> /Users/claylevering/Library/Application Support/fnm/node-versions/v16.18.1/installation
lrwxr-xr-x      1 claylevering  staff    87B Oct 28  2022 99937_1666962067508 -> /Users/claylevering/Library/Application Support/fnm/node-versions/v16.18.0/installation
lrwxr-xr-x      1 claylevering  staff    67B Jun 30  2023 99939_1688141388489 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    67B Mar 21  2023 99940_1679440025859 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    67B Mar 17  2022 99947_1647536168688 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    67B Oct  3 07:05 99949_1696341942519 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    87B May  2  2023 9994_1683039845575 -> /Users/claylevering/Library/Application Support/fnm/node-versions/v18.11.0/installation
lrwxr-xr-x      1 claylevering  staff    87B Oct 12 10:04 99952_1697130273340 -> /Users/claylevering/Library/Application Support/fnm/node-versions/v18.17.1/installation
lrwxr-xr-x      1 claylevering  staff    67B Sep 20  2022 99957_1663694639194 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    67B Feb 27  2023 99958_1677536496552 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    67B Sep 15  2022 99959_1663303755372 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    87B Dec 18 08:51 99959_1702918292637 -> /Users/claylevering/Library/Application Support/fnm/node-versions/v18.18.2/installation
lrwxr-xr-x      1 claylevering  staff    87B Nov 17  2022 9995_1668727919420 -> /Users/claylevering/Library/Application Support/fnm/node-versions/v16.18.1/installation
lrwxr-xr-x      1 claylevering  staff    67B May  2  2023 99962_1683035042941 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    67B Mar 17  2022 99968_1647536168710 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    67B Feb 15  2023 99971_1676478717882 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    67B Sep 21  2022 99985_1663821738174 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    67B Feb 23  2023 99987_1677188798504 -> /Users/claylevering/Library/Application Support/fnm/aliases/default
lrwxr-xr-x      1 claylevering  staff    87B Sep 21 16:43 99995_1695339789149 -> /Users/claylevering/Library/Application Support/fnm/node-versions/v18.17.1/installation
lrwxr-xr-x      1 claylevering  staff    67B Nov 17  2022 999_1668724589600 -> /Users/claylevering/Library/Application Support/fnm/aliases/default

I will be honest this type of global package has broken from these types of configurations for other apps (notably earlier versions of VS Code).  This is a very common practice to enforce project consistency in larger microservice driven organizations (either through FNM of nvm) and is obviously very common in the Python world with venv, etc.
Both npx vue-devtools and npm i -g @vue/devtools && vue-devtools fail to launch with the attached screenshot.  Here's the console output:
npx vue-devtools
file:///Users/claylevering/Library/Application%20Support/fnm/node-versions/v18.18.2/installation/lib/node_modules/@vue/devtools/node_modules/execa/lib/error.js:60
		error = new Error(message);
		        ^

Error: Command failed with exit code 1: /Users/claylevering/Library/Application<EMAIL_ADDRESS>/Users/claylevering/Library/Application%20Support/fnm/node-versions/v18.18.2/installation/lib/node_modules/<EMAIL_ADDRESS>    at makeError (file:///Users/claylevering/Library/Application%20Support/fnm/node-versions/v18.18.2/installation/lib/node_modules/@vue/devtools/node_modules/execa/lib/error.js:60:11)
    at execaSync (file:///Users/claylevering/Library/Application%20Support/fnm/node-versions/v18.18.2/installation/lib/node_modules/@vue/devtools/node_modules/execa/index.js:201:17)
    at file:///Users/claylevering/Library/Application%20Support/fnm/node-versions/v18.18.2/installation/lib/node_modules/@vue/devtools/node_modules/@vue/devtools-electron/dist/cli.mjs:7:16
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {
  shortMessage: 'Command failed with exit code 1: /Users/claylevering/Library/Application<EMAIL_ADDRESS>/Users/claylevering/Library/Application%20Support/fnm/node-versions/v18.18.2/installation/lib/node_modules/<EMAIL_ADDRESS>  command: '/Users/claylevering/Library/Application<EMAIL_ADDRESS>/Users/claylevering/Library/Application%20Support/fnm/node-versions/v18.18.2/installation/lib/node_modules/<EMAIL_ADDRESS>  escapedCommand: '"/Users/claylevering/Library/Application<EMAIL_ADDRESS>"/Users/claylevering/Library/Application%20Support/fnm/node-versions/v18.18.2/installation/lib/node_modules/<EMAIL_ADDRESS>  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  cwd: '/Users/claylevering/Repos/REPO-NAME',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

Node.js v18.18.2

Hey, can you share if this file path exists?

BTW, I also use fnm, and this is my node path:
$ which node
/Users/alex/Library/Caches/fnm_multishells/24345_1705026172740/bin/node

I don't know why your node path is different from mine. Can you checkout your configure?
# it's includes `homebrew`, why?
/Users/claylevering/Library/Caches/fnm_multishells/18102_1704998236442/bin/node/opt/homebrew/bin/node

Yes, it does:

And FNM is listed in my brew ls command - is it possible it resolves from an FNM upgrade command (which seems potentially different than their install script?).
I'm going to purge FNM from brew, scrub my shell out a bit and then try this again.  Reporting back shortly.

Ugh - unfortunately not.

stat /Users/claylevering/Library/Application\ Support/fnm/node-versions/v18.19.0/installation/lib/node_modules/<EMAIL_ADDRESS>16777229 320880160 -rw-r--r-- 1 claylevering staff 0 1923 "Jan 12 08:53:55 2024" "Jan 12 08:53:55 2024" "Jan 12 08:53:55 2024" "Jan 12 08:53:55 2024" 4096 8 0 /Users/claylevering/Library/Application Support/fnm/node-versions/v18.19.0/installation/lib/node_modules/<EMAIL_ADDRESS>

Hi,
I have exactly the same problem. I hope this does not distract from the above as my setup is quite different.
Node is installed via NVM and vue devtools is installed in a PNPM monorepo.
The execution path exists and app.cjs is present in the folder.
Installing devtools in the root of the monorepo did not resolve the issue.
When I installed it in a non-monorepo with PNPM as package manager everything worked fine.

Hi,
I've done some more testing and when there are no whitespaces in the absolute path, everything loads correctly. Could it be that somehow whitespace is causing trouble in loading the electron execution file?


tempdir is not being cleaned up after successful load to redshift

The tempdir path which is used as an intermediate directory on S3 for creating avro files is not cleaned up post redshift load.

It's better to create a retention policy on the bucket


Unable to invalidate the Asp.Net cookies instantly,

We are using Azure AD open Id connect authentication, that is working fine. For log out purpose,  We added single sign out and log out the both application and azure portal using below code.
// Sign a user out of both AAD and the Application
    public void SignOut()

    {

        HttpContext.GetOwinContext().Authentication.SignOut(

            new AuthenticationProperties { RedirectUri = OwinStartup.PostLogoutRedirectUri },

            OpenIdConnectAuthenticationDefaults.AuthenticationType,

            CookieAuthenticationDefaults.AuthenticationType);

    }

public void LogoutPage()
{
var redirectUrl = ConfigurationManager.AppSettings["ida:PostLogoutRedirectUri"].ToString() + "Account/Logout/";
var logouturl = string.Format("https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri={0}",  redirectUrl);
Response.Redirect(logouturl);
}
But this code sign out the application, not in azure portal. And We took the same session Asp.Net.Cookies from cookies manager and used for another session. It's accepting, If we are not used that cookies, then it's expiring with in next one hour. How can I invalidate that Asp.Net Cookies? If we have kindly share me the piece of code.
Thanks,
Ramakrishnan Ramar

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

ID: 30daadc7-6f55-207a-9125-9e97f06d9f85
Version Independent ID: aba0421a-b35a-e24f-d7db-7c89169772fc
Content: Understand the OpenID Connect authentication code flow in Azure AD
Content Source: articles/active-directory/develop/v1-protocols-openid-connect-code.md
Service: active-directory
GitHub Login: @CelesteDG
Microsoft Alias: celested

I have exactly the same question. After logout if we run a vulnerability scan it still detects that cookies are not being removed.


ER_BAD_DB_ERROR: Unknown database 'dicionary'

Hi!
Hope you are doing great.I am getting error while connecting mysql with node, and the error is
{ Error: ER_BAD_DB_ERROR: Unknown database 'dicionary'
    at Handshake.Sequence._packetToError (/Users/admin/Documents/dicionario/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Handshake.ErrorPacket (/Users/admin/Documents/dicionario/node_modules/mysql/lib/protocol/sequences/Handshake.js:124:18)
    at Protocol._parsePacket (/Users/admin/Documents/dicionario/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/Users/admin/Documents/dicionario/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/Users/admin/Documents/dicionario/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/Users/admin/Documents/dicionario/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/Users/admin/Documents/dicionario/node_modules/mysql/lib/Connection.js:91:28)
    at Socket.<anonymous> (/Users/admin/Documents/dicionario/node_modules/mysql/lib/Connection.js:525:10)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    --------------------
    at Protocol._enqueue (/Users/admin/Documents/dicionario/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at Protocol.handshake (/Users/admin/Documents/dicionario/node_modules/mysql/lib/protocol/Protocol.js:51:23)
    at Connection.connect (/Users/admin/Documents/dicionario/node_modules/mysql/lib/Connection.js:119:18)
    at Object.<anonymous> (/Users/admin/Documents/dicionario/server.js:23:5)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
  code: 'ER_BAD_DB_ERROR',
  errno: 1049,
  sqlMessage: 'Unknown database \'dicionary\'',
  sqlState: '42000',
  fatal: true }

I am using node version 10.15.0.
Please let me know where i am wrong , i am stuck there and didn't get any success.
Thanks

Hi @Alaa-mansour ! The error ER_BAD_DB_ERROR: Unknown database 'dicionary' is something your MySQL server is returning back, as there is either no table named "dicionary" in your database or the user you're connecting with does not have access to such a table.
I notice that "dicionary" has a typo in it, so perhaps you meant to connect with the database name of "dictionary" ?

Hi @dougwilson  yes i have corrected the typo , and the problem is when am creating a database in phpmyadmin mysql can't see it and in reverse when am creating in mysql and phpmyadmin can't see it,
i have alreaddy checked the user privileges.

I mean, either they are connected to different databases or it's different users. Without access to your database I can't really say.

Try running SELECT CURRENT_USER() in both just as a sanity check, for example.

@dougwilson then its obvious you have more than one mySql servers on your machine. I had this issue once.
If you installed XAMPP on your system, it normally installs its own my mySQL server (which phpmyAdmin connects to) even if your system has one already, unless you specifically instruct it not to.
It seems your OS already has a mySQL server installed, so anytime the 'mysql' command is executed, it calls the one recognised by the OS, not the phpmyAdmin's mySQL. You could therefore install your 'dicionary' database through terminal or commandline, so it can be installed in the system recognised mySQL.
Or you can install mySQL workbench or Navicat IDE to connect to your system recognised mySQL and manage your databases.
You can link up with me if you require any other help www.marcus-hiles.com

Hi @marcus-hiles I believe you responded to the wrong person here. I'm not having the issue described, I am just trying to help OP.

lol @dougwilson , thanks

@marcus-hiles  i entered your blog i think the contact page isn't appearing for some reason

Ayte @Alaa-mansour, thanks for notifying me, will update shortly

@dougwilson thank you , i will try to see if this works

@dougwilson i resolved the problem by going to htdoc getinfo and setting the privilege of everyone to read & write

Hi @Alaa-mansour I'm glad your issue was resolved. it sounds like it was a permissions issue on the MySQL server, most likely.

I also get a similar error when accessing mysql in phpmyadmin. I found a lot of ways but didn't solve it. The same thing, I have no problems on my old computer.

Suddenly discovered that the port of mysql in phpmyadmin installed on my new computer is 3308 by default. After I changed it to 3306, the problem was solved. I'm so happy!!

I came across this issue today and since I had two MySQL servers on different ports 3306 for MySQL workbench and 3307 for the other one, all u have to do is just mention the port in your connection code.
eg: const db = mysql.createConnection({
host: 'localhost',
user: 'root',
port: 3307,
password: '',
database: 'testing'


Fix lines-changed bug

Preview:

The lines-changed component wasn't being shown correctly when a pull request had no additions/deletions. This was a bug in the logic for rendering the component, which this pull request resolves.

Changes Made:

Updated the logic for the linesChanged const

I'm still a bit confused why this random 0 was being shown..

I'm still a bit confused why this random 0 was being shown..

Because the short-circuiting logical-and operator (&&) returns the last evaluated expression. In this case, linesAvailable == 1 && 0 left it as linesAvailable = 0. Later, the expression showLines && linesAvailable && <....> evaluated linesAvailable last and returned that, so react put that value in in the html.
React ignores false, [], null, undefined but will render 0.

@danielbeardsley Thank you for the explanation!
TIL 😄

dev_block 🟥

QA 🟢

Pull requests with zero additions/deletions are now displaying the # of lines-changed correctly
https://pulldasher-dev.cominor.com/pull-card-demo.html


Set up main branch protection rule to maintain linear history

I think it would be better to enforce linear history to keep the main branch clean. There are already many merge commits.
I don't have permissions to do it myself.

ok
I have changed your role to admin in this project, feel free to fly by your own :airplane: :)


Promisify all the things

I've used promises throughout the dbclient module and the entire public API now returns promises that are node-style compatible (using nodeify()). Though, I haven't yet reached guru status so if somebody could check it out and check whether I did some rookie mistakes or implemented some anti-patterns, that'd be nice.
It seems to work though.

Thanks! I thought there was something weird about that but I couldn't quite figure out what. Using bind() looks much cleaner. I've updated the branch.
return client.sremAsync(remKey, show.id)
  .then(function () { return show; });

What do you think about doing .then(function () { return show; }); to make the promise resolve with the desired value so it can be chained with other promises that need it? Is that the right way to do it? I tried .then(Promise.resolve(show)) but that didn't work. And .then(function () { return Promise.resolve(show); }); is not the right way according to stackoverflow.

Figured it out. Instead of doing:
return client.sremAsync(remKey, show.id)
  .then(function () { return show; });

this works and looks nicer:
return client.sremAsync(remKey, show.id)
  .return(show);


Utils not bundled with react-firebase-hooks/firestore

import { useCollection } from 'react-firebase-hooks/firestore';
Results in this error:  cannot find module ../util
Called by .../node_modules/react-firebase-hooks/firestore/dist/firestore/useCollection.d.ts

@asibilia this is a duplicate of #28 . Would you be able to add some more information about your project setup to #28 to help us debug?


MINOR: avoid autoboxing in FetchRequest.PartitionData.equals

FetchRequest.PartitionData.equals unnecessarily uses Object.equals generating a lot of allocations due to boxing, even though primitives are being compared (shown in the profile below).
￼

Is FetchRequest.PartitionData.equals a hot method? and is it worth fixing all autoboxing for whole project?

@chia7712 yes, it is a hot method in particular as the replica fetcher uses it to compare FetchRequest.PartitionData(s) when updating incremental fetch sessions. It's worth reviewing other places where we may be doing something similar, but I would expect the impact to be as great.

Retest this please.

LGTM. Thank you!


RA and Dec in HH:MM:SS

Put the RA and Dec in HH:MM:SS format on the trigger ID details page

And on all pages which report RA/DEC to the user

Has been pulled in. Just needs to be double checked before we close this


standard_init_linux.go:207: exec user process caused "exec format error"

Hi @jc21,
can u add compatibility to ARMv7 and ARMv7 ?
your image not work on raspberrypi 3b.
Thanks

I would like to see this fixed as well!


Run Load test on API server

In order to prepare for the 2016 Election, we need to test our API server (while watching monitoring system) to see how it will hold up on election day.

[x] Identify 3 read-only API calls that we can hit with 10,000 simultaneous requests
[x] Identify 1-3 write API calls that we can hit with 10,000 simultaneous requests
[x] Run the tests (using load testing service) while watching monitoring, make optimizations, and repeat

I've created a simple load test, see here

Thank you @udii and @josephevans!


Update compat data ✨

Looks good.  CI failed for the usual spurious reasons, I just manually restarted it.


Consumer hang in PollFetches after metadata leader epoch goes backwards

Context
Bit of a long description here because it's something happening deep inside a scale test intermittently that had to be carefully teased out.
This is manifesting as consumers mysteriously disappearing from a consumer group without any error surfacing on the client side (https://github.com/redpanda-data/redpanda/issues/5959).
It may be related to https://github.com/redpanda-data/redpanda/issues/5435, in which we're not sure why the client was seeing epochs go backward.
The test program in use is kgo-repeater from https://github.com/redpanda-data/kgo-verifier, with 3 client machines and each machine running a kgo-repeater process with 128 franz-go clients inside it.
The test in use is ManyPartitionsTest (https://github.com/redpanda-data/redpanda/blob/dev/tests/rptest/scale_tests/many_partitions_test.py)
Failure Behavior
The test restarts all cluster nodes concurrently, then, in sequence:

waits for them to all become responsive to admin api-
waits for all partitions to have a leader
waits for our consumer group to report state Stable with the expected number of members.

The test fails intermittently on the third check, where we see a few fewer members than expected (a typical number would be 378 group members where we expected 384).
Once we figure out exactly which workers have dropped out by comparing the group with the expected set, we can go get the debug logs from the clients, including franz-go debug logs (this is with a hacked version of the test for the extra debug).
The resulting log for one of these zombie consumers is: here kgo-consumer-hang.log.gz
Analysis
Filtering the log down to the client code's debug logs and franz-go's RPC read/write lines, and filtering out Produce messages, we get this as the "last gasp" before it stops progressing:
time="2022-08-30T12:59:42Z" level=debug msg="Consume ip-172-31-43-24_6564_w_69 fetching..."
ip-172-31-43-24_6564_w_69[DEBUG] wrote Metadata v7; broker: 4, bytes_written: 58, write_wait: 19.745µs, time_to_write: 12.503µs, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] read Metadata v7; broker: 4, bytes_read: 0, read_wait: 99.405µs, time_to_read: 3.1µs, err: EOF
ip-172-31-43-24_6564_w_69[DEBUG] read from broker errored, killing connection; addr: ip-172-31-32-186:9092, broker: 4, successful_reads: 1, err: EOF
ip-172-31-43-24_6564_w_69[DEBUG] wrote Metadata v7; broker: 8, bytes_written: 58, write_wait: 2.839588ms, time_to_write: 12.344µs, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] wrote OffsetCommit v7; broker: 1, bytes_written: 2621, write_wait: 2.158705ms, time_to_write: 11.184µs, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] read Metadata v7; broker: 8, bytes_read: 599842, read_wait: 19.079µs, time_to_read: 712.058368ms, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] read OffsetCommit v7; broker: 1, bytes_read: 220, read_wait: 3.366566ms, time_to_read: 501.237326ms, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] wrote FindCoordinator v2; broker: 9, bytes_written: 50, write_wait: 7.677401ms, time_to_write: 11.076µs, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] read FindCoordinator v2; broker: 9, bytes_read: 42, read_wait: 2.623459ms, time_to_read: 2.253479ms, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] wrote OffsetCommit v7; broker: 1, bytes_written: 2621, write_wait: 14.784µs, time_to_write: 8.487µs, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] read OffsetCommit v7; broker: 1, bytes_read: 220, read_wait: 625.193µs, time_to_read: 123.969535ms, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] wrote FindCoordinator v2; broker: 1, bytes_written: 50, write_wait: 10.737µs, time_to_write: 8.852µs, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] read FindCoordinator v2; broker: 1, bytes_read: 42, read_wait: 14.675µs, time_to_read: 402.18207ms, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] wrote OffsetCommit v7; broker: 1, bytes_written: 2621, write_wait: 11.355µs, time_to_write: 13.713µs, err: <nil>
ip-172-31-43-24_6564_w_69[DEBUG] read OffsetCommit v7; broker: 1, bytes_read: 220, read_wait: 3.594153ms, time_to_read: 294.030554ms, err: <nil>

There are some WARN messages for connections refused to brokers, this is an intentional part of the test where the brokers are all restarted.
But after they're all back online, there are some lines like this:
ip-172-31-43-24_6564_w_69[DEBUG] metadata leader epoch went backwards, ignoring update; topic: scale_000000, partition: 11864, old_leader_epoch: 2, new_leader_epoch: 2, current_num_rewinds: 1

That log itself is confusing because of a small bug where the new epoch is assigned from the old epoch before printing, so old_leader_epoch and new_leader_epoch are always equal.  However it seems like the real bug is that the retry logic isn't happening: current_num_rewinds is 1, the code looks like it's means to retry until that hits 5, but no retrys ever happen: the client just stops here and hangs inside PollFetches.

Pushed commit 5f24faef09e40ce653a182cbe0c381737a6d2bbf, that and timestamps can help track down what's up here. Nothing looks outright wrong in the logs yet, but it's difficult to say without timestamps (and with one of the logs being incorrect).

This helpfully reproduced first try with the updated binary, here are the logs from one of the workers that dropped out of a consumer group:
franz-go-198-take2.log.gz
For reference the timing of the cluster restart are:
[INFO  - 2022-08-30 18:34:20,653 - many_partitions_test - _restart_stress - lineno:455]: Cluster restart 1/10...
[INFO  - 2022-08-30 18:34:29,154 - many_partitions_test - _restart_stress - lineno:458]: Restart 1/10 complete.  Waiting for elections...
[INFO  - 2022-08-30 18:34:44,800 - many_partitions_test - _restart_stress - lineno:466]: Post-restart elections done.

Stack output on SIGQUIT from the worker process.  At the time the test failed, there were 128 clients instantiated of which 3 had dropped out of the group
stack.log

This goroutine is problematic:
goroutine 1682564 [chan send, 20 minutes]:
github.com/twmb/franz-go/pkg/kgo.(*source).loopFetch(0xc01d6d3950)
        /home/vectorized/go/pkg/mod/github.com/twmb/franz-go@v1.7.1-0.20220830181657-5f24faef09e4/pkg/kgo/source.go:517 +0x3e7
created by github.com/twmb/franz-go/pkg/kgo.(*source).maybeConsume
        /home/vectorized/go/pkg/mod/github.com/twmb/franz-go@v1.7.1-0.20220830181657-5f24faef09e4/pkg/kgo/source.go:468 +0xdc

This is hanging in a spot that should never hang. The end result is that consuming from one broker never finishes, and this blocks the consumer session ending, which blocks consuming entirely.
The commit closing this should fix it, I'll tag 1.7.1 if we can confirm a bit that this avoids the problem.

Note that the leader epoch going backwards is unrelated, but the continual movement of partitions makes this issue more likely (every moved partition causes the consumer to reset its work -- stop a session and start a new one).

This fix has been released in v1.7.1


Full document hydration with recursive reference priming

I have a scenario where I get a document with many referenced and embedded documents from the db.
When using a repo and the querybuilder there's the option to hydrate(false) to get the full dataset.
If I want it hydrated to an object, I'll receive a lot of proxies that are resolved "on-the-fly" when calling the according methods/ iterating the ArrayCollections.
How about doing a full hydration of all objects on hydrate('full') or something like that?
What I want is to be able to cache the resulting object after hydration to buffer some of the load for my application. And still be able to use objects to work with, instead of arrays if  I skip hydration in favor of cacheable data.
Or is there any other way to get a fully hydrated result?

@maschmann I think that you are looking for priming?

@malarzm not really, I fear.
When I do
return $this->createQueryBuilder()
            ->field('id')->equals($id)
            ->field('articles')->prime(true) // ReferenceMany
            ->field('mediaCollection')->prime(true) // ReferenceMany
            ->field('media')->prime(true) // ReferenceMany
            ->field('bannerCollection')->prime(true) //ReferenceOne
            ->field('sidebar')->prime(true) //ReferenceOne
            ->getQuery()
            ->getSingleResult();

I won't get a cacheable object altogether - also priming only works on non-embedded docs.
Maybe it's clearer when I try to explain that way:
If I have the resulting document from the above query and serialize it to json using JMSSerializer and then deserialize again, I have all data referenced/embedded in one object which I could then add to my (result) cache.

I won't get a cacheable object altogether

Why is that? I haven't user JMSSerializer myself but I suppose it can serialize any object?

priming only works on non-embedded docs.

This is true, however there's PR #970 aiming to fix that

I'm still not sure if we're on the same page - or I don't understand priming.
My understanding of priming is: It's a kind of "pre-fetch" for referenced data, recursively.
It is not hydrating the data to objects but holding it in PersistentCollections.
What I want to do is: If I get a document and it has either embedded or referenced documents, they don't need to be collected one call. But they need to be recursively iterated and hydrated to objects.
A bit like what the ODM does when I set hydrate(false) and get a deeply nested array with all data from all embeds/references. I'd like that - but just in object-form, so it's more easy to cache.
I can achieve exactly that by serializing the result to a json (recursive iteration etc. etc.) and then deserializing again. But that's awfully slow.

Ok, we're on same page now, sorry for that :) I'll discuss this with @jmikola later today

@malarzm nevermind :-)
Maybe something like a "hydration level" could be introduced to tell the hydrator to either not hydrate (false), hydrate the base document (true) or the complete tree (full).

@Ocramius: Is there a comparable feature in ORM? This seems like exhaustingly priming references through any and all relationships originating in the top-level document.
@maschmann: I read your conversation with @malarzm above, but I do believe this is still priming. #970 has to do with being unable to prime references contained within embedded documents, but priming itself is what handles the recursive hydration you're requesting. This sounds more like a prime-everything strategy to save the trouble of requesting priming in each and every mapped reference in a document hierarchy.

@jmikola in that context you're right.
I'd be happy to have a completely (recursively) hydrated object, since the hydration overhead could then be buffered via caching. I'm always a bit worried if I can't cache a "database result", even though it's still fast enough to use it uncached, the load might force it. And it would be more manageable than priming every reference/embed, right.
Also if hydration(false), the resulting array contains all (ebedded/refrenced) data. But re-hydrating it into objects after pulling that from cache renders the benefit of caching kinda useless.

I am uncertain. Why have two systems (cache/ MongoDB), when you don't really need them? If you aren't getting the performance from MongoDB, then shard out MongoDB to more machines. It would make your code and your systems simpler.
Scott

If you have a larger tree of objects reference -> embed -> embed -> reference e.g. (not the best design, I know), the hydration cost is rather high. That's why the lazy loading is generally a good idea. The performance impact though, is not due to mongodb being slow and therefore can not be compensated by hardware upgrade/sharding. It's on the php side where the retrieved data is mapped to objects. Generally the possibility of caching should be considered when using a data  storage and not needing absolutely fresh data.

I would say the level idea is the best then and only go to a certain depth like 3 levels. Any more than that would be quite rare, if at all needed, especially with Mongo. If it is needed, then there is something wrong with the model in general. Possibly some data needs to be denormalized and "copied" into the mongo collection, where it is needed and isn't updated too much.
Scott

@maschmann:

Also if hydration(false), the resulting array contains all (embedded/referenced) data.

Is that true? My understanding is that disabling hydration will leave references as-is, be it _id values or DBRef objects.
I'm going to leave this issue as a feature request for the time being. If you need the functionality immediately I think you can whip up a service class that uses ReferencePrimer to prime one or more documents at once and operates recursively. That should have comparable performance to whatever ODM would do internally.

:+1: Will give it a try tomorrow: Thanks for all the good input and discussion!


repair ProjectManager setJobOverrideProperty throws null Exception #878

in order to avoid throw exception when oldProps is null, add add oldProps = new Props() code.

@kunkun-tang can this PR be merged if it is updated?

I was revisiting this PR, but can not figure out how NullPointerException is brought by the exiting code. @wangqiaoshi Could you please give us a concrete example about this bug?

I don't see the problem with the original code either.
How would the new code work when the oldProps is null? Wouldn't the sql update command fail?

@wangqiaoshi reminder to follow up on @kunkun-tang query.


Tang offline provisoning

Nits for commit messages:

The commit hash isn't super-important (it's in go.mod) so let's drop it to avoid an over-length commit title.  (And also clean up the wording a bit.)
Prefix with base/v0_5_exp:
Drop openshift/v_13_exp.  The OpenShift spec is just inheriting this without code changes.  (Also, would be v4_13_exp.)  And we're not really adding the field, since it's inherited from base; we're just adding tests.


all upper cases name is sorted top most

Below is the sorted result using my isort configuration, you could see the both 'BALL' and RC is placed at the top most. The name Action is placed below 'BALL' and 'RC' is not correct for me:
from pkg import BALL
from pkg import RC
from pkg import Action
from pkg import Bacoo
from pkg import RCNewCode
from pkg import actual
from pkg import rc
from pkg import recorder

What I expected is:
from pkg import Action
from pkg import BALL
from pkg import Bacoo
from pkg import RC
from pkg import RCNewCode
from pkg import actual
from pkg import rc
from pkg import recorder

That means following the default python string odering:
>>> 'BALL' < 'RC' < 'Action'
False
>>> 'Action' < 'BALL' < 'RC'
True

So I wonder whether there is any configuration can make it?
Below is my isort configuration:
[isort]
line_length = 80
indent = '  '
force_single_line = True
known_first_party=test

Seems I find the root cause from https://github.com/timothycrosley/isort/issues/370, @timothycrosley replied:
When doing from imports isort wants to separate CONSTANTS, Classes, and variables from each-other

So whether isort provides any configuration to disable such kind of separation?

Hi @yyscamper!
Yes, you can configure this! The default setting which causes this to happen is:
order_by_type
which defaults to True. Simply setting order_by_type to False in a config file or doing --dont-order-by-type on the command line should give you the behavior that you want.
Thanks!
~Timothy

Also, you can find a reasonably complete definition of all these settings here: https://github.com/timothycrosley/isort/wiki/isort-Settings.
Thanks!
~Timothy

this is the result after disabling order_by_type,  this order for Bacoo and BALL is still not correct. Any  reason? @timothycrosley
from pkg import Action
from pkg import actual
from pkg import Bacoo
from pkg import BALL
from pkg import RC
from pkg import rc
from pkg import RCNewCode
from pkg import recorder

Currently, when sorting without type ordering, isort ignores the casing of the strings, and gives you a fully alphabetic sort. Is your intention to have an non-typed, but case aware sort?

@timothycrosley yes, that's what I want. Most people in my team uses PyCharm, this is the default behavior for PyCharm.

Hi @yyscamper,
I've added support for this in the lasted version of isort via the case_sensitive setting, as shown in the test uploaded to the pull request:
https://github.com/timothycrosley/isort/pull/892/files#diff-e82bf52c272f12dee456325bfcb553d8R2850
Thanks!
~Timothy

@timothycrosley I just tested using latest version, it works. Thank for you quick action on this.


feat: protect 2292 retry device locked

📝 Description
Add retry mecanism on error device locked when you try to use Ledger Recover
❓ Context

Impacted projects: ledger-live-desktop
Linked resource(s): PROTECT-2292

✅ Checklist

[ ] Test coverage
[x] Atomic delivery
[x] No breaking changes

superseded by #4359


Use consistent metric for available memory

We were using different data sources for total and free physical
memory on Linux and MacOS, which lead us to detect memory pressure
were there was in fact none, e.g. when running in containers with
resource limits.
We now get both total and available memory from the same OS specific
data source.

I believe this distinction was introduced because the mbean info on linux and macos was incorrect.  It was returning only unused memory and not counting filesystem cache as "free" memory.  So, we were always getting back a very low number and were expiring daemons really eagerly (because it seemed like the system was under heavy memory pressure even though it wasn't - most of the memory was just being used by fs cache).  Unless this has changed with the mbean, I'm skeptical that this is usable on those platforms.
I wonder if we could detect that we're in a container and get the right information somehow?

I see, in that case we'd have to add even more complexity by introducing cgroup handling, similar to what elasticsearch does. That's very unfortunate, as I'd much rather lean on the JDK team to get these things right :/

@ghale I've adjusted our code so that at least we use the same method for getting total and available memory. So even if we are using the wrong datasource (e.g. looking at host memory when we are inside a container), we at least won't detect bogus memory pressure.

@ghale this is ready for your review


Add versioned block requests

The publishBlindedBlockV2 and publishBlockV2 uses BlockContents for Deneb as request bodies.
This adds a versioned struct to support the new endpoints. Open to moving the structs to a more suitable name / location e.g. under a /v2 folder.

my concern here is the json marshalling / unmarshalling that is not uniform across the endpoints (e.g. some endpoints have additional metadata such as version while some endpoints only contain the message). This makes it hard to unify the json marshalling without having specific logic for each endpoint and custom structs.
I think this needs to be resolved at the spec level to standardise a format containing {"metadata":..."data":...} for endpoints going forward. The versioned structs will need to have specific marshalling logic for each endpoint for the time being.

All endpoints in the beacon API have a data entity for the returned object(s), with optional and response-dependent metadata.  At current the codebase does not pay attention to any of the metadata items.  It would be nice to have all metadata returned as well, but that would be a breaking change.
The versioning would need to continue, but only at the stage where the JSON is being unmarshalled.  My comment was more focused on providing an easier interface for users and moving some of the difficulty into the codebase.  Something like:
proposal := &deneb.SignedBlockContents{}
err := client.SubmitSignedProposal(ctx, proposal)

rather than the current:
proposal := &spec.VersionedSignedBeaconBlock{
  Version: spec.DataVersionDeneb,
  Deneb: &deneb.SignedBlockContents{},
}
err := client.SubmitBeaconBlock(ctx, proposal)

And then SubmitSignedProposal could run a type switch to work out what it had been passed and handle accordingly.
Basically: I'm fine with the API returning Versioned* but thinking that we shouldn't be requiring users to create them to provide to the API.

What would the consensusclient.SubmitResults type look like? Does submitBeaconBlock also accept something more generic or just spec.VersionedSignedBeaconBlock?
From the standpoint of the submit block api this makes sense. However this is slightly different from my use case which is deserialising the struct from a json payload.

I'm going to merge this as-is, with the caveat that many of the function signatures are going to change in the next major release of this module so structs and signatures may be moved around at that point.


Windows colors are broken

Need something like https://pypi.python.org/pypi/colorama:
>gl diff setup.py
Diff of file "setup.py"
1 line added
1 line removed

←[36m←[22m@@ -1,4 +1,4 @@←[39m←[22m
←[31m1               -#!/usr/bin/env python←[1;31m←[0m←[31m←[0m
        ←[32m1       + #!/usr/bin/env python←[1;32m←[0m←[32m←[0m
2       2        import os.path←[0m
3       3        from setuptools import setup, find_packages←[0m
4       4        ←[0m

No, colorama doesn't help here.


vlang API change ?

$ v version
V 0.3.3 d60ceb4
$ (v install msgpack && cd $HOME/.vmodules && v run ./msgpack/examples/basic.v)
msgpack/encode.v:63:26: error: only $tmpl(), $env(), $embed_file(), $pkgconfig(), $vweb.html(), $compile_error() and $compile_warn() comptime functions are supported right now
61 |     } $else $if T.typ is []u8 {
62 |         e.encode_string_bytes_raw(data)
63 |     } $else $if T is $Array {
|                             ^
64 |         e.write_array_start(data.len)
65 |         for value in data {
Same for git version:
$ (v install --git https://github.com/vlang/msgpack && cd $HOME/.vmodules && v run ./vlang/msgpack/examples/basic.v)
Updating module "vlang/msgpack" in "/Users/erobema/.vmodules/vlang/msgpack" ...
msgpack/encode.v:63:26: error: only $tmpl(), $env(), $embed_file(), $pkgconfig(), $vweb.html(), $compile_error() and $compile_warn() comptime functions are supported right now
61 |     } $else $if T.typ is []u8 {
62 |         e.encode_string_bytes_raw(data)
63 |     } $else $if T is $Array {
|                             ^
64 |         e.write_array_start(data.len)
65 |         for value in data {

$Array, $Map, $Int, $Float, etc has been turn lowercased.

Found very little information about these variables in  the vlang
documentation, where can i find more information about them ?
On Mon, Apr 3, 2023, 23:42 Felipe Pena @.***> wrote:

$Array, $Map, $Int, $Float, etc has been turn lowercased.
—
Reply to this email directly, view it on GitHub
https://github.com/vlang/msgpack/issues/3#issuecomment-1495022538, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAWIHDPR7IBFY3QREUUHZ3W7M75HANCNFSM6AAAAAAWR3YD7A
.
You are receiving this because you authored the thread.Message ID:
@.***>

With that change its still a lot of issues that goes beyond my vlang and template understanding.
$ (cd $HOME/.vmodules && v run ./msgpack/examples/basic.v)
msgpack/encode.v:32:19: error: cannot use TestStructA as string in argument 1 to msgpack.Encoder.encode_string
30 | pub fn (mut e Encoder) encode[T](data T) []u8 {
31 |     $if T.typ is string {
32 |         e.encode_string(data)
|                         ~~~~
33 |     } $else $if T.typ is bool {
34 |         e.encode_bool(data)
msgpack/encode.v:34:17: error: cannot use TestStructA as bool in argument 1 to msgpack.Encoder.encode_bool
32 |         e.encode_string(data)
33 |     } $else $if T.typ is bool {
34 |         e.encode_bool(data)
|                       ~~~~
35 |     }
36 |     // TODO: if int encode_int, if uint encode_uint
msgpack/encode.v:40:15: error: cannot use TestStructA as i8 in argument 1 to msgpack.Encoder.encode_i8
38 |     // then we will be using the smallest storage
39 |     $else $if T.typ is i8 {
40 |         e.encode_i8(data)
|                     ~~~~
41 |     } $else $if T.typ is i16 {
42 |         e.encode_i16(data)
msgpack/encode.v:42:16: error: cannot use TestStructA as i16 in argument 1 to msgpack.Encoder.encode_i16
40 |         e.encode_i8(data)
41 |     } $else $if T.typ is i16 {
42 |         e.encode_i16(data)
|                      ~~~~
43 |     } $else $if T.typ is int {
44 |         e.encode_i32(data)
msgpack/encode.v:44:16: error: cannot use TestStructA as int in argument 1 to msgpack.Encoder.encode_i32
42 |         e.encode_i16(data)
43 |     } $else $if T.typ is int {
44 |         e.encode_i32(data)
|                      ~~~~
45 |     } $else $if T.typ is i64 {
46 |         e.encode_i64(data)
msgpack/encode.v:46:16: error: cannot use TestStructA as i64 in argument 1 to msgpack.Encoder.encode_i64
44 |         e.encode_i32(data)
45 |     } $else $if T.typ is i64 {
46 |         e.encode_i64(data)
|                      ~~~~
47 |     } $else $if T.typ is u8 {
48 |         e.encode_u8(data)
msgpack/encode.v:48:15: error: cannot use TestStructA as u8 in argument 1 to msgpack.Encoder.encode_u8
46 |         e.encode_i64(data)
47 |     } $else $if T.typ is u8 {
48 |         e.encode_u8(data)
|                     ~~~~
49 |     } $else $if T.typ is u16 {
50 |         e.encode_u16(data)
msgpack/encode.v:50:16: error: cannot use TestStructA as u16 in argument 1 to msgpack.Encoder.encode_u16
48 |         e.encode_u8(data)
49 |     } $else $if T.typ is u16 {
50 |         e.encode_u16(data)
|                      ~~~~
51 |     } $else $if T.typ is u32 {
52 |         e.encode_u32(data)
msgpack/encode.v:52:16: error: cannot use TestStructA as u32 in argument 1 to msgpack.Encoder.encode_u32
50 |         e.encode_u16(data)
51 |     } $else $if T.typ is u32 {
52 |         e.encode_u32(data)
|                      ~~~~
53 |     } $else $if T.typ is u64 {
54 |         e.encode_u64(data)
msgpack/encode.v:54:16: error: cannot use TestStructA as u64 in argument 1 to msgpack.Encoder.encode_u64
52 |         e.encode_u32(data)
53 |     } $else $if T.typ is u64 {
54 |         e.encode_u64(data)
|                      ~~~~
55 |     } $else $if T.typ is f32 {
56 |         e.encode_f32(data)
msgpack/encode.v:56:16: error: cannot use TestStructA as f32 in argument 1 to msgpack.Encoder.encode_f32
54 |         e.encode_u64(data)
55 |     } $else $if T.typ is f32 {
56 |         e.encode_f32(data)
|                      ~~~~
57 |     } $else $if T.typ is f64 {
58 |         e.encode_f64(data)
msgpack/encode.v:58:16: error: cannot use TestStructA as f64 in argument 1 to msgpack.Encoder.encode_f64
56 |         e.encode_f32(data)
57 |     } $else $if T.typ is f64 {
58 |         e.encode_f64(data)
|                      ~~~~
59 |     } $else $if T.typ is time.Time {
60 |         e.encode_time(data)
msgpack/encode.v:60:17: error: cannot use TestStructA as time.Time in argument 1 to msgpack.Encoder.encode_time
58 |         e.encode_f64(data)
59 |     } $else $if T.typ is time.Time {
60 |         e.encode_time(data)
|                       ~~~~
61 |     } $else $if T.typ is []u8 {
62 |         e.encode_string_bytes_raw(data)
msgpack/encode.v:62:29: error: cannot use TestStructA as []u8 in argument 1 to msgpack.Encoder.encode_string_bytes_raw
60 |         e.encode_time(data)
61 |     } $else $if T.typ is []u8 {
62 |         e.encode_string_bytes_raw(data)
|                                   ~~~~
63 |     } $else $if T is $array {
64 |         e.write_array_start(data.len)
msgpack/encode.v:100:13: error: cannot use string as int in argument 1 to msgpack.Encoder.encode
98 |                 e.encode_string(field.name)
99 |             }
100 |             e.encode(data.$(field.name))
|                      ~~~~~~~~~~~~~~~~~~
101 |         }
102 |     }

@trollkarlen Be sure to run the latest version of V!

Im running the latest v and the same with this mornings version
V 0.3.3 4a22d4a

We should probably add msgpack to vlang/v ci.

Is this this a vlang issue or does msgpack need to be updated to reflect a change in vlang ?

msgpack needs to be updated

How come the order of the $if and $else $if have meaning ?
Is this by design or just a mishap ?
I found this when trying to figure out what happens here.
I used this v test vlib/v/tests/option_compvar_val_test.v with small changes:
struct FixedStruct1 {
        a int
        b ?int
        c ?int = 4
}

// struct FixedStruct2 {
//     b ?int
// }

struct Encoder {}

struct Writer {}

fn write3(val string) {
        println(val)
}

fn write1[T](val T) {
        println(val)
}

fn (wr &Writer) write2[T](val T) {
        println(val)
}

fn encode_struct[T](val T) map[string][]string {
        wr := Writer{}
        mut out := map[string][]string{}
        $if T is $struct {
                $for field in T.fields {
                        value := val.$(field.name)
                        $if field.typ is ?int {
                                // work if comment lines 27 and 28
                                write1(value)
                                wr.write2(value)
                                out[field.name] << '${value:d}'
                        } $else {
                                write1(value)
                                wr.write2(value)
                                out[field.name] << value.str()
                        }
                        // This work well
                        $if field.is_option {
                                write1(value)
                                wr.write2(value)
                                out[field.name] << '${value:d}'
                        } $else {
                                write1(value)
                                wr.write2(value)
                                out[field.name] << value.str()
                        }
                }
        } $else $if T.typ is string {
                write1(val)
                wr.write2(val)
                write3(val)
                out["string"] << val
        }
        return out
}

fn test_main() {
        // cgen error: cannot convert 'struct _option_int' to 'int'
        mut out := encode_struct(FixedStruct1{})
        assert out['a'] == ['0', '0']
        assert out['b'] == ['0', '0']
        assert out['c'] == ['4', '4']
        out = encode_struct("hej")
        assert out['string'] == ['hej']
}

$ v run vlib/v/tests/option_compvar_val_test.v
0
0
0
0
0
0
0
0
4
4
4
4
hej
hej
hej

--- vlib/v/tests/option_compvar_val_test.v      2023-04-27 17:50:19.941276224 +0200
+++ vlib/v/tests/option_compvar_val_test2.v     2023-04-27 17:58:30.735544560 +0200
@@ -27,7 +27,13 @@
 fn encode_struct[T](val T) map[string][]string {
        wr := Writer{}
        mut out := map[string][]string{}
-       $if T is $struct {
+       println(val)
+       $if T.typ is string {
+               write1(val)
+               wr.write2(val)
+               write3(val)
+               out["string"] << val
+       } $else $if T is $struct {
                $for field in T.fields {
                        value := val.$(field.name)
                        $if field.typ is ?int {
@@ -51,11 +57,6 @@
                                out[field.name] << value.str()
                        }
                }
-       } $else $if T.typ is string {
-               write1(val)
-               wr.write2(val)
-               write3(val)
-               out["string"] << val
        }
        return out
 }

$ v run vlib/v/tests/option_compvar_val_test2.v
vlib/v/tests/option_compvar_val_test2.v:35:20: error: cannot append `T` to `[]string`
   33 |         wr.write2(val)
   34 |         write3(val)
   35 |         out["string"] << val
      |                          ~~~
   36 |     } $else $if T is $struct {
   37 |         $for field in T.fields {

--- vlib/v/tests/option_compvar_val_test2.v     2023-04-27 17:58:30.735544560 +0200
+++ vlib/v/tests/option_compvar_val_test3.v     2023-04-27 18:00:59.245350340 +0200
@@ -32,7 +32,7 @@
                write1(val)
                wr.write2(val)
                write3(val)
-               out["string"] << val
+               out["string"] << val.str()
        } $else $if T is $struct {
                $for field in T.fields {
                        value := val.$(field.name)

$ v run vlib/v/tests/option_compvar_val_test3.v

No output no error nothing and empty main :/
int main(int ___argc, char** ___argv){
    g_main_argc = ___argc;
    g_main_argv = ___argv;
#if defined(_VGCBOEHM)
    GC_set_pages_executable(0);
    GC_INIT();
#endif
    _vinit(___argc, (voidptr)___argv);
    main__main();
    _vcleanup();
    return 0;
}

Found very little information about these variables in the vlang documentation, where can i find more information about them ?
…

See https://docs.vosca.dev/concepts/compile-time/reflection.html#type-checking

vlang seems to have features, but it seems like it cannot be used, which makes those who have been keeping an eye on it unable to see hope. With GPT being able to write code, does it still matter what syntax or language is used in the future? Does vlang still have its meaning if it continues to be delayed? Personally, I think vlang should focus on c2v and vtl, enriching vlang's library with c2v and training vlang's model with vtl to reverse itself. Half of 2023 has passed already! Nobody knows what GPT-5 will look like!

If there is still a problem with the latest version of V and the most recent msgpack, please post example code that shows the problem.

There is not a problem anymore, the msgpack code was updated, and it compiles cleanly with latest v.

vlang seems to have features, but it seems like it cannot be used

I am using it every day.

I also really like Vlang. However, it's currently not very mature. Just today, I wanted to use new_process to create a pseudo-terminal. However, when I called stdin_write, it gave me this error:
Later, I tried to add a "pragma comment(linker,"")" in the program, but I couldn't achieve it. In the end, I could only add it to:
I really love Vlang and would like to use it for all my projects. However, in practice, I find that most of the time, I'm not using Vlang but using it to call "C."

Your bug reports/patches are welcome. Your points can help us to bring it to the production state that you expects.
Progress are done everyday. The robustness will came after heavy development.

vlang seems to have features, but it seems like it cannot be used

I am using it every day.

I also really like Vlang. However, it's currently not very mature. Just today, I wanted to use new_process to create a pseudo-terminal. However, when I called stdin_write, it gave me this error:
Later, I tried to add a "pragma comment(linker,"")" in the program, but I couldn't achieve it. In the end, I could only add it to:
I really love Vlang and would like to use it for all my projects. However, in practice, I find that most of the time, I'm not using Vlang but using it to call "C."

Your bug reports/patches are welcome. Your points can help us to bring it to the production state that you expects. Progress are done everyday. The robustness will came after heavy development.

There are too many mutilated documentation in vlang, and I haven't had time to read most of the code yet, but when I am familiar with it, I will also join in the code maintenance and make a little contribution to the community


Error: hyper::Error(IncompleteMessage) on almost every request

Title. On almost every single request made to the server, Error: hyper::Error(IncompleteMessage) is logged to the console and the request eventually times out.

Hi @c0repwn3r, thanks for raising this. Can you detail some steps to reproduce, ideally with a simple reproduction? Could you also share which 'server' you are referring to? Is this running it locally (e.g. vercel dev), or deployed to Vercel? If it's the former, could you share your OS + arch?

I'll try to get a reproduction. 'server' as in the local dev server spun up by vercel dev.
sysinfo: Linux 6.6.3-arch1-1 x86_64.

Could you also share the version of the vercel CLI you are running in that case 🙏

Closing due to inactivity.


Cannot install via aqua in Windows environment.

In Windows environment, the installation via aqua described in the README, it is not actually installed, and the error message "command not fonund" is displayed.
Example.

[!NOTE]
Environment is as follows.

Windows11 Pro 22631.3447
aqua 2.27.2 (8ef7841a5cbd6afb12f0de71c650f8e4d97fe44b) (installed via scoop)
Occurs in cmd, PowerShell, or nushell

Here is an example with aqua.yaml with the following contents (For comparison, kayac/ecspresso, which distributes Windows binaries, is also included.)
❯ bat -p --color=never aqua.yaml
---
# aqua - Declarative CLI Version Manager.
# https://aquaproj.github.io/
# checksum: true
# enabled: true
# require_checksum: true
# supported_envs: true
# - all
registries: # checksum: # enabled: true
- type: standard
  ref: v4.164.0 # renovate: depName=aquaproj/aqua-registry
packages: # - all registries: type: standard ref: v4.164.0
- name<EMAIL_ADDRESS>- name<EMAIL_ADDRESS>
❯

Run the installation. ecspresso will run the installation process, but there is no log for ecschedule.
❯ aqua i
INFO[0000] create a proxy file                           aqua_version=2.27.2 env=windows/amd64 program=aqua proxy_path="C:\\Users\\laughk\\AppData\\Local\\aquaproj-aqua\\bin\\ecspresso"
INFO[0000] create a proxy file                           aqua_version=2.27.2 env=windows/amd64 program=aqua proxy_path="C:\\Users\\laughk\\AppData\\Local\\aquaproj-aqua\\bat\\ecspresso.bat"
INFO[0000] download and unarchive the package            aqua_version=2.27.2 env=windows/amd64 package_name=kayac/ecspresso package_version=v2.3.3 program=aqua registry=standard
WARN[0002] remove a temporal file                        aqua_version=2.27.2 env=windows/amd64 error="remove C:\\Users\\laughk\\AppData\\Local\\Temp\\040508135: The process cannot access the file because it is being used by another process." package_name=kayac/ecspresso package_version=v2.3.3 program=aqua registry=standard

❯

Check command. ecschedule will be command not found.
❯ aqua exec -- ecspresso version
ecspresso v2.3.3

❯ aqua exec -- ecschedule -version
FATA[0000] aqua failed aqua_version=2.27.2 doc="https://aquaproj.github.io/docs/reference/codes/004" env=windows/amd64 error="command is not found" exe_name=ecschedule program=aqua

Possible solutions
I am not sure, but I think that this problem might be solved if you distribute the binaries for Windows via GitHub Release.

I built an executable for the Win on releasing v0.12.0. Please try it after Aqua's index is updated.

@Songmu
Thank you for providing support for the Windows executable distribution! I am very pleased. However, it appears that support is also needed in  aqua-registry, and at this point, the installation via aqua in the Windows environment is still not possible.
❯ bat -p aqua.yaml
---
# aqua - Declarative CLI Version Manager
# https://aquaproj.github.io/
# checksum:
#   enabled: true
#   require_checksum: true
#   supported_envs:
#   - all
registries:
- type: standard
  ref: v4.202.0  # renovate: depName=aquaproj/aqua-registry
packages:
- name<EMAIL_ADDRESS>
❯ aqua i

❯ aqua exec -- ecschedule -version
FATA[0000] aqua failed                                   aqua_version=2.29.0 doc="https://aquaproj.github.io/docs/reference/codes/004" env=windows/amd64 error="command is not found" exe_name=ecschedule program=aqua

I have submitted the following pull request for the aqua-registry changes. If it is incorporated in some way, ecschedule via aqua will be available under Windows this time.
https://github.com/aquaproj/aqua-registry/pull/24709

@Songmu
aqua-registry v4.202.1 has been released and I have confirmed that ecschedule can be installed using aqua on windows!
❯ wmic os get Caption,Version,BuildNumber
BuildNumber  Caption                   Version
22631        Microsoft Windows 11 Pro  10.0.22631

❯ bat -p aqua.yaml
---
# aqua - Declarative CLI Version Manager
# https://aquaproj.github.io/
# checksum:
#   enabled: true
#   require_checksum: true
#   supported_envs:
#   - all
registries:
- type: standard
  ref: v4.202.1 # renovate: depName=aquaproj/aqua-registry
packages:
- name<EMAIL_ADDRESS>
❯ aqua i

❯ aqua exec -- ecschedule -version
ecschedule v0.12.0 (rev:586cc61)


Cleaning up xrefs - URLs should go if poss

All current URLs should be tested to see if they still resolve & those that don't should be deleted.
We should follow a standard DB:accession pattern for all xrefs if poss

e.g.
http://www.normalesup.org/~vorgogoz/FlyPNS/PNSdescription.html#vch2
=> FlyPNS:vch2
We store the expansion FlyPNS -> http://www.normalesup.org/~vorgogoz/FlyPNS/PNSdescription.html# in a standard mapping file.  See - https://github.com/geneontology/go-site/blob/master/metadata/db-xrefs.yaml
We should make our own db-xrefs.yaml file for mappings not covered by the GO db-xrefs.yaml.
Note - we may not be able to completely abolish raw URLs, as, IIRC, OBO format won't allow blank accessions - making it hard to support links to the homepage of some resource.  But (a) maybe we just shouldn't do this & (b) it may be possible to support with longer accessions, e.g.
FlyPNS
http://www.normalesup.org/~vorgogoz/FlyPNS/PNSdescription.html#vch2
http://www.normalesup.org/~vorgogoz/FlyPNS/PNSdescription0.html
=>
FlyPNS:PNSdescription.html#vch2
FlyPNS:PNSdescription0.html
FlyPNS ->
http://www.normalesup.org/~vorgogoz/FlyPNS/

The following Cypher query on pdb finds all the offending URLs:
MATCH (c:VFB:Class)-[:has_reference]->(n:pub) where exists(n.http) RETURN distinct n.http

It would be pretty simple to script a check for HTTP return status.

see also #428

Based on VC:
create (S:Site:Individual) set S.short_form = "FlyPNS" set S.label = "FlyPNS" set S.link_base = "http://www.normalesup.org/~vorgogoz/FlyPNS/" set S.description = [" Database of the D. melanogaster embryonic and larval peripheral nervous system."] set S.iri = "http://www.normalesup.org/~vorgogoz/FlyPNS/page1.html"
Would the "xref_db" also need adding as "FlyPNS"?
And will this do for the logo ("link_icon_url")?

Added.  @Robbie1977 - OK to use above as icon?
One other thought. We should probably link this site node to the pub on their home page:
FlyPNS, a database of the Drosophila embryonic and larval peripheral nervous system. BMC Dev Biol. 2005, 5:4. Medline. PDF
(Clare: I can show you how to use library methods to add this next time we meet).
I don't think this will show up yet, but will be ready to use if we make a TermInfo for Site nodes.

@dosumis @Clare72 Only issue with the icon is it is only a big red font on their site (not an image). We could create an image copy (as you have above) but we would have to host ourselves or we simply just don't add an icon until they add one.

all replaced where possible now


install_sct: homebrew's installer is now in bash

Us:
https://github.com/neuropoly/spinalcordtoolbox/blob/11249f7b9eab4791cd1834c537cfafd1379bac02/install_sct#L173
but that link (currently pointed at https://github.com/Homebrew/install/blob/e141d766960553367441362490e42a2fead644c6/install) suggests

Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Why do we even have this again? In order to be able to install gcc? Which is because some the dependencies of our dependencies don't have macOS .whls? Seems like these are the historical context? #2404, #2410, #2577.
Anyway I'm going to do this migration but then we should talk about getting rid of it entirely if we can.

Shouldn't we be using xcode-select --install on macOS?

Shouldn't we be using xcode-select --install on macOS?

you're probably right. I'm not 100% sure if the syntax works for all macOs (past, present and future), which is why (I think) I was suggesting to use Homebrew.
Examples in the forum where xcode-select was successfully used: https://forum.spinalcordmri.org/t/installation-validation-failed-installation-failed/570/9

Why do we even have this again? In order to be able to install gcc?

Yes, exactly. :slightly_smiling_face:
There is more relevant discussion/context about whether we should be touching gcc in #3049, starting from https://github.com/neuropoly/spinalcordtoolbox/issues/3049#issuecomment-728980021.


[WIP]Json Formatting for AKSK Response

What type of PR is this?
Provides AKSK Response in JSON format  , for easier consumption by 3rd party Clients.

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

kind enhancement
What this PR does / why we need it:
Provides AKSK Response in JSON format  , for easier consumption by 3rd party Clients.
Which issue(s) this PR fixes:

Fixes #1279
Test Report Added?:

Uncomment only one  /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:
kind TESTED

Test Report:

Special notes for your reviewer:

@PravinRanjan10 , @anvithks , @AmitRoushan , @kumarashit  Please review

@kumarashit :  adding formatting for the GET API aswell. hold on for some time.


sway-fmt-v2 adds program type to the output

closes #1995.
simply tested with a main.sw file that only contains:
contract;

I added a small test to test this but there is this strange thing happening so I am not sure which way to continue:
I realized that the program type got deleted once there is a match to an item so just supplying
contract;

for the test actually does not test this completely. I cannot add anything that would match an item in the source code since we do not have any of the logic for them implemented. (Before #1962 is merged.) So I think we should merge that first and then supply a test like
contract;

enum Color {
    Blue: (),
    Green: (),
    Red: (),
    Silver: (),
    Grey: (),
}

@mitchmindtree one problem we are trying find a solution for is that the initial idea of the formatter was to leave anything it didn't recognize as an item as is, but this PR is actually a side effect of it removing everything that isn't an item.

Should we close this one and open an issue to track not-touching non-item source code, or should we continue with this one until we have a fix for that

Should we close this one and open an issue to track not-touching non-item source code, or should we continue with this one until we have a fix for that?

Let's leave this open and keep it as a short term solution, since we do want to format the program type anyway and also open an issue to track the aforementioned problem (:

Opened #2008 for tracking that 👍


sea miles

Hi Ryan,
I just added the sea mile factor to EARTH_RADIUS.
Cheers,
Norman

I am actually thinking of using this library I worked on recently to handle this issue.
https://github.com/minad/unit hopefully we won't need this absurd calculations anymore. I'll keep this open though to remind me to implement sea miles in unit

Will you switch to unit in the next release of mongoid_spacial?

I am doing a huge refactor sometime in the next two to three weeks
On Jan 31, 2012 8:59 AM, "unnu" <
<EMAIL_ADDRESS>wrote:

Will you switch to unit in the next release of mongoid_spacial?

Reply to this email directly or view it on GitHub:
https://github.com/ryanong/mongoid_spacial/pull/18#issuecomment-3739337

I'm asking that because I'd like to get rid of m fork as soon as possible. Since it's only one line of code, could you merge my patch before your refactoring?


feat(dynamic-import-handler): add "withDynamicImportHandler" to make …

…things easier

:tada: This issue has been resolved in version 1.3.0 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


Add tests for array, optional and variant

It seems like any is non-templated: https://en.cppreference.com/w/cpp/utility/any

Adding the following code fails:
  self.TestIncludeWhatYouUse(
      """#include <string>
         std::any A;
      """,
      'Add #include <any> for any'
      '  [build/include_what_you_use] [4]')

We could perhaps add partial IWYU ability to cpplint for headers like any, mutex etc. with the following code (please have a look at the regex and I could PR it if you'd like):
https://github.com/m-chaturvedi/styleguide/commit/d29faac148f21f32a49d3449a650f2148cec74e4

With some hacking with cpplint.py, we had found the following list of headers from the standard library from different C++ standards which are in drake but not in Google's cpplint :
https://gist.github.com/m-chaturvedi/69fab1f492aa1f386a9b4aa4c8c3ca40

AFAIK any is not used in drake.

This change is

+@jwnimmer-tri for feature review, please.

Confirmed that Drake is happy.  Merging now.


Jenkins: Adjust timeouts

With the new behaviour of Jenkins some builds died over timeout. The
global timeout counts from start of the build (Including time in the
queue) with this patch the timeouts are set in the stage part.
Signed-off-by: Eloy Coto<EMAIL_ADDRESS>

test-me-please

test-ginkgo-all

To ensure that this is working Jenkins needs Jenkins Model definition 1.2.6 or upper. We have the version 1.2.5.
I'll update the box tomorrow morning.
https://wiki.jenkins.io/display/JENKINS/Pipeline+Model+Definition+Plugin

I don't like that the global timeout includes the time in the queue. I'd prefer to keep the timeout to be within the stages itself and remove the timeout that is affected by the time in queue. Is this possible?

test-me-please

test-ginkgo-all

I tried to update Jenkinf this morning, but I get a error with the dependencies (I need to update the whole Jenkins) so I'll try to update during the weekend.
Regards.

test-all-ginkgo

test-me-please

test-all-ginkgo


module 'fix_yahoo_finance' has no attribute 'pdr_override'

I am trying to suppress the deprecation warnings with yf.pdr_override but am getting this:

yf.pdr_override()

AttributeError: module 'fix_yahoo_finance' has no attribute 'pdr_override'

Also attempted to suppress the warnings myself but without avail.

pdr_override was added in the 0.0.18 version of this package...
Run the following code on your terminal and then use the pdr_override code as written in the documentation:
pip install fix_yahoo_finance --upgrade
It will upgrade your package to 0.0.19 which is the latest version as of today.

I'm actually using the direct method and after updateing to 0.0.19 it
got worse as I am now unable to suppress the warning:
Downloading daily AMZN between 20170701 and 20170912:
Auto-overriding of pandas_datareader's get_data_yahoo() is
deprecated and no longer available.
Use pdr_override() to explicitly override it.
DeprecationWarning)
[100%**]  1 of 1 downloaded
Quite a pain - can that please be fixed?
On 9/9/17 7:02 AM, Manan Manwani wrote:

pdr_override was added in the 0.0.18 version of this package...
Run the following code on your terminal and then use the pdr_override
code as written in the documentation:
|pip install fix_yahoo_finance --upgrade|
It will upgrade your package to 0.0.19 which is the latest version as
of today.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ranaroussi/fix-yahoo-finance/issues/34#issuecomment-328254817,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIENG99sgGU5skm6JV-ptx4PAi1QUVRAks5sghvRgaJpZM4PM1YU.

@mmehrle You need to use pdr_override() to remove the warning. Please read the documentation and follow the steps.
Use the following code exactly as it is written below:-
from pandas_datareader import data as pdr
import fix_yahoo_finance as yf
yf.pdr_override()
data = pdr.get_data_yahoo("AMZN", start="2017-01-01", end="2017-09-12")

You'll see the warning message when you first run these lines but it's just a message that'll disappear once you run these lines of code once again.Your code will run just fine,the warning message will not stop your code from running.

I ran each of these snippets as you said.
from pandas_datareader import data as pdr

from pandas_datareader import data as pdr
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.4/site-packages/pandas_datareader/init.py", line 3, in
from .data import (get_components_yahoo, get_data_famafrench, get_data_google, get_data_yahoo, get_data_enigma,  # noqa
File "/usr/lib/python3.4/site-packages/pandas_datareader/data.py", line 7, in
from pandas_datareader.google.daily import GoogleDailyReader
File "/usr/lib/python3.4/site-packages/pandas_datareader/google/daily.py", line 1, in
from pandas_datareader.base import _DailyBaseReader
File "/usr/lib/python3.4/site-packages/pandas_datareader/base.py", line 3, in
import numpy as np
File "/usr/lib64/python3.4/site-packages/numpy/init.py", line 142, in
from . import add_newdocs
File "/usr/lib64/python3.4/site-packages/numpy/add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "/usr/lib64/python3.4/site-packages/numpy/lib/init.py", line 17, in
from . import scimath as emath
ImportError: cannot import name 'scimath'

import fix_yahoo_finance as yf

import fix_yahoo_finance as yf
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.4/site-packages/fix_yahoo_finance/init.py", line 29, in
import numpy as np
File "/usr/lib64/python3.4/site-packages/numpy/init.py", line 142, in
from . import add_newdocs
File "/usr/lib64/python3.4/site-packages/numpy/add_newdocs.py", line 13, in
from numpy.lib import add_newdoc
File "/usr/lib64/python3.4/site-packages/numpy/lib/init.py", line 17, in
from . import scimath as emath
ImportError: cannot import name 'scimath'

Seems to be a problem with scimath.  Any suggestions?


HDDS-8506. LeaseRecovery failing with NullPointer exception.

What changes were proposed in this pull request?
preExecute() to fill in userInfo to avoid NPE in follower OM.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8506
How was this patch tested?
Unit test is updated to enable ACL (fails in ACL check code) and verify preExecute() does fill in userInfo properly.

Thanks @jojochuang for the fix.


Add updated_by and updated_on to the Tigerdata schema in Mediaflux

We currently only support created_on and created_by and we update those values correctly when a new Mediaflux collection asset is created for a project.
We should add updated_on and updated_by to the Tigerdata in Mediaflux so we can preserve those values as well.
Schema: https://github.com/pulibrary/tiger-data-app/blob/main/app/models/tigerdata_schema.rb
Note: The MediaFlux schema is different from the standard rails schema.
updated_on and updated_by are optional fields, which mean they have a minimum occurs of 0 and a maximum occurs of 1
Acceptance Criteria

[ ] The fields have been added to tigerdata_schema.rb
[ ] The tests under /spec/models/mediaflux/http/schema_fields_create_request_spec.rb are updated to account for these new fields.
[ ] Running the rake task schema:create adds them to Mediaflux and you can see them on the Desktop.
[ ] When a project is updated in the Rails app, if the project exists in Mediaflux (i.e. it has a mediaflux_id) it saves the updated_on and updated_by in Mediaflux
[ ] The test for updating a project has been updated to make sure these two new fields are passed.

Hey team! Please add your planning poker estimate with Zenhub @jrgriffiniii @leefaisonr @JaymeeH


Update CodeMirror?

Could I trouble you to update to the latest CodeMirror (assuming there aren't any conflicts)?  This version has some bugs, particularly on mobile, that have since been corrected.

Codemirror was updated to 5.22.0.

Thanks!


I'm getting errors. What version of Node and other environments are you running?

events.js:182
throw er; // Unhandled 'error' event
^
TypeError: Invalid non-string/buffer chunk
at validChunk (_stream_writable.js:254:10)
at PassThrough.Writable.write (_stream_writable.js:288:21)
at PassThrough.Writable.end (_stream_writable.js:553:10)
at emitThree (events.js:140:20)
at DestroyableTransform.emit (events.js:216:7)
at emitThree (events.js:135:13)
at FfmpegCommand.emit (events.js:216:7)
at emitEnd (/home/luis/Haruhi Bot/node_modules/fluent-ffmpeg/lib/processor.js:424:16)
at /home/luis/Haruhi Bot/node_modules/fluent-ffmpeg/lib/processor.js:433:16
at /home/luis/Haruhi Bot/node_modules/async/dist/async.js:421:16

Someone else was getting this error after the 1.4 update. If you're using 1.4+, you need to have ffmpeg installed and in your PATH environment variable, rather than the prior updates that use the ffmpeg-binaries module. It was my mistake to not realize that in that update. But it has been noted in the readme.
Node 8+ (recommended, might work with older versions) and ffmpeg are all that's required for 1.4+ updates since it changed the way music is played/searched. Well that and a YouTube API3 key.
If for some reason you're using a lower version, I can't really say much besides update to the latest build.

I'm using Ubuntu to run it. That's where the problem starts.

Ytdl-core works for me, but Youtube-audio-stream doesn't.

That shouldn't be a problem.
Did you try installing ffmpeg correctly before? As well as making sure it's installed, and re-installing all modules?
Also, just to note, ytdl-core was causing issues. Such as ending audio midway, errors related to audio, along with a few other annoyances, so I tried a couple other things and youtube-audio-stream hasn't caused any issues that haven't been able to be fixed.

Is it alright if I installed ffmpeg through npm?

No, you need ffmpeg itself installed, probably one of these since you're on Ubuntu https://ffmpeg.org/download.html#build-linux.
If you don't know how to set it up, I can't help much but tell you to search about it online.

 That worked. Thanks very much!

No problem.


Paint soco black

Yeah. There is finally a PR to paint SoCo black.
black is "the uncomprimising code formatter" (https://github.com/psf/black) and its sole purpose is to format all code into a consistent style. black is uncompromising, in that it allows very little customization, but personally I find that I much prefer to have a codestyle tool that can't be modified, to debating which style is best. From my perspective, codestyle consistency is a hell of a lot more important that the itty bitty details of the style.
But perhaps the biggest advantage of black is that it almost removes code style discussions from reviews. I set it up so that there is a travisCI check that checks that the branch is black formatted. As those of that have gone through a review with me will know, I do care about style, but implementing it this way will remove the need to comment on codestyle to the point where I can just refer to the tool.
I painted both soco, the examples and the tests black. As an added advantage to this, black formatting the test code brought it within an hours of work to make it pass linting as well, which means that we now have linted test code as well :man_cartwheeling:
Since this is code formatting, it touches just about all lines of code, which means that all other PRs will break, but I will help with that.
Let me know what you think.

Coverage increased (+0.1%) to 57.529% when pulling d57fce38c87307cf509635300b78753391a6a559 on KennethNielsen:paint_soco_black into e23a162ddd58ea4073e29a9cd60266ca25b66068 on SoCo:master.

Well, it only took 7 attempts ... but now the black checks on TravisCI are restricted to the Python versions that can run it. But now there is a functioning black check that will be executed when the pull request is made to check whether code was run through black.
Comments?

LGTM.

I will start with merging this, thus probably breaking all other PR's in the progress. I will help with the rebasing as needed.


A separate full screen chart activity for chart display

Currently, a chart is displayed directly in the layout with other components. Which delimits many features of the chart like - scrolling, zooming.. etc
Expected:
An option should be given to open the chart in a separate full-screen chart activity where the chart can be accessed easily.
I am working on it.

Make it a fragment instead


Lazy load default locales

While analyzing my project load times, I realized that the country initializer took almost a second:
start = Time.now;

ISO3166.configure do |config|
  config.locales = %i[en fr]
end

puts "Time elapsed #{(Time.now - start) * 1000} ms"

I was able to break it down to this line:
https://github.com/countries/countries/blob/master/lib/countries/configuration.rb#L25
In my project, I18n.available_locales is being set later during the initialization.
Because of that, the default I18n.available_locales are being loaded, which take some time to initialize.
While in most projects I18n.available_locales should be set earlier,
just lazily loading the default locales might be a good improvement anyway.
without lazy default locales: Time elapsed 965.10 ms

with lazy default locales: Time elapsed 0.006 ms

Thanks for the PR!
Sounds like a great improvement, I should have some time next week to look at it.

Last few weeks were really busy but, but this makes 100% sense. No point loading the default locales right away, as the configuration might set a completely different set of locales.


not working: ///

Environment information
CLI:
  Version:                      1.9.3
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           windows

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         unset
  JS_RUNTIME_VERSION:           "v20.15.1"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "npm/10.7.0"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

Rule name
noUndeclaredVariables
Playground link
https://biomejs.dev/playground/?lintRules=all&code=LwAvAC8AIAA8AHIAZQBmAGUAcgBlAG4AYwBlACAAdAB5AHAAZQBzAD0AIgBjAGgAcgBvAG0AZQAiAC8APgAKAGMAaAByAG8AbQBlAC4AZABlAHYAdABvAG8AbABzAC4AaQBuAHMAcABlAGMAdABlAGQAVwBpAG4AZABvAHcALgBlAHYAYQBsACgAJwBmAG8AbwAoACkAJwApAA%3D%3D
Expected result
no warnings because /// <reference types="chrome"/>  should declare the variable chrome
Code of Conduct

[X] I agree to follow Biome's Code of Conduct

user error. can use the globals in biome.json for this

@yigalirani , how did you resolve this? I added chrome to my "globals", and the not found error still persists.

maybe the problem is with your usage of the extends command. i dont use it