Error message is: write EPIPE

Type: Bug
Open vs code, go to a typescript file, ctrl + shift + p reload window, TypeScript language server exited with error: write EPIPE.

Can you please try collecting the TS Server log from the crashed instance:

Set "typescript.tsserver.log": "verbose"

Restart VS Code and reproduce the problem

Open the TypeScript section of the output panel

At the very top, find the first line that prints to path to the semantic error log file. It should look something like:
[Info  - 19:54:59.247] <semantic> Log file: /Users/matb/Library/Application Support/Code - Insiders/logs/20200213T104930/exthost55/vscode.typescript-language-features/tsserver-log-ZT2zau/tsserver.log

That file contains the typescript logs.

Look through that log file for the first error or stack trace you see. If you can share the log, I can also take a look to see if anything stands out

⚠Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


add Custom Vision API reference pages to TOC

@overbrimming,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@overbrimming : Thanks for your contribution to the Azure documentation! The author, @azdocprs, has been notified to review your proposed change.

@overbrimming Changes to TOC pages are not allowed in the public repo. Please make updates in azure-docs-pr.
Here's help if you need to get started in the private repo.
You can Move content between the public and private repos.
Thanks.

Whoops, thanks.


Jest can not inject globals to dependency module

Report a bug
I use a module named mod-a which dependence on mod-b.
Both mod-a and mod-b are use window.location instance.
// mod-a/main.js
import { getMyHref } from '@someone/mod-b'

export const getHref = () => {
  // good
  console.log(location.href)
  return location.href
}

export const getModuleHref = () => {
  // bad, throw error
  return getMyHref()
}

// mod-b/main.js
export const getMyHref = () => {
  return location.href
}

Now, mod-a can reconfigure url by jest-environment-jsdom-global, but mod-b CANNOT use the same jsdom config as mod-a:
$ jest
 FAIL  __tests__/main.test.js
  Location
    ✓ getHref (12ms)
    ✕ getMyHref (5ms)

  ● Location › getMyHref

    ReferenceError: location is not defined

      1 |
      2 | export const getMyHref = () => {
    > 3 |   return location.href
      4 | }
      5 |

      at getMyHref (../mod-b/main.js:3:3)

  console.log main.js:4
    https://www.google.com/

Test Suites: 1 failed, 1 total
Tests:       1 failed, 1 passed, 2 total
Snapshots:   0 total
Time:        0.707s, estimated 1s
Ran all test suites.
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c jest
Directory: /Users/leiming/pddProjects/jest-global-example/packages/mod-a
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/Users/leiming/pddProjects/jest-global-example/packages/mod-a/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

GitHub Sample

https://github.com/leiming/jest-inject-global-to-other-module

yarn install
lerna bootstrap

cd packages/mod-a
yarn test

Jest configuration
// mod-a/jest.config.js
module.exports = {
  verbose: true,
  testEnvironment: "jest-environment-jsdom-global", // only work in mod-a module
  testURL: "https://www.google.com/", // not work
  globals: {
    __DEV__: true,
    location: {
    } // not work
  }
};

Run npx envinfo --preset jest in your project directory and paste the
results here
Environment:
  OS:  macOS High Sierra 10.13.4
  Node:  9.6.1
  Yarn:  1.5.1
  npm:  5.6.0
  Watchman:  Not Found
  Xcode:  Xcode 9.3 Build version 9E145
  Android Studio:  Not Found

@simon360, @SimenB, @oliverzy, Could you help me solve this sencario by  https://github.com/facebook/jest/issues/5124 ?

Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@SimenB, it is likely a bug.but I will discuss by channel.
If you are sure that this is bug, please reopen this issue.

It's StackOverflow Link.

Happy to reopen if it's actually a bug

I'm simplify the code and just remove another dependency modules but Jest to describe this situation:
// mod-a/main.js
const {
  getENV
} = require('@someone/mod-b')

const getMyENV = () => {
  // It works
  return __DEV__
}

const getModuleENV = () => {
  // Bad
  const env = getENV()
  console.log(env)
}

module.exports = {
  getMyENV,
  getModuleENV,
}

// mod-b/main.js
const getENV = () => {
  console.log(__DEV__)
  return __DEV___
}

module.exports = {
  getENV
}

const main = require("../main");

describe("Env", () => {
  test("getMyENV", () => {
    expect(main.getMyENV()).toEqual("abc")
  });

  test("getModuleENV", () => {
    //will throw error
    expect(main.getModuleENV()).toEqual("abc")
  });
});

and update the sample repo:
https://github.com/leiming/jest-inject-global-to-other-module

Not sure what's going on, I agree your repro should work.

Reference issues:
https://github.com/facebook/jest/issues/3703
https://github.com/facebook/jest/issues/4358
https://github.com/facebook/jest/issues/3370

I come across the same issue when using a custom test environment and using the package service-worker-mock. I bootstrap globals like normal in setup, but they don't seem to reach the global scope of the package itself.
I realize this issue is still open - has anyone found a solution to this? Or better yet, I managed to make this work only by directly assigning to the environment global scope rather than the designated context run by the vm.. not the best solution. Any proper work-arounds?
Thanks in advance everyone!!


Envato extension - update 1.1.0

Description
Tracking New Sales For Envato Author
Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Hi @Slllava 👋
You should also run npx @raycast/migration@latest . in the project and fix some more bugs 😉

Hi @Slllava 👋
You should also run npx @raycast/migration@latest . in the project and fix some more bugs 😉

Hello, I fixed bugs.


FreeBSD (and possibly NetBSD) build fix.

FWIW OpenBSD 6.6 beta doesn't need this patch to build but hangs with a deadlock in mi_get_default_heap()

In fact the title is a bit of "exaggeration" it is more to silent build warning.

Thanks so much!


Incorrect statement that Azure storage account or Log Analytics workspace must be in the same subscription as your key vault.

The document states:
"_If you use an existing Azure storage account or Log Analytics workspace, it must be in the same subscription as your key vault. It must also use the Azure Resource Manager deployment model, rather than the classic deployment model.
If you create a new Azure storage account or Log Analytics workspace, we recommend you create it in the same resource group as your key vault, for ease of management._"
This is not the case. All storage options (LA, storage account, event hub, partner solution) allow selection of the target subscription.

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

ID: db3d06eb-12d1-5fdb-e5f7-647556d0d38b
Version Independent ID: 8f53d1c4-316d-76ca-8664-6a18ba3676c1
Content: Enable Azure Key Vault logging
Content Source: articles/key-vault/general/howto-logging.md
Service: key-vault
Sub-service: general
GitHub Login: @msmbaldwin
Microsoft Alias: mbaldwin

@GitHubUser1339
Thanks for your feedback! We will investigate and update as appropriate.

@GitHubUser1339
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly.

@msmbaldwin
Kindly provide update on this case.
Thanks!

@GitHubUser1339  thank you. We have removed that outdated statement. #please-close


Failed to get registration from op code AVERAGE_POOL_2D

Getting this error when running binary on stm32f746 board on serial bus:
Didn't find op for builtin opcode 'AVERAGE_POOL_2D' version '2'.
An older version of this builtin might be supported.
Are you using an old TFLite binary with a newer model?

Failed to get registration from op code AVERAGE_POOL_2D

Im sure the average pool 2d is part of the supported operations. What could be causing this? How would I remedy the issue?

If you are using the MicroMutableOpsResolver, you will need to explicitly call AddAveragePool2D.
https://github.com/tensorflow/tflite-micro/blob/45c80c969820fc96257f79ac197b6391dbbef741/tensorflow/lite/micro/micro_mutable_op_resolver.h#L142-L145
See keyword_benchmark as an example https://github.com/tensorflow/tflite-micro/blob/45c80c969820fc96257f79ac197b6391dbbef741/tensorflow/lite/micro/benchmarks/keyword_benchmark.cc#L54-L58

Thanks @advaitjain! I actually had that in my code but my actual issue was that I allocated 5 operations in  static tflite::MicroMutableOpResolver<5> micro_op_resolver; but added 7 operations. The last two added operations didn't get captured. Once I changed to <7> I no longer have the issue. Thanks for the swift response.


site: adds mosn as a user

thanks @antJack @taoyuanyuan and recently @evacchi for the long term collaboration on this.

ps got permission offline on this one.


Manually typing services: and Enter results in services:configs:

The title covers it :smile:

Interestingly it does not happen if the file has some empty lines in it. It only happens with a freshly created file (services: is the only line in the file)


@conda-forge-admin, please re-render

@conda-forge-admin, please re-render.

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I rerendered the recipe in conda-forge/pythesint-feedstock#13.


Func azure login uses portal credentials

I think it should work with credentials that are bound to the function workspace.

Ok this is now a serious issue since I need to share that login and it's way too powerful

sorry for the delay responding to this.
The "right" way of doing this in Azure would be to use RBAC rules which should let you give anyone with a liveId (if you're using your liveId) or in your org access to any of your apps.
The problem with the site creds is that they can only do content publish, but can't be used to update app settings (settings in local.settings.json)


No longer rewrite tsconfig.json files section

Tsconfig now supports comments : https://github.com/Microsoft/TypeScript/pull/5450/files
It's already difficult to rewrite tsconfig.json (to keep the filesGlob in sync). People have complained about merge conflicts https://github.com/TypeStrong/atom-typescript/issues/266  and options like formatting : https://github.com/TypeStrong/atom-typescript/issues/678
I'm thinking of disabling files rewriting permanently  thoughts? @blakeembrey @nycdotnet

I'm cool with it, but I can see it breaking a lot of peoples workflows after exploring some of the issues here around tsconfig. Maybe we need to pull it into tsconfig and/or provide a CLI for those users, but note a comment caveat. Or just leave it as an option and disable it going forward.
For tooling, anything using tsconfig will continue support filesGlob. I don't think there's much using it though, so everything else will not work. Not sure how many people are relying on the expansion, the hope is not many to none.

I like the current behavior, but I'm not going to fight for it if you're unwilling to support it anymore.  I do think that it would be fine to have the default atom-typescript-created tsconfig.json exclude node_modules and to not use the files or filesGlob properties, for example.

I guess the issue is that on bad atom days (and they tend to happen), they would not have another fallback IDE to support their code :-/
Will provide an option to stop expansion for those that care about their comments + formatting. The rest can use it as it stands now
Will create a seperate issue to track that. Thanks! :rose:


[QUESTION] predicate matchnodeselector failed for instance-manager pods

My cluster has 3 dedicated worker storage-nodes with a big disk attached at /var/lib/data/ and 3 "simple" worker nodes.
These dedicated storage nodes have labels and annotations like this:
Labels:
  longhorn=storage
  node.longhorn.io/create-default-disk=config
Annotations:
  node.longhorn.io/default-disks-config:
  [{"path":"/var/lib/data/","allowScheduling":true,"tags":["storage"]},{"path":"/var/lib/longhorn/","allowScheduling":false}]
  node.longhorn.io/default-node-tags: ["storage"]

longhorn values.yaml
defaultSettings:
  createDefaultDiskLabeledNodes: true
  systemManagedComponentsNodeSelector: "longhorn:storage"
  defaultDataPath: "/var/vcap/data/"

Longhorn is installed using Helm chart:
helm install longhorn longhorn/longhorn --namespace longhorn-system --values longhorn/values.yaml
Problems:

Longhorn  instance-manager pods scheduled at "simple" worker nodes fail with predicate matchnodeselector failed error.
A simple pod with a longhorn storage volume fails with error: CSINode <IP_ADDRESS> does not contain driver driver.longhorn.io This node <IP_ADDRESS> is a simple node, not a storage node.

I want pods that use Longhorn volumes to be created on any worker nodes, while Longhorn storage must be resided on the dedicated "storage" nodes.
Any help is appreciated.

You could ref to this one https://github.com/longhorn/longhorn/issues/2614#issuecomment-846560806

The longhorn csi-plugin must run on each node where you want to be able to use the storage (consumer node). It looks like that is not the case in your current configuration?

cc @kaxing @khushboo-rancher


[Enhancement] Use horizontal layout for components instead of vertical layout

Hi,
I think is better use a horizontal layout because in small screen you can view all values.
Thanks!

@RodrigoTomeES Thank you!
I tried it, but the screen seems to be a little too wide. I will change it when I come up with a better idea for the screen.

@ObuchiYuki Hi, I explained myself wrong, I was suggesting something like that

Hi,
DevToysMac is now archived and deprecated. We just released DevToys 2.0 for Windows, Mac and Linux. This issue may or may have not been addressed in the new version. If the issue persist, we encourage to open a new issue on https://github.com/DevToys-app/DevToys or https://github.com/DevToys-app/DevToys.Tools
See more information about DevToys 2.0 here: https://devtoys.app/blog/announcing-devtoys-2.0-preview


[fix] Update link to Cypress examples in README.md

Link to cypress examples was taking users to a 404 page.
This PR updates the link so users are taken to the correct path, examples/vite-app/cypress/, instead of the incorrect one, examples/cypress.

Thanks @conniepaula ✌


Developing using the MemGPT Python client: TypeError: agent_config must be of type dict

Describe the bug
Traceback (most recent call last):
File "/root/.memgpt/test.py", line 46, in
agent_state = client.create_agent(agent_config=agent_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/memgpt/client/client.py", line 112, in create_agent
raise TypeError(f"agent_config must be of type dict")
TypeError: agent_config must be of type dict
Please describe your setup

[ ] How did you install memgpt?
pip install pymemgpt -U

[ ] Describe your setup
Linux

Using the sample : https://memgpt.readme.io/docs/python_client
dolphin-2.1-mistral-7b.Q6_K.gguf - quickstart free endpoint
CODE:
from memgpt.config import AgentConfig
from memgpt import MemGPT
from memgpt import constants
from memgpt.cli.cli import QuickstartChoice
client = MemGPT(
# When auto_save is 'True' then the agent(s) will be saved after every
# user message.  This may have performance implications, so you
# can otherwise choose when to save explicitly using client.save().
auto_save=True,
# Quickstart will automatically configure MemGPT (without having to run `memgpt configure`
# If you choose 'openai' then you must set the api key (env or in config)
quickstart=QuickstartChoice.memgpt_hosted,

# Allows you to override default config generated by quickstart or `memgpt configure`
config={}

)
Create an AgentConfig with default persona and human txt
In this case, assume we wrote a custom persona file "my_persona.txt", located at ~/.memgpt/personas/my_persona.txt
Same for a custom user file "my_user.txt", located at ~/.memgpt/humans/my_user.txt
agent_config = AgentConfig(
name="jacktheripper",
preset = "memgpt_docs",
persona = "dr_hyde",
human = "phd_ace",
model = "ehartford/dolphin-2.5-mixtral-8x7b",
model_endpoint = "https://api.memgpt.ai",
model_endpoint_type = "vllm",
model_wrapper = "chatml",
context_window = 16384,
embedding_endpoint_type = "hugging-face",
embedding_endpoint = "https://embeddings.memgpt.ai",
)
Create the agent according to AgentConfig we set up. If an agent with
the same name already exists it will simply return, unless you set
throw_if_exists to 'True'
agent_state = client.create_agent(agent_config=agent_config)  ## ERROR
Create a helper that sends a message and prints the assistant response only
def send_message(message: str):
"""
sends a message and prints the assistant output only.
:param message: the message to send
"""
response = client.user_message(agent_id=agent_state.id, message=message)
for r in response:
# Can also handle other types "function_call", "function_return", "function_message"
if "assistant_message" in r:
print("ASSISTANT:", r["assistant_message"])
if "internal_monologue" in r:
print("THOUGHTS:", r["internal_monologue"])
Send a message and see the response
send_message("Please introduce yourself and tell me about your abilities!")

please advise - Thanks!

Sorry we recently change the function for agent creation for the client https://github.com/cpacker/MemGPT/blob/main/memgpt/client/client.py#L217
You can see the updated example here https://github.com/cpacker/MemGPT/blob/main/examples/memgpt_client.py
We're actively working on the client (adding more functions, connecting it to the REST server) so sorry things will occasionally break!

thanks - so we need to run the server not import memgpt
so maybe best to just use the api?  for integration going forward?

You can run the client both with the server (docs: https://memgpt.readme.io/reference/api) or without it if you're just trying to run MemGPT locally. I'll close this issue for now but let us know if you run into other issues!


catboost: 1.2.3 -> 1.2.5

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/catboost/versions.
meta.description for catboost is: High-performance library for gradient boosting on decision trees
meta.homepage for catboost is: https://catboost.ai
Updates performed

Version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.2.5 in filename of file in /nix/store/3mkm7vm3rwxgb3d08yxb62h4jzh05glz-catboost-1.2.5

Rebuild report (if merged into master) (click to expand)

5 total rebuild path(s)

5 package rebuild(s)

First fifty rebuilds by attrpath

catboost
python311Packages.catboost
python311Packages.orange3
python312Packages.catboost

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3mkm7vm3rwxgb3d08yxb62h4jzh05glz-catboost-1.2.5 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A catboost https://github.com/r-ryantm/nixpkgs/archive/0220f7ccc2d3b7df299e28435f208b42572ffe1e.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/0220f7ccc2d3b7df299e28435f208b42572ffe1e#catboost

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3mkm7vm3rwxgb3d08yxb62h4jzh05glz-catboost-1.2.5
ls -la /nix/store/3mkm7vm3rwxgb3d08yxb62h4jzh05glz-catboost-1.2.5/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

2 packages failed to build:

python311Packages.orange3
python311Packages.orange3.dist

6 packages built:

catboost
catboost.dev
python311Packages.catboost
python311Packages.catboost.dist
python312Packages.catboost
python312Packages.catboost.dist

Maintainer pings
cc @PlushBeaver @natsukium for testing.

Result of nixpkgs-review pr 308927 run on x86_64-linux 1

8 packages built:

catboost
catboost.dev
python311Packages.catboost
python311Packages.catboost.dist
python311Packages.orange3
python311Packages.orange3.dist
python312Packages.catboost
python312Packages.catboost.dist


[SecretsManagement] CredManager Naming Convention should be ps:SecretName

Summary of the new feature/enhancement
Secrets are stored in Windows Credential Manager as __PS_<secretName>. The more common convention seen by popular tools such as git, azure devops, Microsoft Account, WindowsLive, etc. is ps:<secretname>. The module should adopt this de-facto convention for consistency for this provider.
Other possibilities:
powershell:<secretname>
pwsh:<secretname>
psSecretManagement:<secretname>
Prior Art Examples

ps:<secretname> makes sense to use, thanks @JustinGrote

Done.


no Kill reward when using non-vanilla weapons

Sponge Version:  spongeforge-1.12.2-2838-7.1.10-RC3994
Forge Version:  forge-1.12.2-<IP_ADDRESS>47
Total Economy Version:  TotalEconomy-1.8.1
When killing mobs with non-vanilla weapons, for example ModernWarfare Guns, the player does not get the reward for actually Killing the mob. My first guess was that using this mod keeps the player from getting the kill and actually have the weapon/entity get the kill. But after a bit more testing I did receive achievements regarding combat from other mods and vanilla, making me think that the player still Kills.
After some research i found your guys' fix on how a bow kill is handled to where the entity, or damageSoucre, gets linked to the creator. Meaning that it should already be fixed. Do you think that this mod in particular has it so the way the mob is killed is not linked back or able to be linked back to the player?
Would you have some suggestions in things i can try to get this to work, using either your configs or code by way of checking death cause? Or would this be a problem regarding mods used?
Thanks in advance.
I currently don't have custom configs.

I checked the weapons from the ic2ex mod, the plugin works correctly. Rewards for killing mobs are available.
Checked on a mining laser and nano saber.
maybe your problem is directly related to your weapon mod?

Yea, after some more testing and looking at code from the mod in question, it seems that the mod uses really weird death cause, making it a 3 step progress as far as i can see. mob gets killed by entity(bullet), that gets linked to who shot it, who would normally be a player, but in this mod its the gun, that is operated by the player. So i think the death cause is set to the gun and does not get linked to the player when using your system. So there is basically nothing wrong on your guys' end, this mod is just kinda weird ;3.
Thanks tho, for checking it with other mods, did narrow it down.

Glad you found the cause of this! :slightly_smiling_face:


Revert this play button

Revert this to original yellow button (for loading page only) specified by #171

Hi @Aatmaj-Zephyr can I work on this?


compare to last commit in a PR when using git commands

Close #205
Follow-up from #133

+1

@mirpedrol The https://github.com/dorny/paths-filter/pull/133 is merged now. Does it solve also your issue?
Fix in your PR might be working for you, but modifying getCurrentRef() to use HEAD^2 doesn't look correct. Although I haven't tried it myself.

Thanks for merging #133!
The fix in #133 allowed us to use this action without using the API, but we still have the problem of detecting too many files changed.
This happens because the last commit on PR events is the pre-merge commit, so it includes files that are not modifyed by the current PR.
Would there be a better way to prevent that without having to use HEAD^2?


merge from arlac77/template-github-action,arlac77/template-kronos-component

README.md

docs(README): update from template

Codecov Report

Merging #1000 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1000   +/-   ##
=======================================
  Coverage   92.24%   92.24%
=======================================
  Files          10       10
  Lines        1483     1483
  Branches      169      169
=======================================
  Hits         1368     1368
  Misses        115      115

Continue to review full report at Codecov.

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


Errors compiling runtime agnostic JavaScript to TypeScript

🔎 Search Terms
runtime agnostic
🕗 Version & Regression Information

This changed between versions ______ and _______
This changed in commit or PR _______
This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
I was unable to test this on prior versions because: Using npm<EMAIL_ADDRESS>
⏯ Playground Link
No response
💻 Code
/*
#!/usr/bin/env -S /home/user/bin/deno run -A /home/user/bin/nm_host.js
#!/usr/bin/env -S /home/user/bin/node --experimental-default-type=module /home/user/bin/nm_host.js
#!/usr/bin/env -S /home/user/bin/bun run /home/user/bin/nm_host.js
*/

const runtime = navigator.userAgent;
const buffer = new ArrayBuffer(0, { maxByteLength: 1024 ** 2 });
const view = new DataView(buffer);
const encoder = new TextEncoder();
const { dirname, filename, url } = import.meta;

let readable, writable, exit, args, cwd;

if (runtime.startsWith("Deno")) {
  ({ readable } = Deno.stdin);
  ({ writable } = Deno.stdout);
  ({ exit } = Deno);
  ({ args } = Deno);
}

if (runtime.startsWith("Node")) {
  const { Duplex } = await import("node:stream");
  ({ readable } = Duplex.toWeb(process.stdin));
  ({ writable } = Duplex.toWeb(process.stdout));
  ({ exit } = process);
  ({ argv: args } = process);
}

if (runtime.startsWith("Bun")) {
  readable = Bun.file("/dev/stdin").stream();
  writable = new WritableStream({
    async write(value) {
      await Bun.write(Bun.stdout, value);
    },
  }, new CountQueuingStrategy({ highWaterMark: Infinity }));
  ({ exit } = process);
  ({ argv: args } = Bun);
}

const hostdir = args.at(-2).slice(0, args.at(-2).lastIndexOf("/"));

if (runtime.startsWith("Bun") || runtime.startsWith("Node")) {
  process.chdir(hostdir);
  cwd = process.cwd();
}

if (runtime.startsWith("Deno")) {
  await Deno.chdir(hostdir);
  cwd = Deno.cwd();
}

function encodeMessage(message) {
  return encoder.encode(JSON.stringify(message));
}

async function* getMessage() {
  let messageLength = 0;
  let readOffset = 0;
  for await (let message of readable) {
    if (buffer.byteLength === 0) {
      buffer.resize(4);
      for (let i = 0; i < 4; i++) {
        view.setUint8(i, message[i]);
      }
      messageLength = view.getUint32(0, true);
      message = message.subarray(4);
      buffer.resize(0);
    }
    buffer.resize(buffer.byteLength + message.length);
    for (let i = 0; i < message.length; i++, readOffset++) {
      view.setUint8(readOffset, message[i]);
    }
    if (buffer.byteLength === messageLength) {
      yield new Uint8Array(buffer);
      messageLength = 0;
      readOffset = 0;
      buffer.resize(0);
    }
  }
}

async function sendMessage(message) {
  await new Blob([
    new Uint8Array(new Uint32Array([message.length]).buffer),
    message,
  ])
    .stream()
    .pipeTo(writable, { preventClose: true });
}

try {
  // await sendMessage(encodeMessage([{ dirname, filename, url }, { cwd }, ...args]));
  for await (const message of getMessage()) {
    await sendMessage(message);
  }
} catch (e) {
  exit();
}

/*
export {
  args,
  encodeMessage,
  exit,
  getMessage,
  readable,
  sendMessage,
  writable,
};
*/

🙁 Actual behavior
bun install npm<EMAIL_ADDRESS>bun install undici-types
bun install @types/bun
bun install @types/node

mkdir -p node_modules/@types/deno
deno types > lib.deno.d.ts
cp lib.deno.d.ts node_modules/@types/deno

Rename nm_host.js to nm_host.ts.
./node_modules/.bin/tsc nm_host.ts --target esnext --allowJs --module esnext --moduleResolution bundler

A lot of errors. Summarized at the bottom of the attached file typescript-errors.txt
Errors  Files
    18  node_modules/@types/deno/lib.deno.d.ts:5
     1  node_modules/@types/node/buffer.d.ts:2273
     1  node_modules/@types/node/crypto.d.ts:4515
     2  node_modules/@types/node/dom-events.d.ts:108
     7  node_modules/@types/node/globals.d.ts:87
     2  node_modules/@types/node/module.d.ts:283
     4  node_modules/@types/node/perf_hooks.d.ts:836
     2  node_modules/@types/node/url.d.ts:933
     2  node_modules/@types/node/util.d.ts:1390
     3  node_modules/@types/node/worker_threads.d.ts:665
     1  node_modules/bun-types/bun.d.ts:117
    15  node_modules/bun-types/globals.d.ts:1103
     1  node_modules/bun-types/overrides.d.ts:3
     2  node_modules/bun-types/wasm.d.ts:1

🙂 Expected behavior
What I'm really trying to do here is convert valid, working runtime agnostic JavaScript that achieves the expected result using the same code with node, deno, and bun, to TypeScript, and create a .ts file from JavaScript source.
Additional information about the issue
Using npm<EMAIL_ADDRESS>for resizable ArrayBuffer support.

typescript-errors.txt

Looks like you're trying to use all of @types/node, @types/deno, and bun-types at the same time.  That won't work; they describe much of the same common global functionality but with slightly different types.  It's a nice idea, but someone will have to do the work first to build types for that.  This repository only maintains the typescript compiler and types for the ecmascript environment and the html/web environment.

Looks like you're trying to use all of @types/node, @types/deno, and bun-types at the same time. That won't work;

Why won't this work?
If it doesn't, it should.

Why won't this work?

He wrote why it won't work, and the reason makes sense.

Doesn't make sense to me. If we can branch in JavaScript with basic if conditions and statements, we should be able to branch in TypeScript.

For example one of your included types says the global type Event has a cancelBubble property that is of type boolean, other included types says this property is of type () => void. It can't be both at the same time. And the types do not say "if navigator.userAgent starts with "deno" the type is this and that", they describe types unconditionally. You can write types that are either A or B depending on another type (basically the if condition), but those included libraries don't do that.
This issue does not seem to be describe an actual bug in TypeScript and seems to be a question. Please note that this repository is for bug reports and feature requests, it's not a general purpose help forum (see this). You can try the TypeScript Discord or StackExchange for this (or any other).

@MartinJohns

Please note that this repository is for bug reports and feature requests,

Then I guess this is a bug and a feature request.
If the code works as intended in JavaScript the code should work as intended in TypeScript, if in fact TypeScript is a "superset" of JavaScript.

Personally I would advice to first learn the basics of TypeScript using simpler projects

I don't do simple projects. I test, experiment, hack multiple JavaScript engines and runtimes. The requirement must be challenging for me to even consider diving in to.
When possible, as in this case, I use the same code for node, deno, and bun.

instead of forcefully trying to push your idea without understanding what you're doing.

It's very simple. My goal is to create a .ts file containing the TypeScript programming language representation of working JavaScript code, using tsc.
My only interest here is to visually observe what TypeScript programming language outputs for the JavaScript code I have written that works as intended.
If TypeScript does not have the capability to branch in basic if conditions and statements, then I can adjust my requirement down to TypeScript programming language capabilities.
Does tsc have the capability to compile a Deno-only version to TypeScript from JavaScript?

Then I guess this is a bug and a feature request.

But it's not. You're neither demonstrating a bug with TypeScript, nor are you suggesting a specific feature (which has it's own issue template). You're facing an issue using TypeScript and don't understand the error message you get and ask here for help.

if in fact TypeScript is a "superset" of JavaScript.

Relevant link: Is TypeScript really a superset of JavaScript?

I don't do simple projects. I test, experiment, hack multiple JavaScript engines and runtimes. The requirement must be challenging for me to even consider diving in to.

I too enjoy the challenge of ramming my head through the door. I don't waste time learning to use door handles!
Learning the basics of whatever tool you choose to use is an appropriate first step to face whatever challenge you choose. By skipping this crucial step you end up in situations like this: Not understanding the error you get, trying to report it as a bug when it's clearly not.

If TypeScript does not have the capability to branch in basic if conditions and statements, then I can adjust my requirement down to TypeScript programming language capabilities.

As I mentioned earlier: TypeScript does have this capability, if the types are written accordingly. The type libraries you included are not written like that (intentionally). So you can either fall back to any, or write your own type definitions for whatever libraries you use.

Does tsc have the capability to compile a Deno-only version to TypeScript from JavaScript?

The TypeScript compiler tsc can not be used to compile to TypeScript code, no. That is not a supported use case.

Anyway, I'm out. This issue will lead to nowhere.

The TypeScript compiler tsc can not be used to compile to TypeScript code, no. That is not a supported use case.

That's all you had to say in the first place.

@nmain @MartinJohns I made it work https://github.com/guest271314/native-messaging-typescript.


Fix some build errors with disable_3d=yes

Some new issues with 3D disabled popped up after recent changes, it now once again works correctly (and tests run properly)
These are all test related and won't be caught by the CI, as it doesn't build minimal debug builds, and 3D can't be disabled in the editor

Thanks!

Thank you!


Auth (and maps (and fetching (this branch name is actually very bad)))

this goes off the new-pages branch so i suppose we could just merge this instead of #1
added

authentication logic
global state
"profile page" with last trips as default for logged in user
trip page and data fetching for it
a proof of concept-ish map for the trip view

oh yeah i cherry picked the one commit from #1 that wasn't already here into here


Blog: Building Jamstack Infrastructure With Pulumi

JAMStack being in part about about JavaScript, what do you think about doing demonstrating this from more of a JavaScript-centric perspective, with maybe Gatsby for the site bit, and Javascript/TypeScript for the Pulumi program?

JAMStack being in part about about JavaScript, what do you think about maybe demonstrating this from more of a JavaScript-centric perspective, with maybe Gatsby for the site bit, and Javascript/TypeScript for the Pulumi program?

FWIW, I had the same thoughts while reading the post.


JSON RPC Api

Hello @weidi,
Please one thing I have noticed since I started using the docker container, is that I got no access to the api.  I can view the web interface as normal,  but HTTP requests to the api doesn't work. I keep getting the following response
requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

Any possibility you have come across this please?
Kind regards

Hi @Odianosen25 , what tag are you using? Looks like you are using python, are you trying to access https or http?
I haven´t testing API access as i was expecting if HTTPs is working the REST API should be good as well but i´d like to test this as well.

Hello @weidi,
Thanks for the quick response. Thinking about it, I think I am using the latest tag, which is the one in dev, and I think I shouldn't be using that. Yes I am using python, and using https.
Can I can't seem to figure out your build file for stable, will like to try that instead. Maybe it will fix my issue
Kind regards

Hello @weidi,
I am sorry just being a nuisance again. I was actually using dev and not stable.
Thanks again for the file.
Kind regards

Hello @weidi,
I am sorry just being a nuisance again. I was actually using dev and not stable.
Thanks again for the file.
Kind regards

You might just report this to softether they might be interested in it

Done that just now, thanks

I´m struggling with the same issue now but want to use dev version.

Hello @weidi,
I never got it to work for dev, so just using stable as that’s enough for me at least for now.
Are there any interesting features in dev that wants you want to use it, if I may ask please?
Thanks

Think there are loads of small fixes but nothing really necessary (in my case)


Support transferring files via serial

Some boards require sending files via serial line to upgrade firmware, etc. It is also a potential useful feature when trying to recover from some types of failure.
It would be great if this was supported via the UI somehow.

Would be good to clarfiy the protocols indeed; I'd expect either raw/custom or x/y/zmodem typically though.
Note that there is nothing really blocking a client side from doing this as the console streams are simply byte streams. So it could all be simply handled by the UI ala minicom (for *modem protocols).
Obviously it would be nice to expose these as Volumes; But that's tricky to expose without special board handling or a bit of extra protocol to "switch console modes"; E.g. for some board you'll see them simply sending e.g. 0xff over serial if there is no software to load locally ; While for others to upgrade firmware you first have to interact with a serial console to switch to a flashing mode.
@mwelchuk did you have any specific in mind for this one or just a general interest?

It was trying to upgrade U-Boot on an R-Car board where this would have been really useful. In that case it's that "ascii" protocol type that's needed.

It was trying to upgrade U-Boot on an R-Car board where this would have been really useful. In that case it's that "ascii" protocol type that's needed.

Isn't the ascii protocol well just transferring ascii data (srec file or similar) ? :p so it's more like copy & pasting in a big blob or is there something more to it?

It was trying to upgrade U-Boot on an R-Car board where this would have been really useful. In that case it's that "ascii" protocol type that's needed.

Isn't the ascii protocol well just transferring ascii data (srec file or similar) ? :p so it's more like copy & pasting in a big blob or is there something more to it?

TBH, don't know. Just tried to test a new U-Boot build and realised that the path of least resistance was to quickly pull the board from my boardswarm setup. Minicom provides a little progress UI and doesn't display a quickly scrolling screen of ascii characters.
It seems like a bit of functionality that's not going to be overly useful most of the time, until being able to do it becomes critical.


RTE images max-width 100%

How does everyone feel about adding the following to the rich text editor module?
.rte{
  img {
    max-width: 100%;
  }
}

I just did this for a shop using timber because on mobile its images were still using the 1024x1024 versions and being pushed outside the container.

Big oversight not having that in there already. I think we assumed that rte containers would be inside a grid__item, but that definitely isn't always the case. Do you want to add a PR and either add it here (https://github.com/Shopify/Timber/blob/master/assets/timber.scss.liquid#L1326) or in the RTE section?

If I add it to the "#Images and Iframes" section, should I just replace img.auto with img?  Is there a case where you'd need the same declaration for both selectors?
Having img.auto gives you some added specificity, so maybe it's useful to have when you need to chain some classes together?

Yea, you can replace that. It seemed like a good idea at the time but is not used enough to be in base Timber.


[BUG] [EASY FIX] keybase follow -y xxxxxx doesn't work

Possible solutions:

Lose the -y flag all together
Actually follow the -y flag and don't ask the below questions.

I got these two questions while trying to use keybase follow -y xxxxxx
yeah, it was an extra 2 seconds of my life, but meh, a bug is a bug.
We found an account for xxxxxx, but they haven't proven their identity. Still follow them? [y/N]
Some proofs failed; still follow xxxxxx? [y/N]

From quick look, it seems to only bypass confirmation when the default option is "yes". It tries to be extra safe. So it would only go through automatically if that person had social proofs and they would all verify successfully. Example:
» kbs follow testuserdc5c -y
▶ INFO Identifying testuserdc5c
✔ "testuserdc5c" on rooter: http://localhost:3000/_/api/1.0/rooter/testuserdc5c/c9d662929e9fd4ef793f10be67a24803.json [cached 2018-02-27 16:38:49 CET]
▶ INFO Identity auto-confirmed via command-line flag
▶ INFO User auto-remote-followed via command-line flag


Remove file from server..

Hi I am new in JavaScript can i have an example of  axios call for removeFile
<dropzone
      ref="PlaceAds"
      id="myVueDropzone"
      url="/upload"
      method='POST'
      acceptedFileTypes='.jpg,.png'
      v-on:vdropzone-success="showSuccess"
      v-on:vdropzone-removed-file='removeThisFile'
      :preview-template="template" >
</dropzone>
<script>
methods: {
      removeThisFile (file, error, xhr) {
        this.$refs.PlaceAds.removeFile(
                 ??????????
           )
      },

</script>

So you want to delete the file from the server using axios? It's a bit hard to advise how to do that without knowing your specific details.
I'd suggest you'll need an API endpoint that accepts a filename, once you've got the filename you should be able to find it on the server and delete it.

Here's a basic example. Get the filename file.name then pass it to server using my example, so you are able to locate where your filestore to delete.
removeThisFile (file, error, xhr) {
const data = {
filename:  file.name
}
axios({
      url: '', //endpoint
      method: 'POST',
      data : data,
      config: 'JSON'
})

},

It's quite unsafe to depend just on the filename, what happens if user uploads two files with the same name?

As a really easy fix for this, I strongly recommend comparing md5 hashes of stored file on the server and base64 string sent by Dropzone like this:
md5($request->get('file')['dataURL']) === md5_file($media->getPath())

With that and comparing file names, we can be pretty much sure that we are not removing different file.


Added set operations

I think what you did here is awesome and I saw a request on twitter to add additional set operations.  I figured it would be a good opportunity to finally learn about gganimate.  I tried to follow your style.

Very cool, thanks a ton! Hopefully my style wasn't too obtuse :) I'm looking forward to reviewing/merging this this weekend or early next week.
Also, just want to make sure you're okay with the CC0 (images) and MIT (code) licenses.

Just took a quick look at the animations in the rich diff and THESE ARE AWESOME!!!

Thanks again @TylerGrantSmith for submitting this PR and for all of your work! I really appreciate it!
I've merged the changes into a new branch (see PR #6) so that I can add some changes as I'm refactoring the code a bit.
Just FYI for your future reference, when you're creating a pull request, it's best to push your code to a new branch in your repo and then submit the PR from that branch. That way you can use the master branch in your repo to stay up-to-date with the master branch in my repo. If you want to update your GitHub fork after I merge these changes into my master branch, it's probably easiest to just delete your fork and create a new one.

Great, glad you could use it @gadenbuie !  Thank you for the tips--this was my first attempt and really didn't have much of an idea what I was doing.

No worries! The PR was great and thanks for being so thorough -- like adding to the README and everything else.
The only "big" thing that I changed was to change the row values from [(x1, y1), (x2, y2)] to [(1, a), (2, b)], etc. I think it makes it a little easier to understand.
I also refactored the prep code quite a bit to incorporate the row-wise color scheme (which was a great idea, btw!) rather than have a separate proc_data2() function.
Do you have a twitter handle? I'm going to tweet these out later today and I'd like to include you in that if you want.


[feat]: Configurable TERM->KILL delay

Prerequisites

[X] I have searched for existing issues that already suggest this feature, without success.

Describe the Feature Request
We want services to be able to alter the default delay time between when EmbassyOS sends the SIGTERM to the container and when it sends a SIGKILL. This should be an optional key in the manifest and a global system default if the key is ommitted.
Describe the Use Case
bitcoind can take longer than 60s to gracefully shutdown following a SIGTERM with undesirable consequences if it is killed before then. However, globally cranking the delay value will cause other undesirable consequences like services that are misbehaving might block further action until the Kill is submitted.
Describe Preferred Solution
Optional key in manifest
Describe Alternatives
No alternatives.
Anything else?
No response

We should probably add something on the UI as well to alert the user in case the timeout is half an hour or so? @ProofOfKeags mentioned a countdown clock

Captured in #949

https://github.com/Start9Labs/embassy-os/pull/951 fixes this

to test: start bitcoind with a high dbcache. Click stop - make sure it takes more than 30s to shut down, and make sure the frontend messages that it will take a while

It's very unlikely that bitcoind will take shorter than 30s to shut down, even with the default dbcache. However, not that you will need to run IBD for a while in order for the cache to fill up. You can see how big it is in the logs. My recommendation is to set dbcache to something totally nuts like 4096, then stop IBD when the cache reaches around 1000MB. Should take at least a minute to stop

This has been in UAT for a week. Test it and move it @DrewAns


[adguard-home] fix svc path

Signed-off-by: Ryan Holt<EMAIL_ADDRESS>Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[X] Chart Version bumped
[X] Variables are documented in the README.md
[X] Title of the PR starts with chart name (e.g. [radarr])

Yup, it seems

cat /sys/class/thermal/thermal_zone0/temp
55017


bugfix: Audit skipped on ConstraintTemplates

Update provided ConstraintTemplates to consider the case that input.review.operation is not set when the audit process runs.
Fixes #59

Did you test all the cases? Should maybe add add this testing in the future also on the CI?

yeap, I did. Previously all the numbers in the left bar where in 0:

We have tests that check the admission phase, but we don't have them for the audit phase, we only check that the audit pod is healthy. It makes sense to add them, this is the second time we had audit not working as expected.
I'll create the issue.
Thanks!


ERROR: Config value android_arm64 is not defined in any .rc file

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):source
TensorFlow version:1.15
Python version:3.6
Installed using virtualenv? pip? conda?:virtual.pip
Bazel version (if compiling from source):0.26
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

when run this:
bazel build -c opt
--config=android_arm64
--cxxopt='--std=c++11'
//tensorflow/lite/tools/evaluation/tasks/coco_object_detection:run_eval
get error:
ERROR: Config value android_arm64 is not defined in any .rc file
how can I fix it?

Have you run the /.configure script from the root directory, and set up your build environment against your local Android SDK/NDK directories?

The android_arm64 config should be defined in the root TensorFlow checkout's .bazelrc file, see https://github.com/tensorflow/tensorflow/blob/master/.bazelrc#L9.


Unnecessary -var-create and -var-delete commands during a stack trace can cause noticeable pause each time the debuggee stops

Summary
Each time the debuggee stops, Visual Studio Code requests a stack trace of the threads that are expanded in the CALL STACK window. Turning on engineLogging shows that MIEngine implements a stack trace for a thread by issuing a -stack-list-arguments for the thread, and then issuing a -var-create and -var-delete command for every argument in every frame in the stack.
When there are many stack frames with many arguments, or if the debugger is behind a sluggish network connection, or if the user installs a hook that runs on every GDB prompt, the time taken to execute these commands can amount to a significant delay.
These -var-create and -var-delete commands ought to be unnecessary as explained below.
Reproduction

Put this program in a suitable file, say recurse.c:
static
void r(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j)
{
    if (a)
    {
        r(b, c, d, e, f, g, h, i, j, 0);
    }
}

int
main(void)
{
    r(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
}

Compile it with debugging information, for example gcc -g -o recurse recurse.c.

Open Visual Studio Code and create a new launch configuration using the "(gdb) launch" template, supplying recurse as the value for the "program" key, and turning on engineLogging:
"logging": {
    "engineLogging": true
}

Select View ⟶ Run to switch to the run panel, select the new launch configuration in the RUN AND DEBUG dropdown, and press F5 to start debugging.

Click "Step Into" a few times until there are multiple frames on the stack.

Look at the DEBUG CONSOLE to see the GDB/MI commands sent by MIEngine. I took a copy of the commands issued by a single Step Over operation with ten frames on the stack and attached them here: stack-list-arguments.gz. Here's a summary of the commands issued by MIEngine to GDB:

Command
Count

-stack-list-arguments
2

-stack-list-frames
1

-stack-list-variables
1

-stack-select-frame
20

-var-create
210

-var-delete
210

If each of the -var-create and -var-delete commands takes only a millisecond due to network lag or a GDB before-prompt hook, then there's a 0.4-second pause each time the debuggee stops.

Analysis
You can see from the log output that each -var-create is followed immediately by a -var-delete. This means that MIEngine is only issuing these commands to collect information about the variables (not to get a variable reference that it can later use). Why is this? The culprit is DebuggedProcess.GetParameterInfoOnly() which has a comment explaining what's happening:
https://github.com/microsoft/MIEngine/blob/c594534c5af5b9cc3ad81b10588f00649db1ce6f/src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs#L1975-L1976
The problem is that GetParameterInfoOnly() was called with values = false and so it passed PrintValue.NoValues to the -stack-list-arguments call and then followed up with -var-create and -var-delete commands to get the types of the arguments.
The reason why values = false here is that AD7DebugSession.HandleStackTraceRequestAsync() did not set the FIF_FUNCNAME_ARGS_VALUES flag when calling AD7Thread.EnumFrameInfo(). And the reason why this flag is unset is that VSCode did not pass a format argument to the StackTrace request, and so we are in the "default format" case:
https://github.com/microsoft/MIEngine/blob/c594534c5af5b9cc3ad81b10588f00649db1ce6f/src/OpenDebugAD7/AD7DebugSession.cs#L1706-L1710
Solution ideas

The default format could include FIF_FUNCNAME_ARGS_VALUES: then GetParameterInfoOnly() would pass PrintValue.SimpleValues to the the -stack-list-arguments call, which would return the types immediately and there would be no need for the subsequent -var-create and -var-delete calls.

GetParameterInfoOnly() could pass PrintValue.SimpleValues to the the -stack-list-arguments call if either types or values were required, discarding the values information if it is not needed.

Software versions
Cpptools extension: 1.12.4
VSCode: 1.71.0
Commit: 784b0177c56c607789f9638da7b6bf3230d47a8c
Date: 2022-09-01T07:25:10.472Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 5.4.0-124-generic
Sandboxed: No

It feels like the best solution here is to have a launch.json knob to control the default stack trace format (and ideally context menu controls in the call stack window to change it during a debug session).

Maybe—but first I think it is worth trying to see if GDB can be fixed. The underlying problem is that the GDB/MI command -stack-list-arguments --simple-values is supposed to print simple values like integers and not print compound values like structures, so that the whole stack can be printed in reasonable time. The problem noted in #673 is that --simple-values does not work as expected in C++: in particular, references to arbitrarily large arrays, structures, and unions are printed.
I think this is a bug, or at least an important oversight, in GDB, so I have filed bug 29554 together with a patch to GDB that updates --simple-values so that it does not print references to arrays, structures, and unions. If I can get this merged, then MIEngine can be updated to take advantage of the new behaviour.
(It might be that the GDB maintainers won't agree that this is a bug, but if so I can try again, this time leaving --simple-values unchanged and adding a new print-values option that has the desired behaviour.)

Even with that, I think we would still need a knob to turn off values for folks using older versions of GDB (unless we want to do version sniffing and turn it off by default).

GDB/MI has built-in feature-detection via the -list-features command—you'll see that in my patch on bug 29554 I added a feature for the new behaviour of --simple-values which MIEngine could consult.

Sounds reasonable. BTW: Due to GDB's licensing, I am not allowed to look at GDB source code.


run compliance tests unless excluded.

This PR flips the logic backwards and runs compliance tests unless excluded from the set.
This PR also excludes literal.json tests as they currently fail.

@springcomp shouldn't some tests related https://github.com/jmespath-community/go-jmespath/pull/61 fail ?

@springcomp shouldn't some tests related #61 fail ?

This PR does not change the reference to what this repository currently pulls from jmespath.test.
The repository is currently linked to commit 5d161a which is an earlier version than the current HEAD.
Tracking changes to the latest version of the compliance tests is a separate task and should be opt-in.
So that you can control which version of the jmespath.test to take in at your own pace.


Switching between numeric and alphanumeric TextInput changes keyboard layout

Description:
Any application that has several TextInput with at least one that includes keyboardType="numeric" will change the iOS keyboard layout when returning to a TextInput that shows an alphanumeric keyboard (i.e. keyboardType="default") after focusing a numeric TextInput.
This behavior occurs when the user has two keyboards layouts set up in iOS, with at least one of them being English (United States) and with the other one (in my case, French (France), but I also tested Spanish (Spain) ) being on top of the layout list in the iOS settings.
It seems that this problem exists only if the secondary keyboard's layout is English (United States).

The problem seems to also occur with keyboardType="number-pad", keyboardType="decimal-pad" and keyboardType="phone-pad"
When focusing a TextInput that uses one of these mode, the iOS device logs : Can't find keyplane that supports type 8 for keyboard iPhone-PortraitChoco-DecimalPad; using 25727_PortraitChoco_iPhone-Simple-Pad_Default
React Native version: 0.61.5
System:
OS: macOS 10.15.2
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Memory: 22.48 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.3 - /usr/local/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.13.7 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
IDEs:
Android Studio: 3.5 AI-191.8<IP_ADDRESS>77832
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
npmGlobalPackages:
create-react-native-app: 2.0.2
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
Steps To Reproduce

Create new blank react-native application
In a view, have two TextInput, one that has keyboardType="default", one that has keyboardType="numeric"
Run app on iOS 13.3 device, with several keyboard layouts. In order, layouts should be 1) French (France), 2) Emoji, 3) English (United States)
Select the default field, check that layout starts with AZERTY.
Focus the numeric field
refocus the default field. Layout is now QWERTY

Expected Results
Layout should stay the same in-between identical keyboardType fields
Snack, code example, screenshot, or link to a repository:
After a react-native init, replace App.js content with:
import React from 'react';
import {SafeAreaView, TextInput} from 'react-native';

const App: () => React$Node = () => {
  return (
    <SafeAreaView>
      <TextInput style={{color: 'black'}} keyboardType="default">
        TEST
      </TextInput>
      <TextInput style={{color: 'black'}} keyboardType="decimal-pad">
        1234
      </TextInput>
    </SafeAreaView>
  );
};

export default App;

any update on this issue?

None. I started building a new app in-between and will try to see if there are any workarounds when coming to that part again. I will try to use library components to see if they have the same problem, and if they don't I'll try to understand why.

i think it might be a problem about ios version. I run into this problem in IOS 13.1 but it worked perfectly in IOS 12.2

I finally found a solution that worked for me 😁
The issue
There is an issue on IOS, when you use a numeric keyboard, it changes the keyboard language and uses app default language : variable CFBundleDevelopmentRegion
--> In my case CFBundleDevelopmentRegion was "en", that's why it transformed azerty keyboard to qwerty keyboard
Solution
Solution that worked for my : Remove the following 2 lines in info.plist
<key>CFBundleDevelopmentRegion</key>
<string>en</string>

That solution works for me as well, thanks! As it seems to be strictly iOS-related, I will close this issue.


Having possibilty of multiple translation suggested

This change makes it possible to pass num_hypotheses and beam_size to CTranslate and have multiple results returned.
Results will be combined and compiled into a list and returned.
The new functionality is called multi_translate() and this change keeps old API of translate() as wrapper of that, in which default parameters will be passed, and also the return value will be of type str as before (instead of new [str])

This is great, I think we'll need this for doing XML translations. Thanks!

This is great, I think we'll need this for doing XML translations. Thanks!

Glad to hear it is a useful contribution :raised_hands:  :grin: :blush:

Just added scores for hypotheses so you will be able to do:
hypotheses = translation_en_es.hypotheses('Hello World')
for hypothesis in hypotheses:
    print(f'{hypothesis.score} - {hypothesis.output}')

# Output
-1.134260654449463 - Hola Mundo
-2.1044602394104004 - Hola World
-2.9032299518585205 - Hello World
-4.167231559753418 - Hola, Mundo

Just added scores for hypotheses so you will be able to do:
hypotheses = translation_en_es.hypotheses('Hello World')
for hypothesis in hypotheses:
    print(f'{hypothesis.score} - {hypothesis.output}')

# Output
-1.134260654449463 - Hola Mundo
-2.1044602394104004 - Hola World
-2.9032299518585205 - Hello World
-4.167231559753418 - Hola, Mundo

That's very useful :star_struck: thanks :raised_hands:


Metal Performance

Measure and improve metal render performance.

Initial instrumentation shows significant time being spent in mtl::ShaderProgram::getRenderPipelineState

After caching the pipeline state:
Benchmark completed.
Result:
| boston     | 46.0 ms | 21.7 fps |
| paris      | 69.8 ms | 14.3 fps |
| paris2     | 52.0 ms | 19.2 fps |
| alps       | 39.0 ms | 25.7 fps |
| us east    | 37.9 ms | 26.4 fps |
| greater la | 49.2 ms | 20.3 fps |
| sf         | 83.8 ms | 11.9 fps |
| oakland    | 59.0 ms | 16.9 fps |
| germany    | 53.9 ms | 18.5 fps |
Average frame time: 54.5 ms
Average FPS: 18.3


fix: check polymorphic on nested relationship

@yajra it appears I introduced a small bug for nested relationship :(
Assuming my query source model is CharacterInfo - and has a relationship called affiliation to the class CharacterAffiliation
The current change is doing CharacterInfo::affiliation() to retrieve relationship and determine its nature => pass
However, add a new relation to CharacterAffiliation called corporation which will target UniverseName.
Now, the current change will do CharacterInfo::affiliation.corporation() which is wrong.
I don't know how to handle that - but since the package is largely consumed, I think the best would be to rollback change until it's addressed :/
sorry about the issue :(
related to #2580, eveseat/seat#791

Patch released on v9.17.1. Thanks! 🚀


Remove netlify extra comment on pull requests

idk what has happend but I recall it wasn't happening with first integration so need review tho

actually, it's good as non-logged people won't see it in PR


Add available space to devicemapper status output

PR for #10473.

Can you please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
git commit --amend -s --no-edit && git push -f

ping @vbatts

@petervo this looks to primarily address loopfile, but will it be same behavior if there is no loop file, and a direct block device mounted for devices.dataDevice and devices.metadataDevice? Perhaps the code need only a bit of refactor such that the statfs only accounts for the mounted device, regardless of loop or not.

@vbatts I'm not a devicemapper expert, so feel free to tell me i'm wrong with any of my statements, this is to the best of my limited knowlege.
The goal here was to have a way to get the actual available space when the device is backed by a sparse file and do the naive (total - used) everywhere else.  My understanding is that using a sparse file is only possible with a loop device, if we wanted we could support sparse files that were not created by docker by using stat to check if the device is a loop device, getting the target and checking that is a real file before proceeding with the statfs call.
We can't call statfs on block devices themselves so when the device is not a loop device we don't know that the device isn't overstating it's capacity ei a lvm thin volume. So I'm not sure what the solution is there but that is a custom configuration so presumably they had a good reason for doing that and another way to monitor capacity, and not something docker just did out of the box.

Right, so this is less about the sparseness of this, but the consideration of the underlying file system, when the loop file is used. I like that a lot.
Overall, LGTM besides the nit of documentation wording. Since there will be scenarios that the number don't balance, and it should be clear to the users.

I added a line to the documentation.
Based off my response to your earlier comments i also added a commit to support loop devices that docker didn't setup. I'm not sure if that's a requirement for this or not. It does rely on /sys/dev being present which is kernel 2.6+. If we need to support earlier than that we'll need to use the fallback that is in losetup. let me know if I need to add that. Or if you prefer we can leave that commit out and just only do the statfs check when docker already knows it's dealing with a loop device.

@petervo let's not do that logic to determine the attached loopfile. That is why I recently rearranged a bit to have a field in DeviceSet for the loop file if it is a loop file https://github.com/docker/docker/blob/master/daemon/graphdriver/devmapper/deviceset.go#L93
So, if the dataLoopFile and metadataLoopFile are not == "" then just use that value.

Yeah that makes sense was a edge case, I removed that commit. Are there other changes needed?

no other changes needed. You've also fixed my doc nit too.
@unclejack or @tiborvass  could you look this once over before i merge it?

@vbatts I'm going to try it out now and review.

LGTM

LGTM


stack casts int32 dtype coordinate to int64

What happened?
The code example below results in False, because the data type of the a coordinate is changed from 'i4' to 'i8'.
What did you expect to happen?
I expect the result to be True. Creating a MultiIndex should not change the data type of the Indexes from which it is built.
Minimal Complete Verifiable Example
import xarray as xr
import numpy as np

ds = xr.Dataset(coords={'a': np.array([0], dtype='i4')})
ds['a'].values.dtype == ds.stack(b=('a',))['a'].values.dtype

MVCE confirmation

[X] Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
[X] Complete example — the example is self-contained, including all data and the text of any traceback.
[X] Verifiable example — the example copy & pastes into an IPython prompt or Binder notebook, returning the result.
[X] New issue — a search of GitHub Issues suggests this is not a duplicate.

Relevant log output
No response
Anything else we need to know?

Unfortunately this is a pandas thing, so we can't fix it. Pandas only provides Int64Index so everything gets cast to that. Fixing that is on the roadmap for pandas 2.0 I think.

Ah very good find! Thanks.
maybe this can be fixed, or at least made more consistent. I think .values is pulling out of the pandas index (so is promoted) while we do actually have an underlying int32 array.
>>> ds.stack(b=('a',))['a'].dtype #== ds.stack(b=('a',))['a'].values.dtype
dtype('int32')

>>> ds.stack(b=('a',))['a'].values.dtype
dtype('int64')

cc @benbovy

You're welcome! Please let me know if a PR (a first for me on xarray) would be welcome. A pointer to the relevant source would get me started.

That's a bug in this method: https://github.com/pydata/xarray/blob/6f9e33e94944f247a5c5c5962a865ff98a654b30/xarray/core/indexing.py#L1528-L1532
Xarray array wrappers for pandas indexes keep track of the original dtype and should restore it when converted into numpy arrays. Something like this should work for the same method:
    def __array__(self, dtype: DTypeLike = None) -> np.ndarray:
        if dtype is None:
            dtype = self.dtype
        if self.level is not None:
            return np.asarray(
                self.array.get_level_values(self.level).values, dtype=dtype
            )
        else:
            return super().__array__(dtype)


downport to 702

not sure why the chaining rule was disabled https://github.com/sbcgua/ajson/commit/01a170dda1d4acb5d340f1308f3c8b7dfa4bb13d ?

I though it was some mistake. But it make sense to get it back


fix(github_actions): rename .github to github

For https://github.com/day8/re-frame-template/issues/168

Thanks @sevillaarvin 👍🏻


Added TH OWL

It is the new name of the former Hochschule Ostwestfalen-Lippe (HS OWL), which already is part of this repo.

@janlive Pull request merged. Thank you!


Fix type hint

@sfc-gh-cnivera - I caught a couple dozen or so other scenarios of using | with None in typehints. Please review my commit. Yours looks good.


Legacy Format warnings not working (V23 Beta)

I'm using the Version <IP_ADDRESS> Beta of AWIPS, running Windows 11.
I wanted to add the old/Non-IBW versions of the convective products installed with AWIPS into WarnGen, as I was able to do this with previous builds, but as shown in the picture below, despite following instructions (selecting hazards, location, etc.), the text product editor acts as if nothing was selected. Any guidance on how to fix this would be greatly appreciated as I'd like to use the old format of warnings.

I should also mention that the "Precautionary/Preparedness Actions" section with the old layout of warnings is left blank despite having a CTA selected.

Hello,
Non-IBW warnings are no longer supported in the most recent builds of AWIPS.

Man, that's a real shame.
Do you have any recommendations as to how the Non-IBW warnings can be kept without having to downgrade to an older version of the software? There's a lot of weather enthusiasts that use this software solely for time-specific mockup generation purposes, and I'd hate to see - at least what I would personally consider, I understand everyone has their own preferences & uses - such options like these go away.

Non-IBW templates haven't been used in 5 years operationally. Old/outdated formats and templates should not be used.


pythonPackages.humanfriendly: init at 4.18

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build python2.pkgs.humanfriendly python3.pkgs.humanfriendly

Build failure fixed in 984a3567aa11ab8e1e689e3ae4ef999134fd0eef

@GrahamcOfBorg build python2.pkgs.humanfriendly python3.pkgs.humanfriendly

@GrahamcOfBorg build python2.pkgs.humanfriendly python3.pkgs.humanfriendly


I cannot generate the pip  wheel

Hi,
I am trying to compile tensorflow from scratch. I find the following problem.
When I execute:
bazel   build  -c opt  --config=cuda //tensorflow/tools/pip_package:build_pip_package

The compilation goes ok.
But when I try to build the wheel from the program  :
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
Tue Dec 20 11:47:44 CET 2016 : === Using tmpdir: /tmp/tmp.zISC44bEnF
tensorflow/bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles tensorflow
tensorflow
/tmp/tmp.zISC44bEnF tensorflow
Tue Dec 20 11:47:45 CET 2016 : === Building wheel
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
  warnings.warn(msg)
error: cannot copy tree 'build/scripts-2.7': not a directory

Can anyone help ?
Thanks

Which version? I just tried it with 12rc1 successfully
export HOME=/local_home/yaroslav
mkdir -p ~/tensorflow_avx2.git
cd ~/tensorflow_avx2.git
git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow
git tag -l
git checkout tags/0.12.0-rc1 -b 12rc1
./configure
export flags="-c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --config=cuda"
bazel build $flags -k //tensorflow/tools/pip_package:build_pip_package
....
yaroslav@53:~/tensorflow_avx2.git/tensorflow$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
Tue Dec 20 10:16:10 PST 2016 : === Using tmpdir: /tmp/tmp.4FiW7g3OBw
~/tensorflow_avx2.git/tensorflow/bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles ~/tensorflow_avx2.git/tensorflow
~/tensorflow_avx2.git/tensorflow
/tmp/tmp.4FiW7g3OBw ~/tensorflow_avx2.git/tensorflow
Tue Dec 20 10:16:13 PST 2016 : === Building wheel
~/tensorflow_avx2.git/tensorflow
Tue Dec 20 10:16:48 PST 2016 : === Output wheel file is in: /tmp/tensorflow_pkg

Also, what operating system version?

Looks like this is an issue with pip installation:
https://github.com/pypa/pip/issues/1117


EL7 fixes

Install EPEL for inotify-tools
Switch to RPM based installers for repos
Change service name in handler depending on OS/version

Thanks!


Missing method to add RelationshipPattern as where on PatternComprehension

Hello!
I am trying to construct a Cypher similar to below:
MATCH(foo:Foo) RETURN foo,[(foo)-[rel:FOOBAR]->(bar:Bar) WHERE (bar)-[:HAS]->(:ZZZ) |[rel,bar]];

But having some troubles to add the WHERE part
I tried something like this:
        var foo = Cypher.node("Foo").named("foo");
        var bar = Cypher.node("Bar").named("bar");
        var fooBar = foo.relationshipTo(bar, "FOOBAR").named("rel");
        var pc = Cypher.listBasedOn(fooBar)
                .where(bar.relationshipTo(Cypher.node("ZZZ"), "HAS"))
                .returning(fooBar, bar);
        var query =
                Cypher.match(foo).returning(foo.getRequiredSymbolicName(),  pc);
        System.out.println(Renderer.getDefaultRenderer().render(query.build()));

But the "where" method on the PatternComprehension does not accept a RelationshipPattern, only Conditions.
Is there a way to convert the Relationship to a Condition or is there another way to do this?
regards,

Hi!
Oh yes indeed, that's missing.
I can offer you the following workaround until the next patch:
@Test
	void f() {
		var foo = Cypher.node("Foo").named("foo");
		var bar = Cypher.node("Bar").named("bar");
		var fooBar = foo.relationshipTo(bar, "FOOBAR").named("rel");
		var pc = Cypher.listBasedOn(fooBar)
			.where(Conditions.noCondition().and(bar.relationshipTo(Cypher.node("ZZZ"), "HAS")))
			.returning(fooBar, bar);
		var query =
			Cypher.match(foo).returning(foo.getRequiredSymbolicName(),  pc);
		System.out.println(Renderer.getDefaultRenderer().render(query.build()));
	}

Renders: MATCH (foo:Foo) RETURN foo, [(foo)-[rel:FOOBAR]->(bar:Bar) WHERE (bar)-[:HAS]->(:ZZZ) | [rel, bar]]

Hi
Thanks for that, it was more elegant than what I did (created a custom Condition class accepting a Relationship).
Regards,

No worries and thank you for reporting this.
Implemented in e73afaa9ebd60496262084596811774ebb983f1e, will be out with the next patch.


Standalone Windows Installer V 3.00

Am I alone in having trouble with the Standalone Windows Installer for V3,00?
I have tried on 2 computer, both running Win10Home
In each case the install progresses up until making Windows directory start...
The installer hangs and will not complete task.
Thanks

@Warren735 this is the issue/bug tracker for the QGIS Website. On issues.qgis.org you find the one for the application, but... I just tested the installer and for me it installs flawlessly. Though that is Win10 Pro.
Better to first ask this on the QGIS-User mailing list: https://qgis.org/en/site/getinvolved/mailinglists.html#qgis-mailinglists
Closing this one as not about Website


[BUG] init_beanie() doesn't work properly sometimes

Describe the bug
Sometimes init_beanie() raises pydantic's validation error.
  File "C:\Users\yallxe\AppData\Local\pypoetry\Cache\virtualenvs\[hidden]-gdEMt55_-py3.11\Lib\site-packages\starlette\routing.py", line 677, in lifespan
    async with self.lifespan_context(app) as maybe_state:
  File "C:\Users\yallxe\AppData\Local\pypoetry\Cache\virtualenvs\[hidden]-gdEMt55_-py3.11\Lib\site-packages\starlette\routing.py", line 566, in __aenter__
    await self._router.startup()
  File "C:\Users\yallxe\AppData\Local\pypoetry\Cache\virtualenvs\[hidden]-gdEMt55_-py3.11\Lib\site-packages\starlette\routing.py", line 654, in startup
    await handler()
  File "D:\Dev\[hidden]\[hidden]\app\database\__init__.py", line 22, in init_database
    await init_beanie(
  File "C:\Users\yallxe\AppData\Local\pypoetry\Cache\virtualenvs\[hidden]-gdEMt55_-py3.11\Lib\site-packages\beanie\odm\utils\init.py", line 530, in init_beanie
    await Initializer(
  File "C:\Users\yallxe\AppData\Local\pypoetry\Cache\virtualenvs\[hidden]-gdEMt55_-py3.11\Lib\site-packages\beanie\odm\utils\init.py", line 89, in __await__
    yield from self.init_class(model).__await__()
  File "C:\Users\yallxe\AppData\Local\pypoetry\Cache\virtualenvs\[hidden]-gdEMt55_-py3.11\Lib\site-packages\beanie\odm\utils\init.py", line 500, in init_class
    await self.init_document(cls)
  File "C:\Users\yallxe\AppData\Local\pypoetry\Cache\virtualenvs\[hidden]-gdEMt55_-py3.11\Lib\site-packages\beanie\odm\utils\init.py", line 358, in init_document
    self.init_document_fields(cls)
  File "C:\Users\yallxe\AppData\Local\pypoetry\Cache\virtualenvs\[hidden]-gdEMt55_-py3.11\Lib\site-packages\beanie\odm\utils\init.py", line 202, in init_document_fields
    check_nested_links(link_info, prev_models=[])
  File "C:\Users\yallxe\AppData\Local\pypoetry\Cache\virtualenvs\[hidden]-gdEMt55_-py3.11\Lib\site-packages\beanie\odm\utils\init.py", line 180, in check_nested_links
    nested_link_info = detect_link(v)
                       ^^^^^^^^^^^^^^
  File "C:\Users\yallxe\AppData\Local\pypoetry\Cache\virtualenvs\[hidden]-gdEMt55_-py3.11\Lib\site-packages\beanie\odm\utils\relations.py", line 30, in detect_link
    return LinkInfo(
           ^^^^^^^^^
  File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for LinkInfo
model_class
  subclass of BaseModel expected (type=type_error.subclass; expected_class=BaseModel)

ERROR:    Application startup failed. Exiting.

Research
Sometimes, field.sub_fields[0].type_ (model_class) occurs to be (in my case) ForwardRef('Tariff').
Additional context
Sometimes it is initializing correctly, without any issues, but sometimes this problem appears. No code changes even required.

Hi,
I consistently get the same error as yallxe on either Python 3.9, 3.10 or 3.11 when I run the following  .py file.
Dropping to PDB, I get <class 'typing.ForwardRef'> when  I run type(field.sub_fields[0].type_) while LinkInfo.model_class expects Type[BaseModel].

It is probably an internal bug with forward refs. I didn't even know such an issue could occure.
@roman-right

Hi @yallxe , @tcha0 ,
Thank you for the report! Could you please provide a small example to reproduce it?

@tcha0 already did.

Oh, I missed the link. True

I'll work on this today. But the problem could be complicated as I have to deal with Pydantic logic.
The workaround:
from typing import List

from beanie import Document, BackLink, Link, init_beanie
from motor.frameworks.asyncio import asyncio
from pydantic import Field
from motor.motor_asyncio import AsyncIOMotorClient

class House(Document):
    name: str
    door: Link["Door"]
    owners: List[Link["Person"]]

class Door(Document):
    height: int = 2
    width: int = 1
    house: BackLink[House] = Field(original_field="door")

class Person(Document):
    name: str
    house: List[BackLink[House]] = Field(original_field="owners")

async def main():
    House.update_forward_refs()
    client = AsyncIOMotorClient("mongodb://beanie:beanie@<IP_ADDRESS>:27017")
    await init_beanie(
        database=client.testdb,
        document_models=[Door, House, Person],
    )

if __name__ == "__main__":
    asyncio.run(main())

The line House.update_forward_refs() will do the trick

Or, what can look crazy, you can change the order of the documents to have the one with Links in the first place:
    client = AsyncIOMotorClient("mongodb://beanie:beanie@<IP_ADDRESS>:27017")
    await init_beanie(
        database=client.testdb,
        document_models=[House, Door, Person],
    )

At least I know why my problem occurs only sometimes. The problem is that I'm using Document.__subclasses__() instead of providing all the documents manually, and the result order is random.

@yallxe @tcha0
The fix is here: https://github.com/roman-right/beanie/pull/566
I'll merge it on Monday together with some other fixes.

@roman-right, Just want to remember :)

@yallxe yup. I have been finishing with another fix. You can find it in 1.9.1


Error importing json wallet

With an export made in v<IP_ADDRESS>, importing as well in v<IP_ADDRESS> gives error http://cl.ly/image/2t322I091D2T.

wrong pwd error when importing backups:
https://bitsharestalk.org/index.php?topic=14330.msg186684#msg186684
https://bitsharestalk.org/index.php?topic=14337.msg186685#msg186685

Also see: #1406

Refer to #1406 instead.


assets:clean task is not cleaning predigested assets with .digest in the name

Whenever rake assets:clean is run, the assets in public/assets with .digest in their name are not cleaned at all. This causes assets to accumulate on production and drastic increase in disk usage over time.
I realised that this is because of the following:
https://github.com/rails/propshaft/blob/69c285f293a4a845fbaa05625bbcb815e31ebded/lib/propshaft/output_path.rb#L55-L60
The regex ignores all files that have a . digest in them.
Is this on purpose? or is this a bug?

Looks like there a brief mention of this in https://github.com/rails/propshaft/issues/110

It's a bug. Are you using esbuild and allowing chunking?

We allow chunking. Not with esbuild but with Webpack. I suppose the bundler doesn’t matter. Are there any attempts at fixing it that I can look at? Or known workarounds? For us, the assets directory grows to 40GB in a month or two and resolving that requires clobbering and precompile with a downtime of couple of minutes — a heavy JavaScript app that is going through a lot of iterations basically.  I’m going to test a script tomorrow that would look at the .manifest.json and deletes all the files with .digested in their name and are not mentioned in the manifest. On 29. May 2023, at 20:10, Breno Gazzola @.***> wrote:
It's a bug. Are you using esbuild and allowing chunking?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

I think the problem is caused by #100 which I'm considering reverting as it's causing multiple problems, I just need confirmation. Last question: Do all chunks have the same base name and only differ in the digest?
I'm asking because clean is actually working for me, keeping only the 3 most recent versions of each file

Actually, I just figured it out. Clean is not going to work because each file name is unique due to the digest, and therefore Propshaft cannot group them into "versions" to delete the old ones.
I'll have to think a bit about how to handle this (I would also welcome a PR)

Examples of pre-digested files:
public/assets/Vue3Lottie-1ea0f3b6ddc59bef7019.digested.js
public/assets/Vue3Lottie-23af1d5aa7baee8b1ca8.digested.js
public/assets/Vue3Lottie-26a7aeceee4e261a29b5.digested.js
public/assets/Vue3Lottie-337a4df42c71a547bccd.digested.js
public/assets/Vue3Lottie-3d0d69a396646d61f938.digested.js
public/assets/Vue3Lottie-41282d7f6fa2d6b4d891.digested.js

public/assets/Vue3Lottie-1ea0f3b6ddc59bef7019.digested.js-261e2968c4f774cb50ba.digested.map
public/assets/Vue3Lottie-23af1d5aa7baee8b1ca8.digested.js-c3e14423760666ecd16d.digested.map
public/assets/Vue3Lottie-26a7aeceee4e261a29b5.digested.js-c9d39559c1296b3e0dab.digested.map
public/assets/Vue3Lottie-337a4df42c71a547bccd.digested.js-27763e2e7bdcf11da3ff.digested.map
public/assets/Vue3Lottie-3d0d69a396646d61f938.digested.js-32f969d5062f50ff3a60.digested.map
public/assets/Vue3Lottie-41282d7f6fa2d6b4d891.digested.js-abed1ffa6c0eaad60d5a.digested.map

public/assets/Vue3Lottie-1ea0f3b6ddc59bef7019.digested.js.LICENSE.txt
public/assets/Vue3Lottie-23af1d5aa7baee8b1ca8.digested.js.LICENSE.txt
public/assets/Vue3Lottie-26a7aeceee4e261a29b5.digested.js.LICENSE.txt
public/assets/Vue3Lottie-337a4df42c71a547bccd.digested.js.LICENSE.txt
public/assets/Vue3Lottie-3d0d69a396646d61f938.digested.js.LICENSE.txt
public/assets/Vue3Lottie-41282d7f6fa2d6b4d891.digested.js.LICENSE.txt

I can look into it sometime to see if I can make a PR. At least, I will try to give a workaround script using the manifest to clear unused assets.

I'd love to say we could just group them by the name before the digest, but esbuild gives all chunks the same name and that would break it.


fix: NAC cluster scope update

Why the changes were made
Update design with current decisions.
related to https://github.com/migtools/oadp-non-admin/issues/103
How to test the changes made
Read design.

/lgtm


add event handling support for this module

currently this module is unable to handle events such as detecting mousedown, mouseup, etc.
I propose to implement event handling by using python decorators.
an example of how it might work:
@hapi.onmousedown
def onmousedown(mouseX, mouseY):
    print("mouse pressed at:", mouseX + ', ' + 'mouseY)

#116

@MNA4 Thanks a ton! Mind updating the README?


DHCP server connection check mechanism

I use KEA 1.5 DHCP server and default dhcplb configuration . When I close kea-dhcp4.service, available stable servers do not update and request packets are trying to send to inactive dhcp server. Then I try poweroff dhcp server and still dhcplb try to send to closed dhcp server. free_conn_timeout does not check connection?

Hi @bakip, we do not have a connection check mechanism. It is up to the user to keep the list of servers up to date.
With regards to dhcplb not updating the list of hosts, I'll take a look at it in #24.
Internally we extend DHCPServerSourcer to use our service discovery mechanism instead of relying in file updates.
That said, feel free to submit a PR if you want to add a connection check.

@bakip thanks for opening this issue. @pmazzini already pointed out in our internal version we extend DHCPServerSourcer, that has logic to pull the list of active servers talking to our internal service discovery system.
In terms of the opensource solution, you are gonna need to write something within your infrastructure that keeps the text files updated and adds/removes servers as they come and go from your infra.
A health check connection logic is tricky... what would such health check consist of?

you can try simply sending ICMP (ping) messages to the targets hosts, but the fact that they reply to ICMP does not mean they are healthy (as in, serving dhcp traffic)
you can make a dhcp request... but what should be in the payload? it's unclear.

this is why we chose to do no health-checking, it really is depending on the infrastructure you are running.
That said, if you have ideas and are willing to write some go code you can definitely send us a PR with your idea and we will happily review and merge :)


Get slog to install for Python2 via pip

I don't know how or why, but slog installs flawlessly for Python3 via pip, even though I had not been developing for it (print and Classname(object) are not implemented per Python3 spec), but pip/pip2 install slog allows for python3 -c 'import slog' to success and python2.7 -c 'import slog' to fail at importing slog.

Resolved in 0.202 thanks to help from reddit user /u/pujuma


Failed to show the signMessage request prompt on Metamask

Describe the bug
After calling the signMessage() it launches the current wallet but fails to show up the request prompt
  void signMessage() async {
    w3mService!.launchConnectedWallet();
    await w3mService!.request(
      topic: w3mService!.session?.topic,
      chainId: 'eip155: ${w3mService!.session!.chainId}', // Connected chain id
      request: SessionRequestParams(
        method: 'personal_sign',
        params: ['Sign this', w3mService!.session!.address],
      ),
    );
  }

Meaningful logs
I was able to print() the chainID and the Wallet Address without any issue
 onPressed: () {
      signMessage();
      print('ChainID: ${w3mService!.session!.chainId}');
      print('Wallet Address: ${w3mService!.session!.address}');
     },

I/flutter ( 3263): ChainID: 11155111
I/flutter ( 3263): Wallet Address: 0xc59a6ce391818cbc7b67020184f4f1df5031cae1

Version: web3modal_flutter: ^3.2.2

Issue resolved

Issue resolved

Hello! I suppose it could have been the chainId (chainId: 'eip155: ${w3mService!.session!.chainId}'), right?

Since the sign request function in the documentation was not working for me I checked the example folder and refactored my code
    required W3MService w3mService,
    required String message,
  }) async {
    w3mService.launchConnectedWallet();
    return await w3mService.request(
      topic: w3mService.session!.topic,
      chainId: w3mService.selectedChain!.chainId,
      request: SessionRequestParams(
        method: 'personal_sign',
        params: [
          message,
          w3mService.session!.address!,
        ],
      ),
    );
  }


0.9.3 Ubuntu 14.04 package dependency issues

I'm unable to install the debian file on Ubuntu 14.04 Trusty because of dependency issues, boost being one of them.  I'm only issuing 2 commands from a fresh install:
wget http://download.opensuse.org/repositories/home:/wellenreiter01/xUbuntu_14.04/amd64/feathercoin_0.9.3_amd64.deb
vagrant@vagrant-ubuntu-trusty-64:~$ sudo dpkg -i feathercoin_0.9.3_amd64.deb
Selecting previously unselected package feathercoin.
(Reading database ... 62972 files and directories currently installed.)
Preparing to unpack feathercoin_0.9.3_amd64.deb ...
Unpacking feathercoin (0.9.3) ...
dpkg: dependency problems prevent configuration of feathercoin:
feathercoin depends on libboost-filesystem1.54.0; however:
Package libboost-filesystem1.54.0 is not installed.
feathercoin depends on libboost-program-options1.54.0; however:
Package libboost-program-options1.54.0 is not installed.
feathercoin depends on libboost-system1.54.0; however:
Package libboost-system1.54.0 is not installed.
feathercoin depends on libboost-thread1.54.0; however:
Package libboost-thread1.54.0 is not installed.
feathercoin depends on libdb5.3++; however:
Package libdb5.3++ is not installed.
feathercoin depends on libminiupnpc8 (>= 1.6); however:
Package libminiupnpc8 is not installed.
feathercoin depends on libprotobuf8; however:
Package libprotobuf8 is not installed.
feathercoin depends on libqrencode3 (>= 3.2.0); however:
Package libqrencode3 is not installed.
feathercoin depends on libqt5core5a (>= 5.2.0); however:
Package libqt5core5a is not installed.
feathercoin depends on libqt5dbus5 (>= 5.0.2)
dpkg: error processing package feathercoin (--install):
dependency problems - leaving unconfigured
Processing triggers for mime-support (3.54ubuntu1.1) ...
Errors were encountered while processing:
feathercoin

please use 'sudo apt-get update' followed by 'sudo apt-get install feathercoin_0.9.3_amd64.deb'
This should solve dependency issues

I did.  The problem is conflicting dependencies.

I'm trying to install in Xubuntu wily.  feathercoin depends on libprotobuf9, which has been replaced by libprotobuf9v5.  They're conflicting, so there's no way to install both.  So, could you either compile for wily, or provide a static build?

It took a bit but was finally able to automate with the following:
apt-get update
wget http://download.opensuse.org/repositories/home:/wellenreiter01/xUbuntu_14.04/amd64/feathercoin_0.9.3_amd64.deb
dpkg -i feathercoin_0.9.3_amd64.deb
cp feathercoin_0.9.3_amd64.deb /var/cache/apt/archives/
apt-get -f install
apt-get install feathercoin
I still can't compile from source, but that's a different bug for another day.  Thanks, closing


Title elements are missing

There are 2 Title elements, first one is the big one in the center of the screen, second one smaller above the hot bar. It would be nice if it was possible to hide these, because only these wouldn't be hidden if you were to hide everything.
Thanks for great mod!

Noted! Thank you.


[EXE] How to write a custom training loop from scratch in Tensorflow(v2.3).

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
For the people who want to learn the Tensorflow framework and get the experience of how to use it from scratch.
Describe the solution you'd like
A clear and concise description of what you want to happen.
I've recently done a project in which I entirely wrote code by myself. It will help people to deal with the situation when they've to write a training loop from scratch. I've done an image dehazing project in which the data set is images.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
So in that project, I've explained how to deal when dataset and labels both are images, in this case, hazy images are input and original images are labels. The code is in Tensorflow version 2.3.
Additional context
Add any other context or screenshots about the feature request here.
Link to repo: https://github.com/sanchitvj/Image-Dehazing-using-GMAN-net

Hi @sanchitvj thanks for the suggestion. I assume  you meant to propose a GMAN net exercise ?
I didn't quite get what you meant by "write a custom training loop".

Yes, you got my point, let me clarify your doubt. I meant here is to explain how to write a training loop by ourselves in the situations when we can't use fit, predict with dataset in Tensorflow. Like sometimes in situations when our dataset is semi-supervised learning based so we have to write a training loop by ourselves. Example: check here.

@sanchitvj I see, I got what you meant. That sounds like a nice illustration of the training loop.
Do read the guidelines for contributions and take a look at some of our previous projects so to understand how to organize and format your PR. Thanks !

@gimseng I've sent the PR. Can you please check if it is suitably organized for merging?


chore(thegraph-core): fix test case assertion error

This test failure is caused by the alloy's dependency change from hex to const-hex. This is addressed in #268


(#136) - fix gh-pages demo page

This fixes the sample page so that the queries actually work.

I'm going to self-+1 this because I think it's important to have a working demo page. Also, it doesn't affect the code itself.


The LSP server doesn't reply to shutdown

I'm trying to use taplo with eglot in emacs. When I shutdown the LSP server (with eglot-shutdown), it doesn't reply. Here's the relevant log:
[client-request] (id:3) Sat Apr 29 13:29:57 2023:
(:jsonrpc "2.0" :id 3 :method "shutdown" :params nil)

The LSP server doesn't reply to this request. I'm able to fix the problem with #401.

Duplicate of #354


Retrieve cards by ID

Add a way to retrieve cards by ID in the API.
Source : http://www.vekn.net/forum/v-tes-inventory-deckbuilding-programs/78553-vtes-db-announcement?start=12#99590

The simplest way was to allow IDs to be used alongside card names in the card/{name} endpoint, now card/{name_or_id}. This seems convenient.


1.18?

Is this mod needed on 1.18 as Mojang have fixed their API?

Mojang did not fix any API, you still should use it.


[Sonar] - Add animation when cancelling to smooth dismissal

Microsoft PowerToys version
0.49.1
Running as admin

[ ] Yes

Area(s) with issue?
Mouse Utilities
Steps to reproduce
Press Ctrl key twice. The mouse circle appears. Now press another key before the circle stops shrinking.
Other Software
No response

Thank you for the feedback.
The idea is that another key after activating "Find My Mouse" dismisses it.
The idea is that it's dismissed right away.
Perhaps it could be smoother.

Thank You for looking into this issue 😄

I see your point. When the activation/animation is finished, a click/press of a button reverses the animation. I think it would be fair/consistent if the mid-way cancellation also uses the animation. Low priority though :)