osx/ubuntu auto prefixing nodes

on OSX i get the following output:
<TARGET id="target" type="FACEBOOK_PLATFORM">
on ubuntu I get
<default:TARGET xmlns="myNameSpace" id="target" type="FACEBOOK_PLATFORM">
using gem 2.2.2
This is simplified version of my large xml file, all nodes have the above xmlns and prefix added.
The version of libxml is different on each platform: osx = 2.7.3 and ubuntu = 2.7.7

The issue is caused by removing a node from the document via the remove! method and then reattaching the node via <<.
For some reason on Ubuntu this is adding a namespace to the detached node, this is not happening on osx.
I cannot find a way to remove the namespace from the node either, any ideas?
This is quite urgent so any help would be appreciated.
BTW: ruby 1.8.7

To get namespaces
node.namespaces
To add:
XML::Namespace.new(node, 'soap', 'http://schemas.xmlsoap.org/soap/envelope/')

To delete - I don't actually see a libxml2 api for deleting a namespace.  If there is one it would be easy to surface in the bindings.  Do you know of one?


DynamicDSLFunction's trace, splice bindings are duplicates

Here: https://github.com/InferenceQL/gen.clj/blob/main/src/gen/dynamic.clj#L99-L140
We'll need to port the splice implementation.

Fixed by throwing "not implemented" in splice.


Where did the documentation go?

I wrote code using Guzzle 4 services about 6 months ago and used documentation of the service description array options, however, I now can no longer find this documentation any where.
Where is the documentation for the description array options?

There aren't any docs yet, and this repo isn't yet stable. I'm hoping to get guzzlehttp/command tagged stable soon, thoroughly document it, then come back to guzzlehttp/guzzle-services to write more docs.

I realize the code could can change, and am will to accept that. I have used this code successfully in the past and remember specifically reading about the different options in the service description such "extends", "$ref", etc.
I believe it was on the old guzzlephp site, if I remember correctly. However, the site is now completely different and archive.org has been no help as I think the URLs have changed and there is only sporadic crawls.
Does this documentation not exist anymore?

The Guzzle 3 documentation is hosted at http://guzzle3.readthedocs.org/webservice-client/guzzle-service-descriptions.html. The docs here are going to differ in many ways from this repo (and the rest of the docs differ quite a bit from Guzzle 5).

+1 on docs, I cannot figure out why I'm receiving no data back from a simple GET request to httpbin.org
For reference, here's the JSON schema:
{
    "name": "httpbin",
    "baseUrl": "http://httpbin.org",
    "operations": {
        "html": {
            "httpMethod": "GET",
            "uri": "/html"
        }
    }
}

You need to define the response model. Here is an example (in PHP array notation):
https://github.com/Rarst/wporg-client/blob/33fb0dcce9f170b92824d09f5717ca814d7ecd29/php/WporgService.php

Thank you so much!!

Any docs coming soon?

same doubt.  thx

Any update on this?

Soon they said. 2 years ago.

@gkzsolt same here, I'm pulling my hair out looking for something about that ResponseClassInterface. I can't find anything. In the upgrade guide from 3 to 4 they're mentioning methods that are gone in v4.

Is it now 2021 and the document has not been updated yet?

There aren't any docs yet, and this repo isn't yet stable. I'm hoping to get guzzlehttp/command tagged stable soon, thoroughly document it, then come back to guzzlehttp/guzzle-services to write more docs.

Is it now 2021 and the document has not been updated yet?


Exit code 78 will cancel parallel github actions when assignee to reviewer is not needed

based on the following code:
if [[ "$action" == "assigned" ]]; then
  update_review_request 'POST'
elif [[ "$action" == "unassigned" ]]; then
  update_review_request 'DELETE'
else
  echo "Ignoring action ${action}"
  exit 78 # if a nobody was assigned/unassigned exit with status 78, which cancels parallel actions
fi

If the assignee-to-reviewer-action is not needed for a particular run of the workflow file, it will cancel all parallel running workflows.
see: https://developer.github.com/actions/creating-github-actions/accessing-the-runtime-environment/#exit-codes-and-statuses

Submitted a PR here: https://github.com/pullreminders/assignee-to-reviewer-action/pull/4

Resolved in the latest release.


Hosting checker didn't fail when no GitHub user or Jenkins project users

Reproduction steps
see https://github.com/jenkins-infra/repository-permissions-updater/issues/4204
### Repository URL

https://github.com/Simplify3x/simplifyqa-pipeline-executor-plugin

### New Repository Name

simplifyqa-pipeline-executor-plugin

### Description

when i build the plugins with the parameters,it will execute the testcase and execute the pipelines in simplifyQA.

### GitHub users to have commit permission

### Jenkins project users to have release permission

### Issue tracker

GitHub issues

and https://github.com/jenkins-infra/repository-permissions-updater/issues/4204#issuecomment-2540104970
Expected Results
Ensured at least one of each specified
Actual Results
Passed and failed on the PR for hosting (developers list empty: https://github.com/jenkins-infra/repository-permissions-updater/pull/4230/commits/c11532f59560cc19105da9db84e1d294695e5f60)
Anything else?
No response

what is bug here

The hosting verifier wrongly marked hosting as successful when there was no users, which made parts of the process fail later that I had to manually fix


The value of --host-location ignored for outfile

When I install and run unoserver and LibreOffice on a VirtualBox guest machine, then I run unoconvert on the VirtualBox host:
# unoconvert --host-location remote --host <IP_ADDRESS> sample.docx sample.pdf
the outfile "sample.pdf" is created in the guest machine. (Note: port 2003 is forwarded to the guest machine)
The outpath argument for the remote methods convert() and compare() should be None when self.remote is True.

Good point, I had not considered the context of port forwarding.

2.0.1 released


[core] Avoid building the LookupFile cache repeatedly when the cache …

…is nearly full.

Purpose

Linked issue: close #3855

Tests

API and Format

Documentation

@JingsongLi  Have updated to lookup the file before putting to cache
We may update to above 3.1.2 later to solve this strange evicting behavior according to this. (In test, it's better). But, the 3.x version requires JDK11 build.

@JingsongLi Have updated to lookup the file before putting to cache
We may update to above 3.1.2 later to solve this strange evicting behavior according to this. (In test, it's better). But, the 3.x version requires JDK11 build.

Thanks!

+1


Added YouTube Channels [UI-UX Design Section ]

IMPORTANT: When creating your Pull Request, please use the following format for the title: Category - Resource Name & Section
PR Title samples:

Web development - CSS Portal & Tools
Web development - Leetcode & Challenges

Closes  #474
Description:

added some YouTube channels  [UI-UX Design Section ]

Resource URL:

Insert the URL of the resource you're proposing

https://www.youtube.com/@DesignSense/featured
-https://www.youtube.com/@DesignCourse/featured

Checklist:
Before submitting your pull request, ensure that you have completed the following tasks:

[x] I have carefully reviewed and adhered to the contributing guidelines before creating this pull request.
[x] I followed the prescribed PR title template. (Check this if you're adding a resource)

fill the bracket with x. Something like this [x]

@jfmartinz could you review it

your welcome @jfmartinz


Getting periodic 486 and 503 errors

Periodically (i.e. 3 to 10 times per hour) we are getting SIP errors from our Drachtio listener like this:
Sip non-success response: 486

or
Sip non-success response: 503

There are no other details in the error that gets returned, but looking up online it appears that both are related to scalability. Assuming that is the case, what adjustments should I make to our Drachtio instance to be able to support more simultaneous calls?

Its not clear if you are sending INVITEs and receiving those responses in return, or if you are receiving INVITEs and generating those responses in return.  In general, a full SIP log showing the INVITE transaction would be necessary to learn more

can you supply a full log @jeffwhelpley ?

Yes, I will get logs and attach here later this week. I have to re-run our full production test to get the logs.


Add explicit checks around lazy vectors and improve documentation related to it.

This issue will attempt to clearly define what kind of wrappings can be expected around lazy vectors and add explicit checks in the code to enforce those.

Have a PR out for review for covers part of this: #3215
Adding Context about why I ended up with this approach:

The first thought would be to mark a lazy vector as wrapped and check for this flag when wrapping. Unfortunately, This would only work at the first layer but will not catch wrappings done at upper layers. Eg when creating Dict(Lazy) it will work, however when creating Dict(Dict(lazy)) this will not work if the underlying Dict(lazy) is already being used as a base elsewhere.
A natural extension to this would be to recursively track and mark every Vector if it is being used as a base (but this will only be relevant if the vector has lazy but not loaded). However, this will not work with cases where there are existing references to the vector and one of them is used as a base.

Prototyped this: it’s the most permissive and did not fail any tests

Finally, the complete solution here would be to recursively verify that the base and its nested bases are unique(shared_ptr). This however means that we diligently need to make sure that we use move(VectorPtr) whenever we create wrappings and we don’t have other references to it. Keep in mind that this is a bit riskier in the sense that it can lead to regressions if the pre-commit tests and fuzzers don’t catch any issues that this check uncovers before being hit in production. Moreover, it is quite restrictive because this condition is only required when there is an unloaded nested lazy but to make sure that its consistent we would have to enforce this constraint on all types being nested.

Prototyped this: had issues with cases where dictionaries are created with lazy vectors having external references, or copies made during recursive wrap/create call. Most of these cases are harmless since those usually just stick around during the duration of the creation and go away

Yet another way of addressing this would be that when load is called on a vector, we recursively ensure that all its children base vectors are unique(). This would ensure that any references taken while creating no longer exist

Prototyped this: runs into an issue where operators hold on to their input_/output_ row vectors and therefore still have references to the vector that is fed into the next operator where the loading happens. We would have to make sure these vectors get reset before their outputs are plugged into the next operator. This pattern is harmless since those vectors would be eventually reset and the top level row vector will be re-used.

Chosen approach:
Option 2: This was chosen in light of the issues that Option 3 and 4 presented. While they were more complete they are much more restrictive and cause latent issues to spring up which would otherwise be harmless. Option 2 serves as having the least amount of blast radius while still offering some protection against cases where we can shoot ourselves in the foot.

I also have not added a unit test for constant wrapping over lazy in https://github.com/facebookincubator/velox/issues/3215 as there is a mismatch around whats expected when a lazy is wrapped in constant:
There is a call to isNullAt() in addConstant() which will always load a vector, however there is still a check in ConstantVector::setInternalState() that checks for unloaded lazy vector. These two seem contradictory
I also was planning to add more checks around what kind of lazy wrappings are possible but deferring those to a separate PR since there are still some mismatches around those like the one i mentioned above, so need to iron those out first. Will post more soon


https://translatewiki.net/wiki/Wikimedia:Commons-android-strings-set limit/en

https://translatewiki.net/wiki/Wikimedia:Commons-android-strings-set limit/en
This one is missing message documentation. It's not clear what are the relations between words.

The link is invalid. Closing.

Seriously? You can copy paste the whole thing with space. Or use this link: https://translatewiki.net/w/i.php?title=Special:Translate&showMessage=commons-android-strings-set_limit&group=commons-android-strings&language=qqq&filter=&optional=1&action=translate

My apologies.


Ionic  showing old content

hi ;
i have a big problem
the ionic show old value in variable
for show new conent  i need to clear cache in divice but this annoying  for users

the probleme ist 100% solved by me
when i use http  Plugin  seem this problem
i see old  data http  not updated
............................
first step yu need to  host  json.php  in domain free or paid like do yu want
www.yourdomain.com/json.php
your code

$url = ' your json lik  the sourcee';

$data = file_get_contents($url);
$characters = json_decode($data);
$myJSON = json_encode($characters);
echo $myJSON;
?>
in ionic in http plugin you need to use this
dz=new Date();  // very importante
  this.http.get('www.yourdomain.com/json.php.php?dz='+dz).map(res => res.json()).subscribe(data => {

consol.log(data);
);

Closing then!


Any forecast for release in .Net Core 6 version

Any forecast for release in .Net Core 6 version
Thks

Actually it's using .Net Standard 2.1, which is compatible with all .NET versions and there are no plans to change, since it's simplier to keep and maintain.
.Net Standard Compatibility
There is a specific reason for your request? E.g; bug, incompatibility?


Fixes #1801  (Media details view for Browse is lacking author field)

Fixes

Fixes #1805 (Expected adapter item count: 20, found: 30)
Fixes #1801  (Media details view for Browse is lacking author field)
Fixes #1519  (Swiping featured images limited to 10 images)

Description (required)

Changed parameters in API to receive image info too
Changed visibility Conditions in render to show author name too
notifiedViewPager onSuccess of each API response
added listener to ViewPager to detect last page and calling API for more responses then.

Link to documentation: https://commons.wikimedia.org/w/api.php?action=help&modules=query%2Bsearch
API used: https://commons.wikimedia.org/w/api.php?action=query&generator=search&gsrsearch=iit ism dhanbad&gsrnamespace=6&gsrwhat=text&prop=imageinfo&format=xml
Tests performed (required)
Manually Tested on API 25, with ProdDebug variant
Screenshots showing what changed (optional)

Codecov Report

Merging #1808 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #1808      +/-   ##
=========================================
- Coverage    3.65%   3.63%   -0.03%
=========================================
  Files         192     192
  Lines        9746    9800      +54
  Branches      859     861       +2
=========================================
  Hits          356     356
- Misses       9365    9419      +54
  Partials       25      25

Impacted Files
Coverage Δ

...ee/nrw/commons/media/MediaDetailPagerFragment.java
0% <0%> (ø)
:arrow_up:

...e/nrw/commons/category/CategoryImagesActivity.java
0% <0%> (ø)
:arrow_up:

...w/commons/explore/images/SearchImagesRenderer.java
0% <0%> (ø)
:arrow_up:

.../nrw/commons/category/CategoryDetailsActivity.java
0% <0%> (ø)
:arrow_up:

...va/fr/free/nrw/commons/explore/SearchActivity.java
0% <0%> (ø)
:arrow_up:

...rw/commons/explore/images/SearchImageFragment.java
0% <0%> (ø)
:arrow_up:

...rw/commons/mwapi/ApacheHttpClientMediaWikiApi.java
3.63% <0%> (-0.03%)
:arrow_down:

...w/commons/category/CategoryImagesListFragment.java
0% <0%> (ø)
:arrow_up:

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 f12f1d5...87b6568. Read the comment docs.

@ujjwalagrawal17 , as I mentioned at #1801 , could you please separate the author field PR from the other changes, rebase it on 2.8-release branch, and submit it to 2.8-release branch? As that will be going into the 2.8 release, but not the other changes. ProdRelease testing has already been done and the release is waiting. We can make an exception for the author field as it is necessary, but we don't have the time to test the additional features sorry.

Just tested on master, it works great! 🙂
Le mer. 8 août 2018 à 14:00, Josephine Lim<EMAIL_ADDRESS>a
écrit :

@ujjwalagrawal17 https://github.com/ujjwalagrawal17 , as I mentioned at
#1801 https://github.com/commons-app/apps-android-commons/issues/1801 ,
could you please separate the author field PR from the other changes,
rebase it on 2.8-release branch, and submit it to 2.8-release branch? As
that will be going into the 2.8 release, but not the other changes.
ProdRelease testing has already been done and the release is waiting. We
can make an exception for the author field as it is necessary, but we don't
have the time to test the additional features sorry.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/commons-app/apps-android-commons/pull/1808#issuecomment-411285803,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGFBmtNXxm0OIL-g4iZmr5jeYJcrGJLks5uOnB9gaJpZM4Vy-Ss
.

Umm, @misaochan I can do that. But I think #1805 is also equally important. It is causing crash if you go fast and click on last image in featured image, search results, category details page.

Ah I see, OK. We could get both of those in 2.8-release then? You would need to check that the other bugfixes are still relevant to that branch, as it was separated from master about a week ago.

Also #1519 will be nice to have in release. Can I send the same PR to release after rebasing.? @misaochan

#1519 and #1801 are fixed, but not #1805 it seems.
Anyway I merge to master.

@ujjwalagrawal17 Sure, if you like, you can submit that tomorrow and we can include that in the next hotfix (probably will be out in the next week or two). But not the current release.


support legacy kv engine of type generic

engine type error was partly fixed with issue #232  but still remains a problem with export.
vkv export -p generic_se/path
panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 1 [running]:
github.com/FalcoSuessgott/vkv/pkg/vault.(*Vault).GetEngineTypeVersion(0xc000354948?, {0xc000354948, 0x3})
	/home/runner/work/vkv/vkv/pkg/vault/engine.go:55 +0x228
github.com/FalcoSuessgott/vkv/pkg/printer/secret.(*Printer).printBase(0xc0003da0a0, 0xc0004d8b70?)
	/home/runner/work/vkv/vkv/pkg/printer/secret/base.go:36 +0x377
github.com/FalcoSuessgott/vkv/pkg/printer/secret.(*Printer).Out(0xc0003da0a0, {0xae16a0?, 0xc0004d87b0?})
	/home/runner/work/vkv/vkv/pkg/printer/secret/secret_printer.go:224 +0x2ac
github.com/FalcoSuessgott/vkv/cmd.NewExportCmd.func1(0xc0004b6200?, {0xc00061f460?, 0x4?, 0xb99cfc?})
	/home/runner/work/vkv/vkv/cmd/export.go:84 +0x594
github.com/spf13/cobra.(*Command).execute(0xc0004a7b00, {0xc00061f440, 0x2, 0x2})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:985 +0xabc
github.com/spf13/cobra.(*Command).ExecuteC(0xc0004a7800)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
github.com/FalcoSuessgott/vkv/cmd.Execute()
	/home/runner/work/vkv/vkv/cmd/root.go:117 +0x18
main.main()
	/home/runner/work/vkv/vkv/main.go:15 +0x4f

With the fix:
vkv export -p generic_se/path
generic_se/ [type=kv1]
└── path
...

Will fix the tests later. Thanks for the fix! You might wanna consider vkv exporting -> importing to a KVv2 engine :D

Thank you!


Dockerfile: Bump cilium-runtime image dependency

Bump the cilium-runtime docker image dependencies.

test-backport-1.7

Everything is passing except for upstream tests, unlikely there's any regression here. I'll follow up on the cert issue there separately, we've been seeing that in v1.7 CI runs recently.


Minor tweaks and fixes to the frontend

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 25.116%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2650

Relevant Lines:
10551

💛  - Coveralls

Codecov Report

Merging #757 (1b9fab5) into master (d9418ad) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #757   +/-   ##
=======================================
  Coverage   23.00%   23.00%
=======================================
  Files          84       84
  Lines       10142    10142
=======================================
  Hits         2333     2333
  Misses       7531     7531
  Partials      278      278

Flag
Coverage Δ

unittests
23.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


deleting a multilingual name hides all multilingual names

Have an object with names in several languages. Delete one of the languages - all of the multilingual name entries disappear (although the actual tags are not removed).
Firefox 67.0 on a Mac.

I can confirm that it has worked like this for at least a year. I consider it a minor annoyance, and a quick workaround is to delete the tags directly rather than the corresponding "Name" entry.

Yes, you can also collapse-expand attributes, and then the missing entries re-appear.
This could be very confusing for new users, as they would have tag section likely collapsed by default, and would not know the removal was only visual.

Yay, thank you for the fix :)


Make IndexSources an option in PublishSymbols task

It would be good if the IndexSources step was optional. We've had some performance issues with our on premises TFS and our XAML based build has the option to disable indexing of sources.

Simply disable or remove the step.
From: davidjward30<EMAIL_ADDRESS>Sent: Friday, November 13, 2015 5:06 AM
To: Microsoft/vso-agent-tasks<EMAIL_ADDRESS>Subject: [vso-agent-tasks] Make IndexSources an option in PublishSymbols task (#807)
It would be good if the IndexSources step was optional. We've had some performance issues with our on premises TFS and our XAML based build has the option to disable indexing of sources.
—
Reply to this email directly or view it on GitHubhttps://github.com/Microsoft/vso-agent-tasks/issues/807.

Apologies if I've misunderstood, but I do want to publish symbols, but not index sources. Disabling/removing the step wont publish my symbols.

Ok I misunderstood what you were referring to.

I don't know if it makes sense at all. I see no pratical benefit in publishing the symbols without index the sources. Anyway, I'm sending a PR for that.

I can confirm that we benefit from it. Indeed it's inconvenient to have to manually locate sources if we get a crash dump, but its a compromise for the problem with have with our TFS server taking 4 hours or more to index some builds.

Right, I get it. Did you see the PR? I've added an option to the task that can help in certain situations (like yours).

Just had a look and it seems perfect. Thanks.

adding Eric who worked on the task

ping

Thanks. I've completely refactored the task in a feature branch I'm working in. I'll pull in your change as well.

This change is in production on visualstudio.com and will also be in on-premises TFS 2015 Update 2.

Nice, thanks!


Graceful interrupt not graceful

The current key interrupt will call on_train_end which will save the checkpoint. However when resuming from the saved checkpoint, it starts a new epoch, which is not graceful: presumably it should restart from the middle of the epoch(ideally); otherwise it should not save the interrupted checkpoint with the same name as normal checkpoints (for example, save as a new name).

the training data are random... so, starting from the beginning or the middle or end don't make a difference.

It matters for research where the number of epochs or the number of iterations should be strictly controlled for fair comparison.

i know haha... we do research as well. but you set shuffle=True on the training data. And i don't think there is a way to restore a shuffled dataset to exactly the same spot.

got it. yeah, that would be an awesome contribution if you want to take a stab at it! we’ll help you complete it.

To whom gets to this issue, I have a solution that requires a minimum change in training code.
https://github.com/ruotianluo/rtutils#stateless-resume-from-checkpoint-saved-in-the-middle-of-one-epoch


Create stub files for all exercises

We have decided to require all file-based tracks to provide stubs for their exercises.
The lack of stub file generates an unnecessary pain point within Exercism, contributing a significant proportion of support requests, making things more complex for our students, and hindering our ability to automatically run test-suites and provide automated analysis of solutions.
We believe that it’s essential to understand error messages, know how to use an IDE, and create files. However, getting this right as you’re just getting used to a language can be a frustrating distraction, as it can often require a lot of knowledge that tends to seep in over time. At the start, it can be challenging to google for all of these details: what file extension to use, what needs to be included, etc. Getting people up to speed with these things are not Exercism’s focus, and we’ve decided that we are better served by removing this source of confusion, letting people get on with actually solving the exercises.
The original discussion for this is at https://github.com/exercism/discussions/issues/238.
Therefore, we’d like this track to provide a stub file for each exercise.

If this track already provides stub files for all exercises, please close this issue.
If this track already has an open issue for creating stubs, then my apologies. Please close one as a duplicate.
Otherwise, please respond to this issue with useful details about what needs to be done to complete this task in this track so that people who are not familiar with the track may easily contribute.

The emacs lisp track currently does have stub files for all exercises. It would be nice if our CI would fail if a new exercise was added that did NOT have a stub file. Ill open an issue for that.


hooking into foundation abide from multipurposuse form submission code.

Quite some time ago, i got tired of writing an event handler for every form submission. So i decided to create a simple multipurpose solution. it uses the action attribute to submit the form to the endpoint,  and data-callback attribute to handle the callback for that particular form, passing the form and data response to the callback using the window[fn].call(window, args) method.
the code:
$('form:not(.contains-file-input)').submit(function(e){
	e.preventDefault();
	var _this = $(this);
	$.post( _this.attr('action') , _this.serialize() ,function(data){
		data = JSON.parse(data);
		console.log(data);
		window[_this.attr('data-callback')].call(window,data,_this);//pass data and form to callback
	});
	return false;
});

What i would like to do is trigger data abide inside of this function. and capture the output of abide. if the form fails validation, i want to pass that data to the callback. else i want to continue submitting the form. is it possible? Where can i find more info about it?

As of the commit https://github.com/zurb/foundation/commit/adf3fbfd24b16512c1575f4e082246ba24f68946, each element has its own valid/invalid triggers (which you can listen for with something like $(el).on('valid', function() {...})). Theoretically, you can check if each of the validations pass, and if they do, then submit that data. Else, you can create an array or an object with the input that is invalid.


Make slap command work with Slack

Without this Slack currently submits messages and comments rather than creating a new line.
The implementation involves can turning slap into an action and then of overwriting that action for Slack alone.

@rntz, I've renamed the action, updated the docstring and moved it to edit.py
Let me know if you have any other thoughts 👍

@pokey, added the context and hooked into the basic edit command 👍

I don't think I fully understand your worries.
Slap works everywhere outside Slack and default behaviour for insert_line_down already existed without needing to be
implemented in this PR. I've now moved it up to a more generic level rather than an operating system level but I think that either way it should work.
Let me know if I'm missing something here.

OK, I misunderstood. thought it was a new action


modify potto-loris to work with rikolti s3 path

It actually turns out that we don't need to modify it. It just works!


Post image with content

How to post plain text and image together with library.
Any example would be appreciated.

is the image a file or a link? discord auto-embeds image URLs, so you could send a plaintext message with the image url and your text.
If the image is a file/attachment you'll wanna use rich text messages with the embed builder.
$builder = new \Nwilging\LaravelDiscordBot\Support\Builder\EmbedBuilder();
$image = new \Nwilging\LaravelDiscordBot\Support\Embeds\ImageEmbed('url', 'title', 'description');
$builder->addEmbed($image);

(note that an image URL is still used here, but in this case discord will treat that as an attachment)

So no native attachments possible? Only links? Will this be added? Many wrappers have the ability to upload images directly.

Yes, I've been working on a v2 that essentially contains wrappers for the entire discord API. V1 was mostly centered around notification channels, but was expanded to do interaction handling.

Good luck, thanks.


An example to analyze the correlation between gender and sentiment between them

Codecov Report
Patch and project coverage have no change.

Comparison is base (9d4eed6) 73.73% compared to head (e080f58) 73.73%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #592   +/-   ##
=======================================
  Coverage   73.73%   73.73%
=======================================
  Files          30       30
  Lines        3632     3632
=======================================
  Hits         2678     2678
  Misses        954      954

Flag
Coverage Δ

unittests
73.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


How do we tie the tigerdata user to the actions being taken in Mediaflux

I believe we will be utilizing token, based on ticket "Additional Experiment" https://github.com/pulibrary/tiger-data-app/issues/142
We need to figure how we mark in mediaflux who is really making the changes based on who is logged into the tigerdata application.
Either Tokens, or login pass through because we do not have the user's password to create a session like we are doing with the tigerdataapp user. (Like the catalog does with Alma)
Acceptance Criteria:

[ ] Create an ADR for how we plan to tie users in the front end application to actions in Mediaflux

Hey team! Please add your planning poker estimate with Zenhub @bess @jrgriffiniii @kelynch

At the current time the only one of the options that is technically available is user/password passed via the API.  We do not have permissions to create tokens on td-meta1.  This means that we do not currently have any option available to us that would implement single sign-on.   Best case scenario shibboleth is deployed on td-meta1 and there is a way to tie the shibboleth session to an mediaflux api token or session id.  Worst case scenario we would need to manage tokens created by either the application or a script on mediaflux to allow for single sign-on.


Physics

Requires https://github.com/space-wizards/RobustToolbox/pull/1605

Fixes https://github.com/space-wizards/space-station-14/issues/3152

Should be okay to merge unless someone finds something. Could do with more optimisation work but at this point the optimisations are A) remove PVS B) parallel solvers C) PhysShapeAabb <> PhysShapeCircle manifolds.


 Need to tweak those figures, probably to use a flat number or higher percentage.

Added as BetterBuffs


How to Get Player Input for which Note is pressed?

What is your question?
I basically want to make a 'reverse' note where you have to hit the other side (Left is Right, down is up, etc.)
I know that noteData checks the actual note's direction, but how do you get the player's input?

From the Wiki:

keyJustPressed(name:String)
Get if the key name just got pressed on the current frame.
Keys: 'left', 'down', 'up', 'right', 'accept', 'back', 'pause', 'reset', 'space'

From the Wiki:

keyJustPressed(name:String)
Get if the key name just got pressed on the current frame.


Manual ErrorMsg

Already in code, is an part where it controls an ARG (msg), that is piped to the function. Actually you can only pipe an simple "error message". But i working on the idea to pass an associative array as ARG so more information can be parsed.

Done!
It's now possible to send own manual error messages. Just place the call _error "message" on some line and error will be called. Display of stack is not included, because we call "only" an simple function, there is no "really" error there.

Commit: https://github.com/iptoux/bash_error_lib/commit/15218d69fcdbcff6f8fe3a2dc1719e241be7a014

iptoux@2040:~/gits/bash_error_lib$ ./basherr.sh

------------------------------------------------
>> ERROR (1) - (M): General/External script error.

>> MSG: this is an random error
>> CALL/CMD/ARG: N/A (see message)
>> CAUSE BY: huhu IN: ./basherr.sh ON LINE: 50

>> SNIPPED:

>> -> 06 lines of source from ./basherr.sh <-
>> {
L:47
L:48      huhu() {
L:49
L:50   >>>_error "this is an random error"
L:51
L:52      }
L:53
>> }

>> There are 6 debug log files in folder, cleaning....
>>  Execution time: 0.17364144325256348 seconds


Micro services not working

I cloned the repo and opened the example folder. I used Android Studio on MacBook to run it on the iOS simulator of Xcode. It compiled and ran and I was able to see that JSContext worked. But the micro service didn't work. When the app first compiled and installed, and I clicked on micro service button the app crashed and exited. I didn't see any error log. Just "Lost connection to device". Later I opened the app and click on micro service button, and it didn't crash but didn't show any results either.
I really like this project and hope I can get an answer for this issue. Thanks!

Thanks for taking an interest in the project.
Just so I'm understanding this correctly, this is an issue that occurs on iOS and .
As a background, I don't have a Mac device to work with, so I've been working off a Mac Virtual machine using VMWare Workstation.
It's quite slow and annoying to work with, so I'd rather not install Android Studio and all its dependencies in order to test this behaviour. I do all the Android testing on Windows.
I can however confirm that it works just fine in XCode:

I just went into flutter_liquidcore/example/ios and ran pod update so that I had the latest version.
Is this your first time using flutter? I find it difficult to see how a crash would've occurred without giving you a stacktrace somewhere on the system.
Can you try running it from Xcode instead or finding a way to a stacktrace?
It's difficult to diagnose the issue without any information.

Closing due to lack of activity. Feel free to reopen if you have any further information.

Same thing happens for me, see #8.
I'm using a MacBook and Visual Studio, running on iOS simluator.


Running XLNet on Squad

❓ Questions & Help

This is the padding problem. In GLUE codes in the examples, the padding for XLNet is on the left of the input, but in Squad codes, the padding is on right. I was wondering which one is correct.
Also, the inputs of convert_examples_to_features are different in Glue and Squad, where Squad uses most of default values like pad_token, sep_token, pad_token_segment_id and cis_token_segment_id, but Glue use the value of tokenizer. which one is correct?
Or the example codes are out-of-date? Thanks

Seems like the run_squad script is in bad shape now. It just doesn't work.

same question..


Syntax for expressions as JSX Components for factories

Suggestion
Add support for a new JSX syntax to allow using any expression as component in a jsx factory. Currently you need to first assign the expression you want to use to a named variable beginning with an uppercase character.
Using curly-braces for the expression is sensible because ithey already used for the purpose of passing expression values to the component in all other places. The obvious problem when doing so is that the closing you don't want to also have to duplicate said expression into the closing tag. I'm guessing this wasn't introduced to begin with. The way I suggest to work around this problem is by using empty curly braces in the closing tag.
Because of XML's/JSX's hierarchical structure this shouldn't be a problem because the closing tag should still unambiguous given the syntax is correct.
Rationale
If you want to use a component from an outside source such as a property of a foreign object or props passed to another component which usually have lowercase names you have to first assign it to another variable.
On top of that determining whether something is supposed to be read as a symbol resolving to it's value rather than a string to b passed is very unlike ECMAScript.
To make one thing clear: This is not intended to be used for complex expressions! Rather than that it's intended to be used with simple expressions such as the property of a foreign object or so an incoming property doesn't have to be renamed when being restructured. Adding a syntax for expression makes it flexible enough to work in most such cases, even ones that I didn't consider here.
🔍 Search Terms

JSX expression component factory
✅ Viability Checklist

My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

📃 Motivating Example

💻 Use Cases

Proposed syntax
//
<{expr} [...props]>
    [...children]
</{}>
// self-closing
<{expr} />

// these are equivalent to
const NamedExpr = expr;
<NamedExpr [...props]>
    [...children]
</NamedExpr>
// and
const NamedExpr = expr;
<NamedExpr [...props] />

:x: <{ props.bold ? "strong" : SemanticParagraph.baseTextTagType || "span"  }>{props.children}</{}>
:heavy_check_mark: <{ Composer.base }>{props.children}</{}>
:heavy_check_mark: <{ props.component }>{props.children}</{}>
:o: <{ props.component ?? "span" }>{props.children}</{}>

We don’t control the JSX spec: https://facebook.github.io/jsx/


IWF-438: Validate if RPC method is not final

Description
Checklist

[ ] Code compiles correctly
[ ] Tests for the changes have been added
[ ] All tests passing
[ ] This PR change is backwards-compatible
[ ] This PR CONTAINS a (planned) breaking change (it is NOT backwards-compatible)

Related Issue
Closes #286

LGTM! Is there a way to add Unit Testing for this? I'm guessing the answer is no, but always good to double-check.

I think there can be. Let me try!

LGTM! Is there a way to add Unit Testing for this? I'm guessing the answer is no, but always good to double-check.

I think there can be. Let me try!

That would be more complicated than expected. Adding a workflow with a finalized RPC method causes the service to crash at the start, which makes everything fail. See this commit: c210761c2e3ca1944795244af784d88837ac859b
To implement the test, I would need to spin up two Spring Boot apps: one that implements a finalized RPC method and another without it. Then, the first one would be only created to verify that it fails at the start, and the other one would be used for all existing tests. This seems to be somewhat complicated and not worth investing the required effort

LGTM! Is there a way to add Unit Testing for this? I'm guessing the answer is no, but always good to double-check.

I think there can be. Let me try!

That would be more complicated than expected. Adding a workflow with a finalized RPC method causes the service to crash at the start, which makes everything fail. See this commit: c210761
To implement the test, I would need to spin up two Spring Boot apps: one that implements a finalized RPC method and another without it. Then, the first one would be only created to verify that it fails at the start, and the other one would be used for all existing tests. This seems to be somewhat complicated and not worth investing the required effort

Makes sense! Thanks so much for looking into that


Blank canvas in Chrome

Please make sure you are testing with the latest release of html2canvas.
Old versions are not supported and issues reported for them will be closed.
Please follow the general troubleshooting steps first:

[+] You are using the latest version
[+] You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console

Bug reports:
Hi, I am having troubles with generating canvas on Chrome. I am trying to capture specific div.  It works okay on Firefox, however there is only blank white screen in size of generated canvas. It just behave like all child elements of that div have gone or are transparent or something like that.
When I switch to the latest 0.5 version of html2canvas it works okay on all browsers.
Are there any known issue? Maybe some unsupported css? I have tried it on multiple elements, with/without positioning, not just one div, but with no luck.
Thanks for any advice.
Specifications:

html2canvas version tested with: All from the latest 1.0 rc3 to first 1.0 version
Browser & version: Chrome 76.0.3809.132
Operating system: Windows 8.1

Try disable foreignObjectRendering

Same issue in latest Chrome 77

I use dom-to-image it's better than any other libraries.

@Abdullah0991 Thank you, dom-to-image really works.

@Abdullah0991 I just wasted 3 hours trying to get html2canvas to work. Wish I'd seen your comment sooner. Thank you!


I wonder if the id of the end token is 0?

Hi, Dr. Luo,
I am confused by the following code:
            if t >= 2:
                # stop when all finished
                if t == 2:
                    unfinished = it > 0
                else:
                    unfinished = unfinished * (it > 0)
                if unfinished.sum() == 0:
                     break

I guess according to the above snippet that the id of the end token is 0, right? I cannot verify that since the dictionary is loaded from the binary file.
Please help point in the right direction, thanks very much.

0 is end token. (note that start token us also 0)

Got it. Thanks very much for your help.


My conda cannot connect to internet, even after all basic trouble-shoots and reinstalling.

Issue Report Checklist

[x] Searched the issues page for similar reports
[x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[x] Tried basic troubleshooting (if a bug/error)

[x] Restarted Spyder
[x] Reset preferences with spyder --reset
[x] Reinstalled the latest version of Anaconda
[x] Tried the other applicable steps from the Troubleshooting Guide

[ ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
Anaconda cannot connect to internet. I restarted it several times, checked the firewall and proxy settings, uninstalled and reinstalled anaconda's latest package, yet conda cannot connect to internet, neither jupyter notebook, nor Spyder. It shows the following message:
Traceback (most recent call last):
  File "C:\Users\patro\Anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 441, in wrap_socket
    cnx.do_handshake()
  File "C:\Users\patro\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1907, in do_handshake
    self._raise_ssl_error(self._ssl, result)
  File "C:\Users\patro\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1639, in _raise_ssl_error
    _raise_current_error()
  File "C:\Users\patro\Anaconda3\lib\site-packages\OpenSSL\_util.py", line 54, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\patro\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "C:\Users\patro\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "C:\Users\patro\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "C:\Users\patro\Anaconda3\lib\site-packages\urllib3\connection.py", line 326, in connect
    ssl_context=context)
  File "C:\Users\patro\Anaconda3\lib\site-packages\urllib3\util\ssl_.py", line 329, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:\Users\patro\Anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 448, in wrap_socket
    raise ssl.SSLError('bad handshake: %r' % e)
ssl.SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\patro\Anaconda3\lib\site-packages\requests\adapters.py", line 440, in send
    timeout=timeout
  File "C:\Users\patro\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "C:\Users\patro\Anaconda3\lib\site-packages\urllib3\util\retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='vscode-update.azurewebsites.net', port=443): Max retries exceeded with url: /api/update/win32-x64/stable/version (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\patro\Anaconda3\pkgs\vscode_inst.py", line 142, in haveInternet
    r = requests.head(VSCODE_ENDPOINT, timeout=5)
  File "C:\Users\patro\Anaconda3\lib\site-packages\requests\api.py", line 98, in head
    return request('head', url, **kwargs)
  File "C:\Users\patro\Anaconda3\lib\site-packages\requests\api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Users\patro\Anaconda3\lib\site-packages\requests\sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\patro\Anaconda3\lib\site-packages\requests\sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\patro\Anaconda3\lib\site-packages\requests\adapters.py", line 506, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='vscode-update.azurewebsites.net', port=443): Max retries exceeded with url: /api/update/win32-x64/stable/version (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))

I think it is a bug. And spyder also takes a bit too long on the "Initialising editor screen".
My windows was updated yesterday after which I started facing these problems. Maybe that's the cause; but consequently I could not agree to it being unable to connect to internet even after reinstalling.
Versions

Spyder version: 3.2.8
Python version: 3.6.5
Qt version: 5.9.5
PyQt version: 5.9.2
Operating System name/version: Windows 10 Home Version:1709

This error has nothing to do with Spyder. Please report it here:
https://github.com/ContinuumIO/anaconda-issues/issues/


Hide intercom insde safe app view

What it solves
Closes #2238
How this PR fixes it
Checks if the current view is the safe app view and hides the intercom
How to test it
Enter any safe app view and check if intercom is hidden in the bottom right side

Question. If you do not accept the intercom cookie then the button on the bottom left is replaced by an image that basically brings up the preferences again asking you to accept the intercom cookies to make it work. That "image button" is still showing in the apps. Is it something we should hide? or it escapes the scope of this ticket?

I've seen this too and mentioned in the original PR. It would be nice to hide this button because it's weird that it disappears after you accept the cookies.

Oh, i thought i already fixed that. I'll fix that

It was working fine in the beginning but then the button started to show again when a banner in the top showed up. That banner is an invitation to become a tester of the app or so, but here in rinkeby seems to have placeholder text.
After that, the banner would not go away, and the intercom button will remain there no matter what

We tried to reproduce the issue again and it didn't happen. I'll keep an eye on this for the regression. In the mean time we can merge this one


⚠ Guya.moe Proxied has degraded performance

In a65b851, Guya.moe Proxied (https://ice.guya.moe/) experienced degraded performance:

HTTP code: 200
Response time: 22033 ms

Resolved: Guya.moe Proxied performance has improved in 16be9d7 after 1 hour, 35 minutes.


Docker image: Can't find model 'en'

Hi guys. You're doing very great job with Rasa-core!! I enjoy working with it!
But having some case when running docker.
Cloned from https://github.com/RasaHQ/rasa_core.git
The pipeline:
language: "en"

pipeline:
 - name: "nlp_spacy"
 - name: "tokenizer_spacy"
 - name: "intent_featurizer_spacy"
 - name: "intent_classifier_sklearn"
 - name: "ner_crf"
 - name: "ner_synonyms"
 - name: "ner_duckling_http"

My dockerfile:
FROM python:2.7-slim

SHELL ["/bin/bash", "-c"]

RUN apt-get update -qq && \
  apt-get install -y --no-install-recommends \
  build-essential \
  wget \
  openssh-client \
  graphviz-dev \
  pkg-config \
  git-core \
  openssl \
  libssl-dev \
  libffi6 \
  libffi-dev \
  libpng-dev \
  curl && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
  mkdir /app

WORKDIR /app

# Copy as early as possible so we can cache ...
ADD requirements.txt .

RUN pip install -r requirements.txt --no-cache-dir

ADD . .
CMD [ "python", "-m spacy download en_core_web_md" ]
CMD [ "python", "-m spacy download en" ]
CMD [ "python", "-m spacy link en_core_web_md en" ]
RUN pip install -e . --no-cache-dir

VOLUME ["/app/dialogue", "/app/nlu", "/app/out"]

EXPOSE 5005

ENTRYPOINT ["./entrypoint.sh"]

CMD ["start", "-d", "./dialogue", "-u", "./nlu"]

After image built, try running docker:
docker run --mount type=bind,source=/home/path/bot-brain/models/current/dialogue,target=/app/dialogue  --mount type=bind,source=/home/path/bot-brain/models/current/nlu,target=/app/nlu rasa_core_1

And getting next stacktrace:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/site-packages/rasa_core/server.py", line 451, in <module>
    _endpoints.nlu)
  File "/usr/local/lib/python2.7/site-packages/rasa_core/interpreter.py", line 49, in create
    return RasaNLUInterpreter(model_directory=obj)
  File "/usr/local/lib/python2.7/site-packages/rasa_core/interpreter.py", line 273, in __init__
    self._load_interpreter()
  File "/usr/local/lib/python2.7/site-packages/rasa_core/interpreter.py", line 289, in _load_interpreter
    self.interpreter = Interpreter.load(self.model_directory)
  File "/usr/local/lib/python2.7/site-packages/rasa_nlu/model.py", line 293, in load
    skip_validation)
  File "/usr/local/lib/python2.7/site-packages/rasa_nlu/model.py", line 320, in create
    model_metadata, **context)
  File "/usr/local/lib/python2.7/site-packages/rasa_nlu/components.py", line 419, in load_component
    cached_component, **context)
  File "/usr/local/lib/python2.7/site-packages/rasa_nlu/registry.py", line 133, in load_component_by_name
    return component_clz.load(model_dir, metadata, cached_component, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/rasa_nlu/utils/spacy_utils.py", line 126, in load
    nlp = spacy.load(model_name, parser=False)
  File "/usr/local/lib/python2.7/site-packages/spacy/__init__.py", line 15, in load
    return util.load_model(name, **overrides)
  File "/usr/local/lib/python2.7/site-packages/spacy/util.py", line 119, in load_model
    raise IOError(Errors.E050.format(name=name))
IOError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

Feeling like I don't link En correctly, but really don't know how..
thanks in advance!

Thanks for raising this issue, @amn41  will get back to you about it soon.

I can't see anything immediately wrong, though you have two commands which do the same thing:
CMD [ "python", "-m spacy download en_core_web_md" ]
CMD [ "python", "-m spacy download en" ]

you only need one of these.
If you open a shell in the image, are you able to import spacy?
try:
docker run -it IMAGE_NAME /bin/sh
$ python
>>>import spacy
>>>spacy.load('en')

Hi, @amn41
Used just one command:
CMD [ "python", "-m spacy download en" ]
Just tried to run image. Same result:

Python 2.7.15 (default, Sep  5 2018, 04:50:53)
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import spacy
spacy.load('en')
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/site-packages/spacy/init.py", line 15, in load
return util.load_model(name, **overrides)
File "/usr/local/lib/python2.7/site-packages/spacy/util.py", line 119, in load_model
raise IOError(Errors.E050.format(name=name))
IOError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

Hi guys. solved it  by using RUN python -m spacy download en instead of CMD [ "python", "-m spacy download en" ].. Hm .strange:)

thanks for the update @meksikann ! glad you found a solution, I was scratching my head about this one as well 🤔


Investigate + Fix job failures resulting in OK tasks/archives

This may be related to #55, and may have been fixed. However, as of v2.1, there is an issue somewhere where backup jobs can fail on the agent, report the output back to the daemon, but somewhere along the line, the task gets reported as a success in the database, and the archive is marked as valid.  Investigate why this is, and fix, providing necessary tests.

This is in fact happening on the latest build of shield. looks like the task is being recognized as failed in the supervisor, db.FailTask() is being called..  Then subsequently, the restore key is being processed, and an archive is created. And finally, the job is noted as stopped, and gets marked as done.

The issue lies in worker.go. The worker processes the data, detects failure, and submits a failure payload. Next, it looks for a valid restore key, and creates a corresponding archive. The archive is created even on failure, so that it can be properly purged from long-term storage using the scan-and-purge mechanism already in place. Lastly, job-stopped is called to set the stopped-at time (and unwittingly set it back to a successful task state).
There is a bug, in that the archive is not being properly invalidated (only gets invalidated if the db couldn't create an archive record and the status is invalid). There is a separate bug where the STOP task update operation overrides the status to 'done'.

These issues appear to be isolated from from #55.


Picamera and official 4" touch screen how to rotate PiCamera display

Hello,
I have installed a 4" touch screen on my raspberry and use it to display picamera output, but unfortunately the Picamera display is not in the right orientation. How is it possible to rotate the display.
Cannot use rotation parameter of PiCamera which is not useful for that and rotate the display from raspberry does not change anything...
Any idea ? Thanks for your help

Ok found, need to use the rotation parameter of renderer; Sorry for stupid question !


Parsing of "in 1h30m" fails

dateparser.parse('in 1h30m') is currently taken to mean 'at 01:30', instead of 'in 1 hour and 30 minutes'.
Using absolute time when the input starts with in .. seems completely wrong.
Initially reported here: https://github.com/anoadragon453/matrix-reminder-bot/issues/38

It works with 'in 1h 30m', so it may be easy to implement.


Problem with DataParallel

There is a problem with model if you try to use multiGPU:
Traceback (most recent call last):
  File "train_local_run.py", line 44, in <module>
    train_model(args)
  File "train.py", line 239, in train_model
    loss = model(x, y)
  File "\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "\site-packages\torch\nn\parallel\data_parallel.py", line 171, in forward
    outputs = self.parallel_apply(replicas, inputs, kwargs)
  File "\site-packages\torch\nn\parallel\data_parallel.py", line 181, in parallel_apply
    return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
  File "\site-packages\torch\nn\parallel\parallel_apply.py", line 89, in parallel_apply
    output.reraise()
  File "\site-packages\torch\_utils.py", line 644, in reraise
    raise exception
StopIteration: Caught StopIteration in replica 0 on device 0.
Original Traceback (most recent call last):
  File "\site-packages\torch\nn\parallel\parallel_apply.py", line 64, in _worker
    output = module(*input, **kwargs)
  File "\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "\models\bs_roformer\mel_band_roformer.py", line 437, in forward
    stft_window = self.stft_window_fn(device=self.device)
  File "\models\bs_roformer\mel_band_roformer.py", line 403, in device
    return next(self.parameters()).device
StopIteration

What is the correct way to fix it?

My current dirty fix is:
    @property
    def device(self):
        # return next(self.parameters()).device
        return 'cuda'

@ZFTurbo hmm that's weird, not sure why it can't find any parameters
could you retry with distributed data parallel and see if this issue persists?

@ZFTurbo try 0.3.9?

New code works. Thank you!

yup no problem
highly recommend huggingface accelerate btw! it will take away all the pain of doing distributed training


Update the name at the donation website/update PayPal name.

As I have noticed, the page where you can donate to Hack Club, it still says hackEDU.

<3
/cc @zachlatta @MaxWofford

So sorry for taking so long to get to this. On it now!

Fixed! Going to https://donate.hackclub.io should now have "Hack Club" instead of "hackEDU".

Thanks so much for reporting this @metmets :heart:


mysq_tquery issue R41-4

I'm having problems with mysql_tquery, when the server reaches the 300-50 player mark, the queries sent to tquery apparently get stuck. The queries are sent normally do not return errors but they are never processed. For them to work again it is necessary to restart the database on the VPS and then it crashes again. The mysql_query function works normally. I use around 85 tquery on the server. It's not much and the quality of the consultations is ok! Could it be a thread bug in this version?

Same issue, Its also pquery too.


My Android OS 10 sample code of this working properly with 2 seconds refresh, but mobile phone lock and idle mode  with screen off GPS track only 6 or 8 time in a Minute. Please help to fix this.

My Android OS 10 sample code of this working properly with 2 seconds refresh, but mobile phone lock and idle mode  with screen off GPS track only 6 or 8 time in a Minute. Please help to fix this.

I invite you to understand the source code, test it, and to read the other threads before asking questions. You will see that @ormesam points to a workaround for some devices that block the background service in Android.

On Android, if you want to receive location updates while the app is minimised and/or screen locked you need a foreground service (with the type set to Location or some phones will kill the it).


DIRECTORY TREE GENERATOR

Description
A Script useful for visualizing the relationship between files and directories and making their positioning easy.

This can be used for implementations as one of the features.

Fixes #530
Have you read the Contributing Guidelines on Pull Requests?

[x] Yes
[ ] No

Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md
[x] My documentation follows Template for README.md
[x] My changes generate no new warnings
[x] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works.

LGTM
@kaustubhgupta @antrikshmisri

@all-contributors please add @vikashkumar2020 for code and documentation


[PORT] [Webex Adapter] Add Webex Functional Test and YAML File

Port this change from botbuilder-dotnet/master branch:
https://github.com/microsoft/botbuilder-dotnet/pull/3257

Description
This pull request adds a YAML file to set up a build pipeline for Webex Functional Test.
Specific Changes
We added the file botbuilder-dotnet-ci-webextest.yml inside the build/yaml folder.
By default, the file is configured to run the pipeline for each commit or pull request in the master branch. This can be changed in the file or in the UI when setting the pipeline.
How to use
The next steps will guide you through the configuration of a Build pipeline based on the YAML files.
Prerequisites

Azure DevOps organization.
Azure subscription. Required to create and delete Azure resources.
One app registration in Azure. More info
Configure an Azure Connection Service.
Create a Webex Application and a Webex webhook.

Creating an account & a Bot in Webex
Sign up for a developer account in the Webex Developer portal and create a new Webex Bot app. The only mandatory fields you'll need to set are the bot's name, user (email) and icon:

Once created, you will receive the bot's Access token and ID. The Access token will be displayed only once when you create your bot and never again, so don't forget it or you will have to generate a new one.

You can find further reading about Bots and how to create one on Webex's Documentation Page.
Creating and configuring an Azure pipeline
We will be using the file at \build\yaml\botbuilder-dotnet-ci-webextest.yaml for setting up a pipeline in Azure with the following steps:
•	Use .Net Core sdk 2.1.x [Use .NET Core]
•	Use .Net Core sdk 3.0.x [Use .NET Core]
•	Use NuGet 4.9.1 [NuGet tool installer]
•	NuGet restore [NuGet]
•	Build solution Microsoft.BotBuilder.sln [Visual Studio Build]
•	Dotnet Publish TestBot [.NET Core]
•	Create Azure Resources [Azure CLI]
•	Zip Deploy Bot [Azure CLI]
•	Set Environment Variables [PowerShell]
•	dotnet test [.NET Core]
•	Delete Resources [Azure CLI]
To create a pipeline based on a yaml file, select this option when creating a pipeline

Configure the repository and branch.

In the Configuration as code, select the YAML option

In the YAML section, write the build name and select the build YAML file inside the build folder in the root of the directory.

Setup variables
The following are the variables we need to add to the pipeline. It is a good idea to prefix their names with "Webex" or something to make them more relatable to Webex, since more than one set of functional tests may be running in the same pipeline.

Name
Value

BuildConfiguration
Set it to debug

BuildPlatform
Set it to any cpu

AppId*
An App Id registered in Azure

AppSecret*
The App Secret from said App   registration

RefreshToken*
(see Create an Integration below)

WebexIntegrationClientId
(see Create an Integration below)

WebexIntegrationClientSecret*
(see Create an Integration below)

WebexBotAccessToken*
The bot's access token obtained when it   was created

WebexRoomId*
(see Obtaining the room Id below)

WebexBotUserName
This is the username (an email   @webex.bot) that identifies the Webex bot you created in the previous step

AzureSubscriptionName
The subscription connection service to   authorize the pipeline with Azure

AzureBotPublicAddress
The public, messaging endpoint address   the bot will have when deployed to Azure

WebexWebhookName
The name you want for the webhook. Make   up one and write it down for later

WebexWebhookSecret
An optional secret string to secure the   communications. Make up one and write it down for later

*Set these variables as private.

Create a Webhook
The Webex .NET Echobot requires webhooks to be created manually. You can find the Webex webhook reference and a platform to test them at https://developer.webex.com/docs/api/v1/webhooks
In there you'll have a list of what the API offers in relation to webhooks (list, create, update…)

Either through the corresponding link, or using curl/Postman, you'll have to create a webhook by making a POST request to https://api.ciscospark.com/v1/webhooks
You will be given a 12-hours-expiring personal access token for this operation. You can leave the 'Use personal access token' option on if you make the POST from the web interface, otherwise you'll need to copy this value if you are going to make the POST from curl or Postman.

The remaining parameters you need are the webhook name, targetUrl, resource, event, filter, and secret. See the Create a webhook documentation for further reference on each.
For the targetUrl we will need the messaging endpoint our bot will have once deployed in Azure. Take the name we have set for our bot in the pipeline variables to compose this URL. It will go like this:
https://[AzureBotName].azurewebsites.net/api/messages
Remember, [AzureBotName] is the value you set for the pipeline at the previous step of this tutorial.
For resource and event, use messages, and created, as suggested by the example.
Obtaining the room Id
One parameter we're going to need to talk to the bot is the room Id. Every chat in Webex happens in a room so the functional test uses this value to retrieve messages by room.
You can get the room Id in the response for creating a message https://developer.webex.com/docs/api/v1/messages/create-a-message. You don't need to have the bot deployed to Azure to get this, only the bot created in Webex.
Send any test message to it and target the bot through its user (the email @webex.bot. Set this as the toPersonEmail field). The response will bring you the room Id:

Create an Integration
The personal access token you are given in the previous step is only for developing and should not be used in a production environment, since it expires every 12 hours. So for having the Azure pipeline running we need to get a better token. We will get this token from a Webex Integration we will create.
We should be able to create an Integration from the same menu where we created our bot in Webex

The process is pretty straightforward and will require name, email, icon, description, redirectUri(s), and scopes.
For scopes, tagging spark:all should be enough. For the redirectUri(s) add any https://[url] you wish to be redirected to.
Get the RefreshToken value
Once you finish creating your Integration, you will be given a Client ID and a Client Secret. Copy and store both.
You will also be presented with something like this:

Copy and paste that URL into a browser (you can set any state for the set state here value). That will take you to the URL you set as a redirection URI where at the address bar you will see
http://[YOUR_REDIRECT_URL]/?code=[CODE]. Copy the value at [CODE]. This is your authorization code.
You'll need now to make a POST request to _https://api.ciscospark.com/v1/access_token_ with the content type as x-www-form-urlencoded with the following parameters:

The Webex REST API will then return a payload like the following (picture taken from Webex's site):

This includes an access_token. That's the kind of token we need to use for the Azure pipeline, since it will allow us to send messages to the bot. It has a validity of 90 days.
The payload will also include a refresh_token that can be used to get a new token once the 90 days time passed (or earlier).
While the access_token will be valid for 90 days, you don't need to wait that long to request a new access token. As a matter of fact, in order for the access token not to have to be manually re requested after 90 days, the functional test requests a new access token (using the provided refresh_token) every time it runs.
Fill the RefreshToken, WebexIntegrationClientId, and WebexIntegrationClientSecret in the pipeline with the refresh_token, Client ID, and Client Secret values obtained in this step.
Changed projects

Adapters

[channel adapters]

N/A


flowblade: <IP_ADDRESS> -> <IP_ADDRESS>

Description of changes
Closes #240050.
Things done

Built on platform(s)

[ ] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 240114 run on aarch64-darwin 1

1 package marked as broken and skipped:

hikounomizu

6 packages built:

mlt
mlt.dev
python310Packages.mlt
python310Packages.mlt.dev
python311Packages.mlt
python311Packages.mlt.dev


Private Container registries with anonymous access

Description of the issue
We are using pipeline deployments from our tenant to client tenant.  We have made the container registry open for anonymous access and this is working well.  but PSRule does not like it and will not authenticate.
Error output

   at Azure.Containers.ContainerRegistry.ContainerRegistryRefreshTokenCache.GetRefreshTokenFromCredentialAsync(TokenRequestContext context, String service, Boolean async, CancellationToken cancellationToken)
   at Azure.Containers.ContainerRegistry.ContainerRegistryRefreshTokenCache.GetAcrRefreshTokenAsync(HttpMessage message, TokenRequestContext context, String service, Boolean async)
   at Azure.Containers.ContainerRegistry.ContainerRegistryRefreshTokenCache.GetAcrRefreshTokenAsync(HttpMessage message, TokenRequestContext context, String service, Boolean async)
   at Azure.Containers.ContainerRegistry.ContainerRegistryChallengeAuthenticationPolicy.AuthorizeRequestOnChallengeAsyncInternal(HttpMessage message, Boolean async)
   at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Core.Pipeline.RedirectPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Containers.ContainerRegistry.ContainerRegistryRestClient.GetManifestAsync(String name, String reference, String accept, CancellationToken cancellationToken)
   at Azure.Containers.ContainerRegistry.Specialized.ContainerRegistryBlobClient.DownloadManifestAsync(DownloadManifestOptions options, CancellationToken cancellationToken)
   at Bicep.Core.Registry.AzureContainerRegistryManager.DownloadManifestAsync(OciArtifactModuleReference moduleReference, ContainerRegistryBlobClient client)
   at Bicep.Core.Registry.AzureContainerRegistryManager.PullArtifactAsync(RootConfiguration configuration, OciArtifactModuleReference moduleReference)
   at Bicep.Core.Registry.OciModuleRegistry.TryPullArtifactAsync(RootConfiguration configuration, OciArtifactModuleReference reference)

Module in use and version:
Using PSRule v2.7.0
Using PSRule.Rules.Azure v1.23.0

@mpr555 Thanks for reporting the issue. What version of the Bicep are you using?
Bicep v0.14.6 should automatically try authenticated then if an unauthenticated error occurs retry as anonymous. Bicep v0.13.1 or earlier will just try to authenticate and then just fail.

@BernieWhite - Looks like I need a version upgrade of Bicep.  I will let you know how I get on.  Thanks again for the quick response.

I have upgraded and still getting the following
Bicep (0.14.6) compilation of 'C:\a\1\s.devops\bicep\avd\avd.bicep' failed with: C:\a\1\s.devops\bicep\avd\avd.bicep(66,11) : Error BCP192: Unable to restore the module with reference "br:exgprdukacr001.azurecr.io/bicep/modules/microsoft.keyvault.vaults:0.5.1533": Unhandled exception: Azure.Identity.CredentialUnavailableException: Please run 'az login' to set up account
This does work when you are deploying to the same tentant etc.

@mpr555 Thanks for the additional information. Let me do some digging to work out what is going on and try to reproduce.
A few more questions:
What's ACR SKU are you using?
You are using anonymous access to ACR, however do you have any private endpoints or firewall restrictions in place?
Are you using any customisations in bicepconfig.json for cloud profile?
Is the credentialPrecedence setting within bicepconfig.json set to: [ "AzureCLI" ]?

@BernieWhite We are using Standard SKU and as per MS docs it supports anon access.  We have not configure private endpoints or network restrictions as yet.
This is the bicepconfig.json snippet

{
  "cloud": {
      "credentialPrecedence": [
          "AzureCLI"
      ],
      "currentProfile": "AzureCloud"
  }
}

@mpr555 I see what you mean. I reproduced the issue and haven't found a work around for this. I also tried it directly via the Bicep CLI outside of PSRule and couldn't make it work when completely logged out of all Azure tools.
Bicep should try to restore a module 1. authenticated, then try 2. anonymous. However it never tries the anonymous path because the credential provider called in the authenticated path errors with an exception that you are not logged in.
Bicep only tries the anonymous path if you are authenticated to some Azure AD tenant but just don't have the ACR Pull permission (unauthorized).
So the end result is currently you need to still be authenticated to Azure, however the anonymous option will allow any authenticated user pull from the Bicep registry regardless of permissions.

We're going to need to get the Bicep team/ community involved on this one because I feel it will require a bug fix to the CLI.

@mpr555 Are you able to work around this issue by setting the environment variable shown in Restoring modules from a private registry to target your multi-tenanted app?

@BernieWhite It seems that it is not working and working all in the same deployement.  I have attached raw log.
new log.txt

@maxricketts Ok can you try with:
{
  "credentialPrecedence": [
    "Environment",
    "AzureCLI",
  ]
}

This looks the same
env cred new log.txt

@BernieWhite - It is pointing more towards working with the defined bicep file that is being deployed in the pipeline.  PSRule is picking up other bicep files that are not being used for that pipeline, but are in the same repo for other pipelines to do with the same project,  and they are not pulling down the module from the registry.  Is there away of having multiple PS-rule files, and in the pipeline define which one to use?  Then we could set it to only use the bicep file that is being used with the pipeline.

@maxricketts @mpr555 I think there is a few issues from the log:

Restoring modules is erroring on the tenant id. Double check you have set the AZURE_TENANT_ID environment variable on the task, that it is a GUID, and that it matches your Azure AD tenant GUID (no missing characters). See https://azure.github.io/PSRule.Rules.Azure/using-bicep/#set-pipeline-environment-variables
The officeVm.bicep module is failing with a missing appSecret parameter. Since hard coding a secret is a bad idea you can use the AZURE_PARAMETER_DEFAULTS option to set a placeholder value for testing. See https://azure.github.io/PSRule.Rules.Azure/setup/configuring-expansion/#required-parameter-defaults

Notes:
If you are using a self-hosted agent, then some of the modules could be cached which is why these are not failing to download. the Bicep CLI only attempts to download them locally if they are not already in the cache.

In regards to your question. If you are deploying from a single .bicep file then you could exclude other Bicep modules. Since all the other Bicep modules are included in Bicep deployment when it is compiled, it is all tested by the root Bicep deployment.
You could do this either:

Set the inputPath parameter on the task. Which will accept a path or specific file. See: https://azure.github.io/PSRule.Rules.Azure/creating-your-pipeline/#limiting-input-to-a-specific-path
You could configure a path exclusion with the Input.PathIgnore option, see: https://azure.github.io/PSRule.Rules.Azure/using-bicep/#configuring-path-exclusions

@BernieWhite - It seems to be working on the whole.  But I am seeing some issues.  Example.  I have 3 folders in my Azure DevOps repo, inside the folders I have various amounts of bicep files, usually 1-3.  only one of those files will be linked to a pipeline.  When the pipeline runs, PSRule is trying to scan all of them, and it fails as the bicep build process is not pulling down that particular module for the bicep files that are not linked to the pipeline.
I would be good if we could per pipeline exclude those files, or have multiples ps-rule.yaml files that we can somehow set with inthe psrule task in the pipeline.
If I have missed something and there is away of doing this, then please can you link me to the docs that state this.
Kind regards,
Max

@mpr555 @maxricketts You can by setting the Input.PathIgnore option. There is an example here: https://azure.github.io/PSRule.Rules.Azure/using-bicep/#configuring-path-exclusions
Also in the Bicep team gave an update that the anonymous bug should be fixed in the next release v0.15.x which is imminent.

@maxricketts The v0.15.31 release of Bicep is live. https://github.com/Azure/bicep/releases/tag/v0.15.31

If you need further assistance with the Input.PathIgnore option? or are we fine to close the issue?

@BernieWhite - I will test and let you know.

@BernieWhite - I dont think the input path is going to work in this instance.  Here is my folder structure for a little AVD project I am working on.  We are using this template to deploy to all of our clients.

As you see we have a few pipeline files that run various bicep files for this project.
Ideally I would like to include just the bicep file that I am running in the pipeline and pass that into the PSRule step, but I am unsure how.  I know you git it a path, but being able to define just a file would be good.
Let me know your thoughts on this.
Kind regards,
Max

@maxricketts Yes, that cam be done as mentioned above.

Set the inputPath parameter on the task. Which will accept a path or specific file. See: https://azure.github.io/PSRule.Rules.Azure/creating-your-pipeline/#limiting-input-to-a-specific-path

@BernieWhite - I had looked at this, but it only states for path, and it didn't state that you can specify a file.  I will try this and let you know.

@BernieWhite - This has worked an absolute treat!


Make sure buildSortingSelectSQL() does not crash

The default implementation of buildSortingSelectSQL() is well suited
for Fields that do not provide a custom buildSortingSQL()
implementation. But this can make Fields with a custom buildSortingSQL()
implementation without a buildSortingSelectSQL() crash if they do not
have the 'value' column.
This commits adds an extra SQL query to first check that the colunm
exist.  It does not even fixes the bug for real. We only need to check if the thing we want to add in the select exists in the sort expression.
Fixes #2718

This seems to fix my issues just fine.

Yep, well done!

The only way it could fail, would be to do a ORDER BY with a sub-query, that aliases the table to ed and uses the string "ed.value" in it. Never saw this in the wild.


Coverage documentation links to insecure urls

Summary

https://github.com/bbc/bbc-a11y/blob/master/guides/coverage.md links to http pages when should be https.
Expected Behaviour
I want a BBC website page that shows this coverage information with links to guidelines that work across most browsers.

Current Behaviour
https://github.com/bbc/bbc-a11y/blob/master/guides/coverage.md links to non secure urls for each guideline, the bbc website fails to load due to a javascript issue with appcache over non HTTPS

No content is loaded.

Possible Solution
The BBC should enforce HTTPS redirects and provide a public BBC website web page for this coverage documentation.

Steps to Reproduce (for bugs)

load https://github.com/bbc/bbc-a11y/blob/master/guides/coverage.md in a browser, firefox or chrome
click any link e.g. http://www.bbc.co.uk/guidelines/futuremedia/accessibility/mobile/principles
See error:

[Deprecation] Application Cache is restricted to secure contexts. Please consider migrating your application to HTTPS, and eventually shifting over to Service Workers. See https://goo.gl/rStTGz for more details.
12:39:27.887 cache.js:58 Uncaught TypeError: Cannot read property 'addEventListener' of undefined
    at HTMLDocument.init (cache.js:58)
    at bv (jquery-1.7.2.js:16)
    at Object.fireWith (jquery-1.7.2.js:16)
    at ready (jquery-1.7.2.js:16)

Context & Motivation
It's a very useful document and should be promoted as general practice when considering user interface testing.

Your Environment
It works on IE11 and on Edge.
It doesn't work on latest firefox and chrome, I haven't tried close to most common environments as yet but Win 7 FF and Chrome failed and Win 10 too.
Local mac testing both FF and Chrome fail.
Cloud testing on Mac high sierra with FF/chrome was the same, safari 11.1 apparently ok!

Version used:
Operating System and version:
Link to your project:

Fixed in #280


optimize pipelines for CI resource usage

merge post-commit and pre-merge pipelines
compress linux build tests and benchmark and run in one job to exploit nix cache
guard resource intensive tests with buttons

bors try

bors r+

bors r+

bors r+

bors r+

bors r+

We're having trouble with the Mac agents, merging anyway to reduce CI load...


Creating new segmentation volumes with Portuguese names

Segmentation is 'Segmentación' in Spanish and 'Segmentação' in Portuguese.
When I try to create a new segmentation volume named 'Segmentación' and 'Segmentação' using the Spanish and Portuguese versions of Slicer, respectively, the UI allows entering 'ó', 'ç' or 'ã' letters in the 'Create Segmentation' field.
However, when saving the scene, the accents in the volume names are not saved on the disk: the segmentation files are saved as 'Segmentacin.seg.nrrd' (ES) and Segmentao.seg.nrrd (PT).
(Tested with Slicer 2024-06-08 Preview Release on Mac OSX Sonoma 14.3)

Additionally, the 'Create Segmentation' and 'Create New Segmentation As' are still in English in the Portuguese version of Slicer

When saving a scene, suggested filenames are  sanitized by removing characters that are likely to cause problems in a filename. That's why only few characters are authorized in the filename, as you may see it in this code. However, if this behavior is not desired, it's always possible to update it.
Additionally, in the Save Scene Dialog, you have the option to directly edit the suggested filenames and rename them as you wish before saving the files. Thus, that updated filename, if correct, will be used when saving files.
I'm working on the identified untranslated strings to quickly propose a fix.

Removing characters that are likely to cause a problem makes sense. However, the inconsistency between the name that an end-user enters on the Slicer user interface and the name of the file written on the disk could be confusing.

Using special characters in filenames may lead to errors (file cannot be opened, cannot be copied to certain file systems, not transferred correctly, etc.). Users can see the automatically generated filenames in the save dialog and they can modify them if they want to, so I don't think the current situation is bad. But we can certainly try to improve things.
One option is to change the default node names so that they don't contain special characters (e.g., Segmentacion). This should be a simple change and keeps the words easy to understand and safe. Another option is to change the filename sanitization rules and let all characters to be used (except path separator, colon, etc.), which is riskier, but we can try and revert if we find that it commonly leads to issues.


Target .Net Standard 1.3

Checking the dependencies, and a quick local test on the project, it appears that RedditSharp can target .Net Standard 1.3 without any errors (Read as: It builds)
It would be nice if it built for the lowest possible .Net Standard version, which would mean that it could be used on more platforms without people having to custom compile a version.

There was a reason that I didn't target 1.3.. But that reason may have gone away and I can't remember what it was now so it must not have been a great reason. Feel free to open a PR for it, or I'll try and get it in there with my next changes.


Carousel wrong ordering

Bug description:
Carousel wrong ordering, same as this
Try to click next slide, and the slide will jump from "slide 0" straight to "slide 6"
Also try to change UIBS version to 1.1.0 and it worked.
The slides work properly within 11 slides, it's broken on the 12th one
Link to minimally-working plunker that reproduces the issue:
Plunker
Version of Angular, UIBS, and Bootstrap
Angular:
1.5
UIBS:
1.2.4
Bootstrap:
3.3.6

may be related to #5601.

I believe the bug is here. https://github.com/angular-ui/bootstrap/blob/48f62a6dadaee110a4d6777088a20681878dd407/src/carousel/carousel.js#L18
For sort, the comparison function needs to return -1, 0, or 1. Returning a boolean doesn't work as false is 0 which means the two are considered equal.

Good catch.. Thank you


ghc: user error (user error (Path is unchanged, nothing to do.))

In my attempt to fix up HERMIT for GHC 7.6 (see the ghc-7.6 branch), I stumbled across this runtime error:
$ hermit examples/last/Last.hs
[starting HERMIT v<IP_ADDRESS> on examples/last/Last.hs]
% ghc examples/last/Last.hs -fforce-recomp -O2 -dcore-lint -fsimple-list-literals -fexpose-all-unfoldings -fplugin=HERMIT -fplugin-opt=HERMIT:*:
[1 of 1] Compiling Main             ( examples/last/Last.hs, examples/last/Last.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-<IP_ADDRESS> ... linking ... done.
Loading package deepseq-<IP_ADDRESS> ... linking ... done.
Loading package containers-<IP_ADDRESS> ... linking ... done.
Loading package filepath-<IP_ADDRESS> ... linking ... done.
Loading package old-locale-<IP_ADDRESS> ... linking ... done.
Loading package time-<IP_ADDRESS> ... linking ... done.
Loading package bytestring-<IP_ADDRESS> ... linking ... done.
Loading package unix-<IP_ADDRESS> ... linking ... done.
Loading package directory-<IP_ADDRESS> ... linking ... done.
Loading package binary-<IP_ADDRESS> ... linking ... done.
Loading package old-time-<IP_ADDRESS> ... linking ... done.
Loading package pretty-<IP_ADDRESS> ... linking ... done.
Loading package process-<IP_ADDRESS> ... linking ... done.
Loading package Cabal-1.16.0 ... linking ... done.
Loading package bin-package-db-<IP_ADDRESS> ... linking ... done.
Loading package hoopl-<IP_ADDRESS> ... linking ... done.
Loading package hpc-<IP_ADDRESS> ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package ghc-7.6.3 ... linking ... done.
Loading package ansi-terminal-<IP_ADDRESS> ... linking ... done.
Loading package data-default-class-0.0.1 ... linking ... done.
Loading package data-default-instances-base-0.0.1 ... linking ... done.
Loading package data-default-instances-containers-0.0.1 ... linking ... done.
Loading package dlist-<IP_ADDRESS> ... linking ... done.
Loading package data-default-instances-dlist-0.0.1 ... linking ... done.
Loading package data-default-instances-old-locale-0.0.1 ... linking ... done.
Loading package data-default-0.5.3 ... linking ... done.
Loading package terminfo-<IP_ADDRESS> ... linking ... done.
Loading package transformers-<IP_ADDRESS> ... linking ... done.
Loading package haskeline-<IP_ADDRESS> ... linking ... done.
Loading package kure-2.16.2 ... linking ... done.
Loading package marked-pretty-0.1 ... linking ... done.
Loading package mtl-2.2.1 ... linking ... done.
Loading package random-<IP_ADDRESS> ... linking ... done.
Loading package operational-<IP_ADDRESS> ... linking ... done.
Loading package stm-2.4.3 ... linking ... done.
Loading package exceptions-0.6.1 ... linking ... done.
Loading package temporary-<IP_ADDRESS> ... linking ... done.
Loading package hermit-<IP_ADDRESS> ... linking ... done.
ghc: user error (user error (Path is unchanged, nothing to do.))

Here are the changes I made.

I've been trying to go through HERMIT and replace all uses of ErrorT with ExceptT (using the transformers-compat package), and I noticed that when I replace everything ErrorT-related with ExceptT in HERMIT.Plugin.Types, that alone is enough to trigger this error when running any example.
Therefore, it's possible that GHC HEAD isn't the problem, but rather the recent versions of mtl and transformers. It's rather difficult to test with the latest versions of those packages on GHC 7.8, since transformers-<IP_ADDRESS> is a dependency of ghc-7.8.

I think I've finally figured out the issue. I noticed that this piece of code from HERMIT.Plugin.Types:
instance Monad m => MonadCatch (PluginT m) where
    -- law: fail msg `catchM` f == f msg
    -- catchM :: m a -> (String -> m a) -> m a
    catchM m f = do
        st <- get
        (r,st') <- lift $ runPluginT st m

        case r of
            Left err -> traceShowM err >> case err of
                            PError msg -> undefined
                            other -> throwError other -- rethrow abort/resume
            Right v  -> put st' >> return v

behaves differently depending on which version of transformers is used. With transformers-<IP_ADDRESS>, r is Left (PError "user error (Path is unchanged, nothing to do.)"), as expected. With transformers-<IP_ADDRESS> (or transformers-compat), however, this code is never reached. That's because GHC is throwing an error message before then; specifically, from this code in HERMIT.Kernel.Scoped:
scopedKernel :: (ScopedKernel -> SAST -> IO ()) -> ModGuts -> CoreM ModGuts
scopedKernel callback = ...
    let skernel = ScopedKernel {
        ...
    , modPathS    = \ f env (SAST sAst) -> safeTakeTMVar store $ \ m -> do
                                (ast, base, rel) <- get sAst m
                                let rel' = f rel
                                queryK kernel ast (testPathStackT base rel') env
                                  >>= runKureM (\ b -> if rel == rel'
                                                        then fail "Path is unchanged, nothing to do."
                                                        else if b
                                                              then atomically $ do k <- newKey
                                                                                putTMVar store $ I.insert k (ast, base, rel') m
                                                                                return $ SAST k
                                                              else fail "Invalid path created.")

It seems that fail "Path is unchanged, nothing to do." is causing GHC is throw the error. This surprised me since I thought ExceptT behaved identically to ErrorT, but as it turns out, that's not true. There's a subtle difference in the Monad instances for the two classes:
instance (Monad m, Error e) => Monad (ErrorT e m) where
    ...
    fail msg = ErrorT $ return (Left (strMsg msg))

instance (Monad m) => Monad (ExceptT e m) where
    ...
    fail = ExceptT . fail

When fail returns an ErrorT, it always returns a Left value, which is why HERMIT wouldn't crash. With ExceptT, however, it returns an Either using fail, and since Either's Monad instance doesn't implement fail, it defaults to calling error.
Now, having said all that, I'm not sure what the best approach to fixing this is. modPathS has to return something of type m SAST, so we can't just replace fail with throwError. Perhaps we need to be calling catchError in more places?

Thanks for tracking this down!
It looks like we should be using throwE instead of fail. From the new transformers code:
-- | Signal an exception value<EMAIL_ADDRESS>--
-- * @'runExceptT' ('throwE' e) = 'return' ('Left' e)@
--
-- * @'throwE' e >>= m = 'throwE' e@
throwE :: (Monad m) => e -> ExceptT e m a
throwE = ExceptT . return . Left

To avoid changing code everywhere, I expect it might be easier to write our own Monad instance for PluginT, rather than deriving it*, because then we can define fail in the PluginT monad to call throwE.

https://github.com/ku-fpg/hermit/blob/master/src/HERMIT/Plugin/Types.hs#L34

Also, we should pre-emptively fix this anywhere else we use ExceptT.

The monad instance should be pretty simple... something like:
instance Monad m => Monad (PluginT m) where
  return = PluginT . return
  (PluginT m) >>= k = PluginT (m >>= unPluginT . k)
  fail msg = PluginT . throwE . PError

That suggestion sounds pretty reasonable. I'll try to fix this up for PluginT and CLT (since I believe those are the only monad transformer stacks we use that have ExceptT as a layer).

Closed in d476036f71b09e10fc20a93bba10d44afb385115.

Just curious, what version of mtl and transformers comes with 7.10? If they are sufficiently high to avoid the CPP, lets remember to bump their bounds and remove the CPP once 7.10 is in the Haskell Platform. (Our version policy is to support whatever GHC is in the Platform + newer versions.)

Also, don't forget to remove that extra print call I commented on... otherwise diff looks great!

ghc-7.10 itself has transformers-<IP_ADDRESS> as a dependency, so barring any new major versions of either package, we should be able to use the latest versions of transformers and mtl in the next version of HERMIT. That's what I'm doing right now in the experimental GHC 7.10 HERMIT branch, which as of that bugfix, seems to work.


file or folder not found

i tried installing discord api types, but looks like it didnt work
~/.../stuff/hazy $ npm install @discordjs/discord-api-types
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@discordjs%2fdiscord-api-types - Not found
npm ERR! 404
npm ERR! 404  '@discordjs/discord-api-types@*' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

these are all the versions
~/.../stuff/hazy $ npm version
{
  hazy: '1.0.0',
  npm: '8.2.0',
  node: '17.2.0',
  v8: '<IP_ADDRESS>-node.12',
  uv: '1.42.0',
  zlib: '1.2.11',
  brotli: '1.0.9',
  ares: '1.18.1',
  modules: '102',
  nghttp2: '1.45.1',
  napi: '8',
  llhttp: '6.0.4',
  openssl: '1.1.1l',
  cldr: '40.0',
  icu: '70.1',
  tz: '2021a3',
  unicode: '14.0'
}

It's just discord-api-types, not @discordjs/discord-api-types

thanks


Multiple ++m on a map only does something the first time

What it does the first time is add { _0:null }, but the second time since that element already exists, it does nothing.
Two choices that I see:

Use some other scheme for the dummy key names (maybe random words from our WordFind dictionary)
Don't allow this operation at all on maps. Because once the entry is there, you can't change the key name, so it's not like it is doing anything very useful.

Actually, as of merging #409 the ++m on an empty object doesn't even work: Error: Unable to convert value of collection type to decimal number.

Actually, right now, doing m[0] = { b: 3 } changes the value of the 0-th key, BUT it could recognize that this is an object on the RHS and change both the key and value. That would mean the dummy key names fix would be fine. As an example:
m = {}
++m -> { junk: null }
m[0] = { b:3 } -> { b: 3 }
++m -> { huge: null, b:3 }

(assuming random words inserted as keys with the ++)