v2.0.1 Action enums corrected

See issue https://github.com/mobilityhouse/ocpp/issues/579

I completely agree with you here, I will modify this PR and see if we incorporate the warning

I have added the previous members back into the Action and in their current order, the result is as follows:

Action("BootNotification") results in
<Action.BootNotification: 'BootNotification'>
Action.BootNotification.name  results in
'BootNotification'
Action.BootNotification.value  results in
'BootNotification'
Action.BootNotification  results in
<Action.BootNotification: 'BootNotification'>
Action.boot_notification  results in
<Action.BootNotification: 'BootNotification'>
Action.boot_notification.name  results in
'BootNotification'
Action.boot_notification.value  results in
'BootNotification'

The problem we have here is that the name of the members changes and the value remains the same. Due to this the member is never missing.
So after looking into this using  missing we can only:

catch a member only when in it missing but in our case it is replaced
if we could make use of it, it will works in this case when accessing via Action("BootNotification") but not Action.BootNotification.name (as this will no longer exist after removal)

So to remove these into the future becomes quite a conundrum ... however, the current change could be a logical step?

Not sure if I follow you.
I did some tests and figured out that _missing_() is only called when you instantiate an enum like Action("BootNotification").
Normal lookups, like Action.BootNotification, won't call _missing_() and therefore won't print a warning.
I fixed that with this fix.
from warnings import warn
from enum import StrEnum

class Action(StrEnum):
    BootNotification = "BootNotification"
    boot_notification = "BootNotification"

    def __init__(self, *args, **kwargs):
        if self.name == 'BootNotification':
            warn("Action.BootNotification is deprecated and will be removed in the future. Please use Action.boot_notification.")

        return super().__init__(*args, **kwargs)

print(Action.BootNotification)
print(Action.BootNotification.name)
print(Action.BootNotification.value)
print(Action.boot_notification)
print(Action.boot_notification.name)
print(Action.boot_notification.value)
print(Action['boot_notification'])
print(Action("BootNotification"))

It prints:
/tmp/dep.py:10: UserWarning: Action.BootNotification is deprecated and will be removed in the future. Please use Action.boot_notification.
  warn("Action.BootNotification is deprecated and will be removed in the future. Please use Action.boot_notification.")

I tried the approach with init but the warning is only happens once during initialisation of the enum and doesn't appear during its use:
PyDev console: starting.
Python 3.11.7 (main, Dec  8 2023, 18:56:58) [GCC 11.4.0] on linux
from test_enums import Action
/home/jared/PycharmProjects/test_project/test_enums.py:11: UserWarning: Action.BootNotification is deprecated and will be removed in the future. Please use Action.boot_notification.
  warn(

Action.BootNotification
<Action.BootNotification: 'BootNotification'>
Action.boot_notification
<Action.BootNotification: 'BootNotification'>
Action.boot_notification.value
'BootNotification'
Action.boot_notification.name
'BootNotification'

So I attempted to modify this some more and got this:
from warnings import warn
from enum import StrEnum

class Action(StrEnum):

    def __init__(self):
        if self._name_ == "BootNotification":
            self._value_ = self._name_
        if self._name_ == "boot_notification":
            self._value_ = self._name_.title().replace("_","")

    BootNotification = ()
    boot_notification = ()

    @classmethod
    def _missing_(cls, value):
        if value == "BootNotification":
            warn(
                "Action.BootNotification is deprecated and will be removed in the future. Please use Action.boot_notification.")
            return cls.BootNotification

which results in:
from test_enums import Action

Action("BootNotification")
<Action.BootNotification: 'BootNotification'>
/home/jared/PycharmProjects/test_project/test_enums.py:18: UserWarning: Action.BootNotification is deprecated and will be removed in the future. Please use Action.boot_notification.
  warn(
Action.BootNotification.name
'BootNotification'
Action.BootNotification.value
'BootNotification'
Action.boot_notification.name
'BootNotification'
Action.boot_notification.value
'BootNotification'
Action.BootNotification
<Action.BootNotification: 'BootNotification'>
Action.boot_notification
<Action.BootNotification: 'BootNotification'>

Although this solves some of the problem, I couldn't get the new enum boot_notification to function correctly. I have identified that the order of members in the enums looks to determine this behaviour ....

Good catch. I didn't realize the warning is show, even if you don't use any deprecated variants.
I'm afraid we can't use the builtin warning to warn the users.

You can forget my earlier comment to include the v16 action. I see that the v16 action in #600 .


Doesn't work on launch

Dear Ben,
When I launch the app on Android it doesn't work, I have to go to an other view and then come back it just after that it works fine all the time ! But how to make it works from the beginning ?
For iOS, it never works... I correctly activate the "NSAppTransportSecurity", but still same issue : I just have the loader that appears and doesn't start.
What do you suggest ?
Thanks in advance
To

Hey man, you fix that? i have the same problem

Hi !
Actually not... So I found an other library that do the trick for me.
https://github.com/andrewmcgivery/ionic-ion-imageCacheFactory
You just have to create a loop to initialize all your images when the controller starts. I don't have so much images on my side, so what I wanted to do it's to keep them in cache so next time the user open my app he can see them even without internet connection. I don't know if it's what you are looking for.
To

oop,I have the same problem  ,want to cry
debug on ios  . like  don't exec the  directive  cacheSrc

i found  the solution to fix this
edit  the ionic-coach-src.js (line 353) ,change  attrs.$observe('cacheSrc',  to scope.$watch('attrs.cacheSrc',


Tombstone

Hi!
I've never modded Minecraft before but I see this repo as a great opportunity to start! I've managed to get everything working and have set up a mesh for a tombstone!
It would only be a decorative piece that I guess could be crafted from some sort of stone blocks.
Would that be cool?

Sure!
Put it up as a PR and we can help you throughout the way :)

Thank you! :dancer:


"Strange" Behaviour

I'm very new for Rust and I am working on small projects to learn it. So, I have the following code to count the syllables:
s.split_whitespace().for_each(|word| {
                let syllables = hyphenate(word, Lang::English);
                println!("{:?} has {} syllables", word, syllables.clone().count());
                count += syllables.count();
            });

where s is the just &str. So, I am splitting the thing to words and call hyphenate on each word. But I get the following output:
"An"
"An" has 1 syllables
Syllables { word: "An", cursor: 0, levels: [0] }
"old"
"old" has 1 syllables
Syllables { word: "old", cursor: 0, levels: [0, 0] }
"silent"
"silent" has 1 syllables
Syllables { word: "silent", cursor: 0, levels: [0, 2, 4, 0, 0] }
"pond"
"pond" has 1 syllables
Syllables { word: "pond", cursor: 0, levels: [0, 0, 0] }

So, is that something I don't get about how I should call the function? I've tried the example and it worked correctly.
Sorry and thank you!

The hyphenation patterns aren't perfect and silent seems to yield wrong results. You are using the crate correctly.

Can I help somehow? :)

I don't think there's much we can do here, since the hyphenation patterns are just taken from TeX. Many hyphenation engines use these patterns, which is also why you can observe the same problem here: https://www.hyphenation24.com/word/silent/

I think syllables may be a misnomer?
Hyphenation boundaries do not always coincide with syllables. There can be other reasons for why hyphenation isn't desirable (like ambiguity). Also, the number of syllables can even depend on dialect.
In this case babel (which uses the same hyphenation patterns) yields

for US english, but

for UK english (the line indicates a hyphenation boundary.
I think this is intentional.

I just noticed that hypher seems to only have US english and not UK english though.


decksite: tooltip with the bug description for bugged cards

Fixes: #1633.

After my two little changes:


Extract Event Hub Connection String with updated listKeys() syntax failure

Bicep version
0.16.2
Describe the bug
Attempted to extract an Event Hub authorization rule connection string for use within a function app setting, using a familiar syntax: listKeys(telemetryRule.id, telemetryRule.apiVersion).primaryConnectionString
However, I was prompted to use an updated syntax
telemetryRule.listKeys().primaryConnectionString but continue to have this error returned:
'The template resource 'DvHothTelemetryFa' at line '1' and column '1496' is not valid: The language expression property array index '1' is out of bounds.
Documentation: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/linter-rule-use-resource-symbol-reference
The only current working solution I've found that actually deploys without the above error is listKeys(resourceId('Microsoft.EventHub/namespaces/eventhubs/authorizationRules', telemetryEhns.name, telemetryEh.name, telemetryRule.name), '2022-10-01-preview').primaryConnectionString
Appreciate your help!
To Reproduce
Attempt to extract a connection string from an event hub authorization rule using the telemetryRule.listKeys().primaryConnectionString in a function app app setting.
Additional context
Full file for context:
param name string
param location string
param settings object
param appInsightsName string
param appServicePlanName string
param appInsightsRg string
param eventHub object

resource functionApp 'Microsoft.Web/sites@2022-03-01' = {
  name: '${name}Fa'
  location: location
  kind: 'functionapp'
  properties: {
    serverFarmId: plan.id
    siteConfig: {
      appSettings: [
        {
          name: 'AzureWebJobsStorage'
          value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}'
        }
        {
          name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING'
          value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}'
        }
        {
          name: 'APPINSIGHTS_INSTRUMENTATIONKEY'
          value: appInsights.properties.InstrumentationKey
        }
        {
          name: 'APPLICATIONINSIGHTS_CONNECTION_STRING'
          value: 'InstrumentationKey=${appInsights.properties.InstrumentationKey}'
        }
        {
          name: 'FUNCTIONS_WORKER_RUNTIME'
          value: 'dotnet'
        }
        {
          name: 'FUNCTIONS_EXTENSION_VERSION'
          value: '~4'
        }
        {
          name: 'CSTelemetryListen'
          value: telemetryRule.listKeys().primaryConnectionString
        }
      ]
    }
    httpsOnly: true
  }
}

resource storageAccount 'Microsoft.Storage/storageAccounts@2022-09-01' = {
  name: toLower('${name}Sa')
  location: location
  sku: {
    name: settings.storage.sku
  }
  kind: 'StorageV2'
  properties: {
    supportsHttpsTrafficOnly: true
    minimumTlsVersion: 'TLS1_2'
    encryption: {
      services: {
        file: {
          keyType: 'Account'
          enabled: true
        }
        blob: {
          keyType: 'Account'
          enabled: true
        }
      }
      keySource: 'Microsoft.Storage'
    }
    accessTier: 'Hot'
  }
}

resource appInsights 'Microsoft.Insights/components@2020-02-02' existing = {
  name: appInsightsName
  scope: resourceGroup(appInsightsRg)
}
resource plan 'Microsoft.Web/serverfarms@2020-12-01' existing = {
  name: appServicePlanName
}
resource telemetryRule 'Microsoft.EventHub/namespaces/eventhubs/authorizationRules@2022-10-01-preview' existing = {
  name: '${eventHub.hubs.telemetry}-listen'
}

here is the long format for doing this "the Bicep way" ... @delarooster does this look correct for your use case?
param namespace string = 'AEU2-PE-LAB-D1-ehIOT01'
param eventhub string = 'tsieh1'
param rule string = 'RootManageSharedAccessKey'

resource EH 'Microsoft.EventHub/namespaces@2021-11-01' existing = {
  name: namespace

  resource Hubs 'eventhubs' existing = {
    name: eventhub

    resource Rule 'authorizationRules' existing = {
      name: rule
    }
  }
}

// use output for sample
output test2 string = EH::Hubs::Rule.listKeys().primaryConnectionString

it builds to below, which works
"[listKeys(resourceId('Microsoft.EventHub/namespaces/eventhubs/authorizationRules', parameters('namespace'), parameters('eventhub'), parameters('rule')), '2021-11-01').primaryConnectionString]"

In order to assist i troubleshooting the issue:

can you also share your input object param eventHub object
I see it's building to the below, however having the reference input parameter value will be helpful to debug.

"[listKeys(resourceId('Microsoft.EventHub/namespaces/eventhubs/authorizationRules', split(format('{0}-listen', parameters('eventHub').hubs.telemetry), '/')[0], split(format('{0}-listen', parameters('eventHub').hubs.telemetry), '/')[1], split(format('{0}-listen', parameters('eventHub').hubs.telemetry), '/')[2]), '2022-10-01-preview').primaryConnectionString]"

@brwilkinson doesn't outputting the connection string in such manner go against the principal of outputting secrets or sensitive information? https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/linter-rule-outputs-should-not-contain-secrets
I'd prefer to use the method you describe but have avoided such practice; having those keys available anywhere besides at the resource, group, subscription, etc where the users have the appropriate specified permissions.  Perhaps I have a touch of paranoia.
To your other query, the eventHub object is quite simply where I declare the name(s) of the resources for the project, e.g.
eventHub: {
    namespace: '${namingPrefix}${region}ehns'
    hubs: {
      alarms: '${hubPrefix}-alarms'
      connectivity: '${hubPrefix}-connectivity'
      dpp_telemetry: '${hubPrefix}-sensor-telemetry'
      events: '${hubPrefix}-events'
      life_cycle: '${hubPrefix}-life-cycle'
      relay: '${hubPrefix}-relay'
      telemetry: '${hubPrefix}-telemetry'
      transparent_telemetry: '${hubPrefix}-transparent-telemetry'
      twins: '${hubPrefix}-twin-changes'
    }
  }

Hope this helps the debugging, happy to assist however I can.

I was only using output to show that is it working as expected.
We can see the issue here with what you have.
You are providing a single value `telemetry: '${hubPrefix}-telemetry-listen' how the name.
You need a 3 part value there that includes 2 slashes. '${hubPrefix}-telemetry-listen/ ${namingPrefix}${region}ehns/RootManageSharedAccessKey '
E.g. 'namespacesName/eventhubsName/authorizationRulesName'

If you want full linting, it's best to use the full method above and avoid name values with slashes. Since you are idun a variable for the name, that linter rule to show that may not have shown.

Ah I see my mistake now, thank you for clarifying.  Will implement the recommended change and report if I have any further issues.  Many thanks!

Please share your final format that you go with for the existing resource part. Interested to see if you end up using the full format or the shortcut method.

Great!  Both work as prescribed.
Short method:
resource telemetrySend 'Microsoft.EventHub/namespaces/eventhubs/authorizationRules@2022-10-01-preview' existing = {
  name: '${eventHub.namespace}/${eventHub.hubs.telemetry}/${eventHub.hubs.telemetry}-send'
}

Usage in appSetting:
{
    name: 'TelemetrySendEventHubConnStr'
    value: telemetrySend.listKeys().primaryConnectionString
}

Long method:
resource telemetryEhns 'Microsoft.EventHub/namespaces@2022-10-01-preview' existing = {
  name: '${eventHub.namespace}'
  resource telemetryEh 'eventhubs@2022-10-01-preview' existing = {
    name: '${eventHub.hubs.telemetry}'
    resource telemetrySend 'authorizationRules@2022-10-01-preview' existing = {
      name: '${eventHub.hubs.telemetry}-send'
    }
  }
}

Usage in appSetting:
{
    name: 'TelemetrySendEventHubConnStr'
    value: telemetryEhns::telemetryEh::telemetrySend.listKeys().secondaryConnectionString
}

A few months back was last I had attempted a nested existing and had no luck, glad to see that's been implemented!
Thanks again for leading me to a viable solution; agreed that the long method is much more verbose but the intellisense is far superior, especially with variables as mentioned.

Great, one comment. You can leave the api versions from the child resources, since it is shared from parent.
resource telemetryEhns 'Microsoft.EventHub/namespaces@2022-10-01-preview' existing = { name: '${eventHub.namespace}' resource telemetryEh 'eventhubs' existing = { name: '${eventHub.hubs.telemetry}' resource telemetrySend 'authorizationRules' existing = { name: '${eventHub.hubs.telemetry}-send' } } }


Update CP2K input definition from version 2024.1 (Development Version)

adopt new version from 'cp2k --xml', now it can parse all of the benchmark examples that come with cp2k but one ... working on it

@knuedd thanks a lot!


re-instate -Werror

This got lost in the translation to meson; add -Werror for debug builds.
Signed-off-by: John Levon<EMAIL_ADDRESS>

cc @jraman567

Meson has a global option for this, meson setup builddir -Dwerror=true to go with the -Ddebug=true.

I don't see how I would use that in the way I did, i.e. we need this on automatically if debug is set, rather than opt-in at setup time?


Scheme streams and Geiser

I'm working with Guile, so there's the code:
(use-moduls (srfi srfi-41))
;; It eats all my CPU with that form
;;
(define (sum-streams s1 s2)
  (stream-map + s1 s2))
(define s (sum-streams primes ones)
;;
;; so I use that form
(define s (stream-map + primes ones))
(stream->list 10 s)                     ; (3 4 6 8 12 14 18 20 24 30)

And my Emacs is freezed when I type (define s (sum-streams primes
I think it's because Guile try to help me with what is primes, but it an infinite stream, so my Guile process eats over 100% of CPU. Can you help me with that problem?
I tried Racket as well, it doesn't freez Emacs when I'm typing stream name but it does when I want compile buffer to Geiser. (when I press C-c C-k)

we are moving the project to gitlab. so please, follow-up there as needed. sorry for the inconvenience!
http://gitlab.com/jaor/geiser/issues/38


Write tutorial for transitionning form rebar 2.x to rebar3

It seems to be required for things like:

removing ebin/ and deps/ from the root
new code coverage functionality
adapting for NIFs / other compile runs
adapting plugins?
etc.

Note special cases:

setup
App order
rebar2 depended on the order of rebar.config, rebar3 goes by dependencies - this makes circular dependencies impossible!

Actually, I guess rebar2 can't have specified the order to compile apps in apps/, so I don't know what it does, maybe just whatever order it gets to them when recursing?

I think it didn't matter, it was not needing any order since it was only an include file in my case.

@Licenser na, apps/sniffle/ebin would still have to be in the code path for the compiler to find the include file when building sniffle_console.

makes sense, it should probably be noted how app dependencies affect things now.

This might help: https://github.com/project-fifo/sniffle/pull/1
All changes needed to move a rebar2 app to a rebar3 one (release not included!)

http://www.rebar3.org/docs/from-rebar-2x-to-rebar3


html id and class names are chaos

[ ] Get rid of ids or classes that do the similar things and turn them into one class or id. Unless they need to be seperate
[ ] Find a consistent naming convention and change all the id and class names to it in the html doc and the css doc

Hello @jff97 I would like to work on this issue, can you assign me this one???

probably not yet because I am not farmiliar with the permissions on forking and merging yet so I am going to figure that out before letting anybody contribute.

@jff97 you can check out this Guide  ...
If your problem still stay the same, i think in that case I should work on this issue and simply made a pull request????


Fix image for AboutUs

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

Comparison is base (0dd42c1) 75.26% compared to head (0d92378) 75.29%.
Report is 12 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #78      +/-   ##
============================================
+ Coverage     75.26%   75.29%   +0.03%
  Complexity      419      419
============================================
  Files            71       71
  Lines          1338     1340       +2
  Branches        126      126
============================================
+ Hits           1007     1009       +2
  Misses          301      301
  Partials         30       30

see 1 file with indirect coverage changes

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


captureScreen leaks memory in Linux

Continuously capturing the desktop eventually makes the system run out of RAM.
Expected Behavior

Any memory allocated should be freed or, preferably, reused on the next capture.
Current Behavior

The amount of memory taken up by node steadily increases into a few GB.
Possible Solution

Steps to Reproduce (for bugs)

let robot = require("robotjs");
setInterval(function(){
    robot.captureScreen();
}, 20);

Context

Trying to stream the screen to another device.
Your Environment

RobotJS version: 0.5.1 (latest on npm)
Node.js version: 10.11.0
npm version: 6.4.1
Operating System: Linux (Ubuntu 18)

How did you get it to work because i keep getting npm version conflict errors.

@yomiAdenaike01 can you please create another issue with a reproducible example? Closing as it is stale.


Add Network Performance to EC2 Basics

Added one line bullet to EC2 Basics on what Low, Medium, High network performance can mean, based on a Stack Overflow user's benchmarking. I think this is better in EC2 Basics than EC2 Tips, but don'tr have strong feelings if there's disagreement.
Network performance probably needs more coverage, possibly its own section.

LGTM - good addition, thanks @rjhintz!

@max-zanko @ThanosBaskous   Thanks for the quick reviews


Implement IBM Model 5

Other changes:

Extract common methods for Models 4 and 5
Remove hacky way of running tests from console

Thanks @hoontw – great to have model 5!


Fix extraction of "Order #<PHONE_NUMBER>00012 and all of its service requests will be permanently removed!"

When a string starts with leading space, the extractor trims the space, meaning the text will never get translated.
Making sure the whole phrase ends up in the catalog :).
Cc @mzazrivec
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1752469

ag '" [^"]*"\s*\|\s*translate' finds this, and nothing else. So, fingers crossed, hoping this is the only problematic case.

Fails on:
$ node language/validate.js
Errors exist in language file
[ '{{ vm.order.name }}' ]

comes from https://github.com/ManageIQ/manageiq-ui-service/pull/914.
Removing, leaving only code to validate that HTML is not present in the strings.
Strings with angular templates are completely valid.
(Second commit)


squid:S1488 - Local Variables should not be declared and then immedia…

This pull request is focused on resolving occurrences of Sonar rule squid:S1488 - Local Variables should not be declared and then immediately returned or thrown
You can find more information about the issue here: https://dev.eclipse.org/sonar/coding_rules#q=squid:S1488
Please let me know if you have any questions.
M-Ezzat

Looks good, score one for your tool :)


How do you use vue-slider without .vue files?

Is there any way to directly add vue slider without needing webpack to build everything?
I tried copying the source style into a .css file and then including the index.js file but that doesn't work because of the module.exports wrapper.

index.js already contains the style.
if you use import vueSlider from 'vue-slider-component' to import the component,  it is not included .vue file.

Hope this can help you. https://jsfiddle.net/NightCatSama/9pp3dqkq/

Thank you very much! Maybe you can add this link to the readme for other developers who just want to try out your component on codepen or jsfiddle.

@NightCatSama , could you include a non-default slider example in the jsfiddle, that is, one with properties, e.g. a lazy slider?  I can't figure out how overide the slider defaults.

@araichev I added the default props. https://jsfiddle.net/9pp3dqkq/107/

Thanks, but, as i said, i'm looking for a non-default slider example.

@araichev  like this? lazy slider

Thanks, and i apologize for overlooking the parameter settings in the vue-slider tag of your previous example.


orderBy inside inner query doesn't work

this one works
const query = ref => ref.limit(4)
const geoQuery = geofirestore.query({ center, radius, query })
this one doesn't
const query = ref => ref.orderBy('d.createdAt', 'desc')
const geoQuery = geofirestore.query({ center, radius, query })
nothing comes through key_entered event listener
I set the indexing on firestore as it advises me to: d.createdAt DESC g ASC

So ref.limit will not really work all the time... It's a side effect of how the service works, you can see an explanation here.
Anyway, I did some digging and testing, and here are a few issues regarding Firestore queries and GeoFirestore (and the docs should and will be updated to reflect this).

You can not use startAt or similar modifiers (startAfter, endBefore, endAt) with GeoFirestore since we append the geo based modifiers to the end of a query and you cannot specify an orderBy() constraint after calling startAt(), startAfter(), endBefore() or endAt().
It looks like while Firestore could support two orderBys, it can not support two orderBys AND two of the previously mentioned modifiers (startAt, startAfter, endBefore, endAt). It seems as if it has been somewhat documented as an issue here by a member of the Firebase team.

I'll be updating the docs to reflect this.


chore(update) update dockerfile to 0.7.4

Update the dockerfile to use the latest version (0.7.4) of docker-gen

Hi, is it possible to publish 0.7.4 to hub;docker.com please.
The last publised version is 0.7.3
https://hub.docker.com/r/jwilder/docker-gen/tags/
thx

@jwilder any chance that you could please merge that?


Gradient Penalty Loss: Not working with tf2

Good morning,
The approach of the gradient_penalty_loss in the wgan_gp is not working with tf2. K.gradients returns [None]. You guys can find the issue here:
https://colab.research.google.com/drive/11dcMKoiCigTnEn7QvmjqLNrJdmFztByT
I have been reading some posts and it seems like there is no solution yet. Is there anyone that has already implemented this loss successfully with tf2?
Thank you very much

Good morning,
The approach of the gradient_penalty_loss in the wgan_gp is not working with tf2. K.gradients returns [None]. You guys can find the issue here:
https://colab.research.google.com/drive/11dcMKoiCigTnEn7QvmjqLNrJdmFztByT
I have been reading some posts and it seems like there is no solution yet. Is there anyone that has already implemented this loss successfully with tf2?
Thank you very much

Maybe we can use tf.keras.backend.function to solve the problem. I write a sample version of WGAN-GP Here. It's tested on the newest tf.keras.

Maybe we can use tf.keras.backend.function to solve the problem. I write a sample version of WGAN-GP Here. It's tested on the newest tf.keras.

Hello!
Your solution seems pretty smart. I didn't get to that and I ended doing the models extending tf.keras.Model and using GradientTape. This seems to be the standard now with tf2. The example I followed  can be found Here

Maybe we can use tf.keras.backend.function to solve the problem. I write a sample version of WGAN-GP Here. It's tested on the newest tf.keras.

Hello!
Your solution seems pretty smart. I didn't get to that and I ended doing the models extending tf.keras.Model and using GradientTape. This seems to be the standard now with tf2. The example I followed can be found Here

Nice job! I think Keras will add the GradientTape soonly.

can anyone write it with GradientTape?


open providers.json: no such file or directory

I am facing this error but i did not change the providers.json directory or nothing. I installed the tool and tried to run it and got that error.

Same here
open providers.json: no such file or directory

go to directory this this file
in ubuntu this is ~/go/src/github.com/Ice3man543/SubOver

for windows go to C:\Users\username\go\src\github.com\Ice3man543\SubOver and copy the providers.json to your current directory you are running subover

Try providing execution permission to providers.json file. It worked for me

Workaround
You should copy the file in the current path where you are running subover command.

Workaround
You should copy the file in the current path where you are running subover command.

or adding the folder to your path variable

same
open providers.json: no such file or directory


[Bug] Table column names and order gets reset sporadically

Description
A user has been seeing their table columns names and order that is custom gets reset and all the changes need to be added again. This happens when the underlying data / datasource has changed

Related to #4984. Can we please fix this on priority? Many users are facing this

Duplicate of #4984


Improve user experience

Expected Behavior
It should have a better design as https://wetransfer.com/ to make it easier for costumers.
Actual Behavior
The web is not beautiful yet. Everything works correctly.

I love this project I will start working on the ui

I too want to work on this ! :heart_eyes:

Is there any source of this site ?
Or, I have to build it from scratch ? :open_mouth:

@0x48piraj go to https://github.com/alexsicart/Decentralized-Cloud and fork

Thanks!! :) @sunnyday90210

Where are the .html files ?

@0x48piraj this is built in angular the components are in the src folder

@alexsicart here is just a test in html I had alot of problems with the packages now working everytime I fixed one another one was broken so I could not get angular running with this app. I will have to try tomorrow this is just a first test let me know if this is the idea your looking for https://sunnyday90210.github.io/decentralized-cloud-test/

I love the design of this test!! This app doesn't work with ng serve/ng build (common angular). Works with npm start/npm build.

@alexsicart this is my final test if you like the design I will try and integrate into angular https://sunnyday90210.github.io/decentralized-cloud-final-test/

@sunnyday90210 I love the buttons (the top one, to add files), and the title. If you can make a pull request in angular, changing the title for the one you've done and the buttons will be greaaat!!

@alexsicart I will make those changes tonight and then work on mobile friendly.

@sunnyday90210 cool!!

@sunnyday90210 what do you think of this design? https://github.com/alexsicart/Decentralized-Cloud/tree/new-ui Inspire 100% on we transfer, very minimalistic.

@alexsicart I really like the new design, I think it looks great. here is something you can take a look at https://codepen.io/sunnyday90210/full/EbNrON/

@sunnyday90210 I like! A good way to explain what the project is about, the tech and contributors. without removing the simplicity of WeTransfer.

Also I like the idea to change image --> video from https://videos.pexels.com/

@alexsicart I agree it will make it a little different from the rest of the file sites. Just let me what you need to be done.

@sunnyday90210 it would be nice to have video instead of image. And the about, ipfs... below the page (like https://codepen.io/sunnyday90210/full/EbNrON/), when scrolling down. Keeping full screen for the video and the transfer container.

@alexsicart so a full-screen video with parallax scrolling for the about etc? Or you want the about and ipfs pages to float over the video background on scroll?  If you have any example site please show me.

@alexsicart https://www.spaceneedle.com/home/
http://www.alquimiawrg.com/#/home
http://www.sbs.com.au/theboat/
http://www.the-artery.com/

@sunnyday90210 yeah! Like this webpages. http://www.the-artery.com/

@alexsicart I will start working on it this week and see what I can come up with.

@sunnyday90210 cool!


[terra-clinical-result] Add support for checkbox in FlowsheetResultCell

Feature Request
Description
We'd like the ability to support checkboxes in the FlowsheetResultCell. Our use case is for device data that has not yet been authenticated in the system. This selection would operate independent of the current cell selection. This device data will not show a normalcy indicator, so we'd like it to be vertically aligned with the normalcy icon.
It's technically possible for us to accomplish this on our own, though it would involve putting the checkbox on top of the cell and somehow referencing the padding for the normalcy icon to ensure the two are aligned.
Another option would be to allow consumers to supply a prop to suppress padding for the normalcy icon and have our checkbox take up that space. However, in this case we'd still need to know the padding for the normalcy as values above/below in the column may already be authenticated and show a normalcy icon.
Additional Context / Screenshots

@ Mentions

Blocked by UX - before being made by Terra, open items need to be resolved:

the checkmark box in place of the criticality icon is not part of a platform approved layout pattern for Terra, will need further validation or additional design decisions.
a new visual design (possibly not a standard checkbox) may need to be created so the selectable cell UI is clearly separated/different from the combination of Clinical Result decorators (criticality icons, multiple results, and comment/modified/unverified icons).
ui for selectability should instead be built-in to to a dedicated selectable cell in a flow-grid component, since the clinical-result>flowsheet-result-cell is purely for informational layout and does not hold a selectable state.

ON HOLD - Do not assign for work until updated design details have been provided.


Add Sql Table Benchmarks

Add Benchmarks

[x] SimpleInsert
[x] SingleVersionSequentialRead
[x] SingleVersionRandomRead
[x] MultiVersionSequentialRead
[x] MultiVersionRandomRead
[x] ConcurrentInsert
[x] ConcurrentSingleVersionRead
[x] ConcurrentMultiVersionRead

Resolved.


Added LDAP and DB connection check

IzPack project » izpack #870 FAILURE
Looks like there's a problem with this pull request
(what's this?)

Hi @nitish11, beside the current merge conflict I cannot accept this request to be merged to the master branch for the following reasons:

this is your special usecase for your purposes, but no general change to IzPack. Just a percent of users needs this. This doesn't mean it is meaningless, but the best place is to make a showcase in the developer documentation in Confluence which would probably really help other developers to customize IzPack.
We don't want to introduce too much 3rd party jars to be introduced by default in the IzPack core, because they significantly increase the footprint and size of each installer jar. If one really needs to validate database connection this should be currently made by a local customizing.
you must not change the meaning of built-in default translations, for example-    <str id="TargetPanel.info" txt="Select the installation path: "/>
+    <str id="TargetPanel.info" txt="Select Apache Tomcat Location: "/>

would show up t a totally wrong label in TargetPanel.

I honestly appreciate what you intended to do, but currently IzPack is not prepared to be modular to allow simply adding features on demand to not forcing the user packing in all specialized features he/she won't even use. First there must be some plugin system, like OSGI, which is a long-term plan, but still not started.

I do agree with René. Only two additional hints to the contributor @nitish11:
If you need some specific feature, which can not be integrated in the standard for various reasons, you may use the standard IzPack with some custom classes with your specific needs. For example you may implement own panels (https://izpack.atlassian.net/wiki/display/IZPACK/Custom+Panels) or own panel validators (https://izpack.atlassian.net/wiki/display/IZPACK/Panel+Validators). So you could implement your LDAP/DB checks.
The labels could be changed by a CustomLangPack (https://izpack.atlassian.net/wiki/display/IZPACK/Internationalizing+resources).

Anyway, I'm sure if you will find time to document your customizing usecase as a separate showcase in Confluence with code samples this will be highly appreciated by the community.


[FEATURE] Timeline Editing

Is your feature request related to a problem? Please describe.
I would like to be able to edit timeline events (time and text)/
Describe the solution you'd like
As an admin user, from the web gui I would like to be able to modify the timestamp and message of a timeline event. Timeline events from slack do not capture enough fidelity. Timeline events may also be submitted incorrectly by a user and it would be nice to be able to modify it to match the correct time.

This is partly done. You can add, edit, and remove timeline events from the UI. Editing them does not allow editing the timestamp, only the text field. This is coming shortly.


Split nodeos-mount-filesystems

Create a basic nodeos-boot module to separate system initialization from filesystems mounting.

You can assign this issue to me

This is a bit delicate, I wanted to move the users isolation mechanism to
Jocker. How do you plan to split it?
El 3/9/2016 21:09, "Philipp Czarnetzki"<EMAIL_ADDRESS>escribió:

You can assign this issue to me
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NodeOS/NodeOS/issues/285#issuecomment-244564444, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAgfviiZPkmj8QhpUhxukSBdAV5d99_aks5qmcXSgaJpZM4JeFmf
.

Partial work is currently done in master.

I have just finished this on master using modules nodeos-boot-singleUser, nodeos-boot-singleUserMount and nodeos-boot-multiUser, all of them executing user code inside an un-priviledged environment by using jocker, and also converted the parsing of Linux kernel cmdline to an independent module at linux-cmdline. This will allow to easily create single-process and single user systems by using nos-init by @sbuller, although it would need some minor tune-up, so I'm clossing this.


Script to scan Good First Issues

Description
Create a Script to employ the usage of GitHub API to scan the repositories and return a list of good-first-issues that we are looking for. The script should take input from a JSON file and should return a JSON dump containing all the good-first-issues. You can also make the script modular to fetch issues with more tags if we are looking for them.
Make a PR in the scripts/ directory to document its usage as well.

@HarshCasper  Please assign this issue to me.

@HarshCasper Could you please assign this to me.

Hi, I'm new to open source
Can i work on this issue


Create possible unit testing

https://blogs.technet.microsoft.com/heyscriptingguy/2015/12/16/unit-testing-powershell-code-with-pester/
-Look into this possibility.

Going to be doing this, however, it isn't going to be in the initial release of the Health Checker for v3.0.0


Investigate WAVE use for our team

While the base WAVE extension provides features that may be meaningful only for OS developers, Azure WAVE focuses on scenarios closer to us. We may find this VS Code extension helps us catch security issues by running Component Governance and Guardian checks locally.

Release Note Category

[ ] Feature changes/additions
[ ] Bug fixes
[x] Internal Infrastructure Improvements

Release Note Description
Investigated use of Azure WAVE on our team and decided {fill in the blanks here :grin:}.

Hmm... I'm not sure where this task would go. I don't think it would be an Ops effort. Any thoughts on where it should be funded?

Hmm... I'm not sure where this task would go. I don't think it would be an Ops effort. Any thoughts on where it should be funded?

I don't have a great suggestion and also asked in email thread w/ the team.

This tool is pretty neat. It's a fair way to get more of the analyzers running during development.

I still haven't tried it. How's installation and usability @garath❔

It's good. Not perfect but still quite useful. I expect after a few more releases this will become a wider requirement.

Action:

Brownbag?
Share documentation
Little write-up
choose your own adventure story


Update focus-ring mixin

### Tasks
- [ ] Use new color variables (which will be implemented with #2861) in focus-ring mixin.
- [ ] Check for and update components, which do not use the mixin right now.

Wait for DEV until #2855 is done.


RSDK-7216: add app wrappers

Nice, lgtm!

Thanks so much for looking through this entire PR! I really appreciate it since my eyes/brain were fried by then time I finished 😭


Question about OffsetFilter / step priorities

So I have some code that works and has a number of unit tests. However it consumes the entire source file. We're converting it to be processed via batches. To do so I figured I'd simply add the OffsetFilter before all other steps and it would be easy. This fails somehow.
So for example my processor has the following function
        $workflow->addStep($import->getMappings());
        $workflow->addStep($import->getIgnoredMapper());

        $valueConverter = new ValueConverterStep();
        $valueConverterCount = 0;
        foreach ($import->getConverters() as $column) {
            $name = ($column->hasMapper()) ? $column->getMapper() : $column->getName();
            $valueConverter->add(sprintf('[%s]', str_replace('.', '][', $name)), $this->container->get($column->getConverter()));
            $valueConverterCount++;
        }

        if ($valueConverterCount > 0) {
            $workflow->addStep($valueConverter);
        }

        $filterStep = new FilterStep();
        $addFilter = false;

        if ($this->notBlankFilter) {
            $filterStep->add($this->notBlankFilter);
            $addFilter = true;
        }

        if ($this->duplicateFilter) {
            $filterStep->add($this->getDuplicate());
            $addFilter = true;
        }

        if ($addFilter) {
            $workflow->addStep($filterStep);
        }

This works.
Now I was trying to add the offset filter. Suddenly tests fail in weird ways. Thinking perhaps I wasn't doing something properly. I added the following which from what I read should really do nothing, everything still fails.
        $offsetFilter = new FilterStep();
        $offsetFilter->add(new OffsetFilter());
        $workflow->addStep($offsetFilter);
...
        $workflow->addStep($import->getMappings());
        $workflow->addStep($import->getIgnoredMapper());

What's going on? I started digging into it a bit and thought perhaps it was related to the priority handling code. I couldn't find any documentation on the SplPriorityQueue and what the priority value means. For example is 1 run before 2? Looking at some of the tests, one test had the offset filter added with priority 257, but that was the FilterStep priority, not the StepAggregator priority.
In any case I would expect adding an empty offset filter would not affect the output at all.

So I did a bit more digging and realized once I applied the fix in PR #248 and called addStep passing a priority. The higher the number the higher the priority. So now my tests pass however I find it quite bizarre that the way this is implemented is somewhat reversed. I would think if I don't specify any priority the steps should be run in the order they are added. That should be made really clear in the docs when they are updated to match the new step interface.


Cygwin : test suite has errors

Steps to reproduce:

Install Cygwin
Install Python via Cygwin (I guess)

$ poetry install
$ poetry run pytest

    =========================== short test summary info ===========================
    FAILED tsrc/test/cli/test_init.py::test_no_remote_named_origin - tsrc.executo...
    FAILED tsrc/test/cli/test_log.py::test_happy - tsrc.executor.ExecutorFailed
    FAILED tsrc/test/cli/test_shallow_clones.py::test_shallow_clones - AssertionE...
    FAILED tsrc/test/cli/test_sync.py::test_sync_happy - tsrc.executor.ExecutorFa...
    FAILED tsrc/test/cli/test_sync.py::test_sync_finds_root - tsrc.executor.Execu...
    FAILED tsrc/test/cli/test_sync.py::test_new_repo_added_to_manifest - tsrc.exe...
    FAILED tsrc/test/cli/test_sync.py::test_switching_manifest_branch - tsrc.exec...
    FAILED tsrc/test/cli/test_sync.py::test_sync_not_on_master - AssertionError: ...
    FAILED tsrc/test/cli/test_sync.py::test_sync_with_force - tsrc.executor.Execu...
    FAILED tsrc/test/cli/test_sync.py::test_copies_are_up_to_date - tsrc.executor...
    FAILED tsrc/test/cli/test_sync.py::test_sync_uses_group_from_config_by_default
    FAILED tsrc/test/cli/test_sync.py::test_fetch_additional_remotes - tsrc.execu...
    FAILED tsrc/test/cli/test_sync.py::test_adding_remotes - tsrc.executor.Execut...
    FAILED tsrc/test/cli/test_sync.py::test_changing_remote_url - tsrc.executor.E...
    FAILED tsrc/test/cli/test_sync.py::test_sync_with_singular_remote - tsrc.exec...
    ================== 15 failed, 78 passed in 314.31s (0:05:14) ==================

The failures mostly seem to be for tests that are directly interacting with git (version 2.27.0).

    C:\Users\513277\Documents\repo\tsrc_mbl\tsrc\executor.py:64: ExecutorFailed
    ---------------------------- Captured stdout call -----------------------------
    > tsrc init file://C:\cygwin64\tmp\pytest-of-mlovell\pytest-0\test_no_remote_named_origin0\srv\manifest
    :: Configuring workspace in C:\cygwin64\tmp\pytest-of-mlovell\pytest-0\test_no_remote_named_origin0\work
    => Cloning missing repos
    * (1/1) foo
    => Configuring remotes
    => Copying files
    => Creating symlinks
    => Workspace initialized
    => Configuration written in C:\cygwin64\tmp\pytest-of-mlovell\pytest-0\test_no_remote_named_origin0\work\.tsrc\config.yml
    > tsrc sync
    => Updating manifest
    Your branch is up to date with 'origin/master'.
    Branch 'master' set up to track remote branch 'master' from 'origin'.
    HEAD is now at c197052 add foo
    => Cloning missing repos
    => Configuring remotes
    * foo: Add remote origin ( file://C:\cygwin64\tmp\pytest-of-mlovell\pytest-0\test_no_remote_named_origin0\srv\foo )
    :: Synchronizing workspace
    * (1/1) foo
    => Fetching origin
    => Updating branch

    ---------------------------- Captured stderr call -----------------------------
    Cloning into 'manifest'...
    Cloning into 'foo'...
    warning: Not setting branch master as its own upstream.
    Reset branch 'master'
    From file://C:\cygwin64\tmp\pytest-of-mlovell\pytest-0\test_no_remote_named_origin0\srv\foo
     * [new branch]      master     -> origin/master
    merge: @upstream - not something we can merge
    Error: Failed to synchronize workspace
    * foo: updating branch failed

Below is an excerpt from the results of running
poetry run pytest -k test_sync --show-capture=all
under Cygwin with tsrc 2.1.0 + dm/symlinks and git 2.27.0.
HEAD is now at fe3dd4a foo: remotes: [{'name': 'other', 'url': 'file://C:\\cygwin64\\tmp\\pytest-of-mlovell\\pytest-4\\test_adding_remotes0\\srv\\foo2'}]
=> Cloning missing repos
* (1/1) foo2
=> Configuring remotes
* foo: Add remote other ( file://C:\cygwin64\tmp\pytest-of-mlovell\pytest-4\test_adding_remotes0\srv\foo2 )
:: Synchronizing workspace
* (1/2) foo
=> Fetching other
=> Updating branch
* (2/2) foo2
=> Fetching origin
=> Updating branch

---------------------------- Captured stderr call -----------------------------
Cloning into 'manifest'...
Cloning into 'foo'...
From file://C:\cygwin64\tmp\pytest-of-mlovell\pytest-4\test_adding_remotes0\srv\manifest
   fec3c44..fe3dd4a  master     -> origin/master
warning: Not setting branch master as its own upstream.
Reset branch 'master'
Cloning into 'foo2'...

HEAD is now at 656af4e Change foo url: file://C:\cygwin64\tmp\pytest-of-mlovell\pytest-4\test_changing_remote_url0\srv\foo2
=> Cloning missing repos
* (1/1) foo2
=> Configuring remotes
* foo: Update remote origin to new url: ( file://C:\cygwin64\tmp\pytest-of-mlovell\pytest-4\test_changing_remote_url0\srv\foo2 )
:: Synchronizing workspace
* (1/2) foo
=> Fetching origin
=> Updating branch
* (2/2) foo2
=> Fetching origin
=> Updating branch

---------------------------- Captured stderr call -----------------------------
Cloning into 'manifest'...
Cloning into 'foo'...
From file://C:\cygwin64\tmp\pytest-of-mlovell\pytest-4\test_changing_remote_url0\srv\manifest
   85d020f..656af4e  master     -> origin/master
warning: Not setting branch master as its own upstream.
Reset branch 'master'
Cloning into 'foo2'...
merge: @upstream - not something we can merge
merge: @upstream - not something we can merge
Error: Failed to synchronize workspace
* foo: updating branch failed
* foo2: updating branch failed

The stderr portion of both of the test runs above includes this output, which I think originates from git:
merge: @upstream - not something we can merge

Additional info on the environment in Cygwin (still using one of the earlier development branches for symlink support)...
============================= test session starts =============================
platform win32 -- Python 3.8.3, pytest-5.4.3, py-1.8.2, pluggy-0.13.1
rootdir: C:\cygwin64\home\513277\nobackup\build\tsrc-2.1.0mbl
plugins: cov-2.10.0, forked-1.1.3, xdist-1.32.0

That run concludes with the same 15 failed, 78 passed result as in the original post.
Running poetry show yields:
apipkg                1.5         apipkg: namespace control and lazy-import mechanism
appdirs               1.4.4       A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".
atomicwrites          1.4.0       Atomic file writes.
attrs                 19.3.0      Classes Without Boilerplate
black                 19.10b0     The uncompromising code formatter.
cached-property       1.5.1       A decorator for caching properties in classes.
certifi               2020.6.20   Python package for providing Mozilla's CA Bundle.
cffi                  1.14.0      Foreign Function Interface for Python calling C code.
chardet               3.0.4       Universal encoding detector for Python 2 and 3
cli-ui                0.10.3      Build Nice User Interfaces In The Terminal
click                 7.1.2       Composable command line interface toolkit
codecov               2.1.7       Hosted coverage reports for GitHub, Bitbucket and Gitlab
colorama              0.4.3       Cross-platform colored terminal text.
colored-traceback     0.3.0       Automatically color uncaught exception tracebacks
contextlib2           0.6.0.post1 Backports and enhancements for the contextlib module
coverage              5.1         Code coverage measurement for Python
dparse                0.5.1       A parser for Python dependency files
entrypoints           0.3         Discover and load entry points from installed packages.
execnet               1.7.1       execnet: rapid multi-Python deployment
flake8                3.7.8       the modular source code checker: pep8, pyflakes and co
flake8-comprehensions 1.4.1       A flake8 plugin to help you write better list/set/dict comprehensions.
idna                  2.9         Internationalized Domain Names in Applications (IDNA)
jinja2                2.11.2      A very fast and expressive template engine.
livereload            2.6.2       Python LiveReload is an awesome tool for web developers
markdown              3.2.2       Python implementation of Markdown.
markupsafe            1.1.1       Safely add untrusted strings to HTML/XML markup.
mccabe                0.6.1       McCabe checker, plugin for flake8
mkdocs                1.0.4       Project documentation with Markdown.
mock                  3.0.5       Rolling backport of unittest.mock for all Pythons
more-itertools        8.4.0       More routines for operating on iterables, beyond itertools
mypy                  0.760       Optional static typing for Python
mypy-extensions       0.4.3       Experimental type system extensions for programs checked with the mypy typechecker.
packaging             20.4        Core utilities for Python packages
path                  13.3.0      A module wrapper for os.path
pathspec              0.8.0       Utility library for gitignore style pattern matching of file paths.
pluggy                0.13.1      plugin and hook calling mechanisms for python
py                    1.8.2       library with cross-python path, ini-parsing, io, code, log facilities
pycodestyle           2.5.0       Python style guide checker
pycparser             2.20        C parser in Python
pyflakes              2.1.1       passive checker of Python programs
pygit2                1.2.1       Python bindings for libgit2.
pygments              2.6.1       Pygments is a syntax highlighting package written in Python.
pyparsing             2.4.7       Python parsing module
pytest                5.4.3       pytest: simple powerful testing with Python
pytest-cov            2.10.0      Pytest plugin for measuring coverage.
pytest-forked         1.1.3       run tests in isolated forked subprocesses
pytest-xdist          1.32.0      pytest xdist plugin for distributed testing and loop-on-failing modes
pyyaml                5.3.1       YAML parser and emitter for Python
regex                 2020.6.8    Alternative regular expression module, to replace re.
requests              2.24.0      Python HTTP for Humans.
ruamel.yaml           0.16.10     ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order
ruamel.yaml.clib      0.2.0       C version of reader, parser and emitter for ruamel.yaml derived from libyaml
safety                1.9.0       Checks installed dependencies for known vulnerabilities.
schema                0.7.2       Simple data validation library
six                   1.15.0      Python 2 and 3 compatibility utilities
tabulate              0.8.7       Pretty-print tabular data
toml                  0.10.1      Python Library for Tom's Obvious, Minimal Language
tornado               6.0.4       Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
typed-ast             1.4.1       a fork of Python 2 and 3 ast modules with type comment support
typing-extensions     <IP_ADDRESS>     Backported and Experimental Type Hints for Python 3.5+
unidecode             1.1.1       ASCII transliterations of Unicode text
urllib3               1.25.9      HTTP library with thread-safe connection pooling, file post, and more.
wcwidth               0.2.5       Measures the displayed width of unicode strings in a terminal

Cygwin itself doesn't have a version number; instead, each installed package has its own numbering scheme.  So, one has to manually pull together anything else that's of interest:
Python 3.8.3
poetry 1.0.9
git 2.27.0

I may just need to close this issue.  It seems trivially easy for the Cygwin installation of python to "pick up" files from the Windows native installation!
Trying to ensure that I was running solely using Cygwin executables, I re-install pip and poetry, but then ran into woe trying to get pygit2 installed.  That depends upon libgit2.  Although Cygwin claims to have some libgit2 packages, they are all numbered fairly low (0.24 through 0.26), and pygit2's build claims to want 1.0.x.
Googling around, one can find this semi-interesting stackoverflow discussion:
https://stackoverflow.com/questions/1456269/python-git-module-experiences
This remark from ~7 years ago is relevant:

stay away from this combination if you ever plan on clients using cygwin. pygit2 is a wrapper for libgit2 and libgit2 has dropped all cygwin support. The comment I got from one of the dev's, "You can try, but it be a miracle if it builds" beautiful API, yes, but half my clients are cygwin therefore I can't use it. Probably going to GitPython. – scphantm Sep 23 '13 at 17:55

I agree - let's close this.


feature:  Add tests for Core package.

Used GH Copilot for these. Then I re-factored and solved the problems, but it was a great help to bootstrap. #theFutureIsHere

Do you know if we could have something like https://github.com/thousandeyes/thousandeyes-sdk-java/pull/83 for python ?

yeah, I think we can. Will work on that afterwards if I can


feat(ltexls): simplify configuration

Untested, we should use the defaults and redirect users to grammarguard if they want something more opinionated.

@David-Else want to test this?

I was away from the computer. I tried this update just now, but I am afraid ltexls is not running on my Markdown file that was working. I get this from LspInfo:
 Client: ltex (id: 2, pid: 72659, bufnr: [1])
 	filetypes:       bib, markdown, org, plaintex, rst, rnoweb, tex
 	autostart:       true
 	root directory:  /home/david/Downloads
 	cmd:             ltex-ls

I am definitely in a git repo. I have:
require('lspconfig').ltex.setup {}

to configure it. This is what I had before:
-- require('lspconfig').ltex.setup {
--   settings = {
--     ltex = {
--       language = 'en-US',
--       additionalRules = {
--         enablePickyRules = true,
--         motherTongue = 'en',
--         -- languageModel = '~/',
--       },
--     },
--   },
-- }

should be fixed now

Brilliant, all working now :) THANKS for all the work you put into getting this sorted!


Added new style: Amber

I've added the style @raysan5 requested, the one that I use in my own game engine editor.

@ssoher Fantastic addition! Thank you very much! 👍😄

My pleasure @raysan5 🙏


add expiry date to TimestampSigner

Could you please add some kind of expiry date to the TimestampSigner? I want to allow my users to decide how long their links should be valid. Currently i have to include the current timestamp (by using the TimestampSigner) and the max age the user wants. So in such a case it would be much more helpful to handle the integrated Timestamp as expiry date and not as creation date ... but even if i would handle the date check myself, it seems not to be possible to define the now-timestamp used by the TimestampSigner.

This is a good case for writing your own Serializer subclass.


community.chat_models: add Straico 3rd party integration

Provide 3rd party integration for langchain with Straico. Straico is a platform that provides access to a variety of state-of-the-art generative AI models (including ChatGPT-4, Claude 3 Opus, Llama 3, Gemini, etc) for text, images and audio generation under one coin-based pricing system. There was a lifetime deal a while ago that gives you $40 in credits every month which accumulate, great for playing around with the newest LLMs.
Official Website
Straico Models and pricing
Code: libs/community/langchain_community/chat_models/straico.py

Streaming is currently not implemented
Uses Pydantic's SecretStr type for API Keys
model specifies the model to be used

Added:

[x] Unit tests
[x] Integration tests
[x] Docstrings
[x] Sample notebook

friendly ping @baskaryan for review :)

hey if you look at the CI output I don't think merging in the community change is the issue! You'll still need to fix those in order to get the docs merged even with the new process:
This adds a net-new community integration or feature, which has been replaced by dedicated integration packages. I'll close this PR, and would recommend reopening with just docs updates, as well as registering your package in libs/packages.yml! We'll be able to review simple PRs that only modify these two things much faster :)
Here's the guide, and if you have questions, feel free to leave them in the comments on those pages so others can see them! https://python.langchain.com/docs/contributing/how_to/integrations/


Running tests fail

Build Problem
Hi friends.
I'm working on adding some extensions to the Swift portion to enable CoreMedia and AVFoundation compatibility.
With a checkout of the project in Xcode 14.3.1 on Mac OS 13.4.1, I am unable to run tests via Xcode's built in testing framework, which appears supported given the project's structure and source.
To Reproduce
Checkout latest into a new repo
Command + U to run tests, or in the command line swift test - both result in
'any/any.hpp' file not found
Expected Behavior
Tests run (and pass)
Screenshots

Logs
vade@Attitude-Adjuster OpenTimelineIO-Swift-Bindings % swift test
warning: 'opentimelineio-swift-bindings': Invalid Exclude '/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentime/OpentimeConfig.cmake.in': File not found.
warning: 'opentimelineio-swift-bindings': Invalid Exclude '/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/OpentimelineIOConfig.cmake.in': File not found.
Building for debugging...
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/externalReference.cpp:4:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/externalReference.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/mediaReference.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObjectWithMetadata.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObject.h:9:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/anyDictionary.h:6:
/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/any.h:6:10: fatal error: 'any/any.hpp' file not found
#include "any/any.hpp"
         ^~~~~~~~~~~~~
1 error generated.
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/clip.cpp:4:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/clip.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/item.h:7:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/composable.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObjectWithMetadata.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObject.h:9:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/anyDictionary.h:6:
/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/any.h:6:10: fatal error: 'any/any.hpp' file not found
#include "any/any.hpp"
         ^~~~~~~~~~~~~
1 error generated.
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/CORE_VERSION_MAP.cpp:13:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/typeRegistry.h:6:
/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/any.h:6:10: fatal error: 'any/any.hpp' file not found
#include "any/any.hpp"
         ^~~~~~~~~~~~~
1 error generated.
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/composable.cpp:4:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/composable.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObjectWithMetadata.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObject.h:9:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/anyDictionary.h:6:
/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/any.h:6:10: fatal error: 'any/any.hpp' file not found
#include "any/any.hpp"
         ^~~~~~~~~~~~~
1 error generated.
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/effect.cpp:4:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/effect.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObjectWithMetadata.h:6:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/serializableObject.h:9:
In file included from /Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/anyDictionary.h:6:
/Users/vade/Documents/Repositories/OpenTimelineIO-Swift-Bindings/OpenTimelineIO/src/opentimelineio/any.h:6:10: fatal error: 'any/any.hpp' file not found
#include "any/any.hpp"
         ^~~~~~~~~~~~~
1 error generated.
[3/49] Compiling opentime.mm
error: fatalError

Im an ass, and my submodules weren't fully recursively initialized.

You're not alone! This comes up quite often, and not only with this package.
If anyone has any suggestions about how the build could check for this and give a helpful message, we'd love to hear them :)


Templates are not keeping line breaks

Observation
Templates are not keeping line breaks after being saved to Firestore

Expectation
Line breaks and formatting such as tabs, and spaces should be kept "as is" when saving and reading data from Firestore.

Analysis
Please see related post on StackOverflow that are narrowing down the problem to probably being an issue of reading the data from Firestore and putting it into CKEditor.

Already works


requirements file is missing

There is no requirements.txt file on this repo

Yeah sorry about that. I've just pushed the new changes including the requirements.txt. Thanks.


Refactoring - Extensions: Move Language Features to Model

As I was working on the completions and the definition provider, I realized that some of our language integrations were 'tightly coupled' to the VSCode extension implementation. For example,  our CompletionProvider was defined by a VSCode extension id and metadata (a DocumentSelector).
However, it's desirable to have these language features decoupled from the VSCode extension host implementation, for a few reasons:

Less complicated, easier to reason about in isolation
We can create features like completion providers external to the VSCode extension host (a great use case would be keyword completion!)... or even expose Reason/OCaml APIs for them, independent of the extension host.
Easier to test

I also tightened up the nomenclature - most of the code we were using Completion vs Suggest - I left Suggest in the VSCode specific parts (although, it's inconsistent even there - the extension API uses completion, while other places, like the configuration or input, use suggest).
I started this for the definition provider in #1026, but it was awkward, in that now the CompletionProvider and DefinitionProvider operated at different levels of abstraction - the CompletionProvider was coupled to the extension host, but the DefinitionProvider was not.
This change pivots the idea of a CompletionProvider - from being something defined in Oni_Extensions that is coupled to the VSCode extension host model, to a function:
type t = (Buffer.t, CompletionMeet.t, Position.t) => option(Lwt.t(list(CompletionItem.t)))

It might look a bit strange to have this return an option(Lwt.t(...)), but this gives completion providers a way to filter - if they don't want to handle a particular buffer (based on filetype, etc), they can just return None.
Then, we have a separate ExtensionCompletionProvider that, given an extension host and some registration info, can create a CompletionProvider.t
As I moved the LanguageFeatures.t to Model from Extensions, a few other changes had to be made to break circular dependencies - I pulled out the Actions.completionMeet (seems like there was duplication between that and CompletionMeet.t), as well as Actions.completionItem and factored that to a CompletionItem.t
TODO:

[x] Get tests green again - need to bring back a deterministic way to see a completion provider registered.

I added a card in the Technical project (https://github.com/onivim/oni2/projects/10#card-30447137) to track some remaining issues:

Splitting up LanguageFeatures to separate modules
Moving from the 'function' implementations stored in State to an alternative design

I think as we get a few more of the integrations hooked up from the Extension Host, as well as some non-Extension Host integrations (like keyword completion), the constraints will be clearer and we can look at further improvements in the design.

/azp run

I'll bring this in, so that I can unblock some of the additional extension-host integration work - but will track revisiting the design in:
https://github.com/onivim/oni2/projects/10#card-30447137
https://github.com/onivim/oni2/projects/10#card-30449023


Use pre-downloaded weights in containerised implementation

I've got TotalSegmentator running in a Docker container, however, with every run of the container it downloads the model weights which is about 10 minutes of dead time, effectively.
What's the easiest way of telling TotalSegmentator to use weights which exist locally rather than downloading?
Thanks in advance.

The following could be a solution: Mount the directory with the weights into the docker container using the -v option. Inside of the docker container use the environment variable "TOTALSEG_WEIGHTS_PATH" to point to the directory where the weights are mounted to. Then TotalSegmentator will not download the weights but use the existing ones.

Hey @tomaroberts!
Alternatively to @wasserth's (very clever) suggestion, if you don't want to mount an additional volume with the model weights stored inside (e.g., under /home/user/.totalsegmentator), you could also pull the weights from Zenodo directly inside the container and store them at the proper location. This might be easier for you (as you won't need to pull the model weights locally).
If you want to take a look at how we did it as part of a repository we're developing to containerize various DL models, you're welcome to do so here 🙃
For now, we're pulling only the weights for the --fast mode - but this can be easily changed by copying/pasting code and using the Zenodo links provided by the dev(s) in this script.

@denbonte
Thanks, I'll check it out!

I have got this working now, thanks @denbonte and @wasserth
I used a combination of both your suggestions here: https://github.com/GSTT-CSC/TotalSegmentator-AIDE/blob/cdfb930004252b5cd12886bedfdd86c06591270c/app/Dockerfile#L32
Basically, download the weights inside the Docker container, then set the ENV variable TOTALSEG_WEIGHTS_PATH inside the container (line 80). This is picked up by TotalSegmentator on execution.
Worked a charm! :)


filebeat::default - there are problems and -y was used without --force-yes

I get the following error when trying to install filebeat using a recipe that includes filebeat::default.
---- Begin output of ["apt-get", "-q", "-y", "-o", "Dpkg::Options::=--force-confnew", "install", "filebeat=5.2.2"] ----
STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be DOWNGRADED:
  filebeat
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 240 not upgraded.
Need to get 8931 kB of archives.
After this operation, 1422 kB disk space will be freed.
STDERR: E: There are problems and -y was used without --force-yes
---- End output of ["apt-get", "-q", "-y", "-o", "Dpkg::Options::=--force-confnew", "install", "filebeat=5.2.2"] ----
Ran ["apt-get", "-q", "-y", "-o", "Dpkg::Options::=--force-confnew", "install", "filebeat=5.2.2"] returned 100
[2017-07-24T11:47:04+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

I can install filebeat using same command with --force-yes flag.
Specs:
Ubuntu 14.04
Chef Development Kit Version: 1.3.43
chef-client version: 12.19.36
berks version: 5.6.4
kitchen version: 1.16.0
Filebeat: 0.4.9

@androidfanatic Are you trying to downgrade filebeat? I do not see any issue with fresh install.

@androidfanatic I was able to reproduce the issue by downgrading filebeat version. Updated default apt-get options to include --force-yes

Fixed in master. Closing.


Create Slackbot and/or Hipchat bot

Create a bot that can create and link a room in Slack or Hipchat (as well as the front facing APIs needed for it to interact with)
Our team currently uses Slack, so we would mostly likely create that one, but we would make it in a public repo so it should be easy to port to Hipchat.

This requires a valid SSL Cert on the Meteor server to allow for Slack (not sure about Hipchat) to make calls to it.

I suggest using the MS bot Framework (https://dev.botframework.com/).  Should allow you to expose it to multiple channels without redeveloping.


Dataset.chunk() does not overwrite encoding["chunks"]

What happened?
When using the chunk function to change the chunk sizes of a Dataset (or DataArray, which uses the Dataset implementation of chunk), the chunk sizes of the Dask arrays are changed, but the "chunks" entry of the encoding attributes are not changed accordingly. This causes the raising of a NotImplementedError when attempting to write the Dataset to a zarr (and presumably other formats as well).
Looking at the implementation of chunk, every variable is rechunked using the _maybe_chunk function, which actually has the parameter overwrite_encoded_chunks to control just this behavior. However, it is an optional parameter which defaults to False, and the call in chunk does not provide a value for this parameter, nor does it offer the caller to influence it (by having an overwrite_encoded_chunks parameter itself, for example).
I do not know why this default value was chosen as False, or what could break if it was changed to True, but looking at the documentation, it seems the opposite of the intended effect. From the documentation of to_zarr:

Zarr chunks are determined in the following way:
From the chunks attribute in each variable’s encoding (can be set via Dataset.chunk).

Which is exactly what it doesn't.
What did you expect to happen?
I would expect the "chunks" entry of the encoding attribute to be changed to reflect the new chunking scheme.
Minimal Complete Verifiable Example
import xarray as xr
import numpy as np

# Create a test Dataset with dimension x and y, each of size 100, and a chunksize of 50
ds_original = xr.Dataset({"my_var": (["x", "y"], np.random.randn(100, 100))})
# Since 'chunk' does not work, manually set encoding
ds_original .my_var.encoding["chunks"] = (50, 50)
# To best showcase the real-life example, write it to file and read it back again.
# The same could be achieved by just calling .chunk() with chunksizes of 25, but this feels more 'complete'
filepath = "~/chunk_test.zarr"
ds_original.to_zarr(filepath)
ds = xr.open_zarr(filepath)

# Check the chunksizes and "chunks" encoding
print(ds.my_var.chunks)
# >>> ((50, 50), (50, 50))
print(ds.my_var.encoding["chunks"])
# >>> (50, 50)

# Rechunk the Dataset
ds = ds.chunk({"x": 25, "y": 25})
# The chunksizes have changed
print(ds.my_var.chunks)
# >>> ((25, 25, 25, 25), (25, 25, 25, 25))
# But the encoding value remains the same
print(ds.my_var.encoding["chunks"])
# >>> (50, 50)

# Attempting to write this back to zarr raises an error
ds.to_zarr("~/chunk_test_rechunked.zarr")
# NotImplementedError: Specified zarr chunks encoding['chunks']=(50, 50) for variable named 'my_var' would overlap multiple dask chunks ((25, 25, 25, 25), (25, 25, 25, 25)). Writing this array in parallel with dask could lead to corrupted data. Consider either rechunking using `chunk()`, deleting or modifying `encoding['chunks']`, or specify `safe_chunks=False`.

MVCE confirmation

[X] Minimal example — the example is as focused as reasonably possible to demonstrate the underlying issue in xarray.
[X] Complete example — the example is self-contained, including all data and the text of any traceback.
[X] Verifiable example — the example copy & pastes into an IPython prompt or Binder notebook, returning the result.
[X] New issue — a search of GitHub Issues suggests this is not a duplicate.

Relevant log output
No response
Anything else we need to know?
No response
Environment

INSTALLED VERSIONS
commit: None
python: 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0]
python-bits: 64
OS: Linux
OS-release: <IP_ADDRESS>-microsoft-standard-WSL2
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: C.UTF-8
LOCALE: ('en_US', 'UTF-8')
libhdf5: 1.10.7
libnetcdf: 4.8.1
xarray: 2023.7.0
pandas: 1.5.3
numpy: 1.24.2
scipy: 1.10.0
netCDF4: 1.5.8
pydap: None
h5netcdf: 0.12.0
h5py: 3.6.0
Nio: None
zarr: 2.14.1
cftime: 1.5.2
nc_time_axis: None
PseudoNetCDF: None
iris: None
bottleneck: 1.3.6
dask: 2022.01.0+dfsg
distributed: 2022.01.0+ds.1
matplotlib: 3.5.1
cartopy: None
seaborn: None
numbagg: None
fsspec: 2023.1.0
cupy: None
pint: None
sparse: None
flox: None
numpy_groupies: None
setuptools: 59.6.0
pip: 23.2.1
conda: None
pytest: 7.2.2
mypy: 1.1.1
IPython: 7.31.1
sphinx: None

I suspect this may be a regression introduced by #7019

I have attempted to write a fix for this, see PR #8069, but some failing tests in test_backends seem to point to some further issues regarding the setting of the encoding attribute: test xarray/tests/test_backends.py::TestZarrDictStore::test_chunk_encoding_with_dask seems to directly assume that .chunk() does not set any encoding, and I did not want to overrule that assumption without further input

Yes, we do not want to update encoding. We are planning on getting rid of it soon (https://github.com/pydata/xarray/issues/6323#issuecomment-1492098719) you should be able to use .reset_encoding() to get rid of the errors.
From the chunks attribute in each variable’s encoding (can be set via Dataset.chunk).

We should delete that reference to Dataset.chunk

Ah, I see. I was not aware of the intention to deprecate the encoding attribute. However, I think the current state of the .chunk() function is still undesirable, as it leaves the Dataset in a 'broken' state.
I can think of 4 solutions to the current situation, and I am willing to edit my PR to fit whatever resolution is deemed best:

Set encoding["chunks"] as part of .chunk(). When the encoding attribute gets removed from the codebase, this behavior will be taken out again. Until then it would appear (to me, at least) as the 'expected' result of the .chunk() function, given the existence of encoding. (This is the current intent in my PR)
Only update encoding["chunks"] as part of .chunk() if it is already present on the variable. This would effectively only "fix" the encoding attribute where it exists. No encoding is added, but a Dataset with configured encoding["chunks"] does not suddenly lose it after passing through .chunk(). (Feels a bit inconsistent to me)
Remove any encoding["chunks"] entries when .chunk() is called. Provides a 'clean slate', where chunking is now defined by the new chunk sizes of the Dask arrays. Any existing values as part of encoding are made obsolete by calling .chunk() and are thus removed. Would work towards a future without encoding in terms of program flow. (This would be my preferred solution, given my current understanding of the state of things)
All encoding is removed when .chunks() is called, possibly by added a call to .reset_encoding() to the function. Aggressively moves towards a future without encoding. Has the (possibly significant) downside of removing any other properties stored in encoding, which would probably be unexpected behavior for users. (I would not be in favor of this)

My problem with the last option is also why calling .reset_encoding() after a call to .chunk() is undesirable to me, as in my use case there are more properties stored in encoding that I do not want to lose when changing the chunk sizes.
Regarding the proposed future without the encoding attribute, with any encoding stored in a separate object: Consider an application where a Dataset is created in one part, then goes through several stages of processing, and is finally written to a file. It would be a pain to have to pass an encoding object alongside it, in every function, just so that the encoding is not lost along the way, while it is only required at the end during the write stage. I do not expect to move the needle on the overall decision with this comment, but I hope it can serve as an argument for why a built-in solution that does not simply fully clear encoding may have some merit.

Closing as unlikely to inspire change, please reopen if anyone disagrees


Apply for friend link

👋 Hi!
I noticed that you have built an amazing blog website with plenty of quality content. Can I apply for a friend link?
Here is my personal website
From Bruce

Of course, already done

I just finished this page.
https://www.brucesong.xyz/links


Django authentication backend

Add a django authentication backend, so that Oso can be used to provide authorization for django libraries that weren't specifically written for it.

This is my initial untested implementation
from django.contrib.auth.backends import BaseBackend
from django.core.exceptions import PermissionDenied
from django_oso.oso import Oso

class OsoBackend(BaseBackend):  # BaseBackend was added in Django 3.0
    """
    Handles authorization against Oso.
    """

    #: If True (default), super users will skip Oso authorization
    # (This is true as a simple default--makes it easier to develop initially)
    superuser_bypass = True

    #: If True (not default), this will block additional backends from attempting
    #: authorization.
    block_additional_backends = False

    def get_user_permissions(self, user_obj, obj=None):
        # Do nothing because we can't ask Polar this question
        return set()

    def get_group_permissions(self, user_obj, obj=None):
        # Do nothing because we can't ask Polar this question
        return set()

    def get_all_permissions(self, user_obj, obj=None):
        # This is assumed to have the similar semantics as has_perm():
        # * If obj is given, return the perms for this object
        # * If obj is None, return the perms the user has unconditionally
        perms = Oso.get_allowed_actions(user_obj, obj, allow_wildcard=True)
        if '*' in perms:
            # TODO: Query django for defined permissions
            perms.remove('*')
        return perms

    def has_module_perms(self, user_obj, app_label):
        """
        Return True if user_obj has any permissions in the given app_label.
        """
        # TODO: This needs to query Polar if the user has any f"{app_label}.*"
        # permission for some object.
        # That is, `allow(user_obj, f"{app_label}.*", *)`
        ...

    def with_perm(self, perm, is_active=True, include_superusers=True, obj=None):
        """
        Return users that have permission "perm". By default, filter out
        inactive users and include superusers.
        """
        # TODO: This needs to perform an ORM query against the polar query `allow(*, perm, obj)`
        ...

    def has_perm(self, user_obj, perm, obj=None):
        if self.superuser_bypass and user_obj.is_superuser:
            return True

        # Perm will be in django's standard 'app.action_model' form
        if Oso.is_allowed(user_obj, perm, obj):
            # Authorized
            return True
        else:
            if self.block_additional_backends:
                raise PermissionDenied()
            else:
                return False

class OsoBackend_Nice(OsoBackend):
    """
    Handles authorization against Oso.

    Authorization will be fall through to other backends.
    """
    block_additional_backends = False

class OsoBackend_Complete(OsoBackend):
    """
    Handles authorization against Oso.

    Authorization will be blocked from other backends.
    """
    block_additional_backends = True

Note that there's some unimplemented methods that depend on Oso's advanced analysis capabilities. These are optional methods.

I would consider it a reasonable alternative to have these classes load some "baseline rules" into oso that mimic the Django baseline rules. (Superusers can do anything, inactive and anonymous users can do nothing. However, these rules are more based on the usual django practices rather than Oso-flavored ones.)

Whoot - this looks great. Rolling stuff in involves finding engineering time to flesh it out, write tests, etc. but this and  #931 definitely go into the inbox.  Would you consider turning this into a PR?


[config] Add Okta log schema

to:
cc: @airbnb/streamalert-maintainers
related to:
resolves:
Background
Adds a schema for classifying Okta System LogEvent records based on https://developer.okta.com/docs/reference/api/system-log/#logevent-object-annotated-example
Changes

Adds okta.json under conf/schemas with an okta:logevents subtype

Testing
Unit tests don't break

Looks like the tests actually passed, but the failing CI is due to this error:
coveralls.exception.CoverallsException: Not on TravisCI. You have to provide either repo_token in .coveralls.yml or set the COVERALLS_REPO_TOKEN env var.
##[error]Process completed with exit code 1.

@themullinator if you target release 3.3.0 vs master and rebase onto that CI should pass.

Hi @themullinator thank for the contribution. As @gavinelder pointed out, CI should be happy after change your based to release-3-3-0, I believe you can do it from GUI as well.
Also, can you add test event for validate the schema? It will be a good reference for the future users to understand what's the structure of Okta log.
You don't need to write a rule, just to have a *.json file containing Okta log examples similar to fleet test events.

We're probably gonna need a squash commit, but finally got there in the end :) Thanks for the assist!


chore: fix dev deps

fixes dev deps and moves license check to the end so it checks the newly generated requirements.txt

need to add a contribution guide to ensure everyone uses poetry correctly

Looks good... Need to merge to my branch as well...

yes, this will help your branch pass builds


adding guide for scorer config

Thanks for the comments @cheungrowan. I added some more context to the guide - linking to SDK docs and the custom scorer guide. What do you think?


User able to indicate AABB to be used for octree generation

The user is now able to indicate a AABB to be used for the octree generation. If not provided it will be automatically computed (like it was done before)
Using a fixed AABB together with using fixed spacing and number of levels allows to combine octrees into a single one. See [Massive-PotreeConverter] (https://github.com/NLeSC/Massive-PotreeConverter)
Usage example:
PotreeConverter -o /pak1/ltdata/test_potree_converter -l 8 --output-format LAZ --source /pak2/usrdata/ahn2/benchmarks/000020m/ahn_bench000020.las -s 18 --aabb "13420.00 306740.00 -30.00 278490.00 615440.00 400.00"

Thanks for the PR!

Cool! No problem


Update techCompanies.js

Added the IPI Power Tech and KITS Technologies to the JS file just as asked by @gray-adeyi
@OSCA-Ado-Ekiti
Also did some touches to the previous submitted list added (just as seen in the changes show along with this PR).

Nice work there! Thanks for removing the unnecessary quotes...was about creating an issue for it. 😎

Nice work there! Thanks for removing the unnecessary quotes...was about creating an issue for it. 😎

You're welcome boss. If seen more alikes, will create the issue and worked on it


Changed high transaction test to send token.kv transfers

Change Description
Sets the token.kv contract and sends transfers to tokn.kv contract to better approximate the activity we are trying to diagnose. Also includes zipkin changes done by HuangMing.
Change Type
Select ONE:

[ ] Documentation

[ ] Stability bug fix

[ ] Other

[ ] Other - special case

Testing Changes
Select ANY that apply:

[ ] New Tests

[ ] Existing Tests

[ ] Test Framework

[ ] CI System

[ ] Other

Consensus Changes

[ ] Consensus Changes

API Changes

[ ] API Changes

Documentation Additions

[ ] Documentation Additions

Closing and just creating a PR with just the test changes.


Translation strings one language per line to aid in translation

One language string per line
en: "like this".
se: "eller så här"
would be a first step towards easier translations as then I can grep those "en:" lines, distribute them to translators, and collect the results... after which some magic will happen and the translations will find their way into the code. Partly done by @jariarkko but needs to be applied to ALL strings.

Postponed. Needs time. What is best? Into what direction will the s/w develop?

Started working on this long overdue cleanup project.


Can't use the new v-slot syntax inside a template tag that is there only for conditional purposes

Version
2.6.10
Reproduction link
https://codesandbox.io/s/vue-template-9r28t
Steps to reproduce
Visit the repo and check out the template compilation error for App.vue. Remove the <template v-else> to get rid of the error.
What is expected?
The template compiles properly
What is actually happening?
The template doesn't comiple

Vue should allow to use slots inside a template tag that is inside component. Without this, the new slot syntax severely limits how one can put content into slots in more complex scenarios and forces repeating yourself on multiple template tags.

Duplicate of https://github.com/vuejs/vue/issues/7904

I'm confused because it doesn't work with the old syntax either, but it sounds like it did work for you with the old syntax

Now I am confused. It works with the old syntax. This is the same code as above just the slot syntax is different: https://codesandbox.io/s/vue-template-crbwt
Sorry for a duplicate, I haven't found it even though I was looking for it.

My bad, I was using both syntaxes at the same time. The other issue now works, so I'm not sure about so maybe it was reconsidered later and something is missing in the new implementation


Could u kindly implement pytorch-maml part?

Hi, I found it's very difficult to implement the code in MAML.
Currently my implementation has some bugs: https://github.com/dragen1860/MAML-Pytorch
Im not sure how to do 2nd derivate in MAML.
And also I search other implementation in pytorch and there are more severe bugs in them.
So would u kindly publish a correct verion of pytorch-maml or You CAN just review my implementation above and help me see any bugs?
Thanks so much.

@dragen1860 that is something pretty rude to say.

Hi @dragen1860 , I'm sorry I haven't worked on the supervised setting of MAML unfortunately, so I would be of much help here I guess. Check the way policies are implemented to get some inspiration on how to handle the parameter adaptation on the learner (which I guess would be similar in the supervised case). The second derivative is computed automatically through the automatic differentiation of Pytorch (no specific tricks required, other than create_graph=True when computing the gradient for the adaptation).
I also have seen this implementation which seems popular, but I haven't tried it myself. Hope this will help you!


hosting rasaui on aws instance

I am trying to setup rasaui on an AWS instance and expose it through the external ip.
I changed the security inbound rules to add port 5000 (rasa_nlu) and port 5001 to be accessed externally (from my local ip for now).
rasa_nlu works fine when i try <external-ip>:5000 but rasaui does not come up with <external-ip>:5001 . I tried it locally with curl http://localhost:5001 and it seems to return fine.
The ui server seems to be running ok
Rasa UI Server: http://localhost:5001

Express server listening on port 5001

Rasa Core Error: Error: connect ECONNREFUSED <IP_ADDRESS>:5005
Using connection string from: package.json

Rasa NLU Connected
Using connection string from: package.json
Rasa NLU Server: http://localhost:5000

Postgres DB Connected
Using connection string from: package.json
Postgres Server: <IP_ADDRESS>:5432
Database:rasaui
Schema:public

What am i missing here ?

@ajkl is this still an issue?
Iam pretty sure it has to do with firewall rules.


Fall back to creating a new editor if it can't be reused

Checklist

[ ] I have added tests

@pokey I had to temporary disable reuse of editor and always default to opening a new one. I tried checking if it was closed, I tried opening a new on error but nothing works reliably in CI.


Module version mismatch when using webFrame.setSpellCheckProvider example.

Apologies in advance if this is an issue in the spellchecker project.
The Electron webFrame docs have the following example for using this plugin:
webFrame.setSpellCheckProvider("en-US", true, {
  spellCheck: function(text) {
    return !(require('spellchecker').isMisspelled(text));
  }
});

Using this example results in the following error:
App threw an error when running [Error: Module version mismatch. Expected 47, got 46.]

Additionally I was able to reproduce on the Electron quickstart project after cloning the project:
npm install --save spellchecker
npm install && npm start

Thanks for any assistance in advance.

Native modules have to be compiled against Electron's headers.
http://electron.atom.io/docs/v0.36.0/tutorial/using-native-node-modules/


Add ability to set cgroup parent for all containers

Fix #18022
Closes https://github.com/docker/docker/pull/18379
(This is a carry of https://github.com/docker/docker/pull/18379)
Signed-off-by: Alexander Morozov<EMAIL_ADDRESS>

Hm documentation CI fails for some weird reason;

I am able to make docs and look at the engine/reference/commandline/daemon page with the updated changes. @moxiegirl: What is causing this documentation test failure?

@anusha-ragunathan I think it's safe to ignore. Apparently it's something that Hugo runs into sometimes, @SvenDowideit just mentioned it on slack

@thaJeztah : Thanks for checking. Lets merge then!

arg, needs a rebase +_+

Darn, probably this one https://github.com/docker/docker/pull/18208

LGTM, let's merge it as it is, since it's a carried on.