Incorrect error after modifying HLint

Given Ghcide HEAD, Windows, GHC 8.6.5, 64bit, VS Code and HLint HEAD (https://github.com/ndmitchell/hlint) I get an error. ghcide on the command line works fine. However,, if I:

Open the file src\Hint\Bracket.hs - observe no errors or warnings.
Introduce a parse error, correctly see a parse error.
Remove the parse error. I would expect no errors or warnings but I get:

{
	"resource": "/C:/Neil/hlint/src/Hint/Bracket.hs",
	"owner": "_generated_diagnostic_collection_name_#0",
	"severity": 8,
	"message": "• Overlapping instances for Uniplate a\n    arising from a use of ‘holes’\n  Matching instances:\n    instance Data a => Uniplate a\n      -- Defined in ‘Data.Generics.Uniplate.Data’\n    instance Uniplate BriDoc\n      -- Defined in ‘Language.Haskell.Brittany.Internal.Types’\n  (The choice depends on the instantiation of ‘a’\n   To pick the first instance above, use IncoherentInstances\n   when compiling the other instance declarations)\n• In the second argument of ‘($)’, namely ‘holes o’\n  In the expression: zipFrom 0 $ holes o\n  In a stmt of a list comprehension:\n    (i, (x, gen)) <- zipFrom 0 $ holes o",
	"source": "typecheck",
	"startLineNumber": 197,
	"startColumn": 73,
	"endLineNumber": 197,
	"endColumn": 80
}

It points at holes o.  I suspect a related factor is that Data.Generics.Uniplate.Data defines a global Uniplate instance, which does indeed conflict with Uniplate BriDoc, but I'm at a loss as to how Brittany gets loaded at all. The fact we load Brittany in fact seems like a bug on its own, as its likely costing time/memory to do so.
No idea how to debug from here, but happy to give it a prod if someone tells me how.

This points to the rule for the suggested imports code action, which loads all the explicit package dependencies (intended from -package flags) to build a table of the things they export. This is consistent with the fact that you don't see the problem until you introduce an error, because until then the code actions "suggest" function has not had a chance to run and invoke the rule.
Are you using a direct cradle? If so, you need to improve it in order to hide-all-packages and then enumerate the real package dependencies. Otherwise the code rule above will load all the packages in your package database (which looks like isn't sandboxed either).
https://github.com/digital-asset/ghcide/blob/0c9a0961abbeef851b4117e6408f15a6d46eb1f1/src/Development/IDE/Plugin/CodeAction/Rules.hs#L35-L45

I am using a direct cradle without any sandboxing. It seems a shame we treat no package flags as all package flags. Should we be only looking for more proof-positive evidence that a package is used, like type checking required it? It seems gratuitous to load up everything, but maybe I'm just a dinosaur not using sandboxes?
Second question, why does merely loading the Brittany package mean its instance ends up in my project? I don't import Brittany in this or any transitive imports. Compilation works fine. But somehow it's instance conflicts with one of mine.

Note that I just changed HLint so HEAD no longer uses the orphan instances, and have updated the initial comment to mention the commit id.

I am using a direct cradle without any sandboxing. It seems a shame we treat no package flags as all package flags. Should we be only looking for more proof-positive evidence that a package is used, like type checking required it? It seems gratuitous to load up everything, but maybe I'm just a dinosaur not using sandboxes?

The evidence comes directly from GHC, which indeed puts all the packages in scope by default. Deviating from GHC is likely to cause issues in other scenarios - for instance at work, where we drive GHC directly with a custom build system, sanboxed package databases, and a direct cradle without -package flags.
Loading the packages is a bit wasteful but since they are assumedly dependencies, they would end up  being loaded anyway. In practice it only happens once, it's extremely quick, and doesn't constitute a problem even with very large package databases as long as the cradle is faithfully listing the dependencies or the package database is sandboxed.

Second question, why does merely loading the Brittany package mean its instance ends up in my project? I don't import Brittany in this or any transitive imports. Compilation works fine. But somehow it's instance conflicts with one of mine.

This is because we load the packages in the same GHC session. I contemplated the idea of cloning the session, loading the packages, extracting the table, and throwing the session away. It looks like this would fix your problem so maybe it's worth doing (does anyone know how to clone a GHC session?)

This is because we load the packages in the same GHC session as your project.

But if I'd actually used Brittany in a different module, which wasn't imported by the module that uses the instance in question, GHC would have not warned about the module, even in ghci with reloading, but it sounds like ghcide would? Is that because we jump back and forward with our sessions a bit more freely?
If this only happens with orphan instances, and remains relatively rare, then we can probably live with it.


Unable to process features when select second feature todo Union.

when i try to merge two feature got Error:- Unable to process features
Also,
I created Vector layer using vector source url (geoserver).
So, how can i update changes in postgis db ?
how can i build undo, redo controls and split feature

@aim8526 do you use the last version ?   a codepen/jsfiddle/codesandbox example would be nice.

how can i build undo, redo controls and split feature
To build undo/redo functionnality, just clone the content of your vector source on each change  then reapply it .

So, how can i update changes in postgis db ?
have a look to WFS-T OGC specification.  Geoserver implements  it

I have not found any codepen or sandbox for openlayer-editor.
Can you share the code snippets or code documentation for the same.
On Tue, 22 Oct, 2019, 6:05 PM oterral<EMAIL_ADDRESS>wrote:

@aim8526 https://github.com/aim8526 do you use the last version ? a
codepen/jsfiddle/codesandbox example would be nice.
how can i build undo, redo controls and split feature
To build undo/redo functionnality, just clone the content of your vector
source on each change then reapply it .
So, how can i update changes in postgis db ?
have a look to WFS-T OGC specification. Geoserver implements it
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/geops/openlayers-editor/issues/144?email_source=notifications&email_token=AIGNPQG4XQVS3DTZYLJWMTTQP3XQFA5CNFSM4JDMOVT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB5SEFQ#issuecomment-544940566,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIGNPQBHA2NTW4RXUWYE3EDQP3XQFANCNFSM4JDMOVTQ
.


Mismatch between .bs.js and .re.js when adding [@genType] to a shadowed variable

Suppose we have the following Module.re:
[@genType]
let test = (~test) => Js.log(test);

let test = () => test(~test="test");

genType would generate types for the first test in Module.re.js, since the annotation was applied there:
const test: <T1>({| +test: T1 |}) => void = function <T1>(Arg1: $any) {
  const result = ModuleBS.test(Arg1.test);
  return result
};;
exports.test = test

But the implementation in Module.bs.js would be for the second test:
function test(param) {
  console.log("test");
  return /* () */0;
}

@a7c to double check: in this case nothing would be exported right?
There's also the issue that if both are annotated, then 2 values with the same name are exported, which is also an error.


Your Issues/Pull Requests

GitHub has the following two pages:
https://github.com/pulls
https://github.com/issues
These show all of your open pull requests and issues irrespective of their repository, would be nice if we could surface this somehow (maybe as an extension to user profiiles #317 if it's my profile?)

I recall there not being APIs for this, but not sure... 🤔
Sent with GitHawk

@BasThomas v4 request outputs the same information as https://github.com/issues (Haven't checked v3, but we'd want v4 anyway 😉)
query {
  viewer {
    issues(first: 10, orderBy: { field: CREATED_AT, direction:DESC }) {
      nodes {
        ... on Issue {
          title
        }
      }
    }
  }
}


how to support multi channel input?

for example, does NEremap support BGRA8888 input? tx
remap

No, you have to do a channel extract then do a remap per channel.
Most computer vision algorithms are performed on grayscale images, that's why most of the functions only support U8.

@AnthonyARM thank you! so i have to transform RGBA  into Tensor with 4 feature_maps to do remap.

Assuming question has been addressed. Closing issue. Reopen if required!


Bad tag for 4.7.2 ?

According to https://packagist.org/packages/ramsey/uuid and https://github.com/ramsey/uuid/releases/tag/4.7.2
4.7.2 is 008f6cea262fbb26139757e153b451fcd0ac179d
But 008f6cea262fbb26139757e153b451fcd0ac179d is a 5.x commit
I think 4.7.2 should be 5b1cd8a6cb62a438694eab8af99dcdc9f3d4df67

Ugh. I might have been in the wrong branch when I tagged. 🤦♂
Thanks for catching this. I'll fix it ASAP.

Thanks, @remicollet!
I've deleted the bad tag and have created a new tag for 4.7.2. I've also created a new tag for 4.7.3 to help those who might have already updated to 4.7.2.
Sorry, everyone!

https://github.com/ramsey/uuid/releases/tag/4.7.2
https://github.com/ramsey/uuid/releases/tag/4.7.3


nable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length.

Hi.
I am attempting to get bark set up on my local machine.
Here are the following steps that I have done:

Created an virtual environment and activated it
I've installed transformers package  suing pip install transformers
Installed this library with pip install git+https://github.com/suno-ai/bark.git
And then basically copy and pasted the starter code in the readme file:

from transformers import AutoProcessor, BarkModel
import scipy
import os

os.environ["SUNO_OFFLOAD_CPU"] = "True"
os.environ["SUNO_USE_SMALL_MODELS"] = "True"

processor = AutoProcessor.from_pretrained("suno/bark")
model = BarkModel.from_pretrained("suno/bark")

voice_preset = "v2/en_speaker_6"

inputs = processor("Hello, my dog is cute", voice_preset=voice_preset)

audio_array = model.generate(**inputs)
audio_array = audio_array.cpu().numpy().squeeze()

# write to a wav file:
sample_rate = model.generation_config.sample_rate
scipy.io.wavfile.write("bark_out.wav", rate=sample_rate, data=audio_array)

When I run this, I get the following two errors:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "c:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\main.py", line 1, in <module>
    from transformers import AutoProcessor, BarkModel
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\transformers\__init__.py", line 26, in <module>
    from . import dependency_versions_check
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\transformers\dependency_versions_check.py", line 16, in <module>
    from .utils.versions import require_version, require_version_core
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\transformers\utils\__init__.py", line 34, in <module>
    from .generic import (
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\transformers\utils\generic.py", line 462, in <module>
    import torch.utils._pytree as _torch_pytree
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\torch\__init__.py", line 2120, in <module>
    from torch._higher_order_ops import cond
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\torch\_higher_order_ops\__init__.py", line 1, in <module>
    from .cond import cond
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\torch\_higher_order_ops\cond.py", line 5, in <module>
    import torch._subclasses.functional_tensor
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\torch\_subclasses\functional_tensor.py", line 42, in <module>
    class FunctionalTensor(torch.Tensor):
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\torch\_subclasses\functional_tensor.py", line 258, in FunctionalTensor
    cpu = _conversion_method_template(device=torch.device("cpu"))
C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\torch\_subclasses\functional_tensor.py:258: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\utils\tensor_numpy.cpp:84.)
  cpu = _conversion_method_template(device=torch.device("cpu"))
C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\torch\nn\utils\weight_norm.py:134: FutureWarning: `torch.nn.utils.weight_norm` is deprecated in favor of `torch.nn.utils.parametrizations.weight_norm`.
  WeightNorm.apply(module, name, dim)
C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\transformers\models\encodec\modeling_encodec.py:120: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
  self.register_buffer("padding_total", torch.tensor(kernel_size - stride, dtype=torch.int64), persistent=False)
Traceback (most recent call last):
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\transformers\feature_extraction_utils.py", line 190, in convert_to_tensors
    tensor = as_tensor(value)
             ^^^^^^^^^^^^^^^^
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\transformers\feature_extraction_utils.py", line 149, in as_tensor
    return torch.tensor(value)
           ^^^^^^^^^^^^^^^^^^^
RuntimeError: Could not infer dtype of numpy.int64

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\main.py", line 13, in <module>
    inputs = processor("Hello, my dog is cute", voice_preset=voice_preset)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\transformers\models\bark\processing_bark.py", line 271, in __call__
    voice_preset = BatchFeature(data=voice_preset, tensor_type=return_tensors)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\transformers\feature_extraction_utils.py", line 79, in __init__
    self.convert_to_tensors(tensor_type=tensor_type)
  File "C:\Users\ikech\Documents\CodingProjects\BarkTextToSpeech\.venv\Lib\site-packages\transformers\feature_extraction_utils.py", line 196, in convert_to_tensors
    raise ValueError(
ValueError: Unable to create tensor, you should probably activate padding with 'padding=True' to have batched tensors with the same length.

I'm a bit new to working with this library. Please assist if possible.

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

@goncastrum I'm not downloading a random file from mediafire. This will not fix my problem.

I think it is saying that numpy version should 1.x not 2.x. You can do a force uninstall and install.

@bharattrader Just checked my numpy version: it is 1.26.4

It worked for me. Just switch numpy version to 2.x.x  by "pip install -U numpy"


Add more CDN support for listed dependencies

The following JS SDK 2.0 dependencies are available on CDNJS and can be used:

https://cdnjs.com/libraries/es6-promise
https://cdnjs.com/libraries/fetch
https://cdnjs.com/libraries/pubnub

Done in commit b020624.


Load pointer and length of a list before creating the block for the deallocation loop.

Currently the block for the deallocation loop gets generated before the pointer and the length of the list.
In the haskell generator this leads to the problem where the variables that store the pointer/length are pushed to the inner block rather than the outer one (since I always just push all code to the last block on the “block-stack”) making them inaccessible for the loop setup itself. Both Rust and C do not store the pointer/length in variables, just pushing the code to load them onto the results directly.
This solves that issue by simply getting them before the inner block is created. I don’t think this will break any other generators, tho I can’t test most of them on my machine.
Alternatively I could keep track of the current active block manually rather than assuming it’s the last one but I would prefer this solution instead if possible.

Seems reasonable to me, thanks! The CI failures should be fixed by https://github.com/bytecodealliance/wit-bindgen/pull/998


Option to fail on focused tests

For expecto I built an option to let the whole test suite fail if there are focused tests. This is important for CI and detects the case when a dev commits a focus by accident. Is this supported as well?
Easiest thing that I think would work is a function that maps recursively over test lists and returns true if a focus was set.

Runner configuration are not supported in the Mocha.runTests function because it only accepts a test suite. It is possible to add another function Mocha.runTestsWithConfig that takes a configuration record with options such as this one. This is defintely nice to have and a PR would really appreciated :smile:

I don't really think I want to deal with runner config. I just want to habe
a function that takes a test list and returns true if a focus was set. This
would be a useful piece
Zaid Ajaj<EMAIL_ADDRESS>schrieb am Fr., 8. Nov. 2019, 17:25:

Runner configuration are not supported in the Mocha.runTests function
because it only accepts a test suite. It is possible to add another
function Mocha.runTestsWithConfig that takes a configuration record with
options such as this one. This is defintely nice to have and a PR would
really appreciated 😄
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Zaid-Ajaj/Fable.Mocha/issues/12?email_source=notifications&email_token=AAAOANDQFZVX7OAK4OLFJZLQSWHHDA5CNFSM4JKZTJBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDST2CA#issuecomment-551894280,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAOANGFHSKZLJWOLRKVCBDQSWHHDANCNFSM4JKZTJBA
.

This can be done externally by pattern matching on the test type:
  let rec findFocused (tests: TestCase list) : string list =
    tests
    |> List.collect (
      function
      | SyncTest(name, _, Focused)
      | AsyncTest(name, _, Focused) -> [ name ]
      | SyncTest(_)
      | AsyncTest(_) -> []
      | TestList(name, tests)
      | TestListSequential(name, tests) ->
        findFocused tests |> List.map (fun test -> $"{name} > {test}")
    )

  let failOnFocusedInCI tests =
    if getEnv "CI" |> Option.contains "true" then
      let focused = findFocused [ tests ]
      if focused.Length > 0 then
        let focused = String.Join("\n", focused |> Seq.map (fun test -> $"- {test}"))
        failwith $"Found focused tests:\n%s{focused}"


Evaluation measure remains after several iterations, epochs...What could be the reason?

Iam trying to enhance semantic segmentation results  by replacing resnet 101 by resnet152. However
training loss remains same even after several epochs, iterations. Kindly suggest what could be the reason?

Did you adjust the learning rate after it's "fixed" for a while?

No didn't change the learning rate. I retained the old framework which was used and only change I did replace resnetr 101 with resnet152 and  probing the weights at  appropriate places resnet152. Kindly suggest how to go ahead

@eric-haibin-lin do you have any updates on the above issue . Since i didn't change any learning rate. But when i keep the same learning rate, resnet-101 model works fine and loss continously decreases exponentially. But the same behavior doesn't get replicated with resnet-152 model as loss curves remains fixed. Can u kindly provide some insights into this issue. Requesting you to suggest some solution

@apache/mxnet-committers: This issue has been inactive for the past 90 days. It has no label and needs triage.
For general "how-to" questions, our user forum (and Chinese version) is a good place to get help.

@cjolivier01 Could you help label this with Question and close it.
@chowkamlee81 If you are still facing this, please ask on our discussion forum https://discuss.mxnet.io/

Please reopen if you cannot find answer for your questions at https://discuss.mxnet.io/


Icon Request: [types of cancers / more body parts / human organs]

Describe the icon you'd like to see and how you would use it.
Hey everyone -- Congrats on HealthIcons! What a great effort. I see so many awesome icons already. I've got a few more icons I'd love to see available for use. They are for popular types of cancers, which are really just various body parts / human organs with a tumor/cancer growth. Check out the list below and feel free to contact me directly if you want additional help with direction or a link to a presentation I'm making that incorporates these icons :-) Thanks a lot!  These are GREAT @marialyv !!!!

@marialyv ... for the body parts... are you asking for Bladder Cancer or Bladder? We can, of course, do both. Also, for cancer, is it better to show abnormal cells or to show the "ribbon" icon we used for Cervical Cancer?

Hey @marialyv. Currently, we've added the below icons. Rest are on the way! Thanks for being patient with us.

Pancreatic Cancer
Prostate Cancer
Stomach Cancer
Cell Nuclei Cancerous
Cell Nuclei

We've added quite a few of these by now @marialyv . I'm going to mark as closed for now. Thanks for your patience!


App server seems to be stopping without any log trace (Sauce Labs)

Steps to reproduce
We fully understand that there is no official support for Sauce Labs. Nevertheless, we are contributing to the Patrol open-source library, endeavoring to ensure its compatibility with Sauce Labs (https://saucelabs.com/).
So far, we've successfully built and run Android tests 🎉 , but we are encountering difficulties with iOS testing 🔴 . Extensive discussions with Sauce Labs support have brought us some progress, yet we've reached a point where even their insights are exhausted.
In summary, for reasons unclear to us (and untraceable at the moment), the Patrol APP SERVER seems to be non-functional. Moreover, we can't find any errors in the logs that would point to a solution.
We don't believe this is an issue inherent to Patrol. However, we urgently need assistance from the Patrol community for debugging. We've noticed that error handling and reporting could be more descriptive, which complicates the debugging process.
Our primary question is whether anyone has insights into this issue. Is there a specific file or line we could examine to enhance logging and gain more insight into the problem?
Unfortunately, we are unable to compile the Patrol example app (details not included in this ticket), so we cannot provide a public project to replicate the issue.
To reproduce:

Open Sauce Labs account and configure env vars (credentials)
patrol build ios --target integration_test/notice_board_test.dart --simulator --verbose
saucectl run --config .sauce/ios.yml

.sauce/ios.yml
apiVersion: v1alpha
kind: xcuitest
sauce:
  region: eu-central-1
  concurrency: 3
  metadata:
    build: ios Test Local

xcuitest:
  app: build/ios_integ/Build/Products/Debug-staging-iphonesimulator/Runner.app
  testApp: build/ios_integ/Build/Products/Debug-staging-iphonesimulator/RunnerUITests-Runner.app

suites:
  - name: "saucy xcuitest - sims"
    timeout: 3m
    simulators:
      - name: "iPhone 14 Simulator"
        platformVersions:
          - "latest"

Actual results
https://github.com/leancodepl/patrol/assets/3902581/7a2a1b2e-4379-468a-ae1d-e25e744f505d
App crashes.
NOTE
We are using patrol from source (local) because we wanted to inject few more log lines for debugging purposes. You will see those below in the logs.
Logs

xcodebuild Logs
Command line invocation:
    /Volumes/Xcode/Xcode_14.2.app/Contents/Developer/usr/bin/xcodebuild test-without-building -derivedDataPath /Users/chef/xcuitest_dir/derivedDataPath -xctestrun /Users/chef/xcuitest_dir/sauce.xctestrun -destination "platform=iOS Simulator,name=iPhone 14,OS=16.2"

User defaults from command line:
    IDEDerivedDataPathOverride = /Users/chef/xcuitest_dir/derivedDataPath
    IDEPackageSupportUseBuiltinSCM = YES

2023-12-28 23:17:30.944 RunnerUITests-Runner[4076:26296] PatrolServer: INFO: PATROL_TEST_PORT is null, falling back to default (8089)
2023-12-28 23:17:30.947 RunnerUITests-Runner[4076:26296] PatrolServer: INFO: PatrolServer constructor called
2023-12-28 23:17:30.948 RunnerUITests-Runner[4076:26296] PatrolServer: INFO: PATROL_ENABLED flag is defined
2023-12-28 23:17:30.952 RunnerUITests-Runner[4076:26296] PatrolServer: INFO: Starting server...
2023-12-28 23:17:30.959 RunnerUITests-Runner[4076:26296] PatrolServer: INFO: Server started on http://<IP_ADDRESS>:8089
2023-12-28 23:17:30.960 RunnerUITests-Runner[4076:26296] PatrolServer: INFO: PATROL_APP_PORT is null, falling back to default (8092)
2023-12-28 23:17:30.961 RunnerUITests-Runner[4076:26296] PatrolAppServiceClient: created, port: 8092
    t =      nans Checking existence of `"Allow" Button`
    t =      nans Open com.***flutter
    t =      nans     Launch com.***flutter
    t =      nans         Setting up automation session
    t =      nans         Wait for com.***flutter to idle
2023-12-28 23:17:36.629 RunnerUITests-Runner[4076:26349] PatrolServer: INFO: App reported that it is ready
2023-12-28 23:17:37.172 RunnerUITests-Runner[4076:26296] PatrolAppServiceClient.listDartTests()
2023-12-28 23:17:37.173 RunnerUITests-Runner[4076:26296] custom-url, url: http://localhost:8092/listDartTests
2023-12-28 23:17:37.337 RunnerUITests-Runner[4076:26349] PatrolAppServiceClient.listDartTests(): succeeded
2023-12-28 23:17:38.181 RunnerUITests-Runner[4076:26296] Got 1 Dart tests: (
    "notice_board_test Notice board navigation test"
)
2023-12-28 23:17:38.181 RunnerUITests-Runner[4076:26296] RunnerUITests.testInvocations(): selectorName = notice_board_test Notice board navigation test, signature: <NSMethodSignature: 0xb5d7be2b32b55577>
Test Suite 'All tests' started at 2023-12-28 23:17:38.187.
Test Suite 'RunnerUITests.xctest' started at 2023-12-28 23:17:38.189.
Test Suite 'RunnerUITests' started at 2023-12-28 23:17:38.190.
Test Case '-[RunnerUITests notice_board_test Notice board navigation test]' started.
    t =     0.00s Start Test at 2023-12-28 23:17:38.192
    t =     0.07s Set Up
    t =     0.07s Open com.***flutter
    t =     0.13s     Launch com.***flutter
    t =     0.13s         Terminate com.***flutter:4080
    t =     1.41s         Setting up automation session
    t =     2.74s         Wait for com.***flutter to idle
2023-12-28 23:17:42.458 RunnerUITests-Runner[4076:26347] PatrolServer: INFO: App reported that it is ready
2023-12-28 23:17:43.316 RunnerUITests-Runner[4076:26296] PatrolAppServiceClient.runDartTest(notice_board_test Notice board navigation test)
2023-12-28 23:17:43.319 RunnerUITests-Runner[4076:26296] custom-url, url: http://localhost:8092/runDartTest
2023-12-28 23:17:45.232 RunnerUITests-Runner[4076:26349] custom-err, failed with error: Invalid response: nil nil
2023-12-28 23:17:45.235 RunnerUITests-Runner[4076:26349] runDartTest("notice_board_test Notice board navigation test"): call finished, test result: CRASHED
/Users/igor/source/github.com/***finans/***-flutter/ios/RunnerUITests/RunnerUITests.m:5: error: -[RunnerUITests notice_board_test Notice board navigation test] : ((passed) is true) failed - (no details - app likely crashed)
    t =     7.64s Tear Down
    t =     7.65s Checking for crash reports corresponding to unexpected termination of com.***flutter
Test Case '-[RunnerUITests notice_board_test Notice board navigation test]' failed (27.670 seconds).
Test Suite 'RunnerUITests' failed at 2023-12-28 23:18:05.861.
	 Executed 1 test, with 1 failure (0 unexpected) in 27.670 (27.672) seconds
Test Suite 'RunnerUITests.xctest' failed at 2023-12-28 23:18:05.862.
	 Executed 1 test, with 1 failure (0 unexpected) in 27.670 (27.674) seconds
Test Suite 'All tests' failed at 2023-12-28 23:18:05.865.
	 Executed 1 test, with 1 failure (0 unexpected) in 27.670 (27.678) seconds
2023-12-28 23:18:06.158 xcodebuild[4071:26206] [MT] IDETestOperationsObserverDebug: 38.571 elapsed -- Testing started completed.
2023-12-28 23:18:06.158 xcodebuild[4071:26206] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2023-12-28 23:18:06.158 xcodebuild[4071:26206] [MT] IDETestOperationsObserverDebug: 38.571 sec, +38.571 sec -- end

Test session results, code coverage, and logs:
	/Users/chef/xcuitest_dir/derivedDataPath/Logs/Test/Test-Transient Testing-2023.12.28_23-17-27-+0000.xcresult

Failing tests:
	-[RunnerUITests notice_board_test Notice board navigation test]

** TEST EXECUTE FAILED **

Testing started

Pay attention to
2023-12-28 23:17:45.232 RunnerUITests-Runner[4076:26349] custom-err, failed with error: Invalid response: nil nil
Above is telling us that server is not running for some reason however, we can't say that for sure as we are not that familiar with Patrol source so far.
Patrol version
patrol: 3.3.0
Patrol Doctor output

Patrol Doctor output
Patrol CLI version: 2.4.0
Program adb found in /Users/xxxx/source/install/android/sdk//platform-tools/adb
Env var $ANDROID_HOME set to /Users/xxxx/source/install/android/sdk/
Program xcodebuild found in /usr/bin/xcodebuild
Program ideviceinstaller not found (install with `brew install ideviceinstaller`)

Flutter Doctor output

Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.2, on macOS 14.1.1 23B81 darwin-arm64, locale en-SE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.84.2)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!

The problem was caused by the busy port and also app crashing for some reason when using Impeller engine. If anyone is looking for a solution please do the following:

change the default ports used by test server and app server. You can do it by passing --test-server-port and --app-server-port commands when build the app for tests.
Disable Impeller for the test run by adding this code to your Info.plist:

<key>FLTEnableImpeller</key>
<false />


[issue]: automate appium-mac2-driver requirements of Xcode install

Hi,
my goal is create fully e2e automation with appium-mac-driver:
use case:

create mac mini vm instance in AWS
install my app for testing inside the mac vm
test the app via appium-mac2-driver  inside mac vm

setup appium mac requirments : https://github.com/appium/appium-mac2-driver#requirements
tests

teardown of the mac vm instance

all flow runs from Jenkins
macOS versions >= 10.15 (Catalina)

problems and errors:
after all flow runs and appium server runs inside mac machine got the following error:
[WebDriverAgentMac] Cannot perform project cleanup. Original error: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

should be related to Xcode?
I got blockers when I tried to install Xcode  in automation flow .

found this article how to install : https://www.moncefbelyamani.com/how-to-install-xcode-with-homebrew/
problem :  before use mas  cli command  to install xcode I must to signin to apple id ,
but  Signin command disabled on macOS 10.13+ : https://github.com/mas-cli/mas/issues/164
anyone have any idea how can I workaround this blocker? how can I install xcode from mac os terminal?

You might need to set xcode-select for /Applications/Xcode.app/Contents/Developer, which requires Xcode. The default /Library/Developer/CommandLineTools is probably newer macOS's default one, which does not have Xcode initially

how can I set it?
is there any commands?

xcode-select -s /path/to/Xcode.app/Contents/Developer. man xcode-select tells more details

Thank you, but in any case I must be with installed xcode yes?
my issue is to install it silently via command line because of apple limitations via mas cli:
but Signin command disabled on macOS 10.13+ : https://github.com/mas-cli/mas/issues/164
it can be done only with gui via app store?

You need the Xcode env to build modules, and handle some commands by it.
Officially AppStore, or the developer page https://developer.apple.com/download/

@dimag25 Did you find a solution for installing xcode on your mac mini vm instance? I'm doing the exact same thing and encountering the same error


Add Implementation of  L1 arrow compaction

Closes #433

Parts are not guaranteed to have the same number of columns( when dyncamic columns are involved). For each compaction call we collect all columns observed across all parts.  For dynamic columns, to ensure all columns have the same number of rows, we fill them with nulls when they are not found in a part.
Initially I had thought since we expect parts to be sorted , then  merging them should be enough. However, I have doubts about this.

We support multiple columns sort (including dynamic columns), the new part will contain nulls in  no guaranteed order which messes up sorting expectation.
We operate under assumptions that main sorting column behaves like timestamp which is always increasing. When using different main sorting column. It doesn't matter much if the part was sorted before. New record must be sorted for sorting to make sense.

Seems to be bigger than I anticipated. Closing this for now, will focus on smaller patches.


Auth::user() is null when using access_token

Hi!
It would be great if after the oauth filter, the Auth::user() get's populated instead of having to call the ResourceServer::getOwnerId() and then get current user.
Kind Regards,

I have an issue where I need to get able to get Auth::user() to be populated all the time.  I have two different authentication mechanisms setup ( OAuth2 and SSO via Active Directory ) so I need a way to get the users ID and info that works across both methods of authentication.  Can you recommend a method to be able to do this?  I don't want to have to check if OAuth was used every time I want to get a user's info or ID.


Add React to useRef to fix useRadioGroup doc example rendering

Closes #1589
✅ Pull Request Checklist:

[X] Included link to corresponding React Spectrum GitHub Issue.
[X] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[X] Filled out test instructions.
[X] Updated documentation (if it already exists for this component).
[X] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:
I currently do not see any tests that cover the examples in the documentation.
Please correct me if I'm wrong, I'd gladly update them.
🧢 Your Company/Team
Individual/Individual

Closing PR and reopening as instructed by the CLA signing process.


Delete a Miro image from the storage service

We've had a request from Collections to suppress a single Miro image, and completely purge it from storage – we need to work out how to do this in the storage service.

Closing as done; I wanted to add some more details to the "delete bag" page and include my script for opening the initial Service Desk ticket.


Hide device info prints in Python

🐛 Bug / feature(?)
Whenever running COMET from the huggingface-evaluate library, I get the following output:
GPU available: True, used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]

When running the evaluation iteratively, it breaks the tqdm progress bar. I tried overriding the std* buffer before and flushing it before I revert it back, but the output is still there.
sys.stderr = io.StringIO()
comet_metric.compute(...)
sys.stderr.flush()
sys.stderr = sys.__stderr__

To Reproduce
Simply run the scoring from Python.
Expected behaviour / feature description
To be able to pass a quiet or verbose=0 flag to the scoring function to not output the device info.
Screenshots
 39%|████████████████▋                          | 14/36 [00:24<00:26,  1.19s/it]GPU available: True, used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
 42%|█████████████████▉                         | 15/36 [00:25<00:23,  1.14s/it]GPU available: True, used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
 44%|███████████████████                        | 16/36 [00:26<00:24,  1.21s/it]GPU available: True, used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
 47%|████████████████████▎                      | 17/36 [00:28<00:25,  1.35s/it]GPU available: True, used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
 50%|█████████████████████▌                     | 18/36 [00:29<00:24,  1.35s/it]GPU available: True, used: True
TPU available: False, using: 0 TPU cores
IPU available: False, using: 0 IPUs
HPU available: False, using: 0 HPUs
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0]
 53%|██████████████████████▋                    | 19/36 [00:31<00:24,  1.42s/it]GPU available: True, used: True

Both pytorch lightning and transformers are very verbose.
I am adding a --quiet  flag that sets all loggers to ERROR level. It will be included in the next release

Its in the README:
comet-score -s src.de -t hyp1.en -r ref.en --quiet --only_system

@ricardorei but the issue mentions calling comet from python. So am I. Not the cli

You are right. It's just solved for the CLI interface. Ill reopen the issues as the current behaviour is still not the expected behaviour.
Meanwhile I'll leave here a snippet on how to run it in a quiet mode and silencing the underlying libraries.
import logging
loggers = [logging.getLogger(name) for name in logging.root.manager.loggerDict]
for logger in loggers:
    logger.setLevel(logging.WARNING)

Finally, you can run COMET with progress_bar=False :
model_output = model.predict(data, batch_size=8, gpus=1, progress_bar=False)

I'm also getting a pytorch_lightning warning once I implement the code you suggested.
PossibleUserWarning: `max_epochs` was not set. Setting it to 1000 epochs. To train without an epoch limit, set `max_epochs=-1`.
  rank_zero_warn(


Update Amazon 2 AMI tests setup

The ZTS test case "zfs_share_005_pos" is failing on the Amazon 2 builder:
Test: /usr/share/zfs/zfs-tests/tests/functional/cli_root/zfs_share/zfs_share_005_pos (run as root) [00:00] [FAIL]
00:21:08.63 ASSERTION: Verify that NFS share options are propagated correctly.
00:21:08.65 SUCCESS: zfs set sharenfs=off testpool/testfs
00:21:08.71 SUCCESS: zfs set sharenfs=ro testpool/testfs
00:21:08.77 SUCCESS: zfs set sharenfs=rw testpool/testfs
00:21:08.82 SUCCESS: zfs set sharenfs=rw,insecure testpool/testfs
00:21:08.84 The 'insecure' option was not found in share output.

This is caused by the NFS server not being started. The latest Amazon 2 AMI introduced in 9118583b no longer uses SysV as the init system (http://build.zfsonlinux.org/builders/Amazon 2 x86_64 Release (TEST)/builds/3419/steps/shell_4/logs/stdio):
sudo: /etc/init.d/watchdog: command not found
sudo: /etc/init.d/rpcbind: command not found
sudo: /etc/init.d/nfs: command not found
sudo: /etc/init.d/smb: command not found

Update the "bb-test-prepare.sh" script to use systemd.
NOTE: i don't have access to Amazon, i hope i got the service names right.

Thank you for running this run!  LGTM.


Fix subcategory update redirection

I want to merge this change because it fixes #4798
With this fix, form into subcategory page is been removed and subcategory's update redirects to the parent category page.

Screenshots
BEFORE

AFTER

Pull Request Checklist

[ ] Privileged views and APIs are guarded by proper permission checks.
[ ] All visible strings are translated with proper context.
[ ] All data-formatting is locale-aware (dates, numbers, and so on).
[ ] Database queries are optimized and the number of queries is constant.
[ ] Database migration files are up to date.
[x] The changes are tested.
[ ] GraphQL schema and type definitions are up to date.
[ ] Changes are mentioned in the changelog.

Here is the report for dc101968b619579013356eea4ab32c59a2fd777c (iflare3g/saleor @ feature/fix-category-update-redirect)
Base comparison is 6f80633a5e9d88675fb78d1a22d1d763dfe6aeae.
No differences were found. (click me)

# api.benchmark checkout
  test name                                  	left count 	right count	duplicate count
  -------------------------------------------	-----------	-----------	---------------
  add billing address to checkout            	         34	         34	             20
  add shipping to checkout                   	          7	          7	              0
  checkout payment charge                    	         14	         14	              0
  complete checkout                          	          6	          6	              0
  create checkout                            	         48	         48	             24

# api.benchmark homepage
  test name                                  	left count 	right count	duplicate count
  -------------------------------------------	-----------	-----------	---------------
  retrieve main menu                         	          5	          5	              0
  retrieve product list                      	          4	          4	              0
  retrieve secondary menu                    	          5	          5	              0
  retrieve shop                              	          2	          2	              0

# api.benchmark product
  test name                                  	left count 	right count	duplicate count
  -------------------------------------------	-----------	-----------	---------------
  product details                            	         15	         15	              3
  retrieve product attributes                	         13	         13	              2

# api.benchmark variant
  test name                                  	left count 	right count	duplicate count
  -------------------------------------------	-----------	-----------	---------------
  retrieve variant list                      	         18	         18	              8

# api product sorting attributes
  test name                                  	left count 	right count	duplicate count
  -------------------------------------------	-----------	-----------	---------------
  sort product not having attribute data     	         21	         21	              0

Hey, thanks for opening the PR. Sorry for not giving any input earlier, but I think it's expected to have the "sub-categories" form when you're already viewing a subcategory. Categories are based on a tree structure and can be nested. You should be able to create structures like:

Apparel

T-shirts

Basic
Polo

This is a general idea of how categories work and I think it should stay like that.

Maybe I misunderstood the issue, but if we kept the form on a subcategory page, then staying on that page after editing it also makes sense, because you may want to keep editing this page.

No worries.
So that issue isn't a valid one , right ? So this "fix" is not useful.

I can imagine the behavior you suggested in the issue would be correct in some use-cases. If this is valid in your case than you should customize Saleor to use it. But in general terms, I think the behavior we have now is reasonable. I should have written that in the issue - sorry for the confusion.

@iflare3g I'll close the PR and the issue, but we really appreciate your effort and would like to send you the gift anyway for participating in Hacktoberfest.

No worries and thanks for the gift!
I'll try to contribute to other relevant issues!


Do not colorise output of kubecolor.exe __complete

Can we please add logic to always pass through the output of kubecolor.exe __complete in plain text. Without this in plain text it breaks the auto-completion in Powershell since Powershell calls this function to receive next arguments for auto-completion. Since users are not calling this directly it should not impact general workflow of kubecolor.
As a temporary workaround, I had this added in my Powershell autocomplete script
  if(((Get-Alias kubectl).Definition) -eq 'kubecolor'){
    $Program = $Program + ' --plain'
  }

I'm new at golang but happy to take a stab with some hand holding :)

Looks like this is fixed in https://github.com/hidetatz/kubecolor/pull/93
@hidetatz Can we please merge this?

I think I hit the issue with zsh...

This is fixed in the new clone of the project.
Get it at https://github.com/kubecolor/kubecolor
or
brew install kubecolor/tap/kubecolor
or
go install github.com/kubecolor/kubecolor/cmd/kubecolor@latest

This should be fixed now. Please reopen if it still persists


Clarify the actual effects of -nographics -batchmode from PR #21

In PR https://github.com/lloesche/valheim-server-docker/pull/21 we added two CLI options to the server.
Can we have someone knowledgeable in Unity Game development clarify the exact effect of running the server with
-nographics -batchmode

The PR says This leads to 10% less CPU usage and less desync lag on my server. Before merging I tested the option and while I did not see any effect on my CPU usage I also did not see any adverse effect so approved the PR. But I am unclear on what exactly it does from a technical point of view.
My research found the following information: https://docs.unity3d.com/Manual/CommandLineArguments.html

Command
Detail

-batchmode
Run Unity in batch mode. In batch mode, Unity runs command line arguments without the need for human interaction. It also suppresses pop-up windows that require human interaction (such as the Save Scene window); however, the Unity Editor itself opens as usual. You should always run Unity in batch mode when using command line arguments, because it allows automation to run without interruption. When an exception occurs during execution of the script code, the Asset server updates fail, or other operations fail, Unity immediately exits with return code 1. Note that in batch mode, Unity sends a minimal version of its log output to the console. However, the Log Files still contain the full log information. You cannot open a project in batch mode while the Editor has the same project open; only a single instance of Unity can run at a time. To check whether the Editor or Standalone Player is running in batch mode, use the Application.isBatchMode operator.

-nographics
When you run this in batch mode, it does not initialize the graphics device. You can then run automated workflows on machines that don’t have a GPU. Automated workflows only work when you have a window in focus, otherwise you can’t send simulated input commands. -nographics does not allow you to bake GI as Enlighten requires GPU acceleration.

Those however are Unity Engine options not Valheim specific options. So I'd be interested to learn from someone who works with Unity as to what the exact effects - if any - of supplying these options to the Valheim Linux server are.

I don't use Unity myself, but work with Decima Engine. From the looks of it these options only relate to the Unity Editor and not the game itself.
Both options seem to be used when you want to run batch processes inside the editor, for which you don't want any pop-ups or have a graphics card requirement.
They note for example that running a GI bake requires a graphics card, since they probably use the GPU to calculate lighting.

@Gluwc that is what it sounded like to me from the docs. Yet we have users that swear they saw a drop in CPU usage after adding these options. I did not see any change in CPU usage and the args don't seem to hurt but I have a suspicion that it's just a placebo 🙂


wrap all styles in layer

Changes
All itwinui-react styles will now be under a cascade layer named itwinui.v3. This will prevent any and all specificity battles with application styles, thus removing the need for artificially inflating specificity or using !important.
The . in the layer name results in a nested layer, meaning if the user wants to control the final layer order, they can reference the itwinui layer without messing with versions. For example, they can add a reset before itwinui styles.
@layer reset, itwinui, anything-else;

itwinui-css and itwinui-variables are currently unchanged; only itwinui-react's bundled stylesheet is affected. I was investigating adding layers to those too, but Sass makes it a bit difficult so I decided to leave it out. Imo this is ok because it keeps the base stylesheets flexible and the developer always has the ability to import into a layer manually.
I will create separate PRs to add v2 and v1 layers to older versions.
Testing
All existing tests pass because there are no code changes.
Confirmed layers are working by inspecting build output and also by inspecting dev tools.
Tried adding low-specificity rules outside the layer and confirmed they override the higher-specifity rules from itwinui.
Docs
Pending. PR can be reviewed in the meantime.

Is it possible to have some kind of instruction set for the users to correctly use layers in their apps?

Yes i plan to write something up soon.

Tried adding low-specificity rules outside the layer and confirmed they override the higher-specifity rules from itwinui.

I'm still kinda confused how layer work? Isn't this already how it is? Like user's defined styles usually override itwinui's? Or am I misunderstanding something

Tried adding low-specificity rules outside the layer and confirmed they override the higher-specifity rules from itwinui.

I'm still kinda confused how layer work? Isn't this already how it is? Like user's defined styles usually override itwinui's? Or am I misunderstanding something

No, usually it depends on specificity and order of appearance. For example, if an itwinui selector is .iui-expandable-block[data-iui-size='small', it has a specificity of 0-2-0, so if the user adds a custom class .my-expander, then it will not override itwinui's higher-specificity styles. Layers prevent this issue by bypassing specificity entirely.
You can read more here: https://css-tricks.com/css-cascade-layers/

i've added a changeset, so this is good to merge. still working on proper documentation about layers, will come in a separate PR


SITE_ROOT not working with static files?

I am serving the app with NGINX at https://$static_ip/healthchecks, the web page loads but not static files.
With SITE_ROOT set as https://$static_ip/healthchecks, I suppose the static file url would be
/healthchecks/static/css/bootstrap.css but instead it's just /static/css/bootstrap.css.
What changes should I make?
Thanks in advance.
# healthchecks.conf
server {
    listen          80;
    server_name     $server_static_ip;
    return          301 https://$server_name$request_uri;
}

server {
    listen          443 ssl;
    ssl_certificate /path/to/my.crt;
    ssl_certificate_key /path/to/my.key;

    location /healthchecks {
        proxy_pass       http://localhost:6001/;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header X-Real-IP $remote_addr;
    }
}

# docker-compose.yml
version: '3'
services:
    healthchecks:
        image: galexrt/healthchecks:latest
        restart: always
        ports:
            - '6001:8000'
        volumes:
            - ./static:/healthchecks/static
        environment:
            # general
            SITE_ROOT: 'https://$server_static_ip/healthchecks'
            SITE_NAME: 'HEALTHCHECKS'
            ALLOWED_HOSTS: 'server_static_ip, localhost'
            SECRET_KEY: 'my_secret'
            DEBUG: 'False'
            # DB
            DB: 'mysql'
            DB_HOST: 'database_host'
            DB_PORT: 3306
            DB_NAME: 'healthchecks'
            DB_USER: 'username'
            DB_PASSWORD: 'password'
            # EMAIL
            DEFAULT_FROM_EMAIL<EMAIL_ADDRESS>            EMAIL_HOST: 'smtp.gmail.com'
            EMAIL_PORT: 587
            EMAIL_HOST_USER<EMAIL_ADDRESS>            EMAIL_HOST_PASSWORD: 'password'
            EMAIL_USE_TLS: 'True'
        networks:
            - app-network

networks:
    app-network:
        driver: bridge

Running healthchecks on a subpath doesn't seem to be really working / supported, see https://github.com/healthchecks/healthchecks/issues/382.
You could try setting the options as mentioned by the issue creator and the comments to see if that works for you.

It doesn't work, I'm going to host it separately.
Closing for now.


User scrolling table should see table headings at all times

Fixed with #36 -- preview (for now) at http://harlantwood.github.io/project-repos/


Remove ObjectMap class

Use https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map if suitable

Done with other refactoring.


Using absolute imports in core modules that import grpc.

This is because a relative import (in Python 2.7) was causing failures when google.cloud.grpc was side-by-side with google.cloud._helpers, etc.
For example, see the failure: https://travis-ci.org/GoogleCloudPlatform/google-cloud-python/builds/171149390#L1738-L1750
FYI @geigerj @bjwatson
To repro (before this PR):
$ cd ${GIT_ROOT}
$ tox -e system-tests --recreate --notest
$ source .tox/system-tests/bin/activate
$ .tox/system-tests/bin/py.test system_tests/datastore.py --pdb
...
>       transport_creds = grpc.ssl_channel_credentials()
E       AttributeError: 'module' object has no attribute 'ssl_channel_credentials'

.tox/system-tests/local/lib/python2.7/site-packages/google/cloud/_helpers.py:643: AttributeError
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> entering PDB >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> .tox/system-tests/local/lib/python2.7/site-packages/google/cloud/_helpers.py(643)make_secure_stub()
-> transport_creds = grpc.ssl_channel_credentials()
(Pdb) grpc
<module 'google.cloud.grpc' (built-in)>
(Pdb)

@bjwatson ISTM that in later generations of GAPIC generated code the google.cloud.grpc package is gone. Is this correct?
i.e. it is brought in by the speech deps (uploaded on sept. 30)
https://pypi.python.org/pypi/grpc-google-cloud-speech-v1beta1/0.11.1
https://pypi.python.org/pypi/gapic-google-cloud-speech-v1beta1/0.11.1

Chatted @bjwatson, he confirmed that google.cloud.grpc is here to stay. For packages like speech where the namespace is google.cloud.speech.v1beta1, putting the autogenerated packages in google.cloud.speech.v1beta1.cloud_speech_pb would cause a collision with our package google.cloud.speech (which isn't a namespace package) so the autogenerated are instead in google.cloud.grpc.speech.v1beta1.cloud_speech_pb
/FYI @jonparrott

Yep - remember having that discussion a while back. SGTM.


About page

I slightly expanded the index page, and then rewrote  the 'about' page to include a lot more technical detail.

man I dropped this ball pretty hard.
Running spellcheck...

better now.
Also picked up some spelling errors on the other pages.


Cronet Framework Publish

I'm trying to get the gRPC-Core.podspec to pass the CocoaPods linter (along with some changes to CocoaPods) but right now I'm having an issue with the Cronet-Implementation subspec. When the linker tries to build the final object for the framework, it can't find the implementation for the methods defined in third_party/objective_c/Cronet/bidirectional_stream_c.h. I noticed there used to be a dependency on the CronetFramework pod, but that's no longer present.
I noticed the version in src/objective-c/CronetFramework.podspec is at 0.0.4 and when downloading the framework, it satisfies the linker. Can y'all publish it?

Cronet is currently only for testing purpose in our library; we do not have a plan to publish it at this time (though Cronet framework is public as part of Chromium project). Technically you can make it work on a simulator (and not on a device) by playing with Chromium build and Cocoapods but we do not recommend it.
If you use the pod gRPC, it should not pull in the Cronet-Implementation since it is not a default subspec.

@muxi That doesn't solve the problem of getting gRPC-Core.podspec to pass the CocoaPods linter. What if I moved the cronet pieces into their own podspec so that the primary podspec passes?

Ah yes! The linter! It does look like we should have a dependency to CronetFramework. I am not sure why our linter did not complain about it. I can publish the v0.0.4 version.

It's pushed to Cocoapods

Thanks a ton @muxi !


Tool is misbehaving when using arithmetic blocks on certain instructions

Original post: https://itch.io/post/8664836

Trying to reproduce the bug; so far, the structure, by itself, does not seem to be causing any problem:
trying-to-reproduce-bug-2023-12-02-11-59-33.zip

It must be compounding with something else.


Brownie Points - Give points for time-on-site, Rescale points

Points for Time on Site
We want to encourage users to Always Be Coding, so we should give points for time spent active on the site working problems.  One brownie would be added for every given time period (15 minutes?) that the user spends actively working on a waypoint/challenge.
However, if we're going to be granting points for time on site, we need to scale the points of other activities to give them the appropriate weight.
Note:  we should do some due diligence to ensure that actual "activity" is occurring, we shouldn't stress too much over it.  Brownie Points are a simple incentive and, ultimately, not "worth" anything.
Proposed values

Activity
Points

Active Time on Site (Per Unit)
1

Waypoint
1

Camper News Upvote
1

Thanks on Chatroom
5

Bonfire
15

Zipline
50

Basejump
150

These are very rough values and open to debate.
Transition
Users will keep all points they have already received.  We will re-reward all points at the new level on top of existing points.  This will reward people for the activities they have already completed, while setting the overall scale properly for points generally.

@SaintPeter  Did this spring from a discussion elsewhere?
One could take various approaches for how to give points. Personally, think there is value in trying to match the reward with the perceived effort/pride/value of the activity.   Here's how I would value my own perceived effort/pride for the items I've done:
Waypoint: 1
Receive Camper News Upvote: 1
Receive thanks on Chatroom: 5
Bonfire: 15
Zipline	: 150
Basejump: Haven't done any.
A couple other thoughts:
Giving points for time could have unintended consequences.  One issue is that someone who is slow to complete challenges would get more points per challenge than someone who is more efficient.  Also, some people prefer to work through challenges outside of the FCC editor, and then paste in their code.  On the flip side, with an introduction of points for time, people who are particularly motivated by points could also start doing strange things like working on scripts for their own side projects inside of the FCC editor etc.   Lastly, I think I would find being rewarded for the time spent working on a challenge a bit of a  disincentive.
Also, I doubt it's worth choosing points differently for each challenge, but external tutorial waypoints can be much more involved than the FCC content waypoints since they often lump multiple lessons into one waypoint. They are almost the only thing that don't fit nicely into point categories.  I suppose external tutorials could have their own category, and be called something else.  "Hikes" or "outings" or something similar could  be an appropriate name.

Maybe more like 10 for bonfires, 100 for ziplines.

Yeah, this sprung from a discussion I had with @QuincyLarson and @BerkeleyTrue about points and rewards.
I am not solid on the point values, especially for the later values.  I could easily see Ziplines as 100 or 150.  We'd just have to scale the Basejumps separately.
I agree that it does have a paradoxical effect of giving fewer points to someone who is "less efficient", but I would argue that those are exactly the people who need more motivation to keep going.  Efficiency is it's own reward :wink:.
I'm not sure that we're going to care too much about people who game the system.  The points are, at some level, meaningless.  They only have value if you value them.
For example, I think that people who help out in the /Help channels earn the respect of others not by the amount of points they've gotten, but by the people they've helped in doing so.

To me, it doesn't make sense to give out points for being slow.

Rather than activity in the site, should be chat activity. Even talking about the weather contributes toward relationship building and rapport. Spending 10 hours in the same exercise does not and could encourage the wrong behavior.

@Narshe1412 Couldn't the flip be said of rewarding spending time in the chat rooms? The chats are great and I often hang out in there to help others and get help for myself, but rewarding brownie points for overall chat activity encourages people to hang out in chat which is of ancillary importance to being in a challenge and coding.
Rewarding brownie points for time on site actively coding gets more and more hairy the further along in FCC you get. People working on the first set of Ziplines are probably spending the majority of their time in CodePen or a local text editor. Those even further along are probably working entirely in their own local development environment and logging into FCC just for submitting code.
Though, it's probably true that people who have made it that far, aren't the ones who brownie points are targeted at, there is some amount of weight carried by your brownie point total. If someone in chat provides feedback on a Zipline project and their brownie point total is 1500, it's likely that his/her opinions and critiques will carry more weight than someone who has 200 brownie points.
Personally, I can see it both ways. Keeping brownie points the way they are today, you can look at someone's total and have a pretty good idea of where they are in the program and/or how helpful they have been in chat.
With the proposed change to reward brownie points based on time on site, you'll still be able to look and have a general idea of where someone is in the program and/or how helpful they have been in chat, the window might just be a little wider and fuzzier around the edges. And, you get the added benefit of encouraging those campers who might be struggling with the beginning Waypoints and (especially) Bonfires. Even if they aren't completing challenges, they are making progress by learning through their struggles and are being rewarded for that.

You are right. Unfortunately I haven't reached Ziplines yet to see how time consuming are. I do however consider that engaging with the community should be rewarding, somehow. It's very nice for when you need to have a break and just have some chit chat :)

I'm late to this discussion, but I think this is an important issue and eager to chime in.
Here's why I think it's important that we give points for time on site:

If you're working hard, you shouldn't lose your streak just because you couldn't complete a Bonfire in time. In practice, most campers are quite busy and have less than an hour a day they can dedicate toward working on Free Code Camp.
We want to encourage people to grapple with the coding challenges. By giving them points, we're tacitly telling campers it's OK to stick with it, and their efforts will be rewarded regardless of how long they choose to take.

I agree with @SaintPeter that we don't need to reward campers for going faster. These campers will ultimately get more points anyway, as they'll be able to get significantly more brownie points by helping people.
Proposed values

Activity
Points

Active Time on Site (Per 15 minutes)
1

Non-project challenge
1

Project challenge
50

Camper News Upvote
1

Thanks on Chatroom
10

This weighting assumes that all projects take about the same amount of time, which isn't actually true, but I think it's easier to remember. It's more important for this system to be as simple as possible.
We want Thanks on Chatroom to be by far the most time-efficient way to earn points.
Also, regarding some of the insights that @alan1001110 brought up, yes - these projects are done on external sites (for now). Since they have larger point values associated with completing them, you could say that the "time spent" is baked into those extra points.

We definitely have more projects now than we did when we first had this conversation.  I still think the original Basejumps are "worth" a lot more than 50 points, but it's probably not worth the trouble to come up with the code to handle the special cases.
Looking at the code, all of the front end projects have a challenge type of 3 ("Zipline") and the back end projects are type 4 ("Basejump").  Should be easy enough to add some code to detect the submit and give appropriate points.

Are we sure we don't want "Algorithm Challenges" to have an additional value?  I know that these are still a significant time investment for many campers.  While they are likely to get more points from "time on site", I think they ought to be worth more.  They're also distinguished by a challenge type of 5, making them easy to add points for.

Here are two methods I think would probably work:
1. Since Ziplines and Basejumps take a bunch of time, is it possible to give them more points like discussed (say, 50 or 100) but distribute the points over a period of time (4 or 5 days, say)? That way, if I'd been working on a Zipline for a couple of days, I can still keep my streak.
2. Keep the current points setup as such, and add a note advising users to continue working on their waypoints while hacking on their Ziplines in parallel. This ought to help them improve their projects as they learn more, and teach them about working on different things simultaneously.

IMHO, awarding points for time spent on the site attracts unethical behavior, and as @alan1001110 mentioned, has unintended consequences.
Can you please consider having a combo-reward / bonus-points kind of system instead? For example, if a user progresses through 10 or 20 waypoints in under an hour, give them 5 points as a bonus. For every day a user maintains his streak, give them a point. For every 10-day streak, give them a 10-point bonus.... and so on.
I think this will encourage campers to show up to code daily, and work consistently.

What about optional points?
Some of the earlier comments have good points regarding
folks gaming the system (which in the scheme of the universe for
points that don't have *value, isn't the biggest deal) with challenge/session
time.
Not so much for the easy challenges, but for the more complicated stuff (i.e.,
Bonfires, Ziplines, Basejumps) maybe including an optional survey (with point incentive -only
available when challenge is completed) might work vs. session activity.
Why?
Because even if users put 'blah, blah' to questions like:

What did you learn?
What was the greatest challenge?
What could be improved?

You'd have (or eventually would have) a sample for analysis (and maybe get insight apart from the
original intent).
*Points. - Just wanted to comment that sometimes this (generally concepts in competitive psychology) can be a disincentive (but, yes there are clearly advantages) to learning. As a camper, I like the "go at your own pace" vibe within the curriculum - (as mentioned in other comments people have different amount of time to devote) - I think it's a plus.

We've abandoned this idea.
Happy Coding


reintegrate SampleApp to unmark dependency schemes as shared

For some reason the ConsistencyManager scheme of the Pods project within the sample app was marked as 'shared', causing Carthage to always build both of them.
The SampleApp Target was simply reintegrated in this pull request (without any further changes) to unmark the dependecy scheme as 'shared'.

Current coverage is 93.52% (diff: 100%)

Merging #32 into master will not change coverage

@@             master        #32   diff @@
==========================================
  Files            34         34
  Lines          3506       3506
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           3279       3279
  Misses          227        227
  Partials          0          0

Powered by Codecov. Last update c15769c...99074ac

LGTM. Thanks for doing this cleanup (and the 1.0.1 cocoapods upgrade)


SSH access to vagrant VMs is denied

Hello I have been trying to set up the vagrant script for ovn-kubernetes, everything works fine until, the script tries to access the VM
k8s-master: Forwarding ports...
k8s-master: 22 (guest) => 2222 (host) (adapter 1)
==> k8s-master: Running 'pre-boot' VM customizations...
==> k8s-master: Booting VM...
==> k8s-master: Waiting for machine to boot. This may take a few minutes...
k8s-master: SSH address: <IP_ADDRESS>:2222
k8s-master: SSH username: ubuntu
k8s-master: SSH auth method: password
k8s-master: Warning: Remote connection disconnect. Retrying...
k8s-master: Warning: Remote connection disconnect. Retrying...
This goes on for several seconds, and if you do a vagrant up 2 more times you have your VMs ready
However, when you try to access them via ssh, you cannot, wither using ubuntu/ubuntu, or vagrant/vagrant, or via changing the Vagrantfile, setting a username and password and reloading the configuration.
Thank you,
Akis

(I am not an expert in Vagrant.)
What is your base OS? I know that it works on a mac with vagrant 1.8.5. I would check your vagrant version.

I am on ubuntu 16.04, with vagrant version 1.8.1, maybe it needs the latest, I will update and report back, thanks!

The fact that vagrant ssh does not work for you makes me believe that something is wrong with the "routes" that vagrant sets up. May be there is some conflict with the IP address that vagrant uses with your host routing table? I would also look at "route -n" to see whether there is conflicts.

And only do "vagrant up k8s-master" to save on time.

vagrant is trying to ssh, though local net <IP_ADDRESS> I would not see any profound conflict.
I also checked my route -n and do not see any <IP_ADDRESS> conflicts, I will try some other images also, see if they work.

Also when I try to ssh in the VM, the ubuntu/combination does not work, what is the password?

Doesn't using "vagrant ssh k8s-master" from the vagrant directory not work? I think using ssh via password is disabled. But let me check to make sure by spinning up a vagrant env.

May be you are hitting this?
https://bugs.launchpad.net/cloud-images/+bug/1569237

yes this is probable, however I tried some other images and the ssh never seems to work, it is strange..
I did a tcpdump and they seem to communicate with each other. And on the ubuntu/xenial image it just asks the password.
Shouldn't the ubuntu/ubuntu combination just work?

Shouldn't the ubuntu/ubuntu combination just work?

No. Nobody apparently knows the password for username "ubuntu". Just to make sure, doesn't "vagrant ssh k8s-master" not work from the vagrant directory?

No, it just asks for the unknown password, I also tried the bce13c362bdf6d1518510c23, which someone mentions with no luck.
For you the "vagrant ssh k8s-master" does not ask for a password right?

For you the "vagrant ssh k8s-master" does not ask for a password right?

No. It does not ask for a password. Did you upgrade your vagrant to atleast 1.8.5?

Yes i upgraded to 1.9.1

Yes i upgraded to 1.9.1

I don't know whether upgrading the virtualbox too will help. I am trying to see if trusty64 works.

Ok i somehow, managed to ssh into the VM

changed the image to bento/ubuntu-16.04

add the ssh_key part to the Vagrantfile

config.ssh.private_key_path = "~/.ssh/id_rsa"
config.ssh.forward_agent = true

when you ssh, it again requests a password, with "vagrant" you get in.

However, vagrant up still cannot connect, and so the VM remains emtpy, as it does not execute any script further.
Would it make sense to run the scripts from inside the VM?
PS: This is with virtualbox 5.1, also upgraded.

Would it make sense to run the scripts from inside the VM?

It should work.

Btwn, I am available as "shettyg" in openvswitch IRC channel, if you prefer faster turnarounds.

Ok good to know, I will ping you from there, I will do a dry run on a Mac tomorrow, and let you know
Thanks for the support!

Surprisingly, I was able to "vagrant ssh k8s-master" on a Ubuntu 16.04 host with vagrant 1.9.1

I did a dry run on vagrant windows 10 works like a charm, then tried a fresh install on ubuntu 16.04 and it works!


link Swift Alps Event to right place

Correct link to swift alps ...

Readme is generated ... edit contents.json right away ...


Remove --prefix-paths option in development

This branch removes the --prefix-paths option from gatsby develop called by our NPM start script in the docs.

@trevorblades is it done, can I merge it?

@kamilkisiela yup! I thought I had merged already, my bad 😅


feat: add support for query that have aggregation but missing group by

Description
As part of the issue - https://github.com/hypertrace/document-store/issues/123, This PR

adds support for a query having aggregation selection, but not having group by

Solution:

add a query transformer that removes all the other selections that are non-aggregated

Mongo:

Inherently do this and discard the selections

Postgres:

As the query fails, we need to pre-process the query

Testing

have added both unit + integration test

Checklist:

[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] Any dependent changes have been merged and published in downstream modules

@suresh-prakash As discussed,

we will go with this stop-gap solution
clean all the client
revet back both mongo + postgres impl to throw an exception.

I am still testing this one with a custom build, if any issue, will fix it first.


Computation of projected labels during training

https://github.com/PRBonn/lidar-bonnetal/blob/423311109bb6a075c8d44f545b624b42a61f8d42/train/tasks/semantic/dataset/kitti/parser.py#L160
Why do you multiply proj_labels with proj_mask when a mask (which is almost similar except for the equality sign) was used during the computation of scan.proj_sem_label. Maybe I am missing something here. I could not get my head around this.

If you use the single scan case it has no effect, you are free to remove it.
This is mostly to ensure that the label only has labeled pixels in the positions where points exist. If you are using semantic-kitti this is always the case, but in other cases where you may be rendering the point clouds from a mesh and also the labels, it may not be like this. Super corner-case which almost never happens.

Thank you so much for your quick reply. This helps!!!


Training error on custom dataset(no labels): IndexError: index 4 is out of bounds for dimension 0 with size 4 in validation_epoch_end

I'm getting this error:
File "train_segmentation.py", line 292, in validation_epoch_end
ax[0, i].imshow(prep_for_plot(output["img"][i]))
IndexError: index 4 is out of bounds for dimension 0 with size 4
I'm using custom dataset with no labels, cropping and pre-computing knns worked fine.

I was able to resolve the issue. The batch size was set to 4 and I was using n_images =5 in cfg file during logging.
Training epoch completed.
However durring validation step I'm getting this error:

Hi, Sehjbir:
Have you solved this problem? I also encountered the same error.

Same here.

I had the same issue. I believe the problem occurs when the batch size does not exactly divide the number of images available and when one batch is not a "full one" but the random number for showing the images is sampled outside of the actual number of images available. At least when I made the number of images divisible by the batch size, the problem disappeared.

@b1a0 thank you I'm try your way and solved this issuie! But I'm stuck in Epoch1: 69% and then stop...Do you encounter this issuie? thanks a lot!

To the best of my knowledge, I didn't have this issue when I tried this a few month ago.

Hello everyone! I had been changing the batch size to equal the n_image.It's can use on Linux. But now I can't fix this glitch on Windwos10!
IndexError: invalid index of a 0-dim tensor. Use tensor.item() in Python or tensor.item<T>() in C++ to convert a 0-dim tensor to a number
Hope somebody can help me! thanks a lot.

@KennyChen880127 Have you solve this problem? I also have this issue。
IndexError: invalid index of a 0-dim tensor. Use tensor.item() in Python or tensor.item<T>() in C++ to convert a 0-dim tensor to a number

@KennyChen880127你解決這個問題了嗎？我也有這個問題 。tensor.item()在 Python 或C++ 中使用tensor.item<T>()將 0 維張量轉換為數字

Hi there! I ultimately resolved the issue by switching to Ubuntu 20.04.


Cache C/C++ compilation, pip and npm in travis

Ref #799

@thedrow - looks like travis-ci failed due to syntax error in travis.yml

Yes, sorry about that.

Any reason why the build is still on Ubuntu precise?

Seems like bazel has some known problems with CCache. See https://github.com/bazelbuild/bazel/issues?utf8=✓&q=is%3Aissue+is%3Aopen+ccache
How do we proceed?

@thedrow - We thought Ubuntu precise can serve as a common denominator. You could build heron for Ubuntu 15.10 as well. There is a docker file in docker/ directory.

@thedrow - regarding ccache, IMO, we could wait until bazel supports it.


[sleeplog] Improving triggers and web interface

to 0.13:

Prevent to stay in consecutive sleep if not worn.
Correct calling triggers where last time is earlier then first time.
Add the trigger object itself as argument to the fn function to be able to store data or functions inside the trigger object.

to 0.14:
improvements initiated by #2677

Add a option to delete all logfiles before a specific date from the watch
Correct regex file search from \d\d\d\d / \d{4} to \d+

Looks great - thanks!


VSCode OLS crash with euro character

Code snippet
package main
import €
main :: proc() {
    i: int;
}

Output
c:/Odin/Projects/Test/ols.odin(2:4) illegal character '€': 8364
[Error - 20:49:38] Connection to server is erroring. Shutting down server.

Only some types of crash outputs the illegal character line.
Every crash outputs that the server is erroring.
Reproduce (I was experimenting as well)
OLS crashes when a € is typed after import
OLS won't crash if € already exists when OLS is started.
If OLS is started after € is typed, typing another € crashes it (also with some but not other characters).
If OLS is started after € is typed, typing "i: in" in main crashes OLS, as soon as n is typed.
OLS doesn't crash when only typing € in main, only when it's in the import statement.
Maybe this is too specific, but that's the behaviour I saw

@WalterPlinge
Can you try and see if the new commit fixed your issue. It did on my end.


Update README.md

I ran into the following error when I first tried to create a new rails app with this template:

The template [https://raw.githubusercontent.com/davidcolby/vite_starter_template/main/template.rb] could not be loaded. Error: cannot load such file -- pry

To help out people in the future, I've suggested adding a note for what to do as the error: "Error: cannot load such file -- pry" was not too helpful in determine what went wrong and how to fix it.

😞