Upgrade to RxJava 2

Is there any intention to upgrade to RxJava 2? Looking at the dependencies, there are 3 libraries which use Rx: RxLifecycle, RxAndroid, and GithubSdk. RxLifecycle and RxAndroid have RxJava 2 versions, but GithubSdk doesn't. However, @Meisolsson is the maintainer of the library and appears to be part of the core team working on this project. I'm not sure whether such an issue should be brought up on the GithubSdk page as well so if it should please say.
I'm interested on working on such a change, but as noted in the contributing guidelines, I'm bringing up an issue to ensure that my efforts are not wasted.

As of recent I've not had enough time to work on this to even consider the change. It does sound interesting, if you have the time i'd be happy to have the contribution.


Add support for reading frontmatter in TOML

Currently the parser only supports frontmatter in yaml format:
---
title: "my title"
---

For compatability with other SSGs it would be cool to also support TOML format in the frontmatter
+++
title= "my title"
+++

The two are equivalent, but the toml is surrounded by +++ instead of ---.
As an example Zola SSG (getzola.org) supports both.

Thanks for opening this. Could you talk a bit about what you had in mind when you say "compatibility" with other SSGs? Just making it easier to move from another SSG to Doctave? Or did you have a specific case/workflow in mind?
This seems like a fine addition, but I think realistically it's going to be a bit lower priority compared to some larger features and important fixes coming up.

The motivation was that I have a bunch of markdown files that are currently used in Zola. Zola supports reading toml files and these files were originally specified with toml frontmatter. In order to use these files with Doctave, Doctave would need to support reading toml frontmatter. However, I ended up migrating these files to yaml since Zola supports both formats.
Fully agree that this should be a lower priority enhancement, as there are workarounds available.


Feat/thumbor bucket in url

Hello,
currently when using Thumbor-Style URLs (which is the only way to get readable URLs for SEO) you cannot specify the bucket which will get used. Currently always the first one provided via Env-Settings will be used.
My suggestion is to check if the URL contains any allowed bucket, and if it does, use that one. This would mean one can - but doesn't need to - add the bucket to the URL. If left empty it would not break existing setups.
e.g:
SOURCE_BUCKETS: "test1, test2"
Request: "/fit-in/my-image.jpg"
This would currently load "my-image.jpg" from the bucket "test1".
With my PR you can do "/fit-in/test2/my-image.jpg" which would load from test2.
Checklist

[x] :wave: I have added unit tests for all code changes.
[x] :wave: I have run the unit tests, and all unit tests have passed.
[ ] :warning: This pull request might incur a breaking change.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@bennet-esyoil thanks for your idea and submission, we will review it and let you know

@dougtoppin Thanks for your comment. Is there any chance to get any ETA since this is quite important for our current goal?

I'd like to point to this article and the security implications of having the S3 bucket name in the URL for everyone to see<EMAIL_ADDRESS>

I'd like to point to this article and the security implications of having the S3 bucket name in the URL for everyone to see<EMAIL_ADDRESS>
Yes, this would apply for the base64 encoded version as well. Security through obfuscation :upside_down_face: . It should be best practice to deploy an instance of the serverless-image-handler for each bucket without exception anyways. Having the bucket specified in the URL or in the B64 request data is just a quick way for us to switch between different buckets depending on some configuration.

Update:
https://aws.amazon.com/de/about-aws/whats-new/2024/05/amazon-s3-no-charge-http-error-codes/

Support for bucket specification in Thumbor-style requests was included in v6.2.6. Thanks for your contributions :)


new number of files column in statistics tab

Add number of files column in the Checker statistics tab to show in how many individual source files were the bug found

Does this really adds value over how many times a certain kind of bug was found?

This was a user request. I guess it tells the user how many individual source files are affected by the given bug. So is it focused over a small set of files or scattered to a large fileset.

This would be an expensive query, discuss further.

As we discussed personally we do not want to do this because it would be a very expensive query.


Application not able to start "Error: You must pass your PostHog project's api key."

I have checked the following:

[X] I use the newest version of bruno.
[X] I've searched existing issues and found nothing related to my issue.

Describe the bug
Application is not able to start.
bruno version: 1.35
.bru file to reproduce the bug
No response
Screenshots/Live demo link

Hi, thanks for reporting. Would you be able to share a video of this bug?

Looks like the same problem as #3570 and #3571

This has been fixed please upgrade to 1.35.1.
I am closing this issue. Please feel free to reopen if the issue persists


Bump Go Submariner dependencies to 0.4.0-rc3

This adds to #479.

I extended it a bit to include lighthouse, etc: https://github.com/submariner-io/submariner-operator/pull/485


update ps example

https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/3040

@nenonix @JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@CarolynRowe PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

@tonysmit can you please review this change. It looks ok, but the phone number and the user email address should be fictitious.


[RiskIQ] Certified connector open source publishing

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

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

Please let me know if there's anything I can do to help this along.

This is completed.


Right / Left swipe should also dismiss the image

I think this would make the user experience better. Right now the angle is too big for dismissing images. You could add an angle propery between 0 and 90° (mirrored on both swipe direction sides).

Since it's possible to display multiple images, don't you think the left/right swipe to dismiss will interfere with swiping to see other images? PRs welcome however 😉

i think there could be a single image mode that allows this as in some experiences the user won't expect to be able to see multiple images

I agree with this, I was wondering why flicking away a single image to the side didn't work. I think the current behavior is great, but when viewing a single image I personally  think it'd be better if the user could also dismiss sideways.

Ok. Bumping this in the priorities


Ansible - How to overwrite default variable value.

Hi
I'm trying to deploy NodeJS app with Nginx as reverse proxy.
For Nginx I wrote template which dynamically takes Server IP Value

I am trying to overwrite this value with my NodeJS Server IP using --extra-vars/ -e. But value is not changing, Value of Nginx IP is being copied.
Here are commands I'm trying to execute
$ ansible-playbook -i inventory/ -e "ansible_default_ipv4.address = <IP_ADDRESS>" webserver.yml
$ ansible-playbook -i inventory/ --extra-vars "ansible_default_ipv4.address = <IP_ADDRESS>" webserver.yml
For both commands value is not changing. Please check whether my command is right or wrong.
Please tell me where I am going wrong.
Thanks & Regards
Arun Kumar

sorry we can't override default variable value

define custom variable and pass your value from anywhere i.e playbook or commandline

@siva0139
Thank you for reply.
I did the same.


Use Angular 14 Typed Forms

Angular 14 introduces Typed Forms:  https://angular.io/guide/typed-forms
If we were to use these in our code we'd get better type-checking and hopefully better code quality.
The current code uses the default UntypedForm in the few places where Forms are actually defined - these need converting to proper Typed versions, and there are probably other places in the code where explicit Form definitions could be introduced.

Depends on #236 being completed first.
See also MauroDataMapper/mdm-ui#742 for a similar issue.


OpenID Connect OAuth Issue (Authentik)

I got the following exception when I try to login via OIDC with Authentik:

powerdns_admin                 | [2023-03-02 10:39:30,119] [app.py:1449] ERROR - Exception on /oidc/authorized [GET]
powerdns_admin                 | Traceback (most recent call last):
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
powerdns_admin                 |     response = self.full_dispatch_request()
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/flask/app.py", line 1519, in full_dispatch_request
powerdns_admin                 |     rv = self.handle_user_exception(e)
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/flask/app.py", line 1517, in full_dispatch_request
powerdns_admin                 |     rv = self.dispatch_request()
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/flask/app.py", line 1503, in dispatch_request
powerdns_admin                 |     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
powerdns_admin                 |   File "/app/powerdnsadmin/services/oidc.py", line 35, in oidc_authorized
powerdns_admin                 |     token = oidc.authorize_access_token()
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/authlib/integrations/flask_client/apps.py", line 105, in authorize_access_token
powerdns_admin                 |     userinfo = self.parse_id_token(token, nonce=state_data['nonce'], claims_options=claims_options)
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/authlib/integrations/base_client/sync_openid.py", line 66, in parse_id_token
powerdns_admin                 |     claims = _jwt.decode(
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/authlib/jose/rfc7519/jwt.py", line 96, in decode
powerdns_admin                 |     data = self._jws.deserialize_compact(s, load_key, decode_payload)
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/authlib/jose/rfc7515/jws.py", line 101, in deserialize_compact
powerdns_admin                 |     algorithm, key = self._prepare_algorithm_key(jws_header, payload, key)
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/authlib/jose/rfc7515/jws.py", line 254, in _prepare_algorithm_key
powerdns_admin                 |     key = key(header, payload)
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/authlib/integrations/base_client/sync_openid.py", line 38, in load_key
powerdns_admin                 |     jwk_set = JsonWebKey.import_key_set(self.fetch_jwk_set())
powerdns_admin                 |   File "/usr/lib/python3.10/site-packages/authlib/jose/rfc7517/jwk.py", line 55, in import_key_set
powerdns_admin                 |     raise ValueError('Invalid key set format')
powerdns_admin                 | ValueError: Invalid key set format

Thats the payload of the JWT token i received from Authentik:
{
    "iss": "https://sso.example.com/application/o/powerdns-admin/",
    "sub": "12345",
    "aud": "12345",
    "exp":<PHONE_NUMBER>,
    "iat":<PHONE_NUMBER>,
    "auth_time":<PHONE_NUMBER>,
    "acr": "goauthentik.io/providers/oauth2/default",
    "amr": [
        "user"
    ],
    "email"<EMAIL_ADDRESS>    "email_verified": true,
    "id": 123,
    "name": "Max Mustermann",
    "given_name": "Max Mustermann",
    "family_name": "",
    "preferred_username": "mmustermann",
    "nickname": "mmustermann",
    "groups": [
        "Admin",
        "User",
        "PowerDNS"
    ]
}

@MDXDave please provide environmental details such as how the app was deployed (Docker or otherwise), what version you're running, etc...

@AzorianMatt I use the latest docker version with postgres:
powerdnsadmin/pda-legacy:latest

From a quick review, i think claims is the key here.
I'll have a look more indepth later, but a starting part would be to look specifically how claims are handled from this provider.
They return groups, but no claims property.

Ref : https://github.com/lepture/authlib/blob/169c7dcfc47478c8d55553cc95fb0f5578162b77/authlib/integrations/base_client/sync_openid.py#L66

fetch_jwk_set I think we have jtwks issues with this as well.

@MDXDave - Based on the authentik domain, please try get the jwks url and enter it in manually to the configuration.
Ref : https://goauthentik.io/integrations/sources/oauth/#jwks
Go to {your domain/instance of authentik}/.well-known/openid-configuration < just to make sure you've got the correct path.
If good, then go to {same as above}/.well-known/jwks.json < and see if you get data back.
If good, add the above jwks url to the admin config and let us know if it works.

Where should I put the jwks url value? 🤔

@mrinc this documentation shows only how to specify external Oauth source for authentik itself.
Do I need to set the jwks url from authentik for the powerdns-admin config and if yes, where do I need to set it?

@MDXDave - set the jkws uri in pdnsadmin that points to the authentik jkws uri.
authentik signs the jwt tokens from my understanding so you'll need the authentik jkws uri for the verification to occur

Hm there is no jwks url field 🤔

@MDXDave you don't see the field because you don't have the dev version of the app I would presume which is the only place this new setting exists.
With that being said, this setting is pointless from what I can tell because I didn't even realize that the underlying library didn't support it when I implemented it. Ergo, it won't do anything from what I can tell.
@mrinc

authlib does from what i can tell, which is interesting.... lemme dig down the rabbit hole some more and will revert

@mrinc based on the version of the library the legacy app currently uses, it didn't appear to have any method parameters for the setting I implemented. By all means, let me know if I overlooked something here. This was based on introspection of the local module only.

@AzorianMatt - For simplistic tests - see if you can change the algorithm on authentik and see if that works?


make LEVELS symbols available after a SHADE/SET

Reported by Ansley B Manke on 13 Feb 2007 17:22 UTC
Currently, symbols are set after a 2-D plot, saving the levels settings that
were used, whether from a user-set /LEVELS= qualifier or from Ferret's automatic
determination of the levels.  Instead, make these available after a SHADE/SET
command, so that they can be saved and used by LAS tools which want to know the
levels settings before doing, say, a series of plots.
 DEFINE SYMBOL ferret_fill_levels = (0,30,2)
 use levitus_climatology
 shade/set/levels=($ferret_fill_levels) temp[    !-> shade/set/levels=(0,30,2) temp[k=1:20@ave](k=1:20@ave]

)
sh sym lev*
LEV_TEXT = "(0,30,2)"
LEV_MIN = "0"
LEV_MAX = "30"
LEV_NUM = "16"
LEV_DEL = "2"
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1491

Comment by<EMAIL_ADDRESS>on 1 Mar 2007 17:23 UTC
don't do it this way; can just use %RANGE


Distribute not unlocking only

Codecov Report

Merging #347 (748e312) into main (43c9791) will increase coverage by 0.00%.
The diff coverage is 100.00%.

:exclamation: Current head 748e312 differs from pull request most recent head c3f202e. Consider uploading reports for the commit c3f202e to get more accurate results

@@           Coverage Diff           @@
##             main     #347   +/-   ##
=======================================
  Coverage   18.27%   18.27%
=======================================
  Files         133      133
  Lines       21467    21468    +1
=======================================
+ Hits         3923     3924    +1
  Misses      16894    16894
  Partials      650      650

Impacted Files
Coverage Δ

x/incentives/keeper/gauge.go
67.46% <100.00%> (ø)

x/lockup/keeper/lock.go
74.11% <100.00%> (+0.15%)
:arrow_up:

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 43c9791...c3f202e. Read the comment docs.

This isn't quite right, we want to have people who are unlocking still get rewards, just only rewards according to the amount of time they are still locked.
So if I had a lock for 15 days, and I unlock right now, I should:

Get the 14 day reward for 1 day  (until my remaining unlocking time goes below 14 days)
Get the 7 day rewards for 8 days (until my remaining unlocking time goes below 7 days)
Get the 1 day reward for 14 days (until my remaining unlocking time goes below 1 day)

This isn't quite right, we want to have people who are unlocking still get rewards, just only rewards according to the amount of time they are still locked.
So if I had a lock for 15 days, and I unlock right now, I should:

Get the 14 day reward for 1 day  (until my remaining unlocking time goes below 14 days)
Get the 7 day rewards for 8 days (until my remaining unlocking time goes below 7 days)
Get the 1 day reward for 14 days (until my remaining unlocking time goes below 1 day)

Then we already have an existing function for that.
// GetLocksPastTimeDenom Returns the locks whose unlock time is beyond timestamp
func (k Keeper) GetLocksPastTimeDenom(ctx sdk.Context, denom string, timestamp time.Time) []types.PeriodLock {
	// returns both unlocking started and not started assuming it started unlocking current time
	unlockings := k.getLocksFromIterator(ctx, k.LockIteratorAfterTimeDenom(ctx, true, denom, timestamp))
	duration := time.Duration(0)
	if timestamp.After(ctx.BlockTime()) {
		duration = timestamp.Sub(ctx.BlockTime())
	}
	notUnlockings := k.getLocksFromIterator(ctx, k.LockIteratorLongerThanDurationDenom(ctx, false, denom, duration))
	return combineLocks(notUnlockings, unlockings)
}

It queries by duration for not unlockings, and queries by endtime for unlocking started.

Sorry for the late response here. GetLocksPastTimeDenom should work!
We do need the accumulation store to be consistent with the actual total (This is because the accumulation store is critical for GetRewardsEst, which is how the front-end calculates APR's). (And we also need GetRewardsEst to be calculated fast)
I think we could make a second accumulation store for unbondings, using the subset-accumulation methods for getting this efficiently. (The key here would be the timestamp unbonding ends at) Will come back and write a more thought out API for that in a few min.
We probably can't get this into the upgrade tmrw unfortunately

So the way the second accumulation store would work is that it puts in entries only when they are unbonding. It then places them according to the unix time at which they stop unbonding / get auto-withdrawn.
Then to get the rewards for 7 day lockups, you would get the total from the currently bonded folks as we do now. You would then add in, the amount from people who are unbonding and have an unbond end time that is after "current block time + 7 days".
Whenever someone's unbonding lock is auto-deleted, it would delete that timestamp entry from the accumulation store as well.
This is code that I believe would still get used when we add F1 here, so I think this is good to implement

This is code that I believe would still get used when we add F1 here, so I think this is good to implement

Ok got it

One thing we need to care about is that we disabled time basis querying for speed optimization - only did duration basis.

Closing this in favor of the approach in #359, which is matching https://github.com/osmosis-labs/osmosis/pull/347#issuecomment-869378094


Install error

Hi there!
Getting this error on El Capitan with "pip install pyportify"
Is it an error on my end?

Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/commands/install.py", line 311, in run
root=options.root_path,
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_set.py", line 640, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 716, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_uninstall.py", line 125, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/utils/init.py", line 315, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/var/folders/vb/hxmnpln95978mn8x5041h8dc0000gn/T/pip-qCshG2-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

I think you're using system python - you probably need to either sudo pip install, use a python env of some sort (virtualenv, etc.) or use Python from Homebrew, which won't try to install to a system directory.

This is it! Will try with brew.. thanks!


[TASK] Consider using monaco for expression editor

Current expression editor is a quick hack from PoC and won't scale. We should redesign it by probably using existing code editor frontend library like monaco - https://microsoft.github.io/monaco-editor/
We should finish this research before #982, #1139, #2093
Also I expect monaco would work well together with LSP, see #3138 as well.

Hey @igarashitm  - I've added "monaco-editor": "^0.26.1" to the atlasmap and atlasmap-standalone package JSON files.  It builds fine with tests skipped but when I try to build a storybook I run into jest errors.  There must be somewhere I need to add the monaco-editor dependency.  Any ideas?  Thkx!
 FAIL  src/Views/SourceTargetView.spec.tsx
  ● Test suite failed to run

    Cannot find module 'monaco-editor' from 'ExpressionContent.tsx'

    However, Jest was able to find:
    	'./ExpressionContent.stories.tsx'
    	'./ExpressionContent.tsx'

    You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['ts', 'tsx', 'js', 'jsx', 'json', 'node'].

    See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string

    However, Jest was able to find:
    	'./ConditionalExpressionInput.module.css'
    	'./ConditionalExpressionInput.module.css.d.ts'
    	'./ConditionalExpressionInput.tsx'

    You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['ts', 'tsx', 'js', 'jsx', 'json', 'node'].

    See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string

      36 | import { IExpressionNode } from '@atlasmap/core';
      37 | import { css } from '@patternfly/react-styles';
    > 38 | import { editor } from 'monaco-editor';
         | ^
      39 | import styles from '@patternfly/react-styles/css/components/FormControl/form-control';
      40 |
      41 | let atIndex = -1;

I would try this moduleNameMapper first - https://stackoverflow.com/questions/59802492/monaco-editor-cannot-find-module-monaco-editor-but-its-installed

It's a Jest configuration issue as I recall.  When going through this exercise for Syndesis I believe this particular block fixed it.  This links to the 2.x branch when Monaco was working btw.

Ok - general question - assuming that we're eliminating the one/two line conditional input text box, what should that now look like.  We could move the f(x) button up to the main taskbar with the other button icons but what happens when you press it?  There's two distinct actions that must be supported:

enable/disable the conditional expression
edit the conditional expression

We could solve the issue by:

Having two buttons

negative: Busies up the main task bar with two more icons

Having one button that pops up a dialog where you can choose to edit or enable/disable

negative: increase the number of clicks to do what you want to do

wdyt?

I expect to keep current look with one line input box, but the code editor features like syntax highlight and auto completion enabled. We might want to add multi line editor, but it would be an addition, hopefully transparently expand from one line editor with one click.

seems like it needs some trick to make it single line - https://github.com/microsoft/monaco-editor/issues/2009

Ah - okay - do we want two lines max?

I would go with single line until we see a problem. I wonder if it's possible to do something similar to the field label we already have, otherwise expression will be way too long. It definitely has some collapsing feature, comment could be collapsed to a single line. Need more research to see if it works inline.

Currently with the content-editable DIV/markup we establish separate DOM containers for each section of the edit window and these translate into TextNodes and FieldNodes.  The monaco editor uses a single container element but does have text ranges with id.  I know when I'm adding text and when I'm adding a field element as text.  I would need to create and track the element nodes but I don't want to have to adjust the ranges as text was added/removed - looking for a way monaco can do that for me...
wdyt?

I don't have an answer for that, but one thing to note is that we'll soon need real tokenizing for function auto completion. TextNode/FieldNode stuff works only when it's just an alternate of those. The function closing parenthesis and arguments break that assumption I guess.

Hey @igarashitm - kinda stuck - source code here: https://github.com/pleacu/atlasmap/tree/i3137
When I build I get this error:
[INFO] @atlasmap/atlasmap: (typescript) Error: /home/pleacu/git-clone/atlasmap/ui/packages/atlasmap/src/UI/ExpressionContent.tsx(45,10): semantic error TS2305: Module '"../../../../node_modules/@atlasmap/core/dist"' has no exported member 'IExpressionNode'.

Here is dist:
This is what it should look like:
[pleacu@fedora dist]$ find . -name '*.d.ts' | grep 'expression'
./contracts/expression.d.ts
./models/expression.model.d.ts
./services/mapping-expression.service.d.ts

This is what I'm generating:

[pleacu@fedora dist]$ cd /home/pleacu/git-clone/atlasmap/ui/packages/atlasmap-core/dist
[pleacu@fedora dist]$ find . -name '*.d.ts' | grep 'expression'
./atlasmap-core/src/contracts/expression.d.ts
./atlasmap-core/src/models/expression.model.d.ts
./atlasmap-core/src/services/mapping-expression.service.d.ts
[pleacu@fedora dist]$ cat ./atlasmap-core/src/contracts/expression.d.ts
export interface IExpressionModel {
    updateFieldReference(mapping: any, insertPosition?: any): void;
}
export interface IExpressionNode {
    uuid: string;
    str: string;
    getUuid(): string;
    toText(): string;
}

What's odd is that the error will move around.  Sometimes its common-util that's missing, sometimes the init services.  It's definitely something in my code on this branch.  If I build w/ just by modified package.jsons, etc its build fine.  Anyway - if you could take a quick peek I'd appreciate it.  Very weird....

I don't know if this is the direct cause of that, but this causes some problems for sure - https://github.com/pleacu/atlasmap/commit/53144b17c4cb689348c2ec00e69e24527dcb6fc7#r56799323

Yes - I had to disable the test in places - there's an issue within the monaco editor itself that it was flagging.  Thkx for the pre-review.

@igarashitm - different issue - what is the total definitive list of callable Atlasmap functions from within the expression window?
So these should be callable:

There's also lcase, uppercase - also what about the field actions/transformations (i.e. append, etc).  I'll add to the monaco editor menu.

It has to be retrieved from backend, but that REST endpoint hasn't been implemented yet - #2093

Right - I was going to set up the plumbing for it - I'll leave it for now.

So these are the pure functions
https://github.com/atlasmap/atlasmap/tree/master/lib/core/src/main/java/io/atlasmap/functions
And all the transformations are available including custom one, here are the OOTBs
https://github.com/atlasmap/atlasmap/tree/master/lib/core/src/main/java/io/atlasmap/actions

Okay - been struggling with the expression-based spec tests.  I'm now using the monaco monarch tokenizer in the core as well as the UI.  I use it to parse/process the expression in serialize/deserialize,  The problem is that I can't register the Atlasmap tokenizer in a dummy editor.  The monaco imports basically define a namespace that matches the object I get when I render.  In the tests I can no longer parse the expressions or add/ remove field tokens from the expr.  Unless I can find a way to artificially establish an editor tokenizer object I'll have to remove the expression tests...  Any ideas??  Something in Jest?
This is up to date:
https://github.com/pleacu/atlasmap/tree/i3137

I don't have an answer, but I got a bunch of hits by searching with "monaco jest", some old ones say monaco doesn't work in jest, not sure if it's still true... would need a deeper research...

@pleacu submitted a PR to your branch with Jest setup - https://github.com/pleacu/atlasmap/pull/369
Details about the setup - https://github.com/igarashitm/monaco-jest-test/blob/main/README.md

Hmm it just works fine in test project
https://github.com/igarashitm/monaco-jest-test/blob/main/src/App.test.tsx#L11
https://github.com/igarashitm/monaco-jest-test/blob/main/src/MonacoEditor.tsx#L8
Not yet sure what's different.


Policy extension source

I'm trying to add an extension from a custom repository on azure blob but the error below pops up every time.

I've also try to force the origin (all the origins in latest test) as trusted source.
I also tried to add the extension id to the allowlist

To be honest it seems that the policy "extensioninstallsources" is ignored also if it's correctly loaded (see status)

No Kelly please reopen it. Apart from the ongoing dicussion the policy is ignored without any clear reason so for me this is a problem.


Google social login example does not work as shown its not compatible with the browser in the sample

[Enter feedback here]
The Google social login does not work from desktop -  due to JavaScript errors during the process.
if you try the exact same sample you will get the error due the browser control version used and google scripts.

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

ID: 4fd63eb6-21cc-a68b-a514-67f12566c476
Version Independent ID: 0c41a395-dfe1-7db3-d592-70c1b7cec724
Content: Quickstart: Set up sign in for a desktop app using Azure Active Directory B2C - Azure AD B2C
Content Source: articles/active-directory-b2c/quickstart-native-app-desktop.md
Service: active-directory
Sub-service: b2c
GitHub Login: @kengaderdus
Microsoft Alias: kengaderdus

@MicroTrendsTom
Thanks for your feedback! We will investigate and update as appropriate.

In fact guy i need to update this - Sorry my mistake that was another provider the JSError...
But  Google Provider does not work with desktop.
The B2C login form is presented correctly  but the google login user flow fails with message
"Couldn’t sign you in
This browser or app may not be secure.
Try using a different browser. If you’re already using a supported browser, you can try again to sign in."

@MicroTrendsTom
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly

#reassign: @garrodonnell

Hi, what version of MSAL and what target framework are you using?

net6.0-windows10.0.17763.0

WONDERFUL NEWS!
i updated as above and tried the workflow!! and  it worked today
this has xmas come early!!! awesome !!!!!!!!


Integrating flake8 and building tests for a lot of the model subpackage

In this PR, I

Added flake8 to the QA tools, and
Added tests for the majority of the model subpackage (still need to test the tuning.py module as well as the pipeline/CLI),

Codecov Report

Merging #12 (778ca6a) into develop (bd180c4) will increase coverage by 16.13%.
The diff coverage is 87.50%.

@@             Coverage Diff              @@
##           develop      #12       +/-   ##
============================================
+ Coverage    52.05%   68.18%   +16.13%
============================================
  Files           48       48
  Lines         1827     1798       -29
============================================
+ Hits           951     1226      +275
+ Misses         876      572      -304

Impacted Files
Coverage Δ

nbaspa/data/endpoints/parameters.py
78.22% <ø> (+0.44%)
:arrow_up:

nbaspa/data/endpoints/scoreboard.py
95.00% <ø> (ø)

nbaspa/model/pipeline.py
0.00% <0.00%> (ø)

nbaspa/player_rating/pipeline.py
0.00% <0.00%> (ø)

nbaspa/player_rating/tasks/impact.py
0.00% <0.00%> (ø)

nbaspa/player_rating/tasks/io.py
0.00% <0.00%> (ø)

nbaspa/data/endpoints/base.py
97.36% <100.00%> (-0.04%)
:arrow_down:

nbaspa/data/pipeline.py
100.00% <100.00%> (ø)

nbaspa/data/tasks/gamelog.py
100.00% <100.00%> (ø)

nbaspa/data/tasks/io.py
95.04% <100.00%> (ø)

... and 29 more

Continue to review full report at Codecov.

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

In the last couple commits I added tests for the CLI and tuning.


ValueError: GraphDef cannot be larger than 2GB.

I trained  with 10509 images 2 classes
then accuracy was good for 81.6%
but when I tried to rewrite classify.py
I encounter this error
ValueError: GraphDef cannot be larger than 2GB.
`#os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
a=0
for impath in glob.glob('/home/lunasdejavu/Downloads/image-classification-tensorflow-master/validation/*.jpg'):
image_path = impath
`
then
 if predictions[0][0]>predictions[0][1]:                 a+=1 print (a/577)
I checked the stackoverflow already
https://stackoverflow.com/questions/36349049/overcome-graphdef-cannot-be-larger-than-2gb-in-tensorflow
but I still don't know how to modify :(
`

@lunasdejavu what exactly did you modify ?

`import tensorflow as tf
#import os
import glob
Disable tensorflow compilation warnings
#os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
a=0
for impath in glob.glob('/home/lunasdejavu/Downloads/image-classification-tensorflow-master/validation/*.jpg'):
image_path = impath
Read the image_data
image_data = tf.gfile.FastGFile(image_path, 'rb').read()

Loads label file, strips off carriage return
label_lines = [line.rstrip() for line
	in tf.gfile.GFile("logs/trained_labels.txt")]

Unpersists graph from file
    with tf.gfile.FastGFile("logs/trained_graph.pb", 'rb') as f:
        graph_def=tf.GraphDef()
        graph_def.ParseFromString(f.read())
    _=tf.import_graph_def(graph_def, name='')
    with tf.Session() as sess:
     #   Feed the image_data as input to the graph and get first prediction
        softmax_tensor=sess.graph.get_tensor_by_name('final_result:0')
        predictions = sess.run(softmax_tensor, \
	{'DecodeJpeg/contents:0': image_data})
# Sort to show labels of first prediction in order of confidence
top_k = predictions[0].argsort()[-len(predictions[0]):][::-1]
if predictions[0][0]>predictions[0][1]:
	a+=1

print ('GG')
#print (a/577)
#for node_id in top_k:
#human_string = label_lines[node_id]
#score = predictions[0][node_id]
#print('%s (score = %.5f)' % (human_string, score))`
that is for the classify.py
the training dataset is 5677 for A 5768 for B validalition 577 for each

Loading model every time in loop ,if we add takes time .how to implement that load model once and test many time in classify. Py

arun what is the best way to deploy this retrained model as could not find anything worthwile on the net

want to consume the model and utilise
as a service

You want to build a service to classify a particular set of images ?

Closing due to inactivity.


Miscellaneous missing functions

For starters, Tensor.unfold

This is so AMAZING that I need to use Pythonnet to execute unfold and do a lot of converting process to PyObject to get back the unfolded result before and it seems like it is not required anymore!!!
HOW WONDERFUL!!!


REFACTOR: Extend consistency on plot methods

Following https://github.com/ansys/pyaedt/pull/4626 and https://github.com/ansys/pyaedt/pull/4708, theses changes aim at making our code base consistent.
The changes consist in returning matplotlib figure objects on methods that were returning a list of value.
In the case of polar_plot_3d_pyvista, a pyvista plotter object is returned when, before, a boolean was returned if one wanted to show the figure or save it in a file.
This changes should be performed before merging #4702

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

Project coverage is 33.76%. Comparing base (1966da9) to head (f84ed77).

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4723       +/-   ##
===========================================
- Coverage   80.37%   33.76%   -46.62%
===========================================
  Files         122      121        -1
  Lines       55097    55031       -66
===========================================
- Hits        44283    18580    -25703
- Misses      10814    36451    +25637

All good.

Inadvertently closed. LGTM.


Evaluate Graph Database for Persistence

Find out if a graph database like neo4j is better suited to store coderadar's data.
In the current relational database, each commit is associated via join table with each file that was part in that commit, which results in a very large amount of join table entries (~ 70 million entries for a month of commits in a project with ~ 1 million LOC and ~ 30 committers). The large number of entries makes querying the metric values very slow, even when using indices.

Querying the commit structure and files that were modified within those commits definitely is more straightforward with a graph database (see screenshot). This way, files that were not modified in a commit do no longer have to be connected via join table with that commit, but instead you can query them via their parent commits. Thus, saving a lot of those join table entries.

The switch to the graph database Neo4j will be done soon. See also #202 and #204.


Update README.md

You can also set GITLAB_API_HTTPARTY_OPTIONS as a YAML hash, so for example:
export GITLAB_API_HTTPARTY_OPTIONS="{verify: false}"
This would disable SSL verification in HTTParty - in case you were using a self-signed certificate.  Would you mind adding that to your example as well?

added

Thanks!


Improve code with Java8 style

At first, the Project illuminati was to develop with the Java6 style.
No more, do not have to support the Java6.
Because. to improve code with the Java8 style.

merged


Split the method definition into multiple templates

This is a sister PR to #33 showing two different approaches to managing the complexity in generating a GAPIC client method. This PR identifies 5 different types of methods and uses 5 different method definition templates. The logic of what to include in each type of method is localized to the individual method templates. There is duplication across the templates.

Closing in favor of #33.


Set CMAKE_CXX_STANDARD_REQUIRED (to ON) and CMAKE_CXX_EXTENSIONS (to OFF) in top-level CMakeLists.txt

See:
https://cmake.org/cmake/help/latest/variable/CMAKE_CXX_STANDARD_REQUIRED.html
https://cmake.org/cmake/help/latest/variable/CMAKE_CXX_EXTENSIONS.html

Ah there is a flag for this ! The whole time I was using CMAKE_CXX_FLAGS 💀


Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="failed to connect to all addresses")

Why do I get this error while fetching data from the Fire store. Fire store works fine with no issue with the Firebase service. I get data using Postman. I just want to get a Fire store collection using an access token.
This project worked perfectly last year, but I muted it. Now that I want to resume it, I'm getting a GRPC exception.
I've tried using the google-service-account.json file as well, but I still get the same error.Anyone face the same problem as me?
Note: I get this error on Windows 11.
Code:
private static  FirestoreDb GetFirestoreDb()
{
    var builder = new FirestoreDbBuilder();
    builder.ProjectId = "ProjectId";
    //Get From https://identitytoolkit.googleapis.com/v1/accounts:signInWithCustomToken Api
    string oauthToken = "AccessToken";
    ITokenAccess credential = GoogleCredential.FromAccessToken(oauthToken);
    builder.TokenAccessMethod = credential.GetAccessTokenForRequestAsync;

    return builder.Build();
}

private static async void GetDataFromFireStore()
{
    try
    {
        var db =  GetFirestoreDb();
        CollectionReference collectionRef = db.Collection("windows_test");

        // Perform a query and retrieve documents
        QuerySnapshot querySnapshot = await collectionRef.GetSnapshotAsync();
        Console.WriteLine(querySnapshot);
    }
    catch (Exception exp)
    {
        Console.WriteLine(exp);
    }
}

Error:
Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="failed to connect to all addresses", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1686227565.417000000","description":"Failed to pick subchannel","file":"..\..\..\src\core\ext\filters\client_channel\client_channel.cc","file_line":5397,"referenced_errors":[{"created":"@1686227565.417000000","description":"failed to connect to all addresses","file":"..\..\..\src\core\ext\filters\client_channel\lb_policy\pick_first\pick_first.cc","file_line":398,"grpc_status":14}]}")
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Grpc.Core.Internal.ClientResponseStream`2.<MoveNext>d__5.MoveNext() in /var/local/git/grpc/src/csharp/Grpc.Core/Internal/ClientResponseStream.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Api.Gax.Grpc.AsyncResponseStream`1.<MoveNextAsync>d__8.MoveNext() in /_/Google.Api.Gax.Grpc/AsyncResponseStream.cs:line 71
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Linq.AsyncEnumerable.<<ForEachAsync>g__Core|295_0>d`1.MoveNext() in d:\a\1\s\Ix.NET\Source\System.Linq.Async\System\Linq\Operators\ForEach.cs:line 31
--- End of stack trace from previous location where exception was thrown ---
   at System.Linq.AsyncEnumerable.<<ForEachAsync>g__Core|295_0>d`1.MoveNext() in d:\a\1\s\Ix.NET\Source\System.Linq.Async\System\Linq\Operators\ForEach.cs:line 31
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.Cloud.Firestore.Query.<GetSnapshotAsync>d__62.MoveNext() in /_/apis/Google.Cloud.Firestore/Google.Cloud.Firestore/Query.cs:line 738
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at FreibaseLibraryOld.Program.<GetDataFromFireStore>d__2.MoveNext() in C:\Users\osama.nasir\source\repos\FreibaseLibraryOld\FreibaseLibraryOld\Program.cs:line 36

(Note, I've modified your question to format the code use 3 backticks instead of 1 when you want to format multiple lines of code).
The error looks mostly enviromental. You most likely have no internet conection in the machine you are trying to execute this code, or there's a firewall that does not allow HTTP/2 which is a requirement for gRPC. A few questions for you:

Does the code succeeds in a different machine/connected to a different network?
Can you make a simple HTTP request from within the failing machine, say to http://www.google.com?
Can you confirm with your network admins that HTTP/2 traffic is allowed in the failing machine?
Can you share the exact versions of the libraries involved?

@amanda-tarafa Use the code mentioned above to see if you can access the firestore collection and If you have a more effective method, please share it.
Additionally, if you need it, I'll provide you access to my Firebase project.

@amanda-tarafa Firstly I use 3.3.0 version of Google.Cloud.Firestore which is release at May,2023.
Secondly if same code works in windows 10 so why we get GRPC exception in windows 11, May be windows 11 have some restriction on GRPC socket. can you please execute above code on windows 11 ?

@OsamaNasir when I asked you to specify the version of the libraries you are using, you posted the packages section of an old-style project file that contains the following line:
<package id="Google.Cloud.Firestore" version="2.4.0" targetFramework="net48" />

That library version is over 2 years old. When you now say:
Firstly I use 3.3.0 version of Google.Cloud.Firestore which is release at May,2023.

Do you mean that you have changed your application to use the newer version of the library and you still see the error?

Or do you mean that you believe you have been using Google.Cloud.Firestore 3.3.0 from the start, i.e. since you posted this question, even though your answer a couple of comments above indicates otherwise.

Before I attempt to reproduce anything anywhere, I need to know exactly what code, with what dependinces, targetting which .NET version I need to run. If I run something different to what you are running, whatever result I get, it doesn't help at all.

Actually, at this point, it's best if you share a simple console application with minimum code and dependencies that reproduces the problem, that is a Program.cs file and a *.csproj file. Run it in your environment to make certain it fails, and then share it here, making sure you remove any Google Cloud Project identifiers, or service account identifiers, etc. I will use that to attempt to reproduce.

@amanda-tarafa From the start I use 3.3.0 Google Cloud Firestore library,I also tried with old package to see that error are same or not. so, I mistakenly write a "2.4.0" library. I write simple code and share a dependencies which I used in my project. Please resolve my Issue why firebase is not working on windows 11. I want to use SignIn with Custom token method to authenticate, and get the firestore collection.
Note: I also share a Console application with you can you please provide a email so I can share my project.

Config File data of my Project:

Please use triple backticks to make sure your code and project file contents are formatted appropriately. I would expect it to be feasible to include the console app here directly - I wouldn't expect it to be more than about 20 lines of code for a minimal example.

I've just tried the code, and it worked for me on my personal Windows 11 machine. A few notes though:

I'd strongly advise you to move to using the "SDK style" projects if you possibly can. They're so much simpler - and yes, you can still use them with .NET framework.
I used a service account JSON file instead of a custom access token. I wouldn't expect that to be an issue, but please try with a suitable service account JSON file to see if that's relevant.
Your GetDataFromFireStore method is async but returns void, which means you can't actually wait for it to complete. I've provided what I'd consider to be a cleaner minimal example below
Printing out the QuerySnapshot won't provide useful information, so my modified code joins the document IDs together

New code:
using Google.Cloud.Firestore;
using System;
using System.Linq;
using System.Threading.Tasks;

namespace FirebaseConnectionDemo
{
    class Program
    {
        static async Task Main()
        {
            var db = FirestoreDb.Create("... your projectid ...");
            CollectionReference collectionRef = db.Collection("windows_test");
            QuerySnapshot querySnapshot = await collectionRef.GetSnapshotAsync();
            Console.WriteLine(string.Join(", ", querySnapshot.Documents.Select(doc => doc.Id)));
        }
    }
}

Or using an SDK style project:
Project file:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net48</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <LangVersion>10</LangVersion>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Google.Cloud.Firestore" Version="3.3.0" />
  </ItemGroup>
</Project>

Program.cs:
using Google.Cloud.Firestore;

var db = FirestoreDb.Create("...");
CollectionReference collectionRef = db.Collection("windows_test");
QuerySnapshot querySnapshot = await collectionRef.GetSnapshotAsync();
Console.WriteLine(string.Join(", ", querySnapshot.Documents.Select(doc => doc.Id)));

(That's literally all you need.)

My experience of "failed to connect to all addresses" errors is that it's always something in the network layer - typically a proxy or a firewall.

@jskeet you said , I used a service account JSON file instead of a custom access token. I wouldn't expect that to be an issue, but please try with a suitable service account JSON file to see if that's relevant.
But I didn't see that in the code where you using .json file.

But I didn't see that in the code where you using .json file.

If you don't specify any credentials, the code uses Application Default Credentials. I have the GOOGLE_APPLICATION_CREDENTIALS environment variable set to the path to the service account JSON file.

@jskeet KasperSky installed in my system, and it's control by admin I think due to kaspersky security I face this error.

That seems entirely plausible. I suggest you ask your admin for help with it. (You might want to try reproducing on a personal machine just to convince yourself that it really is down to your specific environment.)

Closing as we expect this to be due to Kaspersky. Please add another comment if you still have issues that need investigating after talking with your admin.


Prevent docker-compose write output when no erros occur

A silent (successful) run is very useful when using rsnapshot, so you will receive an email notification only, when an error occurred.
docker-compose has no option for a silent run and also logging everything to stderr  ( https://github.com/docker/compose/issues/7346 ), which is even more annoying.

Hi, try using chronic https://github.com/docker/compose/issues/5296#issuecomment-1124906570


Submit with AJAX

First off, amazing job on this.
Second, perhaps submitting with AJAX by default should be considered. After the final field is entered, the form is submitted with AJAX, and a message is returned in the chat window.
I think we, as developers, understand what's going on, but the average user filling out a contact form might be a little confused by being redirected to a thank you page. Sort of "I was just talking to someone, what happened?" The last question you have at the end of your demo is a great idea for a submit button replacement, but if they don't answer it and just leave, then the form never gets submitted.
I have tried various methods, like using submitCallback and removing the action from the form, to attempt this, but so far I have been unsuccessful as the form submit redirects, either to the action form or the current page.

thanks @xclntdesign ! There was a bug related to submitCallback ... Which you would use in this case.
Please see this closed issue. where there is also a JSbin link.
Regarding a final (and welcome) message, then this is something we will roll out with a official release very soon.


Determine webfont loading strategy

The framework must be flexible enough to account for differences in webfont hosting services between the institutions. For example, UNL uses Cloud.typography, which loads fonts differently than Typekit or Google Fonts.

This will be very difficult to abstract entirely. It would likely come down to giving each participant complete control over the head tag, which is fine, but may cause troubles with loading "speedy"-like templates and so on. Perhaps there is some sort of library out there that lets one pick a webfont provider and injects code from there. If not, maybe we make one.


various mappings

@ProfessorProspector

I suppose create is more accurate than get. Also asie wtf were you doing up at that hour?

@ProfessorProspector I had to leave for a train.


Typo in /inquiries page in loyalty app

you purchased

This is done.

It's a lot of pleases in this 2 lines of text:)

We aim to please!
But in all seriousness, I agree with you, however these two sentences are normally not shown back to back as there would be actual inquired upon artworks in between the two.


Continous build setup

There should be created continuous build ( probably best choice - travis CI ).

Continous build is done via Travis Ci. For now build is failing because of tests.

Changed setup of Travis to ant build only, without tests. There is separate issue for fixing tests.


Extension is not picking Asana's matching projects and adding them to project field.

OS version: OS X 10.15.7
Browser version: <IP_ADDRESS> Chrome
Extension version: TogglButton/2.0.20

Relevant integration (if any):
Asana

🐛 Describe the bug
Projects that exist in Track and match with Asana don't get picked up

Expected behaviour

Steps to reproduce

Steps to reproduce the behaviour:

Go to ...
...

Other details or context

Slack
Case

Case


Release a version

I'd like to package your library for Conan. Could you please release a version for it?

In case it is useful to anyone, I packaged it externally. The git repo is available here and the conan package there


Automatic script when a file is dragged&droped

Hi,
I was wondering if it would be possible to run a short python script each time a file is dragged and dropped. Basically now I am loading a json file as a dataframe in a jupyter notebook, applying some filtering and conversion and then I open PandasGUI with this dataframe. This works very well but I wanted to know if I could include this small script somewhere to do it automatically when someone does drag and drop a file in PandasGUI?
Thanks again for this really nice project!

Thanks a lot,
I will give it a try. The plugin idea is actually definitely a good idea also


How did you do it? I want to put a photo of myself in this final effect. What do I need to do.

If he could display the image I specified, it would be very cool.

You can try to use this to create effects with your images.


Non-JS output mode for search engines

It would be nice to have option that will cut all js-related stuff from server-side-rendered page.
Modern search engines can run javascript on scanning pages, but it cost cpu budget. When you render page on server side especially for search bot, you don't need hydration and javascript could be turned off.

Forgot to comment earlier. Yeah this is a nice feature. For now, it can be done in user land by just replacing script tags in the returned HTML if the UA matches a bot 👍

Yes, I have already made this by stripping <script> tags with regexp, but parsing output is heavy operation.


Fix unschedule events with trimmed names

Description
Use boto3 events method list_rule_names_by_target using the lambda Arn instead of list_rules filtering by name prefix. This will find all the scheduled events, even the ones that have a trimmed name.
Updated the placebo files in order to match the new calls
GitHub Issues
Fix #650

Coverage decreased (-0.03%) to 81.324% when pulling 7c8d3feb4404c4cb7ba0542277339e59c09f8cbb on parroyo:master into 9c58099f00d31fec394ab2a092e1096d7f33a66e on Miserlou:master.

Tested seems to work nicely, thanks!


Refactoring pose and vicon code

Combined vicon examples with example of constructing a pose dict fro scratch; refactored importVicon to use library functions for splitting by a label; renamed importVicon to importIitVicon; Put plot_trajectories function together with PlotPose function.

ping @ghoshsuman. we should try to look at pull requests within a day if we can - at least to comment that you can't do it if that is the case.

I actually started the review on Friday, but got sidetracked by other stuff. I'll take care of it, no worries.


[RFE] LDAP, allow configurable UID Attribute

By default MIQ is sending "uid=accountname" to ldap server.
This is an enhancement request to allow "uid" to be changed/set from MIQ webgui.
Reference:
http://talk.manageiq.org/t/ldap-bind-by-myuid-not-the-default-distinguished-name-uid-user/2188

Hi @chessbyte , Do you know if there is one-liner change in .rb source to replace "uid" to "myuid" ?
I am doing a miq POC and hoping to show it can bind to our internal ldap server.

@abellotti Thoughts?


[Blazor][Question] List of RenderFragments - building dynamic ui

I would like to recreate something I did long time ago in VueJs.
What is it?
Well you have component. That component contains (in VueJs) <slots>.
What's the issue?
Simply I dont have idea how to make it properly in Blazor.
Current status
Component1:
// some code

  @if(column.Type != null)
  {
    @item.GetType().GetProperty(column.Field).GetValue(item, null)
  }
  else
  {
    @Actions(item)
  }

// some code
@code
{
[Parameter]
public RenderFragment<dynamic> Actions { get; set; }
}

Component2:
<Component1>
  <Actions>
    // some html
  </Actions>
</Component1>

What I would like to look it like?
Component2:
<Component1>
  <Actions Name="Title">
    // some html
  </Actions>
  <Actions Name="">
    // some html
  </Actions>
</Component1>

I didnt find a way on Google how to manage it  via attributes? Or how to access them via List<RenderFragment>. Can anyone from development team show me the way?
In VueJs it would be
<slot v-bind:name="...."></slot>

@glararan Thanks for contacting us.
Capturing multiple render fragments in a list is not supported. Each render fragment needs to have its own distinctive name.
@rynowak or @SteveSandersonMS can confirm.

@javiercn Thanks for reply.
I am trying to create "DataTable" component.
Each column has property "Slot". If property is true then code renders fragment which I would like associate with attribute or something.
E.g.
<DataTable>
 <Actions Name="Title"><a href="/<EMAIL_ADDRESS> <Actions Name="">/* buttons edit/delete */><Actions>
</DataTable>

<DataTable>
 <Actions Name="Title"><a href="/<EMAIL_ADDRESS> <Actions Name="Category">@context</Actions>
 <Actions Name="">/* button delete */><Actions>
</DataTable>

What I am trying to say its that component is reusable like advanced table which allows for "slot" edit inside  html. The thing is I don't know in future use how users data structure looks like. Sure I can define
[Parameter] public RenderFragment<dynamic> Actions; /* instead actions e.g. Title, Category, Buttons */
but then if I would like to add "slot" for "Random" field then I would have to edit DataTable component.
Do you now understand what I am trying to accomplish?

I think you're looking for something like this:
<Grid Data=@GridData>
    <GridColumns>
        <GridColumn Field=@nameof(Product.ProductId) Title="Id" />
        <GridColumn Field=@nameof(Product.ProductName) Title="Product Name" />
        <GridColumn Field=@nameof(Product.UnitPrice) Title="Unit Price">
            <Template>
                @(String.Format("{0:C2}", (context as Product).UnitPrice))
            </Template>
        </GridColumn>
    </GridColumns>
</Grid >

This is already supported by third party Blazor components, but I'm also, trying to learn how to implement something like this.
Please let me know if you find out how to do it.  Thanks.

I think you're looking for something like this:
<Grid Data=@GridData>
    <GridColumns>
        <GridColumn Field=@nameof(Product.ProductId) Title="Id" />
        <GridColumn Field=@nameof(Product.ProductName) Title="Product Name" />
        <GridColumn Field=@nameof(Product.UnitPrice) Title="Unit Price">
            <Template>
                @(String.Format("{0:C2}", (context as Product).UnitPrice))
            </Template>
        </GridColumn>
    </GridColumns>
</Grid >

This is already supported by third party Blazor components, but I'm also, trying to learn how to implement something like this.
Please let me know if you find out how to do it. Thanks.

Wow, actually you give me an idea how to figure it out with far far better codestyle.
To implement my issue I had to use CascadingValue then solution is pretty simple and smart. Case closed. If u need more info how to implement just say :)

I think you're looking for something like this:
<Grid Data=@GridData>
    <GridColumns>
        <GridColumn Field=@nameof(Product.ProductId) Title="Id" />
        <GridColumn Field=@nameof(Product.ProductName) Title="Product Name" />
        <GridColumn Field=@nameof(Product.UnitPrice) Title="Unit Price">
            <Template>
                @(String.Format("{0:C2}", (context as Product).UnitPrice))
            </Template>
        </GridColumn>
    </GridColumns>
</Grid >

This is already supported by third party Blazor components, but I'm also, trying to learn how to implement something like this.
Please let me know if you find out how to do it. Thanks.

Wow, actually you give me an idea how to figure it out with far far better codestyle.
To implement my issue I had to use CascadingValue then solution is pretty simple and smart. Case closed. If u need more info how to implement just say :)

I've also been struggling with this a bit and came up with a few things that do work, but none that produce the markup experience I was trying to accomplish.

I think you're looking for something like this:
<Grid Data=@GridData>
    <GridColumns>
        <GridColumn Field=@nameof(Product.ProductId) Title="Id" />
        <GridColumn Field=@nameof(Product.ProductName) Title="Product Name" />
        <GridColumn Field=@nameof(Product.UnitPrice) Title="Unit Price">
            <Template>
                @(String.Format("{0:C2}", (context as Product).UnitPrice))
            </Template>
        </GridColumn>
    </GridColumns>
</Grid >

This is already supported by third party Blazor components, but I'm also, trying to learn how to implement something like this.
Please let me know if you find out how to do it. Thanks.

Wow, actually you give me an idea how to figure it out with far far better codestyle.
To implement my issue I had to use CascadingValue then solution is pretty simple and smart. Case closed. If u need more info how to implement just say :)

I've also been struggling with this a bit and came up with a few things that do work, but none that produce the markup experience I was trying to accomplish. I'd love to see the solution you came up with to solve this.

@los93sol
DataTableColumn
@implements IDisposable

    @Name

@code
{
    [Parameter]
    public string Name { get; set; }

    [Parameter]
    public string Field { get; set; }

    [Parameter]
    public Type Type { get; set; }

    [Parameter]
    public RenderFragment<dynamic> Template { get; set; }

    [CascadingParameter]
    DataTable DataTable { get; set; }

    protected override void OnInitialized()
    {
        DataTable.AddColumn(this);
    }

    public void Dispose()
    {
        DataTable.RemoveColumn(this);
    }
}

DataTable

            <CascadingValue Value="this">

                                    @ChildContent

                                @foreach (dynamic item in FilteredData.Skip((Page - 1) * PerPage).Take(PerPage))
                                {

                                    @foreach (DataTableColumn column in Columns)
                                    {

                                        @if (column.Template is null)
                                        {
                                        @item.GetType().GetProperty(column.Field).GetValue(item, null)
                                        }
                                        else
                                        {
                                        @column.Template(item)
                                        }

                                    }

                                }

            </CascadingValue>

@code
{
    [Parameter]
    public string Class { get; set; }

    [Parameter]
    public string Id { get; set; }

    [Parameter]
    public RenderFragment ChildContent { get; set; }

    [Parameter]
    public List<dynamic> Data
    {
        get => data;
        set
        {
            data = value;
        }
    }

    [Parameter]
    public int PerPage { get; set; } = 25;

    [Parameter]
    public int Page { get; set; } = 1;

    [Parameter]
    public RenderFragment<dynamic> Actions { get; set; }

    List<DataTableColumn> Columns { get; set; } = new List<DataTableColumn>();

    List<dynamic> FilteredData { get; set; }

    List<dynamic> data;

    public void AddColumn(DataTableColumn column)
    {
        Columns.Add(column);
    }

    public void RemoveColumn(DataTableColumn column)
    {
        Columns.Remove(column);
    }
}

Usage:
        <DataTable Class="table" Data="Data">
            <DataTableColumn Name="A" Field="User" Type="typeof(string)"></DataTableColumn>
            <DataTableColumn Name="B" Field="CreatedAt" Type="typeof(DateTime)"></DataTableColumn>
            <DataTableColumn>
                <Template Context="item">
                    <a<EMAIL_ADDRESS>class="btn">text
                </Template>
            </DataTableColumn>
        </DataTable>

PS: edit DataTable output content

@glararan Thank you!  That was extremely helpful!

I have another working example here: https://github.com/hfmm99/HCM/tree/master/HCM/Client/Components/Grid


fix(ci): make netsim work on forks

Description
Simply skips the troublesome step if it's not configured properly (due to missing org secrets).
Breaking Changes

Notes & open questions

Change checklist

[ ] Self-review.
[ ] Documentation updates following the style guide, if relevant.
[ ] Tests if relevant.
[ ] All breaking changes documented.

github is not allowing me to review unchanged parts, which is fair I guess, so here will have to do:
won't curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer ${{secrets.METRO_TOKEN}}" --data "$metro_data" ${{secrets.METRO_ENDPOINT}} fail as well?
or are the other parts that use secrets already handled?

No because only merge to main actually runs with publish stats. I guess running manually from your work with the intent to publish stats would fail, but that's not a case you should run into.


width of selection column changed if hide some column

https://github.com/AllenFang/react-bootstrap-table/issues/1311#issuecomment-301299612

I found this: the error at my job's code and the next one:
index.js.zip
happened as soon as the height parameter was added at:
<BootstrapTable data={ products } selectRow={ selectRowProp } search height={'800px'}>
In fact, as soon as I deleted this parameter at my job's code, the problem stopped.

This problem also persist if I use maxHeight

I'll check, but like I said, it might be hard to fix and what's the browser you used?

firefox, chrome, ...

ok, thanks, could you see the last example in this page?, this example also configure the height and I wanna know what you see.

how the height and maxheight parameters could affect the width of the cells of table headers?

I have no idea, but it should no happen, but actually, react-bootstrap-table construct by two table, and unalign issues seems like can't be solve until now.

ok, got it, thanks~


Bug in Emscripten 1.32.4

We cannot use this version to bind RDKit for the moment.

I think we need to include the dependencies in the project, so that we can choose the version and have them compile using the Makefile

I can write a cmake modules to find specific version of em++ and other dependencies.

We can work with the last version 1.34.2


Call ensure_connected on all ophyd_async devices

Fixes #864
Instructions to reviewer on how to test:

Run dodal connect i22 while on the network and able to get those PVs
Ensure that devices are connected
Change the PV prefixes of some devices on i22 to known invalid values
Ensure that dodal connect i22 does not connect to those devices

Checks for reviewer

[ ] Would the PR title make sense to a scientist on a set of release notes
[ ] If a new device has been added does it follow the standards
[ ] If changing the API for a pre-existing device, ensure that any beamlines using this device have updated their Bluesky plans accordingly
[ ] Have the connection tests for the relevant beamline(s) been run via dodal connect ${BEAMLINE}

This is the correct solution but I think we need to think a bit more about UX in the implementation.
The problem is that we are now blurring the boundaries between instantiation and connection and muddying the error messages. There are 3 paths to the display output depending on device configuration:
flowchart TD
    A[dodal connect] --> B(device_instantiation)
    B --> C{wait_for_connection?}
    C -->|True| D{Connection Error?}
    C -->|False| E[ensure_connected with RE]
    D -->|True| F[Display connection error from dodal]
    D -->|False| G[Display connection success]
    E --> H{Connection Error?}
    H -->|False| G
    H -->|True| I[Display connection error from RE]

Presumably we want to aim for one of these two:
flowchart TD
    A[dodal connect] --> B(device_instantiation)
    B --> C{Instantiation error?}
    C -->|False| D[Display instantiation success]
    D --> E[Attempt connection]
    C -->|True| F[Display instantiation error]
    E --> H{Connection error?}
    H -->|True| I[Display connection error]
    H -->|False| J[Display connection success]

flowchart TD
    A[dodal connect] --> B(device_instantiation)
    B --> C{Instantiation error?}
    C -->|False| E[Attempt connection]
    C -->|True| J
    E --> H{Connection error?}
    H -->|True| I[Display connection error]
    H -->|False| J[Display connection success]

Could do with opinions on which solution we want, also @coretl any opinions on changes needed for ophyd-async? In either case I think I'd want an easier way to introspection connection errors.

Here's the code for wait_for_connection: https://github.com/bluesky/ophyd-async/blob/f8fae433e220f8b16774f76928c62e4b71247454/src/ophyd_async/core/_utils.py#L118-L137
Basically asyncio.gather(*[device.connect() for device in devices], return_exceptions=True), then accumulate the errors together. If you want to reassociate the errors with the device I suggest you do the gather yourself, then you can do what you want with the returned Exceptions.

If you want to reassociate the errors with the device I suggest you do the gather yourself, then you can do what you want with the returned Exceptions.

Alternatively I can make NotConnected._errors public and you can use that to inspect the error that comes back

@coretl I think either way I'll make cleaning up the error messages a separate ticket.

Alternatively I can make NotConnected._errors public and you can use that to inspect the error that comes back

That sounds very useful in general, raised an issue: https://github.com/bluesky/ophyd-async/issues/647

The tests should be fixed by: https://github.com/bluesky/ophyd-async/pull/646


Create CONTRIBUTING

Create a CONTRIBUTING.md file to provide a guide for contributors.
This file should include information about how to install the pre-commit, for example

First, install pre-commit
pip install pre-commit

Next, run
pre-commit install

to install the pre-commit hooks

Are you interested in making one?

Are you interested in making one?

No, not really


3rd Cut of Fossils Resource Models

With feedback from round 2 update the Fossils resource models. Focus on:

[ ] Ontology classes - get these more accurate
[ ] Fossil types model - Populate model and change text in Fossils to relationship of known fossil types
[ ] Temporal assessment - Model lookups and determine how to represent in Models
[ ] Geological asessment - Model lookups and determine how to represent in Models

GTS data is 2018 taken from https://github.com/CGI-IUGS/timescale-data . License is CC0, so can be used without limitations/inquiry. The upper/middle/lower vs early/middle/late terminology may need to be adjusted? Or should we align our data to the data contained within the GTS data?

Splitting these into individual issues and closing as scope is too large.


add windows store version for vs16 to toolchain table

the actual toolchain has already been added, please rebase on the current master branch


UnpatchAll or GetPatches

Is your feature request related to a problem? Please describe.
In a large project, someone mocks a function and then forgets to unpatch it. This leads to the mocked function continuing to affect other parts of the project, causing unexpected behavior and hard-to-trace bugs.
Describe the solution you'd like
Add function UnpatchAll to remove all patches and restore the original functionality of patched functions and revert them back to their original state, ensuring that no unintended changes or side effects remain in the system. This function should be idempotent.
Add the function GetPatches to retrieve the current patches, solely to detect if there are any patches that remain unapplied.

Mockey already has UnPatchAll. You can use mockey.UnpPatchAll() to unpatch all mocks in current PatchConvey context or all mocks in your test(if not in PatchConvey)
In your case, we recommend you to use PatchConvey. All mock will be unpatched when exiting PatchConvey context. You can also do nested patches with it:
// in convey_test.go
func TestUnpatchAll_Convey(t *testing.T) {
	fn1 := func() string {
		return "fn1"
	}
	fn2 := func() string {
		return "fn2"
	}
	fn3 := func() string {
		return "fn3"
	}

	Mock(fn1).Return("mocked").Build()
	if fn1() != "mocked" {
		t.Error("mock fn1 failed")
	}

	PatchConvey("UnpatchAll_Convey", t, func() {
		Mock(fn2).Return("mocked").Build()
		Mock(fn3).Return("mocked").Build()

		PatchConvey("UnpatchAll_Convey inner", func() {
			Mock(fn2).Return("mocked inner").Build()
			convey.So(fn2(), convey.ShouldEqual, "mocked inner")
		})

		convey.So(fn1(), convey.ShouldEqual, "mocked")
		convey.So(fn2(), convey.ShouldEqual, "mocked")
		convey.So(fn3(), convey.ShouldEqual, "mocked")

		UnPatchAll()

		convey.So(fn1(), convey.ShouldEqual, "mocked")
		convey.So(fn2(), convey.ShouldEqual, "fn2")
		convey.So(fn3(), convey.ShouldEqual, "fn3")
	})

	r1, r2, r3 := fn1(), fn2(), fn3()
	if r1 != "mocked" || r2 != "fn2" || r3 != "fn3" {
		t.Error("mock failed", r1, r2, r3)
	}

	UnPatchAll()

	r1, r2, r3 = fn1(), fn2(), fn3()
	if r1 != "fn1" || r2 != "fn2" || r3 != "fn3" {
		t.Error("mock failed", r1, r2, r3)
	}
}

Nice. And apologies for the interruption, I forgot to check the latest version. My project is currently using an older version.


utf-8 characters are not being mapped in the screen.py file

Thanks for taking the time to contibute to this project.
Checks
Issues fixed by this PR
https://github.com/peterbrittain/asciimatics/issues/340
What does this implement/fix?
When character is an utf-8 character - we are not mapping it to other special characters.
Any other comments?
None

Coverage increased (+0.002%) to 96.997% when pulling 6dbab347d50d8f36693985579c0a90cb221cd4f1 on BeniaminK:issue_340_utf-8_chars into 116838f105d68fbcce224e04716114bb9f908768 on peterbrittain:master.


Status line not consistent when using ALE

environment

vim: 8.1.2292
vim-airline: 0.11
OS: MacOS Catalina
Have you reproduced with a minimal vimrc: No
What is your airline configuration: default
if you are using terminal:
terminal: iTerm2
$TERM variable: xterm-256color
color configuration (:set t_Co?):
if you are using Neovim:
does it happen in Vim: ???

actual behavior
When using ALE with flake8 to write python code, if I do not use flake8, then the status line looks good in airline's default theme. But once I check the whole file with it, then the status line returns to what it looks like without airline.
expected behavior
The theme of the status line should be consistent after running grammar check or anything.
screen shot (if possible)

How to reproduce? Do you have perhaps also lightline installed? Please provide a minimal vimrc example

Am 18.11.2020 um 22:37 schrieb Centauria<EMAIL_ADDRESS>
environment
vim: 8.1.2292
vim-airline: 0.11
OS: MacOS Catalina
Have you reproduced with a minimal vimrc: No
What is your airline configuration: default
if you are using terminal:
terminal: iTerm2
$TERM variable: xterm-256color
color configuration (:set t_Co?):
if you are using Neovim:
does it happen in Vim: ???
actual behavior
When using ALE with flake8 to write python code, if I do not use flake8, then the status line looks good in airline's default theme. But once I check the whole file with it, then the status line returns to what it looks like without airline.
expected behavior
The theme of the status line should be consistent after running grammar check or anything.
screen shot (if possible)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

I see, I went into a folder called lightline-ale, and delete this folder solved my problem


--dryrun does nothing in combination with --baseline

Describe the bug
Dry running a baseline does not work.
To Reproduce
Run grate -cs $CS --baseline --dryrun. Observe that grate has applied the baseline to the database, created a grate schema, three tables and marked the migrations as run.
Expected behavior
grate prints what would happen, but does not write anything to the database.

Thanks for reporting this, I'll endeavour to get a fix in ASAP for you once I can find some time.


Fix tests for play_for verb

Goes on top of #1
Should start reviewing from b7f2ae51b74a300a347008771243b885d72a972f onwards
This PR fixes and adds missing tests to the play_for verb (Play::play(duration))

@gbiggs for review.

OK to merge?

OK to merge?

Feel free to do so. I don't have the bits to do so (no write access). All the PRs are shown as approved but there is not merge button available. If you could do so, feel free to proceed with all.

Closes #1 #2 #3

@gbiggs note that #2 was not included in this set of commits because it only depended on #1.


Alt+Space doesn't work from Settings pages

Accessibility issue. Cannot access system menu from keyboard.
Open Terminal to say a command prompt. Hit Alt+Space to open the system menu, and then pick "Settings". Now hit Alt+Space to open the system menu again, say because you want to maximize the terminal.
Expect: System menu opens.
Actual: Nothing happens.
The only way to get Alt+Space to work is to click on a blank space on the title bar (to get focus out of the Settings pane). However, there is no way to get focus onto the title bar via the keyboard. Alt+Up can't go up that high.
Alt+Space is a very common keyboard shortcut and users expect it to work universally. Requiring a click on the title bar defeats the purpose of a keyboard shortcut.

Originally filed in MSFT-41390832

#11970

/dup #11970


Gradle 7.4+ regression: configure on demand breaks project artifacts resolution for targeted builds

Context

We enabled configure on demand in our mono-repo build for performance reasons.  Despite our use of kotlin dsl this worked fin with gradle 7.3.3. Upon upgrading to gradle 7.5 broke our build reverting back to 7.3.3 makes it work again.
I provide a reasonably minimized project which demonstrates the issue.
Changing the gradlew wrapper properties to any version above 7.3.3 reproduces the problem.
I am aware of the disclaimer that discourages using config on demand with kotlin dsl builds and we have disabled it for now at the cost of some performance. Since this was still a regression we figured the repro might still be helpful to help stabilize the feature.
Expected Behavior
Given the provided project, running
/gradlew --configure-on-demand :task-persistence:build

should build successfully
Current Behavior
/gradlew --configure-on-demand :task-persistence:build
Configuration on demand is an incubating feature.
> Task :task-persistence:compileKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':task-persistence:compileKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':task-persistence:compileKotlin'
   > Could not resolve all files for configuration ':task-persistence:compileClasspath'.
      > Could not find com.malt:task-domain:3.5.0-SNAPSHOT.
        Required by:
            project :task-persistence

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 12s
23 actionable tasks: 11 executed, 12 up-to-date

Funny thing is that swapping the project dependencies in  task-persistence/build.gradle.kts results in the same error but failing to resolve some-module instead of task-domain.
Steps to Reproduce
demo-gradle.zip or https://github.com/jeantil/gradle-debug as you prefer
Your Environment
The failure was reproduced on all the systems we tried (mac amd64, arm64, linux ubuntu and debian). the provided build scan url is from my laptop.
Build scan URL: https://scans.gradle.com/s/5u6grwvihpahm

Confirmed to be broken with 7.4

This issue is still reproducible with 8.3-rc-3


400 Bad request - Trying to upload photo or album

Requirements

[x] I've searched the Issues
[x] I've read the basic concepts
[x] I'm using the latest version
[ ] I've debugged my code using the DEBUG variable.

Platform

[x] I'm using Node.js version v12.18.1

Description
I'm trying to public a image or album but it's returning 400 Bad Request. (The file path is correct, I've checked!)
Code
ig.publish.photo({
    file: waitingFile,
    caption: waitingDescription
});

Error and Output
(node:3788) UnhandledPromiseRejectionWarning: IgResponseError: POST /rupload_igphoto/1610720084925_0_8828849218 - 400 Bad Request;
    at Request.handleResponseError (C:\Users\garci\Documents\Tecticias\bot_local\node_modules\instagram-private-api\dist\core\request.js:125:16)
    at Request.send (C:\Users\garci\Documents\Tecticias\bot_local\node_modules\instagram-private-api\dist\core\request.js:53:28)
    at async UploadRepository.photo (C:\Users\garci\Documents\Tecticias\bot_local\node_modules\instagram-private-api\dist\repositories\upload.repository.js:17:26)
    at async PublishService.photo (C:\Users\garci\Documents\Tecticias\bot_local\node_modules\instagram-private-api\dist\services\publish.service.js:79:31)

What's the file type you're trying to upload? Only Jpeg files are supported by instagram.

What's the file type you're trying to upload? Only Jpeg files are supported by instagram.

What's the file type you're trying to upload? Only Jpeg files are supported by instagram.
.jpg images only.

What's the file type you're trying to upload? Only Jpeg files are supported by instagram.
.jpg images only.

Do you have a sample image?

Do you have a sample image?

Hi, I am getting this error today. I can not upload photo anymore
This is the file that I upload
https://drive.google.com/file/d/12BS-Jl9gZEdhdpR5YIkZa0-0CZHaU0iQ/view?usp=sharing
This is the error I got

Error: POST /api/v1/media/configure/ - 400 Bad Request;
at Request.handleResponseError (D:\Projects\Electron\mairasecure\node_modules\instagram-private-api\dist\core\request.js:125)
at Request.send (D:\Projects\Electron\mairasecure\node_modules\instagram-private-api\dist\core\request.js:53)
at process._tickCallback (internal/process/next_tick.js:68)

The file is square and it's .jpeg

Hi, I am getting this error today. I can not upload photo anymore
This is the file that I upload
https://drive.google.com/file/d/12BS-Jl9gZEdhdpR5YIkZa0-0CZHaU0iQ/view?usp=sharing
This is the error I got

Error: POST /api/v1/media/configure/ - 400 Bad Request;
at Request.handleResponseError (D:\Projects\Electron\mairasecure\node_modules\instagram-private-api\dist\core\request.js:125)
at Request.send (D:\Projects\Electron\mairasecure\node_modules\instagram-private-api\dist\core\request.js:53)
at process._tickCallback (internal/process/next_tick.js:68)

The file is square and it's .jpeg

same issue

This is the file that I upload
https://drive.google.com/file/d/12BS-Jl9gZEdhdpR5YIkZa0-0CZHaU0iQ/view?usp=sharing

I tried the file and it works fine. Make sure to always upload the right filetype (Use file image.jpg to test if it's a real jpeg).

@eileooo @GamerStop @abdulahkam
use small size jpg images (for example 1696x1064

)

@Nerixyz I face the same issue and I tried all the things in the above threads but none of these are working.
<Buffer 3c 21 64 6f 63 74 79 70 65 20 68 74 6d 6c 3e 3c 68 74 6d 6c 20 6c 61 6e 67 3d 22 65 6e 2d 55 53 22 20 64 69 72 3d 22 6c 74 72 22 3e 3c 68 65 61 64 3e ... 736187 more bytes> IMAGE_BUFFER
IgResponseError: POST /rupload_igphoto/1672337601751_0_5481814027 - 400 Bad Request;


Buttons in the top bar not visible

Hi,
for example the search button does not look how it is supposed to. See Screenshot

And the fonts in the left menu are also not easily readable.

Thanks a lot!

Came here to report the same issues, only to find that you beat me to it. Cheers.

Should be fixed now. Please report if you still find something after a refresh.


Adjust Go renovate config to ensure apiextensions above v4.0.0

Checklist

[ ] Update changelog in CHANGELOG.md.

Closing for https://github.com/giantswarm/devctl/pull/336


The prepublish script changes the export signature, mismatch to @types/punycode

The prepublish script changes the export signature, and in the npm-published package this new export signature makes it mismatch the type declaration in @types/punycode for typescript.

I think the @types/punycode is for Node.js' built-in and deprecated punycode module. This will be deprecated since v7.0.0. (coming soon)
I'd like to suggest @bestiejs include it's own TypeScript Declaration File within this package.


How best to return and view actual diffs?

The doc says that if the patch listing doesn't successfully recreate the doc it's a bug, but it also says there's no guarantee on consistently arriving there the same way each time. How can I best use the resulting listing for comparison? I found when I removed a leaf node, and compared before and after, instead of a simple DeleteNode, the patch listing first moved a second level node in an unexpected way, causing the need to rebuild the entire tree with moves, inserts, and updates all over the place. It recreated the doc beautifully, but what can I do with that edit list to be able to easily see what the differences are between the before and after?
My goal is to capture when text nodes are updated or attributes are changed, and to insert an attribute to indicate the change in the result.. a revised="yes" of sorts. With the behavior I described it doesn't seem that's possible because if the entire tree might be recreated, searching for UpdateTextIns will yield far more updates than necessary.
Thanks for any help.

It's a common problem when making test data that your nodes are too similar to each other, and that xmldiff can't tell the difference between you moving a node or changing it. Real XML data is usually more complex and doesn't have that problem as much. Trying out different modes to see what best fits your data is helpful there.
The xmldiff xml-formatter does something seminar to what you want, it adds information to the leaves on the actions, like diff:rename="br" showing that this node was called "br" in the first file, and diff:insert="" if it's new and diff:delete="" if it was removed.

Sorry for not getting back to you sooner. Not sure what you meant by test data, I was diffing between an old and new version of a file that was edited in a way an author might edit it. I think I just deleted a paragraph from a section.
Anyway, I took a look at the xml-formatter output and its results are indeed more promising than using the patch listing. It marked changes only in those areas where there actually were changes. Except, I did find, however, that it deleted a node and re-added it. But maybe I can try to detect those instances somehow and see if I can ignore them.
e.g.
In the context of the entire file diff, the xml-formatted result was this. Notice that the <myValue> node is the same but was deleted and re-inserted. I double-checked and the whitespace is the same in both files.
            <myItem rev="v1.1" diff:add-attr="rev">
                <myCrit>

Lorem ipsum

                </myCrit>
                <myValue diff:delete="">> <myLabel
                        keyref="KEY_TWO" />
                </myValue>
                <myValue diff:insert="">> <myLabel
                        keyref="KEY_TWO" diff:insert="" />
                </myValue>
            </myItem>

But, if I were to pull out just that section with only the added rev, the xml-formatted diff works just fine.
f1.xml
<myItem>
  <myCrit>

Lorem ipsum

  </myCrit>
  <myValue>> <myLabel
          keyref="KEY_TWO" />
  </myValue>
</myItem>

f2.xml
<myItem rev="v1.1">
  <myCrit>

Lorem ipsum

  </myCrit>
  <myValue>> <myLabel
          keyref="KEY_TWO" />
  </myValue>
</myItem>

result
<myItem xmlns:diff="http://namespaces.shoobx.com/diff" rev="v1.1" diff:add-attr="rev">
<myCrit>
Lorem ipsum
</myCrit><myValue>> <myLabel keyref="KEY_TWO"/>
  </myValue></myItem>


Add DCAN

NOTE: The DCAN default hyperparams don't seem to be the best choice of hyperparameters (since number of levels = 1, which means we don't have Dilated Conv layers of size 2, 4, 8, etc. We have only 1). I've opened an issue on the official DCAN repository.
NOTE: On further investigation, a 3-level DCAN (our implementation) has 8.9M params (the paper mentions that the model has 8.7M params. So, it's likely that they used a 3-level DCAN.
To-dos:

[x] Add layers (label_wise_attn, word_embedding_layer, temporal_block, temporal_conv_net)
[x] Add DCAN model class.
[x] Check if the model works (ran it for 11% of an epoch).
[x] Add doc-strings to functions and classes.
[x] DCAN uses label smoothing. I think we will have to write a custom loss class that inherits from PyTorch losses.
[x] Train model and verify results.
[x] Add log statements.
[x] Change dropout to scalar.

Do later:

[ ] Add a param, num_level. If num_level is specified, the user does not have to specify lists for the other model params.
Model Structure:

DCAN(
  (word_embedding_layer): WordEmbeddingLayer(
    (embed): Embedding(49800, 100, padding_idx=0)
    (dropout): Dropout(p=0.2, inplace=False)
  )
  (temporal_conv_net): TemporalConvNet(
    (temporal_blocks): ModuleList(
      (0): TemporalBlock(
        (conv_temporal_sub_blocks): ModuleList(
          (0): ConvTemporalSubBlock(
            (conv_layer): Conv1d(100, 600, kernel_size=(2,), stride=(1,), padding=(1,))
            (chomp1d): Chomp1d()
            (activation): ReLU()
            (dropout): Dropout(p=0.2, inplace=False)
          )
          (1): ConvTemporalSubBlock(
            (conv_layer): Conv1d(600, 600, kernel_size=(2,), stride=(1,), padding=(1,))
            (chomp1d): Chomp1d()
            (activation): ReLU()
            (dropout): Dropout(p=0.2, inplace=False)
          )
        )
        (downsample): Conv1d(100, 600, kernel_size=(1,), stride=(1,))
        (output_activation): ReLU()
      )
      (1): TemporalBlock(
        (conv_temporal_sub_blocks): ModuleList(
          (0): ConvTemporalSubBlock(
            (conv_layer): Conv1d(600, 600, kernel_size=(2,), stride=(1,), padding=(1,))
            (chomp1d): Chomp1d()
            (activation): ReLU()
            (dropout): Dropout(p=0.2, inplace=False)
          )
          (1): ConvTemporalSubBlock(
            (conv_layer): Conv1d(600, 600, kernel_size=(2,), stride=(1,), padding=(1,))
            (chomp1d): Chomp1d()
            (activation): ReLU()
            (dropout): Dropout(p=0.2, inplace=False)
          )
        )
        (output_activation): ReLU()
      )
    )
  )
  (linear_layer): Linear(in_features=600, out_features=300, bias=True)
  (activation): ReLU()
  (output_layer): OutputLayer(
    (label_wise_attn): LabelWiseAttn(
      (U): Linear(in_features=300, out_features=50, bias=True)
    )
    (final): Linear(in_features=300, out_features=50, bias=True)
  )
)

Results:
MIMIC-III (top-50, ours), with 2 level DCAN:
Val @ epoch 46:
INFO — Evaluate on val dataset
INFO —    prec_at_5: 0.678521
INFO —    prec_at_8: 0.549315
INFO —     macro_f1: 0.662994
INFO —     micro_f1: 0.733202
INFO —    macro_auc: 0.933964
INFO —    micro_auc: 0.952682
INFO — Checkpoint saved to ckpt-46.pth
INFO — Checkpoint saved to best-46.pth (prec_at_8: 0.549315)

Val @ epoch 56:
INFO — Evaluate on val dataset
INFO —    prec_at_5: 0.678266
INFO —    prec_at_8: 0.549156
INFO —     macro_f1: 0.663466
INFO —     micro_f1: 0.732965
INFO —    macro_auc: 0.934129
INFO —    micro_auc: 0.952837
INFO — Checkpoint saved to ckpt-56.pth

Test (@ epoch 46):
INFO — Loaded checkpoint from best-46.pth
INFO — Use GPU
INFO — Evaluating on test dataset
INFO —    prec_at_5: 0.679963
INFO —    prec_at_8: 0.553301
INFO —     macro_f1: 0.655410
INFO —     micro_f1: 0.727384
INFO —    macro_auc: 0.933417
INFO —    micro_auc: 0.952115
INFO — Saving result on results/dcan_mimic3_50/test_result.json

MIMIC-III (top-50, old), with 2 level DCAN (training not complete):
Val (@ epoch 26)
2022-04-01 12:41:14,544 — src.trainers.base_trainer — INFO —    prec_at_5: 0.642721
2022-04-01 12:41:14,551 — src.trainers.base_trainer — INFO —    prec_at_8: 0.517721
2022-04-01 12:41:14,563 — src.trainers.base_trainer — INFO —     macro_f1: 0.564367
2022-04-01 12:41:14,574 — src.trainers.base_trainer — INFO —     micro_f1: 0.668651
2022-04-01 12:41:14,643 — src.trainers.base_trainer — INFO —    macro_auc: 0.906983
2022-04-01 12:41:14,663 — src.trainers.base_trainer — INFO —    micro_auc: 0.932760

Test (@ epoch 26)
2022-04-01 12:47:00,561 — src.trainers.base_trainer — INFO —    prec_at_5: 0.642684
2022-04-01 12:47:00,562 — src.trainers.base_trainer — INFO —    prec_at_8: 0.523641
2022-04-01 12:47:00,562 — src.trainers.base_trainer — INFO —     macro_f1: 0.560526
2022-04-01 12:47:00,562 — src.trainers.base_trainer — INFO —     micro_f1: 0.665048
2022-04-01 12:47:00,563 — src.trainers.base_trainer — INFO —    macro_auc: 0.905683
2022-04-01 12:47:00,563 — src.trainers.base_trainer — INFO —    micro_auc: 0.932133

@dalgu90, the weirdest thing is happening. I am pushing to my branch, but the commits are not showing up on this PR 🤣 . I think I'll merge this one, and open another PR for the rest of the changes.


POMDP Tutorial link broken

The POMDP Tutorial link in the README is not working for me.
The browser says:
400 : Bad Request
We couldn't render your notebook
Perhaps it is not valid JSON, or not the right URL.
If this should be a working notebook, please let us know.
The error was: HTTP 403: Forbidden
I am logged into github, so it seems that I don't have the proper credentials on ipython.org

It seems to work for me.

Works now for me as well. Guess the problem was on their side.


How to make paginate work with localize blog?

Expected behaviour
page_articles to return paginate based on locale
Actual behaviour
page_articles return every blog
Steps to reproduce the problem
Here are my config
activate :i18n, :mount_at_root => :th # Mount spanish at root instead

activate :blog do |blog|
  # This will add a prefix to all links, template references and source paths
  # blog.prefix = "blog"

  blog.permalink = "{lang}/{title}.html"
  # Matcher for blog source files
  blog.sources = "articles/{lang}/{year}-{month}-{day}-{title}.html"
  blog.taglink = "tag/{tag}.html"
  # blog.layout = "layout"
  # blog.summary_separator = /(READMORE)/
  # blog.summary_length = 250
  # blog.year_link = "{year}.html"
  # blog.month_link = "{year}/{month}.html"
  # blog.day_link = "{year}/{month}/{day}.html"
  # blog.
  default_extension = ".markdown"

  blog.tag_template = "tag.html"
  # blog.calendar_template = "calendar.html"

  # Enable pagination
  blog.paginate = true
  # blog.per_page = 10
  # blog.page_link = "page/{num}"
end

And my dir is like this
source
- articles
  - en
  - th

Additional information

Ruby version: 2.4.1
Middleman version: 4.2.1
Middleman Blog version: 4.0.2
OS version:  OSX 10.12.6 (16G1036)

@sarunw see my comment at #343 to find my rather hacky workaround. Hope it helps you too!

ℹ This issue is stale because it has been open for more than 90 days with no activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.


[Bug] Will pick up pink plush rabbit in the house

Bug Report Here: https://www.nexusmods.com/stardewvalley/mods/20831?tab=bugs

This issue is resolve by #13


Enable web console to create projects/namespaces

Overview
When creating a new address space, if you're able, allow the creation of a new project too.
Design
If you have a more detailed design in mind, or as you plan to implement this feature, write a design doc with the details. Use the template and raise a PR with the design doc, and link to this issue.
Tasklist
If/when you can, enumerate the tasks required to complete the feature in order to track progress as the feature is implemented.

Duplicate of #2730