Incorrect handling of commands with arguments (v3 unstable)

When using kingpin, I was expecting to be able to write the following code to parse a command:
	args := os.Args[1:]
	switch kingpin.MustParse(app.Parse(args)) {
	case initCmd.FullCommand():
		initAction(*initCmdArg)
	// ...
	default:
		app.Usage(args)
	}

Given the CLI args myapp init file.txt, I got the usage message displayed, when I wanted initAction to be called.
Currently in kingpin (v3 unstable) I am working around this issue using:
	args := os.Args[1:]
	switch kingpin.MustParse(app.Parse(args)) {
	case "init":
		initData(*initCmdArg)
	// ...
	default:
		app.Usage(args)
	}

Expected Behavior
As stated above, I am expecting the output of kingpin.MustParse(app.Parse(args)) to equal the result of .FullCommand() function of a command, rather than to have to define my own strings in the switch statement.
Below is an example block of test code that I would expect to passed.
package main

import (
	"testing"

	kingpin "gopkg.in/alecthomas/kingpin.v3-unstable"
)

func TestParse(t *testing.T) {
	app := kingpin.New("myApp", "Lorem ipsum.")
	initCmd := app.Command("init", "Lorem init.")
	_ = initCmd.Arg("file", "Lorem file.").String()

	importCmd := app.Command("import", "Lorem import")

	testCases := []struct {
		testName string
		args     []string
		want     *kingpin.CmdClause
	}{
		{"SimpleCommand", []string{"import"}, importCmd},
		{"CommandWithArg", []string{"init", "file.txt"}, initCmd},
	}

	for _, tc := range testCases {
		t.Run(tc.testName, func(t *testing.T) {
			parsed := kingpin.MustParse(app.Parse(tc.args))

			if parsed != tc.want.FullCommand() {
				t.Errorf("Expected %q to equal %q", parsed, tc.want.FullCommand())
			}
		})
	}
}

Current Behavior
Test Output:
Running tool: /usr/bin/go test -timeout 30s -tags  -run ^TestParse$

--- FAIL: TestParse (0.00s)
    --- FAIL: TestParse/CommandWithArg (0.00s)
    	/home/matthewdunsdon/go/src/github.com/matthewdunsdon/explore-kingpin-3/main_test.go:38: Expected "init" to equal "init [<file>]"
FAIL
exit status 1
FAIL	github.com/matthewdunsdon/explore-kingpin-3	0.005s
Error: Tests failed.

I do not mind whether the parsed output is changed to "init [<file>]" or whether importCmd.FullCommand() returns "init", however I would like the test to pass.
Context
My reasons for using (v3 unstable) are that:

I want to be able to write apps where I can use the app.UsageContext to include examples in the usage context.  I have written github.com/matthewdunsdon/egcmd   and github.com/matthewdunsdon/egcmd/egkingpin   to make this possible.
I have no intention to take the apps I write with (v3 unstable) into any production environment.  I am using them for my own learning and own use.

Environment

Package source: "gopkg.in/alecthomas/kingpin.v3-unstable"
Go version used: 1.8
Operating System and version (desktop or mobile):  Solus (Linux x64)

> lsb_release -a
LSB Version:	1.4
Distributor ID:	Solus
Description:	Solus
Release:	2<IP_ADDRESS>
Codename:	shannon

Ah. Good catch, thanks. I'll try to fix that this week.


Update minimum required Ruby version

We're adding support for Ruby 3.3 and dropping support for 3.0. The new minimum required version will be 3.1.4.
For more info: https://docs.publishing.service.gov.uk/manual/publishing-a-ruby-gem.html#ruby-version-compatibility

Converting to draft for now. We will merge this in April once 3.0 reached EOL.
https://trello.com/c/StwaSbSh/3224-drop-support-for-ruby-30


Save option?

When running the script I am able to add the api and check off the options I want but there is no option to save. Also there is no option under backup to create a backup.

The Options get Saved once you run an Import.
But yeah. This should probaply be changed. Maybe save if you click off the Settings Page.

Another issue is when I run an import there is no visible progress bar and the import never shows completed.

Adding a save button to the settings menu in the next release (today)


Installing UTM on iOS and iPadOS 17.5 in the EU

Good day! I have a general question. Since iOS and iPadOS 17.5 it is now possible to install apps regularly (without sideloading) from websites in the EU (or if one creates an EU-based AppleID). Could you please launch such an installation website for UTM?
In my opinion, this website would be a good alternative to jailbreaking and prevent JIT enabling issues caused by sideloading.
Thanks!

They also allow emulators on App Store idk if that means UTM can be submitted to the Store


After update to 1.5.1 - cannot find module react-scroll

Seems like package.json doesn't have proper main:
{
  "name": "react-scroll",
  "version": "1.5.1",
  "description": "A scroll component for React.js",
  "main": "modules",
...

test now, I was to quick to publish.

now ok. thanks. please delete PR #206 (you were very quick to fix it and I was slow to see the fix ;))

A similar issue has be re-introduced with 1.6.0-
package.json in 1.5.5:
"main": "modules",
package.json in 1.6.0
"main": "build/npm/modules"


Curiosity

Every now and then I glance at this project . the concept seems very interesting , but I see that the project is at a standstill . Has the development been stopped ?

@Sznymo  There are a few things I plan on improving/providing in the future but it's pretty much feature complete. It works. My end goal is to have this library help package applications, and not have to rely on a Chrome installation (I have my eye on something like https://github.com/webui-dev/webui). Ultimately I'd like it to be a something similar to a lightweight Electron.
In short, you can build applications no problem with Neel at this time.


Git fatal could not find remote ref on macbook pro

Issue Type: Bug
When i try to push my commits to the remote (azure devops) i get an error "Could not find remote ref 'nameofbranch'"
The branch is not present on the remote, but that should not be a problem and just create it.
When i do a regular push with the command it works just fine and the branch is created on the remote as expected.
VS Code version: Code 1.28.2 (7f3ce96ff4729c91352ae6def877e59c561f4850, 2018-10-17T00:18:43.347Z)
OS version: Darwin x64 18.0.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (8 x 2800)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledrasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
16.00GB (6.80GB free)

Process Argv
-psn_0_61455

Screen Reader
no

VM
0%

Extensions (7)

Extension
Author (truncated)
Version

gitlens
eam
8.5.6

tslint
eg2
1.0.40

Angular2
joh
6.3.0

team
ms-
1.142.0

debugger-for-chrome
msj
4.10.2

nativescript
Tel
0.8.3

markdown-all-in-one
yzh
1.7.0

@richardscholten73 can you please detail what you do mean with
"push my commits to the remote" compared to "When i do a regular push with the command"?

/needsMoreInfo

@richardscholten73 can you please detail what you do mean with
"push my commits to the remote" compared to "When i do a regular push with the command"?

By this i mean that when i push my commits with visual studio code by pressing the up down arrows on the lower left of the screen. This is directly right from the current branch name. If there is nothing to sync the button does not show up or down arrows but a "recycle" icon.
When i do a regular "git push" with git in a console/command window, it works as expected (the new branch is created at the remote)

Can you show me what Git: Show Git Output shows when running the sync action?


Define "all good" response to client

The "All Good" response needs a minimal spec, and the server should just close the connection on any error.

I don't want to make it exactly the same as the request.. @nickfrostatx what do you think for format?

The client has to prove its identity, and therefore uses a 256-bit shared secret with an HMAC.
The server, on the other hand, has already proven its identity through TLS with a pinned cert.  Since TLS gets us all the security we need, sending back the byte 0x00 should be good enough, right?

Yep, should do the trick. Let's send 0xFF just for some flavor.
On Thu, Jun 2, 2016, 7:45 PM Nick Frost<EMAIL_ADDRESS>wrote:

The client has to prove its identity, and therefore uses a 256-bit shared
secret with an HMAC.
The server, on the other hand, has already proven its identity through TLS
with a pinned cert. Since TLS gets us all the security we need, sending
back the byte 0x00 should be good enough, right?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/WhiteHatCP/seclab-listener/issues/1#issuecomment-223477781,
or mute the thread
https://github.com/notifications/unsubscribe/AFOJXzT_5utB4PfAI0al24UtyyNSOvQrks5qH5VFgaJpZM4ItJ0k
.

--
Max Zinkus


autoprefixer - customize browser list

How to customize the autorpefixer browser list?
tryed adding list to package.json
tryed adding .browserlistrc file. No differences.
Good article https://evilmartians.com/chronicles/autoprefixer-7-browserslist-2-released

Ok, I got the point https://github.com/facebookincubator/create-react-app/issues/99

@FDiskas See PR #2358


How to use ReactiveUI Command in MvvmCross WPF?

I'm in favor of command binding in ReactiveUI and want to integrate into my current project, which based on MvvmCross.
I've followed the tutorial from Data Binding - WPF. I just modify View with IViewFor, but not ReactiveObject VIewModel because it inherits MvvmCross object.
Things working fine when I just bind command with basic set - Like ReactiveCommand.Create(TestCommand).
But when I try to use one of the favorable feature, can execute (Create(command, canExecute), it doesn't work :(
It seems ViewModel = new TheViewModel(); in the tutorial just create another ViewModel instance for interaction. And any property change in my MvvmCross does not reflect to the ViewModel created in View.
So how to properly use ReactiveUI Command in MvvmCross WPF?

Hi there,
We request that you ask these sorts questions on either StackOverflow or on our slack channel to make them more discoverable to others.
Issues we restrict to just bug reports/feature requests.
Thanks.


Remove dependency on dill

Implements #63 by removing the need to serialize a lambda function and instead serializes the arguments the lambda function would need if it was called.

Hey @mopatches,
I'll go ahead and merge this for the upcoming v0.1b3 release, but as a reminder the entire fitters.py module will be removed when this library is out of beta.

Glad to hear that! Thank you @ColtAllen!


Create CESM simulation similar to NoahMP (with wet vs. dry soil moisture)

Based on discussion during December's ESPAT S2S Meeting, the goal is to conduct simulations similar to those presented by @CharlesZheZhang. Two soil moisture initial conditions were tested - one with 0.25 * saturation, and one with 0.75 * saturation threshold (which varies depending on soil type). @sglanvil and @megandevlan will work together to determine how to define a similar wet/dry soil moisture condition in CLM/CESM.
Simulation details from Noah-MP:

2021 summer, starting June 1st (covers the PNW heatwave case that @huili77 is also looking at)
Initial condition is GFS (though it could be updated to ERA5)
Single ensemble member to start
Assesses model temperature through simulation evolution, and look at terrestrial and atmospheric legs of the coupling index.

@sglanvil - do you think we should use ERA5 atmospheric initial conditions for this? Would that require re-running the land spin up with ERA5 forcing?
I wonder how hard it would be to use a fraction of saturation threshold like Zhe's done. I was looking around on the CESM forum and came across this post, which might be useful. Or there might be a way to modify the source code (I think the target script is SoilHydrologyMod.F90, but could confirm).
@CharlesZheZhang, for your experiments did you prescribe soil moisture to be 0.25 or 0.75 * saturation for the entire run (i.e., keep soil moisture fixed) or did you just initialize it that way and let the model then evolve its soil moisture?

Hi Meg, here is how I modified the initial soil moisture:
for each grid, it has a soil type and associated parameters for saturated soil moisture (SMCMAX) and wilting point (SMCWLT). Then I set the 0.75 and 0.25 of the parameter range (SMCMAX-SMCWLT) for all four layers in the initial files for wet and dry case. Then use these two modified initial conditions files to start my sensitivity simulations.

Short update: I'm having trouble finding the actual saturation and wilting point values in CLM for each soil type. So for a quick easy test, we'll try a run with the initial volumetric soil moisture at each level multiplied by either 0.5 or 2.

Thanks to @sglanvil for running these experiments! We're seeing some encouraging signs in that soil moisture anomalies are definitely present and seem to persist for quite some time:

Now we can start to dive in further, similar to what you've done, Zhe. A quick look at global mean land temperature (2 m) does show a bit of a spin up period as well, so that's a reassuring similarity to start.


Port For Jetbrains/Android Studio/Xcode

This would be a duplicate of this issue in regards to the JetBrains/Android Studio part: https://github.com/daltonmenezes/aura-theme/issues/9
Xcode should be a separate issue imo.


feat: complete re-design, responsive UI & dark mode

Closes #12
Closes #14
These designs are still a moving target but I've more or less settled with this layout:

I really like that you're adding in a toggle for "Auto Scroll"!  The current version of Hollama's auto scroll is problematic if you try scrolling up while the LLM is still generating text.  It also looks like you've added support for multiple knowledges/contexts (based on the screenshots above), so maybe #73 is unnecessary?

@raychz thanks!
The screenshots I included include a bunch of long-term plans, I'm not planning on this PR implementing a big chunk of it.
Here's a demo of the PR so far if you want to test-drive it: https://ui-redesign.hollama.pages.dev/settings
Colors are not final and it's only partially responsive.

I really like that you're adding in a toggle for "Auto Scroll"! The current version of Hollama's auto scroll is problematic if you try scrolling up while the LLM is still generating text.

Yeah, it's a bit broken. I essentially want it to be the behavior to be more predictable, more or less like Claude/ChatGPT #13

It also looks like you've added support for multiple knowledges/contexts (based on the screenshots above), so maybe https://github.com/fmaclen/hollama/issues/73 is unnecessary?

No, it is necessary! 💯
I won't be implementing that feature in this PR. I haven't had time to go through your suggestion in detail yet but I originally envisioned Knowledge as a collection of "knowledges" rather than a single document.

On another note, it'd be great to add in a "Moon" icon button to the menu that will toggle dark/light mode.

Yup, you can see that in the demo linked above. I added it on the sidebar for now but I think it should look different than the other buttons. I'll likely add a separate issue for that.

:tada: This PR is included in version 0.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


when payload is array.

if msg.payload is array then send osc with array.
ex.
if
msg.payload = [0, 1, 2];
msg.topic = "/foo";
then
OSC message is [/foo 0 1 2]

Thanks.
Not tested this; trusting you that it works!


YouTube playerVars not working

I have enabled three playerVars for the YouTube player in the config object of my player: disablekb, modestbranding, and iv_load_policy. They are all set to 1. I think that modestbranding and iv_load_policy are set default to 1 and that is why they are working, but disablekb and other properties like showinfo don't work no matter what value I give them.
I have tried using strings and other numbers, but none of them seem to change the actual values of the player. How can I change these values?

I fixed this by setting the config options in the element properties when creating the element rather than using setState to set them.


Never finished "[async] waiting for completions" state

I've noticed deoplete-jedi looping endlessly when entering insert mode.
This is not reproducible (at least easily with the same file in a new instance), but happens still in the running one:
2018-04-04 14:48:31,330 DEBUG    [15076] (deoplete.core) completion_begin: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,338 DEBUG    [15076] (deoplete.core) completion_end: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,408 DEBUG    [15076] (deoplete.core) completion_begin: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,408 DEBUG    [15077] (deoplete.child) _read: 10317 bytes
2018-04-04 14:48:31,409 DEBUG    [15077] (deoplete.child) main_loop: merge_results begin
2018-04-04 14:48:31,409 DEBUG    [15077] (deoplete.child) merged_results: begin
2018-04-04 14:48:31,418 DEBUG    [15076] (deoplete.core) completion_end: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,419 DEBUG    [15077] (deoplete.jedi.cache) Input: "def test_rcfile_invalid_option(runner, tmpdir, covdata"
2018-04-04 14:48:31,419 DEBUG    [15077] (deoplete.jedi) Key: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars'), Refresh: True, Wait: True, Async: True
2018-04-04 14:48:31,419 DEBUG    [15077] (deoplete.jedi) [async] waiting for completions: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars')
2018-04-04 14:48:31,420 INFO     [15077] (deoplete.jedi) gather_candidates t = 9.643172ms, µ = 7.766895ms, σ = 1.145329ms)
2018-04-04 14:48:31,420 DEBUG    [15077] (deoplete.child) merged_results: end
2018-04-04 14:48:31,420 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 14:48:31,479 DEBUG    [15076] (deoplete.core) completion_begin: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,487 DEBUG    [15076] (deoplete.core) completion_end: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,553 DEBUG    [15076] (deoplete.core) completion_begin: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,553 DEBUG    [15077] (deoplete.child) _read: 10318 bytes
2018-04-04 14:48:31,554 DEBUG    [15077] (deoplete.child) main_loop: merge_results begin
2018-04-04 14:48:31,554 DEBUG    [15077] (deoplete.child) merged_results: begin
2018-04-04 14:48:31,560 DEBUG    [15077] (deoplete.jedi.cache) Input: "def test_rcfile_invalid_option(runner, tmpdir, covdata"
2018-04-04 14:48:31,560 DEBUG    [15077] (deoplete.jedi) Key: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars'), Refresh: True, Wait: True, Async: True
2018-04-04 14:48:31,560 DEBUG    [15077] (deoplete.jedi) [async] waiting for completions: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars')
2018-04-04 14:48:31,561 INFO     [15077] (deoplete.jedi) gather_candidates t = 6.149386ms, µ = 8.400082ms, σ = 1.129125ms)
2018-04-04 14:48:31,561 DEBUG    [15077] (deoplete.child) merged_results: end
2018-04-04 14:48:31,561 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 14:48:31,562 DEBUG    [15076] (deoplete.core) completion_end: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,626 DEBUG    [15076] (deoplete.core) completion_begin: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,633 DEBUG    [15076] (deoplete.core) completion_end: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,704 DEBUG    [15076] (deoplete.core) completion_begin: def test_rcfile_invalid_option(runner, tmpdir, covdata_
2018-04-04 14:48:31,705 DEBUG    [15077] (deoplete.child) _read: 10318 bytes
2018-04-04 14:48:31,705 DEBUG    [15077] (deoplete.child) main_loop: merge_results begin
2018-04-04 14:48:31,705 DEBUG    [15077] (deoplete.child) merged_results: begin
2018-04-04 14:48:31,711 DEBUG    [15077] (deoplete.jedi.cache) Input: "def test_rcfile_invalid_option(runner, tmpdir, covdata"
2018-04-04 14:48:31,711 DEBUG    [15077] (deoplete.jedi) Key: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars'), Refresh: True, Wait: True, Async: True
2018-04-04 14:48:31,712 DEBUG    [15077] (deoplete.jedi) [async] waiting for completions: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars')
2018-04-04 14:48:31,712 INFO     [15077] (deoplete.jedi) gather_candidates t = 6.005839ms, µ = 8.319851ms, σ = 1.295409ms)
2018-04-04 14:48:31,712 DEBUG    [15077] (deoplete.child) merged_results: end
2018-04-04 14:48:31,712 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 14:48:31,714 DEBUG    [15076] (deoplete.core) completion_end: def test_rcfile_invalid_option(runner, tmpdir, covdata_

From looking at the source it looks like deoplete-jedi is waiting forever for something that never gets completed:
https://github.com/zchee/deoplete-jedi/blob/a4bec4bddcf597b572180c775087f8ae19de6789/rplugin/python3/deoplete/sources/deoplete_jedi.py#L252-L254
This instance of Neovim is still running, and it appears to never do any new work.
The last work was done here:
2018-04-04 14:16:08,043 DEBUG    [15077] (deoplete.jedi.cache) Input: "import "
2018-04-04 14:16:08,043 DEBUG    [15077] (deoplete.jedi) Key: ('import~',), Refresh: True, Wait: False, Async: False
2018-04-04 14:16:08,046 INFO     [15077] (deoplete.jedi) gather_candidates t = 9.707575ms, µ = 3.647752ms, σ = 0.257331ms)
2018-04-04 14:16:08,046 DEBUG    [15077] (deoplete.jedi.worker.Thread-1) Got work
2018-04-04 14:16:08,054 DEBUG    [15077] (deoplete.child) merged_results: end
2018-04-04 14:16:08,054 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 14:16:08,141 DEBUG    [15077] (deoplete.jedi.worker.Thread-1) Completed work
2018-04-04 14:16:08,141 DEBUG    [15077] (deoplete.jedi.cache) Processed: ('import~',)
2018-04-04 14:16:09,423 DEBUG    [15077] (deoplete.child) _read: 24136 bytes
2018-04-04 14:16:09,424 DEBUG    [15077] (deoplete.child) main_loop: merge_results begin
2018-04-04 14:16:09,424 DEBUG    [15077] (deoplete.child) merged_results: begin
2018-04-04 14:16:09,436 DEBUG    [15077] (deoplete.child) merged_results: end
2018-04-04 14:16:09,436 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 14:16:10,236 DEBUG    [15077] (deoplete.child) _read: 11217 bytes
2018-04-04 14:16:10,237 DEBUG    [15077] (deoplete.child) main_loop: merge_results begin
2018-04-04 14:16:10,237 DEBUG    [15077] (deoplete.child) merged_results: begin
2018-04-04 14:16:10,250 DEBUG    [15077] (deoplete.jedi.cache) Input: "import os."
2018-04-04 14:16:10,316 DEBUG    [15077] (deoplete.jedi.cache) Loaded from file: ('os', 'package')
2018-04-04 14:16:10,316 DEBUG    [15077] (deoplete.jedi) Key: ('os', 'package'), Refresh: True, Wait: False, Async: False
2018-04-04 14:16:10,320 INFO     [15077] (deoplete.jedi) gather_candidates t = 80.074202ms, µ = 4.840071ms, σ = 2.732607ms)
2018-04-04 14:16:10,320 DEBUG    [15077] (deoplete.jedi.worker.Thread-2) Got work
2018-04-04 14:16:10,321 DEBUG    [15077] (deoplete.child) merged_results: end
2018-04-04 14:16:10,322 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 14:16:10,631 DEBUG    [15077] (deoplete.jedi.worker.Thread-2) Completed work
2018-04-04 14:16:10,631 DEBUG    [15077] (deoplete.jedi.cache) Processed: ('os', 'package')

The first work for this cache key appears to be:
2018-04-04 12:50:29,379 DEBUG    [15077] (deoplete.child) _read: 9758 bytes
2018-04-04 12:50:29,379 DEBUG    [15077] (deoplete.child) main_loop: on_event begin
2018-04-04 12:50:29,379 DEBUG    [15077] (deoplete.child) on_event: Source: file
2018-04-04 12:50:29,480 DEBUG    [15077] (deoplete.child) on_event: Source: jedi
2018-04-04 12:50:29,480 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 12:50:29,587 DEBUG    [15077] (deoplete.child) _read: 9776 bytes
2018-04-04 12:50:29,587 DEBUG    [15077] (deoplete.child) main_loop: merge_results begin
2018-04-04 12:50:29,587 DEBUG    [15077] (deoplete.child) merged_results: begin
2018-04-04 12:50:29,674 DEBUG    [15077] (deoplete.jedi.cache) Input: "def test_report"
2018-04-04 12:50:29,674 DEBUG    [15077] (deoplete.jedi) Key: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars'), Refresh: True, Wait: True, Async: False
2018-04-04 12:50:29,699 DEBUG    [15077] (deoplete.jedi.worker.Thread-1) Got work
2018-04-04 12:50:29,934 DEBUG    [15077] (deoplete.jedi) [async] deferred: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars')
2018-04-04 12:50:29,935 INFO     [15077] (deoplete.jedi) gather_candidates t = 346.108889ms, µ = 277.547811ms, σ = 369.944955ms)
2018-04-04 12:50:29,957 DEBUG    [15077] (deoplete.jedi.cache) Input: "def test_report"
2018-04-04 12:50:29,958 DEBUG    [15077] (deoplete.jedi) Key: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars'), Refresh: True, Wait: True, Async: True
2018-04-04 12:50:29,958 DEBUG    [15077] (deoplete.jedi) [async] waiting for completions: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars')
2018-04-04 12:50:29,958 INFO     [15077] (deoplete.jedi) gather_candidates t = 23.273845ms, µ = 346.211521ms, σ = 336.553305ms)
2018-04-04 12:50:29,958 DEBUG    [15077] (deoplete.child) merged_results: end
2018-04-04 12:50:29,958 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 12:50:29,959 DEBUG    [15077] (deoplete.child) _read: 10954 bytes
2018-04-04 12:50:29,959 DEBUG    [15077] (deoplete.child) main_loop: merge_results begin
2018-04-04 12:50:29,959 DEBUG    [15077] (deoplete.child) merged_results: begin
2018-04-04 12:50:29,978 DEBUG    [15077] (deoplete.jedi.cache) Input: "def test_report"
2018-04-04 12:50:29,978 DEBUG    [15077] (deoplete.jedi) Key: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars'), Refresh: True, Wait: True, Async: True
2018-04-04 12:50:29,978 DEBUG    [15077] (deoplete.jedi) [async] waiting for completions: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars')
2018-04-04 12:50:29,979 INFO     [15077] (deoplete.jedi) gather_candidates t = 18.446694ms, µ = 350.336946ms, σ = 331.375686ms)
2018-04-04 12:50:29,979 DEBUG    [15077] (deoplete.child) merged_results: end
2018-04-04 12:50:29,979 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 12:50:30,025 DEBUG    [15077] (deoplete.child) _read: 10390 bytes
2018-04-04 12:50:30,025 DEBUG    [15077] (deoplete.child) main_loop: merge_results begin
2018-04-04 12:50:30,025 DEBUG    [15077] (deoplete.child) merged_results: begin
2018-04-04 12:50:30,037 DEBUG    [15077] (deoplete.jedi.cache) Input: "def test_report"
2018-04-04 12:50:30,038 DEBUG    [15077] (deoplete.jedi) Key: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars'), Refresh: True, Wait: True, Async: True
2018-04-04 12:50:30,038 DEBUG    [15077] (deoplete.jedi) [async] waiting for completions: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars')
2018-04-04 12:50:30,038 INFO     [15077] (deoplete.jedi) gather_candidates t = 11.791665ms, µ = 316.964450ms, σ = 359.370191ms)
2018-04-04 12:50:30,039 DEBUG    [15077] (deoplete.child) merged_results: end
2018-04-04 12:50:30,039 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 12:50:30,151 DEBUG    [15077] (deoplete.child) _read: 10392 bytes
2018-04-04 12:50:30,151 DEBUG    [15077] (deoplete.child) main_loop: merge_results begin
2018-04-04 12:50:30,151 DEBUG    [15077] (deoplete.child) merged_results: begin
2018-04-04 12:50:30,179 DEBUG    [15077] (deoplete.jedi.cache) Input: "def test_report"
2018-04-04 12:50:30,180 DEBUG    [15077] (deoplete.jedi) Key: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars'), Refresh: True, Wait: True, Async: True
2018-04-04 12:50:30,180 DEBUG    [15077] (deoplete.jedi) [async] waiting for completions: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars')
2018-04-04 12:50:30,180 INFO     [15077] (deoplete.jedi) gather_candidates t = 27.110541ms, µ = 259.931183ms, σ = 385.049977ms)
2018-04-04 12:50:30,180 DEBUG    [15077] (deoplete.child) merged_results: end
2018-04-04 12:50:30,181 DEBUG    [15077] (deoplete.child) main_loop: end
2018-04-04 12:50:30,768 DEBUG    [15077] (deoplete.jedi.worker.Thread-1) Completed work
2018-04-04 12:50:30,768 DEBUG    [15077] (deoplete.jedi.cache) Processed: ('0f163fb5da12c5fe2e39f4a1665149e1', ('test_cli',), 'vars')

I might do more investigation later, but wanted to file this already.
deoplete-jedi a4bec4b (likely).

I'm seeing the same issue and unfortunately I can't reproduce it reliably either.


Add docs for using mocks in TypeScript

Related to #10399.

Summary
I thought it might be useful to add some documentation to go alongside the updated TypeScript examples in #10399. I find there is a general lack of knowledge when it comes to using writing tests with TypeScript and leveraging types for better tests.
Test plan

I've moved the TypeScript docs into the Mock Functions API page.

These techniques are solid.  👍🏻
Other cases which I found in my current codebase, full module mocking:
jest.mock("./accounts")

import * as accounts from "./accounts"
const accountsMock = accounts as jest.Mocked<typeof accounts>

and maybe not worth the mention, but ts-jest also does includes some types:
jest.mock("../db/accounts", () => ({
  getKISSAccount: jest.fn(),
  updateAccount: jest.fn(),
}))

import { mocked } from "ts-jest/utils"

mocked(getKISSAccount).mockImplementation(async id => {
    expect(id).toEqual("ace-frehley-account-id")
    return account
})

Which @alloy seems to prefer

Yeah I used to do the same as this PR and @orta suggest, but I recently found this ts-jest util and quite like it. It also allows you to deeply mock the types.
https://github.com/kulshekhar/ts-jest/blob/master/docs/user/test-helpers.md

Other cases which I found in my current codebase, full module mocking:
jest.mock("./accounts")

import * as accounts from "./accounts"
const accountsMock = accounts as jest.Mocked<typeof accounts>

I've had mixed success with this one, but, yes we should get that added in too. It was probably my bad types making it fail 😄

Yeah I used to do the same as this PR and @orta suggest, but I recently found this ts-jest util and quite like it. It also allows you to deeply mock the types.
https://github.com/kulshekhar/ts-jest/blob/master/docs/user/test-helpers.md

That looks cool. I'm definitely going to check that out. Thanks!

OK, I think I've updated the versioned docs properly. I did check the different versions and all seemed good 😅


Add CI for format/lint

Hi, I want to add some CI to the codebase to check the code style and do some static analyze. I plan to use ruff , it will bring these benefits:

The code style of the current repository is inconsistent and difficult to read, formatting can alleviate this. I will also appropriately modify the format config file based on the current code to make minimal changes.
avoid some minor issues, such as duplicate keys in a dictionary
Optimize the experience for other contributors, for example (if you use vscode and have installed the plugin, and sometimes you press ctrl-c, auto-save will automatically format the code, which is quite annoying)

Is any suggestions or comments?

for example thinks like these: https://github.com/riscv-non-isa/riscv-arch-test/pull/528

Thats a good suggestion @trdthg . Do you need any resources from our side to add changes in the CI, or will you update it yourself? If you are going to update it, then do add a PR, we will review it together and merge it.

Thank you, I'll send a PR later


Error during backward if groups are created with wrong data shapes

Hi, thanks for creating this wonderful library!❤ However, I ran into the following bug when using it with torch.autograd.
For example, if I try to find the Jacobian w.r.t. a group parameter:
x = LieGroupParameter(SE3.Identity(1))
p = torch.ones(1000, 3)

def func1(x_, p_):
    # have to wrap with lietorch.SE3 because arguments are passed as tensors
    return SE3(x_).act(p_).sum()

# throws error: double free or corruption (!prev)
print(torch.autograd.functional.jacobian(func1, (x, p)))

The problem seems to be that during the preprocessing stage of torch.autograd, it clones the input data, but for LieGroupParameter, this only retrieves the tangent space data. Somehow the forward function was happy with those 1-dim-less inputs and didn't throw an error until the backward call. The same error appears if I do:
SE3(torch.zeros(1, 6, requires_grad=True)).act(torch.ones(1000, 3)).sum().backward() #double free or corruption (!prev)

It would be nice if you can help look into the above error. Also, it's probably a good idea for LieGroup.__init__ or the op implementations to have some sanity check on the input dimensions so that it catches the problem earlier. Otherwise, thank you for your hard work!😃

PS_:  For my hypothetical use case above, I was able to workaround by:
def func2(x_, p_):
    return SE3.Identity(x_.shape[:-1]).retr(x_).act(p_).sum()

print(torch.autograd.functional.jacobian(func2, (x, p)))

Output:
(tensor([[1000., 1000., 1000.,    0.,    0.,    0.]]), tensor([[1., 1., 1.],
        [1., 1., 1.],
        [1., 1., 1.],
        ...,
        [1., 1., 1.],
        [1., 1., 1.],
        [1., 1., 1.]]))


Extend timeout to 5 minutes

AWS still taking more time to delete some stacks in our project, So we would like to extend the timeout to a maximum 5 minutes.

Coverage remained the same at 90.476% when pulling 3eff6b1d0cc0212a12a07888080004a01194ee4d on kabdelrahman:extend-timeout into b965b53915d8cefcf31c8dc459584f73d9a1b107 on zalando:master.

👍

@rafaelcaricio @jmcs can I have your 👍 ?

👍

:+1:

@rafaelcaricio can you merge ?

@kabdelrahman FYI, I don't work at Zalando anymore. ;)

@rafaelcaricio Oh i didn't know that, thanks for info.


I have fixed some bugs for oracle inserts under rails 3.1

Please consider their relevance and integrate them or their basic ideas.
muzzlewalsh

there are more issues, will hold off until a more stable fix is available


Optimized Levenshtein distance algorithm and added unit tests.

Replaced the recursive implementation with iterative, utilizing the memoization technique.

Amazing! Thanks for the PR!


Add Dependabot

I would like to request the addition of Dependabot to the repository for automated dependency updates.
Dependabot is a valuable tool that helps keep our project dependencies up to date and secure.
Could this issue be assigned to me under GSSoC'23?

Do I want to work on this:

[x]  Yes
[ ] No

Hey @VSatwika, here, there are no available frontend or backend projects, so adding Dependabot doesn't make any sense

Already Added. Not Needed


Fix text.rich to merge widget span

fixes https://github.com/flutter/flutter/issues/111931
This pr let text widget to use child semanticsconfigurations delegate API to add synthetic semantics configurations to be merge up.
Pre-launch Checklist

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] I read the Tree Hygiene wiki page, which explains my responsibilities.
[ ] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I signed the CLA.
[ ] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making, or this PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

This is ready for another look.
I can't find a good way to complete replace assembleSemanticsNode in RenderParahraph because, there isn't a good way to generate semantics node from synthetic SemanticsConfiguration with two reasons.

Semantics node is cached in RenderObject._semantics. This is important because we want to reuse semantics id as much as possible. This becomes tricky now the semantics node generated from synthetic SemanticsConfiguration need to be have a stable id somehow
Needs to figure out a way to set the semantics node rect and transform. Regular semantics node gets its geometry from renderobject directly. The synthetic SemanticsConfiguration need to process these information somehow.

(triage fly by:) Looks like checks are failing on this one.

internal test failure blocked on https://github.com/flutter/flutter/pull/120996


make PWA

implement PWA with functions, like installation (manifest) caching (by routing) and notification (web-worker)

made PWA with webmanifest, App can be installed and caches well


feat: ExpressJS Support

Created createExpressRouter
Added express entrypoint to uploadthing package
Adjusted build options for shared and mime-types packages to fix the error
Explicitly setting Content-Type on request to ensure that Express will parse body properly
Scaffolded example of Express + React
Added docs

@markflorkowski Please take a look once you have time. I have two concerns:

Doc structure. I made section with sub-section: Backend Adapters -> Express. I'm planning on adding adapters for other backend libs like Fastify, so thought that storing relevant topics under single sup-topic makes sense
Requirement to register json middleware so that body is parsed properly. Would you prefer UT handling such thing? As far as I know trpc is able to parse the body on it's own. Though not sure if we want to introduce so much functionality to UT. I guess json middleware is common thing among Express-based apps

I'm planning on adding adapters for other backend libs like Fastify, so thought that storing relevant topics under single sup-topic makes sense

Agreed. You can put another subsection "coming soon" if you feel like the nesting is weird with only the one sub-subsection, but I don't think it is a big deal.

Requirement to register json middleware so that body is parsed properly....

bodyParser has caused me so much headache in the past. I think it is best to not rely on the user registering another middleware if possible. I believe that TRPC accomplishes this by checking for req.body -- meaning that it has already been parsed, and if it is not there parsing on their own.

@markflorkowski Implemented body parsing similar to one that is being used in TRPC with little tweaks in terms of error handling and parsing string into JSON straight away

I reverted changes to pnpm-workspace.yaml back because it caused issue during pnpm lint command. I didn't spend any time figuring out it's nature, decided to just go with the option that works accurately

I reverted changes to pnpm-workspace.yaml back...

I'll look into this 👍 would like to avoid hardcoded paths whenever possible.

@markflorkowski @juliusmarminge made some improvements. Didn't touch docs much since it require major overhaul in overall. Renamed express function to createUploadthingExpressHandler
Could not make npm workspaces work properly, decided to go with pnpm workspaces, but simply limited nesting to single level

Didn't touch docs much since it requires major overhaul in overall from what I understood

Yea I'll try and get to that early next week

@Mr0Bread can you please share what the following steps mean -

Adjusted build options for shared and mime-types packages to fix the error
Explicitly setting Content-Type on request to ensure that Express will parse body properly

I cannot find the above things in the docs. Am getting INVALID_CONTENT_TYPE error in postman. I think your steps might fix this for me

@Mr0Bread can you please share what the following steps mean -

Adjusted build options for shared and mime-types packages to fix the error
Explicitly setting Content-Type on request to ensure that Express will parse body properly

I cannot find the above things in the docs. Am getting INVALID_CONTENT_TYPE error in postman. I think your steps might fix this for me

@vin4raiz Those are referring to changes in the client code, which would have no effect on your experience with Postman.
Please open an issue rather than replying on an old closed PR. Include a repro if possible so that we are able to better help you.


py.toml changes are breaking faas commands

cd /home/travis/build/alphachai/boto3-fixtures/dummy_lambda/dist && zip build.zip pyproject.toml

	zip warning: name not matched: pyproject.toml

zip error: Nothing to do! (build.zip)

/home/travis/build/alphachai/boto3-fixtures/build-harness/modules/faas/Makefile:38: recipe for target 'faas/build/python/zip' failed

make[1]: *** [faas/build/python/zip] Error 12

Lack of a pyproject.toml breaks faas/build/python/zip.

@aspage2

What should the expected behavior here be? Initial thought would be to swallow the error and just create build.zip without a pyproject.toml:
cd $(FAAS_BUILD_DIST) && (zip build.zip pyproject.toml || true)

Yeah, I think that would work 👍


Get resource usage of pods & nodes (Stackoverflow + Bounty)

I am struggling to fetch the current resource usage from pods & nodes. I created a Stackoverflow post and proposed a bounty, however I believe I couldn't target enough people who are familiar with Go and the Kubernetes architecture. If someone could enlighten me how to fetch the node & pod metrics I'd highly appreciate it:
https://stackoverflow.com/questions/52763291/get-current-resource-usage-of-a-pod-in-kubernetes-with-go-client

I have posted an answer have a look


stat: too many open files

when files in /proc/* is locked by the system. Needs retrial logic.

Fixed by https://github.com/gyuho/psn/commit/2872bd2ddbe88651405cdbf06d17a85a8411b19b and https://github.com/gyuho/psn/pull/13.


Coverity 1521490: resource leak

Note: 3.1 and before do not require this fix.

[ ] documentation is added or updated
[ ] tests are added or updated

Merged, thanks.


[BUILDER] Implement Builder API consumer

Closes #2415

This PR:
Draft waiting for some changes in hs-builder-api

Implements a BuilderClient able to communicate with builders through hs-builder-api
Adds a dummy builder, which "builds" empty blocks and adds a test to run BuilderClient against it

This PR does not:

Implement more sophisticated HotShot-internal builders (which we do want to do later)
Integrate the builder client into HotShot

Key places to review:
crates/task-impls/src/builder.rs
crates/testing/src/block_builder.rs
crates/testing/tests/block_builder.rs

I am not sure whether it is right time to include the recent changes introduced in api responses structure here: https://github.com/EspressoSystems/hs-builder-api/pull/14. @nyospe
If you want to do some development based on these recent changes, please use branch https://github.com/EspressoSystems/hs-builder-api/tree/builder_specific_information for it.
FYI, I have included these changes in the builder side.

I am not sure whether it is right time to include the recent changes introduced in api responses structure here: EspressoSystems/hs-builder-api#14. @nyospe
If you want to do some development based on these recent changes, please use branch https://github.com/EspressoSystems/hs-builder-api/tree/builder_specific_information for it.
FYI, I have included these changes in the builder side.

The changes has been merged in main. So, no need to point the a branch now.

@bfish713 should be ready for merge now


use node 22 instead of node 16

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Node 16 is out of support. We should use Node 22. https://endoflife.date/nodejs
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

NONE

/assign @akram

/lgtm
/approve
@mbobrovskyi is this something we could use Dependabot for?


min object size

Whats the min bounding box size the model can detect and that i can use to train?
Thanks!

@natxopedreira Its going to depend upon you anchors. For the default retinanet anchors you can check this discussion :
https://github.com/fizyr/keras-retinanet/issues/202

Thank you!! so i see 32x32 and if small scale images a bit up
I will try


Bug in poi categories on the site

Description
Starting with the "routes" category, there has been a shift between icons and category names.

Steps to reproduce
Open the list of categories on the site.
Actual result
The current state is shown in the screenshot above.
Expected result
The category name must match the icon.
Your Environment (required)
WARNING Crash-Logs MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!
OsmAnd Version:
Android/iOS version:
Device model:
Crash-Logs: ?

Already available

Thanks.


Add Andorid demo for TTS

refer to: https://github.com/PaddlePaddle/Paddle-Lite-Demo

fixed by https://github.com/PaddlePaddle/PaddleSpeech/pull/2703


[dtls] fix allocation and deallocation of ssl cookies.

Cookies were being freed on the client when they were never allocated,
causing a hard fault.

@mnp222, thanks for identifying this issue and working to resolve it!

Thank you @wgtdkp and @jwhui for the help in finding the best fix!  I'm impressed with your thoroughness and speedy responses.


Carousel with virtual pages

It's more like a question but I wonder if, judging how the carousel works internally, you could suggest something. Let's suppose a carousel of virtual pages. Virtual in the sense that I'm unable to give you a list up front containing all items. However, at any time, I can provide the current page and I can answer whether there is a previous and a next page. And if there is, I can provide that previous or next page any time. But I don't know how many pages there are and I don't want (or can't) fill a complete ItemsSource with them at the beginning. Do you think something like that could be accommodated somehow? And if so, is this something you should consider worth doing?

Hi) haha, I removed this feature in one of the past releases )
Because, thought, that nobody needs it.
Ok, you may create observable collection of your binding contexts (3 items)
And after every swipe remove redundant item and add new one

Now, that's a nice idea. I'll try that but I have a few other hurdles now before that. XF is so enamored of MVVM that it's awfully hard to do things that are not as clear cut as the MVVM crowd thinks... :-)

Let me know if you have any troubles


Do you have sails 0.10.5 sourcecode packages ?

amazing work!
i need sails 0.10.5 sourcecode packages, do you have it? or where i can got ?
because i have error install sails
"
npm ERR! error installing<EMAIL_ADDRESS>Error: No compatible version found<EMAIL_ADDRESS><0.11.0-'
npm ERR! error installing<EMAIL_ADDRESS>Valid install targets:
npm ERR! error installing<EMAIL_ADDRESS>["0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.6.7","0.6.8","0.6.9","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.9.0","0.9.1","0.9.2"]
"
sorry,my english is not good , please

<EMAIL_ADDRESS>
First, 0.8.895 is not a version. That's why npm is complaining. Just run npm install sails and it will install the latest version.

@tanchun npm install<EMAIL_ADDRESS>加油


IndexError: The shape of the mask [384, 19] at index 0 does not match the shape of the indexed tensor [9216, 19] at index 0

Hi,
When I run the segmentation_training_transf.py, there is an error: IndexError: The shape of the mask [384, 19] at index 0 does not match the shape of the indexed tensor [9216, 19] at index 0：

The shape of the mask is [16,24,19].Is there a problem with the mask shape?

Hi @CChBen,
For semantic segmentation the role of the mask is to zero-out the effect of some spatial locations from the loss function and performance metrics. Possible such locations could be ones that contain a class we are not interested in predicting or a location we suspect might have a noisy label.
To do this we need a 2D mask. Assuming your batch size is 16 and you are using size 24x24 samples, the mask should have dimensions 16x24x24 straight out of the dataloader. The loss function further reshapes the mask to 16*24*24x1 and repeats it over the last dimension equal to the number of classes (assume 19) to size 16*24*24x19 (that should have been the mask size instead of 16*24x19) that is used to select logits only from the locations of interest. My guess is that at some point a spatial dimension in either the mask or labels has collapsed.

Hey, I met the same problem when running the code, and fix this issue by the following modification in https://github.com/michaeltrs/DeepSatModels/blob/abad503d1143401a573f5e1bf8c972bc9dadea49/data/PASTIS24/data_transforms.py#L65
to
tensor_sample['labels'] = torch.tensor(sample['labels'].astype(np.float32)).to(torch.float32)

Hope it helps.

@June01, @CChBen did you get this error using the PASTIS24 data?

Hi @michaeltrs , yes. I think it is nicer to be fixed in your original repo.

Thanks @June01 !
Can you provide some extra details to help me understand what the issue is because I can't directly replicate the error using PASTIS24.
Did you get the error from the first sample or does it occur at some point during training?
Also, could you please check what is the PASTIS24 sample['labels'] size just by reading the file w/o transforms?
spath = '**/*.pickle'   # path to a .pickle file in PASTIS24
with open(spath, 'rb') as handle:
    sample = pickle.load(handle, encoding='latin1')
    print(sample['labels'].shape)

It should be 3x24x24.

Thanks @June01 !
Can you provide some extra details to help me understand what the issue is because I can't directly replicate the error using PASTIS24.
Did you get the error from the first sample or does it occur at some point during training?
Also, could you please check what is the PASTIS24 sample['labels'] size just by reading the file w/o transforms?
spath = '**/*.pickle'   # path to a .pickle file in PASTIS24
with open(spath, 'rb') as handle:
    sample = pickle.load(handle, encoding='latin1')
    print(sample['labels'].shape)

It should be 3x24x24.

Hi @michaeltrs ,my output shape is also (24,24) and my python version is 3.10.6.


bug: Task not created after click CreateTask

expected
After all steps in create task dialog done, click CreateTask button, the dialog should be closed and the task should be added in task list.
got

Task dialog not closed
Task not added in the list

closed by #148


Standardize on in-service error reporting

Currently, for twolfson.com we have a free plan for Rollbar. Unfortunately, it isn't too great and we should really standardize on a product. We should explore/consider self-hosting Sentry which would have reduced costs and be a nice thing to have.

We moved from Rollbar to hosted Sentry a while ago, Oct 2016 it seems https://github.com/twolfson/twolfson.com/blame/55909a5bc56689e7f379fc5aa53d45424efd24ac/CHANGELOG.md#L78


Question: Possible to save a reference (or class type) in a model?

Hello!
I'm trying to build a log behavior. The behavior should simply log which user changed (inserted, deleted, updated) a model with the behavior attached to it.
Here is my model for the tracked actions (the log).
TrackedActionClass = Astro.Class.create({
  name: 'TrackedAction',
  collection: Collections.TrackedActions,
  secured: false,
  fields: {
    type: {
      type: String
    },
    changes: {
      type: Object,
      optional: true
    },
    date: {
      type: Date
    },
    docID: {
      type: Mongo.ObjectID
    },
    userID: {
      type: Mongo.ObjectID
    },
    originClass: {
      type: Object
    },
    userName: {
      type: String
    }
  },
  behaviors: ['ownedCollection']
});

It is working like a charm, but I also want to save a reference to the class to retrieve the changed document later on (because I will use the behavior on many different models).
Is there any good and easy solution for this?

I'm not sure that you mean by "reference to the class" but I guess that you want to get the class/constructor of a document instance and store it somehow in a database. If it's what you want to do, then I have a solution for that. You can get the class name and store it as a string, and later you can just get a class/constructor using this class name.
var trackedAction = new TrackedActionClass();
var className = trackedAction.constructor.getName();

And later the way of getting class/constructor using class name
import { Class } from 'meteor/jagi:astronomy';
var AstroClass = Class.get(className);
var doc = new AstroClass();

Is this what you want to do?

That was exactly what I wanted to do. Thank you very much.


Update Meeting schema

Check with FE if they have a form made for meetings and either match that or the schema specified in attached spreadsheet.

BL-586 created


feat(sanityImage): make _type optional

Hello 🏄♂!
I made this change on the back of a discussion on  #83.
Basically when working with a dataset from Sanity, I ran into issues with a missing _type field on the Image>Dimension property.
This made me think that others might run into it and that this field is not essential, so could be considered optional.

Done!


Taking LLM class specification outside the code

The current Completion call seems hardcoded to OpenAI, as seen in autogen/oai/completion.py
Is it possible to take the instantiation of llm obj outside and drive that via config? So, not just model names, but even LLM class names, such as ChatOpenAI, or it can even be ChatVertexAI also.
Meaning specify, LLM class name also in the config which will then be instantiated inside the code for completion call.
With this arrangement, you will open up AutoGen to a far wider audience. People can use LangChain LLM models class names or any other local custom LLM classes, which can create compatible (abiding to some protocol/interface) llm objects.
Basically can you make it easier to use any LLM class via config setting?

Passing it via the config would still be limited. It would be better to allow to pass an LLM class as a parameter. Then the user could inherit from that LLM class and inject it into the agents.

#95 made an effort to extend to LLMs incompatible with OpenAI API.
The same approach can be used to extend to other LLM providers.

Got it, thanks @sonichi . My intention was, rather than keep-supporting any new LLM comes on the scene, why not take LLM object creation call outside of the framework? That LLM object needs to support certain interface. With this arrangement, anyone with some private LLM class, can also use AutoGen [@Nivek92 ]

Really interesting question: What's the most generic interface for the LLM inference? I'm betting on OpenAI's API because it's currently the leader. How would this evolve? I don't know.
If there is a more widely recognized abstraction for LLM inference than OpenAI's API, I'll be curious to learn about it.

@sonichi whichever functions AutoGen is currently calling on the ChatOpenAI object, if they are supported by any other LLM object, that should be sufficient, right?

What's the interface for "LLM object"?

Currently, in autogen/autogen/oai
/completion.py
OpenAI LLM is instantiated at around line 195
        openai_completion = (
            openai.ChatCompletion
            if config["model"].replace("gpt-35-turbo", "gpt-3.5-turbo") in cls.chat_models
            or issubclass(cls, ChatCompletion)
            else openai.Completion
        )

Then it is used to generate reponse at around line 207
                if "request_timeout" in config:
                    response = openai_completion.create(**config)
                else:
                    response = openai_completion.create(request_timeout=request_timeout, **config)

So, I think, if we take instantiation outside of autogen so that any suitable LLM object can be passed, and then it has to have the create method callable on it, right? thats the interface function for now. Is that correct or am I missing something? @sonichi

I see what you mean. That's a good idea. :)


new timing loops take 2

rebase of #26
I've kept the method names but we probably want to change them to something more meaningful before landing this.
I've also changed the documentation, hopefully is more useful this time.
cc @faern

@faern Any suggestions about changing the methods' names?

@japaric You mean for the iter-methods? No I think they are quite descriptive.


Library not loaded @rpath/LazyPDFKit.framework/LazyPDFKit

I have tried  LazyKitPDF framework demo app , i am getting the below error message
dyld: Library not loaded: @rpath/LazyPDFKit.framework/LazyPDFKit
Referenced from: /Users/Karthi-mac/Library/Developer/CoreSimulator/Devices/B086D443-2D7E-480B-8D3F-5D18A8626D94/data/Containers/Bundle/Application/63083D2D-4514-495A-8222-DB839626CD0C/testpoc.app/testpoc
Reason: image not found
I tried on remove and add framework folder in source directory and also in build phase.
I also checked on framework search path in build setting but i am getting the same issue.
I cleared derived data,run clean project in build phase nothing helps to me resolve the issue.
Please help me to fix the issue.

this issue is related to #5 . Please find the solution here #5

issues fixed thanks.


Not finding pokestops!

Can't find eny pokestops!

I think they'd prefer that you fill in the issue template


scalelite aws bigbluebutton setup problem

First of all thank you very much for this usefull app. i wonder that can i install it scalelite bbb system? if yes how?
Because you know that in scalelite bbb scalelite ec2 copies all presentation to itself. So where should i install this app bbbstack or scalelite stack? i confused.

@nzmhtpgl  Yes you can install bbb-mp4 in scalelite but its a bit tricky. You have to create a new folder in /mnt/scalelite-recordings/var/bigbluebutton/. Then you can install bbb-mp4 on bbb server as usual and change .env COPY_TO_LOCATION to the folder you just created also you have to mount this  folder to nginx container if using scalelite docker setup and create location derivative for nginx . Rename default playback.html to playback_default.html and create new  playback.html .Thats it this is how we are using bbb-mp4 with scalelite.

Closing as no response from the user


Webpack doesn't emit scss import changes when using the cache

I have an scss file that looks like this:
#app.scss
@import 'file1'

When modifying the file1.scss, the changes are not emitted. However, if I change app.scss, it works fine.
My webpack.config.js looks like this:
module.exports = {
    module: {
      rules: [
        {
          test: /\.s?css$/,
          use: ExtractTextPlugin.extract({
            fallback: 'style-loader',
            use: 'happypack/loader?id=css'
          })
        }
      ]
    },

    plugins: [
      new ExtractTextPlugin({
        filename: cssOutputTemplate
      }),

      new HappyPack({
        id: 'css',
        loaders: ['css-loader', 'sass-loader', 'import-glob-loader'],
        threadPool: happyThreadPool
      })
    ]
 }

I believe there are some issues with nested imports, but I can't find a workaround. I don't want to disable HappyPack on sass files because there are a lot of them.
Any ideas ?

Not at the moment. I've been hearing similar reports surfacing after webpack2 but with different loaders so it looks like we need to look into this.
You can turn off the cache for now. Or does that not help either?

That bug persists even when the cache is turned off. We decided to not use Webpack after all. Webpack 2 doesn't seem that stable with all the loaders inconsistencies and lacks a robust caching system (like Rails' Asset Pipeline) which makes working on large applications really frustrating.
Thank you for the amazing work.

FWIW, you're probably better off with either of the following approaches:

not to use ExtractText in development builds, only in production ones
not to use webpack for anything that is not JS. This is what we do at work, we still use the sass binary for compiling scss and it's just fine really.

The bug goes away for us when we turn the cache off for scss and css.. But it's definitely not picking up changes in imported scripts when the cache is turned on.
FWIW: We're even using a md5File.sync from md5-file as a custom cacheSignatureGenerator and it's still not picking up changes.

In the light of the change in v4 that drops caching from happypack, this ticket is no longer applicable so I'll be closing it. Please feel free to re-open if the issue persists (i.e. it's not related to caching.)

@amireh caching has been removed from happypack?  Do you have a link to any discussion as to why?  Very sad to hear this :-(

There has been no discussion really - I just don't have the capacity to maintain it. The main concern of this library is to utilize multiple processes in the application of loaders, and it's good at doing that. Caching wasn't my intent but seeing how it was an "easy win", it was introduced.
However, the feature was never complete since there was no support for caching non-file system side-effects (like calls to emitWarning and emitError as could be done by linting loaders like ts-loader and eslint-loader). And working within a large team, I've come to shy away from all forms of caching since it requires people to know about the build pipeline (e.g. to rm .happypack/ when we introduce cache breaking changes that couldn't be identified by the plugin) and I want the process to be transparent to colleagues.
Having said that, I was hoping that someone else would take the lead in developing a proper caching layer for webpack, and thankfully that is being realized by projects like the hard-source plugin and the new cache-loader. Hopefully in time we can use those solutions in place of what happypack used to provide, and leave happypack to do what it set out to do.
I hope that answers it!

Cool.. thanks for the explaination @amireh ... just sucks.. just last month I did a bunch of work to make CircleCi backup and restore happypack cache files for each build in jFrog's Artifactory..
Throw-away work stinks :-(

Maybe look into one of the resources I mentioned? It shouldn't be too hard to port.
I'd be interested to hear of your efforts because eventually I was going to do something like that for CI builds.

Was basically a branch-named, versioned tar.gz that I packed up after each build, and then pulled back down before the next build on a given branch.. wasn't all too complicated of a concept.. just a pain given I had to do it all in bash :-(

If i remember correctly, the hard-source plugin can write the artifacts to disk so in theory you should be able to use it for warm compilations. At least that's what I was planning to do.


Init the block store genesis state properly and cleanup handler names

Pull Request Test Coverage Report for Build 178

13 of 13 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 84.734%

Totals

Change from base Build 176:
0.2%

Covered Lines:
494

Relevant Lines:
583

💛  - Coveralls


Text color exception

As the image shows, the light theme is not compatible with the new UI, version 2022.3

I can't reproduce this bug, does this bug still persist after restarting the IDE?

Yes
| |
@.***
|
|
@.***
|
---- Replied Message ----
| From | Zihan @.> |
| Date | 07/28/2023 20:26 |
| To | @.> |
| Cc |<EMAIL_ADDRESS>|
| Subject | Re: [WhiteVermouth/XcodeTheme] Text color exception (Issue #4) |
I can't reproduce this bug, does this bug still persist after restarting the IDE?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

It seems like some modification to the color has no effect

And the version is IDEA Community 2022.3, there is a bit difference between the Community version and the Ulimate version

How did you get the IDE display the file size and date status right after the filename in project file window？


only show drag over class when drag from file system

only show drag over class when drag from file system，add method getFileItems to get file items use evt.dataTransfer.types[i] === 'Files'

It will be changed based on ng-model-options values. Someone might want to see the dragover class when dropping an image from the browser


Extend DeepSpeed inference initialization API with a 'quantize_groups' argument

This PR allows setting the number of quantization groups to be used during inference for the given model weights. Once merged, one should be able to control this number by passing the quantize_groups argument to a deepseed.init_inference call, e.g., like is done in this inference test script: https://github.com/microsoft/DeepSpeedExamples/compare/master...sakogan:DeepSpeedExamples:inference-test-enhance
(Note that the latter example will be submitted to the DeepSpeedExamples repo as a separate PR if this PR is merged.)
Setting 'quantize_groups' is allowed only when the quantization is enabled, i.e., when dtype is set to int8.

Hi @sakogan,
The changes in this PR looks good to me. May I ask that you link the PR on the example side so that I know how to use this feature?
Thanks,
Reza

thanks for the review @RezaYazdaniAminabadi. I will submit the corresponding PR into the examples repo shortly.

@RezaYazdaniAminabadi I opened a PR #713 on the examples repo that adds the corresponding argument to the inference test script

Yes. Here is an example command:
deepspeed /path/to/DeepSpeedExamples/inference/huggingface/text-generation/inference-test.py --batch_size 1 --use_kernel --use_meta_tensor --dtype int8 --model bigscience/bloom-7b1 --quantize_groups 32

Hi, dose deepspeed support int8 inference? With next command I get following error
command: deepspeed --num_gpus 1 inference-test.py --use_kernel --dtype float16 --model EleutherAI/gpt-j-6b
!!!! kernel execution error. (m: 4096, n: 3, k: 12288, error: 15)


ivy layout is broken causing jars to overwrite each other

Expected Behavior
Run ./gradlew publishIvyPublicationToIvyRepository with layout "ivy" in build.gradle. The jars should be published matching the structure below from a non-Gradle project:
$ ls ~/.ivy2/local/com.lightbend.play/play-file-watch_2.12/1.0.1-SNAPSHOT/
docs/ ivys/ jars/ poms/ srcs/
$ ls ~/.ivy2/local/com.lightbend.play/play-file-watch_2.12/1.0.1-SNAPSHOT/
docs  ivys  jars  poms  srcs
$ ls ~/.ivy2/local/com.lightbend.play/play-file-watch_2.12/1.0.1-SNAPSHOT/jars/
play-file-watch_2.12.jar  play-file-watch_2.12.jar.md5  play-file-watch_2.12.jar.sha1
$ ls ~/.ivy2/local/com.lightbend.play/play-file-watch_2.12/1.0.1-SNAPSHOT/srcs/
play-file-watch_2.12-sources.jar  play-file-watch_2.12-sources.jar.md5  play-file-watch_2.12-sources.jar.sha1
$ ls ~/.ivy2/local/com.lightbend.play/play-file-watch_2.12/1.0.1-SNAPSHOT/ivys/
ivy.xml  ivy.xml.md5  ivy.xml.sha1
$ ls ~/.ivy2/local/com.lightbend.play/play-file-watch_2.12/1.0.1-SNAPSHOT/docs/
play-file-watch_2.12-javadoc.jar  play-file-watch_2.12-javadoc.jar.md5  play-file-watch_2.12-javadoc.jar.sha1

Current Behavior
The main jar, source jar, and javadoc jar are written to the same location and overwrite each other. You can see this by adding the --info flag when publishing
Context
I'm trying to publish jars to a local ivy repo and then consume them from another project using another build tool. I can't do that because the publish fails since the jars overwrite each other
Suggested Fix

Implement [type]. See http://ant.apache.org/ivy/history/latest-milestone/concept.html#patterns and https://github.com/gradle/gradle/issues/1386
Update layout "ivy" to use [type] to produce the expected output above

Steps to Reproduce

git clone git@github.com:kobylynskyi/graphql-java-codegen.git
git reset --hard 0d72a9888911c93c673f0f43ef5df72e681f497e
Change the ivy repo in build.gradle to use layout "ivy"

    repositories {
        ivy {
            url "${System.properties['user.home']}/.ivy2/local"
            layout "ivy"
        }
    }

Run ./gradlew publishIvyPublicationToIvyRepository --info. It will print output showing the different jars all being written to the same location

Your Environment
$ ./gradlew --version

------------------------------------------------------------
Gradle 6.3
------------------------------------------------------------

Build time:   2020-03-24 19:52:07 UTC
Revision:     bacd40b727b0130eeac8855ae3f9fd9a0b207c60

Kotlin:       1.3.70
Groovy:       2.5.10
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          1.8.0_131 (Oracle Corporation 25.131-b11)
OS:           Linux 4.4.0-91-generic amd64

Thanks for the report.
This is unlikely to get addressed soon due to the current team priorities.
Note that you can work around the issue on the publication side by doing something like the following:
afterEvaluate {
    publishing.publications.getByName<IvyPublication>("main") {
        artifacts.all {
            if (classifier != null) {
                type = classifier
            }
        }
    }
}

though this will result in type being valued with sources and javadocs. But the body of the all could be adapted to your liking.
As additional information, doing something like that might trip the equivalent of #12026 for IvyPublication which is why the sample above is in an afterEvaluate block.
However, due to #1386, Gradle will not be able to consume libraries published that way.

Hi Ben, it seems like you want the ivy pattern layout shortcut to become in-sync with what sbt expects. I'm basing this on my observation of the folder structure at com.typesafe.play:sbt-plugin:2.3.8, where the descriptor contains this in the publications element:
<publications>
	<artifact name="sbt-plugin" type="jar" ext="jar" conf="compile"/>
	<artifact name="sbt-plugin" type="src" ext="jar" conf="sources" e:classifier="sources"/>
	<artifact name="sbt-plugin" type="doc" ext="jar" conf="docs" e:classifier="javadoc"/>
</publications>

Is this a reasonable example to illustrate the desired behavior?
While I agree with Louis and modifying the behavior of the "ivy" shortcut is unlikely happen, I think you could accomplish what you desire in your provided example by:

Updating patternLayout for your publishing repository to [organization]/[module]/[revision]/[type]s/[artifact](-[classifier]).[ext]
In an afterEvaluate block as Louis suggested, add a bit more logic to set type based on expected classifiers of sources and javadoc jars.

For point 2 above, I was thinking something like:
switch (classifier): {
  case 'sources':
    type = 'src'
    break
  case 'javadoc':
    type = 'doc'
    break
  default:
    type = 'jar'
}

Please feel free to reopen if this doesn't work.


Not able to install any packages on fresh installed scoop

On newly scoop installation i am not being able to install any package, it always throws an error when attempting to download the remote installer.

I can bypass this issue by manually downloading the installers, renaming them and putting them into the /cache folder

Sorry about that. Does it work now?

Yep, it's working now. Thanks


Add lasso or polygon to rectangular region selection

User story
There is an irregular area, either in spatial or scatterplot, and we want to select the cells inside.
** solution**
Either a lasso or polygon selection tool.... Probably polygon? Lasso is faster, and can pick out general regions, but it requires attention for the entire path. Polygon might be slower on irregular regions, but doesn't require the same attention to detail.
(Look at #147 or #111: We should be able to use more of the Deck.gl built-in for this, though it didn't work for me the first time.)
Ideally we use someone else's code instead of writing from scratch.

The SelectionLayer from nebula.gl seems to be a good solution for selecting rectangles and polygons, but the latest nebula.gl version depends on the latest deck.gl version, which introduces this bug that breaks the ability to pass functions to the  react component, so I have opened this issue https://github.com/uber/deck.gl/issues/3259
Once that is fixed, a next step would be to actually obtain the cell IDs that are within the selected region from nebula.gl which should be available through the onSelect handler of the SelectionLayer but I have not looked into very much.
https://nebula.gl/docs/api-reference/layers/selection-layer

Fixed in #254.


discussion on different concepts results

Hi.
Thank you for this library. It is really helpful.
I am using concept modeling to cluster images and do some analysis on the results.
I modified the use of  find_concepts() ( that  initially was meant to find the top 5 related concepts based on a search term) to find the top 5 related concepts given an image (by simply passing the path to an image and obtain the embeddings of the image with the embedding model).
However I noticed that in many cases the top-1 most related cluster is different from the cluster that is returned by fit_transform(). Sometimes the concept is in second position, but in many cases it is in positions >2. Any idea on why this might be happening?
Thank you for your time.
Best wishes.

The find_concepts function is merely a quick search function and does not behave the same way .transform does. .find_concepts applies a cosine similarity between image and concept embeddings to quickly find a match. However, this is not an exact representation of the training process during .fit which involves clustering and dimensionality reduction.

Ohh, I see.
Thank you!


Setup cron job to periodically remove tmp/ files in API

I would like to: Setup cron job to periodically remove tmp/ files in API
So that I can: Prevent files from clumping up in the tmp/ directory incase errors occur.

Done inside EC2 instance.
*/30 * * * * rm ~/SERaaS-API-Service/tmp/*


this project is still alive?

The project looks great, but for the commits looks like it was abandoned; I'm wrong?

I would also like to know what the status is here!


Remove org page part of organisations/index action

The organisations index page is now provided by the collections app (and has been for quite a while).
The only bit of it that is still relevant here is for the courts and tribunals index page, so we can remove the other bits.
Unpicking the organisation/show pages is trickier, and is more easily done after we've properly migrated the courts and tribunals pages over.

Thanks both 👍


A transferState pipe idea

🧩 Feature request
Description
Most of the time the transferState is used to ensure the transition from static to Angular is smooth and not noticeable. I currently store a lot of API requests in the transferState (via an interceptor) to do this.
The issue with this is that API responses can contain a lot of data not required to be stored and doesn't reduce the operations / formatting between the API and the render. More importantly, the static HTML can get large and bloated very easily.
My Idea.....
Part 1: TransferState Pipe
I have this idea of an Angular pipe that stores the value (text / html) in the transferState when running and gets it (instead of subscribe) when generated. I think the pipe would need to do the subscription similar to the async pipe. This would be good because the pipe would store required data to render without surplus stuff.
Part 2: Use the existing DOM and attach id's to elements that contain data used for transferState (instead of large extra script element)
Instead of using the current transferState it would be nice to use the whole DOM as the state by using id's. This would reduce the size of the HTML dramatically and would mean the DOM is the single source of truth.
I'm not sure how this would be dealt with if the observable was an object or used in an ngFor. Ie. the async is in a different place to the rendered output. Maybe 2 pipes? StateAsync to handle observables and id's and a state pipe to save / get value.
I might try a proof of concept, but interested to get your thoughts. Is anything like this on the roadmap?

Part 1: It would be very hard to do this. To prevent the flash when angular boots, it will need to get the data in a synchronous way. I'm not sure that is even possible in a pipe that's used this way.
Part 2: You would have to traverse the entire DOM to extract this data. This needs to be done before the Angular app boots. The time to do this will be added to the app-boot. This process is highly CPU intensive, adding to battery usage. Also, as soon as Angular boots, the entire dom tree inside the app will be destroyed, and rebuild from scratch.
In my eyes, the best way to keep the data part small is to make sure you only put the data in the transfer state that you need during the initial state of the app.  This is a gray area tho. If you put everything there, your app-boot might be slightly larger, but as all data is prefetched this way, the rest of the application can be blazingly fast. There is not a single solution that solves all of those concerns. However, Scully provides you with the tools to pick the optimal solution for your use-case


It's hard to set focus on new thread content

When creating a new thread:
click on middle (vertical) of content field do nothing - because area below a first line (div.ql-editor.ql-blank) don't set focus.
I believe it's worth to fix that.
Firefox 50.1

I've fixed this by adding forced focus on click for the yii2-quill editor. Just composer update Podium to fetch new yii2-quill.


Layout Tools

I would like to provide more ways to design the layout.
Position
Now, walv only supports setting the x and y coordinates of the widget(relative to the parent).
LittlevGL also can align the object to another with lv_obj_align, see

It is frowned upon now to do so in web design but you can use absolute positioning in CSS to do that. position: absolute aligns the element to the parent element and all other elements act as if it doesn´t exist so their position is not affected.
This was a very popular design method back when I started doing web design in the early 2000s when divs were the hot new thing. Before that we used Tables.
2/3 down the page.
https://www.freecodecamp.org/news/how-to-use-the-position-property-in-css-to-align-elements-d8f49c403a26/

@excitedbox
I see, thanks!
For relative layout, I am designing a tool like this:

It uses a matrix radio button group to represent how an object aligns with another.

oh that is cool. Have you taken another look at why the widgets turn invisible when closing the style editor?
I still think creating the widgets is much easier with a sidebar pallet like Grapejs does with the icons you drag to the canvas. You could probably implement something like that in a few minutes with the dragula or draggable JS libs. or using purely CSS and HTML5 it should be rather easy to do.


rubyPackages: update

Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@marsam  I noticed that this PR downgraded xcodeproj package from:
    version = "1.23.0";

to
    version = "0.28.2";

Why? Now this package is not up-to-date and contains ancient version.


Add support for caching already compiled JS code

V8 has this feature to compile a script using previously saved cache. We can take advantage of it and save the result of a JavaScript compilation call to a file and on subsequent application runs to use this cache, improving loading time significantly.

Implemented with #258.

Will it improve when Android app resume from inactive state ?

It depends - if the process is killed and the JavaScript needs to be re-evaluated, then yes, there will be an improvement. If the process is not killed the application state is already in-memory and resume should be almost instant.

Cool


forgot to commit this whoops: Renamed PluginInfo.cs fields and split hooks into seperate file

There really isn't a use to having PLUGIN_ as a prefix when the class is already PluginInfo
In many H3VR Mods, hooks aren't used at all, having it as a separate file keeps things tidy.

I am not sure if this should be static or not

Done


Vet clinic database: database performance audit

-In this project we got a chance to optimize some slow queries in our database.
Screenshots:

THX :)


PR: Fix/search

Does your changes hide the default (advanced) view of Find in files? If not, I'd like to see that as part of this PR ;-)

Hi @ccordoba12 , I forgot to add the description. Basically the include regex where based on the extension provided by the pygments lexers, but the problem is that the generated regex was invalid. I corrected that and added some tests so we are sure that the Include and Exclude patterns are always valid regular expressions.
I can hide the pane by default. Working on a ack/grin like interface after this PR.

@ccordoba12, now the advanced options are hidden by default

I tested our edit filters and they are working correctly, so merging ;-)


tf.keras.layers.Softmax should respect image_data_format by default

Please make sure that this is a feature request. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:feature_template
System information

TensorFlow version (you are using): 2.1.0
Are you willing to contribute it (Yes/No): No

Describe the feature and the current behavior/state.
Tensorflow allows one to set image_data_format of either channels_last (set by default, NHWC) or channels_first (NCHW) using tf.keras.backend.set_image_data_format(data_format). Doing so nicely results in almost all layers of the tf.keras.model adjust appropriately by either bringing the channel last or first. Even the model.load_weights() work perfectly fine (and transparently), respecting user's choice of image_data_format, as it should. The story is somewhat different when it comes to tf.keras.layers.Softmax. Softmax layer/activation is often used in classification problems to normalize the output of the model and such normalization is applied w.r.t to an axis. Currently, Softmax implementation always sets the default value of axis = -1, which is the last axis. This works perfectly fine when image_data_format is channels_last but it for channels_first, one needs to explicitly set the axis to 1.
This feels like slightly out of sync compared to how all the other layers behave. They respect the image_data_format automatically and adjust accordingly. So why not Softmax? I am pretty sure 90% of the use cases of Softmax applies the function along the channels axis, so why not make it respect the data format automatically,too ?
This is also easy to miss for folks just getting started with TensorFlow. The docs does not mention anything remotely about this.
Will this change the current api? How?
Yes. tf.keras.layers.Softmax would start respecting the default set_image_data_format set by user and hence axis would be -1 incase of NHWC and 1 incase of NCHW.
This would also allow one to easily specify activation="softmax" in the last layer instead of adding one explicit line like :
model.add(tf.keras.layers.Softmax(axis=-1 if data_format=="channels_last" else 1))
Who will benefit with this feature?
A big group of people who are either using Softmax in its default form (i.e. to normalize along channels axis) or someone who is getting started with TF and wants to have flexibility of changing image data layouts. This would render a uniform API experience and expectation to end-user, trusting that tensorflow's layers are respecting the global image data format without much hassle or individual treatment.
Any Other info.

Does softmax now work with channels last and first?

Just seeing this now -- the reason why Softmax cannot default to a different axis value based on image_data_format is that it isn't an image-processing layer (unlike Conv2D), and it has no way of knowing whether the tensor it's processing represents image features or not.
A rule like "if the input tensor is 4D, and image_data_format == 'channels_first', then use axis=1" would be very error-prone. It is much better to let the user specify their own axisvalue.

Can it raise a warning instead? I am sure for most users would want to have axis = 1 when image_data_format is channels first. If they don't specify an axis and if image_data_format is channels first, can it raise a warning or message so that the user is atleast aware?


Unable to correctly change the "Choose what to configure in your Profile" options when creating a Profile

Type: Bug
Unable to correctly change the "Choose what to configure in your Profile" options when creating a Profile
Hi, I have a problem when trying to change my configured ("Choose what to configure in your Profile" Section) options while creating a new profile. If I change any option in this section, I am unable to modify anything else, and all options become disabled. This also includes issues with the "copy from:" option.
VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Extensions (9)

Extension
Author (truncated)
Version

path-intellisense
chr
2.9.0

fluent-icons
mig
0.0.18

autopep8
ms-
2024.0.0

debugpy
ms-
2024.10.0

python
ms-
2024.12.3

vscode-pylance
ms-
2024.8.1

powershell
ms-
2024.2.2

vs-sequential-number
nep
1.1.0

material-icon-theme
PKi
5.9.0

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyonecf:30548226
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
da93g388:31013173
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
refactort:31108082
pythonrstrctxt:31112756
flightc:31119335
wkspc-onlycs-t:31111718
wkspc-ranged-c:31118571

/duplicate of #224788 which also offers a workaround


(MODULES-3431) Fix acceptance tests for MySQL DSC resource

The MySQL DSC resource has recently been updated to v2.x with breaking
changes.  This has caused the DSC CI pipeline to fail.  This commit
changes the acceptance test to expect to fail.  Once the MySQL DSC
Resource authors fix their module, these tests will then fail the failure
and we can reinstate them.
This commit also modifies the presuite LCM configuration to only occur
on Windows agents as it was possible to cause test failures if run on
a master agent.

Tested locally with integration tests


.vtk file to .msh file conversion error

I attempted to convert .vtk files to .msh files, but I have got an error (the error that I have got is attached as a pdf file.
). I have attached herewith a .vtk file that I have produced using the vtk tool.
The code is as below.
volumetric_mesh = meshio.read("./ellipsoid_0.vtk")
meshio.write("./ellipsoid_0.msh", volumetric_mesh)

ellipsoid_0.zip
vtk_2_msh_conversion_error_trace.pdf

Please don't hide error messages PDF file. Nobody will download them. Just copy and paste them here, that's much easier.
Also, this is literally the same error as https://github.com/nschloe/meshio/issues/890. If you have any more issues, post them there or reopen.

No this is not working.
The issue is when I try to convert the .vtk file after reading it.
The error occurs when running the below part.
meshio.write("./ellipsoid_0.msh", volumetric_mesh)
Here is the error message.
`WARNING:root:Binary Gmsh needs c_size_t (got uint64). Converting.
WARNING:root:Binary Gmsh needs c_size_t (got uint64). Converting.
WriteError                                Traceback (most recent call last)
 in ()
----> 1 meshio.write("E:/meshes/meshes/ellipsoid_0.msh", volumetric_mesh_0)
c:\users\hp\appdata\local\programs\python\python36\lib\site-packages\meshio_helpers.py in write(filename, mesh, file_format, **kwargs)
142
143     # Write
--> 144     return writer(filename, mesh, **kwargs)
c:\users\hp\appdata\local\programs\python\python36\lib\site-packages\meshio\gmsh\main.py in (f, m, **kwargs)
114     {
115         "gmsh22": lambda f, m, **kwargs: write(f, m, "2.2", **kwargs),
--> 116         "gmsh": lambda f, m, **kwargs: write(f, m, "4.1", **kwargs),
117     },
118 )
c:\users\hp\appdata\local\programs\python\python36\lib\site-packages\meshio\gmsh\main.py in write(filename, mesh, fmt_version, binary, float_fmt)
105             )
106
--> 107     writer.write(filename, mesh, binary=binary, float_fmt=float_fmt)
108
109
c:\users\hp\appdata\local\programs\python\python36\lib\site-packages\meshio\gmsh_gmsh41.py in write(filename, mesh, float_fmt, binary)
279
280 def write(filename, mesh, float_fmt=".16e", binary=True):
--> 281     write4_1(filename, mesh, float_fmt=float_fmt, binary=binary)
282
283
c:\users\hp\appdata\local\programs\python\python36\lib\site-packages\meshio\gmsh_gmsh41.py in write4_1(filename, mesh, float_fmt, binary)
319
320         _write_entities(fh, cells, binary)
--> 321         _write_nodes(fh, mesh.points, mesh.cells, float_fmt, binary)
322         _write_elements(fh, cells, binary)
323         if mesh.gmsh_periodic is not None:
c:\users\hp\appdata\local\programs\python\python36\lib\site-packages\meshio\gmsh_gmsh41.py in _write_nodes(fh, points, cells, float_fmt, binary)
371     # TODO Not sure what to do if there are multiple element types present.
372     if len(cells) != 1:
--> 373         raise WriteError("Can only deal with one cell type for now")
374     dim_entity = _geometric_dimension[cells[0][0]]
375     entity_tag = 0
WriteError: Can only deal with one cell type for now`

https://github.com/nschloe/meshio/issues/865

I yesterday re-install the new release (i.e. meshio 4.4.1). But the problem is still exists ?
Is this problem fixed in this release ?
Can you please provide steps to overcome this issue please ?

For a workaround I just changed the meshio\gmsh\main.py as below to allow for writing the .msh compatible to gmsh22 until this issue will resolve.
register(
    "**gmsh22**",
    [".msh"],
    read,
    {
        "gmsh22": lambda f, m, **kwargs: write(f, m, "2.2", **kwargs),
        "gmsh": lambda f, m, **kwargs: write(f, m, "4.1", **kwargs),
    },
)

But I have got set of warnings as below. I assume this is not an issue.
WARNING:root:Appending zeros to replace the missing physical tag data.
WARNING:root:Appending zeros to replace the missing geometrical tag data.
WARNING:root:Binary Gmsh needs 32-bit integers (got int64). Converting.
WARNING:root:Binary Gmsh needs 32-bit integers (got int64). Converting.
And then I can use non-interactive mode of gmsh to convert it into latest gmsh version as below.
gmsh -convert ./ellipsoid_dup_0.msh
And please let me know once this bug is resolved.

For all I know, it's a duplicate of #865. Also the error message indicates that the devs are aware of the problem. I'm personally not working on it (not too interested in the gmsh formats), so your best shot is a PR I'd say.

Yes, it is a duplicate of #865.
Modifying meshio.gmsh.main like that will work for this specific case but might break other things so I don't recommend this; instead, as suggested in #865, just ask meshio to write MSH 2.2 with
mesh = meshio.read("ellipsoid_0.vtk")
meshio.write("ellipsoid_0.msh", mesh, file_format="gmsh22")

Case directory './testPython' already exists.
Copied '/home/sridhar/snappyAMI/pinnSOlver/lowPolyCustomCase/constant/triSurface/inlet.stl' to './testPython/constant/triSurface'.
Copied '/home/sridhar/snappyAMI/pinnSOlver/lowPolyCustomCase/constant/triSurface/outlet.stl' to './testPython/constant/triSurface'.
Copied '/home/sridhar/snappyAMI/pinnSOlver/lowPolyCustomCase/constant/triSurface/walls.stl' to './testPython/constant/triSurface'.
./testPython/VTK/testPython_0.vtk
File contains cells that meshio cannot handle (types 42)
Error: Couldn't read file
testPython/VTK/testPython_0.vtk
as vtk


Cargo vendor is omitting essential files

In an update of cargo-vendor from 0.1.13 -> 0.1.23, it looks like the new version is omitting a bunch of files. Some of these are things like .travis.yml which is arguably unnecessary, but it's also leaving out things like build.rs.
Is there some new config I should be setting or something?
This is invoked with
$ mkdir vendor
$ cargo vendor -s Cargo.lock vendor

Using Cargo.toml/lock in https://gist.github.com/jsgf/8326a659ecd51d34c76602f06ab252ab
Note that vendor/rav1e/build.rs is missing which prevents it from building.
@bolinfest also reproduced this on 0.1.22.

Though it looks like this the result of cargo being more strict about what it includes in a distribution package, and rav1e's Cargo.toml is omitting its own build.rs: https://github.com/xiph/rav1e/blob/master/Cargo.toml#L6

Yeah, bug in rav1e.


convert conflucence doc to MD (#123)

Ref: #123

Converted the CORTEX Endpoints docs in Markdown
Updated README by linking to the new docs created

View rendered README.md
View rendered doc/cortx-on-k8s.md

This PR does not need CLA-signed so that check can be ignored.

@osowski , when this PR is resolved, can you please add one of the following tags in a comment to this PR:
■ #SODACODE-PR-Accepted
■ #SODACODE-PR-Rejected
Thanks!

Thank you for the contribution! We are actively working on this page for an impending release, so I will circle back on reviewing this PR tomorrow (3/4). There will more than likely need to be a rebase for your changes here, based on multiple updates to the other areas of README.md for our release work.

Does this mean that I have to rebase the branch ? Sorry for asking as I'm new to open source contributions,

@anubhav06 Thank you for digging in here! At the moment, it does not mean you need to rebase your work, as there is another work item progressing that will work on the same section - contributing an entire net-new set of steps due to an internal component rip-and-replace workstream that was done in a recent release. Once that work item is completed based upon the new component's workflow, I will circle back here and see what is still applicable for the initial source document this issue was asking to port to markdown.
For now, there is nothing you need to do.


build: update ci Noir versions

Update CI versions of noirup and noir to match dependencies.
Strangely, because Noir compilers <0.19.0 didn't even check the compiler_version field, the existing CI pipeline ran fine even though this should have theoretically failed 🤪

lol no worries


All the code is deleted when formatting.

Whenever I format all the code is deleted and I end up with a blank document.

@justanindieguy Can you please share an example project?

I am able to reproduce, it only happens if the document starts with <!DOCTYPE html> for me

Can confirm what @ardittristan is saying- if the document starts w/ <!DOCTYPE html>, the extension has issues. For me, it just wouldn't format any of the template. Once removed, it worked as expected

@playitcool Does it happen when running Prettier from the command line?

@Alonski - yep

Ok so it's a bug in Prettier itself. Can you update Prettier to latest and see if it still breaks please? @playitcool

@Alonski  - will do! I just came to the same conclusion. Appreciate your time.

This extension is deprecated, so please use Prettier directly!


Update akka-actor to 2.6.18

Updates com.typesafe.akka:akka-actor from 2.6.16 to 2.6.18.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.typesafe.akka", artifactId = "akka-actor" } ]

labels: library-update, early-semver-patch, semver-spec-patch

Superseded by #58.


Keep listIndexes() response compatible

Document Layer returns only secondary indexes in response to listIndexes(). Mongo drivers expect primary index (on _id, which is maintained anyway) also part of the response. It's an easy fix, we might as well do it just to make the drivers happy.

[ ] Include primary index
[ ] Add background rebuild info

By Add background rebuild info do you mean also return whether this is a background built index or not?


Upgrade to Alpine v3.11.5

The edge is always newer than a specific version, so you just need to recompile as is and you'll get the latest Tor.

The edge is always newer than a specific version, so you just need to recompile as is and you'll get the latest Tor.

I'm sorry for the inconvenience @wallneradam: I did not know that.


attributes_for does not return the proper value for relations

I have a fabricator
Fabricator(:timesheet) do
ts_date { Date.today }
off false
employee
end
Timesheet has a belong_to employee relationship.
Timesheet.attributes_for(:timesheet)
Returns a hash containing ['employee' => "2"] which is the Id of the employee, which gives me an association mismatch.
It should return ['employee_id' => "2"] instead, is there some way to make this work?

Does it happen like that when you call Fabricate(:timesheet) as well?
On Jan 30, 2012, at 6:10 PM<EMAIL_ADDRESS>wrote:

I have a fabricator
Fabricator(:timesheet) do
ts_date { Date.today }
off false
employee
end
Timesheet has a belong_to employee relationship.
Timesheet.attributes_for(:timesheet)
Returns a hash containing ['employee' => "2"] which is the Id of the employee, which gives me an association mismatch.
It should return ['employee_id' => "2"] instead, is there some way to make this work?

Reply to this email directly or view it on GitHub:
https://github.com/paulelliott/fabrication/issues/83

No, but it does not create an object either it crashes spectacularly. This is obviously an error on my side.
Thank you

I'd be happy to take a look at your employee fabricator if you post it.