case statement and brackets

Operating System (+Version): Mac OS 10.12.6
VS Code Version:  1.19.2
beautify Version:  1.6.14

.jsbeautifyrc

{
    "eol": "\n",
    "end_with_newline": true,
    "indent_char": " ",
    "indent_size": 4,
    "indent_with_tabs": false,
	"indent_handlebars": true,
    "preserve_newlines": true,
    "brace_style": "collapse, preserve-inline",
    "max_preserve_newlines": 10,
    "wrap_line_length": 120,
    "extra_liners": ["head", "body", "/html"],
    "indent_body_inner_html": true,
    "indent_handlebars": false,
    "indent_inner_html": false,
    "wrap_attributes": "auto",
    "wrap_attributes_indent_size": 4,
    "newline_between_rules": true,
    "selector_separator_newline":true,
    "space_around_combinator": false,
    "break_chained_methods": true,
    "comma_first": false,
    "keep_array_indentation": false,
    "keep_function_indentation": false,
    "operator_position": "after-newline",
    "space_after_anon_function": true,
    "space_before_conditional": true,
    "space_in_empty_paren": false,
    "space_in_paren": false
}

Action performed
switch (test) {
    case true:{
        let a = 1;
        break;
    }

    default:
        break;
}

beause of Eslint rules no-case-declarations

To ensure that the lexical declaration only applies to the current case clause wrap your clauses in blocks.

Expected results

I hope it won't change， but...
Actual results

Thanks for your help~~~

I agree, it's annoying, but I don't see a way either. Have a look at the js-beautify repo, or check out prettier, that may do what you want. Somewhat less options, but who knows?

Thanks for your help @HookyQR ~~


Illuminate/foundation is an orphan?

Laravel Version: 5.6
PHP Version: 7.2.5
Database Driver & Version: mysql 5.7

Description:
I need helpers from illuminate/foundation for a package test, but its abandoned.
Steps To Reproduce:
Try composer install with illuminate/database:5.6

You mean illuminate/foundation:5.6?

Foundation exists solely to glue the framework to the components. It doesn't really make sense as a standalone package. If there are some methods you like to use from foundation, just grab the ones you need or even throw them into a package.
Also, Illuminate database doesn't require foundation:
    "require": {
        "php": "^7.1.3",
        "illuminate/container": "5.7.*",
        "illuminate/contracts": "5.7.*",
        "illuminate/support": "5.7.*"
    },

It's been discussed here

I need use the config_path helper, by example, how I test using this helper?

Do you recommend me the orchestral/testbench package?

@devcircus Yes it's the glue but some importants pieces of code are inside, for example the caching system for the container is in Application.php, in Foundation.


[Enhancement]: time subsetting/slicing on dataset with non-chronological time coordinate

Is your feature request related to a problem?
the time slicing method, e.g,
ds.sel(time=slice("2099-01-01", "2100-12-31"))
doesn't work on dataset with time data corrupted or not in chronological order, e.g.,
va_day_NorESM1-M_rcp85_r1i1p1_20960101-21001231.nc (data too big to be uploaded)
corrupted time coordinates
[…, 34561.5, 34562.5, 34563.5, 34564.5, 34565.5, 34566.5, 34567.5, 34568.5,
34569.5, 34570.5, 34571.5, 34572.5, 34573.5, 34574.5, 34575.5, 34576.5,
34577.5, 34578.5, 34579.5, 34580.5, 34581.5, 34582.5, 34583.5, 34584.5,
34585.5, 34586.5, 34587.5, 34588.5, 34589.5, 34590.5, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0 ]
Another example
ua_day_CCSM4_rcp85_r6i1p1_20060101-20091231.nc (data too big to be uploaded)
<xarray.DataArray 'time' (time: 1460)> Size: 12kB
array([cftime.DatetimeNoLeap(2006, 1, 1, 12, 0, 0, 0, has_year_zero=True),
cftime.DatetimeNoLeap(2006, 1, 2, 12, 0, 0, 0, has_year_zero=True),
cftime.DatetimeNoLeap(2006, 1, 3, 12, 0, 0, 0, has_year_zero=True), ...,
cftime.DatetimeNoLeap(2005, 1, 1, 0, 0, 0, 0, has_year_zero=True),
cftime.DatetimeNoLeap(2005, 1, 1, 0, 0, 0, 0, has_year_zero=True),
cftime.DatetimeNoLeap(2005, 1, 1, 0, 0, 0, 0, has_year_zero=True)],
dtype=object)
is it possible that when using the slice method, it can at least return timesteps that is within the specified slice range, rather than corrupted with error?
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response

@bosup – are these datasets on disk in the climate program or at NERSC? If so, could you share their paths?

@bosup – are these datasets on disk in the climate program or at NERSC? If so, could you share their paths?

@pochedls the data is at NERSC,  /global/cfs/projectdirs/m4581/ARTMIP_CMIP56/example_data/va_day_NorESM1-M_rcp85_r1i1p1_20960101-21001231.nc

@bosup – you say above you get an error. Can you share the code to produce the error and the error message itself?
It looks like the last 84 time values in this file are 0. Since the units are days since 2006-01-01 00:00:00, this decodes to a constant 2006-01-01 00:00:00 (but should be 2100-10-9 12:00:00 to 2100-12-31 12:00:00). With that said, you can still slice this data by selecting the data indices you want, e.g.,
ds.isel(time=slice(1750, 1824))
Would this work for you?
This file has an obvious data issue. I'm guessing xCDAT probably can't incorporate code generic enough to detect and solve the time issue, but we could potentially help you develop a function for this type of data issue (if the other datasets you have identified have the same problem).

@bosup – you say above you get an error. Can you share the code to produce the error and the error message itself?
It looks like the last 84 time values in this file are 0. Since the units are days since 2006-01-01 00:00:00, this decodes to a constant 2006-01-01 00:00:00 (but should be 2100-10-9 12:00:00 to 2100-12-31 12:00:00). With that said, you can still slice this data by selecting the data indices you want, e.g.,
ds.isel(time=slice(1750, 1824))
Would this work for you?
This file has an obvious data issue. I'm guessing xCDAT probably can't incorporate code generic enough to detect and solve the time issue, but we could potentially help you develop a function for this type of data issue (if the other datasets you have identified have the same problem).

Thanks @pochedls !
the errors came from .sel method rather than .isel
import xcdat as xc
ds = xc.open_dataset("va_day_NorESM1-M_rcp85_r1i1p1_20960101-21001231.nc")
ds.sel(time=slice("2071-01-01","2100-12-31"))

@bosup I think @pochedls suggested .isel as an alternative of .sel because in this case time coordinate of the data is not correct -- which is then the issue is a data issue than a xcdat issue. I think in such case time coordinate needs to be regenerated for that data once after loaded into the memory. Challenge might be in how to handle that systematically, which I am yet to have a good idea.

From our discussion:
import xarray as xr
time = xr.coding.cftime_offsets.date_range("2096-01-01", "2100-12-31", calendar="noleap")
ds['time'] = time

It looks like xarray.cftime_range wraps up xr.coding.cftime_offsets.date_range.

Hi @bosup,
I made a quick custom function for your data issue that can detect data issue for daily time axis. I recall you have to loop through many models, and want to check the data systematically without loosing too much calculation efficiency. Below function checks if day in time axis incrementally increase. Can you see if this helps your workflow?
import numpy as np
import cftime

def daily_time_axis_checker(ds, time_key="time"):
    """
    Check if the time axis in an xarray dataset follows a correct daily sequence, considering all CFTime calendars.

    Parameters
    ----------
    ds : xarray.Dataset or xarray.DataArray
        The dataset or data array containing the time axis to be checked.
    time_key : str, optional
        The key corresponding to the time dimension in the dataset (default is 'time').

    Returns
    -------
    bool
        True if the time axis has incrementally increasing days, otherwise False.

    Raises
    ------
    ValueError
        If the time axis does not follow a correct daily sequence.

    Example
    -------
    >>> ds = xr.Dataset({"time": xr.cftime_range("2000-01-01", periods=400, freq="D", calendar="gregorian")})  # dummy data to test
    >>> daily_time_axis_checker(ds, "time")
    True
    """
    # Extract the time values from the dataset
    time_data = ds[time_key].values

    # Check if the time axis is based on CFTime objects
    if not isinstance(time_data[0], cftime.datetime):
        raise ValueError(f"The time axis does not use CFTime objects (uses {type(time_data[0])}).")

    # Convert time_data into numpy datetime64 for delta comparison
    for i in range(1, len(time_data)):
        # Calculate the difference in days between consecutive time points
        delta = time_data[i] - time_data[i - 1]

        # Check if the difference is exactly 1 day (as a timedelta64 object)
        if np.abs(delta) != np.timedelta64(1, 'D'):
            print('Time axis is not correct!')
            print(f'Error at index {i}: {time_data[i - 1]} to {time_data[i]}')
            return False

    return True

Use this function for your dataset
daily_time_axis_checker(ds, "time")

And its result returns False because data has incorrect time axis.
Time axis is not correct!
Error at index 1741: 2100-10-08 12:00:00 to 2006-01-01 00:00:00
False

Proposed routine for your workflow -- if any data with the same issue is detected, regenerate time and time bounds.
if not daily_time_axis_checker(ds):
    print('regenerate time axis and bounds')
    # regenerate time axis
    time = xr.cftime_range("2096-01-01", "2100-12-31", calendar=ds.time.dt.calendar)
    ds['time'].values[:] = time
    ds = ds.drop_vars(["time_bnds"]).bounds.add_missing_bounds(["T"])

As this is not xcdat issue but data issue, I am closing this issue, but please feel free to reopen it when you still have related issue.

@bosup And if the above code works well for you I am going to implement it to PMP.

@bosup And if the above code works well for you I am going to implement it to PMP.

Thank you @lee1043 This is very useful for detecting data with bad time coordinates! probably not an ultimate solution for fixing the automated workflow of looping through a list of data files as a time range has to be manually specified e.g., "2096-01-01", "2100-12-31". But as we discussed, it is a data issue. Thanks for the workaround!


Add a section for service load balancer cleanup

Ref https://github.com/kubernetes/enhancements/issues/980#issuecomment-491918214, creating this PR as a placeholder for service load balancer finalizer docs.
Note this is not ready for review yet.
/hold
cc @christianh814

/milestone 1.15

@MrHohn since the alpha PR has merged, will this also be cleaned up for 1.15?

@cmluciano Yes, sorry for the delay. I will finish up the PR today-ish.

PR is ready for review now.
/hold cancel
/cc @andrewsykim @bowei

@sftim Thanks for the guidance and feedback. I pushed a new commit to address them.

/lgtm
Thanks @MrHohn

/lgtm
/approve


Add "safe" versions of select and select-one

There's a pretty common sentiment that safe-get and safe-get-in, i.e. versions of get and get-in that throw an exception instead of nil for when no value is found, should be included in clojure.core. Since specter is already such a good alternative to never using those two, it would be nice if it fixed this annoyance by providing versions of select and select-one that behave in this manner.

I think you're looking for select-one!?

(select-one! [:foo :bar] {:foo {:baz 1}}) => nil
What I'm looking for is:
(safe-select [:foo :bar] {:foo {:baz 1}}) => Exception

If you use must in conjunction with select-one! you'll get the behavior you're looking for.
(select-one! [(must :foo) (must :bar)] {:foo {:baz 1}})

How would I write a safe version of the following using specter?
(safe-get-in {10 {20 "treasure"}} [10 30]) => Exception

(select-one! [(must 10) (must 30)] {10 {20 "treasure"}})

Ah sorry, that was rather obvious. I now see the point of select-one! vs. select-one.


Updated changelog for v1.27.0

This updates the changelog.
@mAAdhaTTah @LeaVerou
I'm sorry for the urgency, but could please review this until tomorrow? I plan to release a new version tomorrow to get the fix for the vulnerability out there ASAP.

I'll merge this now to release a new version.


feature(cross-platform): add multi-arch support to release

Currently, it looks like there aren't any builds for PPC or Z-kernel platforms. The project is also missing multiple arches from the release system.
Below are the missing platforms added as part of this PR:

arm64
386

Below are the missing platforms not added to this PR due to compatibility issues (see here):

ppc64le
s390x

This MR allows the team to support future architectures with minimal work if/when they decide to.
Supported Go and Buildx architectures confirmed against:

https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63#a-list-of-valid-goarch-values
https://github.com/logband/github-buildx-stats/runs/3448399619?check_suite_focus=true

Changes:

Added a new cross-platform binary test build to cover that if there are any issues in the future.
Added the new architectures to the release workflow.
Added the new architectures into the Dockerfile so they are supported once a new release is built. This includes architectures with compatibility issues, since they may be added in the future.
The container builds (test / latest / release) build use matrixes.

This should make development a lot easier for newcomers to the project! 🎉

@chrislusf Ready for review! 🙇
This needs a new release to be created before the container build test will work, and the new platforms will be added.


Bugfix/rst 97 reference duplication

https://triadmoj.atlassian.net/browse/RST-97
The issue was with duplicated reference numbers. SQL query was cached so it returned same results which meant that the reference number didn't change. I was unable to write a test for this that would allow SQL caching in Rspec. I also add ! to update so when there is an error next it will raise an exception. The exception is caught in a controller which is calling this method and a proper error message is displayed.

@leoapost Rubocop and your comments done.


Problem at Transition from FlowLayout to BlazeLayout

Hi there!
I pursue the transition from FlowLayout to BlazeLayout as part of the transition from Flow Router I to Flow Router II. I tried to do all that was noted here. Then I get this error on my console, without the ability to start the app.
W20151024-07:37:57.782(2)? (STDERR) TypeError: Cannot read property 'BlazeLayout' of undefined
W20151024-07:37:57.782(2)? (STDERR)     at packages/global-imports.js:11:45
W20151024-07:37:57.782(2)? (STDERR)     at /Users/emindurak/Desktop/deneme1/kitapp/.meteor/local/build/programs/server/boot.js:222:10
W20151024-07:37:57.783(2)? (STDERR)     at Array.forEach (native)
W20151024-07:37:57.783(2)? (STDERR)     at Function..each..forEach (/Users/emindurak/.meteor/packages/meteor-tool/.1.1.4.hbupt5++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20151024-07:37:57.783(2)? (STDERR)     at /Users/emindurak/Desktop/deneme1/kitapp/.meteor/local/build/programs/server/boot.js:117:5

Any help will be appreciated to resolve the issue. Thanks!

OK, now I updated everything on my app including Meteor core to 1.2. The problem regarding BlazeLayout seems to disappear, but I have another problem that seems occur due to the SearchSource package I use:
W20151024-08:06:18.655(2)? (STDERR) TypeError: Object # has no method 'methods'
W20151024-08:06:18.655(2)? (STDERR)     at Package (packages/meteorhacks_search-source/packages/meteorhacks_search-source.js:17:1)
W20151024-08:06:18.655(2)? (STDERR)     at Package (packages/meteorhacks_search-source/packages/meteorhacks_search-source.js:80:1)
W20151024-08:06:18.655(2)? (STDERR)     at /Users/emindurak/Desktop/deneme1/kitapp/.meteor/local/build/programs/server/packages/meteorhacks_search-source.js:101:4
W20151024-08:06:18.655(2)? (STDERR)     at /Users/emindurak/Desktop/deneme1/kitapp/.meteor/local/build/programs/server/packages/meteorhacks_search-source.js:110:3
W20151024-08:06:18.655(2)? (STDERR)     at /Users/emindurak/Desktop/deneme1/kitapp/.meteor/local/build/programs/server/boot.js:242:10
W20151024-08:06:18.656(2)? (STDERR)     at Array.forEach (native)
W20151024-08:06:18.656(2)? (STDERR)     at Function..each..forEach (/Users/emindurak/.meteor/packages/meteor-tool/.<IP_ADDRESS>zwwyi++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20151024-08:06:18.656(2)? (STDERR)     at /Users/emindurak/Desktop/deneme1/kitapp/.meteor/local/build/programs/server/boot.js:137:5
Still can't run the app :/

I uninstalled and reinstalled the Search Source package, and it started working fine.


⚠ Bofrost.be has degraded performance

In 75040c7, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1622 ms

Resolved: Bofrost.be performance has improved in 0323108 after 20 minutes.


Translate to Simplified Chinese (zh-CN)

Hi there 👋
Let's translate the course to Simplified Chinese so that the whole community can benefit from this resource 🌎!
Below are the chapters and files that need translating - let us know here if you'd like to translate any and we'll add your name to the list. Once you're finished, open a pull request and tag this issue by including #issue-number in the description, where issue-number is the number of this issue.

🙋 If you'd like others to help you with the translation, you can also post in our forums or tag @_lewtun on Twitter to gain some visibility.

We've also created a chinese-simplified-translations channel on the Hugging Face Discord in case you wish to discuss translation details there. Just follow the instructions here 👉  https://discord.gg/hKnxnxUr
Chapters
0 - Setup

[ ] 1.mdx

1 - Transformer models

[x] 1.mdx @zhlhyx
[x] 2.mdx @zhlhyx
[x] 3.mdx petrichor1122
[x] 4.mdx @zhlhyx
[x] 5.mdx @1375626371
[x] 6.mdx @1375626371
[x] 7.mdx @zhlhyx
[x] 8.mdx @1375626371
[x] 9.mdx petrichor1122
[x] 10.mdx @1375626371

2 - Using 🤗 Transformers

[ ] 1.mdx petrichor1122
[ ] 2.mdx
[ ] 3.mdx petrichor1122
[ ] 4.mdx petrichor1122
[ ] 5.mdx petrichor1122
[ ] 6.mdx
[ ] 7.mdx
[ ] 8.mdx<PHONE_NUMBER>

3 - Fine-tuning a pretrained model

[ ] 1.mdx
[ ] 2.mdx
[ ] 3.mdx
[ ] 3_tf.mdx
[ ] 4.mdx
[ ] 5.mdx
[ ] 6.mdx

4 - Sharing models and tokenizers

[ ] 1.mdx
[ ] 2.mdx
[ ] 3.mdx
[ ] 4.mdx
[ ] 5.mdx
[ ] 6.mdx

5 - The 🤗 Datasets library

[ ] 1.mdx
[ ] 2.mdx
[ ] 3.mdx
[ ] 4.mdx
[ ] 5.mdx
[ ] 6.mdx
[ ] 7.mdx
[ ] 8.mdx

6 -  The 🤗 Tokenizers library

[ ] 1.mdx
[ ] 2.mdx
[ ] 3.mdx
[ ] 3b.mdx
[ ] 4.mdx
[ ] 5.mdx
[ ] 6.mdx
[ ] 7.mdx
[ ] 8.mdx
[ ] 9.mdx
[ ] 10.mdx

7 - Main NLP tasks

[ ] 1.mdx
[ ] 2.mdx
[ ] 3.mdx
[ ] 4.mdx
[ ] 5.mdx
[ ] 6.mdx
[ ] 7.mdx
[ ] 8.mdx
[ ] 9.mdx

8 - How to ask for help

[ ] 1.mdx
[ ] 2.mdx
[ ] 3.mdx
[ ] 4.mdx
[ ] 4_tf.mdx
[ ] 5.mdx
[ ] 6.mdx
[ ] 7.mdx

Events

[ ] 1.mdx

I'm very glad to participate in this project. I plan to translate sections 1，3 ，4and 5 in chapter 2 next week. Please mark it for me. Thank you!

FYI everyone - I've added created a channel on our Discord (notes in issue description) in case you need it :)

Hi, Lewtun, I plan to translate chapters 4,5,6, and 7 and will complete it as soon as possible. Thank you!

Hi @petrichor1122 @1375626371 @zhlhyx one of our team members is planning to post the videos from the course on Bilibili  and was wondering if you'd be interested in helping out with translating the video transcripts from English to Simplified Chinese?
We'd also love to make your great work accessible to as many students / learners in China, so if you'd like to be part of these efforts please let me know!

Hi @petrichor1122 @1375626371 @zhlhyx one of our team members is planning to post the videos from the course on Bilibili  and was wondering if you'd be interested in helping out with translating the video transcripts from English to Simplified Chinese?
We'd also love to make your great work accessible to as many students / learners in China, so if you'd like to be part of these efforts please let me know!

It's a great idea, and we'd love to pass on these technologies and ideas to more people. But I would like to know more about the details of the cooperation to judge whether it is suitable. Can you tell me more detailed cooperation details?

Hi, thanks for the message!
I am interested in the project. If there are any plans for it, feel free to
contact me.
On Thu, 10 Nov 2022 at 18:58, lewtun @.***> wrote:

Hi @petrichor1122 https://github.com/petrichor1122 @1375626371
https://github.com/1375626371 @zhlhyx https://github.com/zhlhyx one
of our team members is planning to post the videos from the course on Bilibili
https://www.bilibili.com/ and was wondering if you'd be interested in
helping out with translating the video transcripts from English to
Simplified Chinese?
We'd also love to make your great work accessible to as many students /
learners in China, so if you'd like to be part of these efforts please let
me know!
—
Reply to this email directly, view it on GitHub
https://github.com/huggingface/course/issues/118#issuecomment-1310108039,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHOAJVKMEDW6NTQAXQKKKMDWHTILXANCNFSM5TNG7ORQ
.
You are receiving this because you commented.Message ID:
@.***>

Hi, thanks for the message!
I am interested in the project. If there are any plans for it, feel free to
contact me.
Could you please give more details, such as whether it needs to do time
coding and substitling? I think it is more like a localization project than
just translation. I wonder whether  Hugging face will provide a style guide
in Simplifid Chinese or we can have a reference from other IT products to
make it more consistent.
On Thu, 10 Nov 2022 at 18:58, lewtun @.***> wrote:

Hi @petrichor1122 https://github.com/petrichor1122 @1375626371
https://github.com/1375626371 @zhlhyx https://github.com/zhlhyx one
of our team members is planning to post the videos from the course on Bilibili
https://www.bilibili.com/ and was wondering if you'd be interested in
helping out with translating the video transcripts from English to
Simplified Chinese?
We'd also love to make your great work accessible to as many students /
learners in China, so if you'd like to be part of these efforts please let
me know!
—
Reply to this email directly, view it on GitHub
https://github.com/huggingface/course/issues/118#issuecomment-1310108039,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHOAJVKMEDW6NTQAXQKKKMDWHTILXANCNFSM5TNG7ORQ
.
You are receiving this because you commented.Message ID:
@.***>

Hi @mcyhx and @1375626371 great to hear you're interested! Do you have access to Discord or Slack? It might be more efficient to discuss further there and also meet @xianbaoqian who recently joined Hugging Face :)

Hi @mcyhx and @1375626371 great to hear you're interested! Do you have access to Discord or Slack? It might be more efficient to discuss further there and also meet @xianbaoqian who recently joined Hugging Face :)

It's really nice to see like-minded people join together, I can visit Discord, my account is hyq#2793

OK great, let's try Discord then :)
If you join the Hugging Face Discord, I can then add you all to a channel to discuss further: https://huggingface.co/join/discord
See you there!

Hi, it's great to join you. I can visit Discord. My account is Slinae#1774.
On Sat, 19 Nov 2022 at 03:32, lewtun @.***> wrote:

OK great, let's try Discord then :)
If you join the Hugging Face Discord, I can then add you all to a channel
to discuss further: https://huggingface.co/join/discord
See you there!
—
Reply to this email directly, view it on GitHub
https://github.com/huggingface/course/issues/118#issuecomment-1320444956,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHOAJVNKMIS5VBUFAZIOZJTWI7KVDANCNFSM5TNG7ORQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

I joined the Hugging Face Discord, but I'm not very familiar with this software, I don't know where to join the discussion, what should I do next?

I joined the Hugging Face Discord, but I'm not very familiar with this software, I don't know where to join the video discussion, what should I do next?

Hi @1375626371 can you see the #chinese-simplified-translations channel? If not, you can share your username here or try this link: https://discord.gg/RSv5Q4wy
@mcyhx I've added you to the channel!

I joined the Hugging Face Discord, but I'm not very familiar with this software, I don't know where to join the video discussion, what should I do next?

Hi @1375626371 can you see the #chinese-simplified-translations channel? If not, you can share your username here or try this link: https://discord.gg/RSv5Q4wy
@mcyhx I've added you to the channel!

I've joined Hugging Face's server, but I can't find the #chinese-simplified-translations channel. My username is hyq#2793, could you please invite me?

Hi, all,
I've entered the channel. Thanks!
On Mon, 21 Nov 2022 at 15:56,<PHONE_NUMBER> @.***> wrote:

I joined the Hugging Face Discord, but I'm not very familiar with this
software, I don't know where to join the video discussion, what should I do
next?
Hi @1375626371 https://github.com/1375626371 can you see the
#chinese-simplified-translations channel? If not, you can share your
username here or try this link: https://discord.gg/RSv5Q4wy
@mcyhx https://github.com/mcyhx I've added you to the channel!
I've joined Hugging Face's server, but I can't find the
#chinese-simplified-translations channel. My username is hyq#2793, could
you please invite me?
—
Reply to this email directly, view it on GitHub
https://github.com/huggingface/course/issues/118#issuecomment-1321606974,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHOAJVJU7BPQNZ67MYLYN5LWJMTJNANCNFSM5TNG7ORQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

HI @1375626371 Sry we can't find you on the discord server. Could you double check your user name on the HF Discord server?

We're planning to have a kick-off meeting this week. If Discord is a blocker, can I have your email address so that we can coordinate on the time?
Thanks,
Tiezhen

HI @1375626371 Sry we can't find you on the discord server. Could you double check your user name on the HF Discord server?

We're planning to have a kick-off meeting this week. If Discord is a blocker, can I have your email address so that we can coordinate on the time?
Thanks, Tiezhen
I guess hyq is my real username, sorry. Could you please invite me again? thanks

Done @1375626371 !

Done @1375626371 !

Ok,Thanks!


Add guard to skip generating org reports if the search index is not u…

…p-to-date
Signed-off-by: Josh Hudson<EMAIL_ADDRESS>

👍


Pass the actual iterable from the option to get files

Closes #137

Merging now, but I'm uncomfortable that we don't have a test that covers this so filed an issue at https://github.com/apache-spark-on-k8s/spark/issues/141


Is project still alive?

First of all, thanks for the great work!
I used to recommend JavaScript Garden for all guys, who attends my interviews and asks for "what to read".
But now I've checked it and there is no any new language features. No let or const with their block-scoped local variables. No arrow functions with no this and no arguments. Promises are not mentioned, which I would say become a quite essential part of a language with native async-await syntax. Generators are not mentioned (though I thought they are pretty old feature). And so on.
So, hence my question:
Is JavaScript Garden is still alive and means to evolve, like JavaScript does?
Or does it stuck in a limbo?

It is open to contributors :) But yes, it's out of date, and I've not contributed in a long time, and by looks of it not many other people have.
Given the amazing translations though it would be great if new people joined and updated it for features that landed after ES5!

The site gives a 404 error page.

huh - https://github.com/BonsaiDen/JavaScript-Garden/commit/93278fbcafa569fd193f8784abc267e9db09c645 removed the site.
@BonsaiDen what's the thinking here? If you're planning to archive the project, worth letting rest of the contributors know so someone can take over a fork etc if they prefer?


[Feature request] IpadOS support

I was quite disappointed to find that this plugin isn’t supported on my ipad (it’s my main note-taking device, with an external keyboard). Is there a reason why it can’t be?

I see! In that case would you like me to try it?
I think Quick Explorer is the first plugin I’ve come across that it won’t actually let me enable on my ipad (but I’ve used it on desktop). I’m not sure if I can edit the manifest.json myself? - as plugins are installed through Obsidian - I’m using Obsidian Sync rather than local storage

You can edit the file on your desktop and it should sync to mobile.  At least that's how I understand others to have done it.


Newer Version Has Funny Segmentations?

Hello,
After updating cellpose and running the python notebook (resampling is still on) I found some strange segmentations on an image that looks like it should be "easy" for the algorithm to segment. In the following image, the black and white is the original image in reverse grayscale and the cyan is the outline from cellpose.

Out of curiosity, I made a copy of an older folder I had segmented before to compare the notebook results now compared to the older version. The newer segmentation is on the left while the older segmentation is on the right. It seems the problem occurs after I updated cellpose. Do other people have similar issues and is there an easy way to get around this? Thanks!!!

are you sure you used the same diameter size? the newest version is still passing the regression tests. going to close for now but can reopen


Update requirements.txt

Adds two packages needed on MacOS for me to be able to generate and start the application.

I found it very tricky to use the code on my Mac with an M3 Apple Silicon chip. I found that two packages needed to be (re)installed to get the application to load in the browser and resolve error messages.


Empty commit to force a version bump

For some reason publishing 8.0.0 failed with an error that it's already published, so I'm PRing a dummy to force 8.0.1

Yes, this happens sometimes unfortunately. Sometimes the artifact is available and sometimes not. In case it is available you don't need to create a new version. Only when it is not available.


not working on catalina

[X ] I am on the latest Hyper.app version
[ X] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: mac os catalina 10.15.1
Hyper.app version: 3.0.2
Link of a Gist with the contents of your .hyper.js:
Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
The issue is reproducible in vanilla Hyper.app:

Issue

hyper stopped working once I updated the OS to catalina, 10.15. it was working before the update; I tried again by installing the latest version but still the same.

worked using brew to install.


added filter for cache Response

Related Issues

#4603
closes #
Short Description and Why It's Useful

It's no static response for the first item. It compares the cachereponse against the original request.
Screenshots of Visual Changes before/after (if There Are Any)

Which Environment This Relates To
Check your case. In case of any doubts please read about Release Cycle

[ ] Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
[ ] RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
[x] Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

[x] No upgrade steps required (100% backward compatibility and no breaking changes)
[ ] I've updated the Upgrade notes and Changelog on how to port existing Vue Storefront sites with this new feature

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change
Contribution and Currently Important Rules Acceptance

[x] I read and followed contribution rules

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Dominik Deimel seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@domideimel thanks for pr, we shouldn't get all blocks. Only one with specified identifier. Thats why we get first item from array. This is problem related with storefront-query-builder. We just need to update yarn.lock to get newest version https://github.com/DivanteLtd/vue-storefront/pull/4605

@gibkigonzo Oh ok. I thought by just filtering the Array against the initial request would do the job ;)


SSL error on a Mac?

Hi,
I get the SSL error - is this normal on a Mac? It makes me think something is wrong with my install.
http://gist.github.com/fnichol/867550 seems to be targeted at Windows.
Thanks,
Martin.
Copy the code that Google returned and paste it here:
(omitted)
/opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError)
	from /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `block in connect'
	from /opt/chefdk/embedded/lib/ruby/2.1.0/timeout.rb:76:in `timeout'
	from /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:920:in `connect'
	from /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:863:in `do_start'
	from /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:852:in `start'
	from /opt/chefdk/embedded/lib/ruby/2.1.0/net/http.rb:1369:in `request'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:82:in `perform_request'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:40:in `block in call'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:87:in `with_net_http_connection'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.1/lib/faraday/adapter/net_http.rb:32:in `call'
	from /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/faraday-0.9.1/lib/faraday/request/url_encoded.rb:15:in `call'
	from /Volumes/Storage/martincleaver/.chefdk/gem/ruby/2.1.0/gems/signet-0.6.1/lib/signet/oauth_2/client.rb:957:in `fetch_access_token'
	from /Volumes/Storage/martincleaver/.chefdk/gem/ruby/2.1.0/gems/signet-0.6.1/lib/signet/oauth_2/client.rb:983:in `fetch_access_token!'
	from /Volumes/Storage/martincleaver/.chefdk/gem/ruby/2.1.0/gems/google_calendar-0.5/lib/google/connection.rb:133:in `get_new_access_token'
	from /Volumes/Storage/martincleaver/.chefdk/gem/ruby/2.1.0/gems/google_calendar-0.5/lib/google/connection.rb:94:in `login_with_auth_code'
	from /Volumes/Storage/martincleaver/.chefdk/gem/ruby/2.1.0/gems/google_calendar-0.5/lib/google/calendar.rb:73:in `login_with_auth_code'
	from gc.rb:24:in `<main>'

Hi Martin, see issue #48

Ok - thanks. So it turned out to be some issue with ChefDK, the variant of Ruby I was using. https://github.com/chef/chef-dk/issues/376 gave me that hint.
Upgrading from v0.6.1 to v0.8.0 fixed it.


DMARC is a fiction in Microsoft as you allow all email to go through

Guys,
You are so proud that you have implemented DMARC for all incoming emails, however it doesn't work as your Policy and Action are both set to NONE.
smtp.mailfrom=hotmail.com; dmarc=pass (p=none sp=none pct=100) action=none
Your security settings are useless...

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

ID: 7861a800-7643-dca5-1046-232a51d6e61e
Version Independent ID: d78fc416-516b-15ab-4719-068f7d13ecca
Content: Use DMARC to validate email, setup steps
Content Source: microsoft-365/security/office-365-security/email-authentication-dmarc-configure.md
Service: microsoft-365-security
Sub-service: mdo
GitHub Login: @MSFTTracyP
Microsoft Alias: tracyp

@slawekdejneka Thank you for your feedback. Since you have a technical issue, I'd recommend you contact support via the need help section in the admin center, so that our support team can fix this issue.
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and sharing this explanation. @slawekdejneka Hope this comment is helpful for you. Considering the nature of the issue, as advised, please open a service ticket in your tenant and follow with them for the resolution. You can contact Microsoft support via the need help section on the admin center. We proceed to close it as here we are limited to documentation fixes and improvements only.
We will be very happy if you can share the outcome or resolution with us if you see documentation update is required. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


not  support   	 Kubernetes plugin

Dependencies

Feature Request

Is not  support  Kubernetes plugin.
node (POD_LABEL) {
properties([
    parameters([
        base64File 'small'
        stashedFile 'large'
    ])
 ])

}

Can you be more specific about what is wrong? Steps to reproduce from scratch?


Breaking changes

Cherow 2.0 will not be backward compatible with 1.6.x.

Different options

Shebang skipping have been changed to match stage 3 proposal

Strictly follow ESTree. The ast will differ from other parsers

Block scoping added. This haven't been implemented in Acorn so some code that can parse in Acorn may not parse in Cherow. Everything after the ECMA specs.

The raw option been merged with rawIdentifier option so the raw property will exist on identifier ast nodes as well

@cherow/cherow-team What you guys think? All parsers try to be "AnnexB" compatible, but fails many places. Should we activate AnnexB support in 2.0 by default, or let it be off by default?
Please note that I now designed Cherow 2.0 to parse with AnnexB support by default, but you can switch it off through options.


1.81 broke localhost DNS resolution?

Does this issue occur when all extensions are disabled?: N/A, it affects extensions

VS Code Version: 1.81.0
OS Version: macOS Ventura 13.5

Steps to Reproduce:

Install Thunderclient extension
try to hit a localhost address
request hangs.

workaround is to use <IP_ADDRESS>:
https://github.com/rangav/thunder-client-support/issues/1251

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.81.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

Here is the error screenshot in developer tools when I run localhost url

Hi All,
We just now published a new version Thunder Client to fix this issue.
Please update the extension to version - v2.10.2
so you can closing this issue

@rangav Could you share what the fix for this was?

Hi @chrmarti
I relaced this library global-agent with another library hpagent

@rangav Thanks, I assume this was not a problem triggered by VS Code then.


-substitute sometimes produces an AAG

Very nice work!
I haven't quite narrowed down why, but sometimes amulet -substitute ... produces an AAG instead of an AIG. E.g. using the input 32bit-BP-AR-BL.aig from https://github.com/amahzoon/RevSCA-2.0 results in an AAG output. Looking at the AMulet source it looks like, contrary to the --help output, it always outputs an AAG:
...
 if (!aiger_write_to_file(rewritten, aiger_ascii_mode, f2))
...

But this is not the case. Other AIGs I have tried result in AIG output from -substitute. Maybe this is some known behavior of the aiger lib?

Ah I think I figured out the differentiating factor. The ones that produce AIG output instead of AAG output have an FSA that is not a GP adder, so no substitution is performed. I.e. the output is identical to the original AIG.

I don't know why I've overlooked your issue for so long. Sorry about that.
Yes you are right, there was a inconsistency in printing the AIGs, which used 'aiger_ascii_mode' for the rewritten AIGs, and 'aiger_binary_mode' when no substitution is performed.
Thank you for spotting this issue, it is now fixed.


manifest.prod.boltdns.net

Energized Protection - block ⚡

Let's make an annoyance free, better open internet, altogether!

Issue Submit Form

  Provide the following infos properly, which will help us to resolve your issue quickly.

Issue(s):
Type x in between [ ] and make sure there isn't any space between brackets. Example; for Your Selected Issue(s), type like this - [x]
You can select more than one category of issues if you need to!

[x] Whitelist
[ ] Blacklist
[ ] App Broken
[ ] Website Broken
[ ] Request
[ ] Other Issue

Pack(s):
Write the name of the pack(s) you are using.

Pack(s) Name:  Ultimate

Extension(s):
Also name the extension(s) if you are using any. If you don't then leave it blank.

Extension(s) Name:

Domain(s):
If you are submitting this issue for whitelist/blacklist issue, send us the domain(s) for whitelisting/blacklisting here. Kindly use the Code Tag to prevent tracking.

Domain(s):

manifest.prod.boltdns.net

Your Config:
Just to ensure there is no issues or conflicts with other app/software/magisk module/extension/source list.
Make sure you are running Energized Protection Service only.

Client: PiHole

Version: 5.0

Details:
Write us a lil bit more about your issue or query. You can attach any screen shot or log of the issue or advert, this will help to highlight it.

Your Issue Detail:
This domain is the manifest for boltDNS. Blocking this domain breaks embedded videos that use the BrightCove player. It is also a CNAME for dualstack.brightcove.map.fastly.net
For example, try and play the embedded video on https://www.intel.ca/content/www/ca/en/products/docs/processors/core/performance-maximizer.html
This domain does not host any ads, spyware, or malware.

Thank you for making Energized Protection great, with your kind help!
A project by Ador with ❤

It seems the entry has been sourced from Energized's own Core development list, which places the burden of adding a fix on the Energized team themselves.

This host is touched by some media streaming apps when some ad servers are blacklisted.  I have blocked it without loss of functionality.  The provided test URL in OP functions as expected.
Leave blocked.

@underhandedness
Did you try and visit the example I gave and see if you could play the video?
https://www.intel.ca/content/www/ca/en/products/docs/processors/core/performance-maximizer.html

@underhandedness
Did you actually try and play this video with the domain blocked?
Here's proof. Test it again- I did.


scroll

When I scroll listview,the footer is flashing

I have the same issue. And if i scroll very slowly, the QuickReturnFooterTextView and the QuickReturnFooterImageView(Google plus implementation) do not scroll at the same pace.

That google plus implementation is by design. That is how it was being
handled in the Google + app. Keep in mind it is just an example. You are
free to customize that behavior.
On May 25, 2015 2:13 AM, "ByungHwa Ra"<EMAIL_ADDRESS>wrote:

I have the same issue. And if i scroll very slowly, the
QuickReturnFooterTextView and the QuickReturnFooterImageView(Google plus
implementation) do not scroll at the same pace.
—
Reply to this email directly or view it on GitHub
https://github.com/lawloretienne/QuickReturn/issues/23#issuecomment-105174684
.

@lawloretienne ok man. thanks.

@rabyunghwa have a solution?

@zhonghanwen nope. I decided to use the header textview instead and just manually set its visibility to visible or gone. This is what the current behavior is in the latest Facebook's app.


Master

Initial commit for the waveform Graph.

@codesuki  please review.
Todo:
1- colors is hardcoded. Needs to be passed as parameter
2- color range is hardcoded, needs to be calculated over xDomain.length;
3- coloring is via gradient, should allow solid color.
4- color on rollover should be passed via parameter.
5- data passed is in {x,y}. Should be an array of Numbers to reduce data impact.
6- click event should return the number of the sample
7- click event should return also the position of the sample in the xDomain.length (example, clicking the bar in the middle of a 200 bars waveform should return something like:  sampleNumber: 100, position: 0.5
Maybe:
A- should normalize the values in input

I only had time to glance at it but will merge now.
5 is easy and I will fix that later.
9 I have to take a closer look!

Perfect,
sent another pull request, here the preview ( https://htmlpreview.github.io/?https://raw.githubusercontent.com/nicolabortignon/react-d3-components/master/example/index.html at the end of the page).
Now the graph is responsive (using viewBox). Still open todo 5,6,7,9.
Will look into that during the weekend!
Thanks for the help so far


Fix certgen issue with multiple hosts

If listen_addresses was set to multiple hosts, the certgen would fail. This PR fixes this issue.
Also allowed to specify --bind-address multiple times.

I don't see how this PR deals with port=auto when multiple host names are specified. As discussed in https://github.com/edgedb/edgedb/issues/2696 -- let's do this:

If port=auto was specified, the server should start without creating an admin socket. There's no point in it anyways, since admin socket is only used by the CLI, and port=auto is only used for CI/test harnesses.
If --emit-server-status was specified, the server should output a list of tuples for the hosts/ports it listens on.

I don't see how this PR deals with port=auto when multiple host names are specified

Oh this PR was only intended to address the cert generation issue. I have another PR for #2696

Merged in #2737.


clh: Update cloud-hypervisor.yaml

As CLH introduced few new properties in its openAPI spec, we make
corresponding adjustments from kata's side
Signed-off-by: Bo Chen<EMAIL_ADDRESS>

/test-ch

/test-clh

/test-ubuntu

/test-clh

/test-clh

/test-ubuntu

@likebreath Travis is failing with ERROR: No "Fixes" found. Can you open an issue and address it with Fixes : in the commit message.

@likebreath Travis is failing with ERROR: No "Fixes" found. Can you open an issue and address it with Fixes : in the commit message.

@amshinde Thanks for pointing this out. Yes, I am looking at the same failure. I am wondering do I need to put Fixes xxx in both commits or just the first commit? Thanks.

You need a Fixes in at least one commit. You can have multiple different ones if you need across multiple commits (but generally we go with one-PR fixes one-Issue, generally)

/test-clh

/test-ubuntu

/test-clh

/test-ubuntu

/test-clh

/test-clh

/test-ubuntu

/test-clh

/test-ubuntu

/test-clh

/test-ubuntu


Add Self Assessment Redirect Page

When a beneficiary uses the self assessment route, the web app should take the beneficiary to the meeting

Create route matching the route added in impactasaurus/server#27
Get JWT from route and save to local storage
Extract the meeting ID from the JWT
redirect the beneficiary to that meeting

 Self assessment (via link)

Waiting for impactasaurus/server#50 before completing

Things to improve:

Give already signed in users a prompt to ensure they know they will be logged out
Hide the back button when reviewing the results for beneficiaries
Record an event on a JTI sign on
Consider GA tracking of beneficiaries

Expired: 236d41d8-21c7-4fb2-9930-3fe9e3929cba
Active: 2aaa4456-10ad-4098-962b-32fa732ed713


DateTime with custom template are not work

Smart.Format("{0:HH:mm:ss}", DateTime.Now) == "" instead of valid string with current time

You must escape the colons.  This is the same behavior as String.Format.
Smart.Format("{0:HH\:mm\:ss}", DateTime.Now)

Unfortunately, in "Release" mode, the default behavior is to ignore errors.  That's why this works, but gives "".
This behavior is very confusing for many people, and hard to debug, especially since NuGet delivers "Release" packages.  I've been thinking about changing the default behavior, so I just created #51 to handle this.

Make it configurable, some users might already expect that behavior.

Well, it's already configurable. But I think the default config has been causing a lot of difficulty. It would definitely need a version bump.
-------- Original message --------From: Bernhard Millauer  Date:03/18/2015  5:05 PM  (GMT-08:00) To: "scottrippey/SmartFormat.NET"  Cc: Scott Rippey  Subject: Re: [SmartFormat.NET] DateTime with custom template are not work (#50)

Make it configurable, some users might already expect that behavior.

Reply to this email directly or view it on GitHub:
https://github.com/scottrippey/SmartFormat.NET/issues/50#issuecomment-83229301

Console.WriteLine(string.Format("First =		{0:HH:mm:ss}", DateTime.Now));
Console.WriteLine(Smart.Format(@"Second =	{0:HH:mm:ss}", DateTime.Now));
Console.WriteLine(Smart.Format("Third =		{0:HH:mm:ss}", DateTime.Now));
In release mode output will be
First = 10:41:51
Second =
Third =
I debug I've got an exception on second line (not suitable formatter).

Console.WriteLine(Smart.Format(@"Second =	{0:HH:mm:ss}", DateTime.Now));

Sorry, you're correct.  I was thinking of TimeSpan, which does require escaping of :.

Possible solutions:

Change the syntax so it doesn't use double-colon.
Eg. {0,formatter:format} or one of the other discussed options.
Make the named formatter feature smart -- if no formatter is found with that name, then assume it's not a named formatter.
For example, look for a formatter hh with format mm:ss, and if it isn't found, use the default formatter with format hh:mm:ss.

Hi, any resolution on this?  I'm just ran into this issue today when I tried to format at string like:
This job ran from {JobExecutionContext.PreviousFireTimeUtc:yyyy-MM-dd HH:mm:ss} - {JobExecutionContext.JobFireTimeUtc}.
I was given an unknown formatter error.
If I try to escape the colons then the code will not compile, as : is an unrecognized escape code.
I've found a temporary work around, by specifying my form string as yyyy-MM-dd HH-mm-ss, however, I'm certain my users will not remember that and will also cause an error to be generated.
Thanks
marc

Scott, I've spent some time reading through the various issues since the datetime formatting issue is a problem for me.
I like the idea of using a comma, just like .Net does for alignment.
Do you know when you are planning on implementing that change?
Another thought, maybe have some sort of configuration option that will enable/disable named formatters?
Thanks
marc

Marc,
Here's a few ideas...
First, what version of SmartFormat.NET are you using?  I've been testing these formatting issues using 1.6, and it seems to be working correctly: https://dotnetfiddle.net/bbAqbp  But when I switch to 1.5, I do get the "empty output" error.
I don't specifically remember, but I think 1.6 removed the "unknown formatter" exception.  If the "formatter name" doesn't match anything, then it understands that it's not a formatter name.
Second, if you're stuck on 1.5 for some reason, you could try a :: workaround.  Basically, you could just write {Now::HH:mm:ss} and that'll fix it.  It understands that :: just means "ignore the named placeholder".
Third, I'm truly sorry for implementing the "named formatter" feature without properly vetting the breaking consequences.  I spent a lot of time struggling over the syntax, and I really thought the "double colon" syntax would be fully backwards compatible, and I was wrong.
There have been a couple of issues related to syntax conflicts.  Looking back, I think maybe the comma syntax would've been a safer choice.  And perhaps I'll make another breaking change and go back to that.
That being said, I do find great value in the "named formatter" feature, and I really want to encourage its use, so I'll be sure to put a good effort into giving it a great syntax.

Hi Scott:
Thank you for your response.  I'm using <IP_ADDRESS> I pulled it from NuGet on June 1st.
I did a pull of the latest code from GitHub and put together this little test app, to see if I could figure out what originally how to write an extension.  I decided against it.  Then I ran into this formatting issue.  So I put together the below code to test, and see if I could figure out what is going wrong.
using System;
using SmartFormat;

namespace ConsoleApplication1
{
    public class JobContext
    {
        public DateTimeOffset? PreviousFireTimeUtc { get; set; }
        public DateTimeOffset? JobFireTimeUtc { get; set; }
    }

    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                JobContext a = new JobContext();
                a.PreviousFireTimeUtc = DateTimeOffset.UtcNow.AddDays(-1);
                a.JobFireTimeUtc = DateTimeOffset.UtcNow;

                var msg = "This job ran from {JobExecutionContext.PreviousFireTimeUtc:yyyy-MM-dd HH:mm:ss} - {JobExecutionContext.JobFireTimeUtc}.";

                var data = new
                {
                    JobExecutionContext = a,
                    JobDetails = new {JobKey = new {Group = "Group1", Name = "Name1"}}
                };

                var x = Smart.Format(msg, data);
                Console.WriteLine(x);

            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
    }
}

I gave the double colon a try. I no longer get the format exception, which is good. However, there is now an additional colon in the output.  In this case right before the year.
This job ran from :2015-06-14 19:43:31 - 6/15/2015 7:43:31 PM +00:00.

Thanks
marc

Scott, here is another thought.  If I'm not mistaken, from reading the list of issues, it is really the datetime and maybe timespan that have the most issues with the named formatter logic.  Maybe the solution is to just provide out of the box named formatters for datetime and timespan.  Then just indicate to people to use them.
As for myself, I need to figure out how to teach my users, how to do formatting of datetimes.  I'm thinking of just adding some sort of UI operation that they can choose a bunched of predetermined formats. I just need to think this through, but I need to know which way to call the Smart Format library.
Thanks for all the help.
marc

Regarding named formatters for DateTime and Timespan, you can actually use {0:default:HH:mm:ss} too.  default should handle them appropriately.

Do you think you could create a DotNetFiddle to reproduce the issue?  I couldn't recreate it.

I can try, I don't know how to use DotNetFiddle.  I can also email you a VS 2013 solution, if that would help.
Just let me know or send me a pvt email with your email.
Cheers
marc

Scott, I tried to update the DotNetFiddle at the original link you provided.  Please let me know if you see the changes. BTW, everything works fine on the fiddle.
I did notice that the fiddle and my development machine are running different versions of the .NET 4.5 framework.
The DotNetFiddle is running version 4.0.30319.18449 of .Net 4.5.
My development and production systems are running: 4.0.30319.34209 . I wonder if something else changed in the patch.
marc

Should be fixed with #65

Will be closed in upcoming version 1.7.x shortly.

Updated version committed, where test with the issues mentioned have passed: https://github.com/scottrippey/SmartFormat.NET/commit/46bbae26b6c34582887b60fc0488cd134514fde7


.Net: Validate other Azure deployments work for vector db

Other Azure deployments

Qdrant (azure deployment repo)
Milvus (marketplace link)
Pinecone (marketplace link)

Closing since this will be addressed with the new memory abstractions


Looks like your recipe isn't working. As a result the bundles file isn't being updated.

Describe the problem
Looks like your recipe isn't working. As a result the bundles file isn't being updated.

What was the expected behavior?
At a minimum, the configuration noted on here should be done automatically via recipes.
I managed to get around it by following your instructions, however, the one key piece that was missing was the addition of the bundle file to the bundles.php in symfony.
As a workaround, if users are seeing messages like: There is no extension able to load the configuration for "auth0" [...]
It's just adding the following line to your bundles.php
Auth0\Symfony\Auth0Bundle::class => ['all' => true]
Here's a full example of what the bundles.php should look like:

<?php

return [
    Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
    Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
    Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
    Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
    Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
    Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
    Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
    Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
    Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
    Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
    Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
    Auth0\Symfony\Auth0Bundle::class => ['all' => true],
];

Reproduction

create a fresh symfony project.
issue a composer require auth0/symfony
recipe should run which does all the configuration.

Environment

PHP 8.2
Symfony 6.2.4

Hi @rvdavidx 👋 Thanks for your report! Hmm, that's strange! Let me check into that. I don't believe that should have been required. Is your Symfony project using Flex?

So did you add it? I ran into this same issue forgetting that I've solved it already - I've wasted an hour trying to debug it.


Add mc-sgx-dcap_quoteverify crate

Current dependencies on/for this PR:

main

PR #128

PR #137   👈

This comment was auto-generated by Graphite.

Codecov Report

Merging #137 (e01fc0d) into jcape/dcap-types (3cb8df3) will increase coverage by 0.43%.
The diff coverage is 100.00%.

@@                 Coverage Diff                  @@
##           jcape/dcap-types     #137      +/-   ##
====================================================
+ Coverage             85.44%   85.87%   +0.43%
====================================================
  Files                    33       34       +1
  Lines                  1944     2004      +60
====================================================
+ Hits                   1661     1721      +60
  Misses                  283      283

Impacted Files
Coverage Δ

dcap/quoteverify/src/lib.rs
100.00% <100.00%> (ø)

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

Graphite Merge Job
Current status: 🔄 Waiting for checks to pass
This pull request is currently waiting for CI and mergeability checks to pass before being merged.
This comment was auto-generated by Graphite.

Job Reference: 6Shi6vPuuE79lf4JMQAu


Move console log API from ResourceViewModel to IResourceService

ResourceViewModel will soon be split into ResourceSnapshot and ResourceViewModel, where the snapshot will be immutable and the view model will be mutable for the UI to modify.
The view would use the ResourceViewModel.LogSource property to populate the ConsoleLogs component.
As we won't be able to send that property over the wire, we need to create a service that will achieve this.
To do this, we remove the LogSource property and create IResourceService.SubscribeConsoleLogs that provides the same interface.
We also replace the ILogSource interface, with its four members, with IAsyncEnumerable<T>, which gives a simpler implementation and enables language features like await foreach.
Another change in support of this was adding stdout and stderr file paths to ExecutableViewModel. These will be removed if DCP exposes a service for streaming logs.
The replacement of ILogSource required some restructuring of how we obtained console logs. The invocation patterns differed a fair bit, but the code ended up being cleaner. The diff is challenging though. It may be easier to read each commit separately.
Microsoft Reviewers: Open in CodeFlow

/azp run

/azp run


no-move-default-candidate

According to the docs of no-move-default-candidate, passing a non-nil value should not sort the list. However, running
(selectrum-read "Select: " '("3" "1" "2")
                :no-move-default-candidate 't)

I get the options 1,2 and 3. Am I misunderstanding something? How I prevent sorting the candidates?

The :no-move-default-candidate isn't used to control sorting. If you don't want sorting you can use:
(completing-read
 "Select: "
 (lambda (str pred action)
   (if (eq action 'metadata)
       '(metadata
         (cycle-sort-function . identity)
         (display-sort-function . identity))
     (complete-with-action action '("3" "1" "2")  str pred))))

You can also let bind selectrum-should-sort-p but be aware that this will also affect sorting for recursive minibuffer sessions.

You can also use minibuffer-with-setup-hook to set selectrum-should-sort-p to nil buffer-locally to achieve this. The advantage of doing it the way that @clemera suggested is that it will keep working even if you were to stop using Selectrum.


[Editor] Selecting smaller interval of text does not always work

Add select_all_reducedexample that shows the problem and fix it


fix description of rumor

Coverage remained the same at 58.781% when pulling 6904e6157f9c087152168e8a8276181d915326f4 on fix-reply-type-description into 3e5c879fb0493637492b0b2daf73d5d0950387a2 on master.


chore: Upgrade snapbox to 0.6

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
4 unchanged lines in 4 files lost coverage.
Overall coverage increased (+0.2%) to 29.321%

Files with Coverage Reduction
New Missed Lines
%

src/config.rs
1
3.11%

src/git/repo.rs
1
44.57%

src/legacy/git/repo.rs
1
45.94%

src/graph/branch.rs
1
61.09%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
1649

Relevant Lines:
5624

💛  - Coveralls


Switch Jenkins Security Scan to cron

There are some issues on Dependabot created PRs:

Error: Workflows triggered by Dependabot on the "push" event run with read-only access. Uploading Code Scanning results requires write access. To use Code Scanning with Dependabot, please ensure you are using the "pull_request" event for this workflow and avoid triggering on the "push" event for Dependabot branches. See https://docs.github.com/en/code-security/secure-coding/configuring-code-scanning#scanning-on-push for more information on how to configure these events.

Builds fail on main, so excluding Dependabot push events wasn't enough.

Limiting push events to main doesn't work either.


ERROR Error: Uncaught (in promise): Error: No component factory found for t. Did you add it to @NgModule.entryComponents?

Ionic version:  (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
[ ] 4.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
Please do not submit support requests or "How to" questions here. Instead, please use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:

If I create development build using command "ionic cordova build android" all functionality working fine. When I create production build using command "ionic cordova build android --prod" then for LoadingController.create method I am getting this issue
Expected behavior:

Should work same like development build.
Steps to reproduce:

Related code:

insert short code snippets here

/**
* This method is used to show preloader
* @param {void}
* No param required
* @example
* showPreloader();
* @returns  {void}
*
* Nothing to return
/
showPreloader() {
this.hidePreloader();
IonicModels.loader = this.loaderCtrl.create({});// loderCtrl is instance of LoadingController
IonicModels.loader.present();
}
/*
* This method is used to hide preloader
* @param {void}
* No param required
* @example
* hidePreloader();
* @returns  {void}
* Nothing to return
*/
hidePreloader() {
if (IonicModels.loader)
IonicModels.loader.dismiss();
}
Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
insert the output from ionic info here

cli packages: (C:\kapil\retailer-hybrid-app\node_modules)
@ionic/cli-utils  : 1.13.0
ionic (Ionic CLI) : 3.13.0

global packages:
cordova (Cordova CLI) : 7.0.1

local packages:
@ionic/app-scripts : 1.3.6
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.2.1

System:
Android SDK Tools : 25.2.3
Node              : v7.4.0
npm               : 4.0.5
OS                : Windows 7

Misc:
backend : legacy

Hello! Thank you for opening an issue with us! Would you be able to provide a sample application via GitHub that demonstrates the issue you are having? It doesn't have to be your app, but if you could start with a starter app and then add the minimal stuff to get the issue to occur that would be great.
Also, your versions of app-scripts and ionic-framework are fairly old. I don't know if doing a general upgrade of your tools and libraries would help you are not, but you might want to give that a shot too.
Thanks for using Ionic!

Hello ! Thank you for quick response. As you mentioned I have updated the ionic framework and app-script. Now it is working fine.
Thanks
Kapil Shinde

cli packages: (/../../.nvm/versions/node/v9.1.0/lib/node_modules)
@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:
cordova (Cordova CLI) : 7.1.0

local packages:
@ionic/app-scripts : 3.1.5
Cordova Platforms  : android 6.4.0
Ionic Framework    : ionic-angular 3.6.1

System:
Android SDK Tools : 26.1.1
Node              : v9.1.0
npm               : 5.5.1
OS                : Linux 4.10

Misc:
backend : pro

still i am getting the same error...
Error: No component factory found for t. Did you add it to @NgModule.entryComponents?


Many errors with broad crawl

Hello,
I'm using scrapy-playwright package to capture screenshot and get html content of 2000 websites, my main code looks simple:
def start_requests(self):
....
       yield scrapy.Request(
             url=url,
             meta={"playwright": True, "playwright_include_page": True},
       )
....
async def parse(self, response):
       page = response.meta["playwright_page"]
       ...
       await page.screenshot(path=screenshot_file_full_path)
       html = await page.content()
       await page.close()
       ...

There are many errors when I ran the script, I change CONCURRENT_REQUESTS from 30 to 1 but the results was no different.
My test included 2000 websites, but the Scrapy script scraped only 511 results (about 25% successful rate) and the script is running without more results and error logs.
Please guide me to fix this, thanks in advance,
My error logs:
2021-06-22 11:49:53 [scrapy.core.scraper] ERROR: Error downloading <GET https://www.ask.com>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/scrapy/core/downloader/middleware.py", line 44, in process_request
    return (yield download_func(request=request, spider=spider))
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 824, in adapt
    extracted = result.result()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/scrapy_playwright/handler.py", line 140, in _download_request
    result = await self._download_request_with_page(request, spider, page)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/scrapy_playwright/handler.py", line 160, in _download_request_with_page
    response = await page.goto(request.url)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 6006, in goto
    await self._async(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_page.py", line 429, in goto
    return await self._main_frame.goto(**locals_to_params(locals()))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_frame.py", line 117, in goto
    await self._channel.send("goto", locals_to_params(locals()))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
navigating to "https://www.ask.com", waiting until "load"
============================================================
Note: use DEBUG=pw:api environment variable to capture Playwright logs.
2021-06-22 11:51:24 [scrapy.core.scraper] ERROR: Error downloading <GET https://www.tvzavr.ru>
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/scrapy/core/downloader/middleware.py", line 44, in process_request
    return (yield download_func(request=request, spider=spider))
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 824, in adapt
    extracted = result.result()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/scrapy_playwright/handler.py", line 140, in _download_request
    result = await self._download_request_with_page(request, spider, page)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/scrapy_playwright/handler.py", line 160, in _download_request_with_page
    response = await page.goto(request.url)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 6006, in goto
    await self._async(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_page.py", line 429, in goto
    return await self._main_frame.goto(**locals_to_params(locals()))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_frame.py", line 117, in goto
    await self._channel.send("goto", locals_to_params(locals()))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.TimeoutError: Timeout 30000ms exceeded.
=========================== logs ===========================
navigating to "https://www.tvzavr.ru", waiting until "load"
============================================================
Note: use DEBUG=pw:api environment variable to capture Playwright logs.
.....

2021-06-22 11:51:06 [asyncio] ERROR: Task exception was never retrieved
future: <Task finished name='Task-11634' coro=<Route.continue_() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py:544> exception=Error('Target page, context or browser has been closed')>
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 582, in continue_
    await self._async(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_network.py", line 207, in continue_
    await self._channel.send("continue", cast(Any, overrides))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.Error: Target page, context or browser has been closed
2021-06-22 11:51:06 [asyncio] ERROR: Task exception was never retrieved
future: <Task finished name='Task-11640' coro=<Route.continue_() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py:544> exception=Error('Target page, context or browser has been closed')>
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 582, in continue_
    await self._async(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_network.py", line 207, in continue_
    await self._channel.send("continue", cast(Any, overrides))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.Error: Target page, context or browser has been closed
2021-06-22 11:51:06 [asyncio] ERROR: Task exception was never retrieved
future: <Task finished name='Task-11641' coro=<Route.continue_() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py:544> exception=Error('Target page, context or browser has been closed')>
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 582, in continue_
    await self._async(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_network.py", line 207, in continue_
    await self._channel.send("continue", cast(Any, overrides))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.Error: Target page, context or browser has been closed
2021-06-22 11:51:06 [asyncio] ERROR: Task exception was never retrieved
future: <Task finished name='Task-11652' coro=<Route.continue_() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py:544> exception=Error('Target page, context or browser has been closed')>
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 582, in continue_
    await self._async(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_network.py", line 207, in continue_
    await self._channel.send("continue", cast(Any, overrides))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.Error: Target page, context or browser has been closed
2021-06-22 11:51:06 [asyncio] ERROR: Task exception was never retrieved
future: <Task finished name='Task-11657' coro=<Route.continue_() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py:544> exception=Error('Target page, context or browser has been closed')>
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 582, in continue_
    await self._async(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_network.py", line 207, in continue_
    await self._channel.send("continue", cast(Any, overrides))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.Error: Target page, context or browser has been closed
2021-06-22 11:51:06 [asyncio] ERROR: Task exception was never retrieved
future: <Task finished name='Task-11669' coro=<Route.continue_() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py:544> exception=Error('Target page, context or browser has been closed')>
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 582, in continue_
    await self._async(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_network.py", line 207, in continue_
    await self._channel.send("continue", cast(Any, overrides))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.Error: Target page, context or browser has been closed
2021-06-22 11:51:06 [asyncio] ERROR: Task exception was never retrieved
future: <Task finished name='Task-11670' coro=<Route.continue_() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py:544> exception=Error('Target page, context or browser has been closed')>
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 582, in continue_
    await self._async(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_network.py", line 207, in continue_
    await self._channel.send("continue", cast(Any, overrides))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.Error: Target page, context or browser has been closed
2021-06-22 11:51:06 [asyncio] ERROR: Task exception was never retrieved
future: <Task finished name='Task-11671' coro=<Route.continue_() done, defined at /home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py:544> exception=Error('Target page, context or browser has been closed')>
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 582, in continue_
    await self._async(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_network.py", line 207, in continue_
    await self._channel.send("continue", cast(Any, overrides))
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 36, in send
    return await self.inner_send(method, params, False)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
    result = next(iter(done)).result()
playwright._impl._api_types.Error: Target page, context or browser has been closed
.....

My Scrapy settings looks like:
CONCURRENT_REQUESTS = 30
...
# Playwright settings
PLAYWRIGHT_CONTEXT_ARGS = {'ignore_https_errors':True}
PLAYWRIGHT_DEFAULT_NAVIGATION_TIMEOUT = 30000
...
RETRY_ENABLED = True
RETRY_TIMES = 3

My env:
Ubuntu 20.04 and MacOS 11.2.3
Python 3.8.5
Scrapy 2.5.0
playwright 1.12.1
scrapy-playwright 0.0.3

Are there any updates on this? I am experiencing a similar issue. I suspect that the cause is in playwright and not as much with scrapy-playwright. I haven't had time to investigate anything yet. I will try to update here, if I find anything.
My env:
Ubuntu 18.04.2

Python==3.9.5
Scrapy==2.5.0
playwright==1.12.1
scrapy-playwright==0.0.3

I scraped the first 2K domains from Majestic Million, with CONCURRENT_REQUESTS=8. I got 1540 successful responses (not all of them 200 though, let's say 1540 screenshots). I then retried the failed 460 domains, and got only 45 good responses. The websites might be different of course, but I'd suggest you try smaller runs with only the failed sites, because it might be the case that they're just banning your crawler.
I also tried creating a new context for each domain (#13), that seemed to produce a slight improvement.
In any case, I think this use case would benefit from #6, I have a few ideas but I haven't decided on one just yet. I will resume work on that after #13 is merged and released.
Additionally, if you're just taking screenshots I'd suggest to use a PageCoroutine, to reduce the lifespan and memory usage of the page object - it'll be closed on the download handler and it won't reach the callback (just a general note, I don't think it has an effect on the issue being discussed).

I scraped the first 2K domains from Majestic Million, with CONCURRENT_REQUESTS=8. I got 1540 successful responses (not all of them 200 though, let's say 1540 screenshots). I then retried the failed 460 domains, and got only 45 good responses. The websites might be different of course, but I'd suggest you try smaller runs with only the failed sites, because it might be the case that they're just banning your crawler.
I also tried creating a new context for each domain (#13), that seemed to produce a slight improvement.
In any case, I think this use case would benefit from #6, I have a few ideas but I haven't decided on one just yet. I will resume work on that after #13 is merged and released.
Additionally, if you're just taking screenshots I'd suggest to use a PageCoroutine, to reduce the lifespan and memory usage of the page object - it'll be closed on the download handler and it won't reach the callback (just a general note, I don't think it has an effect on the issue being discussed).

Hi @elacuesta
Thanks for awesome information,
I changed to use PageCoroutine, it likely performed quicker.
Maybe I knows my problem with my successful rate, I only used a server with 8 CPU cores with 64 GB RAM to run my script. So I need to decrease CONCURRENT_REQUESTS to about 5 or 6, it got better successful rate. In fact, I also scraped 1743 results from the first Majestic 2k domains, the results were slightly different every executions.

Hi @elacuesta
I crawled the first 2k domains from Majestic, the script worked as described above. However, I increased scrape about 10k domains, the script only got about 2400-2500 results and stop without any alert, the debug logs contained Target page, context or browser has been closed errors. Do you guess why?

One contributor of playwright said reusing the browser context may lead the error Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory and he recommends to use new context for new domain, more detail in playwright

Hi @elacuesta could you estimate when multiple context feature release? I want to test it to solve this issue.

Can confirm getting the latter bug with Task exception was never retrieved, just from scraping a single website. Everything seems to work and I get the scraped items so it doesn't look like hurts anything. It only happens once in a while, not every page. I am running each spider in a separate process using celery. Any way to supress the error?
[2021-07-05 22:42:30,646: DEBUG/ForkPoolWorker-100] Browser context closed: '1'
[2021-07-05 22:42:30,647: ERROR/ForkPoolWorker-100] Task exception was never retrieved
future: <Task finished name='Task-207' coro=<Route.continue_() done, defined at /home/garnax/app/lib/python3.9/site-packages/playwright/async_api/_generated.py:544> exception=Error('Target page, context or browser has been closed')>
Traceback (most recent call last):
File "/home/garnax/app/lib/python3.9/site-packages/playwright/async_api/generated.py", line 582, in continue
await self._async(
File "/home/garnax/app/lib/python3.9/site-packages/playwright/_impl/network.py", line 207, in continue
await self._channel.send("continue", cast(Any, overrides))
File "/home/garnax/app/lib/python3.9/site-packages/playwright/_impl/_connection.py", line 36, in send
return await self.inner_send(method, params, False)
File "/home/garnax/app/lib/python3.9/site-packages/playwright/_impl/_connection.py", line 54, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.Error: Target page, context or browser has been closed

A quick update from my side on this topic.
I tried using scrapy-playwright built from https://github.com/scrapy-plugins/scrapy-playwright/pull/13 to see if this would solve the memory issue (mentioned in https://github.com/microsoft/playwright/issues/6319). The issue is still that after a few hundred scraped items the playwright._impl._api_types.Error: Target page, context or browser has been closed log statement appears and no more items are scraped.
Unfortunately, it didn't help. What I changed was that I'm using a new context for each logical group of items on the website I am scraping. Previously, my spider would just process all items in a single context. The page would be closed directly after it was used in the callback. I am only scraping one website. I suspect that adding more context actually caused the memory issue to surface quicker - since I now scrape fewer items before none of the browser contexts work, nor new ones are added.
Unfortunately, I don't have more details to share. I don't think this is very helpful for the investigation of this, but I wanted to share my findings here. Hopefully, https://github.com/microsoft/playwright/issues/6319 will lead to some better memory management and this won't be an issue in the future.

Hi @Obeyed thanks for share your test.

It's been a while, but I think I understand what's happening now: #74.

I have the same issue, but finally I yield different pages in different contexts by context's name ( 'playwright_context': 'xxx' ), it works


Official Docker image not working anymore

I followed the documentation on how to use the Docker image but I'm getting the error:
Stack has not been tested with Cabal versions above 2.4, but version <IP_ADDRESS> was found, this may fail
ihaskell: Bad interface file: /home/jovyan/.stack/programs/x86_64-linux/ghc-8.8.4/lib/ghc-8.8.4/base-<IP_ADDRESS>/Prelude.hi
    mismatched interface file versions (wanted "8065", got "8084")
Bad interface file: /home/jovyan/.stack/programs/x86_64-linux/ghc-8.8.4/lib/ghc-8.8.4/directory-<IP_ADDRESS>/System/Directory.hi
    mismatched interface file versions (wanted "8065", got "8084")
Bad interface file: /home/jovyan/.stack/programs/x86_64-linux/ghc-8.8.4/lib/ghc-8.8.4/unix-<IP_ADDRESS>/System/Posix/IO.hi
    mismatched interface file versions (wanted "8065", got "8084")
Bad interface file: /home/jovyan/.stack/programs/x86_64-linux/ghc-8.8.4/lib/ghc-8.8.4/base-<IP_ADDRESS>/System/IO.hi
    mismatched interface file versions (wanted "8065", got "8084")
Bad interface file: /home/jovyan/.stack/programs/x86_64-linux/ghc-8.8.4/lib/ghc-8.8.4/template-haskell-<IP_ADDRESS>/Language/Haskell/TH.hi
    mismatched interface file versions (wanted "8065", got "8084")

Also, before that error it is downloading ghc-8.8.4 when I use lts-16.23 in my stack.yaml, but it shouldn't download anything since lts-16.23 is already the same version as the one used for the Docker image.

Hmm, can you post the command you ran? I just tried
docker run --rm -p 8888:8888 gibiansky/ihaskell

and it seemed to work okay for me. It certainly shouldn't be downloading GHC 8.8.4. What IHaskell does is that it runs stack env to get the environment variables it needs, so something weird is probably happening there.

Hmm, can you post the command you ran? I just tried
docker run --rm -p 8888:8888 gibiansky/ihaskell

and it seemed to work okay for me. It certainly shouldn't be downloading GHC 8.8.4. What IHaskell does is that it runs stack env to get the environment variables it needs, so something weird is probably happening there.

Are you possibly using an older Docker image than the current one? I think that might explain the problems you are experiencing.

Are you possibly using an older Docker image than the current one? I think that might explain the problems you are experiencing.

Are you possibly using an older Docker image than the current one? I think that might explain the problems you are experiencing.

Yeah, that's right 😅. Another reason why the docker container should be versioned: It's not immediately obvious which version you're running otherwise.
However, I still can't get it to run. No matter what my stack.yaml file looks like I get an Could not find module ‘Graphics.Rendering.Chart.Easy’ error.
This seems to be the closets to correct so far:
docker run \
    --rm \
    --publish 8888:8888 \
    --volume "$PWD":/home/jovyan/work \
    gibiansky/ihaskell

resolver: lts-16.23
packages:
    - .
    - ../ihaskell/ipython-kernel
    - ../ihaskell/ghc-parser
    - ../ihaskell/ihaskell-display/ihaskell-aeson
    - ../ihaskell/ihaskell-display/ihaskell-blaze
    - ../ihaskell/ihaskell-display/ihaskell-charts
    - ../ihaskell/ihaskell-display/ihaskell-diagrams
    - ../ihaskell/ihaskell-display/ihaskell-gnuplot
    - ../ihaskell/ihaskell-display/ihaskell-hatex
    - ../ihaskell/ihaskell-display/ihaskell-juicypixels
    - ../ihaskell/ihaskell-display/ihaskell-magic
    - ../ihaskell/ihaskell-display/ihaskell-plot
    - ../ihaskell/ihaskell-display/ihaskell-widgets

Are you possibly using an older Docker image than the current one? I think that might explain the problems you are experiencing.

Yeah, that's right 😅. Another reason why the docker container should be versioned: It's not immediately obvious which version you're running otherwise.
However, I still can't get it to run. No matter what my stack.yaml file looks like I get an Could not find module ‘Graphics.Rendering.Chart.Easy’ error.
This seems to be the closets to correct so far:
docker run \
    --rm \
    --publish 8888:8888 \
    --volume "$PWD":/home/jovyan/work \
    gibiansky/ihaskell

resolver: lts-16.23
packages:
    - .
    - ../ihaskell/ipython-kernel
    - ../ihaskell/ghc-parser
    - ../ihaskell/ihaskell-display/ihaskell-aeson
    - ../ihaskell/ihaskell-display/ihaskell-blaze
    - ../ihaskell/ihaskell-display/ihaskell-charts
    - ../ihaskell/ihaskell-display/ihaskell-diagrams
    - ../ihaskell/ihaskell-display/ihaskell-gnuplot
    - ../ihaskell/ihaskell-display/ihaskell-hatex
    - ../ihaskell/ihaskell-display/ihaskell-juicypixels
    - ../ihaskell/ihaskell-display/ihaskell-magic
    - ../ihaskell/ihaskell-display/ihaskell-plot
    - ../ihaskell/ihaskell-display/ihaskell-widgets

Yes, if you use your own stack.yaml you'll have to duplicate the existing stack.yaml to get the same functionality. This is a limitation of Docker and Stack, not an issue with IHaskell.

Yes, if you use your own stack.yaml you'll have to duplicate the existing stack.yaml to get the same functionality. This is a limitation of Docker and Stack, not an issue with IHaskell.

But how can I use it without my own stack.yaml?

But how can I use it without my own stack.yaml?

By now I tried pretty much all combinations of using a stack.yaml / not using one / different paths / …. and I can't get it to work again. It used to work back with lts-14.23.
Here is the most simple example which doesn't work although I think it should:
test.zip

By now I tried pretty much all combinations of using a stack.yaml / not using one / different paths / …. and I can't get it to work again. It used to work back with lts-14.23.
Here is the most simple example which doesn't work although I think it should:
test.zip

You need to start a notebook from within the ihaskell directory for the ihaskell-display packages to be picked up. I think this stopped working for you because of https://github.com/gibiansky/IHaskell/commit/091c934aa458f805716b653d1e3413570a2e0262#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557 which made it so that launching a notebook from the root directory would work at all instead of resulting in an incomprehensible error.
I think there's a broader discussion to be had about who the Docker image is for and what a reasonable expectation of support is. I saw it as another way to try IHaskell (and a way of getting it on mybinder.org) but it's too limited in its current form to be the primary way to work on projects or include your own dependencies etc. and I don't know enough about Docker or Stack to put in the work to make it so. I'm much more comfortable with the Nix approach and use it myself, which is why it does support all the things you want. You've also clearly been using an image from at least 9 months ago and expect the latest image to work exactly the same except for using a newer LTS, in which case you could probably copy the older Dockerfile and build your own image.

You need to start a notebook from within the ihaskell directory for the ihaskell-display packages to be picked up. I think this stopped working for you because of https://github.com/gibiansky/IHaskell/commit/091c934aa458f805716b653d1e3413570a2e0262#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557 which made it so that launching a notebook from the root directory would work at all instead of resulting in an incomprehensible error.
I think there's a broader discussion to be had about who the Docker image is for and what a reasonable expectation of support is. I saw it as another way to try IHaskell (and a way of getting it on mybinder.org) but it's too limited in its current form to be the primary way to work on projects or include your own dependencies etc. and I don't know enough about Docker or Stack to put in the work to make it so. I'm much more comfortable with the Nix approach and use it myself, which is why it does support all the things you want. You've also clearly been using an image from at least 9 months ago and expect the latest image to work exactly the same except for using a newer LTS, in which case you could probably copy the older Dockerfile and build your own image.


add sidekiq-scheduler to index

Just a quick follow up to https://github.com/Shopify/rbi-central/pull/110 where I forgot to add my new gem annotation to the index so it wasn't being fetched

And if I had added it to the index the first time, it would have caught that I had accidentally used rb instead of rbi on the annotation 🤦

It seems our checks are failing because we're not finding the method in the runtime. Do you need to do anything for these methods to exist?


Can't upgrade from beta.7 to beta.8-10

After upgrade beta.7 to beta.10 I got the following error.
Error present since beta.8
Uncaught Error: [$injector:modulerr] Failed to instantiate module ng due to:
Error: [$injector:unpr] Unknown provider: $filterProvider
http://errors.angularjs.org/1.3.0-beta.10/$injector/unpr?p0=%24filterProvider
at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.10/angular.js:78:12
at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.10/angular.js:3805:19
at Object.getService as get
at runInvokeQueue (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.10/angular.js:3883:43)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.10/angular.js:3893:11
at Array.forEach (native)
at forEach (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.10/angular.js:320:11)
at loadModules (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.10/angular.js:3875:5)
at createInjector (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.10/angular.js:3815:11)
at doBootstrap (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.10/angular.js:1476:20)
http://errors.angularjs.org/1.3.0-beta.10/$injector/modulerr?p0=ng&p1=Error…pis.com%2Fajax%2Flibs%2Fangularjs%2F1.3.0-beta.10%2Fangular.js%3A1476%3A20) angular.js:78

What is the solution to this issue?

@digish777, this issue is about a very old Angular 1.x version (1.3.0.beta.8 specifically).
Are you sure you are having the same issue?

My office is trying to upgrade from 1.2.2 to 1.5. this filter is standing in the way. do not know how to fix this. that is why I asked.

http://plnkr.co/edit/txehajjSSoMV71at9Ygc?p=preview
This is exactly what is happening to me.

Uncaught Error: [$injector:modulerr] Failed to instantiate module ng due to:
Error: [$injector:unpr] Unknown provider: $filterProvider

I found the issue is happening at 1.3.0-beta.8. What got changed and how to fix it.?

The cause of the problem is explained in the comments above. In a nutshell, you should not be putting stuff on the ng module.
The proper way to solve this is to create your own module and add that as a dependency to your other modules. E.g.:
angular.
  module('utils', []).
  filter('tel', function() { ... });

angular.
  module('test', ['utils']).
  run(function(telFilter) {
    console.log(telFilter);
  });

The hacky, unrecommended, non-future-proof way to work around it is:
angular.
  module('ng').
  config(function($filterProvider) {
    $filterProvider.register('tel', function() { ... });
  });

My case was,in my HTML file, I have declared ng-app="MyApplication" in two places.
While I removed that, the error was resolved.