feat(CdkObserveContent): Enable observing Resize using ResizeObserver

Feature Description
It would be great, if the current implementation of CdkObserveContent could be made more generic, so that it could be used for implementing other *Observer APIs.
Use Case
On my project, we need to observe the resizing of an element - ResizeObserver is great for this. But it's cumbersome to work with on it's own.
I've added some directives and services that basically just extend and wrap the current CdkObserveContent services and directives, which seems to work, but there's some typecasting and I/O handling that is not very pretty. It looks like it would be a fairly small effort to make the generic parts of the current implementation properly generic, which would make it a breeze to support other observer APIs.

I think it would be great to have public access to ResizeObserver features from this file : src/cdk/observers/private/shared-resize-observer.ts.


Error message gives no file name or line number.

This code (in a file named src/Stats.res)
let f = (x: (array<string>, array<float>)): int => {
  0;
}

let result = f([]);

Produces this error message:
bsb -make-world
[1/1] Building src/Stats-Stats.cmj
FAILED: src/Stats-Stats.cmj src/Stats-Stats.cmi /home/david/reasonlab/stats/src/Stats.bs.js
/home/david/.nvm/versions/node/v12.16.2/lib/node_modules/bs-platform/linux/bsc.exe -color always -bs-package-name stats -bs-ns Stats  -bs-package-output commonjs:src -bs-suffix -I . -I src -warn-error +101  -o src/Stats-Stats.cmj src/Stats.resast

  We've found a bug for you!
  (No file name)

  This has type:
    array<'a>

  But somewhere wanted:
    (array<string>, array<float>)

Version information:
[stats]$ bsb -version
8.1.1
[stats]$ bsc -version
BuckleScript 8.1.1 ( Using OCaml:4.06.1+BS )

Not a syntax error.

Will try to rename issue to eliminate "syntax" from title (if it's possible to edit that)

Smaller repro:
[]+1

Likely: [] has wrong location information.

The same issue happens on the corresponding .ml file:
[||] + 1


conda pipeline cache restoration fails due to tar permission errors

Question, Bug, or Feature?
Type: Bug
Enter Task Name: Cache@2
Environment

Server - Azure Pipelines
Agent - Private: ubuntu-latest

Issue Description
conda cache restore fails for me when there is a cache hit. My pipeline looks like this:
variables:
  CONDA_CACHE_DIR: /usr/share/miniconda/envs

jobs:
- job: linux
  displayName: 'linux'
  pool:
    vmImage: 'ubuntu-latest'
  steps:
  - bash: echo "##vso[task.prependpath]$CONDA/bin"
    displayName: 'Add conda to PATH'

  - task: Cache@2
    displayName: 'Use cached Anaconda environment'
    inputs:
      key: 'conda | "$(Agent.OS)" | ./path/to/environment.yml'
      restoreKeys: |
        python | "$(Agent.OS)"
        python
      path: $(CONDA_CACHE_DIR)
      cacheHitVar: CONDA_CACHE_RESTORED

  - script: conda env create --quiet --file ./path/to/environment.yml
    displayName: 'Create Anaconda environment'
    condition: eq(variables.CONDA_CACHE_RESTORED, 'false')

Task logs
Starting: Use cached Anaconda environment
==============================================================================
Task         : Cache
Description  : Cache files between runs
Version      : 2.198.0
Author       : Microsoft Corporation
Help         : https://aka.ms/pipeline-caching-docs
==============================================================================
Resolving key:
 - conda                               [string]
 - "Linux"                             [string]
 - ./path/to/environment.yml [file] --> CE6835D05F47D13C49BFD8CFB04382EBC31EF0AEAB979BEC77BE8DDFD692E507
Resolved to: conda|"Linux"|5t960bBvEneiw0sDGdszQ6mbszk6XbP6cuDzEiOLiKw=
Resolving restore key:
 - python [string]
Resolved to: python|**
Using default max parallelism.
Max dedup parallelism: 192
ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session 655c5ba7-ffd7-4cc1-8bc3-db4ac8b3a271
Getting a pipeline cache artifact with one of the following fingerprints:
Fingerprint: `conda|"Linux"|5t960bBvEneiw0sDGdszQ6mbszk6XbP6cuDzEiOLiKw=`
Fingerprint: `python|"Linux"|**`
Fingerprint: `python|**`
There is a cache hit: `conda|"Linux"|5t960bBvEneiw0sDGdszQ6mbszk6XbP6cuDzEiOLiKw=`
Used scope: <removed>
Entry found at fingerprint: `conda|"Linux"|5t960bBvEneiw0sDGdszQ6mbszk6XbP6cuDzEiOLiKw=`
Expected size to be downloaded: 243.9 MB
Downloaded 0.0 MB out of 243.9 MB (0%).
Downloaded 183.3 MB out of 243.9 MB (75%).
Downloaded 243.9 MB out of 243.9 MB (100%).

Download statistics:
Total Content: 243.9 MB
Physical Content Downloaded: 103.7 MB
Compression Saved: 140.2 MB
Local Caching Saved: 0.0 MB
Chunks Downloaded: 2,949
Nodes Downloaded: 6

tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
ApplicationInsightsTelemetrySender correlated 3 events with X-TFS-Session 655c5ba7-ffd7-4cc1-8bc3-db4ac8b3a271
##[error]Process returned non-zero exit code: 2
Finishing: Use cached Anaconda environment

Similar to https://github.com/microsoft/azure-pipelines-tasks/issues/12179#issuecomment-602318031, I have been using this workaround:
  # https://github.com/microsoft/azure-pipelines-tasks/issues/12179
  - bash: |
      sudo chown -R $(whoami):$(id -ng) $(CONDA_CACHE_DIR)
    displayName: Fix CONDA_CACHE_DIR directory permissions

Thanks so much for documenting the workaround, @kracwarlock
I have submitted a PR to update the example docs since the Anaconda example is hopelessly broken without this workaround.
https://github.com/MicrosoftDocs/azure-devops-docs/pull/12783

Best of luck with your PR!
I had not submitted a PR because IMHO the ideal fix would be done on the backend making this workaround useless in the future.

Looks like this is still waiting PR approval.
https://github.com/MicrosoftDocs/azure-devops-docs/pull/12783


Eliminate ErrorProne warnings

Maybe new warnings after upgrading ErrorProne in #3355.
/home/runner/work/jib/jib/jib-core/src/main/java/com/google/cloud/tools/jib/image/json/JsonToImageTranslator.java:250: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
58

59
   * Converts a map of volumes strings to a set of {@link AbsoluteUnixPath}s (e.g. {@code {@code
60
> Task :jib-core:compileJava
61
                                                                                ^
62
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)

/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/BuildFileSpec.java:45: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?

 * from: see {@link BaseImageSpec}
> Task :jib-cli:compileJava
             ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/BuildFileSpec.java:63: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
 * layers: see {@link LayersSpec}
               ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/BaseImageSpec.java:32: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
 *   - see {@link PlatformSpec}
           ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/BaseImageSpec.java:33: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
 *   - see {@link PlatformSpec}
           ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/LayersSpec.java:31: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
 * properties: see {@link FilePropertiesSpec}
                   ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/LayersSpec.java:33: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
 *   - see {@link LayerSpec}
           ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/LayersSpec.java:34: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
 *   - see {@link LayerSpec}
           ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/FileLayerSpec.java:35: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
 *   - {@link CopySpec}
       ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/FileLayerSpec.java:36: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
 *   - {@link CopySpec}
       ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/FileLayerSpec.java:38: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
 * properties: see {@link FilePropertiesSpec}
                   ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
/home/runner/work/jib/jib/jib-cli/src/main/java/com/google/cloud/tools/jib/cli/buildfile/CopySpec.java:42: warning: [UnrecognisedJavadocTag] This Javadoc tag wasn't recognised by the parser. Is it malformed somehow, perhaps with mismatched braces?
 * properties: see {@link FilePropertiesSpec}
                   ^
    (see https://errorprone.info/bugpattern/UnrecognisedJavadocTag)
11 warnings

/home/runner/work/jib/jib/jib-maven-plugin/src/integration-test/java/com/google/cloud/tools/jib/maven/BuildImageMojoIntegrationTest.java:144: warning: [CatchFail] Ignoring exceptions and calling fail() is unnecessary, and makes test output less useful
228

229
    try {
230
> Task :jib-maven-plugin:compileIntegrationTestJava
231
    ^
232

233
    (see https://errorprone.info/bugpattern/CatchFail)
234
  Did you mean 'throw new AssertionError("error replacing tag with digest", ex);'?
235

The following one needs careful verification.
/home/runner/work/jib/jib/jib-maven-plugin/src/main/java/com/google/cloud/tools/jib/maven/JibPluginConfiguration.java:332: warning: [UnnecessaryAssignment] Fields annotated with @Inject should not be manually assigned to, as they should be initialized by a framework. Remove the assignment if a framework is being used, or the annotation if one isn't.
209
  @Inject private Set<JibMavenPluginExtension<?>> injectedPluginExtensions = Collections.emptySet();
210
                                                  ^
211
    (see https://errorprone.info/bugpattern/UnnecessaryAssignment)
212
  Did you mean '@Inject private Set<JibMavenPluginExtension<?>> injectedPluginExtensions ;' or 'private Set<JibMavenPluginExtension<?>> injectedPluginExtensions = Collections.emptySet();'?
213

214
> Task :jib-maven-plugin:compileJava
215

Hello, I would like to contribute to this issue.
Could you assign this to me?

@rainyShine sure, thanks for your interest! There may be more warnings than what I recorded here.

Thank you for assigning me.
I have come up with a solution for the part where the warning occurs in UnrecognizedJavadocTag and CatchFail.

UnrecognizedJavadocTag part: Enclose each with {@code}.

CatchFail part: Modify according to the following link.
https://errorprone.info/bugpattern/CatchFail

However, regarding the @Inject part, although there is a countermeasure, I can not judge whether it is correct.
Is it okay to create a setter and add @Inject to it?

Ah, I think we need to be careful about the @Inject warnings. Let's not touch that. I'll need to look into it later.

Fixed in #3410.


Files Metadata

@whyrusleeping can you detail what is the meta data that the files API adds to the MerkleDAG nodes? Where do things like "Type: File" (https://github.com/ipfs/js-ipfs-api/blob/feat/files-api/test/api/files.spec.js#L43) get added?

we encode that information in the unixfs protobuf and store it in the data segment of the merkledag node: https://github.com/ipfs/go-ipfs/blob/master/unixfs/format.go

Where is this metadata schema used throughout the files api routines https://github.com/ipfs/go-ipfs/blob/master/unixfs/format.go#L17?

One more question. When we have a directory, we use the Links file on the MerkleDAG.proto to point to the files and not the data field on the unixFS proto, right?

Another one: Why do symlinks have on their data field the name of the file they are symlinking (just that) and why is that name appended by \u0018\b?


Phone number formatting

Phone numbers are now auto formatted, using jQuery, as the user types in the new and edit Customer forms.
The format is: '(XXX)XXX-XXXX'. Also, formats when the field loses focus.

In the Customer summary page the phone number displayed is formatted. The format is: (XXX)XXX-XXXX

Function added to the Telephone model to strip the parenthesis and dashes from the phone number and then assigns it to it's phone_number field.

The phone numbers that are seeded with the customers into the database no longer include parenthesis, dashes, or periods.

Validation script for the phone number input fields in the new and edit Customer forms. Checks to make sure its 13 characters, the 10 digit phone number, plus the two parenthesis and the dash, or else it throws a validation error on the form.

Included the email format validation script from the User registration form into the new and edit Customer forms.

Some misc code organization/cleanup and whitespace deletion.

@Wcarey7, I promise I'll look at this tomorrow (Saturday).


Show warning if application has new version

Toggles a dialog if the application has been upgraded. By clicking on the link in the content part of the dialog box, or by clicking outside the menu, the page is reloaded.

Because of how our app structure is set up, it was impossible to share the state from the App component with the Admin component. @duvholt said he would look into this, and include this component in the Admin component when he was done.


Inforge.net - XenForo Bridge failed with error 400

Exception Exception: The URL you provided is invalid! at lib/error.php line 26

#0 index.php:7
#1 lib/RssBridge.php:15
#2 lib/RssBridge.php:63
#3 actions/DisplayAction.php:137
#4 bridges/XenForoBridge.php:84
#5 lib/error.php:36
#6 lib/error.php:26

Query string: action=display&bridge=XenForoBridge&context=Thread&url=www.inforge.net%2Fforum%2Fforums%2Fmanuali-di-hacking-e-it-security.773&limit=10&format=Html
Version: dev.2022-06-14 (git.master.5a9336d)
Os: Linux
PHP version: 7.4.30

Login is not needed to read the forum, it's a xenforo based forum, do you know why there is this error?
The full link was: https://www.inforge.net/forum/forums/manuali-di-hacking-e-it-security.773/?order=post_date&direction=desc but I tested it without query and without https://, the error is the same.

The url must have a protocol e.g. http:// or https://. This particular website is protected by cloudflare. I'm getting 403 Forbidden.

I tried with/without https:// but the result is the same, I suppose cloudflare is blocking such a "page scraping"


"New Search" button shouldn't appear on Search page

It should only be on the patient record page.

Resolved - removed it from the page


Supports: xref streams with 64bit

Fixes UnsupportedFeatureError for 64 bit xref streams (Message PDF::Reader::UnsupportedFeatureError - Unable to unpack xref stream entries with more than 4 bytes)
After some trying, the order seems to be Big Endian 64bit ("Q>").
Unfortunately, I am not be able to share the document that caused this error for privacy reasons. I also don't find any documentation on xrefs, as I am not familiar with PDF file format.
I can understand, if you would not like to merge a commit without any attached test, but maybe this is useful for other people with the same error.

Thanks, it's a surprisingly small diff!
I understand the inability to share the file you have, but as you suspected I'm reluctant to merge this without a test case (one in spec/integration_spec.rb as a minimum). I'll leave this PR open, and hopefully at some point we'll collect a test file that can be used to build a spec.

Hey guys I saw this issue with one PDF having a highlight. Removing the highlight in the PDF and this issue goes away.
Unfortunately I can't make this PDF public either, but I could share it with you guys by email if you want to test it out in local.

@yob sure, done!

@yob perfect! since we don't have the test file I was thinking of mocking that bytes.size call in the tests. Not sure if worth it though since it goes too deep into implementation details.


DUMMY PAYMENT INTEGRATION

Description

This PR does the following:

Updates PAYMENT

Related Issues
Fixes #438
Changes

Added a new feature to LISTING

DEMO
https://github.com/user-attachments/assets/26442941-9c6b-4a79-ba68-6943c1a1945e
Checklist
Make sure to check off all the items before submitting. Mark with [x] if done.

[X] I have performed a self-review of my code
[X] I have commented my code, particularly in hard-to-understand areas
[X] My changes generate no new warnings
[X] I am working on this issue under GSSOC

@Soujanya2004 Review PR..

@Meetpidev    Brother your this PR definitely create conflict after merging my PR  #531 Because both made changes on app.js file. So please solve the conflict Carefully 👍. Otherwise it create Problem.


add canonical form 'modal'

The respective unittest is weak, yet I did not envisioned somthing better one

Coverage decreased (-13.06%) to 64.822% when pulling 136a4ec0627d3d3afbca6e759c7bc562e7ec79ef on ipa-lth:modal_form into 601b58152080d89575cc677474ec7714e1a34ee2 on python-control:master.

Hi,
I found something fishy in the transformation, but I cannot confirm if it is right or wrong yet!
After the transformation the poles of the system are identical, but the zeros seem to have doubled...
We should rule this out before merging.
Thx

I triple-checked and cannot find any error whatsoever. I will use it in my PhD for now. Additional test are welcome.


:mega: looking for contributors

This project is currently looking for contributors.
Drop a note, or ping, if you are interested.

Hello, I'd be interested in helping contribute & maintain this package for pnpm repos.

@busywhistling I've contacted you via email.


Extended Pre-training

Perform extended 'pre-training' or 'fine-tune' of existing pre-trained models, like Mistral 7b. Suggested by J. Howard.


improve finetune usage

quickstart_finetune.py currently demonstrates a successful finetuning of a local model.
While finetune is set to true in each completion call(lines 8, 14, 20), only the third call (line 20) results in finetuning and saving of the local model.
It is currently not obvious why we need 2 prior calls to completion before fine tuning successfully start.
If this is because we need prior examples this should be detailed in the documents and reflected in the feedback from the call itself in some way.

fixed in one of @abhigya-sodani edits focusing on limiting data synthesis to chat-gpt


Support inline shader declaration in Material

What problem does this solve or what need does it fill?
When declaring a Material with a very simple shader, having to use a separate file that lives in the assets folder that is really far from the code isn't always ideal. Having the ability to declare the shader in a string directly in the material impl would make this easier.
What solution would you like?
I believe this should be considered an advanced feature for experimentation and not used in most cases.
One potential implementation would be to add an Inline(String) variant to the ShaderRef enum.
What alternative(s) have you considered?
Manually create a shader handle before creating the app and use the handle in the material. This works, but this is more verbose and requires more manipulation. The goal here would be to simplify this workflow.
Additional context
n/a

I think bevy has ShaderRef::Handle(Handle<Shader>) which was designed for us to write
let mut asset_shader = world.resource_mut::<Assets<Shader>>();
let shader = Shader::from_wgsl(include_str!("shader.wgsl"));
let handle = asset_shader.add(shader);

ShaderRef::Handle(handle)

But we can't visit &mut World when calling vertex_shader and fragment_shader in trait Material.
I have no idea on where I can get an mutable reference to world from trait Material.


Do I need 2 geth instances to have 2 parties chat with each other?

I tried to use the example with 2 users on 2 chat pages in the browser, tried both asymmetric key and symmetric key but it doesn't work. Do I need 2 geth instances to have 2 parties chat with each other?

Hello) Did you

I tried to use the example with 2 users on 2 chat pages in the browser, tried both asymmetric key and symmetric key but it doesn't work. Do I need 2 geth instances to have 2 parties chat with each other?

Did you find solution for this problem?

Yes it works now with 2 chat pages in one browser and 1 geth instance, I didn't change anything. Sometimes not that stable with sym key. I'd like to try 2 geth instances on different devices


Don't link to empty releases page in PR body

When the updated dependency has no GitHub releases, it's pointless to link to an empty page.
If accepted, this should go together with a PR updating the smoke tests.

This one should be ready now, but I don't recall the process to move forward a PR that requires smoke tests changes. Do I merge the PR with red CI, and then regenerate smoke tests at https://github.com/dependabot/smoke-tests?

Verified that the updated smoke tests pass, so I'll be merging this and the smoke tests PR shortly!


Integration Test - Release - 2022/01/11 07:15:50

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#pri3'

#pri2

#pri3

#assign PRMergerTest1

#assign NonAllowedUser

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

#reassign PRMergerTest2

#reassign NonAllowedUser

#please-close

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

GitHub user PRMergerTest2 has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

#unassign PRMergerTest1

#unassign NonAllowedUser


Azure Automation Features RunasAccount and Schedule are not available in the repo

Is there an existing issue for this?

[X] I have searched the existing issues

Community Note

Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description
Azure Automation Features RunasAccount and Schedule are not available in the repository as per https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/automation_runbook
New or Affected Resource(s
azurerm_automation_runbook
Potential Configuration file
No response
References
No response

Raised the PR and it's merged now.


unable to fetch sendgrid email activity using PHP curl

Issue Summary
I am trying to get email activity of sub user account of SendGrid
I am trying to get emails/messages using API key
Below is the sample code:
     $curl = curl_init();
     curl_setopt_array($curl, array(
     CURLOPT_URL => "https://api.sendgrid.com/v3/messages?
      limit=10&query=to_email%3D%22myemail%40gmail.com%22",
     CURLOPT_RETURNTRANSFER => true,
     CURLOPT_ENCODING => "",
     CURLOPT_MAXREDIRS => 10,
     CURLOPT_TIMEOUT => 30,
     CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
     CURLOPT_CUSTOMREQUEST => "GET",
     CURLOPT_POSTFIELDS => "{}",
     CURLOPT_HTTPHEADER => array(
         "authorization: Bearer SG.XXXXXXXXXXX"
     ),

));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
But I am getting below response:
{
"errors": [
{
"message": "authorization required"
}
]
}
I am mensioning that I am trying to get SendGrid sub user account sent email activity
##Technical details:

sendgrid-php Version: master
PHP Version: 5.6, 7.0, 7.1, 7.2 (as of May 17, 2018)

Hello @veerendraceipal,
Work on officially supporting that endpoint for this SDK can be found here.
That said, I believe that in order to get a sub user account, you need to use the on behalf of header.
With Best Regards,
Elmer


alfio Find variants reports non ambiguous datasets as ambiguous and raises

For an input signature of
[('*ap.meta', 'raw_ephys_data/probe01', True),
 ('*ap.cbin', 'raw_ephys_data/probe01', True),
 ('*ap.ch', 'raw_ephys_data/probe01', True),
 ('*ap.wiring.json', 'raw_ephys_data/probe01', False),
 ('_spikeglx_sync.times.*npy', 'raw_ephys_data/probe00', True),
 ('_spikeglx_sync.polarities.*npy', 'raw_ephys_data/probe00', True),
 ('_spikeglx_sync.channels.*npy', 'raw_ephys_data/probe00', True),
 ('*.ap.meta', 'raw_ephys_data/probe00', False)]

And a folder containing:
_spikeglx_ephysData_g0_t0.imec.ap.meta
_spikeglx_ephysData_g0_t0.imec.lf.meta
_spikeglx_sync.channels.probe00.npy
_spikeglx_sync.polarities.probe00.npy
_spikeglx_sync.times.probe00.npy

The extraction gets prevented because ap.meta and lf.meta are reported as ambiguous
2024-09-13 10:13:10 ERROR    tasks.py:459  Ambiguous input datasets found: {'raw_ephys_data/probe00/_spikeglx_ephysData_g0_t0.imec.ap.meta': ['raw_ephys_data/probe00/_spikeglx_ephysData_g0_t0.imec.lf.meta']}
2024-09-13 10:13:10 ERROR    tasks.py:241  Traceback (most recent call last):
  File "/home/olivier/PycharmProjects/pykilosort/ibllib/ibllib/pipes/tasks.py", line 212, in run
    setup = self.setUp(**kwargs)
            ^^^^^^^^^^^^^^^^^^^^
  File "/home/olivier/PycharmProjects/pykilosort/ibllib/ibllib/pipes/tasks.py", line 389, in setUp
    self.assert_expected_inputs()
  File "/home/olivier/PycharmProjects/pykilosort/ibllib/ibllib/pipes/tasks.py", line 463, in assert_expected_inputs
    raise NotImplementedError(
NotImplementedError: Multiple variant datasets found. Loading for these is undefined.

Looks like the ONE code is fine. You can resolve this issue in ibllib by removing extra=False from this line.  I believe I added that because I was worried about the UUID filenames but given that we symlink only those files that exist in the cache this should not be an issue for running tasks on FlatIron.


Multiple getters and setters for a property?

The Keysight and Agilent instrument lines typically implement commands that can have various forms. For example, all of these are the same command:
# Definition:
[:SOURce[c]]:FUNCtion[:SHAPe] shape
shape: PULSe|DC

# Accepted:
:SOURCE1:FUNCTION:SHAPE DC
:SOURCE1:FUNC:SHAP PULS
:SOURCE:FUNC:SHAPE PULSE
:FUNCTION dc
:func:shape pulse
... and many more.

Is there support for multiple getters and setters for a property? A naive implementation would allow just repeating the property name:
properties:
  source_function_shape:
    getter:
      q: ":SOURCE:FUNCTION:SHAPE?"
      r: {}
    setter:
      q: ":SOURCE:FUCTION:SHAPE {}"
    valid: ["DC", "PULS", "PULSE"]
  source_function_shape:  # same property name so that ":SOUR:FUNC:SHAP?" returns the same as ":SOURCE:FUNCTION:SHAPE?"
    getter:
      q: ":SOUR:FUNC:SHAP?"
      r: {}
    setter:
      q: ":SOUR:FUCN:SHAP {}"
    valid: ["DC", "PULS", "PULSE"]

But this ends up being very verbose.
Can regex be used for getter and setter commands?
properties:
  source_function_shape:
    getter:
      q: ':(SOUR(CE)?\d?)?:FUNC(TION)?:SHAPE?\?'
      r: {}
    setter:
      q: ':(SOUR(CE)?\d?)?:FUNC(TION)?:SHAP(E)? \{\}'
    valid: ["DC", "PULS", "PULSE"]

Technically we need is to generate a SCPI parser for such cases. The best would be to simply generate the regex from a SCPI string internally but we would need a way to opt in/out of this mechanism. I won't have time to look into this but I will make time to review a PR if you feel like addressing the issue.


Ignore run-wasm in workspace by default

Since the https://github.com/rukai/cargo-run-wasm setup on GitHub is quite common, I think it would make sense to automatically ignore it when it's in the workspace by default.

Would you like to implement this feature? Possibly

Can you give some context? I don't know this project

This is added in projects that allow building for the web, to easily build and run examples or the binary on the web.
Some bigger examples where I've seen it:

https://github.com/rerun-io/rerun/tree/main/run_wasm
https://github.com/vladbat00/bevy_egui/tree/main/run-wasm
https://github.com/parasyte/pixels/tree/main/run-wasm

I also use it myself a lot:

https://github.com/tversteeg/chuot/tree/main/run-wasm
https://github.com/tversteeg/sprite-gen/tree/master/run-wasm
https://github.com/tversteeg/dinojam3/tree/main/run-wasm

rerun has publish = false in the manifest which I think it's what you should do if you don't want your project published.
Same for bevy_egui.
If we ignore it in release-plz, people won't set publish = false which is a bad practice.
So I think the best thing is for release-plz to threat run-wasm as a normal package, so that people write publish = false in the Cargo.toml


failed to push some refs to xxx

I tried to deploy http://octobercms.com (I cloned it and pushed it directly to my dokku server), but it does not work like expected. How can I debug it or does someone know what's wrong?
Christians-iMac-3:october chris$ git push server master
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ case "$1" in
++ ls -d /var/lib/dokku/plugins/00_dokku-standard/commands /var/lib/dokku/plugins/backup/commands /var/lib/dokku/plugins/config/commands /var/lib/dokku/plugins/git/commands /var/lib/dokku/plugins/nginx-vhosts/commands
+ for script in '$(ls -d /var/lib/dokku/plugins/*/commands)'
+ /var/lib/dokku/plugins/00_dokku-standard/commands git-receive-pack ''\''october'\'''
+ case "$1" in
+ for script in '$(ls -d /var/lib/dokku/plugins/*/commands)'
+ /var/lib/dokku/plugins/backup/commands git-receive-pack ''\''october'\'''
+ CURRENT_BACKUP_VERSION=1
+ set -e
+ case "$1" in
+ for script in '$(ls -d /var/lib/dokku/plugins/*/commands)'
+ /var/lib/dokku/plugins/config/commands git-receive-pack ''\''october'\'''
+ [[ git-receive-pack == config ]]
+ [[ git-receive-pack == config:* ]]
+ case "$1" in
+ for script in '$(ls -d /var/lib/dokku/plugins/*/commands)'
+ /var/lib/dokku/plugins/git/commands git-receive-pack ''\''october'\'''
+ case "$1" in
++ sed 's/\\'\''/'\''/g'
++ perl -pe 's/(?<!\\)'\''//g'
perl: warning: Setting locale failed.
++ echo ''\''october'\'''
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
+ APP=october
+ APP_PATH=/home/dokku/october
+ [[ git-receive-pack == \g\i\t\-\r\e\c\e\i\v\e\-\p\a\c\k ]]
+ [[ ! -d /home/dokku/october/refs ]]
+ args='git-receive-pack '\''october'\'''
+ git-shell -c 'git-receive-pack '\''october'\'''
Counting objects: 8584, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3261/3261), done.
Writing objects: 100% (8584/8584), 5.96 MiB | 82.00 KiB/s, done.
Total 8584 (delta 4772), reused 8573 (delta 4766)
remote: ++ id -un
remote: + [[ dokku != \d\o\k\k\u ]]
remote: + case "$1" in
remote: ++ ls -d /var/lib/dokku/plugins/00_dokku-standard/commands /var/lib/dokku/plugins/backup/commands /var/lib/dokku/plugins/config/commands /var/lib/dokku/plugins/git/commands /var/lib/dokku/plugins/nginx-vhosts/commands
remote: + for script in '$(ls -d /var/lib/dokku/plugins/*/commands)'
remote: + /var/lib/dokku/plugins/00_dokku-standard/commands git-hook october
remote: + case "$1" in
remote: + for script in '$(ls -d /var/lib/dokku/plugins/*/commands)'
remote: + /var/lib/dokku/plugins/backup/commands git-hook october
remote: + CURRENT_BACKUP_VERSION=1
remote: + set -e
remote: + case "$1" in
remote: + for script in '$(ls -d /var/lib/dokku/plugins/*/commands)'
remote: + /var/lib/dokku/plugins/config/commands git-hook october
remote: + [[ git-hook == config ]]
remote: + [[ git-hook == config:* ]]
remote: + case "$1" in
remote: + for script in '$(ls -d /var/lib/dokku/plugins/*/commands)'
remote: + /var/lib/dokku/plugins/git/commands git-hook october
remote: + case "$1" in
remote: + APP=october
remote: + read oldrev newrev refname
remote: + [[ refs/heads/master = \r\e\f\s\/\h\e\a\d\s\/\m\a\s\t\e\r ]]
/'
remote: + dokku receive october
remote: + git_archive_all october f7dfd35d0899f42e59e61d4f8b5aec9d4ab8311b
remote: + APP=october
remote: + REV=f7dfd35d0899f42e59e61d4f8b5aec9d4ab8311b
remote: ++ mktemp -d
remote: ++ id -un
remote: + TMP_WORK_DIR=/tmp/tmp.zmXG1JKklP
remote: + chmod 755 /tmp/tmp.zmXG1JKklP
remote: + [[ dokku != \d\o\k\k\u ]]
remote: + case "$1" in
remote: + APP=october
remote: + IMAGE=dokku/october
remote: + echo '-----> Cleaning up ...'
remote: + dokku cleanup
-----> Cleaning up ...
remote: + unset GIT_DIR GIT_WORK_TREE
remote: + git clone /home/dokku/october /tmp/tmp.zmXG1JKklP
remote: ++ id -un
remote: Cloning into '/tmp/tmp.zmXG1JKklP'...
remote: + [[ dokku != \d\o\k\k\u ]]
remote: + case "$1" in
remote: + echo '-----> Building october ...'
-----> Building october ...
remote: + docker images
remote: + grep '<none>'
remote: + cat
remote: + awk '{print $3}'
remote: + xargs docker rmi
remote: + xargs docker rm
remote: + dokku build october
remote: + awk '{print $1}'
remote: + grep Exit
remote: + docker ps -a
remote: ++ id -un
remote: warning: You appear to have cloned an empty repository.
remote: done.
remote: + pushd /tmp/tmp.zmXG1JKklP
remote: + git config advice.detachedHead false
remote: + [[ dokku != \d\o\k\k\u ]]
remote: + case "$1" in
remote: + APP=october
remote: + IMAGE=dokku/october
remote: + CACHE_DIR=/home/dokku/october/cache
remote: + git checkout f7dfd35d0899f42e59e61d4f8b5aec9d4ab8311b
remote: ++ docker run -i -a stdin progrium/buildstep /bin/bash -c 'mkdir -p /app && tar -xC /app'
remote: ++ cat
remote: HEAD is now at f7dfd35... Merge branch 'master' into develop
remote: + git submodule update --init --recursive
remote: perl: warning: Setting locale failed.
remote: perl: warning: Please check that your locale settings:
remote: 	LANGUAGE = (unset),
remote: 	LC_ALL = (unset),
remote: 	LC_CTYPE = "UTF-8",
remote: 	LANG = "en_US.UTF-8"
remote:     are supported and installed on your system.
remote: perl: warning: Falling back to the standard locale ("C").
remote: perl: warning: Setting locale failed.
remote: perl: warning: Please check that your locale settings:
remote: 	LANGUAGE = (unset),
remote: 	LC_ALL = (unset),
remote: 	LC_CTYPE = "UTF-8",
remote: 	LANG = "en_US.UTF-8"
remote:     are supported and installed on your system.
remote: perl: warning: Falling back to the standard locale ("C").
remote: + find -name .git -prune -exec rm -rf '{}' ';'
remote: + tar c .
remote: + popd
remote: + rm -rf /tmp/tmp.zmXG1JKklP
remote: + id=8e4ef71839c89c63c42bdd563ddfa1b13e9483ec42a55740f818db8f8f5b007d
remote: ++ docker wait 8e4ef71839c89c63c42bdd563ddfa1b13e9483ec42a55740f818db8f8f5b007d
remote: + test 0 -eq 0
remote: + docker commit 8e4ef71839c89c63c42bdd563ddfa1b13e9483ec42a55740f818db8f8f5b007d dokku/october
remote: + [[ -d /home/dokku/october/cache ]]
remote: + pluginhook pre-build october
remote: ++ docker run -d -v /home/dokku/october/cache:/cache dokku/october /build/builder
remote: + id=f0df19f03147021fc0f0896824bbb465506e00eb7ef323a532c0935a2bec0d36
remote: + docker attach f0df19f03147021fc0f0896824bbb465506e00eb7ef323a532c0935a2bec0d36
       PHP (classic) app detected
-----> Bundling NGINX 1.4.4
       Checksums match. Fetching from cache.
-----> Bundling PHP 5.5.10
       Checksums match. Fetching from cache.
-----> Bundling extensions
       apcu
       Checksums match. Fetching from cache.
       phpredis
       Checksums match. Fetching from cache.
       mongo
       Checksums match. Fetching from cache.
+ for script in '$(ls -d /var/lib/dokku/plugins/*/commands)'
+ /var/lib/dokku/plugins/nginx-vhosts/commands git-receive-pack ''\''october'\'''
+ case "$1" in
To dokku@mydomain.com:october
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@mydomain.com:october'

The buildstep image was updated - and we now test php app deploys - so you shouldn't be seeing this issue anymore. Please comment if that's not the case.


Redo to autodetect the location of I/O banks

Signed-off-by: YRabbit<EMAIL_ADDRESS>

Well, I think that nextpnr-0.3 is already too old and will always swear:)

Whoa what is this magic, "TODO" comments actually getting fixed


$text-color not always applied on iOS

Short description of the problem:
Setting the $text-color:  in variables.scss for e.g. to #fff does not affect grid text color or h3 in ion-item-sliding. It works fine on android but not on iOS.
What behavior are you expecting?
Global text colors apply the $text-color as it did on Beta11.
Steps to reproduce:

Start a new project
change $text-color in variables.scss
add an ion-grid to page1
build and deploy the project to an iOS device or simulator
see normal text colors changed but not in a grid.

Which Ionic Version? 1.x or 2.x
Ionic 2 RC0
Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: Not installed
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.2.2
Xcode version: Xcode 8.0 Build version 8A218a

Thanks for the issue! I'm not able to reproduce this using the latest version 2.1.0. If you are still seeing this could you provide a plunker or repository that I can use? Thanks :)


Set up CI

All of our client libraries use TravisCI.

Set up config file
Add TravisCI badge

https://docs.travis-ci.com/user/languages/csharp/

Config file added to ISSUE-3 branch. @darrencauthon I don't know enough about .NET to understand the errors I see here: https://travis-ci.org/SparkPost/csharp-sparkpost/builds/115531913 - whenever you have a sec if you could take a look that would be great.

I think I tracked it down: http://stackoverflow.com/a/32302959/174030 - though I'm not sure if, from your standpoint, this is worth doing. It means changes to settings in the csproj file.

We'd have to major changes to the csproj anyway. I think those changes
sound ok.
I won't be able to make the changes until I get back on my laptops later in
the day. If you don't want to wait, why not give it a try? :) don't worry
you can't hurt it. Anything that accidentally breaks can be fixed. Tinker
away...I'd LOVE to have this on Travis!
On Saturday, March 12, 2016, Richard Leland<EMAIL_ADDRESS>wrote:

I think I tracked it down: http://stackoverflow.com/a/32302959/174030 -
though I'm not sure if, from your standpoint, this is worth doing. It means
changes to settings in the csproj file.
—
Reply to this email directly or view it on GitHub
https://github.com/SparkPost/csharp-sparkpost/issues/3#issuecomment-195753517
.

--
Darren Cauthon
<EMAIL_ADDRESS>

Oh just to warn you: there is one test that is failing,  I have one
integration test that I used during dev, making sure not to check in my
key. It's still in there, but I intended to remove it with more unit tests.
Another option for this failing integration test is to load a testing key
from SparkPost into Travis. Then the tests can fire emails and verify, at
least, that the SparkPost API responded with a success instead of a
failure.
Does Travis run the tests from a certain range of IPs?  If you can load an
environment variable into Travis, let me know and I'll adjust this test.
On Saturday, March 12, 2016, Richard Leland<EMAIL_ADDRESS>wrote:

I think I tracked it down: http://stackoverflow.com/a/32302959/174030 -
though I'm not sure if, from your standpoint, this is worth doing. It means
changes to settings in the csproj file.
—
Reply to this email directly or view it on GitHub
https://github.com/SparkPost/csharp-sparkpost/issues/3#issuecomment-195753517
.

--
Darren Cauthon
<EMAIL_ADDRESS>

YES: https://travis-ci.org/SparkPost/csharp-sparkpost/builds/115609947

It's great that it built, but I don't think it ran the tests. I'll look up
how to run nunit tests with Travis CI
On Saturday, March 12, 2016, Richard Leland<EMAIL_ADDRESS>wrote:

YES: https://travis-ci.org/SparkPost/csharp-sparkpost/builds/115609947
—
Reply to this email directly or view it on GitHub
https://github.com/SparkPost/csharp-sparkpost/issues/3#issuecomment-195849856
.

--
Darren Cauthon
<EMAIL_ADDRESS>

oh well, um, yeah....

Hey it's still a step forward! I've never actually plugged a .Net app into
Travis CI, I'm learning too.
On Saturday, March 12, 2016, Richard Leland<EMAIL_ADDRESS>wrote:

oh well, um, yeah....
—
Reply to this email directly or view it on GitHub
https://github.com/SparkPost/csharp-sparkpost/issues/3#issuecomment-195850693
.

--
Darren Cauthon
<EMAIL_ADDRESS>

btw - this might have the info we need: https://docs.travis-ci.com/user/languages/csharp/

It does.  Let me take it from here, I've got this.

@richleland It builds and runs the tests. If a test or build fails, it goes red.
All we need now is the badge. Can you add that?

Added - thanks for the work here - awesome to have that set up!


fix fix potential delete fail after adding columns

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall


Change Eval Framework Copy requirement to Clone.

This change is

#836
#835
#834  👈
dev

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Alon-Ti and the rest of your teammates on  Graphite

Codecov Report
Attention: Patch coverage is 97.89474% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.58%. Comparing base (f787197) to head (5cea2f8).

Files with missing lines
Patch %
Lines

...es/prover/src/core/backend/simd/very_packed_m31.rs
0.00%
0 Missing and 1 partial :warning:

crates/prover/src/core/lookups/utils.rs
94.44%
0 Missing and 1 partial :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #834   +/-   ##
=======================================
  Coverage   92.58%   92.58%
=======================================
  Files          89       89
  Lines       12017    12018    +1
  Branches    12017    12018    +1
=======================================
+ Hits        11126    11127    +1
+ Misses        784      781    -3
- Partials      107      110    +3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Merge activity

Sep 25, 9:20 AM EDT: Graphite disabled "merge when ready" on this PR due to: a merge conflict with the target branch; resolve the conflict and try again..


Keeping config in git

Version of HACS
0.11.1
Describe the bug
I am not sure it is a bug as such. I am keeping all my config in git (makes sense right). Except secrets of cause.
Each commit then triggers my CI/CD pipeline, which first tests the config and if this succeeds it will deploy the commit, simple and easy.
BUT, when i add a custom_component through hacs, this is of course not added to my git repo as this is installed directly in my HASS installation.
I have tried copying the folder to my git repo but when i run the test i still get:
$ hass --script check_config -c ./data/ INFO:homeassistant.util.package:Attempting install of aiofiles==0.4.0 Failed config   General Errors:      - Platform not found: sensor.unifigateway
Any ideas on how to get around this, cause i really like the idea of have the Community Store looking for updates etc.

I am not sure it is a bug as such.

Correct, this is not a bug with this integration, but a generall issue with your flow.

Any ideas on how to get around this.

Have your CI install all requirements from the manifest files for the various components before checking.

@ludeeus Can you give me a pointer on how i can load these before running:  hass --script check_config -c /config
It seems like the check_config dont load them automatically ?
Thanks in advance

Check any of the load configs here https://github.com/custom-components/hacs/tree/master/.pipelines


fix: improve captcha security

Context
Current captcha implementation

leaks the secrets to the client, which is a bad practice and can lead to security issues;
only rely on client data to verify the captcha (secret and type are both only taken from the the user form), by using specific values (Cloudflare testing credentials for example), an attacker can easily bypass the captcha this way;
can be bypass just by setting captchaType to none for email / phone verification.

This PR tries to fix those issues.
Changes

The response to the /api/get-captcha request no longer fills the fields ClientSecret, ClientId2 and ClientSecret2
For captcha type Aliyun Captch, the fields Scene and AppKey are used instead of ClientId2 and ClientSecret2
The authentication form for the /api/login request no longer accepts ClientSecret, for the default captcha the CaptchaId field is used instead
The captcha provider is fetched using the application ID (captcha.GetCaptchaProviderByApplication method with isCurrentProvider to false) for the email / phone verification and the login routes
The captcha provider is fetched using the provider ID (captcha.GetCaptchaProviderByApplication method with isCurrentProvider to true) for the verify captcha route

Note: I have only tested the default captcha and cloudflare using the testing credentials as I don't have accounts for any of the captcha providers.
Cheers,
Gaël

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

It should now be fixed.

As I didn't receive any feedback those last two weeks, is this PR something you would consider?


weibull halflife depends on data length

Hi,
trying to understand how you calculate weibull adstock, I figured out that scaleTrans depends on the time units. So having a fixed scale and shape params, halflife will be different based on time units. Is this a correct behavior?
Example: time units of 20 (halflife ~6.5 weeks) and 100 has a halflife of 18 weeks.

Hi, yes it's expected. Scale is the relative position


Add Quantum AI qsim + NVIDIA CUDA / cuQuantum Demo

This submission is a work in progress intended for review by NVIDIA engineers. I will add appropriate documentation when we are satisfied that the blueprint works and will remain reliable. A forthcoming PR will add periodic integration testing.

[X] Is unit test coverage still above 80%?
[X] Have you updated all applicable documentation?
[X] Have you followed the guidelines in our Contributing document?

@dfisk please take a look at this blueprint

Example Hello, World code:
# Import Cirq and qsim
import cirq
import qsimcirq

# Instantiate qubits and create a circuit
q0, q1 = cirq.LineQubit.range(2)
circuit = cirq.Circuit(cirq.H(q0), cirq.CX(q0, q1))

# Instantiate a simulator that uses the GPU
# gpu_options = qsimcirq.QSimOptions(use_gpu=False) # enable CPU, but not GPU
# gpu_options = qsimcirq.QSimOptions(use_gpu=True) # enable GPU, but not cuQuantum
gpu_options = qsimcirq.QSimOptions(use_gpu=True, gpu_mode=1) # enable cuQuantum
qsim_simulator = qsimcirq.QSimSimulator(qsim_options=gpu_options)

# Run the simulation
print("Running simulation for the following circuit:")
print(circuit)

qsim_results = qsim_simulator.compute_amplitudes(
    circuit, bitstrings=[0b00, 0b01])

print("qsim results:")
print(qsim_results)

@dfisk I have updated the blueprint to include an example application
gcloud compute ssh --zone us-west4-b --tunnel-through-iap --project my-project testgpu-0

sudo tail -f /var/log/syslog
# wait until you see
# Aug 31 18:29:48 testgpu-0 startup-script-stdlib[1585]: === start executing runner: qsim-example.py ===
# Aug 31 18:29:48 testgpu-0 google_metadata_script_runner[1574]: startup-script: Wed Aug 31 18:29:48 +0000 2022 Info [1585]: === start executing runner: qsim-example.py ===
# Aug 31 18:29:48 testgpu-0 startup-script-stdlib[1585]: === qsim-example.py finished with exit_code=0 ===
# Aug 31 18:29:48 testgpu-0 google_metadata_script_runner[1574]: startup-script: Wed Aug 31 18:29:48 +0000 2022 Info [1585]: === qsim-example.py finished with exit_code=0 ===
# Aug 31 18:29:48 testgpu-0 google_metadata_script_runner[1574]: startup-script exit status 0

I am going to add a wait-for-startup module to this blueprint to automate this step.
You will want to logout/login to be sure conda is active. Then run
conda activate qsim
python /var/tmp/qsim-example.py

It should print out several runs: CPU, GPU+CUDA, GPU+CUDA+cuQuantum

@nick-stroud b73e238 is extremely minor update to ensure users are aware that cuQuantum is not an alternative to CUDA, but builds atop it by adding cuQuantum.

@nick-stroud there was an initial failure of the PR check because I had not rebased to include the commit that makes kind optional. Now resolved.


[Question] If set PSI's initial value to 0 or its ssim value will be better than frame's time?

Hi,
Recently I work on some performance measurement tasks and leverage your code for SI and PSI calculation on Hasal project.
But we got a little confused why the PSI Initial Value is first frame's time instead of 0 or its ssim value as SI do.
If there has any reason to use frame's time as its initial value?

Pinging @pahammad who handled the SSIM version of PSI.

Visual completion % is what both SI and PSI are integrating. SI uses histogram difference to track the % progress of visual completion, while PSI uses SSIM difference to track visual completion % progress. In practice, to handle some corner cases, we assume the visual completion % to be zero before the first visual change occurs. This is true for both SI and PSI. If the visual completion % is zero, simply following the integral equation (for both SI and PSI), the integral upto first visual change is simply the time elapsed from beginning of the video until the first visual change (measured in milliseconds). The reason why the code for PSI looks that way is to align with the non-uniform sampling scheme used in VisualMetrics repository. It's not a bug, and the math works out if you write down the calculations frame by frame, while keeping in mind the expectation of zero visual completion before first visual change occurs.
There's a somewhat related thread that goes into an alternative way of writing SI / PSI integrals by breaking them into two parts; it may give you better clarity as well. See: https://github.com/pmdartus/speedline/issues/28

Thanks for the explanation and now I know the reason.
But I still has some questions about this solution.

How do you define the start point of data, is the time stamp of test script start?
How do I indicate a PSI value is better or worse if I measure one website two times and get different time for firstPaint?

The code for SI and PSI in VisualMetrics repository work with a video as input. The video is usually from a WPT test run. The start point of the data is the first frame of the video, as defined by WPT's testing & video capture mechanism. If you measure a website twice, you will have two video files; just pass these videos one after another into the PSI code and you will get the corresponding PSI values. Same method works for SI. It is very common for all web performance metrics to vary from one test run to another even when you are testing the same exact website - the variation can even be non-Gaussian. This variation is mostly due to channel variations between the origin location and the client (testing) device. Hope this helps.

That's really helpful to me, thanks for the introduction about calculation flow. Eventually I found our framework doesn't adjust time stamp and align the offset thus result in a greater variation of firstPaint.


[DBM-2825] sql lexer pkg with obfuscation and normalization

What does this PR do?
This PR creates the first iteration of a shared SQL Lexer package. This is to be used by datadog-agent to obfuscate SQL queries, as well as dbm backend to normalize SQL queries.
NOTE: This is not a comprehensive implementation that works with multiple SQL dialects. The goal is to run the PoC with Postgres and keep iterating the implementation to support MySQL, Oracle and SQL Server.
Proposed Solution
The SQL Lexer package breaks down into 3 main parts

Lexer -> tokenize input SQL string, outputs tokens
Obfuscator -> Obfuscates input SQL, outputs obfuscated SQL
Normalizer -> Normalizes input SQL, outputs normalized SQL and collected metadata (opted in by config)

Motivation
The motivation behind this PR serves as a PoC to build a shared SQL Lexer package. The purpose of the package is to resolve some our main pain points relates to SQL obfuscation & normalization.

Robust and Efficient SQL Lexer on the Agent: Improving the robustness of the SQL obfuscation on the Agent means we are better equipped to run a more smooth obfuscation process on the queries we collect. This is particularly crucial when the Agent is dealing with truncated or malformed queries, where only a portion of the query is available. In an ideal world, SQL obfuscation on the Agent should “never” fail and always produces an obfuscated SQL context.
Quick Detection and Fixing of Normalization Errors: By splitting obfuscation & normalization from the Agent and running normalization on the backend, the team aims to detect and fix normalization errors more efficiently with backend releases.

@lu-zhengda have you integrated this with the postgres agent yet? Do you have results from that test, which show this is working as good as the current implementation?

@jmeunier28 no I have not fully integrate this with postgres yet. The implementation is primary verified with unit tests

A very high-level comment but I think the repo/package name could be a little better so that usage isn't too awkward. With the current go-sql-lexer name, the default import name for usages would be lexer which isn't the best. I think the usages would read better if the package was named go-sqllexer and then the usages would be sqllexer.New.


Uploading a File

I am trying to upload a file in Dart with this code
Reading the file
    dom.InputElement uploadInput = dom.querySelector('#upload');

    uploadInput.onChange.listen((dom.Event e)
    {
        // read file content as dataURL
        final files = uploadInput.files;

        if (files.length == 1)
        {
            final file = files[0];
            final reader = new dom.FileReader();

            reader.onLoad.listen((_)
            {
                dataRequest('upload', reader.result);
            });

            reader.readAsDataUrl (file);
        }
    });

Sending the file
    Future<dom.HttpRequest> dataRequest (String path, dynamic data)
    {
        return dom.HttpRequest.request (path, method: "POST",
               sendData: data);
    }

But I get this error
POST http://localhost:9090/upload 400 (Bad Request) :9090/upload:1
Instance of '_XMLHttpRequestProgressEvent'

STACKTRACE:
null

I receive it in Redstone like this
@app.Route("/upload", methods: const [app.POST], allowMultipartRequest: true)
@Encode()
upload(@app.Body(app.FORM) Map form)
{
    var file = form["file"];
    print(file.filename);
    print(file.contentType);
    print(file.runtimeType);

    return new Resp()
        ..success = (file.filename != null);
}

I am doing something wrong on the client or on the server?

You can`t send the file data directly. Instead, you have to send a FormData object (or just submit a form). You can find some post about its usage on stackoverflow, like this one

Thanks! Now Redstone accepts the request. However I get a map like this
{ 'file' : 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQAB...'}

I've seen that if I manually use an input form (which I don't because then the browser tries to navigate to /upload) Redstone decodes the file to a HttpBodyFileUpload automatically. What can I add on the client upload to achieve the same effect?

My new client code looks like this
dom.FormData formData = new dom.FormData();
formData.append('file', data);

return dom.HttpRequest.request (path, method: "POST",
           sendData: formData);

Try to apeend the file input element to the form, instead of the file data.

Thanks! It worked sending the FormElement and how I have that file is a HttpBodyFileUpload.
One last bit of help, I am guessing HttpBodyFileUpload.content is a binary representation of the image since its a List<int>, how can I convert and save this to disk as a png for example?
Thanks a lot!

Just create a File object (note that this is the File from dart:io, not dart:html) to write the data to the disk


[Feature]: Invalid header error should show what is the problem

Feature description
I try to serve a response from cache and I get:
Error: Protocol error (Fetch.fulfillRequest): Invalid header
    at new Callback (jsbot-auto\node_modules\puppeteer-core\lib\esm\puppeteer\common\Connection.js:58:35)
    at CallbackRegistry.create (jsbot-auto\node_modules\puppeteer-core\lib\esm\puppeteer\common\Connection.js:103:26)
    at Connection._rawSend (jsbot-auto\node_modules\puppeteer-core\lib\esm\puppeteer\common\Connection.js:215:26)
    at CDPSessionImpl.send (jsbot-auto\node_modules\puppeteer-core\lib\esm\puppeteer\common\Connection.js:422:78)
    at HTTPRequest._HTTPRequest_respond (jsbot-auto\node_modules\puppeteer-core\lib\esm\puppeteer\common\HTTPRequest.js:273:10)
    at HTTPRequest.respond (jsbot-auto\node_modules\puppeteer-core\lib\esm\puppeteer\common\HTTPRequest.js:184:100)

And cool, but which one? Which header is a problem? Is the header value invalid? Is the header name invalid? Is it a duplicate? Or what?...

Problematic header was set-cookie in this case.
Not sure why set-cookie was set on that request, probably a bug in Mediawiki. None the less would be helpful if Puppeteer would show the header name at least.
My ~pwa caching if that matters:
		page.on('request', async (request) => {
			const url = request.url();
			// const method = request.method();
			// if (cache[url] && cache[url].expires > Date.now()) {
			// if (method === 'GET' && cache[url]) {
			try {
				if (cache[url]) {
					this.stats.fromCache++;
					await request.respond(cache[url]);
					return;
				}
			} catch (error) {
				console.warn('[PageCache]', 'serving cache failed', url, error);
			}
			this.stats.direct++;
			request.continue();
		});

[PageCache] serving cache failed https://meta.wikimedia.org/w/index.php?title=MediaWiki:OSM.js&action=raw&ctype=text/javascript&smaxage=21601&maxage=86400 ProtocolError: Protocol error (Fetch.fulfillRequest): Invalid header
Possibly related:
chore: propagate 'Invalid header' errors #7020


Add ENABLE_PUSH flag in the Upgrade HTTP2-Settings header

Push flag required for the case the initial upgrade request triggered server push.

I'll look into.

One travis-ci job is failing unexpectedly with empty raw log. Can I ask help?

I've restarted that build. =)

I added http11 h2c upgrading test by inheriting TestServerPush which is for http20 h2, and test passed.

I agree that HTTP11Connection.getpushes is a little bit hacky. This was added to meet the strict tests of test_promise_before_headers or test_capture_all_promises. If we don't need to satisfy these tests for http11 upgrade, implement would be more relaxed style. I'll create another PR for that version later.
BTW, the response will be stored in self._response for later self.get_response call, and would not lost.

I think those tests don't need to work for upgrade, but we should write a test that does work as expected (e.g. you get a HTTP/2 response and then look for pushes on that stream)


Add token_2022 program id support

spl_token_2022 has released feature to revoke token transfer approval not only by owner but also by delegate.
https://github.com/solana-labs/solana-program-library/pull/2872
I got issues trying to import and use spl_token_2022::revoke instruction in anchor program using standard solana_program::invoke.
fn revoke_approve<'info>(
    owner_ata: &Account<'info, TokenAccount>,
    delegate: &Signer<'info>,
) -> Result<()> {
    let cpi_program = &spl_token_2022::id();
    let revoke_instruction = revoke(cpi_program, &owner_ata.key(), &delegate.key, &[])?;
    invoke(&revoke_instruction, &[owner_ata.to_account_info(), delegate.to_account_info()])?;
    Ok(())
}

Getting error message during execution.
Unknown program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb
Is it possible to make spl_token_2022::revoke working ?

Anchor doesn't support spl token_2022, which uses a different program address. So there would have to be a whole other version of this file https://github.com/coral-xyz/anchor/blob/master/spl/src/token.rs which uses the correct token_2022 program id.

Thanks.
Is it possible to create crate, smth like:
anchor-spl-2022 = "0.26.0"
compatible with anchor-lang ?

What you're describing is only how the crate would be imported?
Usually this is specified in the dependences, usually in a format more like
[dependencies]
anchor-spl = { version = "0.26.0", features = ["token-2022"] }

but this is only the import statement, someone still needs to add the token-2022 stuff!

As far as I get, token accounts created by old program could not be mutated by program 2022. So in order use self-revoke, token and token account should be created with token 2022 program ?

yes


[RESTEASY-2995] Configurable buffer size for AsyncOutputStream writer.

As this buffer is used to write data to OutputStream, in some cases like the resteasy-netty4 server adapter, the bytes chunks are written to the response and flushed on every chunk. If we go with the default for writing a data of size 10000 bytes it has to write and flush the data ~5 times. While this can have a slight impact on the performance it has a better memory utilisation with using a less buffer size. However for the applications that this memory usage is not a bigger concern as opposed to performance, we are facilitating with an option to override this buffer size.

Thank you for the contribution. We are cleaning up older PR's that seem to be stale. If you feel this is still an issue please feel free to re-open.


DXF Viewer in Explorer

Description of the new feature / enhancement
We would like to view DXF files natively in explorer.
Scenario when this would be used?
When working with DXF files. Many people use this file type to share 2d drawings, and theres no way to preview them in explorer, a program must be downloaded.
Supporting information
No response

/dup #17271


Add job for precomputing the part of the school_overview query that is imported

This is to address https://github.com/studentinsights/studentinsights/issues/3, and is part of #5.
This adds a job to precompute the student_hashes part of the schools#show endpoint, in an effort to speed that up, since that data only updates each day.  This doesn't yet schedule the job to run in Heroku.
locally
This is the effect on load times locally, with 466 students in the DB:
Before:

After:

staging a/b
Based on my low budget manual testing, there's a ton of variance in response times here, both in staging and in production.  All my tests were for ldap_user, and all trying to hit as warm a path as possible.
My initial tests in staging showed this change (with some responses beforehand up to 2x slower):
Before:

After:

staging and production
But testing a while later led to lower response times overall on both domain.  This is from a few manual tests comparing production and staging (which of course have different profiles, so this is just rough).
Production:

Staging:

Overall, these all are in the right direction like we'd expect though.

There are also some significant differences in the educators and authorizations between staging and production, which I think is from the workarounds that @alexsoble has awesomely figured out.
Concretely, there are 3 educators in staging (1 of which is the ldap_user I manually added) that have authorization to see any student data.  In production there are 26 educators.  It might be a good idea to investigate that difference, and figure out if there's another way to externalize that (maybe as a seed or import task).
This is how I ran the task in staging:
heroku run:detached bundle exec rake precompute:school_overview --app student-insights-staging
Also, I tried reading from a flat file locally (versus the JSON column in the Postgres record), which was faster and is how the Rails.cache would work out of the box, but from poking around online that doesn't fit too well with Heroku's deployment model.  And I think we want the "precompute" semantics more than the "read-through cache that expires each day" semantics.

I'm not understanding the build failure yet.  Looks like Postgres JSON support isn't installed (which is fine, we could change this to bytea).  But this should be included out of the box in Postgres 9.4.1, and I can verify this works fine locally on OSX, and the Travis docs say that's the same version running by default, so I'm not yet sure what the problem is here.

@kevinrobinson Thoughts on precomputing all of the data including interventions, and then re-computing the value in a background job whenever an educator adds/deletes/edits an intervention?

There are also some significant differences in the educators and authorizations between staging and production, which I think is from the workarounds that @alexsoble has awesomely figured out.

Concretely, there are 3 educators in staging (1 of which is the ldap_user I manually added) that have authorization to see any student data. In production there are 26 educators. It might be a good idea to investigate that difference, and figure out if there's another way to externalize that (maybe as a seed or import task).

@kevinrobinson I can explain the difference!  :0)
All educator authorization information came from Jill via email. I entered it directly as a big console script into the production environment, didn't save it as a migration or a rake task or anywhere else in the codebase. Would be good for me to do that so that we can keep parity between production / staging.
Would also be useful because it would help externalize Jill's and other principals' intuitions about who should have access to what student information.

@alexsoble Awesome, that's what I figured but good to verify. :)  And externalizing to a task or code sounds good.
Related to fully recomputing those on edits, we could do that but I don't think we have infrastructure at the moment to trigger a background computation that ultimately leads to a write in the database.  Doing it synchronously in the controller action after flushing a response to the client seems more complex.  Is your thought mostly that this would be simpler, or a way to improve page load times on the overview page?
FWIW, my own thinking has been "every night new data comes in from external systems, and as part of that we index that data for fast serving to users whenever they come."

Got this working!  the problem was the migration code that used the json column type failed in Travis (still not sure why it didn't work), so adding a new migration on top to change the column type didn't work, since the earlier migration would still fail. :panda_face:

Verifying this manually in production now, see if you can spot the before and after change. :)

@jochakovsky FYI this was the issue I mentioned, and other solutions to address would be great too!


Improve parsing even further

Parsing now supports:

[x] Optional delimited vectors, so you don't have to write Foo<>
[x] Guard clauses, so you don't have to write struct Foo where [] { but can  just write struct Foo {
[x] Precedence and ambiguous grammars, so you can write Expr = Expr + Expr and things like that.

also adds a custom testing framework (parser-torture-tests) as well as an example language (formality-eg). The formality language is incomplete.

@bors r+

I guess we didn't enable bors yet. :)


[KOGITO-4572] KogitoInfra doesn't detect running Infinispan instance

Signed-off-by: Karel Suta<EMAIL_ADDRESS>https://issues.redhat.com/browse/KOGITO-4572
Many thanks for submitting your Pull Request :heart:!
Please make sure your PR meets the following requirements:

[x] You have read the contributors' guide
[x] Pull Request title is properly formatted: [KOGITO-XYZ] Subject
[x] Pull Request contains a link to the JIRA issue
[x] Pull Request contains a description of the issue
[x] Pull Request does not include fixes for issues other than the main ticket
[ ] Your feature/bug fix has a unit test that verifies it
[x] You've tested the new feature/bug fix in an actual OpenShift cluster
[ ] You've added a RELEASE_NOTES.md entry regarding this change

I didn't update the readme as the issue is related to https://issues.redhat.com/browse/KOGITO-4477 which is targeting same release, previously it worked well.

/jenkins test

Maybe we can also open a follow-up JIRA to update ISPN reference?

@ricardozanini Created https://issues.redhat.com/browse/KOGITO-4577

/jenkins test

Should we wait for https://github.com/kiegroup/kogito-cloud-operator/pull/781# before merging this PR?

No, this is critical. Merging.


When create license with more character it shows error

Describe the bug
When we add more characters (300 char) in name, number, issue authority, applicable law and note  it shows system error
To Reproduce
Steps to reproduce the behavior:

Go to https://ac-74.s1.easycloudbooks.com/user/company/list#
Click on any company in company list it will display company view page
click on three dots and select license/registration option it will open license page click on create license button
Add more characters (300 char) in name, number, issue authority, applicable law and note
See error

Expected behavior
It shows validation or character length message
Screenshots
If applicable, add screenshots to help explain your problem.

Registration Name char length 50
Registration Number char length 50
Registration Issuing char length 50
Applicable Law char length 50
Note char length 200


Terminal mode keymap does not work if terminal is producing lots of output

Steps to reproduce

Use the following vimrc:

set nocompatible
tnoremap <C-w>t <C-w>:tabnew<CR>

:terminal seq 1 10000000
Type <C-w>t

Expected behavior: A new tab is opened
Actual behavior: Doesn't work most of the time

It only happens if there's :terminal window producing lots of output.
Only MacVim GUI mode has this issue.

MacVim version: snapshot-151
macOS version: 10.13.6

seems to be related to https://github.com/macvim-dev/macvim/pull/678

There was another similar issues with GUI terminal issues like <C-c> combination which could be related.


Wishlist: shrink-to-page mode badly needed

Hi,
I am encountering the following problem with cups:
I have a document where page 1 is slightly larger than an A4 due to the use of a legacy page format and page 2 is A5. I need to print it for paper archival so that it fits on a single A4 slice of paper, using duplex.
I cannot seem to be able to do it with current cups. Either:

I select fit-to-page, and in this case the result is terrible because the second A5 page is enlarged to A4; or
I do not select fit-to-page, and in this case the result is unusable because the first page is not scaled down to fit on the A4 and I miss parts of it.

Because I need duplex, I cannot work around this issue by using two separate print jobs.
I think that a shrink-to-page option is very much needed. The result should be similar to fit-to-page but with the restriction that pages can only be scaled down.
This could be implemented in two ways: with a new shrink-to-page option or maybe with a fit-to-page-mode option working together with fit-to-page.

This is the "print-scaling=auto-fit" behavior. I don't know whether all of cups-filters supports it, but that is the standard option/IPP attribute and value.

@michaelrsweet

This is the "print-scaling=auto-fit" behavior. I don't know whether all of cups-filters supports it, but that is the standard option/IPP attribute and value.

Is this meant to be used from the CLI as in lp -d <printer> -o print-scaling=auto-fit <file.pdf>?
If so, unfortunately the -o print-scaling=auto-fit does not seem to do that (or is buggy). This either in conjuction with ipp-attribute-fidelity=false or ipp-attribute-fidelity=true
My feeling is that the option is there (see also bug #108), but does not work in that way.
Both auto-fit and auto-fill do either scale down or up in order to adjust the content to the page (fit assuring that no crop happens, fill with no such warranty). Adding ipp-attribute-fidelity=false in conjunction to auto-fit or auto-fill should ensure that if the content is already smaller than the printable area there is no scaling.
However, the choice whether to scale or not seems to be done at the document level not at the page level, which makes it totally useless in my case. Namely, if you need to scale the first page (because the content is too big) then all pages will be scaled to fit or fill the media, regardless of the fact that in some pages the content might be much smaller than the media size and that ipp-attribute-fidelity=false is selected to avoid expanding small contents to the media size.
Now I wonder if I should modify this bug to ask that the scaling options can be applied on a page by page basis. Can this be considered? In the end the old acrobat reader for linux had an option doing this right before it was retired.

There is no "auto-fill" value. The defined values (and their semantics) from PWG 5100.13-2023: IPP Driver Replacement Extensions v2.0 (NODRIVER) are:

'auto': If the “ipp-attribute-fidelity” attribute is true or the Input Pages are larger than the requested Media Sheets, scale the Document using the 'fit' method if the margins are non-zero, otherwise scale using the 'fill' method. If the “ipp-attribute-fidelity” attribute is false or unspecified and the Input Pages are smaller than the requested Media Sheets, scale using the 'none' method.
'auto-fit': If the “ipp-attribute-fidelity” attribute is true or the Input Pages are larger than the requested Media Sheets, scale the Document using the ‘fit’ method. Otherwise, scale using the ‘none’ method.
'fill': Scale the Document to fill the requested media size, preserving the aspect ratio of the Document data but potentially cropping portions of the Document.
'fit': Scale the Document to fit the printable area of the requested media size, preserving the aspect ratio of the Document data without cropping the Document.
'none': Do not scale the Document to fit the requested media size. If the Document is larger than the requested media, center and clip the resulting output. If the Document is smaller than the requested media, center the resulting output.

What you want is 'auto-fit', which is applied per-page. But if cups-filters isn't implementing it correctly, please file a bug over there.

There is no "auto-fill" value
sorry, I meant just auto

What you want is 'auto-fit', which is applied per-page.
OK, so my issue is that it is not. I'll file a bug for it after building a test case. Before that, and to make sure that I file the bug correctly, is this driver dependent? Is the issue possibly tied to a specific driver (e.g., hplip) or likely to be in a generic filter?

No, it isn't driver dependent, just the core filters that need to support it so the drivers get the data properly scaled for them.

@michaelrsweet since print-scaling is IPP attribute reported by IPP printer, shouldn't the printer firmware be able to do the trick, so it would be firmware dependent?
Either way, pdftopdf seems to support it (libcupsfilters - cupsfilters/pdftopdf/pdftopdf.cxx):
 560   if (printer_attrs == NULL && !param.pagesize_requested &&
 561       param.booklet == CF_PDFTOPDF_BOOKLET_OFF &&
 562       param.nup.nupX == 1 && param.nup.nupY && 1)
 563     // With no printer capability info and, no given page size, and no
 564     // requirement of all pages being the same size just use the input page sizes
 565     param.cropfit = true;
 566   else if ((val = cupsGetOption("print-scaling", num_options, options)) != NULL)
 567   {
 568     // Standard IPP attribute
 569     if (!strcasecmp(val, "auto"))
 570       param.autoprint = true;
 571     else if (!strcasecmp(val, "auto-fit"))
 572       param.autofit = true;
 573     else if (!strcasecmp(val, "fill"))
 574       param.fillprint = true;
 575     else if (!strcasecmp(val, "fit"))
 576       param.fitplot = true;
 577     else if (!strcasecmp(val, "none"))
 578       param.cropfit = true;
 579     else
 580       param.autoprint = true;

@callegar can you enable debug logging by cupsctl LogLevel=debug2 and attach the /var/log/cups/error_log here as a file?

@zdohnal "print-scaling" is indeed reported by the printer, but for streaming raster formats (PWG or Apple raster), the Client is responsible for scaling the input document. Also, whenever we convert from one format to another (even to PDF), we need to apply the scaling since at that point we don't send the print-scaling option to the printer (because filtered output is assumed to have all of those options applied...)


Pull requests.

Please review the pull requests, and if you think they are worth adding them, please do. @sharmistharanit

I accepted all of your requests. Please check.


refetchQueries not executed after mutation

Hi there,
Right now I'm setting a Watcher through
private val stateQueryWatcher: ApolloQueryWatcher<HomeQuery.Data> = apolloClient.query(stateQuery).watcher()

which is wrapped in an observable. I then call a DialogFragment which upon a confirmation press which then executes a mutation with the addition of
...
.refetchQueries(HomeQuery())

However, the query is not executed and I don't see anything in the logger. The instance of ApolloClient is injected with this setup:
    @Provides
    fun provideApolloClient(@Named(AUTH_BUILDER) httpBuilder: OkHttpClient.Builder, resolver: CacheResolver, cacheFactory: SqlNormalizedCacheFactory): ApolloClient {
        val okHttpClient: OkHttpClient = httpBuilder.build()
        val apolloClient = ApolloClient.builder()
            .serverUrl(BASE_URL)
            .normalizedCache(cacheFactory, resolver)
            .defaultResponseFetcher(ApolloResponseFetchers.NETWORK_FIRST)
            .addCustomTypeAdapter(CustomType.INSTANT, ISO8601Adapter())
            .addCustomTypeAdapter(CustomType.UUID, UUIDAdapter())
            .okHttpClient(okHttpClient)

        if (BuildConfig.DEBUG) {
            apolloClient.logger(ApolloLogger())
        }

        return apolloClient.build()
    }

The CacheKeyResolver is:
class CacheResolver : CacheKeyResolver() {
    override fun fromFieldRecordSet(field: ResponseField, recordSet: Map<String, Any>): CacheKey {
        if (BuildConfig.DEBUG) {
            Timber.d("Cache RecordSet: " + recordSet.toString())
        }
        return formatCacheKey(recordSet["id"] as String?)
    }

    override fun fromFieldArguments(field: ResponseField, variables: Operation.Variables): CacheKey {
        if (BuildConfig.DEBUG) {
            Timber.d("Cache FieldArguments; Variables: " + variables.toString())
        }
        return formatCacheKey(field.resolveArgument("id", variables) as String?)
    }

    private fun formatCacheKey(id: String?): CacheKey {
        return if (id == null || id.isEmpty()) {
            CacheKey.NO_KEY
        } else {
            CacheKey.from(id)
        }
    }
}

and seems to be working fine, the CacheFactory is taken straight from the examples in the README.
How come the query isn't executed? What am I doing wrong?

@sp00ne sorry for the delay
Could you please enable http logs in OkHttp client to see if query really not re-fetched?
We have a test for this case: https://github.com/apollographql/apollo-android/blob/master/apollo-integration/src/test/java/com/apollographql/apollo/internal/QueryRefetchTest.java

@sav007 No worries! Thanks for linking the test, I'll get back to you with the logs

closing in a week unless followup with logs. Thank you

On it! Gonna collate them somewhat and I'll post it soon :)

Closing for now due to inactivity, please feel free to reopen if you have any additional info how to reproduce this issue.


Add put manifests command

This is the last half of the indexing flow. The idea is to be able to chain this command with the extract command to be able to manually index a project.
Basic Usage:
deps extract manifests -d . | deps put manifests -f -

Alternatively, people can write the extracted contents using some other tool and then read them off disk.
comp-internal-proc > deps.json
deps put manifests -f deps.json

There is no deps extract command in 0.3.5 version, and it is not clear how it can be added, because extractors are JS.


DONT MERGE: Expose the ability to disable encryption.

This is necessary to allow client developers to test against emulators.
Unfortunately this flag is marked as @Experimental in grpc. @garrettjonesgoogle, can you check with grpc folks if the experimental flag can be lifted?

It seems like this feature will be GA in grpc 1.12