[Feature Request] live clipping

It would be nice if you could clip live while the stream is still running

i've had this thought too, not sure how this would be done, as it would need some kind of a replay buffer. i don't think the published current vod has up until the last second either. will need some research.

i've had this thought too, not sure how this would be done, as it would need some kind of a replay buffer. i don't think the published current vod has up until the last second either. will need some research.

okay, nice. It would be mega cool if that works. Otherwise it's only available in very expensive solutions

It would be great if you could access the current recording and make the clips without time restrictions


Add ca-certificate-validity config option

Description
Given the TLS certificate operator already provides the possibility of configuring the period of validity of the certificates, it makes sense to allow to specify the validity for CA certificate as well, when generating the CA/certs. If these modifications sounds sensible, I would be more than happy to introduce them in the new charm https://github.com/canonical/self-signed-certificates-operator. Although this behaviour in this charm is now deprecated, we still need this feature for a use-case which is still on juju 2.9.42+.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[x] I have added tests that validate the behaviour of the software
[x] I validated that new and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

Overall I think it is a useful feature and the current code looks OK, but the handling of the expiry of the CA certificate is not there. Deploying this as is would break after a year, with no way of recovering outside of redeploying.
We will probably have to introduce Secrets for Juju>3 or otherwise fallback to update_status to check the CA certificate validity and regenerate it when it is close to expiry.

@ghislainbourgeois This was already a bug with the current implementation right? I see in the lib the default validity is 365 days. It's just that now we know about it.

What about if we merge the PR, and I'm committed to work on the bug in the next days (and in a separate PR)

After discussion, I am fine with merging this as-is and working on the bug in a separate issue. We will need to ensure that any deployments to customers are made with the understanding that this bug is present.


Do you have any plans to support React format styles as well?

I can create a pull request that would support styling also. But it's the name of the module that concerns me.

@noraesae ping

I'm not sure about what React format styles are. Can you give me an example?

"class": "className",
"backgound-image": "backgroundImage",
"background-color": "backgroundColor"

Oh, now I got it. I think it may become a separated library, as they are not specifically attributes. Thanks for your suggestion and really sorry for not accepting it.

It's okay 😊

There you go https://www.npmjs.com/package/react-style-converter


Adding About, Services, Menu & Contact Page on "Food Template" Website

Issue Type:

Feature Request

Describe the bug

Currently, there is no About, Services, Menu, Contact Page on Food Template Website. I would like to create all the four pages with HTML & CSS.

Screenshots

Hey, @arpit456jain Can I work on this issue?

sure @aditiitomar

@aditiitomar Complete this issue Asap!!!


Process for altering workflow configuration

Describe the Issue
I am trying to develop a process for altering the workflow configuration when using the branch-deploy action.
By design, the workflow is executed based on the configuration in the main branch, meaning I can only test changes after a merge. This poses a risk of introducing workflow bugs into the main branch.
Changing the workflow trigger, e.g., to on: pull_request, is not an option as the action is driven by issue comments.
What is the recommended development process when using this action?
Thank you in advance for any help. I am really enjoying working with this tool! 😃
Action Configuration
No response
Relevant Actions Log Output
No response
Extra Information
No response

👋 Hi @bzurkowski sorry for taking so long to you on this. At this point you have probably already figured out your own workflow for making changes but I'll go ahead and share how I do this for others that might be looking for an answer as well.
It should be noted that my answer is the same for how we (at GitHub) and I (in personal projects) make changes to workflows in production repos.
First off, let's look at your comment here:

By design, the workflow is executed based on the configuration in the main branch, meaning I can only test changes after a merge. This poses a risk of introducing workflow bugs into the main branch.

You are absolutely correct and this does indeed pose a level of risk. We can't "branch-deploy" our changes to the github/branch-deploy Action because of this design. It is actually a trade-off because we can't safely test changes before they land on the main branch for this Action's configurations... but the upside to this is that changes to this Action can't be made until they are on the main branch. Because of this, we can be confident that commenting .deploy will only run from the main branch and we can be assured that those changes have been reviewed and tested before they landed there.
Let's continue on and get to my explanation of how I upgrade versions of this Action in a production repository:

What is the recommended development process when using this action?

It's not great but here is how it goes:

A new version of the github/branch-deploy Action is released. Let's use v10.0.0 as an example here.
Either myself, or dependabot will open a pull request to update the github/branch-deploy Action to this latest version in repo XYZ
I or a teammate approves the changes, comments .deploy to meet the branch protection settings, and then we merge the pull request
Now the changes are on main and will be applied throughout the repo and on all other PRs that are open.

This absolutely does incur some risk as v10.0.0 could have a bug and now you need another PRs to update to v10.0.1 when it comes out, or rollback to a previous version.
The good news, is that I and GitHub are both very aware of this upgrade process so we do our absolute best to ensure this doesn't happen. Here is what we do to help ensure releases are smooth and you can reliably upgrade to them:

This project has 100% test coverage
Large or questionable changes are tagged as pre-releases and we test them internally in our project before rolling them out to the public via the "latest" release tag
We test changes in sandbox repos to rule out bugs early and often
We monitor this repo for any bug reports and squash them as quick as we can

Hopefully that helps! Feel free to re-open this issue if you have any further questions but I will go ahead and close it out for now. Thanks! 😄


last commit available in cocoapods

Could you please make lastast commit available in cocoapods.
thanks.

Ah yea sorry I forgot.  Will be up shortly.

Thanks @szweier


fix dangling filters to Swarm

It's very useful to list and remove non used docker images. We  always run
docker images -q -a -f dangling=true

but when using docker swarm, we notice that there is no logic to handle dangling filter for docker images. And it also indicates that the behavior of docker api and docker swarm api for listing images are different.
docker images api
This is PR to fix the issue and keep the same behavior with docker engine.
docker/daemon/images.go

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "master" git@github.com:cheyang/swarm.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@dongluochen @nishanttotla @allencloud PTLA, Thanks.

@cheyang could you please rebase and force push to restart tests?

@nishanttotla , seems that this error does nothing with my PR. Could you help to take a look, thx.
not ok 63 zk discovery: watch for changes
(from function `retry' in file discovery/../helpers.bash, line 80,
in test file discovery/zk.bats, line 59)
`retry 10 1 discovery_check_swarm_info' failed

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "master" git@github.com:cheyang/swarm.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354090816
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@nishanttotla Please take a look at  https://jenkins.dockerproject.org/job/Swarm-PRs%20(engine%201.12)/225/console
not ok 64 zk discovery: node removal
# (from function `retry' in file discovery/../helpers.bash, line 80,

Looks like it does nothing with PR.

@cheyang thanks, the test failure is unrelated. We'll review this PR.

any update? @nishanttotla

Thanks for your contribution. @cheyang
I am wondering what would happen if I execute docker images -q -a -f dangling=nonexisting?

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "master" git@github.com:cheyang/swarm.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842353995808
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

Please see PR #2670 .

@allencloud ,

I am wondering what would happen if I execute docker images -q -a -f dangling=nonexisting?

For dangling=nonexisting, this filter will not affect.
This is the behavior of docker daemon.
···
docker images -q -a -f dangling=nonexisting
Error response from daemon: Invalid filter 'dangling=[nonexisting]'
···


[cummax,cummin,cumprod,cumsum]: [missleading process description]

Process ID:
cummax
cummin
cumprod
cumsum
Describe the issue:
In the description of the processes cummax, cummin, cumsum, and cumprod, the behavior of the ignore_nodata flag is incorrectly described. Specifically, the following sentence is wrong:
"Setting the ignore_nodata flag to true makes that once a no-data value (null) is reached all following elements are set to null in the result."

Proposed solution:
The sentence should be corrected as follows:
"Setting the ignore_nodata flag to false makes that once a no-data value (null) is reached all following elements are set to null in the result."

Additional context:
Links:

cummax JSON Definition
cummin JSON Definition
cumprod JSON Definition
cumsum JSON Definition

Hi @katharinastarzer21
Thanks for the report. I think the descriptions of the processes as they are right now are correct:

ignore_nodata = true (default) => Any value following a null will be computed without considering the null value in-between, we are ignoring null values. This is equivalent to the reducers such as max where max([1, null], ignore_nodata = true) returns 1.
ignore_nodata = false => Any value following a null will be null because we don't ignore null. This is equivalent to the reducers such as max where max([1, null], ignore_nodata = false) returns null.

That's what is currently written in the process description and aligns with above:

Setting this flag to false considers no-data values so that null is set for all the following elements.

I'm using null here as a synonym for nodata values.
If you still think this is wrong, please explain your reasoning more clearly and I'll reopen the issue.,

Hi @m-mohr,
Thank you for reviewing my issue. However, I believe the problem is still present.
I completely agree with your explanation, and the sentence you mentioned is indeed correct, but it is located in the parameters section. My concern is specifically with the last sentence in the description section of each cumulative math process, which reads:

Setting the ignore_nodata flag to true makes that once a no-data value (null) is reached all following elements are set to null in the result.

This behavior actually occurs when ignore_nodata is set to false, not true.
I hope this clears things up. The links I provided should guide you to the specific lines in the process descriptions that I am referring to. I’m sorry for any confusion caused by my initial message.

Oh, yes, you are right. My bad, I didn't check the links and only had a look at the parameter descriptions. The process description was indeed wrong and I updated it accoridngly. Thanks for reporting it!


Tabs have labels

After feedback from Matthias Brändli, we decided that tabs should have labels. The label is the title of the chart. The behavior of  the width of the tabs should mimick browser tabs.

Was fixed in https://github.com/visualize-admin/visualization-tool/pull/1584

Thank you @sosiology. I didn't see this. I'll delete the other one.
@ptbrowne Not sure yet, how we handle multiple languages? Only the on that the editor wrote I assume? That would work I think.

@KerstinFaye seems like the translations and charts not having a title are already accounted for see examples below
Chart with labels in all languages: https://test.visualize.admin.ch/en/v/W6-T_gW3_6y3?dataSource=Prod
Chart with label only in EN: https://test.visualize.admin.ch/en/v/IkmUw2wTEwo9?dataSource=Prod
👏 thanks @ptbrowne

Thanks a lot. Looks good.


gtkdatabox: <IP_ADDRESS> -> <IP_ADDRESS>

Semi-automatic update. These checks were done:

built on NixOS
Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
found <IP_ADDRESS> with grep in /nix/store/3axd91hc3vi45w0j8yw0qfgwip4cx9da-gtkdatabox-<IP_ADDRESS>
found <IP_ADDRESS> in filename of file in /nix/store/3axd91hc3vi45w0j8yw0qfgwip4cx9da-gtkdatabox-<IP_ADDRESS>

Failure on x86_64-darwin (full log)
Partial log (click to expand)
Package ‘gtkdatabox-<IP_ADDRESS>’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/development/libraries/gtkdatabox/default.nix:16 is not supported on ‘x86_64-darwin’, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Partial log (click to expand)
make[1]: Leaving directory '/tmp/nix-build-gtkdatabox-<IP_ADDRESS>.drv-0/gtkdatabox-<IP_ADDRESS>'
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/3axd91hc3vi45w0j8yw0qfgwip4cx9da-gtkdatabox-<IP_ADDRESS>
shrinking /nix/store/3axd91hc3vi45w0j8yw0qfgwip4cx9da-gtkdatabox-<IP_ADDRESS>/lib/libgtkdatabox-0.9.3.so.0.0.0
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/3axd91hc3vi45w0j8yw0qfgwip4cx9da-gtkdatabox-<IP_ADDRESS>/lib
patching script interpreter paths in /nix/store/3axd91hc3vi45w0j8yw0qfgwip4cx9da-gtkdatabox-<IP_ADDRESS>
checking for references to /tmp/nix-build-gtkdatabox-<IP_ADDRESS>.drv-0 in /nix/store/3axd91hc3vi45w0j8yw0qfgwip4cx9da-gtkdatabox-<IP_ADDRESS>...
/nix/store/3axd91hc3vi45w0j8yw0qfgwip4cx9da-gtkdatabox-<IP_ADDRESS>

Success on aarch64-linux (full log)
Partial log (click to expand)
make[1]: Leaving directory '/build/gtkdatabox-<IP_ADDRESS>'
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/pvlrb88vcsfvyag2c9rrwn6q72nmhk8r-gtkdatabox-<IP_ADDRESS>
shrinking /nix/store/pvlrb88vcsfvyag2c9rrwn6q72nmhk8r-gtkdatabox-<IP_ADDRESS>/lib/libgtkdatabox-0.9.3.so.0.0.0
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/pvlrb88vcsfvyag2c9rrwn6q72nmhk8r-gtkdatabox-<IP_ADDRESS>/lib
patching script interpreter paths in /nix/store/pvlrb88vcsfvyag2c9rrwn6q72nmhk8r-gtkdatabox-<IP_ADDRESS>
checking for references to /build in /nix/store/pvlrb88vcsfvyag2c9rrwn6q72nmhk8r-gtkdatabox-<IP_ADDRESS>...
/nix/store/pvlrb88vcsfvyag2c9rrwn6q72nmhk8r-gtkdatabox-<IP_ADDRESS>


Paper table cells overflow when url is long.

The O'roak3 paper (ndb/paper.xhtml?paperId=26) has an url that is too long and doesn't break properly.
Can reproduce using Google Chrome but not Firefox.

Needs the following css on the table element:
word-wrap: break-word;
word-break: break-all;
table-layout: fixed;

Problem is not fixed, but will not occur anymore because we switched from raw URL to DOI link (which is smaller and doesn't require a line break.)

Possibly related bug in the variant table. Seems like the allele change columns are offsetting the rest.

Example at : /ndb/variant.xhtml?paperId=7
Problem occurs after scrolling for a bit.

Fixed by extending the table load function with header resize.


java.lang.NumberFormatException: For input string: "null" @ line 628

This one seems to be in the Z-Wave Lock Reporting code.
java.lang.NumberFormatException: For input string: "null" @ line 628

It might be related to the null pointer problems in the main code, but I'm seeing these print in my logs regularly.

I get a similar error while trying to edit the user codes, which no longer is working (oops!)

Anyone still seeing this happening?  Hopefully the past bug fixes have done this one in too.

I see this regularly, game to the GH issues to try and track down the cause!


Format must be specified when using two-pass

I want to reduce the quality of the mp3 files. but got an error: Format must be specified when using two-pass. Can You help me?
FFmpeg ffmpeg = new FFmpeg("D:\\ffmpeg\\bin\\ffmpeg.exe");
FFprobe ffprobe = new FFprobe("D:\\ffmpeg\\bin\\ffprobe.exe");
FFmpegProbeResult probeResult = ffprobe.probe("C:\\Users\\trant\\Desktop\\TestNextCloud\\input.mp3");\\
FFmpegBuilder builder = new FFmpegBuilder()

     .setInput(probeResult )     // Filename, or a FFmpegProbeResult
     .overrideOutputFiles(true) // Override the output if it exists
     .addOutput("output.mp3")   // Filename for the destination
     .setAudioChannels(1)         // Mono audio
     .setAudioSampleRate(48_000)  // at 48KHz
     .setAudioBitRate(65536)      // at 64 kbit/s
     .done();

FFmpegExecutor executor = new FFmpegExecutor(ffmpeg, ffprobe);
 // Run a one-pass encode
 executor.createJob(builder).run();

Version (if applicable):

OS: [e.g. Window]
Java Version [e.g. 8]

Two passes essentially run ffmpeg twice. The first pass is instrumented, and the output is discarded.
The second pass is stored, but ffmpeg will use the data collected during the first pass, to make a file matching the requested target size while keeping a decent quality.
This works better than the single pass because if the input has a noisy scene (fast-moving, many things going on), it won't be able to deal with this unless the quality is dropped massively, which produces artefacts.
In a two-pass scenario, FFmpeg will know in advance that such a scene is coming up and can already start reserving the bitrate for the very noisy scene.
Yes, it is theoretically possible to use the same bitrate or filesize as the input has.
But then you could use cp input output.
TL;DR: Two pass is there to optimize for file size constraints and therefore needs to know what filesize to target.


PyMDE seed fixation suggestion

Hello,
I've been trying out different dimension reduction methods mostly for visualization purpose.
scvi.model.utils.mde seems to be a very interesting and useful feature added in the ecosystem, but I realized while I was playing around few parameters like neighbors and repulsive_fraction that the random seed is not fixed nor it could be fixed with a global seed in my script.
Could we just add a quick feature like scvi.model.utils.mde(seed=42) and add the pymde.seed(seed) calling right around there?
in _mde.py
   try:
        import pymde
        pymde.seed(seed)

Thank you for all your work!
Seyoon

Thanks for the suggestion, we can definitely add this as part of the next release!


Google Daily Data Restrictions

It now looks like Google daily data history is being limited to one year. We are rapidly running out of options for both free daily and intraday market data. To effectively train market models, we need as much historical data as possible. If anyone has any suggestions for alternate feeds (e.g., Quandl), please post them here.

http://francescopochetti.com/scrapying-around-web/
http://francescopochetti.com/pythonic-cross-validation-time-series-pandas-scikit-learn/
http://francescopochetti.com/stock-market-prediction-part-introduction/
def getStock(symbol, start, end):
"""
Downloads Stock from Yahoo Finance.
Computes daily Returns based on Adj Close.
Returns pandas dataframe.
"""
df =  web.DataReader(symbol, 'yahoo',start, end)
df.columns.values[-1] = 'AdjClose'
df.columns = df.columns + '_' + symbol
df['Return_%s' %symbol] = df['AdjClose_%s' %symbol].pct_change()

return df

def getStockFromQuandl(symbol, name, start, end):
"""
Downloads Stock from Quandl.
Computes daily Returns based on Adj Close.
Returns pandas dataframe.
"""
import Quandl
df =  Quandl.get(symbol, trim_start = start, trim_end = end, authtoken="your token")
df.columns.values[-1] = 'AdjClose'
df.columns = df.columns + '_' + name
df['Return_%s' %name] = df['AdjClose_%s' %name].pct_change()

return df

def getStockDataFromWeb(fout, start_string, end_string):
"""
Collects predictors data from Yahoo Finance and Quandl.
Returns a list of dataframes.
"""
start = parser.parse(start_string)
end = parser.parse(end_string)
nasdaq = getStock('^IXIC', start, end)
frankfurt = getStock('^GDAXI', start, end)
london = getStock('^FTSE', start, end)
paris = getStock('^FCHI', start, end)
hkong = getStock('^HSI', start, end)
nikkei = getStock('^N225', start, end)
australia = getStock('^AXJO', start, end)

djia = getStockFromQuandl("YAHOO/INDEX_DJI", 'Djia', start_string, end_string)

out =  pd.io.data.get_data_yahoo(fout, start, end)
out.columns.values[-1] = 'AdjClose'
out.columns = out.columns + '_Out'
out['Return_Out'] = out['AdjClose_Out'].pct_change()

return [out, nasdaq, djia, frankfurt, london, paris, hkong, nikkei, australia]

Thank you. We'll test this out and Quandl as a data source as well.

Google Finance URL is acting flaky, even for daily data. Unfortunately, all free sources of financial data are disappearing.

Please refer to #15.


improve data collected for OS inventory

I think we can improve the OS inventory tool systest/Generate_OS_Inventory.robot.
The JSON inventory file returned by this tool is missing a few items:

I don't see bridge and slot info, for example bridge:0 thru bridge:5 in slots GPU0 thru GPU2
I don't see PCI chip info, for example pci:1 thru pci:5
Caches are currently listed with general memory.  I think they should be associated with each processor.

For reference see issues 554 and 626 in  openbmc-test-automation

Currently not an issue and no one is asking for this so we will close for now.


Fix issue:PDI-12463 and PDI-12464

http://jira.pentaho.com/browse/PDI-12463

@flatrixnet - I have a problem with this fix. You're triggering the modified flag when simply selecting the widget. Not sure I agree with this at all.

@mbatchelor in addition, the associated cases are assigned to Backlog, not to be merged until a Fix Version has been established :)

@mbatchelor - this must be done in order to inform the user that the file was modified. ( put the title of the KTR on bold )


fix(54085): Cannot navigate down object hierarchy if an interface is not directly implemented

Fixes #54085

This makes sense to me, but my intuitions around object-oriented expectations are quite bad.
@DanielRosenwasser @andrewbranch what do you think? @mjbvz points out that the new type hierarchy API in vscode could be a good fit for this too, but I don't think TS supports that yet, and might still want to improve goto implementation even when it does.


DA-4556: Update output model for git

Update output model for git

Signed-off-by: linonymous<EMAIL_ADDRESS>

You can merge anytime, or ping me to merge when ready. Once merged I'll build that version locally and check with a few repos.

Seems like it runs OK using the example script:
./scripts/example_run.sh:
2021-12-06 13:04:09: https://github.com/lukaszgryglicki/trailers-test fetching from 2015-01-01 00:00:00 +0000 UTC (64 threads)
2021-12-06 13:04:09: https://github.com/lukaszgryglicki/trailers-test fetching till 2022-01-01 00:00:00 +0000 UTC (64 threads)
2021-12-06 13:04:09: found 0 orphaned commits
2021-12-06 13:04:10: input processing(9/0/true)
2021-12-06 13:04:10: output processing(9/9/true)
2021-12-06 13:04:10: [{"connector":"git","connectorVersion":"0.1.1","source":"github","sha":"38165eecda3c01e17b47269e8a576103d8257efd","parentShas":["878e8678dec2f2bbcbb85b02eccafa6095b68c1b"],"repositoryURL":"","url":"https://github.com/lukaszgryglicki/trailers-test/commit/38165eecda3c01e17b47269e8a576103d8257efd","message":"Delete file action\n\nSigned-off-by: Łukasz Gryglicki \u003clukaszgryglicki@o2.pl\u003e","contributors":[{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"author","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"committer","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"signer","weight":1}],"sync_timestamp":"2021-12-06T13:04:10.148750683Z","authored_timestamp":"2021-03-25T17:03:30Z","committed_timestamp":"2021-03-25T17:03:30Z","shortHash":"38165e"},{"connector":"git","connectorVersion":"0.1.1","source":"github","sha":"d465d4c2c75e6cb36fb0596aede5364713586cf2","parentShas":["65690551576eea1052947433620a7a9bc3a899b3"],"repositoryURL":"","url":"https://github.com/lukaszgryglicki/trailers-test/commit/d465d4c2c75e6cb36fb0596aede5364713586cf2","message":"Non doc commit\n\nSigned-off-by: Łukasz Gryglicki \u003clukaszgryglicki@o2.pl\u003e","contributors":[{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"author","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"committer","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"signer","weight":1}],"sync_timestamp":"2021-12-06T13:04:10.148770397Z","authored_timestamp":"2021-03-25T08:14:36Z","committed_timestamp":"2021-03-25T08:14:36Z","shortHash":"d465d4"},{"connector":"git","connectorVersion":"0.1.1","source":"github","sha":"0e5e87e7fcda7b6f133fb969d88ae8d0c68e3533","repositoryURL":"","url":"https://github.com/lukaszgryglicki/trailers-test/commit/0e5e87e7fcda7b6f133fb969d88ae8d0c68e3533","message":"Initial commit","contributors":[{"identity":{"Email":"lgryglicki@cncf.io","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"author","weight":1},{"identity":{"Email":"noreply@github.com","FirstName":"GitHub","Source":"github"},"role":"committer","weight":1}],"sync_timestamp":"2021-12-06T13:04:10.148778515Z","authored_timestamp":"2021-03-25T08:50:52Z","committed_timestamp":"2021-03-25T08:50:52Z","shortHash":"0e5e87"},{"connector":"git","connectorVersion":"0.1.1","source":"github","sha":"878e8678dec2f2bbcbb85b02eccafa6095b68c1b","parentShas":["ec71bbb88cb677f8c5fbaf6962ade34c1348ed73"],"repositoryURL":"","url":"https://github.com/lukaszgryglicki/trailers-test/commit/878e8678dec2f2bbcbb85b02eccafa6095b68c1b","message":"Ne wtrailers test\n\nSigned-off-by: Łukasz Gryglicki<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity<EMAIL_ADDRESS>new identity \u003cnew-identity@mail.uv\u003e","contributors":[{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"author","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"committer","weight":1},{"identity":{"Email":"new-identity@mail.uv","FirstName":"new identity","Source":"github"},"role":"reporter","weight":1},{"identity":{"Email":"new-identity@mail.uv","FirstName":"new identity","Source":"github"},"role":"informer","weight":1},{"identity":{"Email":"new-identity@mail.uv","FirstName":"new identity","Source":"github"},"role":"co_author","weight":1},{"identity":{"Email":"new-identity@mail.uv","FirstName":"new identity","Source":"github"},"role":"approver","weight":1},{"identity":{"Email":"new-identity@mail.uv","FirstName":"new identity","Source":"github"},"role":"reviewer","weight":1},{"identity":{"Email":"new-identity@mail.uv","FirstName":"new identity","Source":"github"},"role":"signer","weight":1},{"identity":{"Email":"new-identity@mail.uv","FirstName":"new identity","Source":"github"},"role":"tester","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"signer","weight":1}],"sync_timestamp":"2021-12-06T13:04:10.148790182Z","authored_timestamp":"2021-03-25T10:19:04Z","committed_timestamp":"2021-03-25T10:19:10Z","shortHash":"878e86"},{"connector":"git","connectorVersion":"0.1.1","source":"github","sha":"0feccac2c7ae7dfb272a23d76c4cd471ab42b57d","parentShas":["d465d4c2c75e6cb36fb0596aede5364713586cf2"],"repositoryURL":"","url":"https://github.com/lukaszgryglicki/trailers-test/commit/0feccac2c7ae7dfb272a23d76c4cd471ab42b57d","message":"test PP\n\nSigned-off-by: Łukasz Gryglicki<EMAIL_ADDRESS>Unicron \u003cunicron@multiverse.uv\u003e","contributors":[{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"author","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"committer","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"signer","weight":1},{"identity":{"Email":"unicron@multiverse.uv","FirstName":"Unicron","Source":"github"},"role":"co_author","weight":1}],"sync_timestamp":"2021-12-06T13:04:10.14880209Z","authored_timestamp":"2021-03-25T09:07:35Z","committed_timestamp":"2021-03-25T09:07:51Z","shortHash":"0fecca"},{"connector":"git","connectorVersion":"0.1.1","source":"github","sha":"0012369253cf55c4c026229f629444abec9cf4e5","parentShas":["d465d4c2c75e6cb36fb0596aede5364713586cf2"],"repositoryURL":"","url":"https://github.com/lukaszgryglicki/trailers-test/commit/0012369253cf55c4c026229f629444abec9cf4e5","message":"test PP\n\nSigned-off-by: Łukasz Gryglicki \u003clukaszgryglicki@o2.pl\u003e","contributors":[{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"author","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"committer","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"signer","weight":1}],"sync_timestamp":"2021-12-06T13:04:10.148811237Z","authored_timestamp":"2021-03-25T09:07:35Z","committed_timestamp":"2021-03-25T09:07:35Z","shortHash":"001236"},{"connector":"git","connectorVersion":"0.1.1","source":"github","sha":"a5dc87fbb1357518a9a1ea19a533977fbc74c819","parentShas":["38165eecda3c01e17b47269e8a576103d8257efd"],"repositoryURL":"","url":"https://github.com/lukaszgryglicki/trailers-test/commit/a5dc87fbb1357518a9a1ea19a533977fbc74c819","message":"Missing dot\n\nSigned-off-by: Łukasz Gryglicki<EMAIL_ADDRESS>David Woodhouse<EMAIL_ADDRESS>and Tilman Schmidt<EMAIL_ADDRESS>David Woodhouse<EMAIL_ADDRESS>and Tilman Schmidt<EMAIL_ADDRESS>David Woodhouse<EMAIL_ADDRESS>and Tilman Schmidt<EMAIL_ADDRESS>Andi Kleen<EMAIL_ADDRESS>Andi2 Kleen2 \u003cak2@suse.de\u003e","contributors":[{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"author","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"committer","weight":1},{"identity":{"Email":"ak@suse.de","FirstName":"Andi Kleen","Source":"github"},"role":"co_author","weight":1},{"identity":{"Email":"ak2@suse.de","FirstName":"Andi2 Kleen2","Source":"github"},"role":"co_author","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"signer","weight":1}],"sync_timestamp":"2021-12-06T13:04:10.148816325Z","authored_timestamp":"2021-08-17T09:11:13Z","committed_timestamp":"2021-08-17T09:11:17Z","shortHash":"a5dc87"},{"connector":"git","connectorVersion":"0.1.1","source":"github","sha":"ec71bbb88cb677f8c5fbaf6962ade34c1348ed73","parentShas":["0feccac2c7ae7dfb272a23d76c4cd471ab42b57d","0012369253cf55c4c026229f629444abec9cf4e5"],"repositoryURL":"","url":"https://github.com/lukaszgryglicki/trailers-test/commit/ec71bbb88cb677f8c5fbaf6962ade34c1348ed73","message":"Merge branch 'main' of https://github.com/lukaszgryglicki/trailers-test","contributors":[{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"author","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"committer","weight":1}],"sync_timestamp":"2021-12-06T13:04:10.148829137Z","authored_timestamp":"2021-03-25T09:08:58Z","committed_timestamp":"2021-03-25T09:08:58Z","shortHash":"ec71bb"},{"connector":"git","connectorVersion":"0.1.1","source":"github","sha":"65690551576eea1052947433620a7a9bc3a899b3","parentShas":["0e5e87e7fcda7b6f133fb969d88ae8d0c68e3533"],"repositoryURL":"","url":"https://github.com/lukaszgryglicki/trailers-test/commit/65690551576eea1052947433620a7a9bc3a899b3","message":"Various trailers\n\nSigned-off-by: Łukasz Gryglicki<EMAIL_ADDRESS>Pavel Machek<EMAIL_ADDRESS>Adam Belay<EMAIL_ADDRESS>Adam Belay<EMAIL_ADDRESS>Dwaine Garden<EMAIL_ADDRESS>Andi Kleen<EMAIL_ADDRESS>David Woodhouse<EMAIL_ADDRESS>Rob Landley<EMAIL_ADDRESS>David Woodhouse<EMAIL_ADDRESS>Tilman Schmidt<EMAIL_ADDRESS>Hugh Dickins<EMAIL_ADDRESS>Rogier Wolff<EMAIL_ADDRESS>Luming Yu<EMAIL_ADDRESS>Heikki Orsila<EMAIL_ADDRESS>Arjan van de Ven<EMAIL_ADDRESS>Ingo Molnar<EMAIL_ADDRESS>Matthew Wilcox<EMAIL_ADDRESS>Andrew Morton \u003cakpm@osdl.org\u003e","contributors":[{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"author","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"committer","weight":1},{"identity":{"Email":"rob@landley.net","FirstName":"Rob Landley","Source":"github"},"role":"reviewer","weight":1},{"identity":{"Email":"rob@landley.net","FirstName":"Rob Landley","Source":"github"},"role":"tester","weight":1},{"identity":{"Email":"mingo@elte.hu","FirstName":"Ingo Molnar","Source":"github"},"role":"reviewer","weight":1},{"identity":{"Email":"mingo@elte.hu","FirstName":"Ingo Molnar","Source":"github"},"role":"tester","weight":1},{"identity":{"Email":"arjan@linux.intel.com","FirstName":"Arjan van de Ven","Source":"github"},"role":"reviewer","weight":1},{"identity":{"Email":"pavel@ucw.cz","FirstName":"Pavel Machek","Source":"github"},"role":"informer","weight":1},{"identity":{"Email":"luming.yu@intel.com","FirstName":"Luming Yu","Source":"github"},"role":"influencer","weight":1},{"identity":{"Email":"adam.belay@novell.com","FirstName":"Adam Belay","Source":"github"},"role":"reviewer","weight":1},{"identity":{"Email":"matthew@wil.cx","FirstName":"Matthew Wilcox","Source":"github"},"role":"reporter","weight":1},{"identity":{"Email":"DwaineGarden@rogers.com","FirstName":"Dwaine Garden","Source":"github"},"role":"informer","weight":1},{"identity":{"Email":"DwaineGarden@rogers.com","FirstName":"Dwaine Garden","Source":"github"},"role":"influencer","weight":1},{"identity":{"Email":"akpm@osdl.org","FirstName":"Andrew Morton","Source":"github"},"role":"resolver","weight":1},{"identity":{"Email":"lukaszgryglicki@o2.pl","FirstName":"Łukasz Gryglicki","Source":"github"},"role":"signer","weight":1},{"identity":{"Email":"abelay@novell.com","FirstName":"Adam Belay","Source":"github"},"role":"co_author","weight":1},{"identity":{"Email":"abelay@novell.com","FirstName":"Adam Belay","Source":"github"},"role":"signer","weight":1},{"identity":{"Email":"dwmw2@infradead.org","FirstName":"David Woodhouse","Source":"github"},"role":"reviewer","weight":1},{"identity":{"Email":"dwmw2@infradead.org","FirstName":"David Woodhouse","Source":"github"},"role":"informer","weight":1},{"identity":{"Email":"R.E.Wolff@BitWizard.nl","FirstName":"Rogier Wolff","Source":"github"},"role":"approver","weight":1},{"identity":{"Email":"ak@suse.de","FirstName":"Andi Kleen","Source":"github"},"role":"reviewer","weight":1},{"identity":{"Email":"hugh@veritas.com","FirstName":"Hugh Dickins","Source":"github"},"role":"informer","weight":1}],"sync_timestamp":"2021-12-06T13:04:10.148832727Z","authored_timestamp":"2021-03-25T07:52:54Z","committed_timestamp":"2021-03-25T07:52:58Z","shortHash":"656905"}]

Will now try to run on some huge repo to confirm no error/SEGfaults happen... will take some time. cc @1010sachin @linonymous

Processing full DevStats repo also worked, now will try korg :D

Korg also synced during the night, no issues:
root@darkstar:~/dev/LF-Engineering/insights-datasource-git# ls -l *.log
-rw-r--r-- 1 root root    6859706 Dec  6 14:09 git.log
-rw-r--r-- 1 root root<PHONE_NUMBER> Dec  6 16:56 korg.log


[FEATURE] Light/Dark Mode

Description
Hey Everyone👋!
I think there should be a switch to toggle between light And dark mode.
I'm willing to work in this issue if the maintainers are happy to assign me😀.
Screenshots
No response
Additional information
No response

Do you think something like on my website will work for this or do you want another kinda of design like a moon or something?
https://mogulchristmas.kendalldoescoding.gq/
There's a toggle between dark and light mode in the top right of the website.

Can I work on this issue.

Sure @VaibhavArora19

Hey I am a beginner with react so I wanted to ask that I can do this by manipulating DOM with javascript right.. like adding or removing css classes based on value that can be changed using useState or is there any other approach I should use?

@schmelto

@schmelto
I would suggest try to look for a standard approach for Prime react which we are using in this project. I found something like this not sure if it works https://stackoverflow.com/questions/68327342/how-can-one-have-a-theme-switcher-in-primereact
Maybe someone else can give some guidance.

Okay... I'll try this.

Hey!! Can you assign this issue to someone else I tried this method but did not get the specified result. I think someone much more experience in React should work on this issue as it requires theme changing in runtime.

@VaibhavArora19 no worries feel free to check out one of our other issues if you want :)

Hey @schmelto i would like to know if this issue is still open.?

Sure go for it @Dhruv-Gajjar

@schmelto i am really new to open source can you guide me a bit about in which file do i have to add this feature? It would be of great help.

@schmelto

I would suggest try to look for a standard approach for Prime react which we are using in this project. I found something like this not sure if it works https://stackoverflow.com/questions/68327342/how-can-one-have-a-theme-switcher-in-primereact
Maybe someone else can give some guidance.

@Dhruv-Gajjar maybe this helps also nur completely sure where and how to implement this

Hey! @schmelto I want to try this issue.So, can I work on this issue?

Hey @schmelto I would like to work on this issue.

can I also work on this issue ? would love to contribute in this issue

Hello! I tried implementing the toggle button for Dark and Light mode and it works well also passes all the test cases.
So if the maintainers allow i can make a pull request for the same.
Button is placed next to the version indicator.
ScreenShots of the Implementation:


change the best practices directory into just a single file

After we merged #407 #408 and #409, the only file left in the best_practices directory is the overview page. We should then remove the directory and rename best_practices/overview.md to best_practices.md.

Maybe we should also move the best practices chapter back to the top of the list? I'm now trying to rewrite the README / book front page and the flow of the story makes more sense with best practices on top...

Since there were no comments, I'm going ahead with this.


refactor: Improve performance for methods "formatByte" and "fromString"

Statistics for 1 000 000 bytes :

BytesUtils.formatByte : 17 ms VS 1000 ms => 98,3 %
BytesUtils.fromString : 35 ms VS  100 ms => 65,0 %

Thanks 👍


Negative RGB values

test case
When interpolating a color value, the output of the RGB often goes negative, resulting in invalid values.

I'm not sure of the effect you're trying to achieve using an elastic easing function on a color value, but this can not work.
Try using any other easing function (except the ...Back and ...Elastic ones), like linear or 'EaseOutQuad', and your color transition should works.

Thanks for the info! I would consider a console warning because easeOutElastic is the default easing function.

I was able to get it working with A-Frame: https://ngokevin.github.io/aframe-animation-component/basic/


Choose recaptcha source to cardknox

The purpose of this PR is to fix recaptcha not working in China country.
Add option Select Recaptcha source  to store configuration > cardknox.
Frontend google recaptcha render based on the selected source.

Can you resolve the code smells?

Please review it again. I removed unnecessary codes.

Can you resolve the code smells?

Please review it again. I removed unnecessary codes.

@mstein-ck, Can you please re-run the job for pass the auto run PHPUnit test?

Go to this URL: https://github.com/cardknox/magento2_cardknox/actions/runs/5210493531/job/14103574035
Click on mentioned icon, see screenshot: https://prnt.sc/aPZIeOCRl02v
Click on Re-run jobs button, see screenshot: https://prnt.sc/ef-ToYFqNIYZ
It will pass auto run PHPUnit test

Thanks


Right Clicked Context Menus

It would be nice to have a right clicked context menu of selected codes or files which can do:

Simplify
Improve performance
Add/Remove/Cleanup Comments
And so on.

Some of these now in code actions (see the lightbulp). Inline chat makes this also easier.


Revenant startup allocates

Somewhere in the SMP revenant startup code there is an allocation, which is (probably) forbidden.
It was the IST initialization that used memalign, which is now moved further down.
                AP 3 started at 0x4bb000
/home/gonzo/git/includeos/IncludeOS/src/../api/util/alloc_buddy.hpp:477:allocate
>>> Expects failed: ! is_taken()

	**** PANIC ****
CPU: 1, Reason: Expects failed: ! is_taken()
Heap is at: 0x942000 / 0x7fcebff  (diff=124308479)
Heap area: 5188 / 126582 Kb (allocated 4740 kb)
Total memory use: ~7% (9248768 of 134016000 b)
*** Found 0 plugin constructors:

*** Backtrace:
[0] 0x0000000000245a90 + 0x42e: os::panic(char const*)
[1] 0x000000000023c800 + 0x061: __expect_fail(char const*, char const*, int, char const*)
[2] 0x0000000000260fd0 + 0x0be: os::mem::buddy::Alloc<false>::Node_view::allocate(unsigned long)
[3] 0x0000000000260fd0 + 0x1e4: os::mem::buddy::Alloc<false>::Node_view::allocate(unsigned long)
[4] 0x0000000000260fd0 + 0x1e4: os::mem::buddy::Alloc<false>::Node_view::allocate(unsigned long)
[5] 0x0000000000260fd0 + 0x1e4: os::mem::buddy::Alloc<false>::Node_view::allocate(unsigned long)
[6] 0x0000000000260fd0 + 0x15d: os::mem::buddy::Alloc<false>::Node_view::allocate(unsigned long)
[7] 0x0000000000260fd0 + 0x15d: os::mem::buddy::Alloc<false>::Node_view::allocate(unsigned long)
[8] 0x0000000000260fd0 + 0x15d: os::mem::buddy::Alloc<false>::Node_view::allocate(unsigned long)
[9] 0x0000000000260fd0 + 0x15d: os::mem::buddy::Alloc<false>::Node_view::allocate(unsigned long)
[10] 0x0000000000260fd0 + 0x15d: os::mem::buddy::Alloc<false>::Node_view::allocate(unsigned long)
[11] 0x00000000002600c0 + 0x0b6: os::mem::buddy::Alloc<false>::allocate(unsigned long)
[12] 0x0000000000260010 + 0x07e: kalloc
[13] 0x00000000002606a0 + 0x074: sys_mmap(void*, unsigned long, int, int, int, long)

However, it still crashes.

Solved now, it was heap troubles after all!


[Bug Report] Does onnx-modifier support modification on scalar initializer?

I got an onnx with QuantizeLienar and DequantizeLinear nodes in it, and the scale of these nodes are scalar.
When I try to modify the scale initializer to a scalar value like below, the scale initializer becomes 0 in the downloaded modified onnx model.

modification process:

modified onnx model:

So I wonder if onnx-modifier support modification on scalar initializer. Thanks!

BTW, I tested the function parse_str2np here. The results below shows that the current version of onnx-modifier might not support scalar initializer modification.
print(parse_str2np('0.23', 'float32')
# array(0., dtype=float32)

print(parse_str2np('[0.23]', 'float32')
# array([0.23], dtype=float32)

@HYLcool This was really a bug and has been fixed. Thanks for reporting!


Inconsistent/broken narrowing of void

TypeScript Version:  3.5.1

Search Terms: void typeof undefined narrow use before assign
Code
// with strictNullChecks
const x2: void = undefined;
const x3: void = undefined;

if(typeof x2 === "undefined") {
    x2 // Error: Variable 'x2' is used before being assigned.
}

if(typeof x3 !== "undefined") {
    x3 // never. x3 should probably be void
}

// without strictNullChecks
const x2: void = undefined;

if(typeof x2 === "undefined") {
    x2 // x2 remains void here, not undefined.
}

if(typeof x2 !== "undefined" && x2 !== null) {
    x2 // x2 remains void here, rather than never.
}

Expected behavior:
Using x2 inside the first conditional in the strictNullChecks example should not error, as the variable absolutely was assigned to before use (whatever its type should be).
Also, the semantics around narrowing void should be consistent when strictNullChecks is on and when it's off. And, based on some of the comments I've seen about void's purpose, it seems like the semantics with strictNullChecks off are the right ones.
Actual behavior:
The use of x2 triggers an error, as mentioned.
And narrowing void is a no-op when strictNullChecks is disabled (i.e., it always results in void), whereas narrowing void can produce never  when strictNullChecks is enabled.
Playground Link:
With strictNullChecks: https://www.typescriptlang.org/play/index.html#code/PTAEHcEsBcAtQM7QE6QMbQHIFcA2uBhWAUzQGsEAoNAewDslQAPAJgC5QA3GyAE1AC8obHV7EAZpDrFeAbmr1GTAMwdufQcNESpM+ZUjiAFNACeAB2I1xzFoIFCARCLGTpvRwEpQAb0qgA21AQUABRZGQaZA4ANQBDVDiAI1xiUAByVnTQSARhBBlQJIkotOKpAHNQOIQESAr3ADpKAF9KA2MzS2tmZVAAQgdQZ203GS9ff0CVYLBpTmJkVqA
Without strictNullChecks: https://www.typescriptlang.org/play/index.html?strictNullChecks=false#code/PTAEHcEsBcAsHsCu1QGdoCdIGNoDlEAbQgYVgFNsBrVAKG3gDt1QAPAJgC5QA3eSACagAvKESMB5AGaRG5AQG5akKQApoATwAO5eFLbsRw0QCJxkmXIEmAlKADetUM4OgQrjOQC2AQ1mpefiEKTwAaUEZ4FHNpWXkAOloAX1plNU0dPVcAQmNQMwlYqxNQADJSnLzGIkI7RxdXdw5QT19-QMFQEPJwjB84cgxQOB9GCPIeQcSkoA

The only behavior I would consider a bug here is the wrong error message in the first if block. It is nonsense to declare, and more nonsense to inspect, a value of type void, so any weirdness around narrowing is sort of neither here nor there as long as an illegal operation isn't allowed.

It is nonsense to declare, and more nonsense to inspect, a value of type void

Isn't that precisely why narrowing should be a no-op? To be able to narrow out undefined and get to never (the if (typeof x3 !== "undefined") case)  seems to be the type system leaking one definition of void (its similarity to undefined) into another part of the system, where it will be both invalid at runtime (since the void value could be anything) and seems to violate the semantics of void that say "this thing should always be opaque" (and hence uninspectable).

I find that convincing. The problem with x3 narrowing to never is that you can then pass it to any function.
Probably the right answer is that in all cases, void shouldn't narrow at all.


Should the 1 billion row file be deterministic?

Currently it seems that the 1 billion rows file is generated randomly. Making the generation pseudorandom would make sharing the 1 billion row file a little easier (since it should always be the same), and would make sure that everyone is running exactly the same test.
Just using a Random with a predefined seed to pick out stations, and seeding a Random with the hash code of the city name to obtain measurements should do the trick.

I've now opened a PR that adds this functionality in #149. Also puts in a little bit of ground work to hopefully make #125 a bit easier to use generically.

The evaluation shouldn't use a public test file because that allows the contenders to tightly optimize for the exact keyset in that file. For example, tweaking the hash function to minimize collisions, having special cases for some keys, sizing everything exactly right for the keyset, etc.

If there's concern that some solution may just get unlucky with a given keyset, the winner can be determined by repeating the test with 2-3 different test files. I very much doubt that this would be a factor, given the large keyset size (10,000); more noise can be expected from all the environmental factors on the test machine.

I agree! I do not think that the current test-file should be shared or changed, but am asking for determinism so that it becomes a lot easier to compare/run on 1 billion row files that other contestants are using without requiring transmission of the entire data file.


merkle_block: add resource limit check during deserialization

Fixes #2606

I don't think this method is used except by applications implementing the p2p protocol (and I am not aware of any, at least not major ones) so I don't believe we need to bend over backward to contact or patch anybody.
But we should backport to all version back to 0.28 which is the oldest version I think is in wide use.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

19 of 19 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 83.834%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
19769

Relevant Lines:
23581

💛  - Coveralls

Fuzzed deserialization of MerkleBlock for 30 minutes so for with this PR. Will let it run overnight.

Fuzzing has passed for 14.5 hours now (on a 32-core machine).

Does that make it well and truly fu**ed?

Does that make it well and truly fu**ed?

It means that the fix works. (Though we may want to tighten it; I think MAX_VEC_SIZE is orders of magnitude larger than we need....but I also want something that's obviously sufficient so we can merge this quickly. We can tighten it later.)

Ugh, sorry man - that was a joke (I literally had "(joke)" after it at first and removed it. fuzzed == fu**ed and the other interpretation. Too smart for my own good :)

Oh, lol :) I missed the pun.


KeyCodes: Should copy the key code to clipboard

I modified the workflow to do that.
I actually expected the workflow to do that at first as it seems logical to quickly get a key code value for some key and move on.

I’d rather not. It’s an easy addition for those who want it, and some keys have more than one possible value.

I knew this sounded familiar. I already answered in https://github.com/vitorgalvao/alfred-workflows/pull/44.


Default settings for custom modal

I'm following the example for the custom modal, however, I am not sure how to set/use the default values for this scenario.
Given the example, the user will enter the answer to close the modal. However, what I would like is to use the BS defaults (with ESC being able to close the modal and/or clicking outside the modal).
Any guidance on how to enable closing the modal with ESC/clicking outside the modal?

The implementation is plugin specific of course but there are basic configuration details which are the keyboard close key and isBlocking ( for click ) which are set in the base modal-context.
Each modal has a context which is supplied when calling open, see context and open()
For Bootstrap, the events are handled in the modal-container component which is the container for the custom element you provide (see code), so it is handled for you.
then you call modal.open(Component, Context) the context parameter should hold the configuration for handling close keys and isBlocking
I custom modal demo in the demo app is invoked with context (see here) which instructs what to do for keyboard/clicks.
The context code:

export class AdditionCalculateWindowData extends BSModalContext {
    constructor(public num1: number, public num2: number) {
        super();
    }
}

As you can see, nothing much, just inherit the base modal context for bootstrap (which inherits the base modal context in general, that has control for isBlocking and keyboard)
Changing values on a new instance of AdditionCalculateWindowData is what you want:
let context = new AdditionCalculateWindowData(3,2);
context.isBlocking = true; // now its blocking.

modal.open(AdditionCalculateWindow, context);

Note not to confuse a context class with a context builder class.
A builder is just a fluent api for creating context's, so you can do things like:
context.isBlocking(true).keyboard(27)......

This is supplied for end users via drop ins (alert, prompt, confirm)

Wow, thanks for the great response. This does make things clearer for me.
In looking through your demo code, I see that the AdditionCalculatedWindowData does extend from BSModalContext so I would assume that keyboard: [27] and isBlocking=false is already set. However, neither of those will actually close the modal.
I guess my question is...is that a bug or is there another way to enable closing the modal when going the custom route?

No its not a bug, it's actually a feature , really :)
Every component (used in modal.open()) is able to control close/open actions, this is part of the interface.
So, in our case - AdditionCalculateWindow component is doing:
export class AdditionCalculateWindow implements ModalComponent<AdditionCalculateWindowData> {
    context: AdditionCalculateWindowData;

    public wrongAnswer: boolean;

    constructor(public dialog: DialogRef<AdditionCalculateWindowData>) {
        this.context = dialog.context;
        this.wrongAnswer = true;
    }

    onKeyUp(value) {
        this.wrongAnswer = value != 5;
        this.dialog.close();
    }

    beforeDismiss(): boolean {
        return true;
    }

    beforeClose(): boolean {
        return this.wrongAnswer;

beforeDismiss overrides the base implementation from ModalComponent (which is noop),  it always returns true - i.e: CANCEL the dismissal, so no matter what the settings are you can't close the modal.
However, every key press (onKeyUp) the correctness of the answer is checked and a close instruction is sent (to the DialogRef), now this call will trigger a beforeClose hook that will only close if false is returned, same as beforeDismiss, now if we have a wrongAnswer then we wont close... but else we will.
To sum up, there are 2 hooks available in a component sent to modal.open():

beforeDismiss
beforeClose

If they return true it will cancel the dismissal/close
I think too much options and advanced features creates a lot of confusion especially when there is no documentation...

Great! It all makes sense now. Documentation would have certainly helped but I think the API could possibly be clearer. shouldDismiss or shouldClose might be better named? Then the return value would need to switch in order to actually close/dismiss the modal.
Thanks for a great library!


Test JFRD as daemon with Java 1.8u172 and Java 1.8u272

Java Flight Recorder APIs are not present in Java1.8u172 and are present in Java1.8u272.
Expected:  JFRD fails to start recordings in target application environment running Java 1.8.u172.
Expected: JFRD successfully runs and reports data for target application running in Java1.8.u272.

Tested and JFRD as Daemon does successfully run and report data for target application running with jdk1.8.u272.
Tested and JFRD as Daemon does fail to start a recording in target application running with jdk1.8.u172.
I think the failure message can be improved. Currently, it is
[ForkJoinPool.commonPool-worker-1] INFO com.newrelic.jfr.daemon.JFRUploader - JFR Uploader is ready to send events.
[main] INFO com.newrelic.jfr.daemon.app.MBeanConnectionFactory - Connection to remote MBean Sever complete.
[main] INFO com.newrelic.jfr.daemon.app.JmxJfrRecorder - Error starting recording. Backing off 0 millis.
[main] INFO com.newrelic.jfr.daemon.app.JmxJfrRecorder - Error starting recording. Backing off 1000 millis.
[main] INFO com.newrelic.jfr.daemon.app.JmxJfrRecorder - Error starting recording. Backing off 2000 millis.
...
<...and so on...>

The recording fails because of a javax.maanagement.InstanceNotFoundException is thrown when this is invoked.
https://github.com/newrelic/newrelic-jfr-core/blob/7f6c163953cf6aae6336297827efe717ec82f2b3/jfr-daemon/src/main/java/com/newrelic/jfr/daemon/app/JmxJfrRecorderFactory.java#L81
This exception seems specific enough to match on and shutdown JFRD entirely with some logging like
Couldn't find Java Flight Recorder MBean. Is the target's jdk version > 1.8u172? and also log the exception.
@kittylyst  Would there be any issues with this shutdown approach?

Done. Created a follow up "nice to have" #162


Readthedocs links are broken

Looks like the readthedocks links in the readme don't exist any more? likewise for the links on https://cosima.org.au/index.php/2017/06/26/cosima-cookbook/

I think all the ones pointing to recipes should be fine, although the cookbook-specific documentation with the badge at the bottom of the README and in that blog post probably haven't seen much love for a while!


Bring Specified Embeddings

[x] I checked the documentation and related resources and couldn't find an answer to my question.

Your Question
what is unclear to you? What would you like to know?
Even though I specified an embeddings model, the error message indicates that I used a different embeddings model than the one I specified?
Code Examples
This community speaks code. Share your code snippets to help us understand your question better.
from datasets import load_dataset
from ragas.metrics import context_precision, answer_relevancy, faithfulness
from ragas import evaluate

from langchain_openai.chat_models import ChatOpenAI
from langchain_openai.embeddings import OpenAIEmbeddings

malayalam_dataset = load_dataset("explodinggradients/amnesty_qa", "malayalam")

llm = ChatOpenAI(model="gpt-4o-mini")
embeddings = OpenAIEmbeddings(model="text-embedding-3-small")

result = evaluate(
    malayalam_dataset["eval"],
    metrics=[faithfulness, answer_relevancy],
    llm=llm,
    embeddings=embeddings,
)

result

Additional context
Anything else you want to share with us?
Error Message: Exception raised in Job[5]: PermissionDeniedError(Error code: 403 - {'error': {'message': 'Project ... does not have access to model text-embedding-ada-002', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}})

I still don't understand what modifications you made to the example code I provided. Could you explain further? @dosu

I understand what you mean, and this is also what I did in the example code. The embeddings parameter is explicitly passed to the evaluate function. However, I still encountered this error, which is why I raised this issue. @dosu.


Let embedders create the service isolates on a thread of their choosing.

cc @a-siva @rmacnak-google


Add CUDA Course (changes made)

What does this PR do?
Add resource(s)
For resources
Description: It is a CUDA course for Parallel and High Performance Computing by FreeCodeCamp of duration 12 hours.
Why is this valuable (or not)?
It offers accessible, up-to-date content on GPU programming, allowing learners to harness the power of parallel computing for performance-intensive tasks, which is essential for fields like AI, gaming, and scientific computing.
How do we know it's really free?
YouTube is free!
For book lists, is it a book? For course lists, is it a course? etc.
It is a course.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


Google Maps Plugin

https://pypi.org/project/flask-googlemaps/

https://www.patrick-wied.at/static/heatmapjs/plugin-gmaps-layer.html

Elliot solved this


Missing Guide for "Writing a Custom Local Authenticator" in IS 7.0

Is your suggestion related to a missing or misleading document? Please describe.
The documentation for IS version 7.0 lacks a guide or detailed documentation on how to write a custom local authenticator.
Previous docs: https://is.docs.wso2.com/en/latest/references/extend/federation/write-a-custom-local-authenticator/

The configuration menthion in comment [1] has to be added to the documentation when this page is constructed.
[1] https://github.com/wso2/product-is/issues/19001#issuecomment-1900083668


Issues with pyodbc installation in venv python 3.10

I have these environment and i would like to install pyodbc to work with accdb and mdb files.

Python: 3.10
OS: windows 10 64bit

I have created a virtual environment venv where i 'm trying to install the pyodbc as
python -m pip install pyodbc
Here it gives an error as:
Collecting pyodbc
  Using cached pyodbc-4.0.32.tar.gz (280 kB)
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for pyodbc, since package 'wheel' is not installed.
Installing collected packages: pyodbc
  Running setup.py install for pyodbc ... error
  error: subprocess-exited-with-error

  × Running setup.py install for pyodbc did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      running install
      running build
      running build_ext
      building 'pyodbc' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

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

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

I have verified that MS Visual C++ is already installed and but it is still giving an error.
could you please help me out to solve this on priority ?

Duplicate of #981

Are these unofficial wheels as a workaround (https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyodbc)) safer ? any other work around ? and when can we expect this to be support python 3.10?

if my python downgrades to 3.7 would this be worked out ?

if my python downgrades to 3.7 would this be worked out ?

Yes, there are Windows wheels for Python 3.7 on PyPI.

I hope this may help you https://stackoverflow.com/questions/71295840/python-pip-error-legacy-install-failure

I downgraded python to 3.7. I ran the command python application.py and still error ModuleNotFoundError: No module named 'pyodbc'. How can I fix it?
This is my error
<<
(venv) testadmin@linux-vm-west2:~/testadmin$ python application.py

Serving Flask app 'FlaskExercise' (lazy loading)
Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
Debug mode: on
Running on http://localhost:5555 (Press CTRL+C to quit)
Restarting with stat
Debugger is active!
Debugger PIN: 239-286-056
<IP_ADDRESS> - - [02/Apr/2022 13:59:31] "GET / HTTP/1.1" 500 -
Traceback (most recent call last):
File "/home/testadmin/venv/lib/python3.8/site-packages/sqlalchemy/util/_collections.py", line 1008, in call
return self.registry[key]
KeyError: <greenlet.greenlet object at 0x7efc3a06cbf0 (otid=0x7efc3a0803c0) current active started main>

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/testadmin/venv/lib/python3.8/site-packages/flask/app.py", line 2095, in call
return self.wsgi_app(environ, start_response)
File "/home/testadmin/venv/lib/python3.8/site-packages/flask/app.py", line 2080, in wsgi_app
response = self.handle_exception(e)
File "/home/testadmin/venv/lib/python3.8/site-packages/flask/app.py", line 2077, in wsgi_app
response = self.full_dispatch_request()
File "/home/testadmin/venv/lib/python3.8/site-packages/flask/app.py", line 1525, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/testadmin/venv/lib/python3.8/site-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/home/testadmin/venv/lib/python3.8/site-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/testadmin/FlaskExercise/views.py", line 12, in home
animals = models.Animal.query.all()
File "/home/testadmin/venv/lib/python3.8/site-packages/flask_sqlalchemy/init.py", line 552, in get
return type.query_class(mapper, session=self.sa.session())
File "/home/testadmin/venv/lib/python3.8/site-packages/sqlalchemy/orm/scoping.py", line 47, in call
sess = self.registry()
File "/home/testadmin/venv/lib/python3.8/site-packages/sqlalchemy/util/collections.py", line 1010, in call
return self.registry.setdefault(key, self.createfunc())
File "/home/testadmin/venv/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 4205, in call
return self.class(**local_kw)
File "/home/testadmin/venv/lib/python3.8/site-packages/flask_sqlalchemy/init.py", line 176, in init
bind = options.pop('bind', None) or db.engine
File "/home/testadmin/venv/lib/python3.8/site-packages/flask_sqlalchemy/init.py", line 998, in engine
return self.get_engine()
File "/home/testadmin/venv/lib/python3.8/site-packages/flask_sqlalchemy/init.py", line 1017, in get_engine
return connector.get_engine()
File "/home/testadmin/venv/lib/python3.8/site-packages/flask_sqlalchemy/init.py", line 594, in get_engine
self._engine = rv = self._sa.create_engine(sa_url, options)
File "/home/testadmin/venv/lib/python3.8/site-packages/flask_sqlalchemy/init.py", line 1027, in create_engine
return sqlalchemy.create_engine(sa_url, **engine_opts)
File "", line 2, in create_engine
File "/home/testadmin/venv/lib/python3.8/site-packages/sqlalchemy/util/deprecations.py", line 309, in warned
return fn(*args, **kwargs)
File "/home/testadmin/venv/lib/python3.8/site-packages/sqlalchemy/engine/create.py", line 560, in create_engine
dbapi = dialect_cls.dbapi(**dbapi_args)
File "/home/testadmin/venv/lib/python3.8/site-packages/sqlalchemy/connectors/pyodbc.py", line 43, in dbapi
return import("pyodbc")
ModuleNotFoundError: No module named 'pyodbc'
<IP_ADDRESS> - - [02/Apr/2022 13:59:31] "GET /?debugger=yes&cmd=resource&f=style.css HTTP/1.1" 304 -
<IP_ADDRESS> - - [02/Apr/2022 13:59:31] "GET /?debugger=yes&cmd=resource&f=debugger.js HTTP/1.1" 304 -
<IP_ADDRESS> - - [02/Apr/2022 13:59:32] "GET /?debugger=yes&cmd=resource&f=console.png HTTP/1.1" 304 -
<IP_ADDRESS> - - [02/Apr/2022 13:59:32] "GET /?debugger=yes&cmd=resource&f=console.png HTTP/1.1" 304 -

Are you sure you're using Python 3.7 ? Those paths say 3.8.

https://stackoverflow.com/a/19549035/2144390

Checked Everything including python path, version , dependencies etc. Nothing works.

Here
https://docs.microsoft.com/en-us/azure/databricks/kb/libraries/install-pyodbc-on-cluster
In Set up solution in a single notebook


fix: sidebar bottom section design change

Description
This PR updates the design of bottom section in sidebar where the version of appsmith and release time.
PR fixes following issue(s)
Fixes #24855
Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

New feature (non-breaking change which adds functionality)

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[ ] Manual
[ ] Jest
[ ] Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

/build-deploy-preview recreate=true

Issues in the PR:

Font size has to be 12 px as per Notion & figma.
Font colour has to be ##6A7585

/ok-to-test

/build-deploy-preview recreate=true

/build-deploy-preview recreate=true

if we go with font size as 12px, there is a line break that does not look right.

/build-deploy-preview recreate=true

/build-deploy-preview recreate=true

We have few discrepancies with the padding, width and height, Apart from that Font size, color and background color are fine.
QA completed. Moving to done.

/ok-to-test


Update SITCOMTN-092 with notebooks containing analysis for BLOCK-T227

The idea of merging this PR is that we can work with short interactions and that I can add a tag.


Add Support for Normalizer in SimpleField and SearchableField

Description
Adds support for normalizers in SimpleField and SearchableField in FieldBuilder.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-search-documents


Make adjustments to Fraxlend Adaptors as per Feedback from Strategists

Core changes:
This PR encompasses small adjustments that were requested from strategists after initial deployment and further assessment of the Fraxlend adaptors developed this year.  It revolves around the development and testing features such as:

Changing logic within repay function in debt adaptors to use toBorrowShares() logic from Fraxlend logic instead to toAssetShares().
Add _maxAvailable() style logic to the removeCollateral() function within CollateralAdaptors.

TODOs:

[x] Make code changes
[x] Test code
[ ] PR Review
[ ] Finalize

@crispymangoes this PR is ready for review. Thanks!


Allow url patterns from other origins

Hi there,
The issue I'm facing is actually with the ember-service-workers-cache-fallback package, but the utils originate here.
Currently, all the patterns provided in the EmberApp configuration are mapped with createUrlRegEx from the ember-service-workers package. As part of createUrlRegEx the pattern is then passed through createNormalizedUrl which, by default, prepends the url with the baseUrl of self.location. This effectively means it will only cache responses from the same origin.
In some projects, and in development an api call will be made to a different origin but in this case it cannot be cached with this addon.
Would we be able decouple createUrlRegEx from createNormalizedUrl so there is less restriction on api response caching?
Let me know if you would not like this to happen otherwise, I'm happy to submit a PR for it.
Cheers!
Dylan

@dylanitorium afaict baseUrl is only used when the URL is relative, with an absolute URL it should be ignored. See https://developer.mozilla.org/en/docs/Web/API/URL/URL.
I have this in an app, and this is working fine:
'esw-cache-fallback': {
      patterns: [
        // cache api requests, excluding auth (handled separately)
        `${apiHost}/api/(?!auth-ping)(?!logout)(?!login)(?!authcode).+`
      ]
    }

Oh right, that makes total sense! It didn’t occur to me to just put the host into the patterns. I’ll give that a try.
Thanks!


Add Default supertrait for Message

Since prost-derive already implements Default for the messages, I think we should also require Default to be implemented for implementors of Message.

OK, I found another way of solving my problem, thanks anyway!


Refactor API routes with namespace

Purpose or Intent
Uses namespace to DRY up/simplify the API routes a bit.
@miq-bot add-label api, refactoring
@miq-bot assign @abellotti

This is fine, though I'm seeing an issue where GET /api/vms/10anything gives if api/vms/10 instead of a 404, but that may have been introduced with compressed id, /cc @isimluk

I am not sure it was introduced with compressed ids. My tests on older appliance show that we haven't been returning 404 in these cases.

thanks for checking (and fixing).  I was hitting a 5.5 appliance and got the 404, we should check that it is ok on Darga though.


Build a ssh proxy with docker-gen like nginx-proxy?

Is it possible (or planned) to build a ssh or ftp proxy like done with nginx-proxy?

I have no plans to build that.


updated with off-chain indexing example

Companion PR to: https://github.com/substrate-developer-hub/recipes/pull/435. Merge this only after the recipes PR is merged.

@sacha-l @NukeManDan This is the companion PR linking to the Recipes off-chain indexing from knowledge base. Should be good to merge.


add unit converter in bmi calculator input

in this project as input can be only in kg and cm we need to make it so as many unit can be chosen by users.

i have created a PR for the same please verify .


The icon is incorrect and the tooltip is "Focus this Group" after focusing a group on M1

OS: M1
Azure Resource Extension Build Version: 20220505.12 (unified)
Regression: 20220503.22
Repro Steps:

Click the "Focus this Group" icon to focus a group -> Mouse over to the icon.
Check whether the icon is correct and the tooltip is "Unfocus Group" or not.

Expect:
The icon is correct and the tooltip is "Unfocus Group".

Actual:
The icon is incorrect and the tooltip is "Focus this Group".

More Info:
This issue does not reproduce on Linux/Windows OS.

Fixed by https://github.com/microsoft/vscode-azureresourcegroups/pull/236


Next.js example

Thanks for sharing these. I've tried using various of the examples provided in a Next.js application, I was hoping to use Apollo but failed to get it running smoothly. It would be useful to see some examples if you have the time to do that :)

I think the issues I was seeing was when using Apollo, and more complex config with transforms. I tried again this morning and I was able to get data with the simple version, but lots of critical errors in console the moment I make it slightly more complex.

@matthewlilley Could you share your example that has those errors?

For context, we have around 15 identical subgraphs across different networks for our exchange. I'd like to query them all in one, with at least some simple transformations like prefixing ETHEREUM_, MATIC_, etc... and later would like to apply some schema stitching too. The basic example works great, but since they're the same I need transforms. I'd also like to use Apollo on the frontend so I can continue to get fresh data after the initial hydration from the server.

Yeah, sure. Let me throw it up.

@matthewlilley Could you share your example that has those errors?

Yeah, sure. Let me throw it up.

You'll want to pull this branch
https://github.com/sushiswap/interface/tree/feature/analytics

pnpm i
pnpx turbo run dev
pnpx turbo run dev --scope=analytics

This isn't using Apollo at the moment, and I get the data, but see a lot of these critical dependency warnings in console.
I'll try wiring up Apollo in the meantime, I never managed to get this working with any kind of transforms, I expect the simple version will work fine.

Even though this was working in development with the errors, I'm seeing this when building in production.

Turns out this build error is because Node 16 is required and Vercel only supports Node 14.

#34

It would be good to see a Next.js example with Apollo & urlq, right now both fail with the common errors you see with isomorphic web frameworks, e.g. "Module not found: Can't resolve 'fs'".

Seems to always be issues like this when the generated library is imported on the client. I've only been able to make use on the server so far. I've never had a problem with Apollo in Next.js before so assume this is a graphprotocol/client or graphqlmesh issue.

It is not this project specifically but GraphQL Mesh which Graph Client heavily uses under the hood. We deployed one of our example projects that use GraphQL Handler just like GraphQL Client to Vercel;
Logs; https://vercel.com/theguild/graphql-mesh/A3MASwMEGhpWbwj4scpPy6t1bhqj
Working endpoint; https://graphql-mesh.com/api/covid
Project; https://github.com/Urigo/graphql-mesh/tree/master/website/src/pages/api/covid

Hi there! With the recent upgrades in graph-client internals, we can see that running it in NextJS works fine :)
Please try<EMAIL_ADDRESS>and let me know if we need to reopen this issue. Also we updated the examples here: https://github.com/graphprotocol/graph-client/tree/main/examples/nextjs

Fixed in:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
PR: https://github.com/graphprotocol/graph-client/pull/50
release notes: https://github.com/graphprotocol/graph-client/pull/51

fyi latest release 3.0.3 has same issue, downgrading to 3.0.1 fixes it

Could you create a new issue with a reproduction?


Trojan? or false positive?

I just downloaded Atom 1.45 (for Mac) from official website and after scanning it I found 1 trojan (Trojan.Win32.IRCBot.l3vP) in this file "Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework":
https://www.virustotal.com/gui/file/0c51ead13363760705e6632c65afeedd92bef6ace3ef716b7170cd8f8ab5f4ed/detection

A single random antivirus detected it? It is obviously a false positive.

Yes, probably, I'm closing it.


[Snyk] Security upgrade org.graalvm.sdk:graal-sdk from <IP_ADDRESS> to 22.1.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

pom.xml

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

696/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 7.5
Access Restriction Bypass SNYK-JAVA-ORGGRAALVMSDK-2767964
org.graalvm.sdk:graal-sdk:  <IP_ADDRESS> -> 22.1.0
No
Proof of Concept

479/1000  Why? Has a fix available, CVSS 5.3
Denial of Service (DoS) SNYK-JAVA-ORGGRAALVMSDK-2769614
org.graalvm.sdk:graal-sdk:  <IP_ADDRESS> -> 22.1.0
No
No Known Exploit

589/1000  Why? Has a fix available, CVSS 7.5
Information Exposure SNYK-JAVA-ORGGRAALVMSDK-2769618
org.graalvm.sdk:graal-sdk:  <IP_ADDRESS> -> 22.1.0
No
No Known Exploit

479/1000  Why? Has a fix available, CVSS 5.3
Improper Input Validation SNYK-JAVA-ORGGRAALVMSDK-2769620
org.graalvm.sdk:graal-sdk:  <IP_ADDRESS> -> 22.1.0
No
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Closing - GraalVM must be in sync with what Quarkus uses.


Nerfstudio colab?

Hello! Interested in using this in a workshop, is there a working google colab for this? Seems to have some issues with the Nerfstudio colab. Cheers

Hi, we don't have a working colab for this. From what I understand, the nerfstudio colab may not be working either, so unfortuntaely there are no plans currently to set up a colab for this paper.


Fix for issue #5 - don't require a connection where it's not needed

Desired Outcome
Fixes issue #5.
If there was no Conjur connection defined (on the project level), the builds were failing even though they didn't use any parameters referring to any Conjur instance. As a result, if the Conjur plugin was enabled, all the projects (or the _Root) project needed a Conjur connection defined, and all builds were creating a connection when starting, no matter if they needed it or not.
Also note that in some cases the project or TC server administrator does not want some projects/builds to access Conjur at all - this fix makes this scenario possible.
Implemented Changes
No new code was added. Instead, I tried to simplify existing where possible, to provide more descriptive variable names, to make imports more specific, and to get rid of maven warnings.
The crucial fix is the one in the ConjurEnvParameterReplacer class (previously ConjurBuildFeature) - the check for existence of any Conjur-related parameters in a build is performed before trying to access the Conjur connection parameters, not after it: here, the if {... } block is only moved a few lines above.
Connected Issue/Story
Resolves #5, which is a blocker for even validating the plugin on a subproject on an existing TeamCity instance. Before the fix, the only way to run (or even test) this plugin was to create the connection on the Root project and/or on every single subproject.
Definition of Done
Changelog

[x] This PR does not include user-facing changes and doesn't require a
CHANGELOG update

Test coverage

[x] The changes in this PR do not require tests

Documentation

[x] This PR does not require updating any documentation

Behavior

[x] No behavior was changed with this PR (it's just fixing the behavior so it does what the user expects).

Security

[x] There are no security aspects to these changes (strictly speaking, a comment in the code highlights the existence of #7 - fixing it will be the next step)

@jtuttle, may I ask for a review this PR please?

@pe-tr Took a quick glance and it looks great, thanks for the fix!


setStateHandler Functions

Hi,
is there a way to  call functions with values like:
button1.setButtonStateFunction(buttonstate(i)).
So i can use one state function for different buttons?
All the best and love
Adrian

Hey Adrian,
you can assign the same callback function for different buttons.
Currently you cannot pass additional parameters to the callback.
But all callback include a reference to the source button. This allows you to differentiate between the buttons.
See MultiHandlerTwoButtons.
Is this what you had in mind?


chore: bdd-nh-1586645151 to 0.0.1

chore: Promote bdd-nh-1586645151 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Update latest episodes please

Hi Howard,
Can you update the latest episodes of 2023?
Thanks :)

I usually do this a few times a year--last time it looks like was in February

Hi Howard, noted on this. Does it take a lot of time if you update new episodes?


Fix fuzz provenance

I'm pretty sure this is working as is, I added the loop below to finish everything, not just the commit we create explicitly. Squash commit would almost certainly fail if something was left open, as it was before my change


Change udpa renaming workaround to not compile the same archive twice

Commit Message: Change udpa renaming workaround to not compile the same archive twice
Additional Description: I copied the prior workaround into a different build environment and it caused linker errors in one subset of the space, which made it clear that the repo was downloaded and compiled twice in the bazel cache under different paths. This change fixes that.
Risk Level: None - if it builds it's better.
Testing: If it builds it ships.
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

/retest


Bump version of sota-tools

This fixes a build error on Ubuntu.

You can build it before approving it too :)

In fact, surely that's the preferred process :D

Successful build. New image appears in Garage.


update to doc to make copy and past easier and to add more info

👀

Oops, just one more fix @R-Lawton


add correlation calculation and add test

[x] Tests added / passed
[x] Passes black dask / flake8 dask

PR resolves https://github.com/dask/dask/issues/4828

@TomAugspurger, would you have a chance to review?

Looks reasonable @quasiben. Can you add corr to the DataFrame API docs?

Yup yup, should've included that before.

@TomAugspurger, could you please take another look?

could anyone explain (1 sentence is enough) how the tests are being defined in this PR (or dask)? looking at test_groupby.py I don't see any example that would correspond to my expected usage.

Agg Funcs (sum/mean/min/co) are defined here: https://github.com/dask/dask/blob/2acc4c7f3ba16bdd250490243b433791cadab0bd/dask/dataframe/tests/test_groupby.py#L19-L41
This PR add corr to that list.  The list is used in many of the functions agg test functions like:
https://github.com/dask/dask/blob/2acc4c7f3ba16bdd250490243b433791cadab0bd/dask/dataframe/tests/test_groupby.py#L1176

Thanks @quasiben!


Update nfs-comparison.md

Why
Azure files NFS is GA. ref https://azure.microsoft.com/en-us/updates/azure-files-nfs-ga/
What
Updated.
(Some of the documentation has already been updated. ref https://github.com/MicrosoftDocs/azure-docs/commit/6a637112d6a5af7acd1d654faa6161aa5d236157 )

@koudaiii : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@koudaiii Thanks for reaching out, we appreciate it! This change has already been merged, separately. So I'll close this PR out.
#please-close

@roygara Thank you for reply. 😃  Ok, I deleted this branch :)


ci: Enable auto-approval of pull requests

This allows enforcing branch protection rules, even as a
solo developer.

LGTM


Preview pane classnames are different when CMS is built so styles are getting used

Describe the bug
When I work locally on the CMS the classnames are the same as the classnames I use for my preview template but when I push to GitHub and re-deploy the site, the classnames are uglified and obviously don't match the classnames I have in my css. I use css modules but it looks like the css is loading correctly in the cms.css file. I assume the uglified classnames are because of emotion? is there a way to load my css/scss into the preview template with emotion?
Expected behavior
That the classnames would stay the same?
Screenshots

Applicable Versions:

Netlify CMS version: 2.11.14
Git provider: GitHub
OS: MAC OS
Browser version chrome 79

Node.JS version: 10.16.3

CMS configuration
backend:
  #name: proxy
  name: git-gateway
  #proxy_url: http://localhost:8081/api/v1
  branch: master

media_folder: src/assets/images
public_folder: images

collections:
  - name: pages
    label: Pages
    files:
      - name: about
        label: About
        file: "src/cms/about.md"
        fields:
          - { name: "templatekey", label: "Template Key",  widget: "hidden", default: "about-page" }
          - { name: path, label: Path, widget: "hidden" }
          - { name: title, label: Title }
          - name: team
            label: Team
            widget: list
            allow_add: true
            fields:
              - { name: name, label: Name, widget: string }
              - { name: description, label: Description, widget: string }
              - { name: image, Title: Image, widget: "image", required: false}
      - name: home
        label: Home
        file: "src/cms/home.md"
        fields:
          - { name: "templatekey", label: "Template Key",  widget: "hidden", default: "about-page" }
          - { name: path, label: Path, widget: hidden }
          - { name: title, label: Title }
          - { name: subtitle, label: Subtitle }
          - { name: mainImage, label: "Main Image", widget: image, hint: "Image is not displaying correctly here but it does work on the actual site if you change the image"}
          - name: topics
            label: Topics
            widget: list
            fields:
              - { name: heading, label: Heading }
              - { name: body, label: Body, widget: markdown }
              - { name: image, label: "Background Image", widget: image }
          - { name: stepsTitle, label: "Steps Title" }
          - { name: stepsSubtitle, label: "Steps Subtitle" }
          - name: steps
            label: Steps
            widget: object
            fields:
              - { name: step1, label: "Step 1" }
              - { name: step2, label: "Step 2" }
              - { name: step3, label: "Step 3" }

gatsby-config
var netlifyCmsPaths = {
  resolve: `gatsby-plugin-netlify-cms-paths`,
  options: {
    cmsConfig: `/static/admin/config.yml`,
    enableIdentityWidget: true,
  },
}

module.exports = {
  //pathPrefix: `/mygatsby`,
  siteMetadata: {
    title: 'Fortune Foodz',
    author: 'Lucas Albano',
    description: 'Sanitation & Food Service Consultants',
    menuLinks: [
      {
        name: 'Home',
        link: '/',
      },
      {
        name: 'About',
        link: 'about',
      },
    ],
  },
  plugins: [
    'gatsby-plugin-sass',
    'gatsby-plugin-react-helmet',
    {
      resolve: `gatsby-plugin-manifest`,
      options: {
        name: 'fortune-foodz',
        short_name: 'fortune',
        start_url: '/',
        background_color: '#663399',
        theme_color: '#663399',
        display: 'minimal-ui',
        icon: 'src/assets/images/ff-logo.png', // This path is relative to the root of the site.
      },
    },
    {
      resolve: 'gatsby-source-filesystem',
      options: {
        path: `${__dirname}/src/assets/`,
        name: 'images',
      },
    },
    {
      resolve: 'gatsby-source-filesystem',
      options: {
        path: `${__dirname}/src/`,
        name: 'cms',
      },
    },
    'gatsby-transformer-sharp',
    'gatsby-plugin-sharp',
    {
      resolve: 'gatsby-transformer-remark',
      options: {
        plugins: [
          netlifyCmsPaths,
          'gatsby-remark-relative-images',
          {
            resolve: 'gatsby-remark-images',
            options: {
              // It's important to specify the maxWidth (in pixels) of
              // the content container as this plugin uses this as the
              // base for generating different widths of each image.
              maxWidth: 2048,
            },
          },
        ],
      },
    },
    {
      resolve: 'gatsby-plugin-html-attributes',
      options: {
        lang: 'en',
      },
    },
    'gatsby-plugin-offline',
    {
      resolve: 'gatsby-plugin-netlify-cms',
      options: {
        modulePath: `${__dirname}/src/cms/cms.js`,
        htmlFavicon: `src/assets/images/ff-logo.png`
      },
    },
    'gatsby-plugin-netlify'
  ],
}

cms.js
import CMS from 'netlify-cms-app'
import AboutPagePreview from './preview-templates/AboutPagePreview';
import HomePagePreview from "./preview-templates/HomePagePreview";
import "../assets/scss/main.scss"

CMS.registerPreviewTemplate('about', AboutPagePreview);
CMS.registerPreviewTemplate('home', HomePagePreview);

preview template
import React from 'react';
import PropTypes from 'prop-types';
import AboutPageTemplate from "../../templates/AboutPageTemplate";
import About from "../../pages/about";

class AboutPagePreview extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            images: {}
        }

    }
    componentDidMount() {
        const entryTeam = this.props.entry.getIn(['data', 'team']);
        const team = entryTeam ? entryTeam.toJS() : [];

        console.log("team: ", team);
        for(let i = 0; i < team.length; i++) {
            this.props.getAsset(team[i].image).then(value => {
                this.setState({
                    images: {
                        ...this.state.images,
                        [team[i].name] : value
                    }
                }
                )
            })
        }
    };

    render(){
        const { entry, widgetFor } = this.props;
        const entryTeam = this.props.entry.getIn(['data', 'team']);
        const team = entryTeam ? entryTeam.toJS() : [];
        return (
            <>
            {team ? team.map(member => {
                return (

{this.props.entry.getIn(['data', 'title'])}

                        <AboutPageTemplate
                            image={this.state.images[member.name]}
                            description={member.description}
                            name={member.name}
                        />

                )
                }) : null}
                </>
        )

    }
}

AboutPagePreview.propTypes = {
    entry: PropTypes.shape({
        getIn: PropTypes.func,
    }),
    widgetFor: PropTypes.func,
    getAsset: PropTypes.func
};

export default AboutPagePreview

Closing Thoughts
Strangely, when I have the dev tools open and do an "Empty cache and hard reload" the classnames change to my classnames and the styles work! but then if I do a regular reload, the styles go back to the old classnames 😢
here is a link to the repo here
that repo is private so here is a link to a repo with the same issues thats public here
If it's not already apparent, this is my first posting of an issue (like evar) so if I need to give more examples or explanation Ill be happy to do so. And if there is somewhere more relevant that i can post this I'm all ears too! Thanks in advance, so far I've been loving my experience with Netlify and their cms!

I had a similar problem with a site deployed on netlify.
The first time I deployed it the previews works fine, but after that if I modified the previews and re-deploy the site, It got broken and the class names loaded where similar to yours.
The only way I get it to look fine was to create a new site from zero and get the latest changes deployed.

Thanks for the reply @tomrndom !
Could you elaborate on what you mean by "create a new site from zero" ? Do you mean you added the site again to netlify?

Yes, create a new site on netlify using the same repository.


Use the right memory ordering in SafeNumeric operations

compare_exchange_weak is a read-modify-write operation. With the former std::memory_order_release we were only imposing memory ordering on the write while keeping the read relaxed. In order for the operation to be trustworthy we need the read to use acquire ordering so it syncs with other threads properly. Therefore, std::memory_order_acq_rel is what we want.
(The load we make above ourselves already uses std::memory_order_acquire, but that doesn't mean we didn't have to use acquire again to —let's say— sync to whatever has happened between both.)

Description added.

Thanks!

Cherry-picked for 3.4.5.