Cleaned up old commented-out code in OHLC.js

I took out the old commented-out code that I wrote. I figured I would explain what it does here so that you do not feel guilty removing it.
A picture is worth 1,000 words, so take a look:

Currently, the selection must be covering the centre of the mark in order for it to be highlighted. You can see that in this picture, the mark to the left of the cursor is not highlighted.
The old code would cause the mark to the left of the cursor to be highlighted because the selection is hitting its tail. Like this:

Side note: I moved some variables around so they were closer to the context they were being used in.

@ClaytonPassmore awesome! Getting back to you shortly.

Thanks it is all fine.

@SylvainCorlay happy to help!


Controller validation

Description
Changes proposed in this pull request:

add validation with minimum resources
add ability to create function with limits only
add more precise tests

Related issue(s)
https://github.com/kyma-project/serverless/issues/249

/test all


a few cacographies of word 'configuration'

Fix some cacography of word 'configuration' which is wrote of 'configuraiton'.

Coverage decreased (-26.8%) to 50.665% when pulling 5f8e576298ae84e79011abb9bfc7780aa0c0d3da on qyyy:master into 2e11cd004af76db786d2cb4e3ed7b72665389fbe on Microsoft:master.

Coverage decreased (-26.8%) to 50.665% when pulling 5f8e576298ae84e79011abb9bfc7780aa0c0d3da on qyyy:master into 2e11cd004af76db786d2cb4e3ed7b72665389fbe on Microsoft:master.


No quantity line did not identify ingredients

In the image above the ingredient was: zest of one large orange.
The ingredient was not identified and quantity is NaN.

Result with latest code:

Closing...


xamarin app crashes in United State on ios 14.0

We have notice again a new crash on ios 14 iphone in United State region. We tested same ipa in india and it is working fine below are the device logs.
Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000203cf4d90
VM Region Info: 0x203cf4d90 is not in any region.  Bytes after previous region: 609681  Bytes before following region: 32944752
REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
unused shlib __DATA           203c47a28-203c60000        [   97K] rw-/rw- SM=COW  ... this process
--->  GAP OF 0x2000000 BYTES
__DATA_CONST                  205c60000-205c73378        [   77K] rw-/rw- SM=COW  ...ispatch.dylib
Any ideas?
Please help us
Dev environment:
Visual studio: 8.7.8
Xamarin.ios 14.0
xcode 12.0

device consol logs are

@sunilsolankilnt , I'm having the same issue. Did you manage the get around it?

Nevermind.  I missed the root cause of my crash - an unhandled exception of mine.


How to pass env variable to npm install?

A quick question, how can I pass env variables to npmInstall task?
I would like to do:
NODEJS_ORG_MIRROR=https://mymirror.com/dist npm install
(Specifically this is for node-gyp)

I never tried, but since npmInstall is a standard NodeTask it should be possible to do it like this:
npmInstall {
  environment = [
    'NODEJS_ORG_MIRROR': 'https://mymirror.com/dist'
  ]
}

Thanks, it works! But to avoid rewriting full environment I am doing this:
// Override dist url for node-gyp npmInstall {   def _env = [:]   _env << System.getenv();   _env["NODEJS_ORG_MIRROR"] = 'https://mynodejs.org/dist'   environment _env }

I don't mean to resurrect a dead topic, but it seems like even though the above code:

    void setEnvironment( final Map<String, ?> value )
    {
        this.runner.environment << value
    }

Exists in the plugin version I'm utilizing, I was still forced to utilize:
  environment = System.getenv() + ['NODEJS_ORG_MIRROR': 'https://mymirror.com/dist']
Or else I was getting an error stating:

Task :npmBuild FAILED
'npm.cmd' is not recognized as an internal or external command,
operable program or batch file

.Strange..


TS error when building through 'react-scripts build'

Hello!
I'm using React and the following versions in my package.json:
    "@dicebear/avatars": "^4.4.0",
    "@dicebear/avatars-avataaars-sprites": "^4.4.0",

Everything seems to run fine when I run the app through react-scripts start, but when I try to create a production build, it seems Typescript isn't very happy:
       $ react-scripts build

       Creating an optimized production build...

       Failed to compile.

<EMAIL_ADDRESS>
       TypeScript error in /tmp/build_bb1eec28_/react-ui/node_modules/@dicebear/avatars-avataaars-sprites/lib/index.d.ts(1,13):

       '=' expected.  TS1005

         > 1 | import type Options from './options';

             |             ^

           2 | import type Random from '@dicebear/avatars/lib/random';

           3 | export default function (random: Random, options?: Options): string;

           4 |

       error Command failed with exit code 1.

       info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

For what it's worth, this is running on Heroku, but I don't think it should make any difference?
Thanks for the great package :)

Hi @mathieubruguier
You seem to use an outdated TypeScript version. You need at least TypeScript 3.8

You're right! I should have noticed.
Thank you for your help, everything works perfectly now :)


how does the application know it has to go index.html after signin, what specifies that?

This program does not have UI. It's just REST service.


Slow performance after 1.77 update

@mjbvz
It happened for me in all code repos I tried, including public ones such as https://github.com/microsoft/vscode/. For now I can't point to specific location in code and editing action where this problem reproduces 100%.
I can only confirm that disabling error handler telemetry (e.g. with https://github.com/sergei-dyshel/vscode/commit/122c48b6bf76fe52a1959fc5932fb1a07d8686a3) eliminates the issue.
When I have some more time I'll try to investigate it a bit more.
Originally posted by @sergei-dyshel in https://github.com/microsoft/vscode/issues/178799#issuecomment-1532829589

@jrieken Can you investigate this. The reporter suggests it may be related to extension host exception handling

I do have the same issue, before I checked this issues section, I thought some issue with my laptop and reinstalled vs code, still issue hadn't resolved, then I realized it is 1.77v problem after viewing this issue, thanks for making this issue, else I would be sitting the whole night to debug the issue. 💀

/needsMoreInfo
Please use this guide to provide more information: https://github.com/Microsoft/vscode/wiki/Performance-Issues#startup-timer. Thanks.

@jrieken
May I ask how is startup time is related here? The slowness happens during using language features, not on start.
Instead, can you provide information/link to guide on how to debug extension host itself? Particularly I'm interested:

Putting breakpoints in exthost code - I can put breakpoint in error handler to see when prepareStackTrace.
Adding debugging logs to exthost.
Existing PerformanceObserver/Histogram infrastracture that I can use to add error handler histograms by plugin.

I am facing the same issue I am on the latest build Insiders.

Same here

@maccman I just downgraded to 1.76 and the problems are all gone!
https://github.com/sergei-dyshel/vscode/commit/122c48b6bf76fe52a1959fc5932fb1a07d8686a3
https://vscode.blob.core.windows.net/insider/c9e3ef865539061b5602c6b9ac6030332aa1ce70/VSCodeSetup-x64-1.76.0-insider.exe

@hasokeric  Me too - downgrade worked for me.
For any core-team members reading this, this seems like a real problem.

Thanks @hasokeric , Downgrade worked for me well. Hopefully this is resolved soon by the core team.

@jrieken bump :)

Managed to capture a profile
25fb790dc5e0.json.zip

Still needs actionable information. Please use this guide to provide more information: https://github.com/Microsoft/vscode/wiki/Performance-Issues and/or "F1 > Start Extension Bisect" to provide more information

Is this the related issue, finally someone caught it? We should be able to see if it solves it in the next minor releases, perhaps insiders... https://github.com/microsoft/vscode/issues/184926

closing that either dupe of #184926 or not actionable as no further information has been delivered


Add support for drag operation on borderless window

Add a function glfwDragWindow that starts a drag operation for the specified window.
The implementation is done for X11 and Windows, and requires tests on Wayland.

The Travis-CI report:
...
[ 15%] Linking C shared library libglfw.dylib
Undefined symbols for architecture x86_64:
  "__glfwPlatformDragWindow", referenced from:
      _glfwDragWindow in window.c.o

ld: symbol(s) not found for architecture x86_64

Should I make an empty definition of _glfwPlatformDragWindow on cocoa_window.c while the implementation for those platforms aren't still done? Example:
void _glfwPlatformDragWindow(_GLFWwindow* window)
{
}

Or is there another way?

Yes, always add stubs to all backends when creating a new platform function.

The Wayland implementation is fixed by https://github.com/glfw/glfw/pull/992.

This is a much nicer interface than what I had in mind. 👍
I won't be able to review this properly until Thursday at the earliest. In the meantime, movableByWindowBackground may be of use on macOS.

I won't be able to review this properly until Thursday at the earliest.

No worries.

In the meantime, movableByWindowBackground may be of use on macOS.

I was thinking about that one (there's even other property called mouseDownCanMoveWindow), but the behaviour is different compared with Linux/Windows. The Linux/Windows lets you do this:
/* Drag window only on the customized top bar */
if (cursor_y < 20) {
    glfwDragWindow(window);
}
/* or even start the drag operation using a key */
if (key == GLFW_KEY_D) {
    glfwDragWindow(window);
}

But, movableByWindowBackground (and mouseDownCanMoveWindow) are flags (not functions that start an operation) that if the user clicks anywhere (and only works with mouse click), the window will still be draggable:
if (cursor_y < 20) {
    glfwDragWindow(window);
}
/* Window still will be draggable outside of that scope, on any cursor position */

So, the macOS implementation will definitelly be hacky (if we do it). My suggestion, if you don't mind, is to leave this patch only with the X11/Wayland/Windows implementation, and I could work on other PR with the macOS implementation.

This has been staged in the drag-window branch for testing and completion.

Any updates for such a nice feature


Add support for views to JDBC connectors

Related issue: #4161
I am not sure if tests are necessary here, l can remove them if not required.

any progress on this one?

i have no idea how github works i am new but i am dying till the day i find
those secrets i need
On Tue, Dec 15, 2015 at 5:56 AM, Alberto São Marcos <
<EMAIL_ADDRESS>wrote:

any progress on this one?
—
Reply to this email directly or view it on GitHub
https://github.com/facebook/presto/pull/4165#issuecomment-164772314.

BTW, this will not affect MySQL as MySqlClient overrides the getTables method

@albertocsm  yes you are right but issue is only about the jdbc connectors. I can modify it though if requested.

This needs a test in TestMySqlDistributedQueries and TestPostgreSqlDistributedQueries that actually runs a query against a view. I'm adding it. Also, the change in MySqlClient is required as noted by @albertocsm.

Merged, thanks!

Builds 138 and 137 fail to return tables of type VIEW when Presto consuming Postgres.


Version dependency problems

Hi, When trying to use the omniauth-google_oauth2 gem as stated in the documentation, along with the rodauth-omniauth gem. The following errors occur due to version dependencies of omniauth
Bundler could not find compatible versions for gem "omniauth":
  In snapshot (Gemfile.lock):
    omniauth (= 1.9.2)

  In Gemfile:
    omniauth-google_oauth2 (~> 0.1.5) was resolved to 0.1.5, which depends on
      omniauth (~> 1.0)

    rodauth-omniauth was resolved to 0.3.1, which depends on
      omniauth (~> 2.0)

A more compatible gem is this. If you would like to effect this change in the documentation, I don't mind updating it and creating a PR for it. Thanks

Yes, if the docs don't already mention that rodauth-omniauth requires OmniAuth 2.0, it would be good to add it there, thanks!

Alright, should I also replace the gem used in the example, with the compatible one?

Updated in https://github.com/janko/rodauth-omniauth/pull/9.


Allow changing network name

via onboard.config() i can change networkId to support multiple networks in my app, but I cannot change networkName using this method
this way wrong network name may be suggested to my users when You must change networks modal appears.
Please add support for changing networkName config

Hey @dzek69 👋🏾 , As it stands the best way to change the networkId and the networkName is to reinitialize onboard.js with the new networkName, networkId and then to change any rpc urls to that new network. This is due to the fact that only some of the wallets support network switching.
In the future we may support this as a method but for now reinitializing can offer the same outcome.

Isn't reinitializing resulting in console error/warning about onboard being already initialized?
Initializing looks like kind of Singleton to me
Or this is just a warning and it will actually be initialized with different settings, not returning the same instance every time?

@dzek69 Yup! You can safely ignore it. If you go to Mempool Explorer, open the console, and then switch networks, you'll see the same warning as this is how we also change networks with onboard.

okay, thank you!

@dzek69 Yea! Don't hesitate to reach out if you need anything else! And be sure to join our Discord if you haven't already 🤘


Exports return at block end

Is it intended that exports in a block will cause a return when the block ends?
Looking at
local function f(extended)
    export function r1() end
    if extended then
        export function r2() end
    end
end

local t = f(true)
print(t.r1, t.r2)

I would expect a table with both, r1 and r2 to be returned but only r2 is in the table as the if block creates a new export scope and will return at the end of the if since there was an export in the body.

The documentation only states

The return statement is automatically generated.

not if this happens at the end of the function or the end of a block (end of if, end of loop, end of switch).

Well, it does have the example:
-- end of scope; 'return' is automatically generated

Maybe can be a bit more explicit.


No mesh produced in html.

Describe the bug
The plot_mesh code runs and I generate an html file using the .json file generated from the combinet output. When opening the .html it shows the basemap and is centred in the correct location, but the mesh is not visible. The data must be present because when I place the cursor over where the mesh should be, the information box comes up. A screenshot of the html is attached below.  I will send the .json via slack as github is telling me I can't attach a .json?
Screenshots & Files
()

p.s. I did click on and off the layer using the tab button to the left :)

Great that looks like it's worked so far (from a PolarRoute side). Here GeoPlot doesn't know how to plot data of name: Band1 yet, so you'll need to tell it. This can be done by adding some plotting information to bas_geoplot/config/interactive.json . We don't have any docs for this unfortunately, but hopefully you can just copy the plotting information for an existing field and name it 'Band1'

This was resolved by adding the following info to /Geoplot/bas_geoplot/config/interactive.json to style the data
At line 99:
```
},
"CombiNet":{
"line_color":"gray",
"line_width":0.05,
"fill_color":{
"colormap":"BuPu_09",
"cmin":0.0,
"cmax":1.0
},
"fill_opacity":0.6,
"data_name":"CombiNet",
"units":"%"
},
Then at line 261:
`            {"Name":"CombiNet","data":"CombiNet"},`

Finally, the corresponding info needs to be added to /GeoPlot/bas_geoplot/cli.py around line 52

if 'Band1' in mesh.columns:
logging.debug("plotting Band1")
mp.Maps(mesh,'Band1',predefined='Band1')

If this is a dataset we're going to want to plot in the future you could go ahead and make a branch with your changes and then put in a pull request? @MartinSJRogers
Feel free to hold off if you're still working on adding more data or you think the column names etc. might change in the near future.

Thanks @gecoombs, yes plan to make a branch once I have tried it out on a few more images.

Closing this as stale, feel free to reopen if there is any progress.


Update README.md

Remove duplicate subdirectory instructions
Add Nginx instructions for subdirectory

Hey, thanks for the merge-request, but can you make the changes to the readme.txt file? The markdown file is auto-generated.

Got it, sorry! I was Hacktoberfesting for the first time lol

thanks :)


feat: Portal Management API documentation

For Reviewers this needs:

Testing
Copy Edit
Narrative structure review

Questions:

The original draft has another section, I have some of it commented out, I felt like what I had ended pretty nicely and in combination with a blog and a spec could make a complete package but let me know if you don't agree.
I tried to write a purpose statement, does it answer it?

AC:
This doc helps portal administrators and developers understand how to integrate the API into their workflow for tasks like automating approvals, assigning permissions, and monitoring developer activity.
https://konghq.atlassian.net/browse/DOCU-3527

@cloudjumpercat @lena-larionova Could either (or both) of you copy-edit this?


[Feature] When create multiple partitions table takes a long time

Search before asking

[X] I had searched in the issues and found no similar issues.

Description
version : <IP_ADDRESS>
execute time : 1567383 ms

Use case
create.txt
Related issues
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

create.txt
BUCKETS 130 test sql


.git directory is not found!

Can some help me with this?
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] LuckPerms 4.1-SNAPSHOT ............................. FAILURE [ 21.293 s]
[INFO] luckperms-api ...................................... SKIPPED
[INFO] luckperms-common ................................... SKIPPED
[INFO] luckperms-bukkit ................................... SKIPPED
[INFO] luckperms-bungee ................................... SKIPPED
[INFO] luckperms-sponge-service ........................... SKIPPED
[INFO] luckperms-sponge-service-api6 ...................... SKIPPED
[INFO] luckperms-sponge-service-api7 ...................... SKIPPED
[INFO] luckperms-sponge ................................... SKIPPED
[INFO] luckperms-nukkit 4.1-SNAPSHOT ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.551 s
[INFO] Finished at: 2018-03-22T16:35:28-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.2.2:revision (default) on project luckperms: .git directory is not found! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Uhh, how did you clone the repository?

I downloaded it from Github

You need to clone it using Git. Instructions are here: https://github.com/lucko/LuckPerms#building
If you don't want to use the CLI, you can also use the GitHub desktop client to clone it.
https://desktop.github.com/

Thank you lucko! I will close when this is resolve.

:+1:


log_sklearn_plot: Support custom name.

Rename the existing name argument to kind. This argument is used to determine the type of plot. Add a new optional name argument to define the output file.
Closes #323

Codecov Report

:exclamation: No coverage uploaded for pull request base (1.0@5a120c2). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@          Coverage Diff           @@
##             1.0     #339   +/-   ##
======================================
  Coverage       ?   94.95%
======================================
  Files          ?       36
  Lines          ?     1783
  Branches       ?      165
======================================
  Hits           ?     1693
  Misses         ?       65
  Partials       ?       25

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

One minor request: look for a .json extension and strip it so users don't end up with roc.json.json.

should be done now

Nice, thanks! Is there a docs PR?

Nice, thanks! Is there a docs PR?

I am grouping all 1.0 in a single branch

Can we have separate PRs and merge into a similar dvclive-1.0 branch in dvc.org so we don't have one massive review?


FIX-670-A: automated run

Seeing what I managed to generate with clang tooling (I only ran on a small part, some things do break).
I dunno if should be merged - I still didn't do all platforms.

Split into bits


Refactor conduit inject code to eliminate duplicate logic

Previously there was a lot of code repeated once for each type of
object that has a pod spec.
Refactor the code to reduce the amount of duplication there, to make future
changes easier.
Signed-off-by: Brian Smith<EMAIL_ADDRESS>

This PR has its base branch set to #382's branch. I will rebase this on master after #382 lands.

This is now based on master.
I think it may be necessary for 0.3 because the PR to fix #62 would benefit from this refactoring.


Types with same name overrides schemas in components

If there is 2 or more types with same name, they will override each other, when schema generated. For example
handler1.rs
#[derive(JsonSchema)]
struct Request {
    name: String
}

handler2.rs
#[derive(JsonSchema)]
struct Request {
    id: u64
}

will create only one definition in #/components/schema, and handlers from both files wil reference same schema.
First potenial fix - enable inlining in https://docs.rs/schemars/latest/schemars/gen/struct.SchemaSettings.html#structfield.inline_subschemas, which will solve most problems (probably everything sxcept recursive types).

Proper solution could be adding some attribute to schemars macro JsonSchema, which will make type non-referenceable, like
#[derive(JsonSchema)]
#[schemars(referenceable = false)]
struct Request { ... }

I thought about this (for a year+, lol), and I think proper solution is to move from using schemars generator as container for all schemas to custom implementation.
Approximate design: current Components removed and replaced with OpenApiBuilder in all signatures. OpenApiBuilder have following definition
struct OpenApiBuilder {
    spec: OpenApi, // spec from okapi
    conflict_schemas: HashSet<String>,
}

where spec's components.schemas will act as storage for all known referenceable schemas and conflict_schemas will include type names, where different types had same name.
Builder will provide single method .schema_for<T: JsonSchema>() -> RefOr<SchemaObject> with this logic:

If T is not referenceable, then return it as-is, otherwise proceed to next steps;
Generate root schema with schemars generator
For each schema in generated root schema:

If schema name in conflict_schemas, replace all references to new schema in generated schemas with actual definition;
If schema name is not in spec.content.schemas, put it there
If schema name is in spec.content.schemas and content is equal, skip this schema
If schema name is in spec.content.schemas and content is different:

put schema name in conflict_schemas;
remove existing schema from spec and replace all references to it in spec with actual definition;
replace all references to new schema in generated schemas with actual definition;

If current schema is for requested type, store it (ore reference to it) in additional variable.

Only problem left is if you use same name for different types like this
struct Request {
    a: crate_a::MyField,
    b: crate_b::MyField // actually different from crate_a::MyField
}


snapper: fix "type=oneshot" error in snapper-boot.service

Description of changes
change serviceConfig.type = "oneshot"; into serviceConfig.Type = "oneshot";

Things done
Fix warning about
systemd[1]: /etc/systemd/system/snapper-boot.service:15: Unknown key name 'type' insection 'Service', ignoring.

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/backporting-a-trivial-commit/27192/2


About NootedRed.kext

Hello！A new lilu plugin named NootedRed.kext has appeared for a few days,but OCAT kexts database hasn't included this kext.Could you add it in next version？Many thanks.
ps:If project need,it's ok to use my repo of NootedRed-Releases(only for releases).

That's great,I think this idea is very meaningful. This plugin is very important and Perhaps many users want it to be included,this eliminates the need for manual addition steps.

I (ChefKiss Inc), legal copyright holder of [NootedRed], hereby explicitly forbid distribution of [NootedRed] source code and binaries in any shape or form under copyright law, unless otherwise exempt by direct signed statement or usage of [NootedRed] falls under Fair Use, as explicitly described by Section 107 of the Copyright Act

@VisualEhrmanntraut

I (ChefKiss Inc), legal copyright holder of [NootedRed], hereby explicitly forbid distribution of [NootedRed] source code and binaries in any shape or form under copyright law, unless otherwise exempt by direct signed statement or usage of [NootedRed] falls under Fair Use, as explicitly described by Section 107 of the Copyright Act

Actually, you ChefKiss Inc, appear to be contradicting your own published license in the comment you made above. Did you change your mind since you made that comment? Could you please clarify what license conditions are the current ones as of April 2024?

Licensed under the Thou Shalt Not Profit License version 1.5

Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:

c) to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Thou Shalt Not Profit License;

No contradictions here. It is fair use if you use it under the license conditions. The license explicitly states that distribution of the work must retain the copyright notice and reuse the TSNPL v1.5 license. Therefore, all binary or source code distributions must be licensed under the same license and retain the copyright notice.


Is this project dead?

I found this library on NPM (https://www.npmjs.com/package/ngx-input-errors), but the repo only shows a license file.  Is this project dead?  Can you publish the source code?

because document is not complete yet, i didn't publish
but as soon as possible i will publish the source code
On Sun, Jun 14, 2020, 11:29 PM Raleigh Johnson<EMAIL_ADDRESS>wrote:

I found this library on NPM (
https://www.npmjs.com/package/ngx-input-errors), but the repo only shows
a license file. Is this project dead? Can you publish the source code?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/aks1376/ngx-input-errors/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANXY6ULLC76B7GVYMXICWN3RWUM2XANCNFSM4N5SJRJQ
.

Thanks @aks1376, I look forward to it!

as I said, I publish the source code
I hope it would be helpful for you
and it need lot of work to be completed


fix: add es module

This PR adds an es module (he.esm.js). This is currently handcrafted by basically removing the UMD wrapper and adding the exports at the bottom of the file. This file is then references from package.json using the module field. This is in my opinion a non-breaking change.
I hope this can be published soon as it would allow he to be used by packages that are esm based and and bundlers that have difficulties to detect the exported names.
I'd like to have this automated but i could not get the grunt build to run:
Running "shell:process-data" (shell) task
/Users/sastan/Projects/os/he/node_modules/sort-object/index.js:71
                var k = get(sortBy, key)[j++];
                                        ^

TypeError: Cannot read property '0' of undefined
    at sort (..../he/node_modules/sort-object/index.js:71:27)
    at Object.<anonymous> (..../he/scripts/process-data.js:96:35)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)
    at bootstrap_node.js:612:3
Warning: Command failed: node scripts/process-data.js
..../he/node_modules/sort-object/index.js:71
                var k = get(sortBy, key)[j++];
                                        ^

Any hint about how to solve this and i would adjust the PR.
Related #76

Any news regarding this change? My team is looking forward to seeing it


Set up readthedocs

I think we need documentation hosted at https://readthedocs.org/
For example, I am looking at the output file and wondering what all the columns mean.
winning_scores	labels	delta_mass	winning_peptides	rank	database	scan	file	all_group_ids	q_vals

I think "winning_scores" should be "score," and similarly "winning_peptides" should be "peptide."
"q_vals" should be "q_value"
I don't know what "labels" means, nor "all_group_ids".

Closing now since documentation is now properly hosted.


Redefine SceneMessage

This is not a breaking change because there never was a proper handler on the client side for anything other than a SceneMessage with default parameters.
With this PR, SceneMessage now has a sceneOperation enum for the following:

Normal : ServerChangeScene uses this to change to the named scene with all clients doing the same
LoadAdditive : Loads the named scene additively on the client if it isn't already loaded
UnloadAdditive : Unloads the named scene as long as it's not the active (main) scene

Additive example is updated to use the SceneMessage instead of having a SceneLoader on the player...tested and works.  Also tested with uMMORPG.
MessagePackerTest also updated.

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


Update text styles in design system

https://github.com/wearenewpublic/psi-product/issues/169
Decouples the size and weight properties in UtiltityText so that each may be easily set independently of the other. It was also confusing before because the strong property also affected weight as well. So I got rid of this and made one prop, weight which is responsible for setting weight.
Made this change to make it more clear for developers how to set weight (since strong could mean different things depending on size and different sizes also did not have consistent weights) but also because the design system wants to support various weights for all the sizes and it's easier to do that with this change.
Because I changed the interface of UtilityText by removing strong, I did have to go through and update many files. Pretty sure I got close to everything, but let Tori know there may be some things I missed and she's OK with that if it means the system is more scalable. For reference these were the changes I made for all the implementations of UtilityText throughout the codebase:
Previously: type=’large’ strong
Now: weight=’medium’
Previously: type=small’ strong
Now: weight=’medium’
Previously: type=’tiny’ strong
Now: type=’tiny’ weight=’strong’
Previously: type=’tiny’
Now: type=’tiny’ weight=’medium

Forgot to mention, also made these changes:
Change the name of “Heading 1” to “Heading large medium”
Change the name of “Heading 2” to “Heading small strong”
Add the new text style called "Utility large medium" that is Medium weight
Change the name of “Utility small strong” to “Utility small medium”
Add the new text style called “Utility tiny caps medium” that is Medium weight
First change the name of "Utility tiny" to "Utility tiny medium" (because it is Medium weight); then add the new text style "Utility tiny" that is Regular weight
Data Viz styles
Change the name of “Data Viz Heading 1” to “Data viz heading large strong”
Change the name of “Data Viz Heading 2” to “Data viz heading small”
For accessibility, "Data Viz Heading Small" should be Regular instead of Italic
Remove “Data Viz Number”
Remove "Data Viz Label"
Remove “Data Viz Label Strong”


Can I use the Oak-D-Pro camera on the Turtlebot4 Lite and how?

In my experiments, I found that running "ros2 launch turtlebot4_viz view_ model.launch.py" did not appear any response pictures after replacing oak-d-lite on Turtlebot4 Lite with oak-d-pro. Did I miss any steps or is it not feasible to change the camera? Looking forward to your reply!

@jxq999 The launch file for the OAK-D should work with both the lite and pro. The issue with Rviz is likely that you are using the default TTB4 lite description which uses the OAK-D lite. Try running ros2 run rqt_image_view rqt_image_view and see if you can visualise the image on the /color/preview/image topic.
To fix the description and launch, you will need to modify the lite urdf to use the OAK-D Pro like the standard urdf does. Then, in the lite launch file, change the tf_prefix to oakd_pro.
Let me know if this fixes your issue.

@roni-kreinin Thank you very much for your answer. Actually, I've done it before just as you said. But running ros2 run rqt_image_view rqt_image_view didn't allow me to visualize the image on the /color/preview/image topic.
To fix the description and launch, I also have modified the lite urdf to use OAK-D Pro like the standard urdf does. Then, in the lite launch file, I've changed the tf_prefix to oakd_pro. But it didn't work. There were still no any response pictures after running ros2 launch turtlebot4_viz view_ model.launch.py. However, It's worth noting that I made these modifications on the Raspberry Pi of the turtlebot4 lite. Should I make the corresponding changes on my PC as well? Or just modify the PC?

The changes should be made just on the raspberry pi.
Can you try to launch just the camera by stopping the turtlebot4 service with sudo systemctl stop turtlebot4, and then calling ros2 launch turtlebot4_bringup oakd.launch.py?

ubuntu@ubuntu:~$ ros2 launch turtlebot4_bringup oakd.launch.py
[INF0] [launch]: All log files can be found below /hone/ubuntul .ros/log/222-04-21-13-29-45-435298-ubuntu-1718[ INFO] [launch]: Default logging verbosity is set to INFO
[INFoj [rgb_stereo_node-1]: process started with pid [1720]
[rgb_stereo_node-1][18443010510E381300][10.531] [systen] [error] Attempted to start Color camera · NOTdetected!
[rgb_stereo_node-1][18443010510381300] [10.531] [systen] [error] Attenpted to start wono Left camera - NOT detected
[rgb_stereo_node-1] [18443010510E381300] [10.531] [systen] [error] Attenpted to start Mono Right camera - NOT detected!

Thanks again for your answer. After I did what you said, I found that the color camera was not detected,  as above. But I tested the camera using oak's demo under win10, it was fine. And I replaced another oak-d-pro camera on the tb4 lite then ran ros2 launch turtlebot4_bringup oakd.launch.py. The problem was the same.

@roni-kreinin Good afternoon！My problem has been solved by updating the version of DepthAI.Thank you very much for your help!


feat(www): support server name on dynamic keys

Adds the functionality for determining the server name that's on ss:// to ssconf://
Question - @fortuna do we want to add support for extra fields in the hash to both ss:// and ssconf://?

Could it be possible to add support for extra fields over Dynamic Access Keys?
A way to redefined/overload some informations in the json files?
For example  ssconf://s3.amazonaws.com/a-cool-s3-bucket/my-access-key.json:password=dfghjdfgh

I don't want to have multiple bucket to update. The idea is : one bucket define one server { server, method and perhaps port}.
But the password is different for every users.
So the password (and perhaps port), could be in the ssconf:// link.
If i change the server ip, i just need to change one bucket.
It's like owning a domain, but it will be free of charge and anonymous (for the domain part)

@taxi-c thanks for sharing your use case.
We are looking into an advanced config format. For example:
{
  "type": "OutlineService",
  "dialer":  {
    "type": "Shadowsocks",
    "socket": { "host": "<IP_ADDRESS>", "port": 443},
    "encryption": {
      "cipher": "chacha20-ietf-poly1305", "secret": "1234"
    }
  }
}

I can imagine a world where the objects can be references instead. For example:
{
  "type": "OutlineService",
  "dialer":  {
    "type": "Shadowsocks",
    "socket": "https://example.com/server_info",
    "encryption": {
      "cipher": "chacha20-ietf-poly1305", "secret": "1234"
    }
  }
}

Or more explicitly:
{
  "type": "OutlineService",
  "dialer":  {
    "type": "Shadowsocks",
    "socket": { "type": "Ref", "location": "https://example.com/server_info"},
    "encryption": {
      "cipher": "chacha20-ietf-poly1305", "secret": "1234"
    }
  }
}

But it will take some time to support these, we have a lot of work to do to decouple the networking logic from our per-platform code.

i'm not familiar with the "outline" model-threat but in the new version of shadowsocks 2022, it's seems that base64URL should be avoid. But not everybody agree. Whatever, if it's a security issue, the extra fields could be encoded in base64.
https://github.com/shadowsocks/shadowsocks-org/issues/196#issuecomment-1163057745
Excessive and unnecessary usage of base64 encoding in URLs is a bad practice, and must be discouraged.
https://shadowsocks.org/guide/sip002.html
For AEAD-2022 (SIP022), userinfo MUST NOT be encoded with Base64URL.

@fortuna I understand. But in the online configuration Delivery (SIP008) of shadowsocks, the json file version 1, is different.
https://shadowsocks.org/guide/sip008.html
Perhaps, it's planned to have a new version?
And i also think for my convenience use case, Outline manager will not manage all the web references (one for the server and many for all the client), and probably none of them. So i'll have to manage these references. If i have just the server reference to maintain up to date, it will be easy. And i can expect outline-manager give me the extra field password (encoded or  not) in the share access option.
I also don't know if you plan to implement the shadowsocks2022 version (SIP022), who sounds great against probing.


Move new bundle templates into Java resources not as a part of Ruby code

Similar to #854. This is moving bundle templates used for embulk mkbundle.
Removing package_data.rb as well which has been used only for this.
@sakama (Cc: @muga) Can you have a look?

Thanks! Merging.


Laravel Echo Server With RabbitMQ

Hello, it is possible integrate Laravel Echo Server with RabbitMQ?

All RabbitMQ calls are done by using Laravel queue package. So for better understanding you can read their documentation.

Hi guys,
First of all, I really appreciate your work, this is a fantastic package and is being used by thousands of project.
Although, I ran in to a situation with my project which I need to use rabbitMQ instead of redis for presence channels storage. Is there anyway we could do that?
I'd welcome any help or recommendations!
@subeg7 could you be so kind and drop a link here? I don't know what you mean by "done by using laravel queue package"


JSON post data

I'd like to accept JSON post data instead of form-data. ie.
{"email":"my_email@email.com","password":"1234567"}

Instead of:
<EMAIL_ADDRESS>

duplicate of #24 ?

Update to the last version of master, this has been implemented in the last commit:
https://github.com/matt-42/silicon/commit/e02c1ee222bac41ab8a4d58c5f713b30d2ec7e24#diff-ca334d1611153b304440f66073607b47R221


Specific responsive variants are not working

Describe the bug
Defining a responsive variant for specific variants using the object syntax (described on https://github.com/nextui-org/tailwind-variants/pull/24) isn't returning the correct types nor is it returning the expected classes.
To Reproduce
Steps to reproduce the behavior:

Go to https://codesandbox.io/p/sandbox/competent-ben-i7mvx9
Open components/button.styles.ts file where the responsive variants are configured for the size variant only
Open pages/index.tsx file to see usage of component and the types of the variants (extracted using VariantProps on components/button.tsx file)
See that the "Responsive button" has type errors on the size prop and that the classes have not been injected into the <button> element.

Expected behavior
The types should be correctly asserted based on the configuration the developer has instructed for each variant and the classes should be extracted according to the same configuration.
Additional context
It seems that the transformer has this feature working (according to the PR mentioned above), but the tv API does not seem to have this feature implemented just yet.

Hi @ruijdacd the example has some implementation issues, here's the fixed one:
https://codesandbox.io/p/sandbox/competent-ben-i7mvx9?file=README.md
The responsiveVariants prop only accepts true/false or the breakpoints you want to have available for responsive variants:
example:
{
  responsiveVariants: true // ['xs', 'sm', 'md'] specific screens
}

https://codesandbox.io/p/sandbox/sleepy-greider-ymgtpl?file=%2Fcomponents%2Fbutton.styles.ts&selection=[{"endColumn"%3A1%2C"endLineNumber"%3A29%2C"startColumn"%3A1%2C"startLineNumber"%3A25}]

@jrgarciadev Is the object syntax described on #24 not going to be implemented on the tv API? I see that this feature is implemented and tested on the transformer already, along with being showcased on the PR.
Is it not in the plans to finalize the implementation of this feature? I think this would make tailwind-variants the definite package to use for most developers as it would allow for more granular control over responsive variants.

@jrgarciadev would you mind taking another look at this? I think my report was misunderstood.
The feature I'm talking about is already present and tested on the transformer but the tv API does not support it yet.
Could you let me know if that's on purpose or if there are plans to implement it? I would be happy to move forward with my contribution for this to come to life.

@jrgarciadev, is there any chance this will be implemented soon? This a handy feature, to reduce bundle and increase DX, sometimes some variants are not responsive.


kubectl-gadget: 0.17.0 -> 0.18.0

Description of changes

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

release notes: https://github.com/inspektor-gadget/inspektor-gadget/releases/tag/v0.18.0


Helper ontology extraction

extract helper ontologies for API generation and validation from core information model.
(addresses https://github.com/IndustrialDataSpace/InformationModel/issues/2)

the name "The Industrial Dataspace Information Model Validation Ontology" is imho strongly misleading with regard to what it is - can we rename this?

btw: according to the contribution guide, we use prefixed branch names (feature/bugfix/release)

sorry about violating the naming conventions, will stick to them the next time!

created a new repository that contains the helper ontologies: https://github.com/IndustrialDataSpace/InformationModelHelperOntologies


Allow custom web process startup arguments

Enhancement: Allow for an array of startup arguments to the web process to be passed in to enable users to leverage various webkit/webview2 startup arguments.
Use case: we are trying to allow file system access for an offline browser application and want to startup the browser process with the argument --allow-file-access-from-files to enable file system access.

Hi @trevjacobson!
This was quite the effort to get done on all platforms but we came up with a solution to this. We just released v2.5.0 where you can set init params for the underlying browser control like so:
public class Program
{
    public static void Main(string[] args)
    {
        string browserControlInitParams = string.Empty;

        if (PhotinoWindow.IsWindowsPlatform)
        {
            // Windows specific initialization parameters
            browserControlInitParams = "--flag --option-with-value=value";
        }
        else if (PhotinoWindow.IsMacOsPlatform)
        {
            // macOS specific initialization parameters
            browserControlInitParams = JsonSerializer.Serialize(new
            {
                flag = true,
                optionWithValue = "value"
            });
        }
        else if (PhotinoWindow.IsLinuxPlatform)
        {
            // Linux specific initialization parameters
            browserControlInitParams = JsonSerializer.Serialize(new
            {
                flag = true,
                optionWithValue = "value"
            });
        }

        PhotinoWindow window = new PhotinoWindow()
            .SetTitle("Photino Testing")
            .SetBrowserControlInitParameters(browserControlInitParams)
            .LoadRawString("Hello World!");

        window.WaitForClose();
    }
}

We hope this works for you. Please let us know about your experience! :)


Migrate to ES modules

We've been using the CommonJS module syntax so far, but ES modules are
the modern option. Let's update the codebase here to use ES modules.

@jonathanKingston this works fine internally, but when imported from the extension I see this error: ParseError: 'import' and 'export' may appear only with 'sourceType: module'. Any ideas how I should proceed?

@jonathanKingston this works fine internally, but when imported from the extension I see this error: ParseError: 'import' and 'export' may appear only with 'sourceType: module'. Any ideas how I should proceed?

It's failing in duckduckgo-privacy-extension's "browserify:background" Grunt task. I'm not sure how to work around that, suggest we park this one until we figure that out.


x/build/env/linux-arm64/packet: 8 Packet linux/arm64 machines missing

From https://farmer.golang.org/#health:

Previously:

#35708
#35524
#32543
#31112
etc.

sshing into the server timed out, but pinging it was fine.
I restarted it via Packet UI, that fixed it.
Similar to https://github.com/golang/go/issues/35708#issuecomment-555834390.
Another +1 to #32372.


[Bug] File won't be selected when accepting Content-Type suggestion

Insomnia Version: 6.5.4
Operating System: win10 x64 1903

Details
Video: https://streamable.com/4nl75
After I click "Yes" in the "Change Content-Type" dialog, the file won't be selected as expected.

I added a fix for this in https://github.com/getinsomnia/insomnia/pull/1584


[MODEL] Avoid making an update when no attributes are changed

@dim0627 pointed out in #743 that calling update_attributes({}) on an ActiveRecord model instance triggers the before_save callback, even when there are no attributes to update. This results in an unnecessary empty update request to elasticsearch.
Using ActiveSupport's presence, it will act the same for both nil and {}, which are both ways Rails can express that there are no changes to save.
Closes #743

Thank you for making PR for my problem though 🙏
I think this changes should use presence instead of .present?.
Or if (attributes_in_database = self.instance_variable_get(:@__changed_model_attributes)).present?.
Otherwise, boolean will be assigned to attributes_in_database.

Fantastic catch. I had interpreted it as a boolean, but the tests were just telling me the same thing. 😄

Tests updated and passing (locally).

@dim0627 I should point out that this change only replaces the update call with an index call.
https://github.com/elastic/elasticsearch-rails/blob/d8859aed2aa75c93840b763d70e8fce8ce7761ff/elasticsearch-model/lib/elasticsearch/model/indexing.rb#L407-L409
This change makes the behavior more consistent, but is it actually going to be helpful to you?

@nilbus
Yes, I confused Why don't called index_document!?.
Your change is looks good to me 👍

@nilbus and @dim0627 thanks for your work on this! I've tested the changes locally and will merge.

Thanks! :tada:


Starts with function

Is your feature request related to a problem? Please describe.
It's not, but in my opinion a startsWith function may be very good for many people. Especially for beginners.
Describe the solution you'd like
A function called "startsWith" that gets a string and then filters the db for this string and returns all entrys whose key starts with this string.

It will be planned for 9.1.x if you want to PR it in dev feel free to do it

Maybe in the near future. Don't have time rn.


beast migration path to coroutine2?

I shamefully admit part of my reason for posting here is how quickly Vinnie responds to issues.  This is most likely not a Beast problem but I'm hoping to tap his knowledge on co-routines.
I built a REST based server built upon the http_client_coro.cpp example which uses stackful coroutines.  During one of our request handlers the app needs to reread an xml config file using boost::property_tree.  In the read_xml_internal method we get a Access Violation exception.  The top of the stack shows the function _chkstk() being called.  Using VS2017 core guideline checker we get C6262 warning in the boost property tree that too much stack space is being used.  We set the Linker->System->Stack Reserve Size to 4194304 but the crash still happens.
This call to reload the property tree does not fail if we call it outside of the lambda that gets invoked by the REST server.
No large arrays are being used.
Would coro2 or stackless coroutines be a solution?
Any thoughts?

Always glad to help when I can.

We set the Linker->System->Stack Reserve Size to 4194304 but the crash still happens.

LOL...sorry for having a little chuckle at your expense. This setting only affects the stacks created by the compiler. It can't affect the stacks created by the coroutine library. When you spawn the coroutine you can adjust the stack size by passing in some additional settings. For example, this spawns a coroutine with 2MB of stack space:
boost::asio::spawn(ioc, f, boost::coroutines::attributes(2 * 1024 * 1024));

Or you can do what this person did, who reported your exact problem:
https://stackoverflow.com/questions/41030285/boostproperty-treeread-xml-segfaults-in-an-asio-handler-spawned-using-boost
Hope this helps!

Wow how cool that we can fix it either via coroutine or ptree.  The power/design of boost continues to amaze.

Thanks so much again!


Add scalafix rules for 0.4.x -> 0.5.x

This is just like the last PR, but with way less noise!

Thanks @CJSmith-0141, I was going to suggest something similar. I'm waiting for a colleague to review #211, and then I'll merge that into series/0.5.
This is a great start to the Scalafix. I have a test case that covers more of the encrypt API, so we can probably get this merged and then finish up with that those additional Scalafix cases, and then I think we'll be in pretty good shape. I'll push that test case up on another branch just for reference.

I'm not sure why this was closed… maybe because the original target branch was deleted when #211 was merged? 🤔
In any event, @CJSmith-0141 can you retarget this at series/0.5 and reopen it? It doesn't looks like it will let me do that.

I pushed up the initial Scalafix test I wrote to the start-scalafix branch.
Input:
https://github.com/Dwolla/fs2-pgp/blob/fc8d24ca3cf6e5aac160235cf537d5a698bc424e/scalafix/input/src/main/scala/example/UsesCryptoAlg.scala#L19-L27
Expected output:
https://github.com/Dwolla/fs2-pgp/blob/fc8d24ca3cf6e5aac160235cf537d5a698bc424e/scalafix/output/src/main/scala/example/UsesCryptoAlg.scala#L19-L28
If I comment out everything except for Option("filename"), in the input, the Scalafix as described in this PR looks like it works, so I think it's just a matter of adding support for those other optional parameters.


Do some kind of old->new URL testing

Take a sample of different pages on old site & make sure the same paths aren't broken on the new site.
It might be good to do this before the site is deployed.

We can generate a list of most viewed URLs from Google Analytics and test them.

https://beta.stanforddaily.com/2019/09/24/we-have-her-back-students-hold-rally-in-solidarity-with-chanel-miller/ - good
https://beta.stanforddaily.com/category/data-vizzes/ - good
https://beta.stanforddaily.com/email-digests/ - need to remove author and date from pages ("Do-Hyoung Park")
https://beta.stanforddaily.com/advertise/ - need to fix this! (and other pages using the WPBakery page builder)

ubergrids etc. actually works. See https://beta.stanforddaily.com/join-the-daily


Bump version up to 2.2

Version 2.1.1 was never released (due to repeated travis build errors)
so we can remove it from being a version number and go directly
to 2.2 (and collapse the CHANGES.rst to account for that).

+1

+1 (fwiw)


Update data.sql

Fix #1: add horse names in database

/tina - can you have a look at this?

/tina - done.

/tina - done.


JBPM-4812 - Allow to query by task variables including Query API

depends on https://github.com/droolsjbpm/jbpm/pull/338

merged into master


Textual changes

Note for sources which are missing parts (e.g. spectral types) write "No... in the database"

draft text: No spectral type for  in the SIMPLE Archive. If one exists and should be ingested, please open an issue and/or a pull request.

maybe we link to an issue template for data ingestion. (https://github.com/SIMPLE-AstroDB/SIMPLE-db/issues/255)
and (eventually) a link to the contributing data docs.


Style SolidColorBrush create an System.InvalidOperationException

T416066.zip
What steps will reproduce this issue?
Then open a View in a separate thread:
void Test()
{
StartInSeparateThread();
}
    static void StartInSeparateThread() {
        var InternalThread = new Thread(InternalThreadEntryPoint);
        InternalThread.SetApartmentState(ApartmentState.STA);
        InternalThread.Start();
    }

    static void InternalThreadEntryPoint() {
        var window = new Window { Width = 200, Height = 200 };
        window.Content = CreateContent();
        window.ShowDialog();
    }

    static object CreateContent() {
        return new ProgressBar();
    }

this style resource:

create an System.InvalidOperationException
if replace with:

it's work OK

MahApps.Metro v<IP_ADDRESS>
Windows 10
Visual Studio 2015
.NET Framework 4.5

Many thanks
PS) I have attached a sample to reproduce the exception. In the App.xaml i have insert the fix
Aurelio

@AurelioRighetti You must add all MahApps resource dictionaries to thos window if it should work in a different thread.

@AurelioRighetti I wrote something about this here http://jkarger.de/archive/2016/01/22/create-new-mahapps-window-in-separate-thread/

Hi punker76
Thanks for you explanation.
For now i have apply the fix in the app.
Aurelio


Using Player in UICollectionViewCell

Is it possible and feasible to do so? I have other UIView based classes that work well, but since Player is a subclass of UIViewController, I am not sure how to do this properly in a UICollectionViewCell.
If not, I believe I have to find some UIView based media player.

Container View should work


Tflite build error on Android.

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 18
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: All of them
TensorFlow installed from (source or binary): source
TensorFlow version: r2.2-nightly
Python version: 3.7.3
Installed using virtualenv? pip? conda?:
Bazel version (if compiling from source): 2.0.0
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

Describe the problem
I've built a arm64 .so from master (using commit: 001037c4692a09e453777a96a609251cb7c94fac) and I'm including tensorflow/tensorflow/lite headers into my Android project. However, I'm getting the following error when I attempt to build my android project:
In file included from ...../distribution/include/tensorflow\tensorflow/lite/core/subgraph.h:27:

...../distribution/include/tensorflow\tensorflow/lite/delegates/nnapi/nnapi_delegate.h:23:10: fatal error: 'absl/types/optional.h' file not found

#include "absl/types/optional.h"

         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.

Building the project using .so from r2.1 or earlier branches + using headers of the same version works fine.
Also if I attempt using .so build from master but use old headers from r2.1, the Android project builds but fails whenever using the tflite interpreter.

Did you run lite/tools/make/download_dependencies.sh to download proper ABSL library?

I've ran ./tensorflow/lite/tools/make/download_dependencies.sh and it seemed to have completed downloading everything with no errors. However, after re-building the .so (using command bazel build --cxxopt='-std=c++11' -c opt --config=android_arm64 //tensorflow/lite:libtensorflowlite.so) I still get the same error when trying to build the Android project.

Oh, you're using Bazel. So it's ok to build TFLite only in Tensorflow repo, right?
I think you need to copy some dependencies from tensorflow/workspace.bzl so the Bazel can download necessary files.

@terryheo I'm not sure what your suggestion for me to try is. Could you please clarify what you'd like me to try with exact steps I need to do?

Since this is a build issue of your custom repo, we can't support it further.
You need to check how Bazel downloads dependencies.

Manually adding tensorflow/lite/tools/make/downloads/absl to the downstream project's include path fixes this error.

I can confirm that adding ${TENSORFLOW_DIR}/tensorflow/lite/tools/make/downloads/absl to target_include_directories in our cmake build file fixed it. Thanks @tailsu!

@Artaches did you just add adsl headers or code/library too? I added the headers to the includes as you but my Android project fails when running on tflite::InterpreterBuilder(*model, resolver)(&interpreter);


set_genl_features:278: Could not set features.

./tcmu-runner
2017-11-22 18:13:13.887 30093 [INFO] dyn_config_start:409: Inotify is watching "/etc/tcmu/tcmu.conf", wd: 1, mask: IN_ALL_EVENTS
2017-11-22 18:13:13.888 30093 [ERROR] set_genl_features:278: Could not set features. Error -10
uname -a
Linux  4.9.0-0.bpo.4-amd64 #1 SMP Debian 4.9.51-1~bpo8+1 (2017-10-17) x86_64 GNU/Linux
./tcmu-runner --version
tcmu-runner 1.3.0-rc4
dpkg -l|grep libnl
ii  libnl-3-200:amd64                      3.2.27-2                      amd64        library for dealing with netlink sockets
ii  libnl-3-200-dbg                        3.2.27-2                      amd64        debug symbols for libnl3
ii  libnl-3-dev:amd64                      3.2.27-2                      amd64        development library and headers for libnl-3
ii  libnl-genl-3-200:amd64                 3.2.27-2                      amd64        library for dealing with netlink sockets - generic netlink
ii  libnl-genl-3-dev:amd64                 3.2.27-2                      amd64        development library and headers for libnl-genl-3
ii  libnl-route-3-200:amd64                3.2.27-2                      amd64        library for dealing with netlink sockets - route interface
ii  libnl-route-3-dev:amd64                3.2.27-2                      amd64        development library and headers for libnl-route-3
it is a bug?

It is not a bug. Just that you are using a kernel that does not support the sync add/delete.

thx,how to check my kernel support the sync add/delete?

4.13 and newer will have it.


Matrix Rank Calculation

I have written a program that generates then concatenates several matrices in order to calculate the rank of the concatenated matrix.  However, it seems that the order of concatenation matters.  If I calculate the rank of this matrix (3 concatenated matrices separated by new lines):
{{1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1}};
I get 25.  All I did was move one of the submatrices in relation to the other two.  No values were changed.  Calculating the rank of these two matrices in matlab gives a consistent 25 (which is the correct rank).  I am not familiar enough with the method used for calculation of the rank to correct this issue.  I have many similar examples in which the order of the equations in the matrix affects the calculated rank.
Best,
Phil

The library uses the number of non-zero SVD singular values to determine the rank:
return S.Count(t => !Math.Abs(t).AlmostEqual(0.0));
The SVD S values returned for these two matrices:
3.16228  1.41421  1.44814E-15
3.16228  1.41421  6.02763E-16
2.82843  1.41421  5.31593E-16
      2  1.41421  3.69661E-16
      2  1.41421            0
      2  1.41421            0
      2  1.41421            0
      2  1.41421
      2  1.41421
      2  1.41421
1.41421  1.41421

 3.4641  1.41421      1.41421
3.16228  1.41421  7.32201E-16
3.16228  1.41421  5.86484E-16
2.82843  1.41421  2.23119E-16
      2  1.41421            0
      2  1.41421            0
      2  1.41421            0
      2  1.41421            0
      2  1.41421
      2  1.41421
      2  1.41421
1.41421  1.41421```

For the first matrix, this value 1.44814E-15 is giving us the extra rank. Looks like there is a bug in our managed SVD implementation.

Curious, I also tried the MKL provider. It gives a rank of 25 for both, but still slightly different values for the ones near zero.

```3.4641  1.41421      1.41421
3.16228  1.41421  7.85479E-16
3.16228  1.41421  5.78511E-16
2.82843  1.41421  4.60691E-16
      2  1.41421    3.883E-16
      2  1.41421  2.73306E-16
      2  1.41421   2.2231E-16
      2  1.41421  5.98369E-17
      2  1.41421
      2  1.41421
      2  1.41421
1.41421  1.41421

 3.4641  1.41421      1.41421
3.16228  1.41421  6.66488E-16
3.16228  1.41421  5.04501E-16
2.82843  1.41421  4.83482E-16
      2  1.41421  3.65394E-16
      2  1.41421  3.18832E-16
      2  1.41421  2.30109E-16
      2  1.41421  1.80545E-16
      2  1.41421
      2  1.41421
      2  1.41421
1.41421  1.41421```

That is interesting.  I just switched the program to use the MKL provider and ran through about 20,000 matrices.  The behavior changed, and this particular example is now calculated properly, but there are still ~2500 examples in the set that are being calculated improperly (always high by 1).  I am guessing both algorithms suffer from the same issue, the nearzero has a threshold that is too low.  Unfortunately, these ranks HAVE to be dead on for my purposes.  Guess I'll have to take it all into matlab.  Thanks for looking into it.

Actually, is there any way to access, or can it be exposed, the precision used by AlmostEqual?  If I could just bump that up a bit, it might be enough to get these matrices to calculate properly.  In Matlab, this parameter is adjustable.

Actually, is there any way to access, or can it be exposed, the precision used by AlmostEqual?

I don't think so. You could submit a feature request.
As a workaround, you could create an extension method. maybe something like this:
 public static int Rank2(this Matrix<double> matrix)  {
    var s = matrix.Svd(false).S;
    return s.Count(t => !Math.Abs(t).AlmostEqual(0.0, 1e-14));
 }

That is exactly what I did, except I implemented the formula that matlab uses based on the machine precision and some other things.  Using that as a dynamic cutoff has solved all the issues.  It is a simple formula to implement (found here: http://www.mathworks.com/help/matlab/ref/rank.html?refresh=true): max(size(A))*eps(norm(A)).  It basically tries to compound the rounding errors based on the number of calculations needed to compute the SVD.  Thus, it raises the cutoff just a little from the AlmostEqual method. This seems to be the generally accepted way of drawing the cutoff.  If this is not how it is implemented currently, perhaps it should be.  Anyway, thanks for the help and a very useful package.

ah, that would be a nice improvement to the library's Rank method...What did you use? I'm not that familar with mathlab and couldn't figure out what  max(size(A)) does.  Thanks

max(size(A)) would just be Math.Max(A.RowCount, A.ColumnCount)

@pdcompto  Could you verify whether the issue is fixed with current master? It is for the example you provided, but you mentioned you have a larger test data set?

Sure thing.  I'll plug the new version in on Monday and give it a whirl.

Hey Guys,
I just downloaded the current master, but I have to be honest, I have no clue how to get this into my project.  This is the first time I have ever used a Nuget package and am very unfamiliar.  Is there a "how to" somewhere that has instructions on how to do this?  I looked through the readme's but didn't find clear instructions.

You can also build normal assemblies by running build.sh build (or build.cmd build) or with your IDE of choice, and then use them directly without NuGet.

Or of course I can just publish a pre-release.

Released as part of v3.8.0


Add a pre_init function to be called at the start of the reset handler

Implements https://github.com/japaric/cortex-m-rt/issues/17
I kept the implementation as close to DEFAULT_HANDLER as possible. Unsure whether the pre_init function should be unsafe or not.

Thanks for the PR @jcsoo.
Unfortunately it can't be accepted as it is because this crate must compile on beta / stable by default. However, this could land behind an opt-in feature.
#51 is another take on this problem that uses the .pre_init_array support in the r0 crate. One of the biggest questions about this feature is how to deal with peripheral singletons: if you take the peripherals in pre-init then you can't use them in main; and if you take the peripherals in pre-init then you have to use a static to pass them to main but that makes them globally visible, which is bad, and imposes synchronazation overhead (and maybe Option.unwraping).
Look at my latest comment in #51 for my current thoughts on this issue.
And yes pre_init functions need to be marked unsafe because accessing a static variable from them is undefined behavior (they are not initialized at that point).

Thanks for the response. I did this initial pull request against 0.4.0 because I haven't updated my code to 0.5.0 yet, but would it make sense for me to rebase it against the current version, gated against an opt-in feature?
I see now how the uninitialized statics require the pre_init function to be unsafe.
Regarding things like peripheral singletons, wouldn't that be the concern of the consuming crate? I can see how a crate using strict RAII at the peripheral level wouldn't simply be able to release the singleton, but crates using a different peripheral access philosophy (or simply using volatile access as is used for FPU initialization) wouldn't necessarily have that issue.
Would a better approach be to make __RESET_VECTOR a weak symbol and override at that level?

would it make sense for me to rebase it against the current version, gated against an opt-in feature?

I'd prefer not to add Cargo features that require nightly to enable. I think it's feasible to implement this feature without unstable features though.

Regarding things like peripheral singletons, wouldn't that be the concern of the consuming crate?

Yes, that's what I said in the other thread. That issue can solved in a downstream crate.

Would a better approach be to make __RESET_VECTOR a weak symbol and override at that level?

I think that's too dangerous. The user may omit the initialization of static variables causing UB in every function that uses static variables.

@jcsoo Is there a possibility you can update this in the near future so that it might be pulled in?

Hi @japaric, what is the status of this PR / similar feature? I am writing a bootloader in Rust, and I would need to do checks before anything else runs to jump to user code.
If there is something I can help with, give me a ping and I can take over this PR to move it forward.
The support for running some "pre init" code is crucial to many embedded programs.

Thanks for the original PR, @jcsoo. I'm going to close this in favor of #81 which has an implementation that works on stable.


Persist DB using RDS

Prep

[x] make RDS available (see one possible approach)

[x] verify / add RDS module to terraform in libero infrastructure
[x] set up a staging RDS
[x] ensure the cluster has network access to the RDS

[x] get password / host

[x] enable local access to the RDS

[x] enable local access to the database that lives inside the cluster

[ ] understand what needs to change in the Helm chart for the migration

[x] get secrets into hive.review repo

Migration

[ ] dump the data from the postgres pod
[ ] import the data into RDS
[ ] change Helm chart values to point at RDS
[ ] do the same for prod

Post Migration

[ ] adjust DB storage size?
[ ] lock down RDS security group to only allow traffic from cluster

To dump from postgres:
pg_dump -d [database-name] -U [user-name] -W -O > dump.sql

To read the dump into the RDS:
cat dump.sql | psql --host=[host-name] --dbname=[database-name] --username=[user-name] --password

The transaction log disk space seems to have stabilized:


Add email template constructs.

The email-template/handler uses the auth0.emailTemplates.update() API as all possible templates are created when the tenant is provisioned.  Default the syntax field to 'liquid' as that is the only possible value permitted at this time.

I changed urlLifetime to be a Duration type to be consistent with CDK and renamed from to emailFrom to prevent errors with Python. The new construct is live in version 1.14.0!


fix fromDateTime malform handling

allow malformed to return 0
allow null to return 0

Codecov Report

Merging #11258 (1817313) into master (9d7676e) will increase coverage by 0.00%.
Report is 16 commits behind head on master.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master   #11258     +/-   ##
=========================================
  Coverage    0.11%    0.11%
=========================================
  Files        2229     2155     -74
  Lines      119803   116803   -3000
  Branches    18126    17727    -399
=========================================
  Hits          137      137
+ Misses     119646   116646   -3000
  Partials       20       20

Flag
Coverage Δ

integration1temurin11
?

integration1temurin20
?

integration2temurin11
?

integration2temurin17
?

integration2temurin20
?

unittests1temurin11
?

unittests2temurin11
?

unittests2temurin17
?

unittests2temurin20
0.11% <0.00%> (+<0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed
Coverage Δ

.../pinot/common/function/DateTimePatternHandler.java
0.00% <0.00%> (ø)

...inot/common/function/scalar/DateTimeFunctions.java
0.00% <ø> (ø)

... and 104 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Skip processing modules with parse errors

This PR changes the Tree to Module conversion to be fallible, and makes it fail every time the tree contains errors.
The algorithm already skips modules that aren't loadable by the module resolver; this means that a module with errors will be just skipped.
This is acceptable because a tree with errors won't be executable by a runtime, and thus anything in it will be unreachable.
Closes #27.

I'm mostly cautious of this change because I'm not certain that the errors here are "safe" to skip.

I agree, I want to look more into what could go wrong here. Though I feel like this particular case, like many similar to it, might end up requiring a lossy compromise of sorts.

How do we know these are issues in the modules, rather than issues with our parser?

We don't -- unfortunately tree-sitter-javascript is our source of truth in that matter. If it is compliant to the spec it should correctly parse all valid JavaScript code. This may or may not be the case, I haven't investigated, but we don't have a lot of recourse either way.

And how do we make sure we take notice of these errors so we get the chance to fix them if necessary.

What we could do there is actually pointtree-sitter-javascript to a large number of modules, take a sample of the ones that have errors in them, and then ensure that the code is actually containing errors. Fwiw, this has been the case so far for all the trees I analyzed that were failing to parse.

Also JavaScript is notoriously lazy, so it's possible that a partially parsed module still enables a vulnerability to be called, right?

I don't have a definitive answer to that, but I think we could try to craft a script with errors in it and see whether any code gets executed.
My educated guess is that that's not going to happen because those parse errors happen at the AST level, and the tree that gets parsed by the interpreter is not really executable in any way. A bit of evidence towards that is that JavaScript has a feature called "hoisting" where declarations, even if they appear further down a scope, are always available from the top of the scope. So, for example:
function foo() {
  console.log(a)  // a exists already, prints undefined
  console.log(b)  // throws ReferenceError
  var a = 3
}

but if there was an error in between the logs and the declaration, the interpreter could not know that a is an existing reference; this means that the tree has to be evaluated before console.log(a) is ever run.
On the other hand, different runtimes could offer different properties: I'd expect a browser's runtime to be more lenient towards errors than node or deno.
I think we can hold off on this a bit while we figure out the specifics.

I'd just like to add that I've also found a lot of TypeScript modules that were named .js in my testing. I don't quite understand why this is happening but we do currently fail hard on those.

I'd just like to add that I've also found a lot of TypeScript modules that were named .js in my testing. I don't quite understand why this is happening but we do currently fail hard on those.

Might be worth investigating.


Reloading learner from saved predictor model files

Hi. Thanks for the awesome tool! I managed to get it to work as described in the tutorials. However, I'm using BERT with a huge dataset so one epoch takes hours. On top of that, I'm using Google Colab which has time limits for GPU use. Because of this, I was hoping to save the model, reload and then call learner.fit_onecycle again to continue the training for some more epochs.
I have a successfully saved the predictor files from a few epochs and I can reload it to make predictions. What I'm hoping to do now is get the learner class from it but looking at the source code, there's no way to do this outright. I moved to trying to load the model file itself and build the learner by calling ktrain.get_learner() again but ktrain.load_model() throws an error of

Unknown layer: TokenEmbedding

I've also thought about going through the entire process again up to building the model as prescribed then setting weights and getting learner:
model = text.text_classifier("bert", train_data = (xTrain, yTrain), preproc = preproc)
#Set model weights here using model.load_weights(pathToCheckpointFile)
learner = ktrain.get_learner(model, train_data = (xTrain, yTrain), batch_size = 12)

This feels kinda hackish though since I'm not using the saved model files. Will this have the same effect or am I missing something from the source code in building the learner from the predictor?

Thanks for your comments.  To re-create the Learner in order to continue training when logging back into Google Colab, you need the model and the training data at minimum, as ktrain inspects both to automate things  for ease of use.
When you call predictor.save, it saves the model (in addition to the Preprocessor instance).  So, assuming you saved the Predictor instance at the end of the initial training session, you can re-create the Learner instance as follows:
import ktrain
predictor = ktrain.load_predictor('/path_to_saved_predictor')
learner = ktrain.get_learner(predictor.model, train_data = (xTrain, yTrain), batch_size = 12)
# continue training here (e.g., learner.fit_onecycle)

Note that there is also the methods learner.save_model and learner.load_model, but these are intended to be used to save and reload models during interactive training (so you can go back to an earlier model if you end up overfitting).
Hope this helps.
P.S. The ktrain.load_model function (as opposed to learner.load_model) is actually a reference to the load_model function in Keras (which is used internally) and will probably be removed from ktrain namespace in future versions of ktrain.
You might also consider using DistilBert, which often has nearly the same performance but half the parameters using either the text_classifier API or te Transformer API.

Thanks for the prompt reply @amaiya ! Works like a charm! I guess I got lost in looking for a load_model function that would accept the saved tf_model.h5 file that I didn't notice predictor.model is exposed.
Also, thanks for the suggestions! Will look into them after!
Looking forward to future, leaner versions. Thank you for your work!

I am training a model using fasttext in Colab following this response but I'm getting an error. I saved the predictor like this:
predictor = ktrain.get_predictor(learner.model, preproc)
predictor.save(path)

Loaded it again:
predictor = ktrain.load_predictor(path)
learner = ktrain.get_learner(predictor.model, train_data = train, val_data = val, batch_size = 12)

And when I tried to train another cycle it failed. More precisely, upon running learner.fit_onecycle(2e-4, 1, class_weight=class_weights) I got the following error:
begin training using onecycle policy with max lr of 0.0002...
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-54-93fc30f9a17a> in <module>()
----> 1 learner.fit_onecycle(2e-4, 1, class_weight=class_weights)

18 frames
/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/autograph/impl/api.py in wrapper(*args, **kwargs)
    235       except Exception as e:  # pylint:disable=broad-except
    236         if hasattr(e, 'ag_error_metadata'):
--> 237           raise e.ag_error_metadata.to_exception(e)
    238         else:
    239           raise

ValueError: in converted code:

    /usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/engine/training_v2.py:677 map_fn
        batch_size=None)
    /usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/engine/training.py:2410 _standardize_tensors
        exception_prefix='input')
    /usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/engine/training_utils.py:510 standardize_input_data
        'for each key in: ' + str(names))

    ValueError: No data provided for "embedding_4_input". Need data for each key in: ['embedding_4_input']

Am I failing to follow the response correctly? What could the error be? Thanks in advance!

Hi @msclar I suspect that it is being caused by the way you're loading your data.  The fasttext model is not a pretrained model like BERT or DistilBert.  As a result, instead of using a preset vocabulary, it learns the vocabulary from the training data.  The embedding layers of the fasttext model are configured based on this original learned vocabulary.  If you reload a different training set from scratch, it will have a new vocabulary which will confuse the embedding layer.
If you follow the same steps you provided above but continue training using the same original training set (or a training set preprocesed using the same tokenizer learned from original training set),, the error does not occur.    It will also be avoided if you use a pretrained model like BERT or DistilBert.

I was caught by the downsides of using a notebook!! I did load the dataset fixing the random_state to get the same training set, but the variable train was referring to a dataset processed with DistilBERT in another part of my notebook.
Thank you for the swift reply, I only realized the bug because of your reply!

While training for NER ,my system errored at 10th epoch and training stopped. No specific  error written in logs. I have enabled checkpoint and have the hd5 files written for each epoch. I tried to load the 10th epoch file using the following line of code
learner = ktrain.load_model('../models/checkpoints/weights-10.hdf5')
received the following error
Traceback (most recent call last):
File "/home/user1234/miniconda3/envs/ktrain/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/hdf5_format.py", line 165, in load_model_from_hdf5
raise ValueError('No model found in config file.')
ValueError: No model found in config file.
While the checkpoints are written it does not write the "model_config", which the above code is trying to load , resulting in error.
Is there a way to retrain from where it last stopped. There is no final model file written and dont have .preproc file.

@sathish331977 : The checkpoint_folder argument saves only the weights of the model after each epoch, so use load_weights:
# recreate model from scratch
txt.sequence_tagger(...
# load checkpoint weights into model
model.load_weights('../models/checkpoints/weights-10.hdf5')
# recreate learner
learner = ktrain.get_learner(model, ...
# continue training here

@amaiya @sathish331977
Hi,
Could you please look into this issue.
learner=ktrain.get_learner(predictor.model, train_data=trn, val_data=val, batch_size=128) learner.fit(0.005, 1, cycle_len=20, checkpoint_folder='training_data_new/after_30')
with this i am getting this error.
`/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/func_graph.py in wrapper(*args, **kwargs)
971           except Exception as e:  # pylint:disable=broad-except
972             if hasattr(e, "ag_error_metadata"):
--> 973               raise e.ag_error_metadata.to_exception(e)
974             else:
975               raise
AssertionError: in user code:
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:806 train_function  *
    return step_function(self, iterator)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:796 step_function  **
    outputs = model.distribute_strategy.run(run_step, args=(data,))
/usr/local/lib/python3.6/dist-packages/tensorflow/python/distribute/distribute_lib.py:1211 run
    return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/distribute/distribute_lib.py:2585 call_for_each_replica
    return self._call_for_each_replica(fn, args, kwargs)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/distribute/distribute_lib.py:2945 _call_for_each_replica
    return fn(*args, **kwargs)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:789 run_step  **
    outputs = model.train_step(data)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:747 train_step
    y_pred = self(x, training=True)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/base_layer.py:985 __call__
    outputs = call_fn(inputs, *args, **kwargs)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/functional.py:386 call
    inputs, training=training, mask=mask)
/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/functional.py:517 _run_internal_graph
    assert x_id in tensor_dict, 'Could not compute output ' + str(x)

AssertionError: Could not compute output Tensor("dense_1/truediv:0", shape=(None, None, 66), dtype=float32)`

I am loading thr model using ktrain.load_predictor  and then using already trained model by predictor.model and got learner obj. so when i am further training i got the following error could you please look into this.

@sirisha-8:   You haven't provided enough information, as it's not clear what model you're using, what task  you're performing, or what TensorFlow version you're using, etc.   I've tested this on my end with transformers-based text classification and everything works.  If you still have trouble, please open a new issue with more details including a self-contained reproducible example, if possible.

@amaiya  sorry for the lack of info. I am using biobert model
model = txt.sequence_tagger('bilstm-bert', preproc, bert_model='monologg/biobert_v1.1_pubmed')
The task i am performing is NER.
Tensorflow version is 2.1.0
I have already trained for 30 epochs using learner.fit

@sirisha-8  I wasn't able to reproduce this issue and everything works fine for me.  You'll need to provide a self-contained, reproducible example on Google Colab.