Cannot run algo.train()

I tried the example on Auto3Dseg model and i couldn't able to start the training in my colab with GPU enabled.

Hi @GowthamE7, could you please refer to this discussion and try to use the command shared there? Thanks!

I am getting error in folds:

Hi @GowthamE7, did you use the data json under this folder which contains "fold"?

Hi @KumoLiu, I tried using that file but I got ended in this error:

So I tried base json file by downloading the dataset:

Hi @GowthamE7, from the screenshot you shared I can't see the cause of the problem. But you should at least use the JSON file in the tutorial repo. And also share the whole error message that you get when you use that JSON file. Maybe I could take a deep look into it.

@KumoLiu, I tried the json file inside the tutorials but it throws error.

JSON snapshot from tutorials:

But if I use the json which is downloaded while downloading the dataset I can run the code without Error.

JSON snapshot from dataset:

Hi @GowthamE7, I noticed that here has a different format of the file path, maybe it's the reason.

@KumoLiu, Still I am getting that error. For my custom dataset

Hi @KumoLiu, Thanks for the answer I can now run the tutorial. I tried the same procedure to my custom dataset but I cannot able to run the training.

DataLoader

Error:

Hi @GowthamE7, could you please share the whole error message? Thanks!

@KumoLiu ,
/usr/local/lib/python3.8/dist-packages/monai/utils/deprecate_utils.py:321: FutureWarning: monai.transforms.io.dictionary LoadImaged.init:image_only: Current default value of argument image_only=False has been deprecated since version 1.1. It will be changed to image_only=True in version 1.3.
warn_deprecated(argname, msg, warning_category)
[info] number of GPUs: 1
[info] world_size: 1
train_files_w: 103
train_files_a: 104
val_files: 53
/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py:554: UserWarning: This DataLoader will create 6 worker processes in total. Our suggested max number of worker in current system is 2, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary.
warnings.warn(_create_warning_msg(
2023-02-20 15:27:51.872644 - Length of input patch is recommended to be a multiple of 32.
num_epochs 1000
num_epochs_warmup 500
num_epochs_per_validation 20
[info] amp enabled
2023-02-20 15:27:55.253999: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-02-20 15:27:56.182970: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia
2023-02-20 15:27:56.183134: W tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib64-nvidia
2023-02-20 15:27:56.183157: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
epoch 1/1000
learning rate is set to 0.025
[2023-02-20 15:28:02] 1/52, train_loss: 1.0072
Process Process-4:
Process Process-6:
Process Process-2:
Process Process-5:
Process Process-3:
Exception ignored in: <function _MultiProcessingDataLoaderIter.del at 0x7f2bb0a24d30>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1466, in del
self._shutdown_workers()
File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 1430, in _shutdown_workers
w.join(timeout=_utils.MP_STATUS_CHECK_INTERVAL)
File "/usr/lib/python3.8/multiprocessing/process.py", line 149, in join
res = self._popen.wait(timeout)
File "/usr/lib/python3.8/multiprocessing/popen_fork.py", line 44, in wait
if not wait([self.sentinel], timeout):
File "/usr/lib/python3.8/multiprocessing/connection.py", line 931, in wait
ready = selector.select(timeout)
File "/usr/lib/python3.8/selectors.py", line 415, in select
fd_event_list = self._selector.poll(timeout)
KeyboardInterrupt:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/content/ref_api_work_dir/dints_0/scripts/search.py", line 653, in
fire.Fire()
File "/usr/local/lib/python3.8/dist-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/usr/local/lib/python3.8/dist-packages/fire/core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/usr/local/lib/python3.8/dist-packages/fire/core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/content/ref_api_work_dir/dints_0/scripts/search.py", line 331, in run
outputs = model(inputs)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/monai/networks/nets/dints.py", line 504, in forward
outputs = self.dints_space(inputs)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/monai/networks/nets/dints.py", line 1046, in forward
self.cell_tree[str((blk_idx, res_idx))](inputs[self.arch_code2in[res_idx]], weight=_w)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/monai/networks/nets/dints.py", line 315, in forward
x = self.op(x, weight)
^C

Hi @GowthamE7, I see KeyboardInterrupt  in your error message, I would like to say you may interrupt the process unintentionally. Thanks!

@KumoLiu, I didn't press ctrl+c. The code is getting stopped by itself. I checked it by running the code again and not touching my laptop and I am getting the same error.
/usr/local/lib/python3.8/dist-packages/monai/utils/deprecate_utils.py:321: FutureWarning: monai.transforms.io.dictionary LoadImaged.init:image_only: Current default value of argument image_only=False has been deprecated since version 1.1. It will be changed to image_only=True in version 1.3.
warn_deprecated(argname, msg, warning_category)
[info] number of GPUs: 1
[info] world_size: 1
train_files_w: 3
train_files_a: 4
val_files: 7
^C

hi @GowthamE7, in your latest run, the log did not show the first iteration (even the smaller amount of data). But your previous run showed. can you confirm that the error messages are the same?

Hi @GowthamE7

/usr/local/lib/python3.8/dist-packages/monai/utils/deprecate_utils.py:321: FutureWarning: monai.transforms.io.dictionary LoadImaged.init:image_only: Current default value of argument image_only=False has been deprecated since version 1.1. It will be changed to image_only=True in version 1.3. warn_deprecated(argname, msg, warning_category)

The message here, it's just a warning here, you can filter this warning message by adding image_only=True in LoadImage, but it's not the issue and won't stop your process.

[info] number of GPUs: 1 [info] world_size: 1 train_files_w: 3 train_files_a: 4 val_files: 7

Here is just some logging information.

^C

And here is the 'ctrl+c' I think.

Hi @dongyang0122, I tried to run many times but the code is stopping because of  "^C", but I din't press ctrl+c.Thanks!

Hi @KumoLiu, Thanks for the explanation.

Hi @GowthamE7

/usr/local/lib/python3.8/dist-packages/monai/utils/deprecate_utils.py:321: FutureWarning: monai.transforms.io.dictionary LoadImaged.init:image_only: Current default value of argument image_only=False has been deprecated since version 1.1. It will be changed to image_only=True in version 1.3. warn_deprecated(argname, msg, warning_category)

The message here, it's just a warning here, you can filter this warning message by adding image_only=True in LoadImage, but it's not the issue and won't stop your process.

[info] number of GPUs: 1 [info] world_size: 1 train_files_w: 3 train_files_a: 4 val_files: 7

Here is just some logging information.

^C

And here is the 'ctrl+c' I think.

Hi @KumoLiu, Thanks for the explanation.

Hi @KumoLiu, I cannot able to load the dataset and I am using the json file you mentioned.
RuntimeError                              Traceback (most recent call last)
Input In [109], in <cell line: 7>()
5 datastats_file = os.path.join(work_dir, "data_stats.yaml")
6 analyser = DataAnalyzer(datalist_file, dataroot, output_path=datastats_file)
----> 7 datastat = analyser.get_all_case_stats()
9 print("datalist file: ", os.path.abspath(datalist_file))
10 print("dataroot path: ", os.path.abspath(dataroot))
File ~/conda/lib/python3.8/site-packages/monai/apps/auto3dseg/data_analyzer.py:235, in DataAnalyzer.get_all_case_stats(self, key, transform_list)
232 if not has_tqdm:
233     warnings.warn("tqdm is not installed. not displaying the caching progress.")
--> 235 for batch_data in tqdm(dataloader) if has_tqdm else dataloader:
237     batch_data = batch_data[0]
238     batch_data[self.image_key] = batch_data[self.image_key].to(self.device)
File ~/conda/lib/python3.8/site-packages/tqdm/std.py:1195, in tqdm.iter(self)
1192 time = self._time
1194 try:
-> 1195     for obj in iterable:
1196         yield obj
1197         # Update and possibly print the progressbar.
1198         # Note: does not call self.update(1) for speed optimisation.
File ~/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py:652, in _BaseDataLoaderIter.next(self)
649 if self._sampler_iter is None:
650     # TODO(https://github.com/pytorch/pytorch/issues/76750)%3C/span%3E)
651     self._reset()  # type: ignore[call-arg]
--> 652 data = self._next_data()
653 self._num_yielded += 1
654 if self._dataset_kind == _DatasetKind.Iterable and
655         self._IterableDataset_len_called is not None and
656         self._num_yielded > self._IterableDataset_len_called:
File ~/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py:1347, in _MultiProcessingDataLoaderIter._next_data(self)
1345 else:
1346     del self._task_info[idx]
-> 1347     return self._process_data(data)
File ~/conda/lib/python3.8/site-packages/torch/utils/data/dataloader.py:1373, in _MultiProcessingDataLoaderIter._process_data(self, data)
1371 self._try_put_index()
1372 if isinstance(data, ExceptionWrapper):
-> 1373     data.reraise()
1374 return data
File ~/conda/lib/python3.8/site-packages/torch/_utils.py:461, in ExceptionWrapper.reraise(self)
457 except TypeError:
458     # If the exception takes multiple arguments, don't try to
459     # instantiate since we don't know how to
460     raise RuntimeError(msg) from None
--> 461 raise exception
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/transforms/transform.py", line 102, in apply_transform
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/transforms/transform.py", line 66, in _apply_transform
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/transforms/io/dictionary.py", line 154, in call
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/transforms/io/array.py", line 266, in call
RuntimeError: LoadImage cannot find a suitable reader for file: /home/jovyan/Task04_Hippocampus/imagesTr/hippocampus_367.nii.gz.
Please install the reader libraries, see also the installation instructions:
https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies.
The current registered: [<monai.data.image_reader.NumpyReader object at 0x7f3424368fa0>, <monai.data.image_reader.PILReader object at 0x7f34243689d0>].
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/transforms/transform.py", line 102, in apply_transform
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/transforms/transform.py", line 66, in _apply_transform
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/transforms/compose.py", line 174, in call
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/transforms/transform.py", line 129, in apply_transform
RuntimeError: applying transform <monai.transforms.io.dictionary.LoadImaged object at 0x7f34243686a0>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/jovyan/conda/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "/home/jovyan/conda/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/jovyan/conda/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/data/dataset.py", line 107, in getitem
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/data/dataset.py", line 93, in _transform
File "/home/jovyan/conda/lib/python3.8/site-packages/monai/transforms/transform.py", line 129, in apply_transform
RuntimeError: applying transform <monai.transforms.compose.Compose object at 0x7f342435a400>

Hi @GowthamE7, from the error message I see that LoadImage cannot find a suitable reader for file. I would like to say it may be an environment issue.
RuntimeError: LoadImage cannot find a suitable reader for file: /home/jovyan/Task04_Hippocampus/imagesTr/hippocampus_367.nii.gz.
Please install the reader libraries, see also the installation instructions:
https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies.
The current registered: [<monai.data.image_reader.NumpyReader object at 0x7f3424368fa0>, <monai.data.image_reader.PILReader object at 0x7f34243689d0>].

Could you please check your environment and install all the requirements? You can find some help from here
Hope it can help you, thanks!

Hi @KumoLiu, I have install all the dependencies but I am still getting the error. thanks!

Hi @GowthamE7, could you please try pip show nibabel in the terminal and show me the output?

Hi @KumoLiu,

Hi @KumoLiu,

Oh, I forgot you train in the jupyter, could you please try the same command in the jupyter? If it takes out the same result, then it's wired. But if not, it may due to the different env.

@KumoLiu,

Hi @GowthamE7, then it may be due to the wrong path, could you please try this command in the cell?
from monai.transforms import LoadImage

data_path = "./imagesTs/hippocampus_267.nii.gz"  # any data path in the json file you used
test = LoadImage(image_only=True)(data_path)


Examples needed.

Hello @genkami!
First of all thank you for this nice project. I've recently discovered it and find it interesting.
I wanted to send you a letter, but then thought, that this issue maybe useful to some other enthusiasts, and also I can use the markdown formatting. Apologies for a long read and for the fact that I haven't had the chance to push the project to GitHub yet.
Before the generics were available I was playing around Monoids in Golang. My favourite example is FizzBuzz!
So I implemented the solution which was highly inspired by a couple of articles mentioned bellow.
The first approach looked something like this:
// FizzBuzzFunctional
//
// https://web.archive.org/web/20130511210903/http://dave.fayr.am/posts/2012-10-4-finding-fizzbuzz.html
// https://medium.com/@iopguy/fizzbuzz-can-finally-be-implemented-in-stable-rust-87649a882f2d
// https://www.parsonsmatt.org/2016/02/27/an_elegant_fizzbuzz.html
func FizzBuzzFunctional(n int) string {
	m := monoid.ForString("").
		Append(monoid.ForString("Fizz").Filtered(func() bool {
			return n%3 == 0
		})).
		Append(monoid.ForString("Buzz").Filtered(func() bool {
			return n%5 == 0
		}))

	return m.UnwrapOr(strconv.Itoa(n))
}

I had to implement an Optional type (an equivalent of Maybe, the name seemed more conventional for Golang). UnwrapOr is basically FromMaybe in Haskell. After that I turned that Optional into a monoid. The API is not ideal, but the solution looks pretty simple. Given that we don't have the monadic list comprehensions I used Filtered function to add the predicated. So basically the structure that implemented the monoid, also had a Filtered method. Not very elegant, but better than nothing.
The beauty of this solution is that we can easily add more predicates: Fizz, Buzz, Bizz, etc... However in order for it to work we need to be able to create a Monoid which is basically a function, and not a concrete  a simple type.
My Optional Monoid looked like this:
package monoid

type OptionString struct {
	op option.String
}

// SomeString wraps the s into an optional string.
func SomeString(s string) OptionString {
	return OptionString{
		op: option.SomeString(s),
	}
}

// NoneString returns an empty optional string.
func NoneString() OptionString {
	return OptionString{
		op: option.NoneString(),
	}
}

func (m OptionString) Empty() OptionString {
	return NoneString()
}

func (m OptionString) Append(other OptionString) OptionString {
	switch {
	case m == NoneString():
		return other
	case other == NoneString():
		return m
	default:
		return SomeString(m.op.Append(other.op).UnwrapOrDefault())
	}
}

func (m OptionString) Filtered(fn func() bool) OptionString {
	if fn() {
		return m
	}

	return NoneString()
}

func (m OptionString) UnwrapOr(s string) string {
	return m.op.UnwrapOr(s)
}

It was using a String Option which supported the Append for convenience, however it was not a Monoid, it didn't respect the Monodic laws, however the monoid.OptionsSting did:
func TestOptionString(t *testing.T) {
	t.Parallel()

	// A set S equipped with a binary operation S × S → S,
	// which we will denote •, is a monoid if it satisfies the following two axioms:

	t.Run("it has valid identity", func(t *testing.T) {
		t.Parallel()

		m := monoid.SomeString("test")

		// There exists an element e in S such that for every element a in S,
		// the equations e • a = a and a • e = a hold.
		AssertEqual(t, m, m.Append(m.Empty()))
		AssertEqual(t, m.Empty().Append(m), m.Append(m.Empty()))
	})

	t.Run("it has valid associativity", func(t *testing.T) {
		t.Parallel()

		a := monoid.SomeString("foo")
		b := monoid.SomeString("bar")
		c := monoid.NoneString()

		// For all a, b and c in S, the equation (a • b) • c = a • (b • c) holds.
		AssertEqual(t, a.Append(b).Append(c), a.Append(b.Append(c)))
	})
}

The new iteration was changed a little to use foldable:
func FizzBuzzFunctional(n int) string {
	fizz := func(n int) bool {
		return n%3 == 0
	}

	buzz := func(n int) bool {
		return n%5 == 0
	}

	filters := foldable.RuleFoldable{
		monoid.ForFizzBuzzPredicate(fizz, "Fizz"),
		monoid.ForFizzBuzzPredicate(buzz, "Buzz"),
	}

	rules := fold(filters, monoid.NewEmptyFizzBuzzRuleset()) // a monoid which combines all the filters together

	return monoid.FromStringOption(strconv.Itoa(n), rules(n))
}

// fold :: (Foldable t, Monoid m) => t m -> m
func fold(filters foldable.RuleFoldable, m monoid.FizzBuzzRuleset) monoid.FizzBuzzRuleset {
	rules := filters.Foldl(filters.Init(), func(result foldable.T, next foldable.T) foldable.T {
		rule, ok := next.(func(int) monoid.OptionString)
		mustOk(ok, "cannot cast result foldable.T to func(int) monoid.OptionString")

		m = m.Append(rule)

		return m
	})

	ruleSet, ok := rules.(monoid.FizzBuzzRuleset)
	mustOk(ok, "cannot cast result foldable.T to monoid.FizzBuzzRuleset")

	return ruleSet
}

func mustOk(ok bool, msg string) {
	if !ok {
		panic(msg)
	}
}

Now that we have the generics, and your library we probably can come up with a better solution. I tried to use some of your ideas but at the moment you're changing the API faster than I have the time to follow :-D Nonetheless, I was almost able to implement the monoids I need from your wonderful library, however I stuck at the moment with a monoid to combine two functions. It got pretty ugly on my side.
Could you please add an ExampleTest for this FizzBuzz case to demonstrate the usage of your library the way you were intended? What I really would like to achieve is the following translated into Go without being too ugly :)
{-# LANGUAGE MonadComprehensions #-}

module Main where
import Data.Monoid (mappend)
import Data.Maybe (fromMaybe, listToMaybe, maybe)
import System.Environment (getArgs)

fizzbuzz i = fromMaybe (show i) $ mappend ["fizz" | i `rem` 3 == 0]
                                          ["buzz" | i `rem` 5 == 0]

main = mapM_ putStrLn [ fizzbuzz i | i <- [1..100] ]

Thank you very much.

Thank you for submitting such a detailed issue with great examples and references! I am so glad that you are interested in my project.
I have done some experiments on Go generics these days and APIs are almost fixed. So I will be able to start writing some examples soon.
Please wait for a moment!
Your functional FizzBuzz example can be written as something like this with dogs (but there's still lack of some functions):
var monoid algebra.Monoid[option.Option[string]] = option.DeriveMonoid[string](algebra.DeriveMonoid[string]())

func FizzBuzz(i int) string {
    return option.UnwrapOr(
        monoid.Combine(
            option.Filter(option.Some[string]("fizz"), func (_ string) bool { i % 3 == 0 }),
            option.Filter(option.Some[string]("buzz"), func (_ string) bool { i % 5 == 0 }),
        ),
        fmt.Sprint(i),
    )
}

func main() {
    iterator.ForEach[string](
        iterator.Map[int, string](iterator.Range[int](1, 100), FizzBuzz),
        func (x string) { fmt.Println(x) }
    )
}

It's still ugly a bit compared to Haskell, but I think It's acceptable.
I hope you will like this 😄

Hello @genkami,
Thank you for you detailed response and a great example. I also noticed you've updated the repo and added the FizzBuzz example:
func main() {
	monoid := option.DeriveMonoid[string](algebra.DeriveAdditiveSemigroup[string]())
	fizzBuzz := func(i int) string {
		fizz := option.Filter(option.Some[string]("Fizz"), func(_ string) bool { return i%3 == 0 })
		buzz := option.Filter(option.Some[string]("Buzz"), func(_ string) bool { return i%5 == 0 })
		return option.UnwrapOr(monoid.Combine(fizz, buzz), fmt.Sprint(i))
	}
	it := iterator.Map(iterator.Range[int](1, 15), fizzBuzz)
	iterator.ForEach(it, func(s string) { fmt.Println(s) })
}

It looks nice, concise and pretty pretty aligned with Golang idiomatic. Allow me to drive it a little bit further:
At the moment we have this Filter function on the option type. But what if (following the ideas from the aforementioned articles) we try to fold over a set of fizz-buzz Rules, where a Rule is function which takes a predicate and the word:
type FizzBuzzPredicate func(num int) bool
type FizzBuzzFilter func(n int) option.String

func Rule(p func(num int) bool, s string)  FizzBuzzFilter {
    return  func(n int) option.String  {
       if p(n) {
          return option.Some(s)
      }

      return option.NoneString()
    }
}

func FizzBuz(n int) string {
	fizz := func(n int) bool {
		return n%3 == 0
	}

	buzz := func(n int) bool {
		return n%5 == 0
	}

       filters  := [] FizzBuzzFilter{fizz, buzz} // should be a foldable of monoids
       ruleSet := fold(filers) // return a monoid, which is a function by its nature. monoid[func(n int) option.String]

      return ruleSet(n).UnwrapOr(strconv.ItoA(i))
}

/ / fold should be a generic fold :: (Foldable t, Monoid m) => t m -> m
func Fold(filters Foldable) monoid[FizzBuzzFilter] {
   // fold over filters and turn them into a monoid
}

    fizzbuzz i = fromMaybe (show i) (ruleSet i)
    ruleSet = fold rules

The reasoning behind this is is as such:

Option should probably not have the Filter method.
Monoids could be the functions per sei, so the combine method should be able to join the function together into a single monoid.

Tell me what do you think?
Thank you for your wonderful job and for patience!

Another question would be how to use the library use the API mentioned above:
m := monoid.SomeString("test")

// There exists an element e in S such that for every element a in S,
// the equations e • a = a and a • e = a hold.
AssertEqual(t, m, m.Append(m.Empty()))
AssertEqual(t, m.Empty().Append(m), m.Append(m.Empty()))

Basically I'm following some ideas from here https://blog.ploeh.dk/2017/10/06/monoids/
It seems to me that it's much more eloquent and more Golang-friendly. YMMW.
So in order for it to work we would need something like that:
type Monoid[T] interface {
    Empty() Monoid[T]
    Append(other Monoid[T]) Monoid[T]
}

The problem here if we use the generic monoids is to get the underlying T to use it inside Append. Maybe you could help me with some ideas on how to build this kind of API using your awesome library.
Thanks you!

Sorry for being late, but I added the example above to the repo!
https://github.com/genkami/dogs/tree/main/examples


Need a new function to reverse effects

Thank you for sharing your work!
The library has been very helpful to me in converting and scaling fxr files :D Recently, I've been trying to modify 671132.fxr for Sakura Dance in SDT, changing its trajectory from "left to right" to "right to left," but I'm having trouble editing Action 34 (Spawner Rotation)'s rotation speed. I'm not very good at English, so I appreciate it if you could help me with that. Thanks!

This may be a bit too specific to add a new function for, but I might still look into what it would take to get something like this working later at some point. Right now, a lot of the actions related to rotation and movement are using an older system in the library because they haven't changed between any of the supported games, and so they didn't need to be updated to the newer system, which the main purpose of is supporting different forms for different games. The newer system also makes editing existing effects a lot easier compared to the old, so I don't really want to add any new functions that interacts with the old system. I'm planning to update all of the actions using the old system soon-ish, but it's not a priority right now.
For this specific case, however, you can change the way it rotates with something like this:
for (const effect of fxr.root.walkEffects()) if (effect instanceof BasicEffect) {
  if (effect.nodeMovement.type === ActionType.NodeSpin) {
    effect.nodeMovement.properties1[2].scale(-1)
  }
}

This goes through all effects in the FXR to check if the node movement action is action 34 (NodeSpin), and if it is, it just flips the sign on the Y rotation speed to make it spin the opposite direction.

Thank you. Without the efforts of tool authors, there would be no mod authors like us. Thank you very much


Download via phoenix says "from: blob:"

Reproduce on ocis 1.0.0-beta8 with eos installed via https://github.com/owncloud-docker/compose-playground/blob/master/examples/hetzner-deploy/make_ocis_eos_compose_test.sh
firefox https://xxx.xxx.xxx.xxx:9200

log in as einstein, click in a file, e.g. 'Speech.ogg' the web UI suggests downoad,
click on 'downoad'
a requester appears

What is the meaning of 'from: blob:' - is this some techical artefact, that should be hidden?
It looks like something is missing after the colon.
This is possibly irritating to the user.
Expected result: irritating terms like 'blob' don't appear.

pre singned urls have fixed that.
The blob: download was just a workaround

confirmed fixed with RC1 docker


[FLINK-4021] Problem of setting autoread for netty channel when more ta…

Thank you for this PR. I will try to look into it next week. I think we should wait for the 1.1 release before we merge this though.

Very impressive that you made it through that part of the system. It's very poorly documented and overly complex. The change looks good and ensures that a staged buffer that cannot be decoded because of a closed buffer pool does not leave the channel with auto read set to false. This is currently not a problem as all tasks of the job are failed, but with partial recovery this will lead to problems if the channel is kept alive by other consuming tasks.
We could add the following as a test for this in PartitionRequestClientHandlerTest. What do you think? This covers both branches that you added.
/**
 * Tests that an unsuccessful message decode call for a staged message
 * does not leave the channel with auto read set to false.
 */
@Test
@SuppressWarnings("unchecked")
public void testAutoReadAfterUnsuccessfulStagedMessage() throws Exception {
	PartitionRequestClientHandler handler = new PartitionRequestClientHandler();
	EmbeddedChannel channel = new EmbeddedChannel(handler);

	final AtomicReference<EventListener<Buffer>> listener = new AtomicReference<>();

	BufferProvider bufferProvider = mock(BufferProvider.class);
	when(bufferProvider.addListener(any(EventListener.class))).thenAnswer(new Answer<Boolean>() {
		@Override
		@SuppressWarnings("unchecked")
		public Boolean answer(InvocationOnMock invocation) throws Throwable {
			listener.set((EventListener<Buffer>) invocation.getArguments()[0]);
			return true;
		}
	});

	when(bufferProvider.requestBuffer()).thenReturn(null);

	InputChannelID channelId = new InputChannelID(0, 0);
	RemoteInputChannel inputChannel = mock(RemoteInputChannel.class);
	when(inputChannel.getInputChannelId()).thenReturn(channelId);

	handler.addInputChannel(inputChannel);

	BufferResponse msg = createBufferResponse(channelId, channel);

	// Write 1st buffer msg. No buffer is available, therefore the buffer
	// should be staged and auto read should be set to false.
	assertTrue(channel.config().isAutoRead());
	channel.writeInbound(msg);

	// No buffer available, auto read false
	assertFalse(channel.config().isAutoRead());

	// Write more buffers... all staged.
	msg = createBufferResponse(channelId, channel);
	channel.writeInbound(msg);

	msg = createBufferResponse(channelId, channel);
	channel.writeInbound(msg);

	// Notify about buffer => handle 1st msg
	Buffer availableBuffer = createBuffer(false);
	listener.get().onEvent(availableBuffer);

	// Start processing of staged buffers (in run pending tasks). Make
	// sure that the buffer provider acts like it's destroyed.
	when(bufferProvider.addListener(any(EventListener.class))).thenReturn(false);
	when(bufferProvider.isDestroyed()).thenReturn(true);

	// The 3rd staged msg has a null buffer provider
	when(inputChannel.getBufferProvider()).thenReturn(bufferProvider, bufferProvider, null);

	// Execute all tasks that are scheduled in the event loop. Further
	// eventLoop().execute() calls are directly executed, if they are
	// called in the scope of this call.
	channel.runPendingTasks();

	assertTrue(channel.config().isAutoRead());
}

I'm going to address the comments and merge this


IDL definition of an archetype must always be a table

The semantic pass should check that and fail otherwise.

Superseded by:

#2524


Security fixes

Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[x] 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/)
22.11 Release Notes (or backporting 22.05 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

1000 rebuilds IMHO warrants a retarget to staging-next, will take care of that later tonight.

the qemu patch should be easy to backport to 22.05 (Mayflower already uses this patch on 22.05), not sure what to do about vim considering that we're on vim8 on 22.05 (cc @NixOS/security )

Broke cross, but already fixed upstream so on a new update it should be good again: https://github.com/vim/vim/pull/10777

https://github.com/NixOS/nixpkgs/pull/184025


feat: Native search functionality through a new "search" feature.

Pertaining WasmEdge #3504
This PR provides a struct SearchConfig which enables extraction of search results through struct SearchOutput from a remote or local Search API endpoint.
it adds the "search" feature to the llama-core crate.
More information available here

Hello, I am a code review agent on flows.network.
It could take a few minutes for me to analyze this PR. Relax, grab a cup of coffee and check back later. Thanks!

@suryyyansh Please fetch the latest dev branch and rebase your code. The CI failures are caused by the image dep used by chat-prompts. We fix it in the latest dev branch. So, please sync up the changes on your side.

Hey @apepkuss. Please also review the changes. The force push was due to the rebase.

Hey @apepkuss could you please re-review my code? Thank you!

@suryyyansh I can start reviewing this PR now. Please switch this PR from Draft to Open if it's ready to review. Thanks!

After switching this PR to Open, please check if the PR needs to rebase onto the latest code. Thanks!

Rebased and opened. Thank you.

Please recheck. Thanks.


Adding remote server to add layers through https has some issues.

AddServerDirective.js and ServerService.js are checking for http:// in a handful of places. Need to parse the protocol as opposed to assuming they are http.

Tested confirmed it works at least when https endpoint has a valid cert.


Make standalone Electron ILDA viewer

Features:

Control bar with play/pause
Horizontal scrollbar to scroll through the frames manually
Register for .ild file extensions

The ILDA parsing is integrated in the drawing library at the moment; we'll need to separate this into a package.

realistically I'm not going to do this for a long while.


Updating repo & looking for collaborators

Hey Everyone,
Looking to add collaborators.  I'm going to start reviewing open pull requests and get the ball rolling again. 👍
Comment below if your interested in becoming a collaborator.

You're the man! I'm interested in getting more HKObserverQueries set up.

Hi!
I'm interested to support this project.

@EJohnF @JulianKingman sent invites 👍

Same here. I would love to support this as we need it in our project.

me 2

Hi, would be great to see you guys could review some PR's and get them merged. Thanks a lot!

I would love to but I was never added as a contributor.


Chore: update dependencies

Codecov Report

Merging #1450 (6cfc9bf) into master (31a10d5) will decrease coverage by 0.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1450      +/-   ##
==========================================
- Coverage   39.52%   39.36%   -0.16%
==========================================
  Files         598      590       -8
  Lines       35064    34952     -112
==========================================
- Hits        13860    13760     -100
+ Misses      19676    19659      -17
- Partials     1528     1533       +5

Impacted Files
Coverage Δ

app/proxyman/outbound/errors.generated.go
0.00% <0.00%> (-100.00%)
:arrow_down:

common/task/task.go
88.88% <0.00%> (-7.41%)
:arrow_down:

testing/servers/tcp/tcp.go
81.81% <0.00%> (-5.46%)
:arrow_down:

testing/scenarios/common.go
73.07% <0.00%> (-4.62%)
:arrow_down:

app/proxyman/outbound/handler.go
38.05% <0.00%> (-4.48%)
:arrow_down:

transport/internet/udp/hub.go
73.61% <0.00%> (-4.17%)
:arrow_down:

transport/internet/system_listener.go
48.07% <0.00%> (-3.85%)
:arrow_down:

transport/internet/kcp/connection.go
69.61% <0.00%> (-2.77%)
:arrow_down:

transport/internet/kcp/receiving.go
97.31% <0.00%> (-2.69%)
:arrow_down:

transport/internet/system_dialer.go
46.98% <0.00%> (-2.41%)
:arrow_down:

... and 11 more

Continue to review full report at Codecov.

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


sortableFields have default sorting option

closes #3715
Summary
We couldn't set the default sortable field from the config file.

You can specify the sortable fields like below:
sortable_fields:
   - field: title
      direction: 'Descending'
   - field: date

Test plan
I haven't added the tests in the code (I've removed those that belong to the sortable fields test).
I would like to be sure my direction is right.
A picture of a cute animal (not mandatory but encouraged)

Sorry for the late reply @erezrokah
I will work on what you have written and get back to you.
Thank you for your review.

Sorry for the late reply @erezrokah
I will work on what you have written and get back to you.
Thank you for your review.

The current suggested API allows setting multiple fields as the default which is not supported by the UI. We can use something like:
sortable_fields: { names: ['title','date'], default: name, direction: descending }

In the future, we can enable users to do multiple sort.
So I think the configuration should be based on this.
What do you think about that @erezrokah ?

The current suggested API allows setting multiple fields as the default which is not supported by the UI. We can use something like:
sortable_fields: { names: ['title','date'], default: name, direction: descending }

In the future, we can enable users to do multiple sort.
So I think the configuration should be based on this.
What do you think about that @erezrokah ?

In the future, we can enable users to do multiple sorts.
So I think the configuration should be based on this.
What do you think about that @erezrokah?

Hi @KancerEzeroglu and sorry again for the late reply.
How about enforcing using our schema validation that only a single field has a direction?

In the future, we can enable users to do multiple sorts.
So I think the configuration should be based on this.
What do you think about that @erezrokah?

Hi @KancerEzeroglu and sorry again for the late reply.
How about enforcing using our schema validation that only a single field has a direction?

It would be really nice to have default sort ordering for date fields. With a lot of posts, having the default be date ascending is not a great user experience...
Is the direction schema validation a blocker to getting this merged? If so, I can take a look at it if you point me in the right direction.

Is the direction schema validation a blocker to getting this merged? If so, I can take a look at it if you point me in the right direction.

Hi @jlev the blockers for the PR are:

It breaks existing configurations.
It allows you to configure something that doesn't work (can be solved by schema validation)

Please note that the CMS remembers the user's preference for the sort if that helps and having a default sort field can impact performance quite a lot as it requires the CMS to fetch all posts on initial load.


BC16.2 page action - run object property does not work

There is no longer a "PushAction" property on a page action, and if you set the "RunObject" property then the action does not display.
So please either restore the "PushAction" property or make the "RunObject" work without it.

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

ID: dec21678-8db3-a288-43b3-fa34035809b8
Version Independent ID: e9714314-893c-7a1c-8c38-5373826931cc
Content: RunObject Property - Business Central
Content Source: dev-itpro/developer/properties/devenv-runobject-property.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Thanks for your feedback. This repo is meant for documentation issues only. This looks like a product bug. Please use your usual support channel to file a bug. Thanks.


read failed at block size = 131072

more details:

client on local PC, zdb on vagrant virtualbox VM (running on local PC)
with same setup, redis works fine
got i/o timeout error
test script can be found below

package main

import (
	"bytes"
	"crypto/rand"
	"flag"
	"fmt"
	"log"
	"time"

	"github.com/garyburd/redigo/redis"
)

const (
	maxBlockSize = 1048576
)

var (
	isZdb   bool
	zdbAddr string
)

func main() {
	flag.BoolVar(&isZdb, "zdb", true, "set to true if it is zdb, false to redis")
	flag.StringVar(&zdbAddr, "addr", "<IP_ADDRESS>:12345", "address of redis / zdb")

	flag.Parse()

	conn, err := redis.Dial("tcp", zdbAddr, redis.DialReadTimeout(10*time.Second))
	if err != nil {
		log.Fatalf("dial err: %v", err)
	}

	for blockSize := 8; blockSize <= maxBlockSize; blockSize = blockSize * 2 {
		key := []byte(fmt.Sprint(blockSize))

		data := make([]byte, blockSize)
		rand.Read(data)

		log.Println("-> ", blockSize)
		// write
		if isZdb {
			key, err = redis.Bytes(conn.Do("SET", key, data))
		} else {
			_, err = conn.Do("SET", key, data)
		}
		if err != nil {
			log.Fatalf("write failed: %v", err)
		}

		// read
		got, err := redis.Bytes(conn.Do("GET", key))
		if err != nil {
			log.Fatalf("read failed at blocksize:%v : %v", blockSize, err)
		}

		// validates written data
		if bytes.Compare(got, data) != 0 {
			log.Fatalf("corrupted data")
		}
	}
	log.Println("OK")
}

run the script
$ go run simple.go --zdb=true --addr=<IP_ADDRESS>:12345
2018/03/22 17:31:54 ->  8
2018/03/22 17:31:54 ->  16
2018/03/22 17:31:54 ->  32
2018/03/22 17:31:54 ->  64
2018/03/22 17:31:54 ->  128
2018/03/22 17:31:54 ->  256
2018/03/22 17:31:54 ->  512
2018/03/22 17:31:54 ->  1024
2018/03/22 17:31:54 ->  2048
2018/03/22 17:31:54 ->  4096
2018/03/22 17:31:54 ->  8192
2018/03/22 17:31:54 ->  16384
2018/03/22 17:31:54 ->  32768
2018/03/22 17:31:54 ->  65536
2018/03/22 17:31:54 ->  131072
2018/03/22 17:32:04 read failed at blocksize:131072 : read tcp <IP_ADDRESS>:38864-><IP_ADDRESS>:12345: i/o timeout
exit status 1

set --zdb=false for redis

Thanks for the report, gonna investigate this now.

I think i found the issue
https://github.com/rivine/0-db/blob/master/src/commands_get.c#L126-L128
You need to check return value of the send.
see https://linux.die.net/man/2/send
On success, these calls return the number of characters sent. On error, -1 is returned, and errno is set appropriately.

Tried a quick fix. But unfortunately still not working, because the socket is non blocking.
https://stackoverflow.com/a/14370767/6935088
# git diff
diff --git a/src/commands_get.c b/src/commands_get.c
index f554f9d..6733079 100644
--- a/src/commands_get.c
+++ b/src/commands_get.c
@@ -124,7 +124,16 @@ int command_get(redis_client_t *client) {
         return 0;
     }

-    send(client->fd, response.buffer, response.length, 0);
+       int to_send = response.length;
+       while (to_send > 0) {
+               int n = send(client->fd, response.buffer + (response.length - to_send), to_send, 0);
+               if (n < 0) {
+                       debug("failed to send: %d\n", n);
+                       diep("send");
+               }
+               to_send -= n;
+               debug("[+]to_send = %d\n", to_send);
+       }

got this on zdb log
[+] command: get: data file: 0, data offset: 524626
[+]to_send = 272347
[+]to_send = 142027
failed to send: -1
[-] send: Resource temporarily unavailable

I can reproduce (it fails on 262144 for me), investigating :)

I found the bug with a dirty fix, I'm fixing it with a nicer way now and will protect any other calls

Can you validate that last commit (12112f1564906d3cfef3351fdcc0ae36f46cc9e8) fixes the issue ?

yep, it fixes my issue


Error 200: Power BI Desktop process is opening or the Analysis Services instance is not yet ready

Describe the problem
Error 200: Power BI Desktop process is opening or the Analysis Services instance is not yet ready.
Bravo version
1.0.2 (1.0.8480.21768)
Tabular model
Power BI Desktop, import mode
Power BI
Power BI Desktop
Steps to reproduce the behavior
No response
Additional context
No response
Screenshots

Anything else ?
No response

Hi @CarlosAzabacheEC, an internal build is available which should resolve this error, it would be great if you could test it and let us know if it solves the issue.
To get the latest internal build you can change the update channel from Stable to Dev in the options panel as shown in the image.

Excellent, thanks Alberto. I can now read my boards

Fixed in version 1.0.3

I'm closing this issue as this bug was fixed in version 1.0.3, but feel free to reopen if the problem persists. Thank you!


Real, tested range?

Hi
You project looks great. But... Lora theoretical ranges are one thing, real on-the-field ranges are another one. Typically, could you publish real tests with the emitter and receptor at ground level: 1. in dense big cities, 2. in mid and low-size towns, 3. in countryside ?
Why not also some results with the emitter mounted on a drone, but of course there results will be much more positive...

@OhSoGood hi ,   Because radio signals effected all the environmental parameters. antenna type, altitude from ground, surroundings , weather humidity , and many other things effects the radio signals , that is why we are having big difference . Although Loko Transmitter + receiver combo is suitable for non-urban areas,  where not many surroundings to interfere. In city loko can connect to existed Lorawan network in the city ( it is more logical, and convenient.     I have made small test in city , but I put the receiver on 10th floor windows, and with transmitter unit I walked in the city ,  I got range about 1.5-2km . too many buildings around me .    I will make field tests with video for better understanding. but it will take time for me . because war in Ukraine interrupted the project.

My god, I thought reading CrowdSupply's pages that you were in the USA. All my thoughts to you and all the people around you.
I will be very pleased when you can publish about more results from real cases.
All the best


install issue

thanks for this nice tool. when i install using this: pip install ., the issue pops out:
Building wheels for collected packages: genome_spot
  Building wheel for genome_spot (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [34 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib
      creating build/lib/genome_spot
      copying genome_spot/genome_spot.py -> build/lib/genome_spot
      copying genome_spot/helpers.py -> build/lib/genome_spot
      copying genome_spot/_version.py -> build/lib/genome_spot
      copying genome_spot/join_outputs.py -> build/lib/genome_spot
      copying genome_spot/__init__.py -> build/lib/genome_spot
      creating build/lib/genome_spot/bioinformatics
      copying genome_spot/bioinformatics/signal_peptide.py -> build/lib/genome_spot/bioinformatics
      copying genome_spot/bioinformatics/protein.py -> build/lib/genome_spot/bioinformatics
      copying genome_spot/bioinformatics/__init__.py -> build/lib/genome_spot/bioinformatics
      copying genome_spot/bioinformatics/dna.py -> build/lib/genome_spot/bioinformatics
      copying genome_spot/bioinformatics/genome.py -> build/lib/genome_spot/bioinformatics
      creating build/lib/genome_spot/model_training
      copying genome_spot/model_training/download_trait_data.py -> build/lib/genome_spot/model_training
      copying genome_spot/model_training/make_holdout_sets.py -> build/lib/genome_spot/model_training
      copying genome_spot/model_training/run_model_selection.py -> build/lib/genome_spot/model_training
      copying genome_spot/model_training/train_models.py -> build/lib/genome_spot/model_training
      copying genome_spot/model_training/__init__.py -> build/lib/genome_spot/model_training
      copying genome_spot/model_training/make_training_dataset.py -> build/lib/genome_spot/model_training
      creating build/lib/genome_spot/taxonomy
      copying genome_spot/taxonomy/balance.py -> build/lib/genome_spot/taxonomy
      copying genome_spot/taxonomy/taxonomy.py -> build/lib/genome_spot/taxonomy
      copying genome_spot/taxonomy/__init__.py -> build/lib/genome_spot/taxonomy
      copying genome_spot/taxonomy/partition.py -> build/lib/genome_spot/taxonomy
      creating build/lib/genome_spot/bioinformatics/hmm
      copying genome_spot/bioinformatics/hmm/hmm_signal_peptide.joblib -> build/lib/genome_spot/bioinformatics/hmm
      running build_scripts
      creating build/scripts-3.8
      error: [Errno 21] Is a directory: 'genome_spot/'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for genome_spot
  Running setup.py clean for genome_spot
Failed to build genome_spot
ERROR: Could not build wheels for genome_spot, which is required to install pyproject.toml-based projects

Hey,
just wanted to mention that i have the same issue running pip install . (and terminating with the same error) as Thexiyang.
I'm working on an Ubuntu server, have loaded a conda env made specifically for genomespot and (obviously run the  pip install . command in the folder downloaded via your git clone command). I was able to run the pip install -r requirements.txt command without errors (i tried that after the pip install . failed to see if that might fix the first error).
Additionally, i'd suggest adding the specific python version your software needs (3.8.16 is what an incompatibility error gave me so i changed my python3 version in the conda env to it) in the README dependency list.
Best,
Till

Thanks for raising these issues. Hopefully resolved by PR #5 (https://github.com/cultivarium/GenomeSPOT/pull/5) so try and again let us know.
The issue causing error: [Errno 21] Is a directory: 'genome_spot/' was that I pointed to a directory instead of a script in setup.py. The python version requirement has been relaxed as well. Works for 3.10 and 3.11 in our hands.

Hi Tyler,
just wanted to let you know that it indeed fixed it for me.
Thanks!
Till


Selectize input

Hey how do you get the selectize inputs to work with the Laravel setup? Am running in to a couple of issues with the initialization

Fix in #10


figure out the appropriate time & way to generate clients from openapi specs

appropriate time - probably on pushing to a tag matching a pattern like v*. see here for an example in pytest-mock.


Pages for parts (in the Stacks project) contain junk

This is due to the table of contents at the end of each chapter. We just need a separate TeX creation script for the website.

Needs to be fixed in stacks/stacks-project, not here.

Right! If you pull from aisejohan/stacks-project and then checkout the branch web, then the Makefile has a target web that makes a book.tex without these tables of contents. Also scritps/add_tags.py will add the tags of the parts to the tags file. If you run this first, second do make web then you get a book.tex which can be munged by plastex and gerby-website without problems (tested).

Great, thanks!


Loot Sheet - Changes are lost

Foundryvtt version: 0.7.9
loot-sheet version: 2.5.1
sheet-type: Loot
Issue:
1-Renamed and added more items.
2-Changed permissions to all players from view to edit
3-Went to setup and logged in again as GM
4-Changes from step 1 are missing

Coming here to comment on the same issue, to hopefully expand on the initial bug report.

Create a new loot sheet actor in the sidebar
Make this actor's prototype token "unlinked"
Ensure that the permissions are default (i.e. "None")
Place blank loot actor on the canvas
Populate with items
Change permissions to "Owner" or "Observer" on the unlinked token's sheet
Refresh foundry (F5 or logout/login)
Observe all items on the unlinked token are now gone.

Can confirm that this happens both on 0.7 and 0.8, and that it happens specifically when you toggle the permissions on a loot token.

Can also confirm this issue on 0.8. I have lost so many hours of work going back and repopulating loot sheets, so I'm glad I at least now know that it's caused by changing the permissions. I can also confirm that it wipes out any currency changes made as well, completely reverting it to the state of the prototype token.


"Get-AzureRmConsumptionUsageDetail" does not return the values of 'Tags' anymore

Get-AzureRmConsumptionUsageDetail module does not return the values of Tags anymore. The corresponding az consumption usage list also does not return the Tags values anymore. We know it was listing all the tags and also deployed a script in our test environment with this command. Now, we wanted to deploy that in our production environment and noticed it's not working anymore. We find only the Tags key, but not the values.
Steps to reproduce
> Get-AzureRmConsumptionUsageDetail

Expected behavior
...
        "SubscriptionGuid":  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
        "SubscriptionName":  "Nutzungsbasierte Bezahlung",
        "Tags":  {key, value},
        "Type":  "Microsoft.Consumption/usageDetails",
...

Actual behavior
...
        "SubscriptionGuid":  "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx",
        "SubscriptionName":  "Nutzungsbasierte Bezahlung",
        "Tags":  null,
        "Type":  "Microsoft.Consumption/usageDetails",
...

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.17134.590
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.590
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Related issue: https://github.com/Azure/azure-cli/issues/8651

Hi Iqbal - sorry you're having this issue. It's not related to Powershellget though. Please report the issue via https://GitHub.com/azure/azure-powershell instead

Hi Edwin, thanks for the reply. I have opened the issue there, hence closing this one.


fix(action-sheet): action sheet button shortens when activated in Safari

In safari the action-sheet buttons have a non-0 margin (not sure why). This PR normalizes how the buttons are rendered in safari and chrome.
It SHOULD NOT affect how the action-sheet looks in Chrome.
Ionic Version: 2.x
Fixes: #5828

Nice PR @manucorporat


Add version: sidneys.pb-for-desktop version 11.0.2

Pull request has been created with WinGet Automation :rocket:
Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/116596&drop=dogfoodAlpha

Close with reason: Duplicate; Existing package has correct ARP


Fix a typo in the VPN dashboard that rendered the CPU usage panel blank

How to categorize this PR?

/area monitoring
/kind bug
What this PR does / why we need it:
For the vpn-.* regular expression the =~ operator needs to be used.
Which issue(s) this PR fixes:
Fixes #7865.

Screenshots of the affected CPU Usage panel

->

A similar typo in the Memory Usage panel is also fixed.
Special notes for your reviewer:
/cc @rickardsjp @Sallyan
Release note:

A bug is fixed that rendered the "CPU usage" panel of the "VPN" Plutono dashboard blank.

/cherry-pick release-v1.78


[PE-D][Tester A] unexpected date inputs

inputting 31-02-2024 for interview date does not give me an error, but the program just silently set it as 29-02-2024.
Discrepancy with what is input as compared to what is stored might confuse users.
Program should simply throw an error for an invalidate date like 31-02-2024

Labels: type.FunctionalityBug severity.Low
original: NappySprout/ped#2

Mentioned this in Planned Enhancement section of DG


[NEW CONTENT TYPE REQUEST] Unity ress file

What type of file would you like magika to detect?
Unity ress file (.assets.resS)
What software can create/open these files?
Unity Engine, Asset Studio, Asset Ripper.
Where can these files be found?
Any Unity game.
If possible, please provide a specification for this file type.
Additional context

Closing, see #152 for context. Thanks!


setup-vagrant.md: Edited Windows installation instructions.

Vagrant 1.8.6 is only compatible with VirtualBox <= 5.1, so I made a note to use version < 5.2.

Thanks for the research for this, @invinciblejackalope! Two small things:

The commit message should use a present tense verb. I would write this as
docs: Update Windows installation instructions in setup-vagrant.md.
The body of the commit message should wrap at 76 characters.

I've made those updates and merged.

It's always great to help :)
And by wrap, do you mean adding a newline? And why so?

@invinciblejackalope yes adding a newline. The reason is because in command line, it's easier to read when it's wrapped, when doing like git log and things like that.

Okay thanks!
On Wed, Dec 20, 2017 at 10:36 PM, Joshua Pan<EMAIL_ADDRESS>wrote:

@invinciblejackalope https://github.com/invinciblejackalope yes adding
a newline. The reason is because in command line, it's easier to read when
it's wrapped, when doing like git log and things like that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zulip/zulip/pull/7850#issuecomment-353256345, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AfoSAK00HLfxCNqzIFzgXKZ6qOmQ8AoLks5tCeBJgaJpZM4RJCvh
.


test on 8*A800

I tested on the 8*A800 machine, and below are my test results.
flash_attn_qkvpacked_func : 464.177 iter/s, 0.215 sec
ring_flash_attn_qkvpacked_func: 28.712 iter/s, 3.483 sec
zigzag_ring_flash_attn_qkvpacked_func: 36.878 iter/s, 2.712 sec
stripe_flash_attn_qkvpacked_func: 37.264 iter/s, 2.684 sec
Compared to the A100 performance in the readme, zigzag only achieves 63.5% of the original flash_attn performance. Is this result reasonable?

could you check if your node has nvlink?

could you check if your node has nvlink?

yeah, the node has nvlink,  and dist uses NCCL as backend.

hmm... If all env vars are set correctly, then probably the performance difference between A100 and A800 is that A800 has slower nvlink bandwidth...(which shouldn't result in such performance degradation, as A800 and H800 has the same nvlink bandwidth).


Physical Web not picking up beacons on Android Phone

I am having issues with Android phones with the PW app installed not picking up my beacons any specific settings i need to check for except bluetooth = on, off course
Regards
Nico

Location services needs to be on too. If you're having poor or no data connectivity it won't work either.

Is there a way to make the introduction of BLE and the Physical Web as seemless as possible to customers as i am constantly hearing from potential customers that is too difficult to get BLE and PW to work on there Android phones and therefore thet are not interested in the technology?
Is there any other suggestions on how to reach a potential customer within a beacon zone that doesn't have their bluetooth enabled, WiFi Direct or Progressive Web Apps ???
Please advise on how i can use mobile technology to make the introduction to BLE, beacons and the Physical Web as seemless as possible to potential customers
Regards
Nico

I'm very confused here. I understand that getting Nearby notifications can sometimes not work as people may not have location permission turned on. But the PW app (which we don't recommend for consumers, it's a developer testing tool) actually prompts you for everything you need. If you can't see your beacon using the Physical Web app, something is very wrong.
Step 1: Use the excellent nRF Connect app from Nordic and see if you can even see the beacon in it's raw state. That shows that the beacon is working and your phone can see it.
Step 2: Use our validator tool at verify.physical-web.org to make sure your target URL will be shown by the Physical Web Service. If it fails, it will give you a reason.
Try these both and get back to us so we can help you figure this out.

I haven't heard back from you so I'm closing this issue. It wasn't clear if this was a specific issue or a generic one about how hard it is to turn on Physical Web. Note that we have two paths:

Automatic: the URL 'just shows up'
In order for this to work, the user needs to have BT and Location turned on. When this works it is magical but as we've been discovering it is no where near 100% of users. We understand that and our looking at better solutions

Manual: Just turn it on
The best, most sure fire way of turning on the Physical Web is to just go into (Google)Settings>Nearby Discoveries and switch it on. This doesn't happy for free but it works 100% of the time

We see the Physical Web as a early wifi: people need to know a little bit about what it is and that they have to turn it on. We're finding out that it just can't be magic. There are too many privacy issues to force it on. We hope that as people start to turn it on, we'll get enough of base to get this ecosystem to kick off.

Hi there,
I'm facing a the similar issue, never a problem on iOS but Android is acting up every now and then.
I got passed step 1) getting the raw data from the Nordic app (and detected with a few scanner apps).
Step 2) The validator fails to validate with:
ReasonResult Filtered (Blocked by robots. See: https://developers.google.com/webmasters/control-crawl-index/docs/getting_started).
I've cleared the content of the robots.txt file then set to:
User-agent: *
Disallow:
All URLs https.
What do I miss? What can I try?
Thanks for your answers!
Rgds
Vincent

Hi Vincent
I must be honest with you my experience with this is that iOS always works
" out of the box" have tested this many times and its works everytime.
The problem with Android is that because its an open source eco system you
have many equipment manufacturers and many Android versions which are not
regulated like Apple.
This results in non standard 3rd party Bluetooth stacks being used on these
Android phones with in complete librarie. From what i could gauge is that
Bluez and Bluedroid are the preferred stacks.
Furthermore the Bluetooth chip that the android smartphone manufacturers
use also poses a problem i read a couple articles online that states it the
Bluetooth chip on the Android was made by Broadcom and Intel then you
should be fine but if its from any of the other chip manufacturers you
might have a problem
Thus there are many variables at this stage, my take on this is we will
have to wait for the market to accept Bluetooth ble as the way forward like
it took a while for wifi to be accepted as the norm
Only then hopefully will the quality of Bluetooth ble on Android phones
improve across the board
This is probably not what you wanted to hear but is my honest experience
with Bluetooth ble on Android
Regards
Nico
On Fri, 18 Nov 2016 at 18:14 Vincent Giraud<EMAIL_ADDRESS>wrote:

Hi there,
I'm facing a the similar issue, never a problem on iOS but Android is
acting up every now and then.
I got passed step 1) getting the raw data from the Nordic app (and
detected with a few scanner apps).
Step 2) The validator fails to validate with:
ReasonResult Filtered (Blocked by robots. See:
https://developers.google.com/webmasters/control-crawl-index/docs/getting_started
).
I've cleared the content of the robots.txt file then set to:
User-agent: *
Disallow:
All URLs https.
What do I miss? What can I try?
Thanks for your answers!
Rgds
Vincent
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/google/physical-web/issues/817#issuecomment-261571221,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATTb5WLw2BejUB-0Fi2-XbgCJiKXR-NFks5q_c7bgaJpZM4J1f2Q
.

Can you be more specific about the Android issues you're having so we can help address your concerns? Are people not able to turn BT on? Do they turn BT on and things don't show up?

I had a similar experience on both S7 and Nexus 5 so i ruled out the fact that the issue could come from the Android BLE implementation or activation.
I finally found out that the root of my issue was related to some settings in my robots.txt file as i get a more consistent behavior now and receive Nearby and PW notifications.
Thanks Nico and Scott on your the fast replies!

This is exactly why we have verify.physical-web.org
Use that for any website URL you'd like to use to verify that it will show up properly.

I tried the above two steps and  i was trying to broadcast https://www.Google.com and still it did not come.  Please tell me what can i do.  It showed on nrf and gave notification on apple but on android physical web it is not detecting

If you open Nearby app directly, does the result show?
Android Settings -> Google -> Nearby


WIP: prototype support for n_dimension=1

see #82
I left "The number of projection dimensions must be at least 2." alone to sort of steer people away from this experimental thing for now... though let me know if it should be changed to "at least 1".
$ uv run --with 'ipython, git+https://github.com/mathematicalmichael/PaCMAP@feature/unit-dimension' ipython
 Updated https://github.com/mathematicalmichael/PaCMAP (42a630b)
Installed 26 packages in 243ms

Python 3.11.9 (main, Aug 14 2024, 04:17:21) [Clang 18.1.8 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.29.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from pacmap import PaCMAP

In [2]: PaCMAP(n_components=1)
Warning: Defaults were chosen around dimension 2. Dimension 1 has not been tested.
Out[2]: PaCMAP(n_components=1, random_state=0)

@hyhuang00 I noticed
if not self.apply_pca:
            logger.warning(
                "Running ANNOY Indexing on high-dimensional data. Nearest-neighbor search may be slow!")

in my opinion this warning is a little misleading, as it has no knowledge of the input data. PCA may not be necessary on low-but-still-challenging-to-visualize dimensions, so if I instantiate this class with the intention of fitting it on dim=3 data, this warning would not be relevant.
would you mind if I modified this to under fit?
proposal:
        # Preprocess the dataset
        n, dim = X.shape
        if (not self.apply_pca) and (dim > 20):
            logger.warning(
                "Running ANNOY Indexing on high-dimensional data. Nearest-neighbor search may be slow!")

maybe 20 is too high? thoughts? 3?

Hi, maybe this page contains helpful examples to test the quality of 1dim reductions.

The datasets on that page don't quite have a natural 1D embedding like they have a 2D clustering. However - the S curve dataset arguably has a natural 1D representation.

What I was thinking is that we can at least roughly see if we end up with 1 blue chunk and 1 yellow chunk.

Have you taken a look at my examples in #82? That's been a very good test-case for me because it admits several valid solutions in its equivalence class (one solution is orthogonal projection onto the diagonal of the RGB cube to sort by value, so it's interesting to see which hyperparams incentivize that one vs a hue or saturation-based ordering).

Unfortunately I don't have the skills to have anything of value to add. But I'm thinking that there can't be a single test. What I'm after is just seeing if PaCMAP completely breaks down if n_components is 1 or if it's at least somewhat usable, in which case I should include it in my exploratory project.
Given the myriad of ways high dimensional data can be structured, the metrics at play, etc, if pacmap does not break down then it's got to be state of the art on something, right? I'm mostly looking for an alternative to umap for exploratory stuff currently.

@thiswillbeyourgithub I've only been playing with it a day, but my initial impression is that PaCMAP works reasonably well on 1D reductions, but you'd be wise to adjust the params.
but just for kicks, here's pacmap defaults on noisy_circles from this link

from sklearn import datasets
from pacmap import PaCMAP
import matplotlib.pyplot as plt

n_samples = 1500
noisy_circles = datasets.make_circles(
    n_samples=n_samples, factor=0.5, noise=0.05, random_state=170
)
noisy_moons = datasets.make_moons(n_samples=n_samples, noise=0.05, random_state=170)

reducer = PaCMAP(n_components=1, n_neighbors=20, random_state=21, save_tree=False)

circles_pacmap = reducer.fit_transform(noisy_circles[0])
plt.scatter(circles_pacmap, np.zeros_like(circles_pacmap), c=noisy_circles[1])
plt.show()

and noisy_moons:

moons_pacmap = reducer.fit_transform(noisy_moons[0])
plt.scatter(moons_pacmap, np.zeros_like(moons_pacmap), c=noisy_moons[1])
plt.show()

Just for clarification: I'm not the dev behind repeng, you can see my thoughts in this thread from this message which lead me to creating my own fork for testing a few things. Here's the fork.
Thanks a lot for taking the time to test on those datasets. I think it clearly shows that PaCMAP does not fully breakdown at n_dim=1. I'm saying it that way because I don't know if some mathematical guarantees are violated by setting the dim to 1.

Just for clarification: I'm not the dev behind repeng, you can see my thoughts in this thread from this message which lead me to creating my own fork for testing a few things. Here's the fork.
Thanks a lot for taking the time to test on those datasets. I think it clearly shows that PaCMAP does not fully breakdown at n_dim=1. I'm saying it that way because I don't know if some mathematical guarantees are violated by setting the dim to 1.

ah, thanks for the clarification. that's a clever suggestion in your issue - and now I understand why you'd like the 1D representation. IMO there's a few nuances to swapping out umap for pacmap (consider hardcoding the params to override defaults), but directionally I agree with the approach of using it for better embedding control. of course, some research should be done on embedding quality - I'm hoping to noodle with that and write up something.
I'll have a look soon at the implementation details for repeng and your fork thereof.
@hyhuang00 regarding this PR: i'll lift the WIP from the title, as I think the "experimental support" is ready.

Thank you again for your effort. While this fix has been incorporated into the main branch. I think we will need to wait for the discussion under #84 to finish before I publish a formal release.

perhaps. could just be user error though. maybe throw a ValueError with a helpful message when assumptions are not unsatisfied?

perhaps. could just be user error though. maybe throw a ValueError with a helpful message when assumptions are not satisfied?

A possibility might be to add an env variable that bypasses the new assumption check if the user really wants to? This could be explained to the user in the ValueError message.
In any case thank you all very much and I'll leave it to you to decide wether to close #82 or not.
@mathematicalmichael you might be interested in my repeng PR IIRC you were working on something related.


Watcher behavior regarding resources closed unexpectedly

What is the expected behavior of read / write watchers when the watched resource is closed unexpectedly (broken pipe / remote peer closed a socket...)?
The doc comments in the Loop class read like this:

Execute a callback when a stream resource becomes readable / writable.

I implemented loop drivers based on stream_select(), ev and event. All of them report broken resources as readable / writable. Same thing with uv, it triggers polls with an empty event mask indicating a broken resource. I think the docs should be updated to include this case and define it as expected behavior.

Good catch, yes. It should just trigger the callback. I don't know, should we automatically cancel the watcher in that case?

No, we shouldn't introduce automagic behavior here. (If you don't cancel, your CPU will anyway spike, so it'll be easy to spot in any case.)
Especially problematic in the case the stream is closed and there still was some data in the buffer, but was completely consumed in the callback. Now, do we assume that the callee has already taken care of freeing related data or do we nevertheless call them again?
Sure, we could solve this with a well-defined specification, but that's unnecessary complexity.
Anyway, added PR #100 for clarification about the closing. — After that PR is merged I will add a test to the event-loop-tests repository ensuring correct behavior after closing.


AttributeError: 'int' object has no attribute 'value'

I copy and run this code(and copy images and model.py) :
from matplotlib import pyplot as plt
import cv2 # used for resize. if you dont have it, use anything else
import numpy as np
from model import Deeplabv3
img = plt.imread("imgs/image1.jpg")
print(img.shape)
w, h, _ = img.shape
ratio = 512. / np.max([w,h])
resized = cv2.resize(img,(int(ratioh),int(ratiow)))
resized = resized / 127.5 - 1.
new_deeplab_model = Deeplabv3(input_shape=(512,512,3), OS=16)
pad_x = int(512 - resized.shape[0])
resized2 = np.pad(resized,((0,pad_x),(0,0),(0,0)), mode='constant')
res = new_deeplab_model.predict(np.expand_dims(resized2,0))
res_old = old_deeplab_model.predict(np.expand_dims(resized2,0))
labels = np.argmax(res.squeeze(),-1)
labels_old = np.argmax(res_old.squeeze(),-1)
plt.imshow(labels[:-pad_x])
plt.show()
plt.imshow(labels_old[:-pad_x])
plt.show()
`
but I get this error =>
ERROR:root:An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line string', (1, 2))

TypeError                                 Traceback (most recent call last)
 in ()
26 # make prediction
27 deeplab_model = Deeplabv3()
---> 28 res = deeplab_model.predict(np.expand_dims(resized_image, 0))
29 labels = np.argmax(res.squeeze(), -1)
30
10 frames
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/func_graph.py in wrapper(*args, **kwargs)
966     func_graph: A FuncGraph object to destroy. func_graph is unusable
967       after this function.
--> 968   """
969   # TODO(b/115366440): Delete this method when a custom OrderedDict is added.
970   # Clearing captures using clear() leaves some cycles around.
TypeError: in user code:
TypeError: tf__predict_function() missing 8 required positional arguments: 'x', 'batch_size', 'verbose', 'steps', 'callbacks', 'max_queue_size', 'workers', and 'use_multiprocessing'

In my case problem was in inputs.shape[-1].value inside _inverted_res_block , so I just removed ".value" and everything worked (maybe for now :) ).


Integrate libffi in the build system

This will be needed for the interpreter to call external functions.
I don't want to take a dependency on the system libffi since that majorly complicates our (currently) simple build process. That said, it should still be possible to use the system libffi for distro maintainers (https://github.com/ziglang/zig/pull/18778). Also, as with Aro, it should be possible to disable libffi support since I expect very few Graf library users will care about the interpreter.
This will likely involve forking libffi, adding a build.zig, and then adding that fork as a lazy build.zig.zon dependency (but note #16).

Started the work here: https://github.com/alexrp/libffi/commits/master
The script itself mostly works, but I ran into a handful of issues:

https://github.com/ziglang/zig/issues/10411 (affects arm-linux-gnueabi)
https://github.com/ziglang/zig/issues/19107 (affects riscv64-linux-gnu)
https://github.com/ziglang/zig/issues/20361 (affects all Apple targets)
Some relocation errors on all MIPS targets (need to investigate if this is a Zig issue)
No GNU as-compatible assembly files for 64-bit Arm on Windows (libffi issue)

Also, I raised the question of upstreaming the build script: https://github.com/libffi/libffi/issues/842

For now, we'll just have to maintain some logic to disable libffi support on known-broken targets.


Non signing cosmwasm client hook

Would be nice to also include a non signing cosmwasm client (CosmwasmClient) that can be used without connecting a wallet e.g. to purely load data before connecting. This allows dApps to have a read only view prior to wallet connection.

good suggestion, and we sure need to rename client -> signingClient and then add CosmwasmClient as client

@Callum-A would those clients be in sync with the connected account or separate with different configurations?

@Callum-A would those clients be in sync with the connected account or separate with different configurations?

I was thinking you can spin it up doing const client = useCosmWasmClient(chain.rpc) where chain is a GrazChain although a user could just pass the RPC string

Updated store types^1, created client related actions^2 and hooks^3. Let me know what you think, @Callum-A!

Updated store types1, created client related actions2 and hooks3. Let me know what you think, @Callum-A!
Footnotes

https://github.com/strangelove-ventures/graz/blob/ebec1c40d07f965039474048129c18cae469ad33/packages/graz/src/store/index.ts#L14-L18
↩
https://github.com/strangelove-ventures/graz/blob/dev/packages/graz/src/actions/clients.ts ↩
https://github.com/strangelove-ventures/graz/blob/dev/packages/graz/src/hooks/clients.ts ↩

Had a usage of these this morning. I like this new setup. One small bit of feedback is that using SigningClient with custom details requires a signer to be passed and causes issues when linting with typescript due to offlineSigner returning null or OfflineSigner. (This could just be me being a typescript noob however)

I like this approach

Updated store types1, created client related actions2 and hooks3. Let me know what you think, @Callum-A!
Footnotes

https://github.com/strangelove-ventures/graz/blob/ebec1c40d07f965039474048129c18cae469ad33/packages/graz/src/store/index.ts#L14-L18
↩
https://github.com/strangelove-ventures/graz/blob/dev/packages/graz/src/actions/clients.ts ↩
https://github.com/strangelove-ventures/graz/blob/dev/packages/graz/src/hooks/clients.ts ↩

I like this approach

Had a usage of these this morning. I like this new setup. One small bit of feedback is that using SigningClient with custom details requires a signer to be passed and causes issues when linting with typescript due to offlineSigner returning null or OfflineSigner. (This could just be me being a typescript noob however)

Several hooks/functions return either null to ensure that the data is actually there, so you need to check the nullish value beforehand. Could you provide an example or repro?

Had a usage of these this morning. I like this new setup. One small bit of feedback is that using SigningClient with custom details requires a signer to be passed and causes issues when linting with typescript due to offlineSigner returning null or OfflineSigner. (This could just be me being a typescript noob however)

Several hooks/functions return either null to ensure that the data is actually there, so you need to check the nullish value beforehand. Could you provide an example or repro?

My current solution:
const { signer } = useSigners();
const { data: client } = useSigningClient({
    rpc: chain.rpc,
    // @ts-ignore
    offlineSigner: signer,
    signerOptions: {
        gasPrice: GasPrice.fromString(
            `${config.GAS_PRICE}${config.COIN_MINIMAL_DENOM}`
        )
    }
});

Perfect thank you! I'm going to carry on hacking away with Graz today, any other issues I'll open up


Move flaky tests into a separate non-required step

Flaky tests should run in a separate step, which will not be required for merging PRs.
Special care needs to be taken during PRs to manually check why the tests have failed before approving the PR.

Which tests are flaky?
I think there are no flaky tests, there's only flaky test infrastructure.

deprecated


Disabling redirect with "non_ssl_port" and "enable_non_ssl" does not work as expected.

I tried to setup chef-server version "12.9.1-1" on ubuntu 14.04.
I found that some variables can help me to solve this issue. I successfully set their in "/etc/opscode/chef-server.rb":
nginx['enable_non_ssl']  = true
nginx['non_ssl_port'] = "80"

Also I have done reconfiguring server by chef-server-ctl reconfigure nginx
Nginx became to listen 80 port.
But unfortunately server redirects to https port. So I cannot setup my own nginx server with valid ssl certificates and point upstream to internal machine.
Disabling redirect with "non_ssl_port" and "enable_non_ssl" does not work as expected.

@vskubriev why did you closed your issue ? I get the same one.
Did you fixed it ? If so, please let me know how you did it.

This is fixed. But:
at first: use more recent version of chef-server cookbook
at second: I forgot exact actions to resolv issue
Maybe this will help:
 41     "chef-server": {
 42       "version": "latest",
 43       "addons" : [ "manage" ],
 44       "accept_license" : true,
 45       "api_fqdn" : "chef.example.com",
 46       "configuration":
 47         "nginx['enable_non_ssl'] = true\n"
 48         }
 49     },

 51   "run_list": [
 52     "recipe[sudo]",
 53     "recipe[openssh]",
 54     "recipe[chef-server::default]",
 55     "recipe[chef-server::addons]"

part of node config of chef solo:
  5   "automatic": {
  6     "ipaddress": "chef.example.internal"
  7   }

This is data from latest configs. Pay attention on line 47.
There is my nginx site conf:
upstream backend-chef {
    server <IP_ADDRESS>:80;
}

server {
  listen 80;
  server_name chef.example.com;
  return 301 https://$server_name$request_uri;
}

server {

	listen 443 ssl;

	server_name chef.example.com;
	client_max_body_size 0;

	keepalive_timeout   60;

	; here are ssl settings of certificates

	access_log  /valid/path;
	error_log  /valid/path;

	location / {
		proxy_pass http://backend-chef;
		include /valid/path;
	}
}

Hope this help.  Good luck!


Verta::now() Issue

Hi, Verta::now() return current date in Shamsi Calendar and time in UTC timezone, what's the problem?

hello
now function return timezone project if not set.
please change timezone in config/app.php and
'timezone' => 'Asia/Tehran',

Thanks for the quick response.
Its Worked.


External Jenkins tests updates

Signed-off-by: Sophia Guo<EMAIL_ADDRESS>

Grinder: https://ci.adoptopenjdk.net/view/work in progress/job/Grinder_Sandbox/147/
No issue with image.


Add missing token message when using jwt tokens

Description
Show correct status for missing token when authenticating with JWT tokens.
Fixes #736
Type of change

Bug fix (non-breaking change which fixes an issue)

Testing steps
Run the service locally.
Checklist

[ ] make before_commit passes
[ ] updated documentation wherever necessary
[ ] added or modified tests if necessary
[ ] updated schemas and validators in insights-data-schemas in case of input/output change

No unit tests?

I added them.

Codecov Report
Base: 60.43% // Head: 60.56% // Increases project coverage by +0.12% :tada:

Coverage data is based on head (fb408e1) compared to base (c6e05d6).
Patch coverage: 66.66% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #962      +/-   ##
==========================================
+ Coverage   60.43%   60.56%   +0.12%
==========================================
  Files          23       23
  Lines        3228     3231       +3
==========================================
+ Hits         1951     1957       +6
+ Misses       1056     1053       -3
  Partials      221      221

Impacted Files
Coverage Δ

server/auth.go
66.99% <66.66%> (+1.99%)
:arrow_up:

content/content.go
77.77% <0.00%> (+0.82%)
:arrow_up:

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

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


1.2.5 Causes Error On Startup

[Error  : Unity Log] Failed patching ... System.IO.IOException: Win32 IO returned 1224. Path: ..\BepInEx\DumpedAssemblies\valheim\TradersExtended.dll   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0   at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0   at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)   at System.IO.File.InternalWriteAllBytes (System.String path, System.Byte[] bytes) [0x00000] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0   at System.IO.File.WriteAllBytes (System.String path, System.Byte[] bytes) [0x00039] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0   at APIManager.Patcher+AssemblyLoadInterceptor.Prefix (System.Byte[]& __0, System.Reflection.Assembly& __result) [0x002bd] in <7b6d0f3d6d4b4629ad7b4fc7ec2b2395>:0
This issue is not noticed on v1.2.4.

Nexus or thunderstore? Try deleting \BepInEx\DumpedAssemblies\valheim\TradersExtended.dll
The issue is not tied to that mod in particular. There was almost no changes in 1.2.5 comparing to 1.2.4

Nexus or thunderstore? Try deleting \BepInEx\DumpedAssemblies\valheim\TradersExtended.dll The issue is not tied to that mod in particular. There was almost no changes in 1.2.5 comparing to 1.2.4

It was Thunderstore. I'll give that a try and let you know, thank you!

As I'm aware \BepInEx\DumpedAssemblies directory only used in debugging.
https://docs.bepinex.dev/articles/advanced/debug/assemblies_dnSpy.html
If you have it enabled by accident then I think it's safe to disable it. Otherwise you should know what you do to prevent such errors.
Anyway that mod has nothing to do with that.

Try deleting \BepInEx\DumpedAssemblies\valheim\TradersExtended.dll
This worked for me, just wanted to update you! All is well. Thank you!


this closes #44. Code to make downloading of the Tika Server jar use an MD5 to ensure we have the right Java file and that it was downloaded correctly. This will make sure that if there was e.g., HTTPS or HTTP issues, or if we got a corrupt jar, we have the ability to start the Tika server correctly.

@chrismattmann This is great and make the code more robust.

Thanks @dongnizh


Can't install node-sqlite3 on Raspberry pi 3 running raspbian

I have a node application using sqlite3 running perfectly fine on windows. However, when I send it over to my pi and try downloading the packages, sqlite3 doesn't work.
I get the following errors when trying to install :
node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v57-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v57 ABI) (falling back to source compile with node-gyp)

And the following when trying to run the program afterwards:
Error: Cannot find module '/var/Dash/node_modules/sqlite3/lib/binding/node-v57-linux-arm/node_sqlite3.node'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/var/Dash/node_modules/sqlite3/lib/sqlite3.js:4:15)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)

node version: 8.9.4
Any help would be appreciated,
thanks

sudo apt-get install libsqlite3-dev
npm install sqlite3 --build-from-source --sqlite=/usr
it works on my rpi3

@zerox029 I'm having the same issue as @jyy1082. Could you please be more specific on how you solved this?

try with npm install sqlite3 --unsafe

sudo apt-get install libsqlite3-dev
npm install sqlite3 --build-from-source --sqlite=/usr
it works on my rpi3 - raspbian stretch lite
FWIW
not working with raspbian buster rpi 3

sudo apt-get install libsqlite3-dev
npm install sqlite3 --build-from-source --sqlite=/usr

it works on my opi r1 - armbian 5.4.6-sunxi (Ubuntu bionic based Armbian for the Orange Pi R1 )

these won't work for me, im on raspi manjaro arm.

It worked for me once I installed the 64-bit (arm64) OS version. Couldn't get it to work with the 32-bit (arm).
See my comment on issue #906 for more details.


Handbook Japanese Version

update with ja.po ;
add language botton "日本語版"

I'm having trouble building the the book. We're you able to build it properly?

I can check the error info by tomorrow and run locally before commit

I'm having trouble building the the book. We're you able to build it properly?

Local run successfully after fix the typo and format error.

To Update your translation version of Handbook, #2427   here is my opration cmds  @ordinaHO
Assume the environment are well configured with Phython, Mdbook and Mdbook-i18n-helper:
1, Synchronize with ordinals/ord ;
2,Run to generate a new pot file : messages.pot
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' \
  mdbook build -d po

3,Run msgmerge, xx.po is your language version; this will allow the po file updated with the newest orignal version;
msgmerge --update po/xx.po po/messages.pot`
4,Find #, fuzzy ; i18n using "fuzzy" tag to mark those are newly edited ;
5,Do the transaltion works ;
6,Run mdbook cmd , here is zh example:
mdbook build docs -d build MDBOOK_BOOK__LANGUAGE=zh mdbook build docs -d build/zh mv docs/build/zh/html docs/build/html/zh python3 -m http.server --directory docs/build/html --bind <IP_ADDRESS> 8080
7,check everything is ok , then commit and open the PR to the github.

Hi @DrJingLee , correct i spend sometime yesterday to check out the details! so far i think that adding <div dir="rtl"> command in my translation is making some mistakes as i used Poedit to move my original translation with the new format .
Im not sure if @raphjaph can help to point out this issue as the language is from right to left 👈 check attachment example below.

Do you think its a good idea to generate the newest .pot file on the github every time when the oringinal book updated. @raphjaph
so other people can just download the newest version and work on it if they don't have the local mdbook environment

Do you think its a good idea to generate the newest .pot file on the github every time when the oringinal book updated. @raphjaph
so other people can just download the newest version and work on it if they don't have the local mdbook environment

I think we should add the commands that you need to the README under the Translations header. Would be great if you could open a seperate PR for that!


Perlin noise generator set seed

com.almasb.fxgl.core.math.PerlinNoiseGenerator uses a seed internally, we need to find a way to expose it via API. Also, it probably change from object to class, so we can instantiate multiple generators with different seeds

[ ] Also com.almasb.fxgl.algorithm.procedural.BiomeMapGenerator L25 needs updating accordingly, so that we can instantiate generators with different seeds


Using froala inside a custom directive ignores options

Hi
I'm in the process of checking out whether (angular-)Froala can do what I need it to.
The froala directive works well on its own, but if it is used in a custom directive, it does not pick up any passed in options (such as toolbarInline).
See this Plunk
Is this a bug, am I doing something wrong, or does Froala not support this use-case?
Thanks

@stevie-p did you get anywhere with this? I'm experiencing the same issue.

+1

This doesn't appear to be a problem with the Froala directive. It looks like Angular is calling the link method from the inner directive before setting the scope in the outer one. See the logs from the console: http://plnkr.co/edit/1gX3QCAMVluj9NiNMg34?p=preview.


Comments hard to read in default oh-my-zsh color pallette

Given a good portion of users will be using this with oh-my-zsh on the default color palette, could be nice if comments were a bit easier to read.
Thanks for making this.

Thanks for reaching out! Since i personally don't use oh my zsh, do you mind providing reproduction steps?
Btw bropages uses the excellent bat to apply syntax highlight, so exposing a way to specify themes should not be too hard!

I've added a new cli option --theme to specify theme supported by the underlying syntax highlighting library and changed default theme to  OneHalfDark, hope it helps.
Way to specify theme:
bro --theme=GitHub xclip

# list all themes
bro --list-themes

Will publish to crates.io shortly.

Excellent, thank you so much for this wonderful tool.


Update telemetry.rst

Updated telemetry doc to link to boards and playbooks telemetry files to stay current.
Retained some of the boards content as it wasn't covered in the telemetry file - @jespino, please confirm that the content is correct. If not, I can remove it. Also let me know if you're not the DIR for telemetry! :)
@lieut-data, adding you as a reviewer in lieu of @agarciamontoro.

@justinegeffen this is already reviewed by everybody, sorry for the delay


Development selenium add stats page tests 1

Description
The data rendered in the statistics page should be match the data available in the gridproxy, and check the navigation of Node Monitoring button and Grid Status button.
Changes
Add statistics page and statistics page tests and there are some changes in grid_proxy page and utils page.
Documentation PR
For UI changes, Please provide the Documetation PR on info_grid
Checklist

[ ] Tests included
[ ] Build pass
[ ] Documentation
[ ] Code format and docstrings
[ ] Screenshots/Video attached (needed for UI changes)

please resolve conflicts

I can't verify the results, https://github.com/threefoldtech/tfgrid-sdk-ts/issues/3421,
tests it passing but need to verify the values

All done with added comments and docstring.
And 2 tests are passing.

LGTM, please provide new test result

I tested it again and all passed.
Small change was in the condition of conversion of GB.


Release Request

🙏 Apologies if this is not the appropriate forum for such a request, but can we get a new release created?
I'd like to use https://github.com/google/go-github/pull/2530 on a downstream change in https://github.com/integrations/terraform-provider-github/issues/1210

Yes, I can work on putting together a release.

This release contains the changes you requested: https://github.com/google/go-github/releases/tag/v48.1.0
Closing issue as resolved.