Travel javadocs

When I was messing with this at first, I thought it was the X Y Z coordinates you wanted to travel to. next i thought it was velocity. until recently, i found they were actually speed. This javadoc intends to clarify this to unfortunate souls who also happen to see this and get confused as to why it's passing down a Vec3d.
Idk how to make javadocs so it may be some weird checkstyle or I may be doing something wrong.

What do you mean? ServerPlayerEntity does not have a custom travel implementation.

ServerPlayerEntity does not have a custom travel implementation.

I recall the serve play network handler receives client movement inputs and then call the travel method to apply these inputs. This feature IMO may be worth a mention.

I think you're wrong about this, since there is no mention of travel in the ServerPlayNetworkHandler

I think you're wrong about this, since there is no mention of travel in the ServerPlayNetworkHandler

Right, it calls Entity.move instead


Updated funnel to xpersist -- waiting on kwargs change in PR41 of xpersist

:building_construction: In progress :building_construction:

Updated funnel to xpersist.


dice game added

PR Description 📜
I made a dice roll game  which is a two player game . The player can also change their respective name using change name button and then to roll the dice then can click  on roll the dice .
Fixes #290

Mark the task you have completed ✅

[x ] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x ] I have performed a self-review of my own code or work.
[x ] I have commented my code, particularly in hard-to-understand areas.
[ x] My changes generates no new warnings.
[x ] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x ] I have added screenshot for website preview in assets/images
[x ] I have added entries for my game in main README.md
[x ] I have added README.md in my folder
[x ] I have added working video of the game in README.md (optional)
[ x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

Thank you @Teddy1404 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Hey @Teddy1404 👋!
@kunjgit here,
We have this annoucement to make 📢!!
During the time of PR don't alter main index file ! 🙂
In main Readme file just use * as a game number during the time we are merging we will add number !! 👀
Make sure you join our Discord🕹 if you haven't 😇
Thank you 💗!

Hey @Teddy1404 we already have this game you can do enhancement on it !!

Thank you  @Teddy1404 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Set log level of AnsiLogger to "INFO" when "-debug" is not set

At the moment the "-debug" flag seems to have the following effects:

set the defaultLogLevel for the Logger from matter.js (example here)
set logDebug for the AnsiLogger (example here)

Anyway every log written to this.log.debug gets printed, even when -debug is not set.
It would be nice if:

the absence of the debug flag configures ansi logger to NOT print debug logs
OR EVEN BETTER a general -log [debug|info|warn|error] option could be added which configures BOTH loggers properly

Thank you!

Hi,
could you please post to the discussion I created for your project so we have all the stuff in the same place?

Anyway every log written to this.log.debug gets printed, even when -debug is not set.
Can you show me with a screenshot what do you mean? Cause is not clear for me where you see a debug printed when -debug is not enabled.

In the first link provided you are inside startExtension: that is an undocumented and no more maintained method that I left there in case I decide to continue that project (z2m extension). It is not supposed to be used. If you use it in your code please tell me that I have to verify that the code there is still up to date with Matterbridge.

OR EVEN BETTER a general -log [debug|info|warn|error] option could be added which configures BOTH loggers properly
Is a good idea I will do it. Actually that is already managed that way in the frontend but the command line has been left behind...

I thought, if its really a bug, it's rather an issue than a discussion - if not, feel free to close the issue, and i'll post it to the discussion again.

I think I found the one, printing debug logs, which i was re-using by extending the MatterbridgeDevice and using this.log:
https://github.com/Luligu/matterbridge/blob/main/src/matterbridgeDevice.ts#L203

Hi,
yes indeed, it's a kind of bug.
I was refactoring the console.log to AnsiLogger and it remained there unfinished.
In the dev is correct.
I will publish before evening:
Also this is done:
https://github.com/Luligu/matterbridge/issues/51
[1.3.0] - 2024-06-16
This release is all about Matter 1.3
If you are wondering whether the controllers already support Matter 1.3, the answer is unfortunately no.
Only Home Automation supports:

airQualitySensor (Matter 1.2)

and (probably only like BooleanState cluster)

waterFreezeDetector (Matter 1.3)
waterLeakDetector (Matter 1.3)
rainSensor (Matter 1.3)

Changed

[matterbridge]: Updated dependencies
[matterbridge]: Default config and schema for the new plugin matterbridge-shelly (will be published after this release)

Added

[matterbridgeDevice]: Added waterFreezeDetector, waterLeakDetector, rainSensor, smokeCoAlarm, electricalSensor and deviceEnergyManagement device types as conformance to Matter 1.3
[matterbridgeDevice]: Added all clusters needed for the above Matter 1.3 device types
[matterbridgeDevice]: Added FanControl cluster (rev. 2) helper methods for the Fan device type

Tell me about the startAsExtension... please.


TINKERPOP-1172 Fixed bug with driver connecting to an initially dead server.

https://issues.apache.org/jira/browse/TINKERPOP-1172
The ConnectionPool wasn't getting initialized properly when the host was dead which then lead to a null pointer exception when trying to reconnect.  Also fixed the possibility of a connection leak if the pool was partially initialized but the host died in the middle of that. Those partial connections were never properly closed.
I performed multiple successful runs of mvn clean install && mvn verify -pl gremlin-server -DskipIntegrationTests=false.
VOTE +1

Compiled, ran gremlin-server integration tests, and inspected the code.
VOTE +1

VOTE +1


Release note updates

Just a placeholder guess on the 3.1.0 release date. Updates for release notes, including descriptions of changes. I'll add the other changes as we commit them (OpenShift Dockerfile change, stuck Terminating pod fix, etc.)

@rosemarymarano,

I'm not sure of the answer for this from your notes, but do you need input for other docs that need operator version updates, such as the Quick Start, Get images

I believe I caught all of those. I did a find-in-files over the entire codebase.

Hmmm. Maybe you did get them all but I see only 5 changed files in this PR. Perhaps, you changed the others (such as the Quick Start, "Get Images" and and "Install the operator and load balancer" in a previous PR? I'll check again.

Yes, I think I got the other files "earlier."

I pulled your branch (release-notes-310) and all the required changes were there, except one (which I see in this PR, but have no idea why it's not showing up in the branch). On the Home page,  weblogic-kubernetes-operator\docs-source\content_index.md, I see this text, "This release was published on September ?, 2020." I don't see your updated text, "This release was published on November 10, 2020." Not sure why but I thought I should mention it. Other than that, everything is fine.


Azure Blob Storage SDK delete folder

Feature Request

Our account has the hierarchical namespace feature enabled, and when trying to delete an empty or non-empty folder, we get the response RESPONSE 400: 400 The requested operation is not supported on a directory. ERROR CODE: OperationNotSupportedOnDirectory
The workaround for us is to use the storage explorer to delete the folders or call the endpoint dfs.core.windows.net/container/folder?recursive=true
I would like to request the ability to delete a folder using the azure go sdk when  the hierarchical namespace feature is enabled

Storage accounts with hierarchical namespace feature enabled are not fully supported by azblob package. There are few apis that work on blob endpoint which might work, however apis which are specific to dfs endpoint will fail. We do have plans to add this support soon.


Investigate groupbykey OOM.

When running BQSR with incompatible references we get an "out of memory" error (see #668). This isn't what we were expecting so this issue is a reminder to investigate in case the underlying cause is a bug.

focusing on performance right now. If someone else wants to investigate they're welcome to.

This issue was moved to broadinstitute/gatk-dataflow#37


README: Extra warning for Fish activation

Previously it was ok to have the rtx activate fish | source inside of an if status --is-interactive block, but not anymore. Most likely, it happened because of the auto-activation release.
Now, it’ll give you the following error every time Fish initiates itself:
fish: Unknown command: rtx
/opt/homebrew/share/fish/vendor_conf.d/rtx-activate.fish (line 2):
  rtx activate fish | source
  ^~^
from sourcing file /opt/homebrew/share/fish/vendor_conf.d/rtx-activate.fish
	called on line 248 of file /opt/homebrew/Cellar/fish/3.6.4/share/fish/config.fish
from sourcing file /opt/homebrew/Cellar/fish/3.6.4/share/fish/config.fish
	called during startup

And I don’t think it’s a bug, but users must know it’s no longer a viable option. At least until the RTX_FISH_AUTO_ACTIVATE is not set to 0.
Also, sprinkled it with GitHub alert formatting syntax a little.

this was resolved by using a full path in the activate script, though I'm wondering if rtx activate in the auto activation script should be in this conditional regardless. I use fish but personally never in a non-interactive situation. Is there a reason you have it in the block? My understanding is that while I don't think rtx activate should be used in a non-interactive session—I also don't think it would actually do anything either.
Well there would be a tiny benefit, rtx shell would work I guess.

I don’t think it’s a super-crucial matter, especially with 3rd-party shells like Fish. People are using it mostly interactively indeed.
But I like to separate things a bit. I use this block to isolate various initializers like Zoxide, Starship, etc. Also, my short aliases (sometimes a replacement and not always backward-compatible) and even environment variables. So that, in any possible case of shell invoked non-interactively, there’ll be no overheads and no risk to break or leak things. It’s just a bit of extra safety.
Otherwise, some applications can invoke it and mess things up a lot. Probably, it’ll be sh or bash anyway, but some apps can decide to use the default user shell. Or it can be a user automation script or something that uses Fish explicitly out of convenience. It’s all about corner cases, but it could be too late when it happens.


Better display of file permissions

The currently display of the filesystem permission is kinda useless. It just tell you that a App can access some files, but not which. This doesn't help anyone. This don't tell e.g. if a App that can backup your Steam games has just access to your Steam directory or has also access to your .bashrc. It also doesn't differ between home and host permission. It shows in both cases that a App can access all your data.

There's close to no difference between these two.

The difference is, that host can access your drives while home can't. This is a big difference, when you get a malware that encrypt all of your files.

This should be better now, if I understand your example correctly


Support compact re-exports

Fixes https://github.com/ember-engines/ember-engines/issues/265. Leverages babel-plugin-compact-reexports.
TODO:

[x] Tests

FOLLOW UPS:

[x] Add tests for test matcher utilities
[x] Add eslint

Note: I've opened https://github.com/ember-engines/babel-plugin-compact-reexports/pull/4 to fix the caching strategy for the new Babel plugin.

@rwjblue I've added tests. So whenever you have a moment, I'd appreciate another review.

Updated again to add unit tests for the test helpers we use (such meta).

This babel plugin does not implement a cache key, causing the babel step to opt-out of its persistent-filter


models and seeds are functional

3 models right now: Customer, Employee, and CustEmp for the many to many relationship between them

The changes also show that I edited the gitignore file. I just put the template items that are usually included in a node project. It shouldn't effect anything for anyone else


Smart Editor - move the progress dialog to a div on top of the form

Widget
Smart Editor
Version of widget
Alpha 1.0
Bug or Enhancement
Enhancement
Repo Steps or Enhancement details
When the widget is floating on the screen and you click delete, the progress bar is hidden at the bottom, can we move it to a div that will be shown on top of the form?  This will lock the form from a user click, which is good and make it visble.  Can we also move to an animate gif?

Implemented.

verified


Is it possible to use pdf assembler without Node?

Hi!
I have a project running in PHP with thousands of lawsuits docs in pdf and after tried things like pdf-merger and even ghostscript we have found that is impossible to merge pdf, for multiple clients, on the server side.
So, we discovered this project in a stackoverflow page saying that it is a "client side" pdf merger.
So, I would like to know if it is possible to convert / transpile this project to full js and use it on my php project.
It is possible that?

Kind of an old questions, but I have a similar issue. The answer is yes, but you have to get rid of promise-queue


Interceptor data sent back to the caller

Using the interceptor I need to add more information to the returned afterSearch (bundle) data.
I have generated a new bundle but cannot send it to the caller. Everything I've tried to do doesn't change the packet sent to the caller.
How can I update the packet sent back to the caller?

@albvegli thank you for opening this issue. Unfortunately the current code does not return the updated resource if it is changed by the interceptor. In FHIRRestHelper:
            // Invoke the 'afterSearch' interceptor methods.
            getInterceptorMgr().fireAfterSearchEvent(event);

            // Commit our transaction if we started one before.
            txn.commit();
            txn = null;

            return bundle;

We'll add this to our backlog. The team needs to discuss this to see if there are any implications for supporting this behavior. To make sure we properly consider your scenario, could you provide more detail on what changes your interceptor needs to make to the bundle?

Thanks. It's an interesting point you raise about interceptors invoking interactions which then cause nested calls to the interceptor.  It seems like it would be possible to track this in the request context, which would make it a lot easier for an implementer (you) to understand where you are and react appropriately. I'll discuss with the team and get back to you.

@albvegli how are you performing the search from within your interceptor.
I would have expected your interceptor to use event.getPersistenceImpl() to get the FHIRPersistence implementation from the FHIRPersistenceEvent.
Its a little tricky to set up the FHIRSearchContext, but it should be possible to invoke "FHIRPersistence.search" from your interceptor and avoid going all the way back out through the REST layer.  If done this way, there is no "re-entry" because the interceptors are invoked outside of the persistence layer.
Let us know.

Yes, I’m usig event.getPersistenceImpl().
Patient pat = null;
try {
FHIRRestHelper helper = new FHIRRestHelper(event.getPersistenceImpl(),searchHelper);
Resource resource = helper.doRead("Patient", id, false, false, null, null).getResource();
pat = (Patient) resource;
} catch (Exception e) {
e.printStackTrace();
}
I have now stopped developing this feature due to the inability to return additional information. If I need it later I will try to follow your advice.
Thank you.

As @lmsurpre mentioned, you can use the persistence layer to perform the read directly:
    /**
     * Retrieves the most recent version of a FHIR Resource from the datastore.
     *
     * @param context the FHIRPersistenceContext instance associated with the current request
     * @param resourceType the resource type of the Resource instance to be retrieved
     * @param logicalId the logical id of the Resource instance to be retrieved
     * @return a SingleResourceResult with a ResourceResult populated from from the datastore and/or
     *         an OperationOutcome with hints, warnings, or errors related to the interaction
     * @throws FHIRPersistenceException
     * @implSpec Reading a non-existent resource will result in a SingleResourceResult with success=false and isDeleted=false
     * @implSpec Reading a deleted resource will result in a SingleResourceResult with both success=true and isDeleted=true
     */
    <T extends Resource> SingleResourceResult<T> read(FHIRPersistenceContext context, Class<T> resourceType, String logicalId)
            throws FHIRPersistenceException;

But as you noted, at the moment you can't change the result. Did you consider using the beforeSearch interceptor to inject additional entries to the incoming request bundle? It's not ideal because it means you'll end up evaluating things twice, but it may work as a stop-gap until we are able to implement the return feature discussed above.

I updated our sample "TaggingInterceptor" so that it would add tags to all resources being returned from read, vread, history, and search interactions.  Then I issue a request for each of these types and confirmed that the "after" tag appeared the returned resources.
I've opened a pull request at #3858 to deliver my updates to the interceptor in case anyone else would like to play with it.


no setup.py found

every time i run the "python -m pip install..." cmd it says no setup.py found and i cant quite figure out what im doing wrong

That's on me. I forgot to implement the setup file for installation. Until it's fixed, you can go around it by downloading the files on your PC and copying the recnetbot folder on your project's files. It will work the same.


own dataset

hi @harvitronix  ,   i'm using your code to train with different dataset, my data is about sign language which involve both static and dynamic gesture.
i have 10 classes, each gesture with 30 videos for training(21 videos) and testing(9 videos), my problem is when i using Method 4: lrcn, my val_error not really decreasing, always get 2.30 of val_error in the end.
but when train with method 5: mlp, the best result i could get is 0.77.
My intention is to use method 4, because mlp will be very hard to run in real time (always need to extract features). So, how can i improve my result of lrcn? or there is better algorithm for my case?
thank you so much for answering my doubt

Hi @hanako94. My guess is your dataset is simply much too small. Unless each video is quite long and you can break it into smaller pieces, it's going to be hard to learn sequences from just 21 data points. If there's a larger sign language dataset out there that you can train on, then use transfer learning to fine-tune to your dataset, that may be better.


Remove noisy test output logging we've never cared about

Technically, we could try to fix this and get the translators to update their data to have this fixed, but it's possible there are situations where this happens again and it's not an actual problem for gettext.
Even the original PR that added this said this overall number of newlines check could flag intentionally changed values.  Since we've never reacted to this output, we can remove it.
From that PR (we care about the 3rd check below):
1. if original string starts with a newline, translation needs to start with a newline too
2. if original string ends with a newline, translated string also needs to end with a newline
3. overal amount of newlines in original and translated string needs to match

In this PR, I am introducing a new test, which tests the above rules. The exception is the 3rd rule, since it seems that in some places the newline might have been added (or omitted) intentionaly. So we're just logging these.

Reference:: https://github.com/ManageIQ/manageiq/pull/20815

FYI, this is the output we're removing:
The following translation entries do not honor overall number of newlines:
>> File: /home/runner/work/manageiq/manageiq/locale/es/manageiq.po
----------
»VMs must be scanned from an EVM server whose host is attached to the same
  storage as the VM unless overridden via SmartProxy affinity.
  Please verify that:
  1) Direct LUNs are attached to ManageIQ appliance
  2) Management Relationship is set for the ManageIQ appliance«
»Se deben analizar las MV desde un servidor EVM cuyo host esté conectado al mismo almacenamiento que la MV, a menos que se anule mediante afinidad con SmartProxy.
  Compruebe que:
  1) Los LUN directos estén conectados a un dispositivo ManageIQ
  2) La relación de gestión esté configurada para el dispositivo ManageIQ«
----------

>> File: /home/runner/work/manageiq/manageiq/locale/it/manageiq.po
----------
»VMs must be scanned from an EVM server whose host is attached to the same
  storage as the VM unless overridden via SmartProxy affinity.
  Please verify that:
  1) Direct LUNs are attached to ManageIQ appliance
  2) Management Relationship is set for the ManageIQ appliance«
»Le VM devono essere scansate da un server EVM il cui host è collegato alla stessa memoria della VM a meno che non sovrascrivi tramite affinità SmartProxy.
  Si prega di verificare che: 1) I LUN diretti siano collegati al dispositivo ManageIQ 2) La Relazione di gestione sia impostata per il dispositivo ManageIQ«
----------

>> File: /home/runner/work/manageiq/manageiq/locale/pt_BR/manageiq.po
----------
»Enables defining a URL path prefix for XCCDF file instead of accessing the default location.
  example: http://my_file_server.org:[33](https://github.com/ManageIQ/manageiq/actions/runs/11073121485/job/30776894202?pr=23204#step:8:34)33/xccdf_files/
  Expecting to find com.redhat.rhsa-RHEL7.ds.xml.bz2 file there.«
»Permite definir um prefixo de caminho de URL para o arquivo XCCDF em vez de acessar o local padrão.
  Por exemplo: http://my_file_server.org: 3333/xccdf_files/ Esperando encontrar o arquivo com.redhat.rhsa-RHEL7.ds.xml.bz2 lá.«
----------
»Enables defining a URL path prefix for XCCDF file instead of accessing the default location.
example: http://my_file_server.org:3333/xccdf_files/
Expecting to find com.redhat.rhsa-RHEL7.ds.xml.bz2 file there.«
»Permite definir um prefixo de caminho de URL para o arquivo XCCDF em vez de acessar o local padrão.
Por exemplo: http://my_file_server.org: 3333/xccdf_files/ Esperando encontrar o arquivo com.redhat.rhsa-RHEL7.ds.xml.bz2 lá.«
----------
»Provision failed for the following reasons:
%{errors}«
»A provisão falhou pelos seguintes motivos: %{errors}«
----------
»VMs must be scanned from an EVM server whose host is attached to the same
  storage as the VM unless overridden via SmartProxy affinity.
  Please verify that:
  1) Direct LUNs are attached to ManageIQ appliance
  2) Management Relationship is set for the ManageIQ appliance«
»As VMs devem ser escaneadas a partir de um servidor EVM cujo host esteja conectado ao mesmo armazenamento que a VM, a menos que seja substituído por meio da afinidade do SmartProxy.
  Verifique se: 1) LUNs diretas estão conectadas ao dispositivo ManageIQ
2) O relacionamento de gerenciamento está configurado para o dispositivo ManageIQ«
----------

>> File: /home/runner/work/manageiq/manageiq/locale/zh_CN/manageiq.po
----------
»Enables defining a URL path prefix for XCCDF file instead of accessing the default location.
  example: http://my_file_server.org:3333/xccdf_files/
  Expecting to find com.redhat.rhsa-RHEL7.ds.xml.bz2 file there.«
»允许为 XCCDF 文件定义 URL 路径前缀，而不是访问缺省位置。示例：http://my_file_server.org:3333/xccdf_files/
  应该可在那里找到 com.redhat.rhsa-RHEL7.ds.xml.bz2 文件。«
----------
»Enables defining a URL path prefix for XCCDF file instead of accessing the default location.
example: http://my_file_server.org:3333/xccdf_files/
Expecting to find com.redhat.rhsa-RHEL7.ds.xml.bz2 file there.«
»允许为 XCCDF 文件定义 URL 路径前缀，而不是访问缺省位置。示例：http://my_file_server.org:3333/xccdf_files/
  应该可在那里找到 com.redhat.rhsa-RHEL7.ds.xml.bz2 文件。«
----------
»Provision failed for the following reasons:
%{errors}«
»由于以下原因，供应失败：%{errors}«
----------
»VMs must be scanned from an EVM server whose host is attached to the same
  storage as the VM unless overridden via SmartProxy affinity.
  Please verify that:
  1) Direct LUNs are attached to ManageIQ appliance
  2) Management Relationship is set for the ManageIQ appliance«
»虚拟机必须从 EVM 服务器扫描，它的主机附加到和虚拟机相同的存储器上，除非通过 SmartProxy 关联覆盖。
  请验证：
  1) 直接 LUN 附加到 ManageIQ 设备
  2) 为 ManageIQ 设备设置了管理关系«
----------

>> File: /home/runner/work/manageiq/manageiq/locale/zh_TW/manageiq.po
----------
»Datastore import was successful.
Namespaces updated/added: %{namespace_stats}
Classes updated/added: %{class_stats}
Instances updated/added: %{instance_stats}
Methods updated/added: %{method_stats}«
»成功匯入資料儲存庫。已更新/已新增名稱空間：%{namespace_stats}
已更新/已新增類別：%{class_stats}
已更新/已新增實例：%{instance_stats}
已更新/已新增方法：%{method_stats}«
----------
»Enables defining a URL path prefix for XCCDF file instead of accessing the default location.
  example: http://my_file_server.org:3333/xccdf_files/
  Expecting to find com.redhat.rhsa-RHEL7.ds.xml.bz2 file there.«
»啟用為 XCCDF 檔案定義 URL 路徑字首而非存取預設位置的功能。例如：http://my_file_server.org:3333/xccdf_files/，期望在這裡能夠找到 com.redhat.rhsa-RHEL7.ds.xml.bz2 檔。«
----------
»Enables defining a URL path prefix for XCCDF file instead of accessing the default location.
example: http://my_file_server.org:3333/xccdf_files/
Expecting to find com.redhat.rhsa-RHEL7.ds.xml.bz2 file there.«
»啟用為 XCCDF 檔案定義 URL 路徑字首而非存取預設位置的功能。例如：http://my_file_server.org:3333/xccdf_files/，期望在這裡能夠找到 com.redhat.rhsa-RHEL7.ds.xml.bz2 檔。«
----------
»Provision failed for the following reasons:
%{errors}«
»供應失敗，原因如下：%{errors}«
----------
»VMs must be scanned from an EVM server whose host is attached to the same
  storage as the VM unless overridden via SmartProxy affinity.
  Please verify that:
  1) Direct LUNs are attached to ManageIQ appliance
  2) Management Relationship is set for the ManageIQ appliance«
»除非透過 SmartProxy 親緣性置換，否則必須從其主機連接至與 VM 相同的儲存體的 EVM 伺服器中掃描 VM。
  請驗證：  1) 直接 LUN 已連接至 ManageIQ 應用裝置  2) 已為 ManageIQ 應用裝置設定管理關係«
----------

While I don't like the noise, this test was here for a reason and that's that the translators are incorrectly translating.  So, taking this for an example:
»VMs must be scanned from an EVM server whose host is attached to the same
  storage as the VM unless overridden via SmartProxy affinity.
  Please verify that:
  1) Direct LUNs are attached to ManageIQ appliance
  2) Management Relationship is set for the ManageIQ appliance«
»除非透過 SmartProxy 親緣性置換，否則必須從其主機連接至與 VM 相同的儲存體的 EVM 伺服器中掃描 VM。
  請驗證：  1) 直接 LUN 已連接至 ManageIQ 應用裝置  2) 已為 ManageIQ 應用裝置設定管理關係«

That's showing me that the 1) and 2) are inline, so presentation wise it's bad...this is what the test is supposed to show and the goal was to either

go back to the translators and say it's wrong
fix the code to not use newlines.

(incidentally, if you look closely it's like only 2 strings at fault, so IMO we should just fix them).
I'd really rather not delete this test, because it does have value.

I am curious where these are even being displayed in the UI.  newlines are notoriously bad for UI because they don't necessarily render as a
 unless you make it happen, which makes me wonder if they are poorly presented in the first place.

@Fryguy I see that we have a few possibilities:

Continue to ignore the warnings
Build a process to update these values on every run (chances are these same exact values come every time so a review and fix will work)
Send the corrections to our translators and ask them to fix the source of this information.
Throw away the tests.

Since we haven't done anything for the past 4 years, not sure how much we want to spend on a solution.
But the proper solution is number 3. Just not sure how to do this. The least expensive option is 4 - just have to click merge on that one.

Or my number 2

fix the code to not use newlines and/or present it differently

Which, given there are literally only 3 strings in the list, seems like the simplest option.

Or my number 2

fix the code to not use newlines and/or present it differently

Which, given there are literally only 3 strings in the list, seems like the simplest option.

I am curious where these are even being displayed in the UI. newlines are notoriously bad for UI because they don't necessarily render as a
 unless you make it happen, which makes me wonder if they are poorly presented in the first place.

yeah, I don't know.  Is it worth the effort to track them down and fix?

it seems that in some places the newline might have been added (or omitted) intentionally. So we're just logging these.
-- #20815

My thinking on this PR is YAGNI.  It's been a noisy log message since it's introduction.  It was never worthy of failing tests so never that important to fail tests.
We've not cared about it until now so I figured we can add it back if we suddenly want to track these down and fix them.

This is an easy solve - here are the places that these strings live and none of them actually need newlines, so I'll just make PRs, and then we can leave this test.

(5/15 issues) https://github.com/ManageIQ/manageiq-providers-ovirt/blob/7174d916b72ef1205223bd3e841c60c8c3d2454a/app/models/manageiq/providers/ovirt/infra_manager/vm_or_template_shared/scanning.rb#L54-L58
»VMs must be scanned from an EVM server whose host is attached to the same
storage as the VM unless overridden via SmartProxy affinity.
Please verify that:
1) Direct LUNs are attached to ManageIQ appliance
2) Management Relationship is set for the ManageIQ appliance«

(6/15 issues) (Hilariously, 2 strings that should be the same, but aren't, cause whitespace, so it's really only 3 issues doubled)
a. https://github.com/ManageIQ/manageiq-providers-kubernetes/blob/c73a5bcdf26ca515933adc3c2519582c0d4fc393/app/models/manageiq/providers/kubernetes/container_manager/options.rb#L50-L52
b. https://github.com/ManageIQ/manageiq-providers-kubernetes/blob/c73a5bcdf26ca515933adc3c2519582c0d4fc393/app/models/manageiq/providers/kubernetes/container_manager.rb#L523-L525
»Enables defining a URL path prefix for XCCDF file instead of accessing the default location.
example: http://my_file_server.org:3333/xccdf_files/
Expecting to find com.redhat.rhsa-RHEL7.ds.xml.bz2 file there.«

(3/15 issues)
a. https://github.com/ManageIQ/manageiq/blob/d9352e835f1c255dbf10ebce787b96a0a2a2ad92/app/models/miq_request_workflow.rb#L1512
b. https://github.com/ManageIQ/manageiq/blob/d9352e835f1c255dbf10ebce787b96a0a2a2ad92/app/models/miq_provision_virt_workflow.rb#L778
Provision failed for the following reasons:
%{errors}

(1/15 issue) https://github.com/ManageIQ/manageiq-ui-classic/blob/d612e033bbb6b3026646aa9a13205b724d53872c/app/controllers/miq_ae_tools_controller.rb#L289-L293
Datastore import was successful.
Namespaces updated/added: %{namespace_stats}
Classes updated/added: %{class_stats}
Instances updated/added: %{instance_stats}
Methods updated/added: %{method_stats}

This is an easy solve - here are the places that these strings live and none of them actually need newlines, so I'll just make PRs, and then we can leave this test. Also, I was wrong - it was 4 strings, not 3 😛

If this was important why was it not failing the tests?  Should I make this test fail and not just muddy the output when running the tests locally or in CI?  I didn't want to spend any time on it since the comments in the PR and the code indicate it wasn't actually a problem all the time.  But if all of the strings can be fixed and verified as working in the UI so it sounds like we should really fail the test and possibly offer exceptions if there ever is an exception.

I disagree with the initial assessment from Milan that sometimes it was necessary to change the newlines. In all of these cases, the translators just did it wrong.  I agree with you that this test should fail, not warn, and that way we can actually catch these from importing the automated translations at the time they are imported.

I disagree with the initial assessment from Milan that sometimes it was necessary to change the newlines. In all of these cases, the translators just did it wrong. I agree with you that this test should fail, not warn, and that way we can actually catch these from importing the automated translations at the time they are imported.

I can followup and make it fail once they're fixed.

In fact, adding newlines is a thing we don't want the translators to do cause that can actually break outputs, so this test is really important to find those.

Yeah, now that we do scheduled runs of po/pot generation and failing this test in the future, we'll be picking any of these up shortly after it's committed.

It also happens that we don't need the newlines here even in English, so changing them seems like a simple solution as these strings will then just be resubmitted to the translation team.

Right, any solution should be in the english pot so we can get them translated as it's much easier to follow the normal pattern vs. asking them to manually update their existing data to manually update their translations.

I'll open a PR to make this situation raise an error instead of flooding stdout and getting largely ignored.


vue: Use eslint-plugin-vue instead of eslint-plugin-html

There is an vue official eslint plugin ( https://github.com/vuejs/eslint-plugin-vue ) , so I changed to use it.
Thank you.

Thank you.
Do you have a reference to what the previously used "html" plugin was/is?

it is  eslint-plugin-html


linux-firmware: include firmware for ibt

fixes: https://github.com/resin-os/resin-intel/issues/21
Signed-off-by: Michal Mazurek<EMAIL_ADDRESS>

Can one of the admins verify this patch?

Lgtm

add to whitelist

Was asked to split this commit.


set api-version for keyvault list_secrets

This is a bug fix. Tested with cargo run -p azure_security_keyvault --example list_secrets.

It would be great if we could get some tests against the mock framework in for keyvault...

Going to close this in favor of https://github.com/Azure/azure-sdk-for-rust/pull/962


Acccessibility: Java Icon violates 1.4.3 Contrast requirement

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.95.3
OS Version: Darwin x64 23.6.0

Steps to Reproduce:
First set the Preferences to Dark Mode [ cmd + shitf + p] -> preferences : Color Theme -> e.g. Dark Modern or any dark mode option. Open any Java file. Validate the Java icon on side panel on the left.

Color Contrast for "J" symbol for generated java classes under WCA4z Side Panel violates 1.4.3 Contrast requirement. This "J" symbol can also be seen in the tab view as well which also violates the requirement as shown below:

This icon will change colour between themes, for example the hex value in Dark Modern theme is #cc3e44, while in Light Modern it's #b8383d. As per the the guidelines there should be a minimum contrast ratio of 4.5:1.

Double checked with the updated version of VSCode(1.95.3) , the issue still persists.


Page grid layout

Create a layout mode to arrange components on a fixed grid

Is it related to https://github.com/mui/mui-toolpad/issues/101 ?
Or does it need Waiting for upvotes label?

This issue was more tracking building a free form grid like retool, dynaboard, appsmith,... But we should just pick a paradigm and go for it I think

@Janpot @apedroferreira Is this task still relevant?

@Janpot @apedroferreira Is this task still relevant?

I guess not, unless you want to try it at some point.

Ok, as the drag-drop UX has started to work well, I'll mark this closed. We can reopen later if we there comes a need to try the fixed grid approach.


S3 API - enforce recursive delete

Hi @chrislusf
https://github.com/chrislusf/seaweedfs/blob/781585b195bee1ef389a48c3303d93200edd7fab/weed/s3api/s3api_object_handlers.go#L116
can we have it configurable by ENV?
in order not to break backward compatibility, maybe have it defaulted to recursive delete, but that's not s3 compatible (s3 delete is only direct, need to do listObjects and send all objects)
10x!

and as far as I understand, each object delete will cause the filer to do "list-objects" which puts unnecessary stress on the DB with ordering results and another "heavy" query.

the "list-objects" is to check whether the folder with deletion is empty or not. It is added recently https://github.com/chrislusf/seaweedfs/commit/0d345ac97d941bef0991c0cb08632ccf08c0ee83
Here are two related things to consider:

folder deletion should be recursive or not.
allow empty folder or not.

To follow AWS S3:

folder deletion would not make sense since empty folders are auto deleted while non-empty folder deletion would not work.
auto delete empty folder.

Not following S3:

folder deletion is all recursive.
allow empty folder.

I am debating myself also.

I think the best will be to have as close as we can S3 API compatibility, you want your code (AWS s3 SDK) to work the same on SW and the same on AWS S3.
if you an S3 API - for example DeleteObject it should behave the same as the "original".

so:

not enabling folder deletion - not s3 compatible
2.about the "empty" folder, can we change the DB realtion/logic so we don't need to create the "folder" row...
example:
when creating a new bucket with 1 file:   /NewBucket/path1/path2/file.txt
there are no rows for path1/path2 as they are "virtual" path..., so when I delete file.txt
there is no path1/path2 to delete :+1:

can we change the DB realtion/logic so we don't need to create the "folder" row

It is a nice idea. but this will make it not compatible with other filer metadata. there are other tricks to reduce the "is-directory-emtpy" checking. e.g., save a "check-directory-is-empty-or-not" flag to a random file, and only do the checking when that file is deleted.

Allowing directory-deletion is different, but better than S3? I did not hear complaints about it before. Why it is not desired?

it is desired, but not as the only option.
need to enable control over it, so you can "enforce" S3 compatibility if you need it.

move "delete-directory-if-empty" to read time


[ModuleInterface] Print the SPI attribute only once per group and import

Using a set fixes an issue where many source files imported the same SPI group from the same module, the emitted private textual interfaces superfluously repeated the @_spi attribute on the import.
rdar://problem/63681845

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test Linux platform

@swift-ci Please smoke test Linux platform


YQL queries fail after altering table schema

A simple user scenario is not working:

Create a static table with some schema
Run some YQL queries on it
Alter table, adding a new optional column to it
Run some YQL queries on it

YQL queries on 4th step fail.
I suspect that attribute _yql_row_spec contributes to it. Running YQL queries writes table schema there, and alter table does not update this attribute with a new schema. Then, new YQL queries rely on this attribute with an old schema and fail.
I have tried to create a minimal reproduce. This is the best I came up with:
set -eux

# Remove the table from previous runs, if needed
# yt remove //home/yt-team/aleksandr.gaev/tmp

# Create a new table
schema='<"strict"=%true;"unique_keys"=%false;>[{"name"="a";"required"=%true;"type"="utf8";"type_v3"="utf8";}]'
yt create table //home/yt-team/aleksandr.gaev/tmp --attributes "{schema=$schema}"

# Add a single row to the table
echo '{a=a}' | yt write-table //home/yt-team/aleksandr.gaev/tmp --format yson

# Run YQL query on the table
yt start-query yql 'pragma yt.QueryCacheMode = "disable"; pragma DqEngine = "disable"; insert into `//home/yt-team/aleksandr.gaev/tmp` WITH TRUNCATE select * from `//home/yt-team/aleksandr.gaev/tmp`'
sleep 15
# YQL query updated this attribute with schema
yt get //home/yt-team/aleksandr.gaev/tmp/@_yql_row_spec

# Altering table schema, adding new "any" field
new_schema='<"strict"=%true;"unique_keys"=%false;>[{"name"="a";"required"=%true;"type"="utf8";"type_v3"="utf8";};{"name"="z";"required"=%false;"type"="any";"type_v3"={"type_name"="optional";"item"={"type_name"="dict";"key"="utf8";"value"="utf8";};};}]'
yt alter-table --schema "$new_schema" //home/yt-team/aleksandr.gaev/tmp

# Altering schema does not change yql attribute. It does not contain a new column
yt get //home/yt-team/aleksandr.gaev/tmp/@_yql_row_spec

# New YQL query fails
yt start-query yql 'pragma yt.QueryCacheMode = "disable"; pragma DqEngine = "disable"; insert into `//home/yt-team/aleksandr.gaev/tmp` WITH TRUNCATE select * from `//home/yt-team/aleksandr.gaev/tmp`'
sleep 15

# Failed query does not update this attribute
yt get //home/yt-team/aleksandr.gaev/tmp/@_yql_row_spec

# Deleting this attribute manually
yt remove //home/yt-team/aleksandr.gaev/tmp/@_yql_row_spec

# Query succeeds after deleting this attribute
yt start-query yql 'pragma yt.QueryCacheMode = "disable"; pragma DqEngine = "disable"; insert into `//home/yt-team/aleksandr.gaev/tmp` WITH TRUNCATE select * from `//home/yt-team/aleksandr.gaev/tmp`'

YQL query fails with the following error:
'Failed to parse config for Skiff format' { 'Cannot create Skiff writer for table #0' { 'Cannot create Skiff writer for column "z"' { 'Cannot match field "z.<optional-element>" to Skiff schema' { 'Bad Skiff wire type: expected "repeated_variant8", actual "yson32"' } } } }

I suggest investigating it further (Why do we have _yql_row_spec attribute and why new YQL queries rely on it), and fixing this user scenario
Now I see these options:

Remove YQL queries reliance on _yql_row_spec attribute
Adjust alter-table command so that it updates _yql_row_spec attribute with a new schema

To everyone who encountered the same error: remove _yql_row_spec attribute on a table after changing it's schema, as a temporary workaround

I think the proper way should be using pragma yt.UseNativeTypes, as it reduces (or drops) reliance on yql row spec. Maybe we can enable this pragma by default in OSS?


终端错误

Traceback (most recent call last):
File "main.py", line 4, in
from py12306.app import *
File "/Users/dillionma/Desktop/12306/py12306/py12306/app.py", line 6, in
from py12306.helpers.func import *
File "/Users/dillionma/Desktop/12306/py12306/py12306/helpers/func.py", line 159
def dict_count_key_num(data: dict, key, like=False):
^

Duplicate of #14


[BUG] Specifying tile_width and tile_height but not tile_size raises ValueError in STSampleParquet pipeline

tile_size is None by default, and this line causes error due to division by None if tile_size is not specified.
@andrewmoorman could you take a look?

Also, I think the parameter tile_size in the STSampleParquet.save method can be a bit confusing.
It's later passed as the max_size parameter to the STInMemoryDataset._tile method, where the description more clearly explains its purpose. I suggest updating the documentation of STSampleParquet.save to better explain what this parameter is, similar to how it is explained in STInMemoryDataset._tile.

Fixed in #26


User access removed, access is now via a team

Hi there
This user had Direct Member access to this repository and access via a team.
Access is now only via a team.
If you have any questions, please post in #ask-operations-engineering on Slack.
This issue can be closed.

Duplicate, have another issue to cover this


github: make language change proposal triage less confusing to the outside

Currently, language change proposals created through the corresponding template are given titles starting with "proposal: Go 2:" and assigned LanguageChange and v2 labels. As an outsider to the process, there are a number of reasons this is confusing.

"Go 2" in other contexts usually refers to changes that cannot be made in a backward compatible manner, requiring a (major) version 2 of Go. However, the Go team has already announced the decision that a version 2 of Go will never exist. And notably, now that #61716 has opened up the opportunity for v2 standard library packages, it seems like the only truly backward incompatible changes are language changes.
The LanguageChange and v2 labels have enormous overlap. There are currently eight open issues which are LanguageChange and not v2 (all of which are titled "proposal: spec:" instead of "proposal: Go 2:") and forty-one open issues which are v2 and not LanguageChange (all of which are over three years old), versus eighty-eight which are both. I learned while writing this issue that the v2 label has a description that it includes "incompatible library changes," and indeed most of the non-language-change v2 issues are of that sort, but #61716 never carried it.
As mentioned, a different way to create a language change proposal is to say "proposal: spec:". Many of the issues titled this way are also labeled LanguageChange and v2; some are not, which in practice has made it hard for me to find particular proposals when answering questions. (There are also many issues titled like "proposal: Go 2: spec:".)
#33502 and #33892 both sometimes mention issues titled as either "Go 2" or "spec." Some "spec" language changes, e.g. #61405 and #56351, never appeared in the latter.

While I recognize that the situation reflects processes of the respective proposal review teams, it is not intuitive and sometimes actively interferes with outside usage. In particular, the question of why backward compatible language change proposals are titled "Go 2" comes up often. (Most recently this occurred in https://github.com/golang/go/issues/65652#issuecomment-1937789079, but I recall several other instances on the issue tracker, and I've explained it frequently in other channels as well.) It's also worth noting that the document explaining the proposal process doesn't explain what "Go 2" means.
There are a few measures which I suggest to reduce the confusion around language change proposal triage and make searching more consistent:

Title all language change proposals as "proposal: spec:" and drop the "Go 2" moniker. Then the most common question disappears entirely.
Label all "proposal: spec:" issues as LanguageChange. Then it's easy to narrow a search to all language change proposals. (Strictly speaking, this isn't necessary if the previous item is implemented, since one could search for "proposal: spec:" in:title, but that phrasing makes it hard to search issue and comment text as well.)
Apply the v2 label to backward-incompatible changes only. Ostensibly, these should either be for standard library packages – which will actually be v2 – or rejected as infeasible almost immediately. This would likely require manual intervention during triage.

cc @golang/proposal-review

I agree that the current situation is confusing.
We need a clear way to distinguish major and unusual language change proposals from smaller changes like improvements to generic type inference.  We send major changes through a separate proposal process designated by the v2 tag.  Notably this includes all changes related to error handling, which is by far the most common kind of language change proposal.
While I agree that something should probably change, I think that we need to keep that distinction.

For background, as people who follow these things closely are aware, there are two proposal committees.  One is the "ordinary" committee that handles most proposals, tracked in #33502.  The other is the "Go 2" committee that handles (most) language changes and incompatible library changes, tracked in #33892.  Typically a proposal that seems worthwhile to the second committee is forwarded to the first committee for final review and acceptance.  Rejections by the second committee are final.
I don't think there is anything wrong with those processes, but I agree that the labels are confusing.
After discussion, I think a workable approach is to introduce a new Proposal-Major label that we will use for major language changes.  Issues with that label will be handled by the Go 2 committee.  In general we expect that every issue marked Proposal-Major will have either a LanguageChange label (indicating a language change) or a v2 label (indicating a backward incompatible library change that requires a /v2 version of the package).
If the Go 2 committee passes the proposal to the ordinary committee, the Proposal-Major label will be removed (the LanguageChange or v2 label will remain).
Does anybody see any difficulties with this suggested change?  Thanks.

Yes.

introduce a new Proposal-Major label that we will use for major language changes. Issues with that label will be handled by the Go 2 committee. In general we expect that every issue marked Proposal-Major will have either a LanguageChange label (indicating a language change) or a v2 label (indicating a backward incompatible library change that requires a /v2 version of the package).

I would also suggest either removing or renaming the Go2Cleanup label. It looks like most issues with it are just v2 library changes.

After further discussion, it seems that most of the proposals handled by the "Go 2" committee are language change proposals.  This seems likely to be more true as we now have support for v2 packages in the standard library (with math/rand/v2).  Incompatible library changes can now be handled in the "ordinary" proposal committee, as v2 proposals.
Therefore, we can consider the "Go 2" review meeting to be the "language review" meeting.  Going forward, language changes will go first to the "language review" meeting and then, if accepted there, go to the ordinary proposal review meeting for final approval.
We already have a LanguageChange label which we will continue to use for issues that are language changes.  We can add a new label LanguageChangeReview to indicate that the issue is under the purview of the "language change" meeting.  We should add that label to new language change issues.  We can remove it if and when a proposal moves to the ordinary committee.
Any thoughts on that approach?  Thanks.

This is now done.  Thanks.

I sent in CL 603955 to remove the "Go 2" mention from the language change proposal issue template and to have it add the LanguageChangeReview label instead of v2. Gerrit didn't add reviewers automatically, and I'm not sure who they should be.


[Settings] Shortcut Guide theme settings label is wrong

Environment
Microsoft Windows [Version 10.0.18363.836]
Windows build number: [run "ver" at a command prompt]
PowerToys version:  master
PowerToy module for which you are reporting the bug (if applicable):

Expected behavior
Label is describing Shortcut Guide theme changing

Actual behavior
Label is "Settings Theme"

Screenshots

Fixed in 0.19.0, please visit https://github.com/microsoft/PowerToys/releases/ for the latest release


Issue with  playback after trying to play the recorded data

First of all this is a great library..thanks a lot ...find it very useful
I was trying to use the record and playback using the instructions.. i can see that when i record using wiremock as proxy it creates two directories mappings and __files in current direcotry and mappins has the stubs and files has the body of response...
for eg: request to localhost:8080/foo/1 will have two files one in mapping n one in __files
Now i try to playback the data removing all proxy arguments and i get error saying cant find
__files/foo/1
when it records the file format is mappings/foo.1.1234.json and body.foo.1 in __files
but during playback it tries to look into the tree dir structure....
is there a way to tell wiremock to use the same format for lookup that it used for recording...
ideally i want to copy all these recorded file for my integration tests..where the wiremock is loaded with this recorded data....

From what you've described it should be working. I suggest you post the details of what you tried to do (i.e. your full CLI session) on the mailing list to see if anyone can spot the problem.

This is a very old issue report, can it be closed? :)

I reckon so :-)


Installation of standard

Hi,
I'm having trouble installing magento2 standard to use with phpstorm.
I have set phpcs interpreter as this container and under inspections standards like PSR1, ZEND and others work fine, but if under inspections I add installed path to ruleset.xml located in vendor folder I get coding standard is not installed. The installed coding standards are MySource, PEAR, PSR1, PSR12, PSR2, Squiz and Zend error.

@kandrejevs can you point me to the website where this standard can be found/downloaded. I might have to integrate it into the container.

in this particular case I'm trying to set this as standard : https://github.com/magento/magento2/blob/2.3-develop/dev/tests/static/framework/Magento/ruleset.xml

When you mount the standard into the Docker container, you need to ensure that the file it requires is also present at that specific location: https://github.com/magento/magento2/blob/2.3-develop/dev/tests/static/framework/Magento/ruleset.xml#L10
Alternatively adjust the line and mount both from the same directory.

@cytopia I have my own .xml ruleset, is there an easy way to run your container using my rules as default?
Good job btw, very easy to use.

When using a custom standard, you can tell phpcs where it lives by setting installed_paths. The example below uses phpcs installed via composer:
# Set the value. This gets saved to a conf file.
$ ./vendor/bin/phpcs --config-set installed_paths foo
Using config file: <...>/vendor/squizlabs/php_codesniffer/CodeSniffer.conf

Config value "installed_paths" added successfully

# Confirm the value
$ ./vendor/bin/phpcs --config-show installed_paths
Using config file: <...>/vendor/squizlabs/php_codesniffer/CodeSniffer.conf

installed_paths: foo

# Show the contents of the config file.
$ cat vendor/squizlabs/php_codesniffer/CodeSniffer.conf
<?php
 $phpCodeSnifferConfig = array (
  'installed_paths' => 'foo',
)
?>

This docker image does not use composer to install phpcs. Instead it uses a .phar file stored in /usr/bin. phpcs will look for the config file /usr/bin/CodeSniffer.conf. One way to be able to use a custom standard with this image would be to have a CodeSniffer.conf in your project and mount it.
Using docker:
$ docker run --rm -v $(pwd):/data -v CodeSniffer.conf:/usr/bin/CodeSniffer.conf cytopia/phpcs .

Using docker-compose:
phpcs:
  image: cytopia/phpcs
  volumes:
    - .:/data
    - CodeSniffer.conf:/usr/bin/CodeSniffer.conf

$ docker-compose run --rm phpcs .

Note that I haven't tested any of this, so it might need adjusting.

@biggianteye thanks for the code snippet, it's probably a good idea to add this as an example to the Readme.
@kandrejevs can you confirm that this works fine for you?

cd vendor/ && rm -rf magento/

Hey,
It works great using CodeSniffer.conf to specify rules and standard to use. But how to create a specific standard using ruleset.xml maybe and register it ? So I can add "standard' => "myStandard" in CodeSniffer.conf ?

This is what i've done to have multiple rulesets without having to install them locally:
FROM cytopia/phpcs:3-php8.1

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
    && php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
    && php composer-setup.php \
    && php -r "unlink('composer-setup.php');" \
    && mv composer.phar /usr/local/bin/composer

RUN composer require --dev sirbrillig/phpcs-variable-analysis \
    && composer require --dev wp-coding-standards/wpcs:^3.0

COPY CodeSniffer.conf /usr/bin/CodeSniffer.conf

CodeSniffer.conf
<?php

$phpCodeSnifferConfig = [
  'installed_paths' => "/data/vendor/sirbrillig/phpcs-variable-analysis,/data/vendor/wp-coding-standards/wpcs",
];


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade" workflow

AWS CodeBuild CI Report

CodeBuild project: GitHubPipelineAutoBuildProj-XK8ItpxnSow5
Commit ID: 71f3291b5ca0b0819db2c7925472209e0d43f5f3
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Fixes to README examples and scripts

Various fixes and niggled which I tripped across while running through the README.
Possibly some of this is down to my using datakit in the basic mode rather than "experimental Github binding" mode?

Thanks!
Indeed, the support for the Git http mode do indeed pull a lot more of dependencies (especially for TLS) so the default image does not include it. Only the :github image has it.


Have user_runtime_dir return /var/run/user/uid for *BSD

Partially addresses #190 by having user_runtime_dir() return /var/run/user/... for the 3 most popular BSD systems
I just check to see if we are using FreeBSD/OpenBSD/NetBSD by using sys.platform. Unless other BSD-based systems use the kernel names of these OSs (since sys.platform essentially returns a lowercase version of uname -s with its major version appended to it), they will still fallback to /run/user/.
References:
FreeBSD's kernel name: from reading https://docs.python.org/3/library/sys.html#sys.platform
OpenBSD's kernel name: from firing up a VM and running uname -s
NetBSD's kernel name: an image search of uname being ran.

@kemzeb thanks for the fix! did you try this also as root and did it work as expected?

https://superuser.com/questions/1056926/is-var-run-user-uid-the-new-var-run-for-pid-files
"""
Only use /run/user/$UID/ if you want to make sure the file shall vanish as soon as the user logs off completely. Also note that the root user is not always logged in, so it is likely that there is no /run/user/0/.
"""
That sounds potentially problematic.

Hi @ThomasWaldmann, this change was just for logged in regular users. I did ponder a simple solution where user_runtime_dir() would return the fallback of /var/run/ (or /run/ for Linux) if the UID is that of the root user, but after reading #188 I didn't think it was a good idea as such a change could break projects that may rely on this behavior (if there is any).
Another solution is to follow the idea mentioned in that issue and implement a site_runtime_dir(). I did look into this recently, but had trouble finding the shared runtime directories for the other platforms besides Unix. I'll see if I can make a PR for this when I get the time!


Configure Dgraph database for DgraphDataAccessor

Hi @adlerfaulkner .
Your work helps me a lot for understanding how to plug customized module into CSS. Thank you.
I encounter a problem on running "npx community-solid-server -c ./config.json -m .", and the error message is as the following.

2022-03-29T05:41:24.520Z [DgraphDataAccessor] info: Initializing Dgraph Client
2022-03-29T05:41:24.561Z [ContainerInitializer] warn: Failed to create resource http://localhost:3000/: 14 UNAVAILABLE: No connection established
2022-03-29T05:41:26.148Z [ContainerInitializer] warn: Failed to create resource http://localhost:3000/.acl: Failed to initialize Dgraph database.
2022-03-29T05:41:26.148Z [ContainerInitializer] info: Initialized container http://localhost:3000/ with 0 resources.

I guess the reason is that there is no Dgraph instance on my computer for DgraphDataAccessor to connect with. Am I right?
However, I am kind of confused for configuring Dgraph database for DgraphDataAccessor.
Should I replace the following settings with the original "@id": "urn:solid-dgraph:default:DgraphDataAccessor" settings in "dgraph.json"?

{
"@id": "urn:solid-dgraph:default:DgraphDataAccessor",
"comment": "The configuration to connect to the Dgraph instance.",
"DgraphDataAccessor:_configuration_connectionUri": "https://mySpecialConnectionUri",
"DgraphDataAccessor:_configuration_grpcPort": "1234",
}

Or append the settings above inside the @graph section of "dgraph.json"?

Yes, you definitely need to have a Dgraph instance running on your computer to use this. You can start one using this docker image: comake/dgraph.
You can run a zero, alpha, and an instance of ratel (see dgraph docs) using a docker compose file such as:
version: "3.7"
services:
  zero:
    image: comake/dgraph:latest
    volumes:
      - zero-data-volume:/dgraph
    ports:
      - 5080:5080
      - 6080:6080
    command: dgraph zero --my=zero:5080
  alpha1:
    image: comake/dgraph:latest
    hostname: "alpha1"
    volumes:
      - alpha-data-volume:/dgraph
    ports:
      - 8080:8080
      - 9080:9080
    command: dgraph alpha --my=alpha1:7080 --zero=zero:5080 --security whitelist=<IP_ADDRESS>:<IP_ADDRESS>,<IP_ADDRESS>:<IP_ADDRESS>
  ratel:
    image: dgraph/ratel:latest
    ports:
      - 8000:8000
    command: dgraph-ratel
volumes:
  zero-data-volume:
  alpha-data-volume:

Name this file docker-compose.yaml then run it using docker compose -f ./docker-compose.yaml up

Should I replace the following settings with the original "@id": "urn:solid-dgraph:default:DgraphDataAccessor" settings in "dgraph.json"?

No, you do not need to edit dgraph.json. These settings would go in the @graph section of the json file you use as the --config or -c command line arg when starting CSS.
This would be the file you created when following the readme instructions saying:

Create a config.json file from this template, and fill out your settings.

However, you don't need to set these settings if you are running dgraph locally and haven't changed any of it's default ports.

Thank you for your detailed explanation. It's clear to me now.

Great! Would love to hear if you end up doing anything with it other than testing.


TD3 Determinism

Just thought I'd open a thread to start discussion about this, as it seems pretty significant for results baselining.
FWIW, in my experiments running TD3 on very simple environment with the exact same parameters, it seems on the runs where it doesnt learn, the actor gradients are exactly 0.

Hello,
please fill the issue template


[stable/mongodb-replicaset] custom initialization

Is this a request for help?:
Yes
FEATURE REQUEST
Version of Helm and Kubernetes:
Server: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.6", GitCommit:"9f8ebd171479bec0ada837d7ee641dec2f8c6dd1", GitTreeState:"clean", BuildDate:"2018-03-21T15:13:31Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Which chart:
stable/mongodb-replicaset/
What you expected to happen:
I would like to define some follow up work to happen after the mongo cluster is initialized; create users, initialize collections and indexes, etc.
I've got a container that will do the work. This seems well suited to running as a job where the container is expected to block until the database is available. I'd write this as taking an array of image names. For each name, a job would be created. The image would be expected to have an entrypoint defined. If env variables need passed in, they would be defined w/ key value pairs. Something like this:
postInstallInitialization:
  - "myinitcontainer1:34"
  - "myinitcontainer2:13":
      MY_MONGO_HOST: bar

I'm happy to do the work, but wanted to consult with the maintainers first if this is an acceptable solution.

@foxish, @unguiculus


Feature Request: Dynamic cell sizing based on control

A nice feature would be to have the cell dynamically resize to the width of controls within them i.e. the cell would wrap around the width of the label based on the text within it so each cell isn't the same

Any idea's suggestions  how to go about implementing this?


Switches not refresh

Description
When I turn on or turn off a switch outside of dashboard, the switch of dashboard not refresh to the current state.
Environment
HACC version 0.5.1
Hass.io on a NUC Inter iCore i5 with docker
Homeassistant version 0.98.5
I use Safari on iPhone XS with iOS 12.4 and on iPad with iOS 12.4.1 (also I've tried Chrome)
Steps to Reproduce

Open dashboard on iPad or iPhone
I turn on or turn off some switch
Wait to refresh the dasboard
The dashboard not refresh

Screenshots

Fixed and released in v0.5.2!

With this update the switches refresh when your turn on but not when you turn off. I don’t know why.

@DieguitoCigala When you use the standard Home Assistant UI to toggle the switch, does it take a moment for the system to recognize that the switch was flipped, or is it pretty instantaneous?
HACC just waits 1,000ms (I think) and then re-requests the state of the switch. So if your switch takes longer than 1,000ms to turn off, that may be the problem. Or, if it's a dimmer, that can also cause it.
I may need to adjust this, or allow the user to enter their own delay.

It's pretty instantaneous but I don't think that it's as instant as 1 mS. I think that it's a little more.
It's not a dimmer.


Reproducing FID

Hi authors,
Thanks for sharing this great work:)
I cannot reproduce 6.11(t=.9) FID on FFHQ in Table 2.
I used pretrained VQGAN and trained Absorbing diffusion sampler for 2M steps
under the same conditons, but the FID was only 8.10.
Is there sth important I need to check?

Hi, we're glad you're managing to successfully use the code!
How many samples are you using to evaluate the FID (--n_samples flag?) I believe we used 50k for those experiments so if you're not using that many that will definitely give an improved FID

Thank you for reply!
I generated 50,000 samples following README.
Although I still didn't get the reported value, I found that using the trained model
for shorter steps than 2M shows better FID.
and I have one more question.
Is the pretrained VQGAN model you provided trained  the same as the one provided by Taming Transformers?

The only difference is that training was conducted at NVIDIA GeForce RTX 3090, and
other than that, the same commands in README.md were used.
Thanks a lot :)


adaptiveHeight slider

I'm using Swiper latest version.
Is there some way to make slider to be adaptiveHeight?

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.
If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with issue


Added v1-final-MVP-subcomponents for issue #61

Note: I didn't include the login screen and the quiz screens because I didn't think they needed subcomponents. Let me know if I should change anything.
Issue Reference #61

Would you be able to attach screenshots? I'm sure they look great - just want to be sure we have some context!

Hey sorry, I wasn't clear in my last message! When you add in .pngs to a PR, I'm not able to view them - I can just see that they're added. Sorry to make you repeat/undo work, but if you remove the screenshots you added in your last commit (and either add them in a comment here or not, I'm sure they're great!) I'll go ahead and merge this 👍

ok i undid the add of the extra duplicate screen shots.
survey-view-slider

survey-view-grouped-buttons

survey-view-check-grouped-buttons-view

CORONATRACKER UI - Logged In Home Page - Patient Daily Temp Graph

CORONATRACKER UI - Logged In Home Page - Patient Daily Checkin

CORONATRACKER UI - Logged In Home Page - Patient Daily Bell notification

CORONATRACKER UI - Logged In Home Page - Patient Calendar Tracking

Thanks @Tanvez !!


have to restart dnsmasq and pause immediately after configuring

have to restart dnsmasq and pause immediately after configuring.   Otherwise the next step (installing tornado) will fail because pypi.python.org doesn't resolve.
diff --git a/roles/ansible-consul/tasks/dnsmasq.yml b/roles/ansible-consul/tasks/dnsmasq.yml
index 4686aa1..c960105 100644
--- a/roles/ansible-consul/tasks/dnsmasq.yml
+++ b/roles/ansible-consul/tasks/dnsmasq.yml
@@ -12,5 +12,11 @@
   copy: >
     content='server=/{{ consul_domain }}/<IP_ADDRESS>#8600'
     dest=/etc/dnsmasq.d/10-consul
-  notify:
-    - restart dnsmasq
+  register: dnsmasq_configured
+
+- service: name=dnsmasq state=restarted
+  when: dnsmasq_configured|changed
+
+- pause: seconds=1
+  when dnsmasq_configured|changed
+

I've run into this as well. I'd like a solution that combines the existing handler with a wait_for (http://docs.ansible.com/ansible/wait_for_module.html) task but AFAIK there is no way to build a handler composed of a chain of multiple tasks

This should be able to be closed now


Command flags after arguments are discarded without warning

Several folks and I have been hit by this issue:

notation sign --key=$KEY_NAME $IMAGE  works
notation sign $IMAGE --key=$KEY_NAME does not works and errors out with signing key not found.

The same problem applies to any non-required flag which is used together with an argument, i.e. -p/-u.
Using flags after arguments seems not to be supported by urfave/cli, see https://github.com/urfave/cli/issues/976.
We should at least error early with a meaningful message instead of executing the normal workflow and having a random error message.
@dtzar

+1. I realize the positional parameter shouldn’t have named parameters after.
I like the idea of an error, not even a warning.

Let's move to github.com/spf13/cobra.

Let's move to github.com/spf13/cobra.

I will take a look at it.

Yes, this would be great! It would also help with the user experience because of the autogenerated help and man pages.


Error: No plugin init file detected (extensionless init files)

When running antidote load with ohmyzsh/ohmyzsh path:plugins/fd in my zsh_plugins.txt file I get the error:
antidote: no plugin init file detected in '/Users/jb/Library/Caches/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh/plugins/fd'.

It must not be detecting the _fd file as an init file. Perhaps we can check for extensionless files as init files (via something like this?)
Link to folder on github: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/fd

Antidote is behaving as expected. There's no actual plugin file in that folder. You probably wanted this syntax instead: ohmyzsh/ohmyzsh path:plugins/fd kind:fpath.


Add modules builtin command

The modules builtin aims to make it easy to discover modules added to the project and to understand what they do by providing command-line help, command summary listings, and file path information. It supports command-line glob patterns and tab completion to filter the output.
In the future, it may gain the capability to provide a more granular interface targeted at parsing and documenting individual shell functions.
This PR also contains commits for other minor fixes.

Coverage increased (+0.2%) to 96.203% when pulling 0a4886a1bfaad0ad46cf97957c56e4c143bcaf9c on modules-builtin into 7cd5dd5b96fbca92a889260c1ea1bd8ae943af58 on master.


Internal recursion limit triggered when not retaining full type graphs

Reproducible file: https://github.com/evaera/roblox-lua-promise/blob/v4.0.0/lib/init.lua (must be in strict mode)
When performing a Frontend::check() on the above file, with retainFullTypeGraphs = false, an Internal Recursion Counter limit exceeded exception is raised.
Attaching a debugger to the process, the offending location seems to be the copyErrors() call below:
https://github.com/Roblox/luau/blob/e25de95445f2d635a125ab463426bb7fda017093/Analysis/src/Frontend.cpp#L950-L972
The visit call inside copy errors is creating an infinite loop, which gets terminated by the recursion limiter.
EDIT: stepping through the call stack, I don't think its actually an infinite loop, just a very deep error copying that gets terminated by the recursion limiter

I think the best we can do here is to replace errors that can't be cloned with a CodeTooComplex error.

I ended up replacing the cloning logic so that it isn't recursive anymore. A fix for this will be coming in the next sync.
Note that the iteration limit of 100,000 types to be cloned is arbitrary, and will probably need more fine-tuning.


Fix struct problem in SkinChanger::getQualities()

It was giving an error in compilation. I haven't tested the code in game.

Fixed with 8cb516a


docs: add TiKV Coprocessor config doc

Signed-off-by: CaitinChen<EMAIL_ADDRESS>What have you changed? (mandatory)
Add TiKV Coprocessor config doc
Does this PR affect documentation (docs/docs-cn) update? (mandatory)
Relevant

@lilin90 PTAL Thanks

@huachaohuang Please help give an approval because @lilin90 's approval is not counted as a valid one. Thanks!


Sprint Goal tab limited to 60 characters

It seems that the allowed number of characters for the tab is 60. We have a sprint goal description that needs more characters.

Fixed in release 2.0.7.


Automated cherry pick of #10833: fix(region): fetch cached image from glance by default

Cherry pick of #10833 on master.
#10833: fix(region): fetch cached image from glance by default

Codecov Report

Merging #10834 (830cb3a) into master (1c88efd) will increase coverage by 5.35%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master   #10834       +/-   ##
===========================================
+ Coverage    5.82%   11.17%    +5.35%
===========================================
  Files         898      147      -751
  Lines      138405    16942   -121463
===========================================
- Hits         8067     1894     -6173
+ Misses     129633    14855   -114778
+ Partials      705      193      -512

Flag
Coverage Δ

aFlag
11.17% <ø> (+5.35%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/cloudcommon/validators/validators_cert.go
37.06% <0.00%> (ø)

pkg/apigateway/handler/k8s.go

pkg/cloudprovider/access_group.go

pkg/util/fileutils2/fileutils.go

pkg/cloudcommon/db/userresources.go

pkg/cloudcommon/db/managed.go

pkg/keystone/models/default_admin.go

pkg/compute/models/elasticipresource.go

pkg/compute/models/hostwires.go

pkg/util/netutils2/netutils_linux.go

... and 742 more

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 1c88efd...830cb3a. Read the comment docs.


Using Flutter with non-standard keyboard

Hey, thanks for the great work done with Flutter. It's really great tool but there are some flaws. One of the main flaws that I've notice just after a few minutes of playing with Flutter is poor support for non-standard keyboard. It's not possible to execute such commands like CTRL+A, CTRL+X, CTRL+C, CTRL+V or select text by simulating using arrows and the SHIFT key being pressed. There is also a problem with the context menu (after selecting text) not being a system menu.
Here is the video showing this problem: https://youtu.be/ma1hOEX0YTw
Proposal
It would be great if input fields would support all the commands that are available on desktop as some keyboard take advantage of this. It would also help when you connect phone to the computer and would like to use your computer keyboard to enter text. I also think that by default it should show system context menu after selecting text.

We have added a lot of support for shortcuts sine this was field. I am going to close this one. If something specific is still missing: please file a new issue.


Add Brackets editor to the list

Project URL
https://github.com/brackets-cont/brackets
Category
Ide
Description
Brackets is a modern open-source code editor for HTML, CSS and JavaScript that's built in HTML, CSS and JavaScript.
Why it should be included to Awesome macOS open source applications  (optional)
Because it's responsive, awesome editor.
Checklist

[x] Edit applications.json instead of README.md.
[x] Only one project/change is in this pull request
[x] Screenshots(s) added if any
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

@vytautask Thanks!


refactor: replace OnceLock with LazyLock

Which issue does this PR close?
Part of https://github.com/apache/datafusion/issues/11687
Clear the TODOs after updating MSRV to 1.80.
Rationale for this change
LazyLock has been stable since Rust version 1.80.0, and it provides a simpler and more suitable way to define static variables.

What changes are included in this PR?

Are these changes tested?
Yes. By existing tests.

Are there any user-facing changes?
No

Thanks @alamb @comphead . I plan to handle the remaining OnceLocks.


do unpremultiply if needed in ConvertToExternal

Partially fixes https://github.com/libjxl/libjxl/issues/81
In the cases where ConvertToExternal is called to get an RGBA buffer, it will now always be unassociated alpha (which is what most applications will expect, including e.g. the png encoder in djxl).
If there is a need to also have the option of not doing the unpremultiply and getting the original, premultiplied values, this can be added later; for now it is important to get things right in decoders/viewers that are not looking at the premultiplied field and assuming things to be non-premultiplied.
This doesn't yet fix code paths that do not involve ConvertToExternal.

Can we instead do this in dec_reconstruct.cc?

Can do it in dec_reconstruct, but then there's a bit of a complication: the unpremultiply can only happen after all blending has been done... I mean of all frames. Otherwise you can get different results with those light-emitting pixels (A=0, RGB>0) depending on whether you first blend frames and then unpremultiply them, or first unpremultiply decoded frames and then blend them.
Also for the case of decoding to EXR, unpremultiply should be skipped (which does happen with this PR, since the EXR encoder does not use ConvertToExternal).

Ok, then in dec_frame we should make it so that the early output path is
skipped if we need to unpremultiply, and once blending is done rect-by-rect
we'll take care of it.
As for EXR, the proper solution for that is specifying a flag to disable
un-premultiplying.
On Wed, 2 Jun 2021 at 14:26, Jon Sneyers @.***> wrote:

Can do it in dec_reconstruct, but then there's a bit of a complication:
the unpremultiply can only happen after all blending has been done... I
mean of all frames. Otherwise you can get different results with those
light-emitting pixels (A=0, RGB>0) depending on whether you first blend
frames and then unpremultiply them, or first unpremultiply decoded frames
and then blend them.
Also for the case of decoding to EXR, unpremultiply should be skipped
(which does happen with this PR, since the EXR encoder does not use
ConvertToExternal).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/libjxl/libjxl/pull/83#issuecomment-852983626, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOPAIY32HOCMAKUFHXMFQDTQYPO3ANCNFSM456L2N7A
.

The problem is deeper I think, cannot unpremultiply a frame until all future frames that will depend on it (blend/patch with it as a source) don't need it anymore... Or is that ok, can the unpremultiply be done after the save to reference frame? (also in the save_before_ct==false case, I mean)

Well, for now we can do it in dec_external_image and then do it post
blending in dec_reconstruct.cc once all the pieces are there :)
On Wed, 2 Jun 2021 at 14:45, Jon Sneyers @.***> wrote:

The problem is deeper I think, cannot unpremultiply a frame until all
future frames that will depend on it (blend/patch with it as a source)
don't need it anymore... Or is that ok, can the unpremultiply be done after
the save to reference frame? (also in the save_before_ct==false case, I
mean)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/libjxl/libjxl/pull/83#issuecomment-852996089, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOPAI2VNKX2VDQ65YFBPSTTQYRWBANCNFSM456L2N7A
.

Sounds good to me. Let's merge this and then reopen #81 to remember to move it to dec_reconstruct later.

Ok, but please do add the check in dec_frame.h :)

Added the check in dec_frame.h.


How can generate share key by raw private key and peer raw public key with the method NID_X9_62_prime256v1?

The code is:
#include <stdint.h>
#include <stdio.h>
#include <openssl/ec.h>
int main()
{
uint8_t privatekey[32] = {0x99, 0x79, 0x88, 0x58, 0xA1, 0xDC, 0x6A, 0x2C, 0x68, 0x63, 0x71, 0x49, 0xA4, 0xB1, 0xDB, 0xFD, 0x1F, 0xDF, 0xF5, 0xAD, 0xDD, 0x62, 0xA2, 0x14, 0x2F, 0x06, 0x69, 0x9E, 0xD7, 0x60, 0x25, 0x29};
const uint8_t* p = privatekey;
EC_KEY* pkey = EC_KEY_new();
if (!d2i_ECPrivateKey(&pkey, &p, 32))
{
	printf("Deserializing private_key failed\n");
}

return 0;

}

It's expecting a DER encoded ECPrivateKey structure as defined in RFC5915. What you have doesn't look like that. Most likely what you have is the raw private key scalar value. In which case you will have to convert the key to a BIGNUM and then set it using EC_KEY_set_private_key(). Before you do that you will also need to set the group for the EC_KEY object using EC_KEY_set_group(). Finally you will also need to set the public key using EC_KEY_set_public_key().
Note, you can calculate the public key from the private key like this:
pubkey = EC_POINT_new(group);
EC_POINT_mul(group, pubkey, priv, NULL, NULL, NULL);

It's expecting a DER encoded ECPrivateKey structure as defined in RFC5915. What you have doesn't look like that. Most likely what you have is the raw private key scalar value. In which case you will have to convert the key to a BIGNUM and then set it using EC_KEY_set_private_key(). Before you do that you will also need to set the group for the EC_KEY object using EC_KEY_set_group(). Finally you will also need to set the public key using EC_KEY_set_public_key().
Note, you can calculate the public key from the private key like this:
pubkey = EC_POINT_new(group);
EC_POINT_mul(group, pubkey, priv, NULL, NULL, NULL);

Thank you for your reply, In fact, my original demand is to get the share key by raw private key and peer raw public key with the NID_X9_62_prime256v1 method. Is there any API functions for me? If not, how can I get the share key?

get the share key

I assume you mean "get a shared secret using ECDH".

by raw private key

First you will need to create an EVP_PKEY for your private key. Something like this (completely untested - and with error checking omitted for brevity):
EC_KEY *eckey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
const EC_GROUP *group = EC_KEY_get0_group(eckey);
EC_POINT *pubpt = EC_POINT_new(group);
EVP_PKEY *privpkey = EVP_PKEY_new();

EC_KEY_oct2priv(eckey, privatekey, sizeof(privatekey));
EC_POINT_mul(group, pubpt, EC_KEY_get0_private_key(eckey), NULL, NULL, NULL);
EC_KEY_set_public_key(eckey, pubpt);
EVP_PKEY_assign_EC_KEY(privpkey, eckey);

peer raw public key

What exactly this means is unclear. Probably something like this:
EC_KEY *pubeckey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
EVP_PKEY *pubpkey = EVP_PKEY_new();

EC_KEY_oct2key(pubeckey, publickey, sizeof(publickey));
EVP_PKEY_assign_EC_KEY(pubpkey, eckey);

To the derive a shared secret you need to use EVP_PKEY_derive. E.g. see code here:
https://wiki.openssl.org/index.php/EVP_Key_Agreement

get the share key

I assume you mean "get a shared secret using ECDH".

by raw private key

First you will need to create an EVP_PKEY for your private key. Something like this (completely untested - and with error checking omitted for brevity):
EC_KEY *eckey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
const EC_GROUP *group = EC_KEY_get0_group(eckey);
EC_POINT *pubpt = EC_POINT_new(group);
EVP_PKEY *privpkey = EVP_PKEY_new();

EC_KEY_oct2priv(eckey, privatekey, sizeof(privatekey));
EC_POINT_mul(group, pubpt, EC_KEY_get0_private_key(eckey), NULL, NULL, NULL);
EC_KEY_set_public_key(eckey, pubpt);
EVP_PKEY_assign_EC_KEY(privpkey, eckey);

peer raw public key

What exactly this means is unclear. Probably something like this:
EC_KEY *pubeckey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
EVP_PKEY *pubpkey = EVP_PKEY_new();

EC_KEY_oct2key(pubeckey, publickey, sizeof(publickey));
EVP_PKEY_assign_EC_KEY(pubpkey, eckey);

To the derive a shared secret you need to use EVP_PKEY_derive. E.g. see code here:
https://wiki.openssl.org/index.php/EVP_Key_Agreement

Thank you very much, I will try it later.

@mattcaswell could I ask for this specific NID_X9_62_prime256v1, how can we use EVP_PKEY_new_raw_public_key() if the I as
a TLS server received the TLS client's public key in the keyExchange... Is it supported to get the EVP_PKEY from rawdata of such NID ?
is there any other way? otherwise how we can derive the shared secret if we can't derive the public key (EVP_PKEY) ?
Thanks!


Feature Request: Ability for executing functions before vm data change

As we know, $watch can be used to detect value change, but it is triggered after value changed.
Is that possible to provide some APIs for executing functions before data change?
For example:
var prependCustomFunction=function(value){
	console.log('A.value will be changed to '+value);
};
var apppendCustomFunction=function(value){
	console.log('A.value was changed to '+value);
};
var A={
	_value:100,
	set value(value){
                //do something before  data change, is this possible?
		prependCustomFunction(value);
		this._value=value;
                 //do something after data change, this can be executed in $watch
		appendCustomFunction(value);
	}
};

http://vuejs.org/api/#vm-watch
U can use option immediate for watch for this case.
пн, 21 марта 2016 г., 9:13 littlstonee<EMAIL_ADDRESS>
As we know, $watch can be used to detect value change, but it is
triggered after value changed.
Is that possible to provide some APIs for executing functions before data
change?
For example:
var prependCustomFunction=function(value){
console.log('A.value will be changed to '+value);
};
var apppendCustomFunction=function(value){
console.log('A.value was changed to '+value);
};
var A={
_value:100,
set value(value){
//do something before  data change, is this possible?
prependCustomFunction(value);
this._value=value;
//do something after data change, this can be executed in $watch
appendCustomFunction(value);
}
};
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/vuejs/vue/issues/2523

@AStaroverov
Thanks for your replay!
Option immediate can be used to trigger $watch callback immediately after callback registered, but I need trigger a function every time before watch expression change, so may be this option can not help me.
Maybe still other ways to modify vm data setter?
Thanks again.

@littlstonee Hello!
You could use something like mirrored values, like this: https://jsfiddle.net/kk1rxm73/12/
By the way, please note you could as for tips in Forum if you're not sure about feature capability. It's probably better to write there first and if there is not workaround, to post an issue with a feature request :)

Could 'computed' values,  with a set option resolve this issue for you? Could you post a small example of the code surrounding your needs so we can try to evaluate your use case.

@fullfs
Thanks for your tip!
I  redesigned my component based on your mirrored solution, and it works well now.
And also, thanks for your kindly note.


Draft: Replace chrono with time

As described in https://github.com/rustyhorde/vergen/issues/94, the chrono crate seems unmaintained and has a public and unfixed advisory
This change tries to replace chrono with the current version of the time crate.
All tests except the ones using the local timezone are still passing. The current failures seem to relate to https://github.com/time-rs/time/issues/427 and need to be investigated further. Maybe the function signatures need to change to return Result, so possible errors can be handled.

Regarding the local time issue, I think we should move that behind a feature flag.   If a user requires local time output, we need to use the unsound_local_offset feature flag of the time crate.

Closing in lieu of https://github.com/rustyhorde/vergen/pull/110 where I've added the local_offset feature flag.


Test custom object method call precedence

According to issue #638, it would be better to add coverage to the method call precedence of custom object attribute building.

Hey @sullyvannunes, thanks so much for the PR. 🙏
I left some feedback on one of the tests.


Upgrade to Pydantic 2.x

The new release of pydantic introduced some breaking changes, especially for py3.11.
E.g. ImportError: cannot import name 'BaseSettings' from 'pydantic.env_settings'.

Closing, until... bugs.


[elasticsearch-curator] Add extra volumes & mounts

Similar to the fluentd-elasticsearch chart where one
would like to mount extra volumes for things like TLS,
this commit adds the same thing for this chart.
Example Use Case: Need to mount certificate authority
file so the curator can talk to a elasticsearch cluster
where HTTPS is enforced
CC the maintainers: @gianrubio @tmestdagh
Special notes for your reviewer:
Reference the similar logic in the fluentd-elasticsearch chart: https://github.com/kubernetes/charts/tree/master/incubator/fluentd-elasticsearch

/ok-to-test
/lgtm


AWS Cloud Map manager Route53 zones

Describe the bug:
I want a cert-manager provision wildcard certificate for the specific domain name using the DNS01 provider. This domain is managed on Route53 via the AWS Cloud Map. This is mostly due to hitting Route53 rate limits due to external-dns, and the following issue:

https://github.com/kubernetes-sigs/external-dns/issues/1293
https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/aws-sd.md

Expected behaviour:

Certificate is successfully provisioned

Steps to reproduce the bug:

aws servicediscovery create-public-dns-namespace --name "example.com"
Create certificate CRD for test.example.com
Watch it being stuck in a pending state. This is the log from the cert-manager controller:

E0203 12:51:13.305107 1 sync.go:110] cert-manager/controller/orders "msg"="Failed to determine the list of Challenge resources needed for the Order" "error"="no configured challenge solvers can be used for this challenge" "resource_kind"="Order" "resource_name"="test-crt-nnhwt-2384255854" "resource_namespace"="grid-system" "resource_version"="v1"

Anything else we need to know?:
Environment details::

Kubernetes version: 1.18
Cloud-provider/provisioner: AWS
cert-manager version: v1.1.0
Install method: helm

/kind bug

Hi @nmiculinic,
Would you be able to share the Issuer (or ClusterIssuer) and Certificate config?

apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: test-crt
  namespace: grid-system
spec:
  dnsNames:
  - aaa.test.example.com
  issuerRef:
    group: cert-manager.io
    kind: Issuer
    name: letsencrypt-prod
  secretName: test-secret

spec:
  acme:
    email<EMAIL_ADDRESS>    preferredChain: ""
    privateKeySecretRef:
      name: letsencrypt-prod
    server: https://acme-v02.api.letsencrypt.org/directory
    solvers:
    - dns01:
        route53:
          region: us-east-1
          secretAccessKeySecretRef:
            name: ""
      selector:
        dnsZones:
        - test.example.com
status:
  acme:
    lastRegisteredEmail<EMAIL_ADDRESS>    uri: https://acme-v02.api.letsencrypt.org/acme/acct/110802380
  conditions:
  - lastTransitionTime: "2021-01-26T15:05:08Z"
    message: The ACME account was registered with the ACME server
    reason: ACMEAccountRegistered
    status: "True"
    type: Ready

Wow, so dumb, initially I had a more restrictive dnsZones selector. Anyhow after fixing this I get the following error:
Now I get the following error:
E0204 06:17:19.461053       1 controller.go:158] cert-manager/controller/challenges "msg"="re-queuing item due to error processing" "error"="Failed to change Route 53 record set: AccessDenied: The resource hostedzone/Z00476572O5YB8C56J2AC can only be managed through AWS Cloud Map (arn:aws:servicediscovery:us-east-1:302180240179:namespace/ns-q24clqxgpwsjimuc)\n\tstatus code: 403, request id: ae18199b-9ed8-49e7-961a-f6f63bc00409" "key"="grid-system/test-crt-nnhwt-2384255854-2980230501"

After reading a little bit about AWS Cloud Map, I think this is happening because if a zone is managed by AWS Cloud Map it cannot be modified directly.
For the DNS01 challenge, cert-manager needs to be able to create a record in that zone, so I think it might not work.

I also switched to Cloud Map and it works well, however I ran into an issue where DNS validation for Cert Manager is not possible, so I had to switch back to Route53.

This is from the discussion you linked in the issue description above

I think we need to understand whether it is the case that cert-manager cannot be made to work with AWS Cloud Map - or maybe there is some way around it, with zone delegation or something like that? - and update our docs accordingly.

@nmiculinic you could get this working by using a second zone (not managed by AWS Cloud Map) and allowing cert-manager to follow CNAME records- see an example here
Let us know if this works!

I'm not sure can you create a CNAME entry in AWS Cloud Map. I couldn't do it manually, though I may be doing something wrong.

I saw in their docs that you can create a service and specify the DNS record type - one of the options there is CNAME. I haven't actually tried myself yet.
You probably won't be able to add the record to the zone manually because AWS Cloud Map expects to manage that zone.

Yeah, I've tried to go to web UI and add CNAME type service, though I had issues getting it to serve me CNAME entry. Maybe I'm doing something wrong, though I didn't have much time to debug it.

You've got to register an instance after creating the service as well.
I created a service with name _acme-challenge and with record type CNAME in the UI and then ran something like
aws servicediscovery register-instance \
 --service-id <ID-OF-THE-SERVICE> \
 --instance-id <SOME-NAME> \
 --attributes=AWS_INSTANCE_CNAME=_acme-challenge.<DNS-NAME-OF-THE-UNPRIVILEGED-ZONE>

after that I had an actual CNAME record in the AWS Cloud Map managed zone.


[FEATURE] Including MAE pretrained weights for ViT

Hi, MAE is a popular self-supervised training method, is it possible for TIMM Including MAE pretrained weights?

@LuoXin-s have you found them useful? I found them much more difficult to fine-tune to good results than any of the CLIP based pretrained weights or any of the BEiT ones....  and not as strong seemingly for retrieval either

vit*.mae models are added


Move "test" directory to "pkg/testutils"

Having top level directories called "test" and "tests" is
rather confusing. For even more confusion the go files in
the "test" directory declare they are in a go package called
"rest". Rename the "test" directory to "pkg/testutils" and
the go package to "testutils".
Signed-off-by: Daniel P. Berrange<EMAIL_ADDRESS>

There should at least also be references in the functional test folder  ... Could you have a closer look again?

There's no sign of anything in the tests/ directory using this module..

Ah ok, travis just detected formatting issues ...


Fixing image for @arschles's picture

This is intended to fix @arschles's picture on https://developer.microsoft.com/en-us/advocates/. This switches it to use the version he has on github, which is square. Using a non-square photo on the advocates site looks strange:

We probably want 👍 from @arschles.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

advocates/media/profiles/aaron-schlesinger.png
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Looks good to me, thanks for cleaning this up @bridgetkromhout !


Changing the color of submit button when hovered

New Mockup
Please check assets/css/global.css, design-assets folder images, and figma files for updated style guides. Any new pull request should use the updated color, spacing, and sizing variables.
No Bootstrap or jQuery
Please refrain from adding Bootstrap or jQuery to the site. These pr's will be closed. They overwrite global styles. Vanilla CSS and JS is way better now anyways 😊
New Task:
What is the task

Changing the color of submit button when hovered
Changing the social media buttons hover effects to make text bold

Who is the task for?

[x] I created this task for me to complete, I will create a PR soon.
[ ] I created this task for someone else to claim.
[ ] I think this is a task that multiple people can do

Confirm all of the following:

[x] I have looked at all the issues currently available and this does not exist or overlap with another ticket

⚠ PLEASE ONLY SUBMIT A PR FOR THIS TASK IF THIS TASK WAS AVAILABLE FOR YOU TO CLAIM

Style did not align with mockup. Here is the correct styling:

Also, css variables given in global.css need to be used when changing colors.

Also, this is a duplicate of #470, closing this issue, please comment on the other issue.