Add stricter rustdoc requirement to CONTRIBUTING.md

Example code in rustdocs should be error free and not produce warnings when copy pasted.
The section on rustdocs has been expanded to clarify that example code should compile without any errors or warnings with the stricter lint that has been added to the justfile.
All existing example code in the rustdocs has now been fixed and there are no warnings from unused code, the justfile has been updated to have a stricter lint which produces warnings and this addition to CONTRIBUTING.md has clarified that new additions should follow these rules.
Close #3362

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 82.579%

Totals

Change from base Build<PHONE_NUMBER>1:
0.0%

Covered Lines:
19022

Relevant Lines:
23035

💛  - Coveralls


Options to allow multiple fits of HMeta-d simultaneously

Hi Steve,
I have put in an option for each of the model fits to specify a name for the tmp jags folder, which stops interference of samples when running multiple HMeta-d fits in parallel. I've also removed tmpjags contents from the repository (this folder is still used by default if no name is specified), to stop having millions of updates if we use it. Lastly, I added an example script for the correlation model.
Thanks,
Liv

looks great, thanks!
On Tue, 26 Nov 2019 at 14:51, Olivia Faull<EMAIL_ADDRESS>wrote:

Hi Steve,
I have put in an option for each of the model fits to specify a name for
the tmp jags folder, which stops interference of samples when running
multiple HMeta-d fits in parallel. I've also removed tmpjags contents from
the repository (this folder is still used by default if no name is
specified), to stop having millions of updates if we use it. Lastly, I
added an example script for the correlation model.
Thanks,
Liv
You can view, comment on, or merge this pull request online at:
https://github.com/metacoglab/HMeta-d/pull/10
Commit Summary

Stop tracking tmpjags/ contents
Added option to specify a name for the tmpjags folder
Add example of correlation model

File Changes

A Matlab/exampleFit_corr.m
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-0 (67)
M Matlab/exampleFit_group_regression.m
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-1 (2)
M Matlab/exampleFit_twoTasks.m
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-2 (2)
M Matlab/fit_meta_d_mcmc.m
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-3 (68)
M Matlab/fit_meta_d_mcmc_group.m
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-4 (69)
M Matlab/fit_meta_d_mcmc_groupCorr.m
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-5 (63)
M Matlab/fit_meta_d_mcmc_regression.m
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-6 (64)
A Matlab/tmpjags/.gitignore
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-7 (4)
D Matlab/tmpjags/CODA1chain1.txt
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-8 (0)
D Matlab/tmpjags/CODA1index.txt
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-9 (0)
D Matlab/tmpjags/jagscript1.cmd
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-10 (0)
D Matlab/tmpjags/jagscript2.cmd
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-11 (0)
D Matlab/tmpjags/jagscript3.cmd
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-12 (0)
D Matlab/tmpjags/jagsdata.R
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-13 (0)
D Matlab/tmpjags/jagsinit1.R
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-14 (0)
D Matlab/tmpjags/jagsinit2.R
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-15 (0)
D Matlab/tmpjags/jagsinit3.R
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-16 (0)
D tmpjags/CODA1chain1.txt
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-17 (0)
D tmpjags/CODA1index.txt
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-18 (0)
D tmpjags/jagscript1.cmd
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-19 (0)
D tmpjags/jagscript2.cmd
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-20 (0)
D tmpjags/jagscript3.cmd
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-21 (0)
D tmpjags/jagsdata.R
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-22 (0)
D tmpjags/jagsinit1.R
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-23 (0)
D tmpjags/jagsinit2.R
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-24 (0)
D tmpjags/jagsinit3.R
https://github.com/metacoglab/HMeta-d/pull/10/files#diff-25 (0)

Patch Links:

https://github.com/metacoglab/HMeta-d/pull/10.patch
https://github.com/metacoglab/HMeta-d/pull/10.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/metacoglab/HMeta-d/pull/10?email_source=notifications&email_token=AB5LNVMZUUKB6G2TF3RUDU3QVUZXPA5CNFSM4JRZFS52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4EPHQQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB5LNVIDFAOPAV4MWCWTSP3QVUZXPANCNFSM4JRZFS5Q
.


My managed APIs view to be deprecated?

Need decision & action whether to deprecate this view. New catalogue component has filter for user's own APIs that basically fullfills the need.

Yes, I think we need to remove it.

@nnn Agreed. Not useful to maintain duplicate features.

It would be ok to remove the My Managed APIs view. If/when we do that, we should also consider what would be the destiny of API Backends menu, because it would only contain Add API Backend. I would actually remove it and add a button for adding an API to Catalog. Or even have an Add API or Add Your API button/link in the top bar?

A quick link to add an API in landing page, catalog and dashboard should be a good idea.

The view has been deprecated so I'm closing this issue.
@Nazarah Feel free to add an issue for adding the "Add API" link or button to views where it should be added,.


setup and test scripts

Asana Task: Unspoken part of Install frontend dev tooling, I guess, now that there's frontend setup and test chores to do.

Tests:

( ) Has tests
(x) Doesn't need tests
( ) Tests deferred (with justification)

Product/Design sign off:

( ) Okayed the plan for the feature (e.g. the design files, or the Asana task)
( ) Reviewed the feature as implemented (e.g. on dev-green, or saw screenshots)
(x) No review needed

Whoops, I asked for a rereview but forgot to actually do the change to bin/test. Anyway, it's actually ready for a rereview now.


Make merging of graph files possible

It is possible to merge one or more areas with OSM tools but what would it take to merge two already imported and prepared areas "on the fly"? Would be interesting for the mobile scenario (Android/iOS) where the users only want to download one area by one and routing should work across those areas. As a first step try without CH. Still the node and edge ID mapping could be complex or a graph copying is required using lots of resources. The location index needs to be dynamic instead of 'read-only'. Or the merged index needs to be created on-device.
A workaround could be to offer on-demand extraction of the bigger or combined area from a world wide graph. Still the user would download an area which is already existent on his device.
One further solution could be to implement a graph wrapper which contains multiple areas and manages the edge and node ID-offsets. Still this would not work for CH and this would require a border nodes matching.

See osmand code base how this is done for routing across several datasets.

Is there any solution to route between two different areas, if they are actually next to each other?

Hi everyone, I've been looking into graphhopper for a while now. I would like to start doing some work on this improvement since it would be very beneficial to myself aswell. But I've only been using graphhopper, not developing it. Does anyone have a few pointers on where to start ?

Does anyone have a few pointers on where to start ?

Nice that you want to get started with this :). I think, the way I would do this goes as follows. Teneral workflow of merging 2 graph files would be to load the two graphs as usual (in a wrapper graph, so that GraphHopper itself does not know about this). Then you would have to check if there are nodes that are placed at the same location, you would have to "glue" the graph at these points so that you can seamlessly iterate from Graph A to Graph B. This will not work for CH and probably not easily work for LM (I have no idea how to do it with LM, but it might be possible). BTW: The described idea is essentially the same as the idea above by @karussell.

One further solution could be to implement a graph wrapper which contains multiple areas and manages the edge and node ID-offsets. Still this would not work for CH and this would require a border nodes matching.

Just to give you a heads-up, this is no trivial task :).

I think the problem is that our node and edge IDs have to be consecutive (makes other things much easier), so this wrapper graph is necessary which does the mapping and every subgraph gets an ID offset. The glueing part might be easier if you create the big graph first and cut out the smaller pieces later.

This would be a very important feature for mobile. We could then create smaller areas instead of countries or continents, so the data downloaded to the devices would be dramatically reduced.

I think that I will need to understand exactly how graphhopper works to do this. Is there any documentation on this or would someone of the creators be willing to talk about this with me?

You can open a new topic in our forum to discuss this.

Has there been any progress with this feature?

I was wondering if it'd be of any use to share with you the Valhalla project: https://github.com/valhalla/valhalla
It's a project I found a few weeks ago, but which I didn't investigate it until the past week. They work in a very different way than Graphhopper does, and perhaps there is a good reason about why you do what you do they way you do it. And the same for Valhalla project. I'm just trying to share with you how they make offline routing possible.
Basically, they generate graph tiles, and these graph tiles allow the algorithm to calculate the routing while offline, without many issues. You can generate the graphs of the planet file, and then pack them by areas (countries or regions, for example). So it is possible to download the packages in different time spans, and as long as the graphs are next to each other, the routing algorithm would calculate the route.
This is a very different way of tackling the routing. Valhalla calculates routing on the fly, since the graphs only have the edges and some other information, but the routes aren't calculated on advance, so calculating the graphs for Europe, for example, takes only 3-4h on a decent (but not very powerful) desktop computer.
As far as I understood, Graphhopper algorithm, does calculate all the routes in advance (which is why is so fast, but why it takes so long to calculate the necessary data). So perhaps is not that simple to combine the 2 methodologies, but maybe it's possible to create a hybrid algorithm for Grahhopper, so we can, for example, generate the routing data for the whole planet, and chunk it by bounding boxes, or generate the routing files with information of the area that is related to favor routing between different graphs.
i don't think this is a feature that's high priority in Graphhopper, but maybe it's somewhere on the project calendar and could be nice to share with the rest of the people an estimate date?

As far as I understood, Graphhopper algorithm, does calculate all the routes in advance

No, this is wrong. GraphHopper is very flexible and can work without any preparation (ie. without LM and without CH) but even with those preparations we do not calculate routes in advance but data that makes routing faster.

could be nice to share with the rest of the people an estimate date

We rely on the community and won't give such dates. It is not a top priority for us at the moment but you can change this :)

True about the first point of your reply. Didn't explain myself properly enough. I knew it's possible to disable CH and LM, but forgot at the moment of writing the message.
Thanks for replying by the way.

Hi there.
I want to implement this thing ( the easy way : fixed equally sized rectilinear tiles). I've worked a bit with graphhopper and I did it with the location index and names. (dividing them vertically into bounding box tiles).
But I'm confused how to split edged and nodes ?
Please help me with a hint about how to initiate it ?
Ismail

Hey Everybody
It's been a while I'm learning graphhopper's source code. I have implemented wrapper class in order to divide Edges, Location Index and NameIndex into squared tiles, Edges was a bit harder than others. Still working to complete it. Hope it will get done well and adding this feature to graphhopper.
Ismail

Is there anything about this matter being tackled, even if partially, on the new 1.0 release?
Having this would be an incredible feature. Well basically, to allow the load of different graph files, and have the GraphHopper library do the necessary calculations to allow a calculation of routes between 2 or more graphs.
I believe it isn't an easy task to achieve, since GraphHopper wasn't thought in this way (that's what I've understood so far).

I made it possible by diving graph into custom square tiles by implementing wrapper classes around storage classes such as nameIndexWrapper, nodeWrapper, edgeWrapper, datawrapper(geoWrapper, turncostWrapper, ...) and so on .
It's not a smart way, having some redundancy data (like edges which their nodes are in two different tiles and storing a mapping of node id's ).
If you are eager to we could discuss about it.

It's obvious, but I forgot to mention that I'm not a developer of Graphhopper and I'm not involved in the new release. So maybe it is better to wait to hear Peter's answer:)

Hi, what is the status today please ?

Most likely nobody ever worked on it. As graphhopper discontinued direct mobile support it is a feature not needed by many.


a11y: Add iconName to img.alt

There doesn't seem to be another obvious place to plug in metadata about the icons, so this seems quite reasonable.
Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #
Test URLs:

Before: https://main--aem-boilerplate--pzrq.hlx.page/
After: https://develop--aem-boilerplate--pzrq.hlx.page/

💯 a11y 🎉


List of package versions is out of date in README.md

The list of package versions in the README.md is out of date. We need to create an automated way of pulling the correct versions into the README.md (perhaps in a git hook, but that gets into the issue of version controlling hooks which is not as easy as it should be).

no clue for this. I'll mark as enhancement and help wanted


requested: edit project name closes #443

Pull request details

[ ] This PR is a bug fix
[x] This PR implements a new feature or introduces new behavior.

Description of the change

Testing the waters on feature request #443 @ivankravets for your consideration. =)
Notes

This is classic practice for package naming. A lot of other packages depend on this name including PlatformIO IDE for Atom. See https://github.com/platformio/platformio-atom-ide/blob/develop/lib/config.js#L110


Event layout update

Closes #104

Made some changes for #101 but i think the page requires some redesign from @prabhavpokharel

This is how it looks after changes:

Also, some references for anchor tags were changed.

Sure, I will look into that.

Yeah lets do that


Implement HW anti-rollback counter

This is separate from #224, which is a software anti-rollback feature request.  This issue tracks bringing the TF-M anti-rollback support into mainline MCUboot.

Should this be closed?

Fixed by #642


unfork mercator

https://scala-ci.typesafe.com/view/scala-2.12.x/job/scala-2.12.x-integrate-community-build/3323/ (404 for now)


create command-line utility to retrieve jsonschema

Provide a command-line utility to retrieve the jsonschema from the nmdc-schema pypi package.
cc @cmungall @dehays

Adding backlog label. Needs to be reprioritized.

can we close this?

can we close this?

Is it done @cmungall?  We had removed it from a sprint because Bill didn't have time to work on it. Happy to close if it's done or not needed.

src/nmdc_schema/get_json_schema.py


Make daemon/run work on Linux

...or at least on my box.
Change default display opacity in application.conf to 1.0: because to set it lower requires The TRANSLUCENT translucency must be supported by the underlying system.

The isWindowTranslucencySupported check should probably also go in OpacityCommand and if it's not supported return CommandError.NotApplicable so that it doesn't incorrectly show up in the results pane. Also, only when searchInput.context.terminal.terminalType == TerminalType.Swing since you can't change the opacity otherwise.

I've added the check for isWindowTranslucencySupported to GraphicsUtil and use it in both SwingTerminal and OpacityCommand.


event_notifications and redmine 3.3.1

I want to install the last master to Redmine 3.3.1.
bundle exec rake redmine:plugins:migrate RAILS_ENV="production"

raises
rake aborted!
NoMethodError: undefined method `safe_attributes' for #<Class:0x0000000636e600>
Did you mean?  cache_attributes
               scope_attributes
               cached_attributes
               scope_attributes?
               cache_attribute?
/usr/local/rvm/gems/ruby-2.3.3/gems/activerecord-<IP_ADDRESS>/lib/active_record/dynamic_matchers.rb:26:in `method_missing'
/home/redmine/redmine-3.3.1/plugins/event_notifications/lib/event_notification/patches/user_preference_patch.rb:11:in `block in included'
/home/redmine/redmine-3.3.1/plugins/event_notifications/lib/event_notification/patches/user_preference_patch.rb:9:in `class_eval'
/home/redmine/redmine-3.3.1/plugins/event_notifications/lib/event_notification/patches/user_preference_patch.rb:9:in `included'
/home/redmine/redmine-3.3.1/plugins/event_notifications/lib/event_notification/patches/user_preference_patch.rb:54:in `include'
/home/redmine/redmine-3.3.1/plugins/event_notifications/lib/event_notification/patches/user_preference_patch.rb:54:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:274:in `block in require'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/redmine-3.3.1/plugins/event_notifications/init.rb:15:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:274:in `block in require'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/redmine-3.3.1/lib/redmine/plugin.rb:155:in `block in load'
/home/redmine/redmine-3.3.1/lib/redmine/plugin.rb:146:in `each'
/home/redmine/redmine-3.3.1/lib/redmine/plugin.rb:146:in `load'
/home/redmine/redmine-3.3.1/config/initializers/30-redmine.rb:21:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:268:in `load'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:268:in `block in load'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:268:in `load'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:652:in `block in load_config_initializer'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications.rb:166:in `instrument'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:651:in `load_config_initializer'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:615:in `each'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:615:in `block in <class:Engine>'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:30:in `instance_exec'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:30:in `run'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:44:in `each'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:44:in `tsort_each_child'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/initializable.rb:54:in `run_initializers'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/application.rb:352:in `initialize!'
/home/redmine/redmine-3.3.1/config/environment.rb:14:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:274:in `require'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:274:in `block in require'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:274:in `require'
/home/redmine/redmine-3.3.1/plugins/a_common_libs/lib/tasks/a_common_libs.rake:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:268:in `load'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:268:in `block in load'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:268:in `load'
/home/redmine/redmine-3.3.1/lib/tasks/redmine.rake:186:in `block in <top (required)>'
/home/redmine/redmine-3.3.1/lib/tasks/redmine.rake:186:in `each'
/home/redmine/redmine-3.3.1/lib/tasks/redmine.rake:186:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:268:in `load'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:268:in `block in load'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/local/rvm/gems/ruby-2.3.3/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:268:in `load'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:658:in `block in run_tasks_blocks'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:658:in `each'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:658:in `run_tasks_blocks'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/application.rb:452:in `run_tasks_blocks'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/engine.rb:453:in `load_tasks'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/railtie.rb:194:in `public_send'
/usr/local/rvm/gems/ruby-2.3.3/gems/railties-<IP_ADDRESS>/lib/rails/railtie.rb:194:in `method_missing'
/home/redmine/redmine-3.3.1/Rakefile:7:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.3.3/gems/rake-12.0.0/exe/rake:27:in `<top (required)> '
/usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)

Which commit of plugin from git should I use? Or update to Redmine 3.4 is better way?
My current env:
Environment:
  Redmine version                3.3.1.stable
  Ruby version                   2.3.3-p222 (2016-11-21) [x86_64-linux]
  Rails version                  <IP_ADDRESS>
  Environment                    production
  Database adapter               Mysql2

I ran in to the exact same issue on 3.3.3.  You find any solution for this?

Went digging in to this and found my own solution.  It seems UserPreference doesn't include Redmine::SafeAttributes.  I added an include Redmine::SafeAttributes in the class_eval block for the user_preference_patch file and it seems to be working as expected now.

@rchady
I'm not so good in Ruby. Could you send the diff?


Extract a shared fixtures file

This is mostly to keep the next PR smaller.

:tada: This PR is included in version 1.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add loading indicator.

Hayk — Today at 2:51 PM
For one thing... First, is it hard to add loading when the character is loading? I mean it's ok on the local but on the live it takes some time and it feels like its stuck.
So we need some kind of indication that the character is loading up.

Closed with https://github.com/webaverse-studios/CharacterCreator/pull/236


Standalone and header only is causing an error

I get an error when compiling standalone and header only:
#define BOOST_URL_STANDALONE
#define BOOST_URL_HEADER_ONLY
#include <boost/url/url.hpp>

int main(int argc, char** argv) {
  return 0;
}

The error I get:
In file included from /home/matthijs/t6/main.cpp:9:
In file included from /usr/local/include/boost/url/url.hpp:14:
In file included from /usr/local/include/boost/url/url_view.hpp:14:
In file included from /usr/local/include/boost/url/detail/parts.hpp:14:
/usr/local/include/boost/url/detail/char_type.hpp:124:16: error: no viable overloaded '='
            ec = error::incomplete_pct_encoding;
            ~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_code.hpp:77:9: note: candidate template ignored: requirement 'is_error_code_enum<boost::urls::error>::value' was not satisfied [with ErrorCodeEnum = boost::urls::error]
        operator=( ErrorCodeEnum val ) BOOST_NOEXCEPT
        ^
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_code.hpp:38:7: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'boost::urls::error' to 'const boost::system::error_code' for 1st argument
class error_code
      ^
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_code.hpp:38:7: note: candidate function (the implicit move assignment operator) not viable: no known conversion from 'boost::urls::error' to 'boost::system::error_code' for 1st argument
In file included from /home/matthijs/t6/main.cpp:9:
In file included from /usr/local/include/boost/url/url.hpp:14:
In file included from /usr/local/include/boost/url/url_view.hpp:14:
In file included from /usr/local/include/boost/url/detail/parts.hpp:14:
/usr/local/include/boost/url/detail/char_type.hpp:130:16: error: no viable overloaded '='
            ec = error::bad_pct_encoding_digit;
            ~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_code.hpp:77:9: note: candidate template ignored: requirement 'is_error_code_enum<boost::urls::error>::value' was not satisfied [with ErrorCodeEnum = boost::urls::error]
        operator=( ErrorCodeEnum val ) BOOST_NOEXCEPT
        ^
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_code.hpp:38:7: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'boost::urls::error' to 'const boost::system::error_code' for 1st argument
class error_code
      ^
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_code.hpp:38:7: note: candidate function (the implicit move assignment operator) not viable: no known conversion from 'boost::urls::error' to 'boost::system::error_code' for 1st argument
In file included from /home/matthijs/t6/main.cpp:9:
In file included from /usr/local/include/boost/url/url.hpp:14:
In file included from /usr/local/include/boost/url/url_view.hpp:14:
In file included from /usr/local/include/boost/url/detail/parts.hpp:14:
/usr/local/include/boost/url/detail/char_type.hpp:150:24: error: no viable overloaded '='
                    ec = error::illegal_reserved_char;
                    ~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_code.hpp:77:9: note: candidate template ignored: requirement 'is_error_code_enum<boost::urls::error>::value' was not satisfied [with ErrorCodeEnum = boost::urls::error]
        operator=( ErrorCodeEnum val ) BOOST_NOEXCEPT
        ^
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_code.hpp:38:7: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'boost::urls::error' to 'const boost::system::error_code' for 1st argument
class error_code
      ^
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_code.hpp:38:7: note: candidate function (the implicit move assignment operator) not viable: no known conversion from 'boost::urls::error' to 'boost::system::error_code' for 1st argument
In file included from /home/matthijs/t6/main.cpp:9:
In file included from /usr/local/include/boost/url/url.hpp:14:
In file included from /usr/local/include/boost/url/url_view.hpp:993:
In file included from /usr/local/include/boost/url/impl/url_view.ipp:15:
/usr/local/include/boost/url/detail/parse.hpp:133:15: error: invalid operands to binary expression ('boost::urls::error_code' (aka 'boost::system::error_code') and 'boost::urls::error')
        if(ec != error::no_match)
           ~~ ^  ~~~~~~~~~~~~~~~
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_code.hpp:171:36: note: candidate function not viable: no known conversion from 'boost::urls::error' to 'const boost::system::error_code' for 2nd argument
BOOST_SYSTEM_CONSTEXPR inline bool operator!=( const error_code & lhs, const error_code & rhs ) BOOST_NOEXCEPT
                                   ^
/home/matthijs/boost/boost_1_76_0/boost/system/error_code.hpp:35:13: note: candidate function not viable: no known conversion from 'boost::urls::error' to 'const boost::system::error_condition' for 2nd argument
inline bool operator!=( const error_code & lhs, const error_condition & rhs ) BOOST_NOEXCEPT
            ^
/home/matthijs/boost/boost_1_76_0/boost/system/detail/error_condition.hpp:154:36: note: candidate function not viable: no known conversion from 'boost::urls::error_code' (aka 'boost::system::error_code') to 'const boost::system::error_condition' for 1st argument
BOOST_SYSTEM_CONSTEXPR inline bool operator!=( const error_condition & lhs, const error_condition & rhs ) BOOST_NOEXCEPT
                                   ^
/home/matthijs/boost/boost_1_76_0/boost/system/error_code.hpp:45:13: note: candidate function not viable: no known conversion from 'boost::urls::error_code' (aka 'boost::system::error_code') to 'const boost::system::error_condition' for 1st argument
inline bool operator!=( const error_condition & lhs, const error_code & rhs ) BOOST_NOEXCEPT
            ^
/home/matthijs/boost/boost_1_76_0/boost/utility/string_view.hpp:397:39: note: candidate template ignored: could not match 'basic_string_view<type-parameter-0-0, type-parameter-0-1>' against 'boost::system::error_code'
    inline BOOST_CXX14_CONSTEXPR bool operator!=(basic_string_view<charT, traits> x,
                                      ^
/home/matthijs/boost/boost_1_76_0/boost/utility/string_view.hpp:457:39: note: candidate template ignored: could not match 'basic_string_view<type-parameter-0-0, type-parameter-0-1>' against 'boost::system::error_code'
    inline BOOST_CXX14_CONSTEXPR bool operator!=(basic_string_view<charT, traits> x,
                                      ^
/home/matthijs/boost/boost_1_76_0/boost/utility/string_view.hpp:463:39: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'boost::system::error_code'
    inline BOOST_CXX14_CONSTEXPR bool operator!=(const std::basic_string<charT, traits, Allocator> & x,
                                      ^
/home/matthijs/boost/boost_1_76_0/boost/utility/string_view.hpp:469:39: note: candidate template ignored: could not match 'basic_string_view<type-parameter-0-0, type-parameter-0-1>' against 'boost::system::error_code'
    inline BOOST_CXX14_CONSTEXPR bool operator!=(basic_string_view<charT, traits> x,
                                      ^
/home/matthijs/boost/boost_1_76_0/boost/utility/string_view.hpp:475:39: note: candidate template ignored: could not match 'const charT *' against 'boost::urls::error_code' (aka 'boost::system::error_code')
    inline BOOST_CXX14_CONSTEXPR bool operator!=(const charT * x,
                                      ^

Regards, Matthijs

Yeah, so - this library has not been officially released yet, and is still being worked on. Also, the standalone configuration is being removed.

This is "fixed" in the sense that the standalone support has been removed, as it is no longer a planned feature. The build scripts should work though, and url_view is beta quality.


Tarball empty

The tarball mentioned in the README

wget http://github.com/char0n/ffmpeg-php/tarball/master

is actually empty except for a readme.
ofcourse, people can download the zip instead. just saying.

Thanks, I'll check it out today evening.

Must say, so happy to find this repo. Zillion thanks!

Well, god knows if the code is still up-to-date to newer versions of ffmpeg.
On Thu, Apr 7, 2016 at 3:09 PM, pike<EMAIL_ADDRESS>wrote:

Must say, so happy to find this repo. Zillion thanks!
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/CodeScaleInc/ffmpeg-php/issues/29#issuecomment-206891056

--
Vladimír Gorej | CodeScale s.r.o.
email<EMAIL_ADDRESS>tel: +420 777 861 279, +421 948 023 011
web: http://www.codescale.net

It seemlessly works as a stub for the package (which is no longer in the linux distro). not sure what functionality is being used .. i just popped in your php and it worked :-)

Problem fixed


Closes softlayer/sl-ember-components#1488

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from the review on Reviewable.io


Bump minimum required cargo-generate version

Just did some testing and verified that 0.17.4 is the required version for shorten git URLs to work.
This version was released in Dec 2022, if you think we shouldn't force the user to such “recent” version (although updating cargo-generate does not hurt) we could go back to the full URL

LGTM
I totally agree we should use a sane recent version - this version is more than a half year old so we can safely require it 👍

Oh, just realized my math skills are weak - it's not more than half a year from December to April ... anyways


Files for Mageia, partial Slackpkg

This PR includes:

full Mageia support for files.
partial Slackware support.
fixed a small alphabetical annoyance in the readme.

@willeccles this is ready to be merged when you're ready.

( also sorry im bad at handling commits correctly >: )


Update LM generalist training (with new decoder setup)

@constantinpape GTG from my side! (the defaults are now set to make use of conv transpose for upsampling in all relevant parts, as discussed)


[BUG] Inconsistent behavior (Dropdown widget)

Attachment: https://drive.google.com/drive/folders/1uABc1FdBUbh9GOGX2DS1QsSPWeDLN3oD?usp=sharing
Steps to replicate:
1.Hit https://app.appsmith.com/
2. Under an organization, click on 'Create New' in order to create a new application
3. Edit Application
4. From the Form Widgets, pick Dropdown widget
Issue 1: If there are multiple values are selected, only 'Vegan' is visible in the box.
Issue 2: If 'Vegan' is removed, none of the other selected values appear in the box.

Closing in the favour of #772 as solution would be the same i.e fixing how selected options are showing in a constrained multi select. Adding these cases in the other issue as well.


struggling to create similar agent tool like your spot demo

Hi! i also saw your your spot demo using rosa, that is very cool! i wonder if that code will be release soon? It would be really helpful for people who are struggling to create custom robot agent.
For example, i am struggling with the following functions (these seems to be solved in your robot):

describe what robot see; Normally i tried creating a tool that receives image from the robot camera topic, return to agent. but i find out the agent (gpt-4o) failed to take the raw image array directly (it even failed when i send it image url string or encoded base64 string)
draw a rqt graph; when i sent a draw rqt_graph request, it was not working:

did you write a specific tool in spot robot for that?
also can your default rosa code capable of calling common ros function? (e.g. ask the frequency of a specific topic, ask what topics are connecting to rosnode A, etc)

We use a heavily modified (and proprietary) version of Spot, so we can't release the code. However, I can give you some guidance on how we did it.
The main point is that you won't be able to use the underlying ROSA LLM model for vision, since we call bind_tools and there's some weirdness with LangChain. What this means is that you will need to create a new LLM instance within the tool itself.
For example:
def process_images(base64_imgs: list, prompts=None):
    client = ChatOpenAI(api_key=...)
    messages = prompts or [{"role": "system", "content": "Please describe the scene in the image(s)."}]

    messages.extend([{
        "role": "user",
        "content": [
            {
                "type": "image_url",
                "image_url": {
                    "url": f"data:image/jpeg;base64,{img}",
                    "detail": "high"
                }
            }
        ]
    } for img in base64_imgs])

    response = client.chat.completions.create(model="gpt-4o", messages=messages)
    result = response.choices[0].message.content
    return result

@tool
def describe_scene():
    # get images from camera
    # do any preprocessing
    # convert to base64 (OpenCV is a good choice)
    return process_images(...)

Note that OpenAI API has some requirements about the format of the images. You'll want to check their docs for that. I found that using jpeg encoded in base64.

As for rqt_graph part, ROSA doesn't provide a tool for that by default. You can probably create one pretty easily:
import subprocess

@tool
def rqt_graph():
    "Open the rqt_graph tool"
    subprocess.run(["rqt_graph"])
    ...

Note: I don't recommend using subprocess.run in tools if you can avoid it, but this is the easiest way to accomplish what you're trying to do.


update and add error for mixing address type options

split out from https://github.com/achow101/HWI/pull/54

Instead of having flags for each address type, maybe we should make the flag --addresstype and do a choices here?

utACK 8f3edf3 as it's a strict improvement, but I like @achow101's suggestion better in the long run.

utACK 8f3edf38de42f7bcd6023717c736e446239b9f8e


DEC-655: Site path interface

Why: The user needs an easy way to manage the site path for a collection.
How: Created a drag and drop interface that allows the user to drag any showcase or page into the site path.
Note: Several files were changed that are seemingly unrelated to this feature because of react and mui updates.

:+1:

:+1:


optional plotting

Can you make it optional to plot the data extracted with the h5 extractor?

Of course, @realspacekolle. This has been done. Witing data to .xy files has also been made optional. Please let me know, if this issue can be closed. Thanks.

Thank you. It works fine.


[contracts] Split tests

Since our testing suite is so large, we need short hand scripts to test parts during development.
This task is to split up the tests so that it is between unit tests and e2e tests.

@ponderingdemocritus can you assign this to me

this is blocked by foundry compatibility with dojo


the version of chemfiles does not match chemfiles-lib and chemfiles-python in conda-forge

I'm trying to install chemfiles 0.10.1 through conda
conda install -c conda-forge chemfiles=0.10.1

It turns out the latest version (0.10.3) gets installed
The following NEW packages will be INSTALLED:

  chemfiles          conda-forge/linux-64::chemfiles-0.10.1-ha770c72_0
  chemfiles-lib      conda-forge/linux-64::chemfiles-lib-0.10.3-h1cf7ff9_1
  chemfiles-python   conda-forge/linux-64::chemfiles-python-0.10.3-py310hfdc917e_1

Yes, the chemfiles package on conda depends on chemfiles-lib >= 0.10 and chemfiles-python >= 0.10. If you want a specific version, you should set this version in your install command, i.e.
conda install -c conda-forge chemfiles-lib=0.10.1 chemfiles-python=0.10.1

This is the intended behavior? I thought chemfiles is simply an alias of chemfiles-lib and chemfiles-python, which share the same version number.


chore: publish v1.0.0-dev.3

Hi,
Could you wait on this.
I just realised i need to make some corrections in phone auth flow.
I'll send the corrections in a bit

Sounds good!

@dshukertjr a note on this before you publish:
It throws the error yet the verification code is sent to my phone, blocking the phone auth flow. I think this implies that goTrue returns null on response.data if waiting for verification?


[KO] Translation of Documentation lesson

Related: #201
Any feedback related to translation is welcome. :smile:

@Dalgona @devleoper

Looks nice :rocket:

How do you think about translating the documentation part in the comments? Some translated versions (#244 and #246) translated the documentation part but the others(#311, #262, 0ab9a4, and #94) didn't.

@devleoper . Sure. Nice suggestion. I'll translate comments, right now.

I just translated comments.


Execution result type includes the full schema

It would be very nice if the result type only included the selected fields.
I imagine this could be solvable by using a combination of mapped types and conditional types.
Have you looked into this at and have some experience on the possibility?

Agreed, this is very almost perfect, except for that point... ill have a quick play and see if I can crack it..

@Pajn I can maybe see how mapped types can be used to pick the first level properties based on the query, but I can't see a solution on how to make it work with an arbitrarily nested GraphQL query/response.

Okay, looked at conditional types. This shows more promise

It can definitely be done. I had to head out but will take a look at it
tomorrow or the day after if you done work it out before hand :)
On Fri, 29 Mar 2019 at 19:29, Helios<EMAIL_ADDRESS>wrote:

Okay, looked at conditional types. This shows more promise
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/helios1138/graphql-typed-client/issues/12#issuecomment-477965148,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AANH-YvxIf-w4zVPE8hpIftDUeSk75U5ks5vbfkcgaJpZM4cQLXG
.

--
Mike Cann
http://www.mikecann.co.uk/
@mikeysee http://www.twitter.com/mikeysee

@mikecann this is what I got so far. Appers to be working recursively.
interface User {
  id: string
  name: string
  email: string | null
  posts: Post[]
}

interface UserRequest {
  id?: boolean | number
  name?: boolean | number
  email?: boolean | number
  posts?: PostRequest
}

type UserPartial<R extends UserRequest> =
  (R extends { id: boolean | number } ? { id: string } : {}) &
  (R extends { name: boolean | number } ? { name: string } : {}) &
  (R extends { email: boolean | number } ? { email: string | null } : {}) &
  (R extends { posts: PostRequest } ? { posts: PostPartial<R['posts']>[] } : {})

interface Post {
  id: string
  title: string
  description: string | null
  author: User
}

interface PostRequest {
  id?: boolean | number
  title?: boolean | number
  description?: boolean | number
  author?: UserRequest
}

type PostPartial<R extends PostRequest> =
  (R extends { id: boolean | number } ? { id: string } : {}) &
  (R extends { title: boolean | number } ? { title: string } : {}) &
  (R extends { description: boolean | number } ? { description: string | null } : {}) &
  (R extends { author: UserRequest } ? { author: UserPartial<R['author']> } : {})

const query = <T>(r: T extends UserRequest ? UserRequest : T): UserPartial<T> => {}

Oh lol, you beat me too it, this is what I just came up with:

// The main grapQL type
type List = {
  name: string;
  age: number;
  something: {
    foo: "bar"
  }
};

type Req<T> = { [P in keyof T]?: number | boolean } & {
  __typename?: boolean | number;
  __scalar?: boolean | number;
};

function makeExecute<U>() {
  return function execute<T extends Req<U> >(
    request: T & Req<U>,
    defaultValue?:  U[P] : never } {
    throw "put implementation here";
  }
}

const execute = makeExecute<List>();
const x = execute({ name: 1, something: 1  });

Ill see if I can make mine recursive with your types..

interface User {
  id: string
  name: string
  email: string | null
  posts: Post[]
}

interface Post {
  id: string
  title: string
  description: string | null
  author: User
}

type RequestProp<T> = T extends string ?  number | boolean :  Req<T>;

type Req<T> = { [P in keyof T]?: RequestProp<T[P]> } & {
  __typename?: boolean | number;
  __scalar?: boolean | number;
};

function makeExecute<U>() {
  return function execute<T extends Req<U> >(
    request: T & Req<U>,
    defaultValue?:  U[P] : never } {
    throw "put implementation here";
  }
}

const x = makeExecute<Post>()({ title: 1,  author: { id: 1 } });

const y = makeExecute<User>()({  });

gotta go to bed now, but its almost there, just needs to handle arrays as part of that conditional.

Oh man I must have been tired, because the above doesnt work for recursive types..

Here this solves it recursively, it makes your brain bleed a little trying to work it out tho..
type Scalar = string | number | boolean;

interface User {
  id: string;
  name: string;
  age: number;
  email: string | null;
  posts: Post[];
}

interface Post {
  id: string;
  title: string;
  description: string | null;
  author: User;
}

type Selectable = number | boolean;

type RequestSelctionField<TFieldValue> = TFieldValue extends Scalar
  ? Selectable
  : TFieldValue extends (infer X)[]
  ? RequestSelection<X>
  : RequestSelection<TFieldValue>;

type RequestSelection<TObject> = {
  [P in keyof TObject]?: RequestSelctionField<TObject[P]>
} & {
  __typename?: Selectable;
  __scalar?: Selectable;
};

type ReturnProp<
  TObject,
  TRequestSelection,
  TField extends keyof TObject,
  TObjectValue = TObject[TField]
> = TObjectValue extends Scalar
  ? TObjectValue
  : TField extends keyof TRequestSelection
  ? TObjectValue extends (infer X)[]
    ? Returned<X, TRequestSelection[TField]>[]
    : Returned<TObject[TField], TRequestSelection[TField]>
  : never;

type Returned<TObject, TRequestSelection> = {
  [TField in keyof TRequestSelection]: TField extends keyof TObject
    ? ReturnProp<TObject, TRequestSelection, TField>
    : never
};

function makeExecute<TObject>() {
  return function execute<TRequest extends RequestSelection<TObject>>(
    request: TRequest & RequestSelection<TObject>,
    defaultValue?: TObject
  ): Returned<TObject, TRequest> {
    throw "put implementation here";
  };
}

const x = makeExecute<Post>()({
  title: 1,
  author: { id: 1, age: 1, posts: { id: 1 } }
});

const xx = x.author.posts[0].

BTW using the above one could make a very nice fluent syntax using just a bit more typing and proxy objects.

type QueryArgsMap = {
  markTagSuggestions: QueryMarkTagSuggestionsArgs;
  marks: QueryMarksArgs;
  mark: QueryMarkArgs;
};

type QueryArgs<P, T> = P extends keyof QueryArgsMap ? QueryArgsMap[P] : never;

type Executable<TObject> = {
  execute: <TRequest extends RequestSelection<TObject>>(
    request: TRequest & RequestSelection<TObject>
  ) => Returned<TObject, TRequest>;
};

type MakeQueryable<T> = {
  [P in keyof T]: (variables: QueryArgs<P, T>) => Executable<T[P]>
};

type Root = {
  query: MakeQueryable<Query>;
};

let root: Root = {} as any;

const resp = root.query.marks({ input: { query: "foo" } }).execute({ totalCount: 1, marks: { id: 1 } });
resp.marks[0].

The above is using the schema from one of my own projects but will work with any object type.
... thinking about it more one could just export GraphQL AST much like https://github.com/apollographql/graphql-tag does, then it could be consumed by Apollo Client and you wouldnt have to write your own client with caching and all other other features that Apollo supports..

Here this solves it recursively, it makes your brain bleed a little trying to work it out tho..

do you think your solution can fit the __scalar logic and return types that are unions/interfaces, not specific objects? the solution I'm currently considering relies on pre-generating the conditional types like these
export type UserPartial<
  R extends UserRequest,
  F1 extends UserRequest = _FR<R['friends'], UserRequest>,
  F2 extends PostRequest = _FR<R['posts'], PostRequest>,
  F3 extends PetRequest = _FR<R['pets'], PetRequest>
> = (R extends Required<Pick<R, 'id'>> ? { id: ID } : {}) &
  (R extends Required<Pick<R, 'username'>> ? { username: String } : {}) &
  (R extends Required<Pick<R, 'email'>> ? { email: String } : {}) &
  (R extends Required<Pick<R, 'wasEmployed'>> ? { wasEmployed: Boolean | null } : {}) &
  (R extends Required<Pick<R, 'friends'>> ? { friends: UserPartial<F1>[] | null } : {}) &
  (R extends Required<Pick<R, 'posts'>> ? { posts: PostPartial<F2>[] } : {}) &
  (R extends Required<Pick<R, 'pets'>> ? { pets: PetPartial<F3>[] } : {})

It also does not yet implements __scalar or unions/interfaces, but at least I can see how it can potentially be implemented, since all the information is there during the generation process. not sure how can that information can be extracted in your solution, if it only relies on inference. Maybe only pre-generate the lists of scalar props. Curious.

BTW using the above one could make a very nice fluent syntax using just a bit more typing and proxy objects.

not exactly sure what you have there. is the goal to get the same result with less pre-generated ts code?

@helios1138 Awesome. I think you should go with your technique if you can get it to work.
I spent half a day when I should have been working on my technique and although theoretically I could make it work I just dont have the time for it right now.
BTW I even spent a coupple of hours on a pair programming session with a TS evangelist who works closely with the compiler team on this problem :) Its a really fun problem to solve, wish I had a bit more time on it.
For now tho, go with your solution if it works. Im keen to use it in my project!

Would love to see this implemented, would be really useful :+1:

Hello,
I'm very interested by this client and I think this part is the last missing piece. 😍
I very much agree with @mikecann on this

... thinking about it more one could just export GraphQL AST much like https://github.com/apollographql/graphql-tag does, then it could be consumed by Apollo Client and you wouldnt have to write your own client with caching and all other other features that Apollo supports..

I'd like a fully typed equivalent of graphql-tag to pass to any client (in my case I'd use react-query).
It's like in CSS in JS, they all went from the css taged template to a typed object alternative, and I feel that we're very close to it here.
How can I help?

Graphql Zeus uses a generic type MapType to select some fields DST from an interface SRC
type MapType<SRC extends Anify<DST>, DST> = ...

View the code here
We can simply copy paste that code and have the feature right now


Add AMSGrad optimizer

Pull request related to issue #174

@VaysseRobin Could you add AMSGrad in the tests of the file: creme/linear_model/test_glm.py? 🥳

@VaysseRobin You can also update the file creme/docs/api.rst and add a reference to AMSGrad ☺

No it's okay, the api.rst file is now generated automatically :)

The implementation looks good to me so I'll merge it. But I want to test against Keras and Tensorflow. I'm surprised that in AMSGrad the m isn't corrected for bias as in Adam. I'll have to check what the big boys do.
Anyway nice one!

It seems that in Keras, they apply the bias correction for m and v directly into the learning rate (see https://github.com/keras-team/keras/blob/master/keras/optimizers.py#L513). So should we trust the paper or Keras ?

My gut call is to add the bias correction. Maybe we can be fancy and add a correct_bias parameter to Adam and AMSGrad?

In fact, both Keras and Pytorch use AMSGrad as an option to Adam optimizer (and they both use bias correction), so should I modify the Adam optimizer, or should I keep it as a different class ?

Yeah I know. I would create separate classes and add the bias correction as a parameter to both.

I modified the object to integrate the bias correction. I integrated the bias correction into the learning rate like in Keras / Pytorch, then it's more optimized because we don't have to do it for each weight update. Should I do the same for Adam ?

It's indeed better that way, nice one. Yes you may as well do it for Adam.

Done !


Hi, the Baidu Pan download link is already invalid. Could you update a valid one? Thanks

I suggest you to upload model weights file to Google Drive, Dropbox or Onedrive

You can download the file at https://pan.baidu.com/s/1yMcGfwzURuHDriZQSsJERg, and the password is '8vbr'.
We will refer to your comments and upload the weights file on a new platform

I suggest you to upload model weights file to Google Drive, Dropbox or Onedrive

Thank you for your question and suggestion. Please see the above comment by Anquanzhi. Besides, the file "vgg16.npy" is the pretrained model of VGG16, and we downloaded it from the internet. You could obtain it by searching the internet, for example searching in the github.

Thanks @Anquanzhi @ZongxuPan . I thought you finetune the vgg model and I pull this issue.


[NativeMenu] Fix MinGW build.

Fixes https://github.com/godotengine/godot/pull/89506#issuecomment-1999499910

Thanks!


override defualt mappings

fix: does not create a new line at every 'n' anymore + handles stderr
remove empty space of stdout or stderr if they dont have output
will now show colors
formating
Automatically save file when .show() is ran
Set default file pattern mappings
Rename default_mappings -> default_file_patterns
Update README.md
Fix: erlang command
add ability to override default mappings + update documentation

close because tests do not pass


MessageBox does't work

Version & browser
0.14.1
Which component
MessageBox
Steps to reproduce the problem
I want to normally use it
Expected behavior
show me a normal message box without errors
Actual behavior
it gives me errors from modal component $attr and $listeners

Make sure you're using 0.14.1 not 0.14.0, and it should work as the document examples. If it doesn't, pls paste your code here so I can help you with.

I just tried example in the document. However it gives me warnings like this
 Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "value"

$listeners is readonly.

$attrs is readonly.

I have too much nested vue instance. Can it be related ?

I don't think so.
Maybe you can try reproduce the problem you found in some place such as codepen? I can do nothing if I can't reproduce it. Thanks.

we are using browserify for the SFC compiling. Is there any problem working with browserify?

I have not try with browserify, but it is supposed to work with commonjs / es6 env. If other components work as expect then this one should be the same.
Maybe you can try to import and use it individually and see what happens: https://uiv.wxsm.space/message-box/#import-individually

I'm seeing the same issue.
const label = await MessageBox.prompt({
  title: 'Column Rename',
  content: 'Please set your preferred name for this column',
})

Results in
[Vue warn]: $listeners is readonly.
[Vue warn]: $attrs is readonly.

It seems to stem from the Modal instance in the MessageBox.
For reference, I'm also using this via browserify + vueify

ok. I see the problem now by testing on a browserify project. this is very strange since it only appears in vueify but not vue-loader, event with exactly the same vue and vue-template-complier versions. I may need some time to fix this. pls just ignore the warning by now.

I can solve this by changing my vuejs in project to runtime build.
For example, in package.json:
{
  ...
  "browser": {
    "vue": "vue/dist/vue.runtime.common.js"
  },
  ...
}

or in the entry of the app:
import Vue from 'vue/dist/vue.runtime.common'
import * as uiv from 'uiv'

Vue.use(uiv)

Both of them will show no warnings anymore. but I still don't know why...

@Alideniz @natecox pls let me know if these work or not. thanks.

@wxsms it worked !!! 👍  thank you f

Closing since have a solution and not a bug of this lib.


tailwind-clone project added

Description
A Tailwind homepage clone website made with only HTML and Tailwind CSS and is fully responsive to all types of devices of different sizes, whether it is a laptop, tablet, or mobile phone.
ATTACH SCREEN-SHOTS / DEPLOYMENT LINK
DEPLOYMENT LINK : Tailwind-Clone
Github Repo Link
Web

Mobile

Make it responsive

Make it responsive

it is responsive


Kojima examples answer extraction

Loading kojima data for commonsense_qa and strategy_qa needs two different answer extractions.
Outcome:
Evaluation of strategy_qa train cahnged
from the wrong:
{'accuracy': {'None_kojima-01_kojima-A-E': ...}
to the right:
Evaluating strategy_qa train...
{'accuracy': {'None_kojima-01_kojima-yes-no': ...}

Created from wrong branch...


REFACTOR: revisit registry examples to explore other ways for servicetype aliases

Registry searches currently support a few alias terms for servicetype, e.g. 'image' or 'spectra'. However, there is an ongoing discussion of deprecating these.
It would be extremely valuable to do an auditing of the suggested user workflow and whether any of the alternatives would make sense (IMO, I don't think it's realistic to request the beginner users we aim this workshop for to know anything about the individual protocols, especially their different version ,and do registry search for SIA, or SIA2, or SSA, etc.
xref: https://github.com/astropy/pyvo/issues/429

One alternative could be: https://github.com/astropy/pyvo/pull/470, we need to check on that from the end user POV

Further philosophical reference:  https://blog.g-vo.org/towards-data-discovery-in-pyvo.html


fix overflow on download for mobiles

Fixes #2086

@jamessspanggg Updated my PR

@kala2 please leave your account number so we can pay your bounty

Hey @jamessspanggg , i am not aware of the reward system. Could you please share a knowledge?


added github templates copied from cakephp

These templates will help with new issues and PR

okay done. How are these versions?


Allow to overwrite all highlight groups in a colorscheme

Currently it is not possible to customize the colors of all highlight groups in a colorscheme.
The problem is that lspsaga.nvim defines and overwrites all groups after calling init_lsp_saga(opts) with a call to https://github.com/glepnir/lspsaga.nvim/blob/main/lua/lspsaga/syntax.lua.
My current workaround is to copy the function found in syntax.lua and call my custom function after the call to init_lsp_saga(opts)
require("lspsaga").init_lsp_saga({
    use_saga_diagnostic_sign = false,
    rename_prompt_prefix = '>',
    max_diag_msg_width = 80,
})

-- color scheme can not be used as the lspsaga plugin would overwrite the colors again
-- this function gets called after the lspsaga plugin was loaded and defines the final colors
require("settings.lspsaga").overwrite_highlight()

It would be nice if all the highlight groups used by the plugin can be overwritten in a colorscheme instead of calling a custom function after the plugin was loaded.
This relates to:

#41
#42

you can use hi LspSagaxxxx your color here after init_lsp_saga

That is exactly what I do with the overwrite_highlight() function to change all colors in Lua. But it would be nice to set these colors directly in my colorscheme which is possible with LspSagaFinderSelection.

It's easy todo just move the all the syntax highlight to plugin/lspsaga.vim

I am currently busy with work but I can create a pull request on the weekend if the ticket is still not done.

It's okay  I will do it later.

Will moving things to plugin/lspsaga.vim still work in the case that the plugin isn't loaded on start? Say I have lspsaga in a pack/*/opt/lspsaga.nvim/ folder. It won't get loaded until I explicitly load it, say on my on_attach for some lsp-config setup.
If you move the definitions to plugin/lspsaga.vim, my colorscheme will get loaded first, and then when lspsaga gets loaded it will overwrite what my colorscheme setup, right?
Have you looked at something like :h hlexists? You could also consider setting them all up as links, as in the :h hi-link:
- If there are already highlight settings for the {from-group}, the link is
  not made, unless the '!' is given.  For a ":highlight link" command in a
  sourced file, you don't get an error message.  This can be used to skip
  links for groups that already have settings.

What do you think @glepnir?

@levouh moving the groups to the vimscript file still works even when the plugin is not loaded on start. The current implementation has the problem that the colors are overwritten when the plugin is loaded.
The new approach uses the default argument. See :highlight-default:
The [default] argument is used for setting the default highlighting for a
group.	If highlighting has already been specified for the group the command
will be ignored.  Also when there is an existing link.

Using [default] is especially useful to overrule the highlighting of a
specific syntax file.  For example, the C syntax file contains: >
	:highlight default link cComment Comment
If you like Question highlighting for C comments, put this in your vimrc file: >
	:highlight link cComment Question
Without the "default" in the C syntax file, the highlighting would be
overruled when the syntax file is loaded.


Enhancement : Improving UI of the website.

I  viewed your website but there I saw that mostly white or similar to white color are mostly used such as in the resources section there is only whitish color and the background page is also white and when we hover then also there is whitish appearance so there a nice looking and dashing color can be used . Also, in  the contributors and the license section, there is also not proper sentence writing so there should also be a change to make the website making good looking and making the user experience excellent.

Here there is inappropriate   lines some are half on the webpage  some are of different length which is not looking good, so it should be changed.

I think it is time taking for me as I am not completely ready for it so I am unassigning myself from this issue. Thanks for  your response to me @jfmartinz .


Update documentation to reflect latest code

Signed-off-by: Stefan Weil<EMAIL_ADDRESS>

I also updated https://digi.bib.uni-mannheim.de/ocr-fileformat/.

I am just wondering, are you seeing the transformation in this order?

Yes, that's the order with LANG=de_DE.UTF-8. With LANG=C I get a different order which looks like your one.

Merge now. :rocket: Thank you!


⚠ Bofrost.be has degraded performance

In 842e9df, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1629 ms

Resolved: Bofrost.be performance has improved in 5e18180 after 8 minutes.


Deadlock accessing the database - don't use singleton StorIO in multiple threads

So after some time I was able to track the issue to these components:
DefaultStoreIOSQLite.java
   @Override
        public void beginTransaction() {
            synchronized (lock) {
                sqLiteOpenHelper
                        .getWritableDatabase()
                        .beginTransaction();

                numberOfRunningTransactions++;
            }
        }

and
SQLiteConnectionPool.java with SQLiteDatabase and SQLiteSession
    public SQLiteConnection acquireConnection(String sql, int connectionFlags,
            CancellationSignal cancellationSignal) {
        return waitForConnection(sql, connectionFlags, cancellationSignal);
    }

    private final ThreadLocal<SQLiteSession> mThreadSession = new ThreadLocal<SQLiteSession>() {
        @Override
        protected SQLiteSession initialValue() {
            return createSession();
        }
    };

The problem is that SQLiteSession takes a connection from SQLiteConnectionPool for the duration of the transaction and keeps it in ThreadLocal variable.
So lets assume we are doing something in Thread1 and start a transaction. We take a lock in DefaultStoreIOSQLite with "synchronized (lock)" and proceed - the connection is taken from the pool and no connections are left there. The "synchronized (lock)"  is released.
Next a Thread2 comes and takes a lock "synchronized (lock)" and tries to take a connection by using "sqLiteOpenHelper.getWritableDatabase().beginTransaction();". Since there are no connections is starts to wait using "acquireConnection".
Then the Thread1 comes back with the work finished and tries to do "setTransactionSuccessful". "synchronized (lock)" is taken so he cannot do anything. "endTransaction" is never called and  the connection that was taken from the pool is never available again. Thread2 is locked and Thread1 is locked.
Deadlock.
IMO, it would be the best to remove your lock "synchronized (lock)" as the underlying SQLiteDatabase takes care of proper connection sharing by itself.
Thanks

Good investigation, I tried to make deadlock with different implementations of DefaultStorIOSQLite before release 1.0.0 and current impl was LGTM, but your explanation makes sense.
I'll take a look at this tonight and provide solution, probably it will be possible to make it non blocking.
Thanks again!

I remembered why I decided to use synchronization instead of AtomicInteger and newSetFromMap(new ConcurrentHashMap()) for notification about changes: ConcurrentHashMap does not guarantee that if Thread1 is currently reading and removing items and Thread2 is adding items — Thread1 "may see, or not see" items that were added by Thread2 and if it will see them, there are no guarantees that when Thread2 will decide to iterate and remove items later — it may see items that were removed by Thread1, so we can send duplicate notifications.
But looks like I missed that synchronization over SQLiteDatabase transactions may cause deadlock. Thanks for investigation!

@tadas-subonis PTAL at #482

Resolved by #482.

1.1.2 should be available in 10-20 minutes!


Running mypy with reviewdog has no output

I am trying to use your action in another project, but I have problems making it work:

First, if an error occurs during the action setup (installation, install_types, etc), the action happily returns an ok status and does nothing.
Second, the step "Running mypy with reviewdog 🐶 ..." shows no output and passes without errors, even when there are typing errors in the project:

https://github.com/vnmabus/rdata/actions/runs/7628880846/job/20780993774

Answer will be a little late

I solved 2 (it was caused by misconfiguration, but I still think that errors should be reported). Problem 1 remains, though.

@vnmabus
I'm glad it was resolved.
Regard

Consider this issue.

First, if an error occurs during the action setup (installation, install_types, etc), the action happily returns an ok status and does nothing.

Hi @vnmabus
Issue and will proceed to respond to the issue.
Thank you for your report.
As for this Issue, we will close it for now.


Update python-markdown

I'd like to run pokedex on macOS with Apple Silicon. However, the old python-markdown doesn't support building for M1 chips.
I updated python-markdown for the latest version.

markdown.util.etree is deprecated on 3.2. According to the official documentation, use xml.etree.ElementTree instead. https://python-markdown.github.io/change_log/release-3.2/#markdownutiletree-deprecated
latest python-markdown doesn't support ancient Pythons. So I dropped 2.7 support. Python 2.x is no longer supported officially.

Hi, can you point this PR to https://github.com/veekun/pokedex ?

I can submit PR to the original repo. However, it seems to be no more maintained....

I submitted veekun/pokedex#369

Let's merge it here then!


Update map.html

added padding to bottom of box as people couldnt scroll to press fight button

fixing now good spot


Cyrus rework

#170
#171

Changelog:
All Levels:
Reduced Attack reload time from 1s to 0.5s

Awakened:
Increased HP from 420 to 450
Increased DV from 8 to 10
Replaced Spell 'Summon Elemental' with 'Summon Magma Golem'
Decreased Courageous from 80% to 90%

Enlightened:
Increased HP from 540 to 550
Increased DV from 8 to 12
Increased AV from 36 to 38
Replaced Spell 'Summon Elemental' with 'Summon Magma Elemental'
Replaced Spell 'Mystic Armor' with 'Mystic Shield'
Decreased Courageous from 75% to 80%
Added Dominion 110%

Restored:
Decreased HP from 660 to 650
Increased DV from 8 to 12
Increased AV from 40 to 42
Increased Max Mana from 60 to 65
Replaced Spell 'Elemental Summons' with 'Summon Magma Elemental'
Replaced Spell 'Mystic Armor' with 'Mystic Barrier'
Decreased Courageous from 70% to 75%
Added Dominion 120%

Ascended:
Decreased HP from 780 to 750
Increased DV from 10 to 12
Increased AV from 44 to 46
Increased Max Mana from 60 to 70
Decreased Mana Regeneration Rate from 5 to 4
Replaced Spell 'Elemental Summons' with 'Summon Magma Elementals'
Added Dominion 125%

I'm going to close this PR and create a new branch so the commit history is a little more readable, given that we're rolling back a lot of the changes in here.

Ready for merge


usql: 0.12.13 -> 0.13.1

Description of changes

Upgrade from 0.12.13 to 0.13.1

https://github.com/xo/usql/releases/tag/v0.13.0
https://github.com/xo/usql/releases/tag/v0.13.1

Add passthru.tests.version to test the final binary

Add passthru.updateScript to update usql with ./maintainers/scripts/update.nix

Add meta.changelog

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

@ofborg eval

Fixed build for Darwin

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1453


[carbon dashboard] Competitor review of Allied Offsets dashboard

Review the Allied Offsets dashboard for design inspiration and feature ideation.
Capture the analysis as a set of design sketches and / or feature requirements.

@theprofessora this is where I am saving additional comments/notes/screenshots on the individual reports/screens
https://www.notion.so/klima-dao/Allied-Offsets-9acfb197611e45fa82c2b8dfeac4b15c


Release formatting

Fixed the list numbering scheme, looks like our markdown parser doesn't understand that pattern ? Here's what it looks like before this PR:

More breathing room for the text (hopefully ? not sure how that pans out once parsed to html)
And removed the ugly screenshot I took for the dithered shadows.

I am closing this as it was fixed in the new version.


Document the MonadWriter laws

More "positive" laws relating pass and listen to tell are conspicuously absent in both the mtl and transformers. This expands upon issue #25.
We currently at best have laws stated in terms of runWriterT which is unsatisfying.

Duplicate of #5.


Tidy up links on assessment pages

For the alpha we don't have the "download questions" or "download overview of the questions" content, so can these links be commented out on the assessment page.
I think there's also a similar link when a user starts their first assessment.
We will have links to the grid and guidance though, these can be added in today.
The PDF for the grid is here:
https://drive.google.com/uc?export=download&id=0B4rriq9nxtslOHRQMEhZOFRXSTg
The PDF for guide is here:
https://drive.google.com/uc?export=download&id=0B4rriq9nxtslRUxUalVsbUQ2TkU

Download White Paper - this should be called:
Download the guide


react-native-gesture-handler doesn't work in react-native-modal on android devices

Environment
info Fetching system and libraries information...
System:
OS: macOS 10.15.3
CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Memory: 1.83 GB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 10.17.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.5 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 23, 24, 25, 26, 27, 28, 29
Build Tools: 23.0.1, 25.0.2, 25.0.3, 26.0.2, 26.0.3, 27.0.0, 27.0.3, 28.0.3, 29.0.0, 29.0.2, 29.0.3
System Images: android-23 | Intel x86 Atom, android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7<IP_ADDRESS>92135
Xcode: 11.4/11E146 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_152 - /usr/bin/javac
Python: 2.7.15 - /usr/local/bin/python

Platforms
Android

Versions

Android: 9
iOS:
react-native-modal: 11.5.6
react-native: 0.62.2
react: 16.11.0

Description
I can use PanGestureHandler from react-native-gesture-handler with no problem, but if I put it in react-native-modal, it won't work.
I think it must be conflicted with the gesture system in react-native-modal.

Reproducible Demo
https://github.com/chj-damon/react-native-modal-gesture-bug-demo

It's a known issue. You need some extra steps to make gesture handler work with Android Modals. Read more here: https://docs.swmansion.com/react-native-gesture-handler/docs/getting-started.html

@kristjanm I changed my code following the manual, it still doesn't work.
you can see the code in the repository.

same here

Having the same issue. Wrapped the component with gestureHandlerRootHOC and still not working

@chj-damon  Does any found any solution ?

@kristjanm  given link is not valid as of now https://docs.swmansion.com/react-native-gesture-handler/docs/getting-started.html.
Please help us :-(

https://docs.swmansion.com/react-native-gesture-handler/docs/
Here is the solution for Modals in Android.
It worked for me.

@facucalle92  Hi do you remember which part the solution is?

Usage with modals on Android
On Android RNGH does not work by default because modals are not located under React Native Root view in native hierarchy. To fix that, components need to be wrapped with gestureHandlerRootHOC (it's no-op on iOS and web).
For example:
const ExampleWithHoc = gestureHandlerRootHOC(() => (
    <View>
      <DraggableBox />
    </View>
  );
);

export default function Example() {
  return (
    <Modal>
      <ExampleWithHoc />
    </Modal>
  );
}


Workbench.aspx error

Category

[ ] Question
[ ] Typo
[x] Bug
[ ] Enhancement / Suggestion
[ ] Additional article idea

I am trying to use the new Workbench feature for our online SharePoint on our own server. Locally I get everything working however when I want to test the webpart on the online SharePoint by going to
'https://your-sharepoint-site/Shared Documents/workbench.aspx' (with our own site of course) it gives me the error:

Sorry, something went wrong
Could not load type 'Microsoft.SharePoint.WebControls.ClientSidePage' from assembly 'Microsoft.SharePoint, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

I've done some research and it's not that the Site Collection is not made by a Developer Account because then I would get another error.
I've downloaded the workbench.aspx here and uploaded it to the modified Documents Library as per the tutorial.
So how can I fix this?

As per the instructions at http://dev.office.com/sharepoint/docs/spfx/set-up-your-developer-tenant you MUST have a Developer tenant in Office 365; not just a Developer Site Collection. And not on your own SharePoint server.

Can't believe I missed the first line haha.
I am now creating one and going to follow the tutorial again.
Thanks for the fast reply! Will come back with results!

So the problem is fixed thanks to @wictorwilen!


Post depreciation

Nowadays we only use PUT to set up Functions. Post method just generate more maintenance, documentation and so on. We believe that if we depreciate this one, our database will be cleaner.
Redis and ETCD already have a model Set e Unset instead of create, update and delete.

Coverage decreased (-0.3%) to 89.438% when pulling 155bb37e3b4b2451417e173fbf08d8fe22ebd8d1 on barbarawcorreia:post-depreciation into 1b91e84f55b10fb967e8a99b680bacb51641f651 on backstage:master.

Coverage decreased (-0.3%) to 89.438% when pulling 155bb37e3b4b2451417e173fbf08d8fe22ebd8d1 on barbarawcorreia:post-depreciation into 1b91e84f55b10fb967e8a99b680bacb51641f651 on backstage:master.

Thanks @barbarawcorreia  =D


"findDOMNode was called on an unmounted component." error while deploy projects

Hi everyone !
i got a error #44 while trying to deploy my project on the server
https://reactjs.org/docs/error-decoder.html/?invariant=44
I follow the tutorial in this link: https://gist.github.com/Kocisov/2a9567eb51b83dfef48efce02ef3ab06?fbclid=IwAR1BsJ0VVQvO9ELBG2vu9bHP2rNeltD9xUuczBFtyvasOnpIAnAifr-G9Mo
Everything works well on dev mode, but when i try to deploy with command:  npm run start , it got error !
Can anyone help me ?

This is probably not an issue with Next.js. Please post your question on spectrum.chat/next-js.


Some features down't work correctly

Hello. Installed this plugin to my project, but something wrong(
there is no method button

No foldout, enabledif or showif(

readonly works only for nested items

please help

Post a full log of your debug console.

Simple Note plugin conflict found.
Just look at all Editor folders in project to check useless and useful items.
Thanks a lot) Great plugin!


Power Platform Chatbot Copilot Studio: Issue with publishing Copilots

Describe the bug
Our copilots are taking forever to publish the chatbot, and it keeps spinning, stating that it is publishing. Is there any way to stop or reset it?

Chat Copilot is NOT related to Microsoft Copilot.  They are different projects.


Fix middlewares

Hey there,
I noticed that both middlewares execute their custom logic only after the request is handled.
Wrt the LoginRequiredMiddleware, this allows unauthenticated users to execute requests even if the request URL is not on the whitelist settings.LOGIN_EXEMPT_URLS.  The unauthenticated user cannot see the result of the request, though.
Best,
Felix

@Nilix007 I've tested this and it works fine. thanks for the PR. The timezone middleware is no longer needed, could you remove it and update the PR? That way you'll get the credits ;-)

@Nilix007 If you would apply @valentijnscholten's suggestion, we'd pretty much be ready to merge. Cheers, and thanks for the contrib :)

Sorry, was on vacation.  I removed the timezone middleware and rebased onto dev :+1:


Use PcgRandom instead of System.Random

Line 13 of Scientist.cs says:
// TODO: Evaluate the distribution of Random and whether it's good enough.

PcgRandom (NuGet, GitHub) is a .NET port of the PCG RNG algorithm. It's a drop-in replacement for System.Random that provides a high-quality PRNG.
If you're interested, I can submit a PR; just let me know. (I'd also fix the thread-safety bug in Experiment.cs; a static Random instance could be accessed simultaneously by multiple threads, but it's not thread-safe, and doing so can corrupt its internal state.)

My 10 cents:
The random object should be inject-able. That way we can write deterministic tests etc.

It feels like there needs to be some usage of Random first before it a decision is made on if it's randomness is "good enough" or not.

I'd like to minimize 3rd party dependencies as much as possible.
In this case, perhaps we should switch to the RNGCryptoServiceProvider
It's thread safe.

Great point about System.Random not being thread safe. I forgot about that!

the RNGCryptoServiceProvider and PCGRandom is much slower than System.Random and I don't see the advantage over a cryptographical random number generator over an more-or-less predictable but very fast pseudorandom generator in this case.
On the contrary: it might cause a lot of problems in high-performance environments!

you can make System.Random thread save. put it into a static Lazy<T> and you get a thread save instance.

@darcythomas: i agree with that one. some users might just want to use a Round Robin method and using the Interlocked class on an static int value todo so.

you can make System.Random thread save. put it into a static Lazy and you get a thread save instance.

How does that make it thread safe? It's the methods of Random that are not thread safe because they rely on some sort of internal state.
Per the MSDN article:

If your app calls Random methods from multiple threads, you must use a synchronization object to ensure that only one thread can access the random number generator at a time.

@haacked I suspect @movGP0 means wrapping up a System.Random instance into a (new) singleton (using Lazy<>), with a lock(){} block around calls to random.Next for thread safety

For fun, I did some benchmarking.
var stopwatch = new Stopwatch();
var random = new Random();
var rng = new RNGCryptoServiceProvider();
var lockObj = new object();

const int iterations = 1000000;

// Probably don't need to call these methods to ensure they're JITTED since these are framework methods and they're probably
// NGen'd but JUST IN CASE.
byte[] _ = new byte[1];
rng.GetBytes(_);
random.NextBytes(_);

stopwatch.Start();
for (int i = 0; i < iterations; i++)
{
    byte[] bytes = new byte[1];
    rng.GetBytes(bytes);
}
stopwatch.Stop();
Console.WriteLine(iterations + " iterations of RNG: " + stopwatch.ElapsedMilliseconds + "ms");
stopwatch.Reset();
stopwatch.Start();
for (int i = 0; i < iterations; i++)
{
    lock(lockObj)
    {
        byte[] bytes = new byte[1];
        random.NextBytes(bytes);
    }
}
stopwatch.Stop();
Console.WriteLine(iterations + " iterations of Random: " + stopwatch.ElapsedMilliseconds + "ms");

Results

1000000 iterations of RNG: 397ms
1000000 iterations of Random: 32ms

In other words, RNGCryptoServiceProvider takes around 397 nanoseconds per call while System.Random takes 32 nanoseconds per call.
So yeah, Random even with a lock is faster, but at these speeds, it's just noise compared to the overhead . However, we're talking about a micro-optimization here in the first place. I think this speed difference is noise compared to other overheads of calling Scientist. Probably shouldn't call scientist in a tight loop if your app is that perf sensitive.
What's interesting is if you up the number of byes generated by NextBytes, System.Random starts to get slower. For example, to generate 164 bytes, Random takes longer than RNG.
For our needs, I think System.Random with a lock should be fine. Probably no need to wrap it in a Lazy<T> if we use a static initializer.

the thread savety on System.Random is only when creating multiple instances of it at the same time, since then those instances will be initialized with the same seed value.
you can savely call the .Next() method without the lock.

the Lazy is needed to initialize the Random on the first use in a thread save way. without it, Random will be seeded on application start, which means that it will get the same seed than other static instances of Random without the Lazy. so i do recommend using it.

you can savely call the .Next() method without the lock.

This is incorrect. From the docs:

If your app calls Random methods from multiple threads, you must use a synchronization object to ensure that only one thread can access the random number generator at a time. If you don't ensure that the Random object is accessed in a thread-safe way, calls to methods that return random numbers return 0.

You cannot safely call Next from multiple threads simultaneously (which could happen when using the same static Random object in different HTTP requests).

The original suggestion in this issue won't be implemented, since it would involve taking an unnecessary third-party dependency. #34 is fixing the thread-safety issues. This issue is now redundant.

oh i see. thanks for checking 😃


fix webpack scheme

What kind of change does this PR introduce?
fix, related to https://github.com/webpack/webpack/pull/16001/files

Did you add tests for your changes?
no need

Does this PR introduce a breaking change?
no

What needs to be documented once your changes are merged?
nothing

Thanks


Add requirements.txt

Hi @apadee ,
This PR adds a requirements.txt file which pins the required dependencies to run all notebooks.
This was tested by creating a fresh virtual environment for python 3.7 (same version you're using) and running each notebook to completion.
Thanks!
Cyril

I added an yml conda file with the requirements.
Thank you for the remark!


using: node16

https://github.blog/changelog/2022-05-20-actions-can-now-run-in-a-node-js-16-runtime/
https://github.com/c-hive/gha-remove-artifacts/issues/55

Thanks!


Reload  rows after deleting a row

Can you provide a sample example that shows a table with delete button for each row. Then, you can delete a row and have an updated table with true pagination.

Here the documentation about delete row and manually reload the table
http://zizzamia.com/ng-tasty/directive/table-server-side/reload

Hello .. Please help me .. I am facing an issue with ng-Tasty..
The table is not reloading after deleting an entry if I don't use reloadCallBack approach. And if I use reloadCallBack approach, pagination after filter doesn't work. I want reload table after delete with pagination working after filtering too.


Whoops, looks like something went wrong.  1/1 FatalErrorException in web.php line 31: Class 'App\Movie' not found

I face this problem in my first laravel project
Whoops, looks like something went wrong.
1/1
FatalErrorException in web.php line 31:
Class 'App\Movie' not found
while I create class in model
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
// laravel knows that since model is named Movie,
// its database table name is "movies"
class Movie extends Model
 {

}
?>

This has nothing to do with this package.


--width / --max-width in SVG export don't affect the width of the picture

I'm using rich-cli in my latest semi-stealth project at https://github.com/hynek/hatch-fancy-readme and I've noticed that I can set the width of the output, but the SVG export will always be the width of the terminal. That means the right side of the SVG is blank.
In other words: I have to resize the terminal to get the output I want (see README). I'm a I missing something, or is this on purpose, or is this a bug?

The SVG export replicates what you see in the terminal. So it is kind of by design. But on reflection, I think it would make more sense for it to override the size of the terminal rather than the size of the content.
Fancy readme looks interesting!


When using JSONbin you always get the message to recover local changes

Describe the bug
When using JSONbin you always get the message to recover local changes, while there are no local changes. No matter if you update the remote tokens, this modal always appear.
To Reproduce
Steps to reproduce the behavior:

Connect tokens to JSONbin
Update remote tokens
Re-open te plugin
The modal below will be shown.

Expected behavior
if there are no local changes, this modal must not show.
Screenshots or Screencasts

https://figmatokens.slack.com/archives/C02DLQXNY6Q/p1666172249498539

Released in 129


Add askemo term for vaccination rate

Hi folks,
the nu parameter in an SVIIvR model is the vaccination rate parameter.  Could we get an askemo term for vaccination rate?

Hi @djinnome, I'm working on adding this. Can you point me to any documentation / publication where this term is used in context?

It is the parameter associated with the :vax transition connecting the susceptible population (S) to the vaccinated susceptible population (V) in Figure 2(b) and 2(c) of the Algebraic Framework for Structured Epidemiology paper  Also, it is contained in the SVIIvR model described in cell [6] of the composition notebook

Lastly, it is the parameter that is being minimized subject to the constraint of no more than 10 cases per 100k in scenario 2 of the December demo.


Use plain language to describe requirements

This fixes instances where a non-developer would not understand the naming requirements.

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

The underlying document changed significantly, so I made these same changes in PR #72 against the latest doc.


secrets storage locked and password promt

Verify it's not a duplicate bug report

[X] I searched for similar bugs reported on GitHub and nobody has reported a similar issue. Search all issuees.
[X] I read Troubleshooting guide on Readme and there is not a guide on how to solve my problem.

Describe the Bug
vs cde version: 1.74.2
OS: Red Hat Enterprise Linux 8.7 in VMware hyper enviroment
GNOME Version 3.32.2
user do not have root premission
step to reproduce:

after promoting the dialog "Please add your API key to use openAI official APIs..."
insert the API Key in "Store openAI API key in VS code Secrets Storage", and enter
dialog pops "Enter password to unlock" -> can not change the default keyring

Please tell us if you have customized any of the extension settings or whether you are using the defaults.
it is not relavent to the GPT model and I am using the empty settings.json
Additional context

Searching online didn't give any useful results but it looks like VS Code requires permission to access secret storage for the extension to store the api keys. Which is required for extension to work. And I assume the secret storage is behind Default keyring in your OS, for which the user doesn't have permission to write.

thanks a lot for the investigation, I totally agree with your comment and I think this is likely the reason of the problem. I was checking the Default keyring and also the location of the secret storage from the VS code website, but no exact place or folder was given. Since I was making a user installation of the VS code under my own home folder in Linux enviroment, it is a bit weird that there is no permission given. I do understand that this may have small link from your software. But I hope there will be some work around method. Thanks in advance!

I found out it's configurable, it depends on VS Code ability to detect OS keyring.
See:
https://stackoverflow.com/questions/76044882/chatgpt-api-key-not-working-in-visual-studio-code/76731061#76731061
The explanation on how to configure VS Code is here:
https://code.visualstudio.com/docs/editor/settings-sync#_troubleshooting-keychain-issues