Support of forward proxy?

What should we add or change to make your life better?
Support code to support forward proxy in addition to reverse proxy.
Need support connect method, and absolute url in http method to connect to dynamique destination in place of configurated "cluster" destination.
Why is this important to you?
Like reverse proxy forward proxy is very usefull building block and very near in conception.

That is not a goal we're pursuing. A forward proxy has very different requirements and needs different features (like CONNECT). There would be little or no overlap.
If you want to pursue a .NET based forward proxy you'd need to start over at https://github.com/dotnet/aspnetcore/issues/21953 to get CONNECT support.

I am going to close this as it is explicitly a non-goal of this project to create a forward proxy.

why non goal !?

apache httpd server (web server) support forward and reverse proxy...
squid cache (forward proxy cache) support forward and reverse proxy...

the only 2 thing to do is supporting connect method, and supporting dynamique target server (connection tcp to the target of connect or forward http request to the http method absolute url ...

I think this would be good to have since MS has killed off the TFG and UGS products that could have been used for that. I think it should it own project and git repo.

If we were to implement forward proxying, why would you use this project's implementation rather than another? It's not clear what value we would add in that space.
There are variety of reasons we won't be implementing a forward proxy:

Missing platform features: CONNECT isn't something we can implement directly, we need it added to the underlying platform (Kestrel). The soonest that can happen (if at all) is .NET 6, a year from now.
Minimal overlap: About the only existing component that would be shared between a forward and reverse proxy is the IHttpProxy piece that actually does the request forwarding, and that would only work for HTTP, not HTTPS/CONNECT.
Minimal value add: This project's goal is to add value by letting you customize how the proxy works. A forward proxy follows fairly strict standards and there's less reason to customize it. CONNECT / HTTPS tunneling also means there's less opportunity to do anything in a forward proxy as you can't inspect/manipulate the traffic, and HTTPS traffic now dominates the internet.
Demand: Most of our customers need custom reverse proxies, very few need forward proxies.
Focus: We need to prioritize and focus our efforts and resources.

i use many reverse proxy with forward proxy with many customisation (rewrite header and boy) in my compagny.
is very usefull to reverse proxyfy external site in internal network...
and if the need is to intercept traffic in connect tunnel you can reconnect in ssl with backend... but is more complex to implement... because you need to listen in https with dynamique certificate generated based on sni host...
and forward proxy is usefull to overcome network firewall between differente network zone...
and for kestrel CONNECT method support, seem to be supported and implemented since dotnet core 1.1...

HttpMethods.IsConnect  used in reverse proxy code (src/ReverseProxy/Service/Proxy/HttpUtilities.cs) are supported in dotnet core >=1.1
and HttpMethods.Connect seem to be usable to like other method in proxy httputilities....

and for kestrel CONNECT method support, seem to be supported and implemented since dotnet core 1.1...

HttpMethods.IsConnect  used in src/ReverseProxy/Service/Proxy/HttpUtilities.cs are supported in dotnet core >=1.1
and HttpMethods.Connect seem to be usable to like other method in proxy httputilities....

Those are constants and helpers, the real feature implementation is tracked at dotnet/aspnetcore#21953.

Those are constants and helpers, the real feature implementation is tracked at dotnet/aspnetcore#21953.

to transform the upstream to opaque stream...  ok


Pip package imports are invalid

It appears that the import paths used in your pip package do not work as expected.
Steps to reproduce

Install cyanobyte:

pip3 install -U cyanobyte

Run code generation

cyanobyte-codegen -t ./templates/doc.md -o ./build ./peripherals/MCP4725.yaml
Traceback (most recent call last):
  File "/home/nathaniel/.local/bin/cyanobyte-codegen", line 5, in <module>
    from cyanobyte.codegen import gen
  File "/home/nathaniel/projects/cyanobyte/cyanobyte/codegen.py", line 33, in <module>
    from convert_json_to_yaml import convert_json_to_yaml
ModuleNotFoundError: No module named 'convert_json_to_yaml'

Running directly from the cyanobyte subdirectory in this repository does work, however this seems to defeat the purpose of the pip package.
No output to stdout when run from {project_root}/cyanobyte and the generated outputs seem to work as expected
cyanobyte-codegen -t ../templates/doc.md -o ../build ../peripherals/MCP4725.yaml

Thanks for reporting this. It's been some time since the pip package was updated with more recent changes, so it's probably worthwhile to make a new release and verify it works as expected.

Resolved in version 0.0.2, which should now bundle more content and access it.


Create floyydwarshal.cpp

Good to see code with proper explanation @samyakjain26 .
PR accepted @samyakjain26
Successfully merged to HacktoberFest_22 repo.
Need to Star this repo incase not done.
🚀🚀👍


Get the calendar data through a REST request.

Hi,
I'm looking for a way of getting the calendar data through a REST request?
I have found this article but only shows how to get settings data and not documents data.
https://docs.microsoft.com/en-us/vsts/extend/develop/data-storage#rest-apis
Thanks,
Rui

Duplicate of #133

We're closing old issues so we can get back to actively maintaining the extension. Feel free to reopen if this is still an issue for you.


Change Initiative > Time Series Assessment Values

Could you provide some more details about what this is trying to achieve please ?

The intention behind this issue was to show users the historic values of assessments.  This has been implemented as a job running on the client site which updates a named note associated with the parent entity.  Multiple assessments can be piped to the same name note.

The intention behind this issue was to show users the historic values of assessments.  This has been implemented as a job running on the client site which updates a named note associated with the parent entity.  Multiple assessments can be piped to the same name note.


Add list of contributors to this repository

We could create a list of "Contributors" on the README page of this repository where we put the name/profile photo of everyone that makes a contribution to DataTau.

hope you like it!

Looks amazing! 👍


Visualized OSRM Debugging Tool

As we discussed in https://github.com/Telenav/osrm-backend/issues/64, there's already some tools can help us for OSRM debugging, e.g.

osrm-frontend: show routes, guidances
Debug map of osrm-frondend: show speeds for all ways

But for OSRM debugging, they're not enough. At least we want to see information of OSRM compiled mapdata.
Let's record and discuss our expectation/requirements here:
Requirements/Expectation:
First of all, we could have a frontend tool for visualization and a backend microservice to provide data. Every operation on frontend tool will get real data from the backend service.
First question: let's have name for both of them.

frontend tool

web based tool (osrm-frontend is a extremely good example)
can select node/way by click on the map, can show details of selected node/way/relation
can show each edge's weight/duration of a route

backend microservice

restful API for frontend call
can load compiled OSRM mapdata

For the backend mircoservice, the most important task is to understand the compiled mapdata structure. The OSRM compiled mapdata looks store as plain structure in file, it may not that difficult to understand them. We could evaluate whether it's possible.

Inside Telenav, we have tools which could:

For given wayid, we could show all tags related with this way
Will also load all relations on the way's two end points, such as restrictions, naturalguidances
Only endpoint of wayid has nodeid, which is used for building graph connectivity

In OSRM, we want to have similar ability, but one important point is original way from source data is not existed in query graph.   Below are some functionality I feel is helpful:

Give a OSRM node, we could get its original pbf nodeid/lat,lon

Give a pbf nodeid we could try to find OSRM node id

Give a OSRM edge, we could get related wayids/lat,lon/tags, etc

Give a wayid, we could get related OSRM edge id(s)
speed, cost, and how the result is calculated, such as static information like lua profile, dynamic information like live traffic, historical speed


Feature/migrate to pytest fixture

changed three files in the tests/ directory!

Hello @waynelai1228! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file tests/test_address.py:

Line 5:1: E302 expected 2 blank lines, found 1
Line 20:1: E302 expected 2 blank lines, found 1

In the file tests/test_date_tools.py:

Line 50:1: E302 expected 2 blank lines, found 1

In the file tests/test_telecom.py:

Line 29:1: E302 expected 2 blank lines, found 1
Line 35:1: E302 expected 2 blank lines, found 1
Line 42:1: E302 expected 2 blank lines, found 1
Line 53:1: E302 expected 2 blank lines, found 1

app_logger is passed into test functions instead of app


Could customised combine reducers be injected to createStore?

Thank you so much for your efforts on this project.
Recently, we are developing an react native app based on this library and wondering if there is a way that we could inject our customised reducers to initMeteorRedux Method or createStore method? Then we could be able to make use of the the reducers to dispatch actions as the way we want?

You should be able to pass in combineReducers as with a normal store. initMeteorRedux basically just wraps createStore and passes in the params.

@JulianKingman thanks for the quick response.
being a noob to RN + Redux... it would be good to get an example/more info pls.
From what I can see the createStore in initMeteorRedux is hardwired to meteorReduxReducers
Are you saying I should fork the package and add another param, so we can pass in non-Meteor reducers or use some other mechanism?
thanks
@Diwei-Chen

Ah, yes you are right, I was thinking of when I was initially testing it. Thanks for the PR.


docs: delete "ssh_box and image_agnostic_util references" in zh-hans doc

The zh-Hans documentation files for custom_sandbox_guide.md need references to ssh_box.py and image_agnostic_util.py being  rewritten.
#3432

Thank you for the contribution! 👍


Added draw matches to write text and no lines as mode=3.

When there are a lot of matches it is hard to see the correct matches. So instead of lines, I draw circles and write text (serial number of the match) to the image. Basically, I have edited your DrawInlier().

Hey mpkuse,
Thanks for your commits, and I would like to integrate it into the code. I give some suggestions before merging:

Formatting the name of photos, as one may not understand the which pairs should be matched.
Replacing "boost/timer" in cpp codes with the standard library for convenience, as many guys may not get boost library installed.
I have invited Konrad who implemented the original python code to check out the change. He may give suggestions below about the python scripts.

Best,
JiaWang

Sure, I will follow your suggestion and add another commit soon.

Hi mpkuse,
Thanks for your updates!
I have a few suggestions:

Can you change syntax to match Python3? The script was originally developed to support it.
Can you remove all unnecessary comments? I see quite a lot of code which is commented out.
Can you write something more about GmsRobe, which is a new functionality? Did you invented it yourself or it's a implementation of known algorithm(if yes pleas provide a link where I could read more about it).

Best,
Konrad

What do you exactly mean by syntax to match python3?
I will get rid of the commented code. Basically, I added the main in a separate script and class in separate so that in my projects (and for others) can simply copy the class file and follow examples from demo.py file.
GmsRobe is my original work to extend the functionality. I will write a short readme for this.
I think I will need a couple of days to fix this up.

I couldn't run your code because you use print function without parentheses. Please try to run your code with Python3 interpreter and it will tell you if there are any problems.
Take your time with changes, it's not a race :)


Print abstract & keywords into YAML header from file

In manuscript/index.Rmd, I currently have the (multiline!) abstract and keywords inside the abstract: argument of the YAML header:
abstract: |
  | **Aim** Foo
  | ** Location** Bar
  | **Taxon** Wizz
  |
  | _Keywords_
  | Foo, bar, wizz

This is pretty ugly.
I want to try and keep this stuff in, say, _abstract.Rmd, and dump it on render into the YAML header:
abstract: '`r readr::read_file("_abstract.Rmd")`'

Something like that would be great. I've tried it, but it creates an odd error wherein it is as if the whole YAML header is absent (thus giving no title, author, etc.), and throwing the error:
This document format requires a nonempty <title> element.
  Please specify either 'title' or 'pagetitle' in the metadata.
  Falling back to '_main.utf8'

Just putting this in ms body... Easier...


Renamed to sitesync and ayon-core updates

sync_server name should be made obsolete, replaced by sitesync.
Various updates for latest 0.3.0 version of ayon-core

Found a bug when removing from local.
First off, there are two instances of the function remove_site() in addon.py that causes an error.
Second, if you fix the problem above, when removing from local I'm getting this error:
Traceback (most recent call last):
  File "C:\Users\jacob\Syncthing\Projekt\Ayon\ayon-core\client\ayon_core\tools\loader\ui\repres_widget.py", line 401, in _on_context_menu
    self._controller.trigger_action_item(
  File "C:\Users\jacob\Syncthing\Projekt\Ayon\ayon-core\client\ayon_core\tools\loader\control.py", line 258, in trigger_action_item
    self._sitesync_model.trigger_action_item(
  File "C:\Users\jacob\Syncthing\Projekt\Ayon\ayon-core\client\ayon_core\tools\loader\models\sitesync.py", line 356, in trigger_action_item
    self._sitesync_addon.remove_site(
  File "C:\Users\jacob\Syncthing\Projekt\Ayon\ayon-sitesync\client\ayon_sitesync\addon.py", line 266, in remove_site
    self._remove_local_file(project_name, representation_id, site_name)
  File "C:\Users\jacob\Syncthing\Projekt\Ayon\ayon-sitesync\client\ayon_sitesync\addon.py", line 1712, in _remove_local_file
    representation = get_representation_by_id(
  File "C:\Users\jacob\Syncthing\Projekt\Ayon\ayon-launcher\.venv\lib\site-packages\ayon_api\_api.py", line 910, in get_representation_by_id
    return con.get_representation_by_id(*args, **kwargs)
  File "C:\Users\jacob\Syncthing\Projekt\Ayon\ayon-launcher\.venv\lib\site-packages\ayon_api\server_api.py", line 5104, in get_representation_by_id
    for representation in representations:
  File "C:\Users\jacob\Syncthing\Projekt\Ayon\ayon-launcher\.venv\lib\site-packages\ayon_api\server_api.py", line 5058, in get_representations
    for parsed_data in query.continuous_query(self):
  File "C:\Users\jacob\Syncthing\Projekt\Ayon\ayon-launcher\.venv\lib\site-packages\ayon_api\graphql.py", line 376, in continuous_query
    raise GraphQlQueryFailed(response.errors, query_str, variables)
ayon_api.exceptions.GraphQlQueryFailed: GraphQl query Failed: Field 'files' of type '[FileNode!]!' must have a selection of subfields. Did you mean 'files { ... }'? (Line 6 Column 11)

After that when I check the loader both the local and remote files are set to 0% but all the files still exists on the drives.
(Bonus, don't forget to add the extra tab in the update_db() function as done in this PR: https://github.com/ynput/ayon-sitesync/pull/21 )

Found a bug when removing from local.

Fixed

@kalisp as Im not experienced much with this addon... could you add some testing steps? (I think you can skip the usual package building and creation of the new server bundle...but the rest isnt clear to me (what should I look for etc) thx!


Testing a PR to see how it works with CI

It did not deploy :) Though it showed the deploy step with a checkmark and only indicated inside it that it hadn't run.


webkitgtk: 2.14.4 -> 2.14.5

Motivation for this change
Stable upgrade. The recent vulnerability roundup mentions only pre-2.14.4, but browser engines should be regularly updated.
Things done

Built on platform(s)

[x] NixOS

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@fpletz should this be backported?


Threading timing

Adds functionality for CPU time check when threads are created and completed, which is printed out to the console.

Closing because of rebase of threading


[OPPRO-180] Move the DWRF Write Extension initialize to OtherExtensionOverrides

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

@zzcclp Please help to review! Thanks.


Enable/disable property by radio button

Add an attribute that defines a property that enables/disables the decorated property.
e.g.
public enum Country { Argentina, Bolivia, Chile}

[Browsable(false)]
public Country CountrySelector { get; set; }

[EnableByRadio("CountrySelector", Country.Argentina)]
public string Argentina { get; set; }

[EnableByRadio("CountrySelector", Country.Bolivia)]
public string Bolivia { get; set; }

[EnableByRadio("CountrySelector", Country.Chile)]
public string Chile { get; set; }

I would not call it EnableByRadio, i would call it EnableByValue!

Sorry, I was not precise enough in the description. There is already an EnableByAttribute that does this. But I wanted a feature where there is a radio button in front of the property editor. Currently, we have OptionalAttribute that creates a CheckBox, but I would like a similar feature that creates a RadioButton instead.
I know this feature has some limitations - only one property editor for each radio button, but I think it could be useful anyway.

What about [EnableByRadioButton(propertyName,value)] and [EnableByCheckBox(propertyName,value)] and mark [Optional(propertyName)] obsolete.
Or [RadioButtonEnabled(propertyName,value)]?
Or simply [RadioButton(propertyName,value)]?


⚠ Mobitopup has degraded performance

In 39d3390, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 10719 ms

Resolved: Mobitopup performance has improved in 0ad92c8 after 419 days, 7 hours, 2 minutes.


Major additions

Added password hashing for security, signup form with both client and server-side validation, new user verification and confirmation emails, the ability for admins to confirm users or users to confirm themselves, database integrity additions such as GUIDs and time stamping. Also updated the README documentation to reflect these changes.

Thank you for this great contribution :+1:

No problem, glad I could help! Do you know though why I'm not showing up as a contributor? :/

I have no idea ! Could I add you as a member to the repo so we can maintain this project together ?

Absolutely!

Done ! thank you :)

Good job.

@bercanozcan Thank you!


Can Jeddict generate Spring Boot based Rest Resources and Repositories ?

Can Jeddict generate Spring Boot based Rest Resources and Repositories ?

Jeddict extension is not available for Spring Boot. For Spring Boot I will recommend using Java Hipster.


How I can add shortcuts help module as button to menu?

I want to add shortcuts help button like this:

which opens shortcuts help dialog:

Hello @vivazzi,
This is currently not possible as the shortcuts functionality does not expose any public API.

Yes, I see. I suggest to do it. I think it will be useful for administrators


Add Japanese Social Network Posts Sentiment Classification Dataset

Checklist for adding MMTEB dataset

Reason for dataset addition: add a Japanese sentiment dataset for the classification task from
the naacl paper WRIME: A New Dataset for Emotional Intensity Estimation with Subjective and Objective Annotations

[X] I have tested that the dataset runs with the mteb package.
[X] I have run the following models on the task (adding the results to the pr). These can be run using the mteb run -m {model_name} -t {task_name} command.

[X] sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
[X] intfloat/multilingual-e5-small

[X] I have checked that the performance is neither trivial (both models gain close to perfect scores) nor random (both models gain close to random scores).
[X] I have considered the size of the dataset and reduced it if it is too big (2048 examples is typically large enough for most tasks)
[X] Run tests locally to make sure nothing is broken using make test.
[X] Run the formatter to format the code using make lint.
[X] I have added points for my submission to the POINTS.md file.

Synced to main and resolved conflicts. Please check again, thank you! @KennethEnevoldsen


hotfix(CI): fixed channel for the firebase

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


December 7th Community Meeting

Please add a topic in this thread and add a link to the Github issue associated with the topic.
Please make sure you give folks enough time to review/discuss the topic offline on Github before coming into the meeting
(optional) Paste the image of an animal smile

Upcoming holidays


prepared release of version 1.10.20

Proposed changes:

...

Status (please check what you already did):

[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[ ] reformat files using black (please check Readme for instructions)

@dakshvar22 just checking, did you test this out yourself to make sure it works? Don't want us to end up having another bug in there

@akelad Yes, I did it this time. :)


Heroku Deploy

Current coverage is 2.56% (diff: 0.00%)

Merging #11 into master will increase coverage by 0.01%

@@            master       #11   diff @@
========================================
  Files            7         7
  Lines          196       195     -1
  Methods          0         0
  Messages         0         0
  Branches         0         0
========================================
  Hits             5         5
+ Misses         191       190     -1
  Partials         0         0

Powered by Codecov. Last update 87e7612...28f3ec0


LAB_04-Implement_Virtual_Networking.md.pdf

Description:
The architecture diagram is not translated (lab04.png)

Hello contributor,
Thank you for your contribution! We are processing your suggestions and we will update you shortly.
Kind regards,
Microsoft Worldwide Learning Team

https://github.com/MicrosoftLearning/AZ-104-MicrosoftAzureAdministrator.fr-fr/issues/222


QR Code Generator

AIM
This Script will help us to convert Convert weight in Kgs to Gram, Pounds and Ounce.
Details
It will be implemented using tkinter.

Can you assign me this under SWOC ?

You can Easily find them in any Calculator or Google it..It won't be of any use..Do you suggest something else? Do tell

How about QR Code Generator using python ?

That Sounds Goods..Change the Issue Title and I'll Assign it to you..

Go Ahead @CharvyJain

Made PR. #365 365


AMD SEV-SNP support

Does libkrun support AMD SEV-SNP?

@hstr0, SEV-SNP is currently in the process of being supported in libkrun. See #82 for an implementation that allows for booting unattested SNP guests. Attestation support is currently a WIP.

@hstr0 libkrun SEV-SNP support is now upstream, see #82

@hstr0 libkrun SEV-SNP support is now upstream, see #82

Good news! Thanks!


Add a default timeout to Guzzle requests

I added a 60 second default timeout to Guzzle requests.  In my experience the longest requests to Blizzard are for Auction data, and with gzip those take <10 seconds.  I believe 60 seconds to be an adequate default timeout in the event Blizzard servers never respond.

Thanks!


fix: #3707

Short description
Resolves #3707
Implementation details
exchange the order of audioEl and audioContext duration
Screenshots

The problem is, playback is still happening through an audio element. With this change, getCurrentTime will be inconsistent with getDuration.
Besides, we'd need to adjust this code too then: https://github.com/katspaugh/wavesurfer.js/blob/1a0cc9de96492bc208690b46b07bb4bfade6cb3c/src/wavesurfer.ts#L430-L440

How about we subscribe to the decoded event of the wavesurfer instance, and call getDuration function again when this event is triggered?


Unbalanced Tree Search

In this PR:

implemented UTS (https://www.cs.unc.edu/~olivier/LCPC06.pdf)
note1 since we do not have float sin and power, we can only run t1 and t3 trees
note2 it is better to run this app with rodata in dram

HUGE amount of load imbalance -- 6x on small-t1/t3 2.9x on tiny-t3


Devtools warnings: "failed to load source map", "ERR_BLOCKED_BY_CLIENT"

With the chrome extension installed (Chrome 108 on Windows 10), on any page load of any site, I see these warnings from the extension in the devtools console:

Typically, the "ERR_BLOCKED_BY_CLIENT" error comes from like an ad-blocker or something like that. But these errors happen on pages even when I have my ad-blocker (Privacy Badger) disabled, so I'm pretty sure it's not the cause.
I think something is happening from the wallet extension itself... either not having correct permissions to load the .map files, or them being missing, or something like that.

@kyranjamie any idea what might be generating these?


Capitals tests

Full suite of tests for capital cities queries
Readded  to pom.xml as Dockerfile needs it.

Addressing changes locally.


Improve File Manager

[ ] Ensure that editor modifications are not lost when navigating or reconnecting the board

TBD: Warn about unsaved changes?
[ ] Save a backup of changes in local store

[ ] Upload local files or folders

[ ] TBD: Drag'n'drop files into editor and file manager?

[ ] Download FS snapshot as as zip/tar file
[ ] More file operations

[ ] Rename file
[ ] Copy file

" Download FS snapshot as as zip/tar file "
The rshell utility https://github.com/dhylands/rshell has an rsync sub-command https://github.com/dhylands/rshell#rsync which

Recursively synchronises a source directory to a destination.

This might either be a part of your solution, or inspection of the codebase might give you ideas for your own implementation?
I have been using rshell/rsync to keep a copy of the FS on an RPi Pico running MP 1.23 synchronised for backup on a host/workstation with a USB connection between the two devices. No archiving or compression involved.


Support for destructuring

Hi,
What are your thoughts on supporting object destructuring underneath this MS abstraction?
From what I can see at the moment in this implementation, it isn't supported either for Scope state or for the log message; it seems the MS abstraction doesn't model the concept so I can see there's not an immediately obvious solution.  To clarify what I mean:
Microsoft.Framework.Logging.ILogger myLogger = loggerFactory.CreateLogger("test");

var myEntity = new MyEntity() { Id = "1234", Tags = new [] { "one", "two" } };

using (myLogger.BeginScope("{@entity1}", myEntity)) {
   myLogger.LogInformation("Here is my entity : {@entity2}", myEntity);
}

Writing to a Mongo sync for example, I get the following properties:
{
    "_id" : ObjectId("5592bad238158a2a6c2ba017"),
    "Timestamp" : ISODate("2015-06-30T15:50:41.495Z"),
    "Level" : "Information",
    "MessageTemplate" : "Here is my entity : {@entity2}",
    "RenderedMessage" : "Here is my entity : {@entity2}",
    "Properties" : {
        "@entity2" : "SerilogWebAppSample.MyEntity",
        "SourceContext" : "test",
        "@entity1" : "SerilogWebAppSample.MyEntity",
        "{OriginalFormat}" : "{@entity1}",
        "RequestId" : "80000158-0000-db00-b63f-84710c7967bb"
    },
    "UtcTimestamp" : "2015-06-30 15:50:41Z"
}

Where as of course it would be nice to be able to get:
{
    "_id" : ObjectId("5592bad238158a2a6c2ba017"),
    "Timestamp" : ISODate("2015-06-30T15:50:41.495Z"),
    "Level" : "Information",
    "MessageTemplate" : "Here is my entity : {@entity2}",
    "RenderedMessage" : "Here is my entity : { Id: \"1234\", Tags: [\"one\", \"two\"] }",
    "Properties" : {
         "entity1" : {
            "_typeTag" : "MyEntity",
            "Id" : "1234",
            "Tags" : [
                "one",
                "two"
            ]
        },
        "SourceContext" : "test",
        "entity2" : {
            "_typeTag" : "MyEntity",
            "Id" : "1234",
            "Tags" : [
                "one",
                "two"
            ]
        },
        "{OriginalFormat}" : "{@entity1}",
        "RequestId" : "80000026-0001-c300-b63f-84710c7967bb"
    },
    "UtcTimestamp" : "2015-06-30 15:50:41Z"
}

Any thoughts?

Hah!  Ignore this!  I've only just read the other issue that's already been opened :-)


Add podcast type support

Currently there is no way to play a podcast if a music service supports it.
The skill needs to handle the podcast keyword.

https://github.com/smartgic/mycroft-sonos-controller-skill/commit/b44eab0b85dc6b1d2101475611f79ffe2356b018


Make ESO work cross account to read AWS Secretmanager of a different AWS Account

Describe the solution you'd like
We want to generate in say AWS "Account A" secrets which are fetched from AWS Secretsmanager of Account B
What is the added value?
In this way we are able to either centralize the secrets into one Management account, or use the secrets of Account B to feed our central ETL System (Apache Airflow) to be able to access Data (S3, DB, etc. with secrets managed there) which are stored in Account B
AWS Secretsmanager SecretValues of Account B as a Kubernetes Secret in the EKS Cluster of Account A.
No need to describe a k8 secret ...
Observations (Constraints, Context, etc):
What I have already figured out:
All I describe now is terraform code where possible.
You need 2 AWS Accounts. Account A with AWS EKS, Account B with AWS secretsmanager if you want to build it.
On Both accounts I install helm chart of external-secrets in the chart-version 0.7.2
resource "helm_release" "external_secrets" {
  name       = "external-secrets"
  repository = "https://charts.external-secrets.io"
  chart      = "external-secrets"
  version    = 0.7.2
  namespace  = var.namespace == "" ? "kube-system" : var.namespace
[... no dynamic values ...]
}

Account B:
Create a AWS Secretmanager Secret (And fill manually some secretvalues)
resource "aws_secretsmanager_secret" "secret" {
  name        = "myname"
  kms_key_id  = module.kms_sm.arn
}

Create a selfmanaged AWS KMS key in Account B and attach the following policy to it:
{
  "Version": "2012-10-17",
  "Id": "key-consolepolicy-3",
  "Statement": [
    {
      "Sid": "Enable IAM User Permissions",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::***AccountB***:root"
      },
      "Action": "kms:*",
      "Resource": "*"
    },
    {
      "Sid": "Allow use of the key",
      "Effect": "Allow",
      "Principal": {
        "AWS": "[***ARN of Account A irsa Role (Look further down)***](arn:aws:iam::***Account A***:role/***ARN of Account A irsa Role (Look further down)***)"
      },
      "Action": [
        "kms:*" # Attention! This should cover only the needed rights. Its just for debugging
      ],
      "Resource": "*"
    }
  ]
}

Attach the following Policy in Account B secretmanager to the secret "myname":
{
  "Version" : "2012-10-17",
  "Statement" : [ {
    "Effect" : "Allow",
    "Principal" : {
      "AWS" : "arn:aws:iam::***Account A***:role/***ARN of Account A irsa Role (Look further down)***"
    },
    "Action" : "secretsmanager:Get*",
    "Resource" : "*"
  } ]
}

Not sure if I need this:
data "aws_iam_policy_document" "cross_account_assume_role_policy" {
  statement {
    effect = "Allow"

    principals {
      type        = "AWS"
      identifiers = [[local.gaia_shared__global_sa_irsa_arn](arn:aws:iam::***Account A***:role/***ARN of Account A irsa Role (Look further down)***)]
    }

    actions = ["sts:AssumeRole"]
  }
}

resource "aws_iam_role" "cross_account_assume_role" {
  name               = "my-irsa-role"
  assume_role_policy = data.aws_iam_policy_document.cross_account_assume_role_policy.json
}

In Account A - where I want to get the Secret of Account B I do so:
I create an IAM Policy with the following Policy:
data "aws_iam_policy_document" "secret" {

  statement {
    sid    = "secretstoreAccess"
    effect = "Allow"

    actions = [
      "secretsmanager:GetResourcePolicy",
      "secretsmanager:GetSecretValue",
      "secretsmanager:DescribeSecret",
      "secretsmanager:ListSecretVersionIds",
    ]

    resources = compact([
      "arn:aws:secretsmanager:eu-central-1:***AccountA***:secret:secretsinA-Account"
      "arn:aws:secretsmanager:eu-central-1:***AccountB***:secret:myname"
    ])
  }
}

I create an irsa which creates the serviceaccount and attaches the IAM policy to it.
[If code Manifest is needed I can deliver]

I create a ClusterSecretStote:
The clustersecretstore has access to the AWS secretsmanager of the same Account A, but seems like not to account B...
apiVersion: external-secrets.io/v1beta1
kind: ClusterSecretStore
metadata:
  name: myclustersecretstore
spec:
  provider:
    aws:
      service: SecretsManager
      region: eu-central-1
      auth:
        jwt:
          serviceAccountRef:
            name: ***The above mentioned serviceaccount***
            namespace: kube-system

I create an ClusterExternalSecret which should also create the external secret:
apiVersion: external-secrets.io/v1beta1
kind: ClusterExternalSecret
metadata:
  name: "somename"
spec:
  externalSecretName: "sometargetexternalsecretname"
  namespaceSelector:
    matchLabels:
      secret_something: true
  refreshTime: 1m
  externalSecretSpec:
    refreshInterval: 1h
    secretStoreRef:
      kind: ClusterSecretStore
      name: "myclustersecretstore"
    target:
      name: "WhatsThatAgain"
      creationPolicy: 'Owner'
    dataFrom:
    - extract:
        key: "myname"
        version: "AWSCURRENT"

The clustersecretstore gets created
The Clusterexternalsecret gets created
The log of the Pod of the external-secret controller logs no error, lists the secrets of Account A, but notiung about the secret of the account B and no Error
[I can deliver Logs, but the say noting]

But no external-secret gets created.
I do not understand how external-secret understands that it shall look for the Secretmanager Secret "arn:aws:secretsmanager:eu-central-1:AccountB:secret:myname" in Account B.
Does it look on the Ressource section of the assigned policy of the serviceaccount?
It's difficult to debug because the external-secret Log says noting.
I can also not easyly test the access with the profile of account A because this is my User Account and not the irsa-Role.
Any suggestion?

How does it work that external-secret knows to search in Account B secretsmanager?
Any suggestion how to reasonably test the permission to access as the irsa User of Account A to Account B?

Update:
I seperated the stuff into a seperate IAM Policy, Serviceaccount and clustersecretstore.
Now I get errors :)
{"level":"error","ts":1674226667.3505235,"logger":"controllers.ClusterSecretStore","msg":"unable to validate store","clustersecretstore":"/account-a-clustersecretstore-tenant","error":"could not validate provider: WebIdentityErr: failed to retrieve credentials\ncaused by: Acces
sDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity\n\tstatus code: 403, request id: 1dcaaff3-11ec-484d-9e7f-142d71c3368e","stacktrace":"github.com/external-secrets/external-secrets/pkg/controllers/secretstore.reconcile\n\t/home/runner/work/external-secrets/external-
secrets/pkg/controllers/secretstore/common.go:67\ngithub.com/external-secrets/external-secrets/pkg/controllers/secretstore.(*ClusterStoreReconciler).Reconcile\n\t/home/runner/work/external-secrets/external-secrets/pkg/controllers/secretstore/clustersecretstore_controller.go:54\ns
igs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.1/pkg/internal/controller/controller.go:122\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/hom
e/runner/go/pkg/mod/sigs.k8s.io/controller-runtime<EMAIL_ADDRESS>/controller.go:274\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.1/pkg/internal/controller/controller.go:235"}
{"level":"error","ts":1674226667.357885,"msg":"Reconciler error","controller":"clustersecretstore","controllerGroup":"external-secrets.io","controllerKind":"ClusterSecretStore","ClusterSecretStore":{"name":"account-a-clustersecretstore-tenant"},"namespace":"","name":"account-a-clustersecretstore-tenant","reconcileID":"5376f244-68a5-40b5-8bf6-a566783fb43c","error":"could not validate provider: WebIdentityErr: failed to retrieve credentials\ncaused by: AccessDenied: Not authorized to perform sts:AssumeRoleWithWebIdentity\n\tstatus code: 403, request id
: 1dcaaff3-11ec-484d-9e7f-142d71c3368e","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.1/pkg/internal/controller/controller.go:329\nsigs.k8s.io/controller-runtime/
pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.14.1/pkg/internal/controller/controller.go:274\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sig
s.k8s.io/controller-runtime@v0.14.1/pkg/internal/controller/controller.go:235"}
I defined the following Policy in Account-B:
data "aws_iam_policy_document" "cross_account_assume_role_policy" {
  statement {
    effect = "Allow"

    principals {
      type        = "AWS"
      identifiers = [[local.gaia_shared__global_sa_irsa_arn](arn:aws:iam::***Account A***:role/***ARN of Account A irsa Role (Look further down)***)]
    }

    actions = ["sts:AssumeRole"]
  }
}

May I have to change the Action into sts:AssumeRoleWithWebIdentity ?

Yeah, this will likely bring you one step further. From a quick look i would also expect the IRSA-enable IAM Role (the one that allows you secretsmanager:GetSecretValue) to have kms:Decrypt permissions.
See this FAQ (sharing secrets cross account with kms): https://aws.amazon.com/de/premiumsupport/knowledge-center/secrets-manager-share-between-accounts/ This should include all relevant information for the cross-account IAM setup. The rest is IRSA and SecretStore configuration.
Regarding IRSA: From the code snippets you posted above i can't see an OIDC provider in the assume role trust policy document (see IRSA docs):
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Federated": "arn:aws:iam::111122223333:oidc-provider/oidc.eks.region-code.amazonaws.com/id/EXAMPLED539D4633E53DE1B71EXAMPLE"
            },
            "Action": "sts:AssumeRoleWithWebIdentity",
            "Condition": {
                "StringEquals": {
                    "oidc.eks.region-code.amazonaws.com/id/EXAMPLED539D4633E53DE1B71EXAMPLE:sub": "system:serviceaccount:default:my-service-account",
                    "oidc.eks.region-code.amazonaws.com/id/EXAMPLED539D4633E53DE1B71EXAMPLE:aud": "sts.amazonaws.com"
                }
            }
        }
    ]
}

This is not super straight forward to set up and the documentation is a bit scattered around. I hope this points you into the right direction. Please let me know if this helps and feel free to ask any follow-up questions :)

Sorry for answering late. I was trying hardly and reading documentations... But with no success.
The IRSA Role has indeed the OIDC provider. I didn't display the code, because it's in a module.
The IAM user, which is connected to the serviceaccount has a trusted relationship with following policy:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "",
            "Effect": "Allow",
            "Principal": {
                "Federated": "arn:aws:iam::MYACCOUNTID:oidc-provider/oidc.eks.eu-central-1.amazonaws.com/id/EXAMPLED539D4633E53DE1B71EXAMPLE"
            },
            "Action": "sts:AssumeRoleWithWebIdentity",
            "Condition": {
                "StringEquals": {
                    "oidc.eks.eu-central-1.amazonaws.com/id/EXAMPLED539D4633E53DE1B71EXAMPLE:aud": "sts.amazonaws.com",
                    "oidc.eks.eu-central-1.amazonaws.com/id/EXAMPLED539D4633E53DE1B71EXAMPLE:sub": "system:serviceaccount:kube-system:MYIRSAACCOUNT"
                }
            }
        }
    ]
}

It has the permission to the secretsmanager actions at the ressource of the secret in the other account.
Additionally it has these permissions:
{
            "Action": "sts:AssumeRoleWithWebIdentity",
            "Effect": "Allow",
            "Resource": "arn:aws:iam::MYACCOUNT:role/MYIRSAIAM",
            "Sid": "AssumeRoleAccessTenant"
        },
        {
            "Action": "kms:Decrypt",
            "Effect": "Allow",
            "Resource": "arn:aws:kms:eu-central-1:THEOTHERACCOUNT:key/THEIDOFOTHERACCOUNTKMS",
            "Sid": "DecryptKMSTenant"
        }

I'm thinking of giving it up and using Secret/Accesskey if this is possible (Think yes).
Far not ideal, but it's hard to do when there is no log

We can say the same! It’s hard to help out with only bits of the information displayed!
from a log perspective, we output everything that the AWS client gives us.. it is normal that permissions and bindings are not displayed in the client output as they could be used as info for an attack.
I also updated the ticket name as this problem is not related to eso (we have e2e tests that covers this functionality, they are all passing) - hope you don’t mind :)

Thank you for renaming.
I was now able to test the Policies by the "Simulation" function in the Dashboard of the IAM rule which indeed hat issues.
I could fix this but the IRSA IAM role of the Account which wants to retrive the Secret is still able to get the secret.
It seems a Sevice Control Policy (SCP) is in place which disallow the Access of the Secret in the other Account.
But this has noting to do with any config of the secrets-operator.
I will investigate on that and when I find out I may place a Info for others here.

Solved for me. But I did not implement assumeRule, but IAM creds


Prepare doc comments for pulldown migration

This was motivated by CI failure on nightly; a code example that wasn't being correctly identified under hoedown was being identified and run when parsed with pulldown.

I'm not that familiar with the spec, such as it is, but I had thought that lists had to have a preceding newline? I guess not.
Rebased onto #548, will merge on green.

I'm referring to the CommonMark spec, which is still not at 1.0 but is expected to be very close. At one point, pulldown was 100% in compliance with the draft spec, but that's drifted as the result of spec changes.

Ah gotcha.


Refactor unit tests of simpler examples to use Test Runner

Summary or solution description
Adapted the smart contracts and changed the unit test on:

test_hello_world.py
test_nep5.py and nep5.py
test_update_contract.py and update_contract.py

Platform:

OS: Windows 10 x64
Python version: Python 3.7

Task linked: CU-864ebcu09 Refactor unit tests of simpler examples to use Test Runner


Font Family

Below is the code snippet in which am trying to provide font-family to the spinner text. It is only taking the color and size but not the font family. Kindly revert if there is any solution for this.
<Spinner visible={spin} textContent={'Loading...'} textStyle={styles.spinnerTextStyle}/>
Provided styling:
spinnerTextStyle: {color: '#FFF', fontFamily: 'Avenir-Heavy', fontSize:17}

could you give screenshot of the text after you apply the new font.

I tried giving this styling fontFamily: 'Avenir-Heavy'. But it is still the same even after giving the font family.

could you give screenshot of the text after you apply the new font.
I tried giving this styling fontFamily: 'Avenir-Heavy'. But as shown in the attached screenshot, it is still the same even after giving the font family.

@Harshitha-syn
React Native has trouble with fontWeight: bold which is why your fontFamily is not working correctly.
A workaround can be to set fontWeight in your spinnerTextStyle to anything other than bold (which overrides the default bold fontWeight set by the package).
In the end, I don't think this is an issue with the package itself.


Android build error

After linking, and also updating the settings.gradle, I'm faced with a build issue on Android:

android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

This appears multiple times for other sources such as 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
RN 0.42
Mac OS Sierra 10.11.16

It's hard to understand what's the issue without taking a look at your build.gralde files.
I don't think this has to do with interactable since we don't use this theme in the library.
Please post your build.gradle if possible.

Fixed it, there's was an issue with the SDK version in my build.gradle. Sorry!

Just for a future reference, the error was that react-native-interactable included the support lib itself. Fixing it in your project was only possible if you chose to use build tools 25.1.0.
It's not a limitation anymore (14592441bf84c89edff40ee93dcc42082aba7acc)

I did upgrade the build tools to that, thanks for sorting!


Refactor avrotools

Issue #394

@jeromekelleher pushed new commit

+1 --- this is good refactor and improves readability.

I'm not proposing we change anything else about this PR (this should be merged asap), but @jeromekelleher do you think the generator semantics of RandomInstanceGenerator's methods give us anything?  It's a bit awkward to have those semantics different than SchemaTool's semantics.

Merged --- thanks @dcolligan.
To answer your question, I was always slightly uneasy about the generator semantics of these. I'm perfectly happy to see these refactored if you want to do it.


Adapter stopped connecting to hipchat

This adapter was working perfectly for me for years...  Now it won't connect at all.  Perhaps Hipchat somehow broke compatibility.  I've tried resetting the password for the Hipchat account I used, doing an npm update, updating packages on the host computer... no luck.
Here are the logs:
Jun 14 15:57:41 hubot systemd[1]: Starting Hubot...
[Thu Jun 14 2018 15:57:45 GMT-0400 (EDT)] DEBUG Loading adapter hipchat
[Thu Jun 14 2018 15:57:46 GMT-0400 (EDT)] DEBUG HipChat adapter options: {"jid":"xxxx_xxxx@chat.hipchat.com","password":"xxxxx","token":null,"rooms":"All","rooms_blacklist":"","host":null,"bosh":{"url":null},"autojoin":false,"xmppDomain":null,"reconnect":true}
[Thu Jun 14 2018 15:57:46 GMT-0400 (EDT)] INFO Connecting HipChat adapter...
[Thu Jun 14 2018 15:59:54 GMT-0400 (EDT)] DEBUG Disconnecting here
[Thu Jun 14 2018 15:59:54 GMT-0400 (EDT)] INFO Connection went offline
....

Here is my package.json:
{
  "name": "testbot",
  "version": "0.0.0",
  "private": true,
  "author": "",
  "description": "Test bot",
  "dependencies": {
    "amqplib": "0.5.1",
    "hubot": "^2.19.0",
    "hubot-diagnostics": "0.0.1",
    "hubot-google-images": "^0.2.6",
    "hubot-google-translate": "^0.2.0",
    "hubot-help": "^1.0.1",
    "hubot-heroku-keepalive": "^1.0.2",
    "hubot-hipchat": "^2.12.0-6",
    "hubot-maps": "0.0.2",
    "hubot-pugme": "^0.1.0",
    "hubot-redis-brain": "0.0.3",
    "hubot-rules": "^0.1.1",
    "hubot-scripts": "^2.17.2",
    "hubot-shipit": "^0.2.0",
    "sprintf-js": "^1.0.3",
    "thumbor": "^0.1.3",
    "xml2js": "^0.4.17"
  },
  "engines": {
    "node": "0.10.x"
  }
}

Same here, hope it starts working again soon

Also having similar issues with our connection.

I met the same issue. And I found following Workaround for Atlassian Server platform.
https://confluence.atlassian.com/hipchatkb/hubot-stopped-working-on-hipchat-server-v2-0-7-and-later-867181545.html
https://confluence.atlassian.com/hipchatkb/external-xmpp-ports-5222-5223-disabled-by-default-in-hipchat-server-2-0-7-859442760.html
Unfortunately my hipchat is using Atlassian Cloud which I couldn't find any workaround for cloud so far.

Same issue here. Sometimes it claims to reconnect successfully, but I'm never able to use robot.messageRoom() to send a message. It always gives me this error:
2018-06-19T22:40:25.296953+00:00 app[web.1]: [Tue Jun 19 2018 22:40:25 GMT+0000 (Coordinated Universal Time)] ERROR TypeError: Cannot read property 'message' of undefined
2018-06-19T22:40:25.296957+00:00 app[web.1]: at Robot.HipChat.send (/app/node_modules/hubot-hipchat/src/hipchat.coffee:35:7, <js>:50:38)
2018-06-19T22:40:25.296959+00:00 app[web.1]: at Robot.messageRoom (/app/node_modules/hubot/src/robot.js:608:23)
2018-06-19T22:40:25.296960+00:00 app[web.1]: at /app/scripts/github-workflow.coffee:157:70, <js>:111:14
2018-06-19T22:40:25.296962+00:00 app[web.1]: at Object.callback (/app/node_modules/githubot/lib/githubot.js:113:20)
2018-06-19T22:40:25.296963+00:00 app[web.1]: at next (/app/node_modules/async/lib/async.js:723:43)
2018-06-19T22:40:25.296965+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:24:16
2018-06-19T22:40:25.296967+00:00 app[web.1]: at IncomingMessage.<anonymous> (/app/node_modules/scoped-http-client/src/index.js:95:22)
2018-06-19T22:40:25.296968+00:00 app[web.1]: at IncomingMessage.emit (events.js:187:15)
2018-06-19T22:40:25.296970+00:00 app[web.1]: at endReadableNT (_stream_readable.js:1081:12)
2018-06-19T22:40:25.296971+00:00 app[web.1]: at process._tickCallback (internal/process/next_tick.js:63:19)

(github-workflow.coffee is our custom code.)
Oddly enough plugins we didn't write still seem to work. But I can't see a difference between how they're created.

Same issue here.  :(

I found that by using both the master branch of this repo (instead of the 2.12.0-6 release version) and changing the hipchat.coffee send method, it seems to be back to normal now. The repeated connection offline output is cleaned up in this master, but the messageRoom method was still broken afterward.
The commit is https://github.com/slepp/hubot-hipchat/commit/126f87591bc5555c1df329fca91141b7c3ac189c
I've pushed the little change to my own repo: https://github.com/slepp/hubot-hipchat

@slepp if that fixes the issue, could you send a PR? I can merge and release a new version later today.

This may be fixed partly by #308 and #304, those two combined fixed things for us.

Solved by migrating team to Slack :|

same...


ChatGPT Error 404

I'm getting the following error:
An error occured. If this issue persists please clear your session token with `ChatGPT: Reset session` command. As a last resort try restarting your VS-Code and retry logging in. Error:ChatGPT error 404` and it's stuck in a loop.

Is there a way for me to use Debug Console in VSCode to debug this issue in vscode-chatgpt?
I have ChatGPT Plus and I'm trying to use Turbo (text-davinci-002-render-sha).

Could you make sure you are using the right models for your integration method. Mentioned on readme https://github.com/gencay/vscode-chatgpt#troubleshooting.
Same issue: https://github.com/gencay/vscode-chatgpt/issues/115#issuecomment-1426432805 here.

Turbo model seems to be problematic as reported here: https://github.com/gencay/vscode-chatgpt/issues/119

Switching to the default model, the standard (plus) ChatGPT model resolved the issue. Turbo seems to be problematic, as per #119. As a result, I'm closing this for now.

@slavakurilyak could you try the ChatGPT Turbo Plus model again with the Browser method on v3.6.1?


Check is not working

Whenever I update URL. The check is not getting updated and I'm unable to use this extension

Hello,
I figured out that if you go to the main address bar at the top of Chrome, click on it,  and hit enter once you fill out the desired info below, it starts working.  Maybe just add this to your official instruction set.
Thanks,

Dustin

Yeah that's one of solution, But we have fixed it. Its available on chrome web-store please upgrade the same. Also this time we have checked with different xpath's as well you can find it in below link
Auto Click


fix a problem with apache_request_header function and php as CGI

since the apache_request_headers function will work only if php was installed as apache mod ( http://php.net/manual/en/function.apache-request-headers.php check the change log ), i had a problem on the live server
so i have change it a bit to check if its exist or not ..
if its not found use the getenv() function instead ..

Good catch. However, getenv() doesn't return the X-HTTP-Method-Override on my dev setup (windows). How about taking apache_request_headers out of the equation altogether and just use $this->input->server('HTTP_X_HTTP_METHOD_OVERRIDE') instead. Does this work on your end:
protected function _detect_method()
{
	$method = strtolower($this->input->server('REQUEST_METHOD'));

	if ($this->config->item('enable_emulate_request'))
	{
		if ($this->input->post('_method'))
		{
			$method = strtolower($this->input->post('_method'));
		}
		else if ($this->input->server('HTTP_X_HTTP_METHOD_OVERRIDE'))
		{
			$method = strtolower($this->input->server('HTTP_X_HTTP_METHOD_OVERRIDE'));
		}
	}

	if (in_array($method, array('get', 'delete', 'post', 'put')))
	{
		return $method;
	}

	return 'get';
}

Also, keep pull requests in the same coding style (braces on newlines), makes merging less hassle for Phil.

actually this problem was not on my windows dev station, it was on my production server ..
any way i have updated the code and i have test it on the server, its working as it should ..
and i have change my coding style as you instructed :D
thanks

I had the same problem, and this change fixed it.


Allow jsx: react-native

In lieu of #10939, we should allow a new jsx option which preserves the JSX tags, but emits into .js files instead of .jsx.

Related is #9864.


Hybrid models are not supported on TFLite Micro

Hi, I've encountered the following error trying to invoke the .tflite model I've loaded:
tensorflow/lite/micro/kernels/cmsis_nn/conv.cc Hybrid models are not supported on TFLite Micro.
Node CONV_2D (number 1) failed to invoke with status 1
interpreter->Invoke() failed

Does it mean that my .tflite model must be fully quantized for the current version of the tflite-micro?
I'm using the microlite library built for the cortex_m_generic target, with target architecture cortex-m7+fp and CMSIS_NN support.
The model was built using the Tensorflow 2.8 version.
My model's format is TensorFlow Lite v3.
Input tensor format is: float32[1,64,1]
Output format: float32[1,2,64]
I'm using the latest version of tflite-micro, commit aba71897cc518522cf4f52634d97079e9fc8024b

你怎么解决的？我也遇到了类似的问题


[WIP] feat: add change tracking

WIP - Not ready. Do not merge.
See EntityChangeTracker.md for explanation.

Close in favor of #162 which incorporates the ideas and some code from here.

Accidental reopen


Running the prepareToMigrate against the real SMK results in ERR-106 about the 'quality' of the migration key

Version: 8.1.2-SNAPSHOT
The error I receive when doing:
 aPIClientDescartes.prepareToMigrate(aPI, SMP_ID);

[ERR-106] The migration code [ 77a9f1b1-0438-43f3-b56c- ] must contain a minimum of (8 characters,2 Upper Case letters,2 Lower Case letters,2 Special Characters among @#$%()[]{}*^-!~|+= and 2 numbers), a maximum of 24 characters and No White Spaces.

I'll see if I cant create a PR so it peppol-commons conforms with this. Weird...
Off-topic: In the method signature for the prepareToMigrate and migrate the parameters are reversed compared to the other methods. Intentional?

Sorry, no PC at hand to create a PR, so a working piece of code is here: Might need some optimization coding rules wise
  private static final String _upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

  private static final String _lower = _upper.toLowerCase(Locale.ROOT);

  private static final String _digits = "0123456789";

  private static final String _symbols = "@#$%()[]{}*^-!~|+=";

  /**
   * @return A new random migration key with at last 24 characters and in line with SML requirements
   *  must contain
   *  a minimum of 8 characters
   *   - 2 Upper Case letters
   *   - 2 Lower Case letters
   *   - 2 Special Characters among @#$%()[]{}*^-!~|+=
   *   - 2 numbers)
   *  a maximum of 24 characters
   *  No White Spaces.
   */
  @Nonnull
  @Nonempty
  public static final String createRandomMigrationKey ()
  {

	  Random rand = new SecureRandom();
	  String upper = nextString(2, rand, _upper);
	  String lower = nextString(2, rand, _lower);
	  String number = nextString(2, rand, _digits);
	  String symbols = nextString(2, rand, _symbols);

	  String other = nextString(16, rand, _upper+_lower+_digits+_symbols); //Add 16 randomly from the complete set to get to 24

	  String sKey = (upper+lower+number+symbols+other);

	  List<Character> key = sKey.chars().mapToObj(c -> (char) c).collect(Collectors.toList()); // String to List<Character> for shuffle
	  Collections.shuffle(key, rand); // Shuffle so all characters are in a random order

	  sKey = key.stream().map(String::valueOf).collect(Collectors.joining()); // List<Character> to String

	  return getSuitableMigrationKey (sKey);
  }

  /** Creates String of length 'length' from the set of 'charSet' and uses the provided 'random'
   *
   * @param length
   * @param random
   * @param charSet
   * @return
   */
  private static String nextString(int length, Random random, String charSet) {
	  final char[] buf = new char[length];
	  char[] chars = charSet.toCharArray();
      for (int idx = 0; idx < buf.length; ++idx)
          buf[idx] = chars[random.nextInt(chars.length)];
      return new String(buf);
  }

That is the underlying regex in BDMSL 4.0.2:
    public static final String MIGRATION_KEY_REGEX = "^(?=.{8,24}$)(?=(.*[@#$%()\\[\\]{}*^_\\-!~|+=]){2,})(?=(.*[A-Z]){2})(?=(.*[a-z]){2})(?=(.*[0-9]){2})(?=\\S+$).*$";

According to the Peppol SML specification, this is required:

The SMP generates a Migration Key which is a unique string containing characters and
numbers only, with a maximum length of 24 characters. The original SMP invokes the
PrepareToMigrate operation of the SML and then passes the migration key to the new SMP (the key
passing is an out-of-band step not defined in these specifications).

So we're in breach of the spec here - I will contact CEF/Peppol and try to find a solution

I have created PEPPOL-2865 for this

Is this publically visible somewhere? Cannot seem to find a (jira?) issuelist

No, unfortunately not - I will keep you posted (takes some time anyway)

Clean work around for now: provide an external migration key.
Better fix comes later. I am leaving this issue open.

Peppol CMB acknowledged the issue, and will update their SML implementation to reflect the requirements of the BDMSL implementation by CEF.

Part of the 8.1.2 release


Roadmap to storing Bluesky data in Tiled SQL + files

Milestones:

Upload RunStart + RunStop metadata to Tiled container nodes. This has been demonstrated, and motivated some fixes.
Download assets (raw) + event data (as Arrow) and upload it into a Tiled server. This requires nodes backed by multiple data sources, a mixture of internally-managed (event data) and externally-managed (detector data).
Stream Bluesky documents from a Bluesky RunEngine into a Tiled server. Let the client handle batching, at least at first. This requires a PATCH endpoint, with a binary payload in the request body and some query parameters (to be defined) to specify that the data is being appended and, perhaps optionally, where we thing we are picking up from.
Consider whether the server should be able to help with / insist on reasonably good batching/chunking for batch read performance. (Keep in mind that the current solution, mongo_normalized, has very poor chunking, so the bar is low.)

The above was developed in separate conversations with @tacaswell and @dylanmcreynolds.

Next steps, developed via Slack discussion with @tacaswell and bounced off of @padraic-shafer on a short call:

Add a structure_family column to the data_sources table. This information is implicitly knowable but introspecting the structure, but it will be useful to have it explicitly available.
Enable the client to declare a container node that is backed by N data_sources. For now they must be of table structure family.
Nodes may also have child nodes, as well as data sources. The keys of the child nodes and the column names in the data sources should be validated to be distinct.
Enable the client to target a specific data source for upload, via PUT /table/full/{path}?data_source={data_source_id}.
Enable appending rows, via PATCH /table/full/{path}?append. Notice that the endpoint /table/... corresponds to the structure family of the data source (and may continue to grow) the appropriate query params and formats supported, not /container/....
Enable registering and uploading assets from the client.

This might be everything we need for an MVP streaming Bluesky documents into Tiled.

I am rethinking this:

Enable the client to declare a container node that is backed by N data_sources.

If the container is backed by a table and an array, these two things have different structures and performance characteristics. Eliding them into one logical entity is hard, as I found when trying to actually implement it.
In discussion with @padraic-shafer, we developed the idea of simply exposing the event data and the external data as separate child nodes. The event data is very naturally a table. The external data nodes may be whatever they need to be: array, sparse, or even another table.
c[uid]['primary']['data']['table']  # table of event data
c[uid]['primary']['data']['fccd_image']   # detector array data
c[uid]['primary']['data']['pe1_imge']  # another detector array data
c[uid]['primary']['data']['tpx']  # sparse detector data

You could still just get everything into an xarray like this:
c[uid]['primary']['data'].read()

This may require a backward-incompatible change to databroker.mongo_normalized.

We would need to make table a reserved word in the data_keys namespace of the event model.

Yes, that is a significant wrinkle in this. Now I'm think about "transparent" / "anonymous" child nodes again....

To summarize proposals so far:

Container nodes backed by multiple data sources
Just expose the extra layer of nesting (table, array_detector1, array_detector2, ...) to the user.
Mark some nodes as "transparent" / "anonymous", where listing the parent will just show the grandchildren (column names of the table instead of "table").
Add a new structure family, something like union.

I think (2) and (4) are strongest in my mind at the moment. Either reject the added complexity (2) or handle it explicitly (4) rather than making containers that sometimes act funny (3).

Here are some use cases I think that we want to handle. Some of them are already implemented, at least in part.  I'm hoping that this helps frame the changes we want to make in Tiled (and maybe in Bluesky).

case
HTTP API
python API

Naively fetch a "super-table" -- all data sources merged into one table.
Perhaps. "Large" data like detector images could be represented by asset URL. In general, do this for any child backed by an external asset?
Yes. Dask DataFrame seems like a reasonable choice for making this transparent with lazy fetching.

Fetch all scalar table data -- omit any "large" data arrays.  Investigate datasets with incurring major overhead
Yes. See comment above about (optionally) including links to large data.
Yes.  Essentially same as HTTP response.

Fetch one or more detector arrays with "context".  Primary focus is the detector array(s) but rich data from the scalar table. Essentially the tabular data is "metadata" for the images.
Probably. Would expect encoded equivalent of what python client returns.
Yes. Return xarray Dataset or DataArray

Fetch one or more detector arrays with no additional "context".  Primary focus is the detector array(s) for numerical processing. Contextual data has already been handled "externally".
Yes. This is "/array/full".
Yes. This is the equivalent of "/array/full".

I am very interested in hearing from others if these uses cases and suggested output seem about right, or what edits are needed.

I strongly support "Fetch one or more arrays with context", but I think more work needs to be done on Bluesky/Databroker for this.
As an example, I operate a spectrometer. At each motor step, the detector outputs a 1-d array, which should be labelled by the detector energy bins (it's essentially an MCA). However, these bin values are stored as configuration, since they aren't read every step. So if you look at the detector data in tiled, the xarray for the detector has dimensions [time, dim0], where dim0 is just some useless placeholder index.
I would love the dimensions to be [time, energy], but as far as I can tell, there is no way to do this assignment in bluesky and get the detector axis into xarray. But this is precisely the "rich data" that I most want to return!

This comes from Ophyd as part of the information reported by describe(). Alongside dtype and shape, it may optionally specify dims, a list of names, perhaps ["energy"] in your case.
if dims is unspecified, Databroker falls back to filling in dim{N}. This feature has been around for awhile but is not yet widely used because Databroker 2.x and Tiled are still in pre-release.

Is that documented anywhere? I see no mention of it in https://blueskyproject.io/bluesky/hardware.html and I haven't seen anything in the Ophyd documentation (which is, honestly, so confusing that I normally skip it and go straight to github). Do the dims actually pull in data from config? It's not useful to have a field that just "happens" to have the right name if it's not actually connected to the data.

Late to comment, but the word "Stream" in the initial description and @padraic-shafer 's description of "Fetch one or more detector arrays with "context" "   resonate with me.  I agree with some points of @cjtitus
The relevant context if it is a "slow" stepwise scan (meaning motor motion required and/or detector counting time > 1s) can include:
essential detector descriptors for some

ROI addresses
concatenation parameters, image flipping parameters (things in the PROC AreaDetector plugin)
any fancy datastore integration of dark or flatfield streams (i.e., bluesky dark frames)
masks (e.g., bad pixels,  beamstop,  labeled array for processing)
pixel 0,0 address (some AreaDetector plugins feature this PV, but not all)

essential detector descriptors for all

exposure time (acquire_time)
detector rep rate or duty cycle (acquire_period)

essential complementary data fields for some

the slow "motor" positions that are scanning (could be a scalar like applied voltage or magnetic field or laser on/off)
children of the detector (any thing set up with the TTL pulse of the detector that is ALSO COUNTED)
bluesky monitor (or flyer if you don't mind the additional time at the end for writing)

The relevant context if it is a fast
see above
unique to "fast"

use cases:  time-resolved, pump (and then also pump-probe), experiments using the accelerator timing, time-based fly-scanning, time-series to extract dynamics with or without external forces
accurate time stamping isn't always possible.  to cope, people rely on the highly precise duty rate of a detector and request multiple frames in one point. With accurate time-stamping, others want to collect thousands of images with a kHz duty cycle.  Probably better to just request 1 bluesky point in that case

In this last point, the consequence right now is any real "streaming", even if the data collection take 1 hour, isn't possible using databroker.  I am guessing tiled hasn't solved this, but I could be wrong.  Maybe this isn't for tiled to solve, but then bluesky should. But not in a way that that it breaks the "slow" scans that happen for alignment and complimentary data collection.


Fix for issue #626 carouselRef.getPositionIndex is not a function

Platforms affected
iOS, Android
What does this PR do?
Simply fixes this issue.

Fixes the issue of pagination dots throwing an error and not working when clicked. Setting tappableDots={true} resulted in an error due to the carousel ref not being referenced correctly.
Also makes the generation of dots functional by using map instead of push.
What testing has been done on this change?
It's only been tested on Android. Setting carouselRef to an incorrect type results in a warning.
Tested features checklist

[x] Default setup (example)
[x] Carousels with and without momentum enabled (prop enableMomentum)
[ ] Vertical carousels (prop vertical)
[x] Slide alignment (prop activeSlideAlignment)
[ ] Autoplay (prop autoplay)
[ ] Loop mode (prop loop)
[ ] ScrollView/FlatList carousels (prop useScrollView)
[x] Callback methods
[x] ParallaxImage component
[x] Pagination component
[ ] Layouts and custom interpolations

@Creskendoll Thanks a lot for the PR! It will be part of the new release ;-)


chore: node v18 compatibility

Summary
When using node v18 there is an error related to outdated hashing function being used by webpack:
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:133:10)
    at BulkUpdateDecorator.hashFactory (/Users/jbroma/repack/main/node_modules/webpack/lib/util/createHash.js:145:18)
    at BulkUpdateDecorator.update (/Users/jbroma/repack/main/node_modules/webpack/lib/util/createHash.js:46:50)
    at OriginalSource.updateHash (/Users/jbroma/repack/main/node_modules/webpack-sources/lib/OriginalSource.js:138:8)
    at NormalModule._initBuildHash (/Users/jbroma/repack/main/node_modules/webpack/lib/NormalModule.js:880:17)
    at handleParseResult (/Users/jbroma/repack/main/node_modules/webpack/lib/NormalModule.js:946:10)
    at /Users/jbroma/repack/main/node_modules/webpack/lib/NormalModule.js:1040:4
    at processResult (/Users/jbroma/repack/main/node_modules/webpack/lib/NormalModule.js:755:11)
    at /Users/jbroma/repack/main/node_modules/webpack/lib/NormalModule.js:819:5

In order to resolve the issue, I've bumped the versions of webpack across the repository and introduced output.hashFunction = 'xxhash64' to the webpack.config files as well as the templates referenced in the docs. Previously, the default hashing function used by webpack was md4 which was deemed unsafe with node v17+. The xxhash64 type will be made the default in next major release of webpack.

Let's add a changeset for this btw


[spdlog] update to 1.9.0

Library name: spdlog
New version number: 1.9.0
Other information that may be useful (release notes, etc...)
https://github.com/gabime/spdlog/releases/tag/v1.9.0

Related PR https://github.com/microsoft/vcpkg/pull/18512

Hi @aizuon
Spdlog has been updated to 1.9.0 in vcpkg now. Please try to update to the latest vcpkg and rebuild this port.


How do we go about adding header information for on external API call?

Previously I was using webcore to make a call to IFTTT maker events when a button was pressed. The header is all json if that makes things easier.

What are you using to send the request and what exactly do you mean by “header”?  HTTP headers are not JSON formatted.

curl -X POST -H "Content-Type: application/json" -d '{"value1":"2023-01-12","value2":"15:38:00","value3":"=((DATEDIF(A2,INDIRECT("A"&ROW()),"D")/2)-ROW())"}' https://maker.ifttt.com/trigger.........
That is what I was sending before with webcore.

I’m confused.  If you are using curl, than why do you need edgebridge??
Edgebridge is for Edge drivers running on a hub, like my webrequestor or HTTP Devices drivers.
HTTP header information is provided in those drivers’ device settings and sent as a standard HTTP request.

I was using curl because that's what webcore allowed me to do. Now I was hoping webrequestor could be used to send the same POST to IFTTT when I press a button, through the use of EdgeBridge. But I can't figure out how to send the necessary headers along with the POST.

Ah ok.  That’s what I was asking… you’re using webrequestor.
Please refer to the webrequestor README.  It shows you how to configure the url, headers, and body for the request:  https://github.com/toddaustin07/webrequestor
Be careful of using quotes:  be sure the are the “straight” kind and not the left/right style.


[SPARK-20249][ML][PYSPARK] Add training summary for LinearSVCModel

What changes were proposed in this pull request?
Add training summary for LinearSVCModel......
Why are the changes needed?
so that user can get the training process status, such as loss value of each iteration and total iteration number.
Does this PR introduce any user-facing change?
Yes
LinearSVCModel.summary
LinearSVCModel.evaluate
How was this patch tested?
new tests

Test build #124333 has started for PR 28884 at commit a30312d.

Merged build finished. Test PASSed.

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

Test build #124333 has finished for PR 28884 at commit a30312d.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
sealed trait LinearSVCSummary extends BinaryClassificationSummary
sealed trait LinearSVCTrainingSummary extends LinearSVCSummary with TrainingSummary
class LinearSVCModel(_JavaClassificationModel, _LinearSVCParams, JavaMLWritable, JavaMLReadable,
class LinearSVCSummary(_BinaryClassificationSummary):
class LinearSVCTrainingSummary(LinearSVCSummary, _TrainingSummary):

Merged build finished. Test PASSed.

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

Test build #124386 has started for PR 28884 at commit 423eeb5.

Merged build finished. Test PASSed.

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

Test build #124386 has finished for PR 28884 at commit 423eeb5.

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

Merged build finished. Test PASSed.

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

cc @srowen

Looking good. There's really no downside here right? just works like the other summaries, and is adding this for consistency.

Right, it works like the other summaries. I don't see any downside for this.

Thanks! @srowen @zhengruifeng


Cannot create a GitHub/GitLab Pages project

Confirmation

[X] My issue isn't already found on the issue tracker.
[X] I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version
Terraform v1.2.7
on darwin_amd64

provider registry.terraform.io/cloudflare/cloudflare v3.23.0

Your version of Terraform is out of date! The latest version
is 1.2.8. You can update by downloading from https://www.terraform.io/downloads.html
Affected resource(s)
cloudflare_pages_project
Terraform configuration files
terraform {
 required_providers {
   cloudflare = {
     source = "cloudflare/cloudflare"
     version = "~> 3.23.0"
   }
 }
}

variable "cloudflare_api_token" {}
variable "cloudflare_account_id" {}

provider "cloudflare" {
  api_token = var.cloudflare_api_token
}

resource "cloudflare_pages_project" "example-project" {
  account_id        = var.cloudflare_account_id
  name              = "example-project"
  production_branch = "main"

  build_config {
    build_command   = "npm run build"
    destination_dir = "build"
  }

  source {
    type = "github"
    config {
      owner             = "WalshyDev"
      repo_name         = "Test"
      production_branch = "main"
    }
  }
}

Link to debug output
https://gist.github.com/WalshyDev/60b51d1bdf060cc239bb701ef30bea72
Panic output
No response
Expected output
Pages project to be created and linked to GitHub.
Actual output
A Direct Uploads project was created (no link to GitHub).
Steps to reproduce

Copy-paste my config above
Change GitHub info
Apply with TF_VAR_cloudflare_account_id=xxxxxx TF_VAR_cloudflare_api_token=yyyyyyyy
Check the projects list - https://dash.cloudflare.com/4e599df4216133509abaac54b109a647/pages

Additional factoids
You can see in the request where the problem is:
"source": {
   "type": "",
   "config": null
  }

This should instead be:
"source": {
  "type": "github"
  "config": {
    "owner": "WalshyDev",
    "repo_name": "Test",
    "production_branch": "main"
  }
}

(side note, there is a ton being sent here, this is like a project response rather than a create response)
Our internal create request only has:

"name"
"source,omitempty"
"build_config,omitempty"
"deployment_configs,omitempty"
"production_branch,omitempty"

References
No response

cc: @Cyb3r-Jak3

Would it possible for this to be released as a patch? This kind of makes one of the main 3.23 release features unusable for the next two weeks.


[Bug Report] work executor accesses an already deleted ttnn::type::Buffer in DeallocateBuffer when the work executor mode is async.

Describe the bug
Let's see ttnn::Buffer destructor code. https://github.com/tenstorrent/tt-metal/blob/625fe97d183b4f9cbe2d6ca8bc195b1bbff991ee/ttnn/cpp/ttnn/types.hpp#L78
class Buffer : public tt::tt_metal::Buffer {
        ~Buffer() {
            this->deallocate();
        }
    private:
        void deallocate() {
            if (this->device() == nullptr or not this->device()->initialized_ or this->size() == 0) {
                return;
            }
            this->set_size(0);
            TT_ASSERT(this->device()->allocator_ != nullptr, "Expected allocator to be initialized!");
            this->device()->push_work([this] () mutable {
                tt::tt_metal::detail::DeallocateBuffer(this);
            });
        }
};

When WorkExecutorMode is set to Async and an heap-allocated ttnn::Buffer is destructed, the destructor enqueues tt::tt_metal::detail::DeallocateBuffer(this); into in the work_executor's worker queue. After the destructor completes, the Buffer instance is no longer valid because it has been deleted. Despite this, the work_executor pops its worker queue and attempts to execute tt::tt_metal::detail::DeallocateBuffer(this);. Inside DeallocateBuffer, the work_executor thread accesses member functions of the now-invalid Buffer object. For example, buffer->device() is called.
Below is DeallocateBuffer code. https://github.com/tenstorrent/tt-metal/blob/625fe97d183b4f9cbe2d6ca8bc195b1bbff991ee/tt_metal/tt_metal.cpp#L702
void DeallocateBuffer(Buffer *buffer) {
    // buffer is invalid. It has been already deleted.
    EnqueueDeallocateBuffer(
        buffer->device()->command_queue(),
        *(buffer->device()->allocator_),
        buffer->address(),
        buffer->buffer_type(),
        false);
}

This sequence leads to a segmentation fault in our application, as the work_executor thread is accessing memory that has already been deleted.
To Reproduce
Steps to reproduce the behavior:
It is difficult to reproduce segfault.
Expected behavior
work_executor does not attempt to access the Buffer instance after it has been deleted.
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following environment information:

OS: [e.g. Ubuntu 20.04]
Version of software (eg. commit)

Additional context
Add any other context about the problem here.

Hey @namhyeong-kim thanks for the detailed bug report :) Changes staged on https://github.com/tenstorrent/tt-metal/pull/10095, no longer have the deallocate function asynchronously querying a potentially destroyed buffer object for metadata.
Instead, we extract the required metadata in the main thread, pass it to the worker which then operates directly on the values, instead of the buffer.
I was able to reproduce a segfault/unexpected set of asserts by running TestAsyncRuntimeBufferDestructor and adding a significant delay in the worker thread (which ensured that the buffer object was destructed by the time the worker accessed it). With these changes, I no longer see issues.
Please let me know if you still see the segfault after cherry-picking the commit from the PR.
The only thing that needs to be ensured by the user now, is that a buffer object must be alive when the allocate operation is asynchronously called on it (otherwise the worker is assigning an address to a non-existent buffer object.)

I applied your patch, and no segmentation fault occured.

Great! Can this be closed?

Yes


Fix: Cluttered report data from monika to symon

Monika Pull Request (PR)
What feature/issue does this PR add
#1197 Cluttered Report data
How did you implement / how did you fix it

Remove cluttered unused data to send probe report in symon-mode

How to test

run symon
run monika in symon-mode
make sure the new report is entering to the symon report

I could not see any file changes. Have you push it to the remote branch?

I don't see any file changes. Have you pushed it to the remote branch?

@haricnugraha this should be the changes https://github.com/hyperjumptech/monika/pull/1198/files on 1 file only. history.ts

I don't see any file changes. Have you pushed it to the remote branch?

@haricnugraha this should be the changes https://github.com/hyperjumptech/monika/pull/1198/files on 1 file only. history.ts

Ok. It just appears on my end now, i don't know why.


cmd/go: improper validation of cgo flags can lead to remote code execution at build time [Go 1.14]

The go command may execute arbitrary code at build time when cgo is in use. This may occur when running go get on a malicious package, or any other command that builds untrusted code.
This can be caused by a malicious gcc flags specified via a #cgo directive.
Thanks to Imre Rad for reporting this issue.
This issue is CVE-2020-28367.

Fixed by #42556

Fixed by ff5addb6be2fb3001f0cb026c3e4931090a85664


FEIT OM60 A19 RGBW - WB2L based bulb

WB2L: https://developer.tuya.com/en/docs/iot/wb2l-datasheet?id=K9duegc9bualu
FEIT OM60 A19 RGBW Bulb: https://www.feit.com/product/smart-wifi-bulb-color-changing-tunable-white-2/
Firmware Dump: Feit_OM60_RGBW_SYW-A19RGBWAGT2_Dump1.zip

Would be good to test the offsets for this against the other feit bulbs lowes sells

Agreed. This bulb came directly from Feit as an RMA for an ESP based bulb so naturally it sat on my shelf untouched until this exploit came out.
Historically when there were a lot of ESP based Feit bulbs around, the costco, lowes, and menards ones all had slightly different templates for tasmota. It would be interesting to see if that's the case in these bulbs.

Should be good to go, full profile added.

Worked on my Feit bulb of the same model number from Menards.

Working here on my device as well. Closing


Error: tls: failed to verify certificate: x509: certificate

I am attempting to use this provider but i am having trouble with authenticating to my elasticsearch.

I am firstly portforwarding elasticisearch

kubectl port-forward service/elasticsearch-prod-eck-elasticsearch-es-http 9200 -n elastic-system

I then test connection locally using username and password - which works.

https://localhost:9200/

But when i attempt to use terraform i get a tls error because its localhost.

provider "elasticstack" {
  elasticsearch {
    username  = "elastic"
    password  = "<redacted>"
    endpoints = ["https://localhost:9200"]
  }
}

terraform apply

Error: tls: failed to verify certificate: x509: certificate is valid for elasticsearch-prod-eck-elasticsearch-es-http.elastic-system.es.local, elasticsearch-prod-eck-elasticsearch-es-http, elasticsearch-prod-eck-elasticsearch-es-http.elastic-system.svc, elasticsearch-prod-eck-elasticsearch-es-http.elastic-system, elasticsearch-prod-eck-elasticsearch-es-internal-http.elastic-system.svc, elasticsearch-prod-eck-elasticsearch-es-internal-http.elastic-system, *.elasticsearch-prod-eck-elasticsearch-es-default.elastic-system.svc, not localhost

How do i get around this issue so that i can make changes to the elasticsearch cluster in local development (i'm not yet ready to expose it via a lb).

I came across the solution after writing this issue
set insecure = true in the provider config.
provider "elasticstack" {
  elasticsearch {
    username  = "elastic"
    password  = "<redacted>"
    endpoints = ["https://localhost:9200"]
    insecure  = true
  }
}

https://registry.terraform.io/providers/elastic/elasticstack/latest/docs/resources/elasticsearch_index_lifecycle#insecure


Possible roadmap for future releases

Thanks again for this library. I use it for a public facing project I have. For this reason I am invested in the project at least for the reasonml side of things.
Considering my investment in this project and wanting to see it improve over time, do you have a roadmap or ideas for how the project can improve so that I can spend my off time working on them?
I don't have a great deal experience in this area in terms of what the project needs or where the project can be improved. But if I am given some direction and I can certainly pick things up and take them forward.
One thing I was thinking of improving was upgrading bucklescript to v7. Monadic binding may be landing soon as well too and I thought it would be cool to allow users to have that natively in bs as opposed to having to install a ppx. I can make this in to a separate issue and then you can let me know what the upgrade path would look like if that works.
Anyhow, just some thoughts. I would also be interested in improving docs as well. Anywhere help is needed really.

Hi,
Sorry for not being involved in Phenomic this days...
There is so many things to do right now that I don't think it's still interesting to spend time on this project. I would recommend you to switch to Next.js since static export is more & more officially supported (See https://github.com/zeit/next.js/issues/9524).
I have currently just a few site I maintain using phenomic & I plan to try nextjs soon.
For reasonml, I guess bindings for next should be available somewhere.
If you really think it's a shame that phenomic is being left appart, we can discuss this more but I have lost hope for this project & nextjs seems a very good replacement.
I won't recommend Gatsby as there is IMO too much "proprietary" APIs & stuff to learn to start using it. Nextjs API surface is very small compared & can be used for fully static/hybrid/dynamic sites so I think it's better to learn & use this.

@MoOx Thanks for the honest response. I was thinking of moving to next.js as well but wanted to see what might be the next steps for this library. I actually was more interested in maintaining the reason-react static site generator than having to maintain the others. But I understand the burden of OSS and how it's better to join a bustling community that has a lot of support than to build such a community yourself. But I agree, I think next.js is a great alternative so I will start to explore that now.
I would probably suggest putting in the README that this project is not going to be maintained in the near future or if you are really sure of its fate then to make the repository read-only.
Thanks for all the work you did on this project and for all your contributions to the reason community, it's certainly appreciated!

Just dropping in here as I saw this issue referenced on https://github.com/zeit/next.js/issues/9524.
I think it'd be cool to collaborate on adding ReasonML support directly to Next.js!
Though, we could start with a plugin first to work out the implementation.

@Timer That would be awesome! I would like to help but would need some guidance as I am no expert on next.js internals. Let me know how/if I can help.

You can view a sample plugin here: https://github.com/zeit/next-plugins/blob/master/packages/next-source-maps/index.js!
This would need adjusted to add the appropriate loaders for Reason, etc.

This example of using ReasonML with Next.js may also be of value:
https://github.com/zeit/next.js/tree/canary/examples/with-reasonml
And a TODO app:
https://github.com/zeit/next.js/tree/canary/examples/with-reasonml-todo

@Timer I will take a look soon. Thanks!


lnwire: add new closing_complete and closing_sig messages

These two messages will be used to implement the new and improved co-op
closing protocol. This PR also show cases how to use the new
tlv.OptionalRecord type to define and handle TLV level parsing.
I think we can make one additional helper function to clean up some of
the boiler plate for the encode/decode.
A sneak peak of what's to come: https://gist.github.com/Roasbeef/acc4ff51b9dff127230228a05553cdfe

@roasbeef, remember to re-request review from reviewers when ready

@roasbeef, remember to re-request review from reviewers when ready

@roasbeef, remember to re-request review from reviewers when ready


Hyperlink issue

Hi @benschwarz
I'm using Gallery and loving it, but I'm really struggling with two things, and being the novice coder that I am, I have exhausted my limited supply of troubleshooting know-how. If you could look into this and help me out I would really appreciate it 👍
The website is www.theworldneedafather.com/ and Gallery is used for the section "Initiatives" about halfway down the page. My issues are:

I can't seem to make the buttons clickable.
Each of the slides has a hyperlink to a different section, but for some reason only the hyperlink on first one is clickable, and that hyperlink stays clickable on the following pages even when the slides change. The hyperlinks on the other pages just aren't clickable at all.

I dug into the code a little using the Chrome dev tools but couldn't find anything obvious. Please could you take a look and let me know where my issue might lie?
Thank you for your time :)

Possible fix: gscscnd/gallery-css@b4e22f62fef246595e6de174d1834472b5541467


leanify: unstable-2022-12-04 -> unstable-2023-10-19

Description of changes
Update leanify.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 264607 run on x86_64-linux 1

1 package built:

leanify