Manytimes push.on('error') is called on iPad running on iOS 10 but some times push.on('registration') is called successfully

Expected Behaviour
push.on('registration') should be called successfully
Actual Behaviour
push.on('error') is called many times giving "com.google.iid error 5"error
Reproduce Scenario (including but not limited to)
Steps to Reproduce

Call PushNotification.init() method inside $ionicPlatform.ready() function

Platform and Version  iOS 10
Device iPAD mini 4
Cordova CLI version and cordova platform version
cordova --version                                    # e.g. 6.0.0
cordova platform version android                     # e.g. 4.1.1

Sample Code that illustrates the problem
$ionicPlatform.ready(function() {

var push = PushNotification.init({ "android": {"senderID": "SENDERID"},
"ios": {senderID: "SENDERID",gcmSandbox: true,alert: "true",badge: "true",sound: "true"}, "windows": {} } );

push.on('registration', function(data) {

});

push.on('notification', function(data) {

});

push.on('error', function(e) {
    alert(e.message)
});
 }

As I mentioned,sometimes I am getting device token successfully but many times I am getting above error.

@rohitbhoite based on the Google docs error 5 is Operation In Progress Another similar operation is in progress. This one was canceled. which leads me to ask are you calling init more than once?

No I am calling it only once inside run section of ionic app

 2016-11-11 00:28:11.150: GGLInstanceID | Invalid last checkin timestamp in future.
 2016-11-11 00:28:11.183: GGLInstanceID | Unable to find token in cache Error            Domain=com.google.iid Code=-25300 "(null)"

I am also getting above logs in the Xcode console

@rohitbhoite is your phone's date/time set into the future?

No it is set to current time.11th Nov.Time is also equal to local time.


kp_liberation_config add vn stuff

Kp_liberation_config is lacking some VN cdlc stuff

// Vehicle classnames which also function as ACE medical vehicles.
KP_liberation_medical_vehicles = []
added dustoff and medevac helicopters, added FOB Truck and Respawn Truck, landrover ambulance


GLSL backend: Allow only certain extensions

We're targeting WebGL 2.0 (and even 1.0 sad face) and we often get GLSL shaders that successfully compile only to turn out they used some extensions that's not available under WebGL or not available on key devices we're targeting.
It would be nice if we could specify which extensions we allow instead of the GLSL compiler automatically using any extensions it knows about. I would like the compilation to fail with some descriptive error (or at least something along the lines of Shader would require extension EXT_BLABLA, but it's not available.)
Alternatively, we can expose the list of actually used extensions (in the C API as well) and we can check it against our whitelist after compilation succeeds.
Currently, I resorted to parsing the output for #extension BLA : require but it feels like there's a better way.
I volunteer to add this, but wanted to start a discussion about any preferences on what has the best shot at getting upstreamed...

An API could be added where we would return all enabled extensions which are enabled without an ifdef check. Then you could do whatever you'd need with that information. Would that be enough?

Yeah, that would work great and should be a very minor change.

Merged.


calling metrics-mongodb.rb on a know working mongo server standalone returns no metrics

calling metrics-mongodb.rb --host localhost  returns no results, tested on a known working standalone mongo server

+1
MongoDB version: 3.2.1
Storage Engine: WiredTiger

v1.0.0 has been released with mongo 3.2 support. Can you give that a try and report back.

so, after getting a newer ruby installed, since we were using the embedded ruby from the sensu client, we were able to run the plugin and get some metrics!
$ metrics-mongodb.rb --host localhost --password xxx --user xxx
ip-10-238-31-106.mongodb.lock.queue.total 0<PHONE_NUMBER>
ip-10-238-31-106.mongodb.lock.queue.readers 0<PHONE_NUMBER>
ip-10-238-31-106.mongodb.lock.queue.writers 0<PHONE_NUMBER>
ip-10-238-31-106.mongodb.connections.current<PHONE_NUMBER>144
ip-10-238-31-106.mongodb.connections.available 50617<PHONE_NUMBER>
ip-10-238-31-106.mongodb.cursors.open 2<PHONE_NUMBER>
ip-10-238-31-106.mongodb.cursors.timedOut 1<PHONE_NUMBER>
ip-10-238-31-106.mongodb.mem.residentMb 3678<PHONE_NUMBER>
ip-10-238-31-106.mongodb.mem.virtualMb 6633<PHONE_NUMBER>
ip-10-238-31-106.mongodb.mem.mapped 0<PHONE_NUMBER>
ip-10-238-31-106.mongodb.mem.pageFaults 1470<PHONE_NUMBER>
ip-10-238-31-106.mongodb.asserts.warnings 0<PHONE_NUMBER>
ip-10-238-31-106.mongodb.asserts.errors 0<PHONE_NUMBER>

Thanks!

Thanks for the followup @neallawson and glad to hear it's working for you.


[crypto] Connect CSRNG to the cryptolib API.

Adds a layer connecting the entropy complex driver to the API
Adds checks that the entropy complex is in a good state before generating sensitive values on OTBN
Adds a basic functional test

@moidx , this is the change I mentioned to you yesterday. The KAT test (on FPGA) hangs on instantiate, whether I use the top-level interface or call the CSRNG driver directly. It doesn't hang if I insert ~5 print statements before instantiate, or run entropy_complex_check in a loop 10000 times, which makes me suspect a timing issue.

Hi @jadephilipoom, I am able to reproduce the issue. Working on debug.

Hi @jadephilipoom, I am able to reproduce the issue. Working on debug.

Opened https://github.com/lowRISC/opentitan/issues/19568 to track the issue found in this PR. I will submit a workaround to unblock this change.

Hi @jadephilipoom can you rebase to pick up https://github.com/lowRISC/opentitan/pull/19569 and see if the test passes now? Thanks!

It works! Thanks @moidx !


NoReverseMatch at /dj-rest-auth/password/reset/

I get this error: (Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name) while trying to make this request:

Anything in https://github.com/iMerica/dj-rest-auth/issues/152 ?

#152 definitely helped but after a few researches I just want to clarify for anyone that would struggle with that: dj-rest-auth makes use of Django internals, more specifically django.contrib.auth. This includes sending out an email that includes a url referring to a (Django) url with name= password_reset_confirm.
It was a bit difficult to find correct info even though this seems to be a common issue, so here are possible solutions:
Include your own dummy view
urlpatterns = [
...
    path('password-reset/confirm/<uidb64>/<token>/', TemplateView.as_view(), name='password_reset_confirm')
...
]

Use the urls from django.contrib.auth
urlpatterns = [
...
        url(r'^', include('django.contrib.auth.urls')),
...
]

Override the serializer (e.g. for a different frontend URL or custom logic) source
Override PASSWORD_RESET_SERIALIZER, with your own serializer.
REST_AUTH_SERIALIZERS = {
    'PASSWORD_RESET_SERIALIZER': 'path.to.your.CustomPasswordSerializer'
}

make this serializer inherit from the base and add your own custom save method that handles the custom logic.
from dj_rest_auth.registration.serializers import RegisterSerializer

class CustomRegistrationSerializer(RegisterSerializer):
  def save(self, request):
    #  get whatever data you need
    verify_url = ' <add your own custom url here>'
    # send the email using this new verify url

I have the same exact issue, I added the password_reset_confirm URL on my urls.py also I have a prefix "api" on my route. Any help?

The demo App is not working appropriately for reset password.

I solved it with the approach below. not sure if there's a better solution.
# forms.py

class CustomAllAuthPasswordResetForm(AllAuthPasswordResetForm):

    def save(self, request, **kwargs):
        current_site = get_current_site(request)
        email = self.cleaned_data['email']
        token_generator = kwargs.get(
            'token_generator', default_token_generator)

        for user in self.users:

            temp_key = token_generator.make_token(user)

            # save it to the password reset model
            # password_reset = PasswordReset(user=user, temp_key=temp_key)
            # password_reset.save()

            # send the password reset email
            url = <Your password_reset_confirm URL>

            context = {
                'current_site': current_site,
                'user': user,
                'password_reset_url': url,
                'request': request,
            }
            if (
                allauth_account_settings.AUTHENTICATION_METHOD
                != allauth_account_settings.AuthenticationMethod.EMAIL
            ):
                context['username'] = user_username(user)
            get_adapter(request).send_mail(
                'account/email/password_reset_key', email, context
            )
        return self.cleaned_data['email']
# settings.py
REST_AUTH = {
    'USE_JWT': True,
    'TOKEN_MODEL': None,
    'JWT_AUTH_COOKIE': 'access',
    'JWT_AUTH_REFRESH_COOKIE': 'refresh',
    'JWT_AUTH_COOKIE_USE_CSRF': False,
    'JWT_AUTH_SAMESITE': 'None',
    'JWT_AUTH_SECURE': True,
    'REST_SESSION_LOGIN': False,
    'JWT_AUTH_COOKIE_ENFORCE_CSRF_ON_UNAUTHENTICATED': False,
    'PASSWORD_RESET_SERIALIZER': 'authentication.serializers.CustomPasswordResetSerializer',
}

# serializers.py
from authentication.forms import CustomAllAuthPasswordResetForm
class CustomPasswordResetSerializer(PasswordResetSerializer):

    @property
    def password_reset_form_class(self):
        return CustomAllAuthPasswordResetForm


error: package directory 'huobi' does not exist

I use "python setup.py install"  and then this error announce.
my python version: 3.8.1

we cannot reproduce this issue, please check again


fix(build): move the setting of the branch to the deploy script so PR…

…s will run

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Error installing as root with nvm

Hello,
I'm updating my Pterodactyl installation which involves running npm install --only=production.  This produces the following error:
#  npm install --only=production

><EMAIL_ADDRESS>install /srv/daemon/node_modules/mmmagic
> node-gyp rebuild

/bin/bash: node-gyp: command not found
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file /bin/bash
npm ERR! errno ENOENT
npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-03-16T05_38_28_649Z-debug.log

Full log: https://termbin.com/2djl
It appears your install script isn't finding node-gyp, even though I have the latest LTS release of Node installed via nvm.
#  which node-gyp
/root/.nvm/versions/node/v12.16.1/bin/node-gyp
#  node-gyp --version
v6.1.0

I'm not sure how I can fix this issue.  Any help would be appreciated.

I tried installing the package manually by running the following commands:
cd node_modules
git clone https://github.com/mscdex/mmmagic.git
cd mmmagic
git checkout v0.5.3
node-gyp rebuild

The build failed and produced the following output: https://termbin.com/xakv

Steps to fix:

apt-get install node-gyp -y
npm install --only=production --unsafe-perm


Making Request against meetup API

where is the actual request to the meetup api? this is all old code: https://github.com/senecajs/seneca-meetup-provider/blob/f80cdf3dec707069bfbfb922f89bc14365ed84a9/test/live.js#L67
also, in order to make a request, you would have to write the entity integration code, like this:
https://github.com/senecajs/seneca-meetup-provider/blob/main/src/meetup-provider.ts#L118 - again this all old code
this PR does have an accurate title - it is very important to describe PRs correctly


BUG: 1.8.0 release is missing skip-build revert

Describe your issue.
The 1.8.0 release is installing no files when the install command is passed --skip-build. The faulty code apparently has been reverted as part of #15306 but for some it hasn't been included in the 1.8.0 release.
Reproducing Code Example
python setup.py install --skip-build

Error message
n/a

SciPy/NumPy/Python version information
1.8.0

If it doesn't have a backport label it doesn't get backported, I'll add a backport now.


Create a Xamarin.Forms component & CustomRenderer for Webview with GeckoView

Create a Xamarin.Forms component & CustomRenderer for Webview with GeckoView, in order to add easily GeckoView component inside a crossplatform Xamarin project.
Some reading:
Using a custom native control with xamarin forms via a custom renderer
Custom Renderer: Replacing the native control properly

https://github.com/Daddoon/Xamarin.Android.GeckoView/issues/12

Done


Strange method name

Several of our methods has a number after there name:
  searchConsumption1 = (data: { filters?: CreditOperationFilters; pageable?: Pageable }, params?: RequestParams) =>

Ok we have this method in another class but not in the same class. We generate API with modular.

Hello @RoXuS
Can you share part of schema where contains original searchConsumption and "duplicate" searchConsumption ?
And which version of swagger schema are you using ?
Just currently I'm not see a problem with local version.

@RoXuS did you see this message on console output ? Module "{moduleName}" already have method "{methodName}()" ?

No we don't have this log.
Our schema:
      "post": {
        "tags": [
          "credit-operation-api"
        ],
        "operationId": "searchConsumption",
        "parameters": [
          {
            "name": "organizationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "filters": {
                    "$ref": "#/components/schemas/CreditOperationFilters"
                  },
                  "pageable": {
                    "$ref": "#/components/schemas/Pageable"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/hal+json": {
                "schema": {
                  "$ref": "#/components/schemas/CreditPageCreditConsumptionDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    },

@RoXuS I hope that this problem was fixed in 5.0.0 :)
If not please reopen issue or ping me here

hey,
with 5.0.0, the error remains, for example
  /**
   * No description
   *
   * @tags credit-operation-api
   * @name SearchConsumption1
   * @request POST:/me/organization/credits/search-consumption
   * @secure
   */
  searchConsumption1 = (
    data: CreditOperationFilters,
    query?: { page?: number; size?: number; sort?: string[] },
    params: RequestParams = {},
  ) => ...

But we have less duplicate than on 4.4.0!
For info our two different schema:
"/organizations/{organizationId}/credits/search-consumption": {
    "post": {
      "tags": [
        "credit-operation-api"
      ],
      "operationId": "searchConsumption",
      "parameters": [
        {
          "name": "organizationId",
          "in": "path",
          "required": true,
          "schema": {
            "type": "integer",
            "format": "int64"
          }
        },
        {
          "name": "page",
          "in": "query",
          "description": "Zero-based page index (0..N)",
          "schema": {
            "type": "integer",
            "default": 0
          }
        },
        {
          "name": "size",
          "in": "query",
          "description": "The size of the page to be returned",
          "schema": {
            "type": "integer",
            "default": 20
          }
        },
        {
          "name": "sort",
          "in": "query",
          "description": "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.",
          "schema": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      ],
      "requestBody": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/CreditOperationFilters"
            }
          }
        },
        "required": true
      },
      "responses": {
        "200": {
          "description": "OK",
          "content": {
            "application/hal+json": {
              "schema": {
                "$ref": "#/components/schemas/CreditPageCreditConsumptionDto"
              }
            }
          }
        },
        "400": {
          "description": "Bad Request"
        }
      }
    }
  }
  ```
  ```
  "/me/organization/credits/search-consumption": {
    "post": {
      "tags": [
        "credit-operation-api"
      ],
      "operationId": "searchConsumption_1",
      "parameters": [
        {
          "name": "page",
          "in": "query",
          "description": "Zero-based page index (0..N)",
          "schema": {
            "type": "integer",
            "default": 0
          }
        },
        {
          "name": "size",
          "in": "query",
          "description": "The size of the page to be returned",
          "schema": {
            "type": "integer",
            "default": 20
          }
        },
        {
          "name": "sort",
          "in": "query",
          "description": "Sorting criteria in the format: property(,asc|desc). Default sort order is ascending. Multiple sort criteria are supported.",
          "schema": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      ],
      "requestBody": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/CreditOperationFilters"
            }
          }
        },
        "required": true
      },
      "responses": {
        "200": {
          "description": "OK",
          "content": {
            "application/hal+json": {
              "schema": {
                "$ref": "#/components/schemas/CreditPageCreditConsumptionDto"
              }
            }
          }
        },
        "400": {
          "description": "Bad Request"
        }
      }
    }
  },
  ```

  Thx for your 5.0.0!

other info

Hi @RoXuS !
Can you message all operations ids of this  execureSearch operations ?

Just I think ending number it is a part of "operationId" field
like searchConsumption_1

Yeah we have
"/me/organization/credits/search-consumption": {
      "post": {
        "tags": [
          "credit-operation-api"
        ],
        "operationId": "searchConsumption_1",
        "parameters": [
          {
          ...
          ```
For example.

So the issue is on our swagger generator ?

@RoXuS If you don't see this message

It means that the number endings goes from "operationId" field
I'll try to fix that at next release.
Definetely swagger-typescript-api codegenerator should crop _1, _2, _{n} in "operationId"
Currently, as quick solution you can customize route name with hook onCreateRouteName() (version 5.1.0)

We will wait your new version, np.
Thx!!

Here is my temporary solution as @js2me suggested
onCreateRouteName: (nameInfo, rawInfo) => {
  nameInfo.original = nameInfo.original.replace(/\d+$/, '')
  nameInfo.usage = nameInfo.usage.replace(/\d+$/, '')
},

Just faced this issue with following config:
import { generateApi } from 'swagger-typescript-api';
import { resolve } from 'node:path';

void generateApi({
  url: 'https://my-domain.tld/api/v3/api-docs',
  output: resolve(process.cwd(), 'src/shared/api'),
  name: 'generated',
  generateClient: true,
  httpClientType: 'axios',
});

solution from @amankkg is working for me


Initial support for Flask Integration And burn down the npcast and pdcast

It address #9 issue but I will fine-tune it this week because I have not written a django tutorial yet.
please try the pyecharts without the npcast and pdcast .

Discussion:
Flask integration has been done but I think we may optimise the javascript library list depending what the end developer needs but I have not figured it out yet. For now, all javascript libraries are downloaded as a full list down to the browser. It could be a over-kill for a bar chart. With that said, the developer should be smart enough not to include those geo related javascript libraries.
npcast and pdcast are not intuitive because additional documentation are required. What's intuitive way? It is the passing of df.index, df.values, which the end developer understands. Overall, the new implementation uses the same type cast mechanism so it shall not cause any regressions.

Try this on this PR. It works
import pandas as pd
import numpy as np

from pyecharts import Bar

index = pd.date_range('3/8/2017', periods=6, freq='M')
df1 = pd.DataFrame(np.random.randn(6), index=index)

df2 = pd.DataFrame(np.random.randn(6), index=index)

dtvalue1 = [i[0] for i in dtvalue1]
dtvalue2 = [i[0] for i in dtvalue2]

bar = Bar('Bar chart', 'Profit and loss situation')
bar.add('profit', df1.index, df1.values)
bar.add('loss', df2.index,  df2.values)
bar.render()

And I will submit it as a test case


Feat: Add tests for module epochs

PR Standards
Opening a pull request should be able to meet the following requirements

Closes #XXX
This PR add some tests to epochs module
For Author:

[ ]  Targeted PR against correct branch
[ ]  included the correct type prefix in the PR title
[ ]  Linked to Github issue with discussion and accepted design
[ ]  Targets only one github issue
[ ]  Wrote unit and integration tests
[ ]  All CI checks have passed
[ ]  Added relevant godoc comments

For Reviewer:

[ ]  confirmed the correct type prefix in the PR title
[ ]  Reviewers assigned
[ ]  confirmed all author checklist items have been addressed

After reviewer approval:

[ ]  In case targets main branch, PR should be squashed and merged.
[ ]  In case PR targets a release branch, PR should be rebased.

test failing

@mtsitrin test is passing now


Crashes with 'Too many pending tasks in queue'

In my app I need to search through all the entries in the database according to some search criteria (about 4000 entries), so I load all the entries using Promise.all
const results = await Promise.all(images.map((value) => {
      return getImageTag(value, search_term_split[0]);
}));

under the hood getImageTag tries to get a value from the database
function getImageTag(file: string, arg: string): Promise<string> {
    return getValueIfExists(db, `^${file}^tags^${mapArgToXmp(arg)}`);
}

function getValueIfExists(db, search_path, get_path = search_path) {
    return await db.exists(search_path) ? db.getData(get_path) : "-";
}

and this crashes the app with Too many pending tasks in queue
A possible solution would be to add an optional parameter to JsonDBConfig to set maximum pending tasks because if I modify AsyncLock constructor in JsonDB.js to
lock = new AsyncLock({maxPending: 10000});

everything works and is lightning fast

I see why you're hitting the limit right away.
function getValueIfExists(db, search_path, get_path = search_path) {
    return await db.exists(search_path) ? db.getData(get_path) : "-";
}

Doesn't await the getData().
function getValueIfExists(db, search_path, get_path = search_path) {
    return await db.exists(search_path) ? await db.getData(get_path) : "-";
}

If you're looking for performance, there is even a faster way:
import {DataError} from 'node-json-db';

function getValueIfExists(db, search_path, get_path = search_path) {

	   try {
	              return await this.getData(dataPath)
	          } catch (e) {
	              if (e instanceof DataError) {
	                  return '-'
	              }
	              throw e
	          }
}

This way you only have one call of getData instead of two (exists does a call under the hood)

I replaced the function with the one you suggested, now I don't have to call exists twice, that's great, bu the issue still persists because
const results = await Promise.all(images.map((value) => {
      return getImageTag(value, search_term_split[0]);
}));

works on an array of 4000 entries

Instead of creating a promise for each image, you should chunk the image array and run a promise on each chunk of 500 images. You'll get the same speed increase without reaching any limit (I'm even suprised NodeJS let your create 4000 Promises in one go).
Check Lodash Chunk:
https://lodash.com/docs#chunk
https://www.npmjs.com/package/lodash.chunk

As far as I know, the maximum number of promises created with Promise.all is 2 million, so there is no need to chink the data, chunking the data actually resulted in a little worse performance and less understandable code. What is the problem with letting the user set the maxPending value, I am confused

I've rewrote the locking logic and change dependency.
v2.1.3 shouldn't need to set any maxPending etc ...
Concurrent read won't be blocking anymore.

Great


Not selecting camera image

I can select camera from the intent chooser, i can make a photo, but as i click use, the webview does not respond anymore and the image is unselected. Device is SGS4.
Fiddle with this problem a couple days now, did not find a solution yet, hoped you solved it but nope.

Nope, fixed it by myself. Problem was the launchMode - the activity got recreated after choosing cam image. Solution was adding the flag android:launchMode="singleInstance" to  the activity in manifest.

that's really good.


2024 programmatically use free software graph database

2024 programmatically use free software graph database

What is the most valuable, free software, graph database, skill set to learn?

Should the programmatical use of the graph database be python via Bolt protocol on ongdb? Or should the connection use some different protocol?

Do we need ongdb?

I recall reading that some queries are not available on neo4j personal (only paid enterprise) and that ongdb was forked to keep it, but unfortunately I cannot find the page where I read this.
( https://neo4j.com/pricing/ )( formaly /editions ) says on the paid professional:

Support for analytical queries with Parallel Runtime

Does it mean we cannot do some Cypher queries/graph algorithms (unless in paid enterprise)? Are these available in SPARQL? And is it a better choice?

My research now shows me only two functional limitations on neo4j personal:

unable to delete, create and alter databases ( https://stackoverflow.com/questions/23310114/how-to-reset-clear-delete-neo4j-database#comment127325229_60933970 thanks to @james-so)
200k vertexes and 400k edges ( https://neo4j.com/pricing/ )

My use case is not impacted by these neo4j personal limitations. On the other hand, at the moment, my research leads me to believe python with package neo4j and Bolt protocol is the best programmatical use of a free software graph db. Comments on this perception, please?

Do ongdb users connect via Bolt 1.7 ? - I was unable to.

The release notes of version 5.1 contains a table of compatibility. It says version 3.5 and 4.0  are the two last ones that support certainly Bolt 1.7.
( https://pypi.org/project/neo4j/5.1.0/ )
Release notes for 4.1 to 5.0 will hold the description of how to use Bolt 1.7, but as we see in 5.1, they actually don't know if it works or not.
I use pipenv on debian, and I was unable to install an older version of python package neo4j:
ERROR: Could not find a version that satisfies the requirement neo4j4.0
ERROR: No matching distribution found for neo4j4.0

Please help and advise. It would be great to hear (have it documented) from users.
All release notes: ( https://pypi.org/project/neo4j/#history )
tracking (also asked on..)

( https://github.com/graphfoundation/ongdb/issues/106 )

This issue tracker is about the Python driver for Neo4j, not the whole ecosystem of Graph databases.
So neither do your questions fit the issue tracker nor do I actually have any answers to your questions. For general questions like this, I recommend trying one of the following platforms:

Neo4j Online Community: https://community.neo4j.com/
StackOverflow: https://stackoverflow.com/questions/tagged/neo4j+python
(Might not be ideal, as SO doesn't allow questions asking for opinions, e.g., "what's the best tool for XYZ").
Discord: https://discord.gg/neo4j


Add support for the syslog-ng Opensearch output

Describe the solution you'd like
Add dedicated Opensearch output for syslog-ng. Currently only Elasticsearch exists: https://kube-logging.dev/docs/configuration/plugins/syslog-ng-outputs/elasticsearch/
Describe alternatives you've considered
Use Elasticsearch output

How would that be different from the current elasticsearch output? Only by name?

Tbh I thought there might be a difference like for FluentD Outputs but I haven't looked at it in detail 😅

I would be hesitant to add another output for now if it doesn't have a clear benefit (other than it has a more obvious name). I would however add some documentation bits here and there to let users discover more easily.

Adding the docs is also fine for me. Maybe you can also add an example for a Opensearch datastream.

It would be appreciated if someone who actually uses it could give an example here and then I'm happy to incorporate it into the docs.

Not stale, didn't had the time to test this myself


GOA Skate Species disappear from certain years

Issue

I run the GOA skate assessment. This assessment divides skates into three groups. My biomass values from last year's assessment match up with the ones produced from GAP. However the third group "other skates", the biomass values for 1990, 1993 and 1996 do not match up. The GAP values are significantly lower. After doing some investigating, I discovered that species_code 435, 471 and 472 were not present in GAP those years and represent the bulk of the "other skate" biomass in those years. The three species-code start appearing in 1999 and their biomass values from 1999 forward match up from to last years assessment values. So my issue/question is what happened to those species code in 1990, 1993 and 1996.
Attached is an image of how I quaried that data from GAP

Hi Lee,
The taxonomic confidence levels for those three species pre-1999 are fairly low, so we have decided to only include those records from 1999-on as the standard product in GAP_PRODUCTS. Pinging @Ned-Laman-NOAA just in case he has any insight about including these skates pre-1999 in the assessment.
To get those skate records pre-1999, we would need to do a custom pull from gapindex, which is the package used to create the GAP_PRODUCTS tables. So something like:
## devtools::install_github("afsc-gap-products/gapindex")
library(gapindex) #v2.2.0

## Connect to Oracle using your AFSC database credentials
sql_channel <- gapindex::get_connected()

## Pull other skate data, 1990-2023
gapindex_data <- gapindex::get_data(
  year_set = c(1990:2023),
  survey_set = "GOA",
  spp_codes = c(400, 420, 435, 440, 455, 460, 471, 472, 480, 485),
  haul_type = 3,
  abundance_haul = "Y",
  pull_lengths = T,
  sql_channel = sql_channel)

## Fill in zeros and calculate CPUE
cpue <- gapindex::calc_cpue(racebase_tables = gapindex_data)

## Calculate stratum-level biomass, population abundance, mean CPUE and
## associated variances
biomass_stratum <- gapindex::calc_biomass_stratum(
  racebase_tables = gapindex_data,
  cpue = cpue)

## Calculate aggregated biomass and population abundance across subareas,
## management areas, and regions
biomass_subareas <- gapindex::calc_biomass_subarea(
  racebase_tables = gapindex_data,
  biomass_strata = biomass_stratum)

subset(x = biomass_subareas,
       subset = AREA_ID == c(803, 804, 805),
       select = c(SURVEY_DEFINITION_ID, AREA_ID, YEAR, SPECIES_CODE,
                  BIOMASS_MT, BIOMASS_VAR))

Thanks for the clarifying response.
I have been thinking about this and was wondering why weren't the 435, 471 and 472 skates pre-1999 moved to the species code 400 (skate unid)? For the assessment, the 435, 471 and 472 skates only impact the "other skate" category and I don't need to know the species level for skates in that category.

I'd support Lee's notion of rolling up the pre-99 uncertainly ID'd skates into Rajidae/skate unid. (400). We confidently know they were skates and we have the weights and counts so we don't want to just "leave them out."
There is a real challenge here with how we manage the on/off grouping of taxa and is part of an ongoing effort to develop and modernize the taxonomic side of our database and data management systems so I don't want to give the impression that this is trivial. It will take some time to implement this.

Hi @Lee-Cronin-Fine-NOAA
Hopefully these responses and/or code will help you with this issue at least in the short term.
@Ned-Laman-NOAA : would that involve changing species_code values within RACE_DATA/RACEBASE pre-1999 or via the GROUP_CODE functionality in gapindex to create aggregations?

@zoyafuso-NOAA I think we should tap into the taxonomic brain trust on this one, but believe that whenever we're downgrading a species ID due to confidence we should be providing an aggregation option to the higher confidence ID level. So in this case, rolling those skates up to Rajidae from the spp. level during that low spp. confidence stanza makes sense to me. They were there, we have the data, we don't want it to drop out entirely, just get confidently renamed and appropriately aggregated.

My mistake, if we are aggregating to the next taxonomic level up, we would be rolling 435, 471, and 472 up to SPECIES_CODE 405 (Bathyraja sp.) pre-1999 (even though Bathyraja parmifera was renamed to Arcoraja parmifera). SPECIES_CODE 405 is not in the filter that @Lee-Cronin-Fine-NOAA uses in the query above and the inclusion of SPECIES_CODE 405 could introduce other mismatches. So regardless of what we do in the future with GAP_PRODUCTS, I think @Lee-Cronin-Fine-NOAA should use a custom pull from gapindex as provided above as this now creeps into the arena of non-standard requests.
@Lee-Cronin-Fine-NOAA , can you confirm how well the code above matches data you've used in the past.

Hey all, I am just reviewing issues and making sure we've addressed them. @Lee-Cronin-Fine-NOAA did this solution work for you?

I think we can close this and Lee can create another issue if something else comes up.


temporarily disable or skip elasticsearch callback

I have a model with include Elasticsearch::Model::Callbacks. I have a task that imports a lot of data -- I'm going to reindex at the end anyway, so would like to skip the elasticsearch callbacks on .save!.
Are there any quick tricks for disabling or skipping callbacks? Something like instance.save(:elasticsearch => false)?

I would like to suggest to build your own callbacks for controlling your indexing based on your context instead using the default callbacks.

Hi, as @rubyrider mentions, in complex applications, you'd usually implement your own callbacks -- the automatic Callbacks module is basically only a starting point.
But when it comes to your question, there isn't a configuration for disabling callbacks declaratively, and when I started snooping around the code during preparing my answer to your question, it seems like the Callbacks module would have to support additional methods to do something like http://apidock.com/rails/ActiveSupport/Callbacks/ClassMethods/skip_callback.
However, with the automatic or custom callbacks, it would be easy to implement the conditional logic for executing Elasticsearch callbacks, although with some more or less of a workaround:
class ActiveRecord::Base
  cattr_accessor :skip_elasticsearch_callbacks
end

ActiveRecord::Base.skip_elasticsearch_callbacks = true

class Article < ActiveRecord::Base
  include Elasticsearch::Model
  include Elasticsearch::Model::Callbacks unless skip_elasticsearch_callbacks
end

You can now disable or enable the mixing-in of the callbacks module (again, either the automatic one or custome one) by setting the ActiveRecord::Base.skip_elasticsearch_callbacks attribute.


I ask nothing more than their Slice on a Plate!

First cut at SlicePlate. There probably should be a ticket for this. I forgot to make one.
Anyway, it's missing tests for hitting column limits and things, but the code which implements that is very simple. I'll come back and write tests which specifically exercise those cases. For now, this is enough to get us started.

[ch1072]

Totally fine merging PRs lacking tests to keep us moving. But I wouldn't feel comfortable going into production until the tests are added :)

@alissapajer It has tests. What is not tested is the column/row limit breaking. Everything else is tested and solid though.


Update dev_setup_osx.rst to get it up-to-date

Update the osx dev doc to get it up-to-date.
The reasons for these changes are below:
Homebrew
Homebrew failed to install using the old URL, returning:
curl: (22) The requested URL returned error: 404 Not Found
New URL (off their website):
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
virtualenvwrapper
Trying pip install virtualenvwrapper fails because six 1.4.1 is deprecated.
Running sudo pip install virtualenvwrapper --ignore-installed six fixes this
Install PostgreSQL
"Start the DB in a new shell:" rephrased for clarity to "Open a new shell and start the DB".
When I first went through the doc, I didn't know what postgres -D /usr/local/var/postgres did. Based on the instructions, I thought it opened the the DB in a new shell automatically.
Running nginx
After trying to run nginx after setting everything up properly, I get:
"nginx: [emerg] open() "/path/to/security_monkey/devlog/security_monkey.access.log" failed (2: No such file or directory)"
To fix this, I run:
mkdir devlog
touch devlog/security_monkey.access.log

Coverage remained the same at 51.801% when pulling 208f45e1807301fbed0ba41eaf9127681f3b8daa on badraufran:feature/update_dev_setup_osx_doc into 5f429846be71e8a08653e1b50d77244db3501c38 on Netflix:develop.

@mikegrima - can you confirm the --ignore-installed six is necessary on OS X?
sudo pip install virtualenvwrapper --ignore-installed six
The rest of this looks good to me.

I was able to install virtualenvwrapper without adding --ignore-installed six (running Sierra).
I am also running a much newer version of six:
$ pip freeze | grep six
six==1.10.0

It is worth noting that after I install Homebrew, I immediately install python 2.7+ and 3.5+ from homebrew. So, I think we should update the doc to instruct the user to install the latest Python 2.7 off hombrew so they aren't using the default Python with macOS.
@badraufran ^^ Can you update the doc with these instructions? You can then remove the --ignore-installed six line.

Good point. I've updated the doc adding a sudo brew install python step before virtualenv.

Should pip be installed after Python?

Coverage remained the same at 51.801% when pulling ffd04a6acc2fbfffee2f4bff0e79f24ccf3175a1 on badraufran:feature/update_dev_setup_osx_doc into 5f429846be71e8a08653e1b50d77244db3501c38 on Netflix:develop.

Coverage remained the same at 51.801% when pulling ffd04a6acc2fbfffee2f4bff0e79f24ccf3175a1 on badraufran:feature/update_dev_setup_osx_doc into 5f429846be71e8a08653e1b50d77244db3501c38 on Netflix:develop.

We could run pip install --upgrade pip after installing Python. Pip is installed with Python so we'd only need to update it.
I'd remove the Install Pip step.
Install Homebrew
~Install Pip~
Install Python
Upgrade Pip

Coverage remained the same at 51.801% when pulling 522b654aa31e7a00cba5e6df8dab76bcb239e1b4 on badraufran:feature/update_dev_setup_osx_doc into 5f429846be71e8a08653e1b50d77244db3501c38 on Netflix:develop.


Trino DB integration guide

We need to add a guide on how to connect to trino and visualize it.

we want to create a user guide for trino db, the structure should be same as for the other integrations (example), (you can use an existing guide as starting point)
note that there might be some stuff that will break because we don't have 100% compatibility with all databases so please report any problems so we decide if we'll support them or not.
trino has a docker image: https://hub.docker.com/r/trinodb/trino
and a sqlalchemy connector: https://pypi.org/project/sqlalchemy-trino/

@TegveerG: when we assign an issue we ask the contributor to write an acceptance criteria (AC) before starting the contributions. these are bullet points that help us ensure we're on the same page, so please take a look at the task and related material in detail and write the list shortly explaining what you'll do

Acceptance Criteria:

Use existing PostgreSQL Client guide as template

Contents (similar to PostgreSQL): fetching Trino DB docker image, loading sample data through sqlalchemy, querying, plotting, and removing container.

correct, go ahead!

@TegveerG: did you move this to done in Asana? keep it in todo, doing or backlog. otherwise it'll be automatically closed here

Asana did it without any heads up, changed it to doing

yeah, this has happened before. unsure why it's happening then

Hi @edublancas, I am facing problems when writing the pandas dataframe to a SQL Database. When using
df.to_sql(con=engine, schema="default", name="abcxyz", method="multi", index=False), the following error is shown:
ProgrammingError: (trino.exceptions.TrinoUserError) TrinoUserError(type=USER_ERROR, name=NOT_SUPPORTED, message="This connector does not support creating tables", query_id=20230523_221653_00036_amwuw)

I tried working around it by reading in the dataframe using Connection = engine.connect(), but I then get permission errors.
The docker instance runs and closes fine. Just need to figure out this issue and we should be good.

let's do some quick research to see if there are other connectors available.
if not, then let's stick with sqlalchemy-trino and just add a note saying that writing pandas data frames is not supported

Hi @edublancas, I reached out on Trino's Slack channel and got the df.to_sql() code to work. I used the built-in memory catalog/connector this time instead of the default system catalog. They recommended using either postgres, memory, iceberg etc. However, even though it ran, the docker volume did not get updated with the new taxi df. Moreover, using large chunk sizes (~100,000) breaks the code. Therefore, I am currently experimenting with a subset of the taxi df. Next, I connected to JupySQL like so %sql trino://user@localhost:8080/memory, it ran fine. The error I receive is when running %sqlcmd tables:
NoSuchTableError: schema is required

Update from last comment:
The schema is present as "default" and the written "taxi" table is under the schema. However, Trino throws UserError when writing the whole taxi df (1.4 million rows). A workaround is to increase the query.max-length parameter from the default 1,000,000 to max size of 1,000,000,000 in the config properties file etc/config.properties. I could not find this file in the trino installation in my conda env and, hence, made it manually. I tried updating the parameter with a minimal configuration for the coordinator but could not get query length to increase. Any help on that end is appreciated if we want to move ahead with doing so on the walkthrough.
Otherwise, querying, parameterizing, and CTEs work but plotting throws UsageError UsageError: unrecognized arguments: --schema default'. The histogram code I input is:%sqlplot histogram --table taxi --schema default --column trip_distance`.

@TegveerG @edublancas did we also submit a PR to trino's docs?

I did not when building the integration for Trino. @edublancas shall await your reply

@idomic: https://github.com/ploomber/contributing/issues/61


Time consuming about planning

Hello, below video shows my reproduction about dual chaser on our robots. And I found that each planning takes few seconds for next goal. The horizon in default.yaml is set as 3.0, the horizon in target2d_2s.yaml is 4.0. Is there any suggestion about this?
https://github.com/icsl-Jeon/dual_chaser/assets/26763294/7b441e54-e711-429d-a080-17abbe791b22

The problem is caused by myself. The CMAKE_BUILD_TYPE must be release. The speed will be normal.


fix typo

fix typo

/check-cla

/check-cla

/check-cla

/retest

/ok-to-test

@rura6502 Thank you for the contribution. This PR seems about fixing a typo in content/ko/docs/concepts/storage/volumes.md.
This PR includes other commits. This is not a appropriate status.
It needs to be resolved. I think it is because of "target (base) branch" (currently, it is kubernetes:dev-1.20-ko.5) is miss-selected. Why don't you change target branch of this PR to master branch?

@rura6502 Thank you for the bug fix !
/lgtm
/approve


docs: add decision record about create/update timestamps

What this PR changes/adds
Adds a decision record about how all or EDC entities will get a createTimestamp and an lastUpdateTimestamp.
Why it does that
Traceability, auditability.
Further notes
removed an unused method in DataRequest.java
Linked Issue(s)
Documents #1370
Checklist

[ ] added appropriate tests?
[ ] performed checkstyle check locally?
[ ] added/updated copyright headers?
[ ] documented public classes/methods?
[x] added/updated relevant documentation?
[ ] assigned appropriate label? (exclude from changelog with label no-changelog)
[x] formatted title correctly? (take a look at the CONTRIBUTING and styleguide for details)

Codecov Report

Merging #1767 (da1058e) into main (2d4e898) will increase coverage by 0.13%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1767      +/-   ##
==========================================
+ Coverage   67.63%   67.77%   +0.13%
==========================================
  Files         792      795       +3
  Lines       16933    16968      +35
  Branches     1076     1079       +3
==========================================
+ Hits        11453    11500      +47
+ Misses       5017     5005      -12
  Partials      463      463

Impacted Files
Coverage Δ

...nnector/spi/types/domain/transfer/DataRequest.java
24.56% <0.00%> (+4.56%)
:arrow_up:

...aceconnector/extension/jersey/JerseyExtension.java
100.00% <0.00%> (ø)

...tension/jersey/validation/ResourceInterceptor.java
91.66% <0.00%> (ø)

...jersey/validation/ResourceInterceptorProvider.java
100.00% <0.00%> (ø)

...n/jersey/validation/ResourceInterceptorBinder.java
100.00% <0.00%> (ø)

...negotiation/store/SqlContractNegotiationStore.java
87.93% <0.00%> (+0.06%)
:arrow_up:

...econnector/extension/jersey/JerseyRestService.java
95.00% <0.00%> (+0.55%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us.


How do i filter for just ARGs ?

CARD now has more than just acquired "antiobiotic resistant genes" (ARGs).
My old filtering of the card.json no longer gives me just ARGs. I get lots of virulence genes and efflux pumps etc.
What are the terms I should be filtering on?
I am currently using:

model_type IS protein homolog model
NOT_HAVE model_param.snp
HAS model_sequences.sequence

Any help appreciated!

@tseemann each AMR detection model has the following in the card.json. The card.json is index by model_ids.
    "3427": {
        "model_id": "3427",
        "model_name": "OXA-260",
        "model_type": "protein homolog model",
        "model_type_id": "40292",
        "model_description": "The protein homolog model is an AMR detection model. Protein homolog models detect a protein sequence based on its similarity to a curated reference sequence. A protein homolog model has only one parameter: a curated BLASTP bitscore cutoff for determining the strength of a match. Protein homolog model matches to reference sequences are categorized on three criteria: perfect, strict and loose. A perfect match is 100% identical to the reference sequence along its entire length; a strict match is not identical but the bitscore of the matched sequence is greater than the curated BLASTP bitscore cutoff. Loose matches are other sequences with a match bitscore less than the curated BLASTP bitscore.",
        "model_param": {
            "blastp_bit_score": {
                "param_type": "BLASTP bit-score",
                "param_description": "A score is a numerical value that describes the overall quality of an alignment with higher numbers correspond to higher similarity. The bit-score (S) is determined by the following formula: S = (\u03bb \u00d7 S \u2212 lnK)/ ln2 where \u03bb is the Gumble distribution constant, S is the raw alignment score, and K is a constant associated with the scoring matrix. Many AMR detection models use this parameter, including the protein homolog and protein variant models. The BLASTP bit-score parameter is a curated value determined from BLASTP analysis of the canonical reference sequence of a specific AMR-associated protein against the database of CARD reference sequence. This value establishes a threshold for computational prediction of a specific protein amongst a batch of submitted sequences.",
                "param_type_id": "40725",
                "param_value": "550"
            }
        },
        "model_sequences": {
            "sequence": {
                "5622": {
                    "protein_sequence": {
                        "accession": "ENU54757.1",
                        "sequence": "MNIKAHLLITSAIFISACSPYIVTANPNHSASKSDVKAEKIKNLFNEAHTTGVLVIQQGQTQQSYGNDLARASTEYVPASTFKMLNALIGLEHHKATTTEVFKWDGKKRLFPEWEKDMTLGDAMKASAIPVYQDLARRIGLELMSKEVKRVGYGNADIGTQVDNFWLVGPLKITPQQEAQFAYKLANKTLPFSQKVQDEVQSMLFIEEKNGNKIYAKSGWGWDVNPQVGWLTGWVVQPQGNIVAFSLNLEMKKGIPSSVRKEITYKSLEQLGIL"
                    },
                    "dna_sequence": {
                        "accession": "APOR01000009.1",
                        "fmin": "341736",
                        "fmax": "342561",
                        "strand": "+",
                        "sequence": "ATGAACATTAAAGCACACTTACTTATAACAAGCGCTATTTTTATTTCAGCCTGCTCACCTTATATAGTGACTGCTAATCCAAATCACAGCGCTTCAAAATCTGATGTAAAAGCAGAGAAAATTAAAAATTTATTTAACGAAGCACACACTACGGGTGTTTTAGTTATCCAACAAGGCCAAACTCAACAAAGCTATGGTAATGATCTTGCTCGTGCTTCGACCGAGTATGTACCTGCTTCGACCTTCAAAATGCTTAATGCTTTGATCGGCCTTGAGCACCATAAGGCAACCACCACAGAAGTATTTAAGTGGGATGGTAAAAAAAGGTTATTCCCAGAATGGGAAAAGGACATGACCCTAGGCGATGCCATGAAAGCTTCCGCTATTCCAGTTTATCAAGATTTAGCTCGTCGTATTGGACTTGAGCTCATGTCTAAGGAAGTGAAGCGTGTTGGTTATGGCAATGCAGATATCGGTACCCAAGTCGATAATTTTTGGCTGGTGGGTCCTTTAAAAATTACTCCTCAGCAAGAGGCACAGTTTGCTTACAAGCTAGCTAATAAAACGCTTCCATTTAGCCAAAAAGTCCAAGATGAAGTGCAATCCATGCTATTCATAGAAGAAAAGAATGGAAACAAAATATACGCAAAAAGTGGTTGGGGATGGGATGTAAACCCACAAGTAGGCTGGTTAACTGGATGGGTTGTTCAGCCTCAAGGGAATATTGTAGCGTTCTCCCTTAACTTAGAAATGAAAAAAGGAATACCTAGCTCTGTTCGAAAAGAGATTACTTATAAAAGCTTAGAACAATTAGGTATTTTATAG",
                        "partial": "0"
                    },
                    "NCBI_taxonomy": {
                        "NCBI_taxonomy_cvterm_id": "42791",
                        "NCBI_taxonomy_name": "Acinetobacter baumannii NIPH 1362",
                        "NCBI_taxonomy_id": "1217642"
                    }
                }
            }
        },
        "ARO_accession": "3001716",
        "ARO_id": "38116",
        "ARO_name": "OXA-260",
        "ARO_description": "OXA-260 is a beta-lactamase found in Acinetobacter spp.",
        "ARO_category": {
            "36026": {
                "category_aro_accession": "3000017",
                "category_aro_cvterm_id": "36026",
                "category_aro_name": "OXA beta-lactamase",
                "category_aro_description": "OXA beta-lactamases were long recognized as a less common but also plasmid-mediated beta-lactamase variety that could hydrolyze oxacillin and related anti-staphylococcal penicillins. These beta-lactamases differ from the TEM and SHV enzymes in that they belong to molecular class D and functional group 2d. The OXA-type beta-lactamases confer resistance to ampicillin and cephalothin and are characterized by their high hydrolytic activity against oxacillin and cloxacillin and the fact that they are poorly inhibited by clavulanic acid. Amino acid substitutions in OXA enzymes can also give the ESBL phenotype. The OXA beta-lactamase family was originally created as a phenotypic rather than a genotypic group for a few beta-lactamases that had a specific hydrolysis profile. Therefore, there is as little as 20% sequence homology among some of the members of this family. However, recent additions to this family show some degree of homology to one or more of the existing members of the OXA beta-lactamase family. Some confer resistance predominantly to ceftazidime, but OXA-17 confers greater resistance to cefotaxime and cefepime than it does resistance to ceftazidime.",
                "category_aro_class_name": "AMR Gene Family"
            },
            "35951": {
                "category_aro_accession": "0000032",
                "category_aro_cvterm_id": "35951",
                "category_aro_name": "cephalosporin",
                "category_aro_description": "Cephalosporins are a class of beta-lactam antibiotics, containing the beta-lactam ring fused with a dihydrothiazolidine ring. Together with cephamycins they belong to a sub-group called cephems. Cephalosporin are bactericidal, and act by inhibiting the synthesis of the peptidoglycan layer of bacterial cell walls. The peptidoglycan layer is important for cell wall structural integrity, especially in Gram-positive organisms.",
                "category_aro_class_name": "Drug Class"
            },
            "36017": {
                "category_aro_accession": "3000008",
                "category_aro_cvterm_id": "36017",
                "category_aro_name": "penam",
                "category_aro_description": "Penams, often referred to as penicillins, are a group of antibiotics derived from Penicillium fungi. Penicillin antibiotics are historically significant because they are the first drugs that were effective against many previously serious diseases such as syphilis and Staphylococcus infections. Penicillins are still widely used today, though many types of bacteria are now resistant. All penicillins are beta-lactam antibiotics in the penam sub-group, and are used in the treatment of bacterial infections caused by susceptible, usually Gram-positive, organisms.",
                "category_aro_class_name": "Drug Class"
            },
            "36000": {
                "category_aro_accession": "0001004",
                "category_aro_cvterm_id": "36000",
                "category_aro_name": "antibiotic inactivation",
                "category_aro_description": "Enzymatic inactivation of antibiotic to confer drug resistance.",
                "category_aro_class_name": "Resistance Mechanism"
            }
        }
    },

The model types are as follows:
cat card.json | python -m json.tool | grep '"model_type":' | sort -h | uniq
        "model_type": "efflux pump system meta-model",
        "model_type": "gene cluster meta-model",
        "model_type": "protein domain meta-model",
        "model_type": "protein homolog model",
        "model_type": "protein knockout model",
        "model_type": "protein overexpression model",
        "model_type": "protein variant model",
        "model_type": "rRNA gene variant model",

@raphenya can you highlight on how to differentiate ARO versus VIRO versus MOBIO entries?

@arpcard @tseemann VIRO(https://github.com/arpcard/viro) describes virulence ontology and MOBIO(https://github.com/arpcard/mobio) describes mobile genetic elements. They are both separate from ARO terms at the moment. There are no VIRO and MOBIO terms in the card.json. card.json contains only ARO terms.

Thank you, this clarified some things for me!


k2-283 Separate DNS Service from Helm

Separate DNS from Helm Services Deployment.
Need separate template for each kubernetes version,  default template pattered after kubernetes v1.4 template for now.
All infrequently changed variables are defaulted in defaults/main.yaml.
Any of those variables can be overridden by setting in the main config.yaml, but most should never be touched.
https://github.com/samsung-cnct/k2/issues/283

Blocked by: https://github.com/samsung-cnct/kraken-ci-jobs/pull/169  merging.  Otherwise pipelet will never work with the new services layout.

moving to recon branch instead.


When using modal of type prompt the styling of the input is off

Current Behavior
When using modal of type prompt the styling of the input is off.

Expected Behavior
On the skeleton.dev website the input looks great on the example prompt modal, I want the imput of all my prompt modals to look like that.

I've tried changing the theme and restarting my app but it didn't work, maybe this isn't a bug and I'm just missing a configuration step or something, but I would love to know how to configure it if that's the case.
Steps To Reproduce
Use the prompt modal with the exact same code as in the example on the website.
Link to Reproduction / Stackblitz
No response
More Information
No response

@ChrisPoul have you installed the tailwind-forms plugin? if not please install it by following the instructions here: https://www.skeleton.dev/elements/forms#install-the-forms-plugin

Yes that was what I was missing, thank you!

Yes that was what I was missing, thank you!


--compile should generate executable

Currently --compile just does not execute the generated code.
Instead, it should also generate some kind of executable at a known location
(e.g. by adding a shebang to the output, wrapping it, ...).

I am afraid I don't fully grasp this issue.

What kind of executable do you have in mind? How does this differ between the different backends, that is, does this only amount to changing the shebang, if we would choose to go into this direction or is there something else to take into consideration?
Compiling it to a "known location" is already available via the --out option, no?
What platforms do we want to target with this? Only UNIX systems or also Windows (shebangs won't work there)?

Can you perhaps eleborate a bit?

Each Backend will need to decide what it constitutes to compile. Right now we already have abstractions in place where each backend can say how it compiles Effekt code. This should be extended to configure what --compile means.

I think it might be good to have both options

--compile: Compile an Effekt source file to an executable.
--source (not exactly sure about the name yet): Transform an Effekt source file into the source language of the respective backend. This might be nice to have to manually inspect the generated code.

This means we would keep the current functionality of --compile and only rename it to --source. For the "new" --compile we take the output of --source and pass through some backend specific commands. For that, it would be helpful if you could let me know what this usually involves. That is, which backend specific commands do you typically manually invoke?
Something else to take into consideration is the IO involved here to call the backend specific compiler as a Process. Since the compiler seems to be prohibited from using IO, I would value your input here to which degree calling the backend specific compiler would break the invariant mentioned here:
https://github.com/effekt-lang/effekt/blob/523e11bea6c862935c86e84f8660a4d88574b95d/effekt/shared/src/main/scala/effekt/Compiler.scala#L84-L90

Maybe we can keep --compile and call the new one --build ? @marzipankaiser @phischu any opinions?

Resolved by PR #294.


Modified the language in README.md file.

Better language in README files helps contributors to be able to work with more productivity and a better understanding of the motive.

Thanks for this @rohan37kumar !


single -cnn 3Dpatch moudle

Are the models used by 3Dpatch multiple CNN and single CNN all Conv4_FC3?

Hello,
This model corresponds to the one used in our paper. We only provided the final architecture that was selected after a basic architecture search excluding our test set.
However, you can easily add your custom models by writing their classes in clinicadl/tools/deep_learning/models/patch_level.py and importing then in clinicadl/tools/deep_learning/models/__init__.py.
Then you should be able to train them by calling `clinicadl train patch (multi)cnn <caps_dir> t1-linear <tsv_path> <results_dir> <custom_class_name>.
Please tell us if you encounter any problem !


how to use this?

I'm trying to use it but failed. I modified radarData.js, changed radar_data[], then I opened index.html,it only shows "^ Item in dispute, additional discussion and context to be provided."

You may be encountering the bug described in issue #8. One suggestion in that thread is to use a newer version of underscore.js.

Got it.


Add MacPorts installation

Q
A

🐛 Bug fix?
no

🚀 New feature?
no

⚠ Deprecations?
no

❌ BC Break
no

🔗 Related issues
#217

❓ Documentation
yes

Description
Add MacPorts installation guide. Huge thanks to our awesome contributor @herbygillot

Thanks @wbeuil , @eliecharra


This commit will allow mpd to handle the play_media service.  Even th…

Description:
This change add the ability for the mpd component to load an existing playlist, via the play_media service.  The intent is that this would be used during a script/scene.
Related issue (if applicable): #
Example entry for configuration.yaml (if applicable):
script:
  relaxing_music:
    sequence:
    - service: media_player.play_media
      data:
        entity_id: media_player.main
        media_content_type: playlist
        media_content_id: relaxing_playlist

Checklist:
If code communicates with devices:

[X] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

…ough there's not really a place in the UI for it, it will now be possible to set a playlist as part of a script, and ultimately a scene.

Looks good! :dolphin:


Add option to see article source in mdx (Hard)

Context
Add an icon that allows users to see the article source in mdx file:

This gives users an overview of how we're writing articles on our platform.

There is any button displayed and the bottom of an article.
After clicking a button - the user sees the source in the modal with the usage of  component.
After clicking the Source button - the GA event is sent to analytics - "source_button_clicked"

Changed GA event to "article_source_clicked" for consistency
Pull request opened, known bug - Article source not showing properly on first article: "Loops in JavaScript and their performance".


Needs to gracefully handle circular references.

So the basic idea here is to start letting EH users provide an options object which will override defaults. For now, I'm just adding the options as a param that can be provided on getting an elastic-harvest instance. It's structured like {graphDepth:{default:3}}. In the future, I want to allow users to specify depth of specific graph branches, like  {graphDepth:{default:1,links.person.pet.friend.friend:true}}.

Tests: https://github.com/agco/elastic-harvest/commit/0d1093e005e481c267e828d4065cf721591fdf72
Code: https://github.com/agco/elastic-harvest/commit/1317863b8bfdfbaadb95bff66a9f9db038a75729


whitespace change do not merge

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Succinct-PRB/1/
Test PASSed.


get rid of Box inside Heartbeat as well

It turned out to be small, but quite confusing refactoring.

At first I changed Box-ed future to a generic type parameter P inside Heartbeat.
Then moved new constructor out of Heartbeat impl in order to allow choosing P on the call site.
Then moved heartbeat_pulse invocation from the constructor directly to the connect fn.
And finally managed to craft connect return type like this:

impl Future<Item = (Self, Heartbeat<impl Future<Item = (), Error = io::Error>>), Error = io::Error> + Send + 'static

It probably could be rewritten in a more clear way but currently I don't see how.

Coverage increased (+0.2%) to 55.857% when pulling 888bbe48ba2846d3575a4974fdc4ede3702488f6 on swizard0:pull_req_heartbeat_impl_trait into d67f86e730ff01a2b4e0bacf4f7ce447521586bc on sozu-proxy:master.

You're welcome.
I've made the fixes, currently except this:

and add the trait constraint ": Future + Send + 'static" for the struct and impl, mostly for "documentation" purpose

I'm not really sure that library users want to know this field type constraints because it is private and there is no way to get and use it for them.
Perhaps this unnecessary information only distracts the reader.


ng build --prod error because ngsw-config.json not moved during migration

Versions
cli v6.0.0-rc.4

Repro steps
From an Angular 5 project generated with --service-worker:

update and migrate to v6
ng build --prod

Observed behavior
Error: Expected to find an ngsw-config.json configuration file in the /path/to/app folder.

Desired behavior
Migration from CLI 1.7 to 6.0 should move /src/ngsw-config.json to /ngsw-config.json if existing.

same problem here...

I resolved my issue on windows by changing the path created in angular.json during ng upgrade from
"ngswConfigPath": "/src/ngsw-config.json",
to
"ngswConfigPath": "src/ngsw-config.json",
Removing the leading /

but ngswConfigPath option isn't defined in the cli json schema... editor is reporting it as invalid...

@markau Thanks, it also needs to move src/ngsw-config.json to the project root dir (same as angular.json). I guess that's how service worker works implicitly within the new CLI.

I was having the same problem when my config file configure like this:
"ngswConfigPath": "src/ngsw-config.json"
I was trying to build ng b --prod from src/app/shared instead of building from the root folder.
Building from the root folder fix the issue for me.

Well. My "ngsw-config.json" file is in the root directory and in my angular.json I set
"ngswConfigPath": "./ngsw-config.json" AND its working smoothly. So idea is to provide the path of ngsw-config.json file simple.


Set visible range with percent right margin

Type of PR: enhancement
PR checklist:

[x] Addresses an existing issue: fixes #840
[x] Includes tests
[x] Documentation update

Overview of change:
chart.timeScale().setVisibleRange({ from, to }, { percentRightMargin: 10 });

@DTupalov do you really need this API? It seems that for logical ranges it might be done externally from your code so I just curious whether this API is needed for someone.

@DTupalov do you really need this API? It seems that for logical ranges it might be done externally from your code so I just curious whether this API is needed for someone.

@timocov I've realised such ability with logical range, but this need some calculations on my side, so if this would be just a part of library, would be more declarative in my code.
Why then you implement this API? :)

Why then you implement this API? :)

Ha-ha, fair enough 😄

I've realised such ability with logical range, but this need some calculations on my side, so if this would be just a part of library, would be more declarative in my code.

We realised exactly the same, that's why I'm a bit confused with having this in the library (just to avoid having anything what could be done outside in 2-3 lines).

chart.timeScale().setVisibleRange({ from, to }, { percentRightMargin: 10 });

Agreed internally that it is no longer required.


Replaces gas canister sprites.

This PR replaces CEV-Eris' gas canister sprites with tgstations. I also added a couple more canister types and formatted the rsi correctly.
 (Imo)
These are Yogstation's they looked pretty interesting so I made an RSI with them if you would like to see them.

I will merge this later today unless someone objects.

No complaints so far, merging in 30 mins

Well, okay...


Fix and clean setup.sh

Multiple fixes into setup.sh
Still in draft because I want to test the installation on Bookworm

Install libbluetooth-dev to fix PyBluez installation on Bullseye lite
Reorganize setup.sh
Group apt-get commands and remove unused python2 dependencies in setup.sh
Ignore missing packages in setup to avoir breaking the whole installation if one package is deleted in the future
Use sed to edit bluetooth service instead of replacing file to fix installation with newer bluez version
Install PyBluez from source to fix installation on Bookworm (https://github.com/pybluez/pybluez/issues/431#issuecomment-1107884273)
Restart dbus and bluetooth services
Add PIP_BREAK_SYSTEM_PACKAGES=1 env var to pip3 install to make it works on Bookworm

Was tested on a Raspberry Pi 4 with Raspberry Pi OS Lite 64-bits Bookworm and Bullseye and it works fine

Thank for your contribution!


Add docs about using ADAM's Kryo registrator from another Kryo registrator.

Follow on from @heuermh's #1304.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/1665/
Test PASSed.

Thanks for the review @heuermh! I've rolled your suggestions in.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/1666/
Test PASSed.

Looks great, thank you, @fnothaft


fixes #2249

Fixes issue #2249
@swederik

Looks like the Netlify deployment failed due to a timeout.

Looks like the Netlify deployment failed due to a timeout.

I just restarted the netlify build, not sure why it would have timed out. We'll see if it happens again

I just restarted the netlify build, not sure why it would have timed out. We'll see if it happens again


APT whitelist request for gnuplot in Trusty

Hello! Does it possible to add gnuplot package to APT whitelist of Trusty? This package has been added to whitelist of Precise. Thank you!

edit the title of this issue and replace "to" with "in". There is an automated system that processes these and currently this one has been skipped.

not "with", "in"

Build has been failed. Should I do something?

I think that is still correct.

@BanzaiMan is that OK from @junghans about setuid() in gnuplot enough for you to approve this pull request please?


chore: dependency upgrades

Upgrades all dependencies to the latest version in advance of a new minor version release.

Pull Request Test Coverage Report for Build 145

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 142:
0.0%

Covered Lines:
59

Relevant Lines:
59

💛  - Coveralls


Countdown to 16:00

Geef countdown naar 16:00 op homepage van TOSTI.

I do understand where this is coming from from a user perspective. However, from an organizational perspective I doubt whether it is wise to do this (especially considering that we have signed a code of conduct for the recognition of Tartarus Foundation, which prohibits, among other things, encouraging ('aanzetten') others to drink alcoholic beverages).


[Toothpick] ...

Extension
https://www.raycast.com/VladCuciureanu/toothpick
Description
Would it be possible to let users set a keyboard shortcut to toggle a specific device?
Who will benefit from this feature?
People who repeatedly connect to a specific device.
eg. keyboard, earbuds, etc.
Anything else?
No response

Hey! Check out the extension's settings. There you can enable one of the favorite device commands. In the command's setting you have to write the device name and then you can bind a key combination to the command

I tried using that command but it doesn't seem to be working for me. I wrote in the name exactly as it shows up in my Bluetooth settings.
When I trigger that command, it says "Connecting" for a split second then stops.

I tried using that command but it doesn't seem to be working for me. I wrote in the name exactly as it shows up in my Bluetooth settings.
When I trigger that command, it says "Connecting" for a split second then stops.

Must be a bug. Will look into it

Hey! I implemented recently an option to switch out the bluetooth backend. If you go to the extension's preferences, you can choose "blueutil (experimental)" as a bluetooth backend. This might solve your issue. Just be sure to install 'blueutil' via brew beforehand.


builder notifier: queued importing maps appearing in map view

str

import .carto
go to whatever map

expected behaviour

queued imports should only appear in dashboard

actual behaviour

queued imports appear in mapview

Closed by #8538


Please indicate where to go when one needs longer retention of logs

Please indicate where to go when one needs longer retention of logs, like where are the settings to migrate logs to another storage etc. I know it exists, and this document should refer to that.

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

ID: 5975a65a-630f-a2ab-7cc8-268e278a057b
Version Independent ID: ed2cdee0-9a1e-c435-a172-054896ec35f8
Content: Azure Active Directory report retention policies
Content Source: articles/active-directory/reports-monitoring/reference-reports-data-retention.md
Service: active-directory
GitHub Login: @priyamohanram
Microsoft Alias: priyamo

@blouwagie This article explains how to export the logs to a storage account.
I am assigning this to the author to consider adding this reference to the doc. Thanks.

Thanks for the feedback! I've added this information to the article and it should be updated shortly. Please feel free to open a new issue if you have any further questions. #please-close