Overwrite checkbox

Adds "Overwrite" checkbox that enables overwrite instead of adding numeric suffixes to file names.

Hi, thank you very much for your contribution! I agree it's a nice feature to have. I will gladly accept your request if you resubmit under these conditions:

The dialog resource file will look exactly like this: dialog.txt
I.e. the checkbox will be in the right column underneath the buttons, with path dlg.funcArea.buttons.cbOverwrite.

You won't have your name in the copyright yet, as I think the change is too small for that. But if you contribute more in the future, I'll have no objections.

Please, create another pull request if you agree and implement the fix.


Update README.md

My project was passed and acquired the OpenSSF silver level passing badge for my project VulnSniff

New achievements added

We’re doing our best to make sure that VulnSniff reaches its goal and that we are working hard to make it happen for everyone. 🙏🏻❤


Space in ${MPR_FILENAME} will break mxbuild for the build.py script

Hi,
i was testing and troubleshooting build failures with latest Docker Buildpack version v5.1.0 where a build.py script  needs to be executed before actually building the final docker images:
./build.py --source <path-to-source> --destination <destination-dir> build-mda-dir
for me this was failing with this error message:
`docker start --attach --interactive da3588d8aa3ee1c126330f09601887b979acc4f65343fed92506514d34bf0f7a
Detected Java 11

|  /  |    |  _ \      () |   | |
| \  / | | |) |_   _ | | __| |
| |/| \ / /  _ <| | | | | |/ ` |
| |  | |>  <| |) | || | | | (| |
||  |//__/ _,|||_,_|
v<IP_ADDRESS>529
ERROR: Build options are not specified.
Usage: mxbuild [OPTIONS]+ FILENAME
Build Mendix Deployment Packages (.mda files) using the command-line.
The specified FILENAME is assumed to be a Mendix App Package (.mpr) file
that is located inside a app directory.
Options:
-h, --help                 show this message and exit.
--serve                indicates if MxBuild should be executing in
service mode.
--host=ADDRESS         the listening ADDRESS (ip/hostname) used while
serving. Default ADDRESS is localhost.
--port=PORT            the TCP PORT number used while serving. Default
PORT number is 6543.
--java-home=DIRECTORY  the Java home DIRECTORY that is used for running
Ant.
--java-exe-path=FILENAME
the Java executable FILENAME that is used for
running Ant.
--target=VALUE         the target of this build: 'package' or 'deploy'.
the default is 'package'.
--check-java-dependencies
internal option to check Java dependencies with
the 'jdeps' tool as part of the 'package' build.
-o, --output=FILENAME      the FILENAME of the MDA file to create (only for
target 'package').
the default is 'out.mda' in the current
directory.
--model-version=VERSION
the model VERSION that is embedded in the
deployment package.
--model-description=DESCRIPTION
the model DESCRIPTION that is embedded in the
deployment package.
--project-name=NAME    the project NAME that is registered in the
Mendix Runtime.
--loose-version-check  use less strict version check, i.e., allow
conversion from earlier versions.
--write-errors=FILENAME
write all errors, warnings and deprecations in
the project to FILENAME, in JSON format.
the file is only written if the project has
errors.
--java-debug-info      generate all debugging information when
compiling Java code (local variables, source
files and line numbers). By default, only source
files and line numbers are included.`
after some debugging i figured out that my MPR_FILENAME has multiple spaces in it like 'Partner Asset Management.mpr' which broke the build script or better the mxbuild/build script.
it was trying to execute:
mono /opt/mendix/modeler/mxbuild.exe --target=package --java-home=/etc/alternatives/java_sdk_11 --java-exe-path=/etc/alternatives/java_sdk_11/bin/java --model-version=unversioned --output=/workdir/output.mda /workdir/project/Partner Asset Management.mpr
and failed because it couldn't find the file apparently.
changing line 36 in mxbuild/build from:
    --output=/workdir/output.mda /workdir/project/${MPR_FILENAME}
to
    --output=/workdir/output.mda /workdir/project/"${MPR_FILENAME}"
resolved the issue for me.
not sure if i had done anything wrong with executing the build.py script to indicate whitespaces in my MPR filename.
i did execute
./build.py --source trunk --destination build_out build-mda-dir
and in the trunk directory it MPR file was listed like this:
➜ ll trunk total 194M -rw-r--r--  1 xxx xxx 71M Sep  6 11:44 'Partner Asset Management.mpr' drwxr-xr-x 14 xxx xxx 4.0K Sep  6 11:43  javascriptsource drwxr-xr-x 23 xxx xxx 4.0K Sep  6 11:44  javasource drwxr-xr-x  6 xxx xxx 4.0K Sep  6 11:44  resources drwxr-xr-x  4 xxx xxx 4.0K Sep  6 11:44  theme drwxr-xr-x  3 xxx xxx 4.0K Sep  6 11:44  theme-cache drwxr-xr-x 18 xxx xxx 4.0K Sep  6 11:44  themesource drwxr-xr-x  2 xxx xxx 36K Sep  6 11:44  userlib drwxr-xr-x  2 xxx xxx 4.0K Sep  6 11:44  widgets
can you please review and update the following:
changing line 36 in mxbuild/build from:
    --output=/workdir/output.mda /workdir/project/${MPR_FILENAME}
to
    --output=/workdir/output.mda /workdir/project/"${MPR_FILENAME}"

Hi @eist76, thank you for the detailed feedback! Our team will include a fix in the next patch version of the Buildpack.

@zlogic: any idea when the next release will be published including this fix?

@eist76 We're planning to make a new release by early December. There won't be any significant code changes, just updated documentation.
Would it help if we created a tag with the bugfix (as a pre-release) until then?

@eist76 We're planning to make a new release by early December. There won't be any significant code changes, just updated documentation. Would it help if we created a tag with the bugfix (as a pre-release) until then?

not super urgent, just wanted to get a feeling for when to plan with it ... since this issue was preventing me from using the latest release ...
i can wait until early december, no worries

@eist76, We've released the new version of the Buildpack today (v6.0.0), can you please check if it works for you?

@zlogic i will test next week and get back to you.
thanks for including this fix to the current released version.


sched: Fix CPU affinity issues in SMP

In "nxsched_nexttcb": the task may not running on this_cpu, and rtrtcb->affinity(the affinity of the task in g_readytorun) may not include the current cpu which should be the tcb->cpu.
In "nxsched_remove_readytorun": as the problem in "nxsched_nexttcb", the logical may choose the head of g_readytorun(the greatest priority) task as the next while ignoring the cpu affinity of it.

@masayuki2009 Done!

LGTM


Nissan Leaf

JSON API is available:
https://github.com/joshperry/carwings/blob/master/protocol.markdown
Seems like we can query trips by month here:
https://gitlab.com/tobiaswkjeldsen/dartcarwings/blob/master/lib/src/carwings_vehicle.dart#L232
and format the data like here:
https://gitlab.com/tobiaswkjeldsen/dartcarwings/blob/master/lib/src/carwings_stats_trips.dart#L6
However we need access to charging times (not trips)
Good idea is to start from the renault-zoe source:
https://github.com/tmrowco/greenbit-contrib/blob/master/electricity/renault-zoe.js

https://www.home-assistant.io/components/nissan_leaf/ done by home automation


Add CycloneDX SBOMs example for version supporting 1.5 and 1.6

Currently there are are SBOM CycloneDX examples of version <1.4. It would be great to add more examples supporting CycloneDX version 1.5 and 1.6.

Are there any specific features of v1.5 or 1.6 that you'd like to see in the SBOM examples?

Yes, Basically In version 1.5 and 1.6, there are 2 new section components and services added under  Metadata --> Tools. Whereas in version 1.4 it doesn't have those section inside Metadata --> Tools . So, i am bit curious to see those fields.

Yes, Basically In version 1.5 and 1.6, there are 2 new section components and services added under Metadata --> Tools. Whereas in version 1.4 it doesn't have those section inside Metadata --> Tools . So, i am bit curious to see those fields.

see here for CDX 1.6:
https://github.com/CycloneDX/cyclonedx-python/blob/main/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.6.xml.bin#L4-L52
versus 1.4:
https://github.com/CycloneDX/cyclonedx-python/blob/main/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.4.xml.bin#L4-L42


Release 5.2.0

Merging the current release 5.2.0 back into master so we have these changes available in master.  Any additional changes that are targeted for 5.2.0 should still go on the 5.2.0 branch.

All of these commits have already been reviewed, so I'm making this merge without additional reviews.


Specify the error code returned for full tables

It seems that right P4Runtime does not specify the error code that should be returned when the controller attempts to insert an entry into a full table. I propose we use RESOURCE_EXHAUSTED.

Sounds good to me. It will match this example (https://github.com/p4lang/p4runtime/blob/master/docs/v1/P4Runtime-Spec.mdk#L3202)
Feel free to open a PR. I gave you write access to the repo so you can directly create a branch instead of using a fork (which will enable us to visualize the generated spec online before merging).


Fix reset_password API response message.

[#150141038]

@emcelroy Please review when you have a chance. Thanks.

@jsimpson-cc, @scytacki: That's good thanks, but I'd prefer a tiny change to make it 100% clear we've emailed the person directly. Does this sound good/make sense to you?
"We've sent you an email containing your username and a link for changing your password if you've forgotten it."

Yes that sounds good. I will update this.

The only think not passing on this is are the pesky Jasmine tests. So I think it is fine to merge.


keysmith: 0.1 → 0.2

Motivation for this change
Keysmith released a new stable tag
Things done
Moved from 0.1 to 0.2, this release brings a lot of new good features.

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I can't reproduce your error, this derivation runs fine for me.
Looking the sources, main.qml#L22-L23, I don't see what could produce this error : https://github.com/KDE/keysmith/blob/3880f325ce0730694daa6db868fac4c85462fa32/src/contents/ui/main.qml#L22

Don't know why but using fetchurl rather than fetchFromGitHub fixed it.
Further examinating this behaviour, if I exrtact the source directly from the github archive, I don't get the issue anymore.
And obviously, the sources fetched by fetchFromGitHub and does manually fetched are identical.
The issue seems to come from fetchFromGitHub.

:(
[nix-shell:/home/jon/.cache/nixpkgs-review/pr-91961]$ ./results//keysmith/bin/keysmith
QQmlApplicationEngine failed to load component
qrc:/main.qml:23 module "Oath.Validators" is not installed
qrc:/main.qml:22 module "Oath" is not installed
qrc:/main.qml:23 module "Oath.Validators" is not installed
qrc:/main.qml:22 module "Oath" is not installed

Seems like I can't open issues upstream : https://github.com/KDE/keysmith

Result of nixpkgs-review pr 91961 run on x86_64-linux 1

1 package built:

keysmith


coverage-7.3.3 broke pragma: no cover in match-case statement

coverage-7.3.3 released few hours ago broke ignoring whole function by # pragma: no cover when the function contains match..case statement with case condition on multiple lines. My minimum example:
# code.py:
def hello():
    print("Hello world")

def hello2(a):  # pragma: no cover
    match a:
        case ("hello one"
              | "hello two"):
            print("hello1-2")
        case "hello three":
            print("hello3")

# test_code.py:
from code import hello
from unittest import TestCase

class HelloTest(TestCase):
    def test_hello(self):
        hello()

Then run coverage and you'll get report with last two match-case lines uncovered even though the whole function should be ignored.
coverage erase && coverage run --parallel-mode --source=code --branch -m unittest test_code.py && coverage combine && coverage report --show-missing
Hello world
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
Combined data file .coverage.glinall.600.XyruySkx
Name      Stmts   Miss Branch BrPart  Cover   Missing
-----------------------------------------------------
code.py       4      2      2      0    33%   10-11
-----------------------------------------------------
TOTAL         4      2      2      0    33%

Worked fine in coverage-7.3.2.

Here is a test for the test suite that demonstrates the problem:
@ tests/test_coverage.py:1743 @ def my_func_2(super_long_input_argument_0=0, super_long_input_argument_1=1, supe
               [], "5", excludes=['my_func']
           )

  +    def test_excluding_clause_bug1713(self) -> None:
  +        self.check_coverage("""\
  +            print("1")
  +
  +            def hello_3(a):  # no thanks
  +                if ("4" or
  +                    "5"):
  +                    print("6")
  +                else:
  +                    print("8")
  +
  +            print("10")
  +            """,
  +            [1, 10], "", excludes=["no thanks"],
  +        )
  +
       def test_excluding_method(self) -> None:
           self.check_coverage("""\
               class Fooey:

@kajakaj, @maciekgyver, do you have an idea how to handle this case?

Not sure if related, but I also have a new coverage miss on coverage 7.3.3
Code:
if condition_a:  # pragma: no cover; local only
  func1()
  if condition_b:
    return
  func2()  # this statement is now shown as not covered

On prior versions, the whole if block was ignored correctly.

We have seen this regression for a class as well, so seems like anything block level.
class Foo:  # pragma: no cover
    def greet(self):
        print("hello world")

Hi all, sorry for the regression. I'm working on a fix.  The code uses tokenize to analyze the code, which isn't holding up well. I'm working on switching it to use the AST instead.

Not sure this is exactly the same problem, but in case it helps, we're also seeing a regression in the Briefcase test suite. However, we're only seeing it on Windows. I'll try to reduce this to a simple reproduction case.

I haven't narrowed this down to a specific reproduction case yet, but it appears to be related to an interaction with coverage-conditional-plugin. This is the coverage file for the failing run; it has 100% coverage on coverage 7.3.2, but has the 2 missing blocks of lines on coverage 7.3.3, (conditional-coverage-plugin=0.9.0), with a conditional rule of no-cover-if-is-windows = True defined.
coverage-7.3.2.zip

I am also seeing a regression in coverage (only in CI though?) for a case like:
class MyClass:  # pragma: no cover
    def method(self):
        pass

Which was previously ignoring the lines in method(), but is now failing for missing coverage.

FWIW: The pattern that @ringohoffman has described is very similar to what is happening in my case; however, I haven't been able to generate a simple reproduction case that fails.
In case it helps someone else: in my case, the no cover is conditional on a sys.platform check. The failure only occurs on Windows; the coverage reports missing lines on Windows, as well as when the Windows report is combined with a Linux and macOS report (Linux and macOS both do have coverage of the given lines).
The code that is being mistakenly marked as a coverage miss is:

a method in a class where the entire class is marked no-cover
2 context manager blocks one after another inside a method of a class, where the method is marked no-cover.

The second one is particularly odd, because there's plenty of other lines in the method (both before and after the problematic context managers) that are marked as covered, as well as other context managers in the same method.

Just to make it clear, the case in the issue description was run on Linux.

Another occurrence, which was quite confusing: I have several classes in one file, inheriting after abstract and all individually marked with pragma: no cover, yet several classes did not trigger anything, one triggered errors for all its @property, while two classes later one method was included in coverage with its __init__ and @property ignored as expected.
Go figure. Code is in private repository, but I can look for potential triggers of this behaviour, if directed.

I've made a simple fix on the nedbat/bug1713 branch.  BUT: only one of the examples shown in the comments here (the match/case in the original description) was broken for me in 7.3.3.  I don't see why there would be an OS sensitivity in either the original bug or the fix.
To try the fixed code:
python3 -m pip install<EMAIL_ADDRESS>
Please let me know what you find.

@nedbat Can confirm that branch seems to address the problem for me. Thanks for the fast turnaround under very obscure reproduction circumstances :-)

@nedbat Can confirm that branch seems to address the problem for me. Thanks for the fast turnaround under very obscure reproduction circumstances :-)
Thanks for the confirmation, but it kind of just deepens the mystery...

This is fixed in commit 07b76b251138dd9bc8a2e2cd585fe822dc36785a.

I can confirm that the match..case from which I made the minimal example for the issue description works OK on master.

This is now released as part of coverage 7.3.4.


Configure Exception storage

It would be fine to add a method to enable and disable exception log and also to configure the path of the file.

Functionality for this is already outlined in the README, we just need to implement it properly.
@akalongman Was this code already in the project at some point and then removed?

Should the exceptions be saved in the same file as the normal logs?
I was thinking that it might make sense to leave the exception logging as it is, so that we can simply ask somebody who is having issues, to post the file TelegramException.log from the root directory.
What do you think?

Exceptions should not be logged to the same file..

Thank for the suggestion @christianromeni ! We plan to implement this in the next release 0.30

I don't understand why exception logging is required.
Shouldn't users just do a try catch block and log themselves?

@ivanbaldo can you show me an example?

In https://github.com/akalongman/php-telegram-bot/blob/master/examples/hook.php there is a catch block and it suggests people to log them there.
We are using that example and what we get is duplicated logs of the same exceptions (but we use SysLog instead, so in production we just comment out the file_put_contents() call).

@ivanbaldo  Thanks for point this out, you  are right. Feel free to open a pull request to fix it!

I was going to work into this but found this commit https://github.com/akalongman/php-telegram-bot/commit/b1184d862d17fb8e300d57944658a9608742f904 that I think deals with this issue.
So, should I delete all that code or someone just closes this issue as solved?
I am confused heh :-).

Yes that commit deals with it, you pointed out that the exception file is not the proper place where you have to put the log, so you can move the code in the try catch

So, this issue should be closed then, commit b1184d8 makes the exception storage optional and configurable.
Maybe I am missing something?
Thanks a lot!!!

closing thanks


Space Bar to Page Down Broken by Ventura 13.3?

I used to be able to hit space and it would page down an article.  At the end of the article it would go to the next unread one.
After today's 13.3 update, that seems have broken.
A short article which doesn't require paging down still goes to the next unread article, as does being at the bottom of a multipage article.
But if it's long enough, space seems to have stopped working.

I also started seeing this after the update. If it helps, I'm using an Apple Extended Keyboard II connected to my M1 MacBook Pro via iMate USB-A through a USB-C hub. For the record, it doesn't work using the spacebar on the laptop either.

If current article is short, it works as expected, i.e advances to the next unread article. But if article is long, pressing space has no results.

Yes — this was broken by macOS 13.3. We hope to find a workaround!

Holding down the down arrow on a longer article will sound the warning beep although scrolling will continue

This is fixed in macOS 13.4 beta.


Row Limit popover in SQL Lab is oddly formated

As titled. The buttons should be in the same row
Screenshots

Environment
(please complete the following information):

superset version: master

cc @rusackas @mistercrunch

Same happens with dashboard time range filter: https://github.com/apache/incubator-superset/issues/10471

Related to https://github.com/apache/incubator-superset/pulls?q=is%3Apr+is%3Aclosed++doctype ?


[Pager] Fix Modifier.pagerTabIndicatorOffset()

After pagerState.currentPage was changed to be updated once we scrolled half of the page the indicator offsets were broken.
I also removed unneeded use of composed modifier and page scrolls causing recomposition.
Please add the library name to the PR title. Example: "[Insets] Fixes typo"

Is there an attached issue to close?
No, I just noticed this issue during my own testing


Bundling assets with release build

First of all, I can't express strongly enough how much this project excites me. I've been looking around the GUI libs in rust, and while quite a few of them show great potential, Tuix is the first library that seems to make simple desktop apps possible without the cognitive overhead of other libraries.
Since I have no production goals with the things I'm building, I don't mind that this is only early stages of this library.
I do have a question regarding assets required when building my application. It seems like as of now, when I need to load a stylesheet or an image, my application needs to load them from the file system. When creating a release build, I couldn't see any way to bundle those assets with the build. My assumption is that this is because of how the image and css crates work, but are there any plans to make assets and build bundled together?
For my specific immediate needs this isn't really an issue, as I can keep everything in the same folder without an issue, but I am having a hard time thinking how I could distribute my application should I ever need to. I certainly could just zip everything and ship a zip file, or I could try to package it and use the default app settings folder in whatever native way the OS does that (like a folder in ProgramData for window, or $XDG_CONFIG_HOME on ubuntu), but if I am using filesystem paths inside the source code this seems like it might be harder to get consistently right.
This is less of an actual issue, and more of a question about future plans.
Thank you so much for your hard work on this!

Hello, and thank you for your interest in tuix! So for stylesheets you can define them within a rust file using a constant, something like: const STYLE: &str = r#"css goes here"# and then use state.add_theme(STYLE). You can do a similar thing and still have your stylesheets in separate files but then use the include_str!() macro and this will package that files contents into the binary. However, I should note that you lose the ability to hot reload the style properties if you do it this way. For images I haven't got support fully working yet but when I do I imagine you should be able to do the same thing that I do with the default fonts which is to use the include_bytes!() macro to package the raw data into the binary. For future plans I'm hoping to have a more robust resource manager (that's the main reason I don't have support for images yet) and perhaps some of this can be done for you by the resource manager once the app you create is ready to be distributed.
Out of curiosity, how did you find out about tuix?

Oh, that is really good news! I wonder if a similar process would work for images but converting them to base64 first, and just using the base64 version of the string in a constant as well. I will have to test that theory before I speculate any more, but if that does work, having an assets.rs file could potentially work as a source of truth for now.
A resources manager would be most welcome, so I'll keep an eye out for that.
I was browsing the gui section of lib.rs. I've been building a text-adventure (a la Zork) that is quickly turning more into an engine that just a single game. As a consequence, managing the game files that will actually contain the game data becomes a little unwieldy to do by hand (I'm using yaml for the game files). What I had in mind was to have a simple editor that could keep track of which files currently exist and help me create more, that way I separate creating the engine from creating the actual game.
The game itself is meant to be ran on the terminal (I'm using TUI for that part), but for editing the game files I really wanted something a little bit more visual, but a lot of the other libraries tend to do either too much, or not enough. There were a couple of other libraries that I considered, and up until yesterday I was convinced I'd end up having to use druid which looks really promising too, but following their documentation was a little daunting. Tuix was easy to follow, and I had a small simple app for testing input and output in just under an hour, which for a library I never used was pretty cool. For comparison, Tui which is a pretty decent and documented library, took me a good part of two days to figure out layout and positioning.
I do hope that more people come across Tuix because this library has a lot of potential! Again, thank you for taking the time to respond, and for the suggestion above!

That's good to hear that you managed to get something working so quickly. One of the goals for tuix is to have a gui lib that you can just use straight out of the box, no need to add extra dependencies or provide your own windowing/rendering. As you've seen tuix is still in an early stage of development with lots of things that don't quite work right just yet. This is why I haven't really advertised tuix yet except to a small group of people. Hopefully tuix can meet your needs, and if you find any problems then feel free to raise an issue, or if you have discord then there is a discord server (link at the top of the readme).

Thank you! I missed the discord link on my first pass, so if I have more questions about general use or direction I'll pop there.
Also, I completely understand that the library is still in very early stages. It seems like it does pretty much most of the things I need, since the ui part will be largely input boxes and buttons, nothing fancy. The core of the logic will be mostly backend related, so my needs are minimal.
I'll go ahead and close this issue, and open new ones if I find actual bugs. Once again, thank you!


Single quote character in cell breaks CSV export

In the example page (http://www.clarketravis.com/tableexport/) the CSV export is cut off completely after (and including) the single quote character.
"Rank","Country","Population","% of world population","Date"
"1","中华人民共和国 (People

XLSX export is fine.
OS: Windows 7 64-bit
Tried browser:

Chrome 49.0.2623.87 m
Firefox 38.0.1

@strelok1 - Thanks for reporting this issue. The latest patch release (v3.1.2) fixes this premature cell termination caused by single quote characters when exporting to xls, csv, and txt formats.


fix type services from LoadBalancer to ClusterIP

fix type services from LoadBalancer to ClusterIP, this issue contains

if your kubernetes cluster in cloud provider, you dont have to port forward services
if your kubernetes cluster in barematal or doesnt have loadbalance, you have to change to clusterip so you portforward the services

Hey @drnkknt, just saw your PR among the forked repos. Thanks for pointing that out. Feel free to open a PR on the Cyclops repo


v4 Dashboard Example menus off

The top navbar doesn't behave correctly, and the left side nav styles seem to be incorrect here:
http://v4-alpha.getbootstrap.com/examples/dashboard/

Example image:

#17077 should help with that

Fixed by #17172.

@mdo I don't think this is fixed - comparing the v4 version with the v3 example shows quite a bit of difference in style: http://getbootstrap.com/examples/dashboard/

Yeah, this and almost all the other examples, need more love. We can tackle much of this later unless folks start to pick at it for us.


Cleanup Search Results Script

A bit of cleanup before implementing the open state change request.

Removed double firing of collapseResults
Removed unused slideToggle
Removed unused link deletion
Removed usused filterWiki hide
Updated naming to match standards
Updated spacing/quotes to match standards

Merging to keep moving, lots of changes touching this file.


PacketEvents cannot be cancelled

While PacketEvent extends CancellableEvent, there's no implementation in the HandlerRegistry or the Session that cancels the Packet if the event was set to do so. One way to fix this is to have the firePacket method return the PacketEvent:
    public void sendPacket(Packet<?> packet) {
+       PacketEvent<?> event = Main.getEventBus().firePacket(packet);
+       if (!event.isCancelled()) {
           this.channel.writeAndFlush(packet);
+       }
    }

In the HandlerRegistry, a similar thing would be done:
    if (handler != null) {
+      PacketEvent<?> event = Main.getEventBus().firePacket(packet);
+      if (!event.isCancelled()) {
          packet.handle(handler);
+      }
    }

It's also possible that firePacket just returns a boolean indiciating if the packet was cancelled.


Add support for deepcopy/pickle to PyGraoh

The PyGraph class was missing a getstate and setstate function
which were needed to enable support for pickling and deepcopy. This
commit adds the missing methods so PyGraph objects can be deepcopied.
One note on the test is that there aren't isomorphism functions that
support the pygraph type yet due to typing constraints a new trait will
need to be added for both PyGraph and PyDAG to leverage the existing
function. Until then the tests just assert that deepcopy() doesn't raise
and returns a PyGraph object.

Coverage increased (+0.8%) to 81.006% when pulling 6f551eaa185cf586584b92f6d5134ca754cf7c7f on mtreinish:add-pickle-support-graph into 4a5fa47ed55efe92720852632cb4ef05ca806f3f on Qiskit:master.

The loop to remove holes in the node indexes doesn't work yet so marking as on hold until that is fixed


tools/syz-usbgen: ignore building keyboard.c

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@24cb2b4). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #1378   +/-   ##
=========================================
  Coverage          ?   57.84%
=========================================
  Files             ?      131
  Lines             ?    24844
  Branches          ?        0
=========================================
  Hits              ?    14370
  Misses            ?     9804
  Partials          ?      670

Continue to review full report at Codecov.

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


Input date format is not specified

It is unclear that this package should be used as MockDate(MM/DD/YYYY)

Thanks for opening an issue. Pull requests welcome!

Sure: https://github.com/boblauer/MockDate/pull/16

@boblauer this issue has been fixed by #16, right?

Yes, more or less. MockDate doesn't take a specific input format, it simply passes whatever it gets through to the Date object.  So there was no code change, just a documentation update.

Thanks so much for the library. It's perfect for testing :+1:


turms-service cant connect to turms-gateway

turms-gateway started and healthy, but get some errors from turms-service log

2022-01-10 01:54:12.946  INFO S sdefmdhv                     main im.turms.service.TurmsServiceApplication : Started TurmsServiceApplication in 9.656 seconds (JVM running for 11.58)
2022-01-10 01:54:15.020  INFO S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : The current online users number is: 0
2022-01-10 01:54:20.848  INFO S sdefmdhv                     turms-mongo-event-loop-24-1            org.mongodb.driver.connection : Opened connection [connectionId{localValue:32, serverValue:67}] to mongodb-router:27017
2022-01-10 01:54:29.966  INFO S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : The current online users number is: 0
2022-01-10 01:54:30.866  INFO S sdefmdhv                     turms-mongo-watch-1          i.t.s.c.c.s.c.ConnectionService : [Client] Connecting to member: jbuosmdv[turms-gateway:7610]. Retry times: 0
2022-01-10 01:54:30.931  INFO S sdefmdhv                     turms-cluster-connection-client-io-19-1          i.t.s.c.c.s.c.ConnectionService : [Client] Connected to member: jbuosmdv[turms-gateway:7610]
2022-01-10 01:54:30.950  INFO S sdefmdhv                     turms-cluster-connection-client-io-19-1          i.t.s.c.c.s.c.ConnectionService : [Client] Sending a open handshake request to member: jbuosmdv[turms-gateway:7610]
2022-01-10 01:54:31.055  INFO S sdefmdhv                     turms-cluster-connection-client-io-19-1          i.t.s.c.c.s.c.ConnectionService : [Client] Completed the handshake with member: jbuosmdv[turms-gateway:7610]
2022-01-10 01:54:45.007  INFO S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : The current online users number is: 0
2022-01-10 01:54:46.556  WARN S sdefmdhv                     turms-cluster-connection-keepalive-21-1          i.t.s.c.c.s.c.ConnectionService : Reconnecting to the member jbuosmdv due to keepalive timeout
2022-01-10 01:54:59.969 ERROR S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : Failed to count online users
im.turms.server.common.cluster.service.rpc.exception.RpcException: 4:1201:Not all connections are established
2022-01-10 01:55:15.001 ERROR S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : Failed to count online users
im.turms.server.common.cluster.service.rpc.exception.RpcException: 4:1201:Not all connections are established
2022-01-10 01:55:29.966 ERROR S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : Failed to count online users
im.turms.server.common.cluster.service.rpc.exception.RpcException: 4:1201:Not all connections are established
root@efe0c69df147:/opt/turms/turms-service# tail -f turms-service_20220110_0.log
2022-01-10 01:54:59.969 ERROR S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : Failed to count online users
im.turms.server.common.cluster.service.rpc.exception.RpcException: 4:1201:Not all connections are established
2022-01-10 01:55:15.001 ERROR S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : Failed to count online users
im.turms.server.common.cluster.service.rpc.exception.RpcException: 4:1201:Not all connections are established
2022-01-10 01:55:29.966 ERROR S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : Failed to count online users
im.turms.server.common.cluster.service.rpc.exception.RpcException: 4:1201:Not all connections are established
2022-01-10 01:55:45.001 ERROR S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : Failed to count online users
im.turms.server.common.cluster.service.rpc.exception.RpcException: 4:1201:Not all connections are established
2022-01-10 01:55:59.966 ERROR S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : Failed to count online users
im.turms.server.common.cluster.service.rpc.exception.RpcException: 4:1201:Not all connections are established
2022-01-10 01:56:15.001 ERROR S sdefmdhv                     pool-7-thread-1          i.t.s.w.s.i.s.StatisticsService : Failed to count online users
im.turms.server.common.cluster.service.rpc.exception.RpcException: 4:1201:Not all connections are established

The bug should have been fixed and you can pull the images again via docker pull ghcr.io/turms-im/turms-gateway:latest && docker pull ghcr.io/turms-im/turms-service:latest, and rerun docker-compose.standalone.yml

I think in the ConnectService class it needs to be fixed too

@LinkZhang The code you paste is fine because rpcService.requestResponse will never return MonoEmpty(Mono.empty()).
But your suggestion is good and I will update the code for better maintainability when I commit a PR for other things on the server side. Thanks.

this is the origin code

if didn't fix it, cant update the last keeplive timestamp so gateway will keep reconnecting, when fixed the code like which I pasted above,it works.

@LinkZhang Thanks, I made a mistake and it will return MonoEmpty and not call the consumer in the subscribe as I commented in the code, hhh. I will update it later. Thanks.

@LinkZhang I have published and verified the latest image that should have fixed the bug.
So I close this ticket, please feel free to reopen it if you encounter any problems.


Webklex\IMAP\Exceptions\GetMessagesFailedException

Hello,
What can cause this error?
Webklex\IMAP\Exceptions\GetMessagesFailedException
imap_fetchbody(): Bad message number

Hi @dansleboby ,
are you using version <IP_ADDRESS>? If not please update to version <IP_ADDRESS> and try again :)

How I can check the version? I have this in my composer.json
"webklex/laravel-imap": "^1.0",

I found :)
php composer.phar show webklex/laravel-imap

webklex/laravel-imap                  <IP_ADDRESS> Laravel IMAP client

Perfect,
I did some research in the meantime and created a patch. Please update to version <IP_ADDRESS> and let me know if it helped. If not please provide the full error stack.
Ref. to new version: <IP_ADDRESS>

Same error :\
My code:
        $oClient = IMAPClient::account('default');

        $oClient->connect();
        //Get all Mailboxes
        $aMailboxes = $oClient->getFolders(false);

        //Loop through every Mailbox
        /** @var \Webklex\IMAP\Folder $oMailboxes */
        foreach ($aMailboxes as $oMailboxes) {
            if ($oMailboxes->fullName == "INBOX") {
                //Get all Messages of the current Mailbox
                /** @var \Webklex\IMAP\Message $oMessage */
                foreach ($oMailboxes->getMessages() as $oMessage) {//Here is fails

If can help you here is FULL TRACE
Webklex\IMAP\Exceptions\GetMessagesFailedException imap_fetchheader(): Bad message number
    vendor/webklex/laravel-imap/src/IMAP/Client.php:306 Webklex\IMAP\Client::getMessages
    vendor/webklex/laravel-imap/src/IMAP/Folder.php:148 Webklex\IMAP\Folder::getMessages
    app/Http/Controllers/EmailsController.php:129 App\Http\Controllers\EmailsController::cron
    [internal] call_user_func_array
    vendor/laravel/framework/src/Illuminate/Routing/Controller.php:55 Illuminate\Routing\Controller::callAction
    vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:44 Illuminate\Routing\ControllerDispatcher::dispatch
    vendor/laravel/framework/src/Illuminate/Routing/Route.php:203 Illuminate\Routing\Route::runController
    vendor/laravel/framework/src/Illuminate/Routing/Route.php:160 Illuminate\Routing\Route::run
    vendor/laravel/framework/src/Illuminate/Routing/Router.php:572 Illuminate\Routing\Router::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 Illuminate\Routing\Middleware\SubstituteBindings::handle
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:65 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken::handle
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 Illuminate\View\Middleware\ShareErrorsFromSession::handle
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64 Illuminate\Session\Middleware\StartSession::handle
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::handle
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59 Illuminate\Cookie\Middleware\EncryptCookies::handle
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 Illuminate\Pipeline\Pipeline::then
    vendor/laravel/framework/src/Illuminate/Routing/Router.php:574 Illuminate\Routing\Router::runRouteWithinStack
    vendor/laravel/framework/src/Illuminate/Routing/Router.php:533 Illuminate\Routing\Router::dispatchToRoute
    vendor/laravel/framework/src/Illuminate/Routing/Router.php:511 Illuminate\Routing\Router::dispatch
    vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 Illuminate\Foundation\Http\Kernel::Illuminate\Foundation\Http\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30 Illuminate\Foundation\Http\Middleware\TransformsRequest::handle
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30 Illuminate\Foundation\Http\Middleware\TransformsRequest::handle
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 Illuminate\Foundation\Http\Middleware\ValidatePostSize::handle
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::handle
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:148 Illuminate\Pipeline\Pipeline::Illuminate\Pipeline\{closure}
    vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 Illuminate\Routing\Pipeline::Illuminate\Routing\{closure}
    vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102 Illuminate\Pipeline\Pipeline::then
    vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 Illuminate\Foundation\Http\Kernel::sendRequestThroughRouter
    vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 Illuminate\Foundation\Http\Kernel::handle
    public/index.php:53 [main]

Hmm if you dump $this->uid in \Webklex\IMAP\Message.php:130 does it contain any chars or is it null?

I don't change my provider, it microsoft
I put a loggin on this value, this error apper randomly, I will give you information when the error reappear :)

$this->uid = (int) 1
$uid => int(105567)
I got log for 178 requests
This is how I log result

Hi,
Do you have an idea?

Hi,
not really. I did some more research and stumbled upon some discussions which seem to have the same problem. So it could be a broken message / a misconfigured mail server or a filthy php version.
Ref.:
https://github.com/ddeboer/imap/issues/26
https://marc.info/?l=imp&m=109326277115553&w=2

Hi @dansleboby ,
have you figured it out?

No :( Finalley I choose GRAPH api from microsoft, because the email I try to sync is an Office 365


Prepare an image to setup a podman on a windows system using deliverest

Setup a repo for an image that would make use of deliverest in order to ship a script that would prepare a podman (nightly, stable, any). also include an option to have podman machine initialized and started. Also add rootful and rootless flags.

https://github.com/odockal/pde2e-podman


Reorganize to suggested standard project layout

https://github.com/golang-standards/project-layout
This will require some refactoring and cleaning up of scoping.

I will work on this issue first since it will influence many other code decisions.


Malawi redesign

@projectmushroom
💯
Just a note:
You can compress this image featured_bar_malawi.png = 18kb and maybe the logo

@Mitso I uploaded the wrong featured_bar_malawi.png, thanks for picking that up, the logo has already been compressed.


Fix looker missing git execution on container image

[Looker] Update missing function
[Looker] add git execution to ingestion Dockerfile

Describe your changes:
Fixes Looker issues

I worked on ... because ...

Type of change:

[x] Bug fix
[x] Improvement
[ ] New feature
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] My PR title is Fixes <issue-number>: <short explanation>
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Thanks @locnh2012 for the contribution


improve UnpackNestedValue type

apply https://github.com/react-hook-form/react-hook-form/pull/2263

thanks @kotarella1110 🙏


make error

[ 25%] Building CXX object PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/OpenPoseWrapper.cpp.o
[ 50%] Building CXX object PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/PyOpenPose.cpp.o
[ 75%] Building CXX object PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/opencv_expose.cpp.o
/home/nan/PyOpenPose-master/PyOpenPoseLib/opencv_expose.cpp:13:33: fatal error: numpy/ndarrayobject.h: No such file or directory
compilation terminated.
PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/build.make:110: recipe for target 'PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/opencv_expose.cpp.o' failed
make[2]: *** [PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/opencv_expose.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:117: recipe for target 'PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/all' failed
make[1]: *** [PyOpenPoseLib/CMakeFiles/PyOpenPose.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

It looks like the numpy headers are missing from your system. Have you installed numpy? which version of opencv and python are you building with?

yes, the numpy is installed.
thank you very much @christian-lanius!


Please update SameFace.framework to Swift 5.1 for module stability

Hi @BohdanNikoletti
I'm currently working on a fix for the recognition issue. Unfortunately, SameFace.framework was compiled with a Swift 4.2 compiler, leading to the error Module compiled with Swift 4.2 cannot be imported by the Swift 5.2 compiler. This means that I can't compile SFaceCompare for debugging purposes on any remotely current version of Xcode.
Swift 5.1 introduced module stability, so I'd kindly ask you to update SameFace.framework to at least Swift 5.1. Unfortunately the source files for SameFace.framework aren't provided, so it looks like you're the only person capable of updating the framework. Would greatly appreciate an update to Swift 5.1!

Follow up: I've recompiled the framework after finding the separate repository. Upon accepting my pull request this issue can be closed.

Merged your PR also some updates


Adjust rivine/tfchain binaries for json output

Rivine / binary output should be adjusted so JSON output is given when a env var is set

tfchain is done, for decred we have a temporary version but needs tweaking!


Feature - Code Completion Toggle

Add a toggle in the settings to allow users to turn on/off code completion to control traffic and potential data leakage in situations where you dont want to send parts or the entire file over to openai as context.

Thanks! Handled by #23

Closing this issue since the feature was added


How to append an object?

Hello need to append object field something like:
var form = new FormData();
form.append('name', 'Name');
form.append('details', {age: 12});

but it will throw an error like this:
      TypeError: Object #<Object> has no method 'on'

      at Function.DelayedStream.create (/home/pity/workspace/node_modules/cmp-uploaders/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js:33:10)
      at FormData.CombinedStream.append (/home/pity/workspace/node_modules/cmp-uploaders/node_modules/combined-stream/lib/combined_stream.js:43:37)
      at FormData.append (/home/pity/workspace/node_modules/cmp-uploaders/node_modules/form-data/lib/form_data.js:43:3)
      at validationFailTest (/home/pity/workspace/node_modules/cmp-uploaders/test/lab/simple_uploader.js:68:6)
      at Object._onImmediate (/home/pity/workspace/node_modules/cmp-uploaders/node_modules/lab/lib/execute.js:492:17)
      at processImmediate [as _immediateCallback] (timers.js:330:15)

How about if append receives an object then it assumes it should be encoded with JSON.stringify and it sets Content-Type to application/json?  This seems like a common use case to me.
It wouldn't be worse than the current behavior of TypeError: Object #<Object> has no method 'on'.

it maybe common case for some apps, but some other apps work with url-encoded data, and even with url-encoding there are multiply ways, like standard HTTP way and PHP array-friendly way.
And if all you need is JSON.stringify, there should be no problem in doing it in "user"-land (i.e. form.append('data', JSON.stringify(myData)), right?
Throwing errors in general meant for developer errors, to notify developer of the unacceptable behavior. And for developers it's much easier to find out about the problem this way, then somewhere deeper in stack because some library took freedom to assume things for the developer, especially for dynamic languages like JS, where you can accidentally pass object instead of a string.

Excellent points, I agree.

Is there any npm module for transforming an object to PHP style array? recursively

Found one: https://github.com/therealparmesh/object-to-formdata/

i can not  append list of objects to my form data i got empty list  on the action
 var SingelValues = {                             ItemId: singleList.id,                             inputValue: singleList.value                         }                         SingelValues = JSON.stringify(SingelValues);                         fdata.append("SingelValues[]", SingelValues)

I use Swagger2.0, mongoDB as database and I am trying to go with the stringify() during sending and decode in the Flask server side.
Surprisingly, even though I defined the schema in the swagger UI for such field as string. During get fields, it will still directly get the json array instead of string format... This satisfies my need, but it doesn't make sense. Could someone give me an explanation on this?

I use Swagger2.0, mongoDB as database and I am trying to go with the stringify() during sending and decode in the Flask server side.
Surprisingly, even though I defined the schema in the swagger UI for such field as string. During get fields, it will still directly get the json array instead of string format... This satisfies my need, but it doesn't make sense. Could someone give me an explanation on this?

I was trying to post a complex data structure without pickling it into json to set up a simple data flow from React to Rails, and this thread was the most helpful piece of information. Just in case someone is looking for an example:
data to be posted:
{
  library: "favorite",
  movie: {
    name: "James Bond Skyfall",
    year: "2012",
    screenshots: [file1, file2],
  },
}

implementation with FormData:
const formData = new FormData()

formData.append("library", "favorite")
formData.append("movie[name]", "James Bond Skyfall")
formData.append("movie[year]", "2012")

formData.append("movie[screenshots][]", file1)
formData.append("movie[screenshots][]", file2)

can I append the Object as it is, without Stringify it?

@abned08 no, you may stringify it or use @alexsmartens 's solution. FormData.append() only accepts USVString and Blob.

Thanks a lot to @alexsmartens for example. I was 3, 4 days without can send objects in FormData post and his example really help me to success.
e.g (C#):
public JsonResult AddTicketUser(TicketViewModel ticketVM) //ticketVM has a Ticket object inside.
I believe that @alexindigo is elegant solution but I not sure how implements in my case. ( Use enctype: 'multipart/form-data' and  contentType: false).
greetings :)

Following @alexsmartens example here's a handy js function to append an object to FormData
function FormData_append_object(fd, obj, key) {
  var i, k;
  for(i in obj) {
    k = key ? key + '[' + i + ']' : i;
    if(typeof obj[i] == 'object')
      FormData_append_object(fd, obj[i], k);
    else
      fd.append(k, obj[i]);
  }
}

And here's is how you would call it:
var myObject = { a: 'one', b: { b1: 'two', b2: { b21: 'three', b22: 'four' } }, d: 'five' };
fd = new FormData();
FormData_append_object(fd, myObject);

It works great calling ajax from js to PHP.

None of the recommendations lead to custom attributes being attached for me. See code samples below and what I see on Listmonk:
const formData = new FormData();

formData.append("email", email);
formData.append("l", "9cd4ae6c-5a93-4976-a44f-f1865dc2b7d7");
formData.append("test", "test"); // Doesn't add custom attribute
formData.append("details", JSON.stringify({ test: "test" })); // Doesn't add custom attribute
formData.append("attribs", "test"); // Doesn't add custom attribute
formData.append("attributes", "test"); // Doesn't add custom attribute
formData.append("name", "");
formData.append("nonce", "");

Hey,
The thing is you can send only strings over the wire, so complex data types, like object should be encoded somehow and since there are many way to encode objects, FormData leaves it to developer to choose proper encoding mechanism that supported on the other end. For example it could be a JSON string or a form-urlencoded string.
Something like:
var details = JSON.stringify({age: 12});
form.append('details', details);

Let me know if you have more questions.

In case this is useful for somebody else, in the case you are using Express Multer you can use file.buffer.toString()


Investigate the HTAN QC pipeline

During the NIH/HCA meeting, Josh Campbell mentioned a pipeline that they developed to run QC on raw matrix files.

[ ] Identify what QC metrics are a part of read-out for each raw matrix file
[ ] If we think some/all of those will be valuable, get the pipeline operational by running it on a DCP matrix file

From Josh's email...

Our pipeline is part of the singleCellTK R package. It is currently in a development branch here:
https://github.com/compbiomed/singleCellTK/tree/devel
For instructions on how to run it on the command line, see here:
https://github.com/compbiomed/singleCellTK/blob/devel/exec/SCTK_runQC_Documentation.md
We will be publishing docker and singularity images in the next week or two to help with reproducibility and dependencies.

singleCellTK has the following QC metric output:

GENERAL METRICS (R package: Scater)

sum: Total counts per cell
detected: Total genes detected per cell
percent_top_n: (where n==50, 100, 200, or 500) Percentage of counts assigned to top n highly expressed genes
subsets_mito_sum: Total mitochondrial counts per cells
subsets_mito_detected: Number of mitochondrial genes detected per cell
subsets_mito_percentage: Percentage of mitochondrial counts out of total gene counts

METRICS ON DROPLET MATRIX (R package: dropletUtils)

dropletUtils_emptyDrops_total: Total UMI count for each barcode
dropletUtils_emptyDrops_pvalue: Barcodes with UMI counts less or equal to lower are used to estimate an ambient profile vector, against which significant deviations are tested with a Monte Carlo approach. Benjamini-Hochberg correction is applied to the calculated p-values.
dropletUtils_emptyDrops_logprob: The log-probability of observing the barcode's count vector under the null model
dropletUtils_emptyDrops_fdr: False discovery rate, suggested cutoff of 1%
dropletUtils_emptyDrops_limited: TRUE/FALSE; indicating whether a lower p-value could be obtained by increasing number of iterations used for Monte Carlo p-value calculations
dropletUtils_barcodeRank_knee: Numeric, specifies total count (log, y-axis) at the knee point when plotted against log-rank of barcode
dropletUtils_barcodeRank_inflection: Numeric, specifies total count  (log, y-axis) at the inflection point when plotted against log-rank of barcode

Question: What are the lower and retain parameters used for emptyDrops analysis?

METRICS FOR DOUBLET DETECTION: (R packages: scran, scds)

doubletFinder_doublet_score: Likelihood of cell being doublet using artificially generated doublets. Score is defined as the ratio of densities of simulated doublets to the (squared) density of the original cells
doubletFinder_doublet_label: "Singlet" or "Doublet" as deemed by algorithm
scds_cxds_score: Numeric value that determines how likely a cell is a doublet, based on co-expression of gene pairs
scds_bcds_score: Numeric value that determines how likely a cell is a doublet, using artificially generated doublets
scds_hybrid_score: Numeric value that determines how likely a cell is a doublet, uses both cxds and bcds algorithm
scran_doubletCells_score: Numeric value that determines how likely a cell in the counts matrix is a doublet
scrublet_score: Numeric value that determines how likely a cell in the counts matrix is a doublet
scrublet_call: Whether the cell is deemed a doublet or not by the algorithm

METRICS FOR AMBIENT RNA CONTAMINATION (R package: celda)

decontX_contamination: Probability of contamination determined by decontX
decontX_clusters: Clusters determined by Celda, a clustering algorithm that runs in the background of decontX

@jahilton, there are the listed QC metrics as shown in the SCTK documentation. These metrics are extracted from expression matrices by the associated R packages, but it is unclear whether qc metrics csv files were used for the data generated by the Optimus pipeline.


Custom blend modes

Exposes full control over blend stage in material settings.
Current predefined blendTypes do not cover all possible combinations of blend equations and operands.
Adds a new blendType BLEND_CUSTOM and exposes the full blend stage through a new function setCustomBlendType()
I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

How does it work on WebGL 2.0 and 1.0? Is it fully compatible with WebGL 1.0, or does it require any extensions?

This PR is becoming a little stale. Can we make a decision on what to do with it, please? @MrMabulous, there seem to be some comments that need your input. Thanks!

I'm closing this due to no updates to it .. we can always re-open it if needed in the future. Thanks @MrMabulous !


Migrate to JUnit5 + bump AGP to 7.3.0

In #279, I'll want to temporarily disable some tests onWindows due to Gradle test-kit bug: https://github.com/gradle/gradle/issues/21964
JUnit5 has a dedicated DisabledOnOs annotation, so I'm proposing to upgrate test suite to run with JUnit5, which would be nice to do even if I didn't need the new annotation :)

Ehh... :/ https://github.com/junit-team/junit5/issues/2811

I assume no plugin compatibility changes here? User will not need to be on later versions of kotlin or agp?

No changes needed, we should be all good. Kotlin 1.7.20 is backwards compatible and AGP isn't exposed as a public dependency, we'll always use the one provided by the consumer build (that's why I pushed for testing against various AGP versions)


Suggestion: Anti Magic Zone Admin Configurable

Some way for admins to prevent wands being used inside an area.

If you have WorldGuard you can use the blocked-spells or blocked-wands flags for this.
https://github.com/elBukkit/MagicPlugin/wiki/Regions

thx


How to show a singel entry for logged in user?

In the document https://cap.cloud.sap/docs/cds/cdl I see $user only implemented for SAP HANA that is already not so nice for local testing. Is there a way to provide a service that shows just the entry of the logged in user?
For example you have Persons as an entity set.
My intention was something like:
@odata.singleton
MyData as projection on Persons where Persons.ID = $user.ID;

But looks like that won't work. Is there some similar solution described in the docs?

Hi @sfdfklskldf,
it actually works - see https://github.com/sebastianesch/sap-cap-examples/blob/master/singleton-example/srv/example-service.cds and https://github.com/sebastianesch/sap-cap-examples/blob/master/singleton-example/test/example-service.http.
You just have to take into consideration, that $user.ID does not exist., there is only $user.id: https://cap.cloud.sap/docs/node.js/authentication#user-id
I think the remark that it's only implemented in HANA is left over from before the new database layer.
Kind regards,
Sebastian

Ok, thanks a lot :)

A follow up question. Is there a way to define the email address of mock user for local testing? Because in the cloud the ID is an email and local tests it just shows Anonymous as a user.

Hi,
Here's described how to define mock users explicitly: https://cap.cloud.sap/docs/node.js/authentication#mocked
Hope this helps.

You can just use the email address as the username in package.json as explained in the docs Rene linked.
"cds": {   "requires": {     "auth": {       "kind": "mocked",       "users": {<EMAIL_ADDRESS>{           "password": "<password>",           "roles": [ "<role-name>", ... ],           "attr": { ... }         }       }     }   } }
Then you use the email address to login and it available in the $user variable.
Kind regards,
Sebastian

I guess this can be closed then, right? If not please re-open if needed. Thanks.
And thanks @sebastianesch for providing your expertise here. Very much appreciated!


Blur not launch

Describe the bug

After Launch instantly give Error

Remix 0.1.1

RTX 2070

531.41

Blur v1.2 (Other)

Attach logs!

NvRemixBridge.log (Remix 0.1.1)
d3d9.log (Remix 0.1.1)
Blur_d3d9.log (Remix 0.1.1)
d3d9.log (REMIX 0.1.0)
Blur_d3d9.log (Remix 0.1.0)
NvRemixBridge.log (Remix 0.1.0)

To Reproduce
Steps to reproduce the behavior:

Copy Files RTX Remix in folder game
Click on exe Blur
See error

Same thing here.

Now it does launch but everything 3D is black, red and green.

Hello! Will you please check on the latest release and let us know if this issue persists? Thank you!

Now the game loads but it looks like this.


Incorrect key/value retrieval formatting

The following line is wrong:
https://github.com/keylime/keylime/blob/b940b4a1a332deefdb4d20f4cf662f5566825a6f/keylime/cloud_verifier_tornado.py#L499
agent is a SQLAlchemy object, not a dict, so we need to change to the following instead:
main_agent_operational_state = agent.operational_state

Same for these:
https://github.com/keylime/keylime/blob/b940b4a1a332deefdb4d20f4cf662f5566825a6f/keylime/cloud_verifier_tornado.py#L500-L502
stored_agent = session.query(VerfierMain).filter_by(
                    agent_id=str(agent.agent_id)).first()


Replace Speedlify-score HTML with social icons?

Although, Speedlify is really nice to remind the user how performant a site is, I don't think everyone would want to have the performance metrics in the footer for just a personal art collection or photo gallery website (which this template is made for).
Consuming the speedlify API cached data which is running from my own local speedlify instance does affect the performance slightly, so maybe thats my argument for interchanging it and the accompanying JS for the static API with social icons.
Adding a list of social links to the footer may be more desired than tabbing onto the speedlify component which is an external link.
If anyone wants to weigh in on this, that'd be cool. If not, I probably will replace the speedlify-score component with a <ul> of social icons as links to the site owners social accounts.

I fully agree! 👍

Ok great. Thanks for the feedback! @nhoizey
I will implement this later today or tomorrow.

Replaced speedlify-score component with a unordered list of social links in commit 535d196. Some other stuff was fixed with this commit but social links have now replaced the speedlify-score component in footer!


Update env-example

php-fpm  config file is such as php72.ini,not php7.2.php.

I completed the 3 steps below:

[] I've read the Contribution Guide.
[] I've updated the documentation. (refer to this for how to do so).
[] I enjoyed my time contributing and making developer's life easier :)

Ref #1646


Image not getting displayed even though buffer is being uploaded

Client side
const [image, setImage] = useState<File>();
const [buffer, setBuffer] = useState();

const uploadFile = async () => {
    try {
      const reader = new FileReader();

      if (image) {
        reader.readAsDataURL(image);
      }

      const type = image!.type.split('/')[1];

      reader.onload = (readerEvent) => {
        setBuffer(readerEvent.target?.result);
        if (readerEvent.target) {
          console.log('fetching...');

          axios
            .post('/api/profile/upload-image', {
              //@ts-ignore
              userId: session.data?.user?._id,
              image: readerEvent.target?.result,
              type,
            })
            .then((res) => console.log(res));
        }
      };
    } catch (err) {
      console.log(err);
    }
  };

Server Side
  const { image, userId, type } = req.body;

  const wallet = new Wallet(devWalletKey);
  const storageAccount = new PublicKey(process.env.SHADOW_STORAGE_ACOUNT!);
  const drive = await new ShdwDrive(conn, wallet).init();

  const file: ShadowFile = {
    name: `${userId}.${type}`,
    file: image,
  };

  const response = await drive.uploadFile(storageAccount, file);

The image is getting uploaded but this is what i get in the GUI of Shadow storage

On opening the link to the image

Can you add me on discord so we can investigate a bit further into this storage account and the specific image? @khalilnafis

Yea ok, pls share your Discord Id

Alright!!

Closing, looks like an issue with nextjs parsing the request body for the image as a string.


Update plugin id in exported dashboard

The plugin id was modified when the datasource was integrated in Grafana registry, breaking this dashboard

Thanks @tsegismont


[WIP] image: build dev and release image for all arch

Fixed: #1521

I was also thinking alternative:

build and push the arch specific image to quay directly but not build the tar file.
Pull the arch specific image in stage 2 and create/push the manifest.

I'll start working on the alternative action: basic flow is:

Job 1:

Build arch specific image and push it
Export the dev_tags and release_tags and upload it to GHA artifactory
Export the arches file to artifactory

Job 2

Download the files from artifactory
Read dev_tags and release_tags
Read all arches
Iterate the arches and tags and generate the manifest
Push the manifest

Job 3

Download the files from artifactory
Read dev_tags and release_tags
Read all arches
Verify all arches by pulling manifest from registry

Evidence in GHA: https://github.com/confidential-containers/cloud-api-adaptor/actions/runs/6609105060
The built image:


Automatic crash capturing for UE 5.1 (Windows only)

Closes #44

Currently, automatic crash capturing works only in the editor due to Unreal's bug. This issue should be addressed with this PR (https://github.com/EpicGames/UnrealEngine/pull/9931). Alternatively, if one is using the engine built from source corresponding change can be applied in order to enable automatic crash capturing in packaged game build.


Migrate Rollback has no paths option

When migrating, there is a path option that can be supplied to migrate files from a different directory. When rolling back migrations, there's no path option, so trying to rollback migrations from a custom path is impossible from what I can see.
Request: Add paths option to migrate:rollback command.

The rollback action uses the data from migrations table, so I guess there's no need of a path, right?

Yeh, this has been brought up before. Feel free to look through recently closed issues/pulls.

@phanan the migrations table doesn't specify where those migrations came from, so it looks in the normal migrations folder.
@GrahamCampbell I have looked through quite a few of the previous requests already - most of these revolve around packages (which is not what I'm trying to achieve). None of them had an obvious solution to the issue that I could see, however I've found that composer dump fixes the issue... so that resolves that!


Windows install - won't create /data or habridge.config files

Hi,
Great software.  I got it working well with X10 commander (for my X10 lights) however it won't save my settings/devices because Ha Bridge) on Windows doesnt appear to create the device and config files.  the install didn't create blank ones either - so I assume they are created on first run.  Bridge control has paths (unix format) that I can't update because they don't save.
Ideas?  what am I missing?

How are you starting it on windows?

where is your HA-Bridge jar file located? (full path)

Yes it is certainly starting on Windows.  He full path to the JAR file is "C:\Program Files (x86)\HA Bridge" and the filename is "ha-bridge-5.2.1.jar"

Windows 10 64 bit has extra security (Read/write permissions) implemented for programs running from Program Files (x86). in fact Microsoft is starting to implement that for all 64 bit versions and I suspect 32 bit versions may follow.
This stops programs from editing (creating) files in Program files (x86)
The fix for this is to either run HA-Bridge as administrator or move it out of that folder, logging on Windows as an administrator won't help.

Included in the community information https://github.com/bwssytems/ha-bridge/wiki/Informational-Items-Collected-from-the-Community#q-windows-install--wont-create-data-or-habridgeconfig-files


WIP: Make most perl script have a common style

We had a mixture of perl styles, some of it being 8-column indent
Whitesmiths style, a little bit of GNU style (i.e. 2-column indent),
and the majority close to the perl style as described in 'man perlstyle'.
The work done in this change is to remove tabs, change the Whitesmiths
style brace position to the default perl style, adjust indentation to
4 columns where needed, and cleaning up some oddities left by earlier
'perltidy' runs, most notably this construct:
}
else {

I was inspired by @mspncp's untabifying work.
This effort is made manually, as I find perltidy having a bit too many quirks to make things easy enough.

I fully intend to backport to 1.1.1 as well

A tour de force.

I checked the diffs as good as I could and did not find any discrepancies.
(The Configure file was hard to compare, because the diff gets out of sync and its output contains some really large chunks. But inserting some artificial (re-)synchronization lines on both sides (identical lines containing text like "SYNC 1", "SYNC 2", etc.) helped to reduce the chunk sizes.)
The first optical impression is very good, but I did not go into details.

This effort is made manually as I find perltidy having a bit too many quirks to make things easy enough.

If you you do the reformatting manually (not scripted), how can you reproduce the same changes on 1.1.1 in a verifiable manner? I‘m almost sure that ordinary merging will not be feasible.

Side note: IIRC perltidy has a configuration option which deals with the else-oddity you mentioned.

I'm looking again at this...  @mspncp, do you happen to know which option I should hit?

I'm looking again at this... @mspncp, do you happen to know which option I should hit?

I think I meant  --cuddled-else from PERLTIDY(1):
      -ce,   --cuddled-else
           Enable the "cuddled else" style, in which "else" and "elsif" are follow immediately after the curly brace closing the previous block.  The default is not to use
           cuddled elses, and is indicated with the flag -nce or --nocuddled-else.  Here is a comparison of the alternatives:

             if ($task) {
                 yyy();
             } else {    # -ce
                 zzz();
             }

             if ($task) {
                   yyy();
             }
             else {    # -nce  (default)
                   zzz();
             }

I just did a re-run with perltidy -ce on the same files, and there are a few things I don't quite understand how to control.  Some help figuring this out would be appreciated.
-        die "Incorrect data to reconfigure, please do a normal configuration\n"
-            if (grep(/^reconf/,@argvcopy));
+        die
+            "Incorrect data to reconfigure, please do a normal configuration\n"
+            if (grep(/^reconf/, @argvcopy));

I was assuming that this had to do with outdenting, but adding the option -nolq made no difference.
 if (defined env($local_config_envname)) {
     if ($^O eq 'VMS') {
+
         # VMS environment variables are logical names,
         # which can be used as is

Why the spuriously added empty line?
 die "erroneous version information in opensslv.h: ",
     "$config{major}.$config{minor}.$config{patch}, $config{shlib_version}\n"
     if ($config{major} eq "unknown"
-            || $config{minor} eq "unknown"
-            || $config{patch} eq "unknown"
-            || $config{shlib_version} eq "unknown");
+    || $config{minor} eq "unknown"
+    || $config{patch} eq "unknown"
+    || $config{shlib_version} eq "unknown");

I'm guessing that statement modifiers is a weak point, but quite frankly, not aligning within the parentheses is just so bad...

I'm guessing that statement modifiers is a weak point,...

(Just in case anybody else is wondering what he's talking about: Here's the perldoc for statement modifiers.)

@levitte, does setting -l=80 fix the "die linebreak" issue?

According to the manual, 80 is the default line length...

When I did -l82 it did not break the die lines.

Interesting, and a bit counter intuitive...

Interesting, and a bit counter intuitive...

Richard, is it possible that you have a .perltidyrc with a line length of less than 80 char?

Note also that there are two lines with almost identical text, the first one is 79 characters wide, the second one 83 characters. (The second one has a trailing semicolon.)

https://github.com/openssl/openssl/blob/d7b2124a428f9e00ed7647554b5be7153aac71f6/Configure#L248-L252

Did you also notice the -vmll option?
       -l=n, --maximum-line-length=n
           The default maximum line length is n=80 characters.  Perltidy will try to find line break points to keep lines below this length. However, long quotes and side comments may cause lines to exceed this length.
           Setting -l=0 is equivalent to setting -l=(a large number).

       -vmll, --variable-maximum-line-length
           A problem arises using a fixed maximum line length with very deeply nested code and data structures because eventually the amount of leading whitespace used for indicating indentation takes up most or all of the
           available line width, leaving little or no space for the actual code or data.  One solution is to use a vary long line length.  Another solution is to use the -vmll flag, which basically tells perltidy to ignore
           leading whitespace when measuring the line length.

           To be precise, when the -vmll parameter is set, the maximum line length of a line of code will be M+L*I, where

                 M is the value of --maximum-line-length=M (-l=M), default 80,
                 I is the value of --indent-columns=I (-i=I), default 4,
                 L is the indentation level of the line of code

           When this flag is set, the choice of breakpoints for a block of code should be essentially independent of its nesting depth.  However, the absolute line lengths, including leading whitespace, can still be
           arbitrarily large.  This problem can be avoided by including the next parameter.

           The default is not to do this (-nvmll).

Richard, is it possible that you have a .perltidyrc with a line length of less than 80 char?

.... [ahem] ... [blush] ...  yeah...  I do...  with a lot of other settings too...
No wonder things got so weird.  So OK, add an option to ignore ~/.perltidyrc and try again.

Are you still interested in having this change included in OpenSSL? If so please rebase the PR to resolve conflicts.
Marking as inactive to be closed at the end of 3.4 dev barring further input.


reporter: Do not use colors on Windows

Windows seems to output control characters instead of properly colored
output, so we check whether the client is running on Windows and then
remove the color codes.

/retest

/retest

/test lint


Rewrite dns in rust

Backwards compatible dns
todo:

[x] server cli
[x] config
[x] api keys
[x] rate-limiting
[x] domain/ip checks
[x] pagination

code quality

[x] removed unnecessary unwrap
[x] removed unnecessary clone
[x] stress tested

Breaking changes for search engines, new /domains response type
{
  "domains": [], // Vec<ResponseDomain>
  "page": 1, // u32
  "limit": 15 // u32
}

Breaking changes for search engines, new /domains response type
{
  "domains": [], // Vec<ResponseDomain>
  "page": 1, // u32
  "limit": 15 // u32
}

We miiiight want to wait on this. Let me talk to @face-hh to see what we think

Breaking changes for search engines, new /domains response type

{

"domains": [], // Vec

"page": 1, // u32

"limit": 15 // u32

}

We miiiight want to wait on this. Let me talk to @face-hh to see what we think

It's to fix issues when the domain load is too high, I can create a separate PR for dingle.it if needed

GET /tlds seems to not work

GET /tlds seems to not work

resolved with f7ede22

🎉


[API] Add search orgs endpoint

Feature Description
It would be great if there would be a search orgs endpoint for orgs (e.g. /orgs/search), just like it's available for repos, users and issues.
Required here: https://codeberg.org/gitnex/GitNex/issues/981
Screenshots
No response

Right now, there is GetOwnedOrgsByUserID that returns a list of organizations are owned by given user ID. and also GetOrgsByUserID that returns a list of organizations that the given user ID has joined. The subject of feature is about all orgs, or the orgs that the user has access?

It's about all orgs

I will prepare a PR for this endpoint.


Not being able to save connection or add manually

Describe the bug
When trying to add a trino connection I'm getting the following error: Unable to write file '/.vscode/settings.json' (Unknown (FileSystemError): Error: EROFS: read-only file system, mkdir '/.vscode')
To Reproduce
Steps to reproduce the behavior:

Go to SQL Tools extension on sidebar
Click on Add Connection
Fill in connection settings
Click on save connection

Expected behavior
Connection should be saved with details registered into settings.json
Screenshots

Desktop (please complete the following information):

SQLTools Version v0.28.1
VS Code Version: 1.84.2
OS: MacOS Sonoma
Driver:

Trino

Additional context
If I insert all details manually I'm able to see the database, but not sure if I'm getting the manual setup correctly because I can't seem to connect (although when utilizing the UI and clicking on Test Connection it does work - but cannot save)

Are you able to change VS Code settings at the User level and get those changes persisted?

Hello @gjsjohnmurray i believe I can, but I'm not sure how to do it, are you able to give me some tips on where I'd be able to do it? I'm kinda new to VSCode coming from R

Please see https://code.visualstudio.com/docs/getstarted/settings and particularly https://code.visualstudio.com/docs/getstarted/settings#_settingsjson


Some functions fail on Dask arrays from sparse

Short sample for reproduction and traceback follow.
import numpy as np
import sparse
import dask.array as da
from numpy.testing import assert_array_equal

x = da.random.random((2, 3, 4), chunks=(1, 2, 2))
x[x < 0.8] = 0

y = x.map_blocks(sparse.COO.from_numpy)

xx = x.mean()
yy = y.mean()

assert_array_equal(xx, yy)

Traceback (most recent call last):
  File "dask_sparse.py", line 14, in <module>
    assert_array_equal(xx, yy)
  File "/home/pentschev/.local/lib/python3.5/site-packages/numpy/testing/_private/utils.py", line 894, in assert_array_equal
    verbose=verbose, header='Arrays are not equal')
  File "/home/pentschev/.local/lib/python3.5/site-packages/numpy/testing/_private/utils.py", line 697, in assert_array_compare
    y = array(y, copy=False, subok=True)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/array/core.py", line 998, in __array__
    x = self.compute()
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/base.py", line 156, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/base.py", line 398, in compute
    results = schedule(dsk, keys, **kwargs)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/threaded.py", line 76, in get
    pack_exception=pack_exception, **kwargs)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/local.py", line 475, in get_async
    finish(dsk, state, not succeeded)
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/callbacks.py", line 99, in local_callbacks
    yield callbacks or ()
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/local.py", line 460, in get_async
    raise_exception(exc, tb)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/compatibility.py", line 112, in reraise
    raise exc
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/local.py", line 230, in execute_task
    result = _execute_task(task, data)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/core.py", line 119, in _execute_task
    return func(*args2)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/optimization.py", line 942, in __call__
    dict(zip(self.inkeys, args)))
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/core.py", line 149, in get
    result = _execute_task(task, cache)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/core.py", line 119, in _execute_task
    return func(*args2)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/compatibility.py", line 93, in apply
    return func(*args, **kwargs)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/array/reductions.py", line 332, in mean_chunk
    n = numel(x, dtype=dtype, **kwargs)
  File "/home/pentschev/.local/lib/python3.5/site-packages/dask/array/reductions.py", line 323, in numel
    return chunk.sum(np.ones_like(x), **kwargs)
  File "/home/pentschev/.local/lib/python3.5/site-packages/numpy/core/overrides.py", line 151, in public_api
    implementation, public_api, relevant_args, args, kwargs)
  File "/home/pentschev/.local/lib/python3.5/site-packages/numpy/core/numeric.py", line 289, in ones_like
    res = empty_like(a, dtype=dtype, order=order, subok=subok)
  File "/home/pentschev/.local/lib/python3.5/site-packages/numpy/core/overrides.py", line 151, in public_api
    implementation, public_api, relevant_args, args, kwargs)
  File "/home/pentschev/.local/lib/python3.5/site-packages/sparse/sparse_array.py", line 213, in __array__
    raise RuntimeError('Cannot convert a sparse array to dense automatically. '
RuntimeError: Cannot convert a sparse array to dense automatically. To manually densify, use the todense method.

Another function that fails with same error besides mean() is std(). After fixing the error, we have to make sure to add both functions to sparse tests, inside the functions list.

Also not working: y.compute()

@Hoeze that works for me, could you post a traceback?

Dask v1.1.4:
x = sparse.COO.from_numpy(np.random.randint(1, size=[12, 30]))
y = da.from_array(x, chunks=x.shape)
y.compute()

Traceback (most recent call last):
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2862, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-45-ef0b14f31685>", line 1, in <module>
    y.compute()
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/base.py", line 143, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/base.py", line 392, in compute
    results = get(dsk, keys, **kwargs)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/threaded.py", line 75, in get
    pack_exception=pack_exception, **kwargs)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/local.py", line 521, in get_async
    raise_exception(exc, tb)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/compatibility.py", line 67, in reraise
    raise exc
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/local.py", line 271, in _execute_task
    return func(*args2)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/array/core.py", line 76, in getter
    c = np.asarray(c)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/numpy/core/numeric.py", line 501, in asarray
    return array(a, dtype, copy=False, order=order)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/sparse/sparse_array.py", line 212, in __array__
    raise RuntimeError('Cannot convert a sparse array to dense automatically. '
RuntimeError: Cannot convert a sparse array to dense automatically. To manually densify, use the todense method.

The fun thing here is the fact that I got no idea how to execute todense() on that:
y.map_blocks(lambda b: b.todense(), dtype=x.dtype).compute()

Traceback (most recent call last):
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2862, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-14-b21bc5f418cb>", line 1, in <module>
    y.map_blocks(lambda b: b.todense(), dtype=x.dtype).compute()
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/base.py", line 156, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/base.py", line 398, in compute
    results = schedule(dsk, keys, **kwargs)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/threaded.py", line 76, in get
    pack_exception=pack_exception, **kwargs)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/local.py", line 462, in get_async
    raise_exception(exc, tb)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/compatibility.py", line 112, in reraise
    raise exc
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/local.py", line 230, in execute_task
    result = _execute_task(task, data)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/core.py", line 119, in _execute_task
    return func(*args2)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/dask/array/core.py", line 82, in getter
    c = np.asarray(c)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/numpy/core/numeric.py", line 501, in asarray
    return array(a, dtype, copy=False, order=order)
  File "/opt/modules/i12g/anaconda/3-5.0.1/lib/python3.6/site-packages/sparse/sparse_array.py", line 212, in __array__
    raise RuntimeError('Cannot convert a sparse array to dense automatically. '
RuntimeError: Cannot convert a sparse array to dense automatically. To manually densify, use the todense method.

Maybe related?
Autmatic densification seems like an important feature to use sparse with dask, especially when mixing different types of arrays...

You can try this:
x = np.random.randint(1, size=[12, 30])
y = da.from_array(x, chunks=x.shape)
z = y.map_blocks(sparse.COO.from_numpy)
z.compute()

or, alternatively without a numpy array:
x = da.random.randint(1, size=[12, 30])
y = x.map_blocks(sparse.COO.from_numpy)
y.compute()

Would that be an option for your use case?

Unfortunately, this does not work for me.
I need to load a huge sparse matrix from disk and combine this with another dense matrix.
Therefore, I planned something like that:
sparse_array = da.from_array(some_sparse_array)
dense_array = da.from_array(some_dense_array)
full_data = da.concat([sparse_array, dense_array])

@pentschev
@hameerabbasi just stated that disallowing np.asarray was intentionally.
This means that Dask needs to do its own check at every point whether the current chunk is a sparse matrix (e.g. to calculate the concatenation of a sparse and a dense array). Is this doable?

My hope was that Dask then hides all the if data is sparse; then stuff from me.

Yes, I see your point, unfortunately, this won't be the case, due to Dask's design to prevent accidental densification of a sparse matrix.
I think the only alternative for your case is to densify your matrix manually, from your prior example, you would need to do the following:
full_data = da.concat([sparse_array.todense(), dense_array])

Copying relevant comment of mine from elsewhere: https://github.com/pydata/sparse/issues/10#issuecomment-476312208

Setting SPARSE_AUTO_DENSIFY=1 works!
Of course, it's a quick and dirty way, but that's still the only option in my case, since I cannot convert the full dataset into a dense format.
Thanks again @hameraabbasi and @pentschev

@Hoeze I added std and var in sparse master. :slightly_smiling_face: You should be able to use those without any kind of densification now. mean was already there.


Safe comment removal should not remove conditional comments

https://en.wikipedia.org/wiki/Conditional_comment

Thank you for your report! Fixed: 0.1.2

Nice!


[Fix] ApiGateway for local Middleware

[x] I've added tests (if it's a bug, feature or enhancement)
[ ] I've adjusted the documentation (if it's a feature or enhancement)
[x] The test suite passes (run bundle exec rspec to verify this)

Summary
Fix apigateway implementation that is different from the aws
Context
aws event JOSN

Released in jets 4.0.3
@ggLee6352 Thanks so much for being so thorough!


[3.7] Honor enableCache flag in edge index iterators

Backport of https://github.com/arangodb/arangodb/pull/13006
Jenkins: https://jenkins.arangodb.biz/view/PR/job/arangodb-matrix-pr/12692/ (all blue)

Now included in https://github.com/arangodb/arangodb/pull/13009.


Add stroke increase and decrease feature in separate box

Issue: #2

Don't close requests and make new one!
Still indentation changes are visible.
Refer #4 , I added comment to help you.
Please don't close the PR and create same PR again.

Use git revert bf1e819af280fe8b23c1e8ff2295255122c5eda3

@nayanbari Are you working on PR or should I close it?


Updating ACK runtime to v0.14.1

Issue #, if available: https://github.com/aws-controllers-k8s/community/issues/982
Description of changes:

Updating ACK runtime to v0.14.1
Adding e2e tests for activity and statemachine resources

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/test sfn-kind-e2e

/retest

/test all

/test sfn-release-test


Typescript support

Problem
Since it is being used in the backend side, it would be nice to have TypeScript on the client-side code. This PR adds the ability to do so, in addition to other development and quality features.
Changes

Added support for use TypeScript in the client side code. A pair of components were converted to TypeScript to validate the configuration.
Added the configuration for testing-library/react and testing-library/react-hooks, so unit tests could be added to the client side code. A pair of tests were added to validate the configuration.
eslint-webpack-plugin was added to avoid forgetting to fix eslint and prettier issues during development.
Some commands on Dockerfiles were rewritten to benefit from caching when executing npm install

Testing

All tests (the previous ones and the new ones added) work as expected.
Docker image builds and Docker container runs as expected.

Main branch dependencies

Thanks! merged & released in 3.2.2


Fix reference to 'app/stylesheets' in upgrade instructions

Instructions explaining how to keep stylesheets in app/stylesheets had one spot incorrectly referencing this desired location as app/assets/stylesheets

Hey @chriseppstein is this what you ment to type? also thanks greg

yep. good catch!


[popups] custom, fix change select

close #8228
better use methods in the definition model than string checks (I should have spotted this in the review), the empty template name wasn't quite right as that can perfectly be a select option; the custom template is empty template name and template not empty
also, I removed that wrong code as with the last mirgation we're not exposing that table/views/infowindow_light anymore (copying @juanignaciosl to confirm)
CR @nobuti /cc @juanignaciosl

👍

@matallo migration replaces table/views/infowindow_light with infowindow_light. If this only affects the builder it should be true, but please try it, as I've seen some unexpected behaviour around infowindows (for example, editor only displayed that path in the first assignment).


Add travis.yml file

Added a travis.yml file because #10 failed.
It looks like you've disabled it, feel free to close (or merge).

Yeah, disabled travis, since it's on CircleCI.


changing correct $webhookEndpoint url

Changing in the API-v2.php file the '$webhookEndpoint' variable value to '/chargilyv2-webhook' which is the rewrite_rule url declared in chargily.php

Updated to choose the webhook type


example/regressions.py throws error

When I try to run python example/regressions.py it throws this error
Traceback (most recent call last):
  File "examples/regressions.py", line 12, in <module>
    dateRange = DatetimeIndex(start, periods=N)
  File "/Users/vyomkesh/code/pandas/pandas/util/decorators.py", line 88, in wrapper
    return func(*args, **kwargs)
  File "/Users/vyomkesh/code/pandas/pandas/tseries/index.py", line 240, in __new__
    data = list(data)
TypeError: 'datetime.datetime' object is not iterable

Looks like using the date_range method fixes the error.

@tvyomkesh Thanks for looking into the examples!
But apart from fixing the examples, I think we should think for a moment what we want to do with these examples. Why do we want them? What is their function?
And depending on that, do we want to update/extend them? Or maybe move them to the docs?
I personally never looked at these examples. And they are also quite outdated. Eg using the ols from pandas is somewhat (unofficially) deprecated for the use of statsmodels, and the finance module in matplotlib is deprecated starting from matplotlib 1.4. And to get such data, I think pandas-datareader should be used.

I think that these should be checked to see if they are in the docs ; if not and appropriate add any
then blow away the entire directory
these are just duplicate, not maintained more tested and pretty much superfluous to the docs


Instructions for using vsocde

Hi, I would like to add a piece of best practice using VSCode through VSCode CLI (https://code.visualstudio.com/docs/remote/tunnels#_using-the-vs-code-ui)
For now I put it under /The HPC Cluster /Using the cluster/Using IDE/Using VSCode, and of course we can put it somewhere else.
Best,
Chad

@chadHGY thanks for the PR.  I have merged your contribution and did a bit modification.   It is now available online.  You can have a look here: https://hpc.dccn.nl/docs/cluster_howto/ide-usage.html
Feel free to make new changes and PRs.


Updated extension Sql Data Inspector to version 0.5.0

This new version of the extension let the user to filter tables by schema and fixes minor bugs and vulnerabilities.

Hi,
It's not clear how to resolve the failure of the check "Update Extension Gallery Reminder / main (pull_request)".
Can someone give some hint?
Thanks!
Ernesto

Gallery is updated!