Support for "dynamic" authorization scopes

According to
https://swagger.io/docs/specification/authentication/#scopes,

In case of OAuth 2, the scopes used in security must be previously defined in securitySchemes.
In case of OpenID Connect Discovery, possible scopes are listed in the discovery endpoint specified by openIdConnectUrl.

This is limiting though, as application may want to provide "dynamic" scopes which depend on the endpoint. Consider e.g.
components:
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          scopes:
            pets:read: Grants pet read access
            pets:write: Grants pet write access
paths:
  /pets/{id}/color:
    get:
      summary: Get pet color
      security:
        - OAuth2: [pets:{id}:read]

In this case, the fine-grained pets:{id}:read scopes are used for accessing particular pet's color. For example, /pets/felix/color is accessible with scope pets:felix:read. However, it's impossible to pre-define all pet scopes in securitySchemes, as they depend on path and application state.
See also https://docs.docker.com/registry/spec/auth/scope/#resource-scope-grammar for example of really complex dynamic scope names.
To support interactive "Try it out" in Swagger-UI, the following approach might prove helpful:
components:
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        authorizationCode:
          scopes:
            pets:read: Grants pet read access
            pets:write: Grants pet write access
paths:
  /pets/{id}/color:
    get:
      summary: Get pet color
      security:
        - OAuth2: [pets:read OR pets:{id}:read]

This way, if coarse-grained pets:read scope is selected in Swagger-UI, the lock icon status corresponding to /pets/{id}/color could be correctly updated. In the actual API client, any of coarse-grained pets:read and fine-grained pets:{id}:read (e.g. pets:felix:read) could be requested and used.
How to properly implement OR operator in YAML is a technical exercise ;-)

@aparamon Thanks for the link to the concrete example. Very useful.

Here is an interesting blog post on why "dynamic scopes" is a misuse of of the scope claims.
On The Nature of OAuth2’s Scopes by Vittorio Bertocci, principal architect at Auth0

Here is an interesting blog post on why "dynamic scopes" is a misuse of of the scope claims. On The Nature of OAuth2’s Scopes by Vittorio Bertocci, principal architect at Auth0

I read this article as well. I believe this does not say against using "dynamic scopes". Because I can have a token that says "Access to mailbox A" but the API still needs to verify me if I can actually access this. Dynamic or not scopes are limiting factors, they should not be used to give more permissions to users but rather limit. So I don't see the argument why having a dynamic field in scopes would not work. You can have any mailbox id in the scope, API will always validate it so it does not matter. But the fact that you can have specific inbox ids make everything sweeter IMO because now I can delegate only inbox A to a specific application instead of giving my every inbox.

Yes, the problem with that post is that isn't clear about the difference between API security and content security.
The purpose of auth scopes is to restrict API access to a subset of endpoints.
Whether a resource can be accessed depends on more things than API security. A token with a claim for inbox:read may let you access /inbox/{inbox-id}, but only if it's your inbox.

any updates on that ?

@levilugato we're current working on scoping OAS 3.2 (which will be very near-term and limited in scope) and 3.3 (which will be longer and a bit more ambitious, although still a true minor release, with 3.1, 3.2, and 3.3. all strictly compatible).  You can see that discussion in #4210 , and notice that this is in the set of security requests that I need a bit of help scoping.
Please note that whether something goes into 3.2 or 3.3 has nothing to do with how valuable it would be or how much demand exists for it, and everything to do with how long it will take to figure out.  We will begin working on 3.3 immediately after shipping 3.2, and the point of 3.2 is to ship quickly.


App crash when using search function

Hey, since version 2.6 the app crashes when using the search function and then revealing a code in the result list.
When revealing the same code in the full list, the app does not crash.
Restarting the app and deleting cache did not help.

Thanks for reporting the bug. I am able to reproduce and will fix in the next release

Fixed in https://github.com/helloworld1/FreeOTPPlus/commit/7b48de539c526744c44efc3b7940e7612fc07be2

I added integration test to prevent this from happening
https://github.com/helloworld1/FreeOTPPlus/commit/e0fe9850ba028af484723e66756f550b26149568

I just stumbled across the same issue. Do you plan to publish a release to fix this?

Will release soon after all the translation updates are in


Update: Added enemy health status

Quick Description
Work Done:

Added enemy health variable, added to  func hit() to subtract from enemy health and print when dead.
Checklist

[X] I have named my PR using the feat/fix/update naming scheme
[X] I have linked my work to the ClickUp Task Board via one of these methods
[X] My code follows the general guidelines set up, and isn't ugly/all over the place
[X] I have requested the review of at least one other person and moved my task to the "Needs Review" section of the task board

feel free to delete this branch when ready


Revert "Issue #622: Properly handle Close() on NSMD (#631)"

This reverts commit c4d7adc61900f504b2c8dd84cd6878b31378b965.

#631 changed the basic API for Converters to return a list of DataRequests rather than a single one.  I have no idea if this is a good or bad idea, but I do know it breaks downstream consumers and results in failures.  So for the moment reverting #631 while we sort out what we want the proper behavior to be and making sure whatever we do is handled properly in downstream consumers.


Use Python To Know Famous Personality

Aim
Use Python To Know Famous Personality
Details

The script is for knowing all the details of all things  famous personality like Jeff Bezos, Elon Musk, Sundar Pichai and many more it was really amazing one

I don't think this Script would be of any use..

I don't think this Script would be of any use..


Make fieldShadow part of default colors

Expected Behavior
It is.
Actual Behavior
It has to be defined separately.
Steps to Reproduce
Check playground colors and check default colors

We'll be defining all blocks through the extension system soon, which will obviate this.


#70 Use only 1 JSON library in CLI

Closes #70
TODO:

[x] Return ZallyApiResponse directly from client.validate()
[x] Replace minimaljson with org.json
[x] Add directory structure
[x] Bump JSON dependencies
[x] Add more tests to newly added classes

@fmueller sorry for a big mess created, but could you please review?

Oups, custom timeouts killed the build. Need to investigate a bit more.

👍
As discussed, client base timeout and optional token will be part of separate tickets.

👍

Tickets are created #188 and #189


Difference between fields in the Add Custom Type

@cchristelis @dimasciput Can you explain the difference between the fields for the Add Custom Type modal?
When filling in the following:

Name: Parking Lots
Feature: amenity=parking
Tags: amenity=parking

This does not work. The modal closes but when you submit to save the campaign, the app errors and does not proceed.
Also, do we need to have at least one tag required for simple tags like this?

hi @smit1678
i will check it why the app errors with this fields
here is the difference

Name is the name of type
Feature is the feature that will be check, what i mean is if amenity=parking, it will get data that just amenity=parking
tags is used for check completeness, so, if we fill amenity=parking, it will tell to check if it has amenity and amenity value is parking

and also, why need at least one tag? because custom tags doesn't have predefined, so if we don't give tags to be check, it will just show all feature as complete, because it doesn't check anything.
Maybe my suggestions is:

when we fill feature, it will automatically add one tags same as feature

Maybe my suggestions is: when we fill feature, it will automatically add one tags same as feature

👍  yeah that makes sense to me.


Sample for dynamic side content is broken

OpenUI5 version: 1.110.1 and 1.109.0
Browser/version (+device/version): Chromium
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible):
https://sdk.openui5.org/1.109.0/#/entity/sap.ui.webc.fiori.DynamicSideContent/sample/sap.ui.webc.fiori.sample.DynamicSideContent
Steps to reproduce the problem:

Open the sample and js file is failing

Hi @uxkjaer,
Thank you for sharing this finding. I've created an internal incident<PHONE_NUMBER>. The status of the issue will be updated here in GitHub.


[Feature Request] Add new restriction that does not allow any changes if the client is in a certain group

add a new restriction that does not allow the hook to make any changes if the client is in a certain group
---configuration example---
$groups['1'] = '10';
$groups['2'] = '25';
$groups['3'] = '100';
$activeCustomers = true;
$placeholderGroup = '5';
$nochangeGroup = '7';
Result: if the client is in the group id 7, then the hook does not make any kind of change

What action hook are you referring to?

AssignClientToGroupBasedOnRegisteredDomains.php


could you provide an official benchmark script?

could you provide an official benchmark script, so that others can compare results on this dataset fairly?

Even though I think fair evaluation can be done based on the provided annotation (jsons), I will prepare the official benchmark script.

Hi, really appreciate this work.
Are there any updates on the benchmark script?


add "Show all Symbol Definitions Within a Document" feature

I implemented DocumentSymbolProvider to support Show all Symbol Definitions Within a Document feature.
This also enables Outline view. I have been looking for this feature.
I hope you like it, too and merge this into your great extension.
src/documentSymbolProvider.ts implements DocumentSymbolProvider.  Other changes and added files are boilerplate for a typescript extension made by the Extension Generator (https://code.visualstudio.com/api/get-started/your-first-extension).
This is my first VS-code extension, transcript programming, git, and GitHub experience.  Let me know if I am missing anything.

Looks like this will close #12 as well 🙏

Looks like this will close #12 as well 🙏

No.  My function searches only Function names and Sub names defined in the file.
To implement #12 we need the Programmatic Language Features.

To implement #12 we need the Programmatic Language Features.

Cool, cool!
Ok, so, I'm happy to merge and publish, I guess last question I'd like to know is did you package this up and run it locally @hirooih?

To run just push F5 key.  A new VS code window will show up.  Then open a VBA source code.
I have not tried packaging.  I took a look https://code.visualstudio.com/api/working-with-extensions/publishing-extension, it seems similar with without typescript code, but not sure.


Build error with build id #8539595

Details:

Project URL: https://readthedocs.org/projects/ROCm Documentation/
Build URL(if applicable): https://readthedocs.org/projects/rocm-documentation/builds/8539595/
Read the Docs username(if applicable): AnonymousUser

Expected Result
A description of what you wanted to happen
Actual Result
A description of what actually happened

Your latest builds are passing now, are you still having this problem?


Added environment support for husky hooks command.

Problem
When using an containerized environment, without PHP installed locally, husky does not seem to work.
Solution
Adding support for different environments so that the husky command run within the container, both install and within the pre-commit hook.
Reason
Making it easier to implement into a containerized repository, so that developers don't need to change the content of the pre-commit file each time the project is initiated.

Thanks @ThaKladd 🙌


In reference to #156 . Added a TODO view

@levlaz What do you think?

I was thinking it should look more like this:

@levlaz Alright! Will work on it. Do you want the user to be able to check the TODO item off from within this view or not?

Yes for sure -- sorry just made a quick mock up.
It would also be cool to be able to sort by Notebook and Dates  -- but this can come later. :)

Cool! One question though. How do i link to the note? BASE_URL/#note_id doesn't seem to work.

It should just be something like this:

{{ note.title | truncate(100) }}

Oh cool. Didn't know you could write it that way :)

Yeah url_for is magical :)

Im gonna cut a release when this is done. :D Let me know if you need any help.

This is how it looks now :)

Oh wow this is beautiful. :)
Thanks so much!
Are you more or less done? Lets go ahead and ship this.
Best,
Lev

On Jan 11, 2016, at 11:37 AM, Aneesh Makala<EMAIL_ADDRESS>wrote:
https://cloud.githubusercontent.com/assets/6829754/12244258/c8a871aa-b8c8-11e5-8cc1-34d9ca833679.png
This is how it looks now :)
—
Reply to this email directly or view it on GitHub https://github.com/levlaz/braindump/pull/160#issuecomment-170665978.

@levlaz Yup! Done now :)

Can you do me a favor and paste the output of python manage.py test here?
CI is great -- but since I am doing a deployment I cannot enable permissive builds which is required in order to store all of the ENVARS. Otherwise anyone will have access to all of the keys :(

Ah, I see! I will paste in a minute. I am getting a lot of errors pertaining to
OperationalError: (psycopg2.OperationalError) fe_sendauth: no password supplied

@levlaz There are conflicts because of the testing config. I tried to use the development config, but that's introducing different kind of errors!
This is the output after putting in the correct credentials.
(dev-brain)makala@aneesh:~/test/braindump$ python manage.py test
/home/makala/test/dev-brain/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:800: UserWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True to suppress this warning.
  warnings.warn('SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.  Set it to True to suppress this warning.')

Running tests...
----------------------------------------------------------------------
..............E...E
======================================================================
ERROR [0.035s]: test_password_reset (test_user_model.UserModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/makala/test/braindump/tests/test_user_model.py", line 35, in test_password_reset
    u.reset_password(reset_token, 'new_password')
  File "/home/makala/test/braindump/app/models.py", line 116, in reset_password
    db.session.commit()
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 150, in do
    return getattr(self.registry(), name)(*args, **kwargs)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 801, in commit
    self.transaction.commit()
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 392, in commit
    self._prepare_impl()
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 372, in _prepare_impl
    self.session.flush()
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2015, in flush
    self._flush(objects)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2133, in _flush
    transaction.rollback(_capture_exception=True)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__
    compat.reraise(exc_type, exc_value, exc_tb)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2097, in _flush
    flush_context.execute()
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 373, in execute
    rec.execute(self)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 532, in execute
    uow
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 174, in save_obj
    mapper, table, insert)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 785, in _emit_insert_statements
    execute(statement, params)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
    return meth(self, multiparams, params)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
    compiled_sql, distilled_params
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
    context)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
    exc_info
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 199, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
    context)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
    cursor.execute(statement, parameters)
ProgrammingError: (psycopg2.ProgrammingError) relation "users" does not exist
LINE 1: INSERT INTO users (email, username, password_hash, confirmed...
                    ^
 [SQL: 'INSERT INTO users (email, username, password_hash, confirmed, avatar_hash, created_date, updated_date) VALUES (%(email)s, %(username)s, %(password_hash)s, %(confirmed)s, %(avatar_hash)s, %(created_date)s, %(updated_date)s) RETURNING users.id'] [parameters: {'updated_date': datetime.datetime(2016, 1, 11, 20, 29, 4, 740947), 'username': None, 'confirmed': False, 'created_date': datetime.datetime(2016, 1, 11, 20, 29, 4, 740937), 'avatar_hash': None, 'email': None, 'password_hash': 'pbkdf2:sha512:1000$PA2ZiP0N$bc52111b11fbb0e3d3919116b2b076613c4d6b673d83a6340368992f13e9a0f46064824e5fbd119ff111b4bc0e492db2f13ed3a75d8a798840c1fd5da16c651b'}]

======================================================================
ERROR [0.016s]: test_user_confirmation (test_user_model.UserModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/makala/test/braindump/tests/test_user_model.py", line 28, in test_user_confirmation
    u.confirm(confirmation_token)
  File "/home/makala/test/braindump/app/models.py", line 153, in confirm
    db.session.commit()
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 150, in do
    return getattr(self.registry(), name)(*args, **kwargs)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 801, in commit
    self.transaction.commit()
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 390, in commit
    self._assert_active(prepared_ok=True)
  File "/home/makala/test/dev-brain/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 214, in _assert_active
    % self._rollback_exception
InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (psycopg2.ProgrammingError) relation "users" does not exist
LINE 1: INSERT INTO users (email, username, password_hash, confirmed...
                    ^
 [SQL: 'INSERT INTO users (email, username, password_hash, confirmed, avatar_hash, created_date, updated_date) VALUES (%(email)s, %(username)s, %(password_hash)s, %(confirmed)s, %(avatar_hash)s, %(created_date)s, %(updated_date)s) RETURNING users.id'] [parameters: {'updated_date': datetime.datetime(2016, 1, 11, 20, 29, 4, 740947), 'username': None, 'confirmed': False, 'created_date': datetime.datetime(2016, 1, 11, 20, 29, 4, 740937), 'avatar_hash': None, 'email': None, 'password_hash': 'pbkdf2:sha512:1000$PA2ZiP0N$bc52111b11fbb0e3d3919116b2b076613c4d6b673d83a6340368992f13e9a0f46064824e5fbd119ff111b4bc0e492db2f13ed3a75d8a798840c1fd5da16c651b'}]

----------------------------------------------------------------------
Ran 19 tests in 15.386s

FAILED (errors=2)

Generating XML reports...

I'm not really sure what to do!

In the testing config a new DB should be created each time. I will look into this too -- in the meantime those tests that failed are fine for this specific purpose. Thanks again!


Best way to upgrade from 1.0.0-alpha to lastest

Hello,
We have been tasked with migrating this plugin's working version (1.0.0-alpha) to the newest version. I guess the best course of action is to perform a step-by-step migration. For example, from 1.0.0-alpha to 2.0.2 and then to 3.x.
We can see that in version 2.0.2, you created a paste command called "update_doi." Is this command intended for migrating DOIs from Schema 3.1 to 4.2?

That command generates an XML dict based on the new schema, then checks it against the XML on DataCite and updates it if it's different, so yes, it can be used to migrate DOIs between schemas.
At v2.0.2 it will update to schema 4.2, but it doesn't matter what the starting schema is (unless it breaks the xmltodict function somehow).

Great! Thank you


Update ReadMe with instructions on getting the SDK via CocoaPods

Are there any plans on supporting CocoaPods?

I am building this code and will revert.
Referencing https://developer.apple.com/machine-learning/

I can make this work with cocoa pods.

The documentation for Watson Swift SDK only mention Carthage.

This is an issue for the Watson Swift SDK. @igor9silva can you create an issue in that repo?
@tbltechnerds if you can help with CocoaPods support it would be great if you can submit a Pull Request!

Blocked by CocoaPods support in the Watson Swift SDK.

Closing this. Support was added in v0.33.0.
https://github.com/watson-developer-cloud/swift-sdk/releases/tag/v0.33.0


Subdomain routing fails with a global domain and same URI's

Laravel Version: 5.3.*
PHP Version: 7.0
Database Driver & Version: mysql 5.7.13

Description:
When the same URI exists on both a 'global' domain and a subdomain, the 'global' one is used.
For example:
When I create an application with web routes: http://www.example.com and http://subdomain.example.com and only explicitly define the subdomain in the routes I get these routes: (php artisan route:list)
+-----------------------+-------+------------------------------------------------+
| Domain                | URI   | Action                                         |
+-----------------------+-------+------------------------------------------------+
|                       | /home | App\Http\Controllers\HomeController@index      |
| subdomain.example.com | /home | App\Http\Controllers\SubdomainController@index |
+-----------------------+-------+------------------------------------------------+

Then if I visit subdomain.example.com I will get the result of the HomeController index method and NOT the SubdomainController index method.
When I register the 'global' domain also, I do get the result of the SubdomainController index method:
+-----------------------+-------+------------------------------------------------+
| Domain                | URI   | Action                                         |
+-----------------------+-------+------------------------------------------------+
| www.example.com       | /home | App\Http\Controllers\HomeController@index      |
| subdomain.example.com | /home | App\Http\Controllers\SubdomainController@index |
+-----------------------+-------+------------------------------------------------+

So the issue here is that when I visit the subdomain route, it should have a higher priority than the 'global' (empty) domain.

Hey @hansvn,
If you wish to give it higher priority without explicitly defining the www domain, all you need to do is place the sub domain above the "global" routes. Personally I find it more organized to explicitly define all routes, makes a lot more sense when digging through a potentially big file like that.
Ex.
Route::group([
    'domain' => 'www.'.env('SESSION_DOMAIN'),
], function () {
    Route::get('/', 'HomeController@index');
});

Route::group([
    'domain' => 'subdomain.'.env('SESSION_DOMAIN'),
], function () {
    Route::get('/', 'SubdomainController@index');
});

@hansvn  yes the order of routes definition makes a difference.
I like how @craigpaul solves the problem, it makes your routes file looks very organised as well.

@craigpaul What if you have multipe domains serving the same application?
Example:
www.example.com and www.example2.com serve one set of the same routes and sudomain.example.com serves an other

@craigpaul What if you have multipe domains serving the same application?
Example:
www.example.com and www.example2.com serve one set of the same routes and sudomain.example.com serves an other
+-------------------------------------+-------+------------------------------------------------+
| Domain                              | URI   | Action                                         |
+-------------------------------------+-------+------------------------------------------------+
| www.example.com || www.example2.com | /home | App\Http\Controllers\HomeController@index      |
| subdomain.example.com               | /home | App\Http\Controllers\SubdomainController@index |
+-------------------------------------+-------+------------------------------------------------+

@hansvn So one thing you could do is use the dynamic domain routing. It is essentially the same as  route parameters.
Route::group([
    'domain' => '{domain}.com',
], function () {
    Route::get('/', 'HomeController@index');
});

So that would allow you to group all those routes together. In your controller you would have the following passed in on every route now.
public function index(string $domain)
{
    dd($domain); // Domain would be equal to exactly what your domain is above in {domain}.
}

Using the above domain grouping, you would probably want to utilize pattern matching to restrict it to your exact domains though. You have to provide the name of your pattern, then any regex you would like to match against.
Route::pattern('domain', '[a-z0-9]+');

@craigpaul
I tried your suggestion for the dynamic domains and though it works for the subdomain routes, on the non-subdomain routes I get a 404 on every page.
1/1 NotFoundHttpException in compiled.php line 8882:

in compiled.php line 8882
at RouteCollection->match(object(Request)) in compiled.php line 8206
at Router->findRoute(object(Request)) in compiled.php line 8134
at Router->dispatchToRoute(object(Request)) in compiled.php line 8130
at Router->dispatch(object(Request)) in compiled.php line 2472
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 3213
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in compiled.php line 9870
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 9855
at Pipeline->then(object(Closure)) in compiled.php line 2416
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2400
at Kernel->handle(object(Request)) in index.php line 53

@hansvn could you post your routes file and your server block / virtual host configs for the domains your trying to point to this code base.

@craigpaul
The subdomain serves as an api in this specific config:
The route service provider:
//RouteServiceProvider.php
protected function mapWebRoutes()
{
    Route::group([
        'middleware' => 'web',
        'namespace' => $this->namespace,
        'domain' => '{domain}.com'
    ], function ($router) {
        require base_path('routes/web.php');
    });
}

protected function mapApiRoutes()
{
    Route::group([
        'middleware' => 'api',
        'namespace' => 'API_NAMESPACE',
        'domain' => 'subdomain.example.com',
        'as' => 'api.'
    ], function ($router) {
        require base_path('routes/api.php');
    });
}

There routes:
//web.php
Route::auth();

Route::group(['middleware' => ['auth', 'auth.admin']], function() {
    Route::resource('user', 'UserController');
    Route::get('dashboard', ['uses' => 'DashboardController@showDashboard']);

    ...

});

//api.php
Route::resource('user', 'User\UserController', ['only' => ['index', 'store']]);
...

and the nginx server config:
server {
    server_name example.com example2.com;
    root /home/forge/example.com/public;
    ...

}

server {
    server_name subdomain.example.com;
    root /home/forge/example.com/public;
    ...
}

@hansvn can you share how you solved it?

@pplanel I didn't solve it using laravel, there is no fix that I know of yet.
I solved it using nginx redirects first, so the example2.com domain redirects back to example.com.
Not what wI intended to achieve, but it provides a fallback...


simplecomm not working on cheyenne/casper

On Cheyenne:
Currently Loaded Modules:

python/3.7.5   3) ncarenv/1.3           5) mpt/2.22       7) nco/4.7.9
gnu/9.1.0      4) ncarcompilers/0.5.0   6) netcdf/4.7.3   8) ncl/6.6.2

I am running a test of simplecomm.
and get the following result:
Exception AttributeError: "'SimpleCommMPI' object has no attribute '_comm'" in <bound method SimpleCommMPI.del of <asaptools.simplecomm.SimpleCommMPI object at 0x2ad80d103e90>> ignored
MPT ERROR: could not run executable.

@jedwards4b Do you have mpi4py in your Python path?  You'll want to make sure that you have mpi4py (>=1.3) installed and in your Python path for the testing to work.

mpi4py 3.0.3 is in the path but it turns out that I had to port the test to python3 which did solve the problem.


Modernize packaging

New feature/Bug fix description
Modernize packaging with pyproject.toml
Related issues
Close #85
Checklist

[ ] Tests have passed
[x] New code is covered with tests

Codecov Report
Patch coverage has no change and project coverage change: -0.38 :warning:

Comparison is base (0ef8cd0) 97.22% compared to head (91f04cd) 96.85%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #96      +/-   ##
==========================================
- Coverage   97.22%   96.85%   -0.38%
==========================================
  Files           6        6
  Lines         540      540
==========================================
- Hits          525      523       -2
- Misses         15       17       +2

see 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Does it support whisper turbo v3 ?

Hi, openai just release a new whisper model today so I think this issue could be used to track when and how the turbo version would be usable on this server :)
Cheers

Can confirm. Thanks a lot!

Wonderful feature confirmed.


--bump-minor-for-patch-pre-major not working

Environment details

OS: Linux 5.11.0-27-generic #29~20.04.1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
Node.js version: v12.16.3
npm version: 6.14.4
release-please version: 11.24.0

Steps to reproduce

Push commit with message "feat: xxx" to your repo. Last released version in repo should be <1.0.0.
Make a new release PR with option --bump-minor-for-patch-pre-major:

release-please release-pr --repo-url=ilya-lesikov/test --token=XXX --release-type simple --bump-minor-pre-major --bump-minor-for-patch-pre-major

Expected result
Release PR incremented patch version.
Actual result
Release PR incremented minor version.

Thanks for the report and the fix!


multiple RFID 552 scanners problem

Hello,
While using this library, im getting really weird results. I must connect 5 scanners to one arduino. My scanners share MISO SCK MOSI and power lines, and when i connect 1 or 2, they work as expected, but when i connect 3,4,5, all of them stop working - only if i disconnect MISO lines of any 3 of them, it'll make other two work.
At this point im clueless, i've tried using voltage of 3.3, 5v, using 5 to 3.3v stabilizers, basically anything i can thing of. I've tried two MEGA arduinos, one leonardo and one UNO, on all of them i have similiar problem.
http://nopaste.linux-dev.org/?1120284
here is code, from multireader example, with added 5 scanners.

Check voltage drop in your 3.3v or 5.0v, looks like you are exceeding the maximum current and this is causing malfunction in your setup.
Good luck!
Enviado desde BlueMail
En 26 nov. 2016 21:14, en 21:14, propiro<EMAIL_ADDRESS>escribió:

Hello,
While using this library, im getting really weird results. I must
connect 5 scanners to one arduino. My scanners share MISO SCK MOSI and
power lines, and when i connect 1 or 2, they work as expected, but when
i connect 3,4,5, all of them stop working - only if i disconnect MISO
lines of any 3 of them, it'll make other two work.
At this point im clueless, i've tried using voltage of 3.3, 5v, using 5
to 3.3v stabilizers, basically anything i can thing of. I've tried two
MEGA arduinos, one leonardo and one UNO, on all of them i have similiar
problem.
http://nopaste.linux-dev.org/?1120284
here is code, from multireader example, with added 5 scanners.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/miguelbalboa/rfid/issues/263

maybe duplicate #227

In general my experience with spi:

breadboard + long connector cables -> issues
breadboard + >=2 devices -> issues

Try:

shorten connection between Arduino and devices
use a soldered prototype instead of a breadboard

or

Arduino mega has more than one hardware spi -> use them -> modify library (I have no clue how)

@propiro Did you solved your problem? Can you share your experience with us? Otherwise I will close this issue within 14 days. Thanks.

Hello,
Sadly, it was caused by noise on MISO lines, and i was unable to solve it,
using multiplexing or transistor gates. Client i was makign this project
for agreed just to but 5 cheap arduinos, so i hook them together to one
arduino mega that controlled locks, and everything worked.
Best Regards,
A.
2016-12-23 23:51 GMT+01:00 Rotzbua<EMAIL_ADDRESS>
@propiro https://github.com/propiro Did you solved your problem? Can
you share your experience with us? Otherwise I will close this issue within
14 days. Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/miguelbalboa/rfid/issues/263#issuecomment-269054031,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AUF2add90UbvCvnja8U2rViHR6T_A8GRks5rLFBsgaJpZM4K9DQu
.

@propiro Cool! Thanks for sharing your knowledge with us. Merry Christmas.


wimboot: fix build by fixing -idirafter ordering

wimboot build broke after https://github.com/NixOS/nixpkgs/pull/210004 where we started dropping default libc include path and switched to -idirafter way of specifying libc headers.
Unfortunately the way it's implemented it injects -idirafter after user's flags, not before. That allows users to inject their paths before libc include paths, not after (as it would notmally happen).
The change works it around for wimboot by pulling -idirafter libc flags before user's flags.
Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 213108 run on x86_64-linux 1

1 package built:

wimboot


If layer’s visibility is turned off in webmap, then related search functionality still works. Applicable to Buildings, Sites and Community tabs.

@lindsayking
The buildings tab is fully functional even if the building layer’s visibility is turned off in webmap. User can still perform search by address, apply filters etc., but buildings are not visible on map.
It is expected that if building layer is turned off in webmap, then app should not display any building results. Filters should be disabled. If user performs an address search, it should only display the buffer graphic. No results should be displayed for buildings in the result panel.

No Action Required.  As Known Limit\As Designed


How to Raw Query in Knex with SQlite. ?

I used knex version "knex": "^0.95.15".
My problem is How to write raw query in knex with sqlite3. I am very first to use knex.
	David		1		1
3	John		2		2

SELECT t1.*, tt2.complete, tt1.table2_count
FROM sessions t1
LEFT JOIN (
SELECT sessions.id,sessions.flag ,COUNT(sessions.id) as table2_count from sessions
INNER JOIN scan_records ON sessions.id = scan_records.session_id
GROUP BY sessions.id
) tt1 ON tt1.id = t1.id
LEFT JOIN (
SELECT sessions.id,scan_records.status ,COUNT(sessions.id) as complete from sessions
INNER JOIN scan_records ON sessions.id = scan_records.session_id
WHERE scan_records.status = 'uploaded'
GROUP BY sessions.id
) tt2 ON tt2.id = t1.id;


working type definition example

The type definition example
type Numeric Float @pg.numeric(precision: 5, scale: 2)
                   @ms.decimal(precision: 5, scale: 2)

gives me this error: Unexpected token. Expected one of: Start of block ("{").
A working example would be nice. (And also more docs on it in general)

The equals sign is missing in the example. Fixed.
Please note that connectors do not export any custom attributes (@xx.numeric, @xx.decimal etc.) as of now.

@ejoebstl I'm not quite sure what the last line in your comment means. Does it mean that no type definitions are currently working? If so, where can we find docs/tickets to track the status of this?

Type definitons work, but I do not know if database connectors provide types yet.
I'm sure @divyenduz can provide more answers.


Minor documentation tweak for clarity

Thanks for making it clearer! We had to make the changes manually because we use jade templating. See 8bffd2bac0a104863dedc9cd7bf562253043e039


MNT: rerender

Hi! This is the friendly automated conda-forge-webservice.
I've rerendered the recipe as instructed in #22.
Here's a checklist to do before merging.

[ ] Bump the build number if needed.

Fixes #22

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@scopatz, I was editing the bot PR and there was a bad merge by me. (I didn't rerender afterwards). This should fix that.


PETG Test Print Fused

Print looked good except for some stringing. Might be a printer settings issue, might need more tolerances. More testing needed.

Got a good print with latest tweaks. Still fused too hard and needed a razor to free parts. May need a vertical tolerance or simple
increase in tolerance.

Got a good print with latest tweaks. Still fused too hard and needed a razor to free parts. May need a vertical tolerance or simple
increase in tolerance.

Problems fixed. Used chamfer and profile shift to ensure minimal bonding between gears and housing.

Problems fixed. Used chamfer and profile shift to ensure minimal bonding between gears and housing.


BigQuery: Unknown fields for table

This is in BigQuery:
SELECT * FROM `<project_id_omitted>.air_quality.summary` LIMIT 1000

Table <project_id_omitted>.air_quality.summary does not have a schema.

So I'm unsure if this is expeted or not, but the table shows up for GlareDB and querying it yields:
(bq is the name of the data source)
SELECT * FROM bq.air_quality.summary LIMIT 10;

Error during planning: Unable to fetch table provider for 'bq.air_quality.summary': Unknown fields for table

I just wanted to check-in on how we feel the behavior should be for this scenario. In particular:

list_* functions
querying

It seems to me that this might be expected, but perhaps the error message could be improved, since Unknown fields for table might be coming from parsing somewhere further down.


FIX: mayavi imports tend to produce x server crashes on some mashines.

would be good to avoid trying mayavi imports by option
cc @fraimondo @mainakjas @agramfort

how come it crashes?

segfaults via SSH
2015-01-13 14:10 GMT+01:00 Alexandre Gramfort<EMAIL_ADDRESS>
how come it crashes?
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69741588
.

It's not a segfault. It simply prints an error: "X server not found" or
something like that and then quits python.
And that happens when mayavi is imported. So all the code in one report
that tries to import mayavi does not work if mayavi is installed on the
system but the x server is not running.
It's a huge deal for distributed processing.
Le 13 janv. 2015 14:21, "Denis A. Engemann"<EMAIL_ADDRESS>a
écrit :

segfaults via SSH
2015-01-13 14:10 GMT+01:00 Alexandre Gramfort<EMAIL_ADDRESS>
how come it crashes?
—
Reply to this email directly or view it on GitHub
<
https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69741588>

.

—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69742766
.

This should be fixed -- because it will lead to crahses irrespective of
whether you want use Mayavi at all
2015-01-13 14:43 GMT+01:00 Federico Raimondo<EMAIL_ADDRESS>
It's not a segfault. It simply prints an error: "X server not found" or
something like that and then quits python.
And that happens when mayavi is imported. So all the code in one report
that tries to import mayavi does not work if mayavi is installed on the
system but the x server is not running.
It's a huge deal for distributed processing.
Le 13 janv. 2015 14:21, "Denis A. Engemann"<EMAIL_ADDRESS>a
écrit :

segfaults via SSH
2015-01-13 14:10 GMT+01:00 Alexandre Gramfort<EMAIL_ADDRESS>

how come it crashes?
—
Reply to this email directly or view it on GitHub
<

https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69741588>

.

—
Reply to this email directly or view it on GitHub
<
https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69742766>

.

—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69745285
.

why not doing "ssh -X" ?

 And sometimes you don’t want to have an X server running. That will increase too much the time to setup the environment.
Simple test to see the error:
In [1]: from mayavi import mlab
ipython: cannot connect to X server

On Jan 13, 2015, at 2:53 PM, Alexandre Gramfort<EMAIL_ADDRESS>wrote:
why not doing "ssh -X" ?
—
Reply to this email directly or view it on GitHub https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69746590.

see :
https://github.com/mne-tools/mne-python/blob/debian/debian/rules
for debian we use xvfb to fake the x-server.
would that help?

No it does not help, especially with xvfb-run this poses problems
2015-01-13 15:07 GMT+01:00 Alexandre Gramfort<EMAIL_ADDRESS>
see :
https://github.com/mne-tools/mne-python/blob/debian/debian/rules
for debian we use xvfb to fake the x-server.
would that help?
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69748339
.

We are currently using that, although it seems that it has some huge memory leaks.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=322108 https://bugs.eclipse.org/bugs/show_bug.cgi?id=322108
https://bugzilla.redhat.com/show_bug.cgi?id=498357 https://bugzilla.redhat.com/show_bug.cgi?id=498357
https://issues.apache.org/ooo/show_bug.cgi?id=105191 https://issues.apache.org/ooo/show_bug.cgi?id=105191
Workarounds that I need to test:
http://blog.jeffterrace.com/2012/07/xvfb-memory-leak-workaround.html http://blog.jeffterrace.com/2012/07/xvfb-memory-leak-workaround.html
Nevertheless, if we don’t really need mayavi it would be great not to use xvfb-run.

On Jan 13, 2015, at 3:07 PM, Alexandre Gramfort<EMAIL_ADDRESS>wrote:
see :
https://github.com/mne-tools/mne-python/blob/debian/debian/rules
for debian we use xvfb to fake the x-server.
would that help?
—
Reply to this email directly or view it on GitHub https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69748339.

can you uninstall mayavi on the cluster? or have a venv without mayavi?

We'll subclass Report and overwrite the methods that are a problem.
2015-01-13 15:37 GMT+01:00 Alexandre Gramfort<EMAIL_ADDRESS>
can you uninstall mayavi on the cluster? or have a venv without mayavi?
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69752703
.

I’m currently doing some tests on that, to see if I can uninstall mayavi and everything works… will keep you updated.

On Jan 13, 2015, at 3:37 PM, Alexandre Gramfort<EMAIL_ADDRESS>wrote:
can you uninstall mayavi on the cluster? or have a venv without mayavi?
—
Reply to this email directly or view it on GitHub https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69752703.

without mayavi:
Traceback (most recent call last):
File "/opt/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/opt/cpype/cpype/pipeline/tests/test_pipeline.py", line 219, in test_local_global_persistence
pipeline.preprocess(raw, notch_filter=False, use_ctps=False, min_events=6)
File "", line 2, in preprocess
File "/opt/anaconda/lib/python2.7/site-packages/mne/utils.py", line 526, in verbose
return function(*args, **kwargs)
File "/opt/cpype/cpype/pipeline/pipeline.py", line 481, in preprocess
self._safe_figure(fig, 'Paradigm', section=section)
File "/opt/cpype/cpype/pipeline/pipeline.py", line 354, in _safe_figure
self.report.add_figs_to_section(figs, names, section, scale=scale)
File "/opt/anaconda/lib/python2.7/site-packages/mne/report.py", line 785, in add_figs_to_section
image_format=image_format)
File "/opt/anaconda/lib/python2.7/site-packages/mne/report.py", line 720, in _add_figs_to_section
if isinstance(fig, mayavi.core.scene.Scene):
UnboundLocalError: local variable 'mayavi' referenced before assignment

On Jan 13, 2015, at 3:37 PM, Alexandre Gramfort<EMAIL_ADDRESS>wrote:
can you uninstall mayavi on the cluster? or have a venv without mayavi?
—
Reply to this email directly or view it on GitHub https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69752703.

That should be a fairly easy fix, just need to prepend a check for whether mayavi exists before moving on to the isinstance conditional, PR welcome :)

mayavi is used only for rendering -trans.fif files. Why not use the pattern matching capabilities in report to render the -trans.fif files on a machine with X server capability and the rest of the files without the X server?

The problem is that even if you don't want mayavi at all you still deal
with it. It's imported in add figs to section to check for the type of
object. Maybe that can be avoided.
2015-01-14 18:26 GMT+01:00 mainakjas<EMAIL_ADDRESS>
mayavi is used only for rendering -trans.fif files. Why not use the
pattern matching capabilities in report to render the -trans.fif files on
a machine with X server capability and the rest of the files without the X
server?
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/issues/1741#issuecomment-69954617
.

yeah, we just need a check as @Eric89GXL says

+1 for the check. Report should work without mayavi installed.

@dengemann would it be enough to just require that users for which mayavi will crash not have it installed, or do you still need a config option? Not a big deal either way, but it's simpler the former way.

may I ask how did you fix this problem? I has same issue.too.

I don’t really remember.
I think I uninstalled mayavi, or commented out the problematic line in the server source code.
On 12 Jun 2017, 16:21 +0200, Cuiqing Li (student<EMAIL_ADDRESS>wrote:

may I ask how did you fix this problem? I has same issue.too.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

You can uninstall, or edit mayavi/__init__.py`` or vtk/init.pyto have araise ImportError` as their first line if you for some reason don't want to delete them.


Record projection bug, Index 2 out of bounds for length 2

Just found the issue! it was the issue when generating GenericAppenderFactory in which full table schema was given, instead of key schema
https://github.com/tabular-io/iceberg-kafka-connect/blob/595f835f5d9174e57660b12f407dabc84781e500/kafka-connect/src/test/java/io/tabular/iceberg/connect/data2/IcebergUtil.java#L96-L103


Updated color scheme of icons and added divider for fixed menu

Fixes #846
Fixes #835

Description

Updated: color of menu icons
Updated: secondary button background when option is active
Updated: the styles of linkOption dropdown to be dynamic according to the content inside

Checklist
- [ ] I have made corresponding changes to the documentation.
- [ ] I have updated the types definition of modified exports.

[x] I have verified the functionality in some of the neeto web-apps.
[x] I have added the necessary label (patch/minor/major - If package publish
is required).

Reviewers
@AbhayVAshokan _a

If i remove the gap between buttons, it looks wierd. I think keeping the gap looks good for the editor since we are using buttons.
> * [ ]  UI Improvements: https://vimeo.com/850159335/1c31804480

@AbhayVAshokan _a Please take a look at the new UI changes.

@AbhayVAshokan I have updated the styles as discussed and fixed the edgecases of LInkOption, please verify and let me know if any other changes are required for the UI.


404 when @ in folder name

Gitea Version
1.15.4
Git Version
2.25.1
Operating System
Ubuntu 20.04.3
How are you running Gitea?
Downloaded compiled version for Linux.
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Description
When I mirror https://github.com/boostorg/boost than there is an folder with @ in name.

or is this something special?
Take a look here: https://try.gitea.io/somera/boost
Screenshots
No response

It sends me to a 404 on github as well.

It sends me to a 404 on github as well.

Cause Gitea hat a bug.
Here is the original GitHub link: https://github.com/boostorg/boost

It sends me to a 404 on github as well.

Cause Gitea hat a bug.
Here is the original GitHub link: https://github.com/boostorg/boost

Yes, on the original github link I'm also sent to 404 when clicking the submodule

It sends me to a 404 on github as well.

Cause Gitea hat a bug.
Here is the original GitHub link: https://github.com/boostorg/boost

Yes, on the original github link I'm also sent to 404 when clicking the submodule

hm ... for me works. With Chrome and FF.


Confirm if MySQL works, and if there is a need in the community to support it

The codebase has a couple references to MySQL dialects.  For as long as I can remember, oEQ has only supported Oracle, SQL Server, and Postgres.

Is there a community desire to support MySQL?
If so, does MySQL even work with oEQ?
If not, remove the dialects.
Consider updating https://openequella.github.io/server-administration/KnownWorkingSupportingSoftware.html

That comes as a surprise to me.
For as long as i've worked with oEQ (since 2012) I have never heard any mention of oEQ supporting MySQL


Serialization fails on async cache hits for a DirtyTrackedSession identity map

The following test will fail with an exception
        [Fact]
        public async Task pending_with_dirty_checks_async()
        {
            var user1 = new User();

            using (var session1 = theStore.LightweightSession())
            {
                session1.Store(user1);
                session1.SaveChanges();
            }

            using (var session2 = theStore.DirtyTrackedSession())
            {
                var user12 = await session2.LoadAsync<User>(user1.Id);
                var breakThings = await  session2.LoadAsync<User>(user1.Id);
            }
        }

The exception is as follows:
Test 'Marten.Testing.UnitOfWork_PendingChanges_Functionality_Tests.pending_with_dirty_checks_async' failed: System.AggregateException : One or more errors occurred.
---- System.InvalidCastException : Unable to cast object of type 'Marten.Services.TrackedEntity' to type 'Marten.Testing.Documents.User'.
This appears to occur when there is a cache hit on the GetAsync method of IdentityMap.cs. The following code fails at return dict[id].As<T>();
        public async Task<T> GetAsync<T>(object id, Func<CancellationToken, Task<FetchResult<T>>> result, CancellationToken token = default(CancellationToken)) where T : class
        {
            var dict = Cache[typeof(T)];

            if (dict.ContainsKey(id))
            {
                return dict[id].As<T>();
            }

            var fetchResult = await result(token).ConfigureAwait(false);
            if (fetchResult == null) return null;

            var document = fetchResult.Document;

            dict[id] = ToCache(id, typeof(T), document, fetchResult.Json);

            _listeners.Each(listener => listener.DocumentLoaded(id, document));

            return document;
        }

This was found using basically the current code of Marten - I synced about two hours ago. I can also replicate this using the latest NuGet package with a Raven application that I'm converting over as a POC. The following code from that application will also fail with the same exception:
        public async Task<string> TestMarten()
        {
            using (var session = MvcApplication.MartenStore.DirtyTrackedSession())
            {
                var userInfo = await session.LoadAsync<UserInfo>("76bb4089-24aa-e311-8f56-d4ae529037b1/zzmarten2");

                var userInfo2 = await session.LoadAsync<UserInfo>("76bb4089-24aa-e311-8f56-d4ae529037b1/zzmarten2");

                return "pass";

            }

            return "test";
        }

I'm trying to fix this for you and make a pull request. I haven't quite deconstructed everything that is going on in my head.
Wanted to document the issue for the sake of completeness.

In case you want to know, the following code works:
        public async Task<string> TestMarten()
        {
            using (var session = MvcApplication.MartenStore.OpenSession())
            {
                var userInfo = await session.LoadAsync<UserInfo>("76bb4089-24aa-e311-8f56-d4ae529037b1/zzmarten2");

                session.Store(userInfo);

                var userInfo2 = await session.LoadAsync<UserInfo>("76bb4089-24aa-e311-8f56-d4ae529037b1/zzmarten2");

                return "pass";

            }

            return "test";
        }

@maggiepint thank for the detailed report! will be fixed with the attached PR.


Error: SDES and DTLS-SRTP cannot be enabled at the same time.

Discussed in https://github.com/fonoster/routr/discussions/279

Originally posted by SemiConscious June 19, 2024
Hi All - First: what a wonderful set of tools routr is. Thank you.
I am working with routr-one in EC2. I am interested initially in using it for Web<->Phone functionality. I found (in my SIP.js application) that if I call it from Zoiper (ie web->phone) I was getting
Wed Jun 19 2024 21:56:36 GMT+0100 (British Summer Time) | sip.Invitation | Failed to set remote offer sdp: SDES and DTLS-SRTP cannot be enabled at the same time.
Referring to here: https://github.com/sipwise/rtpengine/issues/433 it seems to me that https://github.com/fonoster/routr/blob/main/mods/rtprelay/src/utils.ts#L62, and another case in https://github.com/fonoster/routr/blob/main/mods/rtprelay/src/utils.ts#L77, should be
SDES: ["off"]
instead of
SDES: "off"
I have verified this by creating a docker container based on router-one:latest, with the following line:
RUN sed -i 's/SDES: "off"/SDES: ["off"]/g'<EMAIL_ADDRESS>I verified that it makes the above changes, and it fixes the issue. When I use this docker image instead, the error goes away, as do the 'crypto' entries in the SDP.
I'm happy to create a pull request if that would be useful, but it's not clear to me how to build the router-one image, so can't test. If you can set me straight on that I'm happy to help with a pull request.
All the best
Jim

Thank you. I have submitted https://github.com/fonoster/routr/pull/281.

Merged!


[oap-native-sql] Hash Collision in multiple keys scenario

We noticed hash collision in tpch Q16 using current way of generating gandiva hashcode
(base) [root@sr602 tpch_test]# grep -r "2131584127" /hadoop/logs/userlogs/application_1596726092887_0025/
/hadoop/logs/userlogs/application_1596726092887_0025/container_1596726092887_0025_01_000018/stdout:[2131584127]:Brand#34, LARGE PLATED COPPER, 9, 189920
/hadoop/logs/userlogs/application_1596726092887_0025/container_1596726092887_0025_01_000018/stdout:[2131584127]:Brand#12, ECONOMY ANODIZED STEEL, 19, 796564
/hadoop/logs/userlogs/application_1596726092887_0025/container_1596726092887_0025_01_000013/stdout:[2131584127]:Brand#34, LARGE PLATED COPPER, 9, 189920

@zhouyuan , fired issue here, we need to come up a better way to ensure hash performance and handle hash collision well
Current we used  (hash32 (hash32(hash32) 10) 10)

@xuechendi thanks for the look, i'll check if we could fix this easily as this also occurs in 0.9

This should be fixed in master now


ordNubBy :: (a -> a -> Ordering) -> [a] -> [a]

This adds ordNubBy where a custom comparison function can be supplied.


Deep vs. shallow signal trait implementations

This is a tracking issue for traits implemented on signal types, and whether they should be 'shallow' or 'deep', and whether they should be tracking or not.

A 'shallow' implementation does not access the value of the signal.
A 'deep' implementation accesses the value of the signal.

If the value is accessed, we can track the signal or not (call .get() or .get_untracked()).

Considerations:

In general, in Rust, 'pointer-ish' containers use the internal value for comparisons and similar traits (or don't implement the trait at all).
We can't always avoid a panic in the process of accessing a value, because the signal might be a plain closure which itself may access a disposed signal.

In theory we could catch_unwind, but that is problematic because of the risk of running some code midway through and unwinding doesn't work on wasm anyway (yet).

A deep Debug implementation is really useful for debugging.
Shallow trait implementations will make nested signals less ergonomic.
In the case of a deep implementation, the signal is being 'accessed'. That makes it feel like it should subscribe (if a == b {} being equivalent to if a.get() == b.get() {}).
If we have a deep implementation which subscribes, then collections which rely on the values themselves (HashMap, BTreeMap, ...) might subscribe to arbitrary value on each access.

For keys, stashing things with interior mutability in these collections is already something to be careful with. Values would not be accessed.

Under what scenario for an end-user something like a == b should compare the 'pointers'?
if a == b subscribes, then the reactive graph might be less explicit. Whether this is a positive or negative probably depends on personal preference.
In terms of breakage, we switched to deep trait implementations in a fork and we didn't see it cause any breakage (though we also are not using all the API surface).
A migration path could look like: add PointerEq trait or similar, then remove all instances of PartialEq on signals, then migrate any usage to PointerEq, then re-implement PartialEq with new semantics. A process like that would guarantee nothing in leptos proper breaks.

Some relevant traits:

Debug

Arc, Rc, & Box forward to the inner values.
RefCell & Mutex do the same but print tags if the value is inaccessible.

PartialEq

Arc, Rc, Box, RefCell forward to the inner values.
Mutex does not implement PartialEq.
{Rc,Arc}::ptr_eq are available.

PartialOrd

Arc, Rc, Box, RefCell forward to the inner values.
Mutex does not implement PartialOrd.

Hash

Arc, Rc, & Box forward to the inner values.
RefCell, & Mutex do not implement Hash.

Serialize & Deserialize

This one essentially has to be deep to work. It is implemented by forwarding to the inner value for every type in serde.

Currently the signals all implement shallow versions of the traits above, with the exception of Serialize and Deserialize.

(This is a follow up to #2384)

Apologies for the slow response. Two main reasons I haven't written yet:

I don't have very strong feelings about it
Sometimes when I don't have a strong opinion, it's helpful not to prejudice whatever discussion others may want to have with my half-formed thoughts.

That said, here's a response now.
Meta-response: A few data points for consideration:

AFAIK the way these traits are implemented now is the way they have always been
This is the only time this question has been raised
There have been no reactions or replies to the issue

To me, this suggests that to the extent that people use these traits, they're generally happy with the current behavior. It's very hard to make an argument from silence; but I have a pretty good sense of conversations among the user base about what they'd like to see change, and these aren't on the list.
To me, this argues pretty strongly against making a breaking change to the behavior.
Substantive response: A few points here.
Smart pointer vs. signal: From my perspective, signals are not smart pointers. Specifically, they cannot be dereferenced to get their inner value, and accessing them does have side effects; whereas smart pointers can be (infallibly!) dereferenced to an inner value without side effects.
A signal is not a way of saying "this is a thing that points to this value." It is a way of saying "this is a container with a stable identity over time, even as its value changes."
Performance considerations: It is very useful to be able to use a signal as (for example) a HashMap key in a For component. Implementing very cheap PartialEq and Hash operations (you're just comparing or hashing an integer signal ID) is very useful for this purpose.
Reduced "magic": "Magic" is always a handwavey and subjective term. But I don't agree, for example, that a == b should be the equivalent of a.get() == b.get(). I have found it helpful to be very explicit about signal access and signal updates; while marginally verbose they make it much clearer what's going on in your code. This is why, for example, we don't implement traits like AddAssign for signals: while it would look really cool to be able to just set_count += 1, I think it becomes really confusing when things that don't look like they're accessing or updating a signal do.
User experience: I spend a lot of time on Leptos support. I anticipate that making this change would cause many issues, both by breaking or changing the behavior of existing codebases in hard-to-detect ways (an effect suddenly runs much more often, etc.), and by introducing confusing behavior for new users (wait, where did I access this signal?)

Given all of the above, and the lack of significant interest from the rest of the community in making this change, I am going to say this is "not planned."


feat(release): fixing

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


Land Bigtable v2

This is the monster.  See https://github.com/GoogleCloudPlatform/gcloud-python/issues/1850#issuecomment-228192275 for the PRs which landed on the bigtable-v2 branch.

Looks like Appveyor is having the same issue that was reported earlier.
https://github.com/GoogleCloudPlatform/gcloud-python/issues/1933
https://github.com/grpc/grpc/issues/7135
@tseaver this PR is brining my browser to it's knees. Could you squash this down? (not sure that will help or not)

Tres we are ready for this to be published assuming you have all the required approvals.

@tseaver We are ready for this to be published assuming you have all the required approvals.

@daspecster Honestly, squashing would hurt.  Might be better off scanning the merged-to-bigtable-v2 PRs listed on the tracking issue checklist.

@tseaver, ok sounds like a plan! Thanks!

Just FTR, I was able to run the bigtable system tests under Python 3.4:
$ tox -re system-tests3 --notest
$ .tox/system-tests3/bin/pip install grpcio
$ .tox/system-tests3/bin/python system_tests/run_system_test.py --package=bigtable
D0629 13:53:51.485668817   28141 ev_posix.c:101]             Using polling engine: poll
test_read_row (bigtable.TestDataAPI) ... ok
test_read_rows (bigtable.TestDataAPI) ... ok
test_read_with_label_applied (bigtable.TestDataAPI) ... ok
test_create_instance (bigtable.TestInstanceAdminAPI) ... ok
test_list_instances (bigtable.TestInstanceAdminAPI) ... ok
test_reload (bigtable.TestInstanceAdminAPI) ... ok
test_update (bigtable.TestInstanceAdminAPI) ... ok
test_create_column_family (bigtable.TestTableAdminAPI) ... ok
test_create_table (bigtable.TestTableAdminAPI) ... ok
test_delete_column_family (bigtable.TestTableAdminAPI) ... ok
test_list_tables (bigtable.TestTableAdminAPI) ... ok
test_update_column_family (bigtable.TestTableAdminAPI) ... ok
(grpcio shutdown noise elided)

----------------------------------------------------------------------
Ran 12 tests in 29.129s

OK

The bigtable-happybase system tests aren't yet Py3k-clean (they use native string literals for row keys, etc.)

What's the status of this PR? @daspecster, are you reviewing it?

@mbrukman, I am looking it over.
I'm sure we need more eyes than mine on it :)

@tswast PTAL

@jonparrott PTAL - could you review this PR - ideally, we'd like to get it published today as part of Bigtable GA.

Changes LGTM. I tested with this branch on my Hello World samples, and both ran fine. Thanks!

@dhermes any objections to a merge?

@tseaver - We've had two pythonistas review. dhermes is away.  It's ok to merge.

@tseaver Can you let us know the PyPi status -- (ie submit and let us know)

@lesv 0.17.0 is tagged.  Travis will push the release when the tag build is finished.

@tseaver  What about docs?

@lesv RTD already shows the 0.17.0 docs.  The github.io docs get updated by the same Travis job that makes the PyPI release.

Also, RTD Bigtable usage docs talk only about clusters, does not mention instances at all.

PyPI:  https://pypi.python.org/pypi/gcloud/0.17.0
github.io: http://googlecloudplatform.github.io/gcloud-python/stable/bigtable-instance-api.html

Thank you, @tseaver!! Much appreciated.


ACPRule class support to search by acp_id

Currently ACPRule class can take in ACP name, and can list all the rules in that ACP
In this process it maps the ACP name to an ACP id first.
This issue is opened to support an ACP ID as input and get the ACP rules directly surpassing the name to ID mapping

created branch feature/acp-rule-search-from-acp-id for this issue

Just a reminder.  The target audience of this project aren't
native/expert programmers.  Many of them (me included for a long while)
will interact with fmcapi using names.  We have to "hand hold" a
little.  I'm not against what you are doing here but don't remove the
"ease of use" for the user in lieu of "ease of programming" for the
programmer.
On 7/2/19 3:34 AM, Shakti Kumar wrote:

Currently ACPRule class can take in ACP name, and can list all the
rules in that ACP
In this process it maps the ACP name to an ACP id first.
This issue is opened to support an ACP ID as input and get the ACP
rules directly surpassing the name to ID mapping
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/daxm/fmcapi/issues/29?email_source=notifications&email_token=AAZOMZY4TOM675F5MO3I7KDP5MOLBA5CNFSM4H4Z4KGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G42W42A,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZOMZ2ZKMS7QNDSWYEKORTP5MOLBANCNFSM4H4Z4KGA.

I agree to this point, but just to reiterate this feature doesn't remove any existing functionality.
I can speak from a development standpoint,
where almost all audience will interact with the API as part of some automation and not directly. Rule uuid serves as the unambiguous identifier in such cases and this search feature avoids one extra FMC call for every rule list call made.


region_cache: check epoch before insert

There are two or more situations in which the region we got is stale. The first case is that the process of getting a region is concurrent. The stale region may be returned later due to network reasons.
The second case is that the region may be obtained from the PD follower in the future, and there is the synchronization time between the pd follower and the leader.
So we should check the epoch to avoid stale region.
Some details of the insertRegionToCache are described as follows.
Firstly,  mu.latestVersions[cachedRegion.VerID().id] is used to check if there is an old version with the same ID. If it exists, the code compares the version numbers (newVer.GetVer() and oldVer.GetVer()) as well as the conf version numbers (newVer.GetConfVer() and oldVer.GetConfVer()). If the old version number is higher, it considers the newly obtained Region as stale.
Next, mu.sorted.removeIntersecting is called to check and remove any old Regions that overlap with the new Region, and to determine if the new Region is stale.
Afterward, the new Region is inserted into the cache using the mu.sorted.ReplaceOrInsert(cachedRegion) method.
If there are existing old Regions that overlap with the new Region, it inherits some information from the first overlapping Region, such as working indexes for TiKV and TiFlash, as well as bucket information.
Finally, it iterates over the overlapping old Regions, removes them from the cache, and marks them as expired. If the invalidateOldRegion parameter is true, the old Regions are marked as invalid to prevent certain requests from using expired Region information.
Lastly, relevant variables are updated, including adding the new Region and its corresponding version to mu.regions and mu.latestVersions.
Throughout this process, by comparing version numbers and cluster change version numbers, as well as removing overlapping old Regions, it ensures that the Region information in the cache is up-to-date and valid.

Benchmark test result (count = 20)
InsertRegionToCache tests the case in which the key range and epoch change and delay appear. InsertRegionToCache2 tests the case in which the key range does not change.
master compares this PR
name                    old time/op    new time/op    delta
InsertRegionToCache-8     1.44µs ± 1%    1.34µs ± 1%   -7.24%  (p=0.000 n=17+18)
InsertRegionToCache2-8    1.13µs ±11%    1.12µs ± 0%     ~     (p=0.567 n=18+18)

name                    old alloc/op   new alloc/op   delta
InsertRegionToCache-8       653B ± 1%      765B ± 0%  +17.21%  (p=0.000 n=19+20)
InsertRegionToCache2-8      464B ± 0%      472B ± 0%   +1.72%  (p=0.000 n=20+20)

name                    old allocs/op  new allocs/op  delta
InsertRegionToCache-8       26.0 ± 0%      26.0 ± 0%     ~     (all equal)
InsertRegionToCache2-8      23.0 ± 0%      24.0 ± 0%   +4.35%  (p=0.000 n=20+20)

We can see that the results of the two tests are significantly different. There is no problem in terms of speed, mainly in terms of memory allocation.
To find out why this PR allocates more bytes, I remove the code that checks the intersected region(in sorted_btree.go).
And master compares it.
name                    old time/op    new time/op    delta
InsertRegionToCache-8     1.44µs ± 1%    1.38µs ± 0%   -4.10%  (p=0.000 n=17+16)
InsertRegionToCache2-8    1.13µs ±11%    1.12µs ± 2%     ~     (p=0.625 n=18+19)

name                    old alloc/op   new alloc/op   delta
InsertRegionToCache-8       653B ± 1%      563B ± 0%  -13.74%  (p=0.000 n=19+20)
InsertRegionToCache2-8      464B ± 0%      472B ± 0%   +1.72%  (p=0.000 n=20+20)

name                    old allocs/op  new allocs/op  delta
InsertRegionToCache-8       26.0 ± 0%      26.0 ± 0%     ~     (all equal)
InsertRegionToCache2-8      23.0 ± 0%      24.0 ± 0%   +4.35%  (p=0.000 n=20+20)

From this, we can see that the additional overhead is mainly due to checking intersecting regions. IMO, this is reasonable.

cc @disksing


chore: bump contracts with built contracts in workflow

What ❔

Why ❔

Checklist

[ ] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[ ] Tests for the changes have been added / updated.
[ ] Documentation comments have been added / updated.
[ ] Code has been formatted via zk fmt and zk lint.
[ ] Spellcheck has been run via zk spellcheck.

Not needed anymore, issue was solved in a different way


Fix #315, ES Performance debug messages

Describe the contribution
Fixes issue #315, ES Performance debug messages have incorrect parameter
Testing performed

Built with updated cfe_es_perf.c.
Sent SetPerfFilterMaskCmd & SetPerfTriggerMaskCmd commands.
Verified messages are now correct.
Ran unit tests.

Expected behavior changes
DEBUG messages are now correct.
System(s) tested on:
Oracle VM VirtualBox
OS: ubuntu-19.10
Version: cFE <IP_ADDRESS>; OSAL <IP_ADDRESS>; PSP <IP_ADDRESS>
Contributor Info
Dan Knutsen
GSFC/NASA

CCB 20200212 - Approved


Invalid command line is not flagged as an error, results in an invalid scenario script

nb5 run baselines/cql-iot-dse  ... should not allowed, since it combines two distinct forms.
This is syntactically allowed, although any run or start command which has zero parameters should be rejected. In this case, there are two commands, and the first one is not usable. It manifests as an invalid scenario script.
It should either be:
nb5 run param=value ... or nb5 <workload template> [<named scenario>[.<named step>]] ... param=value ...

nb5 run baselines/cql_iot_dse currently produces this error:
     573 ERROR [main] ERRORHANDLER Could not recognize command 'baselines/cql_iot_dse'.
This means that all of the following searches for a compatible command failed:
1. commands: no scenario command named 'baselines/cql_iot_dse' is known. (start, run, await, ...)
2. scripts: no auto script named './scripts/auto/baselines/cql_iot_dse.js' in the local filesystem.
3. scripts: no auto script named 'scripts/auto/baselines/cql_iot_dse.js' was found in the nb5 binary.
4. workloads: no workload file named baselines/cql_iot_dse[.yaml] was found in the local filesystem, even in include paths .
5. workloads: no workload file named baselines/cql_iot_dse[.yaml] was bundled in nb5 binary, even in include paths .
6. apps: no application named baselines/cql_iot_dse was bundled in nb5.

You can discover available ways to invoke nb5 by using the various --list-* commands:
[ --list-commands, --list-scripts, --list-workloads (and --list-scenarios), --list-apps ]


Rename app.css to app.min.css

Laravel Mix Version: 1.7.2
Node Version (node -v): 6.14.1
NPM Version (npm -v): 3.10.10
OS: Ubuntu 16.04

Description:
When using ack to search for code on the command line, the minified auto-generated files app.css and app.js (and sometimes lib.bundle.js) are found and spill out thousands of lines on my shell.
It is not visible that the files are minified, so I can't instruct ack to ignore them automatically.
Please rename the files to app.min.css, app.min.js and lib.bundle.min.js, so that search tools can automatically ignore them.

Simply specify the file name, not only the directory in the second parameter:
mix.js('resources/assets/js/app.js', 'public/js/app.min.js')
    .sass('resources/assets/sass/app.scss', 'public/css/app.min.css')


Mallformed URI's leads to crash with /thing/:id routes

Describe the bug
I has been testing tinyhttp for my project, and were curious if i could exploit it with ../-like url's.
And at some point I break it when made a request with url:
http://localhost:7331/api/pics/..%2..%2Fmain.yml

I got this error:
file:///D:/dev/my_proj/backend/node_modules/@tinyhttp/url/dist/index.js:8
        params[keys[i]] = decodeURIComponent(matches[i + 1]);
                          ^

URIError: URI malformed
    at decodeURIComponent (<anonymous>)
    at getURLParams (file:///D:/dev/my_proj/backend/node_modules/@tinyhttp/url/dist/index.js:8:27)
    at <anonymous> (D:\dev\my_proj\backend\node_modules\@tinyhttp\app\src\app.ts:336:30)
    at loop (D:\dev\my_proj\backend\node_modules\@tinyhttp\app\src\app.ts:357:81)
    at next (D:\dev\my_proj\backend\node_modules\@tinyhttp\app\src\app.ts:359:67)
    at file:///D:/dev/my_proj/backend/node_modules/@tinyhttp/cors/dist/index.js:58:57
    at <anonymous> (D:\dev\my_proj\backend\node_modules\@tinyhttp\app\src\app.ts:27:16)
    at <anonymous> (D:\dev\my_proj\backend\node_modules\@tinyhttp\app\src\app.ts:352:75)
    at loop (D:\dev\my_proj\backend\node_modules\@tinyhttp\app\src\app.ts:357:81)
    at next (D:\dev\my_proj\backend\node_modules\@tinyhttp\app\src\app.ts:359:67)

Node.js v18.17.0

Looks like it got broken when url contains two or more ..%2 inside url. Or some other weird urls like that.
To Reproduce
Steps to reproduce the behavior:

Create tinyhttp app
add handler to route "/api/pics/:id"
send request to server at path /api/pics/..%2..%2Fmain.yml
You will get this error

Expected behavior
There are plenty of ways of to hanlndle this situations:

parse it and pass as is (unsafe but "fair")
send 400 responce when parsing failed because it is a bed request
provide some "guard" middleware before routes that will catch bad URIs and allows user to handle such situations.

Or something else, it shouldn't be that easy to crash whole server, imo.
Versions

node: v18.17.0
@tinyhttp/app: 2.1.3

Seems like a big with getURLParams in packages/url. We should throw error 400 indeed. PR with fix is welcomr

Fixed in in<EMAIL_ADDRESS>


my progress button & login signup button

add my progress button and login signup button. to store user's progress. you can assign issue to me as i am contributor GSSoC 2024

Hey there! I can fix this issue right away, please assign this to me under GSSoC'24.

I am interested in this project. Please assign this issue to me under GSSoC 2024.


Support DataFactoryElement in Sample Generation

Support DataFactoryElement in Sample Generation

API change check
API changes are not detected in this pull request.


.Net 8

Test using .Net 8
Scope of changes

Hi, Do you know when the projects will be upgraded to .Net 8?  Any ETA?

Hi, there is any news?

Hello everyone. These issues and PR are still open.. Have the .NET 8 templates been released elsewhere @ceciliaavila ?

@ahmed-dstny There are some changes pending.

Thanks @tracyboehrer. Do you mean the warnings about the Microsoft.Identity packages?

@ahmed-dstny No.  There was a separate PR to update Microsoft.Identity.Client to 4.60.3 to resolve those warnings.  That has already been merged.

@tracyboehrer please see my PR that merges main back into that one by @sw-joelmut:
https://github.com/microsoft/botbuilder-dotnet/pull/6788


As an NPSP developer, I need to properly comment my classes and methods so we can provide easily automated code documentation for NPSP contributors and implementers

I'm closing this out - it'll need to be broken out into smaller chunks-


Yatin: Watch treeoflifeherbalclinic.com

Yatin requests the watch of the watch_keyword treeoflifeherbalclinic\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

treeoflifeherbalclinic\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Spevacus in Charcoal HQ


Errors trying to use with Vite & Vue 3

Hi,
I tried to implement Milkdown in my project as is suggested in the docs, but I am getting errors. For example, if I use import { Editor } from '@milkdown/core
It will throw:  Error: ENOENT: no such file or directory<EMAIL_ADDRESS>If I replace that with import { Editor } from '@milkdown/core/lib/editor'; then it works.
Same thing happens for other imports, like @milkdown/preset-commonmark.
I am using vite (2.3.3) with typescript and vue (3.0.11).

Can you provide a sample project? I tried the latest version of milkdown and it works well.

I created a small reproduction project using the latest vite vue-ts template, and trying to implement the editor component using classing sfc vue style. I didn't get to my own bug, because I ran into another one before that.
Uncaught ReferenceError: React is not defined
    at Proxy.<anonymous> (Editor.tsx:60)

If we can get past that bug, I can try and recreate the same tsconfig stuff I have in my original project after that.
Here is the link:
https://github.com/wyrd-code/milkdown-import-reproduction

Fixed, you can try<EMAIL_ADDRESS>BTW, there is some issues in your code, the props should be dynamic
<template>
  <VueEditor :editor="editor" />
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import { Editor } from '@milkdown/core';
import { VueEditor, useEditor } from '@milkdown/vue';
import { commonmark } from '@milkdown/preset-commonmark';

import<EMAIL_ADDRESS>
export default defineComponent({
  name: 'Editor',
  components: {
    VueEditor,
  },
  setup: () => {
    const editor = useEditor((root) => new Editor({ root }).use(commonmark));

    return {
      editor,
    };
  }
})
</script>


Pip install for 0.0.1 fails

FileNotFoundError: [Errno 2] No such file or directory: '/private/var/folders/2c/99n_4g3n0ml7d1gz40y77jc00000gn/T/pip-build-5nik37q_/amen/examples'
Ooops.  Working on it.

Fixed with #98


Bug: Multiple "#" on the same lines don't parse correctly

Hey! I just installed Skript-parser and tested it. I wanted to have a sample script to start, so I downloaded the one linked in this release note: https://github.com/SkriptLang/skript-parser/releases (https://gist.github.com/Blueyescat/8793eecf545088bf78007a18f19a2013)
(It generated multiple errors so I'll create an issue per error/problem)
Anyway, in this file there are lines full of "#" to delimitate a section I guess, but one of them is not parse correctly, I get the following error:
[18:53:39] ERROR: Conditionals are not allowed in this section (line 43: "", test.sk)

I also create an error on the next line:
[18:53:39] ERROR: An 'else if' must be placed after an 'if' (line 44: "", test.sk)

I think it will be worth mentioning the next line is neither an if nor an else if... Just a blank line.
All the other lines with plenty of "#" are parsed correctly and don't create errors.

I am afraid your build is a tiny bit (actually a lot) outdated.
In order to build: clone the project to your local device and run the gradle build task. This will build the project for you and output a JAR file in the build/libs file. Please check with that build if this issue still occurs.
Anyway, welcome to the project! We are looking forward to work with you.

I just borrowed the test script ^^ I used the latest nightly build for all the issues I opened, with JDK 14

Can reproduce with the latest nightly build, using OpenJDK 14.0.2.


Individual cpu utlization

Implements #270
WIP Do not merge

Ready for merge?

Ready for merge?

Yup!

Great Work!


Question: problem with profiles on server side? Profile creation/deletion errors.

Operating system: Win 10
language version:Python3
Cortex version:  latest

I have problems while working with profiles. When i try to create or delete training profile i always get:
ERROR -32036: Error processing profile.
But the funny thing is that the commands actually work. So profile is created/deleted, i can load and unload it later, just the response to create/delete command i get is always error. Is this just my case, or server problem? It is not comfortable to work with, because i won't know when errors actually occur.

Hi @kubaper , can you send me cortex token you got ?


Modify color ramp in style by value is broken

cc @alonsogarciapablo @oriolbx

Going go fix this along with #9002, as it is closely related to that issue.

@piensaenpixel What do you prefer, to apply an ellipsis when it takes more than the assigned space or the text breaking into two lines like below?

We need to take into account that because of the maximum width and the margins on the dropdown there is not so much space available to put the label when it is too long.

+1 to ellipsis and we make hover on it we can show a tooltip

@jesusbotella are we finally fixing this? If so, let's please add it to the RT project so that we can track it. Thanks!

Yes, I am working on it, almost done. I asked @piensaenpixel if the tooltip is actually needed because we have the attribute title in the view before the color picker.

Perfect! Thanks @jesusbotella! 🔝

LGTM!

in production!


[Bug]: SafeTensorsInfo.init() got an unexpected keyword argument 'sharded'

Your current environment
PyTorch version: 2.1.2+cu121
Is debug build: False
CUDA used to build PyTorch: 12.1
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.4 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: Could not collect
CMake version: version 3.29.0
Libc version: glibc-2.35

Python version: 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-101-generic-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: 12.3.107
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration:
GPU 0: NVIDIA H100 PCIe
GPU 1: NVIDIA H100 PCIe

Nvidia driver version: 545.23.08
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture:                       x86_64
CPU op-mode(s):                     32-bit, 64-bit
Address sizes:                      46 bits physical, 57 bits virtual
Byte Order:                         Little Endian
CPU(s):                             128
On-line CPU(s) list:                0-127
Vendor ID:                          GenuineIntel
Model name:                         Intel(R) Xeon(R) Gold 6448H
CPU family:                         6
Model:                              143
Thread(s) per core:                 2
Core(s) per socket:                 32
Socket(s):                          2
Stepping:                           8
Frequency boost:                    enabled
CPU max MHz:                        2401.0000
CPU min MHz:                        800.0000
BogoMIPS:                           4800.00
Flags:                              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cat_l2 cdp_l3 invpcid_single intel_ppin cdp_l2 ssbd mba ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local split_lock_detect avx_vnni avx512_bf16 wbnoinvd dtherm ida arat pln pts avx512vbmi umip pku ospke waitpkg avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq la57 rdpid bus_lock_detect cldemote movdiri movdir64b enqcmd fsrm md_clear serialize tsxldtrk pconfig arch_lbr amx_bf16 avx512_fp16 amx_tile amx_int8 flush_l1d arch_capabilities
Virtualization:                     VT-x
L1d cache:                          3 MiB (64 instances)
L1i cache:                          2 MiB (64 instances)
L2 cache:                           128 MiB (64 instances)
L3 cache:                           120 MiB (2 instances)
NUMA node(s):                       2
NUMA node0 CPU(s):                  0-31,64-95
NUMA node1 CPU(s):                  32-63,96-127
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit:        Not affected
Vulnerability L1tf:                 Not affected
Vulnerability Mds:                  Not affected
Vulnerability Meltdown:             Not affected
Vulnerability Mmio stale data:      Not affected
Vulnerability Retbleed:             Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:           Mitigation; Enhanced IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds:                Not affected
Vulnerability Tsx async abort:      Not affected

Versions of relevant libraries:
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.26.4
[pip3] torch==2.1.2
[pip3] torchvision==0.16.2
[pip3] triton==2.1.0
[conda] torch                     2.1.2                    pypi_0    pypi
[conda] torchvision               0.16.2                   pypi_0    pypi
[conda] triton                    2.1.0                    pypi_0    pypiROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.4.0
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0    GPU1    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      SYS     32-63,96-127    1               N/A
GPU1    SYS      X      32-63,96-127    1               N/A

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

🐛 Describe the bug
Occurs when I try to load a model from huggingface that was merged with LoRA Adapters

What's your transformers and safetensors version?

I am seeing the same error any time I try to load a LLAMA 70b model, even fine tuned versions.

ok we are seeing this in our CI as well. @youkaichao can you help investigate

seems like a huggingface issue: https://github.com/huggingface/huggingface_hub/issues/2186

definitely a hf issue

hf said they fixed it. indeed our ci works again.


JsonArrappend Fails to Append?

I'm trying to use rueidis to manipulate arrays in a json object I've stored in redis:
json.set foo . '{"hello": "people", "colours": []}'

The following works within the redis-cli:
<IP_ADDRESS>:6379> JSON.ARRAPPEND foo $.colours '"red"'
1) (integer) 1
<IP_ADDRESS>:6379> JSON.ARRAPPEND foo $.colours '"blue"'
1) (integer) 2
<IP_ADDRESS>:6379> json.get foo $.colours
"[[\"red\",\"blue\"]]"

However, when using the library it appears to fail:
err := con.Do(ctx, con.B().JsonArrappend().Key("foo").Path("$.colours").Value("red").Build()).Error()
log.Fatal(err)

2022/06/07 15:09:48 expected value at line 1 column 1
It appears to fail, because the resulting string isn't quoted properly. Reproducing this in the console as below, you can see what happens when a string has double qutoes, but not the outer single quotes.
<IP_ADDRESS>:6379> JSON.ARRAPPEND foo .colours "red"
(error) expected value at line 1 column 1

The same is true for other operations.

Hi @chayim,
Yes, it is expected behavior of command builder. It doesn’t quote json string automatically. It just send what you send as redis string.
In your case, You can use the following way to send json string in redis string:
con.Do(ctx, con.B().JsonArrappend().Key("foo").Path("$.colours").Value(`"red"`).Build()).Error()

Hey @rueian agreed - I ran things throught fmt.Sprintf to format accordingly (other reasons). What do you think about either:

Supporting json quoted strings as expected
Updating the README to indicate this, for JSON commands.

I'm happy to contribute #2 if you're interested!

Perhaps a different bug... but the same json.arrappend when used repeatedly appears to add things twice. I admit this is unlikely - perhaps you can tell me what I'm doing wrong:
tagstr := fmt.Sprintf(`"%s"`, tag)
con.Do(ctx, con.B().JsonArrappend().Key("foo").Path("$.tags").Value(tagstr).Build())

At least on the redis side, it looks like the resulting array has each tag I've added twice, when iterating through this..

Correct me if I'm wrong, but the OM case only makes sense if using the OM itself. In my case I'm opting for raw command usage.

I mean like this: https://go.dev/play/p/T2c35nUg-YD

At least on the redis side, it looks like the resulting array has each tag I've added twice, when iterating through this..

I haven't reproduced that. Could you provide the full code?

Hi @chayim, I am going to close this issue. Feel free to create a new one if you want.


Use id property as id attribute rather than resource_uri

Hi Paul,
I was working through this tutorial using backbone-tastypie but ran into issues because the URLs generated to display details views used the id attribute values but the resource_uri attribute of the models was used when they were added to the collection. So, when I would try to get a model out of the collection by the id, it would return undefined.
I'm not sure if I ran into this because I'm doing something incorrectly, but I forked the code to change it such that the resource_uri attribute isn't used as the id.  This is a backwards incompatible change so if you think it's worth including, I could add some way to configure it.
Thanks,
Meetesh

I don't really get what the way to work with this is.
when we do things like /:id do we really want the URL to have the entire resource url?


mask = dets[:, 0].gt(0.).expand(5, dets.size(0)).t() in eval.py

what's the difference between using .gt(0.) and using dets[:,0] > 0.? why does the former filter out some boxes whose confidence scores are under 0. but the latter does not?

Same question.