Fix bug where an ALTER .. RENAME after a DROP fails

Hit this issue in my dbt testing; fix was easy and I added a couple of tests that will fail without the fix.

I think this issue might be a bit more complex than it seems at first glance. The mapping is a global mapping, it's not transaction-controlled. That means that overwriting an entry in the mapping replaces that entry for all transactions. Now suppose you have the following situation:
statement ok con1
CREATE TABLE t1(i INTEGER);

statement ok con2
CREATE TABLE t2(s VARCHAR);

statement ok con2
BEGIN TRANSACTION

statement ok con2
DROP TABLE t2;

statement ok con2
ALTER TABLE t1 RENAME TO t2;

-- Eek!  t2 now refers to to t1 for con1 as well
statement ok con1
SELECT s FROM t2;

To handle this properly the mapping needs to be transaction controlled as well, because the mapping now depends on which transaction is running.

Ah, that is indeed an issue. So the fix would essentially involve making the entries in the mapping into a linked list of transaction-aware entities as well? Or is there a better way to do this that I'm not seeing?

The mapping needs to be transaction-aware indeed. Having thought about it a bit I think that that's the best option if we want to support this behavior. The mapping would need to have a similar structure to the catalog entries, where the idx_t it points to depends on the transaction.

Yep, I see it. So on my side, the hack I have in this PR fixes my issue enough for me to make progress on other dbt stuff. I am happy to take a crack at this if you are otherwise occupied, but I would certainly be more confident as a user of DuckDB if this was something you implemented. ;-)

I will open an issue and get to it later on, but feel free to tackle it yourself. I don't think it's crazy difficult, but it's not entirely trivial either and requires some knowledge of how the MVCC works.

Sounds great- thanks!

Will close this PR for now, feel free to re-open if you want to work on the MVCC-related adjustments :)


change  fontFamily with Microsoft Yahei for  Line feed length   error

monaco-editor version: 0.16.2
Browser:
OS:
Steps or JS usage snippet reproducing the issue:
I  use   api  editor.updateOptions({ fontFamily:‘Microsoft Yahei’ }),
after updating the font Line feed length error with in Out of the screen for after
editor.config：
wordWrap: 'bounded',

Input  content   ‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@’
compute  Line feed length error

@tongbinzuo I cannot reproduce what you describe. I have executed the following sample:
const editor = monaco.editor.create(document.getElementById("container"), {
	value: "function hello() {\n\talert('Hello world!');\n}",
	language: "javascript"
});
editor.updateOptions({ fontFamily: "Microsoft Yahei" });

at https://microsoft.github.io/monaco-editor/playground.html and it works for me:

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


fileReplacements not working as expected

🐞 bug report
The previous version in which this bug was not present was: 8.x
Description
I'm using firebase messaging service for notification and i have 3 environments [dev-tst-liv] each of them has a seperate firebase project and also seperate configuration in firebase-messaging-sw.js file
before in 8 version i was able to use this syntax

and it was working well changing manifest and js file
in angular 9 this is not working as before it just got the basic file from assets and dont replace it
i read that the fileReplacements not intend to change the assets file so what cai i do there
🌍  Your Environment
Angular Version:

Angular CLI: 9.1.1
Node: 12.16.2
OS: linux x64

Angular: 9.1.1
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.7
@angular-devkit/build-angular     0.900.7
@angular-devkit/build-optimizer   0.900.7
@angular-devkit/build-webpack     0.900.7
@angular-devkit/core              9.0.7
@angular-devkit/schematics        9.1.1
@angular/fire                     5.4.2
@ngtools/webpack                  9.0.7
@schematics/angular               9.1.1
@schematics/update                0.901.1
rxjs                              6.5.5
typescript                        3.7.5
webpack                           4.41.2

Duplicate of https://github.com/angular/angular-cli/issues/16779
See: https://github.com/angular/angular-cli/issues/16779#issuecomment-579183693 for a supported alternate approach.

no it's not the same issue

@OmarioHasan, why isn’t it the same issue? Aren’t the above files assets?

I count that I've to repeat the assets in every environment and change the .is file is that the solution to repeat the assets


Tasks/samples.harness

This pull request improve the ability for test framework to comprehend and confirm that test runs on two sample tests do cover all important areas in the test cases. With a more verbose output, it is also easier to identify which part of the test had failed.
This PR was developed when it was noted that the two test cases in samples/subsys/usb/cdc_acm did not produce the correct result in a few circumstances:
(1) It was demonstrated that if the test run got stuck between  "Waiting for DTR" and "DTR set, start test", the testcase "usb.cdc-acm" incorrectly passed because it was only looking for the string "Wait for DTR".
(2) testcase "usb.cdc-acm_comp" was setup wrongly. It was setup to detect the end of the test case but the last "while(1)" loop had ensured that in the test run will not exit and the test case will not end. If the test run did exit, it is actually a failure.
samples/subsys/usb/cdc_acm_composite exibit similar behaviour as samples/subsys/usb/cdc_acm and was updated.

Codecov Report

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

@@            Coverage Diff            @@
##             master   #13676   +/-   ##
=========================================
  Coverage          ?   52.48%
=========================================
  Files             ?      329
  Lines             ?    46910
  Branches          ?    10811
=========================================
  Hits              ?    24621
  Misses            ?    17352
  Partials          ?     4937

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ccad9d0...ee1e765. Read the comment docs.

After reviewing the PR with @finikorg, it is clear that the existing implementation is less likely to cause test automation to report false positive. As such, this PR is withdrawn


Fixes the performance on cosine metric

Fixes #58

Coverage remained the same at 93.171% when pulling 1e65bda48d4854a44f9d0da19952e3e2e3589054 on brunoalano:master into f7c85466e3019dbac12821b6d20b9afae1f2f946 on lmcinnes:master.

Thanks!


fix: add simple example to Project Euler: Problem 2 challenge

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 master branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #38753

LGTM 👍 . Please be aware: There is a merge freeze for almost all PRs. So, once that has been lifted, and this gets a second approval, then this PR can be merged.
Also, for future PRs, when someone makes a Review Request, often you can just click the Commit Suggestion button attached to the message, and the commit will be done automatically. It is just easier.

Noted. Thanks so much for your help with this.  I really appreciate it

@tosinibrahim96 Thank you for the work you put into this PR.  Although there was some discussion on issue https://github.com/freeCodeCamp/freeCodeCamp/issues/38753 regarding changing the wording, it was later decided in the same issue to not add/change any wording of the challenge and instead create an additional test.  Unfortunately, no one noticed this PR was created before another PR (#39221) was approved and merged that just added the additional test discussed in the issue.
We still appreciate your efforts and hope to see future contributions from you.  For now, we are closing this PR.
Thank you for understanding.


Pasting file from Remote Desktop to local PC causes crash

Describe the bug
If I am connected to a remote PC through Remote Desktop Connection, and I copy a file from that remote PC, then try to paste  it in this app on the local PC, this app will crash.
To Reproduce
Steps to reproduce the behavior:

Connect to Remote PC via Remote Desktop Connection
Copy file from Windows Explorer on Remote PC
Open Files app on Local PC
Navigate to a directory (I navigated to the Desktop directory)
Right-click on background to open context menu
Click Paste
Observe crash

Expected behavior
I would expect a normal file copy operation to happen.
Screenshots
N/A
Desktop (please complete the following information):

OS Version: Windows 10 20H2 19042.572
App version: v<IP_ADDRESS>

Additional context
N/A
Log file
debug.txt

Thanks for this feedback! Sadly common issue, merging with #2023


Use API and AUTH_SERVER env.variables

Signed-off-by: Hristo Iliev<EMAIL_ADDRESS>

Coverage remained the same at 90.071% when pulling ee01219925f8d4367945db470f8cae580781280a on SAP:api_uaa_variables into<PHONE_NUMBER>3e77e21302cc0f41ba62af09a8c00e on cloudfoundry-incubator:master.


You can reload with R even if swb_sv_autoreload already triggered reload

Can basically trigger a double reload

Seems to be working now, not sure what went wrong.


[OSS101] Task 5: Display Community OpenRank

Brief Information
This pull request is in the type of (more info about types):

[ ] build
[ ] ci
[ ] docs
[x] feat
[ ] fix
[ ] perf
[ ] refactor
[ ] test

Related issues (all available keywords):

Resolves #809

Details

Add two features of the community OpenRank network and the community OpenRank racing bar to the perceptor page.

Two folders, community-openrank-network and community-openrank-racing-bar, have been added to the project src/pages/ContentScripts/features directory
The api file community.ts for obtaining community OpenRank data has been added to the project src/api directory
The Chinese and English title and description fields for the two newly added features have been added to the translation.json file in the src/locales/en and src/locales/zh_CN directories of the project respectively
The final looks:

Checklist

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA

Others

N.A.

Would it be better to compare similar items in racing bar, such as comparing people to people, comparing PR to PR, and so on. Perhaps a selection box can be added to choose between different categories, or in other ways.

Hi~@Fiveneves Thank you for your detailed work.  From your commit flow, it can be seen that you take this task seriously.

Would it be better to compare similar items in racing bar, such as comparing people to people, comparing PR to PR, and so on. Perhaps a selection box can be added to choose between different categories, or in other ways.

Okay, I'll try to change it

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: Fiveneves:x: reset0514You have signed the CLA already but the status is still pending? Let us recheck it.

@wangyantong2000 Hi~All the problems mentioned above have been resolved, and the final look as shown in the demo gif below.

Sorry for not replying to this PR for a long time. This task was completed very well. The task is to design and develop features related to Community OpenRank. The final form you presented is good. Just because the previous similar function was to directly request the obtained data. And the data for this feature was not directly provided. You can also see that you organize the relevant data by yourself, and there may be situations where there is no data according to the default dates set in the code, such as some new warehouses. So this PR may not be merged into the main repository temporarily. But this is due to data level issues, which does not prevent it from being a good final assignment. You have successfully and well completed this assignment.

Sorry for not replying to this PR for a long time. This task was completed very well. The task is to design and develop features related to Community OpenRank. The final form you presented is good. Just because the previous similar function was to directly request the obtained data. And the data for this feature was not directly provided. You organize the relevant data by yourself, and there may be situations where there is no data according to the default dates set in the code, such as some new warehouses. So this PR may not be merged into the main repository temporarily. But this is due to data level issues, which does not prevent it from being a good final assignment. You have successfully and well completed this assignment.

If there are some cases that data is not provided, we should handle it properly in this feature. This feature is supposed to be independant.


Add grafana including example dashboard for 'podinfoes'

make deploy-prometheus
make deploy-grafana
make demo

Grafana requires to do port-forwarding, perhaps in the future PR we could improve it a bit and open the port in k3d config
Signed-off-by: Jirka Kremser<EMAIL_ADDRESS>

I've added one more commit (the previous is the same) that removed pod name from the PR. The json was exported from the web ui, so I missed it, nice catch @kuritka
I wanted to split it to make the review easier (old part has already been approved)
pls check also https://github.com/k8gb-io/k8gb/pull/653/commits/94c5105b47cb40bef1b9015f4c4b20e8538176f5
if we use squash and merge, this will end up as 1 commit


Clarify: node out of consensus

After running the debian based container in the ID Union Test Network for a few days, the node is now out of consensus ("3.0"). Maybe the Pypi package should be replaced by the deb package for indy node 1.12.4, also adressing the missing init script issue https://github.com/IDunion/indy-node-container/issues/3

Just to let you know - I've been running a local test network (4 nodes on the same docker host) for more then 7 days now and I don't see any problems.

update: switching back to an old ubuntu 16 image ultimately resolved the problem, so the Problem DOES seem to be related to our image. https://hackmd.io/GSJnYPt0Q9yFKgoNGWtcMw?view

To me, the most suspicios part are the pypi packages in our image VS the deb packages in the working one. More investigations needed here.

It seems more and more likely, that the current ubuntu 18 and debian images are not in write consensus with the ubuntu 16 node 12.4.3. IFIS has similar problems with the ubuntu 18 node in the IDU networ.
Clarification: :heavy_check_mark:
-> fix images!

Current state (see also https://github.com/IDunion/indy-node-container/issues/38 ): the consensus problems might be related to different libsodium/libssl versions. Sometime a container build with the new libs runs for a while before the consensus problem occurs (happened with the node 1.13 dev ubuntu 20 container in the ID Union test network and before also for the node 1.12.4 debian container).

@Echsecutor - I am running the Ubuntu18 build and running into a consensus issue - should I be moving to the unbuntu20 container or is there a way to confirm that the libs are the correct version in the ubuntu18 build?

@m-madore the Ubuntu18 build uses the same (old) libraries as the Ubuntu16 build - so there shouldn't be any consensus problems. Can you please create an issue with more information and details from the log?


Test: Add test for Any in where clause with other conditions translat…

…e to Exists only
Add test for #4877

:shipit:


Device Request - [Device name] - [manufacturerName] / [modelId]

Prerequisites:

Before requesting a device addition, please ensure there is not already a request for the device among the open issues.
Make sure your Homey is upgraded to firmware v5 or higher.
You need a physical example of the device

Device Name: Temperature & Humidity Sensor
Device Model: ZN373186801 OR 5A1-01A1-01
Device Description: Temperature and Hygrometry Sensor
Link to device image: https://fr.aliexpress.com/item/1005003707857013.html?spm=a2g0o.order_list.order_list_main.20.768178b5xmOh0C&gatewayAdapt=glo2fra)
Device Interview:
Dry place
Additional Comments:
Shop Aliexpress
How to interview a device:
"ids": {
"modelId": "TS0201",
"manufacturerName": "_TZ3000_xr3htd96"
},
"endpoints": {
"ieeeAddress": "a4:c1:38:3a:64:16:af:c1",
"networkAddress": 25720,
"modelId": "TS0201",
"manufacturerName": "_TZ3000_xr3htd96",
"endpointDescriptors": [
{
"status": "SUCCESS",
"nwkAddrOfInterest": 25720,
"_reserved": 24,
"endpointId": 1,
"applicationProfileId": 260,
"applicationDeviceId": 770,
"applicationDeviceVersion": 0,
"_reserved1": 1,
"inputClusters": [
1,
3,
1026,
1029,
0
],
"outputClusters": [
3,
25,
10
]
}
],
"deviceType": "enddevice",
"receiveWhenIdle": false,
"capabilities": {
"alternatePANCoordinator": false,
"deviceType": false,
"powerSourceMains": false,
"receiveWhenIdle": false,
"security": false,
"allocateAddress": true
},
"extendedEndpointDescriptors": {
"1": {
"clusters": {
"powerConfiguration": {
"attributes": [
{
"acl": [
"readable",
"reportable"
],
"id": 0,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 32,
"name": "batteryVoltage",
"value": 30,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 33,
"name": "batteryPercentageRemaining",
"value": 200,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 65533,
"name": "clusterRevision",
"value": 1,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
}
]
},
"identify": {
"attributes": []
},
"temperatureMeasurement": {
"attributes": [
{
"acl": [
"readable",
"reportable"
],
"id": 0,
"name": "measuredValue",
"value": 2191,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 1,
"name": "minMeasuredValue",
"value": 1685,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 2,
"name": "maxMeasuredValue",
"value": 2600,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 65533,
"name": "clusterRevision",
"value": 2,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
}
]
},
"relativeHumidity": {
"attributes": [
{
"acl": [
"readable",
"reportable"
],
"id": 0,
"name": "measuredValue",
"value": 4055,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 1,
"name": "minMeasuredValue",
"value": 3519,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 2,
"name": "maxMeasuredValue",
"value": 4055,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 65533,
"name": "clusterRevision",
"value": 2,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
}
]
},
"basic": {
"attributes": [
{
"acl": [
"readable",
"reportable"
],
"id": 0,
"name": "zclVersion",
"value": 3
},
{
"acl": [
"readable",
"reportable"
],
"id": 1,
"name": "appVersion",
"value": 70
},
{
"acl": [
"readable",
"reportable"
],
"id": 2,
"name": "stackVersion",
"value": 0
},
{
"acl": [
"readable",
"reportable"
],
"id": 3,
"name": "hwVersion",
"value": 1
},
{
"acl": [
"readable",
"reportable"
],
"id": 4,
"name": "manufacturerName",
"value": "_TZ3000_xr3htd96"
},
{
"acl": [
"readable",
"reportable"
],
"id": 5,
"name": "modelId",
"value": "TS0201"
},
{
"acl": [
"readable",
"reportable"
],
"id": 6,
"name": "dateCode",
"value": ""
},
{
"acl": [
"readable",
"reportable"
],
"id": 7,
"name": "powerSource",
"value": "battery"
},
{
"acl": [
"readable",
"writable",
"reportable"
],
"id": 65502
},
{
"acl": [
"readable",
"reportable"
],
"id": 65533,
"name": "clusterRevision",
"value": 2
},
{
"acl": [
"readable",
"reportable"
],
"id": 65534,
"name": "attributeReportingStatus",
"value": "PENDING"
},
{
"acl": [
"readable",
"reportable"
],
"id": 65506
},
{
"acl": [
"readable",
"reportable"
],
"id": 65507
}
]
}
},
"bindings": {
"identify": {
"attributes": []
},
"ota": {},
"time": {}
}
}
}
}
Note: To be able to add more devices to the Tuya Zigbee app, we rely on community members like you to provide interviews of the devices you want added. Thank you for your contribution!

same as #371, #326, #452 and it is already implemented just not released in the live version.

Effectively. I made a mistake when connecting the temperature and humidity sensors. Everything works wonderfully on the Homey. Please forgive me for taking up your time for nothing. Thank you ;)


[Question] What should the final API/interface be?

I think this would be a good place to decide on what the final API for vis_cpu/gpu should be, and what their relationship should be.

Passing in array of freq?
What constraints on how much of a subset gpu is of cpu?
Polarization?
Analytic beams?

Calling in @AaronParsons, @philbull and @hughbg to discuss this.
It would be really neat if we could settle on an API before publishing a "v1.0.0" of vis_cpu. Of course, it can be updated in the future, but it would be good to have something that we think is pretty stable (for the core engine).
Here's my thoughts at the moment:

Concerning frequencies: I have nothing against doing the frequency loop inside the core engine since that might help with some caching. However, I see two potential problems. One is that it makes it less obvious to the outsider that the vis_cpu algorithm is doing the frequency loop last -- to the user they're all just in there somewhere. But this can be documented. Secondly, having the ability to cache things is nice, but it then brings up questions of how much/what to cache which we have to deal with in the core engine rather than in the wrapper. Maybe this isn't a massive concern though.
I think we should keep the implementations in the following way: the _cpu function should support all functionality. The _gpu should support a subset of the functionality (no extra functionality). The API should be such that they both have exactly the same possible inputs and defaults. However, inside the GPU function, where certain values to certain parameters aren't supported, it should raise a custom error (eg. NoGPUSupport) that can be caught easily by outside code. This means the flagship implementation can be a little more general and support some useful cases (like analytic beams for example), but that they can never diverge too far. This should be consolidated and maintained in tests.
I would urge that we update the API a little in terms of parameter names in the core engine. Some of them are in a "short" notation that I think is less clear than longer names.
I vote that we definitely put polarization (i.e. #8 ) into the code, both in cpu and gpu.
I'm personally fine with analytic beams for _cpu so long as we gracefully exit from GPU if they are passed.
Something to think more in-depth about would be @hughbg's code to update the astropy coordinate calculations. In principle, this should just apply to the wrapper, which can pre-compute the coordinate matrices. However, I think one thing he does there is to have a clever way of caching those results to speed some things up. This might be problematic for GPU code (not sure), and is also a lot more code overhead to maintain. I think maybe it would be good if @hughbg could show us how much of a performance benefit there is to those calculations being cached, and we can decide from there?


[Bug]: SYS.INDEXES does not work properly

What happened?
we use the SYS.INDEXES table during our update process, but it seems that babelfish is not converting the names correctly.
see example
Script
use [master]
drop database if exists index_testes
create database index_testes

use [index_testes]

CREATE TABLE [dbo].[ESTOQUE_EMPRESA](
	[R_E_C_N_O_] [int] IDENTITY(1,1) NOT NULL,
	[CODIGO] [varchar](50) NULL,
	[Id] [uniqueidentifier] NOT NULL,
	CONSTRAINT [PK_ESTOQUE_EMPRESA] PRIMARY KEY CLUSTERED
	(
		[R_E_C_N_O_] ASC
	),
	UNIQUE NONCLUSTERED
	(
		[Id] ASC
	)
)
GO

CREATE NONCLUSTERED INDEX [IX_ESTOQUE_EMPRESA_CODIGO] ON ESTOQUE_EMPRESA ([CODIGO])
GO

IF NOT EXISTS (SELECT TOP 1 1 FROM SYS.INDEXES WHERE NAME = 'IX_ESTOQUE_EMPRESA_CODIGO')
BEGIN
  CREATE NONCLUSTERED INDEX [IX_ESTOQUE_EMPRESA_CODIGO] ON ESTOQUE_EMPRESA ([CODIGO])
END
GO

use [master]
GO

fails with
Msg 2714, Level 16, State 1, Line 27
relation "ix_estoque_empresa_codigoestoquab8ae8734a5c39898c705577384d1f72" already exists
it is also worth to mention that we are using BABEL_4_X_DEV branch
Version
BABEL_3_X_DEV (Default)
Extension
babelfishpg_tsql (Default)
Which flavor of Linux are you using when you see the bug?
Ubuntu (Default)
Relevant log output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct.

Hi, the last command should work in this form (computing actual index name, see details in wiki):
IF NOT EXISTS (SELECT TOP 1 1 FROM SYS.INDEXES WHERE NAME = sys.babelfish_truncate_identifier(lower('IX_ESTOQUE_EMPRESA_CODIGO' + 'ESTOQUE_EMPRESA') + md5(lower('IX_ESTOQUE_EMPRESA_CODIGO'))))
BEGIN
  CREATE NONCLUSTERED INDEX [IX_ESTOQUE_EMPRESA_CODIGO] ON ESTOQUE_EMPRESA ([CODIGO])
END
GO

Minor correction, to get correct mangled index or constraint name it is necessary to apply babelfish_truncate_identifier to index and table names before concatenation:
select sys.babelfish_truncate_identifier(
    sys.babelfish_truncate_identifier(lower('idx_or_constraint_name')) +
    sys.babelfish_truncate_identifier(lower('table_name')) +
    md5(sys.babelfish_truncate_identifier(lower('idx_or_constraint_name'))))

This is also affecting my application (we are using BABEL_4_X_DEV).
While the workaround provided by @staticlibs works, it's not ideal for my case, as the migration scripts need to be shared between a Babelfish instance and a SQL Server one.
A fix is planned for this issue or this workaround is the way for now?

@PauloHMattos portable DB migration scripts for both Babelfish and MSSQL can work reasonably well with current name mangling, see details in these issues - 1, 2.


Software Developer with 58 years of Development Experience, but there is still a lot I do not know

? chrW("&H"+HexNumber) where HexNumber is like 0689 works well in a textbox or a listbox as long as one is using a font like Lucida Sans Unicode, but that expression does not work in the immediate window or the Watch window.  My application processes both English and some foreign language.  I need to see both in these windows to debug my complex application. How do I do this?

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

ID: 9e450c87-ab09-6a2b-3c9b-f5b3169f2e36
Version Independent ID: 7ea3a4f9-74f8-a4c6-00b2-c7f5705ac6c5
Content: Use the Immediate Window
Content Source: Language/Reference/User-Interface-Help/use-the-immediate-window.md
Product: office
GitHub Login: @o365devx
Microsoft Alias: o365devx

@LittleNorm Thanks for your feedback. We use Github issues for documentation bugs, not for developer support. Please try the VBA developer community on Stack Overflow (https://stackoverflow.com/questions/tagged/vba) where you can get help from actual developers. If you find a bug in our documentation, please let us know! Thanks!

@LittleNorm the IDE toolwindows only handles ANSI encoding, and will render such characters as question marks. You can find how to write unicode characters to a text file on Stack Overflow, and use that knowledge to implement a logger functionality (e.g. by extending this code) with some UnicodeFileLogger class, that makes it easier to diagnose problems in your code.


Add an alias to map image_whitelist to imageWhitelist

There didn't seem to be a natural place to put this, so I added a new aliases module that would define getter/setters that map old property names to the new ones.
@matthijsgroen

Should the deprecation also issue a warning on the console?

Was wondering that myself, but I think this is ok for a pre-release fix.  I figured one benefit to making the aliasing quasi-generic is so we can go back and add this in once we have some sort of official deprecation policy.

:+1:


Broken Links in Footer

Describe the bug
The following links are not redirecting to the required pages.

Github Link

Linkedin Link

To Reproduce
Steps to reproduce the behavior:

Go to Footer
Click on Github and Linkedin icon
Scroll down to the bottom of the page
See error

Expected behavior
On clicking the link it should redirect to the girlsscript github and linkedin page.
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Please assign me this issue.

@smaranjitghose can I work on it ?

@shreyakapoor08 the team is working on shifting the GitHub and LinkedIn to new Ids, so its an internal issue


whitespace_after_comma_in_array - how can format them to just only one white space?

I know whitespace_after_comma_in_array means In array declaration, there MUST be a whitespace after each comma.
But if I have many whitespaces after comma, how can format them to just only one white space?
I am using VSCode win32-x64-1.28.2 with PhpCsFixer plugin config like this
return PhpCsFixer\Config::create()
    ->setRules([
        '@PSR2'           => true,
        '@PHP71Migration' => true,

        'array_indentation'          => true,
        'array_syntax'               => ['syntax' => 'short'],
        'combine_consecutive_unsets' => true,
        'method_separation'          => true,
        'single_quote'               => true,

        'no_multiline_whitespace_before_semicolons' => true,

        'binary_operator_spaces' => [
            'default' => 'align_single_space_minimal'
        ],
        'braces' => [
            'allow_single_line_closure'                   => true,
            'position_after_anonymous_constructs'         => 'same',
            'position_after_functions_and_oop_constructs' => 'same'
        ],
        'cast_spaces' => [
            'space' => 'none'
        ],
        'concat_space'            => ['spacing' => 'one'],
        'declare_equal_normalize' => true,
        'function_typehint_space' => true,
        'hash_to_slash_comment'   => true,
        'include'                 => true,
        'lowercase_cast'          => true,
        'no_extra_consecutive_blank_lines' => [
            'curly_brace_block',
            'extra',
            'parenthesis_brace_block',
            'square_brace_block',
            'throw',
            'use',
        ],
        'no_multiline_whitespace_around_double_arrow' => true,

        'no_spaces_around_offset'             => true,
        'no_whitespace_before_comma_in_array' => true,
        'whitespace_after_comma_in_array'     => true,
        'trim_array_spaces'                   => true,
        'no_whitespace_in_blank_line'         => true,
        'object_operator_without_whitespace'  => true,

        'single_blank_line_before_namespace' => true,

        'ternary_operator_spaces' => true,

        'unary_operator_spaces' => true,
    ])
    ->setLineEnding("\n");

My code:
Input:
$test = [
    'text' => 'Data: ' . json_encode(['a' => $a,                        'b' => $b,                        'c' => $c], JSON_UNESCAPED_UNICODE)
];

Wanted output:
$test = [
    'text' => 'Data: ' . json_encode(['a' => $a, 'b' => $b, 'c' => $c], JSON_UNESCAPED_UNICODE)
];

Thanks so much

Hi @EnvySky ,
Currently the rule whitespace_after_comma_in_array only makes sure that there is spacing after the comma, but not what the spacing looks like.
At first glance it makes sense to adjust the rule so it will (optional); make sure the spacing it is only a single space (if not followed by a comment), or the spacing starts with a line break.
However I didn't check for possible conflicting rules yet.

Thank you for your confirmation.
I can config to format like that with PHPStorm but not with VSCode. Hope this feature request can be complete soon.

Support for this has been added in https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/6527 by @kubawerlos  :+1:
So now you can use whitespace_after_comma_in_array with the option 'ensure_single_space' => true for this, please check if it works for you @hknguyenvu , I suggest closing this issue.

Yes, thank you so much 👍


version 7.1.3 want to know what willDisplay is used for

what willDisplay is used for ?
what is cellForItemAt used for ?

cellForItemAt is used the same way as any other UICollectionView or UITableView in iOS.
The video list located here will help you on this -> https://www.youtube.com/watch?v=wyh_DVFeH_w&list=PLpqJf39XekqyUG7dxcqGO0JNprryysv9Q
willDisplay was newly introduced in version 7.1.0. It should contain the same code as the cellForItemAt function. The reason why it was implemented and what you need to put in it is explained here -> https://github.com/patchthecode/JTAppleCalendar/issues/553
Let me know if this helped.


Loading PL model from checkpoint with only weights

Hello,
How to properly load the PL model when ModelCheckpoint has save_weights_only=True ?

it just save the weights, so all you need to do is:
model = LitModule.load_from_checkpoint(ckpt_path_with_only_saved_weights)

it just save the weights, so all you need to do is:
model = LitModule.load_from_checkpoint(ckpt_path_with_only_saved_weights)

My Lit module looks like:
class LitModule(LightningModule):

    def __init__(self, hparams):
        super(LitModule, self).__init__()
        self.hparams = hparams
        # loading huggingface pretrained transformer
        self.x1_encoder = BertModel.from_pretrained(hparams.architecture, hparams.output_attentions)
        self.x2_encoder = BertModel.from_pretrained(hparams.architecture, hparams.output_attentions)

where hparams is a dictionary containing the hyperparameters of the model loaded via Hydra config.
This model does not need to export attentions (hparams.output_attentions is False) during training step but this is necessary during inference (hparams.output_attentions is True) after having the checkpoint loaded.
Then, would it be possible to pass a different hparams when loading the checkpoint?

My Lit module looks like:
class LitModule(LightningModule):

    def __init__(self, hparams):
        super(LitModule, self).__init__()
        self.hparams = hparams
        # loading huggingface pretrained transformer
        self.x1_encoder = BertModel.from_pretrained(hparams.architecture, hparams.output_attentions)
        self.x2_encoder = BertModel.from_pretrained(hparams.architecture, hparams.output_attentions)

where hparams is a dictionary containing the hyperparameters of the model loaded via Hydra config.
This model does not need to export attentions (hparams.output_attentions is False) during training step but this is necessary during inference (hparams.output_attentions is True) after having the checkpoint loaded.
Then, would it be possible to pass a different hparams when loading the checkpoint?

not familier with Hydra, but maybe try:
model = LitModule.load_from_checkpoint(ckpt_path, output_attentions=True)

not familier with Hydra, but maybe try:
model = LitModule.load_from_checkpoint(ckpt_path, output_attentions=True)

It works, however hparams is a dictionary that defines a series of hyperparameters and is loaded from yaml file using hydra (has been hydra removed from the PL?). So, I found the following solution:
def inference_step(hparams):
  model = LitModule.load_from_checkpoint(
          checkpoint_path=hparams.model.checkpoint_path,
          **hparams.model # nested dict with model hyperparameters
  )
...

It works, however hparams is a dictionary that defines a series of hyperparameters and is loaded from yaml file using hydra (has been hydra removed from the PL?). So, I found the following solution:
def inference_step(hparams):
  model = LitModule.load_from_checkpoint(
          checkpoint_path=hparams.model.checkpoint_path,
          **hparams.model # nested dict with model hyperparameters
  )
...

Hey @celsofranssa,
  model = LitModule.load_from_checkpoint(
          checkpoint_path=hparams.model.checkpoint_path,
          **hparams.model # nested dict with model hyperparameters
  )

seems good to me !
Closing this issue for now.
Best,
T.C

Hey @celsofranssa,
  model = LitModule.load_from_checkpoint(
          checkpoint_path=hparams.model.checkpoint_path,
          **hparams.model # nested dict with model hyperparameters
  )

seems good to me !
Closing this issue for now.
Best,
T.C

It works, however hparams is a dictionary that defines a series of hyperparameters and is loaded from yaml file using hydra (has been hydra removed from the PL?). So, I found the following solution:
def inference_step(hparams):
  model = LitModule.load_from_checkpoint(
          checkpoint_path=hparams.model.checkpoint_path,
          **hparams.model # nested dict with model hyperparameters
  )
...

This is a very good solution!


accuracy() error

Hi, I got this error accuracy() missing 1 required positional argument: 'task' when training the model. How to fix this error?

Can you check the lib compatibility first? You could print the versions loaded into the package and see if it is the same.
@biharicoder

TorchMetrics has been updated.
To fix the above error, I used these codes train_accuracy = correct(preds, targets, task="binary") and test_accuracy = accuracy(preds, targets, task="binary").
See doc: https://torchmetrics.readthedocs.io/en/stable/classification/accuracy.html#


Add an adapter list

It should show a list of the network adapters installed and their corresponding IP address in a user's PC and allow the user to select which one to use as the server.

This one is still useful in case a user is using ZeroTier to share his/her PC over the Internet.

yes. I need to look deeper in the winsock2 documentation. Not sure when this will be done.


Data.write fails with EINVAL when writing 2GiB or more

On Darwin, at least, we need to limit the size of each chunk to 2GB. Other platforms may have higher requirements, which this is compatible with. If any have lower, we will need to account for that in the future.
I also fixed a bit of code where we are passing a 0 to POSIXError instead of errno.

@swift-ci test


2 instances of mm-opening on left/right menu system?

I have successfully implemented a left and right side menu along with the fixed div solution. They work great, thanks!
What I don't like is how the left and right navicon's animate at the same. I believe this is due to it calling the same, shared "html.mm-opening" css. How can I get them to animate independently? Probably a noob question, sorry, but thanks in advance. I've asked on StackOverflow, but didn't get a response so hoping someone is kind enough to comment here :)
Fiddle: http://jsfiddle.net/jn4h0nfw/5/

That fiddle gives a js-error:
TypeError: $(...).mmenu is not a function.

Sorry about that...I had moved some external files on my server since the version I linked in my post so it was having a couple 404 errors, etc. I added the correct external paths back in: http://jsfiddle.net/zuhloobie/jn4h0nfw/6/

Try using the classes option, all specified classes will be added to the menu- and HTML node when the menu opens.
$("#menu-left").mmenu({
   classes: "left-menu-opened"
});
$("#menu-right").mmenu({
   classes: "right-menu-opened"
});


io.js support

Updating the zeromq dependency on nan to 1.5.x introduces support for io.js, but seems some code changes are required to get this to successfully build on io.js 1.0.1.
> cd zeromq.node
> npm install nan@latest --save
npm http request GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan
<EMAIL_ADDRESS>node_modules/nan
> npm install

><EMAIL_ADDRESS>install /Users/timoxley/Projects/libs/zeromq.node
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/zmq/binding.o
In file included from ../binding.cc:37:
In file included from ../node_modules/nan/nan.h:63:
../node_modules/nan/nan_new.h:184:10: error: call to 'New' is ambiguous
  return NanIntern::Factory<T>::New(arg0);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:546:12: note: in instantiation of function template specialization 'NanNew<v8::Integer, long long>' requested here
    return NanNew<Integer>(value);
           ^
../binding.cc:601:30: note: in instantiation of function template specialization 'zmq::Socket::GetSockOpt<long long>' requested here
      NanReturnValue(socket->GetSockOpt<int64_t>(option));
                             ^
../node_modules/nan/nan.h:231:65: note: expanded from macro 'NanReturnValue'
# define NanReturnValue(value) return args.GetReturnValue().Set(value)
                                                                ^
../node_modules/nan/nan_new.h:86:26: note: candidate function
  static inline return_t New(int32_t value);
                         ^
../node_modules/nan/nan_new.h:87:26: note: candidate function
  static inline return_t New(uint32_t value);
                         ^
../node_modules/nan/nan_new.h:184:10: error: call to 'New' is ambiguous
  return NanIntern::Factory<T>::New(arg0);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
../binding.cc:546:12: note: in instantiation of function template specialization 'NanNew<v8::Integer, unsigned long long>' requested here
    return NanNew<Integer>(value);
           ^
../binding.cc:603:30: note: in instantiation of function template specialization 'zmq::Socket::GetSockOpt<unsigned long long>' requested here
      NanReturnValue(socket->GetSockOpt<uint64_t>(option));
                             ^
../node_modules/nan/nan.h:231:65: note: expanded from macro 'NanReturnValue'
# define NanReturnValue(value) return args.GetReturnValue().Set(value)
                                                                ^
../node_modules/nan/nan_new.h:86:26: note: candidate function
  static inline return_t New(int32_t value);
                         ^
../node_modules/nan/nan_new.h:87:26: note: candidate function
  static inline return_t New(uint32_t value);
                         ^
2 errors generated.
make: *** [Release/obj.target/zmq/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1038:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/timoxley/Projects/libs/zeromq.node
gyp ERR! node -v v1.0.1
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok

npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v1.0.1
npm ERR! npm  v2.1.18
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the zmq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls zmq
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/timoxley/Projects/libs/zeromq.node/npm-debug.log

https://github.com/iojs/io.js/issues/456

The problem is that it tries to use 64-bit integers. Will fix.

@kkoopa is this fixed? confirmed working on io.js?

Fixed, yes. Confirmed, no. It ought to work.
On January 20, 2015 2:31:51 AM EET, Tim Oxley<EMAIL_ADDRESS>wrote:

@kkoopa is this fixed? confirmed working on io.js?

Reply to this email directly or view it on GitHub:
https://github.com/JustinTulloss/zeromq.node/issues/387#issuecomment-70585191

Confirmed. works.
$ make test
./node_modules/.bin/mocha --expose-gc --slow 2000 --timeout 600000
child_process: customFds option is deprecated, use stdio instead.
# ...
  43 passing (3s)
$ node -v
v1.0.3

Cool, thanks :)
We'll deal with the customFds later, I guess (or mocha will?)

This still seems to be ongoing, now 7 months later.

Then I don't think you understand the nature of Node and V8 upgrades.

I'm not sure how my understanding has anything to do with me being unable to type npm install zmq on iojs.

Because during the past 7 months, multiple versions of io.js have been released many of which introduced breaking V8 API changes and thus needed a new version of NAN and code changes to adapt to the new API of NAN. Those have been happening. This is not one issue over the past 7 months, this is an ongoing challenge in keeping up-to-speed with io.js (and more importantly: V8) releases. Look at any NPM module with a native component and you'll see the exact same ongoing challenge in the issue tracker.
@kkoopa has been doing an amazing job at keeping node-zmq up to date as fast as possible after each new io.js release. What then follows is a node-zmq release. Please have a little patience, your prayers will be answered.

this issue was fixed a while back, but the fix for iojs3 hasn't been published at the time of this comment.

Oh by the way, you can always install the latest master of node-zmq straight from GitHub:
npm install JustinTulloss/zeromq.node

oh cool i didn't know that
can you put that in package.json or do we have to use the git link?

You can put that in package.json as the version of your dependency.

cc @JustinTulloss


Tab divider has issues with localized versions

Bug
The tab divider seems to use the English text instead of the localized text placement sometimes.
To reproduce
This happened on Chrome 98.0.4758.102

Set language to German
Go to https://odysee.com/$/wallet?tab=fiat-payment-history and reload a few times
Sometimes, the tab divider is bugged.

Video
https://user-images.githubusercontent.com/44294954/155817033-07256533-dbc5-4082-b4a1-79420c69b814.mp4

Might have been fixed from the language-refresh PR (couldn't reproduce today).
Can you confirm?


chore: jsonfmt iotcentral

Ran jsonfmt -w "specification/iotcentral/**/*.json"

Automation for azure-sdk-for-java

Automation for azure-sdk-for-python

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-js

Automation for azure-sdk-for-go

Can one of the admins verify this patch?


Add Mitm.js.

Hey,
Mitm is an another intercepting and mocking library that I'd say has a better API that the DSL-y alternatives — one based on Node's core HTTP request and response API.
Cheers

Thanks but going to pass on this.
The readme doesn't mention how it's different (better) from existing ones like nock and I don't want to recommend something with an LGPL license.

Thanks for the response at least.
I thought the following did explain it well:

Does not have any kitchen sink features or yet another API to assert on intercepted connections.

Internal DSLs have their place, but I'd limit DSLs per tests at one — an assertion library. Did you check the examples? They look like you have an plain old Node HTTP/TCP server. Mitm.js works with TCP connections, too, but that's just an extra. ;-)
The LGPL dislike is peculiar though. It merely prevents people from leeching on other people's work, but isn't as contagious as GPL is. I have an almost opposite stance — I'd not waste my time on something that someone else can take, fix or improve and not share that fix.


Use correct brew install --cask command

I've noticed that some docs are a bit outdated, as homebrew doesn't have
brew cask command now, all features regarding to casks were moved to
the option --cask instead.
This commit just introduce such changes to be up-to-date with homebrew instructions.

See https://github.com/hlissner/doom-emacs/pull/4709#issuecomment-788068213

@hlissner thank you for pointing me out! I've removed edits on docs/getting_started.org from my PR


Add functionality on homepage to search chat rooms

Hey darsh, search for what?

Hey darsh, search for what?

Hey, just updated the title. Search functionality to the homepage to search chat rooms. Saw on some instances there are more than 10 active chat rooms. This will give users a way of filtering/ finding chat rooms by title

This is planned in kibbeh

Search has been implemented


Facilitate user experience

With newest versions of intellij the pop up informing that annotation
processor is disabled won't work. Hence I've fixed checking if
proper checkbox has been marked. Moreover current use experience was
bad as user had to expand notification memoize instruction then
config window has appeared (while instruction disappears) so user has
been in stuck. To resolve that I'm showing more laconic notification
which enables Annotation Processor for user automatically.
tldr;
Before:

then

then no one knows what to do here:

After:

then nice balloon informs us that everything has been made for us:

Hello @wyhasany
thank you for your contribution!
Please reformat your commit usind project specific codestyle. You can use EditorConfig file to import it from project. (http://EditorConfig.org)
Also please add yourself to the list of contributors in Readme.md file.

Hmm, that's so strange as I applied your .editorconfig codestyle. I don't see any violation of it. Could you point me out what is wrong with code style? I've updated README as you asked.

It seems to be ready :)

Thank you!

Thank you too for cooperation :)


GitHub actions

Motivation:
I've added a github action to run the mvn clean install directly on github after each push. With this in principle travis is not needed. Just thought you might want to give it a try.
Modification:
Have everything in one place...on github.
Result:
Fixes #.
Just added a github action, so the code was not touched at all.

Codecov Report

Merging #995 (fd6e30b) into master (84d09c2) will decrease coverage by 0.14%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #995      +/-   ##
============================================
- Coverage     69.16%   69.02%   -0.15%
  Complexity      823      823
============================================
  Files           406      406
  Lines         17525    17525
  Branches       2721     2721
============================================
- Hits          12122    12097      -25
- Misses         4017     4034      +17
- Partials       1386     1394       +8

Impacted Files
Coverage Δ
Complexity Δ

...ofa/rpc/message/bolt/BoltFutureInvokeCallback.java
71.69% <0.00%> (-7.55%)
0.00% <0.00%> (ø%)

...sian/MultipleClassLoaderSofaSerializerFactory.java
86.66% <0.00%> (-6.67%)
0.00% <0.00%> (ø%)

...ipay/sofa/rpc/server/bolt/BoltServerProcessor.java
64.17% <0.00%> (-5.23%)
0.00% <0.00%> (ø%)

...ofa/rpc/registry/zk/ZookeeperProviderObserver.java
72.50% <0.00%> (-2.50%)
0.00% <0.00%> (ø%)

...ent/aft/impl/ServiceHorizontalMeasureStrategy.java
66.41% <0.00%> (-2.24%)
23.00% <0.00%> (ø%)

...n/java/com/alipay/sofa/rpc/common/SofaConfigs.java
84.90% <0.00%> (-1.89%)
0.00% <0.00%> (ø%)

...ofa/rpc/registry/zk/ZookeeperOverrideObserver.java
39.34% <0.00%> (-1.64%)
0.00% <0.00%> (ø%)

...va/com/alipay/sofa/rpc/server/bolt/BoltServer.java
74.48% <0.00%> (-1.03%)
0.00% <0.00%> (ø%)

...ipay/sofa/rpc/tracer/sofatracer/RpcSofaTracer.java
88.65% <0.00%> (-0.93%)
0.00% <0.00%> (ø%)

...lipay/sofa/rpc/message/AbstractResponseFuture.java
56.25% <0.00%> (-0.90%)
0.00% <0.00%> (ø%)

... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84d09c2...fd6e30b. Read the comment docs.

Thank you for your contribution!!! I will check this pr in milestone 5.7.7.

LGTM

LGTM


Attempting to change the name of a namespace results in a (self called) app crash

Describe the bug
Attempting to change the name of a namespace results in a (self called) app crash.
To Reproduce
Steps to reproduce the behavior:

Go to Namespaces
Click on ⠇and select Edit
Change name: of namespace and click Save
See error
The effect is that a new namespace is created, the old one is left intact, but the Lens app claims a crash.

Expected behavior
namespace renamed
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

Lens Version: 4.0.5
OS: Windows 10.0.19041.685
Installation method (e.g. snap or AppImage in Linux): Lens-Setup-4.0.5.exe

Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
App crash at http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/namespaces
To help us improve the product please report bugs to Slack community or Github issues tracker.

Error stack:

TypeError: e.getStatus is not a function
    at customizeTableRowProps (http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/build/Lens.js:2:8509351)
    at r.value (http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/build/Lens.js:2:1360434)
    at http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/build/Lens.js:2:6140471
    at http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/build/Lens.js:2:65400
    at http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/build/Lens.js:2:65013
    at ce (http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/build/Lens.js:2:16554)
    at e.track (http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/build/Lens.js:2:27918)
    at http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/build/Lens.js:2:64989
    at http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/build/Lens.js:2:64826
    at M (http://ade8f9f1-d507-496d-b697-df278801b50d.localhost:2021/build/Lens.js:2:64963)

Component stack:

    in c
    in div
    in div
    in t
    in div
    in r
    in div
    in r
    in div
    in div
    in r
    in r
    in r
    in main
    in div
    in c
    in r
    in t
    in t
    in r
    in main
    in div
    in r
    in r
    in t
    in Unknown
    in r

I'm experienced the similar issues when edit resources (I've tried Deployment, Ingress) too, they updated, but below are logs when I edited Ingress:
Error stack:

TypeError: e.getRoutes is not a function
    at customRowHeights (http://c5fc59f6-3681-40c8-afe6-3a15de316f71.localhost:49270/build/Lens.js:2:8541192)
    at http://c5fc59f6-3681-40c8-afe6-3a15de316f71.localhost:49270/build/Lens.js:2:6135902
    at Array.map (<anonymous>)
    at r.value (http://c5fc59f6-3681-40c8-afe6-3a15de316f71.localhost:49270/build/Lens.js:2:6135878)
    at r.value (http://c5fc59f6-3681-40c8-afe6-3a15de316f71.localhost:49270/build/Lens.js:2:6136341)
    at we (http://c5fc59f6-3681-40c8-afe6-3a15de316f71.localhost:49270/build/Lens.js:2:18448)
    at http://c5fc59f6-3681-40c8-afe6-3a15de316f71.localhost:49270/build/Lens.js:2:70625
    at ce (http://c5fc59f6-3681-40c8-afe6-3a15de316f71.localhost:49270/build/Lens.js:2:16554)
    at e.track (http://c5fc59f6-3681-40c8-afe6-3a15de316f71.localhost:49270/build/Lens.js:2:27918)
    at r.c [as render] (http://c5fc59f6-3681-40c8-afe6-3a15de316f71.localhost:49270/build/Lens.js:2:70573)

This is no longer a bug in 4.2.

This is still a problem in 4.2. Though it doesn't crash anymore.

The source of this bug is that when we edit a resource we aren't actually using the equivalent of kubectl edit (which reject renaming namespaces rightly I think).
Some other things that I have noticed:

The Namespace view appears to "work". Namely, if you edit a namespace the old one disappears and the new own appears (until you reload)
If you are editing a namespace and "reload" then only that namespace will be displayed in the view (and the drop down)

https://user-images.githubusercontent.com/8225332/112207840-02c6ea80-8bee-11eb-88a7-d7989823447d.mov


[1.x] Backport Faster pointwise fusion graph pass (#19269)

Description
Backport of #19269 to v1.x branch.

@mxnet-bot run ci [unix-gpu]


esp32c3 build error

Describe the bug
The following error occurred when building esp32c3

-- Found toolchain: espressif (/home/frank/.espressif/tools/riscv32-esp-elf/<IP_ADDRESS>_64eb9ff-8.4.0/riscv32-esp-elf)
CMake Error at /mnt/e/tomato/zephyrproject/zephyr/cmake/compiler/gcc/generic.cmake:8 (message):
Zephyr was unable to find the toolchain.  Is the environment misconfigured?
User-configuration:
ZEPHYR_TOOLCHAIN_VARIANT: espressif
Internal variables:
CROSS_COMPILE:
/home/frank/.espressif/tools/riscv32-esp-elf/<IP_ADDRESS>_64eb9ff-8.4.0/riscv32-esp-elf/bin/xtensa-esp32-elf-
TOOLCHAIN_HOME:
/home/frank/.espressif/tools/riscv32-esp-elf/<IP_ADDRESS>_64eb9ff-8.4.0/riscv32-esp-elf
Call Stack (most recent call first):
/mnt/e/tomato/zephyrproject/zephyr/cmake/generic_toolchain.cmake:42 (include)
/mnt/e/tomato/zephyrproject/zephyr/cmake/app/boilerplate.cmake:570 (include)
/mnt/e/tomato/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/mnt/e/tomato/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!

To Reproduce
Steps to reproduce the behavior:

Setup environment according to https://docs.zephyrproject.org/latest/boards/riscv/esp32c3_devkitm/doc/index.html
west build -b esp32c3_devkitm samples/hello_world
See error

Additional context
Modify cmake/toolchain/espressif/generic.cmake can solve this problem. This is only a temporary solution. The correct approach should be to select the target name according to the toolchain.
set(CROSS_COMPILE_TARGET riscv32-esp-elf)
set(SYSROOT_TARGET       riscv32-esp-elf)

@lgl88911 This https://github.com/zephyrproject-rtos/zephyr/pull/36818 fixes that. Thanks!

@sylvioalves Thanks, Verify pass at v2.6.0-rc1-301-gd9c666a5abf8


feat: start github live badges

resolves #14, more can be added if some needs

Oops, seems these comments are hidden until I submit a review, just a sec 😅

Also, it should be orange when lower v1? It's that way with Shields.

Looks good, gonna merge this.

Also, it should be orange when lower v1 (as it is with npm currently)?

I think it's pretty good for now, the orange color means "prerelease" for github. Better not to add too much meaning to the same color. Merge it!

Yea, probably different color would be good too, but should have such thing for sure.


ROX-14660: Fix overwrites to node scans from Node pipeline

Description
Add an allow list to match Node's OsImage attributes and determine if they support full host-level node scanning. If yes:

Ignore the node during reprocessing.
Handle SensorEvent_Node by not enriching the node and skipping risk calculation.
Handle SensorEvent_NodeInventory by enriching the inventory and attaching a Node.Scan, leaving the other metadata intact.

The above ensures both pipelines won't overwrite each other data as long as they don't run concurrently. SensorEvent_Node should only update Node, but not Node.Scan, while SensorEvent_NodeInventory should only update Node.Scan but nothing else.
For simplicity, we will continue to allow these pipelines to perform reads before writes to the database to update only parts that are relevant for each. And we will ensure they don't run concurrently by using the same worker queue when processing them.
To ensure Node is not touched by SensorEvent_NodeInventory, we keep Node.LastUpdated if already set on upsert. Tests were updated to account for the fact.
Checklist

[x] Investigated and inspected CI test results
[x] Unit test and regression tests added
[ ] ~Evaluated and added CHANGELOG entry if required~ N/A
[ ] ~Determined and documented upgrade steps~ N/A
[ ] ~Documented user-facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~ N/A

Testing Performed
Integration tests were added to cover the scenario where Node is being upserted with Node.Scan = nil.
For manual testing, deploy to Openshift-4.12 (cluster jvdm-argilo). and:

Reduce reprocessing time: kubectl -n stackrox set env deployment/central ROX_REPROCESSING_INTERVAL=1m
Reduce node scanning time: kubectl -n stackrox set env daemonset/collector "ROX_NODE_SCANNING_INTERVAL_DEVIATION=30s" "ROX_NODE_SCANNING_INTERVAL=1m" "ROX_NODE_SCANNING_INTERVAL_MAX_INITIAL_WAIT=0s"
Two experiments:
a. Run reprocessing and inventories at a high rate (~1m), and trigger node events by kicking Sensor.
a. Disable inventories with kubectl -n stackrox set env daemonset/collector "ROX_RHCOS_NODE_SCANNING=false" and trigger node events.

UI

Logs
Reprocessing:
reprocessor: 2023/03/10 01:09:13.069413 reprocessor.go:420: Info: Successfully reprocessed 87/87 images
reprocessor: 2023/03/10 01:09:13.069609 reprocessor.go:421: Info: Resyncing deployments now that images have been reprocessed...
reprocessor: 2023/03/10 01:09:35.625355 reprocessor.go:273: Info: Found 6 nodes to scan
reprocessor: 2023/03/10 01:09:35.648246 reprocessor.go:445: Info: node secured-cluster-jvdm-argilo:jvdm-argilo-47bkl-master-2.c.srox-temp-dev-test.internal (id: c3d2395f-ed74-455f-b9f6-4507db02c779) does not n
reprocessor: 2023/03/10 01:09:35.650914 reprocessor.go:445: Info: node secured-cluster-jvdm-argilo:jvdm-argilo-47bkl-master-0.c.srox-temp-dev-test.internal (id: 1ce86640-8407-4e01-aed6-665da2362936) does not n
reprocessor: 2023/03/10 01:09:35.652714 reprocessor.go:445: Info: node secured-cluster-jvdm-argilo:jvdm-argilo-47bkl-master-1.c.srox-temp-dev-test.internal (id: 3c995dde-9890-48de-94e9-93bffdce2876) does not n
reprocessor: 2023/03/10 01:09:35.654843 reprocessor.go:445: Info: node secured-cluster-jvdm-argilo:jvdm-argilo-47bkl-worker-b-h7xp9.c.srox-temp-dev-test.internal (id: ea130298-20a1-4bbc-a7ac-04a00a0a21e3) does
reprocessor: 2023/03/10 01:09:35.655099 reprocessor.go:445: Info: node secured-cluster-jvdm-argilo:jvdm-argilo-47bkl-worker-c-6ps8s.c.srox-temp-dev-test.internal (id: 9105af0f-522f-4381-a0f2-39399263e52e) does
reprocessor: 2023/03/10 01:09:35.668693 reprocessor.go:445: Info: node secured-cluster-jvdm-argilo:jvdm-argilo-47bkl-worker-d-lkv4x.c.srox-temp-dev-test.internal (id: 3c73854f-9852-4de8-8a57-d5230c8cfde5) does
reprocessor: 2023/03/10 01:09:35.668803 reprocessor.go:302: Info: Successfully reprocessed 0/6 nodes

NodeInventory:
sensor/service/pipeline/nodeinventory: 2023/03/10 01:08:02.357826 pipeline.go:65: Info: Received NodeInventory for Node name='jvdm-argilo-47bkl-worker-c-6ps8s.c.srox-temp-dev-test.internal' ID='9105af0f-522f-4381-a0f2-39399263e52e'
sensor/service/pipeline/nodeinventory: 2023/03/10 01:08:07.812502 pipeline.go:65: Info: Received NodeInventory for Node name='jvdm-argilo-47bkl-master-2.c.srox-temp-dev-test.internal' ID='c3d2395f-ed74-455f-b9f6-4507db02c779'
sensor/service/pipeline/nodeinventory: 2023/03/10 01:11:23.420295 pipeline.go:65: Info: Received NodeInventory for Node name='jvdm-argilo-47bkl-master-0.c.srox-temp-dev-test.internal' ID='1ce86640-8407-4e01-aed6-665da2362936'
sensor/service/pipeline/nodeinventory: 2023/03/10 01:11:55.890659 pipeline.go:65: Info: Received NodeInventory for Node name='jvdm-argilo-47bkl-worker-b-h7xp9.c.srox-temp-dev-test.internal' ID='ea130298-20a1-4bbc-a7ac-04a00a0a21e3'
sensor/service/pipeline/nodeinventory: 2023/03/10 01:12:17.636049 pipeline.go:65: Info: Received NodeInventory for Node name='jvdm-argilo-47bkl-master-1.c.srox-temp-dev-test.internal' ID='3c995dde-9890-48de-94e9-93bffdce2876'
sensor/service/pipeline/nodeinventory: 2023/03/10 01:12:22.904669 pipeline.go:65: Info: Received NodeInventory for Node name='jvdm-argilo-47bkl-worker-d-lkv4x.c.srox-temp-dev-test.internal' ID='3c73854f-9852-4de8-8a57-d5230c8cfde5'

Multi-cluster test
In a multi-cluster setup, one with RHCOS scanning enabled the other with RHCOS disabled:

I reverted the LastUpdated to allow the field. I intuitively assumed they should be independent, but I don't think it is worth discussing this considering how minimal the impact on customers is, and also @md2119 is advocating keeping the datastore "dump" and "decisionless", which is an agreed goal.
The options considered were, selected (c.):
(a.) Do a Get before calling Upsert.
(b.) Add "options" to Upsert APIs to change its behavior and either overwrite or pull fields before writing.
(c.) Check Node.Scan == nil and perform a Get inside the datastore (selected :heavy_check_mark:).


S3 bucket prefix

Prevent s3commander from traversing above the s3 bucket prefix.

 Prevent users from traversing above the bucket prefix in s3commander.


Feature: video upload

Fixes #46 #45

Added options on public methods, allowing passing in resource_type: "video".
Regenerated fixtures.

Hi, Thanks for your time on this :)
I'll will release a new update as soon as possible@

1.2.0 has been published :)


Js-anim

Java script animation
The script portrays a 3D animation made in javascript
Fixed #172
Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added screenshots(if any) that prove my fix is effective or that my feature works

Hi @bislara , can you help me with this error. I dont really know why it didn't pass the script works.

Theres no error in the script but i failed one of the checks, 'greetings'. How do i fix that @bislara ?

No no that's fine. That's the greeting bot for the first time contributors. There is some issue with that..leave it.
Can you just do one thing? Please add a small gif showing the animation in the readme
It will help others to know better whats the animation is all about.

Ok sure ill add a gif :)

@bislara I added the GIF can you check and let me know if it works?

@all-contributors please add m4dummies for code, doc


LoadSecureCloudsYAML error check in wrong place

https://github.com/gophercloud/utils/blame/master/openstack/clientconfig/requests.go#L76-L89
I'll submit a fix

Fixed in #65


Issue with Immersive Portals because the player teleportation code does not invoke vanilla teleportation method

IP has injection to moveToWorld and teleport method to do the chunk tracking update, but custom portal api uses its own teleportation code so that it has an issue with IP (when coming back the chunks won't load). And IP's convert conventional portal functionality(https://qouteall.fun/immptl/wiki/Datapack-Based-Custom-Portal-Generation) is also not triggered. It's recommended to replace this vanilla copy code https://github.com/kyrptonaught/customportalapi/blob/main/src/main/java/net/kyrptonaught/customportalapi/util/CustomTeleporter.java#L58  with ServerPlayerEntity 's teleport method. Doing this cleans up the code and makes it compatible with IP.

I copied the code(with modification) rather than just calling the teleport method to avoid a few of its functions(end credits and end platform for example).
I could instead look into mixing in and disabling these calls when doing a custom teleportation

moveToWorld generates obsidian platform but teleport does not. And teleport does triggers dimension travel credit but won't wrongly trigger the end credit. The teleport is being used for /tp command and is safe to use

Ah I did not know ServerPlayerEntity had a different overload of teleport, I only saw it's implementation in Entity. I will certainly use that, do you need entities other than players to also use the vanilla moveToWorld, or would my own teleportation logic be okay for that?

I've implemented and uploaded the change to teleport in beta-25

The non-player entity teleporting code should be fine


project namespace of apiservice use k8sassist - [closed]

In GitLab by @luotian-github on May 22, 2018, 07:52
Merges updatek8s18 -> updatek8s18
project namespace of apiservice use k8sassist

In GitLab by @wknet123 on Nov 13, 2019, 10:58
closed


feat(note): implement Transposable

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

16 of 16 (100.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
360

Relevant Lines:
360

💛  - Coveralls


What the difference between the four tflite models.

Issue Type
Documentation Feature Request
OS
Other
OS architecture
aarch64
Programming Language
C++
Framework
TensorFlowLite
Description
Hi, @PINTO0309
I only see online quantization and post-quantization methods on the tensorflow official website, and I am confused about the four (integer quant, full inter quant, weight quant, etpu) quantization models that you released. I did not find the difference between mobilenet_v2_224_dm10_full_integer_quant.tflite and mobilenet_v2_224_dm10_integer_quant.tflite.

What is the difference between four models.
What equipment they are suitable for.
The Methods to quantify the weight quantized tflite?
Maybe you would like to add this feature in the documentation.
Nice to see a huge and great model zoo!

Relevant Log Output
No response
URL or source code for simple inference testing code
No response

What is the difference between four models.

This is as described in the official documentation.
Float32, Float16, INT8, EdgeTPU
https://www.tensorflow.org/lite/performance/post_training_quantization

What equipment they are suitable for.

ARM64 or EdgeTPU

The Methods to quantify the weight quantized tflite?

I don't implement it because it makes no sense.

There has been no progress, so it is closed.


Update issue templates

Creating issues templates for bug, feature, question issues

Hi @MichalPrincNXP , this should help us to get better issues description


Cluster/How to configure APIM for Service Fabric managed cluster.md init

initial release Cluster/How to configure APIM for Service Fabric managed cluster.md

do not merge. contact sedwards before merging


starting to use a separate flag set for parsing CLI options for PDP

... to avoid flag conflicts with other packages that we are importing ('v' flag in glog used by k8s as an example).

Please point to source introduced the conflict.

Closed as the conflict isn't a Themis issue.


feat(kibbeh): add md size variant for tablets

add medium size variant in UserAvatar/SingleUser for tablet view
#1390

but anyways it looks fine

@ofsho will do that

ok

Done. But the deployment is failing due to limited resource. Can a deployment be triggered without making commits?


support for recording audio

support for recording room audio

closing because of a bug (you are not recording yourself)

I'm also having trouble since I merge staging to my branch due to #579
@benawad

I fixed the bug, a few notes:
1 - currently there is no icon for the recording button.
2 - users volume is not applied to the recording, I can fix that by setting the volume of the users inside the track and not in the audio element like it is now, I just wasn't sure if there is a specific reason we set the volume in the element and not the track.
3 - currently I just make the browser download the audio file the second the recording is done, do we prefer to ask the user first?
4 - do we want the recording file name to say something specific? maybe [the_room_name].mp3 ?

see  #578 for notes, this may be hard to do atm

I think we can start here as an example?
https://github.com/ethand91/mediasoup3-record-demo


How to disable Flipper in production

Hello,
It is possible to disable Flipper in production? Because on iOS there are a lot of imports

Totally understand.
The flipper docs mention adding a !ENV['CI'] check for disabling the build in CI which won't work for us, since many devs use EAS to make a new development client. However, there's no reason we can't use a different ENV value to disable flipper in builds, for example ENV['FLIPPER_DISABLE']. This would be possible to add in a backward compatible way and can be toggled with expo/eas secrets.
Would that work for your use case?

Hello @jakobo, it sounds great. Thank you!

Fixed in 45.1.0  with the new FLIPPER_DISABLE env flag.

Thank you! Is it possible to add this env var to my eas config? My current eas.json looks like this:
{
  "build": {
    "release": {
      "ios": {
        "image": "latest"
      }
    },
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    }
  },
  "cli": {
    "version": ">= 0.38.2",
    "requireCommit": true
  }
}

And my app.json expo part looks like this:
{
  "expo": {
    "..."
    "plugins": [
      ["expo-community-flipper"],
      ["react-native-flipper-performance-plugin"]
    ]
  }
}

@Noitidart Yes, you can include env values either at the EAS service level or in your eas.json: https://docs.expo.dev/build-reference/variables/
{
  "build": {
    "...": "...",
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "env": {
        "env-key": "env-value"
      }
    }
  }
}

Credit where credit's due. @all-contributors, can you add @bpouzet for ideas
I don't think we'd have addressed the ENV issue w/o your help. ❤


Chat thread with proof

result of merging  chat main (including message signature) and chat-threads.
This is nicely working with 2 remaining isssues  related to send :

no area to add a comment (send area) on a thread opened in the past (resolved)
on same day you cannot add new comments. Send fails and you must reload the chat

If this is also containing the chat-thread branch, I guess we can close that one?


Missing equals sign in documentation

In this example on your website (and in the README) the equals sign between module.exports and  require('bookshelf')(knex); is missing. I just thought I'd let you know.
// In a file named something like bookshelf.js
var knex = require('knex')(dbConfig);
module.exports require('bookshelf')(knex);

// elsewhere, to use the bookshelf client:
var bookshelf = require('./bookshelf');

var Post = bookshelf.Model.extend({
  // ...
});

@rhys-vdw looks like this is fixed by https://github.com/tgriesser/bookshelf/pull/915

Thanks @bsiddiqui.


Select: Leading Icon size md 24px statt sm 20px

Which design system content is impacted? * (PLEASE SELECT THE LIBRARY)

[ ] Figma Core Foundations
[X] Figma Core Components
[ ] Figma Core Patterns
[ ] Figma Core Icons
[X] Sketch Core (Foundations/Components/Patterns)
[ ] Sketch Core Icons

Which version is impacted?
v0.4.1
Reproduction case
Leading icon sollte analog Input
db-base-icon-font-size-md
statt
db-base-icon-font-size-sm
sein
Expected
Korrigiere Größe des Leading Icons auf db-base-icon-font-size-md
Screenshots

Add any other context about the problem here.
No response

Dev: https://github.com/db-ui/mono/issues/3367

Fix ist fertig. Gerne Reviewen:
https://www.figma.com/design/mlJ6R0GkfR15a93KSlqXtB/branch/JIhV9ipnhW8vsvOQgNtEdW/DB-UX-DS-v3---Core-Components-(Beta)---v0.5.0?m=auto&node-id=2-4058&t=xBf6vI18oQbZo4lJ-1