Help importing project into node js project

I'm attempting to import the library into a node js project and I'm getting some errors. I'm working on getting up to speed on all things node js but I am able to use other libraries using requires. I'm also using Typescript.
At the top of module, myclass.ts I have:
import Psd from "@webtoon/psd";
This generates this error:
[Error [ERR_REQUIRE_ESM]: Must use import to load ES Module:
require() of ES modules is not supported.
require() of<EMAIL_ADDRESS>from /Users/project/MyProjectClass.ts is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from<EMAIL_ADDRESS>
It doesn't make sense to me what to do with that information.

Related to #59
This is because we don't provide a CommonJS bundle yet. We're planning to add one soon-ish.
For now, you'll have to use dynamic import().
// Import actual package
const Psd = await import('@webtoon/psd')

When will the commonjs version be released


using zia config file for import errors, but the tf files are still created

Confirmation

[X] My issue isn't already found on the issue tracker.
[X] I have replicated my issue using the latest version of the library and it is still present.

zscaler-terraformer version
➜  zia-terraform zscaler-terraformer version zscaler-terraformer v1.2.2 Terraform version: Terraform v1.5.7 on (darwin_arm64)
Expected outcome
when using a config file, like this:
export<EMAIL_ADDRESS>export ZIA_PASSWORD="asdfasdf"
export ZIA_API_KEY="asdfasdf"
export ZIA_CLOUD="zscalertwo"

The import function completes, and creates several files with valid data, but it errors numerous times when attempting to run.
Actual outcome
File attached with the full output, but this is repeated several times

DEBU[0052] Terraform already installed at:/opt/homebrew/bin/terraform
DEBU[0052] initializing Terraform in ./zia
DEBU[0053] reading Terraform schema for zia provider
DEBU[0053] ps.Schemas:map[registry.terraform.io/zscaler/zia:0x140001b4000]
DEBU[0053] Terraform already installed at:/opt/homebrew/bin/terraform
DEBU[0053] initializing Terraform in ./zia
DEBU[0053] reading Terraform schema for zia provider
DEBU[0053] ps.Schemas:map[registry.terraform.io/zscaler/zia:0x140000d2180]
DEBU[0053] beginning to read and build zia_forwarding_control_zpa_gateway resources
DEBU[0053] got unknown attribute configuration: key description, value <nil>, value type <nil>
DEBU[0053] got unknown attribute configuration: key gateway_id, value <nil>, value type <nil>
terraform import zia_forwarding_control_zpa_gateway.resource_zia_forwarding_control_zpa_gateway_3002413 3002413
INFO[0053] [ERROR] error while running import:exit status 1

Error: Missing required argument

The argument "password" is required, but was not set.

Error: Missing required argument

The argument "username" is required, but was not set.

Error: Missing required argument

The argument "zia_cloud" is required, but was not set.

Error: Missing required argument

The argument "api_key" is required, but was not set.

It does create several valid TF files though:
zia ls -a
.                                            zia_dlp_engines.tf                           zia_sandbox_behavioral_analysis.tf
..                                           zia_dlp_notification_templates.tf            zia_security_settings.tf
.terraform                                   zia_dlp_web_rules.tf                         zia_traffic_forwarding_vpn_credentials.tf
.terraform.lock.hcl                          zia_firewall_filtering_destination_groups.tf zia_url_categories.tf
zia-provider.tf                              zia_firewall_filtering_rule.tf               zia_url_filtering_rules.tf
zia_admin_users.tf                           zia_forwarding_control_rule.tf               zia_user_management.tf
zia_auth_settings_urls.tf                    zia_forwarding_control_zpa_gateway.tf

All which have actual content and resources in them.
Also note that the documentations do not give a specific list of variables to use in the config file, the environment variables are the the config entries are likely different (as they are for ZPA)
Steps to reproduce

create a YAML variable file
run zscaler-terraformer  -c ./.zscaler-terraformer.yaml import --resources="zia" --verbose

References
No response

Issue has been address in the latest v1.3.0 version.
Zscaler DevRel


[hi] Localize Kubernetes for Hindi

Localize Kubernetes in the glossary for Hindi
https://glossary.cncf.io/kubernetes/

Please assign this issue to me I have raised the PR

@kumarankit999 is there any need of improvement

Hey @ARYANis0001 have you raised any PR against this issue?

Yes I raised it But @aj11anuj  told me that PR for this issue is already raised by someone

can you mention that PR!

Thank you for your willingness to help us in localizing effort. But i want to let you know that this is a duplicate PR, we already have https://github.com/cncf/glossary/pull/1615. So, we cannot accept this one. Make sure there is no open Issue/PR for the content that you want to localize, otherwise your efforts won't be worth it. But don't get disheartened as you can help us in localizing other terms, for which a PR is not raised yet :)

Closing as this has already been merged


An error occurred during JWT validiation. The JWT is expired. Therefore please check your local system clock.

An error occurred during JWT validiation. The JWT is expired. Therefore please check your local system clock.
Getting Error

These GitHub issues are to resolve issues (i.e., problems/errors) with the tutorials. Your question seems more general and likely
would get more visibility -- and a better answer -- in the SAP Community's Questions & Answers. You can ask your question at:
https://answers.sap.com/index.html


Theming issue on keyboard shortcuts page

Beautiful themes, thank you!
I noticed that there is an issue with the keyboard shortcuts page (File -> Preferences -> Keyboard Shortcuts in the menu or Preferences: Open Keyboard Shortcuts from the command palette):

(The screenshot was taken with version 6334a87b8b8e02a16e8498773653b2ca42555db0 and the Warm & Serene variant, but the issue persists with the other variants as well.)

Thanks, @TheLastZombie, for reporting the issue. I've just released the new version (1.0.4) with the fixed rows. It should be available in the VS Code as well.


ENG-2402 add doc links to email and slack connection dialog

Describe your changes and why you are making these changes
This PR adds doc links to email / slack connection dialog. We also added doc links to internal data structure such that it's easily to enable for other integrations. The link opens the doc in new tab such that the user don't lost the current session while clicking it.
Related issue number (if any)
ENG-2402
Loom demo (if any)

Checklist before requesting a review

[ ] I have created a descriptive PR title. The PR title should complete the sentence "This PR...".
[ ] I have performed a self-review of my code.
[ ] I have included a small demo of the changes. For the UI, this would be a screenshot or a Loom video.
[ ] If this is a new feature, I have added unit tests and integration tests.
[ ] I have run the integration tests locally and they are passing.
[ ] I have run the linter script locally (See python3 scripts/run_linters.py -h for usage).
[ ] All features on the UI continue to work correctly.
[ ] Added one of the following CI labels:

run_integration_test: Runs integration tests
skip_integration_test: Skips integration tests (Should be used when changes are ONLY documentation/UI)

I would rewrite the content to be:

To learn more about how to set up , see our documentation.

Code looks good, agree with @vsreekanti here on the wording.


isolate path failures

I had a single ingress with multiple paths where one of the paths was misconfigured (service was ClusterIP). This one path sabotaged the creation of the entire ALB (couldn't add targets to targetgroup). Ideally, I'd expect the rest of the paths to provision correctly, and just this misconfigured path to fail.

@itaysk
Hi, it's hard to isolate paths since the order also matters. suppose ingress rule below:
/path/critical: serviceA
/path/*: serviceB

If serviceA is unavailable, the behavior changes. (i.e. /path/critical goes to serviceB instead of serviceA).
Is this isolate path failure a real problem? Since you can always get error message on the controller and ingress if anything wrong.
BTW, you can add an "-v=1" flag to the controller yaml, so that whenever you fixed the problem, it will output a "Successfully Reconciled" message.

@mazamats
Hi, the root cause of your problem should be others. Since even your pods have no health endpoints, the ALB will be fine, as long as your service Object exists.
The "failed to reconcile target groups due to failure to load serviceAnnotation due to no object matching key ***" in local store" error typically happens when we get the notification about ingress object before the service object(when you create them at the same time), and the retry mechanism handles it automatically.
Would you help add an "-v=1" flag to the controller yaml, with this flag it will output a "Successfully Reconciled" message if everything went nice. (otherwise, you may be confused about the outdated error message while everything is already fixed).

@M00nF1sh The retry mechanism is not enough, the issue is that the other paths are not having their target groups updated while the other service is still waiting for pods to be ready.

@mazamats
But what the root cause that make path2 don't work? the minimal requirement is you have the service object(path2's backend) in kubernetes(pods been not ready is fine and will work)

Like @itaysk stated, the service could be misconfigured causing the same issue. Missing backends should't be breaking the update of the entire ALB.

@mazamats
Will make these missing backend(or misconfigured backend) to be a default 404 page satisfies your use case?
We cannot simply ignore misconfigured path since path order matter., e.g. ```
/path/critical: serviceA
/path/*: serviceB

@M00nF1sh Can it just be routed to an empty target group? 404 works as well, but I think it makes sense to create the target group anyway.

@mazamats
empty backend makes sense too. I'll include this in my ingress group support PR.

Did this make it into https://github.com/kubernetes-sigs/aws-alb-ingress-controller/pull/1166?
/reopen
/remove-lifecycle rotten

@JacobHenner
As for rule conflicts, its partially resolved by V2.  A conflict rule will prevent the whole group to reconcile.
However, The handling of target registration to target groups(and reconcile) is handled by another process called endpointBinding. So existing target groups will still be updated on target changes(node/pod), even if rules cannot be updated (rules won't be modified too if there are rule conflicts). The only problem is the EndpointBinding currently is stored as in memory structures, so if the controller is died for some reason, it's gone(and conflicting rules will prevent new controller to reconstruct them in memory).
To solve it, one solution is store the endpoint binding as in-cluster Custom Resource, but it will require user to install such CRD when installing our controller. (however, it also offers benefits like only use that feature to update target groups without using ALB,  some customers can run their whole stack in EC2 while using endpointBinding to update targets for one of their targetGroup).
BTW, the best place to avoid conflicting rules is turn the controller itself into a validation/mutation webhook, which checks the rules and reject changes if there are conflicts 🤣


Return from page.evaluate within a callback

I am trying to return from the page.evaluate function within a callback. The setup is like this. Any idea how I can return within a callback?
page.evaluate(function(images){
   window.EVENT.on('SOME ASYNC EVENT',  function(d, i){
      //Do something and then return to the "RETURN CALLBACK"
      var data = "SOME DATA";

   });
  return //DONT return here

},function(data){
  //RETURN CALLBACK
  console.log(data); //SOME DATA
});

Any idea how to do that?

I don't know if I would call this "perfect." It works, but it results in messy code like this:
page.set('onCallback', function (data) {
    switch(data) {
        case 1:
            one();
            break;
        case 2:
            two();
            break;
       // etc...
    }
});

page.evaluate(function () {
    doSomething(function () {
        window.callPhantom(1);
    });
});

Would be nice if there was an evaluateAsync method. It appears there is one in the phantomjs docs.


No transition animations, no back button.

Current Behavior

I was integrating react-navigation with redux, but there is no default ios sliding transition animations, no back button, no gestures. I don't think if this is because of redux integration, or is this the reason?
Here is my repo --> https://github.com/shubhnik/redux-react-navigation ( just npm install and run-ios needed)
Screencast showing the behavior( missing slide from right to left transition ):

Expected Behavior

default transition animation should play, back button should be there by default.

Your Environment
macOS Sierra ( v10.12.3 )

software
version

react-navigation
^1.0.0-beta.15

react-native
0.49.3

node
7.10.0

npm or yarn
4.2.0

Actually solved it, my mistake, I wasn't providing the previous state to getStateForAction as second parameter.


Simplify blackBox creation from browsing context

Omit "window". Location is its own global, always has been. (Just like document.)
Use location.href instead of location.toString. (Faster and more conventional.)

:octocat: Bump


TokenUpdateTransitionLogic refactoring

Purpose
This PR refactors the TokenUpdateTransitionLogic
Addresses: #368
Primary goals of the refactor:

Replacement of the legacy 'HederaTokenStore' and 'HederaLedger";
Aligning the implementation of the transition logic with the new flow of translating gRPC object to model 'Account' and 'Token' objects;
Utilizing the ValidationUtils's validateTrue() and validateFalse() methods in order to throw InvalidTransactionException with correspondent response codes;

Secondary goals of the refactor:

Breaking the implementation logic into separate methods;
Self-documenting the code with descriptive method names

Notes

At the time of this pull request the complete removal of the legacy 'HederaTokenStore' and 'HederaLedger" was not achieved due to the fact, that the ledger.doTokenTransfer() and legacyStore.changeOwnerWildCard() do not have their analogy in the new implementation

The TokenUpdateTransitionLogic is not fully refactored - the new logic of persistence of the mutated objects is not implemented;

The unit tests are not being refactored;

The new implementation is not being verified by passing end-to-end tests.

Here you can find a Notion page with notes related to the refactored implementation of the TokenUpdateTransitionLogic.
The notes mainly focus on the explanation of why certain suggestions break the E2E tests.
They also contain suggestions for implementing some of the suggestions (for example, the suggestion to avoid passing the transaction body to the token.update() method.


Login flow - first commit

Codecov Report

Merging #1009 into login-flow will increase coverage by 1.14%.
The diff coverage is 59.91%.

@@              Coverage Diff               @@
##           login-flow    #1009      +/-   ##
==============================================
+ Coverage       40.74%   41.89%   +1.14%
==============================================
  Files              28       28
  Lines            3097     3268     +171
  Branches          514      534      +20
==============================================
+ Hits             1262     1369     +107
- Misses           1716     1770      +54
- Partials          119      129      +10

Impacted Files
Coverage Δ

instabot/bot/bot.py
74.93% <ø> (+0.25%)
:arrow_up:

instabot/bot/bot_get.py
61.56% <0%> (ø)
:arrow_up:

instabot/api/devices.py
100% <100%> (ø)
:arrow_up:

instabot/api/config.py
100% <100%> (ø)
:arrow_up:

instabot/api/api.py
49.73% <59.47%> (+2.7%)
: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 0693672...cba7dad. Read the comment docs.


issue: jsapi-resources/esm-samples/jsapi-angular-cli/

Try to compile project jsapi-angular-cli

npm start

Got Error:
The Angular Compiler requires TypeScript >=4.2.3 and <4.3.0 but 4.3.2 was found instead.

@forrestlin100 you'll need to downgrade your typescript, for example:
npm uninstall typescript
npm i --save-dev<EMAIL_ADDRESS>

Got error when do "npm uninstall typescript"
PS C:\Projects\jsapi-angular-cli> npm uninstall typescript
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/jasmine-core
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/karma-jasmine-html-reporter
npm ERR!   dev<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\parefl1\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR!      C:\Users\parefl1\AppData\Local\npm-cache_logs\2021-05-27T19_53_13_335Z-debug.log

Hi @forrestlin100 the most likely cause of the dependency tree errors are npm 7 bugs. It's not an issue with the ArcGIS JS API or the sample code. Note that this repo was built for npm 6 (latest). The Angular CLI team recently considered not allowing npm 7 support.
Try using npm install --legacy-peer-deps, reference:

https://github.com/angular/angular-cli/issues/19957#issuecomment-774400406
https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages

As a last resort, you could downgrade to npm 6 (latest).

It is compiled successfully with npm 6.14.13.
Is it working with @ng-bootstrap/ng-bootstrap?

Good deal! it sounds like you can close this issue.

Is this version (Angular 12) working with @ng-bootstrap/ng-bootstrap?

We don't specifically test with those widgets. We try to be platform agnostic.


Error: Cannot find module 'mout/lang'

Please, change the mout version dependency in package.json:
  "dependencies": {
    ...
    "mout": "^1.0.0",
    ...
  }

The new  mout 1.2.0 is incompatible with this module, but not mout 1.1.0
The dependency change I propose is:
  "dependencies": {
    ...
    "mout": "~1.1.0",
    ...
  }

This solves the problem:
Error: Cannot find module 'mout/lang'
Require stack:
- /Users/user/myproject/node_modules/bower-config/lib/Config.js

I have the same issue, I made the change to the bower-config package.json, but  I cannot make it work.

Add this in your package.json:
"dependencies": {
    ...
    "mout": "~1.1.0",
    ...
  }

Remove the package-lock.json and the node_modules directory. Run "npm install"
It solves the problem.

Thanks, it worked!

Finally it's solved in mout 1.2.2.


Update links presentation in publishing API presenters

Add a '#links' method to each presenter, replacing the '#filter_links'
convention. This:

allows for flexibility in determining how links are presented,
decoupling this behaviour from the implementation in
PublishingApiPresenters::LinksPresenter.
makes it a little clearer and more obvious how links are set in a
given presenter.

Taking this approach allows the LinksPresenter to be used as a sensible
default but permits, for example - setting multiple links in the links
hash based on several content IDs retrieved from the publishing API in a
single network call. This specific use case will be required in a
followup commit that changes how Edition links are presented.

:+1: :100:


Composer managed plugins (and in the future maybe apps) are updatable in the extension manager

PHP Version
8.1
Shopware Version
<IP_ADDRESS>
Expected behaviour
The button to update composer managed plugins should not be available and trying an update using the API should fail.
It seems that the button is always visible but sometimes at least the API failed but not always which resulted in a different version being placed in custom/plugins but the plugin in the vendor directory is not gone this way.
Actual behaviour
see expected behavior
How to reproduce
see expected behavior

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-37869.
[created from NEXT-37869, comment 488523]


Show blockchain transaction progress for "ETH Transfer"

User Story
As Chris I want to have a way of precisely following the progress when settling a channel.
Split from issue #1798
Acceptance criteria
Tasks

Housekeeping. Closing the issue as we won't do this soon.


How to receive OTP code

Hi all,
We are doing a UI test for our app. We need to send OTP by SMS. How can we do it on AWS device farm? How do we know the phone number to send it and get OTP code?
Thanks
Hieu

DeviceFarm does not support OTP code.


styled-components' context doesn't work

💬 Questions and Help
When I wrap <Component /> with a Provider <ThemeProvider theme={theme} > in _app and then try to consume this theme or provider value it returns undefined instead of the provider value.
Please help, I have been 2 days debuging to find the issue and there is no luck
home.test.jsx
it('should renders home page', async () => {
    const { render} = await getPage({
         route: '/home',
          useApp: true
    });
    render();
    expect(screen.getByText('home'))
    expect(screen.getByText('child'))
});

_app.js
import React, {useContext} from 'react';
import styled, { ThemeProvider, ThemeContext } from 'styled-components';
import ThemJson from "../theme";

const StyledContainer = styled.div`
    background-color: ${props => {
        console.log("PROPS IN STYLED COMPONENTS", props.theme);  // output is correct
        return props.theme.color.primary;
    }
};
`
const AppChild = () => {
    const theme = useContext(ThemeContext);
    console.log(theme) // Output correct
    return (<StyledContainer>home</StyledContainer>);
};

const MyApp = ({ Component }) => {
  return (
      <ThemeProvider theme={ThemJson}>
         <AppChild />
         <Component />
    </ThemeProvider>
  );
};
export default MyApp

home.jsx
import React, {useContext} from 'react';
import styled, {ThemeContext} from 'styled-components';

export const StyledContainer = styled.div`
    background-color: ${props => {
        console.log("PROPS IN STYLED COMPONENTS", props.theme); // ERROR can't red property theme of undefined
        return props.theme.color.primary;
    }
};
`

function Home(props) {
    const theme = useContext(ThemeContext);
    console.log(theme) // Wrong!! // theme is undefined
    return (
        <StyledContainer>
            child
        </StyledContainer>
    );
};

export default Home;

theme.json
{
    "color": {
        "primary": "red"
    }
}

Hey @Doaa-Ismael 👋
Could you try adding the following option to getPage call:
nonIsolatedModules: ['styled-components']
Let me know if that doesn't work for you

Hey @Doaa-Ismael 👋
Could you try adding the following option to getPage call:
nonIsolatedModules: ['styled-components']

Let me know if that doesn't work for you.

It didn't :(
I tried to use wrapper option too to wrap components but it didn't work as well

Hi @Doaa-Ismael,
since React context relies on modules identity, you'd need to make sure that:

styled-components is listed in nonIsolatedModules option
your local jest is patched as described in docs

Please, let us know if it works. 👀

@toomuchdesign
Yes I patched jest-runtime, and I tried nonIsolatedModules option but there is no luck so far :( ,
any other suggestions?

@toomuchdesign I was just trying to make this work locally and I failed. I think its clear why the theme is undefined in "server" context if styled-components is not listed in nonIsolatedModules option.
However if it's listed in nonIsolatedModules there will be a runtime error during SSR rendering. The problem is what if we list a module inside nonIsolatedModules it means that module becomes a client side module and can't be "isolated". This is problematic because then it wont work correctly in "server" context due to such expressions: https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/constants.js#L15
As I see it its currently not possible to test applications that use styled-components at all. This is not good as this represents a big number of users.
While I don't see short term solutions to our "client" vs "server" execution context (e.g. rendering in separate processes), I think this (and probably other use cases) would be possible if we had a ssr: boolean option. If that option is disabled:
ssr: false

We wouldn't do the server render + hydrate, but just do the client side rendering. I quickly tried that locally and the styled-components example seemed to work.

I get the issue now, thanks @Meemaw!
Well, this is definitely something we were waiting to show up. Let's take some time to elaborate a solution. We could definitely skip the ssr. Even though I wouldn't jump for joy :)

@Meemaw @toomuchdesign
I am new in NextJs ... could you please explain to me why <AppChild /> renders correctly but <Component /> don't? as both uses styled components?
@Meemaw what changes I should make to skip server render + hydrate ? If it will work I can fork and use my version for now.

@Doaa-Ismael, as far I can see, this is not related to Next.js, but to how next-page-tester tries to emulate Next.js' server and client rendering (without a server).

@Meemaw I'd like to try and see how far we can get by gathering all the initial ssr operations in a single go. Which also means getting rid of simultaneous client/server version of required files.
Can you see any sense in this approach? Could it mitigate this issue?

@toomuchdesign I'm not sure such approach would solve this issue. Because we are in 1 process trying to emulate 2 processes we are facing the multiple React instances error. We mitigated that by introducing nonIsolatedModules, but that means those modules are tied to the "client" context and can't be used in "server" context if they are doing some module level isServer checks and executing logic based on that.
I think we would still face the same problem even if we did whole server flow separately in one go. I might be wrong and perhaps you have some idea to make it work.

@Meemaw I'm not sure neither, but I can't see how ssr context could blow up if we were able to render in "server" mode in a single go and return a string, immediately. Once we have the string we only have to deal with client env, haven't we? 🤔

If I understand our approach correctly it will blow up if we list styled-components  in nonIsolatedModules (binding it to a current context). If we don't do that the Context wont work correctly and will be undefined at runtime.

@toomuchdesign  in case these changes don't work, I still think it's worth the effort. Those changes would enable:

simplify code
supper easy way to turn ssr for performance reasons (I would like to see some benchmarks on the difference it makes, but I expect it would be significant for large projects with many tests)
super easy to implement SSR rendering in a separate process (if we decide to do so)

If we don't do that the Context wont work correctly and will be undefined at runtime.

I'm trying to find out what could blow up. I'm considering the option of ssr'ing in a single go in the same process as we do now, and maybe getting rid of nonIsolatedModules.
I agree the project could benefit from such an approach: doubled imported files were super funny to see in action but I admit they are a nasty workaround :)

Hi @Doaa-Ismael,
we've just released v0.20.0 which should address the issue you described.
Would you mind updating and give us feedback? Thanks!

I upgraded to v0.20.0 and am still encountering the same issue. The moment I use any styles through styled-components, the tests break with an error message. This is regardless of whether I wrap them in a theme wrapper or not. This happens with both patched and unpatched jest.
# Error message
    The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/en/configuration#testenvironment-string.
    Consider using the "jsdom" test environment.

    ReferenceError: document is not defined

       8 |       nonIsolatedModules: ['styled-components']
       9 |     })
    > 10 |     render()
         |     ^
      11 |     // expect(screen.getByText('hi')).toBeInTheDocument()
      12 |   })
      13 | })

      at V (node_modules/styled-components/src/constants.js:4:33)
      at new names (node_modules/styled-components/src/constants.js:4:33)
      at e.id [as getTag] (node_modules/styled-components/src/sheet/Sheet.js:44:11)
      at e.t.insertRules (node_modules/styled-components/src/sheet/Sheet.js:97:31)
      at e.id [as generateAndInjectStyles] (node_modules/styled-components/src/utils/isStaticRules.js:6:54)
      at id (node_modules/styled-components/src/models/Keyframes.js:20:51)
      at id (node_modules/styled-components/src/models/Keyframes.js:20:51)
      at Object.pages__H1 [as render] (node_modules/styled-components/src/models/Keyframes.js:20:51)
      at ReactDOMServerRenderer.render (node_modules/react-dom/cjs/react-dom-server.node.development.js:3872:44)
      at ReactDOMServerRenderer.read (node_modules/react-dom/cjs/react-dom-server.node.development.js:3690:29)
      at Object.renderToString (node_modules/react-dom/cjs/react-dom-server.node.development.js:4298:27)
      at node_modules/next-page-tester/dist/makeRenderMethods.js:16:75
      at Object.executeAsIfOnServerSync (node_modules/next-page-tester/dist/server.js:39:16)
      at serverRenderToString (node_modules/next-page-tester/dist/makeRenderMethods.js:16:28)
      at serverRender (node_modules/next-page-tester/dist/makeRenderMethods.js:21:26)
      at render (node_modules/next-page-tester/dist/makeRenderMethods.js:39:30)
      at Object.<anonymous> (__tests__/Home.test.js:10:5)

For example:
/* pages/index.js */
// Passing
import styled from 'styled-components'
const H1 = styled('h1')``

// Failing
import styled from 'styled-components'
const H1 = styled('h1')`
  color: blue;
`

Hi @neighlyd-alo, thanks for reporting, would mind setting up a reproduction repository?

I have a repository with this exact problem.
https://github.com/jefferson-william/next-boilerplate/issues/1#issue-812913650

v0.21.0 has been published. @Doaa-Ismael is this issue still relevant?

@jefferson-william is this issue still relevant?

I have a repository with this exact problem.
jefferson-william/next-boilerplate#1 (comment)

Using Emotion, I get the same output.

@ThePicoNerd I have a feeling you need to patch-jest; or have you done that already?

Should have read the docs ... 🤦 Sorry for taking up your time and thank you for an amazing package, not to mention the fast response!


Live Share: can't save files when a Blazor project is in the solution

Describe what happened:
When multiple people are in a live share session, a remote user will make a change in a file and save the change.  On each remote user's computer, the file will look saved but on the hosting computer, the unsaved asterisk will still be beside the name. When the hosting user tries to save the file, it opens a file save dialog box instead of saving the file.  If you choose the file to save it to, it fails saying the Live Share has the file open still.  None of the changes are actually saved to the file.
What was your system configuration?
Product and Version [VS/VSCode]:  Visual Studio Community, Version 16.8.5
OS Version[macOS/Windows]: Windows 10 Pro
Live Share Extension Version:  Live Share 1.0.3713.0
Target Platform or Language [e.g. Node.js]: Blazor WebAssembly SDK 5.0
Steps to Reproduce / Scenario:

create a default Blazor Webassembly project
Invite people to the Live Share
Get a remote person to make any change to a .cs file and save the changes
See as described above

We’re not able to prioritize this issue over the other higher-impact issues we receive every week, based on the votes and comments from others in the community and our understanding of the issue. However, rest assured that we love your input. If you feel it deserves to stay open, then clarify your use case and contact us to let us know how severe it is for you.

That's unfortunate.  We don't have a use case for your product if we can't
save files.  Please let us know when it is safe to use your product again.
On Tue, Mar 28, 2023 at 9:05 PM Derek Bekoe @.***>
wrote:

We’re not able to prioritize this issue over the other higher-impact
issues we receive every week, based on the votes and comments from others
in the community and our understanding of the issue. However, rest assured
that we love your input. If you feel it deserves to stay open, then clarify
your use case and contact us to let us know how severe it is for you.
—
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/live-share/issues/4106#issuecomment-1487800334,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABDECP4BST22EJW2O4H6YHLW6ODE5ANCNFSM4XNS26CA
.
You are receiving this because you authored the thread.Message ID:
@.***>


server: add idle event sources

fixes #83

Coverage decreased (-1.5%) to 50.423% when pulling 530d193628c719936b7a37d1979070d1ab9aa33f on vberger:master into 8dace74b20a48b43f92d9fee095fe3e838abb8e4 on Smithay:master.

Coverage increased (+0.07%) to 51.981% when pulling 35e4f7877c710351cc8c93f2e2ab3d92935cd707 on vberger:master into 8dace74b20a48b43f92d9fee095fe3e838abb8e4 on Smithay:master.

Coverage increased (+0.07%) to 51.981% when pulling 35e4f7877c710351cc8c93f2e2ab3d92935cd707 on vberger:master into 8dace74b20a48b43f92d9fee095fe3e838abb8e4 on Smithay:master.


Replacement rules in requests with Content-Type: multipart/form-data

I found two issues in requests with Content-Type: multipart/form-data.
In order to better reproduce these issues, I'm sending this base request:
POST / HTTP/1.1
Host: www.google.com
Connection: close
Content-Length: 177
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.0 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary0Bmuvd5DrV6Q690A
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.8

------WebKitFormBoundary0Bmuvd5DrV6Q690A
Content-Disposition: form-data; name="csrf_token"

20F4C2E40C658A7CF60080C4342227DD
------WebKitFormBoundary0Bmuvd5DrV6Q690A

1 - If you select as a replacement rule the following configuration:
Type: Request Param Value
Match: 20F4C2E40C658A7CF60080C4342227DD
Replace: aaa
Which: Replace First
Regex Match: Disabled
and send the previous request to AutoRepeater, you will see this modified request:
POST / HTTP/1.1
Host: www.google.com
Connection: close
Content-Length: 277
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.0 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary0Bmuvd5DrV6Q690A
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.8

------WebKitFormBoundary0Bmuvd5DrV6Q690A
Content-Disposition: form-data; name="csrf_token"

20F4C2E40C658A7CF60080C4342227DD
------WebKitFormBoundary0Bmuvd5DrV6Q690A
Content-Disposition: form-data; name="csrf_token"

aaa
------WebKitFormBoundary0Bmuvd5DrV6Q690A

so instead of replacing the value in the parameter csrf_token with aaa, it is appending an additional parameter. Ideally, the expected request should be
POST / HTTP/1.1
Host: www.google.com
Connection: close
Content-Length: 277
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.0 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary0Bmuvd5DrV6Q690A
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.8

------WebKitFormBoundary0Bmuvd5DrV6Q690A
Content-Disposition: form-data; name="csrf_token"

aaa
------WebKitFormBoundary0Bmuvd5DrV6Q690A

2 - If the request includes the following parameter:
------WebKitFormBoundary0Bmuvd5DrV6Q690A
Content-Disposition: form-data; name="photo_file"; filename=""
Content-Type: application/octet-stream

------WebKitFormBoundary0Bmuvd5DrV6Q690A

the request is not received correctly. For example:
POST / HTTP/1.1
Host: www.google.com
Connection: close
Content-Length: 277
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.0 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary0Bmuvd5DrV6Q690A
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.8

------WebKitFormBoundary0Bmuvd5DrV6Q690A
Content-Disposition: form-data; name="csrf_token"

20F4C2E40C658A7CF60080C4342227DD
------WebKitFormBoundary0Bmuvd5DrV6Q690A
Content-Disposition: form-data; name="photo_file"; filename=""
Content-Type: application/octet-stream

------WebKitFormBoundary0Bmuvd5DrV6Q690A

will output this error:
java.lang.UnsupportedOperationException: Action is not supported for this parameter type
	at burp.sve.a(Unknown Source)
	at burp.sve.removeParameter(Unknown Source)
	at burp.Replacement.updateBurpParamName(Replacement.java:148)
	at burp.Replacement.updateRequestParamValue(Replacement.java:265)
	at burp.Replacement.performReplacement(Replacement.java:331)
	at burp.AutoRepeater.lambda$modifyAndSendRequestAndLog$21(AutoRepeater.java:1202)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Thanks for the new issue. Hopefully I'll have time to look into this tomorrow during the day.

@rsmith31415 So I've began looking into this and unfortunately Burp's Extender API doesn't cleanly handle multipart form parameters so I'm going to need to implement a good bit of logic to handle these.

@m00r3 Interesting. I'm sure there are parsers for multipart/form-data available in java. Hopefully, they provide enough flexibility to construct a new request in the more difficult case of removing a parameter completely.

@rsmith31415  I've done a fair bit of research and it seems like the only reasonable way to fix this is to implement some code that does multipart form handling myself. I'm assuming implementing this will take a bit of time so in the interim I'm going to fix the exception that gets thrown and fix the bug in the regular full body string replace where bytes without valid characters get stomped which should allow AutoRepeater to still do the performs the same actions as the replace parameter functionality.

@m00r3 Do you think that's the way Burp Suite deals with every type of content type? It looks like a lot of work and it is very likely this specific content type won't be an isolated case.

@rsmith31415 I'm not actually sure how Burp Suite manages it internally. They may have some functionality implemented that's not exposed through the Burp Extender API. In the interim while I implement parsing multipart forms the "replace string" replacement should cover any cases where the param replacement wouldn't work.

I'm marking this "won't fix" for the time being because the "Request String" replacement largely covers the functionality this bug fix would provide. I'm hoping that either Burp's API just automatically fixes this issue or that I can find a better HTTP parser to replacement Burp's API with.


libvirt-e2e: create auth.json file

The auth.json file is not provisioned for the authenticated registry tests in the libvirt test suite. This adds the file and adjusts the kustomize configuration to use it.

ok, that seems to fix the libvirt tests


Marker

Your work is pretty cool, and I want to ask if your model is generated in real time and what method is used?

Hi @kaiwu119!!!
Thank you for your time.
This work uses obj data of a 3D environment that I prepared in advance.
And, I used the Spatial Mapping API in HoloLens2 for spatial mapping.
For more details, please refer to https://docs.microsoft.com/ja-jp/windows/mixed-reality/design/spatial-mapping
If you like, please check out the other designs I've done : https://github.com/Howellm/AR_HoloLens2_Stereo

Hi~
Thanks for your answer, I will pay attention to your other work.


Export package that was moved

@bratseth or @henrhoi or anyone, please merge to un-break controller.

Thanks!


Argument error for Google Apps (again/still)

See also: https://github.com/intridea/omniauth/issues/490
I have the exact same problem, with the line:
config.omniauth :google_apps, OpenID::Store::Filesystem.new('/tmp'), :domain => 'my-domain.com'
which has worked before, now obviously causing some kind of problem.
I was NOT able to fix it by reverting to a previous version.
Error given: Uncaught exception: Received wrong number of arguments. ["google_apps"]

First of all, I'm not sure there is a 1.0-compatible Google Apps strategy. Secondly, if there is it will likely use the new OpenID initialization syntax which is:
provider :google_apps, :store => OpenID::Store::Filesystem.new('/tmp'), :domain => 'my-domain.com'

Thirdly, specific strategy issues should now be reported on the GitHub project of the strategy, not the general OmniAuth project. Thanks!


[CI] Testing script.

SparkUCX CI testing script. For now, it assumes:

UCX is built and installed

SparkUCX jar file also provided

All other parameters are documented. Examples to run:

1 physical instance 3 spark processes:
$NODELIST="jazz30" PROCESSES_PER_INSTANCE=3  SPARK_LOCAL_DIRS=/scrap/hadoop_tmp/spark ./test.sh

3 instances 1 spark process per instance:
NODELIST="jazz30 jazz31 jazz32" SPARK_LOCAL_DIRS=/scrap/hadoop_tmp/spark  ./test.sh

@petro-rudenko are you going to use it for CI testing? Can we prepare a Docker image and put all configuration stuff inside? Dockerhub images can be pulled from AZP pipeline.

Something weird, it closed PR, had to rebase commits.


Add 'sphinx.ext.coverage' to the 'tox -e docs' build.

See:  #714
Note that this PR does not auto-close the issue, as I have been unable to verify that the extension can be configured to generate the error we would want for missing coverage.

What does this generate? Shouldn't it be added to .gitignore? Shouldn't we inspect that output with a script?

What does this generate? Shouldn't it be added to .gitignore?

It generates two ReST reports in docs/_build/coverage, which are therefore already ignored.  It also generates a pickle file there.

Shouldn't we inspect that output with a script?

The ReST reports are probably not worth parsing.  Maybe we could arrange to interrogate the pickle file.

$ .tox/docs/bin/python
Python 2.7.9 (default, Dec 16 2014, 16:59:02)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> with open('docs/_build/coverage/undoc.pickle', 'rb') as f:
...     pickled = f.read()
...
>>> from pickle import loads
>>> xxx = loads(pickled)
>>> from pprint import pprint as pp
>>> pp(xxx)
({u'gcloud.bigquery.client': {'classes': {}, 'funcs': []},
  u'gcloud.bigquery.connection': {'classes': {}, 'funcs': []},
  u'gcloud.bigquery.dataset': {'classes': {}, 'funcs': []},
  u'gcloud.bigquery.job': {'classes': {}, 'funcs': []},
  u'gcloud.bigquery.table': {'classes': {}, 'funcs': []},
  u'gcloud.client': {'classes': {}, 'funcs': []},
  u'gcloud.connection': {'classes': {}, 'funcs': []},
  u'gcloud.credentials': {'classes': {}, 'funcs': []},
  u'gcloud.datastore.batch': {'classes': {}, 'funcs': []},
  u'gcloud.datastore.client': {'classes': {}, 'funcs': []},
  u'gcloud.datastore.connection': {'classes': {}, 'funcs': []},
  u'gcloud.datastore.entity': {'classes': {}, 'funcs': []},
  u'gcloud.datastore.key': {'classes': {}, 'funcs': []},
  u'gcloud.datastore.query': {'classes': {}, 'funcs': []},
  u'gcloud.datastore.transaction': {'classes': {}, 'funcs': []},
  u'gcloud.exceptions': {'classes': {}, 'funcs': []},
  u'gcloud.pubsub.client': {'classes': {}, 'funcs': []},
  u'gcloud.pubsub.connection': {'classes': {}, 'funcs': []},
  u'gcloud.pubsub.topic': {'classes': {}, 'funcs': []},
  u'gcloud.resource_manager.client': {'classes': {}, 'funcs': []},
  u'gcloud.resource_manager.connection': {'classes': {}, 'funcs': []},
  u'gcloud.resource_manager.project': {'classes': {}, 'funcs': []},
  u'gcloud.storage.acl': {'classes': {}, 'funcs': []},
  u'gcloud.storage.blob': {'classes': {}, 'funcs': []},
  u'gcloud.storage.bucket': {'classes': {}, 'funcs': []},
  u'gcloud.storage.client': {'classes': {}, 'funcs': []},
  u'gcloud.storage.connection': {'classes': {}, 'funcs': []}},
 {})

Seems useless?

@tseaver I don't think Sphinx coverage is worth using.
I ran it with a new module that didn't have a corresponding RST file and also with new code in an existing module.
It failed to say anything at all about either of these cases.

commit 65bc23ab9f3637e273c753b3dad7c8edf0eea23a
Author: Danny Hermes<EMAIL_ADDRESS>Date:   Mon Sep 28 18:33:12 2015 -0700

    Fake commit.

diff --git a/f.py b/f.py
new file mode 100755
index 0000000..61a71a8
--- /dev/null
+++ b/f.py
@@ -0,0 +1,12 @@
+#!.tox/docs/bin/python
+
+import pickle
+import pprint
+import sys
+
+pprint.pprint(sys.executable)
+
+with open('docs/_build/coverage/undoc.pickle', 'rb') as fh:
+    contents = pickle.load(fh)
+
+pprint.pprint(contents)
diff --git a/gcloud/datastore/client.py b/gcloud/datastore/client.py
index b4e2dbb..deaa24a 100644
--- a/gcloud/datastore/client.py
+++ b/gcloud/datastore/client.py
@@ -460,3 +460,7 @@ class Client(_BaseClient):
         if 'namespace' not in kwargs:
             kwargs['namespace'] = self.namespace
         return Query(self, **kwargs)
+
+
+def something_not_done():
+    return 1337
diff --git a/gcloud/datastore/foo.py b/gcloud/datastore/foo.py
new file mode 100644
index 0000000..8d872f2
--- /dev/null
+++ b/gcloud/datastore/foo.py
@@ -0,0 +1,24 @@
+# Copyright 2014 Google Inc. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""Kool aid."""
+
+
+class NeverMore(object):
+
+    def frooty_pebbles(self):
+        return self
+
+
+def sleepaway_camp():
+    return 42

@tseaver ISTM we should axe this, since the output is useless


Container's Root Filesystem Has Read-Write Permission

@roytman
Description
It was observed that root filesystem inside containers has R/W permissions. This increases attack surface since the root filesystem can be tampered.
As a best practice it is advised to use read-only root filesystem inside containers.
Reference:
https://docs.datadoghq.com/security_platform/default_rules/cis-docker-1.2.0-5.12/
https://kubesec.io/basics/containers-securitycontext-readonlyrootfilesystem-true/
https://kubernetes.io/docs/concepts/policy/pod-security-policy/#volumes-and-file-systems
Below is the related screenshot:

Affected Container/Pod(s)
fybrik-manager
fybrik-operator-manager

Risk Assessment
An attacker can write exploit scripts or tamper the existing files in root filesystem.
Fix Recommendation

Use --read-only option. This prevents any writes to the containers root filesystem at container runtime and enforces the principle of immutable infrastructure.
In pod yaml set ReadOnlyRootFilesystem to true.

It will be resolved as part of https://github.com/fybrik/fybrik/issues/1482


Implement { global }

Rename "emoji" to "selector" – those aren't staying emojis :wink: (though we definitely need an opt-in "emoji mode"…)
Add { global }

NOTE: Haven't been able to actually test this in a project because linking locally isn't working for me. PLEASE TEST

Tested locally and it works fine. The injection code should probably be abstracted between this, ComponentStyle and the keyframe stuff, but that can come later.


Fix deprecation warning for Buffer constructor

(node:2681) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Issue fixed


Freeze Causal Mechanism for a Node?

This question is in the context of detecting distribution change. Suppose we have a graph like: Y->X, Z->X. Can the causal mechanism for X be frozen? That means we want to rule out the possibility of distribution change on X and only allow distribution change occurs on Y or Z.

@bloebp Yes, this will be very helpful. Look forward to see the code change!

Hey, a bit delayed, but we finally have this feature implemented: https://github.com/py-why/dowhy/commit/b4f80dcb2251a03aff4c816d7c6f6eb2aaf98e73
It now has a invariant_nodes parameter to indicate this.


I am so sad it's not use straight.

we I want use trec dataset to test ,it cant run ,and dataSet file cant find i have to said,it NOT friendly to me.I just want quickly iterator,IT waste my time.

Can you please share a link to the exact dataset which you would like us to add? We support the imdb dataset out of the box


asdf plugin for cue

Is your feature request related to a problem? Please describe.
asdf (very easy to type) is a software installation and version management tool for a variety of programming languages. it's similar to direnv which manages environment variables, but this applies to the binary executable(s) of a given language.
many languages have custom tools for this, but asdf works across many languages.
this is much trickier than just environment variables because the installs need to have custom folders and language-specific environment variables updated as well.
if go is installed through asdf, it actually gets installed into a _shims directory, and then go get ...cue installs into that shims directory and isn't always in your path or needs to be updated any time that go is installed.
also, i don't want end users to need to install go, to go get cue (needed for specific versions)
homebrew is the easiest way to install cue, but usually for a project we need everyone to be on the same version, and more importantly the same version as our servers which often have a lag in versioning to allow for stabilization after new releases and code reviews. whereas homebrew will try to keep cue always at the latest version.
Describe the solution you'd like
to be able to:
asdf plugin add https://cue-lang.org/asdf-cue  # or similar url
asdf install cue latest # e.g. 0.5.0
asdf global cue latest # use as latest as global environment default

# within a project,
asdf install cue-lang 0.4.3
asdf local cue-lang 0.4.3

# creates .tool-versions file which is shared in git and requires the specific version

Describe alternatives you've considered
described above, homebrew (but little flexibility), go get (but this is unstable/tied to go), manually installs (no thanks)
Additional context
this eases support and reduces bugs and keeps the whole team locked to the same version.
there's maybe overlap with cue.mod, but asdf is common and used for other tools and already part of our setup and workflow.

This already exists: https://github.com/asdf-community/asdf-cue

excellent @ghostsquad, i'll have to try it out, thanks!

this does work, but going to keep the ticket open, because cue needs to add a 'latest' tag to be fully compliant

I don't think CUE should have to apply the latest tag, GitHub already provides a way to signal which tag/release is the latest stable or a pre-release:
$ gh release list -R cue-lang/cue -L 5
TITLE           TYPE         TAG NAME        PUBLISHED
v0.5.0-beta.5   Pre-release  v0.5.0-beta.5   about 4 days ago
v0.5.0-beta.2   Pre-release  v0.5.0-beta.2   about 2 months ago
v0.5.0-beta.1   Pre-release  v0.5.0-beta.1   about 2 months ago
v0.5.0-alpha.1  Pre-release  v0.5.0-alpha.1  about 3 months ago
v0.4.3          Latest       v0.4.3          about 9 months ago

The latest stable version can be simply retrieved:
$ curl -s https://api.github.com/repos/cue-lang/cue/releases/latest | jq '.name'
"v0.4.3"

Seems like the plugin can use this to resolve the latest stable version?

Most asdf plugins honestly don't use a latest anyway. The point of asdf is to provide versioning (like a lock file) for tools. So simply returning all versions, sorted, with the most recent at the bottom is enough.


[Android] Issue with rendering conversation causes entire app to freeze and crash.

This is the first instnace ive been able to capture it happening. But an error rendering a photo, an error rendering past messages, or just an unknown render error like in this instance cause the keyboard to freeze and the app to crash.
Cant get error logs because app crashes and i have to restart the app and the logs disappear.
https://github.com/BlueBubblesApp/bluebubbles-app/assets/107290291/22b8c7b7-90bf-4928-b394-d2f18f5845f9

Yes! I've had this exact same issue, annoyingly often actually, and haven't figured out how to best report it yet. Of note, as long as you don't go into that specific thread, the app will work fine. I've managed to get around it sometimes by replying in notifications which still works (more wood to the fire that it's a render issue), but it's super annoying.
If I catch it happening to me again, I assume there may be a way to grab logs via ADB that could be usefuL?

Yes! I've had this exact same issue, annoyingly often actually, and haven't figured out how to best report it yet. Of note, as long as you don't go into that specific thread, the app will work fine. I've managed to get around it sometimes by replying in notifications which still works (more wood to the fire that it's a render issue), but it's super annoying.
If I catch it happening to me again, I assume there may be a way to grab logs via ADB that could be usefuL?

how do you grab logs via ADB? I figured out that if I send an .heic photo the app crashes while rendering more often so I think I can reproduce it.

I was actually able to reproduce it. but it only happened for a specific chat, and not all of them. @samir-a-ali @jawilson did you guys notice the same thing?

its happened with 3 chats, those chats happen to have a very high message count. maybe its crashes when trying to load/render all of them?

its happened with 3 chats, those chats happen to have a very high message count. maybe its crashes when trying to load/render all of them?

we dont render all the messages so idk why it would happen. by any chance, did you enable the scroll to last message option?

I do have this enabled yeah

I do have this enabled yeah

can you try disabling it and see if the issue persists :) I think that might be causing it cuz it just started freezing for me when i enabled it the other day

Will do
Samir A. Ali
New York Medical College
M.D. Candidate '24
On Thu, Jun 15, 2023, 11:27 AM Zach Shames @.***> wrote:

I do have this enabled yeah
can you try disabling it and see if the issue persists :) I think that
might be causing it cuz it just started freezing for me when i enabled it
the other day
—
Reply to this email directly, view it on GitHub
https://github.com/BlueBubblesApp/bluebubbles-app/issues/2494#issuecomment-1593289850,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZSR5MYN52XMGO233G77OCDXLMSXDANCNFSM6AAAAAAY4SXJVA
.
You are receiving this because you were mentioned.Message ID:
@.***>

will do

Have you noticed that disabling it fixes the crash? I have on my end.

Okay, I'm pretty sure I can say that disabling fixes the issue when it pops up. Interestingly, if I re-enable it before anything else happens in the conversation the issue no longer presents itself.

redid the logic for this, and it should no longer happen. will need testing once a new update comes out.


Provide isAlign to Navbar Dropdown

Thank you for this great project. It will be nice to have more options for the Navbar dropdown to allow aligning it either to right or left. I have a use case for having the dropdown as a child of a NavBarEnd. It currently projects beyond the viewport

Sorry for late answer. I'm unable for a moment (maybe one month) on working on this... If you want you can provide an example of the API for NavBar Dropdown and make a PR, or only with the first so anyone can jump on it :)


Use type hint for Iterator

from typing import Iterator

def f() -> Iterator[int]:
    yield from []

for x in f():
    x.

Here, intellisense doesn't understand that x is an int.
It seems that intellisense tries to type what is returned by yield:
def g() -> float:
    raise NotImplementedError

def f() -> Iterator[int]:
    yield g()

for x in f():
    x.

Here, x in considered as a float.

Please provide if you're are using Language server or jedi, i.e check python.jediEnabled in settings.
Also, please provide Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

Closing until further response


Whatsapp URL Should be URLEncoded

Now whatsapp It's giving an error "This link couldn´t be opened. Check the link and try again."
This is because the url now needs to be URLEncoded .

@victoryoalli  What have you tried so far ? maybe the message body might have some special characters which is why is not creating link maybe that's the issue ?

It happens when you use it from and iPhone, I haven't tried it using and Android device.
https://wa.me/?text=https://xochibotanicals.com/producto/crema-hidratante-para-manos-cacao/xochi
Check it out:
https://xochibotanicals.com/producto/crema-hidratante-para-manos-cacao
I modified the code and it works.
I will fork it and make a pull request if you want.

I checked that link and its working, Good Job.

@victoryoalli do you mind sharing what went wrong and how you fixed it?
@vipertecpro thanks for helping out on the issue!


Vulkan SC

Library
Vulkan SC
Project page
https://www.khronos.org/vulkansc/
Source repository
https://github.com/KhronosGroup/VulkanSC-Docs
Platforms
Windows x64
Description
Hello @Spasi,
I have been roped into a project that needs (wants) to run Vulkan SC inside of Java.
I know you are going to be changing gears to LWJGL 4 now that the latest LWJGL 3.3.2 is out, but I was wondering if you would consider adding VulkanSC bindings to LWJGL 3? (Or even LWJGL 4 if you are no longer going to do any releases to 3)
Until then we will probably move forward with regular vulkan for prototyping, but limiting our functions to be able to smoothly transition to SC.
Thanks,
Trevor

Hey @tlf30,
Supporting SC as completely separate bindings would be too much I think. Would you be OK with simply exposing whatever functions/tokens SC introduces over standard Vulkan? Afaict, most of everything else remains the same (except the unavailable functionality).

@Spasi Would that be introduced in a manner which makes the border between normal and SC very blurry? For instance, while writing code using normal Vulkan, the IDE would suggest SC tokens unavailable in normal Vulkan? This could be rather confusing.

@ws909 Yes.

@Spasi Then I am not in favour of this approach.
Another module isn't needed, but I prefer that the existing VK classes are not polluted. Can the new tokens be added to a VKSC class hierarchy? The lack of multi-inheritance requires these classes not to inherit from VK10.

I also agree. While they could be the same module, they would at least need to be completely separate classpaths with crossover.
There is a lot of functionality in regular vulkan that is not available in SC, and SC features not in regular. It would be very confusing if SC classes were mixed with regular classes. Complete seperation would be a requirement, even if in the same module.


Enabled task is not reloaded after updating it with HTTP PATCH request

Description
When I update the TICKscript of an enabled task using a HTTP PATCH request, the task is not automatically reloaded by Kapacitor. Running kapacitor show does however show the updated script. To make Kapacitor use the updated script, I either have to use kapacitor reload, or disable and re-enable the task using two separate PATCH requests.
This behavior seems unintuitive to me, and I haven't read about it in the documentation. Is this the intended behavior of updating a task?
Environment

Xubuntu 16.04.2 LTS (64-bit)
Docker version 17.05-0-ce, build 89658be
Running Docker image kapacitor:1.2
Kapacitor version 1.2.1 (git: master 4628bda2e3fbcc43df694707ec3f640f213cb0dc)

Test case

Create a new task with the following script: stream|from().database('testdb').measurement('test')|log().prefix('prefix1')
Make sure the task is enabled.
Insert a value into the measurement test of the database testdb.
Kapacitor should log the measurement with prefix prefix1.
Perform a PATCH request to change the script of the task to the following: stream|from().database('testdb').measurement('test')|log().prefix('prefix2'). Only the logging prefix is changed here.
Run kapacitor show with the ID of the task. It should show the newly updated script.
Insert a value, just like before.
Kapacitor should still log the measuremen with prefix prefix1.
Reload the task, either by using kapacitor reload or by using two PATCH requests that disable and re-enable the task.
Now Kapacitor should log the measurement with the new prefix prefix2.

I am running on the same issue here, with Kapacitor 1.3, my point is that if you're using the API, your only current option is to send a request to disable and another request to enable a task. It is unnecessary overhead.
My opinion is to either accept a reload_automatically parameter in the API or do it automatically, this algo goes for the command line.


Term sheet

Dear HyperDB gmbh,
We at Trendly VC are excited to offer you a seed investment of $5 million for your cutting-edge, buzzworthy, and undeniably innovative vector database technology. We are confident that this investment will take your company to the moon and beyond!
Below are the terms of our investment:
Valuation: $100 million pre-money valuation, $105 million post-money valuation.
Convertible note: This investment will be made in the form of a convertible note, which will convert into equity upon the company's next funding round or liquidity event, whichever occurs first.
Liquidation preference: Trendly VC will have a 2x liquidation preference over common stockholders in the event of a liquidation or sale of the company.
Board seat: Trendly VC will have the right to appoint one board member to hypoDB's board of directors.
Trendly VC hype package: As part of this investment, Trendly VC will provide hypeDB with a customized package of trendy buzzwords, including "synergy," "disruptive," "game-changing," and "unicorn potential." We believe these buzzwords will help hypedB attract additional investment and media attention.
We look forward to working with you and helping you ride the hype train to success!
Best regards,
Trendly VC

Make it $10M and you have a deal.

You also have to attend my annual Christmas Party (homemade eggnog!)

And hold the eggnog, I'm on the Longo diet and aiming to be the first human to break the 200yo barrier.

Ok, deal!


Sanitize folder input when getting a folder as a path

When getting a folder with a path, leading slash will cause an error - input needs to be sanitized.
Atm, input must be
pleasant ps get folder foo/bar -p
Should be acceptable as:
pleasant ps get folder /foo/bar -p

This is also applicable for the exists command

This is also applicable for the create command


improve: Change disconnect icon to poweroff

Hi,
Here is a litte proposition with a little PR,
i was really intrigued  by the choice of the "disconnect" icon, as semantic ui says, it was the "Ban" icon... which is not really what we want...
i tried the "sign-out" which is what feels more natural , but the look does not right to me :

so i tried the universally understood "power off", and seems better,
what do you think ?

Another question i had was about the reconnect icon; aside from the icon that don't feel really obvious to me either, isn't it possible to remove it ? or maybe put it only when we are disconnected or smth ?
what do you guys think?

Looks good with the power off icon. 👏  Regarding the reconnect button. I have added that button because sometimes I lost the connection and the client didn't send any event about that. So it would get stuck and I would need to leave and connect again. Which would make lose the current tabs. That is way I have added that button. If we could detect better the lost connections that would be really better. But I am not sure is something so reliable. I guess MySQL has a button like that as well visible even if your connection is ok.


SOLR-14319: specify replica types in UI when creating a collection

https://issues.apache.org/jira/browse/SOLR-14319
Description
This PR is based on a patch from early 2022 by  Richard Goodman.
Solution
Add ability to specify replica types in UI, and check if only PULL are specified.
Tests
n/a, we don't believe in testing JavaScript code ;-(.
Checklist
Please review the following and check all that apply:

[ ] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[ ] I have created a Jira issue and added the issue ID to my pull request title.
[ ] I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
[ ] I have developed this patch against the main branch.
[ ] I have run ./gradlew check.
[ ] I have added tests for my changes.
[ ] I have added documentation for the Reference Guide

So..  one question that came up, can you specify replicationFactor and the specific counts per type?
https://solr.apache.org/guide/solr/latest/deployment-guide/collection-management.html#create-parameters


FileChooser.enableMulti prop is misleading / not what we want

Believe I misunderstood what the multiple prop on react-dropzone does, and so our doc / expectation on the Hoist component's enableMulti is confusing.
https://github.com/exhi/hoist-react/blob/744ff7f51d1b873ba93748218bd8f8c37f6fe2be/desktop/cmp/filechooser/FileChooser.js#L44
It implies that if true the component will only deal with one file overall - i.e. preventing further clicks or drags if there's a file selected and requiring the user to remove that file before choosing another.  But instead it is this input attr which is not the same thing. This appears to only limit how many files the user can choose at once within the OS file picker pop-up shown by the browser.
There could be a valid use-case for only allowing the user to tee up one file at a time into our chooser, so we should look to keep the prop but make it work how we would expect.
We might also wish to expose a singleFile observable, equiv to StoreSelectionModel.singleRecord that is populated iff there is a single file in the list.

Let's either fix this (if can be done relatively easily), or remove it for now.  No need to leave broken features in the API that aren't currently in use!
Definitley don't want to make a big project of it

Fixed!  Yana making a toolbox example now.


Unable to evaluate expression when property name starts with number

Hi Team,
I am facing one issue, when I try to evaluate expression for properties that starts with number. I got error. Please have a look below for the details.
Input json data for below rule 👍
input1.1065_PO_BMALANCE : "12.23"
input1.1065_AV_COGS : "23.12"
input1.1065_PV_GROSSPROF : "11.22"
{
"RuleName": "1065_PG1_GROSSPROF_Calculated",
"SuccessEvent": "10",
"ErrorMessage": "Caluclated Sum check failed for 1065_PG1_GROSSPROF.",
"ErrorType": "Error",
"RuleExpressionType": "LambdaExpression",
"Expression": "CustomUtils.CheckCalculatedSum(input1.1065_PO_BMALANCE, input1.1065_AV_COGS , input1.1065_PV_GROSSPROF ) == true"
}
CustomUtils class method details below :
public static bool CheckCalculatedSum(string input1, string input2, string sum)
{
if (Convert.ToDecimal(sum) != (Convert.ToDecimal(input1) + Convert.ToDecimal(input2)))
return false;
else
return true;
}
Error Details :
Exception while parsing expression CustomUtils.CheckCalculatedSumCustomUtils.CheckCalculatedSum(input1.1065_PO_BMALANCE, input1.1065_AV_COGS , input1.1065_PV_GROSSPROF ) == true - Identifier expected

@ankittyagi2211 Expressions use C# identifiers so values starting with numbers won't work as is.
You could maybe add _ as prefix to values, or try passing input as JObject and access values like input1["1065_PO_BMALANCE"]  to be able to work around this issue.

Closing this due to inactivity. @ankittyagi2211 feel free to reopen it in case you are still facing issues.


Prevent duplicate certs and proposals

Description
Closes #3541 and #3540
Checklist

[x] Commit sequence broadly makes sense and commits have useful messages
[x] New tests are added if needed and existing tests are updated
[x] When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
versioning process.
[x] The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
[x] All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
[x] Code is formatted with fourmolu (use scripts/fourmolize.sh)
[x] Cabal files are formatted (use scripts/cabal-format.sh)
[x] hie.yaml has been updated (use scripts/gen-hie.sh)
[x] Self-reviewed the diff

This is still missing some tests, like CBOR round trip and

Make sure to add some properties for these function since current implementation is not correct, but there are no tests for it


IntoAsync weird work

Why behaviour of IntoAsync so weird?
For example, if I use
async Task Test()
{
var someImageView = new UIImageView();
await ImageService.LoadUrl(someURL).IntoAsync(someImageView);
return someImageView;
}
When it loads image first time(doesn't matter from cache of internet) it works fine and returns value. But when I'm pushing this controller second time with calling this method - it stucks at IntoAsync and returns nothing. Return statement not reached.
I understand, that it's better to use Into() and define completion in .Success, but anyway, it's kinda weird.

Hi @DarthRamone
That is now fixed in master branch, revision 62f69ec59c88f07906229ec02efff159b17dbd5e
I will update NuGet as soon as possible


[PLR-02M] Improper Management of Failed Cross-Chain Messages

PLR-02M: Improper Management of Failed Cross-Chain Messages

Type
Severity
Location

Logical Fault

Pearl.sol:L182-L200, L220

Description:
The Pearl::_sendVotingEscrowAck function that will ultimately handle cross-chain voting-escrow payloads may fail when performing the VotingEscrow::mint operation due to the vestingDuration not satisfying the MIN_VESTING_DURATION defined in the VotingEscrow.
As reinforced by the VotingEscrow implementation that the migration will occur from, the vestingDuration of the legacy implementation does not impose any minimum time restriction thereby rendering this scenario plausible when the minimum duration has been corrected to 2 weeks.
Impact:
As the Pearl represents a non-blocking LayerZero application, a failed message will be stored within it and will be able to be retried at a later point. However, all retries will fail due to the same vestingDuration being attempted, causing the cross-chain message to never be consumed at the target chain even though the funds have been locked (and thus permanently lost) on the origin chain.
Example:
/**
 * @notice Processes the voting escrow token minting from a cross-chain message.
 * @dev This internal function is called by `_nonblockingLzReceive` to handle `PT_SEND_VE` packet types. It decodes
 * the payload to extract the necessary information and mints voting escrow tokens accordingly. The function assumes
 * that it is always called in the context of a valid cross-chain message. Emits a `ReceiveVEFromChain` event upon
 * successful minting of the voting escrow tokens.
 * @param srcChainId The source chain ID from which the voting escrow token minting request originated.
 * @param payload The payload containing the minting request details, such as recipient address, amount, and vesting
 * duration.
 */
function _sendVotingEscrowAck(uint16 srcChainId, bytes memory, uint64, bytes memory payload) internal virtual {
    (, bytes memory toAddressBytes, uint256 tokenId, uint256 amount, uint256 vestingDuration) =
        abi.decode(payload, (uint16, bytes, uint256, uint256, uint256));

    address to = toAddressBytes.toAddress(0);
    address ve = _getPearlStorage()._votingEscrow;

    _approve(address(this), ve, amount, false);
    uint256 _tokenId = IVotingEscrow(ve).mint(to, amount, vestingDuration);

    emit ReceiveVEFromChain(srcChainId, to, tokenId, _tokenId, amount, vestingDuration);
}

Recommendation:
We advise the code to permit a refund of the legacy VotingEscrow NFT at the PearlMigrator level by initiating a cross-chain message from the Pearl in case of failure.
Specifically, the code should validate if the vestingDuration is lower than the VotingEscrow::MIN_VESTING_DURATION value and initiate a refund process in such a case. This will ensure that voting-escrow cross-chain migrations are properly handled by the Pearl contract under all cases.
As an alternative and less-complicated avenue, the Pearl::_sendVotingEscrowAck function could set the new vesting duration as the maximum between the vestingDuration and the VotingEscrow::MIN_VESTING_DURATION thereby guaranteeing that the bridging operation will succeed regardless of the original NFT's vesting duration.
To note, the same flaw arises in relation to the MAX_VESTING_DURATION as the legacy VotingEscrow has the maximum defined as 2 * 86400 * 365 whilst the MAX_VESTING_DURATION for the new VotingEscrow is defined as 2 * 52 weeks which is less than that. Identical solutions can be implemented for this discrepancy as well (i.e. refund or minimum between MAX_VESTING_DURATION and vestingDuration).

This has been fixed in a previous commit after the audit started. VotingEscrow::mint will allow the Pearl contract to specify any vesting duration, guaranteeing that any existing token can be migrated without issues.


Unable to add a schema to the Data Mapper designer

Describe the Bug with repro steps
I am unable to add a schema when creating a map.
Reproduction steps:

Create a new Logic App project
Close and reopen VSCode
Add schema.json to folder \Artifacts\Schemas

{
  "type": "object",
  "properties": {
    "prop1": {
      "type": "string"
    }
  }
}

Choose Data Mapper: Create new data map
Designer surface shows. Click Add a source schema
Choose Select existing and select schema.json.
Click Add.

Nothing happens until I click Cancel.
Screenshots or Videos

Version
v2.86.4
Azure Functions Core Tools
Core Tools Version:       4.0.5455 Commit hash: N/A  (64-bit)
Function Runtime Version: <IP_ADDRESS>54
Additional context
I have tried with the host.json and local.settings.json according to Logic Apps Data Mapper - Compiling and Testing Your Map and local.settings.json according to Data Mapper for Azure Logic Apps (Standard) reaches General Availability. Restarted VS Code between each attempt.
It would really help if these articles had similiar local.settings.json files.

@ErikMogensen thank you for reporting this! We found the cause of the problem, and will be releasing a hotfix shortly. Until then, you can fix this by editing '{your-project}/workflow-designtime/local.settings.json' to remove 'workflow-designtime' from 'ProjectDirectoryPath'

Are you able to see my comment above @DanielleCogs or should I create a new issue?
I should mention that I never had  'workflow-designtime' in my 'ProjectDirectoryPath'.

Hi @ErikMogensen, do you still have the issue after updating the ProjectDirectoryPath in the workflow-designtime/local.settings.json directory? or you just simply doesn't have the workflow-designtime directory?
Also, just to mention the fix for the new extension version will be only affect when you create a new logic app project, therefore if you have already created prior this new version you will need to update the property as stated above

Ah! I didn't realize there was another local.settings.json file! After removing 'workflow-designtime' from  the ProjectDirectoryPath and restarting vs code it worked 🎉

@ErikMogensen I am glad it worked fine! :)


Fixed VPC creation, also changed profile list to profile ls

@balram-ramanathan-sirca Code looks good. Moving to QA

@balram-ramanathan-sirca QA passed. Merging.


Listed forks should link to the "compare" page

Example link: https://useful-forks.github.io/?repo=facebook/sapling

I realized that when I go to explore a repository, I don't really care about the landing README.md page.
Taking the last fork listed as an example, maybe that link should open https://github.com/facebook/sapling/compare/main...mayhemheroes:eden:main instead of https://github.com/mayhemheroes/eden
Or maybe the "ahead" and "behind" badges could be those links.
I'd love to hear some thoughts about this.

Or maybe the "ahead" and "behind" badges could be those links.

I prefer this way.
As for links like author/repo, I don't really care about what it referred to(ahead and behind can be enough), but to open the README.md page may be more intuitive for me.

but to open the README.md page may be more intuitive for me.

I think I miscommunicated what I meant so I edited the OP. I meant the "repo's landing page" which itself displays the rendered README.md, along with a bunch of other info.


Any tools/examples for the PLL primitive?

For ice40 chips there is icestorm/icepll, for ecp5 chips there is trellis/ecppll.
I wonder is there any similar tools/examples for gw1n chips?

No, unfortunately PLL is not yet supported. In case you'd like to add support for it, hop into the Matrix channel.

Is there any plans? My skill level is far from implementing it, so I might just wait...

Yes, implementation of this primitive is in the plans.
And if one part, namely the conversion of the Verilog text into bits for FPGA firmware, requires some perverse knowledge, the second part, namely the generation of the text primitive based on the specified characteristics of the frequency and other things, I think enough knowledge of the equations of the first order and the basics of Python.
Come to the Matrix chat room.


URL has an invalid label

Hi,
Since this weekend after a reboot and i imagine an unexpected update elastalert crash when he load rules.
I can generate the alert with elastalert-test-rule:
`/opt/elastalert/tmp # elastalert-test-rule test.yaml
Successfully loaded 01_Pac_Unavailable

Error running your filter:
InvalidURL('URL has an invalid label.',)
INFO:elastalert:Note: In debug mode, alerts will be logged to console but NOT actually sent. To send them, use --verbose.
Traceback (most recent call last):
  File "/usr/bin/elastalert-test-rule", line 11, in <module>
    load_entry_point('elastalert', 'console_scripts', 'elastalert-test-rule')()
  File "/opt/elastalert/elastalert/test_rule.py", line 317, in main
    test_instance.run_rule_test()
  File "/opt/elastalert/elastalert/test_rule.py", line 312, in run_rule_test
    self.run_elastalert(rule_yaml, conf, args)
  File "/opt/elastalert/elastalert/test_rule.py", line 234, in run_elastalert
    client.run_rule(rule, endtime, starttime)
  File "/opt/elastalert/elastalert/elastalert.py", line 528, in run_rule
    if not self.run_query(rule, rule['starttime'], tmp_endtime):
  File "/opt/elastalert/elastalert/elastalert.py", line 380, in run_query
    data = self.get_hits(rule, start, end, index, scroll)
  File "/opt/elastalert/elastalert/elastalert.py", line 250, in get_hits
    res = self.current_es.search(scroll=scroll_keepalive, index=index, size=rule['max_query_size'], body=query, ignore_unavailable=True, **extra_args)
  File "build/bdist.linux-x86_64/egg/elasticsearch/client/utils.py", line 69, in _wrapped
  File "build/bdist.linux-x86_64/egg/elasticsearch/client/__init__.py", line 539, in search
  File "build/bdist.linux-x86_64/egg/elasticsearch/transport.py", line 327, in perform_request
  File "build/bdist.linux-x86_64/egg/elasticsearch/connection/http_requests.py", line 68, in perform_request
  File "/usr/lib/python2.7/site-packages/requests-2.12.1-py2.7.egg/requests/sessions.py", line 474, in request
    prep = self.prepare_request(req)
  File "/usr/lib/python2.7/site-packages/requests-2.12.1-py2.7.egg/requests/sessions.py", line 407, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/usr/lib/python2.7/site-packages/requests-2.12.1-py2.7.egg/requests/models.py", line 302, in prepare
    self.prepare_url(url, params)
  File "/usr/lib/python2.7/site-packages/requests-2.12.1-py2.7.egg/requests/models.py", line 372, in prepare_url
    raise InvalidURL('URL has an invalid label.')
requests.exceptions.InvalidURL: URL has an invalid label.`

If you have an idea :)
Thanks for your help,
Benoît

Please post your test.yaml file. I expect something in there is incorrect.

This is my test.yaml:
name: "01_Pac_Unavailable"
type: frequency
index: logstash-*
es_host: elasticsearch_host
es_port: 9200
num_events: 10
timeframe:
    minutes: 15
realert:
    minutes: 30
filter:
- query:
    match:
     logid:
      query: "101"
query_key: ["hostname"]
alert_subject: "Proxy.pac Unavailable!"
include: ["sender_ip"]
alert_text: |
 Time GMT: {1}
 Hostname  : {0}
 IP : {2}
 Message: At least 3 downloads of proxy.pac has failed in 5 minutes
alert_text_type: alert_text_only
alert_text_args: ["hostname", "@timestamp", "sender_ip"]
alert:
- "slack"
slack_webhook_url: https://hooks.slack.com/services/T1PEAUDR7/B1QFZ01U1/xxxxxxxxxxxxxxxxxxxxxxxx

It's strange, because i have the same issue for all of my rules now. :/

Hmm. Cursory googling says this error could be caused by a bug from IDNA domains: http://stackoverflow.com/questions/16470064/python-requests-invalid-url-label-error and http://stackoverflow.com/questions/16423923/making-a-simple-get-post-with-url-encoding-python
Does your es_host have internationalized letters or something in it? I've never seen this error before.  It's an update in the requests library who block now the underscore in the hostname.
I have deleted it in my config, and now it works fine.
Thanks a lot
Benoît


no error reporting

https://github.com/Trass3r/testgithubactionsrelease/runs/311506909
It prints Validation Failed no matter what actually happened.
The token must be valid as create-release works.

I have a similar issue. I am building linux, macos, and windows binaries and uploading all three. The lnux and macos upload fails with Validation Failed, and the windows upload fails with Socket hung up.
https://github.com/JoshMcguigan/estream/runs/318263639
https://github.com/JoshMcguigan/estream/runs/318263642
Oddly, it seems the actual files do show up on the release.

https://github.com/actions/upload-release-asset/issues/13 would help with this

@EHadoux
@ethomson @cesperanc
Im using 3 files upload on release ()
linux file uploaded, but windows doesnt, also there is no error, just failed.

https://hastebin.com/oniluyezil.sql

Getting this error trying to upload a .txt file

Oh, it worked with files from the repo. But not with a file I created using touch

I have the same problem. Is there a way to upload a file that I just created inside CI? thanks

FY'all, I had the same problem and found that my file was 0 bytes.  Hope that helps someone.


Jetpack Ubuntu without Jetpack?

Is it possible to use yocto to flash the ubuntu image from Jetpack onto the tegra?
If so, what steps do I need to take to do this?
Also if this is beyond the scope of meta-tegra, let me know so I can ask elsewhere.

Yes, that's not really what this is here for - it's intended for folks that want to build their own Linux distros.
If you're just looking for a way to flash your Jetson/Tegra board without having to use the JetPack GUI, check the Linux For Tegra documentation (which is included in a JetPack installation).

Understandable. It appears Yocto is too modular for this project but Jetpack isn't modular enough.
Currently, we have an arduous method of flashing with Jetpack to get the exact image we want which involves adding and removing lots of features. The ideal outcome is finding a way to replicate that image with Yocto to speed up the flashing process.
That being said, it doesn't have to be an exact copy, it just needs to run everything correctly, while also having enough quality-of life features that folks can comfortably develop on it.
So I suppose my real question is about how to add quality-of-life features to my image, which I can ask elsewhere.


Testing rli plugin on a bunch of finance files DELAYED : PLEASE DO NOT MERGE

Lines 31-34 in seup-sphinx-source-tree rely on the literalinclude plugin.
I changed the first call to rli and it looks like it works well on the live preview but need someone to check it is actually working before sharing with Finance team.
Thank you.
(This is the easiest way to do a bulk test on this. All other options require too many script edits for comfort.)
We could even merge this one, if we can get it to deploy, the other ways no, but I will leave that to your decision @garyverhaegen-da

OK, it failed but I guess I'm on a good track so maybe you can get this test to work @garyverhaegen-da ?

I'm a bit busy with other things right now but will take a look when I can.

Perfect, there is no urgency :)

@da-katmurp Build now succeeds. Please double-check it looks as expected before merging.

For info @garyverhaegen-da I'm going to have to pause work on this until the other PR #120 is in

Trello ticket for info: https://trello.com/c/9zEY2zPM


feat: erc20 support

ERC-20s

Open, fund and close payment channels denominated in any ERC-20
Send and receive paychan claims denominated in an ERC-20
Initial channel open also requires an approve transaction, so approve Machinomy contract to transfer unlimited tokens from the configured Ethereum account

Secure since account must explicitly open/deposit for Machinomy contract to transfer tokens to itself
Overestimate combined gas limit for both txs (no way to combine them into 1 tx, or estimate the gas for the second until the first is executed)

Update claim validation to ensure the correct token contract (or the absence of one if used with ether)
Support tokens with varying decimal places (convert from asset scale 9)
Auto load token symbol and scale from the contract address
Test using Ganache

Other changes

docs(readme): better overview, add new config options
fix: after channel funding/closing, use events to confirm state updates (likely safer than fetching by channelId to update state)
feat: option for custom Machinomy contract address
feat: option for custom Ethers wallet instance

Codecov Report

Merging #35 into master will decrease coverage by 0.83%.
The diff coverage is 68.23%.

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
- Coverage   68.22%   67.39%   -0.84%
==========================================
  Files           7        7
  Lines         598      687      +89
  Branches       62       69       +7
==========================================
+ Hits          408      463      +55
- Misses        175      208      +33
- Partials       15       16       +1

Impacted Files
Coverage Δ

src/account.ts
55.94% <59.82%> (-1.52%)
:arrow_down:

src/index.ts
83.33% <83.33%> (+0.87%)
:arrow_up:

src/utils/channel.ts
84% <85.29%> (-0.75%)
:arrow_down:

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 2445d85...7bcd899. Read the comment docs.

nit: in account.ts we still reference 'units of wei' (https://github.com/interledgerjs/ilp-plugin-ethereum/blob/53bc585ed26d70aa3b855826536b82a703a4e1f2/src/account.ts#L293, https://github.com/interledgerjs/ilp-plugin-ethereum/blob/53bc585ed26d70aa3b855826536b82a703a4e1f2/src/account.ts#L339, https://github.com/interledgerjs/ilp-plugin-ethereum/blob/53bc585ed26d70aa3b855826536b82a703a4e1f2/src/account.ts#L485) in places were it now makes more sense to say 'base units'.


AttributeError: 'NoneType' object has no attribute 'find'

Getting this error on Windows machine
C:\Users\ee\Desktop>python houdini_install.py -u ***** -p ***** -i "C:\Program Files\houdini"
Login on https://www.sidefx.com/login/ ...
Get last build version...
Traceback (most recent call last):
  File "houdini_install.py", line 93, in <module>
    a = s.find('div', {'class': lambda x: x and 'category-'+category in x.split()}).find('a')
AttributeError: 'NoneType' object has no attribute 'find'

Maybe login is failed?

I get the same error trying to install on a Linux EC2 Instance:
Login on https://www.sidefx.com/login/ ...
Get last build version...
Traceback (most recent call last):
File "./houdini_install.py", line 119, in
a = s.find('div', {'class': lambda x: x and 'category-'+category in x.split()}).find('a')
AttributeError: 'NoneType' object has no attribute 'find'

I get the same error trying to install on a Linux EC2 Instance:
Login on https://www.sidefx.com/login/ ...
Get last build version...
Traceback (most recent call last):
File "./houdini_install.py", line 119, in
a = s.find('div', {'class': lambda x: x and 'category-'+category in x.split()}).find('a')
AttributeError: 'NoneType' object has no attribute 'find'

Something changed on builds page. I need to fix parsing code. Maybe i can do it soon.
You can do in itself if you can)

Something changed on builds page. I need to fix parsing code. Maybe i can do it soon.
You can do in itself if you can)

Thank you very much. That would be great!!!

Thank you very much. That would be great!!!

Hm I see.
When I try to execute hython, I get this error:
No licenses could be found to run this application.
Please check for a valid license server host
Do you happen to know how can I set this up?

You need to correctly setup license server. Check documentation.
https://www.sidefx.com/faq/license-management/
https://www.sidefx.com/faq/question/492/
If you lic server is ok i dont know how to help you( Probably you need to configure  License Administrator

so, I needed to get a non-comercial license from here
https://www.sidefx.com/services/non-commercial-license/
After setting that up, I managed to run hython and import hou
Thanks for the help!


WebsiteAgent can interpolate after extraction

With this addition, user can format extracted data or compose new keys using Liquid without having to create an EventFormattingAgent, optionally making use of response header values.
New Liquid variables and a new Liquid filter allow user to resolve relative URLs in an extracted HTML fragment so that it can be used anywhere, such as when creating a feed using DataOutputAgent which contents are required to have absolute URLs.  The following configuration will "rebase" an HTML fragment extracted to the key content on the page URL:
"extract": {
  ...
  "content": { ... }
},
"interpolate": {
  "content": "{{ content | rebase_html: _request_.url }}"
}

Could you give an example of how you're using the HTML rebase?

@cantino As I wrote in the PR message, I use it for scraping a website to make a feed using DataOutputAgent.  Extracted HTML fragments often include <img src> and <a href> tags with relative URLs, so I need to make them use absolute URLs so the fragments can be used off the original context (website's URL).  With the quoted configuration, my WebsiteAgent properly emits events with HTML fragments that have absolute URL references, and my OutputAgent that receives them can output a feed with working images and links.

Gotcha, thanks @knu.
Maybe instead of interpolate, it should be called template?  After thinking about it, I think it's okay to have this in WebsiteAgent.  Even though it's getting complex, it's still easier than having to always make both a website agent and a formatting agent (or both a fetching agent and a parsing agent), and so reducing friction is probably better than worrying too much about agent size? But I do think we should try to find ways to expose standardized behaviors in all Agents.  And @dsander, I think the idea of breaking agents into steps might help reduce the seeming complexity.

it's still easier than having to always make both a website agent and a formatting agent (or both a fetching agent and a parsing agent)

That got me thinking again, while agree there is a strong argument against using a fetching and parsing Agent, can't we just (optionally) include the headers and status in the emitted event like we to in the PostAgent? The Event will be processed by a downstream Agent anyways and any Liquid formatting done in interpolate can also be done in the downstream Agent.
Accessing the headers in interpolate is kind of a guessing game because one does not know which key included in the response. Having them in the Event makes it very clear and easier to access.

That got me thinking again, while agree there is a strong argument against using a fetching and parsing Agent, can't we just (optionally) include the headers and status in the emitted event like we to in the PostAgent?

Emitting all headers could nullify the on_change mode for many sites, so you'd have to specify which headers to emit in that case.  As advertised in the first line of this PR, the proposed interpolate (or template as @cantino suggested) option, along with the _response_ variable, is intended to be the way for that.

@dsander That's right.  In that case, adding a DeDuplicationAgent will be due instead of using the on_change mode of WebsiteAgent.

What is the status of this? I would find the usage clearer when the headers are not included in the deduplication process but simply added to the Event when configured (like its done in the PostAgent). @cantino if you agree with @knu I can live with the current version 😄

The option was renamed to template, and I came to think that it should be, if given, the template for each event, not the one to be merged to what was extracted, because using a template, extract would include intermediate keys used for templating.  Let me give it a shot!

OK, I think I'm done with this feature.  As for deduplication, I mentioned in the documentation how to dedupe properly while adding header values to created events.
I have a couple of further enhancements in mind right now, but they will be in another PR.

Looks good to me!

@cantino @dsander Thanks for your feedback!

Nice! Okay to delete branch?


Compile error

Hi,
I cloned this repository directly on a raspberry pi 3 b+ and tried to compile the sources without success:
pi@raspberrypi:~/raspiraw $ ./buildme
In file included from /opt/vc/include/interface/vcos/vcos_assert.h:149:0,
from /opt/vc/include/interface/vcos/vcos.h:114,
from raspiraw.c:42:
/opt/vc/include/interface/vcos/vcos_types.h:38:33: fatal error: vcos_platform_types.h: No such file or directory
#include "vcos_platform_types.h"
^
compilation terminated.
In file included from /opt/vc/include/interface/vcos/vcos_assert.h:149:0,
from /opt/vc/include/interface/vcos/vcos.h:114,
from RaspiCLI.c:46:
/opt/vc/include/interface/vcos/vcos_types.h:38:33: fatal error: vcos_platform_types.h: No such file or directory
#include "vcos_platform_types.h"
^
compilation terminated.
There is however a file called vcos_platform_types.h in my filesystem it is located at:
/opt/vc/include/interface/vcos/pthreads/vcos_platform_types.h
Any hints?
Thanks

pi@raspberrypi:~/raspiraw $ make
gcc -I/opt/vc/include -pipe -W -Wall -Wextra -g -O2 -c -o raspiraw.o raspiraw.c
In file included from /opt/vc/include/interface/vcos/vcos_assert.h:149:0,
from /opt/vc/include/interface/vcos/vcos.h:114,
from raspiraw.c:42:
/opt/vc/include/interface/vcos/vcos_types.h:38:33: fatal error: vcos_platform_types.h: No such file or directory
#include "vcos_platform_types.h"
^
compilation terminated.
Makefile:9: recipe for target 'raspiraw.o' failed
make: *** [raspiraw.o] Error 1

okay, this is very strange. I also had a Raspbian Stretch Lite (2018-04-18-raspbian-stretch-lite.zip) and I did not have the lines you posted above in my include file.
I now downloaded the newest version 2018-06-27-raspbian-stretch-lite.zip and set up everything from scratch. It complies now as expected. Both commands work for me, the CSI camera already shows up on the I2C (./camera_i2c).
I'm trying to interface a CSI-Camera that is currently not in your sources. If I encounter any problems, shall I post them here as issues or on the raspberry pi forum?
Best regards,
Markus

How old was your install? Those lines were added in https://github.com/raspberrypi/userland/commit/826b0b1b089329cdd9c3c9a3a91c0ffe915cf248#diff-8f8e8ef15955ad7af43eb9a3cbefa22b in March 2016, so an old Jessie install may still have had the old userland.
Please post issues in interfacing your camera on the forum.
Out of interest, what is the device?


Calendars and contacts frequently time out when using Gnome Online Accounts, and Keycloak sign on for nextcloud

Problem disappears if "Allow the use of multiple user back-ends (e.g. LDAP)" is enabled within nextcloud.
There has got to be a better way.

On second thought, it doesn't go away, but it is less frequent when using multiple user backends.
Not really sure how to run this down.