belongstomany relationship

Laravel Version: 5.6
Voyager Version:1.0.15
PHP Version: 7.1.3
Database Driver & Version: mysql

Description:
how can I customize the keys when creating belongs to many relationship
may be I didn't use the default naming rule of laravel
Steps To Reproduce:

I can guarantee those version numbers aren't correct.  Voyager v1.0.* does not support Laravel 5.6.*
For your specific question, you'll need to provide much more information.  Describe the symptoms you're seeing.  Are you getting an error? If so, please provide the error message and stacktrace.  Please provide screenshots as appropriate.

you are right
my laravel version is 5.5
it was a mistake
imagine pivot table with columns :
q_id
t_id
and tables :
quests : id, name
tools: id,name
when we add a belongsto many relation in quest bread to tools table using pivot table
and then going to quest bread browse page it gives an error searchin for pivot.quest_id column wich doesnt exist .
where can I assign diffrent name such as q_id instead of quest_id

Voyager's relationship builder does not currently support non-standard field names.  You would need to use quest_id and tool_id for it to work without significant customization.  I can say that we're working to rebuild it and the new version will support what you're trying to do.

thanks
I know about the default name
the older versions was althoght fine with custom names before voyager 1
so i wondered asking if i have overlooked something
thanks for clarifying

I think that this issue can be closed, because there has been no activity since 12 Feb 2018 and it looks like the answer of @fletch3555 fixed the issue.
Or do you want to keep this open as a to do item (supporting non-standard field names)?


Storybook updates

I created a method of more dynamically building storybook instances.  If a schema is defined for the element, it is the easiest but the properties can be manually defined as well.
The goal of this enhancement is to speed up and make easier the theming process.  If an element can be quickly spun up with the right markup in storybook, we can start styling it much faster.
Eventually I think these tools can help us build a dynamic demo and testing framework as well.

The storybook utils.js are the crux of the PR.


Compile warning fixes

My build settings are set to treat warnings as error, so I had to fix a couple of warnings in this library.  The changes are minor.

This change is

This has been superceded by #89 and 24162899c99206167d8361c0bbb8b534bd0fe072.


[move-prover][refactoring] Examples for presentation + fixes.

This PR adds examples to illustrate transformation and compilation to tests/xsources/design. It also fixes a bug in copy progragation which was found with those examples. Finally, it optimizes the readability of the bytecode dump by filtering out packref/unpackref instructions which are unneeded already at memory instrumentation time. The later leads to a bunch of baseline updates.
Motivation
Prover refactoring.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Existing tests.
Related PRs
NA

/land

/land


Update MSRV check to account for features

updates the MSRV check to account for the serde and tokio-1 features

use cargo-no-dev-deps to ensure that dev dependencies don't impact the MSRV
checks a matrix of features for the MSRV

note that this would be trivial to modify so that that the matrix had a different MSRV for each feature, depending on the chosen policy of this repo. See https://github.com/mavlink/rust-mavlink/issues/258

closes #258

@danieleades can you solve the conflicts ?

@patrickelectric that's the conflicts resolved


Issue #21

added steps in detailed document to help users bridge from
SimulatedSystem --> FullSystem

Noticed a typo, see picture.

@pollockm @becega There are a few minor changes to documentation in this PR. Can you please disable the build step? I'm guessing Doug used the document upload feature through the web to make the changes, so the forked PR is not being built.


c2go -gepdeps: generate dependencies automatically

Codecov Report

Merging #16 (186cfbb) into main (5e7c56f) will decrease coverage by 0.41%.
The diff coverage is 48.14%.

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
- Coverage   86.34%   85.92%   -0.42%
==========================================
  Files           8        9       +1
  Lines        2395     2416      +21
==========================================
+ Hits         2068     2076       +8
- Misses        263      276      +13
  Partials       64       64

Impacted Files
Coverage Δ

cl/pkginfo.go
38.09% <38.09%> (ø)

cl/compile.go
90.47% <83.33%> (ø)

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 5e7c56f...186cfbb. Read the comment docs.


Ensure we handle non MySQL input gracefully

When we are presented with pcap files they could have traffic unrelated to MySQL connections.  We ought to be able to ignore that.
I wonder if it's worth having a mode where we note the connections but note they didn't appear to be MySQL traffice?

It might be neat to allow it to filter by ports as a way to simplify the processing since we can technically filter easily at the packet layer.  We wouldn't even need to reconstruct the tcp conversations.

Added a --server-ports option for pre-emptive filtering.

This seems to be working fine out of the box.


finding UI elements using pymemuc and ADB

i found this https://qxf2.com/blog/identify-ui-elements-mobile-apps/
You said something about using coordinates
The shortcomings with this approach are
The coordinates differ for each device
Layout might change in an app update
Ads pop up from memu or the main app, can stop the coordinates
Xpath or id remains the best way to locate element on any app
my question is that is there no way  to make use of what we have in the url ablove
Example:https://www.youtube.com/watch?v=sd0Cy1VYWzU

why not use the appium package they mention? does it not do what you're looking for?

How to install python modules

do you have a solution for performing a tap?

pymemuc can send any ADB command to MEmu emulators, including the ADB input tap command.


Issues when schema.gql has """ formatted comments

Hello.  My graphql schema has triple-quote descriptions, such as """Description goes here""".
Seems like I'm not getting autocomplete when that is the case.  If I go to the schema.gql file and replace all """ with #, there is no longer an issue and my autocomplete works as expected (within gql tags).

Descriptions don't seem to be supported at all:

That's because of the @playlyfe/gql not supporting the graphql definition for comments/descriptions.
You want to follow this issue that has been opened over a year ago now:
https://github.com/Mayank1791989/gql/issues/143


Why was there a breaking change for nullable types?

In Typewriter v2.12.0 (commit 9113fa1), a breaking change was introduced for nullable types. Type.Name is appended with " | null" by default now. I don't think this is good default behavior, unless it can be disabled somehow?
Consider this. There are at least 5 different ways of defining nullable, undefinable or optional properties in TypeScript:
interface Example {
    prop1: string | null;
    prop2: string | undefined;
    prop3: string | null | undefined;
    prop4?: string;
    prop5?: string | null;
}

In my projects, I almost always use the fourth option. In C#, I have configured my JSON serializers to prevent null-valued properties from being serialized, so my API never returns the null value.
Now I'm forced to add this to my template everywhere I use Type.Name:
item.Type.Name.EndsWith(" | null") ? item.Type.Name.Substring(0, item.Type.Name.Length - 7) : item.Type.Name

Please consider reverting this breaking change, or at the very least make it configurable. It has already caused other issues:

https://github.com/AdaskoTheBeAsT/Typewriter/commit/9d456597772a918da01e7d49b788c9e2012158df
https://github.com/AdaskoTheBeAsT/Typewriter/pull/32

I will make it optional on some weekend
breaking change was introduced due to
https://github.com/Microsoft/TypeScript/pull/7140
as I would like to have strict null checks in frontend in same way as it is in c# with nullable enable

@RudeySH I added possibility to disable | null  on nullable types
by using DisableStrictNullGeneration in settings
Template(Settings settings)
{
    settings
        .DisableStrictNullGeneration()
        ;
}

released in https://github.com/AdaskoTheBeAsT/Typewriter/releases/tag/v2.14.0


Workaround for babel/minify confusion hitting React Native users.

Consider applying this patch to help make life a bit easier for React Native users getting hit with bugs in Babel or the React Native minification process. You can read about the details here:
https://github.com/facebook/react-native/issues/4459

Babel bug tracking here: https://phabricator.babeljs.io/T6736.

Bug was fixed upstream in babel, no need for fix here any more.


Feature/ng generate icon lib schematics

:tada: This PR is included in version 1.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Example lists "root' but text mentions "bundlePath"

@nponeccop Can you sign your commit? Thanks.

I remember doing that in the past but now somehow cannot google how to sign-off my existing commit. Can you help or find a reference?

@nponeccop git commit --amend --signoff

@nponeccop There is instruction in README.md

On Sun, Nov 29, 2015 at 03:00:09AM -0800, nponeccop wrote:

Example lists "root' but text mentions "bundlePath"

Cross-linking #206, so folks reading either PR can find the related
change.

LGTM


Design / naming tweaks

Changed mention of Make GIF to GIF Booth, replaced React Favicon with custom one
Fixes #3

Thanks @gisete !

@all-contributors please add @gisete for design, code


SSL Error

probably due to the load testing happening right now, this happens for trying to install any package.
  Could not fetch URL https://pypi.python.org/simple/upgrade/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
  Could not find a version that satisfies the requirement upgrade (from versions: )
No matching distribution found for upgrade

Seconded:
13:15:49 13:15:49 C:\Jenkins\workspace\e-WVXSGA3LYY>C:\tools\python\python.exe -m pip install --upgrade pip --verbose
13:15:49 13:15:49 Getting page https://pypi.python.org/simple/pip/
13:15:49 13:15:49 Starting new HTTPS connection (1): pypi.python.org
13:15:50 13:15:50 "GET /simple/pip/ HTTP/1.1" 302 98
13:15:50 13:15:50 Starting new HTTPS connection (1): pypi.org
13:15:51 13:15:51 Could not fetch URL https://pypi.python.org/simple/pip/: connection error: EOF occurred in violation of protocol (_ssl.c:590) - skipping
13:15:51 13:15:51 1 location(s) to search for versions of pip:
13:15:51 13:15:51 * https://pypi.python.org/simple/pip/
13:15:51 13:15:51 Getting page https://pypi.python.org/simple/pip/
13:15:51 13:15:51 Resetting dropped connection: pypi.python.org
13:15:51 13:15:51 "GET /simple/pip/ HTTP/1.1" 302 98
13:15:51 13:15:51 Starting new HTTPS connection (2): pypi.org
13:15:51 13:15:51 Could not fetch URL https://pypi.python.org/simple/pip/: connection error: EOF occurred in violation of protocol (_ssl.c:590) - skipping
13:15:51 13:15:51 Installed version (7.1.2) is most up-to-date (past versions: none)
13:15:51 13:15:51 Requirement already up-to-date: pip in c:\tools\python\lib\site-packages
13:15:51 13:15:51 Cleaning up...
13:15:51 13:15:51 You are using pip version 7.1.2, however version 9.0.3 is available.
13:15:51 13:15:51 You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Running in our Jenkins environment:
Windows Server 2012 R 2
Python 2.7.11 (due to infrastructure team requirements)

What versions of OpenSSL and pip are you running? What output do you get when you run
openssl s_client -connect pypi.org:443
and
openssl s_client -connect files.pythonhosted.org:443
https://mail.python.org/pipermail/python-announce-list/2018-April/011885.html may be relevant.

To upgrade to the latest pip (9.0.3) to connect to the Python Package Index securely:
curl https://bootstrap.pypa.io/get-pip.py | python

This is happening for me on pip 9.0.3, Python 3.6.5, RHEL 7.4.
# pip -vvv install django
Collecting django
  1 location(s) to search for versions of django:
  * https://pypi.python.org/simple/django/
  Getting page https://pypi.python.org/simple/django/
  Looking up "https://pypi.python.org/simple/django/" in the cache
  No cache entry available
  Starting new HTTPS connection (1): pypi.python.org
  https://pypi.python.org:443 "GET /simple/django/ HTTP/1.1" 302 98
  Status code 302 not in [200, 203, 300, 301]
  Looking up "https://pypi.org/simple/django/" in the cache
  No cache entry available
  Starting new HTTPS connection (1): pypi.org
  Incremented Retry for (url='/simple/django/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/django/

# curl -V
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.28.4 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets

# curl https://pypi.python.org/simple/django/ --trace-ascii -
== Info: About to connect() to pypi.python.org port 443 (#0)
== Info:   Trying <IP_ADDRESS>...
== Info: Connected to pypi.python.org (<IP_ADDRESS>) port 443 (#0)
== Info: Initializing NSS with certpath: sql:/etc/pki/nssdb
== Info:   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
== Info: SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
== Info: Server certificate:
== Info:        subject: CN=www.python.org,O=Python Software Foundation,L=Wolfeboro,ST=New Hampshire,C=US,serialNumber=3359300,incorporationState=Delaware,incorporationCountry=US,businessCategory=Private Organization
== Info:        start date: Mar 28 00:00:00 2018 GMT
== Info:        expire date: Sep 27 12:00:00 2018 GMT
== Info:        common name: www.python.org
== Info:        issuer: CN=DigiCert SHA2 Extended Validation Server CA,OU=www.digicert.com,O=DigiCert Inc,C=US
=> Send header, 93 bytes (0x5d)
0000: GET /simple/django/ HTTP/1.1
001e: User-Agent: curl/7.29.0
0037: Host: pypi.python.org
004e: Accept: */*
005b:
<= Recv header, 20 bytes (0x14)
0000: HTTP/1.1 302 Found
<= Recv header, 17 bytes (0x11)
0000: Server: Varnish
<= Recv header, 16 bytes (0x10)
0000: Retry-After: 0
<= Recv header, 43 bytes (0x2b)
0000: Location: https://pypi.org/simple/django/
<= Recv header, 40 bytes (0x28)
0000: Content-Type: text/html; charset=UTF-8
<= Recv header, 20 bytes (0x14)
0000: Content-Length: 98
<= Recv header, 22 bytes (0x16)
0000: Accept-Ranges: bytes
<= Recv header, 37 bytes (0x25)
0000: Date: Thu, 12 Apr 2018 18:15:53 GMT
<= Recv header, 18 bytes (0x12)
0000: Via: 1.1 varnish
<= Recv header, 19 bytes (0x13)
0000: Connection: close
<= Recv header, 33 bytes (0x21)
0000: X-Served-By: cache-mdw17343-MDW
<= Recv header, 14 bytes (0xe)
0000: X-Cache: HIT
<= Recv header, 17 bytes (0x11)
0000: X-Cache-Hits: 0
<= Recv header, 37 bytes (0x25)
0000: X-Timer: S1523556953.148089,VS0,VE0
<= Recv header, 23 bytes (0x17)
0000: X-Frame-Options: deny
<= Recv header, 33 bytes (0x21)
0000: X-XSS-Protection: 1; mode=block
<= Recv header, 33 bytes (0x21)
0000: X-Content-Type-Options: nosniff
<= Recv header, 41 bytes (0x29)
0000: X-Permitted-Cross-Domain-Policies: none
<= Recv header, 2 bytes (0x2)
0000:
<= Recv data, 98 bytes (0x62)
0000: <title>302 Found</title>
302
0040:  Found

<title>302 Found</title>
302 Found
== Info: Closing connection 0

# curl https://pypi.org/simple/django/ --trace-ascii -
== Info: About to connect() to pypi.org port 443 (#0)
== Info:   Trying <IP_ADDRESS>...
== Info: Connected to pypi.org (<IP_ADDRESS>) port 443 (#0)
== Info: Initializing NSS with certpath: sql:/etc/pki/nssdb
== Info:   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
== Info: NSS error -5961 (PR_CONNECT_RESET_ERROR)
== Info: TCP connection reset by peer
== Info: Closing connection 0
curl: (35) TCP connection reset by peer

Just as a diagnostic: Every TLS error we've had reported that wasn't strictly lack of support for TLSv1.2 thus far has ended up being a Proxy issue. @matthewdias @brewneaux is your client behind an HTTP proxy or mitm box of some kind?

@brainwane  - We are not running openssl on this windows machine.
@ewdurbin - Nope, no proxy or anything.

load testing is complete for the day. is this still reproducible?

I have an SSL issue that does not reproduce after the switch back.
PS C:\Users\ > python -V
Python 3.6.1
PS C:\Users\ > python -c "import ssl; print(ssl.OPENSSL_VERSION)"
OpenSSL 1.0.2k  26 Jan 2017
PS C:\Users\ > python -m pip install -vU pip
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
1 location(s) to search for versions of pip:
* https://pypi.python.org/simple/pip/
Getting page https://pypi.python.org/simple/pip/
Looking up "https://pypi.python.org/simple/pip/" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.python.org
"GET /simple/pip/ HTTP/1.1" 302 98
Status code 302 not in [200, 203, 300, 301]
Looking up "https://pypi.org/simple/pip/" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.org
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) - skipping
Installed version (9.0.1) is most up-to-date (past versions: none)
Requirement already up-to-date: pip in c:\users\e99689\appdata\local\programs\python\python36\lib\site-packages
Cleaning up...
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

I can access the page in web browsers fine, but not with requests. Hoping it's not some nasty VPN issue because I reproduced it on 3 other computers on the same network, all running Windows 10/Python 3.6

No proxy here @ewdurbin. still reproducing.

upgrading to pip 9.0.3 did the trick

Python: 2.7.3
OS: Windows 7
c:\python27\lib\site-packages\pip_vendor\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
c:\python27\lib\site-packages\pip_vendor\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#insecureplatformwarn
ing.
InsecurePlatformWarning
Could not fetch URL https://pypi.python.org/simple/pyopenssl/: There was a problem confirming the ssl certificate: [Errno 1] ssl.c:504: e
rror:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version - skipping
Could not find a version that satisfies the requirement pyOpenSSL>=0.14; python_version <= "2.7" and extra == "secure" (from urllib3==1.17
) (from versions: )
No matching distribution found for pyOpenSSL>=0.14; python_version <= "2.7" and extra == "secure" (from urllib3==1.17)
c:\python27\lib\site-packages\pip_vendor\requests\packages\urllib3\util\ssl.py:122: InsecurePlatformWarning: A true SSLContext object is n
ot available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a n
ewer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarn
ing.
InsecurePlatformWarning

Your easiest option is to use a newer release of Python.

I cannot move to higher versions of Python due to heavy dependencies I have for my project. I might run into compatibility issues or might need a lot of code changes.
This started happening from last 1 week.
Just FYI.... PIP version we use: 9.0.1

I would not expect significant breakages moving to a newer Python 2.7 release.
This is caused by the deprecation and removal of TLS1.0/1.1, Python 2.7.3 on Windows comes with an older version of OpenSSL: https://status.python.org/incidents/hdx7w97m5hr8
Your other option if you're stuck on exactly Python 2.7.3 is to build your own Python linked against a newer OpenSSL.

This is still an issue for us: we are not running any different version of SSL than what comes with Python 2.7.11, and cannot upgrade pip either:
13:31:29 13:31:29 C:\Jenkins\workspace\4-WEX55NLNAH>C:\tools\python\python.exe -m pip install --upgrade pip --verbose
13:31:29 13:31:29 Getting page https://pypi.python.org/simple/pip/
13:31:29 13:31:29 Starting new HTTPS connection (1): pypi.python.org
13:31:30 13:31:30 "GET /simple/pip/ HTTP/1.1" 302 98
13:31:30 13:31:30 Starting new HTTPS connection (1): pypi.org
13:31:31 13:31:31 Could not fetch URL https://pypi.python.org/simple/pip/: connection error: EOF occurred in violation of protocol (_ssl.c:590) - skipping
13:31:31 13:31:31 1 location(s) to search for versions of pip:
13:31:31 13:31:31 * https://pypi.python.org/simple/pip/
13:31:31 13:31:31 Getting page https://pypi.python.org/simple/pip/
13:31:31 13:31:31 Resetting dropped connection: pypi.python.org
13:31:31 13:31:31 "GET /simple/pip/ HTTP/1.1" 302 98
13:31:31 13:31:31 Starting new HTTPS connection (2): pypi.org
13:31:32 13:31:32 Could not fetch URL https://pypi.python.org/simple/pip/: connection error: EOF occurred in violation of protocol (_ssl.c:590) - skipping
13:31:32 13:31:32 Installed version (7.1.2) is most up-to-date (past versions: none)
13:31:32 13:31:32 Requirement already up-to-date: pip in c:\tools\python\lib\site-packages
13:31:32 13:31:32 Cleaning up...
13:31:32 13:31:32 Starting new HTTPS connection (1): pypi.python.org
13:31:33 13:31:33 "GET /pypi/pip/json HTTP/1.1" 302 98
13:31:33 13:31:33 Starting new HTTPS connection (1): pypi.org
13:31:33 13:31:33 There was an error checking the latest version of pip
13:31:33 13:31:33 Traceback (most recent call last):
13:31:33 13:31:33   File "C:\tools\python\lib\site-packages\pip\utils\outdated.py", line 126, in pip_version_check
13:31:33 13:31:33     headers={"Accept": "application/json"},
13:31:33 13:31:33   File "C:\tools\python\lib\site-packages\pip\_vendor\requests\sessions.py", line 477, in get
13:31:33 13:31:33     return self.request('GET', url, **kwargs)
13:31:33 13:31:33   File "C:\tools\python\lib\site-packages\pip\download.py", line 373, in request
13:31:33 13:31:33     return super(PipSession, self).request(method, url, *args, **kwargs)
13:31:33 13:31:33   File "C:\tools\python\lib\site-packages\pip\_vendor\requests\sessions.py", line 465, in request
13:31:33 13:31:33     resp = self.send(prep, **send_kwargs)
13:31:33 13:31:33   File "C:\tools\python\lib\site-packages\pip\_vendor\requests\sessions.py", line 594, in send
13:31:33 13:31:33     history = [resp for resp in gen] if allow_redirects else []
13:31:33 13:31:33   File "C:\tools\python\lib\site-packages\pip\_vendor\requests\sessions.py", line 196, in resolve_redirects
13:31:33 13:31:33     **adapter_kwargs
13:31:33 13:31:33   File "C:\tools\python\lib\site-packages\pip\_vendor\requests\sessions.py", line 573, in send
13:31:33 13:31:33     r = adapter.send(request, **kwargs)
13:31:33 13:31:33   File "C:\tools\python\lib\site-packages\pip\_vendor\cachecontrol\adapter.py", line 46, in send
13:31:33 13:31:33     resp = super(CacheControlAdapter, self).send(request, **kw)
13:31:33 13:31:33   File "C:\tools\python\lib\site-packages\pip\_vendor\requests\adapters.py", line 431, in send
13:31:33 13:31:33     raise SSLError(e, request=request)
13:31:33 13:31:33 SSLError: EOF occurred in violation of protocol (_ssl.c:590)

Are you running on a network with a proxy or MITM device of some sort?

Can you tell me what python -c "import ssl; print(ssl.OPENSSL_VERSION) prints?

OpenSSL 1.0.2d 9 Jul 2015

Something else is going on here, the errors you're seeing are unrelated to the TLS1.2 requirement, assuming you aren't behind a proxy of any sort.

Folks in this thread might like to review #3720 which adds TLS deprecation help to http://pypi.org/help/.

Update: the CERTIFICATE_VERIFY_FAILED issue was indeed a network policy issue and has been resolved.

We have 18 nightly CI build failures, so far, all with errors with CERTIFICATE_VERIFY_FAILED from pip install or similar. For example
python /ptmp/jenkins/<snip>/chpl-virtualenv/bin/pip install \
-U --force-reinstall  -r chpldoc-requirements.txt
Collecting Jinja2==2.8 (from -r chpldoc-requirements.txt (line 1))
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)'),)': /packages/96/a1/c56bc4d99dc2663514a8481511e80eba8994133ae75eebdadfc91a5597d9/Jinja2-2.8-py2.py3-none-any.whl

Most occurred between 7:00-7:45am UTC, with a few outliers as recently as 13:03 UTC.

Certificate verify failed is a different error from the TLS1.0 issues that this issue is for. I suspect we're not going to be able to diagnose it without more info on your system and network.

SLES-12 Linux.
OpenSSL 1.0.2j-fips  26 Sep 2016.
Corporate LAN, no proxy.
Right now, these commands work. So does pip install.
openssl s_client -connect pypi.org:443
openssl s_client -connect pypi.python.org:443
openssl s_client -connect files.pythonhosted.org:443

Can you paste the certificate (everything between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- ) you see when you run the openssl s_client command?

System time wrong?

No other indications of incorrect system time, AFAIK.
I should have mentioned, these errors occurred across several machines, all SLES-12. A few outliers may have a different openssl version- the other 8 machines are identical.

Found a bit of legacy on our side, left over from years ago and mostly forgotten.
$HOME/.pip/pip.conf contained [global] cert = DigiCert_High_Assurance_EV_Root_CA.pem
That cert file exists.
A developer here thought removing that pip.conf file helped avoid the CERTIFICATE_VERIFY_FAILED.
So I removed the copy that Jenkins sees, even though it didn't seem to make a difference to me.

You should remove that option, PyPI does not guarantee what CA it'll use, and in fact while pypi.org uses that DigiCert CA, files.pythonhosted.org which serves the actual files is using a different CA.

are you still experiencing these problems?

No, None seen since my last comment.
Thanks.

gonna close this for now. feel free to reopen if necessary.

Hi all.
i'm having the same issue when trying to run devstack which is trying to get pip using the following command i added the verbose parameter
sudo -H -E python /opt/stack/devstack/files/get-pip.py -c /opt/stack/devstack/tools/cap-pip.txt --verbose

i get this output, and it just hangs there forever then tries four more times and quits.
Created temporary directory: /tmp/pip-ephem-wheel-cache-WNf2he
Created temporary directory: /tmp/pip-req-tracker-YNDzMb
Created requirements tracker '/tmp/pip-req-tracker-YNDzMb'
Created temporary directory: /tmp/pip-install-qbbm3e
Setting pip!=8,<10 (from -c /opt/stack/devstack/tools/cap-pip.txt (line 1)) extras to: ()
Collecting pip!=8,<10 (from -c /opt/stack/devstack/tools/cap-pip.txt (line 1))
  1 location(s) to search for versions of pip:
  * https://pypi.org/simple/pip/
  Getting page https://pypi.org/simple/pip/
  Looking up "https://pypi.org/simple/pip/" in the cache
  No cache entry available
  Starting new HTTPS connection (1): pypi.org:443

My machine is sitting behind a proxy, that uses a white list to allow some domain names, these domains are allowed.
# python
.pypa.io
.python.org
.pypi.org
.pythonhosted.org

and also we use our own certificate
i can get the page with a curl curl -v pypi.org:443 but this is the output i get with the verbose mode.
* Rebuilt URL to: www.pypi.org:443/
*   Trying X.X.X.X...
* Connected to X.X.X.X (X.X.X.X) port XXYY (#0)
> GET http://www.pypi.org:443/ HTTP/1.1
> Host: www.pypi.org:443
> User-Agent: curl/7.47.0
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 503 Service Unavailable
< Server: squid/3.5.12
< Mime-Version: 1.0
< Date: Fri, 24 Aug 2018 15:55:36 GMT
< Content-Type: text/html;charset=utf-8
< Content-Length: 3601
< X-Squid-Error: ERR_CONNECT_FAIL 101
< Vary: Accept-Language
< Content-Language: en
< X-Cache: MISS from dns
< X-Cache-Lookup: MISS from dns:XXYY
< Via: 1.1 dns (squid/3.5.12)
< Connection: close
<
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

...

* Closing connection 0

but when i run an openssl i get nothing sudo openssl s_client -connect pypi.org:443
Please any help is appreciated.
this thing is driving me nuts.
Thank you.

@MheniMerz the 503 response is coming from squid, which is a well known HTTP caching/forwarding service. In order to understand what is going on, you'll need to contact the administrators of the squid proxy for more information.

i can see from the squid access logs that there is a TCP_MISS for www.pypi.org.
which means the proxy doesn't have the content stored in the cache and it should go out to the net to get the content.

i have managed to force pip to use the proxy by modifying the command to the following
sudo -H -E python /opt/stack/devstack/files/get-pip.py \
    --proxy="http://X.X.X.X:XXYY" \
    -c /opt/stack/devstack/tools/cap-pip.txt --verbose

but now I'm getting a new error suggesting that my certificate is not enough.
  Starting new HTTPS connection (1): pypi.org:443
  Incremented Retry for (url='/simple/pip/'): Retry(total=4, connect=None,
  read=None, redirect=None, status=None)
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
  after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED]
  certificate verify failed (_ssl.c:590)'),)': /simple/pip/

anyone had this before?

Hi @MheniMerz, maintainers of PyPI aren't equipped to assist with specific setups involving corporate proxies, firewalls, caching proxies, or other "Man in the Middle" type infrastructure.
The error above indicates that you may still be connecting to such a proxy.
The only guidance I can provide would be:

ensure you are using an up to date version of pip, you can upgrade pip without PyPI using https://pip.pypa.io/en/stable/installing/#installing-with-get-pip-py
if the problem persists, it appears that you may still be connecting via a proxy. you should ensure that the the Certificate Authority for that proxy is in the trust store that pip uses, though I'm not sure how to confirm that.

thank you for your help. problem was solved by adding some domain names as trusted-host
sudo -H -E python /opt/stack/devstack/files/get-pip.py \
    --proxy="http://X.X.X.X:XXYY" \
    --trusted-host pypi.org\
    --trusted-host files.pythonhosted.org
    -c /opt/stack/devstack/tools/cap-pip.txt --verbose

But since the script I'm using has hundreds of similar calls to pip. is there a config file or somewhere i can set all calls to use these parameters instead of changing them one by one ?
Thanks again.
Mheni

See https://pip.pypa.io/en/stable/user_guide/#configuration

Seems broken (again?) without a way to recover on the latest CentOS 7 cloud image:
$ sudo python get-pip.py --trusted-host pypi.org --trusted-host files.pythonhosted.org --verbose
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Created temporary directory: /tmp/pip-ephem-wheel-cache-_S3U42
Created temporary directory: /tmp/pip-req-tracker-6YkdVV
Created requirements tracker '/tmp/pip-req-tracker-6YkdVV'
Created temporary directory: /tmp/pip-install-HpbS35
Collecting pip
  1 location(s) to search for versions of pip:
  * https://pypi.org/simple/pip/
  Getting page https://pypi.org/simple/pip/
  Starting new HTTPS connection (1): pypi.org:443
  Incremented Retry for (url='/simple/pip/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL] unknown error (_ssl.c:618)'),)': /simple/pip/
  Starting new HTTPS connection (2): pypi.org:443
fips.c(145): OpenSSL internal error, assertion failed: FATAL FIPS SELFTEST FAILURE
Aborted

Versions:
$ python --version
Python 2.7.5
$ python -c "import ssl; print(ssl.OPENSSL_VERSION)"
OpenSSL 1.0.2k-fips  26 Jan 2017

No tricks I've tried so far have helped. VirtualEnv behaves the same way. --trusted-host doesn't change anything, nor does PYTHONHTTPSVERIFY=0. Updating pip is not possible because get-pip.py fails with the same error as you can see above. I tried to update pip from a tarball in a venv, but it did not help either. And thanks to the whole TLS hype, the new pypi.org doesn't have a plain HTTP version. :(
Any hints?

@dtantsur I can't reproduce:
$ docker run -it centos:7
[root@d1c5b696f7cd /]# curl -s https://bootstrap.pypa.io/get-pip.py -o get-pip.py
[root@d1c5b696f7cd /]# python get-pip.py
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pip
  Downloading https://files.pythonhosted.org/packages/f9/fb/863012b13912709c13cf5cfdbfb304fa6c727659d6290438e1a88df9d848/pip-19.1-py2.py3-none-any.whl (1.4MB)
     |################################| 1.4MB 1.2MB/s
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl (575kB)
     |################################| 583kB 7.8MB/s
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/96/ba/a4702cbb6a3a485239fbe9525443446203f00771af9ac000fa3ef2788201/wheel-0.33.1-py2.py3-none-any.whl
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-19.1 setuptools-41.0.1 wheel-0.33.1
[root@d1c5b696f7cd /]# python --version
Python 2.7.5
[root@d1c5b696f7cd /]# python -c "import ssl; print(ssl.OPENSSL_VERSION)"
OpenSSL 1.0.2k-fips  26 Jan 2017
[root@d1c5b696f7cd /]#

Yeah, it seems to be something tricky. As I noted, the only non-standard thing about my VM is that it's a nested VM. I'll work on a better reproducer, if it's possible.


Added the port flag to the URL create command.

fixes https://github.com/redhat-developer/odo/issues/553
Signed-off-by: mdas<EMAIL_ADDRESS>This PR adds the port flag to the URL create command. The 'odo url list' was modified to display the port of the url and the display format was changed to a more tabular form.
Also added function GetComponentServicePortNumbers to pkg/url package to expose the routes exposed by the service.

@anmolbabu Done

@ashetty1 Passing port no is mandatory in case of components which expose two ports while creation. In case of components which expose a single port while creation, the port number is detected and used automatically.

@mlk-dass then we definitely need unit and e2e tests for cases where port no is not provided.

@ashetty1 I have already added the unit tests for the new function and also modified a few others, I will add the e2e tests for the no port no provided condition

@anmolbabu @kadel Done

@kadel Done


Support length() on arrays

Small change, but have a few of these planned, which together should add up to some useful improvements.

Nice


Error 500 if adding an SSH key with the same name

When adding an SSH key with the same name as another already existing, a 500 error is displayed and a database error logged:

[setting.go:353 SettingsSSHKeysPost()] [E] ssh.AddPublicKey: pq: duplicate key value violates unique constraint "UQE_public_key_S"

Expected output: A reasonable error message.

Not sure what version of Gogs you're using, but the current version does have a user-friendly message.

Closed as implemented. :octocat:


[BUG] ReactiveCosmosRepository.saveAll() no longer save item

Describe the bug
I am using the saveAll() method from ReactiveCosmosRepository to save a list of data into Cosmos DB
This work fine in azure-spring-data-cosmos-5.5.0. Recently I upgrade to azure-spring-data-cosmos-5.7.0. Now saveAll() no longer generate the id to the item being saved and I checked in DB nothing is saved.
Please help me understand what changed in the version to cause the behavior change. Thank you.
Exception or Stack Trace
no exception
Code Snippet
buildingScenarioRepo.saveAll(buildingScenarios).blockLast();

buildingScenarios is the list of noSQL document I am saving.
buildingScenarioRepo is an interface extending ReactiveCosmosRepository
Screenshots
using debugger to check the list of buildingScenarios right after the saveAll() operation, id is generated

In azure-spring-data-cosmos-5.7.0, id is missing

To Reproduce
Steps to reproduce the behavior:

Call saveAll()

Setup (please complete the following information):

OS: macOS
IDE: IntelliJ
Library/Libraries:
Java version: 17
App Server/Environment: -

azure-spring-data-cosmos:5.7.0 from azure.spring:spring-cloud-azure-starter-data-cosmos:5.7.0
spring-data-jpa:3.1.5

Frameworks: Spring Boot

Additional context
I am aware saveAll() is a method in ReactiveCrudRepository from spring-data-jpa:3.1.5
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[x] Bug Description Added
[x] Repro Steps Added
[x] Setup information Added

I think I may be running into this too; might the problem be that the @GeneratedValue on the entity isn't being set and it's trying to bulk-load to the database with a null id?
I do see this error in the log:
2023-12-13T03:18:38.747Z ERROR 1 --- [ded-elastic-283] c.a.c.implementation.batch.BulkExecutor  : HandleTransactionalBatchOperationResult - Fail, PKRange 10, Response Status Code 400, Operation Status Code 400, ItemOperation[Type: UPSERT, PK: ["3471/2023-12-13"], id: null], Context: BulkExecutor-4382[n/a] Thread[Name: bulk-executor-bounded-elastic-283,Group: main, isDaemon: true, Id: 5264]
I'm trying a downgrade to spring-cloud-azure-starter-data-cosmos 5.6.0 for now.

@kushagraThapar , please help take a look

Hi any update? I want to double check if this is a bug on Azure side or Spring side.

@yatw - this has been fixed - and should be released by the end of this month.

This is the PR that fixes this issue - https://github.com/Azure/azure-sdk-for-java/pull/38356

Hello @kushagraThapar Thank you for the fix! When this planned to be released and in which spring version?

@kostsamko - we are working on the release and it should be out soon. You can find the bug fixed here - https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/spring/azure-spring-data-cosmos/CHANGELOG.md#3420-beta1-unreleased


ARCHIEVEMENTS CUSTOM (SOURCE)

Describe your problem here.
How do I add new achievements with source aaaaaa, I already do it but I get an error when compiling
can you explain me?!?!?!?!?!?!?!?11
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

Check the wiki and make sure you have a stable version of the source code, if you get an error with compiling, it's maybe because you did something wrong on the code.

Achievements.hx

i know how to add achviement to psych engine 0.5.2h
i do code by myself
Credit me
Step 1
go to achivement.hx
go to this line
	["You'll Pay For That...","Beat Week 7 on Hard with no Misses.",	'week7_nomiss',  true],

code code
and paste
below same code
and change week7
to week8
                 ["You'll Pay For That...","Beat Week 8 on Hard with no Misses.",	'week8_nomiss',  true],

change true to false
         ["You'll Pay For That...","Beat Week 8 on Hard with no Misses.",	'week8_nomiss',  false],

go to playstate
this line
var achieve:String = checkForAchievement
add week8 to list likethis
var achieve:String = checkForAchievement(['week1_nomiss', 'week2_nomiss', 'week3_nomiss', 'week4_nomiss',
'week5_nomiss', 'week6_nomiss', 'week7_nomiss', 'week8_nomiss', 'ur_bad',
'ur_good', 'hype', 'two_keys', 'toastie', 'debugger']);
and go to this line
switch(achievementName)
in cases
add case week8 like this
case 'week1_nomiss' | 'week2_nomiss' | 'week3_nomiss' | 'week4_nomiss' | 'week5_nomiss' | 'week6_nomiss' | 'week7_nomiss' | 'week8_nomiss':
me i made achivment you need to pass crazy diffcuilty
in this tutorial pass week in hard no miss
go to week7 case
and copy
					case 'week7':
					if(achievementName == 'week7_nomiss') unlock = true;

and copy and paste below
like this
							case 'week8':
							 if(achievementName == 'week8_nomiss') unlock = true;

and go to /preload /images /storymenu
add week8 if go week8 up week6 now work  if didnt there problom in nameing
compile game
and make week
name storymenu : anything
customscore :Week 8
photo or week :Week 8
add to game
enjoy you can add more achivement like week9,week10,week11,week12,week13,week14,week15
same thing
lol im bad at tutorials
credit me please
itake 2 hours to know the code

this work to 0.5.2
in 0.5.1
is diffrent

or 0.5


Some parts of the JS SDK need to be fixed

JS SDK Chinese and English files on ethereum text to be modified

@Caleb335


feat(release): Alpha2

:tada: This PR is included in version 0.2.0-develop.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

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


Added 120.Triangle.java

remove the number (120)

Done, i removed the question numbers

this is amazing @taranjotsingh23
thanks for the contribution in my repo and please share in social media and tag me on twitter


Class 'Dingo\Api\ApiServiceProvider' not found after Composer Update

I'm getting an Error after running Composer Update to upgrade to 0.7, It's late and I might be missing something here. Any clues?
It's still present in the app.php config.
PHP Fatal error:  Class 'Dingo\Api\ApiServiceProvider' not found in /var/www/site/htdocs/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 157

But it is 'Dingo\Api\Provider\ApiServiceProvider' and it is abstract class, this gives error
[Symfony\Component\Debug\Exception\FatalErrorException]
Cannot instantiate abstract class Dingo\Api\Provider\ApiServiceProvider

it is 'Dingo\Api\Provider\LaravelServiceProvider' and then to publish
php artisan vendor:publish

@tusharcoder  were you able to fix this? I am having the same problem

You want to either use Dingo\Api\Provider\LaravelServiceProvider or Dingo\Api\Provider\LumenServiceProviderdepending on the framework you're using.


Improve browser navigation (back button) on osv.dev

When pressing the back button on the osv.dev/list page it often will get stuck in a halfway state. Example:

Replication steps:

get on the /list page
Press Android
Press Alpine
Navigate back in the browser

Notice a few inconsistencies:

List is still blurred, the blur class isn't removed properly
URL and Title is correctly "Android" but "Alpine" is still highlighted in the filter
The items in the list is correctly "Android"

It looks like turbo-frame applies a busy boolean attribute [ref] when the new data is being fetched. The busy attribute is what triggers the styles to add the blur filter. Pressing the back button of the browser gets the last cached version of the page, which was the state when busy was set. So far, there's a few solutions I can think:

There should be some solution within turbo-frame to resolve this and listen for events when busy is turned off. We add some styles to revert the blur when this happens, so this version of the page is what gets cached.
Run some JS that will look for busy items and remove them when the user navigates.

https://github.com/google/osv.dev/assets/67749330/f5494a72-0b95-42e4-bf21-2bb03b31430d

The incorrect filter highlighting also seems like a weird caching bug, although I can't say for sure. I'm not familiar with turbo-frame, which seems to be what we're using for the filters too.

@SonuBardai great analysis, thank you.
Is a quick (interim?) fix to adjust the cacheability of the page?

Apologies for the delayed response @andrewpollock. I would say yes, adjusting the caching should fix it, or if there's a way to configure turbo-frame to reset on receiving the redirect response then that would fix this as well.

I'm happy to work on this issue


Auto Login

We are using a local admin account on a machine that isn't domain-joined. We have set up shared PC mode but by default the lock screen asks for a user name and password. A user would need to go to the bottom left and select Guest to login. Any way to make Guest the default logon account? Also any way to set up Auto Logon on the Guest account in shared PC mode?

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

ID: 14b376e2-39bd-faca-a76c-dd21bad8d8fd
Version Independent ID: a76cabb0-59b9-7e97-6603-eec7d37f1fd4
Content: Set up a shared or guest PC with Windows 10 (Windows 10)
Content Source: windows/configuration/set-up-shared-or-guest-pc.md
Product: w10
GitHub Login: @jdeckerMS
Microsoft Alias: jdecker

@rogorek Sorry, making "Guest" the default sign-in account isn't possible at this time, but I encourage you to let the product team know that you're interested in having that feature by using the Feedback Hub.
It's possible to edit the registry to automatically sign in an account (see the instructions at https://docs.microsoft.com/en-us/windows/configuration/setup-kiosk-digital-signage#other-settings-to-lock-down) but that's documented for kiosk mode. I don't know what problems might occur if used with shared PC mode.


what is hash.end() do ?

Hi @ItalyPaleAle  There is a Error if I add hash.end(),  I found there is no hash.end() in the book,  is this a typo? should I remove this line?
https://github.com/PacktPublishing/Essential-Cryptography-for-JavaScript-Developers/blob/660a8909df6ce02d7520de0da53dd91897977093/ch3-hashing/sha2-stream.js#L22

Hi @nshen thanks for the issue!
Good catch that .end is missing in the book. I believe calling .end() is optional:

.end is a method for the stream that indicates that no more data will be written. This is part of the Node.js Stream APIs, not crypto (in Node.js crypto.Hash implements the Stream APIs)
.digest causes the hash to be computed, and that's a crypto method.
It's perfectly fine to compute a SHA-2 hash on certain data, and then add more data and re-compute the hash.

Essentially, if you call .end you tell the Node.js stream that there won't be more data
If you don't, the stream can still be written to
In any case, computing the hash is still ok!

Hi @ItalyPaleAle thanks for your reply.  But if I leave .end() there, it will throw an Error.  I have to remove it to make it work. Maybe it's not an optional ?

What version of Node.js are you using? I tried on 19 and it works.

Oh thanks. It's the problem of bun.sh , node.js works fine.

Thanks for confirming!


Add support building on Swift version 2.1

Xcode 7.1 beta 2 introduced Swift 2.1. Build fails due to returning Swift version 2.1 by beta2. This PR will just create a symbolic link to RealmSwift-swift2.0 because Swift 2.1 does not break anything our code.
@jpsim @mrackwitz

This seems right to me, thanks @kishikawakatsumi!


Add implementation of np.searchsorted

This is an implementation of np.searchsorted using lax_control_flow constructs.
Performance-wise, it's comparable to numpy on CPU for large inputs, with ~ms scale overhead dominating for smaller inputs. On GPU the crossover point is smaller
Here's the benchmark script I used:
import jax.numpy as jnp
import numpy as onp
import pandas as pd
import altair as alt
import timeit

Nrange = (10 ** onp.linspace(1, 8, 20)).astype(int)
M = 10000

onp_times = []
jnp_times = []

def autotime(code, globals, repeat=3):
    timer = timeit.Timer(code, globals=globals)
    N, t = timer.autorange()
    return min([t / N] + [timer.timeit(N) for i in range(repeat - 1)])

for N in Nrange:
  x = jnp.arange(N)
  val = jnp.linspace(0, N, M).astype(int)

  result1 = jnp.searchsorted(x, val)
  result2 = onp.searchsorted(onp.array(x), onp.array(val))
  assert onp.allclose(result1, result2), f"Failed for {N}"

  code = "searchsorted(x, val)"
  jnp_globals = {'searchsorted': jnp.searchsorted, 'x': x, 'val': val}
  onp_globals = {'searchsorted': onp.searchsorted, 'x': onp.array(x), 'val': onp.array(val)}

  jnp_times.append(autotime(code, jnp_globals))
  onp_times.append(autotime(code, onp_globals))

df = pd.DataFrame({
    'N': Nrange,
    'numpy': onp_times,
    'jax': jnp_times
})

alt.Chart(df).transform_fold(
    ['numpy', 'jax']
).mark_line().encode(
    x=alt.X('N:Q', scale=alt.Scale(type='log'), title='Length of array'),
    y=alt.Y('value:Q', scale=alt.Scale(type='log'), title='Time'),
    color='key:N'
)

Here is the result on a Colab CPU runtime:

and a GPU runtime (P4):

As you can see, it has the expected scaling at high N, but is dominated by ~1ms constant overhead at low-N, and is about an order of magnitude slower than numpy. I suspect there is room for improvement on performance, but I think this is useful as an initial implementation.

For benchmarking purposes, you probably should to include block_until_ready() -- see https://jax.readthedocs.io/en/latest/async_dispatch.html
Are you sure this has right asymptotic scaling? I believe this algorithm should have logarithmic scaling with respect to the length of the searched array, but I'm not sure we're seeing that here for your JAX implementation. It looks closer to linear scaling to me for large arrays. Maybe something like lazy evaluation is throwing off the benchmark? Explicitly calling jax.device_put might help.
(The NumPy scaling looks logarithmic, at least once you get over the hump at 1e7 which I guess corresponds to CPU cache size.)
I also wonder if we seriously consider either of two different implementation strategies:

Using naive vectorized comparisons instead of a sorted comparison. I have a hunch this could give much better performance than the XLA while loop, but on the other hand the memory usage could be problematic for large arrays.
Using XLA CustomCall to call custom code for CPU and GPU (e.g., we could even call into NumPy's C API). This probably isn't worth the trouble for now, but I suspect would almost certainly be our best performance option.

Thanks for the comments – I realized that data from previous runs was still in memory, which was leading to O[N] scaling at high dimensions. See modified description and updated benchmark charts.

One thing that might be useful for benchmarking is to write a function that calls searchsorted M times inside a jit, then do a linear regression on M to produce a per-call runtime slope and a separate "JIT launch overhead" intercept.

It appears that the lit launch overhead is around 0.25ms on Colab CPU:
import jax.numpy as jnp
import numpy as onp
import pandas as pd
import altair as alt
import timeit

def autotime(code, globals, repeat=3):
    timer = timeit.Timer(code, globals=globals)
    N, t = timer.autorange()
    return min([t / N] + [timer.timeit(N) for i in range(repeat - 1)])

Nrange = [100, 10_000, 1_000_000, 100_000_000]
Mrange = [1, 10, 100, 1000, 10_000, 100_000]

data = jnp.arange(Nrange[-1])

times = []
Ns = []
Ms = []

for N in Nrange:
  x = data[:N]
  for M in Mrange:
    val = jnp.linspace(0, N, M).astype('int32').block_until_ready()

    code = "searchsorted(x, val).block_until_ready()"
    globals_ = {'searchsorted': jnp.searchsorted, 'x': x, 'val': val}

    times.append(autotime(code, globals_))
    Ns.append(N)
    Ms.append(M)

df = pd.DataFrame({
    'N': Ns,
    'M': Ms,
    'times': times
})

alt.Chart(df).mark_line().encode(
    alt.X('M:Q', scale=alt.Scale(type='log'), title='Query array length'),
    alt.Y('times:Q', scale=alt.Scale(type='log')),
    alt.Color('N:N', scale=alt.Scale(type='log'), title="Sorted array length")
)


Frontend : CSS Libraries in document form

Description
In this, I explain the different types of libraries of CSS which are used the most and are important to know.
Domain
Frontend Dev HTML/CSS/JS
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign


Build Haskell backend as a submodule, hook into Maven

This is in preparation of running the K tests on all the backends, not just the Java backend.
It will help root out deficiencies in the Haskell backend.

Note that this should wait for: https://github.com/kframework/kore/pull/393
Once that is merged, I'll update the submodule and this will be ready.

Also, it would be nice to add a test that the haskell backend works, or maybe even calling make k-test in the kore repo.

@traiansf I'm holding off the changes for making sure the Haskell backend works for another PR. My plan is to also make it possible to run the test-set in k-distribution with any of the backends, then to have a list of tests to run with each backend. Currently we just run some of them with OCaml and others with Java.
The Haskell backend integration tests will be tested on it's PR job for now, so there I think I'm going to focus on running as many of the tests in k-distribution that the Haskell backend can in a reasonable amount of time.
I also plan on making a weekly build job that run all integration tests on nightly builds to find a nightly release which is working for all the semantics we care about. Once that build is up, the Haskell backend PR will use that version for testing instead of the nightly.

Also, what defaults in HaskellKRunOptions need to change? We discussed on Slack, and I think the conclusion was that the current defaults actually work well. Right now it will default to using the binaries bundled in k-distribution/target/release/k/bin, and the binaries built by the haskell backend are being copied there.
You can override this by explicitly calling the options, which the testing for the Haskell backend needs. But the default is to use the version pinned by the submodule.


fix: add padding to spot light

Added the padding to avoid the calculation of the offset for each light

Hi Pablo!
This is not a fix, it's more of a "style" type of PR, we aren't actually fixing anythin that wasn't working , so i would change the type to style.
There were a couple of lines that were still using the "hack" of putting the manual calculation of the offset for the spotlights so i've changed it. On top of that, Carlos told me to put the padding both on the shader and the struct for readability purposes so I've added the padding on the shader too.
A part from this, all the program->BindUniformBlock calls for the lights aren't needed ('cause we have the binding points already) so i've removed them from the code (this should have us extra performance).
I've done the changes directly 'cause it's faster and less time consuming, hope you are okey with it!

Hi Pablo!
This is not a fix, it's more of a "style" type of PR, we aren't actually fixing anything that wasn't working , so i would change the type to style.
There were a couple of lines that were still using the "hack" of putting the manual calculation of the offset for the spotlights so i've changed it. On top of that, Carlos told me to put the padding both on the shader and the struct for readability purposes so I've added the padding on the shader too.
A part from this, all the program->BindUniformBlock calls for the lights aren't needed ('cause we have the binding points already) so i've removed them from the code (this should gives us extra performance).
I've done the changes directly 'cause it's faster and less time consuming, hope you are okey with it!

ok, thanks 👍


HealthCheck module improvements.

@alainjobart @sougou

Add a field indicating an endpoint is added, which is then sent out to listener.
Change StatsUpdate to send EndPointStats.
Make some func public.

LGTM


How to use ULTRA?

I compiled ULTRA on the develop-1 branch. However, when I run
./ultra -om tmp my.fa

I got an error:
Reading sequence(s)...
Calculating nucleotide frequencies...
Analyzing sequences...
*** glibc detected *** ./ultra: malloc(): memory corruption: 0x00000000011c0e50 ***

Thanks in advance.

BTW, the valgrind report:
==39434== Memcheck, a memory error detector
==39434== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==39434== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==39434== Command: ./ultra-1 -om 1 1.fa
==39434==
Reading sequence(s)...
Calculating nucleotide frequencies...
==39434== Conditional jump or move depends on uninitialised value(s)
==39434==    at 0x4162B5: Sequence::CalculateSymbolFrequencies(int) (sequence.cpp:148)
==39434==    by 0x4148E2: main (main.cpp:113)
==39434==
==39434== Use of uninitialised value of size 8
==39434==    at 0x4162BB: Sequence::CalculateSymbolFrequencies(int) (sequence.cpp:150)
==39434==    by 0x4148E2: main (main.cpp:113)
==39434==
==39434== Invalid read of size 1
==39434==    at 0x4162B0: Sequence::CalculateSymbolFrequencies(int) (sequence.cpp:147)
==39434==    by 0x4148E2: main (main.cpp:113)
==39434==  Address 0x56752b4 is 0 bytes after a block of size 580 alloc'd
==39434==    at 0x4C297EC: malloc (vg_replace_malloc.c:308)
==39434==    by 0x416777: Sequence::Sequence(unsigned long long, bool) (sequence.cpp:249)
==39434==    by 0x410198: ReadFASTAFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) (fastareader.cpp:122)
==39434==    by 0x414D73: main (main.cpp:106)
==39434==
==39434== Invalid write of size 1
==39434==    at 0x41630C: Sequence::CalculateSymbolFrequencies(int) (sequence.cpp:159)
==39434==    by 0x4148E2: main (main.cpp:113)
==39434==  Address 0x567661d is 0 bytes after a block of size 541 alloc'd
==39434==    at 0x4C297EC: malloc (vg_replace_malloc.c:308)
==39434==    by 0x41625A: Sequence::CalculateSymbolFrequencies(int) (sequence.cpp:122)
==39434==    by 0x4148E2: main (main.cpp:113)
==39434==
Analyzing sequences...
--39434-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--39434-- si_code=128;  Faulting address: 0x0;  sp: 0x1002f8dd40

valgrind: the 'impossible' happened:
   Killed by fatal signal

host stacktrace:
==39434==    at 0x5804B66C: get_bszB_as_is (m_mallocfree.c:303)
==39434==    by 0x5804B66C: get_bszB (m_mallocfree.c:315)
==39434==    by 0x5804B66C: vgPlain_arena_malloc (m_mallocfree.c:1799)
==39434==    by 0x58005664: vgMemCheck_new_block (mc_malloc_wrappers.c:372)
==39434==    by 0x58005B42: vgMemCheck___builtin_new (mc_malloc_wrappers.c:417)
==39434==    by 0x58097B70: do_client_request (scheduler.c:1958)
==39434==    by 0x58098FAA: vgPlain_scheduler (scheduler.c:1521)
==39434==    by 0x5810F75F: thread_wrapper (syswrap-linux.c:103)
==39434==    by 0x5810F75F: run_a_thread_NORETURN (syswrap-linux.c:156)

There's been some large updates to Ultra in the last few months, and this problem has been fixed. I've cleaned up the repo a bit, and right now the prerelease branch has the most current version.
Thanks for the heads up!


Added tiktoken to requirements.txt

tiktoken Python package is needed in get_num_tokens function, to determine the length of the prompt in langchain library.

encountered the same issue. Think this is good addition.

Same issue here, adding tiktoken solved it!


Meeting interval

Proposed changes

Moved standard duration of meeting times to a separate config file.
Allows scheduling of meetings with an interval.
Allows scheduling of meetings without interval with a standard time of 15 minutes.

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

[x] "schedule meeting at 16.00 about software", accepted the meeting.
[x] "schedule meeting at 16.00 to 18.00 about software", accepted the meeting.

Related issue
Resolves #81

The following test fails when i run it, fix it.
"schedule meeting at 16.00 about software", accepted the meeting.
The output:
schedule meeting at 16:00 about software
Failed to execute action.
 'Schedule' object has no attribute 'get_meeting_duration'

The other test works.
"schedule meeting at 16.00 to 18.00 about software", accepted the meeting.

The following test fails when i run it, fix it.
"schedule meeting at 16.00 about software", accepted the meeting.
The output:
schedule meeting at 16.00 about software
Failed to execute action.
 'Schedule' object has no attribute 'get_meeting_duration'

The other test works.
"schedule meeting at 16.00 to 18.00 about software", accepted the meeting.

Seems like I accidentally removed some code in the latest rebase.


Various fixes for issue mail notifications

Various fixes for issue mail notifications

Send individual mails for actions and comments
Send mail for new issues/prs without a comment
Use correct sender for reopen/close actions
Hopefully fixed all bugs related to missing mails

Fixes: https://github.com/go-gitea/gitea/issues/7124
Fixes: https://github.com/go-gitea/gitea/issues/5977

Codecov Report

Merging #7165 into master will decrease coverage by 0.01%.
The diff coverage is 27.02%.

@@            Coverage Diff             @@
##           master    #7165      +/-   ##
==========================================
- Coverage   41.76%   41.75%   -0.02%
==========================================
  Files         448      448
  Lines       61061    61079      +18
==========================================
- Hits        25503    25502       -1
- Misses      32245    32263      +18
- Partials     3313     3314       +1

Impacted Files
Coverage Δ

modules/notification/mail/mail.go
22.64% <0%> (ø)
:arrow_up:

models/issue_mail.go
51.54% <40.9%> (-3.22%)
:arrow_down:

models/issue_comment.go
47.05% <8.33%> (-0.43%)
:arrow_down:

models/unit.go
62.16% <0%> (-5.41%)
:arrow_down:

models/repo_list.go
72.08% <0%> (-1.02%)
:arrow_down:

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 8de0b0a...59d4674. Read the comment docs.


Add a port pool manager to restrict client ports

this PR to avoid the dynamic attribution of port by net.createServer() but rather by a range specified on the server command line. An internal pool is maintained to distribute ports

hi @defunctzombie  Merging this will be amazing!

@defunctzombie could you please merge this one? We can configure firewall after that
#143

@defunctzombie could you please merge this one? We can configure firewall after that
#143

I don't actively work on this project anymore. @theboroer does some upkeep so its up to him.

I don't actively work on this project anymore. @theboroer does some upkeep so its up to him.

this is very important

I don't actively work on this project anymore. @TheBoroer does some upkeep so its up to him.

so please say int on front readme to avoid people thinking this project is not dead anymore....

Sorry I've been mia, imma check this out early next week. If its good to go, I'll ping @defunctzombie to give me access to merge it in and push a new version to npm

Hope to see this feature, would save from opening a huge amount of ports in the firewall

I'm using this on my server and something unique happened. I can't say how to recreate this because I'm not able to reproduce myself, but sometimes one URL gives me another client. Let's say I have client1 and client2; sometimes, when I access client1 I'm actually accessing client2, and only normalizes when I restart the server and make the connection again. Do you think this port manager may be the cause?


No internet after connecting to VPN

Hi.
I have a stock Debian 9.1, I have installed your script, (ran without errors)
I have successfully joined to the VPN server, but there is no internet access. I cant ping <IP_ADDRESS> and the name resolution is also not working.
I have choosed the default values during the setup.
I's a VPS so I have added this:
iptables -t nat -A POSTROUTING -s <IP_ADDRESS>/24 -o eth0 -j SNAT --to-source xxx.xxx.xxx.xxx
But still no internet.

Hello,
Can you post the output of

iptables -nvL
iptables -nvL -t nat
ip a
apt policy openvn


Highlight error

Hello! I faced some error:
Error executing Lua callback: ...share/nvim/lazy/playtime.nvim/lua/playtime/highlight.lua:43: invalid key: create
stack traceback:
        [C]: in function 'nvim_get_hl'
        ...share/nvim/lazy/playtime.nvim/lua/playtime/highlight.lua:43: in function 'hl'
        ...share/nvim/lazy/playtime.nvim/lua/playtime/highlight.lua:53: in function 'define-highlights'
        ...hare/nvim/lazy/playtime.nvim/lua/playtime/app/window.lua:114: in function 'open'
        ...im/lazy/playtime.nvim/lua/playtime/app/patience/init.lua:41: in function 'start'
        ...aytime.nvim/lua/playtime/game/shenzhen-solitaire/app.lua:114: in function <...aytime.nvim/lua/playtime/game/shenzhen-solitaire/app.lua:113>
:version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1723681758

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
Press ENTER or type command to continue

In my :help nvim_get_hl there is no 'create' option at all. Simply deleting it from highlight.lua:43 makes it technically work, but I left without colors and probably icons. How to fix that? Thanks.

Can you check the latest on the main branch? You should not see an error and you should also see highlights.

Error gone. But unfortunately still all-white for some reason. (Icons are shown indeed, but seems particular "shenzhen solitare" has no ones, that's probably not an issue)

What colorscheme are you using? It tries to pick colors from the current colorscheme, perhaps they're not defined
https://github.com/rktjmp/playtime.nvim/blob/c59f03d4b871fe9f7cb0a9e7f242a84237600996/fnl/playtime/highlight.fnl#L68-L82

You can manually define these groups before starting playtime and it should pick them up

I use default 'desert' colorscheme. Switched to another defaults same result. Comments, warnings and so on in code are colored.
This code
vim.api.nvim_create_autocmd("ColorScheme", {
    callback = function()
        vim.api.nvim_set_hl(0, "PlaytimeGreen", { fg = "green" })
    end,
})

seems no effect (I've put it in init.vim), still all-white (although I don't yet understand what it does, as don't understand colors in nvim at all)

Ah, the code I gave you goes in init.lua, not init.vim.
I believe I have tracked it down, probably you do not have termguicolors enabled which limits the color palette used in nvim (not just playtime, but all of nvim).
If you press : to open the command line and enter set termguicolors?, does it say notermguicolors?

Try running :set termguicolors

I believe its fine to enable termguicolors all the time these days (ie put it in your init.vim), as all modern terminal emulators can handle 24 bit colors, though if you use tmux or screen you might need to ensure you're passing the correct xterm-256collor flags in its config too.

Yes, that was exactly termguicolors. Thank you for help!


README update

Fixed some typos, add more detailed steps for usage, and do some formatting fixes.

@zachxdc Thanks for the PR and happy the year of the tiger 🐯!
Could you add extra spaces between Mandarin and Latin characters? Also, I prefer upper case abbreviations (IP address) to lowercase ones (ip address).

Hey @SR2k. Happy new year. I guess today is the first working day after the CNY holiday, lol.
Just added the space and use the upper case IP in the README, you can leave the comment in the code line if there is anything need to update.


Update sample to 0.7.0.

Approved
On Mon, Mar 5, 2018, 11:51 AM Jake Wharton<EMAIL_ADDRESS>wrote:

You can view, comment on, or merge this pull request online at:
https://github.com/square/sqldelight/pull/756
Commit Summary

Update sample to 0.7.0.

File Changes

M gradle/dependencies.gradle
https://github.com/square/sqldelight/pull/756/files#diff-0 (2)
M sqldelight-sample/build.gradle
https://github.com/square/sqldelight/pull/756/files#diff-1 (2)
R
sqldelight-sample/src/main/java/com/example/sqldelight/hockey/data/HockeyDbCallback.java
https://github.com/square/sqldelight/pull/756/files#diff-2 (51)
M
sqldelight-sample/src/main/java/com/example/sqldelight/hockey/ui/PlayersActivity.java
https://github.com/square/sqldelight/pull/756/files#diff-3 (18)
M
sqldelight-sample/src/main/java/com/example/sqldelight/hockey/ui/TeamsActivity.java
https://github.com/square/sqldelight/pull/756/files#diff-4 (14)

Patch Links:

https://github.com/square/sqldelight/pull/756.patch
https://github.com/square/sqldelight/pull/756.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/square/sqldelight/pull/756, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABmQwKBulcA5Sir789BVkoCBPbd_8M7Jks5tbW0IgaJpZM4Scn69
.


feat: rewrite react-native-spokestack using bob builder

Now written in TypeScript, Swift, and Kotlin!
Add a new .speak() method for easy playback of text, which makes use of existing players in spokestack-android and spokestack-ios. The docs will explain this is only for simple playback. With anything more complicated, the user will need to handle playback themselves.
Add an example project in this repo that uses the development source
Adjust the API to return Promises for all methods
Organize all configuration options into sections

What this still needs:

[ ] Finish auto-generated docs using typedoc
[ ] Unit tests

Would love @noelweichbrodt's feedback on the Swift part and @space-pope's feedback on the Kotlin part especially.
Feedback on the JS API is also welcome.
Viewing the diff is probably going to be difficult considering all the automated changes from using bob. I suggest looking at example/src/App.tsx for a working example, or even running the example app locally in Android Studio and/or XCode.

@space-pope And here I assumed the RN config was kebab-case so that it could be passed directly to Android. camelCase is preferred in JS land tho.

Sample app works as advertised on my test Pixel 1 XL. Thanks for including that!


A guide to overloading

@seibert this is ready for a first round of comments.

CC @rjenc29, as one of the most long-term contributors using @overload, your thoughts on this would be appreciated if you have time? Thanks.

@rjenc29 thanks very much for all the helpful suggestions, really appreciate your attention to detail. I have included all the suggestions and have left two questions for you in the comments.

@stuartarchibald awesome - thanks!

Fully updated to fix all CI errors and address all reviewer comments.

Updated and read for the next round of reviews.

This is ready for another review.

All comments have been addressed. @seibert can you take a look a now?

@esc thanks for your persistence with this. There's one minor last comment about a comment on a wrong line (I think) else this looks good to go.

@stuartarchibald no problem at all! I fixed it up now.

This is good to merge on CI pass. Thanks for the work @esc and thanks for the review efforts @rjenc29.

👾 👾 👾


Added a DI example to README

Requested here https://github.com/urish/angular-moment/issues/267 and https://github.com/urish/angular-moment/issues/236

Coverage remained the same at 92.76% when pulling 40b2abd03984191348e0ca74bc6c3f21563fc9a9 on jwanglof:master into 7798910c528d910fc431705c88919355de066300 on urish:master.

Thanks!


Trim deadline setting out of call creation path

reduces ClientChannelFilter init/destroy from 128ns to 46ns on my machine

@markdroth - PTAL at commit 2e0788a: I don't like the placement in terms of logical structure of the code, but in terms of what's going on, I think this is correct.

Failed: #9550 #9890 #9954


Added support for array filters

all that needed to be done to support array filters like post__in properly was to update the qs package to latest version and pass the 'brackets' option for arrayFormat to qs.stringify. You also need to add post__in and post__not_in to query_vars on your wordpress install.

Rebased and merged! @brad-decker, it would probably be good to fetch the latest version of my repo, then to hard-reset your master to mine—looks like your branch lagged a bit, which was all my rebase did to clean things up.
I think this git walkthrough may touch on rebasing and branch management, if not let me know and I'll try to find another good resource!

Thanks @kadamwhite ! will do.


[Code Addition Request]: Addition of a maze game in game development

Have you completed your first issue?

[X] I have completed my first issue

Guidelines

[X] I have read the guidelines
[X] I have the link to my latest merged PR

Latest Merged PR Link
https://github.com/UTSAVS26/PyVerse/pull/606
Project Description
This would generate a different maze each time the code is compiled, user-based input of directions would be considered for them to reach the destination or out of the maze.
Full Name
Vuppu Chinmay
Participant Role
Contributor at gssoc-ext and hacktoberfest.

@UTSAVS26 Please do review this I have another issue ready


Tabs: activate current tab on page load

As reported by @benstr in https://github.com/meteoric/meteorhunt/issues/3
How do we set the current tab when the page first loads?
Currently the current tab is set when a tab is clicked: https://github.com/meteoric/meteor-ionic/blob/master/components/ionTab/ionTab.js#L2

Here's a graphic that explains why we can't rely on URLs to set the current tab but instead have to use a Session variable. Notice that active tab for each of the routes:

Something like this should work - https://github.com/meteoric/meteor-ionic/commit/093ae320f874c9ddd7867048a299b05a5df83559

In my Meteor projects (mostly enterprise, SEO is not an issue) I have three guidelines on this subject.

All parameters need to be passed as a query.
If a parameter needs to be baked into the route then the parameter must always take a "sub-level" position, as opposed to a "top-level" position when compared with other routes on the same level..

Wrong: products/123
Correct: products/details/123
3. Any route related Sessions are set in IR action:


Added Group Sync Operator

Added Group Sync Operator

@strangiato i can do that. theres only 1 channel though. is this requirement something we would also want to backport for other operators in the catalog too? Some do not follow this convention
Also, should I also correct the validation failure too?

Looks like validation failure is caused by new v5.1.0 release and this feature which throws an error for empty Kustomization files

@sabre1041 I have a PR out here to resolve that:
https://github.com/redhat-cop/gitops-catalog/pull/226
I'm going to go ahead and merge your change without the pass since the other PR just needs a review to merge.
As far as the overlays are concerned I know we have been trying to keep things as standardized as possible.  From my perspective it is always easier to have a single in place from the beginning and add additional overlays later than it is to go from deploying directly from base and possibly breaking a deployment that is referencing the base directly.
I believe that @codekow did a pretty big update a while back to cleanup a huge number of the operator overlays.  He wrote some pretty cool automation that will scaffold the whole thing for us as well if you want to try that out next time.
If there are any operators that aren't using an overlay feel free to PR the changes or submit an issue for them though!


Change block delay to 5 seconds

Motivation
The motivation behind this change is to stabilise the network's inflation rate as it is currently higher than planned since block times are 3 seconds but the economics were modelled over 10 seconds.
This is a short term fix by adding a constant. The longer term fix would be dynamically calculating the block reward ( or block delay ) based on an average block time taken from past x amount of block (TBD).
Test Plan
Tested on an isolated network. Empty block times are 8 seconds to allow for a buffer to 10 seconds because the block time increases with more transaction load.
Changed two constant:
/// The maximum number of milliseconds to wait before proposing a batch.
pub const MAX_BATCH_DELAY_IN_MS: u64 = 5500; // ms
/// The minimum number of seconds to wait before proposing a batch.
pub const MIN_BATCH_DELAY_IN_SECS: u64 = 5; // seconds

Put this in discord and also putting here:
some interesting numbers for you from our end over at Puzzle.
TLDR;
looks like for every 10k we add to our Arcade WAU numbers, we add 50k txns and increase consensus block times by ~0.5s. Because of this fact -- in our opinion -- this ARC should be held off until November when we have more data from Coinbase Quest full launch and it's effects on consensus block times to see if they are in line with what we see.
Background on data below:
October 2nd -- we thought most mainnet kinks were worked out so we kicked off Puzzle Arcade campaigns with communities we've been working with for past few months
Oct 2 & Oct 3rd our costs blew up from paymaster and oct 4th we had to ask communities to stop using/chill out -- was costing us too much and validator rewards wouldn't have chance of covering at current delegation
see here: https://x.com/lets_puzzle/status/1842360983605637450
so in light of adjusting block reward algorithm we ran numbers to see how this increase in activity effected consensus and run quick analysis on projections of what it will do to consensus times/block rewards down road
October 2nd:
25,568 Puzzle txns
3.04 s/block
start block: https://aleoscan.io/block?h=798610
end block: https://aleoscan.io/block?h=827030
October 3rd: ~11k Arcade WAUs
50,726 Puzzle txns
3.41 s/block
start block: https://aleoscan.io/block?h=827030
end block: https://aleoscan.io/block?h=852349
Back of napkin projections:
20k Arcade WAUs
100k Puzzle txns
~4 s/block
30k Arcade WAUs
150k Puzzle Txns
~4.5 s/block
40k Arcade WAUs
200k Puzzle Txns
~5 s/block
Based on this quick analysis -- we think it's best to wait and see how this is effected with the coinbase ramp with Leo Wallet, Pondo, Verulink, and Arcane during this month.
If their numbers lineup with ours and based on number of transactions we expect coinbase to see alone, we are likely to hit 5s/block in November. And that is not counting what we are trying to grow to in November at Puzzle as well. There is a chance we get to 10s/block based on activity alone -- not even counting increasing validator set.
Most importantly, I think it's good incentives we should be having as a community. We should be incentivized to fix this issue by driving more demand to the chain usage and its dapps as a community and increasing the validator set as a community.
I'd rather community pressure be set to keeping highest performant blockchain possible while driving increase in validator set & chain usage to solve this problem rather than making the blockchain artificially slower.
Happy to hear any other arguments and change mind for making the the blockchain 40% slower before increasing usage or increasing validators which could potentially get us there in the coming month based on existing production data
Also should state we don't mind trying for a month as it seems like a relatively easy change to make. Trying for a month to try to time is as it happens in real time until we see those nominal increases from CB / chain usage or increase in validator activity is fine as well -- but that's just the data that we are seeing from our own usage increase campaigns at Puzzle from first week of October.

In my testing of 4 and 8 validator networks this resulted in consistent block times of 11 seconds

The Everstake team analyzed the impact of transaction volume on block creation delays.
For this analysis, we identified the longest continuous sequence of blocks in the entire history of the mainnet. This sequence consists of 13,309 blocks. The average time to create a block in this sequence is 3.0443 seconds.
The maximum delay recorded is 12 seconds.
Height, Transfers, Delay:
660038, 131, 12
668226, 143, 12
660300, 126, 11
670953, 170, 11
670564, 102, 10
The highest number of transactions recorded is 196.
Height, Transfers, Delay:
672520, 196, 10
672883, 188, 9
673028, 174, 10
673033, 173, 9
670953, 170, 11
672996, 168, 6
The maximum block height is 673182, and the minimum block height is 659874. The correlation between transfers and delay is 0.4744 (not very close to 1, but also not close to 0, suggesting a relationship, though other factors are also influencing this).
The intercept is 2.1196 → indicating that the base block creation time is 2.12 seconds. The regression coefficient is 0.029 → meaning an increase of one transaction leads to an increase in delay by 0.029 seconds.
Delay = 0.029 * transfers + 2.1196
Delay = 10 seconds, when transfers ≈ 275.
We believe that setting an artificial MIN_BATCH_DELAY_IN_SECS=5 (as proposed by @zkxuerb in the discussion here) is a compromise between validators and provers. This adjustment would help align the inflation curve with the one planned in the tokenomics. We believe the Aleo network is in the initial stage now and has significant potential for further organic growth, and increasing the number of transactions per block will lead to the desired 10-second delay when the number of transactions approaches 275 per block.


Chart Y axes overlapping text cleanup - convert orders of magnitude to y axis label (eg 100,000 -> 100 and label has 'thousands')

The last commit should've referenced #174.


HTTP 405 : Method Not Allowed

When using the Service Simulator in amazon's developer console portal I send a request and get the response:
There was an error calling the remote endpoint, which returned HTTP 405 : Method Not Allowed
Any ideas what is causing this to occur?

That's an error you get when you haven't configured your Web API method to accept POST. See this question for common configuration errors http://stackoverflow.com/questions/15718741/405-method-not-allowed-web-api.


How to increase the number of workitems and commits from default 50 to more number while using Releasenote generation Cross platform

I want to increase the number of workitems and commits obtained by the Releasenote (Crossplatform) in a build from the default set value of 50 to atleast 200 each for workitems and commits
Iam using the handlebar syntax as follows
#Release Note

Release Date : $(Release Date)
Build Number : $(Build.BuildNumber)

Associated WorkItems  ({{workItems.length}})

{{#each workItems}}

{{this.id}} {{lookup this.fields 'System.Title'}}

WIT {{lookup this.fields 'System.WorkItemType'}}
Tags {{lookup this.fields 'System.Tags'}}
Description : {{{lookup this.fields 'System.Description'}}}
{{/each}}

Associated commits  ({{commits.length}})

{{#each commits}}

** ID{{this.id}}**

Message : {{this.message}}
Commited by : {{this.author.displayName}}
{{/each}}

Have a look a #349 and it associate PR #352. If you set a build/release variable ReleaseNotes.Fix349 to true the feature should be used. You should see a message in the logs says Using workaround for build API limitation (see issue #349)
Let me know how that goes

I tried adding a variable in the build pipeline  ReleaseNotes.Fix349  to  true but it is still showing the same result.Its only picking first 50 WorkItems and first 50 commits etc
The below shown is a portion of the log details of the run task. For the record we are using Inline handlebar template in ReleaseNote crossplatform
Get details of [50] WIs
Getting full details of WI batch from index: [0] to [50]
Adding [50] items
Total build artifacts: [0]
Total commits: [50]
Total workitems: [50]
Total related workitems: [0]
Total release tests: [0]
Total tests: [0]
Leaving WI in default order as returned by API
please advice

Another issue that i have noticed is that while running the Generate release notes (PowerShell) and Generate Release Notes (Crossplatform) in the same build Iam obtaining entirely different workitems and commits with no correlation to each other

I will have to setup a test with enough WI and Commits, might be a few days before I get around to it, but I will have a look

Ok thanks for the update.Hoping to get a reply soon

Turns out there is a code path that did not make use of the #349 style fix in the new YAML pipeline specific code. The calls made do default to 50 items, I have altered these to 5000. I am currently testing a new release it will be 3.11.x


Storage streams use 'complete' event for end of stream but built-in streams use 'finish'

As was raised in #340, I looked into why there was a discrepancy between what the developer thought and what was the real case. There was a suggestion made to update our docs, but our docs aren't the issue here. A snippet from the tests shows the issue:
Using 'finish' event:
file.createReadStream()
.pipe(fs.createWriteStream(tmpFilePath))
.on('error', done)
.on('finish', function() {
  file.delete(function(err) {
    assert.ifError(err);

    fs.readFile(tmpFilePath, function(err, data) {
      assert.equal(data, fileContent);
      done();
    });
  });
});

Using 'complete' event:
var file = bucket.file(filenames[0]);
fs.createReadStream(files.logo.path)
  .pipe(file.createWriteStream())
  .on('error', done)
  .on('complete', function() {
    file.copy(filenames[1], function(err, copiedFile) {
      assert.ifError(err);
      copiedFile.copy(filenames[2], done);
    });
  });

Seems the only difference is the type of file that is getting piped to. In the first case, it's a regular stream from fs and in the second it's our implementation of the storage file write stream.
So my question is, should we use a consistent finish event everywhere or is this by-design or otherwise okay?

Our complete event comes from request: https://github.com/request/request/blob/e33a883dd412dc7a1fdd1e1f282e840faa540609/request.js#L1224
Being consistent with fs would be nice, but off hand, I'm not sure we can do that.

Are you sure? I thought we intercept pretty much every event and emit our own events.
I'm looking at code here and here for example.

Ooh, I forgot about our new proxy stream. Yeah, we should be able to emit whatever we choose in these cases.

This is quite complex.
A native readable stream is done when it emits 'end', which is the same time the stream is .end()-ed. The end listener doesn't receive arguments, and if you pass arguments to stream.end(), they get written to the stream immediately prior to being ended. I wonder if this is why request uses complete, so they can do some post-processing before emitting the response headers/body/status arguments.
I'm okay with keeping complete as the consistent event for readable and writable end signals.

Oh yeah, good observation. That looks like exactly what they are doing. I'm happy with this too. It just makes it look weird when you have pipe with different streams, but in either case you have to make sure you're using the right event. complete as a consistent "yo, im done now" event is good for me.


Determine data to include in county dimension

Look at socioeconomic and population data from the census

Done with help from Steve Ediger


Update route.hbs

create routes that point to components in the components folder

Awesome, thanks Bryan! :tada:

Coverage remained the same at 98.415% when pulling cf57faf2acfee9c65c1a2a6f254b3cdf3527d505 on Bigbrd:master into ecc9292ee26da5b06f13c1690a4bd42a667aef87 on mxstbr:master.


Fix uma deps

Current dependencies on/for this PR:

main

PR #9   👈

This comment was auto-generated by Graphite.

Merge activity

Oct 27, 7:27 PM: @zhenlu merged this pull request with Graphite.


[WIP]Fix the --runtime option of container create to support path

Description
Unlike ctr , the nerdctl does not support the --runtime flag while creating a container with path
Steps to reproduce the issue
# Copy runc to another path
cp  /usr/local/bin/containerd-shim-runc-v2 /tmp/haha

# create a container with the path
nerdctl container create --runtime /tmp/haha docker.m.daocloud.io/library/nginx:alpine

ctr -n k8s.io container ls
CONTAINER                                                           IMAGE                                        RUNTIME
8e7e104ba64f9aa8d320fe1972d4d62634d920151612c4f0e0fc0fb12b51ace6    docker.m.daocloud.io/library/nginx:alpine    io.containerd.runc.v2

After the fix.
# create a container with the path
root@kay201:~/oss/nerdctl# ./_output/nerdctl container create --runtime /tmp/haha docker.m.daocloud.io/library/nginx:alpine
ctr -n k8s.io container ls
95fadeb4c7e1aadf13698fa4abb1c8d34b16e23444fe9c37beb84a97cb31037f
CONTAINER                                                           IMAGE                                        RUNTIME
95fadeb4c7e1aadf13698fa4abb1c8d34b16e23444fe9c37beb84a97cb31037f    docker.m.daocloud.io/library/nginx:alpine    /tmp/haha

The runtime flag with path can be configed successfully.
And it can run sucessfuly:
root@kay201:~/oss/nerdctl# ./_output/nerdctl run --runtime /tmp/haha docker.m.daocloud.io/library/nginx:alpine
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf

test is failing
test target: "nerdctl"
=== RUN   TestComposeUpDetailedError
    compose_up_test.go:54: assertion failed:
        Command:  /usr/local/bin/nerdctl --namespace=nerdctl-test compose -f /tmp/nerdctl-compose-test3932546953/docker-compose.yaml up -d
        ExitCode: 0
        Stdout:
        Stderr:   time="2023-08-07T07:04:15Z" level=info msg="Creating network nerdctl-compose-test3932546953_default"
        time="2023-08-07T07:04:15Z" level=info msg="Ensuring image ghcr.io/stargz-containers/alpine:3.13-org"
        time="2023-08-07T07:04:15Z" level=info msg="Creating container nerdctl-compose-test3932546953-foo-1"

        Failures:
        ExitCode was 0 expected 1
        Expected stderr to contain "failed to resolve runtime path: invalid runtime name invalid"

do we have the same behavior as docker ?

do we have the same behavior as docker ?

No, Docker needs explicit configuration in daemon.json.
For nerdctl, we support strings like

“io.containerd.runc.v2”
“runc”, “crun”, “runsc” etc.
“/usr/local/bin/runc” etc.

do we have the same behavior as docker ?

No, Docker needs explicit configuration in daemon.json.
For nerdctl, we support strings like

“io.containerd.runc.v2”
“runc”, “crun”, “runsc” etc.
“/usr/local/bin/runc” etc.

I mean this behavior

@yankay  PTAL

hey @yankay !
Wondering if this is still something you are interested in carrying through?


Change workflows and add php version support

Codecov Report

Merging #1 (54a0fb0) into master (ba0d0e5) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##              master        #1   +/-   ##
===========================================
  Coverage     100.00%   100.00%
+ Complexity        63        61    -2
===========================================
  Files              9         9
  Lines            144       144
===========================================
  Hits             144       144

Flag
Coverage Δ

tests
100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Sensors

Hello,
Using the cast project (latest version) on linux using Qt I noticed that by connecting the ultrasound probe the IMU sensors (accelerometer, gyroscope, magnetometer) are not displayed or printed. Also checking the code I found no parts of code that mention it.
I was wondering in which project files or libraries their values were received.
Thanks in advance

yes, you'll need ensure you enable the sensors via the Clarius App, instructions can be found here: https://github.com/clariusdev/motion

Hello,
yes, the sensors have been activated via the app, but once the program is started as shown below, the sensor values are not displayed.

In fact, I was wondering in the Qt Cast code where these values were treated, because I couldn't find them. In the windows project the variables imu, gyro, accel and magnet are used, but I have not found anything similar in the cast of Qt.
Thanks in advance

The Qt example does not make use of the positional data. The Qt example simply ignores it. The positional data is passed to the client in the callbacks ClariusNewRawImageFn or ClariusNewProcessedImageFn. See here: https://github.com/clariusdev/cast/blob/67a1dd0934e20326522c06aedc38574dbb29f831/src/example/caster_qt/main.cpp#L22

Thanks for the clarification


Question of the implementation

Hi, can I ask a question about the transformer decoder implementation?
In the VideoMultiScaleMaskedTransformerDecoder class, why this line?
attn_mask[torch.where(attn_mask.sum(-1) == attn_mask.shape[-1])] = False
It means for the query without attended part, change all positions for the query to attend. But I didn't get the intuition of it.
Thanks!

Otherwise the output will be NaN.

This line of code may mean:
If some attn_mask are all True, then change them all into  False

softmax(-inf) -> NaN


Fixed readme spelling error.

:tada: This PR is included in version 7.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Change certification CN to service domain

when enable webhook for mutating admission control, occurred x.509 error from k8s api server.
in k8s api server error log
E1111 03:13:43.508139       1 dispatcher.go:171] failed calling webhook "webhook.sparkoperator.k8s.io": Post "https://spark-operator-webhook.spark-operator.svc:443/webhook?timeout=30s": x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0

in spark-operator error log
2020/11/10 11:05:56 http: TLS handshake error from xxx.xxx.xx.x:37154: remote error: tls: bad certificate

so, fixed CN from ${SERVICE}_ca to operator service DNS name ${SERVICE}.${NAMESPACE}.svc

How can I apply this fix, please? As, it seems this fix is not in the release yet.

@sonu1311 It looks like the bug is fixed in "master" branch by @fisache. I also encountered http: TLS handshake error from <IP_ADDRESS>:56084: remote error: tls: bad certificate trying to use hadoopConfigMap. But then I reinstalled spark-operator from "master" branch using --set image.tag=latest parameter and the bug is dissappeared.

@kudr2001 thank you and confirming its working for us too.

@kudr2001 thank you and confirming its working for us too.


”Puiești” is listed in the drop-down menu

Description:
"Puiești" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "Puiești" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Puiești, VASLUI".


Blank Site

I downloaded the ZIP (July 16), unZipped, uploaded to my themes directory, removed the "-master" at the end of the folder name, created the IFTTT actions, verified that it creates "posts" in my WP, and activated the theme.
Without touching anything else, it generates a blank page without any code. If I change the theme to twentyfifteen, the posts are there.
I'm assuming it's a simple configuration or setting issue. Anyone can shed a light on what I should look into?
The temp site is at http://www.j-r.io
Thanks in advance -- happy to provide any additional details or answer any questions.
JR

Solved. Content will only show with the SocialCrumbs template using the exact IFTTT recipes provided.