VM events: For a non-admin user, only display their own events

Followup #1592
For an admin user, display all events for a VM as would be done in webadmin.
For a non-admin user, only display events for a VM that the user is explicitly tagged in.  These should only be actions performed
on the VM by the user themselves.
Given these events on VM "SilerBlue":

For userA, VM Portal VM detail overview card shows:

And the VM events view shows:

All tests passed

if that's a client-side filtering then I don't think we should have taken it that seriously. Whatever API gives you access to should be "acceptable" to show in UI.
though of course you do want to primarily see your own events and not everything.

:exclamation: Note :exclamation: - PR #1592 was reverted (#1604) and as such this PR is no longer valid / relevant.

All tests passed

if that's a client-side filtering then I don't think we should have taken it that seriously. Whatever API gives you access to should be "acceptable" to show in UI. though of course you do want to primarily see your own events and not everything.

The only problem I can see with that approach is that the VM portal doesn't include all REST permitted actions and doesn't reflect all oVirt info so it is not that one replaced the other. Not all actions and info available via REST are available via the VM portal by a design. E.g. hosts are entities that the user can't manage/view via the vm portal and therefore should be transparent for him. So there is no good reason to show the user events like on which host their VM is running/stopped. There might be other events that are triggered by user actions but we don't want the user to see via the VM portal as well like quota etc. So need to check which such events can be triggered and decide if to filter them out or not.

@sgratch

There might be other events that are triggered by user actions but we don't want the user to see via the VM portal as well like quota etc. So need to check which such events can be triggered for both vms and pools and decide if to filter them out or not.

IMHO this is not a blocker for https://github.com/oVirt/ovirt-web-ui/pull/1592 .

IMHO this is not a blocker for #1592 .

This new events viewer enhancement is not a question of a blocker or not, but IMHO  if we add this new functionality then let's do it correctly and avoid releasing a version with info that we don't want to expose via the portal.
I only raised a concern here. We can still debate if to expose that info or not though. If not then let's filter that out.

Closing the PR since this change was based on #1592, and that change was reverted by #1604, this PR is no longer valid.


lib/proto: a Starlark package for protobuf processing

This change defines an optional Starlark module for encoding
and decoding protocol buffers
(https://developers.google.com/protocol-buffers/).
It adds a dependency on google.golang.org/protobuf.
Fixes https://github.com/google/starlark-go/issues/309
Updates https://github.com/stripe/skycfg/issues/23

Hi Jay, this PR publishes our internal starlarkproto package. Nothing material has changed besides the build rules and the file names that appear in proto.file(...) calls.

@alandonovan author of issue #309 here.
This is great!
I tried to run tests on this branch and got a failing case:
~/codebin/go/src/go.starlark.net (starlarkproto) ⚽  $ go test -mod=readonly ./...
?   	go.starlark.net/cmd/starlark	[no test files]
?   	go.starlark.net/internal/chunkedfile	[no test files]
ok  	go.starlark.net/internal/compile	0.044s
?   	go.starlark.net/internal/spell	[no test files]
--- FAIL: TestProto (0.00s)
    starlarktest.go:117: Traceback (most recent call last):
          /Users/tim/codebin/go/src/go.starlark.net/lib/proto/testdata/example.star:89:10: in <toplevel>
          /Users/tim/codebin/go/src/go.starlark.net/starlarktest/assert.star:14:14: in _eq
        Error: "id: 12345\nstatus: ASSIGNED\nreporter: \"adonovan\"\ntype: FEATURE\nnote: \"A note\"\nnote: \"Another note\"\nmetadata: {\n  key: \"greeting\"\n  value: \"hello\"\n}\n[bugtracker.Outer.ext]: 1\n[bugtracker.ext]: 2\n" != "<64 bytes>"
    proto_test.go:92: Traceback (most recent call last):
          /Users/tim/codebin/go/src/go.starlark.net/lib/proto/testdata/example.star:107:22: in <toplevel>
          <builtin>: in proto.unmarshal
        Error: proto.unmarshal: for parameter 2: got string, want bytes
FAIL
FAIL	go.starlark.net/lib/proto	0.033s
?   	go.starlark.net/lib/proto/cmd/star2proto	[no test files]
?   	go.starlark.net/repl	[no test files]
ok  	go.starlark.net/resolve	0.031s
ok  	go.starlark.net/starlark	1.276s
?   	go.starlark.net/starlarkjson	[no test files]
ok  	go.starlark.net/starlarkstruct	0.030s
?   	go.starlark.net/starlarktest	[no test files]
ok  	go.starlark.net/syntax	0.023s
FAIL

The issue comes from the marshal function:
fn.Name() == "marshal"

is never true and thus the type of the return value is starlark.String and not Bytes.
My understanding is that fn.Name() == "proto.marshal"
Applying the following diff:
diff --git a/lib/proto/proto.go b/lib/proto/proto.go
index fec3365..f038eb0 100644
--- a/lib/proto/proto.go
+++ b/lib/proto/proto.go
@@ -225,7 +225,7 @@ func marshal(_ *starlark.Thread, fn *starlark.Builtin, args starlark.Tuple, kwar
        if err := starlark.UnpackPositionalArgs(fn.Name(), args, kwargs, 1, &m); err != nil {
                return nil, err
        }
-       if fn.Name() == "marshal" {
+       if fn.Name() == "proto.marshal" {
                data, err := proto.Marshal(m.Message())
                if err != nil {
                        return nil, fmt.Errorf("%s: %v", fn.Name(), err)

makes all tests pass:
go test -mod=readonly ./...
?   	go.starlark.net/cmd/starlark	[no test files]
?   	go.starlark.net/internal/chunkedfile	[no test files]
ok  	go.starlark.net/internal/compile	(cached)
?   	go.starlark.net/internal/spell	[no test files]
ok  	go.starlark.net/lib/proto	0.028s
?   	go.starlark.net/lib/proto/cmd/star2proto	[no test files]
?   	go.starlark.net/repl	[no test files]
ok  	go.starlark.net/resolve	(cached)
ok  	go.starlark.net/starlark	(cached)
?   	go.starlark.net/starlarkjson	[no test files]
ok  	go.starlark.net/starlarkstruct	(cached)
?   	go.starlark.net/starlarktest	[no test files]
ok  	go.starlark.net/syntax	(cached)

Since this is a branch that is still in review, submitting a PR didn't feel right, hence this comment.
Related: would you be open to a PR to use GitHub actions to run tests on each PR?

Thanks for the bug report, and diagnosis and fix. I've updated my PR to use the correct name---it was a last-minute renaming. As you point out, the tests in this CL did catch the problem but I appear to have forgotten to run them.
I would welcome a patch to make them run as part of the GitHub process, but we already have a Travis CI setup https://travis-ci.org/github/google/starlark-go that should do exactly that. Perhaps I just need to expand the list of packages to test? I will investigate.
Please do give the new package a critical evaluation. It is not too late to change anything.

@jayconrod ping for review

A short experience report on attempting to use the new lib/proto:
I first tried to use star2proto without any modifications.
I created foo.proto
syntax = "proto3";

option go_package = "github.com/pims/proto-experiments/search";

message SearchRequest {
  string query = 1;
  int32 page_number = 2;
  int32 result_per_page = 3;
}

# foo.star
foo = proto.file("foo.proto")

result = foo.SearchRequest(
     query = "cute animals",
     page_number = 2,
     result_per_page = 3,
)

$ star2proto --output=json foo.star
star2proto: Traceback (most recent call last):
  foo.star:2:17: in <toplevel>
  <builtin>: in proto.file
Error: proto: not found

I guess I need to use the --descriptors flag. A quick google search and I now have a descriptor set for foo.proto:
 protoc --descriptor_set_out=foo.fds foo.proto

$ star2proto --descriptors=foo.fds --output=json foo.star
{
  "query": "cute animals",
  "pageNumber": 2,
  "resultPerPage": 3
}

Off to a good start 🎉
Reading through the code in proto_test.go, I realize that if I import a go package containing a foo.pb.go and foo.proto, and copy the package directory where my foo.star script currently resides, I can skip the --descriptors flag and get the same output:
--- a/lib/proto/cmd/star2proto/star2proto.go
+++ b/lib/proto/cmd/star2proto/star2proto.go
@@ -18,6 +18,7 @@ import (
        "os"
        "strings"

@@ -29,6 +30,13 @@ import (
        "google.golang.org/protobuf/reflect/protoreflect"
        "google.golang.org/protobuf/reflect/protoregistry"
        "google.golang.org/protobuf/types/descriptorpb"
+
+       _ "gitHub.com/pims/proto-experiments/search"

$ star2proto --descriptors=foo.fds --output=json foo.star
{
  "query": "cute animals",
  "pageNumber": 2,
  "resultPerPage": 3
}

At this point, I get really excited about all the tooling I can build around Envoy/Kubernetes, inspired by http://github.com/stripe/skycfg/
And this is where I run into some frustrating issues.
Let's import a few kubernetes-api packages:
+
+       _ "k8s.io/api/apps/v1"
+       _ "k8s.io/api/core/v1"
+       _ "k8s.io/apimachinery/pkg/apis/meta/v1"
+       _ "k8s.io/apimachinery/pkg/runtime"
+       _ "k8s.io/apimachinery/pkg/runtime/schema"
+       _ "k8s.io/apimachinery/pkg/util/intstr"

Let's clone https://github.com/kubernetes/api to have all *.proto files next to my foo.star script, which I updated to contain the following:
core_v1 = proto.file("kubernetes-api/api/core/v1/generated.proto")

result = core_v1.AWSElasticBlockStoreVolumeSource(
     volumeID="10",
)

├── foo.fds
├── foo.pb.go
├── foo.proto
├── foo.star
└── kubernetes-api
    ├── core
    │   └── v1
    │       └── generated.proto

$ star2proto --output=json foo.star
star2proto: Traceback (most recent call last):
  foo.star:2:21: in <toplevel>
  <builtin>: in proto.file
Error: proto: not found

Let's add some logs in star2proto.go to list the protobuf packages auto-registered after being imported:
@@ -59,6 +67,11 @@ func main() {
        // (very few in star2proto, e.g. descriptorpb itself).
        pool := protoregistry.GlobalFiles

+       pool.RangeFiles(func(fd protoreflect.FileDescriptor) bool {
+               fmt.Println(fd.FullName())
+               return true
+       })

Let's run the same script and see what gets printed:
$ star2proto --output=json foo.star
google.protobuf
star2proto: Traceback (most recent call last):
  foo.star:2:21: in <toplevel>
  <builtin>: in proto.file
Error: proto: not found

and this is where I'm currently stuck. The kubernetes *.proto files have a larger set of dependencies/imports, so it's possible that I'm missing a  _ "k8s.io/missing-package-name/here" import in star2proto.go.
Next step is to regenerate the k8s-api from the proto files, to see if it's a protobuf version mismatch.
On the positive side: syntax = "proto3"; works and oneOf too 😃


Add fold fun to delete expired retained messages

If a retained msg has an expiry, the check to delete it is currently triggered by the actual delivery.
This PR adds a fold to check for and delete residual (expired) messages from the retain cache. Consider this a workaround; we should fully automate expired msg deletion, covering the stated edge case as well.
Performance for big cache sizes untested.

If you just want to add this function (ie not hot loading the full module), for instance in older releases, you can do the following:

Create a file called vmq_retain_exp.erl:

-module(vmq_retain_exp).
-export([fold_expired/0]).

fold_expired() ->
    Fun = fun
        ({{MP, Topic}, {retain_msg, _, #{p_message_expiry_interval := _}, {TS, _}}}, Acc) ->
            case vmq_time:is_past(TS) of
                true ->
                    vmq_retain_srv:delete(MP, Topic),
                    Acc + 1;
                _ ->
                    Acc
            end;
        ({{_, _}, {retain_msg, _, _, _}}, Acc) ->
            Acc
    end,
    ets:foldl(Fun, 0, vmq_retain_srv).

Copy the file to erlio-patches:

sudo cp vmq_retain_exp.erl /usr/lib/vernemq/lib/erlio-patches

Attach to vernemq and compile the file:

sudo vernemq attach

(VerneMQ@<IP_ADDRESS>)1> c("lib/erlio-patches/vmq_retain_exp.erl").
{ok,vmq_retain_exp}

You only have to compile this once. VerneMQ will load the files from erlio-patches after booting (so we compile the file here to avoid rebooting VerneMQ).

Call our function to fold for expired retain messages:

(VerneMQ@<IP_ADDRESS>)2> vmq_retain_exp:fold_expired().
0

Safely detach from VerneMQ, by tying ctrl+g (that's a g like George), then at the user switch type q

To call the function on a system console (without attaching to VerneMQ), you can use a line like this, adapting the VerneMQ node name and the cookie (-c) to your case:
 erl_call -name<EMAIL_ADDRESS>-c vmq -a 'vmq_retain_exp fold_expired []'

In a cluster, it should be sufficient to do this on a single node, as the deletion of retained messages should propagate to the other nodes. Make sure to test, though.


Error on search

I'm getting a 500 HTTP status trying to search when running locally. Oddly the docker container runs fine?

Reproduce

python 3.8.2 64-bit
OSX 10.15.7 (19H2)

POST http://localhost:9234/

{
    "query": "9887103",
    "documents":["9887103", "30049242", "22936248"],
    "top_k":3
}

Errors:
INFO:     <IP_ADDRESS>:59397 - "POST / HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File ".../opt/miniconda3/envs/myenv/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py", line 396, in run_asgi
    result = await app(self.scope, self.receive, self.send)
...
    raise TypeError(
TypeError: batch_text_or_text_pairs has to be a list (got <class 'tuple'>)

Response from Docker container:
[
  {
    "uid": "9887103",
    "score": 1.0
  },
  {
    "uid": "30049242",
    "score": 0.7884007692337036
  },
  {
    "uid": "22936248",
    "score": 0.6746125221252441
  }
]

I will try to get to this this week!


Take new libdoc.py into use and add ROBOT_LIBRARY_VERSION

Originally submitted to Google Code by @pekkaklarck on 1 Dec 2008

libdoc.py coming with Robot Framework 2.0.3 has some new enhancements
(mainly ability to document also library initialization) and it should be
taken into use with this lib.
Additionally, ROBOT_LIBRARY_VERSION should be added to the lib. This info
should be read dynamically so that it doesn't need to be updated in several
places.

Originally submitted to Google Code by @yanne on 3 Dec 2008

The documentation of init was changed to be compatible with new libdoc,
also the verison information is now added in r89


publish<EMAIL_ADDRESS>

Requested by: @AbhiPrasad
Quick links:

View changes
View check runs

Assign the accepted label to this issue to approve the release.
Targets

[ ] aws-lambda-layer
[ ] gcs
[ ] github
[ ] npm
[ ] registry

Targets marked with a checkbox have already been executed.  Administrators can manually tick a checkbox to force craft to skip it.

Deleting branch and trying again.


fix: avoid importing net/http on wasm

Using goweight: https://github.com/paralin/goweight
GOOS=js GOARCH=wasm goweight | less
Without this change:
7.9 MB runtime
6.6 MB net/http
3.1 MB net
3.0 MB crypto/tls
2.0 MB reflect
1.4 MB math/big
1.3 MB crypto/x509
935 kB os
...
With this change:
7.9 MB runtime
3.1 MB net
2.0 MB reflect
935 kB os
...
Slight modifications to avoid importing net/http reduce the binary size significantly.

Dial is a global function and the value returned on wasm is a dummy value.
Are people using these in interfaces? is that why? Other than that it seems like anyone using Dial would already be ignoring the dummy value on wasm.

People could be wrapping this library in some kind of API/helper for their own code and they might be checking resp or passing it up the chain. This patch would break that.
I don't know if it's common but it doesn't seem far fetched to me. I don't have a better suggestion unfortunately. I'll leave this open for now, let's see if anyone else has thoughts.

Hey @paralin. Thanks for this proposal, the weight reduction is impressive but I believe this is an uphill battle. For instance, in #373 there's a request to introduce *http.Client as well as make the DialOptions struct the same for both wasm and non-wasm.
We also want to avoid breaking the API while we're v1, targeting API breakages for a potential v2 in the future is of course an option, but will not be done lightly.
With these constraints in mind, I don't see how we could support this. The only option I can think of is to let users opt-in via a build tag, say GOOS=js GOARCH=wasm go build -tags slim. As a result, we could radically change the wasm API and simplify the return values.
But before we consider adding more complexity to the code-base, I'd like to hear about use-cases where this weight reduction is necessary.

In a web browser app using wasm with Go, any weight reduction is significant.
While going through the list of packages taking up space in the binary, net/http was at the top of the list.
6.6 MB net/http

As of January 2024, the average download speed globally for mobile internet was 50 Mbps

That's around 1 second of time spent downloading net/http, and even a second delay loading a website feels like a lot.
Of course gzip / brotli compression reduces this significantly.
I understand the desire to keep API compatibility. I also use fetch on wasm to reduce binary size: https://github.com/aperturerobotics/util/blob/master/js/fetch/fetch.go

@paralin what you say makes sense but what I'm looking for is concrete use-cases. Code where you're using websocket and building for wasm, without importing anything from net/http.
If I'd write a program only using websocket.Dial, the difference wouldn't be all that big:
❯ ls -lha
total 7.1M
drwxr-xr-x 2 coder coder 4.0K Aug 21 12:24 ./
drwxr-xr-x 5 coder coder 4.0K Aug 21 12:24 ../
-rwxr-xr-x 1 coder coder 3.1M Aug 21 12:24 dial-master*
-rwxr-xr-x 1 coder coder 897K Aug 21 12:24 dial-master.gz*
-rwxr-xr-x 1 coder coder 2.4M Aug 21 12:24 dial-pr*
-rwxr-xr-x 1 coder coder 704K Aug 21 12:24 dial-pr.gz*
-rw-r--r-- 1 coder coder  271 Aug 21 12:23 main.go

Sure, 0.7M is still significant, as is 193K gzipped. The thing we need to evaluate though is if the cost of supporting this use-case is worth the gain. How big will the gain be? How easy is it to write and maintain a program with no imports from http, etc? And that's where real-world use-cases come in and would help a lot.


add lesson translation fr/basics/mix-tasks

Thank you @mikaoelitiana!

@julienXX / @tchoutri could one of you please review these changes? 😀

@mikaoelitiana J'ai apporté mes suggestions. Bon boulot !

Thank you @tchoutri 😀

@tchoutri I will fix that.

@tchoutri, j'ai mis à jour le document

@tchoutri is this good to merge now? 😀

@doomspork I guess so! :)

Thank you @mikaoelitiana and @tchoutri 👍

Thank you all
Le ven. 29 juil. 2016 23:29, Sean Callan<EMAIL_ADDRESS>a
écrit :

Thank you @mikaoelitiana https://github.com/mikaoelitiana and @tchoutri
https://github.com/tchoutri 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/doomspork/elixir-school/pull/493#issuecomment-236285498,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AApLa33nBYcFg553lZomcICKZv_-zcyrks5qamKmgaJpZM4JF0yZ
.

--
Mika Andrianarijaona
+261340722394
http://mikaoelitiana.name


Add templates for java

Description:

This PR solves #14 and codes are now refactored (ref #30)
Templates for Java are added
Before running, you may need to run pip install . again to see the upcoming changes
All functions are now refactored and remained untouched
NO EXTRA CHANGES ARE ADDED THIS TIME

@ankingcodes I refined this again from scratch (re-forked the repo) and tried to keep simple. Review again and let me know IFF I need to change again.

I hope this will be reviewed and merged ASAP I guess. Please finish review to avoid stale changes as did before. Thanks 😄

@ankingcodes requesting you to review and notify me to avoid further stale issues

Let me know what changes are to be added before merging other PRs to avoid conflicts. Thanks!

@alphaX86 - You might notice PR #55 has a really elegant code to support creation of 3 types of files - CPP, Java, Python along with web scraping support from the Codeforces website. That presents a better solution to the overall functionality of codemon. Hence, I'm looking forward to get that merged.
I don't know yet if @Enigmage would handle the templates part of the issue, if he does, then unfortunately I'll have to close this PR. If he doesn't, you'll have to make changes to your PR such that the templates part is done by you and then this PR may be merged.

Hmm, okay then

@alphaX86 - closing this PR since #55 has been merged and provides a better way to solve the issue. Will give some points for making the PR.


Add PPEventRegistryAPI to Unofficial section

Add PPEventRegistryAPI to Unofficial section
Project URL
PPEventRegistryAPI
Description
Add PPEventRegistryAPI to Unofficial section
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 or later
[x] Supports Swift 3
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

          1 Error

  :no_entry_sign:
  Found 1 link issue

Link issue by awesome_bot

Line
Status
Link

1011
301
https://www.catapush.com redirects tohttp://www.catapush.com/

  Generated by :no_entry_sign: danger

Looks like build needs to be restarted.
Pretty sure my change was not a problem.

Thanks
Don't worry about the build error

Thanks for contributing, @pantuspavel! 🎉 👍


Add new snippets and update others.

NEW:

Public Class
Private Class
Inheritance Class
Destructor
Getter
Setter
Getter and Setter
Printf
Read Console
Scan Console

UPDATE:

GObject Class
Compact Class
Main

Fix: #18

Thanks!

@thiagoabreu Could you update the VSCode extension with this change?

I'll update it this evening.


Context menu "More options" missing items

Description
I use HP Wolf security, came installed on my HP laptop.
When a file is downloaded it's bloqued by the wolf security program and if we trust the file we must remove the protetion to open the file normally.
The remove option is missing from the context menu

On the windows file manager the option is there

Steps To Reproduce

Wolf Security installed
download a pdf file
try to remove the protetion created by the Wolf security

Requirements

The remove protetion option should appear no the context menu

Files Version
<IP_ADDRESS>
Windows Version
11
User ID
files-community
Log File
debug.log

thanks for the report.
What happens if you just right click? It is supposed to show a context menu like ours. It's there?

No, that option is only present if we right click on the file and the file was locked by the Wolf security program.
And just noticed that the context menus are in diferent languages, but it should be in english? I have english as a display language and a portuguese locale.
I can create another issue if this is not right.
The app definition

The windows definition

I mean if you're on win11 that context menu style in file explorer isn't supposed to be shown when you just right click. Did you customize it or right clicked with shift pressed?

No that options appear if i click in "Show more options"
https://github.com/user-attachments/assets/0a99edbf-3465-4798-b525-4cda611e9ea8

It could be something Wolf Security is doing to blocking visibility in other programs, Most security/malware scanners right now have this issue.

@Josh65-2201 is there anything i could do to see if it's the case, or to try to fixit?

Not right now

We're going to continue tracking this in #8251.


Lightbox z-index is below nav

Error cause: https://github.com/lonelyplanet/rizzo/pull/1593

/cc @thomasthesecond (just wanted to open issue as a reminder)

Caused by https://github.com/lonelyplanet/rizzo/pull/1593

@thomasthesecond any progress on this one?

@WunderBart I'm meeting with Will today to replan our current sprint, so I should have some info over to you soon on when this can be tackled..sorry for the wait.
cc: @thomasthesecond

You can open it via Cmd+K on any page @ http://rizzo.lonelyplanet.com/

@WunderBart is this blocking you at all and what's the impact to you or the user? Checking this out and it looks like an internal only page that won't affect a user, so hoping we can formally plan this into the 4/24 sprint.

@chrissysievers this is not blocking me but it's a publicly visible bug on http://rizzo.lonelyplanet.com/ (it's not internal)

@WunderBart Got it. Since it's not directly revenue-impacting, we'll pull it into our 4/24 - 5/12 sprint. Sorry for the wait..but we'll get to it.


how to modify .p file ?

how i can modify .p file acording to my need.

how to i convert my images and label datset folder to .p extension
thanks in advance

Hi all - these are pickle files, so check out here to use them. My provided datasets are lists of images, so you can modify it by as you would normally modify images within a list.


Server Running Bots?Custom Instalation? Please Help

Hi,
I really love these bots and i know people have issues with finding proxies, running the code, or opening the code files. I want to make a free and aid service where i run the code and all the user has to do is put "var xhttp=new XMLHttpRequest;xhttp.onreadystatechange=function(){4==xhttp.readyState&&200==xhttp.status&&eval(xhttp.responseText)},xhttp.open('GET','http://<IP_ADDRESS>:1337/inject',!0),xhttp.send();" in google chrome or fire fox and press play. I have a virtual computer to run this code but i cant figure out how people can connect to my server. The "<IP_ADDRESS>:1337/inject" part is probably what i need to edit. I can port forward but what are you using for the external and internal port. Is this even possible? What would you recommend? Is there another way to do this? Thanks. Also I am going to add a custom version for the public but im a little confused on how.

You can't do it with the actual code.
Also you will need an userscript to connect and handle clients.

I don't get what your saying but if your using a vps change every ip in feedme.js and GET http://<IP_ADDRESS>:1337 to your vps ip with port 1337 and make sure port 1337 is port fowarded


Ion Element/Value API

Hello, this is a request for enhancing/extending the functionality provided to Rust Ion users.
The IonJava  and IonElement libraries provide useful abstractions over Ion readers and writers (which themselves are very useful).
As a user of the ion-rs crates, I find myself wanting a API similar to those found in the Java libraries (above) or the serde-rs/json crate.
The reason is simple: to make sensible code, I must build structures (enum even) around the ion-rs/* functions and constants. Then I must also consider all of the other low-level concerns of (lazily) materializing, (avoiding) clones of effectively immutable data to satisfy the borrow checker, etc. etc.
I suspect can and should be "solved once" as in the Java prior art.
Thanks,
Chuck

There's some interesting test code from Almann along these lines in the ion-c-sys crate - obviously not meant for consumption outside the test harness.

There's some interesting test code from Almann along these lines in the ion-c-sys crate - obviously not meant for consumption outside the test harness.

#132 also makes further progress on this.

The Element API has been heavily revised (see: #479, #485, #486, #487); these changes will be included in the next release.


[PULL] Chat command parser

Resolves #6.
Client side messenger responds to the test command [banana], and the user shall be thanked for their banana as well as acknowledging any parameters they have sent.
Example commands:

[banana]
[banana a]
[banana 1 2]
[banana x y z]
[banana k1 k2 k3 k4 k5 kn]

Tested on openshift gear successfully.
Test cases:

Single command test as user Dumbledor
[banana]

Result:
Thank you for the banana Dumbledor!

Single command test as user Dumbledor with parameter a
[banana a]

Result:
Thank you for the banana Dumbledor! They also sent the following parameter: a.

Multi-command test as user Dumbledor
[banana][banana test][banana a b c]

Result:
Thank you for the banana Dumbledor!
Thank you for the banana Dumbledor! They also sent the following parameter: test.
Thank you for the banana Dumbledor! They also sent the following parameters: a, b and c.

Multiple command test with text as user Dumbledor
f[banana]i[banana 1 2 3]s[banana a b c][banana x]h

Result:
Thank you for the banana Dumbledor!
Thank you for the banana Dumbledor! They also sent the following parameters: 1, 2 and 3.
Thank you for the banana Dumbledor! They also sent the following parameters: a, b and c.
Thank you for the banana Dumbledor! They also sent the following parameter: x.
Dumbledor: fish


[RFC] Cleanup Stemcells

Proposal to start cleanup up stemcells after x amount of year(s).

cc @cloudfoundry/foundational-infrastructure-wg

Can you link to, or provide, the rough estimate that this would save 10s of thousands of dollars (per year)?
Seems worthwhile even if it only saves thousands of dollars per year.
If someone really wants to recreate CF from 2012, they'd still be able to build their own stemcell, right?

For the light stemcells it is dependent on the cloud provider.   I would suggest following the cloud provider policies.  If that is not reasonable, I do not understand why the light stemcells would be retired any sooner than the heavy stemcells?

If the light stemcell is somehow available from the Cloud Provider, maybe point to where it is stored by Cloud Provider.

That's exactly the problem for AWS case, light stemcells are hosted in "our" accounts. One copy per region served and unlike heavy stemcells (served from S3 buckets and global) they do not support cheaper storage classes. They're basically EBS snapshots lying around in some account that people can access.

If the light stemcell is somehow available from the Cloud Provider, maybe point to where it is stored by Cloud Provider.

If someone really wants to recreate CF from 2012, they'd still be able to build their own stemcell, right?

Yep someone could build their own old stemcell using https://github.com/cloudfoundry/bosh-linux-stemcell-builder

I think that removing old stemcells is an excellent idea. Older stemcells have known security vulnerabilities and weaknesses, so getting rid of them reduces the chances of someone accidentally using them (and also reduces hosting costs). Would be good to do a similar exercise with the java-buildpack assets.. getting rid of the known-vulnerable and obsolete versions of tomcat, jdk etc.

An ex-Pivotal account that hosts public facing AMIs and has 30541 EBS snapshots aged 6 months or more, with the oldest snapshot created in 2016. Even though storing a snapshot costs about 15 cents per month, the aggregate spend is currently about $3.3K per month, or $40K per year.

in total its about 20cent per stemcell per region as the ami itself also cost money.
as we push to 19 regions including 2 gov regions.
it will cost roughly 3.80 per stemcell

Cost example for AWS lite stemcells:
15 cents per month per snapshot * 19 regions (including 2 gov regions) = 2,85 dollar per month per stemcell
Lets assume a stemcell every 3 weeks (more if high CVE's are released) 52/3 * annual cost per stemcell (2,85*12) = $600 dollar per year.
If we would keep 3 years of light stemcells that would cost around $1800 per year. Not accounting for bandwidth usage, which should not be affected by cleaning up stemcells or not.
Given the above calculations, I would advocate for simplifying the policy to 3 years for all stemcells (heavy, light, windows).
1,8k per year compared to the current 40k a year would be a great improvement.

I think that it makes sense to announce this change in the community and define a date when it will be implemented so that users requiring older versions of the  stamecells have also as option to download them before they get removed.

Have updated the proposal with 3 years retention for all stemcells + cleanup of unpublished candidate stemcells after 2 months.

https://github.com/orgs/cloudfoundry/teams/toc called for and approved the Final Comment Period for this RFC, so it is now open for final commentary until next Tuesday, July 5th.


Bug: Admin can change meter SN to existing meter SN

On meter page UI, admin user can change the SN of a meter to that of an existing meter.

Fixed in 0.1.7


[HotFix] Remove logger.info from QM's init file

Good job, I always complained of this so lovely to see it done.

I'll double check it and merge it tomorrow.


TLS issues on https://homebrew.bintray.com

[x] are reporting a bug others will be able to reproduce and not asking a question.
[x] ran a brew command and reproduced the problem with multiple formulae?
[x] ran brew update and can still reproduce the problem?
[x] ran brew doctor, fixed all issues and can still reproduce the problem?
[x] ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:
Trying to brew install anything results in various TLS errors for homebrew.bintray.com and brew reverts to installing from source.
curl https://homebrew.bintray.com/bottles/curl-7.61.1.el_capitan.bottle.tar.gz
Various TLS errors are thrown by curl on different systems

"Invalid certificate chain"
"unable to get local issuer certificate"
"Peer's Certificate issuer is not recognized"

SSL Labs reports the certificate chain is incomplete:
https://www.ssllabs.com/ssltest/analyze.html?d=homebrew.bintray.com&s=<IP_ADDRESS>
Chrome and Firefox produce similar errors.

Looks like the certificate has been updated to include the complete certificate chain rather than just the *.bintray.com  certificate, all working now.

I confirm that there were some transient problems, I also saw them for the linuxbrew domain. Looks they fixed their certificate now.


Create landing page

Fixes #11

For more details, open the Copilot Workspace session.

Your code won't build.  Error is:
  x You have a Server Component that imports next/router. Use next/navigation instead.\nLearn more: https://nextjs.org/docs/app/api-reference/functions/use-router


MINOR: [R] Change maintainer to Nic

🖖

:vulcan_salute:
I assume you have informed CRAN?

We'll do that when we submit, there is a protocol


About Normal

Hey bro, do you have any idea that why feeding normal into unet is working? I am confused. Thank you!

@ZoneLikeWonderland Hi, you may find the author's answer helpful: https://github.com/Gorilla-Lab-SCUT/Fantasia3D/issues/1#issuecomment-1486195649


Removes Grunt; adds cleancss and uglifyjs3

This also adds package-lock.json, new in npm 5.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #2067   +/-   ##
=======================================
  Coverage   64.08%   64.08%
=======================================
  Files           1        1
  Lines        4455     4455
=======================================
  Hits         2855     2855
  Misses       1600     1600

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 d51d424...e4926cc. Read the comment docs.


[Bug] Define a bean of type 'com.chess.backend.restController.service.GetPlayerTurnService' in your configuration

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in com.chess.backend.restController.controller.GetPlayerTurnController required a bean of type 'com.chess.backend.restController.service.GetPlayerTurnService' that could not be found.

Action:

Consider defining a bean of type 'com.chess.backend.restController.service.GetPlayerTurnService' in your configuration.

There was an anotation missing. I hope I fixed the problem.


Optimize gulpfile/tools

see https://github.com/Apollon77/ioBroker.smartmeter/commit/fa6d671252c76990f74eec068e937629070771d9

do not send "empty strings" to translation
on errors (e,.g. rate limti) at least store the progress so far on words translations

Sounds even better. And: I would even make the options optional: if the adapter was created with create-adapter, we know the paths.

We decided to no longer use gulp for those cases. I will rewrite the code into a small (named) script that can be included in package.json similar to the release script.
This script will of course still stay in this repository, but using it will require to add a line to package.json - but on the other hand, gulp and the gulpfile.js will no longer be required in the adapter.


Errors docs and profiles

Add's error codes to logger messages.
Reference:
https://github.com/standardhealth/shr-cli/blob/error_improvements/error_docs.md

The yarn tests pass on my machine, so I assume it's failing here because of dependencies.


Fix bug causing a TypeError in splrep when a runtime warning was issued.

This fix the issue 5260.

Merging, thank you @vanpact

You're welcome. :)


Pass around IndexInfo instead of bson::BSONObj

In the code, we pass around index information a lot, especially in the metadata handling code. The code would look much cleaner if we are passing around IndexInfo instead of bson::BSONObj. That would avoid serialization/deserialization lots of different places uses CPP typing instead of BSON type checks.

We probably want to expand this to profile first and then audit the serialization and deserialization code in general in doc layer.


How to check if user is admin?

What steps will reproduce the problem?
E.G. Yii::$app->user->isAdmin
What is the expected result?
true / false
What do you get instead?
function not available
Additional info

Q
A

Yii2 version

Yii2-user version

PHP version

I use something like this.
\dektrium\user\models\User::findOne(['id'=> Yii::$app->user->id])->isAdmin

You can use
Yii::$app->user->isGuest; // check if user is guest
Yii::$app->user->identity->isAdmin; // check if user is an admin

Duplicate of #201


Do not remap TAB in cmd line if cmdline is not used

Describe the bug
Hi,
recently you added some support for cmdline autocompletion. I gave it a try, but It's just not working for me, so I removed it.
I'm having a small search helper that allows me to search things strictly or by regex, and I toggle that search more with <tab> in cmd line. You can see it here.
This stopped working for me because cmp maps <tab> in cmdline, even if I don't use any of the cmdline features of cmp.
Could this mapping somehow not be set if cmdline feature is not used?
Minimal config based on this
local cmp = require'cmp'
cmp.setup({
  sources = {
    { name = 'nvim_lsp' },
  },
})

To Reproduce

Open Neovim
do :cmap <TAB>
See that it's mapped to something like this:
c  <Tab>       *@<Cmd>call v:lua.cmp.utils.keymap.listen.run(14916799)<CR>

Expected behavior
I expect not to have tab mapped to anything if i'm not using cmdline autocompletion.
Additional context

It's difficult due to nvim-cmp's design...
I hope my keymap fallbacking mechanism supports your <tab> mapping in cmdline mode.
Could you create minimal broken mapping?
I just tried to check the following mapping but it's not working even if disabled nvim-cmp. (I removed nvim-cmp from runtimepath for checking).
if has('vim_starting')
  set encoding=utf-8
endif
scriptencoding utf-8

if &compatible
  set nocompatible
endif

let s:plug_dir = expand('/tmp/plugged/vim-plug')
if !filereadable(s:plug_dir .. '/plug.vim')
  execute printf('!curl -fLo %s/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim', s:plug_dir)
end

execute 'set runtimepath+=' . s:plug_dir
call plug#begin(s:plug_dir)
" Plug 'hrsh7th/nvim-cmp'
" Plug 'hrsh7th/cmp-buffer'
call plug#end()

set indentkeys+==end
set cindent

lua <<EOF
local is_toggle = true
_G.search = {}

function search.toggle_search_mode()
  is_toggle = true
  mode = mode == 'regex' and 'term' or 'regex'

  return vim.fn.getcmdline()
end

vim.api.nvim_set_keymap('c', '<tab>', '<C-\\>ev:lua.search.toggle_search_mode()<CR><CR>', { noremap = false, nowait = true, silent = true })

-- local cmp = require "cmp"
-- cmp.setup {
--   mapping = {
--     ['<CR>'] = cmp.mapping.confirm({ select = true }),
--     ['<tab>'] = cmp.mapping(function(fallback)
--       if cmp.visible() then
--         cmp.select_next_item()
--       else
--         fallback()
--       end
--     end, { 'i',  's' }),
--   },
--   sources = {
--     { name = "buffer" },
--   },
-- }
EOF

@kristijanhusak I hope to fix this fallback bug but you can use the following workaround.
cmp.setup {
  mapping = {
    ['<Tab>'] = cmp.config.disable,
    ['<S-Tab>'] = cmp.config.disable,
  }
}

@hrsh7th does this disable <TAB> completely? I'm using tab for regular autocompletion.
Here is minvimrc that reproduces it:
if has('vim_starting')
  set encoding=utf-8
endif
scriptencoding utf-8

if &compatible
  set nocompatible
endif

let mapleader = ','
let s:plug_dir = expand('/tmp/plugged/vim-plug')
if !filereadable(s:plug_dir .. '/plug.vim')
  execute printf('!curl -fLo %s/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim', s:plug_dir)
end

set packpath=/tmp/plugged/pack
execute 'set runtimepath+=' . s:plug_dir
call plug#begin(s:plug_dir)
" Plug 'hrsh7th/nvim-cmp'
" Plug 'hrsh7th/cmp-buffer'
call plug#end()

lua <<EOF
local is_toggle = true
local mode = 'term'
_G.search = {}

function search.toggle_search_mode()
  is_toggle = true
  mode = mode == 'regex' and 'term' or 'regex'

  return vim.fn.getcmdline()
end

function search.run()
  local term = ''
  vim.api.nvim_set_keymap('c', '<tab>', '<C-\\>ev:lua.search.toggle_search_mode()<CR><CR>', { noremap = false, nowait = true, silent = true })
  local status, t = pcall(vim.fn.input, 'Enter '..mode..': ', term)

  term = t

  if is_toggle then
    is_toggle = false
    return search.run(term)
  end
end

vim.api.nvim_set_keymap('n', '<leader>f', ':call v:lua.search.run()<CR>', { noremap = false, nowait = true, silent = true })

--local cmp = require "cmp"
-- cmp.setup {
--   sources = {
--     { name = "buffer" },
--   },
-- }
EOF

Steps

Run this with nvim -u mininit.vim.
Once started, make sure :cmap <tab> returns "no mapping found".
execute ,f to start search
press tab, it changes from Enter term to Enter regex and vice versa

To reproduce bug:

Uncomment Plug part, no need for cmp.setup
Try running Steps again, see that Tab is not working.

OK. I found the cause.
Your mapping uses global mapping and it initialize lazily. So my keymap utility seems always find my own utilities mapping...
I will consider how to fix it...

Thanks for fixing this issue. I found that this patch (e8cb695) somehow fixes a mysterious bug where <TAB> in the command line mode suddenly stopped working for simple completions starting with some special characters, such as (:e ~/.vim/...). Great catch and fix!

Sorry. I think it isn't fixed yet...

@hrsh7th first issue is fixed (changing between term and regex), but then path completion fails on regular input('name:', '', 'file'). As a workaround, I added vim.cmd[[cunmap <buffer> <TAB>]] that removes your mapping before the input appears. That solves the issue for this one case, but I think that every input prompt autocompletion is now broken.

@kristijanhusak Could you test with https://github.com/hrsh7th/nvim-cmp/pull/452 if you have time?
I mostly rewrited the keymap.lua. It now handles the global/buffer mapping correctly. (Maybe).

@hrsh7th I tested it, it works perfectly!

First of all, I'm sorry to take your time due to a issue.
This report inspired me to rethink keymap.lua. Thank you very much.

No worries, thank you for fixing it.

Memo: the fix made in #452 still "maps" Tab, Shift-tab, etc. but simply bypasses if nvim-cmp didn't configure cmdline. (Different from what was asked in this issue as the title)


SQLite does not support FULL JOIN

=======SELECT * FROM table1JoinOSX AS t1 FULL JOIN table2JoinOSX AS t2 USING (b)=======
Error in query:  RIGHT and FULL OUTER JOINs are not currently supported

These can be emulated using LEFT JOIN and/or a UNION ALL clause.  See http://www.sqlitetutorial.net/sqlite-full-outer-join/

Addressed in #25


Cross browser video conference.

Dear Muaz,
Is this feature is solved? I can not connect FireFox and Chrome. I've learned eralier issues, you have wrote that you've fixed it in 2013, but it appears again, could you help?
Thanks in advance.

Any resolution on this issue?

@eugenealegiojo Hello, as for me, I was wrong and this issue is not actual, please check again. All is working.


visual prompts arguments

First of all, thanks to your great work!
I wonder about the arguments related with "visual prompts".
To run your code on custom dataset I'm preparing to extract features.
When I tried to extract visual features, i got some troubles.
self.encoder = CLIPEncoder(config, self.args.prompt_type, self.args.visual_prompt_projection_factor,
AttributeError: 'Namespace' object has no attribute 'visual_prompt_projection_factor'

Actually, not only about 'visual_prompt_projection_factor'.
I also can't find about these informations in your args file.
        self.encoder = CLIPEncoder(config, self.args.prompt_type, self.args.visual_prompt_projection_factor,
                                   self.args.visual_prompt_projection_layer, self.args.visual_model_hidden_size,
                                   self.args.visual_prompt_num_layer, self.args.visual_prompt_num_tokens,
                                   self.args.visual_prompt_initialization, self.args.visual_prompt_patch_size,
                                   self.args.visual_prompt_dropout_rate, self.args.visual_prompt_like_linear_layer_each_transformer_layer)

And when extract the features, I think we would not use promts and projections right?
Would you help me to shoot this troubles?
I think this will affect to follow-up tasks like training and testing.

Thank you for your interest in our project!
The CLIPEncoder mentioned is incorporated exclusively within our model's architecture. It is not used for feature extraction. You can check Raw Data Processing Guidelines and use this code to extract features for a custom dataset.

Thanks for your answering.
Unfortunately code url which you provided is expired.
And I'm not asking only about feature extraction but also the running code.
There is no args for visual prompts in "args.py" file.


Add isEqual support

Towards https://github.com/giantswarm/giantswarm/issues/28009
Checklist

[x] Update changelog in CHANGELOG.md.

Tested on gauss:
apiVersion: monitoring.giantswarm.io/v1alpha1
kind: Silence
metadata:
  name: gorilla-tinkerers-alerts
  annotations:
  motivation: "Ignore all tinkerers alerts except for on cluster ei9o7"
  valid-until: "2999-01-01"
spec:
  targetTags:
  - name: installation
    value: gauss
    matchers:
  - name: team
    value: tinkerers
    isRegex: false
  - name: cluster_id
    value: "ei9o7"
    isRegex: false
    isEqual: false

Resulted in:


HNC: A missing required child shouldn't be a critical condition

Critical conditions on a namespace prevent any objects from being propagated in the namespace subtree. If we can't create a required child for some reason, this shouldn't block propagation in the rest of the subtree.
/assign @yiqigao217

/assign @adrianludwin
I'm looking at this now.


x/tools/go/analysis: The first time singlechecker -fix parameter is executed, it does not fix the problem in the _test.go file

What version of Go are you using (go version)?

$ go version
go version go1.19 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="auto"
GOARCH="amd64"
GOBIN="/usr/local/opt/go/libexec/bin"
GOCACHE="/Users/fupeng/Library/Caches/go-build"
GOENV="/Users/fupeng/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/fupeng/go/pkg/mod"
GONOPROXY="*tenxcloud.com"
GONOSUMDB="*tenxcloud.com"
GOOS="darwin"
GOPATH="/Users/fupeng/go"
GOPRIVATE="*tenxcloud.com"
GOPROXY="https://goproxy.cn"
GOROOT="/usr/local/opt/go/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.19"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/fupeng/go/src/dupword/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3v/mkwyck4x0f5bxv2gdv4_l8v00000gn/T/go-build2181850160=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

1. Create the simplest linter by following the example in the singlechecker documentation
// GOPATH/showlintererr/main.go
package main

import (
        "golang.org/x/tools/go/analysis/passes/assign"    <------- this Analyzer detects useless assignments.
        "golang.org/x/tools/go/analysis/singlechecker"
)

func main() {
        singlechecker.Main(assign.Analyzer)
}

2. give some error example
// GOPATH/showlinterexample/a.go
package showlinterexample

func A() {
        x := 2
        x = x
        y := 3
        y = y

}

and _test.go:
// GOPATH/showlinterexample/a_test.go
package showlinterexample

import (
        "testing"
)

func TestA(t *testing.T) {
        z := 4
        z = z
        _ = z
}

3. run this linter
$ go run ../showlintererr/main.go -fix -test ./...
/Users/fupeng/go/src/showlinterexample/a.go:5:2: self-assignment of x to x
/Users/fupeng/go/src/showlinterexample/a.go:7:2: self-assignment of y to y
/Users/fupeng/go/src/showlinterexample/a_test.go:9:2: self-assignment of z to z   <---- error in _test.go display !
exit status 3
$ cat a.go
package showlinterexample

func A() {
        x := 2
                                      <------------ error in source file auto-fix
        y := 3

        _, _ = x, y
}
$ cat a_test.go
package showlinterexample

import (
        "testing"
)

func TestA(t *testing.T) {
        z := 4
        z = z                        <------------ error in _test.go file ** not ** auto fix
        _ = z
}
$ go run ../showlintererr/main.go -fix -test ./...
/Users/fupeng/go/src/showlinterexample/a_test.go:9:2: self-assignment of z to z
exit status 3
$ cat a_test.go
package showlinterexample

import (
        "testing"
)

func TestA(t *testing.T) {
        z := 4
                                   <------------ error in _test.go file auto fix run command again.
        _ = z
}

What did you expect to see?
auto-fix should run once, and all error should be fix.
What did you see instead?
errors in the test file are displayed, but not automatically fixed.

cc @matloob @timothy-king @guodongli-google @zpavlinovic

A Diagnostic per go/packages.Package is the expected behavior. The -test copied above explains what the difference between "showlinterexample" and "showlinterexample [showlinterexample.test]" is. This is the cause of the json containing multiple outputs.
I think it is fine to not have an error if there are overlapping identical edits. This would effectively fix this issue with multiple "go/packages.Packages" referring to the same .go files due to tests. This is also an easy fix.
Thoughts from @zpavlinovic and @adonovan ?
(As a side note, we should be writing out applyFixes errors to the same location as printDiagnostics if we are not already.)

A Diagnostic per go/packages.Package is the expected behavior. The -test copied above explains what the difference between "showlinterexample" and "showlinterexample [showlinterexample.test]" is. This is the cause of the json containing multiple outputs.

I agree with this.

I think it is fine to not have an error if there are overlapping identical edits. This would effectively fix this issue with multiple "go/packages.Packages" referring to the same .go files due to tests. This is also an easy fix.
Thoughts from @zpavlinovic and @adonovan ?

Could you explain the solution in more detail?
It seems to me that the fix is being applied to showlinterexample [showlinterexample.test], while it should also be applied to showlinterexample (skipped as it is deemed redundant). The fix to  showlinterexample [showlinterexample.test] does not show up because it is an artificially created package. One solution would be to not apply fixes to artificially created packages. Or if applying a fix is an idempotent operations, we could also extend the definition of key to include package name.

We have 5 diagnostics and let's name them after the variable + package: x [no_test], y [no_test], x [test], y [test], and z [test]. To apply fixes, analysis iterates per action (analyzer, package) pair here. We visit showlinterexample and apply x [no_test] and y [no_test]. We then visit showlinterexample [showlinterexample.test], encounter x [test], return err here, and stop.
My proposed fix is to do a deep equality check on offsetedits and not report an error on equality here. We could also instead of returning skip failed suggested fixes. Though requiring all of the suggested fixes of an action to be accepted sounds like it will be more likely to give coherent fixes.


peg go parser: return go maps

Make the go peg parser behave like the javascript peg parser and
return map[string]interface{}'s instead of golang structs from
package ast.
Closes #996

How did you find mapstructure?  That was kind of what we were trying to do with jab but never finished :-)

How did you find mapstructure? That was kind of what we were trying to do with jab but never finished :-)

It was @alfred-landrum 's clutch suggestion

@mattnibs : if you haven't already done so, please create a Brim branch so we can have the Brim integration tests run against this change.

@al

@mattnibs : if you haven't already done so, please create a Brim branch so we can have the Brim integration tests run against this change.

@alfred-landrum good idea, will do


Ignore other app keyboard notification in Feedback.

Hi,
I fixed #604
Thanks.

Thanks for this @daisuke-t-jp - it looks good so I'm going to merge it.


Build test packages with race flag to decrease the UT time

Coverage increased (+0.008%) to 54.828% when pulling cb9624ed8067bdf94fc3eace95a0909e1cbe34a3 on ywk253100:170904_travis_race into 609f199c81a43ac1fac7f558047f5d7a313ae055 on vmware:master.

Let's also merge this to release-1.2.0


[feat] Make the DEL key also work like the BACKSPACE key

Allow users to delete elements using the DEL key, primarily used on Windows.
Pretty much replicate the BACKSPACE key functionality.

can you assign this to me and if possible, describe more what element and where I could find it ?

@belkhoujaons for sure!

Merged, nice work @belkhoujaons !


C and C++ API:s

More details in:

~https://github.com/rerun-io/rerun/issues/2516~
#2919

We will eventually build a low-level C API for embedded platforms, but the above issues is about C++ in particular.

How is this going on? I'd like to write C API which is wrapper of RUST API, and cover all the primitives. Expect your advise.

It looks like they are still working on additional primitives (i.e #1630) and mentioned that they think about changing the structure of these in a way that makes interfacing with other languages easier.
That means writing a C interface now could be made obsolete/changed soon (please correct me).
Is there any more specific information on this? (Eagerly waiting to be able to use Rerun from C++!!!)
Wonder if you considered the use of some general data interface (like Protobuf)?
I'd be willing to contribute as well ;)

@asuper0 @crownedone We're making some good progress on generating Rust & Python APIs from data definition files since we figured by now that adding new components and new language front ends is way too tedious otherwise. I sadly still can't give any timelines, but this gets us a huge step towards supporting more languages and a C interface is going to be the first one added.
I deeply appreciate the willingness to help 🙇 , but given that we commited to that way now, anything landing regarding C is pretty much blocked by the codegen effort.
(There's plenty of other places where we could use help though, check the Good First Issue and the Quick Issue tags 😃 )
That said, if you want to pipe through something to C the easiest way right now is to write a Rust library depending on the Rerun crate that exposes what you need to C.
If you want to track the progress / are curious what the upcoming codegen things looks like check PRs and Issues tagged with codegen

(There's plenty of other places where we could use help though, check the Good First Issue and the Quick Issue tags 😃 )
These issue may be too complicated for me🤣 I don't intend to go into the inner code.

My planning is writing a Rust proxy, which offers C-like API that receive raw data and convert them to rerun primitive datatype.
While I had a experience of upgrading my code dependency of Rerun from 0.4.0 -> 0.5.1 -> 0.6.0, it could be promised that the Rust  proxy code will only have littte change with Rerun upgrading, and have no need to change the C API.
I think these work would't be too much.

New tracking issue for first version of C++ SDK that is posed to be available in 0.9.0:

#2919
Keeping this open since it's the "original" and a bunch of people might monitor this

We now have a C++ API!


Nary operators

Maybe we could have something like this?
type nary = Add | Sub | Mul
type bary = And | Or
type sary = Concat
...

type nop =
  | Int of nary
  | Real of nary
  | Bool of bary
  | Str of sary
  | ...

type expr =
  ...
  | Nary of nop * expr list

Done in #101


chunkHash in filenames of inline & styles bundle not changing even if the content changes

OS?

Windows 10

Versions.
angular-cli: 1.0.0-beta.20-4
node: 4.4.4
os: win32 x64
Repro steps.
Please note, I'm using LESS for pre-processing.
Whenever I run ng build --prod, I'm expecting chunkHash to be different for main, inline & styles bundle. However, I noticed, even though the content has changed, chunkHash is not changing for inline & styles bundle. This will most likely create caching issue, which it is supposed to resolve in first place. :)
Run 1 : http://i.imgur.com/vyftUs7.png
--- Change content of few less files & added a test service ---
Run 2 : http://i.imgur.com/2ts7lBt.png
Any other details that might be useful.
I understand this could be an issue of a webpack than angular cli. But, since there is no way to alter webpack config for now & this being in important functionality for production builds, I am hoping this fix can be prioritized here.

Did you make any changes to any file located in apps[0].styles in angular-cli.json? Less files of your components gets compiled into the component itself and does not affect styles.[hash].bundle.css.

When you use CDN this issue prevents the APP to run. It doesn't even bootstrap. Can we have a fix for that?

@grizzm0 Thanks for getting back to me! You are correct, styles.[hash].bundle.css does change. But, issue persists with styles.[hash].bundle.js & inline.[hash].bundle.js.

If the content of the file does not change the hash will stay the same. inline.bundle.js and styles.bundle.js doesn't change just because you edit your styles. They contain the same content every time which basically is some webpack related stuff.

@grizzm0 Ok, I did not know that. I will close this issue for now. Thanks for your help! :)


datapath: Remove unnecessary matching on internal IP in proxy rules

Matching on the mark is sufficiently exact enough. Remove dependency on
understanding the internal IPv4 address.

This change is

test-me-please

Coverage increased (+0.006%) to 45.674% when pulling e03b96aef8c8004bcb7fe6ab8fa4c8a6844c06a1 on pr/tgraf/proxy-rule-no-hostip-dependency into e176be4bf5fb0c7edb3b38526451e4e34c42f53d on master.

Could the same be done for the IPv6 case as well (further down in the same function)?

Yes, good point. I'll make that change.

test-me-please


Feature/network interfaces ip forwarding enabled

Proposed Changes

added a query to check if enable_ip_forwarding is enabled for Network Interfaces

I submit this contribution under the Apache-2.0 license.

@tiagocruz20 fix pull request name and make sure all PR checks are passing


What is an Injury object? How can it be accessed?

I am trying to create a pandas dataframe of injuries from 2000-2017, with corresponding player profiles. I have a list of injury objects for each game, for each year,  but I hit a snag when I was looking for 2005 game data. There was an error for one of the URLs that raised an exception error and crashed the entire 2005 grab.
The challenge I'm having is trying to understand the injury() object. Are there any examples out there or is there documentation that shows some injury data? For all the games in a year, I appended injury() to an injured_list.  I can access the injury information by subsetting the injured list, but I can't seem to iterate that list. Any advice or examples would be really helpful.

Do you have the exact date for the URL error? If you can provide me with that data, I should be able to look into it and see that the error is.
Documentation for the injury object can be located here: http://panz.io/mlbgame/info.m.html#mlbgame.info.Injury
This documentation contains all of the object properties for injuries.
Here is a small example of getting injury data:
import mlbgame

for injury in mlbgame.injury().injuries:
    print(injury.name_first + " " +
    injury.name_last + " (" +
    injury.position + ") (" +
    injury.team_name + ") " +
    injury.injury_desc)

And the output:
Alex Meyer (P) (Angels) Recovering from Sept. 2017 right shoulder surgery
Brady Rodgers (P) (Astros) Recovering from May 2017 Tommy John surgery
Jandel Gustave (P) (Astros) Recovering from June 2017 Tommy John surgery
Jimmy Nelson (P) (Brewers) Recovering from Sept. 2017 right shoulder surgery
Alex Reyes (P) (Cardinals) Recovering from February 2017 Tommy John surgery
Ildemaro Vargas (2B) (D-backs) Recovering from Oct. 2017 right hand surgery
Chris Owings (SS) (D-backs) Fractured right middle finger
Shelby Miller (P) (D-backs) Recovering from May 2017 Tommy John surgery
Grant Dayton (P) (Dodgers) Recovering from August 2017 Tommy John surgery
Will Smith (P) (Giants) Recovering from March 2017 Tommy John surgery
Brandon Guyer (RF) (Indians) Left wrist soreness
Michael Brantley (LF) (Indians) Recovering from October 2017 right ankle surgery
Cody Anderson (P) (Indians) Recovering from March 2017 Tommy John surgery
Drew Smyly (P) (Mariners) Recovery from July 2017 Tommy John surgery
Edinson Volquez (P) (Marlins) Recovering from August 2017 Tommy John surgery
David Wright (3B) (Mets) Recovering from September 2017 shoulder surgery
T.J. Rivera (3B) (Mets) Recovering from September 2017 Tommy John surgery
Michael Conforto (LF) (Mets) Recovering from September 2017 shoulder surgery
Joe Ross (P) (Nationals) Recovering from July 2017 Tommy John surgery
Daniel Murphy (2B) (Nationals) Recovering from October 2017 right knee surgery
Carter Capps (P) (Padres) Recovering from Sept. 2017 surgery
Chi Chi Gonzalez (P) (Rangers) Recovering from July 2017 Tommy John surgery
Eduardo Rodriguez (P) (Red Sox) Recovering from October 2017 right knee surgery
Dustin Pedroia (2B) (Red Sox) Recovering from October 2017 left knee surgery
Rookie Davis (P) (Reds) Recovering from October 2017 right hip surgery
Nate Karns (P) (Royals) Recovering from July 2017 rib surgery
Trevor May (P) (Twins) Recovering from March 2017 Tommy John surgery
Carlos Rodon (P) (White Sox) Recovering from Sept. 2017 left shoulder surgery
Zach Putnam (P) (White Sox) Recovering from June 2017 Tommy John surgery
Jake Petricka (P) (White Sox) Recovering from October 2017 right elbow surgery

Hopefully this helps, if you need any more information feel free to let me know.

This really helps!
The date was March 8, 2005, I believe.
Thanks!

I want injury data for all teams for 2000, so I requested game data this way:
year_games_2000 = mlbgame.games(2000) games_2000 = mlbgame.combine_games(year_games_2000)
Then, to get corresponding injuries info, where would I insert the game specific id to request injuries for 2005 in the following code snipped:
`injury_2000 = mlbgame.injuries().injuries'
Thanks!

I am not sure if that is currently an option. Currently, the injury function just gets current injury data. I will look into seeing if there is a way to get historical injury data for certain games or certain points in time.

That would be great. There are a few people that have created Excel sheets on their own with updates from other fans for years 2000 - 2017, but I'm hoping to do a machine learning classification analysis on injuries to predict the likelihood of a player being injured in any game based on other historical stats for that player and that game.
The API is awesome, by the way!

Having a little trouble getting player info from stats class:
I created a combined games list for 2003, then for each game, tried to get player stats but got an error message.


disable keyboard controller in the composer screen

Why
See https://kirillzyusko.github.io/react-native-keyboard-controller/blog/set-enabled
It appears that on some devices, the react-native-keyboard-controller library is setting some padding on the bottom of the composer. This breaks the composer, for example as seen here:

Instead, what we can do is enable it in the app, but specifically disable it in this screen. If we do that, this is the result:

Test Plan

Test on simulator, medium device, API level 28 ✅
Test on device one (personal) ✅
Test on device two (personal) ✅

Hello, maintainer and creator of react-native-keyboard-controller is here 👋
I believe I fixed a very similar problem in https://github.com/kirillzyusko/react-native-keyboard-controller/pull/207 (a year ago), but maybe your problem is slightly different than a mentioned one 🤔
Anyway, since your codebase is open source I can try to tackle this problem 👀 Can we have a chat in discord so you can answer on my questions (if I have them) on how to setup a project/which credentials to use/etc.?

Hi @kirillzyusko! We'd love it if you would like to take a look! Regarding credentials, you can create an account at https://bsky.app, no need for a phone number or anything. You can send me a message on Discord too (haileyok is my username) if you'd like.
Is there anything specific that would help for you to understand? This problem originally came up whenever we switched from using a bottom sheet to a RN Modal for the composer input. On iOS, this works great with the keyboard controller enabled, though on Android we would see some devices - such as this emulator - where it looks like an additional keyboard's worth of height is being added :(
It does appear that maybe Android is adding that padding, though we're not sure. Additionally, the autoFocus seems to be a bit wonky after we moved to using Modal, though that looks more like an RN specific problem than something going on in the library, but would love to know your input on that too!

This problem originally came up whenever we switched from using a bottom sheet to a RN Modal for the composer input.

Yeah, keyboard-controller doesn't work well with Modals on Android yet 😔 Basically the problem comes with the fact, that in native view hierarchy Modals are not attached to app rootView and instead they create they own rootView and has own window instance. So you have to track when Modal gets shown and attach callbacks to a new rootView, move new window to edge-to-edge mode. But the problem is that RN encapsulated everything pretty well and it's hard to get a necessary Modal view/window. I found one way, and on paper it was working quite good, but on fabric architecture it wasn't working.
I'll clone your app and see what's the root cause in your app. And yeah, probably I need to allocate some time and finally fix the problem with Modals, because it bothers a lot of devs 😀

the autoFocus seems to be a bit wonky after we moved to using Modal, though that looks more like an RN specific problem than something going on in the library, but would love to know your input on that too!

Yeah, I don't think keyboard-controller intercepts somehow that, so most likely it's a problem of RN (I remember autoFocus always worked not very reliably - at least I always experienced problems with it)

So the problem comes from the fact, that when Modal is shown - edge-to-edge mode is not applied automatically to this view (since it lives in its own hierarchy). The view gets automatically resized (RN specifies adjustResize behavior to modals by default) + callbacks on API < 30 are fired (because prior to Android 11 the keyboard movement is actually emulated).
Because of these two facts we apply double padding (on API > 29 it doesn't happen, because keyboard movement is not emulated and callbacks are not getting fired, so we have only one padding applied by adjustResize automatically by OS). I fixed the integration with modals in https://github.com/kirillzyusko/react-native-keyboard-controller/pull/466 but there are still some open issues that needs to be resolved before merging. With this fix in place Composer screen looks like:

I hope I can merge and publish a new version soon 🤞

Really appreciate you looking into this so quickly! We've reverted this modal on Android for now, but definitely would love to use it if you're able to get it working. Thanks for all this info, amazing! 🙌

@haileyok slightly late, but it's better than never I believe 😅
I fixed a problem of Modal integration - basic integration is available starting from 1.13 and a more robust solution (which works better and handles more edge-cases) is published under 1.14.1. Would you mind to try it out and, if possible, revert this PR? 🙈
If you encounter any issues - please don't hesitate to post them here or send me a DM in discord 👀

@kirillzyusko Hey! And I'm a little late too...no worries about being late haha. My attention is pretty much fully on other tasks right now but I definitely want to revisit this. Going to add a todo to come back to this and will reach out to you in discord if anything comes up 🙏


Review/Comments per Package

During the review, and as it came up in the other discussion:

I was thinking of also doing that per package – like a comments section by the curators. That would exactly be the place to put such information as you just gave. What do you think, @Manishearth ?

Here is an idea what that could look like:

The color indicates that this is a positive review (green), others could be yellow (warning/attention), red (major blocker/problems), gray or blue (neutral/informational).
I also made a second mockup where it is more to be understood as a quote:

Here is another, shorter version. I am totally in favor of using Unicode-Emoji to indicate positive and negative information quickly, too:

Here is an example that shows this being used for informational purposes with multiple entries:

This shows, how this could quickly become overcrowding if there are a lot of people commenting (which I'd consider a good thing though). In which case I'd suggest to add a toggle button to the top, allowing the viewer to toggle comments on/off:   – but that is future talk, if the problem should actually arise.

Question for now is: what do we think about this? Do we have enough reviews/information for this to make sense? How do we like the approach taken?

I like this idea. Perhaps collapsed by default.

This is now implemented (and live on rewrite.arewewebyet.org ) – including a global toggle and hiding per default. Uses the same data structure as for package data, makes it all nice clean and separated.

Note that hyper does support HTTP2 on the client side

@Manishearth fair point. updating my comment.


Clear thread local after use

This is needed for internal test to pass.

Test failures: #13328
Failed to build php docker image looks like an infra flake.


Crash when assembling code

Hey, here is the code I am trying to assemble:
push rax
push rcx
push rdx
push r8
push r9
push r10
mov rcx, 0x637ea511
mov rdx, 0x637ea4d1
mov r8, 0x637ea4f1
mov r9, 0x0
push 0x0
push 0x0
mov r10, 0x61813ff0
call r10
pop rcx
pop rcx
pop r10
pop r9
pop r8
pop rdx
pop rcx
pop rax
ret

And here is the stacktrace:
frame #0: 0x00007ffff7178968 libc.so.6`__strtok_r + 24
frame #1: 0x00007ffff75fe72c libAssemblyLine.so`check_operand_type(instr_buffer=0x00007fffffffc340, all_opd="0x637ea511", opd_pos=1) at tokenizer.c:175:9
frame #2: 0x00007ffff75fe8d9 libAssemblyLine.so`operand_tok(instr_buffer=0x00007fffffffc340, opds="0x637ea511", opd_pos=1) at tokenizer.c:209:3
frame #3: 0x00007ffff75fe930 libAssemblyLine.so`operand_tok(instr_buffer=0x00007fffffffc340, opds="rcx", opd_pos=0) at tokenizer.c:216:12
frame #4: 0x00007ffff75fe9c1 libAssemblyLine.so`instr_tok(instr_buffer=0x00007fffffffc340, comp_instr="mov") at tokenizer.c:229:12
frame #5: 0x00007ffff75fc232 libAssemblyLine.so`line_to_instr(instr_data=0x00007fffffffc340, filtered_asm_str="mov") at parser.c:55:3
frame #6: 0x00007ffff75fca9a libAssemblyLine.so`str_to_instr(instr_data=0x00007fffffffc340, unfiltered_str="mov rcx, 0x637ea511\nmov rdx, 0x637ea4d1\nmov r8, 0x637ea4f1\nmov r9, 0x0\npush 0x0\npush 0x0\nmov r10, 0x61813ff0\ncall r10\npop rcx\npop rcx\npop r10\npop r9\npop r8\npop rdx\npop rcx\npop rax\nret\n", read_len=0x00007fffffffc430) at parser.c:173:12
frame #7: 0x00007ffff75fcfe5 libAssemblyLine.so`assemble_all(al=0x00007fffe829a4d0, str="push rax\npush rcx\npush rdx\npush r8\npush r9\npush r10\nmov rcx, 0x637ea511\nmov rdx, 0x637ea4d1\nmov r8, 0x637ea4f1\nmov r9, 0x0\npush 0x0\npush 0x0\nmov r10, 0x61813ff0\ncall r10\npop rcx\npop rcx\npop r10\npop r9\npop r8\npop rdx\npop rcx\npop rax\nret\n", dest=0x0000000000000000) at parser.c:307:5
frame #8: 0x00007ffff75fa309 libAssemblyLine.so`asm_assemble_str(al=0x00007fffe829a4d0, assembly_str="push rax\npush rcx\npush rdx\npush r8\npush r9\npush r10\nmov rcx, 0x637ea511\nmov rdx, 0x637ea4d1\nmov r8, 0x637ea4f1\nmov r9, 0x0\npush 0x0\npush 0x0\nmov r10, 0x61813ff0\ncall r10\npop rcx\npop rcx\npop r10\npop r9\npop r8\npop rdx\npop rcx\npop rax\nret\n") at assemblyline.c:118:16

Tuxifan ;-)

Hi @niansa, yes, the problem is that we don't have the encoding for push imm.
Depending on what you try to do, you could try to use
mov r9, 0x0
push r9
push r9

In the meantime, maybe @daviduwu9  can have a look, if we can support push imm in the next release.

Just as a quick update, we now have support for push IMM. It is available in the dev-branch here, if you need it. We plan to release 1.3.0 soon.

@niansa push imm is now supported in v1.3.0
50
51
52
41 50
41 51
41 52
b9 11 a5 7e 63
ba d1 a4 7e 63
41 b8 f1 a4 7e 63
41 b9 00 00 00 00
6a 00
6a 00
41 ba f0 3f 81 61
41 ff d2
59
59
41 5a
41 59
41 58
5a
59
58
c3

@niansa  Feel free to reopen this or open another issue, if the problem persists.

Thanks a lot!


error: struct 'Compilation' depends on itself

Bisect indicates this started happening with Zig commit 1f10cf4edf2b645e63dedc42f5d7475914bf2311
I'm guessing that change is forcing an eager evaluation of something that was previously only working because it was lazy?
./src/Compilation.zig:1:1: error: struct 'Compilation' depends on itself
const std = @import("std");
^
./src/Parser.zig:33:5: note: while checking this field
    @"switch": *Switch,
    ^
/Users/ehaas/source/zig/build/lib/zig/std/array_list.zig:41:9: note: while checking this field
        items: Slice,
        ^
./src/Parser.zig:97:1: note: while checking this field
scopes: std.ArrayList(Scope),
^
./src/Pragma.zig:39:1: note: while checking this field
parserHandler: ?fn (*Pragma, *Parser, start_idx: TokenIndex) Compilation.Error!void = null,
^
/Users/ehaas/source/zig/build/lib/zig/std/array_hash_map.zig:495:13: note: while checking this field
            value: V,
            ^
/Users/ehaas/source/zig/build/lib/zig/std/array_hash_map.zig:468:9: note: while checking this field
        entries: DataList = .{},
        ^
/Users/ehaas/source/zig/build/lib/zig/std/array_hash_map.zig:81:9: note: while checking this field
        unmanaged: Unmanaged,
        ^
./src/Compilation.zig:30:1: note: while checking this field
pragma_handlers: std.StringArrayHashMap(*Pragma),
^

I will revert that commit - I wanted to solve it a different way.


remove the unusable job endpoint launch method

Resolves #357

Coverage decreased (-0.3%) to 91.161% when pulling 0728ae5d731f2739f8081a9b2ef94713450d1ca2 on AlanCoding:bye_v1 into 2d7af8f2990142aee82d584016f75ce7ae377093 on ansible:master.

Coverage decreased (-0.3%) to 91.161% when pulling 518065e6c4f8aa1aa379a73d889b5e4011d47fa2 on AlanCoding:bye_v1 into 2d7af8f2990142aee82d584016f75ce7ae377093 on ansible:master.


How to find new VM's fully qualified host name?

[Enter feedback here]
The article uses<EMAIL_ADDRESS>in the SSH example. But does not show how how to find VM's fully qualified host name in our case.
Tried to guess and use .centralindia.cloudapp.azure.com in Windows 10 built-in SSH client, and got a message that "could not resolve hostname. No such host is known."

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

ID: 077ee673-528a-d893-5832-7656b91dbec8
Version Independent ID: 2180e845-1ead-3b47-03be-c26aee00c6f7
Content: Use Remote Desktop to a Linux VM in Azure - Azure Linux Virtual Machines
Content Source: articles/virtual-machines/linux/use-remote-desktop.md
Service: virtual-machines-linux
GitHub Login: @cynthn
Microsoft Alias: cynthn

Thanks for the feedback! We are currently investigating and will update you shortly.

Select your VM in the portal. Under DNS name, click Configure.
Click Configure under DNS name
Enter the desired DNS name and then select Save.
Enter a DNS name label for your public IP resource
To return to the VM overview blade, close the Public IP address blade. Verify that the DNS name is now shown.
You can now connect remotely to the VM using this DNS name such as with ssh<EMAIL_ADDRESS>Reference doc: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/portal-create-fqdn#create-a-fqdn

We will now close this issue. If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.


The system can send or receive data by queries to the databases.

@matityahuinba an I will work together and update this issue:

[ ] Return user
[ ] Return parking slot
[ ] Return parking slot information
[ ] Return user details
[ ] Return parking slots per area
[ ] Return num of users parking in area
[ ] Return num of free parking slots
[ ] Return num of taken parking slots
[ ] Get driver by parking slot
[ ] Return parking slot id by given user

All function are writen.
Next step - Waiting  MongoDB to be set up, and connect to those functions
for real data retrieval

[ ] Return user
[ ] Return parking slot
[ ] Return parking slot information
[ ] Return user details
[ ] Return parking slots per area
[ ] Return num of users parking in area
[ ] Return num of free parking slots
[ ] Return num of taken parking slots
[ ] Get driver by parking slot
[ ] Return parking slot id by given user


Inline color decorators mess up with pixel-sharp fonts

VSCode Version: 1.25.0
OS Version: Ubuntu 16.04 LTS

Steps to Reproduce:

Keep "editor.colorDecorators" set to true
Use a pixel-perfect/pixel-sharp font like Monoid or Crisp
Open a file with color decorators
Notice the characters become misaligned a fraction of pixel (and then blurred) after the color decorator, ruining the whole purpose of the font
(Example pic magnified 400%: Imgur)

Purposed solution: make the color decorators width always snap to an integer pixel value

Does this issue occur when all extensions are disabled?: Yes

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!


⚠ Bofrost.de has degraded performance

In 449eb2d, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1083 ms

Resolved: Bofrost.de performance has improved in fd457e6 after 8 minutes.


Improve README, load CLIPCount from HF

Hi,
Thanks for this interesting work. I contributed YOLOS back in the day to the Transformers library, so it's nice to see you're leveraging it here. Since you do seem to use this model, and not the YOLO model from Ultralytics, I assume we can update the link in the README (and perhaps as well the mention in the paper, which mentions YOLO instead of YOLOS).
Next to that, I see you leverage CLIPCount, it would be nice to make this model available on 🤗 for easy inference, and better discoverability. Here's how it can be used:
from models import CLIPCount

model = CLIPCount()

# load weights
model.load_state_dict(...)

# push to hub
model.push_to_hub("your-hf-org-or-username/clip-count-base")

# reload
model = CLIPCount.from_pretrained("your-hf-org-or-username/clip-count-base")

This way, people also don't need to manually download the checkpoint, it loads automatically from the hub.
Moreover, it leverages safetensors for serialization rather than pickle, which is considered unsafe.
Would you be interested in this integration?
Cheers,
Niels
Open-source @ HF

Thanks @NielsRogge for you inputs!
I take your suggestion to upload CLIPCount to hugging face :)
Regarding YOLO, at some point we moved to Yolov9 in our experiments, I'll modify the code accordingly - thanks for pointing this out!


Use Yarn workspaces and lerna

As the number of examples grows and we introduce example dependencies, it may be useful to use a system like yarn workspaces completed by lerna - see e.g. this blog post.

Good idea, this will also make it easier to build all the examples at once with a root package.json / lerna.json :+1:
However lerna can be "yet another tool" to learn for many people, so we should keep it possible to build the examples one by one in each folder with the usual jlpm && jupyter labextension link .

@jtpio just opened #16 .- I will do more work tomorrow on this. Looking for your feedback.

Fixed by #16


Update monaco to 0.46

Description of the new feature / enhancement
Update Monaco dependency to 0.46
Currently we're on 0.38
Scenario when this would be used?

Supporting information
No response

Are there any code-related things we can/must deal with, with the letter version? Maybe even work-arounds that are no longer needed?

Are there any code-related things we can/must deal with, with the letter version? Maybe even work-arounds that are no longer needed?

We will have to try this out. The changelog is as always missing a lot of things.
I need this version for https://github.com/microsoft/PowerToys/issues/21884


Generalise KolSol::fourier_to_phys() for any dimension

At the moment KolSol::fourier_to_phys() expects an input of shape=[..., ndim]. This is causing problems for the vorticity which will have a shape=[nk_grid, nk_grid].

Resolved.


.NET CORE 3.1 Razor Page Bug

in .NET 2.2 Code working fine
   @if (Model.HasPreviousPage == true)
                        {

                                   First

                        }

But in .NET 3.1 @* is an incorrect syntax, code is not compiling.

Thanks for contacting us.
@NTaylorMullen can you please look into this? Thanks!

Oh wow look at that. Turns out in 3.1 we broke the ability to have Razor comments in TagHelpers. This is a regression that we weren't aware of.


Feature: Add custom previous and next buttons to image slider to past events section

Description
There is no option in the past event section's sliding images to control the slide or to see the previous or next image.
Kindly assign me this issue under hacktoberfest'23
Proposed Solution
I want to add two buttons on the rightmost and leftmost side of the image carousel to go for next and previous images.
Screenshots

🥦 Browser
Brave
Checklist ✅

[X] I checked and didn't find similar issue
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (blank for no)

Hi @singodiyashubham87 , you can start to work on it !
Make sure that it is responsive across all devices.
📑 Checklist in case you missed something

Local project setup, .env for the frontend.
Contributing guidelines to be followed.

Please maintain structure, use conventional pull request titles, and avoid spam to avoid closure or bans.

hii @tamalCodes .please assign this issue to me as it seems a perfect fit for my first open source contribution

hii @tamalCodes .please assign this issue to me as it seems a perfect fit for my first open source contribution

Someone else is already working on it Tushar !

@tamalCodes When I'm trying to setup the project locally then the clubs page is not showing any data, I've also setup the Milan-Backend too.
Can you please assist me?

@tamalCodes When I'm trying to setup the project locally then the clubs page is not showing any data, I've also setup the Milan-Backend too. Can you please assist me?

Have you configured the .env file for the Frontend ?

@tamalCodes I'm not using Razorpay and geolocation api so I put random strings in them, have a look -

Well i  can see that you are using http://localhost:5000 correctly - the API should work correctly, is there any error in the console ? If there is, maybe try resolving that.

@tamalCodes I'm getting Internel Server Error(500) for the clubs page, No idea why.

That's cool, my best guess is since you are on a new DB you are not getting any data. As the DB is empty. You can paste http://localhost:5000/clubs in the browser and see the result.

You can perhaps sign up as a club with random details. (Not google auth)
Then the profile page appears, you can make your changes and simply push the code for the FE.

@tamalCodes Not able to sign in, it buffers then stops

If there are any errors please paste it here. The errors can be seen in the server's terminal and Browser's console.
Make sure that the DB is set up properly and also let me know what appears in the networks tab when you are trying to sign Up.

Let's catch up 🙋🏻♂
Hi there, it has been a while since we last had a conversation so I wanted to know if you are still working on this. Please drop a reply shortly so that we know you are active, feel free to convey any problem you face in the comments, or mail me at<EMAIL_ADDRESS>

@tamalCodes Hey Tamal I tried my best to setup the environment on my local computer but was not able to get it done even after doing the changes you suggested, I guess you should open this issue to anyone willing to work.


fix: fade plugin when using renderOnlyVisible

Details

Fix error "Uncaught TypeError: Cannot read properties of null (reading 'style')" when using renderOnlyVisible set to true

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Editing pass

Description of changes:
Made an editing pass on the main README, as well as the javadocs.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@frankfliu


regex non-capturing group

Newsboat version (copy the output of newsboat -v or the first line of git show): 2.28.0
Hi, I was trying to make this regex work on Newsboat
highlight article "(?![A-Za-z0-9])(\[[0-9]+\])"

It's intended to capture any character, and then match an open square bracket, a number and lastly a closing square bracket.
This would match something like cite [13] but only highlight [13]. These are some examples from regexr.
Newsboat doesn't accept the regex, since it finds the ?! token invalid.
Is there something I am missing or doing wrong?

Adding onto this, we're (@ignamartinoli and I) currently writing a theme for Catppuccin.
I wondered if there isn't some sort of lower-level info we could access in the article highlight, that carries the information that it's a link hint.

Newsboat uses POSIX Extended Regular Expressions (see wrapper around libc's implementation)
Those do not support backreferences and non-capturing groups.
I don't think we will switch to a different type of regexes any time soon (I wouldn't be directly opposed to it, but it might cause some backwards-compatibility issues for our users)

I wondered if there isn't some sort of lower-level info we could access in the article highlight, that carries the information that it's a link hint.

I don't think there is anything for that now.
No idea if we have a proper way to make that available, but I will see if I can come up with something in the next few days.

@dennisschagt thanks for the info. We really look forward to it.
Exposing parsing information could become really handy, since regex on certain occasions can be a bit unreliable and ambiguous, for example in distinguishing between a link selector (cite [13]) and an inline code array a = [1].
I really believe that, just as coding, good colour highlighting can really improve the user experience for Newsboat

Actually, the optimal solution would be to expose metadata about the text formatting, but with POSIX regex it would be enough for almost all use-cases

I really love newsboat, so this is a "I wish this was possible" more than a critique.
Highlighting is such a inexpensive feature, and it would improve so much for the user experience, that I deem is worth pushing its boundaries.
Take this page as example. It has a lot of code and links.
Code snippets here are really difficult to highlight with regex alone, as >  could be used as a citation marker in another totally unrelated blog, making it impossible to use syntax alone globally to determine how a text should look like.
That is a case where having access to the semantics of the text object would really help.
I don't really know the internals of the RSS/Atom protocol but, if it allows to retrieve information like this "maps" string here is inside a <code> block, exposing that to the configuration would help a lot in applying the proper highlighting.
For now though, having POSIX-regex would be enough for almost all use-cases.


Project / function local environment files for env var population

Mentioned in #387, the idea of having an environment.json within the project or function stand-alone from the regular function.json config would allow you to easily populate via the "build" hook and clean up after using the "clean" hook.
IMO this basically replaces the need for --env-file, but I'd love some feedback regarding that. Keep both? Prefer one technique?

Would also love support for specifying the variables by env as well.

environment.dev.json
environment.test.json
environment.prod.json

I can't even get --env-file or --set to work (on build or deploy). Very odd. Version 0.16.0.


How to build a field of type Struct with DataFusion SQL?

DataFusion already gives us a way to access nested fields with this syntax field["nested_field"] (field being an arrow struct field). However I didn't find any example or documentation to do the reverse operation, i.e. creating a struct from multiple fields. A pseudo SQL query (inspired from BIGQUERY) will be something like: SELECT STRUCT(a AS field_1, b AS field_2) AS struct_name FROM table. Is there a way to express this type of construct with DataFusion SQL?
Support for this type of functionality will be particularly helpful for dealing with data sources that support nested fields (e.g. parquet and JSON) and when the query output MUST also be stored in a nested form. Example of use cases:

Remove privacy sensitive fields from a struct field.
Apply some transformations on some nested fields.
Compute new nested fields based on the existing nested fields (e.g. add country, city nested fields from an ip_address nested field).

Proposed solution:

Add a new operator to create a field of type Struct. Simple syntax: STRUCT (expr AS field_name, ...) AS struct_field_name
Support an EXCEPT keyword to remove one or several fields from a struct. e.g. SELECT STRUCT (struct_a.* EXCEPT (field_1, field_2)) FROM xyz. This type of syntax is robust to schema evolution as new fields will be automatically captured by the wildcard operator.
Support wildcard operators to combine multiple structs into a single one. e.g. SELECT STRUCT(struct_a.*, struct_b.*) AS combined_struct FROM xyz. This must fail if the structures a and b have fields with the same name.

Hello - thanks for raising this, im quite interested in operations on structs as well.  Do you have any examples of how other engines such as spark / postgres / athena etc handle what you are proposing?

BTW I started collecting known issues in  struct support in https://github.com/apache/arrow-datafusion/issues/2326

@lquerel Are you taking this feature? If not i am glad to take this.❤

@Ted-Jiang No unfortunately I can't right now. Thanks in advance.

@Ted-Jiang thanks for your PR. Really nice to see that integrated so quickly.
Does this PR allow to create nested structs ?

@Ted-Jiang thanks for your PR. Really nice to see that integrated so quickly.
Does this PR allow to create nested structs ?

Sorry for the delay, No we can't create a nested, I think we should modify it in sql-parser for support this.

@Ted-Jiang based on https://github.com/apache/arrow-datafusion/pull/2389 and this I was wondering what all is possible to create struct columns in datafusion SQL.
for example I was trying to do something like the below but its broke,
select struct(a,b,c) from table

Failed to execute query: Arrow error: Invalid argument error: column types must match schema types, expected Struct([]) but found Struct([Field { name: \"c0\", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: None }]) at column index 0"

I believe this was fixed by https://github.com/apache/arrow-datafusion/pull/6594 (thanks to @jiangzhx)

Doc reference: https://datafusion.apache.org/user-guide/sql/scalar_functions.html#struct-functions


Welcome new DIGIT 110 collaborators!

Log in to your GitHub account and post in response to this to request me to add you to our textEncoding-Hub repo! Please identify yourself and try writing something in GitHub markdown, too. :-)

My username is VocaloidOtaku39. @ebeshero please add me as a collaborator.

My username is SonicSpaceFan025. @ebeshero Please add me as a collaborator!

My username is GarrettStroupe. @ebeshero , Please add me as a collaborator.


boosts the quieter female scream

About the PR
Closes #10669
i kept it because i didn't feel like sourcing another one
Screenshots

Changelog

boring cl

Here's a bunch of nice ones:
https://freesound.org/people/Volonda/sounds/439517/ (first scream, CC0)
https://freesound.org/people/CalGre/sounds/467126/ (CC0)
https://freesound.org/people/tomattka/sounds/400181/ (CC0)
https://freesound.org/people/DigestContent/sounds/449702/ (CC0)
https://freesound.org/people/XfiXy8/sounds/467283/ (CC-BY 4.0, the first scream before she breathes in)
Could maybe implement all of them, if you feel like it. I still think the current femalescream_3.ogg sounds like trash, but maybe not everyone will agree.

i'd rather source another one tbh

uhhh got too lazy :HECK:


Fix responsive

📝Changed routes:

/
/studios

(view full size)
(view full size)

Commit db9837852ddd1bb75c8b3cdb5292339ab8fbc9c4 (https://bckstudio-on-zeitnow-git-fix-responsive.stryder031.now.sh).


Use latest aruba

I'd like to use aruba's master for our specs because I added a change that I'm finding useful when working with simplecov's cucumber scenarios.
I also removed an extension recently added to aruba, because otherwise specs won't run against aruba 1.0. I thought Aruba 1.0 was fixing the issues, but then I noticed that even without upgrading aruba, the scenarios will pass anwyays without the extension. So, I'm not sure why the aruba extension is needed.

@deivid-rodriguez thanks!
Let me double check on the extension... I added it.. 3 days ago? See: https://github.com/cucumber/aruba/issues/699
... Ah I believe it might be working because the scenarios in question are tagged @wip right now because they are flaky due to #815 but after that's fixed I really want them in the general rotation (+ I'd like to test against different rails version) so removing it right now I wouldn't be too much of a fan

@PragTob Thanks for the context!
So I reviewed the monkeypatch and I believe it was correct but being applied to the wrong method. I fixed it and now I think the scenarios should pass consistently. In addition to that, what I did was to remove the hard failure on aruba 1.0, and replace it with a TODO note.
Let me know what you think.

@deivid-rodriguez thanks I'll check it out! I don't believe the scenarios will pass consistently though, as imo it's a bug in our merging that needs fixing :)

Oh, I see! Then I'll restore the @wip tags and the mention to the ticket until we can fix that.

@deivid-rodriguez sounds great :ok_hand:
I just double checked and yeah still happening (took me a lot of retries though):
tobi@speedy:~/github/simplecov(tests/latest_aruba)$ while cucumber features/parallel_tests.feature:8; do :; done
Using the default profile...
...F

(::) failed steps (::)

expected: 9
     got: 8

(compared using ==)
 (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/html_steps.rb:14:in `block (3 levels) in <top (required)>'
./features/step_definitions/web_steps.rb:5:in `block in with_scope'
./features/step_definitions/web_steps.rb:5:in `with_scope'
./features/step_definitions/html_steps.rb:12:in `block (2 levels) in <top (required)>'
./features/step_definitions/html_steps.rb:11:in `each'
./features/step_definitions/html_steps.rb:11:in `/^I should see the groups:$/'
./features/step_definitions/parallel_tests_steps.rb:4:in `"I should see the line coverage results for the parallel tests project"'
features/parallel_tests.feature:16:in `Then I should see the line coverage results for the parallel tests project'

Failing Scenarios:
cucumber features/parallel_tests.feature:8 # Scenario: Running it through parallel_tests produces the same results as a normal rspec run

Right.
Regarding the change in the monkeypatch, I investigated more and it's not that the previous monkeypatch was incorrect. It was correct on aruba 0.14, but on aruba 1.0, the "I successfully run" step no longer calls run_command so the monkeypatch no longer applies. Monkeypatching run_command_and_stop instead does the trick.
This should be ready now.