Platformatic DB: FastifyDeprecation warning when starting the server

When running npx platformatic db start the following warning message is output:
(node:26575) [FSTDEP014] FastifyDeprecation: You are trying to set/access the default route. This property is deprecated. Please, use setNotFoundHandler if you want to custom a 404 handler or the wildcard (*) to match all routes.
(Use `node --trace-warnings ...` to show where the warning was created)

Platformatic CLI version: 0.12.1

I'm already working on it.
This is due to https://github.com/fastify/fastify-websocket/issues/236 and it's fixed by https://github.com/fastify/fastify-websocket/pull/238.

@fastify/websocket v7.1.2 was released with a fix.


Prototype using inner blocks as carousel slides

A messy attempt to use inner blocks inside the Carousel block.
The largest challenge is that BentoBaseCarousel expects its immediate children to be the slides:
https://github.com/ampproject/amphtml/blob/5d52f0fcd377dd9049e8be5c58bcb6a5b0b51646/src/bento/components/bento-base-carousel/1.0/component.js#L104-L108
However, rendering Gutenberg inner blocks requires a massive amount of wrappers which means we don't get to work with the list of specific child block components directly:

I went ahead and hacked the InnerBlocks core Gutenberg component (on my local working copy) to conditionally wrap the blocks in BentoBaseCarousel and it somewhat works:

That's it for today. Tomorrow's a new day, let's see where it takes us.

That's a wrong target repository, closing this PR in favor of https://github.com/Bento-WordPress/gutenberg-bento/pull/1


Extension fails to start in VScode latest (1.62.2)

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

Steps to Reproduce:

Install & start Ungit extension vscode-ungit
Extension fails to start (loading prompt never finishes)

Same extension is working on previous release of vscode

I have an issue logged on the extension project https://github.com/Hirse/vscode-ungit/issues/96 but it appears to be related to the latest updates to VScode

Maybe related to #137183 which is scheduled to be fixed in upcoming recovery release (1.62.3)

Issue remains in latest update (v1.62.3), extension fails to start....

I have looked into this and it looks like for some reason the unit server fails to start.
I have debugged the extension and it looks like the ungit process exits with this message.
I would suggest that you work with the extension author and see if you are able to track down the root cause of the problem. In the meantime you can manually start the ungit server before invoking the Open ungit command from the command palette.

I have looked into this and it looks like for some reason the unit server fails to start. I have debugged the extension and it looks like the ungit process exits with this message. I would suggest that you work with the extension author and see if you are able to track down the root cause of the problem. In the meantime you can manually start the ungit server before invoking the Open ungit command from the command palette.

Logically, when the extension version has not changed and still works with VScode v1.61.2 but fails on v1.62.2+ then the first place to look at any issue is with changes.
The changes have occurred within the VScode - as to what those changes are and why those affect the extension starting up are unknown.
Has there been a change to how extensions are handled following v1.61.2?


Bug - Examples modal still not working in IE

Description
In IE, clicking "Need help? See example" brings up the dark translucent overlay, but the modal doesn't appear and it can't be escaped. May be related to a clone exception, according to a console error.
It works fine in Chrome.
This was observed on Step 3 of the application.

Josh has fixed this issue in clone-framework.


Lost default route when deployment cilium on MACCHIATObin

Bug report
General Information

Cilium version v1.6.4
Kernel version  4.14.22-armada-18.09.3

How to reproduce the issue
Disable CONFIG_IP_MULTIPLE_TABLES kernel module
We have ported Cilium v1.6.4 on Arm server.
Under this premise, try to deploying cilium on MACCHIATObin, which is an Arm-based development board.
Most of the problems encountered in this process are related to the kernel configuration.
One of the most serious problems is that when the policy routing kernel module is not enabled,following command
'ip route replace table 2005 default via 192.168.0.XX'
will cause the default route to be overwritten and
the external network cannot be accessed.
so it is necessary to check the kernel configuration about policy routing.

Hello @Jianlin-lv, I'm aware of one kernel issue that might affect deployment on arm64, that is csum_diff() handling. Will have a kernel fix early next week for it.
In your case, is the agent coming up, do you have a full agent log?

cilium-debug-thunderx2-master-1_11-OK.log
hi borkmann, attached is the log of cilium(master version) running on thunderx2;
I also deployed Nginx to verify and test k8s cluster that composed by three Arm nodes a few days ago.

Would you explain the issue of csum_diff in more detail?


Run Multiple Subjects in a Loop and fmriprep Picked the Wrong Subject's Jason File

What happened?
Dear Developer,
I've tested one subject in our HPC and very worked out. But while I have nearly 100 subjects to run, I used a bash script to loop over the subjects, so that each time it's running just 1 subject. However, while running subject 103, it picked up json file for 106, and all the other subjects picked up 106 as well. I removed the loop and ran 103 as tested before, it still picked up json file for 106. Untill I removed all raw data of 106, 103 started to run correctly. It seems that my singularity --cleanenv is not working as it repeated where it left. Is there any other way to solve this? Thank you so much!
What command did you use?

Singularity
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
start
running sub:103
Traceback (most recent call last):
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/bids/layout/index.py", line 303, in load_json
    return json.load(handle)
  File "/opt/conda/envs/fmriprep/lib/python3.10/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/opt/conda/envs/fmriprep/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/opt/conda/envs/fmriprep/lib/python3.10/json/decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 15 (char 14)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/conda/envs/fmriprep/bin/fmriprep", line 8, in <module>
    sys.exit(main())
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/cli/run.py", line 40, in main
    parse_args()
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/cli/parser.py", line 802, in parse_args
    config.from_dict({})
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/config.py", line 691, in from_dict
    execution.load(settings, init=initialize('execution'), ignore=ignore)
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/config.py", line 235, in load
    cls.init()
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/config.py", line 485, in init
    cls._layout = BIDSLayout(
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/bids/layout/layout.py", line 177, in __init__
    _indexer(self)
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/bids/layout/index.py", line 154, in __call__
    self._index_metadata()
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/bids/layout/index.py", line 415, in _index_metadata
    file_md.update(pl())
  File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/bids/layout/index.py", line 305, in load_json
    raise OSError(
OSError: Error occurred while trying to decode JSON from file /home/fmri/data_BF/BIDS/sub-106/fmap/sub-106_task-rest_dir-AP_epi.json

Additional information / screenshots
No response

woo...my bad, it is correct that this file was missing things, thank you so much for your prompt reply!


Install only one of rvm or rbenv for managing ruby versions

Is there any benefit to installing both rvm and rbenv?

Unfortunately, if you load rbenv or place its shims earlier in the PATH than rvm, then some truly weird situations arise.  E.g: which gem reports the rbenv shim, but running gem uses the rvm installation.  And rvm can "infect" the rbenv installation with its own gem plugins, and other similar clashes.  This creates an unstable system with arcane error messages that can be incredibly difficult and frustrating to debug.
Even worse, the rvm documentation for how to uninstall rvm simply doesn't work inside devcontainers that use the ruby feature.  After the rvm files have been removed and various /etc files have been edited, the rbenv installation might still be broken because the devcontainer-feature.json sets the GEM_HOME and GEM_PATH environment variables to rvm directories.
In situations (such as GitHub Codespaces) where the default image has both rvm and rbenv installed, this can run into trouble with user's dotfiles, which are often configured to check for rbenv and prefer it over rvm.
Workarounds
Unfortunately, setting GEM_HOME and GEM_PATH to empty strings is not the same as unsetting them.  And it isn't possible to simply unset Dockerfile ENV vars.  (Is it possible to unset devcontainer.json env vars?)
We can manually override those variables to something else in our own devcontainer.json files, but that still effectively breaks rbenv:  rbenv uses shims to load the correct versions of ruby or gem, and those installed versions provide their own sensible dynamic defaults.  This is especially useful when switching between branches with different ruby versions, when testing multiple ruby versions with a shell script that sets RBENV_VERSION, when using multiple repositories, or when multiple directories in a single repository have different .ruby-version files.  Setting GEM_HOME and GEM_PATH to a static path can break all of these scenarios.
I often run into this problem on public GitHub Codespaces.  My most common workaround is to simply work locally and not use a devcontainer or the Codespace.  If I'm just doing a quick fix, I'll remove rbenv from my dotfiles.  But when I'm using the devenv for a little bit longer, I'll workaround by first sudo rming all of the rvm dirs and then call unset GEM_HOME; unset GEM_PATH from my shell prompt.
Various proposals
The simplest approach is probably to simply not install rbenv inside the ruby feature.  It's already broken, so removing it would stop wasting people's time with long, confusing, disappointing debugging sessions.
However, both anecdotally and based on github stars and forks, rbenv is more popular than rvm.  It is also simpler and easier to debug.  Personally, I'd rather see rbenv promoted as the default.  Users should still be able to install rvm and I think it should still work, more or less.  rvm breaks rbenv but rbenv doesn't break rvm.  However this might not be considered backward compatible, and probably requires a major version bump.
IMO, the most important thing would be to simply remove the following lines from devcontainer-feature.json: https://github.com/devcontainers/features/blob/1869e5931cfe0517f75d58cb70863a6b4874c487/src/ruby/devcontainer-feature.json#L29-L30
Then, if a user wants to disable rvm, all they would need to do is delete or comment out /etc/profile.d/rvm.sh.  And I think that a manually installed rvm could still work, so long as everything is able to load the environment from /etc/profile.d/rvm.sh.
There might be some reason that rvm is strongly preferred, e.g: installations are faster because it downloads binaries and bit-twiddles them, rather than compile them.  In that case, it might be reasonable to use the "mini rvm" integration that is available for chruby: https://rvm.io/workflow/chruby.  This uses mrvm to install ruby versions and chruby to switch.  I believe this mrvm approach could also be made to work with rbenv, although I've never attempted this myself.
If any of these proposals sound like they might be acceptable, or if you have another better alternative in mind, I can create a draft PR for you to review.

Hi 👋
Thanks for writing a detailed issue, and providing proposals and workarounds. We greatly appreciate it! ✨
What do you think of a solution as mentioned in https://github.com/devcontainers/images/issues/572#issuecomment-1563348157 ? 👇

We should update the Ruby Feature, and add two new Feature options which controls rvm and rbenv installation. (eg: installRVM, installRbenv)

We can decide which one to install by default, or if we should disable both. In any case, I understand that we'd need to bump up the version for the Ruby Feature (which I think is alright given the confusions it would avoid)

I'm commenting here, since this is the repo that appears to accept pull requests. This is also related to https://github.com/microsoft/vscode-dev-containers/issues/704 and https://github.com/devcontainers/images/issues/572.
Although this isn't currently causing me any issues, I do have some time and would like to try to contribute some improvements to the Ruby devcontainer ecosystem, but I'm not sure if there's any kind of agreement on what the solution would be. Installing two Ruby version managers is a problem, and there's already a system Ruby installed.
From what I see, the best solution would be to add a new option for version manager selection to the Ruby feature. Using a string type and an enum of ["none", "rvm", "rbenv"] would cover the current options and be extensible if someone wanted to contribute, for example, chruby or asdf in the future. The default option would be "none" to not install any version manager and only rely on the installed system ruby version.
It's out-of-scope, but I've noticed some disparities between rvm and rbenv as well, such as rvm supporting the ability to specify a list of multiple ruby versions to install. I think the incremental improvement of separating out rvm and rbenv to allow for the three use cases (system ruby users, rvm users, and rbenv users) would be a good step to allow rvm users or rbenv users to implement additional enhancements for their specific version managers.
Please let me know if this solution would be acceptable. I'd like to make sure that the approach would be correct before spending time and effort on a PR, especially since I'm no longer blocked in terms of being able to use these devcontainers for my projects.

Thank you so much @ThomasOwens for being willing to contribute this change, we definitely appreciate it and we are more than happy to accept the PR.
I agree that we should decide a path before you jump on to the code changes. Let me do an analysis on the existing Ruby Feature, and discuss your proposed approach with other devcontainer maintainers. I'll respond to this issue with an update soon on the next steps. Thank you for your patience.

We love the overall idea proposed in this issue! Thank you ✨
For the question of which ruby version manager should be installed by default, started a discussion in the #devcontainers-community slack channel. We are hoping to gather feedback from the community before we finalize it. Also, opened https://github.com/devcontainers/features/issues/757


the issue of quantification

face_detection_yunet_2023mar_int8.onnx
I would like to ask if this onnx is statically quantified to int8, and is it exported using the pth file of pytorch?

The original model (fp32) is trained on MXNet, then it was converted to ONNX, and quantized with https://github.com/opencv/opencv_zoo/tree/main/tools/quantize.


Upgrade to latest HLS.JS

Be sure to search for your issue before opening a new one.
Current Behavior
ReactPlayer currently defaults to version 0.13.1 of the hls.js library, which is now over a year old. Version 1.0 (now 1.0.1) was released fairly recently, so it's probably a good time to upgrade ReactPlayer's default version too.
Additionally, as the hls.js API surface is likely to drift over time, it's probably good to make sure everything works properly with the most recent version. I am currently using 1.0 (through specifying hlsVersion) and haven't encountered any major issues, though.
Expected Behavior
ReactPlayer uses the latest version of hls.js by default.

const script = document.createElement('script');
script.src = '/scripts/dash.all.min.js';
script.async = true;
document.body.appendChild(script);

Above is what I did  (in my componentDidMount) to localize my Dash dependency -- but you can use it to specify your hls version as well. Below are the notes from the documentation:

hlsVersion: Override the hls.js version loaded from jsdelivr, default: 0.13.1

dashVersion: Override the dash.js version loaded from cdnjs, default: 2.9.2

flvVersion: Override the flv.js version loaded from jsdelivr, default: 1.5.0

I agree that by default it should ideally include the latest (or tested stable) version and allow backward pinning for compatibility (legacy stuff).

closing as outdated


Create read APIs to populate the merchant frontend

We've identified three main APIs that we can have to populate the merchant portal.
/merchant-info
/transactions
/refunds
We should expose each route and do the following

Validate the JWT included in the header
Identify the merchant
Make the relevant database queries ( we can wait on this for now til the database tables get populated )
format the data in a flat way that can easily be consumed by the merchant portal

The fields from the response should be as follows:
/merchant-info

name: string
receivingWallet: string | null
isVerified: bool
acceptedToS: bool
hasClosedSetUp: bool

/transactions?page=

shopifyId: string
date: string
status: string
amount: number
tx: string
tx_url: string

/refunds?page=

shopifyId: string
date: string
status: string
refundAmount: string
totalAmount: string
txUrl: string | null
isOpen: bool

We should also include pagination query parameter as well as a total count at the top level

https://github.com/solana-labs/solana-payments-app/pull/18
So far created the api routes, validating JWT and merchant, querying data, and created appropriate prisma models & api handlers for the new routes.
Will work on pagination soon, guessing it should query the latest datapts


Add the possibility to execute some script after some commands

If we could execute a script after a command we could ,for exemple, have it switch java globally or have stuff like Auto-env do stuff.

Sure, can you give me an example of the kinds of commands you'd do?
It might be that a wrapper script that runs your commands and your version switch for you is the way to go but I'd like to understand your workflow.

Closing this issue as the ask is unclear


Update readtheDocs for QCAlign

Add support info

I guess Sharon knows what to be added and where :)

Done. 17.02.23


SMOFacade:Call does not correctly handle clusters

Describe the bug
I was playing around with the Facade methods, and tried to create a simple test where I would add two numbers in a cluster together and return their result. However, when called by the facade, we get an error.

This is how I was calling the method:

(where I cleared the errors to prevent them from influencing downstream behavior/popups.)
Inside the Call.vi, the error originates in the Prep Inputs:

Taking a look at the functionality inside the Prep Inputs, we can see that the input data type is an array of size two, with each element being a doubles, while the data is supposed to be a variant containing two doubles:

This actually leads me to believe that cause of the error originates in MatchInputs.vi: (screenshot is taken in Call.vi)

And just incase you were curious, this is what Add.vi looks like:

where the SMO will add the results and return them using a notifier created in the Add.vi method.
To Reproduce
Steps to reproduce the behavior:
I attached a sample project with all of the VIs.
Facade.zip
Open the project and in the FacadeTest.lvclass you can run ExampleError.vi to see the error using the facade, or to verify that the method works itself you can use the TestLauncher.vi, which should not produce an error.
Expected behavior
I expect to get a variant containing a single double of the value 3. I did a sample setup in the test launcher to verify that this method works, so the facade should provide the same outputs as the method in the class.
Desktop (please complete the following information):

OS: Windows 10 Education
Version: LabVIEW 2020

Let me know if you need any more details!
Best,
Joe

I don't have the code in front of me, but I think the "Matched Input" node could be a little smarter indeed. It seems to consider the cluster as a way to wrap up multiple terminal types into a single cluster...
To test this hypothesis, can you simply add a "build array" node before you the values in? If I'm correct, the inputs might match. This could provide a workaround until the node is fixed.

Thanks for your quick reply!
Unfortunately, that doesn't seem to fix the issue...

This is what the values in and out of Matchinputs.vi look like now:

However, bundle instead of build array did the trick:

and result:

ok, I've taken a look inside the MatchInputs and there are some use cases that are not correct.
I've made it work by inserting a "Array elements to Cluster" in the path:

Use this node and insert it in your MatchInputs method as a workaround:
Variant_BuildClusterFromElementArray_LabVIEWOpenSource.zip

That made it work!


Load SSRS reports in .NET Core

I have a requirement that needs to load a SSRS report in .NET Core web application. It was working by using the web reference in .NET Framework. But this option is not there in .NET Core. Please advise what other options I have.
Thank you very much!

See #1528.

Thank you @MaximRouiller


Material-UI button component shows click/tap animation twice on iPhone 5, 5s, 6 on iOS8

Not a major issue, but the animation gets shown twice on all of the iPhones I've tested on.
iPhone 5, 5s and 6, all running iOS8

same for me, and for the ripple show up on any touch event, by right should be only tap event

I experience this on iOS8 as well.

I haven't seen this issue when I posted #542, which is essentially a duplicate of this one. It is fixed in #543, so this issue can be closed.

@pomerantsev I think it is not pushed to npm yet, how can I use the latest version? is that now the ripple will be response to "tap" only? previously the ripple response to any touch event, even when you are scrolling

@huchenme, looks like I never actually tested the patch on iOS. The new patch should fix the issue.
And no, the "ripple on scroll" behavior hasn't changed.


BGG Autofilling Working on Create Pages

Corresponding issue: #97
Description
In this pull request, the code in this wiki page was integrated into the code base. This involved added views to search BGG games by ID or EXACT NAME. Because a lot of extra code was added to the views file, more concrete sections were created using comments.
An AJAX script was added to the games form page to allow for searching and autofilling. Cu
https://github.com/uchicago-cs/chigame/assets/69015620/8a5760c4-bad4-4040-bd98-05603a3eddc8
Future Work

Improve UI
Add in autofilling for mechanics and categories
Possibly add autofilling to the edit page

I addressed the requested changes:

Add comments about the purpose of 'is_create'
Add comments about find_all and .//item
Created a helper function to make the fetching of attributes from the API request much more readable.
Fleshed the comment about the purpose of {% for field in form %}

BGG does offer partial search however it doesn't sort the results by relevance.
Hence, it was easier for the first pass to just do exact searching. All of these games have Three as one of their exact alternate names. See Tic Tac Toe as example.
https://boardgamegeek.com/xmlapi2/thing?id=11901&stats=1

Closing Comments
This PR introduces a feature for auto-filling game details in the game creation process. Now, users can look up games on Board Game Geek (API) by name. The search results are displayed as a list, and selecting a game from this list automatically fills in the game creation form with data from the BGG API.
Relevant Documentation

General information on the BoardGameGeek API integration: BoardGameGeek API Documentation
Creating fixtures using the BoardGameGeek API: Fixture Creation Documentation

Current Limitations

XML character parsing issues (this has been solved in PR #287)
Auto-filling of categories and mechanics is not yet functional.

Issue Score: Excellent
Comments:
This is one of the best PR's and issue work I have seen.
@rakrusch phenomenal review. Even though you approved it your voicing concerns, questions, and praise for your peer's work.
@frowenz Stupidly good job with the code and documentation on this. Amazing, detailed, and well broken down closing comment; succint and direct answers to questions and changes requested; video evidence provided for a UX related feature; the summary describing what was done as well as immediately flagging future work.
Magnificent!
Both of you should be very proud of the work you have done in this PR, this team, and this quarter.
Thank you both for your time and work.
Keep moving forward!


Changes to the dashboards to tune them to work correctly

Wow, this seems to be a quite dramatic change. Could you elaborate on why this was needed? In or dev setup, these dashboards are working fine even without these changes.
Also, the kkp-kubernetes.yaml dashboards are just a copy of KKP upstream dashboards from here with few modifications made by this script. In this case, if this change was really needed, shouldn't the change be made also in https://github.com/kubermatic/kubermatic/tree/master/charts/monitoring/grafana/dashboards/kubernetes ?


Add /loc rename

Syntax: /loc rename <current name> <new name>
It should autosuggest current names.

small problem. since allowing spaces there is no way to differentiate between two different locations and 1 location.

the solution is to remove spaces and just require people to put dashes in if they want spaces

Yeah, both parameters should require underscores.

okay it will be two pr's then

There’s no need for two PRs? They’re still part of the subcommand.

I figured out a way around it


AuditLogs are logging binary data and getting huge

Describe the bug
My audit logs have begun logging binary data under the C section for request body.
This is causing my log files to grow upwards of 5GB each even though they rotate once daily.
I am running the following system:

ModSecurity for Apache/2.9.2 (http://www.modsecurity.org/) configured. [-]
ModSecurity: APR compiled version="1.6.2"; loaded version="1.6.3"
ModSecurity: Loaded APR do not match with compiled!
ModSecurity: PCRE compiled version="8.39 "; loaded version="8.39 2016-06-14"
ModSecurity: LUA compiled version="Lua 5.1"
ModSecurity: YAJL compiled version="2.1.0"
ModSecurity: LIBXML compiled version="2.9.4"

I have numerous websites that are using ModSecurity through Apache but this only occurs with my installation of Nextcloud and only when very large video files (500MB and up) are uploaded from the Nextcloud app interface on my phone.
In my modsecurity.conf file I have the following set:
SecAuditLogParts ABDEFHIJZ
Removing the I fixes the issue for me so I am guessing that somehow modsecurity isn't recognizing that these particular body requests are a file upload of binary data. Maybe because the data is sent in chunks. I don't know.
Logs and dumps
Output of:

DebugLogs (level 9)
AuditLogs
Error logs
If there is a crash, the core dump file.

Notice: Be carefully to not leak any confidential information.
To Reproduce
Steps to reproduce the behavior:
A curl command line that mimics the original request and reproduces the problem. Or a ModSecurity v3 test case.
[e.g: curl "modsec-full/ca/..\..\..\..\..\..\/\etc/\passwd" or issue-394.json]
Expected behavior
A clear and concise description of what you expected to happen.
Server (please complete the following information):

ModSecurity version (and connector): libapache2-mod-security2              2.9.2-1
WebServer: Apache 2.4.29
OS (and distro): Ubuntu 18.04.4

Rule Set (please complete the following information):
OWASP ModSecurity Core Rule Set ver.3.2.0
Additional context
Add any other context about the problem here.

@zimmerle I do have mod_deflate enabled in Apache if that is what you mean. How do I make sure ModSecurity runs before it? I'll look into upgrading my version. I just installed the package version that is in the Ubuntu 18.04 repo.

Some additional info:
I now have the latest version of 2.9.3 installed from the git repo.
Everything is running fine with no errors until I attempt to upload a file over nextcloud. Doesn't matter if it is from the computer or the phone client. This is done through an apache request PUT /remote.php/dav/files/user/directory/file HTTP/1.1
Audit Log shows Content-Type: application/octet-stream
For some reason modsecurity is interpreting the body --C-- of the message as binary data and it fills the Audit Log with that data even with just SecAuditLogParts ABDEFHIJZ Using "I" Instead of "C"
Might there be a problem in the default modsecurity.conf with one of the lines for matching XML or JSON in the body parser?
SecRule REQUEST_HEADERS:Content-Type "(?:application(?:/soap\+|/)|text/)xml" \      "id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML"
SecRule REQUEST_HEADERS:Content-Type "application/json" \      "id:'200001',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=JSON"

I've managed to fix this so it no longer logs any "C" or "I" block info by adding the following to my modsecurity.conf
No longer getting log files of the gigabyte order!
SecRule REQUEST_HEADERS:Content-Type "application/octet-stream" \
     "id:'4200001',phase:5,t:none,pass,nolog,ctl:auditLogParts=ABDEFHJZ"

Does anyone know if there are any problems with doing this? This is the first SecRule I have attempted.

The fix above solves my log size issue but does not solve what seems to be the underlying problem of modsecurity treating Nextcloud file uploads as a regular request body. Each request triggers

Message: Request body no files data length is larger than the configured limit (131072).

I would assume that the SecRequestBodyLimit would apply since these are uploads but increasing that value has no effect. If I increase the SecRequestBodyNoFilesLimit to the size of my largest uploads "6GB" then the error message goes away and as expected the server starts swapping and having low ram problems.
Is there a way to get modsecurity to recognize these as file uploads?

OK. I totally missed that there are already Nextcloud Exclusion Rules in owasp-modsecurity-crs.
https://github.com/SpiderLabs/owasp-modsecurity-crs/blob/v3.3/dev/rules/REQUEST-903.9003-NEXTCLOUD-EXCLUSION-RULES.conf
I'm going to try enabling those. That will probably fix all of my problems.
I'll report back if that solves the issue.

The rules didn't help. I would rather not have to turn off SecRequestBodyAccess for those requests but that is the only thing I have come up with.

The rules didn't help. I would rather not have to turn off SecRequestBodyAccess for those requests but that is the only thing I have come up with.

Can confirm, I have the same issue. Can't upload files to Nextcloud unless I increase the SecRequestBodyLimit. However, I've read that this has a non-configurable upper limit of 1GB. Also have the Nextcloud rules, but no difference. My modsec_audit.log isn't very big though, so maybe I just don't use my Nextcloud as much as you. (13MB)


[stdlib] Remove #warning in Random.cpp (_WIN32)

@compnerd Have you managed to test swift_stdlib_random on Windows?
Please merge this pull request, if you think the #warning isn't needed.

@benrimmington no, I don't think that we have tests for this yet which is why I haven't removed the warning yet.

swift_stdlib_random is used in SystemRandomNumberGenerator._fill(bytes:), which has a validation-test.
Should the _fill(bytes:) customization point be removed in Swift 5? It doesn't appear to be used elsewhere (since #17604).
Could the validation-test call swift_stdlib_random (exported via SWIFT_RUNTIME_STDLIB_API) directly?
Cc: @mikeash, @Azoy

@benrimmington I have a ready implementation to formally introduce fillBytes(_:), but I haven't gotten around to writing the actual proposal. I'm not sure even if I had something ready by tomorrow that it'd go through review before Nov. 16 however. I've been very busy 😞

@Azoy Can your fillBytes(_:) proposal be reviewed for Swift 5.1 or later? It might be able to use the new DataProtocol.
Does your next(upperBound:) amendment need to be reviewed by next week?
Shall I remove _fill(bytes:) now, so that it isn't in the Swift 5.0 ABI?
Shall I also remove the _fill(bytes:) validation-test? Other tests are indirectly using swift_stdlib_random.

cc: @lorenty who might have some opinions on what we could do.

Oh, I haven't realized we aren't using _fill(bytes:) anymore. Removing it seems like a good idea indeed!
As long as we don't need it, It seems cleaner to add a de-underscored version later than trying to support both.

I submitted #20463 to remove it!


add simple client library for python, java, c#, javascript

I'll take python

i'll take javascript.

I'll take java tomorrow.


IsOwner and/or IsLocalPlayer Not Working as Expected

Describe the bug
I have a Host/client setup and am trying to make the in scene camera follow the local player with the following code on the default player prefab:
**IsOwner was also tried
public void Awake()
    {
        if (IsLocalPlayer)
        {
            PlayerCamera.Instance.FollowPlayer(this);
        }
    }

However, IsLocalPlayer isn't true for any player and IsOwner is true for remote client's player prefabs on the Host causing the wrong player to be followed.
To Reproduce
Steps to reproduce the behavior:

Create cinemachine camera
Place code on player to set camera follow target depending on IsOwner/IsLocalPlayer

Expected behavior
I expect IsLocalPlayer to be true for any player prefab a client is in control of.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

OS: Windows 10
Unity Version: 2020.2.1f1
MLAPI Version: 12.1.7
MLAPI Commit: Installed via in-engine version list.

Additional context
Add any other context about the problem here.

Use NetworkStart for all networking related setup code including checking for IsOwner or IsLocalPlayer. These values won't be set in Awake yet.

As a side note:
I like Douglas Barcelos SwitchCameras class.
With this approach, you can create a camera per player and then just switch to your player camera index when you want to view that player's view/perspective.   You can also make the each player camera a child of the player transform and just deal with how close or far you want the camera to be without having to actually update/move the camera (you might have to lerp your Y axis deltas to remove or add more bounce depending upon what kind of style you are trying to achieve).

@LukeStampfli Ah, I see!  It works! My apologies; I'll have to dig more into this repo before filing bugs. :)
Thank you for you help!


Disable cocoapods support until they update gem compatibility

resolves https://github.com/github/licensed/issues/609
The cocoapods-core dependency is incompatible with rails >= 7.0 and the source is being disabled until they update their gem dependencies to allow better compatibility across rails versions.
cc @LouisBoudreau :wave: FYI and apologies on this revert.  Given how new cocoapods support is vs how widespread rails is in ruby projects I'm opting to disable the source until the cocoapods maintainers update their gems to support rails >= 7.0.  I was hoping not to have to do this but I haven't gotten any response on my PR yet and am not sure if/when that change (or something like it) would be approved and released.

The licensed-ci GitHub Action has created a pull request containing license metadata updates based on the changes in this branch.
Please review the pull request for any additional changes required and merge when ready.

I totally understand, thank you for the notice.
Let's hope that someone on the cocoapods team merges the PR soon 🤞


Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

[ ] iOS
[x ] Android
[ ] UWP
[ ] .NET Standard

Feature Library

[ ] Core
[ ] BluetoothLE
[x ] Locations
[ ] HTTP Transfers
[ ] Notifications
[ ] Sensors

Version of Library
<IP_ADDRESS>4-beta
Version of OS(s) listed above with issue
Android 8
Steps to Reproduce

Enable Geofence in Startup class
Create a BackgroundJob
3.Try to Resolve IGeofenceManager

Expected Behavior
Should resolve to Singleton instance of IGeofenceManager
Actual Behavior
Application crashes
Stacktrace.txt

Please include proper details like the library version and a stack trace

Edited to include library version and stack trace

Please try to always be on the latest version during the beta period before filing issues.  The latest beta on nuget is <IP_ADDRESS>0-beta.  There were a bunch of issues fixed in 280.
Also, please provide as much detail as humanly possible instead of it having to be requested otherwise this becomes noise which doesn't help the purpose of the beta.  Your shiny startup and background job code would be helpful.  Using the geofencemanager in the background job sounds a bit off, so I need to make sure I understand what you're telling me.

Alright,
Here is what i am trying to achieve.
I have an application that needs to monitor more than the maximum 50(or 20 on IOS) geofences, I want to use a background job that tracks the users location to update the geofences to the closest 50 anytime the background job runs.
Here is my Shiny Startup code
public override void ConfigureServices(IServiceCollection services)
        {
            // custom logging
            Log.UseConsole();
            Log.UseDebug();
            // create your infrastructure
            services.AddSingleton<PABeacon.PASqliteConnection>();
            services.AddSingleton<CoreDelegateServices>();
            services.RegisterStartupTask<GlobalExceptionHandler>();
            services.AddSingleton<IUserDialogs, UserDialogs>();

            services.RegisterSettings<IAppSettings, AppSettings>("AppSettings");

            services.UseBeacons<BeaconDelegate>();

            services.UseGeofencing<GeoFenceDelegate>();
            services.UseNotifications();

            var geoFenceJob = new JobInfo
            {

                Identifier = "GeoFenceJob",
                Type = typeof(UpdateGeofencesJob),
                BatteryNotLow = true,
                DeviceCharging = false,
                RequiredInternetAccess = InternetAccess.Any,
                Repeat = true

            };

            services.RegisterJob(geoFenceJob);

            Services = services;
        }

and here is the relevant background job code (the constructor)
public UpdateGeofencesJob(CoreDelegateServices services)
        {
            this.services = services;

            this.notifications = ShinyHost.Resolve<INotificationManager>();

            _conn = ShinyHost.Resolve<PABeacon.PASqliteConnection>() ;
			_geofenceManager = ShinyHost.Resolve<IGeofenceManager>();

        }

Please make sure you are always running the latest beta.  I'm constantly fixing and tweaking things during this time frame.
As an FYI, you need to request permissions to use the geofences at some point.  Changing them in the background isn't advised and may result in errors (especially on iOS).

I uodated to the latest beta (<IP_ADDRESS>0-beta) and got this error

Unhandled Exception:
System.InvalidOperationException: A circular dependency was detected for the service of type 'Shiny.Locations.IGeofenceManager'.
Shiny.Locations.IGeofenceManager(Shiny.Locations.GeofenceManagerImpl) -> Shiny.Locations.IGeofenceDelegate(PABeacon.ShinyDelegates.GeoFenceDelegate) -> Shiny.Locations.IGeofenceManager occurred

I see what is happening.  You are sending the geofence manager to your geofence delegate and looking at your previous stack trace, this is what was happening to.  You really shouldn't do this because the delegate is resolved internally on the geofence manager (hence the circular reference).  Is there a particular reason why you're doing it?

So for the next release, you can inject the geofence manager into your geofence delegate.  I'm still curious about your use-case for it though.


chore(main): release 0.1.8

:robot: I have created a release beep boop
0.1.8 (2023-05-02)
Bug Fixes

Update readme.md to upgrade the lib on install (51a7fb7)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/BLSQ/openhexa-sdk-python/releases/tag/0.1.8 :sunflower:


Stack widget inside fixed height Container strange clipping

This appears to be a new issue with flutter as I have not made any code changes to this code according to my git history and have never seen this visual issue.
The Issue
I've got a Stack inside a fixed height Container, when animating opacity of the children inside the stack, there is an odd animation clipping that happens I've attached two videos, one is fixed height, one has no height.
Fixed height (clips on the right side, does not animate): https://streamable.com/t2mog
No height (does not clip, smooth animation): https://streamable.com/7hc37
Note
This happens on both iOS and Android
code sample (use your own image)
class TestApp extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => TestAppState();
}

class TestAppState extends State<TestApp> {
  double opacity = 0.0;

  @override
  Widget build(BuildContext context) {
      var dur = Duration(milliseconds: 500);
      Timer(Duration(seconds: 5), () {
        this.setState(() {
          this.opacity = 1.0;
        });
      });

      return Scaffold(
        resizeToAvoidBottomPadding: false,
        backgroundColor: Colors.white,
        body:
          Container(
            height: 400,
            child:
              Stack(
                alignment: AlignmentDirectional.topCenter,
                children: [
                  Positioned(
                      top: 25.0,
                      left: 8.0,
                      height: 600.0,
                      width: 200.0,
                      child:
                        AnimatedOpacity(
                          opacity: this.opacity,
                          duration: dur,
                          child: Image.asset('assets/images/6days.png', fit: BoxFit.cover, alignment: AlignmentDirectional.center),
                        )
                    ),
                  Positioned(
                      top: 25.0,
                      right: 0.0,
                      height: 600.0,
                      width: 200.0,
                      child:
                        AnimatedOpacity(
                          opacity: this.opacity,
                          duration: dur,
                          child: Image.asset('assets/images/6days.png', fit: BoxFit.cover, alignment: AlignmentDirectional.center),
                        )
                    ),
                  Positioned(
                      height: 600.0,
                      width: 200.0,
                      child:
                        AnimatedOpacity(
                          opacity: this.opacity,
                          duration: dur,
                          child: Image.asset('assets/images/6days.png', fit: BoxFit.cover, alignment: AlignmentDirectional.center),
                        )
                    )
                ]
          )
          )
      );
    }
}

void main() {
  runApp(
    MaterialApp(
      title: 'TestApp',
      home: TestApp()
    )
  );
}

Is this still happening if you upgrade to the master branch of Flutter?
There were some recent issues in the Flutter engine involving rendering of opacity and clip layers, but these should be fixed in the latest builds.

Is this still happening if you upgrade to the master branch of Flutter?
There were some recent issues in the Flutter engine involving rendering of opacity and clip layers, but these should be fixed in the latest builds.

Yes that worked out! Thank you.


kim_mouse atlas plots only one hemisphere in brainrender

Using kim_mouse_50um, for which scaling issues have been solved (see brainglobe/brainglobe-atlasapi#247), individual brain regions plot in only one hemisphere or the other. Consider this snippet:
from brainrender import Scene

atlas = 'kim_mouse_50um'

# Create a brainrender scene
scene = Scene(screenshots_folder='.', inset=False, atlas_name=atlas)

# add actors
acbc = scene.add_brain_region('Acb', alpha=0.3, color='blue', hemisphere='both')

# render
scene.render(interactive=False, zoom=1)
scene.screenshot(name='example_{}'.format(atlas))

This produces the following output:

As you can see, the nucleus accumbens gets plotted only in the left hemisphere. This is contrary to the behavior of allen_mouse_25um and the documented behavior of the hemisphere parameter. As far as I can tell, this behavior does not affect the structure_from_coords function, i.e. that function correctly returns the same region regardless of whether the point is in the left or the right hemisphere. It's currently unclear to me whether this is a problem with the atlas API itself or with brainrender, but I figured I'd report the bug here because of the difference between allen_mouse_25um and kim_mouse_50um. If I should go to the brainrender Github instead, let me know.

This has now been fixed.


[GHSA-p699-3wgc-7h72] Moderate severity vulnerability that affects org.apache.tika:tika-core

Updates

Affected products
Description
Summary

Comments
This vulnerability is related to another package org.apache.tika:tika-parsers. Please see this commit: https://github.com/apache/tika/commit/1b6ca3685c196cfd89f5f95c19cc919ce10c5aff#diff-43f8cbe58aaab159ce88bd95fafc46dd

Hi @YVoitiuk, thank you for the contribution, especially providing a fix commit! The pom.xml file at https://github.com/apache/tika/blob/main/tika-parsers/pom.xml is consistent with the fix commit changing a file in the tika-parsers folder, and the package org.apache.tika:tika-parsers is in Maven.
I edited the advisory summary to ensure the package name and vulnerability type are emphasized. In addition, I put the name of the package in the advisory description. You'll still get community contribution credit with the edits. :)


Make objects have private/protected members

I add description of @metamaker
See #75

Thanks for this addition.
It seems bit long to me just to explain the difference. Moreover compared to current document size it might tempt the reader to just skip it.
Do you think you could shorten it to its ~third and highlight the best parts?

@TomasVotruba I have shortened the text as much as possible.

private methods are guarantee you that code in your methods is dangerous to modify only in boundaries of single class

Typos. Can be private modifier guarantee that code is **dangerous to modify only in boundaries of single class**.

@metamaker fixed

:+1:


https://server/api/strapi-plugin-fcm/fcm-targets return  null data

At the time of sending the notification it does not bring me the users configured in the up_users tokenpush and I have tried in different ways to solve it but I understand the documentation completely well or it may be a small bug

sry for the late response, i'm in a vacation,
make sure that the user is not a draft (published_at not null) and tokenpush not empty

sry for the late response, i'm in a vacation, make sure that the user is not a draft (published_at not null) and tokenpush not empty

Without any problem I hope you are enjoying your vacations, I already verified tokenpush is not null and up_user does not have a published_at system it keeps throwing me the same errors

i'm using postgres as a database, which database you selected ?

MariaDB

@Cosbiome I have encountered the same problem, also using mysql. Apparently mysql/mariadb returns results in a different structure than postgres. I don't know what the original object from postgrest looks like but most likely mysql adds a second array.
I've changed all result.rows (:78,84) to results[0] in ./serer/services/fc-target.js. This done the trick for me although it's obviously a quick fix.

hello guys,
@Cosbiome you can now update strapi-plugin-fcm to 1.0.4 and check, thanks to @l4red0 i did the fix he proposed  without testing, i trust him xD
i suggest to upgrade Strapi to >= 4.2.2 if not working!

My result seem to come up empty, no users to show, no topics to show even though I've got users and topics. I use the default installation so I presume it's sqlite? Running version 4.4.5 (latest). Are you able to assist?

hello guys,
@Cosbiome you can now update strapi-plugin-fcm to 1.0.4 and check, thanks to @l4red0 i did the fix he proposed without testing, i trust him xD
i suggest to upgrade Strapi to >= 4.2.2 if not working! or/and re-comment here and i'll go more deep into the fixing issue.

fixed
https://github.com/itisnajim/strapi-plugin-fcm/pull/5


[Feature request] Allow custom icon in UnorderedList.Item

Request
For an upcoming project (internal link), the design requires a "features list" where some items should have a ✔ check icon, but then some others an ❌ icon .

But currently, the <UnorderedList> component only allows a checked variant.
Possible API
Option 1
An option would be to add another variant="excluded" and then stack two <UnorderedList>s. E.g.
<UnorderedList variant="checked">
  <UnorderedList.Item>Item 1</UnorderedList.Item>
  <UnorderedList.Item>Item 2</UnorderedList.Item>
</UnorderedList>
<UnorderedList variant="excluded">
  <UnorderedList.Item>Item 3</UnorderedList.Item>
  <UnorderedList.Item>Item 4</UnorderedList.Item>
</UnorderedList>

Option 2
Or each <UnorderedList.Item> can be overridden independently:
<UnorderedList variant="checked">
  <UnorderedList.Item>Item 1</UnorderedList.Item>
  <UnorderedList.Item>Item 2</UnorderedList.Item>
  <UnorderedList.Item variant="excluded">Item 3</UnorderedList.Item>
  <UnorderedList.Item variant="excluded">Item 4</UnorderedList.Item>
</UnorderedList>

Option 3
Or to be super flexible, each<UnorderedList.Item> can be used with any icon (similar to Leading visual in Labels):
<UnorderedList variant="checked">
  <UnorderedList.Item>Item 1</UnorderedList.Item>
  <UnorderedList.Item>Item 2</UnorderedList.Item>
  <UnorderedList.Item leadingVisual={<XIcon />}>Item 3</UnorderedList.Item>
  <UnorderedList.Item leadingVisual={<StarIcon />}>Item 4</UnorderedList.Item>
</UnorderedList>

Urgency
Not 100% sure if this design is final and the planed launch date is in 3 weeks. For now I can just recreate the <UnorderedList> or hack the icon into the <UnorderedList.Item>, but eventually might be nice to have have native support?

This request was triaged by Primer Brand maintainers, and decision was made to implement option 1 as the preferred API, due to its intrinsic guardrails. Option 3 will also be implemented as an escape hatch, but may not be publicised in the documentation.


Added new event onIncompleteFocus

Hello!
I am working on a project and we're doing input validations on blur event. Our validation event is triggered before the InputMask 'onIncomplete' event, making our validation harder to implement.
I would suggest adding another event, 'onIncompleteFocus'. This would be similar to the 'onIncomplete' event, but would be triggered on Focus (as the 'onComplete' event).
For a mask like this: aaaa-9999, if the user enters 'abcd-1' and the next character entered is '2' then this event would be triggered (while the focus is still on).

@Evelyne28 ,
I can understand the need for instant validation.  But maybe it is better to consolidate some event like oncomplete, onincomplete, onkeyvalidation and make some kind of onValidate which provides info like in the onkeyvalidation and also include a status which indicate complete or incomplete, ...


How to retrieve private member variable from EVP_MD_CTX when I use ENGINE?

VERSION: OpenSSL 1.1.1g
Word Explanation
SKF  - hardware crypto device like p11
hDev - handle from open SKF device

First, I create a EVP_MD_meth to use SKF
static const EVP_MD *
EVP_MD_skf_sm3(void)
{
    if (NULL == eskf.sm3) {
        EVP_MD *md = NULL;

        /* create md */
        if (NULL == (md = EVP_MD_meth_new(GMSKF_SM3_NID, GMSKF_SM2WITHSM3_NID))
            || 1 != EVP_MD_meth_set_result_size(md, 32)
            || 1 != EVP_MD_meth_set_input_blocksize(md, 64)
            || 1 != EVP_MD_meth_set_app_datasize(md, sizeof(EVP_MD *) + sizeof(HANDLE))
            || 1 != EVP_MD_meth_set_flags(md, 0)
            || 1 != EVP_MD_meth_set_init(md, skf_sm3_init)
            || 1 != EVP_MD_meth_set_update(md, skf_sm3_update)
            || 1 != EVP_MD_meth_set_final(md, skf_sm3_final)
            || 1 != EVP_MD_meth_set_cleanup(md, skf_sm3_cleanup)
        ) {
            EVP_MD_meth_free(md);
            return NULL;
        }
        /* save md */
        eskf.sm3 = md;
    }
    return eskf.sm3;
}

Second, when OpenSSL call ENGINE md init callback skf_sm3_init, I should input hDev to do SKF md init.
static int
skf_sm3_init(EVP_MD_CTX *ctx)
{
    ULONG      iRet = SAR_FAIL;
    DEVHANDLE  hDev = NULL;         /* how to retrieve this from ctx ? */
    HANDLE    *phHash = NULL;

    if (NULL == hDev) {
        SKFerr(SKF_F_SKF_DIGESTINIT, SKF_R_SAR_NOTINITIALIZEERR);
        return 0;
    }
    if (NULL == ctx || NULL == (phHash = EVP_MD_CTX_md_data(ctx))) {
        SKFerr(SKF_F_SKF_DIGESTINIT, SKF_R_SAR_INVALIDHANDLEERR);
        return 0;
    }
    if (SAR_OK != (iRet = SKF_DigestInit(hDev, SGD_SM3, NULL, NULL, 0, phHash))) {
        SKFerr(SKF_F_SKF_DIGESTINIT, (int)iRet);
        return 0;
    }
    return 1;
}

The question is

Set hDev as global variable when I open SKF device in ENGINE_init
Maybe I will create many ENGINE to use, each ENGINE hDev is different.

save hDev to ENGINE context(ENGINE_set_ex_data) when I open SKF device in ENGINE_init, and I retrieve hDev from ENGINE(ENGINE_get_ex_data).
In my opinion, this is a good plan, but I found no way to do it.

OpenSSL not provide API to return ENGINE from EVP_MD_CTX

copy struct EVP_MD_CTX definition and use ctx->engine, it's not safe~

struct evp_md_ctx_st {
 	const EVP_MD *digest;
 	ENGINE *engine;             /* functional reference if 'digest' is
 								 * ENGINE-provided */
 	unsigned long flags;
 	void *md_data;
 	/* Public key context for sign/verify */
 	EVP_PKEY_CTX *pctx;
 	/* Update function: usually copied from EVP_MD */
 	int (*update) (EVP_MD_CTX *ctx, const void *data, size_t count);
 } /* EVP_MD_CTX */ ;

 typedef struct evp_md_ctx_st EVP_MD_CTX;

How to retrieve private member variable from EVP_MD_CTX when I use ENGINE?, or if you have better suggestion, how should I do?

I don't quite understand what you're saying, but it should be ENGINE_set_digests().
Multiple engines can be set to different engine IDs to use ENGINE_set_id().

I don't quite understand what you're saying, but it should be ENGINE_set_digests(). Multiple engines can be set to different engine IDs to use ENGINE_set_id().

this is my top level code
ENGINE *skf = ENGINE_by_id("skf");
EVP_MD_CTX  *md_ctx = EVP_MD_CTX_new();

...
EVP_DigestInit_ex(md_ctx, EVP_sm3(), skf);
...

EVP_DigestInit_ex will call ENGINE callback to init ENGINE(set by ENGINE_set_init_function(skf,skf_init))
static int skf_init(ENGINE *e)
{
    int    skf_idx = ENGINE_get_ex_new_index();
    void  *hDev = fopen("example", "a+");       // actually is not file, here just example

    ENGINE_set_ex_data(e, skf_idx, hDev);       // important, I set hDev to ENGINE, and I want to access this variable in other callback.
}

and then, EVP_DigestInit_ex will call ENGINE callback to inid md ctx(set by EVP_MD_meth_set_init(md, skf_sm3_init))  ``
static int
skf_sm3_init(EVP_MD_CTX *md_ctx)
{
    ULONG      iRet = SAR_FAIL;
    DEVHANDLE  hDev = NULL;         /* how to retrieve this from md_ctx ? */
    HANDLE    *phHash = NULL;

    if (NULL == hDev) {
        SKFerr(SKF_F_SKF_DIGESTINIT, SKF_R_SAR_NOTINITIALIZEERR);
        return 0;
    }
    if (NULL == md_ctx || NULL == (phHash = EVP_MD_CTX_md_data(md_ctx))) {
        SKFerr(SKF_F_SKF_DIGESTINIT, SKF_R_SAR_INVALIDHANDLEERR);
        return 0;
    }
    if (SAR_OK != (iRet = SKF_DigestInit(hDev, SGD_SM3, NULL, NULL, 0, phHash))) {
        SKFerr(SKF_F_SKF_DIGESTINIT, (int)iRet);
        return 0;
    }
    return 1;
}

I want Step3 retrieve hDev from ENGINE *engine struct, but this variable is hidden in EVP_MD_CTX, because EVP_MD_CTX definition is this:
struct evp_md_ctx_st {
    const EVP_MD *digest;
    ENGINE *engine;             /* functional reference if 'digest' is
                                * ENGINE-provided */
    unsigned long flags;
    void *md_data;
    /* Public key context for sign/verify */
    EVP_PKEY_CTX *pctx;
    /* Update function: usually copied from EVP_MD */
    int (*update) (EVP_MD_CTX *ctx, const void *data, size_t count);
} /* EVP_MD_CTX */ ;

if OpenSSl version < 1.1.0, I can use ENGINE *e = md_ctx->engine; to access, but in 1.1.x, struct variable is hidden.
I also can use ENGINE *e = *(ENGINE **)((const EVP_MD *)md_ctx + 1); to modify offset to force access ENGINE, but it's not safe and grace.
OpenSSl not provide function to return md_ctx->engine, What should I do? or any other way to retrieve hDev?

this is my top level code
ENGINE *skf = ENGINE_by_id("skf");

ENGINE_register_digests(skf);
Step3
 int md = EVP_MD_CTX_type(ctx)；
 e = ENGINE_get_digest_engine(md)；

ENGINE_get_digest_engine

it seems work, thanke you, I will try it tomorrow, Good night!


Embedding logging configuration inside general configuration file

Is it somehow possible to embed the log4rs configuration inside of a "main" configuration file? Perhaps an API that takes a YAML dictionary, TOML table or JSON object and returns a Config? I think it should be possible by serializing to a temporary file and calling init_file on the temporary file, but it's a little bit unwieldy. Alternatively I guess I could mimic log4rs' internal deserialization behaviour but that seems quite tricky and not very robust.

You can embed a RawConfig in your own config file and build up the logging config from that.

Thanks a bunch! I somehow completely missed that. This is a very solid library.


TLP timeout should not be increasing exponentially

Seems to be increasing exponentially.

OBE. TLP no longer exists.


fix(Theme): Deep merge variables

wip

Warnings

:warning:
There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

  Generated by :no_entry_sign: dangerJS

Please measure it before merging 🤔


Update NI and GO fields for ease of use

:tada: This PR is included in version 4.1.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Feature: Missing hints.

It would be nice if there are some hints about this input box.

Yes I think we need a placeholder, would you like to do this?

Closed by @lawvs


JSON contentType handling when serializing the payload

When setting the contentType message header, the original content type from the payload should be checked with MimeType's type/subtype/parameter.
For instance, the original contentType with the value application/json;charset=UTF-8 currently serialized with the contentType text/plain based on this logic here

@ilayaperumalg Could we make #940 as part of this issue?


Investigate whether abilities stack

If not, we shouldn't apply them when already active in the lane.

Decrease Cooldown's tooltip explicitly states that it does not stack.

@loserwill That has been dealt with by disabling it when active on lane.

Raining Gold stacks.

Yep, Raining Gold definitely stacks. 160 Raining Gold on level 20 = glorious

I think we have a pretty good idea of what stacks and what does not by now. Closing this.


Eye crashes on starting sidekiq

executing: `bundle exec sidekiq -e production` with start_timeout: 30.0s, start_grace: 2.5s, env: ' '( in /opt/project_dir/current')
`{:error=>#<Errno::ENOENT: No such file or directory - open>}`
switch :crashed [:starting => :down] (reason: crashed)

Any help appreciated.

show eye config

``def load_env
File.open('/opt/grasshopper/.env', 'rb').each_line do |line|
result = line.split('=')
env result[0] => result[1].chop if result.length > 1
end
unicorn requires to be ruby in path (for soft restart)
env "PATH" => "/usr/local/bin/ruby:#{ENV['PATH']}"
end
Eye.config do
logger "/tmp/eye.log"
end
Eye.application "community-cloud" do
load_env
group "community-cloud-web" do
chain :grace => 5.seconds
process 'community-cloud-web-1' do
  working_dir "/opt/grasshopper/community_cloud/current"
  pid_file "/opt/grasshopper/community_cloud/tmp/pids/unicorn.pid"
  start_command 'bundle exec unicorn -E production -Dc ./config/unicorn.rb'

  stop_signals [:QUIT, 10.seconds, :TERM, 10.seconds, :KILL]
  # stop_signals [:TERM, 10.seconds]
  restart_command "kill -USR2 {PID}"
  stdall "/var/log/community-cloud/community-cloud-web-1.log"

  # check :cpu, :every => 30, :below => 80, :times => 3
  # check :memory, :every => 30, :below => 150.megabytes, :times => [3,5]

  start_timeout 30.seconds
  # restart_timeout 30.seconds
  restart_grace 30.seconds
  stop_timeout 30.seconds

  monitor_children do
    stop_command "kill -QUIT {PID}"

    # check :cpu, :every => 30, :below => 80, :times => 3
    # check :memory, :every => 30, :below => 150.megabytes, :times => [3,5]
  end
end

end
group "community-cloud-worker" do
chain :grace => 5.seconds
process 'community-cloud-worker-1' do
  working_dir "/opt/grasshopper/community_cloud/current"
  pid_file "/opt/grasshopper/community_cloud/tmp/pids/sidekiq.pid"
  daemonize true
  start_command "bundle exec sidekiq -e production"
  #stop_signals [:usr1, 30.seconds, :term, 5.seconds, :kill]
  stop_signals [:QUIT, 5.seconds, :TERM, 5.seconds, :KILL]

  stdall "/var/log/message-service/community-cloud-worker-1.log"

  start_timeout 30.seconds
  restart_timeout 30.seconds
  stop_timeout 30.seconds

  monitor_children do
    stop_command "kill -QUIT {PID}"
  end
end

end
end

ensure that dirs /opt/grasshopper/community_cloud/current and /var/log/message-service/ exists. Also ensure that eye have permissions to create file /var/log/message-service/community-cloud-worker-1.log
btw, there is already method load_env "/opt/grasshopper/.env"


Getting incorrect path with sourcemaps, am I doing something wrong?

I'm very new to this package, so it's quite possible I'm doing something wrong or that it isn't a gulp-sass issue.  Any help, or a nudge in the right direction, is greatly appreciated. :)
That said:
I'm using gulp-sass with bootstrap-sass.  I'm starting with a simple SCSS file, vendor.scss:
@import "../../../node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss";
@import "custom.scss";

My custom.scss:
body {
    background-color: pink;
}

And my gulp task:
gulp.task('css:vendor', function() {
    return gulp.src('./client/features/shared/vendor.scss')
        .pipe(sourcemaps.init())
        .pipe(sass({ outputStyle: 'compressed', sourceComments: 'map' }))
        .pipe(sourcemaps.write('.'))
        .pipe(gulp.dest('./dist'));
});

Everything builds, the resulting CSS is what I would expect, but the sourcemap is off for the style from my custom.scss.  It seems to be "stuck" on the last file that was processed from bootstrap's package:

Any tips or suggestions?

I've tried a few different configurations of things, but I'm still getting the same behavior.  Any advice?

Have you tried using outputStyle: 'compact' instead of compressed? I have the same issue when I use compressed, but changing it to compact fixes it. I haven't found a proper solution for this issue, because I would prefer to use compressed.

Yep my fix is the same, had to use compact. No idea why this works.

the problem has not been solved? When i use autoprefixer ,outputStyle: compact does not help, Chrome DevTools shows that all children are on a parent line in the file SCSS

outputStyle: compact doesn't work for me, either. :(

@Sash-OK If you are running autoprefixer on your outputted Scss, I would expect it to break the associations between rules and the source maps.

I'm seeing it break even without autoprefixer, using outputStyle: compact.  That doesn't mean autoprefixer isn't breaking things, too, but it isn't the culprit in my case.

@MattHoneycutt I think you should change
 .pipe(sass({ outputStyle: 'compressed', sourceComments: 'map' }))
to
 .pipe(sass({ outputStyle: 'compressed'})) or .pipe(sass())
I haven't payed close attention to Gulp Sass, but now I notice that sourcemaps are a different plugin rather than an option of Gulp Sass. (If this doesn't work, perhaps calling sourcemaps(write()) will fix it?)

Also having this issue. Using {outputStyle: 'compact'} instead of {outputStyle: 'compressed'} gives me correct sourceMaps.

Still waiting for a fix.
@Dellkan , @MattHoneycutt - The first problem is bootstrap _breadcrumbs.scss. I opened an issue over there - https://github.com/twbs/bootstrap-sass/issues/1105
Their variable interpolation value in _breadcrumbs.scss causes libsass to:

not compile correctly (don't worry it's just messes up that one line)
mess up sourcemaps when the output style is set to compressed

After you fix that issue, it appears that there is something gulp-sass has to fix because node-sass compiles everything fine (after fixing bootstrap issue) when running --output-style compressed --source-map true. I'm trying to come up with a temporary solution, that doesn't involve using a different tool to minify so we can keep the speed gains from libsass, until the issues are resolved.

@Dellkan @MattHoneycutt I think I spoke too soon. I don't think it's a problem with gulp-sass anymore. I still had postcss running autoprefixer in the stream. When I commented that out and just ran gulp-sass with sourcemaps and outputStyle: 'compressed' it's working fine.
So it seems like the problem is postcss or autoprefixer. Will update as I find out more. The bootstrap breadcrumbs issue still holds true though as it messes up libsass itself.

I can confirm that simply commenting out the:
.pipe(autoprefixer())
Solved my issues with Sourcemaps incorrectly reporting files/line numbers. I'm not using BS in this instance.

This is either an issue with libsass (used by gulp-sass), or another gulp plugin interfering.
Comment out all other gulp-plugins. If the issue persists open an issue with libsass.

Ok, so, when I use compact the sourcemaps are OK, with compressed gulp-sourcemaps references the wrong/random files.
Are there any fixes for this?
gulp.task( 'styles', function() {
	gulp.src( [ styleSRC ] )
		.pipe( sourcemaps.init() )
		.pipe( sass({
			includePaths: [ foundation, motionUI, datepicker ],
			errLogToConsole: true,
			outputStyle: 'compact'
		}) )
		.on( 'error', notify.onError( function (error) {
			return 'An error occurred while compiling sass.\nLook in the console for details.\n' + error;
		} ) )
		.pipe( autoprefixer({ browsers: [ 'last 2 versions', '> 5%', 'Firefox ESR' ] }) )
		.pipe( rename( { suffix: '.min' } ) )
		.pipe( sourcemaps.write( mapURL ) )
		.pipe( gulp.dest( styleURL ) )
		.pipe( browserSync.stream() );
});

Just wanted to add to this as well. I also have the issue with sourcemaps not matching up correctly, and can also confirm it is strictly happening when the outputStyle: 'compressed' option is passed in. When changing it to outputStyle: 'compact' the sourcemaps again match up correctly. I'd really like to be able to have the stylesheet completely minified though.

For anyone digging around, the issue isn't with gulp-sass.
It's a known issue. Libsass (maybe node sass) seems to still have a bug - https://github.com/sass/node-sass/issues/957
Also, PostCSS isn't fully compatible with sass sourcemaps and the issue has been closed as won't fix (though he tried 👍) - https://github.com/postcss/postcss/issues/926


[linstor] Fix revertSnapshot

Description
revertSnapshot uses currently the UUID instead of the path, which defines the resource group on linstor and is set matching to the path when creating a snapshot. This PR just replaces the UUID by path of a snapshot.
This PR is done against 4.19 as 4.18 has been refactored in between.

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)
[ ] build/CI

Feature/Enhancement Scale or Bug Severity
Bug Severity

[ ] BLOCKER
[ ] Critical
[X] Major
[ ] Minor
[ ] Trivial

How Has This Been Tested?

linstor cluster running on same nodes as KVM-Hosts used for ACS.
Ubuntu 22.04, compiled 4.19 as package, used a non productive cluster to test
Previous situation: create volume snapshot, create a file in running instance, shutdown instance, try to restore via GUI: Failure as volume cannot be found (which happens if volume has not been initially created in linstor)
Fixed sitation: same actions, but restore works and disk is verified in state of snapshot after starting instance.

@blueorangutan package

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: ✔ el7 ✔ el8 ✔ el9 ✔ debian ✔ suse15. SL-JID 10027


CocoaPods

I'd be cool to also add Cocoapods support. I done this implementation myself last week for my library. Just follow this post and this checklist.

:+1:


Initial single header support using amalgamate

This PR was to make progress in regards to #23. I've only used amalgamate a handful of times on small personal projects - so feel free to correct or advise on any specifics on it's use in this project.
Invoking the script is as simple as python amalgamate.py -c config.json -s ../include
To verify I simply tested the single header file against example.cpp and the test.cpp.
Thanks!

@patrick-- Thank you so much! I am a little snowed under but will have time to look at it in the coming days :)

@patrick--  Alright, had time to check it, looks great :)
One thing. Could you also update the README to mention that there is a single header option now?

@mandreyel Thank you for the quick feedback. I've updated the README. Let me know if it sounds okay!

@patrick-- Great work! Thank you :)


feat: mdx improvements

GEN-1074

move copy button to code highlighter
generate id for h1-h6

To see the specific tasks where the Asana app for GitHub is being used, see below:

https://app.asana.com/0/0/1208270495871404

Anyone know why MDXRmote is used in this project?
I checked several usages, and it seems most data are fetched from within this project itself. Why not render the markdown at server side?

Is this a task that you can help with?

Yes, although I got tasks on other projects, it depends on @zzq0826

Is this a task that you can help with?

Yes, although I got tasks on other projects, it depends on @zzq0826

I've noted this requirement, but we currently have other tasks in progress. Once we have the bandwidth, we can work on this.

Awesome! Thank you @yqrashawn & @zzq0826 , that would be a great help!
For now, what would be our preference for this PR? Do we want to merge this PR or keep it open to have till we have ssr task also integrated then merge?
We're fine with both options.

If the current PR meets your requirements, I suggest we deploy it first and optimize it later.

Cool! This LGTM! Changes are aligned with ticket asks.
As a sanity check, can I also get your review on this PR @zzq0826 ?

@yqrashawn - I just noticed one thing in this PR. Seems like the MDXCodeHighlighter component is wrapped inside another container. Was this created to distinguish a copyable code snippet vs those that is not copyable? Let me know if you'd like me to point it out via Vercel.

@yqrashawn - I just noticed one thing in this PR. Seems like the MDXCodeHighlighter component is wrapped inside another container. Was this created to distinguish a copyable code snippet vs those that is not copyable? Let me know if you'd like me to point it out via Vercel.

No, it's just for styling,MDXCodeHighlighter always has the copy button @PrintRH

@yqrashawn - Yes, that makes sense. But what I mean was if we reference the image below as an example, there is another container (light blue) which wraps the code. I wonder if we can have this removed (assuming now that the intention is not to separate code snippet that can be copied vs not copied).

Thanks @PrintRH, it's fixed


Routing: AssistChip

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

22 of 22 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.006%) to 99.46%

Totals

Change from base Build<PHONE_NUMBER>:
-0.006%

Covered Lines:
11012

Relevant Lines:
11017

💛  - Coveralls


Issue 87: Stack efficient Euclidean method

Description
Updated fix to issue 87.  Removes tail recursive function call to save stack memory space at the cost of another integer.
Checklist

[X] An issue was first created before opening this pull request
[X] The new code follows the contribution guidelines
[X] I have performed a self-review of my own code
[n/a] I have commented my code, particularly in hard-to-understand areas

The new loop is functionally identical to the old loop which was not specifically documented.

[n/a] I have made corresponding changes to the documentation

Nothing about the call or output has been changed to warrant a documentation change.

[X] My changes generate no new warnings
[X] I have added tests to ensure that prove my fix is effective or that my feature works

(tests already present)

[X] New and existing unit tests pass locally with my changes

Thanks for contributing this fix.


[feat] Link user signup to the database

Description

added the CRUD logic in user controller to add users create, get, and update the user database
connect the signup and login page to the user database via modifying login/signup.tsx and server.js

Reproduction steps

to test: signup as a new user, link with the database in the environment and select all from users table.
if the signed up user info is in the database, then the test is done.

Checklist

[x] I've followed the Contributing guidelines
[x] I've titled my PR according to the Conventional Commits spec
[ ] I've added tests that fail without this PR but pass with it
[ ] I've linted, tested, and commented my code
[ ] I've updated documentation (if appropriate)

Also, Nancy, please include the issue number in the pull request description. It should link to our project's card and automate status setting that way.

thanks for your comprehensive feedbacks! Aidan!


[PAPI-312] Include zero liquidity flag

Adds a flag for whether to include tokens with no liquidity
Explores potential for returning average price data across markets for token endpoints

This still a WIP or ready for review?

looks good, few comments. I like the modifiedBlock on the token summary, I think I'll create a story to return that and maybe createdBlock also.

this can be merged but we can't swap slots yet for devnet so it won't really be live until then.


Hello, I got an issue. I put image with 1,920x1,080 JPEG 672.88KB size and zooming performance is slow. After that, I crop it into 1,047x1,189 JPEG 426.04KB and all work fine.  How to make it more quick?  Do you have any suggestion?

This is probably a memory issue. But out of scope for the library since it does not perform image handling itself. Perhaps you can ask it on stackoverflow.


JAR has no manifest and can't be executed

mvn clean install from HEAD followed by cd target then java -jar DeepViolet-0.0.1-SNAPSHOT-jar-with-dependencies.jar reports:
no main manifest attribute, in DeepViolet-0.0.1-SNAPSHOT-jar-with-dependencies.jar

Appreciate you taking the time to give this a try Martijn.  If you do a mvn clean install and the build is successful then you should notice a few other jars in the same directory: dvAPI.jar, dvCMD.jar, and dvUI.jar.  The jars are specified within the pom.xml, they are the project binary executables, and their purpose is as follows: dvAPI.jar = include this in your projects to extend TLS/SSL scanning support, dvCMD.jar = This jar supports the command line reference case for DeepViolet.  The output of this jar can combined with other programs and used in shell scripts and used in so many useful ways.  dvUI.jar = This jar supports the desktop application reference case for DeepViolet.  The dvUI.jar includes DeepViolet features and in a Swing based desktop application.  If you see these files and you double-click on the dvUI.jar from your desktop, the user interface will be presented.  Type in a URL to be scanned and you will begin to see results.  I tried a mvn clean install on my system, my build was successful, and these jars were produced.  I'm assuming you didn't realize the purpose of the dv*.jar files.  I would appreciate if you let me know if your successful or continue to have troubles.  If you continue to have troubles I will clone a new project and investigate more thoroughly.  Thanks again!

I just built deepviolet on my laptop, but the dv*.jars are not created.

Hi @spoofzu and @javabeanz - I have the same issue.
Mac Os X 10.12.1, JDK 1.8_112, Maven 3.3.9
Maven build with -X attached.
build.txt

tag 1.1.000 still did have the dv*.jars. at tag 1.2.000 they are gone. Note that they seem not generated but prebuilt.

Ok, I have it figured out.  I have some code I "assumed" I delivered but did not.  Hat tip to @karianna.  Apologize for making you my beta tester but I'm happy you identified the issue.  I will get this fixed up and deliver but it might take me a couple of days.  I am working through my backlog, over the weekend (ouch).  ;o)  I will update this thread when delivered to proactively notify you both.  Thanks!

Should work now, thanks again.

fix confirmed.

Hi @spoofzu I still have the same issue.
I built DeepViolet with "mvn clean install", but the dv*.jars are not created.
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T18:41:47+02:00)
Java version: 1.8.0_73, vendor: Oracle Corporation
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.3", arch: "x86_64", family: "mac"


Temp disable Windows ARM build due to named pipes

Temporary workaround due #224.

  - task: ArchiveFiles@2

this one too

Refers to: build/azure-pipelines/build-product.yml:146 in e2e0e86. [](commit_id = e2e0e869221fa8a1e1a9258f26397b44d939531f, deletion_comment = False)


Edit frequency for users

@kepta @batpad can we include edit frequency for a user. This would be as simple as finding number of changesets every day.

osm-comments=> EXPLAIN select date_trunc('day', closed_at), count(id) from changesets where username='PlaneMad' group by date_trunc('day', closed_at);
                                           QUERY PLAN
------------------------------------------------------------------------------------------------
 HashAggregate  (cost=6677.64..6698.68 rows=1683 width=16)
   Group Key: date_trunc('day'::text, closed_at)
   ->  Bitmap Heap Scan on changesets  (cost=37.61..6669.23 rows=1683 width=12)
         Recheck Cond: (username = 'PlaneMad'::text)
         ->  Bitmap Index Scan on changesets_username_idx  (cost=0.00..37.19 rows=1683 width=0)
               Index Cond: (username = 'PlaneMad'::text)

This is pretty good.


Update documentation

We've added all the presets now, so the docs should show that.

WIP.

Awesome! Could you give me a sense of how you are approaching it? Ideally
I'd like to have something like JSDOC that would automatically generate
markdown we could have in the repo. I am open to other suggestions though
On Fri, May 20, 2016 at 7:40 AM, Leonardo Di Donato <
<EMAIL_ADDRESS>wrote:

WIP.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/paradox41/validate-commit/issues/17#issuecomment-220584035

For now I have in mind to just update the README.
For api docs rather we should adopt a solution similar/like that you just proposed.

That sounds good. I think the pragmatic solution is updating the README (as it is very out of date just now).
We can look for good api docs tools once that gets done.
Feel free to ping me once you open the PR so I can take a look.

On May 20, 2016, at 9:18 AM, Leonardo Di Donato<EMAIL_ADDRESS>wrote:
For now I have in mind to just update the README.
For api docs rather we should adopt a solution similar/like that you just proposed.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/paradox41/validate-commit/issues/17#issuecomment-220603063

Readme upgraded @paradox41.
I also propose to change the name of the environment variable (i.e. CI) used to disable logging to something more intelligible like SILENT.

@leodido awesome! Shall I expect a PR soon?

change the name of the environment variable (i.e. CI) used to disable logging to something more intelligible like SILENT

Agreed

@paradox41 mute logging done (51f014).
Furthermore I improved code snippets within readme file.
I think we can merge #19. What do you think about?

Closed via #19


[BUG]Some emoticons and special characters don't remove double colon

Hi,
I encountered that some emoticons and special characters don't remove the double colon in reading mode.
See screenshot for example. I did not test this through fully so it's probably likely that other emoticons and characters have the same behaviour.
In case of "Today's wins", I had to remove the hand emoticon and the apostrophe to solve the issue.

Hi thank you for reporting the issue. Could I ask you to post the source of your file from the screenshot to help me with debugging, please. Thank you

Yes no problem man.
Here you go
Daily template.md

New version 1.1.4 got released with the fix. If you run into any other issues let me know. Thanks
FYI - the plugin got reviewed by the Obsidian team and is available in the Community Plugins registry so should be easier to install/update now.

Can confirm it's fixed now.
Thanks 👍🏼


Unexpected alt/control/shift/system key state in KeyEvent

Unexpected alt/control/shift/system key state in KeyEvent
When i press the shift key i get an sf::Event with (event.type == sf::Event::KeyPressed) and (event.key.shift == false) and when i release the key i get an sf::Event with (event.type == sf::Event::KeyReleased) and (event.key.shift == true).
As the doc is:
    struct KeyEvent
    {
        Keyboard::Key code;    ///< Code of the key that has been pressed
        bool          alt;     ///< Is the Alt key pressed?
        bool          control; ///< Is the Control key pressed?
        bool          shift;   ///< Is the Shift key pressed?
        bool          system;  ///< Is the System key pressed?
    };

Shouldn't i get (event.type == sf::Event::KeyPressed) and (event.key.shift == true) when i press the key and (event.type == sf::Event::KeyReleased) and (event.key.shift == false) when i release the key (as it is no longer pressed)?
Environment
OS: Debian GNU/Linux buster/sid:
$ uname -a
Linux Maxime-debian 4.18.0-2-amd64 #1 SMP Debian 4.18.10-2 (2018-10-07) x86_64 GNU/Linux

Desktop manager: XFCE4
$ xfce4-about --version
xfce4-about 4.12.1 (Xfce 4.12)

Window manager: i3
$ i3 --version
i3 version 4.15 (2018-03-10) © 2009 Michael Stapelberg and contributors

SFML:
2.5.1 (2f11710abc5aa478503a7ff3f9e654bd2078ebab)

CMake:
$ cmake --version
cmake version 3.12.3

Compiler: gcc
$ g++ --version
g++ (Debian 8.2.0-8) 8.2.0

Steps to reproduce
Clone SFML repository, checkout version 2.5.1, put the following code in examples/pong/Pong.cpp:
#include <SFML/Graphics.hpp>
#include <iostream>

int main()
{
    sf::RenderWindow window(sf::VideoMode(800, 600), "TEST");
    window.setFramerateLimit(60);

    while(window.isOpen())
    {
        sf::Event event{};
        while(window.pollEvent(event)) {
            if((event.type == sf::Event::KeyPressed) || (event.type == sf::Event::KeyReleased)){
                std::cout << ((event.type == sf::Event::KeyPressed) ? "KeyPressed " : "KeyReleased ");
                std::cout << event.key.code;
                std::cout << " alt=" << event.key.alt;
                std::cout << " control=" << event.key.control;
                std::cout << " shift=" << event.key.shift;
                std::cout << " system=" << event.key.system;
                std::cout << std::endl;
            }

            if(event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.display();
    }
    return EXIT_SUCCESS;
}

Compile pong example with CMake, launch the example, a black window open, press left shift (and release), close the window.
Note: Left shift is sf::Keyboard::Key::LShift = 38
Expected behavior/output
/GitHub/SFML/cmake-build-debug/examples/pong/pong-d
KeyPressed 38 alt=0 control=0 shift=1 system=0
KeyReleased 38 alt=0 control=0 shift=0 system=0

Actual behavior/output
/GitHub/SFML/cmake-build-debug/examples/pong/pong-d
KeyPressed 38 alt=0 control=0 shift=0 system=0
KeyReleased 38 alt=0 control=0 shift=1 system=0

May potentially be better handled with scancode support #1235

I don't think scancodes will affect this - seems a subjective matter as to whether the modifier keys are "pressed" at the point they're being pressed. Personally I don't think there's any issue as we're just going by what the OS tells us, at most this is about clarifying the documentation

Yes, having looked at all the existing well-known implementation, it also seems like everyone does it a bit different and of course it also depends on the OS.
It's something I want to look into after scancodes to define/document how things are on the OS level and how we do it in SFML

I have a similar problem using the latest 2.6 branch with the duplicate key fix applied here.
In windows, I have to apply this fix:
https://github.com/dgcor/DGEngine.core/blob/0ec8f4575c6e279732e5be6561e15e607acfe877/src/Parser/ParseInputEvent.cpp#L12
because I'm using the event as a key in a map on the OnKeyPressed event, but that event's struct has the alt key set to true under windows and set to false under linux.
This fix I apply under windows makes it so that the key in the map has the key/scancode set but also the bool value set, since the windows implementation sets both and the linux only sets the key/scancode.


Looks like a gem came in, maybe from someone else's commit that I merged

Minor pull request for some gemfile changes.

interesting that it needed it in this repo. Its part of the stash_engine gemspec


Possible CPU issue with async compinit compilation and MacOS

Describe the bug
Possible CPU issue with compilation and MacOS
Hi there,
Just wanted to start this by saying that I've been using znap for a while, and it's great. I started using it primarily for the compinit and the function "magic", but also now love the prompt stuff. Awesome work.
I've been using it on Linux for a while and it has been flawless, but I've started using a Mac and have had issues where zsh would run at 100% CPU, sometimes multiple. I can tell because my MBA warms up.
I'm using a Macbook Air M1 2020, Moneterey 12.6.6 (21G646), though the issue happens on 11 (Big Sur) and 13 (Ventura) as well.
I would love to assist as much as possible to fix this issue (if it ends up being a znap issue).
Things I've tried:

Upgrading znap, I usually upgrade whenever i see an update, but given it's pretty stable I don't need to chase head :).
Upgrading zsh (as below)
Turning off znap, which seems to solve the issue. I really only use znap for compinit+async functions+prompt, so it's not a massive PITA.

zsh versions used:

zsh through brew (5.9 as of this issue, June 2023)
compiling zsh master branch
The MacOS shipped versions of zsh

I'm not sure how to debug the issue and find where it's having problems (I'm a Linux user, so MacOS is like a weird parallel universe), but the using sampling in Activity Monitor was showing it was stuck compinit? If anyone has suggestions for MacOS, more than happy to try. Most tools seem to be randomly deprecated with MacOS...
I think it has to do with the background compilation that zsh-snap does, and it's getting stuck somewhere. Is there a way to verbose log this to a file (I could run this until the issue occurs)?
Also, if I follow these steps to disable automatic compilation, and do the following:

Remove old zsh-snap+zsh cache: rm -rf ~/.cache/zsh ~/.cache/zsh-snap
Add zstyle ':znap:*' auto-compile no to my .zshrc
Manually run znap compile

I get this output: https://gist.github.com/joshuataylor/afa8aba478acf1bed7478af064d66f0c
Note the /usr/local/share/zsh/site-functions not writable, though this seems like a red-herring.
Steps To Reproduce

Run MacOS (I think it might be a MacOS specific issue).
Maybe try and trigger the automatic compinit -- remove cache, etc?

Expected behavior
Non high CPU usage.
Environment:

OS: MacOS 12.6.6 (21G646) (though happens on 11 and 13)
Terminal: iTerm 2 (Build 3.5.20230323-nightly)
Zsh version: 5.9
Repo version: main, commit 60d478eb470722dfc5daa14cbf447aa68310906f

Additional context
Sorry for the rambling wall of text.
Happy to help as much as possible, and try and figure out a reproducible example. It's happened on 3 different clean installs of MacOS, once we figure out what is going on I'll assist as much to also fix it.

I think I know what the issue actually is.
I have my zsh config files like this:
zshrc.zsh
zsh_linux.zsh
zsh_mac.zsh
zshenv.zsh

I then symlink them to my home directory (I'm still to use ZDOTDIR), like this:
ln -s $XDG_CONFIG_HOME/whatever/zshrc.zsh ~/.zshrc

I think it's parsing the same file over and over again, thinking that my .zsh files are actually plugins or scripts.
I can't even remember WHY I did this, probably because I googled it and people also did that.
I'll just knock off the file extension, as .sh might have the same issue.
🤦


More fixes for potentially ambiguous function calls.

This is the same issue that was fixed in one place in
d9cdc7ecdb91fdfd738b7347c69a6fa3b6d5d2be and another place in
15769584ce4b4e450e893f33a550e2c23f55db30.
Hopefully this is the last of these fixes.

@swift-ci Please smoke test and merge

@swift-ci Please test and merge

Closing out and looking at adding argument labels instead of casts to disambiguate.


DSA <IP_ADDRESS> Introduction to stacks -Audio

Description
Description
Give an introduction and explain the working of stacks.
Task

[ ] Documentation
[ ] Audio
[ ] Video

Note

While requesting the issue to be assigned, please mention your NAME & BATCH NUMBER.
Kindly refer to Issue Guidelines.
In case you see that the issue has already been assigned, try to request for a different task within the same issue.
Changes should be made inside the DSA/directory & DSA branch.
Name of the file should be same as the issue.
This issue is only for 'GWOC' contributors of 'DSA' Domain.

Domain
DSA
Type of Contribution
Audio
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

@Muskan-creator can I work on this?


Swiper fliker when loop and loadMinimal are enabled

When setting the loop mode and loadMinimal to true, the component flickers when swipping from the last item to the first, or from the first to the last (currently using images as items).
Which OS ?
Android
Version

react-native-swiper v1.5.14
react-native v0.59.0

Expected behaviour
Expect the component to changes from items smoothly.
Actual behaviour
The items are flickering
How to reproduce it>
To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.
Steps to reproduce

Create a react-native-swiper with n children images components
Set loop and loadMinimal props to true
Swipe from the first to the last component of the swiper.
Swipe from the last to the first component of the swiper.
The component will flicker, like he is unmounting the visible items, and mounting again.

I prevent the first and last elements' unmount now.
However, the component will still flicker on Android. The reason maybe you swipe the last to first, the event happened like below is not fast enough:
Before flicker:
[4, 0, 1, 2, 3, 4, 0]
👆
After flicker:
[4, 0, 1, 2, 3, 4, 0]
👆


[GSK-1953] Max data size as param

This PR allow users to set maximum number of samples (max_dataset_size) in loss-based scan detectors.

Broken test!


update release to elasticsearch V5.1.1

Elasticsearch is now on 5.1.1 and the current plugin do not work due the different version.
Please update the .zip for 5.1.1 version
Thanks

Download latest release from https://github.com/sivasamyk/logtrail/releases/download/0.1.6/logtrail-5.x-0.1.6.zip


Propose to also use xdg-open to import calendar data

One can also use xdg-open to import ICS data. It's simpler
and easier to remember than the pure DBus call.

One comment, aside from that LGTM.


Remove DataSegmentFinder, InsertSegmentToDb, and descriptor.json file in deep storage

Fixes https://github.com/apache/incubator-druid/issues/6849.

@clintropolis thanks. I started a thread in the user mailing list too (https://groups.google.com/forum/#!topic/druid-user/q2e9H_bih4I).

@nishantmonu51 I added a doc for HA.


Deadlock!

Hi,
I have found a situation where zmq-async would deadlock. The following code will do:
(ns debug.async.core
  (:import [org.zeromq ZMQ$Socket])
  (:require [com.keminglabs.zmq-async.core :refer [register-socket!]]
            [clojure.core.async :refer [chan close! go >! <!]]))

(defn deadlock!
  []
  (let [write-in (chan)
        read-in (chan)
        read-out (chan)]
    (register-socket! {:in write-in :socket-type :push
                       :configurator (fn [^ZMQ$Socket s]
                                       (.bind s "tcp://<IP_ADDRESS>:19999"))})
    (register-socket! {:in read-in :out read-out :socket-type :pull
                       :configurator (fn [^ZMQ$Socket s]
                                       (.connect s "tcp://<IP_ADDRESS>:19999"))})

    ;; This and the next go blocks just send message from one socket to another repeatedly
    (go
      (loop [c 0]
        (>! write-in (str "send " c))
        (recur (inc c))))
    (go
      (loop []
        (println (String. (<! read-out)))
        (recur)))

    ;; This loop opens and closes sockets repeatedly
    (loop [c 0]
      (println "open-close " c)
      (let [in (chan)]
        (register-socket! {:in in :socket-type :pub
                           :configurator (fn [^ZMQ$Socket s]
                                           )})
        (close! in)
        (recur (inc c))))))

I also have a rough idea why the deadlock happens: in the above code, first, we have a lot of incoming messages from ZMQ sockets, so it is expected that the zmq-loop will spend a lot of time on this line
(>!! async-control-chan [incoming-sock-id msg])

At the same time, we also have lots of requests for opening/closing sockets, so the async-loop will spend a lot of time putting commands to zmq sockets onto the queue
  (.put queue msg)

Now, once the queue gets full, the put to the queue will block. If, at the same time, zmq-loop wants to put into async-control-chan as above, that would block too since async-loop still tries to put message onto the queue. We have a deadlock.
I have also found out that it is of no use either: increasing the queue size , or: give the async-control-chan some buffer, as long as it is not a buffer that drops messages , or doing them both. Doing them both only delays the deadlock by a tiny bit.
Changing pool and alts!! to be deterministic in the sense that they will always take the control channel/socket first if that's available, together with sufficient buffer, may be able to avoid this deadlock. I will investigate further.
I guess the reason that people have not discovered this deadlock is that in real situations it happens rarely, since we don't usually create/close sockets at this speed.

The problem appears to be this:

async-thread keeps getting input messages very rapidly and passes them to zmq-thread.
zmq-thread keeps receiving the output messages rapidly and passes them to async-thread.
Every time a message comes to async-thread it will randomly pick one of them for further handling.

zmq-thread has to block until async-thread decides to process control message
Every time when async-thread decides to forward more than one message to zmq-thread per
each message handled coming from zmq-thread (ratio more than 1:1) the queue starts filling up
Random variation around this 1:1 ratio is guaranteed thus generating queue size
No matter how big the queue is, it has a good chance to fill up (or computer runs out of memory)
When queue is full deadlock occurs because async-thread is waiting for zmq-thread to take it's
input while zmq-thread is waiting for async-thread to process it's input

A prioritization can be done as suggested and implemented by @zh217 but it seems a bit of a hack indeed. A better solution would be deadlock free design where messages are flowing only one way. Two way communication is not necessary nor recommended because it introduces risk of deadlocks. I'm going to work on this concept.

I have created a design with no possibility of deadlocks and it should theoretically have also better performance characteristics. I will release it soon after I polish it a little bit and write some tests for it.

@sjlnk A deadlock-free design sounds great. Look forward to seeing what you come up with!


Update http4s-circe, http4s-dsl to 1.0.0-M40

About this PR
📦 Updates

org.http4s:http4s-circe
org.http4s:http4s-dsl

from 1.0.0-M38 to 1.0.0-M40
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.http4s" }
}]

labels: library-update, early-semver-pre-release, semver-spec-pre-release, version-scheme:early-semver, commit-count:1

Superseded by #289.