Navigation bar appearance breaks under stress situations

Hello
I've been trying to make this work for awhile, but I can't seem to find the root cause of this bug.
We have a tab bar controller with some tabs, and if I go to each tab and starts flashing the screens (pressing all the tabs rapidly one at a time), the navigation bar breaks whenever I try to use it afterward (like pushing a new VC into the stack).
That happens if I am normally using the app, apparently randomly, since I couldn't find the root cause of this bug.
Has this happened before? I tried reproducing in the example project (adding a tab bar to it and trying to cause a stress situation) but I couldn't reproduce it there.
Also, I am loading nav bar's properties on each view controller's viewDidAppear - does this sound right?
Thank you for this library, it's just amazing.
Looking forward to find a fix this bug :)

Please try to set NavigationBar barTintColor, backgroundImage, shadowImage only in viewDidLoad function. You should only care about current viewController's navigationBar style.
If you still have same problem, please offer an example project.

I fixed the issue! The problem was that a specific view controller was using the UINavigationBar appearance proxy, so it was causing that weird behavior randomly. Simply deleted that line and it stopped glitching!
I'm still loading every nav bar property in viewDidAppear because I'm loading all the nav bar settings at once using a helper class and the titleColor property misbehaves if called only from viewDidLoad (when popping/pushing to/from different view controllers).
Hope this solution helps someone.
Thanks!


Documentation: Application

This pull request adds two things:

Doxygen installation into the project (Doxygen configuration file);
Documentation for the Application directory.

Doxygen installation
Documentation can be generated using following command:
pomdog/ $ doxygen

in the root of the project. Output will be stored at docs/html (only HTML documentation is generated).
I was guided by personal preferences when I chose the code-style of the documentation, but the main aim of the style -- to write less. So I suggest to leave it like that. Also, I didn't configure visual aspects of generated documentation, so it's just empty and default.
Application documentation
I tried to describe classes in include/Pomdog/Application/, and this gave some results. Although my notes seems to be meek. And I ain't no native speaker, so my english grammar and vocabulary is far, far from good. Therefore, I ask you to check if I've left any errors in the text.

📚 Documentation preview can be found here.

I almost forget to mention it: I did the preview manually, but people suggest to write CI task to automatically push new documentation updates to gh-pages branch in github repo. But I've never worked with wrecker / appveyor / travis, and I think I can't even test this since I am not maintainer of the repo.

@barsoosayque Good idea! and thank you for updating the PR!
I will try to add continuous deployment of API docs to GitHub pages using Travis or Wercker. Also I have a plan to deploy not only documentation but also runtime libraries, test applications and offline tools.

I've merged via command line, but sorry I missed adding the --no-ff option with git merge, so I'll close this PR manually. :confounded:  :bow:
FYI, the correct command is the following:
# Check out a new branch and rebase the changes on latest master
git checkout -b barsoosayque-application-docs b0f621e
git pull https://github.com/barsoosayque/pomdog.git application-docs
git rebase master

# Merge the changes and update on GitHub
git checkout master
git merge --no-ff barsoosayque-application-docs
git push origin master


implement control box (name search & filter)

The puzzle 2-236bf04f from #2 has to be resolved:
https://github.com/codeforthailand/parliament-listening/blob/f58a8ad9ed01d725e9eff89db6ee188e2059afab/src/components/control-box.js#L3-L3
The puzzle was created by heytitle on 06-Aug-19.
role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle 2-236bf04f has disappeared from the source code, that's why I closed this issue.


Add *.repo file to Linux RPM repository

For a RPM repository, it is good to have a vscode.repo file at the root folder of repository.
[vscode]
name=Visual Studio Code
baseurl=https://packages.microsoft.com/yumrepos/vscode
enabled=1
type=rpm-md
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc

Then the installation commands can be shorter (take openSUSE/SLE as example):
sudo zypper addrepo https://packages.microsoft.com/yumrepos/vscode/vscode.repo
sudo zypper refresh
sudo zypper install code

Skype for Linux already has this file https://repo.skype.com/rpm/stable/skype-stable.repo

I let the repo admins know 👍


Memory Leak in Application

I just ran into an out of memory error and tried to figure out why it is happening.  The moment the Application is used the memory goes up and never down.
Code to reproduce the issue
Depending on how much memory you want it to consume you can increase the array size of the data provider.
<?php

use Zend\Test\PHPUnit\Controller\AbstractControllerTestCase;

class UselessTest extends AbstractControllerTestCase
{
	public function setUp()
	{
		parent::setUp();

		$this->setApplicationConfig(
			[
				'modules'                 => [
					'Zend\\Router',
				],
				'module_listener_options' => [],
			]
		);
	}

	/**
	 * @dataProvider dataProvider
	 */
	public function testNull($variable)
	{
		$this->getApplication();

		echo memory_get_usage(true) / 1000 / 1024 . PHP_EOL;

		$this->assertNull($variable);
	}

	public static function dataProvider()
	{
		return array_fill(0, 1000, [ null ]);
	}
}

Expected results
I would expect the memory to stay low - ie similar to not using the Application (~6Mb for all tests)
Actual results
Memory usage keeps growing

Experiencing the same for larger apps with lots of integration tests (zf3 + doctrine2). The memory piles up for every single test that was executed. This affects all test that inherit from AbstractHttpControllerTestCase.

Same issue. This is due to the global state in ZF3.

@snapshotpl could you point me to where the global state is hold in zf3? Maybe it is possible to clear or reset the state in order to overcome this memory collection madness.

@porebskk, @snapshotpl, @wodka  I'm looking into this issue.


Handle Win32 Apps of MSStore Type & Update InstallAppsandSysprep.cmd

This PR addresses issues from PR #33 with some additional enhancements.

Added handling of win32 apps using the msstore source in winget download command.
Moved out code from Get-WinGetApp to a separate function Add-Win32SilentInstallCommand. This is invoked in Get-WinGetApp and Get-StoreApp for win32 apps.
Updated win32: prefix with winget: in AppsList.txt file.
Updated function name Get-Win32App to Get-WinGetApp to reflect app source and AppList.txt prefix change.
Updated InstallAppsandSysprep.cmd file

Filtered out .xml and .yaml files in app directory, so they are not included in DISM command
Included /LicensePath parameter in DISM command if store app license files are present. Otherwise /SkipLicense is used.

Added miscellaneous code enhancements

Added -ErrorAction parameter to lines using Get-ChildItem
Trim leading and trailing spaces in AppsList.txt and silent install commands.

This is better, however I fixed some things with how ARM64 dependencies are handled for Store apps. Remote Desktop via msstore source downloads all of the dependency files (x86, x64, arm, arm64) and when the VM is building, InstallAppsAndSysprep.cmd will try and apply all of the dependency files, which fails on ARM64 hardware.
But I also noticed a bigger problem. The --exact parameter doesn't work like expected. When searching for Microsoft Teams, the output that's stored in $WingetSearchResult is messy (I hadn't seen the pipe and slashes before in other downloads).

But what's also odd is that the exact matching isn't working on Name. This is a winget issue.
Since this is your PR, I didn't want to change the search criteria, but I think we should use ID rather than name to search/download. We could use a json file with key value pairs for Name, ID, Source. The user would need to use winget to find the appropriate values to make sure they're getting the exact app they want. I think the Applist.txt file should have all 3 properties instead of just the ID (just adding ID would be an easy fix), this way it's easy to tell which apps are being installed.

Thanks for the feedback. I hadn’t realized that DISM doesn’t ignore the x64 and x86 dependencies on arm hardware if they’re included. I’ve only been able to test on an x64 device.
I like the JSON file idea for specifying apps. I'll modify the Appslist to be in that format and include the name, id, and source.
For Microsoft Teams, I noticed that the msstore source downloads classic Teams. The new Teams msix gets downloaded from the winget source. I can modify the Get-WinGetApp function to handle this, but I wanted to ask if you think it’d be better if the script installs Teams via the TeamsBootstrapper and has its inclusion specified as a parameter like Office does.

I didn't realize it either until I saw the failures. We document it here but don't explicitly call out arm64 vs arm. But in my testing, arm64 behaves the same as arm.
I was actually using the store version of Teams more as a test. I don't personally install things via Winget.exe all that often, so I wasn't sure what I was going to get with the version in the store repository. I was planning on testing all of them and see what I got back.
The bootstrapper is probably a better method as we can download the binaries offline if the store release is classic. I've gotta think at some point we'll publish the new version to the store. It's also odd that it doesn't deploy new Teams via ODT for some reason (last I checked the docs I thought it said that it should).

I made some modifications to support the installation of new Teams with DISM for completeness. Will be testing things out more before submitting the next PR.

FYI, Winget 1.8 stable allows for store downloads now. No need to download the preview release or set the experimental feature.


Update?

How can I update CHAOS I want to use the web GUI

Hello,
The latest version isn't compatible with the old version.
So you need to remove the old installation and the old client and setup the new one follow the steps described in: https://github.com/tiagorlampert/CHAOS#quick-start


Theme by project

In the case you have one 'r&d' project to develop new features that you want to move to your dev project then it would be great to find a better and visual way to distinguish in which one you are currently in than just the project name in the window title.
I was thinking about applying one different theme for each project might be a great thing but themes are not project-based AFAIK.
Thanks in advance

/question
You already can set workbench.colorTheme in workspace settings (select Wokrspace tab in settings editor of manually create/edit .vscode/settings.json file in project folder).
Alternatively you can use workbench.colorCustomizations in Workspace settings to override colors of separate parts of interface.
For this approach it's probably better to use Peacock extension to customize them for you.

Great! Thanks, it seems to be a gap in my knowledge, cool


ES Input to Postgresql Output - Error with numeric values

Expected & Actual Behavior

I am using Logstash to use Elasticsearch 6.0 as an Input and I want to Output that to Postgresql using this JDBC conector. I have a table with mixed text and numeric fields.
Text fields in ES seem to work okay but if the field in ES is a number value, it then can not Output to the database.
I first got this error:
"fieldname" is of type numeric but expression is of type character varying
I decided to recreate my table using all text values but then when it passes that error, all of the values for the columns are null.

Your Environment

Version of plugin used: v2
Version of Logstash used: Attempted on both 6.4.0 and 6.2.3
Database engine & version you're connecting to: Postgresql 10.4
Have you checked you've met the Logstash requirements for Java versions?: Yes

Can you provide some sample data please? There are tests which cover this scenario, so it should be working.

Agh, apologies. I didn't realise the fields are case sensitive and it is now working.


#217 - Swaggerfile error

correctly specify the list of context termcode hashes as requestBody instead of trying to submit it as a parameter in "body" (which is not supported)

Trivial change - merged without further review


lib: remove Syntex dependency

It's a big dependency, slow to compile and not maintained anymore.
Moving to syn.
There is a caveat though: version-sync relied on span information
gathered from syntex to provide more helpful messages. syn 0.11.11
doesn't have such a functionality, though there are plans to incorporate
recent changes in procedural macro system to enable spans there too.
Current syn master contains such code, but is unstable.

I have a question regarding the code that used syntex: did you intend to run checks for all #[doc(html_root_url = "...")] found in the source, regardless of how many #[doc(...)] attributes or how many html_root_url = "..." have already been found? The code I'm PR`ing only hits #[doc(html_root_url = "...")] once, then returns immediately for both successful and failed checks.

Hey @hcpl, thanks for another well-made patch!
I actually started with the syn crate but then I figured it was nice to have better error messages. The dependencies are only compiled once, so does it matter much? Back then, I tried to collect the different parsing options on the users forum.
However, since there are plans for adding span information to syn, I gues it would be okay to switch to that crate instead — I don't like to depend on abandoned code :-) Do you have any idea of when support for spans could land in stable?
Would it be possible (with a reasonable amount of code) to have the line number information when version-sync is used with nightly Rust? Only do this if it doesn't make the whole thing super ugly with lots of conditional pieces of code.

I have a question regarding the code that used syntex: did you intend to run checks for all #[doc(html_root_url = "...")] found in the source, regardless of how many #[doc(...)] attributes or how many html_root_url = "..." have already been found?

Oh, good question... I did not consider that :-)
I guess it would be reasonable to run through all #[doc(...)] attributes and report an error if any of them defines a html_root_url that doesn't match the expected URL. So the current code probably returns too soon.
I don't actually know what will happen if you have multiple html_root_url attributes defined -- maybe the last one wins? We could raise an error too if we see more than one html_root_url, but I kind of don't see linting the attributes as the main purpose of the tool. However, I wouldn't mind either way since we also raise an error if we cannot parse a code block marked as TOML code.

@mgeisler for me personally, there is also a matter of supporting code with newest features - it is much more pronounced for new nightly features because there won't ever be code in an abandoned parser that can deal with them in foreseeable future.
syn does support (some) nightly Rust code while working on stable like const fn or specializations through default impl methods. Though you could argue that syntex is likely to support even more due to its origin... I can only say that #[doc(html_root_url)] is something sane people only write once for the whole crate :), so we could hack this somehow, e.g. traversing lines & regex-matching them (I definitely don't like dirty-hacking like this but IMO it does produce reasonable results in practice, so I'll leave this to your judgement).
Since the only code in version-sync that touches Rust source files is check_html_root_url function, there will only be two conditional pieces. For now, I don't know if there will be more Rust code-parsing dependent features in this crate. But if that ever happens, we can localize every such feature under a module and reexport them to root afterwards.
Ah, didn't know that usesr forum thread existed at all :D. Like I said before, syn does parse nightly code to some extent but if one really needs this working with cutting edge nightly, then we'll have to go nightly all the way and gate it properly. syntex won't be able to help us in this case anyway.

Okay, last question: can you update the README to match the new output? It has an example of a html_root_url attribute being flagged and shows the line number in the error :-)

I can only say that #[doc(html_root_url)] is something sane people only write once for the whole crate and at the very top of src/lib.rs,

Completely agreed! I'm happy if version-sync handles the normal cases correctly, e.g., the case where a sane developer forgets to update the html_root_url attribute.

so that we could apply syn only to a part of the whole code and after that we could hack this somehow, e.g. traversing lines & regex-matching them (I definitely don't like dirty-hacking like this but IMO it does produce reasonable results in practice, so I'll leave this to your judgement).

It's funny you should mention it... I was actually experimenting with that idea back in the day when I used syn to parse the files :-) It seems like an okay idea and it should work for 99% of the cases where the URL is simply written as a simple literal in the source code.
It breaks down if the URL contains escaped characters in the source (which escape did the user use?) but I don't think we need to care about that. The usual normal case is enough and later we'll get proper span information from syn.

@mgeisler hope I got it this right!
Regarding temporary solution for line reporting: should I finish it off in this PR or let it be done afterwards? Also there is an option of not doing anything after this PR (if it gets merged now) just because it may not be worth it after all.

@hcpl: #27 was just opened and that would make this PR unnecessary. I don't know which one we should merge now :-)

@mgeisler that's a very long-awaited feature for me! Sure I'd propose to close this PR, but there are still complications addressed in  #27, so I'd like to postpone any action before we resolve them.

@hcpl Yeah, I am not 100% convinced that the functionality needs to go.

I've merged this for now. It looks like we should keep this functionality around for a little bit longer, at least until rustdoc links to docs.rs by default (https://github.com/rust-lang/rust/issues/42301). Thanks for the PR!


Add mini chatbot to the website

This chatbot is built using Api  Key and aswers every questions which related to iron man or any other general questions like chatgpt , Assign me @aslams2020 I like to work on it , Add gssoc-ext , hactoberfest-accepted and level to this issue

Hi @rutikakengal, in the website we don't need the addition of chatbot
you can still find and raise new issues. thankyou


Script for training TSM on something-something-v2

Hi Ji, thank you for publishing the work.
I want to double-check training parameters for training TSM on something-v2 which should achieve at least 58.8 which is the performance I got when testing with your weight. (tested with single crop and single clip)
According to your paper, the training parameters for the something-something-v2 dataset are: 50 training epochs, initial learning rate 0.01 (decays by 0.1 at epoch 20&40), weight decay 1e-4, batch size 64, and dropout 0.5. And the model is fine-tuned from ImageNet pre-trained weights.
However, the script in the git repository indicates that initial learning rate is 0.001, weight decay is 5e-4, and the model is tuned-from Kinetics pre-trained weight.
Due to this disparity, I am confusing which parameters should I use to reproduce the number. Could you provide accurate parameters for training TSM on something-v2?
Thank you.

Hi, sorry for the confusion. You should use the setting in the paper. I may forget to update the script in this repo. The old setting tuning from Kinetics will produce inferior result.


Ability to add api groups to existing client

A variant of "union" client #208, #241:
Many people want one client object to combine methods from multiple API groups.  The main questions are: union of what groups, which version per group, and who wins method name collisions?
This proposal is that Kubeclient would not try to guess.  User would start from one group, and be able to add them one by one, each with specific version:
client = Kubeclient::Client.new('http://localhost:8080/', 'v1')
client.get_service_accounts

client.add_group('rbac.authorization.k8s.io/v1')
client.get_role_bindings

many people would add all desired groups when constructing client, and then just have the ability to call all methods:
client = Kubeclient::Client.new('http://localhost:8080/', 'v1')
client.add_group('rbac.authorization.k8s.io/v1')

client.get_service_accounts
client.get_role_bindings

Method name collisions would be decided by order of addition.  Not sure if latest or earliest wins?
I think this can solve some concerns with #241.
It also can work better with CRDs that might appear dynamically, after client exists.

Why not do something like
client.api('rbac.authorization.k8s.io/v1').get_groups

Or (because how often do you really switch)
client.setApi('rbac.authorization.k8s.io/v1')
client.get_groups()
client.setApi('some.other.api')
client.someOtherMethod

Adding the possibility to add many groups IMHO creates unnecessary complexity.

client.api('rbac.authorization.k8s.io/v1').get_groups

I think that's #347.

client.setApi('rbac.authorization.k8s.io/v1')
client.get_groups()
client.setApi('some.other.api')
client.someOtherMethod()

that's #346.  Trying to keep one issue per approach to focus discussion :)
There's a convenience tradeoff  — for many use cases you can add_group all you need near construction and then you don't need to mention groups anywhere else.
Many people asked for some form of "union" client.
Implementation may be harder (which is one reason it's not yet here) but I think once we agree on best interface & behavior, it'll go smoother.  #241 did lots of great stuff, run into disagreements more than technical issues...

Also worth mentioning I think we need #332 anyway.
it'll expose a way — though quite different and perhaps less friendly — to use one client with many groups, something like:
client.list(kind: 'Group', apiVersion: 'rbac.authorization.k8s.io/v1')

which maybe makes some approaches like #347 less of a win (?)


SetPriority is deprecated

The SetPriority method is marked as deprecated. What's the appropriate one to use now? The Google docs say to use SetImportance but I don't see this method when using the notification builder (source: https://developer.android.com/reference/android/app/Notification.Builder#setPriority(int) )

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

ID: 78e442e3-b387-f538-5430-e4538cf60cb9
Version Independent ID: 44dc930e-09e2-56e8-e693-18a69af0a747
Content: Local Notifications - Xamarin
Content Source: docs/android/app-fundamentals/notifications/local-notifications.md
Service: unspecified
Product: xamarin
GitHub Login: @mgmclemore
Microsoft Alias: mamcle

Hi @Architekt909, Google is deprecating the older way of creating notifications in favor of using Notification Channels (explained later in the topic). This topic needs to be updated to remove the out-of-date content -- I've added it to our internal backlog for updating. Thank you for the feedback!


A potential issue with sklearn when building an ensemble with large datasets

Hi @sonichi:
I noticed recently that if the dataset was large (hard to specify how 'large' it has to be), there was always a memory-related error when building the ensemble:
**TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker.
The exit codes of the workers are {SIGSEGV(-11), SIGSEGV(-11)}**
I did some search and it seems to be an error caused by the sklearn stacker used by flaml since people reported similar issues with sklearn.GridSearchCV (for example, https://stackoverflow.com/questions/55848101/memory-leak-using-gridsearchcv)
If I set n_jobs = 1, the issue disappeared. However, it took a lot more time to build the ensemble (not the base model).
Just want to inform you this issue. Any advice on better solutions (comparing with using just one CPU) is welcomed.
Thank you.

Does it fail when n_jobs=2?

I tried it with my internal datasets, default estimators from flaml and n_jobs=2; the issue still happened.
TerminatedWorkerError                     Traceback (most recent call last)
~/windows/Scorecards/Apps/R/Model-Development-Process/FLAML_Customized_Learners.py in
1 automl.fit(X_train = data_dev_balanced_B_X, y_train = data_dev_balanced_B_y,  sample_weight=data_dev_balanced_B_w,
2           X_val = data_val_B_X, y_val = data_val_B_y, sample_weight_val=data_val_B_w,
----> 3           **settings)
~/.virtualenvs/r-reticulate/lib/python3.6/site-packages/flaml/automl.py in fit(self, X_train, y_train, dataframe, label, metric, task, n_jobs, log_file_name, estimator_list, time_budget, max_iter, sample, ensemble, eval_method, log_type, model_history, split_ratio, n_splits, log_training_metric, mem_thres, pred_time_limit, train_time_limit, X_val, y_val, sample_weight_val, groups_val, groups, verbose, retrain_full, split_type, learner_selector, hpo_method, starting_points, seed, n_concurrent_trials, keep_search_state, early_stop, append_log, auto_augment, min_sample_size, use_ray, **fit_kwargs)
2270             with training_log_writer(log_file_name, append_log) as save_helper:
2271                 self._training_log = save_helper
-> 2272                 self._search()
2273         else:
2274             self._training_log = None
~/.virtualenvs/r-reticulate/lib/python3.6/site-packages/flaml/automl.py in _search(self)
2841                 try:
2842                     stacker.fit(
-> 2843                         self._X_train_all, self._y_train_all, **self._state.fit_kwargs
2844                     )
2845                     logger.info(f"ensemble: {stacker}")
~/.virtualenvs/r-reticulate/lib/python3.6/site-packages/sklearn/ensemble/_stacking.py in fit(self, X, y, sample_weight)
439         self.le = LabelEncoder().fit(y)
440         self.classes = self.le.classes
--> 441         return super().fit(X, self.le.transform(y), sample_weight)
442
443     @if_delegate_has_method(delegate='final_estimator')
~/.virtualenvs/r-reticulate/lib/python3.6/site-packages/sklearn/ensemble/stacking.py in fit(self, X, y, sample_weight)
147         self.estimators = Parallel(n_jobs=self.n_jobs)(
148             delayed(_fit_single_estimator)(clone(est), X, y, sample_weight)
--> 149             for est in all_estimators if est != 'drop'
150         )
151
~/.virtualenvs/r-reticulate/lib/python3.6/site-packages/joblib/parallel.py in call(self, iterable)
1052
1053             with self._backend.retrieval_context():
-> 1054                 self.retrieve()
1055             # Make sure that we get a last message telling us we are done
1056             elapsed_time = time.time() - self._start_time
~/.virtualenvs/r-reticulate/lib/python3.6/site-packages/joblib/parallel.py in retrieve(self)
931             try:
932                 if getattr(self._backend, 'supports_timeout', False):
--> 933                     self._output.extend(job.get(timeout=self.timeout))
934                 else:
935                     self._output.extend(job.get())
~/.virtualenvs/r-reticulate/lib/python3.6/site-packages/joblib/_parallel_backends.py in wrap_future_result(future, timeout)
540         AsyncResults.get from multiprocessing."""
541         try:
--> 542             return future.result(timeout=timeout)
543         except CfTimeoutError as e:
544             raise TimeoutError from e
~/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/concurrent/futures/_base.py in result(self, timeout)
430                 raise CancelledError()
431             elif self._state == FINISHED:
--> 432                 return self.__get_result()
433             else:
434                 raise TimeoutError()
~/.local/share/r-miniconda/envs/r-reticulate/lib/python3.6/concurrent/futures/_base.py in __get_result(self)
382     def __get_result(self):
383         if self._exception:
--> 384             raise self._exception
385         else:
386             return self._result
TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker.
The exit codes of the workers are {SIGSEGV(-11)}

Does n_jobs=2 work when the dataset is smaller? If so, then it means that your RAM is not large enough to train 2 models at the same time.

It does. Actually, if the dataset is small enough, such as the one used by your notebook example, n_jobs is not an issue at all.
On the other hand, I am a bit suspicious that my RAM is not large enough for training even two models at the same time with the modeling dataset. It has 200GB+ RAM and during the training process we monitored the usage of RAM at the backend; it never exceeded 40% (80GB) before the process failed. The datasets we used are always tabular, one is approximately 180000 * 250 and the other 400000 * 50.
Any advice on how to verify the hypothesis of RAM exhaustion?
Thank you.


The remote certificate is invalid because of errors in the certificate chain: NotTimeValid

Investigation needed for https://github.com/dotnet/runtime/issues/91705
Error message:
       System.Net.Http.HttpRequestException : The SSL connection could not be established, see inner exception.
      ---- System.Security.Authentication.AuthenticationException : The remote certificate is invalid because of errors in the certificate chain: NotTimeValid

Recent example: https://helixre107v0xd1eu3ibi6ka.blob.core.windows.net/dotnet-runtime-refs-heads-release-60-staging-ef87e00e954c42c39b/System.Net.Http.Functional.Tests/1/console.502a9bda.log?helixlogtype=result
A couple of questions:

Is this failure consistent or intermittent?
This is not exclusive to MacOS, it repros on multiple platforms, which platforms?
Are we seeing this failure in other repos?  If this is occurring in multiple repos, then an ICM may be required.

FYI @ilyas1974 , @lewing

Release Note Category

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

Release Note Description

Looking into this now

I don't believe this is an infrastructure issue, see https://github.com/dotnet/runtime/issues/91705#issuecomment-1830464861

Thank you for taking a look at this


Pre-process and categorize id mappings from EntityHierarchy

Walk through the entity hierarchies processing id mappings, and maybe some other pieces of "metadata" like version, locking, etc.
Delay processing (second pass) in cases where we need additional information (key-many-to-one e.g.).
TBD whether these kinds of processes should target the org.hibernate.mapping model (taking place of the current Binders), or whether we want the process to target an intermediate representation.  I tend to the latter atm.

I ended up starting on a modified form of this with the goal of minimizing the number of times we walk the hierarchy, methods, fields and attribiutes - https://github.com/sebersole/hibernate-models2/commit/f5ccef4a0ca2a86946b5e2a30671dabdf737344e is the first commit along this line

The categorization aspect here is done.  See KeyMapping, BasicKeyMapping, AggregatedKeyMapping and NonAggregatedKeyMapping.
Binding has been "started" in org.hibernate.boot.models.bind.internal.binders.IdentifierBinder


orbiton: 2.63.1 -> 2.64.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/orbiton/versions.
meta.description for orbiton is: Config-free text editor and IDE limited to VT100
meta.homepage for orbiton is: https://github.com/xyproto/orbiton
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.64.3 with grep in /nix/store/p4iw7g8lcjavxvg933g7m53kq3vbib88-orbiton-2.64.3
found 2.64.3 in filename of file in /nix/store/p4iw7g8lcjavxvg933g7m53kq3vbib88-orbiton-2.64.3

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
orbiton

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/p4iw7g8lcjavxvg933g7m53kq3vbib88-orbiton-2.64.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A orbiton https://github.com/r-ryantm/nixpkgs/archive/b1c6e8595ebdc650da0b4746eeac38d9c9d3e42c.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/p4iw7g8lcjavxvg933g7m53kq3vbib88-orbiton-2.64.3
ls -la /nix/store/p4iw7g8lcjavxvg933g7m53kq3vbib88-orbiton-2.64.3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

orbiton

Maintainer pings
cc @sikmir for testing.

Result of nixpkgs-review pr 252798 run on x86_64-darwin 1

1 package built:

orbiton


EPE-306 fix

Change Description
Avoid using sizeof() for billable_size to prevent consensus problem.
Change Type
Select ONE

[ ] Documentation

[x] Stability bug fix

[ ] Other

[ ] Other - special case

Consensus Changes

[ ] Consensus Changes

API Changes

[ ] API Changes

Documentation Additions

[ ] Documentation Additions

I think this is a bit shallow of a solution.  For data types like kv_object where we know that they are directly impactful for consensus affecting code, we should be more diligent with these types and do a few things.

Make some comments around that data type that this is a 'critical' consensus affecting data type.
Be diligent with these types to either be "packed" or hand laid out if we require the sizeof to be consistent no matter what.
In the struct in question, we should have static_assert's that verify that the sizeof and alignof and any assumptions needed are held.

This will help us in the future.  As when we compile with either different compilers, for different OSes or architectures, it would be better to pop the asserts at compile time and not require us to rely on just not using things like sizeof.

I think this is a bit shallow of a solution. For data types like kv_object where we know that they are directly impactful for consensus affecting code, we should be more diligent with these types and do a few things.

Make some comments around that data type that this is a 'critical' consensus affecting data type.
Be diligent with these types to either be "packed" or hand laid out if we require the sizeof to be consistent no matter what.
In the struct in question, we should have static_assert's that verify that the sizeof and alignof and any assumptions needed are held.

This will help us in the future. As when we compile with either different compilers, for different OSes or architectures, it would be better to pop the asserts at compile time and not require us to rely on just not using things like sizeof.

I agree with the general plan here but I would prefer an additional task to do this across all of our billed structures as opposed to individual PRs per structure.  This PR should bring this structure into a stable state, then we can put in a new ticket/task to put in better protections.
Fair compromise?

FWIW, there is no requirement that these numbers match any reality, the closer the approximate reality the more accurately we can bill things but as this is consensus we should leave some slack for alternative and future implementations to shift the details.

I agree here, the only thing I am concerned with is helping flag possible problem areas as they arise (which keeping the bounds tighter will give).  Any fake or synthetic consensus numbers should have their own checks to ensure whatever assumptions they make are held.
And yes I agree that another ticket and explicit task would be the preferable way to go.


New-ScheduledTaskTrigger incorrect return type on Windows Server 2012 6.2.9200

Steps to reproduce

Run the same command on Win10 and Server 2012

$trigger = New-ScheduledTaskTrigger -Weekly -WeeksInterval 1 -DaysOfWeek Monday -At 9am
$trigger.GetType()

Expected behavior

IsPublic
IsSerial
Name
BaseType

True
False
CimInstance
System.Object

Actual behavior

IsPublic
IsSerial
Name
BaseType

True
True
PSObject
System.Object

Environment data

Name                           Value
----                           -----
PSVersion                      7.1.3
PSEdition                      Core
GitCommitId                    7.1.3
OS                             Microsoft Windows 6.2.9200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

It appears the ModuleType of ScheduledTasks on the server is Script:
ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     1.0                   ScheduledTasks                      {Disable-ScheduledTask, Enable-ScheduledTask, Export-ScheduledTask, Get-ClusteredScheduledTask…}

Whereas on Win10 it's a Manifest:
ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Manifest   <IP_ADDRESS>               ScheduledTasks                      {Disable-ScheduledTask, Enable-ScheduledTask, Export-ScheduledTask, Get-ClusteredScheduledTask…}

This is because the scheduled task module hasn’t been marked as compatible with PSCore so it runs in an implicit remoting session. Any objects exchanged are serialised and thus the type information is mostly lost. You basically have a read only snapshot as a PSObject.
On newer Windows builds the scheduled task module has been marked as compatible with PSCore and thus it is loaded directly in the session and no serialisation occurs. There’s really not much you can do here as I doubt Microsoft will update the modules on older Windows versions for the sake of a product that didn’t ship with that version.

One thing you could try is Import-Module ScheduledTasks -SkipEditionCheck but that just tries to force the import into pwsh without the implicit remoting. If the module itself doesn't work with pwsh then unfortunately you need to use the implicit remoting setup.


NavigationExperimental  results in Unexpected character '�'

Xcode (Version 8.2.1) doesn't seams to be happy with some images file in NavigationExperimental, specifically:
2017-01-24 09:37:41.459736 RNFashion[2712:835313] Initializing <RCTBatchedBridge: 0x170197c40> (parent: <RCTBridge: 0x1700b6020>, executor: RCTJSCExecutor)
2017-01-24 09:37:41.663 [warn][tid:NSOperationQueue 0x170037fa0 :: NSOperation 0x17004a0e0 (QOS: DEFAULT)][RCTBatchedBridge.m:110] Failed to load source: Error Domain=JSServer Code=500 "SyntaxError<EMAIL_ADDRESS>Unexpected character '�' (1:0)" UserInfo={stack=(
        {
        file =<EMAIL_ADDRESS>        lineNumber = 1;
        methodName =<EMAIL_ADDRESS>Unexpected character '\Ufffd' (1:0)";
    }
), NSLocalizedDescription=SyntaxError<EMAIL_ADDRESS>Unexpected character '�' (1:0)}
2017-01-24 09:37:41.663356 RNFashion[2712:835366] Failed to load source: Error Domain=JSServer Code=500 "SyntaxError<EMAIL_ADDRESS>Unexpected character '�' (1:0)" UserInfo={stack=(
        {
        file =<EMAIL_ADDRESS>        lineNumber = 1;
        methodName =<EMAIL_ADDRESS>Unexpected character '\Ufffd' (1:0)";
    }
), NSLocalizedDescription=SyntaxError<EMAIL_ADDRESS>Unexpected character '�' (1:0)}
2017-01-24 09:37:41.665 [fatal][tid:main] SyntaxError<EMAIL_ADDRESS>Unexpected character '�' (1:0)
2017-01-24 09:37:41.665095 RNFashion[2712:835313] SyntaxError<EMAIL_ADDRESS>Unexpected character '�' (1:0)

react-native-cli: 2.0.1
react-native: 0.40.0
(strangely enough it was building fine 2 weeks ago).

stop the server and execute react-native start again will resolve this problem.
There is a bug in the packager, that degrade the performance if left open.
Probably related to
https://github.com/facebook/react-native/issues/6691
I would keep this issue open and try to solve the deeper bug in the packager.

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.


[Question] Does skip_position_ids refer to a clip skip being applied to the model merge or to image inferencing?

Question is as titled. I'm a little confused on the skip_position_ids. Does this refer to "Clip Skip" as meant in the WebUI settings, where it is applied to image inferencing, or does it refer to something else entirely involving the merging of the models?

See this message https://github.com/s1dlx/sd-webui-bayesian-merger/pull/28#issuecomment-1481836439 for an answer. Note that the value is 0-based instead of 1-based like it is in the webui.


How to change the heading?

I want to edit the part "Hi, I'm John Doe. I do stuffs with computer and sometimes write about it here. I'm from Penang, MY and I ship code at Microsoft."
Thanks.
PS: I'm new to GitHub pages

In the _includes folder, there is a intro.html file. Can you change the info from there.


Documentation on how to handle large-scale certificate management & best practices

Is your feature request related to a problem? Please describe.
I would like to know what are the best practices for handling large-scale certificate management.
Currently I have almost 20k certificates in the following setup:

cert-manager installed in an EKS cluster
ClusterIssuer generating ACME certificates
Kubernetes objects stored in a single namespace (Ingress, Certificate, CertificateRequest, Order and Challenge)
2 replicas of each pod (controller, ca-injector and webhook)

I'm concerned about the issues that will occur when I hit 5, 10x the current workload (200k certificates).
What are the best practices for handling this usage?
Describe the solution you'd like
A section added to the documentation on how to handle large-scale certificate management with cert-manager
Describe alternatives you've considered
After reading this https://github.com/jetstack/cert-manager/issues/3748 I'm considering splitting in multiple clusters once a certain number of certificates are created, 20k certificates in this case.
Another possible solution is: single-namespace deployments for handling a certain number of certificates: https://github.com/jetstack/cert-manager/issues/2525, but I'm still not sure about this.
Environment details:

Kubernetes version: v1.19
Cloud-provider/provisioner: AWS EKS
cert-manager version: 1.3.1
Install method: helm

/kind documentation

/kind close

Reference https://github.com/jetstack/cert-manager/issues/3971#issuecomment-833359974

Thanks for opening the issue!
We could start a doc with best practices for running large-scale cert-manager deployments.
I'm adding a help-wanted label for the issue- any user input would be very much appreaciated 🙏🏼

@irbekrm update about our use case:

cert-manager version 1.6.1 installed with helm on EKS
ClusterIssuer generating ACME certificates
Kubernetes objects stored in a single namespace (Ingress, Certificate, CertificateRequest, Order and Challenge)
2 replicas of each pod (controller, ca-injector and webhook)

this current setup is handling 80k+ certificates, but with some issues:

had to create a separate process/script to check if the certificate can be renewed, and remove it if not, before auto renew from cert-manager is triggered
running kubectl commands on the namespace takes a long time or doesn't work at all

We did not get round to writing this guide during the Season of Docs 2022, but if someone here would like to contribute a PR I will be happy to review. Pester me in #cert-manager-dev on Slack.
I have recently started an Installation > Best Practice document.
We could add a section to that document explaining some recommended changes to the command line flags of the components.
And I can imagine a Configuration > Best Practice document which could be as simple as a list of Certificate and Issuer configuration parameters which we recommend.
This is somewhat related to the sane defaults issue:

https://github.com/cert-manager/cert-manager/issues/3958

And it is worth noting that @irbekrm has radically reduced the memory consumption of cert-manager components on clusters with large numbers of Secrets and with large Secret data.

https://cert-manager.io/docs/release-notes/release-notes-1.10#v1102-changes-since-v1101
https://cert-manager.io/docs/release-notes/release-notes-1.11


Add functionality for backgroundColor parameter

While an easy workaround for this would be to simply add a background color
to the parent container, the exportImage function/the canvas toDataURL function,
still only exports what is on the canvas. This change simply draws a rectangle
to fill the canvas if the parameter is set.
No breaking changes in external or internal API.
Resolves #1118

This should really be a fillColor though.

my reasoning was that if someone's working with the api, backgroundColor is the most descriptive name for it (imo). and then, working with canvases, you have fill/fillRect/fillStyle, so fillColor could be mildly confusing

(Sorry, I meant fillStyle.)
Just a minor issue here though is that someone might expect this to set a backgroundColor on the wrapper.
Why not just set the backgroundColor and then when exporting, use a computed backgroundColor in the wrapper to draw the output (no need to redraw the image -- just do drawImage)? This would also play nicely with my submitted changes which creates a cutout of the wave and places a background color equal to the waveColor / progressColor.

oh i thought you meant changing the parameter name lol. and i don't think i entirely get what you're suggesting. getImage just calls toDataURL on the canvas, so i don't see what drawImage would do, but i haven't worked with canvases a lot so i could just be missing something entirely

can you leave out the changes in /dist?

I did but then I was thinking about compatibility with my work and other issues.
So my thought is that before using toDataURL, have the getImage function apply the backgroundColor of the wrapper on the canvas. You can just do a regular fill but with globalCompositeOperation set to destination-over: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation.

oh i totally didn't know that was a thing. okay so i get how i'd do that but, can you explain how my changes affect your change you mentioned? i don't get what you mean by cutout. sorry if i'm being dense lol

I'm inverting the wave so that the pixels where the wave becomes transparent and vice-versa. That allows me to put the inverse wave under the region plugin so that I could have different-colored wave segments, for example.
If you fill the canvas, that won't work anymore.

ah gotcha. okay, i'll totally look into changing this branch with your suggestions, and then i'll do a new pull request without the ./dist changes

All you need to do is just change that export function to implement a fix to your original problem, right... in fact, later on this could be extended further to take into account background images, etcetera -- although there is a library or two that can convert dom elements to a canvas, so it might be a bit much in that case.

after implementing these changes the image returned from exportImage() was just a solid
rectangle of the background color for some reason. after some digging i found this in the canvas element spec for the function context.putImageData(...) which i guess might also apply to getImageData(...) at least that would explain why i'm only getting back a solid rectangle.
"The globalAlpha and globalCompositeOperation attributes, as well as the shadow attributes, are ignored for the purposes of this method call; pixels in the canvas are replaced wholesale, with no composition, alpha blending, no shadows, etc." - html canvas spec
so this seems like a dead end at that point. i'm just going to update this branch, and take out the changes to ./dist

Just create a temporary image first....

i'm not exactly sure what you mean by that, but i've already spent more time on this relatively small change than i intended lol. this is perfectly fine for what my purposes for the change are, if it doesn't work with your changes and isn't going to be a useful addition to the code base i don't mind if my pull request is denied. or if it's accepted and you want to make it work with your changes, that'd be great too


Conference chat

Hello people, i've posted this also on GGroup but no answers.
I've enabled conference rooms on asterisk server, but conference chat won't work following this guide here and it works on JsSip but not with SIPJs.
Because of conference works perfectly i would like to understand if chat is possible too, it would be a very nice feature

We'll respond in the google doc when we have time. In the meantime, you can see how to provide more information on this in our FAQ: https://sipjs.com/faq/
Without investigating, I'd say that unless the mechanism used is an out of dialog refer, SIP.js is capable of it, but our API is different so it makes sense that following the guide for another library would not work. Seeing the SIP messages, and determining which ones you can not send, is the first step to figuring out how to do it.
If this is an out of dialog refer, we already have an issue for that here: https://github.com/onsip/SIP.js/issues/834


Error during compiling

Hi, so I tried using this crate as part of my project and I encountered an error when running cargo run main.rs.
   Compiling cfg-if v1.0.0
   Compiling adler v1.0.2
   Compiling xmlparser v0.13.3
   Compiling byteorder v1.4.3
   Compiling lazy_static v1.4.0
   Compiling libc v0.2.119
   Compiling memchr v2.4.1
   Compiling jetscii v0.4.4
error: generic parameters may not be used in const operations
   --> /home/shell/.cargo/registry/src/github.com-1ecc6299db9ec823/jetscii-0.4.4/src/simd.rs:109:13
    |
109 |             T::CONTROL_BYTE,
    |             ^^^^^^^^^^^^^^^ cannot perform const operation using `T`
    |
    = note: type parameters may not be used in const expressions

error: generic parameters may not be used in const operations
   --> /home/shell/.cargo/registry/src/github.com-1ecc6299db9ec823/jetscii-0.4.4/src/simd.rs:148:13
    |
148 |             T::CONTROL_BYTE,
    |             ^^^^^^^^^^^^^^^ cannot perform const operation using `T`
    |
    = note: type parameters may not be used in const expressions

   Compiling crc32fast v1.3.2
error: could not compile `jetscii` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

I hope this is enough.

I have the same problem

same here


Why there is no Chinese document

Can I contribute Chinese documents

I don't know why?

see the right way: https://wechaty.js.org/v/zh/

thank you very much! 谢谢您

@isnl Could you tell me where did you find this link? Thanks!

@isnl Could you tell me where did you find this link? Thanks!

emmm....
It's here！
https://github.com/wechaty/wechaty.js.org/tree/zh

fix this! Thanks!


Update README.md: link to dbt PR for external

I was curious what the semantics of that source config attribute were and couldn't find it in dbt's docs. :)

Baby steps. 🙂


ETA value display

Describe the bug
The ETA coin is displaying and price percentage change with a holding value of zero.
To reproduce
View ETA coin in the Dashboard view (ensure balance is zero)
Expected behavior
If the holding value of a coin is zero there shouldn't be a percentage change
Screenshots

System info

OS & version: Windows 10
HyperDEX version: 0.2.0

Looks like the problem here is that the price has went up 93.4% but it's still $0. The percent change doesn't reflect on your holdings, just how much the price of the coin has gone up/down.

Maybe we should allow for more fractions since there might be a few with these kinda prices @atomiclabs/core?

👍

👍
It might be a good idea to only show the extra decimals if needed.
If 1 BTC is $5K no one needs to see the price accurate to a thousandth of a penny.

@lukechilds We only do it for prices less than 1: https://github.com/atomiclabs/hyperdex/commit/1cab80f13e538e4f4c201d2195b7822032cd04fb#diff-4648c7233f4bf818a97efdea33adf602R11

Perfect.


Add column Username to FAILURE DETAILS table

Description
Add column Username to FAILURE DETAILS table
Steps to reproduce

Go to 'Failures analysis' widget from Personal ->LAST 24 HOURS FAILURES-> View

Actual behavior
FAILURE DETAILS table contains failures for all users, but no Users column and details
Expected behavior (if known)
FAILURE DETAILS table contains failures for all users, need to add users column for more clarity before RUN column
Environment
zebrunner ce from dev branch
ui: <IP_ADDRESS>-SNAPSHOT
server: <IP_ADDRESS>-SNAPSHOT
Attachments

let's review and import latest free widget templates from PRO version

closing as won't fix in CE version.


Order of Actions

I would like to rearrange the Your Actions menus for transcribers and Coordinators.
For the basic menu can we change the order.
CSV Batches
Search Place Name
FreeCEN Handbook
Communicate
Profile
Roadmap
FreeUKGenealogy Policies
For Coordinators can we have:
CSV Batches
Search Place Name
FreeCEN Handbook
Manage County
Manage Syndicate (Can we move Display Userids inside this menu please?)
Contacts
Communicate
Profile
Roadmap
FreeUKGenealogy Policies
This puts the most used Actions at the top and regroups them.

Changes made except Display Userids This allows the coordinator to look up any one who is a member not just their syndicate which Freereg coordinators found useful from time to time. Deployed to test3

@rhodamackenzie to register as a new transcriber on TEST3 and take it from there. @DeniseColbert to assist if required.

Kirk
Coordinators look good.
I see no change as a Transcriber (even when I refreshed the screen). For the basic menu can we change the order please?
CSV Batches
Search Place Name
FreeCEN Handbook
Communicate
Profile
Roadmap
That would be similar to the one you have done and the most often used Actions are at the top.
Geoff

Sorry @geoffj-FUG had done the checker; have now done the transcriber and validator and tweaked the data manager

Kirk
Looks good at the Transcriber Proofreader level too.
I will have a look at Data Manager when I test #879
Geoff

Kirk
Data Manager looks good too.
What is the attic?
Geoff

Whenever a file is replaced,downloaded or reprocessed the current file is moved to the attic and the new one placed in the main folder.
We never throw anything away. Disk storage is cheap!!
It means that in the event of a major foul up the datamanager can recover a version of the file for a coordinator or transcriber.
They can download the version they want, strip the unix date extension and have a perfectly loadable file.


Add form.labelHtmlClass to label

As with https://github.com/Textalk/angular-schema-form-datepicker/pull/39 I had the problem of the tests failing. I found it was possible to use PhantomJS 2.x through npm, without having to 'manually' download the binary.
If you merge both of these PR's, I would suggest merging this first, and then merging #39 without commit https://github.com/Textalk/angular-schema-form-datepicker/pull/39/commits/b9c4d07d5869d3f347f1cba946c7175a0bade9fc.


Implement AsyncWrite and AsyncRead for WebRtcChannel

My understanding is that currently WebRtcChannel supports sync but non-blocking API. It would be cool to have full AsyncRead and AsyncWrite support. It is already possible to take a channel from the socket with WebRtcSocket::take_channel.
What about having a
impl WebRtcChannel {
    pub fn into_async_raw(self) -> impl AsyncRead + AsyncWrite {
        // ...
    }
}

Is something like this possible? The UnboundedSender/UnboundedReceiver already implement Sink/Stream for (PeerId, Box<[u8]>) which could be leveraged for such an implementation.

Since your PR didn't get linked here, its at: https://github.com/johanhelsing/matchbox/pull/461
I don't require async for my use-case, but I do need a way to do back-pressure so I can throttle updates when the network can't keep up. I suspect the ability to do async writes would work well for this, so I am interested in this feature.


[T5A1][T01-T1] Li Jiawei

Ready for review

@QIGEMINGZIZHENNANA Some comments added. Please close the PR after reading them.


No module named '_tkinter'

I'm using ubuntu 16.04 and python 3.6
Got an error saying "No module named '_tkinter' " but I already had the latest version of tk installed.
Thanks in advance if anyone could help!
(mujoco) jc@jc-XPS-15: /mujoco_ws/test_xmls $ sudo apt install python3-tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-tk is already the newest version (3.6.5-3~16.04.york4).
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.
(mujoco) jc@jc-XPS-15:/mujoco_ws/test_xmls $ python
Python 3.6.7 (default, Oct 25 2018, 09:16:13)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.

from oscilloscope import Osc
Traceback (most recent call last):
File "/usr/lib/python3.6/tkinter/init.py", line 37, in
import _tkinter
ModuleNotFoundError: No module named '_tkinter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/home/jc/virtualenvs/mujoco/lib/python3.6/site-packages/oscilloscope.py", line 5, in
import matplotlib.pyplot as plt
File "/home/jc/virtualenvs/mujoco/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2372, in
switch_backend(rcParams["backend"])
File "/home/jc/virtualenvs/mujoco/lib/python3.6/site-packages/matplotlib/pyplot.py", line 207, in switch_backend
backend_mod = importlib.import_module(backend_name)
File "/home/jc/virtualenvs/mujoco/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/jc/virtualenvs/mujoco/lib/python3.6/site-packages/matplotlib/backends/backend_tkagg.py", line 1, in
from . import _backend_tk
File "/home/jc/virtualenvs/mujoco/lib/python3.6/site-packages/matplotlib/backends/_backend_tk.py", line 5, in
import tkinter as Tk
File "/usr/lib/python3.6/tkinter/init.py", line 39, in
raise ImportError(str(msg) + ', please install the python3-tk package')
ImportError: No module named '_tkinter', please install the python3-tk package

Does this work for you? https://stackoverflow.com/questions/15884075/tkinter-in-a-virtualenv

https://stackoverflow.com/a/41687024
The second answer worked for me.
Thanks!


Support insanely-fast-whisper?

See https://github.com/Vaibhavs10/insanely-fast-whisper
(Suggestion inspired by https://github.com/pluja/whishper/issues/53 )

Dupe of #146


Optional Embed Input

Make embedContainer optional, if there is no markup do not display the field

@arl1nd Thanks!
Could you add this option to README?

Sure, just a minute. Thanks for prompt reply.

@arl1nd I released it! You can upgrade version to 3.0.0.

@avdeev thanks a lot! I really appreciate your consideration to add this patch.
Have a great weekend!


[Xcode] lots of analyzer issues with Xcode 7 beta

With Xcode 7 beta (7A120f), the analyzer has a lot of warnings.  These are mostly related to designated initializer overrides or incorrectly calling (or not) the inherited designated initializer.

cc @nicklockwood @tadeuzagallo @a2

Thanks, I'll take a look.

I solved this in my own components with a couple extra method declarations. In the header file I have:
NS_ASSUME_NONNULL_BEGIN
...
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
- (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
...
NS_ASSUME_NONNULL_END

The implementation file has:
- (instancetype)initWithFrame:(CGRect)frame
{
  @throw EXNotImplementedException();
}

- (instancetype)initWithCoder:(NSCoder *)coder
{
  @throw EXNotImplementedException();
}

That macro is defined as:
#define EXNotImplementedException() \
  [NSException exceptionWithName:EXNotImplementedException \
                          reason:[NSString stringWithFormat:@"-[%s %s] is not implemented", \
                                  class_getName([self class]), \
                                  sel_getName(_cmd)] \
                        userInfo:@{@"file": @(__FILE__), @"line": @(__LINE__)}];

I'd be interested to learn of a leaner solution. It's kind of disappointing that NS_UNAVAILABLE alone doesn't suffice.
(Aside: with the nonnull keyword from Xcode 6.3, init methods no longer need the if (self = [super init]) dance.)

Hmm, well this is better than my solution, which was to have every unsupported initializer call the designated init with nil params, and then param assert that they mustn't be nil.
I'm surprised that it's no longer necessary to return self from init though - that's awesome! Is there a document about this change somewhere?

Btw, you can print [self class] directly using %@ - no need to use class_getName.
Did you try using [self doesNotRecognizeSelector:_cmd]? - I believe that's a common pattern for unsupported method implementations.

Oh I see, you don't need to return because of the @throw, and you don't need the if self because of the ASSUME_NON_NULL. Makes sense.

have every unsupported initializer call the designated init with nil params, and then param assert that they mustn't be nil.

This wouldn't work for init methods that have nonnullable parameters. In my example, - (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher actually desugars to (nonnull RCTEventDispatcher *) so it's not clear how to call it from initWithCoder/Frame.

I'm surprised that it's no longer necessary to return self from init though

Yeah I was referring to the 'if' check. Still nice to remove the extra level of indentation.

Did you try using [self doesNotRecognizeSelector:_cmd]? - I believe that's a common pattern for unsupported method implementations.

Just tried it now but the compiler doesn't recognize that  [self doesNotRecognizeSelector:_cmd] affects the program flow. I had the same problem with [NSException raise:] earlier so I had to use @throw to tell the compiler that the init method doesn't return (I kept it outside of the macro to communicate this to the reader as well).
One thing we could do to ease the burden is to have RCTView revoke the "designated initializer" status from initWithCoder so view subclasses only need to deal with initWithFrame if they introduce a new designated initializer.

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out it's new home: https://productpains.com/post/react-native/xcode-lots-of-analyzer-issues-with-xcode-7-beta


Bus error when importing keras_nlp before tensorflow

Importing keras_nlp (version 0.6.3) before importing Tensorflw in a python package results in bus error on mac M1.
I.e, this gives an error:
import keras_nlp
import tensorflow
While this doesn't:
import tensorflow
import keras_nlp
Running on a M1 machine with tensorflow-macos 2.14 and keras_nlp 0.6.3

I was able to import keras_nlp and tensorflow on my M1 Mac.
Can you try to install TensorFlow 2.15 using pip install tensorflow==2.15 and install keras_nlp(0.6.3) using pip install keras-nlp.
Create a new environment to to fresh install to avoid other package conflicts if there is any.


[CNVS Upgrade] Fix bottom-margin on tabs

This PR fixes a bug I introduced with my vertical tabs. Both vertical and horizontal tabbed menus need their children to have a bottom margin of 0.

Merging this on my own, hope nobody minds...


Wrong type for WebhookMessage interactive

This is the current type for WebhookMessage interactive object:
    interactive?: {
        type: {
            /**
             * Sent when a customer clicks a button
             */
            button_reply?: {
                /**
                 *  Unique ID of a button
                 */
                id: string;
                title: string;
            };
            /**
             *  Sent when a customer selects an item from a list
             */
            list_reply?: {
                /**
                 * Unique ID of the selected list item
                 */
                id: string;
                title: string;
                description: string;
            };
        };
    };

However this is wrong. The button_reply object doesnt come nested in type.
Here is an example:
{
  "id": "wamid.HBgMNasdasdadUA",
  "from": "xxxxxxx",
  "type": "interactive",
  "context": {
    "id": "wamid.HBgMNTUzMTkxaYwOUM4NzBERjA1AA==",sdasdasdasd
    "from": "xxxxxxxx"
  },
  "timestamp": "1715709660",
  "interactive": {
    "type": "button_reply",
    "button_reply": {
      "id": "change",
      "title": "Change facts"
    }
  }
}

mmm... seems that their docs are out of date or something

If you can confirm that you always get that response, I'll merge the fix!

@MarcosNicolau can you provide the documentation link you are consulting from?
The one from here is exactly as I stated:

Sure
https://developers.facebook.com/docs/whatsapp/cloud-api/webhooks/components#messages-object

Meta is possibly the worst company to treat developers. Its the same website, just a few menu options below. 😔
But yes, i confirm, the structure I submitted in my PR and is in their example  is the correct one 100% of the time.
The one from the the link you provided is wrong.
Also, you can check there is another TS lib that has these typings, you will see my PR is right.

Yeah... it's impressive the fact that they don't provide us with an official sdk.
Alright so I am merging your fix, higher thanks! 😊

@MarcosNicolau you are welcome!
I just noticed one test suite failed preventing publish. Couldnt reproduce locally. Any idea?

Yeah... somehow the keys have expired, I'll make sure to renew them later.


Add event device plugin

Background
As described in  #1942, a plugin to support to setup listeners to event devices such as USB controller, joysticks or keyboards would be useful.
Implementation
This implementation builds on the EvDevKeyListener and is based on the bluetooth_audio_buttons plugin.
The following details differ from the bluetooth_audio_buttons plugin:

initialize the listeners from the configuration. I have tried to document the format in the docstring. Is there a better place to do so?
rpc command is bound with deference=False. Otherwise plugins, eg next_song, may not be initialized yet upon initialization. Is there a better way?

@pabera @ChisSoc

Nice addition!
Regarding the documentation: The best way to go would be to write a Ueer Guide Page. The live in docs/sphinx/userguide. Just create a new .rst file and add to in the index.rst. See the bluetooth doc as an example.
The user guide needs

How to activate this plugin
How to find out the device_name that is needed for the configuration
How to find out the button id
And a complete configuration example, please

Ah, yes, dereference. If I remember correctly this has to do with the order of the loading of the plugins. Try loading your plugin last.

Thanks for the feedback+
Top, I will look into adding the documentation.
@dereference: i already have put the plugin last, but the only way to get
it to run was to add the listeners only when adding them as a "finalize"
step.
Is the performance hit without dereference really bad enough to worry about
this optimization?
Cheers!
On Fri, Dec 30, 2022, 21:06 Chris @.***> wrote:

Nice addition!
Regarding the documentation: The best way to go would be to write a Ueer
Guide Page. The live in docs/sphinx/userguide. Just create a new .rst
file and add to in the index.rst. See the bluetooth doc as an example
https://rpi-jukebox-rfid.readthedocs.io/en/latest/userguide/bluetooth_audio_buttons.html
.
The user guide needs

How to activate this plugin
How to find out the device_name that is needed for the configuration
How to find out the button id
And a complete configuration example, please

Ah, yes, dereference. If I remember correctly this has to do with the
order of the loading of the plugins. Try loading your plugin last.
—
Reply to this email directly, view it on GitHub
https://github.com/MiczFlor/RPi-Jukebox-RFID/pull/1943#issuecomment-1368074517,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA4R2KB5276MQANQHKX3PLTWP46C5ANCNFSM6AAAAAATM5NKVI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Ah yes, finalize it was.
Don't worry about the performance impact. It is negligible.

I added now a documentation.
It would be great if someone could test it. As a device eg an USB mouse works well.

Thanks for the comments, I will address them!
(all though I wonder how my 3 year old would use a USB mouse to rule their Phoniebox thinking)
The USB mouse was more a very general illustration that this works with any USB device, not necessarily an endorsement :)
The beter usecase for this is to use a cheap Joystick controller board in order to hook up arcade buttons in via USB in case the GPIO pins are occupied otherwise.
I am using: https://de.aliexpress.com/item/1005001604578101.html?spm=a2g0o.order_list.order_list_main.5.26875c5fq1PFcA&gatewayAdapt=glo2deu

It seems that flake8 is failing due to flake8 violations in code not touched by this PR.
Schould I do a separare PR fixing all the pre-existing violations or rather fold the fixes into this PR?

Schould I do a separare PR fixing all the pre-existing violations or rather fold the fixes into this PR?

A separate PR would be ok.
Would you still be interested in merging this?

It seems that flake8 is failing due to flake8 violations in code not touched by this PR. Schould I do a separare PR fixing all the pre-existing violations or rather fold the fixes into this PR?

For the fixes see https://github.com/MiczFlor/RPi-Jukebox-RFID/pull/1989

Hi @pabera ,
Sorry for being unresponsive, I had quite lot of personal events that diminished my free time.
I rebased the PR to the latest dev branch, so the flake8 should be fixed and the cosmetic issues should be addressed.

Still seem to have some issues. Have you tried locally?

I have fixed the flake8 issue in another PR. If you pull all changes again, you should be able to pass flake8 properly

Hi there,
I rebased again and run flake8 locally - now all looks clean on my side.

I also found by chance that in the old Jukebox there was already an implementation/reference about this: https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/develop/components/controls/buttons_usb_encoder/README.md?plain=1
Should I link this in the readme?

@votti would you mind merging latest changes from future3/develop? Biggest change is probably that docs are now markdown.
I think then we could merge this PR

Please have a look at my updates.
I am using this now since a year with a Zero delay USB encoder and some arcade buttons and it works well.

@votti We are planning to integrate this PR in our next Release https://github.com/MiczFlor/RPi-Jukebox-RFID/pull/2211 which we want to release in the next couple of days. Do you think you will be able to work on the changes suggested or will you need more time? In the second case, we would postpone the release of this PR.

@pabera I am away for holidays so no access to a pi. However I just managed to get the docker dev environment (including evdev devices) runing, so I may be able to work on it till the end of the week.
No hard feelings if this does not make the next release. I think having the configuration file in a final form  before merging it is really important.

I now aligned the configuration structure with gpio.yaml.
In contrast to gpio, multiple devices each with their own input/output_devices are supported.
Note that currently only input_devices  the Button type with the on_press action is implemented.
While extending the config to such new functionalities is now easy, this code is still relying on the pre-existing EventDeviceListener code backend. Expanding this mechanisms to support more features (eg long press etc) will require significant changes on this backend.
" Investigate why I indicated that the evdev module should be listed last." - I did not find a good reason after trying also different orders. Really not sure why I wrote it like this before.

I now also added some tests and fixed some bugs/edge cases found during testing.
One issue I encountered is that zmq is not installed for the Github CI testing.
First I tried to fix the Github CI but then decided to better just use mocks to make my tests independent of zmq.
I will add an issue that it would be nice to eventually have zmq also in our github action workflow used for testing.

Could be merged?

Let me know if there is anything still required from my side!
If not I would appreciate if this would be merged before it diverges again from the main develop/future3 branch.


Change Calculations to be Memory based not Percentage based

Current using Percentage of Cluster to calculate Number of Nodes.  This is a bit backwards and sketchy, since we also need to fudge the "percent of node for llap" to calculate what we think will be needed to fit the 'other' memory requirements for llap like: Tez AM's for concurrency.
We'll assume going forward, that LLAP will consume the whole yarn node.  This is the best practice recommendation and will support Node Labeling better.

Work has been initially complete and checked in on the 'memory' branch.  Will continue with testing to eval effectiveness.


Remove the asyncio.coroutine decorator for smtp_HELP because only Python 3.5+

from my tox with this branch
  py35-cov: commands succeeded
  py35-nocov: commands succeeded
  py35-diffcov: commands succeeded
  py36-cov: commands succeeded
  py36-nocov: commands succeeded
  py36-diffcov: commands succeeded
  qa: commands succeeded
  docs: commands succeeded
  congratulations :)

I'm retrying the build.  It's probably a flaky test.


Fix for UNKNOWN DATABASE exception

We get a UNKNOWN DATABASE exception because a connection string uses target DB.
runQuery() tries to execute CREATE DATABASE statement within an absent context. We can use multistatement as a workaround to execute CREATE DATABASE query within a system DB context

@IlyaTsoi can u please check why the test u added is failing, please pull latest from develop.

@IlyaTsoi can u please check why the test u added is failing, please pull latest from develop.

I did try) But I can't reproduce this error in my environment, test passes successfully.

@IlyaTsoi can u please check why the test u added is failing, please pull latest from develop.

I did try) But I can't reproduce this error in my environment, test passes successfully.

Error connectingjava.sql.SQLException: Connection refused (Connection refused), server ClickHouseNode [uri=http://localhost:8123/test, options={client_name=Test_1}]@630096182
instead of localhost and 8123, you should get the host and port from clickHouseContainer.
        String hostName = clickHouseContainer.getHost();
        Integer port = clickHouseContainer.getFirstMappedPort();


api error

Hi,
I tried calling api from my code, I am getting the following error, can you tell me why its happening.
-MacBook-Pro:todomvc $ npm install
npm WARN package.json<EMAIL_ADDRESS>No README data
npm WARN package.json<EMAIL_ADDRESS>No repository field.

<EMAIL_ADDRESS>install /Users/Desktop/FrontEnd/redux-master/examples/todomvc
node test-depcheck.js

testing
module.js:338
throw err;
^
Error: Cannot find module '/path/to/your/project/package.json'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at depcheck (/Users/Desktop/FrontEnd/redux-master/examples/todomvc/node_modules/depcheck-es6/dist/index.js:251:40)
at Object. (/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test-depcheck.js:31:1)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: node test-depcheck.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node test-depcheck.js'.
npm ERR! This is most likely a problem with the redux-todomvc-example package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node test-depcheck.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls redux-todomvc-example
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Desktop/FrontEnd/redux-master/examples/todomvc/npm-debug.log
https://github.com/lijunle/depcheck-es6#api
Thanks,

Please share your test-depcheck.js .
From the log, this is the cause:

Error: Cannot find module '/path/to/your/project/package.json'

@lijunle providing it below
console.log("testing");
var path = require('path');
var depcheck = require('depcheck-es6');
var options = {
withoutDev: false, // check against devDependencies
ignoreBinPackage: false, // ignore the packages with bin entry
ignoreDirs: [ // folder with these names will be ignored
'sandbox',
'dist',
'bower_components'
],
ignoreMatches: [ // ignore dependencies that matches these globs
'grunt-'
],
parsers: { // the target parsers
'.js': depcheck.parser.es6,
'*.jsx': depcheck.parser.jsx
},
detectors: [ // the target detectors
depcheck.detector.requireCallExpression,
depcheck.detector.importDeclaration
],
specials: [ // the target special parsers
depcheck.special.eslint,
depcheck.special.webpack
]
};
depcheck('/path/to/your/project', options, function(unused) {
console.log(unused.dependencies); // an array containing the unused dependencies
console.log(unused.devDependencies); // an array containing the unused devDependencies
console.log(unused.invalidFiles); // files that cannot access or parse
console.log(unused.invalidDirs); // directories that cannot access
});

You need to modify the depcheck parameter - replace your real path to '/path/to/your/project'. Besides, you need to pass your options too. The options show in the home page does not work, it is for demonstration only.

@lijunle I changed the folder but still I am getting the below error, am I doing anything wrong
can you give an example how to modify options too
Code
//console.log("testing");

var path = require('path');
var depcheck = require('depcheck-es6');
//console.log("depcheck" +depcheck);

var options = {
  withoutDev: false, // check against devDependencies
  ignoreBinPackage: false, // ignore the packages with bin entry
  ignoreDirs: [ // folder with these names will be ignored
    'sandbox',
    'dist',
    'bower_components'
  ],
  ignoreMatches: [ // ignore dependencies that matches these globs
    'grunt-*'
  ],
  parsers: { // the target parsers
    '*.js': depcheck.parser.es6,
    '*.jsx': depcheck.parser.jsx
  },
  detectors: [ // the target detectors
    depcheck.detector.requireCallExpression,
    depcheck.detector.importDeclaration
  ],
  specials: [ // the target special parsers
    depcheck.special.eslint,
    depcheck.special.webpack
  ]
};
//console.log("after options" +options);

depcheck('/Users/Desktop/FrontEnd/redux-master/examples/todomvc', options, function(unused) {
  console.log(unused.dependencies); // an array containing the unused dependencies
  console.log(unused.devDependencies); // an array containing the unused devDependencies
  console.log(unused.invalidFiles); // files that cannot access or parse
  console.log(unused.invalidDirs); // directories that cannot access
});

//console.log("lastline");

Error
npm install
npm WARN package.json<EMAIL_ADDRESS>No README data
npm WARN package.json<EMAIL_ADDRESS>No repository field.

<EMAIL_ADDRESS>install /Users/Desktop/FrontEnd/redux-master/examples/todomvc
node test-depcheck.js

[ 'classnames',
'depcheck-es6',
'react',
'react-dom',
'react-redux',
'redux' ]
[ 'babel-core',
'babel-loader',
'babel-plugin-react-transform',
'expect',
'express',
'jsdom',
'mocha',
'node-libs-browser',
'raw-loader',
'react-addons-test-utils',
'react-transform-hmr',
'style-loader',
'todomvc-app-css',
'webpack',
'webpack-dev-middleware',
'webpack-hot-middleware' ]
{ '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/.DS_Store': [TypeError: undefined is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/.babelrc': [TypeError: undefined is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/actions/todos.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/components/Footer.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/components/Header.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/components/MainSection.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/components/TodoItem.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/components/TodoTextInput.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/constants/ActionTypes.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/constants/TodoFilters.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/containers/App.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/index.html': [TypeError: undefined is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/index.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/package.json': [TypeError: undefined is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/reducers/index.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/reducers/todos.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/server.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/store/configureStore.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/actions/todos.spec.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/components/Footer.spec.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/components/Header.spec.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/components/MainSection.spec.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/components/TodoItem.spec.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/components/TodoTextInput.spec.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/reducers/todos.spec.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/setup.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test-depcheck.js': [TypeError: object is not a function],
'/Users/Desktop/FrontEnd/redux-master/examples/todomvc/webpack.config.js': [TypeError: object is not a function] }
{}

Pass an empty object as option. Again, the option shown in home page is for demonstration only.

@lijunle yeah its working if i give empty options, but when I test it with specail parser for webpack its throwing an error
Can you tell me where should I need to include this part of code, to check custom special parser
https://github.com/lijunle/depcheck-es6/blob/master/doc/pluggable-design.md#implement-custom-special-parser

when I test it with specail parser for webpack its throwing an error

That is caused by the webpack special parser has not been implemented yet. Tracked by #14.
If you want to leverage custom special parser, add the following to your options:
function mySpecialParser(...) {...} // implement by myself

const opts = {
  specials: [
    mySpecialParser
  ]
}

You can reference the ESLint special parser, which is exposed as depcheck.special.eslint. Its code logic is simple,

@lijunle is it the same logic or different logic for webpack, if its different can atleast tell logic how to implement
https://github.com/lijunle/depcheck-es6/blob/master/src/special/eslint.js

is it the same logic or different logic for webpack,

Each special parser should have its own logic. If they are the same, why implement it twice? That does not make sense.

if its different can atleast tell logic how to implement

Sorry, now I have no idea on how to implement it. If you are going to implement it, please read the docs and source code of webpack to get the ideas. I appreciate your contribution.

@lijunle  thanks for your reply, I created a  sample file for writing a special parser in depcheck-es6/dis/special and named that file name as webpack.js, there in webpack.js, I am trying to print to print a statement but its not printing, providing my code below

webpack.js

console.log("testing-webpack-special-parser");

test-depcheck.js

//console.log("testing");
var path = require('path');
var depcheck = require('depcheck-es6');
//console.log("depcheck" +depcheck);

var options = {
  specials: [ // the target special parsers
    depcheck.special.webpack
  ]
};
//console.log("after options" +options);

depcheck('/Users/Raj/Desktop/FrontEnd/redux-master/examples/todomvc', options, function(unused) {
  console.log(unused.dependencies); // an array containing the unused dependencies
  console.log(unused.devDependencies); // an array containing the unused devDependencies
  console.log(unused.invalidFiles); // files that cannot access or parse
  console.log(unused.invalidDirs); // directories that cannot access
});

//console.log("lastline");

error

npm install
npm WARN package.json<EMAIL_ADDRESS>No README data
npm WARN package.json<EMAIL_ADDRESS>No repository field.

><EMAIL_ADDRESS>install /Users/Desktop/FrontEnd/redux-master/examples/todomvc
> node test-depcheck.js

[]
[ 'babel-loader',
  'babel-plugin-react-transform',
  'express',
  'node-libs-browser',
  'raw-loader',
  'react-transform-hmr',
  'style-loader' ]
{ '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/.DS_Store': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/.babelrc': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/actions/todos.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/components/Footer.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/components/Header.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/components/MainSection.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/components/TodoItem.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/components/TodoTextInput.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/constants/ActionTypes.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/constants/TodoFilters.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/containers/App.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/index.html': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/index.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/package.json': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/reducers/index.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/reducers/todos.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/server.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/store/configureStore.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/actions/todos.spec.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/components/Footer.spec.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/components/Header.spec.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/components/MainSection.spec.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/components/TodoItem.spec.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/components/TodoTextInput.spec.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/reducers/todos.spec.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test/setup.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/test-depcheck.js': [TypeError: undefined is not a function],
  '/Users/Desktop/FrontEnd/redux-master/examples/todomvc/webpack.config.js': [TypeError: undefined is not a function] }
{}

Your file depcheck-es6/dis/special will not be depcheck.special.webpack automatically.
You need to require it, just as you do for depcheck package - var webpackSpecial = require('./depcheck-es6/dis/special'), then pass webpackSpecial variable to special array.

@lijunle
its printing only this line
console.log("webpack-file-special-parser");
its not printing below line, can you tell me why
console.log("inside wrapToArray");
console.log("inside webpack");
console.log("airbnbResult");
console.log("no airbnbResult");
'use strict';
console.log("webpack-file-special-parser");
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];

Object.defineProperty(exports, '__esModule', {
  value: true
});

var _path = require('path');

var _path2 = _interopRequireDefault(_path);

function wrapToArray(obj) {
  console.log("inside wrapToArray");
  if (!obj) {
    return [];
  } else if (obj instanceof Array) {
    return obj;
  }

  return [obj];
}

function checkAirbnb(configs) {
  if (configs.indexOf('webpack') !== -1) {
    console.log("inside webpack");
    return ['eslint-config-airbnb', 'babel-eslint', 'eslint-plugin-react', 'eslint'];
  } else if (configs.indexOf('airbnb/base') !== -1) {
    return ['eslint-config-airbnb', 'babel-eslint', 'eslint'];
  } else if (configs.indexOf('airbnb/legacy') !== -1) {
    return ['eslint-config-airbnb', 'eslint'];
  }

  return false;
}

exports['default'] = function (content, filename) {
  var basename = _path2['default'].basename(filename);
  if (basename === '.eslintrc') {
    var configs = wrapToArray(JSON.parse(content)['extends']);

    var airbnbResult = checkAirbnb(configs);
    if (airbnbResult) {
      return airbnbResult;
      console.log("airbnbResult");
    }
    console.log("no airbnbResult");
    return [];
  }

  return [];
};

module.exports = exports['default'];

console.log("webpack-file-special-parser"); is called when node evaluate the file (on require('...') call), the others are inside a function. They appear only when the function is called.
I think you could better to google a tutorial and learn the basic node.js knowledge first. Here is a random result.

@lijunle ok can you tell me how to print the below lines and see
console.log("inside wrapToArray");
console.log("inside webpack");
console.log("airbnbResult");
console.log("no airbnbResult");

Set it in options.
var options = {
  specials: [
    depcheck.special.eslint
  ]
};

@lijunle yeah thats working, I am trying to fetch all the loaders of webpack, is there anyway to fetch all those loaders

I have no idea.


e. How do we persist current state/selection etc of dashboard for sharing. Zoom/Pan + Selected Metrics etc.

e. How do we persist current state/selection etc of dashboard for sharing. Zoom/Pan + Selected Metrics etc.

duplicate


Error messages: Master ticket

Let’s document all the error messages here and make sure each error message:

Explains what happened
Has a recommended action

cc @kepta

Verify button needs better error messages that explain the error.

Closing this, tracking error messages in https://github.com/mapbox/osmcha-frontend/issues/103


Add metrics endpoint to API

We can use the monitoring dashboard to keep track of metrics for API performance, such as the number of successful and failed runs, size of runs etc.
This would require a "/metrics" endpoint that returns statistics in prometheus standard format
Approach:
create a module that provides a singleton service that keeps track of the various metrics via private variables. The module should declare a controller that exposes the metrics through an endpoint. The module should export a service that exposes methods to increment the counters.
There are probably libraries that make the output format easier

https://github.com/willsoto/nestjs-prometheus#counter


Manage user

this pr add functionality to add and invite users to a team and the platform in general.

Input field, Email, Teams, and role
generate username and password
send email to user about the invite containing their password

for review can you help double check where the env settings are, is correct (for the smtp credentials)?
@luccasmmg @MuhammadIsmailShahzad