TypeError: Cannot read property 'stderr' of undefined

[Enter steps to reproduce:]

Opened a project that I had not worked on for 33 days.

The project is local.
Throws the TypeError exception below, and a "Process crashed" message shown below.
Atom: 1.57.0 x64
Electron: 9.4.4
OS: Mac OS X 10.15.7
Thrown From: ide-haskell-repl package 0.10.1
Stack Trace
TypeError: Cannot read property 'stderr' of undefined
At TypeError: Cannot read property 'stderr' of undefined

TypeError: Cannot read property 'stderr' of undefined
    at Object.promiseGenerator (/packages/ide-haskell-repl/lib/interactive-process.js:128:46)

Error message
Process crashed while running request:
stderr:
cabal: Could not resolve dependencies:
[__0] trying: mparseco-<IP_ADDRESS> (user goal)
[__1] next goal: QuickCheck (dependency of mparseco)
[__1] rejecting: QuickCheck-2.14.2 (conflict: mparseco =>
QuickCheck^>=<IP_ADDRESS>)
[__1] skipping: QuickCheck-2.14.1, QuickCheck-2.14, QuickCheck-2.13.2,
QuickCheck-2.13.1, QuickCheck-<IP_ADDRESS>, QuickCheck-2.12.5, QuickCheck-2.12.4,
QuickCheck-2.12.3, QuickCheck-2.12.2, QuickCheck-2.12.1, QuickCheck-2.12,
QuickCheck-2.11.3, QuickCheck-2.10.1, QuickCheck-<IP_ADDRESS>, QuickCheck-2.10,
QuickCheck-2.9.2, QuickCheck-2.9.1, QuickCheck-2.9, QuickCheck-2.8.2,
QuickCheck-2.8.1, QuickCheck-2.8, QuickCheck-2.7.6, QuickCheck-2.7.5,
QuickCheck-2.7.4, QuickCheck-2.7.3, QuickCheck-2.7.2, QuickCheck-2.7.1,
QuickCheck-2.7, QuickCheck-2.6, QuickCheck-<IP_ADDRESS>, QuickCheck-2.5.1,
QuickCheck-2.5, QuickCheck-2.4.2, QuickCheck-<IP_ADDRESS>, QuickCheck-2.4.1,
QuickCheck-<IP_ADDRESS>, QuickCheck-2.4, QuickCheck-<IP_ADDRESS>, QuickCheck-<IP_ADDRESS>,
QuickCheck-2.3, QuickCheck-2.2, QuickCheck-2.1.2, QuickCheck-<IP_ADDRESS>,
QuickCheck-2.1.1, QuickCheck-<IP_ADDRESS>, QuickCheck-<IP_ADDRESS>, QuickCheck-<IP_ADDRESS>,
QuickCheck-2.1, QuickCheck-<IP_ADDRESS>, QuickCheck-<IP_ADDRESS>, QuickCheck-<IP_ADDRESS>,
QuickCheck-1.0, QuickCheck-2.13, QuickCheck-2.12.6, QuickCheck-2.11.2,
QuickCheck-2.11.1, QuickCheck-2.11 (has the same characteristics that caused
the previous version to fail: excluded by constraint '^>=<IP_ADDRESS>' from
'mparseco')
[__1] fail (backjumping, conflict set: QuickCheck, mparseco)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: mparseco, QuickCheck
stdout:
Resolving dependencies...
request:
:set editor "/Applications/Atom.app/Contents/Frameworks/Atom Helper (Renderer).app/Contents/MacOS/Atom Helper (Renderer)" --wait
:set prompt2 ""
:set prompt-cont ""
:set +c
:set prompt "\n#~IDEHASKELLREPL~%s~#\n"
Show Stack Trace
TypeErro

Commands
     -1:00.8.0 ide-haskell-repl:toggle (div.tool-panel.tree-view)

Non-Core Packages
document-outline 2.1.2
formatter 2.12.4
formatter-json 1.0.1
git-log 0.4.1
haskell-debug 0.3.6
ide-haskell 2.7.0
ide-haskell-cabal 2.5.0
ide-haskell-repl 0.10.1
ide-java 0.9.1
ide-python 1.8.0
language-cmake-2 1.1.0
language-haskell 1.23.0
language-latex 1.2.0
language-lua 0.9.11
language-powershell 5.0.0
language-protobuf 0.7.1
latex 0.50.2
markdown-toc 0.4.2
pdf-view 0.73.0
platformio-ide-terminal 2.10.1
split-diff 1.6.1
structure-view 0.2.1
wordcount 3.2.0

So the project fails to build. Either something's changed on the Hackage side, or perhaps you've changed the project config and forgot about it.
Anywho, I suspect that the version bound for QuickCheck specified in mparseco is incorrect. There isn't a <IP_ADDRESS> version of QuickCheck available, only 2.14.2. I believe, if you fix that, stuff should work (or at least complain about something else)

Thanks. It was indeed the QuickCheck version.
Yet, I do have another problem. I'm not sure it's a bug or not, so I don't know if I should open a new issue. Basically the problem now is that when I try to open the REPL on Atom for the file that defines the executable of my project it fails with the following:
Could not load module ‘Test.QuickCheck’
It is a member of the hidden package ‘QuickCheck-2.14.2’.
Perhaps you need to add ‘QuickCheck’ to the build-depends in your .cabal file.
It is a member of the hidden package ‘QuickCheck-2.13.2’.
Perhaps you need to add ‘QuickCheck’ to the build-depends in your .cabal file.
Use -v (or `:set -v` in ghci) to see a list of the files searched for.

But QuickCheck is on the build-depends of my cabal file!
The cabal file is as follows:
cabal-version:       3.0
-- Initial package description 'mparseco.cabal' generated by 'cabal init'.
--   For further documentation, see http://haskell.org/cabal/users-guide/

name:                mparseco
version:             <IP_ADDRESS>
synopsis:            A minimal monadic parsing combinator library.
description:         mperseco is a minimalist monadic parser combinator library. It is essentially an implementation of the parsing combinators from Philip Wadler's seminal paper "[Monads for functional programming](https://link.springer.com/chapter/10.1007/978-3-662-02880-3_8)". It can be seen as a minimal subset of Haskell's well known library "[parsec](https://hackage.haskell.org/package/parsec)".
homepage:            https://github.com/eposse/mperseco
-- bug-reports:
-- license:
license-file:        LICENSE
author:              Ernesto Posse
maintainer<EMAIL_ADDRESS>copyright:           (c) 2021-2025 Ernesto Posse
category:            Parsing
stability:           experimental
extra-source-files:  CHANGELOG.md, README.md
tested-with:         GHC == 8.8.3

library
  exposed-modules:     Mparseco
  other-modules:
    Mparseco.BasicParsers,
    Mparseco.Core,
    Mparseco.Tokenizer,
    Mparseco.Utils
  -- other-extensions:
  build-depends:       base ^>=<IP_ADDRESS>
  hs-source-dirs:      src
  default-language:    Haskell2010

test-suite mparseco-test
  type:                detailed-0.9
  test-module:         MparsecoTests
  other-modules:
    MparsecoTests.Properties,
    MparsecoTests.Generators,
    Mparseco,
    Mparseco.BasicParsers,
    Mparseco.Core,
    Mparseco.Tokenizer,
    Mparseco.Utils
  hs-source-dirs:      tests, src
  build-depends:
    base ^>=<IP_ADDRESS>,
    Cabal ^>= <IP_ADDRESS>,
    QuickCheck,
    cabal-test-quickcheck,
    mparseco
  default-language:    Haskell2010

executable mparsecoexample
  main-is:             MparsecoExample.hs
  other-modules:
    Mparseco,
    Mparseco.BasicParsers,
    Mparseco.Core,
    Mparseco.Tokenizer,
    Mparseco.Utils
  build-depends:
    base ^>=<IP_ADDRESS>,
    Cabal ^>= <IP_ADDRESS>,
    QuickCheck,
    cabal-test-quickcheck,
    mparseco
  hs-source-dirs:      examples, src
  default-language:    Haskell2010

The file I'm trying to run on REPL is MparsecoExample.hs.
When I build and run it in the command line with
cabal build
cabal run mparsecoexample

it runs correctly. Furthermore, the following also works correctly on the command-line:
cabal repl mparsecoexample

So it is something about opening REPL in Atom. What could be the problem? Why does ide-haskell-repl fail to find QuickCheck? I can't find any settings related to the libraries, and I have everything on default settings.

Hmm. Perhaps the component is misidentified, hence QuickCheck isn't brought into scope. Is this project open source? Can I find it somewhere to run some tests?
One culprit I can think of is that ide-haskell stack uses a somewhat old Cabal implementation to parse cabalfiles, perhaps it's unable to parse your cabalfile either because of some new stanza (I don't see any from a glance though) or simply because cabal-version is too high. cabal-version: 1.12 is known to work. Yes, I know I need to update the cabalfile parser. Regrettably, it's a little complicated since it relies on poking through GHCJS internals. Perhaps I just need to change my approach and use a helper binary instead, but this will likely create compatibility issues. Anyway, if you can't share the project, try lowering the cabal-version, perhaps that would work.

I've made the repo public at: https://github.com/eposse/mparseco.git. Try the 'tokex' branch.
I've tried setting cabal-version: 1.12 but I got a whole bunch of new errors, even after I updated the version range syntax to the old style: see the 'old-cabal' branch.

Okay, so I was right, apparently. Regrettably. I've tried to slap a fix together, but it's a little wonky. I need help testing before I'm confident enough to release.
So, the current state of GHCJS is... not great. I've tried an alternative (that being asterius), but it crashed and burned in many curious ways the moment I tried to parse some cabalfiles, so probably not a great option.
So helper binaries it is then. I've currently just put those into an npm package; I have no idea if any of those work at all, besides the Linux one, and they aren't small. For that reason, I'm not yet releasing the new version which uses those, but you can test the current master by cloning this repo then running apm install && apm link in the cloned source tree root (warning: you'll end up downloading roughly 10MB of packaged binaries; those binaries are from https://github.com/atom-haskell/cabal2json, built on GitHub Actions)
I'm very curious as to the results, since testing on macOS is very complicated for me.
Honestly, I'm really not a fan of this "silently download binaries on installation" approach; I'm open to suggestions.
Sorry for the stream of consciousness, but it's 5:50 am here, and I really should've been sleeping by now.

Thanks, I'll try it tomorrow and post the results here.

The good news is: I've managed to figure out what's currently going on with GHCJS (zero docs, found some info in a random tweet)
Long story short, I've switched out the binaries for a nodejs executable script. This should be less prone to random breakage on different platforms, so I've released the updated ide-haskell-repl and ide-haskell-cabal. I still need to verify it works on Windows (because different path separators), but other than that it should work (fingers crossed).
Sorry this took a while.

tl;dr for posterity, iohk/haskell.nix has GHCJS based off GHC 8.10.5, but have to build it -- takes a few hours at best; I've set up a binary cache on cachix which has ghcjs derivations cached, currently based on nixpkgs-2105 and input-output-hk/haskell.nix@f9d261d6d90d4aebd97f7ae60c951fc9e1d98493; see https://github.com/atom-haskell/cabal2json/blob/master/default.nix for updates (which are not especially probable in the near future, but who knows)

Ok, I've installed the new versions of ide-haskell-repl and ide-haskell-cabal.
Overall it worked, but the first time I opened REPL it took quite a while, and I thought it was stuck. Subsequent times seem to be fast.
There is however one other thing is that I still get the following warnings:
<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules:
        Mparseco
        Mparseco.BasicParsers
        Mparseco.Core
        Mparseco.Tokenizer
        Mparseco.Utils
Warning: The package has an extraneous version range for a dependency on an
internal library: mparseco -any && ==<IP_ADDRESS>, mparseco -any && ==<IP_ADDRESS>. This
version range includes the current package but isn't needed as the current
package's library will always be used.

The first warning seems wrong: the modules are listed in the "other-modules" section of the cabal file (both the library and the executable).
The second warning about the "extraneous version range" is very strange, as the cabal file doesn't specify that at all. This warning appears only the first time REPL is launched, though.

Sorry this took a while.

Not at all! I reported this on Saturday, and a working solution by Tuesday is a pretty quick turn-around!
Thanks!

the first time I opened REPL it took quite a while

cabal repl may do quite a bit of stuff on the first launch. Building the project before starting repl helps in this regard.
Other than that, there is a relatively recent quirk in Atom where it semi-randomly suspends the event loop; doing some input, like clicking the mouse or typing something, wakes it up; this has an unfortunate consequence that working with external processes can "hang" indefinitely (until the event loop is woken up). It's easy enough to work around this for one-shot processes by forcefully spinning the event loop, but the workaround doesn't work with GHCi all that well. I'll see what I can do, though.

-Wmissing-home-modules

This is a quirk of GHCi, see https://github.com/haskell/cabal/issues/5917. The solution is probably to pass -Wno-missing-home-modules explicitly, but this might break on earlier GHC versions. So I choose to ignore this for now.

Warning: The package has an extraneous version range

This is actually a bug in cabal, see e.g. https://github.com/haskell/cabal/pull/7470#issuecomment-875878507 ; not much I can do on my end except filtering that out explicitly, and I don't really like such ad-hoc solutions, they tend to haunt the code base forever.
FWIW, the last two issues happen during normal GHCi operation, and are not exclusive to ide-haskell-repl.

Ok, understood.
As far as I'm concerned the issue can be closed.
Thanks!


Removed unecessary function match from post_policy

While we do lack tests for all policies, this is a quick fix to remove a function that will always match and prevent the proper function from being called.

:+1:


feat: add and adjust prop size for icons

Motivation
Whenever possible, it would be ideal to provide the prop size for the icons. Most of them were already defaulting to the initial value of 20px.

@AntonioVentilii-DFINITY , do you know what the changes are in the first screenshot?

@mstrasinskis I am not really sure to be honest... I used a image comparison tool that pointed out the parentesis in the text under "Your ICP Wallet", but it doesn't make much sense...

@mstrasinskis I am not really sure to be honest... I used a image comparison tool that pointed out the parentesis in the text under "Your ICP Wallet", but it doesn't make much sense...
theoretically, the user icon at the top-right changed too, but it shouldn't really, since it is the same size...

@AntonioVentilii-DFINITY, have you tried reverting the changes in this screenshot? Will the test pass?

FYI: https://github.com/dfinity/gix-components/pull/490


[WIP] Allow user to add a todo through web socket

[ ] Write backend ws tests
[ ] Send a response to all channels when a todo is successfully
[ ] Write method to handle websocket messages on client
[ ] Update views on the basis of messages recieved

Closed because I am not working on it anymore


thrown:undefined when using settimout in promise

did anybody get the same error
when i use promise and setTimeout to mock delay case, but it doesn't work. I have no clue to resolve it.
system: node v12.14.1
npm v6.13.4
jest 24.9.0
// index.js
export const fn = () => {
    return new Promise(resolve => {
        setTimeout(() => {
            resolve('it didnt work');
        }, 0);
    });
}

// index.test.js
const { fn } = require('./a');
describe('aa', () => {
    test('aaa', async () => {
        const data = await fn();
        return expect(data).toEqual('it didnt work');
    });
});

=>result error:
thrown: undefined
at new Spec (node_modules/jest-jasmine2/build/jasmine/Spec.js:116:22)

@nancy-Gao It did work for me after I transpiled your code to commonJS and ran npm run test with both<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(Don't worry, If you are using a babel config, jest should automatically transform the files for you.)
After converting to commonJS:
// index.js
const fn = () => {
    return new Promise(resolve => {
        setTimeout(() => {
            resolve('it didnt work');
        }, 0);
    });
}

module.exports = { fn };

// index.test.js
const { fn } = require('./a');
describe('aa', () => {
    test('aaa', async () => {
        const data = await fn();
        return expect(data).toEqual('it didnt work');
    });
});

Could you clear your npm_modules and run this test again?

Thank you so much.
I resovled it!
The reason of why Promise doesn't work is that the project imports a file who includes Promise and throws error at the entry file.

Just wanted to share my experience - this error indicates that unhandled rejection happened with no provided reason - i.e. when Promise.reject() returned from somewhere and not caught. To find out actual cause, provide some meaningful reason in all such rejections (better using new Error()).

Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.


NOISSUE - Shorten descriptions and add formats

Codecov Report

Merging #1306 (f131d3e) into master (18dd896) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1306   +/-   ##
=======================================
  Coverage   64.66%   64.66%
=======================================
  Files         117      117
  Lines        8027     8027
=======================================
  Hits         5191     5191
  Misses       2381     2381
  Partials      455      455

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 18dd896...f131d3e. Read the comment docs.


Sections layout

I'm not fully satisfied with the current sections layout. The menu seems weird. Its UX doesn't feel good.
I'll be implementing a new layout with the menu fixed (not sticky, like it's today) on the left side.

Ideas are welcome.

When you say it will be fixed, do you mean neither it nor the top navigation bar will scroll with the page?
Best,
Christian Schlensker
On Wed, Jul 11, 2018 at 08:09:21, Haz <<EMAIL_ADDRESS>> wrote:

I'm not fully satisfied with the current sections layout. The menu seems
weird. Its UX doesn't feel good.
I'll be implementing a new layout with the menu fixed (not sticky , like
it's today) on the left side.
img_2465 (
https://user-images.githubusercontent.com/3068563/42581430-19636c72-8503-11e8-995c-5efbe81400c7.JPG
)
Ideas are welcome.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (
https://github.com/diegohaz/reakit/issues/138 ) , or mute the thread (
https://github.com/notifications/unsubscribe-auth/AAh4JH9IIMdZR3mxBHfsVA1w3_ix1lF8ks5uFhUggaJpZM4VLU9i
).

@wordofchristian Yes, like the mobile version (but always visible).


Documentation

This PR adds:

Initial sphinx documentation structure
Docstrings in robot.py
Doctesting examples
Pushing generated docs from master into gh-pages available at http://opentrons.github.io/opentrons-api/

Coverage increased (+0.06%) to 93.904% when pulling 257a4ba9a7e604847158e498ce814684e7c26b49 on 171-l-documentation-update into fd0d031381c44e6f53370c4a4b46250db0e7f9fb on master.

Coverage increased (+0.06%) to 93.904% when pulling 146074b77bd6e02e267694f076dddd922ed0aac5 on 171-l-documentation-update into fd0d031381c44e6f53370c4a4b46250db0e7f9fb on master.

Coverage increased (+0.06%) to 93.904% when pulling 7e57fc8983041025e22439c9942a01a7f15f3463 on 171-l-documentation-update into fd0d031381c44e6f53370c4a4b46250db0e7f9fb on master.


Source description from README.md (non-configurable path)

Have field/column that says it was pulled from descriptor file/README.md
Display that info somehow in the UI, split this into new ticket****
Priority is description from descriptor and if missing, from /readme.md (not case-sensitive?)
Configuration can wait till a .dockstore.yml

┆Issue is synchronized with this Jira Story
┆Issue Type: Story
┆Fix Versions: Dockstore 1.8
┆Sprint: Seabright Sprint 24 Yacht
┆Issue Number: DOCK-1041

Seems functional


[BUG] Wrong order of hostAddress and portNumber variables values

New bug checklist

[x] I have updated go-smtp-mock to the latest version
[x] I have read the Contribution Guidelines
[x] I have read the documentation
[x] I have searched for existing GitHub issues

Bug description
hostAddress and portNumber variables values are mixed up:
hostAddress, portNumber =: server.PortNumber, "<IP_ADDRESS>"

@vpakhuchyi Thanks, man! 🍺 I have merged it in develop.


Want autoplay to play the slides once and stop

http://foundation.zurb.com/forum/posts/19196-want-autoplay-to-play-the-slides-once-and-stop
Basically I changed the line of code (382 in mine) :
.slideHandler(.currentSlide - _.options.slidesToScroll);
to:
.slideHandler(.currentSlide);
Hope this helps you out.
Version: 1.5.8

This fixes the particular need but breaks other implementations. Thanks though.

yes. do you know any better way?

something like if currentSlide >= slidesLength - slidesToShow then pause, in the afterChange event

but will it affect autoplay? or not?
On Fri, Jan 15, 2016 at 4:01 PM, Ken Wheeler<EMAIL_ADDRESS>wrote:

something like if currentSlide >= slidesLength - slidesToShow then pause,
in the afterChange event
—
Reply to this email directly or view it on GitHub
https://github.com/kenwheeler/slick/issues/2029#issuecomment-171984154.

if the slider is autoplaying, after each slide sequence it will call onAfterChange. In that callback, you can say hey, if this is the last slideable index before the end, then pause autoplay so that it doesn't continue.

ok. thanks alot
On Fri, Jan 15, 2016 at 4:15 PM, Ken Wheeler<EMAIL_ADDRESS>wrote:

if the slider is autoplaying, after each slide sequence it will call
onAfterChange. In that callback, you can say hey, if this is the last
slideable index before the end, then pause autoplay so that it doesn't
continue.
—
Reply to this email directly or view it on GitHub
https://github.com/kenwheeler/slick/issues/2029#issuecomment-171988204.


KBV-636 Add gender to IIQ Applicant if present as env var

@idrop Sonar cloud says you have a bug tho 👁

@idrop Sonar cloud says you have a bug tho 👁

Thanks @MattBidewell I've addressed with this commit 🤞


ArgumentCustomization seems to be ignored

As the title says, additional arguments from the ArgumentCustomization seems to be ignored.
Examlple:
SonarBegin(new SonarBeginSettings {
    Url = "...
    ArgumentCustomization = args => args
        .Append("/d:sonar.log.level=DEBUG")
});

It seems to me that custom argument was overridden by addin's settings.
I tried with argument that is not supported by addin and it works for me. https://github.com/AgileArchitect/Cake.Sonar/issues/26#issuecomment-320634458

It actually is added just the log does not print it.

PR #32 fixes that.

merged now, thanks. closing this.


⚠ Samsung has degraded performance

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

HTTP code: 200
Response time: 2474 ms

Resolved: Samsung performance has improved in 881ee1f.


Load multiple namespaces

Is your feature request related to a problem? Please describe.
We have lots of duplicated translation strings
Describe the solution you'd like
To be able to pass an array of namespaces so that we can put common translations in common json files.
Describe alternatives you've considered
Putting everything in one namespace and adding namespacing on the translation key

Hi @Industrial,
thanks for the request! I've got a section on how I suggest to structure messages for such scenarios: https://github.com/amannn/next-intl/blob/main/docs/usage.md#structuring-messages. I typically reuse labels by reusing components.
You don't have to follow this convention though.
You can retrieve all labels like this:
const t = useTranslations();

When you do that, you can access all messages from any namespace you like. This is helpful if there's no real common denominator for your messages.
I'm a bit hesitant about adding new API when there's already a way to solve this with existing functionality.
Does that help?

Hi!
Sometimes it is not possible to put everything inside it's own component. Instead, I'm now sometimes using multiple t functions in the same component to retrieve translations in different translation files.
const t = useTranslations('thisComponent')
const translateProductCategories = useTranslations('productCategories')

This works well enough :-)

Ok, good to hear if you found a workaround!
To be honest I'm still wondering if this should be more ergonomic. So far I was considering using the lowest common denominator for the namespace of the useTranslations hook.
But in practice that could mean omitting it totally. Like for example your use case could be solved like:
const t = useTranslations();
t('thisComponent.someLabel')
t('productCategories.anotherLabel')

However maybe if there are some optimisations in the future, it could be easier to optimise if we know the particular namespaces.
An API like this could also work:
const t = useTranslations(['thisComponent', 'productCategories']);
t('someLabel')
t('anotherLabel')

The downside here is that there could be conflicts and we'd have to error out on those. Also it might be too magical where a particular translation comes from.
I'm just not sure yet, I'm just thinking aloud here.

Instead of throwing an error, you could also create the total object of translations by extending it from the right.
const allTranslations = translations.reduce((a, x) => { ...a, ...x }, {}) // probably not the most efficient way to implement

But maybe this is too simple for people and when 'losing' translations due to double entries they'd be lost..

'losing' translations due to double entries they'd be lost..

That's what I was worried about as well. But sure, merging is also an option. Let's see, maybe there are other use cases which provide some more context about how this feature would make sense.


Turret Upgrade

Hi guys, anyone know how to add more upgrade for turret?

up

Was there ever an answer to this?

i try to make that too xd

Just duplicate the prefab, change little things and change the stats of the script. Like range will be increase but turn time will be decrease. You can make your own ideas. Sorry if there is any grammar mistakes English is not my primary language and, cherrs.

Well if you will watch the whole tutorial and understand the basics you can do it just duplicating and editing scripts. Like, duplicate the prefab of the turret and add some little visual changes. Then change the stats of the turret, understand the upgrading system and uptade it for multiple upgrades. It's up to you, cheers.

What I did was created a new prefab for each turret, add a little animation, changed the colors of the turret, made it more buff, and then just ran a simple check in the upgrade turret using a bool in the turret script called, well, upgraded. then to keep balance, i increase the sell and upgrade price. I dont know if this helps, but its what I decided to do. Hope this helps!


Sanitize vcr cassettes

Added filters to mast sensitive and private data

@jaywcarman
Just noting again that my refresher.yml generated on a Mac substitutes some of the internal network hostnames contained in uris/urls/hrefs with an IP address, so I may have missed some potential important filters.


readme link spelled incorrectly

Hello! The link to Lumafly ends not with a "y/?download", but a "u/?download" at present!

Thanks for pointing it out, fixed now


PR: Fixes to improve compatibility with PySide2

Description of Changes
Various Fixes to improve compatibility with PySide2. This time some fixes for tests are included: We have looked into running the testsuite with PySide2 and this PR contains “low-hanging fruit” fixes. There are still failures which we haven’t looked into yet (we possibly will some day).
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct:
rear1019

Thanks for these improvements @rear1019! They look good to me, so please rebase or merge with 5.x to get the fixes in PR #19564. Then I'll merge.

Rebased

The failure seems valid this time.

Hi again @rear1019 , could you rebase again on top of the latest 5.x? Hopefully this time that will make the checks pass


Can dependency between server and client can be removed

Background
Currently styx-server depends on styx-client as a maven dependency. There are only few exception classes being used by styx-server, so maybe there is an opportunity there to reduce dependance.
Acceptance criteria

Check if the dependency can be removed,
Propose a solution how to handle the exception classes used by styx-server from styx-client module,
Remove the dependency if feasable.

One suggestion is to:

Add an interceptor to map client specific exceptions to common styx exceptions.
Remove the client specific exception mapping from the Styx HTTP Pipeline, and map styx common exceptions to specific response codes.
Then we can remove the dependency between Styx Server and Client.
However, as HttpPipelineHandler is part of Styx-Server, still needs to know about proxy related response codes, such as Gateway Timeout, etc. But then again HttpPipelineHandler already performs proxying related such as flow control.

Ideally though HttpPipelineHandler as a server component would not have any proxying related logging in it. Instead the proxying related logic would all go to styx-proxy alone. Perhaps we should explore this split bit further?

Low value, let's do later if necessary.


REDIS_PORT under linked Docker images "lo peta"

I just wasted a few hours to this, so figured I'd let you fine gentlemen know:
Setup:

You use Docker, because it is what all the cool kids are doing
You use the link directive to host an external Redis image and point the CartoDB app to it
Things blow up nicely with an incoherent Error connecting to Redis on <IP_ADDRESS>:0 (Errno::ECONNREFUSED) message ...

Why?
Because Docker creates a shit-load of ENV variables like so:

root@95333d92850f:/dronedb# env | grep REDIS_PORT
REDIS_PORT_6379_TCP_PROTO=tcp
REDIS_PORT_6379_TCP_ADDR=<IP_ADDRESS>
REDIS_PORT_6379_TCP_PORT=6379
REDIS_PORT_6379_TCP=tcp://<IP_ADDRESS>:6379
REDIS_PORT=tcp://<IP_ADDRESS>:6379

And our friend redis_factory.rb gets all confused and cannot parse that fully-qualifed port number and dies leaving the port at 0.
There, not much I can suggest since you fine folks don't use Docker.  But I guarantee this will come back to bite many in the ass.
/cc @zenitraM and @javisantana for my free t-shirt! :trollface:

I guess @juanignaciosl is the one who might be interested here.  Not that there is much to be done ... but just a heads up in case you run into it.

Thanks for the heads up, @jjmata :-) When this becomes a problem we can improve the environment configuration parsing 👍
cc @javitonino @gfiorav

BTW --link has been deprecated
The way to go now is attaching the containers to the same Docker network
my 2 cents :)

You are right, @alrocar!  I've been moving things to Swarm and stopped using --link a while ago, so this can be closed.  I was actually just testing deploying a stack to a Swarm for testing just now ... ;-)  Once secrets got implemented it convinced me to move on with it.
You guys starting to use Docker now?
PS.  I know, I know .. the cool kids are all doing Kubernetes and not Swarm now.  I will never be a cool kid, and I know it.

Yep, as you know we try not to depend on the cool technologies out there, but some of our clients are running CARTO on top of K8s and Docker :)


chore: create execution_resources file to split the starknet api transaction file

This change is

#335  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ArniStarkware and the rest of your teammates on  Graphite


[Run] Win32 apps only available via english and not via localized name

Environment
Windows build number: 10.0.19041.264
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Problem
For win32-api applications we only indexing the englisch name, but not the localized name.
Details / Example
In start I can search for magnify or Bildschirmlupe to open the magnify system app. In PT Run the app can only be found by its englisch name magnify.
Screenshots

Issue still exist in 0.19.

Feel like  #3538 is same issue

Feel like  #3538 is same issue

The problem yes. But it's a different plugin. See tracking issue.

@crutkas
Should we close the sub issues and only keep #4146 as main issue open?

@htcfreek
is this just a sub-case of https://github.com/microsoft/PowerToys/issues/3773?

@htcfreek
is this just a sub-case of https://github.com/microsoft/PowerToys/issues/3773?

not completely sure. 🤷

Believe so

Calling out the smart filtering suggestion from #12216 so it's tracked here as well.

there is no update, we are focusing on other items which is why we added "help wanted"

Maye I have found a solution. I will try the code tomorrow. Is it okay to have only the localized name or is it required to allow searching for both?

I think you’d want both

I think you’d want both

Possible too. Then you can search for both.
Should we show localized in result title and non localized in tool tip?

fixed with 0.60.0 release


Migrate to Vite and Mui5

Description
The previous project manager react-scripts is too slow and can't keep up with the times.
So I replace it with a Next Generation Frontend Tooling: Vite (developed by the author of Vue)
And also upgrade our @material-ui/core to @mui/material for the deprecated reason.
Breaking changes:

folder structure

Speed comparison:

react-script: 60s
vite: 0.5s

This PR does not need to review every file, you just need to make sure pnpm start works fine.

First

The next time

Maybe it is affected by the hardware performance.


Calculation of fault tolerance of etcd cluster is incorrect

Calculation of fault tolerance of etcd cluster is incorrect in the admin documentation.

Can you provide more information? Or ideally you can just send a pull request to fix it.

just did


openai.APIConnectionError: Connection error.

I've encountered this error: openai.APIConnectionError: Connection error. while following Getting Started on repository's README.md. I used poetry to install the packages mentioned on Installation part in README.md.
After this part:
# launch it
launcher = LocalLauncher(
    [agent_server_1, agent_server_2],
    control_plane,
    message_queue,
)
result = launcher.launch_single("What is the secret fact?")

print(f"Result: {result}")

I get the error.
Partial Console log:
Retrying llama_index.llms.openai.base.OpenAI._achat in 0.8142595271750632 seconds as it raised APIConnectionError: Connection error..
Retrying llama_index.llms.openai.base.OpenAI._achat in 0.8624934507334412 seconds as it raised APIConnectionError: Connection error..
.
.
.
    raise APIConnectionError(request=request) from err
openai.APIConnectionError: Connection error.

While using llama-index I am not getting any errors like this, it works fine. I believe this issue is about async.
Full console log:
full-console-log.txt

Thanks @ArmanTunga for raising the issue. Have you set the OPENAI_API_KEY environment variable? I believe I've seen this before a few times... whenever I forget to supply my api key.

Thanks, the issue has been resolved! I've checked and I seem to have made a typo.

Thanks, the issue has been resolved! I've checked and I seem to have made a typo.

Thanks, the issue has been resolved! I've checked and I seem to have made a typo.

Dang typos! They get the best of us sometimes, for sure. Glad we got this one resolved!


Fixes for building MAPL without Baselibs

Description

As reported by @rmontuoro, MAPL 2.6.0 doesn't build in a non-Baselibs environment. This PR should fix it (pending testing by @rmontuoro )
Related Issue

Motivation and Context

Allows MAPL standalone (and more?) to build at Orion.
How Has This Been Tested?

Test builds and runs of MAPL tests. GEOSgcm test upcoming.
Types of changes

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Trivial change (affects only documentation or cleanup)

Checklist:

[ ] I have tested this change with a run of GEOSgcm (if non-trivial)
[X] I have added one of the required labels (0 diff, 0 diff trivial, 0 diff structural, non 0-diff)
[X] I have updated the CHANGELOG.md accordingly following the style of Keep a Changelog

Adding a blocking tag until @rmontuoro or @WilliamJamieson can confirm this helps.
And I'd like to make sure GEOSgcm runs.

Looks to be zero-diff on discover with a run at C24 (as it should, it would build or not)


Align getting started example imports with repo

While the prelude imports PgConnection, it's a confusing mis-match for beginners.
Fixes #1758

You need to run rustfmt on the changed file to fix the ci otherwise this seems fine. :+1:

@weiznich Fixed!

Looks fine, but CI continues to fail because of a unrelated issue. (We have already a fix for this but it is currently in review).

@weiznich This looks good to me but the ci is too old and red. Could we make it green? (Still needs rebasing?)

This pull request was rebased onto master, so I closed it.


Updated the GHES Release Version Dates

Updated the GHES Release Version Dates and URLs to be current and included latest information.

😉


nixos/tests: Add test for VS Code - Remote SSH

Description of changes
Due to the Node version bundled with the VS Code Server occasionally changing, the patch to allow Remote SSH to work with NixOS hosts sometimes gets out of date. This new test ensures the Remote SSH patch is still working :smile:
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[x] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Please fix merge conflict.

@superherointj thanks so much for reviewing this, I've updated my PR, hopefully you can take another look

@superherointj thanks so much for reviewing this, I've updated my PR, hopefully you can take another look

I'm sorry. I'm no longer an active commiter. Please add another one.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/1016/51

@ofborg test vscode-remote-ssh

@SuperSandro2000 I just rebased the PR and the tests are passing, any chance we can get this merged?


Added document how to build Yoga for Java

Added documentation detailing how to build the Yoga library for Java/Android.

Writing instructions for how to patch the current build logic to build JNI part of library for macOS doesn’t seem very durable.
For Android we rely on Android Gradle Plugin’s NDK/CMake integration, and just distribute binaries.
If we wanted to support building Java locally more gracefully, we probably want a way to have Gradle without Android bits hook CMake, or potentially just go the route of Gradle C++ libraries more venally. https://docs.gradle.org/current/userguide/cpp_library_plugin.html
Separately, out of curiosity, what warnings as errors did you run into? We have a good number of different builds with high warning level in OSS CI, and internally at Meta, so I’m curious what gap we still have.

Can't speak on the actual build instructions, but wondering why the README wasn't used for these instructions.

@NickGerleman We got some errors and warnings while building Yoga for Java on MacOs with Apple CPU. We are creating custom implementation of Flexbox layout for Android Compose.


Iterate through players in a way that makes sense

This line, used in so many places, doesn't really work at all:
for i = 0, #Players do
Imagine you have a server that players 0, 1, 2 and 3 have joined. That means #Players is 4 and the loop will go up to 4.
Now imagine players 1 and 2 leave. Suddenly, #Players has a value of 2. That means the loop only goes up to 2, and it's as if player 3 doesn't even exist.
For that reason, something like printing the list of players like this is very wrong:
    for i=0,#Players do
        if i == #Players then
            divider = ""
        else
            divider = "\n"
        end
        if Players[i] ~= nil and Players[i]:IsLoggedIn() then
            list = list .. tostring(Players[i].name)
            list = list .. " (ID: " .. tostring(Players[i].pid)
            list = list .. ", Ping: " .. tostring(tes3mp.GetAvgPing(Players[i].pid)) .. ")"
            list = list .. divider
        end
    end

In the above-mentioned scenario, it will only be able to find player 0.
Here's a screenshot as proof:
http://i.imgur.com/GY7FolQ.png

Fixed by 397fa2ab7e981b18d967686c88e51a9529e66d83.


Only zoom after first click, after the webview editor is active.

This changes the image preview to zoom only after an initial click event.

Fixes #81877

There looks to be two duplicate PRs attempting to address this issue: #82074 and #81935

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

Hi,
I tested your code and found a bug:
When giving the preview focus by either clicking the tab, or with ctrl + number key, you then have to click twice inside the preview in order to zoom.
I ran into this bug myself while trying solve the same issue without using the postMessage(...) method. I was not able to fix the bug without using it.

Yeah, I think passing state via postMessage is necessary. Do you want to consolidate our efforts?

Sure!
I'm quite new to working on large github so I don't know how that would work. What do you have in mind?

Closing this in favor of #82074
This change looks like a good approach overall but I think that #82074 also handles a few other cases. Sorry that I didn't unmark the original issue as help wanted when the first PR  came in to let others know you were working on it


Integration with Code Analysis (Codacy, CodeClimate)

How can I integrates XO with code analysis tools like CodeClimate or Codacy, based that these tools use the .eslintrc to parse your analysis? Any idea?

With Codacy it seems you can integrate your own tools: https://support.codacy.com/hc/en-us/articles/207994725-Tool-Developer-Guide But they should really just support some kind of reporting interface, so someone could create a XO reporter for it. You should request that on their support channel.
CodeClimate also supports custom engines, but unclear how it works: https://codeclimate.com/engines/

I don't know about those two specifically, but many services like them support output in a format called JUnit XML.
I would be surprised if someone has not created a JUnit reporter for XO yet, though a quick search didn't turn up anything obvious for me.
References:

JUnit reporter for Mocha
People talking about JUnit for AVA

I guess codeclimate-stylelint is the most relevant engine I see on their list. Not sure why building such a thing is necessary, though. There really should be just a standardized reporter interface, as Sindre said, like JUnit XML.


amp_cookie_test cookie values can contain disallowed characters

Expected Behavior
amp_cookie_test cookies should not be rejected by firewalls.
Current Behavior
amp_cookie_test cookie values can sometimes be rejected by firewalls, such as the Spring Security StrictHttpFirewall
Here is an example of a cookie that does not pass through the firewall, because of special characters (\u0080\u0099):
amp_cookie_testZ4RgnufBu172SVyuXfqfSV=Sat Dec 18 2021 22:50:11 GMT+0100 (Ora standard dellâ\u0080\u0099Europa centrale);
Possible Solution
Maybe use something like new Date().toUTCString() rather than String(new Date()) in base-cookies.js
Steps to Reproduce

Environment

JS SDK Version:
Installation Method:
Browser and Version:

Thanks @mickaeltr for reporting this issue. We are currently looking into this, and we will get back to you soon.

Thanks for fixing it!

Hello @kevinpagtakhan, I am giving a second thought.
Since we've had quite a lot of those issues (until you fixed it), that means that those test cookies are sent along the HTTP requests, although they're supposed to be cleanup: see the code and test (which seems wrong since it's based on a random base64 string).
What do you think?

In addition, it would be really great to cleanup ALL remaining amp_cookie_test cookies, because despite of upgrading to the newer SDK, old faulty cookies are still being sent, e.g.: amp_cookie_test9BV14eCewbPZ5_CWG8-2C2=Fri Dec 10 2021 10:35:59 GMT+0100 was seen in our logs this morning


Make error with EVP_CIPHER_CTX_FLAG_UNWRAP_WITHPAD undeclared

I am running 64 bit Ubuntu 18.04. Calling make exits with this error:
app_main.c: In function ‘app_aes_keywrap_handler’:
app_main.c:2969:50: error: ‘EVP_CIPHER_CTX_FLAG_UNWRAP_WITHPAD’ undeclared (first use in this function); did you mean ‘EVP_CIPHER_CTX_FLAG_WRAP_ALLOW’?
EVP_CIPHER_CTX_set_flags(cipher_ctx, EVP_CIPHER_CTX_FLAG_UNWRAP_WITHPAD);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EVP_CIPHER_CTX_FLAG_WRAP_ALLOW
app_main.c:2969:50: note: each undeclared identifier is reported only once for each function it appears in
At top level:
app_main.c:5402:19: warning: ‘base64en’ defined but not used [-Wunused-const-variable=]
static const char base64en[] = {
^~~~~~~~
Makefile:401: recipe for target 'app_main.o' failed
make[1]: *** [app_main.o] Error 1
make[1]: Leaving directory '/home/my_name/libacvp/app'
Makefile:387: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
And then make install subsequently also fails and acvp_app is not built. gcc also returns this error on Centos7. Ubuntu has openssl 1.1.0 and Centos7 has openssl 1.0.2. Taking the compiler's suggestion and replacing EVP_CIPHER_CTX_FLAG_UNWRAP_WITHPAD with EVP_CIPHER_CTX_FLAG_WRAP_ALLOW works and allows me to connect to the demo server on both Ubuntu and Centos7. Although the substitution works they do not seem interchangeable- I would be interested to know if others can replicate this error on their setup.

My mistake. I enabled some keywrap options, ie with wrap, that are not supported by openssl.
Just comment that handler out and you should be fine.
Barry
From: Rasstrelnikov<EMAIL_ADDRESS>Sent: Monday, August 20, 2018 6:24 PM
To: cisco/libacvp<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [cisco/libacvp] Make error with EVP_CIPHER_CTX_FLAG_UNWRAP_WITHPAD undeclared (#129)
I am running 64 bit Ubuntu 18.04. Calling make exits with this error:
app_main.c: In function ‘app_aes_keywrap_handler’:
app_main.c:2969:50: error: ‘EVP_CIPHER_CTX_FLAG_UNWRAP_WITHPAD’ undeclared (first use in this function); did you mean ‘EVP_CIPHER_CTX_FLAG_WRAP_ALLOW’?
EVP_CIPHER_CTX_set_flags(cipher_ctx, EVP_CIPHER_CTX_FLAG_UNWRAP_WITHPAD);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EVP_CIPHER_CTX_FLAG_WRAP_ALLOW
app_main.c:2969:50: note: each undeclared identifier is reported only once for each function it appears in
At top level:
app_main.c:5402:19: warning: ‘base64en’ defined but not used [-Wunused-const-variable=]
static const char base64en[] = {
^~~~~~~~
Makefile:401: recipe for target 'app_main.o' failed
make[1]: *** [app_main.o] Error 1
make[1]: Leaving directory '/home/my_name/libacvp/app'
Makefile:387: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
And then make install subsequently also fails and acvp_app is not built. gcc also returns this error on Centos7. Ubuntu has openssl 1.1.0 and Centos7 has openssl 1.0.2. Taking the compiler's suggestion and replacing EVP_CIPHER_CTX_FLAG_UNWRAP_WITHPAD with EVP_CIPHER_CTX_FLAG_WRAP_ALLOW works and allows me to connect to the demo server on both Ubuntu and Centos7. Although the substitution works they do not seem interchangeable- I would be interested to know if others can replicate this error on their setup.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/cisco/libacvp/issues/129, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGnx9tK3VP8DP-UeNSuKK2aVJR1qNNdtks5uSzb2gaJpZM4WEzbZ.


updates suggested during the docs bug bash

Various formatting and clarity changes.
/cc @tdykstra @mairaw

I like the small, one-sentence summary under each bullet point.  Really great way to give a hint as to what the content it links to will talk about.

closing and opening to force a new build.


Support for abbreviated months with trailing periods

Strings such as "Jan. 1, 2013" fail to parse, due to the presence of the trailing period in the abbreviated month. Since this is a very common way to write out dates, it seems worthwhile to support.
The proposed fix is very simple - just remove all periods from the input text when they're followed by a space.
This does not break any of the current tests, and looking through the current pattern list I don't think it would break any functionality. Due to the requirement of a space after the period, formats such as "d.m.y" are preserved.
Any thoughts?

Coverage remained the same at 94.8% when pulling 7d877c47603c0710cb87ce0e5e6bbc72aef0a9fe on walkerdb:patch-2 into 41a69b5b34836654e41001b02d810e4c97d0d507 on KoffeinFlummi:master.

Coverage remained the same at 94.8% when pulling 7d877c47603c0710cb87ce0e5e6bbc72aef0a9fe on walkerdb:patch-2 into 41a69b5b34836654e41001b02d810e4c97d0d507 on KoffeinFlummi:master.

Thanks!


Benefits ?

Hey,
What are the main benefits for using this library instead of this

I don't think you can set the progress of the keyframe animation to something between 0 and 100, which is the whole point of my library - to create dynamic animations which have more than just two states.


Paypal not opened in app browser

Hi,
When I select paypal, it opens the url in the chrome app.
Is there a way to open it in my inappbrowser plugin ?

It is opened in the system browser if user doesn't have  the PayPal app installed. (see https://developers.braintreepayments.com/guides/paypal/overview/android/v2#how-it-works)

Great, thanks


Memecaptain api down?

All of our generated images - http://v1.memecaptain.com/d71383.jpg for instance - have been returning a Error 503 Service Unavailable since last week. Was there an API change, or this a known outage, or?

Thanks for reporting. This should be fixed now.
v1.memecaptain.com is on an older server that isn't as robust as the new ones. Although it sounds like you are primarily an API user and the new (v2) code does not focus on API as much as the v1 code.

Woot!  And productive again!
What should we do? Is there a new API we should transition to?

I'm working on adding an API to the new site (memecaptain.com), which performs better and is more stable. The v1.memecaptain.com API will be deprecated at some point after the new one is finished.

Is the v1 API down again?
HipChat's "Sassy" bot is returning "Sorry, the memecaptain.com API appears to be unavailable" and our old v1 links all appear to be broken.
Thanks.

Prior to v1 api going down, I did let the sassy people know - https://bitbucket.org/atlassianlabs/ac-koa-hipchat-sassy/issue/6/sassy-is-depressed-and-suicidal#comment-18662491
No response. (sadpanda)

(sadpanda) indeed.
Well thanks for following up.


funnel run command

This code is still a mess, so I'm not ready to merge it. Just want to get the code shared.

While trying to iron out some of the tricky details of this, I started thinking of a redesigned approach that is more similar to dsub. Here are some rough examples:
  funnel run 'md5sum' --stdin ~/input.txt --stdout gs://bkt/output.txt

  funnel run --script runscript.sh --in input ~/input.txt --out output gs://bkt/results.txt

  funnel run <<TPL
    'acme-aligner -f $factor -x $other -p1 $pair1 -p2 $pair2 -o $alignments'
    --in pair1 ~/pair1.fastq
    --in pair2 ~/pair2.fastq
    --contents other ~/chroms.txt
    --name pair1 'Pair 1 inputs'
    --desc pair1 'Pair 1 description'
    --type pair1 directory
    --out alignments gs://bkt/bowtie/alignments.bam
    --factor 5
    --image my-bowtie2
    --name 'Bowtie2 test'
    --volume /tmp
    --volume /opt
    --tag 'foo: bar'
    --cpus 10
    --ram 50GB
    --disk 1TB
    --description 'Testings an example of using `funnel run` for a bowtie2 command'
TPL

This format allows for all the little details to be available (name, contents, resources) in a more consistent and obvious way.
There's also a rough sketch of how you might use this to stitch together a workflow:
https://github.com/buchanae/funnel/blob/tes-client/src/funnel/cmd/run/run.go#L273


Invalid usage of publishCreate() :: Values must have an undefined, instead got ::

Sails: v0.10.3
sails-mysql: ^0.10.5
I've experiencing the error in the title when using the default blueprint controller for create.
Here is the error and Model.
error: Invalid usage of publishCreate() :: Values must have an `undefined`, instead got ::
{ name: 'bob',
  state: 1,
  id: 1,
  createdAt: Tue Aug 12 2014 02:51:46 GMT-0500 (CDT),
  updatedAt: Tue Aug 12 2014 02:51:46 GMT-0500 (CDT) }

/**
* Class.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs        :: http://sailsjs.org/#!documentation/models
*/

module.exports = {
    attributes: {
        id: {
            type: 'integer',
            unique: true
        },
        name: {
            type: 'string'
        },
        state: {
            type: 'integer'
        }
    }
};

Is that solved?

It's ok for me, thanks !

Is this resolved? Does the latest release clear things up? Can we close this?

I removed toJSON function from my model and work.


0.12.0

Upgrade DJL version from 0.11.0 to 0.12.0
Use criteria API in documentation
Use criteria.load() in jupyter notebook for v0.12.0 release
Allows quick test on traing for amazon review

Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report

Merging #1083 (5c12e43) into master (05ad89a) will decrease coverage by 0.47%.
The diff coverage is 63.31%.

@@             Coverage Diff              @@
##             master    #1083      +/-   ##
============================================
- Coverage     70.36%   69.88%   -0.48%
- Complexity     5085     5227     +142
============================================
  Files           501      511      +10
  Lines         22415    23375     +960
  Branches       2325     2501     +176
============================================
+ Hits          15772    16336     +564
- Misses         5403     5712     +309
- Partials       1240     1327      +87

Impacted Files
Coverage Δ

api/src/main/java/ai/djl/Device.java
71.11% <ø> (+0.89%)
:arrow_up:

api/src/main/java/ai/djl/ndarray/NDArray.java
73.25% <0.00%> (-1.31%)
:arrow_down:

...c/main/java/ai/djl/ndarray/internal/NDArrayEx.java
94.87% <ø> (ø)

.../java/ai/djl/repository/RepositoryFactoryImpl.java
76.74% <0.00%> (-1.83%)
:arrow_down:

.../src/main/java/ai/djl/repository/zoo/ModelZoo.java
54.00% <0.00%> (-18.81%)
:arrow_down:

api/src/main/java/ai/djl/util/Platform.java
43.47% <0.00%> (-5.36%)
:arrow_down:

.../main/java/ai/djl/zero/cv/ImageClassification.java
0.00% <0.00%> (ø)

...rc/main/java/ai/djl/sentencepiece/SpProcessor.java
77.27% <ø> (ø)

...rc/main/java/ai/djl/sentencepiece/SpTokenizer.java
63.63% <ø> (ø)

...ine/src/main/java/ai/djl/mxnet/engine/MxModel.java
61.11% <ø> (-1.06%)
:arrow_down:

... and 143 more

Continue to review full report at Codecov.

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


After document load, I can't find any of the Execute buttons on the page to add additional onClick handling

I'm using the "addLoadEvent" technique documented here (https://simonwillison.net/2004/May/26/addLoadEvent/)
to try to find the execute buttons on the page after "window.onload()" from the original page completes, so I can add some additional "onClick" handling logic.
But when I run the code, no buttons are found.
function findExecuteButtons() {
	var buttons = document.getElementsByClassName("opblock-control__btn"); //document.getElementsByTagName("button");
	console.log("found " + buttons.length + " elements");
	for (var i = 0; i < buttons.length; i++) {
		console.log("element[" + i + "]:: id: " + buttons[i]);
	}
}

function addLoadEvent(func) {
	var oldonload = window.onload;
	console.log("oldonload:: " + oldonload);
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function () {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}

addLoadEvent(findExecuteButtons);

How can I add some additional "onClick" handling logic to the Execute buttons?

Maybe you should check the rendered page with F12 and check whether this button is available. Otherwise I think it's more a question for the Swagger UI repo.

Thanks. I tried that. It looks like everything is loaded dynamically
(possibly using React?). The buttons just don't exist in the DOM until you
click the "Try it out" button...
On Tue, Apr 7, 2020 at 4:56 AM Rico Suter<EMAIL_ADDRESS>wrote:

Maybe you should check the rendered page with F12 and check whether this
button is available. Otherwise I think it's more a question for the Swagger
UI repo.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/RicoSuter/NSwag/issues/2769*issuecomment-610343492__;Iw!!F8U2Sj1VcA!gaqL5NMlIuFbvdX7X8fOvDSgky6_bPHsDs76C3Yb3cJTJnwPs_exZiw4B0b5F0I$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AG47XSSUROLYL7YM7ENHRS3RLMIE7ANCNFSM4L3AFTCQ__;!!F8U2Sj1VcA!gaqL5NMlIuFbvdX7X8fOvDSgky6_bPHsDs76C3Yb3cJTJnwPs_exZiw4D5sVl54$
.

--
Sr. Applications Engineer


incorrect link in pr template in .github

Current Behavior

The link to the Signed Commit is currently linking to the Not Found page.
Now it is:
../CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin

Expected Behavior

It should be changed to
https://github.com/layer5io/getnighthawk/blob/master/CONTRIBUTING.md#signing-off-on-commits-developer-certificate-of-origin

Screenshots/Logs

Environment

Host OS: Mac Linux Windows
Platform: Docker or Kubernetes
Meshery Server Version: stable-v
Meshery Client Version: stable-v

Contributor Resources

See the Contributing to getnighthawk.dev Website

🎨 Wireframes and designs for Nighthawk Site in Figma

See the Project Site section of GetNighthawk project doc
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

Hey @leecalcote, could you please assign this issue to me?

go ahead @AryanSharma9917


FIX Obsolete classes don't break the elemental area.

When the class for an elemental block is deleted, currently the elemental area simply fails to load.
This PR allows the elemental area to load, with a placeholder where the broken element is.

Broken elements have no 'chevron' icon button (cannot expand or open an edit form)
Broken elements always display a red "font-icon-block" icon as per the below example.
Broken elements have "This element is of obsolete type {classname}" for the title

This is the same message displayed for pages when a page class is removed

Broken elements' summaries include the title of the block (if any) and some basic info (you can archive, won't display on front end)
You can archive the broken element - it has no other options
You can create new blocks
You can edit your other blocks
You can save/publish/etc the other blocks
You can save the page
You can publish the page

Parent issue

https://github.com/silverstripe/silverstripe-elemental/issues/708

UX advice:

The example is clear enough but the wording could use some tweaking - particularly to indicate that this broken block won't display in the front end.

When I rename block, I get Fatal error: Cannot declare class SilverStripe\ElementalBannerBlock\Block\BannerBlocks, because the name is already in use in /var/www/mysite/www/vendor/silverstripe/elemental-bannerblock/src/Block/BannerBlock.php on line 0. Are you changes should solve this problem?

When I rename block, I get Fatal error: Cannot declare class SilverStripe\ElementalBannerBlock\Block\BannerBlocks, because the name is already in use in /var/www/mysite/www/vendor/silverstripe/elemental-bannerblock/src/Block/BannerBlock.php on line 0. Are you changes should solve this problem?

FYI for anyone seeing this in the future: We discussed this on slack. Showing friendly messages for errors like that one are out of scope for this PR.

I've modified the formatting for summaries of broken blocks. Broken block summaries will now wrap, which allows us to keep all of the parts of the message as already written.
Non-broken block summaries still display as they already did. Changing that would be out of scope

When I rename block, I get Fatal error: Cannot declare class SilverStripe\ElementalBannerBlock\Block\BannerBlocks, because the name is already in use in /var/www/mysite/www/vendor/silverstripe/elemental-bannerblock/src/Block/BannerBlock.php on line 0. Are you changes should solve this problem?

FYI for anyone seeing this in the future: We discussed this on slack. Showing friendly messages for errors like that one are out of scope for this PR.

I figured out what was the reason for this. When I renamed blocks to break them, some changes brake composer autoupload PSR-4 rules.

Now solution works nice. Do you need to fix Travis failed build?

No, we're ditching Travis this sprint anyway - the fact that it's failing on a behat test that passed in github actions CI tells me that the travis failure is almost certainly just a timing issue and rerunning it would let it pass, so it's not something to be actually concerned about now that we have github actions CI running.


can react.createClass mixins two Reflux.connect stores?

code like
var Test=React.createClass({
mixins: [Reflux.connect(oneStore,"one"),Reflux.connect(twoStore,"two")],

Hi @aoyunfeng,
Yes, you can use it like:
export default React.createClass({

    contextTypes: {
        lang: React.PropTypes.string
    },

    mixins: [
        Reflux.connect(AppStore, 'appContext'),
        Reflux.connect(SyncStore, 'syncStatus'),
        Reflux.listenTo(AuthenticationStore, 'onAuthentication')
    ],

In addition to tjankowski's answer, you'd also do this in the ES6 API via:
class MyClass extends Reflux.Component
{
    constructor(props)
    {
        super(props);
        this.stores = [OneStore, AnotherStore];
    }
}

The states of both Reflux.Store objects would get merged into the state of MyClass.


Negative numbers not lexed correctly

Currently, negative numbers are not being tokenized and instead throws an error.
would have to go back and rework how numbers for expressions are converted into tokens in the lexer.rs file.

Negative numbers are now lexed correctly and converted to their unsigned equivalent.


FEATURE REQUEST: Develop a react component named as MyProfile.js

Make a new react component named as PredefinedTransactions.js in client/src/component folder with the below designs and elements.

Figma link for further references https://www.figma.com/file/LRX1qh4axVMFBn9qVbpSEK/Expense-Tracker?type=design&node-id=0-1&mode=design&t=rPSBKPhr4weB7Qjw-0 screen 4
Note- Please keep in mind that this a subcomponent so develop it in such a way that it can be integrated in a parent component.

I can build it if assigned.

@GautamRaj-12 sure


Multiple layouts

Hello,
I own two different keyboard and eaxh needs different key customization. If I try to produce two exkeymo layours, then whenever I install the new one, it replaces (updates) the old one. Is it possible to have two installation in the same system?
thanks,
Filippo Zonta

ExKeyMo produces an app that provides custom keyboard layouts. The app has an application ID that can't be customized. Android treats apps with the same app ID as the same app. That's why you can't have two different ExKeyMo apps installed.
I see 2 options:

If you need only one layout per keyboard (so 2 layouts total) you can just add the second layout in ExKeyMo.
Also you can create your custom app based on custom-keyboard-layout project.


Batch CO identifier search API endpoint

Feature or enhancement
I would like to generate a DwC export from a newline-delimited file/list of CO identifiers.
The current process for doing this:

Paste all the identifiers into the CO Match task
Click match, and wait while it the ui makes a request for each identifier (it does 2-3/s in my dev environment, less in sandboxes)
Apply a temporary tag to the objects
Use the Filter CO task to select all COs with the temporary tag
Select all and click DwC Export

This is manageable when you're matching a couple dozen identifiers, but matching 5k identifiers takes 20+ minutes in the CO Match step. Having a batch identifier search endpoint would significantly improve the experience for large searches.
Location
CO Match
Screenshot, napkin sketch of interface, or conceptual description
No response
Your role
No response

This is now possible via the match facet it CO filter.


FIX: explicit sampling frequency to avoid numerical error

The length of the slices used to be computed from an estimation of frequency, which can be lead to numerical error when the fit and predict dataset have different time length.
Instead, I changed it to an explicit definition.
Note that the print of one test was actually incorrect.

you'll need to update the what's new to document the change

OK what shall I write there ?
On Friday, 11 December 2015, Alexandre Gramfort<EMAIL_ADDRESS>wrote:

you'll need to update the what's new to document the change
—
Reply to this email directly or view it on GitHub
https://github.com/mne-tools/mne-python/pull/2696#issuecomment-164037928
.

the description of the bug fix in the Bug section.

LGTM, @kingjr ready from your end?

thanks @kingjr


Refactored meta management

There was a bug when hiding pages or folders from navigation (unknown property), so I refactored the check if meta information for an item (page/folder) has been changed.
Logic is still confusing, improve in future.

deployed with version 1.3.4


Enforce licenses

core never enforced header licenses due to a pom error.  Using new parent that enforces licenses.
All headers have been brought in sync using mvn license:format
Due to a change in license plugin configuration, a trailing blank line is removed from all files.
parent also adds spotbugs execution

@myronkscott I have these options:

Disable spotbugs for now and deal with fixing violations in a separate PR
Fix them in this PR

The downside of option 2 is that the diff is already overwhelming.  But it's fine with me.

Disable spot bugs for this repo. Too much legacy to deal with. I don’t think it is worth it.


ACH server API documentation broken links

ACH Version
all
What were you trying to do?
Reading the documentation there is a link for the REST API that goes to a 404 when trying to follow how to post a JSON file.
https://moov-io.github.io/ach/create-file/#upload-a-json-representation

This takes you to a link that is no longer valid.
https://api.moov.io/#operation/createFile
The same file errors below on the same page for creating a file
https://api.moov.io/#operation/createFile
What did you expect to see?
It would be nice to have a link to the server API specification from the readme and have this broken link fixed.
I think that we want people to go here. But need to confirm with @adamdecaf if this is the most up-to-date API specification
https://moov-io.github.io/ach/api/#get-/files/-fileID-
What did you see?
none
How can we reproduce the problem?
visit the webpage

Thanks for reporting this @wadearnold! The docs will refresh in a minute or two.


Add notebook for Kaggle importers

Summary

How to test

Checklist

[ ] I have added unit tests to cover my changes.
[ ] I have added integration tests to cover my changes.
[ ] I have added the description of my changes into CHANGELOG.
[x] I have updated the documentation accordingly

License

[ ] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[ ] I have updated the license header for each file (see an example below).

# Copyright (C) 2023 Intel Corporation
#
# SPDX-License-Identifier: MIT

fixed at 2e68f4a8a4ae6c77b1321ab426b2cb3af55528ed

View entire conversation on ReviewNB

fixed at 2e68f4a8a4ae6c77b1321ab426b2cb3af55528ed

View entire conversation on ReviewNB

It sounds great. Let me create a new requirement for this.

View entire conversation on ReviewNB


feat(Angular Google Maps): Add Support for Advanced Markers in the Angular Google Maps

Feature Description
please add support for advanced markers in Angular Google Maps or can you please specify when it would be added?
Use Case
No response

Is there any update on this? I also would like to use Advanced Markers as described in https://cloud.google.com/blog/products/maps-platform/announcing-highly-customizable-higher-performance-markers.

Any update on this? AdvancedMarkerView are a breakthrough in performance and are highly useful.

Would be interested in this too.

Would really like this feature, it's a blocker for me at the moment.

Any example of how to use it as plain JS in angular component ?

Bump, please! This is very important especially when needing to define colors for the markers. As per the previous question, how did you guys manage to get around this? It's a shame that angular and google maps are not jelling well together you would think that the two teams would communicate.

@amysorto How likely is it that a minor issue gets addressed by Angular Devs? If not very much can there be a debate to raise the priority?

@crisbeto do you think this can be looked at? Is there any way we could help?

I'll raise the priority to a P3, although we don't plan to work on this feature soon at this time. Although we would happily accept a community PR for this.

Hi I can take care of it if you don't mind.  @amysorto

@OgiSss @crisbeto thx for the advanced marker support.
MapAdvancedMarker is missing icon
could you add that pls?

Support for Advanced Markers with Marker Clusterer is currently missing. This is related to https://github.com/angular/components/issues/29187 and https://github.com/angular/components/issues/23695.

This was resolved by #28525.


Add simple DNS server to receive exfiltrated data

This is a simple proof of concept DNS server implemented in Python 2 using dnslib to receive and decrypt credentials using the RSA private key. The code is based on the crypto branch that I submitted in #10.
Closes #6.

I added a small proof of concept tool to test the DLLwithout having to setup a VM.


Test to validate kdump with dumprestart from HMC.

This test triggers dump from HMC and validates vmcore with different SMT values.
Signed-off-by: Pavithra<EMAIL_ADDRESS>

Raised new PR


TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode

Description
I am just trying to decode a token in a React project.
Reproduction
   import jwt_decode from 'jwt-decode';
   ....
    try {
      let token: string = state.access;  // Not necessary, just here to prove the type is correct
      let decoded: any = jwt_decode(token, { header: true });
      if (Date.now() >= decoded.exp * 1000) {
        return put(logoutAction.success(null));
      }
      setToken(state.access);
      yield put(fetchLoginAction.success(state));
    } catch (e) {
      console.log(e);
    }

When using Google Chrome debugger, once I reach the jwt_decode call, the debugger jumps out of the current function. (without going into the catch block).
Then I tried to dig into the jwt_decode call and this is what I got from the debugger:

Environment
I am using Typescript 3.2.2 and these libraries:

"jwt-decode" ^2.2.0
"@types/jwt-decode" ^2.2.1

Could you try to see if you still get this error when upgrading to v3.0.0-beta.1? That includes an ESM build that might player nicer with your webpack setup.

Module not found: Can't resolve 'jwt-decode' in "....."

Oops, I made an error in the package.json, v3.0.0-beta.2 should fix that :)

Neither :/

Here's a link to a React/Typescript project on codesandbox, it seems to be working fine with the latest beta version. https://codesandbox.io/s/keen-keldysh-r93nn?file=/src/App.tsx
Can you provide some more information so we can figure out what's going wrong?

I'm closing this because there has not been a response to my latest comment.
Feel free to leave a comment if your issue still has not been resolved and I'll re-open this issue.


Suggestion for Enum name cleanup logic

Currently Enum name cleanup follows the same naming cleanup logic as classes for example, meaning invalid characters like ':' are just removed.
But Enum names are generally important to keep as defined in the OpenAPI spec and Kiota shouldn't take much responsability on itself to change the names defined in the specification. The only motivation for change could be to remove or replace invalid characters. Here are a few examples for discussion
1.
"enum": [
    "KIOTA:CSHARP:ENUM",
    "KIOTA:CSHARP:CLASS",
    "KIOTA:JAVA:ENUM",
    "KIOTA:JAVA:CLASS"
],

"enum": [
    "kiota:chsarp:enum",
    "kiota:csharp:class",
    "kiota:java:enum",
    "kiota:java:class"
],

"enum": [
    "ENABLED",
    "DISABLED",
],

"enum": [
    "enabled",
    "disabled",
],

In example 1, the invalid characters should be replaced with _, as doing anything else requires changing the case of the whole name to keep the visual separation and namespacing and it quickly becomes an impossible logic. Keeping the uppercase naming in this example is a good idea.
In example 2, again the invalid characters should be replaced with _. Also, here its good idea to keep the lowercase naming.
In example 3, the names could be transformed to pascal case but it could also stay the same, so that the cleanup logic could be kept the same.
In example 4, the names could be transformed to pascal case but it could also stay the same, so that the cleanup logic could be kept the same.

Thanks for the suggestion.
Unfortunately this is not something that we can fix before the next major version of Kiota.
The rationale is the same as the one provided here


Doc page should clearly mention how to try out use cases from begin to end

Description:
For an example "Add Basic Auth Backend Security via CRs" docs describes the insight on the topic.
But I believe it is better if we document the full scenario, from beginning to end with clear steps so that somebody can try out the scenario easily. We have followed this approach in APIM in most of the times. e.g. https://apim.docs.wso2.com/en/4.1.0/design/endpoints/endpoint-security/basic-auth/
The steps and concept behind might be simple, but it would be nice if we follow the above mentioned approach so that evaluators will find it well convenient and learn stuff quickly, since this is a very common APIM use case.
This idea may apply to most of the other common APIM use cases too.

Fixed with https://github.com/wso2/docs-apk/pull/383


Can we swap Azure SQL Server Standard License to Azure SQL Web License?

Is it possible to Swap Azure SQL Server Standard License with Azure SQL Web License?
Please provide some supported Docs or Links.

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

ID: 47208193-a5de-83a9-6209-25173df91cb3
Version Independent ID: 5d41c8f8-9be9-5153-aae1-493afd03f31d
Content: Supported Version and Edition Upgrades (SQL Server 2016) - SQL Server
Content Source: docs/database-engine/install-windows/supported-version-and-edition-upgrades.md
Product: sql
Technology: install
GitHub Login: @cawrites
Microsoft Alias: chadam

@SarveshPandey -- thank you for your question.  Please consider these resources:

SQL Server on Microsoft Q&A
DBA Stack Exchange
Stack Overflow

@cawrites -- please look into this issue.

@SarveshPandey we appreciate your inquiry regarding Microsoft's products and services. Licenses between two different products and/or services are generally not swappable.
The pricing models are different.
https://azure.microsoft.com/en-us/pricing/details/sql-database/single/
https://www.microsoft.com/en-us/sql-server/sql-server-2019-pricing
https://azure.microsoft.com/en-us/pricing/details/virtual-machines/sql-server-enterprise/
When you say "Azure SQL Server Standard License" do you mean running SQL Server on a virtual machine (SQL VM)? If so I would refer you to the links in this message that will provide the pricing for the options you are considering.
Please advise if these links provide you the information you were seeking.


Error "Cannot read property '_shield' of undefined" when executed subscription

"apollo-server-core": "^3.10.0",
"apollo-server-express": "^3.10.0",
"express": "^4.18.1",
"graphql": "^16.5.0",
"graphql-subscriptions": "^2.0.0",
"graphql-ws": "^5.9.1",
"nexus": "^1.3.0",
"nexus-shield": "^2.2.0",
"ts-node-dev": "^2.0.0",
"ws": "^8.8.0"

I got the following error when i executed the subscription on the playground.
"Cannot read property '_shield' of undefined",

I have already seen related issue, and modified the code as below, but the error is not resolved.
wrong ..?
 const server = new ApolloServer({
    context: ({ req }) => {
      return { _shield: { cache: {} } }
    },
    schema,
...

How can i solve this error ?🙏
index.ts
import { ApolloServer } from "apollo-server-express"
import express from "express"
import { WebSocketServer } from "ws"
import { createServer } from "http"
import { useServer } from "graphql-ws/lib/use/ws"
import { ApolloServerPluginDrainHttpServer } from "apollo-server-core"

import { makeSchema } from "nexus"
import { nexusShield } from "nexus-shield"
import { join } from "path"

import types from "./types"

export const schema = makeSchema({
  types,
  plugins: [nexusShield({})],
  outputs: {
    typegen: join(__dirname, "./src/generated", "nexus-typegen.ts"),
    schema: join(__dirname, "./src/generated", "schema.graphql"),
  },
})

const start = async () => {
  const app = express()

  const httpServer = createServer(app)

  const wsServer = new WebSocketServer({
    server: httpServer,
  })

  const serverCleanup = useServer({ schema }, wsServer)

  const server = new ApolloServer({
    context: ({ req }) => {
      return { _shield: { cache: {} } }
    },
    schema,
    plugins: [
      ApolloServerPluginDrainHttpServer({ httpServer }),

      {
        async serverWillStart() {
          return {
            async drainServer() {
              await serverCleanup.dispose()
            },
          }
        },
      },
    ],
  })

  await server.start()

  server.applyMiddleware({
    app,
    path: "/",
  })

  const port = 4793

  httpServer.listen(port, () => {
    console.log(`🚀 Server ready at http://localhost:${port}`)
  })
}

start()

types.ts
import { extendType, objectType, stringArg, subscriptionType } from "nexus"
import { PubSub } from "graphql-subscriptions"

const pubsub = new PubSub()

const mutations = extendType({
  type: "Mutation",
  definition(t) {
    t.field("createPost", {
      type: "Post",
      args: {
        content: stringArg(),
        author: stringArg(),
      },
      resolve: async (parent, args, ctx, info) => {
        await pubsub.publish("createPost", {
          data: {
            author: "author",
            content: "content",
          },
        })

        return {
          author: args.author,
          content: args.content,
        }
      },
    })
  },
})

const subscription = subscriptionType({
  definition(t) {
    t.field("createPost", {
      type: "Post",
      subscribe() {
        return pubsub.asyncIterator("createPost")
      },
      async resolve(eventPromise) {
        const event: any = await eventPromise
        return event.data
      },
    })
  },
})

const Post = objectType({
  name: "Post",
  definition(t) {
    t.id("id")
    t.string("author")
    t.string("content")
  },
})

export default {
  mutations,
  subscription,
  Post,
}

The issue appears because you are not setting a context for your subscription.
The apollo context only applies to queries and mutations, but not to subscriptions.
You need to add it to useServer, see https://www.apollographql.com/docs/apollo-server/data/subscriptions/#operation-context.
I will the error message you get if the context is not present, but I will leave it as mandatory since rules probably won't work anyway if it is not present.


Add tslint to devDependencies

Would it make sense to also run linting on the CI?

Possibly. Once I get the prettier PR merged into jupyterlab, I would like to add it to this repo as well. That changes the way that we use linting a bit, so we could add linting to CI after.


Question: Integrate ability to set which path to cd before Cargo command in terminal?

Version of the extension: 1.3.8
When executeCargoCommandInTerminal is set to true, it would be nice to be able to override which directory the extension cds into before it runs the Cargo command. This is useful, for example, when the binary is looking for resources in the current directory, but they only exist in the target/debug. I couldn't find any way to influence what Cargo considers its working directory through a .cargo/config file.
Thanks.

@redactedscribe,
The current working directory is a directory where the chosen Cargo.toml exists.
It is intuitive.

Do you have any suggestion on how to have a better workflow for this problem? The compiled binary looks for the DLLs in its directory, but cannot find them when cargo run from the project root. This means I cannot do the Cargo: Run command from VS Code but instead must use another terminal which is in target/debug.

@redactedscribe,
I suppose I can add a new configuration parameter named "cargoCommandCwd".
If it was null, then the extension would behave as it behaves now, otherwise the extension would execute a command in the specified cwd.
It is that simple.

@KalitaAlexey This sounds useful in my case at least. If implemented, I think the configuration parameter should have a comment suggesting this setting not be changed under normal circumstances.

@redactedscribe,
The configuration parameter would be described in the documentation.
Consequences would be described.
I think it is enough.
Do you?

In the docs is fine too, yes.


[Editor] Change the cursor when we switch to FreeText mode (bug 1787297)

/botio integrationtest

/botio-windows integrationtest

I ran integration tests locally on windows and I can't reproduce this issue which very unlikely related to this patch.
So I merge it and I'll keep an eye open on those failures.


missing functions

Hi, when I try to use phantoman, I received error messages about missing functions.
Looking at http://codeception.com/docs/03-ModulesAndHelpers I have inserted empty stubs into Phantoman.php and it all works fine.
Specifically I needed to add these functions and properties.
// disable all inherited actions
public static $includeInheritedActions = false;
 // include only "see" and "click" actions
public static $onlyActions = array();

// exclude "seeElement" action
public static $excludeActions = array();

public function _beforeSuite($settings = array()) {
}

public function _getName() {
}
public function _cleanup() {
}
public function _resetConfig() {
}

// HOOK: after suite
public function _afterSuite() {
}

// HOOK: before each step
public function _beforeStep(\Codeception\Step $step) {
}

// HOOK: after each step
public function _afterStep(\Codeception\Step $step) {
}

// HOOK: before test
public function _before(\Codeception\TestCase $test) {
}

// HOOK: after test
public function _after(\Codeception\TestCase $test) {
}

// HOOK: on fail
public function _failed(\Codeception\TestCase $test, $fail) {
}

sorry not all working fine
tests run OK from console and phantom starts and stops
BUT
there are PHP log errors related to phantoman
[18-Jun-2015 12:20:27 Australia/Canberra] PHP Warning: Missing argument 2 for Codeception\Extension\Phantoman::__construct(), called in C:\inetpub\wwwroot\cmfive-windowsAdaptation\system\composer\vendor\codeception\codeception\src\Codeception\Configuration.php on line 313 and defined in C:\inetpub\wwwroot\cmfive-windowsAdaptation\system\composer\vendor\site5\phantoman\src\Phantoman.php on line 77
[18-Jun-2015 12:20:27 Australia/Canberra] PHP Notice: Undefined variable: options in C:\inetpub\wwwroot\cmfive-windowsAdaptation\system\composer\vendor\site5\phantoman\src\Phantoman.php on line 79
[18-Jun-2015 12:20:27 Australia/Canberra] PHP Warning: array_merge(): Argument #2 is not an array in C:\inetpub\wwwroot\cmfive-windowsAdaptation\system\composer\vendor\codeception\codeception\src\Codeception\Lib\Console\Output.php on line 28
[18-Jun-2015 12:20:27 Australia/Canberra] PHP Warning: Missing argument 2 for Codeception\Extension\Phantoman::__construct(), called in C:\inetpub\wwwroot\cmfive-windowsAdaptation\system\composer\vendor\codeception\codeception\src\Codeception\Configuration.php on line 313 and defined in C:\inetpub\wwwroot\cmfive-windowsAdaptation\system\composer\vendor\site5\phantoman\src\Phantoman.php on line 77
[18-Jun-2015 12:20:27 Australia/Canberra] PHP Notice: Undefined variable: options in C:\inetpub\wwwroot\cmfive-windowsAdaptation\system\composer\vendor\site5\phantoman\src\Phantoman.php on line 79
[18-Jun-2015 12:20:27 Australia/Canberra] PHP Warning: array_merge(): Argument #2 is not an array in C:\inetpub\wwwroot\cmfive-windowsAdaptation\system\composer\vendor\codeception\codeception\src\Codeception\Lib\Console\Output.php on line 28

Hi there. Can you post your codeception.yml and acceptance.yml configs? Thanks!

Closing this issue for now. If this is still a problem, please re-open with the added information of your configuration files. Thanks!


Heapster yaml doesn't have binding in

Heapster will not run as it doesn't have a binding. It has the service account info there but it doesn't bind it anywhere.
Upstream use this yaml for the binding:
https://github.com/kubernetes/heapster/blob/master/deploy/kube-config/rbac/heapster-rbac.yaml
So we should copy that over to ours as well or add in the missing binding.

+1


Reference code finalization prior to submission

All references should have any changes in PR for 4 months before submission, and PRs merged in 3 months before submission. Changes should include:

Any functional changes to the reference
Support for all possible batch sizes and other hyper parameter settings, as well as any batching schemes
Proper logging

Reason:
Timeline for getting changes to cuDNN (or other vendor libraries) and frameworks into an official release as per MLPerf requirements for Closed division submission is about 2 months from code complete.  So any development in a vendor library takes (say) 1 month.  That means one would like a code complete reference implementation to tune for 3 months prior to release.

SWG Notes:
This sounds like it describes a mature benchmark. There is a spectrum of approaches to work towards this.
A few options:

One option is to give a "drop deadline" where all changes are dropped after this deadline.
Another option is to have people "vote" or share expectations as to if something is stable, so we can at least narrow things down and set expectations.

To explore:
Have two buckets, "stable" and "experimental". We have some procedure to put "things" (benchmark level? scale level?) into buckets. Expectation is clear, but what happens if someone wants to change something stable near the deadline? How would this impact how we report results? What is the bar to change a stable benchmark.
AI(Everyone) - Think on the questions above.

This has been handled the best we could for v0.7.


🐛 EXDate now takes TZID into account

Previously, the EXDATE did not take the timezone into account correctly. This meant that when excluding dates based on EXDATE, it would not exclude. Meaning with the VEVENT definition shown below, that for the last week of 2022, it would return;

2022-12-26 11:15:00 +01:00
2022-12-27 11:15:00 +01:00
2022-12-28 11:15:00 +01:00
2022-12-29 11:15:00 +01:00
2022-12-30 11:15:00 +01:00

This was because the EXDATES were present as 2022-12-30T11:15:00, which then converted to 2022-12-30T12:15:00 +01:00, while it should have been 2022-12-30T11:15:00 +01:00.
With this PR in place, the TZID is taken into account in EXDATE's and now it correctly returns;

2022-12-26 11:15:00 +01:00
2022-12-27 11:15:00 +01:00
2022-12-29 11:15:00 +01:00

Example VEVENT;
BEGIN:VEVENT
DTSTART;TZID=Europe/Amsterdam:20221118T111500
DTEND;TZID=Europe/Amsterdam:20221118T114500
RRULE:FREQ=WEEKLY;UNTIL=20230101T225959Z;BYDAY=FR,MO,TH,TU,WE
EXDATE;TZID=Europe/Amsterdam:20221230T111500
EXDATE;TZID=Europe/Amsterdam:20221228T111500
EXDATE;TZID=Europe/Amsterdam:20221215T111500
EXDATE;TZID=Europe/Amsterdam:20221214T111500
DTSTAMP:20221230T184331Z
<EMAIL_ADDRESS>CREATED:20220803T220529Z
DESCRIPTION:The usual..
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:DPD Standup
TRANSP:OPAQUE
END:VEVENT

Codecov Report

Merging #8 (766f6b2) into main (63ca339) will increase coverage by 5.67%.
The diff coverage is 60.00%.

@@            Coverage Diff             @@
##             main       #8      +/-   ##
==========================================
+ Coverage   73.91%   79.59%   +5.67%
==========================================
  Files          34       34
  Lines        1614     1617       +3
==========================================
+ Hits         1193     1287      +94
+ Misses        421      330      -91

Impacted Files
Coverage Δ

src/ical_library/ical_components/v_journal.py
69.09% <0.00%> (-1.28%)
:arrow_down:

src/ical_library/ical_components/v_todo.py
74.62% <0.00%> (-1.14%)
:arrow_down:

src/ical_library/ical_properties/periods.py
44.23% <71.42%> (+10.57%)
:arrow_up:

src/ical_library/ical_components/v_event.py
95.58% <100.00%> (+0.06%)
:arrow_up:

src/ical_library/ical_components/v_timezone.py
95.09% <100.00%> (ø)

src/ical_library/base_classes/component.py
92.22% <0.00%> (+1.03%)
:arrow_up:

src/ical_library/ical_components/v_calendar.py
88.23% <0.00%> (+2.94%)
:arrow_up:

src/ical_library/help_modules/property_utils.py
70.00% <0.00%> (+3.33%)
:arrow_up:

src/ical_library/ical_properties/rrule.py
85.10% <0.00%> (+3.54%)
:arrow_up:

...cal_library/ical_components/abstract_components.py
82.35% <0.00%> (+8.40%)
:arrow_up:

... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Updated iterator for Microsoft.Azure.Cosmos

Module: 05
Lab/Demo: 09
Fixes # . issue 18
Changes proposed in this pull request:

Replaced the usage of the outdated Azure.Cosmos package with Microsoft.Azure.Cosmos
Changed the code and instructions to reflect the best practice method of iterating through query results

Reviewing proposed changes


Custom background - dimensions wrong?

Please verify the pixel dimensions, what's noted here doesn't visually match the given samples. See "Size: 512 x 631" for the calendar panel. The height seems way too small.

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

ID: 104c1570-b5b0-fe02-0d8c-c3d31518e8d7
Version Independent ID: 104c1570-b5b0-fe02-0d8c-c3d31518e8d7
Content: Set up and manage Teams Rooms on Windows custom backgrounds - Microsoft Teams
Content Source: Teams/rooms/custom-backgrounds.md
Service: msteams
Sub-service: itpro-rooms
GitHub Login: @tonysmit
Microsoft Alias: tonysmit

To make it easier for you to submit feedback on articles on learn.microsoft.com, we're transitioning our feedback system from GitHub Issues to a new experience.
As part of the transition, this GitHub Issue will be moved to a private repository. We're moving Issues to another repository so we can continue working on Issues that were open at the time of the transition. When this Issue is moved, you'll no longer be able to access it.
If you want to provide additional information before this Issue is moved, please update this Issue before December 15th, 2023.
With the new experience, you no longer need to sign in to GitHub to enter and submit your feedback. Instead, you can choose directly on each article's page whether the article was helpful. Then you can then choose one or more reasons for your feedback and optionally provide additional context before you select Submit.
Here's what the new experience looks like.
Note: The new experience is being rolled out across learn.microsoft.com in phases. If you don't see the new experience on an article, please check back later.
First, select whether the article was helpful:

Then, choose at least one reason for your feedback and optionally provide additional details about your feedback:

Article was helpful
Article was unhelpful

Finally, select Submit and you're done!


rf: clean up listing types, parsing [S3C-184]

No longer use 'Basic' listing type.
Move JSON parsing for 'DelimiterVersions' to metadata wrapper to be consistent with what we do for other listing types.
Add some more assertions to listing tests.
Note that it seems we still use 'Delimiter' listing type for listing buckets and for internal bucket listing, such as listing objects inside a mpuBucket.

@ironman-machine

Hello @electrachong
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "CLEANUP/listingTypes"}
Please follow http://ci.ironmann.io/gh/scality/Integration/12760 for CI status.

@ironman-machine

Hello @electrachong
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "CLEANUP/listingTypes"}
Please follow http://ci.ironmann.io/gh/scality/Integration/12787 for CI status.

end to end passed: http://ci.ironmann.io/gh/scality/Integration/12794


Closing modal dialog causes app to crash on older Android versions (API 17 or 19)

I am facing an issue with the modal dialog. When closing the dialog (ie. calling ModalDialogParams.closeCallback() (see modal-view.ts l.29), the app crashes. This happens in the application that I am developing for a custumor, as well as in the sdk-examples app.
I have not found any workarounds or solutions so far.

See also https://github.com/NativeScript/NativeScript/issues/3547

duplicated with #3547


matrix attr for canvas should work correctly

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

Reproduction link

Steps to reproduce

See the demo of g, g-canvas and g-svg

What is expected?

The rendering result of g-canvas and g-svg should be same with g.

What is actually happening?

The rendering result of g-canvas and g-svg is not same with g.

Environment
Info

g-canvas
0.3.5

g-svg
0.3.5

System
Mac OS

Browser
Google Chrome 77.0.3865.90

关掉 issue，提错仓库了。


[TypeCheckEffects] Diagnose type mismatches for thrown errors in contexts that throw Never.

Previously, this mistake slipped through the effects checker (and crashed in SILGen) because it used a fallback type of any Error if a catch node had a null thrown error type. This change also fixes an issue where thrown error type mismatches were not diagnosed at all in autoclosures.
Resolves: rdar://124623418

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test


Add a Codacy badge to README.rst

Pull Request Test Coverage Report for Build 58

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 63.492%

Totals

Change from base Build 56:
0.0%

Covered Lines:
680

Relevant Lines:
1071

💛  - Coveralls


Concept combobox doesn't play well with spaces

If typing in the concept box and you type the entire genus –space – species name, you won’t come up with the right concept, giving users a false sense of what may/not be in the KB

This is known. The JavafX combobox eats spaces when the popup is open.

Let us know when you are going to work on this, as we have other suggestions that will help us.

Found a workaround for this. The root cause is a long-standing bug in the skin of a JavaFX combobox. I applied a workaround I found on stackoverflow. It's kind of a hack that uses com.sun packages. When doing the port to JDK 11 (#40) these packages are moved to javafx.scene.control.skin.
Note, that the workaround consumes the space keystroke. So the space won't appear in the pop up. bird water sampler would appear as birdwatersampler but the filtering works so the user will still get the results they are expecting.

Hack code:
   ComboBoxListViewSkin<T> skin = new ComboBoxListViewSkin<>(comboBox);
    skin.getPopupContent().addEventFilter(KeyEvent.ANY, e -> {
        if (e.getCode() == KeyCode.SPACE) {
            e.consume();
        }
    });
    comboBox.setSkin(skin);


Error: Can't find app.py

while running the command python app.py --help, getting an error can't find app.py
please let me know if I am missing any steps

Sorry @msbhatt2018, refactored a lot of stuff and did not update the readme file.  Please be aware this is on ongoing experiment and we will sometimes break some stuff :) You can use python cli.py --help instead of app.py.


Fix master branch

Remove the dependency of pycoreir. It's never been used in any tools (it was used in the old PnR tools).
This should also fix the error in travis.

Thanks Keyi! Changes were simple/obvious so I'm gonna shortcut this and merge it myself, hope that's okay.