Fix discrepancy in the result of Game#getGameDirectory between SV and SF

Issue
Code
System.out.println("--- calling getGameDirectory ---");
System.out.println(this.game.getGameDirectory().toString());
System.out.println(this.game.getGameDirectory().toAbsolutePath().toString());

SF
[13:27:14] [Server thread/INFO] [STDOUT]: --- calling getGameDirectory ---
[13:27:14] [Server thread/INFO] [STDOUT]: .
[13:27:14] [Server thread/INFO] [STDOUT]: C:\Users\luck\Desktop\SF\.

SV
[13:34:57 INFO] [STDOUT]: --- calling getGameDirectory ---
[13:34:57 INFO] [STDOUT]:
[13:34:57 INFO] [STDOUT]: C:\Users\luck\Desktop\SV

The path when loaded on SpongeForge just needs to be normalized.
https://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html#normalize--
Fixes the floating dot in the middle of all paths calculated relative to that directory. e.g.
[13:44:22] [Server thread/INFO] [FML]: Searching C:\Users\luck\Desktop\SF\.\mods for mods

Fixes https://github.com/lucko/LuckPerms/issues/1028

Thanks, @lucko.


unwanted console.log[s] in integration tests output

Running the following test:

describe('DynamodbService', () => {
  let instance: UserPersistenceService;

  beforeEach(() => {
    instance = new UserPersistenceService();
    dynamodb.install();
    dynamodb.start({
      port: 8000
    });
  });

  it('can be instantiated', () => {

    expect(instance instanceof UserPersistenceService).toBeTruthy();
  });

  afterEach(() => {
    dynamodb.stop({
      port: 8000
    })
  });
});

produces the following output in tests results:
 PASS  packages/datagator/src/lib/dynamodb/dynamodb.service.spec.ts (6.001s)
  ● Console

    console.log node_modules/dynamodb-localhost/dynamodb/installer.js:12
      Started downloading dynamodb-local from http://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz into /home/developer/src/microgamma/node_modules/dynamodb-localhost/dynamodb/bin. Process may take few minutes.
    console.log node_modules/dynamodb-localhost/index.js:30
      Dynamodb Local Started, Visit: http://localhost:8000/shell

I expect the output to be clean and to still be able to get debugging info if wanted using DEBUG=dynamodb-localhost:* environment variable

I'll do you one better. I get 7000+ lines of nothing from using the install handler.

+1. any logging to the console should be an option! Can we please be able to switch that one off? For now I run install and start in a child_process.fork with silent: true (https://nodejs.org/docs/latest/api/child_process.html#child_process_child_process_fork_modulepath_args_options)


Multilabel classification

Resuming implementation of MLC in this repo.
TODOs

[x] make sure labels in InstanceLabelsDataset are the same as in GraphDataset
[x] generate (instance, label_i) pairs
[ ] instantiate instance encoder (frozen?) embedding layer with instance features
[ ] implement instance-label scorer
[ ] implement hierarchical softmax, using label taxonomy as tree structure

cc @dhruvdcoder @mboratko

@dhruvdcoder merging this into main as it's gotten to be very big -- will do any brushing up in a new branch off main.


[Improve][Pom] Add junit4 to the root pom

Purpose of this pull request
1.Add junit4 to the root pom，pecification version of junit4
Does this PR introduce any user-facing change?

How was this patch tested?

Check list

[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
[ ] If you are contributing the connector code, please check that the following files are updated:

Update change log that in connector document. For more details you can refer to connector-v2
Update plugin-mapping.properties and add new connector information in it
Update the pom file of seatunnel-dist

[ ] Update the release-note.

link #2283

Just in my mind, can we remove junit4 in the repository?

The use of testcontainer must rely on junit4. So junit4 can not remove.


fix: hardhat config syntax for explorer verification

Description
This PR fixes Smart contract verification on block explorers which was failing due to incorrect hardhat config.
Smart contract verification on block explorer was failing when using
npx hardhat verify contract_address_here --network polygon
was getting below error
Error in plugin @nomiclabs/hardhat-etherscan: You are trying to verify a contract in 'polygon', but no API token was found for this network. Please provide one in your hardhat config. For example:
{
  ...
  etherscan: {
    apiKey: {
      polygon: 'your API key'
    }
  }
}

I had polygon added to apiKey but it was still throwing error.
Related Issues
https://github.com/scaffold-eth/scaffold-eth-2/issues/498 - This issue is related to this but was closed by the creator.
Your ENS/address: 0x37fA478a93166d72BBc25BDa4a6a76dBB3559B3f

Hey @inventionsbyhamid thanks for this!
Actually, for verification, we are using etherscan-verify and for it the configuration is correct as mentioned here -> https://github.com/wighawag/hardhat-deploy#options-2
Also to verify the contract you should have run yarn hardhat etherscan-verify --network polygon  Making sure you have put the right polygonscan API key
I just tried verifying on polygonMumbai and everything seems to work : https://mumbai.polygonscan.com/address/0x3DCF2dd17b2365B46b518CB869A4223f9c42918e#code

Also in this PR you have updated the configuration in line with hardhat-verify which we are not using currently


Refactor cert-manager to allow templatable packages.

Unfortunately still needs separate apko files since entrypoint is readonly. :(
This is a refactor - there should be no diff from existing images.
cc @mattmoor - I based this off the thread from early. lmk if I'm holding things wrong.
Chainguard Images Pull Request Template

Image Size

[ ] The Image is smaller in size than its common public counterpart.
[ ] The Image is larger in size than its common public counterpart (please explain in the notes).

Notes:
Image Vulnerabilities

[ ] The Grype vulnerability scan returned 0 CVE(s).
[ ] The Grype vulnerability scan returned > 0 CVE(s) (please explain in the notes).

Notes:
Basic Testing - K8s cluster

[ ] The container image was successfully loaded into a kind cluster.
[ ] The container image could not be loaded into a kind cluster (please explain in the notes).

Notes:
Basic Testing - Package/Application

[ ] The application is accessible to the user/cluster/etc. after start-up.
[ ] The application is not accessible to the user/cluster/etc. after start-up. (please explain in the notes).

Notes:
Helm

[ ] A Helm chart has been provided and the container image can be used with the chart.  If needed, please add a -compat package to close any gaps with the public helm chart.
[ ] A Helm chart has been provided and the container image is not working with the chart (please explain in the notes).
[ ] A Helm chart was not provided.

Notes:
Processor Architectures

[ ] The image was built and tested for x86_64.
[ ] The image could not be built for x86_64 (please explain in the notes).
[ ] The image was built and tested for aarch64.
[ ] The image could not be built for aarch64. (please explain in the notes).

Notes:
Functional Testing + Documentation

[ ] Functional tests have been included and the tests are passing.  All tests have been documnted in the notes section.

Notes:
Environment Testing + Documentation

[ ] There has not been a request and/or there is no indication that this image needs tested on a public cloud provider.
[ ] The container image has been tested successfully on a public cloud provider (AWS, GCP, Azure).
[ ] The container image has not been tested successfully on a public cloud provider (AWS, GCP, Azure) (please explain in the notes).

Notes:
Version

[ ] The package version is the latest version of the package.  The latest tag points to this version.
[ ] The package version is the not the latest version of the package (please explain in the notes).

Notes:
Dev Tag Availability

[ ] There is a dev tag available that includes a shell and apk tools (by depending on 'wolfi-base')
[ ] There is not a dev tag available that includes a shell and apk tools (by depending on 'wolfi-base') (please explain in the notes).

Notes:
Access Control + Authentication

[ ] The image runs as nonroot and GID/UID are set to 65532 or upstream default
[ ] Alternatively the username and GID/UID may be a commonly used one from the ecosystem e.g: postgres
[ ] The image requires a non-standard username or non-standard GID/UID (please explain in the notes).

ENTRYPOINT

[ ] applications/servers/utilities set to call main program with no arguments e.g. [redis-server]
[ ] applications/servers/utilities not set to call main program with no arguments e.g. [redis-server] (please explain in the notes)
[ ] base images leave empty.
[ ] base image and not empty (please explain in the notes).
[ ] dev variants is set to entrypoint script that falls back to system.
[ ] dev variants is not set to entrypoint script that falls back to system (please explain in the notes).

CMD

[ ] For server applications give arguments to start in daemon mode (may be empty)
[ ] For utilities/tooling bring up help e.g. –help
[ ] For base images with a shell, call it e.g. [/bin/sh]

Environment Variables

[ ] Environment variables added.
[ ] Environment variables not added and not required.

SIGTERM

[ ] The image responds to SIGTERM (e.g., docker kill $(docker run -d --rm cgr.dev/chainguard/nginx))

Logs

[ ] Error logs write to stderr and normal logs to stdout. Logs DO NOT write to file.

Documentation - README

[ ] A README file has been provided and it follows the README template.

@wlynch another multi-component case (like this) which I was toiling over the best way to refactor is Tekton.  It has a few other "fun" deviations besides entrypoint.

@wlynch I threw together https://github.com/chainguard-images/images/pull/1396 to illustrate some of the ideas here.


no-unresolved error when linting using eslint-import-resolver-webpack

I installed eslint-plugin-import/resolver-webpack so I could correctly resolve webpack aliases using eslint.
Before setting up eslint-plugin-import and eslint-import-resolver-webpack I would just get this error due to eslint not being able to resolve an alias I set up in webpack.
Unable to resolve path to module 'src/picture.jpg
Now I get a ton of errors am I doing something wrong? I've googled and looked through issues for the last couple hours but can't figure out what I'm missing.
package.json:
        "eslint": "^3.12.0",
        "eslint-import-resolver-webpack": "~0.8.4",
        "eslint-plugin-import": "^2.9.0",
        "webpack": "3.8.1",

.eslintrc:
    "plugins": [
        "react",
        "import"
    ],
    "settings": {
        "import/resolver": {
            "webpack": {
                "config": "webpack.config.js"
            }
        }
    }

webpack.config.js:
        alias: {
            'src': path.resolve(__dirname, 'src')
        }

Are your files using .jsx extension?

I got same issue, then I fond I put some env-sensitive code in the webpack.config.js that make it exported an empty config object. so the eslint couldn't get any info about alias.
I suggest check the way you export your webpack config object.

@JoeHetfield Can you give an example here, please? there are many people looking for this solution on the web

@nicolascbarbosa At first, I exported my config like this :
module.exports = (env) => {
  switch (env) {
    case 'production':
      return merge(commonConfig, productionConfig);
    case 'staging':
      return merge(commonConfig, stagingConfig);
    case 'development':
      return merge(commonConfig, developmentConfig);
    default:
      return {};      // <- this is the problem
  }
};

since eslint won't provide any "env" to the webpack.config.js, so the exported config is {}，the “alias” key was not exists, so eslint don't have any knowledge of your custom path resolve plan. so, I changed my code to ：
module.exports = (env) => {
  switch (env) {
    case 'production':
      return merge(commonConfig, productionConfig);
    case 'staging':
      return merge(commonConfig, stagingConfig);
    default:
      return merge(commonConfig, developmentConfig);
  }
};

then, everything gose fine.

So I feel really silly but in my case I was pointing to the correct webpack.config I just didn't account for es6 modules in webpack.config.js renaming to webpack.config.babel.js fixed it for me


Limit debug logs to 4096 bytes on vercel to avoid errors

Type of change

[ ] 🐛 Bug fix
[x] 🌟 New feature
[ ] 🔨 Breaking change
[ ] 📖 Refactoring / dependency upgrade / documentation
[ ] other:

Packages affected

[ ] @clerk/clerk-js
[ ] @clerk/clerk-react
[x] @clerk/nextjs
[ ] @clerk/remix
[ ] @clerk/types
[ ] @clerk/themes
[ ] @clerk/localizations
[ ] @clerk/clerk-expo
[ ] @clerk/backend
[ ] @clerk/clerk-sdk-node
[ ] @clerk/shared
[ ] @clerk/fastify
[ ] @clerk/chrome-extension
[ ] gatsby-plugin-clerk
[ ] build/tooling/chore

Description

[x] npm test runs as expected.
[ ] npm run build runs as expected.

When deployed to Vercel, logs cannot exceed 4096 bytes, or no logs are displayed at all and the user gets an error instead. This PR truncates debug logs to 4096 bytes to ensure that they display correctly on Vercel.
Fixes JS-608

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.


possible fix for bignumber (no error reporting)

is everything ok? :smile:

Yes sorry, but the Code coverage failed in this build, i don't know why.
I am not very experienced Javascript/NodeJs.

Your travis-ci does not compile, because it can't find this script: https://rawgit.com/twolfson/fix-travis-ci/master/lib/install.sh

is the travis-ci repaired?


[Removal]:

Hotspot Name
Mammoth Umber Dragonfly
Hotspot b58 Address
11vgt8jYF6oVrE4ArzEYnUXu12bvU1WfxQNgZsw8hj3N25Xqk3C
Discord Handle
way#2204
Hotspot Manufacturer
pantherX
Removal Reason
I bought several pantherx2s from the Internet, and immediately deployed them, I deployed one on the balconies of every building in my neighborhood, and now it’s connected to the power and the Internet, and asked the authorities to review my deployment and remove it from the denylist, i will stand by my principles and contribute to helium. Thank you.
Modifications
No
Extra forwarders
No
Extra antennas
No
Additional Information
I lengthened the antenna cable so that my machine wouldn’t get wet

no wonder why you get into denylist lol

难怪你为什么进入拒绝名单哈哈
What’s wrong with me? We’re a big neighborhood. Is there a problem with me putting an antenna on the roof?

That's not a roof. It's mounted the wrong way (horizontal) outside a balcony. Anyway, denylisted hotspots shouldn't be delisted for being bought 2nd hand. Get your refund from the seller.

That's not a roof. It's mounted the wrong way (horizontal) outside a balcony. Anyway, denylisted hotspots shouldn't be delisted for being bought 2nd hand. Get your refund from the seller.

Thank you for reminding me, I have adjusted it into a flat place, but the revenue is almost no, just hope the project side can review faster.

That's not a roof. It's mounted the wrong way (horizontal) outside a balcony. Anyway, denylisted hotspots shouldn't be delisted for being bought 2nd hand. Get your refund from the seller.

you shouldn't unravel the mystery. i am pretty sure it is not a used one if you see what i saw. they should ask for refund from the seller if there is any. otherwise the honest miners will bear the loss of hnts stolen by cheaters.

We do not have sufficient evidence to remove these hotspots from the denylist. This is an automated comment due to the volume of addition and removal requests. A future tool is in the works to provide more insight into the analysis approach made by the Helium team and community members that maintain this list.

We have taken into account this removal request in the next iteration of the denylist. It may take some time before it's processed. This is an automated comment due to the volume of addition and removal requests. A future tool is in the works to provide more insight into the analysis approach made by the Helium team and community members that maintain this list.


SPNumberField.prototype.SetValue // thousand separator

Hi, now if you set value in SPNumberField you get something like this "123456.11".
SharePoint works fine with format something like this "123 456.11" or "123,456.11" and by the way it's more user friendly.
I propose to change prototype for SPNumberField.

Wanted to let you know I did see these pull requests just haven't had any time. I'll try to get to them soon. Thanks so much for the contributions.

I realized I already have this mostly implemented I just needed to add formatMoney in GetValueString.


Remove header above intro text and increase intro text to appropriate size

https://carbondesignsystem-git-content-case-studies.carbon-design-system.now.sh/components/overview
Remove header and make intro text H2. @jeanservaas can confirm type spec if I’m wrong

@mjabbink we have something similar on the Patterns Overview page too but we can definitely change both to fall in line.
https://www.carbondesignsystem.com/patterns/overview


Fix read depth freeze

Fixes #92

@anderspitman this looks good! Once you resolve the conflicts, let me know and I will merge.

Just asked Al and he said he was ok having it merged


adds 20px of whitespace between project rows

fixes #466

Could you post some before and after screenshots at different window widths?

Why doesn’t the production site have this problem?
Sent from my iPhone

On Dec 29, 2018, at 11:25 AM, Hank Tadeusiak<EMAIL_ADDRESS>wrote:
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Here is a screenshot of the html for the production site, you'll see the div element has "style=margin-bottom: 20px;"

Where as the test site does not have this, but rather has the class "individual-product-listing". With my most recent pr I added "margin-bottom: 20px" to that class and solved that issue.

When I get back from break we were going to discuss about how to go about cleaning up the css of the website. #664

Thanks!
Sent from my iPhone

On Dec 29, 2018, at 1:37 PM, Hank Tadeusiak<EMAIL_ADDRESS>wrote:
Here is a screenshot of the html for the production site, you'll see the div element has "style=margin-bottom: 20px;"
Where as the test site does not have this, but rather has the class "individual-product-listing". With my most recent pr I added "margin-bottom: 20px" to that class and solved that issue.
When I get back from break we were going to discuss about how to go about cleaning up the css of the website. #664
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


Add 'version_id' as a field to all Discover API responses returning Collections and/or Datasets

THIS SHOULD BE DONE AFTER ALL OTHER p0 ENDPOINT IMPLEMENTATIONS
Simplify or remove logic around setting 'correct' ID in reshape_for_curation_api utility functions
Update curation-api OpenAPI accordingly. Clearly define use-case distinctions for version_id and id.
Deprecate 'original_id' in the process

This should be done after all other p0 endpoint implementations.


Docs: Update formatter section

Hey :)
I was searching for a way to disable the formatter and there is none - which is great.
https://github.com/nwolverson/purescript-language-server/blob/ff6aa80bd467abe387a6d67dacb1cba8082ffeb9/src/LanguageServer/IdePurescript/Config.purs#L197-L205
By doing that I noticed the README section about the formatting provider doesn't mention the existence of other formatters than purty. It's just a tiny bit outdated and could be reworded to not only be about purty.
https://github.com/nwolverson/purescript-language-server#formatting-provider

Done debd5f0148e8749fa8cbc6c875b742a992bcd6cb


Implementing filterNull() and filterFalsy()

Implementation of the filterNull() and filterFalsy() intermediate operations as it has been discussed in winterbe#6
@winterbe do you think I should also add Optional.filterFalsy() ? For the Optional class, filterNull() obviously does not make sense, but I'm in doubt about filterFalsy()

Thanks for your contribution.
I'd say we should leave Optional as is for now until there's some real-world requirements.


Multiline Headers lose lines after multiple saves

Setting a header that has multiple lines starts to lose parts of the header after multiple saving. A good example is simply running https://github.com/SpongePowered/SpongeVanilla (fresh setup) and watch the global.conf file.

So I think I have a fix for this -- could you test https://minions.aoeu.xyz/zml/sv-configfix.jar on windows and see if it works?


Add a note about CPU change handling in CPU manager.

This relates to PR https://github.com/kubernetes/kubernetes/pull/66718 which validates that CPU manager state and current set CPUs are in sync.

/lgtm

/approve


Add a way to delegate to a non-root field

ver : 2.2.1
some micro service has this queries :
    meetingQueries: {
           getMeetingsByDates(startDate, endDate): [Meeting]
           ......
    }

when I try to stitch him, in the resolver I can't use "getMeetingsByDate"  because his not defined in the microservice root queries.
I get:

"Cannot find subschema for root field "query.getMeetingsByDates" ".

so I tried instead of :
mergeInfo.delegate(
`query`,
`getMettingsByDates`
.........)

to do :
mergeInfo.delegate(
`query`,
`meetingQueries.getMettingsByDates`
.........)

yet still I can't find a way to reach a subquery, and couldn't find any documentation on it.

@stubailo did you ever find a solution to this question? I have the same need but can't find any documentation.

I have the same issue, I can be wrong, but if you know how resolve this field, you can resolve inside the merging resolver.
mergeSchemas({
    schemas,
    resolvers: mergeInfo => ({
      SomeField1: {
        someField2: {
          fragment: '...',
          resolve(parent, args, { db }, info) {
            return db.SomeField.findOne({ where: { id: parent.id } });
         }
    }
  }

Ah ok that makes sense.  Thanks!

I'm facing this issue as well. Would be great to be able to pass a full query + fragment to the delegate method that allows us to query a nested field. Maybe something like this (based on the example https://www.apollographql.com/docs/graphql-tools/schema-stitching.html#basic-example):
Chirp_Chirp: {
  author: {
    fragment: `... on Chirp { authorId }`,
    resolve(chirp, args, context, info, chirpAuthorFragment) {
      return info.mergeInfo.delegateToSchema({
        schema: authorSchema,
        query: gql`
          query User($token: String, $authorId: String) {
            viewer(token: $token) {
              userById(id: $authorId) {
                ...ChirpAuthor
              }
            }
          }
          ${chirpAuthorFragment}
        `,
        variables: {
          token: context.token,
          authorId: chirp.authorId
        },
        context,
        info,
      });
    },
  },
},

You can totally do this already with Transforms. The documentation doesn't really make sense around it:
https://www.apollographql.com/docs/graphql-tools/schema-transforms.html#Modifying-types
But if you look at the tests, it may make a bit more sense:
https://github.com/apollographql/graphql-tools/blob/b85137ba81c9bdc5667bced9cad9b1d226ea83fc/src/test/testTransforms.ts
As far as your specific example, I haven't tried it yet, but it's something like this:
const { WrapQuery } = require('graphql-tools')
const { Kind } = require('graphql')

return info.mergeInfo.delegateToSchema({
  schema: authorSchena
  operation: 'query',
  fieldName: 'meetingQueries',
  args: { id: nodeId },
  context,
  info,
  transforms: [
    new WrapQuery(
      [ 'meetingQueries' ],
      (subtree) => {
        return {
          selectionSet: {
            thing: Kind.SELECTION_SET,
            selections: [
              {
                kind: Kind.FIELD,
                name: {
                  kind: Kind.NAME,
                  value: 'getMeetingsByDates'
                },
                arguments: [
                  {
                    kind: Kind.ARGUMENT,
                    name: {
                      kind: Kind.NAME,
                      value: startDate
                    }
                    value: {
                      kind: Kind.VARIABLE,
                      name: {
                        kind: Kind.NAME,
                        value: startDate
                      }
                    }
                  },
                  {
                    kind: Kind.ARGUMENT,
                    name: {
                      kind: Kind.NAME,
                      value: endDate
                    }
                    value: {
                      kind: Kind.VARIABLE,
                      name: {
                        kind: Kind.NAME,
                        value: endDate
                      }
                    }
                  }
                ],
                selectionSet: subtree
              }
            ]
          }
        }
      }
    )
  ]
})

@gviligvili any chance you'd repost this to stack overflow? It'd be great to get the rep for this.
For others reading, the return value of the (subtree) => { /* ... */ } function is a GraphQL AST node representing the query that's made to the sub-schema authorSchema. Equivalent to what I've highlighted here:

https://astexplorer.net/#/gist/078337bd6ad24069f0c9183e22f286d2/d10f9974b78eb16dcdb02f7595469099db84d9ef
In the above example, the id and title fields are the selection set from the original query which we're passing along to the sub-query, i.e. the subtree value.

Here is a more complete example which is similar to what I'm doing in my application, using additional schema transforms too: https://gist.github.com/elliottsj/fa7042c0588ea6df1bc2f02f583d1100

New TransformQuery transform replaces WrapQuery and ExtractField and should do the job, folded into #1306 .


organic_results is missing the last result

You get one fewer than the value you specify for num in the organic_results list

num parameter doesn't necessary match the number organic results we are getting back from Google. More information on how Google treat this kind of parameters: https://serpapi.com/pagination
(Sorry for the delay in the response. You can open bug reports on https://forum.serpapi.com, we'll check these boards on a daily basis.)


fix(tracing): trace hook error out when see nil

Summary
"instrument" hooks toip, db_connect and other functions that widely used by core and plugins, and collect data for tracing.
I surprisingly find the hooking function will error out when set_attribute got a nil value.  For example, A failing DNS query would emit an error with traceback: "invalid value".
This will definitely change the behavior of the hooked function. toip would have returned (nil, err) if it's not hooked, but instead, it throws an error and the error has nothing to do with the origin error. This could cause more serious issues for other hooked functions.
Luckily, we do not have more cases where set_attributes receives invalid values.
The complete list of hooked functions will be shown offline.
Checklist

[ ] The Pull Request has tests
[ ] There's an entry in the CHANGELOG

N/A There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE
Full changelog

Change "error" to "log".

Issue reference
KAG-749

seems the failing test is related

I tried reverting the change and the test still fails for t/01-pdk/08-response/11-exit.t (39, 41, 42, 43).
The master is not red. No idea why it fails at this branch.


Remove Deprecated QDesktopWidget

Pull request checklist:

[x] CHANGELOG.md was updated, if applicable

Description
QDesktopWidget is marked as obsolete in Qt 5 and removed in Qt 6. This PR migrates two (similar) usages.
Both used QDesktopWidget to check if something is inside the screen or not. QDesktopWidget::availableGeometry used to return the available geometry of the screen the widget was in. Now, QGuiApplication::screenAt is used.

this PR also fixes moveIntoDesktopRect() not working well with multiple monitors (where it would lock to primary screen only), both emote picker and tooltip widget appears on 2nd monitor when needed now, there are still improvements to be made but its lot better 👍


An auto-save option

When adding Pokemon after catching it, it'd be nice to have it auto-save so that I don't forget to click save. If you're worried about hitting the API too much with it, maybe wrap the API call in a 10 second debounce, so that if the user adds multiple pokemon at once it still only makes one call?

yes that's a good idea!

If you're happy to take contributions and invite me to the project, I'd love to help with this so it's in for Gen 9

@Garethp that will be more than welcome :)
the project is currently being rewritten and there are a lot of moving pieces,
but I will add you as contributor after the next release :)


NPM 2.0.0 version has major code problems

render-voyager-page.js has window.addEventListener('load') with SYNC function trying to call ASYNC method (await response.json()). Not only that but await response.json() CANNOT be called like that since response is still a PROMISE, not a result object, therefore it should be either (await response).json() or it should be done SYNCHRONOUSLY.
And even after all that fixed manually, I still couldn't get past the "Loading..." because of "GraphQLVoyager.init is not a function".
Didn't test previous versions, so can't say anything about them. Please fix NPM 2.0.0 version, considering those problems - I doubt that it was tested at all...

Related: https://github.com/graphql-kit/graphql-voyager/issues/372


Add a normalization component

Part of the work for supporting unsupervised learning in evalml, we need a normalization component to ensure features on different scales don't negatively affect the performance of models.

Scikit-learn's MinMaxScaler looks like it does exactly what we're looking for here


Class ReceiptSectionText(). Can Set the paper size 80MM ?

Class ReceiptSectionText().  Can Set the paper size 80MM ?

you can set paper on ```
.printReceiptText(
ReceiptSectionText receiptSectionText, {
int feedCount = 0,
bool useCut = false,
bool useRaster = false,
double duration = 0,
PaperSize paperSize = PaperSize.mm58,
})

But you need to add library [esc_pos_utils_plus](https://pub.dev/packages/esc_pos_utils_plus)

I have tried it. but there is error

@amonlove add import package:esc_pos_utils_plus sir


Support custom location for cache from environment variables like PIP_CACHE_DIR

[x] I have searched the issues of this repo and believe that this is not a duplicate.

Issue

I am using GitLab CI/CD. Where I need to customize the cache directory in order to speedup later builds. The cache folder need to be inside the project folder. Currently I see no way to do this.
Proposal
Currently PIP_CACHE_DIR & PIPENV_CACHE_DIR are used by the respective tools. Similar Environment variable name would be good.

Isn't settings.virtualenvs.in-project what you're looking for?

Nope that is the virtualenv location. Here I want  to change the location where poetry caches the downloaded/built packages/wheels.

@jnoortheen  you can set it directly from pip configuration
https://stackoverflow.com/a/52029442/740825 just use a path instead of false and check the documentation for various places to set pip's config.

Poetry, for now, respects XDG environment variables on Linux
so on Linux, setting XDG_CACHE_HOME environment variable will change the location of the Poetry cache.
Also, from my experimentation, if a "poetry.lock" file exists in your project folder, Poetry cache will not be created or modified. Thus "poetry.lock" is in itself a cache if you will. The only cache you have to worry about in this case is the pip cache, which as mentioned above can be switched via PIP_CACHE_DIR

@goldslope Last time I used poetry, it created its own cache folder inside ~/.cache/pypoetry after downloading packages. It doesn't use pip for downloading/caching. Has this been changed?

if you have Mac/Linux,
run "export PIP_CACHE_DIR=my/test/folder/pip_cache"
then run "poetry install" or "poetry update"
you should find that your test folder gets created and populated

@goldslope I checked it with  poetry(0.12.11). Now it respects PIP_CACHE_DIR variable and doesn't create ~/.cache/pypoetry completely if lock file is available. Since we commit lock file to repo this issue is no longer valid and one can use PIP_CACHE_DIR to set the location for caching builds.


GetHistoryForKey to return correct data

The 2.5 release used an updated protobuf js library; this has meant changes across the codebase to use this new library, subtly different API.. this function was sadly missed.
resolves #374
Signed-off-by: Matthew B White<EMAIL_ADDRESS>

@mergify port main


The storage table model is missing the signedIdentites

The table resource manager API model is missing the signedIdentites property, comparing to the data plane alternatives.
It is expected to be as the file share model, which has the signedIdentities property defined in its resource manager API.

@priyapansrp , @HimanshuChhabra
Would you please help to look at the SRP API request?

I noticed the signedIdentifiers is added in API version 2021-09-01, but not for the version before, e.g. 2021-04-01, 2021-06-01. This casues the clients using those versions still blocked.
Ping @leni-msft...

Though the 2021-09-01 version has the signedIdentifiers defined in the mgmt plane API, while the API is a bit problematic that once a table is created and updated the ACL for once (either PATCH or PUT), it will always fail in a second time update on ACL (409 error with code TableAlreadyExists).


Current time line on agendaWeek and agendaDay

How about this?

Intersting addition. Perhaps just display on the current day though?

I think so, I see no reason to show on other days. But this may be optional.

I made it doing some lines of code:
function fullCalendarTimeLine() {
  var minute, height;

  minute = new Date();
  minute = (minute.getHours() * 60) + minute.getMinutes();
  height = $('.fc-time-grid').height() / 1440;

  $('.fc-time-line').css('top', height * minute);
}

$('.fullcalendar').fullCalendar({
  //...

  viewRender: function(view, element) {
    if (interval) { clearInterval(interval); }
    if (view.type === 'agendaWeek' || view.type === 'agendaDay') {
      $('.fc-time-grid').append('

');
      interval = setInterval(fullCalendarTimeLine, 1000);
      fullCalendarTimeLine();
    }
  },

  //...
});

closing this to keep things organized, but will reference and leverage this PR when tackling #414


Added ILIKE part.

[ x ] I have read freeCodeCamp's contribution guidelines.
[ x ] My pull request has a descriptive title (not a vague title like Update index.md)
[ x ] My pull request targets the master branch of freeCodeCamp.
[ x ] None of my changes are plagiarized from another source without proper attribution.
[ x ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@awais305 thanx for the pr. We look forward to future contributions :balloon:


Add commands to create dataset collections

Some workflows expect the inputs to be collections of datasets (i.e. list:paired).  To enable completely autonomous server configuration we need a way to create these collections via ABM (or other API calls).

Friends with #211

Fixed in #212


Inclusive design: change whitelist to allowlist?

There are very few instances of the phrase whitelist in ansi_up.
They could be replaced relatively quickly and easily with allowlist.
https://developers.google.com/style/inclusive-documentation#replace
We would appreciate this change.

This would require an API change and force a new major release (semver).
If I do make a major change, I will replace the terms then.


Order of pseudoselectors is important

The order of pseudoselectors appears to be important, and in a different way that might be expected!
<div
  style={{width: '100px', height: '100px'}}
  $background={{default: 'red', hover: 'blue', active: 'purple'}}
/>

For some reason, this doesn't turn purple when clicked, but is fixed by reordering the props:
<div
  style={{width: '100px', height: '100px'}}
  $background={{default: 'red', active: 'purple', hover: 'blue'}}
/>

This might be a styled-components issue, but we could fix it by sorting style objects keys.

Actually just a css issue, :active doesn't have higher importance than :hover, so whichever comes last in the stylesheet will be the one that is rendered.  The order is reversed above as properties were addedincorrectly in reverse order, but has been 'fixed' in aaf803a


Association variables not available in resource link callbacks

I have been trying to build some authorization into a resource using before callbacks but have been struggling to do so with linked/associated resources due to lack of available association variables. When any of these callbacks are fired:
:create_has_many_link
:replace_has_many_links
:create_has_one_link
:replace_has_one_link
:remove_has_many_link
:remove_has_one_link

it does not seem any variables for the link/association can be accessed.
For example, say I was trying to associate a Comment with a User on a CommentResource. In the before create_has_one_link callbacks there are no available variables that include which User is being set. But I can access the Comment on the @model.
Is this the expected behaviour or am I missing something?

It is expected behavior. I'm not sure how to pass variables into the callbacks (we're using ActiveSupport::Callbacks).
You could use the callbacks on the OperationsProcessor and intercept the @opperation variable.

Thanks. I started overriding attr assignment methods in the resource to perform the authorization. @brettchalupa has an interesting solution in his PR.
What is the best way to build callbacks on OperationsProcessor? I can't find a natural point in our app to add them.

I'm looking at @brettchalupa solution now. Using the around_replace_fields callback might give you what you want.
To add callbacks on the OperationsProcessor you will need to create a custom OperationsProcessor derived from the JSONAPI::ActiveRecordOperationsProcessor (or the base one if not using AR). You will then need to override the create_operations_processor method on your controller:
    def create_operations_processor
#      JSONAPI::ActiveRecordOperationsProcessor.new
      CustomActiveRecordOperationsProcessor.new
    end

We should get that into the docs. Sorry for the omission.

No worries, thanks for the details.

@john-griffin This was closed when I merged #187. Feel free to reopen if needed.


LSTM implementation 2 - dropout mask question

Hi,
I was wondering why at line 1039 in layers/recurrent.py, the dropout mask of the LSTM seems to be added only if implementation is 0
if self.implementation == 0 and 0 < self.dropout < 1:
  ...
else:
  constants.append([K.cast_to_floatx(1.) for _ in range(4)])

After checking, the value of dp_mask[0]at line 1076 is a numpy array whose value is 1.0,
while rec_dp_mask[0]at line 1077 is a tensor
Is it what is expected ?
Thank you,
Charles

Everything is correct here, the dropout is applied in the preprocess_input method


test(plugin-copm-fabric): automate infrastructure setup: copm-pledge-claim

Description
If you run
yarn test:jest:all packages/cacti-plugin-copm-fabric/src/test/typescript/integration/test-copm-pledge-claim.test.ts
it crashes because the test case does not conform to the standard pattern of setting up and tearing down it's own infrastructure.
Relevant discussion:
https://github.com/hyperledger/cacti/pull/3546#discussion_r1767159853
Acceptance Criteria

Test is still passing.
There is only a single command needed to run the test.

This is blocked by the build discrepancy between the weaver and cactus systems for the weaver-fabric-sdk package and the direct reference in the sdk index to files in the build directory.  The impact is that jest will not start before the package is built using the weaver tsc settings which build to the build directory.
An attempt to work around this in the jest configuration caused subtle problems in the tests.
Incomplete work on this issue is here: https://github.com/jenniferlianne/cacti/tree/copm_one_step_build_and_test
and here: https://github.com/jenniferlianne/cacti/tree/copm_one_step_build_and_test_nov25

The answer may lie in porting the Weaver interoperation-node-sdk to be a Cacti package, which is one of the goals we seek to achieve. The COPM modules started the process of porting Weaver functionality, but that process will end only by porting all the other packages (relay, drivers, sdks), and once that is done, we won't need to have exceptions in the build process. Intermediate stages, where some packages are built and maintained in the Cactus way and others the legacy Weaver way, are going to be challenging.


Should treat "1.N" as false on 1.N nightly?

https://github.com/time-rs/time/issues/281#issuecomment-700984191

I'm ok if change the implementation to treat const_fn("1.N") as false on 1.N-nightly (I don't have a very strong opinion), but I've never actually seen a crate using a build script based on that logic. (In any case, once cfg-version is stable, I'll change behavior to follow its specifications.)

See also https://github.com/rust-lang/rust/issues/64796#issuecomment-625474439, https://github.com/rust-lang/rust/issues/64796#issuecomment-634546711, and https://github.com/rust-lang/rust/issues/64796#issuecomment-640804196.
cc @jhpratt

I didn't adopt this in #17 because most of the existing crates (e.g., rustversion) adopted the same behavior as the current one. (And if the user needs behavior that is different from the current behavior, could use const_fn(cfg) + build script.)

Stabilization report of cfg_version (https://github.com/rust-lang/rust/issues/64796#issuecomment-799847092) says:

version on the nightly channel
In the post-RFC discussion there has been a conversation about which version the nightly compiler should use as its supported version. Unlike beta or stable compilers, nightly compilers can still gain new features, and un-stabilizations are possible. So technically it's possible that newer code can rely on a feature that someone's pinned or not updated nightly does not support yet. On the other hand, during the stabilized-in-nightly phase, features often attain their largest extent of exposure before being shipped as part of a stable release.
The proposed compromise is to treat as a nightly's version as complete, but to add the -Z assume-incomplete-release flag added by rust-lang/rust#81468 . Users who pin their nightlies can enable it to back-date the supported version to the prior release. Intent is to keep it perma-unstable as it targets nightly users only. As this question only affects nightly compilers, the decision can also be revisited in the future.

I want to provide API that matches cfg_version, so:

assume that nightly is complete by default. This is the same as the current behavior.
if -Z assume-incomplete-release flag is specified, detect it from RUSTFLAGS by build script and assume that nightly is incomplete.


Notifications Service

This PR adds the notification service to Reva. It is to be reviewed after the serverless services one.
Due to the size, it is divided in multiple commits which add separate stuff:

Notifications service.
Add notification helper to some ownCloud services used by web.
Add notifications when uploading files to a uploader public link.
Add notifications when creating a share.
Remove old mailer service.

This requires changes in the DB, which are detailed in this file.

Opening a new PR upstream!


When artifacts uploaded to APT repo, deb files storing without extension.

How to generate Release file?
dpkg-scanpackages . /dev/null | tee Packages | gzip > Packages.gz
apt-ftparchive release . > Release
dpkg-scanpackages . /dev/null | tee Packages | gzip > Packages.gz - scans all files with deb extension.
Currently, command dpkg-scanpackages can't find deb files, because gorjun omit extensions,so it can't find files with deb extension.
So for dpkg-scanpackages it's needed to provide file with extension deb in file system.
Also there "old" files , this means they uploaded before, need find way add deb extension to "old" files

I don't have access to server to check this issue.


[Bug] chromium browser poor playback performance with multiframe DCM

Describe the Bug
I'm playing back a stack of images that are all different frames of the same dicom media file. In the .then() of the promise setstack returns, I run the .playclip() method. In Chrome, this results in really poor performance as it takes several playthroughs of the dicom file before I get looped playback with no stutter/pauses. I'm only encountering this on chromium browsers (chrome and edge). Firefox is good.
Steps to Reproduce

Load multiframe dicom multiframe file with cornerstoneDICOMImageLoader.wadouri.dataSetCacheManager
Create an array of strings, one for each frame of the dicom file, and pass it as your argument to viewport.setStack()
within the .then(), run csToolsUtilities.cine.playClip, with the viewport element as the first argument, and the dicom medias framerate and autoloop: true as the second argument.

The current behavior
I've recorded a video demonstrating the playback in chromium browsers
https://github.com/cornerstonejs/cornerstone3D/assets/27774340/ebc6b5c8-4b83-4bb4-807f-7722f8c8e454
The expected behavior
This is the same file on firefox, its a little slow on the first playback but is immediately resolved.
https://github.com/cornerstonejs/cornerstone3D/assets/27774340/6a0b417d-1c6b-48bf-a141-2cd3b00e9d36
OS
Windows 11
Node version
16.17.1
Browser
Chrome Version 119.0.6045.200

The performance improvement with stackContextPrefetch prefetch is like night and day. Thanks for the sugggestion.


No support for WSL

Attempting to sync assets locally will yield the error Your platform is not currently supported when executing in a WSL environment.

You can access the Windows file system from within WSL via /windir/c/... where c is the drive name, from there the path is just like normal. A fairly simple fix could be using that path if Linux is detected.

Ok I found where this error is coming from, it's within roblox-install. I'll send a PR to implemented this feature: https://github.com/Kampfkarren/roblox-install/issues/26
Once that gets in, I'll update the dependency and that should resolve your problem 🙂


.Net API Browser

In the .Net API Browser, it would be helpful in resolving NuGet screwups if the docs show the assembly containing the namespace/API

⚠ Idea migrated from UserVoice
Created By: Anonymous
Created On: 2017/11/23 10:43:23 +0000
Votes at Migration: 1
Supporters at Migration: 1

Duplicate of #72


[0.19] Backports from upstream

various backports from upstream/release-0.19 branch

/refresh

see if the CI cfg was now sync'ed ...

/refresh
/test all

/test all

/close

/reopen

/lgtm
/approve

/retest
On Thu 10. Dec 2020 at 11:34, OpenShift Merge Robot <
<EMAIL_ADDRESS>wrote:

@matzew https://github.com/matzew: The following test failed, say
/retest to rerun all failed tests:
Test name Commit Details Rerun command
ci/prow/46-e2e-aws-ocp-46 087679e
https://github.com/openshift-knative/eventing-kafka/commit/087679eed777ed19fd62f4313b7d4a4bdafa3aa9
link
https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift-knative_eventing-kafka/2/pull-ci-openshift-knative-eventing-kafka-release-v0.19.1-46-e2e-aws-ocp-46/1336965559073378304 /test
46-e2e-aws-ocp-46
Full PR test history
https://prow.ci.openshift.org/pr-history?org=openshift-knative&repo=eventing-kafka&pr=2.
Your PR dashboard
https://prow.ci.openshift.org/pr?query=is:pr+state:open+author:matzew.
Instructions for interacting with me using PR comments are available here
https://git.k8s.io/community/contributors/guide/pull-requests.md. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
https://github.com/kubernetes/test-infra/issues/new?title=Prow issue:
repository. I understand the commands that are listed here
https://go.k8s.io/bot-commands.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openshift-knative/eventing-kafka/pull/2#issuecomment-742434852,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABGPTTJE6U7T6VXVBGJXZTSUCP33ANCNFSM4UTSKQKQ
.

--
Sent from Gmail Mobile

/retest
On Thu 10. Dec 2020 at 12:48, OpenShift Merge Robot <
<EMAIL_ADDRESS>wrote:

@matzew https://github.com/matzew: The following test failed, say
/retest to rerun all failed tests:
Test name Commit Details Rerun command
ci/prow/46-e2e-aws-ocp-46 087679e
https://github.com/openshift-knative/eventing-kafka/commit/087679eed777ed19fd62f4313b7d4a4bdafa3aa9
link
https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift-knative_eventing-kafka/2/pull-ci-openshift-knative-eventing-kafka-release-v0.19.1-46-e2e-aws-ocp-46/1336986869069516800 /test
46-e2e-aws-ocp-46
Full PR test history
https://prow.ci.openshift.org/pr-history?org=openshift-knative&repo=eventing-kafka&pr=2.
Your PR dashboard
https://prow.ci.openshift.org/pr?query=is:pr+state:open+author:matzew.
Instructions for interacting with me using PR comments are available here
https://git.k8s.io/community/contributors/guide/pull-requests.md. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
https://github.com/kubernetes/test-infra/issues/new?title=Prow issue:
repository. I understand the commands that are listed here
https://go.k8s.io/bot-commands.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/openshift-knative/eventing-kafka/pull/2#issuecomment-742471925,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABGPTRA3ZTHGNRYOXBTA6DSUCYQFANCNFSM4UTSKQKQ
.

--
Sent from Gmail Mobile

/retest


Undefined index: enabled_mentions Profile.subs.php

ElkArte 1.1
Current version: 1.0.4 bug fix update
MySQL version: 5.6.16
PHP: 5.5.11
The error appears, if a user sets his Notifications.
Notice: Undefined index: enabled_mentions in C:\xampp\htdocs\elk11\sources\subs\Profile.subs.php on line 3326

When I go to enable all Core Features , the error no longer appears. Before I saw the error message, all Core Features were disabled.

The bug here is that the code is not supposed to be run.
$context['mention_types'] = getMemberNotificationsProfile($this->_memID);

should not be called if notifications are not enabled and also the piece of template is not supposed to be rendered.
Tomorrow I'll have a look.
Thanks for the catch!


Good practice for accessing parent controller properties

Using the controllerAs syntax, what is a good practice to access/modify simple properties of a parent controller? Please see the example below. I do not like accessing them via $scope.$parent.parent. How do you guys go about similar situations without creating a service for such a trivial logic.

    Some simple message.

app.controller('Parent', function () {
    var self = this;
    self.showMessage = true;
});

app.controller('ChildOne', function ($scope) {
    var self = this;
    self.foo = 'bar';
    // Some simple logic.
    if (self.foo === 'bar') {
        $scope.$parent.parent.showMessage = false;
    }
});

Can you give a real example? I can only think of situations where the parent already know the object the child controllers will use/modify, and that you give that object to the child controllers through data-ng-model. If you do this, the parent controller can access the object. This way, your controllers don't need to know each other, or each others' scope.
Or are you doing something different than what I think it is?

@dietergeerts thanks for your input. In your example, passing a primitive value down to a child using ng-model does not have any affect when the child modifies that value.
I basically need to show the first div if some simple logic is true in the child.
(ChildOne is attached to a route, so I can't just stick the first div in the child)

@Bekt, it does can have that effect, as data-ng-if could be ="parent.object.property == 'some_value'", of course depending on what the logic is and how complicated that logic needs to be.
If they are set through routes with ui-router, and they are child routes, then they both can use the object.
Generally, it's a very bad idea to have to ask the parent for something, as that means that the controller isn't self-contained, which they need to be. There usually is a far better way to do such 'communication'. That's why I was asking for the actual situation you have, as there could be better ways to do what you want.

i like to keep things decoupled. BUT there are few absolutes ... in general my directives, my controllers, my services ... I like them to be self contained and if they need external aspects, I inject them or bind them. I don't like to rely on something to be used in a specific context. Make sense?

I would solve this uisng a diretive to encapsulate the child controller, like this:

    Some simple message.

app.controller('Parent', function () {
    var self = this;
    self.showMessage = true;
});

app.directive('childOne', function() {
    return {
        controllerAs: 'childOne',
        controller: function($scope, $attrs) {
            var parent = $scope.$eval($attrs.parent);

            var self = this;
            self.foo = 'bar';
            // Some simple logic.
            if (self.foo === 'bar') {
                parent.showMessage = false;
            }
        }
    };
});

Using a more component-oriented approach:

      <my-directive on-foo-eq-bar="vm.updateMessage(msg)"></my-directive>

@dbabaioff  @leandrocosta: thanks, interesting suggestions.
I ended up going with $on on the parent and $broadcast on the children.

good conversation, but nothing to add here to the guide, IMO

:+1:

You can check if the property exists and then assign the value as shown below..
if ($scope.$parent.showMessage){
var parent = $scope.$parent;
while(!parent.hasOwnProperty('showMessage ')){
parent = parent['$parent'];
}
parent.showMessage = false;
}

Sorry to necro this, but just in case anyone else lands here, my solution would be to convert the child controller directly to a component, then bind an update function from the parent to the child, as follows:

    Some simple message.

  <child-one update-parent="parent.showMessage = value"></child-one>

app.controller('Parent', function () {
    var self = this;
    self.showMessage = true;
});

app.component('childOne', /* component def stuff including updateParent: '&' in bindings */);

function childOneController() {
    var self = this;
    self.foo = 'bar';
    // Some simple logic.
    if (self.foo === 'bar') {
        self.updateParent({value: false});
    }
});


example_gan.py TypeError

Hello,
Sorry to bother, I'm fairly new to Keras and everything. I'm trying to set up two adversarial neural networks, and your lib seems very interesting to me. I cloned the repository and installation went successfully. But I tried to launch example_gan.py, and I got an error. I don't understand enough yet to be able to solve it by myself...
I'm using Spyder 2.3.9, with Python 3.5, TensorFlow : 1.1.0, Keras : 2.0.4
The error is : "TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64"
PasteBin of the full Traceback : https://pastebin.com/0BaAcuQa
Any kind of help is appreciated :) !

Issue with python 3. division is an int in python 2 but float in python 3. Dense(hidden_dim/2) should be Dense(int(hidden_dim/2)). Just add an int cast to the line that is failing.
See PR https://github.com/bstriner/keras-adversarial/pull/23
example_gan is fixed but the other examples probably have the same problem.
Cheers

Thank you very much for fixing this !
I'm sorry to have not seen the PR related...
A tiny thing I changed myself, you might want to know about this :
line 110 : example_gan(AdversarialOptimizerSimultaneous(), "output/gan"),
I just changed "output/gan" to os.path.join("output", "gan"), since on Windows it was a problem.
I know it's not really important, I just wanted to help.
Anyway, thank you for all this work !


Request Object getRequestTarget

In RC2 - RC1
//URL http://localhost/video-site/public/test

$app->get('/test', function ($req, $res, $args = []) {
   print $req->getRequestTarget();
});

Acutal: /video-site/publictest
Expected: /video-site/public/test

You should have gotten a 404 error. Since your URI path of /video-site/public/test isn't a registered route.
Your code registers a get path of '/test' not '/video-site'
$app->get('/test', function ($req, $res, $args = []) {
   print $req->getRequestTarget();
});

Only routes that start with /test would be captured with the getRequestTarget() logic.

@geggleto most likely has Slim installed in /video-site/public/ folder. Looking at the code cause is similar as with issue #1554. $this->uri->getPath() returns path without leading slash in subfolder, so I guess $this->uri->getBasePath() returns rest of the path without trailing slash?

@tuupola  yeah I have it installed to that directory :) The getBasePath does return the correct path however I was trying to decouple away from Slim's non PSR-7 methods.

A possible solution might be simply inspecting the REQUEST_URI attribute of the server envrionment.
$req->getServerParams()['REQUEST_URI']

I can reproduce this.
I think the correct fix is to ensure that the basePath always ends with a slash if it's not empty.

Fixed in #1633


Merger and Ringdown stage of the gravitational wave?

I am new to holodeck, so I am sorry if I ask a naive question.
It sames that holodeck.utils.gw_strain_source do not consider the contribution of Merger and Ringdown stage of GW, only the inspiral stage, right?
If so, is there any plan to add the contribution of Merger and Ringdown ?
Thank you very much.

Hi @yanyuechuixue, you're correct - this function is just the instantaneous GW strain, and it is usually used in a form of the GWB calculation that assumes it's the slow inspiral regime.  This is usually expected to be appropriate for pulsar timing array signals.
We would like to include merger and ringdown waveforms (e.g. for LISA calculations), but there isn't currently anyone working on adding them specifically.  There is a possibility of utilizing an external library like BOWIE.

Thank you very much!


how can i use it?

how can i use it in vue?

Hi @luohao777 you can follow the installation process in this Demo page.


column menu open and then click in code cell #3487

thanks that fixes the problem with clicking on code, but there are still some issues with how the column menus open and close:

if you open the table menu, and then open a column menu, the table menu stays open.  it should close.
if you open a column menu, and then click on another column menu, the first one closes which is good.  but the 2nd one should open too.
if you open a column menu and then click on the table to select a row, the menu should close.

fixed

:+1:


Publish to package control?

Hi,
It would be great to have this on package control for easier installation 👍

Awesome, thanks!


FR: Select single fields from substring search or split results

I would like to be able to split a string and select one of the fields. The SPLIT function returns a JSON array, so I can't use that directly. There is a SUBSTRING function, but there does not appear to be any way to find the offset of a partition (what MySQL calls LOCATE  or POSITION).
One way to address this would be to give SPLIT an optional third parameter, so that
mysql> SELECT SPLIT('a,b,c', ',');
'["a","b","c"]'
mysql> SELECT SPLIT('a,b,c', ',', 2);
'b'

Another would be to add a LOCATE (or FIND or POSITION or INDEX) function to find the offset of a subfield, e.g.,
mysql> SELECT LOCATE('a,b,c', ',');
2
mysql> SELECT SUBSTRING('a,b,c', 0, LOCATE('a,b,c', ',') - 1);
'a'

The first is probably better, since LOCATE would probably want a "skip" parameter anyway to specify which of the matches to stop on. But the second would also work.

We could implement SUBSTRING_INDEX, which is supported both in MySQL and Spark SQL.
It would be:
mysql > SELECT SUBSTRING_INDEX('a,b,c', ',', 1);
'a'

For second part, it's a quite verbose but still possible:
mysql > SELECT SUBSTRING_INDEX(SUBSTRING_INDEX('a,b,c', ',', 2), ',', -1);
'b'

@creachadair Right now you can use JSON_EXTRACT to get the value of a specific position:
mysql> select JSON_EXTRACT(split("a,b,c",","), "$[0]");
+-------------------------------------------+
| JSON_EXTRACT(split("a,b,c", ","), "$[0]") |
+-------------------------------------------+
| "a"                                       |
+-------------------------------------------+
1 row in set (0.01 sec)

@ajnavarro Since we have JSON_EXTRACT, I see no urgency to implement SUBSTRING_INDEX, but we should still consider it when it comes to align a subset of functions between gitbase and Spark SQL. That is, those functions we want to be able to push down from Spark SQL.

I have run into another case where JSON_EXTRACT can be a little limiting. Suppose I would like to identify branch points, that is to say, commits that have multiple children. This is not that interesting in a single repo, but is a useful basis for finding places where forks happened and diverged across multiple repos.
The obvious way to do this is to do an autojoin on commits, but commit_parents is multi-valued. You can filter by length with ARRAY_LENGTH, but JSON_EXTRACT projects the literal string value including its quotes, so you can't join on it without doing extra string surgery.
I could write a program, but it seems unfortunate that we don't have a good way to get properly-typed values out of these denormalized fields. Arguably this is better solved with a schema change, but that's probably a lot more work (and maybe not worth it—this problem is mostly a demonstration case for me, not a blocking work item).
Anyway, just another datum on that while I'm working with it.

maybe implementing JSON inline selectors: https://dev.mysql.com/doc/refman/8.0/en/json-search-functions.html#operator_json-inline-path or just JSON_UNQUOTE at the beginning we can fix that problem and many others.


Error decoding JSR

I am experiencing what I believe is a bug in 65C02-Tool, because I tried to find the cause of the issue in everything else around the tool (details later), but did not come out with any solution.
It looks like the monitor prints a wrong value for the JSR address - SOMETIMES... but, given the same source code, always (as far as I could see) at the same point.
 It prints "ABCDEFGHIJKLMNOP" on the LCD and then it shifts all characters one position to the left, WITHOUT using LCD functions, and the first character is moved to the 16th position and so on. I know, I know it is not optimized... it could seem a little bit "childish"... I am just re-learning to code and I need to see things done in my own code before I can get those same things done in HW 😀.
In the attached XLS, please see sheet "Two runs from Nectivio monitor". These are two runs, SAME code, except that in the code on the right I did not remove the source code that I did not use and used instead a couple of JMP to jump over the routines that I did not use, hence the addresses for later subroutines changed, but the code run is the same. Proof is that you can compare the two runs and you will the see the same opcode both on the left and right side.
Anyway let's call the two source codes "Left" and "Right".
Filter by "JSR" in Column H and you will see in columns J and X the different behavior: at the beginning of the code, there are less BAD behavior rows in the Left code.
I tried to find some "pattern" in the behavior by correlating previous and next instructions and also checking if a JSR was the previous operation... I tried to see if the wrong behavior was maybe caused from a specific, previous calling JSR... it's not. I can't find any pattern.
Then look at "Nectivio Mon different ROMs" sheet. I placed the SAME "Left" source code in 4 different ROM addresses (and also one run of Right source code). Interestingly enough, the same "Left" source code, when run in different ROM locations, always results in the same wrong or good JSR behavior at the same point. See for yourself by filtering by "JSR" in column F and check results in H, P, X, AF columns. I hope you have a large 34", 16:9 display 😂😂😂.

The issue only happens with a JSR instruction. When I found the issue, I blamed something wrong into my RAM / ROM / bus timing. You could easily argue that JSR is one of the few occasions that a write to RAM is made (stack), but in my code I also use PHA and PLA and I have never found an issue with PHA. Also I use RAM address $55 in zero page as a temporary store - also here no issues when writing / recovering data.
I also tried to relocate the program in different parts of the ROM; same issue.
Even though the monitor shows wrong JSR address, the code runs fine. The location address shown in the monitor for the "called" instruction after the JSR is correct.
I was worried of some HW issues, because one day I optimized the cabling of the breadboard and I found that I did not reconnect the ground pin of the RAM chip and actually connected A13 pin to ground. More or less in the same days I started to notice the wrong behavior and I thought "mmmhhh this must be because I fried the RAM chip"; actually the circuit never stopped working and always run the code without a glitch. Also, I cannot exclude the "bug" was there before, maybe it just went unnoticed on my side.
Frequency is not an issue: same behavior at 1 Hz or 500 Hz.
The code runs smooth (but I cannot monitor it 😉) also at quite high frequencies (1,000's, 10,000's or even 100,000's of Hz). I can understand it's fine by the output on the LCD.

Interestingly enough, only the HI byte of the JSR address is wrong. The LO byte is NEVER wrong.
A few days ago, I decided also to build to Ben's 8-bit computer and I ordered the kits.
Along that, I decided to order also a couple of spare RAM, ROM, 6522, CPU chips. Just to be on the safe side. When they arrived (from Jameco; less than 48 hours shipping from California to delivery to Italy) I exchanged all the chips on the breadboards (except the 74HC00 that I forgot to order). No change in the behavior.
So I decided (groan) to remove all the cabling and rebuild from scratch (except the clock module). I did that this week... still no change in the wrong behavior (2x groan).
I also had a new Arduino Mega; I suspected the one I had could be faulty. No improvements on that side.
Finally, testing with another monitor (See "Import from Wes Tool" sheet) shows that Wes tool does not show wrong behavior.
After all this troubleshooting, I believe there could be something wrong in the 65C02 tool.
If you think it could help you to better understand my messy explanation and you need to collect more details / get more clarifications, I am available for a Zoom / Teams call, whatever :-). It would be a pleasure.
Andrea
JSR Issue.xlsx

I don't believe this is an issue that can be resolved with changes to the software.
In this line:
* 800f r 20 b0 41 JSR $41b0

The tool watched as the CPU read 3 bytes starting at address $800f
20 -> Which is the opcode for JSR a with the address specified in the next 2 bytes:
b0 -> The LSB of the address to jump to
41 -> The MSB of the address to jump to
That last byte was 0x82 in ram, which is what the CPU saw on the bus because that's the address it jumps to 4 clock cycles later, but the tool read that byte as 0x41 for some reason I can't explain.
The tool then "correctly" decoded the three bytes it saw as JSR $41b0
The CPU then pushes the last address of the current instruction onto the stack:
  01ff W 80
  01fe W 11

The CPU then has one 'unused' cycle, where it's not actually reading the bus, but still has the address of the last byte it read on the address bus, (mainly because that was the address still in the program counter register when it pushed the address to the stack), and r/W is high because it's not writing anymore so the tool monitors that as a bus read:
  8011 r 82

While the CPU ignores this read... it's interesting in that, out of coincidence, it happened to be reading the one byte the tool got wrong while reading the opcode a few clock cycles earlier... and this time the tool gets the correct value here (0x82) for the high byte of the address.
So we know from this that your 6502 computer itself is working correctly and the ROM did have the correct address in memory. And in every case I investigated, the tool is correctly decoding the opcodes it's seeing on the bus.
But for some reason, when the CPU reads the second byte/high byte of a JSR a address, the Arduino is seeing something different on the data bus than the CPU is.
I don't think this is a timing issue. Looking at the timing diagram for the 65c02 microprocessor and the AT28C256. The CPU will setup the address bus for a read at least 10 ns before the clock goes high and hold that address until the clock goes low again. Even a very slow EEPROM should put valid data on the data bus within 350 ns of the address being valid which is at least 10 ns before the clock goes high and the tool starts reading the buses. The tool reads the address bus before the data bus, which requires at least 4 µs (i.e. 4000 ns) so the data on the data bus should be valid at the point the tool starts to read it even if you're using a very slow EEPROM.
Wes's tool doesn't output which address the Arduino sees on the data bus on the next two clock cycles immediately following the 0x20 byte for a JSR a instruction. It may also be reading an incorrect address there. It does confirm that the 65c02 at least read the correct instruction because it sees it jump to the correct address a few clock cycles later. Which is of course consistent with what this tool already told us, and is confirmed by the program actually outputting the correct data to the LCD.
My only theory is that this is a transient voltage drop issue. While the processor is reading the last byte of the address to jump to, it's also preparing to push the current address onto the stack as a write in the next clock cycle and pulling a fair bit of current at that exact moment. I suspect that is causing a small voltage drop system wide, and the EEPROM isn't quite driving the data bus high enough for the Arduino to register it as a high input on some of the data bits, but it's still high enough for the 65c02 to read it.
Make sure that you have several 0.1 uF bypass capacitors on your board. At least one on each power rail and preferably one right next to the 65c02 and AT28C256 chips as close as possible to the chip as you can get it.
You can also try some different power supplies for your 65c02 board and Arduino to see if that resolves the issue.
Also double check that you have a common GND connected between your board and the Arduino... you'd be surprised how often that's missed, yet the tool will still (mostly) work.

OK, I see my mistake now... I had incorrectly assumed that when reading an opcode... the CPU reads the entire operand before starting to execute it.  For most instructions, that is indeed how it works, because the CPU needs to load the operand before it can do anything.
JSR is an exception however.
When the CPU is jumping to a subroutine, it can (and does) push the return address onto the stack before it finishes reading the address it's going to jump to.
In this sequence:
* 800f r 20 b0 41 JSR $41b0
  01ff W 80
  01fe W 11
  8011 r 82

The third byte in the first line, that it read as (0x41) wasn't read at address 0x8011, it was read at address 0x01ff.  It doesn't read the byte at 0x8011 until the 5th clock cycle after it read the JSR instruction.
I will make an update to the ISR subroutine to correct the bug.

Thank you so much... I hope I did not ruin your Sunday because of the issue I reported... I really thank you from the deep of my heart for your passion and help; reading your answers (that I understood let's say about 90%) is great school for me. I hope one day I will be able to give back.
This is terrific value to learn: "When the CPU is jumping to a subroutine, it can (and does) push the return address onto the stack before it finishes reading the address it's going to jump to."
I hope you appreciate my sincere feedbacks for your invaluable tool, it helped A LOT in the building, understanding and continued usage of Ben's 6502 computer - and also be merciful to me for my less than perfect English and misuses / wrong usage of words.
Andrea

Issue resolved in v1.3.1

I have corrected my monitor ISR.
The sequence from above should now look like this:
* 800f r 20 b0
  01ff r 41
  01ff W 80
  01fe W 11
  8011 r 82        JSR $41b0

Showing the correct sequence of reads and writes, and also not showing the decoded instruction until the 5 clock cycles after we read the 0x20 byte since it's not until then that the full operand has been read.


Regenerate errorreporting client

This PR was generated using Autosynth. :rainbow:
Here's the log from Synthtool:
synthtool > Executing /tmpfs/src/git/autosynth/working_repo/google-cloud-clients/google-cloud-errorreporting/synth.py.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
latest: Pulling from googleapis/artman
Digest: sha256:6929f343c400122d85818195b18613330a12a014bffc1e08499550d40571479d
Status: Image is up to date for googleapis/artman:latest
synthtool > Cloning googleapis.
synthtool > Running generator for google/devtools/clouderrorreporting/artman_errorreporting.yaml.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java.
synthtool > Running java formatter on 29 files
synthtool > Running java formatter on 3 files
synthtool > Running java formatter on 52 files
synthtool > Cleaned up 0 temporary directories.
synthtool > Wrote metadata to synth.metadata.

Combined into a single pull request #6022


Fix #395 Fix HTTP header values for pull and push replication

By missing "Accept-Encoding" request header for some requests, Sync Gateway sent uncompressed data to client. Fixed that issue. And also added User-Agent header.
Test:

Passed existing all unit test cases
Passed performance test tools
Passed manual testing with using ToDo Lite Sample

Note: No specific unit test case for this.

@tleyden if you have time, please review. Otherwise, could you please reassign to @pasin


Why with Alpine.js Support only some alpinejs methods are supported?

Hello,
I work in PhpStorm 2020.1 with Laravel 8 Alpinejs 2.8 app and I have installed Alpine.js Support, v0.2.1
and I see that alpine is supported only partlty. Say from the 3 methods declared and referenced below:

             ...
                id ?? '' }}')" class="mr-5">
                    <x-icon-svg :icon="'refresh'" title="Refresh"></x-icon-svg>

             ...

@endsection

@section('scripts')


[RFC] provide a way to override the core loaders as objects

Is your feature request related to a problem? Please describe.
currently the core loaders that get called for all the settings files
are configured by a select/deselect list of strings
this makes configuring loaders tricky
my personal use case is wanting to reconfigure the yaml loader (#611) and adding a overrides loader (#610)
Describe the solution you'd like
settings = Settings(CORE_LOADERS_FOR_DYNACONF=[custom_yaml_loader])

Describe alternatives you've considered
monkeypatching, its terrifying

This is easy to fix,
We can change the hardcoded loaders = {} on the loaders/__init__ with a call to obj.get_core_loaders inside that method we look for the CORE_LOADERS value.


Automatically choose # of PCs to use in germline

just as we use Jollife's rule for somatic calls

Closed by PR #390.


Remove check for classes in udf and change tests accordingly

as stated in the PR before the udfs now also work on locally defined classes - however the decoding of such classes (i.e. in collect) still won't work.
It should be checked if #40 is still relevant (also note that it would be better to use spark at least 3.4.1 - see change in README.md)

@vincenzobaz -> merge it? :-)


reqwest: avoid cloning a request's body unnecessarily

There is already a String containing the body that is being consumed
in this function, so rather than cloning a body String that will be
deallocated, just move the String into reqwest.

Codecov Report

Merging #40 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #40   +/-   ##
=======================================
  Coverage   96.24%   96.24%
=======================================
  Files          11       11
  Lines         825      825
=======================================
  Hits          794      794
  Misses         31       31

Continue to review full report at Codecov.

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

bors r+


Change installation method to use chefdk

For those using chefdk, its best to use the chef gem paths
chef gem install knife-push

knife-push is included with Chef DK. Closing this.


Fixed error in font texture pointer assignment

All images now work; before, they were forced to use the font texture.

Thanks!


Added link to meeting calendar.

cc @jakirkham

Ah ok. So today was a one off adjustment. Good to know.
Also change looks good. Thanks for adding the note.
On a different point, how are we tracking meeting notes? I know I got today's, but where do we keep them for posterity?

That document has notes for all of time.  I believe that there is a link to the document in this same doc page.

Yep, the doc is linked and the history is there. Sorry, missed them before. Have subscribed to the calendar too.

Don't want to overstep, but is this ok to merge?

Not sure that this is overstepping :)
On Thu, Mar 1, 2018 at 2:36 PM, jakirkham<EMAIL_ADDRESS>wrote:

Don't want to overstep, but is this ok to merge?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/pull/3233#issuecomment-369705277, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AASszIdNl88EF9q-aBWIfvJJBkcyWCQDks5taE2hgaJpZM4SYscm
.

Ok, merged. Thanks all. :)


While selecting multiple objects in m2m field it  duplicates main object

I have a simple object called Poll
class Poll(models.Model):     name = models.CharField(u"asd", max_length=255)     allowed_groups = models.ManyToManyField(Group, blank=True)
and when i use django nested inline it creates two polls when i select 2 or more objects in allowed_groups field, it work when i remove NestedModelAdmin.

my mistake


Homepage & Getting Started UI Fixes

The following are minor fixes to be done:
Homepage:

[x] “Create an NFT” card seems not have the same hover state as “Crypto Dappy Course” card.
[ ] The external link arrow doesn’t look in the same position as the other arrows - maybe pushed down and centered a bit more?
[x] Hide the 'stars' and 'author' section for now in the tools

Getting Started:

[ ] Remove the external link upward pointing arrow on the “Cadence” card in “Core Concepts”
[ ] Hide “view all SDKs” button
[x] Hover state over buttons (ie. main CTA button at the top) need some smoother animation

Both pages:

[x] Hide email/newsletter component

Just a few items I might need a bit of clarification on:

The external link arrow doesn’t look in the same position as the other arrows - maybe pushed down and centered a bit more?

The external icon and right-chevron icons are aligned in the same way (aligned with the title of the list item) do we want to change all the icons here to align vertically in the list item?

Remove the external link upward pointing arrow on the “Cadence” card in “Core Concepts”

For the "core Concepts" section do we want to remove the external link icon totally, even for links that are external or because the cadence page we want to link to is going to be internal to the site?

It feels like the arrow should be moved down a little and to the left maybe to make it more uniform - even if it is centered, we might want to artificially offset it a little to see if it can be visually more appealing.
For now, yes because it'll eventually be an internal link.

I removed the stars and author from the "Tools" section from the Home page but what about the "SDK" cards in the getting started page? They are basically the same component


Update README.md

As the panic button is disabled atm and confuses many users it shouldn't be in the read.me

@all-contributors please add @MasaiasuOse for doc^


Slight change on server.properties documentation

I didn't find any java.net.InetAddress.getCanonicalHostName() usage in the code.
But I find java.net.InetAddress.getLocalHost.getCanonicalHostName in  https://github.com/apache/kafka/blob/4b29487fa9d3d4ff8adaaaa6204db796eccd3a68/core/src/main/scala/kafka/server/KafkaServer.scala.
So, if the internal kafka use the localhost value, I think I should change the documentation to appropriate value.
I dont think that I changed anything, therefore, no need to change any test.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

One question.
How to check failed test ?

Changes look good to me.
To check on failed tests you can follow the "Details" link from the build state and then have a look at the console output. It's not comfortable, but the only way I know of doing this.
In this case I'd say you can be sure that you didn't cause that failure and it was just one of the flaky tests acting up.

@soenkeliebau how to fix this flaky test?
Should I re-run the jenkins ?

You can do that, yes. A simple "retest this please" comment should trigger that (might be happening based on my comment already, not sure).
In this case, I'd personally be happy to say its unrelated and leave it, but whoever merges this, in the end, will have to decide that.

Ah thanks you, it's rebuilt already.

I've looked at the failed tests briefly, one of them is testThrottledProducerConsumer for which there is a jira about it being flaky - so you can disregard that.
The other one is shouldAddInternalTopicConfigForRepartitionTopics for which I can't find a ticket at first glance, but this one fails in both builds, so its at least consistent :)
That test has failed in the builds before yours as well, so I'd say not your fault either.


Common interface for sorting algorithms

Inspired by scikit-learn:
Spike detection
# We launch the spike detection.
# This will automatically use multiple CPUs if
# multiple engines have been launched with IPython.parallel.
# This call is asynchronous: the user can continue to work in the notebook,
# and request the task's status.
phy.spikedetect.run(model, algorithm="spikedetekt", ipp_view=c.load_balanced_view())

# Launch clustering.
phy.cluster.run(model, algorithm="klustakwik2", ipp_view=c.load_balanced_view())

Subset of #212


Some small improvements

Motivation:
Some small improvements
Modification:
1.The minimum or the maximum of two numbers can be calculated by means of Math.max() or Math.min() instead of doing it manually.
2.Simplify the judgment of size
3.When the collection is initialized, specify the initial value of the collection.
Result:
The code is more efficient than the original implementation

Thanks a lot @skyguard1

@NiteshKant It is my pleasure

@NiteshKant  Could you please re-run ci build? Thanks

@skyguard1 Try rebasing.


Backing up String key and Avro Value to Azure blob storage

I am trying to implement a backup(using secor) and restore(kafka producers) feature for taking continuous back up of our kafka cluster and restore feature to restore the topics when we need to create a new cluster.  Since most of our topics use String key and Avro data. I tried to use Parquet Avro output format. But this is not taking backup of the topic key. To clarify
-- Does secor provide any option to backup key while using avro
--  If yes how can I achieve that

I think by default most of the output format will only handle the value portion.  If you want the key portion, you might need to overwrite the AvroParquetFileReaderWriterFactory to take in message key.  You can take a look at MessagePackSequenceFileReaderWriterFactory to see how it uses message's key.


INFO level logs for dropped requests due to underscores in the name

Description:
I wonder if the level INFO would be more suitable for when this important consequence happens.
We usually don't have low log level as debug in production environments.
[optional Relevant Links:]
https://github.com/envoyproxy/envoy/blob/f7f870917bd25dc8200bcce8c259bd588cafb559/source/common/http/http1/codec_impl_legacy.cc#L1052

This may be very noisy. I think if you need to log the headers that were dropped (or caused 503) you may want to write a custom filter. Arguably this functionality should have been implemented as a filter to begin with.

admin can look statistics to find out the issue so that debug level should be ok.
stats_.dropped_headers_with_underscores_.inc();

The problem is that I have an open gateway that is called by dozens of other companies integrating with us.
I have a dashboard with this metric in place, but this does not tell us anything else other than "a fail happened" and nothing else to help me understand where it came from, path and this sort of things.
But that is fine. This was something I was wondering if this should be really debug or we could bump the level.
Recently we decided to change our behaviour to drop the underscore headers, so we are back to safety again, no requests dropped.
But we are also in the dark in relation to which headers were dropped, but that is not important.
I guess we can close this one.


Tool cleanup: remove dependency on fdb5 tool

And a small tidy up of the tool classes

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

Project coverage is 53.74%. Comparing base (69d03cf) to head (45bf5b5).

Files with missing lines
Patch %
Lines

src/gribjump/tools/GribJumpTool.cc
0.00%
21 Missing :warning:

src/tools/gribjump-extract.cc
0.00%
9 Missing :warning:

src/tools/gribjump-dump-info.cc
0.00%
8 Missing :warning:

src/tools/gribjump-scan-files.cc
0.00%
8 Missing :warning:

src/tools/gribjump-scan.cc
0.00%
7 Missing :warning:

src/tools/gribjump-validate.cc
0.00%
6 Missing :warning:

src/gribjump/tools/GribJumpTool.h
0.00%
3 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #23      +/-   ##
===========================================
- Coverage    54.04%   53.74%   -0.30%
===========================================
  Files           81       83       +2
  Lines         4315     4339      +24
  Branches       480      480
===========================================
  Hits          2332     2332
- Misses        1983     2007      +24

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

Todo: also run the scan tests on the non-hpc CI

TODO: Change the CI branch back to develop, once corresponding eckit PR is merged (https://github.com/ecmwf/eckit/pull/145)


Update module to work with Webtrees 1.7.x

This breaks backwards compatibility, correct?

You are right. I don't know git very well, so do what you think is right.

Done. You can download the new version from https://github.com/dkniffin/webtrees-openstreetmap/releases/tag/v1.7
I'll add a comment in the readme as well.


Can't use world or technews in rssnews.py

Can't use world or technews
Just putting it up as a known issue

Fixed in commitFixed in commit 1802bb4


feat: add a section that displays all the technologies I use

Add a link over the word tech when click shows a overlay with all the technology I use and skills I have

closed since completed

closed since completed


Add audit logging for Workflow resources

Currently kubectl describe wf [...] does not display anything under Events:
$ kubectl describe wf
Name:         cron-hw-5skx4
...
Events:  <none>

It would be useful to log significant events during the Workflow's execution

I agree this would be great! It would also make it easier to watch on these events to trigger alerts/etc

I can try to help with this but I have never written Go. Any pointers would be appreciated :)


chore(prettier): Update prettier dependency

Breaking out from #258 so that doesn't turn into a monster PR 😄
Just a simple QOL PR to update prettier, adding in an ignore file and custom config for Prettier in package.json. Also runs a new prettier task for yarn/npm on the existing codebase.
Changelog
New

.prettierignore

Changed

package.json

Updated prettier dependency
Created a prettier script
Created prettier config

Ran prettier on existing files

Removed

^ BTW you may want to re-run the Travis - Errored state as of now.

Thanks @asudoh! Will update the conflicts 😄

Hey Josh, could you actually move some of these configuration into https://github.com/carbon-design-system/carbon-eslint/tree/master/packages/eslint-config-carbon.
Want to try to abstract out our prettier/eslint usage so that any React addon library can use it

@chrisdhanaraj yeah for sure!

Bluemix toolchain: Delivery Pipeline deployed carbon-components-react to Bluemix Design System, including commit 0ef25e1fb43365081b0cfced5b04f650ea883399


Permission SYSTEM_ALERT_WINDOW

I have noticed that every time we init using the RN cli this permission is in the manifest.
Does RN need this? What's the use for this?

@jjdp This only needed for debug mode to show the developer menu. You can safely disable this for your production build. For example by adding this as a production Manifest:
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    >

    <!-- These are added by React Native for debug mode, but actually aren't needed in releasemode -->
    <uses-permission tools:node="remove" android:name="android.permission.SYSTEM_ALERT_WINDOW" />
</manifest>

is there a flag in manifest to disable it in production? like DEV in js?

You can add a second AndroidManifest.xml to your project to override the react native permissions. There is no flag that I know of.
Sent from my iPhone

On 4 Dec 2016, at 15:54, Jan de la Peña<EMAIL_ADDRESS>wrote:
is there a flag in manifest to disable it in production? like DEV in js?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


Phpldapadmin pod fails with "No such file or directory" error

Description
I'm using kubernetes to deploy phpLDAPadmin. If I set --copy-service argument in phpLDAPadmin deployment, pod fails with  No such file or directory: '/container/service/:runit/download.sh'")] error.
Steps to reproduce
Create deployment.yaml file with configuration below and run kubectl create -f deployment.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: phpldapadmin
  labels:
    app: phpldapadmin
spec:
  replicas: 1
  selector:
    matchLabels:
      app: phpldapadmin
  template:
    metadata:
      name: phpldapadmin
      labels:
        app: phpldapadmin
    spec:
      initContainers:
      containers:
      - name: ldap
        image: docker.io/osixia/phpldapadmin:0.7.1
        imagePullPolicy: Always
        args: ["--copy-service"]
        env:
        - name: PHPLDAPADMIN_HTTPS
          value: "false"
        - name: PHPLDAPADMIN_LDAP_HOSTS
          value: ldap

Expected result
PhpLDAPadmin pod status is RUNNING.
Actual result
Pod fails with CrashLoopBackOff status.
Logs
Name:           phpldapadmin-b86776f8d-fkfsk
Namespace:      phpadmintest
Node:           kq-zi2miedhorh3tht6nghxad4h7i-1-ckit7cqvdfr7nvgs/<IP_ADDRESS>
Start Time:     Tue, 28 Aug 2018 19:12:58 +0400
Labels:         app=phpldapadmin
                pod-template-hash=642332948
Annotations:    <none>
Status:         Running
IP:             <IP_ADDRESS>
Controlled By:  ReplicaSet/phpldapadmin-b86776f8d
Containers:
  ldap:
    Container ID:  docker://ad02313095568c03c1909dbb191fc841d939a81b20674e184cf5af0fe2654f4c
    Image:         docker.io/osixia/phpldapadmin:0.7.1
    Image ID:      docker-pullable://docker-prod-local.artifactory.mirantis.com/mirantis/map/phpldapadmin@sha256:2c78c0ed0400eae8011663610e6f82828de64e91e2a5d4e501d53541df350c40
    Port:          <none>
    Args:
      --copy-service
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Tue, 28 Aug 2018 19:16:13 +0400
      Finished:     Tue, 28 Aug 2018 19:16:14 +0400
    Ready:          False
    Restart Count:  5
    Environment:
      PHPLDAPADMIN_HTTPS:       false
      PHPLDAPADMIN_LDAP_HOSTS:  ldap
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-nwgxj (ro)
Conditions:
  Type           Status
  Initialized    True
  Ready          False
  PodScheduled   True
Volumes:
  default-token-nwgxj:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-nwgxj
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     <none>
Events:
  Type     Reason                 Age              From                                                       Message
  ----     ------                 ----             ----                                                       -------
  Normal   Scheduled              4m               default-scheduler                                          Successfully assigned phpldapadmin-b86776f8d-fkfsk to kq-zi2miedhorh3tht6nghxad4h7i-1-ckit7cqvdfr7nvgs
  Normal   SuccessfulMountVolume  4m               kubelet, kq-zi2miedhorh3tht6nghxad4h7i-1-ckit7cqvdfr7nvgs  MountVolume.SetUp succeeded for volume "default-token-nwgxj"
  Normal   Pulled                 4m (x4 over 4m)  kubelet, kq-zi2miedhorh3tht6nghxad4h7i-1-ckit7cqvdfr7nvgs  Successfully pulled image "docker.io/osixia/phpldapadmin:0.7.1"
  Normal   Created                4m (x4 over 4m)  kubelet, kq-zi2miedhorh3tht6nghxad4h7i-1-ckit7cqvdfr7nvgs  Created container
  Normal   Started                4m (x4 over 4m)  kubelet, kq-zi2miedhorh3tht6nghxad4h7i-1-ckit7cqvdfr7nvgs  Started container
  Warning  BackOff                3m (x7 over 4m)  kubelet, kq-zi2miedhorh3tht6nghxad4h7i-1-ckit7cqvdfr7nvgs  Back-off restarting failed container
  Normal   Pulling                3m (x5 over 4m)  kubelet, kq-zi2miedhorh3tht6nghxad4h7i-1-ckit7cqvdfr7nvgs  pulling image "docker.io/osixia/phpldapadmin:0.7.1"

eromanova@ubuntu:~/projects/phpldapadmintest$ kubectl logs po/phpldapadmin-b86776f8d-fkfsk -n phpadmintest*** CONTAINER_LOG_LEVEL = 3 (info)
*** Copy /container/service to /container/run/service
*** Killing all processes...
Traceback (most recent call last):
  File "/container/tool/run", line 890, in <module>
    main(args)
  File "/container/tool/run", line 775, in main
    setup_run_directories(args)
  File "/container/tool/run", line 376, in setup_run_directories
    copy_service_to_run_dir()
  File "/container/tool/run", line 442, in copy_service_to_run_dir
    shutil.copytree(IMPORT_SERVICE_DIR, RUN_SERVICE_DIR)
  File "/usr/lib/python2.7/shutil.py", line 208, in copytree
    raise Error, errors
shutil.Error: [('/container/service/:runit/download.sh', '/container/run/service/:runit/download.sh', "[Errno 2] No such file or directory: '/container/service/:runit/download.sh'")]

Workaround
If I deploy without args, no error occurs. Another workaround is to set command inside spec.container:
...
        env:
        - name: PHPLDAPADMIN_HTTPS
          value: "false"
        - name: PHPLDAPADMIN_LDAP_HOSTS
          value: ldap
        command:
        - /bin/sh
        - ce
        - /container/tool/run

Without such argument I may have some problems with mounted files on some systems (as written in README.md). How can I avoid this problem?

Looks like this is because of broken permissions/ownership on file:
root@ldap:/# ls -la /container/service/:runit/
ls: cannot access '/container/service/:runit/download.sh': No such file or directory
total 12
drwxrwxr-x 2 root root 4096 Sep  4  2018 .
drwxr-xr-x 1 root root 4096 Jul 11 13:51 ..
c????????? ? ?    ?       ?            ? download.sh`
Defected image built?


Consider changing --rc flag to bool and adding --replicas

Right now all flags for specifying controller types are bool, except for --rc, which is int.
This is confusing because I cannot do this
$ ../kompose convert --rc -y
Incorrect Usage.

And this (surprisingly) gives me a deployment
$ ../kompose convert --rc="0" -y
file "redis-svc.yaml" created
file "web-svc.yaml" created
file "redis-deployment.yaml" created
file "web-deployment.yaml" created

I propose that we change --rc back to bool and add another int flag for specifying replicas, since other controllers also take replicas in their spec. We can default it to -1 as unset, and then we don't specify it in spec (and let K8s API server decide the default value). If it's set to something >= 0, we set it explicitly.

+1. Are u going to do or shoud I take it?

I can take this one
On Thu, Jul 21, 2016 at 7:33 PM Tuna<EMAIL_ADDRESS>wrote:

+1. Are u going to do or shoud I take it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/skippbox/kompose/issues/52#issuecomment-234439429,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEpqQxaBI4-E2R7SXy2ICxUnr-k2ARuEks5qYCwRgaJpZM4JSVIn
.


Create a footer white-12

One need to make this component using HTML and Tailwind CSS. I would suggest to use Tailwind Playgrounds to make things faster and quicker.
Here is a reference to the component.

After building the component please raise a PR with a screenshot of the component and add the component in Footer/footer-white12.html.
If you need to use any icon please use it from Hero Icons
Good luck.

Can you assign me to this


[AutoPR azure-iot-deviceupdate] Update readme.typescript.md

Create to sync https://github.com/openapi-env-test/azure-rest-api-specs/pull/3116
You can install the use using pip install of the artificats.

API change check for azure-iot-deviceupdate
API changes have been detected in azure-iot-deviceupdate. You can review API changes here