Pinterest Invalid Image URI

When I hit the pinterest share button, it shows me a popup with invalid image URI on the demo page itself. Also, on my local implementation, its showing the same error.

@paramsinghvc can you share the URL that's being generated please?

@paramsinghvc is this still an issue or was it resolved? the URL's are encoded properly. Please reopen this if it's still occurring.


Proof of Concept: Draft DX for setActive taking an org slug

What's the goal?
update setActive to allow it to take an organization slug as an identifier, rather than just the ID

We found precedent for taking an id OR a slug in the same string parameter, and we have validation to make sure that's safe on the backend, so we're now aiming for that route!
More context here: https://linear.app/clerk/issue/ORGS-17/accept-slug-from-setactive#comment-f0bf7438
Thank you @alexcarpenter  and @tmilewski for the tips! Type-fest seems great, and i'm looking forward to using it.


please update unittest case

after e98b1e93d69c3a8e801193431a68c95bc8ec7440 , unit test failed to start omega server. This may caused by we have change the port sanic listen on

all unit test cases are tested by last version.


Update Notification Preferences Page

No longer necessary to notify Org Admins that a template is published/unpublished. Remove those two tick boxes and descriptions from the Notification Preferences page menu for DMP Administrators  (screenshot below).

i also noticed that the DMP administrators checkboxes show irrespective of whether you're an admin or not. On this account I don't have admin rights as no extra menu items show, so this options to configure emails also shouldn't present.

updated preferences look good. closing issue.


Which Tiny Bootstrap?

Seems there are two or three different projects claiming the crown for Tiny...confusing. Even competing websites.
Is this one the 'source of truth'❓❓ ❓ ❓
:)

The minified bootstrap-wysiwyg.min.js file is 6.1 KB.


Event Query:COMMIT and Event xid

Hi,
I tested the code on my ubuntu 14.04,and I sometimes got the
Event Query: COMMIT ,sometimes got Event xid;
would you mind explain the difference between the two events;
are they meaning of the end of a Transaction( for example : SQL statement: begin; insert .. update..or some other SQLs ; commit;)???
THANKS!!!

Hi,

QUERY_EVENT
Written when an updating statement is done.

XID_EVENT
Generated for a commit of a transaction that modifies one or more tables of an XA-capable storage engine. Normal transactions are implemented by sending a QUERY_EVENT containing a BEGIN statement and a QUERY_EVENT containing a COMMIT statement (or a ROLLBACK statement if the transaction is rolled back).

So its depends on what storage engine you use. In most cases you can use QUERY_EVENT
https://dev.mysql.com/doc/internals/en/event-meanings.html


[1.3] Remove EVSE 80A max current limit to align with latest spec

Reproduction steps
Changes to the EVSE spec in 1.3 have meant the 80A current limit should be removed in the SDK.
Bug prevalence
N/A
GitHub hash of the SDK that was being used
83f8665f0177906a66b927b1a24e8ac038861c86
Platform
core
Platform Version(s)
N/A
Type
Spec Compliance Issue
Anything else?
No response

This should be fixed once  PR #31407 is merged


Split out starred_messages_ui.js from starred_messages.js.

This is a direct code move which will allow us
to enforce 100% coverage on the data handling
parts of starred_messages.js.
Follow up for #17440.
Tested in dev server that both confirm modals work correctly.

lgtm; @showell feel free to merge once CI passes.

I guess I'm still up, merged, thanks @abhijeetbodas2001!


Add semantic-release to the project

Closes #46
@nokome Could I ask you to verify the npm run bundle command please?
The command fails due to tar on Mac not supporting the --transform option.
If you're unable to do so, I will take a look at alternatives or through a VM tomorrow morning.
Thanks, and much appreciated 🙇
If things look good otherwise, feel free to merge at will.

Note:
This PR does not contain Windows releases at the moment as this project is currently missing a signing certificate. Please see https://github.com/stencila/dockter/issues/50 for details of how this was resolved in the Dockter project.

Codecov Report

Merging #49 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #49   +/-   ##
=======================================
  Coverage   87.52%   87.52%
=======================================
  Files          11       11
  Lines         593      593
  Branches      132      132
=======================================
  Hits          519      519
  Misses         68       68
  Partials        6        6

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 f14adc5...31938ba. Read the comment docs.

It works for me. Thanks Alex! I've enabled windows builds by:

adding an encrypted cert
adding steps to .travis.yml
enabling build:win in package.json
making some fixes to naming

I'll merge in now and we can see if it does a release in master :fireworks:

The command fails due to tar on Mac not supporting the --transform option.
If you're unable to do so, I will take a look at alternatives or through a VM tomorrow morning.

@alex-ketch My solution to problems like this nowadays is to keep a Dockerfile around and then just mount the working dir as a volume and run whatever Linux command inside. Basically the same as a VM but I find it a bit nice because it's more lightweight and you don't have to worry about copying files in and out of the VM since it just mounts that folder.


About DifferentiableAugment

Hi,
I don't understand the DifferentiableAugment class in the implementation. What does it do? Just subtract and add magnitude with images?. Why you have adopted such as this? Is there any specific reason for it?
class DifferentiableAugment(nn.Module):
def init(self, sub_policy):
super(DifferentiableAugment, self).init()
self.sub_policy = sub_policy
  def forward(self, origin_images, probability_b, magnitude):
      images = origin_images
      adds = 0
      for i in range(len(self.sub_policy)):
          if probability_b[i].item() != 0.0:
              images = images - magnitude[i]
              adds = adds + magnitude[i]
      images = images.detach() + adds
      return images

This implementation utilizes the straight-through gradient estimator, which is also utilized by GDAS.

@latstars . Thank you for your answer. I understand. I have another question.
I tried to search the policies using larger ImageNet data where I used 500 classes and 30K+ images. The policies are so weird. But I observed that when I use a lower number of classes and images I get policies like what you have in your genotype.py.
Maybe, it is not the right way to search the policy. But I want to know the reasons why my policies look like this'. If you have any ideas about what causes this kind of policies, pls share them with me,
The final policies are,

@latstars . Thank you for your answer. I understand. I have another question.
I tried to search the policies using larger ImageNet data where I used 500 classes and 30K+ images. The policies are so weird. But I observed that when I use a lower number of classes and images I get policies like what you have in your genotype.py.
Maybe, it is not the right way to search the policy. But I want to know the reasons why my policies look like this'. If you have any ideas about what causes this kind of policies, pls share them with me,
The final policies are,

Hi, Raja. Maybe you use a larger dataset,  then the iteration is more than the small dataset. However, more iteration will lead to over-optimize, since there is no l2-normalization (weight-decay). I suggest that you can try to search the policy with less epoch or smaller learning rate for augmentation parameters.

@latstars . Hi. Thank you for your answer. This is impressive. When I reduced the learning rate the policies seem good. In order to validate it, I have conducted several experiments by varying learning rates from 0.5 to 0.0001 where 0.5,0.2,0.1,0.002,0.005 are not working well. But, 0.001, 0.0001,0.0002 are fine (Working fine means that the policies look like your experiment policies --> Just a visual inspection). Now, I'm facing another question. Which policy is good.? How can I determine the policies are good.? Any ideas you can give?
The following result is an example of experiments with a learning rate of 0.0001.


Address Console plugin SDK build issues

📝 Description
This PR pulls in the fixes from openshift/console#13657 and does some minor improvements.

[x] update Console plugin SDK dependencies to latest v1 versions
[x] plugin metadata extracted to separate file plugin-metadata.ts with type checking
[x] fixed scripts that invoke webpack to ensure env. vars are passed properly to the executable

🎥 Demo
$ yarn install && yarn dev
# no issues reported during the webpack builds

:information_source: There are still some warnings like
LOG from @openshift-console/dynamic-plugin-sdk-webpack/lib/webpack/loaders/dynamic-module-import-loader ../node_modules/ts-loader/index.js??ruleSet[1].rules[0].use[0]!./utils/components/EnvironmentEditor/components/EnvironmentEditor.tsx
<w> Non-index and non-dynamic module import @patternfly/react-core/deprecated

which are due to not importing code from @patternfly/react-core main index directly - these should be fixed later on.

/lgtm


Fail workspace startup if workspace is older than webhooks

What does this PR do?

Fail startup at start of reconcile loop if creator id isn't present, instead of during deployment provisioning
Fail workspace startup if creationTimestamp is older than mutating webhook's creationTimestamp
Fix a minor issue in clusterrole (watch permissions seem to be required by controller-runtime)

What issues does this PR fix or reference?
Fixes https://github.com/eclipse/che/issues/16914
Web Terminal Operator manifests are updated in https://github.com/redhat-developer/web-terminal-operator/pull/11
Is it tested? How?
Tested on crc:
# set env vars as usual
make uninstall
kubectl apply -f devworkspace-crds/deploy/crds/ \
  && kubectl apply -f deploy/crds/ \
  && oc new-project ${NAMESPACE} \
  && kubectl apply -f samples/cloud-shell.yaml
kubectl patch devworkspace cloud-shell --type='merge' \
  -p '{"metadata": {"labels": {"controller.devfile.io/creator": "test"}}}'
make docker deploy
# Check that workspace start fails and message is logged

Also, the use case that came to my mind that may need a separate issue if it's relevant: can we watch for webhooks configurations by controller and FAIL all workspace (remove their deployments) when webhook configurations are removed? Probably it's out of our power since it's operator framework who invoke reconcile loop... But if somebody ask that question - we can tell that we thought about it )

Yeah, this is something that's kind of outside of our scope. It's tricky since the devworkspace controller doesn't really know how many devworkspaces are on the cluster and doesn't track any state between reconciles (at least, per workspace), so the only way to really do it would be yet another deployment that watches webhooks and then iterates through all namespaces to delete workspaces.

Created https://github.com/eclipse/che/issues/17433 as a follow-up

/retest


Xlib.error.DisplayConnectionError: Can't connect to display ":1": b'Maximum number of clients reached'

There was a new issues and couldn't save expert_data when run that command 'scl run --envision expert_recording.py left_turn --samples 40'.
Exception in thread Thread-2064: Traceback (most recent call last):   File "/home/cjp/anaconda3/envs/smarts/lib/python3.7/threading.py", line 926, in _bootstrap_inner     self.run()   File "/home/cjp/HUANGZHIYU/Expert-Prior-RL-main/.venv/lib/python3.7/site-packages/pynput/_util/__init__.py", line 210, in run     self._run()   File "/home/cjp/HUANGZHIYU/Expert-Prior-RL-main/.venv/lib/python3.7/site-packages/pynput/keyboard/_xorg.py", line 545, in _run     super(Listener, self)._run()   File "/home/cjp/HUANGZHIYU/Expert-Prior-RL-main/.venv/lib/python3.7/site-packages/pynput/_util/xorg.py", line 382, in _run     self._display_stop = Xlib.display.Display()   File "/home/cjp/HUANGZHIYU/Expert-Prior-RL-main/.venv/lib/python3.7/site-packages/Xlib/display.py", line 89, in __init__     self.display = _BaseDisplay(display)   File "/home/cjp/HUANGZHIYU/Expert-Prior-RL-main/.venv/lib/python3.7/site-packages/Xlib/display.py", line 71, in __init__     protocol_display.Display.__init__(self, *args, **keys)   File "/home/cjp/HUANGZHIYU/Expert-Prior-RL-main/.venv/lib/python3.7/site-packages/Xlib/protocol/display.py", line 166, in __init__     raise error.DisplayConnectionError(self.display_name, r.reason) Xlib.error.DisplayConnectionError: Can't connect to display ":1": b'Maximum number of clients reached'

Looks like it's a problem with the pynput package, which takes the keyboard inputs. I suggest reinstalling the package and making sure it works well on your system.

Hello, I would like to ask what is the installed version of pyput and the installed version of ray. The number of return values of my on close method is incorrect


SIGINT can't terminate subprocess on OS X

$ ps -ef
501 38117 24809   0  7:00下午 ttys001    0:00.01 cargo run
501 38118 38117   0  7:00下午 ttys001    0:00.08 target/debug/myproj

$ kill -SIGINT 38117

$ ps -ef
501 38118     1   0  7:00下午 ttys001    0:00.08 target/debug/myproj

'cargo run' process is terminated, but it's subprocess is still running.
$ cargo --version
cargo 0.15.0-nightly (298a012 2016-12-20)

$ rustc --version
rustc 1.14.0 (e8a012324 2016-12-16)

$ uname -a
Darwin localhost.local 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64

CTRL+C can terminate cargo process and it's subprocess.

@cissusnar, add that it terminates by pressing CTRL+C.

Thanks for the report! This is currently expected behavior, as Cargo doesn't proxy signals to the child. This has changed recently on Unix where Cargo will exec the child, so signals are proxied automatically, however, so closing.

@alexcrichton,
I don't understand.
Could you provide more details?
Why cargo run is terminated on Unix, but isn't on MacOS?

@KalitaAlexey On Unix (including OSX) Cargo will use the exec syscall for cargo run. This means that the Cargo process itself is just replaced by the target executable. That was merged relatively recently, though, so it may not be in all releases of Rust.
If you find it's not terminated on OSX, I'd verify that you've got a recent version of Cargo with that PR in it. Otherwise you'll need to use the old (and more reliable) strategy of sending signals to the process group, not individual processes.

@alexcrichton,
@cissusnar has cargo 0.15.0-nightly (298a012 2016-12-20).
It is recent, isn't it?
So if I understood right cargo run  should terminate on OSX, but it doesn't.

Yes that Cargo should include #2818. Are you using rustup perchance? If so you may be seeing https://github.com/rust-lang-nursery/rustup.rs/issues/806

I can't understand how a problem with cargo run  maybe caused by rustup.
Can you explain it please?

Can you confirm whether rustup is being used?
Rustup is a process wrapper that doesn't exec. The cargo run killed in the logs above could be rustup, not Cargo.

You mean cargo to be a simlink to rustup, don't you?

@alexcrichton,
I have got.
According to https://github.com/rust-lang-nursery/rustup.rs/#how-rustup-works
cargo is a proxy.

@cissusnar,
Can you find cargo in rustup current toolchain and execute cargo run with cargo from the current toolchain?

@KalitaAlexey
$ rustup --version
rustup 1.0.0 (17b6d21 2016-12-15)

$ rustup show
Default host: x86_64-apple-darwin

stable-x86_64-apple-darwin (default)
rustc 1.14.0 (e8a012324 2016-12-16)

@cissusnar,
You misunderstood me.
Open a terminal.
Execute in the terminal:
RUST_SYSROOT=$(rustc --print sys-root)

It should give you a path.
Execute in the terminal:
ls ${RUST_SYSROOT}/bin

There should be cargo.
Execute in the terminal:
cd <path/to/your/project>
${RUST_SYSROOT}/bin/cargo run

It should start running your project.
Try killing that with SIGINT.
Write your results.

I checked it on Linux.
The problem happens with rustup.

@cissusnar,
It is really the problem of rustup.


Removed query parameter check that is too strict.

Fixes issue #2599

Looks like we have ci/pr-head — test failures. I'll rebase it on the top of the master.


--platform doesn't work if GOOS and GOARCH are set

Today we default --platform to $GOOS/$GOARCH, but if these are set then the flag doesn't work (unless the value passed matches what's in GOOS/GOARCH, which defeats the purpose!).
The crux of the issue is that we always allow the current environment to override our CGO/GOOS/GOARCH settings because of the order here:
https://github.com/google/ko/blob/722ad3c37b2e01219aa053ba11b6b0d6d065b5d7/pkg/build/gobuild.go#L277
cc @jonjohnsonjr @ImJasonH

I noticed this because I had GOOS= and GOARCH= in my env, and this was clearing ko's setting, which resulted in ko producing darwin/arm64 binaries, which is not exactly what I wanted 🤣
This is hugely problematic imo because we are now literally printing the platform/architecture we are targetting, and then letting the environment override things, which leads to silent failures.

Today we default --platform to $GOOS/$GOARCH

Not exactly, we default to $GOOS/$GOARCH if they are set, and "linux/amd64" otherwise.

The crux of the issue is that we always allow the current environment to override our CGO/GOOS/GOARCH settings because of the order here:

If we flip the order, we also need some way to set CGO_ENABLED=1, since we default otherwise. For goos/goarch this makes sense to me in most cases, but I think there should still be some way to override the platforms for a given base image. Consider the case where you broke kubernetes because we distroless changed from being platform-less in the config file to having the platform set. Prior to that, you could use ko to build for any platform by setting GOOS/GOARCH and using distroless/static, but that becomes ~impossible to do. I think it's generally useful to be able to override the goos/goarch to be different from the base image, even if just for testing purposes.

I noticed this because I had GOOS= and GOARCH= in my env

I don't know if this is something we need to defend against, just you being dumb. Maybe we print a warning if --platform is set and GOOS/GOARCH are different? Maybe we allow you to override GOOS/GOARCH only if your base image is not multi-platform?

Not exactly, we default to $GOOS/$GOARCH if they are set

Yes, I know.  The feature's only broken when those are set 😉
If I run ko publish --platform=linux/arm64 in an environment with GOOS=darwin GOARCH=amd64 it tells me it's building linux/arm64 and produces a binary for darwin/amd64.
I think your supposition is that most folks don't have GOOS/GOARCH set, but there are IDEs that set these up automatically in their embedded shells.  I know this because this has broken folks using ko before (macos -> linux), long before we added --platform.
Honestly, the cardinal precedence for CLI is flag > env > config, and we're violating that here (while lying to the user!).  I'd say that the answer to most of your commentary above is best resolved by having folks go through --platform and making it support the scenarios you care to support.  I doubt you are ever going to convince me that env > flag should be a thing. 🤷

the case where you broke kubernetes because distroless changed from being platform-less in the config file to having the platform set

Hmm, that's not what happened at all, but ok...

I don't know if this is something we need to defend against, just you being dumb.

Ouch.

Ouch.

Please read most of my response as tongue in cheek, not meant to actually offend :P sorry.
Is this just completely broken?

Honestly, the cardinal precedence for CLI is flag > env > config

Definitely agree with this argument. I'd be okay with swapping the env order if not for the CGO_ENABLED thing. Want to promote that to a flag? We could just drop the user env entirely? What else in there contributes to go builds?
With either approach, what do we do about GOARM? Should we allow users to override that, or only ever use the image's platform? Should GOARM contribute to --platform defaulting if it's unset?
My argument isn't coming so much from a place of "I think the current behavior is reasonable" so much as "at some point in the past, we told people to use GOOS/GOARCH to work around the lack of multi-platform support, and I worry that just breaking that is bad practice".
How do you want to fix this? We could start with an error when --platform is used in conjunction with GOOS/GOARCH/GOARM? Maybe graduate that to just ignoring or filtering the user env?

Is this just completely broken?

Yes 🤣

I worry that just breaking that is bad practice

I am still confused how we are breaking that, given that it forms the basis for the --platform default?
The main thing I see us breaking is CGO_ENABLED=1, which I'm unaware of anyone using, or any place documenting that we support this.  I do think a flag is a better option for this.

The main thing I see us breaking is CGO_ENABLED=1, which I'm unaware of anyone using, or any place documenting that we support this. I do think a flag is a better option for this.

Sounds good to me -- I've been looking at how we can support this in https://github.com/google/ko/issues/261 a bit.

I am still confused how we are breaking that, given that it forms the basis for the --platform default?

Because if your base image isn't an image index, the --platform flag is basically ignored, so we'd end up building for whatever we find in the config file, which might be nothing.

the --platform flag is basically ignored

I think this is what I'd "fix".


Use $src instead of src when building purs in nix

This was an error made when writing the command for buildPursPackage. It should be reading from $src/**/*.purs, not src/**/*.purs, as this gets set when calling this function.

How does this suddenly generate this much errors? Do you need help fixing them?

@sjoerdvisscher it's complicated, but I fixed it in marlowe-cardano, so I know what needs to be done.


Added Korean Translation

If you fine, please add korean translation

Of course I'm fine with it! Thanks a lot for your contribution!
I want to add a few more things (which will require translations too) to the mod in the next few days, so I'll keep the PR opened until then. Hope, you are ok with it.

"key.packed-inventory.open_edit_screen": "Open edit screen",

changed to
"key.packed-inventory.interact_with_item": "Interact with an item",

And there's a new line:
"event.packed-inventory.failure.stack_consists_of_more_than_one_item": "It is not possible to edit more than one inventory at a time",

Please, update these translations in your file and it should be it :)

Updated new line and changed line

Why... why did ya merge it back with 1.19? I switched to 1.18.x/dev for a reason :D
Anyway, thank you for your contributions!

sorry, i hardly inexperienced using git.

No worries! :D


support to auto config gcp env

Signed-off-by: liuwei<EMAIL_ADDRESS>

refer to https://github.com/open-cluster-management/backlog/issues/10676

/assign @qiujian16

/assign @zhiweiyin318

/lgtm


Python: '_Rendezvous.next' blocks forever.

What version of gRPC and what language are you using?
Python: grpcio 1.24.0
What operating system (Linux, Windows,...) and version?
Ubuntu 18.04
What runtime / compiler are you using (e.g. python version or version of gcc)
Python 2.7, 3.5, 3.6, 3.7
What did you do?
See: https://github.com/googleapis/google-cloud-python/issues/7817
google.api_core.bidi.BidiRpc.recv calls next(self.call), which invokes grpc._channel._Rendezvous.__next__.  Because Python's iterator protocol does not permit additional arguments, the _Rendezvous.__next__ method  calls _grpc._common.wait without passing any timeout.  In the case that the stream is already being shut down in another thread, this causes the worker thread to hang in google.api_core.bidi.BidiRpc.recv.
Ideally, _Rendezvous would expose a public, alternate method which takes a timeout argument, which we would then call directly from google.api_core.bidi.

If we try to expose it in open source API, it would like the new streaming API we are planning for AsyncIO stack: https://github.com/lidizheng/proposal/blob/grpc-python-async-api/L58-python-async-api.md#new-streaming-api.
Currently, we don't have enough bandwidth to perform similar scale changes. I will label this issue as feature request for now.

@lidizheng Has this in fact been implemented? It was blocking an issue in the Python client libraries.

Reopening based on the renewed interest.

Ideally, _Rendezvous would expose a public, alternate method which takes a timeout argument, which we would then call directly from google.api_core.bidi.

Instead of a timeout, would it be sufficient to raise an exception from the iterator in case the channel is closed while we're still in the __next__ method? Then you could just handle a ChannelClosedException or something like that.
Alternatively, if you want to alert the thread waiting on the next item that it should stop waiting, you could use with_call and then call result with a timeout to achieve basically what you originally wanted.

Ideally, _Rendezvous would expose a public, alternate method which takes a timeout argument, which we would then call directly from google.api_core.bidi.

Instead of a timeout, would it be sufficient to raise an exception from the iterator in case the channel is closed while we're still in the __next__ method? Then you could just handle a ChannelClosedException or something like that.
Alternatively, if you want to alert the thread waiting on the next item that it should stop waiting, you could use with_call and then call result with a timeout to achieve basically what you originally wanted.

Looks like with_call only exists for *UnaryMultiCallable (rpc Foo (*) returns (FooResponse)), however, OP's question refers to *StreamMultiCallable (rpc Foo (*) returns (stream FooResponse)). And while currently, if a stream closes due to a DEADLINE_EXCEEDED, the thread hanging on __next__ receives a RPCError, it would be nice to be able to time out on a message wait without closing the stream.
P.S. I posted in gitter.io/grpc/grpc on 27.05.2024 about this.

Tried again locally, still not able to reproduce, if the stream was canceled or error out in one thread, then all threads will raise a canceled exception, for anyone who's still impacted by this issue, please provide a reproduction case so we can debug further.

if the stream was canceled or error out in one thread, then all threads will raise a canceled exception

That wasn't the problem. The issue is that we're out of luck if we want to hang on next() not until the stream dies, but until a custom, not known to the server, timeout expires. Kind of like there is a result() method for single-message GRPC endpoints, that, when timeout passes, even if there was no message received from the server, returns control to the calling thread without terminating the underlying GRPC connection.

I see, I changed the title to better reflect this, we'll take a look how to enable timeout for streaming RPCs.

I'm sorry, but may I request some kind of ETA on this? A good chunk of work can't be finished without this feature present, and I need to know if I need to invest time into a circumvention measure. You know, not to get caught with "bought the game and it goes on sale the next day" type of situation :)

Hi, sorry for the late reply. It's possible to add this feature, but this will require a gRFC and likely a new parameter, we're currently unable to prioritize this (at least for this quarter).
We'll reassess its priority next quarter based on interest. In the meantime, any contributions are welcome!


initializing posix permissions handler: OSError: [Errno 95] Operation not supported

Hello.
I am trying to create the first share. Installed controller v0.2 via make deploy. Pod  has been created but won't start.
Init container log:
_2023-03-12 10:58:58,457: INFO: Ensuring share path: /mnt/3ec9e0ab-30e7-4eda-935c-f5aee9774188
2023-03-12 10:58:58,457: INFO: Updating permissions if needed: /mnt/3ec9e0ab-30e7-4eda-935c-f5aee9774188
2023-03-12 10:58:58,457: INFO: Using initializing posix permissions handler
Traceback (most recent call last):
File "/usr/bin/samba-container", line 8, in
sys.exit(main())
File "/usr/lib/python3.10/site-packages/sambacc/commands/main.py", line 217, in main
cfunc(CommandContext(cli))
File "/usr/lib/python3.10/site-packages/sambacc/commands/initialize.py", line 91, in ensure_share_paths
perms_handler(share.permissions_config(), path).update()
File "/usr/lib/python3.10/site-packages/sambacc/permissions.py", line 143, in update
if self.status_ok():
File "/usr/lib/python3.10/site-packages/sambacc/permissions.py", line 136, in status_ok
sval = self._get_status()
File "/usr/lib/python3.10/site-packages/sambacc/permissions.py", line 152, in _get_status
value = xattr.get(path, self._xattr, nofollow=True)
File "/usr/lib/python3.10/site-packages/sambacc/xattr.py", line 58, in get
return xattr.get(item, name, **kwargs)
OSError: [Errno 95] Operation not supported
SmbShare:
apiVersion: samba-operator.samba.org/v1alpha1
kind: SmbShare
spec:
browseable: true
readOnly: true
storage:
pvc:
name: downloads-pvc
PVC:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: downloads-pvc
status:
phase: Bound
accessModes:
- ReadWriteMany
capacity:
storage: 999Gi
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 999Gi
volumeName: downloads
storageClassName: static-nfs
volumeMode: Filesystem

@Shadow2091 What is the K8S cluster you are using? (minikube? openshift? other?)

Vanilla K8S v1.25.4

@Shadow2091 Are you using nfs for your underlying pvc? If so, does your nfs export supports File System Extended Attributes ?

@synarete Yes, I am using NFS. PV connected with options
_ mountOptions:
- hard
- nfsvers=4.1_
The NFS source is Centos8Stream with options:
/storage/torrents/ k8s-worker01.home(rw,sync,no_subtree_check,no_root_squash)
And on K8S worker node:
/var/lib/kubelet/pods/c5b44445-731b-4ac0-bdc8-a9b5cd360b58/volumes/kubernetes.io~nfs/downloads from nfs.home:/storage/torrents/downloads
Flags: rw,relatime,vers=4.1,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=<IP_ADDRESS>,local_lock=none,addr=<IP_ADDRESS>

@Shadow2091 Extended attributes over nfs (RFC 8276) is a relatively new comer to linux nfs server, and I suspect that it is not supported in your CentOS8 machine. Please make sure that is supported, both by the underlying file system and via nfs export.
In order to validate extended-attributives support, try to do the following operations in both cases:

$ touch ./a
$ setfattr -n user.test -v 123456 ./a
$ getfattr -d ./a

@synarete After switching PV to NFS 4.2 everything worked. Thanks for the help!

I'm glad you were able to get this to work. I do want to note that there are general issues when re-exporting NFS over SMB. I highly recommend looking over the Samba users's list and searching for NFS. There are other gotchas and performance issues that you might encounter. If these don't end up impacting you and everything works for your needs, great! I just want to make sure you are aware of the known issues.

Thanks for the warnings. Yes, I understand the performance issues, but I use multiple VMs on my home server for personal use. In fact, all VMs are served by one AMD Epyc CPU and a pair of NVMe PM983. To compact resources, I decided to transfer some applications from VM to k8s, for which I needed your excellent application.
P.S. Is it possible to create a share with anonymous access?

Thanks for the warnings. Yes, I understand the performance issues, but I use multiple VMs on my home server for personal use. In fact, all VMs are served by one AMD Epyc CPU and a pair of NVMe PM983. To compact resources, I decided to transfer some applications from VM to k8s, for which I needed your excellent application.

OK, thank you!

P.S. Is it possible to create a share with anonymous access?

Not today IIRC. Please feel free to create a new issue to request and track this feature


[carbon dashboard] Breakdown by Chain - Design Review

Roadmap workstream card
The objective of this task is to add a breakdown table of carbon supply and retirements by chain.
sekula.klima is doing this work as a bounty task.
@theprofessora need a design review of this work to make sure aligned with current site and other design changes currently in progress. Note the new menu item which will require a new icon.
Further context & background:
Wireframe

Current Dev Environment Implementation

Thank you @jabby09 for creating this issue.
Hey @theprofessora , I'm sekula.klima - you can dm me on discord if you need me, this is my discord: Sekula#0203
A couple of remarks from my end:

In my Current Dev Environment Implementation , I've added a new tab on the left side called "Carbon supply" (which might be a "Blockchain Carbon Supply" if we want to be more precise. If we want to go with this design, we might need a new icon for this particular tab.
What is not correct within Wireframe is that Celo On Chain Carbon is not having a Retirement Chart, since there are no retirements there for now (you can see it in the 3rd picture below)
Below you can find the complete Current Dev Environment Implementation

@milos1991 I am reviewing the Carbon Supply page here. cc @theprofessora if you have any additional feedback.
First off, looks pretty good, very interesting data!

[ ] Enhancement request to start, this page needs a summary pie chart at the top showing total supply by chain. Very similar to this on the Off vs On-Chain Carbon page.

[ ] There is additional padding at the top of the page between the container and the "Open the app" button CTA. Compare to the other pages in the navigation.

[ ] The font weight for the page title seems too heavy/bolded, again compare to the other pages in the navigation.

[ ] The sub-heading font weights in all the containers again seem too heavy/bolded overall compared to how this is handled in the other pages in the navigation.

[ ] On a mobile viewport, the containers and charts should stack, not remain in two columns.

@milos1991 FYI, checking with @theprofessora to confirm page and container title fonts...

@jabby09 👍
If you agree, enhancement request (1) will require additional iteration on this page, it would also require a design.
I've removed additional padding on top (2), so it should be ready for testing soon. Same for mobile viewport (5) - fixed this page so containers should be stacking.
What remains are font weight issues (3), (4) , I was using provided figma values for font design - so after you check with @theprofessora , let me know what needs to be changed on that part.

@milos1991 please ignore my font weight issues (3) (4), I confirmed with professor that those were intended but need to be extended across the site. I will create a new ticket for that and will assign to pkbims.
For (1), understood, let me take that away to the product team. For now you can ignore that enhancement, if we decide to proceed I will create a new ticket.
Thanks for the quick fix on (2) and (5), can you link me to the PR with a preview link so I can confirm?

@jabby09 I've commited changes to existing PR that is still open:
PR:
https://github.com/KlimaDAO/dash-apps/pull/86
Commit:
https://github.com/KlimaDAO/dash-apps/pull/86/commits/2649aae6c67cd8807cc7b5ede6f5342996d19907
Screenshots:
Padding fix:

Stacked containers for mobile view (tested this by resizing browser):

I will ask @0xAurelius to redeploy new code on staging env so we can test it


Getting Blank output

I am code as below in test html locally on chrome. I copied whole instafeed.min.js above this. (after start of script tag)
I can see mils1 and mils2 as output. Nothing else. @

Mils1

[Testinsta.zip](https://github.com/stevenschobert/instafeed.js/files/446825/Testinsta.zip)

Ohh there was my Mistake
Ignore issue


Earlier fix has broken current release＼(º □ º l|l)/

As a result of the fix in #45
Executing commands with or without --max-dwn-cites=10
!python -m PyPaperBot --query="Machine learning" --scholar-pages=1  --min-year=2018 --max-dwn-cites=10 --dwn-dir="\content\papers" --scihub-mirror="https://sci-hub.do"

Now results in
PyPaperBot is a Python tool for downloading scientific papers using Google Scholar, Crossref and SciHub.
If you like this project, you can give me a cup of coffee at --> https://www.paypal.com/paypalme/ferru97 <-- :)

Query: Machine learning

Google Scholar page 1 : 10 papers found
Paper not found...
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.7/dist-packages/PyPaperBot/__main__.py", line 148, in <module>
    main()
  File "/usr/local/lib/python3.7/dist-packages/PyPaperBot/__main__.py", line 145, in main
    start(args.query, args.scholar_results, scholar_pages, dwn_dir, proxy, args.min_year , max_dwn, max_dwn_type , args.journal_filter, args.restrict, DOIs, args.scihub_mirror)
  File "/usr/local/lib/python3.7/dist-packages/PyPaperBot/__main__.py", line 48, in start
    Paper.generateReport(to_download,dwn_dir+"result.csv")
  File "/usr/local/lib/python3.7/dist-packages/PyPaperBot/Paper.py", line 65, in generateReport
    with open(path, mode="w", encoding='utf-8', newline='', buffering=1) as w_file:
FileNotFoundError: [Errno 2] No such file or directory: '/content/papers/result.csv'

I tested with the same command and it seems to work. Can you try again using a different empty output folder?

I have the same, this used to work fine, but not anymore
!python -m PyPaperBot --query="Semi-parametric models of spatial market integration" --scholar-pages=1  --scholar-results=1 --dwn-dir="/content" --scihub-mirror="https://sci-hub.st"

Ok I tested on linux and using as output floder /content it had a  permission problem, but It worked using as output folder a folder in my home directory /home/user/content . Can you try again using as output folder something like /home/user/content?

Google Colab might be causing this? I reverted back to v1.2.1 after I encountered this issue, it gave the same error.
Then just a few hours ago it worked fine for me with the current release v1.2.2.
!python -m PyPaperBot --query="Urban Resilience" --scholar-pages=7 --min-year=2017 --dwn-dir="/content/drive/MyDrive/Research/Papers/Test" --scihub-mirror="https://sci-hub.ee"

But now with the same command, nothing works
PyPaperBot is a Python tool for downloading scientific papers using Google Scholar, Crossref and SciHub.
If you like this project, you can give me a cup of coffee at --> https://www.paypal.com/paypalme/ferru97 <-- :)

Query: Urban Resilience

Google Scholar page 1 : 10 papers found
Paper not found...

Google Scholar page 2 : 10 papers found
Paper not found...

Google Scholar page 3 : 10 papers found
Paper not found...

Google Scholar page 4 : 10 papers found
Paper not found...

Google Scholar page 5 : 10 papers found
Paper not found...

Google Scholar page 6 : 10 papers found
Paper not found...

Google Scholar page 7 : 10 papers found
Paper not found...

Work completed!
If you like this project, you can offer me a cup of coffee at --> https://www.paypal.com/paypalme/ferru97 <-- :)

I ran the package on my local machine (windows) it seemed to work fine, so it could be a Google Colab environment specific issue?

Yes at this point I think is a Google Colab issue, I tested the v1.2.2 on both Linux and Windows and it seems to work as long as you have the permissions to write in the selected output folder.
@firmai do you also use the tool with Google Colab?

Yes, also use it with colab

Hi,
sorry for the late reply, but PyPaperBot had been on standby until now.
I've decided to resume development to improve it.
I've created a Telegram channel where you can suggest improvements, report bugs, or request custom data mining scripts. Feel free to join if you're interested with the following LINK
Thanks!


License request: ncbiPD

See https://github.com/spdx/license-list-XML/issues/2419

As questions a in #311476. We could add the license if there is a need for it.

As questions a in https://github.com/NixOS/nixpkgs/issues/311476. We could add the license if there is a need for it.

That would be for sratoolkit, which is not public domain worldwide.

Please open a PR that adds the license to lib/licenses.nix and adjust the license of sratoolkit.

I'd do that, except I can't find any documentation as to what format the commit message should be.


Add attachment appropriate content type rendering

Implement handler for determining attachment content type. If the content type is image, it will be displayed with image tag;

Thanks @terenya-aleksandr - am closing this now to keep it out of the inbox.


file size

what is the maximum file size can binder

It can take any file size, the biggest file I've bound is 600MB. Try rebuilding it if you get that error or make sure that you don't have  an \ in any string.

1.22 GB not work


Feature request: bind to accept with custom output

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[x] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[ ] zsh
[x] fish

Problem / Steps to reproduce
For a particular fzf command, I'd like to bind different keys to different outputs (which then get placed in my shell prompt). As an example, take git output, with one command do git diff, with another git checkout. Syntax could be something like fzf --bind 'ctrl-a:accept-custom(git diff {}). Alternatively, a tweak to execute would also work for me, the problem is execute works on currently highlighted line, whereas I want to work on selection (with multi-select), i.e. a execute-selection.
Thanks!

Its not clear what you want to achieve.
If you want to use data from multiple lines in one command you can use the plus flag {+}, even on positional parameters {+1}.

e.g. git log --format="%h %H" | fzf --bind "enter:preview(echo {+1})" (select multiple lines to see what i mean)

Or something like this #2633?


Workers with long processes that interrupt the main thread time out the RabbitMQ connection

With long analysis tasks, the main thread is busy for a while. The heartbeat nature of RabbitMQ makes that after some time the RabbitMQ server closes the connection to the worker. Because the analysis task is done in the same thread as the pika client loses its ability to send a heartbeat to the RabbitMQ server.
That's why it seems handy to implement the analysis task in a different thread. This example shows that its possible to use different threads for the analysis tasks and this should solve the problem of timing out the connection on long tasks.

Closed and re-opened in internal issue board.


Fail to process pubsub message

Logs link(internal): https://pantheon.corp.google.com/logs/query;query=severity%3DERROR;cursorTimestamp=2022-09-27T00:50:18.442Z?project=flutter-dashboard
Bad state: No element
#0      List.single (dart:core-patch/growable_array.dart:353:22)
#1      Scheduler.processCheckRun (package:cocoon_service/src/service/scheduler.dart:441:88)
#2      GithubWebhookSubscription.post (package:cocoon_service/src/request_handlers/github/webhook_subscription.dart:90:29)
#3      RequestHandler.service.<anonymous closure> (package:cocoon_service/src/request_handling/request_handler.dart:52:28)
#4      _rootRun (dart:async/zone.dart:1398:13)
#5      _CustomZone.run (dart:async/zone.dart:1300:19)
#6      _runZoned (dart:async/zone.dart:1803:10)
#7      runZoned (dart:async/zone.dart:1746:10)
#8      RequestHandler.service (package:cocoon_service/src/request_handling/request_handler.dart:42:12)
#9      SubscriptionHandler.service.<anonymous closure> (package:cocoon_service/src/request_handling/subscription_handler.dart:134:31)
#10     _rootRun (dart:async/zone.dart:1398:13)
#11     _CustomZone.run (dart:async/zone.dart:1300:19)
#12     _runZoned (dart:async/zone.dart:1803:10)
#13     runZoned (dart:async/zone.dart:1746:10)
#14     SubscriptionHandler.service (package:cocoon_service/src/request_handling/subscription_handler.dart:133:11)
<asynchronous suspension>
#15     main.<anonymous closure>.<anonymous closure> (file:///app/bin/server.dart:275:9)
<asynchronous suspension>

We may need to purge the malformed messages.

@CaseyHillers Do you mind take a quick look?

Marking fixed. Logs don't show anything today since the fix was rolled out


rm: wine-staging-git

It's old and we now have two reports of it being broken:

https://github.com/pacstall/pacstall-programs/issues/6357 (just won't compile)
Report from discord stating it completely borked a Linux Mint system.

Because of that, and the lack of support for this package, it needs to be removed.

It's old and we now have two reports of it being broken:

Broken: wine-staging #6357 (just won't compile)
Report from discord stating it completely borked a Linux Mint system.

Because of that, and the lack of support for this package, it needs to be removed.

WHAT ??
dont remove !


nixos/adb: switch to android-tools built from source

Motivation for this change
Since https://github.com/NixOS/nixpkgs/pull/124992 we can build adb from source, so lets use it.
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 via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.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

[x] Fits CONTRIBUTING.md.

cc @Mic92

cc @svanderburg (FYI)

i had to use the platform tools folder in /nix/store to be able to use fastboot -w


Update player registration GUI

Updating player registration GUI to add 2 separate teams with 15 player slots for each team. Removed fields for first and last name, added functionality for autofilling username entry field if user ID is found in the database after tabbing from the user ID entry field. If the user tabs from the username entry field and the ID was not found in the database, the entered ID and username will be registered to the users table.
Also shifted to using a single root window, destroying the frame the splash screen is being held in rather than destroying root window and creating a new one for the player entry screen.

Not having this issue, but need to be running the main script in the root directory either using the makefile (make run) or python src/main.py so that the relative filepaths are correct for loading images.

Attempted to clarify that in https://github.com/cadedupont/photon/pull/8/commits/0bf90a07e2b51ff1e00972904e0e15ca850ec20a.

Looks good. Send it.


Warn on missing source bibliographic references instead of erring out

Warnings on missing source bibliographic references, instead of erring out.
[source="ISODIR1,ISODIR1C,ISODIR2,CCSTD"]
[[terms]]
== Terms, definitions, symbols and abbreviations

=== Terms and definitions

Will currently break with this error:
IDREF "ISODIR2" without matching ID @ 36:110
IDREF "ISODIR1" without matching ID @ 36:37
IDREF "ISODIR1C" without matching ID @ 36:74
IDREF "CCSTD" without matching ID @ 36:144
rm: csd-patent-policy_files/*: No such file or directory
bundler: failed to load command: metanorma (/Users/myself/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/bin/metanorma)
NoMethodError: undefined method `[]' for nil:NilClass
  /Users/myself/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/isodoc-0.8.10/lib/isodoc/function/section.rb:116:in `block in term_defs_boilerplate_cont'

Instead, it should display warnings like:
IDREF "ISODIR2" without matching ID @ 36:110
IDREF "ISODIR1" without matching ID @ 36:37
IDREF "ISODIR1C" without matching ID @ 36:74
IDREF "CCSTD" without matching ID @ 36:144
Warning: in "Terms and definitions" at least one `source` attribute is missing
(line) [source="ISODIR1,ISODIR1C,ISODIR2,CCSTD"]

Already addressed in https://github.com/riboseinc/isodoc/commit/be34bb93f709d249be8de855c7952ff8e9257b24#diff-9b4fe017c72b4353694d8363e323615a, in response to https://github.com/riboseinc/metanorma-csd/issues/37
That issue was fixed 30 Aug, but this issue was raised 3 Oct. All I can say is, the sample snippet you have put here gets the following response, without a crash, so this issue has already been fixed:
ISODIR1 not referenced
ISODIR1C not referenced
ISODIR2 not referenced
CCSTD not referenced
ISODIR1 not referenced
ISODIR1C not referenced
ISODIR2 not referenced
CCSTD not referenced
ISODIR1 not referenced
ISODIR1C not referenced
ISODIR2 not referenced
CCSTD not referenced

(Multiple iterations because isodoc is run once for each output format.)

Confirmed fixed. Thanks @opoudjis !


Formatting the Negative number like MS Excel

Hi,
Very nice and light weight JS plugin for formatting the currencies!!
But however I am looking to extend this plugin to suit one of my requirement:

When I format a negative amount i.e.
account.formatMoney(-100000) = $(100,000.00), but I am looking to have it the way MS Excel does i.e like this ($100,000.00).
Kindly let me know where I have to modify the js file.

Alignment for column formatting with negative numbers would be great.
Although, (-$500.00) would defeat the purpose of representing -ve value with brackets.
I hope you meant
  500.00
($500.00)

The above pull request fixes value alignment.
Although, this can be further improved to check both positive number and negative number formatting.
For eg:
$  123.45 Cr
$ (123.45)

i.e. negative number is adjusted according to positive number.


Fixing PynestException: 200 error while subscribing - #345

This PR should fix #345 and handle the Nest Service response 200 with plain/text content_type (without any).
But to be honest, there might be some other underlying issue, as I would expect if the response is 200, then there would be normal json content. For now it retries the _register_subscribe_task(hass, entry, data). But it could be better to issue a close() or release() and then retry. I don't have resources to investigate it further, as the response comes sporadically.

This should also fix - Attempt to decode JSON with unexpected mimetype: text/plain #326
@iMicknl - feel free to fix the lint issues as it suggests it. I don't understand the half of it, what is the problem with it, when it gives a - and + (empty line).... It is just complete nonsense for me.

Nice work @GSzabados! I will need a bit more time to try this out this time, to make sure there are no unwanted side effects. :-)

@iMicknl, this one should be harmless, unless there is something special with these 200-empty messages and they would require to close the connection or release it. I cannot see more with this, but the content type is plain/text and the body is empty. As I searched for this kind of cases from APIs, it seems to be somewhere something goes wrong, usually on the receiver side. But I cannot comment what is the situation with that, as I have no possibility to dig into this deeper.

I've figured out how the homebridge plugin handles this:
https://github.com/chrisjshull/homebridge-nest/blob/979579343234cab22c672214cbb8be77a095ffa9/lib/nest-connection.js#L61-L62
It re-authenticates every 55 minutes, so it doesn't hit the 60 minutes 200-empty messages.


Keep debug & verbose options after loading project from project manager

When starting the editor with --debug or --verbose command line options without loading a project directly, this change propagates them to the opened project from the project manager.

Thanks!

Cherry-picked for 3.2.3.


There is no schema based access to the database.

There is no any options to access the schema of the database. And there is no db acesss to schema create update validations nothing functions.

@AlexAslam Please provide all the information asked for in the issue template (see below) so that we can effectively understand and reproduce the issue you are seeing.
Describe what is not working as expected.
If you are seeing an exception, include the full exceptions details (message and stack trace).
Exception message:
Stack trace:

Steps to reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
Console.WriteLine("Hello World!");

Further technical details
EF Core version: (found in project.csproj or packages.config)
Database Provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer)
Operating system:
IDE: (e.g. Visual Studio 2017 15.4)

@AlexAslam Migrations will create the schema if one is specified in the model.


build: support go.mod

Also update travis to test with 1.11 and 1.12

@mcarmonaa it's compatible with go modules but also still compatible with no modules.


[pytorch] Updates PyTorch engine to 2.1.1

Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report
Attention: 1365 lines in your changes are missing coverage. Please review.

Comparison is base (bb5073f) 72.08% compared to head (553e9c8) 72.14%.
Report is 917 commits behind head on master.

Files
Patch %
Lines

...va/ai/djl/modality/nlp/generate/TextGenerator.java
2.81%
276 Missing :warning:

.../java/ai/djl/modality/nlp/generate/SeqBatcher.java
0.75%
132 Missing :warning:

...ity/nlp/generate/ContrastiveSeqBatchScheduler.java
2.97%
98 Missing :warning:

...i/djl/modality/nlp/generate/SeqBatchScheduler.java
9.83%
55 Missing :warning:

.../java/ai/djl/modality/cv/BufferedImageFactory.java
40.96%
47 Missing and 2 partials :warning:

...a/ai/djl/modality/nlp/generate/StepGeneration.java
2.04%
48 Missing :warning:

api/src/main/java/ai/djl/ndarray/NDArray.java
43.42%
39 Missing and 4 partials :warning:

...n/java/ai/djl/modality/cv/output/CategoryMask.java
22.00%
39 Missing :warning:

...i/src/main/java/ai/djl/ndarray/NDArrayAdapter.java
71.21%
31 Missing and 7 partials :warning:

.../cv/translator/SemanticSegmentationTranslator.java
37.50%
35 Missing :warning:

... and 76 more

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2864      +/-   ##
============================================
+ Coverage     72.08%   72.14%   +0.05%
- Complexity     5126     7148    +2022
============================================
  Files           473      708     +235
  Lines         21970    31915    +9945
  Branches       2351     3314     +963
============================================
+ Hits          15838    23024    +7186
- Misses         4925     7311    +2386
- Partials       1207     1580     +373

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


OOM error when training on a 220G Memory machine with 8 V100.

Is your feature request related to a problem? Please describe.
I tried to train a model with my own data about 300G  after binarized. And there will be an OOM error for this. Is there any parameter that can be used for loading part of the data in a stream way?

There is not. I recommend you shard your dataset like the Pile (https://the-eye.eu/public/AI/pile/train/) and then unpack and train on one shard at a time.


OSS-Fuzz Integration

Hi maintainers
I would like to integrate the project into OSS-fuzz. This is a free service by Google where they perform continuous fuzzing of open-source projects used by industry and with the only expectation that maintainers of the project will patch the bugs found by OSS-Fuzz.
Atheris will be used to fuzz this project. Atheris is a python-based fuzzer created by Google.
If you are interested in this, could you please provide me with an email address that will be receiving the bug reports that Atheris find?
Aldo

@TheCrott, thanks for reaching out, we have no interest in this at present but will keep it in mind :)


[Bug]: DebeziumIO fails to claim records from a database

What happened?
When I ran DebeziumIO.read() (2.45.0 and higher) transformation with default configuration it fails with exception "Error occurred when consuming changes from Database". In fact it throws NullPointerException when trying to unbox "restriction.milisToRun" Integer (which is null) when trying to claim records from a database.

This field is defined as nullable so each time it becomes null the NullPointerException is thrown here.

Stacktrace:
Caused by: java.lang.RuntimeException: Error occurred when consuming changes from Database.  	at org.apache.beam.io.debezium.KafkaSourceConsumerFn.process(KafkaSourceConsumerFn.java:269) Caused by: java.lang.NullPointerException 	at org.apache.beam.io.debezium.KafkaSourceConsumerFn$OffsetTracker.tryClaim(KafkaSourceConsumerFn.java:403) 	at org.apache.beam.io.debezium.KafkaSourceConsumerFn$OffsetTracker.tryClaim(KafkaSourceConsumerFn.java:366) 	at org.apache.beam.repackaged.direct_java.sdk.fn.splittabledofn.RestrictionTrackers$RestrictionTrackerObserver.tryClaim(RestrictionTrackers.java:59) 	at org.apache.beam.io.debezium.KafkaSourceConsumerFn.process(KafkaSourceConsumerFn.java:254) 	at org.apache.beam.io.debezium.KafkaSourceConsumerFn$DoFnInvoker.invokeProcessElement(Unknown Source) 	at org.apache.beam.repackaged.direct_java.runners.core.OutputAndTimeBoundedSplittableProcessElementInvoker.invokeProcessElement(OutputAndTimeBoundedSplittableProcessElementInvoker.java:125) 	at org.apache.beam.repackaged.direct_java.runners.core.SplittableParDoViaKeyedWorkItems$ProcessFn.processElement(SplittableParDoViaKeyedWorkItems.java:567) 	at org.apache.beam.repackaged.direct_java.runners.core.SplittableParDoViaKeyedWorkItems$ProcessFn$DoFnInvoker.invokeProcessElement(Unknown Source) 	at org.apache.beam.repackaged.direct_java.runners.core.SimpleDoFnRunner.invokeProcessElement(SimpleDoFnRunner.java:211) 	at org.apache.beam.repackaged.direct_java.runners.core.SimpleDoFnRunner.processElement(SimpleDoFnRunner.java:188) 	at org.apache.beam.repackaged.direct_java.runners.core.ProcessFnRunner.processElementInReadyWindows(ProcessFnRunner.java:76) 	at org.apache.beam.runners.direct.ParDoEvaluator.processElement(ParDoEvaluator.java:244) 	at org.apache.beam.runners.direct.DoFnLifecycleManagerRemovingTransformEvaluator.processElement(DoFnLifecycleManagerRemovingTransformEvaluator.java:54) 	at org.apache.beam.runners.direct.DirectTransformExecutor.processElements(DirectTransformExecutor.java:165) 	at org.apache.beam.runners.direct.DirectTransformExecutor.run(DirectTransformExecutor.java:129) 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 	at java.base/java.lang.Thread.run(Thread.java:829)
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components

[ ] Component: Python SDK
[ ] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[X] Component: IO connector
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

.take-issue


Problem with horizontal scroll element in rtl mode

Describe the bug
A clear and concise description of what the bug is.
Problem with horizontal scroll element in rtl mode. scroll not work
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

I am not using RTL, so I'd be grateful if someone who does would step in and come up with pull requests to address any RTL-related issues...

hi icflorescu
Is the scroll managed by your library or by the Mantine library?
Can you give me a guide that I should check the codes of which file or section.


feat: navigation tests

navigation tests for

[ ] OneToMany
[ ] ManyToOne
[ ] OneToOne

[ ] disable fk on typeorm


Adding C++ programs with DSA

I would like to take up this issue
please assign me with this @TAbhay and add the hacktoberfest label to this.

Please assign this issue to me @gandhi25samar

@gandhi25samar Put it in algorithms/or create Languages directory
Also move java folder into Languages directory
Languages/cpp
Languages/java


Feature Idea, Voice Alarms for DClone

So I just discovered that PowerShell can talk to you:
$voice = New-Object -ComObject Sapi.spvoice
$voice.rate = 0
$Region = "NA"
$voice.speak("d clone inbound on $region")
Might look into adding this as an optional, configurable feature for S5 Ladder.

Mostly there and tested with an actual d clone walk. Won't quite be ready for publishing tomorrow morning though :(

Still a WIP. Tested and improved logic yesterday. Currently adding in DClone source options, config validation and error handling for when DClone source API's become unreachable.

Implemented


allow user to specify sample argument name

We don't honor this config yet. This is tracked by #2366.

Codecov Report

Merging #2367 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master    #2367      +/-   ##
============================================
- Coverage     86.66%   86.66%   -0.01%
- Complexity     5220     5221       +1
============================================
  Files           455      455
  Lines         20810    20810
  Branches       2255     2255
============================================
- Hits          18035    18034       -1
  Misses         1980     1980
- Partials        795      796       +1

Impacted Files
Coverage Δ
Complexity Δ

...gle/api/codegen/transformer/SampleTransformer.java
97.64% <0%> (-1.18%)
17 <1> (+1)

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 a24196d...093405c. Read the comment docs.


is Sw6.x compatible with ElasticSearch 5.x

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

Is it possible to use ElasticSearch as a storage medium for data storage in the 6.x version, is it compatible with ElasticSearch 5.x?
So we use the ElasticSearch 5.x version online, upgrading is a difficult task.

Bug

Which version of SkyWalking, OS and JRE?

Which company or project?

What happen?
If possible, provide a way for reproducing the error. e.g. demo application, component version.

Requirement or improvement

Please describe about your requirements or improvement suggestions.

You could take a reference from here, https://github.com/SkyAPM/SkyWalking-With-Es5x-Storage
This repository is not updated for a while. But you can get the idea about how to support ElasticSearch 5.


[resotocore][fix] Make infra apps execute full lines not chunks

Description
Make infra apps execute full lines not chunks.
Also refactors some of the template args to be passed as args not put in the global space.
Code of Conduct
By submitting this pull request, I agree to follow the code of conduct.

Codecov Report
Patch coverage: 100.00% and project coverage change: -0.01 :warning:

Comparison is base (5aa1c82) 88.98% compared to head (bdccc6d) 88.97%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1572      +/-   ##
==========================================
- Coverage   88.98%   88.97%   -0.01%
==========================================
  Files          82       82
  Lines       13022    13020       -2
==========================================
- Hits        11587    11585       -2
  Misses       1435     1435

Flag
Coverage Δ

resotocore
88.97% <100.00%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

resotocore/resotocore/infra_apps/local_runtime.py
94.73% <100.00%> (-0.18%)
:arrow_down:

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


DBExt breaks phpcomplete-extended

This is not a problem with phpcomplete-extended. I just put it here because it happens when you use phpcomplete-extended so you will seek the problem there.
Please leave open. I come back here when dbext fixes it (i notified them).
When both dbext and phpcomplete-extended are installed vim completely hangs for minutes when opening a php file. The following patch to dbext fixes that problem.
diff --git a/autoload/dbext.vim b/autoload/dbext.vim
index b920cfb..f107b0d 100644
--- a/autoload/dbext.vim
+++ b/autoload/dbext.vim
@@ -1077,7 +1077,7 @@ function! s:DB_resetGlobalParameters()
         " Check for previous options for dbext and tell the user
         " the must update the parameters
         redir  @a
-        silent! exec 'let'
+        " silent! exec 'let'
         redir END

         if @a =~ 'db_ext'

Cleanign up my issues. Not using this anymore and there is a release of dbext in 2015 with an commant sazing they fixed this. Closing this. Reopen if someone still has that issue. Guess not.


track: commitment transaction desync VLS <> CLN

This is a tracking issue for the root cause of a number of issues,
listed at the bottom. The issue at hand is that up until #7027
we had an issue that could result in the signer state being updated,
but the CLN state not reflecting that change. With #7027 this
issue has been resolved, however nodes that were in this situation
cannot back out of it, as that would equate to a replay of an old
state, and the validation is there to explicitly prevent that.
If VLS were to implement a mode (as a SimpleValidatorFactory
argument?) that tells VLS to temporarily opt out of the enforcement of
this policy, we could use that to get the nodes unstuck, close the
channel, and get back to a situation where the VLS and the CLN state
match up again.
Discussing this with @ksedgwic, the signer will always sign based on
its local state, and so the options are two:

Patch the state before invoking: this is essentially overwriting
the signer state with whatever the node is reporting back, ensuring
that the local state and the state provided by the request match
up. This would mean that the special permissive mode doesn't have
to be wired through the call-stack, but involves introspecting the
state in two places (the patching side and the processing side).
Wire the special mode through to the verification, and base
descisions on the request transaction, rather than the local state
transaction. This would involve more code changes as both have to
be handed down the call-stack, as well as a flag to signal which
state to use for signing, but most of that is already passed down
for verification of equality anyway.

The VLS team will likely know which variant (a) fits better with their
general architecture, and (b) cause the least amount of disturbance
for what is after all a relatively rare occasion (that could manifest
in different ways in the future, so a clean architecture and
extensibility is desirable here to get users unstuck).
Related issues

https://github.com/Blockstream/greenlight/issues/420
https://github.com/Blockstream/greenlight/issues/349

Known instances:

[ ] 02aff1834ae45d42bcf9e2eb6994d52db2673ea5b09f48100aa73b255851972f5c
[ ]

We have a patch merged into VLS: https://gitlab.com/lightning-signer/validating-lightning-signer/-/merge_requests/686
We expect that this patch prevents CLN and VLS from desynching due to a repeated revoke_previous_holder_commitment. This is due to a replay of a potentially unacknowledged revocation after restart.

@cdecker  That sounds like good news. I am guessing we should follow up here with a breez sdk release. Will it be on top of greenlight main or you prefer to hotfix the latest stable of greenlight with this VLS patch (The one that the sdk was released from)?

There are quite a few changes that we'll need to check before catching up with VLS, and then the SDK can pull in from main. We'll leave this PR open until then.

With the publication of the latest version we can consider this one as closed.


client_email is undefined error after using Workload Identity Provider auth

TL;DR
After following steps in README to deploy using workload identity provider auth, I am getting an error on the deploy step stating "The incoming JSON object does not contain a client_email field"
Expected behavior
Deploy would work and not error complaining about JSON auth object.
Observed behavior
Got the error described above.
Output:
Run<EMAIL_ADDRESS>
# Prints environment info

Setting project Id from $GCLOUD_PROJECT
Error: The incoming JSON object does not contain a client_email field

Reproduction
Action YAML

jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest

    # Add "id-token" with the intended permissions.
    permissions:
      contents: "read"
      id-token: "write"

    steps:
      - uses: actions/checkout@v2
      - id: auth
        name: "Authenticate to Google Cloud"
        uses<EMAIL_ADDRESS>        with:
          workload_identity_provider: "projects/{projectId}/locations/global/workloadIdentityPools/{my-pool}/providers/{my-provider}"
          service_account: "{service-account-email}"
      - id: deploy
        uses<EMAIL_ADDRESS>        with:
          name: ${{ env.CLOUD_FN_NAME }}
          runtime: ${{ env.CLOUD_FN_RUNTIME }}

Additional information
To setup the workload identity provider used in the<EMAIL_ADDRESS>step, I followed the instructions listed here exactly: https://github.com/google-github-actions/auth#setting-up-workload-identity-federation

Hi @pbacon-blaber
Could you check using google-github-actions/deploy-cloud-functions@main. We haven't cut a release yet.

@bharathkkb that appears to be working for me, thanks so much!
Will this be out in a 0.7.0 release soon?

Yea, we'll cut a release shortly!


Cannot select and highlight text

Since click to drag is enabled on desktop, I cannot select any text which feels odd on the web.

Ya makes sense. We definitely want to retain drag in some areas on web, but we can look at using a seperate ScrollBehavior for the editorial view.


Dockerfile not up to date

Current dockerfile and scripts are not up to date.
I have tried to use it and noticed that some used files do not exist anymore.
I have written my own dockerfile (with only one container for both app and db). I can prepare a pull request if you are willing to use.

Hi harzallah,
This project is no longer maintained.


Tasklist not supported when mounting Chainlit as a fastAPI subapp

Describe the bug
When the Chainlit app (v1.2.0) is mounted as a FastAPI sub-app using mount_chainlit, a TaskList element fails to load, displaying "An error occurred" in the top-right corner where the task list should be. However, the Chainlit app works correctly when run directly without mounting to FastAPI.
To Reproduce
Steps to reproduce the behavior:

Create a Chainlit app with the Tasklist example provided in the Chainlit documentation:

import chainlit as cl

@cl.on_chat_start
async def main():
    # Create the TaskList
    task_list = cl.TaskList()
    task_list.status = "Running..."

    # Create a task and put it in the running state
    task1 = cl.Task(title="Processing data", status=cl.TaskStatus.RUNNING)
    await task_list.add_task(task1)
    # Create another task that is in the ready state
    task2 = cl.Task(title="Performing calculations")
    await task_list.add_task(task2)

    # Optional: link a message to each task to allow task navigation in the chat history
    message = await cl.Message(content="Started processing data").send()
    task1.forId = message.id

    # Update the task list in the interface
    await task_list.send()

    # Perform some action on your end
    await cl.sleep(1)

    # Update the task statuses
    task1.status = cl.TaskStatus.DONE
    task2.status = cl.TaskStatus.FAILED
    task_list.status = "Failed"
    await task_list.send()

Mount the Chainlit app to a FastAPI app using mount_chainlit:

from fastapi import FastAPI
from chainlit.utils import mount_chainlit

app = FastAPI()

@app.get("/app")
def read_main():
    return {"message": "Hello World from main app"}

mount_chainlit(app=app, target="test_tasklist.py", path="/chainlit")

Run the FastAPI app with Uvicorn.

uvicorn test_mount:app --host <IP_ADDRESS> --port 80

Expected behavior
The TaskList element should load and display the tasks as expected, as it does when the Chainlit app is run directly without mounting to FastAPI.
Screenshots

Desktop (please complete the following information):

OS: Windows 11
Browser: Firefox, Chrome, Edge

@tioans Thanks so much for pointing this out! @willydouhard has created a PR attempting to fix this.
We'd greatly appreciate if you're perhaps able to confirm whether indeed his patch resolves your issue. Just the little extra testing that helps us ensure quality. :)


WinGet install breaks executables

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest version
[X] Search the existing issues.

Summary
When you install DesiredStateConfiguration-Preview using WinGet, the executables that are packaged e.g. registry.exe, cannot be called anymore.
The error message:

I'm not aware of the process behind WinGet, but it looks like the executables should also be registered in the USERPROFILE.

It also became harder to discover the original resources:
if (TestWinGetModule)
{
    # TODO: life is difficult with WinGet
    $version = (GetDscVersion) -replace "preview.", ""
    $architecture = ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture).ToString().ToLower()
    $Path = Join-Path $env:ProgramFiles 'WindowsApps' "Microsoft.DesiredStateConfiguration-Preview_3.0.$version.0_$architecture`__8wekyb3d8bbwe" 'dsc.exe'
}

The other side-effect will be for bootsrapping scenario's - Pester tests will fail if called directly.
Steps to reproduce
Install dsc.exe from WinGet and try calling registry.exe.
Expected behavior
Able to call `registry.exe` outside `dsc.exe`

Actual behavior
Unable to call `registry.exe` outside `dsc.exe`

Error details
No response
Environment data
Name                           Value
----                           -----
PSVersion                      7.4.5
PSEdition                      Core
GitCommitId                    7.4.5
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Version
dsc 3.0.0-preview.10
Visuals
No response

So AppStore installed apps don't allow the user to access files that are in the App's home directory, however, dsc.exe itself can.  So if you use a config that uses the registry resource, it will still work:
$yaml = @'
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2024/04/config/document.json
resources:
- name: windows product name
  type: Microsoft.Windows/Registry
  properties:
    keyPath: HKLM\Software\Microsoft\Windows NT\CurrentVersion
    valueName: ProductName
'@
dsc config get -d $yaml

However, this does open up a bigger issue where apps installed from the AppStore that contains DSC resources dsc.exe can't discover them currently as the resource manifest can't be accessed.  Let me follow up with the Appx/Store team.

I could have mentioned the fact that dsc.exe was still working.
The ability to fetch schema information from command-based resources that haven't it embedded in the *.dsc.resource.json, allows me to build up data used in PowerShell.
It isn't really related to this issue, but the package in the store doesn't have a version number. I can imagine that it is already on the list or in an issue. If that's the case, please ignore the remark.
Having such information available, helps in scenarios to install/upgrade dsc.exe in a more automated fashion. It's also nice to have the information in the executable properties. Would winres be useful to set the properties?

@Gijsreyn you can always get the version of the Store one using dsc -V

@SteveL-MSFT Yes I've got that now scripted, but I don't always want to rely on calling dsc -v consistently. Other options would be nice also.

Direct access to supporting exes/files is deliberately restricted by the Store, so this isn't something we can work around

Hey @SteveL-MSFT, I know this issue has been closed, but I was still thinking about it. Would publishing a package to the Windows Package Management repository be a good idea?


Teleporting with scoreboards such as Faction's scoreboard removes it

Describe the bug
This is a weird bug to describe, but when going into a world with a scoreboard, such as a factions world using a factions scoreboard and teleporting to another world (for example going to the nether, the end, a multiverse world, etc...) it essentially "disables" the scoreboard.
To Reproduce
Steps to reproduce the behavior:

Use Factions with scoreboards on.
Go to nether world or end
Go back to overworld and the scoreboard is gone

Expected behavior
Scoreboards to not be affected.
Server (please complete the following information):

OS: Linux
Type: Paper
Version: 1.15.2
SS-Version: 1.3.7

Console
No console errors occurred.

Disabling DISABLE_COLLISIONS should fix this, as I'm pretty sure the collision disabling uses scoreboard options to do this. I'll leave this open and look into a way you can have disable collisions on and not clear scoreboards

Not fixing this bug for the foreseeable future. Someone else may work to implement this, by coming up with a way to disable collisions without using the scoreboard. LivingEntity#setCollidable has been notorious for not working. You may have to go without the collisions disabled for a time. I am worried that interfering with the scoreboard could cause more problems than it's worth.


Implement function pointer return types

Resolves #23

Thanks for the fix! I updated the unit tests to cover these cases.


Fix issue#25702

Fixes #28746
@joheredi, @scottaddie, @schaabs, @KarishmaGhiya, @maorleger for notification.

API change check
API changes are not detected in this pull request.


Unable to build dgidb

Hello,
I'm trying to build dgidb locally according to guidence in INSTALL-LINUX.
And when it came to rake dgidb:load_local, I got these errors:
git submodule update --init data
Cloning into 'data'...
^[[Cfatal: unable to connect to git.genomedata.org:
git.genomedata.org[0: <IP_ADDRESS>]: errno=Connection timed out

Clone of 'git://git.genomedata.org/dgidb_data.git' into submodule path 'data' failed
Unable to access the git repo, you are probably outside our firewall.
Downloading the data dump manually.
wget -O /home/dgidb/dgidb/data/data.sql http://dgidb.org/downloads/data.sql
--2021-04-11 17:04:07--  http://dgidb.org/downloads/data.sql
Resolving dgidb.org (dgidb.org)... <IP_ADDRESS>
Connecting to dgidb.org (dgidb.org)|<IP_ADDRESS>|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://dgidb.org/downloads/data.sql [following]
--2021-04-11 17:04:08--  https://dgidb.org/downloads/data.sql
Connecting to dgidb.org (dgidb.org)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-04-11 17:04:09 ERROR 404: Not Found.

rake aborted!
Failed trying to wget -O /home/dgidb/dgidb/data/data.sql http://dgidb.org/downloads/data.sql in /home/dgidb/dgidb
/home/dgidb/dgidb/lib/utils/snapshot_helpers.rb:61:in `system_or_die'
/home/dgidb/dgidb/lib/utils/snapshot_helpers.rb:55:in `download_data_dump'
/home/dgidb/dgidb/lib/tasks/db_bootstrapping.rake:52:in `rescue in block (2 levels) in <top (required)>'
/home/dgidb/dgidb/lib/tasks/db_bootstrapping.rake:47:in `block (2 levels) in <top (required)>'

Caused by:
Failed trying to git submodule update --init data in /home/dgidb/dgidb
/home/dgidb/dgidb/lib/utils/snapshot_helpers.rb:61:in `system_or_die'
/home/dgidb/dgidb/lib/utils/snapshot_helpers.rb:48:in `update_data_submodule'
/home/dgidb/dgidb/lib/tasks/db_bootstrapping.rake:48:in `block (2 levels) in <top (required)>'
Tasks: TOP => dgidb:load_local

Is there anyway to solve this?

Fix in progress. Duplicate of #572.


Language Sites

I am wondering if it is me being dense, or whether co-opting the theme for a foreign language site is not really practicable.
I have made a monolingual site, in French, so the other languages are now inactive.
My main index.html in docs is of this type:

	<meta name="generator" content="Hugo 0.74.2" />
        <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">

.....etc

(docs/de) German and (docs/fr) Spanish are similar, just the language is adapted.
(docs/en) is like this
< !DOCTYPE html><title>http://example.com/</title><link rel="canonical" href="http://example.com/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=http://example.com/" />

{{ $paginator := .Paginate (where .Site.RegularPages ".Params.post" "!=" false) }}

{{ if .IsHome }}
  {{ if eq $paginator.PageNumber 1 }}
    <title>{{ .Title }}</title>
    <meta name="description" content="{{ .Site.Params.description }}" />
  {{ else }}
    <title>{{ .Title }} | Page {{ $paginator.PageNumber }}</title>
    <meta name="description" content="This is page {{ $paginator.PageNumber }} of our content." />
  {{ end }}
{{ else }}
  {{ if .Params.seoTitle }}
    <title>{{ .Params.seoTitle }}</title>
  {{ else }}
    <title>{{ .Title }}</title>
  {{ end }}
  <meta name="description" content="{{ .Description }}" / >
{{ end}}

And the docs/fr is thus:
<!DOCTYPE html><title>https://www.onpointsm.fr/</title><link rel="canonical" href="https://www.onpointsm.fr/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=https://www.onpointsm.fr/" />
So I am wondering why my docs/fr/index.html is so sparse....
Do i need to modify or add something?

Nice.....but your portfolio does not open

And obviously, like me, you are a work in progress
https://volkerbeck.info/en/

Strange, I was able to open them in English (not yet finished) and German:
https://volkerbeck.info/en/#projects
https://volkerbeck.info/projects/ - works well


how to config url

how to config url/ip to acces moodle from other device??

Hi @nandar1305,
What is your need exactly? Are you using docker compose? Where is your deployment, local machine or an online service?
There is a environment variable called SITE_URL that you can use to config URL.

As @lupa18 says, please explain a little what are you trying to do, because the possibilities are unlimited :)

Hi @nandar1305,
What is your need exactly? Are you using docker compose? Where is your deployment, local machine or an online service?
There is a environment variable called SITE_URL that you can use to config URL.

i use in docker-compose, and want to acces moodle from other device offline from my laptop.

In that case, you just need to enter to your device by its IP address: http://:8080
It is possible that you need to open the 8080 port in your firewall to access it, but this is more related to your system configuration and not about the moodle install, so I will close the issue. Best!


XMP containing invalid bytes leading fail to decode image

Describe the bug
Fail to decode image just because of some invalid bytes in XMP.
Steps/Code to Reproduce
from PIL import Image
from pillow_heif import register_heif_opener

register_heif_opener()

im = Image.open("images/input.heic")  # do whatever need with a Pillow image

input.heic: https://easyupload.io/2p5p0d
Expected Results
No error is thrown or warning prompt.
Actual Results

Versions
3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]
Windows-10-10.0.19041-SP0
0.9.2
{'version': {'libheif': '1.14.2', 'x265': 'x265 HEVC encoder (3.4+31-6722fce1f)', 'aom': 'AOMedia Project AV1 Encoder v3.5.0'}, 'decoders': {'HEVC': 1, 'AV1': 1, 'AVC': 0}, 'encoders': {'HEVC': 1, 'AV1': 1, 'AVC': 0}}

Hm, this is a valid XMP but, me just forgot that maybe will be case when last byte can be zero.
I will add test & fix for this and will publish a hotfix release within 36 hours.
Thanks for replying this!

Hm, this is a valid XMP but me just forgot that maybe will be case when last byte can be zero. I will add test & fix for this and will publish a hotfix release within 36 hours.
Thanks for replying this!
Added: After closer look at sample, I see two bugs.

Zero byte at the end of XMP
XMP encoding is latin1

I will wrap decode in try handler and in case of exception during decoding will use latin1 to decode. As defusedxml do not support data in latin1 encoding, XMP data in this case will be converted to utf-8. After resaving file with such XMP data, it will be a bit differ in raw comparison(as string it should be equal, but not when comparing as bytes)

String encoding is always the trouble... There are so many local encodings and hard to identify.

Yeah, but not so many encodings can be used to encode XMP and latin1 encoding has no invalid bytes, so now it is fine.

@eeyrw can we close this?


chat: Add zulipchat page

This is usable as a landing page for NHPC/Nordic-rse as well, so we
don't need to deplicate this information over and over.
To do: link to main page (wait for the section to appear)
To do: add some pictures of joining streams?
To review: everything, this is a draft and I haven't' thought about
the topics too much.  Can it be made shorter?

This is great. Thanks for writing this up!

This is ready to go.


Validate Protocol

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
I am using Protocol in python and though the pydantic could accept Protocol as annotation
from typing_extensions import Protocol
from pydantic import BaseModel

class Getter(Protocol):
     def get(self):
         ...

class Model(BaseModel):
     getter: Getter

In the exemple above it would means that getter is expected to be conform to the Getter Protocol, i.e. it should have the get method.
Affected Components

[ ] Compatibility between releases
[X] Data validation/parsing
[ ] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[ ] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

You'll need to define a __get_pydantic_core_schema__, as mentioned in the error message. See Customizing validation with __get_pydantic_core_schema__ for more information.

As far as I understand, pydantic focuses on runtime data validation, settings management, and serialization tasks. It utilizes Python type annotations to define schemas and performs validation during runtime based on these definitions. pydantic offers flexibility in handling data structures and settings, making it well-suited for scenarios where data validation and parsing are crucial, although it also supports type checking alongside its primary functionalities.
I guess your use case looks closer to mypy, which serves as a robust static type checker, prioritizing type safety and correctness during compilation. mypy encourages strict typing practices, ensuring that type-related errors are caught early in development. it integrates seamlessly with existing Python codebases, allowing for gradual adoption of type annotations.
Considering a dummy example below, using the dummy_validator function ensures that the Foo and Bar classes conform to the Getter protocol.
from pydantic import BaseModel
from typing import Protocol, Annotated, Callable, Any

class Getter(Protocol):
    def get(self) -> None:
        ...

class GetterModel:
    def get(self) -> None:
        pass

class NonGetterModel:
    ...

class AnyValidation:
    @classmethod
    def __get_pydantic_core_schema__(cls, _type: type, _handler: Callable) -> dict[str, Any]:
        return {'type':'any'}

class Model(BaseModel):
    getter: Annotated[Getter, AnyValidation]

Model(getter=GetterModel()) # mypy works fine
Model(getter=NonGetterModel()) # mypy raises an error

Or another example below (which is more closer to my usecase :D)
from typing import Protocol

class Getter(Protocol):
    def get(self) -> None:
        ...

def register_model(cls: type[Getter]) -> type[Getter]:
    return cls

@register_model
class Foo:
    def get(self) -> None:
        ...

@register_model  # Here mypy will raise an error
class Bar:
    ...


Additional v2 Information - Please read before submitting new issues

You most likely do not need any configuration for this plugin to work as expected. Regardless, please take the time to read below.
Relavant:

webpack's output.path
node's process.cwd()
del's pattern matching

Migration
If using basic config new CleanWebpackPlugin(['dist']), simply remove ['dist'] and everything will work as expected. Otherwise read carefully below.
Defaults

All files inside webpack's output.path directory will be removed, but the directory itself will not be. If using webpack 4+'s default configuration, this means everything under <PROJECT_DIR>/dist/. Use cleanOnceBeforeBuildPatterns to override this behavior.

During rebuilds, all webpack assets that are not used anymore will be removed automatically.

Options:

cleanOnceBeforeBuildPatterns: Runs before webpack emits files to output.path. This happens once during the initial webpack build, but not rebuilds. Will run regardless of webpack errors.

cleanAfterEveryBuildPatterns: Runs after webpack has completed build. Happens after initial webpack build and after every subsequent successful rebuild. Will not run if any webpack errors are detected.

IMPORTANT: cleanOnceBeforeBuildPatterns and/or cleanAfterEveryBuildPatterns patterns are relative to  webpack's output.path. If outside output.path, use an absolute path path.join(process.cwd(), 'build/**/*') and run first with dry: true to ensure nothing unexpected is deleted.

cleanStaleWebpackAssets: Automatically remove unused webpack assets on rebuilds.

protectWebpackAssets: Do not allow custom pattern matching found in cleanAfterEveryBuildPatterns to remove current webpack assets.

dry: Only report files to be removed but do not actually delete any files.

verbose: Report files that were removed.

dangerouslyAllowCleanPatternsOutsideProject: Should only be used if removing files using cleanOnceBeforeBuildPatterns and/or cleanAfterEveryBuildPatterns outside of process.cwd(). Be very careful with this option. You can permanently delete more than just your project files.

Outdated v1 options:

paths: Use cleanOnceBeforeBuildPatterns and/or cleanAfterEveryBuildPatterns.

beforeEmit: Use cleanOnceBeforeBuildPatterns and/or cleanAfterEveryBuildPatterns.

exclude: Use !negative pattern matching with cleanOnceBeforeBuildPatterns and/or cleanAfterEveryBuildPatterns.

watch: Not needed. Use cleanAfterEveryBuildPatterns to remove non-webpack files after rebuild.

allowExternal: Renamed to dangerouslyAllowCleanPatternsOutsideProject. You most likely do not need this option with version v2 because it checks against process.cwd() rather than plugin option root.

root: No longer used.

@chrisblossom should we close/update?

Updated!


Disabling axis lines

Hi, in this example the only lines left are the lines at the axis.
How to disable them?
This doesn't work:
{
  gridLines: {
    display: false
  }
}

https://jsfiddle.net/au386pck/
Thanks!

This has already been fixed for the next release. A new option is added drawBorder that removes the border.


configure: do not use SGen if Mono < 3.0

As pointed out in https://github.com/fsharp/fsharp/issues/86 , Mono 2.10.x
may be still too unstable to use Mono's generational garbage collector.

Still have the same problems, though I'm using Mono > 3.x any idea?

What problems?


ThermalView.exe may contain malware

Over a dozen virus scanners are detecting a trojan in ThermalView/ThermalView.exe:
https://www.virustotal.com/en/file/055ac103ab139b6cb81c632fd67e38f1a758704c82683cbebb266bc3fb9a2b8e/analysis/1439180429/

Thanks for the info, that is weird.. If you recompile from the source do you get the same trojans?

I am not using this module and cannot compile it at this time (it's not clear what environment this requires that I don't already have) - I was alerted to the potential virus when I  cloned this repo, and investigated as above.
I would suggest removing the executable and leave it to the user to build their binary, at least until a clean binary is available or (if this is a false positive) the reason for the problem is more clear.

So, I thought it was fine but it wasn't... still showing the same heuristic detection though not as many. Not sure what it is about the code that is triggering this but it'll trip any antivirus that sees it as a threat.

Well, this ranks up there as one of the weirder things I've ever seen: the problem is the application icon, period. Using a different app icon resolves the issue. I'll create a pull request tonight with that as well as an updated readme and a couple other minor cleanups.
(Background: I'm going to guess that this old generic icon is featured in many a demo app, and probably many a malicious app derived from a demo app. I scanned the icon alone and got nothing... and I scanned the app with no icon and also got nothing. But the combination of the two triggers the heuristics for multiple scanners.)


Update Postgres Password - Write Endpoint

I published a new version of the base image to help with the build, can use this one quay.io/tembo/rust:1.77-slim to fix the build error


[Refactor] Implement new design for HeadOnCollisionsComparisonWidget

redesign HeadOnCollisionsComparisonWidget that will match following design
for now don't pay attention to sizes, fonts, etc.
temporary logo can stay on bottom of Card

duplicated


[release-1.7] Fix regression for Endpoints without pod reference

Manual cherrypick required.
#25978 failed to apply on top of branch "release-1.7":

https://github.com/istio/istio/pull/25985


Phishlets for Sts federated office 365 domain without mfa

Wonderful work many thx
I trying to create a sts.yaml file to test my federated domain directly with https://sts.mydomain.com/adfs/ls/idpinitiatedsignon.aspx
On my account Office 365 MFA is enabled, but as i log directly on STS, the MFA not started, MFA start when you log on login.microsoftonline.com then with a federer domain you are redirected to your federation (sts)
I must be completed the YAML to conbinated login.microsoftonline.com and sts.mydomain.com, if it's possible.
My sts.yaml (captured with fiddler)
`name: 'sts'
author: '@fdaz'
min_ver: '2.1.0'
proxy_hosts:

{phish_sub: 'sts', orig_sub: 'sts', domain: 'mydomain.com', session: true, is_landing: true}
sub_filters:
{hostname: 'sts.mydomain.com', sub: 'sts', domain: 'mydomain.com', search: 'action="https://{hostname}', replace: 'action="https://{hostname}', mimes: ['text/html', 'application/json']}
{hostname: 'sts.mydomain.com', sub: 'sts', domain: 'mydomain.com', search: 'href="https://{hostname}', replace: 'href="https://{hostname}', mimes: ['text/html', 'application/json']}
auth_tokens:
domain: 'sts.mydomain.com'
keys: ['MSISSamlRequest','MSISAuth']
user_regex:
key: 'UserName'
re: '(.)'
pass_regex:
key: 'Password'
re: '(.)'
landing_path:
'/adfs/ls/IdpInitiatedsignon.aspx'`

Hey. Sorry, it is too hard to help without trying to make that phishlet from scratch myself.


BoxDecoration tweaks

Reorder the code, remove some redundant documentation, improve the
interpolation logic.

Will land on green.

actually, landing on red, because redness seems to just be a flake.


Is there a plugin/example to create tags outside the text box?

I need to

Search tag
Drag and reorder tsgs
Add new tags
Delete tags
Have tags shown outside the text-box as-list.
I can see the first four being provided by select2
Does anyone know of any plugin/example where the 5th one is done out of the box as well ?

This appears to be more of a usage question than a bug report or common feature request.  As we continue to keep the Select2 issue tracker geared towards these two areas, bug reports and common feature requests, we are redirecting usage questions to other communities such as the mailing list, IRC, or Stack Overflow.