can't nest subgraphs in flowchart

The following is a valid subgraph
 graph TB
   subgraph Foo
     a1-->a2
   end

but this is not
 graph TB
   subgraph Foo
     a1-->a2
     subgraph Bar
       b1-->b2
     end
   end

I can't think of a reason subgraphs should not be nestable, and i can think of reasons I'd want them to be.

I agree that they should be nestable. Adding it to the list. Heavily involed in another project right now so the change will when I manage to find time.

The issue is fixed and will be included in next release.

looks like the fix has some bugs.
nested subgraph labels at 3 or levels deep are not working well, or if there are two subgraphs within a subgraph too.

Hmm. I wonder if there was a problem with the check in. This is my test page for nested subgraphs or perhaps this one is to simple.

graph TB;  I --> IG((IG))    subgraph publicnet     IG --> ELB     NAT  end  subgraph webnet     ELB --> Web1     ELB --> Web2     Web1 --> elb2     Web2 --> elb2  end  subgraph appnet             subgraph C1        subgraph C1cluster1          elb2 --> C1Prod1Ins1          elb2 --> C1Prod1InsN        end        subgraph C1cluster2          elb2 --> C1Prod2Ins1          elb2 --> C1Prod2InsN        end        subgraph C1cluster3          elb2 --> C1Prod3Ins1          elb2 --> C1Prod3InsN        end     end     subgraph C2        subgraph C2cluster1          elb2 --> C2Prod1Ins1          elb2 --> C2Prod1InsN        end        subgraph C2cluster2          elb2 --> C2Prod2Ins1          elb2 --> C2Prod2InsN        end        subgraph C2cluster3          elb2 --> C2Prod3Ins1          elb2 --> C2Prod3InsN        end     end  end  subgraph dbnet    C1Prod1Ins1 --> RDS1    C1Prod1InsN --> RDS1    C1Prod2Ins1 --> RDS1    C1Prod2Ins2 --> RDS1    C1Prod3Ins1 --> RDS1    C1Prod3Ins2 --> RDS1    C2Prod1Ins1 --> RDS2     C2Prod1InsN --> RDS2    C2Prod2Ins1 --> RDS2     C2Prod2Ins2 --> RDS2    C2Prod3Ins1 --> RDS2    C2Prod3Ins2 --> RDS2  end
 e.g I tried this... I notice graph label is being changed ( C1 and C1Cluster3)... and if I change the orientation of graph to LR it goes haywire.
Uday
 On Thursday, 21 May 2015 10:21 PM, Knut Sveidqvist<EMAIL_ADDRESS>wrote:

Hmm. I wonder if there was a problem with the check in. This is my test page for nested subgraphs or perhaps this one is to simple.—
Reply to this email directly or view it on GitHub.

Thanks for your example. I can replicate the issue now.

The issue was a bit harder ti fix then anticipated. The proper way to fix this involves a change in dagre-d3. I have submitted such a pull request and if/when this is included in dagre-d3 I will finish the solution of this issue.
The problem is to identify the area in svg that is a subgraph. The positioning engine dagre-d3 positions thins for a good layout that does not necessarily correspond to the order things are in the graph definition so it is a guessing game to find the right section.

The change in dagre-d3 has been released and the fix of the issue with the crazy labels has been pushed into (dev-0.5.0). In that branch there are also some experimental changes for packaging mermaid and for integration so use with care. Look at test/web_render.html for an example of nested subgraphs.

A fix for this has been released in version 0.5.0

@Knut
Replaced mermaid.full.js of 0.4 with mermaid.js of version 0.5 and the diagrams dont render? read the docs... It should have worked.
What am I missing? any guidance?
Regards Uday
 On Sunday, 7 June 2015 9:04 PM, Knut Sveidqvist<EMAIL_ADDRESS>wrote:

A fix for this has been released in version 0.5.0—
Reply to this email directly or view it on GitHub.

Thanks for pointing this out. You also need to add the code below to your page. I will update the docs.

--
Knut Sveidqvist
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Tuesday 9 June 2015 at 06:28, Udaya Reddy wrote:

@Knut
Replaced mermaid.full.js of 0.4 with mermaid.js of version 0.5 and the diagrams dont render? read the docs... It should have worked.
What am I missing? any guidance?
Regards Uday
On Sunday, 7 June 2015 9:04 PM, Knut Sveidqvist<EMAIL_ADDRESS>(mailto:notifications@github.com)> wrote:
A fix for this has been released in version 0.5.0—
Reply to this email directly or view it on GitHub.
—
Reply to this email directly or view it on GitHub (https://github.com/knsv/mermaid/issues/161#issuecomment-110220886).


[FEATURE] Create DHCP servers on networks

Is your feature request related to a problem? Please describe.
We are using a vswitch in an environment where now DHCP is provided on the tagged VLAN.
Therefore the VMs wont get the needed IPs automatically
Describe the solution you'd like
In the Network creation provide the option to enable dhcp for the network.
This could then dynamically create a dhcp container like this:
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: dhcpd
  name: dhcpd
  namespace: default
spec:
  selector:
    matchLabels:
      app: dhcpd
  template:
    metadata:
      annotations:
        k8s.v1.cni.cncf.io/networks: '[{"interface":"eth1","mac":"7a:3e:30:35:d2:b4","name":"network1","namespace":"default"}]'
      creationTimestamp: null
      labels:
        app: dhcpd
    spec:
      containers:
      - command:
        - /bin/sh
        - -ec
        - |
          ip addr flush dev eth1
          ip addr add <IP_ADDRESS>/24 dev eth1
          touch /var/lib/dhcp/dhcpd.leases
          chown daemon.daemon /var/lib/dhcp/dhcpd.leases
          chown daemon.daemon /var/lib/dhcp
          chown daemon.daemon /var/run/dhcp
          dhcpd -cf /etc/dhcp/dhcpd.conf -d -user daemon -group daemon eth1
        image: networkboot/dhcpd:latest
        name: dhcpd
        securityContext:
          capabilities:
            add:
            - NET_ADMIN
        volumeMounts:
        - mountPath: /etc/dhcp
          name: config
      volumes:
      - configMap:
          defaultMode: 420
          name: dhcpd
        name: config
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: dhcpd
  namespace: default
data:
  dhcpd.conf: |-
    default-lease-time 600;
    max-lease-time 7200;
    option routers <IP_ADDRESS>;
    option domain-name-servers <IP_ADDRESS>;
    option subnet-mask <IP_ADDRESS>;

    subnet <IP_ADDRESS> netmask <IP_ADDRESS> {
      range <IP_ADDRESS> <IP_ADDRESS>;
    }

close as documented at https://docs.harvesterhci.io/v0.3/networking/harvester-network/#configure-dhcp-servers-on-networks

what's the mean of "interface":"eth1","mac":"7a:3e:30:35:d2:b4", represent? @dgiebert

networkboot/dhcpd:latest ip: No such file or directory

The proposed solution isn't working anymore, since the 'ip' tool is missing in the container. Propably reinstalling it inside the container would be a solution, but i cloudnt get it to work at the moment.

To fix the problem with ip command not working, you can replace networkboot/dhcpd:latest with joebiellik/dhcpd:latest


Yuqiang/oz level chat

fixes ENG-37
btw the first commit is just copy codes from codecombat/app to codecobmat/ozaria. so can ignore that commit to make review simpler.

Thanks for the great work, adding some enhancements we can do.

Can you style Ask the AI button. Something like

color: #fff;
background-color: #6c757d;
border-color: #6c757d;

after overriding background-image of white.
Also some margin between the button and question mark. Attaching screenshot on how it can look like.

Can we make Level Chat with AI option in classroom modal look similar to live autocomplete one? Sub-text on next line and level-chat text parallel to live autocomplete?

On click of Show Me, diff doesn't appear for me, does it work for you?

Also, on CodeCombat there is an option to ask for next step by clicking on question mark instead of only asking when an error occurs. We need to add that in ozaria too. On ozaria, it could be added on right side below level options and restart level. Adding screenshot for the one in Coco. Can you do it in a separate PR after this is merged though? It can be independent of this release and you can use different icon too.


Check BeeGFS before running multi-node jobs

Find at least a simple way to check if BeeGFS is working before running jobs. Encountered an issue today where a job had been running for over 24 hours but the fnode didn't have the BeeGFS client installed, i.e. no working shared filesystem.

First implementation in here https://github.com/prominence-eosc/prominence/commit/7ff3d84a1e8e189da075fa57cb6001dae552972d
Probably should switch to paramiko or ssh2-python.


Option to disable/hide default mutations

Hello,
Currently, the grant/RLS system lets you block all mutations, but they still show in the schema through inspection.
An option to disable those CRUD mutations would be welcome in certain use-cases.
As discussed on gitter, it could simply be implemented with an option passed down to https://github.com/calebmer/postgraphql/blob/3e24703584bb4baaa460da589b072408020a8e1c/src/graphql/schema/getMutationGqlType.ts#L31-L38
Thanks

Released in v2.2.0, hanks @grncdr :tada:


Billions of command sticks

According to your testing, does the issue occur with ONLY Immersive Portals mod and Farbic API?
Yes, it seems.
Except the fact that im using forge.
Describe the issue
video explains it
https://user-images.githubusercontent.com/50457706/189477664-ccd24751-96ce-49f8-93d0-45ad3c9b24f8.mp4
Post the log here
No response

Please proof that you own Minecraft. I won't support pirated versions of the game.

Please proof that you own Minecraft. I won't support pirated versions of the game.

welp, no proof is coming then, i'm not supporting microsoft nor will support them ever.

The issue is it's illegal and pirating should not be supported.

i can actually vouch for this issue's legitimacy on a fully purchased and migrated account of the game. If you want proof that my MC acc is legit, my current user as of writing this is "ChaosDog"

i can actually vouch for this issue's legitimacy on a fully purchased and migrated account of the game. If you want proof that my MC acc is legit, my current user as of writing this is "ChaosDog"

and here comes the proof

The issue is it's illegal and pirating should not be supported.

you consider supporting your own mod illegal?

No, pirating the game is illegal. Modding it is not.

@ChaosDogG please send a log, thanks.

No, pirating the game is illegal. Modding is not. But you can get problems if you support cracked clients. And cracked clients also cause modders to loose revenue, so no support for them.

show me an example of a modder who got in jail or got a fine for supporting somebody (no, not for political views)
thus, i'm not asking you to pirate the game yourself and you actually should have the right to do so, if you bought it already.

@Fr4Ckt3r
This is enough, stop it.

welp, fine.
still, people like haubna do paid mods like physics mod pro and this is illegal by minecraft eula, yet nobody didn't do a thing about that.

@qouteall please just ban @Fr4Ckt3r from the organisation, this is leading nowhere


Runtime error command 'quicktype.pasteJSONAsTypesAndSerialization' not found

Getting this error trying to paste JSON as code

@jeremykirkup Could you please be more specific?  Which extension are you using?  Which IDE/editor, and which version of the IDE/editor?  Could you please include a screenshot?

Same for me VS Code version 1.21.1

Thank you, that was perfect.

Maybe specific to Windows?

and I did open it as administrator

I also uninstalled and installed again, I'l try rebooting the machine

@ernesth65 Have you seen this again?  Can you reproduce it?

Also just got this error, visual studios code, latest version of windows, vs vode version 1.23.1


fix: visualize hatched road markings

Description
Hatched road markings are visualized incorrectly without this PR. The boundary is not connected.
Without this PR
The bottom left object is hatched road markings, whose boundary is not fully connected.

With this PR

Tests performed

planning simulator
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@mitsudome-r Could you review the PR.


Unable to load the page on windows 10

Unable to load the page on windows 10
The site at http://<IP_ADDRESS>:8080/ has experienced a network protocol violation that cannot be repaired.
I have stop firewall.
Environment

http-server version: 0.11.1
Platform: Windows 10

Other information

but server is up and running

Me too. Both chrome and mozilla shows error. On windows 7 with latest version of browsers.

Me too. Both chrome and mozilla shows error. On windows 7 with latest version of browsers.

Here also with latest version of browsers.

Same here after upgrading to the latest node and fetching http-server again (ecstatic bumped from 3.3.1 to 3.3.2). A bunch of response headers missing, one of which is "Content-Type".
Reverted back to previous node and http-server (ecstatic-3.3.1) and all works fine again,

Same here. It would seem the options -d and -i don't work.
If I add index.html to the URL it's fine.
For the moment I downgraded to 0.9.0 which seems to work

Same problem

Me too

It worked

Same here. It would seem the options -d and -i don't work.
If I add index.html to the URL it's fine.
For the moment I downgraded to 0.9.0 which seems to work

I'm having the same issue in 0.11.1 on Windows 10 in both Chrome and Firefox.
./node_modules/.bin/http-server -g -o

Navigating directly to ./index.html works, but the index file is not being loaded by default

I just spent two hours on this before realizing you have to include /index.html in the URL. Is there no way to add default page as a parameter?

I also have the same issue, same error.

Same issue here

Same issue?  I'm testing out my single page application, with # redirects... and the redirects keep pointing to http://<IP_ADDRESS>:8080#menuX and not http://<IP_ADDRESS>:8080/index.html#menuX, etc...
I tried a proxy fix http-server --proxy http://<IP_ADDRESS>:8080/index.html? but that didn't seem to work.
Windows 10, version 1903 (OS Build 18362.239)
<EMAIL_ADDRESS>

Someone advised me to try installing live-server (npm install -g live-server), then run live-server from the terminal, it worked for what I was trying to do. Hope this helps.

Came across the same error and by simply doing this 'http://<IP_ADDRESS>:8080/index.html' I was able to get it working.

Duplicate of #525


Bcrypt fail - can't find Python executable

Get the following error using ulexus/meteor:build - I included the full stdout:
Cloning https://...
Cloning into '/home/meteor/src'...
Switching to branch/tag master...
Already on 'master'
Your branch is up-to-date with 'origin/master'.
Forcing clean...
HEAD is now at 5a4dc06 display analysis error page
Meteor source found in /home/meteor/src/myapp/.meteor
Checking Meteor version...
/usr/bin/entrypoint.sh: line 93: [: -Z: unary operator expected
Application's Meteor version (1.5) is less than 1.3.1; please use ulexus/meteor:legacy
Downloading Meteor install script...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7782    0  7782    0     0   6727      0 --:--:--  0:00:01 --:--:--  6731
Installing Meteor 1.5...
Downloading Meteor distribution

Meteor 1.5 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.

To get started fast:

  $ meteor create ~/my_cool_app
  $ cd ~/my_cool_app
  $ meteor

Or see the docs at:

  docs.meteor.com

Installing application-side NPM dependencies...
npm WARN deprecated<EMAIL_ADDRESS>gcloud has been renamed to google-cloud. To get new features and bug fixes, you must use the new package.
npm WARN deprecated<EMAIL_ADDRESS>Use uuid module instead

><EMAIL_ADDRESS>install /home/meteor/src/pals/node_modules/bcrypt
> node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at Object.failNoPython (/home/meteor/.meteor/packages/meteor-tool/.1.5.0.utbu0o++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/node-gyp/lib/configure.js:482:19)
gyp ERR! stack     at Object.<anonymous> (/home/meteor/.meteor/packages/meteor-tool/.1.5.0.utbu0o++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/node-gyp/lib/configure.js:396:16)
gyp ERR! stack     at F (/home/meteor/.meteor/packages/meteor-tool/.1.5.0.utbu0o++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/which/which.js:68:16)
gyp ERR! stack     at E (/home/meteor/.meteor/packages/meteor-tool/.1.5.0.utbu0o++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/which/which.js:80:29)
gyp ERR! stack     at /home/meteor/.meteor/packages/meteor-tool/.1.5.0.utbu0o++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/which/which.js:89:16
gyp ERR! stack     at /home/meteor/.meteor/packages/meteor-tool/.1.5.0.utbu0o++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /home/meteor/.meteor/packages/meteor-tool/.1.5.0.utbu0o++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR!  Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!
Thanks

Well that's irritating.  I don't know if python is a new requirement or if the base image no longer includes it.  Either way, I'll get it added.

Fixed by 43a7c70e5ec3442082fe7c64bafc5c10c5d3b14c

Thanks


Add fallthrough listener filer chain for BlackHoleCluster

Please provide a description for what this PR is for.
And to help us figure out who should review this PR, please
put an X in all the areas that this PR affects.
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[x] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Fixes: #17759 #17271

@nrjpoddar: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

lint_istio
5485d6ec58900605b7cf3ba808977e8250e4cb05
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rshriram @howardjohn even though this PR is more or less correct, we still have the issue that the  telemetry reported when the request hits the BlackHoleCluster or Passthrough fall through case inherits the Service hosts from the outbound listener it is building which will set the destination.service.host to the Service in context based on filter chain match where as it should be set to BlackHoleCluster or PassthroughCluster

@nrjpoddar: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

lint_istio
5485d6ec58900605b7cf3ba808977e8250e4cb05
link
/test lint_istio

gencheck_istio
997a38aa57b2ea6f240d7231cd69950893f8b0da
link
/test gencheck_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test gencheck_istio

@kyessenov augmented this PR to fix telemetry when FCMs are used. PTAl.
@howardjohn this needs to be cherry-picked into release-1.3 and release 1.4. I know release-1.3 will have merge conflicts so should I submit a separate PR for release branches?

Unit tests in a new commit to follow soon but verified this manually and these changes fix the BlackHole/Passthrough telemetry in all cases.

@nrjpoddar: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-istioio-k8s-tests_istio
95059800e6077971d7af390ad7a13a5c1c8070f3
link
/test integ-istioio-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@nrjpoddar: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-istioio-k8s-tests_istio
95059800e6077971d7af390ad7a13a5c1c8070f3
link
/test integ-istioio-k8s-tests_istio

gencheck_istio
3fb8357fa40a4d13cb72cef63bd3a779192a0c60
link
/test gencheck_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@nrjpoddar: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gencheck_istio
3fb8357fa40a4d13cb72cef63bd3a779192a0c60
link
/test gencheck_istio

integ-istioio-k8s-tests_istio
3fb8357fa40a4d13cb72cef63bd3a779192a0c60
link
/test integ-istioio-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@nrjpoddar: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-istioio-k8s-tests_istio
3fb8357fa40a4d13cb72cef63bd3a779192a0c60
link
/test integ-istioio-k8s-tests_istio

e2e-simpleTests_istio
d0978b73bf54f3ff27fc674f395d5f82abc52bd2
link
/test e2e-simpleTests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kyessenov can you approve this? This needs cherry-picking into release branches. Thanks!

In response to a cherrypick label: new pull request created: #18619

In response to a cherrypick label: #18541 failed to apply on top of branch "release-1.3":
error: Failed to merge in the changes.
Using index info to reconstruct a base tree...
M	pilot/pkg/networking/core/v1alpha3/listener.go
Falling back to patching base and 3-way merge...
Auto-merging pilot/pkg/networking/core/v1alpha3/listener.go
CONFLICT (content): Merge conflict in pilot/pkg/networking/core/v1alpha3/listener.go
Patch failed at 0001 Add fallthrough listener filer chain for BlackHoleCluster

When can we expect to see this in a release?

@esauser it’s already merged in release-1.4 branch so you can grab the nightly or wait for the official release next week.
For release-1.3 I have a PR waiting to be merged, once that’s done you can grab the nightly from 1.3 branch or wait for 1.3.5 which should be around Nov 15.


enhancement(bulk_load): ingestion option change from copy into move

IngestExternalFileOptions is the option for ingest operation.
As RocksDB code(https://github.com/facebook/rocksdb/blob/v6.6.4/include/rocksdb/options.h#L1443) show:

struct IngestExternalFileOptions {
// Can be set to true to move the files instead of copying them.
bool move_files = false;
...
}

If IngestExternalFileOptions.move_files = true, ingest will move files, and its default value is false.
Setting move_files as true can speed up ingestion and decrease disk write throughput during ingestion.

#864


Support for multi-series time series problems

As an evalml user, I'd like to be able to use AutoMLSearch to find a good pipeline for my dataset containing multiple entities observed over time. For example, sales numbers coming from multiple stores or weather data coming from multiple (nearby) geographic locations.

Duplicate of #1506


Plugin attempts to list brokers at cluster scope

Describe the bug
Trying to send an event to a broker in a particular namespace somens fails due to restricted permissions
For example
kn event send \
    --type dev.knative.sources.ping \
    --id $(uuidgen) \
    --field somekey=someValue \
    --to Broker:eventing.knative.dev/v1:default -n somens

fails with
Error: can't sent event: reference is invalid: resource isn't addressable: failed to get lister for eventing.knative.dev/v1, Resource=brokers: brokers.eventing.knative.dev is forbidden: User "system:serviceaccount:somens:knative-developer-sa" cannot list resource "brokers" in API group "eventing.knative.dev" at the cluster scope

As I dont have permissions to list brokers at cluster scope, but I do at the namespace scope.
Expected behavior
Able to send a event successfully
To Reproduce

Create a service account which doesn't have permissions to list brokers at cluster scope and attempt to send an event to a broker.

Knative release version
v1.2
Additional context

Thanks for sending this issue. Let me clarify the kn-event behavior, so we'll be on the same page.
The kn-event will try to send the event by creating a job within a namespace of the target. The target's namespace is specified using --namespace, -n option.
You could override this behavior, by using the --sender-namespace option.
Please, try sending your event with:
kn event send \
    --type dev.knative.sources.ping \
    --id $(uuidgen) \
    --field somekey=someValue \
    --to Broker:eventing.knative.dev/v1:default \
    --namespace somens \
    --sender-namespace default # use namespace where you have permissions to create/delete jobs

At this point, I don't see this as an issue of kn-event. How do you think the kn-event should operate, if you don't have sufficient permissions on the cluster? Maybe you will be satisfied with a more intuitive error message?

Closing.
@xtreme-sameer-vohra If you consider this a bug of kn-event, please answer my questions above, and reopen the issue.


Building error in WSL (Ubuntu 22.04)

I'm using wsl2 and ubuntu 22.04.
I downloaded colmap from this:
https://colmap.github.io/install.html
When I build the pycolmap using GNinja, there were some error messages like below.
Compiling bindings without CUDA support.
Compiling bindings with CGAL support.
CMake Error at CMakeLists.txt:41 (find_package):
  By not providing "FindPTHREAD.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "PTHREAD", but
  CMake did not find one.

  Could not find a package configuration file provided by "PTHREAD" with any
  of the following names:

    PTHREADConfig.cmake
    pthread-config.cmake

  Add the installation prefix of "PTHREAD" to CMAKE_PREFIX_PATH or set
  "PTHREAD_DIR" to a directory containing one of the above files.  If
  "PTHREAD" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring incomplete, errors occurred!

When I build the pycolmap using "pip install .", there were some error messages like below.
Processing /home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pycolmap
  Building wheel for pycolmap (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [98 lines of output]
      running bdist_wheel
      running build
      running build_ext
      ['cmake', '/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/build/lib.linux-x86_64-3.10', '-DPYTHON_EXECUTABLE=/home/ywk0524/venv_python/bin/python3', '-DVERSION_INFO=0.5.0', '-DCMAKE_BUILD_TYPE=Release']
      -- Found required Ceres dependency: Eigen version 3.4.0 in /usr/include/eigen3
      -- Found required Ceres dependency: glog
      -- Found required Ceres dependency: gflags
      -- Found Ceres version: 2.0.0 installed in: /usr with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations, Multithreading]
      -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: program_options filesystem system unit_test_framework
      -- Found Eigen
      --   Includes : /usr/include/eigen3
      -- Found FLANN
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/libflann.so
      -- Found LZ4
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/liblz4.so
      -- Found FreeImage
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/libfreeimage.so
      -- Found Glog
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/libglog.so
      -- Found SQLite3
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/libsqlite3.so
      -- Found Glew
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/libGLEW.so
      CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/CGAL/CGALConfig.cmake:92 (message):
        CGAL_DATA_DIR cannot be deduced, set the variable CGAL_DATA_DIR to set the
        default value of CGAL::data_file_path()
      Call Stack (most recent call first):
        /usr/local/share/colmap/COLMAPConfig.cmake:224 (find_package)
        CMakeLists.txt:4 (find_package)

      -- Using header-only CGAL
      -- Targetting Unix Makefiles
      -- Using /usr/bin/c++ compiler.
      -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.48")
      -- Boost include dirs: /usr/include
      -- Boost libraries:
      -- Using gcc version 4 or later. Adding -frounding-math
      -- pybind11 v2.8.1
      Compiling bindings without CUDA support.
      Compiling bindings with CGAL support.
      CMake Error at CMakeLists.txt:41 (find_package):
        By not providing "FindPTHREAD.cmake" in CMAKE_MODULE_PATH this project has
        asked CMake to find a package configuration file provided by "PTHREAD", but
        CMake did not find one.

        Could not find a package configuration file provided by "PTHREAD" with any
        of the following names:

          PTHREADConfig.cmake
          pthread-config.cmake

        Add the installation prefix of "PTHREAD" to CMAKE_PREFIX_PATH or set
        "PTHREAD_DIR" to a directory containing one of the above files.  If
        "PTHREAD" provides a separate development package or SDK, be sure it has
        been installed.

      -- Configuring incomplete, errors occurred!
      See also "/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/build/temp.linux-x86_64-3.10/CMakeFiles/CMakeOutput.log".
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/setup.py", line 83, in <module>
          setup(
        File "/home/ywk0524/venv_python/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
        File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
          dist.run_commands()
        File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/home/ywk0524/venv_python/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 343, in run
          self.run_command("build")
        File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/setup.py", line 35, in run
          self.build_extension(ext)
        File "/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/setup.py", line 77, in build_extension
          subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
        File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/build/lib.linux-x86_64-3.10', '-DPYTHON_EXECUTABLE=/home/ywk0524/venv_python/bin/python3', '-DVERSION_INFO=0.5.0', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycolmap
  Running setup.py clean for pycolmap
Failed to build pycolmap
Installing collected packages: pycolmap
  Attempting uninstall: pycolmap
    Found existing installation: pycolmap 0.4.0
    Uninstalling pycolmap-0.4.0:
      Successfully uninstalled pycolmap-0.4.0
  Running setup.py install for pycolmap ... error
  error: subprocess-exited-with-error

  × Running setup.py install for pycolmap did not run successfully.
  │ exit code: 1
  ╰─> [127 lines of output]
      running install
      /home/ywk0524/venv_python/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_ext
      ['cmake', '/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/build/lib.linux-x86_64-3.10', '-DPYTHON_EXECUTABLE=/home/ywk0524/venv_python/bin/python3', '-DVERSION_INFO=0.5.0', '-DCMAKE_BUILD_TYPE=Release']
      -- The C compiler identification is GNU 11.3.0
      -- The CXX compiler identification is GNU 11.3.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Looking for pthread.h
      -- Looking for pthread.h - found
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE
      -- Found required Ceres dependency: Eigen version 3.4.0 in /usr/include/eigen3
      -- Found required Ceres dependency: glog
      -- Found required Ceres dependency: gflags
      -- Found Ceres version: 2.0.0 installed in: /usr with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations, Multithreading]
      -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: program_options filesystem system unit_test_framework
      -- Found Eigen3: /usr/include/eigen3 (Required is at least version "2.91.0")
      -- Found Eigen
      --   Includes : /usr/include/eigen3
      -- Found FLANN
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/libflann.so
      -- Found LZ4
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/liblz4.so
      -- Found FreeImage
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/libfreeimage.so
      -- Found Glog
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/libglog.so
      -- Found SQLite3
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/libsqlite3.so
      -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
      -- Found Glew
      --   Includes : /usr/include
      --   Libraries : /usr/lib/x86_64-linux-gnu/libGLEW.so
      CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/CGAL/CGALConfig.cmake:92 (message):
        CGAL_DATA_DIR cannot be deduced, set the variable CGAL_DATA_DIR to set the
        default value of CGAL::data_file_path()
      Call Stack (most recent call first):
        /usr/local/share/colmap/COLMAPConfig.cmake:224 (find_package)
        CMakeLists.txt:4 (find_package)

      -- Using header-only CGAL
      -- Targetting Unix Makefiles
      -- Using /usr/bin/c++ compiler.
      -- Found GMP: /usr/lib/x86_64-linux-gnu/libgmp.so
      -- Found MPFR: /usr/lib/x86_64-linux-gnu/libmpfr.so
      -- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found suitable version "1.74.0", minimum required is "1.48")
      -- Boost include dirs: /usr/include
      -- Boost libraries:
      -- Using gcc version 4 or later. Adding -frounding-math
      -- pybind11 v2.8.1
      -- Found PythonInterp: /home/ywk0524/venv_python/bin/python3 (found version "3.10.6")
      -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.10.so
      -- Performing Test HAS_FLTO
      -- Performing Test HAS_FLTO - Success
      Compiling bindings without CUDA support.
      Compiling bindings with CGAL support.
      CMake Error at CMakeLists.txt:41 (find_package):
        By not providing "FindPTHREAD.cmake" in CMAKE_MODULE_PATH this project has
        asked CMake to find a package configuration file provided by "PTHREAD", but
        CMake did not find one.

        Could not find a package configuration file provided by "PTHREAD" with any
        of the following names:

          PTHREADConfig.cmake
          pthread-config.cmake

        Add the installation prefix of "PTHREAD" to CMAKE_PREFIX_PATH or set
        "PTHREAD_DIR" to a directory containing one of the above files.  If
        "PTHREAD" provides a separate development package or SDK, be sure it has
        been installed.

      -- Configuring incomplete, errors occurred!
      See also "/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/build/temp.linux-x86_64-3.10/CMakeFiles/CMakeOutput.log".
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/setup.py", line 83, in <module>
          setup(
        File "/home/ywk0524/venv_python/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
        File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
          dist.run_commands()
        File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/home/ywk0524/venv_python/lib/python3.10/site-packages/setuptools/command/install.py", line 68, in run
          return orig.install.run(self)
        File "/usr/lib/python3.10/distutils/command/install.py", line 619, in run
          self.run_command('build')
        File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/setup.py", line 35, in run
          self.build_extension(ext)
        File "/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/setup.py", line 77, in build_extension
          subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
        File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/ywk0524/venv_python/pixel-perfect-sfm/colmap/pycolmap/build/lib.linux-x86_64-3.10', '-DPYTHON_EXECUTABLE=/home/ywk0524/venv_python/bin/python3', '-DVERSION_INFO=0.5.0', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  WARNING: No metadata found in /home/ywk0524/venv_python/lib/python3.10/site-packages
  Rolling back uninstall of pycolmap
  Moving to /home/ywk0524/venv_python/lib/python3.10/site-packages/pycolmap-0.4.0.dist-info/
   from /home/ywk0524/venv_python/lib/python3.10/site-packages/~ycolmap-0.4.0.dist-info
  Moving to /home/ywk0524/venv_python/lib/python3.10/site-packages/pycolmap.cpython-310-x86_64-linux-gnu.so
   from /tmp/pip-uninstall-zlyj4784/pycolmap.cpython-310-x86_64-linux-gnu.so
  Moving to /home/ywk0524/venv_python/lib/python3.10/site-packages/pycolmap.libs/
   from /home/ywk0524/venv_python/lib/python3.10/site-packages/~ycolmap.libs
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pycolmap

How can I fix this bug?

Compiling COLMAP without CGAL support should fix this issue.


Restore focus when clicked button. Fixed #87

#87
This PR is restore focus when clicked toolbar button.

Can you add some specs for this.

@jerone OK

Hi @jerone! Anything I could do to help get this merged?

hello, this merge prevents opening the command palette (command-palette:toggle). The error prone line is previouslyFocusedElement.focus(). Because of the focus on the dom element, the command-palette gets closed immediately. Any suggestions?


Share convert 2

Requires CHANGELOG update

@mortendahl I addressed most PR comments or replied to them.
I actually uncovered what I think is a bug.  If you try to share convert a sufficiently large number it will fail ~5% of the time.  I changed the test to show this.  Not sure it's worth fixing right now because we are thinking that we can bypass share convert anyway.  Considering just deferring to a different issue?

believe we can close this guy per https://github.com/mortendahl/tf-encrypted/pull/306

@bendecoste where did we end up re failing 5% of the time?

any thoughts @bendecoste?


lib: Simplify FSE_decompress_usingDTable

I just realized this is changing a third party library :see_no_evil:

Yeah - I looked into fixing our import here and found we'd forked it...


Find relevant papers about multimodal modeling

Compare with existing work in the literature, in terms of:

Multimodal unsupervised  learning and feature extraction.
Multimodal generative modeling.
Cross-modality completion and prediction.
Multimodal knowledge acquisition and representation.

Relevant_papers_0_1.pdf


Provide an option to infer a member's nominating rights from the nature of their convention membership

### Tasks
- [x] Add support for reading nomination rights from the wsfs membership
- [x] Make the use of this feature configurable

This was completed ages ago


Strange behaviour SQL Driver on linux containers, odbc/python

Hi,
i having a weird behaviour on a python/odbc scenario in containers.
First, i enable kerbernos in the container and obtain a ticket.
Then, i sign in the container an execute a simple python script:
cnxn = pyodbc.connect(driver=driver, server=server, database=database, trusted_connection='yes', TrustServerCertificate='yes')     cursor = cnxn.cursor()``
All works fine as expected.
But, in my case im using dagster. It basically creates a container to run a job and perform exactly the same python script. This job, obtains kerberos ticket an try to connect to a sql database, but i always get an error (a bit undefined).
Dagster creates a python process in the container to execute all this scripts. I sign in this exact container, run the test script, and all works fine. But the dagster job keeps failing.
I believe, there is something missing in the python process, but i cant find what.
I added debugging to the odbcinst.ini and i can see what step is failing, but there is no message from the driver about what is happening.
i double check:

there is a kerberos ticket
script test and dagster job are running as root (just for debugging)
clock between ad/container is correct
the dagster job has access to kerberos cache ticket
i also rub a dagster command from command line to execute the job in the terminal, so i dont think it is a problem related to that software.

any idea  to get more information?
Here the logs:
[ODBC][15][1706535581.285347][__handles.c][499] Exit:[SQL_SUCCESS] Environment = 0x55cbe9b856b0 [ODBC][15][1706535581.285393][SQLSetEnvAttr.c][189] Entry: Environment = 0x55cbe9b856b0 Attribute = SQL_ATTR_ODBC_VERSION Value = 0x3 StrLen = 4 [ODBC][15][1706535581.285418][SQLSetEnvAttr.c][381] Exit:[SQL_SUCCESS] [ODBC][15][1706535581.285447][SQLAllocHandle.c][395] Entry: Handle Type = 2 Input Handle = 0x55cbe9b856b0 UNICODE Using encoding ASCII 'UTF-8' and UNICODE 'UCS-2LE' [ODBC][15][1706535581.285514][SQLAllocHandle.c][531] Exit:[SQL_SUCCESS] Output Handle = 0x55cbe9b860b [ODBC][15][1706535581.286021][SQLDriverConnectW.c][298] Entry: Connection = 0x55cbe9b860b0 Window Hdl = (nil) Str In = [DRIVER={ODBC Driver 18 for SQL Server};SERVER=xxxxxxx;DATABASE=xxx;Trusted_Connection=yes;TrustServerC...][length = 141 (SQL_NTS)] Str Out = (nil) Str Out Max = 0 Str Out Ptr = (nil) Completion = 0 [ODBC][15][1706535581.317955][__handles.c][499] Exit:[SQL_SUCCESS] Environment = 0x55cbe9e259e0 [ODBC][15][1706535581.318008][SQLGetEnvAttr.c][157] Entry: Environment = 0x55cbe9e259e0 Attribute = 65002 Value = 0x7ffd397b6930 Buffer Len = 128 StrLen = 0x7ffd397b68cc [ODBC][15][1706535581.318034][SQLGetEnvAttr.c][273] Exit:[SQL_SUCCESS] [ODBC][15][1706535581.318059][SQLFreeHandle.c][220] Entry: Handle Type = 1 Input Handle = 0x55cbe9e259e0 [ODBC][15][1706535581.318123][SQLDriverConnectW.c][869] Exit:[SQL_ERROR] [ODBC][15][1706535581.318155][SQLGetDiagRecW.c][535] Entry: Connection = 0x55cbe9b860b0 Rec Number = 1 SQLState = 0x7ffd397b98b4 Native = 0x7ffd397b988c Message Text = 0x55cbe9d88410 Buffer Length = 1023 Text Len Ptr = 0x7ffd397b988a [ODBC][15][1706535581.318184][SQLGetDiagRecW.c][596] Exit:[SQL_SUCCESS] SQLState = [HY000] Native = 0x7ffd397b988c -> 851968 (32 bits) Message Text = [[Microsoft][ODBC Driver 18 for SQL Server]SSPI Provider: ] [ODBC][15][1706535581.318249][SQLFreeHandle.c][290] Entry: Handle Type = 2 Input Handle = 0x55cbe9b860b0 [ODBC][15][1706535581.318276][SQLFreeHandle.c][339] Exit:[SQL_SUCCESS] 2024-01-29 22:05:39 +0000 - dagster - ERROR - __ASSET_JOB - 02ad42c5-297d-40a2-8cc6-894e73dd9910 - hackernews_top_stories - pyodbc.Error occurred: 2024-01-29 22:05:39 +0000 - dagster - ERROR - __ASSET_JOB - 02ad42c5-297d-40a2-8cc6-894e73dd9910 - hackernews_top_stories - Error message: ('HY000', '[HY000] [Microsoft][ODBC Driver 17 for SQL Server]SSPI Provider: (851968) (SQLDriverConnect)') Traceback (most recent call last): File "/app/tutorial/assets.py", line 39, in hackernews_top_stories cnxn = pyodbc.connect(connection_string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pyodbc.Error: ('HY000', '[HY000] [Microsoft][ODBC Driver 18 for SQL Server]SSPI Provider: (851968) (SQLDriverConnect)')

Unfortunately, this is the documentation repository and we are unable to assist you. Please direct your query to Microsoft Support.

@andrescolodrero -- Andres, please consider these resources:

SQL Server on Microsoft Q&A
DBA Stack Exchange
Stack Overflow


[BUG]

Bug report
Describe the bug
Wanted to use my Awtrix with EspHoMaTriXv2, but the esp crashes on boot with or without the connected awtrix.
I've tried different settings in the yml file, but it keeps crashing.
Additional components have already been deactivated.
The esp is working with other firmwares.
[01:14:32][I][EHMTXv2:983]: set_brightness 80 => 31.37 %
[01:14:32]Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.

Add a description of the bug. Detail the expected behavior in contrast with the behavior you're observing.
Additional information

used Hardware:

ESP32 (wemos_d1_mini32)
EspHoMaTriXv2 version: git

To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Configuration
awtrix.yml
substitutions:
  devicename: awtrix
  friendly_name: Awtrix LED Matrix
  board: wemos_d1_mini32
#  ldr_pin: GPIO36
  matrix_pin: GPIO21
#  left_button_pin: GPIO26
#  mid_button_pin: GPIO16
#  right_button_pin: GPIO5
#  scl_pin: GPIO22
#  sda_pin: GPIO17

esphome:
  name: $devicename
  friendly_name: $friendly_name

esp32:
  board: $board

logger:

api:

ota:
  password: !secret ota_password

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Awtrix Fallback Hotspot"
    password: !secret wifi_fallback_pass

time:
  - platform: homeassistant
    id: homeassistant_time

external_components:
  - source:
      type: git
      url: https://github.com/lubeda/EspHoMaTriXv2
      ref: main

font:
  - file: fonts/MatrixClock-Chunky6.bdf
    id: special_font
    #size: 16
    glyphs:  |
      ! "#$%&'()*+,-./0123456789:APMTapmt
  - file: fonts/MatrixClock-Light8.bdf
    id: default_font
    #size: 16
    glyphs:  |
      ! "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz°
#  - file: 'fonts/EHMTXv2.ttf'
#    size: 16
#    id: default_font
#    glyphs:  |
#      !?"%()+*=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnÖÄÜöäüopqrstuvwxyz@<>ß§€/

display:
  - platform: addressable_light
    id: ehmtx_display
    addressable_light_id: ehmtx_light
    width: 32
    height: 8
    pixel_mapper: |-
      if (x % 2 == 0) {
        return (x * 8) + y;
      }
      return (x * 8) + (7 - y);
    rotation: 0°
    update_interval: 16ms
    auto_clear_enabled: true
    lambda: |-
      id(rgb8x32)->tick();
      id(rgb8x32)->draw();

light:
  - platform: neopixelbus
    id: ehmtx_light
    type: GRB
    internal: true
    variant: WS2812
    pin: $matrix_pin
    num_leds: 256
#    color_correct: [30%, 30%, 30%]
#    gamma_correct: 2.0
    name: "Awtrix Light"
    restore_mode: ALWAYS_OFF
    on_turn_on:
      lambda: |-
         id(ehmtx_display)->set_enabled(false);
    on_turn_off:
       lambda: |-
         id(ehmtx_display)->set_enabled(true);

ehmtxv2:
  id: rgb8x32
  icons2html: true
  matrix_component: ehmtx_display
  time_component: homeassistant_time
  time_format: "%H:%M"
  date_format: "%d.%m.%Y"
  show_seconds: false
  default_font_id: default_font
  special_font_id: special_font
  icons:
    - id: error
      lameid: 40530
#  on_next_screen:
#    - homeassistant.event:
#        event: esphome.new_screen
#        data_template:
#          iconname: !lambda "return icon.c_str();"
#          text: !lambda "return text.c_str();"

Screenshots
If applicable, add screenshots to help explain your problem.
Logs
...
[01:14:32]Rebooting...
[01:14:32]ets Jul 29 2019 12:21:46
[01:14:32]
[01:14:32]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[01:14:32]configsip: 0, SPIWP:0xee
[01:14:32]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[01:14:32]mode:DIO, clock div:2
[01:14:32]load:0x3fff0018,len:4
[01:14:32]load:0x3fff001c,len:1044
[01:14:32]load:0x40078000,len:8896
[01:14:32]load:0x40080400,len:5828
[01:14:32]entry 0x400806ac
[01:14:32][I][logger:262]: Log initialized
[01:14:32][C][ota:469]: There have been 7 suspected unsuccessful boot attempts.
[01:14:32][D][esp32.preferences:114]: Saving 1 preferences to flash...
[01:14:32][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[01:14:32][D][EHMTXv2:007]: Constructor start
[01:14:32][D][EHMTXv2:032]: Constructor finish
[01:14:32][D][EHMTXv2:1063]: add_icon no.: 0 name: error frame_duration: 500 ms
[01:14:32][D][EHMTXv2:1002]: set_display
[01:14:32][D][EHMTXv2:1008]: set_clock
[01:14:32][I][EHMTXv2:983]: set_brightness 80 => 31.37 %
[01:14:32]Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.
[01:14:32]
[01:14:32]Core  1 register dump:
[01:14:32]PC      : 0x400d8a6a  PS      : 0x00060c30  A0      : 0x800e8b16  A1      : 0x3ffb2700
[01:14:32]A2      : 0xffffffff  A3      : 0x437f0000  A4      : 0x42c80000  A5      : 0x00000008
[01:14:32]A6      : 0x00000002  A7      : 0x000001f4  A8      : 0x00000200  A9      : 0x3ffb26e0
[01:14:32]A10     : 0x00000050  A11     : 0x3f400d48  A12     : 0x000003d7  A13     : 0x3f400f64
[01:14:32]A14     : 0x00000050  A15     : 0x3ffb4efc  SAR     : 0x00000006  EXCCAUSE: 0x0000001d
[01:14:32]EXCVADDR: 0x00000218  LBEG    : 0x4008ab2d  LEND    : 0x4008ab3d  LCOUNT  : 0xfffffff1
[01:14:32]
[01:14:32]
[01:14:32]Backtrace:0x400d8a67:0x3ffb27000x400e8b13:0x3ffb2740 0x400ed46a:0x3ffb2820
[01:14:32]
[01:14:32]
[01:14:32]
[01:14:32]
[01:14:32]ELF file SHA256:<PHONE_NUMBER>000000
[01:14:32]
[01:14:32]Rebooting...
[01:14:32]ets Jul 29 2019 12:21:46
[01:14:32]
[01:14:32]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[01:14:32]configsip: 0, SPIWP:0xee
[01:14:32]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[01:14:32]mode:DIO, clock div:2
[01:14:32]load:0x3fff0018,len:4
[01:14:32]load:0x3fff001c,len:1044
[01:14:32]load:0x40078000,len:8896
[01:14:32]load:0x40080400,len:5828
[01:14:32]entry 0x400806ac
[01:14:33][I][logger:262]: Log initialized
[01:14:33][C][ota:469]: There have been 8 suspected unsuccessful boot attempts.
[01:14:33][D][esp32.preferences:114]: Saving 1 preferences to flash...
[01:14:33][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[01:14:33][D][EHMTXv2:007]: Constructor start
[01:14:33][D][EHMTXv2:032]: Constructor finish
[01:14:33][D][EHMTXv2:1063]: add_icon no.: 0 name: error frame_duration: 500 ms
[01:14:33][D][EHMTXv2:1002]: set_display
[01:14:33][D][EHMTXv2:1008]: set_clock
[01:14:33][I][EHMTXv2:983]: set_brightness 80 => 31.37 %
[01:14:33]Guru Meditation Error: Core  1 panic'ed (StoreProhibited).

Services calls
(optional) The YAML of your service calls

You're sure your Awtrix uses an ESP32 D1 Mini?  My Awtrix uses an ESP8266 D1 Mini.
'''
esp8266:
board: d1_mini
'''
BTW, to lubeda:  I have no problems compiling ESPHome for the ESP8266.  I do have to edit the YAML quite a bit but it works just fine.

Yes, originally the Awtrix uses an EPS8266 (D1 Mini). The old blueforcer firmware is still running on this.
But now I wanted to switch to ESPHome and use the full potential of EspHoMaTriXv2, so I got an ESP32 (D1 Mini ESP32) to replace the ESP8266. This should fit, the pin assignment is identical in the two inner pin rows.
Unfortunately, the above error always occurs, regardless of whether the ESP32 is built into the Awtrix or is only powered via USB.
I'm a little confused...

BTW, how can I be sure that the current/latest code from main is used?

Hi,
with this/your  configuration you always use the latest version:
external_components:
  - source:
      type: git
      url: https://github.com/lubeda/EspHoMaTriXv2
      ref: main

For the "bug" I experienced this error also sometimes, but I don't think it is a problem of my module. I think it is a problem of the compiler or esphome. If you change your yaml and add another component, like webserver: it may work.
Sometimes it worked when I pressed "clean build files" in esphome.

I'm about 1000km away from my display on holiday. I will take a look after my vacation.

I added web_server: to the yml, and cleaned build-files (I had already done this several times before compiling), but the esp32 keeps crashing/rebooting.
Here is the data that the esphome-flasher delivers:
Using 'COM8' as serial port.
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting.........
Detecting chip type... ESP32
Connecting...........

Chip Info:
 - Chip Family: ESP32
 - Chip Model: ESP32-D0WD-V3 (revision 3)
 - Number of Cores: 2
 - Max CPU Frequency: 240MHz
 - Has Bluetooth: YES
 - Has Embedded Flash: NO
 - Has Factory-Calibrated ADC: YES
 - MAC Address: XX:XX:XX:XX:XX:XX
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
 - Flash Size: 4MB
 - Flash Mode: dio
 - Flash Frequency: 40MHz
Erasing flash (this may take a while)...
....

The only thing I can recommend is to try downloading a bin and flashing using other flashers.
In particular for the ESP32 in Windows, I like: https://github.com/esphome/esphome-flasher/releases
I also sometimes use the Python esptool as well.

I also had an issue like this, where I got error message Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.
I was able to fix it by moving the light configuration to be above the display configuration in the yaml:
esphome:
  name: matrix
  friendly_name: Matrix

esp32:
  board: esp32dev

external_components:
  - source:
      type: git
      url: https://github.com/lubeda/EspHoMaTriXv2
      ref: main

light:
  - platform: neopixelbus
    id: ehmtx_light
    type: GRB
    num_leds: 256
    variant: WS2812
    pin: 13
    on_turn_on:
      lambda: |-
         id(ehmtx_display)->set_enabled(false);
    on_turn_off:
       lambda: |-
         id(ehmtx_display)->set_enabled(true);
#    color_correct: [30%, 30%, 30%]
#    gamma_correct: 2.0

display:
  - platform: addressable_light
    id: ehmtx_display
    addressable_light_id: ehmtx_light
    width: 32
    height: 8
    pixel_mapper: |-
        return ((int) (x/8 * 64)) + x % 8 + y * 8;
    rotation: 0
    update_interval: 16ms
    auto_clear_enabled: true
    lambda: |-
      id(rgb8x32)->tick();
      id(rgb8x32)->draw();

ehmtxv2:
  id: rgb8x32
  time_component: ntp
  matrix_component: ehmtx_display
  default_font_id: ehmtx_font
  special_font_id: ehmtx_font
  show_seconds: true
  brightness: 20 # percent
  time_format: "%H:%M"
  date_format: "%d.%m."
  scroll_count: 2 # scroll long text at least two times
  scroll_interval: 80 # milliseconds
  icons:
    - id: boot
      lameid: 49151
    - id: temp
      lameid: 2369

I also had an issue like this, where I got error message Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
I was able to fix it by moving the light configuration to be above the display configuration in the yaml:
esphome:
....
light:
...
display:
...
ehmtxv2:
...

YES ... that did the trick 👍

Should that be mentioned somewhere?

Thanks for your investigation. I noted this tip in a wiki article.

Just wanted to add a note here for people searching in the future.  I recently updated my clocks (for the first time in a year - whoops, been busy).  And I got a similar kernel panic error (but with a divide by zero error)... and I ended up following the ulanzi-easy.yaml file. I copied and pasted my chunks of code back in the order they appear in the easy file.  Compiled, uploaded, and ran fine after that.
I still can't figure out the exact ordering error - and I've even tested out a few re-orders of components... but sometimes starting from scratch clears up any problems.


shrink default mem, except prometheus

Setting to 50M per recommendation from @jsravn
On a single node minikube install doing nothing, max memory usage is
kube-state:  19M
node-exporter: 8M
prometheus: 204M
alert-manager: 8M
es-console: 2M
grafana: 33M
and container_spec_cpu_shares is near zero.  Prometheus and Alertmanager are 4.

I think the idea is to be pretty close to the minimum.  This won't stop it from taking more, but does stop it if less than the request is available.


Added PSP22 pallet-wrapper

@PierreOssun I built and upload PSP22 pallet-wrapper contract but when deposite it throws contracts.NoChainExtension error. Why this is happening?

@PierreOssun I am using @astar-network/swanky-cli/1.0.0-rc.4 darwin-x64 node-v18.12.1, while init project I faced this error what could be the possible reason behind this issue?

@123oli use repo issue's for this https://github.com/AstarNetwork/swanky-cli/issues/47


[resolves #2430] Upgrade to wildfly-13.0.0

We should also bump the docker base image version to openshift/wildfly-130-centos7.

We should also bump the docker base image version to openshift/wildfly-130-centos7.

+1, thanks

b6cdf50 has <docker.image.from>openshift/wildfly-130-centos7:latest</docker.image.from> and returns back to comparing against wildfly-parent instead of the new generated wildfly-component-matrix. Please re-review.

Can we fix up conflicts. Also, we should bump the project version to 7.0.0-SNAPSHOT.

ceb1db3 :

Rebased on top of the latest master
Added version bump to 7.0.0-SNAPSHOT

ok to test

retest this please

Seems we'll need to fix this https://github.com/wildfly-extras/wildfly-camel/issues/2564.


Word count dialog box to show

Currently , when we press on word count it opens a dialog box basically hanging the tool. So only after cancelling the dialog the user can work on the editing.
What we can do is to show the dialog box in such a way that user will still be able to work on the tool.

Completed on commit number :-> 745108f


Icons of Method and Function are Different

Describe the bug
The icon of a method is different from that of a function (in a Python file), as shown below. Is this an issue or a feature?

Reproduction
Apply our product icon theme
System Info
System:
    OS: Windows 10 10.0.19044
    CPU: (12) x64 Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz
    Memory: 15.20 GB / 31.71 GB
  Binaries:
    Node: 16.17.0 - C:\Program_Files\nodejs\node.EXE
    npm: 8.15.0 - C:\Program_Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (106.0.1370.37)
    Internet Explorer: 11.0.19041.1566

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
[X] The provided reproduction is a minimal reproducible of the bug.

I prefer to consider it a feature

I prefer to consider it a feature

The feature itself is excellent :)
Here are some suggestions:

Change the icon of methods (the purple box) to function icon (the current icon for functions). Because it has a circle on the background, making it more like a combination of "object" and "function", which is "method".
Change the icon of functions to function-math icon. Because it looks like a "pure function".

Sounds good, PR welcome

Sounds good, PR welcome

I would like to make a PR. But seems this project's structure is a bit different from other icon themes I saw.
For example, fluent icon and material icon all have a theme folder containing the files controlling the theme. But I didn't find it here.
It's a bit awkward, but could you explain a bit about how to contribute to the project :)

You just need to update the icon ids of https://github.com/antfu/vscode-icons-carbon/blob/main/scripts/sets.ts

Just as a heads up, now some css properties show up as functions:

Just as a heads up, now some css properties show up as functions:

Sorry I'm not familiar with front-end things :(
But could you try reverting the icon theme to the previous version and check how they show up? If they show up as "an f with a circle" with the previous version, I think #13 is OK. Otherwise, it's problematic.

Yes they show up like this in the previous version. So it's always been a bit weird 😅
For some reason I thought they were cubes previously.

@Pustur I guess there might be some problems with VSCode's JS/TS code completions function 🤔?
In the following screenshot, all the properties (symbol-property) in code completion are labeled with a cube, which is configured to represent field (symbol-field). But in the outline view, those properties are properly labeled.


Various updates

Rename platform-setup inputs and use new version
Use docker/metadata-action
Output tag that was built and pushed (to pass to deploy)

There's a companion update in platform-deploy-action, and both have been tested together via bugsnag-update.


Consistent output formats

Description of feature
At the moment variant files are a mix of vcf and bcf, some indexed and some not, some compressed and some not.
Standardise output variant files as compressed and indexed vcf (vcf.gz) files.
VCF.GZ

[x] TRGT singlesample
[ ] GLNEXUS
[ ] ECHTVAR_ANNO

BED.GZ

[ ] Modkit
[ ] Modkit haplotypes
[ ] (Dipcall)

TBI/CSI

[ ] DeepVariant gVCF
[ ] DeepVariant VCF
[ ] HiFiCNV
[X] WhatsHap phase
[ ] (Dipcall)
[x] TRGT singlesample
[x] TRGT multisample
[X] Sniffles singlesample
[X] Sniffles multisample
[ ] Modkit
[ ] Modkit haplotypes

Let's break out file naming in a separate issue #154, since this will be more important closer to implementation.


Use .ts files instead of .tsx files

Avoid using .tsx files for constants- and type defenitions.
Type assertions with <> don't work as that is the marker for a jsx tag.
Example:
let a: any;
let s = a as string // ok in tsx and ts
let s2 = <string>a // only valid in ts
Generic arrow functions with no constraint are not parsed correctly:
The arrow function below is ok in ts but an error in tsx as  is interpreted as the start of a tag in tsx:
const fn = <T>(a: T) => a
Also, consider using a .d.ts files for type defenitions, as it is the standard for typescript.

Cool, thanks for the input!


CORS hassle free proxy

If I'm missing something and/or wrong about this, please correct me, thanks!
I find the implementation using https://github.com/chimurai/http-proxy-middleware is convenient, except that it's not always so simple when facing Access-Control header restrictions, which often requires the API/Data/Backend server to configure CORS.
One sure way I can think of is to use an HTTP client library such as https://github.com/mzabriskie/axios or https://github.com/request/request to make the request through server side (which to my understanding isn't restricted by the cross-origin settings anymore) and pipe the retrieved response to the client, like req.pipe(request({...API_OPTIONS...})).pipe(res) for the simplest example inside the API tunneling/proxy middleware.
Again, maybe I'm missing something very obvious and dead simple to achieve the same through http-proxy-middleware, in which case please point out.

Not tested, but wouldn't it be enough to add this to the middleware?
// devServer.js

var devMiddleware = require('webpack-dev-middleware')(compiler, {
  headers: { "Access-Control-Allow-Origin": "*" }
  // ... other options.
})

@LinusBorg it doesn't work. Even if it does, I would still feel that a server-to-server based API tunneling is the most reliable choice (and equivalently trivial)

Can we take a step back and re-evaluate the problem so I'm sure I don't miss something? I'm not sure that I understand your problem anymore. CORS is somethign that drives me nuts everytime I have to deal with it.
So: Where is the CORS requirement coming from?

except that it's not always so simple when facing Access-Control header restrictions, which often requires the API/Data/Backend server to configure CORS.

I'm not sure what your actual problem ishere. Does your backend API send a CORS header with its response that does not include localhost:8080? Or what exactly is causing the problem?

Let's say the backend API server does not have explicit CORS header configured, and by default prevents any form of cross-origin client side request, rightly so. So the problem is that we would get complaint (and an error in browser) that says the request hit localhost:PORT but the response actually comes from actual_backend_API_server.com, with no explicit allowance through the CORS headers, no go.
That's why I'm proposing to have the default dev-server.js implementation to instead of using the proxy middleware, having a simple middleware to perform a "server-to-server" request from dev-server to the designated backend API server(s), retrieve the data stream, and pipe to the response that dev-server sends to the client side (in usual case, a browser). No more CORS configuration and meddling on any layer of the stack, because so long you have access (through authentication, VPN, or whatever other means of protection), a server-to-server HTTP request is never governed by the CORS headers.
And such simple middleware can be done through request library which nicely supports stream piping. But one can easily use axios, or even the raw HTTP module from node.js.

Here's a simple example I used to replace the default one
// one can easily make this work with the `proxyTable` object to handle multiple configs
app.all('/api/*', (req, res, next) => {
  return req.pipe(request({
    uri: req.path.replace(/^\/api/, ''),
    baseUrl: 'http://my.api.server.com',
    qs: req.query,
    method: req.method
  })).on('error', next).pipe(res).on('error', next)
})
// this is used to capture the stream errors
app.use((err, req, res, next) => {
  console.error(err.stack)
  res.sendStatus(500)
})

Not sure if that's related, but here's my dev-server config:
devServer: {
        historyApiFallback: true,
        noInfo: true,
        proxy: {
            '*': {
                target: 'http://my-site.local',
                changeOrigin: true, // applies 'host' header
                secure: false,
                cookieDomainRewrite: '',
                onProxyReq: function (request, req, res) {
                    request.setHeader('origin', 'http://my-site.local') // applies 'origin' header
                }
            },
        }
    },

Works with CORS and cookie authentication.

Thanks for the pointer on the onProxyReq option @asvae. Unfortunately, I would still get browser complaining about CORS:
XMLHttpRequest cannot load http://SOME_REMOTE_HOST/path/to/api. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
It's such a puzzle to me right now 😞

@woozyking could it be you're using absolute urls for you ajax?
They should look like this:
/api/user/create

And not like this
http://project.local/api/user/create

Because proxy proxies only requests to localhost.

@asvae yes I certainly requested the intended proxy path as such on client side
axios.get(/api/campaigns?id=${...}...).then(...)

@woozyking check baseURL in axios config.

@asvae I didn't even set it, literally just axios.get(...)

@woozyking then I don't get how browser would think you're making request to http://SOME_REMOTE_HOST/path/to/api and not http://localhost:8080/path/to/api. Given you're sitting on http://localhost:8080.
Please check Request URL as well as origin and host headers.

This is what I'm confused about too @asvae as I simply just request on http://localhost:8080/path/to/api it would "redirect" to the matching http://SOME_REMOTE_HOST/path/to/api specified in proxyTable.
Anyway the values are as the following:
⎢ Original URL: /api/endpoint?query=value
⎢ Host Name: localhost
⎢ Origin: undefined

It looks like the origin header is not set

Here are mine:
Request URL: http://localhost:8080/api/server/get-project-environment
Host: localhost:8080
Origin: http://localhost:8080

I wonder if axios thinks host is absent or something.

@asvae thank you for all the help. I'll dive deeper later on this and report back any new findings.

I'm not 100% sure if I understood your problem.  For me I have a dev server running for my backend api (django) and a the vue dev server running webpack hot reload (express).  The two had different ports and hostnames.  So I had to configure my webpack public path, my webpack hot reloader path and fix express to allow CORS.  Here are the changes I made.  I don't know the best way to close the issue, but I imagine this is a common use case. Is there already documentation for this issue?  If not maybe a comment in the template linking to some docs?
To fix __webpack_hmr from not being found (checking the wrong hostname/port)
build/dev-client.js
- var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
+ var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true&path=http://localhost:8080/__webpack_hmr')

To fix hot-reload.json from not being found / loading an html page from my django server
config/index.js
-    assetsPublicPath: '/',
+    assetsPublicPath: 'http://localhost:8080/',

To fix the hot-reload.json CORS issue (No 'Access-Control-Allow-Origin' header is present on the requested resource.)
build/dev-server.js
(npm install cors --save)
+ // allows cross domain requests on dev server so hot reload will work between django and vue dev servers
+ var cors = require('cors')
+ app.use(cors())

Some links to the issues you might find useful:
https://github.com/glenjamin/webpack-hot-middleware#client
http://webpack.github.io/docs/configuration.html#output-publicpath
https://github.com/gaearon/react-hot-loader/blob/master/docs/Troubleshooting.md#no-access-control-allow-origin-header-is-present-on-the-requested-resource
https://github.com/expressjs/cors

@LinusBorg You know I just looked at your first comment and that may be simpler than adding the cors middleware express package?  I haven't tried it.

Thanks @stcqu, I'll experiment with your suggestions and see if that would make things simpler.
At the end of the day this is a very minor part of the end product that one may ship. Right now we went as far as building the API proxy as part of the production server because the complexity kind of warrants this structure (especially that in our use case we handle sessions). We then factored the common logics out and have it imported by both the dev-server and production server as a shared middleware.
I think it comes down to how much logic is utilized and shared between dev server and production server environment (when applicable), as some, or many Vue projects are developed without a production server side.
I personally think that this issue could be closed as it only troubles a portion of the broader use cases that's not even vuejs-templates/webpack project's main concern (and frankly, shouldn't be).

Since this issu eis quite old, and we will switch to webpack-dev-server in the coming days, I wil close this. If this still needs further discussion, please open a new issue with a reference to this one and we will see how to resolve this in the new envorinment with webpack-dev-server, if necessary.


Initial Installation Failure || Not able to call subprocess.py

Version -1.1.10
Initial Setup During Installation using Google Cloud Shell SDK
Exact Error Message-->

Traceback (most recent call last):
File "setup_forseti.py", line 70, in
run()
File "setup_forseti.py", line 66, in run
forseti_setup.run_setup()
File "C:\Users\avikumar3\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\forseti-security\scripts\gcp_setup\environment\gcloud_env.py", line 159, in run_setup
self.gcloud_info()
File "C:\Users\avikumar3\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\forseti-security\scripts\gcp_setup\environment\gcloud_env.py", line 301, in gcloud_info
['gcloud', 'info', '--format=json'])
File "C:\Users\avikumar3\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\forseti-security\scripts\gcp_setup\environment\gcloud_env.py", line 218, in run_command
stderr=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 390, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Local System Deployment

Thanks,
Avi

Hi Avi,
Thank you for your interest in Forseti!
The installation failed because in order for the python subprocess library to run shell commands on Windows, we will need to have its shell flag set to true.
Forseti installation tool was designed to run on a Google Cloud Shell environment, do you mind try running the installation again on Google Cloud Shell? You can find instructions on how to use Google Cloud Shell here: https://cloud.google.com/shell/docs/quickstart
Please let us know if it is a problem for you to run the installation on cloud shell and we will try to figure out another solution for you.
Best regards,
Joe

Hi @aviakasurvivor ,
I just wanted to follow up with you on this issue, did you manage to resolve the problem?
Best regards,
Joe

Hi @joecheuk I was able to access the forseti_conf.yaml file but upon running the command
forseti_inventory--forseti_config /home/ubuntu/forseti-security/configs/forseti_conf.yaml
I am receiving an error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/inventory/inventory_loader.py", line 356, in
app.run()
File "/usr/local/lib/python2.7/dist-packages/google/apputils/app.py", line 238, in run
return _actual_start()
File "/usr/local/lib/python2.7/dist-packages/google/apputils/app.py", line 267, in _actual_start
really_start()
File "/usr/local/lib/python2.7/dist-packages/google/apputils/app.py", line 220, in really_start
sys.exit(main(argv))
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/inventory/inventory_loader.py", line 352, in main
notifier.process(message)
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/notifier/notifier.py", line 135, in process
payload.get('email_recipient')
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/notifier/pipelines/email_inventory_snapshot_summary_pipeline.py", line 113, in run
self._send(email_sender, email_recipient, email_subject, email_content)
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/notifier/pipelines/email_inventory_snapshot_summary_pipeline.py", line 91, in _send
attachment=attachment)
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/common/util/email_util.py", line 118, in send
response = self._execute_send(email)
File "build/bdist.linux-x86_64/egg/retrying.py", line 49, in wrapped_f
File "build/bdist.linux-x86_64/egg/retrying.py", line 206, in call
File "build/bdist.linux-x86_64/egg/retrying.py", line 247, in get
File "build/bdist.linux-x86_64/egg/retrying.py", line 200, in call
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/common/util/email_util.py", line 60, in _execute_send
return self.sendgrid.client.mail.send.post(request_body=email.get())
File "/usr/local/lib/python2.7/dist-packages/python_http_client-3.0.0-py2.7.egg/python_http_client/client.py", line 227, in http_request
return Response(self._make_request(opener, request))
File "/usr/local/lib/python2.7/dist-packages/python_http_client-3.0.0-py2.7.egg/python_http_client/client.py", line 161, in _make_request
raise exc
python_http_client.exceptions.UnauthorizedError
The same goes for Scanner too, upon running the command
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/scanner/scanner.py", line 120, in
app.run()
File "/usr/local/lib/python2.7/dist-packages/google/apputils/app.py", line 238, in run
return _actual_start()
File "/usr/local/lib/python2.7/dist-packages/google/apputils/app.py", line 267, in _actual_start
really_start()
File "/usr/local/lib/python2.7/dist-packages/google/apputils/app.py", line 220, in really_start
sys.exit(main(argv))
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/scanner/scanner.py", line 105, in main
global_configs, scanner_configs, snapshot_timestamp).build()
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/scanner/scanner_builder.py", line 92, in build
rules)
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/scanner/scanners/cloudsql_rules_scanner.py", line 50, in init
self.rules_engine.build_rule_book(self.global_configs)
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/scanner/audit/cloudsql_rules_engine.py", line 54, in build_rule_book
self.rule_book = CloudSqlRuleBook(self._load_rule_definitions())
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/scanner/audit/base_rules_engine.py", line 68, in _load_rule_definitions
rules = file_loader.read_and_parse_file(self.full_rules_path)
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/common/util/file_loader.py", line 43, in read_and_parse_file
return _read_file_from_local(file_path)
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/common/util/file_loader.py", line 109, in _read_file_from_local
with open(os.path.abspath(file_path), 'r') as rules_file:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/rules/cloudsql_rules.yaml'
I have changed the forseti_conf.yaml file as per the instructions but it is still showing an error.
The scanner error for cloudsql was initially showing for other resources too, I just changed their value to false and left cloudsql value as true but it again got stuck with the error.
Please help me find the next steps now.
Thanks,
Avi

Hi Avi,
For your first problem, it seems like the exception is related to sending emails. Can you double check the following fields in the forseti_conf.yaml file and make sure they are either filled out or left empty?

email_recipient
email_sender
sendgrid_api_key

You can find more information on how to generate a sendgrid API key here:
https://forsetisecurity.org/docs/howto/configure/email-notification.html
For your second problem, the application is not able to locate the rule files, can you double check the rule_path field in your forseti_conf.yaml file and make sure it's pointing to /home/ubuntu/forseti-security/rules (e.g. rules_path: /home/ubuntu/forseti-security/rules)?
Hope that helps, please let us know if you are more questions!
Best regards,
Joe

Hi @joecheuk
I was able to configure inventory as well as Scanner with the updates you mention , thank you for that.
It was done without an email notification,
Upon creating an account with sendgrid and creating an API key I tried updating the forseti_conf.yaml file, I was again stuck with some errors, it would be great if you could help me out with the same.
The error message is below -:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/inventory/inventory_loader.py", line 356, in
app.run()
File "/usr/local/lib/python2.7/dist-packages/google/apputils/app.py", line 238, in run
return _actual_start()
File "/usr/local/lib/python2.7/dist-packages/google/apputils/app.py", line 267, in _actual_start
really_start()
File "/usr/local/lib/python2.7/dist-packages/google/apputils/app.py", line 220, in really_start
sys.exit(main(argv))
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/inventory/inventory_loader.py", line 352, in main
notifier.process(message)
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/notifier/notifier.py", line 135, in process
payload.get('email_recipient')
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/notifier/pipelines/email_inventory_snapshot_summary_pipeline.py", line 113, in run
self._send(email_sender, email_recipient, email_subject, email_content)
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/notifier/pipelines/email_inventory_snapshot_summary_pipeline.py", line 91, in _send
attachment=attachment)
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/common/util/email_util.py", line 118, in send
response = self._execute_send(email)
File "build/bdist.linux-x86_64/egg/retrying.py", line 49, in wrapped_f
File "build/bdist.linux-x86_64/egg/retrying.py", line 206, in call
File "build/bdist.linux-x86_64/egg/retrying.py", line 247, in get
File "build/bdist.linux-x86_64/egg/retrying.py", line 200, in call
File "/usr/local/lib/python2.7/dist-packages/forseti_security-1.1.10-py2.7.egg/google/cloud/security/common/util/email_util.py", line 60, in _execute_send
return self.sendgrid.client.mail.send.post(request_body=email.get())
File "/usr/local/lib/python2.7/dist-packages/python_http_client-3.0.0-py2.7.egg/python_http_client/client.py", line 227, in http_request
return Response(self._make_request(opener, request))
File "/usr/local/lib/python2.7/dist-packages/python_http_client-3.0.0-py2.7.egg/python_http_client/client.py", line 161, in _make_request
raise exc
python_http_client.exceptions.UnauthorizedError
The forseti_conf.yaml file is below too  -:
**# Copyright 2017 The Forseti Security Authors. 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.
global:
# database
db_host: <IP_ADDRESS>
db_user: root
db_name: forseti_security

# gsuite
groups_service_account_key_file:
domain_super_admin_email:

# notification
# Remove or comment out the email properties if you do not want Forseti to
# send email notifications.
email_recipient<EMAIL_ADDRESS> // these values are correctly input, I am just
email_sender<EMAIL_ADDRESS>   // updating it here
sendgrid_api_key: api-key-forseti-security                      // The API key generated at SendGrid

# quota
  # The pre-populated values are the defaults from GCP.
max_admin_api_calls_per_100_seconds: 1500
max_appengine_api_calls_per_second: 20
max_bigquery_api_calls_per_100_seconds: 17000
max_cloudbilling_api_calls_per_60_seconds: 300
max_compute_api_calls_per_second: 20
max_container_api_calls_per_100_seconds: 1000
max_crm_api_calls_per_100_seconds: 400
max_iam_api_calls_per_second: 20
max_results_admin_api: 500
max_sqladmin_api_calls_per_100_seconds: 100

##############################################################################
inventory:
# Valid values are: debug, info, warning, error
loglevel: info

pipelines:
    - resource: appengine
      enabled: true
    - resource: backend_services
      enabled: true
    - resource: bigquery_datasets
      enabled: true
    - resource: buckets
      enabled: true
    - resource: buckets_acls
      enabled: true
    - resource: cloudsql
      enabled: true
    - resource: firewall_rules
      enabled: true
    - resource: folder_iam_policies
      enabled: true
    - resource: folders
      enabled: true
    - resource: forwarding_rules
      enabled: true
    - resource: ke
      enabled: true
    - resource: group_members
      enabled: true
    - resource: groups
      enabled: true
    - resource: instance_group_managers
      enabled: true
    - resource: instance_groups
      enabled: true
    - resource: instance_templates
      enabled: true
    - resource: instances
      enabled: true
    - resource: org_iam_policies
      enabled: true
    - resource: organizations
      enabled: true
    - resource: projects
      enabled: true
    - resource: projects_iam_policies
      enabled: true
    - resource: service_accounts
      enabled: true

##############################################################################
scanner:
# Valid values are: debug, info, warning, error
loglevel: info

# Output path (do not include filename).
# If GCS location, the format of the path should be:
# gs://bucket-name/path/for/output
output_path: gs://output-for-scanner/Output

# Rules path (do not include filename).
# If GCS location, the format of the path should be:
# gs://bucket-name/path/for/rules_path
# if no rules_path is specified, rules are
# searched in /path/to/forseti_security/rules/
rules_path: /home/ubuntu/forseti-security/rules

scanners:
    - name: bigquery
      enabled: true
    - name: blacklist
      enabled: true
    - name: bucket_acl
      enabled: true
    - name: cloudsql_acl
      enabled: true
    - name: firewall_rule
      enabled: true
    - name: forwarding_rule
      enabled: true
    - name: ke_version_scanner
      enabled: true
    - name: group
      enabled: true
    - name: iam_policy
      enabled: true
    - name: iap
      enabled: true
    - name: instance_network_interface
      enabled: true

##############################################################################
notifier:
# For every resource type you can set up a notification pipeline
# to send alerts for every violation found
resources:
    - resource: policy_violations
      should_notify: true
      pipelines:
        # Email violations
        - name: email_violations_pipeline
          configuration:
            sendgrid_api_key: 'api-key-forseti-security'                // The API key generated at SendGrid
            sender<EMAIL_ADDRESS>      // these values are correctly input, I am just
            recipient<EMAIL_ADDRESS>   // updating it here
        # Upload violations to GCS.
        - name: gcs_violations_pipeline
          configuration:
            # gcs_path should begin with "gs://"
            gcs_path: ''
        # Slack webhook pipeline
        # Create an incoming webhook in your organization's Slack setting, located at:
        # https://[your_org].slack.com/apps/manage/custom-integrations
        # Add the provided URL in the configuration below in `webhook_url`.
        - name: slack_webhook_pipeline
          configuration:
            webhook_url: ''

**

Hi @aviakasurvivor ,
Since based on the exception, you are getting unauthorized error when sending emails, I suspect the sendgrid api key might not be generated properly or it's not being set correctly in the forseti_conf.yaml file. Please note that for all these fields:
sendgrid_api_key: 'api-key-forseti-security'
sender<EMAIL_ADDRESS>recipient<EMAIL_ADDRESS>Quotes are not needed, so it should look something like this:
sendgrid_api_key: api-key-forseti-security
sender<EMAIL_ADDRESS>recipient<EMAIL_ADDRESS>Do you mind confirming the sendgrid API key was properly generated, remove those quotes and try again?
We have a discussion board for Forseti Q&A and we encourage users to ask their questions there because there might be other users with the same problem looking for solutions. If you don't mind it would be awesome if you can post your questions there next time!
Forseti discussion board:
https://groups.google.com/a/forsetisecurity.org/forum/#!forum/discuss
Best regards,
Joe

Hi @joecheuk
Thanks a lot for all the help I was successfully able to complete my POC on Forseti-Security and a big thanks to you and your team who have developed such a wonderful security tool and I hope to see the upcoming modifications very soon so that I can have my hands dirty on the same.
Keep up the good work and cheers.
Thanks
Avi

Hi @aviakasurvivor ,
No problem at all, we are glad that you got the application up and running!
If you have more questions or suggestions, feel free to send an email to<EMAIL_ADDRESS>or post it on the Forseti discussion board.
Thanks,
Joe


Load data: Fields updated and methods updated

ENSVAR-4451

New PR has been created using https://github.com/EBI-G2P/ensembl-gene2phenotype/pull/51 using changes made here as base.


Reduce navigator renders during reparenting.

Fixes #1545
Problem:
Currently re-parenting is surprisingly slow, to the point of making it slowly replay the previous movements once you stop moving it.
Fix:
The primary fix in this is to make the dropTargetHint value only be present when the target matches the current item in the navigator. Previously as the value changed (3 times approximately if an item is dragged over fully), that would cause every single item in the navigator to be re-rendered.
Commit Details:

Fixes #1545.
Separated out the type of the navigator field in EditorState.
Moved DropTargetType and DropTargetHint to live next to the
newly created NavigatorState type.
Made NavigatorItemDragAndDropWrapperProps.dropTargetHint be a
nullable value and renamed it slightly to give some indication
that it would only be there if relevant.
NavigatorItemWrapper only includes the (previously named)
dropTargetHint value if it points to the same path as the current
element. Previously when this changed as the user dragged around
the entire navigator was re-rendered.
Created a KeepDeepEqualityCall instance for the NavigatorState
and used it in the actions in place of immutability-helper.

@balazsbajorics Would you fancy giving this a spin when it's available to see how much of a difference it makes?

@balazsbajorics Would you fancy giving this a spin when it's available to see how much of a difference it makes?

yes! :)

it's much better now! 🦜


Python 3.7 required to avoid infinite loops when using getNetworkEvents()

The logic to stop an infinite loop when pulling network logs depends on the datetime.fromisoformat() method, which wasn't introduced until python 3.7.  Using this SDK with python 3.6.9 (and earlier versions) can result in an infinite loop; the rest_session instance must hide the exception somewhere.
When running the code manually, I eventually discovered the issue after seeing this error:
AttributeError: type object 'datetime.datetime' has no attribute 'fromisoformat'
Relevant code here
It appears the python-dateutil package offers a solution to this.
Details here

Upon further investigation, I was using v1.0.0.  Using v1.4.0, the AttributeError is seen when running getNetworkEvents().

Hi @markciecior and thanks for reporting this. The setup guide does mention using the most recent version of Python, which at this point is 3.9.0--but as you mentioned, this works on 3.7 as well. Seems like 3.7 is the soft requirement.
I will close this for now, but as always, we welcome outside pull requests should you like to help improve the SDK!


NETOBSERV-627 merge Agent and FLP (PoC)

Description
Do not deploy FLP: instead, configure the Agent to start FLP in-process. This only works without Kafka.
This is a PoC: consider merging only if it improves performances.
Dependencies

n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

[x] Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
[ ] Does this PR require product documentation?

[ ] If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.

[ ] Does this PR require a product release notes entry?

[ ] If so, fill in "Release Note Text" in the JIRA.

[ ] Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.

[ ] If so, make sure it is described in the JIRA ticket.

QE requirements (check 1 from the list):

[ ] Standard QE validation, with pre-merge tests unless stated otherwise.
[ ] Regression tests only (e.g. refactoring with no user-facing change).
[ ] No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

@msherif1234 ok I finally have all working with mounted certificates etc.
There's also a new agent image: https://github.com/netobserv/netobserv-ebpf-agent/pull/268


#68-#72 Support for dative and hydrogen bonds

this pull request is closed due to an incorrect name. Two separate pull requests will be created


no such file or directory

An issue from a newbie....
I've installed findssh with pip, when trying to start with python(3) findssh this error is shown:
python3: can't open file 'findssh': [Errno 2] No such file or directory

If you have used pip install findssh
then run simply by
findssh.py


Add the ability to update resources in Unit Ruby gem

This PR updates the save resource & tests its usage in each of the resources that utilize it.

@cisacke just made the adjustment so that it can accept Unit::Types!