Successful notarization but app no longer launches

Hi,
I'm using electron-packager, which has integration with electron-notarize.
Currently packager still  ties to 0.1.1 but I overwrite it to work with 0.2.0 (0.2.1 is not yet on npm).
Now I can successfully package my app without errors. All tools to check the notarization return success on the .app file.
However, when notarization is used, the app dies immediately with an error on code signing. Packaging without notarization results in an app file that successfully launches (on Mojave), but I'm trying to add notarization for Catalina.
Any ideas where this could come from?
Thx

We experience the same stuff.
We are boiling it down to the entitlements list. We get different errors depending on what type of entitlements we use. This entitlements list make sense to us, but it still fails.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
    <true/>
    <key>com.apple.security.network.client</key>
    <true/>
    <key>com.apple.security.network.server</key>
    <true/>
    <key>com.apple.security.cs.allow-dyld-environment-variables</key>
    <true/>
    <key>com.apple.security.files.user-selected.read-only</key>
    <true/>
    <key>com.apple.security.files.user-selected.read-write</key>
    <true/>
    <key>ElectronTeamID</key>
    <string>**********</string>
    <key>com.apple.security.application-groups</key>
    <array>
      <string>string>**********.com.example.test</string>
    </array>
  </dict>
</plist>

After days of error searching we ended up with a successful build. We're not published on Apple Store, we distribute our DMG ourselfs.
package.json
devDependencies: {
   "electron": "^7.1.1",
   "electron-builder": "^22.1.0",
}
"build": {
   "afterSign": "notarize.js",
   "releaseInfo": {
     "releaseNotes": "Cool new version"
   },
   "publish": [
     {
       "provider": "generic",
       "url": "https://test.example.com/executables"
     }
   ],
   "mac": {
     "target": [
       "dmg"
     ],
     "gatekeeperAssess": false,
     "icon": "./build/renderer/icon.icns",
     "hardenedRuntime": true,
     "entitlements": ".mac_entitlements/entitlements.mac.plist",
     "entitlementsInherit": ".mac_entitlements/entitlements.mac.plist"
   },
   "appId": "com.example.test",
   "win": {
     "target": "nsis",
     "extraFiles": [
       "a_zip.zip"
     ],
     "icon": "./build/renderer/icon.icns"
   },
   "linux": {
     "category": "Utiliy",
     "target": "AppImage",
     "icon": "./build/renderer/icon.icns"
   },
   "files": [
     "*.js",
     "build"
   ]
 }
}

notarize.js
const notarize = require('electron-notarize').notarize;
const path = require('path');

const appBundleId = 'com.example.test';
const appPath = path.join(__dirname, 'dist/mac/Test app.app');
const appleApiKey = 'xxxxxxxxx';
const appleApiIssuer = 'xxx-xxx-xxx-xxx-xxxxxxx';
exports.default = async function notarizing(context) {
  const { electronPlatformName, appOutDir } = context;
  if (electronPlatformName !== 'darwin') {
    console.log('Not Darwin: Not Notarizing');
    return;
  } else {
    console.log('Is Darwin: Notarizing');

    return await notarize({
      appBundleId,
      appPath,
      appleApiKey,
      appleApiIssuer
    });
  }
};

entitlements.mac.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
    <true/>
    <key>com.apple.security.network.client</key>
    <true/>
    <key>com.apple.security.network.server</key>
    <true/>
    <key>com.apple.security.cs.allow-dyld-environment-variables</key>
    <true/>
    <key>com.apple.security.cs.allow-jit</key>
    <true/>
    <key>com.apple.security.files.user-selected.read-only</key>
    <true/>
    <key>com.apple.security.cs.disable-library-validation</key>
    <true/>
    <key>com.apple.security.files.user-selected.read-write</key>
    <true/>
  </dict>
</plist>

What really got it to work was:
<key>com.apple.security.cs.disable-library-validation</key><true/>

For me, @peturh's solution didn't work. My app is still not starting even though it was correctly notarized by Apple.

The com.apple.security.cs.disable-library-validation should not be needed anymore


Fix nss on macOS

Motivation for this change
Things done

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

[ ] 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 nixpkgs-review --run "nixpkgs-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)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Oh, I thought we fixed darwin in https://github.com/NixOS/nixpkgs/pull/93534

Oh, I thought we fixed darwin in #93534

That made it build - but the install name is relative to the executable without https://github.com/NixOS/nixpkgs/pull/94587/commits/d0468f86e8e0fa59f6ee8fa493d68abc61facd98.

Hmm, tough for people without a macOS to fix, if the builds themselves don't test such things.


fix(cloud_firestore): bubble exceptions

Description
Update Firestore to handle uncaught exceptions, same as https://github.com/FirebaseExtended/flutterfire/pull/3700 (issue https://github.com/FirebaseExtended/flutterfire/issues/3475)
Related Issues

https://github.com/FirebaseExtended/flutterfire/issues/3475

Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] If the pull request affects only one plugin, the PR title starts with the name of the plugin in brackets (e.g. [cloud_firestore])
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[ ] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[ ] I updated CHANGELOG.md to add a description of the change.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

@googlebot I consent.

FirebaseAuth

how do i resolve th FirebaseAuth


Unable to load a large Delta table

I am able to load smaller Delta tables but unable to load larger Delta table (4.2 billions rows consists of 1K Parquet files). I tried to bump up batch_size but it did not help. Currently in ROAPI, I do not see an option to pre-filter in the Arrow dataset level. No option to distribute the dataset in multiple nodes (distributed dataset). Any suggestions how to achieve this in ROAPI? Are these known issues with ROAPI? Please, let me know how to fix it. Thanks.

We currently only support datasets that fit into memory in a single machine. it's very possible that your data size exceeded the memory limit. The feature of applying partition filter when loading datasets should be pretty easy to add. So if you only need to serve a subset of the delta table and that subset fits into machine memory, then this would work for you.
Distributed sharding of large datasets is a different beast. It is something I am planning to add to ROAPI in the future, but it likely won't happen in the short term. I am happy to collaborate on such feature sooner if there is enough community interests :)

@houqp: Thanks for your clarification. In real world, handling large datasets in a single machine is impossible and it requires distributed sharding across multiple nodes. I believe, ROAPI has almost every features except this functionality. It will be great valuable to support this feature in ROAPI at the earliest. I am happy discuss and collaborate on this.
In the meantime, I will try to explore your suggestions. FYI, it throws exception if delta table has partitions. I need to dig this issue.

I totally agree with you @mmuru. ROAPI was initially created to serve small to midsize datasets. I wanted to validate the end user experience first before start to work on distributed serving. I am busy working on a new datafusion release lately, but I plan to get back to ROAPI after that.

FYI, it throws exception if delta table has partitions. I need to dig this issue.
This might be a bug in the delta-rs crates that I also happen to maintain. Do you mind sharing the error with me in a separate issue? I can help look into that as well.

this is now supported by setting use_memory_table to false.


[Documentation] Using Navigators

The instructions on Using Navigators at https://facebook.github.io/react-native/docs/using-navigators.html doesn't work and needs updating.

AppRegistry wasn't imported.
getDefaultProps was used on an ES6 class component.

@facebook-github-bot label Documentation

Thank you for reporting.
Are you up to send a pull request?

Sure np. Currently downloading my forked copy.

@facebook-github-bot label Icebox

@facebook-github-bot close

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/documentation-using-navigators
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

I found this broken link on page http://facebook.github.io/react-native/docs/network.html below (link to /docs/using-navigators.html)
But could not find a place where it can be fixed it to send a PR


There should be generic way to get library version (remote, local)

there should be generic way to get library version (ROBOT_LIBRARY_VERSION) over remote library. For local Python libraries there is  version way for python libraries that are local.
Would be good if we could have generic keyword 'Get Library Version' in BuiltIn that could be used against what ever library type (remote, local) and then support for this in remote interface.
My need is to to make check in test data side that library versions are new enough (and remote library connection is OK) for user convenience.

There are actually two separate proposals here:

Add a keyword to get the library version.
Make it possible to get the version of the remote library.

I don't like the first proposal too much because in the test data you shouldn't anymore care about library versions. Checking them is something that should be done already before execution. Also, the library version ought to be available via the library itself that you can get using Get Library Instance keyword.
The second proposal has much more merit because at the moment there's no generic way to get the library version over the remote connection. Adding such functionality means that we need enhancements to the Remote library interface itself. That means we need to be careful with the design and also that this is quite a lot of work.

Is this still relevant for you @sampeson?

Not at the moment. We implemented the keyword to (remote)library.

Not important. Closing. As I commented earlier, the second part of the proposal could be considered. Please submit a new issue if that becomes relevant again.


AI App - rendering of model list

The list of models when creating an AI App renders a bit strange IMO.  What I observe (see screenshots below) is that the list renders less well on large windows, but is easier to read on smaller windows when the list moves below the AI App Details.
I believe the AI Details should always on top of the model list to avoid that issue.
Large window:

Slightly smaller window to trigger the UI change:

Closing as it has been fixed in the meantime.


Failed to Install CIA

Failed to install CIA file.
Result code: 0xD8E0806A
Level Permanent(27)
Summary: Invalid Argument(7)
Module: Am(32)
Desc: Cert signature or hash check failed(106)
I have this issue with every CIA I attempt to install. Running soundhax version of ninjhax with a 11.1.0-34U 2DS. Any help on this issue please, I'd like to get FBI up and running for myself.
Thanks

You need a CFW in order to install non-legit CIAs

Is their a CFW for my current software version? I didn't even know what it was until now, I'm quite new to this

did some more research and it looks like I cant, I can wait as long as needed if they ever make something, I could downgrade but id also rather not brick my 2DS nor do i have any older versions of the 3ds software on hand from other devices, so looks like I'm stuck here wise

If I get something with 9.2 I would be able to get cfw, cia's and other decrytpers/game dumpers then correct?

Issue tracker is not a discussion forum. If you have any questions regarding to CFW, please post it elsewhere (e.g. gbatemp)


ci(typos): ignore .user.css files

I'll do a follow up PR to update the Chess.com generation script (I believe new versions of catppuccin/python use en-US spellings) and we can remove that as well.


(112778892) Unlocalized decimal separators

We regressed this behavior in 110211953; Now IntegerFormatStyle (and all other number format styles) and Date.FormatStyle ignores user's region settings if it uses the current locale.
The regression was caused by us changing to use locale.identifierCapturingPreferences for the identifier, which includes "Country" code from global preferences as the extra "rg" keyword. I misunderstood what that represents -- It has nothing to do with the Region setting in System Preferences. We should ignore it internally.
I'm very inclined to remove the reference to that key altogether, but let's keep it for compatibility reason for now.

@swift-ci please test


MSBuild v15.0 & Registry

To be confirmed

MSBuild 15.0 does not use registry to get information (https://docs.microsoft.com/en-us/visualstudio/msbuild/what-s-new-in-msbuild-15-0)
Why point to registry in MSBuild.config?

To fix AspnetMergePath error:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\Web\Transform\Microsoft.Web.Publishing.AspNetCompileMerge.targets(132,5): error : Can't find the valid AspnetMergePath
We change all path in MSBuild.config to be able use MSBuild 15.0 in our build agent:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe.config
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\amd64\MSBuild.exe.config

        <!-- <property name="FrameworkSDKRoot" value="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.6.1@InstallationFolder)" /> -->
        <property name="FrameworkSDKRoot" value="C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\" />
...
        <!-- <property name="SDK35ToolsPath" value="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx35Tools-x86@InstallationFolder)" /> -->
        <property name="SDK35ToolsPath" value="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\" />
        <!-- <property name="SDK40ToolsPath" value="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.6.1\WinSDK-NetFx40Tools-x86@InstallationFolder)" /> -->
        <property name="SDK40ToolsPath" value="C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\" />
        <!-- <property name="WindowsSDK80Path" value="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.1@InstallationFolder)" /> -->
        <property name="WindowsSDK80Path" value="C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\" />

I'm not sure about the ASP error you're getting, would need more information. But with regards to the registry, the Toolset information/definition is no longer read from there. Previously all the data for those property names and values came from the registry. In this case only their value is still coming from the registry. And that's fine for things like global SDK paths where only a single instance can be installed on the machine and the established pattern to find that location is via the registry. We moved Toolset information because there can now be multiple copies of MSBuild installed that all have different extensions installed from Visual Studio.
Hope that help explain the reasoning.

I'm having a similar issue, except the SDK40ToolsPath is used, it just points to a registry key that doesn't exist in either of my machines (Windows 10 and Windows Server 2012 R2)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\...
Under the above registry key I have only:
Windows\v7.1A
Windows\v8.0A
Windows\v8.1A

I have installed the Windows 10 SDK but it didn't help anything.

This issue seems like it has been addressed.


multi monitor + multi audio device reconnection

name: device reconnection
about: submit changes to the project
title: "[pr] "
labels: ''
assignees: ''

description
This PR adds functionality to handle disconnection and reconnection of recording devices.
related issue: #694
type of change

[ ] bug fix
[x] new feature
[ ] breaking change
[ ] documentation update

how to test

Audio

Start screenpipe, selecting an audio device that is not plugged in.
Plug the device in once screenpipe has started.
Test Transcription.
Disconnect device.
Reconnect device.
Test Transcription again.

Screen

Start screenpipe, selecting a monitor that is not connected.
Repeat the same steps as audio, just with your monitor.

if relevant add screenshots or screen captures to prove that this PR works to save us time.
checklist

[x] MOST IMPORTANT: this PR will require less than 30 min to review, merge, and release to production and not crash in the hand of thousands of users
[x] i have read the CONTRIBUTING.md file
[x] i have updated the documentation if necessary
[x] my changes generate no new warnings
[x] i have added tests that prove my fix is effective or that my feature works

additional notes
any other relevant information about the pr.
/claim #694

...
2024-11-19T06:06:46.673975Z  INFO screenpipe_audio::core: starting continuous recording for MacBook Pro Microphone (input) (10s segments)
...
2024-11-19T06:06:46.713398Z  WARN screenpipe_server::core: Audio device not found: Zone Wired
...
2024-11-19T06:06:55.809971Z  INFO screenpipe_audio::core: starting continuous recording for Zone Wired (input) (10s segments)
...
2024-11-19T06:07:10.117651Z  INFO screenpipe_server::core: device Zone Wired (input) received transcription Some(" Yeah, so I'm just going to subscribe one more time. I really don't even need to see if it listens to me. I just want to check some stuff.\n")
...
2024-11-19T06:07:24.620032Z  WARN screenpipe_audio::core: audio device Zone Wired (input) disconnected. stopping recording.
...
2024-11-19T06:07:53.691219Z  INFO screenpipe_audio::core: starting continuous recording for Zone Wired (input) (10s segments)
...
2024-11-19T06:08:07.237800Z  INFO screenpipe_server::core: device Zone Wired (input) received transcription Some(" Alright, let's see what's going on. Am I recording\n")
...
2024-11-19T06:08:16.727032Z  WARN screenpipe_audio::core: audio device Zone Wired (input) disconnected. stopping recording.

idk how to test, basically transcription does not work with my Sony WH-1000XM4 headphone
i tried:

use the input and output

showing "preparing segment" but no transcription for some reason
few problems i noticed on the way unrelated to this PR:

iphone recording but does not work until you unlock the iphone
when selecting headphone as audio input it will disable noise cancellation (Sony WH-1000XM4) also had this on airpod

I will fix the logging. It's likely that you didn't meet the speech ratio threshold, but I will make sure.

Ok I'm going to test with AirPods in about an hour

2024-11-19T22:51:25.105371Z  INFO screenpipe_audio::stt: device: iPhone Microphone (input), speech ratio: 0.9402985, min_speech_ratio: 0.2, audio_frames: 107200, speech_frames: 63
2024-11-19T22:51:26.407882Z  INFO screenpipe_audio::multilingual: detected language: "en"
2024-11-19T22:51:28.257151Z  INFO screenpipe_audio::whisper:   0.0s-0.0s:
2024-11-19T22:51:28.257377Z  INFO screenpipe_audio::whisper:   0.0s-6.6s:  It seems like somebody has to update their permissions because my iPhone does not need me to unlock it before I record.
2024-11-19T22:51:28.470457Z  INFO screenpipe_server::core: device iPhone Microphone (input) received transcription Some(" It seems like somebody has to update their permissions because my iPhone does not need me to unlock it before I record.\n")

I am unable to replicate any of these issues. I don't think they are related to this PR. I updates logging to show speech frames and ratio. I also removed logging for preparing segments and resampling.

/approve


DBZ-3559 Support MySQL JSON functions

https://issues.redhat.com/browse/DBZ-3559

Upstream PR - https://github.com/antlr/grammars-v4/pull/2217

Thx, @jpechane!


Extend a problem by stacktrace, too.

Zalando problem supports stacktraces as part of an API "problem" response, see https://github.com/zalando/problem#stack-traces-and-causal-chains
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 400,
  "stacktrace": [
    "org.example.Example.execute(Example.java:17)",
    "org.example.Example.main(Example.java:11)"
  ]
}

Feature request
This extension provides stacktraces, too
Additional context

Maybe a good starting point is, to show the stacktrace in Quarkus dev or test launch mode (see https://quarkus.io/guides/lifecycle#launch-modes)
But "showing stacktraces" should be configurable probably
Keep "native image" in mind
Related https://github.com/cloudstark/quarkus-zalando-problem-extension/pull/35
Some work has been done already, see https://github.com/SchulteMarkus/quarkus-problem-extension/commit/251a8cb67b84825e5504de978cd67aef97a11bf4

Thx. This should definitely be made configurable. Personally, I don't want to present internal exceptions to the user. But there may be other use cases.  Or like you have implemented as a "devmode" feature.

@CrystalMethod You mentioned https://github.com/SchulteMarkus/quarkus-problem-extension/commit/251a8cb67b84825e5504de978cd67aef97a11bf4 cannot be used for time being, as because of native image there has additional work to be done. I think 251a8c would be a good start. What additional work has to be done?

I had a closer look at your solution for stacktraces. Without having actually tried it in native mode, I can imagine that this solution also works in native mode. I was referring to the use of the solution described here to publish stacktraces. Zalando is using SPI/Service Loader and this wan't work in native mode out of the box.

Ah I see.
So maybe integrate https://github.com/SchulteMarkus/quarkus-problem-extension/commit/251a8cb67b84825e5504de978cd67aef97a11bf4 into this extension? And maybe a follow up issue for making this behavior configurable.

@CrystalMethod ?


feat: 🎸 Expose isToolActiveForElement

Renamed isToolActive to isToolActiveForElement and expose it as top
level API.

:tada: This PR is included in version 4.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

What do you think?
function isToolModeForElement(element, toolName, mode) {
	const tool = getToolForElement(element, toolName);

	return tool.mode === mode;
}

@jlopes90, is this something you think you would use? Are there other convenience methods you feel like we're missing?

Also, almost always better to discuss in a new issue. It's hard to keep track of topics like this on anything closed/merged.


Ignore vendor directory while scanning golang code

Which issue this PR addresses:

Fixes
What this PR does / why we need it:

Test plan for issue:

Is there any documentation that needs to be updated for this PR?

No longer needed as we removed these unused templates: https://github.com/Azure/ARO-RP/pull/3108/files
Please do re-open if I've misunderstood


WSL not update e not recognized

Version
Microsoft Windows [Version 10.0.19044.1889]
WSL Version

[ ] WSL 2
[X] WSL 1

Kernel Version
<IP_ADDRESS>
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
i'm not make update in wsl and cannot apply comands of wsl.
PS C:\WINDOWS\system32> wsl --install -d Ubuntu-20.04
Ubuntu 20.04 LTS is already installed.
Launching Ubuntu 20.04 LTS...
PS C:\WINDOWS\system32> wsl --list --verbose
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
PS C:\WINDOWS\system32>
Expected Behavior
I want it to work the same https://docs.microsoft.com/pt-br/windows/wsl/basic-commands#install-a-specific-linux-distribution
Actual Behavior
not recognized wsl and not update for version 2
Diagnostic Logs
PS C:\WINDOWS\system32> wsl --install -d Ubuntu-20.04
Ubuntu 20.04 LTS is already installed.
Launching Ubuntu 20.04 LTS...
PS C:\WINDOWS\system32> wsl --list --verbose
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
PS C:\WINDOWS\system32>

Did you perhaps run wsl --install -d Ubuntu-20.04 under an Administrator (or different) account?
I would try:

Checking Add or Remove Programs to see if Ubuntu shows installed there.  If so, uninstall it.  I'm assuming that you have no data inside Ubuntu, since it sounds like you haven't been able to launch it yet, right?
Once uninstalled, reboot
Open PowerShell, as your regular user (not an administrator account) and try wsl --install -d Ubuntu-20.04 again.

Note that your issue above says that the Distro version is 22.04, but then talk about 20.04.  Do you have both installed?  This is okay, I just want to make sure readers of the issue have a clear picture what you're working with.


profile page created

commit: 8fa94c5b7892f579fe60c593a9684368b2155055

profile settings page is created. Get the profile info from backend. I Couldn't figure out the photo upload

photo upload is fixed with commit : 9d160a418291e4f9e0f386dd48ebb71d50df59c0


Support for TMP

It would be useful to add support for Text Mesh Pro, as this is the recommended method for displaying text in Unity. Text seems a bit blurry at the moment.

I don't have any experience in this field. What should I do about it? Is there any information on how to support TMP?

Thanks for your comment. I think there are probably two pathways. 1) Drop support for the the legacy Text system, or 2) Create a hybrid that supports both. Unity is now shipping by default with Text Mesh Pro, and I don't think there is any drawback using just TMP. Blog post about TMP. Otherwise you can have a toggle like in the image below when you support either platform.
These are from the plugin Doozy.

Thank you for your advice. It helps me a lot.
TextMeshPro is already supported in XCharts 2.0, but has not yet been released.
XCharts 2.0 has a lot of work to do but is almost done.

@monitor1394 This is great! Is there an ETA for 2.0?

I try my best to release XCharts 2.0 before The New Year's Day of 2021.

The master branch is XCharts2.0 now. The release version will be released in these days.

The master branch is XCharts2.0 now. The release version will be released in these days.


Rubinious does not build on OSX

rbenv install rbx-2.2.10
/usr/local/bin/ruby-build: line 95: 10.9: syntax error: invalid arithmetic operator (error token is ".9")
/usr/local/bin/ruby-build: line 791: [: : integer expression expected
Downloading rubinius-2.2.10.tar.bz2...
-> http://dqw8nmjcqpjn7.cloudfront.net/2a3e6b71f27073b8d83b9592b05523af70bc147ddcd0673bffae55b4167c9d81
Installing rubinius-2.2.10...

BUILD FAILED (OS X 10.9.5 using ruby-build 20141028)

Inspect or clean up the working tree at /var/folders/vz/mg2g4g451jxcrt628s4sxw140000gn/T/ruby-build.20141030103100.10533
Results logged to /var/folders/vz/mg2g4g451jxcrt628s4sxw140000gn/T/ruby-build.20141030103100.10533.log

Last 10 log lines:
Accept-Ranges: bytes
Server: AmazonS3
Age: 622
X-Cache: Hit from cloudfront
Via: 1.1 5c16c5e9b3f9e13e81da7a4e2728911d.cloudfront.net (CloudFront)
X-Amz-Cf-Id: jG56Qfv_S-79Gs5JZj_VJveu3JWb39Ot0EmfYDcehtu2R263d3WqWw==

/var/folders/vz/mg2g4g451jxcrt628s4sxw140000gn/T/ruby-build.20141030103100.10533/rubinius-2.2.10 /var/folders/vz/mg2g4g451jxcrt628s4sxw140000gn/T/ruby-build.20141030103100.10533 ~/work/web
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory

I just ran into this issue myself trying to build rbx-2.5.8 on OSX 10.10.4 with rbenv installed via homebrew. Is there a known fix for this?

@chrchr @brianjlandau Sorry I haven't followed up on this. The problem might be some extra RubyGems configuration that you have on your system. Could you both check your ~/.gemrc for me? Thanks

---
:benchmark: false
gem: --no-ri --no-rdoc
:update_sources: true
gemcutter_key: MY_KEY_VALUE
:backtrace: true
:sources:
- http://rubygems.org
:bulk_threshold: 5000
:verbose: true

@brianjlandau Thanks. It checks out; nothing weird there.
Can you tell me the output of:
RBENV_VERSION=system GEM_HOME="${TMPDIR}/.gem" gem env

Closing since there were many newer releases of Rubinius since and there weren't reports of anything similar in the meantime. @chrchr, I hope the original problem does not affect you anymore with newer Rubinius releases. Please reopen if it does.

I don't think this issue is resolved. I'm running into this when trying to install rbx-3.39 on El Capitan:
mbp:repos svr$ rbenv install rbx-3.39

Downloading rubinius-3.39.tar.bz2...
-> https://dqw8nmjcqpjn7.cloudfront.net/f6f8132b44eadb4c07f8b26af16ce0a5470309ada33ef6f20ab76770a44193e0
Installing rubinius-3.39...

BUILD FAILED (OS X 10.11.4 using ruby-build 20160602-5-g3f6d068)

Inspect or clean up the working tree at /var/folders/hf/0mtvkj9x2bvfgn3jmpzj4x480000gp/T/ruby-build.20160610124620.92651
Results logged to /var/folders/hf/0mtvkj9x2bvfgn3jmpzj4x480000gp/T/ruby-build.20160610124620.92651.log

Last 10 log lines:
Accept-Ranges: bytes
Server: AmazonS3
Age: 547
X-Cache: Hit from cloudfront
Via: 1.1 1e253176e0a6f40ca1565ea999519daf.cloudfront.net (CloudFront)
X-Amz-Cf-Id: yhk9fIBHFvl1kpfEBTSzgVdXbt7Vw6X8Vg1cb5EWs7aXHj0ABQXNmQ==

/var/folders/hf/0mtvkj9x2bvfgn3jmpzj4x480000gp/T/ruby-build.20160610124620.92651/rubinius-3.39 /var/folders/hf/0mtvkj9x2bvfgn3jmpzj4x480000gp/T/ruby-build.20160610124620.92651 ~/repos
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

Here's the gem env:
mbp:repos svr$ RBENV_VERSION=system GEM_HOME="${TMPDIR}/.gem" gem env
RubyGems Environment:
  - RUBYGEMS VERSION: <IP_ADDRESS>
  - RUBY VERSION: 2.0.0 (2015-12-16 patchlevel 648) [universal.x86_64-darwin15]
  - INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.0.0
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-darwin-15
  - GEM PATHS:
     - /Library/Ruby/Gems/2.0.0
     - /Users/svr/.gem/ruby/2.0.0
     - /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/

I don't have a $HOME/.gemrc and I've installed rbenv just by cloning it in my home directory per the github instructions (i.e. not via homebrew).
Any idea as to what's going on?


mmdetection v1.0.0

How to download mmdetection v1.0.0？？

https://github.com/open-mmlab/mmdetection/releases/tag/v1.0.0

git checkout v1.0.0


Standardize format of changelog across repos

@miq-bot add_label documentation

@JPrause I don't know that the way I've written it now is actually supported by markdown.
Also, it seems we don't have a "documentation" label for this project.

Thanks @dberg96
Gotcha,....perhaps we can work this out when you're here.
There are other similar repos, so it'd be helpful.

I'd set the milestone, but there don't appear to be any set.


Fix compilation on VS2012

Simple matter of a few #defines and a missing .c file. Fixes #125.

Messed up a commit


Update to use the latest site.

Summary
Lets get terra-ui up and running!!
This PR:

Adds terra-core, framework and clinical components
Adds translations
Updates/Adds the Home and ReadMe sections

Resolves #57

Note:

When https://github.com/cerner/terra-site/pull/17 is merged, when navigation to a repository's component list, the repo's homepage will display before a component is selected.
When https://github.com/cerner/terra-site/pull/21 is merged, the github logo should display with a link to all the terra repos

@bjankord @mjhenkes @ryanthemanuel @JakeLaCombe This PR is ready for review. This has been updated to have the newest translations, use React 16 and the latest version of site.

On second thought, maybe we should wait for the first terra-dev-site cut?

We should get PR deploys setup for this repo


Auth check before call original resolver ?

I think we should check Auth before call original resolver? in some case like mutation. or resolver access user info in context object.

@giautm I am thinking about this actually, having a way to specify easily the resolvers chain order.
Because in some case (like auth / roles) it's more efficient to check before the field / query resolver is resolved.

@alexisgahon can you elaborate a bit more regarding the chain order?

@chenkie The way attachDirectives is implemented only allow directives resolver to be executed before the field resolver.
What it does:
[Field Resolver (listArticles)] -> [Directive resolver (isAuthenticated)] -> Next
What I try to achieve
[Directive resolver (_isAuthenticated)] -> [Field Resolver (listArticles] -> Next
Maybe use a prefix on directive name to know how to chain resolvers.
It's just an idea atm.

@alexisgahon I think you have it reversed, it should say:
What it does:
[Directive resolver (_isAuthenticated)] -> [Field Resolver (listArticles] -> Next
What I try to achieve
[Field Resolver (listArticles)] -> [Directive resolver (isAuthenticated)] -> Next

Hi, i edited attachDirectives. The first arg of directive resolver is a function that call original resolver with original args. In any Field resolver, we can call first or after check login, then return the result. Please checkout:
// Credit: agonbina https://github.com/apollographql/graphql-tools/issues/212
const attachDirectives = schema => {
  forEachField(schema, field => {
    const directives = field.astNode.directives;
    directives.forEach(directive => {
      const directiveName = directive.name.value;
      const resolver = directiveResolvers[directiveName];

      if (resolver) {
        const originalResolver = field.resolve;
        const Directive = schema.getDirective(directiveName);
        const args = getArgumentValues(Directive, directive);

        field.resolve = function() {
          const originalArgs = arguments;
          const wrap = () => originalResolver.call(field, ...originalArgs);

          const [source, _, context, info] = orignalArgs;
          return resolver(wrap, source, args, context, info)
        };
      }
    });
  });
};

directiveResolvers:
const directiveResolvers = {
  isAuthenticated(orignalResolver, source, args, context) {
    const token = context.headers.authorization;
    if (!token) {
      throw new AuthorizationError({
        message: 'You must supply a JWT for authorization!'
      });
    }
    try {
      const decoded = jwt.verify(
        token.replace('Bearer ', ''),
        process.env.JWT_SECRET
      );
      return orignalResolver();
    } catch (err) {
      throw new AuthorizationError({
        message: 'You are not authorized.'
      });
    }
  },
};

Thank you, great!
now this is typescript and not compatible with the current project. But I too use TS, thank you

What would the graphql declaration for upperCase look like?
directive @isAuthenticated on QUERY | FIELD
directive @hasScope(scope: [String]) on QUERY | FIELD
directive @uppcase??????

directive @uppercase on FIELD

Current solution is work for directive on field only. Other locations like QUERY | FRAGMENT | INLINE_FRAGMENT is not supported.

I have a PR right here: https://github.com/apollographql/graphql-tools/pull/518 to bring it to graphql-tools, so typescript is not a problem for any project.

yep, thank you


perfetto collection issue with configuration.

when i use  command below:
adb push config.pbtx /data/local/tmp/config.pbtx
adb shell 'cat /data/local/tmp/config.pbtx | perfetto --txt -c - -o /data/misc/perfetto-traces/trace.perfetto-trace'
Some times  i will got 0 size of file trace.perfetto-trace if duration_ms: is set to 50000 (seems 40000) works fine. what is the reason? see the config.pbtx below:
buffers: {
size_kb: 1522240
fill_policy: DISCARD
}
buffers: {
size_kb: 4096
fill_policy: DISCARD
}
data_sources: {
config {
name: "android.log"
android_log_config {
}
}
}
data_sources: {
config {
name: "android.packages_list"
target_buffer: 1
}
}
data_sources: {
config {
name: "linux.process_stats"
target_buffer: 1
process_stats_config {
scan_all_processes_on_start: true
}
}
}
data_sources: {
config {
name: "linux.perf"
perf_event_config {
timebase {
frequency: 4000
timestamp_clock: PERF_CLOCK_BOOTTIME
}
callstack_sampling {
}
}
}
}
data_sources: {
config {
name: "linux.sys_stats"
sys_stats_config {
stat_period_ms: 1000
stat_counters: STAT_CPU_TIMES
stat_counters: STAT_FORK_COUNT
cpufreq_period_ms: 1000
}
}
}
data_sources: {
config {
name: "linux.ftrace"
ftrace_config {
ftrace_events: "sched/sched_switch"
ftrace_events: "power/suspend_resume"
ftrace_events: "sched/sched_wakeup"
ftrace_events: "sched/sched_wakeup_new"
ftrace_events: "sched/sched_waking"
ftrace_events: "power/cpu_frequency"
ftrace_events: "power/cpu_idle"
ftrace_events: "raw_syscalls/sys_enter"
ftrace_events: "raw_syscalls/sys_exit"
ftrace_events: "sched/sched_process_exit"
ftrace_events: "sched/sched_process_free"
ftrace_events: "task/task_newtask"
ftrace_events: "task/task_rename"
}
}
}
duration_ms: 40000

size_kb: 1522240 is allocating a buffer of 1.5GB. It's very likely that you are killing the system by just writing into too much memory: Perfetto by default keeps data in RAM unless you use long trace mode to stream the data to disk.
In summary, you probably need to add:
write_into_file: true
file_write_period_ms: 5000

It's very very strongly recommended that you use RING_BUFFER configs for write_into_file traces: using DISCARD buffer is not well defined.

using  DISCARD can not see callstack sample

I responded to this at https://github.com/google/perfetto/issues/863

WHERE TO ADD:write_into_file: true
file_write_period_ms: 5000
THANKS
On Tuesday, August 20, 2024 at 03:16:51 PM PDT, Lalit Maganti<EMAIL_ADDRESS>wrote:

size_kb: 1522240 is allocating a buffer of 1.5GB. It's very likely that you are killing the system by just writing into too much memory: Perfetto by default keeps data in RAM unless you use long trace mode to stream the data to disk.
In summary, you probably need to add:
write_into_file: true
file_write_period_ms: 5000
It's very very strongly recommended that you use RING_BUFFER configs for write_into_file traces: using DISCARD buffer is not well defined.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

write_into_file: true
file_write_period_ms: 5000

Is just added at the top level of your trace config.

write_into_file: true
file_write_period_ms: 5000
buffers: {
size_kb: 1522240
fill_policy: DISCARD
}
buffers: {
size_kb: 4096
fill_policy: DISCARD
}
data_sources: {
config {
name: "android.log"
android_log_config {
}
}
}
data_sources: {
config {
name: "android.surfaceflinger.frametimeline"
}
}
data_sources: {
config {
name: "android.packages_list"
target_buffer: 1
}
}
data_sources: {
config {
name: "linux.process_stats"
target_buffer: 1
process_stats_config {
scan_all_processes_on_start: true
}
}
}
data_sources: {
config {
name: "linux.perf"
perf_event_config {
timebase {
frequency: 4000
}
callstack_sampling {
write_into_file: true
file_write_period_ms: 5000
}
}
}
}
data_sources: {
config {
name: "linux.sys_stats"
sys_stats_config {
stat_period_ms: 1000
stat_counters: STAT_CPU_TIMES
stat_counters: STAT_FORK_COUNT
}
}
}
data_sources: {
config {
name: "linux.ftrace"
ftrace_config {
ftrace_events: "sched/sched_switch"
ftrace_events: "power/suspend_resume"
ftrace_events: "sched/sched_wakeup"
ftrace_events: "sched/sched_wakeup_new"
ftrace_events: "sched/sched_waking"
ftrace_events: "power/cpu_frequency"
ftrace_events: "power/cpu_idle"
ftrace_events: "raw_syscalls/sys_enter"
ftrace_events: "raw_syscalls/sys_exit"
ftrace_events: "sched/sched_process_exit"
ftrace_events: "sched/sched_process_free"
ftrace_events: "task/task_newtask"
ftrace_events: "task/task_rename"
}
}
}
duration_ms: 40000
RIGHT?

Yes.

-:49:17 error: No field named "write_into_file" in proto CallstackSampling
write_into_file: true
^~~~~~~~~~~~~~~
-:50:17 error: No field named "file_write_period_ms" in proto CallstackSampling
file_write_period_ms: 5000
^~~~~~~~~~~~~~~~~~~~

is it only support on android14? i am working on android 12?

Not sure why you added to both the top level and in callstack_sampling: it's only valid at the top level. Please remove the field from the callstack_sampling field.

sorry! mistake. working now. if i use RING_BUFFER , i cannot see callstack sample.  size_kb: 1522240 work for may emulator


Add float32 and float64 support

Added f32 and f64 support
Added tests for f32 and f64
fixed small typos

Oh my typos :sob:
Thank you for your contribution


Small change in wording of science track blurb

Suggested by @russel

You put digital humanities scholar in, the conference now owes me £38 :)
Anyway what's the difference between digital humanist and digital humanities scholar? They keep changing the name, I still like computing in the humanities :)

Feedback from @russel was that it sounded too much like the other sort of Humanist.

Well all the early humanists were Christians, just recently after Lenin and
the other communists and idiots, people think humanism is about secularism
rather than a commitment to learning the truth without prejudice.
On 6 July 2015 at 01:18, Sarah Mount<EMAIL_ADDRESS>wrote:

Feedback from @russel https://github.com/russel was that it sounded too
much like the other sort of Humanist.
—
Reply to this email directly or view it on GitHub
https://github.com/PyconUK/pyconuk.org/pull/57#issuecomment-118682210.

Well, it was a mere accident of history that the far-left became secular. Feuerbach has a lot to answer for.

Well all those Europeans, what can we do? I think you should consider
renaming it to the research track now, since digital humanists might hide
under a duvet of insecurity by the word science.
On a more serious note, I think it would actually describe better what you
have felt your way towards.
On 6 July 2015 at 01:23, Sarah Mount<EMAIL_ADDRESS>wrote:

Well, it was a mere accident of history that the far-left became secular.
Feuerbach has a lot to answer for.
—
Reply to this email directly or view it on GitHub
https://github.com/PyconUK/pyconuk.org/pull/57#issuecomment-118682371.

It would, but it is a bit late now to change the name. I have made this Issue 1 on the 2016 planning repo:
https://github.com/PyconUK/planning2016/issues/1

I personally don't consider it too late to change the title as we are still
a few months away and anyone you reached with the science label, well you
still reached.
However, having thought about it for 2 mins, I am not sure the single word
research is the best title either, as it might imply that it is about CS
research into Python, rather than using Python for Research... It is not
easy.
On 6 July 2015 at 01:29, Sarah Mount<EMAIL_ADDRESS>wrote:

It would, but it is a bit late now to change the name. I have made this
Issue 1 on the 2016 planning repo:
PyconUK/planning2016#1 https://github.com/PyconUK/planning2016/issues/1
—
Reply to this email directly or view it on GitHub
https://github.com/PyconUK/pyconuk.org/pull/57#issuecomment-118682567.

I think it would be confusing to change the name now as we have already sent out blog posts, etc. Let's take some time to think it over and come up with something really good for next year. In the mean time, do try and entice your friends from the humanities over...

I'll see what I can do :)
On 6 July 2015 at 01:35, Sarah Mount<EMAIL_ADDRESS>wrote:

I think it would be confusing to change the name now as we have already
sent out blog posts, etc. Let's take some time to think it over and come up
with something really good for next year. In the mean time, do try and
entice your friends from the humanities over...
—
Reply to this email directly or view it on GitHub
https://github.com/PyconUK/pyconuk.org/pull/57#issuecomment-118682768.


wizard-math model gives infinite answers

When asked a strictly math question it does fine. However when asked "what is your knowledge" the answer is
The answer is:  Good.

The answer is:  Good.
].join(',')

].join(','.split( ''."\n"')))
].join(','.split( ''."\n"')))
].join(','.split( ''."\n"')))
].join(','^C
I don't know if you guys can do anything about this or not. Just bringing it to your attention.

which specific model are you seeing this on?

showing ollama list, and then the run with the error
ollama list
NAME                           	ID          	SIZE  	MODIFIED
DeepSeek-Coder:latest          	6aff314e01c3	4.1 GB	2 weeks ago
Guido:latest                   	1bf7b3840a53	7.4 GB	3 weeks ago
Jim:latest                     	2c7476fb37de	3.8 GB	3 weeks ago
Mario:latest                   	902e3a8e5ed7	3.8 GB	3 weeks ago
MrT:latest                     	7c19b0847fb4	3.8 GB	3 weeks ago
Polly:latest                   	19982222ada1	4.1 GB	3 weeks ago
Sally:latest                   	c8b11f28f2cc	4.1 GB	13 days ago
Ted:latest                     	aebf42abd326	7.4 GB	3 weeks ago
alfred:latest                  	e46325710c52	23 GB 	12 days ago
codebooga:latest               	05b83c5673dc	19 GB 	3 weeks ago
codellama:latest               	8fdf8f752f6e	3.8 GB	7 days ago
codeup:latest                  	54289661f7a9	7.4 GB	3 weeks ago
deepseek-coder:33b             	2941d6ab92f3	18 GB 	12 days ago
deepseek-coder:latest          	140a485970a6	776 MB	13 hours ago
everythinglm:latest            	bf6610a21b1e	7.4 GB	3 weeks ago
falcon:180b                    	e2bc879d7cee	101 GB	2 weeks ago
falcon:latest                  	4280f7257e73	4.2 GB	3 weeks ago
llama2:latest                  	fe938a131f40	3.8 GB	3 weeks ago
llama2-uncensored:latest       	44040b922233	3.8 GB	13 days ago
magicoder:latest               	8007de06f5d9	3.8 GB	17 hours ago
meditron:latest                	ad11a6250f54	3.8 GB	17 hours ago
medllama2:latest               	a53737ec0c72	3.8 GB	3 weeks ago
mistral:7b                     	d364aa8d131e	4.1 GB	3 weeks ago
mistral:instruct               	8aa307f73b26	4.1 GB	8 weeks ago
mistral:latest                 	8aa307f73b26	4.1 GB	8 weeks ago
mistral:text                   	3e3d0b9dcb6a	4.1 GB	3 weeks ago
mistrallite:latest             	5393d4f5f262	4.1 GB	3 weeks ago
neural-chat:latest             	f4c6a8e532e8	4.1 GB	15 hours ago
nexusraven:latest              	336957c1d527	7.4 GB	3 weeks ago
openhermes2.5-mistral:latest   	ca4cd4e8a562	4.1 GB	3 weeks ago
orca2:13b                      	a8dcfac3ac32	7.4 GB	12 days ago
orca2:latest                   	ea98cc422de3	3.8 GB	13 hours ago
phind-codellama:latest         	64cce35068a2	19 GB 	3 weeks ago
samantha-mistral:latest        	f7c8c9be1da0	4.1 GB	3 weeks ago
sqlcoder:latest                	77ac14348387	4.1 GB	3 weeks ago
starcoder:latest               	847e5a7aa26f	1.8 GB	3 weeks ago
starling-lm:latest             	0eab7e16513a	4.1 GB	8 days ago
wizard-math:70b                	78a12f5c753b	38 GB 	3 weeks ago
wizard-math:latest             	9c8843a9e4f1	3.8 GB	12 hours ago
wizard-vicuna-uncensored:latest	72fc3c2b99dc	3.8 GB	3 weeks ago
xwinlm:latest                  	0fa68068d970	3.8 GB	3 weeks ago
zephyr:latest                  	1629f2a8a495	4.1 GB	3 weeks ago

chris@FORGE:~/ai/aiprojects/ollama/autogenberman$ ollama run wizard-math
>>> what is your knowledge

The answer is: 20.

</s>

</s>

</s>

</s>

^C to exit

Thanks for bringing this to our attention, we will get this fixed in the model. In the meantime you can set the stop parameter manually as a workaround if you'd like. Here is how to do that:
$ ollama run wizard-math
>>> /set parameter stop </s>
Set parameter 'stop' to '</s>'

>>> what is 2+2

While your at it, https://github.com/jmorganca/ollama/issues/1403 is the same type of bug for deepseek-coder.

I believe this got fixed a while ago and we just lost track of the issue.
% ./ollama run wizard-math
>>> what is your knowledge

First, we need to understand that "knowledge" is a complex and abstract concept. It is not something that can be easily measured or quantified like a physical object. However, there are several ways to estimate or measure knowledge, such as
through tests, quizzes, surveys, or other methods.

Second, without any specific context or question, it is impossible to provide a precise answer to "what is your knowledge." Knowledge varies greatly depending on the individual and the subject matter. Some people may have extensive knowledge
in one area but little knowledge in another.

Third, if we were to attempt to measure my knowledge in a specific area, such as computer programming, we would need to create a test or quiz that assesses my understanding of various concepts and skills related to computer programming. This could include multiple-choice questions, practical exercises, or other tasks that evaluate my ability to apply my knowledge in a meaningful way.

Finally, after creating and administering the test or quiz, we could then provide a numerical score or percentage to represent my level of knowledge in computer programming. However, without any specific context or question, it is impossible to provide a precise answer to "what is your knowledge."

In conclusion, knowledge is a complex and abstract concept that cannot be easily measured or quantified like a physical object. Any attempt to measure knowledge would require a specific context, question, and method of assessment. Without this information, it is impossible to provide a precise answer to "what is your knowledge."

The answer is: 50.

I'm not sure why the answer isn't 42, but it got kinda close. Make sure you've got the latest version of both the model and ollama and it should work.


Away status issue

My Setup

Operating System: OSX 10.14.5

App Version: 2.15.3

Installation type: app store

[x ] I have tested with the latest version

[ x] I can simulate the issue easily

Description
Away status (set to Enable Auto Away: True, Idle Time Limit: 60) constantly triggered if rocketchat window out of the focus (i.e. behind other windows). It seems to detect the system events somehow, but going back to away almost immediately after this. I.e. on activity in other windows status switching to green and back to yellow.
Current Behavior
see above
Expected Behavior
I'd expect it to work with system-level idle, and see no good reason why away status set due to inactivity in rocketchat

ref https://github.com/RocketChat/Rocket.Chat.Electron/issues/1260


Create integration checklist

Create a checklist for integrators that details the functionality and qa checks that should be completed for the different FIO features.

Make sure the multicast setup is on checklist.


Change "Contribute to requests" to "Support Requests" in the website header

@JosephMcArthur - We decided on support, right?

Sure. Have also changed download to sign up, as there isn't actually anything being downloaded.

@JosephMcArthur the requests isn't capitalised. Could you change it to Support Requests?

yes, done.
On Mon, 17 Oct 2016 at 23:35 chealsye<EMAIL_ADDRESS>wrote:

@JosephMcArthur https://github.com/JosephMcArthur the requests isn't
capitalised. Could you change it to Support Requests?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/OAButton/backend/issues/296#issuecomment-254354682,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEuWZ-R1zA0SeWp1ZfD-UCit1E9cHvGXks5q0_gdgaJpZM4KYNdE
.


add esbuild

https://github.com/evanw/esbuild

I don't see how it's relevant here. It's written in Go.

its web assembly it can been used in node js


Issues related to Table of Contents Component

1. The heading in TOC is hidden during page scroll. (All browsers)

2. The menu items are also getting hidden during page scroll (Only in Safari)
3. Hamburger icon in mobile view is not clickable

4.In Mobile View, when clicked on "Jump to..." from the menu an error is thrown

Error

Adopter is Profile
Break down into 4 issues:  #1 and FR with priority of Low, #2  Bug Sev 3, #3 may be a dup, if not Sev 3, #4 sev 4

@RobertaJHahn can you please provide the issue numbers for the above defects are tracked.

@sabhareesan  I started to break this bug into 4 as mention in the comment above.  Unfortunately, there are too many questions that I don't have the answers to.  When creating a bug you should use the Bug Report template.  When reporting a bug.  Could you please break this down into 4 separate bugs using the template?
Create a new issue and select the Bug Report template in the top row.


[Feature Request] re-use parquet write options

Feature request
Overview
It is very easy to change the compression codec used to write parquet files when using format "parquet". Example:
df.write.format("parquet").option("compression", "gzip").save("/path/to/somewhere")

However, in case of format "delta", one has to set the Spark conf spark.sql.parquet.compression.codec instead. Would be nice to read to "compression" option to keep the same user-friendlyness of "parquet".
df.write.format("delta").option("compression", "gzip").save("/path/to/somewhere")

NB: the above does not work, eventually compression used is snappy instead of gzip (tested with delta-io 0.6.1)
Motivation
Keep same interface to set compression option when using delta instead of parquet format.
Willingness to contribute
The Delta Lake Community encourages new feature contributions. Would you or another member of your organization be willing to contribute an implementation of this feature?

[ ] Yes. I can contribute this feature independently.
[x] Yes. I would be willing to contribute this feature with guidance from the Delta Lake community.
[ ] No. I cannot contribute this feature at this time.

Hi @pgrandjean thanks for this issue. We will review this API change and get back to you.

@pgrandjean this change seems reasonable. Want to make a PR to implement it?
This seems very closely related to another PR https://github.com/delta-io/delta/issues/781. You should be able to implement + test it in a similar way.

Hi @pgrandjean - no rush, just following up on this. Let me know if you need any help with the PR.


updated gradle, updated file opening to support File sharing to other…

upgraded gradle to support latest android studio 3.1.2.
added support for file sharing above android OS:Nougat by adding fileprovider to resolve FileUriExposedException Crash.

@fishwjy Hello, please approve this pull request :)
I have crash when trying to pick a video.

Thanks for your modification! I have merge this manually.


Add --maxpeers to your bootnodes

Hi, what about to add --maxpeers flag to command line option when run geth?
Lot's of people has issue with no peers when install with your bootnodes provided.
Default maxpeers is 50 so when a bootnode rich 50 connections, nobody can connect anymore.
Also may add --maxpeers flag to run user's node to increase incoming connections (need to update Readme)

I've set 300 for example and flying good
> net.peerCount
266

> net.peerCount
679
> admin.nodeInfo
{
  enode: "enode://7612454dd41a6d13138b565a9e14a35bef4804204d92e751cfe2625648666b703525d821f34ffc198fac0d669a12d5f47e7cf15de4ebe65f39822a2523a576c4@<IP_ADDRESS>:30300",
...
  name: "Geth/Setar-node-service/v1.10.0-stable(quorum-v22.1.0)/linux-amd64/go1.17.5",
...


Tennis Weight

hiii your work is super amazing, is it possible to get you weight of tennis

Sure! Here you can get the weights file:
https://drive.google.com/file/d/1kiuDHIvO2L8HVDi12YHtovxC3203jQ7t/view?usp=sharing
I used YOLOv8 and trained it on this dataset:
https://universe.roboflow.com/cvprojects-lpfvk/tennis-ball-detection-ekjow
Regards.

Sure! Here you can get the weights file: https://drive.google.com/file/d/1kiuDHIvO2L8HVDi12YHtovxC3203jQ7t/view?usp=sharing
I used YOLOv8 and trained it on this dataset: https://universe.roboflow.com/cvprojects-lpfvk/tennis-ball-detection-ekjow Regards.

That is amazing and reli kind of you, and how about the weight to detect the court, is it trained on resnet


Update dracut to allow supressing user confirmation prompt when the l…

Update dracut to allow supressing user confirmation prompt when the liveos overlay is backed by memory (which means OS state is lost on reboot).
The fact that the overlay is backed by memory is by design in some cases. In such cases, there is no need to halt the boot process and wait for interaction user input to let it continue.
This change adds a flag - when defined, it instructs the dracut liveos script to proceed without prompting the user for input.

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[ ] The toolchain has been rebuilt successfully (or no changes were made to it)
[ ] The toolchain/worker package manifests are up-to-date
[ ] Any updated packages successfully build (or no packages were changed)
[ ] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[ ] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[ ] All package sources are available
[ ] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[ ] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[ ] All source files have up-to-date hashes in the *.signatures.json files
[ ] sudo make go-tidy-all and sudo make go-test-coverage pass
[ ] Documentation has been updated to match any changes to the build system
[ ] Ready to merge

Summary

What does the PR accomplish, why was it needed?
Change Log

Change
Change
Change

Does this affect the toolchain?

YES/NO
Associated issues

#xxxx

Links to CVEs

https://nvd.nist.gov/vuln/detail/CVE-YYYY-XXXX

Test Methodology

Pipeline build id: xxxx

clean up / update description

Updated description.


Stop month view scrolling

Hi,
Even after giving the calendar month view fixed hight, it still scrollable.
Is it possible to add the SingleChildScrollView widget option to set the physics parameter to NeverScrollableScrollPhysics().
Thanks

With different devices sometime the calendar hight change, and make it scrollable which causing issue when it's placed inside another scrollable list.

You find a workaround for this?


Release Ballerina Syntax Tree Visualizer VSCode Plugin to Marketplace

Description:
$subject.

The task is completed, now.


feat: basic path preserving cache

Implements a cache that preserves the structure of a pin board. E.g. a file named <some_pin>/<some_version>/mtcars.csv, will be nested in its pin and version directory in the cache. This is unusual for the cache, which normally hashes the path and lets fsspec handle where the file is accessed from.
TODO:

implement cache_prune, cache_info (#37)
test all current constructors
Punt on cache_browse, implement together with pin_browse (#52)

UNANTICIPATED TODO:

modify BoardManual to handle downloading of single files (#54 ) / add a special cache for it in the process

This PR is getting long in the tooth, and the basic caching is a useful milestone! I've punted 3 issues down the road:

#56
#57
#58


Why commit lib folder?

Why do you commit the lib folder to git? You can have a prepublish step that generates it, and includes it in the files you push to npm, like many other libraries do.
Let me know if you need help with this.

Thanks for pointing this out @unindented. I rushed to get this library out for a specific time and did not set up a proper release process. I will be fixing this, along with setting up proper tests and CI shortly.

Awesome!


[Bug Report] All manga titles reduces to "..."

Describe the bug
All manga titles have been reduced to "..."
To Reproduce
Steps to reproduce the behavior:
On Home and Library screens, the titles of manga are all displayed as "..."
Expected behavior
Display the titles
Environment (please complete the following information):

Chrome OS (latest) on Chrome Browser v83
Also Android Chrome

Also all chapter titles are reduced to "..."

The same issue has been reported a few times. From #26, clearing the browser cache and storage seems to do the trick. Could you please try that and see if it helps? You can find the detailed instructions here https://github.com/hkalexling/Mango/issues/34#issuecomment-625712194

Ah ha, that did indeed resolve it! Strange one!
Thanks for the timely response!


Correct luma coefficients

Rec. 709 forms luma using RGB coefficients 0.2126, 0.7152, and 0.0722.

Where do the other almost identical constants come from? Looks like some rounding issue to me.

@nwin you can find them here at page 4

Yes, but where do the other values come from? They can also be found on the internet. Is is a copy&paste error or something rounding-related?

@nwin yeah, I think it's the wrong rounding. I checked the older recommendations, but has not found other values

The other values are from an older version, eg BT.709-1 https://www.itu.int/rec/R-REC-BT.709-1-199311-S/en

Thanks. Sorry for taking so long to merge, I actually forgot about it.


feat(Datagrid): Extracts Filtering logic into useFilters hook

This PR takes the combined logic from filter flyout and panel and merges them into a hook so that the code stays DRY.

@AlexanderMelox Noticed a small issue when we are applying filters, the horizontal scrollbar is not visible

@AlexanderMelox Noticed a small issue when we are applying filters, the horizontal scrollbar is not visible

We noticed this and are making a separate issue for it


Updating Server.lua

Change the id's for the variable initialisation to the new ones so the old ones won't reload if a script fails

This is the same as #159

:thonk:


Inherited explicitly imeplemented members are not linked correctly in Inherited Members

The list of Inherited Members for ReadOnlyObservableCollection<T> contains several members that are explicitly implemented and inherited from ReadOnlyCollection<T>. But those members are not linked in the list and are shown with their full name, e.g.: System.Collections.ObjectModel.ReadOnlyCollection<T>.System.Collections.Generic.ICollection<T>.Clear().

@chenkennt, is this new functionality? I don't remember seeing this section before. We should talk about this implementation. @bradygaster

It has numerous problems, including mislabeling some members (in FileStream, there's link to an inherited Stream.Null field that's incorrectly named FileStream; and .NET Framework and .NET Core inherited members are shown. But it would be better to list inherited members in the member's list, and not in a separate list of inherited members.

@vwxyzh please help take a look

The new site does not seem to have an inherited members list, so this issue does not apply anymore. For example: ReadOnlyObservableCollection<T>


refactor(batch): refine sort agg

What's changed and what's your intention?
Remove the next chunk offset returned by aggregator for sort agg
Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)
previous PR #2084

@xiangjinwu PTAL


Add imports support for Wraith YAML configs

I have a lot of duplication across my YAML files, because various things (such as my choice of snap file, screen widths, diff_mode, and so on) stay the same. What differs is my choice of domain and/or paths.
Rather than duplicate this information in each YAML file, it would be great if our config support an imports property, which Wraith uses to pull in additional YAML files.
StackOverflow suggests that although this isn't built into YAML itself (as YAML is just a way of formatting properties), most third-party implementations of an imports keyword are something like this:
imports:
    - { resource: sub-directory/file.yml }
    - { resource: sub-directory/another-file.yml }

This could work really well for Wraith.
imports: core_settings.yaml # specifying domain, screen widths, etc
paths:
  - /some-path
  - /some-other-path

If the property exists in both the executed config and the imported config, the property in the executed config takes precedence.

@ChrisBAshton is there any update on this feature? This would be much appreciated in the testing community. 😄

Applied in Wraith v4! https://github.com/BBC-News/wraith/pull/486


CRC and/or 8b/10b encoding

I'm running some simple checks since we now have librapcores for high throughput transfers. I'm observing relatively high error rates on the bench of ~1-2%. The hardware setup is non-ideal, long cables, etc. This should be a good worst-case for error correction tests. After looking at some other devices I am noticing CRC is commonly used for user-space protocols.
8b/10b is also used with CRC, but it appears generally at physical layers and it high end buses like PCIe and USB3, so it may be expensive to do this in software. OTOH, 8b/10b could just be a lookup table ~1kB and may still achieve good performance for processors with sufficient cache, but I'm not sure things like microcontrollers would be able to do this well. So far I have not seen this done in userspace software, so it would be experimental and risky. We will likely want to revisit this at some point.
The issues and risks to CRC are the transfer process. Since we have "stream" modes such as coordinated moves, we need to be certain the header is ACK before proceeding with the stream payload, or we may accidentally trigger a different mode in the state machine. It is therefore likely easiest to do CRC on each 64bit word at a time. The performance implications of this in host controller software will need to be quantified some how. On the gateware sides of things this can be done non-combinatorially (see pony link below), so we should not introduce latency on the peripheral side of things. Gateware should also have no state machine changes, with CRC checks and error handling residing in the SPI bus module.
A good reference for a CRC + 8b/10b protocol with Verilog and C code: https://github.com/cliffordwolf/PonyLink

Verilog CRC generator:
http://outputlogic.com/?page_id=321


Request to add clear step by step set up of Azure Key Vault in relation to COE setup

[Enter feedback here]
The setup of for Azure Key Vault found in this link in relation to updating environment variables is generic. Maybe you can add COE specific so it would be easier to do so.

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

ID: 9fe69498-a485-5379-97ff-53fbe029f11a
Version Independent ID: 5b3f9705-9e49-1575-4ae7-0293d12b739c
Content: Set up inventory components - Power Platform
Content Source: power-platform/guidance/coe/setup-core-components.md
Service: power-platform
Sub-service: guidance
GitHub Login: @manuelap-msft
Microsoft Alias: mapichle

Thanks for your comment, @robertmaraan. This issue has been assigned to the doc author for review.

Made some changes to this section, update published today!


Selectively getAsyncContext only if host container supports AsyncContexts

Getting recent commits to play nice on legacy Jetty.

Codecov Report

Merging #47 into master will increase coverage by <.01%.
The diff coverage is 90%.

@@             Coverage Diff              @@
##             master      #47      +/-   ##
============================================
+ Coverage     98.83%   98.84%   +<.01%
- Complexity      463      467       +4
============================================
  Files            27       27
  Lines          1115     1123       +8
  Branches        133      134       +1
============================================
+ Hits           1102     1110       +8
  Misses            4        4
  Partials          9        9

Impacted Files
Coverage Δ
Complexity Δ

...va/com/nike/wingtips/util/AsyncWingtipsHelper.java
100% <ø> (ø)
32 <0> (ø)
:arrow_down:

.../nike/wingtips/util/AsyncWingtipsHelperStatic.java
100% <ø> (ø)
32 <0> (ø)
:arrow_down:

...om/nike/wingtips/servlet/RequestTracingFilter.java
98.3% <90%> (+0.26%)
22 <3> (+4)
:arrow_up:

Continue to review full report at Codecov.

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


Keep orientation when updating a footprint

Pretty self-explanatory :)

Guess I've always been testing with labels at 0 degrees.
Thanks!
Also be aware that the edit feature currently hits this KiCad bug: https://gitlab.com/kicad/code/kicad/-/issues/10827

Interesting, don't think I ran into that one but I'll keep an eye out.


Use non-pipe translation link

Overview
This PR:

Updates the Google translate link so that pipe operators don't cause text to get dropped

Thank you to @mozzius for catching this!
Before:

After:

@pfrazee wanted to flag that @mozzius suggested using default locale (via expo-localization) rather than English and is happy to open a PR!
I'm a fan of this idea but thought it'd be good to run it by you first 🖖

Made an issue for this: https://github.com/bluesky-social/social-app/issues/741


Import History

I have a saved editing history that will be loaded during the next initialization
How to complete it

processed


[FEATURE] - Design Brief: Reference Designs

Goal
Add reference designs to the design brief. For example:

NASA (Aeroponics, CELSS)
MIT Media Lab

Added OpenAG PFC reference design.


Add a "Distinct" implementation that leverages index for low cardinality columns

For queries of the type: select distinct(<columnName>) from <tableName> , we can create an implementation that enhances the query performance

I think I get the general idea of using inverted index to solve distinct and group-by queries:

SELECT DISTINCT colA FROM myTable WHERE ...
SELECT COUNT(*) FROM myTable WHERE ... GROUP BY colA

When the colA has inverted index, we can scan all the bitmaps to solve the query instead of scanning the matching docs.
It might be able to accelerate the query when the following conditions are met:

colA has low cardinality (we don't want to scan too many bitmaps)
Filter has low selectivity (lots of records matched, so scanning cost is relatively high)

Note that when colA has low cardinality, the current approach won't be very costly. We'll maintain a small set/map on dictionary ids of up to cardinality size. Scanning the bitmaps is not strictly O(cardinality) complexity because processing each bitmap can be up to O(number of rows). We should evaluate and find the break even point for this optimization to out-perform the current solution.

The inverted index group by algorithm is very close to how high dimensional cubes could work:

Pre-aggregate measures data to reduce cardinality
Split dimensions into groups of 3, build bitmap indexes over aggregates by all 1-, 2-, 3-tuples
To group by a dimension

When there is no filter, iterate over the bitmaps of the dimension, evaluate count or apply an aggregation function to selected aggregates
When there is an equality filter on value x of another dimension (or values x and y of 2 dimensions respectively) within the same group as the grouping dimension, select all tuples (, x) (or (, x, y)) from the group, apply the reduction for each bitmap
When the filter is in another group, iterate the bitmaps in the grouping dimension but intersect with the filter bitmap on the fly, apply the reduction for each nonempty result bitmap

To group by multiple dimensions in the same group, iterate over the bitmaps for indexed tuples (*, *), apply filters as above, apply reduction for nonempty bitmaps
To group by multiple dimensions in different groups requires intersections between the cross product of the dimensions’ members on the fly, then reduction for nonempty combination bitmaps. The groups can be tuned based on query patterns to avoid this happening.

This can all be done without pre-aggregation but the approach doesn’t work well with high cardinalities or high row counts (especially for applying aggregation functions other than count to nonempty groups).


GetPositionTimeSpan() is reporting incorrect results (1.9.0)

I'm trying to show the accurate position while playing a mp3 file.
Initially, I was using reader_.CurrentTime.TotalMilliseconds; but this is not very accurate (seems like it works on 100ms increments).
Then I tried to use wave_?.GetPositionTimeSpan().TotalMilliseconds but this is not working correctly. It always starts from zero, and goes onwards, regardless of the position in the stream.
Am I doing something wrong?

The position on the reader simply says where the output device has read to, and will depend on the buffer size. It will be slightly ahead of playback since the sound device reads ahead. If you use smaller buffer sizes, that will help a bit.
The position on the output device is more accurate in terms of where playback is up to, but as you have noticed, doesn't know anything about where in the file it is. It's just reporting the number of bytes played since playback started.
So at the moment, for more accurate position reporting, you need to do your own tracking of how the wave output device position maps to file position, which is fairly complex I'm afraid.

Got it, thanks.
I have a workaround that may work - will test in a bit.


Unhandled exception. System.ComponentModel.Win32Exception (2): No such file or directory on trying to set pwsh as default shell

Steps to reproduce
MacOS 10.14.6
dotnet tool install --global PowerShell
ln -s /Users/jkearl/.dotnet/tools/pwsh /usr/local/bin/pwsh
vim /etc/shells  # add /usr/local/bin/pwsh
pwsh # works
exit
chsh -s /usr/local/bin/pwsh

open new terminal
Last login: Sat Mar 14 00:05:26 on ttys005
Unhandled exception. System.ComponentModel.Win32Exception (2): No such file or directory
   at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start(String fileName, String arguments)
   at Microsoft.PowerShell.GlobalTool.Shim.EntryPoint.Main(String[] args)

[Process completed]

Environment data

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Darwin 18.7.0 Darwin Kernel Version 18.7.0: Sat Oct 12 00:02:19 PDT 2019; root:xnu-4903.278.12~1/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

/cc @adityapatwardhan

Currently, the dotnet-tool PowerShell version can indeed not function as the default shell on macOS, because it is invoked with -l there, which fails:
PS> ~/.dotnet/tools/pwsh -l
Unknown option: -l
.NET Core SDK (3.1.102)
Usage: dotnet [runtime-options] [path-to-application] [arguments]
...

The problem happens on reinvocation via /bin/sh.
The divergent behavior of the dotnet-tool PowerShell version is a recurring notably including severely broken parsing of command-line arguments in general - see #11747

I have explicitly disabled passing -l and still lget the error

@JacksonKearl, out of curiosity: how did you disable -l?

I'm using hyper, and it has a setting for shell launch parameters.

(I realized that creating a default login shell via Terminal.app, for instance, doesn't actually use option -l to request a login shell, but sets $0 (the first argument passed to the binary) to -<shellBinaryName>, with the - prefix by convention requesting a login shell - and a regularly installed PowerShell version does seem to honor that.)
Given how you invoke PowerShell, the problem is directly related to having configured it as your default shell  - though that doesn't work either.
When I try what you tried with Hyper analogously with iTerm2 - that is, launch the shell executable explicitly, without options - I get a different error message:
A fatal error occurred. The required libarary libhostfxr.dll could not be found.
If this is a self-contained application, that library should exist in [~/.dotnet/tools/.store/powershell/7.0.0/powershell/7.0.0/tools/netcoreapp3.1/any/]
If this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location]

This suggests that the dotnet-tool-installed version is a framework-dependent application, and that it therefore needs to be told where to find the .NET Core runtime (if it isn't in /usr/local/share/dotnet or listed in file /etc/dotnet/install_location).
If I do tell it where to find the runtime - e.g. by launching via /bin/sh -c 'DOTNET_ROOT=~/.dotnet ~/.dotnet/tools/pwsh'  - I do on occasion get the error message you saw, but more typically I just see Unhandled exception.
In short: the problem seem to be related to the dotnet-tool-installed version being a framework-dependent application.
The curious thing is that /bin/sh -c 'DOTNET_ROOT=~/.dotnet ~/.dotnet/tools/pwsh' works just fine from an existing terminal window (that's running bash, for instance.)

@JacksonKearl, I've added a workaround and more findings to my previous comment.

We have an report that dash is broken in the scenario. See #12058

@iSazonov, I had to amend my previous comment again; what it comes down to: not only must DOTNET_ROOT be set to ~/.dotnet, but the latter must also be listed in PATH.
The linked issue doesn't apply, because there is no dash on macOS; /bin/sh is, in essence, bash on macOS (it's a separate binary that is a custom build of bash with a few changes hard-coded; verify with sh --version).
Also, I just saw that we're actually using /bin/zsh -l on macOS, though I'm unclear on why.

@mklement0 Thanks for in-depth investigating the issue!

The linked issue doesn't apply, because there is no dash on macOS;

It was more for @rjmholt experience who works on improvements of the login shell feature code.

presents a bootstrapping problem

Should we delegate this problem to MSFT team?

As it turns out, it is not only env. var DOTNET_ROOT that must point to ~/.dotnet, but this directory must also be in the PATH variable.

The same question. Also should we fix PowerShell global tool installer to add the path in PATH variable?

I think we must first decide  whether we want to officially support the dotnet tool-installed version as a user's default shell.
I think it won't be possible if we keep it as a framework-dependent application.
But changing that may not be an option for this installation method (I know little about .NET tools).
For running it as a terminal emulator's manually configured startup shell we at least have a workaround now.

Also should we fix PowerShell global tool installer to add the path in PATH variable?

I don't think that would help: macOS has no single location (anymore) for defining environment variables that GUI applications (which includes terminal emulators) all see.

Is global tools installed in user profile?

From what I can tell, global tools by default always install in $HOME/.dotnet/tools, across platforms, i.e., the installation is by default always in a user-specific location.

Thanks for confirmation my guess! In the case global tools installer does not change system global configs and we can not expect that the system can start the shell well out of the user session.

@mklement0

As a workaround, tell your terminal to start PowerShell as follows:
/bin/sh -lc 'PATH=~/".dotnet:$PATH" DOTNET_ROOT=~/.dotnet ~/.dotnet/tools/pwsh'

This gives me error:
A fatal error occurred. The required library libhostfxr.dylib could not be found.
If this is a self-contained application, that library should exist in [/Users/jkearl/.dotnet/tools/.store/powershell/7.0.0/powershell/7.0.0/tools/netcoreapp3.1/any/].
If this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].

The .NET Core runtime can be found at:
  - https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=osx.10.14-x64

Is there a different way to install powershell that would make using it as a default shell work better?

Is there a different way to install powershell that would make using it as a default shell work better?

Yes, if you use the official installer package (*.pkg) available for download from this repo (https://github.com/PowerShell/PowerShell#get-powershell) or, if you have Homebrew installed, with brew cask install powershell - see the instructions for macOS.
That way, PowerShell will be installed as a self-contained (not framework-dependent) application, and the problem shouldn't occur.

That said, you can make this work with the .NET global tool version, even as the default shell - I'll post a summary later.
As for the workaround for use as a terminal startup command:
Sorry I didn't make clearer that ~/.dotnet in the workaround was a placeholder for whatever the .NET Core SDK / runtime installation directory is on your system - by default, it is /usr/local/share/dotnet.
Therefore the abstract form of the workaround is:
/bin/sh -lc 'PATH="<dotnet-install-dir>:$PATH" DOTNET_ROOT="<dotnet-install-dir>" ~/.dotnet/tools/pwsh'

With the standard location:
/bin/sh -lc 'PATH="/usr/local/share/dotnet:$PATH" DOTNET_ROOT="/usr/local/share/dotnet" ~/.dotnet/tools/pwsh'

(Strictly speaking, you don't need the DOTNET_ROOT=... part with the standard location, but you need it with any nonstandard one.)

The short of it is:
If  PowerShell is installed as a  .NET global tool, and you want to configure it as your default shell.

With a standard, machine-level .NET Core SDK / runtime installation in standard locations:

on Linux (at least on Ubuntu), should work as-is (CLI dotnet symlinked to /usr/bin, install directory in standard location /usr/share/dotnet/).

on macOS (CLI dotnet symlinked to /usr/local/bin, install directory in standard location /usr/local/share/dotnet), requires extra, one-time configuration that involves sudo, and therefore requires administrative privileges:

sudo launchctl config system path /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet

With a .NET Core installation in a custom location:

Careful extra configuration is required on both platforms, requiring sudo - see bottom section.

As a less invasive alternative that doesn't require sudo, instead of defining pwsh as your default shell, configure your terminal emulator to launch PowerShell as follows:

Linux:

With a standard installation:

bin/sh -c 'exec ~/.dotnet/tools/pwsh'

With a custom installation (substitute the full path of your custom .NET install directory for <dotnet-root-dir>):

/bin/sh -c 'PATH="<dotnet-root-dir>:$PATH" DOTNET_ROOT="<dotnet-root-dir>" exec ~/.dotnet/tools/pwsh'

macOS:

With a standard installation:

/bin/sh -lc 'PATH="/usr/local/share/dotnet:$PATH" exec ~/.dotnet/tools/pwsh'

With a custom installation (substitute the full path of your custom .NET install directory for <dotnet-root-dir>):

/bin/sh -lc 'PATH="<dotnet-root-dir>:$PATH" DOTNET_ROOT="<dotnet-root-dir>" exec ~/.dotnet/tools/pwsh'

@iSazonov, the section below addresses this comment of yours:

the system can start the shell well out of the user session. In particular, as a result pwsh cannot find a custom .Net installation.
In other words, the installer only configures the user profile so that pwsh works well.

Background information, default shell use with custom .NET installations:
The .NET Core SDK installer adds the .NET global tools directory  to $env:PATH system-wide, even though it is a user location. That is, each user sees their ~/.dotnet/tools directory in $env:PATH:

On macOS, this directory added via plaint-text file /etc/paths.d/dotnet-cli-tools, which /etc/profile processes by invoking /usr/libexec/path_helper.

On Linux, it is shell script /etc/profile.d/dotnet-cli-tools-bin-path.sh, also processed by /etc/profile.

However, it isn't the tools directory that matters here, it is the location of the dotnet CLI and the the .NET install directory (inside of which the runtimes are located)  that matters - both of them must be discoverable when a framework-dependent .NET application - such as pwsh if installed as a .NET global tool - starts.
(Whether the tools directory is discoverable is irrelevant in this scenario, because in order to define a shell as the default shell, its full path is passed to cshsh -s anyway).
The dotnet CLI and the install directory are discoverable with standard installations of the .NET Core SDK / runtime.
However, the challenge is that this discoverability always (macOS) / situationally (Linux) depends on having processed /etc/profile and ~/.profile first.
That is a catch-22 (bootstrapping problem) for a framework-dependent PowerShell:  Because It cannot process these files itself (but needs to, if invoked as a login shell), it can only process them by reinvoking itself via /bin/sh -l (or equivalent). But in order to do so it needs to be able to start first - which, by default, it categorically cannot (macOS) / situationally cannot (Linux).

macOS
With a standard installation (via the official .pkg installer, as used by brew cask install dotnet-sdk), a framework-dependent application:

can discover the install directory due its presence in its standard location, /usr/local/share/dotnet/

cannot discover the dotnet CLI, because it is symlinked to from /usr/local/bin/dotnet, and /usr/local/bin/ is only added to $env:PATH via /etc/profile; on macOS non-shell(-launched) processes - such as GUI applications - see only the following directories in $env:PATH: /usr/bin:/bin:/usr/sbin:/sbin

Trying to work around this catch-22 by creating a symlink to the CLI in /usr/bin, for instance, is tempting, but the macOS SIP (System Integrity Protection) feature prevents that.
The fix is to add the install directory (where the CLI resides as well) to the system-level default $env:PATH value, after its default entries, using launchctl, which requires sudo and therefore administrative privileges (and a reboot for the change to take effect).
(Note that attempts to modify the user-level definition are seemingly quietly ignored).
sudo launchctl config system path /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet

Note that this has two implications, though I generally wouldn't expect them to be problematic:

Even non-shell(-launched) processes (GUI apps) then see this new $env:PATH  entry.

Shell(-launched) processes see the new $env:PATH entry before any additional entries are made via /etc/profile / ~/.profile / their own initialization files.

With a custom installation of .NET Core, additional work is required:

First, adapt and submit sudo launch command above with the full path of your custom install directory substituted for /usr/local/share/dotnet.

Then, create plain-text file /etc/dotnet/install_location (requires sudo; create directory /etc/dotnet on demand) and place the full path of your custom install directory in there.

Note that the alternative method for making a custom install directory location discoverable - environment variable DOTNET_ROOT is not an option, because macOS - by design, for security reasons - doesn't offer a way to set environment variables other than PATH at the system level.

Linux (as tested on Ubuntu 18.04)
With a standard installation (sudo apt install powershell-sdk-<major>-<minor>; e.g., sudo apt install powershell-sdk-3-1 as of PowerShell 7.0), everything should work as-is:
Neither the discoverability of the CLI nor the install directory depend on /etc/profile processing in that case (/usr/bin, where the dotnet CLI symlink is placed, is in $env:PATH by virtue of being defined in /etc/environment, and the CLI can discover the install directory in its standard location, /usr/share/dotnet/).
With a custom installation of .NET Core, additional work is required, which requires sudo and therefore administrative privileges:

First, if not already present, create a symlink to the dotnet CLI in one of the $env:PATH directories listed directly in /etc/environment, such as /usr/bin or /usr/local/bin (requires sudo).

Note that, for instance, a snap-installed PowerShell version creates a  /snap/bin/dotnet symlink, but /snap/bin is only added to $env:PATH if /etc/profile is processed.

Then, create plain-text file /etc/dotnet/install_location (requires sudo; create directory /etc/dotnet on demand) and place the full path of your custom install directory in there.

Note: It may be tempting to try a user-level configuration via ~/.profile, but that won't work in all situations:

It does work  when you log on locally, via the desktop environment, because a hidden /bin/sh instances then processes /etc/profile and ~/.profile at logon time, and all processes in that session inherit the resulting environment modifications. It is for this reason that - unlike on macOS - Linux terminal emulators do not launch shells as login shells, because it isn't necessary.

However, it does not work in ssh sessions, where the user's default shell is invoked as a login shell, and is itself expected to process /etc/profile and ~/.profile

thanks for your help, I'm using the
/bin/sh -lc 'PATH="/usr/local/share/dotnet:$PATH" DOTNET_ROOT="/usr/local/share/dotnet" ~/.dotnet/tools/pwsh'

approach as I want Hyper to use Powershell but Terminal.app to use zsh. (for easy context switching)
It all seems to work well with this setup.

Glad to hear it, @JacksonKearl.
Note the list of current bugs when you've use PowerShell as a .NET global tool (all CLI-related):

CLI argument handling is broken with respect to arguments with embedded spaces and quotes: #11747

On macOS, you can't use pwsh to launch another instance (use ~/.dotnet/tools/pwsh as a workaround): #12205

-l / -login doesn't work: #12176

cc @adityapatwardhan

Lots of tools expect a "pwsh" found on the PATH to be usable; is it possible for us to detect that the pwsh herein needs the above handholding so that we may skip over it? It's causing build failures for vcpkg customers.

Lots of tools expect a "pwsh" found on the PATH to be usable; is it possible for us to detect that the pwsh herein needs the above handholding so that we may skip over it? It's causing build failures for vcpkg customers.

/cc @adityapatwardhan who could investigate the issue with global tool.

/cc @adityapatwardhan who could investigate the issue with global tool.


Cannot bind to the port 8081. Please specify another port number either through --port argument or through the json-server.json configuration file

my terminal display this error, when i run twice axios.deleter.
my computer environment: win10  10.0.18362 N/A Build 18362
json-server version: 0.15.1

i hope you can tell me how to fix the issues

this is my run start command:  json-server -p 8081 -w db.json

Did you check if any other process is listening to 8081 port?

@GavinMoreYoung  If you not facing the issue anymore, then the issue can be closed.

I'm having the same problem
save to refresh three times.
Cannot bind to the port 8000. Please specify another port number either through --port argument or through the json-server.json configuration file
json-server.json
{
  "port": 8000,
  "watch": ["json/*"]
}

  "start": "json-server json/db.json --routes json/routes.json"