Remove section about rustc feature from README

First of all, it is wrong: adding the rustc feature doesn't currently mean that we're using the rustc test crate, we still use tester. Adding the rustc feature currently only changes how the target and host fields of default Configs are set. It's probably not relevant for most users, so I don't think we need to have a whole section about it.

After #208, we actually do use the internal test crate when supplying the rustc feature. This PR is no longer relevant.


TS-4879: NetVC leaks while hyper emergency occur on check_emergency_throttle()

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/1081/ for details.

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/1188/ for details.


UI- Github logo Disappearing on hover rather than lighting up

Description
Github logo Disappearing on hover rather than lighting up at  https://discuss.layer5.io/
Expected Behavior
should be light up on hover but disappearing or darken up is current state.
@leecalcote @Chadha93 you can assign me this I have figured out the solution.😊
Screenshots
https://user-images.githubusercontent.com/91942072/224473466-c3d21f34-9a0d-4560-9247-59f05ad2c83c.mp4
Enviroment:

OS: Mac Linux Windows
Browser: Chrome Safari Firefox
Version:
Device: Desktop Mobile

Contributor Guides and Handbook
The meshery.io website uses Jekyll and GitHub Pages. Site content is found under the master branch.

📚 See the Contributing to Meshery.io Website section of the readme.md and other contributing instructions, too.
🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

I would like to work on this issue. can anyone assign me

@hirentimbadiya I have already asked to assign me. And have already figured it out. Can you please take up some other issue.😊

Okay , no worries @parmishh

any updates @parmishh ?

@hirentimbadiya  Yeah its done but waiting for a maintainer to assign me.
And yes this issue is not related to this repo so I will close this after discussion in meeting.

okay @parmishh

This issue belongs to the Layer5 website repo, I've already filed an issue and raised a PR for it, which has been merged, maybe the website haven't been updated yet or I would have to modify something, I'll discuss with the maintainers, Kindly close this issue.

@thisiskaransgit Got it. Closing the issue


Tutorial suggestions

A few suggestions for the tutorial. Suggestions fall into the following categories:

Additional detail for an inexperienced/new user like myself.
Fix typos
Splitting long code chunks into multiple blocks for clarity.
Make the tutorial more prominent on the readme, so users use it to get started.

They're all suggestions so feel free to reject any. Let me know if you'd like me to make any changes

Merged locally to tutorial


Redis healthcheck using Redisson PING

Can you add ping in Redisson which helps in healthcheck?

will be implemented in #196

use redisson.getNodesGroup().pingAll or use redisson.getNodesGroup().getNodes().ping

I used redisson.getNodesGroup().pingAll() to ping redis. This returns true although redis server is down. Can someone clarify ? Is there a better alternate ?


Warn for common misstep of forgetting constructor name.

shader test ( output color Cout = 0 )
{
    vector x = (1, 2, 3);
}

See where this goes wrong? This code will make x be (3,3,3).  If you
don't know why, think about how the comma operator works in C, C++, and
related languages.
The user almost certainly meant
vector x = vector (1, 2, 3);

With this change, the original (buggy) code will get the following
warning output:
test.osl:3: warning: Comma operator is very confusing here. Did you mean to use a constructor: x = vector(...)?

By the way, I am open to suggestions for better wording of the warning that would make it more clear what's going wrong.

The wording seems fine to me.


complete goreleaser setup

[x] brew
[x] scoop
[x] apt / dnf
[ ] aur

I don't really want to maintain the aur package, I'll let an eventual contributor handle it


How to clean up indexes after a Reddison Live Object expires?

As #2625 noted, setting a Reddison Live Object as RExpired does not correctly clean up indexes.
I have a stream of objects from the class below. I use the live object service to efficiently filter for objects in a timespan with the required property, and only want to store objects from the last hour in my Redis cache.
@REntity
class LargeFilterableObject {
@RId
private String id;

@RIndex
private long timestamp;

@RIndex
private String property;

...
}

Is there a way to remove the expired ids from the timestamp and property indexes?
Even if I schedule a service to clean up the indexes, I am unable find a way to efficiently find and evict the expired elements. Please help.

Did you find an answer to this issue? I'm facing the same issue whereby the @RIndex annotated properties are not expiring in redis.

Fixed in https://github.com/redisson/redisson/issues/2625


WINRT_NO_MODULE_LOCK may cause application to crash

WINRT_NO_MODULE_LOCK can cause application to crash if the Windows system automatically unloads unused DLLs.
See the test code below.
#define WINRT_NO_MODULE_LOCK

#include <winrt/Windows.Foundation.h>
#include <winrt/Windows.Devices.Bluetooth.h>

#include <thread>

using namespace ::winrt;
using namespace Windows::Foundation;
using namespace Windows::Devices::Bluetooth;

int main()
{
    {
        std::thread t([]
        {
            init_apartment();
            {
                [[maybe_unused]] auto adapter = BluetoothAdapter::GetDefaultAsync().get();
            }

            // sleep at least 30s so that DLLs will be unloaded when uninit_apartment is called (don't know exactly why)
            std::this_thread::sleep_for(std::chrono::seconds(35));

            clear_factory_cache();
            uninit_apartment();
        });
        t.join();
    }
    {
        std::thread t([]
        {
            init_apartment();
            {
                [[maybe_unused]] auto adapter = BluetoothAdapter::GetDefaultAsync().get();
            }
            clear_factory_cache();
            uninit_apartment();
        });
        t.join();
    }
    return 0;
}

This code causes an access violation reading exception.
After the fisrt time we call Consume(), DLLs were loaded, and an factory_cache_entry was set.
With WINRT_NO_MODULE_LOCK defined, the factory_cache_entry will not be added to the cache entry list.
As a result, the factory_cache_entry has no chance to be clear. However, without WINRT_NO_MODULE_LOCK, the factory_cache_entry could be clear by clear_factory_cache(). Windows system may unload DLLs further (i don't know exactly why and when), so an access violation could happen.
This is dangerous, as this code seems no harm to me, which an init_apartment() is always paired with an uninit_apartment(), and clear_factory_cache() when uninit_apartment() to ensure nothing is cache when there is no apartment.
I've found some ways to keep an extra MTA alive which prevent DLLs from being unloaded. Is this reliable and it it a good way?
IMO, this isn't good enough. If this code is inside a common lib, It assume that the application that using this lib must have a MTA alive all the time when running.

This is by design: https://github.com/microsoft/cppwinrt/pull/1031
Using WINRT_NO_MODULE_LOCK means you want DLLs to remain pinned and clear_factory_cache has no effect.
The trouble is that you're calling CoUninitialize (via uninit_apartment) which may force COM to tear down and unload DLLs that you have expected will remain loaded. Calling CoUninitialize is very dangerous and should be done very carefully.
Don't call it (preferred) or don't use WINRT_NO_MODULE_LOCK.

Thanks for reply.
I'm still a little confused. Microsoft doc says

A thread must call CoUninitialize once for each successful call it has made to the CoInitialize or CoInitializeEx function, including any call that returns S_FALSE. Only the CoUninitialize call corresponding to the CoInitialize or CoInitializeEx call that initialized the library can close it.

This means CoInitilaize and CoUninitialze should appear in pairs, which could usually implemented by RAII. WINRT_NO_MODULE_LOCK may break such things.
Just now, I know that WINRT_NO_MODULE_LOCK conflcts with uninit_apartment. The question is, without WINRT_NO_MODULE_LOCK defined, what is the use case of uninit_apartment? In other word, any bad thing would happen if we don't call uninit_apartment?

There's theory and there's practice. In theory you should pair them and for secondary STA threads that's usually the right thing to do... usually. For MTA threads its practically impossible to guarantee that it is safe to call CoUninitialize, ever. That has nothing to do with C++/WinRT. It's just the reality of COM and the unpredictability of COM object lifetimes in an open system. If you happen to control every object and every reference to every object in the entire object graph, directly and indirectly, then you could in theory make this work but Windows apps are rarely that simple. Not calling CoUninitialize just means the MTA remains alive until the process exits at which point everything is cleaned up reliably. This is far more predictable and reliable.


Add ranking of news

As the poster, I find myself looking for ranking of a news item

You think how this can be done? Based on the 'upvote' to receive the news?

The news are already listed in ranking order. So this is mostly a UI feature. We need to think about whether it makes sense to make the ranking explicit, e.g. showing numbers; or we're fine with as is.

It makes sense to show the ranking if it is possible to vote, if it is not possible to vote is meaningless.
What do you think?


Bug: count is currently ignored in Library.query()

I think at some point in the last week we removed the machinery that cuts out extra results that are larger than count, at least for the non-pinecone-backed libraries.

Oops no this does work, it's just we moved htat logic into Library._remove_restricted_bits


@apply causes Expected pseudo-class or pseudo-element

Adding these lines of codes
:root {
  --danger-theme: {
    color: white;
    background-color: red;
  }
}

body {
  @apply --danger-theme;
}

is causing postcss to show the following error
ERROR in ./~/css-loader?-minimize,sourceMap!./~/postcss-loader?sourceMap=inline!./dashboard/static/dashboard/css/base.css
Module build failed: Error: Expected pseudo-class or pseudo-element
    at new error (/Users/avishayz/workspace/singular/django/node_modules/postcss-selector-parser/dist/processor.js:29:23)
    at Parser.error (/Users/avishayz/workspace/singular/django/node_modules/postcss-selector-parser/dist/parser.js:234:15)
    at Parser.pseudo (/Users/avishayz/workspace/singular/django/node_modules/postcss-selector-parser/dist/parser.js:336:25)
    at Parser.parse (/Users/avishayz/workspace/singular/django/node_modules/postcss-selector-parser/dist/parser.js:553:22)
    at Parser.loop (/Users/avishayz/workspace/singular/django/node_modules/postcss-selector-parser/dist/parser.js:521:18)
    at new Parser (/Users/avishayz/workspace/singular/django/node_modules/postcss-selector-parser/dist/parser.js:104:21)
    at Processor.process (/Users/avishayz/workspace/singular/django/node_modules/postcss-selector-parser/dist/processor.js:26:21)
    at /Users/avishayz/workspace/singular/django/node_modules/postcss-attribute-case-insensitive/dist/index.js:107:68
    at /Users/avishayz/workspace/singular/django/node_modules/postcss/lib/container.js:241:28
    at /Users/avishayz/workspace/singular/django/node_modules/postcss/lib/container.js:148:26
    at Root.each (/Users/avishayz/workspace/singular/django/node_modules/postcss/lib/container.js:114:22)
    at Root.walk (/Users/avishayz/workspace/singular/django/node_modules/postcss/lib/container.js:147:21)
    at Root.walkRules (/Users/avishayz/workspace/singular/django/node_modules/postcss/lib/container.js:239:25)
    at /Users/avishayz/workspace/singular/django/node_modules/postcss-attribute-case-insensitive/dist/index.js:106:7
    at LazyResult.run (/Users/avishayz/workspace/singular/django/node_modules/postcss/lib/lazy-result.js:274:20)
    at LazyResult.asyncTick (/Users/avishayz/workspace/singular/django/node_modules/postcss/lib/lazy-result.js:189:32)
 @ ./dashboard/static/dashboard/css/base.css 4:14-172 13:2-17:4 14:20-178

here's my postcss.config.js
module.exports = {
    plugins: [
        require('postcss-smart-import')({}),
        require('precss')({}),
        require('autoprefixer')({}),
        require("postcss-import")(),
        require("postcss-url")(),
        require("postcss-browser-reporter")(),
        require("postcss-reporter")(),

        require('postcss-cssnext')({}),

    ]
};

using it with webpack1, with postcss-loader as follows:
{
 test: /\.css$/,
 loaders: ['style', 'css?-minimize,sourceMap', 'postcss-loader?sourceMap=inline']
  }

What am I doing wrong?
Thanks.

The example you are providing is working fine in the playground.
Maybe it's a bug related to latest version of a dep. Please open issue at postcss-selector-parser or postcss-attribute-case-insensitive.
Note: your plugin stack is not in the correct order. Order matters. For example, autoprefixer should be the last plugin (and oh it's included in cssnext already). postcss-import should be the first (and oh it's a dup of "smart-import"... reporters should be the last ones... cssnext should be right after import and non standard (precss)...

@MoOx do you know of any docs that have a good round up of common PostCss plugins & order they need to be in?


Where is the master ?

The branch master seems to be deleted. That's embarassing...

+1

Sorry for the extremely late reply. The master branch is back and I added a bower.json file, bower install cookie seems to work now.
The reason there was no master branch is that I used the gh-pages branch. It was pretty useful because I could just immediatly execute the unit tests on remote devices without cloning or always copying between branches.


Curriculum CLI

This PR adds some tooling for the curriculum squads UI, to speed up manual testing. Essentially you can take sets of screenshots and compare them in one big HTML page.
This is useful for

Trying to work out what's changed in the visualiser UI between two commits
Testing new data modela do what you expect

It takes screenshots of all curriculum pages. Note at the moment it doesn't iterate through all the child-subjects/tiers but it will do in future commits
Usage
Take screenshots of the UI in an initial state (labeled foo)

[!NOTE]
By default it uses http://localhost:3000 as the base path, but you can change that by passing --basepath as an option

./scripts/dev/curriculum/automate screenshot :foo
# 📸 [english-primary] temp #1: scripts/dev/curriculum/output/screenshots/foo/english-primary.png_part1.png
# 📸 [english-primary] temp #2: scripts/dev/curriculum/output/screenshots/foo/english-primary.png_part2.png
# [snip]

Now you'd probably switch to a feature branch, then take screenshots of the UI again
./scripts/dev/curriculum/automate screenshot :bar
# 📸 [english-primary] temp #1: scripts/dev/curriculum/output/screenshots/bar/english-primary.png_part1.png
# 📸 [english-primary] temp #2: scripts/dev/curriculum/output/screenshots/bar/english-primary.png_part2.png
# [snip]

Now compare the outputs in one big HTML page
./scripts/dev/curriculum/automate compare :foo :bar
# 📄 written to: /Users/orangemug/dev/projects/oak/Oak-Web-Application/scripts/dev/curriculum/output/compare.html

https://github.com/user-attachments/assets/06035354-4004-4d8b-af54-7948b62a6354
CLI usage output
The runner of all scripts
./scripts/dev/curriculum/automate --help
# automate <command>
#
# Commands:
#   automate screenshot [label]               screenshot the visualiser
#   automate compare <basepath> <targetpath>  compare two sets of screenshots
#
# Options:
#   --help     Show help                                                 [boolean]
#   --version  Show version number                                       [boolean]

The screenshot command
./scripts/dev/curriculum/automate screenshot --help
# automate screenshot [label]
#
# screenshot the visualiser
#
# Positionals:
#   label  label of the screenshots
#
# Options:
#   --help       Show help                                               [boolean]
#   --version    Show version number                                     [boolean]
#   --basepath   basepath of host site          [default: "http://localhost:3000"]
#   --login-url  URL to login with

The compare command
./scripts/dev/curriculum/automate compare --help
# automate compare <basepath> <targetpath>
#
# compare two sets of screenshots
#
# Positionals:
#   basepath    basepath directory                                      [required]
#   targetpath  targetpath directory                                    [required]
#
# Options:
#   --help     Show help                                                 [boolean]
#   --version  Show version number                                       [boolean]

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


release: Restore eu-central-1

Now that Packer has migrated away from goamz v4 signatures are used and eu-central-1 can be supported.
Note: Requires packer version of 0.8.0 or greater.
Closes: #1758

LGTM


add test for broken smtp url logging

Should fail on current master. Goes with https://github.com/OISF/suricata/pull/7705

Suricata PR was merged https://github.com/OISF/suricata/pull/7705

Merged in #932, thanks!


[Kubernetes] ingress path priority in relation with length of path

Do you want to request a feature or report a bug?
Bug
What did you do?
Created a kubernetes ingress, single-hostname, multi-paths (nested tho), with a priority at the ingress level via traefik.ingress.kubernetes.io/priority: "300" -
...
metadata:
  annotations:
     traefik.ingress.kubernetes.io/priority: "300"
...
spec:
  rules:
  - host: xxx
    http:
      paths:
      - backend:
          serviceName: models-5184edfb3
          servicePort: 8081
        path: /api/v2/ws/models
      - backend:
          serviceName: apigateway-5184edfb3
          servicePort: 80
        path: /api/v2/

What did you expect to see?
Traffic should route based on the paths.
E.g. traffic at xxx/api/v2/ws/models, the more specified path should go to the first service and xxx/api/v2/ should go to the 2nd service
What did you see instead?
The more specified path /api/v2/ws/models is getting matched to the more general path. If I remove the other path from this ingress, or create another ingress with a higher priority (e.g. 400), everything routes correctly.
I also did not see this consistently. There were other similar ingresses behaving in the correct way.
The path length was previously used to calculate the priority, but that's no longer the case. So the priority of both the paths above are the same (e.g. the ingress priority) and depending on the init sequence, could different frontends be served?
Path length priority was added here previously  but the "priority" in that initialization is now replaced by the ingress-level priority?
Given that the priority of the route is basically taken as the frontend's priority if it exists, Should the priority for each path be calculated based on (ingress-level priority + path length), instead of just the priority value of the ingress itself?
E.g. either modified at the provider level, or serverRoute.Route.Priority(frontend.Priority + priority) at the serverRoute level.
Output of traefik version: (What version of Traefik are you using?)
1.7.7
(installed with stable helm chart 1.60.0)
What is your environment & configuration (arguments, toml, provider, platform, ...)?
kubernetes  /  ingress
If applicable, please paste the log output in DEBUG level (--logLevel=DEBUG switch)
No debug info but from the UI it seems like the appropriate backend/frontends are generated:
300-xxx/api/v2/
300-xxx/api/v2/ws/models
I'm not sure how/if that is sorted further downstream though.

Reading up further, perhaps it may have been intended? Although, I think it's not immediately intuitive, to have rules in multi-path-ingresses to all end up having the same priority, since that would render routing for nested paths e.g. /foo and /foo/bar kind of arbitrary.

@aranair, you are correct.
By default, Traefik builds internal priorities based on the length of the path that you specify.
However, there are cases where you want to override the priority to ensure that some routes always get matched first (such as the case with PathPrefix: / rules, which are greedy).
When you specify a priority in an ingress object via the annotations, they are applied to all paths in that ingress object, since there is no way for us to tell if and/or which paths they should apply to.
The issue that you are encountering is expected behavior, even though it is not ideal. The advice would be to separate the overlapping paths into 2 separate ingress objects so that you can override the priority for both.
Since this is intended behavior, I will be closing this issue. Feel free to visit us on slack if you have any further questions or concerns: traefik.slack.com
Thanks!

According to the doc https://docs.traefik.io/user-guide/kubernetes/, specifying
traefik.frontend.priority: "1" did the trick for my wildcard and specific sub-domain issue.


client: Copy volume config and description

Closes #5640
Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

jenkins: test this please


Predator error in binaries provided through zenodo

I downloaded and largely can run symbiotic from the zenodo link referenced in your paper on symbiotic 10.
Unfortunately, enabling prp=memsafety results in symbiotic erroring out with an "unable to instrument code" error.
In the symbiotic 10 paper the authors noted predator did not / was not integrated with that version of symbiotic, and so I am perplexed as to why symbiotic is invoking it.
Is there a way to disable predator?
Or does the most recent (sv25 branch) properly deal with predator integration?

In case anyone is wondering -- When invoked without "--memsafety-config-file", symbiotic defaults to the config file "config_marker.json."
This config file specifies a number of shared objects which are invoked as analysis passes in LLVM. One of the shared objects listed has "predator" in its name.
In order to get a working run, I used config_markerk.json, but removed all of the analyses (shared objects) except "libdgPointsToPlugin.so".


New Theme or template

HI, Thanks for the project, I am using this to one of my small clients business, I was wondering if there are some other templates or themes for use.TIA

Managing multiple themes proved too difficult. There is a base theme which you can use to extend for your use.


Community/apiv10

Summary

Checklist

[ ] If code changes were made then they have been tested.

[ ] I have updated the documentation to reflect the changes.
[ ] I have run task pyright and fixed the relevant issues.

[ ] This PR fixes an issue.
[ ] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)

Alright yeah this PR is super good and very ready for merge


Cholesky decomposition of unpermuted matrix

Is it possible to get the Cholesky decomposition of A rather than PAP^T? I am trying to fold this package into my project and it would be easiest if I could get a sparse representation of the same matrix returned by, for example, np.linalg.cholesky. Thank you!

Yes. You have to use cholesky(A, ordering_method='natural').  Then the matrix is not permuted and P is the identity matrix.

Hi, I still have the question to decompose A rather than PAP^T, and I use cholesky(A, ordering_method='natural'), and them factor.L() to try to find the factor of A=LL^T, which is L. However, it seems not to return the same results as np.linalg.cholesky. I just want to check what's the different of comments to use between A=LL^T and A=LDL^T?  Thanks so much for the kindly help !

Hi @sheqi, your approach is right. Do you have the current version (0.4.2) of scikit-sparse? The previous version has a bug where ordering_method='natural' is not always taken into account.

@sheqi: note that most matrices have multiple LL' decompositions that are equally valid, so you wouldn't necessarily expect numpy and scikit.sparse to return the exact same answer even if both are working correctly. If you want to know whether you have a correct LL' decomposition, you should compute the product LL' and see if it matches your original matrix.

Hi, @jor-  after I install the new version, the bug has been fixed and has the same LL^T decomposition as I mention. Very helpful to have more information for ordering method to get the components. I recommend to add some issue on documentation about it. @njsmith Sure, the methods are quite good now, thanks for your kindly response. This package has really good computation advantage over normal python package !! Thanks all.

I am able to get the Cholesky decomposition of A itself after installing version 0.4.2 and using cholesky(A,order_method='natural').L(). Thanks.

I am glad, that it now works.
@sheqi: You can find more informations about the ordering methods in the CHOLMOD documentation. But we will also add some more informations about this in the next release.


Registration changed for Laravel 5.4

closes #4
As this is a breaking change, I suggest to release it as version 2.0 and putting a note to the readme that ^1.0 is for Laravel < 5.4 and ^2.0 is for Laravel >= 5.4.

Not sure about the test problems. Travis succeeded for PHP 7 but fails for the other environments. The reason might be my change from phpunit ~4.0 to ~5.0. I had to update the dependency because of this error:
PHP Fatal error:  Class 'PHPUnit\Framework\TestCase' not found in /home/travis/build/shiftonelabs/laravel-nomad/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestCase.php on line 12

I got the tests working on travis. The phpunit command just uses what is installed in the test VM, and that might not be compatible with what is pulled in by composer. So I switched to ./vendor/bin/phpunit, thus ensuring compatibility.
Furthermore, Laravel and the current phpunit version do not support php 5.5 any more, so I removed it from the travis file.
In case that you release this backwards incompatible change as version 2.0.0, then you can just use #6 to document how to use the correct version.

Closed in favor of #7


How to select date from java code

for example
when the calendar show for the first time
in java, i want to set select date for example is like date 22-8-2018
so when calendar show
date 22-8-2018 is select automatic
how i can do like that

already found


DuplicateItemException on SaveAsync

The Question
Probably a simple question.
Is it possible to make the SaveAsync throw a DuplicateItemException? Or do I need to manually perform LoadAsync check first, then if the item already exist manually throw an exception?
I couldn't find any info around this, it appears possible to do via the lower level PutItem, but not via the DynamoDB context SaveAsync.
If this documentation doesn't exist would be nice if this behaviour is detailed. Unless I missed that point in then docs then apologies.
Environment

Package: AWSSDK.DynamoDBv2
SDK Version: <IP_ADDRESS>
Package Version:  <IP_ADDRESS>
OS Info: Windows 10
Build Environment Visual Studio
Targeted .NET Platform:  core3.1 or netstandard2.1

This is a :question: general question

Hi @DizzyDeveloper,
Good morning.
Thanks for posting the guidance question. Based on testing using the code below, looks like DynamoDBContext updates the item if it is trying to save the item with the existing key:
 using System;
using Amazon;
using Amazon.DynamoDBv2;
using Amazon.DynamoDBv2.DataModel;
using Amazon.Runtime;

namespace DynamoDbTest_Issue1842
{
    class Program
    {
        private static AmazonDynamoDBClient client = new AmazonDynamoDBClient();

        static void Main(string[] args)
        {
            try
            {
                DynamoDBContext context = new DynamoDBContext(client);
                int id = 1001;
                TestTable test = new TestTable
                {
                    Id = id,
                    Title = "Object Persistence"
                };

                context.SaveAsync(test).ConfigureAwait(false);
                test.Title = "Object Persistence - Modified";
                context.SaveAsync(test).ConfigureAwait(false); ;

                Console.WriteLine("To continue, press Enter");
                Console.ReadLine();
            }
            catch (AmazonDynamoDBException e) { Console.WriteLine(e.Message); }
            catch (AmazonServiceException e) { Console.WriteLine(e.Message); }
            catch (Exception e) { Console.WriteLine(e.Message); }
        }
    }

    [DynamoDBTable("testtable")]
    public class TestTable
    {
        [DynamoDBHashKey] //Partition key
        public int Id
        {
            get; set;
        }
        [DynamoDBProperty]
        public string Title
        {
            get; set;
        }
    }
}

This is aligned with the documentation at DynamoDBContext Class for Save which specifies that Saves the specified object to the table. If the primary key specified in the input object doesn't exist in the table, the method adds a new item to the table. If the primary key exists, the method updates the existing item.. I do not see any option to override this behavior.
Hope this helps.
Thanks,
Ashish

Hi @ashishdhingra
Thanks for that, so I either have to use the low level api, or manually check first.
It would be nice if there was an InsertAsync function of sorts that would actually throw an exception if there is a primary key conflict.
Thanks,
DizzyDeveloper

Hi @ashishdhingra
Thanks for that, so I either have to use the low level api, or manually check first.
It would be nice if there was an InsertAsync function of sorts that would actually throw an exception if there is a primary key conflict.
Or maybe even just an ExistAsync function
Thanks,
DizzyDeveloper

@DizzyDeveloper The proposed ExistsAsync function would also need to call something like LoadAsync in background to check for the existence of an item with the given hash key. Not sure if this could be prioritized soon given that the workaround is available. Feel free to add feature-request label and remove guidance label, or close this issue.
Thanks,
Ashish


Make esm output deno compatible

Reference changes for this comment: https://github.com/koskimas/kysely/issues/33#issuecomment-1007995224

The missing .js endings have now been fixed in 0.16.2.
We can't remove Buffer. It's important for node users (most users). Instead, in 0.16.2 Buffer is optional and should work in deno as well.
The only thing missing now are those /// <reference types="./${baseName}" /> headers, meaning of which I don't understand.

That's good news, i'll try out 0.16.2 soon!
The triple slash derectives are interpeted by Deno, they would not be used by any other runtime as far as I know. see<EMAIL_ADDRESS>The comment I made in the "Node-less version" thread should explain in more detail. https://github.com/koskimas/kysely/issues/33#issuecomment-1007995224
The /// <reference types="./${baseName}" /> was just the snippet of the node script I used, it would need to be a link to the files .d.ts version so in index.js you would add /// <reference types="./index.d.ts" />
This is something that would not be needed when using Skypack (assuming it builds correctly), since it uses the X-TypeScript-Types header as replacement for the triple slash directive.

Found a different CDN that actually runs kysely in Deno, but again has the problem types are missing.
import { Kysely } from "https://cdn.jsdelivr.net/npm/kysely/dist/esm/index-nodeless.js/+esm";

const db = new Kysely({});

Adding the /// <reference types="./${baseName}" /> lines seems to break things for node 🤦

I'll close this since it served it's purpose. Any further discussion can be done in https://github.com/koskimas/kysely/issues/33


Brunch doesn't recognize config.yaml

Hi,
Brunch looks awesome! Question,
when I type brunch watch in the brunch folder I receive  brunch:   Couldn't find config.yaml file. Any idea why this is happening?

Hi @aboutaaron,
If you're using brunch v0.8.x (the latest @ npm), it's a known issue. Brunch 0.8 needs to have project dir be specified explicitly. You need to execute brunch watch . instead.
This was fixed in 0.9, which would be released in a week or so.

I installed Brunch this morning and encountered this same problem. Yes it is fixed but the documentation needs to be updated: http://brunch.io/#getting-started - the very import "." is not included in the hilighted code block and makes it look like its ending the sentence ;-D anyways, I missed it and maybe others might too

@headwinds what do you mean? brunch new appname seems to work without dots.

What brunch version do you use? (brunch --version)


Marc fournier solution

Comfort: 3.5
Completeness: 5

interesting self assessment on comfort. I'd say you nailed it! Great work marc 👍


Azure Storage Eplorer - Unable to get local issuer certificate

Error "unable to get local issuer certificate" blocks copies and downloads in Azure Storage Explorer.

@giusbi We have a section in our troubleshooting guide that should help. If you're still running into this, please let us know.

Closing due to lack of response.


[BUG] Deploying with AppsOnly flag throws an error

Describe the bug
Trying to deploy only app registrations fails.
./deploy.ps1 -AppsOnly -UIAppName "app-reg-test-eskil" -EngineAppName "app-reg-test-eskil2"
Screenshots

Desktop (please complete the following information):

OS: macOS 14.5
Powershell 7.4.3
IPAM Release 3.1.0

Hi @picccard, thanks for opening this issue to discuss the challenges you're running into.
I'll look into this right away, and also take a look at the PR you've submitted to address this.
Thanks for reporting this, good catch!

same issue seems to exist on v3.2.0
Screenshot

@picccard, you opened this issue after 3.2.0 was released, so you are correct that it has not been addressed yet.
Your PR's will be merged into v3.3.0 and that should address the issue shortly.


tag online tests to be able to easily skip them

When running test suite without internet connection:
There were 2 errors:

1) ZendServiceTest\ReCaptcha\ReCaptchaTest::testVerifyWithMissingChallengeField
Zend\Http\Client\Adapter\Exception\RuntimeException: Error in cURL request: Could not resolve host: www.google.com

/work/GIT/ZendService_ReCaptcha/vendor/zendframework/zend-http/src/Client/Adapter/Curl.php:458
/work/GIT/ZendService_ReCaptcha/vendor/zendframework/zend-http/src/Client.php:1425
/work/GIT/ZendService_ReCaptcha/vendor/zendframework/zend-http/src/Client.php:923
/work/GIT/ZendService_ReCaptcha/src/ReCaptcha.php:465
/work/GIT/ZendService_ReCaptcha/src/ReCaptcha.php:479
/work/GIT/ZendService_ReCaptcha/test/ReCaptchaTest.php:281

2) ZendServiceTest\ReCaptcha\ReCaptchaTest::testVerifyWithMissingResponseField
Zend\Http\Client\Adapter\Exception\RuntimeException: Error in cURL request: Could not resolve host: www.google.com

/work/GIT/ZendService_ReCaptcha/vendor/zendframework/zend-http/src/Client/Adapter/Curl.php:458
/work/GIT/ZendService_ReCaptcha/vendor/zendframework/zend-http/src/Client.php:1425
/work/GIT/ZendService_ReCaptcha/vendor/zendframework/zend-http/src/Client.php:923
/work/GIT/ZendService_ReCaptcha/src/ReCaptcha.php:465
/work/GIT/ZendService_ReCaptcha/src/ReCaptcha.php:479
/work/GIT/ZendService_ReCaptcha/test/ReCaptchaTest.php:295

This simple fix allow to run phpunit --exclude online
Which will make downstream life easier ;)

I think, a hint in the readme file would be good:

Installation
…
Testing
…
Documentation
…


Rbac for custom actions

Add RBAC support for custom actions. During login and page refreshes the currently authenticated user's role will be set on the RBAC service. When visiting pages that support custom actions, render only the custom actions allowed for the role.
The existing RBAC service had access control mechanisms based on product features. This change extends the RBAC service to also check for roles.
No UX changes.
https://www.pivotaltracker.com/story/show/143079265
@miq-bot add_label fine/yes, enhancement

Code looks good!   Don't forget to add what tab in the SUI this corresponds to

Fine backport details:
$ git log -1
commit e5693c7844e4ec42c988054312bac55f9b51bb63
Author: Chris Kacerguis<EMAIL_ADDRESS>Date:   Tue Apr 4 16:44:05 2017 -0500

    Merge pull request #636 from jjlangholtz/rbac-for-custom-actions

    Rbac for custom actions
    (cherry picked from commit bf69caee2de8a7adfebc9bb9135087281022945b)


UTF-8 support in Windows API

Extracted from https://github.com/crystal-lang/crystal/issues/14670#issuecomment-2153399153
@stakach said:

Worth noting that Windows supports UTF8 now and encourages use of those APIs
https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page

As explained on the above link, the trick is to use the ANSI variant (-A) of the Windows API using the UTF-8 codepage, instead of the Unicode variant (-W) that expects UTF-16. This is supported since Windows 10 v1903, and involves some app manifest shenanigan to change the ActiveCodePage (ACP) of the application to UTF-8. Older Windows releases won't have the guarantee that the ACP is indeed UTF-8.
Pros: Crystal using UTF-8 internally, and it would simplify the integration with the Windows API, and maybe be a bit faster (no more UTF-8 <-> UTF-16 transformations in Crystal).
Cons: GDI applications still don't support UTF-8 and a global beta setting must be enabled by the user to enable UTF-8 localization on their computer.

One thing to note is that while Windows 10 v1903 isn't the most recent release, we're currently supporting older versions of Windows as well.
I think Windows 8 is the oldest supported version with default configuration. It goes down to Windows 7, but only with a compile time flag.
At the moment, I don't think we could drop wide string APIs entirely. There might be different paths on how we can keep support for older versions (e.g via flag for opt-in, or opt-out). Might also be possible to compile both variants and decide at runtime dependning on OS version. Since both A and W variants of the APIs are always available, there should be no issue linking both of them.


How to close blank grabber on victim's pc.

I am Raagavan. I got attacked by a guy. He used blank grabber and attacked my pc. I need to get out of it. I reset my pc and scanned with antivirus but still I cannot delete the virus. Please help me.

https://github.com/Blank-c/Blank-Grabber/issues/55

Also, can you tell me why do you think he used this tool?

Also, can you tell me why do you think he used this tool?

He said he will give me free discord nitro gen but when I installed it, he got all my information and I asked him which tool did you use. He said blank grabber.

#55

Bro I deleted it but when I restart my pc , he gets my information. Please help me to stop it.

Also, can you tell me why do you think he used this tool?

I gave you friend request in discord. Please accept and I will talk to you.
My discord if : Itz_Morattu#1373

Solved!


🐛 fix visible scroll bars and disable preview in split-screen

no issue

fix visible scroll bars being rendered to the right and bottom of the internal editor area in certain browser/OS configurations
disable the preview button when in split-screen mode as it's not any use there
exit SimpleMDE preview mode if it's active when entering split-screen mode

Coverage decreased (-0.1%) to 71.955% when pulling c9c11d9ff244c2c5381f5f502164b75abfd89efe on kevinansfield:disable-preview-button into df354c15d341a0614f0b75c6a42e1a29c63e353d on TryGhost:master.


[SR SQL Planner Summer Camp] Antlr4 for AlterDbQuota

Signed-off-by: zombee0<EMAIL_ADDRESS>What type of PR is this：

[x] AlterDatabaseRename
[x] ShowCreateDbStmt
[x] CreateDbStmt
[x] DropDbStmt
[x] RecoverDbStmt
[ ] ShowDataStmt
[x] AlterDatabaseQuotaStmt

Which issues of this PR fixes ：

Fixes #7947
Problem Summary(Required) ：

Antlr4 for AlterDbQuota

[FE PR Coverage check]
:heart_eyes: pass : 33 / 38 (86.84%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
0
1
00.00%

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
3
4
75.00%

:large_blue_circle:
com/starrocks/sql/analyzer/AlterDbQuotaAnalyzer.java
15
18
83.33%

:large_blue_circle:
com/starrocks/sql/analyzer/Analyzer.java
2
2
100.00%

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
6
6
100.00%

:large_blue_circle:
com/starrocks/analysis/AlterDatabaseQuotaStmt.java
7
7
100.00%


New tag field is not added when you hit Tab while autocomplete list is shown

Create a new line with no tags template, then in the all tags panel type in e.g. "waterway", hit tab and type in "ri" to get the autocomplete list shown. Hit tab key again. The cursor will be moved out of the panel while it is expected to be placed into a new key field.

Thanks for reporting @yaugenka - which browser are you seeing this on?
It's very frustrating to see issues with combo field blurring, after I spent a lot of time on this recently. Browsers do send the events slightly differently sometimes and I worry that a thing I fixed in one browser might have caused an issue in another one.

I'm seeing this on Chrome.

@yaugenka

I'm seeing this on Chrome.

Firefox 60.5.1esr on Linux for me.
If it's any help (it probably isn't) on my rather slow box it sometimes appears to very briefly open the new key field, then change its mind and close it again.  But I could be mistaken about that happening.


feat: change challenge desc to ts

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

I also see that there is a Missing return type on function

What should the return type be? JSX.Element ?

Usually, yes.

FYI: I disabled auto-merge to remind me to go and edit the migration issue when we merge.

I already did that for you :)

Ah, so you did.  Thanks.
I'll check it off once this goes in.


chore(deps): use less specific version for tokio and once_cell

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Docs
[ ] New Binding issue #___
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change?

[ ] Yes, and the changes were approved in issue #___
[ ] No

Checklist

[ ] When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
[ ] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
[ ] I have added a convincing reason for adding this feature, if necessary

Other information

yes

maybe

no


Fix caching spec

Faraday middleware has been updated and uses #read instead of #fetch.
MockCache has been updated to implement #read. #fetch remains in case we
want to support an older version of faraday_middleware.
See faraday_middleware commit:
https://github.com/lostisland/faraday_middleware/commit/3f559c18ee82701d8a1d04faf2bfd92d180b737b#diff-32d8ad0f070291407b5ceb8e788fb40fR47
Current failing travis build: https://travis-ci.org/ejholmes/restforce/jobs/81812544

@timrogers any comments on this?

@kouno Sorry for the delay! Looks good.


Configuring custom bee tools in Chat UI

I created a Db2 for i Bee agent using the Bee agent template and it works great! The core logic comes from the custom "IBMiTool" that leverages a new database access layer for Db2 for i called Mapepire.
IBM i agent: https://github.com/ajshedivy/bee-agent-ibmi
Here is my main question: is it possible to use custom Bee Tools like the one I created for Db2i within the chat UI? Is this already possible through the API?
On another note, Anthropic recently released MCP for connecting data sources with AI assistants, are there plans to explore this for Bee?

My workaround at the moment is to create a simple webserver on IBM i that can talk to Db2 that accepts requests like:
curl -X POST http://HOST:PORT/api/execute-sql \
     -H "Content-Type: application/json" \
     -d '{"sql": "SELECT * FROM sample.employee"}'

This will return the result set from the given SQL. The API is very similar to my "IBMiTool" used in the IBM i agent I mentioned above.
I can then create a "proxy tool" for Bee that sends requests to this endpoint:
import requests

def send_sql_query(sql_query) -> dict:
    """
    Sends a SQL statement to the Flask server and returns the result.

    Args:
        sql_query (str): The SQL statement to execute.

    Returns:
        dict: The server's response as a dictionary.
    """
    url = "http://HOST:PORT/api/execute-sql"  # Server endpoint
    headers = {"Content-Type": "application/json"}
    payload = {"sql": sql_query}

    try:
        response = requests.post(url, json=payload, headers=headers)
        response.raise_for_status()
        return response.json()
    except requests.exceptions.RequestException as e:
        return {"error": str(e)}

I created a bee agent for Db2 for i with access to this tool which works surprising  well for toy examples:


Transform

Issue #, if available:
Description of changes: Adding a propertyTransform section to the schema to avoid falsely drifted resources.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Could we keep pushing to the branch for https://github.com/aws-cloudformation/aws-cloudformation-resource-schema/pull/107 instead of new PRs?

Could we keep pushing to the branch for https://github.com/aws-cloudformation/aws-cloudformation-resource-schema/pull/107 instead of new PRs?


insert or update on tables "pool_owner" and "tx_out" violates foreign key constraints

OS
Fedora 35
Versions
The db-sync version: 13.0.4-rc1
PostgreSQL version: 14.4
Build/Install Method
The method you use to build or install cardano-db-sync: nix
Run method
The method you used to run cardano-db-sync (eg Nix/Docker/systemd/none): none
Additional context
Add any other context about the problem here.
Problem Report
I've run into this while testing db-sync 13.0.4-rc1 together with node 1.35.3-rc1. For some testruns, in a test that creates a stake pool and delegates stake address in the same single transaction we get following errors:
E       /home/martink/Source/repos/cardano-node3/state-cluster8/dbsync.stdout: [db-sync-node:Error:588] [2022-08-07 02:38:41.45 UTC] runDBThread: DbInsertException "PoolOwner" (SqlError {sqlState = "23503", sqlExecStatus = FatalError, sqlErrorMsg = "insert or update on table \"pool_owner\" violates foreign key constraint \"pool_owner_addr_id_fkey\"", sqlErrorDetail = "Key (addr_id)=(12) is not present in table \"stake_address\".", sqlErrorHint = ""})
E
E       /home/martink/Source/repos/cardano-node3/state-cluster8/dbsync.stdout: [db-sync-node:Error:580] [2022-08-07 02:38:41.45 UTC] ChainSyncWithBlocksPtcl: DbInsertException "PoolOwner" (SqlError {sqlState = "23503", sqlExecStatus = FatalError, sqlErrorMsg = "insert or update on table \"pool_owner\" violates foreign key constraint \"pool_owner_addr_id_fkey\"", sqlErrorDetail = "Key (addr_id)=(12) is not present in table \"stake_address\".", sqlErrorHint = ""})
E
E       /home/martink/Source/repos/cardano-node3/state-cluster8/dbsync.stdout: [db-sync-node.Subscription:Error:576] [2022-08-07 02:38:41.45 UTC] Identity Application Exception: LocalAddress "/home/martink/Source/repos/cardano-node3/state-cluster8/bft1.socket" DbInsertException "PoolOwner" (SqlError {sqlState = "23503", sqlExecStatus = FatalError, sqlErrorMsg = "insert or update on table \"pool_owner\" violates foreign key constraint \"pool_owner_addr_id_fkey\"", sqlErrorDetail = "Key (addr_id)=(12) is not present in table \"stake_address\".", sqlErrorHint = ""})
E
E       /home/martink/Source/repos/cardano-node3/state-cluster8/dbsync.stdout: [db-sync-node.ErrorPolicy:Error:6] [2022-08-07 02:38:41.45 UTC] IP LocalAddress "/home/martink/Source/repos/cardano-node3/state-cluster8/bft1.socket" ErrorPolicyUnhandledApplicationException (DbInsertException "PoolOwner" (SqlError {sqlState = "23503", sqlExecStatus = FatalError, sqlErrorMsg = "insert or update on table \"pool_owner\" violates foreign key constraint \"pool_owner_addr_id_fkey\"", sqlErrorDetail = "Key (addr_id)=(12) is not present in table \"stake_address\".", sqlErrorHint = ""}))
E
E       /home/martink/Source/repos/cardano-node3/state-cluster8/dbsync.stdout: [db-sync-node:Error:688] [2022-08-07 02:38:42.65 UTC] runDBThread: DbInsertException "TxOut" (SqlError {sqlState = "23503", sqlExecStatus = FatalError, sqlErrorMsg = "insert or update on table \"tx_out\" violates foreign key constraint \"tx_out_stake_address_id_fkey\"", sqlErrorDetail = "Key (stake_address_id)=(10) is not present in table \"stake_address\".", sqlErrorHint = ""})
E
E       /home/martink/Source/repos/cardano-node3/state-cluster8/dbsync.stdout: [db-sync-node:Error:680] [2022-08-07 02:38:42.65 UTC] ChainSyncWithBlocksPtcl: DbInsertException "TxOut" (SqlError {sqlState = "23503", sqlExecStatus = FatalError, sqlErrorMsg = "insert or update on table \"tx_out\" violates foreign key constraint \"tx_out_stake_address_id_fkey\"", sqlErrorDetail = "Key (stake_address_id)=(10) is not present in table \"stake_address\".", sqlErrorHint = ""})
E
E       /home/martink/Source/repos/cardano-node3/state-cluster8/dbsync.stdout: [db-sync-node.Subscription:Error:676] [2022-08-07 02:38:42.65 UTC] Identity Application Exception: LocalAddress "/home/martink/Source/repos/cardano-node3/state-cluster8/bft1.socket" DbInsertException "TxOut" (SqlError {sqlState = "23503", sqlExecStatus = FatalError, sqlErrorMsg = "insert or update on table \"tx_out\" violates foreign key constraint \"tx_out_stake_address_id_fkey\"", sqlErrorDetail = "Key (stake_address_id)=(10) is not present in table \"stake_address\".", sqlErrorHint = ""})
E
E       /home/martink/Source/repos/cardano-node3/state-cluster8/dbsync.stdout: [db-sync-node.ErrorPolicy:Error:6] [2022-08-07 02:38:42.65 UTC] IP LocalAddress "/home/martink/Source/repos/cardano-node3/state-cluster8/bft1.socket" ErrorPolicyUnhandledApplicationException (DbInsertException "TxOut" (SqlError {sqlState = "23503", sqlExecStatus = FatalError, sqlErrorMsg = "insert or update on table \"tx_out\" violates foreign key constraint \"tx_out_stake_address_id_fkey\"", sqlErrorDetail = "Key (stake_address_id)=(10) is not present in table \"stake_address\".", sqlErrorHint = ""}))

and the stake pool data is not inserted into db.
I'll update with more details.

@mkoura Any chance there was there any rollback before this happened?


$model - getPrimaryKey()/getLastInsertId() returns wrong value when tables has triggers

What steps will reproduce the problem?
$model = new Model();
$model->name = 'model name';
$model->save();

/*
this should return the id of newly inserted row to Model table,
But when table has a trigger that inserts into another table,
returns the id of row inserted to that audit/historic table instead
*/
echo $model->getPrimaryKey();
echo $model->Id;
echo $model->getDb()->getLastInsertId();

What is the expected result?
We expect is a newly assigned ID according to AutoIncrement PK
What do you get instead?
Returns the id of the row inserted to the audit/historic table.
Additional info
We tried directly on sql server like this:
INSERT INTO table ([Name]) VALUES ('Test');
SELECT SCOPE_IDENTITY() as ScopeID, @@IDENTITY as IdentID;

The newly row created, ScopeID returns the correct ID and IdentID the ID of row inserted into Log table.
We checked the method lastInsertId  from PDO ( class yii2\db\mssql\PDO ), and SCOPE_IDENTITY() returns null, so maybe the connection is not the same?! so returns value from @@IDENTITY instead.
   /**
     * Returns value of the last inserted ID.
     * @param string|null $sequence the sequence name. Defaults to null.
     * @return int last inserted ID value.
     */
    public function lastInsertId($sequence = null)
    {
        return $this->query('SELECT CAST(COALESCE(SCOPE_IDENTITY(), @@IDENTITY) AS bigint)')->fetchColumn();
    }

Q
A

Yii version
<IP_ADDRESS>

PHP version
7.1

Operating system
Windows 10/Server 2012

Sql Server
Microsoft SQL Server 2017 (RTM) - 14.0.1000.169

config/db.php
$db = [
	'class' => 'yii\db\Connection',
	'dsn' => 'sqlsrv:Server=localhost\SQLEXPRESS;Database=DTEMP',

	'username' => 'usr',
	'password' => 'pwd',
	'charset' => 'utf8',

	'enableSchemaCache' => true,
	'schemaCacheDuration' => 12 * (60 * 60), // 12 * 1 hour
	'schemaCache' => 'schemaCache',
];

config/web.php
$db = require __DIR__ . '/db.php';
...
$config = [
...
	'components' => [
		'db' => $db,
	...

Could IDENT_CURRENT work?
https://docs.microsoft.com/en-us/sql/t-sql/functions/ident-current-transact-sql?view=sql-server-2017 although it could return an id from a different session.

I've tested it with MySQL and all three codes resulted the same and correct output :+1:

This is a issue with connection through MSSQL, not MySQL ( I dont know if happens with others than MSSQL).
IDENT_CURRENT its for global sessions, maybe for getLastInsertId() only, not suitable for getPrimaryKey() or $model->id ( this last method can't be ever)!
And in my test case, it works, so with yii2 must work like it should be.
How can i check if two queries has the same connections at yii2 active record? some variable has the connection # stream ?!

https://aoeex.com/phile/working-around-scope-identity-not-working-with-pdo
Looks like you'd need to do the insert and select in the same query.

https://aoeex.com/phile/working-around-scope-identity-not-working-with-pdo
Looks like you'd need to do the insert and select in the same query.

This approach is not the best and has many problems because needs custom code for each table, and has a performance issue.
Yii2 is not using the PDO::lastInsertId, instead implemented its own way with this SELECT ISNULL approach.
https://aoeex.com/phile/working-around-scope-identity-not-working-with-pdo
https://docs.microsoft.com/en-us/sql/connect/php/pdo-lastinsertid?view=sql-server-2017

Looking back through the code this has been in since Yii1.
Maybe the driver back then didn't support lastInsertId so it had to be queried.
If you comment out the lastInsertId method in yii2\db\mssql\PDO so it uses the built in method does it work?

Maybe the driver back then didn't support lastInsertId so it had to be queried.

That was likely the case.

Looking back through the code this has been in since Yii1.
Maybe the driver back then didn't support lastInsertId so it had to be queried.
If you comment out the lastInsertId method in yii2\db\mssql\PDO so it uses the built in method does it work?

I tested with that method commented out and the same output.

Only glanced over it but could OUTPUT work?
https://docs.microsoft.com/en-us/sql/t-sql/queries/output-clause-transact-sql?view=sql-server-2017


Warn when submodule attributes and submodule names conflict

Otherwise, it can be hard to predict what will be returned on
attribute access (probably the submodule).
This is in response to https://github.com/huggingface/huggingface_hub/pull/874#discussion_r873727353 on https://github.com/huggingface/huggingface_hub/pull/874

I agree with the warning, but shouldn't we make sure the behavior here is the same as Python's non-lazy-loaded behavior? I agree the behavior is very unclear, but we probably want to not break people's code if they depend on Python's existing behavior ;)

For the record this did catch my project by surprise. We ended up having to rename many of our files to start with underscores to avoid the name conflicts

@adrinjalali @TortoiseHam I agree that it would be ideal to avoid a change in behavior. I tried a fix with sys.modules yesterday, but failed.  I'll poke at it some more, but please let me know if you have ideas.

Here's the problem:

If an attribute is not found on a module object through the normal lookup (i.e. object.getattribute), then getattr is searched in the module dict before raising an AttributeError.

__getattribute__ returns the module, __getattr__ returns the function.


Model: make model fails and succeeds after retry

bash-4.1$ make model
[HW PROJECT..........] start 16:05:27 Fri Jul 06 2018
[CONFIG ACTION HW....] start 16:05:27 Fri Jul 06 2018
[CONFIG ACTION HW....] done  16:05:27 Fri Jul 06 2018
=======================================================
== SNAP ENVIRONMENT SETUP                            ==
=======================================================
Path to vivado          is set to: /afs/bb/proj/fpga/xilinx/Vivado/2017.4/bin/vivado
Vivado version          is set to: Vivado v2017.4.1 (64-bit)
=====Checking path to PSL design checkpoint============
PSL_DCP                 is set to: "/afs/bb/proj/fpga/framework/cards/N250S/current/b_route_design.dcp"
=====Simulation setup: Setting up PSLSE version==========
Setting PSLVER                 to: "8"
=====Simulation setup: Checking path to PSLSE==========
PSLSE_ROOT              is set to: "/afs/bb/u/haver/framework/pslse"
=====ACTION ROOT setup=================================
Setting ACTION_ROOT            to: "${SNAP_ROOT}/actions/hdl_example"
=====Timing limit for FPGA image build in ps============
TIMING_LABLIMIT         is set to: "-200"
=======================================================

=====Content of snap_env.sh============================
export ACTION_ROOT=${SNAP_ROOT}/actions/hdl_example
export PSLVER=8
export SNAP_ROOT=${HOME}/framework/snap
export PSL_DCP=/afs/bb/proj/fpga/framework/cards/N250S/current/b_route_design.dcp
export PSLSE_ROOT=${HOME}/framework/pslse
export<EMAIL_ADDRESS>export TIMING_LABLIMIT="-200"
#export DENALI_USED=FALSE
=======================================================

                        ==============================
                        hardware/Makefile called with:
                        ACTION_ROOT     = /afs/bb/u/haver/framework/snap/actions/hdl_example
                        PSL_DCP         = /afs/bb/proj/fpga/framework/cards/N250S/current/b_route_design.dcp
                        FPGACARD        = N250S
                        FPGACHIP        = xcku060-ffva1156-2-e
                        NUM_OF_ACTIONS  = 1
                        HLS_SUPPORT     = FALSE
                        BRAM_USED       = TRUE
                        SDRAM_USED      = FALSE
                        NVME_USED       = TRUE
                        ILA_DEBUG       = FALSE
                        SIMULATOR       = xsim
                        USE_PRFLOW      = FALSE
                        ==============================
[PREPARE PROJECT.....] start 16:05:28 Fri Jul 06 2018
[PREPARE PROJECT.....] done  16:05:28 Fri Jul 06 2018
[SNAP PREPROCESS.....] start 16:05:28 Fri Jul 06 2018
                        configuring snap_core_types.vhd
[SNAP PREPROCESS.....] done  16:05:28 Fri Jul 06 2018
[CREATE PROJECT......] start 16:05:28 Fri Jul 06 2018
                        using Vivado v2017.4.1 (64-bit)
[CREATE_FRAMEWORK....] start 16:05:40 Fri Jul 06 2018
                        setting up project settings
                        importing design files
                        importing IPs
                        adding NVMe block design
                        adding NVMe Verilog simulation files
                        importing PSL design checkpoint
                        importing XDCs
[CREATE_FRAMEWORK....] done  16:06:17 Fri Jul 06 2018
[CREATE PROJECT......] done  16:06:18 Fri Jul 06 2018
[HW PROJECT..........] done  16:06:18 Fri Jul 06 2018
[COMPILE PSLSE ......] start 16:06:18 Fri Jul 06 2018
[COMPILE PSLSE ......] done  16:06:18 Fri Jul 06 2018
[COMPILE SOFTWARE....] start 16:06:18 Fri Jul 06 2018
[COMPILE SOFTWARE....] done  16:06:18 Fri Jul 06 2018
[COMPILE APPLICATION.] start 16:06:18 Fri Jul 06 2018
[COMPILE APPLICATION.] done  16:06:18 Fri Jul 06 2018
[BUILD xsim MODEL....] start 16:06:18 Fri Jul 06 2018
                        patching SNAP version and build date registers
                        export simulation for version=2017.4.1
ERROR: [Common 17-39] 'send_msg_id' failed due to earlier errors.

    while executing
"send_msg_id exportsim-Tcl-010 ERROR "failed to delete file ($file_path): $error_msg\n""
    ("foreach" body line 8)
    invoked from within
"foreach file_path $files {
      if { {srcs} == [file tail $file_path] } { continue }
      if { {modelsim.ini} == [file tail $file_path] } { continue..."
    (procedure "xps_check_script" line 19)
    invoked from within
"xps_check_script $dir $filename"
    (procedure "xps_write_script" line 10)
    invoked from within
"xps_write_script $simulator $dir $filename"
    ("foreach" body line 35)
    invoked from within
"foreach simulator $l_target_simulator {
    # initialize and fetch compiled libraries for precompile flow
    set l_compiled_libraries [xps_get_compil..."
    (procedure "xps_write_sim_script" line 14)
    invoked from within
"xps_write_sim_script $run_dir $data_files $filename"
    (procedure "xps_xport_simulation" line 31)
    invoked from within
"xps_xport_simulation $objs"
    (procedure "::tclapp::xilinx::projutils::export_simulation" line 140)
    invoked from within
"::tclapp::xilinx::projutils::export_simulation -force -directory /afs/bb/u/haver/framework/snap/hardware/sim -simulator xsim -ip_user_files_dir /afs/b..."
    invoked from within
"export_simulation -force -directory "$root_dir/sim" -simulator xsim -ip_user_files_dir "$root_dir/viv_project/framework.ip_user_files" -ipstatic_sourc..."
    (file "/afs/bb/u/haver/framework/snap/hardware/setup/export_xsim.tcl" line 26)
make[2]: *** [xsim] Error 1
make[1]: *** [model] Error 2
make: *** [model] Error 1
bash-4.1$ make model
[HW PROJECT..........] start 16:07:27 Fri Jul 06 2018
[CONFIG ACTION HW....] start 16:07:27 Fri Jul 06 2018
[CONFIG ACTION HW....] done  16:07:27 Fri Jul 06 2018
=======================================================
== SNAP ENVIRONMENT SETUP                            ==
=======================================================
Path to vivado          is set to: /afs/bb/proj/fpga/xilinx/Vivado/2017.4/bin/vivado
Vivado version          is set to: Vivado v2017.4.1 (64-bit)
=====Checking path to PSL design checkpoint============
PSL_DCP                 is set to: "/afs/bb/proj/fpga/framework/cards/N250S/current/b_route_design.dcp"
=====Simulation setup: Setting up PSLSE version==========
Setting PSLVER                 to: "8"
=====Simulation setup: Checking path to PSLSE==========
PSLSE_ROOT              is set to: "/afs/bb/u/haver/framework/pslse"
=====ACTION ROOT setup=================================
Setting ACTION_ROOT            to: "${SNAP_ROOT}/actions/hdl_example"
=====Timing limit for FPGA image build in ps============
TIMING_LABLIMIT         is set to: "-200"
=======================================================

=====Content of snap_env.sh============================
export ACTION_ROOT=${SNAP_ROOT}/actions/hdl_example
export PSLVER=8
export SNAP_ROOT=${HOME}/framework/snap
export PSL_DCP=/afs/bb/proj/fpga/framework/cards/N250S/current/b_route_design.dcp
export PSLSE_ROOT=${HOME}/framework/pslse
export<EMAIL_ADDRESS>export TIMING_LABLIMIT="-200"
#export DENALI_USED=FALSE
=======================================================

                        ==============================
                        hardware/Makefile called with:
                        ACTION_ROOT     = /afs/bb/u/haver/framework/snap/actions/hdl_example
                        PSL_DCP         = /afs/bb/proj/fpga/framework/cards/N250S/current/b_route_design.dcp
                        FPGACARD        = N250S
                        FPGACHIP        = xcku060-ffva1156-2-e
                        NUM_OF_ACTIONS  = 1
                        HLS_SUPPORT     = FALSE
                        BRAM_USED       = TRUE
                        SDRAM_USED      = FALSE
                        NVME_USED       = TRUE
                        ILA_DEBUG       = FALSE
                        SIMULATOR       = xsim
                        USE_PRFLOW      = FALSE
                        ==============================
[PREPARE PROJECT.....] start 16:07:28 Fri Jul 06 2018
[PREPARE PROJECT.....] done  16:07:28 Fri Jul 06 2018
[SNAP PREPROCESS.....] start 16:07:28 Fri Jul 06 2018
                        configuring snap_core_types.vhd
[SNAP PREPROCESS.....] done  16:07:28 Fri Jul 06 2018
[CREATE PROJECT......] start 16:07:28 Fri Jul 06 2018
                        using Vivado v2017.4.1 (64-bit)
[CREATE_FRAMEWORK....] start 16:07:40 Fri Jul 06 2018
                        setting up project settings
                        importing design files
                        importing IPs
                        adding NVMe block design
                        adding NVMe Verilog simulation files
                        importing PSL design checkpoint
                        importing XDCs
[CREATE_FRAMEWORK....] done  16:08:20 Fri Jul 06 2018
[CREATE PROJECT......] done  16:08:20 Fri Jul 06 2018
[HW PROJECT..........] done  16:08:20 Fri Jul 06 2018
[COMPILE PSLSE ......] start 16:08:20 Fri Jul 06 2018
[COMPILE PSLSE ......] done  16:08:20 Fri Jul 06 2018
[COMPILE SOFTWARE....] start 16:08:20 Fri Jul 06 2018
[COMPILE SOFTWARE....] done  16:08:20 Fri Jul 06 2018
[COMPILE APPLICATION.] start 16:08:20 Fri Jul 06 2018
[COMPILE APPLICATION.] done  16:08:20 Fri Jul 06 2018
[BUILD xsim MODEL....] start 16:08:20 Fri Jul 06 2018
                        patching SNAP version and build date registers
                        export simulation for version=2017.4.1
                        build a xsim model
[BUILD xsim MODEL....] done  16:09:45 Fri Jul 06 2018
bash-4.1$

I changed nothing.

I tried to reproduce the failure, but without success. It is hard to debug it without log files! Please reopen the issue, if you see the problem again.

I also was not able to reproduce the problem. (I built a model, then modified  hardware/sim/nvme_lite/nvme_top_i.sv and rebuilt successfully)
@fhaverkamp Maybe your problem was caused by a previous simulation run that was not closed correctly/completely, which lead to problems with deletion of files?


Use the internal tmt executor by default

It gives better information about test progress.
Supports interactive test debugging as well.

/packit test


Improvement Bring the binlog when do the full/incremental engine clone task

Proposed changes
Bring the binlog when do the full/incremental engine clone task
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.93 seconds
stream load tsv:          510 seconds loaded<PHONE_NUMBER>9 Bytes, about 139 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          30 seconds loaded 861443392 Bytes, about 27 MB/s
insert into select:          29.3 seconds inserted 10000000 Rows, about 341K ops/s
storage size:<PHONE_NUMBER>5 Bytes


Unknown chat conversation shown on friends section

There is an unknown chat conversation shown on the first page of friends. It looks like a loading effect and sometimes changes its location in the list.
https://user-images.githubusercontent.com/14248245/201954977-d05cfc4d-22f9-4028-8255-0b77827c36a8.mov

Already believe I know what this is about, however what could be done to test to be sure is have the other client reload their client or perform an update like changing username, updating status, etc. If that clears up then I already know what this might be about and been fixed (just not pushed up yet). if not then might be related to something else. Havent reviewed the changes made to split this all up so i might do that sometime today, however if they are already on the friends list, i would suggest having the chat button available and possibly render the did key in its place until the identity is received (so they arent blocked from chatting).


Collect screenplay data for either nlp or character networks for films / TV series

Screenplay, Closed Caption collection
Screenplay
There are no comprehensive online databases of screenplays. There are some projects of particular series or films with acceptable data formats we can access, like Sex and the City or Star wars original trilogy.
Besides those, some websites try to collect screenplays. The most popular one is IMSDB. At first glance, some factors make it harder to use these scripts. Like different formats, formatting, and script versions, but it's workable.
Closed Caption
It is much easier to access the caption of films and series. We could scrape websites storing subtitles (e. g. YIFY). However, they are not official, so maybe it would be better (and cooler) to use sources with a more official look.
I checked three streaming services Netflix, Amazon Prime and HBO GO. Netflix's and Amazon's captions seem to be relatively easily accessible. However, further examination is needed.
Developer tools -> Network -> Caption file.
Amazon stores its caption in a Timed Text Markup Language 2 (TTML2) format. You only need to find that file.
Netflix starts the name of the caption file with a "?o=".


Pass along flag to rspec

Hello! I use this plugin probably a thousand times per day, and I often find myself thinking "I would like to run the last selected specs, but with --format=documentation.  Is this possible somehow? Being able to pass the rspec flags to RunLastSpec() as an argument would be great, but maybe there is an easier way to do this.
Any pointers are appreciated!

Using a custom command would likely do the trick.

Is it possible to do this on a per-run basis? I want the normal outputting most of the time, but a special binding to do it again more verbosely. Perhaps I can write a function that sets the custom command, then runs it, then changes it back...

Was actually very easy to do it this way - don't know why I didn't think of it before:
" .vim/after/ftplugin/ruby.vim
let g:rspec_command = 'call VtrSendCommand("bundle exec rspec {spec}")'
nnoremap <buffer> <Leader>a :call RunAllSpecs()<CR>
nnoremap <buffer> <Leader>l :call RunLastSpec()<CR>
nnoremap <buffer> <Leader>L :call RunLastSpecWithDocumentation()<CR>
nnoremap <buffer> <Leader>s :call RunNearestSpec()<CR>
nnoremap <buffer> <Leader>t :call RunCurrentSpecFile()<CR>

function! RunLastSpecWithDocumentation()
    let l:old_rspec_command = g:rspec_command
    let g:rspec_command = 'call VtrSendCommand("bundle exec rspec {spec} --format=documentation")'

    call RunLastSpec()

    let g:rspec_command = l:old_rspec_command
endfunction


bugfix/created-at-update

PR Overview
This PR will address the following Issue/Feature: dbt_hubspot_source #117
This PR will result in the following new package version: v0.14.0

Since this is changing the name of a field in the end model this will be breaking.
Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:
🚨 Breaking Changes 🚨

The created_at field in the hubspot__contacts model has been renamed to created_date to be consistent with the source data and avoid duplicate columns when persisting all property_* fields at the source package.

Under the Hood

Updates to the seed files and seed file configurations for the package integration tests to ensure updates are properly tested.

PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:

[X] dbt compile
[X] dbt run –full-refresh
[X] dbt run
[X] dbt test
[X] dbt run –vars (All vars in the buildkite job)

Before marking this PR as "ready for review" the following have been applied:

[X] The appropriate issue has been linked and tagged
[X] You are assigned to the corresponding issue and this PR
[ ] BuildKite integration tests are passing

Detailed Validation
Please acknowledge that the following validation checks have been performed prior to marking this PR as "ready for review":

[X] You have validated these changes and assure this PR will address the respective Issue/Feature.
[X] You are reasonably confident these changes will not impact any other components of this package or any dependent packages.
[X] You have provided details below around the validation steps performed to gain confidence in these changes.

I was able to confirm that the field changes in the end model. Please see the source package for further validation checks.
Standard Updates
Please acknowledge that your PR contains the following standard updates:

Package versioning has been appropriately indexed in the following locations:

[X] indexed within dbt_project.yml
[X] indexed within integration_tests/dbt_project.yml

[X] CHANGELOG has individual entries for each respective change in this PR

[X] README updates have been applied (if applicable)

[n/a] DECISIONLOG updates have been updated (if applicable)
[X] Appropriate yml documentation has been added (if applicable)

dbt Docs
Please acknowledge that after the above were all completed the below were applied to your branch:

[X] docs were regenerated (unless this PR does not include any code or yml updates)

If you had to summarize this PR in an emoji, which would it be?

📆

@fivetran-jamie thanks for reviewing! I made some updates to my branch to account for your review notes and also included some new variables (also introduced in my source PR changes) that allow users to disable the history models if they wish. Would you be able to give another glance to make sure all looks good following my updates?


TELCODOCS-1781: Update sample GPU Application image URL for multi-arc…

Authored by @StephenJamesSmith.
Bug: Update sample GPU Application image URL for multi-arch support
Jira: https://issues.redhat.com/browse/TELCODOCS-1781
NVIDIA: @mikemckiernan
Dev review: @egallen
QE review @empovit

@egallen @empovit Please review and comment/approve.

@egallen @empovit Please review and /lgtm.

@mikemckiernan Believe it is signed correctly. Please check.

/lgtm

@mikemckiernan Vitaly has approved. Also, do you approve the workflow or do I?


Add a description about following data structure into official documentation: rule content (YAML files etc.)

Add a description about following data structure into official documentation: rule content (YAML files etc.)

https://redhatinsights.github.io/insights-data-schemas/external-pipeline/content_service_source.html


Scam contract report

The below contract is a scam copy of Mad Ape Tournament minted Oct/Now 2021
SPKC7G5W7VDBR65QV1CDP4DWMN8C5VWNQX429RFQ.ordinals-warriors-apes
For instance ordinals-warriors-apes/9 is the copy of https://opensea.io/assets/ethereum/0xECE4775B96c207CEF81e054A3c607e9326d19d42/30 minted on October 30, 2021
Please flag or take other action
Thanks

Thanks for this report, It seems like an impossible job to manually overview and flag contracts and I don't think there is an action we can take on the Explorer.
Have you seen other explorers doing similar things?

Thanks for your reply, I understand your point.
Getting a listing on gamma.io deleted was probably as much as I could push it for now.
Still, since I don't know much about explorers, I went all-in with authority to check if there were any way to flag obvious scam contracts detected. lol
To answer your question, I did not

An idea that we had in the past is to have a white list of contracts that we know we can flag as legitimate, but that'd be manual labor that we can't maintain at the moment.
Anyway, thanks for the report, I'll keep this in mind


WIP: Fix attributes not available in didRender

See #64

@rwjblue did a quick naive PoC changing the order in commit() as you suggested in Discord:

And indeed that commit makes the previously failing test pass for Ember 2.16 and 2.18!
Ember 3.1 - 3.3 are still failing, as they use a different if-block of the runtime polyfill, and I was not sure how to approach them (also patching the Glimmer environment as in the older versions?). Also the patched commit does not work at all for Ember 2.12.
But at least this seems to confirm your thoughts that the issue is related to the order how modifiers and component hooks are called. I feel I am not really able to efficiently dig further into this, as I am missing too much context about the internals involved here. But hopefully this makes it easier to pick this up? Would you be able to do so? 🙏


Add shard'ed deployment example

MVP to support split deployments and sharded model in helm

add sub-charts for cache, proxy, shard
adds example how to run them in order to get shared deployment of kcp

@embik updated. Would like to iterate and cache bugs once we merge. It does not change kcp shard at all so we should be good.


[FEEDBACK] : Wrong text in exercise instruction (Exercises /02-qna.md)

Issue Summary
Description:
The text in step 4 in "Edit the knowledge base" section looks incorrect. While doing the exercise was not able to find the "What is Microsoft certification?" question.
Expected Behavior:
The text should be "What are Microsoft credentials?"
Actual Behavior:
Right now, the text is "What is Microsoft certification?" which is quite confusing.
Steps to Reproduce

From exercise instruction perform all steps till the section "Add sources to the knowledge base".
While performing step 4 from the section "Edit the knowledge base" verify the environment with instructions https://microsoftlearning.github.io/mslearn-ai-language/Instructions/Exercises/02-qna.html

Screenshots

fixed with 4034079, thanks for reporting


Dependency loop with Omniwood, Omnienergy and Omnicrystal

Mod source
Factorio Mod Portal
Which mod are you having an issue with?

[ ] pyalienlife
[ ] pyalternativeenergy
[ ] pycoalprocessing
[ ] pyfusionenergy
[ ] pyhightech
[ ] pyindustry
[ ] pypetroleumhandling
[X] pypostprocessing
[ ] pyrawores

Operating system

=Windows 10

What kind of issue is this?

[ ] Compatibility
[ ] Locale (names, descriptions, unknown keys)
[ ] Graphical
[ ] Crash
[ ] Progression
[ ] Balance
[X] Pypostprocessing failure
[ ] Other

What is the problem?
https://i.imgur.com/eElzdib.png
Steps to reproduce
No response
Additional context
No response
Log file
No response

The dependency loop error was fixed with pyPP's cache changes. Also, Omniwood is marked as incompatible with the pY suite.
Omni-py compatibility is handled mostly on their side.
Closing this.


Warnings about deprecated function

I'm getting the following warning about substring(to: ) being deprecated.

'substring(to:)' is deprecated: Please use String slicing subscript with a 'partial range upto' operator.

It's inside the readResponse() function
if let r = line.range(of: ":") {
    key = trim(line.substring(to: r.lowerBound))
    value = trim(line.substring(from: r.upperBound))
}

I think the fix according to https://stackoverflow.com/questions/45562662/how-can-i-use-string-slicing-subscripts-in-swift-4 is:
if let r = line.range(of: ":") {
    key = trim(String(line[..<r.lowerBound]))
    value = trim(String(line[r.upperBound...]))
}

Wish I read this before I just submitted the same issue. Should I keep it open because it has not been fixed ?


load_qa_with_sources_chain  with custom prompt

I want to use qa chain with custom system prompt
template = """
You are an AI assis
"""
system_message_prompt = SystemMessagePromptTemplate.from_template(template)
chat_prompt = ChatPromptTemplate.from_messages(
    [system_message_prompt])

llm = ChatOpenAI(temperature=0.4, model_name='gpt-3.5-turbo', max_tokens=2000,
                 openai_api_key=OPENAI_API_KEY)

# chain = load_qa_chain(llm, chain_type='stuff', prompt=chat_prompt)

chain = load_qa_with_sources_chain(
    llm, chain_type="stuff", verbose=True, prompt=chat_prompt)

I am geting this error
pydantic.error_wrappers.ValidationError: 1 validation error for StuffDocumentsChain
__root__
  document_variable_name summaries was not found in llm_chain input_variables: [] (type=value_error)

how was this fixed ?

@notedit Can you tell us your solution please?

I'm having a similar problem.


extracting cfp to its own page

Add a CFP menu
Move CFP out of home page to a dedicated page
link Tremplin page to CFP menu
link CFP page to CFP menu

Looks good to me...


feat: Return Kafka admin server URL in kas-fleet-manager Kafka Resource.

Description
Return Admin Server URL as it is currently being manually constructed
MGDSTRM-8163
Note:
The Admin Server URL will only be returned when a kafka is in a ready status.
Verification Steps

Create a cluster on OpenShift or with CRC
Deploy kas-fleet-manager

To get the kafka information,you may run:
curl -v -XGET -H "Authorization: Bearer $(ocm token)" http://localhost:8000/api/kafkas_mgmt/v1/kafkas/<kafkaID> | jq
Once "status": "ready", your output should look like this:
{
"id": "ca6ao5f13honsptlr6mg",
"kind": "Kafka",
"href": "/api/kafkas_mgmt/v1/kafkas/ca6ao5f13honsptlr6mg",
"status": "ready",
"cloud_provider": "aws",
"multi_az": true,
"region": "us-east-1",
"owner": "egallina_kafka_service",
"name": "serviceapi",
"bootstrap_server_host": "[serviceapi-ca-ao-f--honsptlr-mg.kas.egallina-kfm.qgrd.s1.devshift.org:443](http://serviceapi-ca-ao-f--honsptlr-mg.kas.egallina-kfm.qgrd.s1.devshift.org:443/)",
"admin_api_server_url": "http://admin-server-serviceapi-ca-ao-f--honsptlr-mg.kas.egallina-kfm.qgrd.s1.devshift.org/",
"created_at": "2022-05-24T10:57:41.45165+01:00",
"updated_at": "2022-05-24T11:05:44.178069+01:00",
"version": "3.0.1",
"instance_type": "standard",
"instance_type_name": "Standard",
"reauthentication_enabled": true,
"kafka_storage_size": "1000Gi",
"browser_url": "http://localhost:8080/ca6ao5f13honsptlr6mg/dashboard",
"size_id": "x1",
"ingress_throughput_per_sec": "50Mi",
"egress_throughput_per_sec": "100Mi",
"total_max_connections": 3000,
"max_partitions": 1500,
"max_data_retention_period": "P14D",
"max_connection_attempts_per_sec": 100
}

Note:
This is the URL we have returned:
+ "admin_api_server_url": "http://admin-server-serviceapi-ca-ao-f--honsptlr-mg.kas.egallina-kfm.qgrd.s1.devshift.org/",

Check the Database:
You may also check that the url has been added to the database in the kafka_requests table as admin_api_server_url

To access the database, run make db/login.
To pull the contents of admin_api_server_url, run select admin_api_server_url from kafka_requests;
Your output should look as follows:

                                   admin_api_server_url
-------------------------------------------------------------------------------------------
 http://admin-server-serviceapi-ca-afhv--hol-rnheg-g.kas.egallina-kfm.qgrd.s1.devshift.org
(1 row)

Checklist (Definition of Done)

[ ] All acceptance criteria specified in JIRA have been completed
[ ] Unit and integration tests added that prove the fix is effective or the feature works (tested against emulated and non-emulated OCM environment)
[ ] Documentation added for the feature
[ ] CI and all relevant tests are passing
[ ] Code Review completed
[ ] Verified independently by reviewer
[ ] All PR comments are resolved either by addressing them or creating follow up tasks
[ ] Required metrics/dashboards/alerts have been added (or PR created).
[ ] Required Standard Operating Procedure (SOP) is added.
[ ] JIRA has been created for changes required on the client side

Great work on this @VanillaSpoon!
Because the admin_api_server_url is not required, if it's empty, this field isn't going to be included in the response. Once the kafka is in a ready state, only then it will appear in the response. Might be good to confirm this behaviour with UI/CLI team
Other than that, looks good to me +1

/cc @wtrocki @riccardo-forina FYI

Thank you for looping me in @machi1990. I think we are good with this, we show skeleton loaders for the connection details panel for a pending Kafka instance. Not getting the field should be ok.

Thanks for the great work @VanillaSpoon


[SelectField] Does not call onChange after props.value is changed and user reselects original value

let option = [option1, option2];
<SelectField
        menuItems={options}
        value={this.props.value}
        onChange={e => this.onChange(e)}/>

When the initial this.props.value is 1 and is later changed to 2 and re-rendered the onChange event is not called when the user reselects 1.

Bug appears to be here: https://github.com/callemall/material-ui/blob/master/src/drop-down-menu.jsx#L284
It's testing the value of this.state.selectedIndex which does not seem to be updated when this.props.value is updated from outside the component.


expose delete monitor api from alerting

Signed-off-by: Subhobrata Dey<EMAIL_ADDRESS>Issue #, if available:
Description of changes:
expose delete monitor api from alerting
CheckList:
[X] Commits are signed per the DCO using --signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #568 (bf4b328) into 2.x (7e812ab) will decrease coverage by 0.13%.
The diff coverage is 75.00%.

@@             Coverage Diff              @@
##                2.x     #568      +/-   ##
============================================
- Coverage     76.42%   76.28%   -0.14%
+ Complexity      116      114       -2
============================================
  Files           143      141       -2
  Lines          6969     6958      -11
  Branches        973      973
============================================
- Hits           5326     5308      -18
- Misses         1150     1153       +3
- Partials        493      497       +4

Impacted Files
Coverage Δ

.../alerting/transport/TransportIndexMonitorAction.kt
67.58% <60.00%> (ø)

...alerting/transport/TransportDeleteMonitorAction.kt
52.00% <77.77%> (-1.43%)
:arrow_down:

...n/kotlin/org/opensearch/alerting/AlertingPlugin.kt
93.50% <100.00%> (ø)

...ch/alerting/resthandler/RestDeleteMonitorAction.kt
100.00% <100.00%> (ø)

...nationmigration/DestinationMigrationCoordinator.kt
61.70% <0.00%> (-2.13%)
:arrow_down:

.../kotlin/org/opensearch/alerting/core/JobSweeper.kt
72.24% <0.00%> (-1.92%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Dismiss handlePostUnread WebSocket action is marked as unread locally

Summary
When  marking as post as unread in the same client the WebSocket event duplicates the values, this PR dismisses the WS event in case it was mark as unread on the same client.
Ticket Link
https://mattermost.atlassian.net/browse/MM-21153

@enahum
Error trying doing the automated Cherry picking. Please do this manually
+++ Updating remotes...
Fetching upstream
Fetching origin
+++ Updating remotes done...
+++ Creating local branch automated-cherry-pick-of-#1015-upstream-release-5.18-1576463254
Branch 'automated-cherry-pick-of-#1015-upstream-release-5.18-1576463254' set up to track remote branch 'release-5.18' from 'upstream'.
+++ Downloading patch to /tmp/1015.patch (in case you need to do this again)

+++ About to attempt cherry pick of PR. To reattempt:
  $ git am -3 /tmp/1015.patch

Applying: Dismiss handlePostUnread WebSocket action is marked as unread locally
Using index info to reconstruct a base tree...
M	src/actions/posts.test.js
M	src/actions/posts.ts
M	src/actions/websocket.test.js
M	src/actions/websocket.ts
Falling back to patching base and 3-way merge...
Auto-merging src/actions/websocket.ts
Auto-merging src/actions/websocket.test.js
CONFLICT (content): Merge conflict in src/actions/websocket.test.js
Auto-merging src/actions/posts.ts
Auto-merging src/actions/posts.test.js
Patch failed at 0001 Dismiss handlePostUnread WebSocket action is marked as unread locally
Use 'git am --show-current-patch' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

+++ Conflicts detected:

UU src/actions/websocket.test.js

+++ Aborting in-progress git am.

+++ Returning you to the master branch and cleaning up.


How to change gb to something else

I use gb for Go Back, so I will need to find something else for blockwise comments, probably gC. But either way I don't think I see an option in the configs for changing the mappings?

I am very sorry I am so blind


Converts project into a Lerna monorepo

Mostly there 👍
What I have done:

[x] Configured the project as a lerna monorepo, utilising a versioning system that keeps all packages on the same version number. We may want to consider moving to independent versioning.
[x] Configured yarn workspaces. Yarn workspaces is a must IMO when working with a monorepo.
[x] Created three packages:

react-automata: The core package
react-automata-test-utilities: Contains the test helper
react-automata-utilities: "Internal" utilities shared between the other packages. May want to consider a rename of this.

[x] All build/dev tools remain in root of mono repo. You build all 3 packages via the root. I kept the package.json scripts in the root and as they were in order to reduce friction with moving into the monorepo.
[x] Updated to latest version of babel to get around some issues I was having with running tests at root
[x] Updated eslint configurations

To be done:

[ ] Revise the root README
[ ] Create a README for each package?
[x] Fix the travis config
[ ] Validate publishing / versioning works as expected

Build is working, and so are the tests. 👍
Note: when performing updates across the packages you may need to perform a build prior to test. It would be cool if there was a mechanism to build on the fly whilst running tests in watch mode.
Closes #32

This is FANTASTIC, thank you very much @ctrlplusb 💖
I'll review and merge ASAP.


feat: fix sidebars not changing on theme change

when light mode, folder text should be black to make it visible

awesome, great work as always, man 👍


Include CosmosDB Table API in the decision tree

Could the data decision tree include CosmosDB Table API? I understand that it's preferred over the Azure Table Storage, but I haven't read that - for example - you should/could choose SQL API over Table API if you have simple key/value storage? It seems like it's forgotten, although I could be ignorant of some decision making.

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

ID: 88559925-9b9e-d9b3-ddb6-08306692c17b
Version Independent ID: a25055cb-7cfe-28a0-1c66-06172c037128
Content: Data store decision tree - Azure Application Architecture Guide
Content Source: docs/guide/technology-choices/data-store-decision-tree.md
Service: architecture-center
Sub-service: guide
GitHub Login: @dsk-2015
Microsoft Alias: pnp

Thanks for reporting - this issue is under review. This is a Microsoft Internal DevOps Bug ID # 382421

@reub-the-cube thanks for opening this issue. The diagram has been updated, it may take a bit to propagate through our CDN, but it's on the way.


fix: type of Pp.paragraphf and add changelog

We define the format string internally so that it can be enforced somewhat.

needs a rebase

@rgrinberg done.


Improve getting started guide and user guide docs syntax highlighting

@thockin @bgrant0607

cc @satnam6502

Please run hack/run-gendocs.sh:
1.24s$ PATH=$GOPATH/bin:./third_party/etcd:$PATH ./hack/verify-gendocs.sh
docs/getting-started-guides/fedora/fedora_ansible_config.md
----
blank-lines-surround-preformatted:
contents were modified
docs/getting-started-guides/fedora/flannel_multi_node_cluster.md
----
blank-lines-surround-preformatted:
contents were modified
docs/getting-started-guides/mesos.md
----
blank-lines-surround-preformatted:
contents were modified
docs/getting-started-guides/scratch.md
----
table-of-contents:
contents were modified
docs/getting-started-guides/vagrant.md
----
blank-lines-surround-preformatted:
contents were modified
docs/user-guide/limitrange/README.md
----
blank-lines-surround-preformatted:
contents were modified
docs/user-guide/namespaces/README.md
----
blank-lines-surround-preformatted:
contents were modified
FAIL: changes needed but not made due to --verify
/home/travis/gopath/src/github.com/GoogleCloudPlatform/kubernetes/docs/ is out of date. Please run hack/run-gendocs.sh

Thanks. Finished one pass.

Still fails hack/verify-gendocs.sh

Thanks for the very thorough set of eyes :) Updated

Thanks much. LGTM


Parameter is not valid

I want to transform a SVG coming from MatJax library in javascript.
I'm using Asp.Net and I have my controller that receives the SVG.
But when I call ..Draw(), I get an error 'Parameter is not valid'
test.svg.txt
I'm using the latest version on NuGet.
Basically, I just want a PNG image from my SVG... here is acopy of my code:
`                var svgDoc = SvgDocument.FromSvg(equation.Svg);
            var image = svgDoc.Draw();

            using (MemoryStream m = new MemoryStream())
            {
                image.Save(m, image.RawFormat);
                byte[] imageBytes = m.ToArray();

                equation.Png = Convert.ToBase64String(imageBytes);
            }

`
Am I missing something?
Thanks!

This is SVG library issue.
Image will be created by removing empty d attribute <path> as shown below.
<path id="MJX-1-TEX-N-20" d=""></path>

<path id="MJX-1-TEX-N-A0" d=""></path>

This issue will be fixed in next version.

@H1Gdev Thanks for the quick reply!
I will do what you propose and remove all empty d attribute in my SVG.
I'll let you know...


[4541] Hide HESA TRN data trainees

Context
https://trello.com/c/dkz9DVtT/4541-hide-trainees-when-they-have-only-been-requested-for-trn-via-hesa-in-register-ui-and-user-exports
Changes proposed in this pull request

Hide trainees whose record source is HESA TRN data from the UI
Ensure that we don't hide trainees with nil record_source before the backfill is run :)

Guidance to review

Check that the HESA TRN data trainee (TRN 9922817) is not in the list nor the download

Important business

[ ] ~Does this PR introduce any PII fields that need to be overwritten or deleted in db/scripts/sanitise.sql?~
[ ] ~Does this PR change the database schema? If so, have you updated the config/analytics.yml file and considered whether you need to send 'import_entity' events?~

NB: Please notify the #twd_data_insights team and ask for a review if new fields are being added to analytics.yml

 Hide trainees when they have only been requested for TRN via HESA in Register UI and User exports

This looks good to me Abi! Thanks


weird output

Hello thanks for your code. I have tried the matlab and python version. But the output is weird. I am new to it. I am using ubuntu14.04
Matlab version output:

Python version output:

Thanks @AaronJackson

@AaronJackson  sorry to bother you. I have start the matlab from command line with -softwareopengl and the output from the terminal suggests that the matlab is selecting opengl. But the output is still weird.

once a figure is displayed, try running "camlight" from the matlab command window. Maybe there is something weird with your version of matlab.

did you solve it @vanpersie32  ?
i have the exact same issue. Tried on both Windows 10 and Linux Mint 19 (Ubuntu 18.04) with gpu gtx1070, opengl 4.6


Add A/Z side circuit ID field

Issue type
[X] Feature request
Environment

Python version:  3.4.8
NetBox version:  2.3.5

Description
We have instances where the circuit ID on the Z side is different from the circuit ID of the A side.  If there was an ID field, or even an open Description/Notes for each of the termination sides, that would be helpful.

We have instances where the circuit ID on the Z side is different from the circuit ID of the A side.

These are different circuits and should be modeled as such.


from classic portal ML deleted

from classic portal ML classic web services deleted and not migrated to a new as is. instead created another type.

@SychevIgor : Thanks for your contribution to the Azure documentation! The author, @sharonlo101, has been notified to review your proposed change.

#sign-off

#sign-off

@JennieHubbard  @sharonlo101 could you advise- what else should be done to merge it?


vagrant setup installs docker 1.11 on the ubuntu VM

At the moment, the docker.sh script located at /tools/ubuntu-setup/docker.sh contains the following line:
# DOCKER
sudo apt-get install -y --force-yes docker-engine=1.11.0-0~trusty

and docker -v yields:
Docker version 1.11.0, build 4dc5990

As we are currently on Docker 1.9.1, we should adjust the local development environment accordingly, I will open a pull request for this.

Closed by #538