Add a ScopeLink component

In the docs, there are various guides that are entirely irrelevant for
a user of a particular scope. In these cases, we usually include a
warning at the top of each guide that indicates that the guide is only
relevant for Cloud, Open Source, or Enterprise users. Rather than force
the user to guess that they need to change the value of the scope
picker, the ScopeLink component enables us to add an inline link that
changes the scope of the page. For example:
<Notice
  type="warning"
  scope={["oss"]}
>

  This guide requires Teleport Cloud or Teleport Enterprise.

  View this guide as a <ScopeLink scope="cloud">Teleport Cloud
  user</ScopeLink> or <ScopeLink scope="enterprise">Teleport
  Enterprise user</ScopeLink>.

</Notice>

Demo video:
https://user-images.githubusercontent.com/25250668/162257662-1dff0d39-79cd-40e0-a299-fbdf8a77d022.mp4

Hi @iAdramelk @Alqanar @C-STYR, I was wondering if you had any thoughts on this draft PR or #33 for handling situations where a user with one scope may need to switch scopes in order to see a particular page.
I was working on using the hideInScopes field in config.json as well as the the ScopedBlock component to hide links in the docs navigation sidebar and menu pages when those links were irrelevant to a reader's scope. There were some edge cases where a user might want to read a page that is relevant outside of their scope, e.g., they're an oss user but want to read the Enterprise getting started guide.
Are there other solutions that would work better here? Thanks!

@ptgott hi Paul,sorry for the late answer.
I have two suggestions here:

Right now ScopeLink will only work with current URL. My guess will be, that we may need to link to different pages in the correct scope too.
onClick will only work on client and will be broke with SSR. Why not write actual href in it? E. g. ${hrefscope=${scope}. This way it will work in SSR too.

How I would approach it: I would update normal Link component to include optional scope prop - it it is set - always use provided scope, if now set current scope dynamically.
E. g. <Link href="/" scope="oss">Got to Introduction page</Link>.

Hi @iAdramelk, thanks for the feedback. I did some more digging, and it looks like it might be enough to make the following change to useNormalizedHref, which extracts the scope query parameter from a link href and, if it's oss, enterprise, or cloud, uses that instead of useContext(DocsContext) to obtain the scope.
This way, we can add a link [like this](../getting-started.mdx?scope=cloud) and it will link to that scope.
Currently, useNormalizedHref only uses the href argument to define noBaseHref, which means that any query parameters added to a link href get ignored.
diff --git a/components/Link/hooks.ts b/components/Link/hooks.ts
index eb231f0..894ed38 100644
--- a/components/Link/hooks.ts
+++ b/components/Link/hooks.ts
@@ -25,13 +25,28 @@ export const useCurrentHref = () => {
  */

 export const useNormalizedHref = (href: string) => {
+
   const { asPath, basePath } = useRouter();

   const noBaseHref = href.startsWith(basePath)
     ? href.substring(basePath.length)
     : href;

-  const { scope } = useContext(DocsContext);
+    const scopes = {
+      "oss":true,
+      "cloud":true,
+      "enterprise": true
+    }
+
+    let scope: "oss"|"cloud"|"enterprise" = "oss"
+
+    const { query } = splitPath(href)
+    if(query.hasOwnProperty("scope") && scopes[query.scope] == true ){
+      scope = query["scope"] as "oss"|"cloud"|"enterprise"
+    } else {
+      scope = useContext(DocsContext).scope;
+    }
+

   if (
     isHash(noBaseHref) ||

I've tested this out with a file called docs/pages/sample.mdx:
---
title: sample page
---

[Cloud](../sample?scope=cloud)
[Enterprise](../sample?scope=enterprise)

@ptgott Good idea! This will be more universal.


Move Semaphore from metacom with fixes

Landed in https://github.com/metarhia/metautil/commit/4994c4eece909be070f5e9e22f505027613c4d08


differnet loss functions

We want to use three different loss functions:
Negative Log likelihood
Focal loss
Cross Entropy


Allow expressions in multiple text question

Probably https://surveyjs.answerdesk.io/ticket/details/T1038 can be solved via multiple text

@tsv2013 We may end-up with all question type in multiple text question :-)
Thank you,
Andrew


Fix issues with partitioning boundaries for MSQ window functions

Description
This PR fixes some issues with MSQ window functions.
Issue 1: NPE issues when multiple windows are used
Currently, queries like the following run into a NPE when using MSQ:
select countryName, cityName, channel,
row_number() over (partition by cityName order by countryName, cityName, channel) as c1,
count(channel) over (partition by cityName order by countryName, cityName, channel) as c2
from wikipedia
where countryName in ('Austria', 'Republic of Korea')
group by countryName, cityName, channel

because the List<OperatorFactory> we get in WindowOperatorQueryKit layer is [Sort, Partition, Window1, Window2].
WindowOperatorQueryKit was trying to group the window factories into different groups, and was asserting a partition operator factory to be present in each group, which wasn't valid, and ended up giving NPE.
Issue 2: Query correctness issues because of incorrect trimming of row signature
Currently, queries like the following give incorrect results when using MSQ:
select cityName, countryName,
row_number() over (partition by countryName order by countryName, cityName, channel) as c1,
count(channel) over (partition by cityName order by countryName, cityName, channel) as c2
from wikipedia
where countryName in ('Austria', 'Republic of Korea')
group by countryName, cityName, channel

because we are incorrectly trimming the row signature in WindowOperatorQueryKit in the following part of code:
      final int numberOfWindows = operatorList.size();
      final int baseSize = rowSignature.size() - numberOfWindows;
      for (int i = 0; i < baseSize; i++) {
        bob.add(rowSignature.getColumnName(i), rowSignature.getColumnType(i).get());
      }

      for (int i = 0; i < numberOfWindows; i++) {
        bob.add(rowSignature.getColumnName(baseSize + i), rowSignature.getColumnType(baseSize + i).get()).build();
        // rest of the code
      }

Solution
Issue 1 is fixed by removing the assertion, and returning null when no partition operator factory is present for the current window stage evaluation. This indicates  that we already have the data partitioned correctly, and hence we don't need to do any shuffling.
Issue 2 is fixed by revamping the logic of computing the row signature for every window stage. Changes done to achieve this:

Added a getOutputColumnNames() method in Processor interface
Calculating the list of partition column names for a given window stage, and passing that list to the window processor layer, for usage in WindowOperatorQueryFrameProcessor#comparePartitionKeys.

Test Plan

Added DruidWindowQueryTest and MSQDruidWindowQueryTest, which use the same wiring done in DrillWindowQueryTest and MSQDrillWindowQueryTest. The common functionality was moved into a base class WindowQueryTestBase. We decided to create a new layer as we didn't want to add non-drill tests into the existing drill test layer.
Added a few category of tests in DruidWindowQueryTest (and hence also in MSQDruidWindowQueryTest).
Did a lot of manual testing as well.

Key changed/added classes in this PR

WindowOperatorQueryKit
WindowOperatorQueryFrameProcessor
Test files: DruidWindowQueryTest , MSQDruidWindowQueryTest, DrillWindowQueryTest, MSQDrillWindowQueryTest, WindowQueryTestBase

This PR has:

[x] been self-reviewed.
[ ] added documentation for new or modified features or behaviors.
[ ] a release note entry in the PR description.
[x] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[x] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[ ] been tested in a test Druid cluster.

Alongside, I think its better to not use the .q and .e files to run the normal test cases. It checks only the output, which is expected for drill tests. In general we would loose the capability of the asserting other aspects of planning and execution (for example - test cases under shuffle columns)

@sreemanamala It's intentional. I wanted to add a bunch of tests where we validate that the outputs of MSQ and sql-native engine are the same. We have a very nice wiring already for it in the Drill tests, so I re-used that.
We have a MSQWindowTest where more specific tests with more detailed validations should go - but that's MSQ specific. For now, I was hoping to validate that queries lead to same result with both engines. I expect to add a LOT of tests in the DruidWindowQueryTest file that I added, that would run for both engines. I feel we should have more tests that run for both engines, even if they verify only the outputs for now.
But to your point, I will add more specific tests to the MSQ specific test file as well for more detailed assertions. I'm kinda hoping to revamp the rest of the logic in the next 2-3 PRs, detailed tests would make more sense then. Hope that sounds good! :)


Invalid LDAP credentials against FreeIPA 4.6.8 backend - but they're... correct?

So, I've got a FreeIPA 4.6.8 LDAP backend, and it's telling me I've got invalid credentials. But I've checked and double-checked my auth_ldap_bind_password in my /etc/zulip/zulip-secrets.conf, and it is 100% correct - I can use that exact password and username to log into servers that are enrolled into this exact same FreeIPA domain. I'm not sure what I'm doing wrong, but I expect it's in my settings.py LDAP settings somewhere.
I've been trying to follow along with Apache Directory Studio and I can't see where I'm plugging anything in incorrectly. :(
LDAP settings section of /etc/zulip/settings.py:
AUTH_LDAP_SERVER_URI = "ldap://ldap.example.com"
AUTH_LDAP_BIND_DN = "uid=zulip,cn=users,cn=accounts,dc=example,dc=com"
AUTH_LDAP_USER_SEARCH = LDAPSearch(
    "cn=users,cn=accounts,dc=example,dc=com", ldap.SCOPE_SUBTREE, "(uid=%(user)s)"
)
LDAP_APPEND_DOMAIN = None
LDAP_EMAIL_ATTR = "mail"
AUTH_LDAP_REVERSE_EMAIL_SEARCH = LDAPSearch("cn=users,cn=accounts,dc=example,dc=com",
                                             ldap.SCOPE_SUBTREE, "(mail=%(email)s)")
AUTH_LDAP_USERNAME_ATTR = "uid"
AUTH_LDAP_USER_ATTR_MAP = {
    "full_name": "cn",
    "avatar": "jpegPhoto",
    "deactivated": "nsAccountLock"
}

Output of zulip@zulip:~$ /home/zulip/deployments/current/manage.py query_ldap<EMAIL_ADDRESS>Traceback (most recent call last):
  File "/home/zulip/deployments/current/manage.py", line 52, in <module>
    execute_from_command_line(sys.argv)
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/home/zulip/deployments/2022-01-28-22-09-57/zerver/management/commands/query_ldap.py", line 15, in handle
    values = query_ldap(email)
  File "/home/zulip/deployments/2022-01-28-22-09-57/zproject/backends.py", line 1037, in query_ldap
    ldap_username = backend.django_to_ldap_username(email)
  File "/home/zulip/deployments/2022-01-28-22-09-57/zproject/backends.py", line 543, in django_to_ldap_username
    email_search_result = find_ldap_users_by_email(username)
  File "/home/zulip/deployments/2022-01-28-22-09-57/zproject/backends.py", line 440, in find_ldap_users_by_email
    return email_search.search_for_users(should_populate=False)
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/django_auth_ldap/backend.py", line 342, in search_for_users
    results = search.execute(self.connection, {"email": self._email})
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/django_auth_ldap/backend.py", line 268, in connection
    self._bind()
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/django_auth_ldap/backend.py", line 277, in _bind
    self._bind_as(self.settings.BIND_DN, self.settings.BIND_PASSWORD, sticky=True)
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/django_auth_ldap/backend.py", line 288, in _bind_as
    self._get_connection().simple_bind_s(bind_dn, bind_password)
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/ldap/ldapobject.py", line 455, in simple_bind_s
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/ldap/ldapobject.py", line 764, in result3
    resp_type, resp_data, resp_msgid, decoded_resp_ctrls, retoid, retval = self.result4(
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/ldap/ldapobject.py", line 774, in result4
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/ldap/ldapobject.py", line 340, in _ldap_call
    reraise(exc_type, exc_value, exc_traceback)
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/ldap/compat.py", line 46, in reraise
    raise exc_value
  File "/srv/zulip-venv-cache/a7fb0fe17c8b91b591927bfa8f133a90b20f3d18/zulip-py3-venv/lib/python3.8/site-packages/ldap/ldapobject.py", line 324, in _ldap_call
    result = func(*args,**kwargs)
ldap.INVALID_CREDENTIALS: {'msgtype': 97, 'msgid': 1, 'result': 49, 'desc': 'Invalid credentials', 'ctrls': []}

Hi!  Stop by https://chat.zulip.org/#narrow/stream/31-production-help/topic/Invalid.20LDAP.20credentials.20.2321024/near/1321598 so that we can debug interactively.  One possibility at first thought is that I'm used to seeing the secure ldaps protocol; it's possible your LDAP server doesn't allow connections over the ldap:// protocol.

@timabbott Hi! Super helpful. I've posted over there, and will add the solution back here for anyone who needs it!
Spoiler: I had the wrong LDAP credentials. Still can't get LDAP over ldaps:// working, despite being able to ping the LDAP server, and hit port 636 via the telnet command. :P

I solved the Zulip ldaps:// to FreeIPA issue: Your standard FreeIPA installations will almost always create a self-signed root certificate in there that you use for a downstream, internal, certificate authority. This is a super useful feature! Downside: A lot of applications (like Zulip, Nextcloud, WeKan and others) will not trust that certificate.
In the case of Zulip (and, probably all applications that you're struggling with when connecting to a FreeIPA instance over port 636 or STARTTLS over 389), you need to install your FreeIPA root Certificate Authority certificate (JUST certificate - not the private key) into the system trusted root certificate store. If you're using Ubuntu Server 20.04 (as I was), this is accomplished very easily:
# This assumes you have copied your FreeIPA root certificate to a PEM-encoded file called
# ca.crt in the local working directory.
$ sudo cp ca.crt /usr/local/share/ca-certificates
$ sudo update-ca-certificates

You may need to install the ca-certificates package with an $ apt install -y ca-certificates, but I found that my standard Ubuntu Server 20.04 install simply came with it.

Lucky you, I had to do the same thing on a CentOS 7 box today, too:
# same assumption as above
$ cp ca.crt /etc/pki/ca-trust/source/anchors/ca.crt
$ update-ca-trust

Lucky you, I had to do the same thing on a CentOS 7 box today, too:
# same assumption as above
$ cp ca.crt /etc/pki/ca-trust/source/anchors/ca.crt
$ update-ca-trust


Maven Release

Publish library to maven central to be able to use it inside applications

The library is now available in the Maven Central Repository:
https://repo1.maven.org/maven2/net/nharyes/secrete/1.0.1/
Thank you for the suggestion!


Zenject is not really thread safe

The code bellow will fail in a multi-threaded application. As you can see, there are two different locks to access the _typeInfo dictionary, one to TryGetValue and the other to Add.
This will raise an exception when two threads pass the first lock and both try to add the type info into the dictionary.
Locally I've fixed this by making only one big lock, encapsulating all the code from TryGetValue to Add, but I'm not sure if this is the best approach as I'm not familiar with the rest of the library.
https://github.com/svermeulen/Extenject/blob/32d175f28450530cd160f866d970af07487c822f/UnityProject/Assets/Plugins/Zenject/Source/Util/TypeAnalyzer.cs#L117-L152

Yes I see what you mean.  We can't just put the whole contents of TryGetInfo into a lock though because it recurses on itself when resolving parent values for InjectTypeInfo.  I've changed it _typeInfo[type] = info; instead of _typeInfo.Add(type, info) to avoid the exception as this seems to be the lowest risk fix.


Add tests which verify that the probe information is present in an object file

We don't currently verify that object files using the usdt mechanisms actually contain the data required to inspect them with dtrace(1). We should do include tests which verify that:

For linux, there should be no extra data in the object files at all.
For macOS, when using the normal, linker-based implementation, we should see a valid DOF section in the object file.
For macOS, when using the no-linker feature flag, we should see the custom ASM probe records, which can be extracted into the types in the dof crate.

Both of these latter tests should probably rely on the new dusty executable, which is included as part of #15. They could also read the ELF/Mach-O files directly and search for our set_dtrace_probes/__dtrace_probes or DOF sections directly.

As a final integration test, we probably should go ahead and directly verify that we see the expected output when using dtrace -lvn on a known object file. This is really the largest-scope and most important integration test.

Closed by #17


linker: lto: Remove experimental label

LTO support was added with Zephyr 3.6.0, and it has been used in production with Nordic devices for a long time. Remove the experimental label to mark it ready for production.

Both excited and frightened by this. @carlescufi should there be a release-notes addition for this?

Yes, but I can add that later as part of the release notes update.


Add post installation message

This PR adds the proposed post installation message (Resolves lazaronixon/authentication-zero#52) so that users can be kept up-to-date regarding important changes to Authentication Zero.
Screenshot of the message:

As of the current moment, the CHANGELOG is out of date for the most recent three minor version releases. A separate PR has been opened to update this: https://github.com/lazaronixon/authentication-zero/pull/54.
Please check these PRs out and provide feedback as needed. Thank you!

Excellent, quite simple, and solve the problem.


Write cheeps

Able to write cheeps now from both timelines.
Closes #59

Everything looks good. We'll look at adding max length tomorrow


Error installing the generator

I'm submitting a...
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
Current behavior

Error installing the generator.
Command used:
npm install -g generator-ngx-rocket
Error:
npm ERR! path C:\Users\user\AppData\Roaming\npm\node_modules\generator-ngx-rocket\cli\bin\ngx
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod 'C:\Users\user\AppData\Roaming\npm\node_modules\generator-ngx-rocket\cli\bin\ngx'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR!      C:\Users\user\AppData\Roaming\npm-cache_logs\2017-12-04T22_55_09_581Z-debug.log
Expected behavior

Succesful install
Minimal reproduction of the problem with instructions

1.- Open Node console
2.- Type npm install -g generator-ngx-rocket
3.- Error message appear
Environment
- generator version: 3.1.0
- node version: 9.2
- npm version: 5.5.1
- OS:  Windows 10

Others:

Oups, seems I missed something in the release, thanks for the report

The cli folder was omitted from the previous release, I juste released a 3.1.1 version that fixes the issue.

Thanks for your time


Validation not working?

Laravel 5.6
Laravel Binary Uuid 1.1
I'm sure I'm missing something here (I've been back to Laravel for only the past 6 months).
I have a model that uses the HasBinaryUuid trait. In my Request class, I want to check for uniqueness of one of the attributes, so I did:
    public function rules()
    {
        return [
            'name'                      => [
                'required',
                'max:255',
                'unique:model_table,name,'.$this->model_name->id
            ],

Unfortunately, the following error occurs:
[2018-08-10 15:49:01] local.ERROR: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`?' at line 1 (SQL: select count(*) as aggregate from `model_table` where `name` = Test and `�\';L�` <> 蜱��)

Any ideas?

@mfauveau when you read the ->id or ->uuid attribute of any model that uses the HasBinaryUuid trait, it returns binary data. The error you have has nothing to do with this package.
I think what you wished to do is:

use Illuminate\Validation\Rule;

public function rules()
    {
        return [
               'name' =>[
                      'required',
                      'max:255',
                       Rule::unique('model_table', 'name')->where(function ($query) {
                               return $query->where(
                                              $this->model_name->getKeyName(),
                                              '<>',
                                              $this->model_name->id
                                      );
            }
             })

Looks like it's indeed a misuse of certain properties. I'll close this issue for now, but don't hesitate to reply here if you have any more questions.

For some reason, id_text was throwing an error and it's not doing it anymore... thanks anyway, guys!

I actually remember now (I have a case of Mondays :)).
When editing an item, let's say 22509e3c-9a74-11e8-99a9-0800273b4cc5, neither Rule::unique('table')->ignore($this->model->id_text) or Rule::unique('table')->ignore($this->model->id) work as expected. It's always returning "name" attribute already exists.
I found out that dumping $this->model->id returns b"\x11èšt"Pž<™©\x08\x00';LÅ" but dumping $this->model->id_text returns null.
Not sure why I can't get this simple validation working.
To give more context, this is all contained in Request::rules(), and automatically called from the Controller::update(Request $request, Model $model) method.

Ok, $this->idreturns the actual text uuid. Progress! However, I've attempted all of the proposed solutions, and I still get the "name" attribute already exists error.

Reopening this, I'll investigate it a little further, though I can't promise it'll be this week.

@mfauveau does your model contain

public function getRouteKeyName(){

       return 'id_text';
}

if it doesn't then what you are looking for is on $this->model->uuid_text. I think there would be need to update these two methods in the library code @brendt like so (just a suggestion):
    public function getKeyName(){

               return $this->primaryKey;
    }

    public function getRouteKeyName(){

            $id = $this->getKeyName();
            $suffix = $this->getUuidSuffix();

            return "{$id}{$suffix}";
     }

So, it's easier to use the library without wondering about so much like @mfauveau .

Any update on this? I'm having trouble finding an elegant solution to validation through form requests that doesn't involve all() or similar drastic methods.
I'm looking to validate that a uuid exists in a table. Html doesn't allow the binary version of the uuid so I'll have to convert it.

This package has been abandoned. Alternatives: https://github.com/michaeldyrynda/laravel-efficient-uuid & https://github.com/michaeldyrynda/laravel-model-uuid


[Example] Fix native projects

This PR address the following changes:

Add Podfile.lock file to iOS project
Add workspace based configuration to use Pods in iOS project
Update Gradle Wrapper in Android to make it compatible with Java 15 + other Gradle feature/improvements

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


polygonscan verification error

trying to figure out how to resolve this issue. much appreciated in advance.
Compiler debug log:
Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])
For troubleshooting, you can try compiling your source code with the Remix - Solidity IDE and check for exceptions
ParserError: Source<EMAIL_ADDRESS>not found: File import callback not supported
--> myc:7:1:
|
7 | import<EMAIL_ADDRESS>| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ParserError: Source<EMAIL_ADDRESS>not found: File import callback not supported
--> myc:8:1:
|
8 | import<EMAIL_ADDRESS>| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Yes i have the same issue when i wanna verify my contract address and i get the exact same error. plz anyone help :)

same issue here, what should i do?


No Supplier for each component within SBOM

What would you like to be added:
Please add "Supplier" to each component.
Why is this needed:
The Supplier is needed to make SBOM valid.
Additional context:

The Supplier is needed to make SBOM valid.

This is not required to make a valid SBOM. It is required for NTIA minimum elements.
The challenge we have here is that we simply don't have supplier information present in the scan target for everything. However, we are including supplier, in many cases if we found this information.
Is there something else you are looking for? Could you provide more information: what package ecosystem, what output format, sample images you expect to have suppliers, etc.?

I'm going to close this issue, as I believe it's a duplicate of #1961. If that's not correct, please let me know! And if you have some examples to provide to help us make sure we're surfacing supplier information for ecosystems, please do let us know that as well.


Cerebellum

Would it be kosher to use the synthSR generated images for cerebellar GMV evaluations or is this meant strictly for cortical areas of interest?
Your thoughts/opinion would be appreciated!

Hi,
yes you can absolutely use this tool for cerebellar applications, since it has been trained the same way for cerebral and cerebellar regions.

Thank you!


Error in networks.py

Hello,
i am running into this error:
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/loops/fit_loop.py", line 354, in advance
self.epoch_loop.run(self._data_fetcher)
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/loops/training_epoch_loop.py", line 133, in run
self.advance(data_fetcher)
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/loops/training_epoch_loop.py", line 218, in advance
batch_output = self.automatic_optimization.run(trainer.optimizers[0], kwargs)
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/loops/optimization/automatic.py", line 185, in run
self._optimizer_step(kwargs.get("batch_idx", 0), closure)
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/loops/optimization/automatic.py", line 260, in _optimizer_step
call._call_lightning_module_hook(
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/trainer/call.py", line 140, in _call_lightning_module_hook
output = fn(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/core/module.py", line 1256, in optimizer_step
optimizer.step(closure=optimizer_closure)
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/core/optimizer.py", line 155, in step
step_output = self._strategy.optimizer_step(self._optimizer, closure, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/strategies/strategy.py", line 225, in optimizer_step
return self.precision_plugin.optimizer_step(optimizer, model=model, closure=closure, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/plugins/precision/amp.py", line 70, in optimizer_step
closure_result = closure()
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/loops/optimization/automatic.py", line 140, in call
self._result = self.closure(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/loops/optimization/automatic.py", line 126, in closure
step_output = self._step_fn()
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/loops/optimization/automatic.py", line 307, in _training_step
training_step_output = call._call_strategy_hook(trainer, "training_step", *kwargs.values())
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/trainer/call.py", line 287, in _call_strategy_hook
output = fn(*args, **kwargs)
File "/opt/conda/lib/python3.10/site-packages/lightning/pytorch/strategies/strategy.py", line 367, in training_step
return self.model.training_step(*args, **kwargs)
File "/home/tts/efficientspeech/model.py", line 214, in training_step
y_hat = self.forward(x)
File "/home/tts/efficientspeech/model.py", line 156, in forward
return self.phoneme2mel(x, train=True) if self.training else self.predict_step(x)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/tts/efficientspeech/layers/networks.py", line 421, in forward
pred = self.encoder(x, train=train)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/home/tts/efficientspeech/layers/networks.py", line 370, in forward
fused_features = torch.cat([fused_features, pitch_features,
RuntimeError: Sizes of tensors must match except in dimension 2. Expected size 1 but got size 110 for tensor number 1 in the list.
Epoch 0:   0%|          | 0/129 [00:02<?, ?it/s]

and sometimes it fails with RuntimeError: The size of tensor a (143) must match the size of tensor b (110) at non-singleton dimension 1
seems the 143 comes from max_phoneme_len


[amqp-common] Rename amqp-common library to core-amqp

Rename amqp-common library to core-amqp and use version "1.0.0-preview.1"

This change is being done as per the conclusions in https://github.com/Azure/azure-sdk-for-js/issues/2807#issuecomment-500942720


Concealed config mod

Implement concealed config mode to hide common config files and use them from routineless module.

After some thoughts we can use https://nx.dev/extending-nx/recipes/project-graph-plugins (Nx Project Inference API v2) to add cdk targets based on cdk.json config. Other option would be to make cdk.json config optional and use it only as override for default options. "app", "output", "watch" options can be dynamically constructed by executor.


Readme: Update from -A to -X as is correct in the latest CLI version

With the current clojure CLI version, :exec-fn are only run when using the -X: invocation.
See https://clojure.org/guides/deps_and_cli#socket_repl for an example
or within clj --help
Usage:
  Start a REPL  clj     [clj-opt*] [-Aaliases] [init-opt*]
  Exec fn(s)    clojure [clj-opt*] -X[aliases] a/fn? [kpath v]* kv-map?
  Run tool      clojure [clj-opt*] -T[name|aliases] a/fn [kpath v] kv-map?
  Run main      clojure [clj-opt*] -M[aliases] [init-opt*] [main-opt] [arg*]
  Prepare       clojure [clj-opt*] -P [other exec opts]

Hey - thanks @bennyandresen  - do you know if this fails on older versions? Does it fail for you on your current version? We've had trouble with this in the past

I checked a random clojure CLI version before and they should fail before -X was introduced.
-X was introduced with V<IP_ADDRESS>7 in September 2020
https://clojure.org/releases/tools#v<IP_ADDRESS>7
To answer the question if the Readme before 29c70a4803a578ed2a18cebed2e189a7a66b5f56 failed: Without -X you get dropped to the REPL and have to run (main) yourself. Not hard to figure out if you're familiar with Clojure/deps.edn but when you come from Hacker News it may not be obvious.
From my perspective after 29c70a4803a578ed2a18cebed2e189a7a66b5f56 this PR can be closed.

Ah ok, thanks.


Install error in PynqZ2

Hi,
I'm trying to install the PYNQ_Composable_Pipeline in my Pynq-Z2 board and got below error message in step 2:
python3 -m pip install PYNQ_Composable_Pipeline/ --no-build-isolation
Defaulting to user installation because normal site-packages is not writeable
Processing ./PYNQ_Composable_Pipeline
Preparing metadata (setup.py) ... done
Collecting graphviz>=0.17
Using cached graphviz-0.19.1-py3-none-any.whl (46 kB)
Collecting pynq>=2.7.0
Using cached pynq-2.7.0.tar.gz (64.2 MB)
Preparing metadata (setup.py) ... done
ERROR: Package 'pynq-composable' requires a different Python: 3.6.5 not in '>=3.8.0'
Maybe due to the kernel version is too old can't install Python 3.8 directly, I also try to download the source code, rebuild, and install the Python 3.8, but the still got different error:
Processing ./PYNQ_Composable_Pipeline
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-hvd6m0wd/setup.py'"'"'; file='"'"'/tmp/pip-req-build-hvd6m0wd/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-req-build-hvd6m0wd/
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-req-build-hvd6m0wd/setup.py", line 18, in
from pynq.utils import build_py
ModuleNotFoundError: No module named 'pynq'
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 22.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Does anyone can help me to fix this error?

 I'm using the v2.6.0 SDCard image for the previous test.
Update the image to v2.7.0 and can support python 3.8, the problem will be fixed.
Productivity additions
Updated to Python 3.8
https://github.com/Xilinx/PYNQ/releases

Yes, that's correct. You need the SD Card image 2.7 to install the composable overlay.

Sorry to bother you again.
I found a warming/error message during the step 3:
pynq-get-notebooks pynq-composable -p $PYNQ_JUPYTER_NOTEBOOKS
xilinx@pynq:~$ pynq-get-notebooks pynq-composable -p $PYNQ_JUPYTER_NOTEBOOKS
/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/pl_server/xrt_device.py:88: UserWarning: xbutil failed to run - unable to determine XRT version
warnings.warn(
Notebooks 'pynq_composable.notebooks' are already delivered and will be ignored, use --force to override.
Does this message should be ignored?
Another problem, I ran the custom_pipeline/01_composable_overlay_intro.ipynb, but got below error seems can't find the pynq_composable:

ModuleNotFoundError                       Traceback (most recent call last)
 in
1 from pynq import Overlay
----> 2 import pynq_composable
3
4 ol = Overlay("cv_dfx_4_pr.bit")
ModuleNotFoundError: No module named 'pynq_composable'
I checked the pynq-composable is ready installed now by command: pip list
pynq-composable 1.0.0
Do you have any idea about it?

Where did you run the install steps? You should run them in a JupyterLab terminal or as root.

Steps in here https://pynq-composable.readthedocs.io/en/latest/getting_started.html#get-the-composable-video-pipeline

Where did you run the install steps? You should run them in a JupyterLab terminal or as root.

I'm running these steps on my PYNQ-Z2 board by terminal, and open the Jupyter notebook by the website:
http://xxx.xxx.xxx.xxx:9090/notebooks/pynq-composable/custom_pipeline/01_composable_overlay_intro.ipynb

I mean the installation steps, from your log, you are running as regular user xilinx@pynq.
Please, rerun the installation steps in a JupyterLab terminal. <IP address>:9090/lab https://jupyterlab.readthedocs.io/en/stable/user/terminal.html

Thanks for your explanation.  Switch user to root and re-run the install step2 and 3:
python3 -m pip install PYNQ_Composable_Pipeline/ --no-build-isolation
pynq-get-notebooks pynq-composable -p $PYNQ_JUPYTER_NOTEBOOKS
The pynq_composable can be found in the 01_composable_overlay_intro.ipynb
Why we can't install the pynq-composable module by the reqular user?  Does it mean the user is 'root' when I connect the ipynb by the :9090??

pynq needs to run as root. So we need to be in the same env.  Yes, when you connect to the notebooks you are running as root.


When will Ruby version is up?

Current Ruby version for Azure Web App Service is 2.3.3.
The Latest Ruby versions are 2.3.8, 2.4.5 and 2.5.3.
(And Ruby's next version 2.6.0 will be released on 25 Dec.)
Some vulnerability are fixed since 2.3.3 until 2.3.8.
When will Ruby version is up?
I found this PR that is for Ruby' version up to 2.3.8 and 2.4.5, so I am very looking forward to merge this.
https://github.com/Azure-App-Service/ruby/pull/19

I’m bumping this because the current scenario is pretty miserable. Is Ruby/Rails support effectively deprecated?

fixed


Patches is dying after about 5 minutes

logs are attached.
patches-backend_error.log
patches-backend_standard.log
patches-frontend_error.log
patches-frontend_standard.log
patches-httpd_error.log
patches-httpd_standard.log
patches-nginx_error.log
patches-nginx_standard.log
patches-psql_error.log
patches-psql_standard.log

These logs are empty. It looks like this system was turned on and then shutdown. Nothing to see here though?
Is this on the STIG'd version?

This occurs because recent STIGs broke how we were handling certs. I have addressed this.


#186: Add attackers()

Changes

Added attackers(), a new public method that returns a list of attacking squares, as mentioned in #186. The method follows all the same rules as isAttacked().
Modified _attacked() to take in an optional boolean parameter, verbose. When verbose is false, it behaves like normal (unchanged). When verbose is true, it returns a list of attacking squares.
Created test cases for attackers().
Updated the README.md.

Any previous code that calls _attacked() should remain unaffected since the verbose parameter is optional. Running all the test cases before and after modifying _attacked() shows no difference in performance.
Examples (as shown in the README.md):
const chess = new Chess()

chess.attackers('f3', WHITE)
// -> ['e2', 'g2', 'g1'] (we can attack empty squares)

chess.attackers('f6', BLACK)
// -> ['g8', 'e7', 'g7'] (side to move (e.g. the value returned by .turn) is ignored)

chess.attackers('e2', WHITE)
// -> ['d1', 'e1', 'f1', 'g1'] (we can attack our own pieces)

chess.load('4k3/4n3/8/8/8/8/4R3/4K3 w - - 0 1')
chess.attackers('c6', BLACK)
// -> ['e7'] (pieces still attack a square even if they are pinned)

Hi @kylebatucal and thanks for the PR! This is a nice improvement to the library. Do you think you can make the new method use a default value for the color (defaulting it to the current side to move)?

Hi @kylebatucal and thanks for the PR! This is a nice improvement to the library. Do you think you can make the new method use a default value for the color (defaulting it to the current side to move)?

Thanks for the response @jhlywa! I have gone ahead and added your suggestion to the PR. I have also updated the test cases and the README:
README.md
.attackers(square, [ color ])
Returns a list of squares that have pieces belonging to the side to move that
can attack the given square. This function takes an optional parameter which can
change which color the pieces should belong to.
const chess = new Chess()

chess.attackers('f3')
// -> ['e2', 'g2', 'g1'] (empty squares can be attacked)

chess.attackers('e2')
// -> ['d1', 'e1', 'f1', 'g1'] (we can attack our own pieces)

chess.attackers('f6')
// -> [] (squares not attacked by the side to move will return an empty list)

chess.move('e4')
chess.attackers('f6')
// -> ['g8', 'e7', 'g7'] (return value changes depending on side to move)

chess.attackers('f3', WHITE)
// -> ['g2', 'd1', 'g1'] (side to move can be ignored by specifying a color)

chess.load('4k3/4n3/8/8/8/8/4R3/4K3 w - - 0 1')
chess.attackers('c6', BLACK)
// -> ['e7'] (pieces still attack a square even if they are pinned)

@jhlywa hoping to use this new method :) could you publish the changes?

@hkilaru Hey Harish, this method is in the main release already. Make sure you update your repo!

@kylebatucal saw it's merged, but don't the changes need to be published to npm? I'm on ^1.0.0-beta.8, but the last publish was 3 months ago: https://www.npmjs.com/package/chess.js/v/1.0.0-beta.8

I'm wondering the same thing


Sanitize ArrayElementAccess in IntermediateIntent

Many tests are leaving ArrayElementAccess in the final intermediate intent. Although the final ii is solvable, not all ArrayElementAccesss are being removed.
Likely related to #528, though not confirmed yet
For example: non_const_index.yrt fails with
...
compiler internal error: array element access present in final intent exprs slotmap
@40..44: array element access present in final intent exprs slotmap

The test is below.
let n: int;
let a: int[10];

constraint a[n] == 3;

solve satisfy;

This is fine now since the asm gen does support array accesses.


[BUG] Crash when trying to transform (enchange) whole "collection" of scans

Version
1.4.15 build 56
What platform are you using?
Android
OS Version
Android 14 / LineageOS 21 (no GApps)
What happened?
Like in title, app crashes and android kills all background processes (also those with disabled battery optimization) when I'm trying to transform all scans in a "collection".
Relevant log output
Unfortunately, I can't provide logs as I currently dont have access to a PC and trying to capture logs with Termux (also with wakelock), AppManager and android's built in bug report (because all they are killed when crash). I'll capture them later with hope that adb logcat process won't be killed

Code of Conduct

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

@tadekdudek it is a memory issue. Right now the app is not really optimized for such big operations.
Out of curiosity how many documents? pages total? (approximately)

@tadekdudek there is a new version on the app which could be fixing a lot of memory issues. Please let me know if it still crashes

@tadekdudek there is a new version on the app which could be fixing a lot of memory issues. Please let me know if it still crashes

It still crashes in 1.5.0 build 57.

@tadekdudek it is a memory issue. Right now the app is not really optimized for such big operations. Out of curiosity how many documents? pages total? (approximately)

It's about 40 images

@tadekdudek ok too bad will try to reproduce. Are you images big? what s the average image size  ?

Mostly about 2200x3500

@tadekdudek just published a new version. Tested with 80 items and it didnt crash. Hopefully it works for you too

For me crashes with 10 images, 8 works fine


EditorUtils.setReadOnly(true) does not work for HtmlNoteContentEditor

In Typescript, Serenity.EditorUtils.setReadOnly(this.form.MyHtmlNoteContentColumn, true); sets the textarea readonly=readonly, but does not change the contenteditable=false in the associated s-HtmlContentBody body. Since the textarea is invisible and not the actual control used to capture/enter text, this isn't sufficient.
Marking the column as ReadOnly(true) in the .cs performs readonly correctly.

You need to use one that accepts a Widget (setReadOnly), not jQuery object (setReadonly).

Hmm. Yup, that's what I'm using...

Well thats also what PropertyGrid is using to set read only:
                bool readOnly = item.ReadOnly == true || !CanModifyItem(item);
                EditorUtils.SetReadOnly(editor, readOnly);
                EditorUtils.SetRequired(editor, !readOnly && Q.IsTrue(item.Required) &&
                    (item.EditorType != "Boolean"));

You should also use updateInterface for such work and call base method always.

$Serenity_EditorUtils.setReadOnly = function(widget, isReadOnly) { 		var readOnly = ss.safeCast(widget, $Serenity_IReadOnly); 		if (ss.isValue(readOnly)) {  // readOnly is null, so this isn't called 			readOnly.set_readOnly(isReadOnly); 		} 		else if (widget.element.is(':input')) { 			$Serenity_EditorUtils.setReadonly(widget.element, isReadOnly); // this is called on the jQuery object 		}
Stepping through, readOnly is coming up as null so it never attempts the set_readOnly() call

Thanks for your recent work on this. The CKEditor is not $instanceReady by the time updateInterface() is called, but I can set it to readonly successfully within a setTimeout() block called from there.

Ok will have another look

Maybe expose the InstanceReady event from the CKEditor onto the parent HtmlContentEditor so our code can attach event handlers to it? That way we won't have to guess at when it might be ready.

Hi guys,
I've just completed the porting of the HtmlContentEditor to TypeScript and I managed to solve the readonly issue this way:
set_readOnly(value: boolean): void {
    if (this.get_readOnly() != value) {
        if (value)
            this.element.attr("disabled", "disabled");
        else
            this.element.removeAttr("disabled");

        var instance = this.getEditorInstance();
        if (instance != null && instance.status == 'ready') {
            instance.setReadOnly(value);
        } else {
            instance.on("instanceReady", function (event) {
                instance.setReadOnly(value);
            });
        }
    }
}

Note that in the last versions of CKEditor, the status are changed (http://docs.ckeditor.com/#!/api/CKEDITOR-property-status).
I can also share the entire code if someone needs it!
Bye


Add missing JSON test data

Codecov Report

Merging #20 (95f561a) into master (3db0fe6) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #20   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines          490       490
  Branches       100       100
=========================================
  Hits           490       490

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 3db0fe6...95f561a. Read the comment docs.


New version: Oracle.VirtualBox version 7.0.18

Checklist for Pull Requests

[ ] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

2024-05-03 15:04:44.357 [REPO] Failed to open available source: msstore
2024-05-03 15:04:47.610 [REPO] Failed to open available source: msstore
2024-05-03 15:04:54.715 [REPO] Failed to open available source: msstore
2024-05-03 15:04:55.960 [CLI ] No suitable installer found for manifest Microsoft.VCRedist.2015+.x64 with version 14.38.33135.0

(Automated response - build 880.)


Add links to Stamen.com everywhere on maps.stamen.com (and branding)

Consider branding and messaging around custom mapping that goes to Stamen.com. First paragraph ( @iamjimstanley )
Logo and branding

@iamjimstanley for copy


double-beep: Watch slim\Wambition(?:\Wketo)?

double-beep requests the watch of the watch_keyword slim\W*ambition(?:\W*keto)?. See the MS search here and the Stack Exchange search here.

slim\W*ambition(?:\W*keto)? has been seen in 2 true positives, 0 false positives, and 0 NAAs.

Approved by Makyen in Charcoal HQ


Add ability to silence error reports via configuration comments

Hi!
We're currently adding JET.report_package to our test suite to ensure we didn't introduce any detectable errors to our codebase.
But sometimes we encounter errors we're okay with, e.g.:
JET.report_text("""
    f(::Float64) = error("We got a Float64, this is bad, and here is why: ...")
    """,
    analyze_from_definitions=true,
)
#═════ 1 possible error found ═════
#┌ @ top-level:1 error("We got a Float64, this is bad, and here is why: ...")
#│┌ @ error.jl:33 error(::String)
#││ may throw: Base.throw(Base.ErrorException(s::String)::ErrorException)
#│└───────────────

Currently, I'm manually filtering the reports contained in the result object, which feels a bit hacky, as I'm touching the internals of VirtualFrames which I'm not super familiar with.
Generally, having more control over what appears in the reports would be great. Either an explicit API for filtering results beyond target_modules or, preferably, the ability to annotate code with comments which would tell JET to silence certain error reports for a given method/code segment.
I don't have a good idea of what that syntax should look like, but maybe something like this could work:

JET.report_text("""
    function f(::Float64) # JET ignore: UncaughtExceptionReport
        error("We got a Float64, this is bad, and here is why: ...")
    end
    """,
    analyze_from_definitions=true,
)
# No errors detected

Ideally, one could condition the config on the method signature.
CC: @NHDaly

Hi! @Drvi, can you share the code you currently use to filter out the errors?

Since it doesn't seem likely this will be fixed any time soon, I filter JET's output through the following. It not only skips errors on lines containing NOJET, but also breaks the output to a list of separate errors, with a line break between them, which IMVHO is more readable. Exit status is non-zero if there are any non-skipped errors.
import fileinput
import re
import sys

location_pattern = re.compile(r'(\S+):(\d+)$')

read_path = None
read_lines = None
bad_paths = set()

def is_disabled(path, line):
    if path in bad_paths:
        return False

    global read_path
    global read_lines

    if path != read_path:
        try:
            with open(path) as file:
                read_lines = list(file.readlines())
            read_path = path
        except:
            bad_paths.add(path)
            return False

    return "NOJET" in read_lines[int(line) - 1]

context_lines = []
context_disabled = []
context_changed = False

errors = 0
skipped = 0

for line in fileinput.input():
    if line.startswith("[toplevel-info]"):
        print(line[:-1])
        sys.stdout.flush()
        continue

    if line == "\n" or "[toplevel-info]" in line or "possible errors" in line:
        continue

    match = location_pattern.search(line)
    if match:
        context_changed = True
        depth = len(line.split(' ')[0])

        while len(context_lines) >= depth:
            context_lines.pop()
            context_disabled.pop()

        context_lines.append(line)
        context_disabled.append(is_disabled(*match.groups()))
        continue

    if any(context_disabled):
        if context_changed:
            skipped += 1
            context_changed = False
    else:
        if context_changed:
            context_changed = False
            errors += 1
            print("")
            for context_line in context_lines:
                print(context_line[:-1])
        print(line[:-1])

if errors > 0:
    if skipped > 0:
        print(f"\nJET: {errors} errors found, {skipped} errors skipped")
    else:
        print(f"\nJET: {errors} errors found")
    sys.exit(1)

if skipped > 0:
    print(f"\nJET: {skipped} errors skipped")
else:
    print(f"\nJET: clean!")


Customizable toolbar

Current set of options for toolbar is really limited, see https://github.com/btzr-io/Villain#options
We should provide and option to customize the toolbar elements.
Possible solutions and ideas

Create an allowFeature.. props for each tool / feature
Create a prop to choose what toolbar actions will be shown:  actions: ['fullscreen' , ...]
Maybe another one to block actions:  blockActions: ['fullscreen',...]
Add custom buttons ? buttons: [ { name: 'flip', action: (e) => something... } ]

Open for suggestions.

Maybe we could try with another pattern to be more reusable. For example, the final use could be...

<Villian.Button prop={value}></Villian.Button>

I don't know, how are some of the final cases that you are thinking, maybe if you could help me with vision or more context I could help with more robust ideas. :stuck_out_tongue_winking_eye:

I like that approach, not sure how easy will be to integrate due the current structure / state management.

Thanks to the new hooks-api it is now possible to make your own toolbar or any external component.
There still one provided as a default option.


Refactor some backend-related stuff

Just some minor cleanups so that common code goes into common and we use it.

Note that you'll have to update the mailgun templates with your changes on their site... https://app.mailgun.com/app/sending/domains/mg.manifold.markets/templates

Note that you'll have to update the mailgun templates with your changes on their site... https://app.mailgun.com/app/sending/domains/mg.manifold.markets/templates

Yep, got it taken care of.


[Bug] AvatarView - Valid source images are not being displayed frequently.

Description
AvatarView images are not loaded the first time they are created and may never load if Caching is disabled.
Steps to Reproduce

Run the Attached Project with the Switch "Enable caching" set to true in the first launch of the app on the device:

Click the "Load avatar images" button and see that avatar images won't load the first time.

Click again and you'll see that the new images will appear normally (because they're the same url and caching is enabled).

Click the "Clear avatar images" button and set the "Enable caching" Switch to false.

Click the "Load avatar images" button again and see that the images will not appear.

Expected Behavior
AvatarView Image should always be visible if source is valid
Actual Behavior
AvatarView source image is not showing
Basic Information

Version with issue:
Last known good version:
IDE:
Platform Target Frameworks:

iOS:
Android:
UWP:

Android Support Library Version:
Nuget Packages:
Affected Devices:

Reproduction imagery

   -
 -
Reproduction Link

AvatarViewIssue.zip

After investigating the AvatarView source code, I found out what is causing the issue.
You are trying to update the source of the image twice during its startup, which generates an error:
Android log:
Image Loading: Error getting stream for https://avatars.githubusercontent.com/u/1405704?v=4: System.OperationCanceledException: The operation was canceled.
  at System.Threading.CancellationToken.ThrowOperationCanceledException () [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corert/src/System.Private.CoreLib/shared/System/Threading/CancellationToken.cs:338
  at System.Threading.CancellationToken.ThrowIfCancellationRequested () [0x00008] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corert/src/System.Private.CoreLib/shared/System/Threading/CancellationToken.cs:333
  at Xamarin.Android.Net.AndroidClientHandler.ProcessRequest (System.Net.Http.HttpRequestMessage request, Java.Net.URL javaUrl, Java.Net.HttpURLConnection httpConnection, System.Threading.CancellationToken cancellationToken, Xamarin.Android.Net.AndroidClientHandler+RequestRedirectionState redirectState) [0x00000] in /Users/builder/azdo/_work/278/s/xamarin-android/src/Mono.Android/Xamarin.Android.Net/AndroidClientHandler.cs:331
  at Xamarin.Android.Net.AndroidClientHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00255] in /Users/builder/azdo/_work/278/s/xamarin-android/src/Mono.Android/Xamarin.Android.Net/AndroidClientHandler.cs:287
  at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:506
  at Xamarin.Forms.StreamWrapper.GetStreamAsync (System.Uri uri, System.Threading.CancellationToken cancellationToken, System.Net.Http.HttpClient client) [0x00038] in D:\a\1\s\Xamarin.Forms.Core\StreamWrapper.cs:99
  at Xamarin.Forms.Forms+AndroidPlatformServices.GetStreamAsync (System.Uri uri, System.Threading.CancellationToken cancellationToken) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.Android\Forms.cs:854
  at Xamarin.Forms.UriImageSource.GetStreamAsync (System.Uri uri, System.Threading.CancellationToken cancellationToken) [0x000cf] in D:\a\1\s\Xamarin.Forms.Core\UriImageSource.cs:136
ImageLoaderSourceHandler: Could not retrieve image or image data was invalid: Uri: https://avatars.githubusercontent.com/u/1405704?v=4

There are two places where this happens:

In the propagation of the 'propertyChanged' event from SourceProperty.
In the propagation of the event 'Image.BindingContextChanged'.

We can fix this issue by passing false as the value of the 'shouldUpdateSource' parameter or even by removing the following line:
Image.BindingContextChanged += (s, e) => OnValuePropertyChanged(true);
I can only think of one reason why this line is there:
On the 'AvatarViewPage' page we have:
                  <xct:AvatarView ColorTheme="{x:Static xct:ColorTheme.Jungle}" FontSize="Medium" Size="{Binding Value, Source={x:Reference Slider}}" Text="{Binding Initials}" >
                      <xct:AvatarView.Source:>
                          <UriImageSource Uri="{Binding Source}" />
                      </xct:AvatarView.Source>
                  </xct:AvatarView>

When we set the source the 'propertyChanged' event is called before the Uri is set in UriImageSource, then it does not work in this case.
The control is horrible to use in this state. Can someone take a look at this?

After investigating the AvatarView source code, I found out what is causing the issue.
You are trying to update the source of the image twice during its startup, which generates an error:
Android log:
Image Loading: Error getting stream for https://avatars.githubusercontent.com/u/1405704?v=4: System.OperationCanceledException: The operation was canceled.
  at System.Threading.CancellationToken.ThrowOperationCanceledException () [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corert/src/System.Private.CoreLib/shared/System/Threading/CancellationToken.cs:338
  at System.Threading.CancellationToken.ThrowIfCancellationRequested () [0x00008] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corert/src/System.Private.CoreLib/shared/System/Threading/CancellationToken.cs:333
  at Xamarin.Android.Net.AndroidClientHandler.ProcessRequest (System.Net.Http.HttpRequestMessage request, Java.Net.URL javaUrl, Java.Net.HttpURLConnection httpConnection, System.Threading.CancellationToken cancellationToken, Xamarin.Android.Net.AndroidClientHandler+RequestRedirectionState redirectState) [0x00000] in /Users/builder/azdo/_work/278/s/xamarin-android/src/Mono.Android/Xamarin.Android.Net/AndroidClientHandler.cs:331
  at Xamarin.Android.Net.AndroidClientHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00255] in /Users/builder/azdo/_work/278/s/xamarin-android/src/Mono.Android/Xamarin.Android.Net/AndroidClientHandler.cs:287
  at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:506
  at Xamarin.Forms.StreamWrapper.GetStreamAsync (System.Uri uri, System.Threading.CancellationToken cancellationToken, System.Net.Http.HttpClient client) [0x00038] in D:\a\1\s\Xamarin.Forms.Core\StreamWrapper.cs:99
  at Xamarin.Forms.Forms+AndroidPlatformServices.GetStreamAsync (System.Uri uri, System.Threading.CancellationToken cancellationToken) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.Android\Forms.cs:854
  at Xamarin.Forms.UriImageSource.GetStreamAsync (System.Uri uri, System.Threading.CancellationToken cancellationToken) [0x000cf] in D:\a\1\s\Xamarin.Forms.Core\UriImageSource.cs:136
ImageLoaderSourceHandler: Could not retrieve image or image data was invalid: Uri: https://avatars.githubusercontent.com/u/1405704?v=4

There are two places where this happens:

In the propagation of the 'propertyChanged' event from SourceProperty.
In the propagation of the event 'Image.BindingContextChanged'.

We can fix this issue by passing false as the value of the 'shouldUpdateSource' parameter or even by removing the following line:
Image.BindingContextChanged += (s, e) => OnValuePropertyChanged(true);
I can only think of one reason why this line is there:
On the 'AvatarViewPage' page we have:
                  <xct:AvatarView ColorTheme="{x:Static xct:ColorTheme.Jungle}" FontSize="Medium" Size="{Binding Value, Source={x:Reference Slider}}" Text="{Binding Initials}" >
                      <xct:AvatarView.Source:>
                          <UriImageSource Uri="{Binding Source}" />
                      </xct:AvatarView.Source>
                  </xct:AvatarView>

When we set the source the 'propertyChanged' event is called before the Uri is set in UriImageSource, then it does not work in this case.
The control is horrible to use in this state. Can someone take a look at this?

For some reason iOS UriImageSourceHandler doesn't load image if CachingEnabled = false
CC @jfversluis @jsuarezruiz


How to by pass 2 cvat_host in cvat_proxy in docker-compose.override.yml

@nmanovic Thank you for your great work. I have a question.
I want to pass 2 cvat_host like below:

For my LAN network -> so I set  CVAT_HOST: <IP_ADDRESS>
My 2nd host to the world -> I set 1 more CVAT_HOST: my-2ndhost-server.xxx.zzz

But problems when I set like this then only the last CVAT_HOST is working.
How do I make 2 CVAT_HOST work at the same time?
This is my docker-compose.override.yml
version: "2.3"
services:
cvat_proxy:
environment:
ALLOWED_HOSTS: "*"
CVAT_HOST: <IP_ADDRESS>
CVAT_HOST: my-2ndhost-server.xxx.zzz
Thank you so much.

Hi, try to use:
CVAT_HOST: my-2ndhost-server.xxx.zzz <IP_ADDRESS>

http://nginx.org/en/docs/http/server_names.html

Hi, try to use:
CVAT_HOST: my-2ndhost-server.xxx.zzz <IP_ADDRESS>

http://nginx.org/en/docs/http/server_names.html

Thank you so much! It works perfectly!

<IP_ADDRESS>

hi.. in which file did you place this env variable? in the docker-compose.yml
i have tried there.. in the server and ui (just in case) and it didnt work.
when i try to acces via localhost.. i have some errors poping up
Could not check authorization on the server
Error: Request failed with status code 404. "404 page not found\n".
any toughts?
thanks

https://openvinotoolkit.github.io/cvat/docs/faq/#how-to-specify-multiple-hostnames

thanks! i foundit 5 minutes ago!


Authentication

Do each user on gogs has to have a shell account on the server hosting it? I have a test instance, and new users can register fine. But when trying to push a repo, gogs wants them to enter the password for the user running gogs. Could someone provide some lead on how to properly setup authentication?

How are you pushing to gogs? If you're using SSH, and you haven't disabled remote password login, and your users don't have their public keys uploaded to Gogs, then the remote SSH server will ask for the user's password to try to authenticate the connection. You should disable remote SSH password login via your servers SSH config. If you do this, then the SSH connection will simply fail when the connecting user doesn't have any valid keys to present.
If you're using HTTPs, it should be asking for a Gog's username/password, not a shell username/password.
P.S: Github issues are the improper venue to ask support questions. Unfortunately, I don't know of the proper venue. You should only open an issue when you strongly feel that there might be something wrong with the software and can provide a paper-trail to help identify the issue.

If you're using SSH, and you haven't disabled remote password login, and your users don't have their public keys uploaded to Gogs, then the remote SSH server will ask for the user's password to try to authenticate the connection

Right, but do the users need to exist as local accounts? Right now, registering on Gogs does not creates a shell account for the user.

No all the gogs users use the same local account "gogs" to access the repo via SSH but with their own SSH key.
Each user need to set SSH key in their account settings page.

@MathB excellent! Got it working now, thank you much. I am way too used to have the client do that for me--in the case of GitHub, the client creates the key for you, if I remember correctly.
I will try to come up with a tip, to add it to the documentation.


github: fix failing vagrant CI job

Checklist

[x] commit message has one of the standard prefixes
[ ] faq.md updated if appropriate
[ ] other documentation is changed or added (if applicable)
[ ] playbook changes run through VPC or QPC (if you have access)
[ ] for inventory.yml changes, bastillion/nagios/jenkins updated accordingly

fixes: https://github.com/adoptium/infrastructure/issues/2425
This PR fixes the long-term failing Solaris Vagrant GH actions job. This was broken when we decided to switch to a custom vagrant image that was not available in the environment of the action. This PR switches that logic back to the public image for GH actions CI runs

It does indeed but I've not seen it before.

@gdams Vagrant build is still failing?


Add support for temporal and permanent redirects

fixes kubernetes/contrib#1884

This change is

Coverage decreased (-0.2%) to 44.481% when pulling ed6819468828cdedd97960cbc26cd1a0c006972f on aledbf:redirects into 1e6b212f2ed80000492756508b70553467e65430 on kubernetes:master.


Does it support async / sync calls ?

Hi,
I'm using ArangoDB and they have a HTTP Rest API to deal with. I'm also currently using Lua / openresty for my code. Lua has a nice feature called coroutine which allow you to write your code as simply as :
-- do anything here
http.simple({ url = url,  method = method, body = body, headers = headers })
-- do anything here

The code will not be a blocking code and the http response will be handled when the service respond.
Can we do that within VLang ?

Sorry for the late reply.
vlang does not currently support the async approach to concurrency.
The official documentation says this
V's model of concurrency is very similar to Go's. To run foo() concurrently, just call it with go foo(). Right now, it launches the function on a new system thread. Soon coroutines and a scheduler will be implemented.

so, the go command just implemented by system thread，not a real coroutine.

Thanks for the answer ... I read it too ... and you can't get value from it ! So I'll need next version I think


Order History Tab

Work in progress
Implement a order history tab on the Markets page.
Elements to be included:

Date/Time
Market
Type (Next-Price, Market, Cancelled, etc.)
Side
Fill Price
Position Size
Status
PnL
Fees paid

@platschi got some questions maybe we can chat with the team about this tomorrow..

do we have a figma for this one? is this it?
https://www.figma.com/file/YWU3PMsnqZaqr1gABgAFJK/UI-Refresh?node-id=652%3A2734
if so, this seems a little different then the attributes above.

what is meant by Fill Price? are we talking about entry and exit price there?

@Tburm if you can help with these
3) what attribute should I reference for from the graph? Type (Next-Price, Market, Cancelled, etc.)?


Quick crafting broken

"In InvTweaks 1.8.1, all my shortcuts were ok.
But updating to InvTweaks 1.0.0, my Minecraft now locks up when I try using a shortcut key for quick crafting.
Can anyone help? Is there a fix to this?"
"on some items I could not Ctrl-Click to craft one into my inventory... is that known?"

Cannot reproduce ATM. Since it has been reported several times I guess I'll investigate later.


🎮 Game Request
A javascript paint race game.
Return or spacebar to start.
Arrow keys to move.
Point down the features

Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @Vedansh-777 !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

/assign

Hey @Vedansh-777 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


stage0: improve pre-checks for unsupported platforms

Chasing #2475. In scenarios where we know things will fail (e.g. btrfs+overlayfs), we should bail gracefully, rather than potentially panicking etc.
Related: #2600

@jonboulle  on opensuse thumbleweed with linux 4.5.3 it does work

#2600 probably needs to be resolved first, or incorporated in here.

also relevant: https://github.com/coreos/rkt/issues/1922#issuecomment-218863433

Trying to summarize here, I think we are facing two scenarios
Unsupported environments
Based on previous reports, this includes:

overlay-on-zfs - #2600
overlay-on-aufs

Quirky kernels
This list is a bit more fuzzy to compile, but I've seen so far:

overlay-on-btrfs host freeze (affects >= 4.1 and <=4.5.2) - #2475
overlay-on-btrfs pod freeze (seen on 4.3.0) - possibly same as above
overlay-on-overlay misbehavior (affects 4.2  only) - #1537

(I'll keep adding to this list if I spot more)
The first scenario should be easier to handle, and once #2600 lands we should be fine.
The second scenario is a bit more nuanced, as it depends on kernel versions and bugfixes. Those kind of bugfixes are typically backported by distro, making this even messier.
I think a good approach here could be to:

compile a list of all known quirky environments
stat host FS and fuzzy-parse host kernel version
mark the stage0 run as quirky under specific scenarios and loudly complain, without preventing execution.

SGTM
@lucab assigned #2600 to you to shepherd in

#2600 got into 1.7.0, the second half will follow.


docs: fix typo in example

Simple typo fix, saw it as I was examining the docs.  I see in the contribution guidelines that I might be good to ignore the normal issue-based workflow for a tiny fix, so I figured I'd just submit.
Let me know and I can adjust if there's a problem.

Thanks!


passive healtheck bug

when I config kong passive healthcheck without active healthcheck, when the target's failure counter is greater than 0, and the next request is success, it can't clear the failure counter, and thus the failure counter will increase until the max limit.

PR #10 offers a more comprehensive solution to the problem, which solves this and other cases.


Copy-pasting Sendgrid 'add recipients' example results in the error 'sg.API is not a function'

Issue Summary
Bug using Graphcool's SSR and es6 code example
Steps to Reproduce

create a SSR on user creattion
Copy-paste your code model on relevant ssr
Receive request timeout from logs

Hello @THook,
Could you please provide the steps you took to install the SendGrid library?
Thanks!
With Best Regards,
Elmer

Hello @thinkingserious , I submitted a PR some days ago about this issue. See here : https://github.com/graphcool/templates/pull/88/commits/d58d6a7cc9461246a8f13fc9951e80335268e3cd

Hi @THook,
I have added this to our backlog for further investigation.
A quick look reveals that you might want to update to the latest version of our SDK, it has been greatly improved.
With Best Regards,
Elmer

Aaaaw, I just realised I didn't submit the issue on the appropriate repository. My first comment was related to a Graphcool template using Sendgrid's API... Sorry for the inconvenience


storage-mysql: DB error when restarting the zipkin app

What kind of issue is this?

[x] Bug report.

Sometimes after restarting the Zipkin Server, the application shutsdown with an error:
2017-04-19 13:59:52.365  INFO [zipkin-service,,,] 62 --- [           main] o.s.jdbc.datasource.init.ScriptUtils     : Executing SQL script from class path resource [mysql.sql]
2017-04-19 13:59:52.381  WARN [zipkin-service,,,] 62 --- [           main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'zipkin.server.ZipkinQueryApiV1': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'storage' defined in class path resource [zipkin/autoconfigure/storage/mysql/ZipkinMySQLStorageAutoConfiguration.class]: Unsatisfied dependency expressed through method 'storage' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Tomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSourceInitializer': Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #2 of class path resource [mysql.sql]: ALTER TABLE zipkin_spans ADD UNIQUE KEY(`trace_id_high`, `trace_id`, `id`) COMMENT 'ignore insert on duplicate'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Too many keys specified; max 64 keys allowed
2017-04-19 13:59:52.381  INFO [zipkin-service,,,] 62 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'executor'
2017-04-19 13:59:52.382  INFO [zipkin-service,,,] 62 --- [           main] o.apache.catalina.core.StandardService   : Stopping service Tomcat

The zipkin DB in MySQL indeed shows:
64 Indexes:

name_1,name_2, ..., name_10
start_ts_1, start_2,....

I think the problem is in the mysql.sql script:
ALTER TABLE zipkin_spans ADD UNIQUE KEY(`trace_id_high`, `trace_id`, `id`) COMMENT 'ignore insert on duplicate';
ALTER TABLE zipkin_spans ADD INDEX(`trace_id_high`, `trace_id`, `id`) COMMENT 'for joining with zipkin_annotations';
ALTER TABLE zipkin_spans ADD INDEX(`trace_id_high`, `trace_id`) COMMENT 'for getTracesByIds';
ALTER TABLE zipkin_spans ADD INDEX(`name`) COMMENT 'for getTraces and getSpanNames';
ALTER TABLE zipkin_spans ADD INDEX(`start_ts`) COMMENT 'for getTraces ordering and range';

correct me if i am wrong, but this created 4 new indexes on every app start.
please see:
https://dba.stackexchange.com/questions/24531/mysql-create-index-if-not-exists

hmm that sql file isn't supposed to be executed automatically. what is
causing that?

i see. mayby the application.yml is misconfigured:
spring:
datasource:
schema: classpath:/mysql.sql
I copy/pasted that from an example....

I copy/pasted that from an example....

yeah sorry. maybe someone made an example to do that, but we haven't
written it to do incremental updates. It is probably best to not rely on
that.

I am beginner in spring-boot and zipkin .I m trying to trace the http requests using zipkin , in microservices architecture.I am using zipkin-sql .I got the data-base with three tables zipkin_dependencies, zipkin_spans and zipkin_annotations ,but zipkin_dependencies is empty,it doesn"t contain data .Also when I click in the UI zipkin dependencies .I get them .any one can help me?
thanks a lot

@sanamaghraoui please use https://gitter.im/openzipkin/zipkin instead of posting open-ended questions into github issues


Make 'verify' target run first in travis

We should fail fast in CI if there's a verify error to decrease time waiting for results.  A lot of CI failures are due to this and this will help cut the wall of text effect - I think.

LGTM


Add resources to createtree-job

Description of the change
Adds resources block to the createtree-job.
Existing or Associated Issue(s)
N.A.
Additional Information
Our cluster has some kyverno policies in place that requires to define resources on any object.
Checklist

[x] Chart version bumped in Chart.yaml according to semver. Where applicable, update and bump the versions in any associated umbrella chart
[x] Variables are documented in the values.yaml and added to the README.md. THe helm-docs utility can be used to generate the necessary content. Use helm-docs --dry-run to preview the content
[x] JSON Schema generated
[x] List tests pass for Chart using the Chart Testing tool and the ct lint command

I'll try to fix https://github.com/sigstore/helm-charts/issues/289 today, but I think it should be fixed before we merge any more changes to the rekor helm chart :)

@priyawadhwa I rebased the PR on top of main and accordingly bumped the chart version.


Filter

I've added a filter parameter which you can use to filter down the result returned from the api. It has a jq like syntax, so for getting e.g. all spaces providing a cors header and are served via https you can set the filter query parameter to .validationResult.cors == true and .validationResult.isHttps == true
I've also added two parameters which you can use to add the validation result and the validated data.
Result will look like this:
 {
    "url": "https://vloer.ko-lab.space/spaceapi.json",
    "valid": true,
    "space": "Ko-Lab Mechelen",
    "lastSeen":<PHONE_NUMBER>,
    "data": {
      "api": "0.13",
      "contact": {
        "email"<EMAIL_ADDRESS>        "facebook": "https://www.facebook.com/HS.ko.lab/"
      },
      "issue_report_channels": [
        "email"
      ],
      "location": {
        "address": "Potterijstraat 5, 2800 Mechelen, Belgium",
        "lat": 4.48279,
        "lon": 51.022163
      },
      "logo": "https://ko-lab.space/images/logo.svg",
      "sensors": {
        "power_consumption": [
          {
            "location": "space",
            "unit": "W",
            "value": 23.213972557607164
          }
        ]
      },
      "space": "Ko-Lab Mechelen",
      "state": {
        "open": false
      },
      "url": "https://ko-lab.space/"
    },
    "validationResult": {
      "valid": true,
      "isHttps": true,
      "httpsForward": false,
      "reachable": true,
      "cors": true,
      "contentType": true,
      "certValid": true
    }
  },

ping @dbrgn @rnestler

ping @dbrgn @rnestler


Oht2.poi

Purpose

...

Does this introduce a breaking change?

[ ] Yes
[ ] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

What to Check
Verify that the following are valid

...

Other Information

wrongly created to merge to master. recreating


Added unique prop

Sometimes I want that dummy folders (2020/8/2/20/4...) not to be created but file to be unique.
This is new feature unique. If unique is set to true, dummy folders won't be created but file name will always be unique to avoid internal server errors that is caused by two files with same name.

Thanks for suggestion. But, for my application this is not interesting. For my application, is interesting a uuid independent of the file name, for consulting in various servers for existence in map reduce function. Sorry the bad english.

Okay, but creating 5+ dummy useless folders is not a good practice. For my own project it's a big stoppage. It would be better if name was unique and folders not to be created. In some somehow user wants that folders, he/she can just set organize to true and unique to false.


feat: adds metrics support.

This PR adds support for metrics. The main challenge for me was to come up with the right design, from named return values and defer to return wrapping methods, this is the best design I could come up.

Do you mind reviewing it again @anuraaga ?

Looks good except for one comment on build file


rustic-0.6.0 fails building on OpenBSD

rustic-0.6.0 fails to build on OpenBSD current using rust-1.73.0 with the error below. Issue seems to occur in rustic-core.
error[E0599]: no variant or associated item named `FromErrnoError` found for enum `LocalErrorKind` in the current scope
   --> /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/backend/local.rs:666:38
    |
666 |             .map_err(LocalErrorKind::FromErrnoError)?;
    |                                      ^^^^^^^^^^^^^^
    |                                      |
    |                                      variant or associated item not found in `LocalErrorKind`
    |                                      help: there is a variant with a similar name: `FromTryIntError`
    |
   ::: /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/error.rs:598:1
    |
598 | pub enum LocalErrorKind {
    | ----------------------- variant or associated item `FromErrnoError` not found for this enum

error[E0599]: no variant or associated item named `FromErrnoError` found for enum `LocalErrorKind` in the current scope
   --> /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/backend/local.rs:706:38
    |
706 |             .map_err(LocalErrorKind::FromErrnoError)?;
    |                                      ^^^^^^^^^^^^^^
    |                                      |
    |                                      variant or associated item not found in `LocalErrorKind`
    |                                      help: there is a variant with a similar name: `FromTryIntError`
    |
   ::: /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/error.rs:598:1
    |
598 | pub enum LocalErrorKind {
    | ----------------------- variant or associated item `FromErrnoError` not found for this enum

error[E0599]: no variant or associated item named `SettingFilePermissionsFailed` found for enum `LocalErrorKind` in the current scope
   --> /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/backend/local.rs:749:42
    |
749 |                 .map_err(LocalErrorKind::SettingFilePermissionsFailed)?;
    |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant or associated item not found in `LocalErrorKind`
    |
   ::: /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/error.rs:598:1
    |
598 | pub enum LocalErrorKind {
    | ----------------------- variant or associated item `SettingFilePermissionsFailed` not found for this enum

error[E0599]: no variant named `SymlinkingFailed` found for enum `LocalErrorKind`
   --> /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/backend/local.rs:918:78
    |
918 |                 symlink(linktarget, &filename).map_err(|err| LocalErrorKind::SymlinkingFailed {
    |                                                                              ^^^^^^^^^^^^^^^^ variant not found in `LocalErrorKind`
    |
   ::: /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/error.rs:598:1
    |
598 | pub enum LocalErrorKind {
    | ----------------------- variant `SymlinkingFailed` not found here

error[E0599]: no variant or associated item named `FromErrnoError` found for enum `LocalErrorKind` in the current scope
   --> /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/backend/local.rs:936:46
    |
936 |                     .map_err(LocalErrorKind::FromErrnoError)?;
    |                                              ^^^^^^^^^^^^^^
    |                                              |
    |                                              variant or associated item not found in `LocalErrorKind`
    |                                              help: there is a variant with a similar name: `FromTryIntError`
    |
   ::: /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/error.rs:598:1
    |
598 | pub enum LocalErrorKind {
    | ----------------------- variant or associated item `FromErrnoError` not found for this enum

error[E0599]: no variant or associated item named `FromErrnoError` found for enum `LocalErrorKind` in the current scope
   --> /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/backend/local.rs:950:46
    |
950 |                     .map_err(LocalErrorKind::FromErrnoError)?;
    |                                              ^^^^^^^^^^^^^^
    |                                              |
    |                                              variant or associated item not found in `LocalErrorKind`
    |                                              help: there is a variant with a similar name: `FromTryIntError`
    |
   ::: /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/error.rs:598:1
    |
598 | pub enum LocalErrorKind {
    | ----------------------- variant or associated item `FromErrnoError` not found for this enum

error[E0599]: no variant or associated item named `FromErrnoError` found for enum `LocalErrorKind` in the current scope
   --> /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/backend/local.rs:954:46
    |
954 |                     .map_err(LocalErrorKind::FromErrnoError)?;
    |                                              ^^^^^^^^^^^^^^
    |                                              |
    |                                              variant or associated item not found in `LocalErrorKind`
    |                                              help: there is a variant with a similar name: `FromTryIntError`
    |
   ::: /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/error.rs:598:1
    |
598 | pub enum LocalErrorKind {
    | ----------------------- variant or associated item `FromErrnoError` not found for this enum

error[E0599]: no variant or associated item named `FromErrnoError` found for enum `LocalErrorKind` in the current scope
   --> /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/backend/local.rs:958:46
    |
958 |                     .map_err(LocalErrorKind::FromErrnoError)?;
    |                                              ^^^^^^^^^^^^^^
    |                                              |
    |                                              variant or associated item not found in `LocalErrorKind`
    |                                              help: there is a variant with a similar name: `FromTryIntError`
    |
   ::: /tmp/pobj/rustic-0.6.0/rustic-0.6.0/modcargo-crates/rustic_core-0.1.1/src/error.rs:598:1
    |
598 | pub enum LocalErrorKind {
    | ----------------------- variant or associated item `FromErrnoError` not found for this enum

For more information about this error, try `rustc --explain E0599`.
error: could not compile `rustic_core` (lib) due to 8 previous errors

Thanks a lot for reporting and sorry for the inconvenience. Damn - this is the problem of not being able to cross-compile to openbsd on github actions :-(

Issue indeed occurs in rustic_core, and needs to be resolved there. A PR has been opened (https://github.com/rustic-rs/rustic_core/pull/28). I'm closing this issue here.


fix: upgrade ingress-nginx

This adds compatibility with Kubernetes 1.22, where v1beta1 APIs have been removed.

/ok-to-test

/cc @rawlingsj

/lgtm


command 'vscode-blade-formatter.format' not found

Hello,
I just installed the plugin from VSCode Extensions library but it doesn't work.
If I try to run it by command panel (Blade: Format Document) I get the following error message.
Command 'Blade: Format Document' resulted in an error (command 'vscode-blade-formatter.format' not found)

Can you please help?

Seems the command registered with this extension was not found.
It may be that the command fails to register at startup, but I don't know the case where it fails to register a command.
I'll look into it.

Is this problem still not fixed yet? 😢😥


SelectableText doesn't support passing in minLines

Internally b/144379369
SelectableText doesn't support passing in minLines.
Replacing a Text widget with a SelectableText widget causes it to not limit the number of lines to 1 if the text only fits in a single line unlike the Text widget.  SelectableText uses the EditableText widget but doesn't expose the minLines so there is no way to pass minLines as 1.

Hello! Could I try working on an implementation for this issue?

@eyjiang hey sorry I already have a PR ready.

https://github.com/flutter/flutter/pull/50750 fixes this, so I'm closing the issue.


Geofencing API

http://www.w3.org/TR/geofencing/

+1

+1

+1

+1

+1

+1

+1

-1

Beware. This specification is no longer in active maintenance and the Geolocation Working Group does not intend to maintain it further.

why would they abandon it, isn't goal of web to do everything a mobile can as well. geofencing is one feature. Do they have an alternative?


Boxes fix

Made it work using flexbox, however grid layout seems to work even better but I made this PR to get at least this version in while I work on the grid.

IBM Cloud toolchain: Delivery Pipeline deployed LRP-web-app to dev, including commit e51a0efaeb8b7384bd62b5655cb4ee3627d595b9

IBM Cloud toolchain: Delivery Pipeline deployed LRP-web-app to test, including commit e51a0efaeb8b7384bd62b5655cb4ee3627d595b9


Kubelet token distribution on rackspace

Make #2387 work for rackspace.
Suggested steps:

generate tokens for kubelets.  Do this in a place where the same runtime-generated value can go to both the kubelet and the minions.  Maybe somewhere in cluster/rackspace/util.sh.   You can copy the token geneneration code from cluster/gce/templates/create-dynamic-salt-files.sh, and in particular the lines added by #2387
add flags and copy files to master which were added in #2387 in cluster/saltbase/salt/kube-apiserver/default and cluster/saltbase/salt/kube-apiserver/init.sls
add flags tand copy files to kubelet which were added in #2387 in cluster/saltbase/salt/kubelet/default and cluster/saltbase/salt/kubelet/init.sls
change if provider != "gce" to if provider != "gce" and provider != "rackspace" {` in cmd/e2e/e2e.go
verify by running CLOUD_PROVIDER=rackspace hack/e2e-test.sh

At the same time as doing this work, also change the kube-proxy to set the flag:
--master=http://$APISERVER:7080.

This should be fixed eventually, but for now, I am accepting that some cloud providers may reasonably rely on a looser security model. Closing this specific issue and tracking the overall issue of differences in security models in #5247


Currently linux amd64 only

Currently the wrapped dependency we created for the raylib binary release supports only linux amd64.
You see at https://github.com/raysan5/raylib/releases that raylib releases binaries for other systems/arch combinations:

win32 ming-w64
win64 ming-w64
macos
etc.

We should try to support some of these.
This issue doesn't address cross-compilation. That would be interesting, but we'll save that for a separate issue.

Probably we can make use of host_machine.system() and host_machine.cpu() to figure out which binary release of raylib should be downloaded. We can probably put that logic in the raylib subproject's meson.build file that we have in the overlay files. https://github.com/robin-a-meade/raylib-meson-example/blob/5bfe95999ace1561b2ab3f4d43a67258fb6b65eb/subprojects/packagefiles/raylib-4.0.0_linux_amd64/meson.build
I think we can avoid having dedicated wrapped dependencies for the different system/arch combinations because the overlay files we have are system/arch independent. They are just 4 extra header files (header-only libraries).
Related links:

https://mesonbuild.com/Reference-manual_builtin_host_machine.html

Documentation of host_machine.system(), host_machine.cpu() and host_machine.cpu_family()`

https://github.com/YamanQD/AntWare/blob/72a2dacfff5c601ef5ce86cd8f3c04734d9dc2fb/meson.build

An example of a meson.build file that branches based on host_machine.system() and target_machine.cpu_family().

This issue doesn't address cross-compilation. That would be interesting, but I'll save that for a separate issue.

Let's initally try for linux, windows, and darwin (MacOS) support. Here's's how the values of host_machine.system() and host_machine.cpu_family() can map to file names for the raylib 4.0.0 release:

system
cpu_family
download

linux
x86
raylib-4.0.0_linux_i386.tar.gz

linux
x86_64
raylib-4.0.0_linux_amd64.tar.gz

windows
x86
raylib-4.0.0_win32_mingw-w64.zip

windows
x86_64
raylib-4.0.0_win64_mingw-w64.zip

darwin
*
raylib-4.0.0_macos.tar.gz

I was wrong about not needing dedicated wrapped dependencies for the different system/arch combinations.
We'll need to take the approach shown in aformentioned AntWare example. Namely:

Create dedicated wrappers for each system/arch combination.
Select one of them in the main meson.build file using if/elif logic based on host_machine.cpu_family() and host_machine.cpu().

Unfortunately, this means all binary releases will be downloaded, regardless of which OS/arch combination I am building. For example, the macOS and Windows binary raylib releases will be downloaded on my linux system for no reason. Well, I guess that puts me in a good position to add cross-compilation later.  So, maybe not so bad.

In fda8530 I got cross compilation of x86 linux target on a x86_64 build machine.
Next I'll try to target Windows.


Rectangle support

In the example in issue #56 I had used rectangles in the original matplotlib. I don't think they are part of plotpy yet.
In the issue's answer there is some kind of grid, but that would not satisfy my use case, as I need to position the rectangles based on the input times (y axis in the example) and stages they are associated with (x axis, string based segmented values).
Can these also be added?

Hi, we may be able to add this. Can you share the Python code so we can see how to do this?

Sure. The entire repository is here:
https://github.com/lobneroO/PersonalRunningOrderTool
The relevant part is in the utils.py file:
band_rectangle = patches.Rectangle([stage_names.index(stage) + x_offset, start], rectangle_width,
                                               end - start, color=col, linewidth=0.5)
axis_bl.add_patch(band_rectangle)

stage_names is an array of strings, stage is a specific string contained therein. start is a start time (i.e. a datetime type), and end is the end time accordingly. rectangle_width is a floating point value (I think these are meant to be in [0, 1], where 1 marks the entire width of a segmented x value). x_offset is also a floating point value, meant to give a slight offset between rectangles (you can see in the screenshot in #56  that the rectangles have some room to the left and right).
axis_bl is axes system of the bottom and the left axis, which are part of a (sub)plot.

This is now available in version 1.5.0. Luckily, I already had the Canvas implemented with much of the Matplotlib Patches code.
In Canvas, we already have two text configurations: the normal text and the alternative text. Both can be independently configured. But we could also use the Text struct directly.
The syntax is a little verbose (as intended in Plotpy because I could never remember Matplotlib syntax...), but you can get it done with something like the code below (see figure also).
If necessary, you may intercalate set_... commands between draw_... commands.
// canvas
let mut canvas = Canvas::new();

// configurations
canvas
    .set_face_color("#de3163")
    .set_line_style("None")
    .set_text_color("white")
    .set_alt_text_rotation(0.0)
    .set_alt_text_color("white")
    .set_alt_text_fontsize(14.0)
    .set_text_fontsize(20.0);

// draw rectangles and text
canvas
    .draw_rectangle(0.5, 0.5, 2.0, 1.0)
    .draw_text(1.5, 1.0, "HELLO")
    .set_alt_text_align_vertical("top")
    .set_alt_text_align_horizontal("left")
    .draw_alt_text(0.5, 1.5, "123")
    .set_alt_text_align_vertical("bottom")
    .set_alt_text_align_horizontal("right")
    .draw_alt_text(2.5, 0.5, "456");

// add canvas to plot
let mut plot = Plot::new();
plot.add(&canvas);

The output:

Boy, this was fast. Thank you so much!


construct class explicitly / from dictionary

it's sometimes handy to be able to construct the arguments class in a regular way, like if you are orchestrating the thing that requires the Arguments class.

Thanks for the suggestion! Could you describe your use case in more detail? Personally I don't really see the benefits of using argtyped if your arguments are dynamically created, as you wouldn't have type hints or autocompletion anyway. I'd suggest directly interfacing with argparse to dynamically add the arguments, just like as argtyped does under-the-hood.