Not a directory: hipconfig

Hello,
I'm trying to install via python3 -m pip install -e GroundingDINO but I'm getting the error:
ERROR: Command errored out with exit status 1:
     command: /home/sterling/.pyenv/versions/sam/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/sterling/Documents/External_Repos/SAM/Grounded-Segment-Anything/GroundingDINO/setup.py'"'"'; __file__='"'"'/home/sterling/Documents/External_Repos/SAM/Grounded-Segment-Anything/GroundingDINO/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info
         cwd: /home/sterling/Documents/External_Repos/SAM/Grounded-Segment-Anything/GroundingDINO/
    Complete output (19 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/sterling/Documents/External_Repos/SAM/Grounded-Segment-Anything/GroundingDINO/setup.py", line 29, in <module>
        from torch.utils.cpp_extension import CUDA_HOME, CppExtension, CUDAExtension
      File "/home/sterling/.pyenv/versions/sam/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 19, in <module>
        from .hipify import hipify_python
      File "/home/sterling/.pyenv/versions/sam/lib/python3.8/site-packages/torch/utils/hipify/hipify_python.py", line 34, in <module>
        from .cuda_to_hip_mappings import CUDA_TO_HIP_MAPPINGS
      File "/home/sterling/.pyenv/versions/sam/lib/python3.8/site-packages/torch/utils/hipify/cuda_to_hip_mappings.py", line 34, in <module>
        rocm_path = subprocess.check_output(["hipconfig", "--rocmpath"]).decode("utf-8")
      File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "/usr/lib/python3.8/subprocess.py", line 493, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    NotADirectoryError: [Errno 20] Not a directory: 'hipconfig'

I can run and generate masks with SAM already so all of those dependencies are met.

have you set the CUDA_HOME variable? Moreover, can you help to provide more details about the torch and python versions?

I also appeal problems, the following is my torch and python version.
certifi                  2022.12.7
charset-normalizer       3.1.0
cmake                    3.26.3
Deprecated               1.2.13
filelock                 3.12.0
idna                     3.4
Jinja2                   3.1.2
lit                      16.0.2
MarkupSafe               2.1.2
mpmath                   1.3.0
networkx                 3.1
numpy                    1.24.3
nvidia-cublas-cu11       <IP_ADDRESS>
nvidia-cuda-cupti-cu11   11.7.101
nvidia-cuda-nvrtc-cu11   11.7.99
nvidia-cuda-runtime-cu11 11.7.99
nvidia-cudnn-cu11        <IP_ADDRESS>
nvidia-cufft-cu11        <IP_ADDRESS>
nvidia-curand-cu11       <IP_ADDRESS>
nvidia-cusolver-cu11     <IP_ADDRESS>
nvidia-cusparse-cu11     <IP_ADDRESS>
nvidia-nccl-cu11         2.14.3
nvidia-nvtx-cu11         11.7.91
opencv-python            <IP_ADDRESS>
Pillow                   9.5.0
pip                      23.0.1
pyarrow                  10.0.1
requests                 2.28.2
rerun-sdk                0.5.0
segment-anything         1.0
setuptools               66.0.0
sympy                    1.11.1
torch                    2.0.0
torchvision              0.15.1
tqdm                     4.65.0
triton                   2.0.0
typing_extensions        4.5.0
urllib3                  1.26.15
wheel                    0.38.4
wrapt                    1.15.0

I also have the same problem
Obtaining file:///home/ai/Grounded-Segment-Anything/GroundingDINO
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/home/ai/Grounded-Segment-Anything/GroundingDINO/setup.py", line 29, in
from torch.utils.cpp_extension import CUDA_HOME, CppExtension, CUDAExtension
File "/home/ai/miniconda3/envs/sam/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 19, in
from .hipify import hipify_python
File "/home/ai/miniconda3/envs/sam/lib/python3.10/site-packages/torch/utils/hipify/hipify_python.py", line 34, in
from .cuda_to_hip_mappings import CUDA_TO_HIP_MAPPINGS
File "/home/ai/miniconda3/envs/sam/lib/python3.10/site-packages/torch/utils/hipify/cuda_to_hip_mappings.py", line 34, in
rocm_path = subprocess.check_output(["hipconfig", "--rocmpath"]).decode("utf-8")
File "/home/ai/miniconda3/envs/sam/lib/python3.10/subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/home/ai/miniconda3/envs/sam/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/home/ai/miniconda3/envs/sam/lib/python3.10/subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/ai/miniconda3/envs/sam/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
NotADirectoryError: [Errno 20] Not a directory: 'hipconfig'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Same issue occurs when I installed apex by pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./, refer to: apex

Help in my case:

$ export PATH=$PATH:[MYHIP]/bin
$ export HIP_PATH=[MYHIP]

Help in my case:

$ export PATH=$PATH:[MYHIP]/bin
$ export HIP_PATH=[MYHIP]

What is [MYHIP]?

兄弟们 你们解决了吗

export PATH=$PATH:/usr/local/bin/aws export PATH=$PATH:[MYHIP]/bin
I don't know why, but this helps

Great! Also helps in the process of installing detectron2.


DependencyEnvironmentPostProcessor is broken

With one of the releases of Spring Boot AFAIR spring.application.name gets resolved to default

probably an ordering issue.

Most likely so - I don't think we have a test for that :scream: ...

I don't think this is a problem with DependencyEnvironmentPostProcessor. It wouldn't cause spring.application.name to resolve to default. Where did you see this?

It's no longer broken. I've confirmed it.


Update count parameter for search_users and list_timeline

Twitter's API no longer supports "per_page" as a parameter for search_users and list_timeline. Instead, "count" must be used. This is reflected in the most recent Twitter API Documentation. I validated that the "count" parameter works for both search_users and list_timeline using Tweepy 3.6.

Nice! Thanks for the contribution


Incorrect Indentation for Cognitive Layout Service Docker compose yml

The indentation on the docker-compose contents for the Layout container is wrong. Needs to be rectified (non-compliant yml)
https://docs.microsoft.com/en-us/azure/applied-ai-services/form-recognizer/containers/form-recognizer-container-install-run?tabs=layout#tabpanel_1_layout
current content
version: "3.9"
services:
azure-cognitive-service-layout:
    container_name: azure-cognitive-service-layout
    image: mcr.microsoft.com/azure-cognitive-services/form-recognizer/layout
    environment:
      - EULA=accept
      - billing={FORM_RECOGNIZER_ENDPOINT_URI}
      - apiKey={FORM_RECOGNIZER_KEY}
    ports:
      - "5000"
    networks:
      - ocrvnet
networks:
  ocrvnet:
    driver: bridge

rectified content - NB: Indentation at azure-cognitive-service-layout:
version: "3.9"
services:
  azure-cognitive-service-layout:
    container_name: azure-cognitive-service-layout
    image: mcr.microsoft.com/azure-cognitive-services/form-recognizer/layout
    environment:
      - EULA=accept
      - billing={FORM_RECOGNIZER_ENDPOINT_URI}
      - apiKey={FORM_RECOGNIZER_KEY}
    ports:
      - "5000"
    networks:
      - ocrvnet
networks:
  ocrvnet:
    driver: bridge

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

ID: a15451c7-5de6-3543-489b-107f515e3f9a
Version Independent ID: e1ee7a2f-cfdd-895e-c7e4-a9ebfe03ff7a
Content: Install and run Docker containers for Form Recognizer v2.1 - Azure Applied AI Services
Content Source: articles/applied-ai-services/form-recognizer/containers/form-recognizer-container-install-run.md
Service: applied-ai-services
Sub-service: forms-recognizer
GitHub Login: @laujan
Microsoft Alias: lajanuar

@calmerwaters Thanks for feedack and spotting this. I have added a PR to fix this, the doc should be updated within 24 hours of the PR merge.

Hi @calmerwaters,
I have updated the document and the changed should be live this afternoon. Thank you for the callout!
cc: @RohitMungi-MSFT


portfolio submission

Hacktoberfest! 🎊🎈
Contributing in Hacktoberfest by submitting portfolio.

Hi there!
Although this repo is not part of Hacktoberfest 2024, we have some great alternatives for you. Welcome to SkillShow, a repository focused on skill enhancement!
Guidelines:

Please adhere to the existing guidelines.
No additional rules, thanks!
Check it out here: SkillShow.

Note: Start by creating an issue. Once it’s assigned to you, feel free to open a pull request (PR). Directly opening a PR will lead to an invalid label.
Looking forward to your contributions!


create controller programmatically throws exception

I'm experimenting with this controller and figured that it raises NSRange out of bound exception when calling alloc init. it seems that alloc init somehow calls initwithnib, which I don't have any. Is this control only supposed to be used with storyboard?

If it's not too late, I've modified this class to work programmatically! You can check out the source here! I basically removed all references to IB and refactored/reorganized some of the initialization methods. Now it works like a charm without IB!
https://github.com/Timstarockz/BFPaperTabBarController/tree/master/Classes

@Timstarockz Thank you!

@Timstarockz Thanks! I'll take a closer look next week and perhaps make this the standard.

@bfeher so rite now with the latest version, init tab bar controller programmatically is possible?

@tobatha It hasn't been integrated into the main branch, so please use Timstarockz version above. Thank you.

@bfeher yeah, i tried last nite, seems no luck, but won't crash anymore, that's very reassuring! ^_^

@tobatha I'm sorry that I have been criminally negligent of my repos lately. Life is getting too busy. If you find anything that needs fixed please let me know and I will try to fix it ASAP :)


Added Publish a package with 2FA using Slack

Sends you a slack message when the publish command requires the 2fa code and use it to complete the publish.

Thank you Erez! ❤You're the best.


Ask for password after create repo succeeded

Closes https://github.com/restic/restic/issues/199.
Thoughts? @fd0

LGTM

Closes https://github.com/restic/restic/issues/199.
Thoughts? @fd0


tsdb: Add support for handling multiple chunks in OOO head

This PR adds support for handling multiple chunks in the OOO head, as well as handling different encoding types (XOR, Histogram, and Float Histogram). This is code is part of what is needed to add support for out-of-order ingestion of native histograms (#11220).

Can we tighten up the title/description a bit?  This is what I think of as "the OOO head", and it already had multiple chunks:
https://github.com/prometheus/prometheus/blob/b75e6353742e32c7e18997ebd6a75b77563e33b5/tsdb/head.go#L2124-L2125
I think you added support for the OOO head chunk to split into multiple chunks when mmapped - is that right?


onMomentumScrollEnd (activePageIndex) Not Sending Correct Index on iOS

Similar to issue #5 , my activePageIndex is not propagating with the proper index. It's always an index behind. If I swipe to index 1, activePageIndex would state index 0. My swipe action is horizontal.
iOS 12.1

"react": "16.6.3",
"react-native": "0.57.8",
"react-native-parallax-swiper": "^1.1.7",

state = {scrollToIndex: 0}

<ParallaxSwiper
    speed={0.5}
    animatedValue={this.myCustomAnimatedValue}
    dividerWidth={0}
    dividerColor="black"
    backgroundColor="black"
    onMomentumScrollEnd={activePageIndex => this.setState({scrollToIndex: activePageIndex},() => console.log('scrollToIndex',scrollToIndex))}
    showProgressBar={true}
    progressBarBackgroundColor="rgba(0,0,0,0.25)"
    progressBarValueBackgroundColor="white"
    scrollToIndex={scrollToIndex}
>

Animated gif to this issue can be found here (takes you to Imgur). My example has a length of 3 items.

 I had a 2nd pair of eyes look at my code and I was making things way too complicated. After removing part of the complexity everything was functioning properly. Basically I removed setState and passed activePageIndex directly.

Hey @mikeyamato glad you got this figured out. Sorry I was late to respond, I took off for the holidays.


Fix for broken menu

Characters/Channels links in menu are broken. but adding \templates\website\base.html from Evennia fixes it

This kind of side effect when using evennia's templates shouldn't be happening at all, so I'm investigating it as a core evennia issue. I'll leave this open until I have some kind of resolution for it.

Resolved by https://github.com/evennia/evennia/pull/3566


move maintenance scripts from src/nmdc_submission_schema/datamodel to src/scripts

check_examples.py
dh_json2linkml.py (dh-json2linkml in pyproject.toml)
dh_linkml_json_conversion.py
gold.py (inject-gold-pathway-terms in pyproject.toml)
linkml_json2dh.py (linkml-json2dh in pyproject.toml)
oak_tree_to_pv_list.py (oak-tree-to-pv-list in pyproject.toml)
resort_pipeds.py

some of those can be deleted or moved elsewhere after this merge


my single a100 only can raise four 7b llms, how can i raise more llms with one gpu?

can author provide some lower gpu utilize methods?

can author provide some lower gpu utilize methods?

Hi! I‘m very sorry for the delayed response..
Thank you for your suggestion. I have tried to support quantization (See PR). Now you only need to add quantization to the config and set it as needed to 'none', '8bit', or '4bit'.
Example:
NORM_TYPE_API_SERVER: 'average' # 'average' or 'score'
THRESHOLD_API_SERVER: 1.0
CONFIG_API_SERVER:
  - weight: '[Please replace with the path to the local model weight]' # or 'upstage/SOLAR-10.7B-Instruct-v1.0'
    max_memory:
      0: '24GiB'
    num_gpus: 0.5
    name: 'SOLAR-10.7B-Instruct-v1.0'
    score: 100
    priority: 'supportive' # 'primary' or 'supportive'
    quantization: 'none' # 'none'/'8bit'/'4bit'    <-------------------------- Here

This way, you can control the quantization level of each model participating in the ensemble.
If you have any questions, feel free to contact~


Fix parsing from std::cin (tellg/seekg are not working for it).

Hi there,
I fixed parsing from std::cin.  The problem was in tellg/seekg that break std::cin (and it looks they are not required at all, so I removed them).
You can reproduce the issue with the following sample:
#include "jsonxx.h"
#include <iostream>

using namespace std;
using namespace jsonxx;

int main()
{
    Object o;
    o.parse(cin);
    cout << o.get<Array>("ar").get<Number>(0) << endl;
    return 0;
}

Send this json to stdin:
{ "ar" : [1] }

This change would break the test at jsonxx_test.cc:171 on macOS.
But it seems to work fine on Linux. Interesting.

I checked on Windows and Linux. So it looks it depends on istream implementation.

By the way, thanks for the good library. It's small and very easy to use. Nice work!


gradient update

Hi,
It is a wonderful work. When I tried to understand the source code, I ran into a very confusing problem. The two line codes in line435 and line439 that confuse me. This looks like some kind of chain rule. Is there a clearer explanation?
Thanks in advance.

I understand.

@Ericmututu I struggle at this too -- could you kindly explain here if you've figured it out? Thank you.


Not working with Swedish characters.

The function "Capitalize only first word of sentance in selected text", does not seem to work with Swedish characters (åäö).
Example text selection:

öga. äga. åra.

Maybe I've missed something.
Cheers!

Hi, I think the new version should fix this. If there is any problem, feel free to re-open this issue. :)


Reformated code with OTBS Style, Replaced Write-Host with Write-Output

Done the following things:

indented the code with OTBS Style, using PowerShell extension itself
replaced all occurrences of write-host with write-output

Mentioning @Trenly @jedieaston since I cannot request review directly.

I'm not getting how to get Write-Output with -NoNewLine. @Trenly can you look upon this?

I'm not getting how to get Write-Output with -NoNewLine. @Trenly can you look upon this?

You can probably use [Console]::write()
https://docs.microsoft.com/en-us/dotnet/api/system.console.write?view=net-5.0

https://github.com/Trenly/winget-pkgs/blob/YamlParsing/Tools/YamlCreate.ps1#L262-L265
@Trenly Can you tell what these lines actually do?

https://github.com/Trenly/winget-pkgs/blob/YamlParsing/Tools/YamlCreate.ps1#L262-L265
@Trenly Can you tell what these lines actually do?

If the KeypressMenu is not provided a DefaultString, it will say that the option highlighted in green is the default option

There are many bugs occurring due to the conversion of write-host with write-output. So, it needs in-depth testing. I've tried to fix as many as bugs I can see, but to ensure nothing breaks, we need a bit more testing.

All PRScriptAnalyzer issues have been resolved


Subquery with join not working (Postgres)

I am using Postgres. Here is my table structure.
CREATE TABLE "public"."projects" (
	"id" int4 NOT NULL DEFAULT nextval('projects_id_seq'::regclass),
	"name" text NOT NULL COLLATE "default",
	"owner_id" int4
)
CREATE TABLE "public"."users" (
	"id" int4 NOT NULL DEFAULT nextval('users_id_seq'::regclass),
	"email" text NOT NULL COLLATE "default",
	"first_name" text COLLATE "default",
	"last_name" text COLLATE "default"
)
ALTER TABLE "public"."projects" ADD PRIMARY KEY ("id") NOT DEFERRABLE INITIALLY IMMEDIATE;
ALTER TABLE "public"."projects" ADD CONSTRAINT "projects_name_key" UNIQUE ("name") NOT DEFERRABLE INITIALLY IMMEDIATE;
ALTER TABLE "public"."users" ADD PRIMARY KEY ("id") NOT DEFERRABLE INITIALLY IMMEDIATE;
ALTER TABLE "public"."users" ADD CONSTRAINT "users_email_key" UNIQUE ("email") NOT DEFERRABLE INITIALLY IMMEDIATE;
ALTER TABLE "public"."projects" ADD CONSTRAINT "projects_owner_id_fkey" FOREIGN KEY ("owner_id") REFERENCES "public"."users" ("id") ON UPDATE NO ACTION ON DELETE SET NULL NOT DEFERRABLE INITIALLY IMMEDIATE;

Here is how I am calling jsonSql.build:
jsonSql.build({
    type: 'select',
    table: 'users',
    distinct: undefined,
    group: '',
    sort: {},
    limit: 25,
    offset: 0,
    fields: ['users.id',
        'users.email',
        'users.first_name',
        'users.last_name'
    ],
    condition: {},
    join: {
        projects: {
            type: 'inner',
            on: {
                'users.id': 'projects.owner_id'
            },
            select: {
                table: 'projects',
                fields: ['projects.id', 'projects.name'],
                join: {},
                sort: {},
                group: '',
                distinct: undefined,
                limit: undefined,
                offset: undefined,
                condition: {}
            },
            alias: 'projects'
        }
    }
});

That produces following query:
select "users"."id", "users"."email", "users"."first_name", "users"."last_name" from "users" inner join (select "projects"."id", "projects"."name" from "projects") as "projects" on "users"."id" = "projects"."owner_id" limit 25 offset 0;
When executed, it throws following error:
error: column projects.owner_id does not exist

My mistake. Should not have table names/aliases in sub select. I should have also added join column there.


Deduplicate JAXB dependencies

We should attempt to deduplicate JAXB dependencies.

The cql-translator relies on the eclipselink moxy implementation of JaxB in order to be able to do JSON serialization of ELM. However, within the project there were references to the reference implementation of JaxB. This was causing build warnings due to overlapping packages.
In the time since the translator was started the landscape around Java EE has changed. Oracle has donated the reference implementation to Eclipse and it's been renamed to Jakarta.
In the translator we should standardize on one implementation (which is moxy in order to support the JSON serialization) and update the dependencies, versions, etc. to reflect the Java EE changes.

Addressed in 1.4.9 release


Add Windows Support

Kindly please don't copy and paste my code, if you want changes to the PR let me know or just edit it.
There are two different Windows APIs for display brightness, each of which uses a different type of handle.
SetMonitorBrightness uses DDC/CI to control external monitors
DeviceIoControl with IOCTL_VIDEO_SET_DISPLAY_BRIGHTNESS can be used to control laptop/tablet screens.
The get() and set() functions first try calling IOCTL_VIDEO_QUERY_SUPPORTED_BRIGHTNESS to see if the power management APIs are supported, if not then attempt the DDC/CI functions instead.

Kindly please don't copy and paste my code, if you want changes to the PR let me know or just edit it.

What is that supposed to mean? Do you insinuate I have copied your code before? Your previous PR introduced many changes relying on a crate feature, which I thought was not the right approach, so none of your code ended up being copied. Only your documentation was copied (and slightly edited) and I gave you credit in commit 8dacb2a33b9326639b403f6f888c0ba0614e02e1:

Indicate what is used under the hood
Thank you to @jacob-pro whose contribution led to this documentation.

Haha no relax, I have no issue with before. I just wanted to check :)

Hi @stephaneyfx what are your plans for this PR? Are you accepting contributions to this repo? Please can you let me know otherwise I will have to publish my own version, since I need the Windows feature?

Thank you for this major contribution and all the efforts to address my comments. I will go over the PR one more time and I think it will be ready to be merged.


Get PATH from new shell

Users may leave code-server run in the background but make adjustments to their shell scripts for new env vars.
For example, /snap/bin wasn't added to my path when I started code-server then I added it later.

What if a user runs code-server with PATH=.
I think we leave it as is for now, even though it is unfortunate.

That's much more of an edge-case then a user adding to the path. We should support the primary workflow.
We can check the value of the PATH var against one obtained from the shell on startup. If they are different, we can warn the user of setting a custom path or disable the feature entirely.

Yea with a warning it sounds great to me. I'm surprised VS Code does not do that by default.

I think we should leave this alone tbh.
I'd expect only changes made to my ~/.bashrc be available in a new shell and require restarting, esp if I'm just testing something and made a mistake. Autoreloading feels like it'd be confusing behaviour and for marginal benefit. Maybe we can add a command that lets you reload the environment from a system shell?

Is this in regards to the built-in terminal? I wonder if VS Code implemented this because I added a variable to my .bashrc then opened a new terminal and the new variable was there.

then opened a new terminal and the new variable was there.

That would work because it'd source .bashrc on startup. But @kylecarbs is referring to plugins and the vscode process itself I believe.

Ahh yeah OK that makes a lot more sense. We'd have to restart the VS Code and plugins right? And then we'd need some way of detecting when the PATH has changed like with some kind of polling loop.

We'd have to restart the VS Code process and plugins right?

Perhaps when we get a new connection, we run the user's shell, print $PATH and change our $PATH to match and then communicate the change to the extension host.

The systemd service right now doesn't get any env vars from the user's shell iirc. So idk if doing this would break user expectations.

Ah I see, a new connection naturally starts a new extension host so we
don't need to restart anything. That sounds like a very reasonable
implementation to me.
It definitely would be nice to get some data on what user expectations
around this are since I imagine there aren't many (or any?) things out
there that do this.


Compiling with hljs variable?

Regarding this issue: https://github.com/Tampermonkey/tampermonkey/issues/439
Is there an easy way to compile highlight.js with the hljs variable explicitly exposed as done before version 8.4?

This was a bug in tamper-monkey that has been fixed.
This can be closed now!

@marcoscaceres Please close.


Duplicate keys bug after deleting and recreating a corpus

I got the following error after deleting a corpus and trying to recreate it with the same information:

I think that goes to another repo, transferring.


Fix configuration parser

The get_username and get_password functions didn't exist, so this method wouldn't work short of subclassing and overriding the method.

@schercav
I am using Secure_Config_Parser from pytos/common/functions/config.py.
Example code lifted almost entirely (with corrections) from the README:
#!/usr/bin/env python

import logging
from pytos.common.logging.definitions import COMMON_LOGGER_NAME
from pytos.common.logging.logger import setup_loggers
from pytos.common.functions.config import Secure_Config_Parser
from pytos.securetrack.helpers import Secure_Track_Helper

conf = Secure_Config_Parser(config_file_path="/tmp/ini.conf")
logger = logging.getLogger(COMMON_LOGGER_NAME)
setup_loggers(conf.dict("log_levels"), log_to_stdout=True)
logger.info("Hello world")
print(conf)
sth = Secure_Track_Helper.from_secure_config_parser(conf)
print(sth)

Results in:
# python sth.py
Logging to STDOUT is enabled.
<pytos.common.functions.config.Secure_Config_Parser object at 0x7f449c656310>
Traceback (most recent call last):
  File "sth.py", line 14, in <module>
    sth = Secure_Track_Helper.from_secure_config_parser(conf)
  File "/usr/local/lib/python3.7/site-packages/pytos/common/helpers.py", line 206, in from_secure_config_parser
    username = secure_config_parser_obj.get_username(cls.CONFIG_PARSER_SECTION_NAME)
AttributeError: 'Secure_Config_Parser' object has no attribute 'get_username'

The configuration example file I'm using is:
[common]
log_file_path = /var/log/pytos/

[log_levels]
common = WARNING
helpers = WARNING
reports = WARNING
requests = WARNING
mail = WARNING
sql = WARNING
xml = WARNING
web = WARNING
third_party = WARNING

[securetrack]
username = theuser
password = pass
hostname = thehost

Okay, please change the commit to the development repo and I will approve the commit.

Closing to rebase on Development branch


Devtools Kit

✏  This is a draft note about a unified set of standard APIs to create devtools. I discussed about this a bit with @antfu too and trying to write down some ideas about it.
The idea is to standardize things to be able to :

One one side create shells to host dev tools

Various types of shell:

browser extension
embedded pane
standalone app
multi-devtools app

Implementation is not standardized, but following the standard would make any shell compatible with the applets

On the other side create devtools applets/plugins to implement various tooling and development features

We would have standard APIs to write logic that could be executed in various contexts:

Devtools UI
In the page
Vite plugin
Node process
...

Provide standard APIs to communicate seamlessly no matter which context we are in
Standard manifest and APIs to expose functionality to the shell, for example:

Tabs/Launchers: title, icon, notification...
Settings
Search results/Command palette
Keyboard shortcuts
...

Use cases
Then creating the equivalent of the current Nuxt devtools would be to pick a "embedded pane" shell and add various applets like "pages", "routing", "auto-imports"... For Vue devtools, it would be different set of applets.
Then we could put all of those applets into a "standalone app" shell and it would still work because communication between "Devtools UI" and "In the page" contexts are abstracted away.
A multi-devtools app like guijs could also implement this standard and have working vue components tree directly inside it. New applets ideas coming from it could be installing packages, killing ports, etc.

Maybe a first step would be to publish a package containing some TS types that describe all the expected APIs?

Before publishing the next version, please consider addressing some critical bugs and issues. It appears that the data devtools and localhost are not syncing properly. I've encountered several bugs, one of which I've reported in the issues tab. These issues have hindered my progress, particularly when creating a video series about Vue DevTools.
The bugs I've noticed are as follows:
1. The scrollable sidebar option works intermittently, functioning correctly at times but failing to work at other times.
2. Additionally, when the "Minimize floating panel on inactive" option is set to "Always," the crosshair-like component selector button in localhost does not consistently appear. It occasionally appears, but other times it does not.
3. When I enable the "Always show the floating panel" option, the selector and devtools buttons should remain visible and not minimize. However, sometimes they do minimize, while other times they remain visible, as illustrated in the attached image.
image

I've observed that these issues often occur after changing the UI scale from normal to huge or after resetting settings using "Reset Local Settings & State" button. It's possible that these issues stem from a sync problem between the Vue DevTools panel and the VueDevtools separate window.


use new vapor/swift swift image

Hey @tanner0101, you just merged a pull request, have a coin!
You now have 1020 coins.


MultiTenantContext null after Blazor Server hot reload

When developing dotnet watch (aka hot reload) is a great performance boost. However it doesn't work with this package: MultiTenantContextAccessor<T>._asyncLocalContext will be null after a hot reload.
My analysis thus far after prodding it for a few hours. AsyncLocal apparently doesn't flow when a hot reload is performed. The middleware that initially sets the value isn't triggering, as there's no new HTTP request coming in.
I think replacing AsyncLocal with a scoped DI container might work, however I cannot get scoped dependency from a singleton IMultiTenantContextAccessor. This seems by design and "something" should own a DI scope. I would like the CircuitHost to provide me with scoped container, but I haven't found a way to make that happen.

Minimal example
Generate a Blazor Server app. Then install this package. Modify the following files:
Index.razor:
@page "/"
@using Finbuckle.MultiTenant
@inject IMultiTenantContextAccessor<TenantInfo> TenantContextAccessor

Hello, @TenantInfo?.Name!

@code {
    TenantInfo? TenantInfo => TenantContextAccessor.MultiTenantContext?.TenantInfo;
}

Program.cs:
using Finbuckle.MultiTenant;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddHttpContextAccessor();

builder.Services.AddMultiTenant<TenantInfo>()
    .WithHostStrategy("__tenant__")
    .WithInMemoryStore(options =>
    {
        options.Tenants.Add(new TenantInfo { Id = "A", Identifier = "localhost", Name = "A", } );
    });

var app = builder.Build();

if (!app.Environment.IsDevelopment())
{
    app.UseExceptionHandler("/Error");
    app.UseHsts();
}

app.UseHttpsRedirection();

app.UseStaticFiles();

app.UseMultiTenant();
app.UseRouting();

app.MapBlazorHub();
app.MapFallbackToPage("/_Host");

app.Run();

Run the application using dotnet watch. It should display "Hello, A!" ("A" being the name of the tenant). Now modify Index.razor (e.g. add a newline). Hot reload will apply changes. Now the text will read "Hello, !".

Instead of trying to fix this through DI registrations, I've fixed (worked around) the issue by flowing from AsyncLocal to a DI container and back. This works as when Blazor is booted the tenant is stored in AsyncLocal, which will then be copied over to the DI scoped container. When a hot reload is performed on the app, the tenant is copied from the DI scoped container back to AsyncLocal.
Note that we could also do something similar with cascading parameters, but then the current tenant would still not be visible to other parts of the code.
TenantResolver.razor
@using Finbuckle.MultiTenant
@inject TenantContainer<TenantInfo> Container;
@inject IMultiTenantContextAccessor<TenantInfo> Accessor;

@ChildContent

@code {

    [Parameter]
    public RenderFragment ChildContent { get; set; } = null!;

    protected override void OnInitialized()
    {
        Container.MultiTenantContext ??= Accessor.MultiTenantContext;
    }

    protected override void OnParametersSet()
    {
        Accessor.MultiTenantContext ??= Container.MultiTenantContext;
    }

}

Program.cs
builder.Services.AddScoped<TenantContainer<TenantInfo>>();

public class TenantContainer<T> : IMultiTenantContextAccessor<T> where T : class, ITenantInfo, new()
{
    public IMultiTenantContext<T>? MultiTenantContext { get; set; }
}

Hi, for other reasons I'm considering going with a scoped instance underlying IMultitenantAccessor so thanks for helping me justify it. In the meantime I'm glad you have a workaround. I'm going to go ahead and close this but feel free to reopen.
Thanks!

Beware that an instance scoped to the http request doesn’t flow to the blazor circuit’s scope.Op 13 okt. 2022 om 06:32 heeft Andrew White @.***> het volgende geschreven:
Closed #599 as completed.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>


Toggle & 'and' logic

Each 'person' has multiple "Ethnicities" assigned to them, so I'd like to create a TOGGLE for each of the Ethnicities. The logic should be AND ... so that it only returns 'persons' that meet all of the TOGGLED ethnicities.
I directly mimicked - https://demos.kunkalabs.com/mixitup/toggle-filtering-and-logic/
However, it seems to use 'or' logic, as it returns all persons that meet ANY of the Toggles. For example, if someone has only "Hi" (hispanic) ... as long as HISPANIC is toggled on, any OTHER Ethnicity chosen that person will STILL be returned. I'd like it to only display results when ALL criteria are met.

URL - http://strawhat-auditions.com/marcoApp/?page=actorSearch
On a different note, I cannot find a method to check a RANGE of values or dates. Example is imagine there is a DATA TYPE = date-date-end="06-06-2017" ... and on the front end there is a select field that has 3 options (Dates before Today ... Dates after Today ... Dates ON Today).
My current workset, is I have TWO days "Start & End" ... so I'd like to provide users with TWO date pickers as filters ... and do "Min/Max" styling logic ... where if the FIRST DATE input == '02-02-2017" and the SECOND DATE input == '02-02-2019' ... only records with a Date between those two dates ... (less then SECOND ... and more then FIRST)

Hi Marco,
Thanks for your questions.
Firstly, the control.toggleLogic configuration option does not affect the behavior of the MultiFilter extension. This is only applicable when using MixItUp's build-in controls.
When using MultiFilter, you define the logic using the multifilter.logicWithinGroup and multifilter.logicBetweenGroups` configuration options. If you want to override logic for a specific group, you can do this in its markup. For example:
<fieldset data-filter-group data-logic="and">

See "Configuring Filter Group Logic" in the following documentation for more information:
https://www.kunkalabs.com/mixitup-multifilter/docs/get-started/
Regarding your second question, MixItUp uses the DOM Selectors Level 2 API under the hood. This API does not currently implement a way of querying DOM attributes by a range, so we must write custom JavaScript functionality to do this, which requires filtering via the API rather than the built-in controls.
Unfortunately, combining custom API-based filtering functionality with the selector-based MultiFilter extension is not easily done, but you may find the following discussion helpful:
https://github.com/patrickkunka/mixitup/issues/283

When using MultiFilter, you define the logic using the multifilter.logicWithinGroup and multifilter.logicBetweenGroups
@patrickkunka  I have purchased and implemented the Multifilter extension on a webflow prototype.
Not much of a developer, here's what I'm trying to do:

I have a select filter and filter toggles ( 3 toggles and a reset button)
I want to be able to have an <option>  under the selector filter that resets everything under the selector filter AND resets the toggles
Is this possible with MixItUp + MultiFilter?
If so how?
https://preview.webflow.com/preview/new-venture-3?utm_source=new-venture-3&preview=9216761bb107c0079c5f2802c53048cc

Hi @Domzw
The multifilter extension expects all <option> within a select to be filter controls, so unfortunately, having a global reset button in here would not work.
You could have a "local" reset option, (e.g. with a value of .mix which would essentially reset its own filter group only, but as far as reseting all form inputs for the whole mixer, you would need to use an actual reset button for that: <button type="reset">Reset</button>.
I hope that helps.


How to compare schemas?

Looking for some help and guidance on comparing two Zod schemas.
More specifically, I would like to assert whether a schema contains another schema. For example,
const u = z.object({ a: z.string(), b: z.number() })
const v =  z.object({ a: z:string() })
u.contains(v) // pseudo code, expect true

more details on my somewhat unusual use case.
For example, with the following type definition
function a(): { x: string, y: string };
function b({ x: string }): void;
function c({ y: string }): void;

functions a is compatible with b and c. because both b(a()) and c(a()) are valid.
while b and c are not compatible with each other, doing a(b('')) will result in a type error.

Typescript works well in handling this if how the functions are combined is predetermined at compile time. However, in my use case,  how the functions are chained together is determined at runtime.
So I thought maybe I can leverage Zod to define the function's interfaces and use that to the compatibility at runtime.
const a = z.function().args().returns({ x: z.string(), y: z.string() });
const b = z.function().args({ x: z.string() });
const c = z.function().args({ y: z.string() });

// how do I do something like this? using chai expect as an example below
expect(a.returnTypes()).deep.includes(b.parameters()) // true
expect(a.returnTypes()).deep.includes(c.parameters()) // true
expect(b.returnTypes()).deep.includes(c.parameters()) // false

Well, this doesn't work. Running the following
expect(z.string()).deep.include(z.string());

gives
AssertionError: expected ZodString{ …(24) } to have deep property 'spa' of [Function bound safeParseAsync], but got [Function bound safeParseAsync]

How should I go about comparing two Zod schemas?
Any pointer is much appreciated. Thanks

I think this is closely related to the issue of serialization of schema.
Related Issues https://github.com/colinhacks/zod/issues/507 https://github.com/colinhacks/zod/issues/1341 https://github.com/colinhacks/zod/issues/507
if the schemas can be serialization to JSON, then I think it is rather easy to compare the two for containment.
Given the discussions on the issues above, I don't think there is an easy way to do it, especially when Zod has functional refinement.


Add WasmJs target

Hi. As you can see in the 2nd commit, the Kotest lack of WasmJs support is blocking us from enabling it in this repo.
The Kotest seems to have existing PR for adding Wasm created before Christmas 🤞 it won't take long.

Thanks for looking into this! Yes, I had poked around at it recently and came across the same issue with kotest and have been waiting on that to get much deeper into WASM support.
I'm just a few days away from updating Kudzu/Ballast to support Kotlin 1.9.22 (with some additional features in Ballast), and once that's released I will work on integrating these changes whether or not Kotest is supported by then. But this is a great start and will make things much easier for me, thank you!


Let user choose RowID or another id column in Spatial Weights node

As a user I want to specify the id column that should be used in the resulting table of the Spatial Weights node. Currently the node uses the RowID. This was requested by a user in the forum.
Add a new Focal column selection parameter that also allows to select the RowID (default) to let the user choose a column that is used as focal column.

@koettert @UrbanGISer I think it makes no sense to let the user select the ID column for calculating the spatial weight. Bc the calculation in the flowing modeling nodes will always use the default one (ie. they use [0, the_rows_of_the_data]).
But what we can do is we can append two columns of the focal_id, and neibour_id if the user wants to set the ID column and identify which column reflect which data of the input easily.


chore(dlc_protocol): Track rollovers in dlc protocol table

Adds a dlc_protocol_type to the dlc_protocols table, allowing us to show what action triggered the dlc protocol. I opted to adding this enum, as it is helpful in deciding post processing actions, and the renew protocol is used for rollover and opening positions, so it would be ambiguous picking that information from the dlc_messages.
orderbook=# select protocol_type, previous_protocol_id, protocol_id, contract_id, channel_id, protocol_state from dlc_protocols where trader_pubkey='02e66db0280277b35f88b1a1fcf58f8b2208568b6c7ea9eb071d894836865bef63';
 protocol_type |         previous_protocol_id         |             protocol_id              |                           contract_id                            |                            channel_id                            | protocol_state
---------------+--------------------------------------+--------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------+----------------
 open          |                                      | 6d6a8ded-997e-4ed1-a390-d626f271eee0 | a02000f42e1bee780c81f4e13f4623c0db6b047a9e59b70cf079eedc45b20801 | 990afbeff87f7ef9cd68b7982f35174a2283005d301130c621e4ed15feb2a5e5 | Success
 settle        | 6d6a8ded-997e-4ed1-a390-d626f271eee0 | 47c03bc0-eb46-4edc-96ff-e993d9f382be | a02000f42e1bee780c81f4e13f4623c0db6b047a9e59b70cf079eedc45b20801 | 990afbeff87f7ef9cd68b7982f35174a2283005d301130c621e4ed15feb2a5e5 | Success
 renew         | 47c03bc0-eb46-4edc-96ff-e993d9f382be | 2fd477dd-9a1b-4bd9-a86a-91eda2624415 | f2ff62b546ed3b43cb0031be56c512e3f5b6e4fd8cae89311ecfd4c6f21a6daa | 990afbeff87f7ef9cd68b7982f35174a2283005d301130c621e4ed15feb2a5e5 | Success
 rollover      | 2fd477dd-9a1b-4bd9-a86a-91eda2624415 | ad913883-bda0-4ffd-934e-df25610c08ae | 3336fd8a8b07d88dd1e5ab39f7b356f32db8d17f78d65f0f7214fd73caafad8f | 990afbeff87f7ef9cd68b7982f35174a2283005d301130c621e4ed15feb2a5e5 | Success
 settle        | ad913883-bda0-4ffd-934e-df25610c08ae | c22adca5-cc5b-4e1d-9ef9-33bf5e4aeee5 | 3336fd8a8b07d88dd1e5ab39f7b356f32db8d17f78d65f0f7214fd73caafad8f | 990afbeff87f7ef9cd68b7982f35174a2283005d301130c621e4ed15feb2a5e5 | Success

@holzeis: Can we close https://github.com/get10101/10101/issues/2107 with this PR? It's not the same solution, but that's what I wanted originally.

@holzeis: Can we close #2107 with this PR? It's not the same solution, but I think what you are doing here is what I suggested originally anyway.

Yes, although we might want to keep it as i think it could be useful to have a link from the dlc_protocol to the dlc_messages


Add support for keyboard shortcuts for file navigation (next file and previous file)

I would like to be able to move quickly into a PR files (like next file or previous file) with a hotkey. Currently there is a command to move to next changes (or previous) in vscode but not to move to next file. Adding those commands would greatly improve my experience in reviews.

I would take this.

+1 keyboard navigation in the treeview isn't very well known

Workaround
To change file

Run View: Focus into Side Bar (Cmd+0).
Press Down then Enter to go to next file. The focus stays in the sidebar.
Run Move to Next Change (Alt+F5) to navigate the changes. The focus stays in the sidebar.
Press Tab then Enter to mark file as viewed. Repeat step 2 until all reviewed.

Unfortunately to add review comments I have not found a way to do this using only keyboard yet.

For switching between files, I use this extension https://marketplace.visualstudio.com/items?itemName=geddski.macros
and create keyboard shortcut to a macro such as
        "githubPullRequest.nextFile": [
            "workbench.action.closeActiveEditor",
            "pr:github.focus",
            "macros.pullRequest.selectNextFile",
        ],

Looking at the declaration for pr.markFileAsViewed it seems to expect a URI object ({ path: string }). I tried adding the following keybinding:
  {
    "key": "cmd+g v",
    "command": "pr.markFileAsViewed",
    "args": { "path": "${file}" },
  }

While it no longer shows any error message it also doesn't seem to mark the current file as viewed either. Not sure if the ${path} interpolation is expanded as I expected either.

pr.markFileAsViewed will mark the active file as viewed now (and it will close it).
There is also a command for going to next diff across files: Go to Next Diff in Pull Request.

Nice! Is there any equivalent "Go to Previous Diff in Pull Request"? From a quick look I don't see one, should I file a new issue to request that?

@ian-h-chamberlain Adding the "Go to Previous Diff in Pull Request" command here: https://github.com/microsoft/vscode-pull-request-github/pull/4328
It should be in the pre-release build of the extension tomorrow.


Using with Blade templates

Hello. HEML looks super useful! I'd like to use it to build our Blade templates (for use with Laravel), however, I'm wondering how to get around the following issue.
For example, in my Blade file, I use
@lang('email.confirm_button')

I want the contents inside the {{ }} tags to effectively be ignored by HEML. It mostly works, but there's a problem with the quotation marks. Using the online editor, the above gives
@lang('email.confirm_button')

which is almost perfect, but the ' is replaced by '.
If I include heml-ignore on the tag then the template parts work, but then I lose the HEML specific additions for a link.
@lang('email.confirm_button')

Any ideas? Thanks!

Hey David 👋
Thanks so much for all the detail on this! I'm going dig into this one, and I'll post an update as soon as I have more info!

I'm also using HEML with a template engine (ERB, which uses <% %> ). I had to choose different start/end tags  and then substitute them after heml building.
It would be great if there was some HEML tag for surrounding text that you'd like to be inserted into the HTML without any transformations.

issue

Issue

Hmm, isn't a better workflow to first process with the template engine, and then put it into HEML?

Well the values in the template will be replaced at runtime. Unless I'm misunderstanding you?

Yeah, I didn't think of the use case of compiling the templates before, I'm currently rendering with heml directly when I make the email call and thus have no problem templating before. It's just a bit inconvenient when previewing the emails...
I didn't consider that you can also compile the heml first and then use it multiple times, my bad...

No problem! It's possible both ways, I suppose. I just like to generate the template once and know exactly what I'm sending out (minus the variables).

Yeah, that's actually quite smart. Do you check in the compiled templates into source control?

I've not actually done it yet, but that's my plan. I'd have the HEML templates stored somewhere, run a Gulp command to generate the Blade files, and then probably check in both the HEML and the Blade. That way someone could recompile them if they change the HEML.

I actually got quite lucky here, I'm using SES to send my emails and they actually support templating out of the box. My workflow ended up going (build time) HEML -> HTML -> SES Template.
I'm now convinced though that the the best way is to do HEML compilation first, and then templating. Since this avoids wasting a ton of cpu to do basically the same work over and over again.
So, could a solution to this problem be something like this:
We add some new configuration options, maybe { templateStartDelimiter: '{{', templateStopDelimiter: '}}' }
When these are set, heml will recognise the {{ and simply pass everything thru as is, without any extra quoting, until the }} is found. That way it will work when passing it to the template engine.

I like that idea @LinusU. Thought it would be nice to have this handled correctly by default. I don't imagine any situation where someone would want  to be encoded to
Am I missing a use case where the current functionality is desired?

Digging into it, the problem is stemming from the stringify-attributes library. Its a fairly simple function, so I think the best solution is to pull the functionality in, without the escaping. Thoughts?

Sounds good 👍
The only problem I can think of is that there are many different template systems out there. Ejs is quite common in the Node.js community and uses <% and %>. Some moustache flavours uses only a single { and }.

#37 was merged in and released in 1.1.2!

Fantastic! I’m excited to try it out. Thank you so much, @avigoldman.


Cannot GET / in new version

Hello,
I did step by step of instruction, but exchange have error.
On IP adress displays only Cannot GET /.
I see older issues with change path for database, but it is from 2018 and now it does not work even with a path override.
Do you have any advice please?
Thank you

How did you fix it?


VMS: pretend to use -znodelete

Checklist

[x] CLA is signed

Description of change

VMS only unloads shared libraries at process rundown, so tell the
OpenSSL code so by pretending we linked with -znodelete.

Merged


How to install stock_analysis package?

Dear
I don't know how to install stock_analysis packate.
Please let me know to do.
Thanks
Kisik

Hi there. You will need to follow the instructions laid out in the book starting on page 34. Without any information from your end, I can't help more than that.

Dear Stefmolin,
I followed your instruction and I've learned your code until 'Adding reference lines' section in Chapter 6.
from stock_analysis import stock_analyzer
fb_analyzer = StockAnalyzer(fb)
The above second code in 3-customizing_visualizations.ipynb notebook makes an error as follows:
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_29928/2916400064.py in <module>
----> 1 from stock_analysis import stock_analyzer
     2
      3 fb_analyzer = StockAnalyzer(fb)

ModuleNotFoundError: No module named 'stock_analysis'
I copied the 'visual_aids' folder into 'ch_06' folder and renamed as 'stock_analysis'.
The cell still shows the error.
What should I do?

I copied the 'visual_aids' folder into 'ch_06' folder and renamed as 'stock_analysis'.

Why? These are two separate packages. In addition, there is no need to move anything when the directions for environment setup in chapter 1 are followed. I would suggest you go back to chapter 1 (page 34) and work through setting up the environment following the directions exactly or, alternatively, use this Binder environment, which has everything installed and therefore requires no setup on your end. If you chose the former and have issues along the way, please provide all commands you have run from the command line and their output.

I solved the problem after re-install the requirements files.
Thanks


NLP Course Reviews for Simplified Chinese (zh-CN)

Hi there 👋
Let's review the zh-CN translation of the course, so that the whole community can benefit from this resource 🌎!
As well as fix: #118 ;-D
Below are the chapters and files that need reviewing - let us know here if you'd like to review any and we'll add your name to the list. Once you're finished, open a pull request and tag this issue by including #552 in the description.
💯 Considering that this is a course designed for beginners, it might be helpful to provide necessary explanations for some technical terms used throughout the course, making the content more accessible to the target audience.
The review work for this NLP course is also considered one of the "onboarding tasks" for new translation volunteers.
The recommended PR title is: docs(zh-cn): [NLP Course] Reviewed {{File_Name}}
like:
docs(zh-cn): [NLP Course] Reviewed `chapter0/1.mdx`

Note:

Please claim one course review item at a time.
Considering it will take times to review your PR, please try to 1) Fork this repo 2) Start a new branch to review 3) Open a Pull Request from that branch.
Let the team know if you have any questions here on the Discord chinese-simplified-translation channel.

Chapters
0 - Setup

[ ] chapter0/1.mdx - 课程简介

1 - Transformer models

[ ] chapter1/1.mdx -  本章简介
[ ] chapter1/2.mdx - 自然语言处理
[ ] chapter1/3.mdx -  Transformers 能做什么
[ ] chapter1/4.mdx - Transformers 是如何工作的
[ ] chapter1/5.mdx - “编码器”模型
[ ] chapter1/6.mdx - “解码器”模型
[ ] chapter1/7.mdx - 序列到序列模型
[ ] chapter1/8.mdx - 偏见和局限性
[ ] chapter1/9.mdx - 总结
[ ] chapter1/10.mdx - 章末小测试

2 - Using 🤗 Transformers

[ ] chapter2/1.mdx - 本章简介
[ ] chapter2/2.mdx - 管道的内部
[ ] chapter2/3.mdx - 模型
[ ] chapter2/4.mdx - 标记器
[ ] chapter2/5.mdx - 处理多个序列
[ ] chapter2/6.mdx - 把它们放在一起
[ ] chapter2/7.mdx - 基本用法完成
[ ] chapter2/8.mdx - 章末小测试

3 - Fine-tuning a pretrained model

[ ] chapter3/1.mdx - 本章简介
[ ] chapter3/2.mdx - 处理数据
[ ] chapter3/3.mdx - 使用 Trainer API 微调模型
[ ] chapter3/3_tf.mdx - 使用 Keras 微调一个模型
[ ] chapter3/4.mdx - 一个完整的训练
[ ] chapter3/5.mdx - 微调，检查
[ ] chapter3/6.mdx - 章末小测验

4 - Sharing models and tokenizers

[ ] chapter4/1.mdx - The Hugging Face Hub
[ ] chapter4/2.mdx - 使用预训练模型
[ ] chapter4/3.mdx - 共享预训练模型
[ ] chapter4/4.mdx - 构建模型卡片
[ ] chapter4/5.mdx - Part 1 完结
[ ] chapter4/6.mdx - 章末小测试

5 - The 🤗 Datasets library

[ ] chapter5/1.mdx - 本章简介
[ ] chapter5/2.mdx - 如果我的数据集不在 Hub 上怎么办
[ ] chapter5/3.mdx - 是时候来学一下切片了
[ ] chapter5/4.mdx - 大数据? 🤗 Datasets 来救援
[ ] chapter5/5.mdx - 创建自己的数据集
[ ] chapter5/6.mdx - 使用 FAISS 进行语义搜索
[ ] chapter5/7.mdx - 🤗 Datasets 回顾
[ ] chapter5/8.mdx - 章末小测试

6 -  The 🤗 Tokenizers library

[ ] chapter6/1.mdx - 本章简介
[ ] chapter6/2.mdx - 根据已有的tokenizer训练新的tokenizer
[ ] chapter6/3.mdx - 快速标记器的特殊能力
[ ] chapter6/3b.mdx - QA 管道中的快速标记器
[ ] chapter6/4.mdx - 标准化和预标记化
[ ] chapter6/5.mdx - 字节对编码标记化
[ ] chapter6/6.mdx - WordPiece 标记化
[ ] chapter6/7.mdx - Unigram标记化
[ ] chapter6/8.mdx - 逐块地构建标记器
[ ] chapter6/9.mdx - 标记器回顾
[ ] chapter6/10.mdx - 章末小测试

7 - Main NLP tasks

[ ] chapter7/1.mdx - 本章简介
[ ] chapter7/2.mdx - Token 分类
[ ] chapter7/3.mdx - 微调掩码语言模型
[ ] chapter7/4.mdx - 翻译
[ ] chapter7/5.mdx - 提取文本摘要
[ ] chapter7/6.mdx - 从头开始训练因果语言模型
[ ] chapter7/7.mdx - 问答
[ ] chapter7/8.mdx - 精通自然语言处理
[ ] chapter7/9.mdx - 章末小测试

8 - How to ask for help

[ ] chapter8/1.mdx - 本章简介
[ ] chapter8/2.mdx - 出现错误时该怎么办
[ ] chapter8/3.mdx - 在论坛上寻求帮助
[ ] chapter8/4.mdx - 调试训练管道
[ ] chapter8/4_tf.mdx - Debugging the training pipeline
[ ] chapter8/5.mdx - 如何写一个好问题
[ ] chapter8/6.mdx - 第2部分完成
[ ] chapter8/7.mdx - 章末小测试

Events

[ ] events/1.mdx - Live sessions and workshops (need translation)
[ ] events/2.mdx - Part 2 发布活动
[ ] events/3.mdx - Gradio Blocks Party (need translation)

I chose chapter 2 for translation calibration 🤗.

Subject: Feedback on Chinese Translation of the Hugging Face NLP Course
Dear Hugging Face Team,
I hope this email finds you well. I am writing to provide feedback on the Chinese translation of the NLP Course available on your website. As an enthusiastic learner, I was excited to explore the course content in Chinese. However, I noticed that the translation appears to have been done using machine translation, resulting in several issues that make it challenging for readers like me to learn effectively.
Firstly, there are clear traces of machine translation throughout the course. The phrasing often feels unnatural and does not flow smoothly, which can be confusing and distracting. Additionally, some sentences suffer from grammatical errors, making it difficult to grasp the intended meaning.
Furthermore, certain technical terms and concepts have not been accurately translated, leading to potential misunderstandings for learners. As a result, it becomes challenging to follow the course material and grasp the core concepts effectively.
I understand that translation can be a complex task, and I want to acknowledge the effort put into making the course available in multiple languages. However, I believe that addressing these issues will significantly enhance the learning experience for Chinese-speaking students.
I would like to offer some constructive suggestions to improve the translation quality:
Consider using professional human translators who are proficient in both NLP and the target language. This will help ensure accurate and contextually appropriate translations.
Conduct thorough proofreading and editing to eliminate any grammar or phrasing errors that might have been introduced during the translation process.
Establish a review process involving native speakers of the target language to provide valuable feedback and ensure the highest quality of translation.
If possible, provide an option for users to switch to the original English version if they find the Chinese translation too challenging to comprehend.
I want to emphasize that despite the translation issues, I appreciate the wealth of knowledge and resources available on your platform. I believe that with improvements to the Chinese translation, more learners will benefit from your exceptional NLP Course.
Thank you for considering my feedback. I am hopeful that you will take my suggestions into account to enhance the Chinese version of the NLP Course. If there are any updates or changes made, I would be delighted to revisit the course and recommend it to others in my community.
Once again, thank you for your dedication to providing valuable educational content. I look forward to witnessing the growth and improvement of the Chinese translation.
Best regards,
[chaochao]
<EMAIL_ADDRESS>主题：关于 Hugging Face NLP Course 中文翻译的反馈
亲爱的 Hugging Face 团队，
你好。我写信是为了就贵网站上 NLP Course 的中文翻译提供一些反馈。非常冒昧地在这个 issues 上给出这段话, 这是因为我仅仅通过 Github 上 找到了这里, 但没有找到您的邮件(只有你的推特账号). 作为一个积极学习者，我对用中文探索这门课程内容充满期待。但是，我发现翻译似乎带有机器翻译的痕迹，导致了一些问题，让像我这样的读者学习起来有些困难。
首先，课程中明显能看到机器翻译的痕迹。句子表达常常不够自然，缺乏流畅性，这可能会令人感到困惑和分心。此外，一些句子存在语法错误，让我们难以理解其真实含义。
其次，某些技术术语和概念并没有得到准确的翻译，导致学习者可能会对此产生误解。这让我们很难跟上课程内容，准确掌握核心概念。例如在第 9 章的 Gradio 的章节中很多专业术语都翻译的不准确, 一些细节也很不好, 比如说 英文和中文之间没有空格, 还有 中文版本没有相应的 colab 链接, 很多脚本并没有展示, 仅仅是 "Your space is on error, check its status on hf.co" 这句话等.
最后, 仅仅是 NLP Course 有相应的中文版本, 至于其他的课程以及文档都没有中文版本, 我觉得这并不是一个好的事情.
我理解翻译是个复杂的任务，同时我也想感谢您为了让更多人能接触到课程而进行多语言翻译的努力。然而，我相信解决这些问题将大大提升中文学习者的学习体验。
我想提供一些建设性的建议，以改进翻译质量：

考虑使用专业的人工翻译人员，他们精通 NLP 和目标语言，以确保准确和符合上下文的翻译。

进行彻底的校对和编辑工作，消除可能在翻译过程中引入的语法或表达错误。

设立一个由目标语言的母语使用者组成的审核流程，以提供宝贵的反馈，确保翻译质量达到最高水平。

如果可能，为用户提供切换到原版英文版本的选项，以防中文翻译过于困难理解。

我想强调，尽管存在翻译问题，我依然感谢您的平台提供了丰富的知识和资源。我相信通过改进中文翻译，更多的学习者将从您出色的 NLP Course 中受益。作为一个母语是非英文的人, 虽然我有阅读英文的水平(虽然水平并不高), 但我更倾向于中文的阅读和学习, 毕竟这是我的母语.
感谢您考虑我的反馈。我希望您能采纳我的建议，改进 NLP Course 的中文翻译。如果有任何更新或更改，我将很高兴重新学习这门课程，并向我所在的社区推荐。
再次感谢您致力于提供有价值的教育内容。我期待着看到中文翻译的进步和改善。
最诚挚的问候，
【超超】
<EMAIL_ADDRESS>

Dear Chaochao,
Hello, I am one of the initiator of the Huggingface Course translation project. I'm glad to be able to provide feedback on the course, point out some current issues, and offer some targeted suggestions. Last year, we came across this course and benefited from it. We wanted to contribute to the community by helping beginners, just as we benefited from excellent Chinese translations when we started learning computers. However, due to time conflicts, learning pressure, and personnel changes, we didn't complete the translation of the second half, resulting in machine translation in that part.
The good news is that we reorganized the translation in June this year. This time, we are retranslating and proofreading all the content of the course to improve the quality and accuracy of the translation. So far, the work is nearing completion, and if everything goes well, a brand-new version should be available in mid-August.
In this version, we will address the following issues:
A translation team composed of native Chinese speakers with experience in the NLP field will review the content sentence by sentence, correcting mistranslations and inappropriate expressions.
We will refer to other translation organizations such as Jiqizhixin and establish our own terminology list to ensure the accuracy and universality of key proprietary term translations.
We will establish a review mechanism, with each piece of content being reviewed at least twice to ensure accuracy.
We will update outdated and fix broken links in the text.
Once again, thank you for your attention and support for the Huggingface Course. Translation is a complex task that requires continuous investment and optimization. Please stay tuned for the release of the brand-new version of the course in mid-August. If you encounter any issues while reading, please feel free to raise them as issues, and we will continue to pay attention and actively improve. We look forward to providing excellent course resources for the community together.
Best regards,
[Qi]
亲爱的超超，
你好，我是Huggingface Course翻译的发起人之一。很高兴能够对课程提供反馈，指出目前存在的一些问题并且提供一些针对性的建议。在去年我们接触到了这个Course，并从其中受益；我们想为社区能够贡献自己的力量以帮助初学者，就像我们当年入门计算机的时候也从大量的优秀的中文翻译中受益。但是在后续的时间，因为时间冲突、学习压力和人员变动，我们没有完成后半部分的翻译，因此后半部分的出现了机翻。
一个好的消息是我们在今年的6月份重新组织了翻译，这次我们将对Course所有的内容进行重新的翻译和校对，以提高翻译的质量和准确度。到目前为止，工作已经接近了尾声，顺利的话应该可以在八月中旬看到一个全新的版本。
在这个版本中我们将对以下的问题进行处理：

由中文母语并在NLP领域有一定经验组成的翻译团队，对内容进行逐句地校审，修正错误翻译，不当的表达。
参考其他的翻译组织如机器之心，建立自身的术语表，确保关键专有名词翻译的准确性和通用性。
建立审核机制，所有内容至少完成2次校审，以确保内容的准确性。
更新过时的文中链接，修正失效的链接。
再次感谢你对Huggingface Course 的关注和支持，翻译是一个复杂的任务，需要持续的投入和优化。欢迎在本月中旬关注Course全新版本的发布，如果在那时阅读中遇见任何问题，欢迎再次提出issue，我们将持续关注并积极改进。期待我们可以一起为社区提供优秀的课程资源。

最诚挚的问候，
【淇】


feat: Add support for ignoring specific repositories

resolves #95.
From an implementation point of view this change is ready for review. I still need to document this new feature and may add one or more test cases to ensure everything is covered.

See description 😉

I still need to document this new feature ...

@gr2m I added remaining tests and documentation. Please have another look


Repo sync for protected CLA branch

The pull request is created from main637868486723901259 to main to fix git push error for protected CLA branch

@ghogen : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Release version 0.2.0

Make sure everything is working well to have v0.2.0 release.
(1) Update toml file to have version .020
(2) Build and publish to pypi
(3) On Github create a v0.2.0 tag

Completed


chore: improve node incompatibility warning

Closes https://github.com/FuelLabs/fuels-ts/issues/2283

Checklist

[x] All changes are covered by tests (or not applicable)
[x] All changes are documented (or not applicable)
[x] I reviewed the entire PR myself (preferably, on GH UI)
[x] I described all Breaking Changes (or there's none)

It definitely is an improvement. Given that this part of the API shouldn't be changing anymore, I created FuelLabs/fuel-core#2083 for network benefits. It'd make the changes in this PR obsolete, but I think it's worthwhile.

@nedsalk Would this not lead to the same error messages that are in the forum post?

@petertonysmith94 No, because that error happened due to fuel-core version mismatches between beta-5 and testnet versions which had breaking changes between them. There shouldn't be such drastic breaking changes to the graphql API anymore so we can do it.

@nedsalk I am not confident that breaking changes within the graphQL API will no longer happen.


odesolve(...verbose=True) hangs under python 3

test_integrate.py's test_integrate_with_expression calls odesolve with verbose=True, and it seems like the communication with BNG hangs when waiting for the end of the output. This happens on python 3.4.3 on homebrew on the mac I'm using right now, not sure about other platforms yet. There shouldn't be any verbose=True integrator calls in the test suite, so that's the quick fix to make the tests run to completion, but we do need to figure out what's wrong with the verbose=True code in bng.py under python 3 for general usage.

Oops, #167 shouldn't close this. Try to remember to reopen after the PR merge auto-closes it. :)

Has this been resolved? Works for me on Python 3.5.2 macOS/homebrew.

The full test suite seems to run fine on Python 3.6.4 on macOS for me. There have been a lot of changes to the simulation engine since this issue was filed in September 2015, so I'll presume this has been fixed somewhere along the line. Please reopen if you're still experiencing issues.
Thanks.


minor typo fixes

changed "breches" to "breaches"
changed "self-infliced" to "self-inflicted"
changed "understadn" to "understand"

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


As an employee that is working for an organisation that requires reporting on population information I want to create a report of the top N populated cities in the world where N is provided by the user.

SELECT city.name, city.population
FROM city
ORDER BY population DESC
LIMIT :N;
public City getUseCase12(int n)
{
try
{
// Create an SQL statement
Statement stmt = con.createStatement();
// Create string for SQL statement
String strSelect =
“SELECT city.name, city.population”
+ “FROM city”
+ “ORDER BY city.population DESC”
+ “LIMIT: ” + n;
// Execute SQL statement
ResultSet rset = stmt.executeQuery(strSelect);
// Return new country if valid.
// Check one is returned
if (rset.next())
{
City city = new City();
city.name = rset.getString("name");
city.population = rset.getString("population");
return city;
}
else
return null;
}
catch (Exception e)
{
System.out.println(e.getMessage());
System.out.println("Failed to get city details");
return null;
}
}
public void displayUseCase12(City city)
{
if (city != null)
{
System.out.println(
“Name of the city: “ + city.name + " \n"
+ "Population: " + city. population + "\n";
}
}


Inaccurate estimated reading time for Chinese posts

In my new post, there are about 2000 Chinese characters, but the estimated reading time is only 1 min, which is clearly inaccurate.
I have not tested, but I think this problem may also happen to other posts written in non-latin languages, such as Japanese, Korean, etc.
I don't know if the estimated reading time feature is natively implemented by hugo, or is an additional feature implemented by the academic theme. If it's the former, I'll open an issue in the hugo project.

Please refer to the Hugo documentation/forums. I believe there is an extra
parameter which you can add to your config to improve the accuracy of the
time estimate in this scenario.
On Mon, 9 Apr 2018, 14:00 Nick Zeng<EMAIL_ADDRESS>wrote:

In my new post
https://blog.zenggyu.com/zh/post/2018-04-09/cart-regression-tree-in-a-nutshell/,
there are about 2000 Chinese characters, but the estimated reading time is
only 1 min, which is clearly inaccurate.
I have not tested, but I think this problem may also happen to other posts
written in non-latin languages, such as Japanese, Korean, etc.
I don't know if the estimated reading time feature is natively implemented
by hugo, or is an additional feature implemented by the academic theme. If
it's the former, should I open an issue in the hugo project?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/gcushen/hugo-academic/issues/512, or mute the thread
https://github.com/notifications/unsubscribe-auth/AHMD5w1Ce7_nU4qfZSbLBWqFy4_FjJ3Gks5tm1tfgaJpZM4TMf1G
.

Found it (https://gohugo.io/getting-started/configuration/#all-configuration-settings):

hasCJKLanguage (default: false). If true, auto-detect Chinese/Japanese/Korean Languages in the content. This will make .Summary and .WordCount behave correctly for CJK languages.

Thank you for the hint! I changed that option and now the estimated reading time is 6 min.


redis server

Is there any way to configure the redis server host and port?

+1 same question

Really need this!

Please update to 1.0 to add configurations to redis. Thanks.


[Request] Run Storage Explorer on remote hosts (eg: GitHub Codespaces) and access via VNC / X11 Forwarding

I'm attempting to run the storage explorer on a GitHub Codespace - having the application run here instead of on my host machine will allow me to preconfigure this tool for all the developers on my team.
I am attempting to use  the desktop-lite Feature to set up a simple desktop environment and connect to it via the built in noVNC web gui, or via a dedicated VNC client.  This is a common pattern for VS Code development, for example.
On the default Codespace image (Ubuntu based), I have fetched the tgz and attempt to execute it

The application starts up until I hit Microsoft Storage Explorer requires a password manager service ...

Continuing on crashes the app.
@joshspicer ➜ /workspaces $ ./StorageExplorer
[2023-02-27T21:22:05.394Z] (main:28214) <NONE> Log file: /home/codespace/.config/StorageExplorer/logs/2023-02-27_212205/2023-02-27_212205_main_28214.log
[2023-02-27T21:22:05.398Z] (main:28214) <NONE> Log level: info
[2023-02-27T21:22:05.398Z] (main:28214) <INFO> Startup app state:  {
    lastWindowState: {
      rect: { x: 10, y: 24, width: 1000, height: 768 },
      maximized: false
    },
    disableGpu: false,
    dialogAutoResponse: {}
  }
[28214:0227/212205.707543:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[28214:0227/212205.707600:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2023-02-27T21:22:05.720Z] (main:28214) <INFO> No proxy environment variables exist on startup
[2023-02-27T21:22:05.720Z] (main:28214) <INFO> Applying proxy configuration
[2023-02-27T21:22:05.721Z] (main:28214) <INFO> Proxy configuration source set to: none
[2023-02-27T21:22:05.721Z] (main:28214) <INFO> Proxy configuration set to: undefined
[2023-02-27T21:22:05.722Z] (main:28214) <INFO> Initializing user accounts manager account store...
[2023-02-27T21:22:05.726Z] (main:28214) <INFO> Resolved resource module './resources/Shell': '/workspaces/resources/app/resources/Shell.json'
[2023-02-27T21:22:05.727Z] (main:28214) <INFO> Resolved resource module './resources/Azure': '/workspaces/resources/app/resources/Azure.json'
[2023-02-27T21:22:05.727Z] (main:28214) <INFO> Resolved resource module './resources/Host': '/workspaces/resources/app/resources/Host.json'
[2023-02-27T21:22:05.727Z] (main:28214) <INFO> Resolved resource module './resources/Activities': '/workspaces/resources/app/resources/Activities.json'
[2023-02-27T21:22:05.727Z] (main:28214) <INFO> Resolved resource module './resources/Dialogs': '/workspaces/resources/app/resources/Dialogs.json'
[2023-02-27T21:22:05.727Z] (main:28214) <INFO> Resolved resource module './resources/ExtensionManager': '/workspaces/resources/app/resources/ExtensionManager.json'
[2023-02-27T21:22:05.727Z] (main:28214) <INFO> Resolved resource module './resources/Host': '/workspaces/resources/app/resources/Host.json'
[28214:0227/212205.739843:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[28214:0227/212205.740700:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2023-02-27T21:22:05.750Z] (main:28214) <ERRO> Error checking minimum linux requirement [Error: Unknown or unsupported transport “disabled” for address “disabled:”]
[28251:0227/212205.764594:ERROR:gl_surface_egl.cc(324)] No suitable EGL configs found.
[28251:0227/212205.764714:ERROR:gl_context_egl.cc(142)] eglGetConfigAttrib failed with error EGL_BAD_CONFIG
[28251:0227/212205.765229:ERROR:gl_surface_egl.cc(324)] No suitable EGL configs found.
[28251:0227/212205.765278:ERROR:gl_surface_egl.cc(1111)] eglCreatePbufferSurface failed with error EGL_BAD_CONFIG
[28251:0227/212205.765325:ERROR:gpu_info_collector.cc(80)] gl::GLContext::CreateOffscreenGLSurface failed
[28251:0227/212205.765366:ERROR:gpu_info_collector.cc(348)] Could not create surface for info collection.
[28251:0227/212205.765413:ERROR:gpu_init.cc(87)] CollectGraphicsInfo failed.
[28251:0227/212205.766770:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[28316:0227/212205.841646:ERROR:gl_surface_egl.cc(324)] No suitable EGL configs found.
[28316:0227/212205.841788:ERROR:gl_context_egl.cc(142)] eglGetConfigAttrib failed with error EGL_BAD_CONFIG
[28316:0227/212205.842206:ERROR:gl_surface_egl.cc(324)] No suitable EGL configs found.
[28316:0227/212205.842253:ERROR:gl_surface_egl.cc(1111)] eglCreatePbufferSurface failed with error EGL_BAD_CONFIG
[28316:0227/212205.842298:ERROR:gpu_info_collector.cc(80)] gl::GLContext::CreateOffscreenGLSurface failed
[28316:0227/212205.842339:ERROR:gpu_info_collector.cc(348)] Could not create surface for info collection.
[28316:0227/212205.842381:ERROR:gpu_init.cc(87)] CollectGraphicsInfo failed.
[28316:0227/212205.868545:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[28372:0227/212205.891544:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[2023-02-27T21:22:07.118Z] (main:28214) <INFO> Initializing user accounts manager error store...
[2023-02-27T21:22:31.427Z] (main:28214) <INFO> Calling handleQuitOrRelaunch from quit
[2023-02-27T21:22:31.427Z] (main:28214) <INFO> Quitting, sessionEnded: false, force: true, quitOrRelaunch: quit
[2023-02-27T21:22:31.427Z] (main:28214) <ERRO> Error occurred while trying to actually quit: {}
[2023-02-27T21:22:31.427Z] (main:28214) <INFO> Calling quit, bye!
[28214:0227/212231.431505:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2023-02-27T21:22:31.435Z] (main:28214) <INFO> Provider proxy to Electron renderer created
[2023-02-27T21:22:31.441Z] (main:28214) <INFO> Calling handleQuitOrRelaunch from before-quit
[2023-02-27T21:22:31.441Z] (main:28214) <INFO> Handling a quit or relaunch, sessionEnded: false, force: undefined, quitOrRelaunch: quit
[2023-02-27T21:22:31.441Z] (main:28214) <INFO> Called prevent bubbling for handleQuitOrRelaunch
[2023-02-27T21:22:31.441Z] (main:28214) <INFO> Ending session...
[2023-02-27T21:22:32.036Z] (main:28214) <WARN> An implementation of 'ActivityManager.onExecuteActionEvent' has already been registered by another provider, this most recent implementation will be ignored unless 'ActivityManager.onExecuteActionEvent is used as an event'.
[2023-02-27T21:22:32.041Z] (main:28214) <WARN> An implementation of 'Environment.Theming.onThemeChanged' has already been registered by another provider, this most recent implementation will be ignored unless 'Environment.Theming.onThemeChanged is used as an event'.
[2023-02-27T21:22:32.041Z] (main:28214) <WARN> An implementation of 'Environment.Zoom.onZoomChanged' has already been registered by another provider, this most recent implementation will be ignored unless 'Environment.Zoom.onZoomChanged is used as an event'.
[2023-02-27T21:22:32.042Z] (main:28214) <WARN> An implementation of 'ActivityManager.onExecuteActionEvent' has already been registered by another provider, this most recent implementation will be ignored unless 'ActivityManager.onExecuteActionEvent is used as an event'.
[2023-02-27T21:22:32.044Z] (main:28214) <INFO> Initializing extension manager...
[2023-02-27T21:22:32.044Z] (main:28214) <INFO> Done looking for extensions to open or debug.
[2023-02-27T21:22:32.047Z] (main:28214) <INFO> Loading 15 extensions
[28214:0227/212232.097131:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[28214:0227/212232.100331:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2023-02-27T21:22:32.148Z] (main:28214) <INFO> Resolved resource module './resources/AccountPanel'<EMAIL_ADDRESS>[2023-02-27T21:22:32.152Z] (main:28214) <INFO> Extensions loaded
[2023-02-27T21:22:32.199Z] (main:28214) <INFO> Initializing user accounts manager AAD providers...
[28214:0227/212232.377038:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[28214:0227/212232.377810:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[28214:0227/212232.439195:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[28214:0227/212232.440949:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[2023-02-27T21:22:32.459Z] (main:28214) <INFO> Resolved resource module 'resources/ActivityLog'<EMAIL_ADDRESS>[2023-02-27T21:22:32.476Z] (main:28214) <INFO> Do end session
[2023-02-27T21:22:32.481Z] (main:28214) <INFO> Session ended or force set, calling handleQuitOrRelaunch again.
[2023-02-27T21:22:32.481Z] (main:28214) <INFO> Quitting, sessionEnded: true, force: undefined, quitOrRelaunch: quit
[2023-02-27T21:22:32.483Z] (main:28214) <INFO> Calling quit, bye!

I've tried a bit to figure out a workaround, but thus far have been unsuccessful. I'd love ideas to try if you have them!
Repro

To repro, you can create a GitHub Codespaces with the following .devcontainer/devcontainer.json

{
	"image": "mcr.microsoft.com/devcontainers/universal", // The default, can omit

	"init": true,
	"privileged": true,
	"runArgs": [
		"-v", "/lib/modules:/lib/modules",
		"-v", "/dev:/dev"
	],
	"features": {
		"ghcr.io/devcontainers/features/azure-cli:1": {},
		"ghcr.io/devcontainers/features/desktop-lite:1": {} // Sets up VNC environment
	},

Install the Storage Explorer dependencies and the tgz as outlined in the docs: https://learn.microsoft.com/en-us/azure/storage/common/storage-explorer-troubleshooting?tabs=linux-ubuntu#storage-explorer-dependencies

Port forward port port 6080, where desktop-lite is running the noVNC server

Run ./StorageExplorer

This looks partially related to https://github.com/microsoft/AzureStorageExplorer/issues/5384

@joshspicer are any of these links helpful to you? The first and seoncd seem especially promising.

https://github.com/atom/node-keytar/issues/132
https://github.com/microsoft/vscode/issues/137850
https://github.com/Noovolari/leapp/issues/153


Windows ngtools/webpack AoT compilation hangs infinitely at 95% emitting

OS
Windows 7 x64
Versions
angular-cli: 1.0.0-beta.18
node: 5.10.1
os: win32 x64
and after upgrading
angular-cli: 1.0.0-beta.18
node: 6.9.1
os: win32 x64
Repro steps.
I set up a repo with a testcase and description here.
In short: On Windows7 webpack aot compilation hangs indefinitly on "95% emitting". I did some debugging and finally wound up in webpack/lib/Compiler.js Compiler.prototype.emitAssets line 288.. . It seems that the path for the source-map file is generated incorrectly by concatenating 2 absolute paths in line 310: this.outputFileSystem.join(outputPath, dir) . This leads to an endless loop of failed directory creations and hangs the compilation process.
Removing devtool from the webpack configuration solves the problem (albeit loosing the source-map). Further testing shows that replacing styleUrls with styles in app.component.ts also solves the problem (albeit loosing the external css file).
The log given by the failure.
66% building modules 468/474 modules 6 active ...node_modules\rxjs\util\errorOb
66% building modules 468/475 modules 7 active ...ules\rxjs\util\UnsubscriptionE
66% building modules 469/475 modules 6 active ...ules\rxjs\util\UnsubscriptionE
66% building modules 470/475 modules 5 active ...ules\rxjs\util\UnsubscriptionE
66% building modules 471/475 modules 4 active ...ules\rxjs\util\UnsubscriptionE
66% building modules 472/475 modules 3 active ...ules\rxjs\util\UnsubscriptionE
66% building modules 473/475 modules 2 active ...ules\rxjs\util\UnsubscriptionE
66% building modules 474/475 modules 1 active ...ules\rxjs\util\UnsubscriptionE
95% emitting
Mention any other details that might be useful.
The bug was reproducable on another Windows7 development system.
Update, 2016-12-16
I upgraded to @ngtools/webpack 1.1.9 and the bug is still there. But I found a workaround by switching from css to less: In webpack.config.js:
{ test: /\.less$/, loaders: ['to-string-loader', 'css-loader', 'less-loader']},

And in app.component.ts:
styleUrls: ['./app.component.less']

Works for me so far.
Update, 2017-01-04
I updated to node 6.9.3 and npm 4.1.1. Additionally I upgraded @angular, @ngtools and various dependecies (see package.json in test repo).
Result: Still hangs at 95€ emitting.
Update, 2017-02-16
I updated @ngtools/angular to version 1.2.9. Now it works. Bug closed.

+1

+1

+1

Have the same issue here with ngtools 1.2.1 & webpack 2.1.0-beta.25
The process hangs on 95% when referencing SASS files for components. That's pretty much a show stopper for us to using AoT compilation :(

I had this issue and was able to fix after:

updating node to 6.9.2 https://nodejs.org/en/
updating npm npm install npm@latest -g

Hope this helps

I had this issue and was able to fix after:
updating node to 6.9.2 https://nodejs.org/en/
updating npm npm install npm@latest -g

I updated to node 6.9.3 and npm 4.1.1. Additionally I upgraded @angular, @ngtools and various dependecies (see package.json in test repo).
Result: Still hangs at 95€ emitting.

+1

I've found that it's caused by component style's source maps. Webpack tries to emit something like
C:\Users\***\project\dist\C:\Users\***\project\some\component\style.css.map
but it's invalid in windows. So stopping sourcemaps fixes this temporarily.

Still have this issue with the latest ngtools and webpack
Environment:
OS: Windows 10 x64
Node: v6.9.5\v7.5.0
Webpack: 2.2.1
@ngtools\webpack: 1.2.8
Webpack hangs indefinitely on 95% emitting phase.

me too
I downgraded my NodeJS to see what it happens. No luck...
Still stops silently saying "emitting".
OS: Windows 10 x64
Node: v6.9.2
Webpack: v2.2.1
I thought it has to do with the reserved character issue
with my "config.output.path" having "C:\" but I'm not sure.
path: path.resolve(__dirname, 'build')

I'm running webpack-dev-server --env.dev --progress --profile --colors with my config:
devtool: process.env.WEBPACK_DEVTOOL || 'eval-source-map',
devServer: {
	contentBase: path.join(__dirname, 'build'),
	host:		process.env.HOST || '<IP_ADDRESS>',
	port:		process.env.PORT || '8080',
	historyApiFallback: true,
	noInfo:		true
}

I updated @ngtools/angular to version 1.2.9. Now it works. Bug closed.

Updated to 1.2.9 and still the same. Works fine without SASS, though hangs right after including reference to a sass file.
@mariussl Can you please share your webpack and tsconfig.

@kamarouski : Just have a look at the repo with the testcase. You can verify that it works and examine the config.

@mariussl I pulled down your repo and it worked until i swapped out the raw-loader on the css rule to a style-loader. This change produced the 95% emitting freeze for me.

@bstaley Components styles (and templates) need to be loaded with raw-loader. If you need to use style-loader for other styles, you should change rules like this
{
  test: /\.component\.css$/,
  use: ['raw-loader']
},
{
  test: /\.css$/,
  exclude: /\.component\.css$/,
  use: ['style-loader']
},

@mariussl the test case uses css not sass. I'll try to change it to sass to see if the issue can be reproduced.

@dobbydog Thank you so much for this. I had been following an ngTool/webpack error for DAYS!!!
Turned out it was the styleUrls in the @component decorators causing the bug. Your comment just helped me fix it.

@kamarouski I've tested this last week with sass and it looks like this library still has problems with handling SASS files. Does anyone know if there's a change that this will be fixed?

I'm experiencing this with SASS files with AOT build. In mkdirP I added a console.log and see that all the invalid paths are like this:
c:\output\c:\component

@mcm-ham me too! Any work around?

For me after 2 days, I found that I had to manually install "node-sass" and add these loaders (also for node modules):
    resolve: {         extensions: ['.ts', '.js', '.json']     },
{                 test: /\.css$/,                 use: [                     'style-loader',                     'css-loader'                 ]             },             {                 test: /\.scss$/,                 use: [                     'raw-loader',                     'sass-loader'                 ]             }


Deleted redundant empty file

Might be a mistake. Empty log file.

I thought the same thing! But when I imported the project without it during our fork, it didn't work. @indranilm256 had to add it back in, oops.
The proper fix may be making it so the code doesn't throw an error and fail when the log file doesn't exist.

That's fine. I'll close this and see to the code part :))


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_0drceytzhu/clone/recipe/meta.yaml:16: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_0drceytzhu/clone/recipe/meta.yaml:22: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_0drceytzhu/clone/recipe/meta.yaml:39: missing_dev_url: The recipe is missing a dev_url
WARNING: /tmp/abs_0drceytzhu/clone/recipe/meta.yaml:39: missing_description: The recipe is missing a description
ERROR: /tmp/abs_0drceytzhu/clone/recipe/meta.yaml:39: missing_license_family: The recipe is missing the about/license_family key.
ERROR: /tmp/abs_0drceytzhu/clone/recipe/meta.yaml:39: missing_documentation: The recipe is missing a doc_url or doc_source_url
Errors were found


Please Fixed it !

I like the software, but it's not perfect. For example, the screen is a bit distorted when you run the SRM Delete command. And the computer will be more and more hot. I hope the author Fix it.

Could you post a screenshot of the distortion you mention?


Cancel timer for Ember.run.later in initializer.

This isn't the optimal fix: that's still to come, in the form of moving
this out of an initializer and into app/router.js instead. However,
this is a backwards-compatible stopgap which resolves a number
of test failures which can arise if there are any bad interactions
with other Router reopening or extension.

WHOOPS. Wrong target.


Bump version

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

Files with missing lines
Coverage Δ

vicinity/version.py
100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes


WhereIn with subquery inside join clause

Laravel Version: 5.3.31
PHP Version: 5.6.30
Database Driver & Version: Mysql 5.6

Description:
The subquery generated by this code (inside a join closure):
            $join->whereIn('ordem_de_compra_itens.id', function($query) {
                $query->from('oc_item_qc_item')
                    ->select('oc_item_qc_item.ordem_de_compra_item_id')
                    ->whereColumn(
                        'oc_item_qc_item.qc_item_id',
                        'contrato_itens.qc_item_id'
                    );
            });

Is:
	AND `ordem_de_compra_itens`.`id` IN (
		SELECT
			`oc_item_qc_item`.`ordem_de_compra_item_id`
		FROM
			`oc_item_qc_item` ON
			`oc_item_qc_item`.`qc_item_id` = `contrato_itens`.`qc_item_id`
	)

Instead of:
	AND `ordem_de_compra_itens`.`id` IN (
		SELECT
			`oc_item_qc_item`.`ordem_de_compra_item_id`
		FROM
			`oc_item_qc_item` WHERE
			`oc_item_qc_item`.`qc_item_id` = `contrato_itens`.`qc_item_id`
	)

Observe that instead of using a WHERE clause it is trying to use an ON clause.
Steps To Reproduce:
Described above.
Is this right? There is another option besides remove the query builder and use the whole query string inside a DB::raw? It is sad to do that just because a join doesn't work 😞
The worst part is that i can't use Laravel paginator properly.

5.3 is no longer supported. So kindly test this on 5.4 and let us know (issue expected in 5.4 but just in case :P )

yes please test on 5.4 and ping me if the issue still exists there, lots of things were fixed in 5.4

Hi @themsaid, this is still an issue on 5.5
Example using built-in tables:
<?php

\Route::get( '/test', function () {
    $builder = \DB::table( 'users' )
        ->join( 'password_resets', function ( JoinClause $join ) {
            $join->on( 'users.email', '=', 'password_resets.email' );
            $join->whereIn( 'email', function ( $query ) {
                // dummy example just to demonstrate issue
                $query->select( 'email' )
                    ->from( 'users' )
                    ->where( 'id', '>', 1 );
            } );
        } );

    return $builder->toSql();
} );

It outputs:
select *
from
    `users`
    inner join `password_resets`
        on `users`.`email` = `password_resets`.`email`
        and `email` in (select `email` from `users` on `id` > ?)

instead of
select *
from
    `users`
    inner join `password_resets`
        on `users`.`email` = `password_resets`.`email`
        and `email` in (select `email` from `users` WHERE `id` > ?)

I actually found this issue because I am having the very same problem with a whereExists() inside a join clause. The query builder also uses a on instead of a where

For me changing line 98 of JoinClause class
https://github.com/laravel/framework/blob/5.5/src/Illuminate/Database/Query/JoinClause.php#L98
from
    public function newQuery()
    {
        return new static($this->parentQuery, $this->type, $this->table);
    }

to:
    public function newQuery()
    {
        return $this->parentQuery->newQuery();
    }

Seems to solve the problem. I don't have the time to run all the tests today and check if this does not break anything. But I can check over the weekend.

@brunoti I made a pull-request #21008 to address this issue. Hope it gets merged.

Nice @rodrigopedra!


Always send language options

Possible fix for #44.  Remove uuid check.
I removed the check for uuid so that the language option will be send.
btw... would be nice if there would be PHPUnit tests for the library.

btw... would be nice if there would be PHPUnit tests for the library.

Hi @cmuench  as side project, in my free time i was trying to add phpunit e tests coverage.
If you want, take a look about this branch: https://github.com/roberto-butti/php-client/tree/feature/phpunit and feel free to provide feedbacks. I'm available to discuss and talk about tests.

Thanks @cmuench! We'll have a look at this and have it merged soon if it's fine.
@roberto-butti that is very interesting!


2.1.4 Change: Poe Sisters don't need that much for their torches

It is easily possible to light all 4 torches just by walking around and using the Slingshot to light them. I would say it's as easy as jumping over a long pit without the intended requirements, though maybe it takes a little longer to retry the torches if you don't do it in time. I can't remember the last time I failed Satch-less 2nd Torches but I do still mess up D8 Autumnless occasionally, for comparison, which I believe is in the logic?
so, to be specific, D7 2nd Poe requirements should be:
General D7 Access
Wizzrobe Disposal Method (bottom right chest only)
Bombs (blast wall chest and bottom right chest)
Slingshot
Fool's Ore, Sword, Bombs, or Ember Seeds (1st Poe Defeated)
Power Bracelet
Feather (2nd Poe, Isolated Lobby Chest)
that's it, because the Ember Seeds are guaranteed drops from the regrowing bushes (both 1st Poe and 2nd Poe) whether you've harvested some from a tree or not. am I right, or missing something?
(on a tangent, from there I believe it's Flippers to access the next tier of the dungeon, and then a various combination of Magnets, Scent/Mystery Seeds, Cape, and Satchel to open up Cape Chest, Maze Chest, Boss Key, and Boss. Pegasus Seeds are also guaranteed drops from the pots in the middle of the room below Armos Roulette, so you don't need access to that tree, right?)

dragonc0 told me that this was possible, so I put it in logic, then tried it, couldn't do it, and took it out again. I could be wrong, but my main concern about putting this in logic is that I think most people won't know it's even possible.

I think the key to doing it is starting with the top left torch and making sure you start at the very bottom edge of it, so you have time to go around and hit the bottom edge of the top right. the torches will be fully lit for a brief moment and that's good enough to wake up the Poe.
as for worrying somebody won't know it's possible, then I think D8 without Autumn should not be in the logic because to the untrained eye, that zig-zaggy gap does not look like something that can be cleared without Moosh.
however what I really believe in is "if it can be done with perseverence, than it shall be done", and if people see something that looks impossible, it encourages them to come here and speak up and learn more.

Autumnless D8 kind of got grandfathered in because it's in the speedrun and doesn't require much practice, but I would agree that it's the single most questionable trick in logic.
There has been some general contention lately about what should and should not be in logic, with different parties pulling in different directions. Ultimately there will need to be a "developer-intended" set of logic and an "anything safe and RTA-possible" set, where "safety" is defined in terms of potential to softlock.

Addressed in e02976be86f22a902c35c557520c222eba7a14b0. It's not in normal difficulty but it is in hard difficulty.