Feature request: improved datetime constructor behavior

Description
Thanks for adding datetime utilities!
Can it be extended to consider the following scenario?
let date = datetime.today()

for ii in range(15) {
  date = datetime(year: date.year(), month: date.month() + ii, day: date.day())
  date.display()
}

I would hope this displays every month, and increments the year when months are $\geq 13$. However, months simply cap at 12. At the very least, it would be more intuitive what is happening if there was a panic on months greater than 12 (similar to how 0 is not allowed, and subtraction could also apply here).
It's simple enough to handle this in local code, but the challenge becomes larger with day increments flowing into months.
Use Case
It is common, especially in tables with many dates, to have a fixed increment of dates appear. This would be a great way of programmatically handling that case. Even better if datetime.timedelta or something similar made date arithmetic more strongly supported.
Note that python's timedelta doesn't allow incrementing months, since the amount of time is undefined. But, they do allow incrementing days, years, etc. Not sure if this caveat matters as much for typst's audience 🤷

Try something like this:
let date = datetime.today()
let month = date.month()

for ii in range(15) {
  let date = datetime(year: date.year() + calc.floor((month + ii) / 12), month: calc.rem(month + ii, 12) + 1, day: calc.min(28, date.day()))
  date.display() + [\ ]
}

Right, it's certainly possible. My comment was more about modifying the datetime constructor to either panic on values >12 (as it does with a value of 0), or do this conversion behind the scenes.

day: calc.min(28, date.day())

Consider the case where day() started at 30, this would cause the day to be truncated, so more complex logic would be needed here as well

I think introducing some form of duration arithmetic mechanism would probably be more appropriate. A proper API for that would have to be discussed, however.

day: calc.min(28, date.day())

Consider the case where day() started at 30, this would cause the day to be truncated, so more complex logic would be needed here as well

Yes, I went with the least effort approach there. For a full solution, you'd need something like
let max-days = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)
and then, inside the loop
let new-month = calc.rem(month + ii, 12) + 1
let new-day = calc.min(max-days[new-month - 1], date.day())
I agree some more convenient API would be better, however.

There is an open PR that does something like this: https://github.com/typst/typst/pull/1843

Yeah, adding a duration to a datetime (one of the features added by #1843) is much better than (re)implementing datetime logic. Very easy to make a mistake or forget a nuance.

A duration type was merged.


Gem installation failing on Ubuntu despite installing libtorch

I'm trying to install torchvision on Ubuntu 18.04 (Ruby 2.7.1). It fails with:
have_library: checking for -ltorch... -------------------- no

"g++ -o conftest -I/home/derrell/.rvm/rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-linux -I/home/derrell/.rvm/rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/home/derrell/.rvm/rubies/ruby-2.7.1/include/ruby-2.7.0 -I.     -I/home/derrell/.rvm/gems/ruby-2.7.1/gems/rice-2.2.0/ruby/lib/include -g -O2 conftest.c  -L. -L/home/derrell/.rvm/rubies/ruby-2.7.1/lib -Wl,-rpath,/home/derrell/.rvm/rubies/ruby-2.7.1/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic  -L/home/derrell/.rvm/gems/ruby-2.7.1/gems/rice-2.2.0/ruby/lib/lib -lrice -L/usr/local/lib    -lgomp -lstdc++  -Wl,-rpath,'/../lib' -Wl,-rpath,'/../lib' -lruby -ltorch -lgomp -lstdc++  -lm   -lc"
/usr/bin/ld: cannot find -ltorch
collect2: error: ld returned 1 exit status

This is despite having directly installed libtorch via apt install libtorch:
~/RubymineProjects/MachineLearningRuby$ locate libtorch
/usr/lib/libtorch.so.3
/usr/lib/libtorch.so.3.0.0

Any suggestions?
Thanks!

Grrr. Apparently this can be solved by linking /usr/lib/libtorch.so to the underlying version.
Unfortunately, build problems persist with no torch.h anywhere...

Hey @derrelldurrett, it looks like apt install libtorch installs libtorch3c2, which is a different package. Try the instructions here: https://github.com/ankane/torch.rb#libtorch-installation

Cleaning up issues


Implement GetTimeSlotsForDate Interactor

Closes #980
It has a lot of changes in the TimelineViewModel as well.

This has been split into two PRs


Use maximal ncomp per level of the solve, not the globally maximal ncomp

On the following simulation (which is chosen such that this PR gives a maximal performance boost), we get a speed up of 3x for compilation time and 12x for runtime. This is achieved by using the maximal number of compartments within a level for the voltage solve, instead of using the globally maximal number of compartments.
import time

import jaxley as jx
from jaxley.channels import Leak

depth = 7
parents = [-1] + [b // 2 for b in range(0, 2**depth - 2)]

comp = jx.Compartment()
branch1 = jx.Branch(comp, nseg=16)
branches = [branch1] + [jx.Branch(comp, nseg=1) for i in range(len(parents) - 1)]
cell = jx.Cell(branches, parents=parents)
cell.insert(Leak())

cell.delete_stimuli()
cell.delete_recordings()
cell.branch(0).comp(0).stimulate(jx.step_current(1, 1, 10.0, 0.025, 10.0))
cell.branch(1).comp(0).record()

def simulate(value):
    pstate = cell.data_set("Leak_gLeak", value, None)
    return jx.integrate(cell, param_state=pstate)

jitted_simulate = jit(simulate)

start_time = time.time()
v = jitted_simulate(jnp.asarray(0.002))
print(f"Compilation time: {time.time() - start_time:.4f}")

start_time = time.time()
v = jitted_simulate(jnp.asarray(0.003))
print(f"Run time:         {time.time() - start_time:.4f}")

Before this PR:
Compilation time: 4.5502
Run time:         0.0145

After this PR:
Compilation time: 1.7179  # 3x speed up
Run time:         0.0013  # 12x speed up

I think Module.comb_branches_in_each_level is now also obsolete?


Top media in tags

Hi @raiym,
First, thank you for your library, that is awesome and helpfull, i love it.
Please tell me how get top result in function: getPaginateMediasByTag ??

@alex051186 hello. Thank you.
I think you should use this function to get top posts by tag: Instagram::getTopMediasByTagName()
There is no pagination since instagram returns only ~8 (?) images or videos

Thank you for you reply, now the instargram not reponse any json any api function, please check

@alex051186 yes.
Please refer to: #70


How can I set the SMBus speed to 100KHz rather than 400KHz

Hi,
I'd like to use I2C sniffer function to capture what had been written by the SMBus. However, I found the I2C sniffer only can work with 100KHz. How can I limit the SMBus speed to 100KHz?

Sorry. Found a way to set the I2C speed on my Raspberry Pi 3.
sudo modprobe - r i2c_bcm2708
sudo modprobe i2c_bcm2708 baudrate=32000


⚠ GitLab Server has degraded performance

In b2904b8, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 11719 ms

Resolved: GitLab Server performance has improved in b69f54f.


Live reload doesn't work with js.Build

When you change a js.Build-ed file, it is not live reloaded; you need to restart the server for the changes to be applied. This seems to be because of caching in resources/transform.go - if you remove line 371 from that file, everything works.
This is not reproducible with plain JS files.
Reproduce

create a new site (hugo new site repro)
add a shortcode js.html:

{{ $path := .Get 0 }}
{{ $js := .Page.Resources.GetMatch $path | js.Build (dict "minify" true "targetPath" (printf "%s.js" (path.BaseName $path))) }}
<script src="{{ $js.RelPermalink }}" defer></script>

create content/_index.md:

---
date: 2023-02-15T18:04:00+01:00
---

{{< js "test.ts" >}}

create content/test.ts with some TypeScript
start a server hugo server
change the TypeScript file in some way, change will be detected (and page reloaded) but new code is not used until restart.

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.111.0-DEV-9af78d11003ed22b6281e47e1ac19568cf1cca81 linux/amd64 BuildDate=2023-02-08T09:22:20Z

Does this issue reproduce with the latest release?
Yes.

It seems that live reload works properly only with resources.Get. If you use .Page.Resources.Get within a template, but without a shortcode, this bug is also reproducible.

If you use .Page.Resources.Get within a template

Is that true for both .js and .ts, or is the problem limited to .ts files?

Is that true for both .js and .ts, or is the problem limited to .ts files?

Only TypeScript.

I have a branch that fixes most of these issues that I'm going to complete soonish. I suspect that it will also fix this issue, but I'll keep this issue open until then.

subscribing for notifications :)


Generate and remove Ethernet header

Is it possible to automatic remove Ethernet headers from sniffed packets, and generate valid Ethernet headers for packets being "FORWARD"'ed through a proxy server?

No, that would be up to users of this module. The main goal of this module is to capture packets. How those packets are interpreted/used are up to you.


feat(screenshot): create the diff file with the name of the original screenshot

this will allow to view the diff in screenshots when there are more than one error during the execution of the e2e tests

I also included a small change to the logger to disable it by default but still allowing one to enable it using environment variable


🚀 feat: Banner

Summary
This PR proposes a banner feature to LibreChat.
I referred to the banner for https://librechat.ai/ (Nextra banner feature)

Details

Manage banners using the update-banner script and delete-banner script.
Banners have the following attributes:

bannerId
displayFrom: Display Start Date/Time
displayTo: Display End Date/Time
isPublic - false if the banner is only shown to logged-in users.
message(Plain text or HTML)
type - Currently supports banner only.

Only one banner can be active at a time; adding a new banner will overwrite the existing one.
The state (dismissed or not) of the banner is saved in LocalStorage using the bannerId as the key.

While this model could potentially support other message types like modal windows, the current implementation focuses solely on banners.
Usage
Adding or Updating a Banner
To add or update a banner, use the following command:
npm run update-banner <displayFrom(Format: yyyy-mm-ddTHH:MM:SSZ)> <displayTo(Format: yyyy-mm-ddTHH:MM:SSZ)> <message> <isPublic(true/false)>

Example:
npm run update-banner 2024-09-01T00:00:00Z 2024-09-30T23:59:59Z '🎉 Librechat 0.7.4 is released. Read more →' true

Alternatively, if you don't specify any arguments, you can enter values interactively
Removing a Banner
To remove the banner, use the following command:
npm run delete-banner

Change Type

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

Testing
I have manually verified the following:

The update-banner script successfully adds or updates a banner.
Only one banner document exists at a time.
The delete-banner script removes the banner document.
The background color of the banner varies with different themes.
Clicking the "x" button dismisses the banner, and it remains dismissed after reloading the page.

Checklist
Please delete any irrelevant options.

[x] My code adheres to this project's style guidelines
[x] I have performed a self-review of my own code
[x] I have commented in any complex areas of my code
[x] My changes do not introduce new warnings
[x] Local unit tests pass with my changes

@ohneda I like it, but I think it would be even better if you could implement a dialog that opens on the landing page. This way, you can include more text and provide clearer explanations for announcements.

@ohneda I like it, but I think it would be even better if you could implement a dialog that opens on the landing page. This way, you can include more text and provide clearer explanations for announcements.

Agreed. Something like the new terms and conditions modal would be great!

@berry-13 Yes, this model can be generalized to dialog messages, so I will implement it once this PR is merged.

Really useful!
Can you provide an example on how to change the color?


Architecture / data sources

Hi there,
We need to make some decisions on how to move forward on this project, and what the scope is going to be. There are a few options to discuss, they should probably be broken apart and judged by their merits, but let's see what options there are first:
We expose GraphQL via this project and operations are resolved..

using REST calls served by loopback in the freecodecamp site.
using REST calls served by loopback in this project, models are kept in sync by pushing them into a shared library. Data lives in the current MongoDB server and is read from and written to from both this project and the freecodecamp website.
using code generated from loopback models that are kept in sync by pushing them into a shared library. Data lives in the current MongoDb server and is read from and written to from both this project and the freecodecamp website.
we recreate all models by hand in open-api. Just kidding.
... your solution here.

One party pooper is that I've seen is that the REST API return responses that I did not expect. An example is hitting http://<IP_ADDRESS>:3001/api/users, I happily received a 200 OK, but useless HTML. I've not explored why this is set up like it is, could someone give me some context?

@raisedadead thoughts? Who would be candidates to chime in? @BerkeleyTrue, @QuincyLarson?

@ojongerius the idea is to make open-api our primary and sole back-end. So yes this means we will have to recreate the model schema here once again.
I know that's a chore, but in favor of simplicity lets do it. For starters lets make the very first few commits based off of the schema that we have on the main repo.
It is going to be evident that we have to do a hybrid approach for GraphQL and REST,  to keep supporting the client side code in the short term.
I propose we just use https://www.apollographql.com
I have seen excellent feedback for them.
We should just ignore, anything Loopback, we aren't going to be using any of its feature. The explorer plugin is not upgraded by us I think, so its not going to work as you have already found.

@ojongerius I just spoke with @raisedadead and @Bouncey and we are in agreement - all data should be exposed through GraphQL.
Our intention is to quickly rip out Loopback and replace it with GraphQL ASAP.
Don't worry about any sort of backward compatibility - we can overhaul all our other tools to work with GraphQL.

Great! Thanks for the feedback @raisedadead, @QuincyLarson.
There definitely is less overhead in building a server with GraphQL without implementing REST, so I'm all for it. However, the sceptic person in me says that there might be a real possibility that we will have this reality where we'll have to support both while freeCodeCamp gets an overhaul.
Ok, so we are going to convert all models, but can enjoy support from the team in preventing drift between the 2 models while we are cutting over, is that right @QuincyLarson?

@ojongerius Yes - we're planning to use GraphQL for all freeCodeCamp services (except for the forum, which is sort of it's own monolithic app).
I'm closing this issue since we've decided this aspect of our architecture - feel free to open subsequent issues to discuss other considerations.


Redux DevTool Integration

Wow :). Amazing.
I added a few comments in the File changes section.
Can you show me a screenshot? All Redux DevTools features are supported?

Here are some recordings
https://drive.google.com/file/d/10ZCAggDGsCGdu2GFOjR1zSsLO8welcoh/view?usp=sharing
https://drive.google.com/file/d/1JwJKMFFzNpxYY-gj44kj0nkXx6LhMg1B/view?usp=sharing
https://drive.google.com/file/d/1QDEJl0dxliczhIy5XQSKBJ6e-HbyGIFS/view?usp=sharing

:+1: I will merge and release it tomorrow (right now I am going to sleep)


tag minimum nexus version

Trying to fix tests -- looks like this is the problem :/

oops, i fixed it again and pushed to master.


Using ember-moment in Ember 3.18 fails to produce production build

Issue
Cannot create production builds. Fails during uglify.
Steps

Create new ember app npm i -g ember-cli && ember new ember-moment-test
Install ember moment cd ember-moment-test  && ember install ember-moment
Run production build ember build --environment=production

Error
Build Error (UglifyWriter)

Unexpected token: eof (undefined)

...

ERROR Summary:

  - broccoliBuilderErrorStack: SyntaxError: Unexpected token: eof (undefined)
    at ee (~/projects/ember-moment-test/node_modules/terser/dist/bundle.min.js:1:19541)
    at c (~/projects/ember-moment-test/node_modules/terser/dist/bundle.min.js:1:28031)
    at l (~/projects/ember-moment-test/node_modules/terser/dist/bundle.min.js:1:28122)
    at f (~/projects/ember-moment-test/node_modules/terser/dist/bundle.min.js:1:28175)
    at N (~/projects/ember-moment-test/node_modules/terser/dist/bundle.min.js:1:38279)
    at ~/projects/ember-moment-test/node_modules/terser/dist/bundle.min.js:1:30375
    at ~/projects/ember-moment-test/node_modules/terser/dist/bundle.min.js:1:28763
    at ~/projects/ember-moment-test/node_modules/terser/dist/bundle.min.js:1:32107
    at ~/projects/ember-moment-test/node_modules/terser/dist/bundle.min.js:1:32217
    at ~/projects/ember-moment-test/node_modules/terser/dist/bundle.min.js:1:28763
  - code: [undefined]
  - codeFrame: Unexpected token: eof (undefined)
  - errorMessage: Unexpected token: eof (undefined)
        at UglifyWriter

...

We have the same problem with<EMAIL_ADDRESS>and sometimes get the following error (only in production build):
...
Merge error: conflicting capitalizations:
moment/locale/en-SG.js in /tmp/broccoli-14632r7VYmVxi9CXp/out-118-broccoli_persistent_filter_mapper
moment/locale/en-sg.js in /tmp/broccoli-14632r7VYmVxi9CXp/out-118-broccoli_persistent_filter_mapper
Remove one of the files and re-add it with matching capitalization.
...

The problem seems to be moment itself. Since<EMAIL_ADDRESS>the file en-SG.js was renamed to en-sg.js.

@deanmraz I confirm the error with<EMAIL_ADDRESS>Just specify "moment": "2.24.0" for submodules.
yarn, npm

@dmaok How would you implement that? It looks like now I have both versions of moment 2.24.0 & 2.25.0 and it is still failing.

It is easier with yarn. In your package.json add block
  "resolutions": {
    "moment": "2.24.0"
  }

and then yarn install

@dmaok that worked, thank you!
This is a good short term fix, but what is the ideal solution? Does this need to be fixed in this repo or the actual moment repo?

According to https://github.com/terser/terser/issues/684 this is a moment issue though there isn't a specific ticket there yet https://github.com/moment/moment/issues

Fixed in<EMAIL_ADDRESS>- thanks to @jrjohnson

@jasonmit confirmed! thanks everyone for the help


Give parse error when attributes are added to non-named resource

Also modified the relevant test.

This PR now also contains a check for the following bad use case where a MSON type inherits from itself.
# Data Structures
## B (B)

Parser will generate an error from now.

@pksunkara reviewed.

Updated.

:+1:


Added Logo click navigation

Related Issue
Fixes #293
Description
Integrated the logo with home page link by defining the handleLogoClick function in the Menu.js component. This function is responsible for handling the click event on the logo. When the logo is clicked, the handleLogoClick function uses window.location.assign to navigate the user to the main page URL (https://uni-collab.vercel.app in this case). By setting the onClick event of the logo ( element) to trigger the handleLogoClick function, clicking the logo results in a seamless redirection to the specified URL, enhancing the overall navigation experience within the application.
Type of PR

[ ] Bug fix
[ X] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
https://github.com/SUGAM-ARORA/UniCollab/assets/165655543/08285637-7eeb-465d-a0e9-06c3c0668ca0
Checklist:

[X ] I have performed a self-review of my code
[X ] I have read and followed the Contribution Guidelines.
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X] I have commented my code, particularly in hard-to-understand areas.

Additional context:
None

Hey, it's saying that it's already up to date. Also @SUGAM-ARORA can you please assign labels.

Done, @SUGAM-ARORA can you please check it once. Also please assign the mentioned GSSoC labels:)

@sanskriti-lal Still branch not  updated

can you please check once again

After  this do the second  step

Hey @SUGAM-ARORA , I've updated the branch by following both the steps can you please check it once again. Also sorry for the inconvenience


Soap Extension

Hi @mnapoli
First of all, thanks a lot for this project. Using bref to deploy lambda function in PHP works great :-)
I work on a company that starts to use a lot of lambda functions.
And we have to interact with several services that propose API with Soap protocol.
Is there a possibility to add this extension (disable by default) in your layer, so we won't create our custom layer ?
Thanks,
Jordan

@mnapoli  for this you just need to add the --enable-soap in PHP build

@jsamouh I merged #289 and I'll wait for #291 with a fix before building new runtimes (should not be long).


Fix centos getting started docs

Issue #1540

This change is

It  says it needs rebase

@MichalMankowski , we also need you to sign the Linux Foundation CLA.


Update readme: Explain how to use static assets in the view.

I upgraded to rails 8 and was trying to figure out how to set up my manifest.json to use static png files from my assets directory and I was not able to use asset_path() and could not found the way it's supposed to be done. I ended up with the following solution which works but I dont think is how this library is supposed to be used.
{
      "src": "/assets/<%= Rails.application.assets.load_path.find('app-icons/icon-512.png').digested_path %>",
      "type": "image/png",
      "sizes": "512x512",
      "purpose": "any"
    }

I can imagine many other developers stumbling over this and I think it would be really great to provide use cases for css and rails views.

Propshaft will automatically add to the manifest.json any file in your app/assets folder. You should be able to reference them simply using image_tag or image_url to display them.
Could you provide more information on the problem you are having? Such as:

Full path to the image file
Where you are trying to use that file
What error you are seeing

This is the example of what I'm observing. Basically these helpers don't give me the corresponding fingerprint. They just provide the direct path without fingerprint.
I'm loading my assets in app/assets/images/app-icon and I'm trying to render it in app/views/pwa/manifest.json.erb
https://github.com/jmarsh24/tangocloud/pull/259
This is the endpoint currently (working with this workaround)
https://tangocloud.app/manifest.json
This is an example of using image_path
https://gist.github.com/jmarsh24/3e43aaf1031e191cd2f5fe0540e6808a
This is an example of using image_url
https://gist.github.com/jmarsh24/1b1c826d16a80c9f5fb78edefa893cf8
In production and locally I can see the the assets are successfully fingerprinted and also generates the .manifest.json properly

This is weird. I've just tried the same in my app, and it worked fine. Both precompiled (StaticResolver) and not (DynamicResolver). Can you try to replicate my minimal test below and tell me what you get?
Route:
get "pwa/manifest.json", to: "pwas#manifest", as: :manifest

Controller:
class PwasController < ApplicationController
  layout false

  def manifest
    respond_to do |format|
      format.json
    end
  end
end

ERB:
{
  "icons": [
    {
      "src": "<%= image_url("logos/primary.svg") %>",
      "type": "image/svg",
      "sizes": "64x64"
    }
  ]
}

When I accessed http://festalab.local:3000/pwa/manifest.json I got the digests:
{
  "icons": [
    {
      "src": "http://festalab.local:3000/assets/logos/primary-2761619e.svg",
      "type": "image/svg",
      "sizes": "64x64"
    }
  ]
}

Also, please check which version of propshaft you have installed. I doubt it's anything related to version, but you never know.

I followed the steps outlined above and get the same results. I have attached an image with the files, server running, and the request on a single screen.

@brenogazzola I tried your example and run into the same issue. I have included an image of the test below.

Ok so I tried it again and some how things just worked... I don't know how to explain it, but maybe there was some caching involved which was throwing me off.


Ensure context of dispatch

I am trying to port Redux into the Haxe language with the same compatible API. But due to the difference in the internal structure there are some context error when the port is used with react-redux. And this patch fixes that.
This patch shouldn't affect existing react-redux user, because the original Redux implemented dispatch as a closure over the internal state object and doesn't reference this at all. But please feel free to close if it is deemed not necessary. Thanks.

Can you clarify what the actual problem is that this tries to solve?
My gut says that there's been a couple past PRs to either Redux or React-Redux that tried to fiddle with binding for either dispatch or subscribe, but a quick search isn't turning them up atm.  Pretty sure this has been discussed in the past and been turned down, although I could be wrong.

As I said, I am try to re-implement Redux and another programming language/transpiler. I implemented the store as a class and put the state as a member variable. As a result, the state object is referenced as this.state inside the dispatch function. React-redux passes the dispatch function around without caring about the context (and it doesn't need to, as mentioned in my original post) and that causes problem in my class-based implementation. I see that I can implement it the same way redux does, which is not really big deal. But I also think that patching here shouldn't be a big deal either (well, except breaking a couple equality tests because the bound dispatch is not the original dispatch any more). So... well, yeah, that's it.

Speaking from a position of zero knowledge (THAT MEANS IGNORE THE ORG MEMBERSHIP BADGE), it seems inconsistent to me that getState is bound, while dispatch isn't.

Hmm.  Are you sure?  It doesn't look like it is.  It's defined free-floating at createStore#L74, and returned at line 250.  No binding of any kind going on there.

Sorry – I'm referring specifically to https://github.com/reactjs/react-redux/blob/v5.0.0-beta.3/src/components/connectAdvanced.js#L109-L111, as well as the test cases added in https://github.com/reactjs/react-redux/pull/465.

For consistency, this should be done against the next branch instead, where we're binding getState, as @taion pointed out. Plus, it would be a good stress test to try and use that new branch with a reimplementation of Redux 😄

That's actually just matching the behavior in release, though – it's just that on the released branch, it happens implicitly because the only access to store state is by calling store.getState().


netowrk-observer: set serviceSubnet in apiserver config

Fixes https://github.com/openshift/installer/pull/712#issuecomment-442279599.

/assign @squeed @smarterclayton

Fixes #143 too.
The subject here has a "netowrk" -> "network" typo.

/retest

/cc @openshift/sig-network-edge

/lgtm


iOS Chrome: Fix broken download button

Reproduction Steps

Open Chrome on iOS (I'm using an iPhone 6, iOS 10.2.1, Chrome 56.0.2924.79)
Open https://mozilla.github.io/pdf.js/web/viewer.html (I tested on commit cfaa621a05cb5360f6834cf96a16c44c1a9aed5b)
Open the dropdown menu and click "Download."
Nothing happens.

On iOS Safari, however, the download button works fine.
Cause
It appears that URL.createObjectURL is unreliable in iOS Chrome. Going to the blob URL doesn't do anything. Opening the blob URL in a new window shows a blank page. See https://groups.google.com/a/chromium.org/forum/#!topic/chromium-html5/RKQ0ZJIj7c4 for more details.
Solution
Add iOS Chrome to the list of browsers that set disableCreateObjectURL in compatibility.js. The downloadUrl fallback works fine.
I'm not sure if this is the appropriate place to make the change, since I had to rearrange some code in download_manager.js. Please let me know if I should make any different changes.

Make sure to squash the commits into one commit after addressing these comments. Visit https://github.com/mozilla/pdf.js/wiki/Squashing-Commits for how to do that easily. Thanks!

I think I've addressed all of the comments. Thank you for reviewing it!

/botio-linux preview

Thank you for fixing this!


Add log-source-app for diagnostic log cluster example

Problem
diagnostic log cluster implementation is missing
Change overview
Add a example app for diagnostic log cluster
Testing
Manually verified by running the app.

/rebase

Fast tracking, given this has had enough time for review. Comments still need to be resolved though.

/rebase


changing audio tracks

Is there anyway to have multiple audio for a single video ? Changing audio Track while video is still playing ?
If its not a support yet would you add it in 3.0 ?

The request was on #1891 but nothing has been done. Can you review the approach on that issue and let me know if that's what you are talking about?

Yes it think it is what i was asking

Since ticket has been created and tagged properly, I'll close this one and you can follow up the progress on this through the ticket listed above. Thanks.


AutoTrain-Advanced command not working

Hi. at first, i want to say thank you giving me a great packages and youtube resource.
i want to raise one issue.
even i installed autotrain-advanced, command not found
any ideas?
tf-docker ~ > autotrain llm --help
bash: autotrain: command not found

Can you pls provide the steps for recreating this? Did you use a virtual environment?


How Do I Contact Coinbase Support Phone Number?

Contact Coinbase Support Number + 1(833)-930-3011 by Phone, simply go with This is the official support number where you can get assistance for any issues or questions related to Coinbase Account.

Contact Coinbase Support Number + 1(833)-930-3011 by Phone, simply go with This is the official support number where you can get assistance for any issues or questions related to Coinbase Account.


How do you output other language urls for the same page?

I want to implement a language menu where you can switch language. Is it possible to output urls for the same page? Something like this:
domain/en/hello-world
domain/nl/hallo-wereld
domain/de/hallo-weld

Have you tried the using the {{ localeswitcher()|raw }} in your template? That should output a languageswitcher that uses the localized slugs for each language.

 It's also on the front page of this github depository. I feel like I've lived my life in a cage. o.O
Do you also have suggestions on translating image file name and the image alt text/title without having to reupload the file?

Haha, No problem, I was just beginning to think I broke it up somehow :smile:
About the images:
The easiest way is probably to use the stack. It should include the latest uploaded files, so just clicking "select from stack" should show the latest 10 or so images you have uploaded. Otherwise you can use "select from server". Those two assume that you are fine with having one file-name for all languages, which should cover 99% of use-cases. If you want translated file-names you will have to upload one file per language. Alt/title text translation should be supported automatically.
Also, I'd be very interested in hearing about any bugs or kinks that you come across in the extension since it hasn't really been battle-tested yet.

I've not really come across bugs, but I did make a few small observations, while running through the steps. While not running into bugs, I did encounter other interesting stuff. I get the suggestion to update the database. This seems harmless to me, I did and it fixed stuff. Also installing is not possible without all extension subfiles having 777 permission. While I did set the parentfolder(extensions) to 777, subfolders were ignored in my ftp program. I should really get into the use of command line.

Hmm, those are mostly things regarding bolt itself, not this extension specifically... I'm guessing that you haven't used bolt extensively before?

Actually I just started using bolt, but I'm starting to like it more and more. Sorry if I haven't been of any good use.

No, I didn't mean that it wasn't helpful!
Please feel free to ask/comment here on github or in the IRC/slack channels if you run into any future problems :)


ASU-1668 | SAP payment text file processing

Implemented functionality which reads SAP payment text files and creates Payment and PaymentBatch instances accordingly. If the same filename has been processed before, or if there are any errors during the processing, no payments are imported.

Codecov Report

Merging #333 (732dcd1) into develop (5490e7d) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #333      +/-   ##
===========================================
+ Coverage    93.33%   93.40%   +0.07%
===========================================
  Files          129      131       +2
  Lines         4829     4884      +55
  Branches       444      448       +4
===========================================
+ Hits          4507     4562      +55
  Misses         234      234
  Partials        88       88

Impacted Files
Coverage Δ

invoicing/sap/send/sftp.py
37.50% <ø> (ø)

invoicing/sap/send/xml_utils.py
43.85% <ø> (ø)

invoicing/management/commands/create_sap_xml.py
36.36% <100.00%> (ø)

invoicing/sap/fetch/__init__.py
100.00% <100.00%> (ø)

invoicing/sap/fetch/process.py
100.00% <100.00%> (ø)

invoicing/sap/send/xml.py
93.42% <100.00%> (ø)

invoicing/services.py
75.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


TypeError: Cannot read property 'length' of undefined in 'Object.find' during 'getApplicableRefactors'

This issue comes from crash dumps in telemetry. We've tried to de-duplicate issues on a best-effort basis, comparing the sequence of methods called and the command requested while ignoring line numbers.
TypeScript Version Prefix: 2.7.2
VSCode Version 1.21.0-insider
command requested: getApplicableRefactors
hitting sessions: 141
proportion of all sessions: 0.010049893086243763
five line hash: 277ac3a53c1b3f452c23d053fa87d60e
stack
TypeError: Cannot read property 'length' of undefined
    at Object.find (tsserver.js:1524:34)
    at recordUsagebySymbol (tsserver.js:81757:41)
    at recordUsage (tsserver.js:81726:36)
    at collectUsages (tsserver.js:81719:25)
    at visitNode (tsserver.js:12623:24)
    at Object.forEachChild (tsserver.js:12986:24)
    at collectUsages (tsserver.js:81722:28)
    at visitNode (tsserver.js:12623:24)
    at Object.forEachChild (tsserver.js:12977:24)
    at collectUsages (tsserver.js:81722:28)
    at collectReadsAndWrites (tsserver.js:81595:17)
    at getPossibleExtractionsWorker (tsserver.js:81041:38)
    at getPossibleExtractions (tsserver.js:80998:26)
    at Object.getAvailableActions (tsserver.js:80597:35)
    at unknown (tsserver.js:77283:128)
    at getIterator (tsserver.js:1734:23)
    at Object.next (tsserver.js:1729:35)
    at Object.arrayFrom (tsserver.js:2268:32)
    at Object.getApplicableRefactors (tsserver.js:77282:23)
    at Object.getApplicableRefactors (tsserver.js:83497:32)
    at IOSession.Session.getApplicableRefactors (tsserver.js:90354:53)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:89310:61)
    at unknown (tsserver.js:90553:88)
    at IOSession.Session.executeWithRequestId (tsserver.js:90544:28)
    at IOSession.Session.executeCommand (tsserver.js:90553:33)
    at IOSession.Session.onMessage (tsserver.js:90573:35)
    at Interface.<anonymous> (tsserver.js:91774:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:191:7)
    at Interface._onLine (readline.js:241:10)
    at Interface._normalWrite (readline.js:384:12)
    at Socket.ondata (readline.js:101:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)

Duplicate of #21803


Opening a project containing compute shaders, or adding them while open, can freeze Godot

Godot version
Godot 4 beta8 (and some preceding betas I dont recall)
System information
Windows 10 64 bits NVIDIA GeForce GTX 1060
Issue description
The editor opens, a GLSL file starts importing, then immediately a popup shows up, either completely black or white, blocking the editor. The popup stays that way, meaning the whole editor is stuck and I have to kill it.
It happened to me 3 times at this point in various beta versions.
The shaders likely have errors in them, but that should not make Godot freeze like that.
EDIT: happened again as I was trying to workaround it. I removed shaders from the project, the project opened, then I moved the files back in the project, but Godot went stuck the same way while importing them.
I also tried commenting out the code in the main function, which this time did not show a popup, but Godot still froze anyways.

I eventually found out a workaround that SEEMS to work:
I commented out the contents of every shader, except #[compute] and #version 450, and added a placeholder void main() {} just so it doesnt complain. Finally Godot opened fine, then I removed the placeholder and uncommented the rest of the code, and only then, Godot properly opened the error popup without freezing.
Steps to reproduce
Unfortunately I tried reproducing this a few times but it's not happening 100% of the time. But every time it happened, the following conditions were met:

I was opening the project, it wasn't already open. Although I also had the same thing happen with an open project, if I add shader files to the project and focus back Godot.
The project had GLSL compute shader(s) that had errors in them. Syntax, or other.
Those GLSL shaders were either brand new since the last time the project opened, or were imported before but have been modified while the project was closed.
This one might not matter, but my environment is such that Godot's internal shader cache gets recompiled often, since I'm often switching between versions (although I always opened my project with increasing beta versions).

Minimal reproduction project
Last time it happened, I started my computer and opened this project for the first time in the day, and the faulty shaders were brand new files. The project itself had been opened in the past and already had valid imported shaders, but the new ones were added while the project was not open.
shaders_copy.zip
It might not reproduce for you though, as I mentionned it's not 100%.

I have a feeling this is connected to the freeze we get when the built-in shaders contain compile errors.

I have a feeling this is connected to the freeze we get when the built-in shaders contain compile errors.

For the record, these seem to happen on Windows but not on Linux, where it happily spams errors. Not sure if the Windows freeze (some report a crash) comes from spamming I/O too much, or actual GPU drivers giving up.

Got once again a similar problem in beta10, except a lot earlier, during splash screen:

I dont recall adding compute shaders this time, only a .gdshader.

Just tried Linux with single window disabled ...


What are the hardware requirements?

See title lol

Hi @soloist-tech , we've mainly tested on Ampere GPUs (A100s 40GB specifically) for training and finetuning. For inference, we also primarily use Ampere GPUs (A10s), however the community has gotten it to work with many other hardware. For example, see: https://github.com/ggerganov/ggml/pull/145 from the GGML folks.


Dependency bump

Upgrade all dependencies and Maven plugins to their latest versions.

Dependencies and plugins were upgraded to their latest versions, excepted Derby as its latest version doesn't support Java 17.
This change will be packaged in v2.3.0.


62 provide feedback on a service

 Provide feedback on a service

@jrbarnes9 I've not been able to fix the iframe resizer issue, this appears to be an issue with the library itself.
I've addressed the column issue, and I'll create examples of the page template with the feedback in when I go into more detail documenting the page template nunjucks template and macro options.

@bameyrick @jrbarnes9 I've created an issue for the iframe resize problem and will take a look.
https://github.com/ONSdigital/design-system/issues/253


Docker image tags do not respect semver

When creating a new release, the convention is to create a tag with the naming in the format v0.0.0. When using the [docker-metatada-action`(https://github.com/docker/metadata-action) in the release workflow, the semver handling of the name should strip the `v` prefix and only maintain the numbering - to be used for Docker image tagging.
Acceptance Criteria:

Understand why the process is not working as expected
Fix the release process

Issue seems to be resolved with #282


Critical error!

Sorry, I was using the old Master branch. I'm updated my gh-pages branch and maded it as default. But now I have these 2 commits to compare/pull. How can I ignore them? Help me, please!

I'm not an expert in git, but these 2 commits are in line with the repo. So I'd be ok in keeping them. Just push your change over.


Guard DeleteCollection in Lister lookup

Relates to the ideas behind: https://github.com/knative/pkg/issues/1520
We should not be making unguarded API calls during Reconciliation, otherwise resyncs become a "thundering herd" of API calls.  Here we have an unguarded DeleteCollection call, which even if it deletes nothing eats into our rate limit: https://github.com/knative-sandbox/net-contour/blob/434b08b5a1c88735ec2e886214448f3dbc8a2a99/pkg/reconciler/contour/contour.go#L155
We have a lister cache already, it should be relatively trivial to guard the DeleteCollection in a call to check our cache for stuff to delete prior to the call.
/kind good-first-issue

/assign


Profile listing should become more structured and should support 'hiding' and 'types'

When adding more load profiles and profiles that describe other aspects of technologies (availability, flexibility etc.), the current list of profiles is going to very long and confusing.
I propose to use something of a 'tree'-view:

Which I took from this website
At the highest level I think that we want to distinguish between types of profiles:

base-load profiles: for houses, e.g, EDSN
consumption profiles: for EV (if not in 'storage mode'), heat pumps etc.
production profiles: for solar PV
flexibility profiles: for EV (if in 'storage mode') and P2H

Perhaps the following nesting is useful for the types listed above:

technology (key of technology)

capacity of technology (if relevant, for heat pumps it is)

time-resolution

Including @dennisschoenmakers @antw.

Thanks for making this possible @grdw. It seems that we still need the possibility of assigning/choosing categories when creating a profile though to make this useful...

As discussed; this is already in the current setup. Though there aren't that many categories to pick from at the moment. If someone could add some categories to the database. :smiley_cat:


Provide a way to check supported languages

Suggested on #6
The idea is to have something like dateparser.languages that would allow one to check support for a given language.
Right now, there are language specific code in both date_parser.py and freshness_date_parser.py.
Any thoughts on how we should do that?

Resolved in https://github.com/scrapinghub/dateparser/pull/26


Repeatedly inserting OutlineBundle makes it disappear

Hiya! Thanks for the amazing crate!
I found a bug that makes the outline effect disappear if the OutlineBundle is inserted again (overwriting the original one).
Consider this code, adapted from one of the examples:
use bevy::prelude::{shape::Cube, *};

use bevy_mod_outline::*;

#[bevy_main]
fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_plugin(OutlinePlugin)
        .add_startup_system(setup)
        .add_system(overwrite_outline)
        .run();
}

fn overwrite_outline(query: Query<Entity, With<OutlineVolume>>, mut commands: Commands) {
    for entity in &query {
        commands.entity(entity).insert(OutlineBundle {
            outline: OutlineVolume {
                visible: true,
                colour: Color::ORANGE,
                width: 5.0,
            },
            ..default()
        });
    }
}

fn setup(
    mut commands: Commands,
    mut meshes: ResMut<Assets<Mesh>>,
    mut materials: ResMut<Assets<StandardMaterial>>,
) {
    let mut cube_mesh = Mesh::from(Cube { size: 1.0 });
    cube_mesh.generate_outline_normals().unwrap();
    commands
        .spawn(PbrBundle {
            mesh: meshes.add(cube_mesh),
            material: materials.add(Color::GRAY.into()),
            ..default()
        })
        .insert(OutlineBundle {
            outline: OutlineVolume {
                visible: true,
                colour: Color::ORANGE,
                width: 5.0,
            },
            ..default()
        });

    commands.spawn(PointLightBundle {
        point_light: PointLight {
            intensity: 1500.0,
            ..default()
        },
        transform: Transform::from_xyz(4.0, 8.0, 4.0),
        ..default()
    });
    commands.spawn(Camera3dBundle {
        transform: Transform::from_xyz(-2.0, 2.5, 5.0).looking_at(Vec3::ZERO, Vec3::Y),
        ..default()
    });
}

The outline correctly appears on the first frame, then disappears. It's as if inserting a new OutlineBundle to overwrite the existing one breaks the effect.
If we don't add the overwrite_outline system, the example works as expected (gray cube with orange outline)
I was expecting to be able to freely insert the outline bundle as many times as I like, and the effect to update accordingly. Surely this is a bug?
I can easily work around this, just thought you'd want to know about it.

Released 0.4.2.

Awesome; could not reproduce with 0.4.2 :tada:
Thanks again and congrats on the release!


Screenshotter chdir to KaTeX root directory

Fix #1501.  This seems to be required for webpack, specifically babel-plugin-version-inline, to run correctly.

Interesting... babel is supposed to look in parent dirs for .babelrc.


Adding a simple accordion & Tab for an example to codesandbox

I have added in two components that were missing from codesandbox.
Tabs and Accordion with a simple example for both.

fixes https://github.com/grommet/grommet/issues/2647


tagHelpers do not get used

Hi,
I've installed your tagHelper nuget and added references for the tagHelper library to _ViewImports.cshtml like this:
@using Sakura.AspNet.Mvc.TagHelpers
@addTagHelper "*, Sakura.AspNet.Mvc.TagHelpers"

and in my view use it like this:
<input type="checkbox" asp-flag-for="Options" asp-flag-value="MyOptions.Premium" class="form-control" />
but the renderer does not seem to pick it up. I can still see the (unresolved) asp-flags-for tags in the final html. I'm using Mvc 6.0.0-rc1.final. Is there anything else needed to make the tagHelpers work?

@dirkju Due to some reason,  the attribute name has changed in recent versions. I suggest you should use the lastest version i.e. "1.0.0-rc1-update3".  Could you tell me which version of this package are you using now?

I'm using the latest of your package (1.0.0-update3) already. When I copy the FlagsEnum tag helper and ModelBinder classes into my project and register - it works. Is there any initialization missing?

@dirkju HI, Unfortunately, I cannot reproduce your issue in my enviroment. Could you send me a demo project via email? That's may be helpful, thank you very much~

Closing the issue since the owner seems does not have any response. If you have further question, please feel free to reopen this issue or submit a new one.


Stage Lua Confusion

What is your question?
Can someone make the lua stage files for all of the stages please. Its hard for me and dunno how to base all of them off the stage code

#1048
duplicate
@ShadowMario this is a duplicate and invalid
btw just go into the code for the stages in thesc then just put the same coords for the same items so ye thts it

thanks

@DEV-idiotXD wait where

if you dont mind me asking, where can i find that?

if you dont mind me asking, where can i find that?

PlayState.hx if Source Code
Wiki Lua example for lua

thanks


MONDO_0020420 is neither node nor property

Mondo term (ID Label)
MONDO_0020420
Bug/Typo/Error description
This item is in the nodes section of mondo.json. It is not identified as either a node nor a property. I am not sure if this is valid JSON or not. SInce there is no label, it is not clear what the term is supposed to represent. When I try to find the term in OLS, I get "Something went wrong! Please contact<EMAIL_ADDRESS>to report any bugs or give feedback."
neither node nor property:
{
    "id": "http://purl.obolibrary.org/obo/MONDO_0020420",
    "meta": {
        "basicPropertyValues": [
            {
                "pred": "http://www.w3.org/2004/02/skos/core#exactMatch",
                "val": "http://www.orpha.net/ORDO/Orphanet_99084"
            },
            {
                "pred": "http://www.w3.org/2004/02/skos/core#exactMatch",
                "val": "http://linkedlifedata.com/resource/umls/id/C2062889"
            },
            {
                "pred": "http://www.w3.org/2004/02/skos/core#exactMatch",
                "val": "http://purl.obolibrary.org/obo/NCIT_C99144"
            }
        ]
    }
}

I think this is fixed, this is 'pulmonary branch stenosis'


Example with structural strength constraint

Hello
could it be possible to share the bracket test case with structural strength constraint (not only minimal geometry)?
Or at least the steps to follow for importing and setting such constraints?

Physics constraints have not been part of this project thus far and we only began working on this recently. We will release this once we have a reliable working implementation, but this will probably take a while.
Conceptually, this is not much different from the current setup: pass the geometry to the solver, compute the deformation, and update the shape to minimize some objective. However, there are many practical considerations, e.g. how to set up and solve the physics problem, or what update rule to use, especially keeping performance in mind, as we want the setup to scale to realistic 3D problems. The shape gradients can usually be computed analytically, which means that the solver does not have to be differential, but one must implement a custom backward pass.
It's best to refer to classical shape and topology optimization for more detail. Here are two introductory references I can recommend.
[1] Allaire, G., Dapogny, C., & Jouve, F. (2021). Shape and topology optimization. In Handbook of numerical analysis (Vol. 22, pp. 1-132). Elsevier.
[2] Yago, D., Cante, J., Lloberas-Valls, O., & Oliver, J. (2022). Topology optimization methods for 3D structural problems: a comparative study. Archives of Computational Methods in Engineering, 29(3), 1525-1567.

Thanks very much


Add install task

New meilisearch:install task creates an initializer file
Pull Request
Related issue
What does this PR do?

adds a meilisearch:install task to create the meilisearch.rb initializer with template configuration
adds changes to README.md file to include environment variables

PR checklist
Please check if your PR fulfills the following requirements:

[x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
[x] Have you read the contributing guidelines?
[x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

@brunoocasali fixed!
Should we add the same to README.md or leave it as is?

Should we add the same to README.md or leave it as is?

I think it is good to have it in the README!

@sabljak I'll wait for the change before merging, thanks a lot!

@brunoocasali Done! Ready for merge 😁


piechart drawn incorrectly

Expected Behaviour
slices to be spread to fill the circle
Actual Behaviour
slices overlapp
Steps to Reproduce:
see the filddle
NOTE: Add a GIF/Screenshot if required.
https://jsfiddle.net/kyg6asz9/
Frappé Charts version:

Seems to me the data has to equal to 100 - each item is a percentage

@mika76 https://jsfiddle.net/akiyamka/pmdLo1re/7/
40 + 60 === 100

@Akiyamka heh yeah seems totally broken...

Fixed by https://github.com/frappe/charts/pull/181


Low fps : 3.0

Jetson Tx2
Ubuntu 16.04
ROS kinetic
Hello ,
I updated opencv to 3.4.2 and installEd Yolo3 . But I'm getting low fps between 3.0 to 3.3 .
How can I increase the fps , I will appreciate if someone can advice Mr.

Make sure to compile your code in release mode.


The last commit breaks the project compilation

rescript: [64/70] test/Robots__test.cmj
FAILED: test/Robots__test.cmj

  We've found a bug for you!
  /home/runner/work***test/Robots__test.res:11:24-82

   9 ┆ Assert.elementContains(~message="Renders loading", container, "Loading"
     ┆ )
  10 ┆
  11 ┆ act(() => resolve(Ok({ok: true, status: 200, response: Some("My mock re
     ┆ sponse")})))
  12 ┆
  13 ┆ Assert.elementContains(~message="Renders received payload", container,
     ┆ "My mock response")

  Some record fields are undefined: xhr

Seems related to the versions bumps of https://github.com/bloodyowl/rescript-react-starter-kit/commit/e552a6e4225350090230f7db26bbfd1952477a43
The CI failure: https://github.com/bloodyowl/rescript-react-starter-kit/runs/2823606507

Right, a feature added in Request to extract some additional data from the underlying XHR broke that. Should be fixed.


changed a line inside documentation/internal_architecture.md

changed a line inside documentation/internal_architecture.md
changed "It also" to "and" @beorn7

Thank you for the contribution, but upon further review, it seems that this change is not necessary. I appreciate your effort, but I will not be merging this pull request. Additionally, I think that longer sentences can be harder to read and understand

Yeah it makes sense


[Docs] How to properly create a global variable (singleton)?

Autoload singletons are like globals and work the same in any script language. You just need a normal script extending Node and assign it (or a saved scene with it) in the Project Settings:

Then access the node as described in the doc page: getNode("/root/<Node Name>")

In C# you use {set; get;}. Does that mean you use @property in D?

Yes. The AutoLoad menu is what makes the whole node containing those properties "global" and accessible from any script by the name you gave it. It's just a normal node script - the functions/variables don't need special syntax to make them global:
// assigned in AutoLoad menu with the name "Globals"
class Globals : GodotScript!Node
{
    @Property int globalInteger = 0;
}

// in a separate script:
class Player : GodotScript!KinematicBody
{
    @Method _ready()
    {
        Globals globals = owner.getNode("/root/Globals").as!Globals;
        globals.globalInteger = 100;
    }
}

There's a second way with shorter syntax - D's real global variables (variables defined outside of any class):
module globals;

int globalInteger = 0;
Node globalNode;
Ref!Texture globalTexture;

But these can only be accessed from D code. Godot itself can only access scripts.

This needs to be in the readme..... :+1:
If the readme is to long, I suggest breaking it up to multiple pages.

Is it @Property with a capital P or @property


Filter out components

What problem does this feature solve?
I have a small app (about 5 or so components) I am testing that has a few too many AsyncComponentWrappers to unfold. Hopefully this option will reduce the amount of times that the user has to see redundant components in the tree - and if it is necessary for the user, then they can keep it on.
What does the proposed API look like?
Perhaps a checkbox in the Settings menu labelled "Hide AsyncComponentWrappers from tree".

[x] Hide AsyncComponentWrappers from tree - this option will hide components that are wrapped by defineAsyncComponent wrappers, showing only the children.

I have no idea about the implementation of the devtools so I'm unable to provide any code samples.

Hi @Akryum, can you help me to figure out how to filter out functional components (JSX) in vue devtools?
I've already asked this on Stackoverflow
https://stackoverflow.com/questions/73939172/how-to-hide-functional-components-jsx-in-vue-devtools

I'm currently using JSX for Vue component, but currently, the devtool would show a very ugly nested hashed functional component tree like this, is there any way to avoid this? As far as I know, Vue devtools doesn't provide us an option to hide these functional components, therefore this would be very annoying
I'm building a UI package for Form module, I want to use JSX for Vue because that would make contribution much easier when a lot of people from React.js can jump in and help. My package: https://www.npmjs.com/package/formkl

anything new here ?


Rename CLI tool from harbor-go-client to harborctl

As per https://github.com/goharbor/community/pull/6 , I will rename CLI tool from harbor-go-client to harborctl since v1.0.0 release.

In order for multiple platforms using, harborctl is suffixed as follow:

harborctl_darwin_amd64
harborctl_linux_amd64


compe's first popup makes insert mode freeze or laggy

Hi there! great plugin. Ive been having this issue that compe's first popup ( autocompletion menu ) freezes or completely gets stuck for some seconds but this happens only for the first time and works fine later.
behaviour :
https://user-images.githubusercontent.com/59060246/123509382-c7c3cf80-d692-11eb-9163-185e336ce816.mp4

I removed plugins one by one and found out friendly-snippets was causing this.

I removed plugins one by one and found out friendly-snippets or vim vsnip both cause this.

Might it be that they are only lazy loading the snippets the first time you try to use them?

I removed plugins one by one and found out friendly-snippets or vim vsnip both cause this.

@Samantha-uk seems like the issue is with vsnip , I tried using my friend's luasnip config and it fixed the issue but the luasnip config was huge :/ .

NVM the issue has been fixed by using luasnip instead of vsnip :D

@siduck76 I also have the same problem, a minor lag when you first start typing, really annoying.

seems like the issue is with vsnip , I tried using my friend's luasnip config and it fixed the issue but the luasnip config was huge :/ . vsnip works with no config but initial lag

Yes, this is because of vsnip. At the end of the day this is just a snippet collection, it doesn't have any code logic or anything, just json files.


Watchman Unknown option --no-pretty

When running npm run build  I'm getting a watchman error
Tried reinstalling watchman a few times, no luck.
HINT: pass --watch to keep watching for changes.
ERROR: Unknown option --no-pretty

Watchman:  watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= ERROR: Unknown option --no-pretty

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr= ERROR: Unknown option --no-pretty

    at ChildProcess.<anonymous> (/home/the-noob/workspace/relay-examples/todo-modern/node_modules/fb-watchman/index.js:198:18)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:891:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

Had NPM watchman installed not https://facebook.github.io/watchman/, build went fine after installing FB one.


runme.sh: Print initial Jenkins admin password

Tested on:

[x] Docker 1.13.1, Ubuntu 16.04.2 LTS 64-bit (mv-linux-powerhorse)
[ ] Docker 1.13.1, Boot2Docker 1.13 in a VirtualBox VM (Docker Toolbox on Windows 10 (itm-gpaolo-w10)

Signed-off-by: Gianpaolo Macario<EMAIL_ADDRESS>

Executing ./runme.sh from a Cygwin shell on Windows 10 returns the following error
gmacario@ITM-GPAOLO-W10 ~/MYGIT/easy-jenkins
$ ./runme.sh
time="2017-02-21T14:34:37+01:00" level=warning msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"
INFO: Docker machine default exists, skipping docker-machine create
INFO: Using Docker machine default
Recreating easyjenkins_myjenkins_1
INFO: Run the following command to configure your shell:
INFO: eval $(docker-machine env default)
INFO: Browse http://<IP_ADDRESS>:9080/ to access the Jenkins dashboard
time="2017-02-21T14:34:44+01:00" level=warning msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"
the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'

gmacario@ITM-GPAOLO-W10 ~/MYGIT/easy-jenkins
$

Should prepend winpty  if Cygwin (MS Windows?) detected

Superseded by PR https://github.com/gmacario/easy-jenkins/pull/156


hdevtools: Multi-line error messages not formatted properly

The haskell compiler usually provides nice multi-line error messages, such as
$ hdevtools check "$PWD/Writer.hs"
/home/jojo/uni/info/Vorträge/2016-02-19 BobKonf/Writer.hs:87:5:
    No instance for (MonadFix Write) arising from a do statement
    In a stmt of an 'mdo' block:
      rec { writeWord8 pos1;
            writeWord8 pos2;
            pos1 <- getPos;
            writeList writeWord16 ws1;
            pos2 <- getPos }
    In the second argument of ‘($)’, namely
      ‘mdo { rec { writeWord8 pos1;
                   writeWord8 pos2;
                   pos1 <- getPos;
                   .... };
             writeList writeWord16 ws2 }’
    In the expression:
      execWrite
      $ mdo { rec { writeWord8 pos1;
                    writeWord8 pos2;
                    pos1 <- getPos;
                    .... };
              writeList writeWord16 ws2 }

Currenty, the hdevtools plugin collapses all whitespace using
return SyntasticMake({
        \ 'makeprg': makeprg,
        \ 'errorformat': errorformat,
        \ 'defaults': {'vcol': 1},
        \ 'postprocess': ['compressWhitespace'] })

in syntax_checkers/haskell/hdevtools.vim, which make such an error message hard to read.
If I remove the compressWhitespace, I get the nicely formatted error message, with two quirks: It starts with an empty line (probably the \n after the :), and it is unnecessarily indented.
I suggest to replace compressWhitespace by some unindent which

removes empty lines at the beginning and
removes the least indentation of all lines, so that the line with the least whitespace in front starts with a non-whitespace character, and the other lines are shorted by the same amount.

@lcd047, you last touched that line file.

Vim's loclists don't support multiple lines in messages.

I don’t use the loclists, just the message in the status bar, the indicator in the left column, and the tooltip, and with my changes above, this works nicely:

Also, the error list (:Errors) looks okish with multi-line messages (it simply replaces them by spaces as before).

Sadly, there are good reasons for removing newlines from error messages, and syntastic implicitly assumes that.  Vim replaces newlines on input with ASCII NULs, and various functions are not prepared to deal with that.  Your suggestion would break a number of tiny details, such as calculating lengths when expanding tabs, sorting, and filtering in various scenarios.
To make it work, formatted copies of the error messages would need to be kept along with the "linearised" ones.  Making it survive through all layers of syntastic would be possible, but not trivial.  I don't see any reasonable way around that.

How unfortunate :-(
I’ll keep using my patch for a while and if I notice any breakage, and if not, I might be able to at least use the patch locally.


Add Gradle support

/cc @atomfrede

Will have look.

Increasing the bounty on this one since it's more work than expected.

@mraible Should I claim the whole bounty, should we split it (2/3, 1/3) or do you want to give an extra bounty to @mshima for the whole ci part?

@atomfrede take the whole


ConnectionFailedAdErrorNoSuchMember and ConnectionFailedNoMappingOfSIDinAD

I came across these two errors with two separate accounts:

ConnectionFailedAdErrorNoSuchMember
ConnectionFailedNoMappingOfSIDinAD

These errors came after setting up Windows Virtual Desktop and erroneously using Azure AD credentials for my sign in.  Neither error is called out on this article.
Support was able to help me find one of the errors "ERROR_NO_SUCH_MEMBER" @ the following URL: https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--1300-1699-
Thank you.
Powershell detail:
(Get-RdsDiagnosticActivities -TenantName tenantname  -Detailed  -Outcome failure -UserName<EMAIL_ADDRESS>| select-object -Last 1).errors

ErrorSource       : RDAgent
ErrorOperation    : AddUserToRDUGroup
ErrorCode         : -2147467259
ErrorCodeSymbolic : ConnectionFailedAdErrorNoSuchMember
ErrorMessage      : Failed to add user =<EMAIL_ADDRESS>to group = Remote Desktop Users. Reason: Win32.ERROR_NO_SUCH_MEMBER
ErrorInternal     : False
ReportedBy        : RDGateway
Time              : 3/4/2020 3:12:47 PM

(Get-RdsDiagnosticActivities -TenantName tenantname  -Detailed  -Outcome failure -UserName<EMAIL_ADDRESS>| select-object -Last 1).errors

ErrorSource       : RDAgent
ErrorOperation    : ConvertSidToAccount
ErrorCode         : 1332
ErrorCodeSymbolic : ConnectionFailedNoMappingOfSIDinAD
ErrorMessage      : No mapping between account names and security IDs was done
ErrorInternal     : False
ReportedBy        : RDGateway
Time              : 3/4/2020 3:10:33 PM

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

ID: cbd503e0-9200-4fb7-4a18-fdf3cf51f8ee
Version Independent ID: 4b3493f3-ca0e-f64e-a884-0a27b1d18eb1
Content: Windows Virtual Desktop diagnose issues - Azure
Content Source: articles/virtual-desktop/diagnostics-role-service.md
Service: virtual-desktop
GitHub Login: @Heidilohr
Microsoft Alias: helohr

@XzeroR3
Thanks for the feedback! We are currently investigating and will get back on this.

@ChristianMontoya Can you please check and add your comments on this.

@XzeroR3 : Thanks for reporting this! I'm creating a workitem internally for a docs improvement to include this error in troubleshooting.
@VikasPullagura-MSFT : Feel free to close while we track internally.

For tracking purposes, we have created the workitem with ID 25493720 .

@ChristianMontoya Thanks for adding more details on the issue.
@XzeroR3 We will now close this issue, as this is internally tracked as mentioned by the team.


Is braintree-web a replacement for braintree_php, or do they work together?

General information

SDK version:5.0.0
Environment: Sandbox
Browser and OS: Firefox on Windows 7

Issue description
Is braintree-web a replacement for braintree_php, or do they work together? I can't get fetchPaymentMethods to work. Is it supposed to show the client a list of their saved payment methods?
I have a drop-in and these scripts in the header:
<script src="https://js.braintreegateway.com/web/3.11.0/js/client.min.js"></script>
<script src="https://js.braintreegateway.com/web/dropin/1.22.1/js/dropin.min.js"></script>
<script src="https://js.braintreegateway.com/web/3.11.0/js/vault-manager.min.js"></script>

And I'm using this example I saw:
braintree.dropin.create({authorization: client_token, selector: '#bt-dropin'}, function (err, client) {
	braintree.vaultManager.create({client: client}, function (err, vm) {
       vm.fetchPaymentMethods(function (err, paymentMethods) {
           paymentMethods // an array of payment methods
    })
  })
})

But it's only producing the same thing I had before, a form the customer has to fill out with credit card info.  But I'd like to let them choose from saved payment methods.
Also, I'm unclear on how to incorporate the hostedFieldsInstance.
Thanks for any help.

👋 @jamminjames, please contact Braintree Support for assistance. They can help you troubleshoot your integration and walk you through the process of integrating with Braintree's client and server SDKs.


Representation of Quantum states in Bra-Ket notation.

What is the expected enhancement?
Although the representation of Quantum states in Bloch sphere and q-sphere format is fairly intuitive, a choice to represent the states in Dirac notation could be easier to comprehend than looking and vectors.

Hi @nakul-shahdadpuri , do you literally mean converting eg a column vector (a, b) to a|0> + b|1> and a similar row vector to a<0| + b<1|? If so, I could easily do it but I'm not sure whether this is adding anything to Qiskit? There is really not any difference between the two representations.


Enable lint unnecessary_statements. Codebase is compliant.

to match https://github.com/flutter/flutter/pull/20099

Merging on behalf of @MichaelRFairhurst -


docs(feature-toggles): correct docs and typing

Issue #, if available:
Description of changes:

Demark optional value
Correct doctstring indents for pdoc3
Correct example code type to python

Checklist

[x] Meet tenets criteria
[x] Update tests
[x] Update docs
[x] PR title follows conventional commit semantics

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

Merging #588 (6726fa6) into develop (92d4a6d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #588   +/-   ##
========================================
  Coverage    99.95%   99.95%
========================================
  Files          113      113
  Lines         4533     4533
  Branches       245      245
========================================
  Hits          4531     4531
  Partials         2        2

Impacted Files
Coverage Δ

...da_powertools/utilities/feature_flags/appconfig.py
100.00% <ø> (ø)

..._lambda_powertools/utilities/feature_flags/base.py
100.00% <ø> (ø)

...owertools/utilities/feature_flags/feature_flags.py
100.00% <ø> (ø)

...ambda_powertools/utilities/feature_flags/schema.py
100.00% <ø> (ø)

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 92d4a6d...6726fa6. Read the comment docs.


circular import in notebook that didn't come up in pytest end-to-end runs

ImportError                               Traceback (most recent call last)
/tmp/ipykernel_2058627/2608867653.py in
4 from loguru import logger
5 from omegaconf import OmegaConf
----> 6 from pytti.workhorse import _main as render_frames
7
8 CONFIG_BASE_PATH = "config"
~/miniconda3/envs/sandbox/lib/python3.9/site-packages/pytti/workhorse.py in
29
30 logger.info("Loading pytti...")
---> 31 from pytti.Notebook import (
32     change_tqdm_color,  # why though?
33     get_last_file,
~/miniconda3/envs/sandbox/lib/python3.9/site-packages/pytti/Notebook.py in
16 from PIL import Image
17
---> 18 from pytti.LossAug import Loss as LossType
19
20 # https://stackoverflow.com/questions/15411967/how-can-i-check-if-code-is-executed-in-the-ipython-notebook
~/miniconda3/envs/sandbox/lib/python3.9/site-packages/pytti/LossAug/init.py in
44
45 from pytti.LossAug.TVLoss import TVLoss
---> 46 from pytti.LossAug.MSELoss import MSELoss
47 from pytti.LossAug.OpticalFlowLoss import OpticalFlowLoss, TargetFlowLoss
48 from pytti.LossAug.DepthLoss import DepthLoss
~/miniconda3/envs/sandbox/lib/python3.9/site-packages/pytti/LossAug/MSELoss.py in
4 from torch.nn import functional as F
5 from pytti.LossAug import Loss
----> 6 from pytti.Notebook import Rotoscoper
7 from pytti import DEVICE, fetch, parse, vram_usage_mode
8 import torch
ImportError: cannot import name 'Rotoscoper' from partially initialized module 'pytti.Notebook' (most likely due to a circular import) (/home/dmarx/miniconda3/envs/sandbox/lib/python3.9/site-packages/pytti/Notebook.py)

fixed with https://github.com/pytti-tools/pytti-core/commit/634089a085e7dfc6a55c8ed1084a06728ec17cc1
still not entirely clear why this only cropped up when I tried to run stuff from the notebook, but just goes to show: need to diversify the testing paradigm


Added dropout support to memory efficient variant

Hey Phil,
I have been using this repository for a project and I wanted to add dropout for completeness.  I checked consistency with perceiver-ar impl..  I hope this is helpful.
-Matt

@usryokousha oh sure, thanks Matt! just for your information, the field is slowly starting to realize that the traditional dropout is pretty useless
however, structured dropout, like https://github.com/lucidrains/x-transformers#forgetful-causal-mask or https://arxiv.org/abs/2206.00826 can still be used, but would not need to exist within the attention operation

let's merge it for completeness sake though! hope rabe or flash attention is working well for your project! just one more note, you should use the CUDA implementation here for optimal performance

Phil, thanks for pointing out the two papers on dropout!  I wonder how the Bayesformer paper's proposed dropout stands up in non-causal attention.  In my own experiments I have always turned it off because I found it hurt training.  The CUDA optimized flash attention package looks very appealing!  This is going to help in my future projects for sure!


Support React v. 18

Fixes https://github.com/clauderic/react-sortable-hoc/issues/838

@clauderic please review

yes please review

@chrishawn I'm afraid it will never be introduced. The lib is considered deprecated and further enhancements won't be merged. Only security fixes.

Would also like to see this merged. We can also not migrate away currently to another package. So would really like to see 18 official supported here.

@clauderic : Please support that. We are using this package on so many pages so it will be a huge effort to migrate. Since the methods are still there (only deprecated), I really hope that this will be merged. Thanks!!!

Hello,
thanks for your work.
Any target date for this to be merged?
Best regards

@clauderic Is there any migration guide to dnd-kit?

Hello,
Any updates for when it will be released?
Thanks everyone for the work.

Hy guys, merge it please.


Missing parameter in recursive process_conf call

Corrected missing parameter 'run' to recursive process_conf call when dealing with Array resource_obj type.
Without this, exec_flyway will never be called when processing either Hash or String types with alt_conf configured.

I swear there was a reason not to pass run, but after looking at it,  I can't see why there would ever be a use case not to pass it.  I will merge this PR after the to_not are removed from failing spec tests and the builds are green.


Shaka 2.0 and stream interruption

Latest master (6d0f081764410bfe69109bbb325de0a273bc582e)
According to http://dashif.org/wp-content/uploads/2015/04/DASH-IF-IOP-v3.0.pdf "4.8.3" and "4.8.5"  (page 67)  we have two options to indicate temporary stream unavailability:

"Short Periods" – "This expresses that for this Period no media is present at least for the time as expressed by the @duration attribute". As I understood, they mean periods without any AdaptationSets or Representations inside.
Using "dummy content", and according to "4.8.5" sending 404 to indicate content unavailability for specified interval.

But in first case Shaka reports about invalid MPD (no AdaptationSet/Representation) or stucks before such "dummy" period (in case of stream info absence).
In second case (404 response) Shaka makes repeated attempts to get a chunk and doesn't continue playback until we move scrollbar (or until chunk suddenly appears).
What do you recommend to use for temporary stream unavailability indication?
Are you going to handle 404 responses and "dummy periods" according to DASH-IF-IOP?
Thank you.

And the simpliest way is to support discontinuity between periods (when period1.start + period1.duration < period2.start). I've already made a patch for this and it would be great if you'll be able to review it.

We don't currently support discontinuity at all, but I'd love to see your patch.  Perhaps I have been over-complicating it.
As for short periods and dummy content, we don't have any such content available.  Can you provide a test stream so that we can take a look?

Thanks, Joey. you can find my commit here:
https://github.com/agelun/shaka-player/commit/d0b3fe58bf58f8ca72f904b37e199db104513402
I didn't make a pull request because it breaks a lot of test cases and it's not ready for merge.

@baconz, this seems related to a conversation we were having about gaps.
@agelun, it appears that you detect when the playhead is in a gap, and move it to the other side.  This is something we have considered before and decided not to do.
I took a look at the sections of the IOP you referenced.  (The same content appears in the same sections in the most up-to-date version of IOP, v3.3.)
My reading of the IOP is that there are three mechanisms:

Dummy content.  This means that the server generates or uses pre-made media to fill the gap in the input.  The output DASH stream has no gaps.  Dummy content requires no player support, so this is a definite option for you.  (Note that in my interpretation, this is not the same as serving a 404.)
"Short Periods".  These are periods with no media at all.  We do not support these currently.
404s.  The Period element points to media which is not there on the server.  When the segment is requested, we get a 404 and we know that there is no such segment.  We do not support this either.

It appears that using 404s is the same as short periods in concept.  Both indicate that segments are not available and will not be available.  The main difference is in when the player finds out.  A short period tells the player at manifest parse time that there's no content.  A 404 when fetching a segment tells the player later, when it starts trying to buffer the relevant section of the presentation.
I dislike using 404s for this because there are other ways to encounter them, such as bad clock sync or a misbehaving server.  If the player is expected to happily move past 404s, it may make debugging certain server problems more difficult.
Short periods are more clear, but still don't fit into our current architecture.  We don't expect to be able to play through gaps, and these empty periods just signal "here's a gap".
I'm not sure if/when we would be able to support gaps.  Because of the way MediaSource works, I believe it is difficult for JS-based players to deal with gaps elegantly.  I'm averse to extra complexity in the player.

@joeyparrish there's one more option that we discussed, which would be to leave out the empty period, but apply an adjustment to the live head, pulling it back by a duration equivalent to the gap length. This method is not yet supported in the spec, but I think that barring a true server-side solution (ie filling the gaps with a "slate"), it might be the simplest fix.
I'm happy to submit a ticket to the IOP if others think that this would be helpful.

Empty periods and dummy content might be technically feasible for on-demand content but for live content, the backend often might not even have the ability to detect missing pieces, let alone do something about them. Many packagers simply deliver segments over FTP to a CDN origin and if one segment gets lost then too bad - it will just skip the segment and carry on.
This should not happen but real world network conditions can be nonideal, so I have seen it quite a lot in practice - there's a gap of one or more segments, after which playback continues just fine. Maybe not very often but perhaps just once a day. If players do not skip past 404s, this means that live streams will suddenly stall at random moments in time, for all (or a large subset of) users simultaneously. This makes users rather unhappy.

@joeyparrish can you explain why did you decide not to "jump over" the gap? Are there any tech reasons or just code style/simplicity/etc.?
I thought about https://github.com/google/shaka-player/issues/462 as well and both cases can be solved if you create something like "event bus" for stream events, I think. There could be pushed MPD events from EventStream tag and discontinuity events (in case of periods interruption, empty periods and 404 responses – all from different sources) and application will be able to choose when/how to react on such events (for example, jump over, stuck, show error message etc. for discontinuity events). It can be used to draw informative timeline as well.
I need to understand how can we progress with this issue, should we support our own branch to cover such "real life" requirements or it can be merged into google's code. Or, maybe, there are some more serious reasons I don't know about and it cannot work well at all?

We decided not to jump over the gap for many reasons, but I think they are becoming increasingly irrelevant.  Let's figure out the best solution and work toward getting it merged into Shaka Player.
In my view, there are many reasons for gaps:

Broken content.  The fact is that we get many support requests that turn out to be bugs in the encoder or bad input to the encoder.  See #562.  Broken content and non-IOP-conforming content are things we don't intend to support.  I think failing on broken content is appropriate and helps to highlight and fix bugs in encoders.  Jumping gaps here may hide these content issues, but that shouldn't be a deal-breaker.
Browser bugs.  As of this writing, Chrome is still mixing up DTS and PTS, which can sometimes cause gaps to appear at the start or end of a Period even when there are none in the content.  Jumping gaps in this case might be a good thing, in that it would work around browser bugs when possible.
True discontinuity.  This is permitted by IOP and a reality of live streaming for encoders which don't generate dummy content.  Jumping gaps in this case is a clear win, as it allows us to play live streams we couldn't otherwise play.

I don't see any good way to differentiate between these three cases, so probably it's best to try to handle all gaps.
One thing that worries me is the use of 404s to signal discontinuities.  There are other times a 404 may occur:

Again, broken content.  If I mis-encode VOD content, segments might be missing or their URLs might be wrong in the manifest.  Ideally, we would fail on such content so that the app developer sees an error and can start investigating.
Live content when clock sync is broken or misconfigured.  If the app config is wrong, the player might request past the proper live edge and get a 404 from the server.  In this case, treating a 404 as a discontinuity would result in the player requesting the next segment after that, and so on.  The rest of the stream would appear as one big gap and would generate no errors.  Ideally, we would fail with an error in this case, too.
True discontinuity.  These could appear at the live edge or elsewhere, depending on whether a time shift buffer is used.  Ideally, we should handle this gracefully somehow.

I'm unsure how to differentiate the third case from the other two.  Perhaps we could have a heuristic for that, such as isLive && numConsecutive404s < errorThreshold.  If there are too many in a row, we would decide we were in case 2 and fail.  If it was VOD, we would decide we were in case 1 and fail.
We've also discussed two different strategies for handling gaps:

Seek over gaps automatically.  I'm concerned about the complexity of this, but it could work.  Playhead seems the most reasonable place to detect and jump gaps.  It could be similar to how we keep the playhead inside the seek range.
Dispatch events to allow the application to decide what to do.  If the app isn't expecting gaps, it could fail.  This offers greater flexibility, but requires more effort on the part of the app developer.  Extra work is required for any app expecting gaps, to listen for that and jump over them.  Extra work is also required for any app not expecting gaps, to listen for them and fail.

Thoughts?  Specifically on:

decision not to differentiate causes of gaps in JavaScript
heuristic to differentiate between good 404s and bad ones
pros/cons of strategies for jumping gaps

Hello, Joey. Thanks for reply.
Step by sep:

Broken content. Yes, It's a encoders and/or IP delivery (in case of multicast delivery) problem. But end user don't want to know it )) So it's better to "hide" such problem sometime instead of shout "Hey, we/our streaming partner have dumb network admin, he cant configure QoS" )

404 with VoD content. I can agree with you in this part. Usually content provider is able to check content consistency before publishing. Especially in case of "SegmentBase" profile.

404 with Live. Maybe it'll be better to check server time from HTTP response header (?)

Handling strategies. I think only second one will be "production friendly" because:

Automatic seek over gap can be surprising for end-user. Usually app developer wants to notify somehow about problem, switch to "stub" advertisement or disable such seek at all (for example when you'll be switched to another film. Imagine, your kid watched cartoons and suddenly was switched to some horror blockbuster )) )

Generated event can be used for monitoring purposes as well (to notify monitoring system about such discontinuity/gap)

Discontinuity events can be unified with other stream events (e.x. EventStream/Event from MPD). So it'll be more generic and more elegant.

And I don't understand why you think it'll be more complex for app developer. Event can be ignored and playback will stop (like now).

This topic is currently also under discussion/development in the dash.js player. Perhaps some collaboration might be beneficial. I link here the dash.js discussion on the topic.
https://github.com/Dash-Industry-Forum/dash.js/issues/651

I have an issue with DASH + Widevine Live stream that player make requests for the segment with segment number -1 and the response from the server of course is 404.
@joeyparrish  Can the reason for that be temporary stream unavailability as well?

@dobrusev That seems unlikely.  If the player is requesting a bad segment number, that seems like a bug.  Please file a new issue, preferably with a link to the manifest.

@joeyparrish @TheModMaker   Seems this was pushed out to vLater (not sure what that means) ... any chance this is still being actively considered/pursued?   Last update looks to be sometime late last year?
if we're generating a live manifest and we experience a stream loss, it would be nice to be able to include an empty <Period duration="PTxS"> element (as the spec indicates is acceptable) to account for that gap and know that shaka is going to properly jump that gap.

We plan to implement what we are calling "gap jumping": automatically jumping the play head over gaps in the timeline.  vLater means it is not scheduled for a specific release yet.  We have decided to wait until after v2.1.0 is released, to avoid any risk to that release.
We will release a design doc in the near future, and link to it here.
Thank you for your patience with this issue.  Tolerating gaps in the timeline is a big change in behavior for Shaka Player, and we are being very careful.

@joeyparrish Thanks for the update!  Good to know.  We'll keep our eye out that design doc and progress on this in the future.  For our purposes, we plan on creating a period with placeholder content to bridge the gap.  Hopefully that'll get us past this for now.

We just pushed a design doc for our implementation of gap jumping.  I have also started working on it and hope to have something in within the next week or two.
The basic idea is for encoders to introduce gaps in the manifest (e.g. missing segments, or Periods with both a start and duration).  Then we will jump any of the resulting gaps.  If the gap is larger than a configurable threshold, we will raise an event.

We just pushed the main implementation of gap jumping.  Now any gaps that appear in the media or the manifest will be jumped automatically.  You can see it live on the nightly page.
"Small" gaps are jumped automatically.  These are gaps smaller than config.streaming.smallGapLimit, default of 0.5 seconds.  This can be increased using player.configure().  "Large" gaps result in an event on Player (type largegap).  These can also be jumped automatically by setting config.streaming.jumpLargeGaps to true.


Negative value not working on "slide" type.

Checks

[X] Not a duplicate.
[X] Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version
v0.5.2
Description
Negative values (reverse scroll) will not work if SplideJS type is set to "slide". If we use positive value, it will work fine.
Also, if it is set to "loop", everything work as expected.
Reproduction Link
https://codesandbox.io/s/643-forked-le7c7g?file=/src/index.js
Steps to Reproduce

Open CodeSandbox link
Change type to "loop" or change autoScroll.speed to positive value

Expected Behaviour
Auto Scroll should work from beginning. Now it only works, if we move slider to last image, then it will start to scroll (on negative values).

You are using old versions.

@NaotoshiFujita
HI, I have updated CodeBox to the latest versions for both packages, the issue still persist.

Ah, if you want to start it from the end slide on load, you need to specify the start index, since the initial index is 0. For example:
https://codesandbox.io/s/splide-autoscroll-bug-forked-3l397r?file=/src/index.js

@NaotoshiFujita I see. Is this then desired effect as with loop type, it does not needstart index? Would it be then possible to add option to use start: -1 as some sliders have dynamic slides length, so it would be easier to use -1 as last index one? Thanks.

Is this then desired effect as with loop type, it does not need start index?
I don't know. It depends on what you want to achieve.

Would it be then possible to add option to use start: -1 as some sliders have dynamic slides length, so it would be easier to use -1 as last index one?
I don't think so, since negative indices are used for clones internally. But you can easily get the last index by querySelectorAll.


"Deadman" interval = 0s will crash kapacitor

To reproduce:
In chronograf create a tick script that uses Deadman.
Set interval = 0s
Save tick script
In testing this using the kapacitor container the container will exit on crash.
Looks like it might be a divide by zero bug (e.g.  threshold / interval)

@wcannon thanks for the issue. A deadman of 0s doesn't really make much sense but the error shouldn't happen either way.

I have a strange feeling I am having the same issue. Can you guys point me to some info on how to disable the check so Kapacitor would actually start again ?
My current error is:
May  6 12:13:06 kapacitor01 kapacitord: 2020/05/06 12:13:06 Using configuration at: /etc/kapacitor/kapacitor.conf
May  6 12:13:59 kapacitor01 kapacitord: panic: non-positive interval for NewTicker
May  6 12:13:59 kapacitor01 kapacitord: goroutine 67092 [running]:
May  6 12:13:59 kapacitor01 kapacitord: time.NewTicker(0x0, 0xed644a107)
May  6 12:13:59 kapacitor01 kapacitord: /usr/local/go/src/time/tick.go:23 +0x147
May  6 12:13:59 kapacitor01 kapacitord: github.com/influxdata/kapacitor.(*StatsNode).runStats(0xc1fef7c140, 0x0, 0x0, 0x0, 0x0, 0x0)
May  6 12:13:59 kapacitor01 kapacitord: /root/go/src/github.com/influxdata/kapacitor/stats.go:44 +0x307
May  6 12:13:59 kapacitor01 kapacitord: github.com/influxdata/kapacitor.(*node).start.func1(0xc1fef7c140, 0x0, 0x0, 0x0)
May  6 12:13:59 kapacitor01 kapacitord: /root/go/src/github.com/influxdata/kapacitor/node.go:186 +0x9d
May  6 12:13:59 kapacitor01 kapacitord: created by github.com/influxdata/kapacitor.(*node).start
May  6 12:13:59 kapacitor01 kapacitord: /root/go/src/github.com/influxdata/kapacitor/node.go:164 +0x5d
May  6 12:13:59 kapacitor01 systemd: kapacitor.service: main process exited, code=exited, status=2/INVALIDARGUMENT

I tried changing kapacitor.db with a boltdb browser, but at that point the error changes to:
May  6 12:01:37 kapacitor01 kapacitord: ..::::..::..:::::..::..:::::::::..:::::..:::......:::....:::::..::::::.......:::..:::::..::
May  6 12:01:37 kapacitor01 kapacitord: 2020/05/06 12:01:37 Using configuration at: /etc/kapacitor/kapacitor.conf
May  6 12:02:30 kapacitor01 kapacitord: run: open server: open service *task_store.Service: no key exists
May  6 12:02:30 kapacitor01 systemd: kapacitor.service: main process exited, code=exited, status=1/FAILURE
May  6 12:02:30 kapacitor01 systemd: Unit kapacitor.service entered failed state.
May  6 12:02:30 kapacitor01 systemd: kapacitor.service failed.
May  6 12:02:30 kapacitor01 systemd: kapacitor.service holdoff time over, scheduling restart.
May  6 12:02:30 kapacitor01 systemd: Stopped Time series data processing engine..

Any help would be appreciated.
Kr,
Stefan

Looks like a stats node with a non prositive duration will exhibit the same behavior.


It doesn't work with rootDirs

Thanks for the tutorial! I had to make a change to the project-references branch and instead of rootDir use rootDirs. However, this completely breaks it. Any idea how to use include multiple roots in foo?

Hi @evelyne24, could you please provide a reproducible example?

You can try it on your example, if you change from rootDir to rootDirs

if you change from rootDir to rootDirs

rootDir controls the output structure of the build folder
rootDirs allows relative imports from multiple folders that will be placed next to each other as part of the build

You shouldn't use one over the other. If you need the functionality provided by rootDirs you can just enable it alongside rootDir.

if you change from rootDir to rootDirs

rootDir controls the output structure of the build folder
rootDirs allows relative imports from multiple folders that will be placed next to each other as part of the build

You shouldn't use one over the other. If you need the functionality provided by rootDirs you can just enable it alongside rootDir.

Ok, that makes sense, thanks!

No problem! I tested locally and rootDirs works alongside rootDir. I tried using just the former and what happened is that the build output changed structure (it produced build/src/foo instead of build/foo) and then the other package couldn't find its dependency anymore.
I'm going to close this, but if you have any more questions feel free to reopen it!


Calling imported function with memory address doesn't seem to receive data

Summary
Hi, I am calling rust WebAssembly with header like:
pub extern "C" fn rustaction(cstringarg: *const c_char) -> *const c_char

and this function is exported to wasm. This function is internally calling imported function from golang with header:
fn goaction(cstringarg: i32) -> i32;

I am instantiating Wasmer in golang. Call to exported function rustaction works well, and If I put inside the code from inside of greeter I am receiving and returning function string.
The problem I have is when inside rustaction I pass address of cstrings to imported function goaction, I am unable to receive the data in this imported function. Should It work this way ?
Additional details
The code of exported function in Rust:
#[no_mangle]
pub extern "C" fn rustaction(cstringarg: *const c_char) -> *const c_char {
    return unsafe { goaction(cstringarg as i32) as *const c_char};
}

the imported function code:
//export goaction
func goaction(context unsafe.Pointer, cstr int32) int32 {
// cstr contains valid address, like 1114120
	var addr uintptr = uintptr(cstr)
	up := unsafe.Pointer(addr)
// after conversion, ptr is 0
	ptr := (*C.char)(up)
        gs := C.GoString(cs)
	fmt.Println(gs)

Provide any additional details here.
go version go1.14 darwin/amd64, rust 1.44.1

Actually, I went with golang native bridge from https://github.com/go-wasm-adapter/go-wasm, we can close this question.
I believe there might be something wrong in my rust allocation, but I havent got much luck with going that way considering my rust/y skills.


Add simplified landing page for PyPI without images

This PR adds a custom (and simple) landing page for PyPI to address the issue of images from the readme not being rendered on PyPI, as logged in issue #95.
I made a prerelease to test the changes, which are viewable here

Looks good, thank you!


extra condition to "text analysis" as minimal when explorative=True

Missing functionality
Whenever the Dataframe has a column with a lot of text and I want to do an explorative=True, the profiler just freeze and it does not generate the report.
Proposed feature
Turn off deep text analysis when explorative=True, link to have minimal for text and detailed for other variables types.
Alternatives considered
I have tried with spark-profiling but it doesn't have updates since 2 years ago.

Hi David, this exporative mode includes text analysis. This can be turned off easily using the variable summary settings. The most relevant options to set are vars.cat.characters=False and vars.cat.words=False. Hope this help.


Adding adoption contact list

Related Ticket(s)
{{Provide url(s) to the related ticket(s) that this pull request addresses}}
Description
{{Add a human-readable description / detail summary of what the PR is changing and any details around how and why}}
{{If applicable, include a screenshot indicating an example or examples of what the PR is changing in the application}}
Changelog
New

{{new thing}}

Changed

{{changed thing}}

Removed

{{removed thing}}

@jacobottesen-dgc let's hold off on this. let's use the #ibm-digital-design channel as much as possible before surfacing any direct contact.