Formatting imported data

Hi, I'm a complete newbie to Algolia but loving what I see so far.  I have a simple faceted search working for 4000 products but I have an issue where the price is being displayed in alphabetical order, not numerical.  I understand this is because the price index is a string and not an integer.
I've used the instructions here: https://www.algolia.com/doc/guides/indexing/import-synchronize-data/php to import my data but am really struggling on how to tell the API to import my price field as an integer.
Any help would be much appreciated.  Thanks.

I guess you fixed this @spindriftwebs, maybe you can add a small comment on how you fixed it for future reference?


Breadcrumbs enhance-> double click change the edit state

Hi,
Waiting for this wonderful feature comes in about the Breadcrumbs.
now the Breadcrumbs is like this:

If I double click this specific room and it will change to the edit state that make me be able to copy the path or manually modify the path and jump when out of focus (will remain unchanged if it does not exist).
I think this is more convenience way that I can get the path than others and more selective for quickly jump to anther file.
below is the edit state I am support to:
src/models/TodoModel.js( #method | $property )

// more config for this feature will make better, like this

// ( configName: type:default  -- notation )
// isShowAbsolutePath: boolean:false -- is showing the absolute path when the Breadcrumbs is edit
state.
// isShowSuffix: boolean:true  -- is showing the previously cursor indicate the file (method / property...) when the Breadcrumbs is edit

Thank you for consider this.

Not sure I understand what's requested here. Can you clarify?

In a nutshell, I want to switch to edit mode when I double-click on the breadcrumbs so that I can copy or modify it(use to jump to other files).


Patching fails to preserve original owner, group, permissions.

Patching fails to preserve original owner, group, permissions.

This is how the current version works. The release we're testing at the moment (3.2.0) will preserve POSIX permissions for patched files.
Will leave this open until the 3.2.0 release.

@utoddl This should be resolved now. Have a play and let us know. If it doesn't do what you need feel free to reopen the issue.


tags

Coverage decreased (-0.03%) to 84.834% when pulling 629fbb6e752c40eea3b4c0d0d21fd1f8514d6cc2 on sunny4381:features/tags into ba30e623925e5de0ad1736f3d30dc82b5968d929 on shirasagi:master.

Coverage decreased (-0.03%) to 84.831% when pulling ccf54085ec4e07ed12e797415f3be5deef71fa13 on sunny4381:features/tags into ba30e623925e5de0ad1736f3d30dc82b5968d929 on shirasagi:master.

merged

merged


push credentials on github actions

👋 Hey!
First, thank you for this wonderful project.
I'm writing here because I'm trying to write a git extension called git-metrics which would allow to store metrics regarding the project, inside git notes, with a simple CLI, so that we don't need to rely on external services.
I have some commands working (add, remove, show) but when it comes to push and pull, it becomes a bit more tricky considering it involves some authentication.
In this PR, I'm trying to use git-metrics push to push my notes, directly from a github action. Using git, we just need to do git push origin refs/notes/metrics and the authentication works out of the box.
With git2, the authentication doesn't seem to work.
Does anyone know, what is the proper way to authenticate using git2 on github actions?
Thank you

Hey,
Its hard to make assumptions as you haven't given any error codes or anything that hasn't worked for you.
I would imagine however that using this section from the docs might help.
Using the RepoBuilder it seems as though you can make a Repository object which represents your repo.
Once you have your Repository object you can use this function to get the remote you want to push to.
From there you have a remote object which looks like it allows you to push & pull.
As for github actions, I'm not entirely sure how you would go about implementing calling those but I'm sure you can figure it out.
Cheers.


Migrate to Gatsby v2

All the Gatsby packages are up to date
The code is updated to correspond to the newer versions of the plugins
Development (npm run develop) and production (npm run build) versions of the website have no issues or discrepancies with the present live website.

I noticed that the initial commit in the repo was done two weeks ago, with Gatsby v1. If that was an intention please ignore and close the PR.

Seems like Netlify tries to build the website with node v8.7.0 and fails. Upgrading to v12 should fix the issue.


Allow imports to work in the game program

Currently due to the way the game program is executed in a new Function() module imports don't work.

This might be possible once we run the code in an iframe.

Not entirely clear we want this. It's nice for games to be self-contained. Will close as not planned.


test: stabilize deadlock tests

Signed-off-by: youjiali1995<EMAIL_ADDRESS>
What problem does this PR solve?
Problem Summary:
Tests fail frequently.
What is changed and how it works?
What's Changed:

Call must_put after region scheduling to make sure the region is ready for service.
Retry some times to detect deadlock.

Related changes
Check List
Tests

Unit test

Release note

No release note.

/test

/test

/merge


Qt dark mode warning

I get the following warning when running examples with the Qt GUI backend:
QWindowsWindow::setDarkBorderToWindow: Unable to set dark window border.

I'm not sure how helpful this is but I can see some snapshot of the source code that emits this warning here:
https://github.com/xingbangzhou/xhcc/blob/5a7196f0b023290696f7fee159ecf5581a151485/depends/qt6.2.3/src/qtbase/src/plugins/platforms/windows/qwindowswindow.cpp#L3045

I think it's because of the winId() method call. If I make get_window_id() return 1 instead of calling winId() then the error does not occur. There will be either a black screen or a crash because that id is obviously not valid, but no " Unable to set dark window border".

Can no longer reproduce with PySide 6.6 🎉


Authorization Reporting

Authorization Reporting includes a authorization with all the possible attributes, filter and order possibilities. (Project, Organization, Roles, LastChange, Created, etc.)

[ ] Authorization Reporting Console Design
[ ] Authorization Reporting Projection
[ ] Authorization Reporting CSV Export
[ ] Authorization Reporting API
[ ] Authorization Reporting Console Integration

tracked in #2301 this will be closed


Support for cross-compiling

Hi,
I am working on a project for IoT and it seems vector would fit quite well to it.
I am trying to cross-compile the code for an arm architecture on a linux machine, however on the config phase (./config --host=linux-arm), the script skips the section to set the ps command when it is "checking the ps style".
Since the variable that sets the ps model is not set, the ps style is unknown and the scripts exits.
My target machine has a busybox, and the ps behavior is different from the system I am compiling the code.
Does it make sense to cross compile?
I can also cross compile specific versions of ps, grep, whatever I need, but it is not clear to me if these binaries are being used to the compilation part (on my linux machine) or if they they are used to parse the output on my target machine.

Are you sure you're referring to vector (the web application) vs. pcp (the toolkit)?

you are totally right.


chore(package): update mocha to version 4.1.0

Closes #3

Coverage remained the same at 92.308% when pulling 720bbaa7fa4f79a1d8642b5f35dadef4303d5642 on greenkeeper/mocha-4.1.0 into 1f2cac0ca23d981d0adfac40423f7e611f911ee2 on master.


[RUM-22934][RUM-23164][BUG] Performance-based delay conditions causin…

…g missing events

Looks good to me. Please feel free to merge when the bug you have noticed above is fixed.


[BUG] htmlParser: selector ignored when using settings.json

[X ] I have searched for existing issues that already reported this problem and found none
[ X] The bug for the VSCode plugin

[ ] The bug is also present in the web version of VSCode or GitHub Codespaces

Describe the bug
I'm trying to use the following equivalent options as the defaults for settings.json:
---
markmap:
  initialExpandLevel: 4
  htmlParser:
    selector: 'h1, h2, h3, h4, h5, h6'
---

The htmlParser works when using it as front matter but not in settings.json. initialExpandLevel works.
To Reproduce

Add the following to extension settings under Markmap: Default Options
{
    "initialExpandLevel": 4,
    "htmlParser": {
        "selector": "h1, h2, h3, h4, h5, h6"
    }
}

Expected behavior
Same behavior when using front matter (only show Markdown headers -- do not use *)
---
markmap:
  initialExpandLevel: 4
  htmlParser:
    selector: 'h1, h2, h3, h4, h5, h6'
---

Actual behavior
Only initialExpandLevel works and htmlParser does not work.
Environment:

OS: Windows 10

Additional context

Fixed in 0.1.6

Confirmed fixed. Thank you @gera2ld


BUG: Cannot expand with mouse click or  in document symbols view

Did you check docs and existing issues?

[X] I have read all the docs.
[X] I have searched the existing issues.
[X] I have searched the existing discussions.

Neovim Version (nvim -v)
v0.10.2
Operating System / Version
Linux 6.11.3-arch1-1
Describe the Bug
I have the following document symbol tree. Pressing enter or clicking on the class E2EE does not expand it and show the symbols (methods) inside that class. The nested traversal works in the filesystem view no problem.
Note: it does work if I do / fuzzy search - the nested symbols show up. There are other rough edges once it has been opened this way, which I will make a separate issue for and edit the link in here [1].
Screenshots, Traceback
No response
Steps to Reproduce

Open some file with nested symbol structure that you have an LSP for.
Run :Neotree document_symbols
Try expanding any symbol by clicking or enter.

Expected Behavior
Similar to how files expand, symbols should expand to show nested symbols.
Your Configuration
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "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", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  -- add any other plugins here
}

local neotree_config = {
  "nvim-neo-tree/neo-tree.nvim",
  dependencies = { "MunifTanjim/nui.nvim", "nvim-tree/nvim-web-devicons", "nvim-lua/plenary.nvim" },
  cmd = { "Neotree" },
  keys = {
    { "<Leader>e", "<Cmd>Neotree<CR>" }, -- change or remove this line if relevant.
  },
  opts = {
        close_if_last_window = true,
    window = { width = 30 },
    filesystem = {
        follow_current_file = { enabled = true, leave_dirs_open = true },
        use_libuv_file_watcher = true,
    },
    sources = { "filesystem", "buffers", "git_status", "document_symbols" },
    source_selector = {
        winbar = true,
            sources = {
              { source = "filesystem" },
              { source = "buffers" },
              { source = "git_status" },
              { source = "document_symbols" },
            },
    }
  },
}

table.insert(plugins, neotree_config)
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

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

I just realised this is done with Toggle Node. Closing! Sorry


Build errors on gcc8

Various places in the code fail with references to __atomic_xxx calls.
[ 98%] Built target libprotoc
Scanning dependencies of target protoc
[ 99%] Building CXX object CMakeFiles/protoc.dir/srv/maverick/var/build/dronecore/build/default/third_party/protobuf/protobuf/src/protobuf/src/google/protobuf/compiler/main.cc.o
[100%] Linking CXX executable protoc
/usr/bin/ld: libprotobuf.a(arena.cc.o): in function `google::protobuf::internal::ArenaImpl::Init()':
arena.cc:(.text+0x44): undefined reference to `__atomic_fetch_add_8'

This can be worked around by adding the following to CMakeLists.txt:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -latomic")
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/8/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 8.3.0-6+rpi1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --disable-werror --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)

Thanks for the issue. I wouldn't say this is a GCC 8 issue but rather an issue of that toolchain on arm.
I don't think that the linker flag should be added to the CXX build flags though but rather we need to link to atomic as well.

@fnoop could you test if this works?
https://github.com/mavlink/MAVSDK/pull/837

@julianoes No, still the same problem with that PR.  Note the problem above is in third_party/protobuf, even though I have libprotobuf-dev installed - does it not use system library if already present?

Oh of course, I put it in the wrong place.

does it not use system library if already present?

Not if you build with the super build.

So two options are:

Add -DCMAKE_CXX_FLAGS=-latomic to cmake, eg:
/usr/bin/cmake ${atomic_flag} -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_BACKEND=ON -DCMAKE_INSTALL_PREFIX=/srv/maverick/software/mavsdk
It doesn't look like this gets passed through to the thirdparty builds however, although the thirdparty CMakeLists.txt could be altered to pull it in, possibly.

Or, set the environment variable CXXFLAGS=-latomic - this is a bit more 'sticky' as it gets pulled in by cmake to set CMAKE_CXX_FLAGS if found, and this does fix the thirdparty builds.
So it could be added as a build note/step for Raspberry (or Debian Buster in general, if it affects other architectures), but ideally it would be auto detected and set within mavsdk.
Ideally it would use system provided protobuf if available, unless there's a particular reason for using a separate compile, to save compile time and other problems like this.

First, I would like to make sure I understand what problem you are trying to solve :blush:.

What is wrong with cross-compiling with dockcross?
Why do you want to build on the RPi instead of cross-compiling for it?

Assuming that there really is a need for compiling mavsdk_server on the RPi, I believe that the solution is to fix the protobuf compilation for this specific platform (i.e. in third_party/protobuf/CMakeLists.txt) and not to propagate CXX_FLAGS everywhere :sweat_smile:. In other words, go into third_party/protobuf and try to compile it from there.

Ideally it would use system provided protobuf if available, unless there's a particular reason for using a separate compile, to save compile time and other problems like this.

The way it works is that the MAVSDK project finds its dependencies using find_package. So if you want to deal with the dependencies manually (which is perfectly fine), you should run with -DSUPERBUILD=OFF. The reason why we default to -DSUPERBUILD=ON is that most of our users don't know or don't want to deal with the dependencies themselves. Other reasons for having the superbuild at all is that we sometimes need to build our dependencies for some platforms (e.g. manylinux), and we sometimes need to patch them for other platforms.
What the superbuild does is conceptually quite easy:
a. It builds the dependencies separately and installs them (by default) in ${PROJECT_BINARY_DIR}/third_party/install
b. It sets CMAKE_PREFIX_PATH to that install directory for mavsdk
c. It builds MAVSDK
Which means that if MAVSDK doesn't find the dependency in ${PROJECT_BINARY_DIR}/third_party/install, it will look for it on your system. But we don't have options to enable/disable each dependency separately: either you enable the superbuild, or you don't. If you want to do something in-between (i.e. have some dependencies on your system, and some built by our scripts), please feel free to do that! It is not super complicated, but you have to do it manually.

First, I would like to make sure I understand what problem you are trying to solve 😊.
mavsdk failing to build as per instructions on latest Raspbian :)

The build is broken on Raspbian, which probably means it's broken on other non-x86 Debian buster builds, and possibly recent/future Ubuntu.  A workaround by cross compiling is not a solution, it's a workaround.  There's still a problem and it should be fixed.
My particular use-case is a uav companion computer project which implements a multi-platform automated build process.  This is my mavsdk build manifest, with the current CXXFLAGS workaround:
https://github.com/goodrobots/maverick/blob/master/manifests/maverick-modules/maverick_dev/manifests/mavsdk.pp#L9
See here for similar protobuf issue:
https://github.com/protocolbuffers/protobuf/issues/5219
In that issue is a PR from llvm with a bit more background:
https://github.com/protocolbuffers/protobuf/pull/5227
Thanks for background on the superbuild, would be very useful to document that in the build docs.

A workaround by cross compiling is not a solution, it's a workaround. There's still a problem and it should be fixed.

I don't deny the fact that building on the RPi fails, I was just wondering if that was really what you wanted. For instance, building on a RPi zero is probably super slow, which is why we worked hard on getting the cross-compilation to work.
But I get it, you want to build from the RPi.

See here for similar protobuf issue

So we agree that this is a protobuf compilation issue, which means that there is no need to change the CXX_FLAGS of MAVSDK.
In my opinion, there are two ways to solve that. The "workaround", and the "solution", as per your definition above:

Workaround: Go in MAVSDK's third_party/protobuf/CMakeLists.txt, and change the CXX_FLAGS there for armv7 (or something along those lines).
Solution: Fix the protobuf build for armv7, getting inspiration from the PR you linked above that fixed armv6. NOTE: Maybe the fix for armv6 is even valid for armv7? Did you check that?

I totally agree with you that the "solution" would be much nicer, and I'm hoping you'll have a look at that :+1:! Otherwise, I'm obviously open to an armv7-specific workaround in our protobuf CMakeLists.

I totally agree with you that the "solution" would be much nicer, and I'm hoping you'll have a look at that 👍

Honestly if I had the confidence to produce a proper solution I would have tried and submitted a PR :)
It looks like this problem will occur on platforms where gcc doesn't provide atomic operations but instead relies on libatomic.  I don't think it matters whether it's armv6 or armv7.  A quick grep through mavsdk for std::atomic indicates this will affect:

third_party/protobuf
third_party/grpc
mavsdk itself

Thanks for the clarifications!
One thing I don't get, though, is that the build works for armv7 with dockcross, i.e. when not compiling protoc. So I don't think we need to link libatomic in mavsdk itself.
The second thing is that this was supposedly fixed in October 2018 in protobuf, and we use version 3.7.1 which is from March 2019. So I'm not sure why this happens :thinking:.
Did you try adding your CXX_FLAGS in third_party/protobuf/CMakeLists.txt to see where that goes?

One thing I don't get, though, is that the build works for armv7 with dockcross, i.e. when not compiling protoc. So I don't think we need to link libatomic in mavsdk itself.

dockcross is useful to build generic binaries for a different architecture, but it's not a replacement for an optimised or current complete environment for a specific platform.
I've now manually added in -DCMAKE_CXX_FLAGS=-latomic to protobuf, got past that successfully and then hit the same problem in grpc.   So I've made the same fix to grpc and got past that, and now hitting the same problem with mavsdk itself:
[ 86%] Linking CXX executable mavsdk_server
/usr/bin/ld: libmavsdk_server.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
make[2]: *** [src/backend/src/CMakeFiles/mavsdk_server_bin.dir/build.make:86: src/backend/src/mavsdk_server] Error 1
make[1]: *** [CMakeFiles/Makefile2:1580: src/backend/src/CMakeFiles/mavsdk_server_bin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

The fix in protobuf was for autoconf, not cmake.

Hmm. Of course protobuf will not export libatomic in its cmake targets when we add it through the CXX_FLAGS :thinking:. And therefore the CXX_FLAGS workaround has to be done at the mavsdk level.
If that's fine, give me a few days to check if there is an easy fix at the protobuf level, which would be much more elegant. If I don't manage to do that, I'll accept a PR fixing it at the mavsdk level.
But then, instead of CXX_FLAGS, wouldn't it make sense to try @julianoes approach of correctly linking it through target_link_libraries? Because setting CXX_FLAGS will propagate that issue to whoever uses mavsdk, and force them to link libatomic themselves, right?

I managed to get an RPi to try to reproduce it myself and confirm that this is a protobuf issue. Turns out it is, and it was fixed last month. So using latest master seems to just work.
@fnoop: Please review the PR

Works, thanks :)


MenuItem setEnabled() has no effect on <3.0 devices using the 'old six pack' Menu

When using the old 'six pack' menu mechanism (shown by the <3.0 MENU button, any attempt to setEnabled(false) fails.
Presumably this is due to ABS using com.android.internal.view.menu.IconMenuPresenter (which handles the same package's IconView interface, where 'isEnabled()' is a method), rather than in the ABS package implementation, which is missing from com.actionbarsherlock.internal.view.menu.

Is this referring to ABS v4? If so it's probably a duplicate of #150. I hadn't spent time properly binding to the native menu yet.

Yes, it is 4.0 and does look like it's related to #150 (so feel free to close this).


lit-extended & HTMLElementTagNameMap integration

lit-extended sets properties instead of attributes by default, and adds the name$= syntax for opting-into attributes.
If would be great to understand the set of valid properties and their types from HTMLElementTagNameMap. Integration with custom elements would be relatively easy then:
import {html, render} from 'lit-html/lib/lit-extended';

class MyElement extends HTMLElement {
  someProp: number;
}
customElements.define('my-element', HTMLElement);
declare global {
  interface HTMLElementTagNameMap {
    'my-element': MyElement;
  }
}

// this should have a warning under "${'abc'}" for not being a number
html`
  <my-element someProp=${'abc'}></my-element>
`;

// this should have a warning under somProp for not being property of MyElement
html`
  <my-element somProp=${10}></my-element>
`;

// this should have a warning under<my-elemet> for not being a known element
html`
  <my-elemet></my-elemet>
`;

Basically, we want the same features as JSX type-checking. Additionally, it'd be great to have some way to tell tsc the valid attributes for an element.

Would be great to make the type definitions extensible the same way that JSX in Typescript is extensible:
declare namespace JSX {
  interface ElementAttributesProperty {
    props: {}; // specify the property name to use
  }
  interface IntrinsicElements {
    'my-element': MyElement;
  }
}

See the full TSX documentation: https://www.typescriptlang.org/docs/handbook/jsx.html


This annoying issue came back again

Hi, thank you very much for keeping VS Code the best IDE in the world. Could you please give some guidance regarding this issue? I run command-line to start VS Code, but somehow it doesn't detach from the process where I started it. I don't want to keep this gitbash window open just to keep my VS Code alive.
This issue is REALLY annoying and it occurred to me before and then it disappeared for a while now it came back again.

Thanks a million!

Why did you completely ignore the issue template? Please do do that. I'll simply close the issue next time.
What is your Code version? What is your OS? What is your OS version?
What do you get by running which code?

rui-ktei seems to refer to the code process being spawned as a child process of the console. Thus closing the console closes the editor;

Reproduced on windows 10 1709, VSCode 1.19.3 and just updated to VSCode 1.20.1 with powershell, cmd and pwsh. I wasn't aware this behaviour was ever any different.

@joaomoreno sorry about that. Here's the information you might need:

$ which code
/c/Program Files/Microsoft VS Code/code

Did you manually add /c/Program Files/Microsoft VS Code to your PATH? The right path to add is /c/Program Files/Microsoft VS Code/bin. That won't lock the command window.

@joaomoreno Thanks. I changed it to /bin


An kepub which does not want to import into my kobo clara hd

Good morning!
Thank you very much for the development of kepubify, I use it regularly to read epubs of books that I have in paper version.
It sometimes happens to me that certain kepubs are not detected by the kobo clara hd even though the epub file is detected.
When I unplug the kobo I see the import progress bar and it disappears and the kepub book is not present.
I don't know why, does the kobo generate a log file to undertand what appends during the importation?
I can send you an epub for the example.

You can check the syslog by running logread with NickelMenu or telnet. That may have some information. I also recommend validating the EPUB file; if you give kepubify garbage, it will result in garbage. If you send me the EPUB, I can see if there's anything obviously wrong with it, but I don't currently have time to look at it in depth.


Fun Facts API Compromised!

I think the API is used for malvertizing. Check the screenshot.

Hi there! 👋
I'm new to open source and looking for beginner-friendly issues to contribute to. I noticed this issue doesn't have a description yet. Could you please provide more details on what improvements or best practices you're looking for in this issue? I'd love to help and learn from this!
Thank you! 🙏

Dude. We can't do anything, except maybe doing a PR to remove the API from the list.


Add features for league clans

Textdraw showing clan name and points.
Make a clan chat (with # character maybe)

a6564645b48d54a1963e904ce0dcf3d59706f752


Make it simple to download the UI and the map

For the UI, I think we will need to have user_interface.tscn and at least also info_label.tscn (since we need to make new instances of that label during runtime). If we want to keep the press-enter-to-send functionality, we'll also need NewMsgEdit.cs. I should be able to rework user_interface.tscn so that it doesn't depend on any external files, except perhaps NewMsgEdit.cs. We could have the tutorial-user add that script during the tutorial to make sure there aren't any broken paths.
For the map, we should just need map.tscn and forest_bridge.jpg. Since map.tscn depends on accessing forest_bridge.jpg, it will probably be necessary to have the tutorial-user add that image to the map scene during the tutorial (again, to make sure there aren't any broken paths).

What you have for the map looks good, but I am thinking of moving it to the top of Movement and Collisions to go with the east/west arguing theme.
It would become
Part 1: Map and Level
Part 2: The Troll Scene, with the NPC scene from simple chat npcs as the starting point
Part 3: The Player Scene

Map part was fixed and we have separate issues for sections now. Closing.


Update quickstart.md

Missing part of path for elemental-iso-build step
Signed-off-by: Fred Loucks<EMAIL_ADDRESS>

Thanks @cybernetic-mountaineer !


load data error

hello Sir, thanks for providing such a complete project. But there are 2 questions for my running, the first one is that when you load the training data, if you just use
def load_data():     path = '/home/tz/data_analysis/cat-vs-dog/train/'     files = os.listdir(path)     images = []     labels = []     for f in files:              img_path= path + f              img = pil_image.open(img_path)              img = img.resize((128, 128))              img_array = np.asarray(img)/255              images.append(img_array)
actually you can't read any image just use path "/home/tz/data_analysis/cat-vs-dog/train/cat", you should add the complete path such as "/home/tz/data_analysis/cat-vs-dog/train/cat.1.jpg";
the second question is the function ' train_test_split()', when I use your code, I found an error "ValueError: Found input variables with inconsistent numbers of samples: [25000, 2]", I can't find a solution, could you please give me a hand? thank you so much!

hello Sir, thanks for providing such a complete project. But there are 2 questions for my running, the first one is that when you load the training data, if you just use
def load_data(): path = '/home/tz/data_analysis/cat-vs-dog/train/' files = os.listdir(path) images = [] labels = [] for f in files: img_path= path + f img = pil_image.open(img_path) img = img.resize((128, 128)) img_array = np.asarray(img)/255 images.append(img_array)
actually you can't read any image just use path "/home/tz/data_analysis/cat-vs-dog/train/cat", you should add the complete path such as "/home/tz/data_analysis/cat-vs-dog/train/cat.1.jpg";
the second question is the function ' train_test_split()', when I use your code, I found an error "ValueError: Found input variables with inconsistent numbers of samples: [25000, 2]", I can't find a solution, could you please give me a hand? thank you so much!

I have solved that problem, thank you anyway.

hello Sir, thanks for providing such a complete project. But there are 2 questions for my running, the first one is that when you load the training data, if you just use
def load_data(): path = '/home/tz/data_analysis/cat-vs-dog/train/' files = os.listdir(path) images = [] labels = [] for f in files: img_path= path + f img = pil_image.open(img_path) img = img.resize((128, 128)) img_array = np.asarray(img)/255 images.append(img_array)
actually you can't read any image just use path "/home/tz/data_analysis/cat-vs-dog/train/cat", you should add the complete path such as "/home/tz/data_analysis/cat-vs-dog/train/cat.1.jpg";
the second question is the function ' train_test_split()', when I use your code, I found an error "ValueError: Found input variables with inconsistent numbers of samples: [25000, 2]", I can't find a solution, could you please give me a hand? thank you so much!

I have solved that problem, thank you anyway.

hello Sir, thanks for providing such a complete project. But there are 2 questions for my running, the first one is that when you load the training data, if you just use
def load_data(): path = '/home/tz/data_analysis/cat-vs-dog/train/' files = os.listdir(path) images = [] labels = [] for f in files: img_path= path + f img = pil_image.open(img_path) img = img.resize((128, 128)) img_array = np.asarray(img)/255 images.append(img_array)
actually you can't read any image just use path "/home/tz/data_analysis/cat-vs-dog/train/cat", you should add the complete path such as "/home/tz/data_analysis/cat-vs-dog/train/cat.1.jpg";
the second question is the function ' train_test_split()', when I use your code, I found an error "ValueError: Found input variables with inconsistent numbers of samples: [25000, 2]", I can't find a solution, could you please give me a hand? thank you so much!

I have solved that problem, thank you anyway.

Which directory or file ？

hello Sir, thanks for providing such a complete project. But there are 2 questions for my running, the first one is that when you load the training data, if you just use
def load_data(): path = '/home/tz/data_analysis/cat-vs-dog/train/' files = os.listdir(path) images = [] labels = [] for f in files: img_path= path + f img = pil_image.open(img_path) img = img.resize((128, 128)) img_array = np.asarray(img)/255 images.append(img_array)
actually you can't read any image just use path "/home/tz/data_analysis/cat-vs-dog/train/cat", you should add the complete path such as "/home/tz/data_analysis/cat-vs-dog/train/cat.1.jpg";
the second question is the function ' train_test_split()', when I use your code, I found an error "ValueError: Found input variables with inconsistent numbers of samples: [25000, 2]", I can't find a solution, could you please give me a hand? thank you so much!

I have solved that problem, thank you anyway.

hello Sir, thanks for providing such a complete project. But there are 2 questions for my running, the first one is that when you load the training data, if you just use
def load_data(): path = '/home/tz/data_analysis/cat-vs-dog/train/' files = os.listdir(path) images = [] labels = [] for f in files: img_path= path + f img = pil_image.open(img_path) img = img.resize((128, 128)) img_array = np.asarray(img)/255 images.append(img_array)
actually you can't read any image just use path "/home/tz/data_analysis/cat-vs-dog/train/cat", you should add the complete path such as "/home/tz/data_analysis/cat-vs-dog/train/cat.1.jpg";
the second question is the function ' train_test_split()', when I use your code, I found an error "ValueError: Found input variables with inconsistent numbers of samples: [25000, 2]", I can't find a solution, could you please give me a hand? thank you so much!

I have solved that problem, thank you anyway.

Which directory or file ？

It's  the "tensorlayer" .


Infrastructure: pipenv.pypa.io documentation hosting migration

Hello! The PSF infrastructure currently hosts the pypa.io domain as well as the (soon unsupported) proxy configuration that fronts pipenv.pypa.io via Fastly with ReadTheDocs as the backend.
ReadTheDocs is deprecating support for this configuration, and it requires updating the CNAME record for pipenv.pypa.io to point directly to readthedocs.io.
In order to ensure minimal disruption to pipenv.pypa.io, the change in DNS can be coordinated with RTD via admin, but I need access as an administrator on the RTD project.
Can someone add ewdurbin as a Maintainer at https://readthedocs.org/dashboard/pipenv/users/?

duplicate #4805

@frostming is the intention to stop hosting docs via pypa.io domain? If so I can remove the DNS record.

I guess not, I am not owning the RFTD site.

Since disruption already happened, it's probably best to update the DNS and once an RFTD admin is found, they can update the config there...


ENH: sparse: efficient arithmetic operations for DIA format

Reference issue
Partially addresses gh-21039.
What does this implement/fix?
Implements most important arithmetic operations with sparse arrays in DIA format. Previously most operations used fall-back conversion to CSR format with very poor overall efficiency.
For comparison, the standard benchmarks (python dev.py bench -s sparse.Arithmetic):
Before
sparse.Arithmetic.time_arithmetic
======== ==== ========== ========== ========== ==========
--                                 op
------------- -------------------------------------------
 format   XY   __add__    __sub__    multiply   __mul__
======== ==== ========== ========== ========== ==========
  csr     AA   1.95±0ms   1.15±0ms   1.97±0ms   10.4±0ms
  csr     AB   7.12±0ms   13.8±0ms   7.64±0ms   21.1±0ms
  csr     BA   6.89±0ms   7.05±0ms   6.52±0ms   24.4±0ms
  csr     BB   7.06±0ms   5.21±0ms   6.98±0ms   46.0±0ms
  csc     AA   3.63±0ms   6.53±0ms   3.49±0ms   10.2±0ms
  csc     AB   6.55±0ms   6.45±0ms   7.40±0ms   24.4±0ms
  csc     BA   6.40±0ms   6.43±0ms   7.31±0ms   20.8±0ms
  csc     BB   7.04±0ms   5.65±0ms   7.07±0ms   44.9±0ms
  coo     AA   18.5±0ms   15.4±0ms   17.9±0ms   27.2±0ms
  coo     AB   25.9±0ms   26.0±0ms   26.2±0ms   42.0±0ms
  coo     BA   25.8±0ms   29.4±0ms   26.5±0ms   49.8±0ms
  coo     BB   35.0±0ms   30.8±0ms   33.0±0ms   72.9±0ms
  dia     AA   1.44±0ms   28.2±0ms   29.3±0ms   38.2±0ms
  dia     AB   2.37±0ms   46.7±0ms   46.8±0ms   61.5±0ms
  dia     BA   2.16±0ms   46.0±0ms   42.3±0ms   66.9±0ms
  dia     BB   1.51±0ms   64.6±0ms   66.8±0ms   108±0ms
======== ==== ========== ========== ========== ==========

(Only addition was implemented.)

DIA @ dense is also implemented and has efficiency similar to CSR @ dense, so the overall performance is improved by avoiding the DIA → COO → CSR conversion.
Additional information

I'm not familiar with SciPy internals and didn't find technical notes about scipy.sparse in particular (please point out if they exist), so there are some details that might need attention:

Are dtype promotions done correctly?
Should indexing dtype be specified? (The existing code sometimes uses defaults and sometimes intc, even though intp should be more time-efficient under Windows, see numpy 15513.)
Is .ravel() needed for arrays passed to wrapped C++ functions? (Again, seems to work without it, but some existing code uses it.)
Should error messages be more informative and consistent? I mean, there's been some work in gh-21018, but to a very limited extent.

To complete gh-21039, divisions and comparisons also need to be implemented, but in order to do them, I need to know
the conventions (what exactly should happen with operations on implicit zeros?).

Thanks for the PR! The improvements for subtraction here make me think we might want to apply a similar technique more broadly across the various formats. If you want to split that part out into a separate PR, we can merge that part more quickly.
I haven't read through the matmul changes closely yet, but overall the benchmarks and tests look very nice.

Also FYI: dev.py bench supports a comparison mode with the --compare main flag. This can make it easier to see where the big changes occur.

Thanks, @perimosocordiae! Please continue the review whenever you have time.
I suspect that the addition code that I've generalized here to subtraction is also potentially generalizable to some comparisons (and or/xor, if these to be implemented), on which I was planning to work after this gets reviewed. It would then make more sense to port the complete solution to other formats...
As for the benchmarks comparison, my goal was not so much to speed-up DIA on its own but to make it faster than CSR (as it should be theoretically), hence the way I've presented the results.


Printing in test fails test

Describe the bug
Any println throw an error.
To Reproduce
Steps to reproduce the behavior:

Put a println on your production code: (println "aaa")
Load the NS and run your test
See error: java.lang.IllegalArgumentException: No implementation of method: :send of protocol: #'nrepl.transport/Transport found for class: nil

Expected behavior
The println should work! ~If not, I cannot work~ :trollface:
Screenshots

Environment (please complete the following information):

IntelliJ Version:
IntelliJ IDEA 2024.1 (Community Edition)
Build #IC-241.14494.240, built on March 28, 2024
Runtime version: 17.0.10+8-b1207.12 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.4.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
ide.experimental.ui=true
scala.erase.compiler.process.jdk.once=false
Non-Bundled Plugins:
com.github.clojure-repl (1.0.3)
com.github.clojure-lsp (2.3.8)
com.jetbrains.space (241.14494.150)
com.github.copilot (<IP_ADDRESS>45)
org.intellij.scala (2024.1.15)
Kotlin: 241.14494.240-IJ

 - OS:
![image](https://github.com/afucher/clojure-repl-intellij/assets/5116933/2078c489-7c67-4e7f-a397-20762fe769fb)

**Additional context**
`#nu/tap` doesn't work either

Thanks for the report, I can repro the problem! I'll focus on that

A little bit related issue: https://github.com/afucher/clojure-repl-intellij/issues/65


401 for attachements behind web proxy with basic auth

I have setup ntfy.sh behind Nginx Proxy Manager with basic auth for security since It is public facing.
It works fine for notifications but doesn't download local attachments, I think it's because it only uses the basic auth/user for the topics and not the entire base url.

If you turn on debug logging in ntfy you can see the detailed error. log-level: DEBUG in the server.yml or --debug on the command line.

The logs don't say anything since the app can't download the attachments.
In the app I get a 401 error if I am using basic auth behind a proxy for the attachments, the notifcations arrive just fine

I'm going to close this for inactivity and lack of info. Happy to re-open if you can provide more details.


Don't make new users set up the Dockstore CLI

Is your feature request related to a problem? Please describe.
I love the Dockstore CLI to bits, but it really is optional for a lot of our users. And yet, when new users register, they are taken through the installation of the Dockstore CLI as if it were required to use our platform.
Describe the solution you'd like
Installing the Dockstore CLI should be mentioned, but it should be marked as optional.
Describe alternatives you've considered
It can be argued that since we're an open platform, people making accounts are likely to be devs, so having new users install the CLI makes sense. But in practice, we have users who are just managing workflows for their institution. We are also likely to have some users make an account even if they don't strictly need one because they may be used to that being a requirement.
Additional context
The prod, staging, and dev environments all tell new users to set up the CLI.
┆Issue is synchronized with this Jira Story
┆Fix Versions: Dockstore 1.14
┆Issue Number: DOCK-2107
┆Sprint: 107 - Eridanos
┆Issue Type: Story

We had other suggestions for simplifying the registration process in general.  Do you think this should be scoped in a separate ticket or should this ticket cover reviewing the entire registration process?

I think that since they're all related, it will be best to keep it on one ticket for now.
The suggestion that Julian had was to make the final page a little easier to digest. @juklucas can you specify the details?

I think the other compromise I had in mind was to list the kinds of things you could do with the CLI in the quickstart.
It does say at the top of https://qa.dockstore.org/quick-start

Setup our Dockstore CLI application to start launching workflows from the command line.

 But if you're just curating or starring workflows, you don't need to.


input FIGI to get other id

for example, I input FIGI and get cusip and sedol return

This is not a planned feature for OpenFIGI.


load checkpoint

Train stage:About "For training, please download monodepth2, replace the depth network, and revise the setting of the depth network" .Can you give some details, because it occurs some errors

Please see the readme doc


Improvement - record as composite type layout

Connection specification:

PostgreSQL

Steps to reproduce, if exist:
Is it possible to show record types with the same layout as a complex/composite datatype?
CREATE TABLE test (
id serial,
name TEXT,
username text
);
INSERT INTO test (name,username) VALUES
('john','john1'),
('paul','paul1'),
('mary','mary1');
SELECT (id,name) AS main, username
FROM test;

Now this is the only type of view. Thank you for your suggection.


Added preferred countries support

preferred countries are at the top of the list

Thanks a lot for your contribution!!
Can you pull the new commits then push your code upon them? There are some places it might be not up-to-date with the current version.

@iamstevendao I already rebased this branch before making the PR. You can see my commit on top of yours in this commit view: https://github.com/mikob/vue-tel-input/commits/preferred-countries

hmm, I added disabledFetchingCountry prop in the src/vue-tel-input.vue but you removed it in your commit, can I know why?
Also, can you ignore dist and docs folders?
I committed them just for the demo and publish purpose, of course, I will rebuild after merge your changes

@iamstevendao thanks for fixing my merge mistake, and thanks for merging all the changes!

@mikob You are always welcome, thanks for your help :tada:


Allow zendframework/zend-json:^3.0

problems with zend-mvc when used in console banner, does not allow zendframework/zend-json:3.0 also should fix https://github.com/zendframework/zend-version/issues/13 and not sure but maybe this https://github.com/zendframework/zend-version/issues/10

@weierophinney the problem exists only with zend-mvc 2.* here https://github.com/zendframework/zend-mvc/blob/release-2.7.10/src/View/Console/RouteNotFoundStrategy.php#L207

@weierophinney ping


Debezium: integrate KafkaConnectSource with MySqlConnectorTask

Motivation
This change is to integrate KafkaConnectSource with MySqlConnectorTask.
Steps to run this is like this:
1, use image in debezium tutorial, start mysql server
docker run -it --rm --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=debezium -e MYSQL_USER=mysqluser -e MYSQL_PASSWORD=mysqlpw debezium/example-mysql:0.8
2, start pulsar standalone
bin/pulsar standalone
3,  start consume data from connect source target topic, After step 4 is start, it should get data.
bin/pulsar-client consume -s "my-sub-name" kafka-connect-topic -n 0
4, start source connect, It should produce data into Pulsar topics.
bin/pulsar-admin source localrun --tenant public --namespace default --name kafka  --destination-topic-name  kafka-connect-topic --sourceConfigFile  debezium-mysql-source-config.yaml  --archive connectors/pulsar-io-kafka-connect-adaptor-2.2.0-SNAPSHOT.nar --brokerServiceUrl pulsar://<IP_ADDRESS>:6650
Modifications
Describe the modifications you've done.
Result
After your change, what will change.

@sijie, Yes, I planed to added a test for this, But this source is a little not compatible with currently currently source test framework.
In current source test, we call produceSourceMessages: Map<String, String> kvs = tester.produceSourceMessages(numMessages)  and return expected kvs to verify later, But in this source, the SourceMessages is created by debezium (convert mysql binlog into KafkaConnectSource), And it seems not easy to save the content as explicit Kvs.

@jiazhai you can consider making a new test case just for debezium related tests.

@sijie opened new issue for integration tests.


Breakout entities

@efredriksson-modelon , Thanks for the review! I have made the suggested fixes. Could you please take another look?


Moving all language bindings to new NNVM interface

@pluskid @javelinjs @thirdwing
NNVM refactor is almost done and CAPI is now stable. Please help move other language bindings to the new CAPI.
The difference is mostly in imperative api. Please read the code in python/mxnet/_ctypes/ndarray.py and python/mxnet/_ctypes/symbol.py and adapt it to R, Scala and Julia.
Specifically, _init_ndarray_module and _make_ndarray_function in are changed in ndarray.py and _init_symbol_module and _make_atomic_symbol_function are changed in symbol.py

You should now use MXListAllOpNames to get the NAMES of all ops and then use NNGetOpHandle to get the corresponding handle (instead of directly listing handle as before).
Use MXImperativeInvoke instead of MXFuncInvoke to call imperative ops. To support variable number of output, num_output and output_vars should now be passed by reference. Also returned NDArrayHandle can be different from the ones passed in. So always create new NDArray objects from returned handle.
Note that we now support alias for symbol and ndarray funcs. The name returned by mxdescribe is alway is original name, instead of the alias. So you need to register ops under the name returned by mxlist to support alias in frontend

It seems that now NDArray ops and Symbol ops are mixed together. Is it true that all those ops are now transparently call-able with either Symbol or NDArray? There seem to be some specific NDArray ops like _copyto, etc. Also the auto gen docs need to be refined, as NDArray and Symbol are mixed.

all symbolic ops are automatically available as ndarray ops, but not vice versa

@tqchen Is there currently an API to query this info?

do all these special op names start with _ ?

@piiswrong: you mention that:

Also returned NDArrayHandle can be different from the ones passed in. So always create new NDArray objects from returned handle.

However, in the Python wrapper, the passed in output NDArrays are simply being returned after calling MXImperativeInvoke. Am I misunderstanding something?


Reload doesn't pick up new device

Hi I've added a new switch to eWeLink but it isn't picked up in HA.  I've tried restarting the integration and restarting HA but no luck.  The switch is a Sonoff T0 2 gang light switch.  I can't see anything in the log when the integration reloads.
I checked the system options and the 'Enable newly added entities.' is on.
Any help much appreciated.

Diagnostics....
config_entry-sonoff-14293fa79fdce302af91fd3cc321125c.json.txt

Check if you add device to same account and same home. Logs looks fine

I only have one account and one home setup.

Is there a way to manually add a device or force a download from the cloud of the devices?


Any way to handle delete or purge actions?

Feature request
Hi, new user here, I've set up this action to apply to my private cluster and it works like a charm. Is there a recommended pattern for handling teardown or delete/purge removal of manifests?  Thanks for your ideas!

I think this is a fair question
I came from a helm-based deployment mechanism, where i could both see what was deployed via helm list and remove all assets from a deployment using helm delete
Aside from action: reject i dont see any way of removing all artifacts based on, say the helm release name.
I suppose there is some combination of kubectl get all --selector=label=releasename that could be used, but those do not seem to pick up all artifacts.
I use PR deployments to my cluster, so for every PR a deployment is made, with that PRs code, when the PR is merged I would like to clean up all those artifacts.

We have plans to add a feature like this through apply-set based pruning.


Ionic start a new project

Error with start undefined
Error Initializing app: There was an error with the spawned command: npm install
There was an error with the spawned command: npm install
Caught exception:
undefined

I have the same issue, just thought that it would be worth to mention that the output shows the 'npminstall' command without a space between the 'npm' and the 'install':
Installing npm packages... Error with start undefined Error Initializing app: There was an error with the spawned command: npminstall There was an error with the spawned command: npminstall Caught exception:  undefined

This is because I have changed the system default font，which makes 'npm install' looks like 'npminstall'.

Then how do you solve it？Can you tell me the way to solve it？Thank you very much.

In my case I didn't, I just deleted the all directory and executed the command again. The second time it finished without a problem.

Do you delete the directory, the project directory, or re download ionic and Cordova?

Deleted the project directory.

And i don't know how to solve it too.All I do is kind like what emilio-simoes did.

On OS X El Capitan, I also tried to delete directory and to install again.
But, on every try I got this error.

I met this error,too. Someone told me that maybe because the version is old,but i didn't know how to upgrade it

Same issue here..anyone resolve this?

We recently released a new version of the CLI that should allow us to gather more insight into NPM issues.  Could you please update your CLI to at least 2.1.4?
npm install -g ionic@latest
Thank you!


Bad address Docker-Toolbox for windows

I installed the docker-toolbox for windows together with virtualbox 5.0.3.
After starting Docker Quickstart Terminal it suggest I should run:
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.

The result is:
bash: /c/Program Files/Docker Toolbox/docker-machine: Bad address
docker info results in:
Get http://<IP_ADDRESS>:2375/v1.20/info: dial tcp <IP_ADDRESS>:2375: ConnectEx tcp: No connection could be made because the target machine actively refused it..
* Are you trying to connect to a TLS-enabled daemon without TLS?
* Is your docker daemon up and running?

Any suggestions to fix this issue?

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

sorry this should be opened on github.com/docker/machine


llvmPackages_git: apply #205355 (disable libpfm on non-Linux)

This was applied to llvmPackages_15 in 81ef82a029dfe2b67bf4fd306725ed3e3ed42a2c (though I appear to have forgotten to mention it in the commit message...)
cc: @alyssais
Description of changes

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

@ofborg build llvmPackages_git.llvm


Eagerly slice numpy arrays in from_array

[ ] Tests added / passed
[ ] Passes black dask / flake8 dask

I've been curious about the discussion about eagerly slicing numpy arrays to prevent adding large numpy arrays to the graph (see https://github.com/dask/dask/issues/5367, https://github.com/dask/distributed/issues/3032, https://github.com/dask/dask/issues/5601) so I tried to implement it.
I am using array.chunk-size to decide if a numpy array is too big and should be sliced eagerly.
import dask.array as da
import numpy as np
import dask

test_np = np.random.uniform(low=0, high=10, size=(12, 5))
test_da = da.from_array(test_np, chunks=(2, 3))
np.testing.assert_equal(test_da, test_np)
test_da.visualize()

with dask.config.set({"array.chunk-size": "3B"}):
    test_da = da.from_array(test_np, chunks=(2, 3))
np.testing.assert_equal(test_da, test_np)
test_da.visualize()

Happy to make changes, or even drop this if you don't think it is a good idea.
The failing tests look for operator.getitem in the graph, which this PR removes. Then there's this test failure which I don't understand:
    def test_from_array_names():
        pytest.importorskip("distributed")

        x = np.ones(10)
        d = da.from_array(x, chunks=2)

        names = countby(key_split, d.dask)
>       assert set(names.values()) == set([1, 5])
E       assert {5} == {1, 5}
E         Extra items in the right set:
E         1
E         Use -v to get the full diff

cc @d-v-b

In principle I agree that supporting a special case here makes sense.
I wonder if we might run into trouble with memmapped arrays though?  Are those a different type and so won't be caught due to the strict type check, or do we need to be more careful here?

Are those a different type and so won't be caught due to the strict type check, or do we need to be more careful here?

Yes. I just checked. Memmaps have type numpy.memmap so they fail the strict type check. The behaviour for memmaps is unchanged.

This seems worth trying out, and I think basing it off array.chunk-size makes sense.
Could you add a short section to array-creation.rst explaining this behavior?

Could you add a short section to array-creation.rst explaining this behavior?

This might also be overly nuanced for the main docs.  I don't expect that most users will want to go this deeply.  Maybe an entry in the docstring instead?

Great,  This is in.  Thanks @dcherian !

! Thanks.

Are those a different type and so won't be caught due to the strict type check, or do we need to be more careful here?

Yes. I just checked. Memmaps have type numpy.memmap so they fail the strict type check. The behaviour for memmaps is unchanged.

There are other ways people may create these though.
import mmap
import numpy

a = numpy.asarray(mmap.mmap(-1, 5))

I'm not sure how much this matters though, but it seems worthwhile to be aware of in the event it comes up.


Update contact details on application following a profile update

Copy contact details to a user's workforce application.
Archived applications - i.e. from previous folk week events - should not be updated.

Done


ci  merge upstream ci

Description
Update GitHub workflow versions:

build(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.4
build(deps): bump github/codeql-action from 3.24.7 to 3.24.9

Type of change

[x] CI

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

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

Project coverage is 76.92%. Comparing base (aa1f9ed) to head (dfb0666).
Report is 4 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage   76.92%   76.92%
=======================================
  Files          12       12
  Lines         520      520
  Branches      108      109    +1
=======================================
  Hits          400      400
- Misses        114      115    +1
+ Partials        6        5    -1

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


Hero image block

A lot of pages contain a hero image with white text and sometimes a button.
There is always a gradient overlay with different colors.
All hero images have the same cutout, currently achieved with an svg overlay image.
Index page:

Other pages:

is this not done via #23 ?

@solaris007 curretly only works if there is an h1 following the hero image. This is not the case for the index page. So we either adjust the h1 font for the index page, or we adjust the autoblocking creation for the hero block.
Also, the background color is currently the same on all hero blocks. On the page they are different some times, most noticeable on the index page

@dzehnder thanks for elaborating, i advocate for auto-blocking adjustment, WDYT?

@solaris007 Agreed, seems more intuitive for the author IMO.
Also just noticed, for the auto blocking, we need to include the first link after a heading into the hero block and make it appear like a button (see index page -> our solutions)

Couple more things I noticed:
Height difference: block should be slightly higher (increase padding/margin of the font).
Due to this, the image crop is different. Additionally, the image alignment might need to be adjusted.
See difference:


New hook function triggered before each update

I do approve, but only because you bribed me :stuck_out_tongue:


[WIP] [BEAM-4663] CBO cost calculation

Implement computeSelfCost() for CBO in Beam*Rel
This PR is cherrypicked from #5481 . As Kenn mentioned before, we should switch to estimateRowSize in RowCoder.

Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

It will help us expedite review of your Pull Request if you tag someone (e.g. @username) to look at it.
Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Spark

Go

---
---
---
---
---

Java

Python

---

---
---
---

Still more spotless, now you can run it globally ./gradlew spotlessJavaApply

spotlessApply and rebased

close and reopen it later


atlas_min and hopper_min don't converge

I was trying to run the examples in examples/trajectory_optimization/ but couldn't get the atlas example and the hopper example to converge.. (the hopper one at least was converging with the RL policy I was training but didn't have much luck with atlas there).. @thowell mentioned that the friction model was changed recently so the trajopt parameters might have to be tuned to get  it working again.

The example was removed in the latest version, but the mechanism still exists so people can write their own versions.


BUG:Crashes when trying to create an imperfection_case  over API

Describe the bug
Rstab9 Crashes when trying to create an imperfection_case with the type imperfection_case_type.IMPERFECTION_TYPE_IMPERFECTION_CASES_GROUP, using the Web APi
To Reproduce
Steps to reproduce the behavior:
Create Imperfaction_case over API:
Code:
public void TestImperfectionCreation()
{
imperfection_case imperfection_Case = new imperfection_case();
imperfection_Case.no = 9864;
imperfection_Case.reference_nodeSpecified = true;
imperfection_Case.type = imperfection_case_type.IMPERFECTION_TYPE_IMPERFECTION_CASES_GROUP;
imperfection_Case.typeSpecified = true;
rstab9ModelClient.set_imperfection_case(imperfection_Case);
//without type IMPERFECTION_TYPE_IMPERFECTION_CASES_GROUP rs dont crash
}
Expected behavior
create a groupe of imperfections
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

WIN 10
RS9.01.0011.167
1.0.9

Additional context
I'm not sure if this is your responsibility, if not I would be grateful for a forwarding, screenshots and .dmps I have attached, as well as the rs9 model
Add any other context about the problem here.
Screenshots:

.dmp and modell:
imperfectionError.zip

ok i think the error is because i am trying to create an empty groupe, regardless the crash is rather inconvenient.
furthermore i found another "error" while trying to find a solution.
It is not possible to process imperfections with the type imperfection_case_type.IMPERFECTION_TYPE_LOCAL_IMPERFECTIONS_ONLY.

Hi @talSas,
do you still have problems with imperfections?


Game perf optimization

A bunch of cleanup and about 2x speedup.
Fixes #120.

Compatibility with lila remains to be done


#46 RuntimeException: The same metric name cassandra/readCount was reg...

...istered twice

Sorry about all this commit. This was my first pullrequest. Next time i'll do it in a different branch

Nice. LGTM.


Question: Whether there is an enum instead of freeze

Is your feature request related to a problem? Please describe.
Nowadays, enum in dart 2.17 support construct function,
Is it possible to replace freeze with this
enum Vehicle {
// enum Vehicle implements Comparable<Vehicle> {
  car(tires: 4, passengers: 5, carbonPerKilometer: 400),
  bus(tires: 6, carbonPerKilometer: 800),
  bicycle(tires: 2, passengers: 1, carbonPerKilometer: 0);

  const Vehicle({
    this.tires,
    this.passengers,
    this.carbonPerKilometer,
  });

  final int? tires;
  final int? passengers;
  final int? carbonPerKilometer;

  // int get carbonFootprint => (carbonPerKilometer / passengers).round();

  // @override
  // int compareTo(Vehicle other) => carbonFootprint - other.carbonFootprint;
}

dart enum sample

As you can see, vehicle. bus has only two parameters

Describe the solution you'd like
enum Vehicle { car, bus, bicycle }

typedef F = Vehicle Function(int, int, int);
Vehicle _carFn(int a, int b, int c) => Vehicle.car;

enum VehicleX {
  car(carFn: _carFn);

  const VehicleX({
    this.carFn,
  });

  final F? carFn;

}

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

enum in rust look like nest class
enum in dart is just enum.

enum in rust look like nest class
enum in dart is just enum.

Yes, kind of like that. Enums in dart is not that expressive... So I guess it is not possible.


Merged duplicate chromosomes and added link to getAssemblyByChromosome{Genbank/Refseq}

we agreed to close this PR without merging, to be consistent with the /name endpoint and to make it more explicit when the same accession has different synonyms depending on the assembly that contains it.


Make Plugins More Accessible

It's hard to find Lunr plugins and I thought of a few things I've found in other projects that could work here:

Plugin list, either on a wiki page or an awesome list.
Section dedicated to plugins in the README and on the website.
Create a convention of lunr-name for lunr plugins, akin to Gulp or Grunt.

That sounds like a great idea. There is a guide on using the lunr-languages plugin, but I'd be happy to add a page on the website with a list of plugins.
Was there a specific list of plugins that you eventually found that you can recommend? Or were you looking for a particular plugin to solve a specific issue?

There is a guide on using the lunr-languages plugin,

Yes, but none of your plugin related development is very discoverable because it's not clearly labeled.

Was there a specific list of plugins that you eventually found that you can recommend?

Nope.

There is a guide on using the lunr-languages plugin,

There was a ticket where someone was trying to merge in a feature that would have been better off as a plugin.  AFAICT, nothing ever happened ... a sad failure to capture outside engagement.

I'm going to close this one now as I'm not sure what that it is particularly actionable. I'm more than happy to feature other plugins on the website though. Please comment/re-open this issue if there are any specific plugins that should be featured.

Create a plugin page on the wiki.  The wiki was enabled, but without any content so I initialized a home page and an example list of plugins.  Feel free to revert.

@indolering thanks for taking a stab at this, I think ultimately this should sit in the website, but I don't think it hurts to have it here.


Remove markdnownify

Fixed in https://github.com/Simply007/kontent-starter-corporate-next-js/commit/d6b424c51f8a1dd3c48f8d526cbdb5082c28870f


Plugin features are not working

[x] https://esdoc.org/manual/usage/feature.html
[x] https://esdoc.org/manual/configuration/config.html
[x] https://esdoc.org/manual/usage/tags.html
[x] https://esdoc.org/manual/advanced/api.html
[x] https://esdoc.org/manual/faq/faq.html

Short summary of your issue
Plugin features don't appear to be working despite following configuration instructions.
Input data for reproducing
Configuration
{
  "source": "./src",
  "destination": "./docs",
  "plugins": [
    {
      "name": "esdoc-standard-plugin",
      "option": {
        "brand": {
          "title": "Video Abstraction Library",
          "repository": "https://github.snei.sony.com/SNEI/video-abstraction-library",
          "site": "https://github.snei.sony.com/pages/SNEI/video-abstraction-library/"
        },
        "test": {
          "source": "./test/"
        }
      }
    }
  ]
}

Codes
This is in one of my files.
import test from 'ava';
import Player, { EVENTS } from '../src/Player';
import { stub, assert } from 'sinon';

/** @test {Player.registerEvent} */
test('Player.registerEvent() adds events to constant', t => {
  t.is(EVENTS.FOO, undefined);
  Player.registerEvent('FOO');
  t.not(EVENTS.FOO, undefined);
});

Output data
Log
parse: /Users/dsofer/Sites/val/src/Player.js
parse: /Users/dsofer/Sites/val/src/PlayerEvent.js
parse: /Users/dsofer/Sites/val/src/index.js
parse: /Users/dsofer/Sites/val/src/subscribers/EmberState.js
parse: /Users/dsofer/Sites/val/src/subscribers/Hls.js
parse: /Users/dsofer/Sites/val/src/subscribers/HlsStats.js
parse: /Users/dsofer/Sites/val/src/subscribers/HlsTrimmer.js
parse: /Users/dsofer/Sites/val/src/subscribers/Telemetry.js
parse: /Users/dsofer/Sites/val/src/subscribers/VideoElement.js
parse: /Users/dsofer/Sites/val/src/subscribers/VueRules.js
resolve: extends chain
resolve: necessary
resolve: access
resolve: unexported identifier
resolve: undocument identifier
resolve: duplication
resolve: ignore
resolve: link
resolve: markdown in description
resolve: test relation
output: badge.svg
output: identifiers.html
output: index.html
output: class/src/Player.js~Player.html
output: class/src/PlayerEvent.js~PlayerEvent.html
output: function/index.html
output: variable/index.html
output: typedef/index.html
output: file/src/Player.js.html
output: file/src/PlayerEvent.js.html
output: file/src/index.js.html
output: file/src/subscribers/EmberState.js.html
output: file/src/subscribers/Hls.js.html
output: file/src/subscribers/HlsStats.js.html
output: file/src/subscribers/HlsTrimmer.js.html
output: file/src/subscribers/Telemetry.js.html
output: file/src/subscribers/VideoElement.js.html
output: file/src/subscribers/VueRules.js.html
output: ./css
output: ./script
output: ./image
output: script/search_index.js
output: source.html
==================================
Coverage: 93.75% (30/32)
==================================

Screen shot of documentation

Your environment

OS type and version: OSX 10.12.3
Node.js version: 7.4
ESDoc version: 0.5.2

The links at the top are all broken and you have 2 identical sections in the issue template too.

After looking at other projects that use esdoc I realized that your own documentation is inconsistent and wrong.
Only this works (placing plugin configs at the top level):
{
  "source": "./src",
  "destination": "./docs",
  "plugins": [
    { "name": "esdoc-standard-plugin" }
  ],
  "brand": {
    "title": "Video Abstraction Library",
    "repository": "https://example.com/SNEI/video-abstraction-library",
    "site": "https://example.com/pages/SNEI/video-abstraction-library/"
  },
  "test": {
    "type": "mocha", // No other value is allowed and this MUST be specified!?!?
    "source": "./test/"
  }
}

I was on pre-1.x.x of esdoc :/


Fixing CI Issue for Windows

Dummy edit for now (WIP)

Confirmed that CI works normally as expected - closing.


Using node_module package for templates

I would like to build a general plop module that can be reused in several projects. Would it be possible to import templates from node_modules somehow?
E.g.
yarn add -D react-fun-plop
plop react-fun-plop component "my component" react

Yes, plop generators, helpers, actions, and partials can all be loaded via plop.load(). plop.load() was designed to be very simple for the consumer to use, in most cases the syntax should end up being plop.load('module-name')
If you want a basic example of a codebase that is designed to be loaded via plop.load(), check out plop-pack-fancy-comments
hope this helps


Limit of Enviroment Variables

@Voteax commented on Thu May 14 2020
I get an 'InternalServerError' if I pass more than 15 Enviroment Variables into the DeploymentScript.
Is this a known limitation?

Dokumentdetails
⚠ Bearbeiten Sie diesen Abschnitt nicht. Er ist für die Verknüpfung von docs.microsoft.com zum GitHub-Artikel erforderlich.

ID: b5c4c8c5-7757-a969-5800-17f2f2312649
Version Independent ID: 9ced8dd5-43ca-6d1f-c054-842299db8327
Content: Verwenden von Bereitstellungsskripts in Vorlagen
Content Source: articles/azure-resource-manager/templates/deployment-script-template.md
Service: azure-resource-manager
GitHub Login: @mumian
Microsoft Alias: jgao

@srvbpigh commented on Thu May 14 2020
Hello, @Voteax
Thank you for your feedback.
We are actively reviewing your comments and will get back to you soon.
Kind regards,
Microsoft DOCS International Team

Thanks for your comment. We are actively investigating and will get back to you shortly. Thanks for your patience.

@mumian & @tfitzmac  - can either of you kindly confirm there is a limit. couldn't find this documented anywhere.

It's a known bug that was already fixed last Thursday. Please try again and let me know if the same issue still repros.
The max allowed size for environment variables is: 64Kb.

thanks for the update @lwang2016 . Are you confirming that the fix has been pushed to prod?
@CeciAc  - based on the response to my follow-up question, please ask the user to retry.
We will now close this issue. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.
Cheers.

Yes, the fix has been deployed to all prod regions.


Property 'get' does not exist on type 'FormData'.

Expected behavior:**
(https://developer.mozilla.org/en-US/docs/Web/API/FormData/get)
The above method tells about methods which can be used on formData.
Actual behavior:
Throws error

Property 'get' does not exist on type 'FormData'.)

We are missing almost all methods for FormData, e.g. delete, has, getAll, etc..

PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.

entries, values and keys, are special, and should be added to https://github.com/Microsoft/TypeScript/blob/master/src/lib/dom.iterable.d.ts. PRs are appreciated, feel free to ping me if you want to send a PR and have any questions.

Hi @mhegazy. I prepared a PR that should fix this issue here: https://github.com/Microsoft/TypeScript/pull/14859. Feel free to let me know if there is anything in it I should update or change.

Property 'set' does not exist on type 'FormData'
any resolution?


iss17: support for uploading json file

#17

Add json upload button and format value in dataset_upload.html
Change views.py for processing json file
Add test case for json upload feature

Thanks for the review, working on it!


Multiple Forms

The forms plugin has a multiple forms format.
I have been trying to use this format with this plugin with no success - is there a specific way to do this?
Does it support multiple forms in the blueprint?
Thanks in advance.

I use multiple forms all the time with this plugin. Try looking at mgc.1ptd.com which is built using Grav, the sqlite plugin, datatables (another Grav plugin I wrote), multiple forms. Click on a hiker in the table, that sets up a field that is then used to interrogate an sqlite database. On the same page is a table to select the type of map being used. In fact, most of the plugins I wrote are related to websites I have created.
In order to get these more complex effects, you need to include some javascript and sql programming.
If you could be a bit more specific about what you want, I might be able to answer you in a way that is helpful. Also if you were to ask on the discuss forum, the question/answer might help others.
Regarding the blueprint question. I like to make things as generic as possible. However, there is a real problem about what is intuitive. How exactly do you think a blueprint for multiple forms should work? I'm genuinely curious. If you could suggest a User Interface that would solve your specific problem and could be abstracted into something that is generic for others, then I would love to try to implement it.

Hi, thanks for the response. Im referring to the use of the multiple forms support that the forms plugin uses, so in the blueprint you have like suggested in the forms documentation:
https://learn.getgrav.org/forms/forms  - see Multiple forms section.
This is what I have been trying to use unsuccessfully.
Ive created my own sqlite twig extensions to allow me to do more complex behaviours anyway so I could move forward.

I have put some working code up on the Grav forum to show how I did it. See multiple forms etc

@dlannan , I wrote up the Grav forum item as you were answering me. The link is above. I have used the multiple forms feature in the code linked to. There is some twig on the page, but only to conditionally show / not show a form.
Although the multiple forms in the code example are created within the default.md (note it is not a form.md file) for the page itself, I have put forms in another page as discussed in the Forms plugin documentation. But I found that by keeping the form definition on the same page made it easier to understand the other code.
Hope this helps. Let me know if you were expecting some other behaviour.


Add advice about PSP migration

You can't upgrade from PSA to PSA if you are already running a version of Kubernetes that doesn't include PSP. Tweak wording accordingly.

/lgtm

/lgtm

/approve


Not working with  Fuji X-T2

This is not my application, bruddah. You're welcome to download my version of the plugin.
Best wishes.


fix LabelLayout width when numberOfLines > 0

LGTM

Why don't we want to use the font's Leading value? It seems desirable that we respect the value recommended / specified by the font developer.
In either case, it'd be good to add an explanation in the code saying why we do or do not want it there.

@staguer UsesFontLeading breaks the new tests cases that I added (which should pass). All we are trying to do here is replicate the behavior of UILabel, and adding UsesFontLeading causes an inconsistency in behavior.
I think the tests are all the documentation that we need. We don't need to exhaustively explain why we didn't pass in all the other available options. UsesFontLeading was the wrong option to pass in to begin with (apparently).

Current coverage is 94.52% (diff: 100%)

Merging #38 into master will increase coverage by 0.16%

@@             master        #38   diff @@
==========================================
  Files            48         48
  Lines          2446       2485    +39
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           2308       2349    +41
+ Misses          138        136     -2
  Partials          0          0

Powered by Codecov. Last update a643a20...40b67e0


[reggen] Add access to the old html renderer

Using a simple markdown to html converter on the markdown documentation (like the following) isn't ideal, because wavejson isn't rendered and unique kebab case ids aren't automatic added to headings.
cargo install pulldown-cmark
util/regtool.py -d ./hw/ip/aes/data/aes.hjson | pulldown-cmark  -T > /tmp/aes.html

As the html backend is still in the codebase, we may as well as expose it for those who want to use it. This PR adds --doc-html-old:
util/regtool.py --doc-html-old ./hw/ip/aes/data/aes.hjson > /tmp/aes.html

Thanks for adding that back in @HU90m.

Thank you @HU90m for fixing and @msfschaffner for your help with this issue.
@zi-v


build: Add ability to override images with YAML

This commit adds a schema and parsing logic for an override.yml.
This file is applied to an already parsed Moby config and will replace
all instances of the source pattern with the substitute pattern.
This allows for easy replacement of images in a config file for
development or test.
Fixes: #95
Signed-off-by: Dave Tucker<EMAIL_ADDRESS>

See my comments in the issue, filenames must not be special.

Rebased and updated to add an overrides section to the YAML.

Removed the unused const overrideFile

Updated again to fix a bug. The AppendConfig wasn't appending the newly added Overrides section.

@dnephin the use case is for CI, see #95. so we can build a set of packages to test in a local registry. We don't have any use case for non-image overrides, you would just change the file. Maybe there is a better way to do this...

Ok, I understand the use case is pretty limited right now, but I think we should expect that more use cases will present themselves as this tool becomes more popular. We should try to design something that can be extended.  I think the current design is really limited.
What do you think about supporting multiple files and applying the config of one other the other? That way every field can be updated. It would also let you override just one image if they share the same value.

We already support multiple files. But they don't currently override, they are additive. In some cases we could support override, by saying that if the name was the same for onboot and services that will override.

Closing as the design of this feature needs more thought


Feature Request: Replace asset with a new/existing one

Is your feature request related to a problem? Please describe.
The project I'm working on has hundreds of pages with thousands of images that are referenced in multiple pages which contain information that are frequently subject to change. Currently my team and I have to manually go to every document and update each image to a new one.
Describe the solution you'd like
Have a replace button beside the delete button in the media browser that lets you either upload a new asset / pick an existing one and replace all references with the new one.
Describe alternatives you've considered
I do currently have a hacky script that finds all documents that reference, regex replace the id with a new asset id, then upsert, then I delete the old asset. This isn't something I would want to get the content team to be using as it has many points of potential failure and isn't user friendly.

I don't want to be the +1 guy, but the exact same topic came up with us today and it would be awesome to have an "official, upstream" way of doing this

+1 on this. It'd be really handy to be able to directly replace the asset and update right across the site :)

+1 For this feature, are there any updates here?

Another +1 vote :)

Our content editor has also been requesting this feature. Any update on this perhaps?


Feature/issue 236

Github Issue: #236
Description
Update track ingest to allow UAT query of CMR to support querying and loading data in different venues.
Overview of work done

Updated python_cmr query to include UAT mode function and bearer_token.
Added method to retrieve bearer token from EARTHDATA_USERNAME and EARTHDATA_PASSWORD environment variables.
UAT requires query on parent collection so create a method to filter for dataset type (e.g. "Reach", "Node" or "Prior") in granule UR.
Ensure granule URL includes UAT for SIT and UAT venues.

Overview of verification done

Updated existing tests to accomodate CMR UAT query.

New and existing unit tests pass.
Overview of integration done
See #238.
PR checklist:

[X] Linted
[X] Updated unit tests
[X] Updated changelog
[X] Integration testing

See Pull Request Review Checklist for pointers on reviewing this pull request

Please see #238 for the latest testing in SIT.


Error building ionic 2 app when using ng2-animate

I get this error
Error: Error encountered resolving symbol values statically. Calling function 'animateFactory', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function,
I followed the exact instructions.
 import {animateFactory} from "ng2-animate"; @Component({   selector: 'page-dashboard',   templateUrl: 'dashboard.html',   animations:[animateFactory(800,100,'ease-in')] })
Any ideas why this is happening?

I have the same issue, and i'm encountering it right when i'm done with my project and building for production 🤦🏾♂. I think this project is dead. https://github.com/ackerapple/ack-angular-fx seems like a worthwhile alternative to this, and the above error has been fixed in it. I havent used it though,  but i sure wish i had found that before this repo.


magic.h not found

Could you tell me what package provides this lib? I just got a compile error saying i'm missing this.
I did some searching, but there were several results, including some kernel library.

libmagic is a lib used in file utility. On my system (Arch Linux) file and libmagic are distributed in the same package called file but in your case you probably need to install a seperate package for the lib and dev files. What Linux distribution do you use?

I'm on void linux. Is this a python thing? I get libmagick (likely a part of ImageMagick) and  python3-magic

It's not a a Python thing and it has nothing to do with ImageMagick. I looked it up and it seems like you need to install libmagic and file-devel packages.

Thank you! the devel package did the trick.


iOS reports gyroscope rates as deg/s while Android reports radians/s

iOS:
https://github.com/SFML/SFML/blob/3acc332de06f732331b7e4f989315ab2d5928f99/src/SFML/Window/iOS/SensorImpl.mm#L147-L152
Android:
https://github.com/SFML/SFML/blob/3acc332de06f732331b7e4f989315ab2d5928f99/src/SFML/Window/Android/SensorImpl.cpp#L180-L185
The docs for ASENSOR_TYPE_GYROSCOPE specify that it reports redians per second, not degrees per second.

This should be fixed by #2978 by having both iOS and Android report radians and radians per second.

Fixed with #2978


Core components tutorial

Create the initial Core Components tutorial. The core components are Text, Image, View, TextInput, ListView.

Provide a summary for each core component, including a runnable sample.
Allow the tutorials for each component to be extended with more details and detailed examples, particularly after we add other tutorials (i.e., around state and props).
The samples should be runnable in a React Native simulator, if we can get that going in the docs.
Reorganize the docs sidebar to make the current Tutorial actually a Sample App, etc.

Test Plan:

Sidebar links work, bottom Next navigation works, etc.
See screenshots for new sidebar structure too.

I did the pull request trying to mimic stacked diffs. Let me know if you need me to squash them manually. They should squash fine when the pull request is merged (if we were to use the Merge and Squash functionality of GitHub, but maybe our workflow doesn't allow that).

By analyzing the blame information on this pull request, we identified @sunnylqm and @axelson to be potential reviewers.

Here are some screenshots of the new sidebar organization, etc.

cc @vjeux @bestander @mkonicek

@JoelMarcey updated the pull request.

@JoelMarcey updated the pull request.

<3

@facebook-github-bot shipit

Thanks for importing. If you are an FB employee go to Phabricator to review.


feat: update terraform-json to v0.13.0

support terraform v1.1.x state
https://github.com/hashicorp/terraform-json/commit/1b370c6345872777de33f05853a25e94cebe1f3d#diff-11ffedf6a81044546aa19c8009998208f5a7afec3cdff04ca4281117b5ec0da7R13
without this update, we can't use InitAndPlanAndShowWithStructNoLogTempPlanFile with terraform-json (v0.12) and terraform >=1.1.0

Thanks for the contribution! Can you also run go mod tidy so that the go.sum file gets synced up with the updated dependency? Thanks!

done 😄

Can someone please run tests 🙏 ?

Tests passed, so will merge this in. Thanks again for your contribution and apologies for the long delay in getting this merged!


Custom 404 page

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the problem to be solved
First of all thank you for your wonderful package!
I would like to use your pages (for instance, the l7-dark template) but with a custom 404 page.
Suggest a solution
Would it be possible to implement an environmental variable, such as CUSTOM_404 that, if not set, has a default to False?
Then, in the docker container, is just a matter to set CUSTOM_404 to true and implement the correct mapping via a volume entry..
Something like
  error-pages:
    image: tarampampam/error-pages:latest
    ports:
      - 8080:8080
    volumes:
      - /path/to/local/404.html:/custom/404.html:ro
    environment:
      TEMPLATE_NAME: l7-dark
      CUSTOM_404:  true
    labels:
      traefik.enable: true

Thank you!
Additional context
No response

Hello and thank you for raising this issue! May I ask why you chose to override only one (or a few) error pages, instead of creating a custom template to cover all error codes? What is the reason for using a custom template for only one specific code? I am asking because I am currently working on a new major version of the error-pages and would like to understand the reasoning behind this approach to determine if it should be implemented in a new version.


PUT PATCH /user/: Make users only can edit his profile

The View is UserDetail, but I think it's gonna need to be divided between RetrieveUserDetail and UpdateUserDetail
We can use this:
http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/#object-level-permissions

@carquet I believe we can close this issue :smile: