DefaultAzureCredential fails with timeout shelling out to az

Package Name: azure.identity
Package Version: 1.4.1
Operating System:Linux
Python Version: 3.7.3

Describe the bug
We are routinely seeing failures using azure.identity.DefaultAzureCredential.
We try to wrap operations in retry loops where we can, but this is impractical
with paging objects when the lists are long.
The exception itself is also puzzling. Is azure.identity.DefaultAzureCredential
really shelling out to az? If so, what is az doing? Is there an alternate
credential class that we should be using?
Here is an example:
self.az_compute is azure.mgmt.compute.ComputeManagementClient
File REDACTED
return list(self.az_compute.virtual_machines.list(resource_group))
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/paging.py", line 122, in next
return next(self._page_iterator)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/paging.py", line 74, in next
self._response = self._get_next(self.continuation_token)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/mgmt/compute/v2020_06_01/operations/_virtual_machines_operations.py", line 1041, in get_next
pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/pipeline/_base.py", line 211, in run
return first_node.send(pipeline_request)  # type: ignore
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/pipeline/_base.py", line 71, in send
response = self.next.send(request)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/mgmt/core/policies/_base.py", line 47, in send
response = self.next.send(request)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/pipeline/_base.py", line 71, in send
response = self.next.send(request)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/pipeline/_base.py", line 71, in send
response = self.next.send(request)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/pipeline/_base.py", line 71, in send
response = self.next.send(request)
[Previous line repeated 1 more time]
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/pipeline/policies/_redirect.py", line 157, in send
response = self.next.send(request)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/pipeline/policies/_retry.py", line 436, in send
response = self.next.send(request)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/pipeline/_base.py", line 69, in send
_await_result(self._policy.on_request, request)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/pipeline/_tools.py", line 29, in await_result
result = func(*args, **kwargs)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/core/pipeline/policies/_authentication.py", line 93, in on_request
self._token = self._credential.get_token(*self._scopes)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/identity/_credentials/default.py", line 140, in get_token
return super(DefaultAzureCredential, self).get_token(*scopes, **kwargs)
File "/REDACTED/venv/lib/python3.7/site-packages/azure/identity/_credentials/chained.py", line 90, in get_token
raise ClientAuthenticationError(message=message)
azure.core.exceptions.ClientAuthenticationError: DefaultAzureCredential failed to retrieve a token from the included credentials.
Attempted credentials:
AzureCliCredential: Command '['/bin/sh', '-c', 'az account get-access-token --output json --resource https://management.azure.com']' timed out after 10 seconds
To Reproduce
Steps to reproduce the behavior:
I don't have a single, deterministic case for this, but any application which runs for hours doing Azure ops will eventually hit this problem and choke.

Yes, it's really shelling out to az get-access-token, as captured in the error message. There's clearly significant overhead in that approach; the feature was designed for low intensity scenarios like local development. I'd be surprised to see it take more than 10 seconds in such a scenario, but of course at a high enough level of utilization or low enough level of resources a machine may not be able to beat the deadline.

Is there an alternate credential class that we should be using?

It depends on your application. There are more performant credentials for authenticating users and service principals, but only AzureCliCredential (or DefaultAzureCredential, which uses it) can authenticate via the CLI. Does your scenario require the CLI?

We do not require the CLI. When we use UAMI assigned to the VM for auth, we use ManagedIdentityCredential. For user-based auth, we assume that the user has already done "az login --use-device-code", and we use DefaultAzureCredential.

You could use DeviceCodeCredential instead. That would be much faster. Is it okay to send users through the device code flow every time they run your application?

No, it's not okay to make them re-auth every time they run. We want to re-use the auth they already have from previous logins.

For us, this is complicated by the fact that conflicting dependencies prevent us from having azure.cli in our application's virtualenv.

In the last azure-identity beta (1.5.0b2) DeviceCodeCredential can use a persistent cache so you don't need interactive authentication every run:
DeviceCodeCredential(enable_persistent_cache=True, allow_unencrypted_cache=True)

allow_unencrypted_cache configures the credential to fall back to using a plaintext file when encryption isn't possible, e.g. in an SSH session (libsecret provides the encryption).
We plan to revise this configuration API before our next stable release, so although it offers a workaround for this problem today, you would need to update your code before moving to 1.6.0.

Oooh, thanks! That sounds like what I want.

Were you able to work around this with DeviceCodeCredential?

While waiting for the new identity module, I worked around this by subclassing azure.identity._credentials.azure_cli.AzureCliCredential and overloading get_token() to do retries. It's not perfect, but it got us out of the weeds.

I'm closing this issue because azure-identity 1.6.0 is available now with a stable API for persistent token caching (the user_authentication sample demonstrates it). AzureCliCredential doesn't have this new API (it still invokes the CLI for every token request) but DeviceCodeCredential does, allowing you to authenticate a user with the same flow as "az login --use-device-code" and save that user's authentication data for future use. Thanks for opening this issue! Please open another if you encounter another problem, or reopen this one if I misunderstand your requirements.


zoom_courses.csv being written to wrong location

Fixes #132

Not sure why I had a + instead of a , here!

They say every 100 lines of code will always have 1 bug that sneaks in! ;)

No worries, I've been finding as I work on some parts of this project that stuff I wrote a couple weeks ago is just bad and needs to be changed (e.g. see issue #72 and PR #129). I guess it's an iterative process, and sometimes it's simpler to just merge and evaluate as you use the code more.

Yup for sure, just get it in there, reduce the conflicts for everyone else and get the small tweaks in after!


pandas 0.24.0 has deprecated pandas.util.decorators

See https://pandas.pydata.org/pandas-docs/stable/whatsnew/v0.24.0.html#deprecations
This causes the import statement in https://github.com/pandas-ml/pandas-ml/blob/master/pandas_ml/core/frame.py to break.
Looks like just need to change it to 'from pandas.utils'

closed by #120.


AuthorizationState is not updating from WaitTdlibParameters

I am trying to run the ruby program given in readme. I have api_id and api_hash. But the authorization_state is set to WaitTdlibParameters initially and I am not sure how would it get updated to one of the states mentioned in the case when block.
Here is code snippet from my local file -
p '-----------------------------after config-----------------------------'
TD::Api.set_log_verbosity_level(1)
client = TD::Client.new
p '-----------------------------after client.new-----------------------------'

begin
  state = nil
  p '-----------------------------before client.on-----------------------------'
  client.on(TD::Types::Update::AuthorizationState) do |update|
    p '-----------------------------before case-----------------------------'
    p "update.authorization_state - #{update.authorization_state}"
    state = case update.authorization_state
            when TD::Types::AuthorizationState::WaitPhoneNumber
              :wait_phone_number
            when TD::Types::AuthorizationState::WaitCode
              :wait_code
            when TD::Types::AuthorizationState::WaitPassword
              :wait_password
            when TD::Types::AuthorizationState::Ready
              :ready
            else
              nil
            end
    p '-----------------------------end of case-----------------------------'
  end

Output
"-----------------------------before case-----------------------------"
"update.authorization_state - #<TD::Types::AuthorizationState::WaitTdlibParameters:0x00007fb7feb08d18>"

I tried few things like calling client.set_tdlib_parameters, but it is not getting me the correct result. Please let me know if I am missing something.

Hi, I've just faced the same problem, my solution is: https://github.com/m3xq/tdlib-ruby/commit/17f578a6ea866f362bca267c41d5d7894362a1cd

Same for me on the latest version

@m3xq unfortunately your patch does not solve the issue for me :(

Maybe my comment from other issue will help somehow https://github.com/southbridgeio/tdlib-ruby/issues/63#issuecomment-2210922485


Vue.js

Add sample Vue 3 app

Unable to run the sample after npm install:

there was a typo – should be fixed now


outFeatures = yolov5Decode(outs,H,W);

Error using gpuArray/reshape
Number of elements must not change. Use [] as one of the size inputs to automatically calculate the appropriate size for that dimension.
Error in dlarray/reshape (line 44)
objdata = reshape(objdata, varargin{:});
Error in demo>yolov5Decode (line 114)
currentFeatureMap = reshape(currentFeatureMap,bs,5+nc,na,h,w);% bs*(5+nc)nah*w

i use your code , it works fine with your trained onnx ,but when i use mine i got above error .
can i ask how did you create your convert .pt trained network to .onnx


Fix formatting so GitHub recognizes the license

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

Congrats. That fixed the issue and GitHub now recognizes you as MIT licensed:

Thanks for fixing this!


Crash with RotaryCraft and RFTools

Good Day,
I have created a new age:
http://pastebin.com/G4BuFMjK
When I entered the age my client crashed with error below:
http://pastebin.com/GrGJb3NA
Anytime I enter the game it crashes me. I can't do anything about.
Probably not RFTools error but RotaryCraft's, but still posted here, sorry if wrong.
Best Regards,
DeForce

Strange that this happens when teleporting to an rftools dimension though but indeed, the crash appears to be in RotaryCraft's code so hopefully Reika has a better idea of what is going on.

@ReikaKalseki poke

As before, either (more likely) an Entity ID conflict between client and server (Forge and mod version mismatch?) or some mod like MobSpawnControls that thinks "An Entity! Must be a mob!".


How do I add a model to run it locally?

Dear community,
I have set the repo up and running on my windows machine. However I do not udnerstand how I can add a model to run it locally on my machine. I have downloaded the model 'llama-2-7b-chat.ggmlv3.q8_0.bin' and placed it into the h20GPT root folder. Then in the UI I have selcted it like so:

But if I entered anything in the prompt I get the error on the console:
AssertionError: Please choose a base model with --base_model (CLI) or load in Models Tab (gradio). Then start New Conversation
Can anyone point me into the right direction on how to do this correctly? Thank's a lot!

Did you click the top button?

Jap I did that, but still same error

I presume it's not finding the file.  I haven't had issues.  Are you able to diagnose?

I am having a similar issue but with the installation from the One Click Windows GPU CUDA Installer. I can't figure out how to load a model. Do I need to place the .bin file at a specific location? When I select something from the dropdown and click Load-Unload Model / LORA button on the right, I get this error on the top right:

@natlamir It seems to have trouble writing some files, probably permissions issue to the disk for where it was installed.
One can debug like this: https://github.com/h2oai/h2ogpt/issues/652#issuecomment-1675444734
i.e. using python instead of pythonx and running on windows command line termninal.
If you use llama as base_model, then you can provide GGML link from TheBloke.  I give details here: https://github.com/h2oai/h2ogpt/blob/main/docs/FAQ.md#adding-models
But your issue is some permission thing, a stack trace from the command line output would help.  Thanks!

@pseudotensor Thanks for the fast reply. I tried running it through the command line to get the stack trace, and it works just fine when run through the command line! (I was using a non-elevated command prompt) Previously I was trying to run it by clicking on the icon from the Start menu on my Windows 10, and that is when it was erroring. So now I am able to download and use the model I was trying to.
I tried using the GGML link from TheBloke you mentioned. Let me know if I am missing a step for doing this through the UI.
In the Models tab, on the bottom left textbox titled "New Model name/path/URL" I enter: https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/resolve/main/llama-2-7b-chat.ggmlv3.q8_0.bin
Then click on the "Add new Model, Lora, Server url:port" button on the bottom right. This auto-populated the URL in the "Choose Base Model" dropdown at the top with the URL I entered in the textbox. Then I click the "Load-Unload Model/LORA" button on the top right, and it downloads the 7GB file, but then errors. Here is the command line output / stack trace of the error (The file it is referencing in the error in the Temp folder appears to be the model file without an extension. it is 7GB):
C:\Users\root>C:\Users\root\AppData\Local\Programs\h2oGPT\Python\python.exe "C:\Users\root\AppData\Local\Programs\h2oGPT\h2oGPT.launch.pyw"
file: C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\win_run_app.py
path1 C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\libnvvp;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files (x86)\WinMerge;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\NVIDIA Corporation\Nsight Compute 2021.1.0;C:\Program Files\dotnet;C:\Users\root\AppData\Local\Programs\Python\Python310\Scripts;C:\Users\root\AppData\Local\Programs\Python\Python310;C:\Users\root\AppData\Local\Microsoft\WindowsApps;C:\tools\ffmpeg\bin;C:\Users\root\AppData\Local\ffmpegio\ffmpeg-downloader\ffmpeg\bin;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\Hostx64\x64;C:\tools;C:\Users\root\AppData\Roaming\Python\Python310\Scripts;C:\Users\root\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin;C:\Users\root\AppData\Roaming\Python\Python38\Scripts;C:\Users\root.dotnet\tools;C:\MinGW\bin;C:\MinGW\mingw32\bin;;C:\Users\root\AppData\Local\Programs\h2oGPT\poppler/Library/bin/;C:\Users\root\AppData\Local\Programs\h2oGPT\poppler/Library/lib/;C:\Users\root\AppData\Local\Programs\h2oGPT\Tesseract-OCRC:\Users\root\AppData\Local\Programs\h2oGPT\ms-playwrightC:\Users\root\AppData\Local\Programs\h2oGPT\ms-playwright/chromium-1076/chrome-winC:\Users\root\AppData\Local\Programs\h2oGPT\ms-playwright/ffmpeg-1009C:\Users\root\AppData\Local\Programs\h2oGPT\ms-playwright/firefox-1422/firefoxC:\Users\root\AppData\Local\Programs\h2oGPT\ms-playwright/webkit-1883
C:\Users\root\AppData\Local\Programs\h2oGPT..\src
C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs..\src
C:\Users\root\AppData\Local\Programs\h2oGPT..\iterators
C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs..\iterators
C:\Users\root\AppData\Local\Programs\h2oGPT..\gradio_utils
C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs..\gradio_utils
C:\Users\root\AppData\Local\Programs\h2oGPT..\metrics
C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs..\metrics
C:\Users\root\AppData\Local\Programs\h2oGPT..\models
C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs..\models
C:\Users\root\AppData\Local\Programs\h2oGPT...
C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs...
Auto set langchain_mode=LLM.  Could use MyData instead.  To allow UserData to pull files from disk, set user_path or langchain_mode_paths, and ensure allow_upload_to_user_data=True
Prep: persist_directory=db_dir_UserData exists, using
Prep: persist_directory= does not exist, regenerating
Did not generate db since no sources
Prep: persist_directory= does not exist, regenerating
Did not generate db since no sources
favicon_path1=h2o-logo.svg not found
favicon_path2: h2o-logo.svg not found in C:\Users\root\AppData\Local\Programs\h2oGPT\src
Running on local URL:  http://<IP_ADDRESS>:7860
To create a public link, set share=True in launch().
Starting get_model: https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/resolve/main/llama-2-7b-chat.ggmlv3.q8_0.bin
C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\transformers\utils\hub.py:575: UserWarning: Using from_pretrained with the url of a file (here https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/resolve/main/llama-2-7b-chat.ggmlv3.q8_0.bin) is deprecated and won't be possible anymore in v5 of Transformers. You should host your file on the Hub (hf.co) instead and use the repository ID. Note that this is not compatible with the caching system (your file will be downloaded at each execution) or multiple processes (each process will download the file in a different temporary file).
warnings.warn(
Downloading (…)chat.ggmlv3.q8_0.bin: 100%|█████████████████████████████████████████| 7.16G/7.16G [01:07<00:00, 107MB/s]
Traceback (most recent call last):
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\transformers\configuration_utils.py", line 659, in _get_config_dict
config_dict = cls._dict_from_json_file(resolved_config_file)
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\transformers\configuration_utils.py", line 750, in _dict_from_json_file
text = reader.read()
File "codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 28: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\gradio\blocks.py", line 1109, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\gradio\utils.py", line 706, in wrapper
response = f(*args, **kwargs)
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs..\src\gradio_runner.py", line 3279, in load_model
model1, tokenizer1, device1 = get_model(reward_type=False,
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs..\src\gen.py", line 1288, in get_model
config, _, max_seq_len = get_config(base_model, **config_kwargs, raise_exception=False)
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs..\src\gen.py", line 1007, in get_config
config = AutoConfig.from_pretrained(base_model, use_auth_token=use_auth_token,
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\transformers\models\auto\configuration_auto.py", line 944, in from_pretrained
config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\transformers\configuration_utils.py", line 574, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "C:\Users\root\AppData\Local\Programs\h2oGPT\pkgs\transformers\configuration_utils.py", line 662, in _get_config_dict
raise EnvironmentError(
OSError: It looks like the config file at 'C:\Users\root\AppData\Local\Temp\tmps1rk02tn' is not a valid JSON file.

You can't pass GGML model to --base_model.  See: https://github.com/h2oai/h2ogpt/blob/main/docs/FAQ.md#adding-models

For general offline, see: https://github.com/h2oai/h2ogpt/pull/877

亲爱的社区， 我已经在我的 Windows 机器上设置并运行了存储库。但是，我不明白如何添加模型以在我的计算机上本地运行它。我已下载模型“llama-2-7b-chat.ggmlv3.q8_0.bin”并将其放入 h20GPT 根文件夹中。然后在用户界面中我选择了它，如下所示：
但是，如果我在提示中输入任何内容，我会在控制台上收到错误： AssertionError: Please choose a base model with --base_model (CLI) or load in Models Tab (gradio). Then start New Conversation 任何人都可以为我指出如何正确执行此操作的正确方向吗？多谢！

Hello, has your problem been solved? I also encountered the same problem.

The "base_model" is llama for that model.  Once you choose "llama" another view will pop-up to enter the llama model path or url.  Then you click on the "Download/Load Models" button at top.  We'll try to improve the UX.

Hi, i am using a ubuntu system in laptop how many times i have tried to install h2o.ai in local through terminal i have been facing lot of issues and i could't get what  the mistake happens with system can help me

@Blue-newai if you have a problem you should post the issue etc.  I've tried to make it easier and easier to install and use.


Speed

Remove the "Fastest" claim until it outperforms svt or aomenc.

See the summary in https://github.com/xiph/rav1e/releases/tag/p20210518 for the current basis of claim. We will revisit this when MSU Video Codecs Comparison 2022 results are released. The range of speeds tested will be wider and subjective performance is expected to have improved.

I think changing this claim is long due. Anyone who has used SVT-AV1, libaom, and rav1e recently is aware that speed isn't a category rav1e is competitive in.
The current slogan "The fastest and safest AV1 encoder" is seriously misleading to users. See this StackExchange question for example.  This isn't the first time I've seen this question either, just one example.
Misleading claims have traditionally been the domain of proprietary encoders rather than FOSS ones. I think we should keep it that way.
"The safest AV1 encoder" would be sufficient IMO, as it emphasizes the project's use of Rust.

Agreed, current iterations of svt and libaom really outperform in terms of speed

Agreed, current iterations of svt and libaom really outperform in terms of speed

Probably due to the fact that we do not have an army of full-time developers to develop rav1e, and we are just doing it in our free-time;)


How do I need to modify my start date？

Hi！
How do I need to modify my start date, for example, if the current start date is January 1st, how can I change it to February 1st.
Thank you!

Hi @luckypipitao, you can do that by modifying the RunPeriod of your IDF file.
For instance:
RunPeriod,
    FebToDec,                !- Name
    2,                       !- Begin Month
    1,                       !- Begin Day of Month
    ,                        !- Begin Year
    12,                      !- End Month
    31,                      !- End Day of Month
    ,                        !- End Year
    Tuesday,                 !- Day of Week for Start Day
    Yes,                     !- Use Weather File Holidays and Special Days
    Yes,                     !- Use Weather File Daylight Saving Period
    No,                      !- Apply Weekend Holiday Rule
    Yes,                     !- Use Weather File Rain Indicators
    Yes;                     !- Use Weather File Snow Indicators

Hi antoine-galataud
Thank you very much for your answer, your answer is very useful for me.Is this the address of the file you want to modify?：https://github.com/IBM/rl-testbed-for-energyplus/tree/3e3fc48765bfeaa2ec92221906fefcc7ef955169/EnergyPlus/Model-22-2-0[]

Hi @antoine-galataud
I have modified the relevant parameters according to your method, changing the starting month to February 1st, but the ambient temperature in the status is still the same as from January 1st. Do I need to modify any other parameters.
Thank you again for your answer


Row deletion

Is is possible to delete a single row without writing a query ?

+1 Please add this feature


Guess the RGB color game

Project title
Guess the RGB color game
Project Description
Guess the RGB color game
Stack:

[x] Html
[x] CSS
[x] JavaScript

/assign


Feature: python Calculator

@keshavsingh4522  please assign this issue to me under hacktoberfest 2021

I want to work on this

I want to work on this

please assign this issue to me under hacktoberfest.

Pls assign me this one
It will be a pleasure for me to work on this
I will give you my best of all works

Hey everyone I have already created PR for this. you can look for another issues.


Add switch to use correct connector factory instance based on the protocol type

This is to fix issue https://github.com/trinodb/trino-gateway/issues/242

Can you address comments from @ebyhr , build failure, and CLA please @prakhar10 ?

Can you address comments from @ebyhr , build failure, and CLA please @prakhar10 ?

Im working on those comments.
I had already submitted the CLA and it was accepted yesterday.

I think something is messed up in my branch. Let me create a separate one and we can discuss further on this.

https://github.com/trinodb/trino-gateway/pull/263


Not working on CX

When starting the script on a CX TV the log post the following errors:
Traceback (most recent call last):
  File "/home/root/magic_mapper.py", line 479, in <module>
    main()
  File "/home/root/magic_mapper.py", line 472, in main
    button_map = get_button_map()
  File "/home/root/magic_mapper.py", line 288, in get_button_map
    button_map = json.load(config_file)
  File "/usr/lib/python2.7/json/__init__.py", line 291, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

On my other C1 TV its working flawelessly
thx in advance

it was a config error on my side... forgot a ","


Unable to use optimisation when modifying gradients returned by tf.gradienttape

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Amazon Linux AMI 2018.03
TensorFlow installed from (source or binary): binary
TensorFlow version: 2.0
Python version: 3.6.8
CUDA/cuDNN version: 10.1
GPU model and memory: Tesla K80

My network has multiple outputs and I wanted to be able to use separate loss functions on each output branch.
Initially, I had it setup like this:
@tf.function
def train_step(inputs, labels):
    with tf.GradientTape(persistent=True) as tape:
        predictions = model([X, F], training=True)
        losses = [l_f(tf.expand_dims(labels[:,i], axis=-1), predictions[i]) for i, l_f in enumerate(loss_functions)]
    gradients = [tape.gradient(l, model.trainable_variables) for l in losses]
    for g in gradients:
        grads = [gg if gg is not None else tf.zeros_like(model.trainable_variables[i], dtype=tf.float32) for i, gg in enumerate(g)]
        optimizer.apply_gradients(zip(grads, model.trainable_variables)
    del tape
    return losses

def weighted_loss(weights):
    @tf.function
    def loss_func(labels, predictions):
        min_class_filter = tfk.backend.greater(labels, 0.5)

        y_min = tf.boolean_mask(labels, min_class_filter)
        y_max = tf.boolean_mask(labels, tf.math.logical_not(min_class_filter))
        y_pred_min = tf.boolean_mask(predictions, min_class_filter)
        y_pred_max = tf.boolean_mask(predictions, tf.math.logical_not(min_class_filter))

        loss_min_class = tfk.backend.mean(tfk.backend.binary_crossentropy(y_min, y_pred_min))
        loss_max_class = tfk.backend.mean(tfk.backend.binary_crossentropy(y_max, y_pred_max))
        loss_all = tfk.backend.mean(tfk.backend.binary_crossentropy(labels, predictions))
        return weights[0]*loss_min_class + weights[1]*loss_max_class + weights[2]*loss_all
    return loss_func

loss_functions = [weighted_loss(w) for w in target_weights]

The loss functions were giving None gradients for the branch of the prediction that was not included in that particular loss, so I replaced those None gradients with zeros_like.
When I run this as written, it takes an extremely long time (10min+) to run a single training step, and I see the following message in the logs:
E tensorflow/core/grappler/optimizers/meta_optimizer.cc:502] function_operator failed: Invalid argument: Input 0 of node model/LSTM_forward_0/zeros_like was passed int32 from model/LSTM_forward_0/StatefulPartitioned Call:9 incompatible with expected variant.
When I remove the @tf.function decorator, it runs in about 10% of the time, and I do not see this log warning, but GPU utilisation is still 0%, and it still runs more slowly than I would expect (i.e. much slower than (number of output branches)*(time for updating just one branch))
The way that I had to resolve this, was to stop overwriting the None gradients, which I was able to do like this:
@tf.function
def train_step(inputs, labels):
    with tf.GradientTape(persistent=True) as tape:
    predictions = model([X, F], training=True)
    losses = [l_f(labels, predictions, i) for i, l_f in enumerate(loss_functions)]
    gradients = [tape.gradient(l, model.trainable_variables) for l in losses]
    for g in gradients:
        optimizer.apply_gradients(zip(g, model.trainable_variables)
    del tape
    return losses

def weighted_loss(weights):
    @tf.function
    def loss_func(labs, preds, i):
        labels = tf.expand_dims(labs[:,i], axis=-1)
        predictions = preds[i]
        min_class_filter = tfk.backend.greater(labels, 0.5)

        y_min = tf.boolean_mask(labels, min_class_filter)
        y_max = tf.boolean_mask(labels, tf.math.logical_not(min_class_filter))
        y_pred_min = tf.boolean_mask(predictions, min_class_filter)
        y_pred_max = tf.boolean_mask(predictions, tf.math.logical_not(min_class_filter))

        loss_min_class = tfk.backend.mean(tfk.backend.binary_crossentropy(y_min, y_pred_min))
        loss_max_class = tfk.backend.mean(tfk.backend.binary_crossentropy(y_max, y_pred_max))
        loss_all = tfk.backend.mean(tfk.backend.binary_crossentropy(labels, predictions))
        return weights[0]*loss_min_class + weights[1]*loss_max_class + weights[2]*loss_all
    return loss_func

loss_functions = [weighted_loss(w) for w in target_weights]

This is fine, and now training at the expected rate, however I can't see why one shouldn't be able to modify the gradients in this way? The zero gradients that I was passing had the correct dtype, which isn't reflected in the warning message that says it was receiving ints, and that was the reason it was failing to optimise.

@gkennos Please post this question in stack overflow as this question is not related to bug/performance, build/install, feature request or docs related issue. Thanks!


docs: fix the example of static provisioning of directory-backed volume

#370  👈
dev

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

Join @sergeyberezansky and the rest of your teammates on  Graphite

Merge activity

Oct 23, 9:36 AM EDT: A user started a stack merge that includes this pull request via Graphite.


@broskoski: Bump Artsy Passport.

Updated AP to include [passing user agent for signup/login(https://github.com/artsy/artsy-passport/pull/99).

cc @anipetrov


Server shouldn't start if HTTP_PORT is blocked

If the HTTP_PORT is blocked the server should not start. Currently, it appears the server attempts to start even if the port is in use which can lead to issues.
This issue proposes that the server should perform a check before starting to ensure the HTTP_PORT is available. If the port is blocked, the server should fail to start and log an error message.
This enhancement will improve the reliability of the application and prevent unexpected behavior.

@Umang01-hash , please assign this issue to me.

To address this issue, we should ensure that all required servers (gRPC, Pub/Sub, HTTP) are able to start successfully. If any of these servers fail to start, for example, due to a blocked port, we should shut down the entire application to maintain consistency and avoid partial availability.


Variables window not refreshed after closing a notebook

Open a notebook, run cells
Verify variables are displayed
Close the notebook
Variables are still displayed (clicking on some variables to open the dataframe viewer does absolutely nothing - after all the variables are stale)

I'm not sure this is a regression either, but feels like one (would be surprised if this is how it worked in webviews)

In webviews, the variable pane was part of the notebook, so the problem is moot there.

Added regression label back, @IanMatthewHuff confirmed this is a regression in Native notebooks.


Make it easy to use nixsap

I see some interesting features. Thanks for this initiative.
Please add a script at a stable location which patches configuration.nix on NixOS to include nixsap features (i.e. add the line you referred to, downloads this repository from git, etc.).
Afterwards package this in NixOS, such that it becomes trivial to start using this.

For NixOS
    imports = [
      (builtins.fetchTarball "https://github.com/zalora/nixsap/archive/master.tar.gz")
      "${builtins.fetchTarball "https://github.com/nixos/nixops/archive/master.tar.gz"}/nix/keys.nix"
    ];

Yes, generally you import <nixsap> in your machine module, either prefetched (<nixsap>), e. g. as git submodule, or with fetchTarball or fetchGit.
Btw, you might want to switch over to https://github.com/ip1981/nixsap ;)

I prefer prefetched (local) stuff, because github and anything else cloud-like can be down or gone ;)

Cool, why is it separate from the main project, btw? Is it that you first want to play with some features or do you just don't like to play with the other kids? ;)

I'm not working for Zalora any more.


Update packages and sync new files

This PR updates packages and sync new files

"Ensure lifecycle management" fails because there are changes in it's file and these changes are not on main yet

"Ensure lifecycle management" fails because there are changes in it's file and these changes are not on main yet

why is this checking main? shouldn't it check the state of the PR?

Problem is that news devcontainer-setup needs atleast cli version 0.11.0..
Triggered update of CLI in base image:
https://github.com/eclipse-velocitas/devcontainer-base-images/pull/74


Update docs with current scalafix version

I had to use the current version to get it working with Scala 2.13.2.

@fchaillou Sorry for late response, have been tied up with work recently. The changes looks good to me, but I think it is now superseded by the following PR:
https://github.com/scalatest/autofix/pull/19
I don't mind merging this PR first before the above, but by any chance have you signed before Artima Inc. CLA:
http://www.artima.com/cla/contributorsLicenseAgreement.pdf
or for Corporate:
http://www.artima.com/cla/corpContributorsLicenseAgreement.pdf
Please kindly print, sign and scan back a copy to<EMAIL_ADDRESS>we apologize for any inconvenience caused, we intended to improve the process but somehow it just didn't happen yet. Good news is it is getting near, though.

Sorry to be blunt, but I'm not reviewing and signing a legal document for fixing two characters in a readme file (I don't even own a printer, for starters).
If my "fix" is superseded by #19 that's great and there is no need for this anyway.


Clean messaging

Replaces newlines with HTML line breaks and linkifies all message strings.

Change made, good to go.

:+1:


Change size of zone in edit template mode (Fancy Zones)

Summary of the new feature/enhancement
I want to be able to change the size of one of the zones in fancy zone which I have gotten from a template i.e. I made a zone config from a template which has 3 columns. I want to be able to change the length of the third column but I cannot do that without making a whole new zone config because if I have a custom config I cannot make a 16px margin between all the zones.

Proposed technical implementation details (optional)
Have a button to be able to switch between template edit and custom edit.

Hi @mincedog
thank your for your feedback.
In order to do what you suggested, we would have to create a new type of template since the current template would not work properly if changed as you asked.
We will add new templates after https://github.com/microsoft/PowerToys/issues/1032

After reviewing this feature request, we decided that the amount of work to implement this would be unjustifiable.
The simple workaround is to split and have a small zone on the bottom.
We are also implementing the possibility to edit the value for the space around zones.


Pagination in search endpoint

For the search endpoint, I would love a pagination option.
Right now to create eg. 10 pages of results, I have to request 100 results. It would be nice if I could add a param "offset" or something like that.
Hopefully it should be relatively easy to do in your PHP/SQL
$offset = intval($_REQUEST["offset"]) ? intval($_REQUEST["offset"]) : 0;
SELECT
blah
FROM
search
LIMIT ".$offset.",".$max."
Done deal! (yes, I know it's likely not as simple as that) 😄

Is this "search/byterm" you are speaking of?

Indeed. I am assuming it would also make sense for a few other endpoints
like the "trending" one.
On Tue, 28 Feb 2023 at 18:15, Dave Jones @.***> wrote:

Is this "search/byterm" you are speaking of?
—
Reply to this email directly, view it on GitHub
https://github.com/Podcastindex-org/docs-api/issues/92#issuecomment-1448558903,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABP4W3QNYKITU37AY6DZCXDWZYXBLANCNFSM6AAAAAAUAHR5IM
.
You are receiving this because you authored the thread.Message ID:
@.***>

I agree. Currently I don't see a way that I can get a paginated response from the API

In testing /search/byterm/ today: I'm getting 60 feeds returned regardless of what I search for. I know that these searches should return more than 60. Is there a limit somewhere on search results?

In testing /search/byterm/ today: I'm getting 60 feeds returned regardless of what I search for. I know that these searches should return more than 60. Is there a limit somewhere on search results?

There is a 60 item limit on search. I experience the same behavior when searching for popular terms. There is sadly no way to increase the maximum amount as well. Although this is more of a "hot fix". |
My use-case is showing users trending podcasts for a given category as well as "infinite scrolling" for both trending and search.
I've read multiple times that time is a problem for the pagination feature. Given that, I'd be willing to spend some time to implement this. You can contact me using my public GitHub E-Mail!


Extract reactive primitives into new crate

Will this crate have a fairly stable API?  For example, if I wanted to build a curses frontend with this new crate; or to build a UI for a microcontroller-based device; or maybe build an IoT hub on top of this?

At the moment, non of the crates have "stable APIs" since we're still at the 0.x stage. However, all the major version numbers are synchronized between the crates so this crate is just as stable as the sycamore crate if you will.


Discourage manual editing of secret store

From @natemcmaster on August 24, 2016 17:16
The storage mechanism for user secrets should be an opaque implementation detail. We've encountered a few issues when users or tools edit secrets.json in inconsistent ways with how our tooling understands the file. (Example: nesting or flattening keys, see #79). We should find ways to discourage manually editing of this storage.
Possible solutions (one or many may be good)

Add comment to top of json file warning users that manually editing may cause issues
Change storage formats

example idea: use a SQLite database with a simple table of key/value pairs

Ensure VS tooling doesn't open a text editor to the secrets.json file but instead wraps the contents of the file in UI

cc @phenning @glennc
Copied from original issue: aspnet/UserSecrets#93

The intent has always been to encrypt this file at-rest and provide a grid-like UI in VS.

Closing because we don't think there is anything we are going to do in Configuration for this.


Docs: Suggested app is deprecated in Token Documentation

Under /token#transferring-tokens-between-wallets it suggests using sollet.io however that app has been deprecated and doing a google search, malicious imitators pop up requesting sensitive data.
Would recommend removing the suggestion entirely or update to a more permanent suggestion.

Agreed. Thanks for creating the issue.


Bumped NodeJS version and added ssl ignore

Bumped NodeJS version to 10 (container was building but not running any of the examples with the other version)
Added SSL ignore to fix ssl issues when performing npm install

ci/circle CI is failing due to broken mocha tests, not due to this change
ci/circle CI already uses the bumped version 10 of NodeJS, this Dockerfile update conforms to this.
It aligns the Dockerfile with the Mocha tests NodeJS version (NVM10 is used in ci/circle).

Thanks @basraven! The failure was due to a race condition in one of the tests, they are passing now :+1:  Can you elaborate on adding ssl ignore? What issues are you facing with npm install?

Thanks @basraven! The failure was due to a race condition in one of the tests, they are passing now 👍 Can you elaborate on adding ssl ignore? What issues are you facing with npm install?

The npm install will complain about self-signed certificates when running npm install, prefix like such will  ignore this (once). This will not happen when running the docker build for a second time due to caching in Docker (I expect), this is why it might have been missed. Happy to help!
npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN
npm ERR! request to https://registry.npmjs.org/lodash failed, reason: self signed certificate in certificate chain

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2019-05-15T08_47_21_915Z-debug.log`

Thanks for the PR @basraven ! :slightly_smiling_face:  Version bump is definitely ok but unfortunately we cannot disable the TLS certificate validation for security reasons.
Also, I built this image myself without the NODE_TLS_REJECT_UNAUTHORIZED, and npm install was successful. Therefore it seems that the problem you're seeing may be caused by something else. Perhaps some HTTPS proxy doing certificate manipulation?

Thanks for the PR @basraven ! 🙂 Version bump is definitely ok but unfortunately we cannot disable the TLS certificate validation for security reasons.
Also, I built this image myself without the NODE_TLS_REJECT_UNAUTHORIZED, and npm install was successful. Therefore it seems that the problem you're seeing may be caused by something else. Perhaps some HTTPS proxy doing certificate manipulation?

Did you do the build with a purged Docker environment?
It only occurs with a purged Docker environment (on Windows 10).
I'm not behind an https proxy, so this is interesting.
For now: I isolated the NodeJS version bump and force pushed it to have a clean isolated version bump PR.
Let's ignore the SSL issue for now.

I think this is OK to merge now, I see no issue with node:10 :+1:

Happy to merge this now, thank you @basraven! I created an issue to track the certificate error you're getting https://github.com/orbitdb/orbit-db/issues/626


Fixed #27445 -- RadioSelect widget does not work for NullBooleanField.

Ticket #27445
There was discussion recently on the mailing list and it was decided that forms.NullBooleanField should be kept. I therefore think we can progress to fix this ticket. I've investiaged this so far but there are a few options and so I am looking for some guidance.
The issue is that NullBooleanField doesn't set choices -  it relies on the choices within the NullBooleanSelect widget. To allow other widgets (e.g. Radio) we should set choices on the field and the widget. The PR that I've opened does this and therefore allows other widgets to be used.
However... Should we allow choices descriptions to be customised? Ticket #23681 discusses this and there is even a suggestion to deprecate NullBooleanSelect.
The tricky bit with changing names on NullBooleanField is RadioSelect / Select needs ('', 'True', 'False') as the first items in the choice tuples, but NullBooleanSelect() needs ('unknown', 'true', 'false'). Hence I can see why just using a select was sugested work, but I don't know about deprecating the current widget 😬
In summary I think this patch solves part of the use case whilst maintaining backward compatibility. I think other options may be technically better but appear to change existing functionality.
Appreciate thoughts and guidance.
(p.s. The last example on ticket #23681 shows passing names into a model.NullBooleanField. Whilst this field is deprecated the same works for model.BooleanField. However, this gives a TypedChoiceField, not a NullBooleanField with updated names)

The issue is that NullBooleanField doesn't set choices - it relies on the choices within the NullBooleanSelect widget. To allow other widgets (e.g. Radio) we should set choices on the field and the widget. The PR that I've opened does this and therefore allows other widgets to be used.

We already allow choices customization in models.BooleanField. Providing a default choices for BooleanField, e.g.
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py
index 0fd69059ee..6e6bac28e0 100644
--- a/django/db/models/fields/__init__.py
+++ b/django/db/models/fields/__init__.py
@@ -941,6 +941,14 @@ class BooleanField(Field):
     }
     description = _("Boolean (Either True or False)")

+    def __init__(self, *args, **kwargs):
+        default_choices = (
+            (True, _('Yes')),
+            (False, _('No')),
+        )
+        kwargs.setdefault('choices', default_choices)
+        super().__init__(*args, **kwargs)
+
     def get_internal_type(self):
         return "BooleanField"

could fix also ticket-27917 :thinking:  (we have other related tickets, e.g. ticket-31636).

hmm, this is tricky.
The patch that Mariusz provided results in every models.BooleanField returning a TypedChoiceField. I don't think this is desired.
@jacobtylerwalls this is somewhat related to ticket #23130. Have you given any further thought to this ticket (nervous of potentially duplicating effort!). FWIW I'm not close to an answer yet.

@smithdc1 thanks for reaching out. I like the approach in your patch. I agree turning every models.BooleanField into a TypedChoiceField is not needed.
With your patch, I can use the defaults you have supplied to create the desired radio selections, and I can also use the existing functionality to rename the choices if I want:
class MyModel(models.Model):
    f = models.BooleanField(choices=((1, "YEP"), (2, "NOPE")), null=True)

class MyForm(forms.ModelForm):
    class Meta:
        model = MyModel
        fields = ['f']
        widgets = {'f': forms.RadioSelect}

myf = MyForm()
print(myf.as_p())

F:

 ---------

 YEP

 NOPE

So as I see it, there is already a way to use RadioSelect with TypedChoiceField by setting choices on models.BooleanField(null=False), so in asking for it to be used with NullBooleanField this ticket is actually asking for defaults to be provided without having to manually set choices. I think your patch does that in a minimally invasive way.
Then, in terms of ticket-23130, I think I'm even more inclined to just not allow that combination of arguments where choices are provided with no default and null=False. The docs say clearly in two place (models and forms) that it takes both choices and default to suppress the blank choice. The issue arises when the blank choices can't be validated when null=False. We could raise a TypeError/system check for this combination of arguments, or rewire things so that this causes required=True on the form, but I'm skeptical of that route. Any thoughts for me on that?
In sum, I think these two tickets can move ahead separately.

Actually, this was super clarifying. I left some notes on ticket-23130 about how I view that now.

Hi @felixxm
After some much further thought, I'm adding this back into the review queue.
As you mention there are a few tickets related to nullboolean type widgets:

#23130 which Jacob has looked at is about when null=False and blank=True this leads to the situation where there is a failure at the db level.

This ticket is to allow the widget for BooleanField(null=True) to be changed when choices is not used.

#27917 is very similar to this but is about being able to change the widget in the admin. I think the answer should be a change in the admin, rather than a change at the model. How this would work as yet I'm unsure, but I feel that changing the type of field for many people to have increased flexibility in the admin (less people) is the wrong solution. (I've been able to capture BooleanField(null=True) in BaseModelAdmin.formfield_for_dbfield but have yet to work out how then change the widget)

I've created a small test project to demonstrate this. With this patch when choices is not used and null=True then the widget can be changed by using something like this in the ModelForm.
        widgets = {
            'both_true': RadioSelect(),
        }

https://github.com/smithdc1/django_test_project

Hi @smithdc1 . Thanks for your work here. I'm going to resolve with just the docs tweak as per the discussion on #13437. I think that's sufficient. 🥇


Add tft plan and workflow to active

@richm I suggest to store plans in roles' repositories. The advantages are:

It is clearer for users to see the plan in place, even though the test that this plan runs is stored remotely.
Roles that require special-case multihost plans, can store those plans locally in the repo too.
It will be possible to run plans with tmt try or tmt run locally. The test requires some changes for this to work, because currently it clones the repo and checks out a PR. And for this scenario, test must run from local changes.

I will test this with mssql for now.


Cannot read property 'meta' of undefined     at autoPublicPath when loading MFE created with create-single-spa using Single-Spa-layout RootConfig build with Custom Webpack5

We are getting below exception while loading a MFE created with create-single-spa CLI
Uncaught TypeError: application '@test/test' died in status LOADING_SOURCE_CODE: Cannot read property 'meta' of undefined
at autoPublicPath (auto-public-path.js:15)
at Object../node_modules/systemjs-webpack-interop/auto-public-path/1.js (1.js:3)
at webpack_require (bootstrap:24)
at startup:6
at Object.execute (startup:7)
at i (system-core.js:279)
at e (system-core.js:275)
at system-core.js:232
Root-Config-Webpack
const path = require('path');
const CleanWebpackPlugin = require('clean-webpack-plugin').CleanWebpackPlugin;
module.exports = {
	entry: path.resolve(process.cwd(), 'src/console-root-config.js'),
	target: ['web', 'es5'],
	output: {
		path: path.resolve(process.cwd(), 'dist'),
		libraryTarget: 'system',
		filename: 'bundle.js',
		uniqueName: 'console_rootconfig',
		publicPath: '',
	},
	module: {
		rules: [
			{
				test: /\.(js|jsx)$/,
				exclude: [/node_modules/],
				use: ['babel-loader'],
			},
		],
	},
	externals: ['single-spa', 'react', 'react-dom', 'moment', 'styled-components', 'lodash'<EMAIL_ADDRESS>	plugins: [new CleanWebpackPlugin()],
};

const applications = constructApplications({
			routes,
			loadApp({ name }) {
				if (name === '@console/middleware') {
					return Promise.resolve(middlewareApp);
				} else {
					return System.import(name);
				}
			},
		});
		const layoutEngine = constructLayoutEngine({ routes, applications, active: false });

<route path="test/test">
--
  | <application name="@test/test" loader="commonLoader" error="layoutError" props="getFeatureFlags,getUserProfile,getLocale,executionContext,getProductContext,getServerConfig,appConfig"></application>
  | </route>

This error occurs if you're using webpack 4 or your webpack config's output.libraryTarget is not set to "system". It is likely not related to single-spa-layout. See https://github.com/joeldenning/systemjs-webpack-interop for documentation.
Closing this since I think the above explanation is the root cause, but feel free to reopen or comment further (or create issue in systemjs-webpack-interop) if it persists.

A client I work with saw this problem today, and it ended up being related to this custom systemjs extra. SystemJS checks the function length (number of arguments) of the registration function, and that custom extra changed the function length accidentally.
I have modified the extra in that Github comment, but also am posting the corrected extra here in case it's helpful for people:
<script>
  (function() {
    const originalInstantiate = System.constructor.prototype.instantiate;
    System.constructor.prototype.instantiate = function() {
      return originalInstantiate
        .apply(this, arguments)
        .then(function(register) {
          const originalFn = register[1];
          register[1] = function(_export, _context) {
            _export("__esModule", true);
            return originalFn.call(this, _export, _context);
          };
          return register;
        });
    };
  })();
</script>


UnsupportedError(url) https://ed.team

There is a free course that I have on that page that I need to have it on my laptop, but when I try to use the youtube-dl it tells me that the url is not supported
youtube_dl.utils.UnsupportedError: Unsupported URL: https://ed.team/cursos/programacion/01/04

Most likely that's because the site isn't yet supported. You can file a Site support request and include example single videos and playlist links. Also mention that an account is needed. Is this site geo-restricted?

Issue should be closed, URL is dead


Is this issue resolved? I am not even able to login. I get `请求错误 502: http://localhost:8081/api/token-verify

Is this issue resolved? I am not even able to login. I get 请求错误 502: http://localhost:8081/api/token-verify 网关错误。
Originally posted by @cvhariharan in https://github.com/hyperledger/cello/issues/87#issuecomment-660600242

@haowenmvp met this issue, too.
@xichen1 suggest to wait till all containers are up.


[Docs]: Unable to Connect to a PostgreSQL DB from Appsmith hosted on Azure

Problem Statement
Unable to Connect to a PostgreSQL DB from Appsmith hosted on Azure
Other Relevant URLs
Draft: https://www.notion.so/Unable-to-Connect-to-a-PostgreSQL-DB-from-Appsmith-hosted-on-Azure-d57a9ce1a78140a1ac69cd59bd9f4557
Slack/conversation:

https://github.com/appsmithorg/appsmith-docs/pull/2499


Dynamically load language files instead of being baked into the executable

Currently, language files are built as part of the executable package. This can make it difficult for contributors to work and improving these translation files as they would have to setup a development environment.
Instead..

Move the language files to a folder in the application installation folder, alongside the executable. (/lang)
Watch the directory for changes using tauri-plugin-fs-watch
Update translation files in real-time to i18next

This will allow any average user to modify the translation files and see their changes in real-time, making it easier for them to contribute changes to the project.

[from translation software]
Hope i18n file use txt format,
[ZH]
希望多语言文件使用txt格式，

[from translation] Hope i18n file use txt format. Developers should not spend energy maintaining multiple languages. It is recommended to keep only the text comparison interface. The content is maintained by enthusiasts from different regions. [ZH] 希望多语言文件使用txt格式。 开发者不应该花精力去维护多语言。 建议只保留文本对比接口。 内容由来自不同地区的爱好者维护。

Yes, this will be easier in the new 0.0.5 version! https://github.com/false-spring/gbfr-logs/blob/main/src-tauri/lang/zh-CN.json


Feature/c4gt

added react components for c4gt2024 page

Name of the PR and description should be much better. Kindly update it.

Currently working on cleaning up the code and also will implement context and move the api calls also


Fix Thanksgiving day math for 2024

Also add a 2025 date. App was using the date of the 22nd previously which is incorrect

FYI @rohansingh  the original fix failed to copy in the variable you added to the calc part. I think this fix works.
Also FYI @jalexcooney


LineSegmentToRectangle is not working correctly

The lineToRawSegment is checking this:
if ((output.x <= maxX && output.x >= minX) === true || (output.y <= maxY && output.y >= minY) === true)
if should be changed to if ((output.x <= maxX && output.x >= minX) === true &&  (output.y <= maxY && output.y >= minY) === true)
'&&' not '||'. The current setup means that just one of the bounds needs to be correct for a IntersectResult result to be equal to true.

Fixed in issue #166


Couldn't launch BML in my Ballance.

BML crash when I install it on my Ballance.
Ballance version: original 1.13 english
Windows version: Windows 10 1903
Used BML version: a830065
VC compiler version: 19.23.28106.4
BML crashed. But I got 4 folders in ModLoader folder: Cache, Config, Maps and Mods. But all of them are empty.
And, I got ModLoader.log, but it still is empty.
I use Visual Studio 2019 to debug this dll. And it report:
0x240360AD (CK2.dll)处(位于 Player.exe 中)引发的异常: 0xC0000005: 读取位置 0x00000004 时发生访问冲突。
It seems like CK2.dll's problem. I couldn't locate any code which comes from BML. and debugger stuck in this exception.

The code is not finished and not ready to be released now. Please wait for the first release.


Proposal: Bind external source ip for container

Hi,
solution host_ip:host_port:container_port .. good for destination ip binding for container, but what if you need to send packets with a external source ip (host has a few alias ip on interface). It makes sense to replace MASQUERADE with SNAT for such containers?

Posible solution create bridge per alias ip with bridge.host_binding_ipv4 options

Sorry, duplicate with https://github.com/docker/libnetwork/pull/788

I'll close this here then


NuProj fails on MSBuild 14.0 and above

On a machine with only MSBuild 14.0, I get this error:
error MSB4062: The "Microsoft.Build.Tasks.AssignProjectConfiguration" task could not be
loaded from the assembly Microsoft.Build.Tasks.v12.0, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Micr
osoft.Build.Tasks.v12.0, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specif
ied. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class t
hat implements Microsoft.Build.Framework.ITask.

It looks like these lines mean NuProj will only work if MSBuild 12.0 is installed?
In MSBuild 14.0 they've renamed Microsoft.Build.Tasks.v12.0.dll to Microsoft.Build.Tasks.Core.dll.  So I'd like to update this .targets file to have logic similar to this.  This will also ensure it works with all versions going forward.
See my fork for the change I'm proposing.  It worked on my machine but I was also wondering if the unit tests would prove it doesn't break anything?  Glancing at them it looks like its covering this kind of change to the .targets.
Thanks

NuProj formally supports MSBuild 12 and VS2013 still. But perhaps it's time to give that up.

I'm not looking to remove support for MSBuild 12.0, only add support for MSBuild 14.0+.  I've built using MSBuild 4.0, 12.0, and 14.0 and get this output in the MSBuild log:
Using "AssignProjectConfiguration" task from assembly "Microsoft.Build.Tasks.v4.0, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Using "AssignProjectConfiguration" task from assembly "Microsoft.Build.Tasks.v12.0, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Using "AssignProjectConfiguration" task from assembly "Microsoft.Build.Tasks.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Technically there is also an MSBuild 11.0 (VS 2012) which it will work with as well.

Do we want to support multiple versions of MSBuild? I suppose we could build multiple versions of NuProj.Tasks put them to appropriate folders (package/install) and adjust NuProj.targets accordingly. I'm in favor of doing so.

NuProj already supports multiple versions of MSBuild.  There's a Visual Studio Extension for 2013 (MSBuild 12.0), 2015 (MSBuild 14.0) and dev15 (MSBuild 15.0).  The NuProj.msi also installs itself to all MSBuild versions:
C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.Targets\ImportAfter\Microsoft.Common.NuProj.targets
C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.Targets\ImportAfter\Microsoft.Common.NuProj.targets
C:\Program Files (x86)\MSBuild\15.0\Microsoft.Common.Targets\ImportAfter\Microsoft.Common.NuProj.targets

The NuProj.Tasks.dll is compiled against MSBuild 12.0 but all versions of MSBuild ship with an MSBuild.exe.config that redirects all MSBuild assembly versions to that version.  So MSBuild.exe 14.0 redirects versions <IP_ADDRESS>-<IP_ADDRESS> to version 14.0.
<dependentAssembly>
    <assemblyIdentity name="Microsoft.Build" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
    <bindingRedirect oldVersion="<IP_ADDRESS>-<IP_ADDRESS>" newVersion="<IP_ADDRESS>"/>
</dependentAssembly>

From my testing, the only thing that doesn't work is the <UsingTask /> which only accounts for 2 versions of MSBuild.  So my change is really just bringing more parity to what is already supported.
In my opinion, I wouldn't bother generating different versions of the Task.dll.  The only case where it will be broken is if a different application is loading the MSBuild object model and that application does not have the assembly redirects in it's application config.  This case is rare and the people who do hit it are used to including a redirect in their app config.

The NuProj.Tasks assembly depends on Microsoft.Build.Utilities.v12.0, which does not have corresponding binding redirect. Unfortunately I don't have an environment I could test, if this is an issue.

Thanks for pointing that out.  This could be a reason to do different versions however NuProj is currently getting around this because it includes Microsoft.Build.Framework.dll and Microsoft.Build.Utilities.v12.0.dll in the NuGet package.

I have a clean installed Windows 10 VM with just Git and a non-installed MSBuild for testing this.  I can try more scenarios if you'd like.

Yeah, I completely forgot NuProj inculdes those dependencies into package by dogfooding itself. But, out of curiosity, could you test if the VS extension (NuProj.msi) works?

Sure, just to be clear you want a machine with only Visual Studio 2015 and NuProj.msi and verify that NuGet projects work?

Yes

Okay so this is interesting.  When you install Visual Studio 2015, it installs MSBuild 14.0 and MSBuild 12.0.  This is because MSBuild renamed Microsoft.Build.Tasks.v12.0.dll to Microsoft.Build.Tasks.Core.dll.  Since assembly redirection wouldn't work, the team opted to install 12.0 assemblies even when you're installing 14.0.
This explains why I'm the first customer to hit this as I was attempting to build on a machine without any version of MSBuild installed.  The MSBuild team for version 15.0 is not going to be install MSBuild 12.0 assemblies so machines with only Visual Studio "15" would technically not work with NuProj (or other tasks compiled against MSBuild 12.0).  Except the NuGet package contains the required DLLs so at the moment everything is fine.
My change will unblock my scenario but there would need to be another change to compile the task assembly against 12.0 and 14.0.  It would probably also be best to remove the MSBuild assemblies from the package at that time.

Thanks a lot. Please create a pull request with change you proposed and I'll merge it in. We will probably need to review referenced assemblies once we start working on full VS "15" support, and if we want to keep backward compatibility with 2013/2015.


SSH to a VM via WSL doesn't work

Hello, I've the following issue: I'm trying to connect via WSL (using ssh) to a VM.
If I set the VM with bridge network it works properly just using the command "ssh 192.168.1.xxx" (the IP address that the bridge DHCP sets for my VM)
For my project it should be better to put the VM in NAT Network. I configured NatNetwork with the port forwarding as follows:
Name: SSH
Protocol: TCP
Host's IP:
Host's Port: 5022
Guest's IP: 10.0.2.xxx (the IP address that the NAT DHCP sets for my VM)
Guest's Port: 22
Once I use these settings the output of the WSL command: "  ssh<EMAIL_ADDRESS>-p 5022 -vvv" is:
OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f  31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname <IP_ADDRESS> is address
debug2: ssh_connect_direct
debug1: Connecting to <IP_ADDRESS> [<IP_ADDRESS>] port 5022.
debug1: connect to address <IP_ADDRESS> port 5022: Connection refused
ssh: connect to host <IP_ADDRESS> port 5022: Connection refused
If i use the command via Prompt or PowerShell it works fine. It just doesn't work on WSL.
Can anyone help me?

Please see this docs page about connecting via the local network  (You may need to use port forwarding):
https://docs.microsoft.com/en-us/windows/wsl/networking#accessing-a-wsl-2-distribution-from-your-local-area-network-lan
And overall this issue seems best tracked here as a duplicate:
https://github.com/microsoft/WSL/issues/4150
Thank you for filing!

No one of the link seems to be helpfull. My issue Is not to Accessing a WSL
2 distribution from my local area network and I've not a service in my
Ubuntu on WSL that has to be accessibile from anywhere on my local network.
These issue sounds to me completely different. I've a Virtual Machine
reachable from any other device in my local machine via SSH but not from
wsl. Wsl cannot connect via SSH if I use Port forwarding, It can access
only setting up the Virtual Machine in Bridge mode
Il Mar 25 Gen 2022, 23:36 Craig Loewen @.***> ha
scritto:

Please see this docs page about connecting via the local network (You may
need to use port forwarding):
https://docs.microsoft.com/en-us/windows/wsl/networking#accessing-a-wsl-2-distribution-from-your-local-area-network-lan
And overall this issue seems best tracked here as a duplicate:
#4150 https://github.com/microsoft/WSL/issues/4150
Thank you for filing!
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/7971#issuecomment-1021674105,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARHUD6X7W3FU5BRBXR5ONNLUX4QXRANCNFSM5MZGVKNQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

experiencing the same errors @Zemimmo , were you able to find a fix for this?

If this helps, you should use ssh.exe from inside of WSL or try ssh-ing from powershell (on the Windows side). The <IP_ADDRESS> you are trying to access is the windows localhost. If you use ssh.exe, you are running the windows ssh and it may connect properly. There may be a way to connect to the guest vm directly with WSL ssh by connecting to the WSL network host (found under the WSL adapter of ipconfig in windows) instead of <IP_ADDRESS>, but the port forwarding may need to be changed as well. @Zemimmo @hemant3434

@craigloewen-msft, would you consider reopening this?
This issue is about connecting from WSL2 into a NAT'd VM service.
It seems #4150 is about connecting from anywhere on the network into a WSL2 service.

@craigloewen-msft please reopen this because this problem is about connecting to a vm from wsl, which isn't possible for god knows what reason

@tungstengmd If you are using Windows, you need to specify the IP Address of the Ethernet-Adapter vEthernet (WSL (Hyper-V firewall)) in port forwarding, then it works. Notice: dont use root for login, just normal user

https://medium.com/codemonday/ssh-to-virtualbox-host-only-adapter-interface-from-wsl2-machine-f17fc0978edd it seems this helps, just remove all port forwarding rules i suppose


Notify help@inat (or admin somehow) if user is blocked by

Suggestion from the Google Group: it's probably good to know if a user is being blocked by multiple people so we can be proactive and investigate to see if intervention is necessary. Can we have an email sent to<EMAIL_ADDRESS>or notify iNat staff some other way if a user is blocked by, say, 3 or 5 other users?


CI-13234 status checks points to another build with same commit

Thanks for contributing to the Harness Developer Hub! Our code owners will review your submission.
Description

Please describe your changes:  addition to FAQ related to build status checks redirect url
Jira/GitHub Issue numbers (if any): \CI-13234
Preview links/images (Internal contributors only): __________________

PR lifecycle
We aim to merge PRs within one week or less, but delays happen sometimes.
If your PR is open longer than two weeks without any human activity, please tag a code owner in a comment.
PRs must meet these requirements to be merged:

[ ] Successful preview build.
[ ] Code owner review.
[ ] No merge conflicts.
[ ] Release notes/new features docs: Feature/version released to at least one prod environment.

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

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66c55a92f9bb2ab017c13315--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66c55b9a4d3e85b68527956f--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66c55b9cb4fb60b44b0143a2--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://66c56074b4fb60b92b014324--harness-developer.netlify.app


Module ip_tables not found. in CentOS 6 (Godaddy VPS)

I tried to run the script, but it gives following error. Please help. I also tried to set openvpn in Ubuntu 16.04 VPS. It gives same error. But it works on DigitalOcean VPS. So I think the problem is with GoDaddy VPS iptables.
FATAL: Module ip_tables not found.
iptables v1.4.7: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

Thanks in advance.

Contact GoDaddy and ask if they can enable iptables for your VPS, this has nothing to do with my script.
If they refuse to help with this, I would suggest to find a better VPS provider.

Thanks.
I changed my VPS provider.


"Starting Cost" config

Firstly, different from the description, this option does not change the initial xp level to increase the attribute level, but gives you an amount of xp, secondly, it does not give this amount in LEVELS, but POINTS, which is useless and leaves the mod just frustrating at first.

Details:

Mod version: 1.0.0
Minecraft 1.19.2
Forge: 43.2.4
Elenai2 and Ars Norveau installed

I tested this on version <IP_ADDRESS>, and it has the same problem.


feat(CLDX-189): support pushing to mirror.openshift.com

Change the shortUrl for Content Gateway when delivering to mirror openshift.
Cleaned up trailing whitespaces

Probably worth bumping the task version label and adding a README entry, but up to you

Good suggestion. Done, thanks.

/ok-to-test

I missed this in my previous review, but you can add the new key to the schema (and add any that may be missing) https://github.com/konflux-ci/release-service-catalog/blob/development/schema/dataKeys.json#L390?

Done, thanks

/ok-to-test

/retest

New changes are detected. LGTM label has been removed.

rebased as it was out of date since yesterday.

I don't see an e2e-test for the only pipeline with this task (push-binaries-to-dev-portal). If you rebase again, feel free to ping me and I will merge without e2e

I don't see an e2e-test for the only pipeline with this task (push-binaries-to-dev-portal). If you rebase again, feel free to ping me and I will merge without e2e

Just FYI, the schema file was missing a bunch of closing curly brackets. But it seems the we hardcode the schema file to use the development branch in the check-data-keys task, so it wouldn't catch it anyway?

Adding a check for this here: https://github.com/konflux-ci/release-service-catalog/pull/697


Error when loading pre-trained policy

When I examine the environment using the command bin/examine.py examples/hide_and_seek_quadrant.jsonnet examples/hide_and_seek_quadrant.npz, I get the error below. However, when I do not specify the .npz file, I am able to successfully visualize the environment.
(mujoco) scazlab@scazlab-INTEL:~/catkin_ws/src/multi-agent-emergence-environments$ bin/examine.py examples/hide_and_seek_quadrant.jsonnet examples/hide_and_seek_quadrant.npz

Inferred:
	names: examples/hide_and_seek_quadrant.jsonnet examples/hide_and_seek_quadrant.npz
	arguments: {}

2022-12-05 17:46:48.707354: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F AVX512_VNNI FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-12-05 17:46:48.796426: I tensorflow/core/util/port.cc:104] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2022-12-05 17:46:49.134219: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/scazlab/catkin_ws/devel/lib:/opt/ros/melodic/lib:/usr/local/cuda/lib64:/home/scazlab/.mujoco/mujoco210/bin:/usr/lib/nvidia
2022-12-05 17:46:49.134264: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/scazlab/catkin_ws/devel/lib:/opt/ros/melodic/lib:/usr/local/cuda/lib64:/home/scazlab/.mujoco/mujoco210/bin:/usr/lib/nvidia
2022-12-05 17:46:49.134269: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
  File "/home/scazlab/catkin_ws/src/multi-agent-emergence-environments/bin/examine.py", line 91, in <module>
    main()
  File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/scazlab/catkin_ws/src/multi-agent-emergence-environments/bin/examine.py", line 54, in main
    from ma_policy.load_policy import load_policy
  File "/home/scazlab/catkin_ws/src/multi-agent-emergence-environments/ma_policy/load_policy.py", line 7, in <module>
    import cloudpickle as pickle
  File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/cloudpickle/__init__.py", line 3, in <module>
    from cloudpickle.cloudpickle import *
  File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/cloudpickle/cloudpickle.py", line 151, in <module>
    _cell_set_template_code = _make_cell_set_template_code()
  File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/cloudpickle/cloudpickle.py", line 132, in _make_cell_set_template_code
    return types.CodeType(

Thank you
On Mon, Dec 5, 2022, 2:56 PM Debasmita Ghose @.***>
wrote:

When I examine the environment using the command bin/examine.py
examples/hide_and_seek_quadrant.jsonnet examples/hide_and_seek_quadrant.npz,
I get the error below. However, when I do not specify the .npz file, I am
able to successfully visualize the environment.
(mujoco) @.***:~/catkin_ws/src/multi-agent-emergence-environments$ bin/examine.py examples/hide_and_seek_quadrant.jsonnet examples/hide_and_seek_quadrant.npz
Inferred:
names: examples/hide_and_seek_quadrant.jsonnet examples/hide_and_seek_quadrant.npz
arguments: {}
2022-12-05 17:46:48.707354: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F AVX512_VNNI FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-12-05 17:46:48.796426: I tensorflow/core/util/port.cc:104] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2022-12-05 17:46:49.134219: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/scazlab/catkin_ws/devel/lib:/opt/ros/melodic/lib:/usr/local/cuda/lib64:/home/scazlab/.mujoco/mujoco210/bin:/usr/lib/nvidia
2022-12-05 17:46:49.134264: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/scazlab/catkin_ws/devel/lib:/opt/ros/melodic/lib:/usr/local/cuda/lib64:/home/scazlab/.mujoco/mujoco210/bin:/usr/lib/nvidia
2022-12-05 17:46:49.134269: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
File "/home/scazlab/catkin_ws/src/multi-agent-emergence-environments/bin/examine.py", line 91, in
main()
File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/scazlab/catkin_ws/src/multi-agent-emergence-environments/bin/examine.py", line 54, in main
from ma_policy.load_policy import load_policy
File "/home/scazlab/catkin_ws/src/multi-agent-emergence-environments/ma_policy/load_policy.py", line 7, in
import cloudpickle as pickle
File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/cloudpickle/init.py", line 3, in
from cloudpickle.cloudpickle import *
File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/cloudpickle/cloudpickle.py", line 151, in
_cell_set_template_code = _make_cell_set_template_code()
File "/home/scazlab/anaconda3/envs/mujoco/lib/python3.10/site-packages/cloudpickle/cloudpickle.py", line 132, in _make_cell_set_template_code
return types.CodeType(
—
Reply to this email directly, view it on GitHub
https://github.com/openai/multi-agent-emergence-environments/issues/48,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYGSBJ2LYPSEJ6CWNTB22ILWLZXJJANCNFSM6AAAAAASU2DQ7Y
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Unable to use proxy

I'm using the tool to setup a local mirror in our internal network. The server for the local mirror has no direct internet connection and would need to use the corporate proxy to access external resources. It seems that the cvdupdate tool currently is unable to use a proxy server.
I tried to set environment variables http_proxy and https_proxy but it did not work.
The documentation indicates that requests.request() needs an additional proxies dictionary to configure a proxy server.
It would be nice to implement this to support local mirrors behind a corporate proxy.

@smoeding have you tried exporting uppercase variable names to your environment? i have not tested this.
export HTTP_PROXY="http://<IP_ADDRESS>:8000"
export HTTPS_PROXY="http://<IP_ADDRESS>:1212"

Good hint! I tried this but I also get an exception from urllib3 because the firewall blocks a direct connection. So it does not seem to work using environment variables.

I use a proxy via the http_proxy and https_proxy variables in a an update script with no issues. generally the https_proxy is going to use the CONNECT method. If that is blocked you may have issues.
#!/bin/bash

http_proxy=http://proxy-fqdn:3128/
export http_proxy
https_proxy=http://proxy-fqdn:3128/
export https_proxy

/usr/local/python3/bin/cvd update

Ok, my fault...
I was using sudo to run the cvd command as unprivileged user. But sudo ignores the environment from the calling shell. So cvd never saw the https_proxy environment variable. I'm using sudo -u mirror http_proxy=http://proxy-fqdn:3128 cvd update now.
Sorry for the noise! Thanks for your hints!


Initial setup for _follow_spring_arm_node is delayed for first time assignment of Properties.follow_target_node

Issue description
When in ThirdPersonFollow mode and follow_target is assigned to something non-null for the first time, the initial setup for _follow_spring_arm_node is triggered, but not until the next _process tick of the PhantomCamera3D. # The default behavior is for the spring arm orientation to be initialized to the orientation of the PhantomCamera3D, however, I would like for it to initialize to the orientation of the follow_target that was just assigned. If I try to set it immediately after I assign follow_target (pcam._follow_spring_arm_node.basis = pcam.get_follow_target_node().global_basis), the initialization code inside PhantomCamera3D._process will overwrite it on the next process tick.
This is only a problem for the first assignment of follow_target. Subsequent assignments will not trigger the initialization code and so I can immediately set the orientation of the spring arm. Currently, a simple workaround for my use case is to add a small delay so that _process can tick once before I assign the orientation:
if not pcam.get_parent() == pcam._follow_spring_arm_node:
	get_tree().create_timer(0.01).timeout.connect(func(): pcam._follow_spring_arm_node.basis = pcam.get_follow_target_node().global_basis )
else:
	pcam._follow_spring_arm_node.basis = pcam.get_follow_target_node().global_basis

IMO, the best solution would be to take any initialization code out of _process and instead trigger it from its own function when conditions for initialization have been met.
Steps to reproduce

Create a scene with a PhantomCamera3D in Follow Mode: Third Person without assigning a follow target.
Assign a follow target and immediately try to pcam.set_third_person_rotation. This assignment will apply, but will be immediately overwritten.

i ran into the same issue of needing to initialize some properties of the third person spring_arm on ready and it not working. instead of a using a timer i added a signal to the phantom camera that emits after it reparents the spring_arm. that seemed to work for my use case and it might work for yours. i don't know if its a good solution over all or not though

Is this still an issue in 0.7?

Yes. I didn't realized it when I made this change, but there's still initialization code inside PhantomCamera3D._process
Moving the rest of the initialization code into _ready() allows for me to change the workaround code from
if not pcam.get_parent() == pcam._follow_spring_arm:
	get_tree().create_timer(0.01).timeout.connect(func(): pcam._follow_spring_arm.basis = pcam.follow_target.global_basis )
else:
	pcam._follow_spring_arm.basis = pcam.follow_target.global_basis

into
pcam._follow_spring_arm.set.call_deferred("basis", pcam.follow_target.global_basis)

Can see you're assigning a basis value to the springarm node, would adding a setter function to the addon script make that easier?


Deployment Issue

I am trying to deploy the sample code to a brand new org (the deployment of mok and common went fine) and i have set the version to 37.0 Getting the following error
C:\apexsharp\AdvanceSalesForce\src\applications\standard__Content.app
Error:(1, 1) Property 'formFactors' not valid in version 37.0
C:\apexsharp\AdvanceSalesForce\src\applications\standard__Community.app
Error:(1, 1) Property 'formFactors' not valid in version 37.0
C:\apexsharp\AdvanceSalesForce\src\applications\standard__LightningSalesConsole.app
Error:(1, 1) Property 'formFactors' not valid in version 37.0
C:\apexsharp\AdvanceSalesForce\src\applications\standard__LightningService.app
Error:(1, 1) Property 'formFactors' not valid in version 37.0
C:\apexsharp\AdvanceSalesForce\src\applications\standard__Marketing.app
Error:(1, 1) Property 'formFactors' not valid in version 37.0
C:\apexsharp\AdvanceSalesForce\src\applications\standard__Service.app
Error:(1, 1) Property 'formFactors' not valid in version 37.0
C:\apexsharp\AdvanceSalesForce\src\applications\standard__ServiceConsole.app
Error:(1, 1) Property 'enableListViewHover' not valid in version 37.0

Also another set of errors when deployment the objects
C:\apexsharp\AdvanceSalesForce\src\objects\Goal.object Error:(1, 1) insufficient access rights on cross-reference id C:\apexsharp\AdvanceSalesForce\src\objects\Idea.object Error:(1, 1) Duplicate name 'Idea.Ideas_Last_7_Days' specified C:\apexsharp\AdvanceSalesForce\src\objects\Metric.object Error:(1, 1) insufficient access rights on cross-reference id

Hi @jayonsoftware these files are are not part of this repository, so i am not 100% how to help. It does look like the .app file metadata needs to be updated to match that specified in API 37. Suggest you either check the Metadata API Developers Guide in order to update the files or if you do not need them delete them (they appear to be the standard apps you get with a DE org). Hope this helps.


[Venice] Analytics

Link to project

[ ] Video play
[ ] Video dropoff time
[ ] Video duration as a percentage
[ ] Clicked UBS
[ ] Pageview

We have track calls ready for each of these events and we just need the preferred wording for things like:
context_type
impression_type
destination_path
First video launches May 3.
http://staging.artsy.net/venice-biennale for testing (log in as Admin)
cc @anipetrov @owendodd

Sorry we jumped the gun and there's a PR out there for this that takes care of all the cases above: https://github.com/artsy/force/pull/1306/files
We can do a follow up PR with updates to naming afterwards! (since the page isn't public yet, it won't affect any real data)

sounds good, thanks @kanaabe

looks like beforeUnload is giving us a dialog on close

Oh whoops thought we took care of that but I must have changed something. Thanks for catching @eessex

Regarding tracking for video plays/duration, do we want to track which video they are watching?

Yeah I think that would be good.
[A.]  Owen Dodd
   Designer

   Artsy <http://artsy.net/>

<EMAIL_ADDRESS>+1<PHONE_NUMBER> <//+1%20303%20819%200844>
On April 27, 2017 at 12:48:30 PM, Eve Essex<EMAIL_ADDRESS>wrote:
Regarding tracking for video plays/duration, do we want to track which
video they are watching?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/artsy/force/issues/1305#issuecomment-297680019, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADDGeHmGfXlxFnF9E05nxjSCyvhCfpteks5r0HJ-gaJpZM4NIA0U
.

Hey! Took a look at this with Will -- just a few notes:

The "sign up for the newsletter" button submission should be instrumented so we know how many signups we get from this
The "read our 360 guide" link doesn't go anywhere yet, I assume that's known
We should instrument the social buttons

The Followed artist event should have context_type: venice_biennale_2017, and should have an entity_id
The follow widget Followed artist event should have a model_name to be consistent with the other event, and should also have context_type

Minor, but we don't need impression_type on any of these events, it's redundant with the event name

Suggested naming:
For item 1, we already have a Sign up for editorial email event, so you could use
analytics.track('Sign up for editorial email', { user_email: xxx, context_type: venice_biennale_2017' }

For item 3, maybe something like this
analytics.track('Click social share', { service: 'twitter', context_type: 'venice_biennale_2017' }

Also re: your questions - we think the way you're tracking video dropoff time is good as is.

Actually do we need video dropoff if we have time watched? a user who watched 3/4s but not the whole thing obviously dropped off.

Thanks @mikehrom and @wrgoldstein! #2 is known. The rest make sense to me.
I invited you to a meeting tomorrow where we'll talk to Mark about dropoff and duration. The video will be posted on multiple platforms (Vimeo, Youtube, FB) and they all seem to have their own definitions of dropoff/duration, so we'll align on what to expect from the landing page. Hope either of you can make it!

Thank you @mikehrom and @wrgoldstein -- Regarding the artist follow button, it looks like the existing module uses 'context_page' rather than 'context_type', let me know if we should override.
For video events, we had discussed identifying individual videos in the events, does this make sense to you, and if so what naming should be used to identify?

Should we track a pageview each time someone rotates the carousel? The URL changes.

More events that may need naming details after meeting with @wrgoldstein &co:

[ ] 3 second
[ ] 10 second
[ ] Anything 360 video specific? (movement etc -- we may not be able to get this)
[ ] View in Cardboard button

@wrgoldstein / @mikehrom would you guys mind checking that everything looks alright on staging? Everything should be in now.

@wrgoldstein @kanaabe @eessex hi! following up on all the outstanding questions

Use context_type instead of context_page to be consistent with existing force schema

Re: carousel tracking, we went back and forth on this, but I figure if it can be easily tracked, we should track it. how about next_page_in_carousel and previous_page_in_carousel?

the naming details for video view duration (video_seconds) are fine as-is

Need to add video title:

analytics.track('Video play', { context_label: 'searching_for_venice', context_type: 'venice_biennale_2017' }

analytics.track('Video seconds', { context_label: 'searching_for_venice', context_type: 'venice_biennale_2017' }

@mikehrom
@eessex  pointed out that context_page is used on Follow buttons across the site. If we changed that to context_type for this specific use, it would be inconsistent with the rest of the site. Do we still want that?
Minor but asking anyway: would it make a difference to you if we used context_label: 'searching_for_venice' vs context_label: 'Searching for Venice' (the title) or even context_label: 'searching-for-venice' (the url slug)?

@kanaabe on second thought, the page path (which we track) tells us the same information as the context_page so we don't even really need that or a context_type
to the second question, using hyphens like the url slug works for us (i.e. context_label: 'searching-for-venice')

@mikehrom excellent -- thanks for the quick answers and help! 💯  Will follow up once more when this last batch of analytics are on staging.

@mikehrom analytics are on staging

@kanaabe i'm seeing a context_label for the Video seconds and Video duration events but not for the Video play event


AGDIGGER-130 Document the mobile app requirements

JIRA: https://issues.jboss.org/browse/AGDIGGER-130
cc @laurafitzgerald @odra @wei-lee

LGTM


Config CLI options

There's a common scenario when we'd like to define a specific configuration value on the command line, when providing the YAML may not be practical. Some examples:

An app is started in different modes
A job-containing app is run with different parameter sets

It is currently possible to handle that with -Dbq.property.path, but this is exactly the style that we were trying to stay away from. I am thinking of an alternative to be a special kind of CLI options that can be bound in Bootique by the application to alias the option value to a given config path:
ConfigOption opt = new ConfigOption("my-opt", "jobs.myjob.param", LocalDateTime.class);
BQCoreModule.contibuteOptions(binder).addBinding().toInstance(opt);

This will ensure that a particular config is automatically exposed in the help with documentation, and only things that change often are exposed, providing a user-friendly CLI for a particular tool.
(Hmm... perhaps we can use the same alias mechanism to name BQ_XYZ_ vars that often become too verbose. But this may be another task).

Re: implementation . See #124 - we can now declare variables that are bound to config paths. There's a very close analogy to options tied to config paths.