NFSim passes over the wrong subpattern for local function evaluation

IN the example linked here
https://gist.github.com/jjtapia/23bf8426b8a3c4ae15fdd7e3da18951b
NFSim reports
Internal error in LocalFunction::evaluateOn()! trying to evaluate a function with unknown scope. It  seems the problem is that NFSim is passing the wrong molecule subpattern for local function evaluaiton, so in the rule
Bug1: %z:X(a!1,a!+).Y(b!1,d~0)->X(a!1,a!+).Y(b!1,d~1) factor(z)*kmod
For whatever reason it is evaluating  Ytot on the X molecule, which produces the wrong scope error we are getting. Funny enough, if you change the rule to
NowItWorks1: %z:Y(b!1,d~0).X(a!1,a!+)->Y(b!1,d~1).X(a!1,a!+) factor(z)*kmod
NFsim will pass the correct 'Y' subpattern. I think the error is happening during the DORReaction constructor function where it creates the wrong mapping information on the 'argIndexIntoMappingSet' array. This happens both in NFSim v1.11 and v1.12.  The solution would then to take better care on which pattern is passed for evaluation during the mapping of a species pattern to a local function.
It is also work looking into how this relates to validation example v17.bngl. I think they are different issues but it's worth looking over it.

I looked a little bit more into this issue and unfortunately the fix does not seem to be simple. The issue has to do with how local functions are evaluated in DORRxnClass:evaluateLocalFunctions, specifically this line
this->argMappedMolecule[i] = ms->get(this->argIndexIntoMappingSet[i])->getMolecule();
tells nfsim which molecule agent will be sent for evaluation into a local function, like this
 double value = this->cf->evaluateOn(argMappedMolecule,argScope, reactantCounts, n_reactants);
Which molecular pattern is selected to be sent for evaluation is not chosen based on any labeling scheme, but based on which is the 'root molecule type' of sorts for a given mapping object, which is just dependant on how a complex is written.
in X(a!1,a!+).Y(b!1,d~0)
X is selected as the root molecule type
in Y(b!1,d~0).X(a!1,a!+)
Y is selected as the root molecule type
The issue is that when this so-called seed molecule types in this case is chosen to be 'X' in the case reported as a bug. When it is compared against Ytot nfsim complains that it doesn't know what to do with it. The real solution would be to make it so that nfsim just doesnt send a mapping's root molecule type  for evaluation to a local function but actually selects the right one. Alternatively keep walking down a complex till you find something you can evaluate.
The solution I suggest for now is that when you have a  pattern that only partially matches against an observable and you can choose an specific molecule type instead of the whole species you are more specific with the labeling, like so
X(a!1,a!+).Y(b!1,d~0)%z->X(a!1,a!+).Y(b!1,d~1)%z factor(z)*kmod
And avoid species labeling if possible

Addressed in commit ae4237d5d7cdedccc35bafc3f99c7aa4fec3eec8

So I opted for the second solution I mentioned, where once it finds a species label-local function parameter matching problem it falls back to trying other molecule patterns included in a reaction's mapping object. I included a test case indexed v19.bngl.


viewDidLoad is called on application start, but should be called on tab activation

When UIStoryboard.initialViewController is UITabBarController, Typhoon runs through all childViewControllers and indirectly calls viewDidLoad in all these view controllers. It's happening on the start of an application, but default behaviour is to receive viewDidLoad on first tab activation.
Here is gist with code from Typhoon that cause such behaviour https://gist.github.com/anonymous/2b6573c18e711888ced8#file-gistfile1-m-L10-L16

@bugzhunter Yes, I know the reason of that error... It's because of PR: https://github.com/appsquickly/Typhoon/pull/350 - It tries to inject properties into UIViews, so views are mistakely loaded on viewController.view getter.
Have you ideas how to fix your problem and keep this PR working? If I'll come up with something good, this problem would be fixed asap

What drawbacks would have something like this? https://gist.github.com/bugzhunter/a6e0090469243c98b6f2#file-gistfile1-m-L14-L21

The problem here: if view is not loaded (which is always true at this stage), properties will not be injected into UIView, because this code called once, after UIVIewController created.
The correct solution is: try to inject properties into view, after it's loaded. (i.e. after viewDidLoad). Right now I think only option is to use method swizzling and replace viewDidLoad with another which will post notification or call notification block.

@bugzhunter, Fixed in 3.2.0

Kudos!


deprecating aliases/providers passing

when changing a codebase with numerous providers its sometimes desired to migrate from one type to another one across time
in such cases it would be very helpful to provide a mechanism that warns on usages of deprecated providers/decorators
from dishka import Provider, make_container, provide, Scope

class Old:
   ...

class New:
   ...

@dataclass
class Extra:
    old: Old

USE_NEW = DeprecationWarning("Old is depreated please use New")

class ExampleProvider(Provider):
    scope = Scope.APP

    old = provide(Old, warn_on_use=USE_NEW)
    new = provide(New)

    extra = provide(Extra)

	@provide
    def extras(old: Old) -> list[Extra]:
		return [Extra(old)]

cont = make_container(ExampleProvider())

cont.get(Old) # warn with the get call as location

cont.get(Extra) # warn with the Extra type location

cont.get(list[Extra]) #warn with the provider definition as ocation

Can you, please, provide an example, what do you want to see and where: console, IDE or what? From what I understood by now you can add warn() call inside factory function, but probably it won't give you enough metadata


fix: Delete the pages post merge operation from application when they are removed from file system

Description

When we try to delete the resource by using the git branching, we can see the resource if we create the new branch from the parent branch even after we merged the sub-branch where the resource was deleted.

Fixes #10773
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Locally
JUnit Tests

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

@abhvsn ready for review :)

/ok-to-test sha=4f680b4

/ok-to-test sha=ea20277

/ok-to-test sha=9afc003

/ok-to-test sha=ab4e2ab

/ok-to-test sha=ab4e2ab


Feature: Menu Scene

Replace the opening scene of an immediate chess game with a menu to calibrate the session.

This is out of scope for the foreseeable future.


Add BulletPhysics .so name for Ubuntu

With this PR the BulletPhysics wrapper (physics.lisp) compiles after installing the libbullet-dev package in Ubuntu. (Tested in 16.04 LTS)

Unfortunately, it breaks my compilation.
I suggest that we do not include any Bullet library into the libphysics definition.  libbullet.so already depends on Bullet, so the dynamic loader automatically preloads the required libraries.
Please, check your load library path.  Update the ld cache with ldconfig and check that all the required by libbullet.so libraries are found:
ldd /path/to/libbullet.so

Weird, it shouldn't break compilation. The only reason would be because I'm loading the wrong .so of the library. After installing libbullet-dev in Ubuntu 16.04 LTS I get the following libraries.
$ dpkg -L libbullet-dev | grep .so
/usr/include/bullet/BulletCollision/Gimpact/gim_radixsort.h
/usr/lib/x86_64-linux-gnu/libLinearMath.so
/usr/lib/x86_64-linux-gnu/libBulletSoftBody.so
/usr/lib/x86_64-linux-gnu/libBulletCollision.so
/usr/lib/x86_64-linux-gnu/libBulletDynamics.so
``

When adding `libBulletDynamics.so` cleven loads successfully, but still doesn't run due to my card not supporting GLSL 3.30. Maybe this PR is misguided?

I installed Bullet to a non-standard path, so when define-foreign-library sees "libBulletDynamics.so" (without path) it searches the standard system path (/lib, /usr/lib, etc.) and fails.
When "./libbullet" is loaded from the current working directory its dependencies (libBulletDynamics and others) are resolved by the dynamic loader ld.so.
In my case, to find Bullet libraries ld.so uses RPATH from the dynamic header of libbullet.so.  Cmake specifies RPATH when I build libbullet.so with a command like this:
cmake -D BULLET_ROOT=/path/to/bullet/libs .

AFAIR, /usr/lib/x86_64-linux-gnu is a standard system path in Ubuntu, so you can build libbullet.so without specifying BULLET_ROOT and all Bullet libraries should be found.  Check your system configuration and/or try to rebuild libbullet.so.  Its shared dependencies should be resolved by ld.so, not by definitions in define_foreign_library.
Also, my libbullet.so depends on other Bullet libraries: libBulletCollision, libBulletSoftBody, libLinearMath.  How did you fix the compilation specifying just libBulletDynamics?
Regarding GLSL.  You can try to downgrade to 1.20, the minimum version which supports 3D textures.  If it doesn't help, you can try the Mesa software renderer which supports 3.30.


Missing rehydrate and targetDocument prop in TypeScript.

Dear Robin,
I guess the typing is missing some props.
https://github.com/robinweser/fela/blob/97148419e7941dbd5867b35df6ac4de6c5ed3e55/packages/react-fela/index.d.ts#L34
https://github.com/robinweser/fela/blob/97148419e7941dbd5867b35df6ac4de6c5ed3e55/packages/react-fela/src/RendererProvider.js#L14
I would love to see support for the following:
  interface ProviderProps {
    renderer: object;
    rehydrate?: boolean;
    targetDocument?: any;
  }

Feel free to send a PR adding those :)


Link license and add the property to package.json

Add license information, so this (https://www.npmjs.com/package/cluster) page will get it and hence other tools

Any chance of getting this merged?

Goodbye


Need ncurses version requirement.

Ncurses needs to be <6.0.  If I have the newest ncurses I get this:
`
In [1]: import pyLikelihood as pyLike
ImportError                               Traceback (most recent call last)
 in ()
----> 1 import pyLikelihood as pyLike
/usr/local/anaconda3/envs/fermi/lib/python2.7/site-packages/fermitools/pyLikelihood.py in ()
15         except ImportError:
16             return importlib.import_module('_pyLikelihood')
---> 17     _pyLikelihood = swig_import_helper()
18     del swig_import_helper
19 elif _swig_python_version_info >= (2, 6, 0):
/usr/local/anaconda3/envs/fermi/lib/python2.7/site-packages/fermitools/pyLikelihood.py in swig_import_helper()
14             return importlib.import_module(mname)
15         except ImportError:
---> 16             return importlib.import_module('_pyLikelihood')
17     _pyLikelihood = swig_import_helper()
18     del swig_import_helper
/usr/local/anaconda3/envs/fermi/lib/python2.7/importlib/init.pyc in import_module(name, package)
35             level += 1
36         name = _resolve_name(name[level:], package, level)
---> 37     import(name)
38     return sys.modules[name]
ImportError: dlopen(/usr/local/anaconda3/envs/fermi/lib/fermitools/_pyLikelihood.so, 2): Library not loaded: @rpath/libtinfo.5.dylib
Referenced from: /usr/local/anaconda3/envs/fermi/lib/fermitools/_pyLikelihood.so
Reason: image not found
`
If I downgrade to ncurses 5 (conda install "ncurses<6.0") then pyLikelihood imports fine.

I'll pin this in the meta.yaml.

Fix branch: https://github.com/fermi-lat/ScienceTools-conda-recipe/tree/ncurses_pin
Once tested I'll merge the change

@kialio It looks like it is fixed.  Please verify after updating to Fermitools=1.0.0 and if everything looks good I'll close out the issue.

Closing out.  Please reopen if this crops up again.


BUG: Page creation problem

Hi,
It appears that the Page constructor cannot handle certain special characters (such as '-') as 'modName'.
My mod (CVR-PlayTogether) has a dash in the name and Page can only be succesfully created if 'modName=CVRPlayTogether'.
Example steps to reproduce the issue:

Have a mod with dash in the name
Create root page:
_rootPage = new Page("CVR-PlayTogether", "Root Page", true)

Mod name itself shouldnt matter too much since you have the title parameter that is only visable to users?

The name goes through a filter that only allows alphanumeric characters, this is done on purpose due to how UILib interacts with the cohtml side of things.
As luc said, the menu title property is the intended way to set a pretty title and subtitle

could probably check with a regex, and throw if not matching


DaskXGBClassifier doesn't support cupy backend.

Tracking issue https://github.com/dask/dask/issues/7482 .
Details:
The classifier needs to determine the number of classes, which is the number of unique values in labels assuming it's already encoded.

The issue seems to be resolved with:
>>> dask.__version__
'2024.5.1'
>>> cupy.__version__
'13.2.0'


Java error in run-asm-pipeline.sh

Hi there
I have trouble in running 3d-dna

bash run-asm-pipeline.sh file.fasta mnd.txt
Here is the error info, do you have any suggestions, thanks a lot.

Hi huanfa,
This is not an error but a warning, should not cause you issues. Usually this might happen if you are running several jobs to build Hi-C maps on the same machine, at the same time.
Best,
Olga

@dudcha
Thanks for your reply. I have solved the problem which caused by the lustre, and I have changed a computer that run successfully. But a new problem appears that *.FINAL.fasta file contains all N. .rawchrom.fasta file was empty, but no error in running log file. Do you have any suggestions? Thx.

huanfa

Can you share the .out and .err?

On Jul 15, 2019, at 9:54 AM, huanfa<EMAIL_ADDRESS>wrote:
@dudcha https://github.com/dudcha
Thanks for your reply. I have solved the problem which caused by the lustre, and I have changed a computer that run successfully. But a new problem appears that *.FINAL.fasta file contains all N. .rawchrom.fasta file was empty, but no error in running log file. Do you have any suggestions? Thx.
https://user-images.githubusercontent.com/21327136/61225561-67604f80-a753-11e9-836f-93cb1d603b15.png
huanfa
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/theaidenlab/3d-dna/issues/52?email_source=notifications&email_token=ACLAMGZDYU3IOZC4GZF6DQDP7SFQRA5CNFSM4IAG3DBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ56LMY#issuecomment-511436211, or mute the thread https://github.com/notifications/unsubscribe-auth/ACLAMGYA3N44KXYLPO3AE4TP7SFQRANCNFSM4IAG3DBA.

Here is the run.log file
run (2).log

Hi huanfa,
This does not seem to contain the error stream, so can't use this to diagnose. One thing that may cause problems on this stage is bash version: note that it needs to be >4.2 or something to be able to handle associative arrays (recently I've changed this since rather many people kept complaining but it is not yet out).
Thanks,
Olga


Feature/support json schema

Yo! What about protobuf? So easy to add, please. Thanks you.

Any plans for protobuf support?

Any plans for protobuf support?

Just released a version now where it is allowed. Note that we've just made the minor change that allows it - but we haven't tested that the schema registry allows it.


How to implement adonis-request-throttler after adonis-typings change

Hi Guys,
I am using adonis-request-throttle in our project. Thank you for this package.
Can you tell me the new way of implementation .
Since the export default for RequestThrottler is changed from RequestThrottlerManagerContract to Array of RequestThrottlerManagerContract in adonis-typings. This is creating repetitive loop of pushing array of RequestThrottlerManagerContract. Please find screenshot for reference.

Was this change intentional?
Thanks,
Ranjith

Sorry, it is only missprint. We will fix update package soon. Thx that you checked it and give us know

This issue it's already fixed, I didn't have any problem building my adonis project with adonis-request-throttler package

We updated package with fixed types. Thanks for using our package


Remove duplicated build requirements

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

Ah yes this was the bot yesterday :)
thanks for the cleanup


Libre fixes (UPLOAD-593)

Addresses UPLOAD-593, also fixes the Libre CLI to upload blobs for debugging purposes.

@krystophv I hope this is the last one for today :smile:


Write some tests

We definitely need to add more tests for this - no confidence when upgrading dependencies and regressions are easily caused

I think with the integration tests dependencies can be updated with a little more faith at this point.

I think with the integration tests dependencies can be updated with a little more faith at this point.


Allow token creation for service accounts

Short description: Allow token creation for service accounts
More details: This would allow creation of token associated with service accounts and that can be utilized for subsequent authorized calls
What this PR does / why we need it:
Most likely addresses https://github.com/RedHatQE/openshift-python-wrapper/issues/1543
Which issue(s) this PR fixes:
Special notes for reviewer:
Bug:

/verified

/verified

/verified

/check-can-merge

/check-can-merge

/check-can-merge

/check-can-merge


fixed #2018 - [closed]

In GitLab by @liyanq528 on Mar 26, 2019, 09:38
Merges issue#2018 -> dev

In GitLab by @wknet123 on Nov 13, 2019, 11:41
The test coverage for backend is %  38.85%  , check  console log

In GitLab by @wknet123 on Nov 13, 2019, 11:41
closed


Update log4j to 2.16.0

This is in line with apache's new guidance on log4j-core

thanks for the bump @rahulsom  but i've already bumped it to 2.17.0 as part of my jdk-11 migration
https://github.com/web-innovate/bootstraped-multi-test-results-report/pull/96/commits/7659eaeb3fe4c40a60816ac82892b988aa6221c8

Thanks @BogdanLivadariu! What's the ETA on a release with the latest version? Once you have that, you might want to comment on https://issues.jenkins.io/browse/JENKINS-67353

I've just pushed out the 2.2.0 version, it should reach the plugin update page soon

@rahulsom  looks like it will take some more time, I'm unable to access my old account I was using to deploy the plugin to jenkins, so I'm waiting for : https://github.com/jenkins-infra/repository-permissions-updater/pull/2269  to land in, so I can push the hpi
sorry for the delay ...


Can't use non-standard endpoints for standard models

Validations

[X] I believe this is a way to improve. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that requests the same enhancement

Problem
https://discord.com/channels/1108621136150929458/1300903286060220469
Can't currently do fully custom endpoints that aren't compatible with e.g. openai, ollama without adding a provider in the codebase.
e.g. company.com/embeddings, company.com/conversation
baseUrl and apiUrl are nice but assume the endpoints match with e.g. ollama or openai
Solution
Add chatUrl, embeddingsUrl etc. or some other paradigm that would allow this

impacted by #2769

Duplicate of #2711


Iconography: Info incorrect - need newest icon library

Which page is this about?
Iconography: https://cfpb.github.io/design-system/foundation/iconography
Describe your issue
This is not the newest version of the icon font. Need to update icons in the tables as well as the font file for download in the intro.

It would be good to address the huge icons and how the icons are updated too. See
https://github.com/cfpb/design-system/issues/423
https://github.com/cfpb/capital-framework/issues/863

Should be done by https://github.com/cfpb/design-system/pull/1234 … reopen if not.


Some Kudu REST-APIs like "api/logs/docker/zip" are not mentioned in the Wiki.

In the below Kudu API page, some API like "api/logs/docker/zip" seems not mentioend.
Should this page be updated?
https://github.com/projectkudu/kudu/wiki/REST-API
Kindly confirm and Thank you very much in advance!

Repro steps.

your project built successfully on your dev machine but failed on Azure?
please write down your build tools and their versions (ie Msbuild <IP_ADDRESS>)

Project structures.

in order to reproduce your issue at our end we need a simple
github repository
that highlights structure of the project

The log/error given by the failure.

Normally this include a stack trace, error code and some more information.

Debug your Azure website remotely.

it is recommanded that you share your Web App name, directly or indirectly
we can take a look at what's going on.

Mention any other details that might be useful.

Thanks! We'll be in touch soon.

It is not part of this public kudu.  It is internal fork for Linux usage.

It is not part of this public kudu.  It is internal fork for Linux usage.

Thanks for the quick confirmation!
Understood this API is belonging not to public Kudu but to kudu for Linux.
Should any page (Kudu Lite wiki?) be updated for it? In the MS Docs, this API is mentioned but there seems no corresponding explanation in Kudu / KuduLite wikis.
https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs#access-log-files

Thanks for the quick confirmation!
Understood this API is belonging not to public Kudu but to kudu for Linux.
Should any page (Kudu Lite wiki?) be updated for it? In the MS Docs, this API is mentioned but there seems no corresponding explanation in Kudu / KuduLite wikis.
https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs#access-log-files


refactor: getSupportedLanguagesNameInEnglish & resolve lint

What

Refactor getSupportedLanguagesNameInEnglish for resolve unnecessary_set_literal
Resolve use_build_context_synchronously

Yes, I was on version 3.19, but apart from dart:ui (I removed the commit), the other changes seem legitimate.

Codecov Report
Attention: Patch coverage is 0% with 20 lines in your changes are missing coverage. Please review.

Project coverage is 9.53%. Comparing base (4d9c7fc) to head (af662f4).
Report is 45 commits behind head on develop.

Files
Patch %
Lines

...s/preferences/user_preferences_languages_list.dart
0.00%
5 Missing :warning:

...ooth_app/lib/pages/user_management/login_page.dart
0.00%
3 Missing :warning:

packages/smooth_app/lib/pages/crop_page.dart
0.00%
2 Missing :warning:

...th_app/lib/pages/user_management/sign_up_page.dart
0.00%
2 Missing :warning:

...ckages/smooth_app/lib/pages/offline_data_page.dart
0.00%
1 Missing :warning:

...mooth_app/lib/pages/personalized_ranking_page.dart
0.00%
1 Missing :warning:

..._app/lib/pages/product/add_basic_details_page.dart
0.00%
1 Missing :warning:

...pp/lib/pages/product/common/product_list_page.dart
0.00%
1 Missing :warning:

...es/smooth_app/lib/pages/product/edit_ocr_page.dart
0.00%
1 Missing :warning:

...mooth_app/lib/pages/product/edit_product_page.dart
0.00%
1 Missing :warning:

... and 2 more

Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5109      +/-   ##
==========================================
- Coverage     9.54%   9.53%   -0.02%
==========================================
  Files          325     327       +2
  Lines        16411   16529     +118
==========================================
+ Hits          1567    1576       +9
- Misses       14844   14953     +109

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Yes, I was on version 3.19, but apart from dart:ui (I removed the commit), the other changes seem legitimate.

Basically you've fixed lint problems that do not exist in 3.16.

@lsaudon I switch this PR to draft; it will be useful when we actually upgrade to 3.19.


Error: Cannot read properties of undefined (reading 'lightNodes')

WebsocketsTypeError: Cannot read properties of undefined (reading 'lightNodes')
at ./src/EvmNodes.mjs:259:53
at Array.forEach ()
at ./src/EvmNodes.mjs:258:22
at Array.reduce ()
at #sortByNetworkId (./src/EvmNodes.mjs:253:14)
at EvmNodes.getPublicNodes (./src/EvmNodes.mjs:177:39)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async #startRoute (./src/CLI.mjs:92:26)
at async CLI.start (./src/CLI.mjs:25:9)
at async main (./bin/evmnodes:6:5)

unknown provider id/name?


dsPlot bug

When you have two populations, with one's name being a prefix of the other, dsPlot produces the following error.
dsPlot(data)
In an assignment  A(:) = B, the number of elements in A and B must be the same.
Error in dsPlot (line 285)
    pop_var_indices{end}(varsel)=var_inds(fldind);

In my case, the names were: 'NG'    'IB'    'FS5'    'LTS'    'FS'    'RS'
For example, I had two FS populations - one labelled FS and the other labelled FS5 (for Layer 5 FS).
This is the segment of code that produces the error in dsPlot:
for i=1:length(pop_names)
  % do any variables start with this population name?
  var_inds=find(~cellfun(@isempty,regexp(var_fields,['^' pop_names{i}])));
  if any(var_inds)
    inds=cellfun(@(x)find(~cellfun(@isempty,regexp(var_fields(var_inds),['_' x '$'],'once'))),variables,'uni',0);
    varsel=~cellfun(@isempty,inds);
    fldind=unique([inds{:}]);
    pop_indices(end+1)=i;
    pop_var_indices{end+1}=nan(1,length(variables));
    pop_var_indices{end}(varsel)=var_inds(fldind);
  end
end
pop_names=pop_names(pop_indices);

I couldn't find an easy fix, so for now I'd just recommend avoiding this naming convention. I'll try to fix it if I have time, but since this will be depreciated by dsPlot2 it's not high priority rt now.

Update on this issue, a workaround for this is present in dsPlot2 by using the / character to force dsPlot2 to use regular expressions instead of simple string matching (the latter facilitated by matlab's strcmp command):
dsPlot2(data,'population','/^FS$/')
Here, ^ and $ force an exact match to FS, and / denotes to use regular expressions


[EMAIL-203] Jakarta 2

A continuation of PR https://github.com/apache/commons-email/pull/37

@garydgregory , can you please trigger workflows? I've rebased https://github.com/apache/commons-email/pull/37 on top of current master and fixed some small things in https://github.com/apache/commons-email/pull/80/commits/c54cc45fa63415b80659fdda8ae665dc6b44cf31

Can we have a TODO, or whatever, that suggests to restore the default value for build/defaultGoal after the 2.0 release, please?

Can we have a TODO, or whatever, that suggests to restore the default value for build/defaultGoal after the 2.0 release, please?

IDK, maybe it's possible to release with the checks being red, actually there are more failures coming before that :)

Can we have a TODO, or whatever, that suggests to restore the default value for build/defaultGoal after the 2.0 release, please?

IDK, maybe it's possible to release with the checks being red, actually there are more failures coming before that :)

A simple comment in the POM? Not much work for you, and visible in the Eclipse Task view.

Can we have a TODO, or whatever, that suggests to restore the default value for build/defaultGoal after the 2.0 release, please?

IDK, maybe it's possible to release with the checks being red, actually there are more failures coming before that :)

A simple comment in the POM? Not much work for you, and visible in the Eclipse Task view.

Sorry, sure, I've misread the message. Will do.

I think that current maven.yml misses setting a profile for launches on java >=9
Launching mvn -P java17 -V -Ddoclint=all --file pom.xml --no-transfer-progress locally makes build pass, without P java17 it fails.

I see that java17 profile should be activated if jdk >=17 as per https://maven.apache.org/guides/introduction/introduction-to-profiles.html#details-on-profile-activation
JDK is indeed >=17 https://github.com/apache/commons-email/runs/6800894700?check_suite_focus=true#step:5:9
But it might be some Maven versions comparison magic that breaks here

Doing this will break all containers using still the javax namespace for the next 10 years. I have complained about the same done in Logback. Blindly migrated. Unless you prove that it cannot and will not break using a mail session from JNDI I am vetoing against this PR.

Doing this will break all containers using still the javax namespace for the next 10 years. I have complained about the same done in Logback. Blindly migrated. Unless you prove that it cannot and will not break using a mail session from JNDI I am vetoing against this PR.

This is what I was afraid of and that's the reason I've asked if there were any circumstances not to merge the previous PR.
There is no information about it in JIRA, no comments here in PRs and no discussions in mailing list. @michael-o , please copy your answer to the ticket for future generations, it may save some time for them.

FTR: https://jira.qos.ch/browse/LOGBACK-1575

Also bear in mind that jakarta is already in master it's just there were no release of it yet
I don't say my suggestion was right, it's just there were no evidence (in this project) that it shouldn't be done like this.

True.

-1 as it stands because this kind of work can only be done in the context of a major version change which means:

The package name changes from org.apache.commons.mail to org.apache.commons.mail2
The Maven artifacts changes from commons-email to commons-email2

-1 as it stands because this kind of work can only be done in the context of a major version change which means:

The package name changes from org.apache.commons.mail to org.apache.commons.mail2
The Maven artifacts changes from commons-email to commons-email2

@garydgregory , if I was to open the same PR as the current one with the points above fixed, would it be merged?


Implement Game Score Tracker

GameStateTrackersAssembly : GameStateTrsackers.cs : Static class GameStateTracker
Implement Game Score properties
Int PlayerOneScore
Int PlayerTwoScore

GameStateTracker int PlayerOneScore
GameStateTracker int PlayerTwoScore
TODO: Implement with IShoot

done


[Request for External] Sales Post - GetPrepmtDiffToLineAmount

Could in the codeunit 80 Sales Post, the procedure GetPrepmtDiffToLineAmount be put to external please?

This procedure use global variable TempPrepmtDeductLCYSalesLine but this variable is not a parameter. How you are going to use it in your extension?

Oh didn't noticed TempPrepmtDeductLCYSalesLine is a global temp.
We copied the function for it's calculation method, but it uses a real Sales Line instead of the temp.
Since the global temp is equal to the real records (TempPrepmtDeductLCYSalesLine := SalesLine;).
Guess putting this function external won't be possible...
BC16.4
    local procedure GetPrepmtDiffToLineAmount(SalesLine: Record "Sales Line"): Decimal
    begin
        with TempPrepmtDeductLCYSalesLine do
            if SalesLine."Prepayment %" = 100 then
                if Get(SalesLine."Document Type", SalesLine."Document No.", SalesLine."Line No.") then
                    exit("Prepmt Amt to Deduct" + "Inv. Discount Amount" - "Line Amount");
        exit(0);
    end;

Our copy:
    LOCAL procedure GetPrepmtDiffToLineAmount(SalesLine: Record "Sales Line"): Decimal
    var
        TempPrepmtDeductLCYSalesLine: Record "Sales Line";
    begin
        WITH TempPrepmtDeductLCYSalesLine DO
            IF SalesLine."Prepayment %" = 100 THEN
                IF GET(SalesLine."Document Type", SalesLine."Document No.", SalesLine."Line No.") THEN
                    EXIT("Prepmt Amt to Deduct" + "Inv. Discount Amount" - "Line Amount");
        EXIT(0);
    end;


question about deeplab_resnet_init.ckpt

i have question about deeplab_resnet_init.ckpt
in original repo provide 3 init model.
(vgg16_128.caffemodel, vgg16_20M.caffemodel, vgg16_20M_coco.caffemodel)
-http://liangchiehchen.com/projects/Init Models.html
what is the init model is same with deeplab_resnet_init.ckpt?
and how to train init mode?

in official said , use modified VGG-16 network to imagnet data.
i want to know about detail of modefied vgg-16 network

This is DeepLab-ResNet. It is a modification of ResNet-101.


Why is the ground truth calculated during training?

Why not calculate it before training starts so there are no duplicate calculations?

Maybe not all the pairs are used in training.
there are 368 scenes. According the author's strategy, totally 30 epoch, randomly sample 100 pairs per scene every epoch. So the total training pairs are 30 * 368 * 100 = 1104000.
while the total number of pairs is 8M+


uniapp小程序编译Rollup failed to resolve import "bignumber.js"

 Rollup failed to resolve import "bignumber.js" from "/Users/xxx/Documents/work-space/other-project/private-project/本地生活/local-life/node_modules/wukongimjssdk/lib/wukongimjssdk.esm.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`

参考这个例子：https://github.com/WuKongIM/WuKongIMUniappSDK/tree/main/examples

装了以下依赖后不报错了。。
 "base64-js": "^1.5.1",
    "bignumber.js": "^9.1.2",
    "buffer": "^6.0.3",
    "crypto-js": "^4.2.0",
    "curve25519-js": "^0.0.4",
    "ieee754": "^1.2.1",
    "js-base64": "^3.7.7",
    "md5-typescript": "^1.0.5",


FEAT-45 added tests for the MetricsGatherer, added testdata for the MetricsGatherer tests, and fixed some small formatting in MetricsGatherer

I would like to point out some additional things that might be considered strange at first glance. The tests do no use the @Test annotation, or any JUnit5 Annotations. When doing this, the tests would end up running twice and have different run conditions in each, making it impossible to actually test. If one set worked, the other would break.
The solution? Just don't use those annotations. The tests still run, I believe due to the JUnit things already built into the LightJavaCodeInsightFixtureTestCase. Luckily JUnit is backwards compatible as I believe the parts from LightJavaCodeInsightFixtureTestCase are from either JUnit3 or 4.

I will say, the MetricsGatherer is actually at 100% code coverage now. And all the test cases that should be tested are actually tested, those being:
Does it actually get made?
Do we have the right number of methods?
Did we grab any test methods/did we grab the right files?
I can't think of any other test cases if I'm being honest. Only other thing that I could maybe test is if any non-java files are gotten, but there isn't really a way to test that given the MetricsGatherer's output.

Interesting that the tests run twice with the annotations, I honestly do not think the annotations are necessary but I will look into a potential work around to use JUnit 5 instead of 3 or 4 for the LightJavaCodeInsightFixtureTestCase. Good job Trey, this looks good to me.


Swipe not work on Music Assistant dashboard

Everything works fine until I reach tabs that have a slide or swipe feature, where I have to search outside the card for the swipe to occur between the 'tab/dashboard'. When I reach the Mass tab (iframe/web card), the swipe function stops working.

Same here


Refactor the Terms and Conditions screen

Refactor the Terms and Conditions screen as per the mockups:
https://xd.adobe.com/view/93c2d0e1-081a-4f62-b358-4e3d9b9a8847-c691/grid/

Created in the wrong repo. Moving...


(long) migration from old dmponline_v4 to roadmap 3.0.1 delivers customized templates with wrong family_id

I've completed the full migration flow from dmponline_v4 to roadmap 3.0.1.
One of the strange things I've seen is that there are now templates with attribute
customization_of set to a value that has no correspondence with a template
of that family_id.
So this returns no original template:
customized_template = Template.where("customization_of IS NOT NULL").first
original_template   = Template.where(family_id: customized_template.customization_of).first

This is only true for a few customized templates though (13?) in our collection,
but it makes some controllers crash where the method Template#base_org is used.
That method looks up the organisation of the original template..
The only place where these attributes are created/updated is in migration<PHONE_NUMBER>2339_new_plan_template_structure.rb, but I have no idea
why templates with same family_id seem to have dissappeared..
Any idea?

Interesting @nicolasfranck. I would suspect that perhaps the original data may have had an incorrect org_id on the project and template. See line https://github.com/DMPRoadmap/roadmap/blob/d73a3495b8601abe9bb9f3a5793c1706d9970d36/db/migrate/20161122152339_new_plan_template_structure.rb#L189. The modifiable variable determines whether or not the customization_of is null or contains a value.
I did not personally have to run through the upgrade tasks since my DMPTool came from a different codebase originally. I do recall our former developer, @xsrust, mentioning that the original DMPonline data had some issues like orphaned records or incorrect associations that he needed to deal with prior to the migration. Perhaps its related?
Congratulations for getting your system fully migrated to v3! That is a great accomplishment and a lot of work!

I did some investigation. If you run this query:
select id,title,family_id,customization_of from templates where customization_of is not null and customization_of not in (select family_id from templates)

then every customization_of corresponds to the id of the old dmptemplates (I checked their titles).
I've learned that family_id originates from these old dmptemplates.id,
and that customization_of refers to a family_id.
Possible causes?

migration mentioned above does the right thing, but a later migration updates family_id without updating customization_of
migration mentioned above generates a new template with customization_of set, but that referred template is never created.

@briri euhm the version of that migration you refer to is from the master branch, not the one from branch dmponline4_upgrade_step2 (why is that even different?). This version has two references to the function initTemplate:
https://github.com/DMPRoadmap/roadmap/blob/dmponline4_upgrade_step2/db/migrate/20161122152339_new_plan_template_structure.rb

If I remember correctly, those dmponline4_upgrade_stepX branches diverged off of the master branch because they required the creation of temporary tables/fields for use only with the migrations from that other dmponline4 codebase.
Looking at the lib/tasks/upgrade.rake file which contains all of the data manipulations needed through v1 and v2, I see that your suspicions may be correct. There a few upgrade tasks that clean up issues with templates and customizations that may have caused the issue.
It looks like the customization_of and family_id are not managed through ActiveRecord's belongs_to but are instead unfortunately managed through functions. It is possible that one of the other tasks updated those fields in an attempt to clean something up

I did the test: that migration is causing this issue:
select id,title,customization_of from templates where customization_of is not null and customization_of not in (select dmptemplate_id from templates)

Apparently there are two main loops that call the method initTemplate,
first from the perspective of the Project, and then from the perspective
of the Dmptemplate.
About the first loop:

If project.organisation is set and not equal to project.dmptemplate.organisation, then it is marked as non-modifiable, so marked as a customization. That last thing happens implicitly, as it is actually done by initTemplate when modifiable=true.
when customization_of is set, it expects (implicitly) the second loop to create that new template with that dmptemplate_id/family_id

About the second loop:

here initTemplate is called with all arguments set. A new dmptemplate_id is generated, and given as argument.
if dmptemplate_id is given as an argument to initTemplate, then it is used in favour of the old dmptemplate.id. This way no new template is generated with that dmptemplate_id/family_id

Ugh! That's a complicated mess. Thanks for doing the research into this issue @nicolasfranck
We don't have the bandwidth to patch it at the moment. Would you be willing to submit a patch to that specific migration branch? Or, as an alternative, since it seems to have only impacted a few records in your migration (and would likely be similar for others trying to migrate), we could make a note on the upgrade instructions wiki page outlining the bug and its severity (with a link to this issue) and a suggested approach for a manual update of those template records to fix them.

@briri : by setting this line ..
https://github.com/DMPRoadmap/roadmap/blob/dmponline4_upgrade_step2/db/migrate/20161122152339_new_plan_template_structure.rb#L401
to
dmptemplate_id = dtemp.id

I could fix this issue. But I guess that line was there for a reason? Something like
https://github.com/DMPRoadmap/roadmap/blob/dmponline4_upgrade_step2/db/migrate/20161122152339_new_plan_template_structure.rb#L399
was is meant here by "confusing versioning numbers"?

I'm not sure unfortunately. I migrated from a different codebase so I am unfamiliar with the old dmponline4 table structures and content. Its may have been to deal with an issue/scenario that was unique to the old dmponline data.
I added a note to Step 2 on the wiki instructions to let people know about this issue and to offer a manual solution. Can you take a look at how I described it and let me know if we should modify it to be more clear/helpful to others encountering the same problem?
Thanks again @nicolasfranck!

Another thing that I've found that branch: it generates entries in table answers_question_options that refer to the wrong option. This means that after the (full) migration the right option is not selected..
Although you cannot see this easy in the console:
answer = question.answers.first
# this returns a record ..
question_option = answer.question_options.first
# but this returns false
answer.option_selected?(question_option.id)

The entries from answers_question_options belong to the right answer,
but not to right question_option_id.
What is probably causing this: https://github.com/DMPRoadmap/roadmap/blob/dmponline4_upgrade_step2/db/migrate/20161122152339_new_plan_template_structure.rb#L637
It is very subtile:

in the first loop a template is either selected or created and attached the Plan. For each subtile difference a new template is created.
during template creation a new QuestionOption is created with foreign key option_id. That is the id of an Option that belongs somewhere in the original template.
initAnswer copies its selected options by searching on QuestionOption.find_by(option_id: option.id). But each duplicated template has question_options with that same option id, so it incorrectly select the first hit.

yes, that is very subtle. I wonder if adding the additional query parameter to that would help: QuestionOption.find_by(option_id: option.id, new_question_id: new_question.id)
I think that would properly select the cloned/new question option.

closing this out since you've migrated to the latest version @nicolasfranck


the compared methods

Hello, author. Thank you for your work. I would like to ask, in the training set you selected, to ensure fairness, do all the compared methods need to be retrained on the training set you selected?

We compared directly with the official results of other models.
The dataset does not have a significant impact on image compression as long as the amount of images is large enough. When training ELIC with our dataset, its performance is essentially indistinguishable from the official ELIC.
Training an image compression model usually requires 2 million iterations, and retraining the model would consume a very large amount of resources. Therefore, in image compression community, researchers usually compare directly with the official results.


[c++] Add option to build parquet library with minimal dependency

If users want to build only the parquet library, thirdparty headers are sufficient and GTEST and GBENCHMARK are not required.
Reporter: Deepak Majeti / @majetideepak
Assignee: Deepak Majeti / @majetideepak
Note: This issue was originally created as PARQUET-932. Please see the migration documentation for further details.

Wes McKinney / @wesm:
Issue resolved by pull request 279
https://github.com/apache/parquet-cpp/pull/279

Deepak Majeti / @majetideepak:
PR: https://github.com/apache/parquet-cpp/pull/279


In flutter for web app firebase phone auth implementation has an UnimplementedError for firebase_auth_web.FirebaseAuthWeb.new.verifyPhoneNumber method

In flutter for web app firebase phone auth implementation has an UnimplementedError for firebase_auth_web.FirebaseAuthWeb.new.verifyPhoneNumber method. The same code runs fine when testing on android or iOS device.  Please make sure you've setup everything.
can you please provide your flutter doctor -v and flutter run --verbose? Also, to better address the issue, would be helpful
if you could post a minimal code sample to reproduce the problem
Thank you

I'm having the same issue.
[✓] Flutter (Channel beta, v1.14.6, on Mac OS X 10.14.6 18G103, locale en-AR)
    • Flutter version 1.14.6 at /Users/yemel/apps/flutter
    • Framework revision fabeb2a16f (5 weeks ago), 2020-01-28 07:56:51 -0800
    • Engine revision c4229bfbba
    • Dart version 2.8.0 (build 2.8.0-dev.5.0 fc3af737c7)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/yemel/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.8.4

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.2.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] Connected device (2 available)
    • Chrome     • chrome     • web-javascript • Google Chrome 80.0.3987.132
    • Web Server • web-server • web-javascript • Flutter Tools

• No issues found!

Related:
Firebase Auth Code
Flutter Issue

Duplicate #46021


TAJO-2096: Apply offheap to the join operator.

This patch is not ready for review yet. I need to improve the projector


Redundant Single-Line Functions in elements.ts

In the elements.ts file, each function is created for a single line of code, which feels redundant and decreases readability. It forces developers to look up a separate file for functions that essentially perform very simple, one-line tasks. This not only makes the code harder to follow but also adds unnecessary complexity without providing significant benefit.
Should remove this file.

I think we should remove this as its adding complexity for a single line of code


How to run it under Linux

Install via bash script (Linux & Mac)
Linux & Mac users can install it directly to /usr/local/bin/mailpit with:
sudo bash < <(curl -sL https://raw.githubusercontent.com/axllent/mailpit/develop/install.sh)
I've installed via this method, but I don't know how to run it

To run mailpit without any options you then just type mailpit on the command line (and hit enter). To see a list of options, run mailpit -h.

Thanks for the answer, I run ./mailpit and I can open the web interface normally, but I don't know how to send an email。

I am not sure you understand what Mailpit is used for. Mailpit is not used for creating or sending emails, it is used to receive emails. Emails should be sent directly to Mailpit, and Mailpit will accept those emails and display them in the web interface. This is used to test whether the emails work, the contents of those emails are correct, etc. There is more information on how to set up an application to send emails to Mailpit on the website. I hope this helps you.

What do I mean by this established email service, how to receive email, and what is its address? Where do I need to set it up? Boss, do you have a live chat tool? Let's consult!


RSS Bridges is adding same posts everyday - Why?

Hi guys,
few days ago I found this RSS Bridge channel and it did looks really interesting (I like rss feeds and wish that all websites would support that by themself) and wanted to try this out right away. I was testing some RSS bridges from the list (bridge01) and was also trying to create any custom bridges using "CSS Selector Bridge" and all seems to work pretty nice on first view and tests. I'm using a desktop RSS feed application where I can add my feeds and I also did add few feeds from RSS bridge and few customs I made with it. Now after few days of testing I see a problem with some of the bridge feeds I did added into my RSS feed app. The most feed channels adding always the same posts everyday. Why? Normally they should add only new posts if there are any new or adding nothing but in this case its always adding the same posts again & again everyday and this is pretty bad. Just wanna ask what the problem is in this case and how to prevent that? Maybe you can help and tell me.
Other RSS bridges are working correctly without that problem to add same old posts again & again like the Rutube bridge. I was testing that one and adding a channel and this does just adds new posts what means it does work right. So what is the different? What I have to do to make other listed bridges (bridge01) & (CssSelectorBridge) working same good as the Rutube bridge to get just new posts added into my RSS feed tool? Thanks.

give example of this bug

There are different bridges you can try out like the Pornhub one. First problem here is that the show thumbnails function is not working what mean no thumbs are showing and just working to show titles. Now I do import that created bridge URL (atom format) into my RSS Feed application and it works so far (to see titles but without an image) but on next day when I update this feed it will read all same posts again as I told already. Another example I get same problem is when using & create custom CSS bridge like this one (found here in a post)...
Digital Foundry
Bridge below..
https://rss-bridge.org/bridge01/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.eurogamer.net%2Ftopics%2Fdigital-foundry&url_selector=.link_overlay&content_selector=article&content_cleanup=script, div.breadcrumbs, div.headline_details, div.metadata, div.mypop-header-wrapper, div.social_share&title_cleanup=+%7C+Eurogamer.net&format=Atom
I did import that one too and its adding also old posts which are already present. Just have a look on this image I made...

...as you can see it does add 10 posts each time. Yesterday 10 and today also 10 with 7 old one and 3 new one instead of just adding only the newest / latest 3 posts only. So this happens all the time also with other bridges I made but only exception is the Rutube bridge which is working correctly and just adding new posts only. Also if you check the creation / erstellt timestamp then you see its adding the time / date when I did import the RSS feed / update it and it does not use the timestamp when the post was made like it does in normal case when using RSS feeds from websites like youtube etc. In case of Rutube bridge its also using the right timestamp when the video was posted. Below a example & image of a Rutube channel number...
23485088
...

...and as you can see the creation timestamps are of the video posts itself not of the update I did (F5) for this channel yesterday & today etc. The question is how to make it work to update the items correctly (same as Rutube) without adding old posts again and again everyday?
Another question: How to make it work to use different CSS elements? I would like to set title, description & image like you can set on politepol website. Is that doable with CSS Selector Bridge? Thanks.

please discuss a single bridge and a single problem at the time.
create a new issue where you provide a url to a bridge with duplicated feed items appearing in your feed reader.
also which feed reader are you using


total and at methods don't work with ActiveJob support

Using total and at methods with active job always returns 0. I think the problem come from trying to access @jid which is always return nil. so any idea how to fix that?

Sorry I don't use ActiveJob yet so I am not sure what's the problem there. Pull requests are welcome.

@Azzurrio - Did you get it working with active job?

@ACPK Not yet. Actually I did a workaround by doing something like this in application_job
class ApplicationJob < ActiveJob::Base
  attr_accessor :jid

  before_perform do |job|
    job.jid = job.provider_job_id
  end
end

PS: This works with Sidekiq only because I had to do a PR into rails to get it working.

@Azzurrio Thank you!

I wrote an ActiveJob adapter, not perfectly, just works.
The adapter below is compatible with Non-SidekiqStatus jobs. When the job class doesn't include SidekiqStatus::Worker, it uses the Sidekiq adapter (its simple than SidekiqStatus, so I think it's faster), otherwise use a dummy worker to call real SidekiqStatus worker.
Within your worker, you can include SidekiqStatus::Worker (don't inherit from ActiveJob::Base, it's denid by Sidekiq::Worker). See below.
The adapter:
module ActiveJob
  module QueueAdapters
    # == SidekiqStatus adapter for Active Job
    #
    # Simple, efficient background processing for Ruby. Sidekiq uses threads to
    # handle many jobs at the same time in the same process. It does not
    # require Rails but will integrate tightly with it to make background
    # processing dead simple.
    #
    # Read more about Sidekiq {here}[http://sidekiq.org].
    # And SidekiqStatus {here}[https://github.com/cryo28/sidekiq_status]
    #
    # To use SidekiqStatus set the queue_adapter config to +:sidekiq_status+.
    #
    #   Rails.application.config.active_job.queue_adapter = :sidekiq_status
    class SidekiqStatusAdapter
      def enqueue(job) #:nodoc:
        #Sidekiq::Client does not support symbols as keys
        job.provider_job_id = Sidekiq::Client.push \
          "class"   => job_class(job),
          "wrapped" => job.class.to_s,
          "queue"   => job.queue_name,
          "args"    => [ job.serialize ]
      end

      def enqueue_at(job, timestamp) #:nodoc:
        job.provider_job_id = Sidekiq::Client.push \
          "class"   => job_class(job),
          "wrapped" => job.class.to_s,
          "queue"   => job.queue_name,
          "args"    => [ job.serialize ],
          "at"      => timestamp
      end

      class JobWrapper #:nodoc:
        def perform(job_data)
          Base.execute job_data.merge("provider_job_id" => jid)
        end
      end

      private
        def job_class(job)
          if job.class < SidekiqStatus::Worker
            JobWrapper
          else
            ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper
          end
        end
    end
  end
end

Config your active_job in config/application.rb:
module YourApp
  class Application < Rails::Application
    config.active_job.queue_adapter = :sidekiq_status
  end
end

Your worker code:
class MyWorker
  include SidekiqStatus::Worker

  def perform(*args)
    self.total = 5
    at(0, 'init')
    # do somethine
    at(1, 'xxxx'
    # ...
  end
end

Enqueues job:
MyWorker.perform_async(user)

Only test some cases, maybe has some problems.


NIFI-13926: Removed used of default branch name in favor of null in I…

…mport From Registry and Start Version Control.

Reset form fields as necessary when queries to load buckets, branches, etc fail.

reviewing...


update ramen dependency

Before:
apiVersion: ramendr.openshift.io/v1alpha1
kind: RamenConfig
health:
  healthProbeBindAddress: :8081
metrics:
  bindAddress: <IP_ADDRESS>:9289
webhook:
  port: 9443
leaderElection:
  leaderElect: true
  resourceName: hub.ramendr.openshift.io
ramenControllerType: "dr-hub"
drClusterOperator:
  deploymentAutomationEnabled: false
  channelName: stable-4.10
  packageName: odr-cluster-operator
  namespaceName: openshift-dr-system
  catalogSourceName: redhat-operators
  catalogSourceNamespaceName: openshift-marketplace
  clusterServiceVersionName: odr-cluster-operator.v0.0.1

After ODFMO update
apiVersion: ramendr.openshift.io/v1alpha1
drClusterOperator:
  catalogSourceName: redhat-operators
  catalogSourceNamespaceName: openshift-marketplace
  channelName: stable-4.10
  clusterServiceVersionName: odr-cluster-operator.v0.0.1
  namespaceName: openshift-dr-system
  packageName: odr-cluster-operator
health:
  healthProbeBindAddress: :8081
kind: RamenConfig
leaderElection:
  leaderElect: true
  leaseDuration: 0s
  renewDeadline: 0s
  resourceLock: ""
  resourceName: hub.ramendr.openshift.io
  resourceNamespace: ""
  retryPeriod: 0s
metrics:
  bindAddress: <IP_ADDRESS>:9289
ramenControllerType: dr-hub
s3StoreProfiles:
- s3Bucket: odrbucket-bcf3041f21d7
  s3CompatibleEndpoint: https://s3-openshift-storage.apps.bot-ce85487b-896d-4e2c-9344-486d4285cba5.devcluster.openshift.com
  s3ProfileName: s3profile-local-cluster-ocs-storagecluster
  s3Region: noobaa
  s3SecretRef:
    name: 10d0befe9022a438cb7216391c32e6eba32f19f
    namespace: openshift-dr-system
- s3Bucket: odrbucket-bcf3041f21d7
  s3CompatibleEndpoint: https://s3-openshift-storage.apps.bot-1a9bc5cd-af2d-46b5-98f7-14a19053e787.devcluster.openshift.com
  s3ProfileName: s3profile-spoke-cluster-ocs-storagecluster
  s3Region: noobaa
  s3SecretRef:
    name: 756bd87b55371f0a9a791269d78efdaeb2617fc
    namespace: openshift-dr-system
webhook:
  port: 9443

deploymentAutomationEnabled: false is disappearing because the default is false and json:"deploymentAutomationEnabled,omitempty" is removed when the value is false while parsing. I checked with true value and it never disappears when its value is true.
Signed-off-by: Gowtham Shanmugasundaram<EMAIL_ADDRESS>

/cc @ShyamsundarR Need your ack on this. I am fine with using oldest possible version.

/cherry-pick release-4.10


Remove some autotools leftovers

Follow-up on 332fe3c75be6688f158fa4450eb07446edded7ee

The AuTest subcookie failed with differing gold file output. Probably caused by swapped order of logs.

[approve ci autest 2]


unittesting vcfqc

This change is

Hello @Yu-jinKim! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file trendyqc/trend_monitoring/tests/test_multiqc.py:

Line 520:80: E501 line too long (81 > 79 characters)


Create back-end communication with MeiliSearch

Methods should be added and tested to ensure we can properly communicate with MeiliSearch from the back-end side of the plugin.

Client creation
Index CRUD
Documents CRUD

duplicate #9


SERIOUS BUG: wrong LegCharge.sorted flag in qr that could lead to wrong results

I was rewriting the np_conserved.qr() function for #199 and found the bug explained in the following.
bug description
The LegCharge has a flag .sorted, telling whether the .charges are lexsorted, with the convention that any code changing the charges should update that flag if needed. I found two points in code where this flag was not set correctly:

In the np_conserved.qr decomposition, the following lines  update the charges without resetting the sorted flag of the leg to False:

    if qtotal_Q is not None:
        qtotal_Q = a.chinfo.make_valid(qtotal_Q)  # convert to ndarray
        inner_leg.charges = a.chinfo.make_valid(inner_leg.charges - inner_leg.qconj * qtotal_Q)
    if inner_leg.qconj != inner_qconj:
        assert inner_qconj == -inner_leg.qconj
        # absorb sign into charge values
        inner_leg.charges = a.chinfo.make_valid(-inner_leg.charges)
        inner_leg.qconj = inner_qconj

a is completely blocked at this point, so the inner_leg = a.legs[0].copy() has sorted=True.
Shifting charges by qtotal in the first block leads to unsorted charges for Z_N, but not U(1) symmetries.
Taking negative values leads to unsorted charges for Z_N symmetries, N>=3 and U(1) symmetries.
So in both if blocks we would have to set inner_qconj.sorted = False.

Looking for further bugs of this type, I found that in the constructor LegCharge.__init__() , we have

        if self.block_number > 2:
            self.sorted = False
            self.bunched = False
        else:  # just one block: trivially sorted
            self.sorted = True
            self.bunched = True

Clearly the >2 should be a >=2 or >1...
Conditions to run in to the bugs
It only affects cases where we have symmetries at all - trivial symmetries are always fine.

The QR is affected depending on the parameters, if

non-trivial qtotal_Q is passed with Z_N symmetries, or
inner_qconj != a.legs[0].qconj.

This bug only affects block_number == 2. When we don't have symmetries, we have block_number == 1.  When we have symmetries, we typically have more than 2 blocks, except for the physical legs where we have only 2 states - in particular the spin-1/2 / fermion / hard-core boson, or when we have just a global Z_2 symmetry, i.e. parity. However, we almost universally construct the LegCharge with the from_qflat(), from_qind and from_qdict class methods in TeNPy. Those explicitly set the sorted & bunched flags directly after the initialization, so they are not affected. (Phew.)
The direct LegCharge(...) construction is only used by:

LegCharge.extend(), which in turn is only used by NearestNeighborModel.calc_H_MPO_from_bond, but there we have more than 2 blocks or only trivial blocks, so not affected.
purification_mps.convert_model_purification_canonical_conserve_ancilla_charge, i.e. using Purifications with PurificationMPS.from_infinite_T_canonical() with non-default conserve_ancilla_charge=True might be affected.
np_conserved.orthogonal_columns(). This is not yet used in the main branch, only in

What are the consequences of running into the bug?
Assuming you ran into the bug you might have gotten wrong results, since other code might assume the charges are sorted although they aren't. In particular, the LegCharge.is_blocked() just returns True when the flag is set.
This is checked for any function that needs to act block-diagonal on charge blocks, i.e. the matrix decompositions SVD, eigh, or further QR decompositions. Nevertheless, it's not really an issue for the matrix decompositions if the charges are not sorted as long as they are still "blocked" by charge, i.e. as long as there's no duplicate charge sectors. And while the bug 1 in the QR affects the sorting of the charges, it keeps the rows of the LegCharge unique, i.e. the new leg is still blocked!
On the other hand, contractions like tensordot, inner and outer are also not affected (because they are implemented without assuming sorted charges). They just preserve the wrong flags as long as you don't contract over the affected leg.
Which simulations could have run into the bug?
The second bug hardly affects anyone in a serious way, since one typically has either exactly 1 sector or more than 2 - with the exception of Z_2 symmetries. In any case, if you have just 2 symmetry sectors, the leg is blocked, no matter whether charges are sorted or not. And as said above, there's only very few places using the direct constructor without the from_... methods.
Regarding the bug in QR, there's a few places where QR is used:

The new QRBasedTEBDEngine. It's however not affected by the qconj-depended block, so only Z_N symmetries are problematic.
MPS.enlarge_chi, but it explicitly sorts charges afterwards, so not affected.
MPS.canonical_form_finite(), MPS.canonical_form_infinite2() . Also not affected by qconj block, only Z_N symmetries are problematic.
MPS.compress_svd() for finite MPS. Also not affected by qconj block, only Z_N symmetries are problematic.

Due to the consistent way we chose the qconj on the virtual legs of the MPS, we actually never ran into the if block flipping the qconj, so overall only ZN symmetries are affected, and only if you have a non-trivial qtotal in the unit cell - but for ZN symmetries, that is a strange thing to have in the first place

To summarize, the bug is actually not as bad as it looks at first glance.
There's a quite good chance that you never ran into the bug, and even if you did run into it, there's a good chance that the final results are still correct:  even if the charges are no longer sorted, they should still be blocked such that following matrix decompositions like SVD still work correctly.


Optionally allow centre to be specified in URL

This commit allows clients to specify their centre in the URL as well
as the body, for example:
POST /irc_entry/ambridge/event
Clients may still specify their centre in the body only; this will be
accepted by the server.
Clients may in future specify their centre in the URL only; this will be
rejected by the server as it conflicts with the schema. If the schema
changes, the server should accept it without any changes beyond
informing the server of a new schema.
If the centre specified in the URL does not match the centre specified
in the body, the server will reject it with a HTTP status code of
422 Unprocessable Entity as defined in RFC 4918.

Coverage decreased (-1.0%) to 97.855% when pulling 578c81e265ccedefb3e86aae084fd273d853b46c on centre-in-url into a033c898b7add626f3343ff3d0f2fcdf09190363 on master.


Use a WeakMap instead of mutating objects in NMF

NormalModuleFactory was mutating dependency objects if the unsafeCache option was set. This PR uses a WeakMap to cache dependencies and avoid the mutation (and de-opt).
What kind of change does this PR introduce?
refactoring
Did you add tests for your changes?
no
Does this PR introduce a breaking change?
no
What needs to be documented once your changes are merged?
nothing

Thanks


Correct typo in 'module aci_dhcp_relay_policy'

Typo causes failure of module aci_dhcp_relay_policy.

Thx, @marehler !


x/build: support trybot/slowbot runs with GOEXPERIMENT=...

The slowbots feature (e.g. setting "TRY=") is extremely helpful for developers who want to get expanded test coverage for their CLs (particularly with the more obscure GOOS/GOARCH combos). This was a big help for the team when rewriting the linker this last year.
Another feature that would make developers lives easier would be to allow the setting of GOEXPERIMENT=... in a Gerrit reply or comment, and then have that setting picked up and used when doing the builder runs.
Two cases that come to mind immediately are field tracking, e.g. GOEXPERIMENT=fieldtrack, which seems to break on a semi-regular basis due to lack of regular testing, and GOEXPERIMENT=regabi.  At the moment developers working on the register ABI project can do local testing by setting GOEXPERIMENT before running make.bash or all.bash, but there isn't an easy way for them to do testing over a wider set of builders.

Related: I've proposed #42681, which might help here.

In general, supported configurations should have builders running at every commit, not just when specific TryBots are requested: for example, linux-amd64-staticlockranking is its own builder.
Is there a reason that strategy cannot be employed for the other GOEXPERIMENT settings of interest?
https://github.com/golang/build/blob/master/dashboard/builders.go#L1674-L1688

@bcmills having a builder per viable GOEXPERIMENT (as with staticlockranking) would work for me.  Assuming that we decide to continue with GOEXPERIMENT in the first place.

One thing I should add: with some experiments it makes sense to have just a single builder (ex: field tracking, static lock ranking), but there could easily be experiments that we want to test on a wider set of architecture/OS combinations.

If there are configurations for which we want to run the standard tests to prevent regressions, those configurations should have builders even if we use some other mechanism instead of GOEXPERIMENT. (The Beyoncé Rule applies here.)

/cc @golang/release


Chore: make the bot comment about diff to be collapsed to ease reviews

Reference: https://github.com/jenkins-infra/charts/pull/882#issuecomment-784291726  (and idea from @jglick)
This PR makes the comment, from the bot showing the helmfile diffs in PRs, collapsed by default.

That's awesome, this will simplify merging PR


Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option

When adding a ResultRecipient to composable screen I'm getting error Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option
Here's the screenshot of generated Screen Destination

If ResultRecipient is removed, everythig compiles
app.gradle file
 compileOptions {
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8
  }
  kotlinOptions {
    jvmTarget = "1.8"
  }

Hi!
Hmmm 🤔
I need to take some time to analyse this properly, I have never seen it before.
I'll mark it also for v2.
Until then, try targetting java 11, that probably fixes it.

Hi!
Thanks for a reply.
Sadly targeting java 11 does not helped. I got same error.

Hello! I stumbled upon the same issue and after switching to java 11 I had to invalidate the caches of Android Studio, that fixed it.

Hello! I stumbled upon the same issue and after switching to java 11 I had to invalidate the caches of Android Studio, that fixed it.

Thank you! Now it works perfectly! :)

It seems like according to: https://developer.android.com/build/jdks#compileSdk java 11 is only supported on Android api 32 and above, we need to support from api level 21... would it be possible to use
    sourceCompatibility = JavaVersion.VERSION_1_8
    targetCompatibility = JavaVersion.VERSION_1_8

to compile this library?

We are using this library at work and our min sdk is 24. We’re also targeting Java 11 with no issue.
I will be checking this later on, but for now I’m not considering this urgent since I believe it works with all min sdk that compose also requires.

But @dave08 if you find any issue with your min sdk please do let me know 🙂

@raamcosta Compose supports from sdk 21...

Hi guys!
After some tests I did find that my understanding of these jvm targets was off, apologies 🙏
1.9.56 is cooking where this should be fixed. Thank you for reporting 🙇

@raamcosta
Can you share your analysis of JVM 17
We are using following configuration in our app
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
And our app support is 21 & above. And the app seems to be working fine.

Are you using desugaring? It seems to be related.
To be completely honest, I am not sure I fully understand all the implications here, but I was able to reproduce the reported issue and then I was able to fix it in the library.


How to eliminate deadlock problem?

In my case, large number of concurrent requests are needed.
I find one parameter which not used now is max_context in DSStateManagerConfig.
What I want to ask is, can I modify this parameter to eliminate deadlock?

Hi @BaiStone2017, thank you for your question.
Unfortunately, max_context won't help solving the issue. You can limit the number of sequences that the inference engine maintains by setting another parameter (max_ragged_sequence_count). This will reduce the risk of the deadlock but the performance may decline significantly.


Coherence Operator 3.1.0 pod not starting

Hello Jonathan,
I tried installing Coherence-operator in another namespace coherence-demo-ns
However i am getting Error.
ubuntu@acsokecluster2:~/cohexample$ kubectl logs coherence-operator-6d45cd5556-8spwr -n coherence-demo-ns
2020-10-03T18:24:59.637Z        INFO    operator        Operator Version: 3.1.0
2020-10-03T18:24:59.638Z        INFO    operator        Operator Build Date: 2020-09-28T10:05:00Z
2020-10-03T18:24:59.638Z        INFO    operator        Operator Git Commit: b479c0812e9015c8fd3bac0f4fbc3ff6db029c35
2020-10-03T18:24:59.638Z        INFO    operator        Operator Coherence Image: oraclecoherence/coherence-ce:20.06.1
2020-10-03T18:24:59.638Z        INFO    operator        Operator Utils Image: ghcr.io/oracle/coherence-operator:3.1.0-utils
2020-10-03T18:24:59.638Z        INFO    operator        Go Version: go1.14.9
2020-10-03T18:24:59.638Z        INFO    operator        Go OS/Arch: linux/amd64
2020-10-03T18:24:59.655Z        INFO    operator        Ensuring operator v1 CRDs are present
2020-10-03T18:24:59.794Z        INFO    operator        Loading operator CRD yaml from 'crd_v1.yaml'
2020-10-03T18:24:59.902Z        INFO    operator        Updating operator CRD 'coherences.coherence.oracle.com'
2020-10-03T18:25:00.154Z        INFO    setup   Operator will watch single namespace: coherence-demo-ns
2020-10-03T18:25:00.560Z        INFO    controller-runtime.metrics      metrics server is starting to listen    {"addr": ":8080"}
2020-10-03T18:25:00.564Z        ERROR   setup    unable to create webhook certificate controller        {"controller": "Certs", "error": " unable to setup and fill the webhook certificates: failed to get webhook certificate secret coherence-webhook-server-cert: secrets "coherence-webhook-server-cert" is forbidden: User "system:serviceaccount:coherence-demo-ns:coherence-operator" cannot get resource "secrets" in API group "" in the namespace "operator-test"", "errorVerbose": "secrets "coherence-webhook-server-cert" is forbidden: User "system:serviceaccount:coherence-demo-ns:coherence-operator" cannot get resource "secrets" in API group "" in the namespace "operator-test"\nfailed to get webhook certificate secret coherence-webhook-server-cert\ngithub.com/oracle/coherence-operator/controllers/webhook.(*CertReconciler).ReconcileResources\n\t/home/runner/work/coherence-operator/coherence-operator/controllers/webhook/webhook_controller.go:137\ngithub.com/oracle/coherence-operator/controllers/webhook.(*CertReconciler).SetupWithManager\n\t/home/runner/work/coherence-operator/coherence-operator/controllers/webhook/webhook_controller.go:64\nmain.execute\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:159\nmain.glob..func1\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:53\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887\nmain.main\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:87\nruntime.main\n\t/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/proc.go:203\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/asm_amd64.s:1373\n unable to setup and fill the webhook certificates\ngithub.com/oracle/coherence-operator/controllers/webhook.(*CertReconciler).SetupWithManager\n\t/home/runner/work/coherence-operator/coherence-operator/controllers/webhook/webhook_controller.go:65\nmain.execute\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:159\nmain.glob..func1\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:53\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887\nmain.main\n\t/home/runner/work/coherence-operator/coherence-operator/main.go:87\nruntime.main\n\t/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/proc.go:203\nruntime.goexit\n\t/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/asm_amd64.s:1373"}
github.com/go-logr/zapr.(*zapLogger).Error
/home/runner/go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128
main.execute
/home/runner/work/coherence-operator/coherence-operator/main.go:160
main.glob..func1
/home/runner/work/coherence-operator/coherence-operator/main.go:53
github.com/spf13/cobra.(*Command).execute
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846
github.com/spf13/cobra.(*Command).ExecuteC
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950
github.com/spf13/cobra.(*Command).Execute
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
main.main
/home/runner/work/coherence-operator/coherence-operator/main.go:87
runtime.main
/opt/hostedtoolcache/go/1.14.9/x64/src/runtime/proc.go:203

The YAML FILE THAT is used is the Older yaml files with which we did the initial deployment. HELM is not upgrading the operator.
coh-opt.txt
I tried helm install set image  .. the operator still remains 3.0.2

You cannot use the old v3.0.2 Helm chart with the v3.1.0 Operator image, they are not compatible.

Can you provide fresh kubernetes deployment yaml file.. we can download from external repos.. please provide new yaml files to deploy operator on-premise


Jenkins deployment information using the jenkins-hygieia-plugin.

How to fetch a jenkins deployment from the hygieia plugin? when I hit the
http://hygieiaApiUrl/deploy/application/api/json , it results in 404 error.
What is the hygieiaApiUrl?
How to successfully set up the hygieia plugin to get the information about deployment.
Thanks in advance.

@Satheesh-b
Please refer https://github.com/capitalone/Hygieia/issues/884 for info on configuring the plugin and pipeline.

Thank you so much for the prompt reply. But I have a general doubt, that how the data is stored in the collector_items collection in the MongoDB? Should I have to write a collector to get the response from plugin and store in DB? Or it is done from plugin itself?

@Satheesh-b If you use the plugin, you don't need the jenkins collector. The former is push based, the later pull.


Could not find com.github.HairySnow.lancet:lancet-plugin:1.0.3

请帮忙解答，谢谢～～，在根目录build.gradle中添加了
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'com.github.HairySnow.lancet:lancet-plugin:1.0.3'
报错：

Could not resolve all artifacts for configuration ':classpath'.
Could not find com.github.HairySnow.lancet:lancet-plugin:1.0.3.
Searched in the following locations:
- file:/Users/lingsida/.m2/repository/com/github/HairySnow/lancet/lancet-plugin/1.0.3/lancet-plugin-1.0.3.pom
- http://maven.aliyun.com/nexus/content/repositories/google/com/github/HairySnow/lancet/lancet-plugin/1.0.3/lancet-plugin-1.0.3.pom
- http://maven.aliyun.com/nexus/content/groups/public/com/github/HairySnow/lancet/lancet-plugin/1.0.3/lancet-plugin-1.0.3.pom
- http://mvnrepo.alibaba-inc.com/mvn/repository/com/github/HairySnow/lancet/lancet-plugin/1.0.3/lancet-plugin-1.0.3.pom
- https://jcenter.bintray.com/com/github/HairySnow/lancet/lancet-plugin/1.0.3/lancet-plugin-1.0.3.pom
Required by:
project :

Possible solution:

Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

加一下这两个仓库试试
mavenCentral()
maven { url 'https://jitpack.io' }


🔄 synced file(s) with neurobagel/workflows

synced local file(s) with neurobagel/workflows.

Changed files

synced local directory .github/workflows/ with remote directory template_workflows/project_automation/

This PR was created automatically by the repo-file-sync-action workflow run #9086409481

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
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 97.976%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
726

Relevant Lines:
741

💛  - Coveralls


Add new projects to circe org list

Codecov Report

Merging #746 into master will decrease coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #746      +/-   ##
==========================================
- Coverage   86.73%   86.64%   -0.09%
==========================================
  Files          73       73
  Lines        2299     2299
  Branches       90       91       +1
==========================================
- Hits         1994     1992       -2
- Misses        305      307       +2

Impacted Files
Coverage Δ

...d/src/main/scala/io/circe/NonEmptySeqDecoder.scala
91.66% <0%> (-8.34%)
:arrow_down:

.../core/shared/src/main/scala/io/circe/Decoder.scala
90.03% <0%> (-0.35%)
:arrow_down:

Continue to review full report at Codecov.

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


Streamline Strategy Implementation and Introduce Backtesting

Fixes #231
Changes proposed in this PR:

WIP

Please hold off on further work on this until the pre-requisites are done.
Note that_this_ PR already conflicts with PR https://github.com/oceanprotocol/pdr-backend/pull/275
I'd really prefer if we can wait until next week to do this stuff. I have a strong idea if how it could be, given that I implemented the simulation code.
This week there are plenty of other thing we need to get done : pdr-backend has several bugs (reported as issues) and there are work in Predictoor DF too. Thanks for your patience.


[FEATURE] Adding hamburger menu in the nav bar to make it better responsive

Is this a unique feature?

[X] I have checked "open" AND "closed" issues and this is not a duplicate

Is your feature request related to a problem/unavailable functionality? Please describe.
The current navbar feels plain and lacks visual appeal, so I'll be upgrading its design for a more modern and attractive look. This includes adding better styling, such as smooth transitions and hover effects, to enhance the user experience. To improve responsiveness, I’ll incorporate a hamburger menu that activates on mobile devices and small screens, ensuring seamless navigation across all screen sizes. These changes will create a more dynamic and visually engaging navbar while maintaining its functionality across different devices.
Proposed Solution
I'm enhancing the navbar by adding a sleek hamburger menu for mobile screens, along with improved hover effects and refined styling for a more polished user experience across devices.
Screenshots
No response
Do you want to work on this issue?
Yes
If "yes" to above, please explain how you would technically implement this
No response

ok sure


Cluster race conditions

Hi!
I'm using multiple Apache2 with mod_md where the certstore is shared using NFS. This does work great in general, but sometimes there are rare race conditions when 2 or more servers are trying to renew the certs at the same time.
This is the log of an erroring server while another was successful
 [Fri Jan 15 07:48:30.752230 2021] [md:debug] [pid 19446:tid md_reg.c(1121): (20014)Internal error (specific information not available): example.com: staging done
 [Fri Jan 15 07:48:30.753136 2021] [md:error] [pid 19446:tid (20014)Internal error (specific information not available): AH10056: processing example.com: Unable to retrieve rsa certificate chain.
 [Fri Jan 15 07:48:30.753196 2021] [md:info] [pid 19446:tid AH10057: example.com: encountered error for the 2. time, next run in 9 seconds
 [Fri Jan 15 07:48:30.762813 2021] [md:debug] [pid 19446:tid mod_md_drive.c(219): AH10107: next run in 9 seconds
 [Fri Jan 15 07:48:32.372186 2021] [mpm_prefork:notice] [pid 19444:tid AH00169: caught SIGTERM, shutting down
 [Fri Jan 15 07:54:35.740563 2021] [md:error] [pid 19555:tid failed to load JSON file /mnt/nfs/mod_md/ssl/md_store.json: '[' or '{' expected near end of file (line 1:0)
 [Fri Jan 15 07:54:35.740832 2021] [md:error] [pid 19555:tid (22)Invalid argument: init fs store at /mnt/nfs/mod_md/ssl
 [Fri Jan 15 07:54:35.740845 2021] [md:error] [pid 19555:tid (22)Invalid argument: AH10046: setup store for /mnt/nfs/mod_md/ssl
 [Fri Jan 15 07:54:35.740850 2021] [md:error] [pid 19555:tid (22)Invalid argument: AH10072: setup md registry
AH00016: Configuration Failed

It would be great to either add some kind of check, if there's already a folder inside the staging directory. If so, then backoff for a small amount of random time and restart the renew process (including check if still necessary - in case the cert was renewed by another server already).
If this is too much work in the current code, you could also introduce a new event for MDMessageCmd, e.g. renewing which indicates that a renewal process is about to start. Then the user could add some logic to the script/program his or herself.

Hmm, I see. I like the idea. MDMessageCmd or something like that could be called on a starting renewal and that a != 0 return code would indicate "no, do not renew this now".

Hmm, I see. I like the idea. MDMessageCmd or something like that could be called on a starting renewal and that a != 0 return code would indicate "no, do not renew this now".

Jip...exactly. It then still needs to check if the cert has been renewed by another node on it's next own cycle to pick up the changes (e.g. trigger MDNotifyCmd).
Unfortunately, i'm not good at coding c, so i can just help with the logic. Anyways, thanks for the quick response! :rocket:

Jip...exactly. It then still needs to check if the cert has been renewed by another node on it's next own cycle to pick up the changes (e.g. trigger MDNotifyCmd).
Unfortunately, i'm not good at coding c, so i can just help with the logic. Anyways, thanks for the quick response! :rocket:

Hi,
I've tested some modifications concerning this issue.
With the following changes the described behaviour seems to be possible:
diff --git a/src/mod_md.c b/src/mod_md.c
index 5e27daf..5024316 100644
--- a/src/mod_md.c
+++ b/src/mod_md.c
@@ -141,6 +141,7 @@ typedef struct {
 } notify_rate;

 static notify_rate notify_rates[] = {
+    { "renewing", apr_time_from_sec(MD_SECS_PER_HOUR) }, /* once per month */
     { "renewed", apr_time_from_sec(28 * MD_SECS_PER_DAY) }, /* once per month */
     { "installed", apr_time_from_sec(MD_SECS_PER_DAY) }, /* once per day */
     { "expiring", apr_time_from_sec(MD_SECS_PER_DAY) },     /* once per day */
diff --git a/src/mod_md_drive.c b/src/mod_md_drive.c
index c45ef61..8182287 100644
--- a/src/mod_md_drive.c
+++ b/src/mod_md_drive.c
@@ -108,6 +108,14 @@ static void process_drive_job(md_renew_ctx_t *dctx, md_job_t *job, apr_pool_t *p
         ap_log_error( APLOG_MARK, APLOG_DEBUG, 0, dctx->s, APLOGNO(10052)
                      "md(%s): state=%d, driving", job->mdomain, md->state);

+        rv = md_event_raise("renewing", md->name, job, result, ptemp);
+        if (APR_SUCCESS != rv) {
+                ap_log_error(APLOG_MARK, APLOG_INFO, 0, dctx->s, APLOGNO(10060)
+                             "%s: event-handler for 'renewing' event failed",
+                             job->mdomain);
+                goto expiry;
+        }
+
         if (!md_reg_should_renew(dctx->mc->reg, md, dctx->p)) {
             ap_log_error( APLOG_MARK, APLOG_DEBUG, 0, dctx->s, APLOGNO(10053)
                          "md(%s): no need to renew", job->mdomain);

@icing What do you think about this?
If you are fine with it, I could create a PR.
Regards,
Andreas

Hi,
I've tested some modifications concerning this issue.
With the following changes the described behaviour seems to be possible:
diff --git a/src/mod_md.c b/src/mod_md.c
index 5e27daf..5024316 100644
--- a/src/mod_md.c
+++ b/src/mod_md.c
@@ -141,6 +141,7 @@ typedef struct {
 } notify_rate;

 static notify_rate notify_rates[] = {
+    { "renewing", apr_time_from_sec(MD_SECS_PER_HOUR) }, /* once per month */
     { "renewed", apr_time_from_sec(28 * MD_SECS_PER_DAY) }, /* once per month */
     { "installed", apr_time_from_sec(MD_SECS_PER_DAY) }, /* once per day */
     { "expiring", apr_time_from_sec(MD_SECS_PER_DAY) },     /* once per day */
diff --git a/src/mod_md_drive.c b/src/mod_md_drive.c
index c45ef61..8182287 100644
--- a/src/mod_md_drive.c
+++ b/src/mod_md_drive.c
@@ -108,6 +108,14 @@ static void process_drive_job(md_renew_ctx_t *dctx, md_job_t *job, apr_pool_t *p
         ap_log_error( APLOG_MARK, APLOG_DEBUG, 0, dctx->s, APLOGNO(10052)
                      "md(%s): state=%d, driving", job->mdomain, md->state);

+        rv = md_event_raise("renewing", md->name, job, result, ptemp);
+        if (APR_SUCCESS != rv) {
+                ap_log_error(APLOG_MARK, APLOG_INFO, 0, dctx->s, APLOGNO(10060)
+                             "%s: event-handler for 'renewing' event failed",
+                             job->mdomain);
+                goto expiry;
+        }
+
         if (!md_reg_should_renew(dctx->mc->reg, md, dctx->p)) {
             ap_log_error( APLOG_MARK, APLOG_DEBUG, 0, dctx->s, APLOGNO(10053)
                          "md(%s): no need to renew", job->mdomain);

@icing What do you think about this?
If you are fine with it, I could create a PR.
Regards,
Andreas

@root360-AndreasUlm thank you. Just tested the patch and it's working :rocket:
Example with script exit 1:
 [Fri Jan 15 14:34:38.718730 2021] [md:debug] [pid 66749:tid mod_md_drive.c(205): AH10055: md watchdog run, auto drive 1 mds
 [Fri Jan 15 14:34:38.719352 2021] [md:debug] [pid 66749:tid mod_md_drive.c(109): AH10052: md(example.com): state=1, driving
 [Fri Jan 15 14:34:38.725083 2021] [md:error] [pid 66749:tid (20014)Internal error (specific information not available): md[example.com] problem[urn:org:apache:httpd:log:AH10109:] detail[MDMessageCmd /usr/local/bin/MDMessageCmd failed with exit code 1.]
 [Fri Jan 15 14:34:38.725170 2021] [md:info] [pid 66749:tid AH10060: example.com: event-handler for 'renewing' event failed
 [Fri Jan 15 14:34:38.743296 2021] [md:debug] [pid 66749:tid mod_md_drive.c(227): AH10107: next run in 11 hours 59 minutes 59 seconds

@root360-AndreasUlm thank you. Just tested the patch and it's working :rocket:
Example with script exit 1:
 [Fri Jan 15 14:34:38.718730 2021] [md:debug] [pid 66749:tid mod_md_drive.c(205): AH10055: md watchdog run, auto drive 1 mds
 [Fri Jan 15 14:34:38.719352 2021] [md:debug] [pid 66749:tid mod_md_drive.c(109): AH10052: md(example.com): state=1, driving
 [Fri Jan 15 14:34:38.725083 2021] [md:error] [pid 66749:tid (20014)Internal error (specific information not available): md[example.com] problem[urn:org:apache:httpd:log:AH10109:] detail[MDMessageCmd /usr/local/bin/MDMessageCmd failed with exit code 1.]
 [Fri Jan 15 14:34:38.725170 2021] [md:info] [pid 66749:tid AH10060: example.com: event-handler for 'renewing' event failed
 [Fri Jan 15 14:34:38.743296 2021] [md:debug] [pid 66749:tid mod_md_drive.c(227): AH10107: next run in 11 hours 59 minutes 59 seconds

Looks great! Please make a PR for this, if you feel like. Probably we want to make sure that such a cancelled run is not counted as an error and that the retry mechanism is more lazy with new attempts.

Looks great! Please make a PR for this, if you feel like. Probably we want to make sure that such a cancelled run is not counted as an error and that the retry mechanism is more lazy with new attempts.

@icing What do you mean by retry being more lazy?

@icing What do you mean by retry being more lazy?

I started adding support for some ACME errors to immediately trigger the largest retry interval (1 day now). When the input values are rejected by the ACME server, it does not make sense to run more often. Most likely, the configuration values are not correct.
In this case I wonder if the aborted renew will trigger the retry mechanism with 1 minute, 2min, ... and if that is good or bad. But I am not sure. Today I lean towards good. ;-) So, please ignore my statement.

I started adding support for some ACME errors to immediately trigger the largest retry interval (1 day now). When the input values are rejected by the ACME server, it does not make sense to run more often. Most likely, the configuration values are not correct.
In this case I wonder if the aborted renew will trigger the retry mechanism with 1 minute, 2min, ... and if that is good or bad. But I am not sure. Today I lean towards good. ;-) So, please ignore my statement.

@icing created PR with the patch.
I also tried to find all documentation and unit tests.
I couldn't get the pebble based test setup up and running thus haven't tested the unit test change.
But as far as I understand the pytest scripts it should work.

@icing created PR with the patch.
I also tried to find all documentation and unit tests.
I couldn't get the pebble based test setup up and running thus haven't tested the unit test change.
But as far as I understand the pytest scripts it should work.

Fixed test cases, release as v.2.3.6 beta.

Fixed test cases, release as v.2.3.6 beta.


Home dir in Makefiles

Was there a specific reason that lines https://github.com/ladislas/Bare-Arduino-Project/blob/master/Makefile-Linux.mk#L8 and https://github.com/ladislas/Bare-Arduino-Project/blob/master/Makefile-OSX.mk#L8 are not:
PROJECT_DIR = ~/MyArduinoProject

Thanks!

Found out in the docs.


Permission denied to connect to unix:/tmp/shell.sock?

2017/07/12 01:18:53 [crit] 8745#8745: *354 connect() to unix:/tmp/shell.sock failed (13: Permission denied), context: ssl_certificate_by_lua*, client: XXX.XXX.XXX.XXX, server: <IP_ADDRESS>:443

2017/07/12 01:18:53 [error] 8745#8745: *354 [lua] lets_encrypt.lua:40: issue_cert(): auto-ssl: dehydrated failed: env HOOK_SECRET=abb47edea45f9f2177f69ab906ece2f4ab949aa11317edbbd66c5d451189c083 HOOK_SERVER_PORT=8999 /usr/local/bin/resty-auto-ssl/dehydrated --cron --no-lock --domain eraisawesome.com --challenge http-01 --config /etc/resty-auto-ssl/letsencrypt/config --hook /usr/local/bin/resty-auto-ssl/letsencrypt_hooks status: -2 out: nil err: permission denied, context: ssl_certificate_by_lua*, client: XXX.XXX.XXX.XXX, server: <IP_ADDRESS>:443`

2017/07/12 01:18:53 [error] 8745#8745: *354 [lua] ssl_certificate.lua:92: issue_cert(): auto-ssl: issuing new certificate failed: dehydrated failure, context: ssl_certificate_by_lua*, client: XXX.XXX.XXX.XXX, server: <IP_ADDRESS>:443`

2017/07/12 01:18:53 [error] 8745#8745: *354 [lua] ssl_certificate.lua:256: auto-ssl: could not get certificate for eraisawesome.com - using fallback - failed to get or issue certificate, context: ssl_certificate_by_lua*, client: XXX.XXX.XXX.XXX, server: <IP_ADDRESS>:443

Hello! I installed lua-resty-auto-ssl on my test server, but was unable to get it working. I am getting the above error, anybody have an idea as to why? Thank you very much!

Hey there. I took the liberty of reformatting your issue a bit, so it's more easily readable. It's not totally clear to me yet, why auto-ssl is failing in your setup. Can you please answer the following questions?

What are the permissions (ls -l command) of /tmp/shell.sock while nginx is running?
Which user is your nginx master running as? Which one for the the workers?
Is SELinux enabled; if yes, are there any entries in /var/log/audit/audit.log about shell.sock?

Hey Luto,
Thanks for formatting my question for me, I wasn't sure how to do that.
I changed the nginx.conf from
user www-data
to
user root
Just for testing purposes and everything worked perfectly! Obviously this won't fly for production, but this definitely lets me know it's something to do with permissions...
As far as your questions go--

I initially thought it might be a permissions thing on /tmp/shell.sock so I tried doing a chmod 775 on it--right now it's srwxr-xr-x 1 nobody no group
I am not sure what you mean by nginx master vs workers, this is only 1 server. (I'm new to nginx, sorry!)
I don't have a /audit/ directory under /var/log/

I ran a chown www-data /tmp/shell.sock and the problem seems to have disappeared. Not sure what the security implications are for changing the permissions on that file...but at least the error message disappeared and certificates are creating by the www-data user!
Thanks @luto


Format of Nodes

Can You please write more on readme file and format of nodes

I added that quick tidbit at the bottom of the readme.  I will try to add more, but in the meantime, lmk if you have any questions


Connector auth failed and casue browser crash on Mac M1 chip

Created https://github.com/Azure/azure-sdk-tools/issues/4839 for tracking


How to change font color

I have a dark theme website right now, but when I try and use  everything is dark text on my dark background. If I try and add a tailwind class of text-gray-100, then it changes most of the text, but none of the heading or the code blocks. Any way to fix this?

Here is an example how to change the text color on the default text. You will need to adapt it to add the correct classes based on where you get the theme from:

<slot />

Then configure it in the library:

<SvelteMarkdown
	source={"Hello world"}
	renderers={{
		text: Text
       }}
/>


I have an error when I'm running my bit platform app

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
when I wanna run my application on webassembly I have an error
my project has 4+ layer more
Gym.AppServices
Gym.DB
Gym.DeviceService
Gym.Messaging
I attach photo of error
I hope someone help me

Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0234	The type or namespace name 'ApplicationParts' does not exist in the namespace 'Microsoft.AspNetCore.Mvc' (are you missing an assembly reference?)	Gym.Client.Web	E:\Project_WEB\GymRollCall2\Gym2\Gym\src\Client\Web\obj\Debug\net7.0\Gym.Client.Web.MvcApplicationPartsAssemblyInfo.cs	14	Active
.NET Version
No response
Anything else?
No response

Hi Dear @AbbasKashi69
Please provide more information (as much as possible)
Which version of Visual Studio and dotnet?
Which project template? which version?

sure
Microsoft Visual Studio Community 2022 (64-bit) - Current
Version 17.5.4
dot net 7.0
bit platform admin ui 4.9.9

actually I can send to you my project and you test it.
are you ok??

Yes, that's fine, you could send it to my telegram account in 7zip format
Close the VS and run Clean.bat in order to reduce the file size