Paste shows only when content on clipboard

Description
On native, the paste button in the text selection menu only shows when there is something to paste on the clipboard.  This PR adds the same functionality for Flutter.
There was a long standing TODO in the code about making the canPaste method consider what's on the clipboard.  I did not take this approach, because checking the clipboard is asynchronous and canPaste is used synchronously.
Instead, the text selection menus check the clipboard asynchronously when they're rendered and rerender if needed.  The clipboard is also checked when the app is resumed.  This results in the selection menu always being up to date, even if it's sometimes 1 frame late.  The only way I can find to trick it is by clearing the clipboard while the selection menu is still visible using the command line.  This shouldn't be possible in a production app, only while running an emulator.
Related Issues
https://github.com/flutter/flutter/issues/4355
Tests

Check the appearance of the Paste button when there is and is not content on the clipboard.

(haven't reviewed the code, but two questions from just reading the description)

doesn't this cause visual glitches if for one frame we render the paste button and then remove it?
does this also disable the paste option in TalkBack's local context menu if the clipboard is empty? (Can't remember if this already worked before this change)

@goderbauer There don't seem to be any visual glitches, and I think it's because of the fade-in animation.  If I don't render the toolbar until I get the content from the clipboard, then many tests fail (over 100) because they're expecting a Paste button 1 frame after tapping.  These failures seem fixable by changing pump topumpAndSettle in these cases.  Let me know if think it's better to go with that and update the pumps, or if you have another idea.
About TalkBack, I just tried it and it seemed to work.  TalkBack highlighted and spoke the visible toolbar buttons.  When paste wasn't there, it wasn't usable.

I would prefer updating the test. Now the tests seem just wrong: They are expecting a Paste button that may actually not become visible to the user.

@goderbauer @LongCatIsLooong Updated to only render when clipboard data is available.  I changed many tests to use pumpAndSettle when looking for the selection menu.  I agree that this makes more sense!

Code review changes made, thanks for the comments.

Did you have a chance to check how TalkBack behaves? I think it is showing a paste option in its local context menu. Does the operating system auto-hide that if there is nothing to paste? Or do we need to hide the this pate action from the text field in that case:
https://github.com/flutter/flutter/blob/240611b05e09cf9dfa7c93eb62df6b88ee38c6df/packages/flutter/lib/src/widgets/editable_text.dart#L2007
(Same question for pasting with iOS and VoiceOver).

@goderbauer I didn't realize there was a separate context menu for TalkBack!  I thought you just meant how TalkBack read out our context menu.  It seems that yes, the native TalkBack context menu does hide/show paste based on the content of the clipboard.  I think I'll have to add this isClipboardEmpty state to EditableText unfortunately.

It seems that yes, the native TalkBack context menu does hide/show paste based on the content of the clipboard.

Does it do that based on what's actually in the clipboard, or do we need to tell TalkBack to show/hide the option?

It looks like we need to tell it.  If I comment out the onPaste handler in the Semantics widget in EditableText, then it doesn't show the paste option.  Otherwise it does, even if nothing is on the clipboard.

@goderbauer I added the same clipboard checking logic to EditableText.  Is there a nice way to abstract this code somehow?

Could we implement a class "ClipBoardStatus" which is a Listenable. The listenable notifies its listeners whenever the clipboard status changes (Textfield and the Toolbar would listen to that). It provides two getters: isPasteStatusPenging and canPaste. The first one returns true while we wait for the Clipboard service to give us an answer. The second one returns true when there is data to paste in the clipboard. The class adds itself as a WidgetObserver when the first listener is added and removed its observer when the last listener is removed. This new class can then encapsulate all the logic that's currently duplicated in multiple places. You could even pass this object from the textfield to the Toolbar widget to avoid multiple instances. WDYT?
BTW, all names used in the paragraph above are just placeholders. Feel free to pick better names.

Gold has detected one or more untriaged digests on patchset 29.
Please triage them at https://flutter-gold.skia.org/search?issue=54902.

@goderbauer Done, thanks for the suggestion.  It feels a lot cleaner this way.  One slight deviation from the plan you posted was that I used a plain ValueNotifier with a boolean; true is pasteable, false is not, and null is pending.
Also, I think the Golden bot comments above are because I pushed a broken WIP commit.  Hopefully everything goes green now, it's passing locally.

@goderbauer Done and ready for re-review. Thanks for all the help.

The analyzer is unhappy.

Just had to squash all the commits in order to fix a failure.


Numbers...

Firstly, I set it manually to zero via: msg.guild.settings.set('test', '0');
let test = msg.guild.settings.get('test');
console.log(test);
msg.guild.settings.set('test', test+1);

After executing the code I checked it again via: msg.guild.settings.get('test'); and it returns like<PHONE_NUMBER>, every time the command is executed instead of adding it? Is there any work around or plan to implement this?

You're setting it to a string initially.


Add --force to destroy to allow IaaS teardown even if Director is b0rken

If the the BOSH Director fails to deploy, then concourse-up destroy also fails, as it gets an err when trying to teardown the non-existent director, and fails fast. Adding a --force flag would ideally make this error non-terminal, and would thus allow Terraform teardown to proceed.

Functionality was changed in https://github.com/EngineerBetter/concourse-up/commit/6cdc74d9c6e86dbb98b300f67a580eef9b27cdc1 to display a warning and continue with the terraform teardown on a BOSH destroy error.

Note this will still fail if there is a bosh director or concourse VMs hanging around. I suggest adding some code  so when client.deleteBosh returns an error, it uses the aws-sdk library to manually shoot all of the concourse VMs and the director directly (can probably find these by searching for tags that bosh automatically adds to the ec2 instances).
If you're bored this weekend Colin... :)

@danyoung Guessing this can be closed now?


A question about [util/load_subset.py]

Thank you very much for your work. I would like to ask you a few questions!
Is this a Python file about the training set？
`"""
load_subset.py - Presents a subset of data
DAVIS - only the training set
YouTubeVOS - I manually filtered some erroneous ones out but I haven't checked all
"""
def load_sub_davis(path='util/davis_subset.txt'):
with open(path, mode='r') as f:
subset = set(f.read().splitlines())
return subset
def load_sub_yv(path='util/yv_subset.txt'):
with open(path, mode='r') as f:
subset = set(f.read().splitlines())
return subsetAre all the video file names for the training set in this txt document？https://github.com/hkchengrex/XMem/blob/main/util/davis_subset.txt`

Thank you very much for your work. I would like to ask you a few questions! Is this a Python file about the training set？ `""" load_subset.py - Presents a subset of data DAVIS - only the training set YouTubeVOS - I manually filtered some erroneous ones out but I haven't checked all """
def load_sub_davis(path='util/davis_subset.txt'): with open(path, mode='r') as f: subset = set(f.read().splitlines()) return subset
def load_sub_yv(path='util/yv_subset.txt'): with open(path, mode='r') as f: subset = set(f.read().splitlines()) return subsetAre all the video file names for the training set in this txt document？https://github.com/hkchengrex/XMem/blob/main/util/davis_subset.txt`


c1bccecf7 broke templates

https://github.com/fabric8io/templates/tree/master/default/template contains loads of nginx 404 pages. Looks like templates were scraped from somewhere  automatically and commited back with not founds.

Ah thanks for the heads up!  We'll get this sorted.

Ok the templates are generating correctly now.. sorry about that!  https://github.com/fabric8io/templates/commit/1d1e1c30d584aa651a1c9331142757a562fe5f10


Fusion table update from .Net code

Google fusion table api V1

I would like to see how to update a fusion table with the dotnet client

ASP.NET Or Winforms

https://developers.google.com/fusiontables/

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 15 Nov 2013 at 11:46

No activity here, closing.


Scene Classification using DL

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : Scene Classification using DL
:red_circle: Aim : To classify the scene in the image from six different classes.
:red_circle: Dataset https://www.kaggle.com/datasets/nitishabharathi/scene-classification
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name : Om Achrekar
GitHub Profile Link : achrekarom12
Email ID<EMAIL_ADDRESS>Participant ID (if applicable):
Approach for this Project : I will try to use Image detection models such as VGG16, ResNet and so.
What is your participant role? (Mention the Open Source program)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

One issue at a time.

Issue assigned to you @achrekarom12


[runwhen-local-feedback] Test and document proxy configuration

Observation
We aren't sure yet of the required settings or modifications required to use a proxy with RWL.
Possible Suggestions
Set up a test proxy, test if passing standard environment variables are picked up automatically, or if code adjustments are required (the requests library may require update, urllib may not)
Any other details or context

This has been tested with a minimal setup running on Docker:
Deploy a simple squid proxy server with no config (which will default deny):
$ docker run --name squid-proxy --restart=always -d -p 3128:3128 sameersbn/squid:3.5.27-2

Run the docker image with the proxy variables:
# docker run --name RunWhenLocal --network host -p 8081:8081 -e NO_PROXY="localhost" -e HTTP_PROXY="http://localhost:3128" -e HTTPS_PROXY="http://localhost:3128" -v $workdir/shared:/shared -d runwhen-local:test

See deny in proxy:
$ docker exec -it squid-proxy tail -f /var/log/squid/access.log
1708775728.980      0 <IP_ADDRESS> TCP_DENIED/403 5688 GET http://844fbc21773c:3128/squid-internal

And error in RunWhen Local:
Error 500 from Workspace Builder service for command "run": Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v --mirror -- https://github.com/runwhen-contrib/rw-public-codecollection.git /tmp/tmp4mvc7a68/rw-public-codecollection
  stderr: 'Cloning into bare repository '/tmp/tmp4mvc7a68/rw-public-codecollection'...
fatal: unable to access 'https://github.com/runwhen-contrib/rw-public-codecollection.git/': Received HTTP code 403 from proxy after CONNECT

Add a config to the proxy to allow outbound connections and watch the logs:
$ docker run --name squid-proxy --restart=always -d -p 3128:3128 --volume  /workspace/squid.conf:/etc/squid/squid.conf sameersbn/squid:3.5.27-2

 $ docker exec -it squid-proxy tail -f /var/log/squid/access.log

1708776990.033    481 <IP_ADDRESS> TCP_TUNNEL/200 866205 CONNECT github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708776990.327    274 <IP_ADDRESS> TCP_TUNNEL/200 4541 CONNECT github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708776991.052    567 <IP_ADDRESS> TCP_TUNNEL/200 2602533 CONNECT github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708776991.367    281 <IP_ADDRESS> TCP_TUNNEL/200 4933 CONNECT github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777009.356    542 <IP_ADDRESS> TCP_TUNNEL/200 1612419 CONNECT github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777009.787    328 <IP_ADDRESS> TCP_TUNNEL/200 4594 CONNECT api.github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777009.872    242 <IP_ADDRESS> TCP_TUNNEL/200 4827 CONNECT api.github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777009.873     83 <IP_ADDRESS> TCP_TUNNEL/200 20018 CONNECT avatars.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777010.231    337 <IP_ADDRESS> TCP_TUNNEL/200 4689 CONNECT api.github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777010.331    242 <IP_ADDRESS> TCP_TUNNEL/200 4911 CONNECT api.github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777010.333     99 <IP_ADDRESS> TCP_TUNNEL/200 352223 CONNECT avatars.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777010.700    335 <IP_ADDRESS> TCP_TUNNEL/200 4590 CONNECT api.github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777010.795    253 <IP_ADDRESS> TCP_TUNNEL/200 4949 CONNECT api.github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777010.797     94 <IP_ADDRESS> TCP_TUNNEL/200 159589 CONNECT avatars.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777011.942    354 <IP_ADDRESS> TCP_TUNNEL/200 6655 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.231    102 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.241     93 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.282    132 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.284    130 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.284    125 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.284    121 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.285    126 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.290    136 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.292    128 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.308     85 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.323    121 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.346     98 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.435     74 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.438     72 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.443     77 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.475    105 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.476    105 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.483    105 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.487    113 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.488    108 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.523    146 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.523    139 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.524    141 <IP_ADDRESS> TCP_TUNNEL/200 6653 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.636    185 <IP_ADDRESS> TCP_TUNNEL/200 6696 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708777012.822    191 <IP_ADDRESS> TCP_TUNNEL/200 6511 CONNECT raw.githubusercontent.com:443 - HIER_DIRECT/<IP_ADDRESS> -

Here are the changes I did in runwhen-local deployment
Image: ghcr.io/runwhen-contrib/runwhen-local:0.5.2
    spec:
      containers:
      - env:
        - name: AUTORUN_WORKSPACE_BUILDER_INTERVAL
          value: "1800"
        - name: RW_LOCAL_TERMINAL_DISABLED
          value: "true"
        - name: HTTP_PROXY
          value: our-proxy-server-ip:8080
        - name: http_proxy
          value: our-proxy-server-ip:8080
        - name: https_proxy
          value: our-proxy-server-ip:8080
        - name: no_proxy
          value: <IP_ADDRESS>/16,<IP_ADDRESS>,localhost,<IP_ADDRESS>/8,.svc,.cluster.svc,.svc.cluster.local,runwhen-local.runwhen-local.svc.cluster.local
        - name: HTTPS_PROXY
          value: our-proxy-server-ip:8080
        - name: NO_PROXY
          value: <IP_ADDRESS>/16,.svc,.cluster.svc,.svc.cluster.local,runwhen-local.runwhen-local.svc.cluster.local,<IP_ADDRESS>,localhost,<IP_ADDRESS>/8

@zohebshaik41 I have not tested without the protocol in the HTTPS prefix? Can you change HTTP_PROXY/HTTPS_PROXY from our-proxy-server-ip:8080 to http://our-proxy-server-ip:8080

I've tried add http/https, but no luck. Still getting connection refused error at initial step itself.
Below one:
[error] 21#21: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.x.x.x(worker node - where runwhen pod is running), server: , request: "GET / HTTP/1.1", upstream: "http://[::1]:8082/", host: "192.x.x.x(runwhen-pod-ip):8081"
(worker node - where runwhen pod is running) - - [26/Feb/2024:12:29:48 +0000] "GET / HTTP/1.1" 200 32626 "-" "kube-probe/1.28"
(worker node - where runwhen pod is running) - - [26/Feb/2024:12:30:08 +0000] "GET / HTTP/1.1" 200 34907 "-" "kube-probe/1.28"
(worker node - where runwhen pod is running) - - [26/Feb/2024:12:30:28 +0000] "GET / HTTP/1.1" 200 32626 "-" "kube-probe/1.28"
Using auth from /shared/kubeconfig...

I think there might be two issues at play
#1 Connection error to local services
[error] 21#21: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.x.x.x(worker node - where runwhen pod is running), server: , request: "GET / HTTP/1.1", upstream: "http://[::1]:8082/", host: "192.x.x.x(runwhen-pod-ip):8081"

I can't seem to reproduce this in my environment but will keep trying. it could be a misleading error. Can you port-forward the service port to your local machine and see if the mkdocs instance is running? the other GET requests indicate it might be.
For example:
kubectl port-forward svc/runwhen-local 8081:8081 -n runwhen-local

#2 Connection to api.cloudquery.com failure
I can't yet reproduce this in my proxy test. I've been trying to lock down connections to only GitHub and this, for some reason, isn't reproduced - but I'm not sure if there is some form of cache that's causing it not to fail for me.
Are you able to add this to your allowed list of URLs? That would help us quickly diagnose it. I'll keep trying on my side but my environments aren't as rigid as yours.

I'm investigating if there is some way that my test is bypassing the proxy for the cloudquery operations - I have a feeling that this might be where the error is.

I found the issue - indeed the subprocess call to cloudquery (which is used to index non-kubernetes environments such as gcp/azure/aws and so on) was not pulling in the environment variable. I will have a fix for this shortly, but it also means that there are additional urls that need to be allowed. This is a trace of the calls
1708959633.276    540 <IP_ADDRESS> TCP_TUNNEL/200 844770 CONNECT github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708959633.822    519 <IP_ADDRESS> TCP_TUNNEL/200 4542 CONNECT github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708959634.790    669 <IP_ADDRESS> TCP_TUNNEL/200 2602064 CONNECT github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708959635.124    314 <IP_ADDRESS> TCP_TUNNEL/200 4911 CONNECT github.com:443 - HIER_DIRECT/<IP_ADDRESS> -
1708959636.897      1 <IP_ADDRESS> TCP_DENIED/403 3905 CONNECT storage.googleapis.com:443 - HIER_NONE/- text/html
1708959636.898    190 <IP_ADDRESS> TCP_TUNNEL/200 4834 CONNECT analyticsv1.cloudquery.io:443 - HIER_DIRECT/<IP_ADDRESS> -
1708959636.900    191 <IP_ADDRESS> TCP_TUNNEL/200 6015 CONNECT api.cloudquery.io:443 - HIER_DIRECT/<IP_ADDRESS> -

This means that the list of urls is:

github.com
githubusercontent.com
storage.googleapis.com
cloudquery.io

I can release a new version shortly that properly passes through the proxy env vars, but it will take a little more time to sort out a "disable cloudquery" option for on-premise kubernetes discovery only.

@stewartshea You want me to try with image: 0.5.3?
By looking at the commits/info, looks like you have fixed the issue. Let me retry with 0.5.3 now

@stewartshea You are pure magician. It's working now with 0.5.3.
I really appreciate and thank you for this.
Now the product is available for on-prem proxy setups as well.

Glad to hear it, thanks for confirming! Much appreciated!


packup does not respect package-archive-priorities

This needs more investigation, but it seems like our current approach in packup for checking/installing updates disregards package-archive-priorities (set in lisp/package/repositories.el). Namely, I see many packages on my system are installed from MELPA despite also being available in MELPA Stable (which has a higher priority).
This may be best wrapped into #84 (which would be lovely to finally get finished up when someone has a change).

Sort of unrelated but also might need more investigation: handling updates of dependencies (even if the package which depends on it has not had an update).


Cannot bind POCO to return value of function

Binding the return value of a function to an output causes the error:
Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.ReturnOutputTest'. Microsoft.Azure.WebJobs.Host: Can't bind Blob to type 'Submission#0+Poco&'.
Repro steps
Create a function with an output bound to a blob.  I triggered my function using a manual trigger.  Here's the code:
using System;

public static Poco Run(string input, TraceWriter log)
{
    log.Info($"C# manually triggered function called with input: {input}");
    return new Poco {
        MyString = "input",
        myDateTime = DateTime.Now
    };
}

public class Poco {
    public string MyString {get; set; }
    public DateTime myDateTime {get; set;}
}

Bindings:
{
  "bindings": [
    {
      "type": "blob",
      "name": "$return",
      "path": "testoutput/{rand-guid}",
      "connection": "AzureWebJobsDashboard",
      "direction": "out"
    },
    {
      "type": "manualTrigger",
      "name": "input",
      "direction": "in"
    }
  ],
  "disabled": false
}

Expected behavior
Binding works and outputs value to blob
Actual behavior
The binding fails.
Compiling the function gives the error:
Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.ReturnOutputTest'. Microsoft.Azure.WebJobs.Host: Can't bind Blob to type 'Submission#0+Poco&'.
You see this error when switching to the Develop tab in the portal:
Error:

Function ($ReturnOutputTest) Error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.ReturnOutputTest'. Microsoft.Azure.WebJobs.Host: Can't bind Blob to type 'Submission#0+Poco&'.
Session Id: 2d0750255192418fb22ae96f623db8df

Timestamp: 2016-11-03T18:23:09.194Z

@fabiocav Perhaps this issue was resolved by your commit https://github.com/Azure/azure-webjobs-sdk-script/commit/20f6b2004e783012ae68f010fa6045f7d914ab66?

Not this issue. Need to repro this to see what is going on. Was focused on other items and #870 today.

Hi,
Is this issue resolved because I am facing the same problem.

Closing stale issue. This is no longer applicable


Notero download shows corrupted file

Describe the issue
I am attempting to download the v0.6.7 version of Notero and a pop-up appears stating that the installation attempt was stopped because the file appears to be corrupted.
To Reproduce
Steps to reproduce the behavior:

Go to https://github.com/dvanoni/notero/releases/tag/v0.6.7
Click on notero-0.6.7.xpi
See error

Expected behavior
I expected a zip folder to be downloaded with the new version.
Screenshots

Additional context
Add any other context about the problem here.

Hi @SueP68, it looks like you're using Firefox. There's a note in the installation section of the README that describes how to download:

Note for Firefox users: You'll need to right-click the download link and choose Save Link As... in order to properly download the file.

Let me know if this works for you.

Hello,
Thank you for your quick response! I totally missed that piece and it has
worked (after updating my Zotero).
Thanks again,
Sue
On Sun, Nov 3, 2024 at 12:40 PM David Hoff-Vanoni @.***>
wrote:

Hi @SueP68 https://github.com/SueP68, it looks like you're using
Firefox. There's a note in the installation section of the README that
describes how to download:
Note for Firefox users: You'll need to right-click the download link and
choose Save Link As... in order to properly download the file.
Let me know if this works for you.
—
Reply to this email directly, view it on GitHub
https://github.com/dvanoni/notero/issues/614#issuecomment-2453490513,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BMUD2GP7S22GUWZLX5UMQW3Z6ZGXXAVCNFSM6AAAAABRCWLFPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJTGQ4TANJRGM
.
You are receiving this because you were mentioned.Message ID:
@.***>


More detailed info for last accessed time

Thank you for the great guidance for last access time(LAT) properties.
We can make it clearer when LAT is updated and what operations can update LAT.
https://learn.microsoft.com/en-us/azure/storage/blobs/lifecycle-management-overview#move-data-based-on-last-accessed-time
A Get Blob operation is considered an access operation.
To minimize the effect on read access latency, only the first read of the last 24 hours updates the last access time.
Read Access can be get blob and read file. Could you add Read File operation?
Some of gen2 users concerned if their files LAT can be updated.
https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/read
Could you clarify when LAT is updated for write access?
write access can update LAT every time while read access won't update for last 24h.

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

ID: 1fba9bbf-0023-8aed-edf5-3c456031e47f
Version Independent ID: 977b6498-cb6d-ea8b-4e67-1272c2a89ec8
Content: Optimize costs by automatically managing the data lifecycle - Azure Storage
Content Source: articles/storage/blobs/lifecycle-management-overview.md
Service: storage
Sub-service: common
GitHub Login: @normesta
Microsoft Alias: normesta

@rui-hi
Thanks for your feedback! We will investigate and update as appropriate.

@rui-hi
Thank you for your feedback!
Since this issue isn't directly related to improving our docs, and to gain a better understanding of your issue, I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request). Or you can leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds.
[Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) for technical questions about the configuration and administration of Microsoft Teams on Windows.
[Microsoft Teams Community forum] (https://answers.microsoft.com/en-us/msteams/forum?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1)
Thank you for your time and patience throughout this issue.


Attribution

Would you mind crediting me in the Copyright notice and the README on this, and in Aurora, please?

Not at all, thanks for the reminder.


Integration Test - Release - 2019/03/18 16:51:05

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#backlog'

#pri2

#backlog

#assign PRMergerTest1

#assign NonAllowedUser

NonAllowedUser is not a valid GitHub ID, or is not a collaborator on this repo.

#reassign PRMergerTest2

#reassign NonAllowedUser

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

NonAllowedUser is not a valid GitHub ID, or is not a collaborator on this repo.

#please-close


Explicitly specify the team that players land on.

It is sometimes highly confusing to figure out which team each player should join. I think by explicitly specifying the team and its position (left/right), we can make that choice clear.

LGTM, thank you!


Position the text cursor when a lv_ta object is clicked

If the user clicks on a lv_ta object, the cursor will be placed at the position of the click.
The signal func of the child label is wrapped and all LV_SIGNAL_PRESSED signals will be intercepted and forwarded to the parent lv_ta.

Hi,
Nice and clean code! Thank you!
It seems to me you can use lv_ta_scrollable_signal too to handle the click. A similar handling can be added to lv_ta_signal to set the cursor to 0 or LV_TA_CURSOR_LAST.
It seems working for me. Have I messed something?

Seems fine, i have to admit that i did not recognize that LV_SIGNAL_PRESSED was signaled using lv_ta_scrollable_signal when the label gets clicked.
I moved the code into a new function to avoid code duplication.

Merged, thank you very much!


Wish List: selectable notification sound

I would love to set a dedicated YakYak notification sound in windows and mac so I can tell it from other apps.
Thank you

@NSDodgers right now it is the notification system that controls the sound that's produced

The current options interface would require a big change to support this type of customization.

I'm working on a custom yakyak sound for notification systems that don't support sound
in theory when this is released it would be just a matter of replacing the sound file by your own custom one.
I don't see this as an option unless the way we set options in yakyak is changed in the near future :\
any help is welcome!
@NSDodgers do you think we can move this conversation to #405 and close this issue?

closing, as #405 is more generic conversation on notification sounds
It's not customizable, but you can activate a default sound in view -> notifications -> use custom YakYak sound
if you really want to change it, just replace new_message.ogg (in resources/app/media) by your own sound (the filename has to be the same)


Upgrade Ray to 2.2.x and PyArrow to 7+

Detail
Upgrading PyArrow to 7+ so that we can merge the DeltaLake feature into release-3.0.0.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
Commit ID: f06ae6f30c6d4dda8afb0ce30523557eb7000747
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubStandardCodeBuild8C06-llutOAimTATs
Commit ID: f06ae6f30c6d4dda8afb0ce30523557eb7000747
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubLoadTests5656BB24-ATYtnXPE7MOa
Commit ID: f06ae6f30c6d4dda8afb0ce30523557eb7000747
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
Commit ID: 7116645f07623274b4fde1ca78cae2cac8e812a6
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubLoadTests5656BB24-ATYtnXPE7MOa
Commit ID: 7116645f07623274b4fde1ca78cae2cac8e812a6
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubStandardCodeBuild8C06-llutOAimTATs
Commit ID: 7116645f07623274b4fde1ca78cae2cac8e812a6
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
Commit ID: a647da299d2bd94d2b9670e873e93bc62b68f09b
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubStandardCodeBuild8C06-llutOAimTATs
Commit ID: a647da299d2bd94d2b9670e873e93bc62b68f09b
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubLoadTests5656BB24-ATYtnXPE7MOa
Commit ID: a647da299d2bd94d2b9670e873e93bc62b68f09b
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubLoadTests5656BB24-ATYtnXPE7MOa
Commit ID: 991582b18cece1737d6a30f5ef9f257c35e9ed1c
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubStandardCodeBuild8C06-llutOAimTATs
Commit ID: 991582b18cece1737d6a30f5ef9f257c35e9ed1c
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


New plugin: karshPrime/tmux-compile.nvim

Plugin name
tmux-compile.nvim
Description
With this plugin you could set a key, say F5 to run/compile any of your project with your configuration. Run make for C projects, cargo build for rust, go build for Go, and so on; with same key. It uses tmux to run/build project in same window (new pane) or in a new background window.
Repo link
https://github.com/karshPrime/tmux-compile.nvim
Tags
Split and Window Code Runner Keybinding Programming Languages Support Terminal Integration

Hi @karshPrime your plugin is live on NeoLand! https://neoland.dev/plugin/8841


Establish permission policy for workspaces with more granular control

What would you like to be added:
It would be beneficial to have the ability to further segment permissions within a workspace. Exploring how to provide this in a general manner is essential. Examples of potential permission levels could include maintainers, collaborators, ossca-members, etc.
Why is this needed:
To enhance the permission structure within workspaces, allowing for more granular control and improved collaboration.
Additional Information:

Taking inspiration from Notion's concept of "Team Spaces" within a workspace could provide a solid reference point. Implementing similar functionality in our workspace structure could greatly benefit users seeking more granular control over permissions.
By introducing the notion of "Team Spaces," users could create subsets within their workspace, each with its own set of permissions. For instance, users could define different permission levels such as maintainers, collaborators, and specific group memberships like ossca-members, tailoring access rights to match their workflow requirements precisely.


cataloguer.sh not replacing correctly

It seems that cataloguer.sh is not replacing underscores by dashes. Steps to reproduce:

Create a file like library/firewall_log_analysis.ipnb
Run the script and check the results

This replacement is done by tr in a lazy-secondary pipe. Another strategy is to replace tr by sed.

For some unknown and undocumented bug, I wasn't able to replace _ in find ... -exec .... Due to that, I moved the approach to launching an one-liner sub-shell to rename the files. I sticked with find because it's able to work easily on subdirectories.

Fixed: https://github.com/lopes/notebooks/commit/0a50fe78afddc7986a740eb59ab36cc646e81840


OCPBUGS-5723: Update kyaml and kustomize packages

This PR updates the kustomize/api package to version v0.13.2 and kyaml package to version v0.14.1.

/jira refresh

/retest


[Bug]: The package plyvel is not fit for python 3.10 in video_deduplication_at_segment_level.ipynb

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
The package plyvel is not fit for python 3.10 in video_deduplication_at_segment_level.ipynb
Installing collected packages: plyvel
  DEPRECATION: plyvel is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for plyvel ... error
  error: subprocess-exited-with-error

  × Running setup.py install for plyvel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      running install
      /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.macosx-10.9-universal2-cpython-310
      creating build/lib.macosx-10.9-universal2-cpython-310/plyvel
      copying plyvel/_version.py -> build/lib.macosx-10.9-universal2-cpython-310/plyvel
      copying plyvel/__init__.py -> build/lib.macosx-10.9-universal2-cpython-310/plyvel
      running build_ext
      building 'plyvel._plyvel' extension
      creating build/temp.macosx-10.9-universal2-cpython-310
      creating build/temp.macosx-10.9-universal2-cpython-310/plyvel
      clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c plyvel/_plyvel.cpp -o build/temp.macosx-10.9-universal2-cpython-310/plyvel/_plyvel.o -Wall -g -x c++ -std=c++11 -stdlib=libc++
      plyvel/_plyvel.cpp:768:10: fatal error: 'leveldb/db.h' file not found
      #include "leveldb/db.h"
               ^~~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> plyvel

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

@zc277584121  Could you please have a look?
Expected Behavior
succeed
Steps To Reproduce
https://github.com/towhee-io/examples/blob/main/video/video_deduplication/segment_level/video_deduplication_at_segment_level.ipynb

Environment
- Towhee version(e.g. v0.1.3 or 8b23a93):0.9.0
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others:

Anything else?
No response

check your local environment, it may cause by mac OS with M1 core.

May be specific env problem, so defer.


No longer pulling killmails?

I noticed a while after i performed a git pull, that i'm no longer getting killmail updates of any kind, when i check the error log I have this:
PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /home/leon/discordbot/Dramiel/src/plugins/onTick/getKillmails.php on line 133
PHP Warning:  simplexml_load_string(): [{"killID":55100424,"solarSystemID":30001442,"killTime":"2016-07-14 18:13:00","m in /home/leon/discordbot/Dramiel/src/plugins/onTick/getKillmails.php on line 133
PHP Warning:  simplexml_load_string(): ^ in /home/leon/discordbot/Dramiel/src/plugins/onTick/getKillmails.php on line 133

Any thoughts?

Yup working on a fix with the guys at zkill. Nothing was changed on my end

should be fixed


Add Bastion option for SKU

Benefit/Result/Outcome
Allow features that come with the Standard SKU, https://learn.microsoft.com/en-us/azure/bastion/bastion-overview#sku, to increase scale or customize security options.

The developer SKU should be added too. While the developer SKU doesn't work across VNET peers, bastion can be used to access the jump box then remote to the desired device.

Developer SKU is in "public preview" so hold off adding that until GA.


Blog

Name
Blog
Difficulty
Beginner
📝 Project Description
User can write text and publish it for other users to read.
📑User Stories

[ ] User can read one blog.
[ ] User can like blog post, at this point likes can be saved locally
[ ] User can remove like, at this point likes can be saved locally
[ ] User can see total likes of blog post, at this poin 0 or 1, if they are saved locally
[ ] User see comment field under the blog post
[ ] User can write comments, at this point comments can be saved locally
[ ] User see comments that they have written and send

🌟 Bonus features (optional)

[ ] User can create account
[ ] User likes on blog post are saved on server and are shown for other users.
[ ] User comments on blog post are saved on server and are shown for other users.
[ ] User can follow block writer.
[ ] Users can like like or dislike comments. Total amount of likes is saved on server and is shown for all users.
[ ] Users can write their own blog.
[ ] All blogs are listed.
[ ] All blogs by writers that user follow are be listed.
[ ] All blogs of the writer are be listed
[ ] User can sort all blog post by time, both newest to oldest and oldest to newest.
[ ] User can sort all blog post by popularity, both most to least and least to most
[ ] User can sort all blog post by authors name in alphapethical order both ways
[ ] After publishing blog post, author can edit it.
[ ] If author has edited their block post, it are shown, for example at the bottom "last edited at 10.30pm"
[ ] User can stylish the blog post with for example marksman or html.

Useful links and resources

Wikipedia
django tutorial
react tutorial

Example projects

nodejs github repo

Approved! Next time please assign your project ideas with the new idea label. :+1:


Using bazel build without CUDA

Unclear how to use the bazel test without CUDA.
bazel test -k //... --test_env=IREE_CUDA_DISABLE=1

still failing on CUDA tests.
Executing tests from //tests/e2e/stablehlo_ops:check_cuda_graph_concatenate.mlir
-----------------------------------------------------------------------------
[==========] Running 2 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 2 tests from module
[ RUN      ] module.xla_concatenate
runtime/src/iree/hal/driver_registry.c:319: NOT_FOUND; no driver 'cuda' registered; creating driver for device 'cuda'; resolving dependencies for 'module'

Not sure if this is possible right now. The --test_env only changes runtime behavior for tests that look at environment variables (lit tests), and the check tests rely on build/configure-time filtering instead.
iree_check_test_suite currently does some filtering, but iree_check_single_backend_test_suite does not:
https://github.com/openxla/iree/blob/b13037b0c55b90a41d644cd9d55500906252a4be/build_tools/bazel/iree_check_test.bzl#L200-L205
tests/e2e/stablehlo_ops/BUILD.bazel uses the single_backend version.

We may be able to route @iree_cuda//:enabled through to iree_check_single_backend_test_suite. On the CMake side, we have many filtering options... Bazel might be able to get by with just a few. https://github.com/openxla/iree/blob/b13037b0c55b90a41d644cd9d55500906252a4be/build_tools/cmake/iree_check_test.cmake#L186-L224

Started looking into this today but my Bazel is rusty. https://bazel.build/docs/configurable-attributes mentions a few different approaches that could be used. I'm not sure how to interface between those and our "macros" (which could be converted into "rules").
More context I found: --iree_drivers=vulkan works together with https://github.com/openxla/iree/blob/59297e0333c25ed31e2d6fb899a760191e939302/build_tools/bazel/iree.bazelrc#L41-L44 and https://github.com/openxla/iree/blob/main/runtime/src/iree/hal/drivers/BUILD.bazel
Similar discussion back here on Discord
Actually, from that discussion - https://github.com/openxla/iree/blob/main/build_tools/bazel/build_core.sh adds the -driver=cuda test tag filter (to --test_tag_filters). So... that might resolve this question, but it isn't convenient... (It would be nice if CUDA unavailable / not enabled --> don't define build targets that depend on it).

Summarizing, this might do what you want:
bazel test -k //... --iree_drivers=local-sync,local-task,vulkan --test_tag_filters="-driver=cuda"
(may also want --test_env=IREE_CUDA_DISABLE=1, --test_env=IREE_NVIDIA_GPU_TESTS_DISABLE=1, etc.)

Whatever comes out of this could be documented here: https://iree.dev/developers/building/bazel/
(common recipes for setting flags, using filters, etc.)

Wish I could help but I have flushed my knowledge of systems that refuse to have an if statement.

bazel test -k //... \
  --iree_drivers=local-sync,local-task,vulkan
  --test_tag_filters="-driver=cuda,-driver=vulkan"

fails on my Linux machine in a few ways:
In file included from runtime/src/iree/hal/drivers/cuda/status_util.c:7:
In file included from runtime/src/iree/hal/drivers/cuda/status_util.h:13:
In file included from runtime/src/iree/hal/drivers/cuda/dynamic_symbols.h:12:
runtime/src/iree/hal/drivers/cuda/cuda_headers.h:10:10: fatal error: 'cuda.h' file not found
#include "cuda.h"                   // IWYU pragma: export
         ^~~~~~~~
1 error generated.

ERROR: /usr/local/google/home/scotttodd/code/iree/tests/e2e/stablehlo_ops/BUILD.bazel:339:37: Compiling IREE module check_cuda_graph_exponential_minus_one.mlir_bytecode_module... //tests/e2e/stablehlo_ops:check_cuda_graph_exponential_minus_one.mlir_bytecode_module failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)

Use --sandbox_debug to see verbose messages from the sandbox
tests/e2e/stablehlo_ops/exponential_minus_one.mlir:3:13: error: failed to parse libdevice.xx.bc bitcode: Invalid bitcode signature (possible LLVM bitcode incompatibility?)
  %result = "stablehlo.exponential_minus_one"(%input) : (tensor<4xf32>) -> tensor<4xf32>
            ^
tests/e2e/stablehlo_ops/exponential_minus_one.mlir:3:13: error: failed linking in embedded libdevice bitcode for target triple 'nvptx64-nvidia-cuda'
  %result = "stablehlo.exponential_minus_one"(%input) : (tensor<4xf32>) -> tensor<4xf32>
            ^
tests/e2e/stablehlo_ops/exponential_minus_one.mlir:3:13: error: failed to serialize executable for target backend cuda
  %result = "stablehlo.exponential_minus_one"(%input) : (tensor<4xf32>) -> tensor<4xf32>
            ^
tests/e2e/stablehlo_ops/exponential_minus_one.mlir:3:13: error: failed to serialize executables
  %result = "stablehlo.exponential_minus_one"(%input) : (tensor<4xf32>) -> tensor<4xf32>
            ^

I think I can exclude the iree_bytecode_module targets with more tags/filters. Not sure about the runtime code... could see why those are being built (e.g. for which tests/binaries). Could also debug into cuda_auto_configure_impl (somehow... Bazel.. ugh...) to see what is going on with the configuration.


[Java] Enable code review and formatting code through Spotless Maven plugin

Describe the enhancement requested
As Java code increases, it will become increasingly important to implement code formatter best practices. As a result, we will be able to use spotless to:

Reviewing code: Spotless can be used to identify issues related to format.
Formatting code: Spotless can be used to automatically fix common formatting mistakes, such as spaces, newlines, and unnecessary imports.

This enhancement will propose replacing maven-checkstyle-plugin with spotless-maven-plugin, which is currently used by Java.
Component(s)
Java

What format does Spotless use? google-java-format has the advantage of IDE plugins that help with formatting, too

What format does Spotless use? google-java-format has the advantage of IDE plugins that help with formatting, too

We are starting using google-java-format as you could see at https://github.com/davisusanibar/arrow/blob/97e68f5e66d890c34dde89d0727fbc294a82b869/java/pom.xml#L693. Also palantir-java-format is also available.

Closing in favor of the structured issue: https://github.com/apache/arrow/issues/40757


Add related category

this PR should be accepted after any fix to english publisher merged
see #3

Will merge after conflicts are seen to


useRuntimeConfig missing when generating PDF serverside

Environment
------------------------------
- Operating System: Darwin
- Node Version:     v21.2.0
- Nuxt Version:     3.10.3
- CLI Version:      3.10.1
- Nitro Version:    -
- Package Manager<EMAIL_ADDRESS>- Builder:          -
- User Config:      devtools, modules, formkit, colorMode, kinde, stripe, routeRules
- Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>- Build Modules:    -
------------------------------

Reproduction
see below
Describe the bug
when trying to generate a pdf serverside, i get this error (logs section):
the api endpoint looks like this:
import { createPDF, streamReturnPDF } from '#pdf'

export default defineEventHandler(async (event) => {
  const pdf = createPDF()
  pdf.text('Welcome to NuxtPDF!')
  pdf.end()
  return streamReturnPDF(event, pdf)
}

Additional context
No response
Logs
[nuxt] [request error] [unhandled] [500] useRuntimeConfig is not defined
  at createPDF (./node_modules/.pnpm/@sidebase+nuxt-pdf@1.0.0-alpha.0_nuxt@3.10.3_vite@5.1.5/node_modules/@sidebase/nuxt-pdf/dist/runtime/server/pdf.mjs:5:36)
  at Object.handler (./server/api/generator.ts:50:1)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  at async Object.handler (./node_modules/.pnpm/h3@1.11.1/node_modules/h3/dist/index.mjs:1962:19)
  at async Server.toNodeHandle (./node_modules/.pnpm/h3@1.11.1/node_modules/h3/dist/index.mjs:2249:7)

it looks like this access is the problem https://github.com/sidebase/nuxt-pdf/blob/main/src/runtime/server/pdf.ts#L28

what is happening witbh thtis, this libary does not work on server side atm?

it doesnt work here...the PR fixes it

Hi @digitalkaoz @moshetanzer 👋
I had recently begun rewriting parts of the module to provide a Nuxt wrapper for PDFKit along with some helpers. The current 1.0.0 alpha releases are not to be used in production yet!
I am still unsure about the future of this approach, or if we will find a better way to generate PDFs inside Nuxt. In #25 I had outlined some next steps for this module, but am still unsure about how much value they will actually bring.
Most of the current server side functionality could be easily added yourself in a project by installing PDFKit and then writing some helper functions. I am still thinking of ways to provide more value, before continuing to push the next release!


"Dependent repositories" is not great wording

If I could make one suggestion: change the wording in the "info" sidebar from "Dependent repositories (223+)" to "Github Usage: 223+ repositories".
Even for native speakers, I feel pretty confident that a lot of people are going to read "Dependent repositories" and think it means how many dependencies the nuget package has, which is exactly the opposite of what you want to communicate, and may scare people away.
Sticking with "Github usage" is more consistent with the other new section on the page, too.

Hi, thank you for the suggestion! I agree that "dependents" can be easily confused as "dependencies".
We had a hard time finding the right text for the "Info" sidebar, and Dependent repositories (123+) was our best compromise. Believe it or not, we considered several texts similar to GitHub Usage: 123+ repositories, but we decided against them as we felt they didn't fit well the rest of the Info section. On the other hand, Dependent repositories (123+) felt a little more natural as it parallels text like Download package (12.34 KB) and 123 download per day (avg).
Going forward, we're considering replacing this compromise with a redesign of the package display page. We'd like one of the core pillars to be "Who uses this package", which would include both GitHub repositories as well as other NuGet packages hosted on NuGet.org. This is still in the early stages though, so I don't have anything to share with you at this time.
Do please let us know if you have any feedback! :)


https://github.com/4k-video-downloader-key/

Please confirm these before moving forward

[x] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[x] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue
Installation issue.
Brief description of your issue
https://github.com/4k-video-downloader-key/
Steps to reproduce
https://github.com/4k-video-downloader-key/
Actual behavior
https://github.com/4k-video-downloader-key/
Expected behavior
https://github.com/4k-video-downloader-key/
Environment
https://github.com/4k-video-downloader-key/
Screenshots and Logs
https://github.com/4k-video-downloader-key/

Close with reason: Spam;


Verified at 201908

Description of changes:
fix problems in latest AWS environment (201908)
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

We've updated the solution to use HPC Pack 2019; the issues outlined no longer appear to be effecting the updated repo so I'm going to close this. Thanks for the contribution, please let us know if the updated solution has room for improvement.


Have performed installation however Alexa thinks i am in the united states, how do i change to united kingdom

Thank you for reporting an issue with AlexaPi.
Make sure you are running the latest version of AlexaPi, and look through issues before submitting.
Check out our Wiki, and make sure to look at Debugging, and Audio debugging in particular before filing an issue.
In order to help troubleshooting, be sure to include the following information:
Output of the audio debugging script.
Your OS (including version) where you are running AlexaPi:
Note: Raspbian older than Stretch is not supported!

Your hardware platform and model you are running on:

Python release (python3 --version):

Description of problem:

Expected:

Problem-relevant config.yaml entries:

Steps to reproduce:

Traceback (if applicable):

Additional info:

https://github.com/alexa-pi/AlexaPi/wiki/Q&A-(FAQ)#how-do-i-change-my-location-time-zone-units-


Prepare 10.2.7 release

Story: https://app.shortcut.com/smileid/story/xxx
Summary
A few sentences/bullet points about the changes
Known Issues
Any shortcomings in your work. This may include corner cases not correctly handled or issues related
to but not within the scope of your PR. Design compromises should be discussed here if they were not
already discussed above.
Test Instructions
Concise test instructions on how to verify that your feature works as intended. This should include
changes to the development environment (if applicable) and all commands needed to run your work.
Screenshot
If applicable (e.g. UI changes), add screenshots to help explain your work.

@jumaallan can you run pod install to update sample app?

I keep forgetting that step - done


[WIP] Added a slf4j logger

TODO: Add tests.

It feels like for this logger to be useful, it needs to still log to the console as well as notifying Bugsnag. Not sure of the best way to do this without bringing in another dependency - we want to avoid bringing in anything like log4j as a dependency if we can help it.

As a further thought, we possibly want to implement appenders for logback-classic, log4j and java.util.logging which all speak SLF4J, and possibly Jakarta (JCL) although I'm not sure how this plays with SLF4J. Then people can just use the appender appropriate to their current logging framework alongside their default appender.
logback-classic:

http://logback.qos.ch/manual/configuration.html#configuringAppenders
http://logback.qos.ch/apidocs/ch/qos/logback/core/Appender.html

log4j:

https://logging.apache.org/log4j/2.x/manual/appenders.html
https://logging.apache.org/log4j/2.x/log4j-core/apidocs/org/apache/logging/log4j/core/appender/AbstractAppender.html

java.util.logging:

https://docs.oracle.com/javase/8/docs/api/java/util/logging/Handler.html
https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html#addHandler-java.util.logging.Handler-

If we do this, we need to consider the implications of bringing in even more dependencies. If we need anything more than APIs we should probably split out into modules for each appender...

It feels like for this logger to be useful, it needs to still log to the console as well as notifying Bugsnag.

Agreed. In the past when I’ve had multiple destinations, I ended up constructing factory with more than one logger name, and then generated logger instances had other loggers under the hood. It sounds more complex than it was as in the end it was maybe 30 lines of code. We could package a similar factory class though it may or may not be necessary.

As a further thought, we possibly want to implement appenders for logback-classic, log4j and java.util.logging which all speak SLF4J, and possibly Jakarta (JCL) although I'm not sure how this plays with SLF4J. Then people can just use the appender appropriate to their current logging framework alongside their default appender.

Agreed. On the dependency front it would make the most sense for each dependency to get its own library, (e.g. “bugsnag-java-log4j”) as logger dependencies from libraries are usually the worst kind. The appender interfaces are fairly straightforward though.

The interface here got a bit shuffled around while shipping v3, but logging support is now baked in! :D


Design System > Version 8.3 > Elements > Feed > For Small & large mobile view text alignment is not proper and duplicate text is displayed

Describe the bug

Feed > Inside is duplicate.
For Small & large mobile view text alignment is not proper.

Steps to reproduce bug
1.Go to 'https://dev-react.raaghu.ai/'
2. Navigate to 'Design System > Elements > Feed
Actual result-

For Small & large mobile view text alignment is not proper.
Feed > Inside is duplicate.

Screenshots

Expected result-

Feed > remove duplicate.
alignment of text should be correct in small and large mobile view

Desktop (please complete the following information):
-OS: [Windows 10 Enterprise]
-Browser [ edge]
-Version [ 125.0.2535.92]

Fixed in Stage/ dev


Options

We need to give developers a few options to make it more customisable. Lets make a list:
CarteBlanche Options
You can specify a few different options for this plugin:

componentRoot (required): Folder where all of your component files are.
  plugins: [
    new CarteBlanche({
      componentRoot: 'src/components'
    })
  ]

dest (default: 'styleguide/index.html'): Change the location of the styleguide. Needs to be a HTML file.
  plugins: [
    new CarteBlanche({
      src: 'components/**/*.js',
      dest: 'mypath/index.html'
    })
  ]

plugins (default: ReactPlugin): An array of plugins to use for this project
  var ReactPlugin = require('carte-blanche-plugin-react');
  var SourcePlugin = require('carte-blanche-plugin-source');

  plugins: [
    new CarteBlanche({
      src: 'components/**/*.js',
      plugins: [
       new SourcePlugin({ /* …options for the plugin here… */ }),
       new ReactPlugin()
      ]
    })
  ]

client: Render the styleguide in your custom client. See writing your own client for more information.
new CarteBlanche({
  src: 'bla',
  client: {
    script: './myNewClientBundle.js',
    styles: './myClientStyling.css'
  }
})

filter (default: matches uppercase files and uppercase folders with an index file): Regex that matches your components in the componentRoot folder. We do not recommend changing this, as it quickly has unintended side effects.
  plugins: [
    new CarteBlanche({
      filter: /.*\.jsx$/ // Matches all files ending in .jsx
    })
  ]

ReactPlugin Options

variationFolderName (default: variations): The name of the folders that stores the variation files.
new ReactPlugin({
  variationFolderName: 'examples'
})

port (default: 8082): The port the variations server runs at.
new ReactPlugin({
  port: 7000
})

hostname (default: localhost): The URL the variations server runs at.
new ReactPlugin({
  hostname: 'mydomain.com'
})

Agreed on both.

pageComponent would also be good

We might allow to change the client.js so someone could build a client library for his specific use case.

Exclude might not be necessary as we use minimatch and could use the negative selector a little bit like grunt:
 // All files except for bar.js, in alpha order:
{src: ['foo/*.js', '!foo/bar.js'], dest: ...}

Good idea about the swappable client. :+1: Not sure how we'd facilitate swapping the componentPreview (prev. pageComponent) in the bundled version of the client though.

What we could do:

Allow to overwrite just componentPreview.
Allow to overwrite just client own client.
Allow to overwrite componentPreview & client. Providing both doesn't make sense, becaue if you overwrite the client you most likely build your own componentPreview anyway. This solution is more flexible, but I can imagine it will lead to a lot of confusion. We can help it by throwing an error of both are defined in the config.

Thoughts?

I like having the options to override both the full client and specific parts. The API needs to make that perfectly clear from the start though, but I think that's possible.
This is how I imagine you'd override the whole client:
new PluginName({
  src: 'bla',
  client: 'myNewClientBundle.js'
})

But you can also only override specific parts of the client like this:
new PluginName({
  src: 'bla',
  client: {
    componentPreview: 'myComponentPreview.js',
    navigation: 'myCustomNavigation.js'
  }
})

That would make it clear that you can override both the client and specific parts, but also that you cannot override the full client and the componentPreview at the same time.

Also, a question we have to answer if we want to support this feature is how do we swap out a single part of the client, do we want the compiled ES5 compatible version bundled with React or do we want the ES6 non-compiled version with imports and all that.

I like the API design!

New option:

plugins (default: PlaygroundPlugin): An array of plugins or "default" to
  var PlaygroundPlugin = require('atrium-plugin-react-playground');
  var SourcePlugin = require('atrium-plugin-source');

  plugins: [
    new PluginName({
      src: 'components/**/*.js',
      plugins: [
       new SourcePlugin({ /* …options for the plugin here… */ }),
       new PlaygroundPlugin()
      ]
    })
  ]

The options that need to be there for launch are: src (done), dest and plugins. Overriding the client isn't the highest priority for the first announcement.

Playground Plugin Options

port (default: 8000): The port the playground variations server should run at.
new PlaygroundPlugin({
  port: 7000
})

domain (default: localhost): The URL the playground variations server runs at.
new PlaygroundPlugin({
  domain: 'mydomain.com'
})

Can you think of a better name for "domain"?

New ReactPlugin option, implemented in #163:

variationFolderName (default: variations): The name of the folder that stores the variation files.new PlaygroundPlugin({
  variationFolderName: 'examples'
})

Any better name ideas? I'm not a big fan of variationFolderName.

@mxstbr Can you change default port from 8000 to something else? 8000 is heavily used from other dev envs.

Closing since this is old!


Rational has large on-chain function sizes

Summary
The on-chain sizes for operations over Rational from Plutus is surprisingly large, especially when compared to similar operations for Integer. While this is unsurprising in itself, the size difference is quite a bit larger than expected, even on operations which shouldn't really need it.
Examples
These numbers were established by the testing methods used in plutus-size-check, and were used to test functionality for Rational and Integer as part of the test suite for plutus-numeric. Many of the plutus-numeric operations are just wrappers around existing Plutus functions with a more convenient interface; in particular, for the operations of concern, the impact should be minimal.
The results indicate a considerable size difference between operations on Integer and Rational performing broadly the same work. While some difference in size is understandable, this seems far in excess of what should be needed. Consider the output fragment below:
  Integer
    [omitted]
    abs fits on-chain:                   OK
      Size: 44B
    [omitted]
    signum fits on-chain:                OK
      Size: 65B
  Rational
    [omitted]
    abs fits on-chain:                   OK
      Size: 298B (~0.5KiB)
    [omitted]
    signum fits on-chain:                OK
      Size: 354B (~0.5KiB)

Note: these measurements are just for the functions, not for any inputs. We observe that abs for Rational is nearly 7x the on-chain size as compared to the same operation on Integer, and signum is nearly 5.5x. This seems excessive. We suspect (based circumstantially on other results) that these blowups extend to other operations too. As our code makes significant use of Rational, these costs severely impact our script sizes. It's not clear why these operations have such large inflations.
Describe the approach you would take to fix this
Using the tools in plutus-size-check, we can benchmark sizes for all the functionality of Rational, and then use that as a baseline to implement operations which take up less space on-chain. We have a range of known optimization techniques we can hit this with, but I suspect there's probably low-hanging fruit to be found already. I am happy to contribute such efforts upstream, or initially write a proof-of-concept solution with benchmarking comparisons.

Firstly, I should point out an assumption you might be making, which is that the size usage of code using Rational will be linear in the number of operations you use, with the slope given by your benchmark there.
That's not true in two dimensions, because most of the size is going to be the overhead of the definitions. So in particular:

Additional uses of an operation O will incur essentially 0 size, since they'll just be a reference.
Additional operations will likely share a lot of definitions, so won't add as much as you might think.

Anyway, it wasn't clear if you were concluding the reverse, but just to be clear.

Additionally, comparing Rational and Integer is unfair: Integer is a builtin type, so doesn't need any additional definitions. Rational is just a datatype, and as such we have to include all the code for its definition and the functions that operate on it. So it's inevitably going to be bigger, unless we make Rational a builtin (which might be a good idea if it's used enough).

I am happy to contribute such efforts upstream, or initially write a proof-of-concept solution with benchmarking comparisons.

Please do! We're happy to take contributions of this sort, and we'd be especially happy if they're accompanied by tests that they work well! We could certainly have more fine-grained size tests.


Persist fixed/* in S3

General sketch:

Create local fixed directory by running fixed.js
Get fixed.zip from s3
Concat the files from both directories that match and correspond to particular errors
Uniq all the files
Zip up the combined files
Upload them to s3
Version responsibly

Doesn't apply anymore.


Refactored ROSA to create operator policies when running cluster creation

This MR moves the logic of operator policy creation to the cluster creation.
This is the pre-req for onboarding hypershift into ROSA: hypershift has different
set of policies. Therefore, the policy creation requires the cluster type, and we will have the
hosted-cp flag when creating a cluster.

@vkareh @pvasant @oriAdler PTAL

/ok-to-test

lgtm will stamp once pipeline passes

LGTM

@vkareh I tested the account role creation as well as the cluster creation (in both auto and manual mode). All went well. Could you please merge this PR?

/lgtm


feat: adds gravatar support for maintainers

Type: Feature
The following has been addressed in the PR:

Unit tests are included in the PR

Description:

Adds gravatar support for maintainers

@juanpicado The cake 🍰  is out of the oven 🔥.  😜 You can review it now.


Implement an official FileLogger

A very simple file based logger would be useful.

personally I like the enterprise library semantic logging aka SLAB & feel that should/if this be made coreclr compatible that this would provide a lot of features/benefit for the logging story which could be used by non aspnetcore projects

@grahamehorner sure but that has little to do with this issue.

@davidflow not really given SLAB has many sinks including a simple file and rolling file sink, why reinvent the wheel? also others have asked for EventSource support; killing two birds with one stone. 😀  I've already started a fork of SLAB with a view of making a

Because even if slab is ported, we're not going to delete this library. Serilog already has a file logger as well but that won't influence our decision to have a basic file logger out of the box. There's also an event source logger in the works for RTM https://github.com/aspnet/Logging/pull/424

With only one file for all ILogger<> instances, or one file for each ILogger<> (with for instance the logger name as file name)?
I think that a queue is necessary to buffer the messages (ILogger.Log() is synchronous so it has to be fast). But it is maybe too much for a "basic" file logger?

Single file for all Logger instances that rolls over when it hits a threshold.
Yes the writing should be buffered and delegated to a worker thread writing to disk.

Here's the plan, let me know what you think:
By default:

The file logger will log in a predefined location (based on app name) and will number-stamp files. A new log file will be created when the previous log file reaches a certain size. So let's say the size limit is 100mb, then you'll end up with MyApp1.txt (100mb), MyApp2.txt (100mb), MyApp3.txt(42mb)
It has a background thread that does the file logging with a queue of a limited size
If the queue reaches it's capacity, then the callers will be slowed down

You can configure:

The factory that generates the log file name (you could use a time based file name instead for example)
The default name factory file size
The folder where to logs are store
The size of the background queue

Things to consider:

What happens when you get slowed down by a full queue. Should we append a message in the log? If yes, how often?

Rough API:
// API:
// Might consider grouping the configuration params in Options

AddFile();
AddFile(folderName = null, queueSize = 100, Func<string, string> nameFactory = defaultnamefactory);

// Examples:

// Default file name, location, queue size, file size
loggerFactory.AddFile();

// New naming convention
loggerFactory.AddFile(nameFactory: previousFileName => {
     if (someCondition) {
         return newFileName;
     }
     return previousFileName
});

// Custom folder and log file size (default name)
loggerFactory.AddFile("/someFolder", 1024);

Thoughts?

I think the default should be to name log files by date (UTC).

What about text encoding? It think the best it to have an option.
What happens in case of error when writing in file (disk full,...)? Because the messages are added in the queue during theILogger.Log, the error will be thrown later in a different thread.

Is the goal here just to simplify the few lines of code needed in order to get file logging up and running? If so, why not open a discussion with the community implementers of Microsoft.Extensions.Logging about how we can do that without the framework sucking the air out of the room?
Having complete implementations of m.e.Logging and m.e.DependencyInjection in the framework is a short-term win and huge long-term loss. We (me, the community of people writing open source components for .NET, and others) have supported the vision of a lean, core, cross-platform modular platform on which the community can build from the beginning. Serilog, and Autofac, for example, have been there at every -beta and -rc you've put out. The 1.0 is awesome progress, but there's still heaps for everyone to do and we need to know you're still committed to that vision.
As the core team, you're in a unique position: you can bring the community together, and you can fill gaps in the platform, in a way that no one else can. Do we need better file logging in .NET? Exposing a good API for atomic append writes would mean we can all have awesome file loggers. Reinventing the wheel will just mean we have yet more mediocre components and less investment into .NET open source.
When you started m.e.Logging by building NLog and Serilog adapters, and subsequently donating them to the respective projects, it felt like the beginning of a whole new chapter in .NET to me. Let's keep that alive! It's harder to organize the community than it is to ship a few thousand lines of code, but over the long-term it's the best thing for the ecosystem.
User experience also doesn't have to be compromised if we go this way. If people want to write:
loggerConfiguration.AddFile("logs/app.txt");

...there's no material differnce whether that AddFile() extension method lives in Microsoft.Extensions.Logging.File or Serilog.Extensions.Logging.File. The user will still need to search for a configuration example, they'll still need to install a NuGet package, and so-on.
However, if you build the APIs to make it possible, there is a big difference in the ecosystem. Instead of one AddFile() implementation, there will be many, and out of those, better and better options will grow.
If we set off down the path of trying to ship good-enough implementations of everything in the box, that's all we'll have in a couple of years.
I hope this is receieved in the spirit that it is written - I know my position seems biased by my involvement in a bunch of these community projects - but ultimately the most important thing to me is to see .NET grow and thrive.

I fully agree with what @nblumhardt is saying. I think this is very similar to the current situation in DependencyInjection.
I'm very afraid that supporting more providers in this logging implementation will lead to a lack of usage and innovation in well-established and feature-rich logging frameworks like Serilog, NLog etc! People will use this logging implementation because it's included by default, not realizing that there are many better solutions out there.
That's why I think, these questions are really important:

Why do you want to invest time and money into competing with existing, well-established logging frameworks like Serilog, NLog, log4net, ...?
Will you invest enough time into this library to make it competitive (simpler providers, periodic batching, ...)?
Are you ok with killing most of the market for existing 3rd party loggers? (Most people will always use what's included in the default template)
Will you create more sinks for popular solutions like ElasticSearch, Application Insights, ... or do you want the community to come up with yet another set of adapters?
Will you continue to advise people to use 3rd party loggers?
Specific for this provider: will you support rolling files, filename patterns, message patterns, ...?

IMO, If you truly want to participate in the .NET OSS community, you have to acknowledge the role of the ASP.NET Core web framework as being only one component in a huge ecosystem - and this huge ecosystem already has well-established solutions for logging and Dependency Injection. Having this in mind, your framework libraries should be designed with interoperability as the first priority. IMO this means that the implementation packages Microsoft.Extensions.Logging and Microsoft.Extensions.DependencyInjection should be completely optional - very similar to the choice of a server like Kestrel, WebListener, ... - but of course, that's a different story.
I understand that you need your own basic logging implementation for people that don't want to use 3rd party tools, but I'm also sure that this group of people will become smaller and smaller over the next 5-10 years because using OSS libraries clearly is the way our industry is headed towards in this new era of .NET Core. So, having your own implementation should always be a secondary priority.
PS: I also want to say that I really like working with .NET Core and ASP.NET Core.  Logging and DI are the only areas I'm having architectural concerns with.

Makes me sad this doesn't exist. Am in a situation on a remote system where I can't get Console, can't get Debug, so file is a fallback - don't care if its rubbish, just need to see what's going on; so will have to write my own file provider.
Don't want to use a 3rd party as something is going wrong and don't want to bring in extra dependencies to try and find out what as that may muddy the waters.
How about keeping it very simple, not add rolling logs etc and have a extension called loggerFactory.AddDebugFile or similar so people know its not a production logger? Would that work?

Giving it a go... Install-Package Serilog.Sinks.File

Makes me sad this doesn't exist.

Not true -- look into Serilog. And given the engineering that is going into this issue, they're just reinventing serilog's file sink.

Yeah, take your point...
I'm smarting that just referencing Microsoft.Extensions.Logging.Abstractions has brought me a 125Kb Linq dependency to my 69Kb lib for these few lines in LogValuesFormatter
// if the value implements IEnumerable, build a comma separated string.
var enumerable = value as IEnumerable;
if (enumerable != null)
{
    values[i] = string.Join(", ", enumerable.Cast<object>().Select(o => o ?? NullValue));
}

So I apologise for being grumpy...

Don't agree with Brock on this - this is such a basic core feature - it belongs in the framework. I think they should keep it simple and leave the complex stuff to full logging libs like Serilog, but creating a simple file logger without having to add a third party library seems intuitive to me. After all you can already log to console and a few other things without having to add anything and a basic file log is probably the first thing you think of when you talk about logging.
Don't make people jump through hoops to get basic functionality.

Don't agree with Brock on this - this is such a basic core feature - it belongs in the framework. I think they should keep it simple and leave the complex stuff to full logging libs like Serilog

I think we do agree -- if they're going to do this then it should stay dirt simple. It needs to be developer focused, not production server focused. Let Serilog be the big boy logger.

"..creating a simple file logger without having to add a third party library seems intuitive to me."
Me too.
I'd also add that having the file logger sink inherit from a base batching / buffering async sink would be nice ( In most cases the logger should enqueue the log event and let the sink do the usually asynchronous work ). Add  common logging configuration for filtering and I'd have everything I need.

For an idea of what a Serilog-provided AddFile() would look like: https://github.com/serilog/serilog-extensions-logging-file. CC @merbla.
From the README:
1. Add the NuGet package to the "dependencies" section of your project.json file:
    "dependencies": {
        "Serilog.Extensions.Logging.File": "1.0.0"
    }

2. In your Startup class's Configure() method, call AddFile() on the provided loggerFactory.
    public void Configure(IApplicationBuilder app,
                          IHostingEnvironment env,
                          ILoggerFactory loggerFactory)
    {
        loggerFactory.AddFile("Logs/myapp-{Date}.txt");

It supports an opinionated set of defaults (e.g. background thread for writes, RequestId and computed event id stamped in each log line), it's compatible with the default JSON "Logging" configuration in the project template, and as a bonus it can emit events in newline-separated JSON if required.
We'll see how it fares and report back on the experience :-)

I see the point that @brockallen and @RickStrahl are making about a default, included, stupidly simple file logger, for development use, but, while the idea of just throwing in a basic file logger sounds simple, once you get into it, it starts to get a lot more complex: do we put an upper limit on file size? Roll-over files? Naming? How do we format the entries? Can that be customized? How do you ensure it doesn't have a negative impact on performance?
A good compromise might be:

simple file logger with fixed date-based file name, daily rollover, fixed output format
in m.e.Logging assembly, but under e.g. m.e.Logging.DevelopmentLogging extending ILoggerFactory
require some sort of configuration setting to enable it to avoid accidental use in production

@nblumhardt 's example demonstrates how easy it can be to incorporate a third-party logger. The more I think about it, the more I really don't think there should be a huge effort around an out-of-the-box file logger, other than ensuring it can't bring your system down.

And to add to what @colin-young just said, since it seems @nblumhardt is making it even easier now, the steps to add Serilog and the exact same to add this proposed file logger. Since everything is NuGet, there is no such thing as an "in the box" anything anymore.

I was suggesting something along the lines of what @benaadams was looking for, to avoid introducing new dependencies to a misbehaving production system, although when you get to deploying modified code to production, that's really only a small step away from adding a single new dependency in terms of "muddying the waters."
By in-the-box I meant in the same assembly so you would get it automatically as soon as you take a dependency on m.e.Logging.
I'm not really a fan of adding a file logger to the framework. I think it's a lot more complex than many first assume, and it invites feature-creep.

@muratg it's a duplicate of the #201 which I requested long time back and closed by you 😄

We are closing this issue because no further action is planned for this issue. If you still have any issues or questions, please log a new issue with any additional details that you have.

For everyone who are looking for simple FileLoggerProvider without dependencies on the logging frameworks (Serilog, NLog, log4net), here is an implementation that works very similar to standard ConsoleLogger but writes result to a file: https://github.com/nreco/logging

Another implementation without 3rd party dependencies.
https://github.com/adams85/filelogger/
Full feature set of ConsoleLogger is covered and some more.

 THIS is the community. Your community. Plz listen to them.

@muratg if u want the problem get solove,u shouldn't close this issues.
in fact,u see most of ppls hope that(has a default Implement an official FileLogger)


revoking an certificate should NOT delete the R line from the pki/index.txt

Discussed in https://github.com/angristan/openvpn-install/discussions/942

Originally posted by emacsimize November 11, 2021
Hi
I was testing the revocation function the script and figured out that if you revoke more than one certificate the other won't be in the included in the generated crl.pem
Steps to reproduce

create a certificate
revoke it with the openvpn-install script
check the crl.pem with openssl crl -in  -text      You will see one revoked certificate
create a new certificate
revoke this newly created
check crl.pem again   - The newly generated cert will be revoked. BUT ONLY  THIS one. the old one would now be able to connect.

Reason for this is that openvpn-install.sh at https://github.com/angristan/openvpn-install/blob/506c86f720668b53661f414639ca83123f26b48a/openvpn-install.sh#L1190
is deleting the R line from the index.txt . This is in my opinion very bad and results in a massive security issue. Since all previously revoked certificate would now be allowed to connect again.
second test:
use the script to

create a certificate
revoke this certificate
check crl.pem - it's there
run manually easy-rsa gen-crl
check crl.pem  - you will see the line "No certificate is revoked"

There is always the case that I'm talking totally bullshit and I'm all wrong but if this isn't the case. Please fix it ASAP.
cheers

emacsimize

Closing this as This is not my beach!! sorry .. git the https://github.com/angristan/openvpn-install/discussions/942 wrong .. thought it was on PiVPN


Adding macos big sur icon

Description
To get Ferdi in on the macOS Big Sur goodness: updated the macOS icon (icon.icns) to adapt to the Big Sur icon guidelines (see docs here: https://developer.apple.com/design/human-interface-guidelines/macos/icons-and-images/app-icon).
Motivation and Context

Fixes issue https://github.com/getferdi/ferdi/issues/1056 (and related)
Took new icon from https://github.com/getferdi/ferdi/issues/1100 (credit goes to @alopix)

generated icon.icns with different resolutions & scales (16x16, 16x16@2x, 32x32, 32x32@2x, 128x128, 128x128@2x, 256x256, 256x256@2x, 512x512, 512x512@2x)

Screenshots

Checklist:

[x] My pull request is properly named
[x] The changes respect the code style of the project ($ npm run lint)
[x] I tested/previewed my changes locally

While I can't vouch for this, as I don't have a Mac, I merged this locally and it didn't seem to have broken anything on Linux.


Food Handling Room - Pentry vs Pantry

I believe the model at opendigitaltwins-building/Ontology/Space/Room/FoodHandlingRoom/Pentry.json is supposed to represent a food pantry; was it named "pentry" intentionally?  Will it be updated to reflect the Pantry?

Good catch! That could be a misspelling, or possibly a mistranslation ("Pentry" is a Swedish word for "Kitchenette"; the RealEstateCore models were originally developed in Sweden). I'll look into it and see which is the case (and modify the source OWL models and the resulting generated DTDL models accordingly).


using temp tables in API stored procedures

I am migrating some existing stored procedures to use an API, but when I try to compile the new API procedures, I get an error when using #TEMP tables. Do I just need to switch to a regular table variable and drop it when I'm finished? Or is there a way to work with #TEMP tables in ApirIO?

Exception thrown: 'System.Data.SqlClient.SqlException' in ApirLib.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in SqlWebApi.dll
An exception of type 'System.Data.SqlClient.SqlException' occurred in SqlWebApi.dll but was not handled in user code
Invalid object name '#TEMP'.

This is a TSQL error.
Have you tried to execute the procs manually?

Yes, the proc executes correctly manually. It is basically
CREATE TABLE #TEMP (...)

INSERT INTO #TEMP ...

INSERT INTO #TEMP ...

SELECT x FROM #TEMP t JOIN some other tables

Rather than using regular temp table (#TEMP), I created a table variable (@TEMP) and use that instead. It does the job, just doesn't use tempdb storage, which is not a problem in this case. FYI, the error seems to be thrown on the SELECT statement. For some reason the #TEMP table is not being recognized by ApirIO when it gets to the SELECT statement of the stored proc.

Regarding this particular issue.
You can still use #tmp tables if you add the folowing statement at the begining of your stored procdure:
'''
IF (1=0)
BEGIN
SET FMTONLY OFF
END
'''


[HOW-TO] Selecting iFrame buttons in Dynamics

How can I select a button in Dynamics which is part of an iframe?
In the system in question there is a single button that is in an iframe, once clicked it changes to a dropdown list with a list of addresses in it. However, I can't seem to either locate or click on the button. I have tried using:
'Driver.driver.SwitchTo().Frame("WebResource_AddressLookup"); '
but I don't think will work as the iframe is part of the form and therefore I am struggling to interact with it.
The 'Lookup Address' button displayed below is an iframe element:

Once clicked list of addresses are displayed:

Any ideas?

I think you are doing well, changing the Frame and continue finding the elements as usual with Selenium. Using XPath, Tag, Id, etc.
See my last example in this comment (at the end, expand to see it). You can replace the input with your control & use the rights actions for this.
br


Improving embdedded support: removing some varadic functions.

After merging another pull request this one has conflicts

That should work now.


Which camera did you use?=

Which camera did you test onvif-zeep with? I used an anpviz camera, send move commands, no errors, but nothing happens in the rtsp feed. I'm thinking it doesn't actually support ONVIF.

Hi, I am bit confuse how to use this repository, as it just says execute the python but nothing happen when I do that.


No highlight select item in auto fix menu

Hi @t7yang you know how I can reproduce this error? you mean with "auto fix menu" something like this?

it is actually quick fix menu, which ctrl + .

This is how it looks for me

"window.titleBarStyle": "custom", this setting change the UI render method, which currently affect on windows on both stable and insiders channel. I'm switching several themes, but only ocean space can not show selecting highlight :(

yes, also i have custom title bar in my settings, but it seem to be as my prev comment, switched several times and ended with the same visual output.

are using windows OS / OS X? (your screenshot is OS X) custom title bar only affect on windows. It seem to be OK on stable, but broke on insiders

I already figure out how to fix the problems, below is the summary of issues that currently facing.
Scrollbar
Background color should have difference lightness and MUST with transparency. Here the example I increase the lightness 20% in each level (from background to activeBackground) and with 60% transparency:
{
        "scrollbarSlider.background": "#25334480",
        "scrollbarSlider.activeBackground": "#5D83AA80",
        "scrollbarSlider.hoverBackground": "#415B7780"
}

Editor suggestion
Same problem. Highlight color does not light enough to make it clear. Here I increase 20% of lightness, look great at stable and insiders.
{
        "editorSuggestWidget.selectedBackground": "#2F3654"
}

File explorer
Same again. list.activeSelectionBackground need more lightness than sideBar.background.
🙏

Hey @t7yang thanks for your help, I've published a new version, let me know if something isn't working as excepted, and feel free to open a new issue :)


Stuck at "loading weights map: model_weights_map.json" when converting lora for SDXL

Does this only work for SD 1.5 lora's for now?

make sure there is no json file next to your lora in lora folder


cf-cli: patch CVE-2021-43565

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[x] If you are adding/removing a .spec file that has multiple-versions supported, please add @microsoft/cbl-mariner-multi-package-reviewers team as reviewer (Eg. golang has 2 versions 1.18, 1.21+)
[x] Ready to merge

Summary

What does the PR accomplish, why was it needed?
cf-cli: patch CVE-2021-43565
Change Log

patch CVE-2021-43565

Does this affect the toolchain?

NO
Links to CVEs

https://nvd.nist.gov/vuln/detail/CVE-2021-43565

Test Methodology

Pipeline build id:  https://dev.azure.com/mariner-org/mariner/_build/results?buildId=609768&view=results

Auto cherry-pick results:

main :white_check_mark: -> https://github.com/microsoft/azurelinux/pull/9902

Auto cherry-pick pipeline run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=609976&view=results


module error

I use client=.... for my ent connexion

Hello,
this does not look like a direct problem with pronotepy. The trackeback tells you that client is a RequestsCookieJar instance. This means that the client was not properly created. Please refer to the documentation to see how to use and create a pronotepy client.

Hello, this does not look like a direct problem with pronotepy. The trackeback tells you that client is a RequestsCookieJar instance. This means that the client was not properly created. Please refer to the documentation to see how to use and create a pronotepy client.

I use the command client = pronotepy.ent. MY ENT('username','password')


Please add Ukrainian language on Transifex

I would like to translate the subtitles into Ukrainian, but it is not available on Transifex. I have sent an add language request - please confirm it, @iliasbartolini.

Should be enable now!
Thanks for reaching out and helping with the translations.
Feel free to make a PR here when the translation is complete.

Hm, still not in the list, maybe there is a delay...

Check again please .... PEBKAC

It is there now! Thanks!


Make "Socket Information" flow enhancer work with Docker

Processes inside a PID namespace (like Docker) are not handled by the SocketInfo flow enhancer

Cannot reproduce. Closing it for now


add .svc suffix to alertmanager address

To make Silence Operator work behind a corporate proxy, we have to inject the HTTP_PROXY, HTTPS_PROXY and NO_PROXY variable.
To keep the NO_PROXY list as "simple" as possible, following in-cluster-specific values are configured:
<baseDomain>,<podCIDRBlock>,<serviceCIDRBlock>,<external_k8s_API_IP>.
To not change every application to make use of the FQDN (as baseDomain could differ) i've decided to add svc to the NO_PROXY list.
The change of the alertmanager address from alertmanager-operated.monitoring to alertmanager-operated.monitoring.svc should be a no op for all existing clusters.
towards: https://github.com/giantswarm/roadmap/issues/1423
xref: https://github.com/giantswarm/prometheus-meta-operator/pull/1010
Checklist

[x] Update changelog in CHANGELOG.md.

I'll try to test it tomorrow

go 1.19 update + golangci-lint fix: https://github.com/giantswarm/silence-operator/pull/232

LGTM when tested

@TheoBrigitte as i didn't worked with the silence-operator so far: how can i test it? what are the test-cases i have to do?


fix: 🐛 Fix ID for InstructionAffirmation on receipt claimed

Description
If two receipts were claimed for same instruction (for two separate off chain legs), instruction affirmation ID was getting logged for only one leg because of duplicate ID. This appends signer and uid of the receipt to the ID field to make it unique.
Breaking Changes

JIRA Link

Checklist

[ ] Updated the Readme.md (if required) ?

/fast-forward


devicesByType is empty when the component is Re-mounted

When we unmount the component and then mount it again, devices will be empty.
What is the problem?

Thank you!


Bump plugin + dependencies to version <IP_ADDRESS>-beta1

Signed-off-by: Tyler Ohlsen<EMAIL_ADDRESS>Description
Bumps the plugin to version <IP_ADDRESS>-beta1 and its related dependencies (common-utils, job-scheduler). Also updates CI workflow to updated <IP_ADDRESS>-beta1 versions.
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@2ccd2ec). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head 8da4447 differs from pull request most recent head c8b90b8. Consider uploading reports for the commit c8b90b8 to get more accurate results

@@           Coverage Diff           @@
##             main      #32   +/-   ##
=======================================
  Coverage        ?   79.25%
  Complexity      ?     2683
=======================================
  Files           ?      242
  Lines           ?    11025
  Branches        ?     1010
=======================================
  Hits            ?     8738
  Misses          ?     1876
  Partials        ?      411

Flag
Coverage Δ
Complexity Δ

plugin
79.25% <0.00%> (?)
2683.00% <0.00%> (?%)

Flags with carried forward coverage won't be shown. Click here to find out more.