zfs: remove udev scheduler rule

Is this no longer needed or... ?

It's part of nixpkgs.

@mergify rebase


Optimize user agent creation

The fmt.Sprintf stood out again in my profiling as a relatively hot path, and through the lifetime of an application, this value will not change. So we can generate this header value at init() time and avoid the extra memory allocation as well on each request.
Before submitting your PR: Please read through the contribution guide at https://github.com/bufbuild/connect-go/blob/main/.github/CONTRIBUTING.md

I'm not sure if you'd want to exclude these linter failures since this pattern is already used elsewhere, and doing this any other way would also require a global variable. (with a sync.Once)

Also just a comment, we/I hate force pushes on PRs because it overwrites review context...I only mention it as I assume you're going to be a long-time contributor and figured worth getting on same page :-)

Also just a comment, we/I hate force pushes on PRs because it overwrites review context

👍
Would you typically then squash merge? As long as it's squashed, that's fine with me.

Would you typically then squash merge? As long as it's squashed, that's fine with me.

Yep - that's the only option on most of our repos.


Required Permissions

To subscribe to a pipeline, the account signed into the Azure Pipelines teams app 'must be an admin' of the project containing the pipeline, but it's not clear exactly what this means. I've added the account to some of the built-in groups, including 'Build Administrators' and 'Release Administrators' but neither grants the necessary access to subscribe to a pipeline. The only other possible group of "admins" I can add to is 'Project Administrators' but that is not acceptable as it would grant 100% access, including renaming or deleting the entire project.
Exactly what permissions, accessible from the Azure DevOps Project Settings page, are required to subscribe to a pipeline through the teams app? What is the minimum required access for the account being used to subscribe?

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

ID: b9adc845-adee-a494-79b4-3466f51d3ec9
Version Independent ID: 12445205-8acc-98e6-fe65-9508e0dccb5c
Content: Azure Pipelines with Microsoft Teams - Azure Pipelines
Content Source: docs/pipelines/integrations/microsoft-teams.md
Product: devops
Technology: devops-collab
GitHub Login: @atinb
Microsoft Alias: atinb

@emptypockets304 Thank you for the question, assigning this to the author for review.

@emptypockets304 ,
Thank you for your question. To create subscriptions in Azure Pipelines app for Microsoft Teams, one has to be part of 'Project Administrators' group. We understand that this could be a matter of concern for customers. Hence we are working on a set of features that would allow 'Team admins' (lesser privileges) to create subscriptions. This will take few weeks.

Any updates on this? Our Org is managed centrally and we only get Team Admins access, not Project Admins, so it would be great if we didn't need to provide Project Admin permissions

@trevvv123 ,
Ability to allow Team admins to create subscriptions will be live in Jan.

@rgkarthik, is there any way we can create a security group to provide appropriate permissions to create the subscriptions?  We don't like tying this ability to Team Admin role because that opens up entirely too many other permissions just to accomplish this task.

@towerbe ,
Connecting with you over email.

@rgkarthik,
Can you provide an update on the ETA for pushing the fix?

@RGKarthik,
Could you also answer the last part of the original question more explicitly:
"Exactly what permissions, accessible from the Azure DevOps Project Settings page, are required to subscribe to a pipeline through the teams app? What is the minimum required access for the account being used to subscribe?"
A user in the Project Administrators group for my project tried to perform the "@Azure Pipelines subscribe" command and it still failed with the extremely unhelpful message: "You are not authorized to access one or more resources required to complete this action."

@slifland37 ,
A user in the 'Project Administrators' group should be able to create a subscriptions. Nothing else is needed. Can you please provide more details around the issue you are facing?

Hi @RGKarthik,
The issue in my case was that my organization hadn't enabled "Third party application access via OAuth." I see now that there is an instruction to do so buried deep near the bottom of that article in a "note" (https://docs.microsoft.com/en-us/azure/devops/pipelines/integrations/microsoft-teams?view=azure-devops#commands-reference). That note should be transformed into a "Prerequisites" section and should be near the top rather than buried like that and not even visible in the article navigation on the right. Also the error message that we encountered in Teams was still incredibly unhelpful.

@RGKarthik
We are still hoping to be able to grant access to users to subscribe to pipelines in teams without granting full Project Administrator permissions.  Is this possible at this time?

The work to support this is in progress and will be available in few weeks.

The work to support team admin to subscribe is in progress and will be available in few weeks.

So will this be in the April 24th release?

yes it should be. I will update this issue if anything changes here.

Support for team admins to create subscriptions is released now, would request you to let us know if it isnt working as expected.

@divyankam can you please look into this.

Hi @stevengibbszions You will not be able to manage the subscriptions added by the project admin. However, you can now subscribe to the project/pipeline events (using subscribe command and then Add subscription button) and manage the subscriptions added by you.
So, I request you to use subscribe command to subscribe to the required project/pipeline. And then add the subscriptions as per your requirement. You will then be able to manage these subscriptions.

Hi @divais and @DivyankaM ,
Can you please reflect this change in the docs? The page still doesn't explicitly mention the required permission. The only place that mentions Team administrators is this:

[!NOTE] Team administrators aren't able to remove or modify subscriptions created by Project administrators.

It would be great with a dedicated section stating the required permissions.

Hi @RGKarthik, The issue in my case was that my organization hadn't enabled "Third party application access via OAuth." I see now that there is an instruction to do so buried deep near the bottom of that article in a "note" (https://docs.microsoft.com/en-us/azure/devops/pipelines/integrations/microsoft-teams?view=azure-devops#commands-reference). That note should be transformed into a "Prerequisites" section and should be near the top rather than buried like that and not even visible in the article navigation on the right. Also the error message that we encountered in Teams was still incredibly unhelpful.

Thank you! This fixed the issue.
To enable the integration in Azure DevOps:
Navigate to the Organization settings for your Azure DevOps organization.
Click Policies in the left sidebar.
Toggle the Third-party application access via OAuth option to ON.


Now appending inherited path for nested routes - fixes #22

This fixes this issue, that I thought had disappeared with v1.1.4 but apparently hasn't.
When iterating over routes before processing, if the route isn't the first one in the array (base route) and doesn't have an absolute path (which starts with /), I prepend it with each previous route's path in order to build an absolute one, which is used instead for processing.
Not sure this meets all of your requirements, but it works on my side and I have covered as much cases as I could think of.

Thanks! It looks great, and yeah, I'll be glad to have this issue resolved :+1:

Cheers! Be sure to try it out though, after rereading my code I wonder if it works correctly on multiple levels (above two).


Precompiled binary file rendered outputting all zeros

Hi,
I am currently working on a docker workspace with Linux and TensorFlow 1.12.
Docker Linux version:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"
Docker Image: tensorflow/tensorflow:1.12.0-py3
Issue:
I downloaded the precompiled file into my working dir and mounted my working dir onto the docker. I am able to run and generate a mesh. However, it appears that the rasterizer is outputting all zeros. In the code provided (rasterize_triangles.py), tmpp is directly sent to demo.py and printed, and the output is shown. I am fairly certain the pipeline I made is correct as when I change tmpp to vertices, it outputs the same values as face_mask. I also tried with vertex_ids and etc and it outputs 0s. Any fixes?
Thanks

My bad the edges are 0 due to no triangles.


@play PS4 compact controller

Hi. I got a PS4 controller and i wanted to use it on pc but sadly i cannot make it work. Ds4Windows doesn't show any controller plugged in. (The one im talking about is this: https://www.amazon.co.uk/Officially-Licensed-PS4-Wired-Controller/dp/B07FF6MCNB)
Ive tried to make it work but its out of my brain reach.. Is there any way that i can make it work?

The version in this repository is no longer updated.
Try the updated version of this project here: https://github.com/Ryochan7/DS4Windows
If you still have problems, you can post your issue there.

Thanks for trying to help! Ive got it but i dont really understand much of this. The main program is an installer but this one seems to be all files. How do i make it work?

Sure thing, but moving forward you should to seek help directly on the other repository where it is more active and people are there to help.
You can download the actual release of software here:
https://github.com/Ryochan7/DS4Windows/releases
Instructions on how to use can be found here:
https://ryochan7.github.io/ds4windows-site/#howto

Thanks! But now sadly i cant install ViGEmBus_Setup_1.16.115. Its says it cant install it on pc and that i need to find a version for pc. Im using the correct x64 for my system so idk what does that mean.

Unfortunately, I'm not so familiar with that problem so I'm not sure how to help. You probably should ask in the Issues section of the repository.

Ok Thanks for the help!


Need to make styling consistent through all the views

Currently, some views look quite different from others in terms of colors and layout;
Need to make styling consistent throughout

@horlorlahdeh Agreed. Furthermore, I think we need to move away from the bright green, red and blue colours. I think specifically, the buttons in things like modals need some design loving as well. What do you think?

Sure, @Vheissu some buttons should also be converted to icon-based buttons instead. Will add that to my todo list.


Remove "I" from "ApplicationBuilderExtensions"

This PR made base on the issue #30
/cc @DamianEdwards

:shipit: I'll merge tonight.

113fa6d


Lab 03 - Workshop 01 qa_rag_claude

The modelID used in the embedding is "amazon.titan-embed-g1-text-02", which results in the "AccessDeniedException" error. Based on the Bedrock user guide, they recommend using the naming: "amazon.titan-embed-text-v1". After using this modelID, everything works fine.

Thanks @MarcCCreposAWS PR in progress for this. https://github.com/aws-samples/amazon-bedrock-workshop/pull/81


Flow : where it is used

where it is used sur le flow:

flow appelant
action button
apex
lwc

MetadataComponentDependency but it is beta and filter with ref failed...


Wave fetch 404 on linux

Wave SDK Version, OS
1.0.1
Actual behavior
Running wave fetch throws 404 error trying to download https://github.com/h2oai/wave/releases/download/v1.0.1/wave-1.0.1-manylinux1_x86_64-amd64.tar.gz
That file doesn't exist. Opening in Firefox yields same 404
Expected behavior
Should download
Steps To Reproduce

Install pip install h2o-wave
pip install h2o_wave_university
Issue wave fetch

Thanks for reporting! A workaround until fixed: wave fetch --platform linux --arch amd64.

Already fixed in https://github.com/h2oai/wave/pull/2183. I just forgot to cherry-pick it to 1.0.1 when releasing. Will make sure to not forget in case I need to cut 1.0.2.


[Storage Blob] Fails to cancel upload and re-upload with a different size

We get this error when uploading a valid content.
azure.core.exceptions.HttpResponseError: The specified blob or block content is invalid.
RequestId:41cf5647-701e-00a1-6530-73c15b000000
Time:2019-09-24T23:31:43.2698299Z
ErrorCode:InvalidBlobOrBlock
Error:None

Here are the steps to reproduce

Start uploading a blob (overwrite an existing one) ( let's say 500 MB )
Interrupt the upload using Ctrl+C. Don't let it finish the upload
Start uploading the blob again, but with a different size (let's say 50 MB)

Note: if i delete the blob and upload it again, this issue won't happen.

An additional constraint may be that the cancelled upload was split into blocks, while the last upload is not split into blocks.  I observed this using the .NET client, the 500 MB upload is split into chunks, while the 50 MB upload is not.

This issue is resolved.


Can`t set feign.hystrix in yml

openFeign 2.2.8 R
no 'feign.hystrix' choice in yml

I didn't understand the question. Could you give me more detail?

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


GeoJSON markers do not cluster if geometry is Multipoint

When trying to cluster a GeoJSON layer, it works if the features have the geometry type "Point", but not if they are "Multipoint". Is this intentional?
I've come across this issue because QGIS 2.4's function QgsVectorFileWriter.writeAsVectorFormat() wrote points out in GeoJSON as geometry type "Point", but 2.6 seems to write out as type "Multipoint". I don't know why this has changed, and have asked on qgis-developer.
This issue relates to the qgis2leaf plugin.

I know this issue is closed.
But is there any Workaround.
I am also stuck with this problem.
Thanks

Probably a bit late but I bumped into this issue today.
Instead of using the addLayer(geojsonLayer) function I extracted the array of Markers from the geojsonLayer and then used the addLayers(markersArray) function instead. Works alright, but runs very slowly for 100k points :(

Try the chunked loading option, I can't remember if it is in master or
leaflet-master branch. It won't speed up the loading, but it won't lock the
browser when it happens
On Monday, 13 July 2015, Cosme Benito<EMAIL_ADDRESS>wrote:

Probably a bit late but I bumped into this issue today.
Instead of using the addLayer(geojsonLayer) function I extracted the array
of Markers from the geojsonLayer and then used the addLayers(markersArray)
function instead. Works alright, but runs very slowly for 100k points :(
—
Reply to this email directly or view it on GitHub
https://github.com/Leaflet/Leaflet.markercluster/issues/425#issuecomment-120978141
.


chore!: Remove deprecated "services" in favor of "endpoints"

Summary
BREAKING CHANGE: services has been replaced by endpoints in v3.3.0, but backward compatibility has been retained until now. v5.0.0, however, will no longer support services, so make sure to update your configuration to use endpoints instead.
See #374 for more information
Checklist

[X] Tested and/or added tests to validate that the changes work as intended, if applicable.
[ ] Added the documentation in README.md, if applicable.

Codecov Report
Base: 82.02% // Head: 82.00% // Decreases project coverage by -0.02% :warning:

Coverage data is based on head (65faed2) compared to base (d058d7a).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #381      +/-   ##
==========================================
- Coverage   82.02%   82.00%   -0.03%
==========================================
  Files          54       54
  Lines        4062     4056       -6
==========================================
- Hits         3332     3326       -6
  Misses        574      574
  Partials      156      156

Impacted Files
Coverage Δ

config/config.go
72.97% <ø> (-0.85%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


Woocommerce: Samsung Galaxy S7 keeps popping up random words

We are using Woocommerce in our website, but we are facing strange issue when typing Credit card information.
The problem when that option is either present or not present, manual entry of card details is difficult. The numbers will randomly populate and enter in random card details and makes it very hard to amend or delete/edit numbers
Only on certain devices/browsers and keyboards does the error appear.
Please note: on some devices a 'scan new card' option will appear, that feature is fine and works well
We need to find a fix so that whenever manually entering card details nothing is automatically populated and a user just has to enter in their details
Please note: this is currently a repeatable error on my phone. My Samsung mobile model is - Samsung Galaxy S7. SM-G930F, Android version is 7.0, Samsung keyboard is version 1.5.47, Broswer: Google Chrome
Can anybody help in fixing this issue?
Please note: If I change my keyboard from the default Samsung Keyboard to GBoard then the problem does not occur and I can enter in details fine

Hi @developer-vtnetzwelt. We don't provide support for woocommerce here. You'll have to contact them.
I do know that Samsung keyboards have issues with Chrome.


Error: Uncaught ReferenceError: Amplitude is not defined

Precondition:
User is signed in the wallet
Steps to reproduce:

Open the "Privacy Policy&Terms" page
Pay attention to the console (to the error message)

Actual result: The "Uncaught ReferenceError: Amplitude is not defined" error is displayed on the console after opening the "Privacy Policy&Terms" page
Expected result: The "Uncaught ReferenceError: Amplitude is not defined" error should be displayed on the console after opening the "Privacy Policy&Terms" page
Checked on QA V1.4.1-2
Desktop: Windows 10 // Google Chrome  85.0.4183.121
LG V30+ // Android 8.0 // Google Chrome 85.0.4183.81
iPhone 8 //13.3.1

the issue is on gooddollar.org website, not in wallet


Project / repo renamed

@mgr01 @Toilal @christofferholmstedt @lamby @mart-e @codingtony @caius @tfheen I've just renamed the repository here on GitHub to reflect the name change that was done a while back. There should be no immediate effect since GitHub happily uses the old name/repo as an alias to the new one. Feel free to update your remote repos and such if you like. Also, a big thanks for all your help, thoughts and patches!

:+1: Really better :)

You will also need to update README for badges URLs

@Toilal Done!

Also, I force pushed the split branch to master. So master is now the main branch (and the only branch since I deleted the other ones).

Closing this since it is already done, feel free to continue to comment.

:+1: thanks for the info :)


indentation hostnames is off

Might not a big deal, but maybe it can be easily corrected.

Edit: This issue persist on my macbook using safari/chrome/brave, but not on Windows using Chrome.

Improved by #145

I'm pretty sure this is not the same pill (.badge in Dashboard.vue), also I don't have a mac to test so you might have to check again.

I'm pretty sure this is not the same pill (.badge in Dashboard.vue), also I don't have a mac to test so you might have to check again.

Oh, I messed up with test.


Allow circular dependencies between delegates.

Warn when this will lead to some parameters not being visible.
Fixes #162

cc @jnm2


Stop sending emails for VerifyCsrfToken exceptions

We send emails when an uncaught exception occurs on the website. Stop sending emails when we get VerifyCsrfToken exceptions. The login app handles it gracefully so we can't safely ignore it.

Fixed in commit https://github.com/pdarg/tmlpstats/commit/1d0989dc44ae79cedbc58ae839e5b22424323d44


[EngSys] upgrade dev dependency mocha to ^10.0.0 for some packages

bump mocha version
update dev-tool test commmand to add TS_NODE_COMPILER_OPTIONS='{"module":"commonjs"}' for TS input
update dev-tool test command to apply a Mocha workaround of requiring esm for ESM JS input
add missing cross-env or esm dev dependencies
adjust some test's import of http and https.

seeing an error in CI The shrinkwrap file is out of date. You need to run "rush update".

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

Windows doesn't like TS_NODE_COMPILER_OPTIONS='{"module":"commonjs"}' in the command it seems.

Windows doesn't like TS_NODE_COMPILER_OPTIONS='{"module":"commonjs"}' in the command it seems.

a shell quoting issue perhaps? :(

Try this TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"}

yeah back to double quotes. already testing it.

/azp run js - app-configuration - tests

/azp run js - app-configuration - tests

converting to draft.  nyc in integration-test not working correctly

converting to draft. nyc in integration-test not working correctly

nyc is broken in main and was disabled for now.


typedef top level declaration

type foo = expr;

Usually you can simply use const int = i32 for a "typedef". But in that case, the compiler sees those types as exactly the same thing.
Typedefs are for when you want the compiler to enforce that the types are distinct, and you have to do an explicit cast to convert the typedef'd thing to another type. Example:
type inches = f32;
type meters = f32;
const x: inches = 13;
const y: meters = x; // error, type mismatch.

Another example is if you import a .h file with something like this:
struct Foo;
struct Bar;

void do_something_with_foo(struct Foo *foo);
void do_something_with_bar(struct Bar *bar);

If we import this as:
const Foo = u8;
const Bar = u8;
fn do_something_with_foo(foo: &Foo);
fn do_something_with_bar(bar: &Bar);

It will work, but you can give the wrong type to a function and it will accept it, because really, both functions' first parameter has type &u8. However if we import it as:
type Foo = u8;
type Bar = u8;
fn do_something_with_foo(foo: &Foo);
fn do_something_with_bar(bar: &Bar);

Now the compiler catches it if you accidentally supply the wrong type to the function.
Also, you can export the declaration to generate it in an .h file.

Strong typedefs (I think this is the term) need operations (+ for integers, access by index for arrays, etc).  Will these operations get automatically cloned too?
In language Nim it is very easy to create unique type:
type
  Dollar = distinct int
  Euro = distinct int

Unfortunately no operation is defined by default on such new types and this makes them less than ideal. One has to type a lot of code (even assignement) to make them useful again.

I think yes the operations will get automatically cloned too. If Foo typedefs to a i32 then you can do i32 operations on it.

Probably "operations defined in the language" should be cloned automatically. E.g. arithmetic for integers, but not foo(int32) written by the user.
Nim uses special magic {.borrow.} to express that certain functionality of old (parent) type should be also cloned. IMO it is rather clumsy, lot of noise.

solved by #314


Laravel 5.4 Class cors does not exist

Hey, since I upgraded Laravel to 5.4 the cors middleware is not found anymore. I get this error Class cors does not exist.
Using the middleware as a route parameter:
Route::group([ 'middleware' => 'cors'], function () {
...
});

Does #171 fix it for you?

yes it does! thx @barryvdh

how did you solve the issue?

Not sure but guess I just updated the version. Are you on the latest one?

Try with 0.9.0 and use the full classname, not just cors. See the updated readme.

Adding for anyone looking for the fix:
app/Http/Kernel.php
add 'cors' => \Barryvdh\Cors\HandleCors::class, to the protected $routeMiddleware array.

thanks, @rbrisita your information do the job for me.

works so beautifull!!!

Thanks, @rbrisita that works for me for the laravel 5.4.

Adding for anyone looking for the fix:
app/Http/Kernel.php
add 'cors' => \Barryvdh\Cors\HandleCors::class, to the protected $routeMiddleware array.

It doesn't work for me.

Adding for anyone looking for the fix:
app/Http/Kernel.php
add 'cors' => \Barryvdh\Cors\HandleCors::class, to the protected $routeMiddleware array.

It doesn't work for me.

Getting this error -> ReflectionException: Class App\Http\Barryvdh\Cors\HandleCors does not exist

Have you checked that the file actually exists? Also adding the version of Laravel helps others determine what might be wrong. A good way to approach solving the issue is looking at the release notes of each Laravel version since configuration can change in newer versions.

I changed the class reference to 'cors' => \Fruitcake\Cors\HandleCors::class. That made it work


can't install <IP_ADDRESS> with stack or cabal

with cabal:
[13 of 76] Compiling HsDev.Project.Compat ( src/HsDev/Project/Compat.hs, dist/build/HsDev/Project/Compat.o )

src/HsDev/Project/Compat.hs:12:1: error:
    Could not find module ‘Distribution.PackageDescription.Parse’
    Perhaps you meant
      Distribution.PackageDescription.Parsec (from Cabal-<IP_ADDRESS>)
      Distribution.PackageDescription.Check (from Cabal-<IP_ADDRESS>)
      Distribution.PackageDescription.Quirks (from Cabal-<IP_ADDRESS>)
    Use -v to see a list of the files searched for.
   |
12 | import Distribution.PackageDescription.Parse
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

in stack, haskell-names and hlint need different haskell-src-exts
In the dependencies for haskell-names-0.9.1:
    haskell-src-exts-1.18.2 from stack configuration does not match >=1.20 && <1.21 (latest matching version is 1.20.2)

In the dependencies for hlint-1.9.41:
    haskell-src-exts-1.20.2 from stack configuration does not match >=1.18 && <1.20 (latest matching version is 1.19.1)

Not really an issue. Make sure to add those in your stack.yaml:
extra-deps:
- haskell-src-exts-1.18.2
- haskell-src-exts-1.20.2

Updated stack.yaml in bf6aaac822197dd218fd8600c8e48527e1799073, also uses LTS 11.2 now

@moodmosaic, @eflister: stack.yaml corresponds to GHC 8.4 (a moving target), whereas you probably want to use either stack-ghc-8.2.2.yaml or stack-ghc-8.0.2.yaml, depending on which GHC you're using.
stack --stack-yaml=stack-ghc-8.2.2.yaml build

There are a couple of patch sets that I need to publish on the SublimeHaskell hsdev-3 branch that allow you to set extra arguments in the hsdev backend to select the appropriate stack.yaml.

Recent version now can be installed from cabal or with stack install from sources.


Read main_class from export-fastpass output

Previously, Fastpass couldn't tell Bloop the name of a target's main
class, because the output from export-fastpass didn't include this
information. Now that it is available, Fastpass can read it and include
it in the generated Bloop configuration.

Depends on https://github.com/scalameta/pants/pull/1


macOS: flutter upgrade stuck at Flutter 0.5.1 (latest release is 0.5.5)

$ cd ~/Development/flutter/
$ flutter --version
Flutter 0.5.1 • channel beta • https://github.com/flutter/flutter.git
Framework • revision c7ea3ca377 (4 weeks ago) • 2018-05-29 21:07:33 +0200
Engine • revision 1ed25ca7b7
Tools • Dart 2.0.0-dev.58.0.flutter-f981f09760

$ flutter upgrade -v
[  +24 ms] [/Users/username/Development/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +46 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/beta
[        ] [/Users/username/Development/flutter/] git rev-parse --abbrev-ref HEAD
[  +10 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] beta
[        ] [/Users/username/Development/flutter/] git ls-remote --get-url origin
[  +11 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] [/Users/username/Development/flutter/] git log -n 1 --pretty=format:%H
[  +12 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] c7ea3ca377e909469c68f2ab878a5bc53d3cf66b
[        ] [/Users/username/Development/flutter/] git log -n 1 --pretty=format:%ar
[  +11 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 4 weeks ago
[   +1 ms] [/Users/username/Development/flutter/] git describe --match v*.*.* --first-parent --long --tags
[  +66 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v0.5.1-0-gc7ea3ca37
[  +95 ms] [/Users/username/Development/flutter/] git rev-parse @{u}
[  +30 ms] c7ea3ca377e909469c68f2ab878a5bc53d3cf66b
[        ] Upgrading Flutter from /Users/username/Development/flutter...
[   +2 ms] [/Users/username/Development/flutter/] git pull --ff-only
[ +538 ms] Already up to date.
[   +1 ms] Upgrading engine...
[        ] [/Users/username/Development/flutter/] bin/flutter --no-color precache
[ +697 ms] Already up-to-date.
[  +44 ms] Flutter 0.5.1 • channel beta • https://github.com/flutter/flutter.git
           Framework • revision c7ea3ca377 (4 weeks ago) • 2018-05-29 21:07:33 +0200
           Engine • revision 1ed25ca7b7
           Tools • Dart 2.0.0-dev.58.0.flutter-f981f09760
[   +4 ms] Running flutter doctor...
[        ] [/Users/username/Development/flutter/] bin/flutter doctor
[ +688 ms] Doctor summary (to see all details, run flutter doctor -v):
[+6518 ms] [✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.5 17F77, locale en-US)
[+3670 ms] [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[        ] [✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
[        ] [✓] Android Studio (version 3.1)
[        ] [!] VS Code (version 1.24.1)
[        ] [✓] Connected devices (1 available)
[        ] ! Doctor found issues in 1 category.
[  +36 ms] "flutter upgrade" took 12,301ms.

The beta channel is currently v0.5.1. v0.5.5 is the dev channel. You can switch to the dev channel to get that update (flutter channels) but be aware that the dev channel can be less stable than beta.
See https://github.com/flutter/flutter/wiki/Flutter-build-release-channels for more info on channels.


Ethan: Watch (?-i:simileyskiy/cucumber7-selenium3.selenide5-junit5-Allure-parallelExecution)(?#github.com)

Ethan requests the watch of the watch_keyword (?-i:simileyskiy/cucumber7-selenium3\.selenide5-junit5-Allure-parallelExecution)(?#github\.com). See the MS search here and the Stack Exchange search in text, in URLs, and in code.

(?-i:simileyskiy/cucumber7-selenium3\.selenide5-junit5-Allure-parallelExecution)(?#github\.com) has been seen in 3 true positives, 0 false positives, and 0 NAAs.

Rejected by Ollie in Charcoal HQ. Reason: 'Superseded by a more effective watch.  See https://chat.stackexchange.com/transcript/message/62501530#62501530.'


Change the call to action for 'join or host an event'

Current call to action on get involved page is to email.
Need to develop training and helpful resources to host mapswipeathons. Could also link to the Missing Maps resources. Once ready, change the call to action to link to / download those resources, rather than email.

Can now include the presentation Chris created: https://docs.google.com/presentation/d/1QdDTVpuqndQg2NeBcSvmty1htPKHUZDatuSlM9JY5FU/edit?usp=sharing


update getServiceDetailsById to return only self-hosted services

currently getServiceDetailsById of the end user returns all services. But this must be changed to return only self-hosted services. For rest, return 404.
Rename service as getSelfHostedServiceDetailsById.

let me do it


(#5545) Add a canonical script that installs Knative

IIUC, this would require the user to run previously the script as well, is that right? In such case I think we should update the documentation to reflect the change and let the user know how to properly run the test.

The script is optional - if you have knative installed already, it does nothing (except to report that it already found the knative namespaces).

The script is optional - if you have knative installed already, it does nothing (except to report that it already found the knative namespaces).

Good, then, we better reflect this in the documentation to let the user know how to properly run it.

Sorry for being late to the party. I just wanted to mention the kn-box project that is maintained by the Knative committers: https://github.com/matzew/kn-box

rebased, please give this another shot

fails unrelated, pls try again

repeatedly fails in
❌ TestOLMOperatorUpgrade (16m29.34s)
❌ TestOLMOperatorUpgrade/OLM_upgrade (10m0.03s)

Yes, the checks were failing because it required a rebase after 2.3.2 release. Merging anyway.


Chrome: differentiate channels

I don't have a bullet-proof solution for Chrome yet. A late response to @tomitm (#22):

I found ChromeSSHTM.SCXTU77WPPCZZWL7LX4LSWLZ34 beside it for canary (assuming you can use a wildcard). Or is [this] key under Classes not guaranteed to be there?
I noticed that it seems to be possible to figure out if a Chrome install is stable/beta/dev/canary via the updater. The keys HKCU\SOFTWARE\Google\Update\ClientState\{...}\ap and HKLM\SOFTWARE\WOW6432Node\Google\Update\ClientState\{...}\ap have the value of x64-dev-multi-install or x64-canary for me (multi-install denotes it's installed under AppData).

Sadly no, this is not a universally unique id. 2) I don't see the same keys and values on my machine and I reckon the specifics of these ClientState keys can change between versions of chrome, or could be incomplete if the user has disabled the updater.

In general, I'm worried that differentiation of channels based on registry keys alone would increase the likelihood of false positives (there's no reliable intel, yet many edge cases).
Resources that may prove useful:

OmahaProxy and an alternative
node-omaha

Sadly no, this is not a universally unique id.

Is it possible to just match if the key starts with ChromeSSHTM? The SS part seems consistent with SxS that I've seen for Canary's installation folder (C:\Users\tm\AppData\Local\Google\Chrome SxS).
Of course this is assuming it's only possible to have two Chrome installations - stable/beta/dev and canary.

In general, I'm worried that differentiation of channels based on registry keys alone would increase the likelihood of false positives (there's no reliable intel, yet many edge cases).

Yeah, I agree that this isn't the most concrete way of discovering the version, as it relies on the updater. Will keep digging.
I'm not sure how useful Omaha will be. Looking up a version number doesn't say which channel it's on. And even if it did, a Chrome installation may be outdated if it hasn't been launched in a while, so the channel might not be reliable. Depending on if Chrome promotes a given version to different channels, or a given version number is always it's original channel.

Is it possible to just match if the key starts with ChromeSSHTM? The SS part seems consistent with SxS that I've seen for Canary's installation folder (C:\Users\tm\AppData\Local\Google\Chrome SxS).

Would have to enumerate all classes. But maybe we can first read the values under HKCR\.htm\OpenWithProgids (as well as .html), which contains ChromiumHTM.XXX, ChromeSSHTM.XXX and ChromeHTML (as well as id's of other browsers). Then read Classes\[id]\Application to get the browser's path and name.
Combined with #24, this should be sufficient for most cases. And when it isn't, win-detect-browsers would still detect Chrome, but without channel info.
Could you do some research on OpenWithProgids and Classes? E.g. if there are differences between Windows versions, access restrictions, edge cases, etc..

I'm not sure how useful Omaha will be. Looking up a version number doesn't say which channel it's on. And even if it did, a Chrome installation may be outdated if it hasn't been launched in a while, so the channel might not be reliable. Depending on if Chrome promotes a given version to different channels, or a given version number is always it's original channel.

I'm not sure either. Was thinking of comparing version and mtime of the executable with omaha's data. But even that wouldn't work, because a version is sometimes released to multiple channels at the same time.

So yeah, scratch that

Sounds good, I'll see if I can dig around and figure out the details for OpenWithProgIds and Classes. Will let you know what I find in a bit.
Initial concern would be that some users might modify OpenWithProgIds as it seems like it's tied to the "Open With..." context menu. But, at least we have a fallback.

@vweevers As long as you aren't planning on enumerating OpenWithProgIds, as it also contains non-browsers (editors), it looks like it should work. There's also a couple of other extensions you could use, but it seems like only Chrome registers on them.
https://msdn.microsoft.com/en-us/library/windows/desktop/cc144148(v=vs.85).aspx#fa_optional_keys_attributes
Basically HKCR is read-only, composed of merging HKLM\Software\Classes and HKCU\Software\Classes (which are writable), so it seems to be a good way of getting a complete list of what's available on the computer (and also means we only need to check HKCR). From there, it's expected implementation of a verb (open) is under HKCR\Applications\{appid}\shell\{verb} which can include command and DropTarget.
https://msdn.microsoft.com/en-us/library/windows/desktop/ee872121(v=vs.85).aspx
This article explains how ShellExecuteEx works and describes HKCU\Software\Microsoft\Windows\CurrentVersion\AppPaths, which is used for mapping a file name to a fully qualified path. Doesn't seem comprehensive to me, as I don't see all the browsers I have installed here. There's also a bit more info about HKCR on this page. It seems to be very similar to \Applications.
There's also HKCR\SystemFileAssociations, but that didn't seem to have anything relevant.
https://msdn.microsoft.com/en-us/library/bb166549.aspx

The OpenWithProgids key is only supported in Windows XP. Because other operating systems ignore this key, do not use it as the only registration for file handlers. Use this key to provide a better user experience in Windows XP.

Seems to be available from at least XP.
https://msdn.microsoft.com/en-us/library/windows/desktop/cc144148(v=vs.85).aspx
There's also OpenWithList, but Microsoft has a clear Do not use on that. It's apparently intended for legacy apps prior to XP.

That's excellent! Thank you very much.
Correct me if I'm wrong, but if the "appid" in HKCR\Applications\{appid} is an executable name like chrome.exe - then this is pretty much useless because only one chrome channel can take that key. Or well, sofware vendors could use any appid they want, because it's virtual, for example, Chrome beta could use HKCR\Applications\chrome_beta.exe to differentiate itself. But they don't.

The OpenWithProgids key is only supported in Windows XP.

So what these docs mean to say is "not supported before XP"? If so, we're good, and we can get by without Applications or AppPaths.

Correct me if I'm wrong, but if the "appid" in HKCR\Applications\{appid} is an executable name like chrome.exe - then this is pretty much useless because only one chrome channel can take that key.

No, it's not an executable name, fortunately. Although, I didn't seem to come across anything regarding conflict resolution in that case, now that you mention it...
Chrome stable/beta/dev use ChromeHTML and canary uses ChromeSSHTM.{uniqueid}.
It does seem to be an issue for Firefox, as I see FirefoxHTML under HKCR, which is from HKLM\SOFTWARE\Classes\FirefoxHTML, which points to Firefox Dev, but I can't seem to find the stable version (which was installed first) using this method. I assume stable used FirefoxHTML as it's key, and got overwritten during the dev install. Keeping in mind I'm pretty sure I installed both as machine (all users) instead of current user.
So that means using HKCR\Applications isn't a full replacement for all browers, but it's a good place to look for some.
With Firefox, it seems the best would be to use HKLM\SOFTWARE\WOW6432Node\Mozilla\{product}\{version}\Main\PathToExe, where {product} is Mozilla Firefox or Firefox Developer Edition and {version} is the value of CurrentVersion under the product key. Which is what you currently do.

So what these docs mean to say is "not supported before XP"?

Yeah, I'm assuming they're outdated docs, considering I see it in Windows 10, so the "only" bit isn't true.

we can get by without Applications or AppPaths.

Wait, do you mean for pre-XP installs? I thought the plan was to use HKCR/Applications? You can definitely stop using AppPaths though, as that only seems to get one install (the chrome.exe issue you mentioned).

No, it's not an executable name

From the article you linked to:

Through the inclusion of registry entries under the HKEY_CLASSES_ROOT\Applications\ApplicationName.exe subkey, applications can provide the application-specific information shown in the following table.

To be clear, my plan was to read:
[HKEY_CLASSES_ROOT\.html\OpenWithProgids]
"ChromeHTML"=""
"ChromeSSHTM.FE4TJPY7L34RHQC5HHQTIPH5JM"=""
"ChromiumHTM.FE4TJPY7L34RHQC5HHQTIPH5JM"=""

Then for each of those, taking ChromeHTML as an example, read the values under HKCR\ChromeHTML\Application as well as HKCR\ChromeHTML\shell\open\command. That should give us a name and executable path.
I don't want to change the detection method for other browsers just yet. Things we learn here can be useful in the future, but let's focus on Chrome first.

BTW, here's the code from Chromium itself to determine the channel name (as displayed on chrome://help/). A crazy thought is to spawn Chrome, attach a debugger, open a tab to chrome://help-frame/strings.js and read browserVersion. A saner thought is that the HKCU\SOFTWARE\Google\Update\ClientState\[guid]\ap might be useful after all, for multi-installs at least, because apparently that guid is hard-coded in chromium.

Yeah, I'm guessing maybe it was recommended to use the executable name originally, then due to conflicts, people that wasn't the greatest idea? Considering how that key isn't actually used to execute, rather the value of Shell\open\command is. For example, it looks like Windows Store apps use AppX{id} anyway.
Totally on board with your plan, except the FE4TJPY... value is unique to each machine. For example, mine is ZG6HR7E.... Is it possible to match using /^ChromeSSHTML.*/?
Other than that, that sounds like it would work great. :+1:

Yes, it'll probably be something like:
const names = ['ChromeHTML', 'ChromeSSHTM', 'ChromiumHTM']
values.filter(v => names.indexOf(v.split('.')[0]) >= 0)

Isn't that Chromium code part of the installer? Wonder where strings.js gets populated from.

Isn't that Chromium code part of the installer? Wonder where strings.js gets populated from.

I tracked it from here to here to here to here ;)

Found something even closer :wink:
Generated at build time, I guess.

Came across this bug report, which basically states we'll never be able to use chrome --version from the command line, bugger.

Generated at build time, I guess.

I wish it was, because then we would be able to extract it (by reading the binary) (even better would be if they made the channel name part of the executable's ProductName). For Chromium, the channel name is hardcoded. For Chrome it isn't as far I can tell. Because of the whole multi-install mess they need that GetChromeChannelInternal function I first linked to.
ShellIntegration has some interesting things though. Lol: ShellIntegration::IsFirefoxDefaultBrowser()

we'll never be able to use chrome --version from the command line. Plus the fact that they've removed --version for Windows.

Yeah, it's sad. Firefox has a similar issue, you have to redirect the output like firefox --version | more. I did exactly that in an earlier version of win-detect-browsers, but it was too slow

Ah, that commit you linked to clarifies things

Create a new component version_info that allows to get information about
the current version of Chrome running, except for the channel (which has
to be provided by the embedder).
The method to get the channel is not moved to the component because on
Windows it depends on //chrome/installer which would be non-trivial to
componentize. Since the method is embedder-specific (though it have no
bad dependencies on the other platform) it makes sense to not move it
into the component.

A crazy thought is to spawn a hidden Chrome, attach a debugger, open a tab to chrome://help-frame/strings.js and read browserVersion.

Uh, this actually works. Depends on some private code so I can't share it just yet, but I did not expect that

So, is it just me, or does that commit message imply that the installer is the root source of the channel info? In which case, HKCU\SOFTWARE\Google\Update\ClientState\{guid}\ap?

Uh, this actually works. Depends on some private code so I can't share it just yet, but I did not expect that
Awesome! It does sound crazy, but do you think it makes sense as a viable solution? You could probably extend that to other browsers as well... How fast can that method get a channel?

So, is it just me, or does that commit message imply that the installer is the root source of the channel info?

I'm not entirely sure what you mean, when you say the installer. But I think what the commit author meant was everything in /chrome/installer, like chrome/installer/util/google_update_settings.cc, which defines the GetChromeChannelInternal function. There's no real single source of truth, but I consider this function to be the heart of what we're talking about. It's included in various places and ends up compiled in chrome.exe itself.

Awesome! It does sound crazy, but do you think it makes sense as a viable solution? You could probably extend that to other browsers as well... How fast can that method get a channel?

It's a cool hack, and satisfied my curiosity, but it takes ~950 ms. That's 5x the time spent by win-detect-browsers to find all 13 browsers on my system. Even if I optimized the code and disabled a lot of Chrome features (e.g. --disable-extensions), it's still a process to spawn, and Chrome has to build a profile, start the debugger, et cetera. And there are other issues:

The Remote Debugging Protocol is not that stable
Location and format of chrome://help-frame neither
Unit testing and debugging could be a pain

So.. nah, not viable. OpenWithProgids is still our best bet.

Oh, sorry! I'm not completely sure what "the installer" is either. Definitely /chrome/installer, but what is that actually? My guess was Google Updater, as in the service that lives in the background and keeps Chrome updated, but I feel like I might be wrong on that.
I see a bunch of references to ClientState for example (one of the HKCU\SOFTWARE\Google\Update keys) under /chrome/installer, hence why I think it's the updater.
So if it is the updater, that leads me to think that using those registry values as the source for the channel should be suitable. As in HKCU\SOFTWARE\Google\Update\ClientState\{guid}\ap.

It's a cool hack, and satisfied my curiosity, but it takes ~950 ms.

Yikes, that's a bit much. Still pretty neat though!

What the main purpose of /chrome/installer is, is not a relevant question. There is no single component or service that has the responsibility of providing channel information. That's the problem. Because of the situation on Windows, where installation state is less straight-forward, the chrome://help page (one of very few places where channel info is displayed) has to borrow a bunch of functions from /chrome/installer.
But yes, like I said before, the ClientState keys can be useful for some but not all cases.
I'll get back to this in a few days

@tomitm this has been implemented, with both the ClientState and Progids methods. Will be a while before it's released (see #28). The output looks like this:
{ name: 'chrome',
  version: '57.0.2931.0',
  path: 'C:\\Users\\vweevers\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe',
  channel: 'canary',
  bitness: 64,
  guid: '4EA16AC7-FD5A-47C3-875B-DBF4A2008C20',
  info:
   { FileVersion: '57.0.2931.0',
     CompanyName: 'Google Inc.',
     FileDescription: 'Google Chrome',
     InternalName: 'chrome_exe',
     LegalCopyright: 'Copyright 2016 Google Inc. All rights reserved.',
     OriginalFilename: 'chrome.exe',
     ProductName: 'Google Chrome',
     ProductVersion: '57.0.2931.0',
     CompanyShortName: 'Google',
     ProductShortName: 'Chrome',
     LastChange: '5059e49d0a21c1c311653c1613de16b27aefc963-refs/heads/master@{#434310}',
     'Official Build': '1' },
  uninstall:
   { path: 'C:\\Users\\vweevers\\AppData\\Local\\Google\\Chrome SxS\\Application\\57.0.2931.0\\Installer\\setup.exe',
     arguments: [ '--uninstall', '--chrome-sxs' ] } }
{ name: 'chrome',
  version: '54.0.2840.99',
  path: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe',
  channel: 'stable',
  bitness: 32,
  guid: '8A69D345-D564-463C-AFF1-A69D9E530F96',
  info:
   { FileVersion: '54.0.2840.99',
     CompanyName: 'Google Inc.',
     FileDescription: 'Google Chrome',
     InternalName: 'chrome_exe',
     LegalCopyright: 'Copyright 2016 Google Inc. All rights reserved.',
     OriginalFilename: 'chrome.exe',
     ProductName: 'Google Chrome',
     ProductVersion: '54.0.2840.99',
     CompanyShortName: 'Google',
     ProductShortName: 'Chrome',
     LastChange: '7eca4ce1e662f12cadaf96c30cd2335fd03e7140-refs/branch-heads/2840@{#830}',
     'Official Build': '1' },
  uninstall:
   { path: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\54.0.2840.99\\Installer\\setup.exe',

     arguments: [ '--uninstall', '--multi-install', '--chrome', '--system-level' ] } }

Found 2 browsers in 11 ways within 211ms.


Move the Hive website to github pages.

This pull request adds a site to our main branch that contains the source code to the site.
We can ask Infra to automatically build and deploy github-pages from that branch & directory.
To look at the translated site, there is a docker file and a readme that will build the site locally.

this patch adds more than 5000 files, mostly because of javadoc stuff...
I think javadoc is an implicit content - and as such I think it shouldn't be "part" of the project repository

Agreed that it is a lot of files, but if the project wants to continue to publish javadocs we need to host them somewhere. The current site keeps 6 versions in subversion. I cut that down to 1 in the conversion. I believe that Apache Infra wants to shut down the subversion that is currently hosting those javadocs.
I'm open to solutions, including stopping publishing Hive's javadocs. What would you suggest?

I just wanted to express that I don't think it's the best approach to expose javadocs like this...I really appreciate your efforts migrating the site - a few options I can think of:

push the site into a different branch; like gh-pages - so we can pospone to solve this later...
we can stop publishing javadoc on the site for now...
or add some download&unpack to the site deploy script - not sure if this is possible..will need to check this

One of the advantages of including the site in docs on the main branch is that it will automatically get packaged as part of the releases, so I'd rather not give that up.
How about if we put the generated javadoc in a branch named "javadoc-3.1". We could point the site to reference that branch on github. Would that be acceptable?

One of the advantages of including the site in docs on the main branch is that it will automatically get packaged as part of the releases, so I'd rather not give that up

I think when releases are made we should also produce a javadoc jar - which should contain the actual docs... however - I might have misunderstood your comment.
Let's consider for a moment that we would be putting the javadocs into the main branch: in that case I think every commit must also update the generated javadocs - to keep them up-to-date ; which would increase commit sizes, burden on contributors - and  could also make commits harder to be reviewed...

How about if we put the generated javadoc in a branch named "javadoc-3.1". We could point the site to reference that branch on github. Would that be acceptable?

If that's possible - then that would be a great solution!

I couldn't make my idea of pushing to an empty branch work. I made such a branch https://github.com/omalley/hive/tree/javadoc-3.1 , but GitHub's presentation logic seems to block my attempts to reference it. Even, https://raw.githubusercontent.com/omalley/hive/javadoc-3.1/index.html serves it up a plain/text.
So I moved all of the references to the subversion. Hopefully, they'll let us keep that svn repository.
It would be good to move forward on this.

So I moved all of the references to the subversion. Hopefully, they'll let us keep that svn repository.

awesome :)
+1


changes for GHC-7.10

Two small changes needed to build with GHC-7.10.1.  Actually, I'm not
sure how the putStrLn worked before.  I haven't tested beyond that this
builds.

thanks! released as <IP_ADDRESS>


windows_certificates does nothing within Kitchen

Cookbook versions
4.3.2, 3.1.0
Chef-client version
14.2.0, 12.19.36
Platform Details
Windows 10 (latest patches)
Windows Server 2016 (latest patches)
Created from Packer via JacqInTheBox
Scenario:
I run Kitchen converge with the following recipe:
windows_certificate "#{node['Certificates']['location']}/certificate.pfx" do
  pfx_password '*****'
  store_name node['Certificates']['TrustedFolder']
  action :create
end

.kitchen.yml from my windows cookbook:
driver:
  name: vagrant
  customize:
    cpus: 2
    memory: 4096

transport:
  name: winrm
  elevated: true

provisioner:
  name: chef_zero
  deprecations_as_errors: true

verifier:
  name: inspec

platforms:
  - name: windows_10
    driver:
       box: windows_10
       provider: parallels
  - name: windows_server_2016
    driver:
       box: windows_server_2016
       provider: parallels

Notably: if I pass in the wrong password, the recipe fails to converge. But if the password is correct, the recipe appears to succeed but no certificate is pushed into the TRUSTEDFOLDER.
Steps to Reproduce:
kitchen create; kitchen converge;
The issue started sometime between Summer of 2017 and Spring of 2018. I've got several working cases on outside environments, but Kitchen can't install my certificates or the certificates located in the Windows cookbook source. Nothing appears in the mmc.exe when I load up the Certificates snap-in (this is true for both "My user account" and "Computer account").
The next level of debugging would be into the ruby gem of win32-certstore, but I'm not sure how I would go about doing that via Kitchen.
Expected Result:
I expect the certificate to be installed and configured correctly.
Actual Result:
No certificate is created.

@DanSibbernsen This is occurred due to we have validation for certificate-store. Now we update the code so if you open any store that not exist and want to add new certificate in that then our code will create new store for you and add new certificate in that. https://github.com/chef/win32-certstore/pull/36

This should be resolved in the latest version of the cookbook which uses and updated version of our win32-certstore gem. If you're still having this issue after updating the cookbook then please open this back up so we can dig in.


Nothing backing up to google drive - seems due to wrong datetime

I have everything setup and working (at least serving as a drive for the tesla) using marcone's fork (Thank you!!). However nothing is getting backed up to my google drive.
After digging into /mutable/archiveloop.log I saw the error "certificate has expired or is not yet valid" - and true enough, my pi is reporting the date as Feb 14, as opposed to today, June 28. Once I reset the time and kicked archiveloop, it started working....ONCE. Unfortunately every time the pi boots it is back to Feb 14 and the ensuing google error. Per above, I am using the marcone fork, ntp is running and wifi is chugging along on the pi.
Any advice?

Moved issue over to @marcone's fork...
FWIW, I fixed this issue by placing a call to ntpdate into /root/bin/archiveloop after detecting the remote archive is accessible


Bump jte version to 2.1.1

Bump to current jte version. jte 2 migration guide: https://github.com/casid/jte/releases/tag/2.0.0
javalin-rendering doesn't make use of template calls, thus unaffected by the upgrade.

Thank you!


[AWS Terraform template]AS3 Service discovery fail

There is a bug with AS3 where the AS3 declaration will fail. The app services will be provisioned but will fail and be removed.
the same request will be successful later. There is some investigation ongoing
if someone wants to work around this bug, this person has to update the file:
terraform-ansible-aws/F5_BIG-IP-Standalone_1Nic/ansible/playbooks/roles/f5_as3_declare/templates/as3_https_basic_template.j2
It's possible to use instead the file from terraform-ansible-azure/F5_BIG-IP_Standalone_1Nic/ansible/playbooks/roles/f5_as3_declare/templates/as3_https_basic_template.j2

A Bug/issue has been opened on the AS3 AT. In the meantime, SD has been removed from the AWS Template


add python interpreter

Changes

Please provide
a list
of changes

Issues

Closes #123456789 ???
Addresses #987654321 ???

Post-merge actions
Post-merge, the following actions need to be addressed:

[ ] Update documentation at https://www.mediawiki.org/wiki/Meza

Please ignore: operator error!


ci(all): Update Java version for integration tests, update Android APIs

Description
I missed the fact that Java version is set in 2 places in workflow files and didn't update Java for integration tests in #2055
Additionally I looked at a few other repos that use Android emulators Action that we use and found out that a few of such repos identify 21 and 32 as flaky emulators, which is something we often experience ourselves. As a result I changed min Android API to 22 and max to 31 in attempt to get lower number of failed CI tests due to flakiness of some emulators.
Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
[x] No, this is not a breaking change.

How do you feel about also testing on 33 or 34?

I would like to replace 31 with 34 as soon as Google releases Android 14 officially to be our latest platform to test.

Reverted connectivity_plus min Android API as we have tests specifically for API 21, so let's leave the same version there.


Add section type to calendar event popup

Summary
Adds the section type to the title in the calendar event popup so that the user can check the section type when it's obscured in the calendar.
Before;

After:

Test Plan
See if it looks good on a variety of devices
Issues
Closes #516

Look's like @Voark's wheel of fortune is working

Look's like @Voark's wheel of fortune is working

Kind of, but now I realize why there are two reviewers being added instead of one...


begin() function has two different behaviors

reset() versus midScaleAll()

begin(reset = true) - make it conditional
reset should be called after isConnected == true .. (better logic)


[FEATURE] Docker image for circleci

The CircleCI build config performs a few steps that do not depend on the contents of the repository, namely installing pipenv and the Code Climate test reporter. It would be nice if these steps didn't have to be re-run every time we push to a branch. Therefore I propose defining a docker image that encapsulates these steps, uploading it to Docker Hub and using it as the base image for the CircleCI build.
The Dockerfile would be straightforward, probably looking something like this:
FROM python:3.7
RUN pip install pipenv
# download test reporter as a static binary
RUN curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter && chmod +x ./cc-test-reporter

Bonus points if we use Docker Hub's autobuild, so that the docker image is automatically rebuilt and published upon a push to the repository containing the Dockerfile (which, in order to achieve the goal of doing less work upon a push to j5api/j5, would probably want to be in a separate repository, say j5api/docker-ci).
I am happy to implement this if given the go-ahead.

This sounds like an excellent idea.

@trickeydan I would like to link the Docker Hub account to the @j5-bot github account rather than my personal github account. Please could you either share the credentials for this with me, or let me know your Docker Hub username so I can add you to the org so you can link the accounts yourself?

@trickeydan I would like to link the Docker Hub account to the @j5-bot github account rather than my personal github account. Please could you either share the credentials for this with me, and/or let me know your Docker Hub username so I can add you to the org so you can link the accounts yourself?

I will message you the creds on Slack

Resolved by #92.


[Bug] Deployment Failure Due to Method Call with Record Parameter from Another Program

🐛 Bug Report

I encountered an error when deploying the following Leo program on snarkOS. The program is designed to execute a private credit transfer using the credits.aleo/transfer_private function. However, upon deployment, the snarkOS node logs displayed an error related to the synthesis of the circuit for the transfer transition. The error message specifically mentions a failure in executing the instruction call credits.aleo/transfer_private and indicates an "Illegal operation: Record::encrypt() randomizer does not correspond to the record nonce." This suggests an issue with the handling of record encryption or nonce alignment in the credits.aleo/transfer_private function. The Leo program appears to be correctly written and should not result in such an error.
// The 'js8xxlq9d' program.
import credits.aleo;

program js8xxlq9d.aleo {
    transition transfer(credit: credits.aleo/credits, c1: u64, c2: u64, r: [address; 10]) {
        let (x1, y1) : (credits, credits) = credits.aleo/transfer_private(credit, r[0u8], c1);
        let (x2, y2) : (credits, credits) = credits.aleo/transfer_private(y1, r[0u8], c2);
    }
}

Aleo instruction:
import credits.aleo;
program js8xxlq9d.aleo;

function transfer:
    input r0 as credits.aleo/credits.record;
    input r1 as u64.private;
    input r2 as u64.private;
    input r3 as [address; 10u32].private;
    call credits.aleo/transfer_private r0 r3[0u32] r1 into r4 r5;
    call credits.aleo/transfer_private r5 r3[0u32] r2 into r6 r7;

Steps to Reproduce

Write the above Leo program that includes a transition calling the credits.aleo/transfer_private function.

Deploy the program on a snarkOS node.

Observe the error in the node logs during deployment.

Error Message
The error message received is as follows:
2024-01-20T07:29:35.002717Z  WARN Failed to add unconfirmed transaction 'at1hg67632nu3h0l..' to the memory pool - Invalid unconfirmed transaction 'at1hg67632nu3h0l..': Deployment verification failed - Failed to synthesize the circuit for 'transfer': Failed to execute instruction (call credits.aleo/transfer_private r0 r3[0u32] r1 into r4 r5;): Illegal operation: Record::encrypt() randomizer does not correspond to the record nonce.

Expected Behavior

The expected behavior is the successful deployment of the Leo program without encountering synthesis errors. The credits.aleo/transfer_private function should handle record encryption and nonce alignment correctly, allowing for seamless execution of private credit transfers.
Your Environment

snarkOd: v2.2.7 (build from the latest code)
cargo 1.73.0 (9c4383fb5 2023-08-26)
MacOS 14.2.1

Closing this issue as it should be addressed by https://github.com/AleoHQ/snarkVM/pull/2321.


Cannot load the Strong Name Key located with Confuser.MSBuild.targets

When I build my  .net standard 2.0 library with Strong Name key  using Confuser.MSBuild with version 1.5.0
Then I am getting below error :
Cannot load the Strong Name Key located at: obj\Debug\netstandard2.0\Demo2.snk
Here my strong name key file name is Demo2.snk
.crproj file content
<project baseDir=".\bin\Debug\netstandard2.0" outputDir=".\Confused" 	xmlns="http://confuser.codeplex.com"> 	<rule pattern="true" inherit="false">     <protection id="ctrl flow" />     <protection id="anti tamper" />   </rule>   <module path="Demo2.Lib.dll" /> </project>
It works when I put  file Demo2.snk into library path : *\obj\Debug\netstandard2.0
How can work it without put this file in obj folder.

ConfuserEx Version: 1.5.0
Target Framework: netstandard2.0
Operating System: Windows 10

Steps to Reproduce:

*.csproj file content

<PropertyGroup>
	<TargetFramework>netstandard2.0</TargetFramework>
	<SignAssembly>true</SignAssembly>
	<AssemblyOriginatorKeyFile>Demo2.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
	<Obfuscate>true</Obfuscate>
	<ConfuserReplaceOutput>true</ConfuserReplaceOutput>
</PropertyGroup>

<ItemGroup>
  <None Include="Demo2.Lib.crproj" />
</ItemGroup>

<ItemGroup>
	<PackageReference Include="Confuser.MSBuild" Version="1.5.0">
		<PrivateAssets>all</PrivateAssets>
		<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
	</PackageReference>
</ItemGroup>

<ItemGroup>
  <None Update="Demo2.snk">
    <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  </None>
</ItemGroup>

There is a bug in the integration. It only works properly if you supply the absolute path in the <AssemblyOriginatorKeyFile> tag.
To work around this issue you have to change the tag to:
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Demo2.snk</AssemblyOriginatorKeyFile>

@mkaring  thanks for quick solution and it is work perfect for Demo2.snk file.
If my strong name file is Demo2.pfx then it is not working.
any work around for this issue?

From the top of my head I'd say that only *.snk files are supported at this point. I did not even know that you can strong name sign an assembly with a *.pfx certificate.

Basically I have make strong name key of my assembly with password so it has generate  *.pfx file.
Reason to make Sign Assembly is that  I have to register this assembly in GAC and Com Component.
Anyway I will change file as *.snk


Support Unicode ∴ and ∵

Map ∴ and ∵ to \therefore and \because.

Unicode work will now proceed much more slowly than in the bulk phase. The PRs will be small and each one will explain the choices made.
In this PR, it's obvious which aliases are the correct ones. unicode-math agrees that these two characters map to \therefore and \because.
I’ve withheld these two characters until now because there is a conflict as to the proper type of atom. KaTeX symbols.js says they are rel atoms. unicode-math says they are \mathord. I think KaTeX got this one right. They come from the amssymb package, which contains: \DeclareMathSymbol{\therefore} {\mathrel}{AMSa}{"29}.
So this PR merely sets the flag in symbols.js, without changing the atom type.

Why not? I'll edit the comments.

Great!  Does anyone else want to weigh in on the atom types before this gets merged?

Let's go with the AMS.


K8SPS-28: Allow custom config for MySQL

We support three different ways to customize MySQL configuration:

spec.mysql.configuration field in cr.yaml. In this case, the operator will
create the ConfigMap.
Creating a ConfigMap named <cluster-name>-mysql that contains the key my.cnf
Creating a Secret named <cluster-name>-mysql that contains the key my.cnf

We project ConfigMap and Secret in the same volume. In the entrypoint we
concat these files into MySQL config file (/etc/my.cnf.d/node.cnf). By
projecting these two resources, users will be able to split their
customizations. Sensitive values can live in the Secrets while the rest
live in the ConfigMap.
To automatically restart the MySQL pods on configuration change, we
calculate the md5 hash from the value of the spec.mysql.configuration
and store it in an annotation in the MySQL StatefulSet's PodSpec.
This only applies to configuration in cr.yaml. Users need to restart
the MySQL pods if they create/update the configmap themselves.

Test name
Status

init-deploy
passed

semi-sync
passed

monitoring
passed

sidecars
failed

commit: https://github.com/percona/percona-server-mysql-operator/pull/24/commits/c07505e31a7ab0ebba2ef87ea7e11ad7b1d52029
image: perconalab/percona-server-mysql-operator:PR-24-c07505e

Test name
Status

init-deploy
passed

semi-sync
passed

monitoring
passed

sidecars
failed

commit: https://github.com/percona/percona-server-mysql-operator/pull/24/commits/c07505e31a7ab0ebba2ef87ea7e11ad7b1d52029
image: perconalab/percona-server-mysql-operator:PR-24-c07505e

Test name
Status

init-deploy
passed

semi-sync
passed

monitoring
passed

sidecars
failed

commit: https://github.com/percona/percona-server-mysql-operator/pull/24/commits/8e06d75d99d9f128d4588d18e8b6fd71d9c0f31a
image: perconalab/percona-server-mysql-operator:PR-24-8e06d75

Test name
Status

init-deploy
passed

semi-sync
passed

monitoring
passed

sidecars
failed

commit: https://github.com/percona/percona-server-mysql-operator/pull/24/commits/8e06d75d99d9f128d4588d18e8b6fd71d9c0f31a
image: perconalab/percona-server-mysql-operator:PR-24-8e06d75

Test name
Status

init-deploy
passed

semi-sync
passed

monitoring
passed

sidecars
failed

commit: https://github.com/percona/percona-server-mysql-operator/pull/24/commits/ae14baed47ea9612f763eeaa9bbd8f1c26313e0c
image: perconalab/percona-server-mysql-operator:PR-24-ae14bae

Test name
Status

init-deploy
passed

semi-sync
passed

monitoring
passed

sidecars
failed

commit: https://github.com/percona/percona-server-mysql-operator/pull/24/commits/37730a5cd77783f484e86bfcb3f345b2f4729c05
image: perconalab/percona-server-mysql-operator:PR-24-37730a5

Test name
Status

init-deploy
passed

semi-sync
passed

monitoring
passed

sidecars
passed

commit: https://github.com/percona/percona-server-mysql-operator/pull/24/commits/f6c58f0b9df81cc424435981d81459bdc76e3293
image: perconalab/percona-server-mysql-operator:PR-24-f6c58f0

Test name
Status

init-deploy
passed

semi-sync
passed

monitoring
passed

sidecars
passed

commit: https://github.com/percona/percona-server-mysql-operator/pull/24/commits/1df077d95cd3c0aa84a5e161d7a4fc3e1a264122
image: perconalab/percona-server-mysql-operator:PR-24-1df077d


No nmap file selected

Hello,
i've tried serval file formats (xml,nmap,txt) but the extension stay's at "No nmap file selected". When i try to refresh i get the error "command nmapViewer.refresh not found".
Do i need to install something else because i can't find the "fast-xml-parser"  in the Extension Marketplace
Can anyone please help me?
Thank you

Hello @Friedwald,
Can you share the .xml nmap file with me and I can take a look.
If there is something confidential you can replace the IPs and the MAC addresses with a regex replace.

Hi @marduc812,
thank you for your fast respond.
Attached are a zip file with two scans one full scan and one scan with port 80 only.
nmap_xml.zip

Thanks for your scan and issue submission. I fixed the issue and published an update, in a few minutes if you will update the extension it should work.

It was indeed a bug. I wasn't parsing properly the case that there is only one port, which resulted in an object and not an array, to it was returning empty data.
When you have time, can you confirm that the issue is fixed?

Great it works. Thank you for your fast respond and fix.
It is such a great and convenient tool while pentesting and taking notes.
Keep up your great work.


Create 10 useful developer comments

TODO
IMPROVE
REDO
REVIEW
BUG
MEMORY
LEGACY
Only TODO and BUG is used.


YCD facial animation import issue

Hello, I am a common user, I am presenting problems for the export of YCD facial animation. The other animations are exported to me fine, but these are actually exported:

but when I go to animate the armor, there is no hint of facial animation.

All the names of the armor are fine, but I don't know if it's for compatibility, if there is a solution or if someone wants to contribute a bit of their knowledge to solve it, I, like all of us, will be grateful.

Facial animations aren't supported at the moment


Ensure that the demos in mleap-demo repo work with mleap 0.7.0

Make sure the demos here run ok for latest mleap version (0.7.0)

Updating to be 0.7.0

Good to close this ticket, PRs have been merged a while back.


fix issue #320

This pull request fixes #.
What's Included in This Pull Request

this commit has error sorry


Can I use junjasqsl for my (complicated) use case?

Hi,
I am getting variables from outer world (not under my influence) in the following format:
json = {
  "scopedVars": {
    "VARTEXT": {
      "text": "sel_val",
      "value": "sel_val"
    },
    "VARTEXT_MV": {
      "text": "sel_val",
      "value": [
        "sel_val"
      ]
    },
    "VARTEXT_MV_ALL": {
      "text": "All",
      "value": [
        "sel_val1",
        "sel_val2",
        "sel_val3"
      ]
    },
    "VARINT": {
      "text": "48",
      "value": "48"
    },
    "VARINT_MV": {
      "text": "62 + 55",
      "value": [
        "62",
        "55"
      ]
    },
    "VARINT_MV_ALL": {
      "text": "62 + 55 + 41",
      "value": [
        "62",
        "55",
        "41"
      ]
    }
  }
}

In the json above I have variation of received variables:
VARTEXT - single value string variable
VARTEXT_MV - multi value string variable (in this case with a single value selected, list of values from which I can choose doesn't have an "All" option)
VARTEXT_MV_ALL - multi value string variable with selected "All" option
VARINT - single value integer variable
VARINT_MV - multi value integer variable (several values) with no "All" option
VARINT_MV_ALL - multi value integer variable with selected "All" option
In all cases I have a list from which I can select single value (than I have that value in "text" and "value" keys), multiple values (than in "text" key I have plus sign separated values and in "value" i have list of selected values) or multiple values with "All" option (that behaves as multiple values except when "All" is selected, in that case "text" is "All" and "value" is a list of all options).
As I don't have any clue about data types, I have to maintain a separate dictionary like this one:
dtypes = {
    'VARTEXT' : 'str',
    'VARINT' : 'int'
}

Now with information above I should create sql queries. I have to use single quote for all string variables.
For example:

string variable - single value selected

select *
from table
where string_field = 'sel_val' (or string_variable in  ('sel_val')

string variable - multiple values selected (in this case single value selected from multiple values)

select *
from table
where string_field in  ('sel_val')

string variable - "All" selected

select *
from table (if "All" is selected I don't need the condition at all)

integer variable - single value selected

select *
from table
where integer_field = 48 (or integer_variable in  (48), no single quotes here)

integer variable - multiple values selected

select *
from table
where integer_field in (64,55)

integer_variable - "All" selected

select *
from table (no condition)
I thought, maybe to put single value in the list as well so all "value" keys will contain a list.
Than I could use these lists always in sql in() function (and never use =).
I have to decide whether I need to single quote values (string) or not (integer), and finally, if "All" option is selected to drop the condition.
Can I use junjasql for such use case?
Is it feasible, or I should use something else?

Yes, you can use JinjaSQL for this use case.

In JinjaSQL, you do not need to quote. Depending on the type (string v/s int) - it will automatically bind the parameter so you do not have to.
For list, you can always check the data type and enclose it in an if condition

Something like this:
SELECT * FROM table
WHERE 1 = 1
{% if scopedVars.VARTEXT.value %} AND string_field = {{ scopedVars.VARTEXT.value }}  {% endif %}
{% if scopedVars.VARTEXT_MV.value %} AND string_field in {{ scopedVars.VARTEXT_MV.value | inclause }}  {% endif %}
--- add additional where clauses

Note:

The 1 = 1 in the query is to ensure a valid query if all other where clauses are absent
The  | inclause will generate as many placeholders as the length of the list

This way, the query will be generated dynamically, and JinjaSQL will track of what parameters to bind to the query.

@sripathikrishnan Thanks for an answer.
How about if database field is of type array (https://clickhouse.tech/docs/en/sql-reference/data-types/array/), and I would like to check if field_array contains any of the values from the "value" array?
If I have a select:
select *
from table
where 1 = 1
and hasAny(array_field, {{ scopedVars.VARTEXT_MV.value | inclause }})
will it be expanded to:
select *
from table
where 1 = 1
and hasAny(array_field, ['sel_val'])  # (square brackets are must, all values in the array should be single quoted)
As "value" array can contain strings and integers (floats), can jinjasql handle this as well?
Best regards.

I tried the following:
params = {
  ...:     'VARTEXT_MV': ['val1', 'val2']
  ...: }
  ...:
sql_template = """
  ...:         select *
  ...:         from table
  ...:         where 1 = 1
  ...:         {% if VARTEXT_MV %} AND cmts in {{ VARTEXT_MV | inclause }}  {% endif %}
  ...:     """

from jinjasql import JinjaSql
j = JinjaSql()
query, bind_params = j.prepare_query(sql_template, params)
print(query)
        select *
        from table
        where 1 = 1
         AND cmts in (%s,%s)

print(bind_params)
['val1', 'val2']
print(query % bind_params)
Traceback (most recent call last):
  File "C:\Users\user\Miniconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-14-5d08a35374be>", line 1, in <module>
    print(query % bind_params)

As I can see this works:
print(query % tuple(bind_params)

        select *
        from table
        where 1 = 1
         AND cmts in (val1,val2)

But no single quotes.
Can I get single quoted var1 and var2?

@ghuname - JinjaSQL is doing the right thing. You are NOT supposed to use query % (bind_params)  - that is string substitution and will lead to SQL Injection. Instead, you should send the query JinjaSQL to your database along with the bind params. If you use that approach, you do not have to quote your strings.

Well, I am working with Clickhouse (https://clickhouse.tech/docs/en/) database.
As I am using clichouse_driver (https://github.com/mymarilyn/clickhouse-driver) for accessing the database, I need final string substitution.
Furthermore, if you want to log query, you have to substitute all variables.
Do you have a suggestion to me for my use case?

JinjaSQL cannot generate queries with substituted parameters, mainly because binding parameters is important to prevent sql injection.
That said, Clickhouse does support parameterized queries, and so JinjaSQL can solve your usecase. See https://clickhouse-driver.readthedocs.io/en/latest/quickstart.html#selecting-data. Per clickhouse documentation, the specific param_style is pyformat.
Based on the document you shared, you would have to write your code as follows:
j = JinjaSql(param_style='pyformat')
...

Then, the prepare_query method will return bind_params as a dictionary object instead of a list. You can then pass the dictionary directly to clickhouse's client.execute method as the second parameter.
For your second use case of printing the query for debugging - at the moment, you will have to print the query along with the bind parameters separately and use it for debugging.

Hi @sripathikrishnan, I managed to get working solution by using Python DB API 2.0 (https://clickhouse-driver.readthedocs.io/en/latest/features.html#python-db-api-2-0, which I haven't used before), and as you said it works.
It is really sad that it is not possible to print query with fulfilled parameters, because it is very useful for debugging. I believe I am not the only one that needs this functionality.
I am thinking to create a function that will (single) quote all string parameters (str, or List[str], as well as handle all other types of parameters). This function will return parameters that are prepared for print(query % tuple(bind_params)) in proper format.
Anyway, thank you very much for all answers you have provided.


Popup cant open on click anytime

Hello
I am using  bootstrap-modal-popover.js in my java Project, this is a grate plugin to show the content in Popup format.
I am facing one small Issue currently is that, when page is loaded and when I click on the link then popup is showing correctly, but when I click the like again it is not showing. alternate click it is showing, but not each click.
I don't know why? if any fix or solution please let me know.

if you can create a demo (maybe in jsfiddle), I may be able to help


fix/API Misc Fixes

Fixes Misc Issues in the API
So, two big issues:

I assumed that Nest would handle prisma related issues, this was incorrect. Causing a whole load of uninformative "Internal Server Error" messages.
I also assumed that I know how validation works, this was sadly not the case.

Both are now resolved and the API is working as expected.
Additionally, I've normalised the API's response codes. Standard requests will just now return either "200" for okay, or "201" for creating something.
GetsOnes and GetAlls work as before.
If you get any errors, those will be a bit more verbose. Below is an example of how that will look:
If Request is good:
201

If request is not so good:
{
  "message": [
    "Invalid phone number",
    "Eircode must be longer than or equal to 7 characters"
  ],
  "error": "Bad Request",
  "statusCode": 400
}

The response code is just by itself because I assume we can just check if the return is Json or not to determine if it's an error or not.
Can always append "statusCode" to it at a later stage if we like. I just thought it was a bit verbose.
Changelog

Fixes validation on create-service DTO
Fixes misc issues in profile
Fixes misc issues in reviews
Fixes misc issues in service_types
Fixes misc issues in service

Ignore linter test fail as before.


PID can be remote ID. Do not throw error when checking if alive process

I had a scenario, where I shut down quantum in current node and transfer all jobs to other. When running the jobs from the other node, even though the PIDs are now global ones, :erlang.is_process_alive works only with local nodes.
Let me know if you think this might help others.

Coverage increased (+0.01%) to 98.347% when pulling be7884b105ae9cd1e17f26daa0de50fcd97778cf on sivsushruth:master into 8d547aedb34c5ac591968546a1ddb72f2e743862 on c-rack:master.

Thank you very much ❤
I'll merge after the CI has passed.

Coverage increased (+0.01%) to 98.347% when pulling 910a37ec4271e1712cfcebdb38a1aa8cfc8bd66c on sivsushruth:master into 8d547aedb34c5ac591968546a1ddb72f2e743862 on c-rack:master.

Coverage increased (+0.01%) to 98.347% when pulling 910a37ec4271e1712cfcebdb38a1aa8cfc8bd66c on sivsushruth:master into 8d547aedb34c5ac591968546a1ddb72f2e743862 on c-rack:master.


Add configurable timeout for HTTP requests

Currently I'm not able to configure the timeout for GET and POST HTTP requests in the Emitter. This sometimes creates problems because in case of networking issues or unresponsive collector the requests are hanging indefinitely.
I'd like to be able to configure this timeout by passing it's value to the Emitter during initialization.
We've worked around this issue in some cases by wrapping the events emitting code with python signals and firing an alarm after some predefined timeout which suspends the code execution, but this approach works only if the code is running in the main thread.
If you like the proposal, I'm happy to send a PR.

Hey, thanks for the issue. We're more than happy to accept a PR for this and schedule a release for it (we have one planned to ensure everything is good in 3.10 so we can do it alongside that).


Add support for logging in as page

ive been working on something similar with the python sdk for discord and facebook to let a fb app post to pages shouldnt be too far off from doing the same with messenger ill dig into the api for this tonight and see if the calls are the same

Unfortunately, posting is not the same as messaging and there are probably different API calls.
Also, there would must to be another module just to perform these API calls, which won't be easy.

After re-looking at schmavery's api ( i looked once a while ago and had forgot)  It is different then what i have been doing.  The API i have been using on Python can do both messenger and posts but its facebooks GraphAPI that has functions for both posting and dealing with messenger and allows you to use a page app.  There is a JavaScript GraphAPI sdk but i think you would be rewriting a large portion of your program if you moved to that though im not 100% sure.

I'm not very happy about having to deal with the official Facebook's API, because Facebook needs an API key and a lot of work including setting up an app, creating icon for it and sending it to review, so...
I'm afraid I would have to abandon this issue, unless Schmavery and others will find a way to get page messages once again (it worked some time ago).
Sending works, but receiving doesn't.

I understand what you mean I have been jumping through the hoops to get this working for the project i have been hammering on the access tokens was a pain getting an app setup as a user wasnt bad it was getting a long lived token generated that was a pain in my neck.  Once i got that down It wasnt so bad though i havent tinkered with the chat portions quite yet just the portions for posting things to group pages.  Hopefully Schmavery and team pull through for you =/

Closing as it would need to implement official Facebook API.


Synthesis failed for python-media-translation

Hello! Autosynth couldn't regenerate python-media-translation. :broken_heart:
Here's the output from running synth.py:
ynth [DEBUG] > Running: git log -1 --pretty=%at f94318521f63085b9ccb43d42af89f153fb39f15
2020-12-05 03:08:02,748 autosynth [DEBUG] > Running: git log -1 --pretty=%at 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1
2020-12-05 03:08:02,753 autosynth [DEBUG] > Running: git checkout b0f04ad867e44ce270a3c873df9652b85776b97a
Note: checking out 'b0f04ad867e44ce270a3c873df9652b85776b97a'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at b0f04ad chore: add default CODEOWNERS (#18)
2020-12-05 03:08:02,757 autosynth [DEBUG] > Running: git checkout<PHONE_NUMBER>dd5c6d45e9d7e9129d9cd28d403267
Note: checking out '5695950715dd5c6d45e9d7e9129d9cd28d403267'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 56959507 chore: migrate remoteworkers to the Java microgenerator
2020-12-05 03:08:02,784 autosynth [DEBUG] > Running: git checkout 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1
Note: checking out '18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 18c5dbd chore: update noxfile.py.j2 (#868)
2020-12-05 03:08:02,792 autosynth [DEBUG] > Running: git branch -f autosynth-899
2020-12-05 03:08:02,796 autosynth [DEBUG] > Running: git checkout autosynth-899
Switched to branch 'autosynth-899'
2020-12-05 03:08:02,800 autosynth [INFO] > Running synthtool
2020-12-05 03:08:02,800 autosynth [INFO] > ['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']
2020-12-05 03:08:02,800 autosynth [DEBUG] > log_file_path: /tmpfs/src/logs/python-media-translation/899/sponge_log.log
2020-12-05 03:08:02,801 autosynth [DEBUG] > Running: /tmpfs/src/github/synthtool/env/bin/python3 -m synthtool --metadata synth.metadata synth.py --
2020-12-05 03:08:02,989 synthtool [DEBUG] > Executing /root/.cache/synthtool/python-media-translation/synth.py.

See 'docker run --help'.
2020-12-05 03:08:08,594 synthtool [ERROR] > Failed executing docker run --mount type=bind,source=/root/.cache/synthtool/googleapis/google/cloud/mediatranslation/v1beta1/,destination=/in/google/cloud/mediatranslation/v1beta1/,readonly --mount type=bind,source=/tmp/tmpaozawce0/,destination=/out/ --rm --user 0 gcr.io/gapic-images/gapic-generator-python:latest:

None
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 102, in <module>
    main()
  File "/tmpfs/src/github/synthtool/env/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/env/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/tmpfs/src/github/synthtool/env/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/tmpfs/src/github/synthtool/env/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/__main__.py", line 94, in main
    spec.loader.exec_module(synth_module)  # type: ignore
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/root/.cache/synthtool/python-media-translation/synth.py", line 28, in <module>
    library = gapic.py_library(
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 57, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/tmpfs/src/github/synthtool/synthtool/gcp/gapic_microgenerator.py", line 189, in _generate_code
    shell.run(docker_run_args, hide_output=False)
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/tmpfs/src/github/synthtool/synthtool/shell.py", line 27, in run
    return subprocess.run(
  File "/usr/local/lib/python3.9/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['docker', 'run', '--mount', 'type=bind,source=/root/.cache/synthtool/googleapis/google/cloud/mediatranslation/v1beta1/,destination=/in/google/cloud/mediatranslation/v1beta1/,readonly', '--mount', 'type=bind,source=/tmp/tmpaozawce0/,destination=/out/', '--rm', '--user', '0', 'gcr.io/gapic-images/gapic-generator-python:latest']' returned non-zero exit status 125.
2020-12-05 03:08:08,644 autosynth [ERROR] > Synthesis failed
2020-12-05 03:08:08,645 autosynth [DEBUG] > Running: git reset --hard HEAD
HEAD is now at b0f04ad chore: add default CODEOWNERS (#18)
2020-12-05 03:08:08,649 autosynth [DEBUG] > Running: git checkout autosynth
Switched to branch 'autosynth'
2020-12-05 03:08:08,653 autosynth [DEBUG] > Running: git clean -fdx
Removing __pycache__/
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 354, in <module>
    main()
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 189, in main
    return _inner_main(temp_dir)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 334, in _inner_main
    commit_count = synthesize_loop(x, multiple_prs, change_pusher, synthesizer)
  File "/tmpfs/src/github/synthtool/autosynth/synth.py", line 65, in synthesize_loop
    has_changes = toolbox.synthesize_version_in_new_branch(synthesizer, youngest)
  File "/tmpfs/src/github/synthtool/autosynth/synth_toolbox.py", line 259, in synthesize_version_in_new_branch
    synthesizer.synthesize(synth_log_path, self.environ)
  File "/tmpfs/src/github/synthtool/autosynth/synthesizer.py", line 120, in synthesize
    synth_proc.check_returncode()  # Raise an exception.
  File "/usr/local/lib/python3.9/subprocess.py", line 456, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['/tmpfs/src/github/synthtool/env/bin/python3', '-m', 'synthtool', '--metadata', 'synth.metadata', 'synth.py', '--']' returned non-zero exit status 1.

Google internal developers can see the full log here.

Autosynth passed, closing! :green_heart:


Missing Corner Marks

When a pdf is generated without a debtor, the black corner marks are missing in a4 format. In format A6/5 everything is correct.
See SIX Implementation Guidelines site 18/19: https://www.paymentstandards.ch/dam/downloads/ig-qr-bill-de.pdf

SwissQRBill v3.1.4 which fixes this issue is now released on npm. Thank you for reporting.

Thank you for this great library!


fixed detection of scrot

subprocess.Popen(['which','scrot'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True).wait()
255
vs
subprocess.Popen(['which scrot'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True).wait()
0

Thanks!


ImportError: No module named wsgi

Apologies, I know this problem has been raised a few times and yet none of those discussed solutions resolved my problem:
[Mon Aug 28 16:10:07.766908 2017] [:error] [pid 1109418] mod_wsgi (pid=1109418): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Mon Aug 28 16:10:07.766924 2017] [:error] [pid 1109418] mod_wsgi (pid=1109418): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Mon Aug 28 16:10:07.766936 2017] [:error] [pid 1109418] Traceback (most recent call last):
[Mon Aug 28 16:10:07.766948 2017] [:error] [pid 1109418]   File "/opt/graphite/conf/graphite.wsgi", line 4, in <module>
[Mon Aug 28 16:10:07.766984 2017] [:error] [pid 1109418]     from graphite.wsgi import application
[Mon Aug 28 16:10:07.766998 2017] [:error] [pid 1109418] ImportError: No module named wsgi

any help appreciated!
details:
this is using branch 1.0.x,
On a centos7 machine, using apache, and an out of the box installation
using python 2.7.5 and the graphite.wsgi.example file as graphite.wsgi:
/bin/pip install -r /usr/local/src/graphite-web/requirements.txt
( cd /usr/local/src/carbon/ && python setup.py install )
( cd /usr/local/src/graphite-web/ && python setup.py install )
cp /opt/graphite/conf/carbon.conf.example /opt/graphite/conf/carbon.conf
cp /opt/graphite/conf/storage-schemas.conf.example /opt/graphite/conf/storage-schemas.conf
cp /opt/graphite/conf/storage-aggregation.conf.example /opt/graphite/conf/storage-aggregation.conf
cp /opt/graphite/conf/relay-rules.conf.example /opt/graphite/conf/relay-rules.conf
cp /opt/graphite/webapp/graphite/local_settings.py.example /opt/graphite/webapp/graphite/local_settings.py
cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi
cp /opt/graphite/examples/example-graphite-vhost.conf /etc/httpd/conf.d/graphite.conf

The /opt/graphite/conf/graphite.wsgi is:
import sys
sys.path.append('/opt/graphite/webapp')

from graphite.wsgi import application

Here are the installed python packages: pip list
alabaster (0.7.10)
attrs (17.2.0)
Automat (0.6.0)
Babel (2.4.0)
backports.ssl-match-hostname (<IP_ADDRESS>)
cairocffi (0.8.0)
certifi (2<IP_ADDRESS>)
cffi (1.10.0)
chardet (3.0.4)
constantly (15.1.0)
Django (1.9.13)
django-tagging (0.4.3)
docutils (0.14)
graphite-web (0.9.16)
gunicorn (19.7.1)
hyperlink (17.3.1)
icalendar (3.11.7)
idna (2.6)
imagesize (0.7.1)
incremental (17.5.0)
iniparse (0.4)
iotop (0.6)
Jinja2 (2.9.6)
kitchen (1.1.1)
MarkupSafe (1.0)
MySQL-python (1.2.5)
pip (8.1.2)
pycparser (2.18)
pycurl (7.19.0)
Pygments (2.2.0)
pygpgme (0.3)
pyliblzma (0.5.3)
pyparsing (1.5.6)
python-dateutil (2.6.1)
python-memcached (1.47)
pytz (2017.2)
pyxattr (0.5.1)
requests (2.18.4)
rpm-python (4.13.0)
scandir (1.5)
setuptools (0.9.8)
simplejson (2.1.6)
six (1.10.0)
snowballstemmer (1.2.1)
Sphinx (1.6.3)
sphinx-rtd-theme (0.2.4)
sphinxcontrib-websupport (1.0.1)
Twisted (17.5.0)
txAMQP (0.4)
typing (3.6.2)
urlgrabber (3.10)
urllib3 (1.22)
whisper (0.9.16)
whitenoise (3.3.0)
yum-metadata-parser (1.1.4)
zope.interface (4.4.2)

Hi @DavidCallahan,
Do you have wsgi.py file in /opt/graphite/webapp ?
If not - you can copy it from https://github.com/graphite-project/graphite-web/blob/master/webapp/graphite/wsgi.py

I have the same problem and the file '/opt/graphite/webapp/graphite/wsgi.py' does exist.
Same OS, same installation process.

The issue seems to be realted to #1232
I hadn't removed graphite-web, therefore the module graphite 0.9.6 was still in python and caused the error.


Measure number of instructions executed by requests that caused a soft timeout

Previously, code completion requests that caused a soft timeout were not considered in the request duration measurements. That’s unfortunate because those are the requests that took a long time to fulfill. Make sure to report their instruction count as well.

@swift-ci Please test

@swift-ci Please test

Build failed
Swift Test OS X Platform
Git Sha - 4d90aa60d4159de615f32e7dc6720ff9b1bd8883


Document ability to override payload pull-specs

For: https://issues.redhat.com/browse/DPTP-3687

/label tide/merge-method-squash

/cc @danilo-gemoli

/lgtm