how we can use css as js

Is your feature request related to a problem? Please describe.

Describe the solution you'd like:

Describe alternatives you've considered:

Additional context:

We are working on support for sourcemaps and would love to get some examples on how people use them. Can you share more where you get stuck?

yes,when I write some code for making a website I write more and more css
but I need to use algorithms for css to apply like If I want to see some
text show after 3s  I need to use algorithms.😀
On Wed, Dec 15, 2021 at 10:57 PM Christian Heilmann <
@.***> wrote:

We are working on support for sourcemaps and would love to get some
examples on how people use them. Can you share more where you get stuck?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-edge-devtools/issues/758#issuecomment-995006496,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWEBVZIY44BY5DXNSSOF673URDFXTANCNFSM5KBENOWA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Not really, you can use CSS transition and animation with delay.
https://developer.mozilla.org/en-US/docs/Web/CSS/animation-delay
This is not a bug, it is a feature request and we are working on it, so I am closing this issue. One of the next versions will have support for CSS in JS with sourcemaps.

Cool, thanks!
On Wed, Dec 29, 2021 at 8:34 PM Christian Heilmann @.***>
wrote:

Not really, you can use CSS transition and animation with delay.
https://developer.mozilla.org/en-US/docs/Web/CSS/animation-delay
This is not a bug, it is a feature request and we are working on it, so I
am closing this issue. One of the next versions will have support for CSS
in JS with sourcemaps.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode-edge-devtools/issues/758#issuecomment-1002637904,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWEBVZO7UQY53TAGN2HJZXDUTMPQTANCNFSM5KBENOWA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>


Please consder making a release

It is difficult to track changes, and determine when packages need to be updated without releases.
They will end up being updated once in a few years.

Well, it will be released once it is stable, which is not yet the case.


ImportError (undefined symbol)

Any idea what could be going on here? Did the openssl libs not link in correctly?
>>> import pybloomfilter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib64/python2.6/site-packages/pybloomfiltermmap-0.3.4-py2.6-linux-x86_64.egg/pybloomfilter.so: undefined symbol: EVP_sha512

Hey - How did you build this? Perhaps you don't have the libssl libraries installed?

I built with the python installer:
sudo python setup.py install

There were no complaints from gcc, everything seem to compile fine.
As for libssl, I am pretty sure it is installed:
[root@ip-10-0-1-215 lib64]# find / -name "libssl*"
/usr/lib64/libssl.so.1.0.0e
/usr/lib64/libssl.so.10
/usr/lib64/libssl3.so
/usr/lib64/pkgconfig/libssl.pc
/usr/lib64/libssl.so
/usr/lib/libssl.so.1.0.0e
/usr/lib/libssl.so.10


Total sum of the Binary Tree

A program which finds total sum of the binary tree

hi @Zohaib-Sathio  can you please assign it to me under the label of Hacktoberfest accepted and Hacktoberfest 2022

assign me as well

hi @Zohaib-Sathio can you please assign it to me under the label of Hacktoberfest accepted and Hacktoberfest 2022

@Animesht1008 Sorry I can not assign you more than 3 issues at a time, kindly resolve the first assigned.

assign me as well

@AaryanSingh0017 Assigned to you.

hey, @Zohaib-Sathio please assign me this task if @AaryanSingh0017 is not working on it!


Explicitly cast numeric literals to type byte to avoid ESP32 and ESP8266 compile errors

*** This is the correct pull request to merge. It only changes one file with the fixed lines.***
*** An incorrect comment line is also moved. ***
This is a fix for issue #6. The ESP32 and ESP8266 code uses templates to define the min/max function. This causes a compile error because the numerical literals are of implicit type (int) being compared to a byte parameter.
Even though the types are compatible, this type mismatch causes a compile error in the template used to define the min/max function in the ESP32 and ESP8266 code.
This fix explicitly casts the numeric literals in min() and max() to type (byte) and eliminate the compile error.  The incorrect comment is removed.

This pull request contains the fix, and removes the comment with the incorrect return type.

Thanks for this! Makes sense.


Dependency Mismatch with Chia Dev Tools

We have mismatched dependencies between the cat admin tool (requires chia v2.1) and chia dev tools (requires chia v2.0).
This in addition to mismatched install instructions between the docs and github repo make it very confusing to follow the guide and examples.
What needs to be done:

Update chia dev tools dependencies to align with cat admin tool (https://github.com/Chia-Network/chia-dev-tools/blob/main/setup.py#L16)
Update github instructions to include the installation of cdv tools and pytest (pip install chia-dev-tools --no-deps & pip install pytest)
Update the linux doc instructions to include the installation of cdv tools and pytest (pip install chia-dev-tools --no-deps & pip install pytest)

I am able to perform updates 2 and 3 but figure someone from engineering might want to make update number 1 so tests can be performed properly

Resolved - all current for chia-blockchain 2.3.0


make-id can't change members with leading underscore

Any changes to the "id" of a class member within make_id with a leading underscore breaks the link from within the class (though the member page is still generated, appears in index and navigation buttons).
This appears to occur in the last step where the docbook is translated to html.

Without translation of leading underscore, all of the html generates fine, but when pushed to github.io, those pages return a 404 because of https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/. There is a workaround described at that link.


Narrow the scope of the unsafe block

Can shrink unsafe block for the UnsafeJob impl

:+1: Seems sensible


Add API in DaprClient to invoke HTTP natively

Describe the proposal
Dapr has a way to invoke HTTP endpoints without changing code, still, the SDK can provide an easy way to make an HTTP invocation in Java. This new solution simply invokes the endpoint with the same path as the web service expects to receive, but going through Dapr's endpoint.
This API must be HTTP specific and does not depend on the user selecting HTTP or gRPC client implementation.
https://docs.dapr.io/developing-applications/building-blocks/service-invocation/howto-invoke-discover-services/#additional-url-formats

As per my discussion with @mukundansundar
The new way to invoke HTTP endpoint gives an advantage to apps not using the SDK, for this reason, making this available in the SDK does not create additional value since the details on the HTTP call are already hidden in the current API.
Closing this.


Crawler event on depth change

This is a feature request.
I suggest having a "newlevel" event fired when the crawler depth changes or when all resources for a level/depth have finished processing.

Sorry about the very tardy response on this one! My only concern is how this works if resources are queued manually - is it a problem if the queue depth "starts over"? Or maybe we shouldn't be concerned about that, since it's just a natural consequence of how the crawler works

The crawler could be crawling any number of depths concurrently — there isn't a single depth level. I'm not sure what the utility of this would be.

@rolfen do you have an example of when this could be useful as opposed to just reading the depth in fetchcomplete?

Closing for now, as I think this can be served in other ways.


SSDP server does not respond to mutlicast M-SEARCH requests

Hi,
I am hoping to use node-ssdp server to advertise a custom UPnP-like device on my network. I've got it up and running and I can see that it is sending out multicast SSDP advertisements as expected. However, I also need it to be able to respond to multicast M-SEARCH requests too. Here, it falls down (or at least, there is no documentation explaining how to enable it).
My setup:
var ssdpServer  = require('node-ssdp').Server;
ssdp = new ssdpServer({
    location: require('ip').address() + '/desc.xml'
});
ssdp.addUSN('urn:codersaur-com:device:DeviceType:1');
ssdp.start();

A typical M-SEARCH multicast request (sent from a client):
M-SEARCH * HTTP/1.1
HOST: <IP_ADDRESS>:1900
MAN: "ssdp:discover"
MX: 4
ST: codersaur-com:device:DeviceType:1

Doing some debugging, I can see that the ssdpServer is simply ignoring multicast packets.
Following the advice here it seems the solution is to bind the socket to the multicast port (i.e. 1900) only. I have been able to do this by specifying the sourcePort in the configuration parameters to be the same, i.e.:
var ssdpServer  = require('node-ssdp').Server;
ssdp = new ssdpServer({
    location: require('ip').address() + '/desc.xml',
    sourcePort: 1900,
});
ssdp.addUSN('urn:codersaur-com:device:DeviceType:1');
ssdp.start();

The SSDP server now binds to address: 'http://<IP_ADDRESS>:1900', ... and is able to respond to multicast M-SEARCH requests properly with a unicast response to the originator of the M-SEARCH request.
However, this leaves me with some questions:

is this the correct way to get node-ssdp to respond to multicast M-SEARCH requests?
would it not be better for node-ssdp to bind two sockets on each interface (one for receiving multicast M-SEARCH requests, and another for sending/receiving all unicast traffic)?
is sourcePort supposed to be used this way? I think there is possibly a mis-match between the code and the documentation as unicastBindPort is mentioned in the readme, but not the code (and vice-versa)?

Thanks, codersaur.

Also, if this is the recommended way to get node-ssdp to respond to multicast M-SEARCH requests, then it's worth pointing out that it doesn't appear to add an appropriate time delay (as specified by the MX header).
UPnP Device Architecture 1.1

Devices responding to a multicast M-SEARCH SHOULD wait a random period of time between 0 seconds and the number of seconds specified in the MX field value of the search request before responding, in order to avoid flooding the requesting control point with search responses from multiple devices.

I'm seeing the same thing, unless I use sourcePort: 1900 it won't respond to M-SEARCH requests.  Is this expected behaviour?

I am seeing the same thing for M-SEARCH sent from a WeMo Android app (but not from OSX node.js client). The only difference I can see in the packet is that the WeMo app is not using the multicast mac address  (the Ethernet.Dst fields):
The node-ssdp did not respond to this packet from the WeMo Android app:
Frame 11: 159 bytes on wire (1272 bits), 159 bytes captured (1272 bits) on interface 0
Ethernet II, Src: LgElectr_YY:YY:YY (d0:13:fd:YY:YY:YY), Dst: Apple_XX:XX:XX (10:40:f3:XX:XX:XX)
Internet Protocol Version 4, Src: <IP_ADDRESS>, Dst: <IP_ADDRESS>
User Datagram Protocol, Src Port: 8008, Dst Port: 1900
Simple Service Discovery Protocol
    M-SEARCH * HTTP/1.1\r\n
        [Expert Info (Chat/Sequence): M-SEARCH * HTTP/1.1\r\n]
        Request Method: M-SEARCH
        Request URI: *
        Request Version: HTTP/1.1
    ST: urn:Belkin:service:basicevent:1\r\n
    MX: 2\r\n
    MAN: "ssdp:discover"\r\n
    HOST: <IP_ADDRESS>:1900\r\n
    \r\n
    [Full request URI: http://<IP_ADDRESS>:1900*]
    [HTTP request 2/3]
    [Prev request in frame: 8]
    [Next request in frame: 75]

But then normally responded to the following packet:
Ethernet II, Src: Apple_XX:XX:XX (10:40:f3:XX:XX:XX), Dst: IPv4mcast_7f:ff:fa (01:00:5e:7f:ff:fa)
Internet Protocol Version 4, Src: <IP_ADDRESS>, Dst: <IP_ADDRESS>
User Datagram Protocol, Src Port: 56578, Dst Port: 1900
Simple Service Discovery Protocol
    M-SEARCH * HTTP/1.1\r\n
        [Expert Info (Chat/Sequence): M-SEARCH * HTTP/1.1\r\n]
        Request Method: M-SEARCH
        Request URI: *
        Request Version: HTTP/1.1
    HOST: <IP_ADDRESS>:1900\r\n
    ST: urn:Belkin:service:basicevent:1\r\n
    MAN: "ssdp:discover"\r\n
    MX: 3\r\n
    \r\n
    [Full request URI: http://<IP_ADDRESS>:1900*]
    [HTTP request 1/2]
    [Next request in frame: 4]

I was also having trouble with getting responses to m-search, among other things. For me, changing the default 'ssdpTtl' item in the server config to 2 as the spec suggests from 4, made the server respond.
In your trace above look for 'MX:', that is what ssdpTtl will set.

To limit network congestion, the time-to-live (TTL) of each IP packet for each multicast message SHOULD default to 2 and SHOULD be configurable. When the TTL is greater than 1, it is possible for multicast messages to traverse multiple routers; therefore control points and devices using non-AutoIP addresses MUST send an IGMP Join message so that routers will forward multicast messages to them (this is not necessary when using an Auto-IP address, since packets with Auto-IP addresses will not be forwarded by routers).

spec

Also seeing this but nothing here seems to be helping 😞 Is there anything else anyone else tried? I'm on macOS. Seems like the
socket.on('message'
is never called! @troppoli @opichals


Passing same data object causes different render the second time around

I've got a component that renders a graph, heavily inspired by the force directed graph in the example docs. The relevant parts of the component goes something like this:
function GraphComponent({ size, inputData }) {
  const [data, setData] = useState({ nodes: [], links: [] });

  useEffect(() => {
    setData(fooBar(inputData));
    // fooBar is just a dummy function here, in the real component it structures the input data correctly
    // only gets called whenever inputData changes.
  }, [inputData]);

  function handleSeriesHover(index) {
    setData({
      ...data,
      links: links.map((link, i) => ({ ...link, stroke: index === i ? '#fff' : '#000' })),
    });
  }

  return(
    <XYPlot width={size.width} height={size.width} margin={10}>
      {data.links.map(({ source, target, stroke }, index) => (
        <LineSeries
          key={`link-${index}`}
          stroke={stroke}
          data={[{ ...source }, { ...target }]}
          onSeriesMouseOver={() => handleSeriesHover(index)}
        />
      ))}
   </XYPlot>
  );
}

Whenever, I hover a LineSeries, the stroke changes from black to white as expected. HOWEVER, everything in the XYPlot also gets redrawn, and is positioned completely different than before, even though the x and y coordinates in the respective source and target objects are not changed.
Any suggestion on how to approach this?

That's a tough one. I think that the d3-force call is non-deterministic and so is liable to create different layouts if it is rerun multiple times. I would maybe encourage you to consider making a second component, one for holding the layout and updating it appropriately and another for controlling rendering the component and controlling the highlight state. I suggest this because I suspect that fooBar is getting triggered when it should not be.

I've tried your suggestions, (making a container function that does all the data handling, including managing the hover function, and one that only renders the supplied data) and still get the same behaviour. I've also confirmed that the fooBar (d3-force) function does not run more than once.
It seems to me that XYplot does something with the scales of the plot area, such that it spreads the plots as far away as possible while still respecting the various x/y coordinate inputs. This seems to happen for ANY state changes in ANY of the components in the hierarchy directly above the XYPlot component.
IDK if that makes sense? Is there a way to override the XYPlot scaling of the data axis?


Demo page not loading

Thanks for the notice. I "rebooted" the app using the Streamlit admin UI and it's working now, so it must have just been some kind error on Streamlit Sharing's end.


Picking bug with overlapping nodes

For context, with all built-in programs in sigma, each node is first rendered as a square (for node.point and node.image) or a triangle (for node.circle), and then, the related fragment shader colors each pixel either as transparent (when outside the circle) or colored (when within the circle).
With the new picking implementation, item IDs are encoded as RGBA colors, so most colors in the picking layers are probably partially transparent. There is an issue right now with alpha blending that causes the following bug: When a node is drawn over another node, the transparent pixel (from the fragment shader) override the existing pixel colors from previously drawn nodes.
Here is what the picking layer looks like:

This means that, when the mouse is over those "erased corners", no collision will be detected.
I tested two fixes:

I tried fixing this by customizing the alpha blending method. I couldn't find something that works.
I tried encoding IDs into RGB only, and hardcoding alpha as 1 in the shaders directly. I couldn't make that work either, because of #1323

Big thanks to @paulgirard for the idea for the fix :pray: (basically, we send a 3 bytes colors with alpha always at 1, but we encode it as a 4 bytes integer).


Create a demo for RBAC PoC

What: Demo the work from issues #369 and #370

[ ] create steps

Window 1

Create 2 capability namespaces

apply current security setup

Create providerconfig and explain concept of having a providerconfig for each namespace

Create a claim in one namespace using an old version of package

Demo you can get claim in one namespace but not from the other

Demo you cannot view rdsinstances or any crossplane resources in any namespace

Window 2
6) Install the new package
7) Demo you can still get claim in one namespace but not from the other
8) Demo that you now can view resource names in the namespace using "describe claim"
9) Demo that you can get the resource using the names listed in the claim


Make Bounds type safe

Current Bounds take a Vec<u8> as parameter, which is not related to the types the bound will apply to. This forces the user to build the proper bound manually, which requires knowledge of the internal structure used to store the different types. This is particularly annoying with composite keys, where a helper (joined_key) must be used to concatenate the key components.
Let's improve on this by making Bound type-safe. This may be tricky to do, as currently Bound is independent of the map-like structure it can be applied to.
There's a key() (index_key in the case if indexed maps) method in map-like structs, that can be used as an alternative to building the key manually. But, it only supports the full key, not the prefix / sub-prefix keys. An alternative could be to extend this with a couple of prefix_key() and sub_prefix_key() helpers.
Let's evaluate first if we can do better than that.

A simple way to improve here would be to provide more helpers over PrimaryKey or a specific trait.
So that, instead of something like
                .range(
                    &store,
                    Some(Bound::inclusive((U64Key::new(0), "").joined_key())),
                    Some(Bound::exclusive((U64Key::new(2), "").joined_key())),
                    Order::Ascending,
                )

the user can write instead
                .range(
                    &store,
                    (U64Key::new(0), "").inclusive_bound(),
                    (U64Key::new(2), "").exclusive_bound(),
                    Order::Ascending,
                )

This looks better. It requires knowledge of the key structure, but this info is public already. This is still not type-safe, in that the bound is still over Vec<u8> but is a step forward in usability I think.
From there, making these type-safe (i. e. building Bounds over K, K::Suffix and K::SuperSuffix) is achievable. It will require no_prefix() prefix() and sub_prefix() returning different objects (or having multiple range impls?). So that their ranges are associated to specific types. It will also requiere Bound to preserve type information, i.e. to be implemented using generics.
Need to think more about this, but it looks achievable.
All this means, more "boiler plate" code on our side. But definitely, a better user experience.

A simpler / better alternative would be to provide helpers over Bound itself. Like it's currently being done for PrefixBound.

This is a nice idea. I would like to highlight it for 0.12.0 storage-plus improvements.


feat: Indexer service wiring

Closes: #XXX
What is the purpose of the change
Ref: https://linear.app/osmosis/issue/IND-42/boilerplate-for-tracking-modified-data-and-perform-incremental-push

Creating separate indexer streaming service for DexScreener
Starting to do a POC for detecting state changes in the bank module for total supply

Thanks! Let's go ahead and do the merge.


use event emitter

Remove callback for fromDataUrl and return promise instead.
Remove onBegin option and add beginStroke event.
Remove onEnd options and add endStroke event.
add beforeUpdateStroke and afterUpdateStroke events.

fixes #543
closes #423

Ya I don't think we should continue to support IE given Microsoft hasn't supported it in a while.
I think going to v4 would be fine.


explorer: add analyze option

I would like to load capa explorer with an script and that it runs the
analysis without needing extra clicks. Introduce an analyze option for
this.
Loading capa explorer from the UI or with Alt+F5 behaves as before. The
following command as well:
ida_loader.load_and_run_plugin("capa_explorer", 0)

But the following command automatically runs the analysis without extra
clicks:
ida_loader.load_and_run_plugin("capa_explorer", 1)

Example of where I am using this:
https://github.com/Ana06/idapython/blob/master/idapythonrc.py#L22
Closes https://github.com/fireeye/capa/issues/546
Documentation

[x] I have updated the CHANGELOG.md, this is required for:

Bug fixes (non-breaking change which fixes an issue)
New features (non-breaking change which adds functionality)
Breaking changes (fix or feature that would cause existing functionality to not work as expected)

[x] This change requires a documentation update

[x] I have made the corresponding changes to the documentation

Tests

[ ] I have added tests that prove my fix is effective or that my feature works
[x] No new tests needed

Analyzing on start could also be configured via the plugin settings? I'd enable it.

@mr-tz

Analyzing on start could also be configured via the plugin settings? I'd enable it.

Yes, if it would be done for both views. If only the Program Analysis analysis is done and I want to use the Rule Generator it is not very convenient. If it is done for both views then IMO it can just be the default and not need a configuration option (we may not even need an analyze button). It is needed to analyze before using the explorer, so it should be IMO done without user interaction.
See https://github.com/fireeye/capa/issues/546

@mr-tz

Analyzing on start could also be configured via the plugin settings? I'd enable it.

Yes, if it would be done for both views. If only the Program Analysis analysis is done and I want to use the Rule Generator it is not very convenient. If it is done for both views then IMO it can just be the default and not need a configuration option (we may not even need an analyze button). It is needed to analyze before using the explorer, so it should be IMO done without user interaction.
See #546

I just added some comments to #546.
We could change capa explorer to automatically run program analysis when opened. However, I do not think we can remove  the Analyze button altogether. We want the user to be able to run analysis more than once without needing to close and reopen the plugin. The rule generator also needs to run analysis per function and the Analyze button allows users to have control over which function is being analyzed and when.

I had deleted my comment after reading @mike-hunhoff comment (but @mike-hunhoff was too fast!). I have changed my opinion. I think having options (as in this PR) is the best approach. A default for the explorer is a bad idea because if you close the explorer and open it only for writing a rule then it runs the analysis again.

are we planning to move forward with this?

@mr-tz

are we planning to move forward with this?

I have just update it to use bitmask + enum for the option. Is there something else to discuss address?

let's get this merged

I think I have addressed all Willi's comments, but I haven't tested it, as there is an unrelated bug in the explorer. 😶

blocked by https://github.com/fireeye/capa/issues/653

Can you test this now and then let's merge. Sorry for the changelog conflict 😐

Tested! It works as expected 😉

Awesome! Please merge at your convenience 😄


Add cg.link.reference to CTA item display

Many CTA items are Open Access and their metadata includes a link to the resource in cg.link.reference, but we don't print that field in the item view. We simply need to add this to the CTA XMLUI's item view.

Added in fcd10449601a5758db4863e75c5f8c3046e59912. Making pull request now.

Merged in #124.


Be able to mock long lasting request

The problem
TestCafe does not enable to test the case where an asynchronous HTTP call to the backend takes too long.
if you create a request mock like this:
var mock = RequestMock()
    .onRequestTo(/*...*/)
    .respond((req, res) => {
        // Step 1 : execute sync code that takes a lot of time (more than 30 seconds for example) like a for loop with millions of iterations
       // Step 2 : send response
    });

At runtime, when the code reach step2, the testcafe code hangs.
Proposed solution (not the same as proposal)
It would be great to have an API like this:
var mock = RequestMock()
    .onRequestTo(/*...*/)
    .delayResponse(30000) // duration in milliseconds
    .respond((req, res) => {
       // send response: the response is sent only after the duration specified in .delayResponse
    });

Thank you for your proposal. We will consider this feature during our future planning.

any plans here?

We do not plan to implement this in the near future

We decided not to implement this enhancement. The promise-based solution from the https://github.com/DevExpress/testcafe/issues/2425#issuecomment-855941322 comment is an official solution. Please use it.


Support SimpleWallet

Pull Request Test Coverage Report for Build 465

0 of 0   changed or added relevant lines in 0 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.05%) to 93.08%

Files with Coverage Reduction
New Missed Lines
%

build/src/respository/profile.repository.js
3
80.77%

Totals

Change from base Build 448:
0.05%

Covered Lines:
184

Relevant Lines:
200

💛  - Coveralls

Thanks for your contribution! Closing this issue in favor of #153.


Console exception when reflex updates a page that didn't trigger the update

Bug Report
Describe the bug
Reflex updates that are not triggered by the client they are being sent to, show a console error:
stimulus_reflex.js:387 Uncaught TypeError: Cannot read property 'completedOperations' of undefined
    at HTMLDocument.beforeDOMUpdateHandler (stimulus_reflex.js:387)
    at dispatch (cable_ready.js:83)
    at Object.morph (cable_ready.js:168)
    at Object.perform (cable_ready.js:349)
    at Subscription.received (stimulus_reflex.js:87)
    at action_cable.js:536
    at Array.map (<anonymous>)
    at Subscriptions.notify (action_cable.js:535)
    at Connection.message (action_cable.js:369)

Introduced by https://github.com/hopsoft/stimulus_reflex/pull/299. The promises hash doesn't have an entry for the reflexId passed, but there is not check for null/undefined.
To Reproduce
Use the TodoMVC app in two browser tabs, but with StimulusReflex 3.3.0.
Check off a todo.
Note that it gets checked off in the other tab.
But there is also the console error above.
Expected behavior
No javascript error
Versions
StimulusReflex

Gem: 3.3.0
Node package: 3.3.0

External tools

Ruby: 2.6.6
Rails: 6.0.3
Node: 10.19.0

Browser

Browser Chrome
Version 80

I'm having the same issue, seems related to #335.

Hi @rockhymas, is this issue fixed by running #335 on your local machine?
It'd be really, really helpful to the project if you were able to help us confirm that our fix for your problem works as intended.

You are in luck! I wrote a new documentation section for you the other day:
https://docs.stimulusreflex.com/setup#running-a-branch-to-test-a-github-pull-request

Sweet, that got me unblocked for bit. I now have both the gem and the node package, but the javascript isn't being included in webpack now, so I see this error on page load:
Uncaught Error: Cannot find module 'stimulus_reflex'
    at webpackMissingModule (index.js:1)
    at Module../app/javascript/controllers/index.js (index.js:1)
    at __webpack_require__ (bootstrap:19)
    at Module../app/javascript/packs/application.js (application.js:1)
    at __webpack_require__ (bootstrap:19)
    at bootstrap:83
    at bootstrap:83

Yarn is saying I need to link stimulus_reflex, but when I try to do that it says stimulus_reflex isn't registered. I don't want to turn this issue into my personal tech support, but I'm stumped on this one.

Can you confirm that you've run yarn install --check-files?
Also, if you're on Discord, this could be easier to solve.

Yeah, I've run that, output shows no errors. Will jump on discord.

Hey @rockhymas, are you sorted on this issue?

Yeah, this is great, and I've learned a lot. Thanks again.


Bug in your forum

Hey i have found a security bug on your forum.
This is under of bug bounty program ?

No. Please refer to Responsible Disclosure program


No mouse support?

Is there mouse support? Building the latest commit (eebe877a1330b7cab4a4c94cd8dec8a5bb611951) doesn't allow me to click anywhere to move the caret. Not sure if this hasn't been implemented yet or if it's a bug.

Not implemented yet. However, the infrastructure is in place, it shouldn't actually be hard to do.


engine(dm): verify source-id for job config

What problem does this PR solve?

Issue Number: ref #5504
What is changed and how it works?

check source-id is not empty
check source-id is not duplicate

Check List
Tests

Unit test

None

Codecov Report

Merging #6690 (aef7286) into master (2ea67ba) will increase coverage by 0.1013%.
The diff coverage is 72.1468%.

Flag
Coverage Δ

cdc
65.9816% <75.3661%> (+0.1135%)
:arrow_up:

dm
52.0759% <100.0000%> (+0.0342%)
:arrow_up:

engine
62.5825% <66.9354%> (+0.0464%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #6690        +/-   ##
================================================
+ Coverage   59.2138%   59.3152%   +0.1013%
================================================
  Files           780        784         +4
  Lines         88405      88994       +589
================================================
+ Hits          52348      52787       +439
- Misses        31415      31541       +126
- Partials       4642       4666        +24

/merge


Upgrade from CKF 1.7 to CKF 1.7 Patch 1 do not work

Bug Description
The section Upgrade charms does not work.

Missing mentioning the scaling down to 0 before refresh
Some charms return ERROR when refresh

ERROR Juju on containers does not support updating deployment info for services.
The new charm's metadata contains updated deployment info.
You'll need to deploy a new charm rather than upgrading if you need this change.
 not supported (not supported)
charm "kfp-profile-controller": already up-to-date
Added charm-hub charm "kfp-schedwf", revision 1052 in channel 2.0/stable, to the model
ERROR Juju on containers does not support updating deployment info for services.
The new charm's metadata contains updated deployment info.
You'll need to deploy a new charm rather than upgrading if you need this change.
 not supported (not supported)
charm "kfp-ui": already up-to-date
Added charm-hub charm "kfp-viewer", revision 1064 in channel 2.0/stable, to the model
ERROR Juju on containers does not support updating deployment info for services.
The new charm's metadata contains updated deployment info.
You'll need to deploy a new charm rather than upgrading if you need this change.
 not supported (not supported)

To Reproduce
Follow the upgrade guide to the step - Upgrade charms
Environment
ubuntu@ip-172-31-31-138:~/workspace$ snap list
Name              Version        Rev    Tracking         Publisher   Notes
amazon-ssm-agent  3.2.1630.0     7628   latest/stable/…  aws✓        classic
core18            20231027       2812   latest/stable    canonical✓  base
core20            20231123       2105   latest/stable    canonical✓  base
juju              2.9.46         25672  2.9/stable       canonical✓  classic
kubectl           1.29.2         3180   latest/stable    canonical✓  classic
lxd               5.0.3-51452c3  26881  5.0/stable/…     canonical✓  -
microk8s          v1.24.17       5872   1.24/stable      canonical✓  classic
snapd             2.61.1         20671  latest/stable    canonical✓  snapd
Relevant Log Output
Output: output.log
Expected
Upgrade procedure works and/or bundle 1.7.1 provided.

Added the information into the doc about scaling down and up for charms. Plus I have updated channels for kfp components. Before the components were pointing to channel 2.0/stable instead of the correct 2.0-alpha.7/stable.


Update and patch for has many

@davemswrve @cjkm Could you have a look? Cheers!

This is just the upgrade from 0.0.14 to 0.0.16 right?

No, I added the patch to not trigger the hasMany relationship observers if the array doesn't change if ( a !== b) {
update
}
Also added a // SWRVE comment to anything that we've changed before

Yep I'm slow :)

The merge broke something. Will restore to latest copy and reapply our patches. Please do not merge for now.


Correct Registry.toml

I use the name entry to decide the name of the registry (duhh) but this was not updated, so when adding this registry it still ends up in registries/Uncurated.

I think the updater script will clobber this straight away. I think I need to fix it on my end.

Cheers.


Send training data

How can i use the sdk to train
maybe i am getting this bad, but do i need to send the message id and the intent id to train an agent??
Thanks!

cc @googleapis/ml-apis

Do you mean Training phrases for an Intent?
https://dialogflow.com/docs/intents/training-phrases
or
https://dialogflow.com/docs/training-analytics/training
From the SDK, you could update an Intent's training phrases using: UpdateIntentRequest
Let me know if that helps! :)


LH wakes up by itself

Hello,
I apologize for using this issue for a question, but I did not see where else to ask this...
I use this command to turn off B:
lhctrl.py -b  --lh_b_mac  -g 1 --lh_timeout 2 -p 1
it works fine, and then C sleeps too, but eventually, not sure how long later, they are both awake (not sure if B awoke by itself and awoke C, or if the 2 did it independently).
What am I missing to keep it sleeping?
Thanks!

The current script is supposed to run the lighthouses as long the script itself run. Once the script is interrupted by a SIGNAL or a keyboard, it should reprogram the timeouts to quit both lighthouses and quit.
So the question is, how exactly are you "turning off" B? Are you running the script once to start B and then later to to turn it off? If yes, with which parameters?

I use the command I posted above to make it sleep.
(My end goal is to run the script as long as SteamVR is running, then kill it to have both LHs sleep. I also run the script above after killing the infinite one, because it feels cleaner to not kill it to sleep, even if based on the protocol it's probably a useless thing.)
Now I didn't think of it before, but it is be possible that this is unrelated to lhctrl: I use a smart plug that turns off everything but the computer if there is no activity detected in the room for a couple hours. 'B' is on that smart plug but 'C' is not... I'll remove 'B' from it to see if that is the issue. If it was, should I just regularly run the script again to potentially wake it and then put it to sleep?
Thank you!

If you unintentionally power-cycle one or the other lighthouse, it will start with the power-on and remain running as it is a default mode after power-on. (Actually, it does not matter if you do it intentionally, or not.).
I wrote the script assuming that the LHs are always powered on, and they are just started (or stopped) by the script. The script is using the "pinging mode" of the control protocol, which requires the LHs to be "pinged" regularly in order to keep them running. Once the pinging stops, they will shutdown themselves after a specified timeout (--lh_timeout which defaults to 60 seconds).
However, if you terminate the script by a signal (or by break from the keyboard), the script should send the one last "ping" to the each of LHs, which will basically do the same thing you are trying to achieve with your "termination command". It will set the timeout period to one second and then will stop. The LHs will timeout in one second and shut down.
Now considering that you are using two LHs in B + C configuration, you may as well try to run the initial start script with specifying both B and C parameters on the command line.
python3 /data/work/lhctrl/pylhctrl/lhctrl.py -b <B_S/N> --lh_b_mac <B_MAC> -c <C_S/N> --lh_c_mac <C_MAC>

This will take care of both B and C simultaneously and not relying on C on B dependency anymore for both the starting and stopping. (You may turn on the verbose mode with -v to see what I mean with the one last ping.)
I am not sure how you plan to put it in sync with SteamVR. I am running the script on my RPi simply in a remote session from my main PC (on which I run Windows with SteamVR), so it runs completely independently. I just kill the script in the remote session by Ctrl-C when I am done and it shuts down the LHs right away. I am also running two LHs in B and C modes and use the command as described above.

Oh so the smart plug may be the problem, that's a bit annoying, I could always plug B differently, but not sure if that'd be better or not.
Alright I'll switch to sending the same call to C as well.
As for SteamVR that's easy, I changed the command for starting it in Steam (Properties->General->Set Launch Options). The new command starts a bash script that calls lhctrl infinitely, then starts SteamVR, and when SteamVR is done, it calls the bash script again to kill the previous lhctrl call and put the LHs to sleep.
Steam command: ~/bin/lh on --force; %command%; sleep 5; VR_PID=$(pidof vrserver); if [ -z $VR_PID ]; then echo "VR Server not found"; else while [ -d /proc/$VR_PID ]; do sleep 5; done; ~/bin/lh off --force; fi;
Bash script: https://gist.github.com/John-Gee/fc1678d97d03620ae411127274acc1fb

From looking at your script, you should be fine with just killall lhctrl.py. This should properly terminate both LHs (if you used command line parameters to set both of them). Adding lhctrl.py -b <ID> --lh_b_mac <MAC> -g 1 --lh_timeout 2 -p 1 is almost counterproductive because it will start B (and eventually C) again and immediately terminate them.
If your LHs do not stop in few seconds after killall, just check it is correctly executed (and registered by lhctrl.py script). I just checked this behavior on my Raspbian Stretch and noticed than killall lhctrl.py did not find the process, I had to specify it by PID. Then it worked as expected.

Yeah you're right, I just didn't like the idea of ending it all with a kill, it felt dirty, but I know it's redundant. :)
I can probably simplify that script (and so reduce the potential number of bugs).

Sending SIGTERM to the script is not dirty at all. It is actually an intended behavior :). See the source code and the signal handler function sigterm_hndlr which serves exactly this purpose, to "gracefully" (and as fast as possible) shutdown the LHs and quit.

Oh yes I see, that's good to know thank you!
I'll update this later and see if B ever wakes up again now that it is not on the smart plug anymore.

Well it hasn't awoken since then, so I guess it really was because of the smart plug.
Not sure what I'll do about this, but I guess I can clsoe this issue then.
Thanks!


Slow 5MB/s when compared to PHP

Submission Type (obligatory)

[x] Flaw or Request for Enhancement (RFE) (»Please support B or cover edge case C.«)

https://s.natalian.org/2017-06-26/caddyupload.mp4
Submitter (obligatory)

[x] I just use Caddy, for my personal site.

Expected Behaviour
100 MB/s (I'm on a Gigabit LAN btw)
Unexpected Result
5MB/s !
Environment
docker build --build-arg plugins=http.git,http.upload -t caddy-plugins https://github.com/abiosoft/caddy-docker.git#:php

Configuration File
    upload /upload {
           to "/mnt/incoming"
    }

Thanks. I think I will add an test using curl to measure upload speed in the future.
I know that Golang does a lot of copying behind the scenes, so speeding this up to 100–114 MB/s will be a lot of work which I most probably cannot afford to do. Hence the lowest priority.
Two low-hanging fruits are, in case someone wants to work on this:

Copy decoded data to mmap'ed areas of the pre-allocated file. In chunks of, say, 32 MiB. (See my port of signify for how to do this.)
Streaming-decoding of base64, not buffered decoding.

https://groups.google.com/forum/#!topic/golang-nuts/4AoCwR-jGVQ

Golang is a far cry away from zero copy.
@kaihendry, my existing integration tests, where I test some examples, already indicate that 5 MB/s is exceptionally slow. Please elaborate more about your test environment.
https://hub.blitznote.com/src/caddy.upload/-/jobs/1954
@dcheney-atlassian provides the following exemplary code and uses it to upload a file, in an unknown testing environment (»deadwood« is not notoriously known), and it's not apparent how much dead code elimination Golang employed and/or if the sink, ioutil.Discard, didn't result in broader code elimination. Anyway, it's to show that decoding is not the issue here, I guess.
package main

import (
        "io"
        "io/ioutil"
        "net/http"
)

func main() {
        http.ListenAndServe(":8080", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
                io.Copy(ioutil.Discard, r.Body)
                w.Write([]byte("OK"))
        }))
}

time \
curl --tr-encoding -X POST -v -# \
  -o output \
  -T ~/Downloads/nanopi-air-eflasher-sd8g-20161213.img \
  http://localhost:8080/

# Quote:
# Once the source file was cached, the time to upload 7.4 gb dropped to
# around 3 seconds, so ~ 2.5 gb / sec, which is more reasonable for the loopback.

Aforementioned run only addresses a single of the two or three ways to upload files with this plugin. It's essentially this:

https://github.com/wmark/caddy.upload/blob/3b44f3a27042e6479f1dbd1b78d47fca3daee9dd/upload.go#L140-L154
https://github.com/wmark/caddy.upload/blob/3b44f3a27042e6479f1dbd1b78d47fca3daee9dd/upload.go#L334
https://github.com/wmark/caddy.upload/blob/3b44f3a27042e6479f1dbd1b78d47fca3daee9dd/upload.go#L373 (fallocate)
https://github.com/wmark/caddy.upload/blob/3b44f3a27042e6479f1dbd1b78d47fca3daee9dd/upload.go#L380-L386 (io.CopyN)

A MIME multipart upload would utilize the MultipartReader, and call (3)+(4) for every part.

I've added some trivial benchmarks to integration tests, and cannot reproduce the claimed 5 MB/s on architecture amd64. (Writes are small enough to be absorbed by the filesystem caches on those machines.)
https://hub.blitznote.com/src/caddy.upload/-/jobs/1981
A single file upload, using HTTP PUT or POST would saturate a 1 GBd link, even an 2 GBd (NBase-T) one.
MIME multipart is slower, but still north of 1 GBd.
Waiting on more details on the architecture where you see the 5 MB/s.


README.rst: typo in renga-python URL

Clicking on the renga-python link in the README gives an error because it points to github/com rather than github.com.

fixed in #137


Use bundled zlib on all versions, not just 21

Fixes https://github.com/adoptium/temurin-build/issues/1951

@sxa could this be wrapped in an if temurin? I added it on my side because OpenJ9/Semeru does not want to bundle zlip currently.

@AdamBrousseau sure. Please send a PR for that (although maybe a !OpenJ9 test rather than =Temurin to preserve the current behaviour for other users)


Video preview window fails to appear on macOS

We have had several customers run into an issue on macOS where the examples will appear to run successfully, but the video preview window or dialog will not appear.

The latest recommendation is to run the following:
python3 -m pip install opencv-python --force-reinstall --no-cache-dir

For more information on this issue please see the corresponding thread on our forum.

The latest recommendation is to run the following:
python3 -m pip install opencv-python --force-reinstall --no-cache-dir

For more information on this issue please see the corresponding thread on our forum.


NullLayout too strong

I started using log4javascript in one of my projects and was wondering, why the null Layout has such a nice feature that i can collapse / hide variables.

I cant reach the same goal with the PatternLayout unfortunatly.
I tried the "standard" and the "equal" patterns:
"%d{HH:mm:ss} %-5p - %m%n"
%m%n
For example if i use the "%m%n" Pattern, i can click on my variables anymore:

I think there is something missing in the code atleast (?)
Or am i totally missing something here.
Greetings ! And Love. <3

Closed because i want it to disappear from my dashboard


add sub-sub-directory support for ignored_folder

This pull request adds support for ignoring sub-sub-folders in ignored_folders.
Use-case:
refresh.yml
ignored_folders:
- cmd/web/client

Where cmd/web/client contains front-end code (JS, CSS etc.) which should be ignored, but not cmd/web which contains back-end code (.go files).
 In the process of doing so, I think I came across a subtle bug with the original isIgnoredFolder function which I took the opportunity to document in the commit message. If I have misunderstood the bug, please amend the commit message before committing.
Pull request also includes a simple test for isIgnoredFolder.
Please feel free to amend/rework these commits as you see fit.
Thanks for the project!

@shasderias it looks like the tests are failing for some reason on travis

@markbates The path returned by filepath.Walk uses path separators appropriate to the platform the program is being run on. On Windows systems, filepath.Rel handles both Windows and POSIX path separators correctly, but on POSIX systems, the paths passed to filepath.Rel are expected to use POSIX style path separators.
My test cases included paths with both Windows and POSIX style path separators and this caused the tests to fail on Linux systems. I have split the test cases in watcher_test.go into two separate files, watcher_windows_test.go and watcher_posix_test.go with the appropriate build tags ('+build windows' and '+build linux darwin' respectively). Tests now pass on Windows, Linux (WSL Ubuntu) and Darwin.
Additionally, this also means for cross-platform compatibility, ignored_paths paths in refresh.yml should use POSIX-style separators. I have documented this in the readme.
I should have been more careful, sorry for the noise.
Please take another look.


auditory stim presentation not working on windows

Am currently getting the following error with auditory stim presentation in windows

> python stimulus_presentation/generate_Auditory_P300.py

...

...

(base) C:\Users\John\GitBash\eeg-notebooks>python stimulus_presentation/generate_Auditory_P300.py
Traceback (most recent call last):
  File "stimulus_presentation/generate_Auditory_P300.py", line 40, in <module>
    aud1 = sound.Sound('C', octave=5, sampleRate=44100, secs=0.2, bits=8)
TypeError: __init__() got an unexpected keyword argument 'bits'
2.0765  INFO    Loaded SoundDevice with PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4
2.0772  INFO    sound is using audioLib: sounddevice

Have put a fix attempt on new branch, removing the bits argument. But doesn't really fix the problem (get a few sounds and then errors).

This now seems to be working ok. c.f. the auditory evoked response notebooks in examples and sandbox folders.


Alignment inputs hash improvement

Matches PR: https://github.com/populationgenomics/production-pipelines/pull/958/files
Solves: https://cpg-populationanalysis.atlassian.net/browse/SET-222?atlOrigin=eyJpIjoiNzFmZTRmYzU2ZjFjNDM5MWJiYTQ3OGYzZDIxYWY1YzgiLCJwIjoiaiJ9

See the successful test run here: https://batch.hail.populationgenomics.org.au/batches/533325


Added LeakRadar + Updated SubdomainRadar Twitter

(self prom)
Added LeakRadar.io
Added SubdomainRadar.io Twitter

Hello!
That's a very valuable resource.
Thanks for your contribution.
Looking forward to more contributions from you.
Have a good day!


[feature] VisTrace Homepage

A homepage for VisTrace on the GitHub pages branch would be a great way to tie the GitHub, Workshop, future documentation, tutorials, and showcase content together.
It should provide quick access links to the latest release, Workshop page, and other important resources at the top (filling the screen).
Scrolling down with snapping (and a button at the bottom middle too) would go through the following sections (in order):

About VisTrace along with a link to VisTracing in one weekend
A render showcase using a mosaic of any renders submitted to the branding branch

WIP site is up


If I want to show my model, where should I change it

You can check out issues #2, #8, #15.
Some functions you want to look into first are listed here.
If you only want to train Tiny-VGG on a new dataset, you can also check out issue #14.
I will close the issues for now. Feel free to reach out if you need further help :)


Add whitespace control with {%-, {{-, -}}, and -%}

Functionality is accompanied with corresponding spec tests.

@TechMagister Can you release tag v0.2.5 ?
If so, remember to edit shard.yml and version.cr as well :wink:


Update Initial Message in LexResponse.py

Instead of Eliciting Slot, which seems domain specific, we can have a simple Welcome Message supplied
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks, merged!


Failed to pull image - while deploying httpd-example from Red Hat Documentation

I have a CodeReady Container on CentOS 7.5 Guest OS on a Vmware esxi5.5 setup.
The cluster has been setup as per the steps mentioned in the link below and the cluster is up.
I am trying to add my first app and trying the basic httpd-example as per this link
https://developers.redhat.com/blog/2019/09/05/red-hat-openshift-4-on-your-laptop-introducing-red-hat-codeready-containers/
But the pods never come up.
When I try the describe command it shows it's unable to get to the quay.io server.
From my CentOS host I can access this URL and it returns me the proper html content (thru curl).
I have also tried "crc start -n <IP_ADDRESS>" to make it go to the google DNS server but that did not help either.
Please see the details as below, for "oc  get all" and "oc describe  pod/httpd-example-1-build" commands.
(the outputs have been attached in the files with the respective names - for ease of reading)
I have attached the crc.log file also (though I can't see any errors relating to above in it)
crc.log
oc-get-all.txt
oc-describe.txt

@sundar-cs This looks like network issue inside the VM (mostly dns) can you try following and see if that works for you. Also I noticed that crc.log is not fully uploaded to the issue, it doesn't contain information around pinging an external service like quay.io
$ crc delete
// Get the actual dns server which your host is using instead using the google one.
// Below command might give you a list of DNS IP, try to use one of them which
// able to resolve the dns query
$ nmcli device show | grep DNS
 IP4.DNS[1]:                             <IP_ADDRESS>, <IP_ADDRESS>

// Here for me <IP_ADDRESS> doesn't work
$ dig google.com @<IP_ADDRESS> +short

; <<>> DiG 9.11.14-RedHat-9.11.14-2.fc31 <<>> google.com @<IP_ADDRESS> +short
;; global options: +cmd
;; connection timed out; no servers could be reached

// For me <IP_ADDRESS> works so better to use this one with crc command
$ dig google.com @<IP_ADDRESS> +short
<IP_ADDRESS>

$ crc start -n <my_worked_dns_ip>

Thank you.
(1)
Yes it sounded like a DNS issue and this message had been spotted in syslog (/var/log/messages)
"Apr 16 06:21:39 localhost dnsmasq[12160]: nameserver <IP_ADDRESS> refused to do a recursive query"
(though it has been logged only once in 2+ days despite repeated errors)
(2) In addition to above, the tips on issue #779 is what led me to the "-n" option
(3) Also crc.log still does not have the quay.io messages, the last log is when the cluster was started.
(Note that I had not started it with --log_level debug. Maybe this would have helped ?).
Anyway here's the output for the commands above.
-bash-4.2$ nmcli device show | grep DNS
IP4.DNS[1]:                             <IP_ADDRESS>
IP4.DNS[2]:                             <IP_ADDRESS>
IP4.DNS[3]:                             <IP_ADDRESS>
IP4.DNS[4]:                             <IP_ADDRESS>
IP4.DNS[5]:                             <IP_ADDRESS>
IP4.DNS[6]:                             <IP_ADDRESS>
-bash-4.2$ dig google.com @<IP_ADDRESS> +short
-bash: dig: command not found
(Note : I installed bind-utils at this point).
-bash-4.2$ dig google.com @<IP_ADDRESS> +short
<IP_ADDRESS>
-bash-4.2$ dig google.com @<IP_ADDRESS> +short
<IP_ADDRESS>
It looks as though both are working ?
Hence I did not proceed with the "crc start -n a.b.c.d" yet.

oc describe output has:
  Warning  Failed     67m (x2 over 68m)      kubelet, crc-45nsk-master-0  Failed to pull image "quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:bd8351605aa225bb7affe8f0bd6c6bfc183f36991c22e87bc6b9ca888f54949d": rpc error: code = Unknown desc = error pinging docker registry quay.io: Get https://quay.io/v2/: dial tcp <IP_ADDRESS>:443: i/o timeout
  Warning  Failed     65m                    kubelet, crc-45nsk-master-0  Failed to pull image "quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:bd8351605aa225bb7affe8f0bd6c6bfc183f36991c22e87bc6b9ca888f54949d": rpc error: code = Unknown desc = error pinging docker registry quay.io: Get https://quay.io/v2/: dial tcp <IP_ADDRESS>:443: i/o timeout
  Warning  Failed     64m                    kubelet, crc-45nsk-master-0  Failed to pull image "quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:bd8351605aa225bb7affe8f0bd6c6bfc183f36991c22e87bc6b9ca888f54949d": rpc error: code = Unknown desc = error pinging docker registry quay.io: Get https://quay.io/v2/: dial tcp <IP_ADDRESS>:443: i/o timeout

Note that this lists 3 distinct IP addresses which indeed correspond to quay.io, so I'm not sure this is a DNS issue
$ host quay.io
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>
quay.io has address <IP_ADDRESS>

Yes true thanks for pointing this out.
The dig commands above were at the CentOS Guest level but the problem seems to be that the container under the KVM layer is unable to get to the outside world ?
Is this a fair observation ?
If so, would ssh be a way to get into it to ascertain outside access provided the public key is available at the container ?
ssh -i ~/.crc/cache/crc_libvirt_4.1.11/id_rsa_crc<EMAIL_ADDRESS>(or as crc user ?)

ssh -i ~/.crc/cache/crc_libvirt_4.1.11/id_rsa_crc<EMAIL_ADDRESS>
You could test this for example: ssh -i ~/.crc/machines/crc/id_rsa<EMAIL_ADDRESS>nc -v quay.io 443

oh thank you, i had the wrong path (openssh key).
No it does not work ...
-bash-4.2$ ssh -i ~/.crc/machines/crc/id_rsa<EMAIL_ADDRESS>nc -v quay.io 443
Ncat: Version 7.70 ( https://nmap.org/ncat )
Ncat: Connection to <IP_ADDRESS> failed: Connection timed out.
Ncat: Trying next address...
Ncat: Connection to <IP_ADDRESS> failed: Connection timed out.
Ncat: Trying next address...
Ncat: Connection to <IP_ADDRESS> failed: Connection timed out.
Ncat: Trying next address...
Ncat: Connection to <IP_ADDRESS> failed: Connection timed out.
Ncat: Trying next address...
Ncat: Connection to <IP_ADDRESS> failed: Connection timed out.
Ncat: Trying next address...
Ncat: Connection timed out.
-bash-4.2$ crc version
crc version: 1.8.0+0a318dc
OpenShift version: 4.3.8 (embedded in binary)
It was installed thru these links
https://access.redhat.com/documentation/en-us/red_hat_codeready_containers/1.8/html/getting_started_guide/index
which takes us to
https://cloud.redhat.com/openshift/install/crc/installer-provisioned

Is nc -v quay.io 443 working from the host? Are you using a http proxy for networking?

Yes it works.
-bash-4.2$ nc -v quay.io 443
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to <IP_ADDRESS>:443.
As per the lab sys admin, yes the connection to the internet is thru a web proxy which forwards to a firewall
(But please note that the Guest OS is able to work seamlessly, the entire lab has access to internet, including this host, which is actually a CentOS VM on vmware as mentioned earlier)

But do you have to set http_proxy/... on the host to get outbound connectivity? or is this all seamless, and no need for any configuration? I don't know why the crc VM does not get external access. Maybe worth trying another VM to see if this is a generic issue with your system? (fedora livecd running in a VM created with virt-manager for example, or virt-builder)

Thank you.
I tried this sequence (by retrieving images from getfedora.org).
(1) CentOS 7.5 as guest OS (like before) and then manually installed KVM
(yum install qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-util)
(2) virt-install to create a Fedora VM (server)
virt-install --debug --name falcon-1 --ram 16384 --disk path=/var/lib/libvirt/images/falcon1.img,size=64 --vcpus 1 --virt-type kvm --os-type linux --os-variant ubuntu18.04 --graphics none --location '/tmp/Fedora-Server-dvd-x86_64-31-1.9.iso' --extra-args "console=tty0 console=ttyS0,115200n8"
I guess os variant ("ubuntu") doesn't matter (& hasn't been updated in virt-install), as long as the location is proper.
(3) Above is successful and I can do "virsh console falcon-1" and then
cat  /etc/redhat-release
Fedora release 31 (Thirty One)
On this "ping google.com", "nc -v quay.io 443" etc work well.
i.e. this confirms that in the same lab VPN setup, again with a CentOS guest OS (under esxi 5.5), a KVM virtual machine is able to get to the outside world.
Is that correct ?
I presume in the case of CRC, the tgz file itself has the KVM installables along with the actual VM images etc which are what get installed when we do "crc setup" ?
Can i get into the CRC node and run above commands ?
I can't do "oc exec" as the pod itself doesn't get created (as we're stuck reaching quay.io to pull the image even before that).
I have attached the "ip addr" (ifconfig) and "ip route" (netstat) outputs from the CRC Host machine (CentOS GuestOS) and also the above setup (CentOS + Fedora VM) just to check if that gives any clues.
ip-add-and-ip-route.Fedora-VM.txt
ip-addr-and-ip-route.Fedora-Host.txt
ip-addr-and-ip-route.CRC-Host.txt

You can use ssh -i ~/.crc/machines/crc/id_rsa<EMAIL_ADDRESS>to get ssh access

yes thank you, I recollected we had tried this earlier too (in the same thread above).
However now I captured the "ip addr show" and "ip route" outputs etc as attached (also the nc output again but with the same results).
ip-addr-and-ip-route-CRC-VM.txt
(Are there so many network interfaces due to multiple stop/start operations ?)

I believe it's the container networking stack which creates these interfaces, but never really looked closely ;)
Regarding your virt-install test from before, I suspect virtual networking was not configured the same way, virsh dumpxml crc has <interface type='network'>, I would not be surprised if the default with virt-install was something different.
One more random thing you could try (had issues with that a few times) is to stop the crc VM, and do `systemctl stop libvirtd.service && systemctl start libvirtd.service). I've seen libvirtd networking getting confused in the past.

I encountered exactly the same DNS issue in MacOS and crc delete + crc start -n <IP_ADDRESS> didn't work for me.
Luckily I learned how to SSH into the hyperkit VM from this thread and I realized that the /etc/resolv.conf didn't add my <IP_ADDRESS> there.
So I added it into it then hurrah it worked!
Attached is my manually updated /etc/resolv.conf content for your reference:
[core@crc-bq5fv-master-0 ~]$ cat /etc/resolv.conf
# Generated by CRC
search crc.testing
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
nameserver fe80::184d:a91f:783c:1569%enp0s1

Thank you (Christophe and Bright).
I tried the latter suggestion but in my case it didn't help, then recollected that in my case DNS was not the issue as discussed earlier in this thread too.
Then I tried the former suggestion about restarting libvirtd and yes it resolved it ! Thanks so much.
To sum it up :
as described earlier in this thread, when I installed the KVM manually on fresh setups (yum install qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-util) and then tried virt-install the VM created within KVM hypervisor had no issues.
This suggested that there's no issue in the lab setup as such (but I had not tried CRC on these new setups yet)
Then on the same setup where I had CRC issues, I did the restart of libvirtd as per Christophe suggestion and that fixed it (Thank you !)
Subsequent to this, I installed CRC too on my other manually installed KVM setups and they too were fine.
Thus it boils down to 1 particular setup (which happened to be my 1st setup) having peculiar issues with libvirtd.
So the issue is now closed but I'm leaving this thread open in case there are other comments (and let it get closed by the Robot after idle period).
Thanks a bunch.

Thus it boils down to 1 particular setup (which happened to be my 1st setup) having peculiar issues with libvirtd.

This happens to me about once a year on my laptop, I never tried to investigate since it's so rare and not hard to fix. This could be caused by upgrade of specific packages while libvirtd is running?

Yes possibly ... Thank you.


MEMBERSHIP: elohmrow

GitHub Username
@elohmrow
Requirements

[x] I have reviewed the community membership guidelines
[x] I have enabled 2FA on my GitHub account
[x] I have joined the Crossplane slack channel
[x] I am actively contributing to the Crossplane project
[x] I have two sponsors that are current Crossplane Org members
[x] I have spoken to my sponsors ahead of this application, and they have agreed to sponsor my application

Sponsors

@jbw976
@ytsarev

List of contributions to the Crossplane project

PRs reviewed / authored
Issues responded to

+1 @elohmrow has been getting ramped up on Crossplane with a lot of perspective from the field and adopters - looking forward to having his opinion in the project! 💪

+1 @elohmrow you have a unique understanding of the experience of the huge spectrum of Crossplane adopters. Your ideas will be extremely valuable. Welcome!


cli not supporting

I'm submitting a ...  (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request/question

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions (if applicable)

I have  run the command:
npm install ng2-tag-input --save
imported module
import { TagInputModule } from 'ng2-tag-input';
@NgModule({
imports: [ TagInputModule ]
})
export class MyModule {}
But gives me the error even i doesn't use this anywhere, it gives instant error when importing this.
What is the motivation / use case for changing the behavior? (if applicable)

Unhandled Promise rejection: Template parse errors:
'ng-template' is not a known element:

If 'ng-template' is an Angular component, then verify that it is part of this module.
If 'ng-template' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the<EMAIL_ADDRESS>of this component to suppress this message. ("tchCase="true" [attr.contenteditable]="editModeActivated">

[ERROR ->]<ng-template
[ngOutletContext]="{ item: model, index: index }"
[ngTemplateOut"): TagComponent@11:8 ; Zone:  ; Task: Promise.then ; Value:

What do you use to build your app? (SystemJS, Webpack, angular-cli, etc.). Please specify the version

angular-cli
Angular version:

Angular 2 Cli
"@angular/common": "^2.4.0",
"@angular/compiler": "^2.4.0",
"@angular/core": "^2.4.0",
"@angular/forms": "^2.4.0",
"@angular/http": "^2.4.0",
ng2-tag-input version:

"ng2-tag-input": "^1.0.5"
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Chrome
Mozilla
IE 10, 11

You need to upgrade your Angular version, or use version 1.0.0 of this component

Cant install previous version

then you need to upgrade - or use a different component


Why is the backward step in ppo_trainer not handled by accelerate's accumulate?

Hi, while looking at the step( ) function in ppo_trainer.py we noticed that the the train_minibatch which computes loss and does the backward step is called outside the accumulate context manager.
See from here :

Other examples on the Accelerate page do the back prop within the accumulate. Why is Trl's implementation different?

Would really appreciate your insight/thinking behind this @younesbelkada @lvwerra

That seems to be indeed a bug, what do you think @younesbelkada?

It looks like it's a bug yes, just made #407


a error occured when running webcamera.py

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/data/anaconda3/envs/py397/bin/platforms" ...
loaded library "/data/anaconda3/envs/py397/plugins/platforms/libqxcb.so"
QObject::moveToThread: Current thread (0x55e768233f40) is not the object's thread (0x55e76713c820).
Cannot move to target thread (0x55e768233f40)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, xcb.

this may caused by opencv-python.


Improve CI pipeline

Add deploy action
Split test into own workflow file

Codecov Report

Merging #25 (4b79073) into master (a01e33b) will decrease coverage by 0.73%.
The diff coverage is 36.36%.

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
- Coverage   45.83%   45.10%   -0.74%
==========================================
  Files          22       22
  Lines         792      796       +4
==========================================
- Hits          363      359       -4
- Misses        429      437       +8

Flag
Coverage Δ

unittests
45.10% <36.36%> (-0.74%)
:arrow_down:

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

Impacted Files
Coverage Δ

vaalikoppi/views/helpers.py
17.17% <0.00%> (-0.73%)
:arrow_down:

election/settings/base.py
100.00% <100.00%> (ø)

election/settings/dev.py
60.00% <100.00%> (-20.00%)
:arrow_down:

vaalikoppi/models.py
65.64% <100.00%> (ø)

election/urls.py
81.81% <0.00%> (-9.10%)
:arrow_down:

Continue to review full report at Codecov.

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

Codecov Report

Merging #25 (4b79073) into master (a01e33b) will decrease coverage by 0.73%.
The diff coverage is 36.36%.

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
- Coverage   45.83%   45.10%   -0.74%
==========================================
  Files          22       22
  Lines         792      796       +4
==========================================
- Hits          363      359       -4
- Misses        429      437       +8

Flag
Coverage Δ

unittests
45.10% <36.36%> (-0.74%)
:arrow_down:

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

Impacted Files
Coverage Δ

vaalikoppi/views/helpers.py
17.17% <0.00%> (-0.73%)
:arrow_down:

election/settings/base.py
100.00% <100.00%> (ø)

election/settings/dev.py
60.00% <100.00%> (-20.00%)
:arrow_down:

vaalikoppi/models.py
65.64% <100.00%> (ø)

election/urls.py
81.81% <0.00%> (-9.10%)
:arrow_down:

Continue to review full report at Codecov.

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


Adds Planner utilities class. Closes #3268

Closes #3268
Summary
Added planner.ts utility file with 3 functions:

getPlanById(id: string): Promise<PlannerPlan>
getPlansByGroupId(groupId: string): Promise<PlannerPlan[]>
getPlanByName(name: string, groupId: string): Promise<PlannerPlan>

Removed unused logger parameter from the /utils/odata.ts. This was discussed here: https://github.com/pnp/cli-microsoft365/pull/3286#discussion_r867351629.
 We'll review it shortly

Hi @plamber
Resolved the merge conflicts and refactored planner bucket get command to use the planner util.

Thank you. Awesome work. I still had trouble merging the changes but was able to make it in the end. Manually merged


[Question] How to avoid entering nodes manually?

If I understand the documentation correctly, nodes must be both labeled and entered into the gateway spec. The labeling of the nodes can be done when registering a node. After that I have to manually adjust the gateway spec. This makes automation very difficult.
Are there currently other ways to do this, e.g. only via the labels?  What is the reason for the double entry?

Only gateway nodes should be entered into the gateway spec

for new node added to gw-wlcb gateway，just run：
kubectl label nodes $(nodeName) raven.openyurt.io/gateway=gw-wlcb
if this node is not a candidate gateway node, you do not need to enter it to gateway spec


Parser is broken for export const thing = 'hello'

If a file contains export const thing = 'hello', that should show up in the parsed file's exportDetails, but doesn't, meaning it cannot be imported by another file running in the canvas

As part of this ticket, please ensure that we're covering all forms of exports outlined here: https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export


userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms

Hi,
thank you for the plugin.
We are using the plugin to connect to an Ubuntu SFTP server.
After upgrading Ubuntu from release 20 to 22 the sftp connection was not possible anymore.
Error on server side:
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Workaround was to add ssh-rsa on server side:
PubkeyAcceptedAlgorithms=+ssh-rsa
Is there a possibility to change the algortihm from ssh-rsa to a more secure algo with config?
Or would we need a change e.g. in /master/lib/fastlane/plugin/sftp/helper/sftp_helper.rb
best regards
Malte

Sorry for the late reply.
I try to have a look into this, but my first guess would be to update the versions of net-ssh and/or net-sftp in file
fastlane-plugin-sftp.gemspec
net-ssh is currently at 7.1 so there will be probably additional code changes to be made.

No problem. This workaround stills works for us.
Feel free to reach out to me if you need help with testing the new release after updating to net-ssh 7.1.0


Postgres: persistentVolume mounted with incorrect file permissions

Thank you for such a nice piece of software, it makes our devops lives much easier. I'm trying out the 0.13.0-rc.0 release and I seem to find an issue on restarting postgres pods.
Our enviroment consists of:

Kubernetes 1.15.4-gke.8 with PSP enabled on GKE
Istio 1.4.0 with SDS and STRICT MTLS
KubeDB Operator 0.13.0-rc.0

Having Istio & PodSecurityPolicies enabled we first needed to add the NET_ADMIN to the allowedCapabilities of the Policy.
A typical Postgres deployment looks like:
apiVersion: kubedb.com/v1alpha1
kind: Postgres
metadata:
  name: postgres
  namespace: xxx
spec:
  version: 11.2
  replicas: 2
  standbyMode: Hot
  storageType: Durable
  storage:
    storageClassName: ssd
    accessModes:
      - ReadWriteOnce
    resources:
      requests:
        storage: 64Gi
  terminationPolicy: DoNotTerminate
  podTemplate:
    spec:
      nodeSelector:
        some.tags: to-check
  archiver:
    storage:
      storageSecretName: xxx-credentials
      gcs:
        bucket: xxx-backup-xxx

Here it comes; the first time the database is created properly, we could use it for a time. But after a patch from KubeDB, it stops booting and it'll get in Failed state with output of the following message:
I1207 16:27:42.738345       1 log.go:172] FLAG: --alsologtostderr="false"
I1207 16:27:42.738388       1 log.go:172] FLAG: --bypass-validating-webhook-xray="false"
I1207 16:27:42.738394       1 log.go:172] FLAG: --enable-analytics="true"
I1207 16:27:42.738399       1 log.go:172] FLAG: --help="false"
I1207 16:27:42.738405       1 log.go:172] FLAG: --log-flush-frequency="5s"
I1207 16:27:42.738411       1 log.go:172] FLAG: --log_backtrace_at=":0"
I1207 16:27:42.738416       1 log.go:172] FLAG: --log_dir=""
I1207 16:27:42.738422       1 log.go:172] FLAG: --logtostderr="true"
I1207 16:27:42.738427       1 log.go:172] FLAG: --stderrthreshold="0"
I1207 16:27:42.738432       1 log.go:172] FLAG: --use-kubeapiserver-fqdn-for-aks="true"
I1207 16:27:42.738437       1 log.go:172] FLAG: --v="3"
I1207 16:27:42.738442       1 log.go:172] FLAG: --vmodule=""
We want "dashboard-postgres-0" as our leader
I1207 16:27:42.875477       1 leaderelection.go:205] attempting to acquire leader lease  production/dashboard-postgres-leader-lock...
Running as Replica
Attempting pg_isready on primary
Attempting pg_isready on primary
Attempting pg_isready on primary
Attempting pg_isready on primary
Attempting pg_isready on primary
Attempting pg_isready on primary
Attempting pg_isready on primary
Attempting pg_isready on primary
Attempting pg_isready on primary
I1207 16:28:00.334908       1 leaderelection.go:214] successfully acquired lease production/dashboard-postgres-leader-lock
Got leadership, now do your jobs
I1207 16:28:00.359373       1 pod.go:56] Patching Pod production/dashboard-postgres-0 with {"metadata":{"labels":{"kubedb.com/role":"primary"}}}
I1207 16:28:00.395678       1 pod.go:56] Patching Pod production/dashboard-postgres-1 with {"metadata":{"labels":{"kubedb.com/role":"replica"}}}
Attempting pg_isready on primary
Postgres promotion trigger_file found. Running primary run script
Running as Primary
pg_ctl: another server might be running; trying to start server anyway
waiting for server to start....2019-12-07 16:28:00.982 GMT [40] LOG:  skipping missing configuration file "/etc/config/user.conf"
2019-12-07 16:28:00.982 GMT [40] LOG:  skipping missing configuration file "/etc/config/user.conf"
2019-12-07 16:28:00.983 UTC [40] FATAL:  data directory "/var/pv/data" has invalid permissions
2019-12-07 16:28:00.983 UTC [40] DETAIL:  Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
 stopped waiting
pg_ctl: could not start server
Examine the log output.
I1207 16:28:01.075867       1 log.go:172] exit status 1

Is there anything I can do to clarify this issue?

Hi,
I've exactly the same issue. Any news/solution about it ?
Regards.

I got similar issue with playing local storage and persistent volume claims.
For me it helped use securityContext.fsGroup: 70 (70 is postgres)

Up !

Up!

For me it helped use securityContext.fsGroup: 70 (70 is postgres)

This worked for me as well.
Had same permission issue on a fresh installation of community edition v2021.03.11.

This issue has been resolved in v2021.03.17 . Please open a new issue if this persists.


Nano Server image for 1809?

The latest 1809 image only has a Windows Server Core variant - mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019. Is there going to be a Nano Server image update?

Unfortunately, no. We've dropped support for IIS on Nano after ltsc2016. Part of reducing the image size in the Windows base image meant IIS no longer tenable.


Type that represents anonymous function definition

I'm trying to create a data structure which stores anonymous functions (i.e. lambdas / arrow functions), and validates the inputs/outputs.
I'm struggling to figure out whether this is possible, and what the syntax might be.
If I were to define the anonymous function as I would in regular TypeScript, I would do something like the following:
export const MultiStatisticsWidget = Record({
    widgetType: WidgetType,
    widgetName: String,
    widgetPeriod: Number,
    defaultMetric: String,
    thresholds: (enabled: Boolean) => Number
});

export type MultiStatisticsWidget = Static<typeof MultiStatisticsWidget>;

const widget: MultiStatisticsWidget = {
    widgetType: "TEST",
    widgetName: "test",
    defaultMetric: "Test",
    widgetPeriod: 5,
    thresholds: (enabled: Boolean) => enabled ? 10 : 0
}

But it gives me the error: TS2740: Type '(enabled: Boolean) => Number' is missing the following properties from type 'Runtype': assert, check, validate, guard, and 7 more.
It looks like Function might work, but there doesn't seem to be any way to validate that it takes a Boolean as an input and a Number as an output. I've also played around with Contract, but it doesn't seem to like being made into a Type.
Is there anything obvious that I'm missing?

Yeah, Contract is not meant to validate functions, but their arguments and return values at call time. If we have #191 merged, then you will be able to convert validated functions into their Contract-wrapped versions automatically.
The problem is, JavaScript has no runtime reflection/introspection about the signature of a function. So unfortunately there's no chance to be able to validate genuinely parameters' types and return types of provided functions. If you really want to do that, then you need to implement some reflection feature on your own, for example, "embed" necessary information into your functions, and validate those information instead of the function itself, like this:
const f = Object.assign({ returns: 'boolean' } as const, () => true);
Record({ returns: Literal('boolean') }).validate(f);

But I don't think it's a good idea. It would easily become disgusting if developers have to populate such properties opaquely in order to create legal functions. Furthermore, newly-created values that need to be validated against your schema are basically coming from outside of your control, and you cannot expect those properties are already populated.


Themes

Add a themes parameter so the user can choose from a pre-defined list of report themes.  Theme will control colors, striping, bolding, etc.

For HTML.


Do not add event listener methods when no interface object

See #108.

Closing, since theoretically one may want to extend the interface and the methods should reflect that.


Remove some unused imports

I ran flake8 *.py **/*.py over the entire repo, and corrected all
the reports of unused imports.

Can one of the admins verify this patch?

ok to test

LGTM.  Happy for you to merge once the PR builds have passed.

retest this please

PR builds have passed; merging


'List of instructors by time period' report does not give a list of instructors

'List of instructors by time period' under Reports gives a list of workshops rather than a list of instructors (possible naming error or misunderstanding on my part).

This returns  a two column report display -- workshops and instructors (name, email, count of workshops taught).   You can download this as CSV if you need to manipulate that data in other ways.  You can also click the email link which will open your default email client with an email addressed to everyone in this list.
Is this what you are seeing?

Yes, that is want I see. I was just looking after a list of all instructors with their countries and contact details. So I misunderstood the 'List of instructors by time period' - I thought that would be list of all instructors that became instructors in a certain period of time.

I see.  So yes, this is a list instructors who taught in a given time period with their contact info -- not when they became instructors.  It does not include country.

We weren't able to come up with a shorter description than "list of instructors by time period" (previously it was "Debrief" or similar, I believe). I'm closing this issue for now - if you have an idea how to improve this part of AMY, please reopen.


APP-1203: New constructor for UnexpectedBootstrapException

Codecov Report

:exclamation: No coverage uploaded for pull request base (dev@ddb6074). Click here to learn what that means.
The diff coverage is 0%.

@@          Coverage Diff           @@
##             dev     #104   +/-   ##
======================================
  Coverage       ?   89.31%
======================================
  Files          ?      117
  Lines          ?     2133
  Branches       ?      235
======================================
  Hits           ?     1905
  Misses         ?      149
  Partials       ?       79

Impacted Files
Coverage Δ

...eption/bootstrap/UnexpectedBootstrapException.java
50% <0%> (ø)

Continue to review full report at Codecov.

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


Code | Alphabetic Pattern 80

@aryashah2k Kindly assign this one to me.

@aryashah2k Kindly assign this one to me.


When going through lists, every time you disable an album, the list resets back to the first page

When going through lists, every time you disable an album, the list resets back to the first page.  It's a little annoying when you are trying to weed out stuff you don't want and you've got a lot to go through.

It also resets any sorts you've done and resets your total albums per page back to 10.  Pretty minor issues I guess, just driving me a bit nuts.  Thanks for the hard work you've put into this though!

Yes, the table and filtering is provided by in-browser js and resets on page refresh.
To fix this, I would need to implement paging in the flask routes and jinja2 templates, which are not planned anytime soon, sorry!


Errors observed - Load test - Flogo App (Rest Trigger to Rest Activity)

Performed Load test on Flogo App with simple Rest Trigger and Rest Activity.
Below are the steps:
1)Install go-wrk
go get github.com/tsliwowicz/go-wrk
2)create the app with latest.json(project-flogo) and run the app(Attached the file).
3)Run the local backend node1.js server.(Used node server to reduce network latency)
node node1.js
4)Now run the below command to hit the gateway with 5 concurrent clients:
go-wrk -c 5 -d 120 http://localhost:9096/test
The below errors are seen:
dial tcp <IP_ADDRESS>:1234 : connect: cannot assign requested address
Also, when using the old TIBCOSoftware/flogo-contrib flow and activities no error is seen for 50 concurrent clients.
Repeat the above steps with the oldFlogo.json.
go-wrk -c 50 -d 120 http://localhost:9096/test
Attached the latest.json, node1.json and oldFlogo.json.
attachments.zip
Note: Have already raised this issue in CLI, on Advice we are raising it in core.

Hi, after reviewing this issue, it probably be filed against core or flow. It is not a CLI issue. Regardless, running your test on my Mac (go version go1.11.1 darwin/amd64), I see much better performance and stability under the new code. I get the following running the latest:
276805 requests in 1m57.289766241s, 38.54MB read
Requests/sec:	2360.01
Transfer/sec:	336.49KB
Avg Req Time:	2.118635ms
Fastest Request:	245.498µs
Slowest Request:	1.188148321s
Number of Errors:	10
And on the old code:
48911 requests in 1m2.028339413s, 6.81MB read
Requests/sec:	788.53
Transfer/sec:	112.43KB
Avg Req Time:	6.340939ms
Fastest Request:	414.594µs
Slowest Request:	5.379473003s
Number of Errors:	265

The error I get from both is from the load client and not the engines:
An error occured doing request Get http://localhost:9096/test: net/http: timeout awaiting response headers
empty response

@fm-tibco
I have verified in Mac and Windows with the latest flogo, no issue is reported in Gateway, But in Ubuntu, Gateway gives the above Error log(connect: cannot assign requested address). Hence I feel issue is only in Ubuntu.
Let me know if you need any details.


d_a_sail

Psail

has weak function ordering issues related to ~daSail_packet_c (virtual destructor of J3DPacket child class) and cXyz constructor


Is this project dead?

I hate to ask but seems there's been no response to my previous issue nor the issues that user rgov has filed either and this appears to be the recommended tool by the coveralls.io system.

Patches welcome.
It is an open source project, anyone is able to contribute as they see fit.
AFAIK the people who maintain it don't do this as part of their job, I still use cpp-coveralls in many of my open source projects and it behaves for my use cases.


Error looking up killproof records

When I launch the extension window with release v2.11.0 I get one line of:
URL: https://killproof.me/api/kp/<account>?lang=en -- Status:0 -- Response:  -- ErrorMessage: schannel: AcquireCredentialsHandle failed: SEC_E_INTERNAL_ERROR (0x80090304) -- Reason:  -- StatusLine:  per player in the group/squad, where I've replaced the various user accounts with <account> in that string. This is consistent, not intermittent.
Reverting to v2.10.0 works as normal, so this appears to be a new bug or regression. It is also possibly specific to Linux, as it does not appear to have been reported before. I am happy to test builds, but am not able to fiddle with it myself as I lack familiarity with the relevant build tools, and suspect they would not work well in Linux.
There appear to have been some whitespace changes between releases, complicating visual inspection of differences; as the developer you are probably familiar with anything key that may have changed between releases.

The latest update causes the game to lock up instead as soon as it starts to look up records, necessitating a client kill and restart.

The latest update still locks up the game as soon as it starts to look up records, necessitating a client kill and restart.


Better visualization of trashcan graphs

Currently values in the graph have a fixed horizontal distance between each other, no matter the time that has passed. This should be changed, so that time on the x-axis increases continuously.
Example of the issue:

also open to other suggestions for better visualization. Like maybe we can do sth about the scrollbar? Maybe if you hover over the graph and scroll with the mouse wheel the graph moves from side to side


Object names should be case insensitive

I propose we make objects (services, networks, ...) case insensitive.
Right now, you can service create --name foo and service create --name FOO - I think this may lead to issues.
@stevvooe @mrjana @dongluochen @vieux Thoughts?
In order to fix this, we should:

Update the various name indexers to lowercase before indexing
Change the byName filter to lowercase before doing an index lookup

We would store the name untouched, that is, if the user says "FOO", then service ls will display "FOO" - only the indexing/lookup is affected.

@aluzzardi I didn't think of the case sensitivity of service names but they should be case insensitive because we use them for DNS name lookup and DNS entries are case insensitive. Also we have to make sure service names contain only valid DNS characters.

This is a must, since we intend to project most objects, in some way or another, into DNS.
This is heavily related to #898.


Type Issues found in spec files

[x] In forwardings.yaml and config.json, in INPUT fc-port of forwarding-construct ServiceRequestCausesLoggingRequest, we shall need to add the following services.

tar-2-1-0-op-s-bm-013 - /v1/dispose-remainders-of-deregistered-application
tar-2-1-0-op-s-bm-014 - /v1/inform-about-preceding-release
tar-2-1-0-op-s-bm-015 - /v1/update-client-of-subsequent-release

[x] Since, /v1/update-client-of-subsequent-release could update ltp instances in load file, this shall be eligible for sending a LTPUpdate request to ALT. In forwarding-construct ServiceRequestCausesLtpUpdateRequest, /v1/update-client-of-subsequent-release (tar-2-1-0-op-s-bm-015) is to be added into INPUT fc-port list.
This change is required in both forwardings.yaml and config.json files.

[x] In forwardings.yaml, the client-name of consequent-requests of forwarding-constructs  - GuiRequestForVisualizingListOfApplicationsCauses.Authentication and GuiRequestForDocumentingAnApprovalStatusChangeCauses.Authentication shall be updated as /v1/approve-oam-request.
- This is because  AA://v1/approve-basic-auth-request is introduced in  AccessAdministration v2.1.0. But we are referring to AdministratorAdministration v2.0.1 in config file.

[x] In config.json file, release-list/local-id of release-number 2.1.0 shall be "2" for http-server instance tar-2-1-0-http-s-000

[x]  In config.json file, value of remote-port of tar-2-1-0-tcp-c-nr-2-1-0-000 shall be 3025

[x] In config.json file, release-number of Registryoffice http-client instance tar-2-1-0-http-c-ro-2-1-0-000 shall be 2.1.0

Changed as proposed.


CHANNELD_AWAITING_LOCKIN Problem low fee for closing unconfirmed funding tx channel.

I habe since 3 month a channel in "CHANNELD_AWAITING_LOCKIN" status
Geh funding tx is unconfirmed in block explorer
Funding TXid: b832f3e2ab2eb572e1cbae5034ecfeb6a08e806c2ff15a4363f6bda94e684686
When I reinstall core lightning  I get a message :
closingd-chan#1: Our ideal fee is 828sat (1500 sats/perkw), but our maximum is 700sat: using that
I try to find a solution with lightning-cli help - I found

setchannel id [feebase] [feeppm] [htlcmin] [htlcmax] [enforcedelay] ?
anyone know the right syntax for this command
lightning-cli setchannel id  (channel id) ? ? ? ? ? ? ?

This setchannel command is to set the routing fees, that's not what you need.
The tx you have linked is not found: https://mempool.space/tx/b832f3e2ab2eb572e1cbae5034ecfeb6a08e806c2ff15a4363f6bda94e684686
If you have only onchain funds best to restore from the seed only and wait for the rescan to finish to get your funds.
If you have channels do not reset the node, but spend all the onchain funds from the wallet (can simply send all of it to a new address in CLN with RTL) to make sure this outdated transaction doesn't get broadcasted.

After recover from seed I get loop
DEBUG   gossipd: seeker: no peers, waiting
DEBUG   plugin-bcli: Feerate min_acceptable raised from 2569 perkb to floor of 3112
DEBUG   plugin-bcli: Feerate min_acceptable raised from 2569 perkb to floor of 3112
??No funds in RTL


Fix invalid type-assertion of nil to ComponentOrHTML

Fixes #164

Codecov Report

Merging #165 into master will decrease coverage by 0.14%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master     #165      +/-   ##
==========================================
- Coverage   47.33%   47.18%   -0.15%
==========================================
  Files           4        4
  Lines         638      640       +2
==========================================
  Hits          302      302
- Misses        297      299       +2
  Partials       39       39

Impacted Files
Coverage Δ

markup.go
67.46% <33.33%> (-1.67%)
:arrow_down:

Continue to review full report at Codecov.

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


fatal error: runtime: out of memory

Hi :
When MapReduce the 6G logs in HDFS, memory is out.
` := flow.New(" data").
	Read(file.Csv("hdfs://"+conf.Hdfs.Host+":"+strconv.Itoa(conf.Hdfs.Port)+conf.Hdfs.Namespace+"/data.csv", *partitionCount).SetHasHeader(false))`

The total memory is  16G.

increase partition count

Also,  when the partition count increased to 300.

increase partition count
Also, when the partition count increased to 300.

The program died when the partition counts great than 300.


[SQL-DS-CACHE-146] port code from branch-1.1-spark-3.1.1 to master

What changes were proposed in this pull request?
port code from branch-1.1-spark-3.1.1 to master
How was this patch tested?
N/A

@winningsix Please help merge this PR.


Add Hungarian version

In line with centuries of Polish-Hungarian friendship, I'd like to contribute a localized version which makes significant use of shared... vulgarities.

In appreciation of the long friendship with the glorious Hungarian nation, I am honored to accept this contribution.

:+1:


ConsBequestModel and related example notebooks

Consider the two notebooks example_TerminalBequest.ipynb and example_AccidentalBequest.ipynb.
If you look at ConsBequestModel.py where the dictionaries used in these notebooks are defined are located, it says that the key difference between the respective dictionaries init_warm_glow and init_accidental_bequest is that ["BeqFac"] = 1.0.
However, if you go to the two notebooks and insert the following code immediately after the params variable are defined for each dictionary, you will see that a list of [1.0]'s is returned for both:
print(TerminalExample.BeqFac) or print(Agent.BeqFac) for the respective notebook.
This is particularly alarming, since the notebooks produce two different results (despite the fact that, upon close inspection, the two dictionaries are the same in the parameters that are supposed to make them different).
I'd like to meet via zoom to discuss/correct this; it seems most efficient this way since i) I am not a collaborator and ii) the issue could be the end-user's machine (though I don't think this is the case).

Update: If you insert the command print(params["BeqFac"]) in the notebook example_TerminalBequest.ipynb where the dictionary init_warm_glow is used, you will get an error KeyError: 'BeqFac' . This also points to the issue: it seems that when the Bequest consumer type is constructed, it just assigns [1.0] if no value of ["BeqFac"] is specified. Intutitively, it should be [0.0] right ?
Ex. If I initialize a Bequest Consumer type with the standard init_lifecycle dictionary, it should set all relevant bequest parameters to 0. For whatever reason, the init_warm_glow dictionary is leading to an instance of the Bequest Consumer type to be initialized with [1.0] as its value for ["BeqFac"].
This is a one line fix in "ConsBequestModel.py" where the dictionary is defined. However, it may not prevent other issues like this showing up (i.e. it seems we need to find out what is causes the default to be [1.0] and not [0.0] as opposed to just inserting init_warm_glow["BeqFac"] = [0.0]).


Nullable properties of input arguments lead to NullReferenceException in generated code

Running with 4.1.0-preview.2 on dotnet 7.0  i am having an issue with the following input type. Both fields are nullable/optional. The server would expect one of them to be provided:
input MonitorRelateToOneForCreateInput {
  create: MonitorCreateInput
  connect: MonitorWhereUniqueInput
}

The generated code treats both of them as required and tries to get the values of the fields, even if they can be null. This leads to a System.NullReferenceException

It should be possible to send input objects with nullable properties.

I will have a look

Checkout v4.1.0-preview.4. The issue should be fixed.

Thank you very much. Works perfectly!


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v4.14.240",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0ac50a76cf3cd63db000648b3b19f3f98b8aaa76"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "0ac50a76cf3cd63db000648b3b19f3f98b8aaa76",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "watchdog: Fix possible use-after-free in wdt_startup()\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v4.14.240 by commit 0ac50a76cf3cd63db000648b3b19f3f98b8aaa76. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1001416


Link to moved message

As suggested on CZO, when Notification Bot sends a noitce about a single moved message to the stream that it was moved to, it would be helpful to link to the new location of the message:

"[A message](new message URL) was moved here from..."

(Currently there is no link on "A message".)

@zulipbot claim

Hey, can i work on this issue?

@KousikRoy-EC I’m working

@alya  I want to contribute in this issue

@KousikRoy-EC I’m working

How to download and run the code? Can you help?

@zulipbot can i work on this issue

could you please assign this issue i may try


ThemePackage.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the seti-syntax package
ThemePackage.getStylesheetsPath (/Applications/Atom.app/Contents/Resources/app/src/package.js:430:9)
ThemePackage.getStylesheetPaths (/Applications/Atom.app/Contents/Resources/app/src/package.js:441:32)

Any suggestion how to fix it?

Duplicate of #67, please close this.

Thanks