Add support for building a snap via snapcraft

I created a snap package of xsv so it can be featured to the millions of Linux users installing apps from the Snap Store. If you're willing to publish this under the xsv project name, you just need to create an account and then register the xsv name.
The snap file created by snapcraft can then be released in the Snap Store with snap push --release stable *.snap. You'll want to install snapcraft (brew install snapcraft, snap install snapcraft, or apt install snapcraft) and login (snapcraft login) first, though.
You may also want to consider using https://build.snapcraft.io/ which is a free build service, that can create armhf, amd64, i386, arm64 and other builds of xsv, and push them to the store automatically.
Thanks for making xsv! :)

Thanks for the quick response. Apologies, I was unaware of the issues you'd had with ripgrep previously. I'm keen to understand the issues your users are having and how we can resolve anything in the platform that's causing you pain.
I note there's an 'unofficial' rg snap which has incorrect metadata. I can reach out to the person who made the snap and recommend they remove it from the store in favour of the ripgrep snap. I suspect that will go some way to help.
Aside from that snap, are there other problems I should focus on, or should I just check the old closed issues?

@popey It's been a while since I've dealt with snaps, so I'm not sure how constructive my feedback is, but here are the things I remember:

As you point out, I believe there were (are?) both ripgrep and rg snaps, and one of them was misconfigured.
Neither the rg nor ripgrep snaps have any kind of information about how to reach out to the package maintainer to report bugs. Therefore, even though I wasn't maintaining those packages, I got bug reports for them. While I understand that happens regardless of the packaging environment, the thing that was really frustrating was that I in turn had no idea where to report bugs.
When a snap is installed but not configured properly, the failure modes are incredibly opaque and make it look like ripgrep is the problem when in fact, there was something wrong with the install. IIRC, the main issue was that you would use ripgrep after installing it via snap, and you would get weird permission errors. I imagine this is probably key to snap's security model, but from the perspective of the end user, it's completely baffling. It took me a long time to debug the issue myself initially since I don't use snap and am therefore not privy to its quirks.
When I last looked into maintaining snaps myself, I found the documentation to largely be unhelpful and I didn't really understand how it was all supposed to work. I definitely do not want to deal with another build system beyond my own CI, since that already takes up a lot of my time as it is. At that point, I wasn't sure how I was supposed to update the snap.
In general, I don't understand the role that snap plays vs apt. ripgrep is purportedly in Ubuntu 18.10 Cosmic, so why have a snap at all?

Apologies if this came across poorly and in insufficient detail. But it's all I have off the top of my head. I also apologize if some of this has gotten better since I last investigated.

Thanks for the great feedback.
For rg & ripgrep, we can contact the "unofficial" snap developer and request they update or unpublish the snap as there's a more official one in the store.
You're right about the lack of contact information. We're iterating on the presentation of contact information with our design team right now. We're also figuring out the best way to contact developers and let them know contact information is missing or incorrect. Further we're looking at ways we can ensure the 'good' snaps rise above the 'bad' ones in search results, to encourage users towards the better solutions, and encourage developers to spruce up their storefront.
You're also spot on that debugging snaps can be problematic, especially where confinement is an issue. We're working on better documentation for debugging failure modes, so this is great feedback and validation that this needs improving.
The documentation story was indeed terrible. The good news is, most of it has now been re-written and migrated to a faster moving maintenance model. So we can rapidly throw documentation together that's missing and iterate quickly on the docs that do exist. Sincere apologies that the docs were previously lacking
Being in the 18.10 repo is awesome. Without a sales pitch, I'll give you the specific reasons why having a snap could be preferable though.

18.10 is not an LTS. We see around 10-20x (depending on release) users on LTS Ubuntu releases than the non-LTS releases. Our LTS releases are very sticky, and we've just announced 10 years support on 18.04. Your application likely won't get backported to 18.04.
Updates to software in the Ubuntu archive goes through a SRU (Stable Release Update) process which takes a minimum of a week (and often longer) to land. If you update the snap, users will get that within hours with automatic refresh, or even minutes if they force refresh.
One snap works way beyond Ubuntu. At the last count snaps were installable on ~40 or so distributions. So while Ubuntu does cover the lions share of Linux users - notably on 14.04, 16.04 and 18.04 (not 18.10), there's plenty of people on other distros, and that one snap will work on all of the main ones.
More distros will be supported, and you don't have to do anything to enable that. Previously you'd have to build an rpm for this distro, a deb for that distro, and actively choose what distro to support. With snaps, the distro support is predominantly on us. We've worked with members of the Fedora community to get snap support working on RHEL/Centos, but no change is required in your snap to do enable that. If more distros are supported further down the line, again, you're not required to do anything to support them

I think your concerns are totally valid, and snapd and snapcraft have moved on a long way in the last 2 years. There have certainly been some issues which were real stumbling blocks for developers, documentation being a significant one. I'm really appreciative that you've taken the time to engage with me on this, it's great feedback for the teams at Canonical.
If you're willing to move forward with this or other projects, I'm keen to work with you on whatever issues you have, either via email or on specific issues on your projects. I'd love for snap to become a supported delivery platform for your applications, because frankly they're awesome.


PR addressing issues #27, #47, #50, #105, #107 and #119

SWG 2021-02-24 Motion by Stephan, Second by Chuck, to approve and merge.


Multiple Datasets in tooltip bug

Expected behavior
I'm trying to make the tooltip group all datasets under the same x axis but it is not working. I am using interaction: { mode: "index" } . The expected behaviour is suppose to show the correct datasets for each x axis.
Current behavior
It is showing mixed datasets in each of the tooltips, which is incorrect.
Reproducible sample
https://codepen.io/dza48/pen/WNzmymw
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
v3.8.2
Browser name and version
No response
Link to your project
No response

The current behaviour is the correct behaviour, since you specify the mode as index it takes the index in the data array, and your data arrays have different lenghts so to get what you want with mode index you need to have all your data arrays be the same length.

The current behaviour is the correct behaviour, since you specify the mode as index it takes the index in the data array, and your data arrays have different lenghts so to get what you want with mode index you need to have all your data arrays be the same length.

I see, is there another mode I can use that can help with my sitatuation?

No, afaik there is no build in mode that does what you want  so you will need to create your own custom mode to achieve what you want

Isn't it what mode: "x" is supposed to do? But I have problems with that too, in that the tooltip shows the same item twice...


cannot save settings

When I try to save my languages or my experience level, I get a notification that it failed to save my settings. Just to check, I tried it on another computer with the same result.

Apparently it was because I didn't have my e-mail set, and adding it to my account fixed the issue, so I'm marking this as closed.


Integrate or Merge parameter and return annotations

There are a few other initiatives that have focus on this topic for MicroPython

Where
What
License

https://github.com/hlovatt/PyBoardTypeshed
no longer maintained
MIT

https://github.com/thonny/thonny/blob/master/thonny/plugins/micropython/
Copy of hlovat
MIT

https://github.com/Gobot1234/PyBoardTypeshed
significant manual update
MIT

https://github.com/JetBrains/intellij-micropython
base hlovat + community updates
Apache 2.0

With the new stubber capabilities to merge @overloads it would be possible to merge the better type info into the docstubs

create docstubs from .rst
clone / fork one of the above

[ ] select best options based on quality and license
forking and change-commits may be needed to reduce the need for textual fixups
these could be hosted / submoduled in micropython-stubs

merge in the parameter and return annotations & Overloads

[x] import type annotations without overwriting docstrings
[x] add @overloads
[x] handle differences in package format
[ ] will need additional glue  imports and typedefs per module

Migrate to Python 3.12 notation (simpler)

[ ] using ruff -U -unsafe ( works well in PoC)

then continue the normal process

merge with frozen
merge firmware stubs

Run regular typing QA tests to determine validity

@hlovatt,  I think I have found a way to merge our efforts with a goal to bring the combined results to the MicroPython project. Thanks for all the work you have done.

Hello @Gobot1234,
your fork of the pyboardtypeshed looks quite interesting. I'd like to understand a bit more about the changes that you committed last year
how did you create and test these?
Was that all manual effort ?

I think it was fairly manual because the generated ones weren't super correct. They were somewhat tested on an ardiuno nano ble but I never got everything working.

Saying all this I don't even remember if these stubs are correct for micropython they were for another microcontroller version of python IIRC

Thanks for the quick response, would be helpful if you can recall what flavor of (Micro)python that was. The included docs sure look like micropython to me.

Ah just remembered might have been circuit python


Cannot access vuex store from inside of a node component, is there a work around ?

I'm building an application where I want to show the data properties of a node inside that node. And when I register a node, I attach a unique id with it, and I add this unique Id as a key in my vuex store inside an object, which contains all the present nodes. And I also pass this unique Id as a prop to these node components, so that I can get the data object with that unique key from vuex, the problem is that, I cannot access vuex from inside of the node component. this.$store is undefined, if I use composition API, const store = useStore(), even then store remains undefined. What should I do ?
BTW, thanks for this amazing library.

View https://github.com/jerosoler/Drawflow/issues/201

Thanks, man for such a fast reply, it worked. Again thank you for such an awesome library.


Unable to load celery application. 'str' object has no attribute 'level' when Integrating Celery with Flask？

In order to issue long running task like deleting posts in background job, Because I used windows platform, I decided to integrate Celery with Flask as a new beginner rather than rq, But an error report occurs:
[2023-10-22 18:15:47,668\] INFO in __init__: Microblog startup
  [2023-10-22 18:15:47,684\] INFO in __init__: Microblog startup
  Usage: celery \[OPTIONS\] COMMAND \[ARGS\]...
  Try 'celery --help' for help.

  Error: Invalid value for '-A' / '--app':
  Unable to load celery application.
  'str' object has no attribute 'level'

The file structure is as follows:
--app
    --__init__.py
  --make_celery.py

The following code is :
// The __init__.py
def celery_init_app(app: Flask):
   class FlaskTask(Task):
      def __call__(self, *args: object, **kwargs: object):
         with app.app_context():
            return self.run(*args, **kwargs)

   celery_app  = Celery(app.name, task_cls=FlaskTask)
   celery_app.config_from_object(app.config['CELERY'])
   celery_app.set_default()
   app.extensions['celery'] = celery_app
   return celery_app

// call the celery_init_app in factory function
def create_app(config_class=Config):
   app.config.from_object(config_class)
   app.config.from_mapping(
    CELERY=dict(
        broker_url = "pyamqp://guest@localhost//",
        result_backend = "redis://localhost",

        task_serializer = 'json',
        result_serializer = 'json',
        accept_content = ['json'],
        task_ignore_result = True,
    ),
   )
   app.config.from_prefixed_env()

   // ... other configuration code
   celery_init_app(app)
   return app

The make_celery code is:
from app import create_app

flask_app = create_app()
celery_app = flask_app.extensions["celery"]

I do not know why it just shows a single mesage, not a full traceback report.   I depolyed it on windows platform and I don't know whether it is related or not, I would really appreciate it if anyone can help.

I have read your article, but i still don't know how to use it with celery in micrblog to issue time-consuming task like post deleting

I have read your article, but i still don't know how to use it with celery in micrblog to issue time-consuming task like post deleting

I have read your article, but I still don't know how to use it with celery in micrblog to issue time-consuming task like post deleting. Precisely speaking, The effort I made was to make that configuration code like the flask with celery and apply @shared_task to decortation function delete post, but it still seems not work

Unfortunately the example I have shared above is the only example I have. If that is not what you need, then you will need to find a more recent example from someone else.

I do not know what hiccup you are experiencing.

That is when I decide to submit a post without running elasticseach, it will report elastic_transport.ConnectionError, but If I reopen the index page, the post is indeed submitted successfully. But when post submission is made with a running elasticsearch, such connection error will not happen.
So I want to hand over this time-consuming background job to celery to avoid such thing.

That is when I decide to submit a post without running elasticseach, it will report elastic_transport.ConnectionError, but If I reopen the index page, the post is indeed submitted successfully. But when post submission is made with a running elasticsearch, such connection error will not happen. So I want to hand over this time-consuming background job to celery to avoid such thing.

Not only post submisson invloves but also post deletion

The indexing function in search.py silently return when elasticsearch isn't running, so you would not see any errors. See https://github.com/miguelgrinberg/microblog/blob/main/app/search.py#L5

Sorry, I do not understand. Actually I already have such code in search.py, but error still happens.

Show me the complete error please

Here is the full error:
Traceback (most recent call last):
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\flask\app.py", line 2548, in __call__
    return self.wsgi_app(environ, start_response)
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\flask\app.py", line 2528, in wsgi_app
    response = self.handle_exception(e)
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\flask\app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\flask\app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\flask_login\utils.py", line 290, in decorated_view
    return current_app.ensure_sync(func)(*args, **kwargs)
  File "C:\Users\sky\python_work\microblog\app\main\routes.py", line 37, in index
    db.session.commit()
  File "<string>", line 2, in commit
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\sqlalchemy\orm\session.py", line 1451, in commit
    self._transaction.commit(_to_root=self.future)
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\sqlalchemy\orm\session.py", line 839, in commit
    self.session.dispatch.after_commit(self.session)
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\sqlalchemy\event\attr.py", line 247, in __call__
    fn(*args, **kw)
  File "C:\Users\sky\python_work\microblog\app\models.py", line 48, in after_commit
    add_to_index(obj.__tablename__, obj)
  File "C:\Users\sky\python_work\microblog\app\search.py", line 9, in add_to_index
    current_app.elasticsearch.index(index=index, id=model.id, body=payload) # store index
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\elasticsearch\_sync\client\utils.py", line 414, in wrapped
    return api(*args, **kwargs)
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\elasticsearch\_sync\client\__init__.py", line 2265, in index
    return self.perform_request(  # type: ignore[return-value]
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\elasticsearch\_sync\client\_base.py", line 286, in perform_request
    meta, resp_body = self.transport.perform_request(
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\elastic_transport\_transport.py", line 329, in perform_request
    meta, raw_data = node.perform_request(
  File "c:\users\sky\python_work\microblog\venv\lib\site-packages\elastic_transport\_node\_http_urllib3.py", line 199, in perform_request
    raise err from None
elastic_transport.ConnectionError: Connection error caused by: ConnectionError(Connection error caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x00000209B71DAC70>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝，无法连接。))

The problem is that app.elasticsearch is not None in your situation. Make sure you don't have the ELASTICSEARCH_URL environment variable set. The application only attempts to talk to Elasticsearch when this environment variable is set.

Thank you so much. I indeed set ELASTICSEARCH_URL environment variable and it works when this environment variable was deleted. Can I ask why the application try to talk to elascticsearrch when the environment variable ELASTICSEARCH_URL is set ?

I have tried to read the source code in elastic_transport\_node\_http_urllib3.py to understand why it fails, but i am not currently smart enough to find out reason by error report.

The value of the ELASTICSEARCH_URL variable is used to determine if the Elasticsearch service should be used or not. It has nothing to do with Elasticsearch, this is done in this application. If the variable is set, the application assumes you want to use Elasticsearch. If the variable is not set, then it assumes you do not want to use Elasticsearch.

So it means that if I do not want such above error to happen, namely the post can be submitted or deleted without delay, I have to close elasticsearch service by setting the ELASTICSEARCH_URL variable to be None. And if i want to use elasticsearch, such above error will happen?

I don't really understand what you are saying. If you want to use Elasticsearch you have to run the Elasticsearch service, and set ELASTICSEARCH_URL to point to the running service. Then everything will work. Setting the variable when you do not have a running Elasticsearch service makes no sense, the variable is there to tell the application where the service can be reached.


dependency version issue when build

:Haxl/ (master✗) $ ./Setup configure                                                                                [16:14:51]
Configuring haxl-<IP_ADDRESS>...
Setup: Encountered missing dependencies:
aeson >=0.6 && <0.12, exceptions ==0.8., text >=<IP_ADDRESS> && <1.3
:Haxl/ (master✗) $ cabal install aeson                                                                                [16:14:53]
Resolving dependencies...
All the requested packages are already installed:
aeson-<IP_ADDRESS>
Use --reinstall if you want to reinstall anyway.
:Haxl/ (master✗) $ cabal install exceptions                                                                                [16:15:02]
Resolving dependencies...
All the requested packages are already installed:
exceptions-0.8.3
Use --reinstall if you want to reinstall anyway.
:Haxl/ (master✗) $ cabal install text                                                                                [16:15:10]
Resolving dependencies...
All the requested packages are already installed:
text-<IP_ADDRESS>
Use --reinstall if you want to reinstall anyway.
:Haxl/ (master✗) $ ./Setup configure                                                                                [16:15:17]
Configuring haxl-<IP_ADDRESS>...
Setup: Encountered missing dependencies:
aeson >=0.6 && <0.12, exceptions ==0.8., text >=<IP_ADDRESS> && <1.3

Does "cabal install Haxl" not work? Manually installing the dependencies ahead of time is a non-standard way to get the dependencies to line up.
I would also recommend trying to use stackage for package management.

@zinking What happens if you cabal configure instead of ./Setup configure? and with cabal install?
Our Setup.hs file is the bog standard one that cabal creates, so either something is weird about the installed versions you have, or there is some path issue and Cabal (the library) can't find the same packages that cabal (the executable) can.

:Haxl/ (master✗) $ cabal configure                                                                                [7:40:59]
Resolving dependencies...
Configuring haxl-<IP_ADDRESS>...
:Haxl/ (master✗) $ cabal install                                                                                [7:41:06]
Resolving dependencies...
Configuring haxl-<IP_ADDRESS>...
Building haxl-<IP_ADDRESS>...
Failed to install haxl-<IP_ADDRESS>
Build log ( /Users/awang/.cabal/logs/haxl-<IP_ADDRESS>.log ):
cabal: Entering directory '.'
Configuring haxl-<IP_ADDRESS>...
Building haxl-<IP_ADDRESS>...
Preprocessing library haxl-<IP_ADDRESS>...
[ 1 of 11] Compiling Haxl.Core.Util   ( Haxl/Core/Util.hs, dist/build/Haxl/Core/Util.o )
[ 2 of 11] Compiling Haxl.Core.StateStore ( Haxl/Core/StateStore.hs, dist/build/Haxl/Core/StateStore.o )
[ 3 of 11] Compiling Haxl.Core.Show1  ( Haxl/Core/Show1.hs, dist/build/Haxl/Core/Show1.o )
[ 4 of 11] Compiling Haxl.Core.Types  ( Haxl/Core/Types.hs, dist/build/Haxl/Core/Types.o )
[ 5 of 11] Compiling Haxl.Core.DataCache ( Haxl/Core/DataCache.hs, dist/build/Haxl/Core/DataCache.o )
[ 6 of 11] Compiling Haxl.Core.RequestStore ( Haxl/Core/RequestStore.hs, dist/build/Haxl/Core/RequestStore.o )
[ 7 of 11] Compiling Haxl.Core.Exception ( Haxl/Core/Exception.hs, dist/build/Haxl/Core/Exception.o )
[ 8 of 11] Compiling Haxl.Core.Monad  ( Haxl/Core/Monad.hs, dist/build/Haxl/Core/Monad.o )
[ 9 of 11] Compiling Haxl.Core.Memo   ( Haxl/Core/Memo.hs, dist/build/Haxl/Core/Memo.o )
Haxl/Core/Memo.hs:137:23: Not in scope: ‘<$>’
Haxl/Core/Memo.hs:146:23: Not in scope: ‘<$>’
cabal: Leaving directory '.'
cabal: Error: some packages failed to install:
haxl-<IP_ADDRESS> failed during the building phase. The exception was:
ExitFailure 1
--
I am OSX maverix, The Glorious Glasgow Haskell Compilation System, version 7.8.3
and tried update cabal

I just pushed some commits that should fix the build for GHC 7.8.
Sorry about that, but we don't always notice when 7.8 build is broken. I added a Travis badge to surface the build status more.
As for why cabal configure succeeds and ./Setup.hs configure doesn't, that might be a question for the Cabal folks. I'm guessing there is a path issue.


Issue 26

Fixed BUG: Service does not run on Apple silicon Mac and updated ReadMe.

Hi @joewxboy @t-fine, I just wanted to let you know that this PR is ready for review/merging. Please let me know if there is anything I need to do from my side. Thanks!

Hello @adhishreekadam excellent so far this looks good! I'll give it a final review and merge today, but for any other PRs you might have planned or in progress, could you do a few things to help Joe and I (or anything looking back to these?

A more descriptive title similar to your first commit is very helpful, something like Issue 26: Apple Silicon Mac updates
When it comes to asking for reviews, can you use the Reviewers section up top on the right next to the description to request people?
Link the open issue to this PR in the Development section on the right below the reviewers thing I mentioned above.

Then I think this PR will be perfect! I created an issue to document these things when it comes to contributing guidelines. I've gone ahead and done the three on this PR

Hello @adhishreekadam excellent so far this looks good! I'll give it a final review and merge today, but for any other PRs you might have planned or in progress, could you do a few things to help Joe and I (or anything looking back to these?

A more descriptive title similar to your first commit is very helpful, something like bug fix: Apple Silicon Mac updates
When it comes to asking for reviews, can you use the Reviewers section up top on the right next to the description to request people?
Link the open issue to this PR in the Development section on the right below the reviewers thing I mentioned above.

Then I think this PR will be perfect! I created an issue to document these things when it comes to contributing guidelines. I've gone ahead and done the three on this PR

Hello, yes I will do that in future PRs. Thank you!


Add custom button to insert html after user input

Version
1.4.6
Test Environment
linux on Chrome and Firefox (not relevant)
Current Behavior
Hey maintainers! I'm really loving the editor so far - it's met every single one of my needs! I have a quick question - I'm looking to add a custom button that, on click, takes user input and then inserts a custom span element. I was able to easily find the code for adding a button and then I can create a custom event to link to it, and I'm hoping you can point me (or tell me) after I've collected some content in the custom event, how I can insert it directly where the user cursor is?
I hope this is easy to answer - thank you kindly!

@vsoch
The editor currently provides the instance that manages the cursor position and the text in the selection. I think you can use this instance.
Calling editor.getTextObject() will return an instance of MdTextObject in Markdown mode and an instance of WysiwygEditor in WYSIWYG mode. This allows you to add text to the current cursor.
editor.eventManager.listen('customEvent', () => {
  const textObj = editor.getTextObject();
  const range = editor.getRange();

  textObj.setEndBeforeRange(range);
  textObj.replaceContent('hello editor world!');
});

Is this the feature you're trying to implement? Please check! :)

This is totally perfect! I'm going to work on it now and I'll post here with questions, and update if/when I get everything working. Thank you for the prompt reply, and for leaving the issue open as I figure this out.

okay all set! I was able to add a custom button, and link it to a modal that takes user input, and on submit inserts a custom span into the editor, screenshots here:
https://vsoch.github.io/askci/docs/getting-started/#edit-an-article
Thank you so kindly for your help, and for this beautiful editor!

@vsoch
I checked the link you gave me. Your project is awesome!!! Thank you for using the editor. 🙏


Add tupleToArray point free function

Changes:

added a tupleToArray point free function
added checks to ensure the passed argument is a Tuple or a Tuple returning function

Coverage remained the same at 100.0% when pulling 17ae34ad68bd0f31115564bc0cb49de4e6864363 on jasminabasurita:tupleToArray into e1d2484255500de813676de8988b8efd661397c1 on evilsoft:master.

Looks like no further comments, and looks good.

On a side note, you should join our Gitter. Great place to give and receive help.
https://gitter.im/crocksjs/crocks

:tada: :unicorn: :heavy_heart_exclamation:


"$().dropdown('set selected', value)" no effect after update “select option”’

In my project, need update 'select option' and select one option.
Why the update is no longer work later.
JSFiddle example: https://jsfiddle.net/zhangyuanliang/a94rs9a6/9/

I would say, your css selector is wrong and your value should be '1'.
so somethibng like:
$('.dropdown').dropdown('set selected', '1');

@leonidas-o I forgot to modify it, but it was not the problem.
JSFiddle example:  https://jsfiddle.net/zhangyuanliang/a94rs9a6/9/

@vinayakkulkarni  My problem has not been solved, why is it closed?

Hi @zhangyuanliang, sorry for the confusion, it was closed, because although it’s a valid usage question, we’ve limited GitHub Issues to bug reports and feature requests, keeping the board more manageable for maintainers; see the contributing guidelines for more information on what kind of posts should find themselves into the GitHub Issues board. Please use one of our other support resources in the future:

Gitter chatroom
Official forums
StackOverflow

On your question, you have two options here. One is to use the setup menu method—it’s barely documented, but there’s a PR to fix that, you can use it in the meantime—here’s an example:
// This is everything that should be in your `on click`:
$('.dropdown')
  .dropdown('setup menu', {
    values: [
      {
        value: '3',
        text: 'three',
        name: 'three'
      },
      {
        value: '2',
        text: 'two',
        name: 'two'
      },
      {
        value: '1',
        text: 'one',
        name: 'one'
      }
    ]
  })
  .dropdown('set selected', '1')

Another option is to use the full HTML pattern instead of initializing a dropdown on a select element directly. This way, you can modify a dropdown’s HTML and call the refresh method to update it internally, here’s an example.
When you initialize a dropdown on a select element, it hides a select element and uses it only for storage, so it’s pointless to manipulate it directly. If you have more questions, I’ll be happy to answer them in this thread.

@Banandrew Thank you very much. I still have a question: where i can find some examples of the use of behavior, like the usage of 'setup menu'.

@zhangyuanliang Other than the PR that I mentioned, nowhere. What is confusing about it? Its usage is pretty straightforward, the structure is always the same like in the example above, and setup menu removes all options from a dropdown, then recreates a menu using the values that you passed to the method.

@Banandrew  I have understood your answer.  Just thinking about how to better reference your official documents. My English is not good Please understand. Thank you again for your answer.

@zhangyuanliang Not sure I understand, if you mean examples of various behaviours that are listed at the bottom of the dropdown component’s usage tab, the documentation doesn’t have them, well, maybe some of them, but not all, and not in one place—they’re probably scattered across all tabs. You’ll just have to read their descriptions and try them out.
If you’re stuck doing something, you can always ask a quick question in our Gitter chatroom.

I have run into similar problems. "set exactly" does not seem to work AT ALL for dropdowns getting data from a remote service. Documentation for many Semantic UI components is sparse and incomplete - to put it mildly. After some looks into the source code, I came up with a solution different from the ones that were suggested here and in other postings. In fact, no changes to the Semantic UI source were necessary - simply a new function.
var initializeDropdown = function (elem, ids) {
$(elem).dropdown("set value", ids);
var idList = ids.split(",");
for (var i = 0; i < idList.length; i++) {
var value = someFunctionToTranslate(ids[i]);
$(elem).dropdown("add label", ids[i], value);
}
}
Use like this (assuming a function someFunctionToTranslate() is defined):
initializeDropdown("#my-dropdown", "1,93,22,19");
Given an element identifier and a comma-separated string of some identifiers, this will set the value of the dropdown and fix the visual appearance by adding the necessary label objects. The existing function "set exactly" does not seem to achieve that... no time for me to check why. I'm posting this just in case anybody needs a solution to this question as well. My approach works nicely with 2.2.13. I'll check out 2.3.0 to see if the problem still persists.

I don't know why, but when use setTimeout it's working:
setTimeout (function(){ $('.dropdown').dropdown('set selected', '1'); }, 500);

same here with timeout, any suggestion? it's this solved in fomantic-UI?


Found bug when compiling RGBW in develop

With RGB is ok and compiles, works correctly. When the RGBW define is uncommented an issue with the strip appears
(Strange does not find setPixelColor in the Neopixel class although is declared)
So I temporarily made a copy from master in:
https://github.com/martinberlin/Remora/tree/master-rgbw
until is solved.
I must say I dislike this define switches when working together with C++ classes. It makes things insecure.
Note that master does not have the UDPX Pixel protocol so it's only animations done on the ESP32 itself triggered by short UDP commands.

Soon develop will be updated. Check the new proposal in #10 to see how we will locate the build_flags in platformio.ini and remove them from Config header


Install error

Hello,
Great project thank you for your tremendous work
I am using laravel 5.6 and php7.1 i try to use this in my project but it's give errror
here is the error:
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for pixelpeter/laravel5-woocommerce-api-client 3.0 -> satisfiable by pixelpeter/laravel5-woocommerce-api-client[v3.0.0].
- pixelpeter/laravel5-woocommerce-api-client v3.0.0 requires automattic/woocommerce 1.3.* -> satisfiable by automattic/woocommerce[1.3.0] but these conflict with your requirements or minimum-stability.
how can i solved it something i missed out or version issues

Please show me you composer.json so I can help you

Closing because no additional information provided


Dynamic Field feature like Solr

Hi, do you plan to add dynamic field like solr and we would like dynamic fields to support facet functionality.
Thanks.

Hello @umitgunduz ,
Dynamic Fields are a feature of "Solr" which is an HTTP server on top of Lucene. Tantivy is more like lucene than it is Solr or Elasticsearch.
That said, I have built my own type of dynamic field code that then does the right things with tantivy, but I don't think Tantivy is the right place for that code.

Thanks @drusellers.

@umitgunduz

Hello @fulmicoton,
In fact, I found the answer to similar problems when visiting the issues. https://github.com/tantivy-search/tantivy/issues/301 https://github.com/tantivy-search/tantivy/issues/385
The main problem is that must be re-index again all document when a new field is added in schema. This is a very cost effective method for large amounts of data and is not realistic.
Our need and expectations is a structure that has flexible schemas and store hierarchical data like document based nosql and has a search engine features: full-text search, facet, pivot etc. Also nested documents method is not a used and loved it method is very difficult. Because there is no fixed data structure in today's world and search engines are not just used only for text search. It's not easy to create such a structure I know maybe it's wrong to have it in a search engine library. However, most developers will love a structure in this way.
Thanks.

Dynamic Fields are a feature of "Solr" which is an HTTP server on top of Lucene. Tantivy is more like lucene than it is Solr or Elasticsearch.
That said, I have built my own type of dynamic field code that then does the right things with tantivy, but I don't think Tantivy is the right place for that code.

I tend to disagree. I have had a look at Toshi and Bayard, both copy the rigid schema definitions of tantivy. Lucene, on the other hand, does not enforce a rigid schema, you can add fields on the fly when adding documents, such as:
    Document document = new Document();
    document.add(new StringField("id", strId, Field.Store.YES));
    document.add(new TextField("firstName", firstName , Field.Store.YES));
    document.add(new TextField("lastName", lastName , Field.Store.YES));
    document.add(new TextField("website", website , Field.Store.YES));

This makes the creation of dynamic fields very easy because you "just" have to nudge your application to handle fields that end with _t to be text indexes (or whatever you defined). It would be tremendously helpful to have such fields - I frequently work with dynamic schemas that are not known in advance (e.g. user defined fields), and thus, this is a killer feature of Lucene (and Solr).
I do not know the inner workings of tantivy, but Lucene does not require a reindex of all the data once a new field is added, because indexes are sparse by definition. So, yes, I would definitely be happy if tantivy would support dynamic index fields that are defined in the schema (e.g. by giving them names like *_t, just like Solr).


[Snyk] Security upgrade com.amazonaws:aws-java-sdk-core from 1.11.697 to 1.12.632

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

pom.xml

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

624/1000  Why? Has a fix available, CVSS 8.2
XML External Entity (XXE) Injection SNYK-JAVA-COMFASTERXMLJACKSONCORE-1048302
com.amazonaws:aws-java-sdk-core:  1.11.697 -> 1.12.632
No
No Known Exploit

589/1000  Why? Has a fix available, CVSS 7.5
Denial of Service (DoS) SNYK-JAVA-COMFASTERXMLJACKSONCORE-2421244
com.amazonaws:aws-java-sdk-core:  1.11.697 -> 1.12.632
No
No Known Exploit

616/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.9
Denial of Service (DoS) SNYK-JAVA-COMFASTERXMLJACKSONCORE-3038424
com.amazonaws:aws-java-sdk-core:  1.11.697 -> 1.12.632
No
Proof of Concept

616/1000  Why? Proof of Concept exploit, Has a fix available, CVSS 5.9
Denial of Service (DoS) SNYK-JAVA-COMFASTERXMLJACKSONCORE-3038426
com.amazonaws:aws-java-sdk-core:  1.11.697 -> 1.12.632
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 XML External Entity (XXE) Injection
🦉 Denial of Service (DoS)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


build with yarn workspaces

seems to build the worker now

we probably need to run yarn workspace as part of the "setup" task in package.json

we probably need to run yarn workspace as part of the "setup" task in package.json

I think just yarn build in jacdac-ts


Added navigational links to /

Now users can more easily see all current examples instead of having to remember what the other paths were and typing in each endpoint manually.

Coverage decreased (-0.09%) to 92.896% when pulling db332e10400de764d786801c25c517cb54123bf2 on Chiouonthis:add_navigation_to_example_home into 06f2b9226b403fbde09b8694e4125186e21694cd on Hrabal:master.

I've also created a homepage.py that leverages TemPy to do the same thing, if we would prefer to use that instead of HTML tags for navigation. Please let me know if you'd rather me commit and submit a pull request for something like that.

Hi @Chiouonthis, I never had time to really work on the examples but yes, ideally every page in this microsite is served using TemPy. If you are willing to redo the home handler with TemPy I'll close this PR.
Also, I wrote those examples some TemPy versions ago, so if you find something broken or with a weird output please let me know!

Hi @Chiouonthis, I never had time to really work on the examples but yes, ideally every page in this microsite is served using TemPy. If you are willing to redo the home handler with TemPy I'll close this PR.

Sure thing, I can submit a new PR with the TemPy version.

Also, I wrote those examples some TemPy versions ago, so if you find something broken or with a weird output please let me know!

I noticed a few odd renderings; I will report them as separate issues when I get a chance to look at them again and if it seems necessary. Thanks!

Thanks!


nixos/gnome: be pipewire by default

Without that, gnome enables both pipewire and pulseaudio by default;
which leads to issues with eg. bluetooth headsets as the gnome settings
command go to pulseaudio but the headset is connected to pipewire (and
correctly has sound but thus can't be reconfigured)
Fixes https://github.com/NixOS/nixpkgs/issues/163399
nixpkgs-check report
version: nixpkgs-check v0.1.0 on NixOS 21.11, sandbox = "true"
packages declared changed: {"nixosTests.gnome", "nixosTests.gnome-xorg"}
manual tests declared performed:

😢 not built on NixOS
😢 not built on MacOS
😢 not built on Other Linux distributions
manually overridden these configuration parameters in my config, rebooted and checked the bluetooth headset now works properly

complies with contributing.md: ✔ yes
package nixosTests.gnome: ✔ continued building
package nixosTests.gnome-xorg: ✔ continued building
closure size for nixosTests.gnome: ✔ increased by 112 B, from 34.6 KB to 34.7 KB
tests of nixosTests.gnome: 😢 there are no tests
closure size for nixosTests.gnome-xorg: ✔ increased by 608 B, from 28.4 KB to 29.0 KB
tests of nixosTests.gnome-xorg: 😢 there are no tests

If I remember correctly, nixos-generate-config should also be adapted accordingly

@alyaeanyx I've just pushed a new commit to update a comment in nixos-generate-config that could be misleading otherwise. Anyway, if people try to enable pulseaudio anyway they should hit the assertion services.pipewire.pulse.enable => !hardware.pulseaudio.enable.
With this I think it's enough to avoid most issues, does that make sense to you?

Should also have a notice in the release notes :)

With this I think it's enough to avoid most issues, does that make sense to you?

Yes, I think that should also be sufficient to fix #163399 in most cases

@06kellyjac I'm actually wondering whether it should: to the best of my understanding currently gnome by default enables both pulseaudio and an incomplete pipewire, which is basically guaranteed to cause trouble somewhere. So I'm considering this as a bugfix currently, though it's only a weak opinion.
Do you have strong opinions on whether this should be in the release notes? :)

I think it's still important to let users know about the change. Both so they're generally aware and also if they know there's an issue they'll face they can force pipewire off and pulse back on.
I can't see adding the note being a negative

We might also need to enable wireplumber. cc @jansol

Wireplumber is enabled by default whenever pipewire is since #159546.

For the release notes, I think you will also need to run nixos/doc/manual/md-to-db.sh to update the generated files (the NixOS manual checks is failing due to this).

Thank you! Just did so, it's my first time updating the release notes since the switch to markdown and I hadn't expected an additional step to have become necessary :sweat_smile:

This PR is likely redundant now because #165231 was merged

I don't think this is redundant though now it becomes more of a policy/design question of which sound server should be used by default on NixOS without the pressure of clashing between pulseaudio and pipewire causing issues.
(So far I have had a better experience with pipewire, when compiling stuff the rtkit support reduces stuttering that I normally experienced when the CPU had a complete workload)

I think all desktops should enable audio by default and use the implementation that works best (pulseaudio or pipewire).
A user could still set sound.enable = false; or just mute in the desktop.

Just FWIW, I didn't follow the discussions much since reading the comment about this having already been fixed in another already-landed PR.
I'm willing to update this PR if people want to land it, but am not going to enter a political fight of pulseaudio vs. pipewire — both are good to me and I really don't care :sweat_smile: So if anyone is willing to both do a summary of what's missing in this PR and land, taking responsibility for the pulseaudio and pipewire debate, feel free to tell me what's missing!
If not, I'll probably just close this PR next time I come across it by chance, as if I understand correctly nixos upstream is already in a "works fine" state right now :)

Welp, I guess I'm closing this then, feel free to take over this PR if you want to :)


Revisit management of version, from various levels of APIs.

We use at least 2 levels of APIs in which we set the version of a tree of Groups.
1 level is at the RootGroup class, in functions such as updateApp, removeApp, and another is
at the GroupManager level, in functions such as updateRoot. Since GroupManager uses the functions from RootGroup to modify the RootGroup, also performs other operations such as writing the group to the GroupRepository, it seems that the version passed to the GroupManager API has overrides the one passed to RootGroup.
For example:
GroupManager.updateRoot(_.removeApp(appId, _ => newApp, version1), version2, /* ... */);

I believe version2 in this case ends up being used rather than version1.
A little more subtle issue is that removeApp has a default argument for version.
def removeApp(/* ... */, version: Timestamp = Timestamp.now())

So, on an invocation like:
GroupManager.updateRoot(_.removeApp(appId, _ => newApp), version2, /* ... */);

We don't even see that in fact there's a Timestamp.now() that is being overridden by version2.
This contrary to the updateApp API which requires a version explicitly.
This ticket is to capture the investigation of:
(1) which level should be responsible for versioning?
(2) should the bumping of version be implicit or explicit? keeping in mind testability, since if version is always implicit, we can't provide the expected value to test against.

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-4711. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.


Error in 2.0.0-alpha.0 version on form submit

Hi
I am getting the  following warning on form submit in my console.
Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op.
Please check the code for the AvForm component.

I am dispatching form submit event which calls other component. But AvForm does some state stages after forrm submit

It's not an error just a warning which results in a harmless no-op

Yes. But cant it be avoided? @TheSharpieOne

Not in the current version. It is something that will be addressed in the planned rewrite.

closed via #144


Fix invite user validation issues in signup

refs #5652

wrap emails input in {{gh-form-group}} component to give element success/error classes
pull validation messages into submit button
clean up validation related aspects of step three controller

Perfection! :+1:


sugestion: blessed-browser?

one could pass events/outputs (eg via socket.io) via http.server(), having a 'shell in the web'?
eg: http://sdether.github.io/josh.js/

apology, just realized you're the author of tty.js ;~)  I guess you know what i ment.


unread-anywhere keyboard shortcut conflict in Firefox

Description

https://github.com/refined-github/refined-github/pull/8008

The conflict with Firefox is unfortunate:

https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly
Example URLs
Sorry, I can't recall where I was before the unexpected opening of ten other tabs. Probably at a GitHub URL.
My bad, I should have mentally translated the mention of cmd at

https://github.com/refined-github/refined-github/releases/tag/24.11.5

– to the Ctrl Control key (on e.g. FreeBSD).

Totally, it's always the issue with keyboard shortcuts. You'd have to disable the feature for now until we find a solution. Perhaps we should use g u, as a "go to unread notifications"

Thanks!


Getting connection failed issue while uploading from google drive , facebook, instagram etc

Hi ,
We are trying to use this library in our application (angular 8) , after integration we are trying to connect google drive ,facebook but we are getting connection failed error, can you please check and respond as soon as possible ,
we are attaching screen shot below from ur stackblitz environment \

Hi,
Google drive, facebook etc doesn’t allow to connect from localhost or sites
like stackbiltz.
One thing you can try is setup in localhost and then disable security in
chrome and test.
Thanks,
Adrita
On Mon, 18 Jan 2021 at 10:33 PM, sandeepreddy1248<EMAIL_ADDRESS>wrote:

Hi ,
We are trying to use this library in our application (angular 8) , after
integration we are trying to connect google drive ,facebook but we are
getting connection failed error, can you please check and respond as soon
as possible ,
we are attaching screen shot below from ur stackblitz environment \
[image: image]
https://user-images.githubusercontent.com/43595350/104944393-24ed8380-5985-11eb-9433-bf239a0f933b.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/adritasharma/uppy-angular-library/issues/15, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AG7KMU64TWF6KDNM3LOV46LS2RSW3ANCNFSM4WHSXDZA
.

Hi,
Google drive, facebook etc doesn’t allow to connect from localhost or sites
like stackbiltz.
One thing you can try is setup in localhost and then disable security in
chrome and test.
Thanks,
Adrita
On Mon, 18 Jan 2021 at 10:33 PM, sandeepreddy1248<EMAIL_ADDRESS>wrote:

Hi ,
We are trying to use this library in our application (angular 8) , after
integration we are trying to connect google drive ,facebook but we are
getting connection failed error, can you please check and respond as soon
as possible ,
we are attaching screen shot below from ur stackblitz environment \
[image: image]
https://user-images.githubusercontent.com/43595350/104944393-24ed8380-5985-11eb-9433-bf239a0f933b.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/adritasharma/uppy-angular-library/issues/15, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AG7KMU64TWF6KDNM3LOV46LS2RSW3ANCNFSM4WHSXDZA
.

Well, that's not entirely true. As you can see in the console, companion.uppy.io page blocks your requests by CORS.
If you want to use other providers like facebook etc you need to run your own instance of Companion and set the cors policy to accept requests from your app.
But uppy-angular-library doesn't allow to set up url of companion instance - I solved it in PR: https://github.com/adritasharma/uppy-angular-library/pull/13
@sandeepreddy1248 you can also use my version of library: https://github.com/prezesp/uppy-angular-library/releases/tag/v0.1.5

Well, that's not entirely true. As you can see in the console, companion.uppy.io page blocks your requests by CORS.
If you want to use other providers like facebook etc you need to run your own instance of Companion and set the cors policy to accept requests from your app.
But uppy-angular-library doesn't allow to set up url of companion instance - I solved it in PR: https://github.com/adritasharma/uppy-angular-library/pull/13
@sandeepreddy1248 you can also use my version of library: https://github.com/prezesp/uppy-angular-library/releases/tag/v0.1.5

Thanks @prezesp...  I am seeing one issue well, i am integrating uppy with angular 9 project where companionUrl?: string is not supporting :
If you have project where you have integrated with angular 9 will be helpful

Thanks @prezesp...  I am seeing one issue well, i am integrating uppy with angular 9 project where companionUrl?: string is not supporting :
If you have project where you have integrated with angular 9 will be helpful

Hi while trying to access Google drive, facebook  we are seeing cors issue , we have installed cors extension on my local machine now it is working but how we can enable cors programmatic , please find attachment below

Hi while trying to access Google drive, facebook  we are seeing cors issue , we have installed cors extension on my local machine now it is working but how we can enable cors programmatic , please find attachment below

Thanks @prezesp... I am seeing one issue well, i am integrating uppy with angular 9 project where companionUrl?: string is not supporting

@9491340980
Have you tried to install the version I linked in the previous post? You have to install like this:
https://github.com/prezesp/uppy-angular-library/releases/download/v0.1.5/uppy-angular-0.1.5.tgz

@adritasharma Any chance to merge my pull request?

Thanks @prezesp... I am seeing one issue well, i am integrating uppy with angular 9 project where companionUrl?: string is not supporting

@9491340980
Have you tried to install the version I linked in the previous post? You have to install like this:
https://github.com/prezesp/uppy-angular-library/releases/download/v0.1.5/uppy-angular-0.1.5.tgz

@adritasharma Any chance to merge my pull request?

@sandeepreddy1248
First of all, I guess you should learn more about CORS.
Next, try to run your own Companion instance. Imho the best option is to create your express.js app and integrate it with the Companion library (check example at https://uppy.io/docs/companion/). If you succeed, you can enable cors in your server and allow requests from any origin. Maybe this snippet can help:
const express = require('express');
const cors = require('cors');
const companion = require('@uppy/companion');

const corsOptions = {
    origin: '*',
    credentials: true,
    allowedHeaders: ['Authorization', 'Origin', 'Content-Type', 'Accept', 'uppy-auth-token'],
    methods: ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE', 'OPTIONS'],
    optionsSuccessStatus: 200,
};

var app = express();
app.use(cors(corsOptions));

Finally, don't forget that you will need to create a Facebook application with access to photos and attach its key and secret in Companion.

@sandeepreddy1248
First of all, I guess you should learn more about CORS.
Next, try to run your own Companion instance. Imho the best option is to create your express.js app and integrate it with the Companion library (check example at https://uppy.io/docs/companion/). If you succeed, you can enable cors in your server and allow requests from any origin. Maybe this snippet can help:
const express = require('express');
const cors = require('cors');
const companion = require('@uppy/companion');

const corsOptions = {
    origin: '*',
    credentials: true,
    allowedHeaders: ['Authorization', 'Origin', 'Content-Type', 'Accept', 'uppy-auth-token'],
    methods: ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE', 'OPTIONS'],
    optionsSuccessStatus: 200,
};

var app = express();
app.use(cors(corsOptions));

Finally, don't forget that you will need to create a Facebook application with access to photos and attach its key and secret in Companion.

CORS has to be handled from backend by allowing origins as @prezesp mentioned.


Dependency management via dep and multi-stage docker build

The dependencies can be gathered by simply doing dep ensure. On doing that, you should see a vendor directory in your local repository, which is then used to build the Docker image by typing something like docker build -t abhartiya/tools_subfinder .
Hopefully this is helpful!

Thank you. We can merge.

@codingo thank you. :)
Back yet?


LeapJS Leap Motion API

Exokit has supported Leap Motion controller for a while now with a custom API, but there is now LeapJS.
We should minimize the amount we're inventing and try to mimic the official API from that library as much as possible.

i wonder could you abstract this altogether from the engine? leap motion uses a local websocket and their JS lib is just a wrapper for that ive used it quite a few times. It should be usable without the need to have integrated sdk which is less maintenance on you!

WS intuitively seems like more maintenance than doing native, since it brings in network configuration to the list of things to worry about.
However in either case it would be an abstracted binding. We actually already have ML bindings, they just need to be updated to the newer SDK and APIs.


add librealsense2 to melodic/distribution.yaml

This adds librealsense2 to melodic.  If this fails to build due to cmake errors for missing packages I have a PR to fix that (https://github.com/IntelRealSense/librealsense/pull/5523).  Hopefully that can get merged soon.

Could you please propose an update to #22938 instead of just trying to replace it so we can keep the discussion in one place where we already have the maintainer's input.


All: Increase number of days of inactivity of stale issues to 60 days

Hi @staabm,
This will help us more to not miss some important issues. 30 days is good, but sometimes I want to address an issue and a month pass quickly.
Also, do you think we need to add some labels (e.g question) to the list of excluded labels?

Also, do you think we need to add some labels (e.g question) to the list of excluded labels?

yeah, I guess this is a good idea.


[SP-3694] Backport of PDI-16221 - "file" option of Kitchen and Pan do not work in the file system (7.1 Suite)

fixed definition of the absolute path

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
ant -Dtestreports.dir=bin/reports/unit-test -f engine/build.xml clean-all resolve jacoco && ant -f engine/build.xml checkstyle publish-local

Cleanup Commands
rm -r ~/.ivy2/local || echo no publish local to remove

Changed files
  engine/src/org/pentaho/di/core/util/FileUtil.java
  engine/src/org/pentaho/di/kitchen/Kitchen.java
  engine/src/org/pentaho/di/pan/Pan.java
  engine/test-src/org/pentaho/di/utils/FileUtilsTest.java

Unit test coverage change
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.
org.pentaho.di.core.auth.core.impl.DefaultAuthenticationConsumerFactory

Branch Change:  + 7.14%
Complexity Change:  + 7.69%

org.pentaho.di.core.injection.bean.BeanInjector

Branch Change:  + .84%
Complexity Change:  + 1.39%

org.pentaho.di.core.util.FileUtil

Branch Change:  + 9.66%
Complexity Change:  + 11.43%
Instruction Change:  + 8.07%
Line Change:  + 1.84%
Method Change:  + 16.67%

org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change: -.39%:small_red_triangle_down:
Complexity Change: -.51%:small_red_triangle_down:
Instruction Change: -.08%:small_red_triangle_down:

org.pentaho.di.job.entries.waitforsql.JobEntryWaitForSQL

Branch Change:  + 1.32%
Complexity Change:  + 1.85%
Instruction Change:  + .27%

org.pentaho.di.pan.Pan

Instruction Change:  + .00%

org.pentaho.di.trans.step.StepMeta

Branch Change:  + .68%
Complexity Change:  + .58%
Instruction Change:  + .19%
Line Change:  + .26%

org.pentaho.di.trans.steps.combinationlookup.CombinationLookupMeta

Instruction Change: -.04%:small_red_triangle_down:

org.pentaho.di.trans.steps.constant.ConstantMeta

Instruction Change: -.10%:small_red_triangle_down:

org.pentaho.di.trans.steps.csvinput.CsvInputMeta

Instruction Change:  + .05%

org.pentaho.di.trans.steps.datagrid.DataGridMeta

Instruction Change:  + .09%

org.pentaho.di.trans.steps.dbproc.DBProcMeta

Instruction Change: -.11%:small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Branch Change:  + .31%
Instruction Change:  + .06%
Line Change: -.23%:small_red_triangle_down:
Method Change: -1.02%:small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -2.08%:small_red_triangle_down:
Complexity Change: -2.11%:small_red_triangle_down:
Instruction Change: -.14%:small_red_triangle_down:
Line Change: -.37%:small_red_triangle_down:

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change: -2.00%:small_red_triangle_down:
Complexity Change: -1.89%:small_red_triangle_down:
Instruction Change: -.17%:small_red_triangle_down:

org.pentaho.di.trans.steps.ldapoutput.LDAPOutputMeta

Instruction Change: -.06%:small_red_triangle_down:

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Instruction Change:  + .18%
Line Change:  + .48%

org.pentaho.di.trans.steps.replacestring.ReplaceStringMeta

Instruction Change:  + .07%

org.pentaho.di.trans.steps.sort.SortRowsMeta

Instruction Change:  + .08%

org.pentaho.di.trans.steps.sortedmerge.SortedMergeMeta

Instruction Change:  + .18%

org.pentaho.di.trans.steps.symmetriccrypto.symmetriccryptotrans.SymmetricCryptoTransMeta

Branch Change:  + 3.33%
Complexity Change:  + 1.85%
Instruction Change:  + .28%

org.pentaho.di.trans.steps.synchronizeaftermerge.SynchronizeAfterMergeMeta

Instruction Change: -.04%:small_red_triangle_down:

org.pentaho.di.trans.steps.uniquerows.UniqueRowsMeta

Instruction Change:  + .18%

org.pentaho.di.trans.steps.webservices.WebServiceMeta

Branch Change:  + 1.79%
Complexity Change:  + 1.19%
Instruction Change:  + .07%

@pamval @stepanovdg @mbatchelor please review


ERR: exempt flags from fallback decimal reason code printing

Extracted from #17056 as discussed there.
This exempts flags from the fallback decimal reason code printing,
such that, e.g., reason(524550) becomes reason(262), which I consider much more readable/helpful.

Independently of the fallback decimal printing for reason codes,
one could print out part of the flags included in the reasons, namely the fatal.
This way, e.g.,
...:error:01880106:...:foo:malloc failure:file:1234:

could become
...:fatal:01880106:...:foo:malloc failure:file:1234:

What do others think?

Independently of the fallback decimal printing for reason codes, one could print out part of the flags included in the reasons, namely the fatal. This way, e.g.,
...:error:01880106:...:foo:malloc failure:file:1234:

could become
...:fatal:01880106:...:foo:malloc failure:file:1234:

What do others think?

That would look nice however I am not sure if it isn't potentially breaking third party scripts or so.

24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set.  Please review the updates and set the label manually.

Independently of the fallback decimal printing for reason codes, one could print out part of the flags included in the reasons, namely the fatal. This way, e.g.,
...:error:01880106:...:foo:malloc failure:file:1234:

could become
...:fatal:01880106:...:foo:malloc failure:file:1234:

What do others think?

That would look nice however I am not sure if it isn't potentially breaking third party scripts or so.

I share this concern...  I've seen (and written) scripts that filter stdout/stderr using exactly :error: as the pattern.
At the same time, I like the thought.  We might also want to consider actually using that flag in code, you know, to signal if an error is recoverable or not (oh, and we could probably imagine other flag uses)...  that could probably make future code a lot less messy than all this comparison of exact library and reason codes that's currently done all over the place.
... but this is clearly something for a major new release, i.e. 4.0 at the earliest.

Merge to master - thanks @beldmit for the approval.
Thanks also to @t8m and @levitte for your comments; I've introduced FR #17101 accordingly.


Fix tranform_default in NestedListSetting

I found an error in the implementation of NestedListSetting. Default value is not transformed in case that transform_default is set to True. I've created this pull request to fix the issue.
I also had to update the version of pytest in order for tests to pass. Unfortunatelly, there are still some pypy tests failing, but they are also failing on master (something about creating the virtualenv).

Please take a look at it and let me know if there is anything I can improve. It would be also great if you could release a new version shortly after merging this, since I've bumped to this issue while using the appsettings in one of our projects and I'd like to avoid any workarounds, if possible.

LGTM

Hey, LGTM as well, will merge and release :slightly_smiling_face:
I'll open a new issue for the pypy problem.

Just released, tell me if it's fine.

Well, the build went fine for pypy in Travis, I'm a bit confused :confused:

Works like a charm, thank you :-). I'm not sure about the pypy, but it's possible that they released some fix in the meantime.


Fixing problem with edit-feature-overlay button when basemap has changed

Releated: #11474.
There is no new code, basically because it was working ok previously, but when a new baselayer is set, we render the view again in order to decide if events should keep working or not. Good thing is we enable/disable events if the feature is editable or not, so we avoid to check if the proper element has a class, which is a bit unstable. Added a notification when the feature data is requested (It was a TODO so...).
I made changes over google-maps branch so there is one commit not present in the diff, please take a look here. It should be part of this PR.
Things to test

[ ] When a new base layer (with a different provider) is set, edit a feature button should keep working.
[ ] Try editing a feature and check a loading notification appears, and when row data is loaded, it should disappear.
[ ] If user applies a custom query over a layer, edit feature button should be disabled.

Let's change in this PR, I totally agree, it is a bit weird and probably complex.

@alonsogarciapablo the build is showing some errors in the DI specs. Should we do something about them?

@xavijam I suggest you merge google-maps branch into this branch (I fixed some tests there yesterday). On the other hand, it looks like failures might actually be related to the EditFeatureOverlay thing... not sure if it has something to do with your changes, but:
`TypeError: 'undefined' is not a function (evaluating 'this._editFeatureOverlay.render()') in file:///home/ubuntu/workspace/CartoDB-PR-testing/.grunt/cartodb3-specs.js (line 47636)`

I did that, but still failing, let me try again.

They keep failing :(

It looks like now there's just one failing spec:


allow control over this.rotateStart for cardboard and mouse-keyboard displays

since these bind on window and do not perform any checking whether the touch or click is meant for the canvas, any other elements the canvas coexists with end up having to block the event from bubbling up.

Should this be bound on the canvas instead, then?

That solves the problem partially, from the POV of where the event listener should be installed. Sometimes even when the mousedown/touchdown reaches the canvas, it's desirable to disallow such "manual" panning to be initiated. Which is what canInitiateRotation in the PR does. Also if something sits on top of the canvas, then that may prevent the event from reaching the canvas in a situation where this is desired (which is solvable via css).

With the removal of MouseKeyboardVRDisplay in 0.10.0, I don't think this is relevant any longer -- please reopen if I'm misunderstanding, thanks!


Billing platform component

@LucasBrazi06 : UI for enabling the 'Billing Platform" module.
No risks with this one. I'll merge now!


Config issue while adding resources (Windows only maybe)

Any idea why this is happening. Spent a few hours and can't get it to work on my windows machine.
line 317: mapping values are not allowed in this context
I've attached the config file.
thanks! David.
pdirzeomega.zip

@DavidDattner-nbcuni looks like an indentation issue at the bottom, fixed version attached
pdirzeomega.yaml.zip

thanks!


feat: support setting input types of subgraph in fallback, handle Ten…

…sor type in evaluated_value_map branch in MarkOutputs
Signed-off-by<EMAIL_ADDRESS><EMAIL_ADDRESS>Description
When I dig into the "Unkown output type" issue, I found it wasn't caused by Collection, instead, it is caused by prim::NumToTensor.
prim::NumToTensor return an at::Tensor and stored in ctx->evaluated_value_map in MarkOutputs function. So we need to handle such case in MarkOutputs.
Besides, I found that when construct tensor graph, we won't set the input data type, and this data type will be kFloat in default. So I modified some code to support other type like kInt which is returned from prim::NumToTensor.
Fixes https://github.com/NVIDIA/TRTorch/issues/539
Type of change
Please delete options that are not relevant and/or add your own.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
This change requires a documentation update

Checklist:

[ ] My code follows the style guidelines of this project (You can use the linters)
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas and hacks
[ ] I have made corresponding changes to the documentation
[ ] I have added tests to verify my fix or my feature
[ ] New and existing unit tests pass locally with my changes

@narendasan

Merged in staging branch


Installing in windows

Hello, has anyone success with running ocp_freecad_cam in a windows (11) environment?
When I run python code I got an error "ModuleNotFoundError: No module named 'FreeCAD'". I've tried a lot...
The installation of ocp_freecad_ cam library with pip looks fine (it's not 1.0.0 but 0.94, but this shouldn't an issue)
I think the problem is the path for the freecad-libraries:
echo %PYTHONPATH%
showed only itself %PYTHONPATH%
So I used:
set PYTHONPATH=.;%PYTHONPATH%;C:\Users...\PythonSoftwareFoundation.Python.3.10;C:\Users...\freecad\FreeCAD_weekly-builds-34651-2023-10-13-conda-Windows-x86_64-py310\lib;C:\Users...\freecad\FreeCAD_weekly-builds-34651-2023-10-13-conda-Windows-x86_64-py310\Mod\Draft;C:\Users\tux\freecad\FreeCAD_weekly-builds-34651-2023-10-13-conda-Windows-x86_64-py310\Mod\Path
(and many more ;-) ) to add the directories to the Pathvariable. But I even don't know if the python-environment in windows11 the path variable is handled like this. Python environment is installed via windows app store and it works fine with vs code and "standalone" (with all additional installed python modules).
In freecad-zip for windows I cannot find a python site-packages directory, maybe this is a problem.
I'll try on, and post the solution if I get one.
Any help would be appreciated to cut the waste of time.
Thank you
Markus

Version with pth-file in directory site-packages did also not work:
C:\Users...\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\freecad.pth
I've tried with / and \ and all I can think about.
And a lot more.
Unfortunatelly open_freecad_cam is not usable for Windows.

Unfortunatelly open_freecad_cam is not usable with Windows.

Thanks for doing some pioneer work, you're probably the first one to try Windows.
I can try doing some testing too and report back, but it might take me some days to get to it. We can keep this issue open, if you don't mind.
I imagine it should work on Windows too, but no doubt it can be tricky to get all the stars aligned..

Using native Windows is now briefly documented in the readme: https://github.com/voneiden/ocp-freecad-cam#windows-7z-installation-example


Issue with malformed base_urls

Hey everyone,
I just ran into an issue where the following code results in a 404 error:
settings = Req.new(
  base_url: "https://api.apaleo.com/settings/v1",
  auth: {:bearer, access_token},
  headers: [
    "content-type": :"application/json",
  ]
)

Req.get!(settings, url: "/properties/TEST")

Thats because URI.merge("https://api.apaleo.com/settings/v1", "/properties/TEST")
results in "https://api.apaleo.com/properties/TEST".
I think it should be mentioned somewhere that a trailing / in the :base_url an no leading one in the :url are less error prone.
Maybe the readme should feature that style?

Thank you for the report. This is a bug, what you expected should work. A PR is appreciated.

btw,
headers: [
  "content-type": :"application/json",
]

can be also written as:
headers: [
  "content-type": "application/json",
]

or
headers: [
  content_type: "application/json",
]

it is fine as is of course :)

But what is the intended way? Would a simple
"https://api.apaleo.com/settings/v1" <> "/properties/TEST"

more sufficient than
URI.merge("https://api.apaleo.com/settings/v1", "/properties/TEST")

otherwise we should define the behavior beforehand and than implement it.

not quite. If :url contains a full url (has schema), :base_url is ignored. That's why we went with URI.merge as it does it already.

in terms of specifying the behaviour I'm thinking about something like this. wdyt?

base_url
url
result

https://a.com
x
https://a.com/x

https://a.com
/x
https://a.com/x

https://a.com/x
y
https://a.com/x/y

https://a.com/x
/y
https://a.com/x/y

https://a.com
https://b.com
https://x

but happy to make it stricter, reject some of the values, if that would make the implementation simpler and/or be more predictable.

base_url
url
expected result
URI result
Comments

https://a.com
x
https://a.com/x
https://a.com/x
same

https://a.com
/x
https://a.com/x
https://a.com/x
same

https://a.com/x
y
https://a.com/x/y
https://a.com/y
trailing / missing

https://a.com/x/
y
https://a.com/x/y
https://a.com/x/y

https://a.com/x
/y
https://a.com/x/y
https://a.com/y

https://a.com/x/
/y
https://a.com/x/y
https://a.com/y

https://a.com/x/y
../foo
?
https://a.com/foo

https://a.com/x/y/
../foo
?
https://a.com/x/foo

https://a.com
https://b.com
https://b.com
https://b.com
same

I think we would win a lot by requiring the trailing / maybe even just appending it?

Fixed in #132


remote control?

Hello, can we send MQTT commands to the sonoff module from another client module esp 8266 (remote control). What part of the code handles this action.

The pushbutton does implement this already. It does not switch the relay directly, but instead does publish the switched state onto the MQTT broker. There the code itself is subscribed to receive the state switch command indirectly from the pushbutton.
https://github.com/kfricke/micropython-sonoff-switch/blob/master/sonoff_switch.py#L74
This line does show you the MQTT publish command. It is embedded in a callback methd for the used scheduling framework, but can easily be seen as a standalone command.
Please also be aware of the fact that the communication is always done via the MQTT broker and not directly between your remote and the switch!

Thank you!
2017-04-13 0:43 GMT+02:00 kfricke<EMAIL_ADDRESS>
The pushbutton does implement this already. It does not switch the relay
directly, but instead does publish the switched state onto the MQTT broker.
There the code itself is subscribed to receive the state switch command
indirectly from the pushbutton.
https://github.com/kfricke/micropython-sonoff-switch/
blob/master/sonoff_switch.py#L74
This line does show you the MQTT publish command. It is embedded in a
callback methd for the used scheduling framework, but can easily be seen as
a standalone command.
Please also be aware of the fact that the communication is always done via
the MQTT broker and not directly between your remote and the switch!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kfricke/micropython-sonoff-switch/issues/2#issuecomment-293728139,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZU3VN7y175hGFFRfF6Fa3wntubhfiySks5rvVOAgaJpZM4MjDfG
.


Add fml binary to releases

┆Issue is synchronized with this Jira Task by Unito

Goal: all binaries are pushed to GH release

I think this story will be much easier when we have a pure-go build -- the Node build phase isn't goreleaser-friendly!


How to resolve an issue that decodes correctly on iPad but not on Windows?

Hi,
I'm trying to encode Texture2D from a photo taken on an iPad, communicate to a PC with Windows and decode the byte array data.
On the iPad, the image can be decoded correctly, but on the Windows side, is failed. The failed image's pixel information is (205,205,205,205).
I want to decode correctly the data received on the Windows side.

I programed to encode and decode Texture2D.
[ iPad side ]
// Source Texture to Encode WebP.
            Texture2D srcTexture = capturedTexture;
            /// srcTexture's infomation
            /// width :960
            /// height:720
            /// format:RGBA32
            /// GraphicsFormat:R8G8B8A8_UNorm
            /// wrapMode:Repeat

            // Encode srcTexture.
            byte[] byteArray = srcTexture.EncodeToWebP(80, out Error lError);
            if (lError != Error.Success)
            {
                Debug.LogError("Webp EncodeToWebP Error : " + lError.ToString());
                yield return null;
            }

            // Communicate byteArray to WindowsPC.
            client.Send(byteArray);

            // Decode byteArray on iPad.
            Texture2D decodeTexture_iPad = Texture2DExt.CreateTexture2DFromWebP(byteArray, false, false, out Error decodeError);
            if (decodeError != Error.Success)
            {
                Debug.LogError("Webp EncodeToWebP Error : " + decodeError.ToString());
                yield return null;
            }
            Texture2D colorTexture = new Texture2D(decodeTexture_iPad.width, decodeTexture_iPad.height);
            colorTexture.ReadPixels(new UnityEngine.Rect(0, 0, colorTexture.width, colorTexture.height), 0, 0);
            colorTexture.Apply();

            // Show texture.
            rawImage.texture = colorTexture;
            /// Success Decode.
            /// Texture's Information
            /// width :960
            /// height:720
            /// format:RGBA32
            /// GraphicsFormat:R8G8B8A8_UNorm
            /// wrapMode:Repeat

[ Windows Side ]
// Receive byteArray from iPad.
        byte[] receivedByteArray = client.Receive(byteArray);

        //  Decode byteArray on Windows.
        Texture2D decodeTexture_Windows = Texture2DExt.CreateTexture2DFromWebP(receivedByteArray, false, false, out var colorError);
        Texture2D colorTexture = new Texture2D(decodeTexture_Windows.width, decodeTexture_Windows.height);
        colorTexture.ReadPixels(new UnityEngine.Rect(0, 0, colorTexture.width, colorTexture.height), 0, 0);
        colorTexture.Apply();

        // Show texture.
        rawImage.texture = colorTexture;
        /// Failed Decode.
        /// Pixel Data:[205, 205, 205, 205]
        /// Texture's Information
        /// width :960
        /// height:720
        /// format:RGBA32
        /// GraphicsFormat:R8G8B8A8_UNorm
        /// wrapMode:Repeat

I attempted to decode using the same approach, but it fails only on Windows.
The following was confirmed.

Encoded data is being sent and received without loss.
Width, height, and format matched whichever decoded.

If information is missing, I will add it.
Please can someone help with this.
Thanks,
Maru

To reproduce and testing that butg on my windows pc, I need following data.
Could you attech that files on via comment?

iPad side - srcTexture's bytes via GetRawTextureData
iPad side - byteArray's bytes
Windows Side - receivedByteArray bytes
Windows Side - decodeTexture_Windows 's bytes via GetRawTextureData

Thanks for your reply.
They are output files.
The output byte array is output to a text file separated by ",".
[iPad side - srcTexture's bytes via GetRawTextureData (636KB)]
1_ipadSide_RawData.txt
[iPad side - byteArray's bytes (5KB)]
2_ipadSide_encodeData.txt
[Windows Side - receivedByteArray bytes (5KB)]
3_WindowsSide_byteData.txt
[Windows Side - decodeTexture_Windows 's bytes via GetRawTextureData (14,344KB)]
4_WindowsSide_RawData.txt

I checked images except 1

2,3 : webpviewer - gray
4 : unity - gray

I failed to check 1_ipadSide_RawData's image via unity.
(UnityException: LoadRawTextureData: not enough data provided (will result in overread).)
Could you attach original image what you want to convert webp?
// here is what i used for test

    public RawImage RawImage;
    Texture2D texture;

    // Start is called before the first frame update
    void Start()
    {
        TextAsset RawData = Resources.Load<TextAsset>("1_ipadSide_RawData");
        // TextAsset RawData = Resources.Load<TextAsset>("4_WindowsSide_RawData");

        string text = RawData.text;
        string[] splited = text.Split(",");
        byte[] srcTextureBytes = splited.Select(x => byte.Parse(x)).ToArray();
        // texture = new Texture2D(960, 720, TextureFormat.RGBA32, mipChain: false, linear: true);
        texture = new Texture2D(960, 720, format: GraphicsFormat.R8G8B8A8_UNorm, flags: TextureCreationFlags.None);

        texture.LoadRawTextureData(srcTextureBytes);
        texture.Apply();
        RawImage.texture = texture;
    }

Attach both the photo you want to retrieve and 4 new data.
When the 2 image is decoded on the iPad, it will be displayed in RawImage.
webp_sample.zip

I'm not sure but what suspicious thing is Texture2D srcTexture = capturedTexture;

EncodeToWebP function used GetPixels32() function - ref

I don't know why rawImage.texture = colorTexture; rendered well. but I think srcTexture's GetPixels32 function returns gray image.
If capturedTexture created by renderTexture, It can be bring incorrect color without apply.

https://answers.unity.com/questions/815896/only-grey-205-when-reading-pixels-from-a-rendertex.html
https://answers.unity.com/questions/752423/why-is-my-rendertexture-creating-a-pure-gray-textu.html

I solved this problem.
It was not with the WebP encoding, but with the input image.
It was that the image had been scaled before encoding, and the RawData was incorrectly processed.
When we ran the program without the scaling process, it decoded correctly.
It was not a WebP issue.
I'm sorry for taking up so much of your time,  and thank you for the great tips.
I will use this plugin in the future.
Best regards,
Maru


Add Debezium Postgresql integration test

Provide new CDC/Debezium Postgresql Integration test. Only Mysql one was present.

Can you add a more detailed test? For example, actively insert a piece of data into PostgreSql, then receive it use consumer, and finally compare the fields.

retest this please

@willome Thanks for the work. lgtm. It would be better to enhance these 2 test cases if possible.

This test is a copy/paste of the Mysql one. I have tried to add some data in the Postgres db but unfortunately I can't connect to the docker postgres container (jdbc:postgresql://host:port/dbname). I have tried with localhost, DebeziumPostgresqlContainer.NAME. Maybe I need to change the pg_hba.conf. Any idea ?
@Override
    public Map<String, String> produceSourceMessages(int numMessages) throws Exception {
        String SQL = "INSERT INTO inventory.products VALUES (default,'scooter','3-wheel scooter')";
        String urlConnect = String.format("jdbc:postgresql://%s:%s/%s", "localhost",
                sourceConfig.get("database.port"), sourceConfig.get("database.dbname"));
        try (Connection conn = DriverManager.getConnection(urlConnect, (String) sourceConfig.get("database.user"),
                (String)  sourceConfig.get("database.password"));
// connection failure
             PreparedStatement pstmt = conn.prepareStatement(SQL))
        {

@jiazhai @tuteng can you please review this pull request again?

This test is a copy/paste of the Mysql one. I have tried to add some data in the Postgres db but unfortunately I can't connect to the docker postgres container (jdbc:postgresql://host:port/dbname). I have tried with localhost, DebeziumPostgresqlContainer.NAME. Maybe I need to change the pg_hba.conf. Any idea ?

@willome Thanks for the update.
because test framework is using docker containers, we should use DebeziumPostgresqlContainer.NAME, and run it in the same docker network that setting by withNetworkAliases in the code.

@aahmed-se before you merging any pull request, can you please double check the whole conversation? This pull request is 2 months old and there are comments that are not addressed.


Fix memory leak in groot and add trace logs

What do these changes do?

Fix memory leak in groot
Fix compiler warnings
Bump up version of rocksdb and crossbeam-epoch
Add trace logs

Related issue number

Fixes #2819

Codecov Report

Merging #2971 (7646211) into main (731d5a3) will decrease coverage by 2.71%.
The diff coverage is n/a.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #2971      +/-   ##
==========================================
- Coverage   45.07%   42.37%   -2.71%
==========================================
  Files          99       99
  Lines       10660    10649      -11
==========================================
- Hits         4805     4512     -293
- Misses       5855     6137     +282

see 15 files with indirect coverage changes

Continue to review full report in Codecov by Sentry.

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


show reposted claim in claim list for reposts

It gives you details about your repost, but not the original claim

passing --resolve does fix this, but should it do it by default?


Ability to modify a bootstrap5-toggle ID attribute?

How can I change the id attribute of a bootstrap5-toggle element?
Here's My Scenario
I have some markup that includes an instance of bootstrap5-toggle and it works fine.
But then I clone that markup, and alter the ID of the toggle checkbox in the cloned markup.
Now, when I click the cloned toggle, it toggles the original toggle.
Question
Does a bootstrap5-toggle cache the <input> ID somewhere? I've carefully examined the markup, and all the IDs and name attributes appear to have been set correctly.

Hi @SoftCircuits
Bootstrap toggle keep a reference to the original checkbox element for sincronizing the checkbox box status and state with the toggle.
So the better way to clone the element is :

Clone the checkbox.
Change id and name attributes
Set a bootstrap toggle instance in the clone checkbox like $('#checkboxClone').bootstrapToggle();

@palcarazm Thanks for responding. Unfortunately, I am already doing this.
One thing I noticed is that I was using clone(true, true). If I change that to clone(), clicking the cloned toggle doesn't toggle the first one anymore, but it doesn't work right. The second one has some drawing issues and the text is double.
I kind of need to keep the events because the cloned markup already has some handlers installed.
Unfortunately, JavaScript is not my main language so I'm not sure I can solve this. I may be able to put together a working example but I have quite a bit of code so I'm not sure.

Okay, I try to reproduce the issue by my side.
I'll be back with updates as soon as possible.

Hi @SoftCircuits ,
I let you a minimal code to clone a bootstrap toggle element.
html
<main class="container bg-white px-3 py-3 rounded">
        <form>
            <fieldset id="original_container" class="mb-3">
                <legend>Original</legend>
                <input type="checkbox" data-toggle="toggle" data-onstyle="success" data-offstyle="danger" id="original" name="original">
            </fieldset>
            <fieldset id="clone_container" class="mb-3">
                <legend>Clone</legend>
            </fieldset>
            <button type="submit" class="btn btn-primary">Submit</button>
        </form>
    </main>

javascript with jQuery
    $('#clone_container').append($('#original').clone())
    $('#clone_container').find('#original')
        .attr('id','clone')
        .attr('name', 'clone')
        .bootstrapToggle();

I leave you also a zip with a complete example: clone.jquery.zip
I expect this will resolve your issue 😄!

@palcarazm First off, I really appreciate you taking the time to look at this.
Your code works great. Mine doesn't. I've spent time this morning trying to find out the difference. Here they are:

I need to copy an entire row of markup. So I'm copying more than just the one checkbox.
I do this after the page has loaded.

So I finally figured out the problem is that, in my case, it also copies the markup generated by bootstrap5-toggle.
I created a demo of this in a CodePen.
Is there any way to reset the markup generated by bootstrap5-toggle for a particular checkbox.
Thanks!

There are two ways to solve these:
Copying the row before the toggle render:

Just do not set the tag data-toggle="toggle"
Clone the row and change id and name
Initialize the two toggle vía JavaScript $('#toggle1').bootstrapToggle(); and $('#toggle2').bootstrapToggle();

Destroying the instance before copying (if the copy is not on load)

Destroy the instance with  $('#toggle1').bootstrapToggle('destroy');
Clone the row and change id and name
Initialize the two toggle vía JavaScript $('#toggle1').bootstrapToggle(); and $('#toggle2').bootstrapToggle();

If you need a full example I can do it tomorrow in the morning 😊

@palcarazm Many thanks! I was able to get it working using your second method. Cheers!

@SoftCircuits that's great👏!
I will close your issue.
If you like this bootstrap plug-in you can rate it in openbase
Thanks 😊


Hide void/zero file sizes

Items like hyper-v have no use for file sizes, so it feels better not to show them, rather than use 0.00 PB

Codecov Report

Merging #851 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master    #851      +/-   ##
=========================================
- Coverage   96.45%   96.4%   -0.06%
=========================================
  Files          36      36
  Lines        3219    3394     +175
  Branches      268     481     +213
=========================================
+ Hits         3105    3272     +167
  Misses        114     114
- Partials        0       8       +8

Impacted Files
Coverage Δ

browser/directives/componentPanel.js
11.76% <0%> (-3.62%)
:arrow_down:

browser/model/helpers/downloader.js
96.94% <0%> (-1.52%)
:arrow_down:

browser/pages/about/controller.js
21.05% <0%> (-1.17%)
:arrow_down:

browser/pages/confirm/controller.js
89.71% <0%> (-0.93%)
:arrow_down:

browser/model/cdk.js
99.22% <0%> (-0.78%)
:arrow_down:

browser/model/jdk-install.js
97.29% <0%> (-0.45%)
:arrow_down:

browser/pages/location/controller.js
100% <0%> (ø)
:arrow_up:

browser/model/helpers/installer.js
100% <0%> (ø)
:arrow_up:

browser/main.js
100% <0%> (ø)
:arrow_up:

... and 23 more

Continue to review full report at Codecov.

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


getAllResponseHeaders and getResponseHeader return request headers

https://github.com/KhafraDev/node-xmlhttprequest/blob/f44a503dbb3d03bffba81e905b987611ed557553/src/xmlhttprequest.js#L856-L893
Both are accessing this[kRequestHeaders]. I think they should be using this[kResponse].headersList.

didn't notice your PR, the bugs should be fixed now, thanks!


Unable to use uploader for uncommon file types

Hey man. First off I love the simplicity of the plug-in, really dig it. Unfortunately though when I try an upload new versions of my music project files, the url extension reads undefined and I'm unable to open them when downloaded. The extension for Ableton files is '.als' in case you need it. Any way I can fix this on my end?

It will not work for photoshop files either (.psd)