[TinyYolov2]  detectFaces - expected options to be instance of TinyFaceDetectorOptions

Error: detectFaces - expected options to be instance of TinyFaceDetectorOptions | SsdMobilenetv1Options | MtcnnOptions | TinyYolov2Options
how use faceapi.detectSingleFace withFaceLandmarks  and withFaceDescriptor for TinyYolov2?
example
faceapi.detectSingleFace(videoEl,   new face.TinyYolov2Options() ).withFaceLandmarks().withFaceDescriptor()

tyniOptions = new faceapi.TinyFaceDetectorOptions({       inputSize: 128,       scoreThreshold: 0.5     })
 const detections = await faceapi         .detectSingleFace(input,tyniOptions)         .withFaceExpressions()       console.log(detections)

The export of TinyYolov2Options got lost along the way with some release it seems. There is no real reason to use TinyYolov2 anymore since TinyFaceDetector will perform better as @uriel2707  implied.
The error message should probably be adjusted, but I will hold that off since I want to deprecate the MTCNN as well.
I will keep this issue open as a reminder.

great thanks


Add a how to debug section to the README.md

@lboehm here is a first draft on how to debug. Is this what you had in mind?

@tobiasqueck Thanks a lot, I will try it out in a few days and I will report back.

Hi @tobiasqueck,
I wanted to fix that issue, but ran into some problems - so I can't say for sure if this guide helps me to get going. But until now I've got one small improvement. You wrote:

Using the debug terminal, execute all tests with pnpm test or a specific one e.g. in fiori-freestyle-writer, execute pnpm test -- test/basic.test.ts.

I would add the information, that you have to switch directories for running a single test. Maybe something like that:

Using the debug terminal, execute all tests with pnpm test or a specific one e.g. in fiori-freestyle-writer, execute pnpm test -- test/basic.test.ts in the fiori-freestyle-writer directory (\packages\fiori-freestyle-writer).

BR
Lukas

@lboehm please check again

@tobiasqueck Looks good! 👍


[SYSTEMML-503] Update license for CSS and JS

Add license info for bootstrap.min.js, bootstrap.min.css, anchor.min.js, and jquery-1.12.0.min.js.
Delete modernizr js file.

@lresende
Please review. Is this the proper way to include these licenses in the project?
Added license info to src/assembly/standalone/LICENSE since this is where the other library license info is included.

@lresende Does all the license info in the standalone LICENSE need to be included in the project root-level LICENSE?

@lresende Also, do we need two LICENSE files, or can we reduce it to one?

@lresende ping.

@deroneriksson The changes here looks good, but as we are also making some of these html/css files under doc folder available on the source distro, we need to include another LICENSE for the source distro that only include the licenses related to doc. When we have the LICENSE for source distro, we should update the source assembly to use those when producing the source distro. Other then that LGTM.

@lresende I will go ahead and merge this PR then. The location of another LICENSE file may lead to some discussion, so I'll do that in a separate PR.


Fix no-trailing-whitespace for comments and EOF

PR checklist

[x] Addresses an existing issue: #2049
[x] New feature, bugfix, or enhancement

[x] Includes tests

[x] Documentation update
[x] Enable CircleCI for your fork (https://circleci.com/add-projects)

What changes did you make?
Detect trailing whitespace in comments.
Detect trailing whitespace before EOF.
Add fixer.
Is there anything you'd like reviewers to focus on?
(optional)

please rebase

Yay, thanks @ajafff! Was just looking for this feature today


deepl translation does not work in release 2.5.10

Expected Behavior
Should be able to translate titles, descriptions, and other .nfo metadata with deepl.
Current Behavior
No translation is provided. Translation with google still works.
Steps to Reproduce (for bugs)

Set the API key for sort.metadata.nfo.translate.deeplapikey in jvSettings.json
Choose deepl as the translate module
Sort with Japanese scrapper like MGStageJa

Your Environment

Module version used: 2.5.10
Operating System and PowerShell version: Docker on Mac OS 11.5.2

Getting new API key fixed the issue.


Fix Signed Builds

Builds break immediately after being signed—specifically on Mac M2. Including identity: null fixes this problem—but, in the long run, will result in an inability to create applications that can be widely shared.
One possible solution is to dynamically add the identity: null declaration if the conditions for notarization aren't met on Mac, though we'll first have to check that proper notarization fixes this problem in the first place.

For further context, this also happens on my Intel Mac, though this throws a CSSMER_TP_CERT_REVOKED error that results in the same The application "X" can't be opened error appearing when the app is opened.
These resources may be helpful for resolving this issue on systems running MacOS:

https://github.com/electron-userland/electron-builder/issues/1046
https://github.com/electron-userland/electron-builder/issues/6564

This is avoided on the commoners-starter-kit because the process:
skipped macOS application code signing  reason=cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate, it could cause some undefined behaviour, e.g. macOS localized description not visible, see https://electron.build/code-signing allIdentities=     0 identities found

So at least for Github Actions, this can be subverted by setting secrets like APPLE_DEVELOPER_ID_IDENTITY_HASH, APPLE_DEVELOPER_ID_NAME, APPLE_ID, APPLE_PASSWORD, MACOS_CERTIFICATE, and MACOS_CERTIFICATE_PWD.


包含登录、注册、key轮训池和卡密套餐管理的chatGPT-WEB管理后台 https://github.com/gouguoyin/chatgpt-web

项目地址 https://github.com/gouguoyin/chatgpt-web
客户端截图

管理端截图

为了方便大家沟通交流，同步消息，建了QQ群，目前已有828人，群号 145225165，申请入群后请及时回复验证码，否则360秒后会被群机器人自动移除群。

大佬咋购买。

爬，issue是让你拿来打广告的吗?

就缺这点流量吗？

纯属打广告的群，MIT协议都不遵守
MIT License
Copyright (c) 2023 ChenZhaoYu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
 IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

 纯属打广告的群，源码还卖1500，MIT协议都不遵守 MIT License
Copyright (c) 2023 ChenZhaoYu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

UI用的原作者，使用该UI也征询了原作者同意，并且原作者也在qq群里，后端接口和管理后台全部用其他语言重写了，为什么就不能收费？没有强买强卖吧？

能否打包成docker？这个太赞了

你要打广告回自己那打啊，跑这来开issue打，还美其名曰方便大家沟通交流。这是issue又不是广告位，以后都像你一样来这开issue打广告，真正需要帮助的人的issue都被刷到后面去，你觉得合适吗？要点脸好吧。


[material-ui][docs] Revise the Accordion page

Part of #39952. Adds documentation for accordion's complementary components.
https://deploy-preview-40284--material-ui.netlify.app/material-ui/react-accordion/#introduction

[x] I have followed (at least) the PR section of the contributing guide.

@danilo-leal nice! I fixed the hydration error in https://github.com/mui/material-ui/pull/40284/commits/802eb4afe4b608a049cf9bffac3231fb6d1a77a2

@samuelsycamore, appreciate the review! 🙏 Are you foreseeing any other changes to this PR? I applied the latest template you put together for the Material UI docs on my first edit, and with these edits, I think it's looking pretty good. What do you think?

Good call—pushed a commit adding a few more sections for other props available to the Accordion!
One that is still broken, though, that I couldn't figure out properly, is the transition demo. Would appreciate some help here! It seems there's a TypeScript issue with passing another transition component using the TransitionComponent pro. Every other demo, from other components, using that prop does it in a slightly different way. I'd love to have something like the Tooltip transition demo; it's simple, and it just works. 😬 Not sure what's going on here — aside from the TS thing, the content does fade out, but the container still stays there... 🤔

One that is still broken, though, that I couldn't figure out properly, is the transition demo. Would appreciate some help here! It seems there's a TypeScript issue with passing another transition component using the TransitionComponent pro.

@danilo-leal  marking the children prop here as optional seems to fix the typescript issue...
-children: React.ReactElement<any, any>;
+children?: React.ReactElement<any, any>;

it looks like this prop was original marked as required in #29028.

Uhm, I'm hesitant to change things on the source code of the Fade component to pull this PR off — maybe there's another way out that I'm just not seeing?

@danilo-leal I'm seeing that TransitionComponent.children is optional in Accordion, but is required in Tooltip. Making this prop also required in Accordion fixes the problem...
---TransitionProps & { children?: React.ReactElement<any, any> }
+++TransitionProps & { children: React.ReactElement<any, any> }

Hi! I discussed with @mnajdova, and we think that the best path forward is to:

Cast the type on the demo for this PR (TransitionComponent={Fade as AccordionProps['TransitionComponent']). This is safe to do, as the Accordion component always provides children to the transition component.
We'll deprecate TransitionComponent prop in favor of slots.transition soon. I started to work on adding the deprecations yesterday. So let's get the correct type in slots.transition and not modify TransitionComponent.

Does that make sense?
Regarding this:

aside from the TS thing, the content does fade out, but the container still stays there

By replacing the Collapse animation, we lose the collapse mechanic that changes the container's height. I recommend creating a custom transition for this demo that combines the collapse and fading mechanics.

@DiegoAndai appreciate the guidance! Let me know if the way I did it up there works well — didn't use a custom transition but instead toggled the styles conditionally using the Accordion's expanded state. 🤙

@DiegoAndai appreciate the guidance! Let me know if the way I did it up there works well — didn't use a custom transition but instead toggled the styles conditionally using the Accordion's expanded state. 🤙

@danilo-leal yeah! that looks good 😊

Thanks for all your help and feedback on this!

Thanks for all your help and feedback on this!


RFC 0010: Drop core runtime

Feedback is open until Tuesday, January 14th

The core runtime had the advantage of being very simple to comprehend, offering a good "getting started", minimal experience.
Users should not have to know anything about Knative to deploy simple workloads.
Therefore, we should rework the UX around the current knative deployer commands.
It may sound silly at first but what about keeping the core commands and re-implement them so that they create Knative resources with sensible defaults under the hood?

It may sound silly at first but what about keeping the core commands and re-implement them so that they create Knative resources with sensible defaults under the hood?

I'm not sure what you're proposing. Can you give a couple concrete examples? How would this be different than the current Knative runtime?

Users should not have to know anything about Knative to deploy simple workloads.

It has never been a design goal to hide Knative from riff users. I'd say it's an anti-goal.

It has never been a design goal to hide Knative from riff users. I'd say it's an anti-goal.

To me, riff is about allowing users to deploy (serverless) workloads to Kubernetes with as little friction as possible.
Today, if I want to deploy a simple request-reply workload, I create a function (riff function create...) and a core deployer (riff core deployer create...) and I'm done.
Tomorrow, for the same thing, I would create the function and the Knative deployer. Then, I would need to understand what Knative Services, Routes and Revisions are and how to disable scale-to-0 (even autoscaling, maybe). That is significantly more complex than what I can do today with core.
I then have two questions:

are these simple workloads our target?
if they are, and considering that core is gone, do we plan to remove the "friction" I described above?

To reparaphrase your comment:
Today, if I want to deploy a simple request-reply workload, I create a function (riff function create...) and a ~core~knative deployer (riff knative deployer create...) and I'm done.

Tomorrow, for the same thing, I would create the function and the Knative deployer. Then, I would need to understand what the Knative autoscalerm, Services, Routes and Revisions are and how to disable scale-to-0 (even autoscaling, maybe). That is significantly more complex than what I can do today with core.

While I wouldn't recommend it for either runtime, a user can be equally naive about the implementation details of the core and knative runtimes. The surface area of the core Deployer and knative Deployer resources is by design nearly identical. The only different between the two is that the knative Deployer has knobs for min/max replicas. Since the core runtime doesn't have a scaler, there's no need for these knobs.
The core runtime is simpler because there are fewer moving parts, but that's because there are so many essential capabilities it doesn't provide. The core runtime, as is, is a day-2 dead end. As a user you must bring your own ingress, ssl termination, scaling. If you want that level of control, great, then also create a Deployment and Service.

There seems to be some subtle differences between services exposed by the knative runtime vs the core - our demo storefront app can't seem to access the inventory-api service if it's deployed with the knative deployer. I'll post some  more in the riff slack.

I'm concerned that we are rushing (and maybe over-simplifying) this decision
IMO @fbiville is making a valid point that there is a loss of simplicity.
I wonder if this RFC isn't really about limitations of Knative (too little ability to configure runtime strategies) leading to issues with the design of riff runtimes (artificial dichotomy).
I suggest keeping this open and starting a discussion to explore improvements to the Knative design which enable something as simple as what we have in the riff Core runtime.


Strip carriage return from bash scripts

What's the problem
There are issues running bash scripts on Linux with Windows style EOL.
Encountered issues after deploying from Windows.
What is being changed
Running a sed  -i 's/\r//' <file> command to remove any carriage return after adding a file to the EC2 image.

Hi krajla,
Thanks for noticing this issue.
We have also noticed that windows EOF chars will cause bash script failed to execute sometime, the way we solve it at that time is to pack it as a release.zip and have people download it instead of clone it.
But as many custom use case will involve in making change to the bash script (ex: start_server.sh), it probably make more sense not to address this in our side.

The only comment I have is that there seems to have some duplicate code (for deploying bash script, grant it execution permission and run sed command to pre-process it) - it will be nice if we can pack it as a function and re-use it.
I will do that in a follow up PR though.

PR merged.
Thanks, krajla :) !

Follow-up PR:
https://github.com/VeriorPies/MineCloud/pull/52

The only comment I have is that there seems to have some duplicate code (for deploying bash script ...

Adding to this, if the scope of the project does increase it might become increasingly harder to maintain multiple bash scripts.
It might be worth looking into either:

A dedicated mini CLI app(statically typed or not depending on the preference of the contributors 😄).
A small app that listens to SNS messages published by the Lambda functions (instead of SSM), with the added bonus of specific topic handling in case of multiple/different types of deployments.

Just my 2 cents.


fix: remove unnecessary import of "solid-styled-components"

Description
Remove unnecessary import of "solid-styled-components"
Issue
Mitosis will now wrongfully add import { css } from "solid-styled-components in generated Solid components when styleType attribute is set as "style-tag" in mitosis.config.js like this:
// mitosis.config.js
 solid: {
    stylesType: 'style-tag'
 }

Expected Behavior
Mitosis will only add import { css } from "solid-styled-components" when there are style code in Mitosis jsx and styleType attribute is set as "styled-components"
This PR will fix the issue and make it behave as expected.

Hi @samijaber! Please check the pr if you have the free time, thanks.


[pattgen, WiP] Skeleton PATTGEN hjson and top module

The wrapper is for bronze netlist

Work-in-progress

Signed-off-by: Tung Hoang<EMAIL_ADDRESS>

@sriyerg Do I need to append "pattgen" to IPS variable of hw/Makefile in the same commit?


refactor(dbm-services): 优化dbha配置文件命名

关联研发信息
dev_branch: refactor/nameservice_config_refactor/#1181
target_branch: v1.2.0


XMLHttpRequest: ignore case for request headers

HTTP headers are case-insensitive, so we should treat them that way when they're being set on XMLHttpRequest.

@facebook-github-bot import


Fixes Error : 404 Page not found

Under the section Deploying the OpenCue sandbox environment, On opening docker compose raises an error such as:
Sorry, we couldn't find that page.
You can try any of the following instead:

@to09 It looks like this PR is a duplicate of #163 -- ok if I close this one?

I apology for the duplicate of #163 -- Yes, you can close this one.


How to close "go version -m" ?

Proposal Details
"go version -m"
It has exposed a lot of information, and I want to close it instead of using third-party software, as there may be a risk of being intercepted by security software.

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions


Unable to add Python 3.12 to CI due to dependency bugs

For the past few months we've been unable to enable Python 3.12 in our CI due to an outstanding autopep8 formatting bug: https://github.com/hhatto/autopep8/issues/712
We need to find a way forward as we do support Python 3.12 and we're even getting relatively close to Python 3.13. The options we have:

Drop autopep8 from the linters.
Use a different linter from autopep8.

For the second one I'd prefer not to revisit arguments made during previous discussions assuming they all still stand and which are the reason to use autopep8. So I'd like to go with option 1 instead, unless people want to re-evaluate using ruff for both formatting and linting.
@achilleas-k @ondrejbudai @thozza @mvo5

The third option would be to fix autopep8, it's strange issues, afaict stock autopep8 is fine, it only acts strongly inside a virtualenv (like the one that tox creates automatically). So we have a fourth option (not a good one, mind you): run autopep8 in a container with python3.12 and without virtualenv.
But if ruff is close enough to the autopep8 output that might be the most pragmatic way forward. I would prefer not to have too many source file re-formated in the process though, I find it makes git blame harder to follow.

@mvo5 For your second concern, we have a .git-blame-ignore-revs file that we can add any auto formatting commit to which should then be ignored by git blame (though I'm unsure if this is configuration or default behavior).
As far as your first idea, yes it'd be nice to fix up autopep8 however I think the virtual environment behavior is a red herring. The other reports had different versions of Python inside their virtual environments and I have yet to theorize a reason as to why a package would act differently given all versions the same in a virtual environment.


Login with email

I'm using registration via email.
ACCOUNT_AUTHENTICATION_METHOD = 'email'
ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_USERNAME_REQUIRED = False

Is there a way to sign in using this or should I write my own Login view? Looks like we currently only support username+password (from AuthTokenSerializer)

I was missing the allauth authentication backend in settings
AUTHENTICATION_BACKENDS = (
    # Needed to login by username in Django admin, regardless of `allauth`
    "django.contrib.auth.backends.ModelBackend",

    # `allauth` specific authentication methods, such as login by e-mail
    "allauth.account.auth_backends.AuthenticationBackend",
)

"email" should be given as "username" to the login endpoint, then it works

Should someone want to have users use "email" and "password" fields, one easy way to go about it could look like:
import rest_auth.serializers

class LoginSerializer(rest_auth.serializers.LoginSerializer):
	def get_fields(self):
		fields = super(LoginSerializer, self).get_fields()
		fields['email'] = fields['username']
		del fields['username']
		return fields

	def validate(self, attrs):
		attrs['username'] = attrs['email']
		del attrs['email']
		return super(LoginSerializer, self).validate(attrs)

+1 in having a graceful implementation on this.
Would be good to check allauth presets (if present) and have it implemented.

This is exactly what I needed. It'd be great to have it as a feature or at least mentioned in the documentation.

where to put in the serializer?

I'm having trouble getting the rest api to accept an email as username. Is this still relevant with version 0.9.1?

This worked for me without the serializer and just adding the settings. Here are my versions:
        'Django==1.11.7',
        'django-allauth==0.34.0',
        'django-rest-auth==0.9.2',
        'djangorestframework==3.7.3',

Hey Guys.. Newbie alert.
Wrapping my head around all the stuff that happens under the hood in django is a difficult task for. Put in the mix of rest_auth, allauth and drf and regular forms and it just blows my mind off.
A simple thing like email login should work. But it does not. Lots of suggestions on authentication backends, etc, etc.
After doing some debugging into the core I figured that rest_auth calls django's auth method. Django's auth always authenticates with respect to username field.
A Custom User model and/or manager should solve the problem I guess. Need to check how to do it.
A little bit of documentation with example on how to use social auth with pre-conditions and list of gotchas that others frequently face due to rest_auth integration with third_party libs would really go long way for beginners like me.

Hi,
I'm using registration via email but I am not sure why in the API END POINT its showing "USERNAME" as well.  Below are the settings,
ACCOUNT_EMAIL_REQUIRED = True ACCOUNT_USERNAME_REQUIRED = False
How can we disable the USERNAME option from the front end API


Prepare for initial release

This documents the project goals and amends the version to be no longer a pre-release.
This includes a bump to stylelint 13.7.0 which was released over the weekend.

Thanks @injms lot's of great catches there. I've amended accordingly.


improve http_server error handling

Problem
Currently http_server logs only a few of the available error messages, this makes it quite hard to debug simple mistakes.
Solution
This is just an improvement, it prints all the errors explicitly on the http_server module.
Related

#64

@anchpop typedppxlib idea right here


⚠ Samsung has degraded performance

In c0de65c, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2653 ms

Resolved: Samsung performance has improved in b24236c.


Split project into modules (statsd, newrelic, prometheus, datadog)

Update libraries (ZIO HTTP & ZIO JSON)
Update Scala 3 version
Update SBT

Closes https://github.com/zio/zio-metrics-connectors/issues/2
Closes https://github.com/zio/zio-metrics-connectors/issues/3

Nice changes @calvinlfer! Thank you! I can merge this once you fixed the merge conflicts.
Would you like to update the documentation in this PR too?

I've pulled all examples into the sample project module

I am happy to merge this now and create an issue to track the documentation. 🙂


Change styling for links in titles

Is your feature request related to a problem? Please describe.
Links, when placed in titles, have the same styling as when placed in normal text. It would be ideal for them to have the same font-family and color as other titles, but have the font-decoration set to "underline".
Describe the solution you'd like
As described in the previous section. I found that the following css worked:
#verification a {
  font-family: var(--pyc-theme-title-family);
  text-decoration: underline;
}
#verification a:not(:hover) {
  color: unset;
}

Before:
https://user-images.githubusercontent.com/71356958/159296276-99e67eae-51f2-4db9-92b5-d5d5992c0f11.mov
After (using the CSS above):
https://user-images.githubusercontent.com/71356958/159296100-854409e5-3bd2-4c3c-9386-6e3aad0f6fd3.mov
Describe alternatives you've considered
n/a
Additional context
n/a

This is a good idea, but there's a small problem. In CSS, we have to somehow set all link types that are also headers to have these properties. However, it's not like <h2><a> when everything is deployed, it's just <a>. So we have to somehow assign a class to these header links.

Aight I have time to kill, imma do this

Aight I have time to kill, imma do this

It was actually recently improved by a change I made to the styling. Might not need further changes
Before:

After:

Ah aight, so let's close this issue then

because I found this fix lmao
.markdown {
  *[class*='anchor'] {
    > a:not([class='hash-link']) {
      font-family: sentro.token-get('title-family');
      text-decoration: underline;

      &:not(:hover) {
        color: unset;
      }
    }
  }
}


issue #205 bugfix

Added if statements to check if value of attribute is not None. Function hasattr returns True when atrribute exists even if its value is None.
Related to issue #205

Hello, thanks for the PR!
I'm curious on the effect of hasattr(config, "max_seq_len"). Would it work without this since we're performing the check you have newly added?

I'm curious on the effect of hasattr(config, "max_seq_len"). Would it work without this since we're performing the check you have newly added?

It would work if we are sure that attribute like max_seq_len is always a part of the config class. In case there is no attribute like that and if statement would look like this if config.max_seq_len: there's gonna be an error AttributeError: type object 'config' has no attribute 'max_seq_len'

Seems I forgot to install pre-commit, but i think it not gonna work on mine python 3.11 cause in .pre-commit-config.yaml there is line python: python3.9 so anyway :/

Hey @MaciejKarasek , no worries. Actually, my python (for local dev) is also 3.11, so it would work as well :)
However, if you do not want to install, that's fine also! Feel free to look at the CI Details, and it would show you the issue and maybe a potential fix.

Thanks guys

Should be all right now.


[WIP] Fixes #3829 Squiggles disappear when file is reopened

Fixes #3829 Squiggles disappear when file is reopened
Fixes diagnostics not appearing.
Fixes too many task comments appearing
Remove unused names.

Doesn't actually fix the bug yet - there were other regressions that needed fixing first

Please run LaunchWithErrorsDontRun test when you're done. It's been failing because the errors don't appear in the error list.

Added the full fix. All the squiggle tests and the LaunchWithErrors tests pass


Does it support qwen2?

Does it support qwen2-1.5b?

Thanks for your interest in LMFlow. Yes, LMFlow support Qwen2. It there is any problem encountered, please feel free to let us know 😄


Outline general data teams blog

Beforehand take the udemy writing course: https://www.udemy.com/course/the-content-writing-course/learn/lecture/33773280?start=0#overview


Handle empty filenames as fields instead of files

When crafting browser requests it doesn't seem possible to leave out the filename in case you want to send a blob:
const body = new FormData();
body.append('json', new Blob(['{"foo":"bar"}'], {type: 'application/json'}));
fetch('/test', {method: 'POST', body});

Uses "glob" as filename.
const body = new FormData();
body.append('json', new Blob(['{"foo":"bar"}'], {type: 'application/json'}), '');
fetch('/test', {method: 'POST', body});

Uses "" as filename.
const body = new FormData();
body.append('json', new Blob(['{"foo":"bar"}'], {type: 'application/json'}), null);
fetch('/test', {method: 'POST', body});

Uses "null" as filename.
Therefore such requests are handled as file because of this undefined check:
https://github.com/mscdex/busboy/blob/master/lib/types/multipart.js#L174
Is it reasonable to also accept parts with empty filenames as fields? Wouldn't a real file always have a filename?
I think that this could be seen as breaking change.
A minor change would be adding an option for a custom filtering handler which let the user decide whether a specific part should be handled as file or field.

If it's any consolation, you can also use application/octet-stream as the mime type to force it as a file.

Thanks for the response. Unfortunately that doesn't work with the given feature from fastify-multipart as this requires the content type to be application/json.
However Fastify forked this repo and added a config option that gives the developer the possibility to decide which part is a field or a value.
https://www.npmjs.com/package/@fastify/busboy - See isPartAFile
I will close this issue as it has been fixed in the fork.


PersistedGrant record not created

Hi,
I am trying IdSvr4 with and MVC Core and MVC5 to do SSO. When i login first from MVC5 app and then try MVC core app, it is fine and SSO works but not when I login using MVC Core first and then try MVC5. In the latter case a login form is again presented.
The logs say  "cookies was not authenticated. Unprotect ticket failed".
Further i noticed that a record is created in PersistedGrants table for MVC5 app but never for MVC core app.

For the consent: Are they configured as the same client, or different? Do they have different consent settings?
For the cookie: Where did you see this error? In IdentityServer, or in one of the clients?

Hi Brock, i am not using consents for the time being. Cookie error is seen on the idsvr side.
Thanks

You will only see records in the grants table if you have authorization codes, refresh tokens, reference tokens, or user consent.

all the records created so far have type as authorization_code.
the following client conf was used to create database records for clients
`return new List
{
//MVC5-A
new Client
{
ClientId = "MVC5-A",
ClientName = "MVC5 A",
AllowedGrantTypes = GrantTypes.HybridAndClientCredentials,
				RequireConsent = false,

                RedirectUris = new List<string>
                {
                    "http://localhost:44306/signin-oidc"
                },

                PostLogoutRedirectUris = new List<string>
                {
                    "http://localhost:1278/"
                },

                ClientSecrets = new List<Secret>
                {
                    new Secret("secret".Sha256())
                },

                AllowedScopes = new List<string>
                {
                    StandardScopes.OpenId.Name,
                    StandardScopes.Profile.Name,
                    StandardScopes.Roles.Name,
                    StandardScopes.OfflineAccess.Name
                },

            },
            //MVC5-B client
            new Client
            {
                ClientId = "MVC5-B",
                ClientName = "MVC5 B",
                AllowedGrantTypes = GrantTypes.HybridAndClientCredentials,

				RequireConsent = false,

                RedirectUris = new List<string>
                {
                    "http://localhost:1278/signin-oidc"
                },

                PostLogoutRedirectUris = new List<string>
                {
                    "http://localhost:1278/"
                },

                ClientSecrets = new List<Secret>
                {
                    new Secret("secret".Sha256())
                },

                AllowedScopes = new List<string>
                {
                    StandardScopes.OpenId.Name,
                    StandardScopes.Profile.Name,
                    StandardScopes.Roles.Name,
                    StandardScopes.OfflineAccess.Name
                }
            },
            //MVC Core
            new Client
            {
                ClientId = "MVCCore",
                ClientName = "MVC Core",
                AllowedGrantTypes = GrantTypes.HybridAndClientCredentials,

				RequireConsent = false,

                RedirectUris = new List<string>
                {
                    "http://localhost:1278/signin-oidc"
                },

                PostLogoutRedirectUris = new List<string>
                {
                    "http://localhost:1278/"
                },

                ClientSecrets = new List<Secret>
                {
                    new Secret("secret".Sha256())
                },

                AllowedScopes = new List<string>
                {
                    StandardScopes.OpenId.Name,
                    StandardScopes.Profile.Name,
                    StandardScopes.Roles.Name,
                    StandardScopes.OfflineAccess.Name
                }
            }`

Just to update, i could resolve the cookie issue and now MVC5 and MVC core both are working fine with single sign on. It was a data protection issue. However the PersistedGrant record isse remains. At one point a record was indeed created for MVC Core when i handled DataProctection issue at the MVC Core server side (not at the IdSvr4).

If all you're doing is code flow, then the code persisted grant will only exist in the DB for a short while. Once the browser is redirected back to the MVC apps and they exchange the code for tokens, the code grant in the DB will be removed.


[New Feature] Weather forecast

Go to a city info page & it shows weather.
When you click on the weather, show the weather forecast
Use weather forecast API to show weather for next few days.
The endpoint for API is : /api/get-multiple-days-weather/4/chennai
The UI should be like this:

In the response,
The condensed parameter can be:
Thunderstorm
Drizzle
Rain
Snow
Atmosphere
Clear
Clouds

Show the UI background appropriate according to the above parameter values.

I'd like to work on this issue.

Sure @amy6 💯

I'll be using Retrofit. Can I get more details about the endpoint? Is condensed a parameter/object in the response? I'm not able to invoke the one shared (/api/get-multiple-days-weather/4/chennai).

We are already using okhttp everywhere. You can use that only.
Also, how are you trying to invoke this endpoint? See this for example:
https://github.com/project-travel-mate/Travel-Mate/blob/f0bf4fed479088fd0ad488ac28f8e8964a8bd632/Android/app/src/main/java/io/github/project_travel_mate/mytrips/MyTripInfoActivity.java#L202

We need to send authorization token also in the headers parameter.

 Got it, thank you! Will use OkHttp.

@amy6 Updates?

@Swati4star apologies for the delay. I'm working on adding new weather icons. Will post the UI screenshots on Slack tomorrow.


BringToFront now place the widget in the front of all its siblings

BringToFront and BringForward were doing the same thing.

They weren't quite doing the same thing, BringForward() has a return meaning it'll only be moved forwards one position, BringToFront() continues to iterate until the object is at the front of the list. The reason for this is to preserve the order of the other widgets. In your case, the front widget is moved to where the new front widget was previous.
For example if we had the following widget:
 [ widget1, widget2, widget3, widget4, widget5 ]

If we move widget2 to the front, we want the list to look like the following so order is preserved for the other widgets:
[ widget1, widget3, widget4, widget5, widget2 ]

In your case we'd end up with:
[ widget1, widget5, widget3, widget4, widget2 ]

Were you observing an issue with BringToFront() that lead to this, or was it just that the code appeared to be wrong? If there is a bug we can see if we can fix it another way :)

You are right.
I just got confused in some point of my work.
I was implementing a vector as the drawing order for the canvas in my project because the parenting system in tree don't let full control it.
There is some UI animations that I need a child coming and going back and forward of its parent.


Narrower search for $search and $tp price

Filter out all monster only items, and for tp price filter out non-sellable items

TP was easy enough, but as for $search, there are total of 4 items with "MonsterOnly" flag, while many more items with such name.


chore(config): remove indirection p2

Stack:

#2010
#2009 ⬅
#2008

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

This change is

✓ Commit merged in pull request #2010


Padding {P:} option can't take zero length string.

It seems like the following code will cause libxo to walk off the end of an array:
xo_emit("{P:}");

This ha something to do with it not accepting a zero length string for the 'P' (padding) modifier.
This causes some difficult to track down bugs due to what appears to be stack smashing.
Besides this bug, what this means that for potentially zero pads, you need additional logic.  See the following workaround:
https://github.com/splbio/freebsd/commit/31a2ccd9a7008a1190279c1e2f689f438fc46619

Fixed.


gem 'bootstrap-rails'

Wouldn't be rad to have a gem like jquery-rails that would tie into the asset pipeline?
;)
I'll get on it!

It sure wouldn't hurt :P How are you solving the "issue" with multiple plugins? Are you gonna include them all?

@pokonski got it...will wait.  wrt multiple plugins... will probably include all by default and then allow you to optionally generate an initializer in which you can configure.  thoughts?
@cgunther cool!  i won't do anything until I check them out.
Cheers,
Sam

@shwoodard configuration in initializer makes sense :)

Rather than putting something in an initializer file you can just take advantage of the manifest file so the user could optionally choose which components they want.
Have a look at how twitter-bootstrap-rails does it. They offer a single file you can reference in your manifest to include everything, or you can specify individual files (plugins).

I'm going to close this (as it's not really an issue) - maybe consider moving the conversation to the mailing list? Or keep going here - either way :)


Support custom favicon location and manifest.json

I like to provide a PWA for mobile devices.
Currently, no manifest.json is served at all (requires a meta link in HTML header as far as I know).
Similarly, the favicon is served, but the location is not configurable (relies on browser looking for domain.com/favicon.ico).
I'm not able to provide a PWA without the meta link in the shell component.
I guess I can work around with a custom shell component, but for now I forego the PWA.
The favicon I am also not serving, as it affects my entire domain root favicon.
Describe the solution you'd like
We should:

serve manifest.json from root or site-prefix if exists (default meta link) - this could default to off
serve favicon from root or site-prefix (add meta link)
allow user to override defaults (set custom location for manifest.json and favicon.ico)

Describe alternatives you've considered
I tried routing the favicon via my reverse proxy, but it affects the whole domain. I need the meta link to tell the browser where to look other than the domain root.
These commits show what I would like (the  tag in the HTML ):

https://github.com/lovasoa/SQLpage/pull/311/commits/e09e1dbb5a084854fab1c430522b138b5f6d870e
https://github.com/lovasoa/SQLpage/pull/311/commits/97d9a3c250f125d829d82141766c88b0d66c260f

But we need to implement it through the shell component.

Would you be ok with just adding a favicon and a manifest properties to the shell component ?
I'm not sure testing and refreshing the existence of favicon.ico and manifest.json is worth it or even desired.

Properties on the shell component is fine. I'll take a look when I get a moment.


Initialize hardware on first-access

This is a note to self: There are several places where we can delay initializing "mandatory" hardware since it may not be needed, such as serial port 1 and PCI BARs.

Some improvements here https://github.com/hioa-cs/IncludeOS/pull/1711


Change "enjoying creators update" to "enjoying the Fall Creators Update"

https://github.com/Jasius/Windows-theme/blob/master/css/r-windows.css
https://github.com/Jasius/Windows-theme/blob/master/css/r-windows10.css
Picture of what I'm talking about: https://i.imgur.com/MMbPLyp.png

@TheTimeWalker


feat: create select component

create Select component
moved select style to theme packages,

screen-capture (18).webm

Please move packages/components/select/select.stories.tsx to packages/components/select/stories/select.stories.tsx


Bazzite Portal "Install More Applications" link not working

Describe the bug
Just booted into a fresh install, and after going through the bazzite portal do install the system config applications (First and second pages of the portal), I got to the last page with links to the discord/docs/forum, and a link to "Install More Applications". Wanting to install other non-system apps like emulators and creative apps as was expected from previous versions.
What did you expect to happen?
I expected to see a new window or page pop up with options to install things like RetroArch & Ryujinx when pressng Open next to "Install More Applications" on the portal, but nothing happens.
Output of rpm-ostree status
alixbazzite@bazzite:~$ rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-gnome:stable
                   Digest: sha256:d016756dcb02570f7ed39c2bf636e8a31cdee1319ccdeca84ceb977ae6909665
                  Version: 41.20241125 (2024-11-26T03:44:46Z)

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-gnome:stable
                   Digest: sha256:d016756dcb02570f7ed39c2bf636e8a31cdee1319ccdeca84ceb977ae6909665
                  Version: 41.20241125 (2024-11-26T03:44:46Z)

Hardware
Dual boot with Windows on an HP Spectre 2-in-1.
Uses an Intel evo i7 processor and has Intel Iris Xe and discrete Intel Arc A370M graphics cards.
Extra information or context
The last time I used Bazzite's portal on a previous installation, there was an entire page for these "extra" applications that came up after the initial system application options. This appears to have changed slightly and just doesn't look like the Install More Applications feature is working properly.

I managed to reproduce the problem of the "install more applications" feature not working on bazzite-gnome. I've created a PR to fix this. For now, you can manually open the application to install additional software by simply searching for the word "software" where you are searching for applications to launch.


Save or Cancel Button on Categories screen not working as expected.

What
Save or Cancel Button on Categories screen not working as expected.
Steps to reproduce the behavior

Search for products.
Goto Edit Product.
Categories.
Add or remove categories.
Cancel without saving the changes.

The changes are still saved.
Expected behavior
The save or Cancel button should work as expected.
Video
https://user-images.githubusercontent.com/33085535/210846964-2dd1be50-d8bd-4d91-9f1d-49094d57fb7c.mp4
Smartphone model
Device 1

Realme Narzo 10A (RMX2020)
OS: Android 13 (Lineage 20)
App Version: 4.1.0 (Beta release date: 05-Jan-2022)

Device 2

IPhone XR
OS: IOS v16.3
App Version: 4.1.0+855-ml-ios

@abughalib I don't think your "ignored" changes are saved on the server: could you please check that too?

@abughalib I don't think your "ignored" changes are saved on the server: could you please check that too?

You're actually, I tested it just now.
The changes are temporary after the app restarts, the changes are reverted.

You're actually

I think, therefore I am :)

@abughalib Solved in #3561.


DI in ViewModel

Could you explain how I could inject dependecies into ViewModel constructor? I found a work around with Koin. I used KoinComponent interface and member injection. But I am not sure it is best way to do it
class RandomizeViewModel :
    BaseSharedViewModel<RandomizeViewState, RandomizeAction, RandomizeEvent>(
        initialState = RandomizeViewState.Idle
    ),
    KoinComponent {

    val getRandomDrinkUseCase: GetRandomDrinkUseCase by inject()

    override fun obtainEvent(viewEvent: RandomizeEvent) { }

}

Hello. We use this option with member injection. In general constructor injection – isn't the library's responsibility. You can add your viewmodel to DI graph and get it, for example, in compose screen


rp cyw43 firmware flashing and from_raw_parts len parameter

I'm wondering how you calculate 230_321 and 4_752 for the len parameter?
https://github.com/embassy-rs/embassy/blob/80cb2bc4a5b8bfa424126dc7cf7c957c6894628b/tests/rp/src/bin/cyw43-perf.rs#L48-L52
  File: cyw43-firmware/43439A0.bin
  Size: 231077    	Blocks: 456        IO Block: 4096   regular file

  File: cyw43-firmware/43439A0_clm.bin
  Size: 984       	Blocks: 8          IO Block: 4096   regular file

And maybe would you be so kind and explain the address usage?
Wouldn't it makes more sense to use 0x101c_0000 and 0x101f_b000 depending on the original len values?
And moving it up more if clm len doesn't need 4752 but based on the size something like 1024?!

It should just be whatever the file length is. And I suspect it was correct at some point in time and has diverged.
the firmware readme says these values should be updated whenever the firmware is updated, I assume that someone was busy and forgot to do that.


Support for Laravel 6.1

The current version 0.7 is not installable with Laravel 6.1
Could you release a new version which changes the limit in composer?

Are you getting composer errors? If so, please post them here. Looking at composer.json there should be no issues that I can find off the top. Thanks!

working fine with 0.7.1 when i created that issue, composer didn't show 0.7.1.

Awesome, thanks for reporting back :)


works now but needs to cover up

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


"google.maps.Marker is deprecated" warning

Got this message while running the add-on:

The mentioned link is https://developers.google.com/maps/documentation/javascript/advanced-markers/migration
This needs to be investigated.

I did some testing regarding this issue. Following the instructions in the migration link did not work as straight forward at it is supposed to. Problems or differences I found:
1- To use AdvancedMarkers it is required to define a mapId
2- AdvancedMarkers library needs to be load from within an async function when needed or add the '&libraries=marker' parameter to the API url
Then, found this blogpost that mentions that an Advanced Markers Utility Library for JavaScript developers was also released, and can be use to define Advanced Markers. The web component will need to add the import import {Marker} from '@googlemaps/adv-markers-utils'; and the 2 points mentioned above are needed as well.
Tested both approachs and they both make the demos using markers to break in different ways. For example, icons or colors are not taking into consideration, clustering does not work (the version of markerclusterer library need to be updated to a newer version to support AdvancedMarkers), there's a setMap method that doesn't seem valid anymore. Logic on how markers are added will need to be reviewed and updated if the migration takes place.


Bug fix for bug #436, plus smoothing trace option for G395

This is based on working with the G395H data.
The bug fix for bug #436 is confined to source_pos.py
The remaining edits are to force a smooth trace using a spline.  Currently, a hot pixel may result in the wrong center of mass when straightening the spectrum.  This is a robust way to avoid that.
The below files are cuts taken from two versions of the flux files from S3.
Without the smooth trace:

With the smooth trace:

Great minds think alike! Just submitted a PR (#441) that solves the same problem using similar techniques (median filter vs. spline).  Both should work just fine.  I also added a figure (3106).
I don't have a strong preference on which method we use, but let's not trip over ourselves with these two PRs.  Maybe the user should be allowed to specify whether to smooth or interpolate in the ECF.

How about we merge one of these PRs into the other to allow either smoothing or interpolation depending on some meta parameter. And then once that's done, we can merge into main?

I needed to compute a "clean" median frame (interpolated over bad pixels) for optimal spectral extraction and ended up making smoothing during curvature correction unnecessary.  It still happens in my PR (for now), but the final result is the same as just computing the shifts on the clean median frame.

I'd like to merge the bug fix to #436 without the code for smoothing. Can you resubmit with the requested changes?

Alright, closing this PR as the issue was resolved in a similar manner by PR #441


5.0: how to add XML comments for OData endpoints

Hi,
I have been trying to produce a Swagger JSON file from an OData enabled Web API project (using ASP.NET MVC 5, Web API 2.2, OData4 and Swashbuckle V5).
It seems there are very few resources on the web about the topic - this blog post shows that it IS possible to provide support for it: http://catchsoftware.com/blogs/2013/08/get-your-swagger-on/
I also found an OData.org sample swagger json file, which is located here:
https://github.com/OData/ODataSamples/tree/master/swagger
And with 1317 lines of json, I figured that it wasn't handwritten...
It seems that the required XML Comments are not extracted at build time by the WebApi ApiExplorer for OData endpoints according to this SO answer: http://stackoverflow.com/a/23097825
The last section in the md help file seems to indicate that the magic tricks will be described soon:
https://github.com/domaindrivendev/Swashbuckle#how-to-configure-oauth2-support
Can anybody share how to do it?
Any help, hints or links would be much appreciated.
Best regards,
Morten

Unfortunately, this is a Swagger constraint and not an issue with SB. These "conflicting operations" cannot be described individually in a Swagger 2.0 document. If you don't want to change your application code, you can merge the resulting Operation descriptions, i.e. for the purposes of documentation only, as described in the readme ...
https://github.com/domaindrivendev/Swashbuckle#working-around-swagger-20-constraints
Here's another discussion on the subject ...
https://github.com/domaindrivendev/Swashbuckle/issues/142

@codesoul Try Swashbuckle.OData. It now supports XML comments on ODataControllers.


Add further use cases to System Err and Out including the dual tapping

refactor JUnit4 plugin to reduce code

Codecov Report

Merging #14 (78bec62) into master (9a7991d) will decrease coverage by 0.32%.
The diff coverage is 80.64%.

@@             Coverage Diff              @@
##             master      #14      +/-   ##
============================================
- Coverage     87.85%   87.52%   -0.33%
- Complexity      229      237       +8
============================================
  Files            29       32       +3
  Lines           535      561      +26
  Branches         29       29
============================================
+ Hits            470      491      +21
- Misses           53       58       +5
  Partials         12       12

Impacted Files
Coverage Δ
Complexity Δ

...rg/webcompere/systemstubs/rules/SystemErrRule.java
50.00% <ø> (-10.00%)
1.00 <0.00> (-1.00)

...rg/webcompere/systemstubs/rules/SystemOutRule.java
100.00% <ø> (ø)
2.00 <0.00> (-1.00)

...ompere/systemstubs/rules/SystemPropertiesRule.java
42.85% <ø> (-7.15%)
2.00 <0.00> (-1.00)

...compere/systemstubs/rules/SystemErrAndOutRule.java
50.00% <50.00%> (ø)
1.00 <1.00> (?)

...webcompere/systemstubs/stream/SystemErrAndOut.java
80.00% <80.00%> (ø)
5.00 <5.00> (?)

...ava/uk/org/webcompere/systemstubs/SystemStubs.java
94.64% <88.88%> (-1.11%)
23.00 <4.00> (+4.00)
:arrow_down:

...ebcompere/systemstubs/stream/SystemStreamBase.java
86.36% <100.00%> (+0.64%)
8.00 <1.00> (ø)

...g/webcompere/systemstubs/rules/SystemExitRule.java
100.00% <100.00%> (ø)
1.00 <1.00> (-1.00)

...systemstubs/rules/internal/SystemStubTestRule.java
100.00% <100.00%> (ø)
1.00 <1.00> (?)

... and 3 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 9a7991d...78bec62. Read the comment docs.


Roll Flutter Engine from a342a9186e69 to c7acf570a74e (2 revisions)

https://github.com/flutter/engine/compare/a342a9186e69...c7acf570a74e
2023-05-22<EMAIL_ADDRESS>[Impeller] Add UV compute shader. (flutter/engine#42192)
2023-05-22<EMAIL_ADDRESS>[Impeller] remove final cmd buffer waitUntilScheduled on physical iOS (flutter/engine#42160)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Proposal: Use full extension on types field to avoid FS lookups

Before, npx tsc --traceResolution -p . | grep @types/react/index:
'package.json' has 'types' field 'index' that references '/Users/anbranc/Desktop/ts/node_modules/@types/react/index'.
File '/Users/anbranc/Desktop/ts/node_modules/@types/react/index' does not exist.
Loading module as file / folder, candidate module location '/Users/anbranc/Desktop/ts/node_modules/@types/react/index', target file type 'TypeScript'.
File<EMAIL_ADDRESS>does not exist.
File<EMAIL_ADDRESS>does not exist.
File<EMAIL_ADDRESS>exist - use it as a name resolution result.
Resolving real path for<EMAIL_ADDRESS>result<EMAIL_ADDRESS>======== Module name 'react' was successfully resolved to<EMAIL_ADDRESS>with Package ID '<EMAIL_ADDRESS>========

After:
'package.json' has 'types' field 'index.d.ts' that references<EMAIL_ADDRESS>File<EMAIL_ADDRESS>exist - use it as a name resolution result.
Resolving real path for<EMAIL_ADDRESS>result<EMAIL_ADDRESS>======== Module name 'react' was successfully resolved to<EMAIL_ADDRESS>with Package ID '<EMAIL_ADDRESS>========

Saves three file system lookups per package resolution!

I think we both forgot this, so I just merged it.

Oh yep, good call. Thanks!


Adding highlights for 2019 blog article

Author: Rinku
This is a PR for a blog article recapping our highlights for 2019. Based on issue #454

Added David as reviewer since blogs need two approvals

This has been published at https://bssw.io/blog_posts/better-scientific-software-2019-highlights


Add missing package to packages.json

Following npm install, "eslint": "3.7.1" was not in the packages.json file.

Thanks @ppot 😄

@CodeTheory 😗


Add Kwasi Kwarteng to Past Chancellors List

Adds Kwasi Kwarteng to this list following his departure from government: https://www.gov.uk/government/history/past-chancellors

Hi @Aurorum thanks for this change! We've checked this is ok to release and I'm about to approve and merge it. Once that's done it'll go to the live site shortly after that.


constantly UI refresh

Hi guys. First of all, a big thank you for creating such a handy dashboard.
I just have a small issue. auto-refreshing in job queues causes some problems. for example, I can't scroll down or inspect jobs in queue lists. is there any way to prevent auto-refreshing or other possible solutions?
I'm using 1.1.2 version

This is not reproduces at my side, each update is made at the background and react preserves the UI state untouched

Hi, I'm able to reproduce the issue, will look into it.
Thanx for reporting this issue 🙏🏼

i can confirm this is an issue in google chrome , in firefox its fine. i am using version 1.2.0

i can confirm this is an issue in google chrome , in firefox its fine. i am using version 1.2.0

I see this all the time on Firefox with 1.1.2
@felixmosh it does not happen locally but when connecting to a live site it is just a constant flicker, with tabs showing info they should not, and as @derakhshanfar mentioned, trying to scroll, or even switching from error to data on failed builds is impossible for the most part.
I don't know if this is an artefact of having hundreds of jobs, or the fact that (in our case) we use a hosted redis service and back and forth trips are longer than locally.

@josmas Thank you for the info, I will try to reproduce it with log lists 🙏🏼

@josmas I think if you have more than one queue and you switch tab between them you can replicate this issue.

In my case I do have two queues in the UI. One of them is empty, has never seen a job (it is not hooked up yet) but it is registered.

Even I have observed this behavior occasionally.  Is this reproducible?

Can someone add a reproduction method?

I'll try and prep a script for this, but can't commit to an ETA at the moment.
My gut feeling, after having used this now for about 2 weeks on a more stable deployment, is that this is related to the data coming from the queue changing at rapid pace and forcing a render for some of the tabs.
I saw the unwanted refresh constantly during development, as we had a very high rate of blazing fast failing jobs. Now the queue is a lot more stable, our jobs are rather long (minutes), and the fail rate is very low, so I only see this from time to time. It still happens, but it is more usable.
So the idea here is to modify example.js to push, say 1K jobs (add a for loop in one of the http calls), maybe lower the random sleep time so jobs get processed faster, and see if that shows the issue.
Having said that, I might be totally wrong!

I can confirm the issue. Mac OS, Chrome Version 89.0.4389.90 (Official Build) (x86_64)

@psytechno604 do you have any reproducible example / notes?

@felixmosh it is reproducible with your example - https://github.com/felixmosh/bull-board/tree/master/examples/with-auth
add some jobs, wait until some of them get complete or failed, open COMPLETED or FAILED tab, open "Options" of a job - on the next refresh iteration it will reset to "Data" tab

I think the problem here is how it's setting up the refresh. If you quickly switch tabs (like click in sequence active, delayed, errors), it will at some point refresh the old tab contents before refreshing the active selected tab (you can see this behavior from the network tab). After that it becomes a mess for me.

Hi,
I guess clearing the tab/div/panel just after tab click can fix the issue before pulling data and showing !

I noticed that the refreshes correlate with an API query to fetch data, shown in the recording below (hopefully) with the network tab open so that you can see the effect. Sorry if this is all obvious, just wanted to provide some more info in case it's helpful.
I'm in Chrome Version 89.0.4389.114 (Official Build) (x86_64)
Bull-board 1.4.2
Bull 3.20.0
https://user-images.githubusercontent.com/711563/114033009-e44a2b80-984a-11eb-8ec5-8aaa6c491db9.mov

some new about this? @felixmosh

@jorgecuesta I'm not able to reproduce the issue in my local dev env :|
I will give it another try at the weekend

Released at v1.7.0

thanks man!


ValueError Found Infinity in Column Y

Dear @nabeel-oz , I have adopted the workflow of your sample_app_forecasting_simple,qvf. However, for this precalculated method, I do not know which part of your scripting controls the forecast period required, for example 6 months or 12 months, or 24 months, as compared to your another calendar method. For this precalculated method,  I have three questions.
(1) In the LOAD script, is the field PERIOD or the [MONTH START] responsible for the last month to be forecasted?
(2) Are we using the chart expression to indicate the starting month to be forecasted instead of the LOAD script?
(3) Can we forecast Attendance values for months in year 2020? If so, how can we do that in the scripting?
Part one:
Besides these two questions, I have also encountered several problems that I am so eager to share with you and other users. Please advise me to solve it.
What I have done so far: I have prepared my LOAD script and obtained the data model as shown below. It is not as what we expect actually. There is no link key available.

Part two:
Part two is based on my own data and not the hospital attendance dataset. What happened is that I have encountered error as shown below.

The qlik sense cannot proceed with the error above and the Command-line also generated the same error as shown below.

@nabeel-oz , do we need to change the code block for the Prophet to bypass this error or can we reply on the scripting in Qlik Sense to solve this infinity error? I have no experience in dealing with infinity issue on the response variable.
Please advise me for these questions in the two parts above.
Thank you for your time.

@kutkin54 I'll address your questions on pre-calculated forecasts in this post. In the sample app the future periods have been created in the source file (available here):

You can also create them in the Qlik load script using standard master calendar techniques. For e.g. for the sample app we can create additional periods for each hospital using the script below:
// Get the last month for which we have actual data
TempMax:
LOAD
     Max([Month Start]) as MaxActual
RESIDENT Sheet1;

// Set up variables for the start and end forecast month
LET vForecastStart = Peek('MaxActual', 0, 'TempMax');
LET vForecastEnd = AddMonths($(vForecastStart), 6);

Drop table TempMax;

// Add future months for each hospital
FOR EACH vHospital in FieldValueList('Hospital')

    // Generate future periods within the range and concatenate to the Sheet1 table
    Concatenate(Sheet1)
    LOAD
    	'$(vHospital)' as Hospital,
        Num(AddMonths($(vForecastStart),IterNo())) as Period,
    	Date(AddMonths($(vForecastStart),IterNo()), 'DD/MM/YY') as [Month Start],
        Null() as Attendances
    AUTOGENERATE(1)
    WHILE AddMonths($(vForecastStart),IterNo()) <= Date#('$(vForecastEnd)');

Next vHospital

Hope that explains it, but to address your three questions:

(1) In the LOAD script, is the field PERIOD or the [MONTH START] responsible for the last month to be forecasted?

We use [Month Start] as the date field sent to Prophet. You can see this in the function call to the SSE.

(2) Are we using the chart expression to indicate the starting month to be forecasted instead of the LOAD script?

The sample app shows two techniques. The chart expressions show how the forecast can be done entirely in the frontend. The load script shows how the forecast can be done entirely during the load process. In either case, when using return=yhat Prophet returns the forecast for all periods, not just the future periods. This can be used to assess how well the model fits to known data. If you just want to return the forecast for future periods you can pass the parameter return=y_then_yhat as explained here.

(3) Can we forecast Attendance values for months in year 2020? If so, how can we do that in the scripting?

You can add additional forecast periods to the source, or generate the periods using the load script using the snippet above.

This post addresses the questions on your app.

What I have done so far: I have prepared my LOAD script and obtained the data model as shown below. It is not as what we expect actually. There is no link key available.

The screenshot you posted shows that the temp table still exists in your data model. In the sample app the temp table is used as input to the Prophet function and then dropped. The response from Prophet can be linked to your data model as demonstrated in the sample app. The link would be a concatenated key of the MonthYear, Customer Name, Products, etc. depending on the granularity of your forecast.

Part two is based on my own data and not the hospital attendance dataset. What happened is that I have encountered error as shown below

The error occurs because you have zero values in y and the take_log parameter set to true. A logarithm of zero results in negative infinity, which is not accepted by Prophet. You should use the default take_log=false option in this case.

@kutkin54 I'll address your questions on pre-calculated forecasts in this post. In the sample app the future periods have been created in the source file (available here):

You can also create them in the Qlik load script using standard master calendar techniques. For e.g. for the sample app we can create additional periods for each hospital using the script below:
// Get the last month for which we have actual data
TempMax:
LOAD
     Max([Month Start]) as MaxActual
RESIDENT Sheet1;

// Set up variables for the start and end forecast month
LET vForecastStart = Peek('MaxActual', 0, 'TempMax');
LET vForecastEnd = AddMonths($(vForecastStart), 6);

Drop table TempMax;

// Add future months for each hospital
FOR EACH vHospital in FieldValueList('Hospital')

    // Generate future periods within the range and concatenate to the Sheet1 table
    Concatenate(Sheet1)
    LOAD
    	'$(vHospital)' as Hospital,
        Num(AddMonths($(vForecastStart),IterNo())) as Period,
    	Date(AddMonths($(vForecastStart),IterNo()), 'DD/MM/YY') as [Month Start],
        Null() as Attendances
    AUTOGENERATE(1)
    WHILE AddMonths($(vForecastStart),IterNo()) <= Date#('$(vForecastEnd)');

Next vHospital

Hope that explains it, but to address your three questions:

(1) In the LOAD script, is the field PERIOD or the [MONTH START] responsible for the last month to be forecasted?

We use [Month Start] as the date field sent to Prophet. You can see this in the function call to the SSE.

(2) Are we using the chart expression to indicate the starting month to be forecasted instead of the LOAD script?

The sample app shows two techniques. The chart expressions show how the forecast can be done entirely in the frontend. The load script shows how the forecast can be done entirely during the load process. In either case, when using return=yhat Prophet returns the forecast for all periods, not just the future periods. This can be used to assess how well the model fits to known data. If you just want to return the forecast for future periods you can pass the parameter return=y_then_yhat as explained here.

(3) Can we forecast Attendance values for months in year 2020? If so, how can we do that in the scripting?

You can add additional forecast periods to the source, or generate the periods using the load script using the snippet above.

Thank you for your reply, @nabeel-oz .
For the first method, Addition of forecast periods to the source, do you mean manually inserting the header for the Date variable (in any format, like 'YYYY-MMM' or '2020-Jan') as dimension and their corresponding measure will be subjected to zero and not N/A as values? What exactly should we use? Sorry, please explain more on what should we put as the corresponding measure within the source file (like .txt, or .csv, or .excel) because we do not have any data on it, so we would want to forecast it, @nabeel-oz .

Hi @kutkin54 ,
The value of the measure for future periods should be NULL.
In the sample app's source I have set the measure to 'N/A' for future periods as you can see above. This equates to NULL, as in Qlik the numerical value of a string which cannot be converted to a number is NULL. Blanks also translate to NULLs.
The dimension needs to be a date. The display format doesn't matter as long as it is recognized by Qlik as a date.
I recommend you read the documentation in detail as the usage of the Prophet functions is explained clearly there. The sample apps are just examples to supplement the documentation.
https://github.com/nabeel-oz/qlik-py-tools/blob/master/docs/Prophet.md

@nabeel-oz , thank you for your reply.
I have followed your advice and now encounter new error. I have reached the part where the Prophet model should pass the date variable back to the Qlik data model. However, this step is not achievable by the SSE and the output can be found as below.

but the Terminal returns output that seems normal by displaying the screen below.

After exploring other Issues, I have make sure that I have installed the latest SSE by downloading the qlik-py-tools-master and then execute the corresponding Qlik-Py-Init bat file to reinstall all the relevant Python libraries. Unfortunately, the same outputs as shown above are obtained again.
I provide you a view of my LOAD script below for your reference. However, I have not manually  inserted new Period as new fieldvalue for the my forecast task, and am not using the master calendar method. Please advise me for any solution for my case.

You can trace what is happening by passing the debug=true parameter in your arguments. You probably have a product for which the forecast cannot be generated for some reason.

@kutkin54 , were you able to get past the issue? I suspect you had a NULL row in your Products field or some other invalid value for which a forecast could not be generated.

Closing this issue due to inactivity.


Ensure S3 bucket does not have public read access

Control ID:
AC-3/AC-4/AC-6/AC-21(b)/SC-7/SC-7(3)
AWS Config Rule:
s3-bucket-public-read-prohibited
Story:
As an AWS consultant
I would like to check if my S3 bucket configuration is compliant (does not allow public read access)
So that I can check if my application conforms with Control IDs AC-3, AC-4, AC-6, AC-21(b), SC-7, and SC-7(3) within NIST 800-53.
Acceptance Criteria:
* Given a CDK stack with *a* *non-compliant S3* bucket
    * When NIST-503 Secure Aspects is run
    * Then the CDK stack does not deploy and the consultant receives an explanation about the non compliant S3 bucket for Control IDs AC-3, AC-4, AC-6, AC-21(b), SC-7, and SC-7(3) within NIST 800-53 .
* Given a CDK stack with *a* *compliant S3* bucket and other compliant resources
    * When NIST-503 Secure Aspects is run
    * Then the CDK stack deploys and the consultant does not receive an explanation about NIST 800-53.
* Given a CDK stack *without an S3* bucket and other compliant resources:
    * When NIST-503 Secure Aspects is run
    * Then the CDK stack deploys and the consultant does not receive an explanation about NIST 800-53

This rule should be implementable, S3 Buckets have this setting which can be checked


progress color

Thanks for your library.
How can I replace progress color with my own image(1px)

You can try setting backgroundImage in progress-style prop.

Thanks, I will try.
I found that there are only color in slider, can I replace my own image, like pretty-slider, how can I replace the color dot with Image

You can use various *-style properties to set the background image.


Alpine image

Alpine variant of the Docker image
Docker Bake definition file to build Bullseye and Alpine images for amd64 and arm64
Docs

See the docs/docker.md for how to test.
Needs some validation that Dockerfile.alpine has all the stuff correctly as package names and some operations are different in Alpine.
Note: Some command chains are broken down to separate RUN lines as in build stages there is no point and separate lines make it faster to debug and use working layers.
Resolves #42

Thanks for your very appreciated contribution! Do you think that it would be possible to use a template file to build both variants, as done in the official Docker PHP repo? https://github.com/docker-library/php/blob/master/Dockerfile-linux.template

I was thinking to utilize stages and build targets in bake file further as it's easier to read. Here is example where I create different kind of PHP variants from same Dockerfile: https://github.com/druidfi/docker-images/tree/main/php
It creates 3 PHP minor versions, base php, fpm, drupal, drupal+nginx, all for amd64/arm64.
But I think it could be something for other PR. Sometimes avoiding DRY goes too far 😅
I'd appreciate if Dockerfile and Dockerfile.alpine would be diffed to see if all major steps are there.
Also I was thinking it the ARGs I added here could be used in original Dockerfile too?
These:
ARG PHP_BASE_IMAGE
ARG PHP_SRC_REPO
ARG PHP_SRC_BRANCH

I would prefer to be as close as possible from the images and the tooling from the official images to reduce the maintenance burden. The long term goal is to get rid at least of the PHP build stage anyway and use official images instead.

That is true. I guess the the most heavy stage will be removed when php-src will include those few changes?

I checked the "template-engine" from that official PHP source. It would quite an effort to learn that and incorporate here (even if that is just shell script based thing).
And if we get to situation where we can remove the php-src build stage all together, it would become obsolete.
It seems also that they have 4 distro variants: 2 alpines, Buster and Bullseye.
When we could rely on official PHP base images here as they are, this will come super simple and readable setup where we can create easily images for different PHP versions like 8.2, 8.3 and those officially supported distros + architectures.

Pulled the latest changes and updated PR accordingly.

@dunglas do you expect that those Frankenphp commits from https://github.com/php/php-src.git and branch PHP-8.2 will be included in the next PHP 8.2.0RC5 maybe?

Shouldn't we also update the GitHub Actions setup?
Could you also remove the args, please? It will make the image consistent with the Debian variant and limit the possible unintended side effects. We'll remove this stage anyway as soon as a new 8.2 version will be tagged and https://github.com/docker-library/php/pull/1331 merged.

@dunglas done 👍

@dunglas and the GHA setup updated too

Tested both images with Demo app (Symfony) and benchmarks locally with my M1 Macbook Pro (arm64 images). Demo works the same with both images.

Thank you very much @back-2-95!


pull request for e2e test at 02/01/2017 00:26:13

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


XML to Record conversion is failing when XML has backslash.

Description:
<Notification>
   <Notes>
      <Note>
         <note>foo: abc\ xyz**</note>
      </Note>
   </Notes>
</Notification>

Fails with this error when converting using xmldata:fromXml(xmlPayload),
error Error (\"XML type mismatch with record type: expected 'escaped characters' at line: 2 column: 33\")

Affected Versions:
2201.5.0

This is because language doesn't odd escape characters in the string value. we need to escape them properly when converting to the record


Input fields switching from being uncontrolled to controlled

In react, input fields must be either controlled or uncontrolled for the lifetime of the component. Adding a value property after initialization throws a warning. I suggest setting an initially empty value property and remove usage of defaultValue.

That should be already fixed. Could you paste minimal reproducible use case?


fix timespan display

Hi,
As a test check-in, I just modified the display of the timespan in the title of the main window,
because the old format (with the milliseconds) made it look like debug mode.

@jbovensa , Thanks for the PR, you can merge, I approved.

How do I merge? I see no such option in the website UI.

OK probably I need to merge...
OK, done.
On 28 June 2017 at 11:59, jbovensa<EMAIL_ADDRESS>wrote:

How do I merge? I see no such option in the website UI.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jazzyjester/Mario-Game/pull/1#issuecomment-311600094,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAtIHk7NrEA1eLJYNFHSCg9vHPE8OJjqks5sIhYIgaJpZM4OGyLT
.

--
<JazzyJester 2017>


Screengrab: how to screenshot a WebView?

Is it possible to make a screenshot of a WebView that is displayed on top of the current activity?
Right now this results in just the current activity being shown on the picture, while ignoring the webview that's displayed on top of it.
Using the latest version of Screengrab (0.3.1).
New Issue Checklist

[ x ] Updated fastlane to the latest version
[ x ] I have read the Contribution Guidelines

Thanks for reaching out. I want to loop in a few people. Can you let me know if this is consistent for all web views or only initial ones? I want to figure out if this is because the screenshot is happening before the view loads or if it's the way the screenshot is taken.
Thanks!

I'm fairly sure it is because of the way the screenshot is being taken. Even after letting the thread sleep for 5 seconds  just to be sure the webview is fully loaded, it always resulted in a picture of the activity in the background.
Tested it with webviews on 2 different places.

Likely related to https://github.com/fastlane/fastlane/issues/2080

@lvh1 Can you track this issue on that thread? I'm closing this one out :+1:
Thanks!


Training with custom dataset.

Hello, i am new to Meta-Learning. For a project, i need to train a model with custom image data. Is it possible for me somehow to use your repo and train a model with my custom data?
Thank you

Hello,
Yes, that would be possible.
First, you need to subclass the Database class here.
Then you need to implement two abstract methods:
First one is this method that returns three dictionaries: train_classes, val_classes and test_classes. Each of these dictionaries maps a string which is the name of a class to a list that contains the full address of all instances in that class.
The second one is this other method. This method describes how should each of the instances in class be parsed. For example here, we show how to do that for JPG images. If your dataset is also JPG images, you can use our mixin or you can write your own parse_function to make sure that data shape and everything is fed to network as you wish.
As an example, here is how we define Omniglot dataset.
More examples could also be found in python files here.
Let me know if you have any questions.

Hi. Thank you so much for your time and nice explanation. I believe i was able to create the scripts that i needed according to your instruction. But i am getting an error when i run my script. Here is the error:
File "myTestRun.py", line 1, in <module>
    from .models.maml.maml import ModelAgnosticMetaLearningModel
ModuleNotFoundError: No module named '__main__.models'; '__main__' is not a package

Any idea why i am getting this?
Thanks

Hi. Thank you so much for your time and nice explanation. I believe i was able to create the scripts that i needed according to your instruction. But i am getting an error when i run my script. Here is the error:
File "myTestRun.py", line 1, in <module>
    from .models.maml.maml import ModelAgnosticMetaLearningModel
ModuleNotFoundError: No module named '__main__.models'; '__main__' is not a package

Any idea why i am getting this?
Thanks

If i write
from models.maml.maml import ModelAgnosticMetaLearningModel
from networks.maml_umtra_networks import SimpleModel

i get ModuleNotFoundError: No module named 'models'

If i write
from models.maml.maml import ModelAgnosticMetaLearningModel
from networks.maml_umtra_networks import SimpleModel

i get ModuleNotFoundError: No module named 'models'

I see. I believe this is because python interpreter does not find the models module. The way to resolve it is to add the path of the root of the project to your system variable PYTHONPATH. So it would be something like this:
export PYTHONPATH=$PYTHONPATH:<absolute-path-to-project-root>
python models/maml/myTestRun.py
I prefer this way of handling this but there is also a pythonic way as follows: in your myTestRun.py add
import sys

project_root_address = '<absolute-path-to-project-root-folder>'
sys.path.insert(0, project_root_address)

I see. I believe this is because python interpreter does not find the models module. The way to resolve it is to add the path of the root of the project to your system variable PYTHONPATH. So it would be something like this:
export PYTHONPATH=$PYTHONPATH:<absolute-path-to-project-root>
python models/maml/myTestRun.py
I prefer this way of handling this but there is also a pythonic way as follows: in your myTestRun.py add
import sys

project_root_address = '<absolute-path-to-project-root-folder>'
sys.path.insert(0, project_root_address)

Hi, thanks for your quick reply. I have manages to solve the problem. Now i have another one. I have faced this problem before and i still haven't been able to fix it. It has got something to do with the shape of the images. The error i am getting is:
File "<string>", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError: PartialTensorShape: Incompatible shapes during merge: [28,28,3] vs. [28,28,4]
	 [[{{node map_1/TensorArrayV2Stack/TensorListStack}}]] [Op:IteratorGetNext]

Since i have adopted your code written for omniglot, i am assuming the shape of my images don't match with omniglot dataset.
I would be really grateful if you could guide me towards how i could reshape(or properly shape) my images using which script.
p.s. i am a noob in tensorflow and image processing.

Hi, thanks for your quick reply. I have manages to solve the problem. Now i have another one. I have faced this problem before and i still haven't been able to fix it. It has got something to do with the shape of the images. The error i am getting is:
File "<string>", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError: PartialTensorShape: Incompatible shapes during merge: [28,28,3] vs. [28,28,4]
	 [[{{node map_1/TensorArrayV2Stack/TensorListStack}}]] [Op:IteratorGetNext]

Since i have adopted your code written for omniglot, i am assuming the shape of my images don't match with omniglot dataset.
I would be really grateful if you could guide me towards how i could reshape(or properly shape) my images using which script.
p.s. i am a noob in tensorflow and image processing.

i think i did not understand how to use the parse_function. I have not used it anywhere. I need to implement that function. But i am not sure about where exactly.

i think i did not understand how to use the parse_function. I have not used it anywhere. I need to implement that function. But i am not sure about where exactly.

So you need to write a function similar to this in your database class. In fact
image = tf.image.decode_jpeg(tf.io.read_file(example_address))
this line loads your image assuming it is jpeg image. Note that if your image is not jpeg you have to decode it based on its format or you have to save it as a jpeg before using this.
The reshaping happens in this line that uses self.get_input_shape(), you can ignore it for now and just pass some fixed numbers based on your network architecture.
image = tf.image.resize(image, self.get_input_shape()[:2])
For example you can say:
image = tf.image.resize(image, (84, 84))

So you need to write a function similar to this in your database class. In fact
image = tf.image.decode_jpeg(tf.io.read_file(example_address))
this line loads your image assuming it is jpeg image. Note that if your image is not jpeg you have to decode it based on its format or you have to save it as a jpeg before using this.
The reshaping happens in this line that uses self.get_input_shape(), you can ignore it for now and just pass some fixed numbers based on your network architecture.
image = tf.image.resize(image, self.get_input_shape()[:2])
For example you can say:
image = tf.image.resize(image, (84, 84))

So let's say this is my subclass:
class MySubClass(JPGParseMixin,Database):
    def __init__(
            self,
            random_seed,
            num_train_classes,
            num_val_classes,
    ):
        self.num_train_classes = num_train_classes
        self.num_val_classes = num_val_classes
        super(MySubClass, self).__init__(
            settings.OMNIGLOT_RAW_DATA_ADDRESS,
            os.path.join(settings.PROJECT_ROOT_ADDRESS, 'data/'),
            random_seed=random_seed,
            input_shape=(28, 28, 1)
        )
def get_train_val_test_folders(self) -> Tuple:
... ... ... ...
#rest of my code...

i add this def _get_parse_function(self) -> Callable: part before my get_train_val_test_folders function?

So let's say this is my subclass:
class MySubClass(JPGParseMixin,Database):
    def __init__(
            self,
            random_seed,
            num_train_classes,
            num_val_classes,
    ):
        self.num_train_classes = num_train_classes
        self.num_val_classes = num_val_classes
        super(MySubClass, self).__init__(
            settings.OMNIGLOT_RAW_DATA_ADDRESS,
            os.path.join(settings.PROJECT_ROOT_ADDRESS, 'data/'),
            random_seed=random_seed,
            input_shape=(28, 28, 1)
        )
def get_train_val_test_folders(self) -> Tuple:
... ... ... ...
#rest of my code...

i add this def _get_parse_function(self) -> Callable: part before my get_train_val_test_folders function?

Yes, it is done in the algorithm part. As an example, you can look at this. Just make an instance of your dataset class and pass it to MAML algorithm. Or any other algorithm like UMTRA, Protonets, etc. Also, in your example above, make sure that you indent functions such that they are members of your class.

Yes, it is done in the algorithm part. As an example, you can look at this. Just make an instance of your dataset class and pass it to MAML algorithm. Or any other algorithm like UMTRA, Protonets, etc. Also, in your example above, make sure that you indent functions such that they are members of your class.

Hi, i have done that. Still get this error:
pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)
tensorflow.python.framework.errors_impl.InvalidArgumentError: PartialTensorShape: Incompatible shapes during merge: [84,84,3] vs. [84,84,4]
	 [[{{node map_1/TensorArrayV2Stack/TensorListStack}}]]

any idea how to fix it?

Hi, i have done that. Still get this error:
pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)
tensorflow.python.framework.errors_impl.InvalidArgumentError: PartialTensorShape: Incompatible shapes during merge: [84,84,3] vs. [84,84,4]
	 [[{{node map_1/TensorArrayV2Stack/TensorListStack}}]]

any idea how to fix it?

If I might suggest a direction of investigation, it might be that you are
starting with some kind of images that have 4 color channels. Almost
always, the last channel is a transparency (alpha) channel, so you can just
drop it.
https://stackoverflow.com/questions/19028830/convert-4-channel-image-to-3-channel-image
cheers
Lotzi
On Sun, Jan 3, 2021 at 9:27 AM SamiurRahman1<EMAIL_ADDRESS>wrote:

Hi, i have done that. Still get this error:
pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)
tensorflow.python.framework.errors_impl.InvalidArgumentError: PartialTensorShape: Incompatible shapes during merge: [84,84,3] vs. [84,84,4]
[[{{node map_1/TensorArrayV2Stack/TensorListStack}}]]
any idea how to fix it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/siavash-khodadadeh/MetaLearning-TF2.0/issues/14#issuecomment-753625657,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACDUKJFEB5T6FF4M3EYPDE3SYB5GFANCNFSM4VOC3MZA
.

--
Lotzi Bölöni, PhD
Professor of Computer Science,  University of Central Florida
<EMAIL_ADDRESS>http://www.cs.ucf.edu/~lboloni  1-407-823-2320

If I might suggest a direction of investigation, it might be that you are
starting with some kind of images that have 4 color channels. Almost
always, the last channel is a transparency (alpha) channel, so you can just
drop it.
https://stackoverflow.com/questions/19028830/convert-4-channel-image-to-3-channel-image
cheers
Lotzi
On Sun, Jan 3, 2021 at 9:27 AM SamiurRahman1<EMAIL_ADDRESS>wrote:

Hi, i have done that. Still get this error:
pywrap_tfe.TFE_ExecutorWaitForAllPendingNodes(self._handle)
tensorflow.python.framework.errors_impl.InvalidArgumentError: PartialTensorShape: Incompatible shapes during merge: [84,84,3] vs. [84,84,4]
[[{{node map_1/TensorArrayV2Stack/TensorListStack}}]]
any idea how to fix it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/siavash-khodadadeh/MetaLearning-TF2.0/issues/14#issuecomment-753625657,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACDUKJFEB5T6FF4M3EYPDE3SYB5GFANCNFSM4VOC3MZA
.

--
Lotzi Bölöni, PhD
Professor of Computer Science,  University of Central Florida
<EMAIL_ADDRESS>http://www.cs.ucf.edu/~lboloni  1-407-823-2320

Thank you for your suggestion. I ran the following bit of code:
img_pil = Image.open(myImg)
print('Pillow: ', img_pil.mode, img_pil.size)

img = cv2.imread(myImg, cv2.IMREAD_UNCHANGED)
print('OpenCV: ', img.shape)

and i got this output:
Pillow:  RGB (1280, 720)
OpenCV:  (720, 1280, 3)

Which suggests that my images are already in RGB and the channel is 3. So, i can't find where exactly the error is coming from.

Thank you for your suggestion. I ran the following bit of code:
img_pil = Image.open(myImg)
print('Pillow: ', img_pil.mode, img_pil.size)

img = cv2.imread(myImg, cv2.IMREAD_UNCHANGED)
print('OpenCV: ', img.shape)

and i got this output:
Pillow:  RGB (1280, 720)
OpenCV:  (720, 1280, 3)

Which suggests that my images are already in RGB and the channel is 3. So, i can't find where exactly the error is coming from.

Can you please check your image shapes when you load them by TensorFlow? To do that you can add a line
tf.print(image.shape)
before returning the image in this function.

Can you please check your image shapes when you load them by TensorFlow? To do that you can add a line
tf.print(image.shape)
before returning the image in this function.

Hmm, Interesting. This is the reply i get if i run
tf.print(image.shape):
TensorShape([84, 84, None])

Hmm, Interesting. This is the reply i get if i run
tf.print(image.shape):
TensorShape([84, 84, None])

is it possible to get this output if the function doesn't get the input images? maybe i made a mistake while providing the input images. can it cause this problem?

is it possible to get this output if the function doesn't get the input images? maybe i made a mistake while providing the input images. can it cause this problem?

another thing, in the _get_parse_function, if i comment out the image = tf.image.resize(image, (84, 84)) part, technically, i should get the actual size of the images when i run tf.print(image.shape). But what i get is: TensorShape([None, None, None])

another thing, in the _get_parse_function, if i comment out the image = tf.image.resize(image, (84, 84)) part, technically, i should get the actual size of the images when i run tf.print(image.shape). But what i get is: TensorShape([None, None, None])

I would definitely try to do something like this to see if it solves the problem.
image = image[:, :, :3]
The reason why these are None is because of the way decode_jpeg works with channels attribute. See here.

I would definitely try to do something like this to see if it solves the problem.
image = image[:, :, :3]
The reason why these are None is because of the way decode_jpeg works with channels attribute. See here.

so, since my code isn't throwing any error and it seems like it is training, i hope it is working and the problem has been solved. Now, i actually applied both of your suggestions so i am not sure which one did the trick. This is how my _get_parse_function looks like now:
def _get_parse_function(self) -> Callable:
        def parse_function(example_address):
            image = tf.io.read_file(example_address)
            image = tf.io.decode_jpeg(image)
            image = tf.image.resize(image, (84, 84))
            image = image[:, :, :3]
            image = tf.image.rgb_to_grayscale(image)
            image = tf.cast(image, tf.float32)
            return image / 255.
        return parse_function

I will give an update once my code finishes running.
Thanks a lot for your help!

so, since my code isn't throwing any error and it seems like it is training, i hope it is working and the problem has been solved. Now, i actually applied both of your suggestions so i am not sure which one did the trick. This is how my _get_parse_function looks like now:
def _get_parse_function(self) -> Callable:
        def parse_function(example_address):
            image = tf.io.read_file(example_address)
            image = tf.io.decode_jpeg(image)
            image = tf.image.resize(image, (84, 84))
            image = image[:, :, :3]
            image = tf.image.rgb_to_grayscale(image)
            image = tf.cast(image, tf.float32)
            return image / 255.
        return parse_function

I will give an update once my code finishes running.
Thanks a lot for your help!

I have one more question. How do i read the log files and plot/view my training performance?

I have one more question. How do i read the log files and plot/view my training performance?

Hello Samiur,
Thank you for using this repository for your project. Glad that you were able to run the training. Just to make sure in the future people can search for issues in repo easily, do you mind to open another issue for your last question since it is another topic?
Also, I keep this issue open until we add the description and details to readme of the project.
Thanks again for your great questions!

Hello Samiur,
Thank you for using this repository for your project. Glad that you were able to run the training. Just to make sure in the future people can search for issues in repo easily, do you mind to open another issue for your last question since it is another topic?
Also, I keep this issue open until we add the description and details to readme of the project.
Thanks again for your great questions!


Implement Task assessments

[x]  add an assessmentDefinition field to tasks, to use for filling in the JSON with the assessment fields
[x] in the report form, add task assessments for the selected tasks
[x] save the report task assessments as notes
[x] load assessments when editing an existing Report
[x] display assessments on the report show page
[x] make it possible to configure assessment fields validation (just like for custom fields)

Later:

[x] review Show (read-only) behavior
[x] render collections of assessments on page of Tasks (with an enhanced LikeredScale)
[ ] custom editor for assessmentDefinitions
[ ] improve rendering of all notes in the side panel (show rich content instead of json)

Moved " custom editor for assessmentDefinitions" to a new issue #3064

Added issue #3065 for "improve rendering of all notes in the side panel (show rich content instead of json)"