Task/create user form

What's this PR do?
It implements the (Django)Form to create users inside the administrador app.
Where should the reviewer start?
administracion/forms.py
administracion/tests.py
jp2_online/urls.py
How should this be manually tested?
python manage.py test administracion
Any background context you want to provide?
Please ignore the changes shown in perfiles_usuario, since they are in other PR. (They will be merged with this one once both are accepted)
This template was adapted ~stolen~ from Quickleft/Sprint.ly

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@c7b46b0). Click here to learn what that means.
The diff coverage is 91.19%.

@@            Coverage Diff             @@
##             develop      #13   +/-   ##
==========================================
  Coverage           ?   79.66%
==========================================
  Files              ?       35
  Lines              ?      295
  Branches           ?        0
==========================================
  Hits               ?      235
  Misses             ?       60
  Partials           ?        0

Impacted Files
Coverage Δ

administracion/models.py
80% <ø> (ø)

jp2_online/urls.py
0% <ø> (ø)

administracion/urls.py
0% <ø> (ø)

administracion/views.py
0% <ø> (ø)

administracion/admin.py
100% <100%> (ø)

administracion/forms.py
100% <100%> (ø)

perfiles_usuario/utils.py
100% <100%> (ø)

perfiles_usuario/migrations/0001_initial.py
100% <100%> (ø)

administracion/tests.py
100% <100%> (ø)

perfiles_usuario/models.py
100% <100%> (ø)

... and 2 more

Continue to review full report at Codecov.

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


Update typescript to version 5 when react-scripts will accept a higher version

Can't upgrade typescript due to this: https://github.com/facebook/create-react-app/issues/13080

CRA is effectively unmaintained. We should just migrate away from CRA - Consider using Vite?

We've fallen in love with Vite - @goastler bumped typescript to 5.x

Done


Interaction with IDR (or other IDR-like) framework?

The output peak file is a 3-column BED file without a score or signal.value field which eschews any ability to use this peak caller in conjunction with something like IDR if we have replicates. Is there any plans or way to have an output that can be used with something like this?

Hello @michaelbale,
Sorry for the delay to address this issue, we understand the importance of adding a fourth column for compatibility with IDR. However GoPeaks doesn't test the whole peak for significance, but rather the individual bins that make up a peak. One way to get one p-value per peak (similar to the output of macs2), is to somehow transform/combine a series of p-values in a peak into one value. We have yet to find an approach that does this, but are open to suggestions.

Hi @gartician; thanks for the reply! Basically the method identifies the boundaries of "significant islands" through co-dependent bins? One could potentially use like a harmonic-mean p-value or Brown's extension of the Fisher method (given that the p-values are dependent). But I'm not so sure how to test the validity of the test - I've used the methods in other instances, but they were much more well-behaved.

Hi @michaelbale, GoPeaks indeed identifies boundaries of significant bins but I'm debating whether bins are co-dependent. To re-iterate, the HMP and Brown's extension of Fisher seem very interesting and they assume the p-values are dependent. My question is that (biologically speaking) the significance of bins certainly depends on the genome position (adjacent bins usually form into a peak) and the biological system, but the binomial distribution assumes independent tests among bins. I am not sure which interpretation is more correct, but I wonder if those perspectives violate or are aligned with the assumptions of the HMP/Brown?

I guess it would depend on the size of bin and how gopeaks interprets the reads - i.e. if a read spanning multiple bins is counted within each bin it spans or if just the read start/end is counted. I also would imagine that the likelihood is dependent given that clusters of bins are significant in a local neighborhood as that would be the definition of a 'peak' in this instance. I guess to be clear, the tests are independent, but the p-values are not.

In GoPeaks if a read (technically a fragment, which is the content between R1 and R2) spans multiple bins then it is counted across the bins. The independent tests with dependent p-values is an interesting perspective and kinda makes sense. I can take a stab at implementing it in December and I will also gladly accept a PR but that's not required. Thank you for the constructive feedback!

Hi @gartician; I was wondering if you or anyone had had a chance to look into this recently! I didn't realize you mentioned accepting a PR; as much as I'd love to try - my familiarity with the go language is...not great.
I'm

Hi,
I have been using GoPeaks for CUT&RUN/ATAC-seq data. I would like to know if since like time, there has been a change to continue this conversation (testing different methods). Thanks!


Shuffle dataset

Hey, I am trying to shuffle the iris dataset using .shuffle(rng), and I'm not sure what to put as the rng parameter.
Here is my code:
    let (train, test) = linfa_datasets::iris().split_with_ratio(0.9);

    let model = DecisionTree::params().fit(&train).unwrap();

    let shuffed_test = test.shuffle(what do i put here);
    let predictions = model.predict(shuffed_test);

Can anyone help out with this? Thanks!

Ah that worked, thanks!


Avoid changing emacs default  keybindings while making modules

We should not change the default keybindings of emacs while making rational modules.
e.g., C-u which default for using arguments in emacs commands is changed in this line
https://github.com/SystemCrafters/rational-emacs/blob/cd2a9bc31310fd502e51a52da0d499a1da86f712/modules/rational-evil.el#L30
I am also evil user but never changed this keybinding for evil usage.
Users can make these changes in keybindings in their rational emacs config file. It should be philosophy while making other modules also.

We may need to expand the Contributing section of the README.org file to include some of these things. This one, the preference for customize-set-variable over setq, using defcustom rather than defvar for customizable parts of a module, etc.

Yep, I shouldn't have included that setting by default since it breaks default Emacs usage.  Feel free to send a PR to take it out!

Fixed in #119


doc: add validations for BLIS pipeline #408

Addresses https://github.com/systemslab/popper/issues/408

Thanks a lot @Franko1307 ! How hard do you think it would be to check the numeric results of the execution, that is, check the performance results of BLIS and the other alternatives and check if BLIS is taking less time to execute? The idea would be to codify in the validations, what it is claimed in the original paper.


TE build fails due to missing dependency

Cross posting https://github.com/NVIDIA/TransformerEngine/issues/171

Fixed by 4dbd64112e74dd82caeecf0c19a36819944ad788


Common crashes

So the menu keeps flickering, and when it doesn't, often the game crashes.

see #2

well same, but no crashes


uploading to play console

I am trying to upload my application to play console, but it returns reject. If some one has successfully uploaded app with this lib, can you share how did you do it?

https://github.com/tazik561/alt_sms_auto_fill/pull/4
It's fixed. let me push a new version

thank you


Add Redis 2.0 package

Copied code to new folders, will delete old packages in 3.0 branch after this is merged.
Hosted a redis instance and enabled the functional redis tests and verified they all pass. (Except for one that is asserting the wrong datetime format, but that one is broken with the old package too)
Fixes https://github.com/aspnet/Caching/issues/410

Did you fix the test with DateTime issue?
Rather than making this a complete copy, can you make it a move and have the old project file pull in the src files from the new location?

Did you fix the test with DateTime issue?

No, I can take a quick glance at it.

make it a move and have the old project file pull in the src files from the new location

Sure

Also copy over the baseline.netcore.json file.

:up: :date: Changed namespaces and changed DI call to AddDistributedStackExchangeRedisCache

Is there a way to get this from a nightly build or preview?

The nightly's are cumbersome but preview3 should be available soon.

Yes. https://github.com/aspnet/SignalR/pull/3089

FYI the nighty instructions are here if you're brave.


d3d debug runtime doesn't work with RenderDoc?

When RenderDoc Unreal Engine plugin is active, there's no DirectX debug runtime output and no break on error.
RenderDoc outputs this at the beginning (related?):
d3d11_device.cpp( 766) - Warning - Returning a dummy ID3D11InfoQueue that does nothing. This ID3D11InfoQueue will not work!
Do you think this problem could be caused by RenderDoc or do you think there's a bug in the UE plugin? If I disable the RenderDoc plugin (+restart) d3d debug outputs / break works fine.

Yes this is deliberate behaviour, RenderDoc takes control over the debug layer to make sure there's no interference between the application trying to control it and RenderDoc trying to control it.
If you want to enable the debug layer and include messages in frame captures, you can check the "Enable API Validation" capture option, and any messages will be included in the capture. You can then look them up in the replay UI and jump to the particular drawcall where they happened.
If you need the output in the debugger, the in-application API has an option to un-mute the output so you can see it, but this would just be the output, it wouldn't include any filters or break on error or anything like that.

I like to have RenderDoc plugin always loaded so that I can press a single button to fire a RenderDoc capture at any point. But I also want to have d3d debug breaks and debug output always active (every frame and especially during startup) to ensure that I haven't written any bugs that violate the API rules.
Un-mute is a partial solution. Unfortunately I need filters, as Unreal Engine is rendering 2d full screen passes without a vertex buffer using SV_VertexID to generate the quad geometry (d3d debug would complain about that several times every frame).
Could you take my ID3D11InfoQueue object or array of D3D11_INFO_QUEUE_FILTERs as a parameter?

This is the exact list of things I need to mute:
D3D11_MESSAGE_ID_OMSETRENDERTARGETS_INVALIDVIEW,
D3D11_MESSAGE_ID_QUERY_BEGIN_ABANDONING_PREVIOUS_RESULTS,
D3D11_MESSAGE_ID_QUERY_END_ABANDONING_PREVIOUS_RESULTS,
D3D11_MESSAGE_ID_CREATEINPUTLAYOUT_EMPTY_LAYOUT,
D3D11_MESSAGE_ID_DEVICE_DRAW_INDEX_BUFFER_TOO_SMALL,

I'm not sure exactly what you mean - do you mean the in-application API should accept those? That's not really possible as it's API and platform agnostic, so it can't have D3D constants or interfaces.
I think a possible compromise would be to expose a separate UUID that you could QueryInterface from that would give you the real ID3D11InfoQueue object instead of the wrapped dummy one. That way applications would have to opt-in knowing that they're going past the RenderDoc wrapping, and would have to obey additional restrictions to make sure nothing breaks. But that way you could set up the filters and break-on-error stuff. You would still have to enable the API validation capture option before creating the D3D device, or the D3D11_CREATE_DEVICE_DEBUG flag would be removed.
Bear in mind though, RenderDoc is not intended to be loaded 100% of the time since it has a bunch of extra overhead. If there's a reasonable compromise then I'm fine, but it's not going to be a design goal to support it so you're kind of on your own to some extent :smile:.

I am aware that RenderDoc has some CPU overhead. However we are mostly compute shader based and aren't issuing huge amount of draw calls, so this doesn't affect us. Our development computers also are high end i7 models. Some extra CPU overhead is fine, as long as it improves iteration time. I also tend to have d3d debug runtime always active on my development computer. It eats even more CPU cycles.
Exposing separate UUID for QueryInterface to get the real ID3D11InfoQueue object would be perfect. This would solve all our problems!

Give it a try with that UUID query. Note that like I say, you'll still have to request RenderDoc's API validation option or enable it before creating the device, so that the debug layer is turned on at all. You'll also have to unmute the infoqueue yourself if you don't unmute it via RenderDoc's option.

This should be resolved in v0.32. If something's still not right in the latest build then let me know and I'll re-open and investigate.


Fix the 'requests.exceptions.MissingSchema: Invalid URL '/': No schem…

When redirect.headers["Location"] == '/' the requests library throws requests.exceptions.MissingSchema: Invalid URL '/': No schema supplied. Perhaps you meant http:///

I think this should be generalized into handling all relative paths in Location headers, not just /. Could you please make the appropriate changes?

I will


Reorg

Before I understand, I need to understand what I need to understand

[x] test compile script
[x] a lightweight outline of testable expectations.
[ ] organization and structure for the testing code.
[ ] look at testing example in a production app

Do I have a function to provide contract endpoints? Not really, I have a doctest?
I should reproduce vesting?
What this test gives me?
I build some component, and it does not work. This gives me a working chunk of code to change inputs and see how my outputs change and what they are?

Do I need to make similar test for Emulator?
Only if I am to experiment with different Network Settings.

doctest does not have code outside Describe; but can we do Describe inside Describe?


Compiles casacore with Measures data.

Casacore comes with some data that is used at runtime, especially time and timezone info. This information is often needed, so we need to compile the package with it. Given that this dataset is to be retrieved with FTP, I downloaded it and installed it under /scratch/references. Maybe there is a better way of doing this (FTP within spack?).
https://github.com/casacore/casacore?tab=readme-ov-file#obtaining-measures-data

Not ideal but likely for our deployment a reasonable setup. Could we also add a build variant for the data path?

A variant must have a finite set of predefined values, so I so not see any way around hard-coding the path.

@pelahi I implemented the variant as you suggested.


Docker file ADD with URL should using cache without download

We have a Dockerfile like below:
...
ADD https://dl.bintray.com/mitchellh/consul/0.5.0_linux_amd64.zip /tmp/consul.zip
...

And docker will download consul.zip every time, and check whether to use cache:
Step 2 : ADD https://dl.bintray.com/mitchellh/consul/0.5.0_linux_amd64.zip /tmp/consul.zip
Downloading [==================================================>]  4.67 MB/4.67 MB
 ---> Using cache
 ---> 34992f807865

Why not just check the URL first to decide whether to use cache, that will save build time.
I know the remote zip file will be changed, but there has clear cache ability of docker build, so I think it's not a problem.

I think it's documented, or at least it should. It's kind of a design decision, because some servers do not respect the Cache/Expire & co HTTP headers. How would you decided to use cache or not without checking these headers ?

yea this has been discussed before. See this comment/issue:  https://github.com/docker/docker/issues/3672#issuecomment-63335989
Closing for now

I check the source code docker/builder/internals.go
calcCopyInfo do the actual download and hash calc:
247: 		ci.hash = origPath // default to this but can change
...
338:		ci.hash = tarSum.Sum(nil)

And the immediate image is like this, which records tarsum+sha256:${hash}
76db7611922b0844b471deece86ed7511afe0ee292712ff2b929f7370b45dac3   42 hours ago        /bin/sh -c #(nop) ADD tarsum+sha256:7f661c42f46b302d16a2a880f9a9b17a85d6f3c80dd6baaa56be8c2026f56564 in /tmp/consul.zip    4.67 MB

the probeCache function will lookup the image with the same hash value.
Why not delete ci.hash = tarSum.Sum(nil), in order to keep the hash value is origPath, and  probCache before do actual downloading.

@feiyang21687 I'm not following.  We can't do the hash calculation until we download it.

@duglin I know, but why not just only use path as hash, so we can check the image cache before downloading.

@feiyang21687 for the same reason we don't just look at the Last-Modified HTTP header - see: https://github.com/docker/docker/issues/3672#issuecomment-63335989
The decision was made to, basically, not trust things like the URL or timestamps, and instead actually check the data itself to make sure nothing has changed.
@erikh I assume you're still in that mode of thinking, right?

Aye, although a sum of the first n bytes would probably be sufficient for moderate sizes of n.
-Erik

On Apr 17, 2015, at 7:05 AM, Doug Davis<EMAIL_ADDRESS>wrote:
@feiyang21687 https://github.com/feiyang21687 for the same reason we don't just look at the Last-Modified HTTP header - see: #3672 (comment) https://github.com/docker/docker/issues/3672#issuecomment-63335989
The decision was made to, basically, not trust things like the URL or timestamps, and instead actually check the data itself to make sure nothing has changed.
@erikh https://github.com/erikh I assume you're still in that mode of thinking, right?
—
Reply to this email directly or view it on GitHub https://github.com/docker/docker/issues/12361#issuecomment-93992321.

@feiyang21687. I just found this thread because I wanted to know how ADD <url> works. And it's good that it checks the content. If you don't care about the contents, you can simply do a RUN wget <url> or RUN curl <url> (which only hashes the commandline = url).
But there are reasons where people need a file hash. For example I can use ADD http://debianmirror/dists/jessie/Release /tmp/tmpfile to make sure that the docker cache is only used if the debian mirror didn't change.

Why not add an option to ADD like ADD [--cache] <url> that allows the author to indicate the stability of the url?


Push images to Harbor

Description
Needed for https://github.com/stackabletech/infrastructure/issues/138
The commits before 2023-12-04 can basically be ignored, I ended up implementing a different solution.
Summary of the change:
I changed image signing to use the digest (parsed from the output of docker image push via awk) instead of the tag, because signing via tag is deprecated.
And the local image that's pushed to docker.stackable.tech is now pushed to oci.stackable.tech as well.
Pushing to both registries and signing all happens in one step. We could also separate it into multiple steps. Two things to consider if we decide to do this:

We need to make sure the local image is still present in the steps following bake command (not sure if that's the case)
We need to pass the parsed digest from the output of the docker image push command to the following "signing step"

Might be cleaner, but also a bit more complicated. I'm happy with both ways.
Successful run:
https://github.com/stackabletech/docker-images/actions/runs/7089451190
- [x] Changes are OpenShift compatible
- [x] All added packages (via microdnf or otherwise) have a comment on why they are added
- [x] Things not downloaded from Red Hat repositories should be mirrored in the Stackable repository and downloaded from there
- [x] All packages should have (if available) signatures/hashes verified
- [x] Does your change affect an SBOM? Make sure to update all SBOMs

Project renamed to sdp :slightly_smiling_face:


polish code

What is the purpose of the change
polish code
Brief changelog
incubator-dubbo/dubbo-registry/dubbo-registry-zookeeper/pom.xml
org.apache.dubbo.registry.zookeeper.ZookeeperRegistry

Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[ ] Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #3820 into master will increase coverage by 0.05%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##             master   #3820      +/-   ##
===========================================
+ Coverage     63.54%   63.6%   +0.05%
  Complexity       71      71
===========================================
  Files           704     704
  Lines         31065   31065
  Branches       5037    5037
===========================================
+ Hits          19741   19759      +18
+ Misses         9050    9034      -16
+ Partials       2274    2272       -2

Impacted Files
Coverage Δ
Complexity Δ

...he/dubbo/registry/zookeeper/ZookeeperRegistry.java
67.37% <100%> (ø)
0 <0> (ø)
:arrow_down:

...che/dubbo/remoting/transport/mina/MinaChannel.java
43.42% <0%> (-10.53%)
0% <0%> (ø)

...he/dubbo/remoting/transport/netty/NettyServer.java
69.64% <0%> (-3.58%)
0% <0%> (ø)

.../exchange/support/header/HeaderExchangeServer.java
66.98% <0%> (-0.95%)
0% <0%> (ø)

.../apache/dubbo/remoting/transport/AbstractPeer.java
63.04% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...dubbo/remoting/exchange/support/DefaultFuture.java
73.46% <0%> (ø)
0% <0%> (ø)
:arrow_down:

...he/dubbo/registry/multicast/MulticastRegistry.java
69.68% <0%> (+1.8%)
0% <0%> (ø)
:arrow_down:

...exchange/support/header/HeaderExchangeHandler.java
62.2% <0%> (+2.36%)
0% <0%> (ø)
:arrow_down:

...bo/rpc/cluster/support/FailbackClusterInvoker.java
70.49% <0%> (+3.27%)
0% <0%> (ø)
:arrow_down:

...e/dubbo/remoting/transport/netty/NettyChannel.java
62.35% <0%> (+4.7%)
0% <0%> (ø)
:arrow_down:

... and 5 more

Continue to review full report at Codecov.

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


chore: fix the way to use cybozu/renovate-config

We use cybozu/renovate-config as @cybozu, but it's not an official way that the document describes.
https://docs.renovatebot.com/config-presets/

Codecov Report

Merging #563 (04680a2) into master (52734ee) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #563   +/-   ##
=======================================
  Coverage   51.93%   51.93%
=======================================
  Files          24       24
  Lines        1036     1036
  Branches      193      193
=======================================
  Hits          538      538
  Misses        452      452
  Partials       46       46

Codecov Report

Merging #563 (04680a2) into master (52734ee) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #563   +/-   ##
=======================================
  Coverage   51.93%   51.93%
=======================================
  Files          24       24
  Lines        1036     1036
  Branches      193      193
=======================================
  Hits          538      538
  Misses        452      452
  Partials       46       46


Penguin strategy pairs added

This branch was really old so i rebased it to latest master

All of the strategies are called PenguinStrategyAsset1Asset2 e.g. PenguinStrategyPefiLink which is not part of standard naming scheme. This will make the test logic quite brittle if we had to add a special case just for this one exchange type, as currently we expect it in the format {ContractType}{Exchange}{Asset1}{Asset2}

Lots of compilation errors on this, probably typos. This branch needs a fixup before the next PR:

no longer accurate/up-to-date


status from smart door and window sensors

Hello,
This not really an issue but more an enhancement. I would like to know if it should be possible to have information from smart door and window sensors. Indeed I manage to obtain some informations from webhook but it should be great if we could obtain also status of these sensors.
This information is present from the api but I do not know if you could had this in pyatmo in order to obtain information in Home Assistant also. What I understand is that we can obtain many information via API, including the open/close state via a call to /homestatus method. JSON will look like the following :
{
"id": "70:ee:XXXXXX",
"type": "NACamDoorTag",
"name": "Door",
"battery_percent": 98,
"rf": 31,
"status": "open", <= this is the open/close state
"category": "door"
}
but is it possible to have informations from pyatmo and then integrate in Home Assistant ?

Door tags are already supported in Home Assistant. What exactly are you missing?

Feel free to take a look at this recipe in the meantime. https://community.home-assistant.io/t/netatmo-webhook-based-event-cookbook/182484/4?u=cgtobi

The reason why this has not been implemented in HA is that this is (at least partially) event triggered. When you have the state gathered from the Netatmo API and you're receiving webhook events alongside this is a viable option and would be pretty reliable and fast to respond. But if users for some reason don't receive webhook events the responsiveness would very bad and the data would rely completely on the polling frequency of the sensor and it would take up to 10 minutes if not longer to receive notification in HA about a window being open/closed etc.
So in my opinion it is better to rely solely on the webhook events for the sake of reliability and responsiveness.

Just to add a point. The only status that could be interesting to be added are the battery level for smart door sensors. For the opening as said by cgtobi I think it is better to solely relies on the events.

Thanks for your answer but I should miss something. I implemented the recipe and some webhook based event. But my windows is able to move several time whereas I do not close it ! And the information that my windows or my door is still open is available 2-3 or 5 minutes later if i am not wrong. When I am go out from my front door I receive only one information that my door moved but I do not have the information that my door is close or still open (or I have to wait 5 minutes...).
What is missing for me is to have the exact status of my door or my windows : open or close. I think almost all the windows or door sensor have this status. Like this in Home Assistant you have the exact status. For example, like this it is easier to make automation : stop heater when windows is open. And as mentioned before my windows is able to move several time without be closed.

I will take a second look when I get access to some of those sensors. But this wont happen soon as it would also require changes in HA to implement any of this.

I have one of those sensors so I'll test this but I think this can be with a template sensor listening to 'tag_open' event. Something like this:
template:
  - trigger:
      - platform: event
        event_type: netatmo_event
        event_data:
          type: tag_open
    binary_sensor:
      - name: "Door Open"
        # We use auto_off, so just set it to true on each trigger
        state: "true"
        device_class: door
        # Automatically turn off 60 seconds after the last event
        auto_off: 60

Thanks for all your propositions but you do not have the status with the template sensor.
You will have the information that your door is open but if you let the door open  you do not have new event and since you turn off your binary sensor then your door appears closed whereas it is still open !

I understand that you desire such sensors, but due to the polling nature of the webservice and the call limits of the API don't allow reliable sensors. I still recommend building sensors based on the webhook events.

I played with my tags and I remember why I stopped using them. They use a mix of both the event hooks and the state to provide their informations. Here my observations:

When you open your door, the tag state is changed to open (no event published)
If it stays open for  time longer than the one define in the security app, then an event is published
When the door is closed, the tag state is changed to close (no event published)
(of course this can change if the tag is defined for another usage)

Currently pyatmo supports the change of state via the module_opened/module_motion_detected methods and the hooks events are supported by HASS. But to use usefully the tags, HASS would need to be able to merge the data from both the state and the events. But even so, the polling of the states are limited to the poll frequency.
PS: @journaldethomas congrats for your work on your YT channel, I subscribed to it recently always looking for new idea to improve my setup

There has not been any update for over a year. I'm closing this now. Pleas reopen if this persists to be an issue or open a new issue.


feat: Add happy path test cases for integration service

Signed-off-by: Jing Qi<EMAIL_ADDRESS>Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Issue ticket number and link
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("[test_id:01] DEVHAS-62 devfile source")
[ ] I have updated labels (if needed)

/retest

/retest

/retest

/retest

Looks good aside the small comment

/lgtm


famer get 0.25 and 1.75 when pooling

we are running a pool, one of our user in pool reporte that he get 0.25 and 1.75 while farming in the pool.

Do you have any logs or proof of this happening. I believe that this is an issue with your pools code or your user not understanding or lying.

Do you have any logs or proof of this happening. I believe that this is an issue with your pools code or your user not understanding or lying.

Hi Jack, we have a good comunication with this user, he has send us detail information and all that shows he get real 0.25+1.75 and he is online the our pool. is there any way to serch more clues ?
thanks

Can i see the logs?

Do you have any logs or proof of this happening. I believe that this is an issue with your pools code or your user not understanding or lying.

Hi Jack, we have a good comunication with this user, he has send us detail information and all that shows he get real 0.25+1.75 and he is online the our pool. is there any way to serch more clues ?
thanks

Can i see the logs?

Do you have any logs or proof of this happening. I believe that this is an issue with your pools code or your user not understanding or lying.

Hi Jack, we have a good comunication with this user, he has send us detail information and all that shows he get real 0.25+1.75 and he is online the our pool. is there any way to serch more clues ?
thanks

yes i will share you by email

Can i see the logs?

Do you have any logs or proof of this happening. I believe that this is an issue with your pools code or your user not understanding or lying.

Hi Jack, we have a good comunication with this user, he has send us detail information and all that shows he get real 0.25+1.75 and he is online the our pool. is there any way to serch more clues ?
thanks

yes i will share you by email

I need more information.
and i need to see his logs

I think this is an issue with your pool and if you can't provide more information the issue will be closed

@ppolewicz
That user claims it instead means the user get 1.75EXH, right?

As far as I heard, if the pool doesn't claim the reward in 2h, then the farmer who authored the block may claim it.


[Bug] Generate two different blob id when build RAFS Filesystem in Native Mode from a Directory and from a tar.gz File

test branch: stable/v2.2
test datasource: cifar-10-python.tar.gz
when Build RAFS Filesystem in Native Mode from a Directory VS from a tar.gz File, the output like the below:

The two blob files generated are valid, there's no bug here.
The difference is caused by the order to dump data of files.

With -t dir-rafs, nydus-image walks directories and proccesses all data files. The order to process files are determined by OS, which is sorted by file name in ascend mode.
With -t targz-rafs, nydus-image walks tar headers in the tar file. The order to process files from tar file is determined by the tar stream, it's sorted by name in descend mode by default.
We can direct tar to generate tar stream in ascend mode by tar --sort name.
With a tar file generated by tar --sort name, -t targz-rafs and -t dir-rafs generates the same data blob.

On the other hand, the default order given by tar tool is not optimal for nydus, which may cause performance drop to data prefetch. It would be better to dump files from tar in ascend mode, but haven't found an easy way to achieve that yet.


What is the correct way to use exiftool-vendored with Parallelism

The Question:
In the case of modifying 10,000+ photos: Do I have to manually create a throttling process to only process 1 photo with exiftool.write at the time and await each promise? Or does exiftool-vendored have auto queueing during exiftool.write on a large amount of photos?
The background & reason I can't use the Pearl CLI:
Since exiftool-vendored has maxprocs to help the CPU from being overloaded with Parallelism, I'm wondering how to correctly use exiftool-vendored.
I have a complicated process (where I need to look at about 500 folders in order, check the date of the first photo of the previous folder and apply changes depending on if this date is the same as the first photo of the next folder.)
Also, since I am only a NodeJS and JavaScript developer I was hoping to use this library instead of the pearl CLI.
In my case I am planning to write a script that does these things synchronously:

do some date checking on relative sibling folders
make async modifications (with exiftool.write) to photos in the target folder (depending on the result of the checking in prev step)
await all these changes and go on to the next folder after

I don't anticipate a work overload since each folder doesn't have that many photos.
However, when there is a folder with a very large amount of photos to be modified in the above step 2, and my CPU is pushed to the max limit of the exiftool-vendored:

will it automatically start queueing the async exiftool.write calls I made and wait until the CPU has regained some breathing space?
Or will I have to manually also create a throttling process to only process 1 photo with exiftool.write at the time and await each modification?

Thanks for asking on the forum.
Note that maxprocs limits the number of concurrent instances of ExifTool that will run at any given time. If you ask at a rate that is higher than that, your requests will be enqueued (and the promises will eventually resolve or reject). If you have enough RAM, and you've configured node to have enough heap, you might be able to enqueue 10,000 tasks without anything falling over. Did you try it? Make sure you have a backup (or two) of all your images, first!
Really, this is not an ExifTool-specific problem you're dealing with, this is just general concurrency. You should be able to find a lot of tutorials about handling concurrent tasks, as it's a general CS topic. Closing.


Synchronization Issue Between Multiple Cropper Instances on the Same Page

Synchronization Issue Between Multiple Cropper Instances on the Same Page
Environment

OS: MacOS Ventura 13.4.1
Browsers:

Safari: Functions correctly
Chrome: Encounters an issue

Issue Description
On a single page of my application, there are multiple cropper instances, each intended to have its unique selection area. However, changes in the first instance unintentionally affect others.
Problem Analysis
The issue originates from identical IDs assigned to the mask elements (hole). This causes all instances to refer to the same mask, disrupting their individual functionalities.
CodeSandBox

View the issue demonstration in this CodeSandBox

Screenshots

Safari (Functions correctly)

chrome (Encounters an issue)

Thanks for the detail and finding the cause 🙏 Please try 11.0.2

Thank you for your quick response!
The problem has been resolved.
And I also appreciate this great repository. 🚀


Catch reported number of Timepix events exceeding buffer size

Raw Timepix3 data is saved as ragged arrays with a fixed (but configurable) buffer size with the actual number of events recorded in a data.size key. While the device should prevent this from ever exceeding the buffer size, there is some data floating around where this happened. This PR makes sure the component can handle that, and in addition prints a warning as this is unlikely to be desired from data quality point of view.
Also includes a minor change to move the centroid_size column from the set of extended columns to default columns. Apart from someone iterating over columns (please don't), this should not break any existing columns.
@bj-s

LGTM


Upload Transactions Endpoint

Objective
A user should be able to pull down an OFX or QFX file of their statements or transactions from the bank and then upload it to BudgetSimple. Transactions and transaction meta should be displayed by the front end as well as running balance amounts.
Rough guide I'm following: https://blog.devgenius.io/django-csv-uploader-d28537874f4e
Python Library: https://github.com/jseutter/ofxparse
Library examples: https://snyk.io/advisor/python/ofxparse/example
Design
These changes will affect the Transactions model in Transactions/. Namely:

is_credit
transaction_type
amount
posted_date*
description

Using ofxparse:
from ofxparse import OfxParser

with open('File.qfx') as f:
    ofx = OfxParser.parse(f)

account = ofx.account  # An Account object

# Account

account.account_id        # The account number
account.routing_number    # The bank routing number
account.type              # An AccountType object
account.statement         # A Statement object
account.institution       # An Institution object

# Statement

statement.start_date          # The start date of the transactions
statement.end_date            # The end date of the transactions
statement.balance             # The money in the account as of the statement date
statement.available_balance   # The money available from the account as of the statement date
statement.transactions        # A list of Transaction objects

# Transaction

for transaction in statement.transactions:
  transaction.payee
  transaction.type
  transaction.date
  transaction.user_date
  transaction.amount
  transaction.id
  transaction.memo
  transaction.sic
  transaction.mcc
  transaction.checknum

Transaction/views.py adding:
from ofxparse import OfxParser

class OfxUploader(APIView):
    template_name = 'csv_uploader.html'

    def post(self, request):
        context = {
            'messages':[]
        }

        ofx_file = request.FILES['ofx']
        with open(ofx_file) as f:
            ofx_data = OfxParser.parse(f)

        for transaction in ofx_data:
            try:
                Transactions.objects.create(
                    transaction_type = transaction.type,
                    amount = transaction.amount,
                    posted_date = transaction.date,
                    description = transaction.payee
                )
            except Exception as e:
                context['exceptions_raised'] = e

        return render(request, self.template_name, context)

Transaction/urls.py adding:
from .views import (
    TransactionView, TransactionDetailView, OfxUploader,
)

router = routers.DefaultRouter()

#API
router.register(r'ofx', TransactionView, basename='ofx')

urlpatterns = [
    path('', TransactionView.as_view(), name='index'),
    path('<str:transaction_id>/', TransactionDetailView.as_view()),
    url('^ofx-uploader/$', OfxUploader.as_view(), name='ofx-uploader'),
]

Oh boy, almost done with this. Commits incoming.

More or less done here: https://github.com/boneburrito/budgetsimple/pull/30


Vagrant Issue

always get an output like:
install -D -m4550 -oroot -glrun lrun /usr/local/bin/lrun
and couldn't get any output through
sudo lrun --uid 1000 --gid 1000 --max-cpu-time 1.5 bash -c ':(){ :;};:' 3>&1
and if without sudo, will get -bash: /usr/local/bin/lrun: Permission denied
are these all expected?

The first one is unexpected. What's the output of sudo lrun --debug --uid 1000 --gid 1000 --max-cpu-time 1.5 bash -c ':(){ :;};:' 3>&1 ?
The second is possibly expected. You may forget to make the current user a member of lrun group or relogin the user.

Oh, the first one is also expected indeed. It seems sudo or the shell have some tricky behavior, making lrun believe that fd 3 is not writeable. You can try this command instead:
sudo bash -c "lrun --uid 1000 --gid 1000 --max-cpu-time 1.5 bash -c ':(){ :;};:' 3>&1"

I think I can close it now. Free free to re-open if you have any question.


Error when creating a new training data with windows 10 (wsl)

Hi,
I am trying to create a training data in the batch mode following https://grobid.readthedocs.io/en/latest/Grobid-batch/
Since my OS is Windows 10, I use WSL to be able to handle it in Linux. Java version 1.8.0_311.
To test, I have created two folders under my grobid directory: /grobid/GROBID-RETRA/input (containing 10 sample PDFs where the largest one is 3000 KB) and /grobid/GROBID-RETRA/output
And run the following:
GHUM-L-E144KVB6:/mnt/host/c/grobid# java.exe -Xmx4G -jar grobid-core/build/libs/grobid-core-0.7.1-onejar.jar -gH grobid-home -dIn GROBID-RETRA/input -dOut GROBID-RE TRA/output -exe createTraining
Here is what I got once running it:
okt 10, 2022 9:29:06 PM org.grobid.core.main.GrobidHomeFinder getGrobidHomePathOrLoadFromClasspath
WARNING: No Grobid property was provided. Attempting to find Grobid home in the current directory...
okt 10, 2022 9:29:06 PM org.grobid.core.main.GrobidHomeFinder findGrobidHomeOrFail
WARNING: ***************************************************************
okt 10, 2022 9:29:06 PM org.grobid.core.main.GrobidHomeFinder findGrobidHomeOrFail
WARNING: *** USING GROBID HOME: C:\grobid\grobid-home
okt 10, 2022 9:29:06 PM org.grobid.core.main.GrobidHomeFinder findGrobidHomeOrFail
WARNING: ***************************************************************
okt 10, 2022 9:29:06 PM org.grobid.core.main.GrobidHomeFinder getGrobidHomePathOrLoadFromClasspath
WARNING: No Grobid property was provided. Attempting to find Grobid home in the current directory...
okt 10, 2022 9:29:06 PM org.grobid.core.main.GrobidHomeFinder findGrobidHomeOrFail
WARNING: ***************************************************************
okt 10, 2022 9:29:06 PM org.grobid.core.main.GrobidHomeFinder findGrobidHomeOrFail
WARNING: *** USING GROBID HOME: C:\grobid\grobid-home
okt 10, 2022 9:29:06 PM org.grobid.core.main.GrobidHomeFinder findGrobidHomeOrFail
WARNING: ***************************************************************
okt 10, 2022 9:29:06 PM org.grobid.core.main.GrobidHomeFinder findGrobidConfigOrFail
WARNING: Grobid config file location was not explicitly set via 'org.grobid.config' system variable, defaulting to: C:\grobid\grobid-home\config\grobid.yaml
okt 10, 2022 9:29:06 PM org.grobid.core.main.LibraryLoader load
INFO: Loading external native sequence labelling library
okt 10, 2022 9:29:06 PM org.grobid.core.main.LibraryLoader load
INFO: Loading Wapiti native library...
okt 10, 2022 9:29:06 PM org.grobid.core.main.LibraryLoader load
INFO: Native library for sequence labelling loaded
okt 10, 2022 9:29:06 PM org.grobid.core.lexicon.Lexicon initDictionary
INFO: Initiating dictionary
okt 10, 2022 9:29:06 PM org.grobid.core.lexicon.Lexicon initDictionary
INFO: End of Initialization of dictionary
okt 10, 2022 9:29:06 PM org.grobid.core.lexicon.Lexicon initNames
INFO: Initiating names
okt 10, 2022 9:29:06 PM org.grobid.core.lexicon.Lexicon initNames
INFO: End of initialization of names
okt 10, 2022 9:29:07 PM org.grobid.core.lexicon.Lexicon initCountryCodes
INFO: Initiating country codes
okt 10, 2022 9:29:07 PM org.grobid.core.lexicon.Lexicon initCountryCodes
INFO: End of initialization of country codes
Pdf_FilenamePeeters_3289944_Original.pdf
Pdf_FilenamePeeters_3289945_Original.pdf
Pdf_FilenamePeeters_3289948_Original.pdf
Pdf_FilenamePeeters_3289953_Original.pdf
Pdf_FilenamePeeters_3289954_Original.pdf
Pdf_FilenamePeeters_3289955__Original.pdf
Pdf_FilenamePeeters_3289963_Original.pdf
Pdf_FilenamePeeters_3289965_Original.pdf
Pdf_FilenamePeeters_3289969_Original.pdf
Pdf_FilenamePeeters_3290025_Original.pdf
10 files to be processed.
GROBID-RETRA\input\Pdf_FilenamePeeters_3289944_Original.pdf
okt 10, 2022 9:29:07 PM org.grobid.core.jni.WapitiModel init
INFO: Loading model: C:\grobid\grobid-home\models\fulltext\model.wapiti (size: 26707735)
[Wapiti] Loading model: "C:\grobid\grobid-home\models\fulltext\model.wapiti"
Model path: C:\grobid\grobid-home\models\fulltext\model.wapiti
okt 10, 2022 9:29:14 PM org.grobid.core.engines.Engine batchCreateTraining
SEVERE: An error occured while processing the following pdf: GROBID-RETRA\input\Pdf_FilenamePeeters_3289944_Original.pdf
org.grobid.core.exceptions.GrobidException: [GENERAL] An exception occurred while running Grobid training data generation for full text.
        at org.grobid.core.engines.FullTextParser.createTraining(FullTextParser.java:1452)
        at org.grobid.core.engines.Engine.createTraining(Engine.java:462)
        at org.grobid.core.engines.Engine.batchCreateTraining(Engine.java:566)
        at org.grobid.core.engines.ProcessEngine.createTraining(ProcessEngine.java:379)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.grobid.core.utilities.Utilities.launchMethod(Utilities.java:339)
        at org.grobid.core.main.batch.GrobidMain.main(GrobidMain.java:189)
Caused by: org.grobid.core.exceptions.GrobidException: [PDFALTO_CONVERSION_FAILURE] PDF to XML conversion failed on pdf file GROBID-RETRA\input\Pdf_FilenamePeeters_3289944_Original.pdf
        at org.grobid.core.document.DocumentSource.processPdfaltoThreadMode(DocumentSource.java:209)
        at org.grobid.core.document.DocumentSource.pdfalto(DocumentSource.java:155)
        at org.grobid.core.document.DocumentSource.fromPdf(DocumentSource.java:64)
        at org.grobid.core.engines.FullTextParser.createTraining(FullTextParser.java:1001)
        ... 9 more

So, for each pdf I got the same error.
To me, the error is not informative at all so what steps should I follow to dig into this? Or am I missing something?
Thanks in advance!
Mehmet

Hi @malee1382 I'm not sure the WSL works fine with Grobid.
I wonder which OS type does Java returns.
Try to run this in WSL?

Just copy it in a file called test.java:

public class test {
    public static void main(String[] argv) {
        System.out.println(System.getProperty("os.name"));
        System.out.println(System.getProperty("os.version"));
        System.out.println(System.getProperty("os.arch"));
    }
}

And then compile javac test.java and then run java test, and let me know what is the result?

If this program result in Linux then could you also try to run the following:
Enable the WSL mode and try to run pdfalto from the shell:
YOURPATH/pdfalto -fullFontName -noLineNumbers -noImage  -annotation  -outline  -filesLimit 2000  PATH_TO_PDF PATH_TO_OUTPUT

Dear Luca,
Many thanks for your prompt reply!
Indeed, when I ran the test.java it still returns windows. I also tried it with my intellij where I can set up wsl, it prints linux. So apparently, I am still missing something when setting up my wsl.
Instead, now I have tried it with docker with the following compose file:
version: '3'
services:
grobid:
image: lfoppiano/grobid:0.7.1
container_name: grobid
restart: unless-stopped
ports:
- "8070:8070"
volumes:
- ./:/opt/grobid/retrain
,where retrain contains all the necessary folders (e.g., grobid-home, core, input (having the sample PDFs), output).
Worked very smoothly!
Many thanks again!

That's great.


FakeFilter API doesn't check for subdomain

I use this quick helper function in my app to first check if I can validate the email using the always-updated API and then fallback to my local package:
import { isFakeEmailOnline, isFakeEmail as isFakeEmailLocal } from 'fakefilter';

export default async function isFakeEmail(email: string) {
	const onlineResponse = await isFakeEmailOnline(email);
	console.log('local:', isFakeEmailLocal(email));
	if (onlineResponse === null) {
		return !!isFakeEmailLocal(email);
	}
	console.log('response:', onlineResponse);
	return !!onlineResponse.isFakeDomain;
}

And this is the response in the console:
7:49:49 AM [vite] page reload src/lib/server/utils/isFakeEmail.ts (x4)
7:49:49 AM [vite-plugin-svelte] ssr compile done.
package files    time     avg
my-app      1   1.6ms   1.6ms
# Here I check email<EMAIL_ADDRESS>local: tpwlb.com
response: {
  retcode: 200,
  isFakeDomain: 'tpwlb.com',
  details: {
    provider: '10minutemail.com',
    firstseen:<PHONE_NUMBER>,
    lastseen:<PHONE_NUMBER>,
    randomSubdomain: false
  }
}
# Here I check email<EMAIL_ADDRESS><-- notice "sub" in domain
local: tpwlb.com
response: { retcode: 200, isFakeDomain: false, details: null }

The online response is correct when simply using the normal (fake) email address<EMAIL_ADDRESS>but if I add a subdomain to the email address only my local response is correct.
Now - granted it doesn't affect my app, as I doubt many of these providers are using subdomains anyway, and thus they will never receive the verification email in order to gain access, but I wanted to flag this for a future update to the API.

https://github.com/7c/fakefilter/issues/46


Pre request filter (making a REST call with webclient) fails when the request is multipart

Describe the bug
I have a use-case where for some request Gateway needs to call a rest endpoint (middle-service) and based copy the headers from the response and add to the request to the end downstream service (end-service).
Flow:

I implemented a pre request filter for the same in Spring cloud gateway.
While this work fine for normal requests, it fails when I try to upload a file with this flow and have the following error:
2020-03-09 00:27:15.381 ERROR 32440 --- [ctor-http-nio-3] a.w.r.e.AbstractErrorWebExceptionHandler : [b5048ec0-5]  500 Server Error for HTTP POST "/upload"

reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response
	Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
	|_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
	|_ checkpoint ⇢ HTTP POST "/upload" [ExceptionHandlingWebHandler]
Stack trace:

or
2020-03-09 00:11:38.247 ERROR 32440 --- [ctor-http-nio-3] a.w.r.e.AbstractErrorWebExceptionHandler : [b5048ec0-4]  500 Server Error for HTTP POST "/upload"

io.netty.handler.codec.EncoderException: java.lang.IllegalStateException: unexpected message type: PooledSlicedByteBuf
	at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:107) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final]
	Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
	|_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
	|_ checkpoint ⇢ HTTP POST "/upload" [ExceptionHandlingWebHandler]
Stack trace:

Sample
All service are using 2.2.5.RELEASE boot version.
https://github.com/dhananjay12/spring-cloud/tree/master/spring-routing/spring-cloud-gateway-filters.
Details are given in the README file.
Gateway application.yml:
spring:
  cloud:
    gateway:
      routes:
        - id: end-service
          uri: http://localhost:8090
          predicates:
            - Path=/**
          filters:
            - name: RequestSize
              args:
                maxSize: 5000000
      default-filters:
        - MiddleServiceFilter
app:
  middle-service-url: http://localhost:8085/check

If I remove the filter, everything works fine. Tried Webclient initialization by many ways like WebClient.builder() or WebClient.builder().clientConnector(new ReactorClientHttpConnector(              HttpClient.newConnection().compress(true))) but no luck.
Is there something special that needs to be done for filters?

Closing in favor of stack overflow. Please don't cross post. https://stackoverflow.com/questions/60593150/pre-request-filter-making-a-rest-call-with-webclient-fails-when-the-request-is

Stackoverflow link is unavailable.Can you please provide the solution.


feat: add cs

What is the purpose of this pull request?

What problem is this solving?

Types of changes

[ ] Feat: (new functionality)
[ ] Bug fix: ([#ref number] non-breaking change which fixes an issue)
[ ] Chore: (improvements that will not reflect in production behaviour)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Requires change to documentation, which has been updated accordingly.

#93  👈
main

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

Join @keeganpotgieter and the rest of your teammates on  Graphite


How to prevent drag from child div inside draggable parent?

Hello Everyone,
I have a draggable div inside which their is a handler div which is use to resize the div. Issue i am facing is when i try to drag the div from the handle the whole block is being dragged.
what i want to achieve:
prevent drag of the block when being dragged from the handle only.
I tried:
onDragStart={(e) => {
     e.preventDefault();
     e.stopPropagation();
 }}
i tried this on the handler div but it didn't work.

I have reproduce the bug using one of the example from react-dnd itself
here
Thank you all for any suggestion or solution.

test

@webweaver222  ???

https://react-dnd.github.io/react-dnd/examples/nesting/drag-sources
Try canDrop spec member of useDrag.


Auto import in WebStorm not working

I'm trying to create two libraries, which one of the uses the second.
Everything is working fine, except one very annoying issue - I have to explicitly type the "import" statement for the other library.
WebStorm does not auto-complete it like it does for other libraries.
Am I the only one experiencing this issue ? is this a bug/configuration issue ?
Thanks

I was finally able to resolve that by changing tsconfig to
{
...
"lib": [
"es2016",
"dom"
]
...
}
In case someone will find it useful.

@AdiDahan — Thank you for the update, much appreciated! 👍


Change h5 to h3 in bordered list examples

Description
Fixes DG-417

Codecov Report

Merging #208 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #208   +/-   ##
========================================
  Coverage    91.52%   91.52%
========================================
  Files          134      134
  Lines         2147     2147
========================================
  Hits          1965     1965
  Misses         182      182

Impacted Files
Coverage Δ

src/App/Documentation/core/Lists/index.js
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


In azure storage blob version 12.7.0 or latest version, how to implement rename file object in server side

I have implemented rename file feature as like below:-
`BlobContainerClient blobContainerClient = AzureHelper
.getBlobContainerClient(AzureHelper.getBlobServiceClient(serviceEndpoint, account, key), container);
BlobClient sourceBlob = blobContainerClient.getBlobClient(oldDestFile);
if (sourceBlob.exists()) {
String sasToken = generateSasToken(sourceBlob);
			BlobClient destBlob = blobContainerClient.getBlobClient(newDestFile);

			destBlob.copyFromUrl(sourceBlob.getBlobUrl() + "?" + sasToken);

			if (destBlob.exists()) {

				sourceBlob.delete();

			}

		}`

But in this solution, it has file/blob size restriction as described in this page:-
https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url
The size of the source blob can be a maximum length of up to 256 MiB.
Can you please help me for any alternative method for rename file support in blob-storage SDK version 12.7.0 or latest?

Hi, @harisingh-highq. Thank you for your question. Copy and delete is the correct method of renaming a blob. If you want to do so for larger blobs, you need to use the asynchronous copy and check periodically for its completion.

@rickle-msft
Thank you for your quick response.
You mean to say below solution for larger blob copy:-
SyncPoller<BlobCopyInfo, Void> poller = destBlob.beginCopy(sourceBlob.getBlobUrl(), null); 				PollResponse<BlobCopyInfo> poll = poller.waitForCompletion();
Is there any other way you were supposed?

That is correct. There is not currently another way to rename a blob.

@rickle-msft
Thanks for the confirmation.


Drab.run_handler no more working in Phoenix 1.3

I follow your guide on the demo page : https://tg.pl/drab/nojquery
(by the way the demo page doesn't work either)
My button :
<a class="waves-effect waves-light btn grey" onclick="Drab.run_handler('click', 'clicked', {click: 'clickety-click'});">
My method :
  def clicked(socket, payload) do      socket |> Drab.Browser.console("You've sent me this: #{payload |> inspect}")   end
The error I get :
Transport:  Phoenix.Transports.WebSocket   Parameters: %{"event" => "click", "event_handler_function" => "clicked", "payload" => %{"click" => "clickety-click"}, "reply_to" => "8a0affa7-1dd2-4e9d-95d8-9441897eb747"
[error] Drab Handler failed with the following exception:   ** (Protocol.UndefinedError) protocol Enumerable not implemented for nil. This protocol is implemented for: ...
After closing the js pop up I get a callback :
[debug] INCOMING "execjs" on "__drab:same_path:/packs/1" to Drab.Channel  Transport:  Phoenix.Transports.WebSocket
Parameters: %{"ok" =>["SFMyNTY.g3QAAAACZAAEZGF0YWgCZ2QADW5vbm9kZUBub2hvc3QAAA6mAAAAAAByAANkAA1ub25vZGVAbm9ob3N0AAAAj__RLAABgxyz62QABnNpZ25lZG4GAAPPMjNfAQ.2KVP7lyR4fOT_q4tZNBGdCA3dzZFZX5fXWMV_gc-Xjg", nil]}

Hi Grych
is it fixed and should I update my dependencies to get the correction ?
txs

The fix will be in incoming release (probably next week), or you may now try with the github "master"


need to button add to cart and rating in home product

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Users can click the "Add to Cart" button on any product page to store that item in a temporary virtual cart.
The cart saves product details like name, quantity, price, and any selected options (size, color, etc.).
Items remain in the cart until the user completes the purchase or removes them manually.

Use Case
Customer: The individual browsing and selecting products to potentially purchase.
System: The e-commerce platform managing the inventory, cart, and checkout functions.
Benefits
No response
Priority
High
Agreements

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC contributor
[X] I'm a Hacktoberfest contributor
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

@Tejashri-Taral  assign the issue ..


Custom fields (Eta support)

Eta projects which contain Java sources require a java-sources: field in the cabal file -
library
  java-sources:
      java/eta/parser/Utils.java

Does hpack provide any support for custom cabal fields? That would be ideal to avoid having to PR this as a new feature. Otherwise, we would want to look into adding the java-sources field to component stanzas.

This is only tangentially related, but: I thought custom Cabal fields were supposed to start with x-. Does Cabal parse packages with java-sources correctly?

@tfausak Ah you are correct, when I run it through the cabal parser I get -
PWarning "Unknown fields: java-sources ...

The parse succeeds and java-sources is omitted from the parse tree.

@carymrobbins What exact behavior would we want here from hpack?

Any example cabal files that I could take a look at?

@carymrobbins hpack-0.24.0 adds support a verbatim cabal escape hatch.  With this you can include custom fields, e.g.:
library:
  verbatim:
    java-sources: java/eta/parser/Utils.java

Can you try if this works for you?

@carymrobbins I'm closing this, but please still let me know how it goes + don't be shy to open an other issue if needed (I'll try to be more responsive in the future!).

@sol I structure it like this I get a cryptic error -
  verbatim:
    java-sources:
      - java/eta/parser/Utils.java

package.yaml: Error while parsing $.library.verbatim - expected String or Object, encountered Object

The workaround is to structure it as you did -
  verbatim:
    java-sources: java/eta/parser/Utils.java

Note that for multiple entries, you can just omit the - prefixes and it works well (I assume it is just interpreted as a string literal this way) -
  verbatim:
    java-sources:
      java/eta/parser/Foo.java
      java/eta/parser/Bar.java

Hey, the error message is indeed wrong.  Thanks a lot for pointing this out!  I'll see were our generic machinery chocks.
Currently, only String, Number, Bool and Null are accepted as values for the object.  Top level, to verbatim you can use an object or a string.
And yes, multi-line string literals are what you can use if you have a list.

One more thing, if you need the newlines in the generated output change it to:
  verbatim:
    java-sources: |
      java/eta/parser/Foo.java
      java/eta/parser/Bar.java

Error messages are fixed in 793f131.


viva wallet pos plugin error

when the First Sale transaction is proceeding ,after the card reading the transaction is automatically  closed but its added to the transactions list. and the next another transaction processing time its automatically reflect the first transaction .
attached a video preview of using the plugin  in  a simple project.
https://github.com/user-attachments/assets/9086ba2e-1a75-4f27-8259-4bc033b9417c

try this
https://gofile.io/d/yMHabA
select the desired compiler in the installer

Can you share the code of your sale function, eg:
void _sale() async {
try {
TransactionResponse response = await _pos.sale(
clientTransactionId: 'Invoice 1234',
amount: 10.00,
showRating: false,
showReceipt: false,
showTransactionResult: false,
);
_resultMessage(response.message);
} catch (e) {
_resultMessage(e.toString(), error: true);
}
}
I have a bunch of production devices and it's working as expected.
Denis

void _sale() async {
try {
TransactionResponse response = await _pos.sale(
clientTransactionId: widget.salesData.invoiceNo,
amount: widget.payment.amount,
showRating: false,
showReceipt: false,
showTransactionResult: false,
);
print("respons-----$response");
if (response.status == TransactionStatus.success) {
VivaWalletRes viva = VivaWalletRes(
clientTransactionId: response.transactionId ?? '',
verificationMethod: response.verificationMethod ?? '',
rrn: response.rrn ?? '',
cardType: response.cartType ?? '',
referenceNumber: response.referenceNumber ?? '',
accountNumber: response.accountNumber ?? '',
authorisationCode: response.authorisationCode ?? '',
tid: response.tid ?? '',
aid: response.aid ?? '',
orderCode: response.orderCode ?? '',
shortOrderCode: response.shortOrderCode ?? '',
transactionDate: response.transactionDate,
transactionId: response.transactionId ?? '',
);
if (mounted) Navigator.pop(context,viva);
} else {
Common.toast(response.message);
if (mounted) Navigator.pop(context);
}
} catch (e) {
print(e);
}
}
On Wed, Sep 4, 2024 at 7:52 PM drigler @.***> wrote:

Can you share the code of your sale function, eg:
void _sale() async {
try {
TransactionResponse response = await _pos.sale(
clientTransactionId: 'Invoice 1234',
amount: 10.00,
showRating: false,
showReceipt: false,
showTransactionResult: false,
);
_resultMessage(response.message);
} catch (e) {
_resultMessage(e.toString(), error: true);
}
}
I have a bunch of production devices and it's working as expected.
Denis
—
Reply to this email directly, view it on GitHub
https://github.com/drigler/viva_wallet_pos/issues/4#issuecomment-2329208030,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BABF6GVGCSE7CZVZG5UTBVTZU4JTXAVCNFSM6AAAAABNULTIY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZGIYDQMBTGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

I was able to reproduce your issue. The problem is with the latest version of viva terminal. I need some time to see what we could do.

hi, I don't know if it's related but I have this in my callback url even tho the transaction is succesful.
?status=fail&message=Empty%20response%20received%20from%20Viva%20Wallet%20POS

Thanks for the quick fix @drigler it's working fine on my app now!
About the changes, you couldn't use registerForActivityResult (https://developer.android.com/training/basics/intents/result?hl=fr#launch) to get the result ?

Ok guys, I made some tweaks to make plugin more reliable.  Please provide some feedback so I can close this issue.
Thanks,
Denis

Hello @drigler thanks, working fine for most cases, however It doesn't redirect to main app when Viva Terminal is set in "Kiosk Mode", is it related to this issue ?

Hi @imGok , glad to hear it's working.
In other hand, kios mode is not intended to be used with other apps. It means Viva Terminal is standalone and pinned, so it doesn't close itsef after transaction / command and no, it doesn't redirect to your app in any way.
But, how did you manage to start Terminal in Kiosk mode within your app anyway?
From the manual:

Denis

There is a part in settings called something like "Settings protected by a pin code" and it's in it.
Alright I thought Kiosk Mode was made to prevent the user from leaving the app.
Anyway thanks for your help/work👍

Yes you are right, but not leaving your app, it was made to put Viva Terminal in "Kisok mode" and prevet user to leave terminal app :)
Glad it work's for you.
Regards,
Denis

The issue is addressed since version 0.0.6


update dependencies

Jira: https://jira.lyrasis.org/browse/FCREPO-3528
Updates a few dependencies, most notably Jetty, and suppresses spammy Jetty warnings about finding the same class in multiple jars.

This works with Fedora, but only if I also update the version of jetty-console.version in the fcrepo-webapp/pom.xml to reference the SNAPSHOT version of this jetty-console.

Yes, that's correct. I wasn't sure how you'd like to proceed with this. Ultimately, it'll require a new version to be of use.

We can follow-up with a release of jetty-console: https://jira.lyrasis.org/browse/FCREPO-3530


Do not require MFA for specific apps

To confirm, if i want to exclude few domain admin membership group to exempt the MFA for specific apps, e.g Yammer.  Does it mean i just "uncheck" the MFA authenticaiton in step 11?  Thanks.

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

ID: 22df42c6-831d-ba42-8224-27176e8fd7d9
Version Independent ID: 15299b18-e361-9e9f-f836-f37a466dcae0
Content: Quickstart - Require multi-factor authentication (MFA) for specific apps with Azure Active Directory conditional access
Content Source: articles/active-directory/conditional-access/app-based-mfa.md
Service: active-directory
GitHub Login: @MarkusVi
Microsoft Alias: markvi

Try the following with your Yammer Application (if you want to disable MFA for all the Users in your Tenant):
In my test environment, I have a GA for which I created a Test Instagram Account.
Then I created a MFA Test Policy, where while selecting the Applications - I unchecked the Instagram Application, however left the rest of the Applications checked.

Also. checked the "Require MFA" option in the Access Controls Blade.

Then, using the What If option, checked for accessing the Instagram Application - where the MFA policy would not apply

However, for other applications the same MFA policy would apply.
Let us know if this helps.

Hey Neelshray,
This is a bit off-topic, but I'm searching for a solution that I believe you might have an answer to. I know this is possible because I've done it before, but have since forgotten how and never saved the article I followed on how to accomplish this! I've been circling back around my search history and search terms for ages now trying to figure it out again. The reason I'm asking you is because I see you have 'custom apps' included in your screenshots.  Here's my problem:
There are existing applications within the Microsoft environments, as well as third-party applications that use AzureAD services to log in. These applications all have very specific Application ID's that are globally known across all tenants and you can easily grab from sign-in logs. Here's a few examples:

Microsoft Office Chrome Browser Extension: e28ff72c-58a5-49ba-8125-42ec264d7cd0 (https://chrome.google.com/webstore/detail/office/ndjpnladcallmjemlbaebfadecfhkepb?hl=en)
Autotask Mobile App: 0e08e54e-ba31-4b23-b021-ee3fbb34a52a
(https://play.google.com/store/apps/details?id=com.autotask)
Microsoft 365 Security and Compliance Center:
80ccca67-54bd-44ab-8625-4b79c4dc7775 (https://protection.office.com/)

What all of these applications have in common is that they DON'T have an easy search-for-and-select option to exclude them from a conditional access policy, but they ARE all included in the "All Cloud Apps" identifier/group by default. You can recreate this If you go to create a CA policy, Include "All Cloud Apps", click on Exclude and then try to search for any of the above-listed names or App-ID's you will not find them.
Here's the thing - There was once an occasion where I quickly had to troubleshoot and solve a ticket after I enabled a conditional policy for the client which had the "All Cloud Apps" scope, and I needed to exclude a couple of specific "Cloud Apps" from the policy. Being in a rush, I was able to find a solution/trick/workaround where I pulled the App-ID from the failed sing-in log which was due to being blocked by the said CA policy, do something to it/with it in Azure AD, and then I was able to search-for and exclude the exact app ID in question from the policy. Check my screenshot below - these apps are android mobile applications downloaded from the Google Play Store and use an Azure AD login to authenticate a user with SSO.
They were being blocked because they are not on "Microsoft's approved list" of mobile applications. After excluding the App ID from the policy, they were able to be signed into and worked as expected.

Found your commentr very helpful thankyou.
I havent yet upgraded to P1 to allow the configuration of these Conditional Access Policies.
But does the wizard allow you to specify and specifically enter an Application ID ?
You mentioned  "There was once an occasion"
Are you unable to enter specific application ids in these policies anymore ?


Add AC-4 Level-4 ISO base media file format support

This pull request is same as https://github.com/androidx/media/pull/875. Since 875 is broken due to too many commit numbers, I re-created this new one.
========================
AC-4 Level-4 (Object Based Audio) is a Dolby official audio stream type for Atmos Music. This code update enables Android Media3 support local MP4 and MPEG-DASH AC-4 Level-4 playback.

Hi @ybai001,
The PR has been merged as https://github.com/androidx/media/commit/74611bbdc009b3c143a556a74f0e84f386fb5e19.
I refactored the code to remove elements from AudioPresentations that aren’t currently needed, as we’re not returning it yet. Please take a look at the merged commit and let me know if you spot any issues.

Hi @ybai001,
The PR has been merged as 74611bb.
I refactored the code to remove elements from AudioPresentations that aren’t currently needed, as we’re not returning it yet. Please take a look at the merged commit and let me know if you spot any issues.

Hi, @rohitjoins
I truly appreciate your effort on this pull request. It's almost one year! :) I understood this was a big change in extractor and it was related to Dolby specific format that you were not familiar with. I have verified it on my test device based on the lastest main branch code. It can work. So thanks again!


Add: wiki documentation into a separate docs folder

Solves #607

This has happened because the Wiki was completely out of control and became a huge mess. I'd be happy to move all the documentation within the repository in a docs folder, so that people can help maintaining the documentation by opening PR. If you feel like, you could help us by moving one page per time. This would help a lot heart

I have moved all the wiki docs into a separate folder called docs with this PR.

Thanks for the work. I'll start soon merging and moving.


Is local install supported?

I don't see any documentation on how to perform a local install (i.e. under /usr/local).
If I run make, most of the sub-builds succeed generating .so files, although I get this error (@hzeller ?):
In file included from uhdmastshared.h:4,
                 from UhdmAst.h:8,
                 from uhdmsurelogastfrontend.cc:22:
uhdmastreport.h:9:10: fatal error: uhdm/uhdm.h: No such file or directory
    9 | #include <uhdm/uhdm.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

When I try sudo make install, I get
make -C fasm-plugin install
make[1]: Entering directory '/home/tcal/SymbiFlow/yosys-f4pga-plugins/fasm-plugin'
../Makefile_plugin.common:47: *** "Didn't find 'yosys-config' under '/'".  Stop.
make[1]: Leaving directory '/home/tcal/SymbiFlow/yosys-f4pga-plugins/fasm-plugin'
make: *** [Makefile:37: install_fasm] Error 2

This seems to be some strange interaction between sudo and the calculation of YOSYS_PATH in Makefile_plugin.common.   I do have both /usr/local/bin/yosys and /usr/local/bin/yosys-config, so YOSYS_PATH should be /usr/local.    At my command line, sudo which yosys returns nothing, even though sudo echo $PATH contains /usr/local/bin.
A workaround is to run sudo make install YOSYS_PATH=/usr/local, but it seems something is broken.

https://github.com/antmicro/surelog-uhdm-ibex-guide gives a good overview what needs to be done.
Essentially, you need Surelog and UHDM present for the module to compile.

even though sudo echo $PATH contains /usr/local/bin.

Ah, this is wrong as pointed out in https://unix.stackexchange.com/questions/32764/why-which-tmux-and-sudo-which-tmux-return-2-different-values -- $PATH gets expanded before getting passed into sudo.   If I instead do:
sudo sh -c 'echo $PATH'

... I get:
/usr/sbin:/usr/bin:/sbin:/bin

..which doesn't include /usr/local/bin.
So, the mechanism for finding yosys-config doesn't work as implemented when run under sudo.


Transmutation interface shows owner as a bunch of zeros, won't connect to any storage interfaces

top right in jade, seems to not be registering me as an owner. thing is it was working the last time i launched up the world. no clue what's going on

small update, seems anything that can be tied to an owner, the power flowers, all of it, has the same error

The bug report template exists for a reason


[fix] fixes active low setting

there is a bug in the active low setting

Yes. You are right. Thanks for the fix!!


Add ability to build swift code

Describe the Feature
A clear and concise description of what the feature request is.
currently swift impossible to build, Godot uses scons for builds including MacOS/iOS, unfortunately Apple moves current features from Objective-C to SWIFT.
Required information

Link to SCons Users thread discussing your issue.
https://github.com/godotengine/godot-proposals/issues/10967
Version of SCons
latest
Version of Python
latest
Which python distribution if applicable (python.org, cygwin, anaconda, macports, brew,etc)
MacOS distribution
How you installed SCons

brew install scons

What Platform are you on? (Linux/Windows and which version)
MacOS
How to reproduce your issue?  Please include a small self contained reproducer. Likely a SConstruct should do for most issues.
try to build swift code for godot engine
How you invoke scons (The command line you're using "scons --flags some_arguments")

scons platform=ios target=template_release

Additional context
After latest update SKStoreReviewController is removed from build (using it to rate app) so build is just fails, temporarily removed this call.
In last xcode it replaced by
AppStore.requestReview(in: scene)
but it exists only in SWIFT, so right now is just impossible to use this feature
https://forums.developer.apple.com/forums/thread/759918

Any ideas what would be required?  Most of us here have zero knowledge of swift.  If it needs to have its own tool, construction variables, etc. adding a working setup to https://github.com/SCons/scons-contrib is a good starting point.  If that proves to be widely useful, it can be considered for inclusion in the SCons core.
P.S. it's useful if you read the instructions in the issue template :-)

Thank you for quick reply, I can tell for iOS specific Swift/SwiftUI required tool is Xcode, probably mainstream Swift build should be https://www.swift.org/documentation/swift-compiler/ it won't work for MacOS/iOS specific stuff but will build some common code.

By "tool" I meant "SCons tool specification module".
For example, there is no separate (SCons) tool for Objective C/C++, just a recognition of standard file syntaxes for those types of files.  If swift doesn't get magically handled by, say, clang, by it handing off control to the real compiler, then it probably needs a tool module.  Those aren't hard to build, but takes some knowledge of both SCons and of the way to invoke the compiler.

Thank you, will try to provide something

PR created https://github.com/SCons/scons-contrib/pull/53


[OPS-5387] add php 7.0 and 7.1 and remove mysql 5.6 install prior to …

…installing php5 (which depends on mysql 5.5)

@jpackagejasonc I think in order to make this mergeable w/o #9, one should make PHP 7 builds as allowed to fail. Then #9 could be rebased on top.


[BUG] tailwind code for gradient border isn't working

Description
when the tailwind code is clicked to be copied, it isn't copied, i guess because the logic for it is missing
Screenshots
No response
Additional information
No response
🥦 Browser
Brave
👀 Have you checked if this issue has been raised before?

[X] I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

[X] I have read and understood the rules in the Contributing Guidelines

Are you willing to work on this issue?
None

Hey, can I work on this

Hey, can I work on this

sure, go for it, make sure to read the issue description carefully and ask if you have questions on the discord server. Follow the guidelines here, or your PR won't be accepted and will be closed. Good luck!

Hi, is this issue closed


fix(query): clean up generated output

Which problem is this PR solving?
Currently, this happens:

Import a query resource, like:

import {
  id = "system_stats/abc123"
  to = honeycombio_query.kafka_disk_usage
}

You get this, which is technically correct, but a bit ugly, and will upset pickier linters:

❯ cat generated_resources.tf
# __generated__ by Terraform
# Please review these resources and move them into your main configuration files.

# __generated__ by Terraform from "system_stats/abc123"
resource "honeycombio_query" "kafka_disk_usage" {
  dataset    = "system_stats"
  query_json = "{\n  \"calculations\": [\n    {\n      \"op\": \"MIN\",\n      \"column\": \"disk_percent_free\"\n    }\n  ],\n  \"filters\": [\n    {\n      \"column\": \"host_group\",\n      \"op\": \"=\",\n      \"value\": \"kafka\"\n    },\n    {\n      \"column\": \"environment\",\n      \"op\": \"=\",\n      \"value\": \"dogfood\"\n    }\n  ],\n  \"breakdowns\": [\n    \"hostname\"\n  ],\n  \"orders\": [\n    {\n      \"op\": \"MIN\",\n      \"column\": \"disk_percent_free\"\n    }\n  ],\n  \"limit\": 1000,\n  \"time_range\": 1200\n}"
}

whereas the actual plan outputs this:
Terraform will perform the following actions:

  # honeycombio_query.kafka_disk_usage will be imported
  # (config will be generated)
    resource "honeycombio_query" "kafka_disk_usage" {
        dataset    = "system_stats"
        id         = "abc123"
        query_json = jsonencode(
            {
                breakdowns   = [
                    "hostname",
                ]
                calculations = [
                    {
                        column = "disk_percent_free"
                        op     = "MIN"
                    },
                ]
                filters      = [
                    {
                        column = "host_group"
                        op     = "="
                        value  = "kafka"
                    },
                    {
                        column = "environment"
                        op     = "="
                        value  = "dogfood"
                    },
                ]
                limit        = 1000
                orders       = [
                    {
                        column = "disk_percent_free"
                        op     = "MIN"
                    },
                ]
                time_range   = 1200
            }
        )
    }

Plan: 1 to import, 0 to add, 0 to change, 0 to destroy.

Short description of the changes
Now, it'll output this:
# __generated__ by Terraform
# Please review these resources and move them into your main configuration files.

# __generated__ by Terraform from "system_stats/xyz345"
resource "honeycombio_query" "kafka_disk_usage" {
  dataset = "system_stats"
  query_json = jsonencode({
    breakdowns = ["hostname"]
    calculations = [{
      column = "disk_percent_free"
      op     = "MIN"
    }]
    filters = [{
      column = "host_group"
      op     = "="
      value  = "kafka"
      }, {
      column = "environment"
      op     = "="
      value  = "dogfood"
    }]
    limit = 1000
    orders = [{
      column = "disk_percent_free"
      op     = "MIN"
    }]
    time_range = 1200
  })
}

which is much nicer.
How to verify that this has the expected result
Passed unit tests and worked locally.

Codecov Report
Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 82.89%. Comparing base (8ed2391) to head (3c7c99f).
 Consider uploading reports for the commit 2bd6e4d to get more accurate results

Files
Patch %
Lines

client/query_spec.go
0.00%
1 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #469   +/-   ##
=======================================
  Coverage   82.89%   82.89%
=======================================
  Files          63       63
  Lines        4308     4308
=======================================
  Hits         3571     3571
  Misses        576      576
  Partials      161      161

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Just did a bit of manual testing and the diff. suppression functions already in place handle the change from pretty printed to minified JSON just fine on upgrade from 0.23.0 🎉


Homebridge crashes

with this error

TypeError: Cannot read property 'ring' of undefined
at HTTPDoorbell.httpHandler (/usr/local/lib/node_modules/homebridge-http-doorbell/index.js:50:39)
at Server. (/usr/local/lib/node_modules/homebridge-http-doorbell/index.js:20:14)
at emitTwo (events.js:126:13)
at Server.emit (events.js:214:7)
at parserOnIncoming (_http_server.js:602:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)

I have the same error.

What id's do you use in configuration?
What url do you request?
If you have id "frontDoor" and port "9053", you should use:
http://{ip_address}:9053/frontDoor
Please note that you can't put a slash in the end.

Hi. I get the exact same error...

Getting the same issue here, only started recently thought which is strange. I've tried reinstalling both the plugin and Homebridge. I've also updated to the newest node etc. Any ideas?

For those still experiencing this error, I have forked homebridge-http-motion-sensor and simplified it to function in much the same way as homebridge-http-doorbell in an attempt to work around the issue. If you are interested, you can view it here.
Kind regards, Tom

When I access the url http://{my_ip_address}:{my_port}/{my_id} Homebridge instantly crashes. I'm looking at the log and says "Got SIGTERM, shutting down Bridge..."


Capture an entire by-name expression

HealthCheckMagnet.fromTryChecker() (e.g.) converts a by-name Try into an instance of HealthCheckMagnet. This is so it can be made available in CheckedBuilder.healthCheck(). Unfortunately (IMO), when you have a multi-line expression you want to provide to healthCheck(), it will apply the implicit conversion from Try to HealthCheckMagnet only on the result of the expression and not the entire thing. I'd like the ability to capture the entire expression without needing to wrap it in a Try or Either. It's possible I may not want a Try but to instead use a simpler check like the Boolean one. The ByName class allows us to (when we want to) capture the entire expression instead of just the result. A simple example would be:
healthCheck("foo") {
  println("FOO")
  true
}

Here the health check is side-effecting (not normally a desirable thing, but sometimes a necessity). However with the current implementation the side effect will be evaluated once (when the implicit conversion to the magnet occurs) and then never again. This can result in a mismatch between the expected behavior and the observed behavior. This PR eliminates that mismatch by capturing the entire expression.

CI failures are against an old version of Scala 2.10. From 2.10.2+ it builds and tests just fine.

Hmm. That is odd. I thought that having a by-name parameter would not exhibit this behavior. (This was discussed in #42.) But now I look at the unit tests, there is no test to cover this.
Please allow me some time to have a thorough look. Looking at your code you are obviously smarter then me :)
Thanks for the pull request!

@davidhoyt , are you willing to write a unit test?

CI failures are against an old version of Scala 2.10. From 2.10.2+ it builds and tests just fine.

No problem, we can switch to the tests 2.10 and 2.11 versions.

I wrote a new unit test. It turns out that the existing unit test that was supposed to catch this case was flawed. So #42 was not fixed at all.

Merged with unit tests, documentation and some small changes. I will let it rest for a few days and then make a new release.
Thanks @davidhoyt !

Thanks @erikvanoosten for writing the unit tests!


Fixed error message in server/details with respect to query params.

Closes: https://github.com/apache/trafficcontrol/issues/6800

Which Traffic Control components are affected by this PR?

Traffic Ops

What is the best way to verify this PR?

Curl /servers/details?hostname=foo and see error message
{
	"alerts": [{
		"text": "missing required fields: 'hostName' or 'physLocationID'",
		"level": "error"
	}]
}

If this is a bugfix, which Traffic Control versions contained the bug?

6.1.0
PR submission checklist

[ ] This PR has tests
[ ] This PR has documentation
[x] This PR has a CHANGELOG.md entry
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

I'm re-running the API tests


Remove the now-unused derivedData field from images

We only use derivedData for two things:

Getting the thumbnail for DisplayImage. This made more sense when the DisplayImage model was in a separate repo, and we wanted to keep the API as lightweight as possible; now it's in the same repo we can inline that logic in DisplayImage.
It gets called at the same time (when an image is indexed in the images-indexed index), so it's a very small change.

The source contributor agents, which we were using as a hacky form of aggregations, e.g. storing Person:Henry Wellcome and having API logic to unpack that. Now we have the aggregatableValues object storing full JSON strings, and the API is reading that instead, we can ditch this particular field.

This is a consequence of https://github.com/wellcomecollection/platform/issues/5550


Adding Replica Sets panel in Kubernetes UI

Rancher Version:
1.0.1
Docker Version:
1.10.1
The Replicasets from extensions/v1beta should appear in the UI the same way as the replication controllers, when you create a replica set only the controlled pods appear but not the replica set.
The replica sets are related to "Deployments" which i believe its support is mentioned in this #4431

Version - 1.2.0-pre1-rc1
Verified Fixed


Fix smoother_collision

The current model smoother cannot ensure collision-free. Please review my revision and accept my request

Reviewed. Yes, checking the next adjacent edge is also necessary. Thank you so much for your contribution!

Thank you for comfirmation


HADOOP-18630: Add gh-pages in asf.yaml to deploy the current trunk doc

Description of PR
The docs are now pushed to gh-pages.
Add the entry in asf.yaml to publish as mentioned in
https://issues.apache.org/jira/browse/INFRA-24202
Reference: https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features#Git.asf.yamlfeatures-GitHubPages
How was this patch tested?
For code changes:

[x] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 42s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+0 :ok:
yamllint
0m  0s

yamllint was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

_ trunk Compile Tests _

+1 :green_heart:
shadedclient
33m 14s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
shadedclient
22m 17s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
asflicense
0m 41s

The patch does not generate ASF License warnings.

58m 50s

Subsystem
Report/Notes

Docker
ClientAPI=1.42 ServerAPI=1.42 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5393/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/5393

Optional Tests
dupname asflicense codespell detsecrets yamllint

uname
Linux 9cdaaabc0277 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / e6799c4db86fe160984f7c8365965b67868e8e18

Max. process+thread count
633 (vs. ulimit of 5500)

modules
C: . U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5393/1/console

versions
git=2.25.1 maven=3.6.3

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.


Fix goreleaser workflow: publish lakectl to S3

The last step failed with permission denied.

LGTM, just need to verify that the role has a trusted relationship with the repo.


Using https://laravel.build does not work if the current path contains spaces

Laravel Version: 8.64.0
PHP Version: 8.0.0
Database Driver & Version:

Description:
Since https://laravel.build is not open source (at least I did not find it), I am reporting it here instead.
The recommended way of creating a new Laravel application using
curl -s "https://laravel.build/example-app" | bash

does not work the path to the current directory contains spaces, due to an unquoted string in the returned shell script.
Steps To Reproduce:
Go to a folder containing spaces
mkdir "$HOME/I contain Spaces" && cd "$HOME/I contain Spaces"

Try to create a new Laravel app using the recommended approach
curl -s "https://laravel.build/example-app" | bash

This leads to
Unable to find image 'contain:latest' locally
docker: Error response from daemon: pull access denied for contain, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
bash: line 16: cd: example-app: No such file or directory

Solution
Current output: https://laravel.build/example-app
When binding the current directory to /opt inside the container, the output of $(pwd) is not quoted. This is why spaces can lead to the command being invalid and the above error.
Solution:
# ...

docker run --rm \
    -v "$(pwd)":/opt \      # <-- The $(pwd) is now quoted
    -w /opt \
    laravelsail/php80-composer:latest \
    bash -c "laravel new example-app && cd example-app && php ./artisan sail:install --with=mysql,redis,meilisearch,mailhog,selenium"

# ...

Thanks for reporting this. I've sent in a PR to fix this. I'll get back to here when it's live.

We merged that fix and it should be live soon. Thanks for reporting.

@driesvints
I experience similar problem when the Laravel application directory path contains dot character like:
curl -s https://laravel.build/laravel.test | bash
the output from the bash shell is:
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: `<!DOCTYPE html>'

because the server is returning 404 Error.
If I clear my browser cache the first time I open this URL https://laravel.build/laravel.test in my browser I'm redirected to https://laravel.build/ and get 404 Error.
However If I first open the following URL https://laravel.build/laravel and then try to open https://laravel.build/laravel.test in my browser I'm redirected to https://laravel.build/laravel

@zlatevbg I'll have a look soon.

I've sent a PR for a more descriptive message and to fix the redirect loop: https://github.com/laravel/sail-server/pull/9. However, I cannot solve the bash error message. Therefor, I've opted to clarify allowed characters in the docs: https://github.com/laravel/docs/pull/7749 as you cannot use dots in an app name.


Rename your project to avoid confusion with ECMA standard

As pointed out by @gaearon there, cleverly naming this (otherwise very interesting) project as "standard" confuses people, often even people who're not even beginners.
Even though I applaud the marketing skills, I do think you should consider renaming your project or clearly stating in your Readme some of the risks of some of your rules as well as stating clearly it's not related to any official ECMA standards body or anything like that.
cheers

Feels like a duplicate of the issue you linked (#83)?
Anyhow, I don't think that there is any need for a name change, and this is also addressed in the readme:

But this isn't a real web standard!
Of course it's not! The style laid out here is not affiliated with any official web
standards groups, which is why this repo is called feross/standard and not
ECMA/standard.
The word "standard" has more meanings than just "web standard" :-) For example:

This module helps hold our code to a high standard of quality.
This module ensures that new contributors follow some basic style standards.

I also don't understand this part:

clearly stating in your Readme some of the risks of some of your rules

I don't see any risks at all with using standard, can you provide an example?

FWIW I've stopped caring a long time ago and I recommend everyone to do the same 😉


runtime-sdk/evm: Support for EIP-5656 and EIP-1153  in Ethereum cancun EVM

As of Solidity 0.8.25 the default EVM version is dencun which introduces two EIPs

EIP-5656 proposal adds MCOPY opcode to the code base. Currently, copying memory requires developers to use two opcodes (MSTORE and MLOAD) and costs at least 96 gas. With MCOPY, it only costs around 26 gas. This improvement makes smart contracts more efficient with zero trade-offs.
EIP-1153 proposal adds TLOAD and TSTORE opcodes to enable transient storage or medium-term memory for communication within complex transactions. This means the memory will be accessible to all function calls within the transaction and will be cleared once it’s completed.

Contracts compiled with Solidity 0.8.25 may fail to execute if they use functionality which emits these opcodes.

Have made an upstream ticket: https://github.com/rust-ethereum/evm/issues/277