Custom breakpoints not working

I am trying to change the default value but it is not working :(
"styled-system": "^5.1.0"
  render() {
    const { Component, router, radio, shiftNews } = this.props;
    const themes = {
      breakpoints: ["40em", "52em", "70em"]
    };

 return (
      <Container>
        <GlobalStyle />
        <Provider>
          <Consumer>
            {theme => (
              <ThemeProvider theme={themes}>
                <>
                  <Box width={[1, 1 / 2, 1 / 3]}>

sdasdas

                  </Box>
                </>
              </ThemeProvider>
            )}
          </Consumer>
        </Provider>
      </Container>
    );
  }

In your example, the breakpoints this is using are the same as the default since the 70em breakpoint isn't being used at all with the width={[ 1, 1/2, 1/3 ]} value

Yes, I know about the defaults values... But no matters what I put inside breakingpoints, it is not works.

Be sure you only have one instance of @emotion/core or styled-components (or whatever you're using) – theme context won't work across multiple instances of React context. If that's not it, you can try to create a reproduction with the CodeSandbox https://codesandbox.io/s/github/jxnblk/styled-system/tree/master/examples/basic

I believe we're experiencing a similar issue. We used to have breakpoints: [840, 1050, 1280], which worked fine and were converted to have px values. As @rebass/grid was updated, these px values were dropped.

The breakingponts doesn't work with nextjs _app.js. Without _app.js works normally. Why? :(

I have the same problem with custom breakpoints not working. Running Next.js 9 and wrapping _app.js with ThemeProvider.

I'm also having two issues with responsive styles:

<Box width={[1, 1, 1/2, 3/4]}> is rendering width: .4rem (which is theme.sizes[1] / theme.space[1]);

No matter what I try, my components never react to the array props I send them, not just in this example but across my entire site I havent been able to take advantage of this yet.

theme: breakpoints: [600, 900, 1200, 1800]
also have tried setting aliases and using an object. no luck.

@kiastorm It looks you might be experiencing a similar situation to what I noted in my comment above (https://github.com/styled-system/styled-system/issues/710#issuecomment-523609195) and referenced in https://github.com/rebassjs/rebass/issues/663. The latest @rebass/grid version upgrades styled-system version, and newer styled-system versions require breakpoints to have units specified, whereas earlier versions added px to the end.

I have just tried to add units to the end of my breakpoints instead, but still having no luck.
Also having another issue where mt={11} is rendering 11px, when it should be space[11] which definitely exists

Hey, for me it was not working like this, i updated from styled-system 4.0 to 5.0
breakpoints: [576, 768, 991, 1220]
Then i added the units
breakpoints: ['576px', '768px', '991px', '1220px'] and voila !

It sounds like there are two separate issues being discussed here. The breakpoints array requires units to be defined. The original issue has units, but sounds like the theme isn't being picked up in a Next.js app. @maiconkf can you create a reproduction of the issue using Next.js?

It sounds like there are two separate issues being discussed here. The breakpoints array requires units to be defined. The original issue has units, but sounds like the theme isn't being picked up in a Next.js app. @maiconkf can you create a reproduction of the issue using Next.js?

This is my _app.js:
import React from "react";
import App, { Container } from "next/app";
import { Consumer } from "../styles/theme-context";
import Provider from "../styles/theme-context";
import { createGlobalStyle, ThemeProvider } from "styled-components";
import { Flex, Box } from "../styles/grid";
import Head from "../components/head";
import Header from "../components/header/Header";
import Shift from "../components/shift/Shift";
import Weather from "../components/weather/Weather";
import Horoscope from "../components/horoscope/Horoscope";
import Messages from "../components/messages/Messages";
import Top10 from "../components/top10/Top10";
import Footer from "../components/footer/Footer";
import Poll from "../components/poll/Poll";
import "isomorphic-fetch";
import { inspect } from "util";

const GlobalStyle = createGlobalStyle`
  * {
    box-sizing: border-box;
    outline: none;
  }

  body, ul {
    padding: 0;
    margin: 0;
  }

  .page-container {
    padding: 75px 0;
    max-width: 1453px;

    @media (max-width: 52em) {
      padding: 35px 0;
    }
  }

  p {
    margin: 0;
  }

  h1, h2, h3 {
    margin: 0;
  }

  a {
    text-decoration: none;
    display: block;
  }

  img {
    object-fit: contain;
  }

  li {
    list-style: none;
    display: inline-block;
  }

  .img-responsive {
    max-width: 100%;
    height: auto;
  }
`;

// const host = location.host;

class Radios extends App {
  static async getInitialProps({ ctx }) {
    const host = await inspect(
      ctx.req ? ctx.req.headers.host : window.location.hostname
    ).split("'")[1];

    const res = await fetch(
      `https://xxxxxxxxxx`,
      {
        headers: {
          "x-api-key": "xxxxxxxxx"
        }
      }
    );

    const newsSidebar = await fetch(
      `https://xxxxxxxx`,
      {
        headers: {
          "x-api-key": "xxxxxxxx"
        }
      }
    );

    const radio = await res.json();
    const shiftNews = await newsSidebar.json();

    return { radio, shiftNews };
  }

  constructor(props) {
    super(props);
    this.state = {
      paused: false
    };
  }

  handlePlayer = () => {
    const sound = document.getElementById("sound");
    setPaused(!paused);

    if (paused) sound.play();
    else sound.pause();
  };

  handleVolume = e => {
    document.getElementById("sound").volume = e;
  };

  render() {
    const { Component, router, radio, shiftNews } = this.props;
    const hasSidebar = ["", "noticias"];
    const match = hasSidebar.indexOf(router.pathname.split("/")[0]) > -1;

    const theme = {
      breakpoints: ["40em", "52em", "70em"],
      template: "default",
      primaryColor: radio.sitebasic.color_primary,
      secondaryColor: radio.sitebasic.color_secondary
    };

    // console.log(radio);
    return (
      <Container>
        <GlobalStyle />
        <Provider>
          {/* <Consumer> */}
          <ThemeProvider theme={theme}>
            <>

              <Flex justifyContent="center">
                <Flex
                  className="page-container"
                  width={9 / 10}
                  flexDirection={["column", "column", "column", "row"]}
                >
                  <Box width={[1, 1, 1, 2 / 3]} pr={[0, 0, 0, 49]}>
                    <Component
                      theme={theme}
                      radio={radio}
                      shiftNews={shiftNews}
                    />
                  </Box>
                  {match && (
                    <Box pl={[0, 0, 0, 32]} width={[1, 1, 1, 1 / 3]}>

                        {radio.side_modules.map(
                          m =>
                            m.description === "Plantão de Notícias" && (
                              <Shift
                                key={0}
                                theme={theme}
                                shiftNews={shiftNews}
                              />
                            )
                        )}

                        {theme.template === "news" &&
                          radio.side_modules.map(
                            m =>
                              m.description === "Top 10" && (
                                <Top10 key={0} theme={theme} />
                              )
                          )}
                        {radio.side_modules.map(
                          m =>
                            m.description === "Previsão do tempo" && (
                              <Weather key={0} theme={theme} />
                            )
                        )}

                        {radio.side_modules.map(
                          m =>
                            m.description === "Signos" && (
                              <Horoscope key={0} theme={theme} />
                            )
                        )}

                        {radio.side_modules.map(
                          m =>
                            m.description === "Recados" && (
                              <Messages key={0} theme={theme} />
                            )
                        )}
                        <Poll theme={theme} />

                    </Box>
                  )}
                </Flex>
              </Flex>

            </>
          </ThemeProvider>
          {/* </Consumer> */}
        </Provider>
      </Container>
    );
  }
}

export default Radios;

I got it! Sorry, I was making a mistake elsewhere. You can close this issue

I got it! Sorry, I was making a mistake elsewhere. You can close this issue

May I know what is the cause for this? I

import React from 'react';
import { useStaticQuery, graphql } from 'gatsby';
import PropTypes from 'prop-types';
import Box from '../../components/Box';
import Text from '../../components/Text';
import Heading from '../../components/Heading';
import Image from '../../components/Image';
import Container from '../../components/UI/Container';
import ProcessItem, { ProcessIndex } from './workingProcess.style';

const WorkingProcessSection = (props) => {
  // const Data = useStaticQuery(graphql`
  //   query {
  //     saasModernJson {
  //       PROCESS_ITEMS {
  //         title
  //         description
  //         image {
  //           publicURL
  //         }
  //       }
  //     }
  //   }
  // `);

  return (
    <Box {...props.sectionWrapper} as="section">
      <Container>
        <Box {...props.secTitleWrapper}>
          <Text {...props.secText} content="WORKING PROCESS" />
          <Heading
            {...props.secHeading}
            content="Our Featured Service that We Provide"
          />
        </Box>
        <Box {...props.processRow}>
          {props.process.map((item, index) => (
            <Box
              {...props.processCol}
              key={`process-item-${index}`}
              className="process_item_col"
              width={[1, 1 / 2]}
            >
              <ProcessItem className="process_item">
                <ProcessIndex>{item.index || index + 1}</ProcessIndex>
                <Image
                  src={item.image.mediaItemUrl}
                  alt={`process-image-${index + 1}`}
                  {...props.processImageStyle}
                />
                <Heading as="h3" content={item.title} {...props.processTitleStyle} />
                <Text content={item.description} {...props.processDescriptionStyle} />
              </ProcessItem>
            </Box>
          ))}
        </Box>
      </Container>
    </Box>
  )
};

WorkingProcessSection.propTypes = {
  sectionWrapper: PropTypes.object,
  secTitleWrapper: PropTypes.object,
  secTitle: PropTypes.object,
  secDescription: PropTypes.object,
  processRow: PropTypes.object,
  processCol: PropTypes.object,
  processImageStyle: PropTypes.object,
  processTitleStyle: PropTypes.object,
  processDescriptionStyle: PropTypes.object,
};

WorkingProcessSection.defaultProps = {
  sectionWrapper: {
    pt: ['60px', '15px', '15px', '15px', '15px'],
    pb: 0,
  },
  secTitleWrapper: {
    mb: ['60px', '100px'],
  },
  secText: {
    as: 'span',
    display: 'block',
    textAlign: 'center',
    fontSize: '14px',
    letterSpacing: '0.15em',
    fontWeight: '700',
    color: '#2aa275',
    mb: '5px',
  },
  secHeading: {
    textAlign: 'center',
    fontSize: ['20px', '24px'],
    fontWeight: '500',
    color: '#0f2137',
    letterSpacing: '-0.025em',
    mb: '0',
    lineHeight: '1.67',
  },
  processRow: {
    flexBox: true,
    flexWrap: 'wrap',
    ml: ['0', '-15px', '-20px', '-35px', '-45px'],
    mr: ['0', '-15px', '-20px', '-35px', '-45px'],
  },
  processCol: {
    pl: ['0', '15px', '20px', '35px', '45px'],
    pr: ['0', '15px', '20px', '35px', '45px'],
    mb: '40px',
  },
  processImageStyle: {
    width: ['60px', '700px', '70px', 'auto'],
  },
  processTitleStyle: {
    fontSize: ['20px', '18px', '20px', '20px', '20px'],
    fontWeight: '400',
    color: '#0f2137',
    letterSpacing: '-0.02em',
    mb: ['20px', '20px', '22px', '22px', '22px'],
    mt: '35px'
  },
  processDescriptionStyle: {
    fontSize: ['15px', '15px', '15px', '15px'],
    fontWeight: '400',
    color: '#343d48',
    lineHeight: '1.87',
  },
};

export default WorkingProcessSection;

rendering Elements like this, note font-size:

For Enhanced performance we use LiteSpeed Web Server, HTTP/2, PHP7. We make your website faster, which will help you to increase search ranking!


runtime(filetype)!: unify case sensitive extension matching

Problem: there are different approaches of how extensions are matched
with respect to case sensitivity. In particular, '\c' flag is used in
pattern whereas in most places case sensitive matching is guarded
behind has("fname_case") condition.
Solution: replace all instances of '\c' with an explicit case sensitive
pattern variants guarded by has("fname_case").
Strictly speaking, this is a breaking change because only two (most
common and prevailingly tested) variants are now matched: upper first
letter and upper all letters.

Notes:

All seven case insensitive extension matches were added in first half of April 2022: https://github.com/vim/vim/commit/3ad2090316edc85e93094bba7af64f9991cc7f85 and https://github.com/vim/vim/commit/0bbf09ca41382302493e5db51b01d2fbdc778586. I didn't find any mention of why all 8 variants for extensions should be recognized, so opted for what is (mostly) tested: xxx, Xxx, and XXX.

Thanks. I think this makes sense.

Thanks, Christian!


Cannot convert Java string to JavaScript string

Copied from https://github.com/NativeScript/android-runtime/issues/197#issuecomment-137061278
@slavchev I don't know if it's related but I have another logcat dump...
https://gist.github.com/cime/2853d5075366f2093bc2

@cime I inspected the call stack and it seems it was an error during UTF-16 conversion. Can you reproduce easily the error? I guess I am looking for a test input string that contains surrogate pairs like š and/or other corner cases.

@slavchev it happens when navigating - and yes, the navigation context contains strings with characters like š, č etc... something like this:
frame.topmost().navigate({
   moduleName: "views/page123",
   context: {
       key1: {
           id: 2,
           name: "š test"
       },
       key2: {
           id: 64,
           name: "č test"
       },
       ...
   },
   animated: false
})

@cime have you tried reproducing the issue with nativescript 2.2.0. What device/emulator are you using when the crash happens? What api level is the device?

@cime I'm closing this issue since you haven't been active for a while, but please feel free to reopen it.


Extract emails, URLs, phone numbers etc.

This should be another analyser, perhaps based on a stand-alone library like: https://github.com/pudo/tidbits

At this point, we have email and URLs extraction, but this still needs to be normalised. Phone numbers will probably require at least some additional context - they can be guessed with higher certainty if, for example, the country is known. See also:

libphonenumber, Google's phone number parsing system.


Sorting

Hi,
can i sort collumns using th buttons?

What buttons are you referring to? You can certainly make buttons to sort columns if you wanted to.


Blue tags are purple.

BE AS CLEAR AND CONCISE AS POSSIBLE.
describe the bug
what is the bug - what happens?
>Blue tags are purple instead of blue across entire app.
expected behaviour
why is this a bug - what should be happening?
>Blue tags should be blue, not purple.
screenshots
if applicable, add screenshots of your problem.

platform
what OS are you using? e.g. windows 7, windows 10, WSL, ubuntu, arch linux, macOS
>Windows 10

Having this problem too across all themes!

known issue, just a typo I missed in the last release. will be fixed in the next update.


Upgrade registry to docker-registry v2 (Docker Distribution)

There are several issues relating to registry performance (#3580, #3479).
We should upgrade to the Go-based rewrite of the official Docker registry, which is now called Docker distribution. We'll also need to patch in our changes to support the deis pull workflow.
Additionally, there is also a native driver to consume Ceph RADOS which is likely going to be significantly more performant than our current S3-on-Ceph implementation. We should investigate this, although it is likely to complicate our upgrade path.
Upgrading to registry v2 also allows us to support Docker 1.6-built images, resolving issues like #3550.

Using registry:2.0.1 requires a rewrite of the code in controller/registry/private.py to use the much different Docker Registry v2 API. I'm not sure that our current approach for appending a "last-mile" layer to the image will work with the new Docker image format: there is no "upload layer with JSON metadata" endpoint, only a way to upload blobs already created by Docker.

@mboersma this is the PR in the new registry that could help for "the last-mile" https://github.com/docker/distribution/pull/610 but is not ready (yet)

@mboersma, where can I find more about the "last-mile" thing deis need?
Can't we just make deis-builder append a few lines on the Dockerfile, just before building?

@mboersma , do you know when registry v2 will be available in deis? is it in 1.10.0?

Is there any update on this?

considering dockerhub etc have now moved on from the older version, and it's becoming difficult to setup the older docker registry (docs are vanishing, etc), this unresolved issue makes deis unfortunately a non-viable-solution for it's primary use case (running pre-built docker images).   I realise that existing users are happy with their old/working deployments but for new people deis is a non-operational death-star. :/

@mboersma https://github.com/docker/distribution/issues/422

@lorieri exciting! This is actually implemented now in 2.1.1, right? I may not be able to hook up delete right away, but at least the potential is there to keep deis-registry storage from growing forever.

The two difficulties currently are:

Docker's manifest signing requires JWK signing with x.509 in a libtrust chain, which looks difficult from the controller Python code
Assuming those difficulties can be worked out, using registry v2 internally will still be blocked by docker/docker#9718

Docker's manifest signing requires JWK signing with x.509 in a libtrust chain, which looks difficult from the controller Python code

Would it be easier to migrate over to plugging into a Docker engine instead so we don't have to maintain these registry module hacks? If it's 95% of the way done then it might not be worth switching over at this point but it might make things more maintainable in the future (e.g. if Docker changes libtrust in a future release).

Would it be easier to migrate over to plugging into a Docker engine instead...

Yes indeedy, but bundling D-in-D into deis-controller has some big tradeoffs. It would be simpler IMHO to move this responsibility to builder, but triggering builder from controller in the event of deis config:set has architectural and security implications that need to be thought through.
Using docker directly is the way to go, I agree. Even if we can push through with this mini-client implementation in python, it will break when the Docker image format v2 is adopted (currently registry v2 uses what it calls a v1 provisional format). Then we scramble to update these registry module hacks again, as you pointed out.

Also, here's a way we can continue to work around the Docker simultaneous pull bug:

continue to build and push Deis components with Docker 1.5.0, ensuring they are distributed from the "classic" registry v1 side of hub.docker.com
use flock in Deis-generated systemd app units to serialize docker pull access if deis-registry is v2

Yes indeedy, but bundling D-in-D into deis-controller has some big tradeoffs. It would be simpler IMHO to move this responsibility to builder, but triggering builder from controller in the event of deis config:set has architectural and security implications that need to be thought through.

I believe @smothiki is looking to run a docker engine outside of builder that would be accessible to all platform components, so it might be useful to sync up with him to see if you can abuse that and make your life a little easier :)
For the second point about simultaneous pulls failing, flock may be a good interim solution so we can keep up-to-date with security fixes in Docker. I have a faint feeling that they'll kill off the v1 registry after a while @ DockerHub so it's probably worth gettin' with the times.

We are actually trying to avoid registry for building buildpack apps. But for dockerfile apps currently running docker 1.5.0 inside qemu. We had issues running latest docker as we have encountered a race condition while pulling images.
I'm in for pointing docker client to remote docker engine rather than running on qemu (which is slow).

I honestly think mounting in the docker sock or the docker binary is an acceptable solution. Trying to provide a DinD experience with several layers of indirection will only make debugging issues harder in the future.

For now we are thinking decoupling the builder, build pack apps doesn't have to deal with any of these issues. But we are evaluating options for building dockerfiles. bind mounting docker sock is one of them.

This is not something we'll be able to get to for the LTS release (#4776), but we are running the new registry in Deis v2. Closing!


Failed to activate the julia-client package

Got this error having updated to Julia 1.3, reinstalled julia-client and atom-ink and restarted Atom, but none of it seems to work.
[Enter steps to reproduce:]

...
...

Atom: 1.43.0 x64
Electron: 4.2.7
OS: Mac OS X 10.14.5
Thrown From: julia-client package 0.11.3
Stack Trace
Failed to activate the julia-client package
At Cannot read property 'fromId' of undefined

TypeError: Cannot read property 'fromId' of undefined
    at Object.activate (/packages/julia-client/lib/runtime/outline.js:12:22)
    at Object.consumeInk (/packages/julia-client/lib/runtime.coffee:33:11)
    at Object.consumeInk (/packages/julia-client/lib/julia-client.coffee:120:7)
    at Provider.provide (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1121629)
    at ServiceHub.consume (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3207383)
    at Package.activateServices (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3215615)
    at Package.activateNow (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3212370)
    at measure (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3211694)
    at Package.measure (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3209304)
    at activationPromise.activationPromise.Promise (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3211554)
    at new Promise (<anonymous>)
    at Package.activate (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3211497)
    at PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:382452)
    at config.transactAsync (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:382068)
    at Config.transactAsync (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:331716)
    at PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:382018)
    at PackageManager.activate (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:381568)
    at t.loadState.then (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:715032)

Commands

Non-Core Packages
atom-runner 2.7.1
awoerner undefined
busy-signal 2.0.1
indent-detective 0.4.0
ink 0.10.12
intentions 1.1.5
julia-client 0.11.3
language-ethereum 0.3.9
language-julia 0.19.1
latex-completions 0.3.6
linter 2.3.1
linter-julia 0.7.4
linter-ui-default 1.7.1
pretty-json 2.0.3
script 3.18.1
tool-bar 1.1.12
uber-juno 0.2.0

Is this still a problem with the latest release?
Make sure to follow the instructions posted by @aviatesk above when upgrading.

For Atom 1.44 with julia-client 0.12.2, this problem is gone.


Cannot alt-tab or windows key-tab when Flantter is running.

Hello!
Whenever Flantter is running on Windows 10 Pro with the Creator's update, if you attempt to switch to another running application by pressing Alt-Tab or Win-Tab, Flantter prevents the task switcher from rendering.
Using alt-tab yields no overlay to show where you're tabbing.
Using win-tab causes a rapid strobing of the display, hiding the virtual desktop switcher.
I can recreate this by simply opening Flantter. Once it is closed, the same keystrokes work as expected.
The strobing and hiding of the overlay only happens on the virtual desktop that Flantter is assigned to.

Sorry for my late reply.
I could not reproduce the bug in my environment.
Do you use any applications that add shortcut keys such as SylphyHorn or Windows 10 virtual desktop enhancer?
Because there is a possibility that IME may be the cause, please also check that symptoms appear when switching to English input for testing.

I use Windows 10 Pro with Creator's update in English only, and do not use an IME for input. This is on a recent, clean install of Windows 10 Pro, updated to the Creator's update.
I do not normally use the virtual desktop, but when testing for this report, I tried it to see if the cause could be isolated to just one of the virtual desktops.
I am not using any type of enhancer for the virtual desktop, and I am not familiar with SylphyHorn. I use no other applications that add shortcut keys.
Thank you!

I recently uninstalled and reinstalled Flantter once more on this machine, and can no longer reproduce the issue.
I have not made any changes to my system other than the uninstall and reinstall of Flantter, but I think it is safe to say that the issue appears to be resolved at this time.
Thank you for looking into this for me!


Enforce pixel centering convetions (intersection for even, pixel for odd)

Completed in the PhysicalWavefront class overhaul.


[Beta 2.0.0] Change Exception-handling to not break current processing (still log)

Added in Feed Me 2.0 beta 1. If any item throughout the feed has had an issue, its still logged, but allows the rest of feed processing to proceed. Errors are shown at the end of a feed.


Address new Travis build issues

They're mainly related to versioning issues due to the newer versions of Dart on the VMs that Travis uses.
@Georgehe4 Would you have a few minutes to look into this?

Closing as Travis seems to work.


Throws a whole pile of Postgresql errors as database has not been initialized

The initial creation/migration does not get run leading to an unusable state.  Looking into where it needs to be done, but maybe you'd be faster?
web_1       | django.db.utils.ProgrammingError: relation "django_site" does not exist
web_1       | LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
web_1       |                                                              ^
web_1       |
postgres_1  | ERROR:  relation "django_site" does not exist at character 78
postgres_1  | STATEMENT:  SELECT "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_site" WHERE UPPER("django_site"."domain"::text) = UPPER('<IP_ADDRESS>')
postgres_1  | ERROR:  relation "django_site" does not exist at character 78
postgres_1  | STATEMENT:  SELECT "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_site" ORDER BY "django_site"."domain" ASC LIMIT 21
postgres_1  | ERROR:  relation "django_site" does not exist at character 78
postgres_1  | STATEMENT:  SELECT "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_site" WHERE UPPER("django_site"."domain"::text) = UPPER('<IP_ADDRESS>') LIMIT 21
postgres_1  | ERROR:  relation "django_site" does not exist at character 78
postgres_1  | STATEMENT:  SELECT "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_site" WHERE UPPER("django_site"."domain"::text) = UPPER('<IP_ADDRESS>') LIMIT 21
postgres_1  | ERROR:  relation "django_site" does not exist at character 78
postgres_1  | STATEMENT:  SELECT "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_site" WHERE UPPER("django_site"."domain"::text) = UPPER('<IP_ADDRESS>') LIMIT 21
postgres_1  | ERROR:  relation "django_site" does not exist at character 78
postgres_1  | STATEMENT:  SELECT "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_site" WHERE UPPER("django_site"."domain"::text) = UPPER('<IP_ADDRESS>') LIMIT 21
postgres_1  | ERROR:  relation "django_site" does not exist at character 78
postgres_1  | STATEMENT:  SELECT "django_site"."id", "django_site"."domain", "django_site"."name" FROM "django_site" WHERE UPPER("django_site"."domain"::text) = UPPER('<IP_ADDRESS>')
web_1       | [2016-08-14 14:30:43 +0000] [14] [ERROR] Error handling request
'''

It is because the default generated container name behaviour has changed in recent versions of docker-compose:
container_name
Specify a custom container name, rather than a generated default name.
container_name: my-web-container
Because Docker container names must be unique, you cannot scale a service beyond 1 container if you have specified a custom name. Attempting to do so results in an error.
Explicitly adding:
container_name: postgres
As the first line in docker-compose.yml allows everything to start.
The links dependency on the postgres container expresses the dependency between services in the same way as depends_on, so they determine the order of service startup.

@ssteinerx thanks for reporting this compatibility issue with the new version of Docker! If you could create a pull request, that would be great :smiley:

It's really this small...
Explicitly add:
 container_name: postgres

As the first line in the postgres container declaration in docker-compose.yml.

Pull request made.


Some interfaces doesn't appear

Describe the Bug
When I aim at some blocks like windmill bearing, creative motor, mechanical piston, brass funnel, etc, their interface doesn't appear. In old 1130 build it's perfectly works.
Reproduction Steps

Aim at windmill bearing/creative motor/mechanical piston
Interface appears for a few milliseconds

Expected Result
Interface appearance
Screenshots and Videos
https://youtu.be/8Ei-KeUDqOU
Crash Report or Log
No response
Operating System
Windows 11
Mod Version
0.5.1d
Minecraft Version
1.20.1
Other Mods
iris-flywheel-compat-1.20.1-0.2.1
clientcommands-2.8.3
create-fabric-0.5.1-d-build.1134+mc1.20.1
indium-1.0.21+mc1.20.1
iris-mc1.20-1.6.4
sodium-fabric-mc1.20-0.4.10+build.27
litematica-fabric-1.20.1-0.15.3
malilib-fabric-1.20.1-0.16.1
Xaeros_Minimap_23.6.0_Fabric_1.20
XaerosWorldMap_1.31.0_Fabric_1.20
fabric-api-0.86.1+1.20.1
advancementinfo-1.20-fabric0.83.0-1.4
continuity-3.0.0-beta.3+1.20.1
jei-1.20.1-fabric-<IP_ADDRESS>
shulkerboxtooltip-fabric-4.0.4+1.20.1
modmenu-7.2.1
fabric-language-kotlin-1.10.8+kotlin.1.9.0
yet-another-config-lib-fabric-3.1.0+1.20
Zoomify-2.11.0
Additional Context
No response

The hud hasn’t changed since 1130. Try without other mods.

I tried without other mods (I left only create 1134, fabric api 0.86.1 and JEI <IP_ADDRESS>), nothing has changed.

fixed in latest commit


⚠ Bofrost.be has degraded performance

In 7a22f59, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1252 ms

Resolved: Bofrost.be performance has improved in 7c48dfe after 9 minutes.


add service files

close #149
Signed-off-by: Xianglin Gao<EMAIL_ADDRESS>

@feiskyer updated. And it seems fine on centos 7.2.

Cool, thanks.


feat(freespace_planning_algorithms): use distance to nearest obstacle to improve path planning

Description
Current A-star planner does not use any information regarding distance to obstacle for path planning, it only checks for collision for each expanded node.
As a result generated path can navigate close to obstacles and cause the vehicle to stop frequently as it follows the path.
Changes

Includes changes from preceding PR
Compute an EDT (euclidean distance transform) map to store the distance to nearest obstacle for each grid cell
Use EDT data to add cost to account for closeness to obstacles
Use EDT value to minimize collision check necessity (by comparing EDT value to vehicle largest and smallest dimensions)
Use distance to obstacle and distance to goal to vary node expansion distance (shorter primitives near obstacles / goal, longer primitives far from obstacles / goal)

Related links
Preceding PR's:

https://github.com/autowarefoundation/autoware.universe/pull/8068

How was this PR tested?
tested on psim.
compared performance with unit tests: (see here for complete comparison)
Notes for reviewers
This PR includes changes from a preceding PR. So please review the PR's in order.
Interface changes
ROS Parameter Changes
Additions and removals

Change type
Parameter Name
Type
Default Value
Description

Added
adapt_expansion_distance
bool
true
flag to enable / disable variable A-star expansion distance

Added
obstacle_distance_weight
double
1.5
additional cost factor for closeness to obstacles

Effects on system behavior
When using free space planner, path should navigate away from obstacles when possible.

@armaganarsln If it is okay I will dismiss your request for changes so that we can move forward with improving the freespace planner.
The tests you requested show that the current parking feature still has issues, but improvements to parking should be done in separate PRs.

@armaganarsln If it is okay I will dismiss your request for changes so that we can move forward with improving the freespace planner. The tests you requested show that the current parking feature still has issues, but improvements to parking should be done in separate PRs.

For me its ok as long as in the end the tests are made in simulation. Do you want me to delete my change requests on the other PRs as well?


Adding "apiType" as an option in selendroid capabilities.

Since some applications are written for Google API, they would fail to
install on an emulator with Android API, and vice versa. This implementation
will add "apiType" option to the selendroid capabilties to allow users
to select a specific  emulator with the desired (Google/Android) API type to
run their tests.
Users can safely ignore this option if the application under test is not
sensitive to either API type to run.
Signed-off-by: Binh Vu<EMAIL_ADDRESS>

I'm :+1: with this PR. Anyone else have feedback?

i'm not sure this is an appropriate noun to describe what this is?
Also this feels more like a boolean than a string value? Basically "isGoogleAPI", unless there's other variations?

(what I mean by the appropriate noun question, if you google "android api type" this is not what appears...)

@lukeis I'm relying with @binhvu The trouble is when the device is a physical device neither isGoogleAPI=true or isGoogleAPI=false would apply since the information is not available when you query the device. Sure, you could do isGoogleAPI=null, but that seems sub-optimal too.

@mach6 if the information about installed GoogleAPI is needed on request this can be provided by the installed selendroid service (yes, you'd need to code in order to obtain the information). I agree with @lukeis  that the naming is not really appropriate for the purpose.

@mach6 @lukeis  @operatiay
Since the queried information returned from the emulator categorized this as "target", the Android Virtual Device (AVD) Manager called this as "Target Name", can we named this as "targetName"?

what about something along requiresGoogleAPI with default being false?

"requiresGoogleAPI" sounds good to me. Boolean also good, since the hardware can return "false" instead null as default. @mach6  if you don't have any objection, I will revise the PR today.

This is about the name of the target API used in the emulator, it should be an identifier string, not a boolean. However, in the desired capabilities a boolean can be used to indicate the GoogleAPI is needed for the test or not. If "true" then "GoogleAPI" will be considered while selecting the emulator device by examine the above ID string, if "false" then any emulator devices can be a candidate. I still think "targetName" is good for the SelendroidCapabilities class to hold the name of the target API.

@operatiay @lukeis @binhvu As we discussed, I'll take this PR from here. Furthermore, I'll pursue the design changes we talked about -- Mainly;

[ ] Adding consistent a behavior when physical devices are attached to the node. This will likely mean an option passed to selendroid server which pre-validates each device for Google API support.
[ ] Adding a new desired capability that tells selendriod to connect to a device which has the Google API (or other) available. This desired capability name will be more descriptive than apiType but will continue to be a String since we learned this is not simply a true (Google API present)/false (Google API not present) condition and there may support needed for additional API values in the near future.

Since the new work will originate from my fork, I'm closing this PR.


Blend animation cannot be exported

Describe the bug
I have a test model that appears to be a valid blend file but cannot be exported to gltf.
To Reproduce

Open the Blend file.
Click on export glb.

Python: Traceback (most recent call last):
  File "C:\Users\ernest.lee\scoop\apps\blender\current\2.91\scripts\addons\io_scene_gltf2\__init__.py", line 559, in execute
    return gltf2_blender_export.save(context, export_settings)
  File "C:\Users\ernest.lee\scoop\apps\blender\current\2.91\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 46, in save
    json, buffer = __export(export_settings)
  File "C:\Users\ernest.lee\scoop\apps\blender\current\2.91\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 66, in __export
    json = __fix_json(exporter.glTF.to_dict())
  File "C:\Users\ernest.lee\scoop\apps\blender\current\2.91\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 110, in __fix_json
    fixed[key] = __fix_json(value)
  File "C:\Users\ernest.lee\scoop\apps\blender\current\2.91\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 114, in __fix_json
    fixed.append(__fix_json(value))
  File "C:\Users\ernest.lee\scoop\apps\blender\current\2.91\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 110, in __fix_json
    fixed[key] = __fix_json(value)
  File "C:\Users\ernest.lee\scoop\apps\blender\current\2.91\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 114, in __fix_json
    fixed.append(__fix_json(value))
  File "C:\Users\ernest.lee\scoop\apps\blender\current\2.91\scripts\addons\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 117, in __fix_json
    if int(obj) == obj:
ValueError: cannot convert float NaN to integer

location: <unknown location>:-1

Expected behavior
Not fail.
Screenshots
.blend file/ .gltf
assimp-mdb-sphere_rig_advanced.zip
Version

OS: win 10
Blender Version 2.91.0

Additional context
https://github.com/assimp/assimp-mdb/tree/master/model-db/fbx/sphere_rig_advanced

The .blend is very strange. The NaN ultimately comes from the bone.matrix_local of three bones, namely
DW_SP1_Offset
<Matrix 4x4 (nan, nan, nan, -0.0000)
            (nan, nan, nan, -0.0000)
            (nan, nan, nan,  1.7401)
            (nan, nan, nan,  1.0000)>

Jnt_Ctrl_L_Down_Root_Offset_GRP
<Matrix 4x4 (-nan, -nan, -nan, nan)
            (-nan, -nan, -nan, nan)
            (-nan, -nan, -nan, nan)
            (-nan, -nan, -nan, nan)>

Jnt_Ctrl_L_Down_Root_Offset
<Matrix 4x4 (nan, nan, nan, nan)
            (nan, nan, nan, nan)
            (nan, nan, nan, nan)
            (nan, nan, nan, nan)>

I do not know how the .blend could have gotten into this state, but if you select the arma and toggle in and out of edit mode (which recalculates the matrix_locals), this is fixed and the model exports fine.
Also note that exporting to .dae produces a file with a bunch of NaNs in it.

The .blend is very strange. The NaN ultimately comes from the bone.matrix_local of three bones, namely
DW_SP1_Offset
<Matrix 4x4 (nan, nan, nan, -0.0000)
            (nan, nan, nan, -0.0000)
            (nan, nan, nan,  1.7401)
            (nan, nan, nan,  1.0000)>

Jnt_Ctrl_L_Down_Root_Offset_GRP
<Matrix 4x4 (-nan, -nan, -nan, nan)
            (-nan, -nan, -nan, nan)
            (-nan, -nan, -nan, nan)
            (-nan, -nan, -nan, nan)>

Jnt_Ctrl_L_Down_Root_Offset
<Matrix 4x4 (nan, nan, nan, nan)
            (nan, nan, nan, nan)
            (nan, nan, nan, nan)
            (nan, nan, nan, nan)>

I do not know how the .blend could have gotten into this state, but if you select the arma and toggle in and out of edit mode (which recalculates the matrix_locals), this is fixed and the model exports fine.
Also note that exporting to .dae produces a file with a bunch of NaNs in it.

Who’s responsible to do the recalculate matrix locals?

Who’s responsible to do the recalculate matrix locals?

Blender does it whenever you exit edit mode I believe. It's a read-only property. How did you make the .blend file?

Blender does it whenever you exit edit mode I believe. It's a read-only property. How did you make the .blend file?

I tried importing using the regular fbx import and it failed.
I tried importing using https://blendermarket.com/products/better-fbx-importer--exporter
Then I tried exporting as a gltf.

I don't know what would be the best way to solve this.

I tried importing using the regular fbx import and it failed.
I tried importing using https://blendermarket.com/products/better-fbx-importer--exporter
Then I tried exporting as a gltf.

I don't know what would be the best way to solve this.

Maybe we can:

open a ticket in blender repo to share import issue that generate the problem ?
add some check to have an error message instead of a crash when there are some NaN ?

Maybe we can:

open a ticket in blender repo to share import issue that generate the problem ?
add some check to have an error message instead of a crash when there are some NaN ?

The blend shape being nan problem hasn't blocked me some time. So create a new issue for your problem.


DataGridCell Theme Overidden

I have a datagrid and certain cell's text need to have a different colour based on their content. The problem is that I have, is that all I want to do is change the foreground colour (which works) but instead the entire formatting for that specific cell is altered, font, style background etc.

The style is completely different from the other cells, only the colour should be different.
Please assist.

I haven't tried this, just typing what I'm seeing from your comment.
BasedOn="{StaticResource {x:Type DataGridCell}}"
<mui:DataGridTextColumn ... >
  <DataGridTextColumn.CellStyle>
    <Style TargetType="{x:Type DataGridCell}" BasedOn="{StaticResource {x:Type DataGridCell}}" >
      <Setter ... >


Create a list of ops files that can be moved to cf-deployment

We should compile a list of ops files that are generic and can be moved to cf-deployment, then make PRs upstream.

@viovanov issue superseded by #12?

@fargozhu no, that one is about patches. Ops files mutate the deployment manifest, so it does things differently. Some of these ops files could be part of cf-deployment - we just need to figure out which.


[box2d] build failure

Host Environment

OS: Windows 10
Compiler: Visual Studio 2019

To Reproduce
Steps to reproduce the behavior:
.\vcpkg install box2d:x64-windows
Failure logs
The following packages will be built and installed:
box2d[core]:x64-windows
Starting package 1/1: box2d:x64-windows
Building package box2d[core]:x64-windows...
-- Note: box2d only supports static library linkage. Building static library.
-- Downloading https://github.com/erincatto/Box2D/archive/374664b2a4ce2e7c24fbad6e1ed34bebcc9ab6bc.tar.gz...
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:99 (message):
File does not have expected hash:
      File path: [ C:/vcpkg/downloads/temp/erincatto-Box2D-374664b2a4ce2e7c24fbad6e1ed34bebcc9ab6bc.tar.gz ]
  Expected hash: [ 39074bab01b36104aa685bfe39b40eb903d9dfb54cc3ba8098125db5291f55a8a9e578fc59563b2e8743abbbb26f419be7ae1524e235e7bd759257f99ff96bda ]
    Actual hash: [ 89a46287a7dcb937d58454237d8ca0d3f5788bd544ccd045a282c38c7d197380fa5c5264c5dcfa9e19f250b3c9887dbe2252b188fc7ecc40b74ed241d7634650 ]

The file may have been corrupted in transit.  This can be caused by
proxies.  If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY
environment variables to
"https://user:password@your-proxy-ip-address:port/".
Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:182 (test_hash)
scripts/cmake/vcpkg_from_github.cmake:132 (vcpkg_download_distfile)
ports/box2d/portfile.cmake:5 (vcpkg_from_github)
scripts/ports.cmake:94 (include)
Error: Building package box2d:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: box2d:x64-windows
Vcpkg version: 2019.09.12-nohash

@yupaul , thanks for reporting this issue!
Above PR should address this issue.

any solution ?

This is too easy to fix.
Just go to "vcpkg-master/ports/box2d" and in there, modify the portfile.cmake.
look up for SHA512 and change the hash: 39074bab01b36104aa685bfe39b40eb903d9dfb54cc3ba8098125db5291f55a8a9e578fc59563b2e8743abbbb26f419be7ae1524e235e7bd759257f99ff96bda
for: 89a46287a7dcb937d58454237d8ca0d3f5788bd544ccd045a282c38c7d197380fa5c5264c5dcfa9e19f250b3c9887dbe2252b188fc7ecc40b74ed241d7634650 (or the one you get as in the file received)
It worked for me:
-- Note: box2d only supports static library linkage. Building static library.
-- Downloading https://github.com/erincatto/Box2D/archive/374664b2a4ce2e7c24fbad6e1ed34bebcc9ab6bc.t
ar.gz...
-- Extracting source C:/vcpkg/vcpkg-master/downloads/erincatto-Box2D-374664b2a4ce2e7c24fbad6e1ed34be
bcc9ab6bc.tar.gz
-- Using source at C:/vcpkg/vcpkg-master/buildtrees/box2d/src/ebcc9ab6bc-726f8acd9e
-- Downloading https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-win.zip...
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Performing post-build validation
-- Performing post-build validation done
Building package box2d[core]:x86-windows... done
Installing package box2d[core]:x86-windows...
Installing package box2d[core]:x86-windows... done
Elapsed time for package box2d:x86-windows: 29.54 s
Total elapsed time: 29.54 s
The package box2d:x86-windows provides CMake targets:
find_package(unofficial-box2d CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::box2d::Box2D)

@yupaul @WeskerPower, the PR has been merged, above issue should be fixed, please get vcpkg latest source and try again.

Im having the same issue but then again i might now update it, when i pull it it gives me ID	Author	Date	Message
f2c10569022387becf694f16e20068a67fd6c3e0	Phoebe<EMAIL_ADDRESS>1/9/2020 12:33:48 AM +00:00	Update baseline (#9579)
the error seems to be the same thing
`.\vcpkg install box2d
The following packages will be built and installed:
box2d[core]:x86-windows
Starting package 1/1: box2d:x86-windows
Building package box2d[core]:x86-windows...
-- Note: box2d only supports static library linkage. Building static library.
-- Downloading https://github.com/erincatto/Box2D/archive/37e2dc25f8da158abda10324d75cb4d1db009adf.tar.gz...
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:99 (message):
File does not have expected hash:
      File path: [ E:/Gits/vcpkg/downloads/temp/erincatto-Box2D-37e2dc25f8da158abda10324d75cb4d1db009adf.tar.gz ]
  Expected hash: [ 89a46287a7dcb937d58454237d8ca0d3f5788bd544ccd045a282c38c7d197380fa5c5264c5dcfa9e19f250b3c9887dbe2252b188fc7ecc40b74ed241d7634650 ]
    Actual hash: [ c9021b6bbc8ee405e38418bdadc136814fb66d5f4928ffd06d2ed016751613ecc3e82e7f60851fdc7a2e13594f68c21e7b7adb06d35a5a02314235132556d174 ]

The file may have been corrupted in transit.  This can be caused by
proxies.  If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY
environment variables to
"https://user:password@your-proxy-ip-address:port/".
Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:182 (test_hash)
scripts/cmake/vcpkg_from_github.cmake:132 (vcpkg_download_distfile)
ports/box2d/portfile.cmake:5 (vcpkg_from_github)
scripts/ports.cmake:94 (include)
Error: Building package box2d:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: box2d:x86-windows
Vcpkg version: 2019.09.12-nohash
Additionally, attach any relevant sections from the log files above.`

@WeskerPower, could you clean the source and try again?
Double confirmed, it works well for me.
PS F:\vcpkg\src> ./vcpkg install box2d
The following packages will be built and installed:
box2d[core]:x86-windows
Starting package 1/1: box2d:x86-windows
Building package box2d[core]:x86-windows...
-- Note: box2d only supports static library linkage. Building static library.
-- Downloading https://github.com/erincatto/Box2D/archive/37e2dc25f8da158abda10324d75cb4d1db009adf.tar.gz...
-- Extracting source F:/VCPKG/src/downloads/erincatto-Box2D-37e2dc25f8da158abda10324d75cb4d1db009adf.tar.gz
-- Applying patch export-targets.patch
-- Using source at F:/VCPKG/src/buildtrees/box2d/src/d1db009adf-75c8a0adf4
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Installing: F:/VCPKG/src/packages/box2d_x86-windows/share/box2d/copyright
-- Performing post-build validation
-- Performing post-build validation done
Building package box2d[core]:x86-windows... done
Installing package box2d[core]:x86-windows...
Installing package box2d[core]:x86-windows... done
Elapsed time for package box2d:x86-windows: 15.63 s
Total elapsed time: 15.63 s
The package box2d:x86-windows provides CMake targets:
find_package(unofficial-box2d CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::box2d::box2d)

after some pull i got it working indeed it is working now sorry
-- Installing: E:/Gits/vcpkg/packages/box2d_x86-windows/share/box2d/copyright
-- Performing post-build validation
-- Performing post-build validation done
Building package box2d[core]:x86-windows... done
Installing package box2d[core]:x86-windows...
Installing package box2d[core]:x86-windows... done
Elapsed time for package box2d:x86-windows: 1.05 min

Total elapsed time: 1.05 min

The package box2d:x86-windows provides CMake targets:

    find_package(unofficial-box2d CONFIG REQUIRED)
    target_link_libraries(main PRIVATE unofficial::box2d::box2d)

problems with  cache


net: SetDeadline perform a poor performance

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.10.2 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/svn/jessemjchen/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/svn/jessemjchen"
GORACE=""
GOROOT="/home/svn/go"
GOTMPDIR=""
GOTOOLDIR="/home/svn/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build019705885=/tmp/go-build"
What did you do?
I write a server in golang，and I use SetReadDeadline/SetWriteDeadline to set a timeout . But when I benchmark ,and use pprof  to get cpu pprof ，I get a bad performance because of this two function.

What did you expect to see?
SetReadDeadline/SetWriteDeadline occupy less cpu time.
What did you see instead?
SetReadDeadline/SetWriteDeadline occupy lots of  cpu time.

Please show us the whole profile and/or show us the code so that we can recreate the problem ourselves.  Thanks.

@ianlancetaylor  Can I upload the svg file？

yes, you can uploads the svg file
On 5 June 2018 at 16:55, ChenMingjie<EMAIL_ADDRESS>wrote:

@ianlancetaylor https://github.com/ianlancetaylor Can I upload the svg
file？
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/25729#issuecomment-394601816, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAAcA-q5Txv7XYhH-3Lk8XxECDNeyXmhks5t5it2gaJpZM4UaHJP
.

@ianlancetaylor  @davecheney  https://github.com/sandyskies/test/blob/master/profile003.svg

@sandyskies , could you build and profile the same program under go 1.9 ? This may be related to #15133
The svg file shows the program spends 15% of CPU time in a send syscall and 20% of CPU time in conn.SetWriteDeadline. The send syscall is usually fast, so it's usually OK if its' time share is comparable to conn.SetWriteDeadline time share.
It looks like the program calls tars/transport.ConnectHandler.send too frequently (hundred thousands or even a million calls per second). Probably it would be better optimizing the program by reducing the frequency of tars/transport.ConnectHandler.send calls. For instance, process requests in batches. Additionally, conn.SetWriteDeadline may be called on each connection every timeout / 10 seconds instead of calling it before each send syscall. But even if conn.SetWriteDeadline overhead is completely eliminated, the program will run faster only by 1/(1-0.2) = 1.25 times.

@valyala  Thanks for the answer. I have run it under go 1.9,and have a worse performance, because of the muti cpu timmer problem in the issue that u mentioned, I have to upgrade to 1.10 . I mentioned in my issue than I am performing a benchmark ,it's a sever and client model, which client send some data to server ,and server simply sends back.  transport.ConnectHandler.send is the function that server use to sends the data back to client . Because  it is a shot connection ,So I have to use SetDeadline in every socket/connection .  Benchmark is use in this case ,so I should not change the program logic I used.

Hello,
I had an opportunity to spend some time with the OP last week and I believe the following benchmark reproduces the issue they are seeing.
package ptheadwait

import (
        "io"
        "net"
        "testing"
        "time"
)

const BUFSIZ = 4096

func BenchmarkSetDeadline(b *testing.B) {
        l, err := net.Listen("tcp", "<IP_ADDRESS>:0")
        check(b, err)
        defer l.Close()
        go func() {
                c, err := l.Accept()
                check(b, err)
                _, err = io.Copy(c, c)
                check(b, err)
        }()
        c, err := net.Dial("tcp", l.Addr().String())
        check(b, err)

        b.ReportAllocs()
        b.SetBytes(BUFSIZ)
        b.ResetTimer()

        var buf [BUFSIZ]byte
        deadline := 1 * time.Second
        for i := 0; i < b.N; i++ {
                c.SetWriteDeadline(time.Now().Add(deadline))
                _, err := c.Write(buf[:])
                check(b, err)
                c.SetReadDeadline(time.Now().Add(deadline))
                _, err = c.Read(buf[:])
                check(b, err)
                deadline += 1 * time.Second
        }
}

func check(tb testing.TB, err error) {
        tb.Helper()
        if err != nil {
                tb.Fatal(err)
        }
}

On this laptop I see 18.95% of the time spent in pthread_cond_wait
zapf(~/src/pthreadwait) % go test -bench=.  -benchtime=5s -cpuprofile=c.p
goos: darwin
goarch: amd64
pkg: pthreadwait
BenchmarkSetDeadline-4            200000             37122 ns/op         110.34 MB/s         320 B/op          4 allocs/op
PASS
ok      pthreadwait     8.021s
zapf(~/src/pthreadwait) % go tool pprof -png c.p
Generating report in profile001.png

% go version
go version devel +2e9f0817f0 Tue Oct 30 04:39:53 2018 +0000 darwin/amd64

From the spelunking the OP and I did my interpretation of the trace is thrashing between the goroutine that owns the timer and the main goroutine which is needs to wake the former so it can wrestle control of the lock over the timer wheel.

Some results on a different laptop
(~/src/pthreadtest) % go1.9 test -bench=. -cpu=1,2,4,8 -benchtime=5s
goos: darwin
goarch: amd64
pkg: pthreadtest
BenchmarkSetDeadline              200000             35134 ns/op         116.58 MB/s         288 B/op          4 allocs/op
BenchmarkSetDeadline-2            200000             34476 ns/op         118.80 MB/s         288 B/op          4 allocs/op
BenchmarkSetDeadline-4            200000             30776 ns/op         133.09 MB/s         288 B/op          4 allocs/op
BenchmarkSetDeadline-8            200000             30638 ns/op         133.69 MB/s         288 B/op          4 allocs/op
PASS
ok      pthreadtest     27.563s
(~/src/pthreadtest) % go1.11 test -bench=. -cpu=1,2,4,8 -benchtime=5s
goos: darwin
goarch: amd64
pkg: pthreadtest
BenchmarkSetDeadline              200000             37773 ns/op         108.44 MB/s         320 B/op          4 allocs/op
BenchmarkSetDeadline-2            200000             37212 ns/op         110.07 MB/s         320 B/op          4 allocs/op
BenchmarkSetDeadline-4            200000             33654 ns/op         121.71 MB/s         320 B/op          4 allocs/op
BenchmarkSetDeadline-8            200000             33783 ns/op         121.24 MB/s         320 B/op          4 allocs/op
PASS
ok      pthreadtest     29.961s

/cc @ianlancetaylor @dvyukov

A bunch of things to improve here. I am on it.

@sandyskies could you post full pprof profile? Or at least the netpoll part. You stripped the most important info. We see that lots of time is spent in descendants of setDeadlineImpl, but we don't see where exactly. setDeadlineImpl itself does not consume any sigfnificant time.

@davecheney for your benchmark for the whole series I got:
name           old time/op  new time/op  delta
SetDeadline    34.6µs ± 1%  20.4µs ± 1%  -41.11%  (p=0.008 n=5+5)
SetDeadline-6  24.2µs ± 1%  21.1µs ± 0%  -12.96%  (p=0.008 n=5+5)

and for the standard net conn benchmark and SetDeadline stress:
name                  old time/op  new time/op  delta
TCP4OneShotTimeout    99.0µs ± 2%  87.9µs ± 0%  -11.20%  (p=0.008 n=5+5)
TCP4OneShotTimeout-6  18.6µs ± 1%  17.0µs ± 0%   -8.65%  (p=0.008 n=5+5)
SetReadDeadline        320ns ± 0%   204ns ± 1%  -36.14%  (p=0.016 n=4+5)
SetReadDeadline-6      562ns ± 5%   205ns ± 1%  -63.50%  (p=0.008 n=5+5)

@dvyukov   https://github.com/sandyskies/test/blob/master/profile003.svg

@sandyskies  The file seems to be corrupted, it gives me:
This page contains the following errors:
error on line 44 at column 89: Specification mandates value for attribute data-pjax-transient
Below is a rendering of the page up to the first error.
test/profile003.svg at master · sandyskies/test

Whatever I try to open it, it fails.
Chrome fails with:
This page contains the following errors:
error on line 44 at column 89: Specification mandates value for attribute data-pjax-transient
Below is a rendering of the page up to the first error.
test/profile003.svg at master · sandyskies/test

Firefox fails with:

XML Parsing Error: not well-formed
Location: file:///tmp/profile003.svg
Line Number 44, Column 89:  <meta name="request-id" content="9D4D:44ED:488F43:7E3ACF:5BDADD61" data-pjax-transient>
----------------------------------------------------------------------------------------^

ovenmitts fails with:
Error domain 1 code 41 on line 44 column 89 of file:///tmp/profile003.svg: Specification mandate value for attribute data-pjax-transient

and github webpage fails too:
https://github.com/sandyskies/test/blob/master/profile003.svg

Please try
go tool pprof -png $url
This will generate a png which you can upload directly.

On 1 Nov 2018, at 23:49, Dmitry Vyukov<EMAIL_ADDRESS>wrote:
Whatever I try to open it, it fails.
Chrome fails with:
This page contains the following errors:
error on line 44 at column 89: Specification mandates value for attribute data-pjax-transient
Below is a rendering of the page up to the first error.
test/profile003.svg at master · sandyskies/test
Firefox fails with:
XML Parsing Error: not well-formed
Location: file:///tmp/profile003.svg
Line Number 44, Column 89:
----------------------------------------------------------------------------------------^
ovenmitts fails with:
Error domain 1 code 41 on line 44 column 89 of file:///tmp/profile003.svg: Specification mandate value for attribute data-pjax-transient
and github webpage fails too:
https://github.com/sandyskies/test/blob/master/profile003.svg
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I think the reason is that , git covert the svg file automatically.   I put it into a zip file , please check again. @davecheney  @dvyukov
profile003.zip

This works.
So large fraction of addTimerLocked goes to notewakeup, also lots of contention on timers lock from timerproc. So my patch series can potentially help. You may test the patch series already.

@dvyukov thank you very much, this patch set has had a substantial impact on my benchmark.
(~/src/pthreadtest) % benchstat old.txt new.txt
name           old time/op    new time/op    delta
SetDeadline      37.7µs ± 0%    27.4µs ± 1%  -27.31%  (p=0.000 n=20+20)
SetDeadline-2    37.3µs ± 1%    27.5µs ± 1%  -26.23%  (p=0.000 n=15+20)
SetDeadline-4    33.4µs ± 1%    27.4µs ± 1%  -17.96%  (p=0.000 n=19+20)
SetDeadline-8    33.5µs ± 1%    27.4µs ± 1%  -18.24%  (p=0.000 n=19+10)

name           old speed      new speed      delta
SetDeadline     109MB/s ± 0%   149MB/s ± 1%  +37.57%  (p=0.000 n=20+20)
SetDeadline-2   110MB/s ± 1%   149MB/s ± 1%  +35.56%  (p=0.000 n=15+20)
SetDeadline-4   123MB/s ± 1%   149MB/s ± 1%  +21.88%  (p=0.000 n=19+20)
SetDeadline-8   122MB/s ± 1%   150MB/s ± 1%  +22.31%  (p=0.000 n=19+10)

name           old alloc/op   new alloc/op   delta
SetDeadline        320B ± 0%      320B ± 0%     ~     (all equal)
SetDeadline-2      320B ± 0%      320B ± 0%     ~     (all equal)
SetDeadline-4      320B ± 0%      320B ± 0%     ~     (all equal)
SetDeadline-8      320B ± 0%      320B ± 0%     ~     (all equal)

name           old allocs/op  new allocs/op  delta
SetDeadline        4.00 ± 0%      4.00 ± 0%     ~     (all equal)
SetDeadline-2      4.00 ± 0%      4.00 ± 0%     ~     (all equal)
SetDeadline-4      4.00 ± 0%      4.00 ± 0%     ~     (all equal)
SetDeadline-8      4.00 ± 0%      4.00 ± 0%     ~     (all equal)

@dvyukov - Did you have anything else in mind for this issue ?

@agnivade no
@sandyskies please re-open if this does not help, but from your profile it looked like it should

Thank u all!


Replace Nokogiri with REXML

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

This is a follow-up to #11599, where I said I would replace use of nokogiri for XML parsing with rexml in parts of brew outside of the Sparkle livecheck strategy. These changes are generally a straightforward shift from nokogiri methods to rexml methods.
One notable difference is that rexml requires you to access attribute values using square bracket syntax instead of a method (like #attr in nokogiri).rexml has an #attribute method but it returns the full attribute (e.g., a="b"). We can't use a safe navigation operator in this context, so it was necessary to create an intermediate variable to be able to guard against nil values.
If we had more code doing this, I would say that we could probably just extend rexml to add an attr method that's just a wrapper for the square bracket syntax. This would allow us to use the safe navigation operator but I'm not sure if it's worth deviating from rexml's established API.

I'm not familiar with the BundleVersion and UnversionedCaskChecker classes but I've tried to exercise this using livecheck's ExtractPlist and Sparkle strategies, which use one or both of these classes. The output from checking casks that use these strategies was the same with and without these changes.
The other area where UnversionedCaskChecker is used is in the brew bump-unversioned-casks dev-cmd. I let this run for a few casks and it seemed to work as expected. I don't anticipate this introducing any issues but it wouldn't hurt for some homebrew/cask folks to test this out, as I'm not as knowledgeable about that side of Homebrew.

Review period will end on 2021-06-29 at 00:10:57 UTC.

Review period ended.

May be worth considering a brew style check (in a follow-up PR) that ensures there's no require "nokogiri" usage in Homebrew/brew.

If we don't have any intention to keep nokogiri around for HTML parsing (this isn't necessary at the moment), should we simply remove it from the Gemfile? It was only added seven months ago and for these particular areas that we're replacing with rexml.
If we were to drop it from the Gemfile, would we still need/want a brew style check (e.g., to discourage it from being re-added) or no?

If we don't have any intention to keep nokogiri around for HTML parsing (this isn't necessary at the moment), should we simply remove it from the Gemfile? It was only added seven months ago and for these particular areas that we're replacing with rexml.
If we were to drop it from the Gemfile, would we still need/want a brew style check (e.g., to discourage it from being re-added) or no?

Yes, I think it can/should be dropped from the Gemfile. If it's not being pulled in as a recursive dependency: we can probably do nothing. My only concern is that it just gets re-added at some point in future and a brew style check that says what to do instead may help a bit more? Definitely not blocking and very much optional, though.

Yes, I think it can/should be dropped from the Gemfile. If it's not being pulled in as a recursive dependency: we can probably do nothing.

nokogiri will still be installed as a dependency of mechanize but dropping it from the Gemfile (as a direct dependency) at least gets us back to where we were before it was added. I'll create a follow-up PR for the Gemfile/Gemfile.lock changes after I merge this.

My only concern is that it just gets re-added at some point in future and a brew style check that says what to do instead may help a bit more?

Certainly understandable to me. Last question: would we want the style check to also disallow gem "nokogiri" (in addition to require "nokogiri") or is the Gemfile out of scope?

Definitely not blocking and very much optional, though.

I'll try to tinker with this when I get a chance but, at the moment, there's some important livecheck work that I would like to focus on wrapping up into a PR first.

Certainly understandable to me. Last question: would we want the style check to also disallow gem "nokogiri" (in addition to require "nokogiri") or is the Gemfile out of scope?

Up to you!

I'll try to tinker with this when I get a chance but, at the moment, there's some important livecheck work that I would like to focus on wrapping up into a PR first.

👍🏻 thanks for all your work here and on livecheck!


upgrade amalgamation code

Coverage remained the same at 58.344% when pulling 9cb060a1317dbbaf35dd18b0e23bcbc4f356bcd7 on sqlite-amalgamation-3250200 into e85a2792f3166972d6619b7051f01a2df254192a on master.


[gotporn] Add new extractor

Before submitting a pull request make sure you have:

[x ] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[x] New extractor
[ ] New feature

Description of your pull request and other information
Added support for GotPorn.
$ python test\test_download.py TestDownload.test_GotPorn
[GotPorn] 5661549: Downloading webpage
[info] Writing video description metadata as JSON to: 5661549.info.json
[debug] Invoking downloader on 'http://www.gotporn.com/gvf/q7t29q6cq4hy5bqw06tflwb60vh8qjd7ks12psqwnw1zvgt1dwbzsy1l8w1sy0r7AkglfhvAlvldAqz7hAzbmsjbr24kxj21hsp40kyngr0l9xc492x7k5kvc1vgwrw6p3rl87hybn22mwAzArscwkmy5f7txAjqfsl0pnt8w34n0vh059ky3mA8kpyvdAmg6mfjrpxw344n9851k4sv725zbhy4A3kc246bx8641b9cc18flkxttxvb8mzddjxhr1pmclctgxczrl3w9fq2bsp8jjhtAlvzsr8bxf9sg8bbzpt144cq'
[download] Destination: 5661549.mp4
[download] 100% of 10.00KiB in 00:00
.
----------------------------------------------------------------------
Ran 1 test in 5.857s

OK

It's well covered by generic extractor.


Route 53 Zone

Hi,
thanks for the fix to the route 53 zone (https://github.com/dtan4/terraforming/pull/118). This has solved the first issue. Unfortuntely, I have run into another issue.
I have a private zone and it has 3 associated VPC's. Terraforming seems to only select the first in the list
Therefore, I think https://github.com/dtan4/terraforming/blob/master/lib/terraforming/resource/route53_zone.rb#L22 should cater for an Array of VPCs
P.

aws_route53_zone resource can have one VPC id. If we want to associate 2 more VPCs to a hosted zone, we have to use aws_route53_zone_association together...

@dtan4 I already use the zone_association for managing new infra. But when trying to get the current infrastructure, terraform only picks up 1 of the VPCs.


Serve static files with Express to simplify.

Make development simpler by removing dependency on Apache server.
Reverse proxy fun can still be had but should be left as excercise to
the systems administrator.
This was useful for me to test the Sugarizer server.

To test, try the updated instructions in the wiki. Also, now root is not required :-)

It's a place where things are changing. Initially Apache2 was a prerequisite. I'm still using it on my local dev env. However the "production" env (hosting both http://try.sugarizer.org and http://dev.sugarizer.org) is deployed using nginx - so without Apache2. Here's the nginx setup file for this server:
# prod server
server {
        listen   80;

        server_name localhost try.sugarizer.org server.sugarizer.org;

        root /var/www/master;
        index index.html index.htm;

        location / {
                try_files $uri $uri/ /index.html;
        }

        location /api {
                proxy_pass http://localhost:8080;
                rewrite ^/api/(.*)$ /$1 break;
        }
}

# dev server
server {
        listen 80;
        server_name dev.sugarizer.org;

        root /var/www/dev;
        index index.html index.htm;

        location / {
                try_files $uri $uri/ /index.html;
        }

        location /api {
                proxy_pass http://localhost:8181;
                rewrite ^/api/(.*)$ /$1 break;
        }
}

With nginx, no need to use Apache2 redirection and .htaccess file. Redirection on the node.js port is done by the "proxy_pass" command.
I think this solution is better than using node.js express static route like you're proposing because node.js is not known for its ability to server efficiently static files.
Note also that the Sugarizer server part is currently in heavy rewriting by https://github.com/tarunsinghal92 for the GSoC and will be separated from the Sugarizer client (in https://github.com/llaske/sugarizer-server) in the next version.

I understand about nginx, I saw it in the docker-compose file. This is fine. All I'm saying is that a simpler solution for serving static files is required for developers not to have to set it up in complex ways. And also, nginx will happily work as you describe, if a static file is found, never hitting the express httpd, so this could go in addition to it.
No problem if you don't take this patch, just consider it a comment on developer usability. I want to add collaboration to Jappy on Sugarizer. Do you know if there's a way to make this happen also in Sugar?
Regards,
Sebastian

Your idea is definitively good. I've finally worked with @tarunsinghal92 to update the next version of Sugarizer Server (https://github.com/llaske/sugarizer-server). So, this version will include Client exposition, the API and the new server Dashboard into a single node.js process. No need to use Apache2 or NGinx, the single command:
node sugarizer.js
Will do everything.
BTW I'm closing this PR because due to the future split between Client and Server it will be done in the server repo instead. Thanks for your nice suggestion.

Hi Sebastian,
I want to add collaboration to Jappy on Sugarizer. Do you know if there's

a way to make this happen also in Sugar?
Unfortunately collaboration in Sugar and in Sugarizer don't rely on the
same technology.
It's Gnome Telepathy for Sugar and Web Socket for Sugarizer. And there is
not compatibility or bridge between it.

Regards.
    Lionel.

Thanks for the info!
What is the simplest example of collaboration enabled in Sugarizer activity?
Chat prototype? Paint?
Haven't found docs on the subject.
Any pointers welcome.
Regards,
Sebastian
On 22/07/17 10:05, Lionel LASKE wrote:

Hi Sebastian,
I want to add collaboration to Jappy on Sugarizer. Do you know if there's

a way to make this happen also in Sugar?
Unfortunately collaboration in Sugar and in Sugarizer don't rely on the
same technology.
It's Gnome Telepathy for Sugar and Web Socket for Sugarizer. And there is
not compatibility or bridge between it.

Regards.
Lionel.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/llaske/sugarizer/pull/125#issuecomment-317189451,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMMS08knY9x2OL_YiSfR7UPZFE1JFWyks5sQg-mgaJpZM4OLgdE.

Hi Sebastian,
Yes, I'm sorry there is a lack of documentation here. We should have a
tutorial on that.
ChatPrototype is a good start because it's the activity written by Suraj
the GSoC student that wrote the presence API/server.
You could also have a look on the SharedNotes activity where presence is
handle in very few lines of code, starting here [1].
Note that these activities use a slightly updated
sugar-web/activity/activity.js file to handle launching from the network.
Get this file too so it will be easier to handle presence.
To explain in few words the way of integrating presence:

First get the presence object using : activity.getPresenceObject() -
method exposed by the "new" activity.js
Then call presence.createSharedActivity to create a new share activity
visible on the neighborhood view
Watch events onDataReceived (someone sendMessage on the share),
onSharedActivityUserChanged (an user enter/leave the share) and
onConnectionClosed
Send data to the share using sendMessage
Check window.top.sugar.environment.sharedId variable to see if the
activity has been launched from the neighborhood view with a "Join".

Do not hesitate to ask me questions if you need more informations.
Best regards from France.
         Lionel.

[1]
https://github.com/llaske/sugarizer/blob/dev/activities/SharedNotes.activity/js/activity.js#L437
2017-07-22 20:30 GMT+02:00 Sebastian Silva<EMAIL_ADDRESS>
Thanks for the info!
What is the simplest example of collaboration enabled in Sugarizer
activity?
Chat prototype? Paint?
Haven't found docs on the subject.
Any pointers welcome.
Regards,
Sebastian
On 22/07/17 10:05, Lionel LASKE wrote:

Hi Sebastian,
I want to add collaboration to Jappy on Sugarizer. Do you know if there's

a way to make this happen also in Sugar?
Unfortunately collaboration in Sugar and in Sugarizer don't rely on the
same technology.
It's Gnome Telepathy for Sugar and Web Socket for Sugarizer. And there is
not compatibility or bridge between it.

Regards.
Lionel.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/llaske/sugarizer/pull/125#issuecomment-317189451,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMS08knY9x2OL_
YiSfR7UPZFE1JFWyks5sQg-mgaJpZM4OLgdE>.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/llaske/sugarizer/pull/125#issuecomment-317201777, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA77UQFmIc4XXxL6t1UClQKYYq37mQGnks5sQj-ugaJpZM4OLgdE
.


Wrong JVM version! You are running with .. but JIRA requires at least 1.8 to run

Hello,
when i using your image locally with docker-compose on my arch linux i've got no problem but when I use it on my server (alpine 3.7) i've got the following message :
Wrong JVM version! You are running with .. but JIRA requires at least 1.8 to run.
Any idea ?
Thanks for support.

Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.
An error report file with more information is saved as:
/var/atlassian/jira/hs_err_pid7.log
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000678769000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)
If I bind port
docker run blacklabelops/jira:latest -p 5900:8080 /opt/jira/jre/bin/java -version
I've got the first error
I'm using Docker version 18.03.0-ce, build a667b79d1b

Port bind needs to come before image and looks like you have some memory limits or constrained memory.

I have checked the scripts. If you start the container a command starting with - then jira will be started with parameters. In this case -p 5900:8080 /opt/jira/jre/bin/java -version. Which leads to weird results.
The only correct way to execute the java command is: docker run --rm blacklabelops/jira:latest /opt/jira/jre/bin/java -version.
All in all the main problem seems to be the jvm and your host. I would like to verify, if this problem is a compatibility problem. There is also alpine 3.7 with glibc inside the image.
In order to get a more detailed impression please check the following:

Run Alpine Open Java RE on your server: docker run --rm blacklabelops/java:openjre.8 java -version
Run Oracle Java on Ubuntu on your server: docker run --rm blacklabelops/java:ubuntu.jre.8.162 java -version

This should verify if Java has a general issue on your server or can be limited to java or os inside the image!

Hi,
thanks for your both replies and your interest on my problem.
Finally I found the solution :)
I use Alpine 3.7 with a grsec kernel. I had to enable PaX soft mode.
sysctl -w kernel.pax.softmode=1


Error code: Wsl/Service/CreateInstance/MountVhd/HCS/0x80070032

I downloaded from here Debian.
Extracted the files from the donwloaded file to my external hard drive (K:) and run debian.exe .
It started successfully. So it was possible to start WSL from my hard drive.
The files contained in ext4.vhdx
My intention now is to start WSL with Debian from NAS.
But it seems that it is not possible to mount the ext4.vhdx from a NAS drive.
Is theree any other option to realize booting WSL from a NAS drive?

/logs

Hi, I got the same issue, have you solved this problem?


The many paths to NPE on Adapter line 382

I noticed this in commit d31c658, though, presumably it affects every commit after 4f6471a.
This is breaking custom recipes in spongevanilla-1.12.1-7.0.0-BETA-320.jar

If you look at line 382 of org.spongepowered.common.item.inventory.adapter.impl.Adapter there is a precondition that "parent" not be null. This is apparently because there is a need in getPlugin() to ensure that "parent" is defined, and if "parent" is defined as "this", then there must be a "root container".
The problem occurs on line 48 of InventoryUtil where toSpongeInventory initializes a CraftingGridInventoryAdapter.
On line 46 of CraftingGridInventoryAdapter in the first initializer, it initializes parent to null. This violates the precondition in Adapter and throws an NPE.
But that is not all, this can also hypothetically occur on:
line 54 of GridInventoryAdapter
line 46 of Inventory2DAdapter
line 48 of OrderedInventoryAdapter
line 47 of EquipmentInventoryAdapter
Though, to my knowledge, none of these methods are actually used, and can probably be removed.

https://github.com/napentathol/SpongeCommon/compare/bleeding...napentathol:1513
I can open a PR if you want

The NPE should be solved in latest.
The actual issue is not.
But it requires a rewrite of our lens-system and where we mixin into inventories.
Thanks for your investigation anyways.


SLIM-125: Feat smartmeter push alarm setup

Connects to OSGP/Platform#125
Adds ability to set the send destination of the Push Setup Alarm object.
A getter for the Push Setup Alarm is available that can be used when testing things, but is not connected to the WS front end.

SonarQube analysis reported 31 issues:

 18 major
 10 minor
 3 info

Watch the comments in this conversation to review them.
Note: the following issues could not be reported as comments because they are located on lines that are not displayed in this pull request:

 Complete the task associated to this TODO comment.
 Complete the task associated to this TODO comment.
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
... 1 more

All is well.

SonarQube analysis reported 26 issues:

 13 major
 10 minor
 3 info

Watch the comments in this conversation to review them.
Note: the following issues could not be reported as comments because they are located on lines that are not displayed in this pull request:

 Complete the task associated to this TODO comment.
 Complete the task associated to this TODO comment.
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
 Remove the unused method parameter(s) "organisationIdentification".
... 1 more

All is well.

SonarQube analysis reported 26 issues:

 13 major
 10 minor
 3 info

Watch the comments in this conversation to review them.
Note: the following issues could not be reported as comments because they are located on lines that are not displayed in this pull request:

 Complete the task associated to this TODO comment.
 Complete the task associated to this TODO comment.
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
... 1 more

All is well.

SonarQube analysis reported 26 issues:

 13 major
 10 minor
 3 info

Watch the comments in this conversation to review them.
Note: the following issues could not be reported as comments because they are located on lines that are not displayed in this pull request:

 Complete the task associated to this TODO comment.
 Complete the task associated to this TODO comment.
 Remove the unused method parameter(s) "organisationIdentification".
 Add a nested comment explaining why this method is empty, throw an UnsupportedOperationException or complete the implementation.
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
 Remove the unused method parameter(s) "organisationIdentification".
... 1 more

All is well.


Added Coin Change Solution

Added the Coin Change Solution based on Dynamic Programming .

@gktejus Can you reference the issue you are solving?


Els list all move task orders MB-1729

Description
At the moment there is no way to see all of the MTOs. The Prime can only see the ones that are made available to it; the GHC API only allows fetching them individually when the Move Order is known.
While this may not be needed for the UI of the TOO, it is needed by engineering at the moment to see what MTOs exist (if any) on staging and experimental.
Reviewer Notes
It might be worth using the QueryBuilder here and providing pagination at a later date.
We may also want to expose this in the admin console instead.
Code Review Verification Steps

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in
Querying the Database Safely
have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #dp3-engineering
[ ] Secure migrations have been tested using scripts/run-prod-migrations

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

This is probably a larger refactor for another time, but the pattern we are using in the move_task_order_fetcher.go is different than how we are doing it in the rest of the app.  For other services, we have one file and one struct per one service/service function.  In this file, we have several functions on the moveTaskOrderFetcher struct.

This is probably a larger refactor for another time, but the pattern we are using in the move_task_order_fetcher.go is different than how we are doing it in the rest of the app. For other services, we have one file and one struct per one service/service function. In this file, we have several functions on the moveTaskOrderFetcher struct.

I'm going to timebox fixing this now. It seems like it would take longer to write a story and plan it than to just do it now.

I haven't had time to resolve issue with tests here and the work is no longer really needed so closing the PR.


No Audio on any Videos

Checklist

[X] I am able to reproduce the bug with the latest version.
[X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
[X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
[X] This issue contains only one bug, that only occurs in Squawker

Affected version
v3.4.2+300003196
Steps to reproduce the bug
Any video in my feed
Expected behavior
Audio with Video playback
Actual behavior
Total silence as if no audio track.  The video playback works fine otherwise.
Screenshots/Screen recordings
No response
Logs
No response
Affected Android/Custom ROM version
Android 12
Affected device model
Samsung Tab a7, stock, no root
Additional information
No response

This is not a bug.
The videos are muted by default.
You just have two options:

Unmute each video after start playing it.
Uncheck the setting Mute videos so that all the videos are no more muted by default.

  Thanks for pointing it out.


Update Web Chat Adapter sample

Fix #1256
Proposed Changes

This sample updates the Web Chat related samples to use the correct CDN (70) and also use v4 of Web Chat (01.a.browser-echo)
Updated to use core-js

Closing in favor of merging to the correct branch :) https://github.com/Microsoft/BotBuilder-Samples/pull/1386


How to define a variable with different value for each tower under MirroredStrategy

I tried to train model on multi-gpus with tf estimator and MirroredStrategy. And I found that variables of the model are wrapped as MirroredVariables which are always in sync among towers.
However, there is a variable that needs to have different value for each tower on every step of training, How to define such variable ? that is, a variable with locality T, refers to (https://www.tensorflow.org/api_docs/python/tf/contrib/distribute/DistributionStrategy)

It has been 15 days with no activity and the awaiting response label was assigned. Is this still an issue?

You could try to create variables with VariableSynchronization.ON_READ.  If that doesn't work, you could look into creating a new distribution strategy which implements your logic of syncing them (or in your case not syncing them at all?).  Please re-open if those methods don't help.


vmalertmanagerconfig: repeated child routes field

There are two child routes field in vmalertmanagerconfig.spec now, and the doc using RawRoutes instead Routes. Is there any particular reason to use RawRoutes? why not use Routes []*Route directly?

/question

// CRD schema doesn't support self-referential types for now (see
// https://github.com/kubernetes/kubernetes/issues/62872). We have to use
// an alternative type to circumvent the limitation. The downside is that
// the Kube API can't validate the data beyond the fact that it is a valid
// JSON representation.

I see there is explanation in prometheus operator, so api readability extensionsv1.JSON is needed to circumvent the limitation.
Then vmalertmanagerconfig use route.Routes in code for better code readability?


Expose JsonLdQuadSource and RdfTerm types from sophia_jsonld

Other parsers exposes their quad/triple-source and term types. It would be easier to build higher abstractions if they are public _/\_.

that is indeed an oversight.


Don't generate itext block if only one language is defined

The itext block can include translations for form elements (see spec). pyxform always adds this level of indirection for cascading selects, even if the XLSForm only defines labels/hints for a single language. This isn't a big deal for small secondary instances but can make the XML much bigger for large ones.
Related to #32 and might be good to address while in the same brain space.

See nigeria_wards_internal.xml.txt and nigeria_wards_internal_simplified.xml.txt for what I'm talking about. File size goes from 4.6mb to 3mb.

Checking this one along while waiting for PR review.

@nribeka This is a really good one to look into. Please ask if you have any questions about the problem or intended behavior.

@lognaturel is there a place where i can get the xls for the form?
From your description and looking at the xml, the idea is to not use the translation field when there's only one language, right? It should inline it instead of separating it. This is only true when the survey have one language only, right?

Simple example: XLSForm,XForm
Note that the static choice list uses literal label text which is what is expected. When I force a dynamic choice list by using a choice filter is where the problem occurs.
What we'd like:
<instance id="choices">
	<root>
		<item>
			Choice 1
			<value>choice 1</value>
		</item>
		<item>
			Choice 2
			<value>choice 2</value>
		</item>
		<item>
			Choice 3
			<value>choice 3</value>
		</item>
		<item>
			Choice 4
			<value>choice 4</value>
		</item>
		<item>
			Choice 5
			<value>choice 5</value>
		</item>
		<item>
			Choice 6
			<value>choice 6</value>
		</item>
	</root>
</instance>

Note that the itemset declaration will also need to change:
<itemset nodeset="instance('choices')/root/item[name != '']">
   <value ref="name"/>

</itemset>

@lognaturel,
Another approach would be:
• Add new field in the survey object when creating survey object from the json.
• Use that field (in favor of checking the multi_language all the time) when creating each section.
Thoughts?
The above draft PR obviously break existing tests that have reference to the  field. I'm gonna change the expected output xml files if that's ok?


Extension: Publish to staging not working

Reproduce:

Try to extend your Badge
Click "Publish"

Expected behaviour:
Pedro should be able to publish the extension to staging
Experienced behaviour:
Pedro can not click "publish" (see screenshare)
https://user-images.githubusercontent.com/75991832/204919448-7bb8b23a-12fa-4df3-a53a-c05003d28266.mp4

@pugakn I think it is not really a bug. The problem is the following two:

Button in the sidebar "publish to staging" is disabled
Button in the main widget "publish" is active

So two changes:

The button in the sidebar should be enabled
The button in the main widget should say "Publish to Staging"

Thanks


Add IBM Code Meetup - July 9th, 2018

Refer to Twitter & meetup page
Add events label for this - all events I attend that are tech related should be posted

https://twitter.com/fvcproductions/status/1016515850205970432

Come up with more scalable solution - like link to event check in thing - Foursquare or Meetup - something else


Implement the sealed trait pattern

This implements #258 and safely exposes all the traits inside of the sealed module without allowing outside implementations of these traits. This allows them the be used as generic bounds.

Thanks, I think that originally we only wanted the concrete types to be used (e.g. f32x4) since we did not know what the stability story for Simd<T> would be, but that's changing now with const generics, so I think we should just do this.

When could we expect this to be published?

I can do a release once CI is green again.

What about implementing those traits for primitive types? Like:
impl crate::sealed::Simd for f32 {
    type Element = f32;
    const LANES: usize =1;
    type LanesType = f32;
}

This could be useful for api generic for both simd and primitive types?

This could be useful for api generic for both simd and primitive types?

Since f32 is not a proper argument for Simd<T> I don't know how this could work.


fix(@angular/cli) 1st project consuming arguments to a multiTarget command

Angular CLI version latest (tested on 7.1.0-beta.1 & master 4059fe83b485edcf42b8a795ea74289f1531688e)
use case angular.json w/ 2 projects and command (i.e. karma w/ {singleRun: false} and command line ng test --no-progress --no-watch which will only send the options to the first project and the second one will hang (because of --no-watch not be given  to the second project). Visibly you can notice that the first will not show any build progress (as expected from --no-progress), but the second one will.

This should be addressed in https://github.com/angular/angular-cli/pull/12673
As the original issue is that the options are mutated within the parser logic which is not correct.


Add a command for toggling decorations

It would be nice to have something hooked up to cursorless.toggleDecorations by default.

You mean a voice command? Yeah that's a good idea. Any suggestions? I used to use a parrot noise when I used to toggle them on and off all the time. Fwiw I eventually just stopped noticing them so stopped turning them off but agree it would be good to have the command mapped

That's a good question. Might be nice to have a cursorless scope/prefix if you imagine having more of these sort of commands which aren't directly related to editing.
I've currently got it set up as marks switch but I didn't put much thought into that decision/haven't needed to use it much.

Good idea. My imagination-less idea:
cursorless (show | hide)
Btw maybe cursorless.toggleDecorations should be enable/disable cursorless so all commands stop as well? Now you can chuck tokens randomly using markers you cant see. Would be nice to have a voice command to actually disable/enable cursorloss.

I think it would make sense to switch off cursorless when decorations are hidden. Unless there's a good reason not to?

Agreed that we should probably set a mode so that cursorless commands aren't active if cursorless is hidden
Although maybe you'd still want to be able to do things like "pre funk" even if decorations are hidden?
And fwiw, you wouldn't actually be able to chuck tokens you can't see. When you hide the annotations they all get deleted. So talon would recognise the command "chuck air" but cursorless would just throw an exception saying the decoration doesn't exist


This code is incompatible with C#

Please fix the following lines, it's not compatible with C#.
Seems like they are written using Java:
https://github.com/HMS-Core/hms-iap-serverdemo/blob/bfa56456a6ca00efa6941b8ab3a1197211ddc230/Demo.cs#L202
https://github.com/HMS-Core/hms-iap-serverdemo/blob/bfa56456a6ca00efa6941b8ab3a1197211ddc230/Demo.cs#L432

Thank you for reporting this issue, we have fixed the code in the latest update 0295a81


[17.11] Provide custom gRPC dialer to override default proxy dialer (#2419)

Cherry-pick #2419.
git cherry-pick -s -x 312be5983e2d2f01f0cbcc99d027b28433256705
Cherry-pick was clean.

Ping @anshulpundir @thaJeztah @andrewhsu

Closing PR because 17.11 branch is now cut off at 312be5983e2d2f01f0cbcc99d027b28433256705, which includes this commit.