Extension resource fix

Description

Now we will validate a ResourceOperations/ResourceContainer whether its ResourceName has been existing in the corresponding map when building the maps in MgmtOutputLibrary. If so, the generator will throw an exception to ask the user to add the operation-group-is-extension to the operation groups.
This will avoid the case that if we have two ResourceOperations/ResourceContainer with the same ResourceName, they will be written in the same file.
Now the IsExtension logic is resolved when building Resource object. If the corresponding operation group is marked as extension, the ResourceName of that Resource object will have a suffix of its parent's name. This change allows us to generate two different resources with different operations when they could be created under different paths and operation groups.
Along with the Resource, now the ResourceOperations will take the corresponding resource name in their own names, meaning that if two operation groups are marked as extension with the same resource, we will have two different resources, and two different resource operations and two different resource container.
Introduces a new test project to test the above logic.

Checklist
To ensure a quick review and merge, please ensure:

[ ] The PR has a understandable title and description explaining the why and what.
[ ] The PR is opened in draft if not ready for review yet.

If opened in draft, please allocate sufficient time (24 hours) after moving out of draft for review

[ ] The branch is recent enough to not have merge conflicts upon creation.

Ready to Land?

[ ] Build is completely green

Submissions with test failures require tracking issue and approval of a CODEOWNER

[ ] At least one +1 review by a CODEOWNER
[ ] All -1 reviews are confirmed resolved by the reviewer

Override/Marking reviews stale must be discussed with CODEOWNERS first

/azp run


Removed invitedBy from signup routes

refs https://github.com/TryGhost/Ghost/issues/10286

not used
looking for more information? visit https://github.com/TryGhost/Ghost/pull/10291

updated 🤣

Coverage increased (+0.01%) to 71.352% when pulling 27969e9eebcd8f95d22401369e3fffecf7dead11 on kirrg001:burn-invited-by into 58ab77816fc763e01c90bbb7467bd1e8c1a738c9 on TryGhost:master.


R.unzip

As mentioned in #81

FWIW, while writing the docs, I noticed that the docs contain reference to both tuple and pair, and element and item; not a big deal, but might be worth standardising for internal consistency.

Agreed.  It would be good to standardize.

@CrossEye I've made the changes you mentioned. Actually an alternative to unzip could be a more general pair of functions, pivot / unpivot.
pivot([['a', 'b', 'c'], [1, 2, 3], [true, false, true]]) //=> [['a', 1, true], ['b', 2, false], ['c', 2, true]]
unpivot([['a', 1, true], ['b', 2, false], ['c', 2, true]]) //=>  [['a', 'b', 'c'], [1, 2, 3], [true, false, true]]

(However, working with pairs seems the most common use case and has most synergy with the existing Ramda functions)

(also, is master the correct branch to do a PR against? what's the Ramda release process?)

what is the difference between pivoy and unpivot? seems to me that pivot(pivot(lists)) ≍  lists

master is the correct branch.  So far we've done nothing tricky with releases.

I think I would leave zip* in place as it's a well-known interface, but perhaps instead of unzip, we could use pivot or transpose for arbitrary-length lists of lists.  And, as @buzzdecafe points out, we only need the one.

I think I would leave zip* in place as it's a well-known interface, but perhaps instead of unzip, we could use pivot or transpose for arbitrary-length lists of lists.

sounds good to me.

@buzzdecafe well spotted.
I only meant that pivot could replace unzip, as it only takes one list (of lists) as argument;  zip takes two lists, which is probably useful when curried, and zipWith and zipObject only really make sense on tuples/pairs.

I prefer transpose to pivot but could live with either.  It would be nice to see what other langauges/libraries use here.  This is also discussed in #1452, and I presented some implementations in #1068 (although all of them would have to updated to take into account the deprecation of mapIndexed in favor of addIndex in #1061.)

Updated those implementations:
http://bit.ly/1PR1NBA

transpose is fine with me; I think PIVOT is from MS SQL, while Excel has a TRANSPOSE function. Haskell also has transpose.

this is fun -- here is a different impl just for fun:
http://bit.ly/1NgIt1O

How about this?
The behaviour when rows are of unequal length is lifted  from http://hackage.haskell.org/package/base-<IP_ADDRESS>/docs/Data-List.html#v:transpose

Also, can anyone suggest a more informative type signature than [nx] -> [xn] ?

maybe just crib it from Haskell:
transpose :: [[a]] -> [[a]]

@buzzdecafe cool. Test added.

just needs squashing, then :cow2:

This looks good to me.  Any other feedback, anyone?
Could you squash the commits?

OK doke. I was a bit clumsy with rebase, but I think the commits are squashed ok now...

LGTM :cow2:
thanks for persevering

Please run git commit --amend and rewrite the commit message to summarize the patch, rather than give a blow-by-blow account. :)

Done. Is there  a style guide document somewhere that CONTRIBUTING.md  could point to?
And a key for the emoji semantics... :thought_balloon:

Is there a style guide document somewhere that CONTRIBUTING.md could point to?

That would be very useful. Such a document does not yet exist.

And a key for the emoji semantics...

:space_invader: (:space_invader:) indicates a stray empty line (in this case at the end of a file).

Space invaders removed, xs changed for is.


add underlay and click away event

Adds an underlay to the search bar that fades from white to transparent. Clicking away from the search bar closes search

:+1: To everything, but maybe get Olex to look over the CSS because that's some black magic. Although I guess if it works it's all good, it sure reads well.


Feat: Add generateShortUrl() function with .NET 6

Description
Generates a short URL using the bitly and tinyurl APIs.
Tests Done
Test 1

Input

Output

Test 2

Input

Output

Test 3

Input

Output

Test 4

Input

Output

Test 5

Input

Output

Issues solved
Solves issue appwrite/appwrite #4193

THANK YOU! All changes merged 🥳
Please reach out to me on our Discord server if you would like to claim your Appwrite swags! As a way of saying thank you, we would also love to invite you to join the Appwrite organization on GitHub. Please share your GitHub username with us on Discord.
You can accept the invite by visiting https://github.com/orgs/appwrite/invitation. By joining our team, you will officially be an Appwrite maintainer on GitHub.
You can change your membership visibility settings, so your new Appwrite team membership badge will show up on your personal GitHub profile.
Please feel free to look for more PRs you might be interested in helping with on our long list of Hacktoberfest friendly issues and help make Appwrite better :)


Add endpoint to create app

What
Added endpoint to create app by making request to API.
Also re-render the app form by passing the API errors so that we can give the user some meaningful feedback.
Ticket
https://trello.com/c/rouWbSy1/439-create-app-on-post-request-2

Looks like some tests are failing so having a look, also I'll try to write some tests for this.


systemd-shutdown: adjust watchdog expiration time

By default, the second stage watchdog time that is used to set the watchdog once systemd-shutdown has stopped all services and replaced PID1 with itself is set to 10m.
However, the RPI watchdog has a maximum timeout of 15s, so we adjust this value accordingly.
This helps ensure that when a shutdown or reboot is triggered, the device can fallback to a watchdog reboot if it gets stuck.
Changelog-entry: adjust reboot watchdog timeout

Passed tests:

test-raspberrypi — OS tests have passed
test-raspberrypi2 — OS tests have passed
test-raspberrypi3 — OS tests have passed
test-raspberrypi3-64 — OS tests have passed
test-raspberrypi4-unipi-neuron — OS tests have passed
test-revpi-connect — OS tests have passed
test-rt-rpi-300 — OS tests have passed

Failed required tests:

test-raspberrypi0-2w-64
test-raspberrypi4-64

@resin-jenkins retest this please

TODO: check the configuration is correctly set after solving conflicts

@resin-jenkins retest this please

@resin-jenkins retest this please

@resin-jenkins retest this please

Verified the settings on the raspberrypi4-64 docker image.

@resin-jenkins retest this please

@resin-jenkins retest this please

@resin-jenkins retest this please

@resin-jenkins retest this please

Passed:

test-raspberrypi3
test-raspberrypi3-64
test-raspberrypi4-64

Passed:

test-raspberrypi0-2w-64
test-raspberrypi3
test-raspberrypi3-64
test-raspberrypi4-64

@resin-jenkins retest this please

@resin-jenkins retest this please

@resin-jenkins retest this please

@resin-jenkins retest this please


Upgrade to supported actions

@flodolo noted that actions/upload-release-asset is no longer maintained. Let's check all the actions in use and either update them to newest versions, or upgrade to maintained and trustworthy alternatives.

actions/create-release is also not maintained.


fix typo

I Created a  deployment yaml file tomcatdp.yaml， and did not set the .spec.strategy，then run
kubectl create -f tomcatdp.yaml,
and then run
kubectl get deployment tomcat-deployment -o yaml,
the tomcat-deployment is the name of the deployment,found that the MaxUnavailable and MaxSurge default value is 25%

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
For 1.7 Features: set Milestone to 1.7 and Base Branch to release-1.7
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
NOTE: Please check the “Allow edits from maintainers” box below to allow
reviewers fix problems on your patch and speed up the review process.
Please delete this note before submitting the pull request.

This change is

I signed it!

kubernetes > 1.6.0 introduces new deployment defaults in apps/v1beta1
The embedded nginx-deployment.yaml uses apiVersion: apps/v1beta1
https://github.com/kubernetes/kubernetes.github.io/blob/master/docs/concepts/workloads/controllers/nginx-deployment.yaml#L1
apps/v1beta1 defaults in kubernetes master:
https://github.com/kubernetes/kubernetes/blob/master/pkg/apis/apps/v1beta1/defaults.go#L83-L92
Based on this [and the ref'd PRs below] they should be bumped to 25%
cc @chenopis ¯\_(ツ)_/¯
ref https://github.com/kubernetes/kubernetes.github.io/pull/3814
ref https://github.com/kubernetes/kubernetes/pull/39683

@JonPulsifer Ok, thanks for the context.


Declaration of MyBB\Auth\AuthManager::callCustomCreator() should be compatible with Illuminate\Auth\AuthManager::callCustomCreator($name, array $config)

When "composer install" and "php artisan vendor:publish":
[ErrorException]
Declaration of MyBB\Auth\AuthManager::callCustomCreator() should be compatible with Illuminate\Auth\AuthManager::callCustomCreator($name, array $config)

Hi, this is a known issue. The auth package is being rewritten to work.

On 2 Jan 2016, at 07:01, adiantek<EMAIL_ADDRESS>wrote:
When "composer install" and "php artisan vendor:publish":
[ErrorException]
Declaration of MyBB\Auth\AuthManager::callCustomCreator() should be compatible with Illuminate\Auth\AuthManager::callCustomCreator($name, array $config)
—
Reply to this email directly or view it on GitHub.

Which commit is fully compilable and runnable?

There isn't currently a working version. Past commits do work, but I can't point to a specific one. The problem was introduced by a change in the Laravel framework.


How to add extra information like introduction for each Subject?

I am currently using your CompreFace, which is very user-friendly However, I would like to know how to add additional information for each person beyond their name.
I noticed that in the default settings, the Subject Name cannot exceed 50 characters, it is not feasible to concatenate the person's name and other information since the count of characters for personal introduction exceeds the limit.
Is there any way to remove this restriction, or are there other solution that when I recognize a photo, I can not only get the person's name but also their personal introduction?

Doesn't seem like it supports a way to store extra info by default. You'd have to have something external to manage that data.
#934
#1235


OBO Purl is wrong

Hi @colinbatchelor,
the IRI provided in RXNO is http://purl.obolibrary.org/obo/rxno.obo.owl which resolves to http://ontologies.berkeleybop.org/
but it should be http://purl.obolibrary.org/obo/rxno.owl which resolves to https://raw.githubusercontent.com/rsc-ontologies/rxno/master/rxno.owl, right?

can be closed, as it was resolved with #26

Thanks!


Embed v4

When we will be able to embed v4?
I noticed here that embed only works for v3.

Any update on this?
As mentioned, v3 uses python 2.7, which is widely no longer used. It would be far preferable to embed v4 than v3.

Hi,
Just wanted to see if there was an update on this?
Thanks,
Josh

@joshwolff1 v4 embed would not be feature par with v3 embed and therefore it is not offered.
There is currently no ETA I could share for v4 embed support.


Support java.util.Map and it's subtypes, as it's in the spec

Section 8.5.4 of the JAXB spec states that java.util.Map (and its subtypes) must
be supported. The RI does not, does it?
I didn't find any issues with "Map" in the Summary.
I'm not shure about the exact version... the one shipped with OpenJDK-6.
Environment
Operating System: All
Platform: All
Affected Versions
[2.1]

@Tomas-Kraus Thanks for notifying me, but it does not seem that I'm involved in this project in any way.
https://blog.github.com/2011-03-23-mention-somebody-they-re-notified/

moved the spec part to https://github.com/eclipse-ee4j/jaxb-api/issues/237


A place to chat/discuss about VS Code.

I can't seem to find one.
Maybe it would be worth opening up the Discussions tab here on GitHub?

In the readme, this is linked https://gitter.im/Microsoft/vscode.  I have never used it, so I don't really know how active/useful it is though.

In the readme, this is linked https://gitter.im/Microsoft/vscode.  I have never used it, so I don't really know how active/useful it is though.

yes! i have nothing vs Stackoverflow but centralizing issues, supports and discutions about VsCode at the same place would be ideal I think.
maybe need poke the Admin of this repo !

+1 for enabling Discussions on this and all related repos. Would make SEO for the rest of us a lot easier than searching StackOverflow and Reddit and whatever else.

The irony is that Github is belongs to Microsoft now and it does not use its own tools !
If i choose Microsoft products since many years it to ideally centralize as much as possible my all tasks and link all to one entities.

any plan on enabling Github discussions?

https://github.com/microsoft/vscode-discussions

the issue is github discutions are not indexed by google.
So you wast time to answer people.

Since vscode-discussions got linked, I wanted to give some background: We launched it at small scale to experiment, solely focused on extension development (for now). If that is what you want to talk about, learn and collaborate with others, please swing by.
So far we have seen, Discussions have great SEO (afaik not as Discussions launched, but a lot changed since then).
When we'll grow the topic surface beyond extension development, I'll update this thread.


test(state): Test that Zebra resets correctly when committing blocks fails

Motivation
We want to test if the checkpoint verifier, state queues, and block write task are correctly reset on errors.
Closes #2654
Designs
We might want to randomly fail some blocks in some tests, at low probability (1 in 1000 to 1 in 100,000).
We might want to cause errors the first time we reach a height, then validate the block properly the second time.
Solution

Pick some places where we can cause errors at random

Review
This PR is incomplete.
Reviewer Checklist

[ ] Will the PR name make sense to users?

[ ] Does it need extra CHANGELOG info? (new features, breaking changes, large changes)

[ ] Are the PR labels correct?
[ ] Does the code do what the ticket and PR says?
[ ] How do you know it works? Does it have tests?

@upbqdn you might want to keep on working on this, I didn't get as far as I thought!

@mergifyio update

Automating these tests is out of scope, so I'm going to close this PR now.


The selector "#yt-player-ngx-component" did not match any elements

Hello all,
I have this error when I put a player in a carousel (ngx-slick). This happens if I have a player in a hidden slide.
Any idea?
Thanks in advance

ok, I've found the solution


Helper classes with similar names are not removed

Here is a very simple example that shows my problem:
var purifyCss = require("purify-css")

var html = '

'
var css = `
/* only .span-2 should stay */
.span-1 {width: 1vw}
.span-2 {width: 2vw}
.span-3 {width: 3vw}

/* .extra will be removed */
.extra {width: 100vw}
`

var purified = purifyCss(html, css, {})

the output I get is this:
/* only .span-2 should stay */
.span-1 {
  width: 1vw;
}
.span-2 {
  width: 2vw;
}
.span-3 {
  width: 3vw;
}
/* .extra will be removed */

you can try this for yourself here: https://runkit.com/jsnanigans/5a01849baa30e50011c511e7
To summarize;
The classes span-1 span-2 span-3 exist in the original css, but in my html I only use span-2. I would expect span-1 and span-3 to be removed but they persist in the purified output.
I can't imagine that I am the first to notice this, so I apologize if this is a re post.

Hey @jsnanigans, I suggest you to use purifycss-extended instead.
I forked this repo few days ago and fix some bugs, you can find more details here!
I ran your code: https://runkit.com/haplifeman/5a0435c407085d001201410a :)

@HapLifeMan that is awesome, thank you!

I added a pullrequest to fix this problem by giving the opportunity to add custom regex to filter a wider range of classes https://github.com/purifycss/purifycss/pull/190

Pull requests are not merged... But this is a nice feature!


Looking for help on integrating PnP modern search extensibility samples with PnP modern search solution

Hi Team,
I'm new to development and PnP modern search solution, Kindly help us with in-detailed steps for how to integrate PnP Modern search extensibility samples with PnP modern solutions ?
I have uploaded the solution "pnp-modern-search-extensibility-demo.sppkg" at app catalog and try to add integrate custom suggestion provider with search box (Added manifest GUID to search configurations sections) but still does not working.
it more helpful for me if you provide indetailed steps on how to integrate the demo solution with PnP and then how we could add a custom web component. thank you in advance,
Regards,
gangadhar

Did you read https://microsoft-search.github.io/pnp-modern-search/extensibility/?

Did you read https://microsoft-search.github.io/pnp-modern-search/extensibility/?

Yes, I have gone through the steps and couldn't be able to find for use GitHub extension library (Maybe I'm missed - I'm not developer).
Could you please provide us the steps to reuse the one provided in the GitHub repository.

Hi @GangadharMFord, you need to deploy the demo sppkg in your app catalog if you want to test: https://github.com/microsoft-search/pnp-modern-search-extensibility-samples/releases/tag/1.1.1. Do forget to make the solution available for all sites when deploying.

Hi @GangadharMFord, you need to deploy the demo sppkg in your app catalog if you want to test: https://github.com/microsoft-search/pnp-modern-search-extensibility-samples/releases/tag/1.1.1. Do forget to make the solution available for all sites when deploying.

thank you for your message and i'm getting the below error.

Hi @GangadharMFord, you need to deploy the demo sppkg in your app catalog if you want to test: https://github.com/microsoft-search/pnp-modern-search-extensibility-samples/releases/tag/1.1.1. Do forget to make the solution available for all sites when deploying.

thank you for your message and i'm getting the below error.

Hi francky,
Could you please help me with this issue. I'm still facing the issue and couldn't able to integrate with search parts solution.
kindly help me with the steps. thank you.
Regards,
Gangadhar

Did you read https://microsoft-search.github.io/pnp-modern-search/extensibility/?

Hi, I'm not doing any customization or added a new code into to, would like to integrate the current solution (samples demo) to the PnP search box (checking out of the box custom suggestions functionlaity) but still it was not working and has the same error.
ERROR: The custom suggestions provider with key 'CustomSuggestionsProvider' was not found. Make sure the solution is correctly deployed to the app catalog and the manifest ID registered for this Web Part.Please refer to the official documentation.
I also packed a new samples demo solution and tested but still the issues remain same.

@FranckyC ?

@GangadharMFord I think you answered your own question above.
The package sample isn't compatible with your existing Modern Search version. Therefore, you have two options: 1. Update and deploy the compatible version of the Modern Search. 2. Update/modify the sample extensibility so it will be compatible with your existing Modern Search.


Please release 3.46.0 binaries

:point_up:

That's done but honestly I don't think there is anything so noteworthy in the new release.


google.gax.errors.GaxError

Thank you for reporting an issue to google-cloud-python!
If you are reporting an issue or requesting a feature, please search the
existing open and closed issues to see if there is already work being done.

https://github.com/GoogleCloudPlatform/google-cloud-python/issues
http://stackoverflow.com/questions/tagged/google-cloud-python

If you can provide us with as much of the following information as possible it
will help us identify the cause of your issue more quickly.
1.Speech-Recognization
2. Ubunto 16.04
3. Python 2.7
4.  Python 2.7
5. Waiting for operation to complete...
Traceback (most recent call last):
File "transcribe_async.py", line 100, in
transcribe_gcs(args.path)
File "transcribe_async.py", line 81, in transcribe_gcs
response = operation.result(timeout=None) #90
File "/usr/local/lib/python2.7/dist-packages/google/gax/init.py", line 596, in result
raise GaxError(self._operation.error.message)
google.gax.errors.GaxError
6. use https://storage.googleapis.com/staging.deeplearning-193422.appspot.com/test1.mp3 in transcribe_async.py
7. Run from google cloud shell  python transcribe_async.py gs://staging.deeplearning-193422.appspot.com/test1.mp3
Using GitHub flavored markdown can help make your request clearer.
See: https://guides.github.com/features/mastering-markdown/

Hello, you did not mention the version number of speech that you are using.  However, we are trying to get rid of the gax library and you may be able to fix this error using the latest version.
Please try upgrading by using pip install -- upgrade.  Please let us know if you encounter any more questions.

I am using 0.3 version for speech .
I ran upgrade , but still same error
Waiting for operation to complete...Traceback (most recent call last): File
"transcribe_async.py", line 100, in  transcribe_gcs(args.path) File
"transcribe_async.py", line 81, in transcribe_gcs response =
operation.result(timeout=90) #90 File
"/usr/local/lib/python2.7/dist-packages/google/gax/init.py", line 596,
in result raise GaxError(self._operation.error.message)
google.gax.errors.GaxError
On Thu, Feb 15, 2018 at 6:27 PM, chemelnucfin<EMAIL_ADDRESS>wrote:

Hello, you did not mention the version number of speech that you are
using. However, we are trying to get rid of the gax library and you may be
able to fix this error using the latest version.
Please try upgrading by using pip install -- upgrade. Please let us know
if you encounter any more questions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/4885#issuecomment-365942625,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhvSPhCxmSLr3miD9kX-OK0qPqsGXOGEks5tVD7AgaJpZM4SGtKj
.

Even if I use sample file i get same error
python transcribe_async.py resources/audio.rawWaiting for operation to
complete...Traceback (most recent call last): File "transcribe_async.py",
line 102, in  transcribe_file(args.path) File
"transcribe_async.py", line 52, in transcribe_file response =
operation.result(timeout=90) File
"/usr/local/lib/python2.7/dist-packages/google/gax/init.py", line 596,
in result raise GaxError(self._operation.error.message)
google.gax.errors.GaxError
On Fri, Feb 16, 2018 at 7:32 PM, Abhishek Jain<EMAIL_ADDRESS>wrote:

I am using 0.3 version for speech .
I ran upgrade , but still same error
Waiting for operation to complete...Traceback (most recent call last):
File "transcribe_async.py", line 100, in
transcribe_gcs(args.path) File "transcribe_async.py", line 81, in
transcribe_gcs response = operation.result(timeout=90) #90 File
"/usr/local/lib/python2.7/dist-packages/google/gax/init.py", line
596, in result raise GaxError(self._operation.error.message)google.gax.
errors.GaxError
On Thu, Feb 15, 2018 at 6:27 PM, chemelnucfin<EMAIL_ADDRESS>wrote:

Hello, you did not mention the version number of speech that you are
using. However, we are trying to get rid of the gax library and you may be
able to fix this error using the latest version.
Please try upgrading by using pip install -- upgrade. Please let us know
if you encounter any more questions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/4885#issuecomment-365942625,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhvSPhCxmSLr3miD9kX-OK0qPqsGXOGEks5tVD7AgaJpZM4SGtKj
.

@abhibeta we've completely removed gax from the latest version of the speech client, so it's very unusual that you're still getting that error with an update version. Can you give us the output of pip freeze?

apic-google-cloud-error-reporting-v1beta1==0.15.3
gapic-google-cloud-logging-v2==0.91.3google==2.0.1google-api-core==0.1.4
google-api-python-client==1.6.5google-auth==1.4.1google-cloud==0.32.0
google-cloud-bigquery==0.28.0google-cloud-bigquery-datatransfer==0.1.0
google-cloud-bigtable==0.28.1google-cloud-container==0.1.0
google-cloud-core==0.28.0google-cloud-datastore==1.4.0
google-cloud-dns==0.28.0google-cloud-error-reporting==0.28.0
google-cloud-firestore==0.28.0google-cloud-language==1.0.0
google-cloud-logging==1.4.0google-cloud-monitoring==0.28.0
google-cloud-pubsub==0.30.1google-cloud-resource-manager==0.28.0
google-cloud-runtimeconfig==0.28.0google-cloud-spanner==0.29.0
google-cloud-speech==0.30.0google-cloud-storage==1.6.0
google-cloud-trace==0.17.0google-cloud-translate==1.3.0
google-cloud-videointelligence==1.0.0google-cloud-vision==0.29.0
google-gax==0.15.16google-resumable-media==0.3.1
googleapis-common-protos==1.5.3grpc-google-iam-v1==0.11.4grpcio==1.9.1
httplib2==0.10.3idna==2.6oauth2client==3.0.0ply==3.8
proto-google-cloud-datastore-v1==0.90.4
proto-google-cloud-error-reporting-v1beta1==0.15.3
proto-google-cloud-logging-v2==0.91.3protobuf==3.5.1psutil==5.4.3
pyasn1==0.4.2pyasn1-modules==0.2.1pytz==2018.3requests==2.18.4rsa==3.4.2
six==1.11.0uritemplate==3.0.0urllib3==1.22
On Fri, Feb 16, 2018 at 8:49 PM, Jon Wayne Parrott<EMAIL_ADDRESS>
wrote:

@abhibeta https://github.com/abhibeta we've completely removed gax from
the latest version of the speech client, so it's very unusual that you're
still getting that error with an update version. Can you give us the output
of pip freeze?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/4885#issuecomment-366291451,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhvSPnL5Q_sBPh7Q7WcbV_Ng2TL3ejizks5tVbGdgaJpZM4SGtKj
.

I see. Can you run pip install --upgrade google-cloud-speech and try again?
@lukesneeringer more fuel for that "remove the umbrella package" fire.

Got upgraded to 0.32 version from 0.30.
but getting different error from same line
python transcribe_async.py gs://
staging.deeplearning-193422.appspot.com/test1.mp3Waiting for operation to
complete...Traceback (most recent call last): File "transcribe_async.py",
line 100, in  transcribe_gcs(args.path) File "transcribe_async.py",
line 81, in transcribe_gcs response = operation.result(timeout=90) #90 File
"/home/geek_abhishek/python-docs-samples/speech/cloud-client/env/lib/python3.5/site-packages/google/api_core/future/polling.py",
line 111, in result raise
self._exceptiongoogle.api_core.exceptions.GoogleAPICallError:
None Unexpected state: Long-running operation had neither response nor
error set.(env)
geek_abhishek@deeplearning-193422:~/python-docs-samples/speech/cloud-client$
python transcribe_async.py resources/audio.rawWaiting for operation to
complete...Traceback (most recent call last): File "transcribe_async.py",
line 102, in  transcribe_file(args.path) File
"transcribe_async.py", line 52, in transcribe_file response =
operation.result(timeout=90) File
"/home/geek_abhishek/python-docs-samples/speech/cloud-client/env/lib/python3.5/site-packages/google/api_core/future/polling.py",
line 111, in result raise
self._exceptiongoogle.api_core.exceptions.GoogleAPICallError:
None Unexpected state: Long-running operation had neither response nor
error set.
On Fri, Feb 16, 2018 at 8:54 PM, Jon Wayne Parrott<EMAIL_ADDRESS>
wrote:

I see. Can you run pip install --upgrade google-cloud-speech and try
again?
@lukesneeringer https://github.com/lukesneeringer more fuel for that
"remove the umbrella package" fire.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/4885#issuecomment-366293038,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhvSPlxxUm7lzCCC_wmUmGm4me2uc1Tdks5tVbLcgaJpZM4SGtKj
.

Is sample code working for you
running  python transcribe_async.py resources/audio.raw from gcloud.
On Fri, Feb 16, 2018 at 9:01 PM, Abhishek Jain<EMAIL_ADDRESS>wrote:

Got upgraded to 0.32 version from 0.30.
but getting different error from same line
python transcribe_async.py gs://staging.deeplearning-
193422.appspot.com/test1.mp3Waiting for operation to complete...Traceback
(most recent call last): File "transcribe_async.py", line 100, in
transcribe_gcs(args.path) File "transcribe_async.py", line 81, in
transcribe_gcs response = operation.result(timeout=90) #90 File
"/home/geek_abhishek/python-docs-samples/speech/cloud-
client/env/lib/python3.5/site-packages/google/api_core/future/polling.py",
line 111, in result raise self._exceptiongoogle.api_core.exceptions.GoogleAPICallError:
None Unexpected state: Long-running operation had neither response nor
error set.(env) geek_abhishek@deeplearning-193422:~/python-docs-samples/speech/cloud-client$
python transcribe_async.py resources/audio.rawWaiting for operation to
complete...Traceback (most recent call last): File "transcribe_async.py",
line 102, in  transcribe_file(args.path) File
"transcribe_async.py", line 52, in transcribe_file response =
operation.result(timeout=90) File "/home/geek_abhishek/python-
docs-samples/speech/cloud-client/env/lib/python3.5/site-
packages/google/api_core/future/polling.py", line 111, in result raise
self._exceptiongoogle.api_core.exceptions.GoogleAPICallError: None
Unexpected state: Long-running operation had neither response nor error set.
On Fri, Feb 16, 2018 at 8:54 PM, Jon Wayne Parrott <
<EMAIL_ADDRESS>wrote:

I see. Can you run pip install --upgrade google-cloud-speech and try
again?
@lukesneeringer https://github.com/lukesneeringer more fuel for that
"remove the umbrella package" fire.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/4885#issuecomment-366293038,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhvSPlxxUm7lzCCC_wmUmGm4me2uc1Tdks5tVbLcgaJpZM4SGtKj
.

@chemelnucfin can you investigate?

@abhibeta I am running on python2.7 and I'm able to run on the local file
python transcribe_async.py resources/audio.raw
I will try gs in a moment.  However, it seems inconsistent with what you are seeing.  I'm wondering if it's some package collision.

@abhibeta I do see the error in gs.  Looking into it.

@abhibeta I think it might have to do with the encoding of the file.  Using audio.raw on gs, the encoding was set to enums.RecognitionConfig.AudioEncoding.FLAC, but the local file used LINEAR16.  When I changed the code to the following, it worked on gs.
 config = types.RecognitionConfig(
        encoding=enums.RecognitionConfig.AudioEncoding.LINEAR16,
        sample_rate_hertz=16000,
        language_code='en-US')

Thanks  @chemelnucfin
Seems some where some code got edited , I copied and replaced
transcribe_async.py
I am getting output for both local and gs in python 2.7 and 3.5 for sample
files
I* will try my files now and update you *
python 2.7
python transcribe_async.py gs://cloud-samples-tests/speech/vr.flacWaiting
for operation to complete...Transcript: it's okay so what am I doing here
why am I here at GDC talking about VR video it's because I believe my
favorite games I love games I believe in games my favorite games are the
ones that are all about the stories I love narrative game design I love
narrative based games and I think that when it comes to telling stories in
VR bring together capturing the world with narrative based games and
narrative base game design is going to unlock some of the killer apps and
killer stories of the mediumConfidence: 0.94491559267Transcript: so I'm
really here looking for people who are interested in telling us or two
stories that are planning projects around telling those types of stories
and I would love to talk to you so if this sounds like your project if
you're looking at blending VR video and interactivity to tell a story I
want to talk to you I want to help you so if this sounds like you please
get in touch please come find me I'll be here all week I have pink hair I
work for Google and I would love to talk with you further about VR video
interactivity in storytellingConfidence: 0.943127572536
python 3.5
python transcribe_async.py gs://cloud-samples-tests/speech/vr.flacWaiting
for operation to complete...Transcript: it's okay so what am I doing here
why am I here at GDC talking about VR video it's because I believe my
favorite games I love games I believe in games my favorite games are the
ones that are all about the stories I love narrative game design I love
narrative based games and I think that when it comes to telling stories in
VR bring together capturing the world with narrative based games and
narrative based game design is going to unlock some of the killer apps and
killer stories of the mediumConfidence: 0.9730620384216309Transcript: so
I'm really here looking for people who are interested in telling us or two
stories that are planning projects around telling those types of stories
and I would love to talk to you so if this sounds like your project if
you're looking at blending VR video and interactivity to tell a story I
want to talk to you I want to help you so if this sounds like you please
get in touch please come find me I'll be here all week I have been care I
work for Google and I would love to talk with you further about VR video
interactivity and storytellingConfidence: 0.965194821357727
On Fri, Feb 16, 2018 at 11:33 PM, chemelnucfin<EMAIL_ADDRESS>wrote:

@abhibeta https://github.com/abhibeta I do see the error in gs. Looking
into it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/4885#issuecomment-366336198,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhvSPiFHiWfvC0ynYVLtCKxqxUZ7Dotiks5tVdfzgaJpZM4SGtKj
.

Thanks.
Recommend 2 edits

in requirement.txt change google-cloud-speech==0.30.0 to 0.32.0
Is there any way to handle encoding error better  , error thrown was
quite generic.

Now I am going go try with my own file
On Fri, Feb 16, 2018 at 11:51 PM, chemelnucfin<EMAIL_ADDRESS>wrote:

@abhibeta https://github.com/abhibeta I think it might have to do with
the encoding of the file. Using audio.raw on gs, the encoding was set to
enums.RecognitionConfig.AudioEncoding.FLAC, but the local file used
LINEAR16. When I changed the code to the following, it worked on gs.
config = types.RecognitionConfig(
encoding=enums.RecognitionConfig.AudioEncoding.LINEAR16,
sample_rate_hertz=16000,
language_code='en-US')
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/4885#issuecomment-366340825,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhvSPrDdwQlmQNwnDz2koMasbtQCH096ks5tVdxIgaJpZM4SGtKj
.

@abhibeta Are you able to get the transcription working for your file?

Yes I am , thanks a lot.
Wondering if we have a way out to transcript a 2 channel file like a audio
from call center .
Splitting in 2 channels breaks the conversation .
On Fri, Feb 23, 2018 at 8:58 PM chemelnucfin<EMAIL_ADDRESS>wrote:

@abhibeta https://github.com/abhibeta Are you able to get the
transcription working for your file?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/4885#issuecomment-368069754,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AhvSPvvSfF7IN0LIL3TykbrneseGE8s_ks5tXu4qgaJpZM4SGtKj
.

@abhibeta I have opened some issues which relates to the problems that you are having now.  I will now close this original issue which is now resolved.  Please do let me know if you have some other concerns.
Thanks.


Getting General Error on iOS sometimes

Sometimes my users get InAppBillingPurchaseException: An unknown error occurred with General Error during purchasing, though they are successfully charged. If this happens the app checks their purchases by calling GetPurchasesAsync. And if the purchase exists the app provides the product. It works just perfect on Android. But from time to time some iOS users still complain that they don't get the product, though they were charged. I have no idea what can be wrong. Here's my code:
try
{
	inAppBillingPurchase = await _inAppBilling
		.PurchaseAsync(productId, ItemType.InAppPurchase, PAYLOAD);
}
catch (InAppBillingPurchaseException ex)
{
	if (ex?.PurchaseError == PurchaseError.UserCancelled)
	{
		await _inAppBilling.DisconnectAsync();
		return false;
	}

	if (!CrossConnectivity.Current.IsConnected)
	{
		throw new NoInternetException();
	}

	var purchases = await _inAppBilling.GetPurchasesAsync(ItemType.InAppPurchase);

	inAppBillingPurchase = purchases?.LastOrDefault(x => x?.ProductId == productId
		&& x?.State == PurchaseState.Purchased
		&& x?.ConsumptionState == ConsumptionState.NoYetConsumed);

	if (inAppBillingPurchase == null)
	{
                // The purchase was not made. Throwing exception.
		throw;
	}

    // Otherwise providing a product.
}

Here's the stack trace:
at Plugin.InAppBilling.InAppBillingImplementation.PurchaseAsync (System.String productId) <0x1059ad850 + 0x0037f> in <0a86467a90f748d1a2dfaf30bff638c9#396746857c09b2d12a960c62f8529e2f>:0
at Plugin.InAppBilling.InAppBillingImplementation.PurchaseAsync (System.String productId, Plugin.InAppBilling.ItemType itemType, System.String obfuscatedAccountId, System.String obfuscatedProfileId) <0x1059ace30 + 0x0017f> in <0a86467a90f748d1a2dfaf30bff638c9#396746857c09b2d12a960c62f8529e2f>:0
at Neuro.Mobile.Common.Services.PurchasesService.PurchaseOfferProduct (System.String productId) <0x1033e01b0 + 0x006a3> in <d1724808570e4a1db4c16a7032e14a1f#396746857c09b2d12a960c62f8529e2f>:0
at Neuro.Mobile.Common.Services.PurchasesService.PurchaseOfferProduct (System.String productId) <0x1033e01b0 + 0x00fb3> in <d1724808570e4a1db4c16a7032e14a1f#396746857c09b2d12a960c62f8529e2f>:0

Version of plugin: 5.0.1-beta
Version of Xamarin: <IP_ADDRESS>2

Could be apples test servers, haven't been able to reproduce


change(rpc): Refactor get block template RPC into stages

Motivation
To implement long polling, we need to repeat some parts of the get block template RPC.
But currently the RPC function is very large, and in no specific order.
This refactor does not change any Zebra functionality, except that the long poll ID now tracks all mempool transactions.
Solution
Functional Changes:

Split fetching mempool transactions out, include them in long poll id

Refactors:

Move and rename height_from_signed_int()
Move get_block_template() support functions to a submodule
Split initial checks into their own functions
Split state fetch into its own function
Refactor coinbase generation
Split default root calculation into a separate function
Split out a generate coinbase and roots function
Use DateTime32 for getblocktemplate times
Use typed difficulty fields rather than strings
Move GetBlockTemplate construction into a method

Cleanups:

Fix incorrect P2SH comments and logs
Move get_block_template_opts to get_block_template::parameters
Fix and simplify test imports
Rename block_height to next_block_height
Rename to chain_tip_and_local_time to make it clear what it contains

Review
This review is a high priority because the PR conflicts with most other RPC changes.
This PR contains a lot of code movement, it might be easier to review it using git diff --color-moved, or by reviewing each commit on GitHub.
I can do a video review after the engineering sync next week, if that would help!
Reviewer Checklist

[ ] Will the PR name make sense to users?

[ ] Does it need extra CHANGELOG info? (new features, breaking changes, large changes)

[ ] Are the PR labels correct?
[ ] Does the code do what the ticket and PR says?

[ ] Does it change concurrent code, unsafe code, or consensus rules?

[ ] How do you know it works? Does it have tests?

Follow Up Work
Actually implement long polling.

Alfredo is going to review this as well.

https://github.com/ZcashFoundation/zebra/actions/runs/3681221203/jobs/6227680505

@mergifyio upate

https://github.com/ZcashFoundation/zebra/actions/runs/3681221203/jobs/6227680505

The underlying error was:
#28 pushing manifest for us-docker.pkg.dev/zealous-zebra/zebra/zebrad:main@sha256:2e7d33e1bd670fc14173ce5c782434901a29f0a87c094bce677c620c69f8374e 0.2s done
#28 ERROR: failed commit on ref "manifest-sha256:2e7d33e1bd670fc14173ce5c782434901a29f0a87c094bce677c620c69f8374e": cannot reuse body, request must be retried
------
 > exporting to image:
------

https://github.com/ZcashFoundation/zebra/actions/runs/3681221203/jobs/6227680505#step:9:410
But that link goes to PR #5839, so I think we're fine here.


.then() never fires

Hello,
Thanks for the great package albeit not seeing the then() fire once complete:
    this.game.plugins.add(WebpackLoader, AssetManifest)
      .load()
      .then(() => {
        console.log('loaded assets...')
        this.game.state.start('Start');
      })
      .catch(err => {
        console.error(err);
      });

My AppManifest looks like this:
  sprites: [
    'buttons/btn_blank_small.png',
    'buttons/btn_blank_big.png',
    'buttons/btn_blank_square.png',

   ...

  ],
  fonts: [
    'gooddog.ttf',
    'gooddog.woff',
    'gooddog.woff2',
  ]
};

I added the below to the webpack.config.js:
      {
        test: /\.(eot|svg|ttf|woff|woff2)$/,
        loader: 'file-loader?name=assets/fonts/[name].[ext]?[hash]'
      },

It moves the files ok.. the font works and is referenced in the css ok. I don't know why the then() doesn't fire - seems the promise is never returned.
Any help much appreciated.

I found the problem when I delved into the plugin a bit more - I wasn't able to see any console errors until I commented out the below:
load() {
    return Promise.all([
      this._loadAssets(),
     // this._loadFonts(),
    ]).then(this._addSprites.bind(this));
  }

I then started to get errors I could work with until I got this working 👍

Was it an issue in the library that could be fixed? Not sure why your catch didn't receive the error, any ideas based on what you found?


download BELS for offline use

Hi!
Julie Allen mentioned BELS at the Entomology Collections Management Workshop on 22 June 2022.
As you probably expect, many interaction records indexed by GloBI have locality data, but no specific coordinates or standardized locality entries.
Is there a way to setup BELS for offline use, so I can run millions of localities without having to worry about network delays and/or resource throttling?
Also, how do you version the BELS corpus?
Looking forward to trying to use BELS as a way to enrich location information in GloBI.
Also see https://github.com/globalbioticinteractions/globalbioticinteractions/issues/801 .

Hi @jhpoelen. Great that BELS could be useful for GloBI.

Is there a way to setup BELS for offline use, so I can run millions of localities without having to worry about network delays and/or resource throttling?

BELS requires rather serious infrastructure, and is built on Google BigQuery, App Engine, and Cloud Function. An offline infrastructure could be built to do the matching, but it would require a lot of development and a very robust database.  The DigiLeap Project does not currently have a plan to build and manage an offline version.
However, it is possible to run a very big job manually to avoid the 32 MB file upload limitation of the web app. If you are interested in doing that, I believe it can be done as a collaboration between GloBI and the Terrestrial Parasite Tracker Project. If that is of interest, please contact me directly via email.

Also, how do you version the BELS corpus?

The gazetteer is built on periodic snapshots from GBIF and iDigBio, plus the static gazetteer coming out of the VertNet predecessor collaborative georeferencing projects MaNIS, HerpNET, and ORNIS. When a new version is built, previous versions of the gazetteer are not kept. It is debatable whether there is any value in doing so, as the best matching georeferences are a point of departure for verification or improvement (getting you "on the map" to work with the answers visually), not an end in themselves.

@tucotuco thanks for taking the time to respond.

BELS requires rather serious infrastructure, and is built on Google BigQuery, App Engine, and Cloud Function

Serious infrastructure sounds like fun!
I imagine your workflow looks something like:
external data sources -> (some script/program) -> dataset of location data
training dataset -> (some training algorithm) -> some model
and then,
some model -> (some import data) -> live services

It is debatable whether there is any value in doing so, as the best matching georeferences are a point of departure for verification or improvement (getting you "on the map" to work with the answers visually), not an end in themselves.

Good point - not all things have to be kept, especially when experimenting. However, I would imagine that it is important to keep track of versions of input data, and their associated models that are run in production. How can folks otherwise set specific baselines, cite BELS, or ask specific questions? And, as a developer, I am keen to keep track of versions because it help me trace the origin (or provenance) of data errors or suspicious data.
Just curious -
What is the volume of your input data?
What is the volume of your model?
How much would I have to pay to support the infrastructure needed to run BELS?


Add different environment

My solution for #76

Looks good. I will accept it in the evening.

I will try to make Frankenstein from your PR and #89. Because everyone have own benefits.

Merged manually. I will use your PR as “solution” on Cult of Martians, because you was first and you have clear name and photo in GitHub profile :).


TransitiveDependencyDetector should allow references to node utilities in tests

Test files should be granted more permissive access to imports than product code.
For instance, this code is fine in a test:
import { promisify } from 'util';

However, would cause problems if packaged and evaluated in a browser.
This rule should handle these scenarios cleanly without the need for special cases or updates to manually maintained lists in the future.
Perhaps the cleanest solution is to not run this rule on files that are not "shipped" from a package. However, given multiple build pipelines (typescript, webpack, etc), it can be difficult to determine if a file actually ends up be exported.

Fixed in 520017ec2 , which allows configs to define several overrides, including ignorePackages which should be used in this case.


Remove limit on session name length

Fixes #50

Hi @jwittner, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Josh Wittner). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

People have mentioned DOS and other attacks so I'm going to abandon this PR and make one that ups the limit instead.


Unable to establish initial network ESP Somfy RTS

Hardware
ESP32
Firmware version
v2.4.1
Application version
v2.4.1
What happened? What did you expect to happen?
I tried several different ESP32 (S3, C, ..), but none is able to bring up the initial network.
When i try the "Prepare for first use", all of them work fine.
How to reproduce it (step by step)
1. Firmware programming - works fine.
2. Initial network - not shown

Logs
...

If the ESP32 is not booting into AP mode then please review whether you missed any steps from the wiki.  You must download the SomfyController.onboard.esp32xx.bin.zip file from the release and extract the file inside.   Then use that file to flash the board.

Thanks.
After several reprogrammings it now works.
-----Ursprüngliche Nachricht-----
Von: rstrouse @.>
Gesendet: Sonntag, 7. April 2024 17:50
An: rstrouse/ESPSomfy-RTS @.>
Cc: Wolfgang A. @.>; Author @.>
Betreff: Re: [rstrouse/ESPSomfy-RTS] Unable to establish initial network ESP Somfy RTS (Issue #320)
If the ESP32 is not booting into AP mode then please review whether you missed any steps from the wiki. You must download the SomfyController.onboard.esp32xx.bin.zip file from the release and extract the file inside. Then use that file to flash the board.
—
Reply to this email directly, view it on GitHub https://github.com/rstrouse/ESPSomfy-RTS/issues/320#issuecomment-2041511998 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AY6NWZJ6DVL7FTWBZJMK6H3Y4FTMLAVCNFSM6AAAAABFZR2H76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGUYTCOJZHA .
You are receiving this because you authored the thread. https://github.com/notifications/beacon/AY6NWZPWWDAR6SQOQRZNRETY4FTMLA5CNFSM6AAAAABFZR2H76WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTZV4AD4.gif Message ID: @.***>

Awesome!  Glad you got it working.


ow2 movement speed

apparently ow2 squishy heroes move slightly faster than ow1

tested and movement speed in ow2 is the same as ow1


Properly support the i32/Int type in the uncrashable codegen

Looks good to me, but this change is breaking the tests


Crafting recipes

How do i get the diamond version idk how to craft it

use mods like EMI or REI to figure out the recipes.


timeout rules not removed

filed bug:
https://github.com/istio/issues/issues/241

I'm closing as it's duplicated with #56


Broken Installer

I get the following error when trying to install the Python package, on both Python 3.6 and Python 2.7
error: Could not find suitable distribution for Requirement.parse('shutil')

hi @crocodoyle. Looks like python.py is broken. I have not been involved in developing it so far, and I guess it needs a serious push to become usable. But nothing crazy either.
I know that @surchs has a bunch of code to push, and may end up doing it eventually. Then I will start trying to polish things a bit on my end. Maybe even fix the installer with the help of @poquirion . I don't see that happening before January unfortunately.
In the meantime I am afraid you won't be able to use the python methods to generate sprites.
brainsprite.js does work though, if you manage to generate the sprites some other way.

Is there a spec somewhere for what the sprites should look like?

There is an example on the website https://simexp.github.io/brainsprite.js
https://github.com/SIMEXP/brainsprite.js/raw/master/tests/sprite_small.jpg
The sprite is composed of sagital slices, ordered left to right and then top to bottom.
There is no restriction on the number of columns, but a roughly square image leads to better compression.
You will need to specify the number of pixels in the Y (width) and Z axis (height) of each image in the sprite.
You can also specify an origin and voxel size. This means that the data should be resampled in order not to have direction cosines.
Pierre

this thread is not directly related to brainsprite.js. Closing now.


chore: Generate tests for API operations with the HTTP TRACE method on Open API 2.0

Codecov Report

Merging #1348 (483a287) into master (0e6f204) will decrease coverage by 0.17%.
The diff coverage is 90.90%.

@@            Coverage Diff             @@
##           master    #1348      +/-   ##
==========================================
- Coverage   99.12%   98.95%   -0.18%
==========================================
  Files          83       83
  Lines        6299     6294       -5
  Branches     1085     1085
==========================================
- Hits         6244     6228      -16
- Misses         28       35       +7
- Partials       27       31       +4

Flag
Coverage Δ

unittests
98.95% <90.90%> (-0.15%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/schemathesis/specs/openapi/validation.py
76.47% <75.00%> (+1.47%)
:arrow_up:

src/schemathesis/constants.py
100.00% <100.00%> (ø)

src/schemathesis/specs/openapi/loaders.py
98.31% <100.00%> (-0.85%)
:arrow_down:

src/schemathesis/specs/openapi/schemas.py
99.55% <100.00%> (-0.01%)
:arrow_down:

src/schemathesis/_compat.py
77.77% <0.00%> (-11.12%)
:arrow_down:

src/schemathesis/extra/pytest_plugin.py
98.24% <0.00%> (-1.76%)
:arrow_down:

src/schemathesis/cli/callbacks.py
98.27% <0.00%> (-1.73%)
:arrow_down:

src/schemathesis/cli/cassettes.py
98.43% <0.00%> (-1.57%)
:arrow_down:

src/schemathesis/specs/openapi/serialization.py
98.00% <0.00%> (-1.00%)
:arrow_down:

... and 3 more

Continue to review full report at Codecov.

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


"No Response" HomeKit Windows 10 DaFang Wyze Camera 2

Cannot get this working for the life of me! Confirmed that I can stream fine directly to my computer from the camera so it seems to be an issue with this homekit plugin.

re-add the camera and change its name in config.json

Didn’t work
On Apr 14, 2019, at 12:45 PM, tokfrans03 <notifications<EMAIL_ADDRESS>wrote:
re-add the camera and change its name in config.json
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/KhaosT/homebridge-camera-ffmpeg/issues/285#issuecomment-483014612, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AuJ4bZxhZUr4P2-CLSbo14xGg-vgg0Xiks5vg1svgaJpZM4bnAZC.

Ok, so let me get this straight: the camera is added to HomeKit but streaming doesn’t work? Does the snapshot work?
If so there’s something wrong with the ffmpeg command. Add the debug option in your camera config and run Homebridge again in the terminal and reply with the error code (don’t forget to add your config too!)

Snapshot appears to work.
FFMPEG command works fine when local. When I run with debug mode it looks like it's streaming fine per the command prompt but I get a loading in homekit and eventually CMD just says streaming stopped. No error that I've seen.
	  "platform": "Camera-ffmpeg", 	  "cameras": [ 		{ 		  "name": "Camera - Kitchen", 		  "videoConfig": { 			"source": "-rtsp_transport tcp -re -i rtsp://XXX.XXX.X.XXX:8554/unicast", 			"stillImageSource": "-i rtsp://XXX.XXX.X.XXX:8554/unicast", 			"maxStreams": 2, 			"maxFPS": 15, 			"maxBitrate": 150, 			"packetSize": 1315 			} 		}, 		{ 		  "name": "Camera - Living Room", 		  "videoConfig": { 			"source": "-rtsp_transport tcp -re -i rtsp://XXX.XXX.X.XXX:8554/unicast", 			"stillImageSource": "-i rtsp://XXX.XXX.X.XXX:8554/unicast", 			"maxStreams": 2, 			"maxFPS": 15, 			"maxBitrate": 150, 			"packetSize": 1315 		  } 		}

Could you send the log?

I have a very similiar issue on windows.

Config:
"name": "Kitchen Front Door Camera",
"button": false,
"motion": false,
"throttle": 10000,
"videoConfig": {
"audio": false,
"source": "-i rtsp://admin:admin@XXX.XX.X.XXX:554/live/stream0",
"stillImageSource": "-rtsp_transport tcp -skip_frame nokey -i rtsp://admin:admin@XXX.XX.X.XXX:554/live/stream1",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30,
"vcodec": "libx264",
"debug": true,
"additionalCommandLine": "-loglevel verbose"
Notable errors in log,  even though it streams fine im CMD:
The profile-level-id field size is invalid (41)
Error parsing AU headers
circular_buffer_size' option was set but it is not supported on this build (pthread support is required)


suite: ignore files not ending in .yaml and directories ending in .di…

…sable
Signed-off-by: Samuel Just<EMAIL_ADDRESS>

Refer to this link for build results (access rights to CI server needed):
http://jenkins.ceph.com//job/teuthology-pull-requests/1451/
Tests failed for this pull request.


Bump additional version number in separate package.json, for firefox addon

I have a firefox addon, which requires it's own package.json. I'd like the have grunt-release update both package.json files. But I'm getting a warning, which stops execution, when I set an additionalFiles value in my Gruntfile.js.
Any ideas why?
The directory structure of my project is as follows ..
rob@work:~/git/repo$ tree
.
├── addon
│   └── package.json
├── Gruntfile.json
└── package.json

Console output ..
rob@work:~/git/repo$ grunt release --no-write
Running "release" task
Warning: Object addon/package.json has no method 'push' Use --force to continue.

Aborted due to warnings.

Extract from ~/git/repo/Gruntfile.json ..
release: {
    options: {
        file: 'package.json',
        additionalFiles: 'addon/package.json',
        bump: true,
        add: true,
        commit: true,
        tag: true,
        push: true,
        pushTags: true,
        npm: false,
        npmtag: false,
        github: {
            repo: 'bobbyrne01/project',
            usernameVar: 'GITHUB_USERNAME',
            passwordVar: 'GITHUB_PASSWORD'
        }
    }
},

Below is my package.json specific to the firefox addon (that lives at ~/git/repo/addon/package.json).
It has the same version number as the node package.json residing at ~/git/repo/package.json ..
{
    "name": "repo",
    "title": "Repo",
    "id": "jid1-randomid",
    "description": "this is my description",
    "author": "bobbyrne01",
    "license": "GNU GPL v3",
    "version": "0.5.2"
}

Thanks for reporting. Currently we only use an array as a possible input type for additionalFiles. We will change this.
In the meantime please use
additionalFiles: ['addon/package.json'],

in your configuration.
I hope this fixes the problem.

Perfect, thanks ..
>> bumped version of addon/package.json to x.x.x
>> bumped version of package.json to x.x.x

Fix this in the last commit. Please try master if you are interested.
Again, thanks for reporting this bug and thus making grunt-release better :)


A way to hide menu items

Hi me again,
With your library i can't seem to find a way to hide a menu item in java like menu.findItem(R.id.menuitem).setVisible(false);
Is there any way to do it ?
Thanks,
Jack

That would be a challenge with this library, if not impossible. What you can do instead is to have different menu xmls for different states and re-inflate them at runtime as needed.
Regards,


still active?

Curious to know if this is still active. Casper is now at 1.28.
Thanks!

Hey pascalandy, we are actually on the process of updating/refactoring all our repos. This will be one of those, for sure.
Thanks!


Update of the Create operator

The signature should comply with Rx standards. Moreover, there's now a mechanism to dispose of a subscription. It's not necessary to do something specific for this operator.
http://reactivex.io/documentation/operators/create.html

Updated in https://github.com/ReactiveX/RxGo/pull/218


Unable to import a dependency from scala file after typeP2 added in libraryDependencies of build.sbt

Hi @ezh
We add our library dependencies in build.sbt like this
resolvers in OSGiConf += typeP2("GAMA update site" at "http://vps226121.ovh.net/updates/")
libraryDependencies in OSGiConf += typeP2(OSGi.ECLIPSE_PLUGIN % "msi.gama.headless" % OSGi.ANY_VERSION withSources)

We create a simple scala object in src/main/scala :
import msi.gama.headless._
object Test {
}

After SBT launch and resolve process, the import msi.gama.headless._ of our scala file is not recognized, any idea why ? :-/
Project is here on a branch : https://github.com/romainreuillon/gama-plugin/tree/osgimanager
Or perhaps with @reuillon we not understand something ?

Another question related, is there already a away to get all dependency from osgi repository copied in a folder, jar or list of jar ?

Found :)
OsgiResolveRemote
OsgiCompile

it works, then :
show osgi:libraryDependencies
Perfect :+1: !


tsserver log jsconfig.json messages

VSCode Version: 1.35 Insiders
OS Version: Windows 10
TS version 3.5.1

Actually what I experience it the problem with high CPU taken by tsserver electron process.
There were already many issues on this problem, but it seems nobody actually knows what do do with this.
in VSCode, I turned on tsserver logs and periodically try to look at them:
In the config there are many messages about jsconfig.json like that:
Info 15   [14:53:50.980] ConfigFilePresence:: Current Watches: :: File: d:/Code/chartify/apps/client/cycles/jsconfig.json

But Have no any jsconfig.json files in the project, only one tsconfig.json, is it normal that it logs about it?
Project's tsconfig:
{
  "compilerOptions": {
    "target": "es5",
    "lib": ["es2015", "dom"],
    "outDir": "./out",
    "module": "commonjs",
    "strict": true,
    "strictFunctionTypes": false,
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "skipDefaultLibCheck": true,
    "skipLibCheck": true,
    "allowJs": false,
    "noEmit": false,
    "incremental": true,
    "baseUrl": ".",
    "traceResolution": true,
    "plugins": [
      {
        "name": "typescript-tslint-plugin",
        "alwaysShowRuleFailuresAsWarnings": true
      }
    ]
  },
  "formatCodeOptions": {
    "indentSize": 2,
    "tabSize": 2
  },
  "exclude": [
    "**/.yalc/*",
    ".yalc",
    "node_modules",
    "**/node_modules/*",
    ".tmp/*"
  ]
}

Also there are messages like
``
Info 79582[18:20:26.731] Elapsed:: 0ms DirectoryWatcher:: Triggered with d:/code/chartify/.git/index.lock :: WatchInfo: d:/code/chartify 1 Project: d:/Code/chartify/tsconfig.json WatchType: Wild card directory

Why does it try to even watch `.git` files?


Defender ATP File Extensions

[Enter feedback here]
The documentation mentions file and attachment extension names.

File extension names - Suspicious files except email attachments will be submitted for additional inspection
Attachment extension names - Suspicious email attachments with these extension names will be submitted for additional inspection

However within the Defender ATP Portal
https://securitycenter.windows.com/preferences2/advanced - Automation Uploads the help text is as following:

Suspicious files, except e-mail attachments with these extension names will be submitted for additional inspection

I am a bit confused now whether e-mail attachments with these defined extensions are being submitted or not.

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

ID: f49941fe-1ecf-d3ac-a9a4-36dd5b41788f
Version Independent ID: 02698d5d-7606-1edf-9af8-35f626a8880c
Content: Manage automation file uploads
Content Source: windows/security/threat-protection/windows-defender-atp/manage-automation-file-uploads-windows-defender-advanced-threat-protection.md
Product: w10
GitHub Login: @mjcaparas
Microsoft Alias: macapara

Thank you for your feedback.
Topic has been updated to remove the Attachment extension names field.


fix: ticker filter for balances

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


Integrate HappyPack to speed up builds

HappyPack significantly reduces webpack build times by using parallel execution.
I was able to make it work with babel-loader by adding the following to my backpack.config.js:
const HappyPack = require('happypack');

module.exports = {
  webpack: config => {
    let babelOptions;
    config.module.rules = config.module.rules.map(rule => {
      if (rule.loader === 'babel-loader') {
        babelOptions = rule.options;

        return {
          test: rule.test,
          exclude: rule.exclude,
          use: {
            loader: require.resolve('happypack/loader'),
            query: {id: 'babel'},
          },
        };
      }

      return rule;
    });
    config.plugins = [
      ...config.plugins,
      new HappyPack({
        id: 'babel',
        loaders: [
          {
            path: require.resolve('babel-loader'),
            query: babelOptions,
          },
        ],
        verbose: false,
      }),
    ];

    return config;
  },
};

However, it would be great to have this set up by default.
Willing to make a PR if this is something you would want to add.

So HappyPack is great, but it is not fully compatible with all plugins. That being said, I wonder if there should be a "blessed" method of adding it. For example, we could publish a backpack-plugin-happypack that would export the function above.
Thoughts?

I would also love to see Happy Pack integration! Maybe configure through something like a .backpackrc?


Courselist for MS digital content

Courselist for MS digital content

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

Docs Build status updates of commit 61d354f:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-community-training/content-management/create-content/create-course-category/content-marketplace.md
:bulb:Suggestion
View
Details

microsoft-community-training/content-management/create-content/create-course-category/content-marketplace.md

Line 20, Column 1: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/learn/support/faq?pivots=general' will be broken in isolated environments. Replace with a relative link.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

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


Use maltpynt wherever possible to save/load data in mission and intermediate product formats

[x] Eliminate need for most stingray_addons

Save and load intermediate products:

[x] event lists
[x] calibrated event lists
[x] light curves
[x] power density spectra/cross spectra

Can one of the admins verify this patch?

Hello @matteobachetti! Thanks for updating the PR.

In the file src/main/python/model/dataset.py, following are the PEP8 issues :

Line 130:29: E128 continuation line under-indented for visual indent
Line 131:29: E128 continuation line under-indented for visual indent
Line 150:37: E128 continuation line under-indented for visual indent
Line 151:37: E128 continuation line under-indented for visual indent
Line 152:37: E128 continuation line under-indented for visual indent

Thanks @ricardovb!

@ricardovb @pbalm I added a 'ready for review' label :).

Sorry but after merging the previous PR this one now has some conflicts. Could you have a look please?


How to get a min.js of this?

Hello,
Great library! How can I get a copy-paste-able version of this library minified? Breaking it up into many files is not practical for my use case (Chrome developer console).
Thanks!

Would you like the jQuery version? If so, you can find it at https://github.com/ilinsky/jquery-xpath If not,  what API would you need? Where do you want to run library - server-/ or client-side?

Hi. I'm trying to run this library on the client side (browser). But the dependencies on "fs" and "vm" doesn't allow that. Is there a way to use this directly in browser (without using jquery-xpath)?


services/horizon/internal/actions: Query struct with gorilla/schema and govalidators.

Automate query params reading and validation.
Usage
Define your struct, specifying the url schema tags and validations as defined in schema and govalidator.
Let's suppose you are working on an end-point that requires a  Stellar account, like /accounts/{account_id}/offers, the following struct will pull the required data from the query params and validate that it is a valid address.
type AccountOffersQuery struct {
	AccountID string `schema:"account_id" valid:"accountID"`
}

Use it in the context of an account like:
func (handler GetAccountOffersHandler) GetResourcePage(r *http.Request) ([]hal.Pageable, error) {
	ctx := r.Context()
	qp := OffersQuery{}
	qp := AccountOffersQuery{}
	err := GetParams(&qp, r)
	if err != nil {
		return nil, err
	}

	accountID := xdr.AccountId{}
	if err := accountID.SetAddress(qp.Address); err != nil {
		panic(err) // this shouldn't err since GetParams runs the validator
	}
         //  .... do something with your account

}

Shared query params
PageQueryParams
This PR includes a struct to deal with pagination query params, you can use it by embedding the struct like:
// OffersQuery query struct for offers end-point
type OffersQuery struct {
	PageQueryParams
	Seller string `schema:"seller" valid:"accountID"`
}

This will include limit, cursor and order validation. You can get the page query by calling PageQuery() on the struct.
The following shows you the PageQueryParams in use:
// GetResourcePage returns a page of offers.
func (handler GetOffersHandler) GetResourcePage(r *http.Request) ([]hal.Pageable, error) {
	ctx := r.Context()
	qp := OffersQuery{}
	err := GetParams(&qp, r)

	if err != nil {
		return nil, err
	}

	query := history.OffersQuery{
		PageQuery: qp.PageQuery(),
		SellerID:  qp.Seller,
		Selling:   qp.Selling(),
		Buying:    qp.Buying(),
	}

	offers, err := getOffersPage(ctx, handler.HistoryQ, query)
	if err != nil {
		return nil, err
	}

	return offers, nil
}

SellingBuyingAssetQueryParams
This is a struct meant to be embedded and used with actions which have end-point that required a selling and buying asset, like /offers.
Given the following struct:
// OffersQuery query struct for offers end-point
type OffersQuery struct {
	PageQueryParams
	SellingBuyingAssetQueryParams
	Seller string `schema:"seller" valid:"accountID"`
}

See how you can get the selling and buying asset by calling struct.Selling() and struct.Buying() -- validation will be done in GetParams
// GetResourcePage returns a page of offers.
func (handler GetOffersHandler) GetResourcePage(r *http.Request) ([]hal.Pageable, error) {
	ctx := r.Context()
	qp := OffersQuery{}
	err := GetParams(&qp, r)

	if err != nil {
		return nil, err
	}

	query := history.OffersQuery{
		PageQuery: qp.PageQuery(),
		SellerID:  qp.Seller,
		Selling:   qp.Selling(),
		Buying:    qp.Buying(),
	}

	offers, err := getOffersPage(ctx, handler.HistoryQ, query)
	if err != nil {
		return nil, err
	}

	return offers, nil
}

Validators
This PR includes the following query params validators:
accountID
accountID validates if a query param is a valid stellar address.
assetType
accountID validates if a query param is a valid asset type, that is: native, credit_alphanum4 or credit_alphanum12.
sellingCode and buyingCode
This is a validator meant to be used with an end-point that requires a selling or buying asset. The asset is passed with the following query params selling_asset_type, selling_asset_code, selling_asset_issuer or buying_asset_type, buying_-asset_code, buying_asset_issuer.
If selling or buying is passed, then it checks that the type was passed and and the code is valid for the given type.

I haven't checked the code yet but regarding your comment I think we can automate a lot of things so the code will be smaller than in your snippets:

Automating validation removes a need for checking for errors when getting custom type variables. For example, if you add a validation tag for seller:Seller string `schema:"seller" validate:"account_id"`

the SellerAccountID() method will never return error because it's a valid account ID. Same thing applies to assets and any other custom type.
For complex types you can have a custom Validate() method on query struct that will contain the logic required to validate the query properly.

So ultimately, the offers example can look like this:
 type OffersQuery struct {
 	QueryParams
 	Seller              string `schema:"seller" validate:"account_id"`
 	SellingAssetType    string `schema:"selling_asset_type"`
 	SellingAsssetIssuer string `schema:"selling_asset_issuer"`
 	SellingAsssetCode   string `schema:"selling_asset_code"`
 	BuyingAssetType     string `schema:"buying_asset_type"`
 	BuyingAsssetIssuer  string `schema:"buying_asset_issuer"`
 	BuyingAsssetCode    string `schema:"buying_asset_code"`
 }

func (q OffersQuery) Validate() error {
    err := validator.Validate(q) // Global validation for known types, ex. account_id
    if err != nil {
        return err
    }

    // Custom code here: ex. Selling and Buying asset but we can also
    // develop more sophisticated code that is able to automatically
    // validate a group of fields.
}

// Same for Buying. Please note that there are several places
// where we use `selling_*` and `buying_` so we can extract it
// to remove code duplication.
func (q OffersQuery) Selling() (*xdr.Asset) {
    // If selling not required and fields empty return `nil`.
    selling, err := BuildAsset(q.SellingAssetType, q.SellingAsssetIssuer, q.SellingAsssetCode)
    if err != nil {
        panic(err) // We validated it before so it should never panic here.
    }
    return selling
}

// With OfferQuery like above the action code will look like this:

func (handler GetOffersHandler) GetResourcePage(r *http.Request) ([]hal.Pageable, error) {
 	ctx := r.Context()
 	qp := OffersQuery{}
 	err := GetParamsValidate(&qp, r) // gets params and runs `Validate()` automatically
 	if err != nil {
 		// err is Problem if query is not valid
 		return nil, err
 	}

 	query := history.OffersQuery{
 		PageQuery: qp.PageQuery(),
 		SellerID:  qp.Seller(), // or qp.Seller if you need a string
 		Selling:   qp.Selling(), // Will return `nil` if not required and fields empty
 		Buying:    qp.Buying(),
 	}

 	// Run query and return `[]Offers`
}

@bartekn I see your point, I'll complete this once I'm back and we can compare both solutions.
What I noticed as I was working on this is that we were actually requiring more code to deal with query params, but maybe that's also because I took as example a route with a bunch of edge cases.  For other scenarios I agree this reduces the amount of boiler plate, the following for example:
func (handler GetAccountOffersHandler) parseOffersQuery(r *http.Request) (history.OffersQuery, error) {
	pq, err := GetPageQuery(r)
	if err != nil {
		return history.OffersQuery{}, err
	}

	seller, err := GetString(r, "account_id")
	if err != nil {
		return history.OffersQuery{}, err
	}

	query := history.OffersQuery{
		PageQuery: pq,
		SellerID:  seller,
	}

	return query, nil
}

// GetResourcePage returns a page of offers for a given account.
func (handler GetAccountOffersHandler) GetResourcePage(r *http.Request) ([]hal.Pageable, error) {
	ctx := r.Context()
	query, err := handler.parseOffersQuery(r)
	if err != nil {
		return nil, err
	}

	offers, err := getOffersPage(ctx, handler.HistoryQ, query)
	if err != nil {
		return nil, err
	}

	return offers, nil
}

Will become
type AccountOffersQuery struct {
	QueryParams
	Seller              string `schema:"seller" validate:"account_id"`
}

// GetResourcePage returns a page of offers for a given account.
func (handler GetAccountOffersHandler) GetResourcePage(r *http.Request) ([]hal.Pageable, error) {
	ctx := r.Context()
	pq := AccountOffersQuery{}
	err := GetParamsValidate(pq, r)
	if err != nil {
		return nil, err
	}
	query := history.OffersQuery{
		PageQuery: pq,
		SellerID:  pq.Seller,
	}

	offers, err := getOffersPage(ctx, handler.HistoryQ, query)
	if err != nil {
		return nil, err
	}

	return offers, nil
}

We could even cut the request earlier through a middleware or something if query params are not valid.

@bartekn @tamirms can you have a second look at this? I implemented the final version using gorilla schema and govalidator. It also adds a custom validator for the scenarios where we have buying and selling asset.
I still need to add more validations for the page query parameters but I think with this you can see the pattern now.
Please take a look and let me know, I've left some comments on the code and TODOs for things that still need to be addressed. I'll tackle those ones after your review.

I was thinking about converting 0 to default value, but I think this could end up confusing/surprising users. If someone is sending limit=0 we should 400 instead of rewriting the value and ack'ing the request. It could be confusing for people to ask for 0 values and get back 10.

You're right. (Somehow I can't reply in the thread...)

@bartekn @tamirms I addressed all your comments, please check again.
I'll squash and rebase to resolve the conflicts once the PR is approved. I want to use some of the existing commits to help with some comments and discussions happening in the PR>

@tamirms @bartekn Addressed  all your  comments, as for the validations on assets,  I added checks for the following matrix, where only the first  one is valid (for issued assets):

Type
Code
Issuer

X
X
X

X
X

X

X

X
X

X


Feature request - email password and config file

Hi,
I just discover your framework (and I like it :+1: ), I used SailsJS for my project before like you and I have same problematics
I have two requests :

Isit possible to give us the possibility to add a config file with environement specific varaibles? For in exemple in Sails i had a config file in config/ folder (named myconf.js) with a content like this :

module.exports.myconf = {
	SHAREPOINT: false,
	UPLOAD_PATH: 'assets/files/',
	UPLOAD_TMP_PATH: '.tmp/public/files/',
	ALLOWED_TYPES: ['image/jpeg', 'image/png', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
};

and in my application i can use this variables like this sails.config.myconf.ALLOWED_TYPES it's very usefull.

You store email password in a file smtp.json per environment. But if we commit these files we expose our password! I think it might be a good idea to externalize password in a file that will be in .gitignore

Hey @k20human,
Yes it is possible to have a file like you wrote in a specific environment. Strapi (like Sails) build a dictionary based on your files and directories. strapi.config is build when the application loads and register everything from the ./config directory. For example the file you wrote in your issue will be accessible at strapi.config.myconf and the myconf value changes depending on the environment.
I agree. We'll improve the .gitignore file for v2.

Hi @loicsaintroch thank you ! I close the issue and wait for v2 :)

I actually want to leave it open since the v2 is not released yet. It's much easier to see what's left for this release.

Ok. I think you can apply same thing for database password file (databases.json)

Definitely yes!

This is now fixed and will be released for the v2. We simply ignore every production directory.


Fix for 32x16, 32x8, etc. rect tx functions to have idtx tx_type as well

32x16, 16x32, 32x8, 8x32 to have idtx in addition to dct_dct.

Coverage decreased (-2.9%) to 80.601% when pulling db4c00253bd150196466fb4a6da0e7d0da21305d on ycho:fix_rect_tx_with_32pt into d0f3a3c62e9dd768f9ce5912a9602378970c9d35 on xiph:master.

Right, I was pondering whether previous approach of rust code is correct and which way I need extend for rectangular txs, entirely considering about where to put those simd code....


listaccounts values don't sum to the balance

The listaccounts balances (visible when using enableaccounts=1) generally sum to a negative number, since when the wallet stakes, the stake isn't credited to any account, but when the staked value is spent, it is debited from an account.
To fix this, we need to credit staking rewards to an account.
I figure some applications may want to credit staking rewards to the account which owns the address that staked a block, whereas other would prefer the reward to be credited to the "" account.
I propose a new flag:
creditstakeaddressaccounts=1

which causes rewards to go to the accounts which own the address that staked, with the default being for the "" account to get all rewards.
The flag name is ugly. Any better suggestions?

How about creditstaketoaccounts[=0], or usedefaultstakeaccount[=1]?
Or for a negative one, nodefaultstakeaccount[=0]?

creditstaketoaccounts isn't bad.

I tested committed a change that implements the flag. It seems to work well.
$ clamd listaccounts | grep -v " 0[.]00000000" # with creditstakeaddressaccounts=1
{
    "" : -2783.31329042,
    "1" :<PHONE_NUMBER>0,
    "1004771" : 7.04160000,
    ...
} # (a bunch of numbers which sum to the wallet's balance of 0.00139687)

$ clamd listaccounts | grep -v " 0[.]00000000" # with creditstakeaddressaccounts=0
{
    "704586" : 0.00139687,
}

$ clamd listaccounts | grep -v " 0[.]00000000" # with nothing
{
    "704586" : 0.00139687,
}

I went with creditstakestoaccounts (added an 's' to 'stake') and merged to master branch.


Carry over carries DONE task

I'm not sure this is a but. I've modified the test:
https://github.com/arussel/org-journal/commit/43409ad78afad94ff86ee89c87f18ce699d69cdb
The test fails with the error:
** TODO a
** b1
*** TODO b1
*** DONE b1
*** b1 note
*** b2
**** TODO b2
**** b3
***** TODO b3
***** DONE b3
** TODO b
** DONE done below b
** 14:00 Some journal entry 2
** 17:39
" "* Test header
** TODO a
** b1
*** TODO b1
*** b2
**** TODO b2
**** b3
***** TODO b3
** TODO b
** 17:39

Where i have done task in the result. Am I misunderstanding the expected behavior, or can we consider it a bug ? (If this is a bug I'll be happy to dig into it)
to test 'live', this file will do:

Wednesday, 01/02/19
Work
** DONE a
** a
** TODO a
** b1
*** TODO b1
*** DONE b1
*** b1 note
*** b2
**** TODO b2
**** b3
***** TODO b3
***** DONE b3
** DONE this is a done task
Home
** DONE this is a done task
** TODO b
** DONE this is done
** 14:00 Some journal entry 2

The headings Work and Home are at the same level as the journal entry if you move them one below the journal heading it works.

@cslux ok, my misunderstanding, I thought that because we have a single file per journal entry, all TODO were expected to be carry over and all DONE task were expected to 'stay' where they were.


Latest Download Link

Please introduce the following download URL scheme for machine automation so the scripts always install latest Lens on new computers:
https://discord.com/api/download?platform=linux&format=deb
We can then go and
wget -O discord.deb "https://discord.com/api/download?platform=linux&format=deb" && dpkg -i discord.deb

@turowicz Lens IDE (k8slens.dev) provides an api for this:  https://api.k8slens.dev/binaries/latest.deb.

@jakolehm the link returns FORBIDDEN.

@turowicz it should work, just tested the response with curl:
curl -I https://api.k8slens.dev/binaries/latest.deb
HTTP/2 302
x-powered-by: Express
vary: Origin, Accept, Accept-Encoding
location: https://downloads.k8slens.dev/ide/Lens-6.0.1-latest.20220810.2.deb
content-type: text/plain; charset=utf-8
content-length: 88
date: Tue, 16 Aug 2022 10:44:34 GMT
x-envoy-upstream-service-time: 69
server: envoy

@jakolehm No it doesn't work, you get a successful redirect but later the request fails:
wget https://api.k8slens.dev/binaries/latest.deb
--2022-08-16 12:55:19--  https://api.k8slens.dev/binaries/latest.deb
Resolving api.k8slens.dev (api.k8slens.dev)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>
Connecting to api.k8slens.dev (api.k8slens.dev)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://downloads.k8slens.dev/ide/Lens-6.0.1-latest.20220810.2.deb [following]
--2022-08-16 12:55:19--  https://downloads.k8slens.dev/ide/Lens-6.0.1-latest.20220810.2.deb
Resolving downloads.k8slens.dev (downloads.k8slens.dev)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to downloads.k8slens.dev (downloads.k8slens.dev)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2022-08-16 12:55:19 ERROR 403: Forbidden.

https://api.k8slens.dev/binaries/latest.amd64.deb should work

@panuhorsmalahti it does 👍🏻


Ignore lock files

Lock files need to be ignored & removed from the repository since they will change/conflict every time a user installs packages

Resolved in #14


Can support serve static files

Hi, can this support to serve static files ?

Hey, yes there are some examples: with-sirv and with-serve-static.
Some of the others have static file integrations too but aren't the main purpose of those particular demos.
Hope that helps!


Some thoughts about memcopy

Dave, first of all, great work that let me buy a book  :smile: and got me thinking about this part: std.mem.copy(u8, &args[i], tok);.
I mean, why would it be necessary to copy this chunk of the memory when we already have a pointer to an allocated memory? It should be enough to save this pointer like this: args[i] = @ptrCast(*align(1) const [255:0]u8, tok.ptr).*;.
And it actually works as well as thought!

@chrboesch You're right!  In which case, I no longer need the storage for the copied strings, right?
I feel like I should be able to get rid of my args array entirely and just store the token pointers in args_ptrs.
var args: [max_args][max_arg_size:0]u8 = undefined; // <---- DELETE ME!

On paper, this seems so simple (I could definitely do it in assembly!), but I can't figure out how to express it in Zig.
var args_ptrs: [max_args:null]?[*:0]u8 = undefined;

// Split by a single space. (tokenize)
// ...

var i: usize = 0;
while (tokens.next()) |tok| {

    // 1. Somehow cast tok.ptr to ?[*:0]u8

    // 2. Write a sentinel 0 after the token (replacing the space in the string)

    i += 1;
}
args_ptrs[i] = null; // add sentinel null

Does that logic at least make sense?
Thanks!
Oh, and you won't regret "The Linux Programming Interface" by Michael Kerrisk. Great book. I've referenced it several times since writing that article.

I feel like I should be able to get rid of my args array entirely and just store the token pointers in args_ptrs.

ok

var args: [max_args][max_arg_size:0]u8 = undefined; // <---- DELETE ME!

ok

On paper, this seems so simple (I could definitely do it in assembly!), but I can't figure out how to express it in Zig.

:smile:

Does that logic at least make sense?

yes, of course

// 2. Write a sentinel 0 after the token (replacing the space in the string)

I think this is the challenge (the only one), right? Since 'tok' is a constant, we can't just change the last byte. Therefore, the copy to the array was necessary.
To solve this, I tried
        var i: usize = 0;
        var n: usize = 0;
        var ofs: usize = 0;
        while (i < input_str.len) : (i += 1) {
            if (input_str[i] == 32) {
                input_str[i] = 0;
                args_ptrs[n] = @ptrCast(*align(1) const [*:0]u8, &input_str[ofs]).*;
                n += 1;
                ofs = i + 1;
            }
        }
        input_str[i - 1] = 0;
        args_ptrs[n] = @ptrCast(*align(1) const [*:0]u8, &input_str[ofs]).*;

instead of std.mem.split(..) but the problem is the same, the input string does not change the space against a null byte. I get a 'sentinel error'. Maybe you have a better idea?

Addendum:

the input string does not change the space against a null byte.

That is not correct. The byte will be changed, but we can not add a sentinel after the last argument.

Does that logic at least make sense?

I'm not shure anymore, but it's too late for me now (midnight is over).

Progress: One of my mistakes was to change the slice instead of the buffer. Now I do (my input is always 'ls -al'):
...
if (input_buffer[i] == 32) {
    input_buffer[i] = 0;
...

and then I get input buf = 6c73002d616c00 and that looks fine. However, when I print out the args I see
arg 0 = 6c73202d616c
arg 1 = 2d616c

and that's not correct. The args are just pointers to the buffer, and they should look like the buffer. Strange. But I will find out...

A step further. Now I know the right notation: const arg = input_buf[i..sent:0]; that gives a valid [*:0]T with the right content. :smile:

        var ofs: usize = 0;
        while (i < input_str.len) : (i += 1) {
            if (input_buf[i] == 32) {
                input_buf[i] = 0;
                const arg = input_buf[ofs..i:0];
                ofs = i + 1;

....

We use the slice just for the lenght of the input bytes. After changing the space into a null-byte, we cast this to a slice with sentinel. That works so far. The last challenge is to cast this into the pointer array.

Yeah, as I recall, that final cast was what I gave up on when I first tried to do that... oh yeah, this part looks like it:

(In some of my earlier failed attempts, I tried to go straight from [N][M:0]u8 to [*:null][*:0]u8 which proved to be a lot of mental gymnastics, a surprising amount of code, and I never quite got it right.)

http://ratfactor.com/zig/forking-is-cool
I even stumped the folks on the Zig Discord channel who happened to be on when I was attempting it.
Good luck. I hope you can do what I could not so I can update the article after a year and a half. :smile:

I hope you can do what I could not so I can update the article after a year and a half.

You can start sharpening your pencil. :wink:

When I look at it like this, I think it wasn't that hard. But that's always how it is afterwards. In any case, I learned a lot. And now I hope you like it. :smile:

I love it! Thank you!
I've updated my article: ratfactor.com/zig/forking-is-cool
(You should see a Note at the top "UPDATE" with a link to the new section.)
Let me know if you happen to spot any mistakes. :smile:

Thank you very much, I think it's great! And I don't find any errors, only Andrew would find them. :wink:


Baseline sysctl-17: Enable logging of martian packets

As this feature can produce large log files, it can be disabled via 'log_martians'
This PR implements sysctl-17 as discussed in https://github.com/dev-sec/linux-baseline/issues/48 and https://github.com/dev-sec/linux-baseline/pull/72 and should fix #66
Signed-off-by: Michael Geiger<EMAIL_ADDRESS>

@mcgege Thank you for your pull request :) Although the variable name "log_martians" speaks for itself, what are your thoughts if we keep it "enable_log_martians" ? (I might be completely wrong) Just a thought :) may be just to follow the trend? enable_ ? @artem-sidorenko Any thoughts?

@bitvijays Well, I think the variable name should be sufficient to understand what it's all about, but I'm open to change it ...

@mcgege Cool.. Let's change it to enable_log_martians. and this is just to follow the trend of the variables defined above
$enable_ipv6
$enable_ipv6_forwarding
$arp_restricted
$enable_sysrq
$enable_core_dump
$enable_stack_protection
$enable_rpfilter
and I will merge the pull request :)

@mcgege You may have to rebase with master to correct the conflict.

@bitvijays rebase + change done

@mcgege Thank you for the Pull request and your contribution :) Merged


Spring '21 Minor Release 230.1

Critical Changes
Changes
To improve readability, modularity, and performance, we've refactored the REL_Relationships_con_TDTM class. The functionality of this class hasn't changed.
Issues Closed
New Metadata
Apex Classes
ContactRelationshipsModel.cls
ContactRelationshipsModel_TEST.cls
ContactRelAutoCreateMappingModel.cls
ContactRelAutoCreateMappingModel_TEST.cls
ContactRelAutoCreateService.cls
ContactRelAutoCreateService_TEST.cls
ContactsRelationshipsModel.cls
ContactsRelationshipsModel_TEST.cls
RelAutoCreateSettingsMapper.cls
RelAutoCreateSettingsMapper_TEST.cls
RelAutoCreateSettingsMapperService.cls
RelAutoCreateSettingsMapperService_TEST.cls
Unpackaged Metadata
Deleted Metadata
Testing Notes
Unaggregated Pull Requests

prettier apex plugin and update options [PR1593]
Refactor for REL_Relationships_Con_TDTM class (after Insert) PR: https://github.com/SalesforceFoundation/EDA/pull/1335

After Discussions with Xiannan and David Reed, I'm merging.


fix: ENOENT assets when htmldir exists

if htmlDir already exists the previous code would not create the assets dir, this can cause ENOENT errors whenever htmlDir exists, but assets does not - for instance when outputing junit and html to the same parent folder
vitest --reporter junit html --outputFile.html tests/ --outputFile.junit tests/junit.xml

I don't understand why the previous code was checking existsSync before mkdir -p. My best guess is performance, but it's not going to have a significant effect.

CI is failing


Add program to calculate fatorial of a number

What does the program do ?
---- Calculates factorial of a number input by the user
In what programming language it is written?
---- Python 3

Thank you for participating  in hacktoberfest ❣ if you liked working on this repo you can share it with friends and star this project for helping others


About the-pile dataset

Hi!
How can I download the-pile dataset in another way for training on GPU.
thanks for the answer!

The current recommendation for downloading pile is here: https://github.com/NVIDIA/JAX-Toolbox/tree/main/rosetta/rosetta/projects/t5x#downloading-the-pile . Note that it is around 1TB, so you'll have to make sure you have the disk space for it.


PACSign: change default hash size to 256

Change -S,--SHA256 to -S,--SHA384. ie, the default is 256-bit
signatures. 384-bit signatures are enabled only by specifying
the flags -S or --SHA384.
Signed-off-by: Tim Whisonant<EMAIL_ADDRESS>

Please also update the docs.

Thanks, will do.


Did you forget to resolve a git conflict?

https://github.com/MarcPartensky/Fourier/blob/0e8213f9e259b3e747891a9e6bc0cbfb5bcb41a3/fourier_drawing/__init__.py#L1-L5

It looks like there are more unresolved conflicts in these files:
.gitignore
README.md
fourier_drawing/__init__.py
fourier_drawing/context.py
fourier_drawing/draw.py
fourier_drawing/plane.py
fourier_drawing/plane.py
fourier_drawing/window.py
setup.py

Thanks a lot for noticing the conflicts! I pushed a working version without any of these.


changed rules for hex colors linter

lowercase
short

so
color: #FF22EE;

wouldn't be valid, but would
color: #f2e;

based on personal preference, but serve this PR as a call for discussion, I can stick to other style though
@CartoDB/frontend

:+1:

are we ok with these small changes?

:+1:


Add ActionCreateService

Create a service class for adding a new action.

A request has many stages (multi-level approval). Stage entities are created by backend and read-only through API.
A request approval status is determined by the statuses of stages. It is read-only through API.
Action is the only type can be created by approver. Once created it is read-only.
Depends on the operation type of an action, the backend automatically updates the status of stage and request.

This PR reinforces the above policy.

@hsong-rh Please review latest changes.