Log handler errors with new version

When stackdriver logging is enabled we are getting this error:
  File "/usr/local/lib/python3.8/dist-packages/google/cloud/logging_v2/handlers/handlers.py", line 192, in emit
    self.transport.send(
  File "/usr/local/lib/python3.8/dist-packages/google/cloud/logging_v2/handlers/transports/background_thread.py", line 293, in send
    self.worker.enqueue(record, message, **kwargs)
TypeError: my_enqueue() got an unexpected keyword argument 'http_request'

Short term workaround is to disable stackdriver logging in the config.

Here's the current code for the overwritten method:
https://github.com/googleapis/python-logging/blob/70d0546544aefa04faac022a9fd527968ad00cf7/google/cloud/logging_v2/handlers/transports/background_thread.py#L225
And here's the change that updated that method signature: https://github.com/googleapis/python-logging/pull/120/files#diff-db3edb2ff8b12f988059cb305379c86203136e9b37d13d832f67c1fe5bda998c


Running go test -race fails

Tests fail to pass when specifying the race detector to run.
go test -v -cover -race

results in
Found 13 data race(s)
exit status 66
FAIL	github.com/nicksrandall/dataloader	1.059s

if the tests don't deadlock.
It may be good to add this option to the TravisCI runner.

I'm looking at LoadMany() for thread-safety... I notice we do some slice manipulation in goroutines and AFAIK slice manipulations are not thread-safe.

Thanks for bringing this up. I've just pushed an update that prevents all the race conditions detected.

Great work! Submitting a PR to add the race detector to TravisCI runs


OrbStack Docker engine does not start automatically on Sonoma beta 6

Describe the bug
After upgrading to macOS Sonoma beta 6 from Ventura 13.5.1, OrbStack's engine no longer starts automatically upon login. OrbStack's UI itself loads, and the menu bar item is available, but I now have to manually click Start to get it to run. This happens on every reboot.
To Reproduce

Boot into macOS Sonoma with OrbStack as a login item
Note the menu bar icon indicating the engine is off

Expected behavior
Upon logging into macOS, the OrbStack UI and engine both start automatically with no additional intervention.
Diagnostic report (required)
OrbStack info:
Version: 0.16.1 (160100)
Commit: 4235b341267c814080ec0e117d1e680d8f8f8676 (v0.16.1)
System info:
macOS: 14.0 (23A5328b)
CPU: arm64, 10 cores
CPU model: Apple M2 Pro
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2023-08-26T01-58-05.485017Z.zip

Screenshots and additional context (optional)
No response

Something is asking OrbStack to stop. Can you check if you have multiple copies of the app installed? Or maybe an orb command somewhere in a zshrc?

Negative on multiple copies or any orb commands in .zshrc. I even disabled the oh-my-zsh Docker plugin to be safe. I noticed some Rosetta errors in the console so I disabled Rosetta in OrbStack and rebooted. No dice. Certainly looks from this log that something goes south somewhere during the login process. Once I boot OrbStack again, it's fine and stays up.

I've got this issue as well.
When the OrbStack starts as a login item,  the docker engine is off after log in.
I have to open OrbStack to start docker engine.

@seanzxx Please share a diagnostic report from Help -> Collect Diagnostics to confirm that it's the same issue.

I can't reproduce this on Sonoma beta 6, but there are two issues going on here:

Something is asking OrbStack to stop, almost certainly the GUI app or CLI client. Still need to find a way to identify what's causing this.
The macOS Virtualization service is crashing when it shuts down. Can't do anything about this, but I'll report the bug to Apple (and hope that they fix it before stable Sonoma) if you can find a crash report or diagnostic report for "com.apple.Virtualization.VirtualMachine" in Console.app. Also check all folders in /Library/Logs and ~/Library/Logs.

OrbStack info:
Version: 0.17.1 (170100)
Commit: 542d71ebea7b190bb932c1cc60c5a0d6f2fc89e4 (v0.17.1)
System info:
macOS: 14.0 (23A5337a)
CPU: arm64, 10 cores
CPU model: Apple M1 Max
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2023-09-01T15-25-26.072635Z.zip

@seanzxx That's a different issue: you're only running into the second bug I mentioned above, which is the same issue as #272. I don't think there's anything I can do about it other than reporting it to Apple.
Please try to find a crash report or diagnostic report for "com.apple.Virtualization.VirtualMachine" in Console.app, so I can report the bug to Apple and hopefully have them fix it before Sonoma is stable. Also check all folders in /Library/Logs and ~/Library/Logs.

Also let me know if you can't find any crash reports.

Hi, @kdrag0n,
Thanks a lot for looking into this.
Please find enclosed diagnostic report generated yesterday on my machine.
DiagnosticReports.zip

Thanks,  @kdrag0n.
I've submitted a feedback.
The feedback number is FB13100384.

@seanzxx According to Apple your report doesn't include any VM crashes. Can you try again and make sure that ~/.orbstack/log/vmgr.log contains "Interval virtualization error" before filing it?

@kdrag0n  sure.   will do.

Hi,  @kdrag0n
I deleted all files under ~/.orbstack/log,  then restarted my MacBook.
There is nothing under ~/.orbstack/log after I log in.
% ls -l ~/.orbstack/log
total 0

The icon is grey and the docker engine doesn't start.

macOS Sonoma 14.0 (23A339)
~/.orbstack/log/vmgr.log
2023-09-15 08:15:26.938 OrbStack Helper[1243:21945] [VZF] Guest stopped with error: Error Domain=VZErrorDomain Code=1 "The virtual machine stopped unexpectedly." UserInfo={NSLocalizedFailure=Internal Virtualization error., NSLocalizedFailureReason=The virtual machine stopped unexpectedly.}
🌲 vmgr | time="09-15 08:15:26" level=error msg="[VM] error"
🌲 vmgr | time="09-15 08:15:26" level=info msg="Unmounting NFS..."
🌲 vmgr | time="09-15 08:15:26" level=info msg="NFS unmounted"
2023-09-15 08:15:26.950 OrbStack Helper[1243:19722] [brnet] write error: 54

@wbln Can you follow the steps in https://github.com/orbstack/orbstack/issues/568#issuecomment-1702990049 to report this to Apple, then post your feedback ID here?
Before reporting, make sure you reproduce the issue with a fresh boot, and send the report after "Internal Virtualization error" has just occurred. You can check the log timestamps to confirm that.

@seanzxx It'd also be helpful if you could try doing that and sending another report, or adding a comment to your old report with a new sysdiagnose zip. There could be two issues going on here but I hope we can get Apple to fix the crash before the stable release.

@kdrag0n FB13172595

hi, @kdrag0n ,
I'm sorry that I have formatted my disk and installed the Sonoma RC.
I don't have this issue now and I'm not able to re-produce this issue.

I have this issue too... Let me know if you need some debug info.

I am also having this issue:
OrbStack info:
Version: 1.0.1
Commit: 0d4cdcf185489f992cf8e3187884f11f4feab1aa (v1.0.1)
System info:
macOS: 14.0 (23A344)
CPU: arm64, 8 cores
CPU model: Apple M1 Pro
Model: MacBookPro18,3
Memory: 32 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2023-10-27T11-28-36.665014Z.zip

Having this issue too, if any extra info helps (still happening with 14.1).
OrbStack info:
Version: 1.0.1
Commit: 0d4cdcf185489f992cf8e3187884f11f4feab1aa (v1.0.1)
System info:
macOS: 14.1 (23B74)
CPU: arm64, 8 cores
CPU model: Apple M2
Model: Mac14,3
Memory: 8 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2023-11-06T20-21-25.502425Z.zip

Is this still an issue on macOS 14.2?

@kdrag0n Unfortunately it's still an issue for me.
OrbStack info:
Version: 1.2.0-rc2
Commit: de45946414103ff254a2299383b4e73f8e274f1b (v1.2.0-rc2)
System info:
macOS: 14.2 (23C64)
CPU: arm64, 8 cores
CPU model: Apple M1 Pro
Model: MacBookPro18,3
Memory: 32 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2023-12-15T23-46-09.347267Z.zip

Can confirm. Still happening with MacOS 14.2
OrbStack info:
Version: 1.3.0
Commit: c7cc1bd78adc76441a91befa2a50c0119c9d4703 (v1.3.0)
System info:
macOS: 14.2.1 (23C71)
CPU: amd64, 12 cores
CPU model: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Model: MacBookPro16,1
Memory: 16 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-01-03T13-26-29.655826Z.zip

Came here to say that I was running on 1.4.0 and macOS 14.3 and it was still happening. I remembered that there was a 1.4.1 update, but there was also a 1.4.2 update as well.
After updating to 1.4.2, I no longer face this issue. I performed 1 restart, 1 shutdown and another restart. OrbStack started fine every time.
However, here are my current diagnostics.
OrbStack info:
Version: 1.4.2
Commit: 31017bcb17b0cdde3f844f42aaf329130ff27dbd (v1.4.2)
System info:
macOS: 14.3 (23D56)
CPU: amd64, 6 cores
CPU model: Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Model: Macmini8,1
Memory: 32 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-02-06T12-02-29.979555Z.zip

OrbStack info:
Version: 1.4.1
Commit: 402f6cfcd5a2b2debef3e36929540c3c6f79ece3 (v1.4.1)
System info:
macOS: 14.2.1 (23C71)
CPU: arm64, 8 cores
CPU model: Apple M1 Pro
Model: MacBookPro18,3
Memory: 16 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-02-14T16-47-38.561343Z.zip

OrbStack info:
Version: 1.4.3
Commit: 75d38a2c2d9a2b42d64378a8f50f31d4d566df10 (v1.4.3)
System info:
macOS: 14.3.1 (23D60)
CPU: arm64, 8 cores
CPU model: Apple M2
Model: Mac14,3
Memory: 16 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-02-15T20-24-44.546514Z.zip

Adding another to the mix. Auto-starting had failed at some point and I needed to perform some unrelated maintenance; everything ended up moved to a new user account. Auto-starting began working again for a few test reboots, then started failing.
Opening the UI is enough to trigger everything to start properly. I've noticed that once opened and running, containers remain running properly after logging out and logging back in, but once logged back in OrbStack in the menu bar will once again say "Status: Not Running". Containers remain available and OrbStack will again return to normal operation once the UI is opened.
OrbStack info:
Version: 1.4.3
Commit: 75d38a2c2d9a2b42d64378a8f50f31d4d566df10 (v1.4.3)
System info:
macOS: 14.3.1 (23D60)
CPU: arm64, 8 cores
CPU model: Apple M1
Model: Macmini9,1
Memory: 16 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-02-16T09-21-05.276452Z.zip

OrbStack info:
Version: 1.4.3
Commit: 75d38a2c2d9a2b42d64378a8f50f31d4d566df10 (v1.4.3)
System info:
macOS: 14.3.1 (23D60)
CPU: amd64, 12 cores
CPU model: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Model: MacBookPro15,1
Memory: 16 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-02-28T08-05-08.308904Z.zip

Still cannot running automatically

If you disable the icon in the panel, but just add OrbStask to autorun, then everything will start normally.
It seems that the problem is not in MacOS, but in the premature launch of OrbStack.

Version 1.5.0 (16835) finally fixed this

Interesting, can anyone else confirm that it's fixed?

@kdrag0n The problem still exists. It's only started the orbstack automatically the first time when I restarted the macos after orbstack updated

I confirm that there is a problem, after installation and the first restart - OrbStack starts as expected, after the second restart the problem appears again.
this does not allow full use of the application for selfhosted lab.

I can also confirm this issue still exists in 1.5.0
OrbStack info:
Version: 1.5.0
Commit: afc6a0a9a22761c33329835c75a3b42a4ceb29b8 (v1.5.0)
System info:
macOS: 14.3.1 (23D60)
CPU: arm64, 8 cores
CPU model: Apple M1 Pro
Model: MacBookPro18,3
Memory: 16 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-03-25T13-17-34.071664Z.zip

Fixed for the next version.

This time for real? :D

Released in v1.6.0 Canary 1.
To update to Canary: Settings > Update channel

No，same as before

Released in v1.6.0.
New: Truly fast container filesystems on macOS: 2–10x faster, within 75-95% of native

same as befor in v1.6.0 @kdrag0n

Not fixed for me in v.1.6.0 as well. Still have to manually click start in the Menu bar.
OrbStack info:
Version: 1.6.0
Commit: 73817253cc0680b865fe411b21e187325a28d758 (v1.6.0)
System info:
macOS: 14.5 (23F79)
CPU: arm64, 8 cores
CPU model: Apple M1 Pro
Model: MacBookPro18,3
Memory: 32 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-05-28T09-44-17.079469Z.zip

I've tried to run a applescript to circumvent the issue by starting orbstack and closing the windows but I'm getting a new applescript error (-1719) after exporting the script to the app-format. I already added the orbstack applescript-app, scripteditor app and system event  app to the allow list of the accessibility rights management but apparently apple is to unable to respect it's own rights management api. What a joke!
tell application "OrbStack" to run
delay 3
tell application "System Events"
	tell process "OrbStack"
		set frontmost to true
		click menu item "Close" of menu "File" of menu bar 1
	end tell
end tell

I've tried to run a applescript to circumvent the issue by starting orbstack and closing the windows but I'm getting a new applescript error (-1719) after exporting the script to the app-format.

If orbstack still won't autostart (it does for me now) you can use what I did before:
Create a new Program using Automator. Set it to execute a shell script an use these
source ~/.zshrc
/usr/local/bin/orbctl start

Make sure the path for orbcrl is correct, it might also be under /opt/homebrew/bin. You can check it on your shell by executing which -a orbctl
Save the Program and add it to autostart in your Mac settings.

v1.6.0 fixed this specific issue, but it looks like there's another issue that can prevent the UI from starting automatically if you have no windows open. We'll look into it.

Docker containers cannot running

FWIW I have not seen this issue since updating to either 1.6.2 or 1.6.3, not sure which.

Fixed for the next version.

Released in v1.6.4.


format suggestion

Finally! Someones doing a project on scrambling eggs! I think it would be even greater if the format could be changed from txt to md, maybe?
What do you think?
Regards,
Stine

@stineot @tilmannvs
Hei,
Great idea, Stine!
As they say, great minds think alike.
Lærke has already suggested it, and I asked her to do it.
I am sorry I did not run this by you two first. Hope you will forgive...
Best,
Ivana

No worries!
I'll check out Lærkes changes.
Stine


backfeed likes and boosts: need mf2 somewhere

afaict most of the fedsocnets don't have permalinks or other markup for individual likes or boosts. mastodon definitely doesn't. if we want to backfeed those as webmentions, we either need to get the fedsocnets to add permalinks and mf2 for them, or store the AP posts and Salmon slaps and render them ourselves, like bridgy. ugh.

example mastodon AP boost ie announce:
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
      "sensitive": "as:sensitive",
      "Hashtag": "as:Hashtag",
      "ostatus": "http://ostatus.org#",
      "atomUri": "ostatus:atomUri",
      "inReplyToAtomUri": "ostatus:inReplyToAtomUri",
      "conversation": "ostatus:conversation"
    }
  ],
  "id": "http://localhost:3000/users/ryan/statuses/18/activity",
  "type": "Announce",
  "actor": "http://localhost:3000/users/ryan",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "cc": [
    "http://localhost:3000/users/ryan/followers"
  ],
  "object": {
    "id": "http://localhost/2017-10-01_mastodon-dev-6",
    "type": "Note",
    "summary": null,
    "content": " \t\t
yet another feddly reply

 \t",
    "inReplyTo": "http://localhost:3000/users/ryan/statuses/5",
    "published": "2017-10-02T04:47:38Z",
    "url": "http://localhost/2017-10-01_mastodon-dev-6",
    "attributedTo": "http://www.brid.gy/",
    "to": [
      "http://localhost:3000/users/me/followers"
    ],
    "cc": [
      "https://www.w3.org/ns/activitystreams#Public"
    ],
    "sensitive": false,
    "atomUri": null,
    "inReplyToAtomUri": "http://localhost:3000/users/ryan/statuses/5",
    "conversation": "tag:localhost:3000,2017-09-16:objectId=2:objectType=Conversation",
    "attachment": [],
    "tag": []
  },
  "signature": {
    "type": "RsaSignature2017",
    "creator": "http://localhost:3000/users/ryan#main-key",
    "created": "2017-10-04T16:19:04Z",
    "signatureValue": "ueXm...bQ=="
  }
}```


Add new KDApps - training, notebook, and deployment

Following KDApps are added as a part of MLOps workflow.

Training Engine
Jupyter Notebook with Tensorflow
Deployment Engine

The Apps are expected to be equivalent to those on the HPECP/EPIC in terms of functionality.

@kmathur2 let me know when this is good to merge. I see there's at least one open issue, with hasAuthToken.

looks good now :)

@joel-bluedata This is ready to be merged
🚢 🚀


Update icons

As per instructions @ https://github.com/mui-org/material-ui/issues/22628
Note: while a few additional icons were generated / one removed, the 'ContentCut' icon was not among them. It seems like it was already added in a previous commit [as they are exported in index.js], however they are not viewable @ https://material-ui.com/components/material-icons/. I'm guessing this is because the linked website doesn't refer to the latest in the next branch?
@oliviertassinari, thanks for your quick initial response to this trivial issue and I hope that the pull request is in line with your expectation :)

Failed during stage 'building site': Command did not finish within the time limit

It looks like we have hit one limit of the number of icons the CI allows us to take.

Failed during stage 'building site': Command did not finish within the time limit

It looks like we have hit one limit of the number of icons the CI allows us to take.

Happened before. I restarted to build.

Happened before. I restarted the build.

@eps1lon Interesting, it passes. What triggered my message was two fail in a row (I restarted it once before commenting).

Might be a temporary problem when resources are low and netlify is throttling builds.
Maybe transpiling the icons when bulding them instead of the docs helps. Though maybe it'll resolve itself with webpack 5.

@delewis13 It's a great first pull request on Material-UI 👌🏻. Thank you for working on it!


[BEAM-4697] Fix build.

Two conflicting PRs were merged, and due to race conditions both tests passed. This PR fixes the build.
R: @lgajowy

Lgtm. Could you merge? I'm afk now...


Limit clear to visible part of the framebuffer

At the moment the DrawTarget::clear implementation clears the entire framebuffer, even for smaller display. The unnecessary writes makes clearing the display slower than necessary on these displays. I would suggest to change the implementation of clear or simply to remove it and rely on the default implementation, that uses fill_solid.
I'm not sure if it is ever necessary to clear the entire framebuffer, but if that is the case we could add another method clear_all to clear the entire framebuffer.

So this is conflicting. I think we should change it to fn clear(entire_framebuffer: bool) since clearing the whole thing makes sense for HW scroll displays for example.

I think we should change it to fn clear(entire_framebuffer: bool)

That wouldn't work for the DrawTarget implementation.

A solution, that would be compatible with the embedded-graphics drawing model, is using a second DrawTarget for the entire framebuffer:
let mut display = Builder::st7789_pico1(di).init(&mut delay, Some(rst))?;

// clear only the visible area
display.clear(Rgb565::BLACK)?;
// display is DrawTarget with 135x240 pixel

// clear the entire framebuffer
display.framebuffer().clear(Rgb565::BLACK)?
// display.framebuffer() returns a DrawTarget with 240x320 pixel
// display.framebuffer() could also be used to draw anything else outside the visible area

That'd work and should probably be good enough for the hw scroll edge cases. The change will need to be documented as it's breaking expectations.

@rfuest how do you feel about this issue? I'm trying to collect things that need to be done before the next release. I'm on the fence on this one.

I accidentally implemented this change in https://github.com/almindor/mipidsi/commit/5f455eb8171153d4ccb9080905782ee17ae0439f, otherwise the display wasn't cleared correctly. I would prefer to leave it this way because it can improve performance in the most common use case, when scrolling isn't used.

Closing as done


Does Azure Monitor Application Insights Agent support Windows 2008

We have a Windows 2008 VM migrated from on-premise, and would love to have Application Insight to help out with performance issues, as well as planning for future re-platform.
When we tried to install the extension, following error is logged, wondering whether the agent supports Windows 2008?
Set-AzVMExtension: Long running operation failed with status 'Failed'. Additional Info:'VM has reported a failure when processing extension 'ApplicationMonitoring'. Error message: "Extension '' of Handler 'Microsoft.Azure.Diagnostics.ApplicationMonitoringWindows' version '1.0' faulted due to exception during extension processing"
More information on troubleshooting is available at https://aka.ms/vmextensionwindowstroubleshoot '
ErrorCode: VMExtensionProvisioningError
ErrorMessage: VM has reported a failure when processing extension 'ApplicationMonitoring'. Error message: "Extension '' of Handler 'Microsoft.Azure.Diagnostics.ApplicationMonitoringWindows' version '1.0' faulted due to exception during extension processing"
More information on troubleshooting is available at https://aka.ms/vmextensionwindowstroubleshoot
ErrorTarget:
StartTime: 2021-02-09 1:18:17 PM
EndTime: 2021-02-09 1:19:07 PM
OperationID:
Status: Failed

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

ID: 43cf9378-5ca3-0c40-3e02-aa89daa752f9
Version Independent ID: 4d3934d2-ae87-e406-2711-f640c3aed788
Content: Azure Application Insights Agent overview - Azure Monitor
Content Source: articles/azure-monitor/app/status-monitor-v2-overview.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @TimothyMothra
Microsoft Alias: tilee

Thanks for bringing this to our attention. We are actively investigating and will get back to you soon.

@jyeblog The Azure document referred with this issue is related to "Deploy Azure Monitor Application Insights Agent for on-premises servers" which suggests to

import Az.ApplicationMonitor PS module and
enable monitoring with the help of Enable-ApplicationInsightsMonitoring PS cmdlet

For more information w.r.t it, please refer this, this and this documents.
But as you have shared the error that's related to Set-AzVMExtension PS cmdlet so if your intension is to "deploy the Azure Monitor Application Insights Agent on Azure virtual machines and Azure virtual machine scale sets" then as shared as a note in the referred Azure document, this is the document that you might have to refer. If that's the case then the instruction provided in that is to use version "2.8" as part of Version parameter in Set-AzVMExtension PS cmdlet but I see the error shared is referring to "1.0" so try to update and provide the version number to "2.8" and see if it resolves your issue. If that doesn't help then as error suggests, try out the troubleshooting steps provided in this document.
General guidelines recommended to follow while opening an issue in this azure-docs repository:

This azure-docs repository deals about feedback related to particular Azure document page (like correcting doc bugs, doc enhancements, product issues related to wrong doc instructions, etc.) so going forward please share such document related feedback here.
On the other hand, if you need help in resolving a product related issue (but not the document) then I suggest you to ask the question in public forums like Microsoft Q&A, etc. but not here in this azure-docs repository. Hope this clarifies.

At this point it appears that there's no edits or updates needed for the referred Azure documentation so closing this issue for now. If there are further questions regarding this matter or feedback on the referred Azure documentation, please do let us know and we will gladly continue the discussion.


Update build instructions to include firebase setup

firebase was missing and you'd run into this erro: TemplateNotFound: "google-services.json"

There is now a google-service.json.sample file which can be used as the google-services.json for a successful build.


cloud add discovery - log ingestion. charges

Please add a section if the customer is uploading TB of logs for cloud app discovery, are you offering it free or charging them ?

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

ID: 465291ec-a6ff-9446-1a30-89cfc05d2e74
Version Independent ID: 28256a68-04c7-81d4-054d-711264c9e5e1
Content: Control cloud app usage by creating policies - Cloud App Security
Content Source: CloudAppSecurityDocs/control-cloud-apps-with-policies.md
Service: cloud-app-security
Product: ****
Technology: ****
GitHub Login: @shsagir
Microsoft Alias: shsagir

@eSnlalan Thanks for contacting Microsoft about your issue. As we understand it, you're describing a question about costings and not about the product documentation.
To get assistance or support for your product issue, please open a support ticket or Send feedback.


[SPARK-16966] [SQL] [CORE] App Name is a randomUUID even when "spark.app.name" exists

What changes were proposed in this pull request?
Don't override app name specified in SparkConf with a random app name. Only set it if the conf has no app name even after options have been applied.
See also https://github.com/apache/spark/pull/14602
This is similar to @Sherry302 's original proposal in https://github.com/apache/spark/pull/14556
How was this patch tested?
Jenkins test, with new case reproducing the bug

Test build #63727 has started for PR 14630 at commit bccfc7d.

Test build #63727 has finished for PR 14630 at commit bccfc7d.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/63727/
Test PASSed.

LGTM

Merging in master/2.0.


feat: add mkdocs and auto-document nixos module types

Introduces an initial mkdocs layout and auto documenting of NixOS modules options.
Also flattens the NixOS module directory structure as I don't feel it was giving us much and it was only serving to make import paths for shared code longer.
Closes #50
Closes #144

feat(modules): flatten directory structure
feat(modules/geth): separate option types from the main module
feat(modules/erigon): separate option types from the main module
feat(modules/geth-bootnode): separate bootnode into separate module
feat(modules/nethermind): separate options types from the main module
feat(modules/prysm-beacon): separate options types from the main module
fix(modules/geth-bootnode): adjust nat description so it does not conflict with doc generation
feat(docs): generate docs for module options
feat(docs): add initial mkdocs setup

FYI the build is failing due to a cachix bug it seems. @Mic92 has seen similar before and has reached out to @domenkozar with some info.


[refactor](remove broker scan node) it is not useful any more

remove broker scannode
remove broker table
remove broker scanner
remove json scanner
remove orc scanner
remove hive external table
remove hudi external table

Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

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

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 34.5 seconds
load time: 493 seconds
storage size:<PHONE_NUMBER>4 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230121130129_clickbench_pr_84865.html


Handle a heterogeneous collection via serializers option

Proposal for allowing for a heterogeneous collection (or a single item of unknown type) to be serialized in a single response.
I settled on injecting the serializers to use in the call rather than having more metadata inside the serializer itself. I think this makes it clearer what the intent is, and also doesn't pollute the serializer itself.
VehicleSerializer.new(
  [car, bus],
  serializers: { Car: CarSerializer, Bus: BusSerializer }
)

I foresee using this with ApplicationSerializer or the like as a base class (this makes more semantic sense to me). I experimented a bit with adding a generic abstract serializer to use, but I don't know if that's appropriate for this change. Another way to do this that I like would be to have a static method on ObjectSerializer, such as:
FastJsonapi::ObjectSerializer.serialize(
  [car, bus],
  serializers: { Car: CarSerializer, Bus: BusSerializer }
)

but to do so we would need a base class to instantiate.
I welcome any feedback, especially in terms of the interface.
References #225, #393.

Maybe it would be even cleaner to support polymorphic: true, just the way it works with relationships. That way you would get:
VehicleSerializer.new([car, bus], polymorphic: true)

Hello @dvandersluis, we love to have this feature in place :heartbeat: . As you may already know, most of us have moved to https://github.com/jsonapi-serializer/jsonapi-serializer, if you don't mind, do you want to continue this pull-request there?


Not capturing Information and Images.

My Bot works well when I implemented these steps.
But Now i'm facing issues like it create Links but not capturing any information and images of victims and it redirect victim to my repository of replit.
please Give this bot to ours as free bro.. Please help

let me check again

checkout this

Ok so replit has upgraded it self , you have to change the url on line 17

please proide me an example of that link. so it can be easyto me


2 value slider not working correctly when initially not visible

Click the toggle visibility button.  Then try and move the left slider control to the right. (You cannot.)  If you move the right slider control first - then it works correctly.
See fiddle:
http://jsfiddle.net/3oLpkv9r/

ok for you here ?
http://jsfiddle.net/darul75/6n7sa5kb/


Add deal cheatcode

function deal(address who, uint256 newBalance) external;

Sets the balance of an address who to newBalance.
address alice = address(1);
cheats.deal(alice, 1 ether);
log_uint256(alice.balance); //<PHONE_NUMBER>000000000

Isn't this one addressed by #408

We may introduce predeployed accounts and this cheatcode could make sense. Currently, we don't sign e.g. internal declare tx in the declare cheatcode.


Add Recent Tab (Feature Request)

Can you please Recent tab same as cloutfeed mobile app? Its more helpful getting Recent Clouts.

Are you a developer? Or know any developers? Bitclout is opensource now so would be great to get more people involved in providing pull requests with proposed code changes.
If not no worries of course - still thanks for suggestion. Maybe someone will pick it up.


PLATUI-1173: refactor and add known issue filters

Rough diagram of how I've refactored things to parse the output from axe and integrate known issues:

Probably incomplete and unordered list of remaining tasks:

[ ] refactor tests and expand coverage (integration tests for Axe linter)
[ ] I think ticket mentions VNU, probably split the implementation of that to another ticket
[x] create a demoable repo that using the sbt plugin and the WIP of this
[ ] update readme
[ ] add a changelog
[ ] should the hmrc known issue rules be in this repository or split out?
[ ] pair on formatting of test result output, at the moment it's just a fixed string
[ ] look at tests in page-accessibility-check and try to find any missing / incorrect behaviour
[ ] look at acceptance criteria of ticket again for more stuff that needs to be done
[ ] pair with test leads to walk them through what we've got to improve it

draft PR in sbt-accessibility-test that provides an implementation of the linters https://github.com/hmrc/sbt-accessibility-linter/pull/13/files so then the usage becomes:
package example

import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
import uk.gov.hmrc.sbtaccessibilitylinter.AccessibilityLintersAndMatchers

class HelloSpec extends AnyFlatSpec with Matchers with AccessibilityLintersAndMatchers {
  def htmlPage(body: String): String =
    s"""
      |<title>test</title>
      |
      |
      |
Test

      |$body
      |
      |
      |""".stripMargin

  "Example input component" should "have no accessibility violations" in {
    htmlPage("""<input type="text">""") should haveNoAccessibilityViolations
  }
}

The example above will have one accessibility violation, it needs a label. The violations details aren't currently output.

@natcarey I did some tinkering and refactoring and changed the format from the custom string we had to lines of json instead. So it's not the same as it was (raw axe output) it's more like a structured log message now. What do you think? (put a screenshot above)

I've enabled integration tests in build jobs for this repo, so just rerunning now to see if the tests for playwright-java pass

@matthewmascord I've moved the gateway stuff now into linter companion objects and pulled out the example reporter, could you take another look for me?


Converted to full asyncio

This removes the sperate thread an runs everything inside the Home Assistant event loop
Fixes Errors caused by calling HA from outside its event loop.
Fixes Issue #87

Thanks for the asyncio code, I have merged it.


Using arrow key navigation together with TabIndex behaves erratically

Describe the bug
I'm trying to work out how to use tab navigation between groups of controls and allow arrow key navigation within those groups in WinUI 1.4. This works great when setting XYFocusKeyboardNavigation="Enabled" and TabFocusNavigation="Once". As soon as I start defining TabIndex properties on the controls or the containers, though, tab navigation becomes erratic and it's not possible to reach all controls by tab anymore.  Pressing shift+tab repeatedly puts the focus on "Click Me 12" and leaves it there, no matter how often you type shift+tab.
Setting TabIndex on the first button of each StackPanel instead of on the StackPanel itself also breaks tab navigation. Tab then highlights "Click Me 5", then "Click Me 1", then "Click Me 6", then "Click Me 1", always alternating between 1 and 6 from then on. Shift+tab leads to "Click Me 12" and stays there.
Steps to reproduce the bug

Create a new WinUI 3 application and add the XAML from the description above.
Press tab repeatedly to navigate through the UI
Press shift+tab repeatedly to navigate through the UI backwards

Expected behavior
When pressing tab repeatedly, focus should cycle between buttons 9, 5, 1, then back to 9. Shift+tab Should do theses stops in reverse or cycle between buttons 4, 8, 12, then back to 4.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.4.1: 1.4.230913002
Windows version
Windows 10 (1809): Build 17763
Additional context
No response

I've got another example:
<StackPanel Orientation="Vertical" Spacing="30">
    <StackPanel
        HorizontalAlignment="Center"
        VerticalAlignment="Center"
        Orientation="Horizontal"
        TabFocusNavigation="Cycle">
        <StackPanel
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Orientation="Vertical"
            TabFocusNavigation="Once"
            XYFocusKeyboardNavigation="Enabled">
            <Button>Click Me 1</Button>
            <Button>Click Me 2</Button>
            <Button>Click Me 3</Button>
            <Button>Click Me 4</Button>
        </StackPanel>
        <StackPanel
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Orientation="Vertical"
            TabFocusNavigation="Once"
            XYFocusKeyboardNavigation="Enabled">
            <Button>Click Me 5</Button>
            <Button>Click Me 6</Button>
            <Button>Click Me 7</Button>
            <Button>Click Me 8</Button>
        </StackPanel>
        <StackPanel
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Orientation="Vertical"
            TabFocusNavigation="Once"
            XYFocusKeyboardNavigation="Enabled"
            TabIndex="2">
            <Button>Click Me 9</Button>
            <Button>Click Me 10</Button>
            <Button>Click Me 11</Button>
            <Button>Click Me 12</Button>
        </StackPanel>
        <Button TabIndex="1">Click Me 13</Button>
        <Button TabIndex="0">Click Me 14</Button>
    </StackPanel>
</StackPanel>

This UI looks like this:

If I tab through this UI, the focus moves 14 -> 13 -> 1 -> 5 -> 9 -> 1 -> 5 -> 9, etc., with no chance of reaching 13 and 14 again by pressing tab. If I shift+tab, it moves 12 -> 13 -> 14 -> 12 -> 13 -> 14., etc.

I've tried adding IsTabStop="True" to the StackPanels. This leads to the panels being an additional tab stop, so you always need to tab twice. I've tried changing this behavior in the code-behind:
private static void StackPanel_OnGettingFocus(UIElement sender, GettingFocusEventArgs args)
{
    if (args.InputDevice == FocusInputDeviceKind.Keyboard && sender is Panel panel)
    {
        args.Handled = true;
        var control = panel.Children.OfType<Control>().FirstOrDefault(static e => e.IsTabStop && e.IsEnabled);
        control?.Focus(FocusState.Keyboard);
    }
}

Unfortunately, the call to Focus() leads to an unspecified COM exception.

I believe I have found a workaround if I also set IsTabStop="True" and set GotFocus="StackPanel_OnGotFocus". I then define this handler in the code-behind:
private void StackPanel_OnGotFocus(object sender, RoutedEventArgs args)
{
    if (sender is not Panel panel) return;
    var control = panel.Children.OfType<Control>().FirstOrDefault(static e => e.IsTabStop && e.IsEnabled);
    if (control?.FocusState is FocusState.Unfocused)
    {
        control.Focus(FocusState.Keyboard);
    }
}

I believe I have found a workaround if I set IsTabStop="True" and GotFocus="StackPanel_OnGotFocus" and then define this handler in the code-behind:
private void StackPanel_OnGotFocus(object sender, RoutedEventArgs args)
{
    if (sender is not Panel { FocusState: FocusState.Keyboard } panel) return;
    var control = panel.Children.OfType<Control>().FirstOrDefault(static e => e.IsTabStop && e.IsEnabled);
    if (control?.FocusState is FocusState.Unfocused)
    {
        control.Focus(FocusState.Keyboard);
    }
}

I've optimized my workaround to also process sub-elements.
private static void LayoutPanel_GotFocus(object sender, RoutedEventArgs args)
{
    static bool FocusElement(Panel panel)
    {
        var control = panel.Children.OfType<Control>().FirstOrDefault(static e => e.IsTabStop && e.IsEnabled);
        if (control is not null)
        {
            if (control.FocusState is FocusState.Unfocused)
            {
                control.Focus(FocusState.Keyboard);
            }
            return true;
        }

        return panel.Children.OfType<Panel>().Any(FocusElement);
    }

    if (sender is not Panel { FocusState: FocusState.Keyboard } panel)
    {
        return;
    }

    FocusElement(panel);
}

However, it doesn't work reliably for shift+tab. It would be great if I could get some help with this.

Another workaround that works better. It simulates pressing tab again after the focus lands on a layout container.
void LayoutPanel_GettingFocus(UIElement sender, GettingFocusEventArgs args)
{
    if (args.InputDevice != FocusInputDeviceKind.Keyboard || sender is not Panel || !ReferenceEquals(args.NewFocusedElement, sender))
    {
        return;
    }

    // If the container itself is getting focus from tab or shift+tab, we need to simulate pressing tab or shift+tab,
    // respectively, to move focus to the first or last element inside the container. We delay the tab or shift+tab
    // until after the container has received focus.
    switch (args.Direction)
    {
        case FocusNavigationDirection.Next:
            simulateTab = true;
            break;

        case FocusNavigationDirection.Previous:
            simulateShiftTab = true;
            break;
    }
}

void LayoutPanel_GotFocus(object sender, RoutedEventArgs args)
{
    if (sender is not FrameworkElement)
    {
        return;
    }

    if (simulateTab)
    {
        KeyboardSimulator.SimulateTab();
        simulateTab = false;
    }
    else if (simulateShiftTab)
    {
        KeyboardSimulator.SimulateShiftTab();
        simulateShiftTab = false;
    }
}

internal partial class KeyboardSimulator
{
    [LibraryImport("user32.dll")]
    private static partial void keybd_event(byte bVk, byte bScan, uint dwFlags, IntPtr dwExtraInfo);

    [LibraryImport("user32.dll")]
    private static partial short GetKeyState(int nVirtKey);

    // Constants for key events
    private const int KEYEVENTF_KEYUP = 0x0002;
    private const int VK_SHIFT = 0x10;
    private const int VK_TAB = 0x09;

    private static bool IsKeyPressed(int virtualKey)
    {
        var keyState = GetKeyState(virtualKey);

        // Get the high-order bit of the return value to check if the key is pressed (first bit represents key pressed)
        return (keyState & 0x8000) != 0;
    }

    public static void SimulateShiftTab()
    {
        var shiftAlreadyDown = IsKeyPressed(VK_SHIFT);

        if (!shiftAlreadyDown)
        {
            // Simulate Shift key down
            keybd_event(VK_SHIFT, 0, 0, IntPtr.Zero);
        }

        // Simulate Tab key press
        keybd_event(VK_TAB, 0, 0, IntPtr.Zero);

        // Simulate Tab key up
        keybd_event(VK_TAB, 0, KEYEVENTF_KEYUP, IntPtr.Zero);

        if (!shiftAlreadyDown)
        {
            // Simulate Shift key up
            keybd_event(VK_SHIFT, 0, KEYEVENTF_KEYUP, IntPtr.Zero);
        }
    }

    public static void SimulateTab()
    {
        // Simulate Tab key press
        keybd_event(VK_TAB, 0, 0, IntPtr.Zero);

        // Simulate Tab key up
        keybd_event(VK_TAB, 0, KEYEVENTF_KEYUP, IntPtr.Zero);
    }
}

I’m still wondering if there is a central class in WinUI that I can ask to advance the focus?

I’m still wondering if there is a central class in WinUI that I can ask to advance the focus?

Does FocusManager.TryMoveFocus() do what you need? See: https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.input.focusmanager?view=windows-app-sdk-1.4

That sounds like just what I'm looking for, but it unfortunately leads to an exception, both for the sync and the async call.

All of the FocusManager APIs need to be given an element/XamlRoot to operate against. So make sure you call FocusManager.GetFocusedElement(xamlRoot) instead of the version without a parameter (if you weren't already). Similarly, FocusManager.FindFirstFocusableElement(element) must be passed a non-null element so it knows which XAML tree to search in. This is needed for cases where there are multiple Windows (or Islands), and FocusManager requires code to always be explicit so that it doesn't break only in cases where a second Window/Island is added.
Similarly, it is necessary to call the version of FocusManager.TryMoveFocus() which takes in a FindNextElementOptions object so a SearchRoot can be specified. I think there is a restriction that only the Next/Previous FocusNavigationDirection options are supported, which may or may not be an issue for you.

Thanks, that works like a charm!


epic: Implement remaining loc.* classes

The loc submodule classes allow you to target specific parts of a table for styling. For example, loc.body(...) allows you to target specific columns and rows in the table body. We need to fill out the remaining loc classes.

Implemented in v0.13.0 (releasing now!)


[REQUEST] Custom file types

Is your feature request related to a problem? Please describe.
Hydra can't run files other than .exe
Describe the solution you'd like
I'm running Linux, and I would like to be able to make Hydra run a .desktop file or something so that I can use Lutris to run games or use johncena141 games.
Describe alternatives you've considered
No response
Additional context
No response

.desktop files are abstractions for executables, just like .ink files, which are Windows shortcuts, are more useful when you don't want a third-party interface to call these executables (interfaces like steam, epic, etc...). The only advantage would be to pass execution arguments to wine, but things like lutris already do this very well, anyway, it's a point to consider.


Added data binding category, mentioned Anvil

Data binding is a new category to add. Other than Anvil you may consider adding RoboBinding and Google Data Binding Library, too.

Thanks


csv file is not importing into my index

I am using ElasticSearch 1.4.4 and csvriver plugin version 2.1.2.
My csvriver stops as
Processing File myfile.csv , it stops there and not proceedign further. Can you please Guide me what may the provlem??

you've provided us with no details at all. I'm not able to help you.
How your mapping looks like?
How your file looks like?
I would recommend to update to latest ES and plugin.


Where can I download the paper?

We have submitted the paper to arxiv and it may be available in two or three days, I guess.


feat: add void.scalar.com and galaxy.scalar.com deployment

WIP
Tasks

[ ] Deployment of the void server fails, need to fix that or separate the PR for both projects

This PR migrates https://github.com/scalar/void and https://github.com/scalar/galaxy, which just hold everything that’s necessary to deploy to void.scalar.com and galaxy.scalar.com via Cloudflare.
Intially, I wanted to move them to the respective package folders, but two reasons why I didn’t:

To properly integrate with Cloudflare, we need some additional tooling (wrangler, different Vite setup …) which didn’t feel like a good fit for the package folder.
galaxy.scalar.com is combining @scalar/galaxy and @scalar/mock-server and it’s not really clear in which package it should live.

That said, I still think most of the examples should be moved to the package folders. But probably not proxy-server, void-server and galaxy-server - the things that are deploy as standalone projects intended for production use.

@hanspagel We should move these to GCP away from cloudflare. A single devops pipeline is just easier to manage and monitor.


rkt passes different CNI_PATHS values to CNI plugins for ADD and DELETE

Environment
rkt Version: 1.12.0
appc Version: 0.8.5
Go Version: go1.6.2
Go OS/Arch: linux/amd64
Features: -TPM +SDJOURNAL
--
Linux 4.7.0-040700-generic x86_64
--
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial
--
systemd 229
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN

What did you do?

Downloaded Calico CNI plugin
Wrote CNI config - echo '{"name": "dev", "log_level":"info","type":"calico","etcd_authority":"<IP_ADDRESS>:2379","ipam":{"type":"calico-ipam"}}' >/etc/rkt/net.d/calico-info.conf
Ran container under rkt
Removed rkt container (Using rkt gc)

sudo rkt run quay.io/coreos/alpine-sh --exec ifconfig --interactive=true --net=dev && sudo rkt gc --grace-period=0
What did you expect to see?
That the correct IPAM plugin was called
What did you see instead?
That the IPAM plugin wasn't called because the CNI_PATH is different from the ADD call.
rkt prints networking: error deleting "dev": failed to find plugin "calico-ipam" in path [net.d /usr/lib/rkt/plugins/net stage1/rootfs/usr/lib/rkt/plugins/net]
During the CNI ADD call, the Calico CNI plugin logs out the CNI_PATH that rkt passes in:
INFO[0000] Looking for IPAM plugin in paths              WorkloadID=6adf9bbc-ce97-4162-90e0-24b358ecb41a paths=/etc/rkt/net.d:/usr/lib/rkt/plugins/net:stage1/rootfs/usr/lib/rkt/plugins/net type=calico-ipam
During the CNI DEL call, the log shows that the CNI_PATH is different:
INFO[0000] Looking for IPAM plugin in paths              WorkloadID=6adf9bbc-ce97-4162-90e0-24b358ecb41a paths=net.d:/usr/lib/rkt/plugins/net:stage1/rootfs/usr/lib/rkt/plugins/net type=calico-ipam

@squeed can you take a look at this?

We're actually not exactly CNI version 0.2.0 compliant - I'll fix this as part of it.

@squeed once getting to it, please milestone accordingly.


import: Improve data import performance with a very large number of users

When importing an organization from Slack that had 10K users, we end up spending ~20 minutes (out of 30 minutes total import time!) in the processing_avatars block at the end of import_uploads, just because serially downloading, resizing, and the re-uploading all of those avatar images is slow.  I'm pretty sure that phase could be several times faster if we were to parallelize it, and the logic is completely separate for each user, so there's no reason we couldn't parallelize it easily.
We should do that parallelization work, making using of our handy do_parallel library.

We'll probably end up wanting to do something like run_parallel_wrapper from zerver/data_import/import_util.py for this.

Hello @timabbott. I am really interested in performance improvements and would like to take up a project on those lines. This may be tough but I want to give it a shot. Can i go ahead?

@sumanthvrao check out this PR for reference.

thanks you @rht

@zulipbot claim

@zulipbot still working on this.


Duplicate symbols iOS issue on React Native v0.74

Issue
Hello, sorry if I am posting in the wrong GitHub repo but I have an issue while building the app after upgrading from RN v0.73.6 to 0.74.0. While linking React_Codegen I get an issue with 3 duplicate symbols as displayed below:
duplicate symbol '__ZN8facebook5react26NativeCompressorCxxSpecJSIC2ENSt3__110shared_ptrINS0_11CallInvokerEEE' in:
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-Codegen.build/Objects-normal/arm64/RNCompressorSpecJSI-generated.o
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-Codegen.build/Objects-normal/arm64/RNVideoCompressorSpecJSI-generated.o
duplicate symbol '__ZN8facebook5react23NativeCompressorSpecJSIC2ERKNS0_15ObjCTurboModule10InitParamsE' in:
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-Codegen.build/Objects-normal/arm64/RNCompressorSpec-generated.o
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-Codegen.build/Objects-normal/arm64/RNVideoCompressorSpec-generated.o
duplicate symbol '__ZN8facebook5react23NativeCompressorSpecJSIC1ERKNS0_15ObjCTurboModule10InitParamsE' in:
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-Codegen.build/Objects-normal/arm64/RNCompressorSpec-generated.o
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-Codegen.build/Objects-normal/arm64/RNVideoCompressorSpec-generated.o
ld: 3 duplicate symbols
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I think that these duplicate symbols come from this library. Do you have any ideas what to do here? I tried deleting Derived data folder, build folder and reinstalling everything. This issue is not present on v0.73.6 which is our current version.
This is our post_install hook in Podfile if it is relevant:
post_install do |installer|

  react_native_post_install(
    installer,
    $rnpath
  )

  installer.pods_project.build_configurations.each do |config|
    config.build_settings["CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES"] = true
  end

  installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
        config.build_settings['GCC_WARN_INHIBIT_ALL_WARNINGS'] = "YES"
        config.build_settings['SWIFT_SUPPRESS_WARNINGS'] = "YES"
      end

      create_symlink_phase = target.shell_script_build_phases.find { |x| x.name == 'Create Symlinks to Header Folders' }
      if create_symlink_phase
        create_symlink_phase.always_out_of_date = "1"
      end
  end

  end

Thank you!
Platform

[X] iOS

React Native Version
v0.74.0
React Native Compressor Version
"react-native-compressor": "^1.8.24"

I've also tried with React Native 0.75.1 but I get the same error:
duplicate symbol '__ZN8facebook5react26NativeCompressorCxxSpecJSIC2ENSt3__110shared_ptrINS0_11CallInvokerEEE' in:
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCodegen.build/Objects-normal/x86_64/RNCompressorSpecJSI-generated.o
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCodegen.build/Objects-normal/x86_64/RNVideoCompressorSpecJSI-generated.o
duplicate symbol '__ZN8facebook5react23NativeCompressorSpecJSIC2ERKNS0_15ObjCTurboModule10InitParamsE' in:
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCodegen.build/Objects-normal/x86_64/RNCompressorSpec-generated.o
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCodegen.build/Objects-normal/x86_64/RNVideoCompressorSpec-generated.o
duplicate symbol '__ZN8facebook5react23NativeCompressorSpecJSIC1ERKNS0_15ObjCTurboModule10InitParamsE' in:
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCodegen.build/Objects-normal/x86_64/RNCompressorSpec-generated.o
    /Users/tarik/Library/Developer/Xcode/DerivedData/gloCOM_GO-bgekhdweyipgqpctautxvuszkrvn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactCodegen.build/Objects-normal/x86_64/RNVideoCompressorSpec-generated.o
ld: 3 duplicate symbols
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Same issue with react native 0.74.0, and compressor 1.8.25.

fix released in 1.10.0


CIS compliance: storage

Resolves #176
What is being addressed
Adds configuration to the two FlowEHR storage accounts for CIS compliance.
Questions

[x] Will setting shared_access_key_enabled = false break anything?

I don't think anything is used the shared access key so you should be ok to disable it

/test

:robot: pr-bot :robot:
:runner: Running tests: https://github.com/UCLH-Foundry/FlowEHR/actions/runs/4551602651 (with refid d1a9461e)
(in response to this comment from @t-young31)

/test

:robot: pr-bot :robot:
:runner: Running tests: https://github.com/UCLH-Foundry/FlowEHR/actions/runs/4551725393 (with refid d1a9461e)
(in response to this comment from @t-young31)

I don't think anything is used the shared access key so you should be ok to disable it

no dice 😞
  │ Error: reading queue properties for AzureRM Storage Account "strgflwrd1a9461e": queues.Client#GetServiceProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="KeyBasedAuthenticationNotPermitted" Message="Key based authentication is not permitted on this storage account.\nRequestId:75cbfa8d-9003-00a6-5c14-62153e000000\nTime:2023-03-29T08:03:49.1630361Z"

Why on earth is it reading queue properties?

We don't use storage queues so probably need to find out what's doing a GET on that

We can potentially just set the storage account kind to BlobStorage so we only have blob enabled and queues are disabled
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account#account_kind

Need keys for: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_server_vulnerability_assessment

/test-force-approve
Test failed on cleanup and discussed other points


ci: Fix CLANG_FORMAT version

Signed-off-by: Ryan Northey<EMAIL_ADDRESS>Commit Message:
Additional Description:
Currently the clang-format version is hardcoded to clang-format-11 if it doesnt find the one in env - this is wrong, so this PR fixes that.
Also, this currently works because whenever CLANG_FORMAT is required to be read from env it is running in a bazel run job so it can see the env var - this breaks if you try to run those jobs in a build job. This PR fixes that by adding CLANG_FORMAT as an action_env var
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

/retest


assignment_1 for python

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
adding codes, trying out different command for example .upper, sorted
What did you learn from the changes you have made?
I learned how different commands can be used together
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
yes! I tried out a different method to see if I can get the same result but with a more concise and clean code
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
I still wrote my work on main initially, Pedram helped me to go to the correct branch.
How were these changes tested?
by pressing shift + enter
A reference to a related issue in your repository (if applicable)
no
Checklist

[x ] I can confirm that my changes are working as intended

You did a great job here!
Please go ahead and close this pull request now. Thanks!


Downloading Binary Data

Does cpr support downloading binary data to a file? For example how would I download the cookie image in the readme: https://assets-cdn.github.com/images/icons/emoji/unicode/1f36a.png using cpr?

Strictly speaking, no, but the response body is still fully intact in the text attribute of the Response object. You can then write it to a file using the method of your choice.
That said, this kinda sucks because it means the whole file is residing in memory, which is a problem if you try to download huge files. I hope that being able to configure the session to write to a file is something that is planned for a future iteration.
If you want to do some hacking on your own, the cURL options you want to set are CURLOPT_WRITEFUNCTION and CURLOPT_WRITEDATA, and cpr sets them in Session::Impl::makeRequest().

@axalon900 is right on.
It's not beyond the capacity of the library to enable some sort direct write-to-file functionality to avoid having to hold data in memory. It can be something as simple as a wrapper around std::ofstream that you put into a request.

Is there a reason why the feature/download branch has never been merged?

Is this any closer to being implemented?
I've written the text to files, using std::ofstream, but the result is always messed up (extra line breaks in txt files completely mangled image files).
I believe the python equivalent to what I need is response.iter_content(CHUNK_SIZE) to write binary data to files.

Is this any closer to being implemented?
I've written the text to files, using std::ofstream, but the result is always messed up (extra line breaks in txt files completely mangled image files).
I believe the python equivalent to what I need is response.iter_content(CHUNK_SIZE) to write binary data to files.

You should open the stream with std::ios::binary and use ostream::write method instead of operator<<
I already implemented the stream support for this but haven't complete the upload functionality and the test cases yet. I will submit the pull request in next few days. if you want to get premature version,  I can share you the code first. :)

Is this any closer to being implemented?
I've written the text to files, using std::ofstream, but the result is always messed up (extra line breaks in txt files completely mangled image files).
I believe the python equivalent to what I need is response.iter_content(CHUNK_SIZE) to write binary data to files.

You should open the stream with std::ios::binary and use ostream::write method instead of operator<<
I already implemented the stream support for this but haven't complete the upload functionality and the test cases yet. I will submit the pull request in next few days. if you want to get premature version, I can share you the code first. :)

Yes I would absolutely like the premature version of the code. I'm scrambling around to find another way to get this functionality in c++. So this should save me a lot of time if I can keep using cpr.
And I would need to use the std::ios::binary as the output stream, correct?

Is this any closer to being implemented?
I've written the text to files, using std::ofstream, but the result is always messed up (extra line breaks in txt files completely mangled image files).
I believe the python equivalent to what I need is response.iter_content(CHUNK_SIZE) to write binary data to files.

You should open the stream with std::ios::binary and use ostream::write method instead of operator<<
I already implemented the stream support for this but haven't complete the upload functionality and the test cases yet. I will submit the pull request in next few days. if you want to get premature version, I can share you the code first. :)

Yes I would absolutely like the premature version of the code. I'm scrambling around to find another way to get this functionality in c++. So this should save me a lot of time if I can keep using cpr.
And I would need to use the std::ios::binary as the output stream, correct?

you can checkout from my fork branch here:
cpr-feature/stream

Yes, std::ios::binary
you can also checkout and look at stream_tests from my fork branch here:
cpr-feature/stream
I'm sorry, I don't know what to do with this link. I've never forked a branch before. And this link seems to take me to what looks like a page for creating my own pull request. And the cpr fork on your profile doesn't look like it has any updated files based on the last commit dates.
What am I supposed to do?

Yes, std::ios::binary
you can also checkout and look at stream_tests from my fork branch here:
cpr-feature/stream
I'm sorry, I don't know what to do with this link. I've never forked a branch before. And this link seems to take me to what looks like a page for creating my own pull request. And the cpr fork on your profile doesn't look like it has any updated files based on the last commit dates.
What am I supposed to do?

Oh, sory,
Please use this link instead https://github.com/sepcon/cpr.git
NOTE: by default, you should open std::ofstream or any kinds of std::ofstream with std::ios::binary mode. But with text content like a webpage, you don't need to specify this mode.

Yes, std::ios::binary
you can also checkout and look at stream_tests from my fork branch here:
cpr-feature/stream
I'm sorry, I don't know what to do with this link. I've never forked a branch before. And this link seems to take me to what looks like a page for creating my own pull request. And the cpr fork on your profile doesn't look like it has any updated files based on the last commit dates.
What am I supposed to do?

Oh, sory,
Please use this link instead https://github.com/sepcon/cpr/tree/feature/Stream
NOTE: by default, you should open std::ofstream or any kinds of std::ostream with std::ios::binary mode. But with text content like a webpage, you don't need to specify that.

Thank you very much. I'm going to try to compile this into a static library (I've been using the static library of cpr from vcpkg until now). Then I'll be able to make it work in my project.

Is cpr::Download() working? I tried to download different images with std::ostream and std::ios::binary but its always empty.

To anyone who is reading this to find a way to download a binary data, there's an undocumented API called Download
https://github.com/whoshuu/cpr/blob/f4622efcb59d84071ae11404ae61bd821c1c344b/include/cpr/api.h#L206-L222
that can retrieve binary data by callback or ofstream.
Here's an example
  auto ofstream = std::ofstream("tmp");
  auto session = cpr::Session();
  session.SetUrl(cpr::Url{url});
  auto response = session.Download(ofstream);

Thanks @ingun37 for taking the time to answer this!

Is it possible to provide a BinaryWriteCallback for the Download function in the future?
Implementation in my opinion:
class BinaryWriteCallback {
  public:
    BinaryWriteCallback() = default;
    BinaryWriteCallback(std::function<bool(std::vector<unsigned char> data)> callback) : callback(std::move(callback)) {}

    std::function<bool(std::vector<unsigned char> data)> callback;
};

Using std::string for binary data is not very appropriate. Although it works in most cases, and we can convert it to std::vector<unsigned char> ourselves in WriteCallback, it would be better if the library provided it directly. :)


add common DNS record types

Motivation:
add more common DNS record types
Modification:
define, decode and encode A, AAAA, CNAME, MX, NS, SOA, SRV and TXT record types
Result:

seems CI environment broken

[07:07:04][io.netty:netty-handler] Failed to execute goal on project netty-handler: Could not resolve dependencies for project io.netty:netty-handler:jar:4.1.10.Final-SNAPSHOT: Failure to find io.netty:netty-tcnative:jar:linux-x86_64:2.0.1.Final-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced

@flier please rebase as well so it will not fail anymore

@normanmaurer I have rebase it to 4.1 branch, anything else need me do?

@flier sorry have been super busy. Will check soon

@trustin and @Scottmitch can you check pleasE ?

can we make the decoding/encoding to/from POJOs, byte[], and String objects optional and/or implemented at a higher level? The DNS resolver can function without this additional overhead and I'm assuming this will be unnecessary for most users of the DNS resolver.

@Scottmitch  Do you means to replace ByteBuf with byte[], or move those encoder/decoder to POJO like DefaultDnsARecord which may implements a DnsSerializer/DnsSerializer interface?

Sorry I rushed my first pass and didn't notice the object wrappers were being used instead of the raw record parsing in some places.
It seems like we now have some duplication of logic between the type hierarchy, the DnsRecordType checking, and DnsRawRecord usage. Did you consider moving away from the DnsRecordType checks and usage of DnsRawRecord in favor of the instanceof checks in some areas (e.g. DnsNameResolverContext#onResponse)? Is it generally expected there are other record types we don't yet support in the type hierarchy? If the correct decoder is used this seems like an indication of a programming error or not yet supported record type.
For example:
    private static Map<String, String> buildAliasMap(DnsResponse response) {
        final int answerCount = response.count(DnsSection.ANSWER);
        Map<String, String> cnames = null;
        for (int i = 0; i < answerCount; i ++) {
            final DnsRecord r = response.recordAt(DnsSection.ANSWER, i);
            if (!(r instanceof DnsCNameRecord)) {
                continue;
            }
            if (cnames == null) {
                cnames = new HashMap<String, String>(min(8, answerCount));
            }

            cnames.put(r.name().toLowerCase(Locale.US), ((DnsCNameRecord) r).hostname().toLowerCase(Locale.US));
        }

        return cnames != null? cnames : Collections.<String, String>emptyMap();
    }

Also now that we are deserializing into objects maybe we should consider doing the lower case conversion up front during the decode (and only 1 time) to ensure consistency in comparisons and map operations:
https://www.ietf.org/rfc/rfc1035.txt

Note that while upper and lower case letters are allowed in domain
names, no significance is attached to the case.  That is, two names with
the same spelling but different case are to be treated as if identical.

@normanmaurer - WDYT?

hi @normanmaurer and @Scottmitch,
anything else need be change?

Let me close this for now as we never were able to finish this one. Sorry


EPROM  HAT

Hello
Is  there  any  direct  link  to  the  EPROM  HAT ( pcb and  example )   that  is  used  on  GLASGOW   ?

It has been a while since I worked with PROMs but here is an adapter hat that I designed: https://github.com/esden/glasgow-addons/tree/master/hardware/prom-addon it should work with the prom applet.


video example won't run.

The video example hasn't worked for quite a while. We need to fix it.

I will see if I can solve this.

Fixed in<EMAIL_ADDRESS>


Fix: MongoDB's custom configuration missing file permissions

Lore

Once a custom configuration was placed in Coolify for a MongoDB Instance, it failed to start due to insuffcient permissions in the new .conf file.

Error: EACCES: permission denied, open '/etc/mongo/mongod.conf'

Changes

Updated MongoDB's Custom Configuration file permissions to 644 (MongoDB's default)

Issues

fix #3970

Thanks for the PR. I am refactoring some DB stuff so I will fix this differently.


Add dynamic stylesheets based on the config

@bep Currently I've two problems to solve.

In line 31 I need to pass config as second parameter. The user should be able to set something like custom colors in the under params in the config.toml. For example:

[params]
themeColor = "#abcdef"

Now I need to pass params as argument to function that executes the template. Inside the template I would like to call the variable themeColor like here:
style.css
a {
    color: {{ .themeColor }}
}

In order to get the data of params I used viper.Get("params") but I always got an empty map.

Next, I need to find a spot where I can call my ParseCSSFiles function. Before this happens it's important that all static files are available in the public folder. Then the functions searches css files, parses it and saves the executed template back to the public folder. That ensures, that the original stylesheets aren't modified.

I thought about this location to call ParseCSSFiles().

There are plenty of existing test cases that set ups a "mock" site with Viper config. Have a look in the /hugolib package.

Everything works fine now. Now I need to add tests. So, for parse() I could mock the params section but whats the best way to test ParseCSSFiles() and filterFiles()? Should I create a temporary file structure that contains all sorts of files?

I added documentation and a test function for parse().

I love this idea and the implementation is solid.
I feel that the CSS params should be kept separate from the site params.
May be as simple as reading under the keyword css
eg.
+```toml
+[params.css]

fontFamily = "Arial, Verdana, sans-serif"
textColor  = "#6BC825"
+```

+***
@digitalcraftsman thoughts?

@spf13 That's a good idea. I've rebased this change into the commit.
But the current state isn't mergable. You integrated in the latest release the option to render the pages (by default) to memory instead to the disk. My current approach tries to walk a directory on disk that doesn't exist.
Furthermore, in this case the publishDir will be set to / and the walker checks recursively each file from the root. Not a very good combination :wink:
if !renderToDisk {
	hugofs.DestinationFS = new(afero.MemMapFs)
	// Rendering to memoryFS, publish to Root regardless of publishDir.
	viper.Set("PublishDir", "/")
}

Does afero provide a similar function to do something similar?

@spf13 should I add an option that skips the default parsing of all CSS files? Some users don't need this or use this feature and it just drecreases the rendering performance.

Anything in static shouldn't be touched. Things in /content are for
processing. We could give it a different extension which is probably the
best thing to do. Maybe styles.dcss, then add a handler for those file
types. If you do that you don't need to walk anything, all the plumbing is
already in place.
On Sat, Jan 2, 2016 at 5:56 PM digitalcraftsman<EMAIL_ADDRESS>wrote:

@spf13 https://github.com/spf13 should I add an option that skips the
default parsing of all CSS files? Some users don't need this or use this
feature and it just drecreases the rendering performance.
—
Reply to this email directly or view it on GitHub
https://github.com/spf13/hugo/pull/1431#issuecomment-168436442.

This would avoid a lot of problems, but do you think it is a good idea to mix content files with assets that usually belong to the static folder (even if they're not really static anymore)?

Sometimes yes, sometimes no.
I think we need a better way of handling things than we have now. Our
current model is a bit overextended.
Read my reply to the 1.0 thread. I think folders representing the entirety
of a post and its media should be together.
Sites today are comprised of
Templates
Source content
Media
Static assets
Dynamic assets
Misc static files
Data files
And probably more I'm not considering.
Our model is really only initially designed for half of these with others
added on over time.
I've considered adding an assets folder at the root for dynamic assets and
rewriting the content handling to only handle media and content. I think
this is probably the cleanest approach, though it would be a bit breaking,
I don't think many use the current feature anyway and it would be simple to
just move assets to the new folder.
I do think this is probably the best approach to take.
I'm also curious how others (hexo, pelican) handle this.
On Sat, Jan 2, 2016 at 6:40 PM digitalcraftsman<EMAIL_ADDRESS>wrote:

This would avoid a lot of problems, but do you think it is a good idea to
mix content files with assets that usually belong to the static folder
(even if they're not really static anymore)?
—
Reply to this email directly or view it on GitHub
https://github.com/spf13/hugo/pull/1431#issuecomment-168438922.

I browsed the docs of other static site generators to find out how they solve this problem.

Hexo  can be extended with CSS preprocessors via plugins that allows users easily to change global variables in a single place.
Jekyll seems to process every file that contains a frontmatter like a template. I found this issue about exact this question and an live example
Pelican doesn't seem to offer such a feature
Middleman is as extensible as Jekyll and could be capable to do this with plugins.

However, this feature could become very powerful in combination with CSS pre-processors like Less, Sass or Styles.
As you suggested, we could create a new assests folder in the root directory and parse thoose files as templates that have access a limited variable scope in the config file, like the suggested [params.css] scope.
But where should these files be finally stored? In a next step, users could use CSS pre-processors to compile the stylesheets to regular CSS. We shouldn't mix the original stylesheets with those that were interpreted by Hugo.

Thinking a little bit general, what if we introduce an assets section in the configuration:
Pseudo-code:
asset:
   type: css
   input: ...
   filePattern: ...?
   actions: [template-parser, ...] (chained)
   destination: (default is static)

Someone have probably thought of a syntax for something similar out there ...

An assets section could make this process a bit more flexible. @bep, could you explain some variables in your pseudo-code?
I tried to mock it a bit further in TOML.
[[assets]]
   # With type you think we could expand this to other types like JS files?
   # If yes, the assets section itself should be an array
   type = "css"
   # Are these the input directories?
   input = ["path1", "path2"]
   # Do you think of an array of file extensions or about something
   # more complex like a regex pattern search?
   filePattern = ["scss", "less", "stylus"]
   # Internal actions (chained) that are built-in into Hugo?
   # This would be wisely thought if plugins are some day a part of workflows
   # Back to the present: which other actions do you have in mind?
   actions =  ["template-parser", "foo", "bar"]
   # Defaults to static. But could be a temporary folder for pre-processors that
   # are watched by Grunt/Gulp
   destination = "static"

I haven't thought this through to its fullest, but:

Yes, assets should be a list (css for now, but js ... custom plugins in the future).
Common thing is that they have a input and output
On the edges (first and last in a chain) these will be a set of files from/to a directory.
Filepattern can be a regexp i guess, default = ".*"
To make it simple all paths are relative to workDir and one input and one output. If more paths are needed, define another asset.
Action will first be a predefined set of actions (template processor), but we should define a good interface for this so we could expand it to user-defined actions (plugins) in the future.

As I think about this more, I think the Hexo approach makes some sense and this should be part of the Asset solution. We need to implement that solution first.

Any ETA when this is feature is available?
Currently I have to embed part of the CSS into HTML in order to use variables such as colours...

I think we're going to close this. A page with output format CSS should solve this. If that has issues, we should fix that.

This would be a nice format to follow if we were able to configure asset types in the config
http://pre-commit.com/#new-hooks
The format of custom hooks is similar to middleman's external pipeline config.


Update composer.json

Added compatibility with Laravel 9.
At present, this library cannot be installed in Laravel 9 due tot he dependencies. This PR submits dependency changes so it works in Laravel 9

Hi @pokmot thank you for your time to create this PR


Code.bat fails on JPSoft's TCCLE terminal

Issue Type: Bug
In scripts\code.bat, line 11, we search product.json for 'nameShort' and tokenize the line with ':,'. The second token (%%a), is now '"Code - OSS"'. The use of %%~a in setting NAMESHORT is supposed to strip the quotes, but in cmd.exe (Windows 10) it doesn't, so the following two lines (12 & 13) work around this by replacing '"' with '' and '"' with '.exe' respectively. In cmd.exe, this gives us what we want: 'Code - OSS.exe". In my favorite terminal, JPSoft's tcc (I use TCCLE14x64), the %%~a does strip the quotes, so line 12 does nothing and line 13 simply adds '.exe' to the end. I get NAMESHORT = 'Code - OSS.exe' which is an invalid file name.
To fix the problem, replace %%~a with %%a, which doesn't strip the quotes in line 11 on terminals which behave correctly. In this case, the cmd.exe work-around lines 12 & 13 work as planned in cmd.exe as well as tcc.
VS Code version: code-oss-dev 1.32.0 (Commit unknown, Date unknown)
OS version: Windows_NT x64 10.0.17134

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz (8 x 2594)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
15.83GB (3.27GB free)

Process Argv
. --remote-debugging-port=9222 --no-first-run --no-default-browser-check --inspect=5875 --no-cached-data

Screen Reader
no

VM
0%

Extensions: none

In Batch, the notation %%~a on a FOR statement does remove the outside quotes only (they must be on the outside edges of the string, and the string must start with a quote!, In this case, it does not.).    Anything that is emulating Batch needs to perform the same way, or scripts will definitely not work the same.  However, I fail to see why TCC wouldn't work here.  Both situations should result in Code - OSS.exe, which then becomes ".build\electron\Code - OSS.exe" in the variable %CODE%.

OK. Since the line in product.json has a space after the colon, %%~a doesn't remove the quotes (now I see why this isn't a bug in cmd.exe--quote isn't the first character!). I guess tcc is the buggy one, in that it (seemingly) ignores that leading space and goes ahead and removes the quotes, but it leaves the space in. tcc's final %CODE% is ".build\electron<space>Code - OSS.exe". Removing the ~ fixes this, and it serves no purpose in cmd.exe, so removing it doesn't break cmd, though it's a cludge rather than an actual fix. I wonder how other terminal programs handle this.


Top-level dependency error

In<EMAIL_ADDRESS>I tried to install whit meteor add ostrio:uiblocker. Console launch error:

While selecting package versions:
error: Potentially incompatible change required to top-level dependency: themeteorchef:bert 1.1.0, was 2.1.0.
Constraints on package "themeteorchef:bert":
I have<EMAIL_ADDRESS>version.
Any solution?

What if you will run meteor update --allow-incompatible-update before adding ostrio:uiblocker package?

I tried to run meteor update --allow-incompatible-update before to add package. Console show same error.

Hi @vicente000 ,
Please update to v2.0.1 your issue should be fixed.
Please check on your end, and let me know how it works.

Solved! now it works correctly. Thank you

@vicente000 you're welcome.
Please support this project by starring on both GitHub and atmosphere


renamed some arguments in ModelParams constructor so that class can be serialized easily

I assume the serializer needs the constructor parameters to be the same name as the property?

I assume the serializer needs the constructor parameters to be the same name as the property?

Yes. I'm reading from appsettings.json using standard IConfiguration.GetSection(...)

Thanks for the PR!


Local Pushnotification if app was terminated with javascript

Version
0.6.0
In the readme file you wrote that we have to do something with objective c:
"Finally when killed or sleeping and a beacon is found your whole app wont be loaded,"
I actually want to have this logic in android the same as in ios. Is it possible to keep the logic in javascript and decide there if I want to have a local push notification happening?

+1. An example on how to show a local push notification in AppDelegate.m would also be much appreciated 💯


VS Code's terminal should ask to confirm exit

I just had a frustrating experience where I had a long running process in a terminal inside VS Code, which wasn't the currently focused terminal. I intended to select it to check on its progress, but when I moused over the terminal display and clicked, the "trash" icon appeared as I hovered over it and I ended up clicking on that instead of selecting it like I meant to. This immediately killed the terminal, and my long running process, and disposed of all its output so I couldn't tell what it had accomplished.
(Note, I'm running insiders, so I have the new "multiple terminals show in a sidebar" UI, with "split terminal" and "close" icons that only appear on hover)
It would be nice if after I clicked this, I could've gotten a modal dialog asking me to confirm killing the terminal session, so I didn't lose my work.

There is a setting: "terminal.integrated.confirmOnKill": "panel", but it doesn't work when clicking the trash icon in terminal list, so I believe it's a bug.

We need to add the confirm dialog support here:


BLE + AWS + WIFI connect issue

hi When I tried WIFI connection in code esp/esp-idf/example/bluetooth/gatt_client/main/gattc_demo.c , the code worked well. However, if i try to run
xTaskCreate(&aws_iot_mqtt_task, "AWS IoT", 8192*2, NULL, 5, NULL);
after wifi connection, the following error occurs.

So I tried adjusting the MAKE MENUCONFIG -> Component config -> mbededTLS -> TLS maximum message content length to 1000, 2000, 4000, 8000, 10000, 16000 etc, but the same error occurred and the esp32 module was rebooting.
In the blufi code as well, aws did not work. What is the problem?
This is the code.

What is free heap before you start the TLS operation?

How to check free heap?

xPortGetFreeHeapSize()

The result after running this code
printf("xPortGetFreeHeapSize!!!:%d\n", xPortGetFreeHeapSize() );
is 55844

This is the result of inserting code
printf("xPortGetFreeHeapSize :%d\n", xPortGetFreeHeapSize() );
into each section.

Introduction to main function before connecting Bluetooth.
-> 145692

Immediately after connecting the Bluetooth
-> 55660

Immediately after connecting wifi (place where xtaskcreate code should be inserted)
-> 54084

Bluetooth uses ~90k of heap (in your code)
AWS IoT about 60k
so you have 54k and need ~60k to do the handshake.

@copercini after task stack allocated should be 38k and with content length set to 4k it seems like it should be enough?

Introduction to main function before connecting Bluetooth.
-> 145692
Immediately after connecting the Bluetooth
-> 55660

ok until here

Immediately after connecting wifi (place where code xTaskCreate(&aws_iot_mqtt_task, "AWS IoT", 8192*2, NULL, 5, NULL); should be inserted)
-> 54084

for TLS you need about 60k of heap...

Maybe it can be only problem in certificate, because -0x7200 is MBEDTLS_ERR_SSL_INVALID_RECORD, but I think it's probably out of heap.

@copercini test of HTTPS request example with 8k stack, 8k content length uses 32k max.

@negativekelvin I have tried the blufi example with the https example combined.  That worked fine when modified the TLS message size shrunk to 8kB each.
But, when implemented AWS IoT, the message size does not seem enough.  It disconnects from the client as soon as it successfully connects.
So the next thing I tried, was to have BLE and WiFi initiate separately.  I would initiate BLE first, get SSID and password via text, wait for successful connection to WiFi, (by watching for GOT_IP event), I restart the chip, and connect to the memory-saved ssid and password.  Even this fails with AWS IoT library implemented.
Only reason I try to use BLE here is for initial bootstrapping of the WiFi chip.  When sent out the consumer, how could one provide SSID and password for home/work AP?  Any other solution to this?
@copercini the error message displayed changes as I change the TLS message length.  Although it states SSL_INVALID_RECORD, I agree that it is related to the memory.

@seopyoon Could you share your code? I'm very interested in this, as I'm sure plenty of other ESP32 developers are right now. Perhaps some extra eyes may yield something.

@copercini
Is there any idea to increase the heap size?

@ekfhdwofhd you can add a external SRAM chip. But most of the chips out there right now have a bug in the silicon itself which prevents use of external ram at the moment. Surely there must be a way to free up more heap somewhere. I don't see why a state machine which only allows BLE + Wifi (No TLS, just ping to confirm connect) and Wifi + TLS + AWS IoT wouldn't work. I'd really like to take a look at this code.

@ksitko sorry for the confusion.  Having BLE+WIFI at one state, and WIFI+TLS on the other works.  I had put bluetooth init code in the second stage when I said it didn't work.

@seopyoon so just to confirm, do you have AWS IoT working then? Would you be willing to share the code?

It's possible to cut the size of CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN from sdkconfig.h. Considerable gain in heap space but you will need to know there are no long messages being sent. I cut mine from 16384 to 4900. 4800 is the size of a certificate sent in my handshake. there are a few k's of heap space to gain from messing around with Bluetooth too, it doesn't matter if you are doing simple things like scanning advertisements or something like that.

Hi ekfhdwofhd, is this problem solved now?

Hi,
I'm facing with a similar issue: my module connect and disconnect continuosly from the AWS broker. There is a way to get the reason code of disconnection?


Tracks do not load

IPFS backend seems to be unreachable from time to time which renders the radio silent.

It works on my machine ^^
Maybe a better preload and error handling logic can improve the situation.


Refactor decimal multiplication

What type of PR is this：

[x] bug
[ ] feature
[ ] enhancement
[ ] others

Which issues of this PR fixes ：

Problem Summary(Required) ：

Old decimal multiplication scale adjust rules is not robust, becase of a narrow decimal multiplied by another narrow decimal yields a narrow decimal, too. for example decimal64(10,2) * decimal64(10,2) yields decimal32(18,4), the result maybe overflow. so we must cast the narrow decimal to wide decimal if necessary to void overflow.
New decimal multiplication scale adjust rules as follows:
decimal(p1,s1) * decimal(p2, s2) => decimal(p, s)
At first, denote p' = p1 + p2, s' = s1+s2;

in case of p' <= 38, result never overflows, use the narrowest decimal type that can holds the result. so:
p = p1+ p2, s = s1+s2;
for examples:
decimal32(4,3) * decimal32(4,3) => decimal32(8,6);
decimal64(15,3) * decimal32(9,4) => decimal128(24,7).
in case of p' > 38 and s' <=38, the multiplication is computable but the result maybe overflow, so use decimal128 arithmetic and adopt maximum decimal precision(38) as precision of the result. so:
p = 38, s = s1 + s2
for examples:
decimal128(23,5) * decimal64(18,4) => decimal128(38, 9).
in case of s' > 38, the decimal is too large to hold in a decimal128, so report error. decimal's scale exceeds limit 38.

decimal arithmetic are testified both in disable/enable overflow check in BE, so now we turn on overflow check on BE for decimal arithmetic operations.

run starrocks_fe_unittest

run starrocks_fe_unittest

Can't set status; build failed.

run starrocks_fe_unittest

run starrocks_fe_unittest

[FE PR Coverage check]
:heart_eyes: pass : 21 / 21 (100.00%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/ArithmeticExpr.java
21
21
100.00%

run starrocks_be_unittest

[FE PR Coverage check]
:heart_eyes: pass : 21 / 21 (100.00%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/ArithmeticExpr.java
21
21
100.00%

@Mergifyio rebase

@Mergifyio rebase

run starrocks_fe_unittest

[FE PR Coverage check]
:heart_eyes: pass : 21 / 21 (100.00%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/analysis/ArithmeticExpr.java
21
21
100.00%

@Mergify backport branch-2.2


Update the samples to use new schema

The samples in config/samples are using the old schema.

[x] We should update them to use the new installation spec.
[x] Add a sample agentconfig.
[ ] Each field in the samples should be documented, and a header that explains why the sample is notable.

Created #60 to track the last item. Closing.


Remove explicit dependency on checkerframework.

This PR removes the explicit dependency on checkerframework. The postgresql jdbc driver already pulls in a different version of checkerframework. Removing the explicit dependency in PgBulkInsert and relying on the version from postgresql jdbc driver avoids a version conflict.
The current version of PgBulkInsert pulls version 3.9.1 of checkerframework while postgresql pulls in version 3.5.0. https://mvnrepository.com/artifact/org.postgresql/postgresql/42.2.19

Nice 👍


SLA link doesn't work

[Enter feedback here]
The SLA link in the the fourth paragraph that starts "A field service organization would like to offer an SLA to their customers where ...." doesn't work.

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

ID: 78ed36cc-bf48-59b0-8c43-5214491b32c1
Version Independent ID: 17b7d56f-24f5-41f7-6dcd-55c37bf5b067
Content: Service Level Agreements (SLAs) for work orders in Dynamics 365 Field Service
Content Source: ce/field-service/sla-work-orders.md
Service: dynamics-365-field-service
GitHub Login: @FieldServiceDave
Microsoft Alias: daclar

Thank you for reporting this @feridunkadir. I noticed the SLA term is already explained in context and it had linked to an external site so I removed it.
Kind regards,
Michael (Tech writer for Field Service)


Floyd's Algorithm

Description
Floyd's Algorithm
Domain
Python_Domain
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

/assign

/assign

@adityabisoi please assign me this issue

This is a algo-based topic, closing the issue


Resources and Case studies sections added to lora documentation

Hi @zakkos,
Thank you very much for your contribution, I manually resolved conflicts and merged your PR.


About incompatibility of pynini 1.9.1 (openfst 1.6.7) with Cython

OS: Ubuntu 16.04
Running dependency: Python 3.6.5 + OpenFST 1.6.7 + re2 + Pynini 1.9.1
Dear Kyle,
I'm currently playing with the newest ver. of pynini. However, after compiling openfst and re2, when executing following command in src/:
cython -3 --cplus -o pywrapfst.cc pywrapfst.pyx

I got following errors relevant to cython:
Error compiling Cython file:
------------------------------------------------------------
...

    Constructs a non-member weight in the semiring.
    """
    return _NoWeight(weight_type)

  def __eq__(Weight w1, Weight w2):
 ^
------------------------------------------------------------

pywrapfst.pyx:432:2: Special method __eq__ must be implemented via __richcmp__

Error compiling Cython file:
------------------------------------------------------------
...
    return _NoWeight(weight_type)

  def __eq__(Weight w1, Weight w2):
    return fst.Eq(deref(w1._weight), deref(w2._weight))

  def __ne__(Weight w1, Weight w2):
 ^
------------------------------------------------------------

pywrapfst.pyx:435:2: Special method __ne__ must be implemented via __richcmp__

Error compiling Cython file:
------------------------------------------------------------
...
      FstIOError: Write to string failed.

    See also: `read_from_string`.
    """
    cdef stringstream sstrm
    if not self._fst.get().Write(sstrm, "write_to_string"):
                                       ^
------------------------------------------------------------

pywrapfst.pyx:1769:40: Unicode literals do not support coercion to C types other than Py_UNICODE/Py_UCS4 (for characters) or Py_UNICODE* (for strings).

So seems like pynini1.9.1 is not fully compatible with Python3 (while pynini 1.8 is as I tried) due to unicode literal errors. Is that true or I did something wrong? If so, do we have a plan in short term on supporting pynini 1.9.1 with python 3?
I'm having trouble using TWiki so I post my question here. If it's unfortunately inappropriate please say and I'll get back to TWiki again. Thanks for being helpful!

According to the README I used Cython 0.27.3 to generate the .cc files for
Pynini 1.9.1. I usually just update my Cython ahead of each release.
On Thu, Apr 5, 2018 at 7:01 AM, Searcher<EMAIL_ADDRESS>wrote:

yes I'm using Cython 0.25.1. So it is an old version for pynini 1.9.1
right? (It worked for pynini 1.8 with openfst 1.6.5, other configurations
were same)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/kylebgorman/Pynini/issues/3#issuecomment-378898577,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJuOUhI4r5Lc9lgHwk3wig48bp2hzVKks5tlflygaJpZM4TG4yj
.

Got it. I'll make a note for this issue. Thanks!

Pynini 2.0 has built-in Python 3 support, please check out at
pynini.opengrm.org
On Fri, Apr 13, 2018 at 5:17 AM Xuechen Liu<EMAIL_ADDRESS>wrote:

Closed #3 https://github.com/kylebgorman/Pynini/issues/3.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kylebgorman/Pynini/issues/3#event-1572811146, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAJuOfsMqvsQzOlYhfF_iHDmS2wyrQJiks5toG0TgaJpZM4TG4yj
.


Writing to Word Built-In Properties

Hello, I posted about this a few months ago and forgot about this #40.
I am trying to write to the "Title" property of a word document.  When I use the Add-WordCustomProperty, a new custom property called "Title" is added, and the existing one remains unchanged.
Add-WordCustomProperty $WordDocument 'Title' 'New Title'
Is there another method perhaps I should be using?

$FilePath = "$PSScriptRoot\Output\PSWriteWord-Example-Tables5.docx"

$myitems = @(
    [pscustomobject]@{name = "Joe"; age = 32; info = "Cat lover"},
    [pscustomobject]@{name = "Sue"; age = 29; info = "Dog lover"},
    [pscustomobject]@{name = "Jason"; age = 42; info = "Food lover"}
)

$myitems1 = @(
    [pscustomobject]@{name = "Joe"; age = 32; info = "Cat lover"}
)

$WordDocument = New-WordDocument $FilePath
$WordDocument.PackagePart.Package.PackageProperties.Title = "Test"

Add-WordTable -WordDocument $WordDocument -DataTable $myitems -Design ColorfulList -Supress $True

Add-WordParagraph -WordDocument $WordDocument -Supress $True

Add-WordTable -WordDocument $WordDocument -DataTable $myitems1 -Design ColorfulList -Supress $True #-Verbose

Save-WordDocument $WordDocument -Language 'en-US' -Supress $True

### Start Word with file
Invoke-Item $FilePath

Sorry for late answer. Default properties are part of PackageProperties -> $WordDocument.PackagePart.Package.PackageProperties