Chained methods being ignored

My current return statement:
return PDF::loadView('pdfs.cert2', array('certificate' => $certificate))->inline($file_name);

works just fine. But chaining any methods from spatie's library before  ->inline() seem to be ignored. Chaining them after results in method does not exist errors.
Any idea what I may be doing wrong?

inline(), download(), save() and saveAs() all return a value so it is impossible to keep chaining methods after that, you should call all chained methods before calling any of the previous ones

I'm closing the issue since it is not really a problem with the package but feel free to comment of you have more questions

What method are you trying to chain? And what error is it throwing ?

At the moment, ->landscape() is ignored (the pdf remains portrait) and if I put it after ->inline() then I get Method Illuminate\Http\Response::landscape does not exist, which I would expect to happen.

I just tested it on a Laravel 5.7 fresh installation and landscape() is working as expected. Is there any way I can replicate this issue?

I will close this issue since there was no reply and the method seems to be working fine. Feel free to reopen it if you have more info on how to replicate the issue

The landscape() seemingly being ignored may be due to included bootstrap css. This may force page size to portrait. Set $enable-print-styles scss variable to false or specify page size: a4 landscape.


IE11 Support - App just display an empty screen

PassCore Server

OS: Not impacted
Provider: Not impacted
Settings file (without sensitive information): Not impacted

Describe the bug
A new 4.00 deploy using React for client, when trying to open the app from IE11 the app just display an empty screen.
Console logs an SCRIPT1002: Syntax error. File: App.ba8f5c53.js, Line: 461, Column: 295.
Refer to screenshots for more details.
To Reproduce
Steps to reproduce the behavior:
Access app using IE11.
Expected behavior
Since there is no indication in the documentation that IE11 is not supported, it is expected that the tool will work on IE11 browser.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Device: Desktop
OS: Windows 7
Browser IE11
Version 11.0.9600.19399

Hi @jamesxv7, sorry but we are not supporting IE11 in this version. I need to update the documentation with the minimal browser versions.


Cannot run app on iOS after following instructions

I'm seeing this error immediately after starting the app:
Application snowflake has not been registered. This is either due to a require() error during initialization or failure to call.

Versions:

npm: 3.8.6
node: v6.0.0
xcode: 7.3
react-native-cli: 0.2.0
react-native: 0.22.2

I removed and brew installed everything from scratch (npm and node). It still might be something to do with my environment, though.
When I go to the 'snowflake' directory and run npm start, I am also seeing this output with an error:

><EMAIL_ADDRESS>start /Users/ndbroadbent/code/apps/snowflake
> react-native start

Looks like you installed react-native globally, maybe you meant react-native-cli?
To fix the issue, run:
npm uninstall -g react-native
npm install -g react-native-cli

npm ERR! Darwin 15.4.0
npm ERR! argv "/Users/ndbroadbent/.nvm/versions/node/v6.0.0/bin/node" "/Users/ndbroadbent/.nvm/versions/node/v6.0.0/bin/npm" "start"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>start: `react-native start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'react-native start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the snowflake package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     react-native start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs snowflake
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls snowflake
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/ndbroadbent/code/apps/snowflake/npm-debug.log

react-native is not installed globally, so this error message is wrong and not helpful at all.
If I change the start script to use a locally installed react-native-cli, then I get this error:
><EMAIL_ADDRESS>start /Users/ndbroadbent/code/apps/snowflake
> node node_modules/react-native/local-cli/cli.js start

 ┌────────────────────────────────────────────────────────────────────────────┐
 │  Running packager on port 8081.                                            │
 │                                                                            │
 │  Keep this packager running while developing on any JS projects. Feel      │
 │  free to close this tab and run your own packager instance if you          │
 │  prefer.                                                                   │
 │                                                                            │
 │  https://github.com/facebook/react-native                                  │
 │                                                                            │

npm ERR! Darwin 15.4.0
npm ERR! argv "/Users/ndbroadbent/.nvm/versions/node/v6.0.0/bin/node" "/Users/ndbroadbent/.nvm/versions/node/v6.0.0/bin/npm" "start"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>start: `node node_modules/react-native/local-cli/cli.js start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'node node_modules/react-native/local-cli/cli.js start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the snowflake package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/react-native/local-cli/cli.js start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs snowflake
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls snowflake
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/ndbroadbent/code/apps/snowflake/npm-debug.log

Any ideas on how I can fix this?

Also, when I run npm test I get these errors and failures:

><EMAIL_ADDRESS>test /Users/ndbroadbent/code/apps/snowflake
> rm -rf ./node_modules/jest-cli/.haste_cache && jest  --no-cache

Using Jest CLI v0.9.2, jasmine2, babel-jest
 FAIL  src/reducers/device/__tests__/deviceReducer-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  src/components/__tests__/FormButton-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  src/reducers/auth/__tests__/authActions-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  src/reducers/profile/__tests__/profileReducer-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  src/components/__tests__/LoginForm-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  src/components/__tests__/ItemCheckbox-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  src/reducers/auth/__tests__/authReducer-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  src/reducers/profile/__tests__/profileActions-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  src/components/__tests__/Header-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  src/components/__tests__/ErrorAlert-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
 FAIL  src/reducers/device/__tests__/deviceActions-test.js
Runtime Error
TypeError: Path must be a string. Received null
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at handle (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:41:8)
    at process.<anonymous> (/Users/ndbroadbent/code/apps/snowflake/node_modules/worker-farm/lib/child/index.js:47:3)
npm ERR! Test failed.  See above for more details.

Sorry, this was a problem with 'nvm', which I didn't uninstall properly.


Error with Dockerfile

I got an error when trying to build only l0 with the command :
skaffold dev -p onlyL0

My docker info:

Hey, please take a look into SETUP.md file. You need to configure your k8s context (kube-context) in order to deploy images to, for example, your local cluster

any kubernetes cluster

Even I setup k8s successful, the error still there.

You said you're not using AWS. Why you configured the k8s to use EKS then? You need to provide there either your local k8s context or create one on your cloud.

Oh, I got it, will try

Hi, I'm back. After installed k8s, error stills there!

You won't have an access to the image repository on AWS nor to the EKS cluster that's deployed there. We have instructions in README.md only for local kubernetes environments like minikube or docker-desktop. If you would like to deploy to GCP you need to handle issues on your own.


run on gup

Can it run on gup? My display cannot be compiled on gpu thanks

Do you solve the problem?


libpostal logs "invalid UTF-8" warning for a string having "\0" or "\u0000" and stays in waiting state

Using the jpostal, if I call jpostal parseaddress like:

AddressParser.getInstance().parseAddress("Rue du Médecin-Colonel Calbairac Toulouse France\u0000")

I am seeing this warning logged
WARN  invalid UTF-8
   at transliterate (transliterate.c:791) errno: No such file or directory
WARN  invalid UTF-8
   at transliterate (transliterate.c:791) errno: No such file or directory
WARN  invalid UTF-8
   at transliterate (transliterate.c:791) errno: No such file or directory
WARN  invalid UTF-8
   at transliterate (transliterate.c:791) errno: No such file or directory

And the thread remains in waiting state.. This happens only when the address have \u0000 or (simple \0) character in it. Simplest solution seems to not send \0 character or replace it before calling parseAddress...

@myasirkhan I hit this too, I've stolen the above example in some of the tests for a PR I just created


Changes for upcoming Travis' infra migration

Travis is deprecating the sudo keyword and moves everything to the same infrastructure (sudo really selects between two infrastructures).
See: https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration

Can you target 2.12 branch?

Done

thanks for picking this up @sergeyklay :+1:

Thank you @sergeyklay.

You're welcome 👍


⚠ ClamAV has degraded performance

In b8d2392, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 599 ms

Resolved: ClamAV performance has improved in 66d31e0.


staticpod: simplify retry mechanism

This simplify the retry mechanism when retrieving secrets and configmaps from API server and also fixes a case when we fail to obtain self-reference for an installer pod (events) and instead of retry we failed.
In addition this add more unit tests to exercise the retry mechanism to increase test coverage for this critical piece of infrastructure.

/approve
/lgtm


Travis fix

This seems to fix the travis build! Yeepeah

Excellent, thank you very much, @egolus!


RATE OF CHANGE (ROC) - DOCUMENTATION (DESCRIPTIONS OF EXISTING RULES/INDICATORS)

What is Rate of Change (ROC)
The Rate of Change indicator, which is also known as simply momentum, is a momentum indicator. It measures the percentage change in price between the current price and the price a certain number of periods ago. Traders used this indicator to identify bullish and bearish momentum. The ROC indicator is plotted against zero, with the indicator moving upwards into positive territory if price changes are to the upside, and moving into negative territory if price changes are to the downside. It can also be used to spot divergences, overbought and oversold signals.
FORMULA :

Allocation Strategy
The strategy is to identify asset's price cycles.
Bullish Reversal: when ROC is above zero
Bearish Reversal: when ROC is below zero

The theory suggests that asset price will have a trend shift when the DPO cross above zero levels and vice versa. So:
if ROC > 0
then allocation = max_allocation(long position)
if ROC < 0
then allocation = -max_allocation(short position)
else: allocation = 0

@Cal231995 please revise the description for this rule to avoid copyright issue. thanks.

What is Rate of Change (ROC)
The Rate of Change indicator, is a technical indicator which is mostly used by traders to Identify the momentum of an asset. It measures the percentage change in price between the current price and the price a certain number of periods ago. The ROC indicator is plotted against zero, with the indicator moving upwards into positive territory if price changes are to the upside, and moving into negative territory if price changes are to the downside. An asset is considered bullish when the roc is above zero and considered bearish when the roc is below zero. It can also be used to identify divergences.
You can used this one @fhashim .Thanks


Data Connectedness & Sufficiency

Nice video and content. However need some more clarification on the difference between connectedness in the data and the sufficiency of the data. From the example given it seems both point towards Data completeness.

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

ID: 45331f18-31b0-2d37-e1e0-482f3c18dbb1
Version Independent ID: 9354f148-c9fb-af6d-4a6f-23d026bcf34b
Content: Is your data ready for data science? Data evaluation - Azure Machine Learning
Content Source: articles/machine-learning/studio/data-science-for-beginners-is-your-data-ready-for-data-science.md
Service: machine-learning
GitHub Login: @heatherbshapiro
Microsoft Alias: hshapiro

@gramakrish Thanks for your feedback! I have assigned the issue to the author for updating the document properly.
@heatherbshapiro Hi, this is a kudos and a suggestion about the document, can you please check it and update the document as necessary? Thanks a lot!

@YutongTie-MSFT please assign to @sdgilley

Thanks for you suggestion.  We'll keep it in mind when we next update this video.

#please-close


Columns seem to ignore lipgloss padding

I want to pad my cell data with a space on both the left and the right. This is because in many terminals, double-clicking on the text of a cell will select the contents plus the column separator. The common behavior is to delimit only on whitespace. What I want is to quickly copy a cell's contents into my OS clipboard for pasting into other tools.
I tried this by adding a column style that uses .Padding(0, 1) as well as manually adding spaces to the row data, but either way the table seems to trim space before rendering. Any hints on how I should be doing this?
I skimmed through the code and did not find any explicit logic to remove leading or trailing space.
Note: For overflow, I don't care if the ellipsis touches the column separator, because a truncated value is not worth copying into a clipboard.
I am using Version: v0.15.0
Sample Program:
package main

import (
	"fmt"

	"github.com/charmbracelet/lipgloss"
	"github.com/evertras/bubble-table/table"
)

func main() {

	cols := []table.Column{
		table.NewColumn("a", "A", 10).
			WithStyle(
				lipgloss.NewStyle().Padding(0, 1),
			),
	}

	rows := []table.Row{
		table.NewRow(table.RowData{"a": "hello"}),
		table.NewRow(table.RowData{"a": "very long text"}),
	}

	t := table.New(cols).WithRows(rows)
	fmt.Println(t.View())
}

Expected Output:
┏━━━━━━━━━━┓
┃        A ┃
┣━━━━━━━━━━┫
┃    hello ┃
┃ very lo… ┃
┗━━━━━━━━━━┛

Actual Output:
┏━━━━━━━━━━┓
┃         A┃
┣━━━━━━━━━━┫
┃     hello┃
┃very long…┃
┗━━━━━━━━━━┛

Interesting result: I can get closer to the format I want with table.NewStyledCell
package main

import (
	"fmt"

	"github.com/charmbracelet/lipgloss"
	"github.com/evertras/bubble-table/table"
)

func main() {

	cols := []table.Column{
		table.NewColumn("a", "A", 10),
	}

	paddedCell := lipgloss.NewStyle().Padding(0, 1) // for our own safety
	rows := []table.Row{
		table.NewRow(table.RowData{"a": table.NewStyledCell("hello", paddedCell)}),
		table.NewRow(table.RowData{"a": table.NewStyledCell("very long text", paddedCell)}),
	}

	t := table.New(cols).WithRows(rows)
	fmt.Println(t.View())
}

Output
┏━━━━━━━━━━┓
┃         A┃
┣━━━━━━━━━━┫
┃    hello ┃
┃     very ┃
┃    long… ┃
┗━━━━━━━━━━┛

Apologies for the late reply on this, it slipped through my email and I haven't checked here for a little bit.  I think the StyledCell approach is probably going to be the way to go here, but it does feel a bit rough that your original attempt didn't work.  I'm going to leave this open for now, but I'm not entirely sure what the obvious fix will be and there is a workaround. 🤔

What I found so far is this line. cellStyle is built by coping rowStyle  and inherit a column.style
func (m Model) renderRowColumnData(row Row, column Column, rowStyle lipgloss.Style, borderStyle lipgloss.Style) string {
	cellStyle := rowStyle.Copy().Inherit(column.style).Inherit(m.baseStyle)

In its implementation in the lipgloss package, we can see that margins and padding properties are skipped

func (s Style) Inherit(i Style) Style {
	s.init()

	for k, v := range i.rules {
		switch k {
		case marginTopKey, marginRightKey, marginBottomKey, marginLeftKey:
			// Margins are not inherited
			continue
		case paddingTopKey, paddingRightKey, paddingBottomKey, paddingLeftKey:
			// Padding is not inherited
			continue
		case backgroundKey:
			s.rules[k] = v

			// The margins also inherit the background color
			if !s.isSet(marginBackgroundKey) && !i.isSet(marginBackgroundKey) {
				s.rules[marginBackgroundKey] = v
			}
		}

		if _, exists := s.rules[k]; exists {
			continue
		}
		s.rules[k] = v
	}
	return s
}

With that knowledge, I created a column with left padding
	columns := []table.Column{
		table.NewColumn(columnKeyName, "Name", 10).WithStyle(
			lipgloss.NewStyle().
				Foreground(lipgloss.Color("#88f")),
		),
		table.NewColumn(columnKeyCountry, "Country", 20).WithStyle(
			lipgloss.NewStyle().
				Foreground(lipgloss.Color("#f88")).
				PaddingLeft(5),
		),
		table.NewColumn(columnKeyCurrency, "Currency", 10),

and change the renderRowColumnData a little bit
func (m Model) renderRowColumnData(row Row, column Column, rowStyle lipgloss.Style, borderStyle lipgloss.Style) string {
	cellStyle := rowStyle.Copy().Inherit(column.style).Inherit(m.baseStyle)

	_, _, _, colPadLeft := column.style.GetPadding()
	if colPadLeft > 0 {
		cellStyle = cellStyle.PaddingLeft(colPadLeft)
	}

Which results in the desired state:

What we can do is:

modify the Inherit method or create a custom one overriding all values from the incoming style - this will be impossible to make in a finite period since contributions to charm are hella slow (or they do not like me dunno)
append that logic into renderRowColumnData (for paddings and margins)

I have some free time now, I can go with the second solution.

Okay, it may be tricky because GetPadding and GetMargins return values or 0 if a property is not set. Creating a simple if statement as I did may result in a situation when a rowStyle sets padding to >0 value and the user wants to have a column with padding ==0 and it will not be overridden.
Without access lipgloss.Style.rules it may be hard to implement simply. We can cover the override margins/paddings with a next column flag but I do not if it is a best approach here

https://github.com/charmbracelet/lipgloss/pull/71 😆

It came out that we cannot set paddings and margins in base style because it breaks the layout
PaddingRight(10)

MarginRight()

So my objects are invalid now, I am going to create a PR with that

PR: https://github.com/Evertras/bubble-table/pull/160


When I do npx nuxi@latest devtools enable

'devtools' is not an internal or external command or a runnable program
Or batch file.
How to deal with it?0.0

'devtools' 不是内部或外部命令，也不是可运行的程序
或者批处理文件。
怎么处理？0.0

"dependencies": {
"@nuxtjs/color-mode": "^3.2.0",
"@nuxtjs/tailwindcss": "^6.6.6",
"@pinia/nuxt": "^0.4.10",
"@prisma/client": "^4.11.0",
"@types/jsonwebtoken": "^9.0.2",
"bcryptjs": "^2.4.3",
"dayjs": "^1.11.7",
"gray-matter": "^4.0.3",
"jsonwebtoken": "^9.0.0",
"pinia": "^2.0.36",
"remark": "^14.0.2",
"remark-html": "^15.0.2"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.2",
"@huntersofbook/naive-ui-nuxt": "^0.7.1",
"@iconify-json/logos": "^1.1.31",
"@types/bcryptjs": "^2.4.2",
"@types/node": "^18",
"@unocss/nuxt": "^0.52.3",
"eslint": "^8.41.0",
"nuxt": "3.2.2",
"prisma": "4.14.1",
"sass": "^1.62.0",
"typescript": "^5.0.4"
}

Can't reproduce. Can you try npx nuxi@latest -v and see what does it outputs?

无法重现。你能试试看npx nuxi@latest -v它输出什么吗？
This is a display of the output

It's 3.5.3 already, you should check your cache or anything why causing it not having the latest version


Bump Python version to 3.9 in Docker and setup.py

Closes #973
Code Changes

[x] update the dockerfile
[x] update setup.py
[x] update docs

Steps to Confirm

[ ] tests pass

Pre-Merge Checklist

[x] All CI Pipelines Succeeded
Documentation Updated:

[x] documentation complete, or draft/outline provided (tag docs-team to complete/review on this branch)
[ ] documentation issue created (tag docs-team to complete issue separately)

[x] Issue Requirements are Met
[ ] Relevant Follow-Up Issues Created
[x] Update CHANGELOG.md

Description Of Changes
Upgrade to 3.9, not expecting any changes that break backwards compatibility. Gets us in a better position to merge with fidesops

@sanders41 great catches! Thanks for the review 🙂


Add Automated System Tests

These should also be configured into GitHub workflows.

Partially fixed in #25.


Under watch pattern, At the end of the recompile, there is no file to regenerate

Do you want to request a feature or report a bug?
Yes

What is the current behavior?
I use the option watchin the node API to watch my app, but when I delete the *.map file, then I did some change for the code, the recompile process will be triggered and the log of bundles outputs, but there are no files regenerated.
If the current behavior is a bug, please provide the steps to reproduce.
My Webpack Config:
https://gist.github.com/ulivz/3f3401700d51a414d68044c789ff6514

What is the expected behavior?
All files should be re-generated after each compiled ending even when some files had been deleted.
If this is a feature request, what is motivation or use case for changing the behavior?
If you have such behavior, development experience will be very bad. log output but no files generated:

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

Node.js 4.7.0
Webpack 2.6.1
OS: OSX 10.12.5

Unchanged files are cached and not reemitted. Don't delete files while watching.


Rely on macOS deployment target set by compiler-rt for sanitizers

Using newer targets can lead to build failures, see
https://github.com/llvm/llvm-project/commit/41c52889b90ded563e1aa56cfa7764e083323b00 https://github.com/llvm/llvm-project/commit/b87fc09dceeff9cb838884961d817c0ab0257176
This has no effect currently, it is meant to support the switch to LLVM_ENABLE_RUNTIMES to build compiler-rt -- #58465
Addresses rdar://99140817

@swift-ci please test

@swift-ci please build toolchain


Unable to detect exports from bundled webpack output

Title is probably inaccurate 😅
I recently added bundling to Jest, and it seems the output makes the lexer not detect exports correctly.
Specifically, it picks up the exports. stuff that is not exported, but not the exports within Object.definedProperty which actually are.
Quickest reproduction I have is to clone Jest, run yarn && yarn build:js then this:
const fs = require('fs');
const {parse} = require('cjs-module-lexer');

const source = fs.readFileSync(require.resolve('jest-watcher'), 'utf8');

console.log(parse(source));

This prints
{
  exports: [
    'default',
    'KEYS',
    'printPatternCaret',
    'printRestoredPatternCaret'
  ],
  reexports: []
}

Running the parser on the published version (29.7.0) gives this:
{
  exports: [
    '__esModule',
    'BaseWatchPlugin',
    'JestHook',
    'PatternPrompt',
    'Prompt',
    'TestWatcher'
  ],
  reexports: [ './constants', './lib/patternModeHelpers' ]
}

The reexports are of course gone as it's bundled, but we're also seeing that the lexer has detected only the resolved re-exports?

https://github.com/nodejs/cjs-module-lexer#project-status This project has been frozen, I suspect webpack may have relevant options that will follow this.

https://github.com/webpack/webpack/issues/13098
https://github.com/rollup/rollup/pull/4826
Unfortunately webpack doesn't support this, although rollup does.

Happy to switch to rollup (vite probably?) instead - I'm not particularly married to using webpack

FWIW, I think I'll just be checking the exports manually at build time and include an mjs file, which should skip the lexer entirely: https://github.com/jestjs/jest/pull/14661

Amazing!


Scheduled tests failed

static type check failed because the version of pydantic was updated.
https://github.com/hmasdev/runnable_family/actions/runs/10857865500

There seems to be breaking changes about the version of pydantic between langchain-core==0.3.0 and langchain-core==0.2.x
https://github.com/langchain-ai/langchain/compare/langchain-core%3D%3D0.2.40...langchain-core%3D%3D0.3.0

$ date +"%Y%m%d"
20240914
$ git clone git@github.com:hmasdev/runnable_family.git
$ cd runnable_family/
$ ls
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -e .[dev]
(OMISSION)
Successfully installed PyYAML-6.0.2 SQLAlchemy-2.0.34 aiohappyeyeballs-2.4.0 aiohttp-3.10.5 aiosignal-1.3.1 annotated-types-0.7.0 anyio-4.4.0 async-timeout-4.0.3 attrs-24.2.0 autopep8-2.3.1 certifi-2024.8.30 charset-normalizer-3.3.2 coverage-7.6.1 exceptiongroup-1.2.2 flake8-7.1.1 frozenlist-1.4.1 grandalf-0.8 greenlet-3.1.0 h11-0.14.0 httpcore-1.0.5 httpx-0.27.2 idna-3.9 iniconfig-2.0.0 jsonpatch-1.33 jsonpointer-3.0.0 langchain-0.3.0 langchain-core-0.3.0 langchain-text-splitters-0.3.0 langgraph-0.2.21 langgraph-checkpoint-1.0.9 langsmith-0.1.120 mccabe-0.7.0 multidict-6.1.0 mypy-1.11.2 mypy-extensions-1.0.0 numpy-1.26.4 orjson-3.10.7 packaging-24.1 pluggy-1.5.0 pycodestyle-2.12.1 pydantic-2.9.1 pydantic-core-2.23.3 pyflakes-3.2.0 pyparsing-3.1.4 pytest-8.3.3 pytest-cov-5.0.0 pytest-mock-3.14.0 requests-2.32.3 runnable_family-0.0.0a2 sniffio-1.3.1 tenacity-8.5.0 tomli-2.0.1 typing-extensions-4.12.2 urllib3-2.2.3 yarl-1.11.1
$ pip list | grep langchain
langchain                0.3.0
langchain-core           0.3.0
langchain-text-splitters 0.3.0
$ git rev-parse HEAD
2348224c17a8be51012154a28f20b8afa303369c
$ mypy runnable_family
runnable_family/loopback.py:122: error: Argument 1 to "add_node" of "Graph" has incompatible type "type[pydantic.v1.main.BaseModel]"; expected "type[pydantic.main.BaseModel] | Runnable[Any, Any]"  [arg-type]
runnable_family/loopback.py:126: error: Argument 1 to "add_node" of "Graph" has incompatible type "type[pydantic.v1.main.BaseModel]"; expected "type[pydantic.main.BaseModel] | Runnable[Any, Any]"  [arg-type]
Found 2 errors in 1 file (checked 9 source files)
$ pip install -U langchain==0.2.16
(OMISSION)
Successfully installed langchain-0.2.16 langchain-core-0.2.40 langchain-text-splitters-0.2.4
$ mypy runnable_family
Success: no issues found in 9 source files


If you do not want the above section, you can remove it.

./java-dsa-bootcamp
It looks too big and the main site is not visible

the banner or the repository details ?

Look, I've removed it
http://aditya-deshmukh.me/Mark-up-Portfolio/

please make a pr in the index.md gh-pages branch, for the same, i'll merge.

Ok I will do it

I have sent a pull request. Just put the banner image on the top it's look good.


[Refactor] Parallelenv uses queues

cc @matteobettini @Blonck

I took the opportunity to investigate why parallel env is so slow and it is due to casting on device.
So I did the casting all at once.
Together with https://github.com/pytorch-labs/tensordict/pull/389 the speed up is about 4x, almost comparable with the CPU version.
With native CUDA envs it should be better.


Implement Gene-sharing Morphic Field mechanism

The Problem
Passing on genetic information from one Suspect being Interrogated to another requires a deterministic mechanism to store the information.
While we can easily achieve this via shared Active memory, like most Genetic Algorithms, it'd be cool to add something akin to a more real-world scenario, albeit a still hypothetical one.
The Proposal
Taking a page out of Rupert Sheldrake's Morphic Field Theory, use something like Redis to store portions of the Genome.
Either fractions or everything like the Akashic Records:

In theosophy and anthroposophy, the Akashic Chronicle is a compendium of all human events, thoughts, words, emotions, and intent ever to have occurred in the past, present, or future. They are believed by theosophists to be encoded in a non-physical plane of existence known as the mental plane.

This wasn't needed because I just implemented plain cloning of the population, relying on epigenetics.


Adding offset and limit filed to user-profile cpi

@abhijitkaranjkar89 Your pull request has a merge conflict. Can you fix that and create a new pull request?


WIP: Move to @fridgefm/inverter

Codecov Report
Patch coverage: 83.19% and project coverage change: +7.09% :tada:

Comparison is base (c6026e1) 78.23% compared to head (025e0ed) 85.33%.

:exclamation: Current head 025e0ed differs from pull request most recent head cc92806. Consider uploading reports for the commit cc92806 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #318      +/-   ##
==========================================
+ Coverage   78.23%   85.33%   +7.09%
==========================================
  Files          21       21
  Lines         363      409      +46
  Branches       57       62       +5
==========================================
+ Hits          284      349      +65
- Misses         40       60      +20
+ Partials       39        0      -39

Files Changed
Coverage Δ

src/providers/events/events.types.ts
0.00% <0.00%> (ø)

src/providers/playlist/playlist.types.ts
0.00% <ø> (ø)

src/providers/queuestream/queuestream.types.ts
0.00% <0.00%> (ø)

src/providers/track/track.types.ts
0.00% <ø> (ø)

src/providers/playlist/playlist.methods.ts
40.00% <40.00%> (ø)

src/providers/events/events.provider.ts
63.63% <63.63%> (ø)

src/providers/queuestream/queuestream.provider.ts
82.50% <82.50%> (ø)

src/providers/playlist/playlist.provider.ts
82.81% <82.81%> (ø)

src/providers/station.ts
92.85% <92.85%> (ø)

src/providers/station/station.provider.ts
96.55% <96.55%> (ø)

... and 5 more

... and 5 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


scripts : Port MRW parser changes from hostboot

hostboot has modified the parser for additional target type which need to be ported over to bmc.
Change-Id: I853f53fcec35c499a39295dd34037f08c9867a95
Signed-off-by: Marri Devender Rao<EMAIL_ADDRESS>

Looks like major change. What is driving this changes now.?

Looks like major change. What is driving this changes now.?

new target

will wait for hostboot to merge the script changes before merging these changes.


Is this library MIT or GPL-3?

These are two different licenses. My project has a transitive dependency on this library via @storybook/manager-api and I would like to be sure about which licenses our dependencies are using to correctly attribute. Thanks!

MIT in LICENSE-MIT file: https://github.com/nbubna/store/blob/master/LICENSE-MIT
(MIT OR GPL-3.0) in package.json file: https://github.com/nbubna/store/blob/master/package.json

Closing as I found the answer here: https://github.com/nbubna/store/issues/88
From what I understand, the downstream project does not need to attribute it explicitly if we simply say that we're using this as an MIT-licensed library?


Old OpenLane version can pass the detail routing but latest version cannot

Description
Hello, with the same design, I happened to find that the old openlane version can pass the detail routing which will make the violations to 0, while the latest openlane cannot pass and remain several violations. I checked the openroad-app commit as well. The old openlane's openroad-app commit is 0b8b7ae255f8fbbbefa57d443949b84e73eed757 while the latest openlane's openroad commit is e036ecfaca4bc0efe88a54085efcf0f562c48a6b. Therefore, I suspect that the issue should be caused by the openroad-app, and believe the mpw-7a commit can work while the other commit cannot. If it is true, how can I find the mpw-7a based openlane and/or switch to mpw-7a with latest openlane? Simply changing the commit in openroad-app with the mpw-7a commit in the latest openlane cannot work and it will warn me to change the environment. I do not have any idea about how to change the environment. Could anyone can point me in the right direction? Thanks!
Environment
The old environment
python3 ./env.py issue-survey
Kernel: Linux v4.15.0-191-generic
Distribution: ubuntu 18.04
Python: v3.6.9 (OK)
Container Engine: docker v20.10.7 (OK)
OpenLane Git Version: a9883335a102c9ba1d862a209a72fc8b4c20c785
pip: INSTALLED
pip:venv: INSTALLED
---
PDK Version Verification Status: OK
---
Git Log (Last 3 Commits)

a988333 2022-06-18T11:53:39+02:00 Enhancements + Bugfixes to Multi-PDK Support (#1138) - Mohamed Gaber -  (HEAD -> master, tag: 2022.06.19_01.37.45)
732c856 2022-06-18T11:22:57+02:00 Fix `skip_basic_prep`, step mechanics (#1143) - Mohamed Gaber -  ()
074a92b 2022-06-14T15:01:11+02:00 Fix Magic Antenna Check (#1142) - Mohamed Gaber -  (tag: 2022.06.15_01.35.48)

The latest environment
python3 ./env.py issue-survey
Kernel: Linux v4.15.0-191-generic
Distribution: ubuntu 18.04
Python: v3.7.13 (OK)
Container Engine: docker v20.10.17 (OK)
OpenLane Git Version: 4476a58407d670d251aa0be6a55e5391bb181c4e
pip: INSTALLED
python-venv: INSTALLED
---
PDK Version Verification Status: OK
---
Git Log (Last 3 Commits)

4476a58 2022-07-29T16:03:10+02:00 Sky130 Enhancements (#1240) - Mohamed Gaber -  (HEAD -> master, tag: 2022.07.30, origin/master, origin/HEAD)
4f63c8c 2022-07-27T17:26:27+02:00 Various CI Fixes (#1235) - Mohamed Gaber -  (tag: 2022.07.28)
0b55101 2022-07-26T20:37:20+02:00 [BOT] Update openroad_app (#1219) - Openlane Bot -  (tag: 2022.07.27)
---
Git Remotes

origin  https://github.com/The-OpenROAD-Project/OpenLane.git (fetch)
origin  https://github.com/The-OpenROAD-Project/OpenLane.git (push)

Reproduction Material
No issue_repoduction directory was produced. Will upload all other files if needed.
Expected behavior
The design should pass detailed routing without violation
Logs
With latest version
[ERROR]: There are violations in the design after detailed routing.
[ERROR]: Total Number of violations is 18
[ERROR]: Flow failed.

@donn is there a doc on how to use the latest OR with a given OL commit?

@maliberty Update the OR commit in dependencies/tool_metadata.yml and invoke BUILD_IF_CANT_PULL=1 make openlane in the OpenLane root folder.

@AyaseErii If it's not too much of a hassle, can you run export CREATE_REPRODUCIBLE_FROM_SCRIPT=droute.tcl before running the flow? This should force a reproducible to be generated.

@maliberty Update the OR commit in dependencies/tool_metadata.yml and invoke BUILD_IF_CANT_PULL=1 make openlane in the OpenLane root folder.
@AyaseErii If it's not too much of a hassle, can you run export CREATE_REPRODUCIBLE_FROM_SCRIPT=droute.tcl before running the flow? This should force a reproducible to be generated.

Thanks! I reproduced the issue by using the command you provided. Plz find the attached repo file:
issue_reproducible.zip
When I tried to invoke BUILD_IF_CANT_PULL=1 make openlane, it showed an error that there is no module named click, then I use pip3 install click to install but it showed an message:
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: click in ./.local/lib/python3.7/site-packages (8.2.0.dev0)
Requirement already satisfied: importlib-metadata in ./.local/lib/python3.7/site-packages (from click) (4.12.0)
Requirement already satisfied: typing-extensions>=3.6.4 in ./.local/lib/python3.7/site-packages (from importlib-metadata->click) (4.3.0)
Requirement already satisfied: zipp>=0.5 in ./.local/lib/python3.7/site-packages (from importlib-metadata->click) (3.8.1)

I really don't know what is the issue. Any suggestions?
Thanks!

@AyaseErii
Share your mpw repo link

@AyaseErii Share your mpw repo link

I am not sure what is the mpw repo link but I put the github repo link here.

I just tried your reproducer with the current head of OR (b983eb1e521644fd33877c14ccd5cdde2b99aa89) and it routed just fine.

@AyaseErii
You can update dependencies/tool_metadata.yml for openroad_app commit with latest one and re-build openlane and try it.
Are you going to submit this to MPW shuttle or just exploring the design with OpenLane flow?

@vijayank88  Let's not confuse users. It is not their responsibility to update OpenROAD in OpenLane, that exists as a developer mechanism.
Also, that particular step won't work anyway.

@maliberty It routes just fine, it just ends up with DRC errors. Does routing "just fine" include no DRC errors?

@donn
I just checked user repo for source config.tcl.
User trying to use mpw-7a tag, but die size more than mpw pre-defined value.
If they're not submitting to mpw shuttle, thought suggesting to use latest OpenLane tag from master repo for quick fix.

@donn
routed just fine means routing completed with no DRC erros.
With latest OR, routing completed without any violations for attached issue_reproducible
[INFO DRT-0199]   Number of violations = 0.
[INFO DRT-0267] cpu time = 00:00:01, elapsed time = 00:00:00, memory = 5806.96 (MB), peak = 6342.12 (MB)

Then yeah, I need to update OR again

Thanks for the help. I tried to re-build the OpenLane. However, I meet this error when I use make in the OpenLane directory after git-clone the tool.
make[1]: Entering directory '/home/htf6ry/OpenLane'
57f3f21d6e1d0403a88d7a7973f7447597aae160: Pulling from efabless/openlane
Digest: sha256:0b9a27fe51d8d709e77f653c39dd1244738885d0d39fdefd81a272824a33b46f
Status: Image is up to date for efabless/openlane:57f3f21d6e1d0403a88d7a7973f7447597aae160
docker.io/efabless/openlane:57f3f21d6e1d0403a88d7a7973f7447597aae160
make[1]: Leaving directory '/home/htf6ry/OpenLane'
rm -rf ./venv
python3 -m venv ./venv
Error: Command '['/home/htf6ry/OpenLane/venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
Makefile:130: recipe for target 'venv/created' failed
make: *** [venv/created] Error 1

I do not have any idea what happened....

The pip issue has been solved since I happened to find changing include-system-site-packages = false to include-system-site-packages = true in OpenLane/venv/pyvenv.cfg before using make will solve the issue.
Now the issue is I cannot even pass the PDN step with the same design and same parameters (which you guys ran the flow and confirmed it can pass DRC). I put the issue_repo and error message here:
issue_reproducible.zip
[STEP 7]
[INFO]: Generating PDN (log: designs/fpga_core/runs/RUN_2022.08.18_16.14.21/logs/floorplan/7-pdn.log)...
[ERROR]: during executing openroad script /openlane/scripts/openroad/pdn.tcl
[ERROR]: Log: designs/fpga_core/runs/RUN_2022.08.18_16.14.21/logs/floorplan/7-pdn.log
[ERROR]: Last 10 lines:
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (190.400um, 78.880um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (204.000um, 78.880um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (217.600um, 78.880um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (176.800um, 73.440um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (190.400um, 73.440um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (204.000um, 73.440um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (217.600um, 73.440um), layer: 2.
[ERROR PSM-0069] Check connectivity failed.
Error: pdn.tcl, 51 PSM-0069
child process exited abnormally

Any suggestions? Thanks!

There is a known bug in check_connectivity which is currently being worked on.  It is possible that this is a false positive though I haven't checked specifically.  Do you have any macros in your design?

@VidyaChhabria this may be the same as what you are looking at.

@maliberty Thanks for the reply! Yes, I believe the design includes many macros. You may find the Github design repo here.

Then I suspect this should wait for @VidyaChhabria fix.  Until then I suggest you just turn off check_connectivity and rely on LVS to check.

This should be resolved once this PR-2169 goes through and openroad is bumped up.

Done.

This should be resolved once this PR-2169 goes through and openroad is bumped up.

Done.

This should be resolved once this PR-2169 goes through and openroad is bumped up.

Thanks for the update! Should I update the OpenLane with the commands below?
    cd OpenLane/
    git checkout master
    git pull
    make
    make test # This is to test that the flow and the pdk were properly updated

Hi, I did a quick test after using the update commands, but it still shows the connectivity errors.... I attached the issue_repo and the error log below:
issue_reproducible.zip
[STEP 7]
[INFO]: Generating PDN (log: designs/fpga_core/runs/RUN_2022.08.22_20.38.54/logs/floorplan/7-pdn.log)...
[ERROR]: during executing openroad script /openlane/scripts/openroad/pdn.tcl
[ERROR]: Log: designs/fpga_core/runs/RUN_2022.08.22_20.38.54/logs/floorplan/7-pdn.log
[ERROR]: Last 10 lines:
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (190.400um, 78.880um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (204.000um, 78.880um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (217.600um, 78.880um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (176.800um, 73.440um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (190.400um, 73.440um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (204.000um, 73.440um), layer: 2.
[WARNING PSM-0038] Unconnected PDN node on net VPWR at location (217.600um, 73.440um), layer: 2.
[ERROR PSM-0069] Check connectivity failed.
Error: pdn.tcl, 51 PSM-0069
child process exited abnormally

[ERROR]: Creating issue reproducible...

A fix for the connectivity checker issue just went in today to OR.

Should be okay now- feel free to re-open


Unable to install sqlite3 using npm

I am new to node.js and trying to install sqlite3 using npm inside my project . But I am getting below error . Could anyone please help ?
node version - v10.16.0
npm version - 6.9.0
Package.json :
"version": "1.0.0",
"description": "==================================================================================================",
"main": "server.js",
"dependencies": {
"express": "^4.16.3",
"formidable": "^1.2.1",
"node-pre-gyp": "^0.9.0",
"socket.io": "^2.0.4",
"sqlite3": "^4.0.9"
},
"devDependencies": {},
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"start": "node server.js"
},
"author": "",
"license": "ISC"
Error -

node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Pre-built binaries not installable for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error unable to get local issuer certificate
Traceback (most recent call last):
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 16, in
sys.exit(gyp.script_main())
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 545, in script_main
return main(sys.argv[1:])
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 538, in main
return gyp_main(args)
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 514, in gyp_main
options.duplicate_basename_check)
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp_init_.py", line 98, in Load
generator.CalculateVariables(default_variables, params)
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 1916, in CalculateVariables
generator_flags.get('msvs_version', 'auto'))
File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\MSVSVersion.py", line 434, in SelectVisualStudioVersion
versions = _DetectVisualStudioVersions(version_map[version], 'e' in version)
KeyError: '2017'
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! node -v v10.16.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

yeah, Im having the same issue. Help would be appreciated

Looks like a problem with the way windows handles self signed ssl certificates. Could you read through this issue https://github.com/nodejs/help/issues/979 and see if it help.
A notable comment:

Your company's proxy seems to use a certificate that is signed by a custom CA. Update the cafile property in your npm config or run npm install --cafile  oracledb; the file should be in pem format. If you don't know what the certificate is, contact your network administrator; he or she can provide you with a copy.

Would you be able to try with the latest version - v5.0.3? 🙂


fix: use alpine image

fixes issue #2 by reducing the size from 1,1GB down to 229MB

Very nice! Hope this can be merged and a new image built from it soon.

I also analysed the image: the library folder with 42 MB is small, so the majority of the image is still the language node (I think alpine is about 5 MB). If you want an even smaller image, you need another implementation. But 229 MB should be fine for most people.

Thanks


please update repo with sqlite code from Python 3.7 (backup API)

I'd like to use sqlite's backup API which was exposed in Python 3.7. As written in the README this repo is based on Python 3.6. Is it possible to upgrade the repo?

The backup API is already present.

Thank you for the quick response and sorry for wasting your time. I just assumed the API is not present as Python 3.6 does not provide it.


Feature Request: style floating rows

Is there a way to style the floating rows, something like floatCellStyle ? I see that there is a floatingCellRenderer but nothing specifically for the styles.
Also, is it possible to add a template for ag-floating-bottom?
I'd like to add a header (div) just above the ag-floating-bottom (floating rows) so that I can clearly indicate to the end user that this data is different than the data in the above portion of the grid. Is this possible?

use css - easiest way is to inspect the dom and see what you want to style.
eg you can use the css class ag-floating-bottom-container


Single catalog for granules in multiple collections

Requires collection in stac.json to be a legitimate unity collection
Question: Would we still want to support single COLLECTION_ID environment for stage out?

I think this is fixed by https://github.com/unity-sds/unity-data-services/issues/437
Since we are getting collection id from granules stac, we don't care if they are the same.

Actually, we have to update our automated ingestion to create multiple collections..


How to use pdf.js with Apache Cordova

Configuration:

Web browser and its version: Cordova 9.x
PDF.js version: happens on 3.5.141

For my application, I use the nextjs with Cordova for building an application. Then I want to use pdfjs to display pdf file to the users. However, there are two errors occur.

btw, my app works for chrome(mobile version), firefox(mobile version).
How can i fix it? Thank you for your help.

Web browser and its version: Cordova 9.x

As far as I can tell that's actually a JavaScript framework and not a browser. Please keep in mind that we unfortunately cannot provide help/support for the myriad of JS frameworks that exist.

However, there are two errors occur.

Have you tried using a legacy-build of the PDF.js library, since that's often required in older browsers?


[Bug] exception when deserialize openid provider configuration in net8.0.100-rc.1

Which version of Microsoft.IdentityModel are you using?
using Microsoft.IdentityModel <IP_ADDRESS>929
Where is the issue?

[ ] M.IM.JsonWebTokens
[ ] M.IM.KeyVaultExtensions
[ ] M.IM.Logging
[ ] M.IM.ManagedKeyVaultSecurityKey
[ ] M.IM.Protocols
[x] M.IM.Protocols.OpenIdConnect
[ ] M.IM.Protocols.SignedHttpRequest
[ ] M.IM.Protocols.WsFederation
[ ] M.IM.TestExtensions
[x] M.IM.Tokens
[ ] M.IM.Tokens.Saml
[ ] M.IM.Validators
[ ] M.IM.Xml
[ ] S.IM.Tokens.Jwt
Other (please describe)

Is this a new or an existing app?
We are developing an app and switched to net8.RC recently. But in net8 the Authorization server metadata couldn't get parsed any longer. Probably because of a upper case letter in the json configuration properties.
Repro
We are using the OpenIdConnect middleware for oauth authentification.
using in conjunction with net7 works fine but using 8.0.100-rc.1.23455.8 fails with the exception appended at the end. Maybe it is problem of the underlying json deserializer.
Our oauth providers , I guess a bit special, configuration 🙄 returns the property Response_modes_supported twice. One starts with an upper case "R" which  seems to be the problematic character.
https://[identity.myurl.com/oauth2/token/.well-known/openid-configuration](https://identity.myurl.com/oauth2/token/.well-known/openid-configuration)
{
    "request_parameter_supported": true,
    "claims_parameter_supported": true,
    "introspection_endpoint": "https://identity.xxxx.com:443/oauth2/xxx",
    "Response_modes_supported": [
        "query",
        "fragment",
        "form_post"
    ],
    "response_modes_supported": [
        "query",
        "fragment",
        "form_post"
    ],
}

Expected behavior
I expect to be able to use the oauth provider with net8 like in net7.
Our oauth provider is quite reluctant to change anything so I hope it is possible to make net8 at this point compatible to net7
Actual behavior
OpenIdConnectConfigurationSerializer throws an exception when trying to deserialize the oauth provider configuration
Possible solution

Additional context / logs / screenshots / links to code
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
      An unhandled exception has occurred while executing the request.
      System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://identity-t.myurl.com/oauth2/token/.well-known/openid-configuration'. Will retry at '10/04/2023 09:25:11 +00:00'. Exception: 'System.Text.Json.JsonException: IDX11022: Expecting json reader to be positioned on 'JsonTokenType.StartArray', reader was positioned at: 'String', Reading: 'Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration.response_modes_supported', Position: '177', CurrentDepth: '2', BytesConsumed: '184'.
         at Microsoft.IdentityModel.Tokens.Json.JsonSerializerPrimitives.ReadStrings(Utf8JsonReader& reader, ICollection`1 strings, String propertyName, String className, Boolean read)
         at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationSerializer.Read(Utf8JsonReader& reader, OpenIdConnectConfiguration config)
         at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationSerializer.Read(String json, OpenIdConnectConfiguration config)
         at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationSerializer.Read(String json)
         at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.GetAsync(String address, IDocumentRetriever retriever, CancellationToken cancel)
         at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)'.
       ---> System.Text.Json.JsonException: IDX11022: Expecting json reader to be positioned on 'JsonTokenType.StartArray', reader was positioned at: 'String', Reading: 'Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfiguration.response_modes_supported', Position: '177', CurrentDepth: '2', BytesConsumed: '184'.
         at Microsoft.IdentityModel.Tokens.Json.JsonSerializerPrimitives.ReadStrings(Utf8JsonReader& reader, ICollection`1 strings, String propertyName, String className, Boolean read)
         at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationSerializer.Read(Utf8JsonReader& reader, OpenIdConnectConfiguration config)
         at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationSerializer.Read(String json, OpenIdConnectConfiguration config)
         at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationSerializer.Read(String json)
         at Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.GetAsync(String address, IDocumentRetriever retriever, CancellationToken cancel)
         at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
         --- End of inner exception stack trace ---
         at Microsoft.IdentityModel.Protocols.ConfigurationManager`1.GetConfigurationAsync(CancellationToken cancel)
         at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsyncInternal(AuthenticationProperties properties)
         at Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler.HandleChallengeAsync(AuthenticationProperties properties)
         at Microsoft.AspNetCore.Authentication.AuthenticationHandler`1.ChallengeAsync(AuthenticationProperties properties)
         at Microsoft.AspNetCore.Authentication.AuthenticationService.ChallengeAsync(HttpContext context, String scheme, AuthenticationProperties properties)
         at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.<>c__DisplayClass0_0.<<HandleAsync>g__Handle|0>d.MoveNext()
      --- End of stack trace from previous location ---
         at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
         at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
         at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
info: Microsoft.Hosting.Lifetime[0]
      Application is shutting down...
exited with code 0

@Sebbstar we see the problem, should have a fix out soon.

@Sebbstar this was fixed with  https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/pull/2491
We should have a release out soon.

@brentschmaltz  is it really fixed and released?
I have net 8 sdk 8.0.303 and NET 8.0.8 and also have an issue where both  Response_modes_supported and response_modes_supported are contained in the openid provider configuration.

@brentschmaltz is it really fixed and released?
I have net 8 sdk 8.0.303 and NET 8.0.8 and also have an issue where both Response_modes_supported and response_modes_supported are contained in the openid provider configuration.

the issue was, then even I used

it pulled Microsoft.IdentityModel.Protocols.OpenIdConnect 7.1.2 and dependencies.
I had to add

to my csproj file, now it works :-)


Add snapshot creation and deletion

This commit introduces the ability to add and delete hbase snapshots via the
admin client.
Due to the snapshot API being slightly different to other admin calls, we introduce a new option SnapshotValidateInterval which allows us to know when the Snapshot has been created.
One slight oddity of behavior can come if SnapshotValidateInterval is long enough that a context deadline is hit during creation even though the snapshot was created. I decided to always delete in this case -- but perhaps it would be better to return with no error. Let me know what you think.

All comments addressed. I force pushed to keep it as a single commit -- hope that's good for you.


AdditionalDateClassesFunc does not work with MudDateRangePicker

Bug type
Component
Component name
MudDateRangePicker
What happened?
AdditionalDateClassesFunc does not work on MudDateRangePicker. Works as expected on MudDatePicker
Expected behavior
Works as per MudDatePicker.
Reproduction link
https://try.mudblazor.com/snippet/maGxuFwxoJpcNTIE
Reproduction steps
<MudDateRangePicker AdditionalDateClassesFunc="(_) => someClass"/>
@code { string someClass="myClass" }

Relevant code:
Date picker, obvious references to AdditionalDateClassesFunc
https://github.com/MudBlazor/MudBlazor/blob/50ff5d7ed1fff47ad16004b498ec3209b0e7d565/src/MudBlazor/Components/DatePicker/MudDatePicker.cs#L70
Range date picker, no reference to AdditionalDateClassesFunc
https://github.com/MudBlazor/MudBlazor/blob/50ff5d7ed1fff47ad16004b498ec3209b0e7d565/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs#L172
Version (bug)
6.1.7
Version (working)
No response
What browsers are you seeing the problem on?
Chrome
On what operating system are you experiencing the issue?
Windows
Pull Request

[X] I would maybe like to do a Pull Request

Code of Conduct

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

DatePickerTests.AdditionalDateClassesFunc_ClassIsAdded() is also a dud test. The rendered HTML of this does NOT include the popup, which is what should actually be tested. Here is the HTML after Context.RenderComponent<MudDatePicker>. As you can see it does not contain button.mud-picker-calendar-day, which is what the test asks for. It is a false positive test.

            <input class="mud-input-slot mud-input-root mud-input-root-text mud-input-root-adorned-end" blazor:onclick="1" type="text" blazor:oninput="2" blazor:onchange="3" readonly blazor:onblur="4" inputmode="text" blazor:onkeydown="5" blazor:onkeypress="6" blazor:onkeyup="7" maxlength="524288" aria-invalid="false" blazor:elementReference="711c5d68-18f5-4afc-b32b-a4359ae55130"></input>

               <button aria-label="Open Date Picker" tabindex="-1" blazor:onclick="9" type="button" class="mud-button-root mud-icon-button mud-ripple mud-ripple-icon mud-icon-button-edge-end" blazor:onclick:stopPropagation blazor:elementReference="">

                     <svg class="mud-icon-root mud-svg-icon mud-icon-size-medium" focusable="false" viewBox="0 0 24 24" aria-hidden="true">
                        <path d="M0 0h24v24H0z" fill="none"/>
                        <path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/>
                     </svg>

               </button>


add c8 codecov + CI step.

C8 is a life saver. What I did so far:

add coverage enforcement in travis
coverage for both unit & int tests
serve coverage HTML report in GET /coverage backend endpoint

But when we generate the report, it doesn't seem to have any functionality to merge code cov stats from unit and integration tests to become one. We want this so that we can just check the global code coverage percentages on both tests.
If merging the codecovs don't work, then I guess we can just run both tests in an npm test and run c8 on that single command. This works too. Perhaps a:

c8 bash -c "npm run unit-test; npm run integration-test"

might work as a last resort?

UPDATE: We decided not to combine both unit and integration code coverage info. Keeping it separate. This is good so that we can see which tests of what kind are lacking


Change session options in the model

Hi,
I am getting the following errors when running the model:
2021-02-04 17:56:45.145404: E tensorflow/stream_executor/cuda/cuda_driver.cc:328] failed call to cuInit: CUDA_ERROR_OUT_OF_MEMORY: out of memory

(...)

terminate called after throwing an instance of 'std::runtime_error'
  what():  Default MaxPoolingOp only supports NHWC on device type CPU
         [[{{node release_schaefer_net/schaefer_net_core_layer/max_pool/MaxPool}}]]
Aborted (core dumped)

The first one says that my graphic card has not enough Ram (4Gb). However, TF then tries to run the model on CPU, but there, it says the input shape or dimentions is not supported by the operation. I tried several stuff, but couldn t run the model. Since I could not get rid of this error, I decided to try to solve the GPU error. I found a solution for the cpp API, but I need to apply it in the cppflow framework. I couldn t find an easy way, it seems it has to be done in the model.h, where the session is created. If anyone has an idea, let me know.
A general idea would be to provide an interface to the user to add such configurations.
https://stackoverflow.com/questions/43503409/tensorflow-cuda-error-out-of-memory
int main()
{
    // Default MaxPoolingOp only supports NHWC on device type CPU, hence required shape is used
    // N: number of images in the batch
    // H: height of the image
    // W: width of the image
    // C: number of channels of the image (ex: 3 for RGB, 1 for grayscale...)
    auto input_1 = cppflow::fill({1,64, 7521}, 1.0f);
    auto input_2 = cppflow::fill({1,64, 7521}, 1.0f);

    cppflow::model model("/home/lsm1so/challenge/cppflow/");

    auto output = model(
        {{"serving_default_distance:0", input_1}, {"serving_default_intensity:0", input_2}},
        {"StatefulPartitionedCall:0", "StatefulPartitionedCall:1", "StatefulPartitionedCall:2", "StatefulPartitionedCall:3"}
    );

    std::cout << output << std::endl;
    return 0;
}

You need to set a new context as below.
https://github.com/serizba/cppflow/blob/2ede4179895100a06d0e7d67aadfac4e6a78b909/include/cppflow/context.h#L44-L50
For constructing the options, please refer to https://github.com/serizba/cppflow/blob/master/examples/load_model/create_config_options.py
and
https://github.com/tensorflow/tensorflow/blob/ff9b8bd8f72aea93fd65ec025aef26f501048679/tensorflow/c/eager/c_api.h#L53
For NHWC order, I believe you need to change the model too. E.g, transpose the tensor from NCHW to NHWC.

Hi, thanks for your reply! I was able to compile the code with the new GPU configurations, but I still get the GPU out of memory error. I tried with the following configs:
GPU memory to be used:  80.0 %
enable_memory_growth = True
{0x32,0xb,0x9,0x9a,0x99,0x99,0x99,0x99,0x99,0xe9,0x3f,0x20,0x1}
GPU memory to be used:  50.0 %
enable_memory_growth = True
{0x32,0xb,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0xe0,0x3f,0x20,0x1}
GPU memory to be used:  10.0 %
enable_memory_growth = True
{0x32,0xb,0x9,0x9a,0x99,0x99,0x99,0x99,0x99,0xb9,0x3f,0x20,0x1}
Do you know a way to check how much memory is missing. If I remember properly, with the pytorch training infrastructure, you get which chunk size of data created the memory overflow. I would like to know I I also ran out of CPU Ram, or if there is an issue with my model/input tensor, and I will always get this error.
int main()
{
    // Default MaxPoolingOp only supports NHWC on device type CPU, hence required shape is used
    // N: number of images in the batch
    // H: height of the image
    // W: width of the image
    // C: number of channels of the image (ex: 3 for RGB, 1 for grayscale...)
    auto input_1 = cppflow::fill({1, 64, 752, 1}, 1.0f);
    auto input_2 = cppflow::fill({1, 64, 752, 1}, 1.0f);

    // Changing the configuration, allowing memory growth.
    TF_Status *status = TF_NewStatus();
    TFE_ContextOptions *tfe_opts = TFE_NewContextOptions();
    uint8_t config[13] = {0x32, 0xb, 0x9, 0x9a, 0x99, 0x99, 0x99, 0x99, 0x99, 0xb9, 0x3f, 0x20, 0x1};
    TFE_ContextOptionsSetConfig(tfe_opts, (void *) config, sizeof(config) / sizeof(config[0]), status);
    cppflow::get_global_context() = cppflow::context(tfe_opts);

    cppflow::model model("/home/lsm1so/challenge/cppflow/");
    auto output = model(
        {{"serving_default_distance:0", input_1}, {"serving_default_intensity:0", input_2}},
        {"StatefulPartitionedCall:0", "StatefulPartitionedCall:1", "StatefulPartitionedCall:2", "StatefulPartitionedCall:3"}
    );

    std::cout << output << std::endl;

    // auto values = output.data();

    // for (auto v : values)
    // {
    //     std::cout << v << std::endl;
    // }
    return 0;
}

I guess you need to disable gpu completely if it does not have enough
memory.
In my experience, the required memory is usually slightly larger than the
model file size. To my knowledge, the only way to know the exact required
ram usage is to load it on a gpu with sufficient ram.
On Thu, Feb 4, 2021, 14:05 sebaleme<EMAIL_ADDRESS>wrote:

Hi, thanks for your reply! I was able to compile the code with the new GPU
configurations, but I still get the GPU out of memory error. I tried with
the following configs:
GPU memory to be used: 80.0 %
enable_memory_growth = True
{0x32,0xb,0x9,0x9a,0x99,0x99,0x99,0x99,0x99,0xe9,0x3f,0x20,0x1}
GPU memory to be used: 50.0 %
enable_memory_growth = True
{0x32,0xb,0x9,0x0,0x0,0x0,0x0,0x0,0x0,0xe0,0x3f,0x20,0x1}
GPU memory to be used: 10.0 %
enable_memory_growth = True
{0x32,0xb,0x9,0x9a,0x99,0x99,0x99,0x99,0x99,0xb9,0x3f,0x20,0x1}
Do you know a way to check how much memory is missing. If I remember
properly, with the pytorch training infrastructure, you get which chunk
size of data created the memory overflow. I would like to know I I also ran
out of CPU Ram, or if there is an issue with my model/input tensor, and I
will always get this error.
int main()
{
// Default MaxPoolingOp only supports NHWC on device type CPU, hence required shape is used
// N: number of images in the batch
// H: height of the image
// W: width of the image
// C: number of channels of the image (ex: 3 for RGB, 1 for grayscale...)
auto input_1 = cppflow::fill({1, 64, 752, 1}, 1.0f);
auto input_2 = cppflow::fill({1, 64, 752, 1}, 1.0f);
// Changing the configuration, allowing memory growth.
TF_Status *status = TF_NewStatus();
TFE_ContextOptions *tfe_opts = TFE_NewContextOptions();
uint8_t config[13] = {0x32, 0xb, 0x9, 0x9a, 0x99, 0x99, 0x99, 0x99, 0x99, 0xb9, 0x3f, 0x20, 0x1};
TFE_ContextOptionsSetConfig(tfe_opts, (void *) config, sizeof(config) / sizeof(config[0]), status);
cppflow::get_global_context() = cppflow::context(tfe_opts);

cppflow::model model("/home/lsm1so/challenge/cppflow/");
auto output = model(
    {{"serving_default_distance:0", input_1}, {"serving_default_intensity:0", input_2}},
    {"StatefulPartitionedCall:0", "StatefulPartitionedCall:1", "StatefulPartitionedCall:2", "StatefulPartitionedCall:3"}
);

std::cout << output << std::endl;

// auto values = output.data();

// for (auto v : values)
// {
//     std::cout << v << std::endl;
// }
return 0;

}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/serizba/cppflow/issues/93#issuecomment-773536876, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AALDTHWUR66VENDEZFYHY5LS5LVW5ANCNFSM4XDGGF5Q
.

Hi,
I was having one more comment:
2021-02-05 09:45:28.838794: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file or directory; LD_LIBRARY_PATH: /opt/ros/melodic/lib:/usr/local/cuda-10.1/lib64
I just installed Cuda 11.0, since it might have explained the CUDA_ERROR_OUT_OF_MEMORY error. But no, now I have TF 2.4 and Cuda 11.0, but still, GPU cannot be used with my model. Maybe it is too big, but then, I don t see why the option enable_memory_growth do not help.
Sebastien

Hi @sebaleme
To see if I understood it correctly:
You created a model using the last piece of code that you show in your comment.

Is that correct?

Closing due to lack of activity.


JAMES-3730 Upgrade from Legacy JavaMail to Jakarta Mail 2.0.1/Activation 2.0.1

I started with the branch in #939, rebased it, and just did minor fixes so that mvn clean install passes, I'm reopening this PR to see if your CI agrees.
I didn't experience the blocking issue referenced in #939, so I assume it was fixed by another commit.

Love it, thank you so much!

Apart from the commits from the previous PR, the commit I authored contains missing import replacements and code style required by the build.

I have started reiewing in details so far no blockers but a few comments ( possibly pre-existing issues about bouncy castle jdk15on mentions where the main pom references jdk18on) please give me a bit of time to complete my reading

I fixed your comments @jeantil in 95a98fa and fixed in 781b430 other formatting issues that I found.
The CI build failed because of subethasmtp which was still using the old JavaMail, so it has been updated to the latest version to support Jakarta Mail in c13a1f4.
mvn clean install works again for me on my end but the issue doesn't seem to not be deterministic as it was already working before so hopefully this will fix everything.

I have pushed a new commit that changes the Jakarta activation and mail implementations from com.sun to org.eclipse.angus, mainly because:

The com.sun.activation and com.sun.mail implementations are now considered to be obsolete and the org.eclipse.angus implementations are their successors.
Pulsar still uses the old com.sun.activation:javax.activation implementation and with the previously added com.sun.activation:jakarta.activation implementation, it could theoretically have led to class loading conflicts but not with Angus' since it does not have the same class names.

I just readded the org.eclipse.angus:angus-mail exclusion as its classes are already included in org.eclipse.angus:jakarta.mail.


Add new rllib agent

The new agent adapts to ray >= 1.13.0
Changes in DRL_prediction function. The function returns a rllib_agent which can output actions according to the saved model and input observations so that we can customize our backtest process with our environment now.
You may find the demo code on using the agent here.

thanks for your effort.
if the new code is better, can we replace the old version?

Hi! I have replaced the old version with the new one. In case this action make conflicts, I kept the old version below and renamed it with DRLAgent_old. We may delete it if no one raises any issues after several months. Please check it out again. Thank you!

ok


Channels stuck in a 'pending' state

I'm occasionally seeing messages "Connection not established. Add message to queue.", which is based off the channel still being in a 'pending' state, meaning the code never received a 'subscribed' message from the server.
BUT I am seeing the ActionCable server did send that subscribed message! I'm not sure why py-actioncable isn't receiving this subscribed message, and therefore pulling the channel out of 'pending'.
I see this issue locally and when talking to a dockerized server. I'd love to provide sample code, but it's a little hard to reproduce. This dance works flawlessly the first time, and generally happens when there is an unhealthy connection ping, and py-actioncable attempts to reconnect.
Do you get this issue as well sometimes?

No, I don't have this problem. Do you have upgraded to the most recent version?

Hi! Iḿ having a similar problem, i get connected to my localhost server but my subscription is stuck at pennding state, so i do not recieve any messages nor can send them.
`from actioncable.connection import Connection
from actioncable.subscription import Subscription
connection = Connection(url='ws://localhost:3000/cable', origin='http://localhost:3000')
connection.connect()
sleep(3)
print(connection.connected) #this is True
subscription = Subscription(connection, identifier={'channel': 'RaspiCommChannel'})
subscription.create()`
If I check subscription state is 'pending' allways.
I try it from python console, using Python 3.7.2.
Can you help me please? Thanks!


test: behaviors-message_on_lock_failure (2024-02-08 01:44:25.272298+00:00)

automatic test cleanup


How are we supposed to use MessageSender class?

Hi everyone,
The API isn't really very well document if you ask me, I need to delete all messages by sender id.
I have the user id, now the class itself doesn't tell you anything on how it supposed to be used.
I am trying to call DeleteChatMessagesBySenderAsync which expect a chat id and a MessageSender
That class has two very vague and confusing properties DataType and Extra I tried to supply the value userId in all possible combination, it keeps giving me exception that the value is wrong and it's not in json format, but the question is: "What is the correct value format??"
It would be really nice to have a clear documentation as for now it's like trial and error which is a waste of time for everybody, the dev, the people, the maintainers, everyone.
I would appreciate the help
Thanks in advance.

Messages can be sent by users, or on behalf of chats. Therefore, MessageSender can be either messageSenderUser or messageSenderChat: https://github.com/tdlib/td/blob/8951949ece7b62bb0efe0025b1d12aa90e579071/td/generate/scheme/td_api.tl#L1134-L1140
If you want to delete all messages sent by a user, then you need to pass messageSenderUser with the corresponding user_id to the method.
For general TDLib usage see https://core.telegram.org/tdlib/getting-started. There you can find a lot of links to documentation and can understand, how the wrapper for your programming language works.


Add Zenodo integration

@jarbesfeld said he completed this. Once we make a new release, we can close this.


Acacia Testnet (2.0.0) release

Closes #257 #252 #221 #272 #266 #246

Better handling opening a context without an account. Update storage node consent message.
Support CouchDB token auth for public and encrypted databases.
Include token with user permissions
Add more progress
Adding context auth interface
Remove redundant contextAuth
Core authJWT refactor complete. Still need edge cases and fixing some tests.
Fix deprecated substr() reference
Update context name
Support manual injection of contxt name
Move getAuthContext into account. Refactor.
Support caching auth contexts
Refactor auth context to be implemented in account instance. Better separation of auth context and client operations.
Support managing auth contexts and disconnecting devices. Support Auth Context Account type to help with testing.
Refactor to support authentication retry when access / refresh token expires.
Support getAuthContext in vault-account (untested)
Fix typescript issues.
Cache opened databases to avoid opening multiple and creating lots of open sockets.
Support account-web-vault handling invalid access token or refresh token.
Fix error handling with promises
Fix refresh token expiry with account-node
Support deviceId and wallet connect params when logging in.
Validate access and refresh tokens when auto-logging in.
Update HTTP status code checks to match changes in storage-node.
Add INVALID_ENDPOINTS to testing config
Replace deviceId with userAgent
Point to live docs
Support server <> server replication
Implement Verida DID method
Support DID Document storage

Looking forward to this!

IT IS DONE!
BUIDL.

IT IS DONE!
BUIDL.

Congrats @tahpot !


Add a lint: avoid_circular_package_deps

This would be useful as a lint in a mono_repo type package, where you may have several sub-packages inside of a single repository (and sharing a single analysis_options.yaml), but want to prevent packages from accidentally having circular dependencies on each other.
Consider:
# a/pubspec.yaml
name: a
dependencies:
  // LINT: avoid_ciaruclar_package_deps: Package b (../b) has a dependency on this package.
  b:

# b/pubspec.yaml
name: b
dependencies:
  // LINT: avoid_ciaruclar_package_deps: Package a (../a) has a dependency on this package.
  a:

We might want to allow dev_dependencies, since that is normally for tests only.
WDUT @natebosch @kevmoo?

I think this would be cool. I don't know if analyzer today has any understanding of package dependencies. We could also consider adding this as as a pre-publish warning in pub.
Even in pub this necessarily can't be perfect, but I don't know if that should stop us from a best effort.
We can only check against the package versions you already have resolved, it would be really expensive, I think, to check against all published versions or something like that. Even if we check against all published versions someone could go and publish a new version of package:b with a new dep and introduce the issue outside of package:a's control.

I think I would do this pretty simply, and just look at pubspec.yaml of resolved packages.

This likely belongs in pkg:linter repo.
SGTM in the abstract. We'd want to be clear if it only handles direct
dependency cycles vs transitive – transitive dep cycles could
appear/disappear after publish, for instance.
Also, we should call out it's probably fine for A have a dev_dep on B which
has a normal dep on A.
Like pkg:collection -> dev_dep -> test -> normal dep -> collection, etc
On Thu, Sep 6, 2018 at 1:39 PM Matan Lurey<EMAIL_ADDRESS>wrote:

I think I would do this pretty simply, and just look at pubspec.yaml of
resolved packages.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/sdk/issues/34394#issuecomment-419233531,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABCihcND4_cigMaPOmZBXy4mPtTdlXcks5uYYf9gaJpZM4Wdqpk
.

Is that the case? There are many linter issues recorded/requested here.
I'm happy to move it, though.

The analyzer team is happy to have lint suggestions in either repository.


calling setAllCaps(true) twice results in non-uppercased text

If I do this on a regular textview, the expected all caps is properly applied

Does this occur with AutofitTextView or a regular TextView with AutofitHelper?


Smarter bundle pushing

Move the bundle pushing to a bash script that detects if a push is needed. Copy the technique used in build-definitions repo, see hack/build-and-push.sh.

The workflow is untested.

Codecov Report

Merging #251 (2e04dba) into main (48e2258) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

@@            Coverage Diff            @@
##              main      #251   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           66        66
  Lines         1660      1660
=========================================
  Hits          1660      1660

Impacted Files
Coverage Δ

policy/lib/rule_data.rego
100.00% <ø> (ø)

New revision now will create a single PR when both bundles change. I still haven't properly tested it in the workflow, but I'm thinking let's test in prod.. :smiling_imp: .

Seems to be working:

https://github.com/redhat-appstudio/infra-deployments/pull/1148
https://github.com/hacbs-contract/ec-policies/actions/runs/3906274271/jobs/6674261394

But, as @zregvart mentioned in #1136 there's a test failing. I filed https://issues.redhat.com/browse/HACBS-1613 about fixing that.


Use glog version 0.6.0 in setup-centos8 script

See glog.cmake where 0.6.0 is used. I think we should use this consistent version in setup script.
https://github.com/facebookincubator/velox/blob/main/CMake/resolve_dependency_modules/glog.cmake#L16

@majetideepak, could you review this small fix? Thanks!

@kgpai Can you please help merge this? Thanks.

Friendly ping @kgpai. Thanks!


Spelling is incorrect in home page

🐛 Bug Report
Describe the bug
The spelling in the home page is incorrect
To Reproduce
Steps to reproduce the behavior:
I will change the spelling
Expected behavior
Spelling should be recursion
Screenshots

Would you like to work on this issue?

[x] Yes
[ ] No

@ajay-dhangar review this and assign me to fix this.

@ajay-dhangar please give me hacktober tag!


config for disable oraxen automatic merging

After updating oraxen automatic merging feature, hash value of the resourcepack will continue to change whenever i reload Oraxen without any changes.
so i want config for disable oraxen automatic merging.
thank you for making betterhud :)
> o reload all
[17:33:39 INFO]: Oraxen | Successfully reloaded
[17:33:39 INFO]: Oraxen | Updating all items in player-inventories...
[17:33:39 INFO]: Oraxen | Resourcepack successfully regenerated
[17:33:40 INFO]: Oraxen | Slicing gui-textures to 1.20.2-format...
[17:33:40 INFO]: Oraxen | Successfully sliced gui-textures for 1.20.2
[17:33:41 INFO]: Oraxen | Converting global lang file to individual language files...
[17:33:41 INFO]: Oraxen | Verifying formatting for textures and models...
[17:33:41 INFO]: Oraxen | No broken models or textures were found in the resourcepack
[17:33:41 INFO]: Oraxen | Generating atlas-file for 1.19.3+ Resource Pack format
[17:33:41 INFO]:
[17:33:41 INFO]: Oraxen | No duplicate font files found!
[17:33:41 INFO]:
[17:33:41 INFO]: Oraxen | Successfully reloaded
[17:33:41 INFO]: Oraxen | Successfully reloaded
[17:33:41 INFO]: [BetterHud] New lang file loaded: en_US
[17:33:41 INFO]: [BetterHud] New lang file loaded: ko_KR
[17:33:41 INFO]: [BetterHud] New lang file loaded: ja_JP
[17:33:41 INFO]: [BetterHud] New lang file loaded: vi_VN
[17:33:41 INFO]: [BetterHud] New lang file loaded: zh_CN
[17:33:41 INFO]: [BetterHud] New lang file loaded: zh_TW
[17:33:44 INFO]: [BetterHud] File packed: 6.389MB -> 6.389MB
[17:33:44 INFO]: [BetterHud] Successfully merged with Oraxen: (2194 ms)
[17:33:45 WARN]: Can't keep up! Is the server overloaded? Running 5809ms or 116 ticks behind
[17:33:45 INFO]: Oraxen | Automatic upload of the resource pack is enabled, uploading...
[17:33:51 INFO]: Oraxen | Resourcepack uploaded to http://atlas.oraxen.com:8080/pack.zip?id=0113abcc0fe96ab59f929568632cd2ca6198e330 in 5714 ms
> o reload all
[17:33:55 INFO]: Oraxen | Successfully reloaded
[17:33:55 INFO]: Oraxen | Updating all items in player-inventories...
[17:33:55 INFO]: Oraxen | Resourcepack successfully regenerated
[17:33:55 INFO]: Oraxen | Slicing gui-textures to 1.20.2-format...
[17:33:56 INFO]: Oraxen | Successfully sliced gui-textures for 1.20.2
[17:33:56 INFO]: Oraxen | Converting global lang file to individual language files...
[17:33:56 INFO]: Oraxen | Verifying formatting for textures and models...
[17:33:56 INFO]: Oraxen | No broken models or textures were found in the resourcepack
[17:33:56 INFO]: Oraxen | Generating atlas-file for 1.19.3+ Resource Pack format
[17:33:56 INFO]:
[17:33:56 INFO]: Oraxen | No duplicate font files found!
[17:33:56 INFO]:
[17:33:56 INFO]: Oraxen | Successfully reloaded
[17:33:56 INFO]: Oraxen | Successfully reloaded
[17:33:57 INFO]: [BetterHud] New lang file loaded: en_US
[17:33:57 INFO]: [BetterHud] New lang file loaded: ko_KR
[17:33:57 INFO]: [BetterHud] New lang file loaded: ja_JP
[17:33:57 INFO]: [BetterHud] New lang file loaded: vi_VN
[17:33:57 INFO]: [BetterHud] New lang file loaded: zh_CN
[17:33:57 INFO]: [BetterHud] New lang file loaded: zh_TW
[17:34:00 INFO]: [BetterHud] File packed: 6.389MB -> 6.389MB
[17:34:00 INFO]: [BetterHud] Successfully merged with Oraxen: (2312 ms)
[17:34:01 INFO]: Oraxen | Automatic upload of the resource pack is enabled, uploading...
[17:34:08 INFO]: Oraxen | Resourcepack uploaded to http://atlas.oraxen.com:8080/pack.zip?id=0159b545c368eee298513d75a061f02840c73097 in 7567 ms

~~~\plugins\Oraxen\pack>certutil -hashfile pack.zip sha1
SHA1의 pack.zip 해시:
0113abcc0fe96ab59f929568632cd2ca6198e330
CertUtil: -hashfile 명령이 성공적으로 완료되었습니다.

~~~\plugins\Oraxen\pack>certutil -hashfile pack.zip sha1
SHA1의 pack.zip 해시:
0159b545c368eee298513d75a061f02840c73097
CertUtil: -hashfile 명령이 성공적으로 완료되었습니다.

It is a Oraxen's issue rather then bh.