Create a Maven plugin for Piranha Micro to enable inner loop development

This plugin should:
Be able to be added to the build plugins without interfering with any other plugin
Support a piranha-micro:run goal which runs the web application in place
Support a piranha-micro:start goal which starts the application in a separate process
Support a piranha-micro:stop goal which stops the application that was started in a separate process

@Thihup All the goals mentioned above should work. Please give it a try. It is currently set to run the Standard version. If you find anything let me know.

@mnriem Awesome work! Good job! It is pretty amazing to be able to switch from Piranha Micro to Piranha Server and still have the same loop development.
Both
mvn piranha-micro:stop package piranha-micro:run

mvn piranha-server:stop package piranha-server:run

Worked just fine.


New Alarms for secure baseline

As a continuation of https://github.com/ministryofjustice/modernisation-platform/issues/1522
https://github.com/ministryofjustice/modernisation-platform/issues/1522
There are three things we can add to monitoring for the modernisation platform the first two are new cloud watch alarms based on aws documentation and the a third would be to add vpc flow logs to the modernisation platform transit gateway and adding monitoring to the cloud watch to monitor for low traffic on the link
This PR Adds in the new alarms

@markgov - have you tested this anywhere on your branch?

This has been Tested in Sprinkler


rename sm_join to merge_join

What problem does this PR solve?
To Implementing feature requirement : #15200
What is changed and how it works?

rename sm_join to merge_join
Made letter case changes

Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Code changes

Has exported variable/fields change

Side effects
Related changes

Need to update the documentation
Need to be included in the release note

Is there a TiDB PR to fix the integration test? @lawyerphx

Is there a TiDB PR to fix the integration test? @lawyerphx

Yes. I temporarily used my forked project as the parser and proposed a PR, here

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: kennytm:x: lawyerphxlawyerphx seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


How can I trigger the chatbot window using a custom button/hook?

What if I don’t want to use the default launcher button to open the main Watson messaging window?
How can I open/close the main window using a custom button or a react hook?

We have a tutorial on how to implement a custom launcher: https://github.com/watson-developer-cloud/assistant-toolkit/tree/master/integrations/webchat/examples/custom-launcher
Also, creating a GitHub issue isn't really the right way to ask questions. These are meant for reporting bug or issues with this library. If you have questions about web chat, you can ask in the IBM Watson Assistant community: https://community.ibm.com/community/user/watsonai/communities/community-home/digestviewer?CommunityKey=7a3dc5ba-3018-452d-9a43-a49dc6819633
Or you can always try asking a question on stackoverflow and tag it with watson-assistant.

Thank you @TazmanianDI.
If someone else is facing the same issue, the following is my solution to this problem:
WatsonInit.ts
import { WebChatConfig, WebChatContainer } from '@ibm-watson/assistant-web-chat-react';

export function WatsonLib({ setWatsonInstance }: { setWatsonInstance: (instance: any) => void }) {
  /**
   * This is the web chat config that is provided by the host page that is passed to web chat (usually through
   * window.watsonAssistantChatOptions. The actual values available here can vary depending on the version of web chat
   * being used. You can find the official documentation for these config options here:
   * https://web-chat.global.assistant.watson.cloud.ibm.com/docs.html?to=api-configuration.
   */
  const webChatOptions: WebChatConfig = {
    integrationID: process.env.REACT_APP_WATSON_ASSISTANT_INTEGRATION_ID ?? '', // The ID of this integration.
    region: (process.env.REACT_APP_WATSON_ASSISTANT_REGION as any) ?? 'us-south', // The region your integration is hosted in.
    serviceInstanceID: process.env.REACT_APP_WATSON_ASSISTANT_SERVICE_INSTANCE_ID, // The ID of your service instance.
    // subscriptionID: 'only on enterprise plans',
    // Note that there is no onLoad property here. The WebChatContainer component will override it with its own.
    showLauncher: false,
    showCloseAndRestartButton: true,
  };
  return (
    <WebChatContainer
      onBeforeRender={async (instance) => {
        setWatsonInstance(instance);
      }}
      config={webChatOptions}
    />
  );
}

After loading the library, we can use the instance.toggleOpen() method to open/close the chatbot from anywhere in our app.
TriggerButton.tsx
import React, { useState } from 'react';
import { WatsonLib } from '../WatsonLib';

export function TriggerButton() {
  const [watsonInstance, setWatsonInstance] = useState<{ [keys: string]: any }>();
  return (
    <>
      <WatsonLib setWatsonInstance={setWatsonInstance} />
      <button onClick={watsonInstance?.toggleOpen}>
        Toggle Watson
      </button>
    </>
  );
}

Just because I can't help myself :-), but there is a tiny simplification you can make in there. You can change
onBeforeRender={async (instance) => {
  setWatsonInstance(instance);
}}

to
onBeforeRender={setWatsonInstance}

You can also change
useState<{ [keys: string]: any }>()

to
useState<WebChatInstance>()

The WebChatInstance interface should be exported by our library.


Migrate from cryptohash to cryptonite

Are you Ok with the following change ?
Then a question. What's the best way to replace
md5 :: Text -> Text
md5 = Text.decodeUtf8 . digestToHexByteString . (Crypto.hash :: ByteString -> Digest MD5) . Text.encodeUtf8

toHex or B.convertToBase B.Base16 bs :: Bytes does not seem to be exposed by cryptonite ... Should we use base16-bytestring-<IP_ADDRESS> ?
Of course the pack.show trick is OK for my situation. I am just wondering about best practices.

Seems like a nice patch to me.
For me, the best practice would be to have an efficient function. This implementation is however more than sufficient for the need of language-puppet, and is straightforward.


Chain promises of ajax calls

Is it possible to chain promises with a depency between them?
For example, I need to fetch a user by username to get his id to fetch his chats
Like:
export default asyncConnect([{
  key: 'user',
  promise: ({ store: { dispatch, getState }, params: { username } }) => {
    return dispatch(getUserByUsername(username))
  }
}, {
  key: 'chat',
  promise: ({ store: { dispatch, getState },  user: { _id }}) => {
    return dispatch(getChat(_id))
  }
}]

Chain inside first promise. I assume you use promise-middleware, so smth like the snippet below could work
dispatch(action).then(response => dispatch(nextAction(response.payload.smth)))

On Sep 8, 2016, at 12:21 AM, Anibal<EMAIL_ADDRESS>wrote:
Is it possible to chain promises with a depency between them?
For example, I need to fetch a user by username to get his id to fetch his chats
Like:
export default asyncConnect([{
key: 'user',
promise: ({ store: { dispatch, getState }, params: { username } }) => {
return dispatch(getUserByUsername(username))
}
}, {
key: 'chat',
promise: ({ store: { dispatch, getState },  user: { username }) => {
return dispatch(getChat(username))
}
}]
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/makeomatic/redux-connect/issues/69, or mute the thread https://github.com/notifications/unsubscribe-auth/ABol0YGZC9FCKAtDznOShNSQwVy-fGxbks5qnyrIgaJpZM4J3Xp8.

Ok, cool! I will maybe use it that way the next time, I finished making it with only one http call.
Thanks!


[DP-4148] Update CODEOWNERS to IAM

The IAM team (the non-DX half of DP) should be the sole owners of this repo.

This repo has not been touched since March 2023, and has a deprecation path.
Build is failing due to a repo-wide issue. Probably needs an update in its circleCI config. But since this code won't be edited, I won't bother to fix it, and I'll abandon the codeowner change.
Slack context: https://ih-epdd.slack.com/archives/C03GXCDA48Y/p1727737875372589


Set focus on port field when port-forward-dialog opens

This makes the the port-forward-dialog more convenient to use.
Signed-off-by: Stefan Woehrer<EMAIL_ADDRESS>

@stewoe Please rebase with master to fix one of the CI/CD tests.


Signing Up Users

Hey Jared Hanson!
I'd love to use your module for login, but I can't figure out how to add users (sign them up)..... I'm doing var loginDb = require('./db');  (your code in db folder)   from a Node.js server, and have pushed data from a signUp form I made to the records section of db....and it seems to work temporarily ...but there is nothing permanent about the new users I've created....
Any modules/ advice for signing up new users with this module???
Thanks!!
Sincerely,
Brendan

Obviously, since the newly created user is not stored in a database, so it doesn't get stored permanently.
In order to record users, you will need a database, and a 'users' table, where to record the user's information.

For me, this example is missing the sessions/cookie part of how to signup a user using passportjs.

I've updated the example to include a working sign up form and database (using SQLite).  This should help illustrate how to implement user registration.


Fix typo

existance -> existence

Docs Build status updates of commit a78d45c:
:warning: Validation status: warnings

File
Status
Preview URL
Details

dynamicsax2012-technet/productdatamanager-verifyproductexistence-method-microsoft-dynamics-commerce-runtime-data.md
:warning:Warning
View
Details

dynamicsax2012-technet/productdatamanager-verifyproductexistence-method-microsoft-dynamics-commerce-runtime-data.md

Line 2, Column 1: [Warning-ms-author-missing] Missing required attribute: 'ms.author'. Add the current author's Microsoft alias.
Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.
Line 18, Column 1: [Suggestion-duplicate-h1s] H1 'VerifyProductExistence Method' is duplicated with other articles: 'productdatamanager-verifyproductexistence-method-microsoft-dynamics-commerce-runtime-data.md(18,1), productmanager-verifyproductexistence-method-microsoft-dynamics-commerce-runtime-client.md(18,1)'. First level headings must be unique within a docset. NOTE: This Suggestion will become a Warning on 1/29/21.

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 in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Update for server-side

Fixes #14, #16

Restructured project
Cleaned up .csproj as in removed some itemgroup
Switched to async IJSRuntime methods
Removed InProcessJSRuntime as it's not available for server-side blazor
Moved Storage.ts to wwwroot directory so it's available under <script src="_content/Cloudcrate.AspNetCore.Blazor.Browser.Storage/Storage.js"></script>
Added simple storage example project
Updated to new .NET SDK

TODO:

Check if it works for client-side blazor
Add client-side blazor example
Add cascading storage example for server-side blazor (for example simple counter with backing storage at the side menu)

Good work!
I'm just thinking about the scope. This library was created from a client-side point of view. While i think it would be beneficiary to support both cases, using async apis is overhead for the client side. I think it would be best to have async and sync apis. The sync ones should probably throw in a server-side setting with an appropriate error message, suggesting the async ones.

The sync ones should probably throw in a server-side setting with an appropriate error message, suggesting the async ones.

I agree, I was thinking how to handle this but this looks like a simple and good way to do it.
I will make the changes as soon as I have some free time

Please remove example project. It is out of scope for this pull request. Please open another pull request for adding an example project or an issue for requesting such work.

Done

Okay so I added a InvokeOnJs method that will automatically invoke methods on IJSInProcessRuntime in client-side scenarios or on regular IJSRuntime if this is a server-side scenario.

I have also updated IServiceCollection method to resolve #16

Thanks @konradbartecki!
I reworked some parts.
Merged manually


KAFKA-6768; Transactional producer may hang in close with pending requests

This patch fixes an edge case in producer shutdown which prevents close() from completing due to a pending request which will never be sent due to shutdown initiation. I have added a test case which reproduces the scenario.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

cc @huxihx Looks like we missed this in #4563.

For the record, I was able to reproduce the failure in 4/32 runs of our transaction system tests. With this patch, I did not see any failures in 32 runs.


Publish binaries to Bintray

I tried to do this, got irritated, and went Sonatype instead. That's what I'll use going forward.

I tried to do this, got irritated, and went Sonatype instead. That's what I'll use going forward.


Use configure script to check setns function

I happen to find out on centos6.7, glibc-headers does have SYS_setns
defined, but previous release doesn't.
It's better to use configure script to check setns function.
Signed-off-by: WANG Chao<EMAIL_ADDRESS>

LGTM, thanks!


Visible only 25 APIs under the Alert Configurations - Publisher Portal

Description:
Cannot see all the APIs (show only 25 APIs) in the dropdown under the Abnormal Response Time and Abnormal Backend Time configurations
Steps to reproduce:

Configured API Manager analytics with API Manager.
Published 26 APIs via the publisher portal.
Clicked on the Settings in the publisher portal.

Issue 1

Clicked on the gear icon right to the Abnormal Response Time configs.
Listed down API names in the dropdown and we were able to see only 25 APIs.

Issue 2

Clicked on the gear icon right to the Abnormal Backend Time configs.
Listed down API names in the dropdown and we were able to see only 25 APIs.

Affected Product Version:
3.1.0

Alert configurations has been removed from APIM product and moved to analytics hence closing the issue.


Trouble with SSO Snowflake Authorization

Hey! Thanks for the awesome adapter. I almost managed to make it work for my case, but encountered the following error while authorizing using SSO:
I run:
harlequin -a adbc "somename.snowflakecomputing.com:443/mydatabase/myschema?account=myemail&authenticator=externalbrowser" --driver-type snowflake

And get:
Harlequin could not connect to your database.
IO: 390201 (08004): The requested database does not exist or not authorized.

Environment:
harlequin, version 1.21.0

Installed Adapters:
  - duckdb, version 1.21.0
  - sqlite, version 1.21.0
  - adbc, version 0.1.1

Maybe I am missing something here, could you take a look please?

Thanks for the detailed issue and bringing this to my attention. I will try to reproduce on my end and see if I can figure out a fix!

@binste it looks like I have access, when I run the cli command the following happens:

I am redirected to the sso browser page
I select the auth option
I am redirected to the page with the message Your identity was confirmed and propagated to Snowflake [ADBC][Python-1.0.0]. You can close this window now and go back where you started from.

The same happens when I use dbeaber, for example, but in the terminal I get IO: 390201 (08004): The requested database does not exist or not authorized. message

I figured out what was wrong in this command:
harlequin -a adbc "somename.snowflakecomputing.com:443/mydatabase/myschema?account=myemail&authenticator=externalbrowser" --driver-type snowflake

In my case it shouldn't have included myschema:
harlequin -a adbc "somename.snowflakecomputing.com:443/mydatabase?account=myemail&authenticator=externalbrowser" --driver-type snowflake

it works fine like this.
So I guess, this is not a bug :) Thanks everyone who looked into this.

@knodl Thanks for following up! Apologies for not being able to look further into myself but glad it worked out!


experiment

Simple model for matching mentee to mentors
Co-Authored-By: Kateryna Pasecnyk<EMAIL_ADDRESS>Co-Authored-By: Viet Huynh<EMAIL_ADDRESS>

Closed so we can do it again following the Labs git workflow. This PR was generated from a forked version of the repo.


Fix help string for  "--charset" option of "cargo tree"

The help text for the cargo tree subcommand currently is:
> cargo --version
cargo 1.67.1 (8ecd4f20a 2023-01-10)
> cargo tree --help
Display a tree visualization of a dependency graph

Usage: cargo tree [OPTIONS]

Options:
  -q, --quiet                 Do not print cargo log messages
      --manifest-path <PATH>  Path to Cargo.toml
  -p, --package [<SPEC>]      Package to be used as the root of the tree
  -v, --verbose...            Use verbose output (-vv very verbose/build.rs output)
      --workspace             Display the tree for all packages in the workspace
      --exclude <SPEC>        Exclude specific workspace members
      --color <WHEN>          Coloring: auto, always, never
      --frozen                Require Cargo.lock and cache are up to date
  -F, --features <FEATURES>   Space or comma separated list of features to activate
      --locked                Require Cargo.lock is up to date
      --all-features          Activate all available features
      --offline               Run without accessing the network
      --config <KEY=VALUE>    Override a configuration value
      --no-default-features   Do not activate the `default` feature
      --target <TRIPLE>       Filter dependencies matching the given target-triple (default host platform). Pass `all` to include all targets.
  -Z <FLAG>                   Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details
  -e, --edges <KINDS>         The kinds of dependencies to display (features, normal, build, dev, all, no-normal, no-build, no-dev, no-proc-macro)
  -i, --invert [<SPEC>]       Invert the tree direction and focus on the given package
      --prune <SPEC>          Prune the given package from the display of the dependency tree
      --depth <DEPTH>         Maximum display depth of the dependency tree
      --prefix <PREFIX>       Change the prefix (indentation) of how each entry is displayed [default: indent] [possible values: depth, indent, none]
      --no-dedupe             Do not de-duplicate (repeats all shared dependencies)
  -d, --duplicates            Show only dependencies which come in multiple versions (implies -i)
      --charset <CHARSET>     Character set to use in output: utf8, ascii [default: utf8] [possible values: utf8, ascii]
  -f, --format <FORMAT>       Format string used for printing dependencies [default: {p}]
  -h, --help                  Print help information

Note that for the --charset option, the information about available encodings is duplicated. This PR removes the duplication.

@bors r+

:pushpin: Commit 80836cf7b1bc46157350d3b8fab06c4ad888c3f8 has been approved by weihanglo
It is now in the queue for this repository.

:hourglass: Testing commit 80836cf7b1bc46157350d3b8fab06c4ad888c3f8 with merge e472cccced88cc1f587555d02d31ca94cb0819b9...

:sunny: Test successful - checks-actions
Approved by: weihanglo
Pushing e472cccced88cc1f587555d02d31ca94cb0819b9 to master...


"This version:" link generated incorrectly

The short name included in the "This version" link is being lower-cased, which causes W3C Specberus/PubRules to reject it.
For example, runningbikeshed spec --md-status=WD for the File API spec yields (note fileapi):

https://www.w3.org/TR/2019/WD-fileapi-20190523/

But expected (FileAPI):

https://www.w3.org/TR/2019/WD-FileAPI-20190523/

Fixed in 6dcfb71


RFC: Query Language

Problem
Querying Heroic with JSON can be verbose and hard to manually do. Heroic currently has its own query language, HQL, but we haven't kept it up to date with changes to the codebase.
Suggestion
We should compare this to other syntaxes, like PromQL. If possible it would be better to support something more standard rather than continuing to roll our own. If that's not possible we need to update HQL and provide support for it in our query sources (particularly the Grafana plugin).
We also need to consider how much benefit we get from supporting a query language at all. JSON may be good enough.

As points of comparison, OpenTSDB has its own query language. InfluxDB has a SQL-like query language and supports reads through a specific endpoint.
There are actually only a handful of TSDBs that support remote reads from Prometheus.
That said, I don't think it makes sense to support two query languages. If we want to support reading from Prometheus, I would lean towards going all-in on PromQL.

Does going all in PromQL mean adding it within Heroic itself or writing a remote read prometheus adapter that would translate between PromQL and the heroic json API?
The latter approach seems like it would be less upfront work to get going and would give us some benefits our users have been asking for like basic arithmetic without having to implement any of those features. In this case heroic is just returning the raw or sampled time series and letting prometheus do the heavy lifting.

For the adapter, we still have to translate the PromQL query into something Heroic understands, right?
I just don't think we should support multiple DSLs long term. If the experimentation with PromQL looks solid, we should completely replace HQL with it. Having support for multiple DSLs, regardless of whether that's in an external adapter or the core of Heroic, means more work every time we want to add functionality (like new filters).

Is the JSON API considered a DSL?
I completely agree with replacing HQL with PromQL if it looks good. The challenge here might be maintaining this in Java when Prom is written in go?


Establish a methdology to gather and select papers

A possible example:

Define concepts: UNCERTAINTY vs DYNAMISM etc... This has to be done BEFORE any search, hence step 0 instead 1
Define a Scopus search. Example TITLE-ABS-KEY ( uncertainty  AND optimization )  AND  ( LIMIT-TO ( SUBJAREA ,  "COMP" ) )  (althought I think it is still a bit limited, any suggestions to improve it?)
Filter according previously defined concepts, and other decisions (date? number of citations?)
Show data (by year, by type of publication, real problem or not, topic...)

This methodology should be explained in the paper as a complete section. Next section would be the one to include the classification/taxonomy and discussion.

Dammit, using WoS with the query TS=((evolutionary algorithm OR genetic algorithm) AND (uncertainty OR noisy OR dynamic)) Refinado por: Dominios de investigación: ( SCIENCE TECHNOLOGY ) AND Áreas de investigación: ( COMPUTER SCIENCE ) gives me 20133 files D: Same with Scopus.
Any idea to refine the search or just keep these numbers to shown? (by year, by type...)

use quotes to find only that combination of words.

We have a winner TITLE-ABS-KEY ( "noisy evolutionary algorithm"  OR  "noisy genetic algorithm"  OR  "dynamic evolutionary algorithm"  OR  "dynamic genetic algorithm"  OR  "dynamic fitness"  OR  "noisy fitness" )  AND  ( LIMIT-TO ( SUBJAREA ,  "COMP " ) )   I will upload the csv with all these references right away.

Can somebody else execute the query above in Scopus and export a CSV including Abstracts and Keywords? If I add in the Keywords/Abstracts in the export wizard it doesn't generate anything :S (tested in Ubuntu and MacOS with Firefox and Chrome)

I don't think it's got anything to do with the OS...

I know, it was a preventive declaration before somebody said “use linux and
not posh OSes” ;)
El El mar, 20 feb 2018 a las 21:12, Juan Julián Merelo Guervós <
<EMAIL_ADDRESS>escribió:

I don't think it's got anything to do with the OS...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/geneura-papers/uncertainty-in-EAs/issues/6#issuecomment-367101489,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC6kMjoFu9rek5Jkr1sUbOMx5Hq3HE4Sks5tWyTegaJpZM4RkmNS
.

--
Dr. Pablo García Sánchez
University of Cádiz

¿Esto es Web of Science o Scopus?

Scopus


Ability to switch off caching

Now that page caching is introduced, changes to the theme are not easily loaded.
Solution:

Add a flag NOT to cache anything at all in environment.yml
Add this to the python code

Implemented


Upgrade actions/configure-pages v2.1.3 -> v3.0.6

This PR contains the following updates:

Package
Type
Update
Change

actions/configure-pages
action
major
v2.1.3 -> v3.0.6

Release Notes

actions/configure-pages
v3.0.6
Compare Source
Changelog

Bump eslint from 8.36.0 to 8.38.0 @dependabot (#89)
Bump eslint-plugin-github from 4.6.1 to 4.7.0 @dependabot (#86)
Bump eslint-config-prettier from 8.7.0 to 8.8.0 @dependabot (#85)
Bump prettier from 2.8.6 to 2.8.7 @dependabot (#84)
Make "Get Pages failed" error message more helpful @WofWca (#83)
Bump prettier from 2.8.4 to 2.8.6 @dependabot (#81)
Add a CodeQL security scanning workflow @JamesMGreene (#68)

See details of all code changes since previous release.
v3.0.5
Compare Source
Changelog

Bump jest from 29.4.3 to 29.5.0 @dependabot (#77)
Bump eslint from 8.35.0 to 8.36.0 @dependabot (#76)
Bump espree from 9.4.1 to 9.5.0 @dependabot (#78)
Bump eslint-config-prettier from 8.6.0 to 8.7.0 @dependabot (#75)
Bump eslint from 8.34.0 to 8.35.0 @dependabot (#73)
Bump jest from 29.4.1 to 29.4.3 @dependabot (#72)
Bump eslint-plugin-github from 4.6.0 to 4.6.1 @dependabot (#71)
Amend token coverage for enablement in Action metadata file @JamesMGreene (#51)

See details of all code changes since previous release.
v3.0.4
Compare Source
Changelog

Use @actions/github for rest calls instead of axios @jeremy-daley-kr (#63)

See details of all code changes since previous release.
v3.0.3
Compare Source
Changelog

Bump axios from 1.3.0 to 1.3.3 @dependabot (#70)
Bump prettier from 2.7.1 to 2.8.4 @dependabot (#66)
Bump eslint from 8.33.0 to 8.34.0 @dependabot (#65)
Bump @vercel/ncc from 0.34.0 to 0.36.1 @dependabot (#61)
Bump espree from 9.4.0 to 9.4.1 @dependabot (#59)
Add workflow to rebuild Dependabot PRs @JamesMGreene (#69)

See details of all code changes since previous release.
v3.0.2
Compare Source
Changelog

Bump axios from 0.27.2 to 1.3.0 @dependabot (#56)
Bump jest from 28.1.1 to 29.4.1 @dependabot (#58)
Bump eslint-plugin-github from 4.3.7 to 4.6.0 @dependabot (#57)
Bump eslint-config-prettier from 8.5.0 to 8.6.0 @dependabot (#55)
Bump eslint from 8.23.1 to 8.33.0 @dependabot (#54)
Update tests to actually invoke the desired method instead of replicating it @JamesMGreene (#53)
Add npm to Dependabot update list @JamesMGreene (#52)

See details of all code changes since previous release.
v3.0.1
Compare Source
Changelog

Fix enablement logic in v3 @JamesMGreene (#50)

See details of all code changes since previous release.
v3.0.0
Compare Source
Changelog

Update default behavior to NOT attempt to create/enable the Pages site @JamesMGreene (#48)
Bump actions/publish-action from 0.2.1 to 0.2.2 @dependabot (#47)
Bump json5 from 1.0.1 to 1.0.2 @dependabot (#45)
Add Dependabot config for Actions usage updates @JamesMGreene (#46)

See details of all code changes since previous release.

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade actions/configure-pages v2.1.3 -> v3.0.6


when i am tries to run code of launch

i am already connect to dobot and config it to appear green light
Run
ros2 launch dobot_bringup dobot_magician_control_system.launch.py
Error
[INFO] [launch.user]: Loading tool parameters.
[set_tool_null-1] [WARN] Dobot Magician is not connected.
[ERROR] [set_tool_null-1]: process has died [pid 45099, exit code 1, cmd '/home/dear/dev_ws/install/dobot_bringup/lib/dobot_bringup/set_tool_null --ros-args'].

Hi, check the name of the serial port the robot is connected to and eventually modify it in dobot_handle.py script in dobot_driver package :wink:

I already check the port and i still got the same error
Error
[INFO] [launch]: All log files can be found below /home/dear/.ros/log/2023-10-17-09-57-18-698313-Dear-Nx-Gen-8642
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [set_tool_null-1]: process started with pid [8648]
[INFO] [launch.user]: Loading tool parameters.
[set_tool_null-1] [WARN] Dobot Magician is not connected.
[ERROR] [set_tool_null-1]: process has died [pid 8648, exit code 1, cmd '/home/dear/dev_ws/install/dobot_bringup/lib/dobot_bringup/set_tool_null --ros-args'].
[INFO] [ros2 launch dobot_diagnostics alarms_analyzer.launch.py-2]: process started with pid [8652]
[INFO] [launch.user]: Starting the diagnostics module.
[INFO] [gripper_server-3]: process started with pid [8655]
[INFO] [launch.user]: Gripper control service started.
[INFO] [suction_cup_server-4]: process started with pid [8657]
[INFO] [launch.user]: Suction Cup control service started.
[gripper_server-3] [WARN] Dobot Magician is not connected.
[suction_cup_server-4] [WARN] Dobot Magician is not connected.
[ERROR] [gripper_server-3]: process has died [pid 8655, exit code 1, cmd '/home/dear/dev_ws/install/dobot_end_effector/lib/dobot_end_effector/gripper_server --ros-args'].
[ERROR] [suction_cup_server-4]: process has died [pid 8657, exit code 1, cmd '/home/dear/dev_ws/install/dobot_end_effector/lib/dobot_end_effector/suction_cup_server --ros-args'].
[INFO] [ros2 launch dobot_homing dobot_homing.launch.py-5]: process started with pid [8681]
[INFO] [launch.user]: Starting homing service.
[INFO] [launch.user]: Loading homing parameters.
[ros2 launch dobot_homing dobot_homing.launch.py-5] [INFO] [launch]: All log files can be found below /home/dear/.ros/log/2023-10-17-09-57-21-896166-Dear-Nx-Gen-8683
[ros2 launch dobot_homing dobot_homing.launch.py-5] [INFO] [launch]: Default logging verbosity is set to INFO
[ros2 launch dobot_homing dobot_homing.launch.py-5] [INFO] [homing_server-1]: process started with pid [8684]
[ros2 launch dobot_homing dobot_homing.launch.py-5] [INFO] [homing_params.yaml-2]: process started with pid [8686]
[ros2 launch dobot_homing dobot_homing.launch.py-5] [homing_server-1] [WARN] Dobot Magician is not connected.
[ros2 launch dobot_homing dobot_homing.launch.py-5] [ERROR] [homing_server-1]: process has died [pid 8684, exit code 1, cmd '/home/dear/dev_ws/install/dobot_homing/lib/dobot_homing/homing_server --ros-args'].
[INFO] [ros2 launch dobot_kinematics dobot_validate_trajectory.launch.py-6]: process started with pid [8692]
[INFO] [launch.user]: Strating trajectory validator service.
[INFO] [launch.user]: Loading kinematics parameters.
[ros2 launch dobot_kinematics dobot_validate_trajectory.launch.py-6] [INFO] [launch]: All log files can be found below /home/dear/.ros/log/2023-10-17-09-57-23-898870-Dear-Nx-Gen-8694
[ros2 launch dobot_kinematics dobot_validate_trajectory.launch.py-6] [INFO] [launch]: Default logging verbosity is set to INFO
[ros2 launch dobot_kinematics dobot_validate_trajectory.launch.py-6] [INFO] [trajectory_validator_server-1]: process started with pid [8695]
[ros2 launch dobot_kinematics dobot_validate_trajectory.launch.py-6] [INFO] [axis_limits.yaml-2]: process started with pid [8697]
[ros2 launch dobot_kinematics dobot_validate_trajectory.launch.py-6] [trajectory_validator_server-1] pybullet build time: Oct 11 2023 16:42:09
[INFO] [ros2 launch dobot_motion dobot_PTP.launch.py-7]: process started with pid [8710]
[INFO] [launch.user]: Starting PointToPoint action server.
[INFO] [launch.user]: Setting speed and acceleration values.
[ros2 launch dobot_motion dobot_PTP.launch.py-7] [INFO] [launch]: All log files can be found below /home/dear/.ros/log/2023-10-17-09-57-25-893479-Dear-Nx-Gen-8712
[ros2 launch dobot_motion dobot_PTP.launch.py-7] [INFO] [launch]: Default logging verbosity is set to INFO
[ros2 launch dobot_motion dobot_PTP.launch.py-7] [INFO] [PTP_server-1]: process started with pid [8713]
[ros2 launch dobot_motion dobot_PTP.launch.py-7] [INFO] [PTP_motion_params.yaml-2]: process started with pid [8715]
[ros2 launch dobot_motion dobot_PTP.launch.py-7] [PTP_server-1] [WARN] Dobot Magician is not connected.
[ros2 launch dobot_motion dobot_PTP.launch.py-7] [ERROR] [PTP_server-1]: process has died [pid 8713, exit code 1, cmd '/home/dear/dev_ws/install/dobot_motion/lib/dobot_motion/PTP_server --ros-args'].
[ros2 launch dobot_homing dobot_homing.launch.py-5] [homing_params.yaml-2] Node not found
[ros2 launch dobot_homing dobot_homing.launch.py-5] [ERROR] [homing_params.yaml-2]: process has died [pid 8686, exit code 1, cmd 'sleep 5;ros2 param load /dobot_homing_srv /home/dear/dev_ws/install/dobot_homing/share/dobot_homing/config/homing_params.yaml'].
[INFO] [ros2 launch dobot_homing dobot_homing.launch.py-5]: process has finished cleanly [pid 8681]
[ros2 launch dobot_kinematics dobot_validate_trajectory.launch.py-6] [INFO] [axis_limits.yaml-2]: process has finished cleanly [pid 8697]
[ros2 launch dobot_motion dobot_PTP.launch.py-7] [PTP_motion_params.yaml-2] Node not found
[ros2 launch dobot_motion dobot_PTP.launch.py-7] [ERROR] [PTP_motion_params.yaml-2]: process has died [pid 8715, exit code 1, cmd 'sleep 5;ros2 param load /dobot_PTP_server /home/dear/dev_ws/install/dobot_motion/share/dobot_motion/config/PTP_motion_params.yaml'].
[INFO] [ros2 launch dobot_motion dobot_PTP.launch.py-7]: process has finished cleanly [pid 8710]
[INFO] [state_publisher-8]: process started with pid [8755]
[INFO] [launch.user]: Dobot state updater node started.
[INFO] [launch.user]: Dobot Magician control stack has been launched correctly
[state_publisher-8] [WARN] Dobot Magician is not connected.
[ERROR] [state_publisher-8]: process has died [pid 8755, exit code 1, cmd '/home/dear/dev_ws/install/dobot_state_updater/lib/dobot_state_updater/state_publisher --ros-args'].

Try running just dobot_handle.py and let me know if you get an error

[WARN] Dobot Magician is not connected.
i still got the error.

Now, it's working when i am running just dobot_handle.py
but for
ros2 launch dobot_bringup dobot_magician_control_system.launch.py
Error
Dobot Magician is not connected it same error as above

Under /etc/udev/rules.d/, create a rule file with the file name 50-udev-default.rules (permission required) and the following one-line rule: KERNEL=="ttyUSB[0-9]*", GROUP="$USER", MODE="0666", and connect to the robot arm after running the command.

As you can see, the Dobot Magician is not connected warning appears when the serial port cannot be opened.
        try:
            self.serial = serial.Serial(
                port=port,
                baudrate=115200,
                parity=serial.PARITY_NONE,
                stopbits=serial.STOPBITS_ONE,
                bytesize=serial.EIGHTBITS
            )
        except:
            print("[WARN] Dobot Magician is not connected.")
            sys.exit(1)

@DearMoeurn12 are you in dialout group? If not, then add yourself to this group (sudo usermod -a -G dialout <username>) :+1:

i just already config it because i didn't write permissions to all users.
now it's working by just run this in terminal.
##Run this command
sudo chmod a+rw /dev/ttyUSB0

I'm glad it's working, but the command you mentioned is just a temporary solution. After you restart your computer, you will have to execute this command again, that's why I suggested you to add yourself to dialout group because it's a permanent solution :smile:

I appreciate your help, I'll go ahead and add myself to the dialout group for a permanent solution. Thanks for the advice! 😄


Protect Naive Bayes vote calculation against underflow/overflow

Changes proposed in this pull request:

Protect Naive Bayes vote calculation against underflow/overflow

Checklist
Implementation

[x] Implementation is correct (it performs its intended function).
[x] Code is consistent with the framework.
[x] Code is properly documented.
[x] PR description covers ALL the changes performed.
[x] Files changed (update, add, delete) are in the PR's scope (no extra files are included).

Tests

[ ] New functionality is tested.
[ ] Tests are created for the new functionality or existing tests are updated accordingly.
[x] ALL tests pass with no errors.
[x] CI/CD pipelines run with no errors.
[x] Test Coverage is maintained (coverage may drop by no more than 0.2%).

Thanks for the fix @jacobmontiel. It looks good to me!


[stable/kong] no way to connect to postgres with ssl on

There is currently no way to connect to postgres with ssl on in the default kong chart, would be nice to have a setting pg_sslmode that could be set to handle db providers like Heroku.

@keeganmccallum You can set KONG_PG_SSL=on variable in the env section in values.yaml:
env:
  pg_ssl: on

Please close this issue. Thank you!


corrupted ext4.vhdx?

I lost windows so i wanted to recover data from ext4.vhdx. What i tried:
Replacing ext4.vhdx with old one:
Error code: Wsl/Service/CreateInstance/HCS_E_CONNECTION_TIMEOUT
the old package name is :
CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
and the new one is:
CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc
does it matters?
Attaching this vhdx in disk management  showed there is no partition and everything I could do with it was to format it.
Opening it using 7zip:

It contains only one 16MB file. vhdx file is 36GB, but when i open new wsl in 7zip it has all the files
yesterday on the old windows, wsl was working perfectly, is there any way to recover just some .cpp and .py files?

Try attaching it with wsl --mount <disk> --vhd and save your data. Use wsl --help for mounting options.

The screenshot suggests that the vhdx file is already formatted to windows partition format. There is less chance to recover files.

Try attaching it with wsl --mount <disk> --vhd and save your data. Use wsl --help for mounting options.

I can't,  wsl --mount --bare --vhd E:\ext4.vhdx returns Error code: Wsl/Service/AttachDisk/MountVhd/E_ACCESSDENIED

Try attaching it with wsl --mount <disk> --vhd and save your data. Use wsl --help for mounting options.

I can't, wsl --mount --bare --vhd E:\ext4.vhdx returns Error code: Wsl/Service/AttachDisk/MountVhd/E_ACCESSDENIED

@vende11s: Is the disk writable by your user account ? This would be a requirement to mount it with wsl --mount

Acidentally deleted Ubuntu for Windows but I managed to recover ext4.vhdx. How do I view and extract files from .vhdx?

wsl --mount --vhd  ..\ext4.vhd
The disk was attached but failed to mount: Operation not permitted.
For more details, run 'dmesg' inside WSL2.
To detach the disk, run 'wsl.exe --unmount \\?\D:\ext4.vhd'.

-> https://github.com/microsoft/WSL/issues/8165 : deadend bc "WSL can't bypass the filesystem ACL when mounting vhd's"
I think after recovering my ext4.vhdx is too corrupted and become unreadable. I tried creating a dummy WSL then replace new .vhdx with my old one but it keeps saying "wsl.localhost.... is not accessible". I also tried several recovery softwares to fix vhdx but no result.
Now I'm trying these tutorials:
1: libguestfs: error: /usr/bin/supermin exited with error status 1 -> https://askubuntu.com/questions/1088411/mount-vdhx-image-on-ubuntu-data-recovery -> deadend: can't read kernel even though I'm operating as root user
2: I made it to the last step but nothing showed up in virtual box VM file explorer


React Warning

Getting this warning:
Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

Move data fetching code or side effects to componentDidUpdate.
If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run npx react-codemod rename-unsafe-lifecycles in your project source folder.

Please update the following components: DragSource(t), DropTarget(t)

DragSource and DropTarget come from React-dnd so I will close this issue.


Features/user login

Added breathtaking login page
Stores user accounts

TODO:

Create user session and associate open documents with account
Username/logout option in navigation bar
Password recovery

closing for improvements


How use it with Mac M1?

Maybe this will help you
https://github.com/dotnet/TorchSharp#download

Support for M1 has not been added yet. I do not have access to a Mac with an M1 chip, but we have migrated to libtorch 1.13, so the backend support should be in place if someone with an M1 is willing to do the integration work.
Adding @dayo05

In temporary #837 can be the solution

See also #652 and #643

Duplicate of 652 -- no need to track separately. As soon as someone gives me a machine with M1/M2 HW, I'll jump on this... :-)

Update: This was addressed in v0.102.0


libfreerdp: crypto: add certificate chain validation!

Add a stack of X509* to the crypto_cert_struct so that we can ask openssl for the peer's cert chain if it exists, and use that in the actual validation call.
Fixes #2446

@freerdp-bot test.

Fixes #2446

+1


JavaScript defaultProps in functional components with newer versions of React (18.3+)

If possible, please update the components so they no longer use soon-to-be-removed default values in functional component props. This relatively small change will help to use the lib while leveraging latest React features. defaultProps can be easily replaced by default parameters.
Error is:
"Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."

yes I have been seeing this issue too. I will take up this issue and try to fix it


Graphic issues on certain GPUs

Hi there,
I was hoping that you might help investigating an issue with the Mica effect that I noticed on certain hardware. Similar to you, I was applying Windows 11's Mica style to a JavaFX window by setting the necessary "magic" values (20 and 1029 before 22H2, now 38 on 22H2). While this works great on my main development machine, there seems to be a graphical glitch on certain hardware that make the effect look wrong. For example, with your test code:

Left is how it should look, and right is how it actually looks on another computer that uses an NVIDIA GPU. My main computer where everything works as intended uses an AMD graphics card. The scene is set to Color.TRANSPARENT, so it seems the "real" color of the window shines through and is black.
At first I noticed this problem on a notebook that uses Intel integrated graphics. I put this on hold because I thought the 22H2 update might fix this issue. However, I now have 22H2 on both an AMD and an NVIDIA system, and the NVIDIA computer still has the same issue no matter if I use my original code or your library.
Now the interesting thing is that if I turn off hardware acceleration (System.setProperty("prism.order, "sw")), then both the NVIDIA and the Intel machine show the Mica effect correctly. The fact that other Windows applications (e.g. Explorer) also correctly show the Mica effect makes me think it might something internal to JavaFX---however, it seems, only on certain hardware. Would you happen to know what might be the cause of this?
I investigated a little bit more and I was able to achieve something by using Windows' SetLayeredWindowAttributes(hWnd, RGB(255, 0, 255), 0, LWA_COLORKEY); and setting the scene background to Magenta (here showcased with my program):

Again, left is how it should look, and right is how it looks on an NVIDIA system. What happens is that while the window correctly shows the Mica effect, it is completely mouse transparent, and only the magenta color is actually clickable (and of course there is this strange color fringe).
What I also found out is that other GUI toolkits are able to correctly "Mica-ify" a window on my NVIDIA system, e.g.:
https://github.com/martinet101/win32mica/
https://github.com/dongle-the-gadget/SystemBackdropTypes
However, they seem to do a little bit more than only setting DwmSetWindowAttribute. For example, the WPF example works with a CompositionTarget and a transparent color here: https://github.com/dongle-the-gadget/SystemBackdropTypes/blob/ab18f1aa70f0575e5df42ebad5ae2699b2ee4c9a/SystemBackdropTypes/MainWindow.xaml.cs#L34
Sadly, my knowledge about the Windows API is limited, so I wonder if you have any more insights on why this seems to be a JavaFX problem, and what exactly the drivers do different so that it only occurs on certain hardware.

I don't think I can help. Looking at your comment, you seem more versed in Win32 API than me :)
I can add a few more points to your findings though. On my notebook, which has an NVidia card:

Replacing root.setStyle("-fx-background-color: transparent"); with root.getStylesheets().add(".root { -fx-background-color: transparent; }"); and removing scene.setFill(Color.TRANSPARENT); works, until I move the window to an external display.
The maximize button hover overlay problem I've mentioned in README is not there anymore, so clearly something's changed.

At this point, I don't think it is possible to create a mica window without doing it properly on stage creation. Probably a custom stage implementation is required here, but this is too big a task for what I use JavaFX for.
Sorry :(

No problem, thanks for your hint about the background color! Unfortunately, it doesn't seem to do the same on my NVIDIA desktop, so there might be even more uncertainties.
I also heard conflicting opinions on whether one has to use WS_EX_NOREDIRECTIONBITMAP at creation time or whether one can set it later with SetWindowLong. There are also some differences when using StageStyle.UNIFIED or not, but so far I wasn't able to find out what exactly JavaFX does different in these 2 cases when creating windows (https://github.com/openjdk/jfx/blob/86b854dc367fb32743810716da5583f7d59208f8/modules/javafx.graphics/src/main/native-glass/win/BaseWnd.cpp#L112).
I'll keep investigating this issue, if you have the time feel free to let me know about any changes that you noticed!

An additional thing that I found out: If I use StageStyle.TRANSPARENT then Mica seems to work as expected! But of course, the window decorations are now missing. JavaFX skips some steps when the window is set to be transparent, or there is something going on with blending the effect onto the window: https://github.com/openjdk/jfx/blob/303bcdb9ba40b7d82e555d675dad8d028e018c86/modules/javafx.graphics/src/main/native-glass/win/GlassWindow.cpp#L807

The most annoying part is that it just works on my desktop, which has an AMD card:

:(

Hi,
using an undocumented -Dprism.forceUploadingPainter=true/`System.setProperty("prism.forceUploadingPainter", "true"), I was able to make Mica work on my NVIDIA machine! Can you try it on your system? I will also check whether it works on my Intel graphics system later.

Use StageStyle.UNIFIED
scene.fill = Color.TRANSPARENT
Use a transparent background for the root node

It doesn't work on mine :( But maybe I'm doing it wrong? I'm more of a sbt person than maven person.  How did you pass that option? I tried setting $env:MAVEN_OPTS/$env:JAVA_OPTS, and calling setProperty in main before launch().

I'm actually mainly using Gradle, with Gradle it depends a little bit on whether it runs a main() function or directly instantiates the JavaFX application.
In general, you could look for the way how to pass "JVM arguments" to Java. For example, in Gradle one can use applicationDefaultJvmArgs, and then you also need to prepend the option with a D like this: -Dprism.forceUploadingPainter=true
But it actually should work if you use System.setProperty before launch ... can you check whether other setProperty works, e.g. System.setProperty("prism.verbose", "true")? It should then print some information about your graphics configuration.

You can put 'yes' to both column for RX 570X. And yes, opaque background isn't an issue in 22H2, my notebook is not yet updated.

It turns out the Mica issue that the RX 580 user had was actually me additionally using DwmExtendFrameIntoClientArea (and me only applying Mica's light theme on a dark-themed desktop). So it seems AMD isn't affected by this in general.
One could now simply enable forceUploadingPainter on all systems, but I noticed a great performance loss if enabling that and also having a monitor with >60Hz. This might affect only AMD or could depend on the higher refresh rate in general.
In that case, also setting javafx.animation.fullspeed=true gets rid of what seems to be a frame limit.
Here is also some additional information on what forceUploadingPainter does:

... Note that it's only required for UploadingPainer. The PresentingPainter does not call uploadPixels(), and thus doesn't depend on RT-24168.

https://bugs.openjdk.org/browse/JDK-8091385
 * UploadingPainter is used when we need to render into an offscreen buffer.
 * The PresentingPainter is used when we are rendering to the main screen.
 */

https://github.com/openjdk/jfx/blob/master/modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/UploadingPainter.java
 * The PresentingPainter is used when we are rendering to the main screen.
 * UploadingPainter is used when we need to render into an offscreen buffer.
 */

https://github.com/openjdk/jfx/blob/master/modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/PresentingPainter.java
For now I'll update the table to be more general because in the end it only seems to depend on using AMD or not. I will probably build a check for a user's GPU and enable forceUploadingPainter if necessary, but if I find out another fix I will let you know!

👍
You're awesome.
I will re-open this issue if you don't mind, just to make it a bit more visible. Who knows, maybe there is a third person on the internet that cares about JavaFX on Windows 11 🙂.

👍
You're awesome.
I will re-open this issue if you don't mind, just to make it a bit more visible. Who knows, maybe there is a third person on the internet that cares about JavaFX on Windows 11 🙂.

me! :)


/v3/service_instances endpoints are not experimental

Mark service_instances endpoints as non-experimental as part of the v3 root.

[X] I have reviewed the contributing guide

[X] I have viewed, signed, and submitted the Contributor License Agreement

[X] I have made this pull request to the master branch

[X] I have run all the unit tests using bundle exec rake

[X] I have run CF Acceptance Tests

Thank you,
Georgi and @henryaj

SAPI Team will merge this PR as soon as CAPI CI is green


Enhanced the home page and registration pages and added logic for loading config from environment

Enhanced the home page to load smoothly in mobile
Fixed the padding issues in registration page
Minor fixes in login screen
Added logic for loading the config values from environment file

Amazing!


Use the new macro __HIP_PLATFORM_AMD__ at build time

Jenkins, test this please

Jenkins CI test (for commit 6ce03914321161716314268c6b5b39c98b40b1b7, target branch master) succeeded!


AlarmControlPanel is deprecated

I'm using Home Assistant 0.110.5 and I can't get the alarm control panel to work. I get these error messages in the logs:
Logger: homeassistant.components.alarm_control_panel
Source: components/alarm_control_panel/init.py:194
Integration: Alarm control panel (documentation, issues)
First occurred: 5:19:28 PM (1 occurrences)
Last logged: 5:19:28 PM
AlarmControlPanel is deprecated, modify SIAAlarmControlPanel to extend AlarmControlPanelEntity

I have the same error

please move to the beta, by doing "reinstall" and then selecting v0.3.2b


[release/1.3 backport] Move flag.Parse in tests to TestMain

backport #3744, for some reasons, I need to build with go1.13..

Codecov Report

Merging #3926 into release/1.3 will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           release/1.3    #3926   +/-   ##
============================================
  Coverage        42.07%   42.07%
============================================
  Files              129      129
  Lines            14322    14322
============================================
  Hits              6026     6026
  Misses            7395     7395
  Partials           901      901

Flag
Coverage Δ

#linux
45.59% <ø> (ø)
:arrow_up:

#windows
37.01% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


prefix attribute

can be the same for wires and ports
deprecate wire_prefix and port_prefix

Resolved in commit https://github.com/IObundle/py2hwsw/pull/58/commits/8714e2de19309899dd36aaa8e4a80b044a892a16 of PR https://github.com/IObundle/py2hwsw/pull/58


Use generated Codable implementation for TypeDescription

Back when we first wrote TypeDescription a few years back, Swift was not capable of generating the Codable implementation for indirect enums with associated values. Now it is.
Instead of continuing to maintain and test a manual Codable implementation, let's rely on Apple's implementation. A nice bonus is that Apple's implementation is more compact than our implementation, which will likely improve encoding/decoding speed for folk utilizing persistence.
This is a breaking change.

Merging this, but will wait a bit before releasing since there are going to be a few breaking changes landing. If folk have feedback post-merge please leave a comment!


feat(editors/subscriber-later-binding): Add subscriber view

Closes #1025
Very draft:

poor performance (very slow) - mainly putting this PR up to allow discussion of this
snapshots not updated
some broken tests I must look at
some hacks applied to get around "infinite reactive update"
no tests as yet
but does seem to sort of work...

I am closing this for now as I have had some discussions with Christian.
I expect within a week or so something more acceptable will appear.


Safety Score API is not documented

The old endpoint for Safety Score does not work for new cars anymore and the Fleet API does not document it.
old endpoint: https://akamai-apigateway-vfx.tesla.com/safety-rating/daily-metrics?vin=<vin>&deviceCountry=US&deviceLanguage=en&timezone=America/Los_Angeles&appVersion=4.27.5&hasInsurance=true
I get this response (401 http error):
{
    "message": "401 Unauthorized",
    "context": {
        "code": 401,
        "url": "http://vfx-insurance-mobile-burstapp-prod.tesla.com/safety-rating/daily-metrics?vin=5YJ3E1EC6PF513580&deviceCountry=US&deviceLanguage=en&timezone=America/Los_Angeles&appVersion=4.27.5&hasInsurance=true",
        "method": "get",
        "request": {
            "params": {
                "vin": "<vin>",
                "deviceCountry": "US",
                "deviceLanguage": "en",
                "timezone": "America/Los_Angeles",
                "appVersion": "4.27.5",
                "hasInsurance": "true"
            }
        },
        "source": {
            "type": "NotAuthenticatedException",
            "reason": "Invalid signature",
            "referenceNumber": "5YE1EC3580"
        }
    },
    "errorMessage": ""
}

The Safety Score API is not part of FleetAPI which is why it's not documented. We may be able to consider incorporating it into FleetAPI but that will require some internal discussion and design.
@sethterashima Let's close this one in favor of https://github.com/teslamotors/vehicle-command/issues/152


test PR with Github API

Please pull this in!

Docs Build status updates of commit 2c639ff:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit bf5833f:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 3727e9f:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit ad639ca:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add high level documentation

Including a statement of need and maybe some other context. For example, this package does seem focused (but not limited) on the micro-scale and related sciences, but this is not mentioned anywhere.
There are guides for contributing and an API documentation, but not on other levels. You could take inspiration from the four levels of documentation and an implementation of that idea, such as the Django documentation.

@evetion I think the four levels of documentation are great. Until recently the documentation was almost exclusively reference guides (the API documentation), but right around when you were doing this review we merged in #151. I'm not sure if you saw that, but it added a series of examples that are essentially how-to guides for a number of use cases. Most of the nontrivial calculations in coxeter also include pretty extensive explanation as part of the docstrings as well (for example, see the isoperimetric quotient of a polyhedron). The last important piece is a tutorial, which I just added in #155 along with a new, more explicit statement of need (although not explicitly under that title) in the README. I also provide some more of the context that you suggested. Let me know what you think of these!


Perhaps CONS-Dfam_3.2 missing from container?

Describe the bug
Not sure, but maybe the RepeatMasker Libraries directory is missing a file/dir like CONS-Dfam_3.2?  Should this work, or is it misguided?
To Reproduce
Using LIBDIR, which is simply a writable, private copy of /opt/RepeatMasker/Libraries.  The command seems to fail because it's trying to access Libraries files it expects, but which do not exist.
$ LIBDIR=/projects/hpcrcf/mcolema5/mcurrey-repeatmasker/Libraries  singularity exec --
bind=/projects,/packages docker://dfam/tetools:1.2 RepeatMasker  -species liliopsida empty.fa
RepeatMasker version 4.1.1
Search Engine: NCBI/RMBLAST [ 2.10.0+ ]

Using Master RepeatMasker Database: /projects/hpcrcf/mcolema5/mcurrey-repeatmasker/Libraries/RepeatMaskerLib.h5
  Title    : Dfam
  Version  : 3.2
  Date     : 2020-07-02
  Families : 6,953

Species/Taxa Search:
  Liliopsida [NCBI Taxonomy ID: 4447]
  Lineage: root;cellular organisms;Eukaryota;Viridiplantae;
           Streptophyta;Streptophytina;Embryophyta;Tracheophyta
  9 families in ancestor taxa; 0 lineage-specific families

Building general libraries in: /projects/hpcrcf/mcolema5/mcurrey-repeatmasker/Libraries/CONS-Dfam_3.2/general
RepeatMasker::createLib(): Error invoking /opt/rmblast/bin/makeblastdb on file /projects/hpcrcf/mcolema5/mcurrey-repeatmasker/Libraries/CONS-Dfam_3.2/general
/is.lib.

Expected behavior
Not very familiar with RM, but was expecting it to try to extract/build the sub-library for the named species.  ??
Alternatively, is there any reasonably simple way to add this to my writable copy?
Host system (please complete as much of the following information as you can find out):

RHEL 7.8
Singularity 3.3.0-1
Container image 1.2  (same behavior with latest)

Not sure, but maybe the RepeatMasker Libraries directory is missing a file/dir like CONS-Dfam_3.2? Should this work, or is it misguided?

It's not missing! The directory should be generated on an as-needed basis, by default in Libraries/ if it is writable, or in a directory under $HOME if Libraries is readonly.
Building general libraries in: /projects/hpcrcf/mcolema5/mcurrey-repeatmasker/Libraries/CONS-Dfam_3.2/general
RepeatMasker::createLib(): Error invoking /opt/rmblast/bin/makeblastdb on file /projects/hpcrcf/mcolema5/mcurrey-repeatmasker/Libraries/CONS-Dfam_3.2/general
/is.lib.

From around this time there should be a log file named rmblast.log, in that general/ directory. Could you paste or attach the contents of that file? It might have a more specific or informative error.

Thanks, that was very helpful.  Here was what was in that log:
New DB name:   /projects/hpcrcf/mcolema5/mcurrey-repeatmasker/Libraries/CONS-Dfam_3.2/general/is.lib
New DB title:  /projects/hpcrcf/mcolema5/mcurrey-repeatmasker/Libraries/CONS-Dfam_3.2/general/is.lib
Sequence type: Nucleotide
Deleted existing Nucleotide BLAST database named /projects/hpcrcf/mcolema5/mcurrey-repeatmasker/Libraries/CONS-Dfam_3.2/general/is.lib
Keep MBits: T
Maximum file size:<PHONE_NUMBER>B

No volumes were created.

Error: mdb_env_open: Cannot allocate memory

Looking around, this appears to be similar to this: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960756
In particular, it seems plausible that this is an mmap call failing.  The 'ulimit -v' was set to about 48GB, but apparently that wasn't enough.  Retrying with 'unlimited' seemed to get it working.
Appreciate your help!
P.S.  Would be handy to have strace in that container, for debugging.

Glad to hear you found the cause - and thanks for that link. Apparently -blastdb_version 4 is a potential workaround for this issue in the debian bug report, which I'll consider adding to RepeatMasker itself - we have seen other issues with the version 5 databases in other contexts as well.
I have also added strace to the container starting in 1.3-beta-1, so I'm closing this issue. Thanks for the report!

Glad to hear you found the cause - and thanks for that link. Apparently -blastdb_version 4 is a potential workaround for this issue in the debian bug report, which I'll consider adding to RepeatMasker itself - we have seen other issues with the version 5 databases in other contexts as well.
I have also added strace to the container starting in 1.3-beta-1, so I'm closing this issue. Thanks for the report!


feat(universe.ts): added author and name to release deploy function

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Create Community Docs

Adds Community Documentation to the repo such as a Code of Conduct, Planning and Contributors file.
Changes proposed in this PR:

Add CONTRIBUTORS.md file.
Add PLANNING.md file.
Update README.md
Add CODE_OF_CONDUCT.md file.
Update PULL_REQUEST_TEMPLATE.md file.

@willtheorangeguy

Merging!


Which Elixir and Phoenix version do I need?

I think it's important to show the project depends on elixir and phoenix and their respective versions.. otherwise we may end up with an error like this:
tiagodavi:~λ mix phx.new lvn_tutorial --no-ecto --no-gettext --no-mailer
** (Mix) The task "phx.new" could not be found
Note no mix.exs was found in the current directory

Yes, some Step 0. prereqs would be nice.


The optparse module is deprecated

https://docs.python.org/2/library/optparse.html
We should consider updating to argparse. This would likely require lots of reformatting in all of our repositories. Something to talk about at the next meeting

Solved with #101


Voidglutton and Will-o-Wisp tokens are not glowing (missing a Rules Element)

In GitLab by @itamarcu on Jun 1, 2022, 06:42
The Flickerwisp tokens are all glowing, but the Voidglutton and two Will-o-Wisp tokens are not.
I suggest adding an additional "Light turned off" effect or toggle to the NPC sheet. For example, these two REs for the Voidglutton:
{"key":"TokenLight","value":{"animation":{"intensity":1,"speed":3,"type":"pulse"},"bright":30,"color":"#fff9a3"},"predicate":{"all":["glowing"]}}

and
{"key":"RollOption","label":"Glowing","domain":"all","option":"glowing","toggleable":true,"value":true}

(issue originally posted to the AV module tracker, moved to be here instead)

The dread wisp should also be included

I have updates on the Flickerwisp, Voidglutton, Dread Wisp, and Will-o'-the-Deep; what is the second Will-o-Wisp token mentioned by the OP?

Groetan Candle maybe?


Re-enable emails in payment reconciliation cron job

The fallback reconciliation cron job was not sending the emails delayed by DisableOrderEmailBeforeQuoteSubmit.php. This adds in that functionality, as done in Callback.php

Screenshots showing the email sending 1 second after reconciliation logged in order notes (minus timezone difference between store and mailcatcher)


Control Fields and number of flakes via commandline

Give correct values to the simulation without the need to start the Remote GUI.

Closing this, it is in develop since #25


SSLError

botocore.exceptions.SSLError: SSL validation failed for https://rolesanywhere.us-east-1.amazonaws.com/sessions [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)

you need endpoint="rolesanywhere.cn-northwest-1.amazonaws.com"

谢谢。您的邮件已收到，我会尽快处理。

Hello @wkzqn,
I did not head back from your issue but the latest release 2.2.0 enables you to skip certificate validation if needed.
Thomas.

谢谢。您的邮件已收到，我会尽快处理。


Confirm post-GWAPI 0.8 status of wildcard hostname HTTP(S) Listeners

GWAPI 0.8.0 introduces CEL validation of various resource fields. Listeners now have a CRD-level rule that ensures that no pair of Listeners has identical Port, Hostname, and Protocol values.
This rule has an apparent bug handling Hostname-aware Listeners where one Listener has a set Hostname and one does not. The spec allows a single Listener with an unset Hostname on a given Port+Protocol. This Listener matches any Hostname if no more specific Hostname matches.
The CEL rule apparently requires an actual Hostname value to check if they are equal. Including both a nil Hostname and set Hostname in a Gateway fails:
10:54:33-0700 esenin $ cat /tmp/gw.yaml
apiVersion: gateway.networking.k8s.io/v1beta1
kind: Gateway
metadata:
  name: prod-web
spec:
  gatewayClassName: acme-lb
  listeners:
  - protocol: HTTP
    port: 80
    name: http
  - protocol: HTTP
    port: 80
    name: httphostname
    hostname: http.example
10:54:35-0700 esenin $ kubectl create -f /tmp/gw.yaml
The Gateway "prod-web" is invalid: spec.listeners: Invalid value: "array": Combination of port, protocol and hostname must be unique for each listener

Our existing GWAPI integration tests include one such Gateway. We need to confirm with upstream if blocking these is indeed intended. Based on my understanding of the spec, they should not be blocked: https://github.com/kubernetes-sigs/gateway-api/issues/2369

This seems to have been already addressed upstream and pending a release: https://github.com/kubernetes-sigs/gateway-api/pull/2370 ?

Indeed, upstream has confirmed that CEL shouldn't do this and we should un-comment the blocks once 0.8.1 is out.


Implicit exposure handling

I think it's positive to discuss whether we should implement the same magic behavior grape has for declaring exposures. In grape, when declaring an exposure, if the class has an instance method with the same name it automatically uses it to serialize that exposure:
class PostEntity < Grape::Entity
  expose :title

  private

  def title
    some_magic_code
  end
end

This way I could go from this:
expose :rating_count, [if: &should_show_metrics?/2], &rating_count/2
expose :rating_value, [if: &should_show_metrics?/2], &rating_value/2
expose :max_price,    [if: &should_show_metrics?/2], &max_price/2
expose :min_price,    [if: &should_show_metrics?/2], &min_price/2
expose :image,        [if: &should_show_metrics?/2], &image/2

... to this:
expose ~w[rating_count rating_value max_price min_price image]a, if: &should_show_metrics?/2

... which clearly is a win win in terms of LOC and code readability. The downside is that we would be going for the magic, implicit side, when elixir in general is about being explicit.

Hi @nicooga
I think about this issue again and again, but I still don't think the ruby-like-grammar  is good for elixir.
In ruby, developer don't care variable and method, when we call dog.weight after dog = Dog.new, weight can be either a method or an attribute.
But it seems it's not promoted in elixir, we should use explicit () after function even if it's func/0
And for myself, two different behaviors for the same grammar make me confuse, I don't know expose :a means Map.get(item, :a) or __MODULE__.a(item, options)
Sorry I can't find a DSL I think is better for your use case for now, let's keep discussing about it 🙂


Downloaded 0 image using the example this repo document provided

root@46a091b7f167:/app# pip freeze | grep google
google-api-core==2.14.0
google-api-python-client==1.12.11
google-auth==2.25.1
google-auth-httplib2==0.1.1
google-cloud-core==2.3.3
google-cloud-storage==2.13.0
google-crc32c==1.5.0
google-images-download==2.8.0
google-resumable-media==2.6.0
googleapis-common-protos==1.61.0

The codes told the issue
In [1]: from google_images_download import google_images_download

In [2]: response = google_images_download.googleimagesdownload()

In [3]: arguments = {"keywords":"Polar bears,baloons,Beaches","limit":1,"print_urls":True}

In [4]: paths = response.download(arguments)

Item no.: 1 --> Item name = Polar bears
Evaluating...
Starting Download...

Errors: 0

Item no.: 2 --> Item name = baloons
Evaluating...
Starting Download...

Errors: 0

Item no.: 3 --> Item name = Beaches
Evaluating...
Starting Download...

Errors: 0

In [5]: paths
Out[5]: ({'Polar bears': [], 'baloons': [], 'Beaches': []}, 0)

In [6]: arguments = {"keywords":"human","limit":1,"print_urls":True}

In [7]: paths = response.download(arguments)

Item no.: 1 --> Item name = human
Evaluating...
Starting Download...

Errors: 0

In [8]: paths
Out[8]: ({'human': []}, 0)

In [9]:

any updates?

same issue

Outdated


[Feature Request] Super Simple Chat UI for the Local Server

It would be nice to have a very basic Chat UI to use with the Local Server, especially when "Serve on Local Network" is switched on. Just a simple chat interface that pops up when you put the server address into the browser on your device of choice.

or configure the server address in LM Studio (used only as a frontend) maybe 🤔

@julien-c that would be nice too. Would be nice to be able to "serve on local network" take the address, put it in my mobile browser and have a chat UI on my phone.


add translation for Bahasa Melayu and fix

Hello 👋 nice project. Thank you for the code. I learn a lot from it.

Awesome!
Thank you for your contribution to the project! 🎉🎉


zoom: Update to version 5.5.2

Fixes Zoom regex to correctly detect the latest version.

/verify checkver has to fail...

Fixed.

/verify


Does translate interaction is available in Openlayers 4 ?

Actually I'm searching for a interaction like Transform in version 3 that can scale , rotate and move vector feature on ol4 but I didn't find any working example.
I also need to combine it with modify interaction.
So please if it is steal available in offer me an example that can does thoese or If it's not guide me how to do that.
Thanks

You would have to write your own based on Pointer, like Translate is.
See https://github.com/openlayers/openlayers/blob/master/src/ol/interaction/Translate.js

@raiyni I did it before but the modify don't works any more! you can find it here:
https://gist.github.com/kingofnull/0ad644be69d8dd43c05721022ca5c3a5

Thanks! I test again and wow the translate works like a charm. And about combining it with modify it need to add before modify interaction and it works without conflicting the modify interaction. here if my final code:
var map = new ol.Map({...});
var featureDrager = new ol.interaction.Translate();
var modify = new ol.interaction.Modify({...});
map.addInteraction(featureDrager);
map.addInteraction(modify);


Add package asciitype

A more informative README would be nice....

Thank you for reviewing my first package.
I revised README.


[Infra] Attempt to fix #12769

Fix #12769
#no-changelog

green CI in 938963e. Comment removed in latest commit


Project refactor

Coverage remained the same at 76.672% when pulling 3ae06a2c5a32e8d88ecf1e82ef1b649abbd60a85 on bellert:project-refactor into f7e12c37b3b6715be493e62a546a17a8363bbaa0 on dwavesystems:master.

Coverage remained the same at 76.672% when pulling 3ae06a2c5a32e8d88ecf1e82ef1b649abbd60a85 on bellert:project-refactor into f7e12c37b3b6715be493e62a546a17a8363bbaa0 on dwavesystems:master.

Merging, but we have to fix #32.


linux-25 is dead.

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
linux-25 is dead.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Machine was hung and required power recycle to restart machine.


NtOpenThread: {Access Denied}

Receiving this error in my debug log.
When run, its logs into my account, then stops.
[1120/120648.592:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022)
[1120/120648.593:ERROR:exception_snapshot_win.cc(99)] thread ID 15148 not found in process
[1120/120648.609:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022)
[1120/120648.609:ERROR:exception_snapshot_win.cc(99)] thread ID 3444 not found in process
[1120/120648.646:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022)
[1120/120648.646:ERROR:exception_snapshot_win.cc(99)] thread ID 16420 not found in process
WebDriverWait(browser, time_to_wait).until(ec.visibility_of_element_located((by_, selector)))
File "C:\Python38\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

I made an update, try it :)


add summary at the end of configure

adding a summary will help users to know if openssl is correctly configured for them

The configdata.pm script will produce what you're after I think but it's not displayed automatically.


fix #3113

Coverage increased (+0.01%) to 91.126% when pulling 2c3f7112bf9649defba9ecdea5b37efc0d27d783 on antgonza:fix-3113 into ebdddd874d0980ec776fc7128f4d2f193de5fd4b on qiita-spots:dev.


Error on sign in button clicked

Here's the log
GoogleUiButtonContainer is clicked
GetCredentialResponse error returned from framework
GoogleAuthUiProvider error: No credentials available

Any idea why it might happen?

Gotcha, issue was happening because SHA-1 signing certificate fingerprint didn't match.


Tolerate missing nbf/exp when verifying token

@nsweeting thanks for this package! I like that it's tightly focussed and simple to use.
I am using it to verify JWTs from auth0 - hence, the tokens have not been generated by authex. auth0 JWTs do not provide an nbf claim, so they were failing to verify with a :not_ready error.
It's reasonable for authex to be less opinionated about nbf and exp, for uses like mine?

Thanks for the contribution @notproperlycut! Glad you can find some use from it.
For sure a reasonable request. Will merge up!


Sentinel error when no slaves

Config config = new Config();
config.useSentinelServers()
    .setMasterName("mymaster")
    .addSentinelAddress("<IP_ADDRESS>:26389");
Redisson redisson = Redisson.create(config);

if there are no slaves on SentinelConnectionManager:82 we have a List<Map<String, String>> sentinelSlaves = connection.sync(StringCodec.INSTANCE, RedisCommands.SENTINEL_SLAVES, cfg.getMasterName()); which returns just Map not List of Maps.
So, the exception I get is:
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545)
... 41 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.redisson.RedissonClient]: Factory method 'redissonClient' threw exception; nested exception is java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 53 more
Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.List
at org.redisson.connection.SentinelConnectionManager.(SentinelConnectionManager.java:82)
at org.redisson.Redisson.(Redisson.java:96)
at org.redisson.Redisson.create(Redisson.java:131)
at com.atl.csc.conf.RedisConfig.redissonClient(RedisConfig.java:122)
You may argue that it is not correct if there are no slaves, but, this cut config is used on test machines and not on production (which is fully configured with slaves). So, would be nice to handle this error.
Thanks.

redis v.3.0.3
redisson 2.2.6

@a1u Do you really use 2.2.6 version?
Because i have another error in this case:
org.redisson.client.RedisConnectionException: Can't init enough connections amount! Only 0 from 5 were initialized. Server: /<IP_ADDRESS>:6399
	at org.redisson.misc.ConnectionPool$2.operationComplete(ConnectionPool.java:95)
	at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:680)
	at io.netty.util.concurrent.DefaultPromise$2.run(DefaultPromise.java:592)
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection refused: no further information: /<IP_ADDRESS>:6399
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
	at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:224)
	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:289)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:528)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
	... 3 more

yes:
        <dependency>
            <groupId>org.redisson</groupId>
            <artifactId>redisson</artifactId>
            <version>2.2.6</version>
        </dependency>

I have one master on 6379 and one sentinel on 26379.
On 26379 redis-cli SENTINEL SLAVES mymaster shows (empty list or set)

Fixed

many thanks

2.2.8 has the problem. Reverting to 2.2.7 resolves that.
final Config  config = new Config();
config.useSingleServer()
  .setAddress( address)
  .setPassword( p);
Redisson.create( config);

org.redisson.client.RedisConnectionException: Can't init enough connections amount! Only 1 from 5 were initialized. Server: ...:6379
at org.redisson.connection.pool.ConnectionPool$2.operationComplete(ConnectionPool.java:112)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:683)
at io.netty.util.concurrent.DefaultPromise$2.run(DefaultPromise.java:593)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.netty.channel.ConnectTimeoutException: connection timed out: ...:6379
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe$1.run(AbstractNioChannel.java:220)
at io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38)
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:120)
... 5 more

@YangZhong Can't reproduce it with 2.2.8

redis:3.0.7
redisson: 2.2.9
gradle:  compile 'org.redisson:redisson:2.2.9'
android:4.3
find this problem too!
config:
    public final int TIMEOUT = 5000;     public final int POOLSIZE = 1000;   Config config = new Config();       config.useSingleServer().setAddress("<IP_ADDRESS>:6379").setConnectionPoolSize(POOLSIZE).setTimeout(TIMEOUT).setConnectTimeout(TIMEOUT);         redisson = Redisson.create(config);
org.redisson.client.RedisConnectionException: Can't init enough connections amount! Only 0 from 5 were initialized. Server: /<IP_ADDRESS>:6379
How to solve it ? Thanks for help.

@amosli scroll down your exception stack, Redisson can't connect to your Redis server

Using version 2.2.7
RedissonClient redisson = Redisson.create();
I have the same Exception, what should I do?
Exception in thread "main" org.redisson.client.RedisConnectionException: Can't init enough connections amount! Only 0 from 5 were initialized. Server: /<IP_ADDRESS>:6379
at org.redisson.connection.pool.ConnectionPool$2.operationComplete(ConnectionPool.java:112)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:683)
at io.netty.util.concurrent.DefaultPromise$2.run(DefaultPromise.java:593)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)

Have you checked your connection with this server?

I checked it, now it is working ...
Thank you.

In my program, I try to store data in hash-map and retrieve it.
The data is stored in 500*5 separated hashes each with maximum 9 fields, I make this by loop.
if I increase more than this, I have the following exception.
Exception in thread "main" org.redisson.client.RedisConnectionException: Can't init enough connections amount! Only 0 from 5 were initialized. Server: /<IP_ADDRESS>:6379 	at org.redisson.connection.pool.ConnectionPool$2.operationComplete(ConnectionPool.java:112) 	at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:683) 	at io.netty.util.concurrent.DefaultPromise$2.run(DefaultPromise.java:593) 	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:358) 	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:357) 	at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112) 	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) 	at java.lang.Thread.run(Thread.java:745) Caused by: org.redisson.client.RedisConnectionException: RedisConnection [redisClient=[addr=/<IP_ADDRESS>:6379], channel=[id: 0xf9cda152, <IP_ADDRESS>/<IP_ADDRESS>:50649 :> /<IP_ADDRESS>:6379]] is not active! 	at org.redisson.connection.pool.ConnectionPool.promiseFailure(ConnectionPool.java:260) 	at org.redisson.connection.pool.ConnectionPool.access$300(ConnectionPool.java:43) 	at org.redisson.connection.pool.ConnectionPool$3.operationComplete(ConnectionPool.java:219) 	... 7 more
Do I need more servers or what should be the problem?

Does this problem rises at app startup only?

I think it because every iteration I create a new connection to the server.

How do you make it? could you provide code?

In the loop, I call a method which have this line
RedissonClient redisson = Redisson.create();
So as number of iteration, as number of this line executed.

This is a bad idea. Share Redisson instances with same config

yes I know, I wasn't taking my care.
I fixed it but I have the same exception, and I think there is a problem with the server
because it shows

Error registering fd event for the new client:
ult too large
and continuing processing this

RedisConnection [redisClient=[addr=/<IP_ADDRESS>:6379], channel=[id: 0xf9cda152, <IP_ADDRESS>/<IP_ADDRESS>:50649 :> /<IP_ADDRESS>:6379]] is not active!
As I see the reason may be then you behind some firewall and it has an opened port but connection is not alive.

@vchau

Can you comment on whether you will change the behavior to work for 1-sentinel/1-redis setup?

Currently this task has low priority. But anyway you contribute this change to project.

Helo,
I started using redis with my tomcat 8 to store sessions.
configuration : java1.8, tomcat 8, Redis version /redis-3.2.8,Redission 3.3.1
i am on windows environment so i am using vagrant virtual box with ubuntu.
i installed redis in this using below ones
$ wget http://download.redis.io/releases/redis-3.2.8.tar.gz
$ tar xzf redis-3.2.8.tar.gz
$ cd redis-3.2.8
$ make
$sudo apt-get install redis-server
$sudo service redis-server restart
$sudo service redis-server status   -- server running only
my server is running in Virtual box and in my eclipse MARs i setup my workspace
in my tomcat8/lib i copied redis-session-manager-with-dependencies-2.1.1-SNAPSHOT.jar
and redission-3.3.1.jar as per below link
https://github.com/chexagon/redis-session-manager
in context.xml   - added below

when i tried to start my tomcat i am getting below error, could any one please help me to resolve this issue? really waiting for response as i am new to this one?
Mar 15, 2017 12:41:11 PM com.crimsonhexagon.rsm.RedisSessionManager startInternal
SEVERE: Unable to load serializer
org.redisson.client.RedisConnectionException: Can't init enough connections amount! Only 0 from 10 were initialized. Server: localhost/<IP_ADDRESS>:6379
at org.redisson.connection.pool.ConnectionPool$2$1.operationComplete(ConnectionPool.java:130)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:481)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:122)
at org.redisson.misc.RedissonPromise.tryFailure(RedissonPromise.java:98)
at org.redisson.connection.pool.ConnectionPool.promiseFailure(ConnectionPool.java:298)
at org.redisson.connection.pool.ConnectionPool.access$400(ConnectionPool.java:53)
at org.redisson.connection.pool.ConnectionPool$4.operationComplete(ConnectionPool.java:268)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:481)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:122)
at org.redisson.misc.RedissonPromise.tryFailure(RedissonPromise.java:98)
at org.redisson.connection.ClientConnectionsEntry$1.operationComplete(ClientConnectionsEntry.java:141)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:481)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:122)
at org.redisson.misc.RedissonPromise.tryFailure(RedissonPromise.java:98)
at org.redisson.client.RedisClient$2$2.run(RedisClient.java:163)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:445)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: localhost/<IP_ADDRESS>:6379
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:347)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:340)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:630)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:565)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:479)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:441)
... 3 more

in my context.xml i aded below

Hi mrniko ,
i have in this tomcat context xml
Manager className="com.crimsonhexagon.rsm.redisson.SingleServerSessionManager"
endpoint="localhost:6379"
sessionKeyPrefix="rsm"
saveOnChange="false"
forceSaveAfterRequest="false"
dirtyOnMutation="false"
ignorePattern=".*\.(ico|png|gif|jpg|jpeg|swf|css|js)$"
connectionPoolSize="100"
database="0"
password="redispwd"
timeout="60000"
pingTimeout="1000"
retryAttempts="20"
retryInterval="1000"
Could you please elaborate regarding connection check  ?

Connection could be checked using redis-cli tool. Run it on the same host you using for tomcat. Just wondering why can't you use Redisson's Tomcat Manager instead?

redis <IP_ADDRESS>:6379> ping
PONG
i am getting response using redis client means redis is connected right?

Did you run it on the same instance there tomcat deployed?

my tomcat deployed in windows localhost with port 8081
as i mentioned earlier i am running redis in vagrant virtual box from windows , so tested this redis client in that VB

you should run redis-cli on windows host instead

I found  way to install Redis under Windows
Download the latest Redis .msi file from
https://github.com/MSOpenTech/redis/releases
Then only i can run redis-cli on windows host right?
could you plesae give an article/link to get me full length understanding in real time  configuration leavel as i followed few internet posts and did installation , am not sure am i foloowing correct way as iam stuck with many issues ?
My reqquirement is in real prodcution env, repliacting many nodes with redis to server n number of clients so to try this from local machine i started with my tomcat node still i could not achieve it so please suggest any link /video/tutorial  to resolve my setup issue ?
one more thing is what is the best way to work with redis in windows environment

using linux VB
Download the latest Redis .msi file from https://github.com/MSOpenTech/redis/releases

please guide me through

sorry for the typo mistakes

I wouldn't recommend you to use redis built for windows, because it's not recommended for production usage. Run both Redis and Tomcat using VB


Why can't I install a pre-release of GHPRI in a Codespace?

I'm guessing this is because it's now built-in, but shouldn't Codespaces users be able to choose?

Built in extensions are fixed and we do not support out of the band updates. Its same in the Desktop. One can always side load the extension if wanted which is supported.


Docs search results in 4.1 link to 4.0 docs

If I go to https://getbootstrap.com/docs/4.1/getting-started/introduction/ and in the search box on the left, type "alerts" and then click on the first result, it takes me to https://getbootstrap.com/docs/4.0/components/alerts/ instead of https://getbootstrap.com/docs/4.1/components/alerts/

@Spetnik  Already aware of the issue, see => https://github.com/twbs/bootstrap/issues/26441
For a solution, do this:

open Chrome Devtools, open Application tab and then Application > Clear Storage. Then tap the 'Clear site data' button to wipe service worker storage etc. That'll fix it for you.

May as well close this issue
:-)

Sorry for the duplicate issue - I guess I didn't search well enough!


Expose error details when converting Google::Gax::GaxError to Google::Cloud::Error

When Google::Gax::GaxError gets converted to Google::Cloud::Error, it does not expose the error details to extract partial_success info.
When calling Google::Cloud::Logging::V2::LoggingServiceV2Client.write_log_entries directly, we get a Google::Gax::GaxError with partial_success info.
cat write_log_entries.rb
require "google/api/monitored_resource_pb"
require "google/cloud/logging/v2"
require "google/logging/v2/log_entry_pb"
require "google/gax"

LoggingClient = Google::Cloud::Logging::V2::LoggingServiceV2Client
logging_client = LoggingClient.new
entries = [
  Google::Logging::V2::LogEntry.new(
    {
      log_name: 'projects/gapic-test/logs/my-log',
      resource: Google::Api::MonitoredResource.new({type: 'gce_instance'}),
      text_payload: 'pass'
    }),
  Google::Logging::V2::LogEntry.new(
    {
      log_name: 'projects/gapic-test/logs/bad:log',
      resource: Google::Api::MonitoredResource.new({type: 'gce_instance'}),
      text_payload: 'fail'
    }),
]

begin
  logging_client.write_log_entries(
    entries,
    log_name: 'projects/gapic-test/logs/my-log',
    resource: Google::Api::MonitoredResource.new(
      type: 'gce_instance',
      labels: {}
    ),
    labels: {},
    partial_success: true
  )
rescue => error
  puts "error:\n#{error.inspect}\n"
  puts "error details:\n#{error.details[0].log_entry_errors.inspect}\n"
end

$ ruby write_log_entries.rb
error:
#<Google::Gax::RetryError: GaxError Exception occurred in retry method that was not classified as transient, caused by 7:User not authorized.>
error details:
{
    0=><Google::Rpc::Status: code: 7, message: "User not authorized.", details: []>,
    1=><Google::Rpc::Status: code: 3, message: "Log name contains illegal character :", details: []>
}

However, if we follow the official instruction at https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/master/google-cloud-logging/README.md to use the write_entries function.
$ cat cleaner_way.rb
require "google/cloud/logging"

logging = Google::Cloud::Logging.new
entries = [
  logging.entry(
    payload: "Job started.",
    log_name: "my_app_log",
    resource: logging.resource("gce_instance", {
       instance_id: "1294753745",
       zone: "20150925t173233"
    })
  ),
  logging.entry(
    payload: "Job started.",
    log_name: "bad:log",
    resource: logging.resource("gce_instance", {
       instance_id: "1294753745",
       zone: "20150925t173233"
    })
  )
]

begin
  logging.write_entries entries, partial_success: true
rescue => err
  puts err.inspect
  puts err.instance_variables.inspect
end

$ ruby cleaner_way.rb
#<Google::Cloud::InvalidArgumentError: 3:Log name contains illegal character :>
[]

Looking at the code that converts the error:
        def execute
          yield
        rescue Google::Gax::GaxError => e
          # GaxError wraps BadStatus, but exposes it as #cause
          raise Google::Cloud::Error.from_error(e.cause)
        end

Seems we are not exposing error.details.
How should this be exposed? I can submit a PR if we can agree on the expected behavior.
Also, is it recommended to use Google::Cloud::Logging::V2::LoggingServiceV2Client.write_log_entries directly?

BTW, I was testing this with a gem I built from this PR (Add partial_success in write_entries method: https://github.com/GoogleCloudPlatform/google-cloud-ruby/pull/1790)

Hi @blowmage - I'm not sure if it's recommended to use Google::Cloud::Logging::V2::LoggingServiceV2Client.write_log_entries directly. But that workaround works for us. I'm happy to switch to write_entries when it exposes the error. Before that we can live with the workaround (using Google::Cloud::Logging::V2::LoggingServiceV2Client.write_log_entries directly. So I won't deem this very urgent.

We are working on a fix for this, but you can always get the inner GaxError using Error#cause.

Logging 1.3.0 was released today and updates the google-gax dependency to ~> 0.10.1.
In previous versions of google-gax you were using GaxError#details to access this information. However, this method has been renamed to GaxError#status_details starting in version 0.10.0. Similarly, you can access this value through Google::Cloud::Error#status_details starting with this release. Please update your code accordingly. Thank you for your contribution!