[windows - trash] bug: delete can't handle non ascii characters

Did you check the docs and existing issues?

[X] I have read the docs
[X] I have searched the existing issues

Neovim version (nvim -v)
NVIM v0.10.0-dev-2397+ga9f578b7a
Operating system/version
Windows 11
Describe the bug
When trying to delete a file with non ascii characters on its name with the delete_to_trash = true option enabled, oil.nvim willl silently fail.
What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce

nvim -u repro.lua
:Oil<cr>
o (enter insert mode on a new line)
á<esc>:w<cr> (create a new file with the name á) and o (confirm)
dd:w<cr> (delete the file with the name á) and o (confirm)

Expected Behavior
oil.nvim should be able to send the file to the windows trash.
Directory structure
No response
Repro
-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  {
        "stevearc/oil.nvim",
        config = function()
            require("oil").setup({
              -- add any needed settings here
	      delete_to_trash = true,
            })
        end,
  },
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

Did you check the bug with a clean config?

[X] I have confirmed that the bug reproduces with nvim -u repro.lua using the repro.lua file above.

I suspect that this bug has something to do with the weird encoding windows uses by default on powershell. When trying to debug this, I found that on this line, $path has no value.
If I run the command from powershell directly, this does not happen (i.e. the command works as intented). This leads me to believe that the encoding used by Lua and the one used by powershell is differen (in particular, the input encoding, because the results send by powershell when listing trash entries has no problems with non-ascii characters). I tried using the same trick used when listing files from the trash, but it didn't work.
My understanding is that:

Lua only sees strings as arrays of bytes, but I don't know if this means using UTF-8 for encoding or the underlying windows representation.
powershell encoding is weird (the answer has in depth information about it). I tried using multiple different combination of values for [Console]::InputEncoding, [Console]::OutputEncoding and $OutputEncoding, but I couldn't solve the bug.

You're correct that the lua strings are just byte arrays. To figure out the encoding, you'll have to look for the source of those strings. In this case, it's the list command, for which you're manually specifying an encoding of UTF-8. So I think we can say with some confidence that the strings are going to be UTF-8 encoded.
I'd recommend trying to get a super simple repro script. Something that just runs the delete_cmd on a hard-coded file name. Try it with vim.fn.jobstart, and maybe also try it with vim.fn.system, and also vim.system if you're on nightly or vim.loop.spawn if you're not. Isolating the invocation should help us narrow down where the problem could be.

I think I got it. Current hypothesis: the problem has something to do with nvim_chan_send.
With this minimal example (where C:\Users\pcx\Desktop\á is a file that already exists):
if not id then
	id = vim.fn.jobstart({
		"powershell",
		"-NoProfile",
		"-NoLogo",
		"-ExecutionPolicy",
		"Bypass",
		"-Command",
		"-",
	}, {
		on_stdout = function(_, data)
			vim.print(data)
		end,
	})
end
vim.api.nvim_chan_send(
	id,
	[[
$aux = 'C:\Users\pcx\Desktop\á'
$path = get-item $aux
write-host $aux
write-host $path
        ]]
)

The output is:
{ "C:\\Users\\pcx\\Desktop\\á" }
{ "", "" }
{ "", "" }

$path has no value.
If I instead do not use nvim_chan_send:
vim.fn.jobstart({
	"powershell",
	"-NoProfile",
	"-NoLogo",
	"-ExecutionPolicy",
	"Bypass",
	"-Command",
	[[
$aux = 'C:\Users\pcx\Desktop\á'
$path = get-item $aux
write-host $aux
write-host $path
		]],
}, {
	on_stdout = function(_, data)
		vim.print(data)
	end,
})

The output is:
{ "C:\\Users\\pcx\\Desktop\\<a0>" }
{ "", "" }
{ "C:\\Users\\pcx\\Desktop\\<a0>" ,}
{ "", "" }
{ "" }

$path has a value.
Now, the problem is: is this a bug or am I missunderstanding something about nvim_chan_send? :help channel-bytes says that:

Channels opened by Vimscript functions operate with raw bytes by default.

But I that it saws nothing about encoding (?).

Yeah nvim_chan_send sends raw bytes so that you can send terminal escape codes and such. The encoding...I mean the encoding is just going to be what the format of the bytes are when read from the source. My default assumption would be utf-8. Could it be that Powershell processes commands passed in as arguments differently than commands passed in via stdin? This is also something you could test. You could try running this command by hand and piping in the commands from a different source (not neovim), or you could try using the jobstart + nvim_chan_send to run a binary you create to inspect the bytes that are sent to it.

Thanks for the ideas :D. This is, indeed, a problem with powershell interpreting differently arguments and commands passed in via stdin.
This stackoverflow answer explains the problem and a workaround using cmd to launch powershell using the UTF-8 codepage. This is a bit convoluted, but it does work. The previous failling minmal reproduction now work with this modification:
id = vim.fn.jobstart({
	"cmd",
	"/c",
	'"chcp 65001 && powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -Command -"',
}, {
	on_stdout = function(_, data)
		vim.print(data)
	end,
})
vim.api.nvim_chan_send(
	id,
	[[
$aux = 'C:\Users\pcx\Desktop\á'
$path = get-item $aux
write-host $aux
write-host $path
        ]]
)

I'll open a small PR fixing this


Better support for Chunk grabbing

currently the only ways of getting a Chunk in Sponge is to either know the coords of a chunk (X, Z) and have the World already there.
World.getChunk(X, 0, Z);
World.loadChunk(X, 0, Z, gen);
or hope that a location has a Chunk as its Extent instead of a World. But currently 100% of the times i have tried, it has always been a World.
So what im purposing is to add more methods of getting Chunk. And allow plugin developers to create their own algorithms to get the chunk they need.
World.getChunks();
This would grab all chunks in that world. This would mean plugin developers could create their own algorithms to get the chunk they want.
World.getChunk(Location);
This grabs the chunk that has that block. In this case the Location Extent does not matter, its the World that matters.
Entity.getChunk();
Sponge already has Entity.getWorld() so there are 2 ways of getting a world from a entity ((World)Entity.getLocation().getExtent()) so it makes sense to have the ability for Entity to have getChunk().
This would fix the following #540 #545

First off, you have to remove the commits related to the sprint API that aren't even in the changes. You squash all these commits into one. Also that commit name is way too vague.
getChunks() should return an Iterable, not a Collection. A Collection suggest that chunks can be added, removed and manipulated as a group. In reality they're can't. An Iterator only has the modification operation remove(), but it is optional so it can just throw UnsupportedOperationException.
getChunk(Location) should be getChunkForBlock(Vector3i)and getChunkForBlock(int, int, int). The current method has poor disambiguation with getChunk(Vector3i) although they use completely different coordinate systems.
Finally, I need a corresponding PR implementation for this.

You don't need to choose the PR, just use git push --force and git reset

somethings happened, IDK how but it nows says Unknown repository


Is it possible to release a trained models for human pose estimation on the COCO dataset?

We read your article and  it was a very pretty work. But our research area is human pose estimation, not animal pose estimation. We also read in the article that you have done transfer learning from COCO human pose estimation to AP-10K animal pose estimation and should have a trained human pose model. Therfore, are you guys able to release a trained model for human pose estimation? We shall be very grateful.

Thanks to the great work of mmpose, it is easy to use our code to train models for human pose estimation on COCO. Please kindly refer to mmpose config files on COCO, and revise the keypoints' names accordingly to adapt our work.


Fix for #3084

Move column was broken because of click events not getting detached. PR has fix for the issue.

Seems to be some issue with the commit, please wait as I update the PR.


Implicit conversion from FileInfo to FileInfoBase

Fixes #347

Thanks!

Here's the requested test...

Thanks again!


Add missing dependencies to LICENSE/NOTICE files

Add the following packages to LICENSE, NOTICE or NONOTICE files:

@omega-edit/client
quick-format-unescaped

Currently working on this this is the updated list of node packages needed:
@omega-edit/client
abbrev
anymatch
normalize-path
picomatch
balanced-match
binary-extensions
brace-expansion
concat-map
braces
fill-range
chokidar
glob-parent
is-binary-path
is-glob
readdirp
to-regex-range
ignore-by-default
is-extglob
is-number
lru-cache
yallist
minimatch
nodemon
pstree.remy
semver
simple-update-notifier
touch
undefsafe
nopt
quick-format-unescaped
string_decoder
safe-buffer

The above is not the proper list. The proper list was
@omega-edit/client
quick-format-unescaped
string_decoder
safe-buffer

There is a dependency, nodemon, that is actually a devDependency


Unable to retrieve hello-world via exercism client

Now we have been restored to "beta" mode in V2 exercism, when you use the command line client you get an error 'solution not found' even though the configlet linter is fine locally and the config.json looks ok?
e.g.
$exercism download -t pharo -e hello-world
Error: Solution not found

@kytrinyx are we missing some extra config? The exercism version is: exercism version 3.0.6

This is just a bad error message in exercism cli - it means you havne't joined the track.


Enable the C interface to accept nlconstr0 and f0

See the discussion at
https://github.com/libprima/PRIMA.jl/issues/14#issuecomment-1770266055
for the reason.
Since C does not support optional inputs (unfortunately), let us do the following:

if the user does not want to input nlconstr0, then it should be set to NULL;
if the user does not want to input f0, then it should be set to NaN;
in cobyla_c.f90, check the values of nlconstr0 and f0 to decide whether to call cobyla with nlconstr0 &f0 or without them (they are optional inputs to cobyla);
(an alternative to 3) in cobyla_c.f90, check the values of nlconstr0 and f0. If nlconstr0 is NULL of f0 is NaN, then call calcfc to evaluate them; afterwards, call cobyla with nlconstr0 and f0.

Thanks.

optional options could be passed via a pointer to a struct:
prima_options opt;
prima_init_options(&opt);
opt.nlconstr0 = ...
opt.f0 = ...
opt.eta1 = ...
prima_cobyla(..., &opt) // with options
prima_cobyla(..., NULL) // without options


Uncaught Error: react-modal: You must set an element with Modal.setAppElement(el)

Summary:
Just wanted to try this modal solution. Docs mention the setAppElement as an optional thing to do, but I am getting this error in console when I do not call it. I Have tried to call the Modal.setAppElement from the component itself and then also from the root app component. No place does help to get rid of this error.
Steps to reproduce:

Create new component using Modal inside
Use the component in app
Get console error

Expected behavior:
I would expect not to be forced into setAppElement.
Additional notes:

@petrdamborsky yeah, you can't call setAppElement within the modal itself. It should be appended to document.body as default, if I'm correct. I'll check it.

@petrdamborsky since this issue is a bit old (sorry), did you found a way to make it work?

@diasbruno Hey, sorry I missed the notification. I have actually moved on and found different package with modals.
Oh and I was trying the setAppElement from the root component, not the modal itself.. still didn't work. Not sure what was wrong, but I won't be able to get back to that state now :)

that's ok.
thanks, @petrdamborsky.


HDDS-11659. Improve HSync compatibility test

What changes were proposed in this pull request?
Address post-commit comments from HDDS-11311.
https://issues.apache.org/jira/browse/HDDS-11659
How was this patch tested?
CI:
https://github.com/adoroszlai/ozone/actions/runs/11719155673/job/32642454294

Thanks @hemantk-12 for the review.


Add reject by default to status tag

Context
Candidates should see a message on the post submission dashboard telling them when the provider must make a decision by (the reject by default date).
Changes proposed in this pull request

[x] Add given content to the CandidateInterface::ApplicationStatusTagComponent:

[x] Update component specs

Guidance to review
Is there anything I've missed? Other components that display application status to the candidate?
Link to Trello card
https://trello.com/c/iX6q1niR/4203-add-provider-deadline-rbd-to-the-candidate-post-submission-dashboard-page
Things to check

[x] If the code removes any existing feature flags, a data migration has also been added to delete the entry from the database
[x] This code does not rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] Required environment variables have been updated added to the Azure KeyVault

thank you @stevehook! I've been working on a related email, so would like to make a small copy change for consistency if possible?
change to:
You'll get a decision on your application by [RBD date].

@EmmaFrith @stevehook I've updated the copy and associated specs - let me know if all okay.

no problem, we've updated that message. Does the screenshot look OK to you now?

@EmmaFrith no problem, we've updated that message. Does the screenshot look OK to you now?

LGTM
Do you think it’s OTT to have a test that checks the text isn’t rendered if the state isn’t interviewing or awaiting_provider_decision?

thanks @avinhurry, makes sense, I've added another test case

@EmmaFrith no problem, we've updated that message. Does the screenshot look OK to you now?

looks great thank you @stevehook @MylesJarvis


'Add-Type' doesn't work in applications that host powershell

Add-Type depends on the reference assemblies shipped with pwsh. The reference assemblies are not bundled with PowerShell SDK NuGet packages, so Add-Type doesn't work for applications that host PowerShell.

As ^ declares, Dongbo originally discovered this in Azure Functions - where I think folks will use Add-Type a fair bit at least.

Admit it, you just want a PSWordCloud Azure function endpoint :joy:

I can confirm that this issue is there in the latest version of Powershell core 6 / azure functions and is a blocker for us. Is there a known work-around to get this working on azure functions or perhaps an estimated ETA of when we think this may be addressed?
In my scenario, I am loading a community module for cosmosdb ( https://www.powershellgallery.com/packages/CosmosDB/<IP_ADDRESS>6) inside an azure powershell function. This module uses a custom type definition which yields an error when ran in azure functions only:
[6/18/2019 3:39:54 PM] ERROR: Unable to find type [CosmosDB.ContextToken].
[6/18/2019 3:39:54 PM] Result: ERROR: Unable to find type [CosmosDB.ContextToken].
Exception: Unable to find type [CosmosDB.ContextToken].
Stack:    at System.Management.Automation.TypeOps.ResolveTypeName(ITypeName typeName, IScriptExtent errorPos)
this is the custom type definition as per the community module
if (-not ([System.Management.Automation.PSTypeName]'CosmosDB.Context').Type)
{
    $typeDefinition = @'
namespace CosmosDB {
    public class ContextToken
    {
        public System.String Resource;
        public System.DateTime TimeStamp;
        public System.DateTime Expires;
        public System.Security.SecureString Token;
    }

    public class BackoffPolicy
    {
        public System.Int32 MaxRetries;
        public System.String Method;
        public System.Int32 Delay;
    }

    public class Context
    {
        public System.String Account;
        public System.String Database;
        public System.Security.SecureString Key;
        public System.String KeyType;
        public System.String BaseUri;
        public CosmosDB.ContextToken[] Token;
        public CosmosDB.BackoffPolicy BackoffPolicy;
    }

    namespace IndexingPolicy {
        namespace Path {
            public class Index {
                public System.String dataType;
                public System.String kind;
            }

            public class IndexRange : CosmosDB.IndexingPolicy.Path.Index {
                public readonly System.Int32 precision = -1;
            }

            public class IndexHash : CosmosDB.IndexingPolicy.Path.Index {
                public readonly System.Int32 precision = -1;
            }

            public class IndexSpatial : CosmosDB.IndexingPolicy.Path.Index {
            }

            public class IncludedPath
            {
                public System.String path;
                public CosmosDB.IndexingPolicy.Path.Index[] indexes;
            }

            public class ExcludedPath
            {
                public System.String path;
            }
        }

        public class Policy
        {
            public System.Boolean automatic;
            public System.String indexingMode;
            public CosmosDB.IndexingPolicy.Path.IncludedPath[] includedPaths;
            public CosmosDB.IndexingPolicy.Path.ExcludedPath[] excludedPaths;
        }
    }

    namespace UniqueKeyPolicy {
        public class UniqueKey {
            public System.String[] paths;
        }

        public class Policy
        {
            public CosmosDB.UniqueKeyPolicy.UniqueKey[] uniqueKeys;
        }
    }
}
'@
    Add-Type -TypeDefinition $typeDefinition
}

$PSVersionTable
Name                           Value

PSVersion                      6.2.1
PSEdition                      Core
GitCommitId                    6.2.1
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

func --version
2.7.1373

@invisibleaxm yep... that won't work today. Based on the code you've shown, it'd be very easy to convert those to PowerShell classes and things might just work... but this issue needs some work to be done in PowerShell which is actually quite difficult to solve elegantly.

any news on this? kind of a deal killer for using Powershell Core


Remove unnecessary props from audio and video elements

Remove unnecessary props from audio and video elements in DOM by destructuring.
here is an example of an audio element in livekit/examples/nextjs which has unnecessarily attributes like participant or publication:

@mpnri thank you for this PR. Looking good 👍
To ensure that the tests pass, you must update the components-react.api.md file. You can do this by simply running yarn api:update and then commiting the changes.

Done.
I was updating components-react.api.md and I saw that the track attribute was still in the DOM element. I looked at the tracks.ts file and I noticed that this attribute was added to the trackReferences list, even though it was not part of the TrackReference type. So I thought it was safe to remove it from the code.

So I thought it was safe to remove it from the code.

That has wider implications. The track needs to stay in there :)

even though it was not part of the TrackReference type

hah, I thought we still needed it, but I guess you're right. Thanks for spotting this!


Fix save load

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.10 out of 11 committers have signed the CLA.:white_check_mark: FrostML:white_check_mark: zhouwei25:white_check_mark: cryoco:white_check_mark: JepsonWong:white_check_mark: lfchener:white_check_mark: wanghaoshuang:white_check_mark: lanxianghit:white_check_mark: MrChengmo:white_check_mark: shippingwang:white_check_mark: hutuxian:x: seiriosPlusYou have signed the CLA already but the status is still pending? Let us recheck it.


[HIGH PRI] Change all packages to use esy scripts to generate npm compatible esy packages.

This task makes it so packages can work on pure npm, as well as our own esy CLI.
We need to change the conversion scripts to use the pure npm form because it only gives us more install options without taking any away. This task is also to manually change any hand created esy packages to use the more flexible npm form.

Duplicate.


[WIP] Prometheus snapshots - print error when project is not set (1.14)

Print error explicitly when snapshotting failed due to lack of PROJECT variable set
/cc jkaniuk

Closing - it was merged in master. If needed, we should cherrypick that commit.


UI to support user defined values or variables.

Refer issue #78

Need to design UI for saving new variables and viewing/editing prior variables.

Mockup created...checked-in.


[🐞] Stoybook integration uses inconsistent task name

Which component is affected?
Starters / CLI
Describe the bug
These are the contents of package.json
    "build": "qwik build",
    "build-storybook": "storybook build",
    "build.client": "vite build",
    "build.preview": "vite build --ssr src/entry.preview.tsx",
    "build.server": "vite build -c adapters/vercel-edge/vite.config.ts",
    "build.types": "tsc --incremental --noEmit",
    "deploy": "vercel deploy",
    "dev": "vite --mode ssr",
    "dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force",
    "fmt": "prettier --write .",
    "fmt.check": "prettier --check .",
    "lint": "eslint \"src/**/*.ts*\"",
    "preview": "qwik build preview && vite preview --open",
    "start": "vite --open --mode ssr",
    "storybook": "storybook dev -p 6006",
    "test.e2e": "playwright test",
    "test.unit": "vitest components",
    "test.unit.ui": "vitest --ui components",
    "qwik": "qwik"

All the integration adapter vitest playwright follow the standard naming convention - separation by .
However storybook uses the - as in kebab-case
Reproduction
https://stackblitz.com/edit/qwik-starter-doesgq?file=package.json
Steps to reproduce
pnpm create qwik@latest
pnpm install
pnpm qwik add storybook

System Info
System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
    Memory: 3.33 GB / 15.84 GB
  Binaries:
    Node: 20.4.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 3.6.1 - C:\Program Files\nodejs\yarn.CMD
    npm: 9.7.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.6.7 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Spartan (44.22621.1928.0), Chromium (114.0.1823.67)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @builder.io/partytown: ^0.8.0 => 0.8.0
    @builder.io/qwik: 1.2.6 => 1.2.6
    @builder.io/qwik-city: 1.2.6 => 1.2.6
    undici: 5.22.1 => 5.22.1
    vite: 4.4.2 => 4.4.2

Additional Information
No response

I think this is because chromatic requires the build-storybook script by default to deploy.
https://www.chromatic.com/docs/setup#run-chromatic
Otherwise you'd need to add an argument like chromatic --build-script-name=build.storybook
build-storybook could just be removed, and leave it to the user to add if they need it

thx @sarvex for creating this issue and the PR 🙏
i totally see your point! imo it's not the goal of the framework to switch cmds used by a particular 3rd party as @DustinJSilk stated. everybody working with storybook is used to this command and therefor we should not switch it by default. if smb feels that it should be named like u suggest, it's simple to switch, right? 😄
thx again for raising this issue and creating the PR 🙏 i'll close both for now but feel free to re-open it when neede 👍


Error with BookmarkManager.async_create

Describe the bug
There is an exception when trying to create a bookmark. Read operations are working as expected, so API connection is not the issue.
To Reproduce
Steps to reproduce the behavior:

Run linkding --verbose bookmarks create -a https://github.com
Press enter
See error

Expected behavior
Create a new bookmark.
Additional context
Output
$ linkding --verbose bookmarks create -a https://github.com
2022-11-24 16:27:29,855 | linkding_cli | DEBUG | Command: bookmarks
2022-11-24 16:27:29,855 | linkding_cli | DEBUG | Arguments: []
2022-11-24 16:27:29,855 | linkding_cli | DEBUG | Options: {'verbose': True, 'config': None, 'token': '[REDACTED]', 'url': 'https://[REDACTED]'}
2022-11-24 16:27:29,855 | linkding_cli | DEBUG | Loaded Config: <Config token=[REDACTED] url=https://[REDACTED] verbose=True>
2022-11-24 16:27:29,856 | linkding_cli | ERROR | BookmarkManager.async_create() got an unexpected keyword argument 'archived'
2022-11-24 16:27:29,857 | linkding_cli | DEBUG |   File "/home/kinduff/.local/lib/python3.10/site-packages/linkding_cli/helpers/logging.py", line 79, in wrapper
    return cast(dict[str, Any], func(*args, **kwargs))
  File "/home/kinduff/.local/lib/python3.10/site-packages/linkding_cli/commands/bookmark.py", line 109, in create
    data = asyncio.run(ctx.obj.client.bookmarks.async_create(url, **payload))

Python 3.10.6
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
Linkding 1.15.1 (latest)

Just published 2022.11.0, which contains this fix. Thanks for your help!

Thanks a lot @bachya! Great response and very fast. I appreciate the effort!


Trying to execute MDX query to get all leaf level elements in all dimensions of a  cube

from TM1py.Services import TM1Service
tm1=TM1Service(address='******', port=, user='xyz', password='abcd', ssl=True,namespace='Active Directory')
##create MDX to extract  investment rates at leaf level
mdx="""
SELECT
NON EMPTY {TM1FILTERBYLEVEL( {TM1SUBSETALL([GL Activity Investment Plan])},0)}
{TM1FILTERBYLEVEL({TM1SUBSETALL([Investment Type])},0)}
{TM1FILTERBYLEVEL({TM1SUBSETALL([Location])},0)}{TM1FILTERBYLEVEL({TM1SUBSETALL([Year])},0)}
{TM1FILTERBYLEVEL({TM1SUBSETALL([Txn Currency])},0)}
{TM1FILTERBYLEVEL({TM1SUBSETALL([Skills])},0)}
{TM1FILTERBYLEVEL({TM1SUBSETALL([Department])},0)}
*{TM1FILTERBYLEVEL({TM1SUBSETALL([Months])}
ON ROWS,
NON EMPTY {[Measure Investment].[Derived Cost],[Measure Investment].[Budget Derived Cost]} ON COLUMNS
FROM [Investment_Plan]
WHERE ([Version].[Final Version],[Scenario].[OP])"""
data=tm1.cubes.cells.execute_mdx(mdx)
from TM1py.Utils.Utils import build_pandas_dataframe_from_cellset
df=build_pandas_dataframe_from_cellset(data, multiindex= False)
df.to_csv("C:\Vamsi_IMP_Documents\data.csv")
print(df)

while executing this upto six dimensions on rows it is not giving any error but when i am adding two more dimensions in a cube  i am getting length error please help me out on this

please post the error and the stack trace that you get.

Hi Marius
this is  the error ...
File "C:\Python38\lib\site-packages\TM1py\Services\RESTService.py", line 326, in verify_response
raise TM1pyException(response.text,
TM1py.Exceptions.Exceptions.TM1pyException: Text: {"error":{"code":"270","message":"Unable to create/access to a cellset that contains more than 0xFFFFFFFF cells."}} Status Code: 400 Reason: Bad Request Headers: {'Content-Length': '113', 'Connection': 'keep-alive', 'Content-Encoding': 'gzip', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json; charset=ut

@vamsi-cloud
You already have everything as leaf level and trying to add two more dimensions to the row will cause out of memory error or in your case the numbers of cells requested is above the threshold.
The best way to work on requirements like these is to split the MDX query and send parallel requests to the TM1 server.
from TM1py.Services import TM1Service
from TM1py.Utils.Utils import build_pandas_dataframe_from_cellset
from concurrent.futures import ThreadPoolExecutor
import re

tm1 = TM1Service(address='******', port=, user='xyz', password='abcd', ssl=True,namespace='Active Directory')

month_elements = list(tm1.dimensions.hierarchies.elements.get_leaf_element_names('Months', 'Months'))
year_elements = list(tm1.dimensions.hierarchies.elements.get_leaf_element_names('Year', 'Year'))

##create MDX to extract investment rates at leaf level
mdx_list = []
for year in year_elements:
    for month in month_elements:
        mdx = f"""
        SELECT
        NON EMPTY {{TM1FILTERBYLEVEL( {{TM1SUBSETALL([GL Activity Investment Plan])}},0)}} *
        {{TM1FILTERBYLEVEL({{TM1SUBSETALL([Investment Type])}},0)}} *
        {{TM1FILTERBYLEVEL({{TM1SUBSETALL([Location])}},0)}} *
        {{TM1FILTERBYLEVEL({{TM1SUBSETALL([Txn Currency])}},0)}} *
        {{TM1FILTERBYLEVEL({{TM1SUBSETALL([Skills])}},0)}} *
        {{TM1FILTERBYLEVEL({{TM1SUBSETALL([Department])}},0 )}} *
        ON ROWS,
        NON EMPTY {{[Measure Investment].[Derived Cost],[Measure Investment].[Budget Derived Cost]}} ON COLUMNS
        FROM [Investment_Plan]
        WHERE ([Months].[{month}],[Year].[{year}],[Version].[Final Version],[Scenario].[OP])"""
        mdx_list.append(mdx)

def export_data(expression):
    data = tm1.cubes.cells.execute_mdx(expression)
    df = build_pandas_dataframe_from_cellset(data, multiindex=False)
    result = re.search('\[Months\].\[(.*)\],\[Year\].\[(.*)\],\[Version\]', mdx)
    year = result.group(1)
    month = result.group(2)
    df.to_csv(f"C:\Vamsi_IMP_Documents\data_{year}_{month}.csv")

thread_count = 10
with ThreadPoolExecutor(max_workers=thread_count) as executor:
    executor.map(export_data, mdx_list)

In your code you are trying to convert the data to Dataframe and then export it which is pretty expensive. I would suggest you to explore other options.

Thanks for the reply... vinoth ..i executed the code which you posted but it is not yielding any output . can you help me out on this.
my intention of converting into data frame  is to perform some calculations on the data retrived. i am just checking the format of data that i am getting through csv...

@vamsi-cloud
There were a couple of corrections, I have edited the code in my earlier comment.
Basically comment the below lines and call the export data function explicitly to make sure that the mdx is working correctly. Because, part of multi threading you wont get the errors.
thread_count = 10
with ThreadPoolExecutor(max_workers=thread_count) as executor:
     executor.map(export_data, mdx_list)

So, replace the above code with the below line to make sure that the mdx has no syntax errors.
export_data(mdx_list[1])

Once you see the data_**_**.csv file, put back the multi-threading code you removed earlier.

i Executed the code it is throwing following error :
Traceback (most recent call last):
File "C:/Python38/Lib/idlelib/Modified_getting_elements.py", line 46, in
export_data(mdx_list)
File "C:/Python38/Lib/idlelib/Modified_getting_elements.py", line 34, in export_data
data = tm1.cubes.cells.execute_mdx(expression)
File "C:\Python38\lib\site-packages\TM1py\Services\CellService.py", line 247, in execute_mdx
cellset_id = self.create_cellset(mdx=mdx)
File "C:\Python38\lib\site-packages\TM1py\Services\CellService.py", line 885, in create_cellset
response = self._rest.POST(request=request, data=json.dumps(data, ensure_ascii=False))
File "C:\Python38\lib\site-packages\TM1py\Services\RESTService.py", line 43, in wrapper
self.verify_response(response=response)
File "C:\Python38\lib\site-packages\TM1py\Services\RESTService.py", line 326, in verify_response
raise TM1pyException(response.text,
TM1py.Exceptions.Exceptions.TM1pyException: Text: {"error":{"code":"278","message":"Unexpected value type encountered in the payload while processing "ExecuteMDX". Expecting type "String" but was "Array"."}} Status Code: 400 Reason: Bad Request Headers: {'Content-Length': '153', 'Connection': 'keep-alive', 'Content-Encoding': 'gzip', 'Cache-Control': 'no-cache', 'Content-Type': 'application/json; charset=utf-8', 'OData-Version': '4.0'}

Looks like the mdx[1] you are passing to the function export_data is not in str format.
Try printing the mdx and fix it as required.
print(mdx[1])

@vamsi-cloud,
did this solve your problem? Can we close this issue?

Hi,
I’m trying retrieve all level attributes (hierarchy elements)of gl account dimension in my gl cube with measures   from a cube view for external reporting but still there is no success. Gl account -ragged hierarchy , has same gl account  listed under multiple hierarchies. To report  it is essential to show all levels of the relevant account  against each measure value.
When extracted  using TM1SUBSETALL it extracts only the lowest  level elements .

Hi @rpitiyar,
For your particular use case, you might want to try the get_elements_dataframe function.
with TM1Service(**tm1_params) as tm1:
    df = tm1.elements.get_elements_dataframe(
        dimension_name="Account",
        hierarchy_name="Account",
        elements="{Tm1SubsetAll([Account])}",
        skip_consolidations=True)

    print(df.to_string())

    df = tm1.elements.get_elements_dataframe(
        dimension_name="Account",
        hierarchy_name="Account",
        elements="{Tm1SubsetAll([Account])}",
        skip_consolidations=False)

    print(df.to_string())

You can find more about the arguments for the function here when your search for "get_elements_dataframe":
https://buildmedia.readthedocs.org/media/pdf/tm1py/latest/tm1py.pdf


Error al ejecutar Pub build

Good evening when executing usr / local / src / security_monkey / dart $ / usr / lib / dart / bin / pub build, I get the following message Dart 2 has a new build system. Learn how to migrate from pub build and
pub serve: https://webdev.dartlang.org/dart-2 ", does anyone have any idea how to make the migration?

This is related to Google removing the Dart 1 code from their repos.
This is being tracked in #1177

Thank you very much worked!


About forward_plugin in backbone

on the master branch

Codes
def forward_plugin(self, x, plugin_names):
        out = x
        for name in plugin_names:
            out = getattr(self, name)(x) # this line
        return out

In the out = getattr(self, name)(x), is this correct that the parameter of getattr contains the x instead of the out?
My expected
def forward_plugin(self, x, plugin_names):
        out = x
        for name in plugin_names:
            out = getattr(self, name)(out) # this line
        return out

As my understading (https://github.com/open-mmlab/mmdetection/pull/2345#discussion_r399821238) , the plugins can be multiple items and these items will be passing on sequential.
Am I misunderstanding ?

And about JIT, TorchScript. (https://github.com/open-mmlab/mmdetection/pull/1504)
Raised Error on torch.jit.script (torch==1.7.0)
RuntimeError:
getattr's second argument must be a string literal:

out = getattr(self, name)(x)
                  ~~~~~~~~~~~~~~~~~~ <--- HERE

Because torchscript aren't support runtime module name checking.
So current plugins names can't converting to JIT ( same issue on the normalization layers )
So how about changing your naming rules to fixed name (like plugins wrap into nn.ModuleList)

Hi @zsef123
Sorry for the late reply.
You are correct, it is potential a bug. Would you like to create a PR to fix it?
If we are using fixed name, it won't be compatible with different plugins.


[5.5] Arr::merge

Sort of a recursive (multilevel) array_merge. I use it all the time for overriding config arrays. Typically I macro it, but it's probably a nice function to provide out of the box.
Example:
$one = [
    'foo' => 'something',
    'bar' => [
        'a' => 1,
        'b' => 2,
    ],
];

$two = [
    'foo' => 'something else',
    'bar' => [
        'b' => 3,
    ],
    'baz' => 'another',
];

Arr::merge($one, $two);

/*

[
    'foo' => 'something else',
    'bar' => [
        'a' => 1,
        'b' => 3,
    ],
    'baz' => 'another',
];

*/

I don't typically like to merge many helpers that aren't used by the framework itself.


Undefined method getAuthStatus()

Hi Guys
I recently upgraded a clone of my project to 2.0.0-rc1 and am getting the following error: Call to undefined method Oro\Bundle\UserBundle\Entity\User::getAuthStatus()
I have run the upgrade20 command successfully after deleting my cache folder.  I did have to fix a couple of things and rerun the process but that was to be expected.
My assumption is that the getter and setter for AuthStatus should be on the ExtendUser entity that is generated in the cache.  However they are not:
<?php

namespace Extend\Entity;

abstract class EX_OroUserBundle_User extends \Oro\Bundle\UserBundle\Entity\AbstractUser implements \Oro\Bundle\EntityExtendBundle\Entity\ExtendEntityInterface
{
    protected $title;
    protected $serialized_data;
    protected $phone;
    protected $googleId;
    protected $avatar;

    public function setTitle($value)
    {
        $this->title = $value; return $this;
    }

    public function setSerializedData($value)
    {
        $this->serialized_data = $value; return $this;
    }

    public function setPhone($value)
    {
        $this->phone = $value; return $this;
    }

    public function setGoogleId($value)
    {
        $this->googleId = $value; return $this;
    }

    public function setAvatar($value)
    {
        $this->avatar = $value; return $this;
    }

    public function getTitle()
    {
        return $this->title;
    }

    public function getSerializedData()
    {
        return $this->serialized_data;
    }

    public function getPhone()
    {
        return $this->phone;
    }

    public function getGoogleId()
    {
        return $this->googleId;
    }

    public function getAvatar()
    {
        return $this->avatar;
    }

    public function __construct()
    {
        parent::__construct();
    }
}

I can also see that in the table oro_entity_config_field there is no field for authStatus for the oro_user entity.
I hope this is not something silly that I need to do, I have tried running all of the entity and extend entity commands on the CLI.

Hi @LRotherfield
Can you show me stack trace of error? I have just upgraded from 1.10.12 to 2.0.0-rc.1 without problems. Have script executed AddAuthStatusColumn migration ? This is my part of migrations:
Oro\Bundle\UserBundle\Migrations\Schema\v1_22\AddImpersonationTable
Oro\Bundle\UserBundle\Migrations\Schema\v1_23\AddDisableLogin
Oro\Bundle\UserBundle\Migrations\Schema\v1_24\AddAuthStatusColumn
Oro\Bundle\UserBundle\Migrations\Schema\v1_24\AddImpersonationIpColumn
Oro\Bundle\UserBundle\Migrations\Schema\v1_24\AddScopeRelations
Oro\Bundle\UserBundle\Migrations\Schema\v1_24\RemoveDisableLogin
Oro\Bundle\UserBundle\Migrations\Schema\v2_0\OroUserBundle

Hi @mkudelya
The stack trace is unfortunately very small, this is received when logging into the platform /user/login-check:
( ! ) Fatal error: Uncaught Error: Call to undefined method Oro\Bundle\UserBundle\Entity\User::getAuthStatus() in /vagrant/vendor/oro/platform/src/Oro/Bundle/UserBundle/Security/UserChecker.php on line 69
( ! ) Error: Call to undefined method Oro\Bundle\UserBundle\Entity\User::getAuthStatus() in /vagrant/vendor/oro/platform/src/Oro/Bundle/UserBundle/Security/UserChecker.php on line 69
Call Stack
#	Time	Memory	Function	Location
1	0.0000	366208	{main}( )	.../app_dev.php:0
2	0.0034	719136	Symfony\Component\HttpKernel\Kernel->handle( )	.../app_dev.php:49
3	0.1233	5813328	Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle( )	.../bootstrap.php.cache:2540

I did see the migration you are talking about execute, below is the create table output for oro_user which shows the auth status foreign key:
Create Table: CREATE TABLE `oro_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `avatar_id` int(11) DEFAULT NULL,
  `business_unit_owner_id` int(11) DEFAULT NULL,
  `status_id` int(11) DEFAULT NULL,
  `organization_id` int(11) DEFAULT NULL,
  `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `name_prefix` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `first_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `middle_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `name_suffix` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `birthday` date DEFAULT NULL,
  `enabled` tinyint(1) NOT NULL,
  `salt` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `confirmation_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password_requested` datetime DEFAULT NULL,
  `last_login` datetime DEFAULT NULL,
  `login_count` int(10) unsigned NOT NULL DEFAULT '0',
  `createdAt` datetime NOT NULL,
  `updatedAt` datetime NOT NULL,
  `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `password_changed` datetime DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `googleId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `serialized_data` longtext COLLATE utf8_unicode_ci COMMENT '(DC2Type:array)',
  `auth_status_id` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_F82840BCF85E0677` (`username`),
  UNIQUE KEY `UNIQ_F82840BCE7927C74` (`email`),
  UNIQUE KEY `UNIQ_F82840BC6BF700BD` (`status_id`),
  KEY `IDX_F82840BC59294170` (`business_unit_owner_id`),
  KEY `idx_oro_user_avatar_id` (`avatar_id`),
  KEY `IDX_F82840BC32C8A3DE` (`organization_id`),
  KEY `oro_idx_user_phone` (`phone`),
  KEY `oro_idx_user_googleid` (`googleId`),
  KEY `user_first_name_last_name_idx` (`first_name`,`last_name`),
  KEY `idx_oro_user_auth_status_id` (`auth_status_id`),
  CONSTRAINT `FK_F82840BC59294170` FOREIGN KEY (`business_unit_owner_id`) REFERENCES `oro_business_unit` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_oro_user_auth_status_id` FOREIGN KEY (`auth_status_id`) REFERENCES `oro_enum_auth_status` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_oro_user_avatar_id` FOREIGN KEY (`avatar_id`) REFERENCES `oro_attachment_file` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_oro_user_organization_id` FOREIGN KEY (`organization_id`) REFERENCES `oro_organization` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_oro_user_status_id` FOREIGN KEY (`status_id`) REFERENCES `oro_user_status` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci

Please let me know what other information may be helpful

Hi @mkudelya
It looks like something must have been interrupted during my migrations, I have redone the whole install and now my extended cached entity has the getters and setters for AuthStatus.
It is interesting that the migrations can complete and run multiple times to produce my above issues.  However I guess the moral of the story is to take a backup and if a dynamic field fails, try the install again :)
I am closing this issue, but could you still comment back with the reason this field had to be a dynamic property added by a migration and not coded?  Only because trying to debug these dynamic extended fields is much harder.
Thanks for your time
Luke

Hi @LRotherfield
Because enum fields was originally conceived as a dynamic field which can be added via migrations.


Modules specified in --entry from the command line are being included in the wrong order

This is odd: when using the Browserify command-line tool and passing in multiple entry points, the entry points are not executed in the order supplied. But the order is not random: the first script you supply is always run last, and all other scripts are run in the order that you passed them.
Naturally, I think it should preserve the order that you specify entirely, to ensure the correct ordering of side-effects in your entry scripts.
Here's a micro-repro:
$ npm install browserify
$ echo 'console.log("hello")' > a.js
$ echo 'console.log("world")' > b.js
$ echo 'console.log("!")' > c.js
$ node_modules/.bin/browserify -e a.js b.js c.js -o app.js
$ node app.js

Expected output:
hello
world
!

Actual output:
world
!
hello

Tested at Browserify 10.2.3.

Okay, nevermind. Looking at the source, I see my mistake: -e doesn't take a variable number of arguments, and is optional. The following produces correct output:
$ node_modules/.bin/browserify -e a.js -e b.js -e c.js -o app.js

As does:
$ node_modules/.bin/browserify a.js b.js c.js -o app.js


Runtime error

Click to expand!
Issue Type
Bug
Have you reproduced the bug with TF nightly?
No
Source
binary
Tensorflow Version
2.11.0
Custom Code
Yes
OS Platform and Distribution
Ubuntu 22.04
Mobile device
No response
Python version
3.9
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
Probably due to large tensor or negative argument.

Standalone code to reproduce the issue
import tensorflow as tf
import os
import numpy as np
from tensorflow.python.ops import array_ops
try:
  arg_0_tensor = tf.saturate_cast(tf.constant(-152265577042003, shape=[2, 3, 4], dtype=tf.int64,),dtype=tf.uint64)
  arg_0 = tf.identity(arg_0_tensor)
  arg_1 = -67
  arg_2 = 0
  range_given = False
  round_mode = "HALF_UP"
  axis = None
  out = array_ops.quantize_and_dequantize_v2(arg_0,arg_1,arg_2,range_given=range_given,round_mode=round_mode,axis=axis,)
except Exception as e:
  print("Error:"+str(e))

### Relevant log output

```shell
2023-01-21 18:47:28.285233: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-01-21 18:47:28.904062: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :/lib/:/home/nimashiri/anaconda3/envs/cuda11.2/lib/
2023-01-21 18:47:28.904236: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: :/lib/:/home/nimashiri/anaconda3/envs/cuda11.2/lib/
2023-01-21 18:47:28.904243: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2023-01-21 18:47:29.447639: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-21 18:47:29.452132: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-21 18:47:29.452261: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-21 18:47:29.452556: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-01-21 18:47:29.452998: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-21 18:47:29.453105: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-21 18:47:29.453198: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-21 18:47:29.850356: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-21 18:47:29.850491: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-21 18:47:29.850591: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-01-21 18:47:29.850679: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1613] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 4252 MB memory:  -> device: 0, name: NVIDIA GeForce GTX 1660 Ti, pci bus id: 0000:01:00.0, compute capability: 7.5
Error:can't convert negative int to unsigned

</details>

@nimashiri,
I tried with a high level API tf.quantization.quantize_and_dequantize_v2 and observed a similar error as reported.
But this check fails as expected for all the Ops that are not validated to all the scenarios for the performance. For this high level API the arguments are clearly mentioned and if we need to follow the documentation & we can remove the error with valid arguments. Please refer to the attached gist of it here.
Also kindly take a look at this commit regarding the policy and confirm if it falls under vulnerability and also this leads to the termination. Thank you!


CS0108 mentions variables when it actually applies to members

The current description for error CS0108 reads:

A variable was declared with the same name as a variable in a base class. However, the new keyword was not used. This warning informs you that you should use new; the variable is declared as if new had been used in the declaration.

Everywhere it says variable it should say member. Also mentioning adding "new" to variables makes this extra confusing as new variable is object initialisation, not member overriding.

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

ID: 52797d6c-c245-a61d-f4f6-8ef064577271
Version Independent ID: ae6523de-e0c6-3f66-1790-c6a723f5fd94
Content: Compiler Warning (level 2) CS0108
Content Source: docs/csharp/language-reference/compiler-messages/cs0108.md
Product: dotnet-csharp
Technology: csharp-diagnostics
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Those are good observations @distantcam
We should use the term "member" instead of "variable" here. (This same warning also applies to property declarations).
As for using the new keyword, that should be reworded, but the recommendation is correct. By adding the new modifier to the declaration you declare that the derived member hiding the base member was intentional. The example in the article shows this syntax, but it's commented out.


Importing thousand svgs with a dynamic import expression causes a Javascript Heap out of memory

Do you want to request a feature or report a bug?
I request a bug

What is the current behavior?
Webpack throws an exception, as soon as it reads the dynamic import statement.
The dynamic import looks like this: import('../images_svg/' + svgData.path + '.svg')
The folder images_svg contains 677 different svgs.
<--- Last few GCs --->

   95733 ms: Mark-sweep 1301.0 (1434.6) -> 1303.2 (1434.6) MB, 61.8 / 0.0 ms [allocation failure] [scavenge might not succeed].
   95794 ms: Mark-sweep 1303.2 (1434.6) -> 1305.4 (1434.6) MB, 60.9 / 0.0 ms [allocation failure] [scavenge might not succeed].
   95856 ms: Mark-sweep 1305.4 (1434.6) -> 1312.2 (1418.6) MB, 62.3 / 0.0 ms [last resort gc].
   95922 ms: Mark-sweep 1312.2 (1418.6) -> 1319.1 (1418.6) MB, 65.9 / 0.0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context:<PHONE_NUMBER>83FA99 <JS Object>
    1: stringify [native json.js:178] [pc=000002CFEA0A3CF7] (this=0000017885846091 <a JSON with map<PHONE_NUMBER>613B91>,E=0000023A39E19981 <Very long string[11977826]>,F=0000017885804241 <undefined>,S=0000017885804241 <undefined>)
    2: arguments adaptor frame: 1->3
    3: /* anonymous */ [C:\Users\phili\Documents\Kunden\step1\app\node_modules\webpack\lib\EvalDevToolModuleTemplatePlugin.js:~17...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

If the current behavior is a bug, please provide the steps to reproduce.
To reproduce it, you import a folder with 600 different svgs, using svg-inline-loader.

What is the expected behavior?
Expected is that the application bundles the files and does not crash while loading.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
browser latest chrome and opera
node js v6.11.2
webpack 3.6.0
windows

Try to increase the node.js memory.

I changed the command in the package.json to node --max_old_space_size=8000  scripts/start.js but it still doesn't work after several tries.

Could you paste the error with max_old_space_size?

I am sorry, it works with max_old_space_size, I just need to be very patient. It takes about ten minutes, which before the import wasn't necessary. How can I go about this? Which solutions are there to solve this? @sokra

I guess the svg-inline-loader isn't the cheapest one... Try using the cache-loader to cache the result.

Nice, it takes now only a minute. Thank you @sokra. If you know some additional tweaks let me know.

see this page for performance hints: https://webpack.js.org/guides/build-performance/

Hey @sokra I added 'include' to the loaders, set symlinks and cacheWithContext to false, implemented the CommonChunksPlugin, set devtool to "eval". Sadly it always takes at least 40 seconds. Is there something I haven't thought about, which could optimize the development performance?
Also after enabling performance hints, it shows:
This can impact web performance.
Assets:
  static/js/svgs1159.chunk.js (1.64 MB)
  static/js/svgs1158.chunk.js (411 kB)
  static/js/svgs1157.chunk.js (1.02 MB)
  static/js/svgs1156.chunk.js (305 kB)
  .... list continues ...............


Broken links in CONTRIBUTING.md

Hello,
while working on a prerequisite task for GSoC, I found some links in CONTRIBUTING.md file that don't work:
Section:
https://github.com/openvinotoolkit/openvino_notebooks/blob/main/CONTRIBUTING.md#jupyterlab-code-formatter
Link:
https://jupyterlab-code-formatter.readthedocs.io/en/latest/
I think that documentation was moved to:
https://ryantam626.github.io/jupyterlab_code_formatter/index.html
There is also a problem with the link to Binder which points to a part of repo that doesn't exist:
Section:
https://github.com/openvinotoolkit/openvino_notebooks/blob/main/CONTRIBUTING.md#getting-started
Link:
https://github.com/openvinotoolkit/openvino_notebooks/blob/main/Binder

Great points. Could you please create a PR fixing these links?

Yes, I'll fix that and double check that others work as well.

Closing with #919


check-format-commit: call fewer unneeded processes

wc does not output a file name if the input is stdin.
awk reads its file argument; there's no need for cat.
sort -u outputs unique lines. It should be supported on all platforms, as it's specified by POSIX.

This pull request is ready to merge


MemcpyAsync H2H failed: [140103466419744] -> [8667232256]

@raver119
first of all my  conf:
backend info:
CUDA version: 8.0
DL4J version: 0.7.1
hardware details:
Red Hat Enterprise Linux Server release 7.2
on aws amazon instance p2.xlarge
1 GPU Tesla k80 with 12g of memory
4 CPU 61g of memory (Intel Xeon E5-2686 v4)
XMX setting:
-J-Xmx60g
doing this operation:
DataSet ret = new DataSet(Nd4j.vstack(inp.toArray(new INDArray[0])), Nd4j.vstack(lab.toArray(new INDArray[0])))
i get the following exception:
https://gist.github.com/n-gregori/9f8276cc62afae569ea90c112cd1ccdb
the fastest workaround is to set ND4J_CUDA_DEBUG = true
the following code always reproduce the problem:
https://gist.github.com/1f84c62e45522059dbbcd6392ca99c5b.git
https://gist.github.com/bcf09b5bc6f4ad34d2a71054224e08bb.git

Yep, hot-fix/triage already applied at current master. Now proper fix is highly desired.

Proper fix applied and merged here: https://github.com/deeplearning4j/nd4j/pull/1617 and here: https://github.com/deeplearning4j/libnd4j/pull/363
Thanks for highlighting this issue.


Email plugin

Hello, I have installed all plugins and input outlook smtp info into the env. Autogpt says its saved an email into drafts but no email was there. I am using an app password. I have allowed pop and smtp and imap in settings. The only thing is I dont use a paid api. But autogpt says it's done the task but I just dont see any email. Can you assist. Thanks

You describe the exact same thing I did, and with the same outcome. It claims to have done things, but there is nothing there. So, it hallucinate.

any fix peoples??

strange, it says my app password was used. so its talking to email somehow but not creating the email itself

hmm i just deleted the plugin from env and readded it. make sure there is no space between the plugin text and the last line in the current env. it seems to work now

What do you mean by this? make sure there is no space between the plugin text and the last line in the current env
I have another setting below it
################################################################################
SCENEX API
################################################################################

Okay. I'll see if that helps.

Does anyone know how I can set autogpt to check for new emails on its own every 15 minutes and reply?

tell it in the prompt?


0.13 release in Bower

Hi,
thanks for all your hard work, this module is amazing, it has helped me a lot in a big project I'm doing.
Is there any release date for v0.13 via Bower?
I really need to use a template for the contents of a popover and got really excited when I read this would be released soon.
Thank you!

Not concrete ETA, https://github.com/angular-ui/bootstrap#impt---2015-plans-and-angular-13-support

@karianna That section was removed a week ago (https://github.com/angular-ui/bootstrap/commit/6355d8adc7d051e18739e617cba158f5d29c15d4)

Heh - so it was, you can look for 0.13.0 milestone issues to get a guesstimate of how close we are to a release.


Bump version to Omni Core <IP_ADDRESS>-rel

This pull request bumps the version to <IP_ADDRESS> and updates the release notes. Some old release notes were missing, so I added them, too.

UTAck, OK to merge


remove unused error ErrPendingSwarmExists

I found that err ErrPendingSwarmExists is not used in code.
This PR removed this part. And If I miss something, feel free to let me know.
- What I did
- How I did it
- How to verify it
- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)
Signed-off-by: allencloud<EMAIL_ADDRESS>

LGTM


separate connection string parsing from connection

add support for connection details as array
Solution for #315

@Rican7 Updated a lot. In need of some doc-block updates here and there but I think this should be alright.

@jpfuentes2 any word on this?


Check if token is still refreshable

MaxRefresh time means :

that the maximum validity timespan for a token is MaxRefresh + Timeout,

but RefreshHandler returns 401 right after expiration of the Timeout so it makes no sense to specify MaxRefresh because anyway client well be rejected.
In this PR I did proper error handling which allows to refresh token if error is jwt.ValidationErrorExpired

Hi @urakozz,
Now I see what you want to do. However, that is not how refreshing works. The point of refreshing is exactly that you can only refresh with a still valid token. Otherwise you could just turn up the timeout and achieve the same effect.
Cheers,
Stephan

@StephanDollberg so that means that MaxRefresh value does not make any sence?

It does, it's the maximum time that a valid token can be refreshed.


Use NonZeroUsize in wheel capacity

Use NonZeroUsize instead of usize. Capacity of
a Wheel should not be 0.

Let me give it a try 😀


 Have made all the changes in this and repoened a new pr.
https://github.com/kedacore/keda-docs/pull/180


Upgrade all the Scala libraries in the storage service

Required for #3897. Related: https://github.com/wellcomecollection/platform/issues/4437.

Done.


Wrong text of InfiniteScrollArea documentation

Provide the exact quote of the error or issue
InfiniteScrollArea inherits the style from .
InfiniteScrollAreaは、のスタイルを継承しています。
Does the docs page already exist? Please link to it.
https://yamada-ui.com/components/data-display/infinite-scroll-area/theming
Are you willing to participate in fixing this issue and create a pull request with the fix?
None

@108yen
The same event occurs for all components that do not inherit.

It is needed to fix.
https://github.com/yamada-ui/yamada-ui/blob/d64f0feddd82ff97d2e44232d7e5185df37c4bc9/docs/scripts/component/theme.ts#L37-L98


Fix for issue #374.

This request fixes issue #374 introduced in commit 005ffa0bb078d39cbc58bccb5787cf9dc2cfab39.
Didn't try the fix on windows but it should work.

is there any reason why boolean is being defined to unsigned char on windows? I would rather define it as unsigned int, since my C# code won't be portable anymore otherwise (I need a consistent boolean data type across platforms, I'm depending on the ABI)


Incorporate First Nations notification in Resource Models

Discuss which models need a section for recording notifications and responses - IPA and for researchers

Just for researchers, and a Communications Log was created


[WIP] Test tensorflow gpu ci

Debug PR to test Tensorflow GPU CI.

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (c8a5a89) 77.76% compared to head (5c2d03f) 57.26%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #18557       +/-   ##
===========================================
- Coverage   77.76%   57.26%   -20.51%
===========================================
  Files         334      334
  Lines       32372    32372
  Branches     6313     6313
===========================================
- Hits        25175    18538     -6637
- Misses       5620    12414     +6794
+ Partials     1577     1420      -157

Flag
Coverage Δ

keras
57.26% <ø> (-20.41%)
:arrow_down:

keras-jax
?

keras-numpy
57.26% <ø> (ø)

keras-tensorflow
?

keras-torch
?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 181 files with indirect coverage changes

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

One way you might debug this is to change the test command to only a subdirectory (e.g. keras/layers) and once something works, gradually increase the test surface until something breaks.

One way you might debug this is to change the test command to only a subdirectory (e.g. keras/layers) and once something works, gradually increase the test surface until something breaks.

The issue right now is, pip install tensorflow doesn't detect the GPU, but nvidia-smi and nvcc commands work.


Azure DevOps release pipeline fails on kubectl command

Note
Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo
For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
If you have an issue or request for the Azure Pipelines service, use developer community instead:
https://developercommunity.visualstudio.com/spaces/21/index.html )
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Question
Enter Task Name: Kubernetes
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment

Server - Azure Pipelines

If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

Agent -Private:  RHEL 7.2 with ADO agent 2.165.0

Issue Description
I'm trying to build an ADO release pipeline to delete running pods from our on-prem Kubernetes cluster. I already have a self-hosted agent with kubectl installed and and am able to run the build pipeline on it (which builds the Docker image and pushes it to our on-prem Harbor repo). And now I'm trying to create the release pipeline to delete running pods so they are recreated with the latest image from Harbor. I've also created an ADO service connection for the Kubernetes cluster with the correct kubeconfig info.
I'm using the Kubectl task and am just trying to show the running pods (to test getting this working). However, when the pipeline runs this task, it seems to say that "get pods" is not a valid kubectl command:
2020-05-15T19:23:33.1905346Z [command]/usr/bin/kubectl --kubeconfig /myagent/_work/_temp/kubectlTask/1589570612549/config get pods -n rpaapis
2020-05-15T19:23:33.1906131Z Error: unknown command "get pods" for "kubectl"
2020-05-15T19:23:33.1907408Z Run 'kubectl --help' for usage.
2020-05-15T19:23:33.1944451Z ##[error]Error: unknown command "get pods" for "kubectl"
2020-05-15T19:23:33.1956294Z ##[error]Run 'kubectl --help' for usage.
2020-05-15T19:23:33.1957880Z ##[error]/usr/bin/kubectl failed with return code: 1

The YAML produced by the form-based  task editor seems fairly straightforward:
steps:
- task: Kubernetes@0
  displayName: 'kubectl get pods'
  inputs:
    kubernetesServiceConnection: 'On-prem K8s - staging'
    namespace: rpaapis
    command: 'get pods'
    versionOrLocation: location
    specifyLocation: /usr/bin/kubectl

I can log onto the self-hosted agent system and run the kubectl command with the same kubeconfig data as in the service connection:
/usr/bin/kubectl --kubeconfig /tmp/config get pods -n rpaapis
NAME                       READY   STATUS    RESTARTS   AGE
rpaapis-65c96b8dcb-khzzb   2/2     Running   0          30h
rpaapis-65c96b8dcb-lhzzj   2/2     Running   0          30h

So it seems that it's executing the correct kubectl executable, so not sure why the odd error. In fact, the only successful command I can seem to make the task run is "kubectl --help". I then noticed that the Kubectl task has multiple versions, so I changed that to "1.*" and re-ran the pipeline. The kubectl command it executed was slightly different, but it still resulted in the same error.
/usr/bin/kubectl get pods -n rpaapis -o json
Am I doing something obviously wrong?  Thanks in advance.
Task logs
[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
Version 0.* log:
2020-05-15T19:23:32.2155586Z ##[section]Starting: kubectl get pods
2020-05-15T19:23:32.2454099Z ==============================================================================
2020-05-15T19:23:32.2455046Z Task         : Kubectl
2020-05-15T19:23:32.2455887Z Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running kubectl commands
2020-05-15T19:23:32.2456660Z Version      : 0.159.2
2020-05-15T19:23:32.2457529Z Author       : Microsoft Corporation
2020-05-15T19:23:32.2458383Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/kubernetes
2020-05-15T19:23:32.2458922Z ==============================================================================
2020-05-15T19:23:33.1572427Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1575176Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1576653Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1577929Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1579890Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1581955Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1583706Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1584910Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1586134Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1587458Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1588621Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1589724Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1590841Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1591908Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1593050Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1593824Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1594455Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1595113Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1595684Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1596954Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1597583Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1598176Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1598740Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1599322Z (node:83847) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-05-15T19:23:33.1905346Z [command]/usr/bin/kubectl --kubeconfig /myagent/_work/_temp/kubectlTask/1589570612549/config get pods -n rpaapis
2020-05-15T19:23:33.1906131Z Error: unknown command "get pods" for "kubectl"
2020-05-15T19:23:33.1907408Z Run 'kubectl --help' for usage.
2020-05-15T19:23:33.1944451Z ##[error]Error: unknown command "get pods" for "kubectl"
2020-05-15T19:23:33.1956294Z ##[error]Run 'kubectl --help' for usage.
2020-05-15T19:23:33.1957880Z ##[error]/usr/bin/kubectl failed with return code: 1
2020-05-15T19:23:33.2003389Z ##[section]Finishing: kubectl get pods

Version 1.* log:
2020-05-15T20:14:12.6698272Z ##[section]Starting: kubectl get pods
2020-05-15T20:14:12.6951801Z ==============================================================================
2020-05-15T20:14:12.6952650Z Task         : Kubectl
2020-05-15T20:14:12.6953365Z Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running kubectl commands
2020-05-15T20:14:12.6953812Z Version      : 1.167.1
2020-05-15T20:14:12.6954376Z Author       : Microsoft Corporation
2020-05-15T20:14:12.6954986Z Help         : https://aka.ms/azpipes-kubectl-tsg
2020-05-15T20:14:12.6955387Z ==============================================================================
2020-05-15T20:14:13.0534601Z Prepending PATH environment variable with directory: /usr/bin
2020-05-15T20:14:13.3067580Z ==============================================================================
2020-05-15T20:14:13.3081233Z 			Kubectl Client Version: v1.18.2
2020-05-15T20:14:13.3082697Z 	Kubectl Server Version: Could not find kubectl server version
2020-05-15T20:14:13.3084332Z ==============================================================================
2020-05-15T20:14:13.3497348Z [command]/usr/bin/kubectl get pods -n rpaapis -o json
2020-05-15T20:14:13.4163609Z Error: unknown command "get pods" for "kubectl"
2020-05-15T20:14:13.4165635Z Run 'kubectl --help' for usage.
2020-05-15T20:14:13.4295910Z ##[error]Error: unknown command "get pods" for "kubectl"
2020-05-15T20:14:13.4313036Z ##[error]Run 'kubectl --help' for usage.
2020-05-15T20:14:13.4314239Z commandOutput
2020-05-15T20:14:13.8769868Z ##[error]The process '/usr/bin/kubectl' failed with exit code 1
2020-05-15T20:14:13.8859434Z ##[section]Finishing: kubectl get pods

Also posted this to StackOverflow and a response there pointed out that the command option should only be the "get" and "pods" is an argument.  Even though I now have a different issue, that appears to be the solution to the original question.   Though it is odd that the syntax of the resulting command is now kubectl --kubeconfig _<file>_ get -n rpaapis pods; so it stuck the namespace option between "get" and "pods".  I'll assume this works (once I sort out the new issue) but it's a strange looking format.


Add support Ledger for Polkadex

Describe the task
Add support Ledger for Polkadex

Version test : http://<IP_ADDRESS>:8900/s/aHrSxRxCMtq8Stp

[ ] Error when perform sign Transfer with dApp Polkadot js

Version test : http://<IP_ADDRESS>:8900/s/aHrSxRxCMtq8Stp
Validation passed in case :

Install/Update version
When sign message, sign transaction

Network supported Earning


A more scalable way of getting pod status in K8sApiExecutor

Summary
k8sApiExecutor uses getPods to get container status. https://github.com/argoproj/argo/blob/56694abe27267c1cb855064b44bc7c32d61ca66c/workflow/executor/k8sapi/client.go#L69
This approach can have issues when the api-server is rate limited as in the case of EKS
This enhancement proposal is to seek advice/discuss a more scalable approach using a watch API
Motivation
I run argo workflows v2.7.6  on EKS. Security constraints in my org forces me to use the K8sApi executor and not [docker, kubelet]
I am constantly  hitting issues like this
time="2020-06-20T01:55:40Z" level=warning msg="Failed to get pod 'repeat-kill-coordinator-ddgmt-504426767': Get https://<IP_ADDRESS>:443/api/v1/namespaces/test/pods/repeat-kill-coordinator-ddgmt-504426767: dial tcp <IP_ADDRESS>:443: connect: connection refused"
time="2020-06-20T01:55:40Z" level=warning msg="Failed to get pod 'repeat-kill-coordinator-ddgmt-504426767': Get https://<IP_ADDRESS>:443/api/v1/namespaces/test/pods/repeat-kill-coordinator-ddgmt-504426767: dial tcp <IP_ADDRESS>:443: connect: connection refused"
time="2020-06-20T01:55:40Z" level=error msg="Failed to kill sidecars: Get https://<IP_ADDRESS>:443/api/v1/namespaces/test/repeat-kill-coordinator-ddgmt-504426767: dial tcp <IP_ADDRESS>:443: connect: connection refused"

in the wait container, causing the step to never complete and the workflow to never complete.
Another side-effect of this issue is ; Stop failing to stop the workflow.
argoexec wait --help
shows a request-timeout flag but the connection retries does not seem to be configurable
I fully acknowledge there are many factors in play here

Rate limiting at the API-server
We run a service-mesh. with no container ordering wait usually comes up before istio-proxy and I use a podSpecPatch to have wait container curl istio endpoint and then sleep before starting
the wait

Proposal
Is using a event based approach like using NewSharedIndexInformer a more scalable approach ?

Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

I removed istio-proxy out of the picture by annotating all templates with
traffic.sidecar.istio.io/excludeOutboundIPRanges: "<IP_ADDRESS>/32"
Once I do that , all the connection refused errors cahanged into i/o time out
time="2020-06-23T16:14:22Z" level=warning msg="Failed to get pod 'for-loop-sd6zv-2540214372': Get https://<IP_ADDRESS>:443/api/v1/namespaces/serviceresilience/pods/for-loop-sd6zv-2540214372: dial tcp <IP_ADDRESS>:443: i/o timeout"
time="2020-06-23T16:14:52Z" level=warning msg="Failed to get pod 'for-loop-sd6zv-2540214372': Get https://<IP_ADDRESS>:443/api/v1/namespaces/serviceresilience/pods/for-loop-sd6zv-2540214372: dial tcp <IP_ADDRESS>:443: i/o timeout"
time="2020-06-23T16:15:22Z" level=warning msg="Failed to get pod 'for-loop-sd6zv-2540214372': Get https://<IP_ADDRESS>:443/api/v1/namespaces/serviceresilience/pods/for-loop-sd6zv-2540214372: dial tcp <IP_ADDRESS>:443: i/o timeout"
time="2020-06-23T16:15:52Z" level=warning msg="Failed to get pod 'for-loop-sd6zv-2540214372': Get https://<IP_ADDRESS>:443/api/v1/namespaces/serviceresilience/pods/for-loop-sd6zv-2540214372: dial tcp <IP_ADDRESS>:443: i/o timeout"
time="2020-06-23T16:16:22Z" level=warning msg="Failed to get pod 'for-loop-sd6zv-2540214372': Get https://<IP_ADDRESS>:443/api/v1/namespaces/serviceresilience/pods/for-loop-sd6zv-2540214372: dial tcp <IP_ADDRESS>:443: i/o timeout"
And during that period of i/o timeout, I see huge latency spike in api-servers' response time and the verb is get pods.
Point being, by using the k8sApiExecutor, we can bombard the api-server if enough  concurrent steps are running across workflows and an event based implementation would be more scalable .

This should be greatly improved in v3.0. If not, v3.1 introduced the Emissary Executor and you should just use that.


Code cells are being spellchecked

In many cases, this extension is checking the spelling in "code" cells. Is this expected behavior? Can this behavior be turned off?

Yes and no. By default only comments are checked in code, which is opt-out. String checking are opt-in. What do you see in your settings (go to menu bar Settings → Settings Editor → Spellchecker); this should look like:

This is what my settings looks like:

Also seeing this issue, getting misspelling notes on imports, class names, etc. and no obvious way to turn it off

@bradezard131 is this in a notebook or in the file editor? What browser are you using? If you type something in the editor does it go away?

This is a notebook running in chrome. It does appear to go away when I start typing in each cell, which I'll use as a workaround for now to clean it up. I'd hope that this is still considered a bug though that I have to type in every cell to clean up the attention-grabbing red boxes.

It does appear to go away when I start typing in each cell, which I'll use as a workaround for now to clean it up

Ok, I see what is happening. It has nothing to do with the feature of spelling in code. Instead, the notebook initially advertises the cell to contain text and only switches the MIME format to Python code after the kernel has connected. Thus, the extension thinks that it is checking plain text. I never seen this in the notebook before but I did see this issue in File editor.
The solution would be to ensure we refresh the spellchecking after the editor MIME type changed.

Happening here as well. A good workaround is to close the notebook from the tab (don't shut down the kernel) and open it again.


Add lime_index slot for GLBRC support

Add to Biosample class
GLBRC definition is "an indicator of the reserve or potential acidity in soil and is used to determine the quantity of lime needed to correct the pH of an acid soil. Aka buffer pH or buffer index"
Related to lbc_thirty and lbceq but not the same measurement.

@bmeluch would you please provide some documentation about how the proposed lime_index slot is different from both lbc_thirty and lbceq?
If it is reasonably possible to convert between any of those phenomena, I propose that we don't add another slot but rather provide annotations on the existing slots about how to do the conversion.
If this slot is in support of one project, and the data are not going to be ingested from the DataPortal, then this could be a good case to illustrate nmdc tooling that ingests data with labels different from our slot names.

lime index description will be "an indicator of the reserve or potential acidity in soil and is used to determine the quantity of lime needed to correct the pH of an acid soil. Aka buffer pH or buffer index"
lbc_thirty is bioscales specific, if I rememeber and defined as "lime buffer capacity, determined after 30 minute incubation" I'm not sure it's the same thing? I can ask Adina.
lbceq description is lime buffer capacity, determined at equilibrium after 5 day incubation.
These are really specific with incubation time. I don't think these are the same.

Closing as not planned, parent issue https://github.com/microbiomedata/nmdc-schema/issues/1110 was closed because we decided it was not best practice to try and add mapping to support every BRC project.


Property 'execute' does not exist on type 'IObjectPathBatch' SPFx 1.11

Category

[x ] Question
[ ] Typo
[ ] Additional article idea

Expected or Desired Behavior
Would like to make batch requests using taxonomy.
Observed Behavior
import {taxonomy, ITerm, ITermSet, ITermStore} from '@pnp/sp-taxonomy';
. . .
const taxonomyBatch = taxonomy.createBatch();
. . .
taxonomyBatch**.execute**().then(_r => {resolve
I'm using spfx 1.11.0 and is pnp/sp-taxonomy.
Error: Property 'execute' does not exist on type 'IObjectPathBatch'. What is the recommended or how I can fix it.

This is a question about the PnPJS library, not general SharePoint development. Please post your question to the PnPJS repo: https://github.com/pnp/pnpjs


feat(Expansion Panel): "Virtual" expansion panel

Feature Description
for certain use cases, an option to make expansion panel not render the items inside 'em when closed(like a virtual scroll) would be really useful
Use Case
for example, in the image i've got two expansion panels, each with 50 components inside, if i closed one, those 50 components would still be loaded in the page, unnecesarily

This sounds like the "Lazy rendering" use case from the docs: https://material.angular.io/components/expansion/overview#lazy-rendering

You're absolutely right. My bad.

my bad, though it was as you said, but lazy renedring will keep the rendered elements after they were rendered once, instead of removing 'em if it's closed again, as a virtual scroll would

I believe the thinking behind keeping the elements in the DOM after the first render is that you've already paid the cost for rendering the elements so keeping them for the next time it's opened is cheaper than removing and re-adding them. That sort of breaks down for virtual scrolling when you have tons of elements.

the problem is that, in cases like the one described in my first post, when all elements have been rendered, #8287 happens


Add source field and testcode

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (8b44497) 35.21% compared to head (6d2ef64) 35.50%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##              tis      #95      +/-   ##
==========================================
+ Coverage   35.21%   35.50%   +0.28%
==========================================
  Files          13       13
  Lines         673      676       +3
==========================================
+ Hits          237      240       +3
  Misses        436      436

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


Can't type into the terminal

Using Windows 10. Installed platformio a while ago. Tried it today and all I get is cursor. When I try to type nothing happens. I updated platformio and restarted Atom but it still doesn't work.

works fine here
Windows 10 64bit 1709 16299.371
Atom 64bit 1.26.0
Platform-ide-terminal 2.8.1
$ atom --version
v7.9.0

$ apm --version

apm  1.19.0
npm  3.10.10
node 6.9.5 x64
atom 1.26.0
python 3.5.2
git 2.17.0.windows.1
visual studio

Hi,I also meet this problem today.
The console shows "events.js:106  Cannot find module '..\build\Release\pty.node''
And I try to install pty.node using npm command but failed.

Try to uninstall and reinstall platformio-atom-ide-terminal
IDK, but  it doesnt make sense that it works for some people and not others.

@ people monitoring this, is this still an issue with platformio-ide-terminal 2.8.3?

@LEEDOGEGG Im glad its working for you now. I suspect half the issues reported are Atom profiles gone wild.

Please retest again with platformio-atom-ide-terminal 2.9.0 is using node-pty-prebuilt instead unmaintained and outdated pty.js

Terminal is not working . Using Ubuntu 18.04. Tried reinstalling platformio but it does seem to work. All I get is cursor. When I try to type nothing happens. I restarted Atom too, but it still doesn't work.

@gopeshkh1 see and read https://github.com/platformio/platformio-atom-ide-terminal/issues/668#issuecomment-633130699


Local file

How can I use this to x-compile a local project. It seems to attempt to search on the internet for my package which obviously doesn't exist.
equivalent to just
go build *.go?

https://github.com/karalabe/xgo/issues/77 => the advice here doesn't work

Can confirm that this is no longer working.

This only works when the local project is inside GOPATH

@pjebs , I just built a local project without any real issue (after I fixed my environment variables). Is this still an issue for you? What error are you receiving?

@karalabe I would like to build from outside the GOPATH such as the files located in Documents/myproejct/gosrc/main.
Is that possible??


Cancel CI workflow when another workflow is started for the same branch

Closes #187

Codecov Report
Patch coverage has no change and project coverage change: -0.02 :warning:

Comparison is base (50c46b1) 100.00% compared to head (4137d8f) 99.98%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@             Coverage Diff             @@
##              main     #210      +/-   ##
===========================================
- Coverage   100.00%   99.98%   -0.02%
===========================================
  Files          124      124
  Lines         8645     8645
===========================================
- Hits          8645     8644       -1
- Misses           0        1       +1

see 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


multi-views for documents/entities dense retrieval

Here are the papers I mentioned:

https://aclanthology.org/2022.acl-long.414
https://aclanthology.org/2022.acl-long.76

Thanks, Paul. I will pass those along.
Thank you for participating, I did appreciate your insight.
Laura
On April 6, 2023 2:19:32 PM GMT+01:00, PaulLerner @.***> wrote:

Here are the papers I mentioned:

https://aclanthology.org/2022.acl-long.414
https://aclanthology.org/2022.acl-long.76

--
Reply to this email directly or view it on GitHub:
https://github.com/laura-dietz/neurosymbolic-representations-for-IR/issues/1
You are receiving this because you are subscribed to this thread.
Message ID: @.***>

Thanks for organizing, it was great!


stats bugs

The TPS is a float number
Productivity calculation is wrong. Hide the graph before we figure out the right way to calculate it
Number of consensus delegate is wrong. It is supposed to be 24, we need to review the implementation

The first issue is a problem in iotex-analytics. I will ask the corresponding engineer to fix it.

For 3, https://github.com/iotexproject/iotex-explorer/blob/43a4136afb52324205cca77a93840c83a36900f9/src/shared/home/stats/candidates-card.tsx#L48 should be the ones with "productivityBase !== 0"

For 2, query https://github.com/iotexproject/iotex-analytics/blob/0786372110db3928815bab9ee2727acd064dca8c/queryprotocol/productivity/protocol.go#L73 instead

For 2, query https://github.com/iotexproject/iotex-analytics/blob/0786372110db3928815bab9ee2727acd064dca8c/queryprotocol/productivity/protocol.go#L73 instead

It seems GraphQL schema at https://github.com/iotexproject/iotex-analytics/blob/0786372110db3928815bab9ee2727acd064dca8c/graphql/schema.graphql was not updated yet. When can we have it available?


Maybe make the document more clear when using with bzlmod

I'm new to bzlmod, somehow this is what should be done to use this with bzlmod:
Add to MODEL.bazel:
bazel_dep(name = "rules_jsonnet", version = "0.6.0")

In BUILD.bazel
load("@rules_jsonnet//jsonnet:jsonnet.bzl", "jsonnet_library", "jsonnet_to_json")

Note normally it was @io_bazel_rules_jsonnet//jsonnet:jsonnet.bzl based on the name specified in the http_archive

Hey there!
I'm going to close this, because this is now already covered. Support for WORKSPACE has been removed, meaning that all references in this repo now use @rules_jsonnet instead of @io_bazel_rules_jsonnet. Thanks for reporting this regardless!


Update TextBoxExtensions.md

Fixed typos

Fixes #
Docs for Toolkit PR #
What changes to the docs does this PR provide?

PR Checklist
Please check if your PR fulfills the following requirements:

[x] Correctly picked the right branch to base the change off (dev for new features, master for typos/improvements)
[x] For new pages, used the provided template
[x] For new features, added an entry in the Table of Contents
[x] Ran against a spell and grammar checker
[x] Contains NO breaking changes

Other information

Docs Build status updates of commit 2bf7b19:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/extensions/TextBoxExtensions.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Great catch @CADustin, thanks!
FYI @Sergio0694 - leftovers

Oh, whoops! 😅
Great catch indeed @CADustin, thanks! 🚀

Thanks! It took me longer than I'd like to admit to realize I wasn't just missing something simple.
Anyway, I appreciate the effort that went into 7.x, it's a real improvement.


disable_3d=yes compile option results in linker errors

Having disable_3d as a parameter for scons results in linker errors when compiling.

Closing this since it's duplicate of https://github.com/godotengine/godot/issues/2685


Install Compile Failue on ArchLinux 64 bit Boost 1.43

From<EMAIL_ADDRESS>on October 14, 2010 01:51:25
What steps will reproduce the problem? 1. install boost
2. install glew
3. ocelot make fails What is the expected output? What do you see instead? compiler error What version of the product are you using? On what operating system? Archlinux circa Oct. 2010
boost library 1.43.0-1 Please provide any additional information below. During make the following error from a boost include file is observed:
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I ./ocelot/cuda/include -Wall -ansi -Werror -std=c++0x -g -O2 -MT libocelot_la-KernelEntry.lo -MD -MP -MF .deps/libocelot_la-KernelEntry.Tpo -c ocelot/trace/implementation/KernelEntry.cpp  -fPIC -DPIC -o .libs/libocelot_la-KernelEntry.o
In file included from /usr/include/boost/interprocess/sync/file_lock.hpp:24:0,
from ocelot/trace/implementation/KernelEntry.cpp:22:
/usr/include/boost/interprocess/detail/move.hpp: In function ‘typename boost::remove_reference::type&& boost::interprocess::move(T&&) [with T = boost::interprocess::file_lock&, typename boost::remove_reference::type = boost::interprocess::file_lock]’:
/usr/include/boost/interprocess/sync/file_lock.hpp:68:52:   instantiated from here
/usr/include/boost/interprocess/detail/move.hpp:342:11: error: invalid initialization of reference of type ‘boost::remove_referenceboost::interprocess::file_lock&::type&&’ from expression of type ‘boost::interprocess::file_lock’
make[1]: *** [libocelot_la-KernelEntry.lo] Error 1
make[1]: Leaving directory `/opt/ocelot-1.1.560'
make: *** [all] Error 2
Original issue: http://code.google.com/p/gpuocelot/issues/detail?id=45

From<EMAIL_ADDRESS>on October 13, 2010 22:53:22
forgot to mention that Archlinux is now using gcc 4.5.1

From<EMAIL_ADDRESS>on October 13, 2010 23:17:50
OK this is a known bug in the latest boost.  You can get past it via this patch: https://svn.boost.org/trac/boost/ticket/4426 This patch is technically for boost v 1.44 and I'm applying it to 1.43, but it gets me past that error.
Unfortunately the make attempt will fail later on.  Here is the error I now get:
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I ./ocelot/cuda/include -Wall -ansi -Werror -std=c++0x -g -O2 -MT libocelot_la-EmulatorDevice.lo -MD -MP -MF .deps/libocelot_la-EmulatorDevice.Tpo -c ocelot/executive/implementation/EmulatorDevice.cpp  -fPIC -DPIC -o .libs/libocelot_la-EmulatorDevice.o
ocelot/executive/implementation/EmulatorDevice.cpp:100:2: error: ‘executive::EmulatorDevice::MemoryAllocation::MemoryAllocation’ names the constructor, not the type
ocelot/executive/implementation/EmulatorDevice.cpp:126:2: error: ‘executive::EmulatorDevice::MemoryAllocation::MemoryAllocation’ names the constructor, not the type
make[1]: *** [libocelot_la-EmulatorDevice.lo] Error 1
make[1]: Leaving directory `/opt/ocelot-1.1.560'
make: *** [all] Error 2

From<EMAIL_ADDRESS>on October 14, 2010 11:12:50
The error in EmulatorDevice has been fixed for a while in the trunk.  Try checking out from subversion and compiling that instead of 1.1.560.
Status: Duplicate
Owner<EMAIL_ADDRESS>


Google Cloud Gateway module

Need a less opinionated Gateway for our published Google Cloud TF module.

What would be less opinionated? Right now it just creates a deployment using region instance manager.

Do customers need all these services to run a Firezone Gateway in GCP?
https://github.com/firezone/firezone/blob/main/terraform/modules/google-cloud/apps/gateway-region-instance-group/services.tf

Yes, they are generally required to run anything on Google Compute, and they just make sure that APIs are enabled (which should be true for default project) - you don't have to use them.


Adds nvembed model to quantization algorithm

Add support for quantizing the NV-Embed model using VPTQ. Benchmarked using MTEB to evaluate performance against the bfloat16 version. Current benchmarks are based on a single task, further testing with more meaningful retrieval tasks and parameter tuning would be interesting to explore.
Benchmarks below are provided for context only and are not part of this PR.
Batch sizes were set to 16 for VPTQ-NVEmbed and 4 for bfloat16, as these were the maximum sizes that fit on a 24GB GPU.
Results on a specific task in (MTEB)

Model
Main Score
Evaluation Time (s)

VPTQ-NVEmbed-128-1024
0.33361
753.76

NV-Embed bfloat16
0.38469
874.00

Thanks for your contribution! I will mergeit into the main branch and release a new version on PyPI.

Could you please provide any additional suggestions for our VPTQ project? Are there any areas where we need to make improvements?

Could you please provide any additional suggestions for our VPTQ project? Are there any areas where we need to make improvements?

As far as the algorithm is concerned, I’m still getting familiar with it and the codebase. However, one suggestion I’d make is to use the Ruff formatter (ruff format). I noticed that ruff is configured in the pyproject.toml, but the formatter itself isn’t being used. If this were my repo, I’d probably run ruff format and set up a GitHub action and pre-commit hook for ruff check and ruff format. The main advantage is avoiding formatting artifacts in PRs. Just my 2 cents! :)

Yes, indeed there are some issues with our format and my code management. I will continue to improve. Thank you!


Pull SMC Enhancements Back Upstream

https://github.com/galaxyproject/planemo-machine/compare/master...kellrott:dream-smc?expand=1
Probably at very least the following enhancements should be brought back up stream.

[ ] roles/dream-smc-client/templates/gce_mount_tool_disk.j2
[ ] roles/dream-smc-client/templates/galaxy_lib_sync.py.j2
[ ] roles/dream-smc-client/templates/galaxy_lib_sync_supervisor.conf.j2
[ ] scripts/setup_gce.sh
[ ] roles/galaxyprojectdotorg.devbox/tasks/main.yml
[ ] roles/galaxyprojectdotorg.devbox/templates/api.key.j2

Ping @mvdbeek - in re. https://github.com/bgruening/docker-galaxy-stable/issues/135#issuecomment-172871634. Should be pretty easy to pull some of this stuff out and place it in ansible-galaxy-extras.