Implement gradlogpartition for Exponential Family Distributions

This PR aims to close issue https://github.com/biaslab/ExponentialFamily.jl/issues/130:  it implements getgradlogpartition for exponential family distribution types from Distributions.jl
Derivations to do this feature we already prepared.
To test new functionality a new type of test for the exponential family interface was added: test_gradlogpartion_against_expectation.  Based on the fact that expectation of the sufficient statistics is equal to the gradient of the logpartition:
\mathbf{E}[T(x)] = \nabla_{\eta} A(\eta)

However the straightforward check would be to long to run:
\mathbf{E}[T(x)]

can be generically approximated with a monte-carlo estimator
\frac{1}{N}\sum T(z_{i})

but this estimator is too slow to converge for the testing purposes.
So another with a faster convergence rate (the linear convergence rate)
\mathbf{E}[T(x)]^{T} F(\eta)^{-1}  \mathbf{E}[T(x)]= \nabla_{\eta} A(\eta)^{T} F(\eta)^{-1}  \nabla_{\eta} A(\eta)

is used and a sanity check that dimensionality of the gradient and the natural parameters are the same.
Tasks to do:

[x] Bernoulli @HoangMHNguyen
[x] Beta (#154) @bartvanerp (Thanks @ismailsenoz)
[x] Univariate Normal (#157) @bartvanerp
[x] Multivariate Normal @bartvanerp @Nimrais
[x] Wishart @Nimrais @ismailsenoz
[x] InverseWishart @Nimrais @ismailsenoz
[ ] MvNormalWishart @ismailsenoz
[ ] Contingency
[x] Dirichlet @wouterwln
[x] MatrixDirichlet  @ismailsenoz
[x]  Inverse Gamma @ismailsenoz
[x] Gamma @wouterwln
[x] Pareto @Sepideh-Adamiat
[x] Poisson @HoangMHNguyen
[x] Laplace @abpolym @ismailsenoz
[x] Exponential @HoangMHNguyen
[x] Log Normal @Sepideh-Adamiat @ismailsenoz
[x] Rayleigh @ismailsenoz
[x] Negative binomial @ismailsenoz
[x] Weibull @abpolym @ismailsenoz
[x] Von Mises  @Nimrais
[x] Von Mises-Fisher  @Nimrais @ismailsenoz
[ ] Continuous Bernoulli @Nimrais
[x] Chi Squared @Nimrais
[x] Normal-Gamma @abpolym @ismailsenoz
[x] Geometric  @wouterwln
[x] Erlang
[ ] Multinomial
[x] Binomial @Sepideh-Adamiat @ismailsenoz
[x] Categorical  @ismailsenoz

So please open a PR with getgradlogpartition for your type implemented into this branch.

@bvdmitri, I believe this PR is now ready for review.
Please note that the Contingency, Multinomial, and Continuous Bernoulli distributions will not be implemented in this PR. This is because we currently lack comprehensive functionality for them, and they haven’t been added to the package yet.
I’ve suppressed the test for MvNormalWishart. This is because, first, we need to implement its variance type, I believe. Subsequently, we should refactor this PR: https://github.com/ReactiveBayes/ExponentialFamily.jl/pull/173 accordingly.
The only issue I foresee is with the MatrixDirichlet. Sampling for it seems to be numerically problematic. Perhaps we could choose a non-random point for evaluation as a workaround?

@bvdmitri @ismailsenoz The problem is completely numerical as I see for MatrixDirichlet, it manifests it with even Beta sometimes samples are 0 exactly and log sufficient statistics function is producing NaNs. I tested scipy for this scenario as well and it also can produce samples that are exactly 0.

@Nimrais can you provide a MWE? My very simple thus naive test does not produce 0 samples
julia> any(iszero, rand(Beta(2, 7), 1000000))
false

julia> any(sample -> sample ≈ 0, rand(Beta(2, 7), 1000000))
false

@Nimrais can you provide a MWE? My very simple thus naive test does not produce 0 samples
julia> any(iszero, rand(Beta(2, 7), 1000000))
false

julia> any(sample -> sample ≈ 0, rand(Beta(2, 7), 1000000))
false

rand(Beta(0.001, 10), 1000)

You can check our Direchlet test distributions, some marginal of them are pretty close to ill-behaved Betas, one parameter is super small and another are big.

Got it! Lets address this in a separate issue


feat: upgrade of Fabric 7.x

Major change is move to Fluent design which has rounded corners and different / bold fonts for titles and headers of lists.
https://github.com/OfficeDev/office-ui-fabric-react/wiki/Fabric-7

:tada: This PR is included in version 0.375.0 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add logging to platform/component setup

Description:
I see (on a wrong VM with bad network route) that a lot of component will block the hole setup/bootstrap while the setup block forever. Not all component or platform api have a timeout. So it sugest that homeassistant is blocking but a component setup block all stuff and we yield from. This timeout will protect the bootstrap from blocking with a bad component.
EDIT
With this info, we can see now on which component/platform hass hangs while the component/platform block hole bootstrap.

I prefer if platforms/components implement a timeout because they will better know what to do with it .
It's also unclear to me what happens when you cancel a task that depends on something inside an executor, I doubt that it will actually get cancelled as one would expect?

Yeah, a executor coult not be canceled.
I will add a info log, so we can see which component/platform will hangs. At the Moment we can see that how is hanging on.

done @balloob

:dolphin:


Some work on directing storage component's client updates

Storage component now directs all updates to specific actors who are subscribed to it.
Unsubscribing actors requires a system to kick them out when they're too far away, dead etc., not implemented yet.
Also fixes not being sent state of the container when first opening it.
Criticism, better ways of doing things, and feature requests welcome

Requested changes dealt with + extra logging


voluntary-exit missing from validator

Steps to Reproduce
lodestar v1.x no longer supports validator voluntary-exit, and no obvious replacement can be found in the --help text for lodestar or lodestar validator.
This may be a bug, unless removal of voluntary-exit was deliberate.

@yorickdowne The command was removed on purpose. Could you elaborate on the usage on your setup, and if you have alternative tooling that does the job?

https://github.com/ChainSafe/lodestar/issues/4214

@dapplion This is part of the "lifetime of a validator" flow for eth-docker users. They create it, import it, eventually may want to exit it - possibly after withdrawals are live. If they choose Lodestar and cannot exit there, they'd need to delete it from Lodestar, switch CLs, reimport it (with slashing protection DB) into another CL, then sign an exit message.
eth-docker currently relies on each client to sign exit messages, and uses their interface to do so.

Thanks for the context! Will prioritize for upcoming releases


Correction for raw affiliation IATE, University of Montpellier, INRAE, Montpellier SupAgro, 34060 Montpellier, France

Correction needed for raw affiliation IATE, University of Montpellier, INRAE, Montpellier SupAgro, 34060 Montpellier, France
raw_affiliation_name: IATE, University of Montpellier, INRAE, Montpellier SupAgro, 34060 Montpellier, France
new_rors: 003vg9w96;03rnk6m14;051escj72;0000n5x09
previous_rors: 003vg9w96;03rnk6m14;051escj72
works_examples: W4401297423
contact: aea7f5de6f394bd86b0f6a516b34adc3:4455be00dd2a005057d80f30c161a8162051 @ inrae.fr

This issue was accepted and ingested by the OpenAlex team on 2024-11-18. The new affiliations should be visible within the next 7 days.


[janribkaui/material-ui-tailwind] Add all colors from material-ui-taileind/colors to tailwind config

Summary
No response
Examples
No response
Motivation
No response
Search keywords: config colors

Exactly what to do in this


AuthParams does not satisfy AuthProvider

I assume this is just an oversight, as AuthOptions.AuthParams() should be called AuthOptions.ProvideAuthParams():  https://github.com/Netflix-Skunkworks/go-jira/blob/20a9666fcd408e4b804f017ca440c51ffb5eb10c/session.go#L20

Interesting, yes.  It looks like I dont actually use that struct anywhere.  I will fix, thanks!


Mindate to disable selection but still allow display of older dates.

Hello,
I am currently using minDate to limit selection of past dates.  My issue is that the input field is blank when it is populated from the db with a past date.
I'd like for minDate to limit the selection but not the display of past dates, is there any ways to achieve that?
Thanks!

Have you tried setting defaultDate to your minDate ?

Hi thanks for the reply, I can't use defaultDate as it would override (I assume) the date populated from the database, which I want to display, but sometimes happens to be outside the minDate range.
For example:
-minDate is set to moment() / "now"
-User sets date to today and saves it.
-User comes back tomorrow and wants to see / modify date, minDate prevents date from being shown since it's outside it's range
Hope my issue is clear enough.

keepInvalid has been added as an option to the dev branch. This should allow you to set the input to an older date. Please check it out and let me know

Assuming no other major issue with the dev branch come up this week, dev will be promoted to master March 7th.

Set keepInvalid:true definitely does the job. Thank you!


BUG/REQUEST:

Describe the bug
Hi,
I am trying to create result combinations with the RFEM 6 API through Python. I cannot specify which load cases, factors and operators to take into account when creating a result combination through the API. Looking at the documentation available, it seems that this class is incomplete and needs to be developed.
Is there any way through Python to specify result combinations including load cases, factors and operators? If not, when can I expect the ResultCombination class to be updated?
Expected behavior
Expect to be able to have the features to define a ResultCombination as in th GUI:

Specify which load case to include
Specify which related factors to include
Specify which operator to include

Screenshots

Desktop (please complete the following information):

Version of WIN10 OS: [WIN 10 20H2]
Version of RFEM6 [6.02.0056]
Version of tool [1.15.0]

Hi @Dervis-vL,
thank you for the request. The Result Combination class should be updated for sure. But you can use it even in its current state. Envoking print(model1.factory.create('ns0:result_combination')) will give you an idea about structure of the result_combination object. If there is every parameter needed than create such parameter via model1.factory.create('ns0:result_combination'). Set parameters by set_result_combination, or add all parameters via params attribute as dictionary:
ResultCombination(params={'name': ..., 'srss_combination': ..., 'srss_extreme_value_sign': ..., 'srss_use_equivalent_linear_combination': ...}).

Hi @Dervis-vL,
for that the easiest way is to create such object in RFEM and use WS to print it out via print(Model.clientModel.service.get_result_combination(1)). it will give you something like the following giving you idea about values and types of the parameters.
(result_combination){
   no = 1
   design_situation = 1
   user_defined_name_enabled = True
   name = "Result combination 1"
   to_solve = True
   comment = None
   combination_type = "COMBINATION_TYPE_GENERAL"
   srss_combination = False
   items =
      (array_of_result_combination_items){
         result_combination_items[] =
            (result_combination_items_row){
               no = 1
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 1
                     operator_type = "OPERATOR_AND"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_PERMANENT"
                  }
            },
            (result_combination_items_row){
               no = 2
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 2
                     operator_type = "OPERATOR_AND"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_PERMANENT"
                  }
            },
            (result_combination_items_row){
               no = 3
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 3
                     operator_type = "OPERATOR_OR"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_PERMANENT"
                  }
            },
            (result_combination_items_row){
               no = 4
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 2
                     operator_type = "OPERATOR_OR"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_PERMANENT"
                  }
            },
            (result_combination_items_row){
               no = 5
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 3
                     operator_type = "OPERATOR_AND"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_PERMANENT"
                  }
            },
            (result_combination_items_row){
               no = 6
               description = None
               row =
                  (result_combination_items){
                     case_object_item = 4
                     operator_type = "OPERATOR_NONE"
                     left_parenthesis = False
                     right_parenthesis = False
                     case_object_factor = 1.0
                     case_object_load_type = "LOAD_TYPE_TRANSIENT"
                  }
            },
      }
   ...
 }

Update of Result Combination is in progress. I'm pushing it as far as I can.

Result Combination class is prepared for PR. See branch dogukaratas-resultCombinationUpdate.

Hi @Dervis-vL,
PR 254 has created acc. to your comments.


Feature: support setns in client

Signed-off-by: Jim Ma<EMAIL_ADDRESS>
Description
Support setns in client
Related Issue
#377
Motivation and Context

Screenshots (if appropriate):
Types of changes

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

Checklist:

[x] Code compiles correctly.
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report

Merging #378 (a633a28) into main (e30ce07) will decrease coverage by 0.23%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #378      +/-   ##
==========================================
- Coverage   42.39%   42.16%   -0.24%
==========================================
  Files          72       73       +1
  Lines        5614     5640      +26
==========================================
- Hits         2380     2378       -2
- Misses       2888     2915      +27
- Partials      346      347       +1

Flag
Coverage Δ

unittests
42.16% <0.00%> (-0.24%)
:arrow_down:

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

Impacted Files
Coverage Δ

client/config/peerhost.go
48.79% <ø> (ø)

client/daemon/peerhost.go
0.00% <0.00%> (ø)

client/daemon/peerhost_linux.go
0.00% <0.00%> (ø)

pkg/util/net/iputils/ip_utils.go
61.22% <0.00%> (-4.09%)
:arrow_down:


Parse [^] as a link

This is consistent with most other CommonMark parsers, even when they have support for footnotes turned on.

A bit weird that Pandoc flavor handles it differently, but closer to CommonMark is better. Thanks!


distsql: Support outer joins

Background: https://airtable.com/tblD3oZPLJgGhCmch/viwdV1sM5KEK2L14K/recgn1mKTiwiSBov0
PRs:

https://github.com/cockroachdb/cockroach/pull/16372
https://github.com/cockroachdb/cockroach/pull/17017

@asubiotto, once this work is ready for docs, please assign the ready label here and add links to relevant PRs. Thanks!

This is really part of adding more robust documentation on JOINs. As of now, we mention joins only in the table expressions doc. Most of the info is in blog posts.

@jseldess, an external contributor took this on and merged this PR.

Thanks, @asubiotto. We'll have to cover this when we have properly detailed docs on distributed sql, but I think that'll have to wait for 1.2.

Given the plans to merge the local and dist sql engines, closing this for now.


Update docca xsl

Need to figure out what this does, then steal it:
https://github.com/boostorg/asio/commit/2504d9ab2571b91f59064f3b7bac2883ee38f208

The XSL is being rewritten so this is obsolete


Update policy advisor to look for cases where tunneler identity has access to a service but service doesn't have access to router

You could have a case where a service could have access to an edge router, and the tunneler edge router identity has access to the same edge router, but it won't be able to host because the service doesn't have access to it. The policy advisor won't find this though, b/c they have access to a common edge router.
Alternately we could ignore identities of type router in edge router policies except for the system generate policy.
Should potentially take this into account when creating edge session as well.

I also encountered this issue with a tunneler edge router identity (ER/T) acting as a dialing client. The client identity got "failed to dial fabric" because it must use its attached parent router, ignoring the ERP with #all identities.
ERP: #all/#all
SERP: #all/#public
The attached, parent router did not match the SERP (lacking #public), so its child client tunneler could not dial the service.

@qrkourier
Hello, I seem to have encountered the same problem as you. The error is as follows. Can you tell me your specific solution? Thank you
[ 101.018]    INFO ziti/tunnel/intercept/tproxy.(*tProxy).acceptTCP: received connection: <IP_ADDRESS>:5000 --> <IP_ADDRESS>:60886
[ 101.018] WARNING ziti/router/xgress_edge_tunnel. (*fabricProvider).tunnelServiceV1: {ctrlId=[www.ziti-test-ctrl.com] error=[context deadline exceeded] service=[zftest]} failed to dial fabric
[ 101.019]   ERROR ziti/tunnel.DialAndRun: {error=[context deadline exceeded] service=[zftest]} tunnel failed
[ 120.010]   DEBUG ziti/router/forwarder.(*Scanner).scan: scanning [0] circuits
[ 120.093]   DEBUG ziti/router/state.(*ManagerImpl). StartRouterModelSave.func1.(*RouterDataModel). Save.1: could not save router data model, no index

I set a permissive SERP #all/#all and do this routinely now. @Apaid


try using an emit_metric macro

What does this PR do?
A brief description of the change being made with this pull request.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
How to test the change?
Describe here in detail how the change can be validated.

Codecov Report
Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 73.66%. Comparing base (cafd312) to head (73a93c7).

Additional details and impacted files
@@                           Coverage Diff                            @@
##           andrew.glaude/dogstatsd-client-SPLIT     #649      +/-   ##
========================================================================
- Coverage                                 73.83%   73.66%   -0.18%
========================================================================
  Files                                       255      255
  Lines                                     37079    37116      +37
========================================================================
- Hits                                      27379    27342      -37
- Misses                                     9700     9774      +74

Components
Coverage Δ

crashtracker
20.53% <ø> (ø)

datadog-alloc
98.73% <ø> (ø)

data-pipeline
93.39% <50.00%> (+0.06%)
:arrow_up:

data-pipeline-ffi
0.00% <ø> (ø)

ddcommon
83.08% <ø> (ø)

ddcommon-ffi
69.52% <ø> (ø)

ddtelemetry
59.10% <ø> (ø)

dogstatsd-client
78.44% <ø> (ø)

ipc
83.58% <ø> (ø)

profiling
83.57% <ø> (-0.70%)
:arrow_down:

profiling-ffi
77.42% <ø> (ø)

serverless
0.00% <ø> (ø)

sidecar
38.44% <ø> (ø)

sidecar-ffi
0.00% <ø> (ø)

spawn-worker
50.36% <ø> (ø)

tinybytes
94.77% <ø> (ø)

trace-mini-agent
72.47% <ø> (ø)

trace-normalization
98.25% <ø> (ø)

trace-obfuscation
95.73% <ø> (ø)

trace-protobuf
77.67% <ø> (ø)

trace-utils
93.82% <ø> (ø)


Correctly calculate the average color of tiles

Not all pixels of the tiles were being used in the calculation
Canvas was not resized, so some tiles ended up outside of the buffer
and their color wasn't correctly calculated

Before

Fixed

I merged in master in #98 so I'm closing this one


Transition RDM from DMG to source build

The RDM cask is currently on version 0.8.3, the last version for which a DMG was produced. Currently, RDM only provides DMGs to subscribers, and provides source code to non-subscribers.
It would be nice if brew(cask) could follow the instructions to build and install RDM without having to do this manually.
http://docs.redisdesktop.com/en/latest/install/#build-from-source

They do still seem to have a couple of pre-release dmgs but we don't usually have pre-release stuff in the main repo when there is also a stable version (we just can't access it).

It would be nice if brew(cask) could follow the instructions to build and install RDM without having to do this manually.

Cask doesn't build from source, we only distribute what upstream provides.
In this case as the available download is over two years old we would probably remove the Cask so users aren't stuck with an old version.

Could/should this be moved to standard brew for source-based building?

https://docs.brew.sh/Acceptable-Formulae.html

Stuff that builds an .app
Don’t make your formula build an .app (native macOS Application); we don’t want those things in Homebrew. Encourage upstream projects to build and support a .app that can be distributed by Homebrew Cask (and used without it, too).

Ok, looks like RDM has put themselves into a netherworld then. Appreciate the response.


Add shard indexing pressure IT

Description
This PR addresses 4th out of the 4 planned Items for Shard Indexing Pressure ((#478).  Add shard indexing pressure IT.
Changes to Review : https://github.com/opensearch-project/OpenSearch/pull/499/commits/41c61e7f2e8e15311635856116a6051b642e7808
Currently this PR is inclusive of the change 1 to 3 of (#498) (i.e. #496,  #497 &  #498), for build and precommit to succeed. Reviewer's are requested to look only at the last commit changes here, and skip the the file changed in previous commits (#496 & #497 & #498). Once previous commits are merged, will update this branch to have only the top commit here.
Co-authored-by: Dharmesh Singh<EMAIL_ADDRESS>Issues Resolved
Addresses Item 4 of #478
Check List

[+] New functionality includes testing.

[+] All tests pass

[+] New functionality has been documented.

[+] New functionality has javadoc added

[+] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

start gradle check

start dco check
start wrapper validation
start gradle precommit

start dco check
start wrapper validation
start gradle precommit

Closing this as per the plan updated in #478


Adopt and enforce new WP_CLI_CS standard

We have a new PHPCS standard for WP-CLI called WPCliCS (props @jrfnl). It is part of the wp-cli/wp-cli-tests package starting with version v2.1.0.
To adopt & enforce this new standard, the following actions need to be taken for this repository:

[x] Create a PR that adds a custom ruleset phpcs.xml.dist to the repository

Add phpcs.xml.dist file
Adapt .distignore to ignore phpcs.xml.dist & phpunit.xml.dist
Adapt .gitignore to ignore phpunit.xml, phpcs.xml & .phpcs.xml
Require version ^2.1 of the wp-cli/wp-cli-tests as a dev dependency

[x] Make any required changes to the code that fail the checks from the above ruleset in separate PRs

[x] Merge thre ruleset once all required changes have been processed and merged

A sample PR for a simple repository can be seen here: https://github.com/wp-cli/maintenance-mode-command/pull/3/files
Related https://github.com/wp-cli/wp-cli/issues/5179

Fixed via #47


Building World-class Apps with Angular Material

We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner. Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
Proposed title of article
Building World-class Apps with Angular Material
Introduction paragraph (2-3 paragraphs):
Angular Material has been one of the most popular component libraries for Angular developers in recent times. In this article, we will discover the reasons for its popularity, learn how to set up a new Angular Material app and customise it with your own theme and typography.
Often times, the difference between an app that merely serves its purpose and one that delivers a great experience, is determined by the amount of thought and effort that goes into the smallest details of the individual components.

Animations and motion provide visual feedback to the user to keep them aware of the state of the app.

Work on accessibility and ease of use ensures that the app is built for the target audience.

-Internationalization(i18n) to make the app available for different languages and cultures.

A very common requirement for web apps these days is that they should also function well across different screen sizes, and a lot of effort goes into making sure that the app is responsive.

These aspects are all addressed by Material Design, which is a design system created by Google exclusively for building digital experiences. They use it across their vast suite of services, on web and mobile.
Key takeaways:
1.Getting Started with Angular Material Installation
2.Scaffolding Components with Material Schematics
3.Creating a Custom Angular Material Theme
References:
Please list links to any published content/research that you intend to use to support/guide this article.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Reopening @ahmadmardeni1 am ready to work on this

Unfortunately, your key takeaways have somehow expired. In other words, they have already been covered by numerous articles such as https://www.section.io/engineering-education/search/?q=Angular

Unfortunately, your key takeaways have somehow expired. In other words, they have already been covered by numerous articles such as https://www.section.io/engineering-education/search/?q=Angular

I checked and it has not been covered,,, how has it expired?


fixed /bin/dash error

hmm whats the error

/bin/dash it's not POSIX and not all have dash shell, in my case I didn't have it. And ~/.dwm/bar/./ gives me error that he cannot find the bar.

/bin/dash it's not POSIX and not all have dash shell, in my case I didn't have it. And ~/.dwm/bar/./ gives me error that he cannot find the bar.

dash is a dependency for the bar, it makes the bar very lightweight so I use it , the user can change the shebang if he doesnt want to use dash.

~/.dwm/bar/./

dash is a dependency for the bar, it makes the bar very lightweight so I use it , the user can change the shebang if he doesnt want to use dash.

Ok, so it's useful to make it optional and make /bin/sh the default shell.

On ssh and zsh it gives error that he cannot find the right path.

On bash and zsh it gives error that he cannot find the right path.
because dash isnt there on your system I think.

On bash and zsh it gives error that he cannot find the right path.
because dash isnt there on your system I think.

Yeah, I don't have dash, I though it was a mistake, thank you for your time, I'm going to close this pull request.


Issue with connecting mysql to Apache superset

I am exploring Apache SuperSet. I want to connect to mysql database on server i.e., EC2 instance. I have installed all the required libraries based on https://superset.incubator.apache.org/installation.html and launched the superset as well.
I did go through https://docs.sqlalchemy.org/en/12/core/engines.html#database-urls.
entered mysql://{username}:{password}@{ip address of ec2 instance}/{database name} in the URL
Although i have the library, yet when i try to connect the mysql it says "No module named 'MySQLdb'". (Yes i have installed mysql-client)
Please help me with how to proceed?

Hi @aniii,
Use pip install mysqlclient. If it still fails post the output of pip freeze

i did, it says requirement already satisfied. i have attached the screenshot of pip freeze.

Maybe the pip didn't install the module to the environment where your superset is running? are you using virtualenv? Also please check the python version

The requirement is already
python version is Python 3.6.9,
yes i am using virtual env

Sorry @aniii - you've got us stumped. We are unable to duplicate this issue. If Superset is running in that virtual environment, you should not be experiencing this issue.

@aniii  : Try running "pip show mysqlclient" and "pip show apache-superset" in virtual environment. It will show the installed location of both packages.
Also you installed both package using 'pip' only, not with 'pip3'?


GEODE-3090: Fixing gfsh help message (and a lot of other typos)

View the original JIRA ticket here.
The original ticket called for fixing a typo in CliStrings.java, and in the process, other typos were fixed.
Precheckin status: completed, with 1 known flaky test failure
Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[x] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[x] Is your initial contribution a single, squashed commit?

[x] Does gradlew build run cleanly?

[ ] Have you written or updated unit tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

+1.
Today, CliStrings, tomorrow, THE WORLD more of the code base!

pulling this in.


feat: robusta via knuu

Overview
Based on: https://github.com/celestiaorg/celestia-app/tree/main/test/e2e

Checklist

[ ] New and updated code has appropriate documentation
[ ] New and updated code has new and/or updated testing
[ ] Required CI checks are passing
[ ] Visual proof for any user facing features like CLI or documentation updates
[ ] Linked issues closed with keywords

Closes https://github.com/celestiaorg/devops/issues/364, closes https://github.com/celestiaorg/devops/issues/363,

GH action fixed


Can't test puppet 4 since 3.17.1

I know Puppet 4 is EOL, but onceover is a great tool to help migrate to newer versions (and the gemspec says puppet 4 is still supported).
I think something in https://github.com/dylanratcliffe/onceover/pull/272 is the cause.
role::example: failed
  errors:
    superclass mismatch for class User
      factsets: solaris10

I can get a better error message by running rspec directly.
export PDK_PUPPET_VERSION=4
pdk bundle exec rspec .onceover/spec/classes/role__example_on_solaris10_spec.rb

Failures:

  1) role::example using fact set solaris10
     Failure/Error: class User < ADSIObject; end

     TypeError:
       superclass mismatch for class User
     # ./.onceover/spec/classes/role__example_on_solaris10_spec.rb:54:in `<module:ADSI>'
     # ./.onceover/spec/classes/role__example_on_solaris10_spec.rb:52:in `<module:Windows>'
     # ./.onceover/spec/classes/role__example_on_solaris10_spec.rb:51:in `rescue in block (3 levels) in <top (required)>'
     # ./.onceover/spec/classes/role__example_on_solaris10_spec.rb:44:in `block (3 levels) in <top (required)>'
     # ------------------
     # --- Caused by: ---
     # LoadError:
     #   cannot load such file -- ffi
     #   /home/alex/.rvm/gems/ruby-2.1.9/gems/rspec-puppet-2.7.10/lib/rspec-puppet/monkey_patches.rb:360:in `require'

FWIW, I also have to explicitly add --format OnceoverFormatter when running with Puppet 4/Ruby 2.1.9 or I don't get any output as to why the test failed.


[type:build] fix mergeable conditions

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #4056 (4a161fd) into master (8e71100) will decrease coverage by 0.24%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #4056      +/-   ##
============================================
- Coverage     70.01%   69.77%   -0.25%
+ Complexity     6750     6716      -34
============================================
  Files           935      935
  Lines         25446    25438       -8
  Branches       2290     2287       -3
============================================
- Hits          17816    17749      -67
- Misses         6233     6290      +57
- Partials       1397     1399       +2

Impacted Files
Coverage Δ

.../client/server/consul/ShenyuConsulConfigWatch.java
60.41% <0.00%> (-25.00%)
:arrow_down:

...controller/ShenyuClientHttpRegistryController.java
77.77% <0.00%> (-22.23%)
:arrow_down:

...ruptor/RegisterClientServerDisruptorPublisher.java
52.94% <0.00%> (-11.77%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

.../apache/shenyu/admin/model/dto/BatchCommonDTO.java
50.00% <0.00%> (-7.15%)
:arrow_down:

...apache/shenyu/admin/model/dto/AuthPathWarpDTO.java
57.14% <0.00%> (-7.15%)
:arrow_down:

...org/apache/shenyu/admin/model/dto/AuthPathDTO.java
58.82% <0.00%> (-5.89%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
58.51% <0.00%> (-5.32%)
:arrow_down:

...elimiter/handler/RateLimiterPluginDataHandler.java
54.54% <0.00%> (-4.55%)
:arrow_down:

...che/shenyu/admin/model/vo/DashboardUserEditVO.java
60.86% <0.00%> (-4.35%)
:arrow_down:

... and 33 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Bridging origin's meta tags (if present) to short link's meta tags

I think I'll have to work with html parsing here, I'll need to collect meta tags from the original url content and use them for short link html content, basically

Jsoup is a good parser implementation to use


Shell scripts to run YCSB.

I've been thinking for a while that it'd be better to use a unix shell script or windows batch script to run YCSB. It seems to me that the python script has been mostly sufficient but sometimes problematic. I've seen users run into issues with wrong python versions, not having python installed, and also not understanding the requirement to have python installed.
My hope was that a unix script or windows batch would make things easier for the end user. I had these following additional goals:

create a single point of update when new bindings are added

the linux script should also run under cygwin on windows

work with both release and source checkout

model after tomcat

Here are the files I've added:

binding.properties - This file contains all the binding names and their associated classes. It is used by both the windows batch and unix script files. So, it is the single file to update when new bindings are added to YCSB.
ycsb.sh - This is the Linux shell script. I've tested it on Ubuntu and on Windows 7 under Cygwin.
ycsb.bat - This is the Windows batch script. I've tested this on Windows 7.

One caveat: The YCSB installation directory must be in a directory path that does not have spaces. (I tried very hard to make this work but couldn't. The current python script also has this issue.) I did verify that on Windows, the java executable does work in a path with spaces. This was especially important since many people have java.exe under "Program Files".
I hope this can play nicely with the Docker work that @risdenk is doing.

Not sure I'm for or against this change. The YCSB python scripts were just updated in #709 to give better error messages. Also, the current implementation invokes Maven to build YCSB if it is not built yet which I didn't see in this PR.
As far as the Docker testing stuff, there shouldn't be any issue to run these vs the Python implementation.

I'd like it if we could put something at bin/ycsb that maintains compatibility for some OS (probably the linux based ones)

please run the bash script through http://www.shellcheck.net/. I don't know of an equivalent for powershell, unfortunately.

Sorry, it took me a while to get to this as I was out of town.  Shellcheck was really useful, thanks for pointing this out to me.  I added a mvn build for source checkouts when the binding jar isn't there.

I'd like to merge this for the upcoming 0.10.0 release. it looks essentially ready to go to me. @risdenk, @cmatser any objections?

Agree, let's merge.

looks good to me


Make rubocop happier

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from the review on Reviewable.io


"verbose" param is misinterpreted as "crop_border_pixels" positionally and cause unexpected cropping of images.

Describe the bug
Erroneous positional assignment of verbose parameter is causing unwanted cropping behavior due to being misinterpreted as crop_border_pixels.
https://github.com/nerfstudio-project/nerfstudio/blob/a91b92f89d401115b42e6ad295a8b850e02ee86f/nerfstudio/process_data/process_data_utils.py#L262
https://github.com/nerfstudio-project/nerfstudio/blob/a91b92f89d401115b42e6ad295a8b850e02ee86f/nerfstudio/process_data/process_data_utils.py#L153
To Reproduce
Steps to reproduce the behavior:

run ns-process-data images with --verbose flag
the copied images are resized with 2 pixels less.

Additional context
Someone should review all positional assigned parameters.

Thanks for catching!


feat: update additional info

Codecov Report
Attention: Patch coverage is 91.42857% with 3 lines in your changes missing coverage. Please review.

Project coverage is 90.98%. Comparing base (c70896d) to head (ace83f8).

Files with missing lines
Patch %
Lines

...ourneys/referral/additional-information/schemas.ts
77.77%
2 Missing :warning:

...date-referral/additional-information/controller.ts
90.90%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
- Coverage   91.00%   90.98%   -0.02%
==========================================
  Files         223      225       +2
  Lines        3289     3318      +29
  Branches      521      526       +5
==========================================
+ Hits         2993     3019      +26
- Misses        291      294       +3
  Partials        5        5

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


correct _.times example in index.html

hello :) I've discovered issue of example _.times method in index.html file.
I just have changed
_(3).times(function(n){ genie.grantWishNumber(n); });
to
_.times(3, function(n){ genie.grantWishNumber(n); });.
Always thanks to underscore. :)

Coverage increased (+1.6%) to 96.763% when pulling a5382eded529dbcbabf47304e60756a23b11bc04 on dragmove:master into d4f52aa6966b096512d57ee553b3d9355cc5b49e on jashkenas:master.

This is a valid, although under-documented syntax in Underscore. See: http://underscorejs.org/#oop.

Sure, and this syntax is even called out before the example. That said, why introduce complexity to someone trying to understand the method? An example of using just the function at hand seems more helpful.

Fair point. I think there is a trade off between standardizing the docs around the _. Syntax and including examples of the OOP style.
Including the OOP examples could help raise awareness of the OOP style, but can be more confusing if you have not come across the OOP style yet. It's kinda a chicken and egg situation.
I suppose as core devs we should decide how we want to promote or deprioritize the OOP style.
If we want to think of OOP as an equally valid syntax, we should add more examples to the docs. If we want to deprioritize it, we should scrub all examples outside of the OOP-specific docs.
One downside of deprioritizing is that when you do come across OOP code in your code base, it can be extremely hard to figure out what's going on.
Thoughts?
Jordan Eldredge (mobile)

On May 22, 2017, at 5:38 AM, Craig Martin<EMAIL_ADDRESS>wrote:
Sure, and this syntax is even called out before the example. That said, why introduce complexity to someone trying to understand the method? An example of using just the function at hand seems more helpful.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

Coverage increased (+1.6%) to 96.763% when pulling a5382eded529dbcbabf47304e60756a23b11bc04 on dragmove:master into d4f52aa6966b096512d57ee553b3d9355cc5b49e on jashkenas:master.

My two cents: what is described as the "functional style" is the canonical form; it uses the methods according to the signature they actually have. The OOP style offers a convenient wrapper which just applies the wrapped value to the canonical form. Given that, I would think all examples (except the OOP one) should use the functional style.

If we want to think of OOP as an equally valid syntax, we should add more examples to the docs. If we want to deprioritize it, we should scrub all examples outside of the OOP-specific docs.

Currently the docs treat the functional style as the canonical form - not because of the examples but because each function (eg, each) is exposed as a property on _ (_.each(list, iteratee, [context])) and not as a instance method on an _ instance (see the function header http://underscorejs.org/#each). I think demonstrating the function using an instance of _ with the function under consideration put on the prototype as a mixin is inconsistent with how the function is presented, and introduces unnecessary complexity to understand the example.

One downside of deprioritizing is that when you do come across OOP code in your code base, it can be extremely hard to figure out what's going on.

For sure. I think if we go this route (and actually even if we don't) we should surface the OOP section when querying for _( and ( on the underscore site.

@craigmichaelmartin Agreed. Let's do it. I'll merge this and followup with a PR to remove the note about OOP style. Improve searching to account for for _( and ( will take a little bit of shuffling. @dragmove, is that something you would like to look into? The code lives in docs/main.js.


Installer v0.3.4 error

I have installed java on my machine with sdkman https://sdkman.io/
When using this installer it doesn't recognise this. During setup it tries to install it's own version of java but I get multiple errors that some version of java cannot be launched since it isn't verified by apple. After this it just stops the process with an error.
version: 0.3.4
env:
os: darwin
arch: x64
PATH: /usr/bin:/bin:/usr/sbin:/sbin
JAVA_HOME: undefined
JDK_HOME: undefined

log:
[12:56:08] AdoptOpenJDK-11-x64
[12:56:28] Download JDK ... [Completed]
[12:56:28] Install JDK
[12:56:37] Install JDK ... [Completed]
[12:56:37] Configure Java Settings
[12:56:42] Error occurred
[12:56:42] Error: Java Home not found.

This installer use find-java-home to recognize JDK. As far as I know, Apple suggest to install JDK into /Library/Java/JavaVirtualMachines/ which should be successfully recognized. I'll investigate sdkman.
Meanwhile can you provide detailed logs? Should be located in $TMPDIR/vscode-java-installer/log.txt


Add testing?

As our project is right now we do not have a single test.
Should we maybe add some testing?
Unit-tests
Integration-tests
Martin wen't through this some in the lectures, does anyone know which one?

Spring Boot - Security-20240326_130013-Mötesinspelning

Yes let's add some testing! 👍 I'm going to make separate issues for each package so we don't work on the same tests.

Closing this as we have separate issues for testing.


reward_mean converges, but kl is getting bigger and bigger

I use trl for ppo training on my model (a seq2seq generation model). The PPOConfig is as follows.
 config = PPOConfig(           model_name="/search/ai/kaitongyang/RLHF_DEBUG/PPO_trl/small_glm",           learning_rate=1e-5,            batch_size=32,            ppo_epochs=3,            log_with="wandb",            init_kl_coef=0.3,            remove_unused_columns=False,            mini_batch_size=8 )
At the end of the training, I found that no matter what query is input, the output is the same response. It seems that there is a problem with the kl divergence. It stands to reason Say I understand that a good ppo convergence is that the reward_mean is getting bigger and bigger, and then tends to be stable. The kl divergence starts to change, but it tends to be problematic later, but the kl divergence here is getting bigger and bigger, which leads to the model not learning well.

What could be the reason for this, thank you very much

I have a similar question that why there is a peak in "loss/total" and "loss/policy"？
Is your kl becoming more and more negative? According to my understanding, the method of objective/kl is（https://github.com/lvwerra/trl/blob/main/trl/trainer/ppo_trainer.py#L848）(data["logprobs"] - data["ref_logprobs"]), if it becomes more and more negative, it means that data["logprobs"] is getting smaller and smaller, and data[" logprobs"] is the logits after softmax_log, that is, the logits are getting smaller and smaller? More and more unbelievable?

@Mryangkaitong No, the KL value becoming bigger and more positive.
The policy changes the origin token distribution so the KL value increases.

Note that the KL-divergence (objective-kl) should never be negative. This can happen if you generate text with settings that are not pure sampling (e.g. early stopping strategies, minimum generation length etc.). Have you tried the generation settings used in the T5 example.

Thanks a lot, it worked

Hello author, it is possible to converge now, but when the convergence reaches a certain level, the reward_mean will decrease again, as shown in the figure below (roughly 70 steps is an epoch), is this normal?

Note that the KL-divergence (objective-kl) should never be negative. This can happen if you generate text with settings that are not pure sampling (e.g. early stopping strategies, minimum generation length etc.). Have you tried the generation settings used in the T5 example.

Hello author, it is possible to converge now, but when the convergence reaches a certain level, the reward_mean will decrease again, as shown in the figure below (roughly 70 steps is an epoch), is this normal?

Note that the KL-divergence (objective-kl) should never be negative. This can happen if you generate text with settings that are not pure sampling (e.g. early stopping strategies, minimum generation length etc.). Have you tried the generation settings used in the T5 example.

Hello author, it is possible to converge now, but when the convergence reaches a certain level, the reward_mean will decrease again, as shown in the figure below (roughly 70 steps is an epoch), is this normal?
learning_rate=1e-5, batch_size=32, ppo_epochs=3, init_kl_coef=0.1, mini_batch_size=32

Hi @Mryangkaitong , have you managed to resolve negative kl issue by changing generation kwargs? What generation kwargs do you use for now?

Maybe saving the best model would be a good idea? At each step compare average reward and save if it is the best so far. Maybe also a learning rate scheduler could help.

Note that the KL-divergence (objective-kl) should never be negative. This can happen if you generate text with settings that are not pure sampling (e.g. early stopping strategies, minimum generation length etc.). Have you tried the generation settings used in the T5 example.

when I use generation settings
max_length=512
objective-kl become negative, but no settings max_length, my response become very very short

Note that the KL-divergence (objective-kl) should never be negative. This can happen if you generate text with settings that are not pure sampling (e.g. early stopping strategies, minimum generation length etc.). Have you tried the generation settings used in the T5 example.

Hello author, it is possible to converge now, but when the convergence reaches a certain level, the reward_mean will decrease again, as shown in the figure below (roughly 70 steps is an epoch), is this normal?
learning_rate=1e-5, batch_size=32, ppo_epochs=3, init_kl_coef=0.1, mini_batch_size=32

Hi @Mryangkaitong , have you managed to resolve negative kl issue by changing generation kwargs? What generation kwargs do you use for now?

https://github.com/lvwerra/trl/blob/main/examples/sentiment/scripts/t5-sentiment.py#L90

With the generation kwargs you linked above + max_new_tokens the model should always generate as many tokens as you want without negative KL divergence.


LMNA

Remove Barthelemy (atypical course which muddies the waters) @ielis  -- make copy if need be.

Remove Novelli since it is one patient. with incomplete clinical description @ielis

Remove Patni (it is a novel syndrome not yet listed in OMIM) @ielis

Remove Simha (it is a mixed phenotype that does not match exactly with existing OMIM identifiers). There are quite a few of these kinds of case reports but it is hard now to know what to do with them and the clinical descriptions are heterogeneous and perhaps best left for a separate study. @ielis

@ielis  remove Van Esch -- a novel syndrome of arthropathy, tendinous calcinosis, and progeroid features. (see above comment)
Remove Zirn -- same comment

@ielis I would also tend to remove Wiltshire, since only one individual is described in detail, which necessarily adds to apparent hetergeneity (no way to know)

We have the following diseases

Cardiomyopathy, dilated, 1A 	115200 	AD 	3
Emery-Dreifuss muscular dystrophy 2, autosomal dominant 	181350 	AD 	3
Hutchinson-Gilford progeria 	176670 	AD 	3
Lipodystrophy, familial partial, type 2

We have over 10 individuals for each disease except the last (I have reached out to two authors of large cohorts for the last). I would suggest we delete the rest, since it is hard to judge the effects with small groups of other diseases (e.g., Emery-Dreifuss recessive). Please save the files in data elsewhere, and we should remove them for now from here!

Hi, thanks a lot for the phenopackets! I'll add these into the pipeline.

I still need to fix a few minor errors and export the final LMNA phenopackets. If you are ok, I will delete the files and will be adding more cohorts of LMNA this week.

Yes, please go forward with deleting the files and adding more LMNA cohorts.

done


Git commit message format not reflected in git log

I recently decided to use VS code as my main git editor, seeing as how I can use a terminal, write commit messages, and view my git history all in one place. I was previously using git bash, Gitk, and Git Gui as a part of my git workflow. One of the reasons I switched to VS code was its ability to format git commit messages so I wouldn't have to wrap the contents of the message manually. The following options are included in my settings file...
"[git-commit]": {         "editor.rulers": [72],         "editor.wordWrap": "wordWrapColumn",         "editor.wordWrapColumn": 72     }
This does seem to work when I write a git message using git commit or git commit --amend using the terminal.

However, when I run git log, the commit message does not have any line wrapping or formatting.

Shouldn't the formatting apply so it's the same when viewed in git log too? I'm not sure if there is a setting that I've missed, or if there's something else going on here.
Here are my settings...

VSCode Version: 1.38.1
OS Version: Windows_NT x64 10.0.17134
Git Version: 2.22.0.windows.1

Steps to Reproduce:

Include the settings mentioned above in your settings file.

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

That's because the word wrap is doesn't add line breaks, you should use the ruler and manually put in the lines. Or maybe there's an extension out there that can format git commit type files.

I know this issue has been closed but would it be possible to provide the rationale behind having a method to format a git commit message (or anything else, I'm assuming) within the editor but not have it saved with the desired format?

I don't think we have a built-in formatter for git, but an extension could add one that does what you ask.


fix(bens): d3-subgraph and docs

@coderabbitai description

@codetabbitai full review

@coderabbitai review

@coderabbitai @coderabbit please review 🥲


NO-TICKET/configurable broadcast test

This PR allows tweaking the parameters of a built-in test from the commandline (via envvars) if desired, to avoid the considerable recompilation time.

bors r+

bors r+


Fix periodic feature spec reload

scheduledExecutorService was a local variable which will be garbage collected after a while. This PR change scheduledExecutorService to be a field instead so that periodic feature spec reload will still be active.
Fix #188

/lgtm

/approve


use Node 12.13.0 executor

installed server dependencies one by one, please use npm ci to install them locally
closes #120

Coverage remained the same at 95.257% when pulling 1f09c7f7e609af09e40e50cef3db1bf9fad08147 on upgrade-to-node-12.13 into 495ab8afd657e356d34ad26a175da19bb8f2908d on master.

@bahmutov Ready for merge

done and done


Handle signedness correctly in RunContainer.first

This fixes a bug where the first value would be returned as a negative
number when the start of the run used all 16 bits.

Unless I'm missing something the previous behaviour was correct since Roaring stores unsigned integers. Once you get to 16 bits in the key, you're into the negative signed integers.
@lemire do you agree?

Sorry, I understand having looked at the new test case. This bug happened whenever a run started after the 16th bit of the container. It doesn't relate to the key at all. The fix looks good to me.

Coverage remained the same at 89.941% when pulling bc73671ebff6958e34e3957f21533d9e41d503ec on gorset:run-first-unsigned into 345573c64fbb2c0736dcce2625b840dfbb74521e on RoaringBitmap:master.

Thanks, I am looking at this soon. I'm back from vacations.

Thanks for looking at it. We discovered this in production when the following code failed:
            RoaringBitmap positions = entry.getValue();
            while (!positions.isEmpty()) {
                RoaringBitmap batch = positions.limit(batchSize);
                positions.remove(batch.first(), batch.last() + 1L);

(let me know if there's a more idiomatic way to iterate through a roaring bitmap in batches).
Our workaround was to change batch.first() to batch.select(0).

@gorset you have another production error on its way: RoaringBitmap.last returns negative values when there are 16 bits in the key (its contents are interpreted as unsigned integers). This is by design.
As far as iteration in batches is concerned, I prototyped cursor based pagination similar to Solr on a branch but didn't take it any further. I could finish that code this month if it's useful.

@richardstartin, that's ok. By design we don't have that many possible values. We partition data to make sure we never need more than 31 bits in a single partition.

@gorset If you need to page through the values, why don't you do something like this...
https://github.com/RoaringBitmap/RoaringBitmap/blob/master/examples/PagedIterator.java#L14-L21

I'll issue a new release. Thanks to all involved.


Suddenly getting error: "cannot load such file -- vmstat"

I have a system which launches VMs and installs this sensu plugin, as well, as several others. I haven't launched any VMs for a while (2 or 3 weeks) and I started launching some yesterday, and noticed that on each machine check-ram.rb produces this stack trace:
Sensu::Plugin::CLI: ["Not implemented! You should override Sensu::Plugin::CLI#run."]
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- vmstat (LoadError)
	from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
	from /var/lib/gems/1.9.1/gems/sensu-plugins-memory-checks-1.0.2/bin/check-ram.rb:36:in `<top (required)>'
	from /usr/local/bin/check-ram.rb:23:in `load'
	from /usr/local/bin/check-ram.rb:23:in `<main>'

The process which provisions these VMs will install these plugins from scratch on each VM so I imagine that the version running right now is not the same as it was a few weeks ago. The base image that the VM uses was updated but I don't think there was anything ruby/sensu-related in that set of updates.
The metrics-memory.rb plugin seems to be working fine, as well as all the sensu plugins.
Is there anything else I need to install/update/tweak to get this working again?

Hi @SolomonShorser-OICR, the 1.0.0 release of the plugin removed the vmstat runtime dependency so that the gem could be installed on systems that don't have compilers installed. Therefore you must install the vmstat gem as an extra step when installing this plugin. See the README for details.

Thanks, I must have missed that! I'll add that vmstat gem to the playbook to see if it helps.

We just got hit by this. Thank you for posting this issue / answer.
Fixed it by doing sudo /opt/sensu/embedded/bin/gem install vmstat


Update pnpm + dependencies

Updated pnpm to the latest major version as well as other dependencies, which included renaming @edgeandnode/components to @edgeandnode/gds.
Targeting the graph-theme branch to prevent merge conflicts.

@B2o5T – Maybe we merge yours first, and this one right after? (the base branch should automatically change to main once yours is merged)


Fix issues with login, editing and translations when base_url is set.

This address problems raised in #200, #279 and also most likely #189.
Specifically, when base_url was being set, any URLs generated from the Javascript running in the browser was not including the base_url value.
For the login page, the config object was also not being passed in when rendering. This was needed as the template file was trying to access it to use base_url in links in the HTML generated from the server.
The changes should result in the following now working correctly when base_url is used.

Login.
Page editing.
Translations.

Note that this only fixes the authentication using forms based login. I haven't tried to address login using Google OAuth, as I am not setup to test that at the moment. Suggest that any changes related to making Google OAuth work when base_url is used be addressed after this change is tested and merged.

Have include fix for #281 in this PR as well. This address the missing callback on fs.close() call.

The way the base_url() function is pushed to the browser needs to be changed, otherwise people who upgrade and have custom templates will see things fail if they don't integrate changes to the template from latest version. Change to address this coming soon.

Change to be more tolerant of users who haven't updated private copies of templates to set base url variable, now added.

Note that the fix for missing callback in fs.close() was also a part of #277, but because that PR was simply closed and not merged, the fix for the callback issue was never included.


Add support for Huada Semiconductor HC32F005.

Tested working: flashing, erasing, debugging.

bors r+


Add legacy sms redirect for media item page

Add an endpoint under /legacy for handling individual media pages. It maps the SMS media id to a JWPlayer key and redirects to the new media page. If the media item could not be found or if the ACL disallows viewing, the user is redirected back to the original SMS application to let it deal with the problem.
Closes #82

deployed/tested on https://development.media.cam.ac.uk/
tested for success, 404, & 403.


Applied fixes from StyleCI

This pull request applies code style fixes from an analysis carried out by StyleCI.

For more information, click here.

Hi,
I am a laravel developer. I have 2 yrs of experience in that i have 7
months of laravel experience. Want to join and work your project. If you
have any task please give me. I never work before in open source community.
I am very much interested to work with you.
Regards,
Hemraj Solanki
On Dec 27, 2015 7:37 PM, "Phan An"<EMAIL_ADDRESS>wrote:

This pull request applies code style fixes from an analysis carried out by
StyleCI https://styleci.io.
For more information, click here https://styleci.io/analyses/qJ3pnz.
You can view, comment on, or merge this pull request online at:
https://github.com/phanan/koel/pull/147
Commit Summary

Applied fixes from StyleCI

File Changes

M app/Exceptions/Handler.php
https://github.com/phanan/koel/pull/147/files#diff-0 (4)

Patch Links:

https://github.com/phanan/koel/pull/147.patch
https://github.com/phanan/koel/pull/147.diff

—
Reply to this email directly or view it on GitHub
https://github.com/phanan/koel/pull/147.


Nice i18n formatting of range

How about some way to format a range like
"Jul 1–3 2018", "August 24th – September 12th 2019", "Dec 12 2018 - Jan 4 2019", depending on locale and short/long?

Also things like: "Today between 2:00 PM and 4:00 PM" 😉


chore(#6): updated the readme with more details

This pull request contains adding more details on readme.md.
Preview
Gym Landing Page
Welcome to the repository for the Gym Landing Page!
This project is a simple, clean and modern landing page for a gym or fitness center.
Tech Stack

React.js
TailwindCSS
Vite.js
Swiper.js

Description
Welcome to the repository for the Gym Landing Page! This project is a simple, clean and modern landing page for a gym or fitness center.
Features

Responsive design for mobile and desktop devices
Clean and modern user interface
Customizable color scheme
Easy to use and customize

Getting Started
To get started, clone the repository
  git clone https://github.com/Min-Ho-Lim/Gym-Landing-Page.git
  cd Gym-Landing-Page

Then you need to install npm packages
  npm install

Once it is done, you may run it by using
  npm run dev

Now, you can check it on your localhost !
http://localhost:5173/
Demo
Demo is deployed under Vercel.
http://gym-landing-page-gules.vercel.app/
Contributing
Contributions are always welcome!
See contributing.md for ways to get started.
Please adhere to this project's code of conduct.
Authors

@Min-Ho-Lim

License
This repository is available under MIT Liscence

Approved


Added Jupyter-kernel-installer-gradle dependency and permission fix

Following the installing instruction I found that I was missing Jupyter-kernel-installer-gradle and that the cloned repos had gradlew not executable.
Given the very nice work you've done, I think that adding this info to the README.md will help less expert users installing your kernel.

Thanks for the PR! I've been working locally on the gradle plugin in conjunction with this project and forgot to push the updated gradle plugin to the plugin repository and so I've been building from a local copy. I would like to keep the amount of extra manual installations down and will try to keep master using a the plugin from the public plugins repo.
I am on a windows machine so it's a little difficult to test the unix installation instructions so these changes are great! I've published the newest gradle version of the gradle plugin and changed the buildscript to only pull the public one. If you could revert the README changes for manually installing the gradle plugin then we can merge the rest.

I close this one since I've opened a new one with the (very minimal) changes required to fix the permissions.


Add more tests

[ ] Check that you can update the registrar for a domain if the proof changes (from valid proof a -> valid proof b, from no proof -> proof, and from proof -> no proof)
[ ] Check that you can't replace a custom registrar with the default one even if the TXT record proof has expired (but is still in the oracle).
[x] Check that you can't use an expired TXT record to update the registrar address (Solved in https://github.com/ensdomains/root/pull/6)
[ ] Check that invalid TXT records are treated the same as nonexistent one (we don't want a name to be unavailable because it has an unexpected record).

@Arachnid do we really want to implement requirement 2 as it is specified here?

@deaneigenmann why would we not?

@Arachnid do we not consider that to no longer be a valid record and so we should move over to the default registrar?


Simplify public getters (only lists/dicts that can be cleared from outside anyway. doesn't break any serialization either)

Codecov Report

Merging #161 into mirror will increase coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           mirror    #161      +/-   ##
=========================================
+ Coverage    6.52%   6.52%   +<.01%
=========================================
  Files          29      29
  Lines        6224    6387     +163
  Branches      866     932      +66
=========================================
+ Hits          406     417      +11
- Misses       5805    5956     +151
- Partials       13      14       +1

Impacted Files
Coverage Δ

Mirror/Runtime/NetworkScene.cs
0% <0%> (ø)
:arrow_up:

Mirror/Runtime/NetworkConnection.cs
0% <0%> (ø)
:arrow_up:

Mirror/Runtime/NetworkClient.cs
0% <0%> (ø)
:arrow_up:

Mirror/Runtime/ClientScene.cs
0% <0%> (ø)
:arrow_up:

Mirror/Runtime/NetworkServer.cs
0% <0%> (ø)
:arrow_up:

Mirror/Runtime/NetworkManager.cs
1.79% <0%> (+1.79%)
:arrow_up:

Mirror/Runtime/SyncList.cs
82.81% <0%> (-0.45%)
:arrow_down:

Mirror/Runtime/NetworkIdentity.cs
0% <0%> (ø)
: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 320e704...0e704ed. Read the comment docs.


remove JSDOC object->any rewrite

Turns out only the Object -> any rewrite got removed. We may have already done some analysis of this change, but I created this PR to easily run it again.
Fixes #34980

@typescript-bot user test this

By the numbers:

7 failures in compiler tests
19 new failures in axios
1 failure in content-disposition
4 failures in prettier
97 new failures in webpack

I know that webpack and prettier use checkJS; 97 new errors in webpack is concerning.
The new error in content-disposition is good -- catches a bare return when the function claims to return object. (assuming strictNullChecks, which the test suite does)
I'll look at the axios-src, prettier, and webpack failures next.

axios-src has

1 usage where object is clearly used to mean { [s: string]: any }.
1 usage where it basically means any.

prettier

1 options usage where at least they said "TBD???"

webpack has

1 frequently used property where object means any in a TBD sort of sense.

There might some others but I ran out of time to look at all the errors -- most of them are the same missing properties from the aforementioned object.
Overall, I think it's clear that real uses of object as any, or at least a string index signature, exist. I'm going to put this change behind --noImplicitAny like the Object change.

I'll fix up any test failures tomorrow.

@weswigham @andrewbranch ping!


How do you implement and use this library?

I've been trying for few days now to make this library work with my sockets in order to make an API call to an endpoint and from that endpoint emit a message to a certain user, I have to do it this way because I need to give the API endpoint to some service to use it as a webhook and emit the result to the user (So basically the user logs in with an outside service and performs an action in that service through my app, and once that action has been fulfilled by that other service I get an update to my API endpoint and from that endpoint I want to emit the message to the user to let them know about that and the part of emitting the message from the API endpoint process to the user's socket is what's causing me problems)
When I try to run this server it immediately gives me the following error:

events.js:174
throw er; // Unhandled 'error' event
^
Error: Redis connection to localhost:6379 failed - connect ECONNREFUSED <IP_ADDRESS>:6379
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)

Here's my working code (This code works but it doesn't have the socket.io-emitter library so I can't emit a message to the socket from a non-socket process)
var express = require("express");
var app = express();
var http = require("http").createServer(app);
var io = require("socket.io")(http);

io.on("connection", (socket) => {
    console.log("User connected: ", socket.id);
    io.to(socket.id).emit("new_message", {id: "999", msg: "Welcome back, your Id is " + socket.id});
})

//here I want to emit a message to a user by the URL params
app.get("/send/:id/:message", (request, result) => {
    result.send("Id = " + request.params.id)
})

const port = 3001;
http.listen(port, () => {
    console.log("Listening to port " + port);
});

And this is how I tried to implement socket.io-emitter into the above code:

Add the following code to the top of the script:

const redis = require('socket.io-redis');
io.adapter(redis('//localhost:6379'));

Add the following code inside the app.get("/send/:id/:message"....) function:

    const ioEmitter = require('socket.io-emitter')({ host: '<IP_ADDRESS>', port: 6379 });
    ioEmitter.to(request.params.id).emit({ id: "999", msg: request.params.message });

Here are the relevant depends I installed in this project while trying to make this library work, just so that you can see if I missed to install some libraries, or if there are some that collide:

"ioredis": "^4.14.1",
"redis": "^2.8.0",
"socket.io": "^2.3.0",
"socket.io-emitter": "^3.1.1",
"socket.io-redis": "^5.2.0"

I'd appreciate any attempt to help :)

It seems your Redis server is not running. Could you please check?
Regarding the exception, you need to register an handler for the error event, more information here: https://github.com/socketio/socket.io-emitter#error-handling


Allow multi-line code

I've added a {% code %} block that executes Python code inside the block.
It'd make an extremely useful addition to a number of projects that I work on that use Tornado templates on a standalone basis.

r-
This leads to more complex templates. Business logic should be done in the get() or initialize() method.

I agree with @peterbe; this adds no new functionality, and serves only to make writing poorly-designed templates easier, while complicating the syntax.

Withdrawn.


Search: Exhibitions & events FE integration

Display relevant content for Exhibitions search/exhibitions, and Events search/events.
They're shown together in the mockups but we decided to split them.
The default state (no query or empty query) should not display any results.
We discussed having a sort order component as well (which isn't shown in mockups)
https://www.sketch.com/s/1cc6a024-668b-4d76-9617-115910d3a797/a/wLkx41p#Version

i'll close this as we won't be doing it for a long time and a lot could be decided in the meantime (@jtweed )


Database layer for Idempotency Keys persistence.

Let's imagine a clusterized network (either physical or virtual/dockerized). Let's also suppose that our clients are ERP API integrations (no browser here). How can we ensure that duplicated requests don't spend money more than once? The solution is to persist such Idempotency Key + Request/Response information on some shared store for the running micro-service instances.
Good candidates for the backend storage are:

:elephant: Postgres, due the widespread usage.
:red_circle: Redis, due the TTL of keys support.

I'm just opening this issue to start a nice discussion here, and, if you would approve, I could as well open a Pull-Request to implement that. :smile:
Thanks in advance! :+1:

Hey @marcoonroad apologies I didn't see this post earlier.
Absolutely agree that using some persistent store for idempotency keys would make sense.
There are several good cache managers for Node which incorporate support for different stores (a favourite of mine is Node Cache Manager.
Perhaps a good approach to this would be to allow different stores to be supported (e.g. in-memory by default, redis / postgres / mongo etc. if specified by config).
Would be happy to discuss further and PRs warmly welcomed.

No problem, @jamiesoncj, it's quite hard to be up-to-date with GitHub notifications nowadays, they have a poor support for thread notifications anyways.
Redis is indeed one of the best for caching, 'cause it can asynchronously perform an on-disk backup (quite good when the server/machine crashes, different of Memcached, used to optimize data retrieval) and supports Time-to-Live on keys.
What about the initial implementation offer in-memory and Redis backends?
Thanks for the reply. o/

Great, if you want to produce a PR for Redis option that would be great.
Initially this can be quite simple - the main function should accept an options argument, which can contain cache-related keys, and also might allow us to set some other options e.g. specify the request header for the module to check (example below).
Can I suggest that the signature might be something like this:
var idempotency = require('@optimuspay/express-idempotency');

// Example for in-memory cache
var options = {
  requestHeader: 'Idem-Key', // default: 'Idempotency-Key' - this is not yet implemented
  cache: {
    store: 'memory',
    options: { // lruOptions if store is memory (see https://github.com/isaacs/node-lru-cache)
      max: 500,
      length: function (n, key) { return n * 2 + key.length },
      maxAge: 10000,
    }
  }
};

// Example for Redis cache
var options = {
  requestHeader: 'Idem-Key', // default: 'Idempotency-Key' - this is not yet implemented
  cache: {
    store: 'redis',
    options: { // options for redis.createClient if store is Redis (see https://github.com/NodeRedis/node_redis#options-object-properties)
      host: <IP_ADDRESS>,
      port: 6379,
      path: null,
    },
    // redisClient: client, // instead of options property above, an initialised Redis client from `redis.createClient();` could be passed in here
  }
};

app.use(idempotency(options));

Look forward to your suggestions - the above is just an initial idea.


[gtk]Change the build form in windows.

Building gtk with CMakeLists.txt is missing too much functionality, replacing the build form to msvc..
Related: #6554.
Note: this PR is experimental.

/azp run

/azp run

/azp run

Close this PR via #9154.


Documentation?

This project looks cool and I want to use it. But is there any documentation to look at?

Take a look at the examples and join our gitter chat

I guess it wouldn't hurt to take (and modify) a bit nmp doc.
I guess we never did that because of the plan to merge with nmp eventually (but well that eventually probably isn't right now)


Don't use '/revalidate' on language change

We used '/revalidate' on language change, which always triggers a complete refresh. That fixed the auth problems on language change, but with this solution, we ran into another problem:
You will get an error when you change the language from an object page.
The problem
If you take, for example, this object:
https://dev.app.colonialcollections.nl/nl/objects/https%3A%2F%2Fexample%252Eorg%2Fobjects%2F5
After a language change, you will go to this revalidate URL:
https://dev.app.colonialcollections.nl/revalidate/?path=/[locale]/objects/https%3A%2F%2Fexample%252Eorg%2Fobjects%2F5&redirect=/en/objects/https%3A%2F%2Fexample%252Eorg%2Fobjects%2F5
And that will result in a redirect to:
https://dev.app.colonialcollections.nl/en/objects/https:/example.org/objects/5
Notice the object identifier encoding is wrong; this will result in an error.
Tried solutions
The redirect URL is in the search parameters. The search params are in the searchParams object in a server component. docs
However, Next.js tries to decode the values, so the redirect param:
/en/objects/https%3A%2F%2Fexample%252Eorg%2Fobjects%2F5
This will result in:
/[locale]/objects/https://example%2Eorg/objects/5
I also tried using a route param instead of a serchParams, so the language switch URL would be:
https://dev.app.colonialcollections.nl/revalidate/en/objects/https%3A%2F%2Fexample%252Eorg%2Fobjects%2F5?path=/[locale]/objects/https%3A%2F%2Fexample%252Eorg%2Fobjects%2F5
And using the page app/[locale]/revalidate/[...rest]/page.tsx, would result in the rest parameter:
[ 'en', 'objects', 'https%3A', '', 'example%252Eorg', 'objects', '5' ]
Both options are not workable. This extra decoding by the Next.js app router only happens in a production build.
Working solution
Trying different ways to use the app router with URIs and encoding the search params will result in the correct path and redirect value in the /revalidate page.

@sdevalk I have been thinking about this pull request and the URI identifiers in route segments. Encoding and decoding correctly is tricky because the Next.js app router behaves differently locally than in production.
A different approach is by encoding the URIs differently. For example, hex encoding has no special characters.
I have opened a different pull request for this. solution: https://github.com/colonial-heritage/colonial-collections/pull/478
I think both pull requests work; we need to choose ONE.


build(.circleci): fix static build path

What type of PR is this?
/kind bug

Any specific area of the project related to this PR?
/area build

What this PR does / why we need it:
Both "publish/packages" and "publish/packages-dev" jobs were looking for the static build in the wrong directory. Just fixed that.
/milestone 0.26.0
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
/cc @leodido
/cc @fntlnz
Does this PR introduce a user-facing change?:

NONE

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign leogr
You can assign the PR to them by writing /assign @leogr in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 8d4e0f2fc9784085d584246ab941e1ad4fbe0d66

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [fntlnz]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fntlnz, leodido
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [fntlnz,leodido]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


[meta] formatOnType problems

Causes syntax error:

[x] #1779 - underscore-separated numbers (inserts space)
[x] #1781 - raw strings (inserts space)
[x] #1783 - leading collecting var in unpacking (inserts space)
[ ] #1784 - int literal attr lookup (removes space)
[x] #1785 - *args (inserts space)  (dupe #1783)
[x] #1791 - parens in conditional statements (removes spaces)  (dupe #1780)

Incorrect formatting:

[x] #1780 - parens in conditional statements (removes spaces)
[x] #1782 - matmul (removes spaces)
[x] #1786 - parens around expression (removes spaces)  (dupe #1780?)
[x] #1787 - trailing comma (removes spaces)
[x] #1788 - LHS trailing comma (removes space)
[x] #1789 - single item unpacking (removes space)  (dupe #1788)
[x] #1790 - unary operator (inserts space)
[ ] #1792 - slice notation (removes spaces)
[x] #1793 - type hints (removes spaces)
[ ] #1796 - kw args (inserts spaces)

Closing as stale.


Incorrect x86 rep movs lifting

Binary Ninja Version: 1.1.1486-dev, 747f0dfa
Platform: Windows 10 (10.0)
rep movsw, rep movsd and rep movsq are all lifted the same as rep movsb (only copying 1 byte at a time)

Fixed in 1.1.1722-dev.


Add missing oauth fqdn on local hosts file for console access

Without which login to console causes a redirect failure:
This site can’t be reached
Check if there is a typo in oauth-openshift.apps.ostest.test.metalkube.org. DNS_PROBE_FINISHED_NXDOMAIN
Adding the missing oauth fqdn, enables successful console login.

/approve


[FLINK-23947] Improve logging of granting/revoking leadership in DefaultDispatcherRunner

This commit logs on info level when the DefaultDispatcherRunner was granted or revoked its leadership.

Thanks for the review @zentol. Merging this PR now.


Util::timer timeout timeout method and timer_mask

This is a general understanding question.
In util::timer there is a timeout method
bool timeout() const
    {
      const tick_type delta = my_now() - my_tick;

      return (delta <= timer_mask);
    }

If we use a tick_type of std::uint32_t numbers can be represented between 0 and 2^N-1.
I don't fully understand why in the code there is a timer_mask used UINT32_C(2147483647).
If I have a  delta of
const std::uint32_t delta = my_now - my_tick;

with
const std::uint32_t my_now =<PHONE_NUMBER>;
const std::uint32_t my_tick = 100;

It should timeout, but the function doesn't. I don't understand entirely why we are using a timer_mask of (UINTMAX_C(1) << 31) - UINTMAX_C(1).
Furthermore my_now should be able to be greater or equal to 2^32-1, should it?

Hi @GitProdEnv thank you for your query.
The timers in util::timer are designed to handle overflow of the underlying unsigned tick type. The result of this is that the timer range is basically 1/2 of the numeric range of the underlying unsigned type.
I always have to work out this mathematics from scratch, and I know it works and is easier to grasp for a smaller type such as uint8_t. Please give me a chance to work out the math and I'll get back to this thread.

Ok after writing the issue, I already thought it would have something to do with under/overflow and that you can only create a timeout value of 1/2 of the numeric range of the unsigned type.
If you use UINTMAX_C(1) << 31 instead of
(UINTMAX_C(1) << 31) - UINTMAX_C(1) there would be an allowed time difference of delta<PHONE_NUMBER>, which is exactly 1/2 of the numeric range of the chosen unsigned type, in this case (2^32)/2.
#include <iostream>

const std::uint32_t timer_mask =<PHONE_NUMBER>;
const std::uint32_t my_now = 0;

// Case A
// const std::uint32_t my_tick = 214;
// the unsigned delta type will be greater than the half of the numeric range of the unsigned 32bit type
// and therefore the condition will be 0 which makes sense,
// since the current time 0 tick has not reached the timeout value 214 tick yet.
// it lies within the defined timeout range of `timer_mask`.

// Case B
const std::uint32_t my_tick =<PHONE_NUMBER>;
// the difference of my_now and my_tick is greater than half of the numeric range of
// the unsigned type / timer_mask<PHONE_NUMBER> (2^31),
// resulting in a delta  value through the unsigned type:<PHONE_NUMBER> which is
// less than the timer_mask.
// condition true -> timed out, since the difference of my_now and my_tick
// is larger than the timer_mask (Beware: It is only possible to have a timeout of half
// of the  numeric value of the unsigned type,
// for example my_now: 0 and my_tick:<PHONE_NUMBER>, which is less than the
// time_mask and therefore there is no timeout yet).

int main() {
    const std::uint32_t delta = my_now - my_tick;
    std::cout << delta << std::endl;
    std::cout << (delta <= timer_mask) << std::endl;

    return 0;
}

On the other hand if const std::uint32_t my_tick =<PHONE_NUMBER>;, i.e. is below the timer_tick value, with a my_now of 0 we just assume that the timeout has not occured yet, since it lies within 1/2 of the numeric range of the unsigned type.
Therefore wouldn't it be better to just use UINTMAX_C(1) << 31 for the timer_mask?

Ok after writing the issue, I already thought it would have something to do with under/overflow and that you can only create a timeout value of 1/2 of the numeric range of the unsigned type.

Yes. Indeed. I have not yet had time to fully work out the examples. But thank you for diving into this independently.

Therefore wouldn't it be better to just use UINTMAX_C(1) << 31 for the timer_mask?

Let's find out...
When doing these kinds of investigations, I have always favored experiments with the 8-bit unsigned type and its range(s). The mathematics with the masking works out exactly the same for 8-bit values. So if we figure it out fully for BYTE, then it works for WORD, DWORD and quad-WORD as well.
Cc: @GitProdEnv

This is sufficiently described now (I hope), considering

the discussion in this thread,
the rGPT refactor in #436
synchronization with the relevant code snippet in chapter09_03-001_system_tick.cpp.

Fixed by #436


ORC-674: Update docker files

added docker files for ubuntu 20 with and without clang
remove debian 8, and ubuntu 14

(cherry picked from commit 7275ceb8cce0a7316daa357e632fcf4bb21501c8)

+1, late LGTM. Thanks, @pgaref .

Hi, @pgaref . Did you merge and reset the branch? I cannot see this in branch-1.6.

Hey @dongjoon-hyun  -- yeah it was missing the original PR and proper signature so opened #578  instead

Got it. No problem~ :)


Add provider settings properties to pipelines API

As pointed out in #481, we don't have a full list of the properties available in the provider_settings object.
This PR adds a few tables that contain the different properties available, split up by provider. I duplicated the two for Bitbucket server because there were so few for it. Bitbucket Cloud, GitHub, and GitHub enterprise all share a bunch of properties, so I grouped those together and then added an overflow table for the extra ones that only GitHub and GitHub enterprise support.
Depends on https://github.com/buildkite/docs/pull/530 being merged first.
Closes #481

@toolmantim what do you think about the layout of this new bit? I had a hard time figuring out how to present all the options for each provider without too much duplication, and this is where I ended up.

@toolmantim Thanks for the suggestions! I've moved the provider settings into its own section at the end and put links to it from the create and update bits. I think it feels way better with it like this 👌🏻


[New Endpoint] DeletedEntitiesQuery

Definition
Message (TypeScript definition)
interface Message {
  type: "DeletedEntitiesQuery",
  payload: Payload
}

interface Payload {
  first: number
  after?: number
}

Output (TypeScript definition)
interface Output {
  deletedEntityIds: number[]
}

Description what happens in the database layer
Similar to https://github.com/serlo/serlo.org-database-layer/pull/201 : Returns first first elements after the element with the id after ordered by date of deletion (maybe use event_log for this).

event_log.date -> date of deletion
first -> SQL limit
after -> gt date of deletion


feat: Adding-latest-SC4S-release

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


Unable to retrieve child resources.

Storage Explorer Version: 1.15.1
Build Number: 20200902.9
Platform/OS: windows
Architecture: x64 ia32
Regression From:
Bug Description
Error showing CosmosDB data
Steps to Reproduce
Add cosmo db with string to Azure Storage Explorer
Expected Experience

Actual Experience

Additional Context

I dont know if what I have is the same issue described here since there's not much detail other than the error.
However. I was attempting to add a new table to an Azure CosmosDB (TableAPI), during which something happened and focus was taken away from my window, I lost the opportunity to name the DB and now, whenever I attempt to list/view my tables in the explorer, it throws the following error:

The main issue here is that 1. the same error is being thrown for everyone that uses azure storage explorer, and 2. I cannot see the presumably bad/half created table entry in the web ui / portal. - which means i cannot resolve or fix this.

Azure Storage Explorer support for Azure Cosmos DB has been discontinued as of v1.24.0. We recommend users to use Azure Cosmos DB’s Data Explorer, which can be found in Azure Portal or as a stand-alone version in http://cosmos.azure.com/ for the best Azure Cosmos DB experience. You can also find additional Azure Cosmos DB tooling here: Azure Cosmos DB Tools


interactive examples, inside the documentation, takes long to run

Use case
for the most common widgets, in the documentation page that describe it, are present one or more dartpad snippets.
But often the preview takes a considerable amount of time to get ready, and even sometimes don't show at all
Proposal
in my opinion, at the beginning, readers would like to see the preview of the snippet without make any changes, so could be faster to load a precompiled example, without the necessity to run it
Only later provide server resouces to compile the source code if the consultant modify it

@tempral
You'll need to report this in dedicated repo: https://github.com/dart-lang/dart-pad/issues
I see a similar issue open already in it that you can check and refer further.
Closing from here.

Ok


New web interface does not call API

Hi,
I have upgraded to 0.45, as I needed to exclude various side effects on my installation (story ongoing). After upgrade I have copied the static files to root file system. Unfortunately, the UI does not display the values of the wallbox. Any ideas? Thanks

Fixed it. Copy/Paste issue....


GPRMC length may not always be 72

While Velodyne doc says that GPRMC is 72 bytes (and Veloview follows the doc [1]), it may not be.
"[NMEA] data itself is just ascii text [...] in one variable length sentence. The data may vary in the amount of precision contained in the message. For example time might be indicated to decimal parts of a second or location may be show with 3 or even 4 digits after the decimal point. Programs that read the data should only use the commas to determine the field boundaries and not depend on column positions." [2]
A particular INS [3] sends $GPRMC like this
$GPRMC,114842.000,A,5924.2146614,N,02443.9940738,E,34.8,251.6,051115,8.2,E,D*3F
and it comes through in Vlodune position packet.
[1] https://github.com/Kitware/VeloView/blob/12f8ff27581f34f87b06794136a202a45f0e1e73/VelodyneHDL/vtkVelodyneHDLPositionReader.cxx#L178
[2] http://www.gpsinformation.org/dale/nmea.htm
[3] http://www.advancednavigation.com.au/product/spatial-dual

The nmea sentance is parsed using commas as recommended.  We only accept a maximum of 72 bytes because AFAIK thats the space allocated within the packet.  Are you seeing weird behavior?

Yes, but following bytes are specified as unused:
The position packet is a 554 byte long UDP packet broadcasted on port 8308. It consists of:
42 byte Ethernet header
198 bytes Unused
4 bytes Timestamp
4 bytes Unused
72 byte NMEA $GPRMC sentence
234 bytes Unused
And in particular case they are used - Velodyne packet contains longer RMC message.
Behavior is no geolocation available. Because some fields are cut off by Veloview, the length of parsed senctence in words is not 13 nor 14 (vtkVelodyneHDLPositionReader line:428). So a default branch (lonDegGPRMC = 0.0; latDegGPRMC = 0.0; heading = 0.0) is taken.
as these bytes are unused

small sample .pcap with longer RMC messages:
https://www.dropbox.com/s/rbp8uxr9nk9qas6/2015-11-05-13-43-56_Velodyne-VLP-16-Data (2-12).pcap?dl=0

Hello,
The code corresponding to VeloView 3.5.0 binaries has been released.
There is some update in handling NMEA $GPRMC sentences.
Please report if it still create problems (I can't test because your link died).
Best regards,
Bastien Jacquet
VeloView Lead Developer


RuntimeError (This version of jaxlib was built using AVX instructions) on importing optimize_media from lightweight_mmm in a conda environment on M1 mac.

Description:
After setting up a new conda environment and installing the lightweight_mmm package, I encountered a RuntimeError when attempting to import the optimize_media function.
Steps to Reproduce:

Create a new conda environment: conda create --name test_env python=3.10
Activate the environment: conda activate test_env
Install the package: pip install lightweight_mmm
Attempt to import the function: from lightweight_mmm import optimize_media

Expected Behavior:
The optimize_media function should be imported without any errors.
Actual Behavior:
I received the following error:
RuntimeError: This version of jaxlib was built using AVX instructions, which your CPU and/or operating system do not support. You may be able work around this issue by building jaxlib from source.

Environment:
Operating System: macOS Monterey, version 12.2
Python Version: 3.10 (using conda)
lightweight_mmm Version: 0.1.9
Possible Solution:
I thought that building jaxlib from source might work around the issue, as suggested by the error message. But I wasn't able to build it on my machine. Solutions with isolation of environment in docker also didn't work.
Is there any idea how can I fix this error?

pip uninstall jax jaxlib
conda install -c conda-forge jaxlib
conda install -c conda-forge jax


[Important] The current website is about to enter maintenance mode to aid with v3 launch

TL;DR; At the end of Jan 2021, all tracks will enter v3 staging mode. Updates will no longer sync with the current live website, but instead sync with the staging website. The PureScript section of the v3 repo will be extracted and PR'd into this track (if appropriate). Further issues and information will follow over the coming weeks to prepare PureScript for the launch of v3.
Over the last 12 months, we've all been hard at work developing Exercism v3. Up until this point, all v3 tracks have been under development in a single repository - the v3 repository. As we get close to launch, it is time for us to explode that monorepo back into the normal track repos. Therefore, at the end of this month (January 2021), we will copy the v3 tracks contents from the v3 repository back to the corresponding track repositories.
As v3 tracks are structured differently than v2 tracks, the current (v2) website cannot work with v3 tracks. To prevent the v2 website from breaking, we'll disable syncing between track repositories and the website. This will effectively put v2 in maintenance mode, where any changes in the track repos won't show up on the website. This will then allow tracks to work on preparing for the Exercism v3 launch.
Where possible, we will script the changes needed to prepare tracks for v3. For any manual changes that need to be happening, we will create issues on the corresponding track repositories. We will be providing lots of extra information about this in the coming weeks.
We're really excited to enter the next phase of building Exercism v3, and to finally get it launched! 🙂

As of today, the website has entered maintenance mode.

As of today, the website has entered maintenance mode.