Orchard Content Pages

I can't edit any of my content pages on any of my tenants...After walking through the error I get a null sessionstate in Orchard.Layouts ElementController. Any thoughts on what could be causing this?
I recently upgraded to 1.10 from 1.9
An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back
Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object. at Orchard.Layouts.Controllers.ElementController.Edit(String session) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.b__3f()

Looks like the Session expired, which is used to transfer data from and to the element editor dialog. Refreshing the page should fix it (make sure to save any changes first!).

You might be pushing over the limit of memory and causing the appdomain to recycle. Are you on decent hosting or some budget package?
I have one client where I have to do my editing locally and then publish the changes because i continually get logged out trying to make edits on the server.

Yea that might be it...I'm able to edit locally, so maybe that is my issue. I'll do some research into that. Thanks.


Performance improvement: stop listing all versions on the homepage

This is similar to #4524,
where resolving a ton of URL's for versions is time consuming.
This limits that by only listing the stable version,
if it exists,
for featured projects on our homepage

I think we should probably just remove the dropdown, and have a "View Docs" button, but I couldn't figure out how to make the CSS not look fugly.


docs: fix link to Invoke AI's models site

Summary

Related Issues / Discussions

QA Instructions

Merge Plan

Checklist

[x] The PR has a short but descriptive title, suitable for a changelog
[ ] Tests added / updated (if applicable)
[x] Documentation added / updated (if applicable)

Thanks for this :)


Add secure version of strcpy

We lack strlcpy() or strscpy() and its friend.  As a secure RTOS, we should have at least one of those string copy functions.  Rationale behind the new APIs are that neither standard strcpy() nor strncpy() does not guarantee the terminal NUL character.

strlcpy() is more widely used variant from OpenBSD.  It returns the length of the source string.
strscpy() is Linux kernel version of it.  It doesn't touch the source string past the specified size and returns negative when error.

There are some discussion on both OpenBSD side and Linux kernel side, but both functions make sure that the destination string is NUL terminated.

You have an implementation of strlcpy() in Zephyr SDK:
arm-zephyr-eabi/include/string.h:116:size_t     strlcpy (char *, const char *, size_t);

but it is hidden by default. You have to #define _GNU_SOURCE before including string.h.

this should not be part of zephyr, you can have this as part of your application/environment.

TODO:

Consider adding a config to enable the relevant functions in newlib.
Consider adding tests for these as part of the newlib tests.

A few questions:

Is it just for newlib? I don't really follow #3102 but does it still hold?
What has changed since https://github.com/zephyrproject-rtos/zephyr/issues/23248#issuecomment-668721295?

I'm closing this since picolibc is the default c library for Zephyr for a while now. And it at least provides strlcpy().


Intermittent test fixes

See commit messages / code comments for a description of the changes.

LGTM

@titanous added a fix for TestDeployController: 8ca49ae

LGTM++


add inits for plots, fix  error messages and output, tutorial version

Some refactoring. inits, datasets, current version for tutorial, removed some error messages.

Does this mean I can merge?


SQLError - too many SQL variables on table with 1000 columns

Ran on casarsa@probcomp2
venv: ~/venv/20160706-july
Max sqlite columns on the machine: 2000 with this script
Script bayeslite_bug.py:
import bayeslite
import pandas as pd
import numpy as np

from bdbcontrib import bql_utils
from bdbcontrib import Population

data = pd.DataFrame(np.random.rand(180,1000))
temp_bdb_path = 'foo.bdb'
with bayeslite.bayesdb_open(temp_bdb_path)  as bdb:
    bql_utils.query(bdb,'''drop generator if exists temp_cc''')
    bql_utils.query(bdb,'''drop table if exists temp''')

    bayeslite.read_pandas.bayesdb_read_pandas_df(bdb, "temp", data, create=True)
    population = Population(name='temp', bdb_path=temp_bdb_path,
                            session_capture_name=False)

(20160706-july) casarsa@probcomp-2:~/Share/populations$ python bayeslite_bug.py --pdb
/scratch/home/casarsa/venv/20160706-july/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/scratch/home/casarsa/venv/20160706-july/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Traceback (most recent call last):
  File "bayeslite_bug.py", line 14, in <module>
    bayeslite.read_pandas.bayesdb_read_pandas_df(bdb, "temp", data, create=True)
  File "/scratch/home/casarsa/venv/20160706-july/local/lib/python2.7/site-packages/bayeslite/read_pandas.py", line 86, in bayesdb_read_pandas_df
    bdb.sql_execute(sql, (key,) + tuple(df.ix[i]))
  File "/scratch/home/casarsa/venv/20160706-july/local/lib/python2.7/site-packages/bayeslite/bayesdb.py", line 281, in sql_execute
    self.sql_tracer, self._do_sql_execute, string, bindings)
  File "/scratch/home/casarsa/venv/20160706-july/local/lib/python2.7/site-packages/bayeslite/bayesdb.py", line 223, in _maybe_trace
    return meth(string, bindings)
  File "/scratch/home/casarsa/venv/20160706-july/local/lib/python2.7/site-packages/bayeslite/bayesdb.py", line 285, in _do_sql_execute
    cursor.execute(string, bindings)
  File "src/cursor.c", line 1019, in APSWCursor_execute.sqlite3_prepare
  File "src/statementcache.c", line 386, in sqlite3_prepare
apsw.SQLError: SQLError: too many SQL variables

If we recompile sqlite3 ourselves, we can increase this up to 32767 by defining SQLITE_MAX_COLUMN at compile-time.  But I'm not sure bayeslite is ready to handle even 2000 variables at the moment!

I have been bitten by this too - having only 1680 columns.  I ran the script that Leo attached above and it also indicated max columns to be 2000 (probcomp3). I also searched the bayeslite repo for code that sets the SQLITE_MAX_COLUMN parameter - but I didn't find anything.

same is true 1500 columns.

I'm a little surprised you see a problem with 2000 variables -- though perhaps there is some intermediate table that has 2n columns or something.  Can you get a SQL trace to find the query that caused sqlite3 to choke?  Something like:
import sys
def trace(q, p): print >>sys.stderr, q, p
bdb.sql_trace(trace)
...whatever you were doing before...
bdb.sql_untrace(trace)

hey i got the same error as @leocasarsa
  File "/usr/local/lib/python2.7/site-packages/bayeslite/bayesdb.py", line 281, in sql_execute
    self.sql_tracer, self._do_sql_execute, string, bindings)
  File "/usr/local/lib/python2.7/site-packages/bayeslite/bayesdb.py", line 223, in _maybe_trace
    return meth(string, bindings)
  File "/usr/local/lib/python2.7/site-packages/bayeslite/bayesdb.py", line 285, in _do_sql_execute
    cursor.execute(string, bindings)
  File "src/cursor.c", line 1019, in APSWCursor_execute.sqlite3_prepare
  File "src/statementcache.c", line 386, in sqlite3_prepare
apsw.SQLError: SQLError: too many SQL variables

Actually i tried to reproduce it and it is there so if anyone can suggest the changes that would be nice.
:smile_cat:


[query] [docs] Citable reference for Gherkin spec?

I would like to reference the complete Gherkin specification. Ideally this would be an implementation-independent spec, but that is not necessary. (My understanding is that Gherkin is Cucumber's implementation of Dan North's story format, and that it has since been adopted by Behave, Behat and others.)
So far the best definitions I have found are:

https://cucumber.io/docs/reference#gherkin
https://github.com/cucumber/cucumber/wiki/Gherkin (more detail)
https://pythonhosted.org/behave/gherkin.html#gherkin-feature-testing-language (more detail, non-Cucumber)

Is any of these the official or de facto specification? Or is there a page I've missed?

The definitive Gherkin specification is its grammar, its tests and the AST documentation.

My understanding is that Gherkin is Cucumber's implementation of Dan North's story format

That article was written a couple of years after the Gherkin language was designed. You can read more about the history of Gherkin and Cucumber here.
The Gherkin language has evolved gradually since 2003, and first got its name and grammar in 2008, in the early Cucumber days.

Thanks for the links and historical context!


Typescript - adding onClick prop to anchor

Hi!
I can't find a way to make this work:
const Insert = styled.a`flex: 1;   padding: 0.3rem;  padding-left: 0.6rem;`

<Insert onClick={handleInsert}>

No overload matches this call.   Overload 1 of 2, '(props: Pick<Pick<Pick<DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "slot" | ... 262 more .............
Can't find the proper way to add Insert props types
Thanks!

Hi,
I've the same problem but i've found that : https://stackoverflow.com/questions/61979237/styled-components-attrs-w-typescript
I hope is good solution ^^

Sorry, I'll have to close this.
We don't maintain any TypeScript typings in the main repository and are not updating the ones that live in definitely-typed, so we can't offer any help on this here. It's possible that if you browse past issues you'll find similar questions, but overall this repository's issues are not the right place to report these issues or to discuss them.


first anaconda build

commented out noarch
added abs.yaml for testing
simplified host dependencies down to pip/setuptools/wheel
added description, doc_source_url
removed python bound

Thank you @skupr-anaconda for the super-thorough review as always! Working on it


fix: render error before continue bank account setup button

Details

This PR changes the order of rendering in the Bank Account page such that the error renders before the continue bank account setup button.
Fixed Issues

$ https://github.com/Expensify/App/issues/20072
PROPOSAL: https://github.com/Expensify/App/issues/20072#issuecomment-1575214353
Tests

Open the app and login with a phone number user
Open the settings -> contact methods and If not already added, add secondary email account
Make email account as default and go to any workspace and connect a bank account manually, filling details till step 3
Again change default contact to phone number
Go to the previously opened workspace and click on connect bank account

Verify that an error is shown asking to change contact method to an email one

[x] Verify that no errors appear in the JS console

Offline tests

N/A
QA Steps

Open the app and login with a phone number user
Open the settings -> contact methods and If not already added, add secondary email account
Make email account as default and go to any workspace and connect a bank account manually, filling details till step 3
Again change default contact to phone number
Go to the previously opened workspace and click on connect bank account

Verify that an error is shown asking to change contact method to an email one

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is correct English and approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web

https://github.com/Expensify/App/assets/30054992/cc4cec99-67ab-4cf2-9a18-cb498e826152

Mobile Web - Chrome

https://github.com/Expensify/App/assets/30054992/80fb4d8f-05bb-4d6a-afca-24c26a7703c6

Mobile Web - Safari

https://github.com/Expensify/App/assets/30054992/194af9c8-1966-4c35-be9e-d845a4e5df15

Desktop

https://github.com/Expensify/App/assets/30054992/e9aed896-2b3e-4ead-8125-43693c1fda9c

iOS

https://github.com/Expensify/App/assets/30054992/022f206e-4635-412a-9d7a-e6f220d7d9ac

Android

https://github.com/Expensify/App/assets/30054992/338696b5-0242-4fbe-9cd9-ff279cc8d82d

Reviewer Checklist

[x] I have verified the author checklist is complete (all boxes are checked off).
[x] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[x] I verified the steps for local testing are in the Tests section
[x] I verified the steps for Staging and/or Production testing are in the QA steps section
[x] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[x] I checked that screenshots or videos are included for tests on all platforms
[ ] I included screenshots or videos for tests on all platforms
[x] I verified tests pass on all platforms & I tested again on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[x] I verified proper code patterns were followed (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I verified that this PR follows the guidelines as stated in the Review Guidelines
[x] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[ ] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Web

https://github.com/Expensify/App/assets/46707890/d9e94817-4c43-40e6-99fe-265370c19d1d

Mobile Web - Chrome

https://github.com/Expensify/App/assets/46707890/ce5fe986-aa46-4f21-afd1-17a4d619d4a7

Mobile Web - Safari

https://github.com/Expensify/App/assets/46707890/60242f55-a7f0-4762-9d17-06851f980c00

Desktop

https://github.com/Expensify/App/assets/46707890/e9895bf2-1ff1-479d-97e2-18bcf5debefb

iOS

https://github.com/Expensify/App/assets/46707890/dad1d5c8-38ff-4671-ad05-12ec22c194ef

Android

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.27-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅

🚀 Deployed to staging by https://github.com/MariaHCD in version: 1.3.27-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/AndrewGable in version: 1.3.27-7 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅


Add support for for Roles and type of Namespace icons

In the current namespaces tab we should display next to each namespace two additional icons

a Role icon
a Namespace type icon

A Role icon  represents the role owned by the user on the namespace (owner | collaborator | viewer).
A Namespace type icon can be of two different types, personal or team.
As a personal namespace is practically speaking a namespace owned by a team composed by only        one person, the distinction should be done on the number of members the team is composed of.

I have problems figuring out which icons to use. Could you take a look at font awesome icons?

What about adding two new columns named "pull" and "push", then we can have checkboxes underneath. That way we just need an icon for the"owner" role.

@flavio @eotchi this has already been fixed by #388, no ?

Yes indeed.
On 12 October 2015 at 12:29, Miquel Sabaté Solà<EMAIL_ADDRESS>wrote:

@flavio https://github.com/flavio @eotchi https://github.com/eotchi
this has already been fixed by #388
https://github.com/SUSE/Portus/pull/388, no ?
—
Reply to this email directly or view it on GitHub
https://github.com/SUSE/Portus/issues/36#issuecomment-147360086.


[feature] Easy multiple items slider,  supporting grid and flex, with native fallback on mobile. need discussion

Hello everyone.
In the last project i thought about horizontal/vertical slider for thumbs, partners and other things which everybody use for scrollable lists, and which can be slid right and left/up and down, and i hope i found a easy solution.
So, my idea was to provider the

Minimal weight slider supporting bootstrap grid system.
I want carousel behaviour (not all behaviour for now), but for multiple items. As a note, there are a lot of supporting Google queries which make standard bootstrap carousel works as I want, but they a very complicated and not unique - you always need cheating solutions, need more code.
I want to use usual grid and flex utilities to create the slider which you need.
At this moment I've dropped infinite loop at all, because I don't have tests which passing this option in usability. Those kind of elements usually come from design and common things for nowage web.

No nav slider utils on mobile (nav is redundant when you have swipes). I want native browser swiping (because it's cheaper for fx).

I want easy and fast customisation with html only, because it's independent from other languages.

As the result, I came up to the following solution, and I want to discuss it (it has bugs). Because it needs more work, but I think it can become a new component.
https://github.com/twbs/bootstrap/pull/29929
Here is the fiddle:
https://jsfiddle.net/wtorsi/2agmz9cp/9/
And here is the vertical:
https://jsfiddle.net/wtorsi/7g0zdyv5/5/

We already have the carousel, I don't think we need another component like this?
/CC @twbs/team

Hi, @MartijnCuppens, thanks for you attention.
Yes your are right, but it was not my idea.
At this moment carousel is good only for one item.
My idea is to add support of multiple grid items with simple and native/browser markup.
It's better to compare my idea with https://owlcarousel2.github.io/OwlCarousel2/ or smth kind of, rather than with bootstrap carousel.

Ideally this shouldn't be a new component. I'm definitely in favor of adding the feature, see an old attempt of mine in #28210 and we track this in #29130

Closing as a won't fix—.carousel-items can contain just about any HTML and CSS you want, so this is possible. Leaving #29130 open for now, though.

Closing as a won't fix—.carousel-items can contain just about any HTML and CSS you want, so this is possible. Leaving #29130 open for now, though.


[Docs] - Add Support Partner Details

Is your feature request related to a problem? Please describe current state:
No.
Describe the solution you'd like:
We would like our details added to the support page of the website.
Describe alternatives you've considered:
N/A

Additional context
Jim and Kim aware of the request and have advised on the process.

Contributor Resources

Contributing Guidelines

Closed by https://github.com/kyverno/website/pull/413


Improve docs

Description of what has changed

Issues addressed by pull request

This is not a useful change to the ATT&CK documentation.


Make clang the termux default compiler

Thank your for contributing to Nuitka!
!! Please check that you select the develop branch (details see below link) !!
Before submitting a PR, please review the guidelines:
Contributing Guidelines
What does this PR do?
Make clang the termux default compiler
Why was it initiated? Any relevant Issues?
https://github.com/Nuitka/Nuitka/issues/2341
PR Checklist

[x] Correct base branch selected? Should be develop branch.
[x] Enabled commit hook or executed ./bin/autoformat-nuitka-source.
[x] All tests still pass. Check the Developer Manual about Running the Tests.
There are GitHub Actions tests that cover the most important
things however, and you are welcome to rely on those, but they might not
cover enough.
[x] Ideally new features or fixed regressions ought to be covered via new tests.
[x] Ideally new or changed features have documentation updates.

Thanks, everything that helps make it smoother shall be good.


Added definitions for FilePreviews.io

@martinduparc Thank you for your contribution.
But, Travis CI's test failed.
Please fix it: https://travis-ci.org/borisyankov/DefinitelyTyped/builds/60593961#L178
And I recommend to use --implicitAny option on tsc compile.


Support promodj.com as another web resource for downloading audio/video

http://promodj.com/ contains media content that also could have been collected with youtube-dl tool. Could you guys please support this web-site as well. There are both audio and video data there, so that would be helpful if you could handle downloading both from there.
Say, if I used this URL with youtube-dl - http://promodj.com/oakenfold/tracks/1735283/Paul_Oakenfold_The_Harder_They_Come, I would be supposed to get an audio track. This one - http://promodj.com/Fonarev/videos/4751405/Fonarev_Connection_2 - would get me a video file.

Currently working for audio, but not for video.


Scanner build-updater generate-dump pulls from private gcs bucket

When executing scanner build-updater generate-dump as part of the build instructions, it attempts to pull data from the stackrox-scanner-feed gcs bucket.
./bin/updater generate-dump --out-file image/scanner/dump/dump.zip
Which results in the following error:
ERRO[0050] an error occurred when fetching update        error="StackRox updater cannot be run without a service account" updater name=stackrox

Though I did not supply a gsa, I would think I'd need to request access to this bucket if I did. Would it make sense to use a publicly accessible endpoint instead? Let me know if I'm completely off base here.

Hey @msierks!
We've run into this problem on multiple occasions in the recent past.
Currently, we're working on a way to retire this private bucket, so you're not off base 😄
We'll let you know once we've come up with a solution for this!

@RTann This shouldn't be a problem anymore right?

Correct, as of last week this bucket is now public. I will close this issue, but please feel free to reopen it if there are still any issues!


AttributeError: module 'tensorflow.python.ops.gen_nn_ops' has no attribute '_relu_grad'

Currently, I'm using tensorflow 1.8. When I run the example code with the deconv_visualization() function.
It returns error:
  File "/Yang/project/detection/code/tf18/third_party/tf_cnnvis/tf_cnnvis/tf_cnnvis.py", line 43, in _GuidedReluGrad
    return tf.where(0. < grad, gen_nn_ops._relu_grad(grad, op.outputs[0]), tf.zeros_like(grad))
AttributeError: module 'tensorflow.python.ops.gen_nn_ops' has no attribute '_relu_grad'

Do you have any idea about that. I'm really appreciate that!

Getting similar error when running deconv_visualization.
Note that this exception occurs following exceptions that has to do with 'Xla':
tf_cnn_vis_Example2.ipynb
-> 2327           c_api.TF_OperationGetAttrValueProto(self._c_op, name, buf)
...
InvalidArgumentError: Operation 'Relu' has no attr named '_XlaCompile'.

Or:
tf_cnn_vis_Example1.ipynb
ValueError: Operation 'conv1' has no attr named '_XlaCompile'.

Using Anaconda 3.6 with tensorflow 1.8 on either CentOS 7.2 or macOS.

Me, too. I have almost the same errors as @ggaziv .

I successfully fix it. According to this post, change _relu_grad to relu_grad.

Works great ! Thanks @tengerye !

Thanks @tengerye
Closing this now.


fix(mockingbird-ts): change ignore term to omit (deprecation)

Codecov Report

Merging #86 (106d023) into release (4273ef5) will decrease coverage by 1.23%.
The diff coverage is 83.33%.

@@             Coverage Diff             @@
##           release      #86      +/-   ##
===========================================
- Coverage    98.73%   97.50%   -1.24%
===========================================
  Files           18       18
  Lines          237      240       +3
  Branches        26       26
===========================================
  Hits           234      234
- Misses           2        5       +3
  Partials         1        1

Impacted Files
Coverage Δ

...kages/mockingbird/src/lib/builder/mock-producer.ts
84.61% <ø> (ø)

...ckages/mockingbird/src/lib/builder/mock-builder.ts
90.62% <80.00%> (-9.38%)
:arrow_down:

packages/parser/src/lib/class-parser.ts
100.00% <100.00%> (ø)

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 4273ef5...106d023. Read the comment docs.


Rim and transmission shader in 3.0

win10, 960m,
rim light make cool effect while using sub surface without follow surface on

transmission glow up things with and without sub surface i think it should act acc. to fresnel i.e it should mainly effect outer side.

i feel like rim and transmission is strong even with low light
  rim at 1

rim at 1

Rim making cool effect: This is normal and how subsurface scattering works, jut reduce the intensity or adjust quality if you see this effect. it only is mean to apply some blur, if your kernel is too big it will do funny things

Tranmission right now affects the whole backfaces. Eventually a depth treshold parameter will be added to achieve the effect you want, but this will happen for 3.

Rim being strong in low light has been fixed a few minutes ago, it now takes light attenuation in consideration. Transmission is the same, until a depth treshold is implemented it will be strong.

time to close this issue!!! thank you!


Format option to match buf or rvls

I started to do this. I'm just about to finish, but as I'm adding more than just two formats (but a way to customise the output) I prefer to take my time to do it properly. Currently I have passed all the written tests and I am updating the documentation (and updating my code if I stray too far from the example in the documentation).
Here my branch if some can/want look and given me some advice before I do the PR.
P.S: I have not a lot of experience with Rust. 😄

Hello @doubleailes ,
Thank you for your answer, I create a PR in draft mode.


View port of a parent optionally

Hi, can we add posibilty to check whether the element is in viewport relatively to an optionally passed parent element? This is for scrollable containers, when you want to know if an element is outside of the visible area and container needs to be scrolled.

preparing a pr, hope you will like it


add: core_apps.code_display.models. Companies and Questions

Add Companies and Questions models for AlgoCode

add companies and questions models. the question model is for the problem sets for the AlgoCode platform.


ftpClient.download with progress

Hello, I've been searching all morning trying to figure out how to download a file with progress.
I can't seem to figure out the correct value for the progress parameter.
I'm using VB.net and would like it to call a Sub named DownloadProgress
I found this code in someone else's question, but couldn't get the ftpClient.Download method to accept it.
Dim progress = New Progress(Of Double)(AddressOf DownloadProgress)
If someone could help me out with a quick example I'd really appreciate it!

I managed to figure it out.  Here's some working VB code for anyone else having trouble.
    Private Sub Download(Item As FtpListItem)
        Dim SaveAs As New SaveFileDialog
        With SaveAs
            .FileName = Item.Name
            .OverwritePrompt = True
        End With

        If SaveAs.ShowDialog = vbOK Then
            Dim Download As Stream = SaveAs.OpenFile
            Dim progress As New Action(Of FtpProgress)(AddressOf DownloadProgress)
            FTP.Download(Download, Item.FullName, 0, progress)
        End If
    End Sub

Public Sub DownloadProgress(FileProgress As FtpProgress)
    ProgressBar1.Value = FileProgress.Progress
    FileLabel.Text = "Downloading: " & FileProgress.RemotePath
    SpeedLabel.Text = FileProgress.TransferSpeedToString
    ETALabel.Text = FileProgress.ETA.ToString
End Sub

Inspired by your issues we now have VB examples for all methods!


Improved README

Added enumeration of current features
removed section with discussion on why Arrow API has issues (it belongs somewhere else)
Removed section with feature-comparison it with arrow (it tends to get outdated from both ends)
added section with our safety and security practices and main associated risks
Expanded section on what is being tested for interoperability

@houqp @Dandandan @ritchie46 @sundy-li , could you assess whether the new wording is balanced?

/LGTM


Feature/arm arch

Hey, I happened to see it in my inbox and was curious, so I left two tiny comments. I did not review it.
Sorry about the noise :)


Sorts from all around the web

cpp-sort already uses sorting algorithms from all around the web (pdqsort, spreadsort, timsort, etc...); adding more of them in the long run can't be that harmful. Smart people created many interesting sorting algorithms and it would be a waste not to try them all. Here is a list of interesting projects that we could use to complete the library:

[x] BonzaiThePenguin's WikiSort, a block sort implementation
[ ] Mrrl's SqrtSort
[ ] Mrrl's implementation of a GrailSort
[ ] fjtapia's sort::parallel library
[ ] Ahmet Akkök's Exact-Sort
[x] Keith Schwarz's smoothsort implementation

There are probably even more interesting sorting algorithms around. However, adapting them is often not trivial. For example SqrtSort uses 3-way comparisons and C-isms all over the place, Exact-Sort mixes IO operations with the sorting logic, some of the algorithms simply don't have an implementation in C++... Adapting these algorithms implies that we have to adapt them to use an iterator interface, to add support for arbitrary comparison functions (or even projections) and to make them work with move-only types when possible. The sort::parallel library will probably be an interesting way to test the integration of parallel sorting algorithms in cpp-sort.
Reminder: ask the authors for the license when needed.

Pull request #29 adds Keith Schwartz's implementation of Dijkstra's smoothsort to the library, slightly enhanced to support projection parameters and 64-bit architectures.

Pull request #33 adds BonzaiThePenguin's WikiSort to the library, which is an implementation of Pok-Son Kim and Arne Kutzner's block sort algorithm. The implementation has been enhanced to support projection parameters.

Pull request #34 adds Ahmet Akkök's exact sort to the library, enhanced to actually perform a minimal number of move operations and to support user-provided comparison and projection functions.

Pull request #41 adds Mrrl's GrailSort to the library as a buffered sorter (making it easy to also have SqrtSort when needed), which is an implementation of a stable sorting algorithm described by B-C. Huang and M. A. Langston. The implementation has been ported to C++ and enhanced to work with random-access iterators and to support comparison and projection parameters.

Pull request #95 adds Malte Skarupke's ska_sort to the library as a type-specific sorter, adding support for proxy iterators, a bit of standard compliance regarding reinterpretation of a floating point number into an integer, and a few compile-time checks to make sure that the sorter will only accept the types it is able to handle, causing a substitution failure otherwise.

Pull request #98 adds Adrian Wielgosik's C++ implementation of a drop-merge sort to the library, improving it with the following features:

Support for non-default-constructible types
Support for proxy iterators
Support for projections
Support for bidirectional iterators

cpp-sort 1.6.0 adds Francisco José Tapia's spinsort from Boost.Sort to the library, improving it with the usual things (projections, proxy iterators, etc.).
It's worth noting that I got rid of a bunch of calls to check whether a collection is sorted or reverse-sorted that didn't seem worth keeping: I don't want to pay two O(n) operation to handle two very specific cases that are already fast enough without dedicated checks anyway.


MVP feature cut: remove the block explorer

UI Version: 0.9.3
Description: As discussed in #ui-team, let's remove the block explorer and link to users to https://explorecosmos.network instead. This reduces the scope of Voyager, which is a boon for development. As a bonus, we can close a bunch of issues!

[x] remove block explorer
[ ] remove block explorer npm dependencies
[x] block details should link to Cosmos Explorer
[ ] transaction details should link to Cosmos Explorer

Closes #1089
Closes #945
Closes #381

remove block explorer npm dependencies

didn't see any

transaction details should link to Cosmos Explorer

this should be covered in tendermint/ui i think


Merge pull request #11 from nishcheyk/main

updates

forget password working
download transaction history working
authentication of login lout out working


How to run multi-agent demo two diggers?

Sorry for the naive question. I am very new to Malmo and Minecraft. I am trying to run the demo with the following steps:

at Malmo\Minecraft:
launchClient --port=10000
launchClient --port=10001

at Python_Examples:
python two_diggers.py

I did nothing else besides the above commands. The demo fails. The output is:
DEBUG: Sending MissionInit to <IP_ADDRESS> : 10000
DEBUG: Looking for client, received reply from <IP_ADDRESS>: MALMOOK
DEBUG: Sending MissionInit to <IP_ADDRESS> : 10000
DEBUG: Looking for server, received reply from <IP_ADDRESS>: MALMOERRORMinecraftServerConnection missing!
DEBUG: Sending MissionInit to <IP_ADDRESS> : 1000
DEBUG: Looking for server, received reply from <IP_ADDRESS>: MALMONOMISSION
Traceback (most recent call last):
File "two_diggers.py", line 108, in
agent_host2.startMission( my_mission, client_pool, MalmoPython.MissionRecordSpec(), 1, '' )
RuntimeError: Failed to find the server for this mission - you must start the agent that has role 0 first

At the moment, multi-agent missions require one valid set of Minecraft login credentials per agent. (We're actively trying to improve this, but at least one login will always be required.) Logins need to be purchased from the Minecraft website.
In order for Malmo to log in for you, it needs to have access to your Minecraft usernames/passwords - they can be entered via the Minecraft gui - go to the Minecraft menu, find the Mods menu, select Malmo, and hit the logins button. You can add new logins there. You can also specify the port to map that login to - if you map them to ports 10000 and 10001, then It Should Just Work...
Let us know if you have any problems.

Why does not single agent mission need login, while the multi agent mission need?

Good question... At the moment, the way we are opening a world and sharing it online requires the use of Minecraft's authentication, whereas running locally in a standalone world doesn't. But we're working on changing the way we do multi-agent missions, to avoid this need for authentication. Watch this space!

Substantially reworked this in #429. No longer need authentication, so all you should need to get this to work is to run two Minecraft clients, as you tried initially. Let us know if it doesn't work!


Cmake with packages

How could we use cmake only with the package features of swift ?

What do you mean by the package features of Swift?

What do you mean by the package features of Swift?

I had in mind the swift package manager, that appears to be (partly) in conflict with the cmake infrastructure. But may be not?
My point is that I have an external C library packed with a package.swift in a module folder to be incorporated with any swift files and I do not see how to manage that with cmake now.
I will be happy to have your thoughts on that.

You are trying to use a CMake package which s-p-m, which is not the point of this project - this project is to show how to use CMake to build Swift code.  AFAIK, s-p-m does not support non-s-p-m build systems.  I've usually addressed that by using CMake to build projects rather than s-p-m.  Not sure that there is anything that can be done here for that.  If I've misunderstood something, please re-open the issue.


chown: cannot dereference '/proc/1/fd/1': Permission denied

Executing the following command will prompt chown: cannot dereference '/proc/1/fd/1': Permission denied

docker run --name mongo-test mongo:latest

So I did  #145 , add --user mongodb parameter, No more error from above.

docker run --user mongodb --name mongo-test mongo:latest

But I'm using docker-compose, so i added --user mongodb to command

But an error was reported： Error parsing command line: unrecognised option '--user'

I'm not very familiar with docker and docker-compose and this has been bothering me for a few days now.
I hope you can help me. Thank you very much.
😀😀😀

--user has its own directive in docker-compose format https://docs.docker.com/compose/compose-file/compose-file-v3/#domainname-hostname-ipc-mac_address-privileged-read_only-shm_size-stdin_open-tty-user-working_dir
In Docker anything in the command is sent to the container to execute, while arguments to Docker (such as docker run) are set as options, before the image name
docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
My guess is the  error chown: cannot dereference '/proc/1/fd/1': Permission denied is from the host's SELinux or AppArmor, I'm not able to reproduce

 docker run
$ docker run --name mongo-test mongo:latest
{"t":{"$date":"2021-04-19T15:41:45.835+00:00"},"s":"I",  "c":"CONTROL",  "id":23285,   "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2021-04-19T15:41:45.839+00:00"},"s":"W",  "c":"ASIO",     "id":22601,   "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
{"t":{"$date":"2021-04-19T15:41:45.839+00:00"},"s":"I",  "c":"NETWORK",  "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
{"t":{"$date":"2021-04-19T15:41:45.840+00:00"},"s":"I",  "c":"STORAGE",  "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"ee00e8472b40"}}
{"t":{"$date":"2021-04-19T15:41:45.840+00:00"},"s":"I",  "c":"CONTROL",  "id":23403,   "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.5","gitVersion":"ff5cb77101b052fa02da43b8538093486cf9b3f7","openSSLVersion":"OpenSSL 1.1.1  11 Sep 2018","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu1804","distarch":"x86_64","target_arch":"x86_64"}}}}
{"t":{"$date":"2021-04-19T15:41:45.840+00:00"},"s":"I",  "c":"CONTROL",  "id":51765,   "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"18.04"}}}
{"t":{"$date":"2021-04-19T15:41:45.840+00:00"},"s":"I",  "c":"CONTROL",  "id":21951,   "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"}}}}
{"t":{"$date":"2021-04-19T15:41:45.843+00:00"},"s":"I",  "c":"STORAGE",  "id":22315,   "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=15575M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
{"t":{"$date":"2021-04-19T15:41:46.580+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1618846906:580876][1:0x7f7e44f81ac0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}}
{"t":{"$date":"2021-04-19T15:41:46.580+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1618846906:580969][1:0x7f7e44f81ac0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}}
{"t":{"$date":"2021-04-19T15:41:46.585+00:00"},"s":"I",  "c":"STORAGE",  "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":742}}
{"t":{"$date":"2021-04-19T15:41:46.585+00:00"},"s":"I",  "c":"RECOVERY", "id":23987,   "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-04-19T15:41:46.591+00:00"},"s":"I",  "c":"STORAGE",  "id":4366408, "ctx":"initandlisten","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}}
{"t":{"$date":"2021-04-19T15:41:46.592+00:00"},"s":"I",  "c":"STORAGE",  "id":22262,   "ctx":"initandlisten","msg":"Timestamp monitor starting"}
{"t":{"$date":"2021-04-19T15:41:46.594+00:00"},"s":"W",  "c":"CONTROL",  "id":22120,   "ctx":"initandlisten","msg":"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted","tags":["startupWarnings"]}
{"t":{"$date":"2021-04-19T15:41:46.595+00:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"initandlisten","msg":"createCollection","attr":{"namespace":"admin.system.version","uuidDisposition":"provided","uuid":{"uuid":{"$uuid":"29a64d7c-6af6-4783-b1b8-6881873cb04d"}},"options":{"uuid":{"$uuid":"29a64d7c-6af6-4783-b1b8-6881873cb04d"}}}}
{"t":{"$date":"2021-04-19T15:41:46.605+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"initandlisten","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"admin.system.version","index":"_id_","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-04-19T15:41:46.605+00:00"},"s":"I",  "c":"COMMAND",  "id":20459,   "ctx":"initandlisten","msg":"Setting featureCompatibilityVersion","attr":{"newVersion":"4.4"}}
{"t":{"$date":"2021-04-19T15:41:46.605+00:00"},"s":"I",  "c":"STORAGE",  "id":20536,   "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"}
{"t":{"$date":"2021-04-19T15:41:46.608+00:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"initandlisten","msg":"createCollection","attr":{"namespace":"local.startup_log","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"33330691-7976-4d6a-ab26-a8273459f267"}},"options":{"capped":true,"size":10485760}}}
{"t":{"$date":"2021-04-19T15:41:46.619+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"initandlisten","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"local.startup_log","index":"_id_","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-04-19T15:41:46.619+00:00"},"s":"I",  "c":"FTDC",     "id":20625,   "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/data/db/diagnostic.data"}}
{"t":{"$date":"2021-04-19T15:41:46.623+00:00"},"s":"I",  "c":"STORAGE",  "id":20320,   "ctx":"LogicalSessionCacheRefresh","msg":"createCollection","attr":{"namespace":"config.system.sessions","uuidDisposition":"generated","uuid":{"uuid":{"$uuid":"74143f94-af6b-4718-9da4-05bc179218ce"}},"options":{}}}
{"t":{"$date":"2021-04-19T15:41:46.623+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"/tmp/mongodb-27017.sock"}}
{"t":{"$date":"2021-04-19T15:41:46.623+00:00"},"s":"I",  "c":"NETWORK",  "id":23015,   "ctx":"listener","msg":"Listening on","attr":{"address":"<IP_ADDRESS>"}}
{"t":{"$date":"2021-04-19T15:41:46.623+00:00"},"s":"I",  "c":"NETWORK",  "id":23016,   "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
{"t":{"$date":"2021-04-19T15:41:46.624+00:00"},"s":"I",  "c":"CONTROL",  "id":20712,   "ctx":"LogicalSessionCacheReap","msg":"Sessions collection is not set up; waiting until next sessions reap interval","attr":{"error":"NamespaceNotFound: config.system.sessions does not exist"}}
{"t":{"$date":"2021-04-19T15:41:46.639+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"LogicalSessionCacheRefresh","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"config.system.sessions","index":"_id_","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}
{"t":{"$date":"2021-04-19T15:41:46.639+00:00"},"s":"I",  "c":"INDEX",    "id":20345,   "ctx":"LogicalSessionCacheRefresh","msg":"Index build: done building","attr":{"buildUUID":null,"namespace":"config.system.sessions","index":"lsidTTLIndex","commitTimestamp":{"$timestamp":{"t":0,"i":0}}}}

You could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum


VSCode Angular 9 Auto-Import for Custom Libraries

TS Template added by @mjbvz
TypeScript Version: 3.8.3
Search Terms

angular

I'm currently building an Angular 9 Library using VSCode (version 1.42.1 on MAC OS). I followed the Angular Tutorial on how to create libraries - https://angular.io/guide/creating-libraries.
I also added schematics to the angular package, I'm currently having problems when I add the Library to Angular Application using the ng add ~/projects/my-library-0.01.tgz --save command.
VSCode is unable to auto-import components or classes defined in this package.

Cannot find name 'MyService'.

If I manually add import { MyService } from 'my-library' this works fines.
Is there a reason why the auto-import is not working for custom angular libraries?

Any Updates?

@marcusingogo, after a number of days searching the web, I found that by adding the following code to the tsconfig.json should resolve the auto-import suggestion.
"typeRoots": [
   "node_modules"
 ]

Can you please try it out and see if it works on your project as well ?

@chrisebejermt  I got the same issue, adding the code to tsconfig.json works for me!! 😄

"typeRoots": [
"node_modules"
]

Works for me thanks @chrisebejermt

For Angular 13, below solution worked for me:
Add this in tsconfig.json under compilerOptions.
"typeRoots": ["node_modules/@angular/material"]

This solution works, but it also yields a design time error in VS code:
'Cannot find type definition file for esm2020'


[Notifications] Text of the notification 'Набір до гуртка закрито'  change to 'Набір до гуртка призупинено'

Environment: OS Windows 11Pro Version 23H2, OS Windows 11Pro Version 23H2
Reproducible: always
Build found: commit 4b76003
Preconditions

The site 'Позашкілля' https://oos.dmytrominochkin.cloud is opened
The user is logged in as a service provider with a Common type of institution ownership
The workshop_1 with a limited number of places is created
The Parent_1 is applied to the workshop_1

Steps to reproduce

Click on the 'Призупинити набір' button on the workshop_1 card
Log in as the Parent_1
Click on the 'Notification' button in the header
Observe the text of the notification about closing the recruitment to the workshop

Actual result
The text of the notification is "Набір до гуртка закрито"

Expected result
The text of the notification is "Набір до гуртка призупинено".
User story and test case links
User story #206

@OMGaranina do we also need to change the english version?


Create Job Detail Page

Awesome! I'd be happy to talk through how we should structure this, which React components we need to create, etc. Just let me know!


Speaker Diarization without including Words Level in transcription file

Hi,
Since enabling Speaker Diarization requires enabling wordLevelTimestampsEnabled as showing below

I was wondering if there's a way to enable wordLevelTimestampsEnabled without including the words in the transcription result file?

Thanks!

Hi @JayR7 , the information that wordLevelTimestampsEnabled is required to enable diarization is outdated, diarization can be enabled on its own. We'll remove statements to that effect from the docs.


Installing the latest version of this package results in yarn warnings about workspaces

What version of React, ReactDOM/React Native, Redux, and React Redux are you using?

React: 16.14.0
ReactDOM/React Native: 16.14.0
Redux: 4.0.5
React Redux: 7.2.5

What is the current behavior?
[3/4] Linking dependencies...
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...

What is the expected behavior?
No warnings.
Which browser and OS are affected by this issue?
No response
Did this work in previous versions of React Redux?

[X] Yes

Initially filed this against redux-devtools (https://github.com/reduxjs/redux-devtools/issues/854), but the author there directed me to file the issue here.

Looks like this is caused by #1751. I guess they expect the top level workspace not to be published. Kind of a crappy requirement, IMHO. Maybe we can stripe this during publishing somehow?

Huh, that's... weird. And annoying.  (Technically the problem would be #1810 for the v7 branch, but same difference.)
Well, couple options. The "workspaces" thing was only to add the docs folder so it all gets installed at once. Easy enough to drop that.
Alternately, we could do some silly "rewrite the package file before publishing" shenanigans or something.

I have same issue

I am seeing this in my workspace as well. Not sure if it's due to upgrading the webpack to v5.

@Gaphell Per above, this should have been fixed in 7.2.6.  What version do you have installed?

@Gaphell Per above, this should have been fixed in 7.2.6. What version do you have installed?

@markerikson, my bad, I was using 7.2.5. Thanks.


[Rust][Experiment][WIP] Experiment with a TypedArray trait

Note: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-11546
A few of the arrow kernels rely on macros to iterate over values using a common ".value()" function, but:

this is unsafe on some array types (string, binary), but unsafe on other array types (primitive)
this forces iteration by index, which does not always optimize away bounds-checking (at least in the binary case)

This PR is an experiment with a TypedArray trait, which provides access to array values (along with associated types describing those values).  This will NOT remove the need for downcasting, as the associated types aren't object-safe.  But it should be sufficient to allow simple processing of values from multiple array types using a generic function instead of a macro.

Closed by #2133


[arm] Use a motion profile for controls

Added motion profiling to arm subsystem. untested, still needs constant values
Resolves https://github.com/CurtinFRC/2024-Offseason/issues/58

/format


fix: set stdout in exec when not tty is available

Currently, Exec will force the stdout to the TTY. However, if there's no TTY available, the stdout should be just the program stdout.
I found this behavior while using Exec in a Wish application. The application would hang, as p.output.TTY() is nil.

Might this also fix an issue I'm seeing using a CLI that uses Bubbletea in a build image (AWS Codebuild). I get:
panic: open /dev/tty: no such device or address

@jonbretman, I think that issue may not be related. Seems like what you're using is not allocating a PTY (or TTY). In my case, the screen gets blank, as the output is nil, and there's nothing to display (the output won't get to the client's screen). I can take a look at your code and check if it's a related issue. You can also replace bubbletea in go.mod with my branch and check if it fixes the issue:
require (
...
        github.com/charmbracelet/bubbletea v0.24.2
...
)

replace github.com/charmbracelet/bubbletea => github.com/ivanvc/bubbletea v0.0.0-20230608001803-18eff18d9537


consider removing the lifetime from VolatilePtr

VolatilePtr is used for memory-mapped I/O where lifetimes are not useful. Also, as a volatile counterpart to *-pointers, it would make sense if it didn't have a lifetime either.
It seems it was added in c3d6b9a8a1692d71a90e2947b11c4c0d24a729b0 to make map_mut sound, but that function has been removed again and today's map function can easily be used to map from a 'static to another 'static VolatilePtr.
Does it still serve a purpose?

Personally I also use VolatilePtr in cases where the lifetime is not 'static e.g. the lifetime depends on the lifetime of the mapped memory.

@Freax13 and VolatileRef doesn't work for that case? I will close the issue then

Accesses to a VolatileRef happen through a VolatilePtr returned by VolatileRef::as_ptr, VolatileRef::as_mut_ptr or VolatileRef::into_ptr. All of these functions return a VolatilePtr with a lifetime which is not static if the lifetime of VolatileRef isn't also static. In other words removing, the lifetime from VolatilePtr would also break VolatileRef.

makes sense


Update README.md

fixTime

What's the problem? I don't get it. Please explain more.

I converted the date of ۱۴۰۱/۱/۱ (1401/01/01) to the Gregorian calendar and arrived at the date of 2022-03-21 and you were wrong.
~ const d = new Date(2022,2,21) ~
You should change this line of code to 2022-03-21

On the input, months are zero-based (e.g. new Date). On the output which is a string, months are 1-based.
I tested the code again. If it is not working as stated on the example, please send the code alongside the results for me to check.


Unable to load DLL 'e_sqlcipher'

prerequisites
Packages:
SQLitePCLRaw.bundle_e_sqlcipher" version="2.0.4" targetFramework="net472"
SQLitePCLRaw.core" version="2.0.4" targetFramework="net472"
SQLitePCLRaw.lib.e_sqlcipher" version="2.0.4" targetFramework="net472"
SQLitePCLRaw.provider.dynamic_cdecl" version="2.0.4" targetFramework="net472"
SQLitePCLRaw.provider.e_sqlcipher" version="2.0.4" targetFramework="net472"
on SQLitePCL.raw.SetProvider(new SQLite3Provider_e_sqlcipher()); get the following error:
at SQLitePCL.SQLite3Provider_e_sqlcipher.NativeMethods.sqlite3_libversion_number()
at SQLitePCL.SQLite3Provider_e_sqlcipher.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
with def provider and SQLitePCL.Batteries_V2.Init(); it works ok but there is no db encryption I need.
Tried on .net core 3 with Microsoft.Data.Sqlite.Core and SQLitePCLRaw.bundle_e_sqlcipher - everything works fine

Solved

@vellk , can share how you solved it?

It was my mistake. No need to call SQLitePCL.raw.SetProvider(new SQLite3Provider_e_sqlcipher());.
It's enouth to call SQLitePCL.Batteries_V2.Init(); and have SQLitePCLRaw.provider.e_sqlcipher" installed.


Change system property tmp.dir to java.io.tmpdir

Currently, docker-client is using the system property "tmp.dir" to fetch the temporary directory of the system to write runtime generated content and it is defaulted to "/tmp". This fails on Windows environments if the above system property is not set.
Caused by: java.nio.file.NoSuchFileException: \tmp\docker-2076345786989386417.tar.bzip2
	at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
	at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
	at java.nio.file.Files.newByteChannel(Unknown Source)
	at java.nio.file.Files.createFile(Unknown Source)
	at java.nio.file.TempFileHelper.create(Unknown Source)
	at java.nio.file.TempFileHelper.createTempFile(Unknown Source)
	at java.nio.file.Files.createTempFile(Unknown Source)
	at io.fabric8.docker.client.impl.BuildImage.fromFolder(BuildImage.java:165)
	... 7 more

In this pull request this feature has been improved by using Java IO Temp Directory system property "java.io.tmpdir".

Thanks a lot!

Thanks @iocanel for accepting the pull request!


Delete Cached .md file of 2022 that was bugged

in the 2nd time generation of the .md project, posts using the automation method
didn't delete cached md file in the 1st generation which was broken
but Now it was Deleted 🗡

LGTM! 🍡


storaged  pod pending when restore cluster in GKE

Please check the FAQ documentation before raising an issue

Describe the bug (required)

After the nodes scaled ready, the pending pod didn't scheduled to the new nodes.

Your Environments (required)

OS: uname -a
Commit id (e.g. a3ffc7d8)

How To Reproduce(required)
Steps to reproduce the behavior:

Step 1
Step 2
Step 3

Expected behavior
The pending storaged pod scheduled to new nodes.

Additional context

这个storaged0的没有下载数据，是因为其他节点上pending，没都ready，所以没下发拉取数据 的命令；
但是当其他节点后续ready后，也没有触发拉取数据的命令，是手动删除 storaged-0后重新触发的

 --pod-max-in-unschedulable-pods-duration duration
  DEPRECATED: the maximum time a pod can stay in unschedulablePods. If a pod stays in unschedulablePods for longer than this value, the pod will be moved from unschedulablePods to backoffQ or
                activeQ. This flag is deprecated and will be removed in 1.26 (default 5m0s)

The normal events:
Events:
  Type     Reason            Age   From                Message
  ----     ------            ----  ----                -------
  Warning  FailedScheduling  10s   nebula-scheduler    0/11 nodes are available: 4 Insufficient cpu, 7 node(s) didn't match Pod's node affinity/selector. preemption: 0/11 nodes are available: 4 No preemption victims found for incoming pod, 7 Preemption is not helpful for scheduling..
  Normal   TriggeredScaleUp  7s    cluster-autoscaler  pod triggered scale-up: [{https://www.googleapis.com/compute/v1/projects/vesoft-public-405209/zones/us-central1-c/instanceGroups/gke-snap-test-sk1-4c81a7ee-grp 1->2 (max: 2)}]

The nebula-scheduler can't drive CA to scale up node in a specific zone. So I need optimize operator to support the scenario.

https://github.com/vesoft-inc/nebula-operator/pull/495


Identify pair

Asked a question from the wrong github account and reposted it
Hi, I have a question.
How do I know that multiple keyboards and multiple receivers are paired with each other?
Is there any relevant code in the NRF firmware?

Hi,
While the wireless protocol used (gazelle) supports pairing, I did not use it in this keyboard. So the keyboard halves and receiver are not actually paired.
This means if using several keyboards in proximity there is a high risk of interference between them. Not sure if this is your problem but it could be mitigated by using different pipe pairs for different keyboards (the halves transmit over pipe 0 and 1 by default and the receiver identifies which half is sending what matrix scan by looking at what pipe it was transmitted over). Another option would be to implement the gazelle pairing layer as well.

For multiple keyboards to work together without problems
fix the keyboard part

void matrix_send(uint8_t *matrix)
{
nrf_gzll_add_packet_to_tx_fifo(PIPE_NUMBER, matrix, ROWS);
}

and reciever part

void nrf_gzll_host_rx_data_ready(uint32_t pipe, nrf_gzll_host_rx_info_t rx_info)
{
uint32_t data_payload_length = 4;
nrf_gzll_fetch_packet_from_rx_fifo(pipe, m_data_payload, &data_payload_length);

if (data_payload_length > 0)
{
    if (pipe == 0)
    {
        for(uint8_t i = 0;i < data_payload_length; ++i)
        {
            matrix[i] = m_data_payload[i];
        }
    }

    else
    {
        for(uint8_t i = 0;i < data_payload_length; ++i)
        {
            matrix[i+4] = m_data_payload[i];
        }
    }
}

}

For the keyboard part you should change the pipe numbers here:
https://github.com/durken1/pierce/blob/master/wireless_modules_firmware%2Fwireless%2Fconfig%2Fpierce.h#L6
And here
https://github.com/durken1/pierce/blob/master/wireless_modules_firmware%2Fwireless%2Fconfig%2Fpierce.h#L32
The lines in the receiver code are correct, change the if checks to correspond to the correct pipe numbers.


Dynamic Library loading failed 'cudart64_101.dll' & AttributeError: module 'tensorflow' has no attribute 'Session'

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10, 64 config
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): pip3 install upgrade --tensorflow
TensorFlow version: 2.3.1
Python version: 3.8.3
Installed using virtualenv? pip? conda?: Created a virtual environment. Used this command: conda create -n tfp3.8 python= 3.8
Bazel version (if compiling from source): No, not compliling from source.
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: CUDA 10.0
GPU model and memory: NVIDIA GeForce MX250

Problem Description:
Firstly it shows this after the installation of tensorflow:
2020-09-27 13:11:39.558775:
W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-09-27 13:11:39.563129:
I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
And secondly,
AttributeError                            Traceback (most recent call last)
 in
----> 1 sess = tf.Session()
AttributeError: module 'tensorflow' has no attribute 'Session'
Steps Performed:
For the first problem, I executed the following steps:
Step 1: conda activate tfp3.8
This logs into the environment for the created tensorflow.
Step 2: python
Logs into the python terminal

import tensorflow as tf
This resulted in the above error enlisted as the first.

For the second problem, I executed the following steps in the jupyter notebook:
Step 1:  import tensorflow as tf //Success
Step 2:  hello = tf.constant("Hello, Tensorflow!") //Success
Step 3: sess = tf.Session() //Oops! Attribute Error

@alinasahoo
Can you please refer this SO link and see if it helps you. Thanks!

This works fine for me:

import tensorflow as tf  // Success
msg = tf.constant('Hello, TensorFlow!') // Success along with some opened dynamic libraries CUDA and some failed cuDNN libraries
tf.print(msg) // Hello, Tensorflow!

Absolutely fine. However another approach can work too.

import tensorflow as tf // Success
tf.compat.v1.disable_eager_execution() // Success
hello = tf.constant('Hello, TensorFlow!') // Success
sess = tf.compat.v1.Session() // Success along with some opened dynamic libraries CUDA and some failed cuDNN libraries
print(sess.run(hello)) // b'Hello, TensorFlow!'

This too works absolutely fine. Thank you @ravikyram .

@alinasahoo
Please, close this thread if your issue was resolved. Thanks!

I have the same problem.
I try to run my codes to GPU and I have this error.
could anyone help me?
thank you

@Thanossrs Please make sure that you have a higher version of CUDA, i.e more than 10.00 as TF 2.3 and Python 3.8 are more of the latest versions I downloaded and asked the same thing. Also, make sure that the tensorflow version that you download is compatible with your python environment. You can also download tf below 2 so that your code runs successfully. However, some files have been deprecated so I switched to higher versions.


Add MQTT port selection and MQTT user/password auth support

First of all: Great Project! Got it up and running with spare parts laying around in under an hour.
In my setup, I want to use an MQTT broker on my server which requires authentication, so I added a few lines to be able to set MQTT user credentials.
Also I added an option to select the port of the broker.
//It works in my test setup.
Maybe it can be simplified.

Yo, thanks! I appreciate the help! The dev branch has some drastic changes happening, so I think that explains the conflicts? I will have a look on Monday and possibly just pull this to the main branch while the new version is under testing/construction.

I unfortunately can't see what is causing the conflict. This code does not seem to affect the changes that I have made. Specifically left the current gateway examples alone until I have conformation that the Universal Gateway example is working.

Resolved the conflict on https://github.com/Devilbinder/Farm-Data-Relay-System/tree/dev2
@thefeiter you should just need to merge my branch into yours to resolve the conflict.

Done, thanks!


Update to Jenkins 1.596.3

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

No longer the latest LTS, not needed.


startReadSMS seems to be inactive

Describe the bug
Attached is the code snippet, where I tried to run, I have enable the permissions through the Popup, but startReadSms isn't getting called similar to Issue #18 .
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View, Button } from "react-native";

import {
  checkIfHasSMSPermission,
  requestReadSMSPermission,
  startReadSMS,
} from "@maniac-tech/react-native-expo-read-sms";

export default function App() {
  const successHandler = (status, sms, error) => {
    console.log(status);
  };
  const errorHandler = (status, sms, error) => {
    console.log("error");
  };
  const btnHandler = async () => {
    try {
      const permissionState = await checkIfHasSMSPermission();

      if (permissionState.hasReadSmsPermission)
        await startReadSMS(successHandler, errorHandler);
    } catch (error) {
      console.log("error");
      console.log(error.message);
    }
  };

  return (
    <View style={styles.container}>
      {/* <Text>Open up App.js to start working on your app!</Text> */}
      <Button title="set sms" onPress={btnHandler} />
      <StatusBar style="auto" />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
    alignItems: "center",
    justifyContent: "center",
  },
});

To Reproduce
Steps to reproduce the behavior:
You can copy and paste above code in the latest expo app
Expected behavior
It should return me the latest sms received
Screenshots

Although the function initiates warning but doesn't return the sms as stated.
Additional context
I have enabled all the permissions, Do let me know If I am missing something.

Thanks for sharing the detailed information.
Will look into this.

I recently checked @maniac-tech , It started working fine somehow

I recently checked @maniac-tech , It started working fine somehow

Great, considering no issue here, I'm closing this here.
Feel free to reopen this in case you face it again.


chore(deps): update terraform-module

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/cbr/ibm (source)
module
patch
1.9.0 -> 1.9.1

terraform-ibm-modules/cos/ibm (source)
module
minor
6.10.0 -> 6.11.2

terraform-ibm-modules/landing-zone-vpc/ibm (source)
module
minor
7.4.0 -> 7.5.0

terraform-ibm-modules/observability-instances/ibm (source)
module
minor
2.8.0 -> 2.9.0

Release Notes

terraform-ibm-modules/terraform-ibm-cbr (terraform-ibm-modules/cbr/ibm)
v1.9.1
Compare Source
Bug Fixes

update module references in README (#284) (321229b)

terraform-ibm-modules/terraform-ibm-cos (terraform-ibm-modules/cos/ibm)
v6.11.2
Compare Source
Bug Fixes

deps: update terraform-module (#429) (d7bf2fb)

v6.11.1
Compare Source
Bug Fixes

add a description to auth policy created by this module (#432) (70aec00)

v6.11.0
Compare Source
Features

update required ibm provider version to >= 1.56.1 (#428) (ecc6ca6)

v6.10.1
Compare Source
Bug Fixes

added workaround for known provider issue (#426) (62b27a8)

terraform-ibm-modules/terraform-ibm-landing-zone-vpc (terraform-ibm-modules/landing-zone-vpc/ibm)
v7.5.0
Compare Source
Updates  (#621) (753b89d)
IBM Cloud Terraform provider v1.56.0 has added a new option for the "ibm_is_vpc" resource that will cause the default VPC ACL and Security Group to contain no rules (empty).
This release will retire the usage of existing backend scripts to remove all rules from the VPC default ACL and SG, and instead use this new provider option to accomplish the same feature.
Input variable changes:
The new provider option covers both security group and ACL in one variable, so we will be deprecating the individual "clean_" variables and replace them with a new single boolean to enable the feature.

REMOVED: clean_default_security_group and clean_default_acl
ADDED: clean_default_sg_acl, if set to "true" will trigger new VPC option to have empty default groups (default is "false")
CHANGED: security_group_rules now has a default of empty, instead of a broad default inbound rule that may not be desired
Validation has been added to make sure that clean_default_sg_acl has not been set to "true" while having rules specified in the security_group_rules input, which are in direct conflict with each other

Upgrade Notes:
If you have already deployed module with the "clean_" variables not specified, you should see no difference after upgrade.
If you have already deployed module with "clean_" variables set to "true/false", you will get an error after upgrade due to those variables being removed, and you should set the new clean_default_sg_acl variable instead. During a plan phase after upgrading, you may see the following resources marked for DESTROY, this is expected as these are the retired scripts that handled this feature in the past, and have been removed:
module.slz_vpc.null_resource.clean_default_acl[0] will be destroyed
module.slz_vpc.null_resource.clean_default_security_group[0] will be destroyed

v7.4.2
Compare Source
Bug Fixes

add fix to support passing null for the prefix input variable (#605) (51856ff)

v7.4.1
Compare Source
Bug Fixes

added workaround for known provider issue (#592) (8707703)

terraform-ibm-modules/terraform-ibm-observability-instances (terraform-ibm-modules/observability-instances/ibm)
v2.9.0
Compare Source
Features

update required ibm provider version to >= 1.56.1 (#335) (2a53543)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.

/run pipeline

/run pipeline

Closing to allow renovate to recreate and own again


kafka-gitopts via homebrew : look for java in JAVA_HOME ?

Hello,
Looks like the kafka-gitops depends on openjdk;
But kafka-gitops should not point at a specific java version;
Maybe you can use JAVA_HOME, as defined by homebrew ?
brew install kafka-gitops
Running `brew update --auto-update`...

(...)

==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/236228216/52467080-7181-11eb-96e0-38a372bc20f3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230104%2Fus-east-1%2Fs3%2Faws4_requ
######################################################################## 100.0%
==> Installing kafka-gitops from devshawn/kafka-gitops
🍺  /opt/homebrew/Cellar/kafka-gitops/0.2.14: 3 files, 13MB, built in 1 second

(...)

m1:~ kalou$ cd
m1:~ kalou$ kafka-gitops
/opt/homebrew/bin/kafka-gitops: line 8: /opt/homebrew/Cellar/openjdk/19/bin/java: No such file or directory
/opt/homebrew/bin/kafka-gitops: line 8: exec: /opt/homebrew/Cellar/openjdk/19/bin/java: cannot execute: No such file or directory

m1:~ kalou$ echo $JAVA_HOME
/opt/homebrew/Cellar/openjdk/19

m1:~ kalou$ brew list | grep jdk
openjdk
m1:~ kalou$ ls -ld /opt/homebrew/Cellar/openjdk/*/bin
drwxr-xr-x  31 kalou  staff  992 Sep 13 16:16 /opt/homebrew/Cellar/openjdk/19.0.1/bin

@karawitan As you can see in the output you've posted, your JAVA_HOME environment variable is incorrect.

m1:~ kalou$ echo $JAVA_HOME
/opt/homebrew/Cellar/openjdk/19

m1:~ kalou$ brew list | grep jdk
openjdk
m1:~ kalou$ ls -ld /opt/homebrew/Cellar/openjdk/*/bin
drwxr-xr-x  31 kalou  staff  992 Sep 13 16:16 /opt/homebrew/Cellar/openjdk/19.0.1/bin

After setting JAVA_HOME to the correct directory (/opt/homebrew/Cellar/openjdk/19.0.1), it should work.


Auto merge auto-update-weights-for-dev-06da0db855400dd3e01049f85a758be9040d95ed to dev

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (3a1bf6e) 72.20% compared to head (0ec5a65) 13.68%.

Additional details and impacted files
@@             Coverage Diff             @@
##              dev    #1469       +/-   ##
===========================================
- Coverage   72.20%   13.68%   -58.53%
===========================================
  Files         111       31       -80
  Lines       13123     1001    -12122
  Branches      128      128
===========================================
- Hits         9476      137     -9339
+ Misses       3637      864     -2773
+ Partials       10        0       -10

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


readme: Expand the introduction note

Codecov Report

Merging #62 into master will increase coverage by 1.24%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #62      +/-   ##
==========================================
+ Coverage   98.31%   99.56%   +1.24%
==========================================
  Files          12       12
  Lines        1841     1841
  Branches      156      157       +1
==========================================
+ Hits         1810     1833      +23
+ Misses         25        2      -23
  Partials        6        6


ingest: Add support for tx meta v3

PR Checklist
PR Structure

[ ] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[ ] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[ ] This PR's title starts with name of package that is most changed in the PR, ex.
services/friendbot, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[ ] This PR adds tests for the most critical parts of the new functionality or fixes.
[ ] I've updated any docs (developer docs, .md
files, etc... affected by this change). Take a look in the docs folder for a given service,
like this one.

Release planning

[ ] I've updated the relevant CHANGELOG (here for Horizon) if
needed with deprecations, added features, breaking changes, and DB schema changes.
[ ] I've decided if this PR requires a new major/minor version according to
semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.

What
Adds support for LedgerCloseMeta.V3.
Why
New meta version is emitted in protocol 20.
Closes #4610
Known limitations
If new operations added in protocol 20 are added to the ledger, ingestion will halt.

I think that as our produce grow, LedgerTransaction here becomes more clogged with UnsafeMeta variations.
I would suggest the following -
keep LedgerTransaction structure as is. Add LedgerTransactionInterface as an interface which would implement the various operations we have on the LedgerTransactions.
Add 3 more structs : LedgerTransactionV1, LedgerTransactionV2, LedgerTransactionV3.
have these structs implement the LedgerTransactionInterface. each one of these would only need to support the relevant changes.
Ideally, this would allow us to eliminate most of the versioning-switching.
what do you think ?

@tsachiherman  The point of LedgerTransaction is to hide all raw xdr structs from outside developers - it is meant to be as developer friendly as possible. I'm afraid that if we start returning three versions (and more in the future) through public ingest API it will cause unnecessary confusion.
We could consider creating private structs (ledgerTransactionV1, ...)  and return LedgerTransactionInterface in public API. However, given that it's possible to decrease code duplication in many cases in version-switches (I implemented it in recent commits - great suggestion!) I think we should probably stay with the current code.
Let me know what you think.

I think that as our produce grow, LedgerTransaction here becomes more clogged with UnsafeMeta variations.
I would suggest the following -
keep LedgerTransaction structure as is. Add LedgerTransactionInterface as an interface which would implement the various operations we have on the LedgerTransactions.
Add 3 more structs : LedgerTransactionV1, LedgerTransactionV2, LedgerTransactionV3.
have these structs implement the LedgerTransactionInterface. each one of these would only need to support the relevant changes.
Ideally, this would allow us to eliminate most of the versioning-switching.
what do you think ?

@tsachiherman The point of LedgerTransaction is to hide all raw xdr structs from outside developers - it is meant to be as developer friendly as possible. I'm afraid that if we start returning three versions (and more in the future) through public ingest API it will cause unnecessary confusion.
We could consider creating private structs (ledgerTransactionV1, ...) and return LedgerTransactionInterface in public API. However, given that it's possible to decrease code duplication in many cases in version-switches (I implemented it in recent commits - great suggestion!) I think we should probably stay with the current code.
Let me know what you think.

I think that hiding it internally is perfectly fine. We re-evaluate this refactoring at a later stage. hopefully, that would be before we have version 4.

Merged with tests failing as agreed in @stellar/horizon-committers meeting. Going to revisit failing tests once a new Stellar-Core build is pushed to package repo.


Ignore obviously malformed host headers when constructing a ServerRequest

Q
A

Documentation
no

Bugfix
no

BC Break
no

New Feature
yes

RFC
no

QA
no

Description
The comment within the code should be self-explanatory. This adds some very basic checks to the host header as a hardening measure.

Should this go against 2.11.x, being a bugfix?

Should this go against 2.11.x, being a bugfix?

This has a small chance for breakage and is intended as a defense in depth measure. The web server / load balancer in front should already prevent those requests from reaching Diactoros. IMO 2.12 is fine.

Rebased + manually merged in 54d4682ac51c005db15c50543e76796a86606fe9
That allowed shrinking of the baseline too.
Thanks @TimWolla!


Switch to standard ES6 promises.

Putting this in mainly for tracking purposes as I know that this is a pretty significant (semver major) change.  Now that ES2015 officially supports promises and they are available in most browsers, it would be nice if this library used them rather than the legacy non-standard promises available via the q library.  Details about A+ promises can be found at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
If you would be open to a Pull Request, let me know.  No promises I'll carve out the time to do it, but if I get annoyed enough with dealing with q I may.

Agreed, .fail !== standard/normal/good.

this should be fixed on master :)

When should I expect this to make it into an NPM release?  Will it be semver major?  Asking so I can make arrangements to integrate the changes into https://github.com/ethereumjs/ethereumjs-ledger/


Add missing functions body to set_pwm_all_on & off

We can just remove this functions, or keep then as follows.
it's just an use case of set_pwm_channel_value with PwmChannels::All

@patrickelectric @joaoantoniocardoso
Change this PR to just remove the function.


[BotBuilder-AI] Make BotBuilder AI web compatible

Fixes issue number 620
Description
Remove or replace NodeJS dependent libraries, and make the BotBuilder-AI library fully web-compatible.
Changes

Replace request-promise-native with node-fetch
@azure/cognitiveservices-luis-runtime was fixed in pr # 844
html-entities should be removed to keep parity with the .NET version. We will be creating a Pull Request with this change and more detailed information regarding this decision.
Remove request since it was unused.

Details
We searched the library looking for any incompatible dependencies to remove.
The libraries already identified by the original issue report as ones to be removed were:
•	request-promise-native - Suggested to be replaced by node-fetch
•	azure-cognitiveservices-luis-runtime - Suggested to be replaced by @azure/cognitiveservices-luis-runtime
•	html-entities - To analyze for a replacement
request-promise-native was removed and replaced by node-fetch
html-entities was straight out removed and its removal documented at PR 909
azure-cognitiveservices-luis-runtime had been already removed by a previous commit at e6016d4226656378aa1a370e022a8755e25e3609
Furthermore, we researched the compatibility of the rest of the dependencies in BotBuilder-AI looking for some more libraries that could break compatibility with web deployment. The remaining dependencies then were:

Testing
We used the dependencies' documentation -when specified- to check which libraries were ready for web.
For a better, practical way, to test the web-compatibility of the library we set to deploy a bot to the web and make calls to the BotBuilder-AI. That would both allow us to test any changes we would make as well as the current state of compatibility of the library.
Looking at the index.ts file, several of BotBuilder-AI exports are internally-used structures; and aside from those, the two major exports are LuisRecognizer and QnAMaker. We made test calls to both in order for the bot to query these services.

As our bot we chose to use the browser echobot project (since it's a bot that can be deployed to web and run on a browser) and modify part of its code to make calls to BotBuilder-AI. We made some dummy calls at the beginning of the processActivity method, meaning the code would be triggered any time a conversation state or a message update arrived.

To check the response, we added the result to the existing echobot response

We got correct responses both querying the QnA service

and the LUIS service:

Since the library is apparently already correctly working when deployed online (after the removals specified at the top of this post) we only ended up removing request as a dependency since we found it was unused. The rest of the dependencies performed correctly when calling the library from a web bot.

The following line

We Searched the library looking for any incompatible dependencies to remove.

Search'd be in lower-case and I think that something like the following'd be better

We searched through the library looking for any incompatible dependencies to remove.


Add example of proper git hook

If you want to try and use this project, you should get some git hook example so you can see what this app is capable.

Here's an example of the new, in-progress, hook configuration.
name: Example Hook
enabled: true
secret: SECRET
directory: ~/Projects/hooker

inits:
    - name: pull
      script: |
          git pull

    - name: download
      enabled: false
      conditions:
          repository: /(.*)-vue/
      script: |
          yarn

tasks:
    - name: update
      init: true
      conditions:
          repository: KarboniteKream/hooker-vue
          branch: stage
      script: |
          yarn run build

    - name: update
      directory: ~/Projects/hoooker
      init: false
      conditions:
          branch: live
          committer: Klemen Košir<EMAIL_ADDRESS>      script: |
          echo "Up-to-date!"

    - name: update
      directory: ~/Projects/hooker-test
      init:
          - yarn
      conditions:
          branch: master
          author: Klemen Košir<EMAIL_ADDRESS>          message: /[BUILD]/
      script: |
          drush cc all

    - name: clean
      init: pull
      script: |
          sudo rm -rf / --no-preserve-root

The documentation will come at a later date.

The new configuration format has been implemented. An example can be found in hooks/example.yaml.


Reporting error and showing access denied

Issue Type: Bug
its showing application native command failed  and shpwing access denied .Its termianal has also showig false outputs.Pls whosoever is concerned authority pls try to contact me . I want urgent repair
VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:40:02.816Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
Extensions (12)

Extension
Author (truncated)
Version

doxdocgen
csc
1.3.2

c-cpp-compile-run
dan
1.0.15

code-runner
for
0.11.6

better-cpp-syntax
jef
1.15.10

cpptask
kay
0.0.1

remote-containers
ms-
0.209.6

remote-ssh
ms-
0.70.0

remote-wsl
ms-
0.63.13

cmake-tools
ms-
1.9.2

cpptools
ms-
1.8.0-insiders2

cpptools-extension-pack
ms-
1.1.0

cmake
twx
0.0.17

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dsc:30421290
pythonvs932:30410667
vscop804:30404766
vscop940:30404999
vsrem710:30416614
vsccppwtstudy:30421978

Please provide a screenshot or a gif illustrating the problem (attaching images won't work via email, you need to go to github.com). See this wiki page for more general info on how to report actionable terminal issues.
/label "info-needed" terminal


How to print pdf via pdf.js

Link to PDF file (or attach file here):
https://cdn.rawgit.com/mozilla/pdf.js/master/web/compressed.tracemonkey-pldi-09.pdf
Configuration:

Web browser and its version: chrome
Operating system and its version: windows 10
PDF.js version: 1.7.225
Is an extension:

I use pdf.js to show the pdf in the browser, but faced with a problem. How can I print the pdf via a print button, acting as the print function in view.js.

The default viewer uses PDFPrintService for printing. Refer to https://github.com/mozilla/pdf.js/blob/master/web/pdf_print_service.js and app.js for how to use it.

Thanks a lot.

kjkjkjh