oci/client: Configureable retry backoff

Part of: https://github.com/fluxcd/flux2/issues/3714
This pull request adds a function to configure the retry backoff on crane option for different OCI operations.
It also removes the NewLocalClient function, adding a function DefaultOptions that returns an array of crane.Options that can be passed into NewClient to get the same result.

@darkowlzz I have updated the PR and added comments for the public functions now.

This has been tagged as oci/v0.24.0 please go ahead with the CLI changes.


Remove Docker Swarm external integration

Now Prometheus has native Swarm support and that is what we should
promote.
I have also engaged with the community:
https://github.com/ContainerSolutions/prometheus-swarm-discovery/issues/11
https://github.com/function61/promswarmconnect/issues/14
https://github.com/cuigh/prometheus/issues/8
Signed-off-by: Julien Pivotto<EMAIL_ADDRESS>

:+1:


Investigate antares functional tests deployment failure

https://github.com/dotnet/corefx/issues/25803

Fixed!


C++

Hello i want to ask you about the possibility to run this model in c++ the requirements or if you have a c++ , java version.
thanks in advance

You may use c++ port of pytorch to run it. Someone did it, but I did not.

thanks, Do you know him or how I can contact him?

@ammarali32  Hi! Did you manage to run this code in c++ ? Thanks!

@antithing Not actually because the model is locked i tried to convert it to PB frozen model to use OpencvDNN to read it but unfortunately, it doesn't work fine as well for ONNX so right now I am working on something else.

Welcome for any contributions of C++ or other ports : )

I would like to write a c++ inference could you please provide your model in TensorFlow inference i already did it for PRNet.

I am implementing your code in c++ could you please clarify this point for me?
vertex = p @ (u_base + w_shp_base @ alpha_shp + w_exp_base @ alpha_exp).reshape(3, -1, order='F') + offset

Please clarify the usage of @ operation here also the whitening pkl file is for metadata how it designed or its architecture to be able to read it using c++

Please clarify the usage of @ operation here also the whitening pkl file is for metadata how it designed or its architecture to be able to read it using c++

https://github.com/cleardusk/3DDFA/issues/27

@ammarali32 how's your c++ implementation goes? Any progress can be shared?

@jinfagang https://github.com/cleardusk/3DDFA/tree/master/c%2B%2B

@ammarali32 thanks, does this also portable for 3DDFA v2 version?

@jinfagang Yes but you need to change the STD and MEAN values. Also, the detector on 3DDFA v2 is Faceboxes Authors already provided the ONNX model but you need to specify the input shape to be fixed in the architecture to work on OpenCV otherwise you need to build ONNX runtime on c++ or PyTorch

@ammarali32 I have switched detector part to SCRFD and have a workable python demo already. Just curious on TFFDA part if I can using your code directly, that would be very nice.


HADOOP-16183. Use latest Yetus to support ozone specific build process

In YETUS-816 the hadoop personality is improved to better support ozone specific changes.
Unfortunately the hadoop personality is part of the Yetus project and not the Hadoop project: we need a new yetus release or switch to an unreleased version.
In this patch I propose to use the latest commit from yetus (but use that fixed commit instead updating all the time).
See: https://issues.apache.org/jira/browse/HADOOP-16183

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
24
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

+1
@author
0
The patch does not contain any @author tags.

_ trunk Compile Tests _

+1
shadedclient
754
branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1
shellcheck
1
There were no new shellcheck issues.

+1
shelldocs
15
There were no new shelldocs issues.

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
697
patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1
asflicense
31
The patch does not generate ASF License warnings.

1616

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-599/1/artifact/out/Dockerfile

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

Optional Tests
dupname asflicense shellcheck shelldocs

uname
Linux 61a3936edf67 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / d602d46

maven
version: Apache Maven 3.3.9

shellcheck
v0.4.6

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

modules
C: . U: .

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-599/1/console

Powered by
Apache Yetus 0.10.0-SNAPSHOT http://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
29
Docker mode activated.

_ Prechecks _

+1
dupname
0
No case conflicting files found.

0
shelldocs
0
Shelldocs was not available.

+1
@author
0
The patch does not contain any @author tags.

_ trunk Compile Tests _

+1
shadedclient
709
branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1
shellcheck
1
There were no new shellcheck issues.

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
706
patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1
asflicense
31
The patch does not generate ASF License warnings.

1583

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-599/2/artifact/out/Dockerfile

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

Optional Tests
dupname asflicense shellcheck shelldocs

uname
Linux a02ea5987ac4 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 79d3d35

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

modules
C: . U: .

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-599/2/console

versions
git=2.7.4 maven=3.3.9 shellcheck=0.4.6

Powered by
Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

Thanks @busbey the review. I am merging it right now and will monitor the next few patches to check how does it behave...


Adding chrome extension to wallet install documentation

Motivation
Installing the Fuels wallet on chromium browsers via zip file will be deprecated for chrome extension. @sdankel has expressed issues with errors that makes users need to reinstall because of it's instability.

Usage example

Possible implementations
Simply update the readme section here as well as provide an updated video.  As well as add a
Download Fuel Wallet

"Chrome Store Button"
"Zip File Button"

closed by: #791


Docker Switch Not Found

Hi
I'm installing this for the first time. In the instructions it's said to run:
docker compose up -d
However, I got this error after running this:
unknown shorthand flag: 'd' in -d
Appreciate your help, thanks.

I needed to install docker compose, also use docker-compose up -d (with hyphen)


Active predictions tracker for same fixture visualized at User's Prediction Page.

Added Pusher for active tracker by @SudeepMi


Vulkano shader macro/shader IO blocks

Version of vulkano: 0.18
Upload of a reasonably minimal complete main.rs file that demonstrates the issue: TODO

Issue
The vulkano shader! macro doesn't support blocks for vertex output or fragment input. I get "Type #9/#43 not found or invalid" (9 for vertex output, 43 for fragment input) as a proc macro panic when using blocks.

Seeing this also.

hello, I also hapend this problem ,i resolve way is that:
layout(location = 1) in VS_OUT {
vec4 col;
} gs_in[];
become to
layout(location = 1) in vec4 col[];
it is stable run .


Implement Channel Join

Reference: https://api.slack.com/methods/channels.join
Acceptance Criteria:

[ ] Spring Slack Client is extended with given method
[ ] Spring Slack Test Client is extended with given method
[ ] JavaDoc/KDoc is added

closed by #285


feat/segmentation min cut

Description of change

Pre-Merge Checklist

[x] Tests and/or benchmarks are included
[ ] Documentation is changed or added
[x] Lint process passed (npm run lint)
[x] Tests passed (npm run test)

@lengoanhcat Need to run npm run build:wasm in the local, and then push the code.

@lengoanhcat Need to run npm run build:wasm in the local, and then push the code.

@luoxuhai : done ! I have to make some extra changes besides binding codes to successfully run .devcontainer and build pcl-core.wasm. Pls help review and let me know it works in your environment or not.

Please run git rebase master(the latest) locally and resubmit, then I can merge

@luoxuhai done ^^ !

Thanks! :-)


Wrong support of Laravel 6

Laravel 6 is suppored in composer.json but in \AndreasElia\PostmanGenerator\Processors\RouteProcessor::processRoute() method use \Illuminate\Support\Str::of() that has been added after Laravel 6 (I think in v7 or v8).
So when I run php artisan export:postman there is no routes in json and have many log errors like "Failed to process route: ...".

Hmm, good point, apologies for that.
@tomirons thoughts on if there's a backwards compatible way to support L6 here or if we should remove that support?

I suggest removing support for L6.

I use this library on a L10 project, it was amazing how easy is to have an entire postman collection. After that I try it on another project, that is biggest, but over L6 :(
The first error I see over L6 (PHP 7.4) is the use of $this->authentication?->toArray() that made an exception, then I see the use of Str::of.
I try another postman generators, but this this the most active and with better configurations.
So, if decide to remove L6 support, is totally understandable.

It depends on if there would be a heavy lift in order to support L6 at this point. If not, I would be more than willing to look at a PR that adds support.

See my comment on #106


[#104210460] fix --follow for conjur audit subcommands

Note that this change is incompatible with @dividedmind 's PR https://github.com/conjurinc/api-ruby/pull/49

Do we have API specs that run against a live appliance? I'm not sure how we'd do --follow without one.

@kgilpin: I have a spec for this now. The cli-ruby build is going to fail unless this is merged first, though.

OK, well if the spec is passing for you locally then you should merge this. As long as you're sure :-)


Improve stability of default hyperparameters

Oops accidentally pushed to main directly at b56e8b3. This issue explained the changes.
As discovered in https://github.com/lvwerra/trl/issues/454#issuecomment-1604227258, we were probably doing too many minibatch updates. So this commit checks what happens if we do it with no minibatch updates, similar to how openai did it. When performing a benchmark, I found increased stability — only 1 out of 10 random seeds crashed.
Furthermore, I used a lower batch size and a target KL of 6 (the default setting in OAI's repo).

This makes sense as a reason that weird kl's could happen too.

Thanks @natolambert!


chore: update dependencies

chore: update dependencies

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

GitHub release
npm package (@latest dist-tag)
crate.io packages (1 packages published)

Your semantic-release bot :package::rocket:


[DRAFT] Mobile 7015 migrate mo pub adapters to swift

Description of change
All MoPub adapters were migrated to Swift.
UI Tests for MoPub

After additional fixes for GAM tets are passed localy:

These changes are introduced in the  new  PR:
https://github.com/openx/prebid-mobile-ios/pull/13


"Remove/rename unused declaration" code fix hangs forever

@vasily-kirichenko Is this a reliable repro? thanks

No.


Fixes #59 : Add Python Program to print factorial of an entered number

Used python lambda function to recursively compute factorial.

@HarendraSingh22 I see too many PRs open for the same issue. What do you plan to do about this?


Support Service Bus transactions

Service Bus SDK provides a pattern to lock a message, and then send a message - and it completes the message when you successful send the message.  Would be good to have this pattern in our binding so you could do a service bus TRIGGER and service bus OUTPUT BINDING and associate the output binding with the trigger lock using the transaction feature in their SDK

@JoshLove-msft:  Would you please triage and advise?

Hi @jeffhollan, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.


TypeError: '<' not supported between instances of 'NoneType' and 'float' while using callbacks to stop training after a certain mae

Code for W4 Time Series Notebook on using a callback to stop training after a certain mae
model: LSTM
class myCallback(tf.keras.callbacks.Callback):
  def on_epoch_end(self, epoch, logs={}):
    '''
    Halts the training when a certain metric is met

    Args:
      epoch (integer) - index of epoch (required but unused in the function definition below)
      logs (dict) - metric results from the training epoch
    '''

    # Check the validation set MAE
    if(logs.get('val_mae') < 5.2):

      # Stop if threshold is met
      print("\nRequired val MAE is met so cancelling training!")
      self.model.stop_training = True

# Instantiate the class
callbacks = myCallback()

returns the error 'TypeError: '<' not supported between instances of 'NoneType' and 'float'  on line ' if(logs.get('val_mae') < 5.2):'
Any help on the above will be appreciated!

Hi! Did you manage to solve this? If not, consider joining our community where mentors can assist you with these kinds of issues.
Sorry for the late response


Redesign parallel build configuration

The configuration for parallel build jobs can take available memory into account. Scaling factors for memory and CPU cores can be set per package.

--jobs now sets the maximum number of cores to use (default: all cores)

Per package override is configured in settings/mypackage.yaml
build_options:
    cpu_scaling: 4
    memory_scaling: 4

It looks like some of the unit tests need updating, but otherwise this looks good to me.


Bulk Validation: Duplicate H2, absolute link, invalid meta values

Docs Build status updates of commit 8f6cfc0:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-services/preview/core-serializer-avro-apache-readme.md
:warning:Warning
View (azure-java-preview)
Details

docs-ref-services/preview/core-serializer-avro-apache-readme.md

Line 2, Column 1: [Warning: ms-prod-missing - See documentation] Missing attribute: 'ms.prod'. If you specify 'ms.technology', you must also specify 'ms.prod'.
Line 22, Column 5: [Suggestion: preserve-view-not-set - See documentation] Did you mean to link to a specific version? It's usually better not to specify a version, so the link always goes to the canonical version. If you really need to link to a specific version, add &preserve-view=true to the URL: /java/azure/jdk/?view=azure-java-stable. Otherwise, remove the view parameter.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit ff4bd26:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-services/preview/core-serializer-avro-apache-readme.md
:white_check_mark:Succeeded
View (azure-java-preview)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Global effort to fix build validation errors
@alzimmermsft
The warnings will be addressed in another PR!
The Content & Learning team is fixing build validation errors on docs.microsoft.com for the rest of H2. This will eliminate potential accessibility, security, and usability issues. This PR includes only build validation fixes and does not change other content. Please review within five business days and merge or comment in the PR with any changes you’d like to see. Thank you!

Docs Build status updates of commit d0adb45:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-services/preview/core-serializer-avro-apache-readme.md
:white_check_mark:Succeeded
View (azure-java-preview)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Support for Coingecko / Coinmarketcap / CryptoCompare?

How about adding them instead of fetching price from individual exchanges?

The only issue with using these is that they show an average price and that can vary rapidly based on the exchanges. The current way, we give the power of selection to the BlockExplorer Admins rather than the other place, which can show/disable exchanges on a whim. You also miss out on other information such as open orders/trades.

OK, I see

The one thing that can be done that I think would be good for the main explorer is for there to be a setting to swap out/disable the markets and replace it with this cmc/coingecko idea of yours.

https://github.com/uaktags/explorer/issues/44


feat: Add "Comet Fuzz" fuzz-testing utility

Which issue does this PR close?

N/A
Rationale for this change

Comet Fuzz is a standalone project for generating random data and queries and executing queries against Spark
with Comet disabled and enabled and checking for incompatibilities.
Although it is a simple tool it has already been useful in finding many bugs, including:

#479
#480
#481
#482
#483
#484
#485
#486

Comet Fuzz is inspired by the SparkFuzz paper from Databricks and CWI.
What changes are included in this PR?

New standalone comet-fuzz project.
How are these changes tested?

Manually tested.

Thanks for the review @kazuyukitanimura. I have addressed your comments and also added support for decimal type. I  removed the TODO comments and added a roadmap section to the README to cover some of the planned future work.

I'm not sure why tests are being cancelled on this PR.

I'm not sure why tests are being cancelled on this PR.

I saw the same on some PRs too. Re-triggering CIs can make them back.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 34.15%. Comparing base (9125e6a) to head (fad7a52).
Report is 10 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #472      +/-   ##
============================================
+ Coverage     34.05%   34.15%   +0.10%
+ Complexity      859      806      -53
============================================
  Files           116      105      -11
  Lines         38680    38463     -217
  Branches       8568     8554      -14
============================================
- Hits          13171    13137      -34
+ Misses        22746    22570     -176
+ Partials       2763     2756       -7

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

Thanks for the review @viirya


Fix cleanup metadata before verify + adding sleep

Coverage decreased (-0.5%) to 72.893% when pulling 662b11bb9cfab155ff70eb9f9761f17d1c7181ef on EdDev:fix-cleanup-metadata-before-verify into c1fec227cc0c8afd0a8d164bf74ef8943386613a on nmstate:master.


FORK extract-streetview

There are some security vulnerabilities with https://github.com/Jam3/extract-streetview
I should fork it, fix it, and maintain my own copy. Looks like the above repo is stagnant.

No longer needed as I wrote all my own modules to handle random street views.


Adding remarks regarding the Java 20 requirement

If I understand correctly, this requires Java 20 or better. I think it should be explicit given gradle's inability to provide elegant error messages.

Thank you. Merging.


Simplify skins configuration

Adds public/skins/config.json to define the available cone skins and their unboxing weights, in one place.
Also includes "How to add skins" section and some corrections to the README.
Feel free to review variables naming lol

Looks good


Implement idna_encode/decode for zone and basic record names

This adds IDNA support to fqdns (zone and record names.) It does not add support to record values. That will likely come in a later PR. It also (probably) doesn't support dynamic records. That too will be implemented and tested in a later PR.
/cc https://github.com/octodns/octodns/issues/199 for central IDNA functionality tracking

Deeper I dig the messier this gets. I'm realizing now that if a provider supports IDNA and a user has configured a manually translated zone (as is required prior to octoDNS IDNA support) then the changes like this will break their setup as they'll have xn--... zones and records in the config and when the provider pulls that data down during populate it'll be translating it to the utf-8 equivilent and the two zones being compared won't even match.
I'm abandoning this and all of the existing idna PRs for the moment as I feel like the path things are going down will not be viable. Good news is the ida_encode/decode shipped in octoDNS still makes sense and nothing else has actually be part of a merged PR/release so we should be in an ok state until things are figured out.


Add support for locale in timepicker

This will probably have to be custom created. I like the idea of using toLocaleString() instead of using a dictionary, but not sure if that can be done for all requirements.

I wonder if it would be better to not use the 'fake' text input but use the original time input to attach the widget too.

[ ]  detect browser locale format (AM/PM or military)
[ ] instantiate with 3rd input
[ ] do conversion for loading
[ ] do conversion for updating (from calculation)
[ ] do conversion for storing (original input)


allow spaces on SSID (AEGHB-308)

If the SSID has spaces, the tool send multiple arguments, being further ignored by the esp32X

We apologize for the delayed response. Your pull request has been merged, and we appreciate your contribution! Thank you for your patience.


Question on pose-target data

Thank you for this interesting work and releasing the inference demo. I am currently also working on a pose conditional generation model so I was curious about your solution. I noticed that your pose targets contain 20 channels which surprised me with further inspection I saw that the first 3 channels are basically a visualization of the  pose skeleton and the other 17 channels the usual gaussian key point maps.
I wonder what the rational of including the skeleton visualization is? Does it lead to any significant improvement feeding that into the model along side the keypoint maps?
Thank you

Thanks for your interest. I don't think there will be any difference. Also, we are not the first to use 20-channel pose skeletons; there are some previous works that have also used similar pose repr.

@ankanbhunia Thank you for your answer. Ok I did not know others have been doing this too. Well 3 extra channels are just eating up more VRAM so if they are not necessary I was wondering. But I guess I have to try myself and see if there is any impact


requeue db cluster while not available

After creating a new DBCluster resource, we were not setting
ConditionTypeResourceSynced on the resource nor were we asking to
requeue the resource after some time. This meant that the resource's
Status was not being updated on the Kubernetes side, even after the DB
instance's status transitioned to 'available' on the RDS side.
In this patch, we're adding two generic hook implementations for
sdk_read_many_post_set_output and sdk_create_post_set_output that will
create a ConditionTypeResourceSynced on the resource with a value of
ConditionFalse (because the resource isn't actually synced yet). This
causes the controller to queue the resource up for a new reconciliation
loop, during which the resource's Status will be updated to the latest
observed values.
Issue aws-controllers-k8s/community#923
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

/test rds-kind-e2e


Support for custom frame rate

videos with I high fps are huge in size for example 60 fps. The file size would be smaller with a lower frame rate.

I was going to ask how is the bitrate lowered ?
Because when i compress my videos and if the video contains a "zoom" gesture, the resolution is very low
Can we know about the thresholds of the "very_high", "high", "medium", "low", "very_low" please ?
Thanks for your work

@juanmartin8a the support for custom framerate is added. If you don't pass one, the framerate of the original video will be chosen instead or 30 if there is any issues. Please close the issue if it works fine with you.

@Tom3652 it is lowered by reducing the bitrate with a factor based on the quality, for instance, bitrate * 0.6 for very_high and * 0.1 for very_low
isMinBitRateEnabled was renamed to isMinBitrateCheckEnabled, the library checks if the bitrate is 2mbps or less, it will stop compression. Usually it could be this low if it was compressed before, just to avoid this from happening.
I don't believe multiple videos will work at the moment, I may add support later, for now, you should wait for one compression's results before starting another.
Thank you, please let me know if you have further questions or feature request.

Thanks for the reply and the explanations !


Display impl panics on Wasm targets

Thanks for this library @jakudlaty, it's very helpful!
I'm trying to stringify TSID struct instances on a wasm32-unknown-unknown target, but the call panics:
tsid-0.2.0/src/tsid/display.rs:10:29:
attempt to shift right with overflow

Indeed the function implementation currently is shifting by more bits than are available in a usize on a 32-bit system:
...
let number = self.number as usize;
chars.push(ALPHABET[(number >> 60) & 0b11111]);
...

I'm not familiar with the details of how TSID serialization works so unfortunately I'm not sure what an immediate simple fix for this would be, but I will look into it.
Thanks again!

It's not super neat, but something like this seems to fix it:
impl Display for TSID {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        let mut chars = String::with_capacity(13);

        chars.push(ALPHABET[((self.number >> 60) & 0b11111) as usize]);
        chars.push(ALPHABET[((self.number >> 55) & 0b11111) as usize]);
        // ...
   }
}

Hi
Thank for finding this, i will check Your solution tomorrow.
About serialization: TSID can be serilized in two ways:

in human readable form (usable in json)
as 64bit unsigned integer value - usable for databases

I will check your fix and update types accordingly to properly support wasm target

should be fixed in 0.3.1

Please confirm if its working for You

Hi @jakudlaty!
Thanks for the fix and sorry for the delay, this is working perfectly!
Thanks so much


Add ability to do efficient blocking based on list/array intersections

Type of PR

[ ] BUG
[x] FEAT
[ ] MAINT
[ ] DOC

Is your Pull Request linked to an existing Issue or Pull Request?
This pull request follows on from the discussion under issue #1448 (sorry I took so long to send this PR in!)
Give a brief description for the solution you have provided
This adds the ability to provide blocking rules that compare a pair of records according to whether their array-valued columns intersect. I do this by unnesting/exploding the array-valued column(s) before joining the input tables, and then extracting the set of distinct pairs of ids which have at least one pair of rows which agree on the provided blocking rule.
For example, the rule
{"blocking_rule":"l.address_history = r.address_history and l.first_name = r.first_name",
"arrays_to_explode":["address_history"]}

will result in a pair of records being compared if their address histories overlap and their first names agree. It is also possible to unnest/explode more than one column at once in a blocking rule.
Pairs of ids returned by these blocking rules are stored with the BlockingRule object and filtered out from subsequent blocking rules.
PR Checklist

[ ] Added documentation for changes - not yet
[ ] Added feature to example notebooks or tutorial (if appropriate)
[x] Added tests (if appropriate)
[x] Made changes based off the latest version of Splink
[x] Run the linter

Thank you very much!  I am off for the rest of this week but I will try and find time to look at this in depth next week.
Incidentally, we've been in contact with another big org in the UK Gov who has been struggling a bit with diffficult array problems (to explode or not to explode) and for whom  I think this should be helpful!

@nerskin this is amazing!
I've run a a few examples, and looked through the resultant SQL.  I'm happy with the implementation in terms of the SQL logic.
I want to take a look at whether I can refector the implementation of block_using_rules_sql and the execution flow to move the part that creates the ID tables (e.g.g ids_to_compare_blocking_rule_0_3057bc251) to a separate function.  Probably something that executes in advance on the main blocking, so the ID tables are ready and waiting.
Just to try and keep a lid on the complexity of the block_using_rules_sql function.
I presume I'm right in saying it was a conscious decision on your part to materialise these tables for performance reasons?  (That would make sense to me too)
if it's ok with you, I'll branch off your PR and see where I get to.  If I manage to do something, I'll check back in with you before merging the changed version.  If I hit a stumbling block, we can probably just go ahead and merge this as is

if it's ok with you, I'll branch off your PR and see where I get to. If I manage to do something, I'll check back in with you before merging the changed version. If I hit a stumbling block, we can probably just go ahead and merge this as is

Thanks @RobinL , that sounds good. I'm off work until the middle of next week, so I won't be able to look at it until I get back (although @aymonwuolanne might be able to help)
Yes, materializing the id tables was a conscious decision to try to improve performance.

Oops, sorry, clicked close by accident

Been struggling with this today, not because of your code, but because the wider blocking.py is pretty messy (too many overrides/flags trying to accommodate too many situations).  So sorry about the complexity here.
I do think i've found an issue with ambiguity over unique ids.  I don't think it's too hard to fix, but here's a demo script to illustrrate
demo script
import pandas as pd
import sqlglot
from sqlglot.optimizer import optimize
import splink.duckdb.duckdb_comparison_library as cl
from splink.blocking import (
    block_using_rules_sql,
)
from splink.duckdb.blocking_rule_library import block_on
from splink.duckdb.linker import DuckDBLinker

data_1 = [
    {"unique_id": 1, "first_name": "John", "surname": "Doe", "postcode": ["A", "B"]},
    {"unique_id": 3, "first_name": "John", "surname": "Doe", "postcode": ["B"]},
]

data_2 = [
    {"unique_id": 3, "first_name": "John", "surname": "Smith", "postcode": ["A"]},
]

data_3 = [
    {"unique_id": 3, "first_name": "John", "surname": "Smith", "postcode": ["A"]},
]

df_1 = pd.DataFrame(data_1)
df_2 = pd.DataFrame(data_2)
df_3 = pd.DataFrame(data_3)

settings = {
    "link_type": "link_and_dedupe",
    "blocking_rules_to_generate_predictions": [
        {
            "blocking_rule": "l.postcode = r.postcode and l.first_name = r.first_name",
            "arrays_to_explode": ["postcode"],
        },
        "l.surname = r.surname",
    ],
    "comparisons": [
        cl.exact_match("first_name"),
        cl.exact_match("surname"),
        cl.exact_match("postcode"),
    ],
    "retain_intermediate_calculation_columns": True,
}

linker = DuckDBLinker([df_1, df_2, df_3], settings)
sdf = linker.predict()
linker.query_sql(f"""select * from {sdf.physical_name}
                 where unique_id_l = 3 and unique_id_r = 3
                 order by source_dataset_l, source_dataset_r""")

The issue is that when you have multiple input dataframes, it doesn't suffice for the ids_to_compare to be a list of unique_id_l, unique_id_r pairs. Instead, the table needs both source_dataset and unique_id in it, or alternatively, they can be concatenated with this
The underlying issue being that we only assume that unique_id s are unique within the dataframe, not between

My overall view is that the interaction with the salting rules gets fiendishly complicated to the point where it's really hard to understand what's going on.  (I'm impressed you managed to make it work actually!)
What your feeling about this?  I wondered what you thought about preventing the user doing both salting AND exploding?  Would that be a problem for your use case?

Hi Robin,
Thanks for your comments. I think the unique id / source dataset problem should be a fairly easy fix.
I can't think of any reasons it shouldn't be used for EM estimation, but I guess it may be more efficient in that case to block on postcode[1] since it doesn't matter if we leave out some true links when estimating the parameters.
I think it's worth getting it working for both salting and exploding, our use case would probably be fine without salting but the solution as it is now seems to work ok with salting. Currently this works by creating an ids_to_compare_blocking_rule table for each salting partition, since the pipeline is executed inside of that loop, I can see a simplification where we UNION ALL these tables just after that loop, so then you'd only have one ids_to_compare_blocking_rule table for a given unnest blocking rule. I don't know that it's any more efficient, but it would reduce the number of tables that have to be created.
For your simplification suggestion, would the match_key column be a problem for running a SELECT DISTINCT over the UNION ALL in that scenario? e.g. unique_id_l = 1, unique_id_r = 2, match_key = 0 and unique_id_l = 1, unique_id_r = 2, match_key = 1 would be kept as separate rows.

Apologies - to clarify, other than the unique id issue, I haven't found any problems with the implementation.  I agree salting is working correctly as is.
My concern at the moment is maintainability of the codebase.
One of the things the team is working on is tech debt and trying to make things simpler, and at the moment, I worry that when we come to try and refactor this code, it will be hard to get it right, because of its complexity.
I'll continue to do a few experiments.  There's a slight refactor here, but I want to do a bit more work on it.
On the match key issue - yeah i agree it's a bit fiddly, but perhaps a
SELECT
    uid_l,
    uid_r,
    MIN(match_key) as match_key
FROM
    your_table_name
GROUP BY
    uid_l,
    uid_r;

could work.
For the moment I'll proceed on the basis that we'll try and leave the logic as is, but maybe move things about a bit and rename things to try and help future readers of the code understand it.

Absolutely, if things can be shuffled around to make it simpler and easier to maintain then that is definitely worth it.

Just to note we are making slow but steady progress with this.
We're doing quite a lot of refactoring at the moment, and are taking this as an opportunity to refactor blocking rules more generally i.e. get the baseline implementation right before adding this additional feature.
We've merged a couple of PRs already on this, so we're inching closer to being able to add this on top

Just out of curiosity, i don't suppose there would be an efficient way to block on an array intersection specifying a specific size of the intersection, or ratio such as intersection/max(len(array_l), len(array_r))?

Not really, sorry


Try to stringify params' objects in trace

Summary
There are listed parameters of method in trace which in case of value objects could be stringified (using __toString() if available) to see the actual value. E.g. in the case of screenshot below there could be something like Object ...\CampaignId — string representation: c9443d22-5ca3-4a16-a246-b97af1aaef91
Motivation
It makes orientation and debugging easier.
Additional Context

We have an option for that so you can implement this yourself, once we have the Stringable interface in PHP 8.0 we might want to implement this for __toString inside the SDK but for now we have the class_serializers option where you can implement this yourself. I think in the new docs this option got lost in conversion but a quick summary:
    'class_serializers' => [
        Some\Class\Or\Interface::class => function (Some\Class\Or\Interface $object): ?array {},
    ],

If you return null it will do nothing but if you return an array that data will be shown in Sentry instead of the Object Some\Class\Or\Interface string.
This works with instanceof so you can add parent classes to class_serializers and serialize all child classes using that code.
Let me know if that helps, I'll try and find out where the docs went missing and bring them back 👍

@stayallive OK, thanks. Where should I put it? Into options array for \Sentry\init() function?

Yeah, it looks like. Should I close this now or you want to keep it open for PHP 8.0 Stringable?

I'd say let's close it for now if that's okay with you and once PHP 8 is here we see if there is interest to add this as a default serializer.
And yes, $options in init is the correct place for this.

I can not think of case why should not I want a stringifiable object to get stringified to better understand where the problem happened. Maybe some security issues? 🤷♂
Thank you very much for your replies!

Stringing an object could lead to unintended performance issues; Drupal had one big issue like that when Symfony started casting one of its object into string in form handling.

I've noticed, just for the record, that there is also Sentry\Serializer\SerializableInterface which can be implemented to achieve the same goal. 👍


Update: Dependencies update 🆙

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Reset cleanup

Cleanup all references when reset handler

Coverage decreased (-3.08%) to 61.419% when pulling e69056cf3fdc09b7f1a52678083360e1e20c1de8 on moteus:reset_cleanup into 4939181c57c8787d2cd9c8086e97320288f2c01c on Lua-cURL:master.

Coverage decreased (-3.08%) to 61.419% when pulling e69056cf3fdc09b7f1a52678083360e1e20c1de8 on moteus:reset_cleanup into 4939181c57c8787d2cd9c8086e97320288f2c01c on Lua-cURL:master.


adding support for .funcignore file

Changes
added the support for funcignore file for excluding the data which don't need to be added to image build

Fixes #1463

Release Note

Docs

Some test would be nice.

Some test would be nice.

Thanks @matejvasek for the suggestion, it would be good addition, i can do that.

Some test would be nice.

Thanks @matejvasek for the suggestion, it would be good addition, i can do that.

It does not have to be an integration test that would build an image.

For s2i Just mock docker client: check that DockerClient::ImageBuild() is invoked with tar stream that does not contain undesired files.
For pack chack that Impl::Build() is called with correct pack.BuildOptions.

@matejvasek PTAL

@matejvasek I have made the changes, PTAL

@matejvasek PTAL

@matejvasek why we are having this problem on windows with TempDir
--- FAIL: Test_BuildImageWithFuncIgnore (1.56s)
testing.go:1206: TempDir RemoveAll cleanup: remove C:\Users\RUNNER~1\AppData\Local\Temp\Test_BuildImageWithFuncIgnore4081273292\001#testingComments.txt: The process cannot access the file because it is being used by another process.

@matejvasek why we are having this problem on windows with TempDir --- FAIL: Test_BuildImageWithFuncIgnore (1.56s) testing.go:1206: TempDir RemoveAll cleanup: remove C:\Users\RUNNER~1\AppData\Local\Temp\Test_BuildImageWithFuncIgnore4081273292\001#testingComments.txt: The process cannot access the file because it is being used by another process.

@nitishchauhan0022 you need to close the files you have created via os.Create().

/ok-to-test

/approve
/lgtm

/unhold


404 Error when reloading page

A 404 error message is displayed when you reload the browser page - it should refresh the page properly instead

I think this is something related to production server. When i use react dev server locally -- no issues with refresh.

We've been testing with MongoDB Realm hosting, but I've also just uploaded the build to a regular web server and am still getting errors on reload (try http://portal.clusterdb.com/ and then reload)


Unable to use curly braces and quotes

I'm using this plugin to generate a JSON file with my app version like below:
new WebpackShellPlugin({onBuildEnd:['cat package.json | grep version | sed -e \'s/[",]//\'g | sed -e \'s/.*: \(.*\)/{\"version\": \"\1\"}/\' > build/app-info.json']})

This shell command works perfectly when run in the terminal but when generated via WebPack, the JSON file is missing the curly braces and the double quotes. Is there any way to get around this?
Thank you!

I would just have it execute some script or patch file and pass arguments to it. The shell plugin is to just do minor shell commands, anything more probably should be handled in a task management script.

Makes sense. Thanks!


net-mgmt/telegraf: fixed #2369 if statements in wrong spot and wrong model form

The if statements were out of order in the telegraf.conf file and this feature was using the output the model instead of the input model

@mimugmail ready to go?

Do it :)

Merged, thanks!


Add syntax highlighting to inline code in stackalloc

Just noticed on docs.microsoft.com that these code blocks don't have syntax highlighting, which does not adhere to the style guide.

Related to #2192


[FLINK-23047] Ignore CassandraConnectorITCase until the flakiness of this test is fixed for release 1.14

R: @tillrohrmann

Manually merged.


Fix pytest-devpi-server test on py34 updating "ruamel.yaml" requirements

Since no python 3.4 wheels are distributed following ruamel.yaml 0.15.94,
this commit updates the requirements to ensure the package still be installed
using python 3.4
It addresses the following error:
  Searching for ruamel.yaml>=0.14.2
  Reading https://pypi.org/simple/ruamel.yaml/
  Downloading https://files.pythonhosted.org/packages/a2/f7/63f04dd8a572b13a41a62b29eb52b64a2136249cc42a933f05d890033eac/ruamel.yaml-0.15.96.tar.gz#sha256=343ace5ffbab036536a3da65e4cfd31b8292388a389f6305744984581a479b2a
  Best match: ruamel.yaml 0.15.96
  Processing ruamel.yaml-0.15.96.tar.gz
  Writing /tmp/easy_install-gpfme0if/ruamel.yaml-0.15.96/setup.cfg
  Running ruamel.yaml-0.15.96/setup.py -q bdist_egg --dist-dir /tmp/easy_install-gpfme0if/ruamel.yaml-0.15.96/egg-dist-tmp-ncvinjfp
  minimum python version(s): [(2, 7), (3, 5)]
  error: Setup script exited with 1

Adapted from scikit-build/scikit-ci@d8311a3f393

Heh, I was literaly just typing out the fix for this - happy to take your change though thanks!

@eeaston this should address the circleci failure. To support projects tested against Python 3.4, I suggest we try to fix the failure (despite the recent EOL of python 3.4)

Look like the fix is working out :tada: since I faced the same issue few days ago, I went ahead :smile:


Adding an approximate distance value to the beacon analysis [WIP]

Formula comes from here. I haven't tested this yet, but I will as soon as possible.

@buggy213 Awesome! Can you retarget this at the dev branch.

@buggy213 Have you been able to test this?

No, competition season has been incredibly busy but I will try to as soon as I can

Yeah... this doesn't actually work that well. The issue is that the perceived size of the beacon fluctuates wildly from frame to frame. For now, I'll scrap this idea.


[SPARK-5968] [SQL] Suppresses ParquetOutputCommitter WARN logs

Please refer to the [JIRA ticket] 1 for the motivation.

Test build #27892 has started for   PR 4744 at commit caac6a8.

This patch merges cleanly.

Test build #27892 has finished for   PR 4744 at commit caac6a8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27892/
Test PASSed.

Thanks for the quick turnaround!  Merged to master and 1.3


Bottom Pixel Overflow on Small Device

Running on an iPhone 5s and getting 'Bottom Overflowed By 11 Pixels." Not sure if I have something wrong or if anyone else has seen this?

Duh, I didn’t see the width and height params. Sorry about that, this is a great a plug-in!


After repeated attempts, I found that，When I put this version into extensions File folder,webui Failed to start。

Because of dataset-tag-editor In web ui the front end is stuck,unable to work properly，I found this version，after installation ,This is through the cloud server.JupyterLab start up.The following is the relevant result code output after startup：
启动带有参数的Web UI：-f --port 6006 --enable-insecure-extension-access --api --xformers --opt-sdp-attention --no-half-vae --ckpt-dir /root/autodl-tmp/models/ckpt --embeddings-dir /root/autodl-tmp/models/embeddings --lora-dir /root/autodl-tmp/models/lora --vae-dir /root/autodl-tmp/models/vae --controlnet-dir /root/autodl-tmp/models/controlnet --skip-torch-cuda-test --skip-version-check --skip-python-version-check
launch.py：错误：未识别的参数：-f --enable-insecure-extension-access --api --xformers --opt-sdp-attention --no-half-vae --ckpt-dir /root/autodl-tmp/models/ckpt --embeddings-dir /root/autodl-tmp/models/embeddings --lora-dir /root/autodl-tmp/models/lora --vae-dir /root/autodl-tmp/models/vae --controlnet-dir /root/autodl-tmp/models/controlnet --skip-torch-cuda-test --skip-version-check --skip-python-check

This question is so strange，Why does the extension affect startup?

This question is too strange. Why does the extension affect startup?

@openwaterer
This script is standalone, it means this is not the extension of Automatic1111's SD webUI.
Since the folder structure is similar to the extension version, putting this into extensions folder of webUI may lead to unexpected result.

hh Thanks  I want to delete this question


Crashes of Android Pie

whenever i run on android pie it crashes and gives me error
java.lang.IllegalArgumentException: Cannot set 'scaleX' to Float.NaN
Please anyone help me out with this

I made fork with fix for this issue:
implementation "com.github.futbolkolektyw:MaterialViewPager:1.4.0"
feel free to use it


Porting elementwise metrics to GPU.

TODO:

Make sure the parameter configuration is called in every cases.
See if it's possible to determine whether to use GPU based on some heuristics.

@RAMitchell I currently don't have any good idea for the second one, but adding another place that can cause troubles for CPU users is not idea either.

Codecov Report

Merging #3952 into master will increase coverage by 0.1%.
The diff coverage is 75.3%.

@@             Coverage Diff             @@
##             master    #3952     +/-   ##
===========================================
+ Coverage     56.24%   56.35%   +0.1%
  Complexity      205      205
===========================================
  Files           185      186      +1
  Lines         14705    14781     +76
  Branches        498      498
===========================================
+ Hits           8271     8330     +59
- Misses         6195     6212     +17
  Partials        239      239

Impacted Files
Coverage Δ
Complexity Δ

tests/cpp/helpers.h
100% <ø> (ø)
0 <0> (ø)
:arrow_down:

tests/cpp/helpers.cc
90.9% <ø> (ø)
0 <0> (ø)
:arrow_down:

include/xgboost/metric.h
37.5% <0%> (-62.5%)
0 <0> (ø)

tests/cpp/metric/test_elementwise_metric.cc
100% <100%> (ø)
0 <0> (ø)
:arrow_down:

tests/cpp/metric/test_rank_metric.cc
100% <100%> (ø)
0 <0> (ø)
:arrow_down:

src/metric/metric.cc
100% <100%> (ø)
0 <0> (ø)
:arrow_down:

src/metric/metric_param.h
100% <100%> (ø)
0 <0> (?)

src/metric/multiclass_metric.cc
88.88% <100%> (+0.2%)
0 <0> (ø)
:arrow_down:

src/common/math.h
100% <100%> (ø)
0 <0> (ø)
:arrow_down:

src/learner.cc
27.01% <14.28%> (-0.17%)
0 <0> (ø)

... and 5 more

Continue to review full report at Codecov.

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

The Jenkins webhook is returning Internal Server Error (500). Investigating.

@hcho3 Thanks!

Looks good, merge when you are ready.

Actually I just remembered one thing: thrust reduce allocates memory, in a multi-GPU setting this will synchronise all GPUs. You will need to pass a temporary allocator to thrust to avoid this.

@RAMitchell Please help taking a look in the latest commit.  I actually don't understand why it fixes the bug.


Can't log variable that changes type

While implementing #11, I noticed that you use the typeof a global variable to create the array holding values of the variable. This will cause issues if the type of that variable ever changes.
In general, I'm not sure it's a great idea to support the use-case of tracking values in global scope using eval; it definitely won't perform well. It's probably better to explicitly pass around a container that has to be manually updated for all variables the user wants to track.

Logging functionality removed as mentioned in #11


Not working on Popup Modal

Hi
I have issue when i am use popup, you can see this screenshot

Thanks

Had this same issue. The problem may be that you have in your document ready function. Call it again when the dialog is shown. The dialog is dynamic so the code isn't applied to. By applying it when the dialog is shown you should solve the issue.
onshown: function(dialogRef){
fakewaffle.responsiveTabs(['xs', 'sm']);
}

Closing as the previous comment sounds like the proper solution.


[Feature]: Getting started has hardcoded paths for tutorial. Change commands to be any folder

Contact Details
No response
Tell us the project / group you are associated with
Community (Default)
What would you like to see implemented?
All the getting started documents has hardcoded paths
mkdir -p $HOME/test-datamodel/orgchart && cd $HOME/test-datamodel/orgchart
Can we change the paths to be user defined
export WORKDIR=$HOME/work/graph-test
mkdir -p $WORKDIR/test-datamodel/orgchart && cd $WORKDIR/test-datamodel/orgchart
Are you able to share screenshots or illustrations that explains the feature?
No response
How critical is this feature to you?
Minor - nice to have feature that adds value to the solution
Any additional / relevant info
No response

New JIRA Created with ID: https://jira.eng.vmware.com/browse/NPT-696

I can take this task if you have not already started work on it.

Looks like there is a PR open for this but not linked to the issue. Will wait for the PR to merge if additional changes are needed for this.


Newly dsicovered tests does not run

Description
Specifically find issue in F#, but maybe with other languages or adapters that would be the case too. I have test project, and when I type new test and run assembly it in TestExplorer newly created test discovered but does not run and I have to run tests again.
Steps to reproduce

Create test project in F#
Add new test
Run Assembly in Test Explorere

Expected behavior
All previous tests + new test are run

Actual behavior
All previously existing tests run, but new test just marked as discovered and did not run.

Diagnostic logs

Environment

Version 17.7.0 Preview 6.0

@drognanar arthur please have a look if this is a new issue.

this is to be expected given the current implementation
when you right click a project or a namespace or a class in test explorer, you're running the selected tests underneath. any newly discovered tests will not be run currently, as we're computing the selection at the time you click the run button.
on the other hand, right-clicking a test project in solution explorer, or right clicking a method in the editor is expected to run new tests

I can understand why it happens when I run namespace or test class. But from what I know if you run assembly no need to specify individual tests and test explorer have

test container (assembly basically)
Namespace
Class
Method/test

Would be great if at least when I run tests in test container/assembly it will run all tests in that assembly.
Also if right click in F# was available that wout be great. Right now current design works only for Roslyn which discover tests on the fly somehow.

As described above this is by-design, if you don't agree please file an issue on VS, where Test Explorer resides, thank you. https://learn.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2022


pointer-constraints: keep constraint alive until actual destruction

Describe your PR, what does it fix/add?
Current constraint deactivation kills the constraint even if it tries to reactivate due to lifetime check always being true. Removing this fixes refocusing of windows not actually restarting constraint, requiring a recreation of the constraints by the program.

Ex: Minecraft will not recreate constraint until menu is opened in game, so swapping to another window and back rapidly will kill the constraint without recreation, leaving pointer to roam free.

Possible fix for #5900 but can not recreate issue myself to test.
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
No problems with usage as proper destruction gets called anyways later when actually necessary. Perhaps a better option is to change the default lifetime of the pointer constraint, but I'm not too knowledgeable the implications of that.
Is it ready for merging, or does it need work?
Ready for merging

tag me when ready

@vaxerski should already be ready? this still fixes the Minecraft example already. Sorry if I didn't make that clear

why not just set the properties in the appropriate constructors like I've obviously forgotten to? xD

should be fixed.

because I missed it too lol. this does fix it properly, thanks!


docs: Add a warning about restarting individual services.

restart-server is almost always the way to go, so we can be clearer about it.
https://chat.zulip.org/#narrow/stream/31-production-help/topic/LDAP.20.2F.20Active.20Directory.20infinite.20page.20refresh.20after.20login/near/1617120 for some context

Merged and marked as a backport candidate, thanks @mateuszmandera!

Backported in https://github.com/zulip/zulip/pull/26750.


allow additional overrides

Hi, I had a use case around overriding some additional config when duplicating pods.
The background is that we currently use kubectl debug --copy-from for creating rails consoles for engineers to debug with instead of asking them to exec into running pods which may cause disruption if they use more resources than allocated. Our setup specifically has a deployment of one replica that is running a idle rails console, which engineers then copy from when wanting to get into a console and debug. This has a few problems.

Since deployments don't support restartPolicy Never when the engineer exits their debug pod it restarts and continues to run after they've finished.
Since the pod they clone from is idle, we want to keep its resource usage set as low as possible, but currently it has to be set to a reasonable amount of memory for them to work with

Would being able to override good additions to duplik8s? Thanks.

Hi @sgarlick987, thanks for the feedback! Good idea, being able to override the spec of the duplicate Pod does sound useful. I’ll take a look into it!


Failed to load dynlib/dll  libiconv.dll

I am using pyinstaller script to pack my program. The pyinstaller script run without errors. However, when I ran my exe file which is produced by pyinstaller script, I got the error:
main.PyInstallerImportError: Failed to load dynlib/dll 'C:\Users\evyin\AppData\Local\Temp\_MEI18~1\pyzbar\libiconv.dll'. Most probably this dynlib/dll was not found when the application was frozen.
My environment: Python 3.5,  win10 64bit

You can put the libiconv.dll & libzbar-64.dll in the exe work directory.
The exe file will use the dll in the same directory by first

Freezers such as pyinstaller and cx_Freeze are not able to find libraries loaded using ctypes. pyzbar exposes its binary dependencies in EXTERNAL_DEPENDENCIES - a list of instances of ctypes.CDLL. You can hack these into a pyinstaller freeze - e.g., via a pyinstaller spec file.
Hope this helps!

The problem is I'm doing all of these, and combining all of these plus tons of answers from chatgpt and still no solution!


Document noheader option to prevent repetition of table header

Fixes https://github.com/metanorma/metanorma.org/issues/665

Merged into doc20230606


Ctrl+click on scanner result to toggle enabled only for item?

The change event doesn't provide the state of keys pressed at the point of the event. Could capture the keys with separate events, but deferring it for now. It was suppose to be a low handling fruit, simply checking the event state.


1.9: shm/mqueue errors

When a container fails to start for random reasons, you end up see the following errors:
ERRO[0386] failed to umount /var/lib/docker/containers/403e99f976cb191561d7f0242eec7f3bc8c8d4e529d29a0fd04058e2b5d4cc09/shm: invalid argument
ERRO[0386] failed to umount /var/lib/docker/containers/403e99f976cb191561d7f0242eec7f3bc8c8d4e529d29a0fd04058e2b5d4cc09/mqueue: invalid argument
ERRO[0386] 403e99f976cb191561d7f0242eec7f3bc8c8d4e529d29a0fd04058e2b5d4cc09: Failed to umount ipc filesystems: failed to cleanup ipc mounts:

These errors are either misleading and nothing bad is happening or there really is an issue and now I have weird mounts hanging around?

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

They are very misleading. They should be warnings, that happens when the mount doesn't exist and we try to unmount, sorry :pensive:

fixing in #17554

These errors should be gone now.

#17539


Markdown fiddling

Tables
Are
Cool

col 3 is
right-aligned
$1600

zebra stripes
are neat
$1

zebra stripes
are neat
$1

zebra stripes
are neat
$1

zebra stripes
are neat
$1

Fiddling complete.

Feature
Description
Example

Renders markdown
Uses the showdown library to render contents of table cells for you
Just like this

Escapes quotes
CSV is easier to edit without so only uses them when necessary
It does an "okay" job

Preview table matches GitHub style
As closely as possible
Look!

Preserves alignment
Between all views
Switch to CSV and back

Hasn't caught fire yet
So far
Hurrah

:cat:


Invalid symlinks in cache directory on symlinked home

Steps to reproduce:
mkdir -p /tmp/a/b/c
ln -s /tmp/a/b/c /tmp/lnk
HOME=/tmp/lnk  my_pex_app

It gives following error:
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/tmp/lnk/.cache/pex/unzipped_pexes/0/3d53a34d47e626490f86d2f53f2a547241faa8fd/__main__.py", line 227, in <module>
    result, should_exit, is_globals = boot(
                                      ^^^^^
  File "/tmp/lnk/.cache/pex/unzipped_pexes/0/3d53a34d47e626490f86d2f53f2a547241faa8fd/__main__.py", line 216, in boot
    from pex.globals import Globals
ModuleNotFoundError: No module named 'pex'

And the probable reason is broken symlink:
$ file /tmp/lnk/.cache/pex/unzipped_pexes/0/3d53a34d47e626490f86d2f53f2a547241faa8fd/__pex__
/tmp/lnk/.cache/pex/unzipped_pexes/0/3d53a34d47e626490f86d2f53f2a547241faa8fd/__pex__: broken symbolic link to ../../../../../../a/b/c/.cache/pex/user_code/0/e71a56f11399e5f48fb037e733eb39e4123b8575/__pex__

Thanks for the report @b-x. I should have a fix for this included in today's 2.20.4 bug fix release.

There was one case not covered by #2574 that @benjyw fixed in #2626.


Query frontend crashing when ttl specified in cache config

Thanos, Prometheus and Golang version used:
Thanos - quay.io/thanos/thanos:v0.33.0 (deployed on kubernetes)
Prometheus / Golang = N/A
Object Storage Provider:
GCS
What happened:
Specifying ttl in the redis cache config causes query fronted to fail to start with an exception
What you expected to happen:
Normal startup
How to reproduce it (as minimally and precisely as possible):
Start query frontend with the following redis config:
type: REDIS
config:
  addr: my-redis.default.svc.cluster.local:6379
  ttl: 48h

Full logs to relevant components:
ts=2023-12-19T09:37:03.011912624Z caller=factory.go:43 level=info msg="loading tracing configuration"
ts=2023-12-19T09:37:03.012570367Z caller=main.go:135 level=error err="yaml: unmarshal errors:\n  line 3: field ttl not found in type queryfrontend.RedisResponseCacheConfig\ninitializing the query range cache config\nmain.runQueryFrontend\n\t/app/cmd/thanos/query_frontend.go:234\nmain.registerQueryFrontend.func1\n\t/app/cmd/thanos/query_frontend.go:160\nmain.main\n\t/app/cmd/thanos/main.go:133\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1650\npreparing query-frontend command failed\nmain.main\n\t/app/cmd/thanos/main.go:135\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1650"

Oh damn, did it work on 0.32.5? I think we unified cache configs but frontend parses stricter then bucket caches.

I haven't tried in with 0.32.5, AFAIK this was added in https://github.com/thanos-io/thanos/pull/6773 which was part of 0.33.0

Thanks @ahurtaud for clearing that up, are you aware of any plans to unify the configuration?

Thanks @ahurtaud for clearing that up, are you aware of any plans to unify the configuration?

no, not aware. it should be done I think to avoid confusion

I agree! Do you mind opening a pull request for it?

I dont feel I have the time currently to do it sorry.
Also, that would mean a breaking change now that 0.33 is released? I am not sure we want to do it right now. Maybe a refactor of the cache configs so they use the same code (query-frontend and store).

I dont feel I have the time currently to do it sorry. Also, that would mean a breaking change now that 0.33 is released? I am not sure we want to do it right now. Maybe a refactor of the cache configs so they use the same code (query-frontend and store).

I would accept both and then error if both were provided i think. Ill see if i can muster some time on the weekend!

We should definitely unify configurations at some point. The current QFE cache config is from Cortex code so not the same cache client code.


Classpath is incomplete warning keeps coming up

getting this warning on windows 10 on atom beta 1.21.0, and ide-java 0.6.0:
Classpath is incomplete. Only syntax errors will be reported
Eclipse JDT
When I googled how I might fix the error, I found this, which could be a similar issue: https://github.com/redhat-developer/vscode-java/issues/107
I think the linked issue could be related, but is there a current way to fix it, and if so, how?

The underlying language server expects to be able to identify the project itself so it understands scope etc.
As there isn't a standard configuration for a Java 'project' it uses pom.xml - there may be some other alternatives but without digging in to the language server itself I can't be sure.

Ah, that makes sense. thanks for clearing that up for me :)

I've checked in code that at least makes the help button on that dialog take you to the page that explains it. Will be in the next release.

I encountered the same situation.
On
OS: Win10 (x64)
Atom: Atom 1.21.0-beta0
Package: ide-java 0.6.0
Java: Java 144 (x64)

I`m looking forward to the future of Atom.

I have the same problem , Waiting some fix it.

A more complete explanation is available at https://github.com/redhat-developer/vscode-java/wiki/"Classpath-is-incomplete"-warning
Each client of the Java Language Server need to deal with that warning.

From 0.6.1 we now display the error with a link to the documentation about why this error occurs and what you need to do to work around it.

@damieng Using 0.6.4 I'm getting this pretty consistently. After working for a few days I suddenly started getting this error with my existing .classpath & .project files so I deleted them, now every time I open a Java file I get this warning. The project root does have a pom.xml file so it should be rebuilding but doesn't seem to be even attempting to rebuild the classpath config files.
Is there a way to force generation of new ones from the pom?

Sorry, we don't do anything specific with the classpath and POM - it all comes from the underlying JDT language server.  Any information on dealing with that should be available from the help button that comes up.

Ah ok, wasn't sure if the building was initiated by this package. I'll take it up there, thanks!

fwiw, I found I could regenerate the .project & .classpath files from IntelliJ but even with those files I get "Classpath incomplete" errors, even after reinstalling the package (and language server).

I still get this error every time a file opens even after
(1) clicking "Don't show again"
(2) restarting the window
(3) setting "Incomplete Classpath Severity" to ignore in settings
Has anyone else figured out how to fix this?


createDirectory IllegalArgumentException

val root = currentFs.rootDirectory
root.createDirectory("KKkkk") //error
Hello, I can read directories and file lists when testing FAT32 devices; At the same time, files can be created, but directories cannot be created. Below is the error message
java.lang.IllegalArgumentException

Need the whole stacktrace


perplexing log message - gene vs. genotype

What do these mean?
warning in bf037075feb20f28: some data from annotation isn't used: genotype
warning in bf037075feb20f28: phenotype annotation for "normal RNA level during cellular response to replete zinc (FYPO:0006830)" must have genotype information has gene instead

They seem to go together but I don't understand how Canto could stick a phenotype on a gene ....

They seem to go together but I don't understand how Canto could stick a phenotype on a gene ....

Yep, that's very bad.  :-)
The session with the problem is rather old (2014-06-09) so I'm hoping that this was caused by an old bug that's not there anymore.  I checked in the database for any similar problems.  Unfortunately there are quite a few but they are all old sessions (mostly 2012) that were just created for testing.  None are approved.
The dodgy annotation in bf037075feb20f28 is
 SPAC25B8.19c/loz1     FYPO:0006830   Reporter gene assay  + Zn ions  assayed_using zrt1

with comment: "fig1"
It doesn't get displayed when you look at the session at curation.pombase.org.
There is a non-dodgy annotation in the session that looks very similar:
 loz1+[Overexpression]   FYPO:0006830   Reporter gene assay  + Zn ions  assayed_using zrt1

I've fixed the session by removing the broken annotation.

yay, thanks


Can I use the generated GraphQL queries in my Lambda functions?

I want to keep everything DRY as I can so would like my Lambda functions to be able to reuse my GraphQL queries. Trouble is I'm not sure how to do that!
I think that my functions when I add them are just uploaded separately in isolation of the rest of my code when I do a amplify push, by that I mean if I change my schema and regenerate everything I don't expect that to get pushed up to my functions but I could be wrong.
I'm currently using a Lambda Layer for shared code so I thought I would be the right place to put my queries but how to get them in there? Copy them to the \amplify\backend\function\myAmazingLayer\opt\ folder of my Layer? Could hook up a build step for that I guess?
It could be I've got work to do and I'm just missing the right imports or even to know which imports to use and their path. Or none of this is automagically available and I have to manually include it in my Layer somehow?
Again gaps in knowledge are telling here as I can't seem to find any information on how to do this. There is stuff out there on how to talk to DynamoDB direct (https://dev.to/dabit3/lambda-function-graphql-resolvers-11cd) in a Lambda but I'd rather go through my GraphQL API I think as I've been bitten before when I've pushed strings of data in to Dynamo directly for it to then blow up one of my AWS GraphQL types when I try to pull it back out via the GraphQL API. As a result I'd like everything to go through the "front door" of my GraphQL API. This doc (https://docs.amplify.aws/lib/graphqlapi/query-data/q/platform/js) covers how to talk to GraphQL in my front-end client code but I'd like to use this in my Lambda too...ideas?
Please can someone enlighten me.

Just wanted to make sure you are reference the right docs
https://docs.amplify.aws/guides/functions/graphql-from-lambda/q/platform/js#signing-a-request-from-lambda
You can try to access the GraphQL API without using the Lambda layer

I'd not seen that documentation before, you guys have so much of it in so many places!
That seems to be doing roughly what I'm doing now. Only difference is I'm using Axios as my http client which is similar to https://docs.amplify.aws/guides/functions/graphql-from-lambda/q/platform/js#query listed above the section you linked to. Here is my code:
`const axios = require("axios");
const { print } = graphql;
const API_KEY = "";
const API_ENDPOINT = "";
/**

Helper to set the apikey and endpoint once, call before you use getGraphQLData
@param {*} apiKey
@param {*} apiEndpoint
*/
function initApi( apiKey, apiEndpoint ) {
API_KEY= apiKey;
API_ENDPOINT= apiEndpoint;
console.log( "API Details set", {apiKey, apiEndpoint});
}

/**

Gets a JSON resonse from our GraphQL end point
@param {*} query
@param {*} inputVariables
@param {*} apiEndpoint (optional if you've previously called initApi())
@param {*} apiKey (optional if you've previously called initApi())
*/
async function getGraphQLData(query, inputVariables, apiEndpoint=API_ENDPOINT, apiKey=API_KEY) {
if ( apiKey === "" || apiEndpoint === "") {
console.warn( "getGraphQLData: API KEY hasn't been set, did you forget to run init()?");
}

const queryData = {
query: print(query),
};
if (inputVariables) {
queryData.variables = { input: inputVariables };
}
const response = await axios({
url: apiKey,
method: "post",
headers: {
"x-api-key": apiEndpoint,
},
data: queryData,
});
if (response.status != "200") {
console.error("Something went wrong with our GraphQL", response);
}
if (response.data && response.data.errors) {
console.error(
"Something went really wrong with our GraphQL",
JSON.stringify(response.data.errors, null, 2),
"inputVariable",
inputVariables
);
}
return response.data.data;
}
export default { getGraphQLData, initApi };`
Then I've my queries in another file like so:
`const gql = require("graphql-tag");
const createAddress = gqlmutation createAddress($input: CreateAddressInput!) {   createAddress(input: $input) {     id   } };
const createCustomer = gqlmutation createCustomer($input: CreateCustomerInput!) {   createCustomer(input: $input) {     id   } };
export default { createAddress, createCustomer }`
I've added the above to the Lambda Layer that my functions use as I'm requiring stuff that I don't think is available by default within a Lambda environment. Is the example you linked too using a Layer or are all those requires available out of the box for a Lambda I wonder? That might clean up my code a bit if that is the case.
Back to my original query though, I wondered if I could/should reuse the auto-generated mutations from Amplify within my Lambda and if so how to get them in there? So the issues isn't how to use GraphQL within a Lambda but more how to use my auto-generated queries/mutations from Amplify within a Lambda?

@PeteDuncanson Yeah, right now we don't autogenerate/codegen the mutations/queries to a specific lambda function and you'd have to manually copy the auto-generated mutations/queries to the Lambda functon directory. I'll mark this as an enhancement for our team to look at.

#5598 specifies this use case and potential feature request

#5598 specifies this use case and potential feature request

I had this same issue, and got round it by having a functionUpdate.sh shell script like this:
echo "Compiling GraphQL..."
amplify api gql-compile

echo "Generating GraphQL statements..."
amplify codegen

echo "Copying lib/package.json to src/package.json in each function..."
find amplify/backend/function -type d -path "*/lib" -maxdepth 2 -exec cp src/lib/package.json {}/../src/ \;

echo "Copying lib/*.js to lib/lib/*.js in each function..."
find amplify/backend/function -type d -path "*/lib" -maxdepth 2 -exec rsync -r --delete src/lib/*.js {}/lib \;

echo "Copying graphql folder to lib in each function..."
find amplify/backend/function -type d -path "*/lib" -maxdepth 2 -exec rsync -r --delete src/graphql {} \;

echo "Done!"

and added it into the scripts section of package.json:
"functionUpdate": "./functionUpdate.sh",

This compiles/generates the GraphQL and copies the src/graphql folder over into the lib folder of each function (I'm using the lib/src folder structure as documented at https://docs.amplify.aws/cli/function/build-options). When babel transpiles the function it'll also transpile the GraphQL files ready for importing into the lambda function. (That script is also copying over some shared libraries and package requirements into each function, which for my specific use-case was an easier solution than using lambda layers.)
The only downside of this is that the queries will be returning all fields, where I may only need say id to be returned - but until that becomes a performance issue (unlikely) this at least saves having to duplicate queries/mutations in several places.

I had this same issue, and got round it by having a functionUpdate.sh shell script like this:
echo "Compiling GraphQL..."
amplify api gql-compile

echo "Generating GraphQL statements..."
amplify codegen

echo "Copying lib/package.json to src/package.json in each function..."
find amplify/backend/function -type d -path "*/lib" -maxdepth 2 -exec cp src/lib/package.json {}/../src/ \;

echo "Copying lib/*.js to lib/lib/*.js in each function..."
find amplify/backend/function -type d -path "*/lib" -maxdepth 2 -exec rsync -r --delete src/lib/*.js {}/lib \;

echo "Copying graphql folder to lib in each function..."
find amplify/backend/function -type d -path "*/lib" -maxdepth 2 -exec rsync -r --delete src/graphql {} \;

echo "Done!"

and added it into the scripts section of package.json:
"functionUpdate": "./functionUpdate.sh",

This compiles/generates the GraphQL and copies the src/graphql folder over into the lib folder of each function (I'm using the lib/src folder structure as documented at https://docs.amplify.aws/cli/function/build-options). When babel transpiles the function it'll also transpile the GraphQL files ready for importing into the lambda function. (That script is also copying over some shared libraries and package requirements into each function, which for my specific use-case was an easier solution than using lambda layers.)
The only downside of this is that the queries will be returning all fields, where I may only need say id to be returned - but until that becomes a performance issue (unlikely) this at least saves having to duplicate queries/mutations in several places.

I attempted the same using babel, but was unsuccessful. We're using javascript, not ts, so the build compilation is not necessary.
This script accomplishes the same:
sed '1s/^/"use strict";const gql = require("graphql-tag");Object.defineProperty(exports, "__esModule", {value: true});/' src/graphql/mutations.js > amplify/backend/function/gqlLayer/opt/mutations.js
sed -i 's/\/\* GraphQL \*\/ /gql/g' amplify/backend/function/gqlLayer/opt/mutations.js
sed -i 's/export const /exports./g' amplify/backend/function/gqlLayer/opt/mutations.js

Thanks for the inspiration.

I attempted the same using babel, but was unsuccessful. We're using javascript, not ts, so the build compilation is not necessary.
This script accomplishes the same:
sed '1s/^/"use strict";const gql = require("graphql-tag");Object.defineProperty(exports, "__esModule", {value: true});/' src/graphql/mutations.js > amplify/backend/function/gqlLayer/opt/mutations.js
sed -i 's/\/\* GraphQL \*\/ /gql/g' amplify/backend/function/gqlLayer/opt/mutations.js
sed -i 's/export const /exports./g' amplify/backend/function/gqlLayer/opt/mutations.js

Thanks for the inspiration.

This feature should be supported once we implement the plugins based architecture, where you can specify multiple docs generation tasks where each of them writes to a different directory. Link to RFC: https://github.com/aws-amplify/amplify-cli/issues/6898

Transferring to codegen for better assistance


Feat/wrapper

Title: Revamp: wrapper around OpenAI SDK
Description:

Existing routes: chat, completion, embedding. The approach is changed. Now they call openAI SDK instead of post request to our Gateway
post, feedback and prompt routes are untouched
Introduced new routes: images, files, assistant + sub routes, threads + sub routes
New test cases added as well

Motivation:
This will make it easier for us to integrate newly introduced routes from OpenAI
Related Issues:
#89

Can you please check and remove comments from the PR

Hey @csgulati09 - I can see that test directory for threads, assistants and images contains config with virtual keys from providers like cohere, anthropic and anyscale. Should we remove them as these providers do not support the methods

Closes #89


Has someone succeeded to make it work with Mysql

Hi,
I'm trying to figure how to make this properly out with Mysql
Documentation is unclear and unusable as it is.
So anyone having had a chance to make it work, please share your pom and application.properties file because right now, it is just impossible to find any running petclinic working with mysql.
Thank you in advance,
Best Regards,
Gilles

You should try to read again: readme.md and comments in petclinic_db_setup_mysql.txt, application.properties, application-mysql.properties files.
P.S.
If this still not clear, you can look at different implementations, for example
https://github.com/spring-petclinic/spring-petclinic-rest

You should try to read again: readme.md and comments in petclinic_db_setup_mysql.txt, application.properties, application-mysql.properties files.
P.S.
If this still not clear, you can look at different implementations, for example
https://github.com/spring-petclinic/spring-petclinic-rest

I am running first time Petclinic with Mysql and could not get working..
Here is my steps....
[root@ip-172-31-22-52 spring-petclinic]# more src/main/resources/application-mysql.properties
database init, supports mysql too
database=petclinic
spring.datasource.url=jdbc:mysql://localhost:3306/petclinic?useUnicode=true
spring.datasource.username=root
spring.datasource.password=petclinic
Uncomment this the first time the app runs
spring.datasource.initialization-mode=always
[root@ip-172-31-22-52 spring-petclinic]# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
d66cb65691e6        mysql:5.7.8         "/entrypoint.sh mysq…"   41 minutes ago      Up 41 minutes       <IP_ADDRESS>:3306->3306/tcp   musing_hodgkin
[root@ip-172-31-22-52 spring-petclinic]# mvn install
[root@ip-172-31-22-52 spring-petclinic]# java -Dspring.profiles.active=mysql -Dspring.datasource.initialize=true -jar target/*.jar
ERROR on http://ec2-13-233-92-233.ap-south-1.compute.amazonaws.com:8080
could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet
[root@ip-172-31-22-52 spring-petclinic]# docker logs d66cb65691e6
2019-02-28T20:22:26.431828Z 0 [Note] Event Scheduler: Loaded 0 events
2019-02-28T20:22:26.431980Z 0 [Note] mysqld: ready for connections.
Version: '5.7.8-rc'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
2019-02-28T20:31:40.931465Z 13 [Note] Aborted connection 13 to db: 'petclinic' user: 'root' host: '<IP_ADDRESS>' (Got an error reading communication packets)
2019-02-28T20:31:40.931533Z 16 [Note] Aborted connection 16 to db: 'petclinic' user: 'root' host: '<IP_ADDRESS>' (Got an error reading communication packets)
2019-02-28T20:31:40.931555Z 15 [Note] Aborted connection 15 to db: 'petclinic' user: 'root' host: '<IP_ADDRESS>' (Got an error reading communication packets)
2019-02-28T20:31:40.931574Z 21 [Note] Aborted connection 21 to db: 'petclinic' user: 'root' host: '<IP_ADDRESS>' (Got an error reading communication packets)
2019-02-28T20:31:40.931596Z 20 [Note] Aborted connection 20 to db: 'petclinic' user: 'root' host: '<IP_ADDRESS>' (Got an error reading communication packets)
2019-02-28T20:31:40.931616Z 19 [Note] Aborted connection 19 to db: 'petclinic' user: 'root' host: '<IP_ADDRESS>' (Got an error reading communication packets)
2019-02-28T20:31:40.931634Z 18 [Note] Aborted connection 18 to db: 'petclinic' user: 'root' host: '<IP_ADDRESS>' (Got an error reading communication packets)
2019-02-28T20:31:40.931651Z 17 [Note] Aborted connection 17 to db: 'petclinic' user: 'root' host: '<IP_ADDRESS>' (Got an error reading communication packets)
2019-02-28T20:31:40.931709Z 14 [Note] Aborted connection 14 to db: 'petclinic' user: 'root' host: '<IP_ADDRESS>' (Got an error reading communication packets)
2019-02-28T20:31:40.931731Z 12 [Note] Aborted connection 12 to db: 'petclinic' user: 'root' host: '<IP_ADDRESS>' (Got an error reading communication packets)

@scmgalaxy have you read the comment just above the one you've added? Please ask questions on StackOverflow.


Dynamic quorum for AlwaysOn

Does the survival probability for a 2-node AlwaysOn SQL cluster in Azure, with dynamic quorum and no witness,  in case of 1 node failure increase from 50% since there is no shared storage?

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

ID: 88e3efcf-9e4d-e38d-421d-1c47f4f5f375
Version Independent ID: 2b76919b-96d5-1230-db10-6f8a75a78588
Content: Understanding cluster and pool quorum
Content Source: WindowsServerDocs/storage/storage-spaces/understand-quorum.md
GitHub Login: @adagashe
Microsoft Alias: adagashe

It is actually 0% - you have to have a quorum device for a 2 node cluster (dynamic quorum doesn't help here).
This is because if one node can't talk to another, there is no way for the node to understand whether this is because they are disconnected or the other one failed. If they are disconnected, there is no way to know which node should continue and which should stop - this is why you need a witness.

ok. Thanks.

#please-close


Build fails on Ubuntu

Hey!
I'm using :
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang ..
to build the code, and get the following error:
-- Checking for module 'fontconfig'
  --   No package 'fontconfig' found
Here's the entire output:
-- The C compiler identification is Clang 3.8.0
-- The CXX compiler identification is Clang 3.8.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using supported compiler Clang
-- No preferred c++lib specified... linking against system default
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- --------------------------
--  Build type: Release
--  Compiler C: /usr/bin/clang
--  Compiler C++: /usr/bin/clang++
--  Compiler flags:  -Wall -Wextra -Werror -O3 -pedantic -pedantic-errors -fno-stack-protector -ffunction-sections -fdata-sections
--    release: -O3 -DNDEBUG
--  Linker flags:  -Wl,--gc-sections
--  C++ library: system default
-- --------------------------
--  Build testsuite      OFF
--  Debug logging        OFF
--  Verbose tracing      OFF
--  Enable ccache        OFF
-- --------------------------
--  Enable alsa          ON
--  Enable i3            ON
--  Enable mpd           ON
--  Enable network       ON
-- --------------------------
--  Enable X RandR       ON
--  Enable X Render      OFF
--  Enable X Damage      OFF
-- --------------------------
-- Boost version: 1.58.0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found X11_XCB: /usr/lib/x86_64-linux-gnu/libX11-xcb.so
-- Checking for module 'fontconfig'
--   No package 'fontconfig' found
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
  src/CMakeLists.txt:36 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
See also "/home/user/Downloads/polybar/build/CMakeFiles/CMakeOutput.log".

and here's /home/user/Downloads/polybar/build/CMakeFiles/CMakeError.log :
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/user/Downloads/polybar/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_8d0f0/fast"
/usr/bin/make -f CMakeFiles/cmTC_8d0f0.dir/build.make CMakeFiles/cmTC_8d0f0.dir/build
make[1]: Entering directory '/home/user/Downloads/polybar/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_8d0f0.dir/CheckSymbolExists.c.o
/usr/bin/clang     -o CMakeFiles/cmTC_8d0f0.dir/CheckSymbolExists.c.o   -c /home/user/Downloads/polybar/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_8d0f0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8d0f0.dir/link.txt --verbose=1
/usr/bin/clang       CMakeFiles/cmTC_8d0f0.dir/CheckSymbolExists.c.o  -o cmTC_8d0f0 -rdynamic
CMakeFiles/cmTC_8d0f0.dir/CheckSymbolExists.c.o: In function `main':
/home/user/Downloads/polybar/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:(.text+0x19): undefined reference to `pthread_create'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
CMakeFiles/cmTC_8d0f0.dir/build.make:97: recipe for target 'cmTC_8d0f0' failed
make[1]: *** [cmTC_8d0f0] Error 1
make[1]: Leaving directory '/home/user/Downloads/polybar/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_8d0f0/fast' failed
make: *** [cmTC_8d0f0/fast] Error 2

File /home/user/Downloads/polybar/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Any ideas how I can fix this?? Thanks!

Do you have libfontconfig1-dev installed?

yes, i have it installed

The travis runner installs these packages:
cmake cmake-data libboost-dev libxcb1-dev libxcb-util0-dev libxcb-image0-dev libxcb-randr0-dev libxcb-ewmh-dev libxcb-icccm4-dev xcb-proto python-xcbgen libfreetype6-dev i3-wm libiw-dev libasound2-dev libmpdclient-dev

@higab85 there's a ppa for polybar if you're interested?
Based on the your boost version you're running 16.04LTS?
deb http://archive.getdeb.net/ubuntu xenial-getdeb apps
wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
@jaagr if someone more familiar with debian packaging would like to contribute here are the necessary files:
http://mirrors.dotsrc.org/mirrors/pub/getdeb/ubuntu/pool/apps/p/polybar/

@mmetak nice, would you be able to rebuild the package? fixed a few bugs since they were made

@jaagr sorry, but I know next to nothing about debian packaging. ;-)
Just publish new release 2.3.3 or something and that ppa will update it.
They already have the latest stable release.

@jaagr I have all those packages insalled!
@mmetak awesome! that worked :) why though?? How come it worked with a pre-packaged file, and wouldn't work if I tried to install it myself?

The build is looking for fontconfig using pkg-config so I'd guess it's a path issue.


[CARBONDATA-1843]  Add configuration to enable dictionary and complex type

Improvement:

To improve usability, new carbon property is added to support dictionary and complex type, user can disable these features if not required
Block 'external', 'CTAS' syntax
Some other minor fix to catch exceptions

[X] Any interfaces changed?
No
[X] Any backward compatibility impacted?
No
[X] Document update required?
No
[X] Testing done
Yes
[X] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
NA

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/1640/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/2030/

retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/1642/


Energia code for fuzzy speed controller on C language

Hey All,
Its Urgent,
Can anyone provide me C language code for fuzzy logic speed controller. I'm doing this Using ENERGIA interface.
I'm taking my inputs using a ultrasonic sensor and after fuzzy methods the outputs are taken by DC motors as their inputs and then after they are going to control the speed or the rotation speed of DC motor.
Thank You
Energia code for fuzzy speed controller on C language

I guess I have a code that may help you. Go to my github profile, find my email address and send my one email.


Throw error/show warning if template expression throws error

I'm submitting a bug report

Library Version:
aurelia-templating 1.1.2

Operating System:
Ubuntu 16.04

Node Version:
7.0.0

NPM Version:
3.10.8

Browser:
Version 53.0.2785.143

Language:
ESNext

Current behavior:
It's possible to write invalid javascript inside a template. Aurelia silently swallows the error and does not show anything in the console.
https://gist.run/?id=749f18b7cd3f0d07dfbe5b712eacc620
What is the expected behavior?
If the javascript expression inside a template is invalid, there should be an error/warning indicating so.

What is the motivation / use case for changing the behavior?
debugging

Technically. there's nothing wrong with that code since undeclared can be a property on your class. @jdanyow Did we ever implement the user settings to log/error when binding properties are undefined?

While it's true a class property can be declared later on(i.e. on an event) when undeclared becomes available and the expression becomes valid, it's also possible that the developer made a mistake in declaring the property(for example a spelling mistake) and there'd be no pointer to catch that mistake. I have made a similar mistake recently where I've spent an hour chasing missing quotation marks.

Some people want to allow undefined properties and others don't. We discussed adding a setting so you could set your preference. Let's wait until @jdanyow chimes in here on the current status of that.

+1 This setting would be very useful. It's too easy to change a property name on a class in one place and miss a view somewhere else that is binding to it. If composing the view failed it would allow tests to pick this up without needing to test each and every binding. That's a big win.

stale since 2016
AFAIK no setting was introduced

We should handle this in vNext.