implement encode ccre adapter

I implement enhancer CCRE adapter.

I added them please take a look at it.
Thank you.
On Mon, Mar 25, 2024 at 5:20 PM Abdulrahman S. Omar <
@.***> wrote:

Hi @kedistS https://github.com/kedistS, thanks for the PR! Can you
include the first few lines of the file you're importing as a comment on
the adapter class. This helps us quickly see the structure of the original
file. Please check the existing adapters and also @dawit-melka
https://github.com/dawit-melka's PRs.
—
Reply to this email directly, view it on GitHub
https://github.com/Habush/biocypher-metta/pull/5#issuecomment-2018115421,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A6Q2CSC7QYOPF2MN3ZQTUJDY2AXEJAVCNFSM6AAAAABE2MPQXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJYGEYTKNBSGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

The source url is missing. Please check.

I created new PR for this enhancer ccre adapter due to some conflicts so I am going to close this PR.


ReferenceError Occurring After Updating Vitest: Is 'glob' or 'path' Affected?

Describe the bug
I have the following configuration in the setupFiles of vitest:
import { globSync } from 'glob';
import { resolve } from 'path';

const appDir = resolve(__dirname, '../src/app');

// **/api.ts
globSync(`${appDir}/**/api.ts`).forEach((path) => {
  vi.mock(path, () => ({ default: {} }));
});

// **/*.graphql
globSync(`${appDir}/**/*.graphql`).forEach((path) => {
  vi.mock(path, () => ({ default: {} }));
});

After updating vitest from 0.28.5 to 0.33.0, I received the following error:
ReferenceError: path is not defined

What could be the cause of this?
Does updating vitest affect 'glob' or 'path'?
Reproduction

npm install<EMAIL_ADDRESS>Replace the setupFiles configuration in the Vitest config with the following code snippet...
Run the test suite using the command...
See error "ReferenceError: path is not defined"

System Info
- OS: macOS Big Sur 11.2.3
- Vitest version: 0.33.0
- Node.js version: 14.15.1
- NPM/Yarn version: 6.14.8/1.22.10

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

vi.mock is hoisted, you cannot call it like this.
If you define dynamic mocks, use vi.doMock


feat(aws_auth): Add support of awsSecurityCredentialsSupplierClass in ExternalAccountCredentials when create from GcpCredentials from file.

Add support of awsSecurityCredentialsSupplierClass in ExternalAccountCredentials when creating GcpCredentials from the file.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[x] Make sure to open an issue as a bug/issue before writing your code!  That way, we can discuss the change, evaluate designs, and agree on the general idea
[] Ensure the tests and linter pass
[] Code coverage does not decrease (if any source code was changed)
[] Appropriate docs were updated (if necessary)

Fixes #1408
If you write sample code, please follow the samples format.

@googleapis-stewards, how can I get any feedback?

@lsirac @googleapis/aion-sdk I think this change would be better to be reviewed by you all. If you feel otherwise, I can take a look.


leaderboard POJ clone detection

Hi,
Thanks for sharing such great dataset for code research.
I am confused about the leaderboard on POJ clone detection. I saw the correct answer of test set and evaluation script on the git repo. So  is this different from  "we do not release the correct answers for test set to the public" (from the CodeXGLUE Submission Instructions  on https://microsoft.github.io/CodeXGLUE/ ). Is the test data used in the leaderboard different from the data on git repo and paper?

Thanks a lot.
Best
LJ.

For some dataset we don't release the correct answer. For other datasets that have been published before, the correct answer can be contained in our benchmark.


Add Contributing Guidelines + Getting Started for Devs

Any help in understanding how this actually works would be great .
Please close if this is not the right place to ask.

Hey @pranaypratyush, there are some docs for the extension here: https://supabase.github.io/pg_graphql/
And some docs to use it on the supabase platform here: https://supabase.com/docs/guides/api#graphql-api-1
Is that what you're looking for? If not, could you please share some specifics about what you're missing and we can add more docs

I am looking for docs for devs who would like to contribute to this repo. Everything is in one huge file. I was looking for a starting point to build my understanding of how this actually works.

thanks for the clarification! We can definitely add docs for contributors

Hey @pranaypratyush, there are some docs for the extension here: https://supabase.github.io/pg_graphql/
And some docs to use it on the supabase platform here: https://supabase.com/docs/guides/api#graphql-api-1
Is that what you're looking for? If not, could you please share some specifics about what you're missing and we can add more docs

The GraphQL docs no longer exist at that link. Is there any other explanation of the basics of how this works?

@levity thanks for pointing out the broken link. This link should work: https://supabase.com/docs/guides/graphql. The feature is still supported. Try it out and let me know if the docs are not clear or you run into any problems.


Customer Name Misspelled

Under customer stories on this page, the name ExxonMobil is spelled wrong.  There is no "e" on the end.  Please update it.
Thanks!
[Enter feedback here]

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

ID: 6866e2cf-b488-c40b-7cd0-7b93bfae68a3
Version Independent ID: 4c6fa136-ee4e-9182-9b91-0e23bb8840c4
Content: Overview of Dynamics 365 Field Service (contains video)
Content Source: ce/field-service/overview.md
Service: dynamics-365-field-service
GitHub Login: @FieldServiceDave
Microsoft Alias: daclar

@Nick-Saban, thanks for the feedback. We've made the suggested update and changes will be live shortly.


Interfaces of \Device\ConDrv device objects are not shown

Latest Process Hacker version. Running as asmin.
Open a simple cmd.exe process.
In ProcessHacker, Double click on it. Go to Handles tab. Only \Device\ConDrv is shown.
There should be 5 interfaces of that object.

\Device\ConDrv\Connect
\Device\ConDrv\Reference
\Device\ConDrv\Input
\Device\ConDrv\Output
\Device\ConDrv\Output (StdErr)

These are shown in Process Explorer.

Running as asmin -> admin maybe?

These are shown in Process Explorer.

Process Explorer incorrectly concentrates the device strings giving ConDrv handles a name which doesn't exist.

Only \Device\ConDrv is shown

This is the name returned by ObQueryNameString which is correct.
The ConDrv file handles don't have waiters/busy flags set so KPH doesn't go into the path for device objects and don't query the RelatedFileObject:
https://github.com/processhacker/processhacker/blob/4fee64ee28a58628c0be2ce4877331a8b7d3cdc2/KProcessHacker/object.c#L394-L397
There would need to be an explicit check for ConDrv which might introduce a deadlock. Process Explorer avoided the issue by only querying the tail device string but this isn't correct and ends up showing names for devices which don't actually exist.
NPFS.sys (pipes) has the exact same design as ConDrv.sys and doesn't have that same problem so isn't this issue a bug in ConDrv?

I have zero idea about kernel mode stuff. But I can aggree that ConDrv is different that other typical km drivers. Whatever the Process Explorer does it helps me to poke around.
Maybe you could check the process subsystem to CUI.

ConDrv is different that other typical km drivers.
Maybe you could check the process subsystem to CUI.

We could ask about it on their github issues?
https://github.com/microsoft/terminal

🤷♂

BTW, forgot to say that there is one interface in it's full form in cmd.exe process's handle list, this one \Device\ConDrv\Server\Reference\Connect\Input. But it only shows if cmd.exe is executed from Win+X menu. So, something is working at full potential but not always :)

Could probably remove the check for (((PFILE_OBJECT)Object)->Busy || ((PFILE_OBJECT)Object)->Waiters)) and have all FO's go through KphQueryNameFileObject.

Instead of removing anythin frim kernel mode driver, I would like to suggest add an option/ioctl to disable it from user mode.

have all FO's go through KphQueryNameFileObject

This would probably work better.

I would like to suggest add an option/ioctl to disable it from user mode.

Why would it need to be disabled?

I mean to change the check or state or whatever the code does, like an experimental option.


Security Update 2018-001 Breaks Activation Tool?

OS Version: 10.13.4
Mac model: Late-2011 MacBook Pro
Dongle or replaced card?: Replaced Card
Used dongle/card: BCM94331PCIEBT4AX

Your Issue: Continuity "not supported" in System Information. It seems the "Security Update 2018-001" is preventing the tool from working.
Steps done to try to fix the issue: Tried re-patching, no change.

I have Macbook Pro 8,2 (Early 2011) and (I believe) the same replacement Airport card.
Running MacOS High Sierra 10.13.4 with all up to date patches.
Running Continuity Activation latest Beta.
My System Report Bluetooth shows:
Bluetooth Low Energy Supported:	Yes
Handoff Supported:	Yes
Instant Hot Spot Supported:	Yes
Verified Instant Hotspot is working as expected using my iPhone and iPad.
So not seeing an issue on MBP Early 2011 (MacBook Pro 8,2)

@Sean Hoyt
Drat! Just in the process of installing that security update as we speak (that was fast of you, dude!). And I’ve only just started enjoying full Handoff and Continuity in the past week, having finally plucked up the moxie and found the time to install my Wi-if extreme card (~4CAX) ordered and received late last year.
No big worries, because I’m dual booting both Sierra and High Sierra from different drives; Safari, Pages, Numbers, Keynote and others work very well in Sierra (and High Sierra with the exception of Safari for some reason - appears in the dock but fails to open).
Will investigate further after the security update finishes.
Thanks for the heads-up; good stuff as usual!
👍🏽
Sent from my iPad

On 25 Apr 2018, at 01:44, Sean Hoyt<EMAIL_ADDRESS>wrote:
OS Version: 10.13.4
Mac model: Late-2011 MacBook Pro
Dongle or replaced card?: Replaced Card
Used dongle/card: BCM94331PCIEBT4AX
Your Issue: Continuity "not supported" in System Information. It seems the "Security Update 2018-001" is preventing the tool from working.
Steps done to try to fix the issue: Tried re-patching, no change.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@seanhoyt -- Can you say whether you disabled SIP when you reinstalled the Activation tool after the Apple patch?

I just did the update, rebooted.   Kept SIP disabled and reinstalled the Activation tool.  Reboot.
All is well....   Everything is "Yes" as in my first post above.
15in Macbook Pro 8,2 (Early 2011), 2.2GHz Quad-Core i7, 16MB RAM, 1TB SSD,  w/CAX replacement Airport card.
(Now I just wish I could find an AC card that fits/works.   Really don't see a good reason to replace this old dog MBP anytime soon...   Seems the uCard isn't available anymore...I'm sorry I didn't get one when they were available....)
In any event, keeping SIP disabled and reinstalling the Activation tool appears to have worked for me...

@DOCSISMAN
Good stuff!
Wasn’t aware there was an AC card available - I just love my trusty old 17” early 2011 8,3 core i7 MacBook Pro with 8mb RAM (may double that soon!).
Will do exactly the same and update...
Sent from my iPhone 5S

On 25 Apr 2018, at 02:42, DOCSISMAN<EMAIL_ADDRESS>wrote:
I just did the update, rebooted. Kept SIP disabled and reinstalled the Activation tool. Reboot.
All is well.... Everything is "Yes" as in my first post above.
15in Macbook Pro 8,2 (Early 2011), 2.2GHz Quad-Core i7, 16MB RAM, 1TB SSD, w/CAX replacement Airport card.
(Now I just wish I could find an AC card that fits/works. Really don't see a good reason to replace this old dog MBP anytime soon... Seems the uCard isn't available anymore...I'm sorry I didn't get one when they were available....)
In any event, keeping SIP disabled and reinstalling the Activation tool appears to have worked for me...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Ok, I uninstalled the patch and reinstalled, seems like everything is back to normal. For the record, I leave SIP off (I know, I'm edgy), so there was no need to disable it.

Same here, all good…
When all is fully tested and done I intend to re-enable SIP with kext disabled (“csrutil enable —without kext”)
I had just done that when I discovered the security update and applied it - I think it caused a kernel panic or similar, because as soon as the patch installed, it reported an unexpected reboot which I logged and reported to Apple.
Fun and games...

On 25 Apr 2018, at 03:04, Sean Hoyt<EMAIL_ADDRESS>wrote:
Ok, I uninstalled the patch and reinstalled, seems like everything is back to normal. For the record, I leave SIP off (I know, I'm edgy), so there was no need to disable it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/dokterdok/Continuity-Activation-Tool/issues/434#issuecomment-384137991, or mute the thread https://github.com/notifications/unsubscribe-auth/ARu787L3WfUT4M2HHyA4zhTFDcWvto9Xks5tr9nGgaJpZM4Tin36.


Minor cleanup to symbolWalker

Instead of reviewing #17844 I thought I'd just make a pull request implementing some changes.

Use sparse arrays for number-keyed maps.
Clear the map after use to avoid leaving garbage around.
Use forEach instead of a null check followed by for-of; this reduces visitTypeList to a single line, so inlined it.
Inline other single-line functions that are only called once.

FYI @weswigham, since this is his code. 😄

What problem is this solving?

@RyanCavanaugh This PR is in lieu of code review, since it was easier to just do it than to try to explain how to do it.


Fix TX list

There is some code that can be reused in https://github.com/kryptokrona/hugin-mobile/blob/master/src/TransactionsScreen.js and https://github.com/kryptokrona/hugin-desktop/blob/main/src/routes/dashboard/components/Transactions.svelte
Some specs that would be nice:
Pagination
Fiat value
Link to explorer page
Info: hash/amount/timestamp
That's about it :)

Mostly fixed as per 1819e11. Closing.


inatri.com

https://inatri.com
https://gtmetrix.com/reports/inatri.com/JDHLjPXk/ (homepage, 5.2KB; biggest article is <40KB)

added!


Black image

terminal:
E:\AIGC\ComfyUI\venv\Lib\site-packages\diffusers\image_processor.py:147: RuntimeWarning: invalid value encountered in cast
images = (images * 255).round().astype("uint8")

Hi, please make sure to use the sdxl-vae-fp16-fix as the VAE. Or set the upcast_fp32 in the LDM VAE Loader node to True if your GPU memory is enough.

Thanks for your issues. I have made the upcast_fp32 to True by default to avoid the errors.


⚠ Bofrost.com has degraded performance

In dc6f0d8, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 1056 ms

Resolved: Bofrost.com performance has improved in 24e8aee.


PeakSignalNoiseRatio RuntimeError on DDP reduction

🐛 Bug
I am trying to use Pytorch Lightning DDP with 2 GPUs and PeakSignalNoiseRatio Metrics.
Logging the metrics produces the error
To Reproduce
I use the DDP on pytorch lightning with 2 GPUs and log the metrics using
from torchmetrics.image import PeakSignalNoiseRatio
full_psnr_clamp = PeakSignalNoiseRatio(data_range=(-1, 1), base=10., reduction='elementwise_mean', dim=None)
...

# inside the training_step of the pytorch lightning module:
self.log(metric_name, full_psnr_clamp , on_epoch=True, on_step=True, sync_dist=True)

Traceback (most recent call last):
  File "/path/diffusion/1839322_brats2020_train_2e5/train.py", line 122, in main
    trainer.fit(
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 529, in fit
    call._call_and_handle_interrupt(
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/call.py", line 41, in _call_and_handle_interrupt
    return trainer.strategy.launcher.launch(trainer_fn, *args, trainer=trainer, **kwargs)
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/strategies/launchers/subprocess_script.py", line 91, in launch
    return function(*args, **kwargs)
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 568, in _fit_impl
    self._run(model, ckpt_path=ckpt_path)
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 973, in _run
    results = self._run_stage()
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 1014, in _run_stage
    self._run_sanity_check()
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py", line 1043, in _run_sanity_check
    val_loop.run()
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/loops/utilities.py", line 177, in _decorator
    return loop_run(self, *args, **kwargs)
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/loops/evaluation_loop.py", line 122, in run
    return self.on_run_end()
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/loops/evaluation_loop.py", line 244, in on_run_end
    self._on_evaluation_epoch_end()
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/loops/evaluation_loop.py", line 328, in _on_evaluation_epoch_end
    trainer._logger_connector.on_epoch_end()
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py", line 188, in on_epoch_end
    metrics = self.metrics
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py", line 229, in metrics
    return self.trainer._results.metrics(on_step)
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py", line 474, in metrics
    value = self._get_cache(result_metric, on_step)
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py", line 438, in _get_cache
    result_metric.compute()
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py", line 278, in wrapped_func
    self._computed = compute(*args, **kwargs)
  File "/path/packages/diffusion/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/logger_connector/result.py", line 247, in compute
    return self.value.compute()
  File "/path/packages/diffusion/lib/python3.10/site-packages/torchmetrics/metric.py", line 602, in wrapped_func
    with self.sync_context(
  File "/gpfslocalsup/pub/anaconda-py3/2022.05/envs/pytorch-gpu-1.13.0+py3.10.8/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/path/packages/diffusion/lib/python3.10/site-packages/torchmetrics/metric.py", line 573, in sync_context
    self.sync(
  File "/path/packages/diffusion/lib/python3.10/site-packages/torchmetrics/metric.py", line 522, in sync
    self._sync_dist(dist_sync_fn, process_group=process_group)
  File "/path/packages/diffusion/lib/python3.10/site-packages/torchmetrics/metric.py", line 447, in _sync_dist
    reduced = reduction_fn(output_dict[attr]) if reduction_fn is not None else output_dict[attr]
  File "/path/packages/diffusion/lib/python3.10/site-packages/torchmetrics/utilities/data.py", line 45, in dim_zero_mean
    return torch.mean(x, dim=0)
RuntimeError: mean(): could not infer output dtype. Input dtype must be either a floating point or complex dtype. Got: Long

I use torchmetrics Version: 1.1.1
I was also using other metrics as MeanAbsoluteError, StructuralSimilarityIndexMeasure, or JaccardIndex without issue, but adding this one produce an error on multi gpu

Ok, using data_range=(-1., 1.) instead of data_range=(-1, 1) resolve the issue I think.
Idk if it's a bug or not. kinda sus

Ok, using data_range=(-1., 1.) instead of data_range=(-1, 1) resolve the issue I think. Idk if it's a bug or not. kinda sus

maybe worse to mention it in docs...


Traning resources

Hello, I would like to know which GPU and how many GPUs you used to train your model, and how long the training takes approximately.
Thank you. :)

I trained the model using a single RTX 3090 GPU, which took about 25 minutes.

Thank you for your great work and answer to my questions! :)


Towards a more lightweigh transfer action

This patch removes the extra transfer_continuation_action and the transfer_base_action
among other things that haven't been used to reduce binary bloat.
Flyby: Fixing header tests

Doesn't work out as intended. The compile time overhead seems to be indeed even higher.


client.get_all_tickers() returning an empty array

Hey, since few minutes,
client.get_all_tickers() is returning an empty array.
I dont know where the issue is.
Thanks
Jerry

I have the same issue, I tried another approach (through the API from Toshima: https://github.com/toshima/binance), yet gives the same response. So looks like the issue os with the Binance API(though I am no expert). Anybody have any other ideas?

found it:
https://twitter.com/cz_binance
binance is under maintenance ...


GPU CI: Test with Python 3.9-3.12

Now that Python 3.12 support is merged, this PR runs CUDA tests with Python versions 3.9 - 3.12 on gpuCI. A couple of other changes are required to support this:

I built new cubinlinker packages for Python 3.12. These have to come from the rapidsai-nightly conda channel at present. Once they have proven to be stable for a few days, they will be moved to the rapidsai channel and I will create a new PR here so that cubinlinker comes from the rapidsai channel again.
CUDA Python is now obtained from conda-forge, as it is a better source for CUDA packages than the NVIDIA channel - in particular the latest version on conda-forge supports up to Python 3.12.

gpuci run tests

gpuci run tests

gpuci run tests

gpuci run tests

gpuCI is having an issue at the moment, so I'll mark this as "Pending CI" for a reminder for the time being.

gpuci run tests


Heads up message to Solr API token holders about Solr API deprecation in February

From Amy:
I'm seeing 22 tokens issued. 19 have notes next to them regarding who they're issued for, 2 are the ones we use internally, 1 is unrecognizable. Here's the list of 19 notes:
did not contact:

[x] 1. DPLA
[x] 2. UCR
[x] 5. John Kunze
[x] 6. Vega at UCI
[x] 12. Noah at UCR (https://help.oac.cdlib.org/a/tickets/40148)
[x] 18. Tim Frazee Cast Iron Coding developer working on Rikolti
[x] 19. Lucas Thurston Cast Iron Coding developer working on Rikolti

contacted:

[x] 3. UCM (no specific contact listed; contacted Alisak and Emily)
[x] 4. Pepperdine University: Grace Ye<EMAIL_ADDRESS>(https://help.oac.cdlib.org/a/tickets/6925)
[x] 7<EMAIL_ADDRESS>(https://help.oac.cdlib.org/a/tickets/13207)
[x] 8. Quinn Hart ucdavis<EMAIL_ADDRESS>(https://help.oac.cdlib.org/a/tickets/13407)
[x] 9. pia smith<EMAIL_ADDRESS>(https://help.oac.cdlib.org/a/tickets/14030)
[x] 10. Mark Matney @ UCLA<EMAIL_ADDRESS>[x] 11. Mary Elings @ Bancroft with Quinn at Stanford<EMAIL_ADDRESS>[x] 13. David Smith<EMAIL_ADDRESS>(https://help.oac.cdlib.org/a/tickets/69995)
[x] 14. Mike Drake<EMAIL_ADDRESS>https://help.oac.cdlib.org/a/tickets/71072
[x] 15. Karl Kaebnick Rhizomes Project<EMAIL_ADDRESS>https://help.oac.cdlib.org/a/tickets/79408
[x] 16. Stephanie Labou<EMAIL_ADDRESS> https://help.oac.cdlib.org/a/tickets/113298 Data Science Librarian at UCSD
[x] 17. Xiaohan Yan<EMAIL_ADDRESS>https://help.oac.cdlib.org/a/tickets/113180 researcher at the University of Wisconsin Milwaukee working with UCSD on data collection on Collection as Data project

Email sent! Also posted as a FD forum announcement: https://help.oac.cdlib.org/support/discussions/topics/9000062015


Allow users to manage Alloys

Employees should be able to see the list of alloys
Admins should be able to edit existing alloys
Admins should be able to create new alloys
Admins should be able to delete existing alloys when not already in use

Need to handle the form submission with errors and unsaved deleted, updated and added data


Write a Python program to find average of digits of a number by recursion

Description
Write a Python program to find average of digits of a number by recursion
Average of digits of a number is the sum of digits of the number divided by the number of digits in the number. For example, the average of digits of 123 is 6. The sum of digits of 123 is 6 and the number of digits in 123 is 3. So, the average of digits of 123 is 6/3 = 2.
Input  : 123
Output : 2

How to contribute

Save the solution in find-average-of-digits-of-a-number-by-recursion.py file
Add find-average-of-digits-of-a-number-by-recursion.py file in program/find-average-of-digits-of-a-number-by-recursion folder

!assign


Keywords are not identified/not auto complete/doens't come for process library.

Hello guys,
I don't see any of process keywords are working on my machine. Please let me know if I need to do change my system setup or what is the issue exactly.
None of the keywords are identified from process library. In curious I copied and pasted the example test from Process keyword documentation page (http://robotframework.org/robotframework/latest/libraries/Process.html#Run Process), There also I don't see any keyword is recognized in pycharm. Please check attachment for better understanding of my issue.
Thanks,
Sudhakar
8123456633

What Robot version did you use? Can you provide a simple example demonstrating the problem?

Closing due to lack for information.


feat(headless): Add FrequentlyViewedSameCategory and FrequentlyViewedDifferentCategory strategies

The failing test doesn't seem to be related to these changes

Branch name should contain a JIRA # so the hooks add the link to the commits.
What is the purpose of those 2 controller, wouldn't one of them be similar to headless-frequently-viewed-together ?

Branch name should contain a JIRA # so the hooks add the link to the commits.
What is the purpose of those 2 controller, wouldn't one of them be similar to headless-frequently-viewed-together ?

There is no Jira ticket open for this change AFAIK. This is for a demo by the commerce product team for https://github.com/coveo/storefront-headless.
It is similar to headless-frequently-viewed-together, the difference is that we only want to show one category at a time. For exemple with FrequentViewedSameCategory we will have a "Top hats" section on the main page.

I feel there should be a way to pass in the strategy used for the recommendation rather than hardcoding it in a ID, and then having to duplicate the controller for frequently-viewed-together each time we want to try a new strategy to simply change that ID.


Added link to AI Index example

Added link to AI Index example
Updated Data Lake Analytics, "Add Data Source" snapshot.

Docs Build status updates of commit c226152:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit a2f3e42:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

academic-services/graph/media/configure-analytics-account-datasource.png
:white_check_mark:Succeeded

academic-services/graph/samples-databricks-analytics.md
:white_check_mark:Succeeded

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


dependencies compatibility

Hi!
I've got an issue with dependency versions.
First of all I think TF 2.5 should be totally optional. I am using pytorch and don't want to install TF.
Second one:
Your library requires  "numpy==1.19.5".
But gymnasium 0.28.0 depends on numpy>=1.21.0 and tensorflow 2.5.0 depends on numpy~=1.19.2.
As result I have no chance of installing your env.

Hi!
Thank you very much for pointing this out!
Indeed, there were cross-dependencies between the environments and training sections, even dependency version conflicts as you correctly pointed out.
The project has now been split up into separate modules, such that the default install will now only regard the environments and not the training code.
Please let us know if there are any further issues!


Fixed a typo

fixed a minor spelling mistake

@aman-maharshi Thanks for fixing that! I appreciate the contribution!!


Add g:OmniSharp_fzf_options to allow customizing FZF prompts.

I wanted to make my OmniSharp FZF window bigger and thought I'd implement it via a setting that I could contribute back.  Happy to make changes if needed.

Adding docs in another commit.

Should be all set now!

Great stuff, thanks a lot!

I love omnisharp-vim so I'm happy to contribute back!


Iterating over an Iterable host object triggers TypeError: JavaObject[...] is not iterable (since 21.1.0)

Consider the following code snippet:
try (Context context = Context.create("js")) {
	context.getBindings("js").putMember("list", new ArrayList<Object>());
	context.eval("js", "for (let obj of list);");
}

In CE 21.0.0 and before, this runs just fine. Since 21.1.0 however, a TypeError is thrown:
TypeError: JavaObject[java.util.ArrayList] is not iterable
	at <js> :program(Unnamed:1:0-21)
	at org.graalvm.sdk/org.graalvm.polyglot.Context.eval(Context.java:379)

JDK: 11
OS: 5.4.0-73-generic GNU/Linux
Architecture: amd64
OpenJDK Runtime Environment GraalVM CE 21.1.0 (build 11.0.11+8-jvmci-21.1-b05)

You should allow host access for your test-case to work, i.e., you should use something like Context context = Context.newBuilder("js").allowHostAccess(HostAccess.ALL).build() instead of Context context = Context.create("js"). When the host access is not allowed then JavaScript is not allowed to see the structure of host (= Java) objects, i.e., it is not allowed to see that list is iterable. So, the failure of your original test-case is expected.

Indeed this works for HostAccess.ALL, but this is unacceptable as I am strictly bound to HostAccess.EXPLICIT for all my interops.

Well, you did not mention (in your original report) that you use some kind of HostAccess already. That's why I used the most simple configuration (HostAccess.ALL) in my suggestion. If you are using HostAccess.EXPLICIT then I suggest you to use
HostAccess hostAccess = HostAccess.newBuilder(HostAccess.EXPLICIT).allowListAccess(true).build();

(and Context context = Context.newBuilder("js").allowHostAccess(hostAccess).build()).

Aha, I was unaware that I could build my own HostAccess in that particular way (and as now I see many other ways).
Thanks!


The exporting of resulting OSM files can potentially be sped up

This requires confirmation later, but I noticed on this StackOverflow discussion:
https://stackoverflow.com/questions/44560655/python-writelines-and-write-huge-time-difference

Why is there such a large difference in the file writing time for write() and writelines() even though it is the same data?

I have used ogr2osm for a while, and I notice that it can be quite slow on larger files. Like, unusually slow.
It seems the exporting can be sped up. Will investigate later.

Benchmarking the existing method
First, I must admit my current PC is at mid-high tier, and so things might be faster than average. But the point should still stand even for slower computers. Also, extra care must be taken because the files to be processed can be very large.

Some details:

Command run: python -m ogr2osm -t test_translate -o target.osm source.geojson
Size of data source: about 430 MB
Measuring the duration: adding some basic measurement at DataWriterContextManager.output using time.time()
I/O are all on SSD

I run the command for 5 times.
Measured time (average): 19.455 seconds

One thing that sticks out when doing some detailed profiling:
Beginning to time the export
Writing file header
Writing nodes
Writing took (to_xml, write): 7.521965265274048, 0.6387271881103516
Writing ways
Writing took (to_xml, write): 10.0064537525177, 0.5809998512268066
Writing relations
Writing took (to_xml, write): 0, 0
Writing file footer
Time elapsed was 18.999 seconds

It is actually the to_xml part which is slow, not the IO.
It seems we may continue with some sort of multi-threading.

Hmmm. We are already using lxml for fast export.
Spawning new threads does not work due to Python's GIL, which effectively encourages single-threaded code.
Playing around with multiprocessing did not bring much immediate results because we will need to do extra work to pass values into the subprocesses. This might be viable in the long term, but not something that can be done in a single day.
If we are able to somehow utilize multi-processing effectively, then perhaps there will be a significant speedup.

This just dropped a few days ago:
https://www.bitecode.dev/p/whats-up-python-the-gil-removed-a
THe removal of GIL in Python can be very useful to this speed up: instead of spawning difficult-to-control subprocesses to parallelize XML-to-string, we may finally have a easy-to-control multi-threaded XML-to-string process to speed up exporting.

Is this still active scope of work where the tool can be sped up ?

For me it is not active scope, but I did not close this issue either. Any performance improvement is welcome.

To be fair, so much has happened to me in this past year or two, and I have forgotten I even made this GitHub issue.
The idea was/is, if the GIL news was dropped too recently, then we need to give time for the bloggers, influencers, and content farms to cook up the new articles and tutorials. When they've finished cooking, we go in and learn the new situation, and then relate it to the "multiprocessing to-xml" idea proposed by past-me.
Only after this waiting period will we clearly know whether we can improve performance in this direction. (I hope we can.)


Support for classnames / clsx packages

Is it possible to add support for classnames and clsx packages from npm.
I mostly use this extension for React projects and I often use these package.
I tried to find the right regex to suggest a PR but unfortunately I could do very little.
Thank you!

Hi @liel-almog
Sorry for late.
I guess you are trying to fold multiline? because I don't really know what you mean by classnames and clsx packages from npm . if you could mark a place at the screenshot of which part you want to fold?

I really think this is more about multi-line folding because I have times when applying styles dynamically using variable and my formatter expends it across multiple lines

hey @liel-almog
As I have explained here https://github.com/moalamri/vscode-inline-fold/discussions/69#discussioncomment-4150206
It is not possible at the moment :(
Feel free to re-open if needed 👍🏻


[12.0-stable] Set RS485 mode for ttyXRUSB2/3 on kontron devices

On Kontron devices 402/403/202 set ports 2 and 3 to RS485 Half-duplaex mode
Signed-off-by: Mikhail Malyshev<EMAIL_ADDRESS>(cherry picked from commit 43d4521abf86b2059d9eb30c55f0818a81971662)

Don't we need it in 11.0?

Don't we need it in 11.0?

no, whoever uses Kontron devices won't run 11


Fixed Issues in merging with Test Plan which caused misconfiguration

Verified the fix in RB by patching the task.

Looks fine. Pushing this in.


docs: Removing Twitter Account

Signed-off-by: Chris Short<EMAIL_ADDRESS>Issue #, if available:
Description of changes:
Removing Twitter Account for now. Will bring it up later.
Testing done:
Local IDE

[X] I've reviewed the guidance in CONTRIBUTING.md

License Acceptance
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Bypassed e2e tests for doc only change.


Move smart ETW field logging to base etw library

This is so we can use the smart logging functionality from hcsshim.

I'm not quite sure of the masterplan here but LGTM


Move import and export state buttons to admin page

Having these in the emergency kit makes users think they should be using this but seems to be breaking things for users. Probably best to hide this from reach.

hm I can hide for now the only problem is this page is designed to load even when the node isn't starting up... the admin page isn't built like that

I guess if they're broken they're broken, will move for now


Anonymous face

No matter which video, I run it always gives print
THIS AN ANONYMOUS FACE, DISCARD
is there a way to solve it?

@zhouyuchong obj_meta.parent always give none... Can you please guide me how to tackle this ?

@sbmalik sorry, this repo has many problems, but I'm been busy with another job and didn't fix them. For your problem, that's because nvvideoconvert will drop the obj.parent from the metadata, so you should do the job earlier by adding the probe you want to extract the obj.parent before the nvvideoconv.
I'll find some time to update this repo recently and @ you at that time.

@zhouyuchong Thank you for your response, I'll try your solution.
However, Looking forward for the updation of this repository.

@sbmalik Hi, I update this repo. you can check the codes now. main branch can play all format video files, and the process-mode-2-version could only play rtsp source on my pc.
the old version is using retinaface as secondary nvinfer and set its process-mode to 2, which means only detect face on the top of yolo's detections. However, for some reason, it fails on regular local video files, there is no error and no debug information which make it hard for me to find the reason.
So I have to give up on Plan A and try to connect face and body manually. The performance is not very good to be honest especially when crowded.
I'll dig into this if I have time.

@zhouyuchong I check it and it's working very well. Thank you for providing the support on this repo. Moreover, I wanted to ask that I am unable to get the face-recognition (detection is working like charm). Can you share any sample video where recognition is working good?
if you want I can open another issue because the problem related to this is solved already.

@sbmalik what do you mean unable to get the face-recognition? I've tested different video types:rtsp, mp4, h264, etc. Just find one on the Internet, if there is something wrong, please let me know.

@zhouyuchong face-recognition means identification of person face, like facenet do. face-detection is working very well. but recognition is causing trouble, if a person appears after 5,6 frames it will given a new id.

@sbmalik Oh, that is another problem. The id is from nvtracker and in this repo I use NvDCF, you can check here for more details.
I tried IOU, NvDCF and ReID, to be honest, none of them work very good. For your instance, if a object disappears from screen and comes back after some time, you can set maxShadowTrackingAge,  probationAge and earlyTerminationAge for better accuracy.
Since the nvtracker is not open-source as well, there isn't a good way to solve this temporarily. So I add ArcFace to extract the facial feature. If you are building a face-recognition app, you can try to send the results out or save them locally.

@zhouyuchong sure, but how to make ArcFace works (with labels of person faces)?

@sbmalik the arcface works as the tertiary gie in the pipeline, and you can find the data in here.
I didn't achieve the face comparison in the pipeline. If you want a real-time comparison, you can do it in the probe by compare the output to your own facial-feature data. Then you can add a label to the video.


CHORE: ES6 Language Update - REF ISSUE # 9589

updated the file to use const where appropriate and using an anonymous arrow function on the exports.
Got some code for us? Awesome 🎊!
Please include a description of your change & check your PR against this list, thanks!

[+] There's a clear use-case for this code change
[ https://github.com/TryGhost/Ghost/issues/9589 ] Commit message has a short title & references relevant issues
[true] The build will pass (run npm test)

More info can be found by clicking the "guidelines for contributing" link above.

Thanks @hkd987 for your help!
The ES6 migration is tracked here. Please do not create any more PR's because of https://github.com/TryGhost/Ghost/issues/9589#issuecomment-392489837. Please get involved into https://github.com/TryGhost/Ghost/issues/9589, otherwise multiple people will work on the same files.

Thanks for the heads up. I have commented and read the thread looks like no one is working on the section I started on.


Docker extension creates new terminal session with no console view: VS Code 1.17 new relaese

VSCode Version: 1.17
OS Version: Windows 10 Creators Update
Terminal: Powershell

Steps to Reproduce:

Download and install VS Code 1.17
Download and install Docker extension
Create dockerfile and go F1 > Docker: Build or Docker: Run
It creates another terminal session with no console view like this:

Reproduces without extensions: No. requires Docker extension
Extensions list:
abusaidm.html-snippets
Angular.ng-template
christian-kohler.npm-intellisense
chrmarti.regex
CoenraadS.bracket-pair-colorizer
cssho.vscode-svgviewer
donjayamanne.githistory
ecmel.vscode-html-css
eg2.tslint
eg2.vscode-npm-script
formulahendry.auto-rename-tag
ginie.pug2html
HookyQR.beautify
humao.rest-client
humy2833.ftp-simple
joelday.docthis
johnpapa.Angular2
kisstkondoros.typelens
moppitz.vscode-extension-auto-import
mrmlnc.vscode-jade-snippets
ms-vscode.PowerShell
msjsdiag.debugger-for-chrome
PeterJausovec.vscode-docker
pflannery.vscode-versionlens
rubbersheep.gi
Shan.code-settings-sync
thekalinga.bootstrap4-vscode
ziyasal.vscode-open-in-github

I encountered this problem on two machines, both has same Windows and VS Code configuration and same project.
This problem has appeared after 1.17 update, no problem on previous version.

The Rust extension does the same when you e.g. do a Cargo build. It'll open a new terminal every time. After the first one, the new ones don't show the terminal.
If you switch to e.g. the Output tab and then back to the Terminal tab, it does show the terminal.
If you delete the opened terminals until you've closed all of them and then do a new build, it'll render it correctly again. If you then do a second one, it won't show it again.

@Kenya-West If you resize the terminal pane (make it taller or shorter), do the contents of the terminal appear?

If you switch to e.g. the Output tab and then back to the Terminal tab, it does show the terminal.

@pvginkel thanks! This helped.

If you resize the terminal pane (make it taller or shorter), do the contents of the terminal appear?

@chrisdias this also helped. Thanks!
So, OK. There are two workarounds, but when are developers gonna fix the bug? Does this bug happen only on Windows or on any platform?

@Tyriar dupe of https://github.com/Microsoft/vscode/issues/34554?

Tried this one code --args --disable-gpu or code --disable-gpu: https://github.com/Microsoft/vscode/issues/35915#issuecomment-335209105 - didn't help.
DevTools say nothing.

Duplicate https://github.com/Microsoft/vscode/issues/35728


[ChatGPT] Can't add new model if all are deleted

Extension
https://www.raycast.com/abielzulio/chatgpt
Description
I deleted all models. The screenshot suggests Cmd T would bring up a dialog to add a new model, but it doesn't.

Steps To Reproduce

Install ChatGPT extension, bring up the model view and delete the default model.
Hit Cmd+T to create a new model

Current Behaviour
Cmd T does trigger any response.
Expected Behaviour
Cmd T brings up a form to add a new model.

Extension
https://www.raycast.com/abielzulio/chatgpt
Description
I deleted all models. The screenshot suggests Cmd T would bring up a dialog to add a new model, but it doesn't.

Steps To Reproduce

Install ChatGPT extension, bring up the model view and delete the default model.

Hit Cmd+T to create a new model

Current Behaviour
Cmd T does trigger any response.
Expected Behaviour
Cmd T brings up a form to add a new model.

Could you elaborate on how did you delete all the models? Seems I didn't allow the user to delete all the models including the default one.

Not sure how I deleted the default model, it was by accident and some time ago. Maybe I renamed it and then deleted it?
Is there a way to reset the extension?

I uninstalled the extension and installed it again. That way, I got the default model back. Now the actions are visible and I can add new models, too.

I also have this issue, the models just disappeared by themselves. I don't want to uninstall as I don't want to lose my Conversations history. is there any way to fix this or to preserve my data?

I also have this issue, the models just disappeared by themselves. I don't want to uninstall as I don't want to lose my Conversations history. is there any way to fix this or to preserve my data?

Same here, and just randomly happened. No more models, and can't create new ones without destroying all data/reinstalling ...


asc-key-to-qr-code-gif: init at 20180613

Motivation for this change
NOTE No idea why I only had to run substituteInPlace on convert and not on e.g. qrencode.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@ryantm any idea on why I only had to run substituteInPlace on convert and not on e.g. qrencode?
Also, are there more phases/steps I can disable? nix-build fetches gcc, patchelf and lots of other things, and I'm not sure why.

@asymmetric How are you testing it? Maybe you already have qrencode on your path. Can you try running it with nix-shell --pure -p asc-key-to-qr-code-gif?
You could try using nix why-depends to see what's up with the dependencies.
You can control exactly which phases run by using the phases attribute: https://nixos.org/nixpkgs/manual/#ssec-controlling-phases

You were right, it was using my local qrencode.
The nix-shell --pure -p asc-key-to-qr-code-gif failed with error: undefined variable 'asc-key-to-qr-code-gif' at (string):1:94, and AFAIK I can't pass a custom -f.

Yeah, the nix interface is so inconsistent :(. You can use -I nixpkgs=/path/to/nixpkgs with nix-shell.

Cool! Tried it and it worked fine. Is this good to go? :)

@GrahamcOfBorg build asc-key-to-qr-code-gif

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: asc-key-to-qr-code-gif
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: asc-key-to-qr-code-gif
Partial log (click to expand)
source root is source
patching sources
configuring
no configure script, doing nothing
installing
post-installation fixup
patching script interpreter paths in /nix/store/01dvfdzql1llsy240dp927bjgh08928r-asc-key-to-qr-code-gif-20180613
/nix/store/01dvfdzql1llsy240dp927bjgh08928r-asc-key-to-qr-code-gif-20180613/bin/asc-to-gif.sh: interpreter directive changed from "/bin/bash" to "/nix/store/qckzjk3406va7h6s40cy9s75z2w715rq-bash-4.4-p19/bin/bash"
checking for references to /build in /nix/store/01dvfdzql1llsy240dp927bjgh08928r-asc-key-to-qr-code-gif-20180613...
/nix/store/01dvfdzql1llsy240dp927bjgh08928r-asc-key-to-qr-code-gif-20180613

Success on aarch64-linux (full log)
Attempted: asc-key-to-qr-code-gif
Partial log (click to expand)
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring
no configure script, doing nothing
installing
post-installation fixup
patching script interpreter paths in /nix/store/5y2lw1vbvx7gbgs8sv6w2y30nkykfv91-asc-key-to-qr-code-gif-20180613
/nix/store/5y2lw1vbvx7gbgs8sv6w2y30nkykfv91-asc-key-to-qr-code-gif-20180613/bin/asc-to-gif.sh: interpreter directive changed from "/bin/bash" to "/nix/store/9rv2bzx7jz6wjbaxij5qq580qvzksj4i-bash-4.4-p19/bin/bash"
checking for references to /build in /nix/store/5y2lw1vbvx7gbgs8sv6w2y30nkykfv91-asc-key-to-qr-code-gif-20180613...
/nix/store/5y2lw1vbvx7gbgs8sv6w2y30nkykfv91-asc-key-to-qr-code-gif-20180613

This looks good to me to merge in.


Headscale tab completion funky behaviour

Hitting tab for auto completion on a command like:
headscale nodes list
Presents an output like this:

Obviously there is no completion for that command, but still a funky behavior.

Pretty sure this is an issue with your local zsh install or one of the installed plugins (possibly using Oh my Zsh?). By 'default' (Ubuntu 22.04.1 LTS, bash here), there is simply no tab completion for the headscale command.

Nope, I use Bash and have setup Autocompletion via Headscale command.

Should note, this does not occur when there is options that completion would be able to offer


Aw/improve batching

It seems more user friendly to separate the batched operations from the non batched ones.
The current implementation of the ansatz broadcasts so it should be fine? But would love to hear about more ideas for refactoring because I originally had more in mind.
I've also added some basic tests, which just confirms that the output of the batched network is the same as for the non-batched ones.
They should probably be refactored.
includes #4

I'm merging to move on, and I've opened a few issues to split up the todo work.


Fix optional header for interactive list messages

Hi @horatiua
Thanks for your help and your great work.
The title of the PR does not match the modified code. New features have been added. Was this really your intention or is it a mistake?
Thanks.

Hi,
I only wanted the first commit to be merged.
The second one is another feature, Interactive Button Messages, that are also unavailable via the API.
Thanks!

Hi @horatiua
Can you please remove from this PR the commit what you don't want to be merged?
Thanks.

Fixed in https://github.com/netflie/whatsapp-cloud-api/pull/149


123-line-focus-touchscreen

#123
Changes
Added touch screen for linefocus

Since we don't have a foolproof solution for touch drag and scrolling we are closing this PR.


Connection is not created after importing json ?

After initializing json structure ,  node is displayed but there connection is not created.
but when i move node to another possition that time it will displays the connection links. why this is happening and how to resolve this ?
Thanks in advance.

View

#371


Loglevel option does not apply from config file

When loglevel is set from a config file, it does not apply properly, due to a precedence ordering bug between the defaults, cli args, and the config file...

I suspect that https://gitlab.torproject.org/tpo/core/tor/-/issues/33870 is a dup of this, and that the lack of log message was just this issue.


Scrolling the panel

Hi, im a bit surprised it's mentioned nowhere, i can't find any info on that, when a lot of control it's getting hard navigating the panel because i cant scroll it, also i cant scale it.

So i found "really long panel" option, how to use it?


logging message payload when "influx" codec validation fails

Hi, I am looking for some logging of the actual payload when a message fails at codec validation. Right now it is logging the below info for "influx" codec validation.
2020-02-26T13:28:37.125891449+00:00 ERROR tremor_runtime::onramp::prelude - [Codec] invalid digit found in string
Describe the solution you'd like
It would be great if the actual "invalid" character is printed at "ERROR" level and the entire payload can be printed at "DEBUG" level.
Thanks

That’s an excellent idea! It might be even worth it always logging the offender as they should be rare


Wrap long to double internally.

For supporting long measure values. The output AggregationData will all be double, even if the input values are long.

Coverage increased (+0.6%) to 77.964% when pulling 2031689a432a45ebac5edb7d714b670ec5c832ae on songy23:measure-long-impl into 63bcdcb29522d1576bc9930ef42c3a10c60fbdb7 on census-instrumentation:master.

Codecov Report

Merging #615 into master will increase coverage by 0.6%.
The diff coverage is 95.4%.

@@             Coverage Diff             @@
##             master     #615     +/-   ##
===========================================
+ Coverage     75.42%   76.02%   +0.6%
  Complexity      703      703
===========================================
  Files           128      128
  Lines          3328     3408     +80
  Branches        308      323     +15
===========================================
+ Hits           2510     2591     +81
+ Misses          755      751      -4
- Partials         63       66      +3

Impacted Files
Coverage Δ
Complexity Δ

...ava/io/opencensus/implcore/stats/StatsManager.java
100% <ø> (ø)
5 <0> (-1)
:arrow_down:

...io/opencensus/implcore/stats/MeasureToViewMap.java
95.83% <ø> (+4.16%)
12 <0> (ø)
:arrow_down:

.../opencensus/implcore/stats/MutableAggregation.java
96.47% <100%> (ø)
1 <0> (ø)
:arrow_down:

.../io/opencensus/implcore/stats/MutableViewData.java
91.78% <95.29%> (+3.78%)
18 <1> (+1)
:arrow_up:

...src/main/java/io/opencensus/stats/Measurement.java
100% <0%> (+12.5%)
1% <0%> (ø)
:arrow_down:

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 63bcdcb...2031689. Read the comment docs.

Coverage increased (+0.1%) to 77.97% when pulling f1da87d0f6e89c29c2b87b9c4d1d3eee8fcd89a5 on songy23:measure-long-impl into bf42c2c695ba80eef4b94745b187b0d553309f0d on census-instrumentation:master.

From our discussion today, I think we all agree upon wrapping long to double in internal implementation. I'll post another PR for API changes on Long type AggregationData.

Coverage increased (+0.1%) to 78.189% when pulling 98542da45645ec023183776d1f7d3f132869a719 on songy23:measure-long-impl into 6e92b0642be9afbe8dc4ce62f401ad010140d3b0 on census-instrumentation:master.

Coverage increased (+0.1%) to 78.189% when pulling 98542da45645ec023183776d1f7d3f132869a719 on songy23:measure-long-impl into 6e92b0642be9afbe8dc4ce62f401ad010140d3b0 on census-instrumentation:master.

Coverage increased (+0.1%) to 78.189% when pulling 55238357ce0e4d1747fef4a15bb03c43fec75bb5 on songy23:measure-long-impl into 6e92b0642be9afbe8dc4ce62f401ad010140d3b0 on census-instrumentation:master.

Coverage increased (+0.2%) to 78.28% when pulling 141b9f456f92bfaf9798cc8702aec1b6e33bd75b on songy23:measure-long-impl into 7882c1a644d5c037e9df5860639c3e9d3bc65536 on census-instrumentation:master.

Coverage increased (+0.2%) to 78.315% when pulling 6b77b14d292effb0191e359401a0d1b0137fbd21 on songy23:measure-long-impl into 7882c1a644d5c037e9df5860639c3e9d3bc65536 on census-instrumentation:master.

Coverage increased (+0.2%) to 78.217% when pulling ab48eaf5a324285a7106b1c5b44c4253806811fb on songy23:measure-long-impl into 6d90020b4b3505a119da65c9ea3ace6c13a83b1e on census-instrumentation:master.

Coverage increased (+0.2%) to 78.145% when pulling 8ee71953f9a299d65cccaa1316e3e9c87feee9a0 on songy23:measure-long-impl into ebb32766203b9f948e7dbb7a2c63a926abaea96c on census-instrumentation:master.

Rebased, merging soon...

Coverage increased (+0.2%) to 78.441% when pulling a28daa8c33b653666ab90699952307dabb7b462b on songy23:measure-long-impl into 61178e99293e95658ce7ac78ced5e8b7bd8a0ee5 on census-instrumentation:master.


Progressive mode for jpg by default?

In our installation, when using glide to get some png, resize it and transform to jpg, the outputted image was not configured as 'progressive'.
(as simply detected with:
http://techslides.com/demos/progressive-test.html  )
It's hard to find information on this and where it is configured, but I found this:
http://image.intervention.io/api/interlace

If interlace is set to boolean true the image will be encoded interlaced. If the parameter is set to false interlaced mode is turned off. Default: true

So by default true? But not with Glide? I couldn't find an overridden configuration anywhere, but maybe I overlooked, and/or maybe there's a fine reason to override default.
Can there be some option to use progressive, as it makes webpages load more elegant?

Progressive JPEGs are not enabled by default with Intervention. You must call the $img->interlace() method to enable this. Personally I'm not a fan of progressive, which is why Glide doesn't have this feature yet. However, I do see the value in adding this feature, so I'll add this to the upcoming release. It will most likely be enabled like this:
/img/kayaks.jpg?fm=pjpg

This is in keeping with Imgix.
Stay tuned for an update.

Hi, anything in the works for this? Otherwise I might go ahead and fork and see if I can do this myself.

This work is already done, and is going to be available in version 1.0, which will be released very soon. You can see the addition of pjpg here, and the new default parameter features here.

Closing this ticket. I've added the fm= pjpg  functionality, and it has been merged into the master branch and will be tagged shortly when I release v1.0! Hopefully not long now.
Also, see the docs for this feature here. Further, if you want to use progressive JPEGs by default, you can use the new defaults configuration option to do this.


ACE: Can't paste CUEs

Error when pasting a CUE (either from another or self ACB)
System.Runtime.InteropServices.COMException: 'Data on clipboard is invalid (Exception from HRESULT: 0x800401D3 (CLIPBRD_E_BAD_DATA))'
on ACB_FILE.cs line 444
a bit off-topic but this information from the debugger, as ACE also wasn't writing ace_log.txt even after running on Administrator

Seems to be caused by the ACB_SequenceBlock and ACB_Block classes which are unfinished and missing the [Serializable] attribute.
These 2 classes aren't used for anything but I guess they are still included in the serialization anyway.

Should be fixed now.


Extension Deployment Status - Findlast

Is your feature request related to a problem? Please describe.
Could the last (=most recent) record be selected when opening the Extension Deployment Status page?
Currently it's on the first (=oldest) one, so you have to scroll to view the current upload-status.
Describe the solution you'd like
Selection is on the last record.
(= top of the page now)
Additional context

This was addressed in the past, closing.


fix: forward balances params

Resolves #355
The trusted and exclude_spam parameters are now forwarded to the Transaction Service when requesting balances.
Example request to compare against:
curl --location 'https://safe-client.staging.5afe.dev/v1/chains/5/safes/0x4127839cdf4F73d9fC9a2C2861d8d1799e9DF40C/balances/EUR?trusted=true

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 90.704%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3859

Relevant Lines:
4198

💛  - Coveralls


Fix process agent status output

What does this PR do?
During the QA week for 7.51.0 we found that the process agent status is not correctly displayed. The initial PR that introduced the bug here https://github.com/DataDog/datadog-agent/pull/21106/commits/8155a18be67570e934bdf0bfaee6ed8f566bc521
The solution was to make sure that the statusMap["processAgentStatus" gets computed not only if there were additional options to getAndWriteStatus function. Later, I realized that that function used the optional ...status.StatusOption just for testing. Looking at the test, there is no need to pass those options around since we are stubbing the server response. In the second commit, I remove that code entirely: https://github.com/DataDog/datadog-agent/commit/93ac7576773317cbe459e00b7b2950ec83bd8bbd

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

The output of the process agent status commands works as expected.
/opt/datadog-agent/embedded/bin/process-agent status
Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided. Except if the qa/skip-qa label, with required either qa/done or qa/no-code-change labels, are applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

Does it make sense to cover this with an e2e test too ?

Does it make sense to cover this with an e2e test too ?
@pducolin I'm currently working on the status component. So, most probably, things are going to change regarding how we test the status output. I'm hoping that we do not have to use e2e test for this, as the e2e is quite heavy to run.

I will keep you posted

/merge


Added async Talib indicator

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Feature

What is the current behavior? (You can also link to an open issue here)

Right now any native Gekko indicator need to run synchronous, impossible to use async execution or callbacks. Since talib und tulip indicators are async, so they need to use the asyncIndicatorRunner, where Gekko is calculating it behind the scenes before the strategy update is called.

What is the new behavior (if this is a feature change)?

The existing approach works nice until you need async behavior inside the strategy on your own. E.g. this is the case if you write multi-timeframe strategies with custom candle batching. With this async talib indicator implementation, it is possible to add and calculate talib indicators like any other native gekko indicator, from inside the strategy.

Other information:

let's discuss first in here: https://github.com/askmike/gekko/pull/2530#issuecomment-422379725

see discussion in #2530


App crash

You have an EXACTLY the same issue with weightbufs as It Fugu15_Rootful. App instantly crashes. iOS 15.2; A13.   Here is a place where it crash:

Check if function hwx_load_model() at exploit.m works properly.

Any device on iOS <= 15.4 will fail to jailbreak. Tested with Fugu.

If weightBufs doesn't work then don't use it. I do know it's a little unreliable on iOS 15.2.

If weightBufs doesn't work then don't use it. I do know it's a little unreliable on iOS 15.2.

It does not work AT ALL. btw, what versions can use it?

Please, take a look and find out,why it does not work.

Why does it matter why it does not work? Just use a different exploit then

Only because i need Fugu15 rootful for my work. > Why does it matter why it does not work? Just use a different exploit then

If you cant fix it, just say. I cant fix i too. And my issue IS NOT mentioned in official source of weightbufs! > Why does it matter why it does not work? Just use a different exploit then

It is in hwx_load_model. I think sandbox escape failing.


Doc: add way about how to modify Admin API key in ingress

mention #1021
Type of change:

[ ] Bugfix
[ ] New feature provided
[ ] Improve performance
[ ] Backport patches

What this PR does / why we need it:

Pre-submission checklist:

[ ] Did you explain what problem does this PR solve? Or what new features have been added?
[ ] Have you added corresponding test cases?
[ ] Have you modified the corresponding document?
[ ] Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

Sorry, I forgot to checkout branches, in fact only the last commit is true for this issues.
Please help review @navendu-pottekkat


Refactor tests

This refactors a couple tests along the lines of this suggestion by @HeroicEric:
https://github.com/code-corps/code-corps-phoenix/pull/152/files#r76476749

👍


Debug using wrong current library

When trying to debug a program, I noticed there are a few issues with debug in relation to using the wrong current library:
Scenario 1: Debug from active editor
When debugging the local file mypgm.pgm.rpgle in the active editor from ibmi-company_system which I have built into the library WDSCTEST, I get an error message that the object does not exist. Since I have the CURLIB variable in my .env file set to WDSCTEST, I would expect it to check here, but when debugging the extension I see that it is checking the current library that is set in the User Library List view -> https://github.com/codefori/vscode-ibmi/blob/master/src/api/debug/index.ts#L161. I see that later on we do try to get the current library from the CURLIB env var but it does not get to that point since it fails at the previous spot -> https://github.com/codefori/vscode-ibmi/blob/master/src/api/debug/index.ts#L63

Scenario 2: Debug from Project Explorer
When IBM i Project Explorer calls the code-for-ibmi.debug command, it is not able to pass in the workspace folder which is an issue because it fails the check here to get the CURLIB from the project's .env file. One option would be to allow this API to accept a workspaceFolder. However, one thing I was wondering was why the library list and current library are needed for the SBMJOB command in the first place?

Context
Version

Code for IBM i version
2.10.2

Visual Studio Code version
1.89.1

Operating System
win32_x64

Active extensions
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0
Db2 for IBM i (vscode-db2i): 1.0.0
Emmet (emmet): 1.0.0
Extension Authoring (extension-editing): 1.0.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
GitHub (github): 0.0.1
GitHub Authentication (github-authentication): 0.0.2
IBM i Debug (ibmidebug): 1.0.0
IBM i Project Explorer (vscode-ibmi-projectexplorer): 2.10.4
JSON Language Features (json-language-features): 1.0.0
Merge Conflict (merge-conflict): 1.0.0
NPM support for VS Code (npm): 1.0.1
Node Debug Auto-attach (debug-auto-launch): 1.0.0
TODO Highlight (vscode-todo-highlight): 1.0.5
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0
WCA@IBM (wca-at-ibm): 6.3.0
WSL (remote-wsl): 0.88.2

Remote system

Setting
Value

IBM i OS
n/a

Tech Refresh
n/a

CCSID Origin
undefined

Runtime CCSID
37

Default CCSID
37

SQL
Enabled

Source dates
Disabled

Enabled features

/QOpenSys/pkgs/bin
/usr/bin
/QSYS.lib/ILEDITOR.lib

/QSYS.LIB
/QIBM/ProdData/IBMiDebugService/bin

bash
attr
GETNEWLIBL.PGM
ILEDITOR.GETMBRINFO
QZDFMDB2.PGM
startDebugService.sh

chsh
iconv

git
setccsid

grep

ls

md5sum

sort

stat

tar

tn5250

Shell env
BUILDLIB=QGPL
CURLIB=QGPL
HOME=/home/SANJULA
HOST=p8adt05.rch.stglabs.ibm.com
LIBLS=QTEMP QGPL TESTTOOLS
LOGIN=sanjula
LOGNAME=sanjula
MAIL=/var/spool/mail/sanjula
OLDPWD=/home/SANJULA
PATH=/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin:
PWD=/home/SANJULA
SHELL=/QOpenSys/pkgs/bin/bash
SHLVL=1
SSH_CLIENT=<IP_ADDRESS> 54012 22
SSH_CONNECTION=<IP_ADDRESS> 54012 <IP_ADDRESS> 22
TZ=<UTC>0
USER=sanjula
USERNAME=sanjula
WORKDIR=/home/SANJULA
_=/QOpenSys/pkgs/bin/env

Variants
{
  "american": "#@$",
  "local": "#@$"
}

Errors
[
  {
    "command": "/QOpenSys/usr/bin/qsh",
    "code": 1,
    "stderr": "CPF2111:  Library ILEDITOR already exists.",
    "cwd": "/home/SANJULA"
  }
]

Sanjula points to an issue in line 485 of vscode-ibmi/src/api/debug/index.ts:
"startBatchJobCommand": SBMJOB CMD(${currentCommand}) INLLIBL(${options.libraries.libraryList.join( )}) CURLIB(${options.libraries.currentLibrary}) JOBQ(QSYSNOMAX) MSGQ(*USRPRF) CPYENVVAR(*YES),
The problem Sanjula observed is likely to be triggered by the use of the CURLIB parameter in the SBMJOB command line. The CURLIB and INLLIBL parameters are not used in the RDi debug scenario, please evaluate whether these parameters are really needed.

@mkwan01 Morris, let me just be clear.  When doing the SBMJOB, the CURLIB parameter is setting the CURLIB, which will have the effect of sett the CURLIB for the job being debugged.  If the RPG program being debugged has LIBL qualified files it is referencing, then this will be critical for the correct execution/debugging of the target program.  Why do you think it is not relevant?

@edmundreinhardt The CURLIB parameter is not used at the debug level. The RDi debug code path does not set this parameter in SBMJOB when starting a debug session. As Sanjula indicated that the problem he observed may come from the CURLIB setting, we will let Liam decide whether there is a reason to keep the CURLIB parameter in the command line.

@SanjulaGanepola for scenario 1, the current process tries to get the type of the object being debugged to ensure it is a *PGM or *SRVPGM. The check is done using an SQL query. Can you check what you have in your Code for i output when you see the error message from your screenshot? (it should look like this: https://github.com/codefori/vscode-ibmi/blob/master/src/api/debug/index.ts#L127 - maybe the library is wrong here somehow?) If this check passes, then the debug process can carry on (and it should use the values from your .env file afterwards).
For scenario 2, I think the code-for-ibmi.debug command must be updated to allow a workspace folder to be passed as a parameter.
And both CURLIB and INLLIBL will remain in the SBMJOB command. Submitting a program call without these would make absolutely no sense, as stated by @edmundreinhardt . Qualifying files in RPG programs is a bad practice and is usually avoided; it defeats the purpose of having a library list.
@mkwan01 since RDi probably runs SBMJOB from the persistent command job started from RSE, that would explain why it doesn't set CURLIB and INLLIBL, as they are inherited from the submitting job (hopefully they are, else you may have a problem here 😅). Generally, I guess RDi debug code path won't be relevant when compared to Code for i's since they don't connect the same way to an LPAR.

In the output channel, I can see that the current library is incorrect (it uses the current library from the connection settings instead of .env file):
/home/WDSCTEST: LC_ALL=EN_US.UTF-8 system "call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')"
CREATE TABLE QTEMP.O_LJICK AS (select OBJTYPE from table(qsys2.object_statistics('QGPL', '*PGM *SRVPGM', 'MYPGM')) X) WITH DATA;
Call QSYS2.QCMDEXC('CPYTOIMPF FROMFILE(QTEMP/O_LJICK *FIRST) TOSTMF(''/tmp/vscodetemp-O_TBGiTC4G'') MBROPT(*REPLACE) STMFCCSID(1208) RCDDLM(*CRLF) DTAFMT(*DLM) RMVBLANK(*TRAILING) ADDCOLNAM(*SQL) FLDDLM('','') DECPNT(*PERIOD)')
{
    "code": 0,
    "signal": null,
    "stdout": "DB2>\nDB20000I  THE SQL COMMAND COMPLETED SUCCESSFULLY.\nDB2>\n  ?>\nDB20000I  THE SQL COMMAND COMPLETED SUCCESSFULLY.",
    "stderr": ""
}

The problem seems to actually be because of the getObjectFromUri function returning the wrong library. In the case of a file schema, I see we are using configuration.currentLibrary. Instead we should be checking here for the CURLIB env var like we do here?

@sebjulliand I am OK to have these parameters in the SBMJOB command, as far as the issue found by Sanjula would be addressed.


iis_app not actually converting to app

Cookbook version
5.0.8
Chef-client version
12.2
Platform Details
AWS Microsoft Windows Server 2012 R2 Base
Scenario:
Using the iis_app LWRP as part of my cookbook (along with the base iis::default recipe, and iis_site and iis_pool LWRPs as well), the resultant configuration in IIS doesn't actually add the app (even though the Chef run logs it as successful). The directory containing the app shows up under the associated site, but I still have to manually use the "Convert to application..." context menu in the UI to make it an app.
Steps to Reproduce:
Create an IIS site (pointed to the default application pool, for example; iis_site successfully does this)
Create a separate application pool for the app I'll be adding (iis_pool successfully does this)
Create the application subdirectory under the site root (s3_file and aws_opsworks_archive successfully pulls a zip file from S3 and expands the application directory under the site root: c:\inetpub\siteRoot\appRoot, for example)
Execute the iis_app resource which adds an app and links it to the site and appropriate application pool previously created by iis_site and iis_pool
Example resource block (using anonymized attribute references for this example):
  iis_app node['foo'][app'] do
    site_name node['foo']['site_name']
    path node['foo']['app']['path']
    application_pool node['foo']['app']['application_pool']
    physical_path node['foo']['app']['physical_path']
    enabled_protocols node['foo']['app']['enabled_protocols']
    action :add
  end

Expected Result:
The application should already be configured as such in the IIS console, linked to its assigned application pool, etc.
Actual Result:
Although the directory for the application shows up under the site (as you would expect since it's under the siteRoot), it is not an actual application, just a directory. You still have to use the "Convert to application..." contextual menu in order to associate it with the application pool. It's as if iis_app didn't execute at all.
Perhaps I'm missing something.

can you give me the values of your variables? @zanzan42
otherwise it is difficult to help, i'm going to run the default tests for win2012r2, should work

iis_app "appName" do
site_name "siteName"
path "/"
application_pool "appPool"
physical_path "c:\inetpub\siteRoot\appRoot"
enabled_protocols "http"
action :add
end
I can't give you some of the actual attribute values, but the above is approximate.
IIS and its features were already in place from recipe includes for iis, iis::mod_aspnet45 (and a few other mod_* recipes).
The physical path already exists by virtue of previous s3_file and aws_opsworks_archive resources.
Both "siteName" and "appPool" already exist by virtue of the previous iis_site and iis_pool resources.

yup, working on updating chef test kitchen to run my test recipe for everyone which generates all of these items.

Also, if it's helpful, since we have to maintain Chef 12.2 compatibility across our dependency chain, here's the relevant berksfile contents:
cookbook 'ohai', '= 4.2.3'
cookbook 'windows', '= 1.44.3'
cookbook 'iis', '~> 5.0.7'

Hi @zanzan42, just a heads up that we recognize that this is an issue. We will be working on the fix, but it will be specifically a 12.7+ fix. You will be able to use the fix if in your wrapper cookbook you include the compat_resource cookbook.

Thanks for the update. Unfortunately, 12.7+ won't help me, as the AWS OpsWorks Stacks product is Chef 12.2. That's one of the reasons why I had to go through a dependency chain validation exercise and make sure that everything was set to a version with 12.1+ compatibility. But good to know I found a real thing.

@zanzan42 you should be able to still use it with the compat_resource cookbook as stated by @iennae

I'll give that a try. I already have compat_resource included by berkshelf from other cookbook dependencies, but that has not allowed me to run any other cookbook versions with Chef version requirements above 12.2. I presume that's because my wrapper cookbook must have its own depends statement on compat_resource, but given the nature of AWS OpsWorks Stacks I'm not sure whether the version compatibility checking that it does during a custom cookbook validation will pass in the first place.

This should be resolved in iis v6.0.0 #322

As I suspected, AWS OpsWorks Stacks (which uses Chef 12.2 for Windows stacks), throws an error. This is despite my wrapper cookbook (which is calling iis_app) having compat_resource listed as a dependency.
The OpsWorks chef run error is this (which is typically what you'd see when a cookbook uses the newer style custom resource definition rather than the older LWRP):
[2017-04-07T17:48:54+00:00] ERROR: Running exception handlers
[2017-04-07T17:48:54+00:00] ERROR: Exception handlers complete
[2017-04-07T17:48:54+00:00] FATAL: Stacktrace dumped to c:/chef/runs/2c93403f-afae-4c00-ba35-1579d9b11645/local-mode-cache/cache/chef-stacktrace.out
[2017-04-07T17:48:54+00:00] FATAL: NoMethodError: undefined method `property' for Chef::Resource::IisApp:Class
The full stacktrace on the host is this:
Generated at 2017-04-07 17:48:54 +0000
NoMethodError: undefined method property' for Chef::Resource::IisApp:Class c:/chef/runs/2c93403f-afae-4c00-ba35-1579d9b11645/local-mode-cache/cache/cookbooks/iis/resources/app.rb:25:in class_fr
om_file'
c:/opscode/chef/embedded/apps/chef/lib/chef/mixin/from_file.rb:42:in class_eval' c:/opscode/chef/embedded/apps/chef/lib/chef/mixin/from_file.rb:42:in class_from_file'
c:/opscode/chef/embedded/apps/chef/lib/chef/resource/lwrp_base.rb:52:in build_from_file' c:/chef/runs/2c93403f-afae-4c00-ba35-1579d9b11645/local-mode-cache/cache/cookbooks/compat_resource/files/lib/chef_compa t/monkeypatches/chef/resource/lwrp_base.rb:50:in build_from_file'
c:/opscode/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:220:in load_lwrp_resource' c:/opscode/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:205:in block in load_lwrps_from_cookbook'
c:/opscode/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:204:in each' c:/opscode/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:204:in load_lwrps_from_cookbook'
c:/opscode/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:121:in block in compile_lwrps' c:/opscode/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:120:in each'
c:/opscode/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:120:in compile_lwrps' c:/opscode/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:73:in compile'
c:/opscode/chef/embedded/apps/chef/lib/chef/run_context.rb:96:in load' c:/opscode/chef/embedded/apps/chef/lib/chef/policy_builder/expand_node_object.rb:73:in setup_run_context'
c:/opscode/chef/embedded/apps/chef/lib/chef/client.rb:249:in setup_run_context' c:/opscode/chef/embedded/apps/chef/lib/chef/client.rb:446:in run'
c:/opscode/chef/embedded/apps/chef/lib/chef/application.rb:253:in run_with_graceful_exit_option' c:/opscode/chef/embedded/apps/chef/lib/chef/application.rb:230:in block in run_chef_client'
c:/opscode/chef/embedded/apps/chef/lib/chef/local_mode.rb:38:in with_server_connectivity' c:/opscode/chef/embedded/apps/chef/lib/chef/application.rb:213:in run_chef_client'
c:/opscode/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in block in interval_run_chef_client' c:/opscode/chef/embedded/apps/chef/lib/chef/application/client.rb:382:in loop'
c:/opscode/chef/embedded/apps/chef/lib/chef/application/client.rb:382:in interval_run_chef_client' c:/opscode/chef/embedded/apps/chef/lib/chef/application/client.rb:372:in run_application'
c:/opscode/chef/embedded/apps/chef/lib/chef/application.rb:60:in run' c:/opscode/chef/embedded/apps/chef/bin/chef-client:26:in <top (required)>'
c:/opscode/chef/bin/chef-client:63:in load' c:/opscode/chef/bin/chef-client:63:in '
Whatever compat_resource translation that's supposed to be going on to enable newer custom resources to work under earlier versions of Chef doesn't appear to work.


Move ComplexPhasePortrait dependency to separate package

This dependency is a bit annoying.  I might make a SpectralMeasuresPlots.jl backage

I've put these in src/extras.jl which is not included


#396 update directory content for each file uploaded (fixed progress notification)

Put previous code in comments, if new code is valid it can be removed.
The' await Promise.all' prevented each uploaded file to show up in the directory. It only updated the folder content when all files were uploaded, but this is not so user friendly I think. And this also didn't work for the progress notifications.
And also not sure why they used a map when they do nothing with the array afterwards.

Promise.all is more performant , the for loop in this PR will wait for each file to upload.
Promise.all needs an array of promises, thats why a map function is used


 being removed in version 11.2.0

Describe the issue/behavior that seems buggy

 are being removed when I updated to version 11.2.0
I am using
  but I have a simple Minify Java code(because I am generating my code using a Java code) that simply just removes all \n therefore I had to use
 and it works perfectly in version 10.7.2 but once I updated to version 11.2.0 it removed all the BRs and my code became 1 line
Sample Code or Instructions to Reproduce

Test this code and you will see everything
https://jsfiddle.net/Ldqsy58t/1/

First time you run it and you will see no new lines
Then go to the end of the HTML code and disable the version 11.2.0 and enable the version 10.7.2
Newlines will come back :)

10.7.2

11.2.0

Expected behavior

 should stay and not be removed

Please see https://github.com/highlightjs/highlight.js/issues/2889.
This new behavior is intentional.  We no longer support mixing HTML into content as it can lead to security issues - and this can be done quite easily enough with plugins (the latest versions of v10 used internal plugins just to verify this is indeed the case) - so it has been removed from core.
HTML will now be silently stripped and a warning will be logged to the console. (which is what you are seeing)

that simply just removes all \n therefore I had to use

I'm not sure HOW you get all those BRs in the content, but the simplest solution would be to replace all the
 with actual line breaks before asking us to process the content in question.  You could perhaps do that with a before:highlightElement.

Oh, I see. I have just kept my 10.7.2 version for now maybe later I will use a plugin to solve this. Thank you for your quick response.


fix(event_source): fix regression when working with zero numbers in DynamoDBStreamEvent

Issue number: #4931
Summary
Changes
This PR https://github.com/aws-powertools/powertools-lambda-python/pull/4863 intrudoced a regression when working with Zero numbers. It's now returning NaN instead of a 0 Decimal.
User experience
from aws_lambda_powertools.utilities.data_classes.dynamo_db_stream_event import (
    DynamoDBStreamEvent,
    DynamoDBRecordEventName
)

def lambda_handler(event, context):
    event: DynamoDBStreamEvent = DynamoDBStreamEvent(event)
    for record in event.records:
        print(record.dynamodb.new_image)

Checklist
If your change doesn't seem to apply, please leave them unchecked.

[x] Meet tenets criteria
[x] I have performed a self-review of this change
[x] Changes have been tested
[x] Changes are documented
[x] PR title follows conventional commit semantics

Is this a breaking change?
RFC issue number:
Checklist:

[ ] Migration process documented
[ ] Implement warnings (if it can live side by side)

Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

Hey @bresha, can you review please?


It does not work in mc subshell

[pasha@hubbitus ~]$ sleep 1.23
                                                             [ 1s232 | Feb 14 07:50PM ]
[pasha@hubbitus ~]$ mc

[pasha@hubbitus ~]$ sleep 1.23
                                                             [ 6s736 | Feb 14 07:50PM ]

I assume it may be related to https://www.midnight-commander.org/ticket/2027
Do you have workaround for that?

In the thread you linked to, it looks like the issue has been resolved in MC itself?

Did you tried? Does it work for you?

I've never used MC, so I've no idea :)


Updating migrations after a release should go into their own file

#9 introduced a change that required changing the migration files, which was done in the existing<PHONE_NUMBER>5847_setup.up.sql. As a consumer with an existing sqlxmq installation this means manually looking into the git diff and creating a set of migration files. It'd be helpful to add changes after a release into new migration files so that it's easier to consume.

Yeah - I bumped to 0.3.x for this reason.
One of the issues with separate migration files is that it means new users of the crate have to copy across multiple files, and even for existing users, it's harder to separate the sqlxmq migrations from their own migrations if they're split across multiple files.
I'm open to suggestions for how to improve this.


fix: importmap should insert before module preload link

Description
fix https://github.com/vitejs/vite/issues/11304.
Vite now moves the existing importmap before the first script. But in #11304, there's a modulepreload link declared after the importmap. After Vite's postImportMapHook, the order became modulepreload importmap script but the correct order should beimportmap modulepreload script, modulepreload should come after import otherwise it will throw an error.

Additional context

The modulepreload link may not indicate the module declared in the importmap. But moving the importmap before all modulepreload link seems like an acceptable and no side effect practice.

What is the purpose of this pull request?

[x] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the Pull Request Guidelines and follow the PR Title Convention.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

Relies on https://github.com/vitejs/vite/pull/11515 now to add a test case.

Which version of vite.js does this fix ship with?


OVN: Host-network to remote pod/service support

This PR implements Host network to remote pod/service support
in OVN route-agent driver.
Fixes issue: https://github.com/submariner-io/submariner/issues/993
Signed-Off-by: Sridhar Gaddam<EMAIL_ADDRESS>Co-Authored-By: Miguel Angel Ajo<EMAIL_ADDRESS>

Verified the PR on an OVN build and all the HostNetworking tests pass
•SSSSSSSSSSSSSS
Ran 10 of 30 Specs in 140.283 seconds
SUCCESS! -- 10 Passed | 0 Failed | 0 Pending | 20 Skipped


Update changelog to add machine health checks PR

Issue #, if available:
Description of changes:
Testing (if applicable):
Documentation added/planned (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/cherrypick release-0.17

/approve
/woof


refactor: move module exports out

What does this change?
breaks out module exports into the smallest files possible
Why?

this will help with tree-shaking in consumer builds
core web vitals could do with better structure to enable this, so it’s largely left for now

Coverage increased (+0.007%) to 99.81% when pulling 0d401b65b7b08eb1ca2affdb1f4d8698eccece00 on move-exports into 98b1b2ebfbed6891f9b433b9d35499649e179a09 on main.


Cannot find module '@nuxtjs/eslint-module' inside of Docker container

Hi there,
I'm trying to Dockerize my new Nuxt app and getting following error:
Cannot find module '@nuxtjs/eslint-module'

Complete error stack:
Removing intermediate container c80055ef7787
 ---> 233e243ee4a9
Step 8/11 : RUN npm run build
 ---> Running in ff252419c4b4

><EMAIL_ADDRESS>build /app
> nuxt build

 WARN  Module @nuxtjs/eslint-module not found. Please ensure @nuxtjs/eslint-module is in devDependencies and installed. HINT: During build step, for npm/yarn, NODE_ENV=production or --production should NOT be used.

 FATAL  Cannot find module '@nuxtjs/eslint-module'
Require stack:
-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>-<EMAIL_ADDRESS>- /app/node_modules/nuxt/bin/nuxt.js

  Error: Cannot find module '@nuxtjs/eslint-module'
  Require stack:
  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  -<EMAIL_ADDRESS>  - node_modules/nuxt/bin/nuxt.js
  at Resolver.requireModule (node_modules/@nuxt/core/dist/core.js:609:31)
  at ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:174:38)
  at promise.then (node_modules/@nuxt/utils/dist/utils.js:1837:43)
  at process._tickCallback (internal/process/next_tick.js:68:7)
  at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)

   ╭───────────────────────────────────────────────────────╮
   │                                                       │
   │   ✖ Nuxt Fatal Error                                  │
   │                                                       │
   │   Error: Cannot find module '@nuxtjs/eslint-module'   │
   │   Require stack:                                      │
   │   -<EMAIL_ADDRESS>       │
   │   -<EMAIL_ADDRESS>   │
   │   -<EMAIL_ADDRESS>         │
   │   - /app/node_modules/nuxt/bin/nuxt.js                │
   │                                                       │
   ╰───────────────────────────────────────────────────────╯

^[[22;188Rnpm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build: `nuxt build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!

Dockerfile:
FROM node:10-alpine

ENV APP_ROOT /app
ENV NODE_ENV production

RUN mkdir ${APP_ROOT}
WORKDIR ${APP_ROOT}
ADD . ${APP_ROOT}

RUN npm install
RUN npm run build

ENV HOST <IP_ADDRESS>
EXPOSE 3000

CMD ["npm", "run", "start"]

Project repository: https://github.com/on3dd/nuxt-sign-in-form
Any idea what I might be doing wrong here?

Found the source of the error. For some reason, inside the container, the project is built only if there is @nuxtjs/eslint-module set in dependencies instead of devDependencies. Why does it work this way?

Do you notice  HINT: During build step, for npm/yarn, NODE_ENV=production or --production should NOT be used. in the WARN?
Seems like ENV NODE_ENV production in your Dockerfile makes it doesn't install devDependencies. So during build process, @nuxtjs/eslint-module cannot be found.

@gaowhen  Oops, missed that. Thanks, the problem was solved.

how did you solve this .. pls reply

@on3dd

how did you solve this .. pls reply

read the thread


Cant install nuxt-edge

Version
[nuxt-edge]
Reproduction link
-
Steps to reproduce
npm install nuxt-edge
What is expected ?
nuxt-edge should be installed
What is actually happening?
npm ERR! path C:\Users\marko\Desktop\breezecms\node_modules\acorn-dynamic-import
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\marko\Desktop\breezecms\node_modules\acorn-dynamic-import' -> 'C:\Users\marko\Desktop\breezecms\node_modules.acorn-dynamic-import.DELETE'
Additional comments?
Node: 9.7.1
npm 5.6.0
OS: Windows 10 Pro 64 bit
i disable Antivirus(ms)
no malewarebytes

This bug report is available on Nuxt.js community (#c6821)

nvm had a watcher running which  blocked something

nvm had a watch running which blocked somehting


:penguin: TOKEN_ACTION

Adds a hash to keep track of actions
Refactors build_request_array to request

:+1:


Upgrade to 2.6, now select button in Shiny doesn't work

Hello - had been running shinyproxy 2.2 with an Shiny App deployed.  Now upgrade to shinyproxy 2.6 and unable to select with button.  Any thoughts on why?  Here are my current libraries:
`# basic shiny functionality
RUN R -e "install.packages(c('shiny'), repos='http://cran.us.r-project.org')"
to install specific versions:
RUN R -e "install.packages('devtools')"
RUN R -e "require(devtools)"
RUN R -e "devtools::install_version('shinydashboard', version = '0.7.1', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('rmarkdown', version = '2.8', repos = 'http://cran.us.r-project.org')"
#RUN R -e "devtools::install_version('V8', version = '3.4.2', repos = 'http://cran.us.r-project.org')"
RUN R -e "install.packages(c('V8'), repos='http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('shinyjs', version = '2.1.0', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('dplyr', version = '1.0.6', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('sass', version = '0.3.1', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('leaflet', version = '2.0.3', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('htmltools', version = '<IP_ADDRESS>', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('httr', version = '1.4.2', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('jsonlite', version = '1.7.2', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('reactR', version = '0.4.4', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('fresh', version = '0.2.0', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('shinydashboardPlus', version = '2.0.0', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('odbc', version = '1.2.2', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('shinyBS', version = '0.61', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('shinyWidgets', version = '0.4.3', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('echarts4r', version = '0.2.3', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('lubridate', version = '1.7.10', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('DT', version = '0.18', repos = 'http://cran.us.r-project.org')"
RUN R -e "devtools::install_version('tidyverse', version = '1.3.1', repos = 'http://cran.us.r-project.org')"
`

Hi @janzjos I am afraid your description is not enough for understanding what goes wrong. Could you please be more specific about what doesn't work - what do you mean by "unable to select with button"? - and whether you see any error messages? If you could provide (at least a part of) the shiny app that fails it would also be helpful. You could also check if running the app outside of shinyproxy (still from the container) works


Allow dynamic target to resolve to no file?

Right now we allow for
dynamic('a.txt')
dynamic(['a.txt', 'b.txt'])
dynamic('*.txt')

and we resolve them to
'a.txt'
'a.txt', 'b.txt'
pattern matching.... '*.txt'

and the returned target might not be invalid (e.g. a.txt does not exist).
For the handling of -e ignore (or some other scenario), perhaps it makes sense to resolve it always as
[x for glob.glob(name) if os.path.exists(x)]

that is to say

In case of *.txt, we allow for match nothing through pattern match.
In case of a.txt, we also "match" it, so it returns [] if a.txt does not exist.

[10]
output: dynamic('A.bak')
_output.touch()

[20]
input: 'A.bak'
depends: sos_step(10)
output: 'B.txt'
_output.touch()

At least in this case, the behavior is incorrect for dynamic used for output:.

[10]
output: dynamic('*.bak')
path('A.bak').touch()

[20]
input: 'A.bak'
depends: sos_step(10)
output: 'B.txt'
_output.touch()

works due to sos_step(10).
import time

[10]
output: dynamic('*.bak')
time.sleep(5)
path('A.bak').touch()

[20]
input: 'A.bak'
output: 'B.txt'
_output.touch()

does not work because sos will try to execute 20 while 10 is still running.
Using dynamic('A.bak') for step 20 solves the problem but not sure if this is the best approach.
import time

[10]
output: dynamic('*.bak')
time.sleep(5)
path('A.bak').touch()

[20]
input: dynamic('A.bak')
output: 'B.txt'
_output.touch()

input: dynamic(mnm_high_het_input_files) , group_by = 3,

Just quote a case that may be it is not a good idea to remove targets that does not exist from dynamic because it will mess up the grouping of inputs.