fix: minor re-styling of the session view

Increase contrast between the session roles
Colorize short code blocks
Hide copy button on mobile, closes #84
Other minor styling enhancements

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


Update tvpassport.com_us.channels.xml

KTLADT1.us in rev.bs guide is showing an unrelated programming. I did not remove it since I was warned not to. Please remove to avoid conflict.


[BUG] Cannot find module '../build/Release/canvas.node'

Describe the bug
Getting this error on yarn start
(node:25502) [MODULE_NOT_FOUND] ModuleLoadError Plugin: flowise: [MODULE_NOT_FOUND] require failed to load /Users/testuser/Desktop/projects/code/flowiseai-local/packages/server/dist/commands/start.js: Cannot find module '../build/Release/canvas.node'
Require stack:

/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/canvas/lib/bindings.js
/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/canvas/lib/canvas.js
/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/canvas/index.js
/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/jsdom/lib/jsdom/utils.js
/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/jsdom/lib/jsdom/living/events/MouseEvent-impl.js
/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/jsdom/lib/jsdom/living/generated/MouseEvent.js
/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js
/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js
/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/jsdom/lib/jsdom/living/interfaces.js
/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/jsdom/lib/jsdom/browser/Window.js
/Users/testuser/Desktop/projects/code/flowiseai-local/node_modules/jsdom/lib/api.js
/Users/testuser/Desktop/projects/code/flowiseai-local/packages/components/dist/src/utils.js
/Users/testuser/Desktop/projects/code/flowiseai-local/packages/components/dist/src/index.js
/Users/testuser/Desktop/projects/code/flowiseai-local/packages/server/dist/utils/index.js
/Users/testuser/Desktop/projects/code/flowiseai-local/packages/server/dist/index.js
/Users/testuser/Desktop/projects/code/flowiseai-local/packages/server/dist/commands/start.js
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>/Users/testuser/Desktop/projects/code/flowiseai-local/packages/server/bin/run
module<EMAIL_ADDRESS>task: toCached
plugin: flowise
root: /Users/testuser/Desktop/projects/code/flowiseai-local/packages/server

To Reproduce

Updated to main branch
yarn install && yarn build && yarn start
Got this error after yarn start

Same here, did you find a fix?

fixed by clearing node_modules

I will delete grey-out folders in Flowise and re-install Flowise.

Flowise\node_modules
Flowise\packages\[components/server/ui]\.turbo
\Flowise\packages\[components/server/ui]\dist
\Flowise\packages\[components/server/ui]\node_modules


RedisChatMessageHistory encountering issues in Redis standalone mode on Windows.

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
from langchain_community.chat_message_histories.redis import RedisChatMessageHistory
try:
message_history = RedisChatMessageHistory(
session_id="12345678", url="redis://localhost:6379", ttl=600
)
except Exception as e:
abort(500, f'Error occurred: {str(e)}')
retriever = pdf_docsearch.as_retriever(search_type="similarity", search_kwargs={"k": 4})
memory = ConversationBufferWindowMemory(memory_key="chat_history", chat_memory=message_history,
input_key='question', output_key='answer',
return_messages=True, k=20)
Error Message and Stack Trace (if applicable)
Error occurred: 'cluster_enabled'"
Description
I'm working on implementing long-term memory for a chatbot using Langchain and a Redis database. However, I'm facing issues with the Redis client connection, particularly with the redis.py file where cluster_info seems to be empty in standalone mode
System Info
Python 3.10
langchain-core 0.1.43
langchain-community 0.0.32

any updates on this? I am facing the same issue


infinite scroll with infinite loop

Dear, @imakewebthings
Waypoints Infinite is not working properly when It reaches to the end of the page then it looks for data from the first page and continually repeat again and again.
thanks

@radin-reth Can you share with me a page where this is happening?

hi @imakewebthings
http://iwstaging.yoolk.com/announcements?alias_id=kh54997&color=blue&locale=en&theme=business_pundit

@radin-reth Is that page still exhibiting the problem you've described? Because I don't see that happening. Is it browser specific?

hi @imakewebthings , just to solve the current problem I have just customized some of your code for internal use.

@imakewebthings this problem occurs on my current project too, sometimes. I'm working on reproducing it reliably, though.

@imakewebthings is there some kind of resolution for this problem?

@CHH I couldn't get any further information from @radin-reth and he seems to have solved his issue in some way. If you have the reproduction you were working on nailing down feel free to open another issue.

@imakewebthings ok

Excuse me, guys!
Thanks for involve, Actually, I am working on a private repo of one company that's why I create a new gist about what I have changed @imakewebthings  code in order to solve my problem waypoints infinite scroll with infinite loop

I'm having this issue also. I have narrowed the problem down to window size. (On a large iMac screen) If I have the window smaller than the initial number of items on the page, then it loads the next (3) pages items just fine, but if the window is taller than the (3) pages' number of items then it loops back to the first page's items and appends them infinitely underneath the items that I expected to load.
Hope that makes sense, kind of hard to explain. Basically, I think it only happens when the window is taller than the number of items available to load.


feat: add tiny dream stable diffusion support

Description
This PR adds backend support for tiny dream
An embedded, Header Only, Stable Diffusion Inference C++ Library
This means that we can run a stable diffusion model without the issues on opencv2 or abseil dependencies.
Two companion repos appeared:
https://github.com/M0Rf30/go-tiny-dream
https://github.com/M0Rf30/tiny-dream-bins for model bins (they are the same as stable diffusion, the company asks for money on models, maybe I can patch the .hpp at build time and avoid waste of space?)
Notes for Reviewers
Here the model https://github.com/go-skynet/model-gallery/pull/47
Signed commits

[x] Yes, I signed my commits.

I like it !  however it is better if it waits for https://github.com/mudler/LocalAI/pull/1279 - the PR is moving backends to the new folder structure to clean things up a bit after the new backend changes, and as soon as is it's green should be merged already

I rebased on master. need only to spot this one remaining issue on failing linux test in ci

looking good here, just waiting for CI to pass - thanks @M0Rf30 for taking the extra effort of adding tests for it!

Merge of this
https://github.com/go-skynet/model-gallery/pull/51
should also fix linux tests

from the logs it looks like we exhaust the machine's resources. Public runners don't have big specs, maybe we can keep the test separated or try to run only that one in the self-hosted runners? @M0Rf30

Seems fair to me. I rebase and push

Tests live here
https://github.com/mudler/LocalAI/pull/1410
I don't know how to choose between self-hosted and public instances so I made two different commits

@mudler  merry christmas. now is ready to go.

@mudler merry christmas. now is ready to go.

merry xmas to you too @M0Rf30 !


Failed to run unit test function

I have a simple Golang project and a couple of lines of unit test function. When I run: lua require("neotest").run.run(), it fails with:
directory ../../local/uavm outside main module or its selected dependencies.

I have followed the installation instructions of neotest and neotest-go.

Hi @tubzby, issue caused by Go requirements itself itself. You have to run tests from module root directory

Seems that it's not working properly inside a soft link directory, it works after I cd inside the link destination directory.

I mean it is how underlying tool, go test, works. You can check it by yourself running go test {your_dir} and compare results with neotest-go.
I don't see what can we do on an adapter side

@sergii4 got it!

@tubzby I reopen the issue, I assume we have to resolve it to make it easies to use for broader circle of people. I am working on it


Any interest in reviving this and moving it into the mongoid org?

Coming from https://code.dblock.org/2018/08/25/storing-timestamps-in-mongodb-with-mongoid.html.
I'd be interested in moving this gem into the mongoid organization, merging #2 and adding support for newer versions of Mongoid. I'll do all the work.
@sporkd?

Hi @dblock. Thanks for the offer.  I have not been following the progress of mongoid, so not sure if there's overlap. But If you think there's a need and have the desire and time. I'll give you rights to the repo and let me know if you need anything.

Thanks @sporkd! If you're ok to move it, you'll have to transfer it to me first and I'll immediately move it to the mongoid org. You need admin rights on both for that to work.

Also my rubygems email is dblock at dblock dot org, for releases and such.


Update/Delete mapdata cache on Publication/Deletion

This is particularly desirable for large Datasets and Collections, the public pages for which may otherwise hang or timeout on first visiting them.
Triggering mapdata_task example (in datasets.views.DatasetMetadataView):
    if ds.public:
        print(f"Updating mapdata cache (if required).")
        task = mapdata_task.delay('datasets', ds.id, 'standard', 'refresh')

If the Dataset or Collection needs_tileset, trigger tileset generation instead (this will also take care of the mapdata cache.
On Update:

[ ] Dataset
[ ] Collection Dataset
[ ] Collection Place

On Delete (delete both 'standard' and 'tileset' cache):

[ ] Dataset
[ ] Collection Dataset
[ ] Collection Place

Test on DEV with these (which otherwise timeout on attempted page load):
- [ ] https://dev.whgazetteer.org/datasets/16/places
- [ ] https://dev.whgazetteer.org/datasets/1285/places

Incorporated in #221


error in eval_model

Hello,
Could you please provide the exact commands to replicate the curves using the pretrained models in compressai?
Using the pretrained models in compressai, I wanted to replicate the RD curves shown in the README.md

I tried python -m compressai.utils.eval_model -h and python -m compressai.utils.eval_model --help to see how to execute, but it returned the following error.
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/yoshitom/.local/share/virtualenvs/compressai-doaxpoXd/lib/python3.6/site-packages/compressai/utils/eval_model/__main__.py", line 303, in <module>
    main(sys.argv[1:])
  File "/home/yoshitom/.local/share/virtualenvs/compressai-doaxpoXd/lib/python3.6/site-packages/compressai/utils/eval_model/__main__.py", line 254, in main
    args = setup_args().parse_args(argv)
  File "/home/yoshitom/.local/share/virtualenvs/compressai-doaxpoXd/lib/python3.6/site-packages/compressai/utils/eval_model/__main__.py", line 217, in setup_args
    help="model source", dest="source", required=True
  File "/usr/lib/python3.6/argparse.py", line 1716, in add_subparsers
    action = parsers_class(option_strings=[], **kwargs)
TypeError: __init__() got an unexpected keyword argument 'required'

OS: Ubuntu 20
Python: 3.6.9
compressai: 1.1.2
Thank you!

Hi, it's probably an error with your python version and the argparse api.

Hi @jbegaint
Thanks for the answer. Yes, it worked with Python 3.8.5.
I thought it should work with Python 3.6.9 as the README says

CompressAI supports python 3.6+ and PyTorch 1.4+.

Can you make it compatible with Python 3.6 until compressai supports Python 3.6?

Hi @yoshitomo-matsubara , this should be fixed in the latest release.

Hi @jbegaint,
Having updated compressai version (v1.1.3), I confirmed that it works with Python 3.6.9.
Thank you for fixing it!


Endless Scrolling both directions

Hi,
Is it possible to set up an endless scrolling feature which works in both directions? I'm looking for behaviour like this:

Pull down from top to trigger an asynchronous refresh of the adapter items.
Scroll down to view a certain number of items, then loading further items as required (e.g. a list of 200 items shows 50 initial items, then each time you scroll down you get the next 'page')

I've been able to get the pull to refresh to work but I can't see a way to implement scrolling in the opposite direction too.

I think I've found my own answer. In the demo app is a method initializeSwipeToRefresh, so I should be able to use something similar for my pull to refresh, and then use endless scroll to do the item paging.

@samcgarry, correct. Check the demoApp for code snippets.


Question regarding about CutSelectAgent.

When I try the following code:
env.reset()
cutsel_agent = CutSelectAgent(
env.m,
pointer_net,
None,
0.5,
device,
'stochastic',
None,
'no_token'
)
_ = env.step(cutsel_agent)
There  is a problem: TypeError: Argument 'cutsel' has incorrect type (expected pyscipopt.scip.Cutsel, got CutSelectAgent). I don't know how to fix it.  I would be very grateful if you could help.

You need to install the pyscipopt I provided (please see Readme.md for link to my used pyscipopt).


Cryptic error messages on update_with_media emthod

I am getting "You cannot send messages to users who are not following you" messages when using update_with_media method. Here's the code sample:
 begin
      result = client.update_with_media(tweet, file)
      rescue Twitter::Error::Forbidden => e
        raise "Twitter::Error::Forbidden #{e.message}."
      end
end

This is super strange since I am not sending any messages. The error is inconsistent and I don't see it most of the time. Any idea what might be the cause?

As it turns out, the tweets that begin with an "M. " are treated like direct messages. More here https://twittercommunity.com/t/getting-a-you-cannot-send-messages-when-posting-a-tweet/81373

👍 glad you were able to get to the bottom of it @andreitr


User Transactions

Hello. It is possible to get users transactions? I didn't find function for that.
Fervi

use SteemAccount getAccountHistory to get users history which includes upvotes/resteem/transaction and everything that a user does
https://github.com/davidkevork/steemphp/blob/master/src/SteemPHP/SteemAccount.php#L85


Sorcery excepts the same email/username more than once

Create an account with<EMAIL_ADDRESS>and create another account with<EMAIL_ADDRESS>Sorcery will allow this. Case should not matter for email addresses (nor username if used for login/account creation purposes).
Furthermore, user.downcase_username_before_authenticating should be true by default (or at least set to true should also impact account creation).
For anyone looking for a work-around, I fixed this by setting user.downcase_username_before_authenticating to true in config/initializers/sorcery.rb and @user.email.downcase! to users_controller/create

:+1: for enabling this by default.

:+1:

Hi @eliajf!
I agree with you, we can switch this setting to true by default. What's more, if someone wants to implement it, we can add a before_validate callback, that would downcase email/login before saving record (only if the downcase_username_before_authenticating is set to true). This would prevent the first problem you've mentioned

That's fair and is exactly what I implemented myself. I'd urge you to set
downcase_username_before_authenticating to true by default as well. Thanks
for being open to suggestions.
On Wed, Sep 23, 2015 at 9:44 AM, Grzegorz Witek<EMAIL_ADDRESS>wrote:

Hi @eliajf https://github.com/eliajf!
I agree with you, we can switch this setting to true by default. What's
more, if someone wants to implement it, we can add a before_validate
callback, that would downcase email/login before saving record (only if the
downcase_username_before_authenticating is set to true). This would
prevent the first problem you've mentioned
—
Reply to this email directly or view it on GitHub
https://github.com/NoamB/sorcery/issues/712#issuecomment-142658503.

--
Elia Freedman
Infinity Softworks
(503) 939-4379
www.infinitysw.com
@eliajf


How to use encryption with this library?

How can I use encryption with this library?

Seconding this question, I'm trying to use SQLCipher with this via replacing the SQLite3.h / c amalgamation files but I'm having 0 luck figuring out where to go and am pretty stuck.
As an example, dropping in SQLite's 3.4.2 amalgamation files created via their standard recommendation gives me a whole bunch of errors of this nature:
[ 88%] Building C object sqlite3/CMakeFiles/sqlite3.dir/sqlite3.c.o
/Users/sj/Code/sandbox/vendor/SQLiteCpp/sqlite3/sqlite3.c:34726:42: error: use of undeclared identifier 'close'
  { "close",        (sqlite3_syscall_ptr)close,      0  },

here is how you can use encryption:
SQLite::Database db(utf16_to_utf8(dbName), SQLite::OPEN_READWRITE); 	db.key(secretKey);
you must have a version of sqlice.c which has encryption in itself.


SEC: theme node packages mem, lodash.mergewith updated

This PR adds package.json resolutions, to avoid security warnings about issues in the Node packages for the Theme we are using.
Easy fix. Benefit: avoid warnings about security issues reported in #358

@aslakhellesoy Could you have a look at this, please? I'm not familiar with these particular tools.

I'm all for fixing security issues. @olleolleolle Have you tried building the site locally to see if anything breaks? Netlify doesn't build forks afaik, so that prevents me from easily checking it.

My philosophy on these kinda changes is if they pass CI and doesn't break anything merge it in. We have a revert ability.

Well said @luke-hill.
@olleolleolle the resolutions feature is only supported by yarn (not by npm). People using npm will still see warnings.

@aslakhellesoy I'm not aware of any equivalent to "second-order dependency hints" (my description of what resolutions does) for npm. Is there one?

Ah, and about warnings displayed: this repo has yarn.lock (which GitHub can inspect) but no package-lock.json.
(I was mostly referring to the big yellow banner on the GitHub repository, about security warnings.)


fixed typo

Fixed typo: "then" -> "the"
Fixes #155

Thanks for the fix. I've made the change in our private repo, which will then be pushed live, so closing this PR. Thanks again for your contribution.


[SMP on target test] Only one task enter suspendall

[SMP on target test] Only one task enter suspendall
Description

Test case "Only one task enter suspendall" implementation.
Test Steps

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Will create another PR to consist of all SMP on target test implementations.


[FR] Add alias and tag support to models in UC OSS

Is your feature request related to a problem? Please describe.
Tags and aliases are not currently supported in UC OSS.
Describe the solution you would like
Implement the alias endpoints and tag functionality to support this feature.
Additional context

Hi @kriscon-db  i would like to take up this feature if it is not started yet


Wrong version printed

Hello,
When I do morphling --version , I always get 0.0.1 also I installed<EMAIL_ADDRESS>;)

Yeah I'm aware of that. You can submit a PR if you like to fix it :)
Valentin Roudge
Co-founder / CTO
+33 6 51 48 31 28
www.180gram.io
2017-11-07 11:54 GMT+01:00 Anne<EMAIL_ADDRESS>
Hello,
When I do morphling --version, I always get 0.0.1 also I installed
<EMAIL_ADDRESS>;)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/leboncoin/morphlingjs/issues/4, or mute the thread
https://github.com/notifications/unsubscribe-auth/AF5IvxDYd8VYd5vQwmd7BFabV1oHp4HXks5s0DbYgaJpZM4QUml9
.


Guide on setting up and using Crashlytics

Crashlytics setup and distribution

Hi,
I'm working on this :wink:

Great! See contribution guidelines here https://github.com/codepath/android_guides/wiki/Contributing-Guidelines#creating-topic-drafts-online and post your draft here when ready for review

Hi again,
Here is draft version.
This is my first time, so please be patient :wink:. Codes come from official documentation.
Please feedback if everything is ok.

@DonMat This is a great start, thanks! Draft is now on the wiki here: https://github.com/codepath/android_guides/wiki/Crash-Reporting-with-Crashlytics with an attribution to your original authorship at the bottom.
Can a few others please look through this guide and help clean up any typos, fix the heading structure as needed, etc.
Thanks again!


Creating App Engine-based cloud backends is not supported in Android Studio 3.0

As stated here. It goes on to state that "To create a new mobile backend, you can use Firebase." The rubric requires a GCM so an installation of Android 2.3 is therefore also required. Perhaps that should be stated in the project README or perhaps the rubric should allow for a Firebase backend?

#68 might solve this issue.


Add package auto discovery for laravel 5.5+

Laravel 5.5+ ships with auto package discovery which automates the addition of ServiceProviders and Aliases to the config/app.php. This pull request adds this feature to this package to enable users running on Laravel 5.5+ enjoy it. Users on older versions can however still use the package but must still add the Providers and Aliases to the config/app.php file.

This is a good one. Good job Norris


[Release 1.10 only] Fix Redis Binding Get Op for unknown keys

Description
The Redis SDK returns a special value redis: nil when a key does not exist. This was not handled correctly by the binding.
It was already fixed in Dapr 1.11, but not in Dapr 1.10.X
Fixes #3140

Note that we refer to the string redis: nil vs a different constant because we use code that works with both the Redis v8 and v9 SDKs and using this string here is compatible with both SDKs. Of course this already works in Dapr 1.11.X and 1.12 RC / master. We are merely backporting a fix here.


Feat/refactor

This pull request aims to enhance Base framework in many ways.
End style enhancements

use a more elegant color theme
scale the font sizes using an exponential equation
change focus state to use box-shadow not outline
better tooltips style and using
restyle button element
restyle select extension
update checkbox and radio button style
general style improvements

Development enhancements

remove colors variable cl prefix
change variables name to follow suite conventions
add _unit-min-max mixin
each element style generate by a mixin function
sperate each component to its file
overall code improvements
change inputGroup class name to input-group
consistent variables for generating elements' modifiers
drop support for CSS variables
improve  core elements responsive function to generate clean output
general style improvements

Wrong branch merge, so it's deleted


PPC 2.0 Feature Flag & POC

With the update to the PPC (moving, reorganizing, adding more nuanced checks), we would be well served to refactor the structure of the checklist code base to make it easier to digest and start making perf improvements that can be gradually bettered.
This means the 2.0 version of the checklist can be feature flagged which will make for a better release candidate as everything for the 1.9. release of PPC is tied together and impossible really to do in isolation.
This ticket is for the feature flag of PPC 2.0 as well as proof of concept/starter code and new architecture of the revamped checklist.
Acceptance criteria:
new feature flag
poc of ppc update structure

This duplicated itself i think? same as #7965


Poetry ignores extras in dev-dependencies

[x] I am on the latest Poetry version.

Yes, Poetry 0.12.10

[x] I have searched the issues of this repo and believe that this is not a duplicate.

I believe this is similar to https://github.com/sdispater/poetry/issues/129 but not related. That one involves installing a package with different extras depending on the mode. This involves installing extras that only exist for dev-dependencies.

[x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

No exception occurs.

OS: macOS 10.13.16 build 17G65

Poetry version: 0.12.10

Link of a Gist with the contents of your pyproject.toml file: same as below, see https://gist.github.com/arxanas/b18be992384c105b0163691c63549159

Issue
Expected behavior: having optional packages in dev-dependencies allows them to be installed with poetry install --extras.
Actual behavior: having optional packages in dev-dependencies does nothing when trying to invoke poetry install --extras.
I want to have extras that are installable as dev-dependencies. In particular, I would like to make it possible install the fuzzing system for my project. However, it depends on Cython, which is heavyweight, and not something I would like to be installed by default when setting up the development environment.
Therefore I created a pyproject.toml like this, with the optional dependencies cython and python-afl, and the fuzz extra that would install both:
[tool.poetry]
name = "poetrytest"
version = "0.1.0"
description = ""
authors = ["Waleed Khan<EMAIL_ADDRESS>
[tool.poetry.dependencies]
python = "^2.7"

[tool.poetry.dev-dependencies]
pytest = "^3.0"
python-afl = {version = "^0.7.1",optional = true}
cython = {version = "^0.29.2",optional = true}

[tool.poetry.extras]
fuzz = ["cython", "python-afl"]

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

But when I try to install the fuzz extra, no packages are installed:
$ poetry install --extras fuzz
Installing dependencies from lock file

Nothing to install or update

  - Installing poetrytest (0.1.0)

If I move the optional dependencies to dependencies instead of dev-dependencies like this:
[tool.poetry]
name = "poetrytest"
version = "0.1.0"
description = ""
authors = ["Waleed Khan<EMAIL_ADDRESS>
[tool.poetry.dependencies]
python = "^2.7"
python-afl = {version = "^0.7.1",optional = true}
cython = {version = "^0.29.2",optional = true}

[tool.poetry.dev-dependencies]
pytest = "^3.0"

[tool.poetry.extras]
fuzz = ["cython", "python-afl"]

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

Then it works:
$ poetry install --extras fuzz
Installing dependencies from lock file

Package operations: 2 installs, 0 updates, 0 removals

  - Installing cython (0.29.2)
  - Installing python-afl (0.7.1)
  - Installing poetrytest (0.1.0)

But this is a problem because my actual project does not have these dependencies, even as extras.

@sdispater should there be an extra section for [tool.poetry.dev-extras]?


Add a simple Travis script to the starter template.

Is this instead of https://github.com/flutter/flutter/issues/2267 ?  @abarth is probably our most travis-savvy.

Is this instead of #2267 ?

That ticket is to condense the contents of this travis.yml to something like language: flutter. So this is like step 1.

To make this work smoothly, we'll probably need to start recommending a technology for developers to use to manage their git dependency on Flutter...

/cc @devoncarew

You might want to add a few more comments to the the travis file, to break it up and explain what things are doing. This guy's a good example of what I mean: https://github.com/flutter/oss_project_template/blob/master/.travis.yml
I also tend to separate out the script from the travis metadata file itself - it makes things easier if the script  ends up doing a lot. So the .travis.yml file would just point to something in tool/: https://github.com/flutter/oss_project_template/blob/master/tool/travis.sh.

Convinced this approach is too simplistic. Closing. Instead, will add this to a simple project I was using to track regressions in precompiled application builds.

FWIW, this is what I used in my flutter project's travis script: https://github.com/Hixie/mahogony-staircase/blob/master/tool/travis.sh
(I don't solve the "which branch do I track" problem, intentionally, but it shows how I handled the "must be a peer directory" problem.)


Cannot save bookmarks

Hi,
everytime when I tried to save a bookmark I get the message:
TypeError: Cannot read properties of undefined (reading 'toFixed')
What did I wrong?
Greetings

I just spotted the issue. I had to add a check for when an extension is fetched, but it does not have a rating yet. I'll will push an update in the next few minutes.

Just pushed version 1.0.2 which should fix the issue you were experiencing. Let me know if you have any other troubles.

👍 Thank you very much for the fast fix.


How to edit an existing image?

Hi,
I cannot figure out how to edit/replace an existing image...
I know I could delete it and upload a new one, but this is not what I want to do. I'd like the existing image to show up inside the Image Dialog, then I click 'Upload', new image shows, then the button 'Insert' would be something like 'Replace', etc..
I figured this is possible but I don't know where to begin, could someone give some starting instructions?
Thanks in advance,
Ben

Hi @eightyfive,
At the moment CT doesn't provide support for editing/replacing an existing image. Replacing an existing image is high on my list (there's some discussion on the subject here: https://github.com/GetmeUK/ContentTools/issues/321 and here: https://github.com/GetmeUK/ContentTools/issues/91
I'm also planning on adding support to configure CT to support opening the image dialog for editing an image, though this wouldn't do everything required, you'd still need to put in the necessary backend code to provide CT with either the original image or with the current one as the base image (from there on it's really just like you're editing a new image from CT's perspective).

Hi Anthony,
Thanks for the swift reply. I'm closing this thread since this is already tracked in https://github.com/GetmeUK/ContentTools/issues/321.
Do you have any rough timeline in mind? Is there already something experimental I can have a look at?
(I'm looking for directions in order to try to implement it myself meanwhile)
Cheers.

Duplicate of https://github.com/GetmeUK/ContentTools/issues/321.


GROOVY-11306: Provide left/right shift operators for BitSet

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

Comparison is base (191231a) 68.5311% compared to head (6cfd24c) 68.5320%.
Report is 8 commits behind head on master.

Additional details and impacted files

@@                Coverage Diff                 @@
##               master      #2053        +/-   ##
==================================================
+ Coverage     68.5311%   68.5320%   +0.0009%
- Complexity      29167      29177        +10
==================================================
  Files            1422       1422
  Lines          113493     113490         -3
  Branches        19545      19548         +3
==================================================
- Hits            77778      77777         -1
+ Misses          29177      29174         -3
- Partials         6538       6539         +1

Files
Coverage Δ

.../codehaus/groovy/runtime/DefaultGroovyMethods.java
73.5705% <100.0000%> (+0.0705%)
:arrow_up:

... and 11 files with indirect coverage changes


:robot: Triggering CI on branch 'release-next' after synching to upstream/main

/test 4.13-images

/test 4.13-images

/test 4.13-images

OCF Webhook is merging this PR


[Automated] Update eventing-kafka-broker-eventing-kafka nightly

/assign @knative/delivery-wg-leads
/cc @knative/delivery-wg-leads
Produced via:
for x in channel-crds.yaml; do
  curl https://storage.googleapis.com/knative-nightly/eventing-kafka/latest/$x > ${GITHUB_WORKSPACE}/./third_party/eventing-kafka-latest/$x
done

Details:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project data-plane: Execution default-clean of goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean failed: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-clean-plugin:jar:2.5 -> org.codehaus.plexus:plexus-utils:jar:3.0: Failed to read artifact descriptor for org.codehaus.plexus:plexus-utils:jar:3.0: Could not transfer artifact org.sonatype.forge:forge-parent:pom:5 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/sonatype/forge/forge-parent/5/forge-parent-5.pom: Read timed out -> [Help 1]

Infra
/retest


feat(ssh): allow to use pubkey auth

What changes are being made and why?

:wave:
SSH plugin command was missing authentication with asymmetric keys. I added an option to determine which option will be used in the SSH command (PASSWORD vs PUBLIC_KEY), with the ability to give a private key and a passphrase for it.
Moreover, JSch has been replaced by this fork. It's a drop-in replacement, with enhanced capabilities, especially in cryptography. Original version was only able to run ssh-rsa keys, which is a method deprecated nowadays in OpenSSL, and even more, it's disabled by default. (see here).
Based on my light research, this lib wasn't used by any other component, meaning it shouldn't impact other plugins. A little note here to talk about available algorithms, this lib will load various (most commons) algo depending on the java version is it built with (doc). If I remember well, Kestra must be built & run with at least java 17, so it should be good :D
How the changes have been QAed?
I'm running a simple docker-compose as described here, with the below flow and this additional docker compose service:
services:
  openssh-server:
    image: lscr.io/linuxserver/openssh-server:latest
    container_name: openssh-server
    hostname: openssh-server #optional
    environment:
      PUBLIC_KEY: ${ED255_19_PUB_KEY_HERE}
      PUID: 1000
      PGID: 1000
      TZ: Etc/UTC
      LOG_STDOUT: true
      PASSWORD_ACCESS: true
      USER_PASSWORD: password
    ports:
      - 2222:2222
    restart: unless-stopped

# Run the plugin with the two methods: password, public_key
id: hello-world
namespace: company.team
tasks:
  - id: "command"
    type: "io.kestra.plugin.fs.ssh.Command"
    host: openssh-server
    port: "2222"
    authMethod: PUBLIC_KEY
    username: linuxserver.io
    privateKey: ${ED_KEY}
    commands:
      - "touch i_was_here"
  - id: "command-password"
    type: "io.kestra.plugin.fs.ssh.Command"
    host: openssh-server
    port: "2222"
    authMethod: PASSWORD
    username: linuxserver.io
    password: password
    commands:
      - "touch i_was_here"

Setup Instructions

Generate key ssh-keygen -t ed255_19 -f keypair -P "" -N ""
Create a simple SSH server (see above)
Create flow like above
Run it, enjoy

Hi, thanks a lot. Overall it looks good, I suggest some small code changes to make it coherent with the way we declare plugin properties.

Thanks for the review, I applied the changes

@loicmathieu Tests should now be passing properly :)


Add EnumShape

Steps:

[ ] back

[ ] GongEnumShape.go, add the GongValueEntry struct and a slice of GongValueEntrys to the GongEnumShape
[ ] Classdiagram, add / remove GongEnumShape
[ ] GongEnumImpl, allready exist, OnAfterCreate to implement
[ ] GongValueEntryImpl

[ ] front

[ ] display Rect for enum shape and values

Problem with the addition of a gong enum on the diagram.
The GetNodeBackPointer has a nil gong_instance. This means the code was unable to find he instance from the node for gong enum


New VR fund on pandemics

Yes, I copy pasted from the recent one, will make the changes.
And having a full template somewhere do sound good :+1:

@LianeHughes and done!


Added code formatter with a pre-commit tool

Added prettier + husky + lint-staged

@marcelometal thanks for the contribution, but we're still reviewing some of our code styles, and we don't think using prettier is the direction we want to follow. We have a specific code style we're trying to implement and using an opinionated tool won't help us with that. For example, we want to maximize visualization for wider screen sizes with longer line lengths.
There are some other details, like enforcing formatting on commit time that could generate larger diffs than what we want, like your own commit, with 86 modified files. This messes a lot with the file history, and we don't believe this large changeset will be helpful.
Last, but not least, we're splitting the project codebase into separate repositories, mostly focused on a given feature set. The new repositories will share code style and other settings, but most of the code from this repository will be moved away. So, it doesn't make much sense to accept this PR right now.


Not all currencies work

Hello, I Have added the Fixerio and made the adjustments on the backend in configuration, and then went to manage currency rates to import, but most of the currencies don't get retrieved. Can you help, please?

The only rates which work are those published by the European Central Bank, as Fixer requires the ECB rates in order to function.
http://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html


dbeaver#35344 Revisions made to the Brazilian Portuguese translation.

Pull request associated with issue #35344
Thanks!

Whoops, now I've noticed, Resource Bundle may have touched some other language files.
These may be excluded:
plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/core/CoreResources.properties
plugins/org.jkiss.dbeaver.data.transfer/OSGI-INF/l10n/bundle_ja.properties
plugins/org.jkiss.dbeaver.data.transfer/OSGI-INF/l10n/bundle_ko.properties
plugins/org.jkiss.dbeaver.data.transfer/OSGI-INF/l10n/bundle_ru.properties
plugins/org.jkiss.dbeaver.ext.oracle/OSGI-INF/l10n/bundle.properties
plugins/org.jkiss.dbeaver.ext.oracle/OSGI-INF/l10n/bundle_ja.properties
plugins/org.jkiss.dbeaver.ui.app.standalone/OSGI-INF/l10n/bundle_ru.properties
Sorry about that.

Thank you for contribution! We'll review your PR and let you know, if some changes are needed.


Towards #9: Document branch-io/v1

Branch provides very helpful documentation: https://help.branch.io/developers-hub/reference/attribution-api

The hardware_id property can be the IDFA or IDFV on iOS, or the ANDROID_ID on Android. According to Branch's Attribution API documentation:

Property
Data Type
Description
Example

hardware_id
String
hardware_id	String	REQUIRED In iOS, populate with the IDFA if it's available, otherwise fallback to IDFV. On Android, populate with the ANDROID_ID (hardware id). If no device ID is available, do not include in request.
iOS: "D5B89252-FCF8-4065-88FC-B70F49186988" Android: "fae098e4605e79c3"


Why React Native SDK is based on JS SDK?

Hello Amplitude!
What was the reason to implement react-native SDK on top of JS SDK? Probably it would be more correct to implement bridges around native SDK?
I worry that conditions might lead to possible issues in both browser/react-native. I should also mention that it's quite uncomfortable to exclude react-native dependencies from the package (not super bad, but not good).
Is it a temporary workaround or you are going to invest more in that solution?
Connected issues:
https://github.com/amplitude/Amplitude-JavaScript/issues/207 - dependencies
https://github.com/amplitude/Amplitude-JavaScript/issues/222 - features
https://github.com/amplitude/Amplitude-JavaScript/issues/226 - features

Thanks for your feedback! We will discuss about this internally. Once we made a decision, we keep you updated!
If anyone else have the same request, please leave comments or just hit a emoji reply.
Thanks.

I would like to know if there is actually a way to send events from a react-native application. The document in Amplitude "React Native SDK" is inaccurate and people from support has not been able to give me a precise way to use that SDK in my application.
Did you @alexmbp were able to import amplitude-js and issue an amplitude.logEvent in a ReactNative application?

@nestorgm Sorry for the inconvenience! Are you talking about this one?
https://help.amplitude.com/hc/en-us/articles/360025220532-React-Native-SDK

Yes.

@nestorgm Where of this doc got you stuck? Could you give us more details?

Well. I'll  try to explain myself.
First I will say that, in the process, I created a workspace in the Amplitude service and have received events from an HTML API, from a web page, and from wrapped native Android and iOS. Those where made as a reference and to be sure that events were traveling from my site to Amplitude's workspace.
Following that document, in my React Native application I added amplitude-js module. Then in the first screen imported it and issued the lines from example. That did'nt work.
First think made me suspect something was wrong, was the line
import amplitude 'amplitude-js'
instead of
import amplitude from 'amplitude-js'
Then i try to initialize the connection, sending my device api key, but i have to guess with lines as
amplitude.getInstance().init('26436d373f5efbc2abef4bf02e606a2b') and
amplitude.init('26436d373f5efbc2abef4bf02e606a2b')
because there were no more directions about how to do it.
In summary, I have made different intents in different ways but, none of they can send an event to reach Amplitude's workspace.
All of the examples and references that support from Amplitude have given me are about web pages, pure JavaScript or native code. I have not seen a simple piece of code from a real React Amplitude application using this SDK.

@nestorgm make sure you have installed https://github.com/react-native-community/async-storage. It plays an important role in sending events. It seems for me you have missed that step.
npm install --save react-native-device-info npm install --save @react-native-community/async-storage
@haoliu-amp I agree with @nestorgm that docs does not include minimal required setup. I installed that packages because I was debugging your code.

I should also mention that code quality around that SDK is quite poor. It misses a lot of required checks/throws that should happen when set up is not correct.
Besides that I can say that code base does not follow the most important design principles. Your functions stopped to have single responsibility. Functions name don't represent what they supposed to do.
For instance:
_saveCookieData
var _saveCookieData = function _saveCookieData(scope) {
  const cookieData = {
    deviceId: scope.options.deviceId,
    userId: scope.options.userId,
    optOut: scope.options.optOut,
    sessionId: scope._sessionId,
    lastEventTime: scope._lastEventTime,
    eventId: scope._eventId,
    identifyId: scope._identifyId,
    sequenceNumber: scope._sequenceNumber
  };
  if (AsyncStorage) {
    AsyncStorage.setItem(scope._storageSuffix, JSON.stringify(cookieData));
  }
  scope.cookieStorage.set(scope.options.cookieName + scope._storageSuffix, cookieData);
};

In some cases _saveCookieData does more than it's supposed to do. I mean it stores data in AsyncStorage.
It was probably right before adding ReactNative support (but I would argue even with that). I would say it should be something like:

React-Native support added lots of conditions in almost every SDKs method. I want to mention
init method where we have nested conditions: if AsyncStorage -> if DeviceInfo. It seems to me those 2 are required for react-native, so if they are not available - init method should throw.
I think you should try to think about some kind of dependency injection for cases like that:
    let osName = this._ua.browser.name;
    let osVersion = this._ua.browser.major;
    let deviceModel = this._ua.device.model;
    let deviceManufacturer = this._ua.device.vendor;

    let versionName;
    let carrier;
    if (BUILD_COMPAT_REACT_NATIVE) {
      osName = Platform.OS;
      osVersion = Platform.Version;
      if (this.deviceInfo) {
        carrier = this.deviceInfo.carrier;
        deviceManufacturer = this.deviceInfo.manufacturer;
        deviceModel = this.deviceInfo.model;
        versionName = this.deviceInfo.version;
      }
    }

You can create some device info provider that follows some interface (I will write using TypeScript pseudocode because it's easier to read.):
interface DeviceInfo {
  osName: string;
  osVersion: string;
  deviceModel: string;
  deviceManufacturer: string;
}

interface DeviceInfoProvider {
  getOsName: string;
  getOsVersion: string;
  getDeviceModel: string;
  getDeviceManufacturer: string;
  getComposedInfo: DeviceInfo;
}

class UserAgentDeviceInfoProvider implements DeviceInfoProvider {
  private readonly _ua = new UAParser(navigator.userAgent).getResult();

  public getOsName() {
    return this._ua.browser.name;
  }
  public getComposedInfo() {
    return { osName: this.getOsName(), ... };
  }
}

class ReactNativeDeviceInfoProvider implements DeviceInfoProvider {
  private readonly _ua = new UAParser(navigator.userAgent).getResult();

  public getOsName() {
    return Platform.OS;
  }
  public getDeviceManufacturer() {
    return DeviceInfo.getManufacturer();
  }

  public getComposedInfo() {
    return {
      osName: this.getOsName(),
      deviceManufacturer: this.getDeviceManufacturer(),
      ...
    };
  }
}

This approach allows to build very flexible SDKs. It's easier to test, because you can create provider with mocked data. It's easier to debug, you can find where is an issue in a provider or in a method that uses it.
I believe that you have 2 possible ways of SDKs future development:

Take a step back and think about architecture, create providers, inject more dependencies, throw if dependencies are not satisfied.
Start brand new SDK wrappers around native SDKs.

@alexmbp Thanks for all your feedback, really helpful for us. We had a discussion over option 1 and 2 few weeks ago, and will start doing option 2 later this year.

@haoliu-amp Thanks for letting me know! I appreciate it. Just curios - what approach has been picked for the flutter SDK?
@nestorgm have you been able to send events using SDK?

Well, they send me an actual ReactNative example where I can test an prove that SDK is working and sending events. Unfortunately in my application, which is more complex, previous to RN 0.60 and not using new hooks approach, sending of events is not been accomplished. There is any errors and the instance is being updated, but nothing is sent through the network. Still trying to discover why.
Thanks @alexmbp for your suggestion:  -community/async-storage and -device-info are installed.

@alexmbp Unfortunately Flutter SDK was also not a wrapper solution, we might need to change it too.

@nestorgm Let us know if you need further help!

I'd also like to get the wrapper above the native code for React Native, not just JS SDK, because of the impossibility to add Amplitude.getInstance().trackSessionEvents(true); in JS SDK (in the opposite of Android/iOS SDKs).


Edited README to update the entry for the Julia 3rd party bindings

@nic-barbara and I have just announced the release of our package MuJoCo.jl which has revived the previous version of the Julia bindings for MuJoCo from the Lyceum group.
Could we please be listed as the (unofficial) Julia bindings for MuJoCo in mujoco's README.md? Our package is supported and up to date with version 2.3.7 of MuJoCo. We're working on updating to version 3.0.0 in the near future.
Thanks!

Thanks @JamieMair !


doc.add does not work for lists when installed by pip install sbol3

I have been using  pySBOL3 to create SBOL documents. Following the example of  doc.add() it dos not work for lists as stated on the circuit example (https://github.com/SynBioDex/pySBOL3/blob/main/examples/circuit.py). I wanted to contribute a function to add all but the implementation of that was already on the repository. Apparently it is not part of the package that I installed using pip install sbol3. To test that the add function works for lists I cloned the repo and installed it locally using pip install -e . on the masterbranch.

It sounds like you might be using an older version of pySBOL3. What version are you using? Here's how to check:
>>> import sbol3
>>> sbol3.__version__
'1.0b10'
>>>

'Document.add' should support lists was added in version 1.0b9.

Yes probably I had an old version pf pySBOL3 now I got version '1.0b10' using pip install sbol3 and '1.0b11' cloning the repository. Both having the document.add supporting lists.


How to do this cool preview gif?

@chance9077 - not sure why you thought it reasonable to be so terse and provide so few details 🤯
Presumably you mean this one below from the README?
I've no idea if they used it in this case, but you can do similar things with https://talevideo.com/


Matrix multiplication precision API

Operations that do matrix multiplication in JAX accept a precison for controlling precision when executed on TPUs.
The current API seems non-ideal to me:

You have to pass an enum value (e.g., np.dot(x, y, precision=lax.Precison.HIGHEST)). This is a little cumbersome and inconsistent with most NumPy/SciPy APIs which use strings (e.g., np.dot(x, y, precision='highest')).
The current names for precision levels ("highest", "high" and "default") are not very descriptive. In my ideal world we would use some direct indication of the corresponding precision (e.g., bfloat16 multiplication with float32 accumulation), but as the very least can we switch "default" to "low"?
The default low precision is a bit of a footgun, at least when doing anything that isn't implementing a neural net layer. In my opinion, it would be much safer to use "highest" precision by default (which isn't that much slower) on float32 data. Neural net libraries, of course, can default to lower precision, so this really only effects users who directly use NumPy APIs or the @ infix operator.

On TPUs, "HIGH" precision corresponds to 3 passes of bfloat16 and "HIGHEST" precision corresponds to 6 passes, which is effectively full float32 (dropping denormals), as explained in this Intel paper.
With that in mind, and considering that ideally we would retain some flexibility for alternative matmul optimizations that might appears on other platforms, what naming scheme makes sense for the precision API?
Some ideas:

'low', 'high', 'highest': description of precision level
'fastest', 'fast', 'slow': description of speed
'fastest', 'fast', 'accurate': mixed description, using only positive words
'bfloat16', 'float24', 'float32': rough precision of the underlying arithmetic (but what is "float24"??)

I think I lean towards option 3?

Notes from offline discussion:

This is really a "minimum precision" configuration, so perhaps a name like min_precision would be more appropriate.
The other way to configure matmul precision (maybe more obvious) is by explicitly setting dtype. XLA will use lowest precision on bfloat16 data regardless of the precision option.
We want an API that also can support new matmul precision options as they arise on different platforms (GPU, CPU, etc), e.g., precision={'tpu': 'bfloat16', 'gpu': 'float16'}.
Another option would be to specify precision numerically, e.g., precision=1e-2 or precision=1e-6. But this mixes together precision in the significand and the exponent, which misses important nuances like bfloat16 vs float16.

Given that we want to support platform specific options, descriptive names seem like the best bet.
The main remaining concern is what to call "3 pass bfloat16" precision on TPUs, which approximates roughly 16 bits of precision for the significand. "intermediate" precision would be OK for TPUs, but seems very vague in general. Maybe bfloat24 or bfloat16-3x would be appropriate? (We could also support bfloat16-6x as an alias for float32.)

“3 pass bfloat16” is coincidentally very close to (slightly higher than?) the precision of Nvidia’s new “tensorfloat32”. So that could also be a good name for this intermediate precision on TPUs

Users have also requested a way to set a more "global" default precision.
One possible mechanism to do this is via a scope, e.g.:
with jax.precision("highest"):
  ...

I would suggest that it should override only operations with default precision.

I would suggest that it should override only operations with default precision.

I assume you mean only for precision=None, rather than the confusingly named precision=lax.Precison.DEFAULT (aka bfloat16)?

Yes, I meant None, not what we are currently calling DEFAULT.

I just spent several day chasing numerical stability issue until i pin-pointed it the matmul precision. Using "low" precision by default, seems like a very questionable design decision, outside of optimized pipelines with carefully measured speed/quality trade-offs.


chore: Update BFF.

Codecov Report

Merging #1260 (5243435) into main (7d29f71) will increase coverage by 11.00%.
The diff coverage is 9.09%.

@@             Coverage Diff             @@
##             main    #1260       +/-   ##
===========================================
+ Coverage   66.12%   77.12%   +11.00%
===========================================
  Files          21       36       +15
  Lines         307      599      +292
  Branches       27        0       -27
===========================================
+ Hits          203      462      +259
- Misses         94      119       +25
- Partials       10       18        +8

Impacted Files
Coverage Δ

...ntrollers/MarketParticipantActorQueryController.cs
0.00% <0.00%> (ø)

...Api/Controllers/MarketParticipantControllerBase.cs
0.00% <ø> (ø)

...Api/Controllers/MarketParticipantUserController.cs
0.00% <0.00%> (ø)

...rollers/MarketParticipantUserOverviewController.cs
0.00% <0.00%> (ø)

...s/MarketParticipantUserRoleAssignmentController.cs
0.00% <0.00%> (ø)

...Controllers/MarketParticipantUserRoleController.cs
0.00% <0.00%> (ø)

...urce/DataHub.WebApi/Controllers/TokenController.cs
0.00% <0.00%> (ø)

apps/dh/api-dh/source/DataHub.WebApi/Startup.cs
96.38% <100.00%> (+2.40%)
:arrow_up:

...taHub.WebApi/Controllers/Wholesale/Dto/BatchDto.cs
0.00% <0.00%> (-100.00%)
:arrow_down:

...gistration/HealthEndpointRegistrationExtensions.cs
36.84% <0.00%> (-42.11%)
:arrow_down:

... and 14 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Ensure no left over state is left in the required flags variable

I'm raising this PR to fix a bug when using the code coverage modules with a build that includes the HDF5 library.  HDF5 uses the CMAKE_REQUIRED_FLAGS with try_compile, however, because it appends to CMAKE_REQUIRED_FLAGS its is picking up the leftover code coverage flags from the coverage module.  All of the calls to try_compile now fail because gcov is not added as a linker flag as well:
-- try_compile: {COMPILE_DEFINITIONS: -DSTDC_HEADERS -O0 -g -fprofile-arcs -ftest-coverage -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -DHAVE_SYS_TYPES_H -DHAVE_SYS_SOCKET_H, LINK_LIBRARIES: m;dl, OUTPUT_VARIABLE: Change Dir: /home/toro/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_df3b4 && [1/2] Building C object CMakeFiles/cmTC_df3b4.dir/HDFTests.c.o
[2/2] Linking C executable cmTC_df3b4
FAILED: cmTC_df3b4
: && /opt/ccache-3.7.9/bin/cc   -static-libstdc++ -static-libgcc -pthread -lrt -ldl CMakeFiles/cmTC_df3b4.dir/HDFTests.c.o  -o cmTC_df3b4  -lm  -ldl && :
/home/antony/packages/hdf5/original/config/cmake_ext_mod/HDFTests.c:115: error: undefined reference to '__gcov_init'
/home/antony/packages/hdf5/original/config/cmake_ext_mod/HDFTests.c:115: error: undefined reference to '__gcov_exit'
CMakeFiles/cmTC_df3b4.dir/HDFTests.c.o(.data+0x60): error: undefined reference to '__gcov_merge_add'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

While is this arguably an error with the way HDF5 uses CMAKE_REQUIRED_FLAGS I think it makes sense to fix this here, because there may be other libraries out in the wild that makes similar assumptions about the usage of CMAKE_REQUIRED_FLAGS.  Additionally, as this is the location the values originate from, and they are not longer needed after the check this seems the correct place to address the issue by resetting the values to their default state.

How did you include CMake-codecov? Afaik variables shouldn't cascade back to the callee's CMake file scope, unless the variable is cached explicitly - which is not the case.

In this case, the top-level project follows the super-build pattern and is not much more than a project that includes other projects as packages (by way of downloading other repositories from github and including them).  All projects are included at a parallel level below the top-level super-build project by way of an include statement, not an add_directory call which is what I believe is required to cause the cascading of variable scopes.  One project in the dependencies then includes the code coverage module as such:
  get_package_path(CODECOV_PATH cmake-codecov) # Custom function returning the absolute path to the package code.
  list(APPEND CMAKE_MODULE_PATH ${CODECOV_PATH}/cmake)
  find_package(codecov)

I hope that provides enough information but let me know if that leaves unanswered questions?  And thank you for replying so quickly, appreciate this awesome library 👍


OP came to complete stop as lead car accelerated away

Describe the bug
As I was approaching stopped cars at a light, OP correctly slowed down. As that happened the light turned green and the lead cars began to drive. OP came to a complete stop instead of following lead car.  Had to disengage and re-engage to resume drive.
Looking at the HUD video again, op thought there was an object in front of me and was stopped for it.
How to reproduce or log data
https://my.comma.ai/9388d771f95175f5/1619301091233/1619301869326
Sat, 24 Apr, 2021 @ 14:56:16
Expected behavior
Correctly identify objects, ignore ghost objects
Device/Version information (please complete the following information):

Device: comma two
Dongle ID: 9388d771f95175f5
Route: 9388d771f95175f5|2021-04-24--14-51-31
Timestamp:  Sat, 24 Apr, 2021 @ 14:56:16
Version: 0.8.3 release2
Car make/model: Toyota RAV4H 2020

Additional context

The car was detecting a false positive radar point right on the radar itself, probably due to the rain. Below a certain speed we don't require vision confirmation to stop anymore, in case you stop so close to another car it doesn't look like a car anymore. This cause the car to remain stationary because it thought there was a car right at your bumper.
These class of issues will be fixed when we switch to a vision only longitudinal policy.

(Radar point right on top of your own car)

That makes sense.  Thanks for the explanation!


[Mod] Bluedog Design Bureau metadata update request

Hi,
I would like to request some updates to our metadata. If possible we would like it to apply to the next release, v1.7.2 which we plan to release as soon as these metadata updates are live. https://github.com/KSP-CKAN/NetKAN/blob/master/NetKAN/BluedogDB.netkan

Add Waterfall to Depends https://github.com/KSP-CKAN/NetKAN/blob/master/NetKAN/Waterfall.netkan

Move RealPlume from Supports to Suggests

Add Neptune Camera to Suggests https://github.com/KSP-CKAN/NetKAN/blob/master/NetKAN/NeptuneCamera.netkan

Add Space Dust to supports https://raw.githubusercontent.com/post-kerbin-mining-corporation/SpaceDust/master/CKAN/SpaceDust.netkan

Thanks a lot

Actually it might be easier if we have the metadata under our own management on our repository. Could you please advise how to go about doing this? Thanks.

Actually it might be easier if we have the metadata under our own management on our repository. Could you please advise how to go about doing this? Thanks.

You need to copy the netkan files into a repository of yours, then the kref of the netkan file in this repo needs to be changed to point to that metanetkan.

RealismOverhaul for example

But be advised that in our repository there is a lot of validation going on before a change gets merged. Without that validation there's a higher chance to introduce syntax or logical errors. Especially syntax errors can prevent new mod updates from being indexed.
You should definitely monitor http://status.ksp-ckan.space/ in this case, which shows all current warnings and errors for all the active netkans.
I'd also encourage you to try out this GitHub Action to validate netkan files: https://github.com/KSP-CKAN/xKAN-meta_testing. This is what we use to validate changes in our repositories.

@DasSkelett Thanks a lot for the advice, I'll discuss these points with my co-authors for future consideration. Thus in the meantime would appreciate if you could proceed as initially intended in the first post. We'll keep the netkan here for the moment.
Cheers!


Coerce drops required option on output

When using coerce the required option is no longer there when outputting openapi.json
Input:

Output:

This is probably due to .isNullable() being true on the zod object and is maybe the correct way for this library to also define the required option.

Yes @Bram-dc you are totally correct - the capabilities of null/undefined is what is causing this change and it is expected

I have the same issue.
const t = z.number({description: 'Database ID', coerce: true})
t.isNullable() // true
t.isOptional() // false

Would it be an option to test isOptional in case of request params?

Bump on this. In the meantime, in case others stumbled upon this and are new to this library and OpenAPI like I am, we can override required by setting param.required to true in the .openapi metadata. Example:
const paramsSchema = z.object({
  userId: z.coerce
    .number()
    .openapi({param: { required: true, example: 1, description: 'User id' }});
});


Nearly every diagram requires updating

Most diagrams are inaccurate.  Some contain mentions of things such as etcd, fleet, and deisctl.  Some express relationships between components that no longer exist.  For instance, the logger does not depend on the store anymore.

I am using monodraw for my diagram of the logger system btw. Since its ascii art its easy to paste into markdown.

ping @gabrtv -- what was the software you used to make the original diagrams again?

my guess is something like omnigraffle.

Ah! That was the name. He used LucidChart.

I've got some suitable replacements for the diagrams.

Is it maybe possible that we could start a repository of diagrams?  Not exported pngs or whatever, but the actual source files for whatever was used-- Omnigraffle, for instance?

Sure thing.


[5.2] Merge wheres to hasQuery for withCount()

Fixes missing wheres defined on the relation when creating the subquery for a relation count, see https://github.com/laravel/framework/pull/13414#issuecomment-220069780

Added tests for this behavior, seems to be good now, if @taylorotwell can verify this is how the mergeModelDefinedRelationWheresToHasQuery is supposed to work :)

@acasar would be a good one to check this over.

:+1: Looking good!

Good work @barryvdh
Can confirm this has fixed my issue

:+1: Good work. ;)


Python program not showing result or output in Windows console

I am new to python tools for visual studio and need help.
I tried to run a simple "Hello World" code but cannot see its output. To give the details regarding the problem I have created a short video showing the issue while executing the code and python environment settings selected in my visual studio. Please check this link http://www.screencast.com/t/kFU7HsOtiGIk.

Firstly, thank you for the excellent screen capture!
The first thing I'd ask you to try is to disable the "Wait after [ab]normal exit" options and add input() at the end of your program. When either of these options are set, we run via cmd.exe, and it's possible that there is added processing or policies in effect that could cause trouble. Without those options, we run python.exe directly, but then you have to add the pause yourself.
If this is a common problem, we could look at implementing our own launcher to handle the pause at the end. But we haven't seen this issue in the past, so I'm interested to figure out what's different in this case.

As suggested by you I added input() to the code and ran the code

Without changing any settings
With only "Wait after abnormal exit" disabled
With only "Wait after normal exit" disabled
With both the settings "Wait after [ab]normal exit" disabled

But still I faced the same issue. Please have a look at this link http://www.screencast.com/t/TfuOQVo7rtV

What happens when you right-click in the file and select "Start with debugging" or "Start without debugging"?

Nothing happens when I select "Start with debugging" or "Start without debugging"

In the Python Environments window, when you select your installed environment, there is a link to the .exe file (see it here). What happens when you click on that? You should get a Python console window.

Yes it opens the Python console window. I believe its not the problem with python installation or python environment setting because if you see my first video I sent you could notice that I was successfully able to run the code in interactive window by right-clicking it.

I agree, but it's always worth checking the easy stuff first.
Next thing: can you find a file names C:\Users\<you>\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache\Microsoft.VisualStudio.Default.err and - if it exists - post it as a gist or email it to<EMAIL_ADDRESS>

Your requested file is empty.

@shatir Apologies for forgetting about this issue and not replying to you. Do you still want to try to figure this out? Or have you moved on?

Thanks man ... I have already figured out and fixed the issue.

For all those who are facing same problem they should check for any broken extensions installed. In my case it was Xamarin.
To fix my issue I had to uninstall the Visual Studio completely not simply from control panel but by using VisualStudioUninstaller command line tool. This tool will help uninstall all extensions linked with visual studio but still it will not remove some hidden folders and entries from registry so I manually removed registries and hidden folders for Visual Studio. You also need to remove a local folder in which all the setup files for xamarin are downloaded.

Install Python and the Python extension For a quick install, use Python 3.8 from python.org and install the extension from the VS Code marketplace. Now, create a Python file and then:

@doctor-mosbat You do realise you're just necroposting on an issue that is more than 3 years old, right?

@doctor-mosbat for VS Code, please file an issue at https://github.com/microsoft/vscode-python/

#my code is also not running what is the error can someone tell me
class Test:
def init(self,str1):
self.str1=str1
def check(self):
str2=self.str1.lower()
splitstr=str2.split(" ")
if ("light" in splitstr):
for i in range(len(splitstr)):
if (splitstr[i]=="percent"):
if(int(splitstr[i-1])>=100):
retstr="light-->100"
elif (int(splitstr[i-1])==0):
retstr="light-->off"
else:
retstr="light"+splitstr[i-1]
print(retstr)
elif ("fan" in splitstr):
for i in range(len(splitstr)):
if (splitstr[i]=="percent"):
if(int(splitstr[i-1])>=100):
retstr="fan-->100"
elif (int(splitstr[i-1])==0):
retstr="fan-->off"
else:
retstr="fan"+splitstr[i-1]
print(retstr)
else:
print("no occurence")
t1=Test("light is on 100 percent")
t1.check()

@Tabrez007-Ahmad
Maybe incorrect code indent?
I see one more problem...

elif ("fan" in splitstr):

there is no need of these ()
correct shoud be:
elif "fan" in splitstr:
Maybe repost cleaner code?

i have the same problem with my code please help python isn't working.
mylists = [1,2,3,4,5,6,7,8]
def even_bool(num):
return num%2 == 0
evens = filter(even_bool, mylists)
print(list(evens))


Consultation about redis downtime during tryLock （tryLock时redis宕机问题咨询）

你好，最近遇到一些并发调用的问题，想通过redisson的锁来解决，于是写了下面的方法去封装一个加锁执行的逻辑。
现在测试的时候遇到一个问题，就是在tryLock时，我把redis停了，模拟redis链接失败，发现请求会一直卡在tryLock那里。我们想实现如果redis挂了就不加锁，继续往下执行，不影响原业务。请问有合适的方法达到这种效果么。

Hello, I recently encountered some concurrent call problems and wanted to solve it through redisson's lock, so I wrote the following method to encapsulate the logic of locking execution.
When I was testing, I encountered a problem. I stopped redis during tryLock, and the simulated redis link failed, and I found that the request would always be stuck in tryLock. We want to realize that if redis hangs, there will be no lock and continue execution without affecting the original business. Is there a suitable way to achieve this effect?

public static final int DEFAULT_LOCK_WAIT_TIME_SECONDS = 2;

public static final int DEFAULT_LOCK_RELEASE_TIME_SECONDS = 30;

public static void lockAndRun(RedissonClient redissonClient, String lockName, Runnable callable) {
        RLock lock = null;
        boolean lockResult = false;

        try {
            lock = redissonClient.getLock(lockName);
        } catch (Exception e) {
            LOGGER.error("getLock error", e);
        }
        try {
            if (lock != null) {
                lockResult = lock.tryLock(LockUtils.DEFAULT_LOCK_WAIT_TIME_SECONDS, LockUtils.DEFAULT_LOCK_RELEASE_TIME_SECONDS, TimeUnit.SECONDS);
            }

            callable.run();
        } catch (Exception e) {
            LOGGER.error("lockAndRun error", e);
        } finally {
            unLock(lock, lockResult);
        }

    }

    private static void unLock(RLock lock, boolean lockResult) {
        try {
            if (lockResult && lock != null) {
                lock.unlock();
            }
        } catch (Exception e) {
            LOGGER.error("unlock error", e);
        }
    }

我发现使用3.15.3可以解决。如果Redis无法连接，会报超过最大重试的异常
I found that using 3.15.3 can be solved. If Redis cannot connect, it will report an exception exceeding the maximum retry
<dependency>
    <groupId>org.redisson</groupId>
    <artifactId>redisson</artifactId>
    <version>3.15.3</version>
</dependency>


housekeeping: Update module k8s.io/client-go to v5

This PR contains the following updates:

Package
Type
Update
Change

k8s.io/client-go
require
major
v0.17.0 -> v5.0.1

Release Notes

kubernetes/client-go
v5.0.1
Compare Source
Bug fix: picked up a security fix kubernetes/kubernetes#53443 for PodSecurityPolicy.
v5.0.0
Compare Source
New features:

Added paging support

kubernetes/kubernetes#51876

Added support for client-side spam filtering of events

kubernetes/kubernetes#47367

Added support for http etag and caching

kubernetes/kubernetes#50404

Added priority queue support to informer cache

kubernetes/kubernetes#49752

Added openstack auth provider

kubernetes/kubernetes#39587

Added metrics for checking reflector health

kubernetes/kubernetes#48224

Client-go now includes the leaderelection package

kubernetes/kubernetes#39173

API changes:

Promoted Autoscaling v2alpha1 to v2beta1

kubernetes/kubernetes#50708

Promoted CronJobs to batch/v1beta1

kubernetes/kubernetes#41901

Promoted rbac.authorization.k8s.io/v1beta1 to rbac.authorization.k8s.io/v1

kubernetes/kubernetes#49642

Added a new API version apps/v1beta2

kubernetes/kubernetes#48746

Added a new API version scheduling/v1alpha1

kubernetes/kubernetes#48377

Breaking changes:

Moved pkg/api and pkg/apis to k8s.io/api. Other kubernetes repositories also import types from there, so they are composable with client-go.

Removed helper functions in pkg/api and pkg/apis. They are planned to be exported in other repos. The issue is tracked here. During the transition, you'll have to copy the helper functions to your projects.

The discovery client now fetches the protobuf encoded OpenAPI schema and returns openapi_v2.Document

kubernetes/kubernetes#46803

Enforced explicit references to API group client interfaces in clientsets to avoid ambiguity.

kubernetes/kubernetes#49370

The generic RESTClient type (k8s.io/client-go/rest) no longer exposes LabelSelectorParam or FieldSelectorParam methods - use VersionedParams with metav1.ListOptions instead. The UintParam method has been removed. The timeout parameter will no longer cause an error when using Param().

kubernetes/kubernetes#48991

v4.0.0
Compare Source
No significant changes since v4.0.0-beta.0.
v3.0.0
Compare Source
Bug fixes:

Use OS-specific libs when computing client User-Agent in kubectl, etc. (kubernetes/kubernetes#44423)
kubectl commands run inside a pod using a kubeconfig file now use the namespace specified in the kubeconfig file, instead of using the pod namespace. If no kubeconfig file is used, or the kubeconfig does not specify a namespace, the pod namespace is still used as a fallback. (kubernetes/kubernetes#44570)
Restored the ability of kubectl running inside a pod to consume resource files specifying a different namespace than the one the pod is running in. (kubernetes/kubernetes#44862)

v2.0.0
Compare Source

Included bug fixes in k8s.io/kuberentes release-1.5 branch, up to commit
bde8578

v1.5.1
Compare Source
Fix the imports of examples.
v1.5.0
Compare Source

Included the auth plugin (kubernetes/kubernetes#33334)
Added timeout field to RESTClient config (kubernetes/kubernetes#33958)

v1.4.0
Compare Source
v0.19.1
Compare Source
v0.19.0
Compare Source
v0.18.8
Compare Source
v0.18.6
Compare Source
v0.18.5
Compare Source
v0.18.4
Compare Source
v0.18.3
Compare Source
v0.18.2
Compare Source
v0.18.1
Compare Source
v0.18.0
Compare Source
v0.17.11
Compare Source
v0.17.9
Compare Source
v0.17.8
Compare Source
v0.17.7
Compare Source
v0.17.6
Compare Source
v0.17.5
Compare Source
v0.17.4
Compare Source
v0.17.3
Compare Source
v0.17.2
Compare Source
v0.17.1
Compare Source

Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you check the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: backend/go.sum
Command failed: go get -d ./...
go<EMAIL_ADDRESS>reading k8s.io/client-go/v5/v5/go.mod at revision v5/v5.0.1: unknown revision v5/v5.0.1


Need compile-time constant for the generics

Arrays have type [T; N]. The N is a compile-time constant, for the length of the array.
and I hope a kind of generics can solve this situation

Does #2000 solve this?

yes, Thanks


consolidate ports

Hi, there, I tried to run this sample program on a virtual machine, ie, on a cloud setup, where I could then see the example to view and evaluate for use. I've followed all the instructions as listed in the tiles-chain/docs, but I am unable to get to the code to render the application to an IP address(which is be the IP address of the cloud server, instead of localhost). So, how do I render the output to an IP address, so I can see the app running on a browser?


Joystick Visibility Mode

There are 2 Types of Joystick Visibility:

Normal Visible; and
Touchscreen Only;
If the user choose the Touchscreen Only, then it will set the alpha color as invisible.

Instead of Complete invisible, added an extra color into the style.
Transparent Tint Color Style displayed when joystick is not being pressed in touchscreen mode.


Pagination

This is a pretty gnarly (IMO) first stab at pagination. You'll notice that I changed a lot of things, especially when it comes to codegen. That's because connections and edges accept type parameters, which we've not handled yet during codegen. And to be honest, I wasn't sure how to handle type parameters, so instead I just special-cased the connection and edge objects. What this means practically is that I've decoupled code generation from reflection. I think this is a good thing. Basically, we no longer need reflection methods and classes to generate code — we can use them if we have them in hand, and we usually do, but for the case of generating classes which subclass classes with type arguments, or generating methods which return generics, it's better to just explicitly tell the code generator what we want to produce. As such:

I created a new FieldBuilder base class which generates a GraphQL field from a spec.
We still have MethodFieldBuilder and ShapeFieldBuilder. Before, these built GQL fields from Hack methods and Hack shape fields, respectively; now, they merely build GraphQL fields which resolve using Hack methods and Hack shape fields respectively. They can be built from any specification.
We provide factory entrypoints for conveniently obtaining a MethodFieldBuilder or ShapeFieldBuilder from a Hack method or shape field. However, we don't need to use these entrypoints — we can also tell the builders exactly what we want by calling their constructors directly. And this is what we do when generating connections and edges.
I had to introduce a rather horrible special-cased ConnectionFieldBuilder which sets the pagination arguments on the connection immediately returned from calling the user-provided resolver. I'm not sure how else to do this short of making the user code accept the pagination arguments itself and pass them into the Connection constructor, which seems fine but also like the kind of thing the framework can automate.

I'm sort of conflicted about all these changes. On the one hand, they make it simpler to write user code, which we want. On the other hand, they introduce more complexity into codegen. I think separating out codegen from reflection is good and will create more flexibility down the line. I'm less sure about the special-cased handling of methods which return connections.
The reason for these changes, again, is that I just wasn't sure how else to handle codegen for connections. Since the user-defined connection subclass simply indicates by a type parameter what the edges returned from getEdges should be, the actual getEdges method has a generic return type. But we want to generate edge and connection types which are not generic, and I don't think we can use reflection to generate non-generic types from generic types. So I figured it was best to just tell the code generator exactly what we want for the special cases of connections and edges. Furthermore, I think connections and edges are the only objects in the GraphQL specification which require this special handling, so we won't need to do this all over the place 😓 .
I am, however, very open to alternative suggestions! I briefly explored using attributes like we do for introspection. This would make user code significantly more verbose (not just because of the additional attributes, but because we'd need to provide non-generic versions of all generic methods in each connection subclass). It might, however, eliminate most of the changes to codegen introduced by this PR. I figured the extra complexity in the framework is worth the enhanced developer experience, but could be persuaded otherwise.

I think you're optimizing for the right thing. Only a small number of people will ever work on the codegen, and there could potentially be a lot of users, and connections are very common in GraphQL.

Totally. It's just a very different mindset from being a product engineer, where you're always trying to keep product code fairly simple so that the next generation of engineers aren't too confused.

Also I really appreciate all these refactors you're doing for the codegen, it's been so nice whenever I needed to make any changes recently, and it's only getting better! Your decision to add the intermediate representations for types/fields sounds exactly right (basically whenever you have X inputs and Y outputs, you want to find a way to structure the code such that the amount of code is O(X+Y), not O(X*Y) -- which this exactly achieves).

Thanks! I figure that the codegen is what we, the maintainers, have to live with and work in, so it's doing ourselves a favor to make it halfway decent.

Going to merge this to avoid conflicts


Bug: Entire navigation bar disappears

Several times a day I find that the icons at the top of the messages disappear:

After a restart they're back to normal:

Here's the first part of the error log:
TypeError: Cannot read property '0' of undefined
    at ThreadUnsubscribeStore.loadMessagesViaAPI (thread-unsubscribe-store.es6:129:9)
    at ThreadUnsubscribeStore.loadLinks (thread-unsubscribe-store.es6:74:10)
    at new ThreadUnsubscribeStore (thread-unsubscribe-store.es6:35:10)
    at ThreadUnsubscribeStoreManager.getStoreForThread (thread-unsubscribe-store-manager.es6:11:26)
    at ThreadUnsubscribeToolbarButton.load (unsubscribe-buttons.jsx:96:50)
    at ThreadUnsubscribeToolbarButton.componentWillMount (unsubscribe-buttons.jsx:25:10)

Here's the full error log.
The buttons don't return when changing the theme, a restart is the only way I've found to resolve the problem. N1-unsubscribe is the only plugin I use, I originally posted this bug on the official N1 project but they identified that it was specific to this plugin.
N1 version (Mac) 0.4.56-816edde (0.4.56-816edde)

This seems related to other issues opened by @bengotow that the TUStore is crashing. I think something changed in Nylas, but any way this needs to be more robust. I'll let you know if I can replicate it on my end or if I can push a debugging version for you to try

On Oct 10, 2016, at 5:27 PM, Andrew Spear<EMAIL_ADDRESS>wrote:
Several times a day I find that the icons at the top of the messages disappear:
After a restart they're back to normal:
Here's the first part of the error log:
TypeError: Cannot read property '0' of undefined
at ThreadUnsubscribeStore.loadMessagesViaAPI (thread-unsubscribe-store.es6:129:9)
at ThreadUnsubscribeStore.loadLinks (thread-unsubscribe-store.es6:74:10)
at new ThreadUnsubscribeStore (thread-unsubscribe-store.es6:35:10)
at ThreadUnsubscribeStoreManager.getStoreForThread (thread-unsubscribe-store-manager.es6:11:26)
at ThreadUnsubscribeToolbarButton.load (unsubscribe-buttons.jsx:96:50)
at ThreadUnsubscribeToolbarButton.componentWillMount (unsubscribe-buttons.jsx:25:10)
Here's the full error log.
The buttons don't return when changing the theme, a restart is the only way I've found to resolve the problem. N1-unsubscribe is the only plugin I use, I originally posted this bug on the official N1 project but they identified that it was specific to this plugin.
N1 version (Mac) 0.4.56-816edde (0.4.56-816edde)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I wasn't able to replicate the bug, but I added a couple of checks that should prevent the error from happening. I'm not sure if this will fix it. You can install the special release just like normal:
n1-unsubscribe.zip
Let me know if you see emails that should be unsubscribe-able or if the nav bar issues re-appear. There is a small chance that this is related to the newest Nylas release and the changes they are making for some of the button panels.
(P.S. Thanks for using the plugin and waiting for a fix!)

Sorry, still the same result.
I haven't actually used the unsubscribe button either, I'm just archiving and replying to messages then boom...

Here's the first part of the error I get:

There is one error that I'm getting on my end, but only when I use the "undo" button or ⌘+Z after archiving or snoozing. Are you getting this log in your console?

Just to figure out the storyboard. After you type up a message, do you get the same error if you press the Send and Archive button or press ⌘+Enter? Does the toolbar disappear right after you trigger the Send and Archive event or does it happen on some delay? When did the error first appear? Was it only with the newest release that came out about two weeks ago?
Can you copy and paste the contents of your entire console? With Nylas open, first launch the developer console [⌘+Alt+I]. Second use ⌘+Alt+L to reload Nylas. Third follow the steps that triggers the error (i.e. open email, draft reply, send and archive). Your console should now have the bare minimum debugging info and you can copy and paste all of that here [feel free to remove anything that you don't want to share].

@andrewspear are you still having the problem?

@KyleKing I have upgraded and have not seen the issue appear again yet. Hopefully we're in the clear now 👍

🍾 Awesome!
On Oct 30 2016, at 8:55 pm, Andrew Spear<EMAIL_ADDRESS>wrote:

[@KyleKing](https://github.com/KyleKing&r=cmVwbHkrMDAzOWJlOTMyNjY1YWU1YTlkOG
JiMWUzYzhjNWNhNzkxNDVjYmU0MmFjZmJlYTU1OTJjZjAwMDAwMDAxMTQyZTU4NmQ5MmExNjljZTBh
ZGFlY2RkQHJlcGx5LmdpdGh1Yi5jb20=) I have upgraded and have not seen the issue
appear again yet. Hopefully we're in the clear now 👍

—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](https://github.com/colinking
/n1-unsubscribe/issues/61#issuecomment-257193434&r=cmVwbHkrMDAzOWJlOTMyNjY1YWU
1YTlkOGJiMWUzYzhjNWNhNzkxNDVjYmU0MmFjZmJlYTU1OTJjZjAwMDAwMDAxMTQyZTU4NmQ5MmExN
jljZTBhZGFlY2RkQHJlcGx5LmdpdGh1Yi5jb20=), or [mute the
thread](https://github.com/notifications/unsubscribe-auth/ADm-kwwEp7zg7LLmmKIm
fRJqMo3vp9zzks5q5TxtgaJpZM4KTAff&r=cmVwbHkrMDAzOWJlOTMyNjY1YWU1YTlkOGJiMWUzYzh
jNWNhNzkxNDVjYmU0MmFjZmJlYTU1OTJjZjAwMDAwMDAxMTQyZTU4NmQ5MmExNjljZTBhZGFlY2RkQ
HJlcGx5LmdpdGh1Yi5jb20=).![](https://github.com/notifications/beacon/ADm-
kxxwn9CIBKUQl0YU7c_K7SNqhrbJks5q5TxtgaJpZM4KTAff.gif)

I also had this issue. So far, v1.6.3 has also fixed the problem for me.


First image shows Feature across multiple sprints however this is not possible

The first image is very misleading and there should be some indicator that the Feature is being dragged to a new sprint rather than spanning multiple sprints

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

ID: d704a22b-6a65-7a4c-1111-944c9aeff944
Version Independent ID: 5880f4f1-ce11-3f43-e0dd-d569f5206b4d
Content: Review team delivery plans - VSTS & TFS
Content Source: docs/work/scale/review-team-plans.md
Product: devops
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@andymerritt  - Thank you for the feedback. I've updated the topic to make it clear that the work item is being updated by dragging it to a later sprint.


系统崩溃 processor.getGraph().addConsumablePacketToInputStream(backImgTag, packet, timestamp);

System information (Please provide as much relevant information as possible)

MediaPipe version:master
Android SDK and NDK versions (if android):21
Android AAR ( if android):

Describe the problem:
System crash for   processor.getGraph().addConsumablePacketToInputStream(backImgTag, packet,  timestamp);
How should I add bitmap ?
code
private class BackImageReplaceHandler implements FrameProcessor.OnWillAddFrameListener{
        private final static String backImgTag = "back_image";

        @Override
        public void onWillAddFrame(long timestamp){

           try{
               FileInputStream fs = new FileInputStream("/storage/emulated/0/Android/data/com.example.face/cache/revise_mask/1829663562875.jpg");
               Bitmap orgImg  = BitmapFactory.decodeStream(fs);
               Packet packet = processor.getPacketCreator().createRgbImageFrame(orgImg);
               processor.getGraph().addConsumablePacketToInputStream(backImgTag, packet,  timestamp);
               packet.release();
           }catch (Exception e){
               e.printStackTrace();
           }
        }
    }

exception
 Fail to get file list com.example.face
2021-08-28 19:59:10.976 27496-27531/com.example.face E/Perf: getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array

selfie_segmentation_gpu.pbtxt
# MediaPipe graph that performs selfie segmentation with TensorFlow Lite on GPU.

# GPU buffer. (GpuBuffer)
input_stream: "input_video"

# Output image with rendered results. (GpuBuffer)
output_stream: "output_video"

input_stream: "back_image"

# Throttles the images flowing downstream for flow control. It passes through
# the very first incoming image unaltered, and waits for downstream nodes
# (calculators and subgraphs) in the graph to finish their tasks before it
# passes through another image. All images that come in while waiting are
# dropped, limiting the number of in-flight images in most part of the graph to
# 1. This prevents the downstream nodes from queuing up incoming images and data
# excessively, which leads to increased latency and memory usage, unwanted in
# real-time mobile applications. It also eliminates unnecessarily computation,
# e.g., the output produced by a node may get dropped downstream if the
# subsequent nodes are still busy processing previous inputs.
node {
  calculator: "FlowLimiterCalculator"
  input_stream: "input_video"
  input_stream: "FINISHED:output_video"
  input_stream_info: {
    tag_index: "FINISHED"
    back_edge: true
  }
  output_stream: "throttled_input_video"
}

# Subgraph that performs selfie segmentation.
node {
  calculator: "SelfieSegmentationGpu"
  input_stream: "IMAGE:throttled_input_video"
  output_stream: "SEGMENTATION_MASK:segmentation_mask"
}
###------replace bakckage-----
node {
   calculator: "GpuBufferToImageFrameCalculator"
   input_stream: "segmentation_mask"
   output_stream: "segmentation_mask_cpu"
}
node {
   calculator: "GpuBufferToImageFrameCalculator"
   input_stream: "throttled_input_video"
   output_stream: "throttled_input_video_cpu"
}
node {
   calculator: "ReplaceCalculator"
   input_stream: "IMAGE:throttled_input_video_cpu"
   input_stream: "MASK_FULL:segmentation_mask_cpu"
   input_stream: "BACK_IMAGE:back_image"
   output_stream: "IMAGE:output_video_cpu"
}
#---------
# Colors the selfie segmentation with the color specified in the option.
node {
  calculator: "RecolorCalculator"
  input_stream: "IMAGE_GPU:throttled_input_video"
  input_stream: "MASK_GPU:segmentation_mask"
  output_stream: "IMAGE_GPU:output_video"
  node_options: {
    [type.googleapis.com/mediapipe.RecolorCalculatorOptions] {
      color { r: 255 g: 255 b: 255 }
      mask_channel: RED
      invert_mask: true
      adjust_with_luminance: false
    }
  }
}

Hi @zhaoqilong3031, Could you please provide steps to reproduce the above error your android code changes (MainActivity.java). Thanks!


Fix WebHdfsSensor

Coverage increased (+0.08%) to 63.628% when pulling 0addb2a77646e95d0f146c10fe58d5d7ca6e416b on ahobson:webhdfs into dbf0774ed84679c1ed2feb0bf64e155f443e71e3 on airbnb:master.

Can you please have a look at the issues reported by landscape? Some need to be fixed.

Coverage increased (+0.8%) to 67.563% when pulling 4b52c3e242e0d26cc811d30cab35fd7ca7c3af9b on ahobson:webhdfs into ed82fcca69071ef3cf3a6165e933101fbfb7317b on airbnb:master.

Coverage increased (+0.08%) to 66.876% when pulling 138b5167911c76d08d4e415645578939fdbd3734 on ahobson:webhdfs into d40a7d3c5e0d90cf2c186b3e5ecbdb6798adafae on airbnb:master.

I rebased against master and that seems to have fixed the landscape issues.  I believe the Travis error is unrelated since I didn't change my code.  The logs seem to imply a mysql timeout.

I don't know if you did anything, but all checks are now passing.


Weird behavior with ctx.formParam

Hello all 👋
Actual behavior (the bug)
All my ctx.formParam<*>("x").get() call throws an error Form parameter 'x' with value 'null' cannot be null or empty.
Exemple:
data class Params(
        val module: String,
        val fromDate: Date,
        val toDate: Date,
        val filters: Filters,
        val selections: Selections
)
// later in the code :
val params = try {
        Params(
            ctx.formParam<String>("module").get(),
            ctx.formParam<String>("fromDate").get().parseDate("yyyy-MM-dd"),
            ctx.formParam<String>("toDate").get().parseDate("yyyy-MM-dd"),
            ctx.queryParam<String>("filters").getOrNull()?.fromJson(Map::class.java) as Filters? ?: mapOf(), // will be checked later
            ctx.queryParam<String>("selections").getOrNull()?.fromJson(Map::class.java) as Selections? ?: mapOf() // will be checked later
        )
    } catch (e: BadRequestResponse) {
        e.printStackTrace()
        throw BadRequestResponse("invalid_parameters")
    } catch (e: ParseException) {
        e.printStackTrace()
        throw BadRequestResponse("invalid_parameters")
    } catch (e: JsonSyntaxException) {
        e.printStackTrace()
        throw BadRequestResponse("invalid_parameters")
    }

Got the following request body (Content-Type : "application/json") :
{"module":"leads","fromDate":"2019-11-08","toDate":"2019-11-14","filters":{},"selections":{"income":["new"],"age":["new"]}}

But the Javalin formParam value is (which is very weird !) :
{{"module":"leads","fromDate":"2019-11-08","toDate":"2019-11-14","filters":{},"selections":{"income":["new"],"age":["new"]}}=[]}

The full Javalin Request debug log :
[qtp885851948-17] INFO io.javalin.Javalin - JAVALIN REQUEST DEBUG LOG:
Request: POST [/somewhere]
    Matching endpoint-handlers: [BEFORE=*, POST=/somewhere]
    Headers: {Origin=http://localhost:3000, Cookie=io=ESe15zW43rfYIYbqAAAE; cookie_name=cookie_value, Accept=application/json, Connection=keep-alive, User-Agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36, Referer=http://localhost:3000/somewhere, Sec-Fetch-Site=same-site, Host=localhost:8080, Accept-Encoding=gzip, deflate, br, Sec-Fetch-Mode=cors, Accept-Language=fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7, Content-Length=134, Content-Type=application/json}
    Cookies: {io=ESe15zW43rfYIYbqAAAE, cookie_name=cookie_value}
    Body: {"module":"leads","fromDate":"2019-11-08","toDate":"2019-11-14","filters":{},"selections":{"income":["new"],"age":["new"]}}
    QueryString: null
    QueryParams: {}
    FormParams: {{"module":"leads","fromDate":"2019-11-08","toDate":"2019-11-14","filters":{},"selections":{"income":["new"],"age":["new"]}}=[]}
Response: [400], execution took 57.68 ms
    Headers: {Server=Javalin, Access-Control-Allow-Origin=http://localhost:3000, Access-Control-Allow-Credentials=true, Date=Fri, 15 Nov 2019 08:38:38 GMT, Content-Type=application/json}
    Body is 30 bytes (starts on next line):
    {"error":"invalid_parameters"}

I have to manually create Params class because the ctx.body<Params>() always fails and throws because the Date are in the following format : "yyyy-MM-dd" and the Filters and Selections typealias are too complicated for being unserialized automatically.
Additional context
Javalin : 3.6.0
Kotlin : 1.3.50
The Javalin config :
val app = Javalin
    .create { config ->
            if (dev) {
                config.enableCorsForAllOrigins()
                config.enableDevLogging()
            } else {
                config.enableCorsForOrigin("someHost")
            }
            config.accessManager(User::accessManager)
        }!!
// routes ......
app
    .exception(HttpResponseException::class.java) { e, ctx ->
        ctx.status(e.status)
            .json(mapOf("error" to e.message))
    }
    .exception(Exception::class.java) { e, ctx ->
        ctx.status(500)
            .json(mapOf("error" to "unknown_error"))
    }
app.start(8080)

Thanks !
Scorsi

Hi @scorsi. Your body is a JSON string, which confuses the formParam() method, which expects a key/value string. Form parameters should look like this:
key1=value1&key2=value2

I have to manually create Params class because the ctx.body() always fails and throws because the Date are in the following format : "yyyy-MM-dd" and the Filters and Selections typealias are too complicated for being unserialized automatically.

You have to configure the object mapper and your data class to make this work. Or, you could parse this manually by doing something like mapper.readTree(ctx.body()).get("module").textValue().

Hello, thanks, this works like a charm !