feat: remove hardcoded urls, using relative paths instead

Description of change

Removes hardcoded links (https://devopness.com/...) and placeholders (http://link-a-ser-definido.com), replacing for relative paths and a # where links still need to be created.
Issues resolved by this PR

[x] DVN-12616

More info

Deployed pipeline for PR #768 (feat: remove hardcoded urls, using relative paths instead): Devopness application thlmenezes-site.devopness.com deployment in-progress on action https://thlmenezes-site.devopness.com

Deployed pipeline for PR #768 (feat: remove hardcoded urls, using relative paths instead): Devopness application thlmenezes-site.devopness.com deployment completed on action https://thlmenezes-site.devopness.com


Build framework for volunteer log in.

Needs to be done carefully, currently django users are able to see all hamal related items.
To be done while consulting @astar26

Excellent!
Django has built-in permissions and groups so make sure to check that out.

Duplicated by #212


Remove Docker bundling in SageMaker model pkg promote pipeline

Describe your changes
This removes the custom Docker image used for bundling assets in the SageMaker model package promote pipeline stack.
It is unnecessary since the s3_assets.Asset construct can natively zip a directory (emphasis mine):

path: The disk location of the asset.
The path should refer to one of the following:

A regular file or a .zip file, in which case the file will be uploaded as-is to S3.
A directory, in which case it will be archived into a .zip file and uploaded to S3.

We are already providing the directory name as the path so it'll be automatically zipped.
Issue ticket number and link
Related to #193 as it is removes an image/asset to pull during deployment.
Checklist before requesting a review

[x] I updated CHANGELOG.MD with a description of my changes
[x] If the change was to a module, I ran the code validation script (scripts/validate.sh)
[x] If the change was to a module, I have added thorough tests
[x] If the change was to a module, I have added/updated the module's README.md
[x] If a module was added, I added a reference to the module to the repository's README.md
[x] I verified that my code deploys successfully using seedfarmer apply

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: AIOpsModuleTestsInfrastruct-doMLXEYsnmxr
Commit ID: 7c9ef75f9700cf499726149fc6d7ad416bfb5512
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


WIP WIP WIP ci: try verify_build in docker for better isolation

Right now we use the linux executor. We've had semi-regular problems
with the linux executor not giving us the isolation we require during
builds. This moves us to the docker executor to see if we can just get
out of the business of solving boring problems.
Signed-off-by: Steven Danna<EMAIL_ADDRESS>

Only real way to test this is in CI, still a work in progress.


how to train a model using the whole corpus (ignoring partitions)

Dear Silvia,
Love your work!
I have a silly question. How do you train a model using the entire corpus (ignoring partitions)?
Thank you for your help.
Luke

Hello!
Thank you for using OCTIS :)
Not a silly question because I've realized there's something to fix in the code and in the documentation :)
Every model has a method called "partitioning". If you pass "False" then the whole dataset will be used as training, the dataset will be split (as the default). You must call this method before training or optimization. For example:
model = ETM(num_topics=25)
model.partitioning(False)
model_output = model.train_model(dataset)

However, some models have also the parameter "use_partitions" in the initialization which can be set to "False" to obtain the same effect.  I think this is probably the easiest way to do it, but not all models have this parameter (it seems everyone has it except LSI and LDA). I think I'm going to fix this for the next release. See the example below:
model = ETM(num_topics=25, use_partitions=False)
model_output = model.train_model(dataset)

Thank you for your patience.
Silvia

Thank you for your response.
It worked.
Grazie mille!


Cannot read property 'tapAsync' of undefined

Got the error "Cannot read property 'tapAsync' of undefined"

Could you share your webpack config and package.json?

I had this happen when the path to a HTML template was wrong

HtmlWebpackPlugin.getHooks(compilation).beforeAssetTagGeneration.tapAsync
https://github.com/jantimon/html-webpack-plugin/issues/998

Put HtmlWebpackPlugin in front of WebpackCdnPlugin
// order
new HtmlWebpackPlugin({}),
new WebpackCdnPlugin({}),

Am facing this issue too, i have the following code in my webpack.config file:
const HtmlWebpackPugPlugin = require('html-webpack-pug-plugin')
const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin')
const WebpackCdnPlugin = require('webpack-cdn-plugin')
const HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin')
const path = require('path')

const mode = process.env.NODE_ENV || 'development'

const config = {
  output: {
    path: path.resolve(__dirname, 'dist'),
  },
  plugins: [
    ...commonConfig.plugins,
    new HtmlWebpackPlugin({
      template: path.resolve(__dirname, 'src/server/views/index.pug'),
      filename: 'index.pug',
      chunks: ['app'],
      alwaysWriteToDisk: true,
    }),
    new HtmlWebpackPlugin({
      template: path.resolve(__dirname, 'src/server/views/login.pug'),
      filename: 'login.pug',
      chunks: ['login'],
      alwaysWriteToDisk: true,
    }),
    new HtmlWebpackPlugin({
      template: path.resolve(__dirname, 'src/server/views/changePassword.pug'),
      filename: 'changePassword.pug',
      chunks: ['changePassword'],
      alwaysWriteToDisk: true,
    }),
    new HtmlWebpackPlugin({
      template: path.resolve(__dirname, 'src/server/views/forgot-password.pug'),
      filename: 'forgot-password.pug',
      inject: false,
      alwaysWriteToDisk: true,
    }),
    new HtmlWebpackPlugin({
      title: 'title',
      cdnModule: 'react',
      template: path.resolve(__dirname, 'src/server/views/layout.pug'),
      filename: 'layout.pug',
      alwaysWriteToDisk: true,
      // other config
    }),

    // to add defer to our js script imports
    new ScriptExtHtmlWebpackPlugin({
      defaultAttribute: 'defer',
    }),

    // we need this to output pug
    new HtmlWebpackPugPlugin(),

    // to use the output pug from the webpack dev server
    new HtmlWebpackHarddiskPlugin({
      outputPath: path.resolve(__dirname, 'views'),
    }),
    new WebpackCdnPlugin({
      modules: {
        react: [
          {
            name: 'react',
            var: 'React',
            path: `umd/react.${mode}.js`,
          },
          {
            name: 'react-dom',
            var: 'ReactDOM',
            path: `umd/react-dom.${mode}.js`,
          },
          {
            name: 'redux',
            var: 'Redux',
            path: 'dist/redux.js',
          },
        ],
      },
    }),
  ],
}

module.exports = config

I also have this problem. How can I resolve this problem?

Having this issue right now. Really frustrating as this plugin looks very promising.

I'm no longer using this plugin or webpack altogether, PR is welcome to fix this :) and I'll be happy to merge and deploy as soon as possible.

I've teste @toshiyuki-rs PR and it worked fine.
npm install --save-dev toshiyuki-rs/webpack-cdn-plugin


[feature] Global customise-able d3 locale

Feature description
The default locale (notably for currency values) is US English. For other countries where currency might be in Euros or Pounds (or who might want to use commas or stops differently), this makes number formatting hard.
To do this we would need to set a locale for d3 before we call d3.format() on anything as per the docs:
https://github.com/d3/d3-3.x-api-reference/blob/master/Localization.md
I think this should be an option in superset_config.py so that it can be optionally set for any given deployment.
As a bonus point, I think it could be neat to override locales for given metrics. This could be powerful for organisations which have data in multiple currencies. For example setting one column in yen, one in euros and one in pounds. If this is easy to implement we could just do this instead of enabling a global override locale.
Potential implementation
For the basic implementation we would need to pass through a json object which was set in a config variable to each visualisation.
in superset_config.py (for UK):
SUPERSET_D3_LOCALE = """
{
  "decimal": ".",
  "thousands": ",",
  "grouping": [3],
  "currency": ["£", ""],
  "dateTime": "%a %e %b %X %Y",
  "date": "%d/%m/%Y",
  "time": "%H:%M:%S",
  "periods": ["AM", "PM"],
  "days": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  "shortDays": ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  "months": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  "shortMonths": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
} """

and then somewhere in the visualisation javascript we would call:
// for d3 v4
 d3.formatDefaultLocale(definition)
// for d4 v3
 d3.locale(definition)

where definition is that JSON object which we defined in superset.py
column level formatting
If we wanted to also allow column level formatting instructions then one option is allowing a JSON payload on the SqlMetric model (and somewhere on the druid metric too?) which was then passed to d3.format() as an override locale.
@mistercrunch @graceguo-supercat @xrmx - does this sound like:
a) a good idea for a feature?
b) a good idea for implementation?
c) what's the best way to pass through the global locale config to the right javascript? I assume on page load but I don't know exactly where would make the most sense. Would appreciate some guidance.
Any other feedback welcome - I'm happy to do the legwork to actually implement it because we've got enough users that would value it.

I agree this is a nice feature，recently I encountered this problem。

@alanmcruickshank
Is there a work around for showing £ instead of dollars at the moment? I try and format it as such on a big number slice and it just ignores it.

@tristix - no work around as far as I know at the moment. This feature is relatively self contained so could be a good starter-feature if you fancy having a go at it?

FYI there's an easy way to get backend configs to the frontend. Just add the SUPERSET_D3_LOCALE  key name here:
https://github.com/apache/incubator-superset/blob/8dd052de4bbd8176f78318e3beb81526b1ecddd4/superset/views/base.py#L28

Any progress on this issue @alanmcruickshank?

I think the bigger issue here would be to align locales in Superset and D3. D3 already supports localized number and time formats.
There seems to be an alignment issue between Superset and D3 locales. For example, Brazilian Portuguese in Superset is PT_BR and the D3 pt-BR. I think the most robust solution would be to have each chart call the D3 locale based on the user's Superset locale when the chart is displayed. You can see in the sources below that D3 already has everything we need, we just aren't applying it to the user's selected locale.
FYI @mistercrunch and @csc5k
Sources:
Superset Translations: https://github.com/apache/incubator-superset/tree/master/superset/translations
D3-Format: https://github.com/d3/d3-format/blob/master/locale/pt-BR.json
D3-Time-Format: https://github.com/d3/d3-time-format/blob/master/locale/pt-BR.json

Being able to use D3's time-format as @craigappl described above would definitely be helpful.

+1 to this feature

Any update on this issue?

@tristix I have found a way to change the default locale for the number formatting in the Docker image.
You need to modify the file superset/assets/node_modules/d3-format/src/defaultLocale.js which is there after the command npm ci which installs the node_modules.
At this point I used sed to edit that file, like in these commands:
sed -i 's/\([[:space:]]*\)decimal: "\.",/\1decimal: ",",/g' /home/superset/superset/assets/node_modules/d3-format/src/defaultLocale.js
sed -i 's/\([[:space:]]*\)thousands: ",",/\1thousands: "\.",/g' /home/superset/superset/assets/node_modules/d3-format/src/defaultLocale.js
sed -i 's/\([[:space:]]*\)currency: \["$"\(.*\)/\1currency: \["€"\2/g'  /home/superset/superset/assets/node_modules/d3-format/src/defaultLocale.js

In this way the npm run build apply the modifications in the javascripts used by Superset.
I am able also to change the file defaultLocal.js at runtime when the image is running in development mode, with the folder superset mounted and accessible from inside the container.
I am afraid that even if you are not using Docker, the only way is to rebuild everything.
Hope this help, waiting for the new feature.

Thanks @PeterCahn, it worked here.
I changed some other stuffs too and it worked.
decimal: ",",
  thousands: ".",
  grouping: [3],
  currency: ["R$", ""],
  dateTime: "%d/%m/%Y %H:%M:%S",
  date: "%d/%m/%Y",
  time: "%H:%M:%S",
  periods: ["AM", "PM"],
  days: ["Domingo", "Segunda", "Terça", "Quarta", "Quinta", "Sexta", "Sábado"],
  shortDays: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
  months: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
  shortMonths: ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"]});

The changes that I mentioned above did work for weekdays and time range filters. However, they didn't change the currency format.
The image bellow shows the calendar changes working and also the currency don't working.
@PeterCahn, do you have any idea what it might be?

@tristix I have found a way to change the default locale for the number formatting in the Docker image.
You need to modify the file superset/assets/node_modules/d3-format/src/defaultLocale.js which is there after the command npm ci which installs the node_modules.
At this point I used sed to edit that file, like in these commands:
sed -i 's/\([[:space:]]*\)decimal: "\.",/\1decimal: ",",/g' /home/superset/superset/assets/node_modules/d3-format/src/defaultLocale.js
sed -i 's/\([[:space:]]*\)thousands: ",",/\1thousands: "\.",/g' /home/superset/superset/assets/node_modules/d3-format/src/defaultLocale.js
sed -i 's/\([[:space:]]*\)currency: \["$"\(.*\)/\1currency: \["€"\2/g'  /home/superset/superset/assets/node_modules/d3-format/src/defaultLocale.js

In this way the npm run build apply the modifications in the javascripts used by Superset.
I am able also to change the file defaultLocal.js at runtime when the image is running in development mode, with the folder superset mounted and accessible from inside the container.
I am afraid that even if you are not using Docker, the only way is to rebuild everything.
Hope this help, waiting for the new feature.

In version 0.36 I applied to files:
/opt/incubator-superset/superset-frontend/node_modules/d3/d3.js
/opt/incubator-superset/superset-frontend/node_modules/d3-time-format/dist/d3-time-format.js

Any update?

Any updates?

For anyone coming across this the easiest way is to build a new image for Superset:
Dockerfile
FROM apache/superset

COPY ./custom/D3Formatting.ts /app/superset-frontend/packages/superset-ui-chart-controls/src/utils/D3Formatting.ts

USER root

RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
    apt-get install -y nodejs && \
    npm install -g npm@7

ENV NODE_OPTIONS=--max_old_space_size=24576

ENV CYPRESS_INSTALL_BINARY=0

RUN cd /tmp && bash frontend-mem-nag.sh && \
    cd /app/superset-frontend && \
    npm ci --unsafe-perm=true --allow-root && \
    sed -i 's/\([[:space:]]*\)currency: \["$"\(.*\)/\1currency: \["£"\2/g'  /app/superset-frontend/node_modules/d3-format/src/defaultLocale.js && \
    npm run build --unsafe-perm=true --allow-root && \
    rm -rf node_modules

Any updates on how to override locales for months?


Will need a lookup table to match award with prefix title

Each of the types of awards sometimes comes with a prefix title, Tun, Dato etc. for male/female. Users will likely need a standardised lookup list to be able to get out data such as "all people with awards with gelaran Dato'"

Where can anyone find that kind of information? Is it listed somewhere? I can find some information in Wikipedia though, but it's Wikipedia lol. Need to go by each state to get that information.

@amree Here it is:
http://www.istiadat.gov.my/ext_mod/dkn.php?id=; where n=1-20?

For Selangor:
With drilldown by Year: http://awards.selangor.gov.my/awards/subindexyear.php?cat=12
with nice pictures: http://awards.selangor.gov.my/awards/warta.php?cat=12
http://awards.selangor.gov.my/awards/popup4.php?nb=33 (where nb=2-1435)

@leowmjw So basically I or anyone else may had to check every state's website to get the title. Ugh, they should've put it in one website. Oh well, that's kinda expected.


[Bug] CleanupSystem would not be generated in version 1.13

Hi,
I found a bug that CleanupSystem cannot be generated in entitas1.13
Here's the code
using Entitas;
using Entitas.CodeGeneration.Attributes;
using UnityEngine;
[Input, Cleanup(CleanupMode.DestroyEntity)]
public sealed class InputComponent : IComponent
{
public Vector2Int value;
}
After click Jenny->Generate, I can't find CleanupInputSystem in generated code
Cheers

Hi! Cleanup is currently only in the Entitas Unity Asset Store version.
Cleanup and all Roslyn code generators will be part of all Entitas 1.14.
I posted an update to share more info about it:
https://github.com/sschmid/Entitas-CSharp/issues/992#issuecomment-1227761712

All Entitas versions now have this!
See #978


2016 Data Not Showing

I am not great with code so might have been something on my end when installing/setting up, but is there any reason why I would have data for all years but 2016 available? I have tried running nfldb-update a few times but the problem persists. It has the schedule for all games, but scores and play data don't have anything there.

Seeing similar behaviour.  Also, update continuously fails:
psycopg2.IntegrityError: insert or update on table "play" violates foreign key constraint "play_pos_team_fkey"
DETAIL:  Key (pos_team)=(JAX) is not present in table "team".
JAC is present in the table, but JAX is not.
Is there a newer version of nfldb.sql that is required?  I tried downloading the latest nfldb.sql but to no avail.
Reinstalling from scratch did not seem to resolve.

As postgresql nfldb user:
INSERT INTO team(team_id, city, name) VALUES('JAX', 'Jacksonville', 'Jaguars');
Then run update (again).   It took me two runs of update.
Still need to alter any other constants for Jacksonville after the update.

Did you find a solution to this? I am having the same issue. I am relatively knew to all of this stuff so not sure how i would run INSERT INTO team(team_id, city, name) VALUES('JAX', 'Jacksonville', 'Jaguars');
Is that done from the command prompt or postgresql?


Prep for 0.8.0 release.

Update changelog.
A few small code refactoring items.
Update deps for Trunk & examples.
A few small updates to the runtime config (Rtc) system, which now
ensures that all paths coming out of the Rtc config objects are
canonical paths. The build, watch, service &c systems no longer need
to worry about transforming that data.
Suppress canonicalization errors coming watcher events, as these
errors will ALWAYS come up from changes to the dist/.stage dir which
is deleted after every successful build.

I was planning on waiting until #98 is updated (which should be a super fast update). After that, let's rebase & merge this guy. Then we will cut a 0.8.0 release.

Woot woot! This thing is updated and ready to merge. Once CI is green, I'm going to merge and cut the 0.8.0 release.

@DzenanJupic I added a mini example of the inline asset type for a CSS file in the examples/yew/index.html file. Just wanted to make sure we have the asset type represented in an example until we get our integration testing framework in place.
Thanks again for all of the work on that!


Please provide packages for debian 9 aka stretch

To ease deployment testing for the upcoming debian stable release version 9 (stretch) it would be great to have builds for it in the arangodb repositories (https://www.arangodb.com/download-major/debian/).
The jessie builds don't work for stretch because libssl 1.0.0 is missing in stretch.

Hm,
my stretch has:
ii  libssl1.0.0:amd64                                1.0.2-1                              amd64        Secure Sockets Layer toolkit - shared libraries
Which I regularry use to download & test our squeeze .debs; Doesn't that work for you too?
since we didn't port to OpenSSL 1.1 yet, it won't work with these anyways.

rmadison libssl1.0.0
libssl1.0.0 | 1.0.1e-2+deb7u20 | oldstable        | amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc
libssl1.0.0 | 1.0.1k-3         | stable-kfreebsd  | kfreebsd-amd64, kfreebsd-i386
libssl1.0.0 | 1.0.1t-1+deb8u5  | stable           | amd64, arm64, armel, armhf, i386, mips, mipsel, powerpc, ppc64el, s390x
libssl1.0.0 | 1.0.1t-1+deb8u6  | proposed-updates | amd64, arm64, armel, armhf, i386, mips, mipsel, powerpc, ppc64el, s390x
libssl1.0.0 | 1.0.2k-1~bpo8+1  | jessie-backports | amd64, arm64, armel, armhf, i386, mips, mipsel, powerpc, ppc64el, s390x

The official stretch repos don't seem to have this packages any more. Maybe you upgraded from jessie and did not autoremove old packages?

Additional information:
stretch does have libssl1.0.2 and I can confirm arangodb build successfully with it. Would you be able to provide stretch debs from your normal debian repositories? This would be highly appreciated.

yes, once https://github.com/arangodb-helper/build-docker-containers contains a valid container for that.

Hm,
I've tried, but this doesn't seem to work (yet)
Most probably the upstream stretch container isn't ready for primetime yet:
proxy=
+ apt-get update
Err:1 http://security.debian.org stretch/updates InRelease
  Temporary failure resolving 'security.debian.org'
Err:2 http://deb.debian.org/debian stretch InRelease
  Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian stretch-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Reading package lists...
 They have been ignored, or old ones used instead.
+ apt-get install -y tar wget bzip2 automake autoconf python-argparse build-essential apt-utils apt-transport-https debhelper libjemalloc-dev libssl-dev python python-pip
Reading package lists...
Building dependency tree...
Package apt-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  apt

Package bzip2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package debhelper is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package wget
E: Package 'bzip2' has no installation candidate
E: Unable to locate package automake
E: Unable to locate package autoconf
E: Unable to locate package python-argparse
E: Unable to locate package build-essential
E: Package 'apt-utils' has no installation candidate
E: Unable to locate package apt-transport-https
E: Package 'debhelper' has no installation candidate
E: Unable to locate package libjemalloc-dev
E: Unable to locate package libssl-dev
E: Unable to locate package python
E: Unable to locate package python-pip

I've pushed what I've tried to the container repo, if you know what to fix we may continue on this, else I'd wait until stretch is at least in freeze.

You can now download ArangoDB 3.2  .debs for Debian stretch and Ubuntu 17.
Enjoy!


AWS cluster deployment is not working

Cluster prepare is unable to connect to the cluster instances.  The generated sysadmin password is not working for SSH and it's also not working when logging in via the serial console.
I suspect that the boot script is not being executed when booting the instances from the AWS node image.  Perhaps cloud-init is disabled?

The boot script used for AWS is incorrect.  The script is exiting when the /etc/neonkube/cloud-init/disabled file exists.  This file is to be honored by the neon-init service, not cloud-init boot scripts.

FIXED


test(profiler): add tests for ListProfiles sample

Description
Adds test for the ListProfiles API sample for Google Cloud Profiler.
NOTE:
Due to a protobuf registration conflict between the profiler agent and profiler client library, currently to run the test successfully, GOLANG_PROTOBUF_REGISTRATION_CONFLICT environment variable needs to be set.
Run tests locally via -
GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn go test -v

Additional Requirements:

This test requires Cloud Profiler API to be enabled to pass.

Checklist

[X] I have followed Contributing Guidelines from CONTRIBUTING.MD
[x] Tests pass:   go test -v ./.. (see Testing)
[x] Code formatted:   gofmt (see Formatting)
[x] Vetting pass:   go vet (see Formatting)
[x] These samples need a new API enabled in testing projects to pass (let us know which ones)
[x] These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
[ ] This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
[ ] Please merge this PR for me once it is approved

Thanks for the review, @muncus!
I made the suggested changes.


Prevent action to be done if server is not healthy

Possible solutions :

use tonic::transport::channel::Endpoint::[connect_lazy](https://docs.rs/tonic/0.6.2/tonic/transport/channel /struct.Endpoint.html#method.connect_lazy) method from tonic crate
use naive lazy connection (See https://gist.github.com/joelgallant/f0fe9f593728b106daddbf7fa00e10af)


D3DX12.H emits a -Wreserved-identifier warning with clang v13

Officially _ followed by a capital letter is reserved by the C++ Standard for implementors of the compiler and library. Clang v13 adds a new warning to detect this case.
d3dx12.h(2466,41): warning: identifier '_Type' is reserved because it starts with '_' followed by a capital letter [-Wreserved-identifier]
    D3D12_PIPELINE_STATE_SUBOBJECT_TYPE _Type;
                                        ^
d3dx12.h(2467,21): warning: identifier '_Inner' is reserved because it starts with '_' followed by a capital letter [-Wreserved-identifier]
    InnerStructType _Inner;

Proposed PR to fix this: https://github.com/microsoft/DirectX-Headers/pull/49


My first revup bar

Topic: bar

#
head
base
diff
date
summary

0
4023d66a
c78b1781
diff
Apr 25 15:19 PM
1 file changed, 0 insertions(+), 0 deletions(-)

Reviews in this chain:
└https://github.com/em-cxu/revup-tutorial/pull/2 My first revup bar


New tests and some minor changes for BL coordinates

Fixes #89

Fixes #91 #90 #89

Merging this too!


update getting started typescript code examples

As discussed in https://github.com/dexie/dexie-website/issues/145 updating Getting Started docs pages to match the same TypeScript approach that is used in Typescript docs page.
I updated React, Vue and Svelte examples. but left Angular untouched since it's code example is different in the first place (uses TodoList and TodoItem tables instead of Friend and adding populate method) and in general it is more common to use classes in Angular to benefit from DI and so on
I omitted commend "// This prop will be used as primary key (see below)" since I'm not sure where it refers to and if this referred section is available in Getting Started pages as well

Thank you very much!


Improve bitswap performance

In particular we'd like to focus on improving bitswap performance for

one node retrieving a large amount of data from several nodes who already have it
one node retrieving a segment of data from several nodes who have different parts of it
a group of nodes retrieving data from several far-away nodes who already have it

I created an issue in go-bitswap to explain the current implementation of bitswap sessions, as a first step towards understanding where improvements can be made.

I created an issue in go-bitswap to highlight some issues with latency measurement, and proposals to address them

I created an issue in go-bitswap to highlight some issues with session request sharding, and explore parameters for a solution.

I created an issue in go-bitswap to discuss randomizing want list requests.

I created a PR in go-bitswap to improve handling of response messages: it processes messages as a batch instead of one-by-one, which improves session request splitting.

This week

merged PR to improve handling of response messages
merged refactoring PR which will simplify bigger changes we'd like to make once we have worked out how to tackle request sharding (Expect to have this worked out early next week)
opened PR to recognize when we've received a block that we want but haven't had a chance to ask for yet: https://github.com/ipfs/go-bitswap/pull/174

Last week

Implemented PoC of Bitswap Protocol extensions
This week
Improving PoC performance against Bitswap benchmarks

FYI I was working on improving the Bitswap benchmarks by making small modifications to the PoC, but it was to haphazard and buggy, so I'm going to do a proper refactor first.

With the latest changes the PoC seems stable, so I'm looking into improving performance.
I created an issue to discuss how we can improve the performance of bitswap's engine (ie the part of bitswap that receives wants and sends out blocks).
I've implemented Proposals 1 - 4, which address ordering wants and grouping them by block size.
Next I will implement proposal 5, which adds parallelism.


Application-name would be disappeared in Vue.

What happened?
Application-name just show in first time which is set. After refreshing Browser it is disappeared. I try this in React, is ok.

What type of frontend frameware are you seeing the problem on?
Others
Which version of iX do you use?
v1.6.3
Code to produce this issue.

<template>
  <IxBasicNavigation application-name="1231aa3">

    <IxMenu>
      <IxMenuItem>Item 1</IxMenuItem>
      <IxMenuItem>Item 2</IxMenuItem>
    </IxMenu>
  </IxBasicNavigation>
</template>

Fixed with latest version.


Reverse parser

Not to be confused with the unparser (which is already a thing).
[Continuing the discussion about encode() from #169...]
@hardmath123 In tosh, currently I have fragile hand-rolled code to output minimal syntax given a Scratch AST JSON. It's buggy and doesn't understand operator precedence properly.
I realise it's an uncommon problem. But it does seem like something that could be derived from the CFG itself, and so therefore something it makes sense to add as part of nearley's tooling—don't you think?
I suspect it may end up to have other benefits/use cases; e.g. in auto-complete in nearley-codemirror, and making the unparser's output prettier (e.g. not producing unnecessary whitespace!)

From #169: can't you just map .toString() over the flattened, non-postprocessed tree?

That doesn't help me get tosh syntax from Scratch JSON; nor does it help me work out where parentheses are required! :-)

Oh. Gotcha.

This seems like a thing a parser should not be involved with.

It is to do with the CFG.
But now you mention it, maybe you're right; do one thing well, and all that. Clearly I'll have to write a nearley-reverse module :-)

It is to do with the CFG.

So are a lot of things, but that doesn't mean a parsing library should bend over backwards to help support it.

do one thing well, and all that

Yeah. I think your tosh problem is really too specific to be handled by nearley in general. (Though, I do remember someone else asking this exact same question… maybe @bobbybee? Not sure.)

Yeah. I think your tosh problem is really too specific to be handled by nearley in general. (Though, I do remember someone else asking this exact same question… maybe @bobbybee? Not sure.)

Indeed.
Lightly edited IRC logs for reference.

 Are there known algorithms (or proofs against their existence) to map from an AST to a program source given the grammar?
 i.e. go from (+ 1 1) to "1 + 1"
 https://en.wikipedia.org/wiki/Unparser is not particularly helpful...
 It depends on how the program source is turned into the AST.
 But I'll give you a hint: there exist these things called "javascript beautifiers" and "javascript minifiers".
  Wait, isn't this just fancy pattern matching if you restrict it enough?
 And there's this thing called "Haskell" that can derive show and read instances of adts.

nor does it help me work out where parentheses are required!

(Thinking about it, this is kind of a fascinating problem on its own… 🌵)

I did that at some point for PEG, but in general this task is not easy at all.
It is kinda doable when you don't do any postprocessing in callbacks, or use predicates, but when you do - it becomes undecidable.
Also, not every AST corresponds to an AST which may be produced by a given grammar... but that's a different can of worms.

I'll do this as a separate project. :-)

Prototype complete:
https://github.com/tjvr/nearley-reverse

hey, i get here through the "auto-complete" keyword. wondering whether nearley-reverse could be used for... auto-complete. Like with the main "colors" example from nearley, when I type:
#FF I want to get a list of tokens to append to this so that sentence is valid... thus something like [0-9a-f]. is it possible?

This is a question for @tjvr

@vrockai Hey, I'm afraid there isn't any code for automatically doing autocomplete based off a Nearley grammar (yet!). :-)


[Action] Worker Owned Apps Fight Exploitation

https://www.vice.com/en_us/article/pa75a8/worker-owned-apps-are-trying-to-fix-the-gig-economys-exploitation

I'm a bit hesitant to include this article. Was there something specific in it that you were thinking of?
Otherwise, it is just a feature on worker-owned tech companies. its certainly interesting, but i think in general, starting a coop isn't really an act of resistance.


abdulrahman305

@dependapot recreate

Motivation and Context (Why the change? What's the scenario?)
High level description (Approach, Design)

@dependabot recreate


Rich snippets

Remove React in favor of Ecmascript
Add addLdJsonScript method for Rich Snippets support

Awesome.

Released as: v2.2.0

Thanks for the merge and package update. And another thank for your incredible products. I'm pushing all my customers on them. I hope that sooner or later some of them will want to get deeper into them :wink:

Awesome :)
On Tue, Sep 29, 2015 at 2:41 AM Pierre-Eric Marchandet <
<EMAIL_ADDRESS>wrote:

Thanks for the merge and package update. And another thank for your
incredible products. I'm pushing all my customers on them. I hope that
sooner or later some of them will want to get deeper into them [image:
:wink:]
—
Reply to this email directly or view it on GitHub
https://github.com/kadirahq/meteor-dochead/pull/10#issuecomment-143875463
.


No Spotify logo near link to playlist

Add logo for Spotify api compliance guidelines

added spotify logo overlay on top of playlist image


Object destructuring in v-bind

Passing props like this...
<puppy v-bind="{ ...dogLikeQualities }"></puppy>

Produces this error...
Module build failed: Error
    at Node.transpile (/home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:12676:11)
    at /home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:5864:59
    at Array.forEach (<anonymous>)
    at Node.transpile (/home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:5864:10)
    at Node.transpile (/home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:6553:28)
    at /home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:5864:59
    at Array.forEach (<anonymous>)
    at Node.transpile (/home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:5864:10)
    at Node.transpile (/home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:6553:28)
    at /home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:5864:59
    at Array.forEach (<anonymous>)
    at Node.transpile (/home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:5864:10)
    at Node.transpile (/home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:5991:28)
    at /home/mauro/code/sandbox/webpack/node_modules/vue-template-es2015-compiler/buble.js:5864:59
    at Array.forEach (<anonymous>)

Here's a project freshly built from this template that demos this issue: https://github.com/maurop123/object-destructure
The master branch only has the code changes replicating this issue, and the dev branch has the diff attempts to resolve it.

Vue-loader uses buble under the hood to get rid of the with this { ... } code that the template compiler produces.
You probably have to set the objectAssign option for buble in the vue-loader config as shown here:
https://vue-loader.vuejs.org/en/options.html#buble
Note that, as mentioned in that link, you still have to provide a polyfill for Object.assign to support older browsers (IE)

Ok I'll try this out and report back

Works! All I had to do was add this to bottom of my vue-loader.conf.js
module.exports = {
  ...
  buble: {
    objectAssign: 'Object.assign',
    transforms: {  // turn off the `with` removal
      stripWith: false
    }
  }
}

Thanks!

Just made the PR here: https://github.com/vuejs-templates/webpack/pull/1017
If it helps, I can make it on the other templates, too.

@maurop123 @LinusBorg I added the buble config in my vue-loader config, but I still have an error:
ERROR in ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-b7762b10","hasScoped":false,"buble":{"objectAssign":"Object.assign","transforms":{"stripWith":false}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0&bustCache!./src/components/my-component.vue
Is there anything else I should do to make it work?
Thank you

You also Set stripWith: false which you certainly should not do.

@LinusBorg it works, thank you. (This was the occasion for me to discover bublé). So in which case would you turn off the stripWith option?

I don't have a concrete use case for that. It's basically a fallback to the behaviour vue-loader had before webpack 2 came along and all es modules were in strict mode by default. ou probably will never have a use for this option.

For someone who will visit here, this is what worked for me
./build/vue-loader.conf.js
'use strict'
const utils = require('./utils')
const config = require('../config')
const isProduction = process.env.NODE_ENV === 'production'
const sourceMapEnabled = isProduction
  ? config.build.productionSourceMap
  : config.dev.cssSourceMap

module.exports = {
  loaders: utils.cssLoaders({
    sourceMap: sourceMapEnabled,
    extract: isProduction
  }),
  cssSourceMap: sourceMapEnabled,
  cacheBusting: config.dev.cacheBusting,
  transformToRequire: {
    video: ['src', 'poster'],
    source: 'src',
    img: 'src',
    image: 'xlink:href'
  },
  buble: {
    objectAssign: 'Object.assign'
  }
}

and example of template of my component
<template>

    {{ getLabel | capitalize }}
    <input
      v-tooltip="getTooltipContent"
      :bind="$attrs"
      :type="type"
      :value="value"
      :placeholder="getPlaceHolder"
      :class="getClass"
      class="form-input"
      data-vv-validate-on="none"
      v-on="{
        ...$listeners,
        input: event => $emit('input', event.target.value)
      }">

</template>


Please Add License

Hi,
Could you please add a license file to your repo so others may benefit from your code?
Thanks

Sorry for the delay I just added an MIT license to the code :)


Review system config vars

There are multiple services that expose a read-only var that represents a system setting. Changed the animation one to read-write in #193, review others and make then read-write too.

Closed by #216.


TS2307: [strictDeps] transitive dependency not allowed. Please add the BUILD target to your rule's deps.

» bazel build //packages/websocket
INFO: Invocation ID: d1135dd1-f5b0-40a1-8347-9614dbd29f73
INFO: Analyzed target //packages/websocket:websocket (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
INFO: Writing explanation of rebuilds to 'bazel-explain.txt'
ERROR: /home/dzintars/code/github.com/dzintars/prime/src/packages/websocket/BUILD.bazel:5:11: Compiling TypeScript (devmode) //packages/websocket:websocket failed (Exit 1): tsc_wrapped.sh failed: error executing command
  (cd /home/dzintars/.cache/bazel/_bazel_dzintars/372a4c8711393e1e5266b713c6d61d3c/execroot/oswee && \
  exec env - \
    PATH=/home/dzintars/.cache/bazelisk/downloads/bazelbuild/bazel-3.7.0-linux-x86_64/bin:/home/dzintars/.yarn/bin:/home/dzintars/.config/yarn/global/node_modules/.bin:/home/dzintars/.yarn/bin:/home/dzintars/.config/yarn/global/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/dzintars/bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/go:/home/dzintars/go:/home/dzintars/go/bin:/home/dzintars/bin:/usr/local/go/bin:/usr/local/go:/home/dzintars/go:/home/dzintars/go/bin \
<EMAIL_ADDRESS>@@bazel-out/k8-fastbuild/bin/packages/websocket/websocket_es5_tsconfig.json)
Execution platform: @local_config_platform//:host
error TS5055: Cannot write file '/home/dzintars/.cache/bazel/_bazel_dzintars/372a4c8711393e1e5266b713c6d61d3c/bazel-workers/worker-1-TypeScriptCompile/oswee/bazel-out/k8-fastbuild/bin/packages/websocket/src/lib/constants.d.ts' because it would overwrite input file.
  Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
packages/websocket/src/lib/contracts.d.ts:2:32 - error TS2307: [strictDeps] transitive dependency on bazel-out/k8-fastbuild/bin/packages/websocket/src/lib/constants.d.ts not allowed. Please add the BUILD target to your rule's deps.

2 import { WebsocketTypes } from './constants'
                                 ~~~~~~~~~~~~~

Target //packages/websocket:websocket failed to build
INFO: Elapsed time: 0.410s, Critical Path: 0.23s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully
   dzintars@workstation    ~/code/github.com/dzintars/prime/src     develop     
» bazel clean --expunge
INFO: Invocation ID: 47b432a7-7680-44c7-b211-bb17a3cd1db8
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.

Glitch. Solved by wiping the cache.


Support for Java 11

After installation we received the following error during the Scanning Process:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name<EMAIL_ADDRESS>Initialization of bean failed; nested exception is java.lang.IllegalStateException: The plugin [crypto] does not support Java 11.0.20
[60](https://gitlab.lgt.com/psb/sb-frontend-dev/-/jobs/17551597#L60)

Hi @juergenwohlwend, thanks for reporting. Did you use jre11 version of the plugin? https://github.com/IBM/sonar-cryptography/releases/download/1.1.3/sonar-cryptography-plugin-1.1.3-jre11.jar

Okay, @hugoqnc will check and come back to you!

Hi @juergenwohlwend, I made some tests but couldn't reproduce your issue yet. You are scanning a Java project that was built with Java 11, right?
Could you make sure that you follow the sonar instructions regarding scanning a project with a different Java version than the Java used for the analysis?
I suppose you are using SonarScanner CLI to start the scanning process, could you tell me on which platform and with which version are you using it? In particular, are you using the scanner "Any (Requires a pre-installed JVM)" with Java 11?
Thanks!

Yes, the Java project is with Java 11.
The scanner itself also runs in the Java 11 container, the scanner version is <IP_ADDRESS>3
The whole thing is done directly in gradle.

We have investigated the problem and decided not to compile our plugin with Java 11. This decision was made for the following reasons:

Sonar has officially discontinued support for Java 11 as a scanner runtime environment since January 15, 2024 (see)
there is still a possibility to scan Java 11 projects with the SonarScanner CLI
the effort to make the code of the plugin java 11 compatible is immense


Reverted Some Changes. Not Sure Where I Went Wrong, So I'll Be Slowly…

… Making Changes And Testing More Often

Reverted Changes Made To Main Branch In Lieu Of Making Dev Branch (Should've Been Done From The Beginning). Main In Stable Condition Again


fix: docker-compose version contraints from panicing

This PR fixes a panic in the ValidateEnvironment function. Before, the API was panic-ing if the version wasn't right. Now, it throws an error. Also, it looked like the program was calling docker compose instead of docker-compose. I think the docker CLI only introduced docker compose in V2.  This PR fixes #162

This PR fixes a panic in the ValidateEnvironment function. Before, the API was panic-ing if the version wasn't right. Now, it throws an error. Also, it looked like the program was calling docker compose instead of docker-compose. I think the docker CLI only introduced docker compose in V2. This PR fixes #162

we require docker compose V2 for this project!

@edulop91 this makes more sense. I have fixed up this PR and left the code that prevents the panic.


Update to Tinctures and small bug fix in Action data

Update Tincture module to track Expiacion instead of Spirits Within.
Update Shield Lob to not break combo.

This probably needs to be merged after #1445 since they both touch the ACTIONS file, and this one does so for actual changes vs just trying to pass the lint test.


Update ItemDisplay to use em's instead of px for Inline Icon minimum.

Issue Description
Update the minimum size child selector for inline-icons in the item display to use an em/rem for min-height and min-width, to ensure if the font size of the item display is changed it will sync with the text in the item display.
Also will resolve #259
Issue Type

[ ] New Feature
[ ] Enhancement
[x] Bug
[ ] Other

Expected Behavior
We should be using em's in the case we set the themeable font-size value so when the 760px break point has the icon scale with the text font. We should use em/rems.
Current Behavior
Currently icons are set to a px value.

Three updates to make:

Lets set the minimum icon size to  min-height: 1em; min-width: 1em;

https://github.com/cerner/terra-clinical/blob/c13cdf1ec555c7aa26dce58f55a936db72b1f062/packages/terra-clinical-item-display/src/ItemDisplay.scss#L23-L26

change the icon  padding-right: 5px; to padding-right: 0.3571428571rem;

https://github.com/cerner/terra-clinical/blob/c13cdf1ec555c7aa26dce58f55a936db72b1f062/packages/terra-clinical-item-display/src/ItemDisplay.scss#L20

It also has been reported the responsive resizing is unexpected and causing issues (since everywhere else in Terra we have removed responsive text sizing for below the small breakpoint). I think this was a holdout from older Orion code - lets remove the media query entirely and set the .terra-clicinal-item-body to font-size:1rem only.

https://github.com/cerner/terra-clinical/blob/c13cdf1ec555c7aa26dce58f55a936db72b1f062/packages/terra-clinical-item-display/src/_mixins.scss#L9-L16


Command failed due to signal: Segmentation fault: 11

Am getting this error: "Command failed due to signal: Segmentation fault: 11" when trying to run test suite on my project.  Am using SwiftDate via CocoaPods.  Am using few other libraries but only SwiftDate is causing this crash.  For build & run, though it runs fine.

ah looks like the Unit Tests in the library need updating.  I made a pull request, will update it and submit.

Just merged your pull request, thank you.


circleci 2 + tox + pyenv

Find out how to setup tox and execute the tests against multiple python versions without duplicating entries in circleci config.

Some "hacky" way to fix this:

setup pyenv in a "job", requires to hardcode a lot (git checkout, envvars, etc)
custom docker image

None of these are desired.


chore(LLD): add deeplink support in dev mode

✅ Checklist

[x] npx changeset was attached.
[ ] Covered by automatic tests. Tested manually in dev
[x] Impact of the changes:

dev mode only

📝 Description
Add deep-link support in dev mode for LLD using: https://github.com/witcher112/electron-app-universal-protocol-client
❓ Context

JIRA or GitHub link:

🧐 Checklist for the PR Reviewers

The code aligns with the requirements described in the linked JIRA or GitHub issue.
The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
There are no undocumented trade-offs, technical debt, or maintainability issues.
The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
Any new dependencies have been justified and documented.
Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

If you need to clear the deeplinks association to electron on mac you can use https://github.com/Lord-Kamina/SwiftDefaultApps


cocoon build fails in recipe led runs, but succeeded in cocoon pre-submit runs

From the recipe led side, hit below error in app_flutter tests, which succeeded in cocoon repo pre-submit builds.
00:23 +159 -1: /b/s/w/ir/x/w/cocoon/app_flutter/test/build_dashboard_page_test.dart: TaskGridContainer with default Settings property sheet
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure object was thrown running a test:
  Expected: one widget whose rasterized image matches golden image
"goldens/build_dashboard.defaultPropertySheet.png"
  Actual: _WidgetTypeFinder:<exactly one widget with type "BuildDashboardPage" (ignoring offstage
widgets): BuildDashboardPage(dependencies: [_LocalizationsScope-[GlobalKey#63142],
_InheritedProviderScope<BuildState>, _InheritedTheme], state: BuildDashboardPageState#953e4)>
   Which: Golden "goldens/build_dashboard.defaultPropertySheet.png": Pixel test failed, 40.03% diff
detected.
          Failure feedback can be found at /b/s/w/ir/x/w/cocoon/app_flutter/test/failures

When the exception was thrown, this was the stack:
#0      fail (package:test_api/src/frontend/expect.dart:155:31)
#1      _expect.<anonymous closure> (package:test_api/src/frontend/expect.dart:130:9)
#13     MatchesGoldenFile.matchAsync.<anonymous closure> (package:flutter_test/src/_matchers_io.dart)
<asynchronous suspension>
#14     MatchesGoldenFile.matchAsync.<anonymous closure> (package:flutter_test/src/_matchers_io.dart)
#15     AutomatedTestWidgetsFlutterBinding.runAsync.<anonymous closure> (package:flutter_test/src/binding.dart:1003:22)
#18     AutomatedTestWidgetsFlutterBinding.runAsync (package:flutter_test/src/binding.dart:1001:26)
#19     MatchesGoldenFile.matchAsync (package:flutter_test/src/_matchers_io.dart:72:20)
#20     _expect (package:test_api/src/frontend/expect.dart:119:26)
#21     expectLater (package:test_api/src/frontend/expect.dart:75:5)
#22     expectLater (package:flutter_test/src/widget_tester.dart:468:10)
#23     expectGoldenMatches (file:///b/s/w/ir/x/w/cocoon/app_flutter/test/utils/golden.dart:20:10)
#24     main.<anonymous closure> (file:///b/s/w/ir/x/w/cocoon/app_flutter/test/build_dashboard_page_test.dart:303:11)
#35     FakeAsync.flushMicrotasks (package:fake_async/fake_async.dart:193:32)
#36     AutomatedTestWidgetsFlutterBinding.runTest.<anonymous closure> (package:flutter_test/src/binding.dart:1192:19)
(elided 35 frames from dart:async, dart:async-patch, and package:stack_trace)

The test description was:
  TaskGridContainer with default Settings property sheet

Per discussion with @CaseyHillers this may be due to led is relying on flutter beta, whereas cocoon repo pre-submit builds are based on dev.

@godofredoc marked as p1, since this is blocking the recipe cl merge.

Can you please add links to builder?

Here is the test: https://ci.chromium.org/p/flutter/builders/try/recipes-with-led/b8866991503071606064?

I don't think there is a way around it,  the led tests use the last passing builder for cocoon whit was commit d408d302e22179d598f467e11da5dd968dbdc9ec.  What I think is that cocoon is already broken the new version of flutter and needs to get fixed for those tests to pass.


Kafka: fails to load partitions record with non-zero start offsets

dlt version
1.1.0
Source name
dlt init kafka snowflake
Describe the problem
By default, kafka resource starts consuming from offset 0 and fetches up to 3000 records at a time when you do not set the start_from.
https://github.com/dlt-hub/verified-sources/blob/59749e6829180804f966a61665d156cf64272411/sources/kafka/__init__.py#L87-L89
I have a partition that only retains data for 7 days, and its starting offset is now 103,445. Due to the current implementation, kafka resource is unable to read any records from this partition, because it attempts to read from offset 0, fetches no records, and then exits.
Expected behavior
It should adjust to the real starting offset and reading data from there.
Steps to reproduce
Use Kafka resources to run any partition where the start offset is 3000 or higher.
If there is no similar partition, can manually simulate one by following the steps provided here.
How you are using the source?
I run this source in production.
Operating system
Linux, macOS
Runtime environment
Kubernetes
Python version
3.11
dlt destination
Snowflake
Additional information
PR is incoming.

After further investigation, I discovered that the problem was not due to a bug in kafka resource, but rather due to network-related issues.
I apologize for any confusion caused. I am closing this issue now.


text replace matthew -> harvey

I believe this is taken care of in #7

I wasn't sure (up to y'all) if you also wanted to do a complete matthew to harvey text replace in the whole repo, so it would also scrub the code to make the conversion. It doesn't matter, since they are variable names, but it would be less confusing to others. @wdwatkins could whip up something quick I bet.

Yeah shouldn't be hard


1.19.3 Update

Does this run on pre-1.19.3 versions of MC when compiled? I try to make sure that this mod runs on multiple MC versions from a single jar.

I see. That's very unfortunate. Hmm. Do I even need to import that math library? Like, I know a matrix is being called for in the drawTextureQuad function's parameters, but do I need an import for that?

Blech. That's unfortunate. Thanks for the PR, I'll merge it and push an update to Modrinth and CF.


Move prettier to dev dependencies

Hello,
Prettier was added to the project two weeks ago to enforce code formatting, but it has been added to the dependencies section of package.json. Prettier should be a dev dependency.
This may be breaking for users of this library who are using version 2.x of Prettier, as installing this library causes version 3.0 of prettier to be installed and used.
Can prettier please be moved to the dev dependencies section?

Oops that is an issue

Thanks for resolving this quickly

releasedd in 1.10

:tada: This issue has been resolved in version 1.10.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

Looks like prettier is still a dependency. I've raised #532 to remove it


Missing package sql_metadata

Hi, I tried the package.
I Install and then when I tried run I got this issue.
I think we should add sql_metadata to package requirements.
File ~/.cache/pypoetry/virtualenvs/catu-api-j4QRtUOk-py3.9/lib/python3.9/site-packages/django_queryset_feeler/__init__.py:5, in <module>
      3 import warnings
      4 from collections import Counter, OrderedDict
----> 5 from sql_metadata import Parser as SQLParser
      6 from pygments import highlight
      7 from pygments.lexers import SqlLexer

ModuleNotFoundError: No module named 'sql_metadata'

Thank you for reporting this! Everything should be fixed in 0.0.4


Unable to find method 'org.gradle.api.file.ProjectLayout.files([Ljava/lang/Object;)Lorg/gradle/api/file/FileCollection;'.

Possible causes for this unexpected error include:Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
same issue here...
repositories {
// ...
maven { url "https://jitpack.io" }
maven { url 'https://github.com/Archinamon/GradleAspectJ-Android/raw/master' }
}
implementation "com.archinamon:android-gradle-aspectj:3.3.0"
apply plugin: 'com.archinamon.aspectj'
classpath 'com.archinamon:android-gradle-aspectj:3.3.0'
Originally posted by @SynergySaugat in https://github.com/Archinamon/android-gradle-aspectj/issues/82#issuecomment-440942208

You have to use Android Gradle plugin 3.0.1 at least. 3.2.* is better.
And you don't need to use implementation notation within dependencies block.


Doc - How easy is it to upgrade from the old version of the package with the new version?

Is there (or Will there) be any tutorial for upgrading ?
Thank

And is it possible to make both work at the same time ?

Hey! Thanks for asking this question, it's probably useful for me to put an answer here so other people can see too.
I haven't spent any time on working out an upgrade tutorial yet. My thinking was I'd probably want this new package to get to 1.0.0-rc.1 before doing that. That's because there's been a lot of things for me to do, so I don't want to write a tutorial that I have to keep adjusting as I work my way through the remaining things in the beta series.
I'd originally envisaged a gradual upgrade process, but unfortunately as I've been pushed to put more and more information into the schemas this is now looking unlikely - as basically you need the schema for everything else to work. I've upgraded one of my production APIs. That involved going through and converting all the old classes to the new classes rather than it being a gradual swap over.
My main tip for upgrading is this: the test suite has barely changed at all. I do TDD so the thing that made that upgrade easier was I had a solid set of tests that I could run after the upgrade to make sure everything passed. If you're planning to upgrade at some point, then making sure you've got a great set of tests in the meantime really helps.

And is it possible to make both work at the same time ?

No. The new package is using v4 of the neomerx/jsonapi encoder package, whereas the old one is on v1. There were technical problems in the old package with upgrading that dependency to v4 that I never managed to convince neomerx that he needed to address. In the past I've investigated upgrading the dependency in the old package, but it was too complex an upgrade - and I don't think it's useful to force that upon users of the old package when the target is actually to get them to eventually switch to laravel-json-api/laravel.
Once I get laravel-json-api/laravel to 1.0.0-rc.1 I'll probably revisit the old package and start investigating whether I can make changes to the old package that would present easier stepping stones to a full upgrade. I haven't started that investigation yet, but will update this issue when I do.
One thing I want to make really clear here is that the old package (cloudcreativity/laravel-json-api) is still supported for bug fixes, and will receive updates for new Laravel versions. I'm really conscious that people are using that package in production applications (including me) so I'm not going to abandon it until there is an upgrade path and sufficient time has passed for people to upgrade. I.e. that won't be any time soon!
Feel fre to drop more questions or thoughs on this issue!

Hello, are there any updates on how to upgrade from the old cloudcreativity package to the new one?
Best regards
Patrick

Hello,
I really would like to upgrade my growing project to the new package. Do you have a guide or tutorial for me on how to do this efficiently?
Thank you very much. :)

Up :)

Hi. This is on my radar. I need to focus on getting Laravel 9 support out in the next week, then I can think about putting together some sort of upgrade guide.
Just to reiterate a point I've made above...
The test suite has barely changes between the two packages, so having a great set of tests really helps with the upgrade.
Just putting that out there now because  if you haven't got a great set of tests, then putting some time into that pre-upgrade will be really useful.

Up :) Thanks in advance!

Yep, haven't forgotten. FYI I'm currently working on this issue:
https://github.com/cloudcreativity/laravel-json-api/issues/632
Then I can turn my attention to this issue, as this issue follows on from that one. I am slightly limited on Open Source time at the moment but am trying to keep things progressing.

@lindyhopchris Chris, thanks for the update and awesome news regarding the #632 issue progress. Cheers.

For info, if you're on the old package cloudcreativity/laravel-json-api, I've just tagged an alpha release v5.0.0-alpha.1. That release upgrades the Neomerx package so both the old package and this new one (laravel-json-api/laravel) are on the same Neomerx package version.
As explained in the upgrade guide, this unlocks being able to install both the old and the new packages in the same application. You can't mix classes from both packages in a single API, but it allows you to have one API using the old package, and one using the new package.
The upgrade guide for the old package to get it onto the alpha release is here:
https://github.com/cloudcreativity/laravel-json-api/blob/v5.0.0-alpha.1/docs/upgrade.md
I don't have any applications using the old package any more, so I really need people to try out the alpha release and let me know if there are any problems with it, or anything that should be in the upgrade guide that isn't. If you find any problems, report them as issues in the cloudcreativity/laravel-json-api repo, making it clear you're using the 5.0 alpha release.

I recently did an upgrade of an application from v2 -> v3 -> v4 -> v5 and everything went relatively smoothly. This application has pretty decent test coverage that uses a lot of the JSONAPI helpers. I did not have to do anything outside of the upgrade guides. Once the listed changes were completed all tests continue to pass.
The only hiccup I hit was doing the v3 to v4 upgrade. We were using $this->jsonApi()->data(...) which was removed in favor of using withData. The upgrade guide does not call this out clearly (it's a footnote under an example codeblock instead of being listed alongside other removed methods).
The only thing that wasn't addressed was usage of Neomerx\JsonApi\Exceptions\JsonApiException for the exception handler.
I went through the install docs for each version and they all reference this Neomerx class, so I presume it is correct to keep using it. I'd recommend adding a note about it in the v5 documentation to remove confusion.
Before
cloudcreativity/json-api-testing            v3.2.0
cloudcreativity/laravel-json-api            v2.2.0
neomerx/json-api                            v1.0.9

After
cloudcreativity/json-api-testing            v4.0.0
cloudcreativity/laravel-json-api            v5.0.0-alpha.1
laravel-json-api/neomerx-json-api           v5.0.1
laravel-json-api/testing                    v1.1.1


Lisa ipython startup issue with Vagrant VM

Hello,
I'm experiencing issues with the command lisa-ipython start after the setup of the Vagrant VM.
In particular, after the command, the process exits in this way
[1]+  Exit 127                nohup $cmd notebook --ip=$IPADDR --port=$PORT --NotebookApp.token=$TOKEN > $LOGFILE 2>&1  (wd: ~/lisa/ipynb)
I read the ipynb/server.log and I found this error
nohup: failed to run command 'jupyter': No such file or directory
In fact in the /lisa/src/shell/lisa_shell script if iphyton is not found the default command uses jupyter.
But both which ipython and which jupyter return empty sets.
So it seems that during the setup of the environment of the VM there is some problems with the installation of ipython or jupiter in the install_base_ubuntu.sh
I manually installed ipython and ipython-notebook packages and at the end the lisa-ipython start succeeded.
But... I cannot see any file inside the ipynb folder in the browser.
Thanks in advance for your help.

Hi @Fixfire, sorry for the delay, I wasn't getting notifications for issues (that should be fixed now).

I manually installed ipython and ipython-notebook packages

Do you mean apt or pip packages? I think both exist and you can always get some misbehaviour by mix and matching versions.
Sorry for not being greatly helpful, cleaning up the vagrant configuration is on my todo-list, I'll try to get that done fairly soon.

I've installed the apt packages, because during the  install_base_ubuntu.sh those packages are removed and the ones installed via pip are not found when I launch lisa-ipython start script

I've been playing with the Vagrant setup for our next branch. Could you give this branch a try? https://github.com/valschneider/lisa/tree/next-vagrant
It seems to work okay on my setup, but I can't seem to reach the jupyter server from my host - might be due to my local network setup.

Ok, thanks.
I tried to setup the new VM with Vagrant from your branch next-vagrant, but during the install_base_ubuntu.sh script it faild with this error:
default: ./install_base_ubuntu.sh: line 22: expect: command not found

Mine is the same ubuntu/bionic64 (virtualbox, 20181105.1.0)
Anyway, then all seems working, and now I can see the notebook from my host at localhost.
Now I'll try some tutorial examples with the HiKey960

See https://github.com/ARM-software/lisa/pull/648


Added error handling on Slider Component. Added the error handling on…

… the the send confirmation and exchange scene catch. Put spring animation on the slider.
Please check first the animation of the slider, and comment if wanted to retain or revert back to normal.

Also made the sliding to be on the farthest left before it activates. Meaning you need to slide it really on the left before it activates. Check if it needs to have some reserved area to activate it.

Well there are no error handling states on both the send confirmation and exchange scene. And I don't want to touch the reducer of the send confirmation cause I do not see any extensibility.
Unless you got a state on both the send confirmation and exchange scene that will emit that the async catches errors. By far this is my most logical and extensible solution I have.

Closing this as it was implemented by Eliran in another PR


Variable explorer is showing classes I didn't define

Run this code here:
#%%
import nltk

#%%
text="Mary had a little lab. Her fleece was white as snow"
from nltk.tokenize import word_tokenize, sent_tokenize
sents=sent_tokenize(text)
print(sents)

#%%
words=[word_tokenize(sent) for sent in sents]
print(words)

#%%
from nltk.corpus import stopwords
from string import punctuation
customStopWords=set(stopwords.words('english')+list(punctuation))

Variable list shows this:

This matches Jupyter's variable magics and has not been upvoted, so closing.


How to send restart signal if my check is true?

hi.. I have check as below
class MyCheck < Eye::Checker::Custom

  def get_value
    tmp = eval(`cat /home/system/dnsvault/ws_ping.txt`)
    last_ping = tmp["message"]
    puts ((Time.now - Time.at(last_ping)) > 60)
    (Time.now - Time.at(last_ping)) > 60
  end

  def good?(value)
    value !~ /haha/
  end

end

and in my config like this
check :my_check, every: 10.seconds

how can I send restart signal if my check is true?

all checks by default send :restart, when good? method returns false, you can change it by:
check :my_check, every: 10.seconds, :fires => :stop

you good? method seems bad, it should check value from get_value function.

thanks kostya <3 .
tons of love from Malaysia.


Upgrade requirements

Codecov Report

Merging #6 (b77c083) into main (9ee666b) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main        #6   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines           27        25    -2
  Branches         8         8
=========================================
- Hits            27        25    -2

Impacted Files
Coverage Δ

src/tox_py.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ee666b...b77c083. Read the comment docs.


Custom 3D Model appears invisible in-game.

Hey! I just watched your 3D model tutorial (really cool by the way :) and I tried making one of my own. Nothing fancy, just a simple test. And when I first started the game I was confused because I didn't see my item in creative menu... but then I hovered over the first empty spot in the item group, and noticed that the item was there, but had no texture. What could cause this? (I'm guessing something wrong with the json file? The item looks fine in Blockbench.)

The item in the second hotbar slot is my attempted 3D item model.


Stormblessed: Blacklist Bodytone

Stormblessed requests the blacklist of the keyword Bodytone. See the MS search here and the Stack Exchange search here.

Bodytone has been seen in 52 true positives, 0 false positives, and 0 NAAs.

There is a related watch: keto\W*bodytone(?:\W*\d+)?, which was added there in order to see it run against real-world data first. Making the "keto" optional only picks up a single detection that wasn't previously matched. However, there are no hits in SE for bodytone and it's not seen on Google Ngrams.So, it's reasonable to make "keto" optional here. I'll also expand the watch and move it to the blacklist.

There's also a blacklisted-keyword here for keto\Wbody(?:\W(?:tone|avis|fr|web|\d+))*
And, we are not currently watching, or have blacklisted keto-bodytone\.com.
Looks like I need to clean things up a bit.


Fix #4527 - Support update to specified fields with Attach InMemory

Throw DbUpdateConcurrencyException on invalid updates to InMemory store
@divega @ajcvickers

:shipit: after comments addressed.


Whether to keep the CRS uniform as epsg by applying  gdf.crs.to_epsg()

Do we need to build a class or utility for all nodes?
Apply short EPSG code to the result
gdf.crs = gdf.crs.to_epsg()

Just check KNIME 5.0, it is no longer an issue with the new CRS rending format

@koettert to check why the visualization is different in 5.0 and 4.7


Hubot & hangoutsbot integration help please

Hi & thank you for taking the time to read this.... I have hangouts bot running in a few chats.... i started trying to set up hubot yesterday, im on an ubuntu system at the moment, both are local to this system. If i run hangoutsbot in one terminal and hubot (bin/hubot --adapter web) in another I can see the chats in both so i know hubot is seeing the chats and looks like it tries to respond but gets an error.... my hubot's name is "r386" below is a section of the log. Any help you can offer would really be great!!!
[Fri Apr 15 2016 16:40:41 GMT-0400 (EDT)] ERROR Error: listen EADDRINUSE
at errnoException (net.js:901:11)
at Server._listen2 (net.js:1039:14)
at listen (net.js:1061:10)
at net.js:1143:9
at dns.js:72:18
at process._tickCallback (node.js:415:13)
[Fri Apr 15 2016 16:40:43 GMT-0400 (EDT)] ERROR hubot-heroku-al[Fri Apr 15 2016 16:40:58 GMT-0400 (EDT)] WARNING @userForName() is going to be deprecated in 3.0.0 use @robot.brain.userForName()
[Fri Apr 15 2016 16:40:58 GMT-0400 (EDT)] WARNING @userForId() is going to be deprecated in 3.0.0 use @robot.brain.userForId()
[UgyYuUmLEfK8IYIJrwF4AaABAQ]<PHONE_NUMBER>37788698899 => r386 ping
[UgyYuUmLEfK8IYIJrwF4AaABAQ] => PONG
[Fri Apr 15 2016 16:40:58 GMT-0400 (EDT)] ERROR Error: Invalid URI "undefinedUgyYuUmLEfK8IYIJrwF4AaABAQ"
at Request.init (/home/r386/myhubot/node_modules/hubot-web/node_modules/request/main.js:170:24)
at new Request (/home/r386/myhubot/node_modules/hubot-web/node_modules/request/main.js:105:8)
at request (/home/r386/myhubot/node_modules/hubot-web/node_modules/request/main.js:995:11)
at WebAdapter.send (/home/r386/myhubot/node_modules/hubot-web/index.coffee:46:7, :60:9)
at runAdapterSend (/home/r386/myhubot/node_modules/hubot/src/response.coffee:82:34, :87:50)
at allDone (/home/r386/myhubot/node_modules/hubot/src/middleware.coffee:44:37, :34:16)
at /home/r386/myhubot/node_modules/hubot/node_modules/async/lib/async.js:274:13
at Object.async.eachSeries (/home/r386/myhubot/node_modules/hubot/node_modules/async/lib/async.js:142:20)
at Object.async.reduce (/home/r386/myhubot/node_modules/hubot/node_modules/async/lib/async.js:268:15)
at /home/r386/myhubot/node_modules/hubot/src/middleware.coffee:49:7, :37:22
at process._tickCallback (node.js:415:13)
[Fri Apr 15 2016 16:43:37 GMT-0400 (EDT)] WARNING @userForName() is going to be deprecated in 3.0.0 use @robot.brain.userForName()
[UgyYuUmLEfK8IYIJrwF4AaABAQ]<PHONE_NUMBER>37788698899 => /r386 whereami
[Fri Apr 15 2016 16:45:17 GMT-0400 (EDT)] WARNING @userForName() is going to be deprecated in 3.0.0 use @robot.brain.userForName()
[Fri Apr 15 2016 16:45:17 GMT-0400 (EDT)] WARNING @userForId() is going to be deprecated in 3.0.0 use @robot.brain.userForId()

Well, it's been a year. Sorry for that very late reply and you may very well have found a solution on your own in the while. Or do you still need help?

[Fri Apr 15 2016 16:40:41 GMT-0400 (EDT)] ERROR Error: listen EADDRINUSE
I think this is part of the problem. Hubot listens on port 8080, and it seems like you had something already running. You have a few options to fix that:

run hubot with --disable-httpd if you don't want/need to serve HTTP from hubot
set PORT environment to something else, like 8181: PORT=8081 bin/hubot

Looking at the error a little more, it looks like this is coming from the adapter, hubot-web: https://www.npmjs.com/package/hubot-web
Might be be better to file an issue over on the repo for that https://github.com/sklise/hubot-web


How to add  Image of value on the bar chart top?

Thank for your great library!
I want add image like this, but I found out that topTitles seems to doesn't work on bar chart .
Would you please give me some tips ?
https://i.stack.imgur.com/gaXTU.png

You're welcome.
Unfortunately, there is no feature to do that. You can use font icons to draw icons in the tooltip.
BTW there is an open issue that we are talking about having widgets in our tooltip.
Please follow that issue.
#72


Team 2 Review (MG): Documentation Module

@samm82
Name: Team 2 Review
About: Documentation Module
Summary
Documentation Module should not be a module if that cannot be categorized as an ADT/Library/Record. As in the rubric, a module is described as a work assignment for a programmer to work on. I suggest removing this module and adding this 'mapping' somewhere else as it cannot fit in the DGA graph as well.

Deadline: March 1st
Estimated Work Hours: 0.25hr

It was suggested by the TA to have a Documentation module for traceability. So this is not an issue.


Fix OOM that could happen on certain HEAD requests

HEAD for "GetFileProperties" style requests could hit an OutOfMemory exception
if the file being examined had a large length.
Added a changelog.md file for better release notes management.

Not sure why I am showing up as cla-required.

This is related to this bug fix in AutoRest, which is impacting one of our customers.

@matthchr I believe the two new tests that are added are testing the route where the bug was fixed, because it's hard to know what the new tests are doing and if they are indeed testing the bug fix.
Please let us know if they are.

@shahabhijeet Yes -- the two tests cover exactly the case that was triggering the OOM exception. I ran them before I made the change and they failed, then I made the change (regenerated with the new AutoRest code which has the fix) and they passed.


How to handle state management for each model item in a collection?

I'm unfamiliar with flutter/dart/widgets so bear with me if this is a silly question.
I have a Book model, which contains a collection of Page models.
The Book controller has all the logic for adding/deleting pages and so on.
I want the Page controller to have the logic for adding/removing text in the page. I'm not sure how to achieve this with Momentum. I can write the Page controller, but it has a 1 to 1 relationship with a single Page object right?
Basically I want the user to be able to select a page, and then edit that page. In the past when I used a MVVM architecture in TornadoFX I could simply change the ViewModels item field to whatever Page Model the user clicked on and then when the ViewModel changed, it updated the model behind the scenes.
Can I achieve something similar with Momentum, or will I be fighting against its convention?

Listify is a perfect example of this.
It has a nested list model structure. The same with what you mention about Book having a list of Page models. I highly recommend you take a look at its source code.

but it has a 1 to 1 relationship with a single Page object right?

Yes, but because momentum allows you to manipulate other controllers using the dependOn<T>() method, you can easily update the Page and Book model.
Here's a real snippet from Listify:
InputController
  void submit() {
    if (!validInput()) {
      triggerAction(
        actionMessage: "List name and items are both required.",
        action: InputAction.ErrorOccured,
      );
      return;
    }
    if (exists()) {
      triggerAction(
        actionMessage: "List data with same list items or same list name already exist.",
        action: InputAction.ErrorOccured,
      );
      return;
    }
    var _listController = dependOn<ListController>();
    if (model.editingList) {
      _listController.updateList(model.editListName, model.listName, model.items);
      triggerAction(action: InputAction.ListDataEdited);
    } else {
      _listController.addList(ListData(listName: model.listName, items: model.items));
      triggerAction(action: InputAction.ListDataAdded);
    }
    reset(clearHistory: true);
  }

ListController
  void updateList(String listName, String newListName, List<ListItem> newItems) {
    var items = List<ListData>.from(model.items);
    var index = items.indexWhere((x) => x.listName == listName);
    if (index != -1) {
      items.removeAt(index);
      items.insert(index, ListData(listName: newListName, items: newItems));
      model.update(items: items);
      dependOn<CurrentListController>().viewData(model.items[index]);
    }
  }

InputController and ListController are separate momentum controller.
The input controller calls a method from list controller: _listController.updateList(...).
Then the list controller's updateList() method finds the list that is being edited and update it with the new values provided in the parameters.

Meant to close this a while ago but forgot, thanks for the excellent explanation! Helped me figure it out :)


feat: Getting Started Examples Implemented in Jupyter Notebooks

Overview
The OT2 has a usable and high value Jupyter Notebook integration out of the box, but when a new OT2 user opens up this feature, they don't have a good place to start translating an analytically oriented python skillset (often the use case for those familiar with Jupyter Notebooks) to an automation oriented one.
Ideally, as a scientist who codes, I would want to have an easy set of example notebooks that would demonstrate how to get started with the OT-2. With clear examples and leveraging Jupyter Notebook's capacity for readable inline documentation, reproducibility, and modularity, the path to useful protocols will be faster.
Implementation details

Ideally translating existing and tested tutorial protocols vetted by support and user community
Must highlight areas in documentation where Jupyter implementations differ/break relative to a "normal" python protocol format
Should provide a skill ladder towards primary scientific applications, eg. PCR prep
Should provide copyable snippets and opinionated implementations of common practices to tacitly demonstrate good "coding culture" to new OT2 users.

Design
As a starting point, a few different examples could be used:

Hello world. Pick up a tip, then return it to its spot (examples for 1 channel and multichannel)
Dinosaur example implemented in Jupyter
Loading a CSV file to create a dynamic protocol
Adding a play/pause prompt for human interaction (eg. empty trash, replace tips, etc)
Access the HTTP api and/or notification server

Acceptance criteria
Design

Clear and connected escalation in complexity across examples; successful testing of prototypes with a new OT2 user with prior Jupyter experience (but low to none non jupyter python experience)

Development (app eng + cpx)
TODO

TODO: Split into two tickets @readywater

I think this has been improved since this issue was written, but @ecormany FYI.

Yeah, the current state of docs isn't exactly all this. But we do have RTC-98 as a catch-all for "more better Jupyter", so closing this is fine.


Invariant Violation: [14,"<<-Infinity>>",1573709572775,false] is not usable as a native method argument

I'm using snoowrap in react native, and got the module to import without errors by importing the required modules according to @danhab99 here  https://github.com/not-an-aardvark/snoowrap/issues/48#issuecomment-417948299
I ended up with this package.json
{
  "name": "myapp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "events": "^3.0.0",
    "fs": "0.0.1-security",
    "path": "^0.12.7",
    "react": "16.9.0",
    "react-native": "0.61.2",
    "react-native-gesture-handler": "^1.5.0",
    "react-navigation": "^4.0.10",
    "react-navigation-stack": "^1.10.3",
    "rxjs": "^6.5.3",
    "snoowrap": "^1.20.0",
    "stream": "0.0.2",
    "url": "^0.11.0",
    "util": "^0.12.1"
  },
  "devDependencies": {
    "@babel/core": "7.6.4",
    "@babel/runtime": "7.6.3",
    "@react-native-community/eslint-config": "0.0.3",
    "babel-jest": "24.9.0",
    "eslint": "^5.16.0",
    "jest": "24.9.0",
    "metro-react-native-babel-preset": "0.51.1",
    "react-test-renderer": "16.9.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

My snoowrap object is instanced successfully with these params
import snoowrap from 'snoowrap';
// later in componentDidMount
const r = new snoowrap({
            userAgent: 'RedditAgent',
            clientId: 'my-id',
            clientSecret: 'my-secret',
            refreshToken: 'my-token',
        });
r.config({debug: true, proxies: false});
console.log('getting hot', r);
r.getHot('AskReddit', {limit: 100}).then(res => console.log('res', res)).catch(err => console.error(err));

I get the following output.
2019-11-14 00:40:48.291 [info][tid:com.facebook.react.JavaScript] 'getting hot', { userAgent: 'Redditagent',
  clientId: 'id',
  clientSecret: 'secret',
  refreshToken: 'token',
  accessToken: null,
  username: null,
  password: null,
  ratelimitRemaining: null,
  ratelimitExpiration: null,
  tokenExpiration: null,
  scope: null,
  _config:
   { endpointDomain: 'reddit.com',
     requestDelay: 0,
     requestTimeout: 30000,
     continueAfterRatelimitError: false,
     retryErrorCodes: [ 502, 503, 504, 522 ],
     maxRetryAttempts: 3,
     warnings: true,
     debug: true,
     proxies: false },
  _nextRequestTimestamp: -Infinity }
2019-11-14 00:40:48.295 [error][tid:com.facebook.react.JavaScript] Invariant Violation: [24,"<<-Infinity>>",1573710048293,false] is not usable as a native method argument
2019-11-14 00:40:48.302 [warn][tid:com.facebook.react.JavaScript] '%cUnhandled rejection Error: Exception in HostFunction: Malformed calls from JS: field sizes are different.\n\n[[33,37],[0,0],[["Invariant Violation: [24,\\"<<-Infinity>>\\",1573710048293,false] is not usable as a native method argument",[{"column":20,"lineNumber":2554,"arguments":[],"methodName":"enqueueNativeCall","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":42,"lineNumber":2164,"arguments":[],"methodName":"fn","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":38,"lineNumber":30898,"arguments":[],"methodName":"createTimer","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":18,"lineNumber":30706,"arguments":[],"methodName":"setTimeout","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":17,"lineNumber":30620,"arguments":[],"methodName":"_callTimer","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":19,"lineNumber":30656,"arguments":[],"methodName":"_callImmediatesPass","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":33,"lineNumber":30875,"arguments":[],"methodName":"callImmediates","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"callImmediates","file":"[native code]"},{"column":35,"lineNumber":2624,"arguments":[],"methodName":"__callImmediates","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":15,"lineNumber":2607,"arguments":[],"methodName":"__guard","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":21,"lineNumber":2400,"arguments":[],"methodName":"flushedQueue","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"flushedQueue","file":"[native code]"},{"column":12,"lineNumber":125207,"arguments":[],"methodName":"oauthRequest","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":36,"lineNumber":127674,"arguments":[],"methodName":"_fetchMoreRegular","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":113,"lineNumber":127659,"arguments":[],"methodName":"fetchMore","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":17,"lineNumber":59,"arguments":[],"methodName":"componentDidMount","file":"http://localhost:8081/src/home/HomeList.bundle?platform=ios&dev=true&minify=false&modulesOnly=true&runModule=false&shallow=true"},{"column":45,"lineNumber":24177,"arguments":[],"methodName":"commitLifeCycles","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":29,"lineNumber":26521,"arguments":[],"methodName":"commitLayoutEffects","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":21,"lineNumber":12661,"arguments":[],"methodName":"invokeGuardedCallbackImpl","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":42,"lineNumber":12757,"arguments":[],"methodName":"invokeGuardedCallback","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":36,"lineNumber":26328,"arguments":[],"methodName":"commitRootImpl","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"commitRootImpl","file":"[native code]"},{"column":30,"lineNumber":42641,"arguments":[],"methodName":"unstable_runWithPriority","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":24,"lineNumber":26190,"arguments":[],"methodName":"commitRoot","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"commitRoot","file":"[native code]"},{"column":34,"lineNumber":25523,"arguments":[],"methodName":"runRootCallback","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"runRootCallback","file":"[native code]"},{"column":30,"lineNumber":42641,"arguments":[],"methodName":"unstable_runWithPriority","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":28,"lineNumber":16248,"arguments":[],"methodName":"flushSyncCallbackQueueImpl","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":35,"lineNumber":16237,"arguments":[],"methodName":"flushSyncCallbackQueue","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":33,"lineNumber":25641,"arguments":[],"methodName":"flushSync","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":20,"lineNumber":16788,"arguments":[],"methodName":"scheduleRefresh","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"forEach","file":"[native code]"},{"column":31,"lineNumber":41052,"arguments":[],"methodName":"performReactRefresh","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":48,"lineNumber":40842,"arguments":[],"methodName":"performReactRefresh","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":17,"lineNumber":30620,"arguments":[],"methodName":"_callTimer","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":19,"lineNumber":30827,"arguments":[],"methodName":"callTimers","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":49,"lineNumber":2653,"arguments":[],"methodName":"__callFunction","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":15,"lineNumber":2607,"arguments":[],"methodName":"__guard","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":21,"lineNumber":2365,"arguments":[],"methodName":"callFunctionReturnFlushedQueue","file":"http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false"},{"column":null,"lineNumber":null,"arguments":[],"methodName":"callFunctionReturnFlushedQueue","file":"[native code]"}],2]],418]\n    enqueueNativeCall@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2566:43\n    fn@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2164:42\n    reportSoftException@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:28984:39\n    reportException@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:29003:46\n    reportException@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:28780:46\n    reactConsoleErrorHandler@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:28838:22\n    error@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:67347:29\n    _callTimer@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:30620:17\n    _callImmediatesPass@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:30656:19\n    callImmediates@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:30875:33\n    callImmediates@[native code]\n    __callImmediates@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2624:35\n    __guard@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2607:15\n    flushedQueue@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2400:21\n    flushedQueue@[native code]\nFrom previous event:\n    componentDidMount@http://localhost:8081/src/home/HomeList.bundle?platform=ios&dev=true&minify=false&modulesOnly=true&runModule=false&shallow=true:63:17\n    commitLifeCycles@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:24177:45\n    commitLayoutEffects@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:26521:29\n    invokeGuardedCallbackImpl@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:12661:21\n    invokeGuardedCallback@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:12757:42\n    commitRootImpl@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:26328:36\n    commitRootImpl@[native code]\n    unstable_runWithPriority@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:42641:30\n    commitRoot@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:26190:24\n    commitRoot@[native code]\n    runRootCallback@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:25523:34\n    runRootCallback@[native code]\n    unstable_runWithPriority@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:42641:30\n    flushSyncCallbackQueueImpl@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:16248:28\n    flushSyncCallbackQueue@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:16237:35\n    flushSync@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:25641:33\n    scheduleRefresh@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:16788:20\n    forEach@[native code]\n    performReactRefresh@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:41052:31\n    performReactRefresh@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:40842:48\n    _callTimer@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:30620:17\n    callTimers@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:30827:19\n    __callFunction@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2653:49\n    __guard@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2607:15\n    callFunctionReturnFlushedQueue@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:2365:21\n    callFunctionReturnFlushedQueue@[native code]', 'color: red'

iPhone XR simulator running iOS 12.2

I think this might be related to the snoowrap printed property _nextRequestTimestamp: -Infinity, but I've been on this a few days and I'm not sure what else to try. Thanks!

I'm not sure what the issue is, seems like something React Native specific which isn't something I've touched before

It looks like potentially an issue related to the types of values attempting to be passed over the JS bridge to obj-c like this issue https://github.com/wix/react-native-navigation/issues/5429
I can do some digging into where/why an error would be thrown like this on iOS in react native, but does anyone know if its possible to change that _nextRequestTimestamp: -Infinity with config or anything? The answer hasn't yet jumped out to me if it's possible
I think I may open this issue up on the react native repo as well since someone there would probably have a better idea what's going wrong

In theory you should be able to do:
const r = new snoowrap({
            userAgent: 'RedditAgent',
            clientId: 'my-id',
            clientSecret: 'my-secret',
            refreshToken: 'my-token',
        });
r._nextRequestTimestamp = -1;
r.config({debug: true, proxies: false});

True. I just tried that and it still doesn't work but now it makes a much smaller error:
{ [ReferenceError: Can't find variable: btoa]
  line: 125606,
  column: 122,
  sourceURL: 'http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false' }

That is a normal JavaScript function, which you can google for help as it's not so specific to snoowrap. Try this https://stackoverflow.com/a/51525605

I was able to resolve the error by
npm i -S base-64

and then adding these lines at the top of my project index.js
import {decode, encode} from 'base-64'

if (!global.btoa) {
    global.btoa = encode;
}

if (!global.atob) {
    global.atob = decode;
}

And I finally have some json data to work with! Thanks so much!!


Update metadata to 8.4.1

Updates metadata to libphonenumber version 8.4.1
This resolves https://github.com/aidanbebbington/libphonenumber-csharp/issues/26 support for toll free area code 833
Metadata versions 8.4.2 and above will require changes to the codebase to support the changes to the metadata format, https://groups.google.com/forum/#!topic/libphonenumber-discuss/75TOpTFVi08

@aidanbebbington I can send you a nupkg for this if you want. I'll be looking into what it will take to get the port working with the latest metadata format since that will eventually become a major blocking issue.


Fix/entity protected level

Entity Id protected level Changed
Checklist before requesting a review

[x] I have performed a self-review of my code.
[x] Implemented tests for new features.
[x] I tested the features already implemented.
[x] Added usage examples in the readme.

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


[WIP] Feat/filters on search

#152

For icons I recommend you use https://react-icons.github.io/react-icons instead of PNGs
May I ask why use REST endpoints for this ?

Oh thanks for the link ! It seems good
Yes it was for tests, I forgot that I worked on it on this branch. It will be removed on the next push

Refered to the Figma, I did this box to filter content. We could imagine to add a field to filter by agency as well if it's good for you.
If you have any suggestions/comments about the ui/ux please tell me

by agency it's a good idea !


Implement function fx_conversion()

write function code.

I think you may make use of the parameter interval = '1m' when you call yf.download(). I tested this a bit. It seems that with interval = '1m', you can get probably the latest price on yahoo.
e.g. yf.download('CADUSD=X', 'interval='1m')  <- i can see it updating every minute as of now.

done


WIP - Add test for extract-page-headings plugin

Test the plugin

You can preview this change here:
Built with commit 6ebd7750313d0c7164a50a88bd11ddad89a662f7
https://deploy-preview-548--govuk-design-system-preview.netlify.com