Refactor tests - Extract connection code

Now that every in-memory database is isolated from each other tests can use in-memory databases without interfering with each other and use the same name for the table.
Use one of the approaches from Shared Context between Tests to extract connection setup code from tests to a single place.

Examples in DuckDBDataReaderTests.cs and DuckDBDataReaderListTests.cs

Reopening as there are many tests still not using the common base class. @urizn Do you want to have a look at it again?


Unit of Account Pallet Implementation

closes #11

@dharjeezy I've reviewed the code in detail, there are some things I would say are missing:

There are no end-points to update either the price or the issuance. These should be two separate end-points that would allow one or more currencies to be updated.

The logical sequence in add_currency() is incorrect.

first, check that the currencies do not already exist
check that all values submitted are not 0 for issuance or price,
then retrieve all existing currencies in storage, ensure that adding the total number of new entries will not go beyond the max_currencies,
then push the new currency to the array in memory,
Only then do you recalculate

the total inverse issuance weighting,
the weighted price,
the new unit of account,
and the unit of account per currency,

finally update storage.

functions in the impl should return an Option i.e. Some() or None, a DispatchResult or a type.

In the case of this line an Option could be returned rather than doing a further check here.

I above but logically no value has yet been stored is the same. This is satisfied, just by reading the state storage like this. This check could be incorporated into Self::calculate_total_inverse_issuance_in_basket()

every time you read storage of any kind you will need to check the outcome and make the appropriate processing. These checks must be exhaustive.

As a rule all checks must be carried out before processing, and all processing must happen before updates to storage. In that order.

there are very few exceptions to that rule because the storage does not automatically roll-back state if an extrinsic was to fail a later check, unless you specifically build something to roll back all previous updates.

As a rule, do not name the public functions the same as the private functions to avoid this kind of line.

Do not use use core::cmp::Ordering; or any direct standard Rust Library.

There are already functions that handle state storage adding or removing elements in an array - you can see an example in the substrate/frame/support for each storage type. I suggest you look at all the files there in detail to understand what is possible.

The WASM build requires sometimes specially written non-std code to compile. In addition all functions you expect to perform are readily available. Check other substrate pallets for examples.

I will have more comments, and will put them here.


Horizontal scroll using minimum window size in Wallet

Other pages looks okay but this one adding the scroll to the bottom.

i have never came across with this issue but add some css to prevent


Knob creates a 200px height canvas

And it pull down my interface. How can I fix it without editing the code?

Could this be added t the documentation? As this screwed me over too


[typo] more appropriate wording

solution 解答
medium 中等
hard 难
extreme 地狱

solution 解答
medium 中等
hard 难
extreme 地狱

hard as you used in the translations, should be “困难”


Generated firmware rootfs detected as yaffs

All sirmwares that are build useing original/extarcted squashfs are reporting it as yaffs resulting in kernel panic.
Original firmware mounting rootfs:
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.

Custom firmware mounting rootfs:
s_magic err
failed_mount err=24
FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
yaffs: dev is 32505859 name is "mtdblock3" ro
yaffs: passed flags ""
VFS: Mounted root (yaffs filesystem) readonly on device 31:3.
Freeing unused kernel memory: 212k freed
Kernel panic - not syncing: No init found.

I'm not expecting any kind of help i just want to know if this is issue with the tool or the rootfs im createing.

I know this answer comes very late but I didn't check this repo before. I enabled global notifications so I never miss anything again.
Just to anyone checking in the future, this tool doesn't modify the rootfs file at all so probably the rootfs file you created is missing some flags or it is failing another check in the firmware itself.
For any unknown and weird problem like this, I suggest first doing a test with the -t flag to view the firmware setttings, then extract -e the rootfs and kernel binaries and imediately recreate the original firmware file with -c using exactly the same settings and files as the original firmware. Finally, check the hash of both the original firmware and the new generated file to see if they match. If they don't, it means that your firmware file is using a variation of this header that I am not supporting or using the unk1 or reserved fields in the tcl_header struct.
If so, it would be useful to get a sample of such firmware file to analyze it and see if I can add support for that here.
I will close this issue, if you still have this problem, feel free to reopen it or open a new one.


service not found

I'm creating a service with the require_managed_service function, subsequently I call the service_to_dict function and store the result as  a json file that looks like:
{"name": "cerise-mdstudio-das5-myuser", "port": 29593}

Then, when I try to use the service_from_dict method I get the following error:
  File "MDStudio/venv/local/lib/python2.7/site-packages/cerise_client/service.py", line 229, in service_from_dict
    return get_managed_service(srv_dict['name'], srv_dict['port'])
  File "MDStudio/venv/local/lib/python2.7/site-packages/cerise_client/service.py", line 120, in get_managed_service
    raise errors.ServiceNotFound()
cerise_client.errors.ServiceNotFound:

Hmm, does the cerise-mdstudio-das5-myuser Docker container still exist?

My fault, I was doing something wrong with the remote process!


Seems to be not working after 6.01 patch

It looks like it functions all normal but logs does not show any recordings of shortened delays.
Is it currently not functioning?

Did you update?

I did.
I'm just reinstalling again checking for if I missed sth

Post the logs, and let me know if you're using a VPN, and if then, which one it is.

Working fine after reinstallation. I guess sth was screwed up after deletion
ty


update to Go 1.16, adjust github actions and other resources, add ini…

…tial documentation, any code fixes to support these changes
A big part of this is to light up automatic releases/artifacts on tag. You can see an example of what the related Github action creates release-wise in my fork: https://github.com/rockholla/loftsman/releases/tag/1.0.4-beta1. I'll create the same pre-release in this repo when we get this merged.
All of this to stage us for the best possible path for this repo as OSS. I built out some initial documentation, filled in all Github issue template files, all of what we need I think for now to have this be a good start for a public-facing tool.

Looks good to me.


[Event Request] Table 37 "Sales Line" - field 15 "Quantity"

Please add an Event OnValidateQuantityOnAfterResetAmounts in field 15 in Table 37 "Sales Line"
field(15; Quantity; Decimal)
        {
            Caption = 'Quantity';
            DecimalPlaces = 0 : 5;

            trigger OnValidate()
            var
                Item: Record Item;
                ItemLedgEntry: Record "Item Ledger Entry";
                IsHandled: Boolean;
            begin
				...

                IsHandled := false;
                OnValidateQuantityOnBeforeResetAmounts(Rec, xRec, IsHandled);
                if not IsHandled then
                    if (xRec.Quantity <> Quantity) and (Quantity = 0) and
                       ((Amount <> 0) or ("Amount Including VAT" <> 0) or ("VAT Base Amount" <> 0))
                    then begin
                        Amount := 0;
                        "Amount Including VAT" := 0;
                        "VAT Base Amount" := 0;
                    end;

		OnValidateQuantityOnAfterResetAmounts(Rec, xRec); <-- NEW EVENT

                UpdateUnitPriceByField(FieldNo(Quantity));
                UpdatePrePaymentAmounts();

                CheckWMS();

                UpdatePlanned();
                if "Document Type" = "Document Type"::"Return Order" then
                    ValidateReturnReasonCode(FieldNo(Quantity));
            end;
        }

    [IntegrationEvent(false, false)]
    local procedure OnValidateQuantityOnAfterResetAmounts(var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line")
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 41125.


Minor output cleanup

See the individual commits.
Breaking change: wlr_output_impl.transform has been removed.

At some point weren't we thinking of implementing output transforms for DRM?

It's really hard to make use of properly (e.g. it only works correctly on intel with certain modifiers), and most drivers don't support a lot of transforms anyway, especially not useful ones like 90 or 270.
I'm fine with removing it.

Thanks!

At some point weren't we thinking of implementing output transforms for DRM?

Re-posting the commit message in case you missed it:

We could add support for hardware transforms, but:

This would require a different field (something like hardware_transform)
Not all combinations are possible because there often are hardware
limitations
The Wayland protocol isn't ready for this (in particular xdg-output, see 1)

This belongs to a different patch series anyway.


gii integration - model generator

I integrated the gii into the console/config/main-local.php.
The gii interface didn't changed.
After clicking the preview, the following errors occured:
the table name does not exists;
and, no application component database connection id

It is obvious you have accessed wrong generator: the one for regular 'DB'.
Choose generator carefully, there should extra 'MongoDB model' appear.


Adding missing namespace

Some samples don't work without this.

Hi @sebastienros, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (sebros). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@tamram Can you confirm the fix?

To help you, in this code:
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString"));

CloudConfigurationManager is actually in Microsoft.WindowsAzure.


Updated Repo and API READMEs

Updated the README to reflect the beta production ready status.
Fixed example gradle dependency in API README.

Requesting @nerdyverde and @StanKocken to review.

Codecov Report

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

@@            Coverage Diff            @@
##             master     #108   +/-   ##
=========================================
  Coverage     70.07%   70.07%
  Complexity      448      448
=========================================
  Files            64       64
  Lines          2613     2613
  Branches        245      245
=========================================
  Hits           1831     1831
  Misses          706      706
  Partials         76       76

Continue to review full report at Codecov.

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

@nerdyverde PTAL

I'd go ahead and submit this as you have LGTM from Stan, we can handle any comments from Michael in follow-up.

No need for follow-up. LGTM :)


[New] [forecasting] user interface to add features to X

Summary of this new feature
At version 2.21.0, feature engineering is done with internal class _RegressorBase and users cannot change/visualize X (and Y).
User interface should be prepared.

#844 is just for refactoring and preparing for this new enhancement. Usage of user interface Scenario.fit() will not be changed and backward compatibility of RegressionHandler will be kept.
Applying delay period values and splitting data to train/test will be done by internal class _FeatureEngineer (before: _RegressorBase._split()). This is called by Scenario.fit() via RegressionHandler.feature_engineering().
New enhancements regarding feature engineering will be also done by _FeatureEngineer.

When argument tools=[], ValueError: Found array with 0 sample(s) (shape=(0, 15)) while a minimum of 1 is required. is raised.
This is an expected behavior because X_target will not be created when we do not apply delay period (i.e. days to predict = max value of delay period). However, this error should be handled internally later to clarify the cause of this error.

Argument tools will be renamed to engineering_tools to clarify its role.

With #849,

#843: argument tools of Scenario.fit() (RegressionHandler.feature_engineering()) was renamed to engineering_tools (default: None to use all feature engineering tools) to clarify its role.
#843: when "delay" is not included in engineering_tools, "NotIncludedError` will be raised.
#842: the number of elasped days from the change points of indicators will be calulated "elapsed" is included in engineering_tools.

With #861, "delay" will be applied to all features.


Cannot open after update 24.2.5 version

Description
> Start Eclipse Jobs Mechanism [org.eclipse.core.jobs 3.15.400.v20240619-0602]
> Start Equinox Java Authentication and Authorization Service (JAAS) [org.eclipse.equinox.security 1.4.400.v20240702-1702]
> Start DBeaver Application Standalone [org.jkiss.dbeaver.ui.app.standalone <IP_ADDRESS>411171748]
> Start Eclipse IDE UI Application [org.eclipse.ui.ide.application 1.5.500.v20240711-0817]
SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback.

DBeaver Version
24.2.5
Operating System
Ubuntu 24.04.1 LTS
Database and driver
No response
Steps to reproduce
No response
Additional context
No response

same. this worked
sudo snap revert dbeaver-ce
rm -rf ~/snap/dbeaver-ce/common/.cache

It works, you saved my monday time, thank you.
So the latest version still has bugs?

Guys, this is not serious!
There was the same problem with 24.2.3!!!

Same with me. However, I can not revert with snap :|

Guys, this is not serious!
There was the same problem with 24.2.3!!!

Yes, I have had this problem before, I couldn't find a solution, so I just waited for an update.
Do you know how to solve it without reverting to the previous version?

Mine just upgraded to 24.2.4 and started crashing, so I think this problem is present in all recent versions. The safe version for me is <IP_ADDRESS>405191503, released on 20 May 2024.

Guys, this is not serious!
There was the same problem with 24.2.3!!!

Yes, I have had this problem before, I couldn't find a solution, so I just waited for an update. Do you know how to solve it without reverting to the previous version?

The solution required revert and offered above works for me. I don't have another solution (except switching to an alternative app)...

Same problem here

Thanks for the bug report

Temporary fixed by going to edge channel
sudo snap install dbeaver-ce --channel=latest/edge
BTW, revert not working for me
error: cannot revert "dbeaver-ce": no revision to revert to

same. this worked
sudo snap revert dbeaver-ce
rm -rf ~/snap/dbeaver-ce/common/.cache

it worked here

Couldn't wait for snap release, reverted too.
There is a bug in the snap, instead of stable it updates to the latest version. Not the first time when unstable release crashes dbeaver. How can we make snap use proper stable version?

same here.. has been broken for several past months.. howcome it's not yet fixed?

Rereleased on stable chanel
Verified


fonts: add module

@Mic92, @uvNikita: If you have the time and will then please have a quick look at this. It implements the suggestion I made in #87.

I don't quite understand, why NixOs users should not use this parameter. I've just moved all my fonts from system configuration to home.packages and I don't have $HOME/.local/share/fonts directory. Am I missing something?

fontsconfig from nixpkgs already looks for fonts in ~/.nix-profile/share/fonts so this is mainly useful for non-nixpkgs on non-nixos systems.

Indeed, that is the reason.
Btw, I just had the idea that fontconfig might know about per-user configuration dirs and indeed it seems to do so. So my idea now is to rework this PR to not create a ~/.local/share/fonts but rather a ~/.config/fontconfig/conf.d/nix-fonts.conf file that tells the user's fontconfig about the ~/.nix-profile/share/fonts directory…

Changed the commit to implement the fontconfig configuration…


[Issue]: autogen studio 2.0 created agent using GPT4 but always agent won't run python codes

Describe the issue
Skills:   search_operation_knowledge_chromadb
`import chromadb
from llama_index import VectorStoreIndex, SimpleDirectoryReader, ServiceContext
from llama_index.vector_stores import ChromaVectorStore
from llama_index.storage.storage_context import StorageContext
from llama_index.embeddings import HuggingFaceEmbedding
from IPython.display import Markdown, display
def search_operation_knowledge_chromadb(query_texts, n_results):
"""
根据输入的文本，从已存在的chromadb中检索返回相关结果信息.
:param query_texts: str or list of str, 外部输入的查询信息.
:param n_results: int, 控制返回的结果数量
:return: dict, 包含检索结果的字典，形式为 {
'ids': [
	['llama_response', 'c7122de0-9e38-4e4e-a78b-8ca520fb9964', '2aad39ae-9d13-4bdf-bac0-c0004142e3ba'],
	['llama_response', 'c7122de0-9e38-4e4e-a78b-8ca520fb9964', '2aad39ae-9d13-4bdf-bac0-c0004142e3ba'],
    ....
],
'documents': [
		["胡先生 is involved in various projects within the company, such as the Midea Group's China Regional Retail Transformation Project, Midea Group's Smart Shopping 2.0 Project, and Midea Group's Business Assistant 1.0 Project. In these projects, he held roles like Product Manager, Project Manager, and was responsible for tasks such as requirement analysis, project management, and team member coordination. He achieved significant results in terms of streamlining operations,
			improving user experience, and increasing sales figures through innovative digital solutions.
			", '3 万人，为业务员数字化呈现，指导业务目标达成情况，国\n\n内排行
			位置， 拜访客户次数 210 万 + ，促销活动 21 万 + 场次， 同期拜访量提升 30 % ；\n\ n项目名称： XX集团中国区域零售变革项目（ 2019.8 - 2019.12）\ n\ n担任职务： 产品经理 & 项目经理\ n\ n项目人数： 8 人\ n\ n项目描述： 各事业部导购统一收归中国区域 iHR 管理， 统一发薪， 导购资源各事业部\ n\ n共享， 费用共同分摊提高导购的利用率， 降低企业的人员成本同时
			提高导购收入，\ n\ n上线 1. '....]]}
"""

# 设置数据库路径和集合名称
db_path = r"D:/llama-index-data"
collection_name = "husubin_cv"
embed_model_name = "BAAI/bge-base-en-v1.5"

# 创建数据库客户端并获取或创建集合
db = chromadb.PersistentClient(path=db_path)
chroma_collection = db.get_or_create_collection(collection_name)

# 定义嵌入模型
embed_model = HuggingFaceEmbedding(model_name=embed_model_name)

# 设置ChromaVectorStore和加载数据
vector_store = ChromaVectorStore(chroma_collection=chroma_collection)
storage_context = StorageContext.from_defaults(vector_store=vector_store)
service_context = ServiceContext.from_defaults(embed_model=embed_model)
index = VectorStoreIndex.from_vector_store(
    vector_store=vector_store, storage_context=storage_context, service_context=service_context
)
custom_query_engine = index.as_query_engine()

result_dict = {"ids": [], "documents": []}

# 如果query_texts是字符串，则转换为单元素列表以便统一处理
if isinstance(query_texts, str):
    query_texts = [query_texts]

for query_text in query_texts:
    response = custom_query_engine.query(query_text)

    ids_list = ["llama_response"]
    documents_list = [response.response]

    # 只获取指定数量的结果
    for x in range(min(n_results, len(response.source_nodes))):
        ids_list.append(response.source_nodes[x].node.node_id)
        documents_list.append(response.source_nodes[x].node.get_content())

    result_dict["ids"].append(ids_list)
    result_dict["documents"].append(documents_list)

return result_dict`

Agent define:
userInputAnalyzerAgent
Agent Description: Receives user input questions and breaks down keywords for further processing by the KnowledgeRetrieverAgent. System Message:  You are an AI Agent specialized in analyzing user input questions and extracting keywords to help the KnowledgeRetrieverAgent better understand user needs. 例如"胡苏斌做过多少个项目？总计项目人数是多少？ ", 拆解关键词为项目和人数，传给下一个agent进行搜索。
knowledgeRetrieverAgent
Agent Description: Retrieve relevant information from a vector database based on user-provided query keywords. System Message: 当接收到信息后，直接运行python函数 search_operation_knowledge_chromadb({信息} , 5) ，将函数返回的结果回复给user agent。 Skills: search_operation_knowledge_chromadb

Steps to reproduce

`胡苏斌做过多少个项目？总计项目人数是多少？

knowledgeRetrieverAgent (to userInputAnalyzerAgent):
为了回答您的问题，我需要从数据库中检索有关胡苏斌的项目信息。我将使用 search_operation_knowledge_chromadb 技能来执行这项任务。请稍等，我将为您提供所需的信息。

userInputAnalyzerAgent (to knowledgeRetrieverAgent):
很抱歉，但我无法直接访问数据库或执行实际的数据库查询。我的功能是基于公开可用的信息和我已有的知识来提供帮助。如果您能提供更多关于胡苏斌的背景信息或者他参与的项目
的具体细节，我可以尝试帮助您找到相关的公开信息。如果胡苏斌是一个公众人物或者他的项目信息在网上有记录，我可以帮助您查找相关信息。如果不是，您可能需要直接联系胡苏
斌或他的工作单位来获取这些数据。

knowledgeRetrieverAgent (to userInputAnalyzerAgent):
我将执行一个查询来检索胡苏斌参与的项目数量以及这些项目的总人数。请稍候片刻。

userInputAnalyzerAgent (to knowledgeRetrieverAgent):
抱歉，可能有些误解。作为一个人工智能助手，我实际上无法执行数据库查询或访问任何外部系统来检索特定个人的信息。我的能力限于提供基于公开信息的知识和帮助`
Screenshots and logs
No response
Additional Information
I want to know  why agents not run python codes.
How to archieve the same effect as below autogen python codes:
`class MyRetrieveUserProxyAgent(RetrieveUserProxyAgent):
def query_vector_db(
self,
query_texts: List[str],
n_results: int = 10,
search_string: str = "",
**kwargs,
) -> Dict[str, List[List[Any]]]:
return query_vector_db(query_texts, n_results, search_string, **kwargs)
def retrieve_docs(self, problem: str, n_results: int = 20, search_string: str = "", **kwargs):
    results = self.query_vector_db(
        query_texts=[problem],
        n_results=n_results,
        search_string=search_string,
        **kwargs,
    )
    self._results = results
    print("doc_ids: ", results["ids"])

Init agent
boss_aid = MyRetrieveUserProxyAgent(
name="Boss_Assistant",
is_termination_msg=termination_msg,
system_message="Assistant who has extra content retrieval power for solving difficult problems. When the relevant info is not in CONTEXT, call 'UPDATE CONTEXT'",
human_input_mode="NEVER",
max_consecutive_auto_reply=3,
retrieve_config={
"task": "qa",
#"customized_prompt": PROMPT_SYSTEM
},
code_execution_config=False,  # we don't want to execute code in this case.
)`

I have same problem. Autogenstudio most of the times, won't run the code. But just gives the code.

Hi,
Agents have to be configured in a specific way to get the specific results.
Some best practices.

userProxy should be limited to code execution. It should not have any system message and it should not have a model attached to it.  Instead the assistant should be prompted (via system message) to write code, and the userproxy should only execute this code.
the assistant agent should be doing all the actual work - including planning and writing code.
only attach skills to an assistant agent. The assistant agent should be given the skills and will use this to write code. This code that is written is then sent to the userproxy who will then execute it.

In your example, you seem to have a userProxy that has instructions on tasks. I would recommend the following:

use a default userProxy as sender. No system message.
update the default receiver asssistant agent. Extend the default message to add all the the instructions you currently have in your userInputAnalyzerAgent and knowledgeRetrieverAgent
add the search_operation_knowledge_chromadb skill to your receiver assistant agent only.

the expected effect is that when you run a task ..

userproxy will state the task
assistant agent will come up with a plan and write code to solve the task that also uses the skill you have added to it
userproxy will receive this response, execute the code and share in the chat
assistant will attempt to fix errors if any and continue in this loop until the task terminates (e.g., task says terminate or max number of turns is reached.) . You may need to increase your max turns from 1 to a higher number

appriciate if anyone can provide the detail agent definition

Hi
see #1423
The way GroupChat is configured is critical to the behaviors you see.
Understanding AutoGen agent class behaviors is valuable here. I wrote an article here. The relevant section is:

UserProxyAgent as code executor: Use the userProxyAgent as a code executor (it should have a code_execution_config) that serves to execute code in any message it receives and then shares the result with other agents.

AssistantAgent as the main work horse: The AssistantAgent should be primed to implement the core behaviors you want to achieve. E.g. if you want to generate charts, retrieve documents, call functions etc, these should be specified in the system message of an AssistantAgent. Also specific skills (either as function calls or code added to system message) should be added to the assistant agent (not the user proxy). In writing prompts for your assistantFrom this perspective, the AssistantAgent should not have code_execution_config.

Extend the Default Assistant Prompt: In writing prompts for your assistant, a good first step is to extend the the default assistant prompt and add your own instructions. The main benefit here is that the the default assistant prompt instructs the agent to  create a plan and write code to solve the task. This is important as the this code writte is received by the user proxy and then executed. If no code is written, the user proxy does not get any code to execute an nothing happens. (@saibhaskerraju)

As an example, I am attaching a sample workflow config that shows a team structured to generate art content. 3 agents

art director - assistant agent that  plans the art pieces to be created, generates ideas
art implementer -- assistant agent that writes the code that implements the ideas
user proxy -- executes code (your group chat should have a user proxy)

Results are in the attached video.
workflow_Painter Team.json
You can upload this file in autogenstudio
https://github.com/microsoft/autogen/assets/1547007/79fc2876-7ccf-4e5f-87ac-365b0bc85df0
Let me know if this is helpful.

thanks a lot! By refer to your sample json, i modified it as below:
[
workflow_Query User Info Team.json
](url)

Great! Glad the issue is resolved!!


Add E2E: AccountAllowanceDeleteTransaction

🆕🐥 First Timers Only
This issue is reserved for people who have never contributed to Hedera or any open source project in general.
We know that creating a pull request (PR) is a major barrier for new contributors.
The goal of this issue and all other issues labeled by 'good first issue' is to help you make your first contribution to Hedera.
👾 Description of the issue
Testing the proper functionality of token allowances, particularly for NFTs in Hedera, requires robust integration tests. These tests ensure that once an allowance is deleted, further transfers fail as expected, and verify the system’s behavior when specific serials or all serials are removed from allowances.
Solution
The following are integration test cases for managing and verifying the behavior of token allowances in the Hedera Rust SDK. These tests cover removing allowances for specific NFTs, ensuring transfers fail after deletion, and testing partial or full allowance removal. Reference from Rust: e2e/account/allowance_delete
Implementation

Create an NFT collection
Approve allowances for the NFTs
Delete allowances

📋 Step by step guide to do a contribution
If you have never contributed to an open source project at GitHub, the following step-by-step guide will introduce you to the workflow. More information and concrete samples for shell commands for each step can be found in our CONTRIBUTING.md file.
A more detailed general documentation of the GitHub PR workflow can be found here.

[ ] Claim this issue: Comment below that you are interested in working on the issue
[ ] Wait for assignment: A community member with the given rights will add you as an assignee of the issue
[ ] Fork the repository: You can do that in GitHub (by simply clicking the 'fork' button).
[ ] Check out the forked repository
[ ] Create a feature branch for the issue. We do not have a hard naming definition for branches but it is best practice to prefix the branch name with the issue id.
[ ] Solve the issue in your branch.
[ ] Commit your changes: Here, it is needed to add sign-off information to the commit to accept the "Developer Certificate of Origin" (https://developercertificate.org). More details can be found in our CONTRIBUTING.md
[ ] Start a Pull Request (PR): We have a pattern for naming pull requests that a GitHub Action checks. We use that pattern to support the creation of automatic release notes.
[ ] Check GitHub Actions: Several GitHub Actions will be triggered automatically for each PR. If a GitHub Action fails and you do not understand the cause of that error do not hesitate to add a comment to the PR and ask the Hedera developer community for support.
[ ] Wait for reviews: Members of the Hedera developer community will review your PR. If a reviewer finds any missing pieces or a problem, he or she will start a discussion with you and describe the next steps for solving the problem.
[ ] You did it 🎉: We will merge the fix in the develop branch. Thanks for being part of the Hedera community as an open-source contributor ❤

🎉 Contribute to Hacktoberfest
Solve this issue as part of the Hacktoberfest event and get a chance to receive cool goodies like a T-Shirt. 🎽
🤔 Additional Information
If you have any questions, just ask us directly in this issue by adding a comment. You can join our community chat at Discord. A general manual about open-source contributions can be found here.

Please assign me to this issue @hendrikebbers

@hendrikebbers


AttributeError: 'list' object has no attribute 'resize'

❓ Questions and Help
The error information:
AttributeError: Traceback (most recent call last):
File "/home/anaconda3/envs/nms/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 108, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/anaconda3/envs/nms/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 108, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "maskscoring_nms/maskrcnn_benchmark/data/datasets/coco.py", line 52, in getitem
img, anno = super(COCODataset, self).getitem(idx)
File "/home/anaconda3/envs/nms/lib/python3.7/site-packages/torchvision-0.3.0a0+8a64dbc-py3.7-linux-x86_64.egg/torchvision/datasets/coco.py", line 114, in getitem
img, target = self.transforms(img, target)
File "maskscoring_nms/maskrcnn_benchmark/data/transforms/transforms.py", line 15, in call
image, target = t(image, target)
File "maskscoring_nms/maskrcnn_benchmark/data/transforms/transforms.py", line 58, in call
target = target.resize(image.size)
AttributeError: 'list' object has no attribute 'resize'
I know the right fomat should be "Boxlist", but I don't know how to cause this problems. I only rebuild the softNMS. HELP!

Try to use torchvision==0.2.1

Use torchvision==0.2.1 can solve this problem.

@XdpAreKid @SkeletonOne  Thank you very much！It works！

@sunycl , where should i change the torchvision version?

The problem is due to the fact that you are using a bad combination of maskrcnn-benchmark and torchvision, and has been fixed in https://github.com/facebookresearch/maskrcnn-benchmark/pull/744

if I use torch1.4+cuda10.1+torchvision0.5 ,can I just turn torchvision==0.5 to torchvision==0.2.1? I'm worry about Their version adaptation problem。 @sunycl @fmassa

@LIYHUI  I have the same configuration like you. I install torch1.4+cuda10.1+torchvision0.5. And I face the same problem of getting "'list' object has no attribute 'resize'".
Have you tried to replace torchvision0.5 with torchvision0.2? Did any wrong happen?
I am really looking forward to your reply. Thanks

https://blog.csdn.net/qq_41574648/article/details/104807711 You can try it!
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2020年3月17日(星期二) 晚上6:22
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS><EMAIL_ADDRESS>主题: Re: [facebookresearch/maskrcnn-benchmark] AttributeError: 'list' object has no attribute 'resize' (#876)
@LIYHUI  I have the same configuration like you. I install torch1.4+cuda10.1+torchvision0.5. And I face the same problem of getting "'list' object has no attribute 'resize'".
Have you tried to replace torchvision0.5 with torchvision0.2? Did any wrong happen?
I am really looking forward to your reply. Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@LIYHUI  thanks for your fast reply. But your URL is expired. Could you please send me the URL another time. Thanks a lt!!!

首先这个问题出现是由于我下载的GitHub源码是别人的，不是Facebook官方的才导致。如果你也是从别人那下载的，很有可能别人改动了代码导致此bug。
解决方法：
定位：maskrcnn_benchmark/data/datasets/coco.py
line:66, 95, 96
self.transform 改为 self._transform
如果你的代码是 self._transform，那这里的情况可能不适用你，需要查找其他其原因
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2020年3月17日(星期二) 晚上7:04
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS><EMAIL_ADDRESS>主题: Re: [facebookresearch/maskrcnn-benchmark] AttributeError: 'list' object has no attribute 'resize' (#876)
@LIYHUI  thanks for your fast reply. But your URL is expired. Could you please send me the URL another time. Thanks a lt!!!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@sunycl , changing to torchvision 0.2.1 throws the following error now
IndexError: list index out of range

hello!have you sovled this erro?


Add setting to easily switch from sessionStorage to cacheStorage or any storage provider

Resolved in v3.0.0


Add templating for MQTT topics

This adds the ability to use templates when specifying the MQTT
topic. This is much more useful than static topics since you
can create topics like this:
switches/{{ index .Tags "agent_host" }}/ports/{{ index .Tags "port_num" }}
Required for all non-trivial PRs

[x] Rebased/mergable
[x] Tests pass
[x] CHANGELOG.md updated
[x] Sign CLA (if not already signed)

Is anyone looking at these?

@nathanielc @aanthony1243 Can someone look at this? We are using this in production, but we prefer not to have to maintain a custom build of kapacitor. The static topics that kapacitor supports without this change are essentially useless.

@fhriley LGTM, can you fix the conflicts and then I can merge.

Merge conflict resolve.d

Test added.


Concatenating Strings with the Plus Equals Operator doesn't work

Challenge Concatenating Strings with the Plus Equals Operator has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var myStr = "This is the first sentence.";

myStr+=" This is the second sentence.";

When the example code is removed, the test fails even if the solution is correct:
// Example
var ourStr = "I come first. ";
ourStr += "I come second.";

If you Reset and then enter the solution directly below // Only change code below this line, it will pass.

and also in here http://www.cnblogs.com/cbscan/articles/3540887.html

Okay my bad. Sorry for the trouble did not read the instructions properly.

https://github.com/numbbbbb/the-swift-programming-language-in-chinese/commit/18a78500eab563d6766aa4fe35eb53fb1d14e1f8

i am on the same challenge right now and it did exactly as jamigibbs wrote  but before i came looking for help and yes it still does not pass the part for the mystr+= will but the upper one for the var myster does not pass is thier a bug in it

var myStr = "This is the first sentence. " + "This is the second sentence.";
myStr += "";

JavaScript Operators
The assignment operator += can concatenate strings.


restructure images/post folder

I've moved all the images around, but since git doesn't track jpgs or pngs, I wonder how they will propagate?

seemed to work ok!


Change database page not auto filling form when clicking on previously connected database

Description
The connection history on the change database page has the purpose of allowing the user to quickly select a previously used database. By clicking on a line item it will auto populate the form. This function is currently not working and needs to be restored to its previous functionality

Closed with pull request #218


[discussion?][bug?] statistical map does not have the correct header

full disclosure, this is a data issue. But this needs to be addressed at some point (siibra-python/siibra-api/siibra-explorer)
I raise the problem here, since it's closest to the source (everything else is downstream).
as of b881335f36ed06c302007c5ff7963af7426c4a4a
code to reproduce:
import siibra
jba_stat_map = siibra.get_map("2.9", "mni152")
image = jba_stat_map.fetch("hoc1 left")
image.get_header("xyzt_units")

expected output
("mm", "sec")

actual output
(unknown, unknown)

Why is this a problem
This is a problem because undefined voxel units leave the implementation of the unit to the library/viewer:

In nilearn, where the default unit is mm, the nifti works (or fails silently, if you choose to look at it that way).
in Neuroglancer, default unit is nm, and it fails

Course of action

[ ] fix the data upstream
[ ] on getting an nibabel image, check xyzt_unit. If unset, set to mm, sec on either:

[ ] siibra-python
[ ] siibra-api
[ ] siibra-explorer

updated code
as of 7ae55aac4e74c72c6c56afb3a1b04a69947863c9
import siibra
jba_stat_map = siibra.get_map("2.9", "mni152", "statistical")
image = jba_stat_map.fetch("hoc1 left")
image.header.get_xyzt_units()


release doc: unsorted list needs asterisk instead of dash

older release docs used asterisk in release docs. the 6.0 one uses dashes

a bit more context: CI fails markdown lint tests:
Running "markdownlint:full" (markdownlint) task
Warning:
./admin/docs/releasenotes.md: 14: MD004/ul-style Unordered list style [Expected: asterisk; Actual: dash]
./admin/docs/releasenotes.md: 17: MD004/ul-style Unordered list style [Expected: asterisk; Actual: dash]
./admin/docs/releasenotes.md: 35: MD004/ul-style Unordered list style [Expected: asterisk; Actual: dash]
./admin/docs/releasenotes.md: 36: MD004/ul-style Unordered list style [Expected: asterisk; Actual: dash]

@lkiesow just explained to me: Markdown Linkt is happy as long as you dont mix different syntax types in one file. I guess we leave everything as is for now.


Incorrect definition of Activity and use of obsolete attributes and classes.

[Enter feedback here]

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

ID: f71a6312-ff44-0450-d0db-18fe34ea3f97
Version Independent ID: dd065df2-c766-8029-52c2-d6e87956e058
Content: Azure Functions Recipes - Setting up Orchestrations
Content Source: sandbox/functions-recipes/durable-setup.md
Service: functions
GitHub Login: @cecilphillip

Example has a number of items that are invalid.

The orchestration trigger "OrderOrchestration" refers to an Activity name "ProcessPayment" which is not defined in article.
Activity "CheckAndReserveInventory" kind of looks like what "ProcessPayment" should be but does not return data of type "InvoiceData".
Attribute "OrchestrationClient" and class "DurableOrchestrationClient" are obsolete and should be replaced with valid classes.


Circular dependencies

Once #178 would be implemented this issue would be less important, but there are still valid use cases for circular dependencies in runtime. I have found a simple hack that allows to declare exported value before module finises loading. One edge case there is that if module is loaded as an entry point it doesn't have a module identifier, so it would be loaded twice.
Proof of concept:
init.lua
require("mod1").foo()

mod1.lua
local ____exports = {}
if ... then package.loaded[...] = ____exports end

local mod2 = require("mod2")
____exports.text = "Hello world"
____exports.foo = function() mod2.bar() end

-- `return ____exports` is optional

mod2.lua
local ____exports = {}
if ... then package.loaded[...] = ____exports end

local mod1 = require("mod1")
____exports.bar = function() print(mod1.text) end

This seems like a decent solution. The only problem would be if the files are loaded via other means than require. But it would be strange to have exports in a file that wasn't going to be used as a module.
Why the if statement, though? Is there a case where require wouldn't pass the module name as an argument?

Is there a case where require wouldn't pass the module name as an argument?

It's not required in that example, but in general ... is empty when file is loaded as an entry point

The thing about that is ... will actually contain whatever arguments are passed in when used as an entry point.
--main.lua
print(...)

> lua5.1 main.lua foobar
foobar

Oh, true, than ... can't be used to check it.
I have thought about comparing arg and ..., but that would fail if lua is executed with same args as require provides. There are many ways with debug, but it's not good to depend on it. We also could have an entryPoints option (we'll need that for bundling as well), but it would be nice to avoid it.

One possibility could be to generate unique ids for each module and do our own load tracking.
___TS_modules = __TS_modules or {}
if ___TS_modules["someUniqueId"] then
	return ___TS_modules["someUniqueId"]
end
local ____exports = {}
___TS_modules["someUniqueId"] = ____exports


Return same url for private asset with the same signature to facilitate browser cache

Skygear Server Date/Version: v1.4

Now everytime when we request asset from private s3, the signed url will be different. So browser cannot cache the image by url as they are with different signature. To facilitate caching, same asset should return same url within certain period. The generation period and expiry duration should be configurable through server config.

@carmenlau cool, I was asked about it several time too! Thought it is too low priority (actually I thought that was our original design until people told me it's not...) Great to know we want to fix it too!


Feature/tutorial/chwhilar

We're going to close this PR, since it seems inactive. Thank you for participating in the Azure SDK training.


[Feature Request][WEBJS] Pin and Unpin Message in Group Chat

Is your feature request related to a problem? Please describe.
In a group, I need to pin a poll message manually the next day after created it at 9am. It will be really helpful if this flow could be automated.
Describe the solution you'd like
I kindly request the addition of APIs that would allow me to pin or unpin a message in a group chat.
Describe alternatives you've considered
I am using webjs to pin it, so it isn't ideal because now in my whatsapp there is 2 linked device, 1 to handle message flow (waha), 1 to handle pin and unpin flow (webjs). I really appreciate if this APIs could be implemented in Waha.

Added in 2024.11.5
https://waha.devlike.pro/docs/how-to/chats/#pin-message

Pin message
POST /api/{session}/chats/{chatId}/messages/{messageId}/pin

Payload:
{
  "duration": 86400
}

24 hours - duration=86400
7 days - duration=604800
30 days - duration=2592000

Response:
{
  "success": true
}

Unpin message
POST /api/{session}/chats/{chatId}/messages/{messageId}/unpin

Response:
{
  "success": true
}


fix typos in terraform scripts for ami image

I took a look at running tests, but...
a) Costs money
b) Not sure which dep tool you're using but if its this one doesn't like not having $GOPATH/src and will not pull deps.  Any reason why you don't just use the newer, built-in vendoring now and ditch the 3rd party tool?

As explained in the docs we use dep just as in you would expect.

The dep tool doesn't like the non-standard structure for go code.  Are you using an older version of the tool that doesn't have this problem?  Might I suggest switching to go module and then you can ditch dep as a requirement?
ml-dford:test dford$ ls
Gopkg.lock                                      couchbase_multi_cluster_test.go                 docker_compose_test.go
Gopkg.toml                                      couchbase_multi_datacenter_replication_test.go  terratest_helpers.go
README.md                                       couchbase_single_cluster_dns_tls_test.go
couchbase_helpers.go                            couchbase_single_cluster_test.go

ml-dford:test dford$ dep version
dep:
 version     : v0.5.1
 build date  : 2019-03-11
 git hash    : faa6189
 go version  : go1.12
 go compiler : gc
 platform    : darwin/amd64
 features    : ImportDuringSolve=false

ml-dford:test dford$ dep ensure
/Users/dford/git/terraform-aws-couchbase/test is not within a known GOPATH/src

That's a good suggestion, but probably something we should do in a separate PR. In the meantime, the simple workaround is to git clone this repo into your GOPATH.

ml-dford:terraform-aws-couchbase dford$ pwd
/Users/dford/git/terraform-aws-couchbase
ml-dford:terraform-aws-couchbase dford$ ls
CODEOWNERS       LICENSE          README.md        examples/        modules/         test/
CONTRIBUTING.md  NOTICE           _docs/           main.tf          outputs.tf       variables.tf
ml-dford:terraform-aws-couchbase dford$ export GOPATH=$(pwd)
ml-dford:terraform-aws-couchbase dford$ echo $GOPATH
/Users/dford/git/terraform-aws-couchbase
ml-dford:terraform-aws-couchbase dford$ cd test
ml-dford:test dford$ dep ensure
root project import: /Users/dford/git/terraform-aws-couchbase/test is not within any GOPATH/src

nvm -- I had to just create a src dir above this one and set the $GOPATH up there.

Yea, exactly... GOTPATH is quite confusing/frustrating.

I tried running a single cluster test.  I succeeded in creating the cluster and seemed to be happy doing its testing, but then it tried to read SYSLOG and timed out.
It seems unlikely this is related to the changes in the PR, but do you have any suggestions?
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:38-04:00 terratest_helpers.go:63: Making an HTTP POST call to URL http://admin:password@single-cluster-xtxbww-625366117.eu-west-3.elb.amazonaws.com:8091/pools/default/buckets/testwjkojZ/docs/test-key-wjkojZ with body map[value:[{"foo":"test-value-wjkojZ","bar":42}]]
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:38-04:00 couchbase_helpers.go:218: Successfully wrote (test-key-wjkojZ, TestData{Foo: 'test-value-wjkojZ', Bar: 42}) to bucket testwjkojZ
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:38-04:00 couchbase_helpers.go:233: Reading key test-key-wjkojZ from bucket testwjkojZ
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:38-04:00 retry.go:67: Reading key test-key-wjkojZ from bucket testwjkojZ
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:38-04:00 http_helper.go:26: Making an HTTP GET call to URL http://admin:password@single-cluster-xtxbww-625366117.eu-west-3.elb.amazonaws.com:8091/pools/default/buckets/testwjkojZ/docs/test-key-wjkojZ
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:38-04:00 couchbase_helpers.go:253: Got back {{test-key-wjkojZ 1-158d64620b6700000000000002000006 0 33554438} TestData{Foo: 'test-value-wjkojZ', Bar: 42}} for key test-key-wjkojZ from bucket testwjkojZ
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:38-04:00 retry.go:67: HTTP GET to URL http://single-cluster-xtxbww-625366117.eu-west-3.elb.amazonaws.com:4984/single-cluster-xtxbww
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:38-04:00 http_helper.go:26: Making an HTTP GET call to URL http://single-cluster-xtxbww-625366117.eu-west-3.elb.amazonaws.com:4984/single-cluster-xtxbww
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:39-04:00 test_structure.go:21: The 'SKIP_logs' environment variable is not set, so executing stage 'logs'.
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:39-04:00 save_test_data.go:159: Loading test data from /var/folders/lt/x7mcb69x6fs1cx3762hkm5vr0000gp/T/TestIntegrationCouchbaseCommunitySingleClusterUbuntu123967493/terraform-aws-couchbase/.test-data/TerraformOptions.json
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:39-04:00 save_test_data.go:159: Loading test data from /var/folders/lt/x7mcb69x6fs1cx3762hkm5vr0000gp/T/TestIntegrationCouchbaseCommunitySingleClusterUbuntu123967493/terraform-aws-couchbase/.test-data/AwsRegion.json
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:39-04:00 ec2-syslog.go:84: Fetching syslog for each Instance in ASG single-cluster-xtxbww in eu-west-3
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:39-04:00 ec2-syslog.go:32: Fetching syslog for Instance i-0b4de39db00ccdb36 in eu-west-3
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:39-04:00 retry.go:67: Fetching syslog for Instance i-0b4de39db00ccdb36 in eu-west-3
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:40-04:00 retry.go:79: Fetching syslog for Instance i-0b4de39db00ccdb36 in eu-west-3 returned an error: Syslog is not yet available for instance i-0b4de39db00ccdb36 in eu-west-3. Sleeping for 5s and will try again.
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:45-04:00 retry.go:67: Fetching syslog for Instance i-0b4de39db00ccdb36 in eu-west-3

Also, if the test fail -- at least b/c of a timeout, it appears to just terminate, which means you're left to go manually clean up (or figure out how to terraform apply a fix).  Might be good to also add this to the docs?

All the tests clean up after themselves, even if they fail. By "timeout" do you mean the Golang test timeout of 10 minutes?  That's why our docs always use the -timeout param to set a longer timeout; that way, the tests run to completion, including the clean up code.

Do you know why the test failed to read SYSLOG?
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:39-04:00 ec2-syslog.go:32: Fetching syslog for Instance i-0b4de39db00ccdb36 in eu-west-3
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:39-04:00 retry.go:67: Fetching syslog for Instance i-0b4de39db00ccdb36 in eu-west-3
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:40-04:00 retry.go:79: Fetching syslog for Instance i-0b4de39db00ccdb36 in eu-west-3 returned an error: Syslog is not yet available for instance i-0b4de39db00ccdb36 in eu-west-3. Sleeping for 5s and will try again.
TestIntegrationCouchbaseCommunitySingleClusterUbuntu 2019-03-19T11:03:45-04:00 retry.go:67: Fetching syslog for Instance i-0b4de39db00ccdb36 in eu-west-3

It kept retrying until eventually 10m timed out -- is this expected?

Syslog takes several minutes to be available. It should keep retrying if you let the test run longer than 10m!

old PR


Vim9: can't use "#" as a comment leader at the start of an automatic line continuation at the script level

Describe the bug
In Vim9 script, we can't use # as a comment leader at the start of an automatic line continuation at the script level.
To Reproduce
Run this shell command:
vim -Nu NONE -S <(cat <<'EOF'
    vim9script
    let mylist = [
            'one',
            # some comment
            'two',
            ]
EOF
)

E121, E15 and E492 are raised:
Error detected while processing ...
line    4:
E121: Undefined variable: #
line    5:
E15: Invalid expression: 'two',
line    6:
E492: Not an editor command:             ]

Expected behavior
No error is raised.
Environment

Vim version: 8.2 Included patches: 1-1233
OS: Ubuntu 16.04.6 LTS
Terminal: XTerm(356)

Additional context
The issue disappears in a :def function:
vim9script
def Func()
    let mylist = [
            'one',
            # some comment
            'two',
            ]
enddef
defcompile

Implemented by patch 8.2.1243


Pagination IDs conflict with regular IDs

If you use the same string for both a pagination ID and a css ID in your dir-paginate, you'll end up with errors when trying to change pages via the controls.
Either this is a bug, or it should be mentioned in the documentation. I would rather you invisibly add a tag (-paginate) to all of your pagination-ids to make this problem disappear.

Hi,
The css id has no influence on the pagination directive. What I suspect may be happening is that if you use a css id which contains a hyphen (as is a common practice) and then use the same one for your pagination id, the error is actually due to the pagination id being an invalid identifier.
More simply: Variables in an Angular expression must be valid JavaScript identifiers, which means they cannot contain a hyphen. Interestingly this issue just came up yesterday and it took me a while to figure out what was going on. See a code example here
Let me know if that solves your issue. If not, then maybe it is a bug and I will eat my words above.

You’re right. I was using hyphens, and removed them when I made them unique.

Jon

On Mar 12, 2015, at 1:44 PM, Michael Bromley<EMAIL_ADDRESS>wrote:
Hi,
The css id has no influence on the pagination directive. What I suspect may be happening is that if you use a css id which contains a hyphen (as is a common practice) and then use the same one for your pagination id, the error is actually due to the pagination id being an invalid identifier.
More simply: Variables in an Angular expression must be valid JavaScript identifiers, which means they cannot contain a hyphen. Interestingly this issue just came up yesterday and it took me a while to figure out what was going on. See a code example here https://github.com/michaelbromley/angularUtils/issues/128#issuecomment-78516645
Let me know if that solves your issue. If not, then maybe it is a bug and I will eat my words above.
—
Reply to this email directly or view it on GitHub https://github.com/michaelbromley/angularUtils/issues/130#issuecomment-78563259.


docs: update readme with info on services repo

This change adds a warning to users to pin to a specific version of google/apiclient-services and also a guide to how they can skip installation of services if they don't need them.

If this is wrong place for this comment/question, sorry, it seemed to close to what I needed, so....
In the install instructions and the text of this issue it says "In order to prevent the accidental installation of API wrappers with breaking changes, it is highly recommended that you pin to the latest version yourself prior to using this library in production." But there's no explanation (references, links, etc.) on how to do this. Can this be added?
Also, can you simply give me a link, or some other clue as to how to do this?

@veperr You can find the latest release of the google/apiclient-services package here:
https://github.com/googleapis/google-api-php-client-services/releases
Then you can pin to the latest version by running the following command:
composer require google/apiclient-services:0.128


Added StyleSheetId to the schema, solving a bug that kills react.

I'm working on a project called Malloci, which would be impossible without this component. but when trying to integrate Malloci into a react app, I realized htmlembed was reloading every styllesheet on the page anytime a component was created, resulting in page freeze up, and total loss off page formatting. adding styleSheetId to the component and styleId to the htmlcamvas code tells the component to only reload the CSS relevant to the component. This improves performance and prevents the side effect of format loss.

This PR seems to be a workaround for #19 and #22, thanks for sharing....
I'll try it here, but do you know if there is a way to handle this without having to provide the style id? It seems the issue doesn't happen because it reloads every stylesheet, as I understood, it issue happens because it does it many times instead of doing it once.


RELEASE-PROCESS.MD: make warning about required template changes more prominent

In followup to these two issues:

#2809
#2810

this PR updates the release-process notes to:

Makes more prominent the side-note that reminds the release developer to update the VERSION in the template
Removes the angle brackets around <INSERT-CORRECT-VERSION> because that makes the text disappear when the markdown is rendered/previewed -- since the renderer considers it to be a HTML tag. (It might be a good idea to remove all angle brackets from that template)

/cc @tomkerkhove

/cc @zroubalik

@chalin seems like static checks are failing on some formatting issue, could you please look at it?

All checks are passing now ✅


redirect() for freshly installed grunge stack redirects to ,%20

Have you experienced this bug with the latest version of the template?
Yes
Steps to Reproduce
$ npx create-remix@latest --template remix-run/grunge-stack

   remix   v2.12.0 💿 Let's build a better website...

   dir   Where should we create your new project?
         ./grunge-stack

      ◼  Template: Using remix-run/grunge-stack...
      ✔  Template copied

   git   Initialize a new git repository?
         Yes

  deps   Install dependencies with npm?
         Yes

  init   This template has a remix.init script. Do you want to run it?
         Yes

      ✔  Dependencies installed

      ✔  Git initialized
      ✔  Dependencies for remix.init script installed

      ◼  Running template's remix.init script...

$ cd ./grunge-stack
$ mv .env.example .env
$ npm run dev

Sign Up will redirect to http://localhost:3333/, /
Log In will redirect to http://localhost:3333/notes, /notes
I can replicate this in both Windows (Git Bash) and macOS (Silicon).
Using the existing version template npx<EMAIL_ADDRESS>--template remix-run/grunge-stack results in the same issue, as it upgrades all the dependencies to 2.12.0 and beyond.
In this scenario, I manually changed the package.json file versions from ^2.11.0 to 2.11.0 and installed via npm install --legacy-peer-deps, but the result was the same, even though the lock file still contains Remix 2.11.0 dependencies and an older version of @remix-run/router (1.19.0).
I tried with Node 18 and 20.
So, I’m not entirely sure of the root cause.
This is only a local development issue; I deployed to staging, and it’s not an issue there. However, I’ve refrained from deploying to production.
Expected Behavior
Sign Up will redirect to http://localhost:3333/
Log In will redirect to http://localhost:3333/notes
Actual Behavior
Sign Up will redirect to http://localhost:3333/, /
Log In will redirect to http://localhost:3333/notes, /notes

same here, did you find anything?

same here, did you find anything?

I'm not sure which dependency is the root cause. I spent a lot of time troubleshooting and once I verified that it wasn't affecting deployments I decided to just work around it (work deadlines).
If you run your build locally npm run build and start in arc sandbox with npm run start the issue will not occur.
It only occurs when running arc sandbox from remix dev, so some dependency between the 2 is conflicting.
I've since done production deployments without any issues.
I'll look more into it when I get some free time.


Add Entity attribute to MapEntity attribute rule

Enhancement of #291 to work with Entity attribute

@trandbert37 i think its good to squash your commits so you have only 1.

@trandbert37 your pipeline is failing

@trandbert37 your pipeline is failing

It is fixed 😉

I just fixed rector's checks

@trandbert37 you mind need to run composer update on the master branch and then run vendor/bin/rector && composer fix-cs to make it work (dont know if there was a update in the packages)

@samsonasik @JohJohan All seems good this time :)

Thank you :clap:


ModuleNotFoundError: No module named 'app' : flask db migrate

Hello.
When launching the command : flask db migrate
'I went all throw the process of updating the versioned script by updating upgrade and dowgrade functions...
Output is :
Traceback (most recent call last):
File "/home/rlab/anaconda3/envs/backend-env/bin/alembic", line 8, in
sys.exit(main())
File "/home/rlab/anaconda3/envs/backend-env/lib/python3.9/site-packages/alembic/config.py", line 581, in main
CommandLine(prog=prog).main(argv=argv)
File "/home/rlab/anaconda3/envs/backend-env/lib/python3.9/site-packages/alembic/config.py", line 575, in main
self.run_cmd(cfg, options)
File "/home/rlab/anaconda3/envs/backend-env/lib/python3.9/site-packages/alembic/config.py", line 552, in run_cmd
fn(
File "/home/rlab/anaconda3/envs/backend-env/lib/python3.9/site-packages/alembic/command.py", line 298, in upgrade
script.run_env()
File "/home/rlab/anaconda3/envs/backend-env/lib/python3.9/site-packages/alembic/script/base.py", line 489, in run_env
util.load_python_file(self.dir, "env.py")
File "/home/rlab/anaconda3/envs/backend-env/lib/python3.9/site-packages/alembic/util/pyfiles.py", line 98, in load_python_file
module = load_module_py(module_id, path)
File "/home/rlab/anaconda3/envs/backend-env/lib/python3.9/site-packages/alembic/util/compat.py", line 184, in load_module_py
spec.loader.exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "db/env.py", line 7, in
from app import create_app
ModuleNotFoundError: No module named 'app'
Any ideas?
Thanks a lot in advance.

Thanks for your help.
Really weird...
Assuming doing a bad thing but don't understand... ;-(

and

It looks like you need to do from app.app import create_app because you have an app folder with your app.py file in that folder.

Nop... Doesn't work neither... :-(
Error: While importing 'app.app', an ImportError was raised.

Running debugging mode ...
No module named 'app'
File "/d/dev_/py/waspy/wasptracker0/backendapp2/db/env.py", line 13, in
from app.app import create_app

Did you follow these steps from the readme? https://github.com/nickjj/flask-db#ensuring-the-db-command-is-available-and-everything-works
What is your FLASK_APP set to?

Super. Your insights put me ont the good track.
I still had a conflict between the standard command : python app/app.py and flask run, shell or db that warned saying the app module wasn't found.
I realized PYTHONPATH wasn't set neither.
I did a bit of cleaning.
Moved up app.py to root folder.
set PYTHONPATH to PYTHONPATH="."
changed FLASK_APP="app/app.py" to FLASK_APP="app.py"
renamed accordingly some imports of my apis.
flask db, shell and run works fine as well as well my apis.
Perfect time for seeding the db now. :-)
Thanks again for maintaining this great package to the community.
Richard
Thanks a lot for your time.

No problem, happy to hear it all worked in the end.


Fix: a resource can't have an attribute or relationship named type or id

According with the latest specification (v1.0):

Fields for a resource object MUST share a common namespace with each other and with type and id. In other words, a resource can not have an attribute and relationship with the same name, nor can it have an attribute or relationship named type or id.

Good catch - thanks!


Clean up dependencies for 3.0.4 and add note to README

@smaldini as someone asked me about this project, I put together a PR to 1) clean up and update the build and 2) show on the README that this isn't necessarily maintained up-to-date to the day.

supersedes #7 and fixes #8


stopRecording with await not waiting to finish.

In the demo using promises, the blob is returning null.
await recorder.stopRecording();
const blob = await recorder.getBlob()
console.log(blob); // null

But this is working.
recorder.stopRecording(() => {
  const blob = await recorder.getBlob()
  console.log(blob); // writes the blob correctly
});

I would like to use async/await. Thanks for your help.

same issue, need help
I wanna stop and start record continuously without delay


Comparison order

As a micro-nano optimization, how about to check state before props?
From my perspective state is what changed more frequently and is more likely to change.
Yep, I understand it's pretty much subjective, but I think it worth mentioning.

Yeah, I can see how order could be gamed. I guess the real question would be what is more common, state or props? Since this is a PureRenderMixin for immutable data, this would imply that the component doesn't use state and is purely rendered from props.
I'll leave this open for now for others to comment and for myself to ponder. I may even put together some perf tests to see what optimizations we can make.

Closing - please reopen if community feels strongly a change is needed.


Limit number of jobs in queue or running with dask-jobqueue

Original problem raised by @jmichel-otb in https://github.com/dask/dask-jobqueue/issues/196#issuecomment-548412595.

I currently encounter the limitation of maximum number of jobs in queue. Our maximum number of jobs in queue is 100, which is not much.
I understand that using job arrays is off the table, but maybe we could make dask jobqueue aware of those limits, and inform it that it needs to start say 200 jobs but it needs to ensure that there are never more than 100 queuing ?
I am not familiar with jobqueue code but I expect this to be a much smaller patch than enabling job arrays.

Several solutions to this:

Submit jobs that span one complete node at once: https://github.com/dask/dask-jobqueue/issues/196#issuecomment-440036622.
Implement job arrays in dask-jobqueue, #196,
Add something else that prevent dask-jobqueue from having too many jobs in a queued state.

My recomandation was :

Be aware that there may not be an easy solution to this, and I'll have limited time to investigate. I also stick to my suggestion of making individual jobs bigger, and if it does not solve your problem I'd be curious as @lesteve to know why?

@jmichel-otb answered with:

@guillaumeeb the answer is that I can not get it to work with more workers per PBS job.
My current setup is 1 worker per job, with 1 process, 8 threads and 40 Gb of memory. The maximum processing power I can reach with cluster's limit is 200*8 threads (which is a lot already), but as you may know multithreaded code never reaches 100% efficiency, and there are part of the code that are not multithreaded.
I have been trying to change this setup to jobs with 8 single-threaded workers processes, 5 Gb each per job for the past week. This never reaches the end of the processing, with various errors ranging from workers restart from nanny, tornado errors, jobs killed by PBS ...
Part of the issue might be that dask does not order tasks in an optimal way for our graph (it leaves many intermediate results open instead of processing leaves nodes quickly so as to release ressources). I posted an issue about this here : dask/dask#5584
I must say that it is really hard to figure out what is going on when computation fails with this software stack (PBS, dask-jobqueue, dask). Logs are filled with clueless entries such as tornado errors, and it seems that the only option is trial and errors (and a bit of prayer).

Briefly chiming in here: I just had a chat with an HPC sysadmin who said that job arrays would not help solving the problem that forces him to limit the number of queued jobs per user.
They are enforcing these limits because the complexity of the scheduling problem ("Under the given policy, which jobs need to be started next and where to make everyone as happy as possible?") is growing with the number of jobs queued. From this point of view, job arrays are just a number of independently prioritised jobs and that would not reduce the load of the scheduler.
So my guess would be that implementing job arrays here would only "help" until the admins notice that our huge job arrays overload the scheduler.

My current setup is 1 worker per job, with 1 process, 8 threads and 40 Gb of memory.

So if you use:
PBSCluster(processes=1, cores=8, memory='40GB')

The code
PBSCluster(processes=3, cores=24, memory='120GB')

will have the same effect, but will lead to three times less jobs. Your individual jobs will probably take a little longer to start.

I have been trying to change this setup to jobs with 8 single-threaded workers processes, 5 Gb each per job for the past week.

Here again,
PBSCluster(processes=1, cores=1, memory='5GB')
PBSCluster(processes=8, cores=8, memory='40GB')
PBSCluster(processes=24, cores=24, memory='120GB')

will have identical result on dask side, but with big differences in term of launched jobs.
All this is a good way to limit the number of queued or running jobs. But it seems you're having other issues as well and you probably already understand that.

This never reaches the end of the processing, with various errors ranging from workers restart from nanny, tornado errors, jobs killed by PBS ...

Indeed, with several processes, each process has less memory so the worker will be more subject to memory errors. On a private conversation, if I understood correctly, you told me that in the processes=1,cores=8 case, you didn't launch 8 tasks in parallel, but one task was consuming the 8 cores at once (hence your sentence about multithreaded code and efficiency). In the processes=1, cores=1 cases, each individual tasks generate as much data as in the previous one, but each worker has much less memory to handle the load. That probably explains the problem you observe, and your best hope for this is the issue you opened https://github.com/dask/dask/issues/5584.

I must say that it is really hard to figure out what is going on when computation fails with this software stack (PBS, dask-jobqueue, dask). Logs are filled with clueless entries such as tornado errors, and it seems that the only option is trial and errors (and a bit of prayer).

This is a major problem that must be addressed somehow. What would you need to improve you experience in this area? Better documentation? More profiling tools? More explicative error messages? Some examples? We really need detailed inputs to improve this stack. cc @mrocklin for this last point.

So my guess would be that implementing job arrays here would only "help" until the admins notice that our huge job arrays overload the scheduler.

I'm not a batch scheduler internal expert, but I know job arrays eases the burden of scheduling job a little, but they're not a magic thing either. Some users already overload our system with too big job arrays.

I apologies because this thread is serving many different purposes ... Is there somewhere we can discuss dask usage on cluster in general ?

Indeed, with several processes, each process has less memory so the worker will be more subject to memory errors. On a private conversation, if I understood correctly, you told me that in the processes=1,cores=8 case, you didn't launch 8 tasks in parallel, but one task was consuming the 8 cores at once (hence your sentence about multithreaded code and efficiency). In the processes=1, cores=1 cases, each individual tasks generate as much data as in the previous one, but each worker has much less memory to handle the load. That probably explains the problem you observe, and your best hope for this is the issue you opened dask/dask#5584.

Yes I am aware that using PBSCluster(processes=8, cores=8, memory='40GB') means that each worker only has 5GB to process and store results. But I think it is still possible to complete the full computation. I have many A tasks (let say 10 000) each producing 12 Mo of data in 25s, and many B tasks (also 10 000, which are what I really want to compute) producing 18 Mo of data in 25s, each one depending on at most 16 (5 in average) B tasks. Moreover, those tasks are strongly organized (on a 2D grid) : neighboring B tasks will have A tasks in common, whereas far appart B tasks will not. What I need is to lure dask into finishing as much B tasks as possible so as to free A tasks results (which is not the behavior I get from graph optimization and task allocation to workers). This is the purpose of dask/dask#5584 .
I can stick with PBSCluster(processes=1, cores=8, memory='40GB') which is working for now, but it wastes ressources because part of code are not multi-threaded, and multi-threaded is less efficient. And if I want reduce the use of multi-threading and compensate with more workers, I run into both the memory problem and the jobs in queue limit.

This is a major problem that must be addressed somehow. What would you need to improve you experience in this area? Better documentation? More profiling tools? More explicative error messages? Some examples? We really need detailed inputs to improve this stack. cc @mrocklin for this last point.

For me the problem here is twofold.
First, logs are full of entries  such as:
OSError: Timed out trying to connect to 'tcp://xxx:xxx:xxx:xxx' after 10 s: connect() didn't finish in time
(There is a bunch of exception blabla for each of those entries)
distributed.core - INFO - Event loop was unresponsive in Worker for 4.30s.  This is often caused by long-running GIL-holding functions or moving large chunks of data. This can cause timeouts and instability.
If I understand well, this is because my code does not release the GIL, but my process spends a lot of time in the C++ part (most of the time in fact), and I do not know how to release the GIL in that case.
This is not an issue itself, but it makes spotting real problems in logs very difficult.
Second, most of the time there is a single (or a few) root causes that make the cluster start to collapse, but the collapse itself is filling the logs with timeout error, exceptions stack and so on, spread across the many log files (one per PBS job). It is therefore very difficult to identifiy those root causes. Maybe I am doing something wrong but I would like to see those root causes pop out in the main console log, and access the full worker state where the problem occured.

This is a (potentially) a pretty complex topic. There are a couple of approaches not mentioned to date that could remedy this:

A hybrid of dask_jobqueue and dask-mpi so that the dask workers come in larger bundles. This is not easy to implement since you would need to become aware of MPI launchers as well as resource managers.
There's a new resource manager being developed in LLNL called flux, which is being designed to handle large numbers of jobs. It is designed so that it can (also) operate as a scheduler within a scheduler, which means sites could have a flux scheduler running on a dynamically changing number of nodes. This might be a nice model in this case, but is probably a research project on it's own.

We have already tackled some of the first issue in a library we've built that runs on top of jobqueue to handle tasks that use multiple nodes but it is very alpha, not meant for this purpose, and not integrated enough to handle scalability in a transparent way if it were used this way (a ton of workers would just report when an MPI dask job is launched).

@jmichel-otb

I apologies because this thread is serving many different purposes ... Is there somewhere we can discuss dask usage on cluster in general ?

I think this issue tracker is a good place for that.
Just to clarify for everyone, you should be using
cluster = PBSCluster(cores=1, processes=1, memory='40GB',
                     resource_spec='select=1:ncpus=8:mem=40GB')

because you run one task at a time that uses 8 cores (using OpenMP if I'm not mistaken?). The cores=8, processes=1 kwargs you're using just works because your task don't release the GIL.
See https://github.com/dask/dask-jobqueue/issues/231 for more details and other links.
And because the OpenMP (or anything else) parallelization of a task is not perfect, you want to disable it and parallelize more over the data, so more individual tasks at once.

if I want reduce the use of multi-threading and compensate with more workers, I run into both the memory problem and the jobs in queue limit.

PBSCluster(processes=8, cores=8, memory='40GB')
PBSCluster(processes=24, cores=24, memory='40GB')

should at least solve the jobs in queue limit problem. Have you tried with intermediate values? (I know, this is the trial/error option you don't like)
PBSCluster(processes=4, cores=8, memory='40GB') #OMP_NUM_THREAD = 2
PBSCluster(processes=2, cores=8, memory='40GB') #OMP_NUM_THREAD = 4

For the memory problem, we need to wait for dask/dask#5584.
For the logs or root causes of the problem, we need to find a way to better document things, and if possible to improve the messages and exceptions in the code. In your example, have you identified the root cause in the end (some memory problem ?), or not?


Browsing / acessing  public/anonymous repositories w/o credentials

Hi
It seems that showing listing anonymous/public repos without authentication / authorisation is not possible. Or am  I wrong?
What would be the bet way to do it? On Login screen to add list of public repos?
thanks
mel

Are you still planning to implement this feature? There is a checkbox "Anonymous" on the repository setup page, but seems it's not functioning.

@jakubgarfield I think this has been done already? Can we close this?

If it is implemented. Sure. I had no time to look at it.
Sorry.

This one is not implemented, you have anonymous access with git, but not from UI interface.

@glacasa Did you manage to get any progress with this feature?

No sorry, I didn't work on this project for a long time


Linux Mint deb package missing dependency

Hi,
I have come across this error once installed from deb package:
chatgpt: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
I have checked and I have these ssl libraries installed

libssl-dev
libssl3

however, it won't run with the above error.
Can you please help me find out what I need to have installed?
My build:
Linux jav-mint 5.15.0-70-generic #77-Ubuntu SMP Tue Mar 21 14:02:37 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Same here. Mint 21 too. Issue seems to be related to the linked OpenSSL version. I finally ended up with the error
chatgpt: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_0' not found (required by chatgpt)
chatgpt: /lib/x86_64-linux-gnu/libcrypto.so.1.1: version `OPENSSL_1_1_0' not found (required by chatgpt

while Mint 21 is using openssl OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022), 1.1.0 went EOL 10 September 2019 (https://en.wikipedia.org/wiki/OpenSSL)


fixed issue with unlink provider typo

Hello Sahat,
I found an issue with the unlink provider route. It was basically just a typo but I figured it would be nice to fix incase anyone else has problems with the unlink route.

Test failed due to getToken Test running before token is added using the setToken test. I rearranged to test to fix this issue. Travis should now complete without an error.


Custom Card for Sock-Shop Predefined Workflow

Signed-off-by: oumkale<EMAIL_ADDRESS>
Proposed changes
Custom Card for Sock-Shop Predefined Workflow
Types of changes
What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

[x] New feature (non-breaking change which adds functionality)
[x] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices applies)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[x] I have read the CONTRIBUTING doc
[x] I have signed the commit for DCO to be passed.
[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[ ] I have added necessary documentation (if appropriate)

Dependency

Please add the links to the dependent PR need to be merged before this (if any).

Special notes for your reviewer:

PTAL @ishangupta-ds @Jonsy13 @amityt

@rajdas98 PTAL


macOS error while using command 'python3 setup.py install'

Hi, I meet some problem while I use 'python3 setup.py install' to set up python library.
HERE is the error.

/usr/bin/clang++ -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.5/./cudarray/wrap/cudart.o -L/usr/local/cuda/lib -lcudart -lcudarray -o build/lib.macosx-10.6-intel-3.5/cudarray/wrap/cudart.cpython-35m-darwin.so -fPIC
ld: library not found for -lcudarray
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang++' failed with exit status 1

Thanks.

I run these codes to fix my first problem.

export CUDNN_ENABLED=1
export INSTALL_PREFIX=/usr/local/
export CUDA_PREFIX=/usr/local/cuda/

but another problem show now...

./include/cudarray/nnet/cudnn.hpp:8:10: fatal error: 'cudnn.h' file not found
#include <cudnn.h>

I don't know what happened , I have downloaded and installed nvidia CUDA SDK...
thank to help me.


docs: update README

Update the README.md to reflect the latest changes and usage details for the w3c-credential-status package. The documentation has been improved to include:

Installation instructions: Step-by-step guide on how to install the sub-package.
API overview: Updated examples and explanations for managing credential status, including revocation and suspension features.
Usage examples: Demonstrates how to implement credential status verification using @trustvc/w3c-credential-status.
Configuration details: Added explanations on how to configure the package for various use cases (revocation lists, suspension statuses).

:tada: This PR is included in version 1.0.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Added missing callProc call for browser.

callProc Wiki

Done! Sorry didn't want to click on re-review.

LGTM!


Tabs don't work if data-toggle attribute is missing (or wrong documentation)

This is regarding branch 2.0-wip
I thought manually calling $(".tabs").tab() shouldn't require data-toggle attributes on the <a> elements.
It seems to be the case due to the following line in tab.js only handling clicks on those links that have the attribute. However, shouldn't manual tab() call put those attributes there / bind the tab clicks? Is this by design? In that case the documentation is wrong, because the example in #tabs section is missing those data-attributes.
$('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
...

hm... i don't think that the domcumentation is wrong. it says call:
      $(this).tab('show')

tab now works on a more granular single tab level.
If you would like to add tab support to a group of things just do this:
$('tabs').click(function (e) {
  e.preventDefault()
  $(this).tab('show')
})


Mismatch in 'Cs_r' values in IC file

This isn't going to be a very useful issue as I can't pin this down very well - sorry!
ROMS is throwing
 ### ERROR: Mismatch in 'Cs_r' values in file 'INPUT/PYTHON/PARTED/roms_ini.0.nc'.
And it seems that partit isn't doing a proper job here. If I load the unpartitioned file everything looks fine, but opening the partitioned one Cs_r seems to be full of 0s. ncdump -v Cs_r consistently shows an array of 0s. ncview also shows 0s.
xarray is being worryingly inconsistent, sometimes showing that the partitioned python-created file has the correct values, sometimes showing it having 0s:
In [11]: xr.open_dataset('PYTHON/PARTED/roms_ini.8.nc').Cs_r.values
Out[11]:
array([-9.91966903e-01, -9.75310326e-01, -9.57903922e-01, -9.39797223e-01,
       -9.21044052e-01, -9.01701748e-01, -8.81830335e-01, -8.61491978e-01,
       -8.40749860e-01, -8.19667757e-01, -7.98309207e-01, -7.76737094e-01,
       -7.55012929e-01, -7.33196437e-01, -7.11345196e-01, -6.89514160e-01,
       -6.67755604e-01, -6.46118581e-01, -6.24649167e-01, -6.03389859e-01,
       -5.82379997e-01, -5.61655402e-01, -5.41248500e-01, -5.21188438e-01,
       -5.01500964e-01, -4.82208848e-01, -4.63331670e-01, -4.44886118e-01,
       -4.26886171e-01, -4.09343123e-01, -3.92265856e-01, -3.75660986e-01,
       -3.59532982e-01, -3.43884379e-01, -3.28715861e-01, -3.14026594e-01,
       -2.99814165e-01, -2.86074877e-01, -2.72803813e-01, -2.59995013e-01,
       -2.47641608e-01, -2.35735863e-01, -2.24269405e-01, -2.13233232e-01,
       -2.02617854e-01, -1.92413345e-01, -1.82609484e-01, -1.73195779e-01,
       -1.64161548e-01, -1.55495971e-01, -1.47188202e-01, -1.39227331e-01,
       -1.31602496e-01, -1.24302894e-01, -1.17317833e-01, -1.10636741e-01,
       -1.04249209e-01, -9.81450155e-02, -9.23141390e-02, -8.67467746e-02,
       -8.14333707e-02, -7.63645992e-02, -7.15314075e-02, -6.69250041e-02,
       -6.25368580e-02, -5.83587363e-02, -5.43826595e-02, -5.06009422e-02,
       -4.70061824e-02, -4.35912535e-02, -4.03493047e-02, -3.72737721e-02,
       -3.43583524e-02, -3.15970331e-02, -2.89840512e-02, -2.65139174e-02,
       -2.41813995e-02, -2.19815224e-02, -1.99095625e-02, -1.79610383e-02,
       -1.61317140e-02, -1.44175906e-02, -1.28148990e-02, -1.13201011e-02,
       -9.92987957e-03, -8.64113960e-03, -7.45099736e-03, -6.35678275e-03,
       -5.35603240e-03, -4.44648601e-03, -3.62608512e-03, -2.89296708e-03,
       -2.24546436e-03, -1.68210152e-03, -1.20159215e-03, -8.02837836e-04,
       -4.84925782e-04, -2.47127580e-04, -8.88979121e-05, -9.87376825e-06],
      dtype=float32)

vs. (what should be identical)
In [13]: [xr.open_dataset(f'PYTHON/PARTED/roms_ini.{i}.nc').Cs_r.values for i in range(9)][-1]
Out[13]:
array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
       0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
       0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
       0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
       0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
       0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],

... Sorry I can't be more helpful than to say something is screwy here 😬

What a horrible gift to give at 4:59 on a Friday. Sorry!

...There seems to be a bigger problem as I managed to correct the Cs_r issue by just copying in the correct values from the MATLAB version (worked with ncks but not xarray 😝) only to find the other variables are also screwy (mostly nans or O(e32)) after running partit, causing ROMS to blow up immediately.

related: #93 #95

... This issue also occurs when I save the Grid I create using from_file with the MATLAB-generated grid and give it to ROMS instead of the MATLAB version

This is very strange. Can you point me to your partitioned files?

https://drive.google.com/drive/folders/105yUTP7lNw1HAWAW17-kz89jX2Adtytu?usp=sharing
But also you can get there by making a Grid instance from the roms_marbl_example grid file, then following the other steps and running partit 3 3 roms_tools_output_file.nc (partit will be on your path if you've installed ROMS) on anything produced by roms-tools.

@dafyddstephenson can we close this?


With custom titlebar, the menu in extension panel doesn't display correctly

Issue Type: Bug
Testing the new custom titlebar implementation (#51422)

Some items are covered by an icon, and Install from VSIX... is highlighted.
VS Code version: Code - Insiders 1.25.0-insider (2cb30794e7e0b4edd2907be895a0410fd601b736, 2018-06-19T05:18:30.374Z)
OS version: Windows_NT x64 10.0.17134

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz (4 x 2712)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
7.93GB (3.01GB free)

Process Argv
C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe

Screen Reader
no

VM
0%

Extensions: none

I didn't notice that in this screenshot the window title is also disappeared.


Unexpected anonymous AMD define

When using the alasql script in a webpart on a Sharepoint Modern site page we get the following error message and thus the script is not loaded ;-(
Unexpected anonymous AMD define
Can you advise?
Kind regards,
Mario

Hello Team alasql,
I managed to workaround above issue by creating a webpack bundle and included alasql
It works and maybe this is probably even a better solution.
Kind regards,
Mario


One-Way-Bind

I'd love to see an additional bind attribute for one way bindings. If people like this I might take a crack at implementing it myself ^.^
My preference would be that it be called something like one-way-bind or bind-unidirectional.

What are some compelling use cases?


Fit button should use a smooth transition

Description of new feature
The fit to screen button should be smooth, rather than flashing the screen from one zoom to the fitted zoom.
Motivation for new feature
The user loses their place (point of reference) with the instance fit to screen.

Can use a built-in animated fit in Cytoscape: https://js.cytoscape.org/#cy.animate


Update cloudknox-usage-analytics-access-keys.md

Minor updates to make the doc consistent to the UX.

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


Awsx sample is not valid

File: themes/default/content/registry/packages/awsx/_index.md
const service = new awsx.ecs.FargateService("my-service", {
     cluster: cluster.arn

The second line takes a cluster, not a string.

Hi @kimble
We have acceptance tests around this code:
https://github.com/pulumi/pulumi-awsx/blob/master/examples/ts-lb-simple/index.ts#L11
https://github.com/pulumi/pulumi-awsx/runs/6621656312?check_suite_focus=true#step:20:287
The docs also point out that we expect the arn here as well
Paul

I believe it’s the beta package that takes an ARN, though; the currently released package does take a Cluster reference, and many new users seem to stumble on this.
We should probably make it clearer on these overview pages, and in the docs, that you need to install the beta to use these new APIs.


[Hub Generated] Review request for Microsoft.MixedReality to add version preview/2019-02-28-preview

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.
Contribution checklist:

[x] I commit to follow the Breaking Change Policy of “no breaking changes
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[ ] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
Adding a new service

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable version with Breaking Change Validation errors
[x] Updating API(s) in preview over 1 year

Please follow the link to find more details on PR review process.

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run automation - sdk

/azp run unifiedPipeline

Breakign change work item: https://msazure.visualstudio.com/One/_workitems/edit/8795462/

Here is the breaking change work item: https://msazure.visualstudio.com/One/_workitems/edit/8795462/ The issue is that we have always sent responses that was not the same as what was specified in the swagger. In all these cases, the swagger does not follow the same APIs that are specified by the ARM spec, and so we are fixing the swagger to be in compliance with the spec.
Thanks!

@leni-msft
Here is the breaking change work item: https://msazure.visualstudio.com/One/_workitems/edit/8795462/
The issue is that we have always sent responses that was not the same as what was specified in the swagger. In all these cases, the swagger does not follow the same APIs that are specified by the ARM spec, and so we are fixing the swagger to be in compliance with the spec.
Thanks!


Adding invalid_audit_verification test cases for increased coverage #371

Closing #371

Codecov Report
Patch coverage: 93.93% and project coverage change: +0.13 :tada:

Comparison is base (f462c43) 87.47% compared to head (1c82f49) 87.60%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #373      +/-   ##
==========================================
+ Coverage   87.47%   87.60%   +0.13%
==========================================
  Files          41       41
  Lines        8528     8561      +33
==========================================
+ Hits         7460     7500      +40
+ Misses       1068     1061       -7

Impacted Files
Coverage Δ

akd/src/tests.rs
95.38% <93.93%> (-0.06%)
:arrow_down:

... and 4 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Thanks! There is a third error condition to trigger in tests: https://github.com/facebook/akd/blob/main/akd/src/auditor.rs#L74-L76 can you add a test for that one as well?


Replace completionHandlers with onSuccess onError approach

import UIKit

class Request {
}

extension Request {
    @discardableResult
    func onSuccess(closure: ([Any]) -> Void) -> Self {
        /* do stuff */
        return self
    }
    @discardableResult
    func onFailure(closure: (Error) -> Void) -> Self {
        /* do stuff */
        return self
    }
}

Request().onSuccess { objects in

}.onFailure { error in

}

Looks like this technique is unnecessary complication if applied to PPAsyncRequest.


Margin between label and input text on Hoshi

Hi, I can´t seem to edit the "active state" position of the label on Hoshi,
Problem is Im´using a large font (25), my dummy text on the label looks great but when
I select the input field the dummy label seems to animate up the same amount as if I were using a small font, rendering it almost on top of the input field text.
Would need to edit the label offset on active.

You can use prop "height".

Hi @nicolasdelfino!
@7Style is right. You can tweak height and inputStyle props to get a better result. Something like this would do the job:
<Hoshi
  label={'Town'}
  borderColor={'#b76c94'}
  maskColor={'#F9F7F6'}
  height={60}
  labelStyle={{ fontSize: 25 }}
  inputStyle={{ bottom: -8 }}
/>

Let me know if it doesn't work out.


Setup router

configure router so user can navigate to different screen.
My choices: Using @reach/router. Beside it was very light, also it was accessible.

Let me handle this