TODO: consider more than one module

For a single module, the tooth sums have to be equal for all transmission ratios.
More possibilities are available when more than one module is considered.
This should be implemented in this program.
A gearbox with ratios 2:5 and 4:5 can be realized by using

module 1.5 with 24:60 teeth for the 2:5 ratio and
module 2 with 28:35 teeth for the 4:5 ratio.

These two options still have the same axis distance.
Further options in above gearbox include:

module 1.5 with 21:63 teeth for a ratio of 1:3 and
module 1.5 with 38:46 teeth for a ratio of 19:23.

Let M1 denote the module of one gear pair with tooth counts n1 and m1.
Also, let M2 the module of another gear pair with tooth counts n1 and m2.
Then, the condition to match reads: M1 * (n1 + m1) == M2 * (n2 + m2).
Thanks to Limbo/Hans from Zerspanungsbude for pointing this out.

DIN 780, Reihe I lists the following norm modules:
0.05, 0.06, 0.08, 0.1, 0.12, 0.16, 0.2, 0.25, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0,
1.25, 1.5, 2.0, 2.5, 3.0, 4.0, 5.0, 6.0, 8.0, 10.0, 12.0, 16.0, 20.0, 25.0, 32.0, 40.0, 50.0


Example or tutorial needed

First of all thank you for this package.
Would like to know if it's possible to have an example for reading data from a serial port using flutter.
My goal is to use the serial port on an Android Set Top Box (N1 Max) capable of reading data from Arduino.

Yes, you are absolutely right that there should be better examples. Do you have a suggestion for what the examples could read and write? The typical problem with serial port examples - should one assume dummy echoes, a certain protocol, or something else? :) Anyway, one option could be to adapt/port the dummy examples from libserialport.

Yes, you are absolutely right that there should be better examples. Do you have a suggestion for what the examples could read and write? The typical problem with serial port examples - should one assume dummy echoes, a certain protocol, or something else? :) Anyway, one option could be to adapt/port the dummy examples from libserialport.

This is a Flutter component, so some example with widgets and business logic would be very useful:
A typical read and write from/to Arduino for exampe...
And eventually a complete example (in the example folder) that shows how:

Configure the port (velocity, parity, ...)
Select the port from a dropdown
A button to connect
If success start to listen to the serial port, if you receive a string show the string in a list
If error, shows an error (and eventually retry to connect after a while)
a text field + a button to send a string to Arduino

This is a Flutter component, so some example with widgets and business logic would be very useful:
A typical read and write from/to Arduino for exampe...
And eventually a complete example (in the example folder) that shows how:

Configure the port (velocity, parity, ...)
Select the port from a dropdown
A button to connect
If success start to listen to the serial port, if you receive a string show the string in a list
If error, shows an error (and eventually retry to connect after a while)
a text field + a button to send a string to Arduino

@dariocavada You could see this site for more examples. Its same.
https://pub.dev/packages/dart_serial_port


ROCm 4.2/4.3 with older kernels 4.12/4.15

We have installed ROCm 4.2 successfully on the test machine with Ubuntu 16.04.6 LTS and the 4.15.0-47-generic kernel. Radeon VII works well for HIP-enabled applications (LAMMPS).
Please let me know should I expect ROCm 4.2/4.3 to work under SLES SP1 with the 4.12.14-195-default kernel that is used on the nodes of our MI50 equipped cluster? Linux upgrade is not an easy task and we would prefer not to upgrade SLES if it is possible.

Hi @vvsteg
Thanks for reaching out.
We do not support old OS versions like Ubuntu 16.04.x and old kernels like 4.x officially now.
Officially supported OS versions are https://github.com/RadeonOpenCompute/ROCm#supported-operating-systems
Anything other than these oses and kernels might work with ROCm 4.3(or 4.2) but not sure. Official support can not be claimed on these.
As per my experience, most of the times, things might work on old kernels/oses also, So recommend to give a try.
Thank you.

Closing this issue as the resolution provided in the last comment.
Thank you.


fix(tools): multiple workflow fixes

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #XXXXX

[X] Resolve failure code when nothing to commit
Thanks to @ojeytonwilliams for this fix - resolves the issue where having nothing to commit would trigger a non-zero exit code on the action. Here's a demo of the run: https://github.com/nhcarrigan/actions-testing/runs/2289277740?check_suite_focus=true
Thanks to StackOverflow: Using the diff-index command first to check that there are changes to be committed seems to resolve the issue. Now generates a commit if needed, skips the commit if nothing to commit, and no exit codes are thrown.  Will need to investigate a better approach.
[X] Update commit names to include scope
Mistakenly left the scope out (i.e. docs, i18n) of the commit message. Resolving that as well.
[X] Use Camperbot PAT to push
By passing the PAT to the actions/checkout script, git authenticates Camperbot as the user and allows the push event to come from Camperbot - demonstrated with this PR: https://github.com/nhcarrigan/actions-testing/pull/39

Bad news on this one, by the way.
Testing some other tweaks, and turns out that if the commit actually succeeds, the grep will throw an exit code. 😅

Note to my future self (and anyone else puzzled by this): the reason that the run command
git commit -m "chore: update translations"
git push -u origin i18n-sync-client -f

fails, despite the last command setting the error code to 0, is the action passes pipefail to bash.  The commit fails, and the error code is piped to the end failing the action.

Could you explain the reason we're replacing GITHUB_TOKEN with camperbot's PAT?

So a GitHub event such as pull_request cannot trigger actions if the actor is an action. The repo token results in the actor being github actions bot, which causes our CI to never trigger.
We resolved this by having Camperbot open the PR, but if we do not review + merge that PR before the next run, github actions does the push to the existing PR and locks up our CI.

One minor thing .github/workflows/crowdin-i18n-docs-download..yml has two dots

That was my snack for later 😉 Will fix shortly.

So a GitHub event such as pull_request cannot trigger actions if the actor is an action. The repo token results in the actor being github actions bot, which causes our CI to never trigger.

I have so much to learn. Do you happen to know where this is documented?

https://docs.github.com/en/actions/reference/events-that-trigger-workflows#example-using-multiple-events-with-activity-types-or-configuration here is the docs

Great, thanks - that clears it up.


Update Index.html

Added my name and profile link in Index.html

@paulooctavio  contribute to https://github.com/Ishaan28malik/Get-Dev-Resources instead.


502 Bad Gateway with Moloquent $save

Hi everyone,
With the recent updates of the mongo.so and PHP I've experienced a quite annoying bug. I am using Laravel 4.1, PHP 5.5.13-2+deb.sury.org~trusty+1 (cli) (built: Jun 18 2014 08:33:56) and the mongo.so extension 1.5.4.
When I use this type of code:
$resource = $this->getResource();
$resource->fill();
$resource->save();
Nginx error.log:
2014/06/27 16:21:50 [error] 21288#0: *130 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: <IP_ADDRESS>, server: {server}, request: "GET /api/affiliates HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "{host}", referrer: "{referrer}"
But when I use:
$resource = $this->getResource();
$resource->fill();
$id = DB::table('affiliates')->insert(
$resource->toArray()
);
Everything works fine. I can see that everything also works fine at every ORM function or DB facade except the $save.
Right now I had to overwrite the save() function at every model but any idea of what is happening? Because that really took me time to make the temporany solution...
Any ideas??

how to solve this ? in laravel 7 and jenssenge/mongodb 3.4

@Arkango what is the problem?

When I try to execute a simple query i recieve 502 page from nginx and the following errors
        ReportContent::timeout(-1)->find('517c43667db388101e00000f');

php         | [22-Oct-2020 15:15:40] WARNING: [pool www] child 8 exited on signal 11 (SIGSEGV) after 35.431576 seconds from start
php         | [22-Oct-2020 15:15:40] NOTICE: [pool www] child 9 started
nginx       | 2020/10/22 15:15:40 [error] 6#6: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: <IP_ADDRESS>, server: localhost, request: "GET /test HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9000", host:
How I have to configure correctly my php-fpm7.4-alpine ?

Show docker config files

I edited only the nginx config file,

This is my docker command to add mongodb
          heimdal-dev && \
      pecl install mongodb && \
      docker-php-ext-enable mongodb && \
      apk del .docker-php-mongodb-dependancies && \ ```

Which file I have to edit about php-fpm? www.conf, docker.conf or zz-docker.conf

@Arkango please create a new issue with actual logs (not php-fpm logs), you're having some weird configuration error that you even yourself don't know how to debug.
Thanks!


Fatal crash with all configurations of "paired shortcodes"

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.71.1/extended darwin/amd64 BuildDate: unknown

Does this issue reproduce with the latest release?
This is the latest release.
Explanation
"Paired shortcodes" as described here, namely:
{{% mdshortcode %}}Stuff to `process` in the *center*.{{% /mdshortcode %}}

&
{{< highlight go >}} A bunch of code here {{< /highlight >}}

...Produce a fatal crash identical to the crash described in issue #7322. This issue may also be related to issue #7106.
I've examined the code surrounding shortcodes, and it is clearly very fragile, but the immediate problem can be solved with minor changes.

There are thousands of "paired shortcodes" in Hugo sites that I somehow manage, and I have yet to experience a crash, so your general statement above isn't true.
Lets take this in #7322.


Joint Intensity Fusion

I have been using joint intensity fusion (jointLabelFusion) in ANTsR to impute some T1 images from a group a controls. This works great after the latest updates by @stnava . Now I am trying to do the same in ANTs using bash scripting. But both jointfusion and jointLabelFusion.sh require atlas labels. What would be the corresponding joint intensity fusion to run in shell, so I can get imputation of an image instead of label fusion?

jointfusion and jointLabelFusion.sh are no longer in the ANTs repository and don't support joint intensity fusion.  They were replaced by antsJointFusion and antsJointLabelFusion.sh.  The former supports JIF.

Thanks Nick.
I updated ANTs today without removing the old files, that's why maybe I still see the old binaries.


models/users

Model needs to be change to include more user info:

username
first_name
last_name
email
gender
password
list of following users
list of followers


Update readme.md

Added an example of how to clean expired gridfs data using C#

Will merge manually, thanks.


Code linting and full compliancy

This adds a lint step over src/* using jshint.
I've tried to replicate the current project style (taken from the main module, rather than adapters), the NPM style, and @brianleroux's own comments in #208, producing a .jshintrc in the project root.
Here is a summary of changes:

Some whitespace has been normalized (no tabs, 2 spaces indents, spaces around braces, colons, etc).
Line lengths have been capped at 80 chars (as per NPM).
All code now runs in strict mode (but not global strict).
Explicitly marked globals and exports, and fenced some "peculiar" code.
Fixed a couple of global variable leaks found by linting.
Added lint step in the makefile, before test during default and release.

Notes:

I did not normalize semicolons, curly braces, etc. until an explicit choice is made by the BDFL. When making changes, I simply left whatever style was there before.
I tried to mess with logic as little as possible, but where I had to (mostly because of long lines), I tried to format everything in the style of surrounding code.
Not all tests pass for me in master (I don't have a couchdb available), but those that do still pass in this branch.
Lots of semicolons still lurking out there.

It can still be improved. Code style in adapters still varies wildly, for example, and there are opportunities for optimization and deduplication here and there. But they are out of scope for this PR, which is supposed to leave everything unchanged.
There is eslint too, which has different options for forcing code style, and jscs which is focused on enforcing code style only, but jshint is the safe choice so I picked that.

thanks for the work, man! i guess it might make sense to put this on a development branch for a v2 ov lawnchair ... i'll think of something. can't promise when i'll have the time to go through it, but a big thanks already!


Update web interface with "Start Analysis" Button

I was able to do this sooner rather than later because it looks like the raw HCP data is still in the process of being copied.

Add a "Run Analysis" button to the main interface. This button is active only before analyses are started, and this status is determined by the existence of a ".started" file in /home/vagrant/myconnectome. The button works by calling an application url "start" that only serves to execute the run_everything.py, and then write the ".started" file and redirect to the main page.  When this has been done, the "Run Analysis" button changes to a disabled "Analysis is Running." button.
The page checks for the count of analyses that are finished (based on existence of the result files), and when the count of finished == count of total possible, the button changes to "Analysis is Complete."
The base page is now the main MyConnectome analysis page. This was much harder than I anticipated - there was no way I could figure out to generate directory listings for a custom set of folders (many errors were propogated for the different versions of this that I tried) and changing the app.route to '/' did not work, as the plugin seems to always want the root to be a listing. What worked was creating a symbolic link between the myconnectome folder and a "results" folder in /var/www, and then telling the plugin that the root was the results folder.

I've tested that it works to start and run the analyses, and I also tested locally that the button changes when analyses finish, although I have not tested this last part from a fresh install (for example, what if there are issues with writing to stdout when being run in this fashion?). It is running now and I will edit this PR if any other issues come up!

I don't see them turning green yet - I am worried that the process is killed after the function finishes (I read it is assigned the same ID as the parent process). I'm going to see if I can edit the popen command to spawn a separate process.

@poldrack - where do you set the environment variables:
  environment variable WORKBENCH_BIN_DIR must be specified
  environment variable MYCONNECTOME_DIR must be specified

We need them to be set before the "Start Analysis" button is pushed (this is what I am seeing in the output file I created for the subprocess). It's probably easier to set them when setting up the VM than from within the python script.

Figured it out! We need to pass the environmental variables to the call as well, like this:
               p = Popen(['/home/vagrant/miniconda/bin/python', '/home/vagrant/myconnectome/myconnectome/scripts/run_everything.py']
               stdout=open('/home/vagrant/myconnectome/myconnectome_job.log', 'w'),
               stderr=open('/home/vagrant/myconnectome/myconnectome_job.err', 'a'),
               preexec_fn=os.setpgrp,
               env = os.environ.copy())

stdout: will print output to that log file specified
stderr: will print error to the equivalent error file
preexec_fn: generates a new group ID for the process (not the parent) that should keep the process running (I am still testing this, I am not convinced of it yet, will give an update when it's been running a bit).
env: copies the current system environment for the command to use, which apparently it can't if you don't.

I'm running everything afresh - will of course edit this PR with any needed fixes.

ok, confirmed that analysis stops when user refreshes browser... will need to figure out how to spawn a separate process (and keep it running!)

Actually, I just found an error in the log:
  Traceback (most recent call last):
  File "/home/vagrant/myconnectome/myconnectome/scripts/run_everything.py", line 67, in <module>
   execfile('%s/scripts/rnaseq_analysis.py'%basepath)
   File "/home/vagrant/myconnectome/myconnectome/scripts/rnaseq_analysis.py", line 71, in <module>
    regress_rin_pca.regress_rin_pca()
    File "build/bdist.linux-x86_64/egg/myconnectome/rnaseq/regress_rin_pca.py", line 15, in regress_rin_pca
  IOError: [Errno 2] No such file or directory: '/home/vagrant/myconnectome/rna-seq/varstab_data_prefiltered.txt'

and the last output in the log is:
  ds031/RNA-seq/rin.txt
  /home/vagrant/myconnectome/rna-seq/rin.txt
  ds031/RNA-seq/drawdates.txt
  /home/vagrant/myconnectome/rna-seq/drawdates.txt
  ds031/RNA-seq/pathsubs.txt
  /home/vagrant/myconnectome/rna-seq/rnaseq-subcodes.txt

I don't have any insight about this at the moment.

I just finished running everything from start to finish, and I think it's (finally) ready for you @poldrack to review. I was running into many issues with trying to run the analysis from within the python script (mostly related to environmental variables and paths, as you can see above), and it occurred to me that a much easier solution (and easier for the user) would be to launch the analyses from the getgo, and then have the button serve as a status message. In the README we should instruct the user to only bring up the VM when he/she is ready to do the analyses (aka, has an internet connection).
Here is the status button midway through the analysis:

and finished:

I think that this solution is reasonable, because the user still does not need to log into the VM to do anything, despite not getting whatever satisfaction may come out of pushing a start button! :O)


Syft indexing should ignore non-regular files

(I'm extracting this from a conversation from https://anchorecommunity.slack.com/archives/C019BUXV7R6/p1635509628025900?thread_ts=1635430847.021800&cid=C019BUXV7R6)
Syft is hanging when attempting to index paths that are non-regular files (such as FIFO):
  File: '/run/dmeventd-client'
  Size: 0         	Blocks: 0          IO Block: 4096   fifo
Device: 14h/20d	Inode: 12419       Links: 1
Access: (0600/prw-------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2021-04-06 08:33:27.368000000 +0000
Modify: 2021-04-06 08:33:27.368000000 +0000
Change: 2021-04-06 08:33:27.368000000 +0000
 Birth: -

Indexing should skip theses files instead of hard coding ignore paths such as /run since these can occur anywhere in the filesystem.

@debuglevel thanks for the additional feedback.
We have another PR about to land surrounding this issue:
https://github.com/anchore/syft/pull/667
Linking the closed issue with the PR so we can make sure we have coverage for /run/initctl
A new version of syft will be released to address these hangs.

Thanks a lot! (Awesome tool by the way. I could not thank enough to have something like this tool during log4shell.)


Breadcrumbs for Advanced Search

As a ministry coordinator or IAO analyst
I want breadcrumbs when doing an advanced search
so that I can navigate back to my original search parameters

Assumptions & Scope
What are the assumptions for this story?
Users will want to conduct a search, check individual requests, and easily navigate back to their search results without re-entering the search criteria.
Will use material UI component.
What is IN scope?
Breadcrumbs for advanced search
What is NOT in scope?
Breadcrumbs for the rest of the app
Acceptance Criteria
Scenario 1: xxxxxx

GIVEN a ministry coordinator or IAO analyst has selected search parameters
AND clicked the 'Apply Search' button
AND search results are listed
WHEN the user clicks on the a request listed
THEN the request view will open
AND a 2 layer breadcrumb will show with Advanced Search and the Request Number for the request the user is currently on

Scenario 2: Click Advanced search breadcrumb

GIVEN the user is on a request found as part of an advanced search
WHEN the user clicks the Advanced Search breadcrumb
THEN the user will be returned to the Advanced Search view
AND their search results will be listed
AND the their search parameters will still be selected

Scenario 3: xxxxxx
...
Dependencies? What is the impact of this dependency? (If so, link dependency in the ticket, make it visible in a team´s backlog)
Validation Rules? (If yes, list here)
Design
Designed based off of pre-designed component here: https://mui.com/material-ui/react-breadcrumbs/#main-content

Definition of Ready

[ ] Is there a well articulated User Story?
[ ] Is there Acceptance Criteria that covers all scenarios (happy/sad paths)?
[ ] If there is a user interface, is there a design?
[ ] Does the user story need user research/validation?
[ ] Does this User Story needs stakeholder approval?
[ ] Design / Solution accepted by Product Owner
[ ] Is this user story small enough to be completed in a Sprint? Should it be split?
[ ] Are the dependencies known/ understood? (technical, business, regulatory/policy)
[ ] Has the story been estimated?

Definition of Done

[ ] Passes developer unit tests
[ ] Passes peer code review
[ ] If there's a user interface, passes UX assurance
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Confirm Test cases built and succeeding
[ ] No regression test failures
[ ] Test coverage acceptable by Product Owner
[ ] Ticket ready to be merged to master or story branch
[ ] Developer to list Config changes/ Update documents and designs
[ ] Can be demoed in Sprint Review
[ ] Tagged as part of a Release
[ ] Feature flagged if required
[ ] Change Management activities done?

I will draft the AC as discussed.

@divyav-aot, please review the AC and estimate the story.
Note, I have scoped this story for breadcrumbs for advanced search only. I do not believe we need breadcrumbs for the Queue as the search parameters are limited and easily re-entered for the queue. @m-prodan @KaraBeach, let me know if you agree?

@lmullane , breadcrumb is not expected when we right click and open the request in a new window right?

Correct, there would be no breadcrumb in that scenario.

Nice work, @nkan-aot.
All AC passed. This will be a big improvement for the users to retain their search results and parameters.


Automatically install appropriate reports and dashboards for data sources

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1241
Originally created by @dmor on 2019-11-01 17:04:36

We are automatically providing user with default transforms and models, why not also give them a default dashboard view so they immediately see value from each tap... and then they can edit from there?
This could address the problem of time-to-value from data source to dashboard for UI adoption, and exposes what Meltano can do
Valuable call notes on this topic here https://gitlab.com/meltano/account-management/issues/58#note_263266389
First iteration: https://gitlab.com/meltano/meltano/issues/1241#note_272829405

View 49 previous comments from the original issue on GitLab


Fail to download a video...

Checklist

[    ] I'm reporting a broken site support issue
[ X ] I've verified that I'm running youtube-dl version 2021.12.17
[    ] I've checked that all provided URLs are alive and playable in a browser
[    ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[    ] I've searched the bugtracker for similar bug reports including closed ones
[    ] I've read bugs section in FAQ

Verbose log

youtube-dl.exe --version
2021.12.17

youtube-dl.exe --verbose https://www.youtube.com/watch?v=aNa3Co83_gk
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=aNa3Co83_gk']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.22621
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] aNa3Co83_gk: Downloading webpage
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\youtube.py", line 1794, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 1012, in _search_regex
youtube_dl.utils.RegexNotFoundError: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

I don't know what to say... I got a message to report the bug!

Same here on WSL rocky-linux9
 youtube-dl https://www.youtube.com/watch?v=4n_c7_yOC30 --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=4n_c7_yOC30', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.9.16 (CPython) - Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.34
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] 4n_c7_yOC30: Downloading webpage
[youtube] 4n_c7_yOC30: Downloading API JSON
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/extractor/youtube.py", line 1794, in _real_extract
    'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
  File "/usr/local/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 1012, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

[ ] I've searched the bugtracker for similar bug reports including closed ones
[ ] I've read bugs section in FAQ

Do it! But first read #30839 properly and you won't have to.


increment package and version, uodate changelog

resolves https://github.com/iambumblehead/esmock/issues/46


Error messages capitalise keywords at start of message

Steps to reproduce
Some error messages capitilise keywords when used at the start of the message.  E.g.,
E1368: Static cannot be followed by \"this\" in a variable name
Expected behaviour
These should be lowercase and match the keyword.
I can track them down if it's agreed this correction is needed.
Version of Vim
9.0.2078
Environment
Ubuntu 20.04
Logs and stack traces
No response

The error message convention is to start the message with a capital letter.  See the following commits:
https://github.com/vim/vim/commit/7707228aace9aff16434edf5377a354c6ad07316
https://github.com/vim/vim/commit/cf030578b26460643dca4a40e7f2e3bc19c749aa
https://github.com/vim/vim/commit/df6e0e46c55c9c6d788f94482a8858c0f31391f4
https://github.com/vim/vim/commit/7ece036d72cf639b05d3936183220bec7179bf63

OK, I think lowercase or quoted might be better in this case but sorry for wasting your time as it seems it's been decided.
Thanks for the detailed reply.


allow remote host

Be simply providing host and port, this client can be used to connect to remote bitcoind instances. Basically all that is missing is the configuration steps where the user specifies these options. Add them to the setup and save in user_config until needed.

Git Guild Bounty Program

Total
Dev
Sales
Reporter
Tester(s)
Maintainer
Documenter

N/A
assignee(s)
@isysd
@isysd
@isysd
@isysd
@d3brouille

$91.67
$55.00
$4.58
$4.58
$18.33
$4.58
$4.58


Installation takes hours

Hi there, I am trying to install reflex on a Centos 6 using go get github.com/cespare/reflex. It has been running now for hours. This is what I see on the box:
root      6929  2750  0 11:18 pts/0    00:00:01 go get github.com/cespare/reflex
root      7213  6929  0 11:18 pts/0    00:00:00 git clone https://gopkg.in/fsnotify.v1 /root/golang/src/gopkg.in/fsnotify.v1
root      7214  7213  0 11:18 pts/0    00:00:00 git-remote-https https://gopkg.in/fsnotify.v1 https://gopkg.in/fsnotify.v1
root      7216  7214  0 11:18 pts/0    00:00:00 git fetch-pack --stateless-rpc --lock-pack --thin --no-progress https://gopkg.in/fsnotify.v1  efs/heads/master  efs/heads/v0  efs/tags/v0.8.06  efs/tags/v0.8.07  efs/tags/v0.8.08  efs/tags/v0.8.09  efs/tags/v0.8.10  efs/tags/v0.8.11  efs/tags/v0.8.12  efs/tags/v0.8.13  efs/tags/v0.9.0  efs/tags/v0.9.1  efs/tags/v0.9.2  efs/tags/v0.9.3  efs/tags/v1.0.0  efs/tags/v1.0.2  efs/tags/v1.0.3  efs/tags/v1.0.4  efs/tags/v1.1.0  efs/tags/v1.1.1  efs/tags/v1.2.0  efs/tags/v1.2.1  efs/tags/v1.2.10  efs/tags/v1.2.11  efs/tags/v1.2.5  efs/tags/v1.2.8  efs/tags/v1.2.9  efs/tags/v1.3.0
root      8368  7916  0 14:04 pts/2    00:00:00 grep go

Is this normal or am I missing something related to this installation?

Okay, I think I found it...
Had to replace gopkg.in/fsnotify.v1 with github.com/fsnotify/fsnotify in watch.go and main.go.
Could you please update them in the repository and test it? Many thanks.


Blocks Preview 5 ADLS: Missing API - PagedIterable map function to return a PagedIterable

Related to issue #5825
Storage needs a way to go from a PagedIterable of A to a PagedIterable of C to implement DataLake features.
Some datalake APIs (that are a separate namespace from blobs) call directly into blob APIs (ex: listBlobContainers) that returns a PagedIterable of BlobContainerItems.
To make the namespace for a user consistent, we need to be able to return a PagedIterable of SomeOtherItem.
For example,
    public PagedIterable<FileSystemItem> listFileSystems(ListFileSystemsOptions options, Duration timeout) {
        return blobServiceClient.listBlobContainers(Transforms.toListBlobContainersOptions(options), timeout).to(blobContainerItem -> Transforms.toFileSystemItem(blobContainerItem));
    }

@srnagar will own investigating this, similar to #5825


Check for fulfilled obligations on homepage

Needs content however, homepage would now know if users first return for conditional link

https://hmrcdigital.slack.com/archives/G0148HWBU79/p1663861700943199?thread_ts=1663836868.442319&cid=G0148HWBU79


[Feature] Automatically connect a package release to a specific repositiory (specifically looking at container registries right now)

Feature Description
Use the standard annotation (like github does) to connect a container release to specific repository.  The one that github uses is "org.opencontainers.image.source".  If this matches an existing repo within the system it will automatically link the two.
Screenshots
No response

More or less a duplicate. See "Set repository link from package metadata" in #19270.

And I thought I had read through all of the open issues before posting! Thanks...


first attempt Issue #649 fix compiler warnings

Hi @spf3000 , I added a couple of comments in line. Also, why did you move refined to a scala 2.13 folder?

Hi Julien,
So I totally stuffed up that push - something went wrong with the whole
commit/fork change origin thing and I committed some explorations I did
around Stream even though I decided to abandon them.  I will fix and
recommit.  Possibly just put it on a new branch. Sorry!
On Tue, 23 Apr 2019 at 11:01, Julien Truffaut<EMAIL_ADDRESS>wrote:

Hi @spf3000 https://github.com/spf3000 , I added a couple of comments
in line. Also, why did you move refined to a scala 2.13 folder?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/julien-truffaut/Monocle/pull/655#issuecomment-485738523,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADYAHLNDQ66LYPERBW4NJZTPR3NADANCNFSM4HHVMUJQ
.

Hi Julien, So I totally stuffed up that push - something went wrong with the whole commit/fork change origin thing and I committed some explorations I did around Stream even though I decided to abandon them. I will fix and recommit. Possibly just put it on a new branch. Sorry!

no worry, I am almost always screw up and I have done it a lot ;)


When Perform an intent evaluation Not support markdown format

When doing the test of http://localhost:5005/model/test/intents  according to the testModelIntent：

However,  it seems do  not support the  markdown format!
My request is：
curl -XPOST http://localhost:5005/model/test/intents -d '## intent:goodbye\n- goodbye\n\n''

What should I do to get the intent of  the query? Thanks a lot!
My Rasa version is Rasa 1.6.0

Thanks for the issue, @rgstephens will get back to you about it soon!
You may find help in the docs and the forum, too 🤗

the -d option should be a filename with the markdown: -d @intents.md.
Please post questions in our forums at https://forum.rasa.com.


New website

New website for SWR.

Some nice to have:

Link to next section at the end of each page
Edit on GitHub link
Search (at least by titles of the sidebar)
Examples section, with an embedded CodeSandbox running each example in the repo, ideally with the README or some description.

looks like we got few use cases like this (remember there was another one in the issue board) github.com/vercel/swr/discussions/472#discussioncomment-28008
I guess empty mutate() can be triggered as revalidation is also a good case to mention in the docs


Train Caffe Model task failed with error code -6

Hello
I'm trying to do the training in Digits (Models -> classification), but the following error comes out:
ERROR: Check failed: status == CUBLAS_STATUS_SUCCESS (13 vs. 0) CUBLAS_STATUS_EXECUTION_FAILED
ip2 needs backward computation.
relu1 needs backward computation.
ip1 needs backward computation.
pool2 needs backward computation.
conv2 needs backward computation.
pool1 needs backward computation.
conv1 needs backward computation.
scale does not need backward computation.
label_val-data_1_split does not need backward computation.
val-data does not need backward computation.
This network produces output accuracy
This network produces output loss
Network initialization done.
Solver scaffolding done.
Starting Optimization
Solving
Learning Rate Policy: step
Iteration 0, Testing net (#0)
Ignoring source layer train-data
Check failed: status == CUBLAS_STATUS_SUCCESS (13 vs. 0)  CUBLAS_STATUS_EXECUTION_FAILED
In the terminal you can see:
saulibanez@saulibanez:~/digits$ ./digits-devserver -p 5001

|   _ / | | / |
| |) | | ( || |  | | _
|/_|| || |__/ 6.1.1
Tensorflow support disabled.
2018-04-02 16:42:08 [INFO ] Loaded 3 jobs.
2018-04-02 16:42:08 [WARNING] Failed to load 1 jobs.
2018-04-02 16:42:08 [DEBUG] 20180323-180845-18b1 - IOError: [Errno 2] No such file or directory: '/home/saulibanez/digits/digits/jobs/20180323-180845-18b1/status.pickle'
2018-04-02 16:43:07 [20180326-142428-1180] [INFO ] Job deleted.
2018-04-02 16:43:11 [20180326-175741-8ebc] [INFO ] Job deleted.
2018-04-02 16:43:40 [20180402-164338-d727] [DEBUG] Network sanity check - train
2018-04-02 16:43:40 [20180402-164338-d727] [DEBUG] Network sanity check - val
2018-04-02 16:43:40 [20180402-164338-d727] [DEBUG] Network sanity check - deploy
2018-04-02 16:43:40 [20180402-164338-d727] [INFO ] Train Caffe Model task started.
2018-04-02 16:43:40 [20180402-164338-d727] [INFO ] Task subprocess args: "/home/saulibanez/caffe/build/tools/caffe train --solver=/home/saulibanez/digits/digits/jobs/20180402-164338-d727/solver.prototxt --gpu=0"
2018-04-02 16:43:40 [20180402-164338-d727] [ERROR] Train Caffe Model: Check failed: status == CUBLAS_STATUS_SUCCESS (13 vs. 0)  CUBLAS_STATUS_EXECUTION_FAILED
2018-04-02 16:43:40 [20180402-164338-d727] [ERROR] Train Caffe Model task failed with error code -6
Does anyone know how to fix it?
Thank you.

Hello @saulibanez, I also encountered this problem. Have you found a solution?

Solved！Reinstall protobuf and caffe problem solved.


Incorrect npm keyword

@comparte/eslint-config version: ^4.0.1

Relevant code or config:
https://github.com/comparto/eslint-config/blob/master/package.json#L14
Problem description:
Incorrect org name as keyword, should be comparto
Suggested solution:
~comparte~ comparto

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


dotnet publish --no-build fails in a repo using Microsoft.Build.Traversal

Context (and repro steps):

https://github.com/dotnet/sdk/issues/18206
https://github.com/dotnet/sdk/issues/18206#issuecomment-1501548200

Seems like this may be a regression of #125?

Also seems to happen with dotnet pack.

@alexrp this celerity repo is using a Vezel.Zig.Sdk, which has highly customized the .NET SDK and I believe is leading to the problem.  I cannot repro with a simple setup:
dirs.proj
<Project Sdk="Microsoft.Build.Traversal/3.4.0">
  <ItemGroup>
    <ProjectReference Include="ProjectA\ProjectA.csproj" />
    <ProjectReference Include="ProjectB\ProjectB.csproj" />
  </ItemGroup>
</Project>

The dotnet build --no-restore and dotnet build --no-restore --no-build command respect the targest to run:
D:\repros\traversal-no-build>dotnet restore
  Determining projects to restore...
  All projects are up-to-date for restore.

D:\repros\traversal-no-build>dotnet build --no-restore
MSBuild version 17.5.0+6f08c67f3 for .NET
  ProjectB -> D:\repros\traversal-no-build\ProjectB\bin\Debug\net6.0\ProjectB.dll
  ProjectA -> D:\repros\traversal-no-build\ProjectA\bin\Debug\net6.0\ProjectA.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.73

D:\repros\traversal-no-build>dotnet publish --no-restore --no-build
MSBuild version 17.5.0+6f08c67f3 for .NET
  ProjectB -> D:\repros\traversal-no-build\ProjectB\bin\Debug\net6.0\publish\
  ProjectA -> D:\repros\traversal-no-build\ProjectA\bin\Debug\net6.0\publish\

Do you have a repro with a set of projects that only use the .NET SDK?

Thanks for taking a look; that's interesting. The errors popped up in projects completely unrelated to the src/runtime/native project that's using my Zig SDK (e.g. src/generators), so it didn't even occur to me that the issue could be there. 🤔
C:\program files\dotnet\sdk\8.0.100-preview.2.23157.25\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(161,5): error NETSDK1085: The 'NoBuild' property was set to true but the 'Build' target was invoked. [C:\Users\alex\source\repos\vezel\celerity\src\generators\generators.csproj]

I tried removing all references to the native project, and sure enough, it now works. What's curious is that dotnet build && dotnet publish --no-build in e.g. src/runtime/core (which references src/runtime/native) works fine. It only seems to break if done from the repo root (where celerity.proj using Microsoft.Build.Traversal sits).
I would assume that the fault lies with my SDK somehow. Do you happen to know if Traversal has some special requirements for how the Publish target is set up that the regular .NET SDK does not?


Some jobItems don't contain companyNameSpan

The jobItems that don't contain companyNameSpan shouldn't exist. This issue needs further investigation to why this happens.
Here is the snippet of the code where the issue can be debugged:
            companyNameSpan = jobItem.find_elements(By.XPATH, ".//span[contains(@class, 'job-card-container__primary-description')]")
            if companyNameSpan:
                full_description = companyNameSpan[0].text.strip()

                if '·' in full_description:
                    companyName = full_description.split('·')[0].strip()
                else:
                    companyName = full_description

                if self.isCompanyBlacklisted(companyName):
                    if config.displayWarnings:
                        prYellow(f"⚠  Not adding a job as the company '{companyName}' is blacklisted")
                    continue

            if companyName is None:
                utils.logDebugMessage("Couldn't find companyName", utils.MessageTypes.WARNING)
                continue

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."


Adding batch comments

I added comments in order to specify the source of the functions allowing to reload the path environment variables after the installation of node.js, to run "npm install" and "node ."

looks good to go


test(API): Increase Alias coverage

[x] This contribution adheres to CONTRIBUTING.md.
[x] New tests have been created for any new features or regression tests for bugfixes.
[x] tox successfully runs, including unit tests and style checks (see CONTRIBUTING.md).

Coverage decreased (-0.1%) to 65.465% when pulling b3986f6c1384d6b02d3e3ba9b38a8c6b6a29ee92 on epage:test into 0828b31a356278b8baff7ac04acdab35fab8aeb0 on ni:master.

Integration coverage is now at 75%


Demo: Eliminate quickstart.sh from Chorus docker demo

Move quickstart.sh functionality to docker compose
Recreated from https://github.com/o19s/opensearch-ubl/issues/33

@RasonJ I can pick this up, if you want to walk me through a bit what is working for you and what isn't...

So, generally shell scripts don't run on Windows :)
The easiest solution would be to move the quickstart.sh inside a container that already is running linux.
The more painful solution would be to pull out each piece of functionality in the quickstart.sh and translate it into docker compose commands.
Notable items:

the first few lines just make sure that the proper unix commands exist.  In my WSL, I had to do an apt-get for each of these utilities.

all of the docker commands work pretty well on Windows; so, something like docker compose up runs natively on windows and doesn't need to be in the quickstart.sh.  So, the following is unnecessary.  (also, note that's how one could init the .ubi_log_events store)

all curl commands can be run within the container.  i.e.:

I'd prefer us to simplify how the data is indexed.  For example, do we have to download the catalog each time?  Can we store the intermediate file transformed_data.json in some sort of artifactory/repo, and have the script just download that to index?

Let's put this on hold for now....


iPhone Simulator Key in Info.plist

I got Errors while uploading an App with Xcode 7 to itunesconnect because iPhoneSimulator was in Info.Plist as supported platform.
Why is it stated in Info.plist?
Just deleted this 2 times and seems to work now:
I got Errors while uploading an App with Xcode 7 to itunesconnect because iPhoneSimulator was in Info.Plist as supported platform.
Why is it stated in Info.plist?
Just deleted this 2 times and seems to work now:
<key>CFBundleSupportedPlatforms</key>
 <array>
    <string>iPhoneSimulator</string>
 </array>

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26741298-iphone-simulator-key-in-info-plist?utm_campaign=plugin&utm_content=tracker%2F637500&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F637500&utm_medium=issues&utm_source=github).

You should upgrade to v 1.3.0 (please readme on startpage how to do this corretly)
This includes the new SDK which should be fine (i hope so)

I did this yesterday evening.
My plugin list says:
plugin.google.maps 1.3.0 "phonegap-googlemaps-plugin"
and installed automatically this SDK:
com.googlemaps.ios 1.10.2 "Google Map iOS SDK for Cordova"

Will check the plist problems these days

Hi @Hirbod I have same problem. How do I fix the error without waiting for the update?

@vash15  read my first comment?

@Mojo90  I've read. I solved changing:
DTPlatformName: iphoneos
DTSDKName: iphoneos8.4
CFBundleSupportedPlatforms->
Item0: iPhoneOS
but I do not know if it is correct.

okay as I mentioned I just deleted those 2 lines with iPhoneSimulator and does work for me. Don't know what this has to mean there

Same problem here

Pueden ejecutar la instrucción: command+shift+F y busquen el key que sale en la lista de errores. Lo eliminamos y funcionó correctamente. (ojo solo borren el item no todo el nodo)
Cordialmente,
M.Sc. Franklin Garzón
Lucha hasta alcanzar tus sueños
Date: Wed, 23 Sep 2015 04:34:10 -0700
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Subject: Re: [phonegap-googlemaps-plugin] iPhone Simulator Key in Info.plist (#626)
Same problem here
—
Reply to this email directly or view it on GitHub.

Will update SDK later

+1 Please update Google SDK

Grab 1.3.2 from master - included new SDK 1.10.3

Thanks Hirbod

Thanks!


Optionally pass changeset status when there are no changesets

Affected Packages

pkg:@changesets/cli
Problem

In my CI pipelines, I use changeset status --output tmp/changeset-status.json to get a list of changed packages. When not on the main branch, the command also uses --since main.
The command fails with a non-zero exit code when there are no changesets. However, I don't want the CI workflow to fail in that case, but I want it to fail when it exits with non-zero for any other reason. Unless I'm mistaken, there's no non-fragile way to use the changeset status command to not fail when there are no changesets. However, I completely understand the existing behaviour is the most common use case.
My use case is that sometimes I create pull requests in a monorepo that change things that aren't packages, such as GitHub Actions workflows, etc. The pull request's build should not fail due to the absence of changesets in that case, because it doesn't change any packages.
Proposed solution

Please consider adding --allow-empty or --allow-no-changesets (or other suitably named) option to prevent the absence of changesets being an error. It would default to false, preserving existing behavior.

My use case is that sometimes I create pull requests in a monorepo that change things that aren't packages, such as GitHub Actions workflows, etc. The pull request's build should not fail due to the absence of changesets in that case, because it doesn't change any packages.

How you will actually fail the CLI when there is a change in some package and there are no changesets there?

How you will actually fail the CLI when there is a change in some package and there are no changesets there?

If changeset status errored based on comparing the current branch with the base branch and ensuring there were sufficient changesets in the current branch that aren't in the base branch to cover those changes, then that would be exactly what I want. But changeset status doesn't work that way. The biggest hint that it doesn't is that it recommends you create an empty changeset to prevent it failing. But even that only works if there are changesets in the base branch that cover the non-base branch's changes. The criteria for failing seem a bit off.

If changeset status errored based on comparing the current branch with the base branch and ensuring there were sufficient changesets in the current branch that aren't in the base branch to cover those changes, then that would be exactly what I want.

Could you picture this somehow? A simple text summary of the FS state, PR state, and all relevant stuff to the problem would help me to visualize this.

But even that only works if there are changesets in the base branch that cover the non-base branch's changes. The criteria for failing seem a bit off.

Same here, especially for the case that feels off.


Deprecate the old C API

The Slang API has evolved over a long period of time, stretching back to well before the system was even called "Slang." The C API of sp-prefixed functions no longer reflects the intended way to use Slang, and we would like to deprecate (and eventually remove) these functions so that we no longer have to maintain them as we introduce new functionality.
Issue #3616 covers the more urgent task of discouraging new users from writing code using the to-be-deprecated API.
Further steps to effectively deprecate and remove the C API should ideally include:

Ensure that the COM/C++ API is feature-complete for all use cases that the C API currently covers

Refactor the slang.h API header so that the C++ API is declared first, and the C API types are expressed as typedefs of the C++ types, instead of the other way around. This step should not break binary compatibility but may break source compatibility in narrow cases (e.g., if client code forward-declares Slang API types, the distinction between something being a struct vs. a typedef is visible).

Split the C API out of the primary slang.h header, so that anybody reading the header only sees the C++ API, and can clearly see something like #if SLANG_LEGACY_API_ENABLED or similar guarding an include of something like slang-legacy-api.h

Move the implementation of the C API (in terms of the C++ API) from the Slang implementation itself into the slang-legacy-api.h header, so that it is effectively a single-file library wrapping the proper Slang API. This step should be binary-breaking but not source-breaking for clients using the old API.

Make the legacy API be disabled by default, so that client code must opt into it.

Add deprecation warnings that will trigger for code that opts into the C API (easy enough to do with a #pragma warning

Remove the C API while keeping the relevant #define/#include enable, by switching the #pragma warning to a #error.

Remove the support cruft entirely.

The above steps can be staged out slowly, or lumped together into a smaller number of changes, depending on how quickly we think we can migrate existing users over to the new API.

It's unfortunate to see the C API go since it allowed me to automatically generate Rust language bindings to Slang for use in my own open-source toy engine. I fully understand the decision to deprecate though.
I assume the slang_createGlobalSession dll export won't be deprecated. If so I can create new Rust bindings based on this and the COM API.

Blocked by #3882.

@laurooyen We will keep the reflection API as is and there is no plan to deprecate them.

The functions to deprecate are all the sp* functions, plus the ICompileRequest interface.

Given these:

Refactoring the slang.h API header so that the C++ API is declared first, and the C API types are expressed as typedefs of the C++ types.
Moving the implementation of the C API (in terms of the C++ API) into the slang-legacy-api.h header, making it a single-file library wrapping the proper Slang API.

Could you further clarify if the intention is to provide C bindings to the C++ API, or if there's another direction planned for supporting C users?

For the C API, we will need to use some code generators to generate C wrappers from the COM interface, so that we don't need to maintain the two versions manually. We haven't planned this work yet but it is something we will need before removing the existing C API.

This is excellent, thank you!

Does exposing C bindings to this API invite contributions from external collaborators?

Does exposing C bindings to this API invite contributions from external collaborators?

We welcome external contributions to add bindings for any language, including C.

@csyonghe Alright, should it be a standalone parser (py, c, cpp?) + a generated header file?

Closing this overarching bug; we're now tracking in multiple issues to track smaller steps, first at #4758


Reading KML features: retrieved styles

Hi,
It seems that there's a bug with the ol.format.KML.readFeature method. In the case of a KML style defined in this way:
<Style id="LineStyle37">
		<LabelStyle>
			<color>00000000</color>
			<scale>0</scale>
		</LabelStyle>
		<LineStyle>
			<color>ffff7000</color>
			<width>1.5</width>
		</LineStyle>
		<PolyStyle>
			<color>00000000</color>
			<outline>0</outline>
		</PolyStyle>
	</Style>

the style of the feature retrieved by readFeature() is invalid, because the line color is black (the PolyStyle color). The way to fix this, so the style be the same as LineStyle, is to modify the KML in the following ways:

Changing PolyStyle.outline to 1,
Or commenting/deleting the PolyStyle element

In other cases, the line color is the value of the element PolyStyle.color.
Regards

Can you please post a full (simplified if possible) KML doc, and also a screenshot of what it looks like in openlayers and in Google Earth?

Google Earth

OpenLayers (using and modifying the v3.19.0\examples\kml.html example) doesn't show the line, so it isn't necessary to post any snapshot, I think. To display the line you can comment the PolyStyle or set the PolyStyle outline to 1.
This is the KML file:
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> <Document xsi:schemaLocation="http://www.opengis.net/kml/2.2 http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd http://www.google.com/kml/ext/2.2 http://code.google.com/apis/kml/schema/kml22gx.xsd"> 	<open>1</open> 	<Snippet maxLines="0"></Snippet> 	<Style id="LineStyle37"> 		<LabelStyle> 			<color>00000000</color> 			<scale>0</scale> 		</LabelStyle> 		<LineStyle> 			<color>ffff7000</color> 			<width>1.5</width> 		</LineStyle> 		<PolyStyle> 			<color>00000000</color> 			<outline>0</outline> 		</PolyStyle> 	</Style> 	<Placemark id="ID_30009"> 		<name>Zona II, o exterior, de las aguas del puerto</name> 		<Snippet maxLines="0"></Snippet> 		<styleUrl>#LineStyle37</styleUrl> 		<MultiGeometry> 			<LineString> 				<coordinates> 					-15.40704919272269,28.17718151877526,0 -15.40430391851128,28.17718965199818,0 -15.40149112278894,28.173478977071,0 -15.40142360080827,28.16955464127901,0 -15.39886856244516,28.16676037236151,0 -15.38816233136794,28.1667705493189,0 -15.38785881709076,28.08249233060574,0 -15.36915336488129,28.08827078932579,0 -15.36907838799137,28.06634247540433,0 -15.39445434038574,28.05914880892467,0 -15.40776983345165,28.09586695596222,0 -15.40918120632248,28.10447770630506,0 -15.41217615885203,28.10906159983136,0 -15.41435429206165,28.11025339816343,0  				</coordinates> 			</LineString> 		</MultiGeometry> 	</Placemark> </Document> </kml>

thank you for the clarifications

Thank you for the work you do ;-)

I'll see if I can come up with a quick fix

I'm testing with your KML file in the kml example, but the source does not even get any feature in my case (this is on master).

Exactly, OL goes to the feature (if you do a map.getView().fit(...)), but the feature is not displayed.

No I mean there is no feature in the source even

I made a few small changes to the KML doc and now it's in the source, maybe GitHub messed up some of the markup
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
    <Document>
        <open>1</open>
        <Snippet maxLines="0"/>
        <Style id="LineStyle37">
            <LabelStyle>
                <color>00000000</color>
                <scale>0</scale>
            </LabelStyle>
            <LineStyle>
                <color>ffff7000</color>
                <width>1.5</width>
            </LineStyle>
            <PolyStyle>
                <color>00000000</color>
                <outline>1</outline>
            </PolyStyle>
        </Style>
        <Placemark id="ID_30009">
            <name>Zona II, o exterior, de las aguas del puerto</name>
            <Snippet maxLines="0"/>
            <styleUrl>#LineStyle37</styleUrl>
            <MultiGeometry>
                <LineString>
                    <coordinates> -15.40704919272269,28.17718151877526,0
                        -15.40430391851128,28.17718965199818,0 -15.40149112278894,28.173478977071,0
                        -15.40142360080827,28.16955464127901,0
                        -15.39886856244516,28.16676037236151,0 -15.38816233136794,28.1667705493189,0
                        -15.38785881709076,28.08249233060574,0
                        -15.36915336488129,28.08827078932579,0
                        -15.36907838799137,28.06634247540433,0
                        -15.39445434038574,28.05914880892467,0
                        -15.40776983345165,28.09586695596222,0
                        -15.40918120632248,28.10447770630506,0
                        -15.41217615885203,28.10906159983136,0
                        -15.41435429206165,28.11025339816343,0 </coordinates>
                </LineString>
            </MultiGeometry>
        </Placemark>
    </Document>
</kml>

Okay so now onto the styling issue

It should just render the feature with the default style right in this case? Like Google Earth does?

Well, I guess that Google Earth uses the line style to "draw" the line with the color and thick specified in the style. In this case, using the KML color ffff7000 and a width of 1,5. I think the polygon style should not affect the way the line is displayed.

 So the issue seems to be that the ol3 code merges the polygon and line styles into a single style object. It seems to me they should be kept separate and applied in the style function based on the geometry type

I think so.

Unfortunately the fix is not as simply as I had envisioned, hope to revisit this some other time though, if others have ideas I'd like to hear them as well


How to hyperlink html id?

The hyperlink plugins only allow linking the URL. But I need to hyperlink a HTML id for taking the user to that section on click?

Sorry, but I think this is more a TinyMCE support question rather than a django-tinymce issue, right?

(the answer is that you want links like #id instead of /same/site/link or https://domain/path)


vscode extensions no longer work on macos

After https://github.com/rycee/home-manager/pull/795 was merged, vscode extensions no longer work on macos. It seems like the extensionPath is correct (.vscode/extensions) so I'm not sure why this doesn't work. I'm happy to help debug but I'm not very familiar with nix debugging tools.

@pradyuman Do you get any error message or similar?
@pasqui23 Any idea what could cause problems on macOS?

No error message, but the vscode extensions don't exist when I launch the editor. When I run nix-collect-garbage -d, the extensions are deleted, so I'm thinking there's some issue with the way they are being linked.

The issue with this appears to  be that the commit added on oct 20th isn't correct. If you look in ~/.vscode/extensions after running home-manager with that commit, you'll see that it's got a folder called "share" in there, because the vscode extensions are installed from share/... not top-level which the linking assumes.
At least that's the case on Linux.

I've merged @pasqui23's fix. Please give it a try with the latest master!

Looks like it's working! Thanks for the fix @pasqui23.


Hotfix: Wait for files to finish uploading before finishing upload Step

I assumed puppeteer would take care of waiting, but it turns out that it does not. Gave me a chance to use Promises differently, though. It's nice to see their asynchronicity be useful for a change.

I'd say we can squash this when we merge.


Add reconnect button

3.6.2
Please add reconnect button to this dialog (mysql)

Can you provide steps to reproduce that?
DBeaver uses SQL state codes to determine special errors like disconnect.
The actual error (08? - that's not a valid SQL state) doesn't mean that connection was lost/interrupted. It is just a regular SQL error.
Usually MySQL provides good codes (08006, 08007, 08S01, etc).

sorry not mysql, mariadb 10.1.12
1.Open table
2.Open data tab and get content
3.Kill user connection
4.In data tab press F5

i use mariadb driver

Yep. MariaDB driver doesn't yet support valid SQL states.
I'll add a workaround for it.
Thanks for report.


Consider migrating from flake8/isort to ruff

ruff is a very fast Python linter written in Rust. It supports a large amount of rules and is being used by more and more high-profile Python projects.
ruff can replace and expand on the tools we are using right now, such as flake8 and isort.
I propose we migrate our current lint configuration to ruff.

Apparently it can replace black too.


how to add to the restrinced types of the profile after creation the collection

Hello
If the collection has been created based on e.g. 3 types, is there any way to update the collection by adding another type to the profile instead of creating a new one?

You could re-run the dump processing after having updated the profile. That should work out of the box and should not re-ingest the entities you already have thanks to the versioning (re-ingesting the same version of an entity should not do anything).

sorry for disturbing you.
I got the following error while for creation the first collection it has not been got.
Although the collection is created but I am not sure it has been built completely or not.
Traceback (most recent call last):
  File "/home/dnn/.local/lib/python3.8/site-packages/urllib3/connection.py", line 140, in _new_conn
    conn = connection.create_connection(
  File "/home/dnn/.local/lib/python3.8/site-packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/home/dnn/.local/lib/python3.8/site-packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dnn/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 598, in urlopen
    httplib_response = self._make_request(conn, method, url,
  File "/home/dnn/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 357, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/dnn/anaconda3/lib/python3.8/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/dnn/anaconda3/lib/python3.8/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/dnn/anaconda3/lib/python3.8/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/dnn/anaconda3/lib/python3.8/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/home/dnn/anaconda3/lib/python3.8/http/client.py", line 950, in send
    self.connect()
  File "/home/dnn/.local/lib/python3.8/site-packages/urllib3/connection.py", line 166, in connect
    conn = self._new_conn()
  File "/home/dnn/.local/lib/python3.8/site-packages/urllib3/connection.py", line 149, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f2462941730>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dnn/.local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/home/dnn/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 638, in urlopen
    retries = retries.increment(method, url, error=e, _pool=self,
  File "/home/dnn/.local/lib/python3.8/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8983): Max retries exceeded with url: /solr/collection_sa/update?commit=false (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2462941730>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/dnn/anaconda3/bin/tapioca", line 33, in <module>
    sys.exit(load_entry_point('opentapioca==0.1.1', 'console_scripts', 'tapioca')())
  File "/home/dnn/anaconda3/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/dnn/anaconda3/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/dnn/anaconda3/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/dnn/anaconda3/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/dnn/anaconda3/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/dnn/anaconda3/lib/python3.8/site-packages/opentapioca-0.1.1-py3.8.egg/opentapioca/cli.py", line 118, in index_dump
    tagger.index_stream(collection_name, dump, indexing_profile,
  File "/home/dnn/anaconda3/lib/python3.8/site-packages/opentapioca-0.1.1-py3.8.egg/opentapioca/taggerfactory.py", line 91, in index_stream
    self._push_documents(batch, collection_name, commit)
  File "/home/dnn/anaconda3/lib/python3.8/site-packages/opentapioca-0.1.1-py3.8.egg/opentapioca/taggerfactory.py", line 118, in _push_documents
    r = requests.post(self._collection_update_endpoint(collection),
  File "/home/dnn/.local/lib/python3.8/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/dnn/.local/lib/python3.8/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/dnn/.local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/dnn/.local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/dnn/.local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8983): Max retries exceeded with url: /solr/collection_sa/update?commit=false (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2462941730>: Failed to establish a new connection: [Errno 111] Connection refused'))

At a first glance this seems unrelated - it looks like the CLI is unable to connect to solr at all - curious!


default number of water iterations too low

At the moment, the water iteration process (the number of times parcels are routed, then weights recalculated) only happens one time.
We should have it go at least 5 times, since this allows the water surface and flux fields to more realistically simulate water flow. For example, see the following three plots of eta after 11 timesteps each.
itermax = 1

itermax = 2

itermax = 5

can you confirm the behavior in the matlab version? I think you told me it was 5? If so, yeah I think change it!

I understand this being the case when the flow field is more of a 'jet' than a delta. After a distributary network is developed is this difference still apparent? I think we should probably test a few cases/longer scenarios to get a better idea of what impact the water iteration number has.

I think we should probably test a few cases/longer scenarios to get a better idea of what impact the water iteration number has.

Yeah that's a good point @elbeejay. I suspect that the jet vs spread flow is probably more important initially, but I suspect (with no evidence atm) that the flow field evolves to some steady state solution with more iterations, so finding the optimum number would be important.

If so, yeah I think change it!

Lol. I believe in you. I can confirm that it was 5 in Matlab originally, where the hydro loop is done here. l certainly think this is perhaps the easiest issue to resolve, but we should be clear on the impacts, because it will definitely break this test

summary
With the help of our handy new preprocessor matrix expansion (#69), this was a really easy test to do. The yaml config at the end of the comment was used to do 500 timesteps runs (summarized below, and all results attached as a zip).
I guess my overall interpretation is that @elbeejay is probably right. While itermax strongly influences the jet formation early on in the simulation, the effects later are much less obvious, if at all. Thoughts? Should we do a finer-itermax-interval set of experiments? Longer simulation?
results
eta

itermax
timestep 5
timestep 350
timestep 495

1

2

5

velocity

itermax
timestep 5
timestep 350
timestep 495

1

2

5

config
out_dir: itermax_comparison
Length: 80.0
Width: 200.0
seed: 0
dx: 1.0
L0_meters: 3.0
S0: 0.0002
u0: 0.5
N0_meters: 5.0
h0: 1.0
H_SL: 0.0
f_bedload: 0.4
C0_percent: 0.1
toggle_subsidence: False
sigma_max: 0.0
save_eta_figs: True
save_discharge_figs: True
save_velocity_figs: True
save_dt: 5
save_strata: True
timesteps: 500

matrix:
  itermax:
    - 1
    - 2
    - 5

Thanks for spinning those up and looking into this @amoodie. My thought is that for the default value, we might want itermax to be set low so that the default configuration runs "faster".

Yeah, I agree. To me, it seems like itermax: 2 strikes a balance between "jet" and "radial symmetry" early on in the run, and since this seems to work to produce a good looking delta after 500 timesteps, I think it's probably a good default choice.


convert project data and launch analysis tables

Changes some tables over to the new implementation. For the launch analysis modal, we can get rid of pagination (for now, at least) because we have all of the data client-side, so just display it all.

Horizontal scroll is screwy if I grab the scroll bar and drag it right. Also, I get a console error: Warning: React does not recognize the entityType prop on a DOM element. upon scrolling right in son-of-jimmy -> data -> samples.


New created validator can't be shown properly

Describe the bug
I ran a cosmos blockchain network with two validators, then I created a new validator and the blockchain network works well. However, the explorer report an error and the new validator can't be shown on the explorer page. This is the explorer page: http://<IP_ADDRESS>:3000/, and this is the new created validator: http://<IP_ADDRESS>:3000/validator/0CA9FC583D32C0E90323E1D51307136D0D1C68C9
error msg:
{ BulkWriteError: E11000 duplicate key error collection: meteor.validators index: address_1 dup key: { : "0CA9FC583D32C0E90323E1D51307136D0D1C68C9" }
    at UnorderedBulkOperation.handleWriteError (/home/ubuntu/.meteor/packages/npm-mongo/.3.1.2.bp6gle.h3dfi++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/bulk/common.js:1056:11)
    at /home/ubuntu/.meteor/packages/npm-mongo/.3.1.2.bp6gle.h3dfi++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/bulk/unordered.js:201:27
    at handleCallback (/home/ubuntu/.meteor/packages/npm-mongo/.3.1.2.bp6gle.h3dfi++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/utils.js:128:55)
    at resultHandler (/home/ubuntu/.meteor/packages/npm-mongo/.3.1.2.bp6gle.h3dfi++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/bulk/unordered.js:161:5)
    at /home/ubuntu/.meteor/packages/npm-mongo/.3.1.2.bp6gle.h3dfi++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb-core/lib/connection/pool.js:532:18
    at _combinedTickCallback (internal/process/next_tick.js:132:7)
    at process._tickDomainCallback (internal/process/next_tick.js:219:9)
  index: 3,
  code: 11000,
  errmsg: 'E11000 duplicate key error collection: meteor.validators index: address_1 dup key: { : "0CA9FC583D32C0E90323E1D51307136D0D1C68C9" }',
  op:
   { q:
      { consensus_pubkey: 'barkisvalconspub1zcjduepqj7c7343xk5yny8zmgkyy54hpumnsjc5cx5gmzxm7gsrau0kxkttqwetuhe' },
     u: { '$set': [Object] },
     multi: false,
     upsert: true },
  name: 'BulkWriteError',
  driver: true,
  err:
   { index: 3,
     code: 11000,
     errmsg: 'E11000 duplicate key error collection: meteor.validators index: address_1 dup key: { : "0CA9FC583D32C0E90323E1D51307136D0D1C68C9" }',
     op: { q: [Object], u: [Object], multi: false, upsert: true } },
  result:
   BulkWriteResult {
     result:
      { ok: 1,
        writeErrors: [Array],
        writeConcernErrors: [],
        insertedIds: [],
        nInserted: 0,
        nUpserted: 1,
        nMatched: 4,
        nModified: 4,
        nRemoved: 0,
        upserted: [Array],
        lastOp: [Object] } },
  [Symbol(mongoErrorContextSymbol)]: {} }
Get height time: 0.006seconds.

May I know which commit you are using? Have you ever run it be ore and there are data in the database? The error mentioned that the address is already in the database and can’t insert duplicate records.

git hash: 7c405810243f76773c9e49ff4c9d6cc3b536f7ce
0CA9FC583D32C0E90323E1D51307136D0D1C68C9 is the hex encoding address of validator consensus key. The validator is new created and the private key is new initilized. It should never be duplicated unless the random conflict in private key generation.

@kwunyeung
Any further comment?

Sorry I don't know why both github and slack doesn't poke me on this earlier.
I have verified that your consensus address and the hex value matches. Can you verify that you don't have this record in the database? Do you only have this validator not adding to the database?

Same issue here.
Related operations

Sent a CreateValidator transaction, with very little coins delegated (0.0001 coins, where the total of other validators is ~1,000,000 coins). Transaction page: http://<IP_ADDRESS>:3000/transactions/2A6D4DEF01DD554167D73E246B875A39C53E473A7D9A0C2DB826D44ADCB53BED
Sent a CreateValidator transaction again with the same validator address and more coins, which failed since validator already exists. Transaction page: http://<IP_ADDRESS>:3000/transactions/A5D4B27C4ACA170322DFF7A5E84A6D79DCBE776DE945874B715D9AD56CADC8AE
Sent a Delegate transaction to delegate more (~29,999.6 coins) onto the validator created at step 1. Transaction page: http://<IP_ADDRESS>:3000/transactions/904F6A4DE0BAD2524D3AD994AAD52E53C8473A367729BF6799F7DAD6B8B0D365

Result
While the validator is operating normally and proposing blocks after step 3, the validator list on BigDipper does not show the validator.
From the block list, there is often blocks which the proposer is 13B24E2D7B1CF4F31C34488655777C8B580AB77B, which I think is the related validator.
Clicking on 13B24E2D7B1CF4F31C34488655777C8B580AB77B shows the validator page with name 13B24E2D7B1CF4F31C34488655777C8B580AB77B, with correct uptime info but empty vaildator info and voting power. The power change section shows a 0 -> 29,999,600 (+29,999,600) entry for each single block in the chain. See: http://<IP_ADDRESS>:3000/validator/13B24E2D7B1CF4F31C34488655777C8B580AB77B
Clicking the pages related to the validator (e.g. the block page which proposer is the related validator, delegations page of the validator) shows We're sorry - something's gone wrong.. Example: http://<IP_ADDRESS>:3000/blocks/918248
Related error messages from BigDipper logs
{ BulkWriteError: E11000 duplicate key error collection: meteor.validators index: address_1 dup key: { : "13B24E2D7B1CF4F31C34488655777C8B580AB77B" }
     at UnorderedBulkOperation.handleWriteError (/home/chung/.meteor/packages/npm-mongo/.3.1.2.bp6gle.h3dfi++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/bulk/common.js:1056:11)
     at /home/chung/.meteor/packages/npm-mongo/.3.1.2.bp6gle.h3dfi++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/bulk/unordered.js:201:27
     at handleCallback (/home/chung/.meteor/packages/npm-mongo/.3.1.2.bp6gle.h3dfi++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/utils.js:128:55)
     at resultHandler (/home/chung/.meteor/packages/npm-mongo/.3.1.2.bp6gle.h3dfi++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/bulk/unordered.js:161:5)
     at /home/chung/.meteor/packages/npm-mongo/.3.1.2.bp6gle.h3dfi++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb-core/lib/connection/pool.js:532:18
     at _combinedTickCallback (internal/process/next_tick.js:132:7)
     at process._tickDomainCallback (internal/process/next_tick.js:219:9)
   index: 0,
   code: 11000,
   errmsg: 'E11000 duplicate key error collection: meteor.validators index: address_1 dup key: { : "13B24E2D7B1CF4F31C34488655777C8B580AB77B" }',
   op:
    { q:
       { consensus_pubkey: 'cosmosvalconspub1zcjduepqn4f7ukx9txqn6vdrsp5ah80lazcz4c5gttrqcdnpgf2edxecnqxshfsjvt' },
      u: { '$set': [Object] },
      multi: false,
      upsert: true },
   name: 'BulkWriteError',
   driver: true,
   err:
    { index: 0,
      code: 11000,
      errmsg: 'E11000 duplicate key error collection: meteor.validators index: address_1 dup key: { : "13B24E2D7B1CF4F31C34488655777C8B580AB77B" }',
      op: { q: [Object], u: [Object], multi: false, upsert: true } },
   result:
    BulkWriteResult {
      result:
       { ok: 1,
         writeErrors: [Array],
         writeConcernErrors: [],
         insertedIds: [],
         nInserted: 0,
         nUpserted: 0,
         nMatched: 7,
         nModified: 7,
         nRemoved: 0,
         upserted: [],
         lastOp: [Object] } },
   [Symbol(mongoErrorContextSymbol)]: {} }

The above log is copied from terminal output. I'm running in development mode, and cannot find where the log file is.
Meteor Database
I'm not familiar with Meteor, MongoDB or BigDipper, but still got some basic queries.
The validators collection in the database shows a strange entry:
{ "_id" : ObjectId("5dc1a80de1930689e2839178"), "address" : "13B24E2D7B1CF4F31C34488655777C8B580AB77B", "uptime" : 100, "lastSeen" : ISODate("2019-11-06T10:27:22.227Z") }

which missed many info compared to other entries:
{ "_id" : "wL6oeETqeTJnYT3Kr", "consensus_pubkey" : "cosmosvalconspub1zcjduepq48cw3ku2gpth38k8zqcr73rgrddgy953hwzyk06kj8jm53jg7zcs6d0m0y", "description" : { "moniker" : "likecoin", "identity" : "", "website" : "https://like.co", "details" : "LikeCoin Foundation's validator node, only for testnet" }, "commission" : { "commission_rates" : { "rate" : "0.500000000000000000", "max_rate" : "1.000000000000000000", "max_change_rate" : "0.010000000000000000" }, "update_time" : "2019-09-12T07:00:00Z" }, "min_self_delegation" : "1", "operator_address" : "cosmosvaloper17nuw43an3smnfsakcnz9j608t0pjvwxyps9cvu", "delegator_address" : "cosmos17nuw43an3smnfsakcnz9j608t0pjvwxyyy3dq0", "voting_power" : 30004000, "jailed" : false, "status" : 2, "pub_key" : { "type" : "tendermint/PubKeyEd25519", "value" : "qfDo24pAV3iexxAwP0RoG1qCFpG7hEs/VpHlukZI8LE=" }, "address" : "7A0ED73405451ED21EBE4EE098983D990FF414E0", "accpub" : "cosmospub1zcjduepq48cw3ku2gpth38k8zqcr73rgrddgy953hwzyk06kj8jm53jg7zcs8m2s4k", "operator_pubkey" : "cosmosvaloperpub1zcjduepq48cw3ku2gpth38k8zqcr73rgrddgy953hwzyk06kj8jm53jg7zcsh8gaqv", "lastSeen" : ISODate("2019-11-06T10:27:22.227Z"), "uptime" : 100, "delegator_shares" : "30004000000000.000000000000000000", "proposer_priority" : -195459408, "tokens" : "30004000000000", "unbonding_height" : "0", "unbonding_time" : "1970-01-01T00:00:00Z", "self_delegation" : 0.00003332888948140248 }

The first record of the related validator in the validator_records is at height 906675, which is right after step 3 (delegate more onto the validator).
Commit
The commit I'm using is 795cc1046aa3896773dc31758c9588dacad4df92.

Made a branch for PoC of the bug: https://github.com/nnkken/big_dipper/tree/issue204/issue204
The script run.sh will do the followings:

initialize 2 nodes and corresponding keys
set node 1 as genesis validator
start 2 nodes
start lite client
start Big Dipper (note that it will not run meteor reset, you may need to run it yourself)
send CreateValidator transaction from key 2 to create a new validator, with very little delegation
send CreateValidator transaction again (which will fail because of duplicated validator)
send Delegate transaction from key 2 to make node 2's delegation proportion the same as node 1

Then if you are lucky / unlucky enough, you should be able to see a validator with hex string as name producing blocks in Big Dipper block list.
It seems that the bug depends on timing, so sometimes the script is not able to reproduce the bug. If you see validator-2 instead of some hex string, that means the bug is not reproduced.
On my machine it reproduces the bug with ~70% of chance.
Without the second failed CreateValidator transaction, I cannot reproduce the bug, so it could be related, but it's also possible that I'm just (un?)lucky.

@nnkken Thank you! Will follow this up soon.

It seems the bug is still present.
Currently there are 13 validators on LikeCoin chain, but only 11 (10 active + 1 inactive) are shown in the block explorer: https://likecoin.bigdipper.live/validators/inactive
Below are the list of validators not shown:

李白 † LiBai (cosmosvaloper1zavhknj30ygzme20k2wd8gnjpjauhceh7cz2uf)
66WZ (cosmosvaloper14s7lfzx4s8r6kcjtyyq0m8gmcwhx457g05drhu)


Added ClearRegisteredTemplates method. Use it while in development to se...

Added a method, for clearing all the registered templates. Seems to be working... as expected. Any ideas?

Seems like that is a more consistent approach.

New commits revert the initial changes and make the partials overwrite each time they are registered.
So now in my app, in production, the registerTemplate will be called only in Application Start, but now i have also the option to call registerTemplate in Begin Request, (if in development mode), and changes will be shown without an app restart.
Seems legit?
p.s What about renaming the function to registerPartial ?

Any update on this one? Am i missing something?

1.1.2 pushed to NuGet


[WIP] Investment Project Documents

Codecov Report

Merging #250 into develop will decrease coverage by 0.63%.
The diff coverage is 72.58%.

@@             Coverage Diff             @@
##           develop     #250      +/-   ##
===========================================
- Coverage    93.37%   92.74%   -0.64%
===========================================
  Files           56       58       +2
  Lines         2037     2094      +57
  Branches       189      192       +3
===========================================
+ Hits          1902     1942      +40
- Misses         114      130      +16
- Partials        21       22       +1

Impacted Files
Coverage Δ

datahub/documents/serializers.py
0% <0%> (ø)

datahub/documents/admin.py
100% <100%> (ø)

datahub/investment/urls.py
100% <100%> (ø)
:arrow_up:

datahub/investment/serializers.py
98.93% <100%> (+0.08%)
:arrow_up:

datahub/investment/admin.py
100% <100%> (ø)
:arrow_up:

datahub/v2/renderers.py
94.44% <100%> (ø)
:arrow_up:

datahub/core/utils.py
77.77% <60%> (-2.87%)
:arrow_down:

datahub/investment/views.py
83.63% <62.5%> (-16.37%)
:arrow_down:

Continue to review full report at Codecov.

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


Fix typo in 19.09 release notes

Motivation for this change
It would render the networking changes under the gitlab changes instead of a separate bullet point
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @

Cherry picked in 88b859926a077e283271ec9cbde04b1506e73249


Conflicts with Python virtualenv due to same name of environment variable

$ source .virtphp/envs/php5/bin/activate
You are currently running a virtualenv session: /home/username/local/python/3
Please exit this session before starting a virtPHP session.
It looks like it's because it searches for this env variable in the actuvate scriptL
if [ "$VIRTUAL_ENV" ] ; then
Changing that to PHP_VIRTUAL_ENV seems to have fixed the problem, did a quick look and didn't find that used anywhere else.

Ouch... good catch! You can tell we're not Python devs. ;)
@ramsey @jwoodcock Thoughts on switching to $PHP_VIRTUAL_ENV? I'm fine with it.

This is actually on purpose. To insure we don't have any collisions with python, we put this test in to prevent a user from activating a virtPHP env while they were in an active Python virtualenv. We did this because we were concerned that virtualenv are doing something, or would be doing something that we would create a conflict between both tools.

Hmm... is this a case of premature optimization maybe? I mean, do we know that there is some conflict?

The primary conflict is the deactivate command. If you are in a Python virtualenv environment and then you activate a virtPHP environment, we replace the deactivate command with our own by the same name. So, you are no longer able to deactivate your virtualenv environment, and it's unclear what you intend to do when you call deactivate.
I suppose we could give our deactivate command a different name. We'd also need to comb around and make sure we don't have any other conflicts.

Ugh... As much as I don't want to have deativate-virtphp as the command, I can see the potential for someone to have an active Python and PHP virtual environment at the same time. I suppose we could detect if there is already a deactivate command, then use a php-sepcific command name. Or we could grab it's "real" location, store that somewhere, then warn the user that if they call deactivate we'll deactivate both environments.
None of these sound like desirable solutions though.

I think the current solution is the best solution and vote for keeping it. But I'm always open to good reason for changing it, though none listed are what I would consider good. The thought of a dev using both python and php at the same time is so fringe, especially if you include this is all based on the current terminal session. So if I wanted both python and php going without this conflict, all I have to do is open another terminal session.

Well, if they're calling a python script from within php then opening another terminal session wouldn't solve the problem. But I agree that it is a fringe use case. Perhaps we can just put a warning in the README and maybe in that error message when we detect an existing virtual env?

So this warning isn't enough? ;)
"You are currently running a virtualenv session: /home/username/local/python/3"

@djbclark So when you hit this message, were you needing both the Python virtualenv and virtPHP env running at the same time?

Let's keep this open for a bit. I'm working on a PHP Twig extension that uses Python's Pygments library. I'll try using virtPHP together with virtualenv to see how things go. My suspicion is that PHP is unaware of the current terminal session, so even if a virtualenv environment is active, it's not going to use the pygmentize that is installed in that environment because it has no access to the current shell's $PATH.
Just a hypothesis for now. I'll test it.

why the hell we want to virtuals env on the same terminal?


Adding backup battery charging

Hi Ricardo,
I've loaded your latest version (31.12) and it works.
But you should add the backup battery charging, otherwise this battery quickly goes flat and then, the GPS fix can be VERY looong.
I've added in setup() in power_utils.cpp the following lines for the AXP2101 modules :
// Enable Button Battery charge
PMU.enableButtonBatteryCharge();
// Set Button Battery charge voltage
PMU.setButtonBatteryChargeVoltage(3300);

Now, the battery is charging.
I hope this helps.
73, Patrick.

mod is added for all boards with AXP2101 power management chip on "adding_Heltec_V3_GPS" branch for testing


Can't start mocha 2.2.0 with node-debug on Windows 7 (git bash) with old npm version

I'm opening this issue for reference (maybe someone will face the same problem soon - feel free to close it immediately)
I followed the advice from README on debugging mocha - I run node-debug _mocha for that
However there was a really weird issue happening for me (I used node 0.10.37 or 0.12 via nodist, npm 1.4.6, Windows 7)
Node Inspector works with mocha 2.1.0 but not 2.2.0 and it's really strange.
TL;DR if you're on Windows, update npm (using cmd, not git bash!) with npm install -g npm
With 2.2.0 I get the following error:
$ node-debug _mocha
Node Inspector is now available from http://<IP_ADDRESS>:8080/debug?port=5858
Debugging `_mocha`

Debugger listening on port 5858
d:\bin\nodist\bin\_mocha.CMD:1
e, module, __filename, __dirname) { "%~dp0\node_modules\mocha\bin\_mocha"   %*
                                                                             ^
SyntaxError: Unexpected token *
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.runMain [as _onTimeout] (module.js:501:10)
    at Timer.listOnTimeout (timers.js:110:15)

Let's run the following commands to see the difference:
$ npm install -g<EMAIL_ADDRESS>--silent
$ cat $(npm get prefix)\\_mocha.cmd
$ npm install -g<EMAIL_ADDRESS>--silent
$ cat $(npm get prefix)\\_mocha.cmd

$ npm install -g<EMAIL_ADDRESS>--silent
D:\bin\nodist\bin\mocha -> D:\bin\nodist\bin\node_modules\mocha\bin\mocha
D:\bin\nodist\bin\_mocha -> D:\bin\nodist\bin\node_modules\mocha\bin\_mocha
<EMAIL_ADDRESS>D:\bin\nodist\bin\node_modules\mocha
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
$ cat $(npm get prefix)\\_mocha.cmd

@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe"  "%~dp0\node_modules\mocha\bin\_mocha" %*
) ELSE (
  node  "%~dp0\node_modules\mocha\bin\_mocha" %*
)

$ npm install -g<EMAIL_ADDRESS>--silent
D:\bin\nodist\bin\_mocha -> D:\bin\nodist\bin\node_modules\mocha\bin\_mocha
D:\bin\nodist\bin\mocha -> D:\bin\nodist\bin\node_modules\mocha\bin\mocha
<EMAIL_ADDRESS>D:\bin\nodist\bin\node_modules\mocha
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>$ cat $(npm get prefix)\\_mocha.cmd

"%~dp0\node_modules\mocha\bin\_mocha"   %*

It seems to be a weird bug of old npm versions in work. I updated to latest as of today, reinstalled mocha and it solved the issue.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9524606-can-t-start-mocha-2-2-0-with-node-debug-on-windows-7-git-bash-with-old-npm-version?utm_campaign=plugin&utm_content=tracker%2F195817&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F195817&utm_medium=issues&utm_source=github).

Thanks for sharing the problem and the solution. I am closing the issue as resolved.
Feel free to submit a patch if you think it will be useful to include some part of this info in README too.


label() does not work on relationship fields (BelongsToSelect)

Package
filament/forms
Package Version
v2.1.4
Laravel Version
v8.61.0
Livewire Version
v2.6.7
PHP Version
PHP 8.0
Bug description
The label() method does not set the label of a relationship field.
BelongsToSelect::make('user_type_id')
               ->label('Account Type')
                ->required()
                ->relationship(
                    'userType',
                    'description'
                )

The expected field label here should be Account Type, but it says "User type" (likely taking it from the relationship name since the field name is different).
I've tried placing the label method after the relationship method (in case it overrides it), but still the same result.
Steps to reproduce
Try to use a custom label with a relationship. An example:
BelongsToSelect::make('user_type_id')
               ->label('Account Type')
                ->required()
                ->relationship(
                    'userType',
                    'description'
                )

Relevant log output
No response

fyi I made a PR to fix this: https://github.com/laravel-filament/filament/pull/634


Also parse path

Some sites use URL rewriting to put query parameters into path segments (i.e. between forward slashes / and as the file name, e.g. index,  and its extension, e.g. .html).
It would be nice if users could also see and alter these variables in the UI.

Hello @Crissov, thank you for your feedback.
If I understood correctly an example could be something like: www.abc.com/?page=x/y/z.html
In case is not correct, could you provide me an example, please? Thank you

I was thinking more generally, e.g. www.abc.com/page/x/y/z.html.