[discovery.azure] Network interface does not exist for scale sets

What's wrong?
The discovery.azure component is not able to discover vm's from a scale set.
The message is Network interface does not exist.
Steps to reproduce
Use the configuration to discover azure scale set's.
System information
Kubernetes
Software version
Grafana Alloy v1.1.0
Configuration
discovery.relabel "azurerelabel" {
        targets = discovery.azure.azure.targets
        rule {
          source_labels = ["__meta_azure_machine_name"]
          target_label = "instance"
        }
      }

      prometheus.scrape "azurescraping" {
        targets = discovery.relabel.azurerelabel.output
        forward_to = [prometheus.remote_write.prometheusmandev.receiver]
        clustering {
          enabled = true
        }
      }

Logs
ts=2024-06-03T09:06:16.124182502Z level=warn msg="Network interface does not exist" component_path=/ component_id=discovery.azure.azure name=/subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Compute/virtualMachineScaleSets/xxxx/virtualMachines/1/networkInterfaces/xxxx err="network interface does not exist"

It's probably something related to this, but I can not find the reason why the discovery of the network interface is not going as planned. https://github.com/prometheus/prometheus/blob/8a08f452b6a66698baf45f32beac2f1f54d52f20/discovery/azure/azure.go#L462C39-L462C71


Expose config struct always

Now all the backend services has an associated Config type.
In my project I'd prefer to extra all the config into a separated crate (protos) and keep it as thin as enough, i.e., I need:

Refer to configs said S3Config;
Without refer to the whole S3 backend.

The config will later pass to the service crate and really initialize the backend (within the operator). And in this way in the protos crate I can depend on opendal = { version = ".." } without any features.
@Xuanwo what do you think?

a separated crate (protos)

A separate crate might not work since we need to implement Configurator, which is highly coupled to its Builder. Maybe we can expose it in a new module like opendal::services::S3Config by placing it in services/s3_config.rs.


fix: hertz template

What type of PR is this?

fix
What this PR does / why we need it (en: English/zh: Chinese):

en:  fix the problem for hertz template
zh: 修复 hertz 模板定义类型的改变
Which issue(s) this PR fixes:

LGTM


Nuget package contains debugging symbols without source

In the [Publish Symbols] step during a build on our build server, the following error occurs:

##[error]Indexed source information could not be retrieved from 'F:\tfsagent_work\13\s\src[project]\bin\Microsoft.IO.RecyclableMemoryStream.pdb'. Symbol indexes could not be retrieved.

This seems to be caused by the presence of a .pdb file in the Nuget package and the absence of the corresponding source files.

That's correct. Our choices are, I suppose, to simply stop shipping the PDB or figure out how to get public source indexing available. I'll see what options are available for the next release.
The error itself should not be harmful however.

It's mostly harmful in the sense that it aborts and fails the "Publish Symbols" build step.
I think it's not a common practice to include a .pdb in the nuget package anyway, so excluding it would be great.

The best option would probably be to remove the .pdb from the normal NuGet package and publishing a real symbol package to SymbolSource.org instead.

Yep, fair points. I’ll fix our build automation to resolve this when the next publish occurs.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From<EMAIL_ADDRESS>Sent: Thursday, July 27, 2017 8:20 AM
To<EMAIL_ADDRESS>Cc: Chip<EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: Re: [Microsoft/Microsoft.IO.RecyclableMemoryStream] Nuget package contains debugging symbols without source (#49)
The best option would probably be to remove the .pdb from the normal NuGet package and publishing a real symbol package to SymbolSource.org instead.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/Microsoft.IO.RecyclableMemoryStream/issues/49#issuecomment-318394531, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AC4h2w3CqBfkRd8NuHRLA1QbVwEoriG3ks5sSKqygaJpZM4OW2Xz.

You can include the pdb and use pdblink to link it directly to the GitHub source

+1, we had to revert to an old version to get a project working in TFS

+1, are there any other options besides downgrading? I've just updated other packages depending on v1.2.2

In v1.3.0, PDBs have been removed and are published via a .snupkg instead.


Don't send keys in SP Metadata file that you don't want the IdP to use

Don't send the encryption key if you don't want assertions encrypted.  Don't send the signing key if you aren't going to sign your authnrequests.  The IdP will see these as indicators that you want the keys to be used (especially the encrypted assertions).

Coverage increased (+0.006%) to 95.138% when pulling 1980b1925cc0fb8ce77b96b8b7dde1d71a8c98bb on waynewoodfield:conditional-certs into 9274e6bc5601e5114b3fc6668d526a822aba9b66 on onelogin:master.

Coverage increased (+0.006%) to 95.138% when pulling 8e2f1247a13a89c8f305abc64b59334ed602c0fb on waynewoodfield:conditional-certs into 9274e6bc5601e5114b3fc6668d526a822aba9b66 on onelogin:master.

Coverage increased (+0.006%) to 95.138% when pulling c04427cac3a21678a97072590f0c7eeb89038aa6 on waynewoodfield:conditional-certs into 9274e6bc5601e5114b3fc6668d526a822aba9b66 on onelogin:master.

Thanks for the call-out.  We haven't implemented the SLO yet at my company, so I had a blind spot to that.  Added them into the condition now.
I don't actually care whether we send the signing key all the time or not.  The encryption key is the one I mostly cared about, because there's no "wantResponsesEncrypted" property in the SP Metadata, so the only way I know to tell the IdP that I don't want SAMLResponses to be encrypted is to not send an encryption key.

I agree that the encryption part is the most important

I also notice that if getWantNameIdEncrypted is true, encryption key should be also sent.

I've updated this fork to include recommendations by Sixto - the signing key is published unconditionally, and encryption key will still be sent when getWantNameIdEncrypted is true.  If you'd like to use that fork, I can resubmit a pull request.  Otherwise, looking forward to your fix.

Hi @waynewoodfield, I followed what I did on php-saml, adding a boolean to decide when to encrypt or not instead of send the full settings object. This way we keep the back-compatibility.
Thanks for contribute!


PX4 1.6.5 Does not hold heading on Position mode.

It is Plain Airplane Frame 2100
On Position mode the plane does not hold its heading and the wind rotates it tail so we have to make corrections all the time.
On Return mode it flyies in a perfect line.
In the Log I see there is no Yaw SP during Position mode.
While in Return mode it has Yaw SP.
https://logs.px4.io/plot_app?log=dbeb21a4-dcf5-4e2a-8e05-ca591b1c1da5
Any ideas?

Hi Vasil,
FW position control mode only locks onto a heading when your roll and yaw sticks are centered (in the deadzone).
Here you can see the roll setpoint changing with your roll stick movement.

I believe there could be an offset on the remote.
Set a zero offset on the remote and click on copy trims, to be sure it does not come from a soft trim of the Pixhawk.

Not a firmware issue? Please reopen if I'm incorrect.


aws-smithy-runtime 1.1.3 still relies on hyper 0.14

Describe the bug
I tried to upgrade a bunch of AWS dependencies but could not complete as aws-smithy-runtime 1.1.3 still relies on hyper 0.14.
https://crates.io/crates/aws-smithy-runtime/1.1.3/dependencies
Expected Behavior
Rely on latest hyper v1 as the other SDKs do.
Current Behavior

Reproduction Steps

Possible Solution
No response
Additional Information/Context
No response
Version
aws-smithy-runtime = { version = "1.1.3", features = ["connector-hyper-0-14-x", "client"] }

Environment details (OS name and version, etc.)
macOS Montery
Logs
No response

I'm going to close this since it's tracked here #977


Support injectable AWS endpoints and server trust

Presently for air-gapped system we must rebuild Scale to support custom AWS endpoints and inject the public keys to trust these endpoints. Adding the ability to specify environment variables on deployment for a custom endpoints.json and a tarball / zip of public keys in PEM / base64 is needed.

We can use AWS_DATA_PATH to shim in the location of an endpoints.json after retrieval.


Issue with opacity, post update to RC.

I was using custom css for the opacity of active overlay (as per the documentation) as follows:
ai-dialog-overlay.active {
    background-color: black;
    opacity: .5;
}

It was working before I updated to aurelia rc and correspondingly to<EMAIL_ADDRESS> Now, post update, I found two issues. One is already mentioned here, and the other is that the opacity in custom css has no effect as can be seen in the screenshot below. I also found that opacity is set to 1 by an explicit <style></style> . Though I am not sure what was the case before, as I never had this issue, and I never had to check that.
Am I doing something incorrectly here? Or if there is any workaround for this?
Thank you.

@jedd-ahyoung Ping.

@Sayan751 This is happening because the way that the dialog style works has been changed. Style can now be added at dialog configuration time (when you configure the dialog plugin at startup). The reason you're seeing what you're seeing is because the dialog plugin now injects a style element into the body for its own use. This is the correct behavior.
To change this, use the useCSS method in the dialogConfiguration, like so:
export function configure(aurelia) {
  aurelia.use
    .plugin('aurelia-dialog', config => {
      config.useCSS(''myCSSStringHere');
      ...
    });

This will override the default CSS. Note that you'll need to include all of the dialog styles here - partial updates won't work.

@jedd-ahyoung that snippet could do with being added to the documentation or the readme.md

Why is it even using opacity to start with? Wouldn't visibility work? Then we wouldn't have to change the built-in CSS or use an overly-specific selector to change the opacity.

Quick fix for opacity:
ai-dialog-overlay.active {
  background-color: black;
  opacity: .5 !important; // override injected
}

Thanks @shanegray that worked for me since that was the only thing I wanted to override. Note on June 4, 2017 I had to override ux-dialog-overlay.active. I think at some point ai- was changed to ui-
To others, there are some other ways to do this with the API but I can only find references to it in these closed issues not on the doc hub. This trick was quick and simple but not for all.


RuntimeError: Found no NVIDIA driver

Hi,
i tried python demo.py  --source data/example.jpg but i ran into following error:
File "/home/yiwei/dev_ws_ml/src/YOLOPv2/demo.py", line 50, in detect
    model  = torch.jit.load(weights)
  File "/home/yiwei/miniconda3/envs/YOLOPv2/lib/python3.8/site-packages/torch/jit/_serialization.py", line 161, in load
    cpp_module = torch._C.import_ir_module(cu, f, map_location, _extra_files)
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

i only want to try this example image with my cpu and i do not have a GPU installed.
can anyone give me some help?

@Miaoishappening
I think you have to specify the device. By default, demo.py uses GPU.
https://github.com/CAIC-AD/YOLOPv2/blob/5523b2c45329a0315a410374406bc96e48358f63/demo.py#L24
I succeeded to run the demo on CPU by the following command.
python demo.py --source data/example.jpg --device cpu

@Itto1992
Hi, Thanks for helping, but the problem remains the same. The output shows device is set to 'cpu'.
What torch version do you have?
Here is some details of mine, i tried to use python3.7 but result remains the same:
# in YOLOPv2 folder
conda create -n YOLOPv2 python=3.7
pip install -r requirements.txt
python demo.py  --source data/example.jpg --device cpu

my pytorch version is:
>>> import torch
>>> print(torch.__version__)
1.7.0

The output:
Namespace(agnostic_nms=False, classes=None, conf_thres=0.3, device='cpu', exist_ok=False, img_size=640, iou_thres=0.45, name='exp', nosave=False, project='runs/detect', save_conf=False, save_txt=False, source='data/example.jpg', weights='data/weights/yolopv2.pt')
Traceback (most recent call last):
  File "demo.py", line 161, in <module>
    detect()
  File "demo.py", line 50, in detect
    model  = torch.jit.load(weights)
  File "/home/yiwei/miniconda3/envs/YOLOPv2_t/lib/python3.7/site-packages/torch/jit/_serialization.py", line 161, in load
    cpp_module = torch._C.import_ir_module(cu, f, map_location, _extra_files)
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

again the output from pip install -r requirements.txt
Successfully installed MarkupSafe-2.1.1 Pillow-9.2.0 PyYAML-6.0 absl-py-1.2.0 backcall-0.2.0 cachetools-5.2.0 charset-normalizer-2.1.1 cycler-0.11.0 dataclasses-0.6 decorator-5.1.1 fonttools-4.37.4 future-0.18.2 google-auth-2.12.0 google-auth-oauthlib-0.4.6 grpcio-1.49.1 idna-3.4 importlib-metadata-5.0.0 ipython-7.34.0 jedi-0.18.1 kiwisolver-1.4.4 markdown-3.4.1 matplotlib-3.5.3 matplotlib-inline-0.1.6 numpy-1.21.6 oauthlib-3.2.1 opencv-python-<IP_ADDRESS> packaging-21.3 pandas-1.3.5 parso-0.8.3 pexpect-4.8.0 pickleshare-0.7.5 prompt-toolkit-3.0.31 protobuf-3.19.6 psutil-5.9.2 ptyprocess-0.7.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pygments-2.13.0 pyparsing-3.0.9 python-dateutil-2.8.2 pytz-2022.4 requests-2.28.1 requests-oauthlib-1.3.1 rsa-4.9 scipy-1.7.3 seaborn-0.12.0 six-1.16.0 tensorboard-2.10.1 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 thop-0.1.1.post2209072238 torch-1.7.0 torchvision-0.8.1 tqdm-4.64.1 traitlets-5.4.0 typing-extensions-4.3.0 urllib3-1.26.12 wcwidth-0.2.5 werkzeug-2.2.2 zipp-3.8.1

If you noticed any different, please tell me.
Thx. :D

sorry , i have no computer in hand, but  i suggest if you want to run the demo.py using cpu, you can try the web demo from this url link .

May be you can try this:
torch.jit.load(buffer, map_location='cpu')

Hi,
Thanks for replying! That really helped.
With this torch.jit.load(weights, map_location='cpu') it works fine.
And i also changed the default --device to "cpu"
the output still warns me, but delivers the result.
Namespace(agnostic_nms=False, classes=None, conf_thres=0.3, device='cpu', exist_ok=False, img_size=640, iou_thres=0.45, name='exp', nosave=False, project='runs/detect', save_conf=False, save_txt=False, source='data/example.jpg', weights='data/weights/yolopv2.pt')
/home/yiwei/miniconda3/envs/YOLOPv2_t/lib/python3.7/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx (Triggered internally at  /pytorch/c10/cuda/CUDAFunctions.cpp:100.)
  return torch._C._cuda_getDeviceCount() > 0
/home/yiwei/miniconda3/envs/YOLOPv2_t/lib/python3.7/site-packages/torch/nn/functional.py:3063: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.
  "See the documentation of nn.Upsample for details.".format(mode))
384x640 Done. (1.116s)
 The image with the result is saved in: runs/detect/exp8/example.jpg
inf : (1.1156s/frame)   nms : (0.0020s/frame)
Done. (1.269s)


Changed Or path choosing

resolves #677
The Or parser will now choose a path that succeeded first and if both fail it will try to figure out witch error is better suited

Oh, this is for 0.9? Hmm...
I am somewhat less inclined to merge this because 0.9 is not maintained any longer, bar fixes for significant bugs. Is there a particular reason that you're using 0.9 instead of 1.0?

The first version is still in alpha and is not the default in cargo so I was using 0.9.3 :D
If I understand correctly the current implementation of Or in the main branch it's just a syntax sugar for choice, which returns first result that parses with success, so there is no need to change anything.
Is the newest version stable enough and does it have all the functionalities to use instead of 0.9? I'm looking forward to it because of the performence and dropping the Rc

Is the newest version stable enough and does it have all the functionalities to use instead of 0.9?

I'd say so, yes. There are little changes to come that are technically breaking, but only in the most abstract sense: Almost all parsers written against 1.0-alpha should compile or compile with only very minor changes come 1.0 stable. The design is maybe 85% there, and the features that exist now aren't going anywhere. I'm avoiding a stable release for now purely because there are some minor API burrs still to sand down.


LTC: Use a different GH commit action

This avoids the errors when jobs conflict with each other because the old action didn’t pull/merge before pushing
I tested this over in the branch zachlipton/ltc-new-commit and it seems to work as expected

The secrets would be in https://github.com/COVID19Tracking/covid-tracking-data/settings/secrets/actions if we had any, but ${{ secrets.GITHUB_TOKEN }} is a weird magical secret that GH Actions wills into existence when it runs.


Get Expanded row data

may be was requested before..
This lib doesn't have responsive mode, so I had to make it myself by adding some classes and styles.
With the help of mediaScreen requests i hide some columns and show hidden collumns info in expanded row, but there is one issue: I don't have access to this row, until it appears and even in method onExpand. It has display: table-cell and it automaticcaly gets colspan that is equal to number of columns in the table (and some of them are "display: none" in my case).. So, cause i don't have access - i can't change this colspan value and cause of that width of this expanded row is bigger than width of all other rows.. So, can u give me any advice on how to fix all that?
I also tryed to change expanded row styles by giving it "dispay: block or flex" instead of table-cell, but it causes some freezes when it closes.
I hope there will be Responsive mode someday, like in DataTables on pure JS
Thanks

I agree the responsive is an issue so far.  In term of your case, this case seems too complicated and I can't totally understand what you done so far. Would u please give me a small and simple code on codesandbox?, so that I can help u.
Anyway, your case sounds complicated, not sure if I can help u or not


Digital input node from Siemens cusing Node-Red to abort

I have a configuration where 6 digital inputs are connected to 6 digital outputs.
When I turn on and off the digital output, I read the signal in node red using the Digital input node provided from Siemens.
But after some minutes of running this flow, Node-Red aborts for some reason !!

I replaced these digital input nodes with exec nodes with "Mraa" commands in them. and now it's working fine.

Example image V1.1.1

Can you re-check with V1.2.1 as well? Note that this requires a firmware update as well.

Where can I find the V1.2.1 ?

Not yet uploaded apparently... Please request via forum, direct message to bergmanu. Both the image and the firmware update package.

I suppose this was resolved by now.


🚀 [New Component_WebApp] -  Want to add toggle button to change the theme of the website white to black

Describe the need for this component. ✍🏻
Want to add toggle button to change the theme of the website white to black.
Describe briefly how you would implement and plan to use this component.
Some steps to implement this new component-
1. Add toggle button on navbar
2. when some click  on the toggle button the theme of the website is change
3. Step 3

Screenshots Example (if applicable)

Additional information
No response
Contributor terms

[X] I agree to follow the Contributing Instructions

Hey, I can add this feature:
My approach: First I will use the React's 'useState' hook to track the current state of the website. In the src folder I can add a state file in which I will define a setMode function which goes like this-
setMode: (state) => {
state.mode = state.mode === "light" ? "dark" : "light";
This can be imported in the Home.js file on the navbar as a toggle switch and its state can be changed using onClick function.
Can you assign me this bug?


Improve code coverage for operation.go

Describe the PR
Improve code coverage for operation.go
Relation issue
None.
Additional context
No

Codecov Report

Merging #454 into master will increase coverage by 2.46%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #454      +/-   ##
==========================================
+ Coverage   83.27%   85.74%   +2.46%
==========================================
  Files           7        7
  Lines        1459     1459
==========================================
+ Hits         1215     1251      +36
+ Misses        138      119      -19
+ Partials      106       89      -17

Impacted Files
Coverage Δ

operation.go
94.97% <0%> (+9.04%)
:arrow_up:

Continue to review full report at Codecov.

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


rerun_filter called twice per test

I am finding that the rerun_filter function is called twice per test.
Version: 3.6.1
Pytest version: 5.4.3
Here is some sample code to recreate the problem:
def my_rerun_filter(*args):
    log.debug("ran filter")
    return True

runs = 0
class TestFlaky:

    @flaky(max_runs=10, rerun_filter=my_rerun_filter)
    def test_4_fails(self):
        global runs
        runs += 1
        log.debug("ran test {}".format(runs))
        if runs < 5:
            raise ValueError()

This logs ran filter 8 times even though the test only runs 4 times. A stack trace shows that the flaky_pytest_plugin.py will call self._should_rerun_test twice: once at line 92 and once at line 101.
Relevant stack traces:
File "/Users/rwoo/rwoo/lib/python3.6/site-packages/flaky/flaky_pytest_plugin.py", line 92, in pytest_runtest_protocol
    self.runner.pytest_runtest_protocol(item, nextitem)
  File "/Users/rwoo/rwoo/lib/python3.6/site-packages/_pytest/runner.py", line 85, in pytest_runtest_protocol
    runtestprotocol(item, nextitem=nextitem)
  File "/Users/rwoo/rwoo/lib/python3.6/site-packages/_pytest/runner.py", line 100, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/Users/rwoo/rwoo/lib/python3.6/site-packages/flaky/flaky_pytest_plugin.py", line 141, in call_and_report
    if self._will_handle_test_error_or_failure(item, name, err):
  File "/Users/rwoo/rwoo/lib/python3.6/site-packages/flaky/_flaky_plugin.py", line 152, in _will_handle_test_error_or_failure
    return self._should_handle_test_error_or_failure(test) and self._should_rerun_test(test, name, err)

File "/Users/rwoo/rwoo/lib/python3.6/site-packages/flaky/flaky_pytest_plugin.py", line 101, in pytest_runtest_protocol
    should_rerun = not skipped and self.add_failure(item, call_info.excinfo)
  File "/Users/rwoo/rwoo/lib/python3.6/site-packages/flaky/flaky_pytest_plugin.py", line 327, in add_failure
    return self._handle_test_error_or_failure(item, error)
  File "/Users/rwoo/rwoo/lib/python3.6/site-packages/flaky/_flaky_plugin.py", line 190, in _handle_test_error_or_failure
    if self._should_rerun_test(test, name, err):

Hello,
Did you find any resolution to this? Even I am facing similar issue.

I ran into this as well. It might be useful to at least document this behaviour near the delay_rerun example in README.rst.

Just ran into this also.  Any status on the fix?


Reduce number of database queries

We have a lot of database queries going on, with N+1 problems all over the place. We can fix this.

More to do as time goes on, but we have the tools now to keep this in a good state.


fix(terragrunt): report correct region for us region

Fixes #15.

Closing, we want to use a different strategy to accomplish this


[Spring Cloud] Add gateway related methods

Add implementation of gateway update, show, clear, gateway custom-domain show, list, update, unbind, gateway route-config show, list, create, update and remove.
The pr is part of main...VSChina:enterprise.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

Spring Cloud

Is this part of https://github.com/Azure/azure-cli-extensions/compare/main...VSChina:enterprise ? If so, please link these relevant PRs in the PR description

#4294


Property "Context.Properties" is not available since SDK 2

As I understand - it is supposed to be used "Context.GlobalProperties" or specific initializers in ApplicationInsight.config (xml, json), correct?
"...removed interface IContextInitializer" https://azure.microsoft.com/is-is/blog/save-money-with-application-insights-web-sdk-2-0/
"Telemetry Initializers" http://apmtips.com/blog/2014/12/01/telemetry-initializers/
"Do Not Use Context Initializers" http://apmtips.com/blog/2015/06/09/do-not-use-context-initializers/

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

ID: 26b3e91f-c240-fffa-6ae9-d676deb7ad4c
Version Independent ID: bbfa099e-3ed6-09ea-fbde-f2a3ed13139a
Content: Filtering and preprocessing in the Azure Application Insights SDK
Content Source: articles/azure-monitor/app/api-filtering-sampling.md
Service: application-insights
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@satr Thank you for the feedback! We are investigating this and will get back to you shortly.

@satr Thank you for sharing the feedback.
Using Context.properties should still work but obsolete with latest SDK Version. This  particular GitHub issue has additional details on it. Please have a look.
Agree on the docuementation update needed for it, will assign this issue to our document Author @mrbullwinkle to take this forward.

Thank you.


Replicator should not stop by missing revisions

https://github.com/couchbase/couchbase-lite-java-core/blob/release/1.1.0/src/main/java/com/couchbase/lite/replicator/PullerInternal.java#L314
Requested revision might not exist on the server. And Sync Gateway returns error. in this error case, the client should not stop replicator.

@hideki Pls confirm if this below logs points to the same puller issue? When can we expect the fix? Do we need to start the puller again in this case? pls advice
[11/23 09:02:34.041] [13] Sync: downloadsToInsert.waitForPendingFutures()
[11/23 09:02:34.043] [13] Sync: [fireTrigger()] => WAITING_FOR_CHANGES
[11/23 09:02:34.047] [3] Sync: firing trigger: WAITING_FOR_CHANGES
[11/23 09:02:34.049] [3] Sync: [onEntry()] RUNNING => IDLE
[11/23 09:02:34.051] [3] Sync: State transition: RUNNING -> IDLE (via WAITING_FOR_CHANGES).  this: com.couchbase.lite.replicator.PullerInternal@1568dbe6
[11/23 09:02:34.053] [3] Sync: IDLE: triggerStop() com.couchbase.lite.CouchbaseLiteException
[11/23 09:02:34.052] [13] Sync: [waitForPendingFutures()] END - thread id: 5855
[11/23 09:02:34.058] [3] Sync: [fireTrigger()] => STOP_GRACEFUL
[011/23 09:002:34.060] [3] Sync: firing trigger: STOP_GRACEFUL
[11/23 09:02:34.062] [3] Sync: [onExit()] IDLE => STOPPING
[11/23 09:02:34.064] [3] Sync: State transition: IDLE -> STOPPING (via STOP_GRACEFUL).  this: com.couchbase.lite.replicator.PullerInternal@1568dbe6
[11/23 09:02:34.066] [3] Sync: [onExit()] IDLE => STOPPING
[11/23 09:02:34.068] [3] Sync: [onEntry()] IDLE => STOPPING
[11/23 09:02:34.070] [3] Sync: stopGraceful()
[11/23 09:02:34.071] [3] Sync: PullerInternal.stopGraceful() started
[11/23 09:02:34.075] [3] Sync: State transition: IDLE -> STOPPING (via STOP_GRACEFUL).  this: com.couchbase.lite.replicator.PullerInternal@1568dbe6
[11/23 09:02:34.077] [19] Sync: stopping change tracker
[11/23 09:02:34.079] [19] ChangeTracker: com.couchbase.lite.replicator.ChangeTracker@31a34079: Changed tracker asked to stop
[11/23 09:02:34.080] [19] ChangeTracker: com.couchbase.lite.replicator.ChangeTracker@31a34079: Changed tracker aborting request: org.apache.http.client.methods.HttpPost@2d2e18f8
[11/23 09:02:34.083] [19] Sync: stopped change tracker
[11/23 09:02:34.083] [14] ChangeTracker: com.couchbase.lite.replicator.ChangeTracker@31a34079: Change tracker run loop exiting
[11/23 09:02:34.084] [19] Sync: [fireTrigger()] => STOP_IMMEDIATE
[11/23 09:02:34.085] [14] ChangeTracker: com.couchbase.lite.replicator.ChangeTracker@31a34079: Change tracker in stopped()
[11/23 09:02:34.085] [19] Sync: PullerInternal stopGraceful.run() finished
[11/23 09:002:34.086] [14] ChangeTracker: com.couchbase.lite.replicator.ChangeTracker@31a34079: Change tracker calling changeTrackerStopped, client: com.couchbase.lite.replicator.PullerInternal@1568dbe6
[11/23 09:02:34.087] [3] Sync: firing trigger: STOP_IMMEDIATE
[11/23 09:02:34.089] [3] Sync: [onEntry()] STOPPING => STOPPED
[11/23 09:02:34.091] [3] Sync: com.couchbase.lite.replicator.PullerInternal@1568dbe6: saveLastSequence() called. lastSequence: 384388 remoteCheckpoint: null
[11/23 09:02:34.094] [3] Sync: com.couchbase.lite.replicator.PullerInternal@1568dbe6: start put remote _local document.  checkpointID: 75fbbc752adcf39fc1be400480987faaf7e8bf01 body: {lastSequence=384388}
[11/23 09:02:34.096] [3] Sync: [sendAsyncRequest()] PUT => https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.097] [3] Sync: com.couchbase.lite.support.RemoteRequestRetry@100c61d1: RemoteRequestRetry created, url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.098] [3] Sync: com.couchbase.lite.support.RemoteRequest@13b98436: RemoteRequest created, url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.100] [3] Sync: [fireTrigger()] => RESUME
[11/23 09:02:34.100] [15] Sync: com.couchbase.lite.support.RemoteRequest@13b98436: RemoteRequest run() called, url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:034.101] [3] Sync: com.couchbase.lite.replicator.PullerInternal@1568dbe6: clearDbRef() called
[11/23 09:02:34.102] [20] Sync: [PullerInternal.waitForPendingFutures()] STARTED - thread id: 5905
[11/023 009:002:034.102] [3] CBLite: com.couchbase.lite.Database[/data/data/com.xyz.ui/files/dbdata.cblite]: setLastSequence() called with lastSequence: 384388 checkpointId: 75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.102] [15] Sync: com.couchbase.lite.support.RemoteRequest@13b98436: RemoteRequest calling httpClient.execute, url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.103] [20] Sync: batcher.waitForPendingFutures()
[11/23 09:02:34.106] [15] Sync: com.couchbase.lite.support.RemoteRequest@13b98436: RemoteRequest calling httpClient.execute, client: org.apache.http.impl.client.DefaultHttpClient@1aa7cca4 url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.106] [20] Sync: waitPendingFuturesCompleted()
[11/23 09:02:34.110] [20] Sync: calling future.get() on com.couchbase.lite.support.RemoteRequestRetry@100c61d1
[11/23 09:02:34.116] [3] Sync: com.couchbase.lite.replicator.PullerInternal@1568dbe6: clearDbRef() setting db to null
[11/23 09:02:34.205] [15] Sync: com.couchbase.lite.support.RemoteRequest@13b98436: RemoteRequest called httpClient.execute, url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.209] [15] Sync: com.couchbase.lite.support.RemoteRequest@13b98436: RemoteRequest finally block.  url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.210] [15] Sync: com.couchbase.lite.support.RemoteRequest@13b98436: RemoteRequest calling respondWithResult.  url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01, error: null
[11/23 09:02:34.211] [15] Sync: com.couchbase.lite.support.RemoteRequestRetry$1@260447d3: RemoteRequestRetry inner request finished, url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.212] [15] Sync: com.couchbase.lite.support.RemoteRequestRetry$1@260447d3: RemoteRequestRetry was successful, calling callback url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.213] [15] Sync: com.couchbase.lite.replicator.ReplicationInternal$7@1de70f10: put remote _local document request finished.  checkpointID: 75fbbc752adcf39fc1be400480987faaf7e8bf01 body: {lastSequence=384388}
[11/23 09:02:34.214] [15] Sync: com.couchbase.lite.replicator.ReplicationInternal$7@1de70f10: Database is null or closed, not calling db.setLastSequence()
[11/23 09:02:34.215] [15] Sync: com.couchbase.lite.support.RemoteRequest@13b98436: RemoteRequest run() finished, url: https://user1:xyz@bsyncg.xyzhsqc.com:443/dbdata/_local/75fbbc752adcf39fc1be400480987faaf7e8bf01
[11/23 09:02:34.216] [20] Sync: done calling future.get() on com.couchbase.lite.support.RemoteRequestRetry@100c61d1
[11/23 09:02:34.217] [20] Sync: downloadsToInsert.waitForPendingFutures()
[11/23 09:02:34.218] [20] Sync: [fireTrigger()] => WAITING_FOR_CHANGES
[11/23 09:02:34.218] [3] Sync: State transition: STOPPING -> STOPPED (via STOP_IMMEDIATE).  this: com.couchbase.lite.replicator.PullerInternal@1568dbe6
[11/23 09:02:034.219] [20] Sync: [waitForPendingFutures()] END - thread id: 5905
[11/023 09:02:34.220] [3] Sync: changeTrackerStopped.  lifecycle: CONTINUOUS
[11/23 09:02:34.220] [3] Sync: Change tracker stopped because replicator is stopping or stopped.
[11/23 09:02:34.221] [3] Sync: firing trigger: RESUME
[11/23 09:02:34.222] [3] Sync: firing trigger: WAITING_FOR_CHANGES
[11/23 09:02:35.210] [0] Database: main Begin transaction (level 0)
thanks
Nithin

Hi @NitzDKoder,
This issue should be fixed by v1.2.0 release.
From your log information, I can not suspect why replicator stopped. Could you debug into replicator code?

        // But, for Core Java, some of codes wait IDLE state. So this is reason to wait till
        // state becomes IDLE.
        if(Utils.isPermanentError(error) && isContinuous()){
            Log.d(Log.TAG_SYNC, "IDLE: triggerStop() " + error.toString());
            triggerStop();
        }

"// But, for Core Java, some of codes wait IDLE state. So this is reason to wait till
// state becomes IDLE."
Thats how the java code work?
[11/24 04:04:08.905] [16] Sync: Error pulling remote revision
org.apache.http.client.HttpResponseException: Not Found
at com.couchbase.lite.support.RemoteMultipartDownloaderRequest.executeRequest(RemoteMultipartDownloaderRequest.java:78)
at com.couchbase.lite.support.RemoteMultipartDownloaderRequest.run(RemoteMultipartDownloaderRequest.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
[11/24 04:04:08.925] [16] Sync: com.couchbase.lite.replicator.PullerInternal@f844e5c: giving up on {suser1_user.doc #206-ece64064c27345069c5da614f015dec6}: org.apache.http.client.HttpResponseException: Not Found
Thanks
Nithin

@NitzDKoder,
Honestly speak, CBL Java/Android does not handle all error scenarios correctly. And, to avoid early replication give up, CBL Java/Android keeps trying to replicate all docs till its state becomes IDLE. We need to fix issue one by one.
404 for particular revision could be happened. Replication should not be stopped by it.

@hideki pls confirm if this fixed in master branch?
https://github.com/couchbase/couchbase-lite-java-core/blob/master/src/main/java/com/couchbase/lite/replicator/PusherInternal.java
I see major change in this class..
do not find https://github.com/couchbase/couchbase-lite-java-core/blob/release/1.1.0/src/main/java/com/couchbase/lite/replicator/PullerInternal.java#L314
Just want to run on our issue..
Thanks
Nithin

Hi @NitzDKoder,
I am not sure what your question is. First one is PusherInternal.java (code for push replication) and second one is PullerInternal.java (code for pull replication).
Could you please update your question?

@hideki wrong links were posted..pls see question updated..

Hi @NitzDKoder,
I believe this issue is not fixed yet.
You could fix this by modifying Utils.isTransientError() or PullerInternal.revisionFailed()
https://github.com/couchbase/couchbase-lite-java-core/blob/master/src/main/java/com/couchbase/lite/replicator/PullerInternal.java#L583
https://github.com/couchbase/couchbase-lite-java-core/blob/master/src/main/java/com/couchbase/lite/util/Utils.java#L71

related ticket: #723

Jenkins Project URL http://qa.sc.couchbase.com/view/mobile/job/sync-gateway-mobile-functional-tests-android-cb


[iOS] added property to turn off data store handling table operations

Used for custom implementation of data insertion and requiring the sync context to only handle server message creation
This is the same change as #707 downloaded as a git patch and applied to the dev branch.

Hi @damienpontifex, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, AZPRBOT;

@phvannor same as previous commit except merging into dev branch for integration with an existing project still using the origin Mobile Services


为何引入jquery.lazyload报错

lazyload.js:82 Uncaught TypeError: Cannot set property 'settings' of undefined
at LazyLoad (lazyload.js:82)
at Object. (greet.js:9)
at t.exec (sea.js:2)
at t.e.callback (sea.js:2)
at t.onload (sea.js:2)
at t.load (sea.js:2)
at d (sea.js:2)
at HTMLScriptElement.f (seajs-css.js:1)

https://www.cnblogs.com/yzadd/p/6494607.html
<EMAIL_ADDRESS>发件人： printing chen
发送时间： 2018-03-18 21:55
收件人： seajs/seajs
抄送： Subscribed
主题： [seajs/seajs] 为何引入jquery.lazyload报错 (#1738)
lazyload.js:82 Uncaught TypeError: Cannot set property 'settings' of undefined
at LazyLoad (lazyload.js:82)
at Object. (greet.js:9)
at t.exec (sea.js:2)
at t.e.callback (sea.js:2)
at t.onload (sea.js:2)
at t.load (sea.js:2)
at d (sea.js:2)
at HTMLScriptElement.f (seajs-css.js:1)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

thanks


LiveObjectService - ClassCastException when using multiple ClassLoaders

### Expected behavior
RedissonLiveObjectService creates proxy objects that are instanceof the given entity class.
Actual behavior
When using a different ClassLoader when loading the Class-To-Proxy for an LiveObject than when loading the Redission library all proxies creations will throw a ClassCastException.
Caused by: java.lang.ClassCastException: ch.aquint.MyLiveObject$ByteBuddy$EG1hQiP9 cannot be cast to ch.aquint.MyLiveObject
        at ch.aquint.MyService.initService(MyService.java:20) ~[main/:na]

This is most likely due to the line. https://github.com/redisson/redisson/blob/46e8e8846a260999b6706e331b40943de0ffb813/redisson/src/main/java/org/redisson/RedissonLiveObjectService.java#L693
I think redission should use entityClass.getClassLoader() instead to make sure that the generated proxy object will be assignable to the given entity class.
(As soon as spring-boot-devtools is removed from the classpath and there is only 1 ClassLoader around everything works perfectly fine)
Steps to reproduce or test case
I've created a minimal repository that shows the error simply by running ./gradlew run in the project.
https://github.com/Aqu1nt/redission-classcastexception
If https://github.com/Aqu1nt/redission-classcastexception/blob/master/build.gradle#L18 is removed everything works fine.
Redis version
4.0.10
Redisson version
3.7.3
Redisson configuration
@Bean
public RedissonClient redissonClient() {
  return Redisson.create();
}

Fixed. Could you test it with latest version from 3.0.0 branch?

Hi, thanks for the quick response.
I just tried it with the 3.0.0 branch and the issue seems fixed. 👍

Thank you!


Extended upgrade guide

Overview of what has changed and what needs to be done
Step-by-step guide
List commands to run
#3021
Possibly recording of upgrade webinar

Some ideas here: https://tube.tugraz.at/paella/ui/watch.html?id=787651f0-482a-49b2-a3d7-966cf5af120d

include: move to a new server/installation
rollback?


lunyx.net is down

subj

Looking into it.

Is it causing issues with meter start?  I actually haven't tested this scenario before.

Yes, user reported that meter was not showing while checking for updates (not sure whether it will end doing it by timeout or not).

Seems like it'll open when it times out.  Just tested it.  Not sure what's going on with the server, but it might take a day, and in the worst case, I will have to find a new host.

It's up now.


open-vocabulary object detection with MViT

Thanks for the great work!
In the paper, the authors use MViT to extract high-quality class-specific proposals using image-level labels based on its great generalization ability. Thus, a straightforward idea is doing open-vocabulary detection with MViT directly. Similar to OV-DETR, we can use prompts like 'every {category}' and forward the prompts multiple times to get top-score predictions for each class. Thus, we can perform open-vocabulary with MViT. However, my experiments show extremely poor results: 5.4 AP50 novel and 3.8 AP50 base. I'm confused about the results. Could you give me some advice?

Hi @fushh,
Thank you for sharing your insights on using MViT for open-vocabulary detection. From your description, it seems you are encountering challenges in achieving high performance, particularly in AP50 metrics for both novel and base classes.
It is crucial to understand that MViT models like MAVL, and MDETR primarily focus on grounding the text to corresponding objects in the image. When presented with a category that exists in the image, they excel at identifying and grounding it. However, when the category is not present, the model might still assign high confidence scores to irrelevant regions. This misalignment is likely contributing to the poor performance you observed.
Some suggestions to improve the results:

One approach is to limit the model queries to only the classes known to be present in the image. For instance, if you're certain that the image contains dogs and umbrellas, you would use prompts like "Every dog" and "Every umbrella". This method helps in reducing false positives, as shown in the attached example. By focusing only on relevant categories, you improve the precision of the model, which is crucial in object detection where both accurate detections and avoiding false positives are important. For example, If you have a caption describing the image - one can assume the possible objects present in the image based on the caption.

Another strategy is to prioritize recall over precision. By doing so, you focus on the model's ability to detect all relevant objects without being overly penalized for incorrect class predictions. This shift in metric focus can provide a more balanced view of the model's performance in open-vocabulary settings.

Lastly, you can try to visualize the class-specif proposals from MViT. Understanding why certain incorrect predictions occur can guide further refinements in model training or prompt design.

Hope this helps. Thank you.


Titles not escaped properly break generation

Description
As title says, some titles will break the tutorial generation script:

This is a `title`
This is a title()
Characters disallowed in code, such as &

I propose we introduce a new field in the metadata - a tutorial ID, or slug, which will be unique to the section the tutorial is in, while keeping the title as a normal, quoted string to be displayed on the website.

@leohhhn You must escape this kind of symbols with \


Support Space Delimited Logs

to: @ryandeivert
cc: @airbnb/streamalert-maintainers
size: small
Background
When on-boarding space delimited logs, I ran into a bug where a configured space delimiter would load as unicode and not as a str, which caused an error in the CSV library.
Changes

Cast all delimiters as strings
Add a unit test

Testing
Unit testing!!!!1

Coverage remained the same at 97.61% when pulling 5bd3e9ccc8c4d2177250618077eac390459b00db on jacknaglieri-csv-parser-bug-fix into aff1264c3eaa77898dfc3994e467fc97ffddc7b0 on master.


Some Microsoft Segoe UI Emoji emojis look off

Here is a rather extereme example:

For most other cases it's not there / less extreme, but something is still off. Here is how it's supposed to look:

I still have to figure out whether it's a ttf-parser or a font2svg bug. My plan is to try to implement font2svg for skrifa and see whether the issue exists there as well, in which case it's most likely due to the gradient limitations in SVG.

Yes, we have to check for Sweep gradients first.

Can be closed now. 😄


Add M1 version for minikube

Signed-off-by: Richard Gee<EMAIL_ADDRESS>Description
Used a similar BinaryTemplate pattern to that used elsewhere which should enable M1 machines to download the -darwin-arm64 version of minikube.
Motivation and Context

[x] I have raised an issue to propose this change, which has been given a label of design/approved by a maintainer (required)
Fixes #698

How Has This Been Tested?
Ran make e2e as per contributing guide
Ran make build to test on darwin-amd64:
% make build
go build

% ./arkade version
            _             _
  __ _ _ __| | ____ _  __| | ___
 / _` | '__| |/ / _` |/ _` |/ _ \
| (_| | |  |   < (_| | (_| |  __/
 \__,_|_|  |_|\_\__,_|\__,_|\___|

Open Source Marketplace For Developer Tools

Version: dev
Git Commit:

🐳 arkade needs your support, learn more: https://my.arkade.dev

% ./arkade get minikube
Downloading: minikube
2022/06/11 20:52:27 Looking up version for minikube
2022/06/11 20:52:27 Found: v1.25.2
Downloading: https://github.com/kubernetes/minikube/releases/download/v1.25.2/minikube-darwin-amd64
68.67 MiB / 68.67 MiB [----------------------------------------------------------------------] 100.00%
/var/folders/3w/tv6429v51kl_61rd1fr25sgm0000gq/T/minikube-darwin-amd64 written.
2022/06/11 20:52:30 Looking up version for minikube
2022/06/11 20:52:30 Found: v1.25.2
2022/06/11 20:52:30 Copying /var/folders/3w/tv6429v51kl_61rd1fr25sgm0000gq/T/minikube-darwin-amd64 to <location>

Wrote: <location>/minikube (72MB)

# Add arkade binary directory to your PATH variable
export PATH=$PATH:$HOME/.arkade/bin/

# Test the binary:
<location>/minikube

# Or install with:
sudo mv <location>/minikube /usr/local/bin/

🐳 arkade needs your support, learn more: https://my.arkade.dev

Request that @mikaoelitiana checks out this change and build / tests locally before feeding back on this PR
Are you a GitHub Sponsor yet (Yes/No?)

[ ] Yes
[x] No

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Documentation

[ ] I have updated the list of tools in README.md if (required) with ./arkade get -o markdown
[ ] I have updated the list of apps in README.md if (required) with ./arkade install --help

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I've read the CONTRIBUTION guide
[x] I have signed-off my commits with git commit -s
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Thank you for the PR Richard. Are there unit test that can be updated for this or is the Binary part not covered elsewhere?

Thanks for the pointer.  There were no tests for minikube, but there are now.
All urls in the new test have been tested by downloading locally.  And the new test passes.


unexpected keyword argument 'capture_output' on startup

Hey. First of all: many thanks for the effort to keep software free and open source :heart:
In contrast to insomniac I have an issue on startup the app and I can't find the point to fix it:
(.venv) ➜  bot git:(master) python3 run.py --blogger-followers kwerfeldein --device ce01171159e094490c
[11/22 15:33:06]     INFO | GramAddict 1.0.4
[11/22 15:33:06]     INFO | Loading plugins . . .
[11/22 15:33:06]     INFO |   - ActionUnfollowFollowers: This plugin handles the functionality of unfollowing your followers
[11/22 15:33:06]     INFO |   - CoreArguments: This plugin simply adds core arguments
[11/22 15:33:08]     INFO |   - DataAnalytics: Generates a PDF analytics report of specified username session data
[11/22 15:33:08]     INFO |   - InteractBloggerFollowers: This plugin handles the functionality of interacting with a bloggers followers
[11/22 15:33:08]     INFO |   - InteractHashtagLikers: This plugin handles the functionality of interacting with a bloggers followers
[11/22 15:33:08]     INFO | Instagram version: not found
[11/22 15:33:08]     INFO | -------- START: 2020-11-22 15:33:08.220735 --------
[11/22 15:33:08]     INFO | Open Instagram app
Traceback (most recent call last):
  File "run.py", line 3, in <module>
    GramAddict.run()
  File "/home/julian/d/bot/GramAddict/__init__.py", line 154, in run
    open_instagram(device_id)
  File "/home/julian/d/bot/GramAddict/core/utils.py", line 80, in open_instagram
    cmd_res = subprocess.run(cmd, capture_output=True, shell=True, encoding="utf8")
  File "/usr/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'

When I list the connected devices, it shows me my phone
(.venv) ➜  bot git:(master) adb devices
List of devices attached
ce01171159e094490c	device

The screen is active when I start the script. The dependencies are installed.
Can anyone give me a hint how to solve it?

Not gonna name any names, but it looks like someone snuck in a python 3.7 exclusive feature without bumping the python version requirement of the project. But realistically, we should be supporting 3.6 anyway.
So there’s a couple ways to resolve this:

You could update to python 3.7 or later. It looks like you are running Linux so that shouldn’t be too hard. It’s also not really a bad idea either.
We can work with you to adjust the code and test 3.6 compatibility. We’ll likely need to adjust a few lines so will probably have to send you a new file for testing.

If you want to do # 2 or if you need help with # 1, go ahead and join our discord server and open up a ticket. We’ll make sure you get set up. 😄
Sorry for the problem!

Hey @philip-ulrich thank you :) For sure I can help you with choice #2.

Hey, sorry guys. My bad. The thing is that I was always testing with python 3.8 and trusting pyflakes to analyse the code for possible incompatibilties. We have an action for python 3.6, 3.7 and 3.8, so I'd expect if I introduced something not supported, pyflakes would catch it. Anyway, thanks for reporting, @jlntrt
Feel free to push a fix into develop branch if you want, or wait for us to fix it.

Many thanks to @arthurspa for the PR #93
This fixes the issue :)
(.venv) ➜  bot git:(fix-92-unexpected-capture-output-py36) python3 run.py --blogger-followers kwerfeldein --device ce01171159e094490c
[11/22 21:04:29]     INFO | GramAddict 1.0.5
[11/22 21:04:29]     INFO | Loading plugins . . .
[11/22 21:04:29]     INFO |   - ActionUnfollowFollowers: This plugin handles the functionality of unfollowing your followers
[11/22 21:04:29]     INFO |   - CoreArguments: This plugin simply adds core arguments
[11/22 21:04:30]     INFO |   - DataAnalytics: Generates a PDF analytics report of specified username session data
[11/22 21:04:30]     INFO |   - InteractBloggerFollowers: This plugin handles the functionality of interacting with a bloggers followers
[11/22 21:04:30]     INFO |   - InteractHashtagLikers: This plugin handles the functionality of interacting with a hashtags likers
[11/22 21:04:30]     INFO |   - LikeFromURLs: This plugin handles the functionality to likes all post from url reading a plaintext file
[11/22 21:04:30]     INFO | Instagram version: not found
[W 201122 21:04:30 __init__:203] atx-agent has something wrong, auto recovering
[D 201122 21:04:30 __init__:286] device ce01171159e094490c is online
[I 201122 21:04:31 init:155] uiautomator2 version: 2.11.2
[11/22 21:04:33]     INFO | -------- START: 2020-11-22 21:04:33.602267 --------
[11/22 21:04:33]     INFO | Open Instagram app
[D 201122 21:04:36 __init__:598] kill process(ps): uiautomator
[D 201122 21:04:38 __init__:617] uiautomator-v2 is starting ... left: 40.0s
[D 201122 21:04:39 __init__:617] uiautomator-v2 is starting ... left: 39.0s
[D 201122 21:04:40 __init__:617] uiautomator-v2 is starting ... left: 38.0s
[D 201122 21:04:41 __init__:617] uiautomator-v2 is starting ... left: 36.9s
[D 201122 21:04:42 __init__:617] uiautomator-v2 is starting ... left: 35.9s
[D 201122 21:04:43 __init__:617] uiautomator-v2 is starting ... left: 34.9s
[D 201122 21:04:44 __init__:617] uiautomator-v2 is starting ... left: 33.9s
[D 201122 21:04:45 __init__:617] uiautomator-v2 is starting ... left: 32.8s
[I 201122 21:04:45 __init__:581] uiautomator back to normal

Closing! 😄


This one fixes the file cut-off issue Vincent was referring to.

Minor editing within the tailPy function.

#11 was merged instead.


Update rate limit error wording for Cody Pro users

Fixes #2272
Test plan

Logged in as rate limited pro user, verified rate limit error message changed
Logged in as rate limited free user, verified rate limit error message unchanged

Change looks good but the tests need updating.


Don't require Qt Creator to run example code

back-link: en/ch02/index.html#hello-world
qmlscene will allow you to run code outside of Qt Creator. For example:
$ qmlscene HelloWorld.qml

Note to self: read further before posting issue.
This is covered in the following section.


Dockerfile for Debian package managers

Used this to build the Ubuntu 19.10 Docker images for the CI, it builds the ATS master tree fine it seems.


Added Pause Callback

Adds a callback for the pause function. Example usage: Pause a song without removing the "amplitude-active-song-container" class - allowing the active element to retain its styling while in pause mode.
Amplitude.config function:
"callbacks":
    "debug": true,
    "after_pause": "active_pause"
    }

});
function active_pause(){
    console.log('PAUSED');
    $('.amplitude-active-song-container').collapse('hide');
    $('.amplitude-active-song-container').prev().removeClass('active-panel');
    $('.amplitude-active-song-container').prev().find('.amplitude-play-pause').removeClass('amplitude-playing').addClass('amplitude-paused');
    $('.amplitude-active-song-container').prev().find('.playlist-play').removeClass('playlist-play').addClass('playlist-paused');
}

Functional Method in Amplitude.js
/*
Pauses the active song. If it's live, it disconnects the stream.
*/
function privatePause(){
privateRunCallback('before_pause');

if( config.active_metadata.live ){
    privateDisconnectStream();
}
config.active_song.pause();
privateRunCallback('after_pause');
}

Thanks for the pull request. Sorry for not getting back sooner, its been a bit crazy around here. We released Amplitude 3.0, so now this has a merge conflict.
What I will do is take what you have and updated it to work in Amplitude 3.1 on the next release.
Thanks for your contribution!


xlsx.core.min.js has snoman character instead of code \u2603 due to whihc xlsx generation on IE 11 browser fails

xlsx.core.min.js has snoman character instead of code \u2603 due to whihc xlsx generation on some IE 11 browser fails.
Step to find this code : search for ^☃]*) in xlsx.core.min.js
the Fix for this issue is :  simply replace   ^☃])  by  \u2603])  in xlsx.core.min.js

@clgnik that is very strange! Can you share a small example?  Also, can you test if http://sheetjs.com/demos/modify.html works on your computer? I've manually tested it back to IE6 without issue.
We run the browser test suite against IE8+, so I'm surprised that something like the snowman char would not work on IE11:

@clgnik replaced the relevant regular expressions, please reopen if the issue persists after updating

Its working fine now!


node version and setup

When the setup commands are run, and the correct node version is not installed the nvm use command didn't work.
To fix it I ran nvm install lts/erbium. I found it a bit confusing to get started until I worked that this was missing.
Setup commands:
git clone https://github.com/leemunroe/grunt-email-workflow.git
cd grunt-email-workflow
nvm use
npm install

Good point, this is not required. Removing this line from readme


fix(cordova/apple): don't strip tun2socks debug symbols

https://developer.apple.com/documentation/xcode/building-your-app-to-include-debugging-information#Publish-your-app-with-symbol-information
"When archiving your app for distribution, Xcode gathers all binaries and dSYM files for your app and stores them inside the Xcode archive.
If you distribute your app through the App Store or conduct a beta test using TestFlight, you have the option to include the symbol files when uploading your app to App Store Connect."
We should just make sure that option isn't checked/passed into the actool!

Let's make sure to check the binary size in the next release!


we meet again

made the letters capital and a small change in index of whisperState

You cannot capitalize nor change the enumeration texts, it would create incompatibility with other minor versions. The "to" -> "that will" is valid though, but I prefer that you make a new PR for it. Also, if you change the docs you have to change it in the code too.


Calculator feature added

Thank you for your PR. But it seems you reverted your commit.

ya, some things went wrong from my side so I had to revert the commit

@Aaron-Junker what should I do next? should I push again? or should I create another PR?

@Aaron-Junker what should I do next? should I push again? or should I create another PR?

Pushing it again if this is possible.

pushed.


Too Many SOQL Queries with 2 Processes

Hello,
We have a model in Salesforce in place that uses Parent and Child Opportunities to manage subscriptions and consumptions. We have 2 processes in place that create child opportunities based on a product(s) being added to the parent opp. Soon as a product is added, 1,4, or 12 child opps are created (number based on a dropdown).
We've set up about 6 DLRS rollups to total amounts from the child and rollup to the parent, and the rollups work fine IF we only had 1 product. If we try add 2 products (sub and cons) at the same time, we hit the SOQL error.
The 2 processes work the exact same, the only difference being one is to create child opps for Sub products, and one is to create child opps for Con products (we use 2 different lookups, one for Child con, and one for Sub con, which are both lookups from child opp to parent opp, as we need to seperate the view of these child opps by type).
When testing with only adding one its fine, but with both at the same time it errors, and I can't wrap my head around why its erroring only when we add sub and con products at the same time, as I don't think we should be hitting that limit.
Any help around this would be great. thanks

Hi,
Can I get some assistance on this please? as this is still an open issue for us.
Kind regards,
Luca

@lucasarno It sounds like this is some custom code you are using to automate the creation of these opportunities? Are you create the opportunities by observing bulkifcation best practice in your code? If your using Flow, make sure to use collection variables and fast insert operations.


Storage:  missing checksums

When https://github.com/oceanprotocol/ocean-node/issues/105 was defined,  the requirements were to add checksum as well.
By looking in the code while debugging something with Ilia, we discovered that there is no checksum for files.
So, let's implement in the following way:

define an ENV  "MAX_CHECKSUM_LENGTH ": define the maximum length for a file if checksum is required. If file size is greater, we do not compute checksum.  Default value: 10 Mb
update function storage.getFileInfo  to take extra parameter:  forceChecksum (default false)
update function storage.getFileInfo  and underlying storage classes to add checksum to output:

if ( forceChecksum==false and filesize=<MAX_CHECKSUM_LENGTH) || (forceChecksum ) -> compute hash
else  do not compute hash

In this way, we can have checksums for datasets only if they are smaller than a predefined size, but always compute checksums for algos

this was closed as part of https://github.com/oceanprotocol/ocean-node/pull/254


[Windows] Overflow in canonicalization when reshaping sparse matrix

Describe the bug
During canonicalization of a problem with large data, the following error is encountered in Windows (but not MacOS or Linux):
ValueError: cannot reshape array of size -1390450388 into shape (1004, 'newshape')

This bug is present in the latest pre-release version of CVXPY, using SciPy 1.4.1.
This issue was originally reported on the cvxpylayers repository, https://github.com/cvxgrp/cvxpylayers/issues/45, by Github user urolyi1.
To Reproduce
Reproduce using
https://gist.github.com/urolyi1/fe94153f7a872046f1f73274391f6c51
In the linked-to script, replace the construction of the CvxpyLayer with a call to problem.solve(), after populating the parameters.
Output
File "C:\Users\Uro\Anaconda3\lib\site-packages\cvxpy\reductions\solvers\conic_solvers\conic_solver.py", line 271, in format_constraints
reshaped_A = problem.A.reshape(restruct_mat.shape[1], -1, order='F').tocsr()
Version

OS: Windows
CVXPY Version: 1.1.0a2

Additional context
We've encountered issues similar to this one before, on Windows. Care should be taken to ensure that the fix doesn't cause a large slowdown in canonicalization, which has happened when fixing similar issues in the past.

Is this issue's fix going to be part of the stable release? I can still see the problem in 1.1.0a4 on windows.
The issue only happens when the problem is DPP so my work around so far is to make the problem non DPP.

A bit more information on this. It seems when a problem is deemed DPP, the parameter matrices are hugely inflated. For two equivalent problems non DPP SOCP problem has A matrix shape (410871, 1) while DPP version (410871, 51531), this creates overflow issues when creating and reshaping sparse matrices in Scipy.

We'll try to get a fix in soon, but the developers don't have too much bandwidth right now. Contributions would be welcome.
Some additional context:
In an earlier version of Scipy, reshaping a large sparse matrix on any platform led to an overflow. They implemented a fix, but it appears the issue remains on Windows (I can't replicate the overflow on Ubuntu, eg). Perhaps an issue should be opened in Scipy's repository.
The matrix A is inflated when the problem DPP because it represents an affine map from the parameters to the problem data. The actual problem data that's eventually passed to the solver should be of the same size as the non-DPP problem.

Chiming in here, @tm4droid can you replicate the issue on Windows just by reshaping a sparse matrix? Then create an issue with that snippet in the SciPy repo. And you're sure you have the latest scipy?

The issue can indeed be replicated just with SciPy. And I will raise an issue on its repo. But I'm betting there's a better chance Cvxpy finds a work around (maybe even by manually rearranging the block matrices), than SciPy fixing that in a timely manner.
This is may be the time as well for me to stress on the major speed up DPP mapping had on most of my problems. two orders of magnitude..

@SteveDiamond  @akshayka , I played around with Scipy purely to reproduce the issue, and it turns out the overflow happens during simple dimension arithmetic calculation....
Which means if instead of passing a A.reshape((new_rows, -1)), you calculate column numbers on your own and call A.reshape((new_rows, new_cols)), there is no over flow.
so in conic_solver.py line 271, I propose a simple work around as:
unspecified, remainder = divmod(problem.A.shape[0] * problem.A.shape[1], restruct_mat.shape[1])
reshaped_A = problem.A.reshape(restruct_mat.shape[1], unspecified, order='F').tocsr()

@tm4droid I committed the proposed fix. Try it again after installing from master?

Tried it and it works in my case. Thanks a lot @SteveDiamond @akshayka


[Peek] Support for GrahPad, ChemDRAW, NMR

Description of the new feature / enhancement
The type of files that Peek can preview is very limited. For example, for the scientific research community it would be very useful if  Peek could also preview files from GrahPad, ChemDRAW, NMR (mnova file), among others.
Scenario when this would be used?
Peek should be a quick and easy way to preview files on a Windows, which try to do the same thing as the Preview on MacOS (very very useful feature). However, as can be seen, there is almost no difference between Peek and the preview panel that we can already see on Windows, since the type of program thhat can be preview is almost the same.
Supporting information
No response

Also add .PSD & .AI files.


Added .editorconfig

It also includes custom VS settings from https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2017

@MichalPetryka please test it on mac/windows/linux if possible and see if this would cause any issues for users like paul suggested.
also if VS automatically appends stuff to the file then that will probably show up after every change and we have to dismiss it in git, or not?
and what if VS appends stuff and I open it in Rider or Xamarin?

insert_final_newline just means if the file doesn't end with an empty line, add one. other editors wont remove it so you wont get a back-and-forth effect, it will just do it once. it wont keep adding newlines after that. it's a throwback from the days when some compilers actually required this but now it just bugs some people not to have it. this config looks like it lines up with what I use on my own projects, except end_of_line needs to be dropped as there's no "native" option yet that I know of

@vis2k It won't cause any issues with any normal software (other than windows Notepad)

If someone has core.autocrlf = true in their git global config, meaning they purposefully have configured LF -> CRLF on checkout, why would we want to mess with that using the editor config? That's guaranteed to piss them off
@MichalPetryka I don't know why you never have an issue with this, but I do. VS 2017 will not always respect LF consistent files. It will, under some circumstance, add CRLF endings into LF consistent files regardless of editorconfig, preferences, or anything. This is a longstanding issue for which there is a giant support thread with MS (where you can find me sh#!@$ing on them over it too). You can set your core.autocrlf = input and it will do nothing on checkouts (meaning it will already be all LF) and convert to LF on checkins.

 If that setting helps one of you then keep it and I will just deal.
I actually heard notepad is going to add LF support in a coming update, but after 20+ years I'll believe it only when I see it :lol:

Notepad has support, but only in Windows 10 October Update which i have no idea if it is actually public cause it was hidden 8 times

The standard way for EOL to work:
Git repository has the files with LF only.
If you clone the repo in windows, it will check out all text files with CRLF EOL
If you clone in linux or mac,  it will check out all text files with LF EOL
This behavior can be configured per file extension by adding it to .gitattributes.
see here for more explanation https://help.github.com/articles/dealing-with-line-endings/
This also ensures that we don't have a ton of conflicts in pull requests because git will normalize all files to simply LF inside the repo.
If you clone mirror in windows,  every .cs file will have CRLF EOL,  so that is what your editor should use.  If you clone in linux or mac, every .cs file will have LF EOL,  so that is what your editor should use.
So do not force LF on all files,  it makes it really painful to work with these files in windows.  When you edit them,  you will end up with files mixing CRLF and LF with very annoying warnings. Set them to native instead

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


Is the Azure Speech Service SDK C# Supported on Azure Functions V2?

Hi there,
I am running into issues trying to run a sample from the Azure IoT team that leverages the Azure Speech SDK via an Azure function – is this a supported scenario with the new Azure Functions?

Azure IoT Workbench Version 0.10.13
Tried on both Windows 10 and Mac OS.
Created the DevKitTranslator Sample.

I have uploaded a zip of the sample to: https://1drv.ms/u/s!AEXwMS3UpKGWmbMq
After configuring and deploying the Azure Function DevKitTranslatorFunction the function throws an exception when trying to access the Azure Speech SDK. Looking at the Functions.csproj an old version of the Microsoft.CognitiveServices.Speech package is referenced, so I tried updating that, however I get a different, yet similar, issue.
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <AzureFunctionsVersion>V2</AzureFunctionsVersion>
 </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.Devices" Version="1.17.1" />
    <PackageReference Include="Microsoft.CognitiveServices.Speech" Version="1.1.0" />
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.*" />
  </ItemGroup>
  <ItemGroup>
    <None Update="host.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="local.settings.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
    </None>
  </ItemGroup>
</Project>

Error for package 1.1.0 - The type initializer for 'Microsoft.CognitiveServices.Speech.Internal.carbon_csharpPINVOKE' threw an exception.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <AzureFunctionsVersion>V2</AzureFunctionsVersion>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.Devices" Version="1.17.1" />
    <PackageReference Include="Microsoft.CognitiveServices.Speech" Version="1.6.0" />
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.*" />
  </ItemGroup>
  <ItemGroup>
    <None Update="host.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="local.settings.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
    </None>
  </ItemGroup>
</Project>

Error for 1.6.0 - unable to load DLL 'Microsoft.CognitiveServices.Speech.core.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Thanks for your insight.

Thanks for the feedback,
Could you check if any of the solutions under the following issue help ?
https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/176
In the meantime we will investigate if the issue you have is something new.

I took a look at #176 and the most likely option seemed to be that perhaps Microsoft.CognitiveServices.Speech.core.dll was not being deployed, however I looked at the output from the deploy and I can see that it is. Perhaps it is a path issue, or there are other dependencies that aren't being deployed?

Deployment to "DEV297-FUNC-CAH050961-01" completed.
WARNING: Some http trigger urls cannot be displayed in the output window because they require an authentication token. Instead, you may copy them from the Azure Functions explorer.

Did you try to this https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/176#issuecomment-494991649 ?
Could be that your project file needs to instruct nuget to look for dlls under runtime folder specifically.

I updated the csproj as follows:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp2.1</TargetFramework>
    <AzureFunctionsVersion>V2</AzureFunctionsVersion>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Platform)'=='x64'" Label="Configuration">
    <RuntimeIdentifier>win-x64</RuntimeIdentifier>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Platform)'=='x86'" Label="Configuration">
    <RuntimeIdentifier>win-x86</RuntimeIdentifier>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.Devices" Version="1.17.1" />
    <PackageReference Include="Microsoft.CognitiveServices.Speech" Version="1.6.0" />
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.*" />
  </ItemGroup>
  <ItemGroup>
    <None Update="host.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="local.settings.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
    </None>
  </ItemGroup>
</Project>

It still throws the following: Unable to load DLL 'Microsoft.CognitiveServices.Speech.core.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I also tried adjusting the <TargetFramework>netcoreapp2.1</TargetFramework> to <TargetFramework>netcoreapp2.2</TargetFramework> with the same result.

Problem was related to .NET Core 3.0 preview, after removing that issue was not reproduced anymore. Closing this


[WIP] Try adding search to dashboard header

Codecov Report
Base: 85.10% // Head: 85.10% // No change to project coverage :thumbsup:

Coverage data is based on head (d66e262) compared to base (8dad90f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #283   +/-   ##
=======================================
  Coverage   85.10%   85.10%
=======================================
  Files          35       35
  Lines        1296     1296
=======================================
  Hits         1103     1103
  Misses        131      131
  Partials       62       62

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.


Correct Important Dates section.

@evansavage Please contact @emilyhopkins so you have the latest dates approved by the ISMIR committee. In any case, change 2019 for 2020.

See #5

@evansavage sorry I fixed this jsut forgot to push it let me do it now!


allowing user to control maximum number of cpus

Up to now max number of cpus was by default 24, in branch transect added a new filed for conf.yaml files with max_cpus, so whatever the user pass is chosen instead. While a user can always change the number of cpus used by a job before submitting it, the number of cpus that the tool calculates are also used to determine how many job pool launches. So if you reduce the number of cpus manually you end up with more than one "pool" task run per cpu.

I'm also adding a cpuxworker option to allow more control. By default this is 1 which is already a reasonable choice for computationally intense jobs, but occasionally if you want to give processes more memory you might want to double that.


No require_gcc() for ruby-1.9.3-p125?

I'm wondering if it would make sense to remove the requirement of gcc-4.2 for ruby-1.9.3-p125.

It will now build with CC=/usr/bin/gcc or --with-gcc=clang. (I've tested both now, and in answer to a question posed on Twitter, tests pass as well).
Part of the point of the release is that it fixes compiler-related bugs in OSX.
Newer versions of Xcode simply don't have gcc-4.2. So this would help people with more recent installs of OSX, Xcode tools, etc. (A note to self and others: If you really want gcc-4.2, this walkthrough gets the job done.)

+1

:+1:
ruby-build is not working with Command Line Tools for Xcode

@rafaelfranca If you comment out the first line of share/ruby-build/1.9.3-p125 (which calls require_gcc), then it will work if you run it like this:
CC=/usr/bin/gcc bin/ruby-build share/ruby-build/1.9.3-p125 <target-directory>

Yeah, I tried this without success. The fail was the configure step in ruby compilation. But this is not ruby-build fault

Ah, then actually I'm not sure what's up. I have only the command line tools for Xcode installed, and I was able to build 1.9.3-p125 successfully that way. Are you building an different Ruby interpreter?

I'm not sure too. I'll try again later. But this issue remains valid since we don't need the require_gcc at top of 1.9.3-p125 file

@rafaelfranca Did you set the CC environment variable? I first tried without it, and configure failed because it was using gcc-4.2 as compiler (which doesn't exist on my system).
I compiled the new Ruby successfully using rbenv + ruby-build and the Command Line Tools for Xcode like this:
env CC=/usr/bin/gcc rbenv install 1.9.3-p125

Yeah. With the CC environment variable it worked.

Removing the require_gcc line for 1.9.3-p125 and compiling it with the CC environment variable also fixed building gems with native extensions for me with Xcode 4.3 + command line tools package installed.

I installed the  Command Line Tools for Xcode
After removing the require_gcc line from share/ruby-build/1.9.3-p125,  Ruby 1.9.3-p125  successfully compiled with rbenv install 1.9.3-p125. To set the  environment variable CC was not required.

I'm using rbenv + ruby-build.
I have both Xcode 4.3 and the Command line tools for Xcode installed on 2 different macbook pros
-- one was upgraded from Snow Leopard to Lion, one came with Lion pre-installed.
I had to set the CC environment variable on the macbook with Lion pre-installed before ruby would compile successfully.
The upgraded macbook ran just fine with the rbenv install 1.9.3-p125 command.

Fixed @ 45d4277b1c2733aae2b8f097317f1b6b48a89923. Tested with XCode 4.4 toolchain.

Installed head version of ruby-build w/ command-line-tools. It works only after setting CC env var, like mentioned before.

Indeed, require_gcc also exports CC - this should be revisited.


How to play video files that require permission?

Submit feature requests to http://www.mattermost.org/feature-requests/. File non-security related bugs here in the following format:
Summary
How to play video files that require permission?
Environment Information

Device Name:  iPhone 12
OS Version:
Mattermost App Version: 1.41.1
Mattermost Server Version:5.32.1

Steps to reproduce
Upload a video file to the channel.
Click on the file.
File cannot be played
Expected behavior
If the user is already logged in and the user has uploaded the video file, it should be played.
Observed behavior
File cannot be played
Possible fixes
When I check, the file url is received well.
However, the url is a url that cannot be accessed without permission.
I tried to play with the link published through 'Client4.getFilePublicLink', but it does not play.

@josephbaylon Do you know?

@amyblais @bitdessert I'm a little unsure about this. Is this about uploading an actual video from device or posting a video url on the channel. If the latter, then it needs to be public.

@amyblais @josephbaylon Thank you for your answer.
Prior to version 1.36.0, files were opened after downloading.
When the user clicks download and the download is complete, the file is played.
It seems that a lot of parts have changed as the gallery component was changed from 1.41.1.
In the current version, the file is not downloaded and it tries to play it with only the URL.
Click Share, and after the file is saved in the cache folder, the file is played.
It seems that you need some logic to save the file before playing it.
In the case of a video file, it is a logic that automatically saves it first.

@bitdessert To download a file attachment,

Tap on attachment
Tap share button at the bottom right

In case of iOS, usually there is a Save to Files option, otherwise you can share through other apps that lets you download the file to the device.
In case of Android, usually if you don't see the save to device option, which is dependent on your android device, you can share via google drive and download from there.
For video attachments, the following are the supported file types that will display the playback button, but it's not always guaranteed to have the playback button.
iOS: mp4, x-m4v, quicktime
Android: 3gpp, x-matroska, mp4, webm
If Download button appears instead of playback, tapping on Download button is the same as tapping on share button.
Hope this clarifies the gallery functionality.

thanks, @josephbaylon
The problem now is that after tapping the uploaded video file, it won't play.
If you tap on a video file that has not been downloaded for the first time, an error message pops up.
In 'gallery_video.tsx' file
'mobile.video_playback.failed_description'
An error occurred while trying to play the video.

@bitdessert  Mind sharing the video in question?

@bitdessert Can you try this locally?

The problem is as follows.

Upload the file.
Tap the file.

When you tap the file, the file url is fetched from the source code below.
'setUri(exist ? localPath : Client4.getFileUrl(file.id, Date.now()));'
At this time, the url I got is not a public URL.
When accessing the URL, json is returned.
The json content is that I don't have permission to access the file.
In the previous version, I could download the video file before playing it.
And because the downloaded file is stored in the cache folder, it was possible to play the file without permission problem.
Now, when I try to play the video by directly accessing the URL before the file is downloaded, a problem occurs.
So, it seems necessary to download the file before playing it.
In other words, even if you do not have the file permission, because the file has been downloaded, it is possible to play it.
Even in the current version, after an error pop-up occurs, download the file anyway and tap it again to play normally.

@enahum I don't think I'm understanding the issue, if there's any. Can you please chime in on this and see if there's a current limitation/restriction or the behavior is as expected?

https://user-images.githubusercontent.com/42505950/114803315-31457900-9dda-11eb-820d-47c28802e23c.mov

Url when first tapped : https://~~~/api/v4/files/zkpt5f1rhpr7bbb31r64na9aew?1618452093697
The above url does not have access rights.
The file does not have access rights, but the downloaded file is played.
After tapping the share button, url : /~~~/CoreSimulator/Devices/6A75B1D9-D85C-4C8D-ACB9-83ECEF10155C/data/Containers/Data/Application/1A922E7C-398D-4862-A1DC-9DB9C1997583/Library/Caches/Videos/video_progressbar.mov

This doesn't look like a permission issue but more of a streaming problem.

@enahum
When the above address is accessed from a browser, a json return as shown below is received.
https://~~~/api/v4/files/zkpt5f1rhpr7bbb31r64na9aew?1618452093697

If you access the same url from a browser but after logging in into MM you'll get a different result

@enahum
I just tried accessing that URL in a browser.
I am logged in on mobile.
https://user-images.githubusercontent.com/42505950/114804180-da40a380-9ddb-11eb-8d4d-6e0a66e49a89.mov

@enahum
I think that the module called 'react-native-video' tries to play the video by accessing the url in the get method.
The file should be played after checking the authority by sending the login information in the header together,
but I think that an error occurs because the login information is not sent.
That's why I suggested a way to download the file in advance.
Of course, if you can send login information through react-native-video module, it would be nice to do so.

@enahum @josephbaylon
The video seemed to be confusing, so I recorded it again.
https://user-images.githubusercontent.com/42505950/114817330-c2c1e480-9df4-11eb-9682-795338495659.mov

@enahum @josephbaylon
The video uploaded as an attachment seems to have not been properly recorded, so I recorded it again and uploaded it.
https://user-images.githubusercontent.com/42505950/114819737-e0914880-9df8-11eb-98ab-7a36084e92f9.mov

Exact same issue on Android 9, 10 or 11.
Note that I can playback a video I uploaded myself, though.

@bitdessert there has been a few changes in the gallery on V2. Can you check if this is still happening to you on the latest beta?


Easy improvements from the first Feedback of the LGS

Divide input fields for Given- and Surname
Remove address details (street and number), city and zip code still required
Always use "Kurs" consistently instead of mixed "Kurs" and "Schulung"
Validate course numbers, Correct course numbers consist of /B\d{3}(FB|AM)/
In the modal for train expenses the title is still "Autofahrt hinzufügen" -> change to "Zugfahrt"
Enable also train expenses for the direction "at"
Make the removal of attachments more clear
Link the impressum to https://jdav-bayern.de/impressum-und-datenschutz/impressum/ and not have a separate one

erledigt in anderem PR


Continue bro.

Continue this app bro, we are with you! You want one thing? We will help you! Just ask we!

MS broke the app. Just use copilot.Microsoft.com to get the same thing. It works on chrome and Edge

I know, it was just to motivate this great man who made this app, to continue to maintain this app. But if he don't want, it's his choice.

I... fixed the app and adapted it to Microsoft Copilot V2...


ci: refactor pipelines and deduplicate work

Merge Go pipelines into the C/C++/GLib/Python/Ruby ones. This is to prepare for when we have Go drivers with C APIs.
Add tests for multiple Python versions.
Fix deprecation warning about set-output.

Fixes #348.

Hmm, not sure why it can't resolve arrow-c-glib - it works fine locally. Bumping the cache...

Might as well also build the Go on windows too :smile:

You mean the CGO code? The pure Go code is built on Windows
That said I just added it in the follow up PR that adds the Flight SQL driver, hopefully it just works

If you have the C++ building on windows, you should be able to get the CGO code compiling, just make sure you set the CC and CXX env vars appropriately, and any necessary compile/linking flags can get added via env vars or by adding directives to the files

Let's see if it works!

There's Windows build issues in the CGO driver that I'll address tomorrow (dllimport, and some type aliases being different on Windows vs Unix)

Punting on running the CGO tests on Windows since they currently fail in some way I can't reproduce

I'm going to merge this for now to start with, and we can continue extending it (e.g. in #355)


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-27-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 2995

Questions ?
Please refer to the Backport tool documentation


Password change without the password reset email

Would it be possible to show the password change view directly without having to issue a password reset email. We would want the user to be able to change it directly in our app if he's logged in. I tried to access /forgot/change directly and I got :
Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:689:11)
    at ServerResponse.header (/home/marcolem/Development/radialpoint/reveal-site/node_modules/express/lib/response.js:662:10)
    at ServerResponse.send (/home/marcolem/Development/radialpoint/reveal-site/node_modules/express/lib/response.js:146:12)
    at fn (/home/marcolem/Development/radialpoint/reveal-site/node_modules/express/lib/response.js:896:10)
    at /home/marcolem/Development/radialpoint/reveal-site/node_modules/hogan-express/hogan-express.js:169:20
    at /home/marcolem/Development/radialpoint/reveal-site/node_modules/hogan-express/hogan-express.js:40:14
    at fs.js:271:14
    at Object.oncomplete (fs.js:107:15)
express deprecated res.send(status): Use res.status(status).end() instead node_modules/express-stormpath/lib/controllers.js:326:11

Error: Can't set headers after they are sent.
    at ServerResponse.OutgoingMessage.setHeader (http.js:689:11)
    at ServerResponse.header (/home/marcolem/Development/radialpoint/reveal-site/node_modules/express/lib/response.js:662:10)
    at ServerResponse.send (/home/marcolem/Development/radialpoint/reveal-site/node_modules/express/lib/response.js:146:12)
    at /home/marcolem/Development/radialpoint/reveal-site/node_modules/express-stormpath/lib/controllers.js:326:11
    at Object.wrapGetResourceResponse [as _wrapGetResourceResponse] (/home/marcolem/Development/radialpoint/reveal-site/node_modules/express-stormpath/node_modules/stormpath/lib/ds/DataStore.js:66:12)
    at onGetResourceRequestResult (/home/marcolem/Development/radialpoint/reveal-site/node_modules/express-stormpath/node_modules/stormpath/lib/ds/DataStore.js:277:13)
    at Request.onRequestResult [as _callback] (/home/marcolem/Development/radialpoint/reveal-site/node_modules/express-stormpath/node_modules/stormpath/lib/ds/RequestExecutor.js:96:14)
    at Request.self.callback (/home/marcolem/Development/radialpoint/reveal-site/node_modules/request/request.js:123:22)
    at Request.emit (events.js:98:17)
    at Request.<anonymous> (/home/marcolem/Development/radialpoint/reveal-site/node_modules/request/request.js:1047:14)

I am using 0.4.5 from npm

What about forcing the user to type in his old password and then displaying new password & new confirm password? is this supported by stormpath?

Hey @bartzilla, you can indeed do this, but that functionality isn't pre-built into express-stormapth (a page, for instance). What you'd need to do is:

Create a route / view that force a user to change their password.
In your code, just update the user's password and save their account, for instance:

req.user.password = 'newpassword';
req.user.save();

Hey @bartzilla , thanks for the question!  As @rdegges mentioned we don't have an out-of-the-box form for a logged-in password change form, but it's really easy to roll this into your profile page.  We have an example profile page here, you'd just need to modify it a bit to add the change password fields:
https://github.com/stormpath/express-stormpath-sample-project/
Hope this helps!

Hey @robertjd and @rdegges very useful information indeed. I managed to implement the use case. Thank you very much your direction and quick response.
Best!

Awesome @bartzilla , glad you've got it working now!  Always happy to help :)

@rdegges Can you do this with just plain node?
"Hey @bartzilla, you can indeed do this, but that functionality isn't pre-built into express-stormapth (a page, for instance). What you'd need to do is:
Create a route / view that force a user to change their password.
In your code, just update the user's password and save their account, for instance:
req.user.password = 'newpassword';
req.user.save();
@robertjd"

@EricMentele yep! Same exact thing, you can do it with an account, eg:
account.password = 'blah';
account.save();

@rdegges thanks! Got it working.


73  short titles

Resolves #73
Add short titles for mobile/narrow viewports

Added shortTitle field to book metadata in index.html files
Updated .eleventy.js to include shortTitle in book collection data
Modified sidebar.liquid to display shortTitle with fallback to full title
Updated styles.scss to show shortTitle on narrow viewports (height <= 800px) and mobile (width <= 1440px)

This change improves readability of book titles in the sidebar when space is constrained, either due to narrow viewport height in desktop view or when the site switches to mobile layout. The shortTitle provides a more concise version while maintaining context.

Lookin' good, just need to make sure the short title visibility kicks in earlier.

Ok try that - increased from 800px to 920px


Add flag icons for currencies

In the currency lists, add a flag icon to the left-hand side of a currency option to denote its country of origin

Done in v1.2.0


ast-codegen: support #[visit(enter_before)] attribute

We have discussed this at https://github.com/oxc-project/oxc/pull/4147#issuecomment-2220216905. But we do need this at the moment.
In semantic builder, We need enter_scope before enter_node in visit_function and visit_class.
https://github.com/oxc-project/oxc/blob/2eb37d52f1250dfc1348379cbf9d3fb3c70b7961/crates/oxc_semantic/src/builder.rs#L1423-L1450
We want to treat FunctionExpression and FunctionDeclaration differently and the class is the same too.
FunctionExpression: create a binding for function id to the current scope
FunctionDeclaration: create a binding for function id to the parent scope
To add the binding to the parent scope, we must need enter_scope before enter_node.
I tried another way to get around it (Same as TypeScript). But I find it a bit confusing. See: https://github.com/oxc-project/oxc/pull/4195#pullrequestreview-2175953763

Ah. Haha, this is also a bit confusing for visit orders.  I thought about it again. We can defer binding FunctionExpression and ClassExpression and bind them when we visit BindingIdentifier.

@Dunqing Just to throw in my 2 cents, I wonder if FunctionExpression and FunctionDeclaration should be separate types (and each type would have Function as a field within it). The 2 have various significant differences:

One is a Statement, the other an Expression.
FunctionExpression's name field should be an Option, whereas it's compulsory in FunctionDeclaration.
Scope should be entered before name for FunctionExpression and after name for FunctionDeclaration.

We could also have a separate type for ObjectMethod (whose name isn't a binding at all).
At present, it's possible to create non-sensical AST nodes (e.g. a FunctionDeclaration with no name) - it'd be good to make this impossible through the type system.

@Dunqing Just to throw in my 2 cents, I wonder if FunctionExpression and FunctionDeclaration should be separate types (and each type would have Function as a field within it). The 2 have various significant differences:

One is a Statement, the other an Expression.
FunctionExpression's name field should be an Option, whereas it's compulsory in FunctionDeclaration.
Scope should be entered before name for FunctionExpression and after name for FunctionDeclaration.

We could also have a separate type for ObjectMethod (whose name isn't a binding at all).
At present, it's possible to create non-sensical AST nodes (e.g. a FunctionDeclaration with no name) - it'd be good to make this impossible through the type system.

Yes, I talked with @Boshen about the above. Since they are not very different, they have been combined into one type. I agree we should have different types for FunctionExpression and FunctionDeclaration, and also class should be ClassExpression and ClassDeclaration

Scope should be entered before name for FunctionExpression and after name for FunctionDeclaration.

We bind in enter_node. So we have to switch the order of enter_node and enter_scope to bind it to the corresponding scope. Or do something like https://github.com/oxc-project/oxc/pull/4195#discussion_r1676863076.


Add a condition to update iroha2-base images

Feature request
Don't build and publish the base image on every merge
Motivation
CI optimization
Who can help?
No response

Consider layer caching instead of having a base image
https://depot.dev/blog/docker-layer-caching-in-github-actions