Group Label Changed Comments in timeline

This targets issue #13268, by grouping label changed comments in an issue's timeline, similar to how GitHub does it. Here's an example:

Took the chance to group removing and adding as well!

Codecov Report

Merging #13304 into master will decrease coverage by 0.08%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master   #13304      +/-   ##
==========================================
- Coverage   42.17%   42.09%   -0.09%
==========================================
  Files         684      689       +5
  Lines       75546    75794     +248
==========================================
+ Hits        31865    31903      +38
- Misses      38459    38662     +203
- Partials     5222     5229       +7

Impacted Files
Coverage Δ

models/issue_comment.go
52.21% <ø> (ø)

routers/repo/issue.go
37.68% <79.16%> (+0.63%)
:arrow_up:

modules/templates/helper.go
47.89% <100.00%> (+0.63%)
:arrow_up:

cmd/cmd.go
17.85% <0.00%> (-13.40%)
:arrow_down:

models/task.go
34.90% <0.00%> (-5.32%)
:arrow_down:

services/pull/check.go
48.90% <0.00%> (-3.65%)
:arrow_down:

services/pull/temp_repo.go
26.59% <0.00%> (-3.20%)
:arrow_down:

services/mirror/mirror.go
16.17% <0.00%> (-2.35%)
:arrow_down:

services/pull/patch.go
53.97% <0.00%> (-1.71%)
:arrow_down:

modules/queue/unique_queue_disk_channel.go
53.84% <0.00%> (-1.54%)
:arrow_down:

... and 23 more

Continue to review full report at Codecov.

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

@pta2002 please update your branch.
(In general it is a better and easier if you allow maintainers to update the branch.)

Done

Unfortunately it needs another update

🚀


test

after training i'm getting memory error
bash test.sh ./data ./wdata
=== Data Pre-processing ===
Traceback (most recent call last):
File "pre_process_test.py", line 23, in
encoder = strRealTimeEncoderWrapper(args)
File "/home/zakaria/Downloads/ArabicNER/abnlp/encoder/str_encoder.py", line 35, in init
self.build_pipelines(arg)
File "/home/zakaria/Downloads/ArabicNER/abnlp/encoder/str_encoder.py", line 281, in build_pipelines
self.pipeline_dict[key] = strWERealTimePipeline(arg['strEncoder'][key])
File "/home/zakaria/Downloads/ArabicNER/abnlp/encoder/str_encoder.py", line 66, in init
self.build_pipeline(arg)
File "/home/zakaria/Downloads/ArabicNER/abnlp/encoder/str_encoder.py", line 159, in build_pipeline
for line in f.readlines():
File "/home/zakaria/anaconda3/envs/py37/lib/python3.7/codecs.py", line 709, in readlines
return self.reader.readlines(sizehint)
File "/home/zakaria/anaconda3/envs/py37/lib/python3.7/codecs.py", line 618, in readlines
data = self.read()
File "/home/zakaria/anaconda3/envs/py37/lib/python3.7/codecs.py", line 504, in read
newchars, decodedbytes = self.decode(data, self.errors)
MemoryError
=== Model Ensembling and Inferencing ===
[2019-09-04 13:45:26,511] CPU would be used.
[2019-09-04 13:45:26,520] Loading the data...
[2019-09-04 13:45:26,520] Building lm pipeline...
[2019-09-04 13:45:26,520] File not exist: /home/zakaria/Downloads/ArabicNER/wdata/dev.json
Traceback (most recent call last):
File "ensemble_ner.py", line 48, in
dev_data = strFromFileEncoderWrapper(args, processed_file = conf.input[0])
File "/home/zakaria/Downloads/ArabicNER/abnlp/encoder/str_encoder.py", line 301, in init
super(strFromFileEncoderWrapper, self).init(arg)
File "/home/zakaria/Downloads/ArabicNER/abnlp/encoder/str_encoder.py", line 35, in init
self.build_pipelines(arg)
File "/home/zakaria/Downloads/ArabicNER/abnlp/encoder/str_encoder.py", line 309, in build_pipelines
self.pipeline_dict[key] = strFromFilePipeline(arg['strEncoder'][key], key)
File "/home/zakaria/Downloads/ArabicNER/abnlp/encoder/str_encoder.py", line 252, in init
super(strFromFilePipeline, self).init(arg)
File "/home/zakaria/Downloads/ArabicNER/abnlp/encoder/str_encoder.py", line 66, in init
self.build_pipeline(arg)
File "/home/zakaria/Downloads/ArabicNER/abnlp/encoder/str_encoder.py", line 257, in build_pipeline
with open(arg['processed_file'], 'r') as fin:
FileNotFoundError: [Errno 2] No such file or directory: '/home/zakaria/Downloads/ArabicNER/wdata/dev.json'
If you suspect this is an IPython bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at<EMAIL_ADDRESS>You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.
Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
%config Application.verbose_crash=True
=== Dictionary Based Model Inferencing ===
=== Results Merging ===
Traceback (most recent call last):
File "post_process/merge_result.py", line 13, in
with codecs.open(args.model_csv, 'r', 'utf-8') as fin:
File "/home/zakaria/anaconda3/envs/py37/lib/python3.7/codecs.py", line 904, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/home/zakaria/Downloads/ArabicNER/wdata/tmp0.csv'

It seems that the error occurs when the program trying to loading the file. However, I'm not sure about the exact reason.

me too i couldn't find the reason

Maybe you can try packages like ipdb or pdb. They are very helpful in debugging programs.

it can be a memory or disk capacity problem !


Fixes UB of recvmmsg and simplifies signatures of recvmmsg and sendmmsg

The signature of recvmmsg gets changed to:
pub fn recvmmsg<'a, XS, S, I>(
    fd: RawFd,
    data: &'a mut MultiHeaders<S>,
    slices: XS,
    flags: MsgFlags,
    mut timeout: Option<crate::sys::time::TimeSpec>,
) -> crate::Result<MultiResults<'a, S>>
where
    XS: IntoIterator<Item = I>,
    I: AsMut<[IoSliceMut<'a>]>,

The signature of sendmmsg gets changed to:
pub fn sendmmsg<'a, XS, AS, C, I, S>(
    fd: RawFd,
    data: &'a mut MultiHeaders<S>,
    slices: XS,
    addrs: AS,
    cmsgs: C,
    flags: MsgFlags
) -> crate::Result<MultiResults<'a, S>>
    where
        XS: IntoIterator<Item = I>,
        AS: AsRef<[Option<S>]>,
        I: AsRef<[IoSlice<'a>]>,
        C: AsRef<[ControlMessage<'a>]>,
        S: SockaddrLike,

Fixes #2119

I've completely disabled the personality::set doctest on my branch as it seems that it's completely broken now on multiple platforms

Thanks for your review, I've also noticed your PR #2140 and applied it to the remaining pointer conversions in both functions (except this one, which is fine imo).

Done. For the sendmmsg-change, I've written a small example of what is possible now, which wasn't possible before.
https://gist.github.com/Jan561/1e44db811698d06bb247c30bbe448fc9


remove reversals

They aren't explained well enough right now to be worth it.

Perhaps we can move them to a branch?

@kern so people can try to figure out how to convey them?

yeah, and so we can try out different wordings.


UseAllOfForInheritance not working for Interfaces

I've written a Serializer using Interfaces to describe in- and outgoing model - but Swashbuckle's UseAllOfForInheritance doesn't seam to respect them. Is there a chance of a faster solution for this?
E.g.
    public class IA
    {
        public string A { get; set; }
    }

    public class IB : IA
    {
        public string B { get; set; }
    }

works just perfect while
    public interface IA
    {
        public string A { get; set; }
    }

    public interface IB : IA
    {
        public string B { get; set; }
    }

behaves like two separate classes. Guess this problem is due to .Nets quite difficult description of Interface inheritance, but a solution is quite possible. I've already tried determining the interfaces with the SelectSubTypesUsing
if (t.IsInterface) { return t.GetInterfaces(); }
But eventough the method is called and gives a correct result the swagger.json doesn't change.

I have a feeling that i got the same issue.

Already created a fix PR! Check the other post. Hoping for someone to push it ... Like ... Ever

Does it fail some tests?

Would be great if you could check. I don't get why / what test it is failing. Code looks ok for me.

Any news on this? Stuck with this issue right now again, could really use a solution :)


Datastore: broken paging next_page_token

I want to use datastore paging to fetch the query results. Specifically, I upload 11 entities to datastore and then want to fetch them (limit=10) using following code:
query = <google.cloud.datastore.Client>.query(kind='test_kind')

query_iter = query.fetch(limit=limit, start_cursor=cursor)
page = next(query_iter.pages)
next_cursor = query_iter.next_page_token
entities = list(page)

logging.info('Cursor: %s, Next cursor: %s, Loaded entities: %d.',
              cursor, next_cursor, len(entities))

(where initially cursor = None and then is set to next_cursor value)
Unfortunately, I am getting not None value for the next_cursor even there are not any more results to fetch:
# First call, everything as expected
Cursor: None, Next cursor: foo, Loaded entities: 10.

# Second call, expected next_page_token = None
Cursor: foo, Next cursor: bar, Loaded entities: 1.

# Third call, again expected next_page_token = None
Cursor: bar, Next cursor: bar, Loaded entities: 0.

It seems that next_page_token is always not None and moreover, if there is not any result to fetch, next_cursor == cursor.
Setup:
Python 2.7.12
google-cloud-datastore==1.3.0

Is this expected? If yes, how can I recognise that there are not more results to fetch?
I've checked the code briefly and it might be related to https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/datastore/google/cloud/datastore/query.py#L457. It seems like response_pb.batch.end_cursor == b'' does not hold and thus next_page_token is not set to None, but not sure why this is the case.

It looks like the API
returns a separate value "more results" which is not properly handled by the code, see https://cloud.google.com/datastore/docs/reference/rest/v1/projects/runQuery#QueryResultBatch and https://cloud.google.com/datastore/docs/reference/rpc/google.datastore.v1#google.datastore.v1.QueryResultBatch.


Add instructions for stewarding a release

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@RehanSD I like these changes, replying to all comments should take no more than 15 minutes. Could you finish it?


FIX resampling events indices

This is a one-character fix for inst.resample, when also resampling events.
The ceiling-check of the max. index of the resampled events was missing a -1, so e.g. cropping to the same data-segment between two events before and and again after resampling resulted in an error.

Can you add a test?

import numpy as np
test = np.array([1,2,3])
try:
    test[test.shape[0]]
    print('Test failed')
except IndexError:
    test[test.shape[0]-1]
    print('Test passed')

Does this suffice?

I think the test failing is unrelated to this PR.

please look for the test function that uses the code you changed.
https://github.com/mne-tools/mne-python/blob/master/mne/io/fiff/tests/test_raw_fiff.py#L969
this test should be changed to is breaks on master and works with this pull request. thanks

I have restarted the single failing Travis build just to make sure.

Very good, you only have a pep failure:
https://travis-ci.org/mne-tools/mne-python/jobs/525415877

mne/preprocessing/ica.py:2184:21: E126 continuation line over-indented for hanging indent

Fix that and set the title from FIX to MRG please.

Restarted Travis is green now.

@jeythekey do you see what Alex says about adding a test? Or do you need more support?

OK, the test should hopefully show the issue now. I am sorry, I wasn't aware of the rule, that every PR needs to come with a test obligatorily. (This could also be more explicit about this.). I also didn't know that I don't have to mimic the old behavior myself in a test, that makes of course things much more comfortable. So, thanks for the advices!

@jeythekey can you see why travis complains? I suspect pep8 errors

travis is still not happy. You'll need to update what's new. I'll let @larsoner confirm that it's actually a bug. He knows this code more than me. thx

@jona-sassenhagen Could you restart travis again, please? (I think some network/loading problem). Is anything missing here besides whats_new?

Argh missed the whats_new.rst update requirement. @jeythekey feel free to open a separate quick PR for this

Can I include the whats-new in this PR: #6246, which hopefully can be merged soon as well?

Yes that should be fine


Brewery: Fix production amounts

Amounts are changed. Have to test it to make sure this is ok,

Amounts are correct now


Migrate chef/angry chef from omnibus-chef.

This will let us build and tag versions in one place without having to bounce changes back and forth.
The chef software project has also been moved here and modified to work out of the copy checked out.

There are some files which I'm unsure whether to keep or not.  The extra copy of the LICENSE file...  we probably don't need that.  I don't know what chef-init is and it doesn't seem to be referenced anywhere.  I haven't really touched the jenkins files yet.  Please let me know if there's stuff in there that needs to be modified.

thoughts on keeping the history? It looks large, however i have found being able to read why a change was made helpful in the past. Also, brownie points for adding a link to the old pr in that.

So right now @chef/omnibus-maintainers owns the omnibus stuff, they should at least continue to have the same level of control, though I think they've been doing majority instead of 2 * :+1:

I wanted to bring history along but was unsure how to best do it.  I could try to bring the entire repo in as an unrelated branch and do a base-less merge but I hadn't done that before and didn't know how any of our changelog tools or github would react to that.
Let me give it a shot and see how it turns out.  The chef software project has lost a lot of history already due to its move from omnibus-chef to omnibus-software.  So I didn't try to preserve history for that at all.

i think git subtree will do what you want

https://git-scm.com/book/en/v1/Git-Tools-Subtree-Merging

This pull request seems to be doing very bad things to the github UI :)  But it hasn't broken yet.
@danielsdeleo omnibus-maintainers is for omnibus itself right?  I don't see a maintainers file in omnibus-chef and reviews are more ad-hoc there.

/cc @schisamo

We shouldn't need to bring any of these files over:
Legacy stuff from a previous iteration of the Jenkins pipelines:
omnibus/jenkins/Gemfile
omnibus/jenkins/Gemfile.lock
omnibus/jenkins/build
omnibus/jenkins/build.bat
omnibus/jenkins/chef-platform-names.json
omnibus/jenkins/chef.json
omnibus/jenkins/client-test
omnibus/jenkins/client-test.bat
omnibus/jenkins/dna-solaris2.json
omnibus/jenkins/dna-windows.json
omnibus/jenkins/dna.json
omnibus/jenkins/install-test
omnibus/jenkins/install-test.bat
omnibus/jenkins/release.rb
omnibus/jenkins/solo.rb
omnibus/jenkins/verify-chef-container.sh

Package resource files for non-Chef projects:
omnibus/resources/chefdk/pkg/background.png
omnibus/resources/chefdk/pkg/license.html.erb
omnibus/resources/chefdk/pkg/welcome.html.erb
omnibus/resources/push-jobs-client/pkg/background.png
omnibus/resources/push-jobs-client/pkg/license.html.erb
omnibus/resources/push-jobs-client/pkg/welcome.html.erb

So, having anything in config/software is likely smell that there's copypasta between chef and chef-dk and all those definitions need to be moved into omnibus-software.
The postinst scripts are also commonly updated in both places, and now in two different projects those will tend to diverge when they should not.  That functionality likely needs to be moved into omnibus (and really we can make the server and everything else better here as well, we hit postinst bugs with RPM in the server a couple years after we fixed that in the client, and i wouldn't be too surprised if the server product is still lagging in terms of bugfixes here).
Also I was just told that jenkins/client-test was still the way we're testing.  If its not, I could still use a pointer to where that script now lives.

@lamont-granquist jenkins\verify-chef.[sh|bat] is what we test with now.

@lamont-granquist We'll still be able to share software definitions between chef/chef/omnibus and chef/chef-dk/omnibus via the <PROJECT>/omnibus/Gemfile.

Cool, I have some edits for verify-chef then once this lands, some stuff got lost in the translation from the old code.
And what I'm trying to say is that I don't think I should see these files in this PR:
omnibus/config/software/chef.rb
omnibus/config/software/openssl-customization.rb
omnibus/config/software/shebang-cleanup.rb
omnibus/files/openssl-customization/windows/ssl_env_hack.rb
Those need to be moved back into omnibus-software, and pulled via the chef/omnibus/Gemfile, and pulled into Chef-DK similarly.

(And I do think we need a postinst/postrm template generator built into omnibus which can be reused to DRY all those out, but we've had that issue for a long time, so I don't think its a blocker, but this will make that problem worse--and probably make it more visible).

So I'm :-1: on this until Lamont's comments are resolved. I'd like to see us make sure we don't copy pasta ourselves to death - there's a lot here (images, post* files, software stuff) that overlaps.

I really want this to happen, but agree that we don't want to get into a state where we have a lot of duplication between projects. Also, extracting shared stuff should make it relatively painless to make the same change to ChefDK, which would be great.

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
Non-GitHub Verified Committers
There are 1 commit author(s) whose commits are authored by a non-GitHub verified email address. Chef will have to manually verify that they are authorized to contribute.
Please sign the CLA here.

We're going to close this PR for now - not because we don't want to split out omnibus-chef, but because this has rotted quite badly on both sides and will probably need revisiting with a large axe.
Thanks!


Tree's "item_activated" and "item_double_clicked" signals

Godot version:
ad5ac05
Issue description:
According with the docs, item_activated is emitted when an item is double clicked. However, there is a signal named item_double_clicked which says it does exactly the same thing.
I tested both, and seems that only item_activated is emitted, so what's the point of the other signal?

According to git blame it was added by @djrm in 70c9979cce, later modified by @volzhs.

based on commit, item_activated is emitted when double click on label,
and item_double_clicked is emitted when double click on icon.

@volzhs I see. But neither the signal names or their descriptions even remotely imply that.

need someone to update docs I think.
but... it's not me, not a native speaker.

Maybe we should start maintaining a new list for the stuff we'd like to rename the day where we'll allow ourselves to break compatibility.


Dependencies are a comma separated string - deserialization fix

This fixes #33

This fixes #33 only on task 2.5.1. On version 2.5.0 this fails (and v2.5.1 fails to compile on travis hosts - gcc update?). I'm open to ideas for universal fix.

fixed with: https://github.com/DavidBadura/Taskwarrior/commit/a786109337141b50165f22cb6cf8bbf9e46bd33c


In which unit is the callback

Hello there,
I am on, to use the SDK for a small test application.
In which unit is the response? m/s?
Kind regards
Auryn

Yep, the wind speed unit is in meters per second.

@aokholm Thanks a lot


Please help https://github.com/PsychoTea/MeridianJB/releases/tag/v0.9-007

 7p 10.2.1 Meridian-v0.9-007

1.after jailbreaked reboot
2.cydia missing
3.shh command:rm /.meridian_installed ,it told me "-sh: rm: command not found"
ssh
4.I tried Meridian-pb1 Meridian-pb2 Meridian-pb3 Meridian-pb4 Meridian-pb5 Meridian-v0.9-001 -Meridian-v0.9-007
but, it didn't work
5.I found yalu102-beta7-always-install-cydia.ipa, just that way always-install-cydia,pls help.

no afc2
no filza ifile mterminal


Priority List - READ BEFORE CONTRIBUTING

[ ] move next.dogehouse.tv to dogehouse.tv

[ ] finish scheduled rooms page
[ ] fix important github issues about next.dogehouse.tv

[ ] review old pull requests
[ ] create super admins
[ ] create bot accounts

[ ] room owner can allow all bots | block all bots | or individually allow bots to their room

[ ] create debugging system to pinpoint why sometimes you can't hear someone in rooms with tons of speakers

How can I help?

triage issues

pick a bug, recreate it locally, then fix it

match design on figma

on existing pages if you notice an inconsistency between figma and the website you can make a pr to fix it
we will be releasing new components that you can build

What about X feature I want to PR to DogeHouse?
Ask me before starting and tell me the problem you are trying to solve with this feature (also make sure at least one other person besides yourself has experienced this problem).

first (:

Will the old UI remain accessible?

Sussus Amogus

Can I Pull this Issue?

@somesh333 what do you mean by can you "pull" the issue?

new github feature

you can now download issues

I think this should be added to the contributing file or main README.md?

I think this should be added to the contributing file or main README.md?

Done!

Awesome!

[ ] create super admins
[ ] create bot accounts

Both of them will eventually have to turn into a reality due to abuse and other factors we can not control.

Bot accounts and debugging system done.

test


Add go modules file to dns/jsonify.

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Adds go modules to jsonify, in order to pass kubedns presubmit.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

/assign @wojtek-t @jkaniuk

/lgtm
/approve


fix: poetry 1.1.15

:tada: This PR is included in version 1.4.7 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Gloss support for Swift 2.3 and iOS 10 SDK beta 1

Deprecates #172
@hkellaway I was also thinking that changes in Sources/Encoder.swift could be also submitted to master. It would then work on both iOS 9 and 10 SDK.
I can make another PR for that, if you feel this is worth it.

good thought. want to submit that change against develop - wrapped in a a check for Swift 2.3 ?


Why there is always a small noise point at the begining of generated speech on pretrained speaker in base-model

We are trying the pretrained base-model and select the pretrained speaker defined in webui. but any speaker, any input text, the  generated speech will always starts with a small noise piece like below [ it sound like a short Electric noise]:

what is the reason? is there any sampling method to produce this piece? or this piece is just come from the CosyVoice models[LM , or Flow]？   and how to avoid such a noise?

this is the base mode bug, during base mode training, it didn't consider the case when condition mel is all zero, you can train with our opensource code and it can fix the bug

thank you


builtin variables are case insensitive

The builtin variables are case sensitive in the language.
UNT = unt = uNt = Unt = ...
Currently they only are honoured exactly like in the variables.bbl file.
see #23

Fixed now.


Bump splinter version to 0.18.0, remove verison pinning, bump package …

…version to 0.3.0

Codecov Report

Merging #10 (8067970) into master (7cdb81e) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

:exclamation: Current head 8067970 differs from pull request most recent head 8c160fc. Consider uploading reports for the commit 8c160fc to get more accurate results

@@            Coverage Diff             @@
##           master      #10      +/-   ##
==========================================
- Coverage   92.07%   92.02%   -0.05%
==========================================
  Files           7        6       -1
  Lines         328      326       -2
==========================================
- Hits          302      300       -2
  Misses         26       26

Impacted Files
Coverage Δ

pytest_splinter4/plugin.py
89.51% <ø> (-0.05%)
:arrow_down:

pytest_splinter4/__init__.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Truncating predictions

Thanks for open-sourcing the repo, code is great and really easy to reproduce thanks to docker, your detailed explanations in the README and your finetuned checkpoints !

I have a question about predictions post-processing.
I could reproduce paper's results on CNN/DM datasets with the command provided in the README. My results are :

R-1
R-2
R-L

43.06
20.42
40.32

But if I run the same command removing the truncation (--trunc_len 0 instead of
--trunc_len 70), results are much lower :

R-1
R-2
R-L

42.05
19.90
39.44

Is this normal ?
In other codebase, I've never seen predictions being truncated. I'm wondering why it is necessary with UniLM.
I'm also curious to hear your opinion about the reason why the score is lower without truncation.

We use the F1 version of ROUGE, which penalizes the length. For the dataset, it's a common practice to set a minimum length and a maximum length to control the output. For example, in the code https://github.com/sebastianGehrmann/OpenNMT-py/blob/copy_constraint/opts.py#L416 , there are -min_length and -max_length flags used for this purpose.

Ha right !
You are completely right !

In other code, this "truncation" is mostly done while predicting.
It seemed odd to me to truncate after predicting.
But indeed it's completely equivalent...
Thank you for the clarification and sorry for the bother..

Yes, they are equivalent implementations for better flexibility. Thanks for the comments.


shape_predictor.h missing parallel_for_extension.h include

#126 from @e-fominov introduced threaded computation for shape prediction.
Since then the build of my project using dlib fails with:
include/dlib/image_processing/shape_predictor.h:805:13: error: ‘thread_pool’ has not been declared
adding parallel_for_extension.h include to shape_predictor fixes this.

Thanks for reporting this.  It should be fixed now.


[hold] ytt modification rule

~allows folks to rebase service accounts with custom secrets (merges -token- based on existing object from cluster): https://github.com/vmware-tanzu/carvel-kapp/issues/191~ (covered in ytt rebase rule PR)
allows to do some modifications of resources more dynamically based on new+existing resources
allows to implement kapp feature via ytt modification rule for https://github.com/vmware-tanzu/carvel-kapp/issues/224

internal impl that would be included in kapp https://gist.github.com/cppforlife/e6b130619a9886d6eefa7ff6cde4a9ca (depends on https://github.com/vmware-tanzu/carvel-ytt/issues/426)

split out ytt rebase rule into https://github.com/vmware-tanzu/carvel-kapp/pull/277

@cppforlife ,  Lets discuss this. can we close it? or more work needed? how do we take this forward.

Does this mean https://github.com/vmware-tanzu/carvel-kapp/issues/224 is now unblocked?


New File improvements

Scenario:

Editing a file y.txt inside a directory x
I want to create a new file z.txt in directory x
I am a user who likes to be efficient and loves keyboard shortcuts

Workflows to create new files:

Take over control of the mouse/trackpad, navigate to +file icon (top left next to explorer). A new file is created inside x and I can name it z.txt, then edit its contents.
Press cmd+n, which opens a new file. Now I want to save it so I press cmd+s and proceed to name the file, navigate to x directory and save. I can edit the contents before and after saving

Problems with current workflows:

Method 1 of creating a new file is good, but I need to take control of the mouse/trackpad.
Method 2 can be done keyboard-only but is less efficient than method 1 as it requires thinking about where x directory is and how to find it.

Improvement proposal:
I am proposing the ideal workflow with the given scenario.

Edit the file y.txt, which is in x
Press cmd+n, editor opens new file
I type the file name inside the new editor tab (as file content)
Press cmd+s to save file, the editor takes the first line of the content as file name and saves it into xb y default
The first line either stays as it is or is deleted and I can go on writing the new file

Atom has a great package called Advanced Open File which is a fork of multiple earlier projects. I think this would be the ideal solution to what is being described above & should be added to the core functionality of VS Code instead of a plugin.  It does pretty much what you're describing @matejkramny and a bit more. Instead of writing the text in the new line you write it in the Command Pallete or the Goto File window. It essentially allows you to either open a file or create a new file (including any necessary folders that need to be created). It also lets you tab to open a folder that you have partially typed. Very slick.

A improvement to this could be when your focus is on a folder in the Explorer pressing Ctrl+n would provide the same functionality as right clicking the folder and selecting new file.
This functionality could be extended to the files inside the folder so it would create a file next to the currently selected file when the focus is on the explorer.

There is file: new file command that does this. Just add a custom keyboard shortcut which will smoothen your process.


Added a new Course

I have added a new, head-to-toe, yet free course under the Flask section. I personally have taken this course on YouTube and I have to say it was phenomenal. It's also one of the very few updated tutorials regarding Flask out there, as of recently updated in Feb 2022. It also has a lot of detail, which is worth knowing!
What does this PR do?
This PR adds a new course under the Flask Section, which I must say will make a huge addition to your wide range of lists of free courses.
For resources
This course is published on YouTube
Why is this valuable (or not)?
This course is very valuable, as this course teaches everything you need to know about Flask. From starting a simple server returning Hello World to a full-fledged blog application to deployment - all are here, with a lot of behind-the-scenes stuff. A great, yet free recourse.
How do we know it's really free?
It's available on YouTube for free
For book lists, is it a book? For course lists, is it a course? etc.
This is a Course
Checklist - Fullfilling all!:

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

Follow-up

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

Thanks, and welcome to free-programming-books!


Unrecognized argument

Could someone enlighten me as to what the following means and how to fix it.
Thanks.
INFO Downloading: One Plus One Michael Caton.ts
usage: livestreamer [OPTIONS] [URL] [STREAM]
livestreamer: error: unrecognized arguments: hlsvariant://http://iviewmetered-vh.akamaihd.net/i/playback/definst/video/news_ONEs_Tx_1208,650000,500000,220000,60000,.mp4.csmil/master.m3u8?hdnea=st=1471316206~exp=1471326205~acl=/*~hmac=bdf5e200e5a18c890ed8e73857f13f3eb1d372adf661f89a54823d99ed791934 best
ERROR livestreamer exited with error code: 2
Press return to continue...

I would make sure to surround the URL link to your video in quotes.
That said, this Akamai link has expired and is no longer valid, so I have no way to test this theory.

From: bpjh56<EMAIL_ADDRESS>Sent: Monday, August 15, 2016 10:59:24 PM
To: chrippa/livestreamer
Subject: [chrippa/livestreamer] Unrecognized argument (#1441)
Could someone enlighten me as to what the following means and how to fix it.
Thanks.
INFO Downloading: One Plus One Michael Caton.ts
usage: livestreamer [OPTIONS] [URL] [STREAM]
livestreamer: error: unrecognized arguments: hlsvariant://http://iviewmetered-vh.akamaihd.net/i/playback/definst/video/news_ONEs_Tx_1208,650000,500000,220000,60000,.mp4.csmil/master.m3u8?hdnea=st=1471316206~exp=1471326205~acl=/*~hmac=bdf5e200e5a18c890ed8e73857f13f3eb1d372adf661f89a54823d99ed791934http://iviewmetered-vh.akamaihd.net/i/playback/_definst_/_video/news_ONEs_Tx_1208_,650000,500000,220000,60000,.mp4.csmil/master.m3u8?hdnea=st=1471316206~exp=1471326205~acl=/*~hmac=bdf5e200e5a18c890ed8e73857f13f3eb1d372adf661f89a54823d99ed791934 best
ERROR livestreamer exited with error code: 2
Press return to continue...

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/chrippa/livestreamer/issues/1441, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AESJ1of-rNoHQ2kocM8jjYYoAhNeDP-wks5qgSeMgaJpZM4Jk_Ge.

Thanks for replying.
How can you tell if the link has expired?
How can you change the code so that the URL link has quotes?

How can you tell if the link has expired?

hdnea=st=1471316206~exp=1471326205
st= is the time when the link was generated and exp= is expiration time. Time is in epoch/unix time format.

How can you change the code so that the URL link has quotes?

?? just add wrap the url with quotes ""
e.g.
hlsvariant://"http://iviewmetered-vh.akamaihd.net/i/playback/_definst_/_video/news_ONEs_Tx_1208_,650000,500000,220000,60000,.mp4.csmil/master.m3u8?hdnea=st=1471316206~exp=1471326205~acl=/*~hmac=bdf5e200e5a18c890ed8e73857f13f3eb1d372adf661f89a54823d99ed791934" best

Sorry for what appears to be a dumb question "how do you add quotes".
I'm actually using a program called webdl (from https://delx.net.au/git/webdl).
This is a series of scripts that use livestreamer to download programs from Australian TV like ABC Iview.
The scripts somehow find the URL and pass it to livestreamer to download.

I'm actually using a program called webdl (from https://delx.net.au/git/webdl).

Well this is issue tracker for livestreamer. Issue tracker for Webdl is here

Ta,
I'll post the question there.


[webostv] play_media(): improve best matching channel

Description:
Improvement over #13934
Selects the bast matching channel base on levenstein distance
This allows to better control by voice.
E.g. if I say "CNN", but "c n n" is recorded, it can still match the channel "CNN" (butnot "CBO")
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#5312
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies have been added to the REQUIREMENTS variable ([example][ex-requir]).
[x] New dependencies are only imported inside functions that use them ([example][ex-import]).
[x] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.

Off topic @stephanerosi: how do u control channels by voice, do u have a link or some docs that could guide me ?
Thanks

@rofrantz
I use Google Assistant > IFTTT > Home Assistant play_media service
IFTTT configuration :
Trigger : Google Assistant > Say a phrase with a number > "Put channel # on TV"
Action : Webhooks > url : "https://myhomeassistantdomain:8123/api/services/media_player/play_media?api_password=MYPASSWORD"  > POST >  json > {"entity_id": "media_player.lg_webos_smart_tv", "media_content_id": "{{NumberField}}", "media_content_type": "channel"}

@stephanerosi this should not be merged?

@abmantis Yes, it should be, but I don't understand why it says I closed it 40 minutes ago... and I can't reopen it. Strange...

@abmantis Ok, I got it. It's ready to be merged now!

Great! By the way, are you doing "commit --amend"? Because I see only 1 commit in this PR, even tough you made multiple commits.
Please keep each commit separated since it makes it easier to review. For example, I review the initial code and then you make some small change. At that point I only need to review that small change. If you overwrite the previous commit, I need to review everything again.

@abmantis Yes, sorry I'm pretty new to this and mixed up my commits. I'll do better nex time...

@balloob but the platform has semantic context to estimate the correct value. The platform that calls the service (alexa, for example) has no way to know if it should pass 'CNN' or 'C N N', but this platform knows.

Indeed this should be reopened

No.
It's up to voice code to match against the right data and then send the right data to the API.

Say "TF 2" to google/alexa/siri or whatever assistant and u'll get "TF 2"(with space) instead of TF2 (no space) and:

we cant fix it in tv since the digital channel name are provided by the cable/sat provider
we cant fix it in the assistant either, so ur suggestion is also down if I understood correctly ur proposal

All we can do is try to find a channel name without space; please notice the "try" part.

Let us know @balloob if u see any other solution to the problem described

What about putting the "guessing" code in conversation component?
Here is the way I see it:

Google/Alexa/IFTTT => API call to conversation/process for "Put FR 2 on television"

Conversation is configured with intent "Put {channel} on television" => "FR 2"

Conversation calls media_player for channels list and find the best match for "FR 2" => "FR2"

Conversation calls play_media with "FR2"

Maybe 3-4 could be made with a template function or something similar? E.g. "{{ best_match(channel, media_player.channel_list) }}"

Not everything needs to be part of the Home Assistant codebase. Create your own custom component, register it as an intent handler, fetch the channels from LG, fuzzy find the one you want, call the LG service.

@balloob I get your reasons, but a custom component doesn't allow me to make the code easily available to the community... and I'm sure I'm not the only one who wants to put a channel on the TV by saying "Ok, Google, put TF1 on television".
Would on of the 3 next solutions would be ok for you?
A. place the code in the 3rd party library (if it's ok with the maintainer)
B. create a best_match template function that the user would use in intent_script (and document it)
C. create an intent_handler component (but I don't know where to put it)
Thanks


Accepts all args in .mill-jvm-opts now

Resolves #1682 by allowing mill to be configured to work with incubator modules and other uncommon builds.

I have been having crashed while using mill with a java incubator technology called foreign.
On this branch of my project, running ./mill slinc.test would result in a crash.
[error] java.lang.IllegalAccessError: class jdk.internal.foreign.CABI (in unnamed module @0x7660c6da) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x7660c6da
[error] jdk.internal.foreign.CABI.<clinit>(CABI.java:42)
[error] jdk.internal.foreign.PlatformLayouts$1.<clinit>(PlatformLayouts.java:38)
[error] jdk.internal.foreign.PlatformLayouts.pick(PlatformLayouts.java:38)
[error] jdk.incubator.foreign.CLinker.<clinit>(CLinker.java:241)
[error] io.gitlab.mhammons.slinc.components.NativeInfo$given_NativeInfo_Long$.<clinit>(NativeInfo.scala:30)

Initially I thought it was a dotc bug, and reported it as such but the devs swore it was not dotc failing, so I added a rudimentary sbt build to my project, and the same code does in fact compile with sbt slinc/test.
I found a fix for this issue in .mill-jvm-opts. Mill needs these settings passed in to reliably compile my code:
--add-modules=jdk.incubator.foreign
--enable-native-access=ALL-UNNAMED

I originally did not think mill needed this, as I've been able to get mill to compile my code without them for a long time (as opposed to SBT, which fails instantly without this in .jvmopts). It turns out there's still parts of mill that needs these settings.
The current version of mill cannot use these options in .mill-jvm-opts, as it only accepts -X options and filters all others. This PR removes that restriction.

Turns out, this implementation is incomplete, as the application logic in the embedded mill starter script is still filtering.

#1929


make pull request for helix editor

https://old.reddit.com/r/HelixEditor/comments/17ui3ax/syntax_highlighting_for_cobol/
someone suggested
But fortunately, it looks like there actually is an actively maintained tree-sitter parser for Cobol: https://github.com/yutaro-sakamoto/tree-sitter-cobol. It's not integrated into Helix yet, so maybe you can make a request/PR for it.
I have no experience with that, but it would be very much appreciated

Same would be nice to do for https://github.com/nvim-treesitter/nvim-treesitter


Vulnerability roundup 107: mediawiki-1.35.2: 9 advisories [8.8]

search, files

[ ] CVE-2021-41801 CVSSv3=8.8 (nixos-21.05)
[ ] CVE-2021-41799 CVSSv3=7.5 (nixos-21.05)
[ ] CVE-2021-42040 CVSSv3=7.5 (nixos-21.05)
[ ] CVE-2021-41798 CVSSv3=6.1 (nixos-21.05)
[ ] CVE-2021-42041 CVSSv3=6.1 (nixos-21.05)
[ ] CVE-2021-42043 CVSSv3=6.1 (nixos-21.05)
[ ] CVE-2021-41800 CVSSv3=5.3 (nixos-21.05)
[ ] CVE-2021-42042 CVSSv3=4.8 (nixos-21.05)
[ ] CVE-2021-42044 CVSSv3=4.8 (nixos-21.05)

CVE details
CVE-2021-41801
The ReplaceText extension through 1.41 for MediaWiki has Incorrect Access Control. When a user is blocked after submitting a replace job, the job is still run, even if it may be run at a later time (due to the job queue backlog)
CVE-2021-41799
MediaWiki before 1.36.2 allows a denial of service (resource consumption because of lengthy query processing time). ApiQueryBacklinks (action=query&list=backlinks) can cause a full table scan.
CVE-2021-42040
An issue was discovered in MediaWiki through 1.36.2. A parser function related to loop control allowed for an infinite loop (and php-fpm hang) within the Loops extension because egLoopsCountLimit is mishandled. This could lead to memory exhaustion.
CVE-2021-41798
MediaWiki before 1.36.2 allows XSS. Month related MediaWiki messages are not escaped before being used on the Special:Search results page.
CVE-2021-42041
An issue was discovered in CentralAuth in MediaWiki through 1.36.2. The rightsnone MediaWiki message was not being properly sanitized and allowed for the injection and execution of HTML and JavaScript via the setchange log.
CVE-2021-42043
An issue was discovered in Special:MediaSearch in the MediaSearch extension in MediaWiki through 1.36.2. The suggestion text (a parameter to mediasearch-did-you-mean) was not being properly sanitized and allowed for the injection and execution of HTML and JavaScript via the intitle: search operator within the query.
CVE-2021-41800
MediaWiki before 1.36.2 allows a denial of service (resource consumption because of lengthy query processing time). Visiting Special:Contributions can sometimes result in a long running SQL query because PoolCounter protection is mishandled.
CVE-2021-42042
An issue was discovered in SpecialEditGrowthConfig in the GrowthExperiments extension in MediaWiki through 1.36.2. The growthexperiments-edit-config-error-invalid-title MediaWiki message was not being properly sanitized and allowed for the injection and execution of HTML and JavaScript.
CVE-2021-42044
An issue was discovered in the Mentor dashboard in the GrowthExperiments extension in MediaWiki through 1.36.2. The Growthexperiments-mentor-dashboard-mentee-overview-add-filter-total-edits-headline, growthexperiments-mentor-dashboard-mentee-overview-add-filter-starred-headline, growthexperiments-mentor-dashboard-mentee-overview-info-text, growthexperiments-mentor-dashboard-mentee-overview-info-legend-headline, and growthexperiments-mentor-dashboard-mentee-overview-active-ago MediaWiki messages were not being properly sanitized and allowed for the injection and execution of HTML and JavaScript.

Scanned versions: nixos-21.05: 3b1789322fc.
Cc @redvers

Should be resolved by the 1.35.4 update #147796


Mobile touch friendly

Is there a way to make this touch friendly?

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 11 Feb 2012 at 12:22

How to make the touch smooth


Fix/lw 9414 deposit at unregister stake key on master

Context
Certificates that register stake key include the deposit value, as configured in the protocol parameters at the time of submitting the transaction
Currently, the deposit value is taken from the protocol parameters, and used as implicit coin when deregistering the stake key
In the conway era, the protocol parameters could change often as a  result of a governance action, leading to a discrepancy in the deposit value at stake key registration and the deposit value at stake key deregistration.
Proposed Solution
For this reason, the stake key deposit value at the time of registering the stake key should be stored in RewardAccountInfo from ObservableWallet.delegation.rewardAccounts$.
It could for example be undefined when the stake key is not registered, and the real value when the stake key is registered.
This way, on deregistering a stake key, SDK can use this value as deposit value.
Important Changes Introduced

Code looks good, but would be great to add basic some tests for new utils that are exported from index file(s)

Done here: 65880a5 and cc0c3c7


The program crashed with a "Name or service not known" error, and only downloaded 20 images

I ran the program, and it said that it found 13 threads, and would check again in 10 minutes. But less than 10 minutes later, it gave this error:
06/Apr/2016-18:24 Searching threads...
13 Threads download are active!
Searching again in 10 minutes!
Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/lib/python3.4/urllib/request.py", line 1182, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.4/http/client.py", line 1088, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.4/http/client.py", line 1126, in _send_request
self.endheaders(body)
File "/usr/lib/python3.4/http/client.py", line 1084, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.4/http/client.py", line 922, in _send_output
self.send(msg)
File "/usr/lib/python3.4/http/client.py", line 857, in send
self.connect()
File "/usr/lib/python3.4/http/client.py", line 834, in connect
self.timeout, self.source_address)
File "/usr/lib/python3.4/socket.py", line 494, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "/usr/lib/python3.4/socket.py", line 533, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.4/dist-packages/scanner/download.py", line 55, in download_thread
urllib.request.urlretrieve('http:' + link, directory + img)
File "/usr/lib/python3.4/urllib/request.py", line 186, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/usr/lib/python3.4/urllib/request.py", line 161, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.4/urllib/request.py", line 463, in open
response = self._open(req, data)
File "/usr/lib/python3.4/urllib/request.py", line 481, in _open
'_open', req)
File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain
result = func(*args)
File "/usr/lib/python3.4/urllib/request.py", line 1210, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.4/urllib/request.py", line 1184, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -2] Name or service not known>
Now, the program didn't close, but:

It only downloaded about 20 images, when there are hundreds on 4chan.
Some of the images are broken/corruped.

What could be happening here?

It seems that for some unknown reason the script is trying to download a 404'd image causing the thread where the picture was found to stop downloading, all other threads are still downloading fine though.
I'll try to make a fix for this ASAP.
In the meantime the rest of your threads will continue downloading and 4scanner will continue looking for new threads every 10 minute
Thanks for testing the script by the way!

I made a quick fix, there is now an exception checking on every image downloaded. So if an image fail to download the rest of the thread should still download without problem.
Just update 4scanner with pip3 to get the fix!

Got it.

Good!
I'll close this issue for now if all is working. If you got any other problems just open another issue.

Hey, it crashed again. It gave the same error, except this time, the program actually ended, and went back to the terminal.
Is there some way I can give you more information?

what does the "pip3 freeze" command gives you? it should say something like 4scanner==1.0.5
Theres nothing different in the error message? is the error still on this line like in the first error?
File "/usr/local/lib/python3.4/dist-packages/scanner/download.py", line 55, in download_thread
urllib.request.urlretrieve('http:' + link, directory + img)

Yeah, it says 4scanner==1.0.5.
The full error message is here: http://pastebin.com/pNT4i4BA

Ok I think I know whats causing your problem, I don't have time to fix it right now but I'll try to fix it tomorrow morning. I can't replicate it on my machine though for some reason.

Got it.

I never managed to reproduce the issue but there is now a check when trying to get all the thread of a board. (this is where the crash was happening for you) If 4scanner can't get the thread catalog from 4chan it will print something like: Error while opening [board] catalog page. Retrying during next scan.
Nothing will be downloaded for this board but 4scanner will try searching it again after 10 minutes.
New 4scanner version is 1.0.7

Could you give me an update on this issue when you have some time so I can close the issue or continue working on a fix?

Sorry, it seems to be working fine now. If I get any more problems I'll let you know.

All good!


Add a feature to change difficulty of falabracman activity

add a feature to change difficulty of falabracman activity like easy, medium, hard.
changing difficulty may includes changing no of obstacles and changing player's speed
setting screen may get updated for this.

I don't see the interest of this. Falabracman should stay a very simple activity.
Plus, it's a young activity (not yet released), will be better to wait feedback from the field.

okay, thanks.


Documentation

Catchall for documentation. Need to update sphinx conf from SuSie-PCA to sushie.

[x] Tutorial for molQTL scan / run and output prediction weights for FUSION
[x] API

A few more minor things:

[ ] Update install to hide pip install until we push to PyPi [or push to PyPi]
[ ] no_compress description seems to be opposite of the name (i.e. compress)?


Could not resolve composable

Hello,
Trying to use the plugin with Vue 3 Typescript. So currently the "@mathieustan/vue-intercom": "^1.0.0-alpha.0"
For some reason after I npm i the alpha package does not contain the "composable" folder and it results in this error:
✘ [ERROR] Could not resolve "./composables"

    node_modules/@mathieustan/vue-intercom/lib/index.mjs:2:45:
      2 │ import { initIntercom, IntercomSymbol } from "./composables";
        ╵                                              ~~~~~~~~~~~~~~~

/app/node_modules/esbuild/lib/main.js:1591
  let error = new Error(`${text}${summary}`);
              ^

Error: Build failed with 1 error:
node_modules/@mathieustan/vue-intercom/lib/index.mjs:2:45: ERROR: Could not resolve "./composables"
    at failureErrorWithLog (/app/node_modules/esbuild/lib/main.js:1591:15)
    at /app/node_modules/esbuild/lib/main.js:1047:28
    at runOnEndCallbacks (/app/node_modules/esbuild/lib/main.js:1463:61)
    at buildResponseToResult (/app/node_modules/esbuild/lib/main.js:1045:7)
    at /app/node_modules/esbuild/lib/main.js:1157:14
    at responseCallbacks.<computed> (/app/node_modules/esbuild/lib/main.js:694:9)
    at handleIncomingPacket (/app/node_modules/esbuild/lib/main.js:749:9)
    at Socket.readFromStdout (/app/node_modules/esbuild/lib/main.js:670:7)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12) {
  errors: [
    {
      detail: undefined,
      id: '',
      location: {
        column: 45,
        file<EMAIL_ADDRESS>        length: 15,
        line: 2,
        lineText: 'import { initIntercom, IntercomSymbol } from "./composables";',
        namespace: '',
        suggestion: ''
      },
      notes: [],
      pluginName: '',
      text: 'Could not resolve "./composables"'
    }
  ],
  warnings: []
}

Thank for the help !

I have the same problem

got the exact same error, please fix this asap 😢

I have the same problem

It should be fixed:  https://github.com/mathieustan/vue-intercom/releases/tag/%40mathieustan%2Fvue-intercom%401.0.0-alpha.2
Sorry for this very long delay. I don't have much time for this.


[Gui] Hdf5TreeView

Provide a tree to display HDF5 files.
Can be checked here https://github.com/vallsv/silx/tree/hdf5widget

[x] Qt-API
[x] Qt-like events
[x] Icons
[x] Drag and drop to reorder files
[x] Drop external file
[ ] Easy to create with specific columns
[x] Auto column size
[x] Support files with broken links
IO

[x] HDF5
[x] Spec file
[x] fabio

[ ] Fast enough for file containing 100000 datasets (write now it takes +/-5 seconds)
Context menu

[ ] Close file
[ ] Resync file

[x] Example
@t20100 brainstorming

[ ] Update model to support weakref
[ ] Create signals for fileLoaded, beforeFileClosed (can abort close), fileClosed, fileSynchronized
[ ] Create methods to remove h5py object,
[ ] Update context menu API (should provide something more consistent with the plot)

[ ] Sorting nexus items (starttime, endtime, name)
[ ] Can be used in PyMCA

Your +/- 5 seconds looks fast enough to me
The Qt like events are fine for software engineers. I consider one should also offer the possibility to generate  "digested events" to minimize the knowledge of Qt requested by other customers. For instance, one could provide a programmable callback and, in that case, call that callback with the digested information (a dictionary in the lines of what PyMca is doing: file, type of event, child, ...).

I check the real amount of time of loading a file with 100000 datasets.
- 10 seconds for loading
- 3 seconds to expand the group containing this
- i still have to check with a profiler, and then with with a cython object
For events, i really think that dictionaries are not a maintainable pattern. If we do it for this widget we have to do it for all our widgets. Then i really don't like that idea.

Everything is exposed as h5py objects. If it is not enough simple, we should provide our own H5 model, which is i guess not a good idea.
The example of the current version (https://github.com/vallsv/silx/blob/hdf5widget/examples/hdf5widget.py) shows that it is not so difficult to extract what you want on the displayEvent function. If it is really needed by PyMCA, there is no problem to create a class wrapper in PyMCA.

My experience with dictionaries is just the opposite :) Whenever I had a signal sending a dictionary, I had no troubles when going from Qt2 to Qt3 to Q4 to Qt5. However, if I was using a Qt-like object, things changed from version to version (particularly with tree-like widgets).

Don't you think that code like the one in the displayEvent function will have to be reproduced by almost any customer of the Hdf5Widget?

There is no difference between a class and a dict. The difference i see is you create and manage your own event, or you use the Qt events. We can manage our own signals with an own class. But will we are using Qt, we should provide Qt concepts.
The callback provides the object stored on the tree, and no more. A common pattern for this kind of widget is a pass-through: i get the h5py object from the signal and i set it to another widget which manage this kind of objects. Sure the last widget have to manage a h5py object: that's his job. But a pass-through should not taste the dish.

I will work with Thomas on the API if possible.

Just to keep track:

When widget is provided with an instance and not with a path to a file, it is convenient to have a weakref proxy instead of a "hard" reference.
Widget should be "smart" enough to sort the contents of the file if that support is requested (with default set to True).

I have updated the description with that

A test suite should be added. For widgets, the very minimum is import and creation of an instance but we should do more. The test suite should also check the support of SPEC files in the widget (generating a SPEC file withing the test suite).

Splited into several issues


Locale not working on DataGrid

Description
I attempted to change some labels to be dutch. So that my clients will be able to read it, but doesn't seem to change in my front-end.
locale={{         globalSearch: "Zoeken...",         pageSize: "Rijen per pagina",         pagination: (firstRowNum, lastRowNum, maxRows) => (           <>             Er zijn {firstRowNum} - {lastRowNum} van de{" "}             {maxRows} resultaten           </>         ),       }}
Expected Behaviour
Table text should change to my configuration

feature is in version 0.0.17


BetterFolders crash[Bug]

Describe the Bug
Starting BetterFolders will crash discord
To Reproduce

Install the BetterFolders plugin
Start it and discord will crash

Expected Behavior
Start like normal
Screenshots

Discord Version
Discord Canary 70805 (5b3d626)
Additional Context
BBD 0.3.5
Host 0.0.284
Injector 0.6.2
Windows 10 64-Bit (10.0.19041
```)

That's an issue with that plugin, you should go to the github or discord server for it.


Able to see v1 monitoring and istio in dashboard UI post upgrade

Summary:
v1 monitoring and istio installed in rancher 2.5.9 still shows up in the 2.6 dashboard UI post-upgrade. Based on slack discussions and my understanding these should not show in the UI under v2 charts config in the dashboard UI.
Environment:
Rancher version: v2.5.9 -> v2.6-head upgrade b43e4d9 8/24/21
Rancher cluster type: HA helm install with QA Jenkins ha-deploy job
Downstream cluster type: rke1
Downstream K8s version: 1.20.9
Steps to Reproduce:

Install rancher 2.5.9, my setup was HA but this shouldn't make a difference.

Deploy on the ember UI v1 monitoring and v1 isitio

Upgrade to v2.6-head

In the dashboard UI, navigate to the istio config - we see it shows the v1 chart. We can access kiali UI, etc.

View the cluster details - we see the cluster has monitoring set up - should we see this as well? (v1 monitoring from 2.5.9 ember ui install)

Expected Result:
I had expected v1 monitoring/istio to be hidden post-upgrade
Actual Result:
v1 monitoring and istio from 2.5.9 install are configurable in the dashboard UI.
Additional Info:
This can break things, for example, istio changed in the dashboard UI / v2 chart - it does tracing differently so you cannot access Jaeger in the dashboard UI as it's looking for the wrong (older) service.

Release note will cover the workaround until we can fix this.

Need to work with backend to determine and agree approach to detect Istio v1

Would need the backend to have an annotation to help prevent the UI from loading this. @nwmac to file a ticket and @gaktive to ensure someone jumps on it.

Created a backend ticket: https://github.com/rancher/rancher/issues/34663

My checks PASSED
Reproduction Steps:

Not required.

Validation Environment:

Rancher version: v2.5.9 -> v2.6-head 06e19b0 (9/27/21)
Rancher cluster type: HA install via Jenkins Automation
Docker version: n/a
Downstream cluster type: RKE1
Downstream K8s version: v1.20.11
Validation steps:

Install rancher 2.5.9, my setup was HA but this shouldn't make a difference.
Deploy on the ember UI v1 monitoring and v1 isitio
Upgrade to v2.6-head
In the dashboard UI attempt to navigate to Istio config on the left nav bare (root level Istio config)
I can indeed no longer see this option (the app config is hidden and thus the issue is fixed)


Use GitHub git repo as source

Gets the git directory so the version can be set correctly

Checklist

[ ] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Support (low-level) for non-default PRFs when using PKCS5v2

This is a minimal change where asn1/pkcs/PBKDF2Params.cs is modified in a similar manner as in bc-java.
This allows low level routines to be used to support SHA256, etc. in particular, using Pkcs5S2ParameterGenerator().
Use via the high level routines (security/PbeUtilities.cs) is not currently supported.
These changes have been cross-tested with bc-java and with openssl 1.0.1j.

Merged with minor changes, thanks!


JSHint to ESLint

https://medium.com/@addyosmani/auto-formatting-javascript-code-style-fe0f98a923b8

https://github.com/airbnb/javascript/issues/313

https://gist.github.com/nkbt/9efd4facb391edbf8048


core: update tracing

Description
Updated core tracing plugins to generate events that are more properly parsed by DD
Risk
Low
Deploy Plan

deploy core

PMRR @philipperolet :pray:


Priority tests are not executed

TestNG Version
6.14.3
Expected behavior
Priority/dependent tests are executed
Actual behavior
Priority/dependent tests are not executed or the execution stuck. This is happening if I execute multiple test classes and one contains a test with priority and the another class contains a "dependsOnMethods" tests.
If I execute it one by one, there is no such issue. The same if I remove the "dependsOnMethods" test.
When I changed the version of TestNG to 6.11, the tests "numberOfDeparments2" are executed, but still the "numberOfDepartments1" are not executed.
When I execute large amount of test classes, it is also happening that the execution stuck once a dependent test should be executed in v6.14.3. There is no stuck in v16.11, but there is another issue (some dependent tests are not executed).
Is the issue reproductible on runner?

[ x] IntelliJ

Test case sample
I am executing this TestNG
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="SPRE-API">
    <listeners>
        <listener class-name="common.core.listeners.TestListener" />
    </listeners>

    <test name="Priority tests">
        <classes>
            <class name="testsuites.spretests.Test1" />
            <class name="testsuites.spretests.Test2" />
        </classes>
    </test>
</suite>

Here are the tests:
public class Test1 {

    @Test(groups = {"GET", "POST", "PUT", "DELETE", "SPRE"})
    public void verifyDepartments() throws IOException{
        System.out.println("This is no priority tests from test1");
    }

    @Test(groups = { "GET", "SPRE"}, priority = 3)
    public void allDepartments(){
        System.out.println("This is priority=3 tests from test1");
    }

    @DataProvider(name = "validParameters")
    public static Object[][] validParametersData() {
        return new Object[][] { {"1", 1, 0}, {"2",  2, 1}, {"3", 2 , 0},
                {"4",  2+1 , 0}, {"5",  2 , 2-1}
                ,{"6",  2+1, 2+1},{"7",  1, 2-1}, {"8", 1, 9999}};
    }

    @Test(dependsOnMethods = "allDepartments", dataProvider = "validParameters")
    public void numberOfDepartments(String step, Integer limit, Integer offset) throws IOException{
        System.out.println("This is dependOnMethods tests from test1");
    }

}

and the second test class:
public class Test2 {

    @Test(groups = {"GET", "POST", "PUT", "DELETE", "SPRE"})
    public void verifyDepartments2() throws IOException{
        System.out.println("This is no priority tests from test2");
    }

    @Test(groups = { "GET", "SPRE"})
    public void allDepartments2(){
        System.out.println("This is no priority tests from test2");
    }

    @DataProvider(name = "validParameters")
    public static Object[][] validParametersData() {
        return new Object[][] { {"1", 1, 0}, {"2",  2, 1}, {"3", 2 , 0}};
    }

    @Test(dependsOnMethods = "allDepartments2", dataProvider = "validParameters")
    public void numberOfDepartments2(String step, Integer limit, Integer offset) throws IOException{
        System.out.println("This is dependsOnMethod");
    }

}

Please do not combine priority and dependsOnMethods. You are asking for trouble if you do that, because both these are basically mechanisms of establishing a certain order.
From the example here's what you have
Test1.verifyDepartments() [p0]
Test1.allDepartments()[p3]
Test1.numberOfDepartments()[p0, dependsOn="allDepartments"]

Test2.verifyDepartments2() [p0]
Test2.allDepartments2()[p0]
Test2.numberOfDepartments2()[p0, dependsOn="allDepartments2"]

Now when TestNG would commence execution with Test1 it finds that you have both dependsOnMethods and priority combined (since at least one method has a non zero priority, it is assumed that priority now exists in your execution).
dependsOnMethods and dependsOnGroups are basically hard dependencies (which means if the upstream method failed, then the downstream method doesn't get executed).
priority is a soft dependency (which means there's no downstream skip if the upstream method failed)
By behavior TestNG gives more preference to hard dependencies.
So in your case, first TestNG will try to satisfy dependsOnMethods.
So Test1.numberOfDepartments()[p0, dependsOn="allDepartments"] is not executed immediately. But it has a priority of zero, which means it should be executed first (if there was no dependency)
TestNG now proceeds to figure out independent methods (methods that have no dependency). So the below two qualify
Test1.verifyDepartments() [p0]
Test1.allDepartments()[p3]

So now it tries to execute all p0 methods. It succeeds in executing verifyDepartments() but cannot still execute Test1.numberOfDepartments() even though its a p0 method since it has a hard dependency on Test1.allDepartments()[p3]. But unfortunately allDepartments() is a p3 method and can only be executed after all the p0,p1,p2 methods have run to completion.
So essentially you have created a deadlock.
Please either use priority (or) dependsXXX but not both.


Can't pull out data via DataStore for types with a @connection relation?

Which Category is your question related to?
DataStore use within Amplify. I've added DataStore in retrospectively to an existing GraphQL api via amplify update api
I can pull back data for models that don't have any relations (@connections to other models) however when I try to pull back data for models with relations they always come back as empty (ie no results found). That seems to be the only pattern I can find.
When I added the data I back filled all the _version fields with a value of 1.
I've tried creating a new item too, again this only works for models without relations and when it works the new item only shows up in my local environment and not in my DynamoDB tables.
Calling Amplify.DataStore.clear(); in my apps main index.js file doesn't clear that new item out of my local data.
Feels like I'm missing a magic setting somewhere to say "no really, you can sync to the database now...!" but can't find it. Although the fact I can pull back some data but not others sort of rules that out, the connection clearly works its just not working for some models.
I've set the logging level to debug using Amplify.Logger.LOG_LEVEL = "DEBUG"; which logs an error about subscriptions not being able to find a field called id on a model that doesn't have an id field, but this is logged way after my data access code which is coming back empty.
How best to debug this or look into it more?
Amplify CLI Version
You can use amplify -v to check the amplify cli version on your system
v.4.39
What AWS Services are you utilizing?
API

Don't think this problem is relevant anymore, @PeteDuncanson. It's sorted out already.
For any future readers:
It has nothing to do with the use of @connection.
Here's how you can debug why DataStore is having trouble syncing down the data to the client:

Developer tools
Network tab
Go through each graphql request and check the response. There will be errors if any.

Yep, I got this sorted over the weekend with the help of some fine folks in the Discord channel.
As you state the info I needed was in the network tab as GraphQL errors. Fixing those made DataStore work as it should.


Date Range RAG Bars

Q
A

Bug fix?
no - yes?

New sample?
no - yes?

Related issues?
fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?
Please describe the changes in this PR. Sample description or details around bugs which are being fixed.
Guidance
You can delete this section when you are submitting the pull request.

Please update this PR information accordingly. We'll use this as part of our release notes in monthly communications.
Please target your PR to 'master' branch.

Thanks for your contribution! Sharing is caring.

 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.:x: ChrispyBites sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


different ids when db recreate

is okay, when I recreate db, I dont have same transaction ids (auto increment) in tx table? same for relays ids for example, maybe its in more tables, not checked.

This is expected behavior. id columns generated by Postgres are not guaranteed or even expected to always be the same.

auto increment is not always same in postgres?

It is not guaranteed to be the smae. Furthermore, if the chain has rollbacks, rows that have previously been inserted are deleted a new rows inserted. Postgres foes not re-use the ids of the delete rows.


s3 snapshots do not show in the rancher 2.6 UI

Fix for s3 snapshots do not show in the rancher 2.6 UI on branch master:

rancher/rke2#1551

Confirmed working the same as in https://github.com/k3s-io/k3s/issues/3808#issuecomment-901293631, using commitid from master branch 8b857eef9c15ed97180079c0dcf5cf0f8cb888de


Add label for basic SLI monitoring

Inline with https://github.com/giantswarm/giantswarm/blob/master/areas/managed-services/monitoring.md#basic-sli-for-managed-apps

<3


spec: add builtin zeroTT

Prelude
#61372 : "add untyped builtin zero" was initially accepted, then rejected due to a couple of reasons that I will be addressing over this proposal.
#60695: addresses the zero() but fails to address zero comparisons that I will be addressing here. Additionally it was superseded by #61372.
Summary
I propose we add the following builtin:
func zero[T any](...T) (zero T) {
	return
}

Spec
from the context of builtin/builtin.go, the spec proposed would be precisely :
func zero[T Type](...T) (zero T)

Zero Assignments
Flavors
var x int = zero()
x:=zero[int]()
x:=zero(0)
x:=zero(1)

..all other types functions like *new(T)

Zero comparisons
Flavors
x == zero(x)
0 == zero(0)

m := map[int]bool{}
map[int]bool{} == zero()
m := map[int]bool{}
m == zero(m)

switch k := 0; k {
	case zero():
		fmt.Println("zero")
}

func hiro() (error){
  return zero()
}
func hiro() (error){
  return zero(nil)
}

func hiro() (err error){
  err = zero()
  return err
}

The above flavors would need infer type support: https://go.dev/play/p/9JLYPE0_p8t?v=gotip . Should be discussed over a separate issue.
func hiro() (error){
  return zero[error]()
}

case zero() : this will not work as long as generic function is able to infer the type else wise type should be explictily specified case zero[T]() or case zero(T{})
Scenario: Addressing Non-comparable types
Similar to nil keyword, I propose for map[int]bool{}==zero() or any other flavors.
Failing scenario for non-comparable types ~ nil
m:= map[int]bool{}
zeroM = zero(m)
zeroM==m //throws compiler error: invalid operation

Pros

comparisons with zero value for non-comparable types ==zero()
concrete support for zero values:  zero values concept has been ingrained into the fundamentals of the language much like magic. zero() takes it one step further by improving the accessibility and transparency of the concept.
Easier adoption of zero values for beginners and intermediate golang/polyglot devs. Remembering the zero values can take some time to sink in. The zero()
Allows for easier return of zero values:

func hiro() (error){
  return zero()
}

Generics: zero comparisons are crucial for extending the functionalities of generic functions.

Cons

Loosing the builtin word zero for the future minor releases: which shouldn't be an issue given that a formal initiative was taken to implement the same.
 Learning Curve of rollout a new builtin: zero values is a fundamental concept of Go. So its going to rollout seamlessly to every Go Dev out there. The functionalities proposed are very simple to understand and remember.
*new(T) vs zero[T]() : zero() is clearly more flexible, readable & idiomatic. Hence zero() has upperhand in zero comparisons and for explicitly returning or creating zero values while new(T) will be used as usual to create pointers.

Addressing #61372
Why zero() is better than zero?
Extensibility:  for faster development, developers can opt for
func hiro() (error){
  return zero()
}

but later enforce the types
func hiro() (error){
  return zero[error]()
}

This flexibility is lacking in zero resulting in a slightly more error-prone code over the current style.
Issues discussed in #61372

nil vs zero: introduction of zero posed a significant challenge to adopt over the idiomatic usage of nil. But the confusions that arose b/w usage of nil and zero were primarily due to the similar nature of nil and zero as both are untyped builtin. The same is not the case with zero() which clearly distinguishes itself from nil, and sediments itself as a generic function.
case zero in type-switch : not applicable cuz zero() is returning a zero value not a type

Conclusion
FWIW, any proposals related to generics is going to have a variety of opinions based on personal prefs: Idiomatic, correct,new styles etc. So its best that, Proposal Drafter address this beforehand.
I also think from my experience that its going to increasingly difficult to address generics related proposals outside of generic functions as it most of the times seem to be conflicting with the idiomatic paradigms that were exists prior to Go1.18.

The existing specification makes an exception specifically for nil when comparing with certain types:

Slice, map, and function types are not comparable. However, as a special case, a slice, map, or function value may be compared to the predeclared identifier nil.

Part of the motivation for the zero predeclared identifier was that this exception might grow to include the zero identifier too, since all types have a zero value, and for all of the type kinds mentioned in this paragraph their zero value is nil.
Do you intend to propose that a similar exception be made for comparisons where one of the operands is a call to the new zero function? If so, I assume there would be some constraints on exactly what type parameters are allowed for the zero function in that comparison; it would be helpful to include that information in the proposal.
Here's a motivating example to consider for this question, inspired by similar examples in earlier discussions on other variations of this proposal:
func IsZero[T any](v T) bool {
    return v == zero[T]()
}

Note that I'm specifically asking about T any, not T comparable.
(At this time I don't have a strong opinion about the proposal. This question is intended only to clarify my understanding of what's being proposed.)

If so, I assume there would be some constraints on exactly what type parameters are allowed for the zero function in that comparison; it would be helpful to include that information in the proposal.

Add spec in the proposal . Thanks @apparentlymart

Do you intend to propose that a similar exception be made for comparisons where one of the operands is a call to the new zero function?

Yes.
map[int]bool{}==nil works but
var x map[int]bool{};
map[int]bool{}==nil //doesn't work

Same applies to zero()

Part of the motivation for the zero predeclared identifier was that this exception might grow to include the zero identifier too, since all types have a zero value, and for all of the type kinds mentioned in this paragraph their zero value is nil.

I support zero predeclared identifier proposal but the fact is that it is a generic identifier. The usage of it conflicts with the idiomatic nil usage and most people unable to reason out the concept of generic identifier out of the ctxt of generic functions.
1==zero[int] //generic identifier
1==zero

any{}==zero[any]
nil==zero[any]
any{}==zero

I think that this could have worked out!

#61372 was retracted for lack of time to work out the details. It wasn't rejected in the sense that we decided never to do it.
#61372 would have helped with allowing '== zero' in a generic function for any type, including non-comparable ones; this variant does not handle non-conparable types, as noted above in the IsZero comment.
I think we can decline this proposal and wait for a broader fix at some point later. This is not urgent. You can write the zero function today already anywhere you need it.

Based on the discussion above, this proposal seems like a likely decline.
— rsc for the proposal review group

No change in consensus, so declined.
— rsc for the proposal review group


Forgot to close the double quote

A tiny typo in the demo configuration where
v = "<leader>c
should be
v = "<leader>c"
Note the missing closing double quote. :-)

Thank you for correcting the type for me!


javascript/jsx: add stylelint (via Styled Components)

Followup of https://github.com/neomake/neomake/pull/1394.

@albertorestifo
Please add it to the wiki's list of makers, with links to the documentation how to configure it, since it appears to be non-trivial / needs some extra packages.


Using deno_ast in a project that contains swc_common -F concurrent breaks the build

I am trying to use deno_ast in my project which also uses swc_common.
I am using it via swc_common = { version = "=0.33.18", features = ["concurrent"] }
With the concurrent feature enabled, the compiler throws:
error[E0277]: `Rc<RefCell<Vec<swc_common::errors::Diagnostic>>>` cannot be sent between threads safely
   --> /home/dalsh/.local/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_ast-0.34.2/src/transpiling/mod.rs:280:46
    |
280 | impl crate::swc::common::errors::Emitter for DiagnosticCollector {
    |                                              ^^^^^^^^^^^^^^^^^^^ `Rc<RefCell<Vec<swc_common::errors::Diagnostic>>>` cannot be sent between threads safely
    |
    = help: within `DiagnosticCollector`, the trait `Send` is not implemented for `Rc<RefCell<Vec<swc_common::errors::Diagnostic>>>`
note: required because it appears within the type `DiagnosticCollector`
   --> /home/dalsh/.local/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_ast-0.34.2/src/transpiling/mod.rs:266:8
    |
266 | struct DiagnosticCollector {
    |        ^^^^^^^^^^^^^^^^^^^
note: required by a bound in `swc_common::errors::Emitter`
   --> /home/dalsh/.local/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_common-0.33.18/src/errors/emitter.rs:39:20
    |
39  | pub trait Emitter: crate::sync::Send {
    |                    ^^^^^^^^^^^^^^^^^ required by this bound in `Emitter`

Is there any way around this?

Is there any way around this?

No, we don't support or want to carry that maintenance burden. Generally we prefer doing concurrent stuff at a higher level than within emit and it reduces the chance of running into an swc concurrency bug.

I'm currently exploring the idea of compiling Deno (including deno_ast) to a dynamic library and consuming it within my main application using libloading.
That way the Deno dependencies can be compartmentalized within that dynamic library and the main project can remain unaffected. I haven't gotten around the issue of sharing types between the dynamic library and the main application

I'm not sure about a good solution there.


How to update label-studio with docker-compose ?

Describe the bug
Unable to update label-studio with docker-compose.
To Reproduce
Steps to reproduce the behavior:

Have docker-compose up -d running with v1.0.2.
Pull latest git pull origin master
Build new image docker-compose build
Run docker-compose up -d
It shows this message

╔═════════════════════════════════════╗
║                                     ║
║   Update available 1.0.2 → 1.1.0    ║
║   Run pip install -U label-studio   ║
║                                     ║
╚═════════════════════════════════════╝

Open a terminal on app container.
Run pip install -U label-studio to get the following message

Requirement already satisfied: label-studio in /label-studio (1.1.0)

Expected behavior
To have label-studio updated to 1.1.0
Environment (please complete the following information):

OS: Linux 18.04
Label Studio Version

{
       "label-studio-os-package": {
               "version": "1.0.2",
               "short_version": "1.0",
               "latest_version_from_pypi": "1.1.0",
               "latest_version_upload_time": "2021-06-30T22:55:06",
               "current_version_is_outdated": true
       },
       "label-studio-os-backend": {
               "message": "Fix sticky labels in quickview (#1056)",
               "commit": "1e62be36e8931295a9823c12ea1ac3ce776a5fa1",
               "date": "2021-06-15 23:48:48 +0300",
               "branch": "master",
               "version": "1.0.2+43.g1e62be3.dirty"
       },
               "label-studio-frontend": {
               "message": "Fix Image regions dimension corruption issue",
               "commit": "4d267dceb621cd2efe5456edb48ece2fba0903a5",
               "branch": "master",
               "date": "2021-06-09T21:42:33Z"
       },
               "dm2": {
               "message": "Fix range filter not being updated",
               "commit": "b9b4cf70d8e9db62dc24183eb088e35ebda8da59",
               "branch": "master",
               "date": "2021-06-01T20:33:35Z"
       },
       "label-studio-converter": {
               "version": "0.0.29"
       }
}

Try updating the container: docker-compose down && docker-compose pull && docker-compose up -d
It seems like the pip package is updated earlier than docker.


CHANGELOG: update changelog for 0.2.7 release

Signed-off-by: Fernando Fernandez Mancera<EMAIL_ADDRESS>

Coverage remained the same at ?% when pulling aee886bd3ec9d363c332387d5e84eabf2b87307c on ffmancera:changelog027 into e15415d9dfb4f48fdd022216fbea89bead58c62d on nmstate:nmstate-0.2.

Coverage remained the same at ?% when pulling aee886bd3ec9d363c332387d5e84eabf2b87307c on ffmancera:changelog027 into e15415d9dfb4f48fdd022216fbea89bead58c62d on nmstate:nmstate-0.2.


Cant get dialog to segue after receiving permission

I am using the isAllowed as documented and when checking if all permissions are granted, it will not print it out let alone segue.. can I have a code sample of checking for a permission and segueing on didHide()

@SirSamShaw Hi!
You can send me example project? My English is bad and I don't understand that troubles with project

@SirSamShaw didHide means they did not tap to take action on a permission request. But this is how I handle things so that they are not shown the permission request if they've already given permission.
class ViewController: UIViewController, SPRequestPermissionEventsDelegate {

  @IBAction func btn1(_ sender: Any) {
      if SPRequestPermission.isAllowPermission(.locationWhenInUse) {
          self.desiredAction()
      } else {
          SPRequestPermission.dialog.interactive.present(on: self, with: [.locationWhenInUse])
      }
  }

  func didAllowPermission(permission: SPRequestPermissionType) {
      if permission == .locationWhenInUse {
          self.desiredAction()
      }
  }

  func desiredAction() {
      //whatever you want to happen now
  }

  func didDeniedPermission(permission: SPRequestPermissionType) {
      //required?
  }

  func didSelectedPermission(permission: SPRequestPermissionType) {
      //required?
  }

  func didHide() {
      //required?
  }
}

Hi @mgt-la
In my code, dont entry to the protocol SPRequestPermissionEventsDelegate
class ConfigurationViewController: FormViewController, SPRequestPermissionEventsDelegate {
    // ....

     func didHide() {
        print("didHide")

    }

    func didAllowPermission(permission: SPRequestPermissionType) {
        print("didAllowPermission")

    }

    func didDeniedPermission(permission: SPRequestPermissionType) {
        print("didDeniedPermission")

    }

    func didSelectedPermission(permission: SPRequestPermissionType) {
        print("didSelectedPermission")

    }
}

Any ideas ?

@jonajgs you set delegate? show code

@IvanVorobei
the code is above, i only miss the viewDidLoad
class ConfigurationViewController: FormViewController, SPRequestPermissionEventsDelegate {
    override func viewDidLoad() {
        super.viewDidLoad()

        GIDSignIn.sharedInstance().delegate = self
        GIDSignIn.sharedInstance().uiDelegate = self

        buildForm()
    }

     func buildForm() {

    }

    func didHide() {
        print("didHide")

    }

    func didAllowPermission(permission: SPRequestPermissionType) {
        print("didAllowPermission")

    }

    func didDeniedPermission(permission: SPRequestPermissionType) {
        print("didDeniedPermission")

    }

    func didSelectedPermission(permission: SPRequestPermissionType) {
        print("didSelectedPermission")

    }

}

what delegate do I forget ?

@IvanVorobei
I have another question, I have a UISwitch in my uiview, when the switch is disabled and I change the switch to active, i dont know how restart the app, because, i have in my appDelegate a geofence monitoring, but at the start the app dont have the permissions, I searching the way to refresh the app or any other idea, do you have help me please ?


Update aks 1.27.7

Update Terraform module for AKS to 7.5.0
Tested Kubernetes version to 1.27.7 (Passing null to install latest version)
Updated Ingress API because the networking.k8s.io/v1beta1 has been removed in Kubernetes

Thanks for the PR! LGTM


Fix proxy config for Key Vault proxy clients

The proxy service interface type name was changed but the name was not updated in proxy-config.json. This PR fixes the config to use the updated interface name.

API change check
API changes are not detected in this pull request.


How to get page id

I am very clueless on how to get the page id setup, I see from documentation it has to be around &_p but do not how to use it. can you please help?
the default snippet of "vars" works. Just that I want to track the % page views completed.
    <amp-analytics type="gtag" data-credentials="include">
      <script type="application/json">
        {
          "vars": {
            "GA4_MEASUREMENT_ID": "G-XXXX",
            "GA4_ENDPOINT_HOSTNAME": "www.google-analytics.com",
            "DEFAULT_PAGEVIEW_ENABLED": true,
            "GOOGLE_CONSENT_ENABLED": false,
            "WEBVITALS_TRACKING": false,
            "PERFORMANCE_TIMING_TRACKING": false,
            "SEND_DOUBLECLICK_BEACON": false
          }
      </script>

Also GA4 and AMP is a mess, thanks a lot for this work man :)

I don't really what do you mean. If you could explain it further it would be great.


search: return matchedName for OFAC SDNs, Alts, and DPL records

Codecov Report

Merging #522 (823d452) into master (6445031) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

:exclamation: Current head 823d452 differs from pull request most recent head 1cd0454. Consider uploading reports for the commit 1cd0454 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #522      +/-   ##
=========================================
- Coverage    8.21%   8.18%   -0.03%
=========================================
  Files          44      44
  Lines        3519    3531      +12
=========================================
  Hits          289     289
- Misses       3207    3219      +12
  Partials       23      23


update build.xml

updating build.xml for commitlog plugin creation.

The generated jar contains not only CAPI CommitLog but also CAPI RowCache, so I think its name should be something like "cassandra-capiflash-plugin.jar".

@odaira  : updated , please review.


fix: Remove duplicated code and use "Succeed()" for concise code

Description
Deleted a duplicated code in the test and used Gomega's Succeed() matcher here since its more concise and does the same job as Expect(err).NotTo(HaveOccurred()).
From the Ginkgo docs:

Issue ticket number and link
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

/test redhat-appstudio-e2e

/test redhat-appstudio-e2e

/test redhat-appstudio-e2e

/test redhat-appstudio-e2e

/retest

/retest

/test redhat-appstudio-e2e

/lgtm


feat(database): init migration tool

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)

could you add some tests for this? The logic for updating completed challenges and so on is pretty complicated

I think the logic is very simple, but could add tests. I do not see myself having time anytime soon, because it is quite involved writing tests for Mongodb operations (the fixture data is annoying).

We do need to be confident in that scripts that modify user data, and some tests would really help with that.  I don't really understand Rust, but something along the lines of
let unnormalized_user = doc! { blah }
let normalized_user = doc! { blah blah}
let result = normalized_user(&unnormalized_user)
// something to assert deep equality

should be possible, shouldn't it?

can I block this on the principle that rust doesn't belong in the codebase? 🙃

can I block this on the principle that rust doesn't belong in the codebase? 🙃

Once TypeScript becomes correct and statically typed, I will rewrite this in it.

Closing as this is not the direction we plan to go. A new PR will be made to handle "normalization"-type tasks


General improvements to TLA+ language manual

Fix some typos and wording.
NB: there's 2 semantical changes, marked in the comments below

Codecov Report

Merging #1328 (461537e) into unstable (43480e8) will not change coverage.
 Consider uploading reports for the commit fbf3e21 to get more accurate results

@@            Coverage Diff            @@
##           unstable    #1328   +/-   ##
=========================================
  Coverage     74.91%   74.91%
=========================================
  Files           334      334
  Lines         10837    10837
  Branches        522      522
=========================================
  Hits           8118     8118
  Misses         2719     2719

Impacted Files
Coverage Δ

...he/io/annotations/parser/CommentPreprocessor.scala
93.97% <0.00%> (ø)

Continue to review full report at Codecov.

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


UI issue in iframes

What version of Node.js are you using?
16.13.1
What version of npm are you using?
8.3.0
What operating system are you using?
Linux (ubuntu 20.04)
Describe the Bug

When using the CAD in an iframe some odd behaviour occurs with drop downs.
Expected Behavior
The drop down should function within the iframes existing space to some degree.
To Reproduce
No response

In a similar but not quite iframe related UI issue, when multiple divisions are assigned to a user it can push the manage controls for the dispatch out of the existing space which makes it quite difficult as you need to drag across to change a units state.
If a unit has more than one division is there a way we can condense it down? Maybe some sort of modal or hover option?

EDIT: In fact it would be much improved if the manage was right next to names for speed of changing the status.

What about a fixed column? This would make it so the actions column would always be on the screen

EDIT: In fact it would be much improved if the manage was right next to names for speed of changing the status.

What about a fixed column? This would make it so the actions column would always be on the screen
https://user-images.githubusercontent.com/53900565/152632804-be55dc25-5fe7-46fe-a3df-56215e4b5179.mov

Yeah that works! Although it still might be more handy to have it fixed on the left hand side? 😄

going to make this a feature request as well. I like to have it on the right side, so why not make it an option 😄!

Table actions alignment is now supported! The main problem in this issue doesn't seem to be fixable :/

Table actions alignment is now supported! The main problem in this issue doesn't seem to be fixable :/
Awesome on the alignment options 😄

Oh no! Is there anything I can do on the iframe side potentially?

Is there anything I can do on the iframe side potentially?

is there an option for fixed max-heights? I think this can be enabled to it doesn't add that extra transparent area below the CAD

Is there anything I can do on the iframe side potentially?

is there an option for fixed max-heights? I think this can be enabled to it doesn't add that extra transparent area below the CAD

Hmm, yes there is and that doesn't seem to help. It only happens in the modals and not in standard drop downs etc.


Check for cargo fmt rather than checking for rustfmt directly.

The format-all.sh script uses cargo fmt rather than rustfmt directly, so check for cargo fmt.
Fixes #24.

Merging this; if there are any more issues with test-all.sh failing, please reopen or file a new issue!


Repository ownership.

@jaredly since you are no more active on this repository, could you transfer to me the ownership of this repo?

Yup that sounds fine :)

oh, looks like I can't transfer it to you while you have an active fork of it 🙃 I get the error "fabiocaccamo/django-colorfield exists"

I just deleted the fork.

Ok, I think you have to accept now, and then it's done! Thanks for taking over :)

I accepted, thank you very much!


subsys: greybus: mikrobus changes for reading mikrobus manifest from clickid

Hi @jadonk ,
This PR has some more additonal changes for the Click ID adapter,
algorithm for reading manifest:
read user eeprom byte(0x0A0A), this byte has start address of variable manifest(if this byte = 0 or invalid, this means no variable manifest)
if (variable manifest available)
read variable manifest and continue with mikrobus probe
else (read fixed manfifest at addr 0x0000)
enable via userspace using information in fixed manfiest

Also as discussed here, https://github.com/jadonk/greybus-for-zephyr/pull/1#issuecomment-853053663
there is no issue with large manifests now, that was a problem with an SPI manifest being corrupt and causing kernel panic at the host kernel, the problem had nothing to do with manifest size


Proposed changes

Test this out,
I also added if the field is empty it is reported as missing.

Everything looks good!


When type=number and optional=true, no validation possible

This is not so much a bug in autoform as it is a consequence of browser implementations of type=number; and I'm raising this issue mostly to document for others that might search for it.
In both Chrome 41 and Firefox 37, a non-numeric value can be typed into a field with type=number; however attempting to retrieve the value of the field through the DOM or jquery yields empty-string.  As a result, AutoForm can't distinguish a type=number field with a non-number typed into it, and a field with nothing typed into it.  This means that you'll never see a <field> must be a number error if you use type=number, and if the field is optional, it will be silently unset.  If the field is non-optional, you'll only see a <field> is required error, even if the field has something typed into it.
A workaround is to use type=text even for numeric fields.  The downside is you don't get the native number widget.

Yep, same for date type. See https://github.com/aldeed/meteor-autoform/issues/610