Issue :  "topic [/microROS/ping] does not appear to be published yet Could not determine the type for the passed topic"

Hai, I am trying ping_pong example with Nucleo-G474RE board. I have added 'nucleo_g474re' to the CMakeLists.txt file.
After building and flashing the firmware, created the microROS agent and built. Then I run the agent and it shows in the first figure.
Then in a new terminal, I tried to echo the microROS topic using the following command,
'ros2 topic echo /microROS/ping'
But it shows the error
"topic [/microROS/ping] does not appear to be published yet Could not determine the type for the passed topic"
This shows in the second figure.
I tried it with both serial and serial-usb transport.
I tried it by adding '-v6' to agent run command.
I tried it by setting ROS_DOMAIN_ID=0 in all terminals.
But the error is not resolved.
Please advise me how to solve this problem.
Thank you.
Sachin

I get the same issue which I'm busy debugging at the moment. Basically the RX interrupt is never triggered and so you just get the 10 retries from rclc_support_init and then it fails. I've verified that the hardware works bidirectionally enabling the shell on the CDC_ACM_0 (in my case) interface and can send and receive successfully. If I but a breakpoint here it never triggers.

@sachinjairam After a bit of digging and testing on and STM32F4 device which worked I noticed that both your G4 device and my L4 device use the st_stm32_usb and the F4 uses the  st_stm32_otgfs driver. For me if I remove the calls to set DCD and DSR my device communicates with the agent.

@rosterloh Thanks for your reply. I am new to ROS and ST microcontroller, so I didn't understand some terms 'DCD', 'DSR' etc. that you mentioned in the comment:
"For me if I remove the calls to set DCD and DSR my device communicates with the agent."
Can you please tell me what it means?
I have tried using '/dev/ttyACM0', but I got the same previous error.
Thank you.
Sachin

Hello @rosterloh, is this a matter of micro-ROS transports? Is there any improvement that we can do in the transports that eases the usage of this component?
Thanks

@sachinjairam it works for me if you comment out lines 91-99
@pablogs9 I think the transports you've provided are fine for a start but any project of decent complexity I'd say people would have to modify the transport for themselves. I'd say the biggest improvement that could be made would be to connect the failure messages from rclc into zephyr logging so that you can see the reason for failure when something goes wrong without having to step debug.

Hello @rosterloh, Thank you for your reply. It works for me also. Now my device can communicate with the agent. Thank you for your help.
Thank you.
Sachin


Validation need to happen properly !!!!

Validation() is not giving error if i will pass extra parameter in json. it suppose to check whether that extra key is there in schema or not based on that it should through error but unfortunately its not .
from jsonschema import validate
from jsonschema.exceptions import ValidationError
schema ={
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}
try:
var = validate(instance={"name" : "Eggs", "id" : 1,"city":"NY"}, schema=schema)
print(var)
except ValidationError as e:
return str(e)

Hi.
Please have a read through a JSON Schema tutorial, specifically on the validators used for specifying what to do about additional properties.


Update 40-service-workers.md

Fixes a tiny typo in service worker filename.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[x] Ideally, include a test that fails without this PR but passes with it.

Tests

[ ] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[ ] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

Yes, https://github.com/sveltejs/kit/pull/9486 will fix that. I missed that.
Closing this and thanks for the awesome work you all put into Kit!


React step 3

Closes #
{{short description}}
Changelog
New

{{new thing}}

Changed

{{change thing}}

Removed

{{removed thing}}

My Preview matches with the actual preview. What else is missing from my side?

----- Original message -----From: "mergify[bot]" @.>To: carbon-design-system/carbon-tutorial @.>Cc: Veeresh94 @.>, Author @.>Subject: [EXTERNAL] Re: [carbon-design-system/carbon-tutorial] React step 3 (#7198)Date: Wed, Mar 17, 2021 10:24 AM

Hi, it looks like you are missing something. Double check your code, your preview URL should match the preview in the tutorial.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.


Add single-instance example for CLI init

The tembo init command relies on https://raw.githubusercontent.com/tembo-io/tembo/main/tembo-cli/examples/single-instance/tembo.toml, which was removed in this PR:

https://github.com/tembo-io/tembo/pull/487

Now tembo init produces a tembo.toml file with contents 404: Not Found. This PR re-adds the file so it can be used for tembo init.

I added the same file that was there before: https://github.com/tembo-io/tembo/blob/72083bff5670fe9aaaf0977598b78ca2ee5ddd43/tembo-cli/examples/single-instance/tembo.toml

I added the same file that was there before: https://github.com/tembo-io/tembo/blob/72083bff5670fe9aaaf0977598b78ca2ee5ddd43/tembo-cli/examples/single-instance/tembo.toml

Just updated a few small things but looks good otherwise.


Is it possible to limit the year?

Given the way taxes are calculated, is it possible to limit this by year?
I've also tried submitting a CSV, but it registered as 0, so maybe give an example of what format it's excepting?

Hi @LeoKotschenreuther,
I am interested in other software (namely free) that can also calculate taxes.  I searched around for a bit and this was the only one I could find that seemed to support bittrex.

I came across Bitcoin.tax and cointracking.info that both support imports from Bittrex. However they both have a transaction limit per year in the free version.
I don't think that anybody offers a website to calculate the proceeds on tons of transactions for free. So if you only make a few transactions per year (say less than 100-200) then you can probably get by with a free version. If you make more than a few 100 transactions per year then I hope you make so much money that you can afford to pay a little bit for the tax software.


Centered the logo in the circle better

Issue link

https://github.com/tasitlabs/tasit/issues/186
Types of changes

Other (please describe below if you select "Other")
Design fix for the logo on old Android devices
Notes

You can view the binary files themselves when reviewing this PR, I believe.

You can view the binary files themselves when reviewing this PR, I believe.

Actually it's a little hard to view given the white circle with a transparent background over a white UI on GitHub. But I can vouch for it looking better after this change.

@marcelomorgado Can you give this one a quick review? Thanks!


[CWS] fix hostfs group resolver (read the actual provided file path)

What does this PR do?
This PR fixes the user group resolver, allowing the group parsing mechanism on host FS to read the correct path instead of /etc/passwd
Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

/merge


Update README.md

Added bugbounter

waiting for the approval

Hello, my manager (the user with the username "bugbounter") has added BugBounter (https://bugbounter.com) to the page in the following link: https://github.com/disclose/bug-bounty-platforms. Could you review the request, and get back to us? - Thank you in advance.

LGTM! Thank you!

Thank you so much. Can Engincje @.***> kirjoitti 7.09.2023 kello 11.12 ip.:
Merged #32 into main.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>


Inline Validation in Sign Up Forms

Description
Issue
Currently, While registering for a role, there is no real-time validation where the user gets a validation message as the user enters the input value. Currently, the behavior of the form is like when the user submits the form then it gets validation messages. This kind of behavior decreases user experience.
I want to implement the functionality to display the validation messages below respective fields as the user enters the value and the validation message will disappear as soon as the valid input is given.
This will implement from sending invalid data to the backend it also enhances processing speed in the backend.
I will write a reusable code so that it can be used in other forms as well.
Screenshots

Additional information
If you find this issue worth implementing please assign me this under Gssoc'23.

Hey @AlfiyaSiddique nice catch. You can start working on this. But you need to set it up on your local before resolving this issue. Join the #project-annapurna channel on gssoc server on discord. I would be sharing a gmeet link today to clear the doubts regarding setup.

Hey @AlfiyaSiddique nice catch. You can start working on this. But you need to set it up on your local before resolving this issue. Join the #project-annapurna channel on gssoc server on discord. I would be sharing a gmeet link today to clear the doubts regarding setup.

Yes Sure!

Hey @AlfiyaSiddique any updates?

Hey @AlfiyaSiddique any updates?

Hello @subhashis2204
Yep, started working on it, but facing a little problem regarding local execution. The changes I made in the code are not reflected in the output. For example in the below image changed the line 'Register Your Restaurant' by adding the word 'test'.

But in output, the line is not changed

Can you please help me with this? I message regarding this problem on the discord channel as well some hours ago but didn't receive any reply!

Hello @subhashis2204 ,
I have fixed the above problem that I faced in local execution now it's working fine. I have continued the work on this issue and I will hopefully submit the PR by tomorrow.
These are the constraints I am implementing for each field
Restaurant Name: Minimum 6 characters
Email: Valid Email Format
Website Link: valid website link format
Contact no.: 10 digits
Restaurant Description: Minimum 20 words and maximum 100 words
Address Line 1:  minimum 10 characters and maximum 30 characters
Country: Minimum 4 characters (Because countries with the smallest name start with 4 characters)
Password: Minimum 8 characters with at least uppercase, lowercase, digit, and special character.
Let me know if you want to


Added unit test for imgur videoes

Category
This change is exactly one of the following (please change [ ] to [x]) to indicate which:

[ ] a bug fix (Fix #...)
[ ] a new Ripper
[x] a refactoring
[ ] a style change/fix
[ ] a new feature

Description
Added a unit test for getting a video from imgur using RipUtils.getFilesFromURL
Testing
Required verification:

[ ] I've verified that there are no regressions in mvn test (there are no new failures or errors).
[ ] I've verified that this change works as intended.

[ ] Downloads all relevant content.
[ ] Downloads content from multiple pages (as necessary or appropriate).
[ ] Saves content at reasonable file names (e.g. page titles or content IDs) to help easily browse downloaded content.

[ ] I've verified that this change did not break existing functionality (especially in the Ripper I modified).

Optional but recommended:

[ ] I've added a unit test to cover my change.

Coverage decreased (-0.07%) to 39.565% when pulling 15880dc88637eb981a89e7160a318d532670e5ba on cyian-1756:imgurVideoTest into 85316c7646599ccd512f5de76008897926a44b67 on RipMeApp:master.


FontFeature.tabularFigures sizes text wrong with the HTML web renderer

Steps to Reproduce

Execute flutter run -d Chrome --web-renderer=html on the code sample
The bottom text overflows its container; no error is reported by Flutter

This seems to be the case for any font that uses proportional figures by default – in the sample, Inter is used. When Roboto is used, however, this issue doesn't appear.
Expected results:
This is how CanvasKit paints the sample:

Actual results:
This is how the HTML renderer paints the sample:

The span element containing the text has metrics as if tnum weren't enabled:

Code sample
import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              Container(
                decoration: BoxDecoration(border: Border.all()),
                child: Text(
                  '12345',
                  style: GoogleFonts.inter(
                    fontSize: 32,
                  ),
                ),
              ),
              Container(
                decoration: BoxDecoration(border: Border.all()),
                child: Text(
                  '12345',
                  style: GoogleFonts.inter(
                    fontSize: 32,
                    fontFeatures: const [FontFeature.tabularFigures()],
                  ),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

 Output of flutter doctor -v
[✓] Flutter (Channel master, 3.8.0-13.0.pre.54, on macOS 13.1 22C65 darwin-arm64, locale en-US)
    • Flutter version 3.8.0-13.0.pre.54 on channel master at /Users/piotrrogulski/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 22e17bb710 (7 hours ago), 2023-02-16 03:46:23 -0500
    • Engine revision ea1d087c49
    • Dart version 3.0.0 (build 3.0.0-241.0.dev)
    • DevTools version 2.21.1

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/piotrrogulski/Library/Android/sdk
    • Platform android-33, build-tools 32.1.0-rc1
    • Java binary at: /Users/piotrrogulski/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9514443/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

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

[✓] Android Studio (version 2022.1)
    • Android Studio at /Users/piotrrogulski/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9477386/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] Android Studio (version 2022.1)
    • Android Studio at /Users/piotrrogulski/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/221.6008.13.2211.9514443/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.75.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.1 22C65 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 109.0.5414.87

[✓] Network resources
    • All expected network resources are available.

• No issues found!

@PiotrRogulski
There's similar issue open describing your case, https://github.com/flutter/flutter/issues/118485, so please follow-up in it for further updates. Closing this as a duplicate.


Tenant-qualify outbound paths

Description:
As per the feature to make all the endpoints tenant-qualified, the existing outbound paths from the identity server and redirects should be qualified to have the tenant domain in path. The tenant-qualified URL pattern should take the form '/t/{tenant.domain}/*'.
The identified tasks for the above requirement are as follows.
Tasks:

[x]  Tenant qualify outbound paths of Carbon Web apps. #7929
[ ]  Tenant qualify outbound paths of CXF web apps. #7930
[x]  Tenant qualify outbound paths of JSP-based web apps. #7928

captured in https://github.com/wso2/product-is/issues/9051


acceleration_status deprecated

Description
acceleration_status is deprecated. Hence when we try to use this module we get the following error,
Error:
The attribute "acceleration_status" is deprecated. Refer to the provider documentation for details.
Could you please fix the same or let me know if there is any workaround ?

If this is an issue, please fill in the issue template. I don't see this issue myself.


execinfrapb: print out input types for EXPLAIN (DISTSQL, TYPES)

PR: https://github.com/cockroachdb/cockroach/pull/43193
From release notes:

Column types are now displayed in the box for the input synchronizer in the flow diagram obtained via EXPLAIN (DISTSQL, TYPES). [#43193][#43193] {% comment %}doc{% endcomment %}

Explain https://airtable.com/tblD3oZPLJgGhCmch/viwNg2fK3NU3DUY6Z/rec4nN8PXF6Tkge92

@rmloveland, since you're taking a few other explain changes, would you mind taking this as well?


disable upload

Hi,
I'm looking into using ckeditor for my rich text field but I'm not interested by the upload feature.
By searching on that Github, I saw I had to remove the urls from my settings to disable uploads. And yet I'm having a critical issue (NoReverseMatch).
Is there currently any way to disable uploads? Or is that feature lost? I believe we should always have the choice to disable that feature (what if we want only rich text?).
My best regards,

Did you checked what and where caused that NoReverseMatch? If you don't want uploads you also should configure CKEditor not to display that widget in its toolbar.

In current master I'm moving all upload specific code to separate application. It will be very easy not to use the upload features.

I have been trying to disable uploads including drag/drop and paste. I did not include the ckeditor_uploader app, but I am still getting the same error as above if I omit the upload URL, also an error if I omit the CKEDITOR_UPLOAD_PATH which I don't need.
I was able to hide the upload tabs in the image and link dialogs with 'removeDialogTabs': 'link:upload;image:Upload', in the config. However "removePlugins": ",".join(["upload"]), does not seem to have any effect.


x/pkgsite: github.com/openstack-k8s-operators/lib-common Doesn't have README displayed due to license

What is the URL of the page with the issue?
 github.com/openstack-k8s-operators/lib-common
What is your user agent?
Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Screenshot

What did you do?
I opened the web page.
What did you expect to see?
Documentation of the lib-common package
What did you see instead?
Disclaimer that it can not be shown due to license issues.

I believe this is working as intended. The root level of the repo no longer contains a go module, so the page won't be updated with newer licence information. In the current repo, the modules are under modules/ and the documentation for those are displayed.


Unable to connect Ufiber device

Does anyone has a troubleshooting for this message?https://imgur.com/OR2FlUa
I can reach the default gateway on a browser but when i tried to acess through cmd it always appers this message.
UF-LOCO FW 4.3.1
Release v.0.1.3

Are you sure you have SSH enabled? See #14, maybe that helps on your device too


Custom Action option is missing in action list

Describe the bug
Custom Action is missing in the action list, although the doc says it is in there.
Version
v2.1.1
Browser
Chrome
Edge
OS
Windows
To Reproduce
Click "Add" below a trigger
Expected behavior
show Custom Action

Followed the steps to create library class and then the menu showed up.


components not rerendering with the rest of the dom 🐛

Describe the bug 🐛
Printing on Chrome should effectively impose new styling on the entire document, triggering a rerender. However, iterated components fail to rerender while the rest of the DOM updates.
To Reproduce 👨🔬

import happyx, strformat, random

component ShowNum:
  n: int
  html:
    "{self.n.val:04}"

randomize()

appRoutes("ROOT"):
  "/":
    for i in 1..7:
      let n = rand(9999)
      tDiv: tSpan:
        "{n:04} = "
        ShowNum(n)

The data are correctly matching when the page renders the first time.

But trigger a rerender with the print dialog, and the components' values on the right side do not change, while the values on the left are given new random values.

Expected behavior 🤔
It's acceptable for the whole page to rerender when triggering a print or on other occasions, but this should rerender the whole page, generating components afresh along with the other DSL content.
Please complete the following information 📃
Chrome 121.0.6167.184-1, Nim 2.0.0, HappyX 3.8.12 @#head

Closed after a long wait


Multiplayer Waterfall/Paper server: Light Overlay causes disconnect

Afternoon,
I had updated a bunch of mods today and found that when trying to connect to a Waterfall/Paper multiplayer server, it would either disconnect me immediately or within a minute or so of being connected. All it'd say was "Connection Lost" and wouldn't allow me to disconnect. After removing all mods and re-adding one by one, Light Overlay appeared to be the one to make it disconnect. It would throw a "[Netty Epoll Client IO #1/WARN]: Received invalid channel identifier "legacy:fml|hs" from connection net.minecraft.class_2535@5021ecec" in latest.log before disconnecting. See: https://pastebin.com/F9Hzw7XF.
nostrip-1.2.0-1.16.2+, loader 0.11.1-1.16.5, API 0.30.0 (though 0.29.4 didn't work either.)

Appears to be fixed. Not sure which thing fixed it but something did... will keep on the lookout for further issues


Verify connectivity & NeogmaConnectivityError

Closes #60

Add NeogmaConnectivityError.
Add verifyConnectivity method to Neogma which throws NeogmaConnectivityError.
Change Neogma constructor to throw NeogmaConnectivityError if the driver init fails.

Released in v1.12.0. I've also added an async neogma.verifyConnectivity() method which also throws a NeogmaConnectivityError.


Better MAL management

Reported by Are.Torrentbytes, Jul 3, 2013
just a small thing. when you add something that is linked with MAL it will be set to "Currently Watching" list instead of "Plan to Watch" list.
i think there should be a move of the series to the "Currently Watching" list when JMM see that there is atleast one episode or file that have a watched state im JMM.
as of now have my JMM server added all my Anime (over 1300 series) into the "Currently Watching" list.
this might just be a little error. but when newer sites like http://hummingbird.me/ is using MAL and such it is needed to be updated.
i hope this is a simple fix for you and im always looking forward for your updates :D

My recommendation would be that anything added defaults to "Plan to Watch" until at least one episode is watched.
As well, user configurable, anything that is currently marked "Watching" be switched to "On Hold" if you haven't watched an episode for 'x' amount of time (perhaps ignoring series that are currently airing). This might be pretty heavy on processing, as i imagine it would require regularly checking your entire collection for candidates, so it may not be practical.
Another option that's much more practical though, marking any uncompleted series you delete from your collection as "Dropped".
The same being done for any other list services should they be added of course.


Rewrite display property documentation

User story
As a web developer, I want to know how to use the display property, so I can use it effectively in my CSS.
Acceptance criteria

[ ] display property documentation rewritten.

[ ] display property documentation reviewed by another writer.

[ ] dependency set to done.

Tasks

[ ] Include specific tasks here that need to be done.

PR for spec data: https://github.com/mdn/kumascript/pull/809

PR for data: https://github.com/mdn/data/pull/290

So I've been working on the page https://developer.mozilla.org/en-US/docs/Web/CSS/display and I think we are mostly there.
There are now examples for various parts of the spec, I've explained the inside/outside stuff and legacy values plus linked to other things we already have such as the flow layout info.
I have an issue in that the internal links here: https://developer.mozilla.org/en-US/docs/Web/CSS/display#Syntax are broken because the  wrapping the content of the headings gets encoded into the id on the anchor. Best way to deal with that?

Thanks for the help @ExE-Boss.
@rachelandrew, I'll review the display article and let you know if I've got any comments, after which we should be able to call this done.

OK, review comments:

The list-item value is missing a description in the Values section.
The content is really good, however strictly speaking by MDN guidelines we should probably have separate pages for the different value descriptions and put all the detail about how the values work on there, keeping the descriptions brief in this ref doc.

As an example, a detailed description of all the  values is given at
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
What do you think about this?

you mean a separate page for <display-inside>, <display-outside> and so on?It would certainly stop this being so epic!

@rachelandrew yup, exactly. I mean, some of the pages might become fairly small if you did that, but you could perhaps flesh them out with some additional examples, or links to additional examples (e.g. no need to rehash all the Grid/Flexbox examples all over again).

@chrisdavidmills happy to do that, it would make it a bit easier to comprehend I think. I'll have a go at doing so.

@rachelandrew fabulous, thanks Rachel!

@rachelandrew hrm, there are some weird things going on here. I managed to move the pages:
https://developer.mozilla.org/en-US/docs/Web/CSS/display-outside
https://developer.mozilla.org/en-US/docs/Web/CSS/display-inside
But I then got emails telling me the moves had failed, when they ... ummm, hadn't.
They look ok now anyway.

@rachelandrew That’s because there used to be a Web/CSS/display-outside page, which was since deleted (I’ve now moved the entry to Archive/Web/CSS/display-outside, which also apparently restored it.
Same with display-inside

Update: I have now moved the types to the new location and archived the old properties.

@chrisdavidmills the pages are now all separate and they have examples. New pages are linked from what were the anchor links.
I'm sure we could continue to add new examples forever, but unless you spot any glaring omissions this could probably be marked done and if I think up other things as I'm working around this subject I'll go add them.

@rachelandrew OK, I have given these all a copy edit, and things are looking generally good!
I added an Examples section to the main display page: https://developer.mozilla.org/en-US/docs/Web/CSS/display#Examples
Let me know if you think this reads OK; you might want to add some more suitable links to the list I started of related resources on MDN.
The display-outside page: https://developer.mozilla.org/en-US/docs/Web/CSS/display-outside. Mostly OK, although the explanation of run-in is a bit mind-bending, and could perhaps use some illustrations to show what you mean. Also, do you think the browser compat data for run-in makes sense? It might also be worth stating for the record that block and inline are supported, and have been forever.
Apart form that, looks great!

yeah I wasn't sure what to do with the compat data as I couldn't see a way to get at block and inline on their own.

https://github.com/mdn/browser-compat-data/pull/1799 will make it possible to do that.
The other option would be to make <display‑iside> and <display‑outside> sub‑features of display.

So display: run-in is a curious one, as it was implemented then removed by most other browsers. I don't think ever implemented in FF.
https://bugzilla.mozilla.org/show_bug.cgi?id=2056
https://quirksmode.org/css/css2/display.html
https://caniuse.com/#search=display%3A run-in
So do I add it, and flag the removals as best I can?

Yeah, I'd just add them all and then fill in the data about run-in not being supported in most places. It is still specced, just not supported, right?

Yeah, it is specced, but there are still some issues left to work out in the CSSWG side before browsers attempt to re‑implement it.

@chrisdavidmills there was a bunch of edits made in CSS Display 3, which is now at CR. So the spec is somewhat changed/clarified to the original implementations. I don't think there is much outstanding on it, but it probably isn't high priority to anyone.

PR to move display to CR status https://github.com/mdn/kumascript/pull/979

I think this is basically finished, apart from the BCD updates for run-in/display/block?

I believe so.

cool.


Release a Windows build

It would be cool if you would release Windows binaries, too.
I'm not a Gopher, but I believe you can cross compile it, right? I'm not sure how hard it would be.

Thanks for submitting this issue!  I looked into seeing of our build worked by targeting windows and unfortunately there's at least one issue that is not straightforward: https://github.com/aptible/supercronic/blob/master/cron/cron.go#L73

cron/cron.go:73:41: unknown field 'Setpgid' in struct literal of type syscall.SysProcAttr

https://github.com/aptible/supercronic/blob/298ae31302750ced7837fbb65f428df985010f5a/cron/cron.go#L73
I found a reference to this issue on GH but CreationFlags doesn't exist so I'm assuming there's more to this: https://stackoverflow.com/a/35435038
I'd be happy to accept a PR for supporting windows.


Incomplete information

Like in https://docs.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=javascript the documentation should say that:
Many HTTP client libraries will automatically follow the 302 redirection and start downloading the file immediately.

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

ID: a53d4b0e-4bf4-01a7-229c-5073dd56f45d
Version Independent ID: 8dc763d8-6252-d6af-5be5-99b7a9277fbd
Content: Convert to other formats - Microsoft Graph v1.0
Content Source: api-reference/v1.0/api/driveitem-get-content-format.md
Product: sharepoint
Technology: microsoft-graph
GitHub Login: @JeremyKelley
Microsoft Alias: JeremyKelley

As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness.


Consider update to v2, where also [] and {} are not defined

It makes sense to extend the check to empty objects and arrays.
Actually also [] and {} could be considered as not defined.
This requires a major version release. Change also description to something like:

checks if foo is undefined or null or an empty array or an empty object.

Even better, to check [] and '': foo.length && foo.length === 0.
In fact an empty array or empty string can be considered as not defined.

done https://github.com/fibo/not-defined/commit/e3696e17dac178d5e01db9e8ec1569e053446a12


Image source: justtakeitfree.com

Source Site
https://justtakeitfree.com/
Value Provided
It's an independent project from ukrainian family. We host only our photos.
Licenses Provided
CC BY 4.0
Implementation

[X] 🙋 I would be interested in implementing this feature.

Thank you for the source suggestion, @Aventurier! Do you have an API that Openverse could use to get the images?

Based on a little digging, the site does not have an API, but they do have a clean markup that can be used to run through and scrape the site. They do provide quite a bit of info (like tags) and all images credit "Justtakeitfree Free Photos" as the author. One thing that's missing is a title. None of the images are titled and only use a numeric ID as the identifier and in places like the HTML <title>, a concatenation of all the tags is used.
I'm not aware of the scraping policy of the catalog and if a REST API is a requirement but this site has a small collection of very high quality images that might make a nice addition to our content.


Feature/slack logging

@gmguarino, this is a draft PR from your branch so that we can iterate from there.
Nice work!
I have the following comments:

I took the freedom to run the repo linting on your modifications

Could you store the Slack token in the repo? I expected the Slack token to be a separate entity (an app), which was invited to the Slack workspace of D4G. Correct? As such, there is no security leak in sharing the secret key (considering the Slack of D4G as public). I am not 100% sure, we can run that by @TheoLvs first.

Else, the main intent of the logging is to have it on the data ingestions jobs, here.

If we add the token to the repo anyone can use it to message the channel we use for logging. If we are fine with this risk then there is no problem and we can add it. In any case we can just place them on the streamlit app secrets.toml file and retrieve them as environment variables.

I can rework the logging in the ingestion jobs to the channel.
We also have an issue of message redundancy at times: messages seem to arrive to the slack channel multiple times but I suspect it is a streamlit issue, so it will not affect ingestion logging.

rebased branch on main, removed logging from app

@estellerambier @TheoLvs What do you think about the token storage? It can go in the git or in the streamlit app, however you want. We just need to accept that if we put both token and channel in the code anyone can send a message but it seems like an acceptable risk.

Hey! I don't see the risk as:

you grand only write access to the boot
the D4G slack is public anyway.
It can go in the Streamlit app, but this will not work with the GitHub actions job, as they are an independent system. The jobs are triggered through GitHub itself, not the Streamlit

@estellerambier if this is ok for you I can merge the PR

The token has been deactivated. We need to find a way to store it securely

So when the token became public slack deactivated the app. I have reinstalled it to the workplace and created a new token.
We can store the token in the repository's encrypted secrets:
https://docs.github.com/en/actions/security-guides/encrypted-secrets
Whoever has repo owner access can add the new token to the github secrets and recover it during workflow execution like so:
env:
      SLACK_TOKEN: ${{ secrets.SuperSecret }}

Cool thank you! I will take a look tomorrow.
Did you trigger a error job on your branch to test out?

I can trigger locally but am unsure if I can trigger the gh action on a branch different to main?


Zellij has moved to a new configuration format

Zellij has moved to a new configuration format (KDL - https://kdl.dev) and has now been run with an old YAML configuration/layout/theme file.
- Converting the following theme YAML files to KDL files in the same location:
/home/user/.config/zellij/themes/catppuccin.yaml => /home/user/.config/zellij/themes/catppuccin.kdl
The original file(s) will remain unmodified.
Will then use the new converted file(s) for this and the next runs.

No actions are required of you. Press ENTER to continue.

Failed to convert yaml config: Failed to parse yaml: Scan(ScanError { mark: Marker { index: 43, line: 2, col: 18 }, info: "mapping values are not allowed in this context" })

I did make my own catppuccin.kdl with catppuccin mocha as the default theme. Maybe it could help other users if they are having issues
catppuccin.kdl.zip

Hey there @eight85,
There's actually an ongoing PR #7 which has a lot of discussion about migrating this, An outcome of that discussion is that Catppuccin has now actually been "upstreamed" in the main zellij repository itself here
Hope that helps! I believe @jaeheonji is doing some great work on trying to include themes by default in zelllij so that users will not have to copy-paste config in the future. From now on, I think we'll update the README to avoid any confusion.
Apologies! and thanks for using Catppuccin ❤


CI: use meaningful action name

Without name:, uses: is used by default.

I'll merge this PR after CIs are finished.


Fix unintentionally overwritten method_list

I would like to thank the authors of this repository for their work on this project, which has been invaluable for AI4code projects. However, I found a bug in the code that should not be present.
The error is that the method_list variable is overwritten on line 56. This means that the method_list variable will only contain the methods of the last extend time.
https://github.com/FSoft-AI4Code/CodeText-parser/blob/bdacdc4cb464fe1d43875dc4cdad1ad5a86e39f9/src/codetext/codetext_cli.py#L49-L64
To fix this error, instead of overwriting the method_list variable, I created a new variable, current_class_methods, to store the methods of the current class (check out my PR). Then, I extend the current_class_methods variable to the method_list list safely (line 64). This ensures that the method_list list contains all of the methods for all of the classes in the method_list list.
Here is the corrected code,

  cls_list = parser.get_class_list(root_node)
  method_list = []
  cls_metadata = []
  for _cls in cls_list:
      cls_info = parser.get_class_metadata(_cls)
      cls_info["code"] = get_node_text(_cls)

      cls_method = []
      current_class_methods = parser.get_function_list(_cls)
      for method in current_class_methods:
          method_info = parser.get_function_metadata(method)
          method_info['code'] = get_node_text(method)
          cls_method.append(method_info)

      cls_info["method"] = cls_method
      cls_metadata.append(cls_info)
      method_list.extend(current_class_methods)

Hi @nmd2k,
Could you please review my PR for a bug that could affect the dependent project? I'd really appreciate it.

Thank you, my silly mistake there. I will try to check other language and release a new version of this.
Thank you.


Fix lack of event patching in ClusterRole

What this PR does / why we need it:
Events were unable to be created by the kfserving-controller as a result of a missing RBAC rule
Which issue(s) this PR fixes:
Fixes #876
Special notes for your reviewer:

Run on fresh cluster and make sure that no rbac errors in kfserving-controller logs

Release note:

/ok-to-test

/retest

/retest

nice fix @ifilonenko !
/lgtm
/approve


Improve test

Hi @sidorares - here's the rest of the validation I was talking about.  Please review and provide feedback when you can.
I also added a test for basic launching and executing methods on a service.
Note - I removed the parse signature call you did - and replaced it with the check I wrote for signatures.

This is great! I'd like to add some integration tests as well that are able to run without dbus daemon ( using dbus server implimentation from this library )

that's actually the problem in your tests :( haven't actually looked at changes, but error log indicates that you are trying to connect to a bus and travis is not happy

I can probably move the dbus test out of the npm test - does that make sense?

ideally test/test-server.js should started mocked server, but for now you can skip it if CI=1 ( return early if process.env.CI )

I think signature parser already handles matching open/closed '({})' so validateSignature does not add anything useful ( can we just try to parse instead? )

I've put in the proces.env.CI tests like you talked about.  I've also shrunk the signature test as much as I could using the parseSignature function (the remaining code was needed to pass the added tests).

Dropping the dbus server test to see if travis will pass.  If this passes - I'll add PR later for the part that fails now.

lgtm!

As you heavily touched type system - would you like to collaborate on "simplified type serialisation/deserealisation" as discussed in #52 ?
Basically we either need to be able to transparently convert JS objects to a{sv} and/or as alternative provide helper functions to build complex types:
var param1 = dbus.Variant('ai', [1, 2, 3]);
var param2 = dbus.Variant('iii', 1, 2, 3);
var param3 = dbus.Hash('si', { 'test', 123 } );
var param3 = dbus.Hash('sv', { 'test', dbus.Variant('i', 123) } );
// or, with simplified auto conversion
param3 = { test: 123 }

I think 2 main pain points for most users are:

types are difficult to construct
type system not documented

If you want to break small parts of the task off - perhaps I can help.
On Wed, Apr 1, 2015 at 8:16 PM, Andrey Sidorov<EMAIL_ADDRESS>wrote:

As you heavily touched type system - would you like to collaborate on
"simplified type serialisation/deserealisation" as discussed in #52
https://github.com/sidorares/node-dbus/issues/52 ?
Basically we either need to be able to transparently convert JS objects to
a{sv} and/or as alternative provide helper functions to build complex
types:
var param1 = dbus.Variant('ai', [1, 2, 3]);var param2 = dbus.Variant('iii', 1, 2, 3);var param3 = dbus.Hash('si', { 'test', 123 } );var param3 = dbus.Hash('sv', { 'test', dbus.Variant('i', 123) } );// or, with simplified auto conversion
param3 = { test: 123 }
I think 2 main pain points for most users are:

types are difficult to construct
type system not documented

—
Reply to this email directly or view it on GitHub
https://github.com/sidorares/node-dbus/pull/66#issuecomment-88672698.


Azure DevOps git repository not being recognized

Hello,
My Azure DevOps git repository does not have .git extension in the url and seems like the archimate-ci-image script is enforcing it.
I cannot confirm if that is the issue but my point is:

Is there any way to improve the validation (regex?) and recognize git urls like this
<EMAIL_ADDRESS>
Note: Azure DevOps is generating url using this pattern.

@fbussolin
Hi, I don't know anything about Azure DevOps, I don't have an account there, and I don't want to get involved with it either.
If someone can fix this, I'll gladly consider such a PR

Hi @WoozyMasta ,
Thank you for your prompt answer!
I do not think Azure DevOps is the point here, let's consider just a regular git repository and remove the Azure DevOps from the question.
So it will be: Can the current validation be improved to remove the need to have .git extension in the git repository?
Kind Regards,

@fbussolin
Probably more information is needed, you can run the script in bash -x debug mode and show on which line the error occurs
Are you using ssh? What if we just use https and access token?

oh, sorry, I was in a hurry, I understand what you mean
LL35C25-L35C32 here should be made an optional .git checkout
and Azure swears if you add .git at the end?

@fbussolin try to use the code from this try_fix_azure branch, maybe it will be enough and let me know

Yes, I think that's correct what you pointed.
The url is being generated at company level and I do not have access to modify it.
Here is the console output for me:


Unhandled rejection Error: DialogRenderer must implement getDialogContainer()

This ones an oldie but a goodie, seems like a lot of people are having problems with Unhandled rejection Error: DialogRenderer must implement getDialogContainer().
I've tried many potential fixes suggested here but none have seemed to work for me.
I'm using: aurelia-cli 0.13.0 to build, aurelia-dialog 1.0.0-beta.3.0.0 and typescript.
When clicking a button to call my openDialog function, var host = dialogController.renderer.getDialogContainer(); dialogController.renderer is empty.

Upon further inspection, when I export my dialog class, everything inside DialogController is undefined.

Thanks

@EisenbergEffect any ideas?

@anthonyborell Did you register the plugin in the config method using .plugin('aurelia-dialog' ?

Hey @SamDeBlock, in my main.ts I've got the following code. Let me know if I'm doing it wrong.
export function configure(aurelia: Aurelia) {
  aurelia.use
    .standardConfiguration()
    .feature('resources')
    .plugin('aurelia-dialog', config => {
      config.useDefaults();
      config.settings.lock = true;
      config.settings.centerHorizontalOnly = false;
      config.settings.startingZIndex = 5;
    });

  if (environment.debug) {
    aurelia.use.developmentLogging();
  }

  if (environment.testing) {
    aurelia.use.plugin('aurelia-testing');
  }

  aurelia.start().then(() => aurelia.setRoot());
}

Alright, with a bit of digging I found out the issue... totally on my end.
Basically the <body> element on my index.html file was <body aurelia-app> and not <body aurelia-app="main">.
So my main.ts was never getting hit, thus the aurelia-dialog was never being loaded.


Add Upthere Home latest

Upthere Home is the OS X client of the cloud service Upthere. The project is currently in public beta.
I'm not sure what I should put in the license field, so I just wrote :closed. The client will of course be free to use, but service pricing is not clear yet (everything's free during public beta, at least for now).

License Stanza Details:

They must always pertain to the license of the software itself, not the vendor’s business model (a free app to access a paid service is still :gratis, not :freemium).

It’s :gratis.

Thank you for the contribution. It needed some fixes, so they were made in 332ebf6fb817257d9f062ba17bc5ad05010b4382. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


Set-Cookie header is ignored in response from url: http://localhost:3000/api/login

I get an error when I try to login
Set-Cookie header is ignored in response from url: http://localhost:3000/api/login. The combined size of the name and value must be less than or equal to 4096 characters.
Can we choose what gets stored as a cookie?

Hey @jeronasiedu!
Good question – have you tried enabling multiple cookies? It's designed to solve your issue
It's not compatible with Firebase Hosting though.
I am working on minimizing the size of the cookie – probably I'll make the customToken optional to avoid this issue for most use-cases

I am having this same issue with Firebase Hosting. Any workaround for now?

Unfortunately, this limitation exists for Firebase Hosting at the moment, but I am actively working on making customToken optional in single cookie token. The canary version for the optional customToken should be available in a few days.
You can also quickly resolve the issue by downgrading the library to 1.5.x, but you'll loose access to some additional feature.
I'll keep you updated!

Unfortunately, this limitation exists for Firebase Hosting at the moment, but I am actively working on making customToken optional in single cookie token. The canary version for the optional customToken should be available in a few days.
You can also quickly resolve the issue by downgrading the library to 1.5.x, but you'll loose access to some additional feature.
I'll keep you updated!

thank you for the quick response! I downgraded to 1.5.3 and it worked!
I will keep an eye for the canary version

Just to add, after downgrading, i am getting the following error:
TypeError: The input to be decoded is not correctly encoded.     at Module.E (/workspace/.next/server/src/middleware.js:13:15437)     at s (/workspace/.next/server/src/middleware.js:2:66056)     at p (/workspace/.next/server/src/middleware.js:2:107341)     at g (/workspace/.next/server/src/middleware.js:2:105327)     at Object.eR [as handler] (/workspace/.next/server/src/middleware.js:2:17773)     at /workspace/.next/server/src/middleware.js:2:16035     at AsyncLocalStorage.run (node:async_hooks:346:14)     at Object.wrap (/workspace/.next/server/src/middleware.js:2:13484)     at /workspace/.next/server/src/middleware.js:2:15957     at /workspace/.next/server/src/middleware.js:2:10554
How can i handle this error? The ideal would be able to clear the cookies when this happens right?
Any configuration I can set on the middleware to do this?

@Jacquesjh are you getting this error in handleError callback?
If yes, you could ignore this error and redirect user to login page. When they login again, the error should disappear

@Jacquesjh I have released<EMAIL_ADDRESS>with optional custom token support and custom token disabled by default. It should solve the issue for you.

I also just ran into this and canary fixed it for me 👍
I was testing my app with one google user, and everything was fine, until I tried to sign in with a different google account.
The difference appears to be that the second account has a name + picture in the data which also shows up in the decodedToken. The picture link is very long (as it contains a token itself) and I assume this is what caused the cookie to exceed the size limit.
My app doesn't need the picture. Is there maybe a way to omit certain properties from being stored as part of the cookie, or select the ones you need?

Hey @0x80,
The picture url you refer to is generated on Google's side – ie. I am not sure if the library could overwrite it.
You could try using updateUser advanced method to remove the user picture, if you really don't need it. I don't think it should pose much of a problem though, since it's most definitely being validated by Google.
The real problem here was a customToken, that in some cases can be as much as 1.5x size of the ID token.
Since v1.8.0 custom token is disabled by default. You can use enableCustomToken option to enable custom token.
When using custom token, it's recommended to set enableMultipleCookies to true. It will split the session into multiple cookies, so you don't have to worry much about cookie size

I will close the issue as completed now. It's solved as of v1.8.0


Extract program-option crate

Problem
solana_program::program_option is used in a lot of places where it would be nice not to require all of solana_program, most notably in solana-program-library crates.
Summary of Changes

Move it to a new crate
Re-export in solana-program without deprecation

sure! crate check is green 🫡


Where is the TMI groovy script?

Looking for the referenced TMI groovy script in the source.  The .classpath file refers to an external Eclipse project.  Cannot seem to find the com.dexvis.tmi.* source.

Ah, that's a separate ANTLR project which I overlooked adding to Github.  Let me think through how
best to distribute it.  Either separately or as part of Dex proper.  Meanwhile, if you email me at<EMAIL_ADDRESS>I'll zip up the source for you as a stopgap measure.

Pat

Sent and TMI is bundled as a Jar now.  Closing.


Update obs

Hi,
There is an 0.12.2 patch release available which fixes some issues.

Currently there are no binary download for 0.12.2. I'll get in contact with @jp9000 so we could them.

On hold until binaries for 0.12.2 are released.

This has since been updated to 0.12.4.


Add Docker support

It will be much easier to bootstrap with docker support.
Mean can be a good reference
https://github.com/meanjs/mean

I haven't played around with docker that much. It would be awesome if you could send a PR for docker support.

Done by @kandros.


Losing Image Alignment

Image is losing its alignment after converting from html to draft. Its always displaying image at center after converting

+1

i thought it was not this library's bug, the classname is rdw-aligment-center, it should be react-draft-wysiwyg's bug.


unable to browse bread

Laravel Version: latest
Voyager Version: latest
PHP Version: PHP 5.6
Database Driver & Version: MySQL 5.5

Description:
unable to browse bread
Steps To Reproduce:

Create database table
make model
add bread
Edit roles
try to browse bread

Got error
(1/1) HttpExceptionThis action is unauthorized.
in Handler.php (line 133)
Any idea?

Just try to repeat steps with Products described in Voyager Academy 7-8

Seems like a problem is in capital letter of model.
use
class Product extends Model
instead
class product extends Model

@andrewxx, nice catch.  Did you create the model manually, or did Voyager create it for you?


how to delete":" in compile.sh

thank you for your work, when i sh compile.sh
it occurs error:
unable to execute '/usr/local/cuda-10.1:/bin/nvcc': No such file or directory
error: command '/usr/local/cuda-10.1:/bin/nvcc' failed with exit status 1
how to delete ":" in this path.
thank you for your time

the pytorch is 1.1 ubuntu16.04 and python3.6 cuda10.1
i test in pytoch 1.0 ubuntu16.04 python3.5 cuda8.0 has the same error
how to delete the ":"??thaks

It should be an issue of your environment $PATH.
you should be able to check by “echo $PATH”.
In “compile.sh” there is example to set temporary PATH , CUDA_HOME and LD_LIBRARY_PATH.

It should be an issue of your environment $PATH.
you should be able to check by “echo $PATH”.
In “compile.sh” there is example to set temporary PATH , CUDA_HOME and LD_LIBRARY_PATH.

thank you for your answer,but i have occurred another problem.
here is the error:
/usr/bin/python3.6m /usr/lib/pycharm-community/helpers/pydev/pydevd.py --multiproc --qt-support --client <IP_ADDRESS> --port 36827 --file /home/lvhao/GANet-master/train.py --batchSize=4 --crop_height=240 --crop_width=528 --thread=4 --data_path=/home/lvhao/data/kitti_stereo_2015/training/ --training_list=/home/lvhao/GANet-master/lists/kitti2015_train.list --save_path='./checkpoint/finetune_kitti2015' --kitti2015=1 --shift=3 --resume='./checkpoint/sceneflow_epoch_10.pth' --nEpochs=800
warning: Debugger speedups using cython not found. Run '"/usr/bin/python3.6m" "/usr/lib/pycharm-community/helpers/pydev/setup_cython.py" build_ext --inplace' to build.
pydev debugger: process 26233 is connecting
Connected to pydev debugger (build 163.8233.8)
Namespace(batchSize=4, crop_height=240, crop_width=528, cuda=1, data_path='/home/lvhao/data/kitti_stereo_2015/training/', kitti=0, kitti2015=1, left_right=0, lr=0.001, max_disp=192, nEpochs=800, resume="'./checkpoint/sceneflow_epoch_10.pth'", save_path="'./checkpoint/finetune_kitti2015'", seed=123, shift=3, testBatchSize=1, threads=4, training_list='/home/lvhao/GANet-master/lists/kitti2015_train.list', val_list='./lists/sceneflow_test_select.list')
===> Loading datasets
===> Building model
=> no checkpoint found at ''./checkpoint/sceneflow_epoch_10.pth''
0.001
Traceback (most recent call last):
File "/usr/lib/pycharm-community/helpers/pydev/pydevd.py", line 1596, in
globals = debugger.run(setup['file'], None, None, is_module)
File "/usr/lib/pycharm-community/helpers/pydev/pydevd.py", line 974, in run
pydev_imports.execfile(file, globals, locals)  # execute the script
File "/usr/lib/pycharm-community/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home/lvhao/GANet-master/train.py", line 184, in
train(epoch)
File "/home/lvhao/GANet-master/train.py", line 105, in train
disp0, disp1, disp2=model(input1,input2)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/parallel/data_parallel.py", line 150, in forward
return self.module(*inputs[0], **kwargs[0])
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/lvhao/GANet-master/models/GANet_deep.py", line 385, in forward
g = self.conv_start(x)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/container.py", line 92, in forward
input = module(input)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/lvhao/GANet-master/models/GANet_deep.py", line 38, in forward
x = self.bn(x)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, kwargs)
File "/home/lvhao/GANet-master/libs/sync_bn/modules/sync_bn.py", line 121, in forward
self.activation, self.slope).view(input_shape)
File "/home/lvhao/GANet-master/libs/sync_bn/functions/sync_bn.py", line 58, in forward
_ex, _exs = sync_bn_gpu.expectation_forward(x)
RuntimeError: cudaGetLastError() == cudaSuccess ASSERT FAILED at src/gpu/sync_bn_cuda.cu:424, please report a bug to PyTorch. (Expectation_Forward_CUDA at src/gpu/sync_bn_cuda.cu:424)
frame #0: std::function<std::string ()>::operator()() const + 0x11 (0x7f869c60e441 in /usr/local/lib/python3.6/dist-packages/torch/lib/libc10.so)
frame #1: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x2a (0x7f869c60dd7a in /usr/local/lib/python3.6/dist-packages/torch/lib/libc10.so)
frame #2: Expectation_Forward_CUDA(at::Tensor) + 0x281 (0x7f869928d394 in /home/lvhao/GANet-master/libs/sync_bn/build/lib/sync_bn_gpu.cpython-36m-x86_64-linux-gnu.so)
frame #3:  + 0x1be75 (0x7f8699280e75 in /home/lvhao/GANet-master/libs/sync_bn/build/lib/sync_bn_gpu.cpython-36m-x86_64-linux-gnu.so)
frame #4:  + 0x202ae (0x7f86992852ae in /home/lvhao/GANet-master/libs/sync_bn/build/lib/sync_bn_gpu.cpython-36m-x86_64-linux-gnu.so)
frame #5: /usr/bin/python3.6m() [0x50746c]
frame #6: _PyEval_EvalFrameDefault + 0x4dd (0x507edd in /usr/bin/python3.6m)
frame #7: /usr/bin/python3.6m() [0x504e80]
frame #8: /usr/bin/python3.6m() [0x5b95e9]
frame #9: PyObject_Call + 0x3e (0x59fcee in /usr/bin/python3.6m)
frame #10: THPFunction_apply(_object, _object) + 0x6b1 (0x7f86e5041481 in /usr/local/lib/python3.6/dist-packages/torch/lib/libtorch_python.so)
frame #11: /usr/bin/python3.6m() [0x507217]
frame #12: _PyEval_EvalFrameDefault + 0x4dd (0x507edd in /usr/bin/python3.6m)
frame #13: /usr/bin/python3.6m() [0x5b94e5]
frame #14: PyObject_Call + 0x3e (0x59fcee in /usr/bin/python3.6m)
frame #15: _PyEval_EvalFrameDefault + 0x1ab3 (0x5094b3 in /usr/bin/python3.6m)
frame #16: /usr/bin/python3.6m() [0x504e80]
frame #17: /usr/bin/python3.6m() [0x5b96f0]
frame #18: /usr/bin/python3.6m() [0x58cabe]
frame #19: _PyObject_FastCallKeywords + 0x19c (0x5a078c in /usr/bin/python3.6m)
frame #20: /usr/bin/python3.6m() [0x5073f0]
frame #21: _PyEval_EvalFrameDefault + 0x4dd (0x507edd in /usr/bin/python3.6m)
frame #22: /usr/bin/python3.6m() [0x5b94e5]
frame #23: PyObject_Call + 0x3e (0x59fcee in /usr/bin/python3.6m)
frame #24: _PyEval_EvalFrameDefault + 0x1ab3 (0x5094b3 in /usr/bin/python3.6m)
frame #25: /usr/bin/python3.6m() [0x504e80]
frame #26: /usr/bin/python3.6m() [0x5b96f0]
frame #27: /usr/bin/python3.6m() [0x58cabe]
frame #28: _PyObject_FastCallKeywords + 0x19c (0x5a078c in /usr/bin/python3.6m)
frame #29: /usr/bin/python3.6m() [0x5073f0]
frame #30: _PyEval_EvalFrameDefault + 0x4dd (0x507edd in /usr/bin/python3.6m)
frame #31: /usr/bin/python3.6m() [0x5b94e5]
frame #32: PyObject_Call + 0x3e (0x59fcee in /usr/bin/python3.6m)
frame #33: _PyEval_EvalFrameDefault + 0x1ab3 (0x5094b3 in /usr/bin/python3.6m)
frame #34: /usr/bin/python3.6m() [0x504e80]
frame #35: /usr/bin/python3.6m() [0x5b96f0]
frame #36: /usr/bin/python3.6m() [0x58cabe]
frame #37: _PyObject_FastCallKeywords + 0x19c (0x5a078c in /usr/bin/python3.6m)
frame #38: /usr/bin/python3.6m() [0x5073f0]
frame #39: _PyEval_EvalFrameDefault + 0x4dd (0x507edd in /usr/bin/python3.6m)
frame #40: /usr/bin/python3.6m() [0x5b94e5]
frame #41: PyObject_Call + 0x3e (0x59fcee in /usr/bin/python3.6m)
frame #42: _PyEval_EvalFrameDefault + 0x1ab3 (0x5094b3 in /usr/bin/python3.6m)
frame #43: /usr/bin/python3.6m() [0x504e80]
frame #44: /usr/bin/python3.6m() [0x5b9928]
frame #45: /usr/bin/python3.6m() [0x58cabe]
frame #46: PyObject_Call + 0x3e (0x59fcee in /usr/bin/python3.6m)
frame #47: _PyEval_EvalFrameDefault + 0x1ab3 (0x5094b3 in /usr/bin/python3.6m)
frame #48: /usr/bin/python3.6m() [0x504e80]
frame #49: /usr/bin/python3.6m() [0x5b9928]
frame #50: PyObject_Call + 0x3e (0x59fcee in /usr/bin/python3.6m)
frame #51: _PyEval_EvalFrameDefault + 0x1ab3 (0x5094b3 in /usr/bin/python3.6m)
frame #52: /usr/bin/python3.6m() [0x504e80]
frame #53: /usr/bin/python3.6m() [0x5b96f0]
frame #54: /usr/bin/python3.6m() [0x58cabe]
frame #55: _PyObject_FastCallKeywords + 0x19c (0x5a078c in /usr/bin/python3.6m)
frame #56: /usr/bin/python3.6m() [0x5073f0]
frame #57: _PyEval_EvalFrameDefault + 0x4dd (0x507edd in /usr/bin/python3.6m)
frame #58: /usr/bin/python3.6m() [0x5064e4]
frame #59: /usr/bin/python3.6m() [0x507330]
frame #60: _PyEval_EvalFrameDefault + 0x4dd (0x507edd in /usr/bin/python3.6m)
frame #61: /usr/bin/python3.6m() [0x504e80]
frame #62: /usr/bin/python3.6m() [0x5c6213]
frame #63: /usr/bin/python3.6m() [0x507217]
Backend TkAgg is interactive backend. Turning interactive mode on.
the pytorch is 1.1 ubuntu16.04 and python3.6 cuda10.1 and cudnn is 7

Maybe try installing CUDA10.0? I know there are some issues with PyTorch with CUDA10.1.

I want to know the "compile.sh" how to do .when  do "sh compile.sh",the error: command '/usr/local/cuda-10.0**/bin/bin/nvcc**' failed with exit status 1. I "vim ~/.bashrc" and find the $PATH is :
export CUDA_HOME=/usr/local/cuda-10.0**/bin**
export LD_LIBRARTY_PATH=/usr/local/cuda-10.0/lib64
export PATH="$PATH:$LD_LIBRARY_PATH:$CUDA_HOME"
I change the first to the "export CUDA_HOME=/usr/local/cuda-10.0" (not hava "/bin")and the error is solved. But I have the another error:"nvcc -V"  :程序“nvcc”尚未安装。 您可以使用以下命令安装：
sudo apt install nvidia-cuda-toolkit. I think if I change the $PATH (not have bin),there have the second problem,but change the $PATH (hava bin),there have the first problem

It should be an issue of your environment $PATH.
you should be able to check by “echo $PATH”.
In “compile.sh” there is example to set temporary PATH , CUDA_HOME and LD_LIBRARY_PATH.

I have encounted the same problem and I don't know how to solve it. Did you solve this?

I have encounted the same problem and I don't know how to solve it. Did you solve this? @Lvhhhh


Move editing prompt from the ai bot to the card editing skill

In this PR, I moved editing prompt to a skill card and I also made it as a default skill card that is included and active in all rooms.

I ran this locally and was able to patch cards as expected but it’s still suggesting patches even when I turn the skill off, is that expected?

@backspace it's not desired but I think it's likely with this change currently.
We don't yet have a link between commands and the skills, so patchCard is always present when used in interact mode.

@burieberry When we persist skills we should consider how that plays with default skills.


Update how-managed-desktop-works.md

Changed first word from "with" to "in"

ignore this was a test


fix: Update Package.swift based on codegen and add AWSSTS as ECS integration test dependency

Issue #

Description of changes

Update Package.swift to include changes that were added to codegen
Add AWSSTS as ECS integration test dependency

New/existing dependencies impact assessment, if applicable

Conventional Commits

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/test


chore: using tsc instead tsdx on ui build

What's the purpose of this pull request?
We want to remove tsdx completely, so this pr initializes this process starting on script build.
How it works?
The build script was changed to use tsc lib instead tsdx.
How to test it?
Running the command
yarn turbo run build --filter=ui

Starters Deploy Preview

References

After the script was changed, the other script size stopped working. I think we need to upgrade the size-limit dependency to the newer major (4 -> 7).


Updated 022finger-command.md to include privacy considerations

What type of PR is this? (check all applicable)

[ ] ♻ Refactor
[ ] ✨ New Chapter
[ ] 🐛 Bug Fix/Typo
[ ] 👷 Optimization
[x] 📝 Documentation Update
[ ] 🚩 Other

Description
Added a section in the finger command chapter discussing potential privacy concerns related to revealing user information such as login times, directories, and idle status. Updated the README to reflect this.
Related Tickets & Documents
N/A
Added to documentation?

[x] 📜 readme
[ ] 🙅 no documentation needed

ok sure i will look into this thanks for the feedback

hey you can check it now i have added the updates you can check it now (#317)

Closing this one as this has been fixed in: https://github.com/bobbyiliev/101-linux-commands-ebook/pull/317


Update min_compute.yml

I really like that this is broken up into miner and validator sections. Thanks!


TZ-enable support in STM32U5 OB writing script

The first patch fixes the TZ enabling in the case of a first activation of the secure options: The secure options cannot be written before TZEN has actually been set.
The second patch is an optimization: Since the RDP regression automatically involves a mass-erase of the user flash, there is not need to erase before the RDP regression.

@grdSTM Thanks for finding this. It's been causing me some confusion the last couple days.


async function without catch block

(node:7512) UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT <IP_ADDRESS>:443
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
(node:7512) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

Do you have any ideas on how to write a catch block for this? I can take a look when I'm on my laptop later but I feel like it should be pretty simple.
Did this just randomly pop up in your terminal when the program was running or was this the first thing that appeared when you ran the program?

popped up while the spambot was running. Did a catch block now with
.catch(error => sendSpamMessage);
and apparently i dont get any error msgs anymore. All good on my side now

Sweet. You could make a PR if you want so nobody else has to deal with this issue

I kind of reworked your script, removing the prune and delete msgs so that the bot just keep on spamming the chat^^ I don't think a PR is suitable in this case

Just PR whenever and I'll merge it

I just went ahead and added it


note: This error originates from a subprocess, and is likely not a problem with pip.

facing above error while installing on win 11

I am facing the same error too; I did some fiddling and found that the problem is most likely with how it installs the dependencies it needs. The four problem areas are Spacy, Blis, Preshed, and Thinc. I tried manually installing these dependencies after running pip install chatterbot --no-deps, but spacy seems to be the only library I could not install.
Maybe they will update it to work with newer versions of each dependency?

!pip install chatterbot==1.0.4
!pip install PyYAML==5.1
install by using the above version it will be helpful.


If login via RPC, and when I call webview of odoo. can I access that webview without anymore login again?

I am uring RPC now, we know we can access odoo via RPC login.
But I also want to use flutter_webview_plugin to visit one backend page, normally we need to login the web again.  Is there someway to not login the web again?
Or must I use Single Sign on?  Is it possible to do somehow via RPC etc.
Thanks a lot!

I doubt it will work. To be logged in you need session id in cookies. But for rpc calls session id is updated on every call. You can't use session obtained from rpc as it will be expired on next rpc call.
There is session stream that yields new session id for each call so you can save it for next app launch https://github.com/ERP-Ukraine/odoo-rpc-dart/blob/master/example/odoo_rpc_example.dart#L29
You may try to use it and set it to cookie of web view if it is possible.

I doubt it will work. To be logged in you need session id in cookies. But for rpc calls session id is updated on every call. You can't use session obtained from rpc as it will be expired on next rpc call.
There is session stream that yields new session id for each call so you can save it for next app launch https://github.com/ERP-Ukraine/odoo-rpc-dart/blob/master/example/odoo_rpc_example.dart#L29
You may try to use it and set it to cookie of web view if it is possible.

I think I am weak in this area.  Can you please try it?  if it would be great that it works.  Thank you very very much!

Sorry, it is not related to rpc module at all.


Can not connect to Mysql

On a brand new sails projet, I've added:
 localMysql: {
    adapter: 'sails-mysql',
    host: 'localhost',
    user: 'homestead',
    password: 'secret',
    database: 'sails'
  },

on config.connections.js, and:
connection: 'localMysql',
migrate: 'alter'

on config.models.js. A user model is set on api/models/User.js:
// api/models/User.js
module.exports = {

  schema: true,

  attributes: {

    appid: {
      type: 'string'
    },

    uid: {
      type: 'string'
    },

    hid: {
      type: 'string'
    },

    params: {
      type: 'string'
    }
 }
}

When running, sails lift, I obtain:
error: A hook (`orm`) failed to load!
error: Error (E_UNKNOWN) :: Encountered an unexpected error
: Could not connect to MySQL:
Error: connect ECONNREFUSED
    at afterwards (/home/vagrant/sails/track/node_modules/sails-mysql/lib/connections/spawn.js:75:13)
    at /home/vagrant/sails/track/node_modules/sails-mysql/lib/connections/spawn.js:40:7
    at Pool.<anonymous> (/home/vagrant/sails/track/node_modules/sails-mysql/node_modules/mysql/lib/Pool.js:47:16)
    at Handshake.Sequence.end (/home/vagrant/sails/track/node_modules/sails-mysql/node_modules/mysql/lib/protocol/sequences/Sequence.js:78:24)
    at Protocol.handleNetworkError (/home/vagrant/sails/track/node_modules/sails-mysql/node_modules/mysql/lib/protocol/Protocol.js:282:14)
    at PoolConnection.Connection._handleNetworkError (/home/vagrant/sails/track/node_modules/sails-mysql/node_modules/mysql/lib/Connection.js:303:18)
    at Socket.emit (events.js:95:17)
    at net.js:440:14
    at process._tickDomainCallback (node.js:463:13)
```

Meanwhile, on same folder I ran sails, I can successfully connect to mysql (sails database is currently empty) by:

mysql --user=homestead --password=secret --host=localhost --database=sails

Both sails and mysql are running within a vagrant box.

Any suggestion ?

Ok - this is solved. Thanks for your help.
Not sure to understand the details, but it was due to the bind-address parameter in  /etc/mysql/my.cnf
Two to solve this:

comment #bind-address in /etc/mysql/my.cnf and restart mysql (sudo service mysql restart)
modify the host in connection.js to match the bind-address parameter in  /etc/mysql/my.cnf

I am using WAMP. and could not find "bind-address" in my my.ini file. Any other work around?


E tensorflow/core/grappler/optimizers/meta_optimizer.cc:502] layout failed: Invalid argument: size of values 0 does not match size of permutation 4.

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):
TensorFlow version (use command below):  2.0
Python version: 3.7
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory: RTX 2080Ti 11GB

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with: 1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" 2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
Originally, I built this model in tensorflow 1.1x and I transferred the model to TF 2.0 manually to use tf.keras. It is working but it shows me this error message  (E tensorflow/core/grappler/optimizers/meta_optimizer.cc:502] layout failed: Invalid argument: size of values 0 does not match size of permutation 4.) and its performance is worse than tf 1.1x.
I suspect that this error interrupts to train somehow.
I didn't put any permutation layer in my model. It is hard to find it.
Describe the expected behavior
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

same issue for me.

@wkdgnsgo, Please paste the standalone code to reproduce the issue.
Follow the instructions mentioned in the Tensorflow site to migrate from TF1 to TF2. Thanks!

I have the exact same issue training a cycleGAN, my operations are built in tf.Module and I’m using tf.optimizers.Adam

I get the same error message(/warning?). Python 3.6.8 [GCC 8.3.0], tf.version v2.0.0-rc2-26-g64c3d38 2.0.0 in the official tf docker image.
Quite a large I2I translation project, so it's hard to make minimal reproducing code. An issue that might be related is a shape error that is produced if the train function is decorated with @tf.function, which works in EE mode.
A par of subclassed tf.keras.Models f_x, f_y is used with the train step pattern
self.loss_object = tf.keras.losses.MeanSquaredError()
self.optimizer = tf.keras.optimizers.Adam(tf.keras.optimizers.schedules.ExponentialDecay(...))

def train_step(x,y,cross_loss_weight)
    with tf.GradientTape as tape:
        y_hat, x_hat = f_x(x), f_y(y)
        x_tilde, y_tilde = f_y(y_hat), f_x(x_hat)
        fx_loss = {
                "cross": self.loss_object(y, y_hat, clw),
                "cycle": self.loss_object(x, x_tilde),
                "reg": sum(self._fx.losses),  # regularization from submodel
        }
        fx_loss = {key: self.lambdas[key] * value for key, value in fx_loss.items()}
        fx_total_loss = sum(fx_loss.values())
        ... same for f_y...
    gradient_targets = self._fx.trainable_variables + self._fy.trainable_variables
    gradients = tape.gradient(loss_value, gradient_targets)
    self.optimizer.apply_gradients(zip(gradients, gradient_targets))

So it seems the use is similar to @miguelalba96 with a cyclic loss term, but no adversarial term in my case. The model is hardly a DAG, but rather two DAGs trained in conjunction. Can the issue be related to this?

I am training a VAE and I encountered the same issue and managed to remove the error but I do not understand what caused the issue. When I run this code I get the error:
<EMAIL_ADDRESS>def forward(x_real):
eps = tf.random.normal([FLAGS.batch_size, FLAGS.latent_dim])
z_mu, z_log_sigma = E(x_real, training=True)
z = z_mu + tf.exp(z_log_sigma) * eps
x_real_mu = D(z, training=True)
    kl_loss = tf.reduce_mean(
        kl_divergence(z_mu, z_log_sigma))
    ll_loss = tf.reduce_mean(
        negative_log_likelyhood(x_real, x_real_mu))
    return x_real_mu, ll_loss, kl_loss

but the error vanish if I run this<EMAIL_ADDRESS>def forward(x_real):
eps = tf.random.normal([FLAGS.batch_size, FLAGS.latent_dim])
z_mu, z_log_sigma = E(x_real, training=True)
z = z_mu + tf.exp(z_log_sigma) * eps
x_real_mu = D(z, training=True)
    kl_loss = tf.reduce_mean(
        kl_divergence(z_mu, z_log_sigma))
    ll_loss = tf.reduce_mean(
        negative_log_likelyhood(x_real+0.0, x_real_mu)) # <-- change here
    return x_real_mu, ll_loss, kl_loss

`
I wonder why the first version raise the error...

@AntoinePlumerault, Could provide the complete code snippet to replicate the reported issue. Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

I confirm the same issue. I am working with python 3.7 and tensorflow-gpu 2.0 release installed from pip.
Here is the code to reproduce the issue. You would need a folder of images with the same size to run this code:
`# -- coding: utf-8 --
from future import absolute_import, division, print_function, unicode_literals
import tensorflow as tf
import os
import time
import numpy as np
import glob
import matplotlib.pyplot as plt
import PIL
import imageio
import random
import pdb
from IPython import display
AUTOTUNE = tf.data.experimental.AUTOTUNE
print("GPU is available:", tf.test.is_gpu_available())
#data_root_train = '/home/tatar/.keras/datasets/flower_photos/daisy'
#data_root_test = '/home/tatar/.keras/datasets/flower_photos/tulips'z
data = "YOUR-DATA-FOLDER"
image_h = 320
image_w = 180
epochs = 200
all_image_paths = [os.path.join(data, file) for file in os.listdir(data)]
random.shuffle(all_image_paths)
#all_image_paths = all_image_paths[:int(0.5*len(all_image_paths))]
all_train_image_paths = all_image_paths[:int(0.9len(all_image_paths))]
all_test_image_paths = all_image_paths[int(0.9len(all_image_paths)):]
BATCH_SIZE = 8
TRAIN_BUF = len(all_train_image_paths)
TEST_BUF = len(all_test_image_paths)
def decode_img(img):
convert the compressed string to a 3D uint8 tensor
img = tf.image.decode_jpeg(img, channels=3)
Use convert_image_dtype to convert to floats in the [0,1] range.
img = tf.image.convert_image_dtype(img, tf.float32)
resize the image to the desired size.
#img = tf.image.resize(img, [image_w, image_h])
return img
def process_path(file_path):
load the raw data from the file as a string
img = tf.io.read_file(file_path)
img = decode_img(img)
return img
def preprocess_image(image):
image = tf.image.decode_jpeg(image, channels=3)
#image = tf.image.resize(image, [image_w, image_h])
image = tf.image.convert_image_dtype(image, tf.float32)  # normalize to [0,1] range
return image
def load_and_preprocess_image(path):
image = tf.io.read_file(path)
return preprocess_image(image)
path_train_ds = tf.data.Dataset.from_tensor_slices(all_train_image_paths)
path_test_ds = tf.data.Dataset.from_tensor_slices(all_test_image_paths)
train_dataset = path_train_ds.map(load_and_preprocess_image, num_parallel_calls=AUTOTUNE).shuffle(TRAIN_BUF).batch(BATCH_SIZE).prefetch(AUTOTUNE)
test_dataset = path_test_ds.map(load_and_preprocess_image, num_parallel_calls=AUTOTUNE).shuffle(TEST_BUF).batch(BATCH_SIZE).prefetch(AUTOTUNE)
"""## Wire up the generative and inference network with tf.keras.Sequential
In our VAE example, we use two small ConvNets for the generative and infercence network. Since these neural nets are small, we use tf.keras.Sequential to simplify our code. Let $x$ and $z$ denote the observation and latent variable respectively in the following descriptions.
Generative Network
This defines the generative model which takes a latent encoding as input, and outputs the parameters for a conditional distribution of the observation, i.e. $p(x|z)$. Additionally, we use a unit Gaussian prior $p(z)$ for the latent variable.
Inference Network
This defines an approximate posterior distribution $q(z|x)$, which takes as input an observation and outputs a set of parameters for the conditional distribution of the latent representation. In this example, we simply model this distribution as a diagonal Gaussian. In this case, the inference network outputs the mean and log-variance parameters of a factorized Gaussian (log-variance instead of the variance directly is for numerical stability).
Reparameterization Trick
During optimization, we can sample from $q(z|x)$ by first sampling from a unit Gaussian, and then multiplying by the standard deviation and adding the mean. This ensures the gradients could pass through the sample to the inference network parameters.
Network architecture
For the inference network, we use two convolutional layers followed by a fully-connected layer. In the generative network, we mirror this architecture by using a fully-connected layer followed by three convolution transpose layers (a.k.a. deconvolutional layers in some contexts). Note, it's common practice to avoid using batch normalization when training VAEs, since the additional stochasticity due to using mini-batches may aggravate instability on top of the stochasticity from sampling.
"""
class CVAE(tf.keras.Model):
def init(self, latent_dim):
super(CVAE, self).init()
self.latent_dim = latent_dim
self.inference_net = tf.keras.Sequential(
[
tf.keras.layers.InputLayer(input_shape=(image_w, image_h, 3)),
tf.keras.layers.Conv2D(
filters=32, kernel_size=3, strides=(2, 2), activation='relu'),
tf.keras.layers.Conv2D(
filters=64, kernel_size=3, strides=(2, 2), activation='relu'),
tf.keras.layers.Flatten(),
# No activation
tf.keras.layers.Dense(latent_dim + latent_dim),
]
)
self.generative_net = tf.keras.Sequential(
    [
      tf.keras.layers.InputLayer(input_shape=(latent_dim,)),
      tf.keras.layers.Dense(units=int(image_w/4)*int(image_h/4)*32, activation=tf.nn.relu),
      tf.keras.layers.Reshape(target_shape=(int(image_w/4), int(image_h/4), 32)),
      tf.keras.layers.Conv2DTranspose(
          filters=64,
          kernel_size=3,
          strides=(2, 2),
          padding="SAME",
          activation='relu'),
      tf.keras.layers.Conv2DTranspose(
          filters=32,
          kernel_size=3,
          strides=(2, 2),
          padding="SAME",
          activation='relu'),
      # No activation
      tf.keras.layers.Conv2DTranspose(
          filters=3, kernel_size=3, strides=(1, 1), padding="SAME"),
    ]
)

@tf.function
def sample(self, eps=None):
if eps is None:
eps = tf.random.normal(shape=(100, self.latent_dim))
return self.decode(eps, apply_sigmoid=True)
def encode(self, x):
mean, logvar = tf.split(self.inference_net(x), num_or_size_splits=2, axis=1)
return mean, logvar
def reparameterize(self, mean, logvar):
eps = tf.random.normal(shape=mean.shape)
return eps * tf.exp(logvar * .5) + mean
def decode(self, z, apply_sigmoid=False):
logits = self.generative_net(z)
if apply_sigmoid:
probs = tf.sigmoid(logits)
return probs
return logits

"""## Define the loss function and the optimizer
VAEs train by maximizing the evidence lower bound (ELBO) on the marginal log-likelihood:
$$\log p(x) \ge \text{ELBO} = \mathbb{E}_{q(z|x)}\left[\log \frac{p(x, z)}{q(z|x)}\right].$$
In practice, we optimize the single sample Monte Carlo estimate of this expectation:
$$\log p(x| z) + \log p(z) - \log q(z|x),$$
where $z$ is sampled from $q(z|x)$.
Note: we could also analytically compute the KL term, but here we incorporate all three terms in the Monte Carlo estimator for simplicity.
"""
optimizer = tf.keras.optimizers.Adam(1e-4)
def log_normal_pdf(sample, mean, logvar, raxis=1):
log2pi = tf.math.log(2. * np.pi)
return tf.reduce_sum(
-.5 * ((sample - mean) ** 2. * tf.exp(-logvar) + logvar + log2pi),
axis=raxis)
@tf.function
def compute_loss(model, x):
mean, logvar = model.encode(x)
z = model.reparameterize(mean, logvar)
x_logit = model.decode(z)
cross_ent = tf.nn.sigmoid_cross_entropy_with_logits(logits=x_logit, labels=x)
logpx_z = -tf.reduce_sum(cross_ent, axis=[1, 2, 3])
logpz = log_normal_pdf(z, 0., 0.)
logqz_x = log_normal_pdf(z, mean, logvar)
return -tf.reduce_mean(logpx_z + logpz - logqz_x)
@tf.function
def compute_apply_gradients(model, x, optimizer):
with tf.GradientTape() as tape:
loss = compute_loss(model, x)
gradients = tape.gradient(loss, model.trainable_variables)
optimizer.apply_gradients(zip(gradients, model.trainable_variables))
"""## Training

We start by iterating over the dataset
During each iteration, we pass the image to the encoder to obtain a set of mean and log-variance parameters of the approximate posterior $q(z|x)$
We then apply the reparameterization trick to sample from $q(z|x)$
Finally, we pass the reparameterized samples to the decoder to obtain the logits of the generative distribution $p(x|z)$
Note: Since we use the dataset loaded by keras with 60k datapoints in the training set and 10k datapoints in the test set, our resulting ELBO on the test set is slightly higher than reported results in the literature which uses dynamic binarization of Larochelle's MNIST.
"""

latent_dim = 16
num_examples_to_generate = 1
model = CVAE(latent_dim)
ckpt = tf.train.Checkpoint(step=tf.Variable(1), optimizer=optimizer, net=model)
manager = tf.train.CheckpointManager(ckpt, './tf_ckpts', max_to_keep=4)
ckpt.restore(manager.latest_checkpoint)
if manager.latest_checkpoint:
print("Restored from {}".format(manager.latest_checkpoint))
else:
print("Initializing from scratch.")
for epoch in range(1, epochs + 1):
start_time = time.time()
for train_x in train_dataset:
compute_apply_gradients(model, train_x, optimizer)
end_time = time.time()
if epoch % 1 == 0:
loss = tf.keras.metrics.Mean()
for test_x in test_dataset:
loss(compute_loss(model, test_x))
elbo = -loss.result()
display.clear_output(wait=False)
print('Epoch: {}, Test set ELBO: {}, '
'time elapse for current epoch {}'.format(epoch,
elbo,
end_time - start_time))
ckpt.step.assign_add(1)
if int(ckpt.step) % 10 == 0:
save_path = manager.save()
print("Saved checkpoint for step {}: {}".format(int(ckpt.step), save_path))
save_path = manager.save()
print("Saved checkpoint befor exit")`
As @AntoinePlumerault mentioned, I could solve the issue by changing this line,
  cross_ent = tf.nn.sigmoid_cross_entropy_with_logits(logits=x_logit, labels=x)
to this line,
  cross_ent = tf.nn.sigmoid_cross_entropy_with_logits(logits=x_logit, labels=x+0.0)

I'm facing similar issue, with tensorflow-gpu 2.0 release (installled inside docker). While training VAE with tf.distribute.MirroredStrategy() over 4 GPUs, I encounter this warning and the loss value shoots up to inf Following is the stdout (with logs showing training loss)
2020-03-02 02:53:44,396 INFO    : Batch 33, Training set loss:<PHONE_NUMBER>4296875, batch size: 32
2020-03-02 02:53:50.188897: E tensorflow/core/grappler/optimizers/meta_optimizer.cc:502] layout failed: Invalid argument: Size of values 0 does not match size of permutation 4.
2020-03-02 02:53:52,400 INFO    : Batch 34, Training set loss: inf, batch size: 30

Similar issue. Here is my solution. In my case the error was caused by the following code:
def _ndtr(self, x):
  # x is a tensor with shape [bs, height, width, channels]
  half_sqrt_2 = 0.5 * np.sqrt(2.)
  w = x * half_sqrt_2
  z = tf.abs(w)
  y = tf.where(z < half_sqrt_2, 1. + tf.math.erf(w), tf.where(w > 0., 2. - tf.math.erfc(z), tf.math.erfc(z)))
  return 0.5 * y

Which gives layout failed: Invalid argument: Size of values 0 does not match size of permutation 4 @ fanin shape ingradient_tape/SelectV2-2-TransposeNHWCToNCHW-LayoutOptimizer.
Looks like in the layout optimization stage tensors are transposed from NHWC to NCHW for performance, but some are failed.
So transposing it manually will solve:
def _ndtr(self, x):
  # x is a tensor with shape [bs, height, width, channels]
  x = tf.transpose(x, [0, 3, 1, 2])
  half_sqrt_2 = 0.5 * np.sqrt(2.)
  w = x * half_sqrt_2
  z = tf.abs(w)
  y = tf.where(z < half_sqrt_2, 1. + tf.math.erf(w), tf.where(w > 0., 2. - tf.math.erfc(z), tf.math.erfc(z)))
  y = tf.transpose(y, [0, 2, 3, 1])
  return 0.5 * y

The best solution is writing your model in NCHW format, so you can skip the layout optimization stage. Here a tutorial on what tf does in graph optimization stage.

This problem seems to come back on the latest TF versions.

Another workaround is to disable the layout_optimizer for the problematic layers. Following https://www.tensorflow.org/guide/graph_optimization, wrapping the problematic code block with with options({"layout_optimizer": False}): does the trick.

I solve it using this workaround  in colab
file_path = '/content/models/research/object_detection/model_main_tf2.py'

# Read the content of the file
with open(file_path, 'r') as file:
    content = file.readlines()

# Find the index of the import tensorflow line
import_line_index = next(i for i, line in enumerate(content) if 'import tensorflow' in line)

# Define the fix command to insert
fix_command = "tf.config.optimizer.set_experimental_options({'layout_optimizer': False})\n"

# Insert the fix command after the TensorFlow import
content.insert(import_line_index + 1, fix_command)

# Write the modified content back to the file
with open(file_path, 'w') as file:
    file.writelines(content)


Run testing ERROR: Could not find module

I want to use  code testing of create-react-app ?
for example
I have a js  file which I want to test , and in this file I have
import { xx } from 'kr/mainframe/xx'
when I run npm run test ,it throws an error

when I use import { xx } from '../../../kr/mainframe/xx' instead, my test will pass
How can I find the module with the first path ?
I come again...
when I redirect the path in webpack.config.dev.js
How can I find the imported modules like reducer not node_modules when I npm run test

You have not uploaded the screenshot.
Since you didn't take time to file the issue template I can't provide a detailed answer. But the basic idea is that you should colocate your tests with the files they're testing. So instead of putting tests in a top-level test folder, just put them in /kr/mainframe/xx/__tests__ or similar. This way imports would be much shorter.
Another workaround is to add NODE_PATH=src to your .env file. This will allow you to import top-level directories in src as if they were Node modules.


Integrate project board feedback

As a developer, I want to make sure that my plans are in line with my client's expectations so that they are satisfied.

Integrate Kyle's feedback on required issues in the project board.

Kyle says we're good (for now)!


chore: factorize condition result code out of resource plugins

This PR factorizes condition result code out of resource plugins:

Simplify code for plugins (easier for contributors to write/update resources as they have less things to handle and can focus on the resource code)
Centralize result object configuration (we can now change resource condition behavior in the core without impacting resources)
Separate condition result (true or false) from error (unexpected behavior such as network error)
Introduces the following behavioral changes (side effects of the PR):

githubrelease condition returns false but no error anymore when no upstream errors are triggered, with the same textual output as before.
gittag condition returns false but no error anymore when no upstream errors are triggered, with the same textual output as before.
golang condition returns false but no error anymore when no upstream errors are triggered, with the same textual output as before
gomod condition returns false but no error anymore when no upstream errors are triggered, with the same textual output as before
gomodule condition returns false but no error anymore when no upstream errors are triggered, with the same textual output as before
(nit) Homogenize methods to return an error (error.new() vs. fmt.Errorf())
(cleanup) removing obsolete "ConditionFromScm" tests

Test
To test this pull request, you can run the following commands:
make test

Additional Information

Unit test are not checking for the message returned by the Condition() function. It wasn't before this PR, so I chose to focus on the refactor to avoid too much changes in this PR

Going to continue to look more at the code as this is the sort of PR that takes multiple passes.
But I remember when I first looked to create a contribution I read this: https://github.com/updatecli/updatecli/blob/main/CONTRIBUTING.adoc#3-respect-the-contract
I realised it was out of date and moved on, in hind sight I should have looked to to update it. The whole page possibly needs a overhaul so might be out of scope for this change but contacts could be updated.

Going to continue to look more at the code as this is the sort of PR that takes multiple passes.
But I remember when I first looked to create a contribution I read this: https://github.com/updatecli/updatecli/blob/main/CONTRIBUTING.adoc#3-respect-the-contract
I realised it was out of date and moved on, in hind sight I should have looked to to update it. The whole page possibly needs a overhaul so might be out of scope for this change but contacts could be updated.

Good point! I've tried to update a bit in https://github.com/updatecli/updatecli/pull/1775/commits/0d845e01c6046bfb29d86dc64dd43b74679ced6b, WDYT?

I made another pass and I catch a few additional things. It's nice to see a lot of go code being cleanup


Improve performance of Data Tables loader

Loading the Data Tables file takes >60 minutes on my 2013 MacBook Pro. When we get onto #45 and build a UI for the Data Tables to be loaded this is likely to be prohibitive, so this issue is a placeholder for investigating potential performance improvements prior to that.
Ideally our perf goal is <10 seconds, so we can keep the user in a single flow (sub-second would be amazing, but getting there from 60 minutes feels like a bit of an ask). If we go above this we may need to consider async messaging with notifications once the load is complete.

Also investigate about a bug in the category/concept loading.
Example of failing assignment: IDACI


create a yaml file for job_config

The recent codes haven't used yaml files. Upload a job configuration yaml file for a few variables.

Thank you @Delphin-Rajasekhar
@ChimaobiOsuegbu is on it and we can review YAML execution tomorrow. Thanks everyone!

Since exporting the .ipynb files does not give the exact code. So I'm fixing the issue now.


Assertion fail when try to move webcomponents to div [firefox]

I have checked that there is not similar issue registered. The application has some webcompoents developed on polymer, when I try to move some webcomponents from body to new div I get assertion error:
        var componentsContainer = document.createElement('div');
        componentsContainer.id = "componentsContainer";

        cmps.forEach(function(c){
            componentsContainer.appendChild(c); // Assertion Failed (webcomponentjs)
        })
       document.body.appendChild(componentsContainer);

Webcomponentjs @version 0.7.12
Chrome works fine...

Can you post an example of what you're seeing on JSBin?

Hi Daniel !
I guess the issue is related of use _toArray function of  underscore library and webcomponentjs pollyfil. The error happens when I use firefox (webcomponentsjs polyfill). May overwrite some functionality related with webcomponetsjs ? I going to try more standard way to treat N components as list to avoid underscore library.
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.17/webcomponents.js"></script>
  <link rel="import" href="../resources/wcs/bower_components/polymer/polymer.html">
  <link rel="import" href="../js/mediascape/AdaptationToolkit/componentManager/component-query.html">
  <link rel="import" href="../js/mediascape/AdaptationToolkit/componentManager/componentStatus.html">
  <link rel="import" href="../resources/wcs/audio-video-sm/video-audio.html">
  <script src="resources/libs/underscore-min.js"></script>
  <script>

 setTimeout(
   function(){
          var cmps = document.body.children;
          cmps = _.toArray(cmps);
          var cmps = cmps.filter(
            function(c){
             if (c.nodeName.split('-').length>=2) return true;
             else return false;
           }
          );
          var componentsContainer = document.createElement('div');
          componentsContainer.id = "componentsContainer";
          document.body.appendChild(componentsContainer);
          cmps.forEach(function(c){
              componentsContainer.appendChild(c);
          });

        },1000);
  </script>

</head>
<body>

  <x-media file=""></x-media>
  <x-media file=""></x-media>
  <x-media file=""></x-media>
</body>
</html>
```html

it seems that Firefox does not support does not permit adding array-base NodeElement to DOM, must be part of NodeList.

This issue is quite ancient and it seems to me that the above comment is correct. Therefore I am closing this issue. If you can still reproduce this, please modify this JSBin to show the issue.


Compress animated gif

Does this library support animated gif compression? I have tried it with an animated gif and it seemed to strip off all frames except for the first. Is there a setting/config/something I need to implement to make this work or is it just not currently supported?

When dealing with animated gifs you need to use gif.DecodeAll and gif.EncodeAll functions and process each animation frame separately. See #23 for a basic example, except the line runtime.GOMAXPROCS(runtime.NumCPU()) - it is not needed anymore.

Perfect thanks I'll give that a go, sorry for the delay, totally missed the notification!